:root{--hub-surface:var(--surface);--hub-soft:var(--surface-raised);--hub-accent:var(--accent);--hub-accent-soft:var(--accent-soft);--hub-alert:var(--warning);--hub-alert-soft:var(--warning-soft);--hub-ink:var(--ink)}
.hub-group-heading{margin:0 0 1.1rem}.hub-group-heading h2{font-size:1.25rem;margin:0 0 .4rem}.hub-group-heading p{font-size:1rem;line-height:1.6;color:var(--muted);margin:0}
.hub-group-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-bottom:1.5rem}
.hub-group-card{background:var(--surface);border:1px solid var(--line);border-radius:.9rem;padding:1.2rem;min-width:0;box-shadow:var(--shadow-sm);transition:border-color .18s}
.hub-group-card:hover{border-color:var(--accent)}.hub-group-card-head{display:flex;gap:.8rem;align-items:center;margin-bottom:1rem;min-height:2.8rem}.hub-group-card-head img{max-width:5rem;max-height:2.8rem;object-fit:contain}
.hub-branch-title{font-family:var(--font-heading);font-weight:650;font-size:1.1rem;line-height:1.5;color:var(--ink);text-decoration:none;overflow-wrap:anywhere}.hub-branch-title:hover{text-decoration:underline;text-underline-offset:.2rem}.hub-branch-title:focus-visible{outline:2px solid var(--accent);outline-offset:.3rem}
.branch-summary-line{display:flex;justify-content:space-between;align-items:baseline;gap:.6rem;border-top:1px solid var(--line);padding:.7rem 0 .3rem;font-size:.9375rem;line-height:1.6}.branch-summary-line>span{color:var(--muted)}.branch-summary-line strong{text-align:right;font-size:.9375rem;font-weight:600;font-variant-numeric:tabular-nums}
.branch-record-counts,.branch-alert{font-size:.875rem;line-height:1.6;color:var(--muted);margin:.2rem 0 .75rem}.branch-alert{color:var(--warning)}.branch-performance-pair{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;margin:.4rem 0 .8rem}.branch-performance-pair dt{font-size:.875rem;color:var(--muted);line-height:1.5}.branch-performance-pair dd{margin:.2rem 0 0;font-size:1rem;font-weight:600;line-height:1.5;font-variant-numeric:tabular-nums}
.hub-group-card-actions{display:flex;flex-wrap:wrap;gap:.5rem 1rem;border-top:1px solid var(--line);margin-top:.6rem;padding-top:.6rem}.hub-group-card-actions .row-action{font-size:.875rem;padding:.4rem 0;min-height:2.5rem}
.hub-group-overview>.panel,.hub-group-page>.panel{margin-bottom:1.5rem}.hub-group-overview .panel-head,.hub-group-page .panel-head{gap:1rem;flex-wrap:wrap}.hub-group-overview .panel-head p,.hub-group-page .panel-head p{font-size:.9375rem;line-height:1.6;color:var(--muted)}
.hub-group-performance-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:1rem;padding:1.2rem 1.5rem;border-bottom:1px solid var(--line)}.hub-group-performance-totals span{display:block;font-size:.875rem;color:var(--muted);line-height:1.6}.hub-group-performance-totals strong{display:block;font-size:1.5rem;line-height:1.5;margin:.3rem 0;font-variant-numeric:tabular-nums}.hub-group-performance-totals small{font-size:.875rem;color:var(--muted);line-height:1.5}
.hub-performance-branches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;padding:1.2rem 1.5rem}.hub-performance-branches article{min-width:0;border:1px solid var(--line);border-radius:.65rem;padding:1rem}.hub-performance-branches h3{margin:0 0 .8rem}.hub-performance-branches dl{margin:0}.hub-performance-branches dl>div{display:flex;justify-content:space-between;gap:1rem;padding:.5rem 0;border-top:1px solid var(--line);font-size:.9375rem;line-height:1.5}.hub-performance-branches dt{color:var(--muted);min-width:0}.hub-performance-branches dd{margin:0;text-align:right;font-weight:600;font-variant-numeric:tabular-nums}
.hub-group-lower{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem;margin-bottom:1.5rem}.hub-group-lower .panel{margin:0;min-width:0}.hub-group-monthly-rows{padding:.3rem 1.5rem 1rem}.hub-group-monthly-rows>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.5rem;border-bottom:1px solid var(--line);padding:.8rem 0}.hub-group-monthly-rows span{font-size:.9375rem;line-height:1.6;color:var(--muted)}.hub-back-group{margin-bottom:1rem;font-size:1rem}.side-footer:has(>a[hidden]:only-child){display:none}
@media(max-width:1250px){.hub-group-cards,.hub-performance-branches{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-group-lower{grid-template-columns:1fr}}
@media(max-width:600px){.hub-group-cards,.hub-performance-branches{grid-template-columns:1fr}.hub-group-card{padding:1.1rem}.hub-group-card-head img{max-width:4rem}.hub-group-performance-totals,.hub-performance-branches{padding:1rem}.branch-summary-line{flex-wrap:wrap}.hub-group-scope>label{min-width:0;flex:1 1 11rem}.hub-group-monthly-rows{padding:.3rem 1rem 1rem}}
@media(prefers-reduced-motion:reduce){.hub-group-card{transition:none}}

/* Management overview: one comparison row per pharmacy, with group figures above. */
.hub-overview-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin:0 0 1.5rem}
.hub-overview-metric{display:flex;flex-direction:column;gap:.55rem;min-width:0;padding:1.2rem 1.25rem;border:1px solid var(--line);border-radius:.9rem;background:var(--surface);box-shadow:var(--shadow-sm);color:var(--ink);text-decoration:none;transition:border-color .18s,background-color .18s}
.hub-overview-metric:hover{border-color:var(--accent);background:var(--surface-raised)}
.hub-overview-metric>span:first-child{font-size:.9375rem;color:var(--muted);font-weight:600;line-height:1.5}
.hub-overview-metric>strong{font-family:var(--font-heading);font-size:1.55rem;font-weight:650;line-height:1.35;letter-spacing:-.02em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.hub-overview-metric>small{font-size:.875rem;color:var(--muted);line-height:1.6}
.hub-overview-metric>.hub-metric-link{font-size:.875rem;font-weight:600;color:var(--accent);line-height:1.5;margin-top:auto;padding-top:.3rem;display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.hub-overview-metric:focus-visible,.hub-status-link:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.hub-overview-pharmacies{overflow:hidden}
.hub-overview-pharmacies .panel-head h2{font-size:1.2rem}
.hub-pharmacy-column-head,.hub-pharmacy-row{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1.15fr) minmax(0,1fr) minmax(0,1.3fr) minmax(0,1fr);gap:1.25rem;padding:1.1rem 1.5rem}
.hub-pharmacy-column-head{background:var(--surface-raised);color:var(--muted);font-size:.875rem;font-weight:600;line-height:1.5;padding-top:.8rem;padding-bottom:.8rem}
.hub-pharmacy-row{border-top:1px solid var(--line);align-items:start;transition:background-color .18s}
.hub-pharmacy-row:hover,.hub-pharmacy-row:focus-within{background:var(--surface-raised)}
.hub-pharmacy-name,.hub-pharmacy-cell{min-width:0}
.hub-pharmacy-name{display:flex;align-items:center;gap:.65rem;padding:.25rem 0}
.hub-pharmacy-name .pharmacy-logo{flex:0 0 3rem;width:3rem;height:2.25rem;padding:.25rem;border:1px solid var(--line);border-radius:.4rem;background:#fff}
.hub-pharmacy-name h3{margin:0;font-size:1rem;line-height:1.5;min-width:0}
.hub-pharmacy-name .hub-branch-title{font-size:1rem;line-height:1.5;overflow-wrap:normal}
.hub-pharmacy-cell{display:flex;flex-direction:column;gap:.15rem;font-variant-numeric:tabular-nums}
.hub-cell-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.hub-status-link{align-self:flex-start;display:inline-block;font-size:.9375rem;line-height:1.5;font-weight:600;color:var(--ink);text-decoration:none;min-height:2rem;padding:.25rem .55rem;border-radius:.45rem;background:var(--header-surface)}
.hub-status-link:hover{text-decoration:underline;text-underline-offset:.2rem}
.hub-pharmacy-cell small{font-size:.875rem;line-height:1.55;color:var(--muted);overflow-wrap:anywhere}
.hub-pharmacy-cell small b{font-weight:600;color:var(--ink)}
.hub-pharmacy-cell .is-recorded{color:var(--accent)}
.hub-status-link.is-recorded{background:var(--accent-soft)}
.hub-status-link.is-pending{color:var(--warning);background:var(--warning-soft)}
.hub-pharmacy-cell .hub-spending-link{background:transparent;padding-left:0;font-size:1rem}
.hub-pharmacy-cell .hub-needs-attention{color:var(--warning)}
.hub-overview-detail-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:1.5rem;margin-bottom:1.25rem}
.hub-overview-detail-grid>.panel{min-width:0;margin:0;overflow:hidden}
.hub-overview-detail-grid h2{font-size:1.2rem;line-height:1.5}
.hub-overview-detail-grid .row-action{font-size:.875rem;padding:.4rem .65rem;min-height:2.5rem}
.hub-overview-performance .hub-group-performance-totals{grid-template-columns:repeat(2,minmax(0,1fr));border:0;gap:1.25rem}
.hub-overview-performance .hub-group-performance-totals strong{font-size:1.35rem;overflow-wrap:anywhere}
.hub-overview-detail-grid .hub-footnote{font-size:.8125rem;line-height:1.6;padding:0 1.5rem 1.2rem;margin:0}
.hub-overview-delivery-figures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem;padding:1.2rem 1.5rem;margin:0;font-variant-numeric:tabular-nums}
.hub-overview-delivery-figures>div{min-width:0}
.hub-overview-delivery-figures dt{color:var(--muted);font-size:.875rem;line-height:1.6}
.hub-overview-delivery-figures dd{font-size:1.35rem;font-weight:650;line-height:1.5;margin:.3rem 0;overflow-wrap:anywhere}
.hub-overview-delivery-alert{font-size:.875rem;line-height:1.6;color:var(--warning);margin:0 1.5rem 1rem;padding:.75rem 1rem;border-radius:.6rem;background:var(--warning-soft)}
.hub-overview-metric .is-over-limit{color:var(--danger)}
.hub-overview-pharmacies .panel-head{background:var(--surface)}
.hub-pharmacy-row:nth-child(even){background:var(--row-stripe)}
.hub-pharmacy-row:nth-child(even):hover,.hub-pharmacy-row:nth-child(even):focus-within{background:var(--row-hover)}
.hub-pharmacy-cell small{margin-left:.05rem}
.hub-pharmacy-name .hub-branch-title{text-underline-offset:.2rem}
.hub-overview-performance .hub-group-performance-totals>div,.hub-overview-delivery-figures>div{padding:.15rem 0 .15rem .85rem;border-left:2px solid var(--line)}
.hub-overview-detail-grid .panel-head{align-items:flex-start}
@media(pointer:coarse){.hub-status-link,.hub-overview-detail-grid .row-action{min-height:2.75rem}}
@media(max-width:1400px){.hub-overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-pharmacy-column-head,.hub-pharmacy-row{gap:.85rem;padding-left:1.25rem;padding-right:1.25rem}.hub-pharmacy-name{flex-direction:column;align-items:flex-start}}
@media(max-width:1250px){.hub-pharmacy-column-head{display:none}.hub-pharmacy-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem 1.25rem;padding:1.25rem}.hub-pharmacy-name{grid-column:1/-1;flex-direction:row;align-items:center;padding:0 0 .4rem}.hub-cell-label{position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal;font-size:.8125rem;font-weight:600;color:var(--muted);line-height:1.5}.hub-overview-detail-grid{grid-template-columns:1fr}}
@media(max-width:1000px){.hub-pharmacy-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem 1.5rem}.hub-pharmacy-name .hub-branch-title{font-size:1.1rem}}
@media(max-width:600px){.hub-overview-metrics{gap:.75rem}.hub-overview-metric{padding:1rem}.hub-overview-metric>strong{font-size:1.25rem}.hub-overview-metric>small{font-size:.8125rem}.hub-overview-pharmacies .panel-head{padding:1.1rem 1.25rem}.hub-overview-detail-grid .panel-head{padding:1.1rem 1.25rem}.hub-overview-performance .hub-group-performance-totals,.hub-overview-delivery-figures{padding:1.1rem 1.25rem}.hub-overview-detail-grid .hub-footnote{padding-left:1.25rem;padding-right:1.25rem}.hub-overview-delivery-alert{margin-left:1.25rem;margin-right:1.25rem}}
@media(max-width:400px){.hub-overview-metrics{grid-template-columns:1fr}.hub-pharmacy-row{grid-template-columns:1fr}.hub-overview-performance .hub-group-performance-totals,.hub-overview-delivery-figures{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.hub-overview-metric,.hub-pharmacy-row{transition:none}}
html[data-motion=reduced] :is(.hub-overview-metric,.hub-pharmacy-row){transition:none}
.workspace-clock{display:block;color:var(--muted);font-size:.875rem;font-variant-numeric:tabular-nums;margin-top:5px;white-space:normal}.pharmacy-hub{color:var(--hub-ink)}.pharmacy-hub .page-head .eyebrow{margin-bottom:9px;font-size:.8rem;color:var(--hub-accent)}.hub-scope{display:flex;gap:16px;align-items:flex-end;flex-wrap:wrap;margin:0 0 24px}.hub-scope label{font-size:.9rem;margin:0;min-width:180px}.hub-scope input,.hub-scope select{font-size:1rem;min-height:43px}.hub-readonly{padding:12px 16px;color:var(--muted);font-size:.9rem}.hub-error{margin:18px 0;font-size:1rem}.hub-save-message{font-size:.9rem;color:var(--hub-accent);margin:14px 0}.hub-draft-warning{font-size:.9rem;color:var(--hub-alert)}.hub-panel{margin:0 0 24px;background:var(--hub-surface);overflow:hidden;border-color:var(--line);border-radius:14px}.hub-panel .panel-head{gap:16px;align-items:center;flex-wrap:wrap;padding:22px 24px}.hub-panel .panel-head h2{font-size:1.15rem}.hub-panel .panel-head p{font-size:.9rem;color:var(--muted);line-height:1.5;margin:7px 0 0}.hub-panel .btn,.hub-activity-row .btn{font-size:.875rem;white-space:nowrap}.hub-branch-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px}.hub-branch{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:6px;border:1px solid var(--line);border-radius:12px;background:var(--hub-surface);color:var(--hub-ink);padding:18px;cursor:pointer;transition:border-color .18s,background .18s}.hub-branch strong{font-size:1rem;margin-bottom:5px}.hub-branch span{font-size:.875rem;color:var(--muted);line-height:1.5}.hub-branch.selected{border-color:var(--hub-accent);background:var(--hub-accent-soft)}.hub-branch:hover{border-color:var(--hub-accent)}.hub-branch:focus-visible,.hub-history-link:focus-visible{outline:2px solid var(--hub-accent);outline-offset:3px}.hub-duty-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:22px 24px}.hub-duty-grid span{display:block;color:var(--muted);font-size:.9rem;margin-bottom:9px}.hub-duty-grid strong{font-size:1.05rem;font-weight:600;line-height:1.5;overflow-wrap:anywhere}.hub-muted{color:var(--muted);font-weight:400}.hub-record-meta{display:block;font-size:.8rem;line-height:1.6;color:var(--muted);margin:0 24px 18px;overflow-wrap:anywhere}.hub-history-link{background:none;border:0;color:var(--hub-accent);padding:3px 0;margin-left:8px;font-size:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.hub-temperature-grid,.hub-checklist-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.hub-reading-table{margin:12px 24px 20px;font-size:.95rem;font-variant-numeric:tabular-nums}.hub-reading-table>div{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:10px;border-bottom:1px solid var(--line);padding:12px 0}.hub-reading-table>div:first-child{font-size:.8rem;color:var(--muted)}.hub-reading-table span:not(:first-child){text-align:right}.hub-empty-reading{padding:22px 24px;margin:0;color:var(--muted);font-size:1rem}.hub-breach{border-color:var(--hub-alert)}.hub-alert-title{color:var(--hub-alert);font-size:.95rem;font-weight:600;margin:18px 24px 8px}.hub-action-note{background:var(--hub-alert-soft);color:var(--hub-alert);font-size:.95rem;margin:0 24px 18px;padding:14px;border-radius:9px;line-height:1.6;white-space:pre-wrap}.hub-activity-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:6px 0 18px}.hub-activity-heading h2{font-size:1.3rem;margin:0 0 8px}.hub-activity-heading p{font-size:.9rem;color:var(--muted);margin:0}.hub-activity-row{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:start;gap:12px;padding:18px 24px;border-top:1px solid var(--line)}.hub-activity-row>div>strong{font-size:.95rem;line-height:1.6;font-weight:600;display:block}.hub-activity-row .hub-record-meta{margin:6px 0 0}.hub-check-symbol{font-size:1.25rem;color:var(--muted);line-height:1.4}.hub-activity-row.is-done .hub-check-symbol{color:var(--hub-accent)}.hub-task-status{display:block;color:var(--muted);font-size:.85rem;line-height:1.6;margin:4px 0 0}.hub-task-note{margin:7px 0 0;font-size:.9rem;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.hub-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:22px}.hub-metric{padding:24px;border:1px solid var(--line);border-radius:14px;background:var(--hub-surface)}.hub-metric>span{display:block;color:var(--muted);font-size:.95rem;line-height:1.5}.hub-metric>strong{display:block;font-size:2rem;letter-spacing:-.6px;font-variant-numeric:tabular-nums;margin:12px 0;overflow-wrap:anywhere}.hub-metric>small{display:block;color:var(--muted);font-size:.85rem}.hub-metric>.btn{margin-top:12px}.hub-metric.is-remaining{background:var(--hub-accent-soft)}.hub-metric.is-remaining>strong{color:var(--hub-accent)}.hub-metric.is-over{background:var(--hub-alert-soft);border-color:var(--hub-alert)}.hub-metric.is-over>strong{color:var(--hub-alert)}.hub-sheet-scroll{overflow:auto;max-height:680px;position:relative;overscroll-behavior:contain}.hub-spending-table,.hub-summary-table{width:100%;border-collapse:separate;border-spacing:0;font-size:.9rem;font-variant-numeric:tabular-nums;background:var(--hub-surface)}.hub-spending-table th,.hub-spending-table td,.hub-summary-table th,.hub-summary-table td{padding:12px 14px;line-height:1.5;vertical-align:middle;border-bottom:1px solid var(--line);border-right:1px solid var(--line);color:var(--hub-ink)}.hub-spending-table thead th,.hub-summary-table thead th{background:var(--hub-soft);font-size:.875rem;font-weight:600;text-transform:none;letter-spacing:0;position:sticky;top:0;z-index:2;min-width:130px}.hub-spending-table thead th:first-child{min-width:95px}.hub-spending-table tbody th,.hub-spending-table thead th:first-child,.hub-spending-table tfoot th{position:sticky;left:0;background:var(--hub-surface);z-index:1;white-space:nowrap;font-size:.875rem;font-weight:500}.hub-spending-table thead th:first-child{z-index:3;background:var(--hub-soft)}.hub-spending-table tbody tr.is-today>th{background:var(--hub-accent-soft);color:var(--hub-accent);font-weight:700}.hub-spending-table td{padding:7px 10px;min-width:130px}.hub-spending-table td input{display:block;width:100%;min-width:105px;max-width:155px;font-size:.95rem;padding:8px 10px;margin:0;border-radius:7px;min-height:40px;text-align:right;background:var(--hub-surface);color:var(--hub-ink);font-variant-numeric:tabular-nums;border:1px solid var(--line)}.hub-spending-table input.is-draft{border-color:var(--hub-alert);background:var(--hub-alert-soft)}.hub-spending-table input:focus{outline:2px solid var(--hub-accent);outline-offset:1px}.hub-spending-table input:disabled{opacity:.55}.hub-day-total{text-align:right;font-weight:600;white-space:nowrap}.hub-spending-table tfoot th,.hub-spending-table tfoot td,.hub-summary-table tfoot th,.hub-summary-table tfoot td{font-weight:700;background:var(--hub-soft);text-align:right}.hub-spending-table tfoot th,.hub-summary-table tfoot th{text-align:left}.hub-group-total{font-size:1.7rem;font-variant-numeric:tabular-nums}.hub-summary-table td:not(:first-child){text-align:right;white-space:nowrap}.hub-summary-table .hub-history-link{margin-left:0;font-size:.95rem}.hub-supplier-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:10px 24px 20px}.hub-supplier-totals>div{padding:14px 0;display:flex;gap:12px;justify-content:space-between;border-bottom:1px solid var(--line);font-size:.9rem;margin-right:20px}.hub-supplier-totals strong{font-variant-numeric:tabular-nums}.hub-kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;padding:24px}.hub-kpi-grid>div{padding:16px;background:var(--hub-soft);border-radius:10px}.hub-kpi-grid span{display:block;font-size:.875rem;color:var(--muted);line-height:1.5;min-height:44px}.hub-kpi-grid strong{display:block;font-size:1.65rem;margin-top:16px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.hub-footnote{margin:20px 24px;color:var(--muted);font-size:.875rem;line-height:1.6}.hub-record-form label,.hub-settings label{font-size:.95rem;line-height:1.5}.hub-record-form input,.hub-record-form select,.hub-record-form textarea,.hub-settings input,.hub-settings textarea{font-size:1rem;background:var(--hub-surface);color:var(--hub-ink);max-width:100%}.hub-record-form .hub-footnote{margin:16px 0}.hub-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0}.hub-form-grid fieldset{border:1px solid var(--line);border-radius:10px;min-width:0;padding:16px}.hub-form-grid legend{font-size:1rem;font-weight:600;padding:0 6px}.hub-form-error{font-size:.95rem;color:var(--hub-alert);line-height:1.6}.hub-settings{padding:24px;max-width:850px}.hub-settings label small{display:block;color:var(--muted);font-size:.85rem;margin-top:6px}.hub-settings .hub-footnote{margin-left:0;margin-right:0}.hub-correction-values{display:grid;grid-template-columns:1fr 1fr;gap:14px;font-size:1rem}.hub-correction-values dd{margin:0;text-align:right;font-weight:600}.hub-history-list section{padding:18px 0;border-bottom:1px solid var(--line)}.hub-history-list strong{font-size:.95rem}.hub-history-list p{font-size:.95rem;line-height:1.7;margin:12px 0;white-space:pre-wrap;overflow-wrap:anywhere}.hub-history-list small{font-size:.85rem;color:var(--muted)}
@media(max-width:1200px){.hub-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hub-temperature-grid,.hub-checklist-grid{grid-template-columns:1fr}.hub-supplier-totals{grid-template-columns:1fr 1fr}}
@media(max-width:750px){.hub-branch-overview{grid-template-columns:1fr 1fr}.hub-metrics{grid-template-columns:1fr}.hub-metric>strong{font-size:1.8rem}.hub-kpi-grid{grid-template-columns:1fr 1fr;padding:18px}.hub-scope label{min-width:150px;flex:1 1 150px}.hub-duty-grid{grid-template-columns:1fr;padding:18px}.hub-panel .panel-head{padding:18px}.hub-activity-row{grid-template-columns:20px minmax(0,1fr);padding:16px}.hub-activity-row>.btn{grid-column:2;justify-self:start}.hub-supplier-totals{grid-template-columns:1fr;padding:10px 18px}.hub-supplier-totals>div{margin-right:0}.hub-reading-table{margin-left:18px;margin-right:18px}.hub-form-grid{grid-template-columns:1fr}.workspace-clock{font-size:.8rem}.hub-group-total{font-size:1.4rem}}
@media(max-width:400px){.hub-branch-overview,.hub-kpi-grid{grid-template-columns:1fr}.hub-reading-table{font-size:.85rem}.hub-reading-table>div{gap:6px}}
@media(prefers-reduced-motion:reduce){.hub-branch{transition:none}}

