:root {color:#20372f;background:#f5f7f3;--forest:#143d33;--forest-deep:#0e2e29;--lime:#a9d36e;--green:#235d4b;--line:#e1e8e0;--muted:#6b7b73;--surface:#fff}
body {background:#f5f7f3;color:#20372f}
.site-top {min-height:76px;padding:12px clamp(22px,3vw,48px);background:var(--forest-deep);position:relative;z-index:5;box-shadow:0 8px 28px #0e2e2918}
.brand-wrap,.header-right {display:flex;align-items:center;gap:14px}
.notification-wrap{position:relative;display:flex;align-items:center;z-index:20}
.notification-wrap [hidden]{display:none!important}
.notification-bell{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px;border-radius:999px;background:#e6f0e9;border:1px solid #b8d3c4;color:#174631;font-size:20px;cursor:pointer}
.notification-bell:hover,.notification-bell[aria-expanded="true"]{background:#d2e9da}
.notification-count{position:absolute;right:-5px;top:-7px;min-width:19px;height:19px;line-height:19px;background:#e04935;color:#fff;font:700 11px system-ui;text-align:center;border-radius:20px;padding:0 3px}
.notification-panel{position:absolute;top:52px;right:0;width:min(390px,calc(100vw - 24px));max-height:70vh;overflow:auto;padding:17px;background:#fff;color:#173c2e;border:1px solid #d3e0d7;box-shadow:0 16px 48px #001e1233;border-radius:16px}
.notification-title,.notification-actions{display:flex;align-items:center;gap:8px;justify-content:space-between;flex-wrap:wrap}
.notification-title strong{font-size:17px}
.notification-title button,.notification-actions button{font-size:12px;padding:8px}
.notification-list{margin:12px 0;display:grid;gap:5px}
.notification-item{padding:10px;border:1px solid #e6ece8;border-radius:9px;display:grid;gap:4px}
.notification-item.unread{background:#eff9ec;border-left:3px solid #86ba02}
.notification-item small{color:#5c7064;font-size:11px}
.schedule-blocks-list{display:grid;gap:9px}
.schedule-block-row{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:10px 13px;border:1px solid #e0e8e2;border-radius:12px}
.schedule-block-row>div{display:grid;gap:3px}
.schedule-block-row small{color:#677d70}
.slot-bloqueado{background:#fff3ee;border-left:4px solid #d57950}
.slot-bloqueado .status-pill{background:#ffdecf;color:#92502c}
.calendar-date-closed{border-color:#e4bba7;background:#fff9f3}
.calendar-block-label{color:#9a522b!important;font-weight:700}
.owner-phone-form{display:flex;flex-wrap:wrap;gap:12px;align-items:end}
.owner-phone-form label{flex:1 1 250px}
.owner-phone-form button{margin-bottom:2px}
.owner-command-guide{background:#eff6f1;border:1px solid #d5e5d9;border-radius:13px;padding:13px;display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin-top:14px}
.owner-command-guide strong,.owner-command-guide small{flex-basis:100%}
.owner-command-guide code{font:600 12px ui-monospace,monospace;padding:6px 10px;border-radius:7px;background:#fff;color:#164b33}
.owner-command-guide small{color:#567160}
.owner-alert-toggle{margin-top:12px}
@media(max-width:760px){.notification-panel{position:fixed;left:12px;right:12px;top:64px;width:auto;max-height:72vh}}
.brand-mark {display:grid;place-items:center;width:40px;height:40px;background:var(--lime);color:var(--forest-deep);border-radius:12px;font-weight:900;font-size:24px;transform:rotate(-5deg)}
.site-top .brand {font-size:24px;letter-spacing:-1.2px}
.site-top .badge {margin-left:10px;font-size:10px;color:#cbdfc4;border:1px solid #8ba68e64;border-radius:30px;padding:7px 12px}
.top-hint {font-size:12px;color:#b5cec1}
.site-top #logout {background:#284c43;border-color:#527568;color:#fff;padding:9px 17px;min-height:36px}
.site-main {max-width:none;padding:0;margin:0;min-height:calc(100vh - 148px)}
.site-main > #message:not(:empty) {margin:0 24px 0;top:8px}
.site-main > .notice {margin:18px}
#login {margin:7vh auto 5vh}
.app-shell {display:grid;grid-template-columns:252px minmax(0,1fr);max-width:1700px;margin:auto;min-height:calc(100vh - 135px)}
.sidebar {background:var(--forest);color:#dcebe1;padding:30px 14px 22px;display:flex;flex-direction:column;min-height:calc(100vh - 76px);box-shadow:inset -1px 0 #c8e4c71c}
.sidebar-caption {padding:0 17px 20px;font-size:11px;font-weight:750;letter-spacing:1.8px;color:#c3ddca}
.sidebar nav {padding:0;display:flex;flex-direction:column;gap:4px;overflow:visible;white-space:normal}
.sidebar .nav-group {font-size:10px;font-weight:800;letter-spacing:1.3px;color:#96b7a6;margin:22px 14px 8px}
.sidebar .nav-group:first-child {margin-top:2px}
.sidebar nav button {display:flex;align-items:center;gap:12px;width:100%;text-align:left;min-height:45px;padding:12px 14px;border-radius:9px;background:transparent;color:#d9e8df;font-size:13px;letter-spacing:0;font-weight:630;transition:background .16s,color .16s}
.sidebar nav button span {width:21px;text-align:center;font-size:18px;line-height:1;color:#afd0bd}
.sidebar nav button:hover {background:#2a5b4a;filter:none}
.sidebar nav button.selected {background:var(--lime);color:#173c2d;box-shadow:0 4px 16px #0b2e1933}
.sidebar nav button.selected span {color:#173c2d}
.sidebar-bottom {margin-top:auto;padding:30px 16px 4px;color:#d2e7d7;font-weight:650;font-size:12px}
.sidebar-bottom small {display:block;margin:9px 0 0 16px;color:#9ab7a6;font-weight:450}
.status-dot {display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--lime);box-shadow:0 0 0 3px #a9d36e20;margin-right:8px}
.panel-content {min-width:0;padding:30px clamp(22px,3vw,50px) 72px;background:#f5f7f3}
.panel-section {max-width:1390px}
.page-heading {display:flex;justify-content:space-between;align-items:center;gap:20px;margin:5px 0 26px}
.page-heading h1 {margin:5px 0 7px;font-size:clamp(26px,2.5vw,38px);font-weight:790;letter-spacing:-1.45px;color:#143a32}
.page-heading p:not(.eyebrow) {color:#667a71;margin:0;font-size:14px}
.page-heading .eyebrow {font-size:11px;letter-spacing:1.7px;color:#5e9272}
.page-heading label {margin:0;min-width:170px;color:#4f6b5c}
.page-heading input {margin-top:7px;min-height:42px}
.heading-actions {display:flex;gap:10px;align-items:end}
.heading-actions > button {margin-bottom:0}
.panel-content .card {border:1px solid var(--line);border-radius:17px;padding:24px;background:var(--surface);box-shadow:0 4px 24px #1b4c2810;margin-bottom:20px}
.panel-content h2 {font-size:20px;font-weight:760;letter-spacing:-.6px;color:#194739}
.panel-content h3 {color:#194739}
.panel-content .card .eyebrow {margin-bottom:6px}
.panel-content label {color:#335f4d}
.panel-content input,.panel-content select {background:#fff;min-height:44px;border-color:#cad9cf}
.panel-content button {background:var(--green);font-weight:700}
.panel-content button.secondary {background:#f4f8f1;color:#275746;border:1px solid #d5e5d6}
.panel-content button:focus-visible,.sidebar button:focus-visible {outline:3px solid #92ba52;outline-offset:2px}
.panel-content button:disabled {background:#dce7df;color:#668273;cursor:not-allowed}
.stat-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 20px}
.metric {padding:22px 19px 18px;background:#fff;border-radius:16px;border:1px solid var(--line);box-shadow:0 4px 18px #2a5e3010;min-width:0}
.metric>span {display:block;font-size:12px;font-weight:700;color:#647e6f;margin-bottom:15px}
.metric strong {display:block;font-size:clamp(22px,2.4vw,32px);letter-spacing:-1.4px;color:var(--forest-deep);line-height:1.2;overflow-wrap:anywhere}
.metric small {display:block;font-size:11px;color:#819185;margin-top:11px;line-height:1.45}
.dashboard-grid {display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,.85fr);gap:18px}
.dashboard-grid .card {margin:0}
.dashboard-agenda {min-height:410px}
.dashboard-grid .section-title {margin-bottom:20px}
.dashboard-grid .section-title .secondary {white-space:normal}
.week-strip {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-bottom:18px}
.panel-content .week-day {background:#f5f8f2;border:1px solid #e3ebdf;color:#5c7466;border-radius:11px;min-height:66px;padding:11px 3px;display:flex;flex-direction:column;align-items:center;gap:5px}
.week-day small {font-size:11px;font-weight:600;text-transform:uppercase}
.week-day strong {font-size:19px}
.panel-content .week-day.active {background:var(--forest);color:#fff}
.agenda-mini-row {display:flex;align-items:center;gap:15px;padding:14px 0;border-bottom:1px solid var(--line)}
.agenda-mini-row:last-child {border-bottom:0}
.agenda-time {color:#217454;font-weight:790;font-size:15px;font-variant-numeric:tabular-nums;min-width:48px}
.agenda-mini-detail {min-width:0;flex:1}
.agenda-mini-detail strong,.agenda-mini-detail small {display:block;overflow-wrap:anywhere}
.agenda-mini-detail strong {font-size:13px}
.agenda-mini-detail small {color:#7b8b80;margin-top:4px;font-size:11px}
.status-pill {display:inline-flex;align-items:center;width:max-content;background:#e6f1e8;color:#2c7254;border:1px solid #d1e7d4;border-radius:30px;font-size:10px;font-weight:700;padding:5px 9px;text-transform:capitalize}
.status-warning,.status-falta,.status-cancelado {background:#fff2e2;color:#a2642c;border-color:#f3dec1}
.status-completed,.status-concluido {background:#e5f3eb;color:#246846;border-color:#cce5d3}
.finance-line {display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px;color:#677b6b}
.finance-line strong {font-size:15px;color:#274f41;text-align:right}
.divider-soft {height:1px;background:var(--line);margin:22px 0}
.equilibrium {background:#f3f8ef;border:1px solid #e0e9d9;border-radius:13px;padding:16px;margin:15px 0}
.equilibrium span,.equilibrium strong,.equilibrium small {display:block}
.equilibrium span {color:#53795d;font-size:11px;font-weight:750;margin-bottom:8px}
.equilibrium strong {font-size:21px;letter-spacing:-.6px;color:#285f48}
.equilibrium small {color:#788b79;font-size:11px;margin-top:8px;line-height:1.5}
.wide {width:100%}
.data-disclaimer {font-size:11px;color:#7a8e80;margin:15px 0 0}
.empty-state {background:#f6f8f4;border:1px dashed #dfe7de;border-radius:12px;padding:20px;color:#819185;text-align:center;font-size:13px}
.record-list {max-height:620px;overflow:auto}
.record {display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding:15px 0}
.record:last-child {border-bottom:none}
.record>div {min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.record strong {font-size:13px;color:#274d3e;overflow-wrap:anywhere}
.record small {font-size:11px;color:#788a7d;line-height:1.5;overflow-wrap:anywhere}
.record button {flex:none}
.record .status-pill {margin-top:5px}
.management-grid {grid-template-columns:minmax(0,.93fr) minmax(0,1.08fr)}
.report-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
.report-grid .card:last-child {grid-column:span 2}
.amount-positive {color:#2a8061!important}
.amount-negative {color:#b56c36!important}
.qr-placeholder {border:2px dashed #d5e4d9;background:#f8fbf7;border-radius:18px;padding:34px 24px;text-align:center;margin:16px 0}
.qr-placeholder span {display:block;font-size:50px;letter-spacing:-7px;color:#91ba9c;line-height:1.1;margin-bottom:14px}
.qr-placeholder strong {display:block;color:#3e6756}
.qr-placeholder p {color:#748c7b;font-size:12px;max-width:400px;margin:12px auto}
footer {background:#f5f7f3;padding:20px;color:#8a9b8e}
@media(max-width:1320px){.stat-grid {grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid {grid-template-columns:minmax(0,1fr)}.metric strong {font-size:27px}}
@media(max-width:1020px){.app-shell {grid-template-columns:204px minmax(0,1fr)}.sidebar {padding:20px 8px}.sidebar nav button {padding:11px 9px;font-size:12px;gap:6px}.panel-content {padding:25px 20px 55px}.management-grid {grid-template-columns:1fr}}
@media(max-width:760px){.site-top {padding:13px 18px;min-height:68px}.top-hint {display:none}.site-top .brand {font-size:21px}.site-top .badge {font-size:9px;padding:5px 8px;margin-left:0}.brand-mark {width:34px;height:34px;font-size:20px}.brand-wrap {gap:8px}.app-shell {display:block}.sidebar {min-height:0;padding:8px 12px 13px;position:relative;box-shadow:none}.sidebar-caption,.sidebar-bottom,.sidebar .nav-group {display:none}.sidebar nav {display:flex;flex-direction:row;overflow-x:auto;gap:6px;padding:0;white-space:nowrap;scrollbar-width:thin}.sidebar nav button {width:auto;flex:none;border:1px solid #ffffff1a;padding:8px 11px;min-height:39px;font-size:12px}.sidebar nav button span {font-size:15px;width:auto}.panel-content {padding:23px 15px 40px}.page-heading {display:block;margin-bottom:19px}.page-heading h1 {font-size:28px}.heading-actions {margin-top:15px}.page-heading>label {display:block;margin-top:15px}.stat-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric {padding:16px 13px}.metric strong {font-size:21px;letter-spacing:-.7px}.metric>span {font-size:11px;margin-bottom:10px}.metric small {font-size:10px}.panel-content .card {padding:18px;border-radius:14px}.dashboard-grid .section-title {display:block}.dashboard-grid .section-title button {margin-top:14px}.week-strip {gap:4px}.panel-content .week-day {min-height:60px}.agenda-mini-row {gap:9px;flex-wrap:wrap}.agenda-mini-row .status-pill {margin-left:57px}.report-grid {grid-template-columns:1fr}.report-grid .card:last-child {grid-column:auto}.record {align-items:flex-start}.record button {padding:8px 11px;min-height:35px}.two {grid-template-columns:1fr}.hours {min-width:0;border-left:0;padding:0}.finance-stat-grid {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.stat-grid {grid-template-columns:1fr 1fr}.metric strong {font-size:19px}.header-right #logout {padding:8px 9px}.site-top .badge {display:none}}
@media(prefers-reduced-motion:reduce){.sidebar nav button {transition:none}}

/* Vendas v4: registro detalhado com leitura rápida por categoria. */
.sales-records{max-height:700px}
.sale-record{padding:17px 0;border-bottom:1px solid #e1e8e0}
.sale-record:last-child{border-bottom:0}
.sale-record-header,.sale-record-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap}
.sale-record-header>div:first-child{display:grid;gap:6px}
.sale-record-header strong{font-size:14px;color:#1c4839}
.sale-record-header small,.sale-record-footer small{color:#73877a;font-size:12px}
.sale-record-total{display:grid;gap:6px;justify-items:end}
.sale-record-items{display:flex;gap:8px;flex-wrap:wrap;margin:13px 0}
.sale-detail-line{display:grid;gap:4px;padding:9px 12px;border:1px solid #dfe9df;border-radius:10px;background:#f6faf4}
.sale-detail-line strong{font-size:12px}
.sale-detail-line small{color:#677d6e;font-size:11px}
.sales-category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:12px}
.sale-category-card{border:1px solid #e0e9e0;border-radius:13px;background:#f8fbf6;padding:17px;display:grid;gap:8px}
.sale-category-card small{color:#60816b;font-size:12px}
.sale-category-card strong{color:#1e5a43;font-size:20px}
.sale-picker{display:grid;grid-template-columns:120px minmax(0,1fr) 80px auto;gap:9px;align-items:end;margin-bottom:12px}
.sale-picker label{margin:0}
.sale-picker button{margin-bottom:1px}
.sale-basket{margin:10px 0 17px;border:1px solid #e1eae1;padding:8px 14px;border-radius:12px}
.sale-basket-row{display:flex;gap:12px;align-items:center;justify-content:space-between;border-bottom:1px solid #e3ece4;padding:9px 0}
.sale-basket-row:last-child{border-bottom:0}
.sale-basket-row>span{flex:1;min-width:0;display:grid;gap:4px}
.sale-basket-row small{color:#738778;font-size:11px}
.sale-total{display:grid;gap:6px;align-self:center;padding:12px 15px;background:#edf6e9;border-radius:11px}
.sale-total span{color:#557760;font-size:11px}
.sale-total strong{font-size:24px;color:#21563f}
@media(max-width:760px){.sale-picker{grid-template-columns:minmax(0,1fr) 90px}.sale-picker label:first-child{grid-column:1/3}.sale-picker button{align-self:end}.sale-record-total{justify-items:start}}

/* Gestão v2: tabelas compactas, agenda mensal e edição em janelas. */
.panel-content .primary-action {background:#235d4b;color:#fff;white-space:nowrap;padding:12px 19px;min-height:43px}
.panel-content .primary-action:hover {background:#1a503f}
.toolbar {display:flex;gap:14px;align-items:end;flex-wrap:wrap;margin:14px 0 18px}
.toolbar label {margin:0;flex:0 1 200px;font-size:12px}
.toolbar .toolbar-search {flex:1 1 290px}
.toolbar label input,.toolbar label select {margin:6px 0 0}
.list-columns {display:grid;align-items:center;gap:14px;padding:14px 10px;border-bottom:1px solid #e1e8e0;min-width:0}
.list-columns>div {min-width:0}
.list-columns>div strong,.list-columns>div small,.list-columns>span strong,.list-columns>span small {display:block;overflow-wrap:anywhere}
.list-columns strong {color:#234a39;font-size:13px}
.list-columns small {color:#7a8d80;font-size:11px;margin-top:5px}
.list-columns>span {font-size:12px;color:#567163}
.list-columns>button {justify-self:end;min-height:33px;padding:7px 11px}
.list-clients {grid-template-columns:minmax(200px,2fr) minmax(60px,.48fr) minmax(60px,.48fr) minmax(130px,1fr) 74px}
.list-services {grid-template-columns:minmax(185px,2fr) minmax(105px,1fr) minmax(75px,.7fr) minmax(160px,1.4fr) 76px}
.responsive-list>.list-columns:first-child {background:#f4f8f3;border-radius:10px;color:#5f816c;font-weight:750;font-size:11px;text-transform:uppercase;letter-spacing:.3px}
.customer-row:hover,.service-row:hover {background:#f9fbf8;border-radius:7px}
.customer-list {max-height:65vh;overflow-y:auto}
.service-compact-list {max-height:70vh;overflow-y:auto}
.editor-dialog {width:min(540px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:min(90vh,800px);overflow-y:auto;border:1px solid #d7e7d9;background:#fff;border-radius:20px;padding:26px;box-shadow:0 24px 80px #102e254a;color:#20372f}
.editor-dialog-wide {width:min(660px,calc(100vw - 24px))}
.editor-dialog::backdrop {background:#07281fcc;backdrop-filter:blur(3px)}
.dialog-heading {display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:17px}
.dialog-heading h2 {margin:5px 0 0;font-size:24px;letter-spacing:-.6px;color:#163b2e}
.dialog-heading .eyebrow {font-size:11px;font-weight:800;letter-spacing:1.3px;color:#57936c;margin:0}
.editor-dialog label {display:block;color:#285242;margin-bottom:13px;font-weight:700;font-size:13px}
.editor-dialog input,.editor-dialog select {display:block;width:100%;background:#fff;min-height:44px;border:1px solid #cfddd1;border-radius:9px;margin-top:6px;padding:10px 11px}
.editor-dialog input:read-only:not([type="hidden"]) {background:#f0f5f0;color:#607b68}
.editor-dialog input[type="checkbox"] {width:auto;display:inline;margin:0 7px 0 0;min-height:auto}
.editor-dialog .check {display:flex;align-items:center;gap:7px}
.dialog-close {border-radius:50%;min-width:38px;min-height:38px;font-size:26px;line-height:1;padding:0 0 3px}
.dialog-actions {display:flex;justify-content:flex-end;gap:10px;margin-top:18px;flex-wrap:wrap}
.dialog-actions button {min-height:42px;padding:10px 17px}
.editor-dialog button:focus-visible,.calendar-date:focus-visible {outline:3px solid #92ba52;outline-offset:2px}
.editor-dialog form .muted {font-size:12px;color:#7d8e82;line-height:1.45}
.editor-dialog .slots {max-height:180px;overflow:auto;display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.editor-dialog .slots button {min-height:36px;padding:7px 10px}
.editor-dialog .two {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.dashboard-finance-actions {display:flex;gap:9px;flex-wrap:wrap}
.dashboard-finance-actions button {flex:1 1 150px;min-height:42px}
.count-chip {display:inline-flex;align-items:center;justify-content:center;min-width:26px;padding:3px 7px;background:#e0f0d7;color:#28583e;border-radius:999px;font-size:12px;vertical-align:middle;margin-left:3px}
.quick-waitlist {margin-top:18px}
.waitlist-list {display:grid;gap:0;max-height:400px;overflow:auto}
.waitlist-row {display:grid;grid-template-columns:minmax(210px,1.6fr) minmax(110px,.75fr) minmax(140px,.9fr) auto;align-items:center;gap:15px;padding:13px 4px;border-bottom:1px solid var(--line)}
.waitlist-row:last-child {border-bottom:0}
.waitlist-row strong {display:block;font-size:13px;color:#295340}
.waitlist-row small {display:block;font-size:11px;color:#819087;margin-top:5px;overflow-wrap:anywhere}
.waitlist-row .status-pill {justify-self:start}
.waitlist-row button {justify-self:end;min-height:35px;padding:8px 13px}
.waitlist-row>.muted {font-size:11px;margin:0}
.agenda-overview-grid {display:grid;grid-template-columns:minmax(340px,.9fr) minmax(350px,1.1fr);gap:18px;align-items:start}
.agenda-overview-grid>.card {margin-bottom:0;min-width:0}
.month-actions {display:flex;gap:7px;align-items:center}
.month-actions input {width:146px;margin:0;padding:7px 8px;min-height:38px}
.month-actions button,.day-navigation button {font-size:18px;min-height:38px;padding:5px 11px;line-height:1}
.calendar-month {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-top:15px}
.calendar-weekday {text-align:center;font-size:11px;font-weight:800;color:#7b8e81;padding:7px 0}
.calendar-empty {min-height:65px}
.panel-content .calendar-date {display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:5px;background:#f7f9f5;border:1px solid #e5ece3;border-radius:10px;padding:9px;min-height:67px;color:#2f5542;min-width:0;text-align:left}
.calendar-date>span {font-size:16px;font-weight:800}
.calendar-date small {font-size:9px;font-weight:700;color:#4e9362;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.calendar-date small.calendar-no-book {color:#a2afa5;font-weight:500}
.panel-content .calendar-date.chosen {background:#154336;color:#fff;border-color:#154336}
.calendar-date.chosen small,.calendar-date.chosen small.calendar-no-book {color:#cceacf}
.panel-content .calendar-date.is-today:not(.chosen) {border:2px solid #90bb60}
.calendar-note {font-size:11px;line-height:1.5;margin-top:15px}
.day-navigation {gap:9px;margin:16px 0 13px}
.day-navigation label {flex:1 1 130px}
.day-navigation input {min-width:130px}
.day-navigation select {min-width:100px}
.slot-list {max-height:545px;overflow:auto;border:1px solid #e5ece4;border-radius:12px;padding:3px 12px}
.slot-row {display:flex;align-items:center;gap:10px;border-bottom:1px solid #e8eee7;padding:11px 0;min-height:61px}
.slot-row:last-child {border-bottom:0}
.slot-row.slot-ocupado {background:#fff9f0;border-radius:8px;padding-left:8px;padding-right:8px}
.slot-row.slot-reservado {background:#faf8ef;border-radius:8px}
.slot-hour {color:#226e4f;min-width:47px;font-size:14px;font-weight:800;font-variant-numeric:tabular-nums}
.slot-detail {flex:1;min-width:0}
.slot-detail strong,.slot-detail small {display:block;overflow-wrap:anywhere}
.slot-detail strong {font-size:12px;color:#294c3c}
.slot-detail small {font-size:10px;color:#829488;margin-top:5px}
.slot-row .status-pill {margin-left:auto;flex-shrink:0}
.slot-row button {flex-shrink:0;min-height:31px;font-size:11px;padding:6px 10px}
.slot-encerrado {opacity:.58}
.appointment-actions {max-height:430px;overflow:auto}
.appointment-actions .item {border-bottom:1px solid var(--line);padding:13px 0}
.appointment-actions .item button {min-height:34px;font-size:12px;padding:7px 11px}
@media(max-width:1280px){.agenda-overview-grid {grid-template-columns:1fr}}
@media(max-width:960px){.waitlist-row {grid-template-columns:minmax(160px,1fr) minmax(115px,.7fr);gap:10px}.waitlist-row .status-pill {justify-self:start}.waitlist-row button {justify-self:end}}
@media(max-width:760px){.page-heading>.primary-action {margin-top:15px}.toolbar {gap:9px}.toolbar label {flex:1 1 140px}.list-columns.list-clients,.list-columns.list-services {grid-template-columns:minmax(140px,1fr) minmax(80px,.5fr) auto;gap:10px}.responsive-list>.list-columns:first-child {display:none}.list-clients>span:nth-of-type(2),.list-services>span:nth-of-type(2) {display:none}.list-clients>span:nth-of-type(3),.list-services>span:nth-of-type(3) {display:none}.list-columns>button {padding:7px 9px}.agenda-overview-grid {grid-template-columns:1fr}.month-actions input {width:130px}.calendar-month {gap:3px}.panel-content .calendar-date {padding:6px;min-height:60px}.calendar-date small {font-size:8px}.waitlist-row {grid-template-columns:1fr auto;gap:12px}.waitlist-row>div:nth-child(2) {grid-column:2}.waitlist-row>.status-pill {grid-column:1}.waitlist-row button,.waitlist-row>.muted {grid-column:2}.editor-dialog {padding:20px}.editor-dialog .two {grid-template-columns:1fr}.dashboard-finance-actions {display:block}.dashboard-finance-actions button {width:100%;margin:5px 0}.slot-row {flex-wrap:wrap}.slot-row .status-pill {margin-left:0}}
@media(max-width:420px){.list-columns.list-clients,.list-columns.list-services {grid-template-columns:minmax(125px,1fr) auto}.list-clients>span,.list-services>span {display:none}.month-actions {gap:3px}.month-actions input {width:116px}.month-actions button {padding:5px 8px}.calendar-date small {display:none}.calendar-empty {min-height:40px}.panel-content .calendar-date {min-height:45px}.waitlist-row {grid-template-columns:1fr}.waitlist-row>div:nth-child(2),.waitlist-row>.status-pill,.waitlist-row button,.waitlist-row>.muted {grid-column:1}}

/* Gestão v3: cadastros compactos, cobranças por conta, foto e demanda horária. */
.autocomplete-anchor{position:relative}
.client-suggestions{position:absolute;top:100%;left:0;right:0;z-index:25;background:white;border:1px solid #bad5be;border-radius:12px;box-shadow:0 12px 30px #123d3630;max-height:220px;overflow-y:auto;padding:5px}
.editor-dialog .client-suggestions button{display:block;width:100%;background:white;color:#204f39;text-align:left;padding:10px;border-radius:8px;min-height:44px;font-weight:600}
.client-suggestions button:hover,.client-suggestions button:focus-visible{background:#e9f5e8}
.client-suggestions button small{display:block;color:#748879;font-size:11px;margin-top:3px}
.booking-payment{margin-top:20px;border-top:1px solid #dce8dc;padding-top:12px}
.booking-payment h3{margin-bottom:5px}
.booking-payment .muted{margin-top:0}
.product-categories{display:grid;gap:21px;margin-top:16px}
.product-category-header{display:flex;align-items:center;gap:8px;margin:0 0 10px;color:#23533a;font-size:15px}
.product-category-header span{background:#e9f3e5;padding:3px 9px;border-radius:999px;font-size:11px}
.product-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(225px,1fr));gap:12px}
.product-tile{display:flex;gap:12px;align-items:flex-start;padding:12px;border:1px solid #dde9df;background:#fbfdf9;border-radius:12px;min-width:0}
.product-thumb{width:74px;height:74px;flex:none;border-radius:10px;background:#e5efe4;object-fit:cover;border:1px solid #d4e1d6}
.product-thumb-fallback{display:grid;place-items:center;font-size:29px;color:#67947a}
.product-tile-detail{display:flex;flex:1;flex-direction:column;gap:5px;min-width:0}
.product-tile-detail strong{font-size:13px;color:#254e3e;overflow-wrap:anywhere}
.product-tile-detail small{font-size:11px;color:#758b7d}
.product-tile-detail button{align-self:start;min-height:29px;margin-top:4px;padding:5px 10px}
.product-photo-preview{min-height:92px;border:1px dashed #c8daca;background:#f6faf6;border-radius:11px;color:#748c80;display:flex;align-items:center;justify-content:center;padding:10px;margin-bottom:12px;font-size:12px;overflow:hidden}
.product-photo-preview img{display:block;height:100px;width:auto;max-width:100%;object-fit:contain;border-radius:7px}
.account-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.account-card{border:1px solid #e0e9dd;border-radius:12px;padding:14px;background:#f9fcf8;display:flex;flex-direction:column;gap:5px}
.account-card strong{font-size:13px;color:#315b47}
.account-card .account-balance{font-size:21px;color:#164934;font-weight:800;letter-spacing:-.5px}
.account-card small{font-size:11px;color:#788c7e}
.account-card button{width:max-content;min-height:30px;padding:6px 10px;margin-top:5px}
.report-occupancy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:17px}
.occupancy-bars{display:grid;gap:11px;margin-top:10px}
.occupancy-row{display:grid;grid-template-columns:85px minmax(0,1fr) 57px;gap:9px;align-items:center;font-size:12px;color:#3c6850}
.occupancy-row span{font-size:11px}
.occupancy-row strong{text-align:right;font-size:11px;font-variant-numeric:tabular-nums;color:#245d44}
.occupancy-track{height:12px;background:#e7efe5;border-radius:20px;overflow:hidden}
.occupancy-fill{height:100%;background:linear-gradient(90deg,#70a963,#1f7655);border-radius:20px;max-width:100%}
.report-insights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:24px 0 8px}
.report-insights>div{padding:15px;background:#f4f9f2;border:1px solid #e1e9db;border-radius:12px}
.report-insights strong{font-size:12px;color:#285d44}
.report-insights p{margin:7px 0 0;font-size:12px}
.voice-guidance{margin-top:18px;padding-top:16px;border-top:1px solid #e2ebe1}
.voice-guidance p{font-size:12px;color:#647d70}
.voice-layout textarea{width:100%;border:1px solid #cfddd1;border-radius:9px;font:inherit;padding:11px;margin-top:6px;resize:vertical}
@media(max-width:900px){.report-occupancy-grid{grid-template-columns:1fr}.report-insights{grid-template-columns:1fr}}
@media(max-width:640px){.product-items{grid-template-columns:1fr}.account-cards{grid-template-columns:1fr}.occupancy-row{grid-template-columns:65px minmax(0,1fr) 48px}.editor-dialog .client-suggestions{max-height:175px}}

/* Gestão v5: categorias financeiras existentes e reposição de estoque. */
.purchase-category-choice{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}
.purchase-category-choice button{margin-bottom:13px;min-height:44px;white-space:nowrap}
.editor-dialog .two[hidden]{display:none}
.purchase-item-list{display:grid;gap:10px;margin:12px 0 16px}
.purchase-item-row{display:grid;grid-template-columns:minmax(0,1.35fr) 75px minmax(0,.8fr) 34px;gap:8px;align-items:end;padding:12px;background:#f7faf5;border:1px solid #dce8dc;border-radius:11px}
.purchase-item-row label{margin:0}
.purchase-item-row button{margin:0 0 2px;padding:5px;min-height:40px;font-size:20px}
.purchase-total{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:12px 0 18px;padding:14px 16px;border-radius:10px;background:#eaf5e2;color:#285a3d}
.purchase-total strong{font-size:20px}
@media(max-width:600px){.purchase-item-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 34px}.purchase-item-row label:first-child{grid-column:1/-1}.purchase-item-row label:nth-child(2){grid-column:1}.purchase-item-row label:nth-child(3){grid-column:2}.purchase-item-row button{grid-column:3;grid-row:2}.purchase-category-choice{grid-template-columns:1fr}.purchase-category-choice button{margin-top:-6px;justify-self:start}}

.attendance-detail-dialog{width:min(800px,94vw);max-height:90vh;overflow:auto;border:1px solid #d9e5d3;border-radius:20px;padding:24px;color:#173c2c;background:#fff}.attendance-detail-dialog::backdrop{background:#10271cb3}.attendance-detail-heading{display:flex;justify-content:space-between;gap:16px;align-items:start}.attendance-detail-heading h2{margin:8px 0}.attendance-metrics,.attendance-edit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.attendance-metrics>div{padding:14px;border-radius:12px;background:#f3f7ed}.attendance-metrics small,.attendance-metrics strong{display:block}.attendance-detail-dialog label{display:flex;flex-direction:column;gap:7px}.attendance-detail-dialog input,.attendance-detail-dialog select,.attendance-detail-dialog textarea{width:100%;box-sizing:border-box}.attendance-table-wrap{overflow:auto}.attendance-time-report{margin-top:24px}.attendance-time-report table{width:100%;border-collapse:collapse}.attendance-time-report th,.attendance-time-report td{padding:12px;text-align:left;border-bottom:1px solid #dce5da}.attendance-time-report th{background:#f3f7ed}.slot-row [data-attendance-open]{white-space:normal}@media(max-width:650px){.attendance-metrics,.attendance-edit-grid{grid-template-columns:1fr 1fr}.attendance-detail-dialog{padding:16px}.slot-row{flex-wrap:wrap}}@media(max-width:400px){.attendance-edit-grid{grid-template-columns:1fr}}
.attendance-active{background:#e5f1ff!important;border-left:5px solid #2875b9!important}.attendance-active .status-pill{background:#2875b9!important;color:white!important}.attendance-finished{background:#edf6e7!important}.attendance-operation{border-top:1px solid #dce5da;padding-top:18px;margin-top:20px}.attendance-consumption-row{display:flex;gap:12px;align-items:center;border-bottom:1px solid #dce5da;padding:12px 0}.attendance-consumption-row>span{flex:1}.attendance-consumption-row input{max-width:100px}.attendance-operation input[type=checkbox]{width:auto}.attendance-operation>label{display:block;margin-top:14px}

.attendance-now{display:flex;justify-content:space-between;align-items:center;gap:16px;background:#e5f1ff;border:1px solid #bad8f3;border-radius:12px;padding:16px;margin-bottom:12px}.attendance-now small{display:block;margin-top:5px}

.attendance-workstation [data-work-list]{margin:20px 0}.attendance-workstation .attendance-detail-dialog{position:static;width:100%;max-height:none;box-sizing:border-box;margin:20px 0}.agenda-mini-row button{margin-left:10px}
.sale-expand-record{border-bottom:1px solid #dce5da}.sale-expand-record>summary{display:grid;grid-template-columns:110px minmax(130px,1fr) 110px 95px 110px;gap:14px;align-items:center;padding:18px 12px;cursor:pointer;list-style:none}.sale-expand-record>summary:before{content:'▸';position:absolute;margin-left:-10px}.sale-expand-record[open]>summary:before{content:'▾'}.sale-expand-record>summary:focus-visible{outline:2px solid #2875b9}.sale-expand-record[open]>summary{background:#f1f6eb}.sale-expand-record>summary>strong:last-child{text-align:right}.sale-expand-body{padding:0 20px 20px}.sale-expand-group{padding:12px 0;border-bottom:1px solid #e5ece1}.sale-expand-group h4{margin:8px 0}.sale-expand-item{display:flex;justify-content:space-between;gap:20px;padding:7px 0}@media(max-width:700px){.sale-expand-record>summary{grid-template-columns:90px 1fr 100px}.sale-expand-record>summary>span:nth-child(3){grid-column:1}.sale-expand-record>summary>strong:last-child{grid-column:3}.sale-expand-body{padding:0 10px 15px}}

/* Compact order detail: empty sections are omitted by the renderer. */
.sale-expand-record>summary{padding:10px 12px;min-height:34px;gap:12px}
.sale-expand-record .sale-expand-body{max-width:680px;padding:8px 16px 12px;box-sizing:border-box}
.sale-expand-record .sale-expand-group{display:grid;grid-template-columns:76px minmax(0,1fr);column-gap:12px;padding:6px 0;border:0}
.sale-expand-record .sale-expand-group h4{grid-column:1;grid-row:1;margin:3px 0;font-size:12px;font-weight:600;color:#687c70}
.sale-expand-record .sale-expand-item{grid-column:2;gap:16px;padding:3px 0;font-size:13px;line-height:1.4;align-items:baseline}
.sale-expand-record .sale-expand-item>span{min-width:0;overflow-wrap:anywhere}
.sale-expand-record .sale-expand-item>strong{white-space:nowrap}
.sale-expand-record .sale-expand-payment{display:grid;grid-template-columns:76px minmax(0,1fr);column-gap:12px;border-top:1px solid #e5ece1;margin-top:6px;padding-top:8px}
.sale-expand-record .sale-expand-payment h4{grid-column:1;grid-row:1;font-size:12px;font-weight:600;color:#687c70;margin:3px 0}
.sale-expand-record .sale-expand-total{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin:6px 0 0;padding-top:6px;font-size:12px}
.sale-expand-record .sale-expand-total>strong{margin-left:auto;font-size:14px;white-space:nowrap}
.sale-expand-record .sale-expand-body>button{margin-top:8px;padding:7px 12px}
@media(max-width:480px){.sale-expand-record .sale-expand-body{padding:6px 10px 10px}.sale-expand-record .sale-expand-group,.sale-expand-record .sale-expand-payment{grid-template-columns:62px minmax(0,1fr);column-gap:8px}.sale-expand-record .sale-expand-item{gap:10px;font-size:12px}.sale-expand-record .sale-expand-total{flex-wrap:wrap}}

/* Compact attendance receipt and duration comparison. */
.attendance-detail-dialog .attendance-metrics{gap:10px;margin:12px 0}.attendance-detail-dialog .attendance-metrics>div{padding:12px}.attendance-detail-dialog .attendance-metrics small{font-size:12px;margin-bottom:5px}.attendance-clock strong{font-size:14px}.attendance-duration strong{font-size:18px}.attendance-duration .duration-blue{background:#e7f1ff;color:#155494;border:1px solid #b6d2f5}.attendance-duration .duration-green{background:#e8f5eb;color:#206138;border:1px solid #b9dfc4}.attendance-duration .duration-red{background:#ffeded;color:#a42626;border:1px solid #f3bcbc}.attendance-items{width:100%;border-collapse:collapse;font-size:14px}.attendance-items th,.attendance-items td{padding:9px 10px;border-bottom:1px solid #e2e9df;text-align:left}.attendance-items th{background:#f3f7ed;font-size:12px}.attendance-items th:not(:first-child),.attendance-items td:not(:first-child){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.attendance-items tfoot{font-weight:700;background:#f3f7ed}.attendance-detail-dialog h3{margin:18px 0 10px}@media(max-width:500px){.attendance-clock,.attendance-duration{grid-template-columns:repeat(3,minmax(0,1fr))}.attendance-detail-dialog .attendance-metrics>div{padding:8px}.attendance-clock strong{font-size:12px;overflow-wrap:anywhere}.attendance-duration strong{font-size:14px}.attendance-items th,.attendance-items td{padding:8px 5px;font-size:12px}}

.attendance-items tbody tr.consumption-service{background:#edf5ff}.attendance-items tbody tr.consumption-product{background:#f3edfc}.attendance-items tbody tr.consumption-food{background:#fff4df}.attendance-items tbody tr.consumption-service td:first-child{border-left:3px solid #4583bf}.attendance-items tbody tr.consumption-product td:first-child{border-left:3px solid #9265b8}.attendance-items tbody tr.consumption-food td:first-child{border-left:3px solid #c28a27}.consumption-legend{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:10px;font-size:12px;color:#53685b}.consumption-legend span{display:inline-flex;align-items:center;gap:6px}.consumption-legend i{width:10px;height:10px;border-radius:3px;display:inline-block}.legend-service{background:#4583bf}.legend-product{background:#9265b8}.legend-food{background:#c28a27}

/* Business overview uses the company panel palette and inherited typeface. */
#dashboard .page-heading, #dashboard .heading-actions {min-width:0;flex-wrap:wrap}
#dashboard .heading-actions label, #dashboard .heading-actions input {min-width:0;max-width:100%}
#shopInsights {color:#18342b;font-variant-numeric:tabular-nums}
#shopInsights * {box-sizing:border-box;min-width:0}
#shopInsights .si-section {margin:0 0 28px}
#shopInsights .si-period {display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 0;margin:18px 0 12px}
#shopInsights h2, #shopInsights h3, #shopInsights h4, #shopInsights p {margin:0}
#shopInsights h2 {font-size:1.32rem;letter-spacing:-.025em}
#shopInsights h3 {font-size:1.13rem;line-height:1.28;letter-spacing:-.012em}
#shopInsights .si-period span, #shopInsights small, #shopInsights .si-sub, #shopInsights .si-kpi p {color:#52665e}
#shopInsights .si-period span {font-size:.88rem;margin-left:12px}
#shopInsights .si-panel, #shopInsights .si-kpi {background:white;border:1px solid #dce5dc;border-radius:16px;padding:clamp(14px,2vw,24px)}
#shopInsights .si-panel {margin-bottom:14px}
#shopInsights .si-kpis, #shopInsights .si-summary {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px}
#shopInsights .si-kpi {border-top-width:3px}
#shopInsights .si-kpi h3 {font-size:.9rem;font-weight:600;letter-spacing:normal}
#shopInsights .si-kpi>strong, #shopInsights .si-total {display:block;font-weight:720;font-size:clamp(1.35rem,2.2vw,2.05rem);line-height:1.15;letter-spacing:-.035em;margin:10px 0}
#shopInsights .si-kpi p, #shopInsights .si-sub, #shopInsights .si-goal {font-size:.85rem;line-height:1.45}
#shopInsights .si-red {background:#fff2ee;border-color:#dfbcb0;border-top-color:#ae3b29}
#shopInsights .si-yellow {background:#fff7df;border-color:#e8d7a2;border-top-color:#aa770f}
#shopInsights .si-green {background:#edf7e9;border-color:#bdd8b5;border-top-color:#4b8445}
#shopInsights .si-blue {background:#edf5fc;border-color:#bdd1e7;border-top-color:#3f72ac}
#shopInsights .si-currency {white-space:nowrap;word-break:normal;overflow-wrap:normal}
#shopInsights .si-money-kpi {container-type:inline-size}
#shopInsights .si-money-kpi>strong {font-size:clamp(1rem,10cqi,2rem)}
#shopInsights .si-columns {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#shopInsights .si-bars, #shopInsights .si-details ul {list-style:none;margin:0;padding:0}
#shopInsights .si-bars li {padding:13px 0;border-bottom:1px solid #e5ebe5}
#shopInsights .si-bars li:last-child {border:0}
#shopInsights .si-bars li>div, #shopInsights .si-details li {display:flex;align-items:baseline;gap:4px 8px;flex-wrap:wrap;line-height:1.35}
#shopInsights .si-bars b, #shopInsights .si-details li>span:first-child {flex:1 1 9ch;overflow-wrap:anywhere}
#shopInsights .si-bars li>div, #shopInsights .si-details li {font-size:.91rem}
#shopInsights .si-bars small, #shopInsights .si-summary small, #shopInsights .si-target small {font-size:.78rem}
#shopInsights .si-bars .si-bar {width:100%;height:6px;border-radius:3px;display:block;margin:7px 0 3px}
#shopInsights .si-track {fill:#edf0eb}
#shopInsights .si-fill-services {fill:#5583b0}
#shopInsights .si-fill-products {fill:#9673ad}
#shopInsights .si-fill-food {fill:#b98532}
#shopInsights .si-dot {width:.65em;height:.65em;border-radius:50%;flex:0 0 auto}
#shopInsights .si-dot-services {background:#5583b0}
#shopInsights .si-dot-products {background:#9673ad}
#shopInsights .si-dot-food {background:#b98532}
#shopInsights .si-finance {border-top:3px solid #315d4c}
#shopInsights .si-summary {margin:18px 0;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:14px}
#shopInsights .si-summary b, #shopInsights .si-summary small {display:block}
#shopInsights .si-summary b {margin-top:2px;font-size:clamp(1rem,1.5vw,1.28rem)}
#shopInsights .si-target {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 14px;background:#f1f5eb;border-radius:10px;padding:12px 14px}
#shopInsights .si-target h4 {font-size:.93rem}
#shopInsights .si-target strong {font-size:clamp(1.05rem,2vw,1.5rem)}
#shopInsights .si-goal {margin:7px 0 0}
#shopInsights .si-chart-key {display:flex;gap:0;flex-wrap:wrap;margin:18px 0 10px;color:#4f6258;font-size:.75rem}
#shopInsights .si-chart-key span {display:inline-flex;margin:2px 15px 2px 0;align-items:center;white-space:nowrap}
#shopInsights .si-chart-key span:before {content:"";width:16px;margin-right:5px;border-top:3px solid}
#shopInsights .si-key-in:before {color:#247154}
#shopInsights .si-key-out:before {color:#b65d39}
#shopInsights .si-key-target:before {color:#615377;border-top-style:dashed!important}
#shopInsights .si-chart {display:grid;grid-template-columns:max-content minmax(0,1fr);gap:9px}
#shopInsights .si-axis {display:flex;height:145px;flex-direction:column;justify-content:space-between;text-align:right;color:#52645c;font-size:.71rem;white-space:nowrap}
#shopInsights .si-chart svg {width:100%;height:145px;display:block;overflow:visible}
#shopInsights .si-chart line, #shopInsights .si-chart polyline {fill:none;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}
#shopInsights .si-guide {stroke:#dce4de;stroke-width:1}
#shopInsights .si-line-in {stroke:#247154;stroke-width:2.5}
#shopInsights .si-line-out {stroke:#b65d39;stroke-width:2.5}
#shopInsights .si-threshold {stroke:#615377;stroke-width:1.5;stroke-dasharray:5 4}
#shopInsights .si-x {display:flex;justify-content:space-between;font-size:.72rem;color:#52645c}
#shopInsights .si-details {margin-top:10px;font-size:.82rem}
#shopInsights .si-details summary {cursor:pointer;color:#285d49;font-weight:650;padding:6px 0}
#shopInsights .si-details li {padding:7px 0;border-top:1px solid #e5ebe5}
#shopInsights .si-details li .si-currency {font-size:.82rem}
#shopInsights .si-details table {width:100%;border-collapse:collapse;font-size:.8rem}
#shopInsights .si-details th, #shopInsights .si-details td {text-align:right;padding:6px 2px;border-bottom:1px solid #e5ebe5}
#shopInsights .si-details th:first-child {text-align:left}
#shopInsights .si-week {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,77px),1fr));gap:6px;margin-top:14px}
#shopInsights .si-week>div {padding:9px 5px;border-radius:8px;text-align:center;background:#f3f6ef}
#shopInsights .si-week b, #shopInsights .si-week small, #shopInsights .si-week strong {display:block}
#shopInsights .si-week b, #shopInsights .si-week small {font-size:.74rem}
#shopInsights .si-week strong {margin:4px 0;font-size:1.05rem}
#shopInsights .si-empty {padding:14px 0;color:#53665c;font-size:.88rem}
@media(max-width:900px){#shopInsights .si-columns{grid-template-columns:1fr;gap:0}}
@media(max-width:500px){
  #shopInsights .si-panel, #shopInsights .si-kpi {padding:14px}
  #shopInsights .si-kpis {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  #shopInsights .si-money-kpi {grid-column:1/-1}
  #shopInsights .si-kpi>strong {font-size:1.55rem}
  #shopInsights .si-summary {grid-template-columns:repeat(auto-fit,minmax(min(100%,133px),1fr));gap:10px}
  #shopInsights .si-target {padding:10px;align-items:flex-start}
  #shopInsights .si-target strong {font-size:1.18rem}
  #shopInsights .si-axis {font-size:.64rem}
  #shopInsights .si-week {grid-template-columns:repeat(4,minmax(0,1fr))}
}

.fb-occupancy-key,[data-occupancy]{--occ-bg:#f1f3f0;--occ-ink:#556158;--occ-dot:#768379}
[data-band="red"],[data-occupancy="red"]{--occ-bg:#fff0ed;--occ-ink:#842c24;--occ-dot:#be4d41}
[data-band="yellow"],[data-occupancy="yellow"]{--occ-bg:#fff6d7;--occ-ink:#71520b;--occ-dot:#a67810}
[data-band="green"],[data-occupancy="green"]{--occ-bg:#e7f5e9;--occ-ink:#265b3c;--occ-dot:#398451}
[data-band="blue"],[data-occupancy="blue"]{--occ-bg:#e7f2ff;--occ-ink:#194e80;--occ-dot:#3576af}
.fb-occupancy-key{display:flex;flex-wrap:wrap;gap:6px 14px;margin:14px 0 6px;line-height:1.4;font-size:.74rem;color:#435448}
.fb-occupancy-key[hidden],#agendaCalendar [hidden]{display:none}
.fb-occupancy-key span{display:inline-flex;align-items:center;gap:5px}
.fb-occupancy-key span::before{content:"";height:8px;width:8px;background:var(--occ-dot);border-radius:50%;flex:none}
#agendaCalendar .calendar-date[data-occupancy]{background:var(--occ-bg);color:var(--occ-ink);border-color:transparent;align-items:center;text-align:center}
#agendaCalendar .calendar-date[data-occupancy].chosen{border-color:#163f31;box-shadow:inset 0 0 0 1px #163f31}
#agendaCalendar .calendar-date:focus-visible{outline:2px solid #173f32;outline-offset:1px}
#agendaCalendar .calendar-date .fb-calendar-percent{display:block;max-width:100%;font-family:inherit;font-size:.72rem;font-weight:650;line-height:1.1;color:var(--occ-ink);font-variant-numeric:tabular-nums}
.fb-cost-basis{padding:12px 16px;border:1px solid #dbe5d9;border-radius:12px;background:#f7faf6;margin:12px 0;color:#254c38}
.fb-cost-basis summary{cursor:pointer;font-weight:650}.fb-cost-basis p,.fb-cost-note{font-size:.84rem;line-height:1.5}.fb-cost-basis p:last-child{margin-bottom:0}
#finance .metric strong,#costDialog .equilibrium strong{white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:600px){
  .agenda-overview-grid .card:has(#agendaCalendar)>.section-title{flex-wrap:wrap;gap:8px}
  .agenda-overview-grid .month-actions{max-width:100%;min-width:0;flex:1 1 210px;display:grid;grid-template-columns:auto minmax(0,1fr) auto}
  .agenda-overview-grid .month-actions input{width:100%;min-width:0;box-sizing:border-box}
  #agendaCalendar{gap:3px;grid-template-columns:repeat(7,minmax(0,1fr))}
  #agendaCalendar .calendar-date{padding:5px 1px;min-height:44px;align-items:center}
  #agendaCalendar .calendar-date .fb-calendar-percent{font-size:clamp(.55rem,2.6vw,.72rem);letter-spacing:-.035em}
  .fb-occupancy-key{gap:5px 10px}
}

#agendaCalendar .calendar-date[data-occupancy="unknown"]{background:#fff;border:1px dashed #c3ccc4;color:#637169}.fb-occupancy-key [data-band="unknown"]::before{background:#fff;border:1px dashed #77857a}
