/* =========================================================
   Barbería Filo — panel del local
   ========================================================= */
:root {
  --bg: #F5F3EF;
  --surface: #FFFFFF;
  --surface-2: #F0EDE7;
  --border: #E4DFD6;
  --text: #1E1B16;
  --muted: #776F63;
  --primary: #1E1B16;
  --gold: #B8901C;
  --gold-soft: #F6EED6;
  --side: #15130F;
  --side-text: #CFC7B8;
  --ok: #1F7A4D;  --ok-bg: #E2F3EA;
  --err: #B83A2E; --err-bg: #FBE7E4;
  --warn: #8A6100; --warn-bg: #FCF1D6;
  --info: #1C5F99; --info-bg: #E3EEF8;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-full: 999px;
  --shadow: 0 1px 2px rgba(30,27,22,.06), 0 2px 8px rgba(30,27,22,.05);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }
.material-symbols-outlined { font-size: 20px; vertical-align: middle; user-select: none; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, box-shadow .15s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.btn-soft { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-soft:hover { background: var(--surface-2); }
.btn-danger-soft { background: var(--err-bg); color: var(--err); }
.btn-wa { background: #1FA855; color: #fff; }
.btn-wa:hover { background: #188a46; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn.is-disabled { opacity: .45; pointer-events: none; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* ---------- Estructura ---------- */
.sidebar { position: fixed; inset: 0 auto 0 0; width: 236px; background: var(--side); color: var(--side-text); display: flex; flex-direction: column; padding: 18px 12px; z-index: 50; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; text-decoration: none; color: #fff; font-family: 'Oswald', sans-serif; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; }
.side-brand img { border-radius: 8px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; font-weight: 500; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a.active { background: rgba(201,162,39,.16); color: #E2C15A; }
.side-foot { display: grid; gap: 2px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; }
.side-foot a, .side-foot button { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--r-sm); color: var(--side-text); text-decoration: none; background: none; border: 0; font: inherit; font-size: .88rem; cursor: pointer; width: 100%; }
.side-foot a:hover, .side-foot button:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-foot form { margin: 0; }

.main { margin-left: 236px; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 14px 28px; background: rgba(245,243,239,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.topbar h1 { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .02em; flex: 1; }
.topbar-actions { display: flex; gap: 8px; }
.menu-btn { display: none; }
.demo-note { display: flex; align-items: center; gap: 8px; margin: 14px 28px 0; padding: 8px 14px; border-radius: var(--r-sm); background: var(--gold-soft); color: #6b5310; font-size: .85rem; }
.content { padding: 20px 28px 60px; display: grid; gap: 20px; }
.page-sub { margin: -6px 0 0; color: var(--muted); }
.back-link { text-decoration: none; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-head h2 { font-size: 1.05rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.subhead { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 16px 0 6px; }
.empty { color: var(--muted); padding: 18px 0; text-align: center; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); font-size: .9rem; }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-err { background: var(--err-bg); color: var(--err); }

.chip { display: inline-block; padding: 2px 10px; border-radius: var(--r-full); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.chip.tiny { font-size: .68rem; padding: 1px 7px; margin-left: 6px; }
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.chip-err { background: var(--err-bg); color: var(--err); }
.chip-warn { background: var(--warn-bg); color: var(--warn); }
.chip-info { background: var(--info-bg); color: var(--info); }
.chip-muted { background: var(--surface-2); color: var(--muted); }
.dot { --c: var(--gold); display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 7px; }
.avatar { --c: var(--gold); width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 18%, #fff); color: color-mix(in srgb, var(--c) 75%, #000); font-weight: 700; font-size: .82rem; flex-shrink: 0; }
.avatar-lg { width: 58px; height: 58px; font-size: 1.15rem; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow); }
.kpi > .material-symbols-outlined { width: 42px; height: 42px; border-radius: 10px; background: var(--gold-soft); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.kpi strong { display: block; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.kpi span { font-size: .8rem; color: var(--muted); }

/* ---------- Listas ---------- */
.timeline, .list { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 52px 14px 1fr auto; align-items: center; gap: 10px; padding: 10px 6px; border-radius: var(--r-sm); cursor: pointer; }
.timeline li:hover, .list li[data-appointment]:hover { background: var(--surface-2); }
.timeline li.is-past { opacity: .55; }
.tl-time { font-weight: 700; font-variant-numeric: tabular-nums; }
.tl-dot { --c: var(--gold); width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.tl-body { display: flex; flex-direction: column; min-width: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--surface-2); }
.list li:last-child { border-bottom: 0; }
.list li[data-appointment] { cursor: pointer; border-radius: var(--r-sm); }
.list li > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.list-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.list form { margin: 0; }
.muted-list li { opacity: .7; }

/* ---------- Tablas ---------- */
.table-card { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--surface-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: #FBFAF7; }
.table.compact td, .table.compact th { padding: 8px 4px; }
.pager-nav { display: flex; align-items: center; justify-content: center; gap: 14px; }

/* edición en línea de servicios */
.row-form { padding: 10px 16px !important; }
.inline-form { display: flex; align-items: center; gap: 10px; margin: 0; }
.inline-form input { min-height: 36px; padding: 6px 10px; border: 1px solid transparent; border-radius: var(--r-sm); font: inherit; background: transparent; }
.inline-form input:hover { border-color: var(--border); }
.inline-form input:focus { outline: none; border-color: var(--gold); background: #fff; }
.if-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.if-main input:first-child { font-weight: 600; }
.muted-input { color: var(--muted); font-size: .85rem !important; min-height: 28px !important; }
.w-cat { width: 110px; } .w-min { width: 96px; } .w-price { width: 120px; } .w-count { width: 50px; }
.input-suffix, .input-prefix { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--r-sm); background: #fff; overflow: hidden; }
.input-suffix input, .input-prefix input { border: 0 !important; min-width: 0; width: 100%; }
.input-suffix span, .input-prefix span { padding: 0 10px; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 22px; background: #d5cfc4; cursor: pointer; transition: background .2s; }
.switch span::after { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(18px); }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-size: .8rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea { min-height: 40px; padding: 8px 12px; border-radius: var(--r-sm); border: 1px solid var(--border); background: #fff; font: inherit; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.field input[type=color] { padding: 4px; height: 40px; width: 70px; }
.field em, .field small { font-style: normal; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-wide { grid-column: 1 / -1; }
.form-stack { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: .92rem; }
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--primary); }
.check-list { display: grid; gap: 10px; }
.filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr) auto; gap: 12px; align-items: end; }
.filters-actions { display: flex; gap: 8px; }
.sticky-save { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 40%); display: flex; justify-content: flex-end; }
.mini-stats { margin: 18px 0 0; display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--surface-2); }
.mini-stats div { display: flex; justify-content: space-between; }
.mini-stats dt { color: var(--muted); }
.mini-stats dd { margin: 0; font-weight: 600; }
.segmented { display: flex; border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.segmented a { padding: 7px 14px; text-decoration: none; font-size: .85rem; font-weight: 600; color: var(--muted); }
.segmented a.active { background: var(--primary); color: #fff; }

/* ---------- Agenda ---------- */
.agenda-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.date-nav { display: flex; align-items: center; gap: 6px; }
.date-nav h2 { font-size: 1.1rem; margin: 0 8px; }
.date-pick input { min-height: 34px; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 4px 8px; font: inherit; }
.legend { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; }
.tone-info { --tone: var(--info); --tone-bg: var(--info-bg); }
.tone-ok { --tone: var(--ok); --tone-bg: var(--ok-bg); }
.tone-err { --tone: var(--err); --tone-bg: var(--err-bg); }
.tone-warn { --tone: var(--warn); --tone-bg: var(--warn-bg); }
.tone-muted { --tone: var(--muted); --tone-bg: var(--surface-2); }
.legend-dot { background: var(--tone-bg); border: 2px solid var(--tone); }
.agenda-wrap { padding: 0; overflow: auto; max-height: calc(100vh - 230px); }
.agenda { display: grid; grid-template-columns: 58px repeat(var(--cols), minmax(170px, 1fr)); min-width: calc(58px + var(--cols) * 170px); }
.ag-corner { position: sticky; top: 0; left: 0; z-index: 4; background: #fff; border-bottom: 1px solid var(--border); }
.ag-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px; background: #fff; border-bottom: 1px solid var(--border); border-left: 1px solid var(--surface-2); }
.ag-head div { display: flex; flex-direction: column; line-height: 1.25; }
.ag-hours { position: sticky; left: 0; z-index: 2; background: #fff; border-right: 1px solid var(--border); }
.ag-hours span { position: absolute; right: 8px; transform: translateY(-50%); font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ag-hours span:first-child { transform: none; }
.ag-col { position: relative; border-left: 1px solid var(--surface-2); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 83px, var(--surface-2) 83px, var(--surface-2) 84px); cursor: copy; }
.ag-off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(-45deg, #f3f0ea 0 6px, #ebe7df 6px 12px); display: flex; align-items: center; justify-content: center; cursor: not-allowed; }
.ag-off span { font-size: .72rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.ag-break { background: #F1EEE8; }
.ag-block { background: repeating-linear-gradient(-45deg, #fbe7e4 0 6px, #f6dad6 6px 12px); z-index: 1; }
.ag-block span { color: var(--err); font-weight: 600; }
.ag-appt { --c: var(--gold); position: absolute; left: 4px; right: 4px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 4px 8px 4px 10px; border-radius: 8px; border: 0; border-left: 4px solid var(--c); background: var(--tone-bg); color: var(--text); text-align: left; font: inherit; font-size: .78rem; line-height: 1.25; overflow: hidden; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.ag-appt:hover { box-shadow: 0 3px 10px rgba(0,0,0,.14); z-index: 2; }
.ag-appt strong { font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ag-time { font-weight: 700; color: var(--tone); font-size: .72rem; }
.ag-svc { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ag-appt.is-short { flex-direction: row; align-items: center; gap: 6px; }
.ag-appt.is-short .ag-svc { display: none; }
.ag-appt.tone-ok, .ag-appt.tone-err { opacity: .78; }
.ag-web { position: absolute; top: 4px; right: 6px; font-size: 14px; color: var(--muted); }
.ag-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--err); z-index: 3; pointer-events: none; }
.ag-now::before { content: ''; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--err); }

/* ---------- Panel lateral y modal ---------- */
.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; background: rgba(21,19,15,.35); z-index: 80; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; z-index: 90; box-shadow: -8px 0 30px rgba(0,0,0,.15); transform: translateX(105%); transition: transform .25s ease; display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; gap: 10px; padding: 20px 20px 14px; border-bottom: 1px solid var(--border); }
.drawer-head h2 { font-size: 1.25rem; margin: 8px 0 2px; }
.drawer-head p { margin: 0; }
.drawer-body { padding: 16px 20px 30px; overflow-y: auto; display: grid; gap: 20px; }
.d-section h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.d-customer { display: flex; flex-direction: column; text-decoration: none; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); }
.d-customer:hover { background: var(--gold-soft); }
.d-contact { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: .88rem; }
.d-contact a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--info); }
.d-note { margin: 8px 0 0; padding: 8px 10px; border-radius: var(--r-sm); background: var(--warn-bg); color: var(--warn); font-size: .85rem; }
.d-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.d-grid dt { font-size: .72rem; color: var(--muted); }
.d-grid dd { margin: 0; font-weight: 600; }
.d-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.modal-backdrop { display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: #fff; border-radius: var(--r-lg); width: min(640px, 100%); max-height: 92vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.25); margin: 0; }
.modal-head, .modal-foot { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; }
.modal-head { border-bottom: 1px solid var(--border); }
.modal-foot { border-top: 1px solid var(--border); justify-content: flex-end; gap: 8px; }
.modal-body { padding: 18px 20px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--primary); color: #fff; padding: 11px 18px; border-radius: var(--r-sm); font-size: .88rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 120; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Equipo ---------- */
.team-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.barber-card { text-decoration: none; display: grid; gap: 14px; transition: box-shadow .15s; }
.barber-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.barber-card.is-inactive { opacity: .6; }
.barber-top { display: flex; gap: 14px; align-items: center; }
.barber-top h2 { font-size: 1.1rem; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.week-day { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-size: .66rem; text-align: center; }
.week-day strong { font-size: .72rem; }
.week-day.on { background: var(--gold-soft); color: #6b5310; }
.barber-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.barber-stats div { display: flex; flex-direction: column; }
.barber-stats strong { font-size: 1.05rem; }
.barber-stats span { font-size: .74rem; color: var(--muted); }
.sched { display: grid; gap: 6px; }
.sched-row { display: grid; grid-template-columns: 160px repeat(4, 1fr); gap: 10px; align-items: center; }
.sched-row input[type=time] { min-height: 38px; padding: 4px 8px; border: 1px solid var(--border); border-radius: var(--r-sm); font: inherit; }
.sched-row.is-off input[type=time] { opacity: .35; pointer-events: none; }
.sched-head span { font-size: .74rem; color: var(--muted); font-weight: 600; }

/* ---------- Reportes ---------- */
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; align-items: end; height: 240px; padding-top: 10px; }
.bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.bar { width: 100%; max-width: 70px; background: linear-gradient(180deg, #D9B44A, var(--gold)); border-radius: 8px 8px 3px 3px; }
.bar-value { font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar-label { font-size: .78rem; color: var(--muted); }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hbar-top { display: flex; justify-content: space-between; margin-bottom: 4px; }
.hbar { height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin-bottom: 3px; }
.hbar div { height: 100%; border-radius: 6px; }

/* ---------- Login ---------- */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(700px 400px at 70% 0%, rgba(201,162,39,.18), transparent 70%), #15130F; }
.login-card { width: min(400px, 100%); background: #fff; border-radius: var(--r-lg); padding: 32px 28px; display: grid; gap: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.login-card img { justify-self: center; border-radius: 14px; }
.login-card h1 { text-align: center; font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 1.5rem; }
.login-card > p { text-align: center; margin: -10px 0 0; }
.login-card > a { text-decoration: none; }
.demo-creds { background: var(--gold-soft); border-radius: var(--r-md); padding: 12px 14px; font-size: .88rem; display: grid; gap: 4px; color: #4d3b0b; }
.demo-creds code { background: #fff; padding: 1px 6px; border-radius: 4px; }
.demo-creds .btn { justify-self: start; margin-top: 6px; }
.login-card .field span { font-size: .8rem; font-weight: 600; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-2 { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s; }
  .sidebar.open { transform: translateX(0); box-shadow: 10px 0 30px rgba(0,0,0,.3); }
  .main { margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 12px 16px; }
  .content { padding: 16px 16px 50px; }
  .demo-note { margin: 12px 16px 0; }
  .form-grid, .form-row { grid-template-columns: 1fr; }
  .inline-form { flex-wrap: wrap; }
  .if-main { flex-basis: 100%; }
  .sched-row { grid-template-columns: 1fr 1fr; }
  .sched-row .check { grid-column: 1 / -1; }
  .sched-head { display: none; }
  .bars { gap: 8px; }
  .bar-value { font-size: .62rem; }
}
