/* Staff app */
.login-view { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.login-card { width: min(400px, 100%); padding: 2rem; }
.login-brand { text-align: center; margin-bottom: 1.5rem; }
.logo { height: 52px; width: auto; display: block; margin: -6px 0; filter: drop-shadow(0 0 1.5px rgba(246,241,231,0.9)) drop-shadow(0 0 6px rgba(246,241,231,0.35)); }
.logo-lg { height: 140px; margin: -0.75rem auto -0.5rem; filter: drop-shadow(0 0 2px rgba(246,241,231,0.95)) drop-shadow(0 0 12px rgba(246,241,231,0.35)); }
.login-brand h1 { font-size: 2.2rem; margin-top: 0.5rem; }
.login-foot { text-align: center; margin-top: 1.25rem; margin-bottom: 0; }
.login-foot a { color: var(--cream-dim); }

.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  padding: 0.7rem 1.25rem; background: rgba(6, 35, 26, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.topbar-brand { display: flex; align-items: center; gap: 0.6rem; }
.topbar-brand .brand-ball { font-size: 1.5rem; }
.topbar-brand .brand-name { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.06em; }
.tabs { display: flex; gap: 0.25rem; background: rgba(0,0,0,0.25); padding: 0.25rem; border-radius: 999px; }
.tab { border: none; background: transparent; color: var(--cream-dim); padding: 0.45rem 1rem; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 0.9rem; }
.tab.active { background: var(--felt-600); color: var(--cream); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.live-pill { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }
.live-pill.offline i { background: var(--red); }

/* Notifications bell + panel */
.notif { position: relative; }
.notif-btn { position: relative; font-size: 1rem; padding: 0.4rem 0.7rem; }
.notif-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 0.72rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--felt-900); }
.notif-btn.has-unread { border-color: rgba(217,83,79,0.6); animation: bellPulse 2.4s ease-in-out infinite; }
@keyframes bellPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(217,83,79,0.45); } 50% { box-shadow: 0 0 0 6px rgba(217,83,79,0); } }
.notif-panel { position: absolute; right: 0; top: calc(100% + 0.5rem); width: min(400px, 92vw); max-height: 70vh; display: flex; flex-direction: column; background: var(--felt-800); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); z-index: 60; overflow: hidden; }
.notif-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border); }
.notif-tools { display: flex; gap: 0.35rem; }
.notif-tools .btn { padding: 0.3rem 0.6rem; font-size: 0.75rem; }
.notif-list { overflow-y: auto; padding: 0.4rem; display: flex; flex-direction: column; gap: 0.3rem; }
.notif-list > p { padding: 1rem; text-align: center; margin: 0; }
.notif-item { display: grid; grid-template-columns: auto 1fr auto; gap: 0.6rem; align-items: start; padding: 0.6rem 0.7rem; border-radius: 10px; background: rgba(0,0,0,0.2); border: 1px solid transparent; }
.notif-item.unread { background: rgba(214,165,76,0.12); border-color: rgba(214,165,76,0.35); }
.notif-item .ic { font-size: 1.2rem; line-height: 1.2; }
.notif-item .t { font-weight: 700; font-size: 0.9rem; }
.notif-item .b { font-size: 0.82rem; color: var(--cream-dim); line-height: 1.35; }
.notif-item .m { font-size: 0.72rem; color: var(--muted); margin-top: 0.15rem; display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.notif-item .m a { color: var(--brass-light); text-decoration: none; font-weight: 600; cursor: pointer; }
.notif-item .x { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 0 0.2rem; line-height: 1; }
.notif-item .x:hover { color: #ff9e9a; }
@media (max-width: 720px) { .notif-panel { position: fixed; left: 0.5rem; right: 0.5rem; top: 4.2rem; width: auto; } }

.tab-panel { width: min(1200px, 100% - 2rem); margin: 1.5rem auto 4rem; }

.day-toolbar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.day-nav { display: flex; align-items: center; gap: 0.35rem; }
.field input[type="time"], .field input[type="date"] { color-scheme: dark; }
/* Segmented switch (Set hours / Open time) */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem; background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 12px; padding: 0.3rem; margin-bottom: 0.5rem; }
.seg-btn { border: none; background: transparent; color: var(--cream-dim); padding: 0.55rem 0.75rem; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 0.92rem; transition: background 0.15s, color 0.15s; }
.seg-btn:hover { color: var(--cream); }
.seg-btn.active { background: var(--brass); color: var(--felt-900); }
.open-hint { margin: 0.35rem 0 0; font-size: 0.85rem; color: var(--blue); background: var(--blue-soft); border: 1px solid rgba(90,169,230,0.3); border-radius: 10px; padding: 0.55rem 0.8rem; }
.open-hint strong { color: var(--cream); }
.day-input { padding: 0.35rem 0.6rem; border-radius: 999px; border: 1px solid var(--border); background: rgba(0,0,0,0.25); color: var(--cream); color-scheme: dark; }
.day-title { font-size: 1.9rem; flex: 1; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.6rem; margin-bottom: 1.25rem; }
.stat { background: rgba(255,255,255,0.035); border: 1px solid var(--border); border-radius: 12px; padding: 0.7rem 0.9rem; display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

.slot-list { display: flex; flex-direction: column; gap: 0.5rem; }
.slot-row { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 12px; padding: 0.75rem 1rem; }
.slot-row.past { opacity: 0.55; }
.slot-row.current { border-color: var(--brass); box-shadow: inset 3px 0 0 var(--brass); }
.slot-row.full { border-color: rgba(217, 83, 79, 0.35); }
.slot-time { display: flex; flex-direction: column; gap: 0.2rem; }
.slot-time .t { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.slot-time .cap { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.slot-time .cap.full { color: #ff9e9a; }
.slot-time .cap.open { color: var(--green); }
.slot-body { display: flex; flex-direction: column; gap: 0.5rem; }
.slot-empty { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: 0.9rem; }

.res-card { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem; background: rgba(0,0,0,0.22); border: 1px solid var(--border); border-radius: 10px; padding: 0.7rem 0.9rem; align-items: center; }
.res-card.cancelled { opacity: 0.55; }
.res-card.no-table { border-color: rgba(233, 185, 73, 0.4); }
.res-main { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.res-name { font-weight: 700; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.res-contact { font-size: 0.85rem; color: var(--cream-dim); display: flex; gap: 0.8rem; flex-wrap: wrap; }
.res-contact a { color: var(--cream-dim); text-decoration: none; }
.res-contact a:hover { color: var(--brass-light); }
.res-notes { font-size: 0.82rem; color: var(--amber); }
.res-side { display: flex; flex-direction: column; gap: 0.45rem; align-items: flex-end; }
.table-pick { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; }
.table-pick select { padding: 0.35rem 0.6rem; border-radius: 8px; border: 1px solid var(--border); background: var(--felt-700); color: var(--cream); font-weight: 600; }
.table-pick select.unassigned { border-color: var(--amber); color: var(--amber); }
.table-pick select option { background: var(--felt-800); }
.res-actions { display: flex; gap: 0.35rem; flex-wrap: wrap; justify-content: flex-end; }
.res-actions .btn { padding: 0.3rem 0.65rem; font-size: 0.78rem; }

.search-bar input { width: 100%; padding: 0.85rem 1rem; border-radius: 12px; border: 1px solid var(--border); background: rgba(0,0,0,0.25); color: var(--cream); font-size: 1rem; }
.search-results { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.res-date { font-size: 0.8rem; color: var(--brass-light); font-weight: 600; }
.res-time { font-size: 0.85rem; color: var(--brass-light); font-weight: 600; }
.badge-open { background: rgba(90, 169, 230, 0.16); color: var(--blue); }
.slot-time .cont { font-size: 0.72rem; color: var(--blue); }

.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 1rem; align-items: start; min-width: 0; }
.settings-grid .card { min-width: 0; }
.tab-panel { min-width: 0; }
html, body { overflow-x: hidden; }
.settings-grid h3 { font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--brass-light); }
.sep { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }
.table-list { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.75rem; }
.table-group { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brass-light); margin: 0.6rem 0 0.1rem; }
.table-group:first-child { margin-top: 0; }
.kind-lines { display: flex; flex-direction: column; gap: 0.15rem; margin-top: 0.2rem; }
.kind-line { font-size: 0.74rem; color: var(--cream-dim); white-space: nowrap; }
.kind-line.full { color: #ff9e9a; }
.kind-line.open { color: var(--green); }
.badge-kind { background: rgba(214,165,76,0.15); color: var(--brass-light); }
.add-table select, .table-item select { padding: 0.4rem 0.5rem; border-radius: 8px; border: 1px solid var(--border); background: var(--felt-700); color: var(--cream); font-size: 0.85rem; }
.add-table select option, .table-item select option { background: var(--felt-800); }
.table-item { display: flex; align-items: center; gap: 0.5rem; min-width: 0; flex-wrap: wrap; padding: 0.35rem 0; border-bottom: 1px dashed rgba(246,241,231,0.08); }
.table-item input[type="text"] { flex: 1 1 9rem; min-width: 9rem; padding: 0.45rem 0.7rem; border-radius: 8px; border: 1px solid var(--border); background: rgba(0,0,0,0.25); color: var(--cream); }
.table-item select { flex: 0 0 auto; max-width: 10rem; }
.table-item .btn-danger { margin-left: auto; }
.table-item .btn { flex: 0 0 auto; }
.table-item .btn-danger { width: 34px; height: 34px; padding: 0; border-radius: 50%; }
.table-item.inactive input[type="text"] { opacity: 0.5; text-decoration: line-through; }
.add-table { display: flex; gap: 0.5rem; min-width: 0; }
.add-table input { flex: 1 1 0; min-width: 0; width: 0; padding: 0.5rem 0.7rem; border-radius: 8px; border: 1px solid var(--border); background: rgba(0,0,0,0.25); color: var(--cream); }
.add-table .btn { flex: 0 0 auto; }

@media (max-width: 720px) {
  .topbar { padding: 0.6rem 0.75rem; gap: 0.5rem; }
  .topbar-actions { margin-left: 0; width: 100%; }
  .tabs { width: 100%; justify-content: space-between; }
  .tab { flex: 1; text-align: center; padding: 0.45rem 0.5rem; }
  .day-toolbar { gap: 0.6rem; }
  .day-title { font-size: 1.4rem; flex-basis: 100%; }
  .stats { grid-template-columns: repeat(auto-fit, minmax(95px, 1fr)); }
  .slot-row { grid-template-columns: 1fr; }
  .res-card { grid-template-columns: 1fr; }
  .res-side { align-items: flex-start; }
  .res-actions { justify-content: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .topbar { gap: 0.75rem; }
}
