/* Trang quản trị */
.adm-title { margin: 0 0 12px; }
.adm-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; }
.adm-badge { background: #e53935; color: #fff; margin-left: 4px; }
.adm-denied { text-align: center; padding: 32px 16px; }

.adm-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.adm-stat { display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer; font: inherit; color: inherit; padding: 16px; }
.adm-stat:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.adm-stat.hot { border-color: #e53935; }
.adm-stat-val { font-size: 1.6rem; font-weight: 700; }

.adm-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.adm-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 16px; }
.adm-table { min-width: 680px; width: 100%; }
.adm-table th, .adm-table td { vertical-align: top; text-align: left; }
.adm-table .nowrap { white-space: nowrap; }
.adm-wide { min-width: 220px; }
.adm-sub { font-size: .85em; margin-top: 2px; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.adm-empty { padding: 20px; text-align: center; }

.adm-link { background: none; border: 0; padding: 0; margin-top: 4px; color: #1a73e8; cursor: pointer; font: inherit; font-size: .85em; }
.adm-link:hover { text-decoration: underline; }
.adm-desc { margin-top: 6px; padding: 8px 10px; background: rgba(0, 0, 0, .04); border-radius: 6px; font-size: .9em; max-height: 220px; overflow: auto; }
.adm-reason { margin-top: 4px; color: #c62828; font-size: .85em; }

.adm-search { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.adm-search input[type=search] { flex: 1 1 260px; min-width: 0; }
.adm-search select { flex: 0 1 200px; min-width: 0; }
.adm-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; padding: 8px 10px; background: rgba(0, 0, 0, .04); border-radius: 8px; }
.adm-bulk .check { margin-right: 4px; }
.adm-chk { width: 32px; }
.adm-chk input { width: 18px; height: 18px; }
.adm-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 4px 0 16px; flex-wrap: wrap; }
.adm-import h3 { margin-top: 0; }
.adm-import textarea { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
.adm-code { display: block; padding: 8px 10px; background: rgba(0, 0, 0, .05); border-radius: 6px; overflow-x: auto; font-size: .85rem; white-space: nowrap; margin-bottom: 8px; }
.adm-imp-err { background: #fde0de; color: #b3261e; padding: 10px 12px; border-radius: 8px; margin: 10px 0; }
.adm-row-bad { background: rgba(229, 57, 53, .06); }
#impPreview { margin-top: 14px; }

.st-pending { background: #fff3cd; color: #8a6d00; }
.st-ok { background: #d9f2e1; color: #1b6b33; }
.st-bad { background: #fde0de; color: #b3261e; }
.st-off { background: #e6e6e6; color: #555; }

.adm-postform { margin-bottom: 16px; }
.adm-postform textarea { width: 100%; resize: vertical; }

/* Lịch xem phòng */
.adm-bk .adm-table { min-width: 900px; }
.adm-bkph { margin-right: 6px; }
.adm-bkcall { display: inline-flex; gap: 6px; }
.adm-bknote { width: 100%; min-width: 160px; }

@media (max-width: 600px) {
  .adm { padding-bottom: env(safe-area-inset-bottom); }
  .adm-bk .adm-scroll { overflow: visible; }
  .adm-bk .adm-table, .adm-bk .adm-table tbody, .adm-bk .adm-table tr, .adm-bk .adm-table td { display: block; min-width: 0; width: 100%; box-sizing: border-box; }
  .adm-bk .adm-table thead { display: none; }
  .adm-bk .adm-table tr { margin-bottom: 12px; padding: 10px 12px; border: 1px solid rgba(0, 0, 0, .15); border-radius: 10px; background: #fff; }
  .adm-bk .adm-table td { padding: 6px 0; border: 0; white-space: normal; }
  .adm-bk .adm-table td::before { content: attr(data-label); display: block; font-size: .78em; color: #666; margin-bottom: 2px; }
  .adm-bk .adm-wide { min-width: 0; }
  .adm-bkcall { display: flex; margin-top: 6px; }
  .adm-bkcall .btn { flex: 1 1 0; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .adm-bksel, .adm-bknote { font-size: 16px; min-height: 44px; width: 100%; }
  .adm-filters .chip { min-height: 44px; }
  .adm-bk + .adm-pager .btn { min-height: 44px; }
  .adm-stats { grid-template-columns: 1fr 1fr; }
  .adm-tabs .tab { flex: 1 1 auto; }
}
