/* Bookings page Home (home.js): greeting and period buttons, a numbers row, the chart, and four panels. */
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.home-title { margin: 0; font-size: clamp(24px, 3vw, 32px); }
.home-sub { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.home-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.home-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wrap[data-section="home"] .page-top > .btn-page { display: none; } /* on Home it sits next to the day buttons */
.home-range { display: inline-flex; padding: 3px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.home-range button { height: 32px; padding: 0 12px; border: 0; border-radius: 99px; background: none; font: 600 13px/1 var(--body); color: var(--muted); cursor: pointer; white-space: nowrap; }
.home-range button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.home-main { padding: 0; overflow: hidden; }
.home-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
@media (min-width: 961px) { .home-strip.no-money { grid-template-columns: repeat(5, minmax(0, 1fr)); } } /* no Value booked without Takings */
.home-m { padding: 14px 16px; min-width: 0; }
.home-m span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-m b { display: block; margin-top: 4px; font-size: 24px; letter-spacing: -.02em; }
.home-m small { font-size: 12px; font-weight: 700; color: var(--muted); } .home-m small.up { color: #16a34a; } .home-m small.down { color: #d33; }
.home-chart { padding: 16px 18px 12px; }
.home-svg { display: block; width: 100%; height: 220px; overflow: visible; }
.home-axis { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 12px; }
.home-axis.each span { flex: 1; text-align: center; }
.home-key { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-top: 10px; color: var(--muted); font-size: 12px; font-weight: 600; }
.home-who { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px 0 10px; border: 0; border-radius: 99px; background: var(--soft); font: 700 12px/1 var(--body); color: var(--ink); cursor: pointer; transition: opacity .2s; }
.home-who i { width: 12px; height: 12px; border-radius: 4px; } .home-who[aria-pressed="false"] { opacity: .45; } .home-who[aria-pressed="false"] i { background: transparent !important; box-shadow: inset 0 0 0 2px var(--muted); }
.home-k { display: inline-flex; align-items: center; gap: 6px; } .home-k i.line { width: 14px; height: 3px; border-radius: 2px; background: #12a36b; } .home-k i.dash { width: 16px; border-top: 2px dashed var(--ink); opacity: .6; }
.home-tip { position: fixed; z-index: 50; pointer-events: none; padding: 8px 10px; border-radius: 10px; background: #0d0d12; color: #fff; font-size: 12px; white-space: nowrap; transform: translate(-50%, -115%); opacity: 0; transition: opacity .12s; }
.home-tip b { display: block; font-size: 14px; } .home-tip span { display: block; opacity: .8; }

.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.home-panel { padding: 14px 18px; min-width: 0; }
.home-ph { display: flex; align-items: center; gap: 16px; margin: -2px 0 10px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.home-ph > * { padding: 4px 0 11px; } .home-ph .r { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 600; }
.home-ph .tab { border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.home-ph .tab.on { color: var(--ink); border-bottom-color: var(--ink); }
.home-ph .link { border: 0; background: none; color: var(--pick-text); font: 600 12.5px/1 var(--body); cursor: pointer; }
.home-empty { margin: 4px 0; color: var(--muted); font-size: 13.5px; }
.home-appt { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 2px; border-top: 1px solid var(--line); }
.home-appt:first-of-type { border-top: 0; }
.home-appt time { font-weight: 800; font-size: 13.5px; } .home-appt time small { display: block; color: var(--muted); font-weight: 500; font-size: 11px; }
.home-appt p { margin: 0; min-width: 0; } .home-appt p b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .home-appt p span { color: var(--muted); font-size: 13px; }
.home-appt .bk-chip:not(.done):not(.now):not(.next):not(.noshow) { background: var(--soft); }
.home-chip { padding: 3px 9px; border-radius: 99px; background: var(--soft); color: var(--muted); font-size: 11px; font-weight: 800; white-space: nowrap; }
.home-chip.now { background: var(--pick-soft); color: var(--pick-text); } .home-chip.done { opacity: .6; }
.home-more { margin-top: 8px; }
.home-todo { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 14px; background: var(--soft); margin-bottom: 8px; }
.home-todo p { margin: 0; min-width: 0; } .home-todo b { display: block; font-size: 14px; } .home-todo span { color: var(--muted); font-size: 12.5px; }
.home-todo .btn { margin-left: auto; flex: none; }
.home-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.home-stat { padding: 12px 14px; border-radius: 12px; background: var(--soft); }
.home-stat span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.home-stat b { font-size: 24px; letter-spacing: -.02em; } .home-stat small { margin-left: 6px; color: var(--muted); font-size: 12px; }
.home-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.home-soon { padding: 2px 8px; border-radius: 99px; background: var(--soft); color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.home-cols { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.home-li { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 9px; margin-bottom: 3px; border-radius: 8px; }
.home-li > * { position: relative; min-width: 0; }
.home-bar { position: absolute !important; inset: 0 auto 0 0; border-radius: 8px; background: var(--pick-soft); }
.home-nm { display: inline-flex; align-items: center; gap: 9px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.home-sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.home-av { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #0d0d12; font-size: 9.5px; font-weight: 800; flex: none; }
.home-li b { flex: none; } .home-li b small { margin-left: 8px; color: var(--muted); font-weight: 500; }
.home-heat { display: grid; gap: 3px; font-size: 11px; color: var(--muted); }
.home-heat > span { text-align: center; } .home-heat .d { text-align: left; font-weight: 700; align-self: center; }
/* One blue, light (quiet) to dark (busy); the number is the hour's % booked (mock docs/busiest-v1, B). */
.home-heat, .home-legend { --h1: #eaf3fd; --h2: #c4dcf7; --h3: #8dbcf0; --h4: #3d8fe6; --h5: #0b5cc2; --t1: #5a7fa8; --t2: #315b8a; --t3: #0f3f75; --t4: #fff; --t5: #fff; }
:root[data-theme="dark"] .home-heat, :root[data-theme="dark"] .home-legend { --h1: rgba(86, 168, 255, .1); --h2: rgba(86, 168, 255, .24); --h3: rgba(86, 168, 255, .42); --h4: rgba(86, 168, 255, .68); --h5: #56a8ff;
  --t1: #8b9fb8; --t2: #b9cde4; --t3: #e6f0fb; --t4: #fff; --t5: #0c0c10; }
.home-heat i { display: grid; place-items: center; height: 22px; border-radius: 5px; background: var(--h3); font-style: normal; font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; transition: transform .15s; }
.home-heat i:not(.shut):hover { transform: scale(1.08); box-shadow: 0 0 0 2px var(--ink); }
.home-heat i.top { box-shadow: 0 0 0 2px var(--ink); } /* the busiest hour */
.home-heat i.h1, .home-legend i.h1 { background: var(--h1); color: var(--t1); } .home-heat i.h2, .home-legend i.h2 { background: var(--h2); color: var(--t2); }
.home-heat i.h3, .home-legend i.h3 { background: var(--h3); color: var(--t3); } .home-heat i.h4, .home-legend i.h4 { background: var(--h4); color: var(--t4); }
.home-heat i.h5, .home-legend i.h5 { background: var(--h5); color: var(--t5); }
.home-heat i.shut, .home-legend i.shut { background: repeating-linear-gradient(135deg, var(--soft) 0 4px, transparent 4px 8px); box-shadow: inset 0 0 0 1px var(--line); opacity: 1 !important; }
.home-closed { display: grid; place-items: center; height: 20px; border-radius: 5px; font-size: 11px; font-weight: 700; background: repeating-linear-gradient(135deg, var(--soft) 0 4px, transparent 4px 8px); box-shadow: inset 0 0 0 1px var(--line); }
.home-legend { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--muted); font-size: 12px; } .home-legend i { width: 14px; height: 10px; border-radius: 3px; background: var(--pick); display: inline-block; }
.home-sum { margin: 10px 0 0; padding: 9px 12px; border-radius: 12px; background: var(--soft); font-size: 13px; color: var(--muted); } .home-sum b { color: var(--ink); }

@media (max-width: 960px) { .home-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } .home-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .home-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-m b { font-size: 20px; }
  .home-svg { height: 170px; } .home-range button { padding: 0 9px; font-size: 12px; }
  .home-heat { gap: 2px; } .home-heat i, .home-closed { height: 18px; } .home-heat i { font-size: 9px; }
}