.hub-spending-table .hub-cell-history{display:block;margin:5px 0 0 auto;font-size:.875rem;line-height:1.4}
/* Group and branch summaries share the same visual hierarchy. */
.hub-overview-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;margin:18px 0 24px}.overview-hub-card{position:relative;padding:22px 24px;display:flex;flex-direction:column;gap:10px;text-decoration:none;color:var(--ink);border-top:3px solid var(--accent,#1b9a94);transition:transform .18s ease,box-shadow .18s ease}.overview-hub-card:hover{transform:translateY(-2px);box-shadow:0 9px 24px #12374514}.overview-hub-card>span:first-child{font-size:.9rem;font-weight:650;color:var(--muted)}.overview-hub-card>strong{font-family:var(--font-heading,Inter,sans-serif);font-size:1.6rem;line-height:1.25;letter-spacing:-.02em}.overview-hub-card small{font-size:.86rem;line-height:1.5;color:var(--muted)}.hub-overview-alert{border-top-color:#c76a39}.overview-freshness{margin:0}.overview-operations-table small,.managed-products-table small{display:block;font-size:.85rem;line-height:1.65;color:var(--muted)}.overview-operations-table td{min-width:175px;vertical-align:top}.overview-operations-table th{min-width:160px}.hub-overview-list-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.hub-overview-list-grid>.panel{margin:0}.hub-overview .hub-kpi-grid{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.hub-template-list{padding:4px 24px 24px}.hub-template-row{display:grid;grid-template-columns:minmax(230px,1fr) minmax(130px,180px) auto auto;gap:12px;align-items:end;padding:18px 0;border-bottom:1px solid var(--line,#d6e4e8)}.hub-template-row>label{display:grid;gap:6px;font-size:.9rem}.hub-template-row .check-row{display:flex;align-items:center;max-width:190px;line-height:1.5}.hub-template-row .template-status{grid-column:1/-1;font-size:.8rem;color:var(--muted)}.hub-template-row.is-retired{opacity:.7}.hub-template-row input,.hub-template-row select{width:100%}.hub-template-row input[type=checkbox]{width:auto}.hub-template-row [data-template-type]:disabled{opacity:1;color:var(--ink)}.managed-products-table td:last-child{min-width:180px}.managed-products-table strong{font-size:1rem}.managed-products-table .row-buttons{align-items:flex-start}.managed-products-table small{max-width:450px}#managedProductForm fieldset{margin:20px 0;padding:18px;border:1px solid var(--line,#d6e4e8);border-radius:12px}#managedProductForm legend{font-weight:700;padding:0 8px}#managedProductForm fieldset .check-row{display:inline-flex;margin:6px 16px 6px 0}#managedProductForm .info-line{line-height:1.7}#hubTemplatesForm>.form-actions{position:sticky;bottom:12px;background:var(--surface,#fff);padding:16px;border:1px solid var(--line,#d6e4e8);border-radius:12px;box-shadow:0 6px 24px #10243714}
@media(max-width:1100px){.hub-template-row{grid-template-columns:minmax(200px,1fr) minmax(120px,160px)}.hub-overview-list-grid{grid-template-columns:1fr}}
@media(max-width:600px){.hub-overview-cards{grid-template-columns:1fr 1fr;gap:10px}.overview-hub-card{padding:16px}.overview-hub-card>strong{font-size:1.25rem}.hub-template-row{grid-template-columns:1fr}.hub-template-list{padding:0 16px 16px}}
@media(prefers-reduced-motion:reduce){.overview-hub-card{transition:none}.overview-hub-card:hover{transform:none}}html[data-motion=reduced] .overview-hub-card{transition:none}html[data-motion=reduced] .overview-hub-card:hover{transform:none}
.overview-operations-table th .pharmacy-logo-icon{width:32px;height:32px;display:block;margin:0 0 8px}.pharmacy-cost-table .pharmacy-logo-icon{width:28px;height:28px;vertical-align:middle;margin-right:8px}.hub-retired-kpis{border-top:1px solid var(--line);margin:16px 24px 0;padding-top:20px}.hub-retired-kpis h3{font-size:1rem}

/* Daily work and group reporting inherit the same Pharmacy Hub surfaces. */
.hub-scope{padding:1rem 1.25rem;border:1px solid var(--line);border-radius:.9rem;background:var(--surface-raised);gap:1rem;margin:0 0 1.5rem}
.hub-scope label{font-size:.9375rem;font-weight:550;flex:0 1 13rem;min-width:min(11rem,100%)}
.hub-scope input,.hub-scope select{min-height:2.75rem;margin-top:.45rem}
.hub-scope .btn{min-height:2.75rem}
.hub-scope>.hub-footnote{margin:.25rem 0;flex:1}
.hub-panel{border-radius:.95rem;box-shadow:var(--shadow-sm);margin-bottom:1.5rem}
.hub-panel .panel-head{padding:1.35rem 1.5rem;gap:1rem;background:var(--surface-raised)}
.hub-panel .panel-head h2{font-size:1.2rem;line-height:1.45}
.hub-panel .panel-head p{font-size:.9375rem;line-height:1.6}
.hub-panel .btn,.hub-activity-row .btn{font-size:.875rem;white-space:normal}
.hub-branch{border-radius:.8rem;padding:1.15rem;gap:.3rem;box-shadow:var(--shadow-sm)}
.hub-branch.selected{box-shadow:inset 3px 0 var(--accent)}
.hub-branch span{font-size:.875rem;line-height:1.6}
.hub-duty-grid{padding:1.4rem 1.5rem;gap:1.5rem}
.hub-duty-grid span{font-size:.9375rem;line-height:1.5}
.hub-duty-grid strong{font-size:1.1rem;line-height:1.6}
.hub-record-meta{font-size:.8125rem;line-height:1.6}
.hub-reading-table{margin:1rem 1.5rem 1.25rem;font-size:1rem;line-height:1.55}
.hub-reading-table>div{grid-template-columns:minmax(0,1.6fr) repeat(3,minmax(0,1fr));gap:.65rem;padding:.7rem 0}
.hub-reading-table>div:first-child{font-size:.875rem;color:var(--muted)}
.hub-reading-table span{min-width:0;overflow-wrap:anywhere}
.hub-reading-table>div:not(:first-child)>span:not(:first-child){font-weight:550}
.hub-activity-heading{margin:.5rem 0 1.1rem}
.hub-activity-heading h2{font-size:1.3rem;line-height:1.4}
.hub-activity-heading p{font-size:.9375rem;line-height:1.6}
.hub-activity-row{padding:1.15rem 1.5rem;gap:.85rem;grid-template-columns:1.65rem minmax(0,1fr) auto;align-items:start}
.hub-activity-row>div>strong{font-size:1rem;line-height:1.5}
.hub-task-status{font-size:.875rem;line-height:1.6}
.hub-check-symbol{display:grid;place-items:center;width:1.55rem;height:1.55rem;border:1px solid var(--line);border-radius:.5rem;font-size:1rem;line-height:1.5;margin-top:.1rem;background:var(--surface-raised)}
.hub-activity-row.is-done .hub-check-symbol{color:var(--accent);background:var(--accent-soft);border-color:var(--accent)}
.hub-activity-row:hover{background:var(--surface-raised)}
.hub-metric{border-radius:.9rem;padding:1.35rem;box-shadow:var(--shadow-sm);min-width:0}
.hub-metric>strong{font-family:var(--font-heading);font-size:1.9rem;line-height:1.35;letter-spacing:-.035em;margin:.75rem 0}
.hub-metric>small{font-size:.875rem;line-height:1.6}
.hub-summary-table th,.hub-spending-table th{text-transform:none;letter-spacing:0;white-space:normal;line-height:1.5}
.hub-summary-table td,.hub-spending-table td{font-size:.9375rem;line-height:1.55}
.hub-summary-table thead th,.hub-spending-table thead th{font-size:.875rem;background:var(--header-surface);font-weight:650}
.hub-summary-table tbody tr:hover :is(th,td){background:var(--row-hover)}
.overview-operations-table tbody th{min-width:11rem;font-size:1rem;text-transform:none;letter-spacing:0}
.overview-operations-table :is(th,td){padding:1.1rem 1.2rem;vertical-align:top}
.overview-operations-table td>strong{font-size:1.1rem}
.overview-operations-table small{font-size:.875rem;line-height:1.6;margin-top:.4rem;white-space:normal}
.hub-overview-cards{gap:1rem;grid-template-columns:repeat(auto-fit,minmax(min(13rem,100%),1fr));margin:1.1rem 0 1.5rem}
.overview-hub-card{padding:1.3rem;gap:.75rem;border-top:2px solid var(--line);border-radius:.9rem;min-width:0}
.overview-hub-card:first-child{border-top-color:var(--accent);background:var(--accent-soft)}
.overview-hub-card>span:first-child{font-size:.9375rem;line-height:1.5;color:var(--ink);font-weight:600}
.overview-hub-card>strong{font-size:1.65rem;line-height:1.4;letter-spacing:-.03em;overflow-wrap:anywhere}
.overview-hub-card small{font-size:.875rem;line-height:1.6}
.overview-hub-card:hover{border-color:var(--accent)}
.overview-hub-card.hub-overview-alert{border-top-color:var(--warning);background:var(--warning-soft)}
.overview-freshness{margin:0!important;font-size:.8125rem;line-height:1.6}
.hub-kpi-grid{padding:1.5rem;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(min(10rem,100%),1fr))}
.hub-kpi-grid>div{background:var(--surface-raised);border:1px solid var(--line);padding:1.05rem;border-radius:.75rem;min-width:0}
.hub-kpi-grid span{font-size:.875rem;line-height:1.5;min-height:0}
.hub-kpi-grid strong{font-family:var(--font-heading);font-size:1.7rem;line-height:1.35;letter-spacing:-.025em;margin-top:.7rem;overflow-wrap:anywhere}
.hub-overview .hub-kpi-grid{grid-template-columns:repeat(auto-fit,minmax(min(9rem,100%),1fr))}
.hub-supplier-totals{padding:0 1.5rem 1.5rem;gap:0 1.25rem}
.hub-supplier-totals>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.5rem .75rem;margin:0;padding:1rem 0;align-items:center;font-size:.9375rem}
.hub-supplier-totals>div small{grid-column:1/-1;font-size:.8125rem;line-height:1.6;color:var(--muted)}
.hub-footnote,.hub-readonly{font-size:.875rem;line-height:1.65}
.hub-footnote{margin:1.2rem 1.5rem}
.hub-template-row{grid-template-columns:minmax(0,1fr) minmax(9rem,11rem) auto auto;gap:.8rem;padding:1.1rem 0;align-items:end}
.hub-template-row>label{font-size:.9375rem;line-height:1.5}
.hub-template-row .check-row{padding-bottom:.5rem;font-size:.875rem}
.hub-template-row .template-status{font-size:.8125rem;line-height:1.6}
.hub-template-row.is-retired{opacity:1;background:var(--surface-raised);padding-inline:1rem;border-radius:.7rem}
#hubTemplatesForm>.form-actions{bottom:1rem;padding:1rem;flex-wrap:wrap;gap:.7rem;min-width:0}
#managedProductForm legend{font-size:1rem;line-height:1.5}
.managed-products-table small{font-size:.875rem;line-height:1.6}
.hub-settings{padding:1.5rem;max-width:60rem}
@media(max-width:1100px){.hub-template-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.hub-overview-list-grid{grid-template-columns:1fr}.hub-supplier-totals{grid-template-columns:1fr 1fr}}
@media(max-width:750px){.hub-scope{padding:1rem;gap:.85rem}.hub-scope label{flex:1 1 9rem;min-width:0}.hub-panel .panel-head,.hub-duty-grid{padding:1.15rem}.hub-reading-table{margin:1rem 1.15rem}.hub-activity-row{padding:1.05rem;grid-template-columns:1.6rem minmax(0,1fr)}.hub-activity-row>.btn{grid-column:2;justify-self:start}.hub-kpi-grid{padding:1rem;gap:.7rem}.hub-kpi-grid strong{font-size:1.5rem}.hub-footnote{margin:1rem 1.15rem}.hub-supplier-totals{padding:0 1.15rem 1rem;grid-template-columns:1fr}.hub-overview-cards{grid-template-columns:1fr 1fr;gap:.7rem}.overview-hub-card{padding:1.05rem}.overview-hub-card>strong{font-size:1.35rem}.hub-template-list{padding:0 1rem 1rem}.hub-settings{padding:1.15rem}}
@media(max-width:480px){.hub-template-row{grid-template-columns:1fr}.hub-branch-overview{grid-template-columns:1fr}.hub-overview-cards{grid-template-columns:1fr}.overview-hub-card{gap:.5rem}.hub-reading-table{font-size:.9375rem}.hub-reading-table>div:first-child{font-size:.8125rem}}

