:root { --brand: #1f3a5f; --brand-2: #2c5282; --accent: #c8963e; }
body { background: #f4f6f9; }
.min-vw-0 { min-width: 0; }

/* ---------- адмінка ---------- */
.sidebar { width: 250px; min-height: 100vh; background: var(--brand); color: #fff; position: sticky; top: 0; }
.sidebar .brand { color: #fff; font-weight: 600; font-size: 1.1rem; display: flex; gap: .5rem; align-items: center; }
.sidebar .brand i { color: var(--accent); font-size: 1.4rem; }
.sidebar .brand img { max-height: 40px; max-width: 64px; object-fit: contain; border-radius: 6px; background: #fff; padding: 2px; }
.logo-preview { max-height: 90px; max-width: 220px; object-fit: contain; border: 1px solid #e3e6ea; border-radius: .5rem; padding: .5rem; background: #fff; }
.sidebar .nav-link { color: rgba(255,255,255,.75); border-radius: .5rem; display: flex; gap: .65rem; align-items: center; padding: .5rem .75rem; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar .nav-link.active { background: rgba(255,255,255,.15); color: #fff; }
.sidebar-backdrop { display: none; }
@media (max-width: 767.98px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 1045; height: 100vh; height: 100dvh; min-height: 0;
    width: min(280px, 85vw); overflow-y: auto; transform: translateX(-100%); transition: transform .2s ease;
  }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 24px rgba(0,0,0,.25); }
  body.nav-open .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 1040; background: rgba(0,0,0,.4); }
  body.nav-open { overflow: hidden; }
}
.topbar { position: sticky; top: 0; z-index: 10; }
.card { border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.06); border-radius: .75rem; }
.card-header { background: #fff; border-bottom: 1px solid #eef0f3; font-weight: 600; }
.stat { display: flex; gap: 1rem; align-items: center; }
.stat .icon { width: 48px; height: 48px; border-radius: .75rem; display: grid; place-items: center; font-size: 1.4rem; }
.stat .value { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.stat .label { color: #6c757d; font-size: .85rem; }
.table > :not(caption) > * > * { vertical-align: middle; }
.table thead th { font-size: .8rem; text-transform: uppercase; color: #6c757d; font-weight: 600; letter-spacing: .02em; }
.dl-grid { display: grid; grid-template-columns: 160px 1fr; gap: .4rem 1rem; margin: 0; }
.dl-grid dt { color: #6c757d; font-weight: 500; }
.dl-grid dd { margin: 0; }

/* ---------- календар ---------- */
.chess { table-layout: fixed; min-width: 1100px; font-size: .82rem; }
.chess th, .chess td { border: 1px solid #e3e6ea; padding: 0; height: 40px; text-align: center; }
.chess th.room-col, .chess td.room-col { width: 130px; text-align: left; padding: 0 .5rem; background: #fff; position: sticky; left: 0; z-index: 2; }
.chess thead th { background: #fff; padding: .3rem 0; }
.chess thead th.weekend { background: #fff6e8; }
.chess thead th.is-today { background: #e7f0ff; color: var(--brand-2); }
.chess td.empty a { display: block; width: 100%; height: 100%; }
.chess td.empty a:hover { background: #eef5ff; }
.chess .bk { display: block; margin: 3px 2px; padding: 4px 6px; border-radius: 6px; color: #fff; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.bk-new { background: #0dcaf0; }
.bk-confirmed { background: #0d6efd; }
.bk-checked_in { background: #198754; }
.bk-checked_out { background: #6c757d; }

/* ---------- публічний сайт ---------- */
.public .hero { background: linear-gradient(135deg, rgba(31,58,95,.92), rgba(44,82,130,.85)),
  radial-gradient(circle at 80% 20%, #c8963e 0, transparent 40%); color: #fff; padding: 5rem 0 7rem; }
.public .hero h1 { font-weight: 700; }
.public .search-box { margin-top: -4rem; }
.public .room-card .price { font-size: 1.4rem; font-weight: 700; color: var(--brand); }
.public .room-thumb { height: 180px; border-radius: .75rem .75rem 0 0; display: grid; place-items: center; color: #fff; font-size: 3rem;
  background: linear-gradient(135deg, var(--brand-2), var(--accent)); }
.public .navbar { background: var(--brand); }
.public footer { background: var(--brand); color: rgba(255,255,255,.75); }
.btn-accent { background: var(--accent); color: #fff; border: 0; }
.btn-accent:hover { background: #b38330; color: #fff; }
.admin .table a, .admin .card-header a { text-decoration: none; }

.theme-swatch { display: inline-flex; border-radius: 6px; overflow: hidden; border: 1px solid rgba(0,0,0,.15); flex-shrink: 0; }
.theme-swatch span { width: 14px; height: 22px; display: block; }
.btn-check:checked + .btn-outline-secondary { background: #f1f3f5; color: #212529; border-color: var(--bs-primary); box-shadow: 0 0 0 2px var(--bs-primary); }

.th-sort { color: inherit !important; text-decoration: none !important; white-space: nowrap; }
.th-sort:hover, .th-sort.active { color: var(--bs-primary) !important; }
.th-sort i { font-size: .7rem; }