/* Daily Overview: a short action list followed by the monthly records. */
.overview-daily .panel{margin-bottom:0}
.overview-scope{margin-bottom:1.25rem}
.overview-daily-panel .panel-head,.overview-monthly-panel .panel-head,.overview-invoice-panel .panel-head{padding:1.2rem 1.4rem}
.overview-check-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:1rem 1.4rem;background:var(--surface-raised);border-bottom:1px solid var(--line);gap:1.25rem}
.overview-check-counts>div{display:flex;gap:.7rem;align-items:baseline;min-width:0}
.overview-check-counts strong{font:700 1.7rem/1.3 var(--font-heading);font-variant-numeric:tabular-nums;color:var(--accent)}
.overview-check-counts span{font-size:.9375rem;color:var(--ink);line-height:1.5}
.overview-check-row{padding:1.1rem 1.4rem;border-bottom:1px solid var(--line)}
.overview-check-row:last-child{border-bottom:0}
.overview-check-branch{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}
.overview-check-branch h3{font-size:1.0625rem;margin:0;flex:1;min-width:6rem}
.overview-check-branch .pharmacy-logo{max-width:6rem;max-height:2rem;object-fit:contain}
.overview-record-status{display:flex;gap:.5rem 1.1rem;flex-wrap:wrap;margin:.7rem 0;color:var(--muted);font-size:.9375rem;line-height:1.5}
.overview-record-status .is-recorded{color:var(--accent)}
.overview-missing-tasks summary,.overview-upcoming summary{cursor:pointer;font-size:.9375rem;line-height:1.6;font-weight:600;overflow-wrap:anywhere}
.overview-missing-tasks summary span{font-weight:400;color:var(--muted);margin-left:.7rem}
.overview-session-tasks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem;padding:.65rem 0 0}
.overview-session-tasks h4{font-size:.9375rem;margin:0 0 .4rem}
.overview-session-tasks ul{margin:0;padding-left:1.25rem;font-size:1rem;line-height:1.65}
.overview-record-complete{margin:.6rem 0 0;font-size:.9375rem;color:var(--accent)}
.overview-daily-panel>.hub-footnote{margin:.6rem 1.4rem 1rem}
.overview-inline-notice{padding:.85rem 1.4rem;background:var(--warning-soft);color:var(--ink);font-size:.9375rem;line-height:1.6;border-bottom:1px solid var(--line)}
.overview-lower-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:1.25rem;margin-top:1.25rem;align-items:start}
.overview-due-list{padding:0;margin:0;list-style:none}
.overview-due-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:.8rem;align-items:center;padding:1rem 1.4rem;border-bottom:1px solid var(--line)}
.overview-due-row strong,.overview-due-row span{display:block;font-size:.9375rem;line-height:1.6}
.overview-due-row strong{color:var(--ink);font-weight:600;overflow-wrap:anywhere}
.overview-due-row>div>span{color:var(--muted)}
.overview-due-row .row-action{font-size:.875rem;white-space:normal}
.overview-due-date{text-align:right;font-variant-numeric:tabular-nums}
.task-due-label{font-size:.875rem;font-weight:600;color:var(--muted)}
.task-due-label.overdue{color:var(--danger)}
.task-due-label.today{color:var(--accent)}
.overview-due-date .task-due-label.overdue{color:var(--danger)}
.overview-due-date .task-due-label.today{color:var(--accent)}
.overview-upcoming>summary{padding:.95rem 1.4rem;background:var(--surface-raised)}
.overview-upcoming>summary span{margin-left:.35rem;color:var(--muted)}
.overview-no-alert{padding:1.1rem 1.4rem;margin:0;color:var(--muted);font-size:1rem;line-height:1.65}
.overview-performance-link{display:flex;gap:1rem;align-items:center;justify-content:space-between;padding:1rem 1.4rem;border-top:1px solid var(--line);font-size:.9375rem;line-height:1.6}
.overview-performance-link strong{display:block;font-weight:400;color:var(--muted)}
.overview-spending-total{margin:0;padding:1.25rem 1.4rem .5rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}
.overview-spending-total dt{font-size:.9375rem;color:var(--muted);line-height:1.6}
.overview-spending-total dd{font-family:var(--font-heading);font-size:1.5rem;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.5;margin:.3rem 0 0;overflow-wrap:anywhere}
.overview-spending-total .over-limit dd{color:var(--danger)}
.overview-invoice-panel>.hub-footnote{padding:0 1.4rem .7rem;margin:.5rem 0}
.overview-invoice-table{min-width:27rem}
.overview-invoice-table .row-action{white-space:normal}
.overview-delivery-note{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding:1rem 1.4rem;border:1px solid var(--line);border-radius:.8rem;margin-top:1.25rem;background:var(--surface);font-size:.9375rem;line-height:1.6}
.overview-daily .overview-freshness{margin:1rem 0 .25rem;text-align:right;font-size:.8125rem}
@media(max-width:1050px){.overview-lower-grid{grid-template-columns:1fr}}
@media(max-width:650px){.overview-check-counts{gap:.5rem;padding:.9rem 1rem}.overview-check-counts>div{display:block}.overview-check-counts strong{font-size:1.4rem;display:block}.overview-check-counts span{font-size:.875rem;display:block}.overview-daily-panel .panel-head,.overview-monthly-panel .panel-head,.overview-invoice-panel .panel-head,.overview-check-row{padding:1rem}.overview-record-status{display:grid;gap:.3rem}.overview-session-tasks{grid-template-columns:1fr;gap:1rem}.overview-missing-tasks summary span{display:block;margin-left:1rem}.overview-due-row{grid-template-columns:minmax(0,1fr) auto;padding:.9rem 1rem}.overview-due-row>.row-action{grid-column:1/-1;justify-self:start}.overview-spending-total{padding:1rem;gap:.8rem}.overview-spending-total dd{font-size:1.3rem}.overview-performance-link{padding:1rem;flex-wrap:wrap}.overview-check-branch .row-action{font-size:.875rem}.overview-daily-panel>.hub-footnote{margin:.5rem 1rem 1rem}}
.hub-task-due{display:block;margin:.25rem 0;font-size:.875rem;line-height:1.6}
.hub-task-due.overdue{color:var(--danger)}
.hub-task-due.today{color:var(--accent)}
.hub-template-row[data-template-kind=monthlyTasks]{grid-template-columns:minmax(0,1fr) minmax(12rem,16rem) auto}
.ulm-branch-suppliers{min-width:14rem}
.ulm-branch-suppliers>span{display:block;font-size:.875rem;line-height:1.65;margin:.15rem 0;white-space:normal}
@media(max-width:650px){.hub-template-row[data-template-kind=monthlyTasks]{grid-template-columns:1fr}}
