/* Shared APP widget surfaces; Bootstrap owns the responsive twelve-column grid. */
.dw-dashboard-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0;color:#526078;font-size:.8rem}.dw-widget{background:#fff;border:2px solid #cbd6e4;border-radius:10px;padding:20px;min-width:0}.dw-widget>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.dw-widget h2{font-size:1rem;font-weight:750;margin:0;color:#15243a}.dw-product-tag{font-size:.7rem;color:#2866a8;background:#edf5ff;border-radius:5px;padding:4px 7px;white-space:nowrap}.dw-help,.dw-widget small{font-size:.75rem;color:#526078;line-height:1.6}.dw-empty{padding:24px 8px;color:#526078;font-size:.85rem;line-height:1.7;text-align:center}.dw-empty small{display:block}.dw-unavailable{background:#f6f8fb;border-radius:8px}.dw-total{font-size:2.5rem;font-weight:750;display:block;color:#15243a}.dw-tone-present{color:#16805b}.dw-tone-late,.dw-tone-warning{color:#946000}.dw-tone-absent,.dw-tone-critical{color:#c33740}.dw-presence{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.dw-presence-group{text-align:center;padding:0 12px;border-right:1px solid #e7edf4}.dw-presence-group:last-child{border-right:0}.dw-presence h3{font-size:.82rem;font-weight:700;margin:0 0 4px}.dw-donut{display:block;width:140px;max-width:100%;margin:8px auto}.dw-donut-value{fill:#15243a;font-size:15px;font-weight:750}.dw-donut-caption{fill:#526078;font-size:10px}.dw-presence-segments{display:grid;gap:5px;text-align:left;font-size:.7rem}.dw-presence-segments>span{display:flex;align-items:center;gap:5px}.dw-presence-segments b{margin-left:auto}.dw-dot{display:inline-block;flex:0 0 7px;width:7px;height:7px;background:#7d8a9a;border-radius:50%}.dw-dot-present{background:#168b62}.dw-dot-late{background:#c48a10}.dw-dot-absent{background:#d94350}.dw-dot-incomplete,.dw-dot-approved{background:#1684c8}.dw-line-chart{display:block;width:100%;max-height:230px}.dw-chart-key,.dw-axis{display:flex;justify-content:space-between;font-size:.7rem;color:#526078;margin:8px 0 12px}.dw-chart-key{justify-content:flex-end;gap:18px;color:#166ccc}.dw-list{list-style:none;padding:0;margin:0}.dw-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #edf1f6;font-size:.8rem}.dw-list li:last-child{border:0}.dw-list-main{min-width:0;flex:1}.dw-list-main strong,.dw-list-main small{display:block;overflow-wrap:anywhere}.dw-list time{font-variant-numeric:tabular-nums;color:#526078;font-size:.75rem}.dw-status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.dw-status-grid span{display:block;font-size:.72rem;color:#526078}.dw-status-grid strong{font-size:1.5rem;font-weight:750}.dw-widget .table{font-size:.78rem}.dw-widget .table th{color:#526078;font-weight:600;white-space:nowrap}.dw-editor-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:16px}.dw-editor-heading h2{font-size:1.2rem;font-weight:750}.dw-editor-heading p{color:#526078;max-width:64ch;font-size:.8rem}.dw-editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px;align-items:start}.dw-editor-list{display:grid;gap:10px}.dw-editor-row{background:white;border:1px solid #dce4ee;border-radius:8px;min-width:0}.dw-row-main{display:flex;align-items:center;gap:10px;padding:14px}.dw-grip{background:none;border:0;font-size:1.4rem;color:#526078;cursor:grab;touch-action:auto;padding:5px}.dw-order{display:flex;gap:3px}.dw-row-title{flex:1;min-width:0}.dw-row-title strong{display:block;font-size:.82rem;overflow-wrap:anywhere}.dw-row-title small{color:#526078;font-size:.7rem}.dw-enable{display:flex;gap:5px;align-items:center;margin:0;font-size:.72rem}.dw-enable .form-check-input{margin-top:0}.dw-size{width:135px;flex-shrink:0}.dw-role-details{border-top:1px solid #edf1f6;padding:10px 14px;font-size:.75rem}.dw-role-details summary{cursor:pointer;color:#2866a8}.dw-role-details p{color:#526078;margin-top:10px}.dw-role-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px 0 12px}.dw-role-grid .form-check{margin:0}.dw-preview-panel{position:sticky;top:20px;background:#f7f9fc;border:1px solid #dce4ee;border-radius:8px;padding:18px}.dw-preview-panel h3{font-size:.95rem;font-weight:700}.dw-preview-panel p,.dw-preview-panel label,.dw-preview-panel a{font-size:.75rem;color:#526078}.dw-preview-tile{padding:10px 5px;background:#e6f0ff;border:1px solid #c9ddfb;border-radius:4px;color:#23436a;font-size:.65rem;min-height:44px;overflow-wrap:anywhere}.dw-editor-row.dw-dragging{opacity:.5}.dw-editor-row:focus-within{border-color:#0878f9}.dw-editor-grid button:focus-visible{outline:3px solid #0878f9;outline-offset:2px}
@media(max-width:1199px){.dw-editor-grid{grid-template-columns:1fr}.dw-preview-panel{position:static}.dw-status-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dw-row-main{flex-wrap:wrap}.dw-row-title{min-width:150px}.dw-presence{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:575px){.dw-widget{padding:16px}.dw-editor-heading{flex-direction:column}.dw-enable{margin-left:auto}.dw-role-grid{grid-template-columns:1fr}.dw-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dw-presence{gap:16px}.dw-presence-group{padding:0 4px;border:0}.dw-dashboard-toolbar{align-items:flex-start}.dw-row-main{gap:8px}.dw-size{width:120px}.dw-order .btn{padding:4px 8px}}

/* Quiet state motion; the border draws once on hover, never loops. */
.dw-widget{position:relative;border-radius:12px;padding:22px;isolation:isolate}
.dw-widget::after{content:"";position:absolute;inset:-2px;border:2px solid #2868cf;border-radius:inherit;pointer-events:none;opacity:0;clip-path:inset(0 100% 0 0);transition:clip-path 320ms cubic-bezier(.22,1,.36,1),opacity 160ms ease-out}
.dw-widget:focus-within::after{opacity:1;clip-path:inset(0)}
@media(hover:hover) and (pointer:fine){.dw-widget:hover::after{opacity:1;clip-path:inset(0)}}
.dw-widget>header{margin-bottom:20px}.dw-widget h2{font-size:.95rem;line-height:1.45;font-weight:800;letter-spacing:-.015em}.dw-product-tag{background:#edf3ff;color:#234d9c;font-weight:650;font-size:.65rem}.dw-widget .table th{font-size:.7rem;padding-bottom:12px}.dw-widget .table td{padding-top:12px;padding-bottom:12px;font-variant-numeric:tabular-nums}.dw-widget .table td:not(:first-child),.dw-widget .table th:not(:first-child){text-align:right}.dw-metric-widget .dw-total{font-size:2.15rem;font-variant-numeric:tabular-nums;letter-spacing:-.025em}.dw-metric-widget>header{margin-bottom:12px}.dw-metric-widget .dw-help{margin-bottom:0}.dw-status-grid strong{font-size:1.4rem;letter-spacing:-.02em;font-variant-numeric:tabular-nums}.dw-list time{font-variant-numeric:tabular-nums}.dw-list li{padding:14px 0}.dw-presence-group h3{font-weight:750}.dw-presence-segments{font-size:.72rem;gap:7px}.dw-presence-segments b{font-variant-numeric:tabular-nums}.dw-line-chart{min-height:150px}.dw-donut{overflow:visible}.dw-ring-track,.dw-ring-fill{fill:none;stroke-width:10}.dw-ring-track{stroke:#e8edf3}.dw-ring-fill{stroke:#16805b}.dw-donut-value{font-variant-numeric:tabular-nums}.dw-shop-intro{margin:-5px 0 20px;max-width:75ch}.dw-shop-days{display:grid;gap:24px}.dw-shop-days-two{grid-template-columns:repeat(2,minmax(0,1fr))}.dw-shop-days-two .dw-shop-day+.dw-shop-day{border-left:1px solid #e7edf4;padding-left:24px}.dw-shift-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.dw-shift-heading h3{font-size:.82rem;line-height:1.5;font-weight:750;margin:0 0 4px;overflow-wrap:anywhere}.dw-shift-heading small{display:block;font-size:.7rem}.dw-shift-state{display:inline-block;font-size:.65rem;font-weight:700;border-radius:5px;padding:4px 7px;white-space:nowrap}.dw-state-active{color:#106a4d;background:#e8f5ef}.dw-state-upcoming{color:#234d9c;background:#edf3ff}.dw-state-completed{color:#526078;background:#edf1f6}.dw-shop-summary{display:grid;grid-template-columns:150px minmax(0,1fr);gap:24px;align-items:center}.dw-shop-summary .dw-donut{width:150px;margin:0 auto}.dw-shop-ledger{margin:0}.dw-shop-ledger>div{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #edf1f6;padding:9px 0}.dw-shop-ledger>div:last-child{border:0}.dw-shop-ledger dt{font-size:.75rem;color:#526078;font-weight:550}.dw-shop-ledger dd{font-size:1rem;font-weight:750;margin:0;font-variant-numeric:tabular-nums}.dw-shop-ledger .dw-help{font-size:.75rem}.dw-shop-days-two .dw-shop-summary{grid-template-columns:110px minmax(0,1fr);gap:15px}.dw-shop-days-two .dw-donut{width:110px}.dw-shop-days-two .dw-shop-ledger dt{font-size:.7rem}.dw-shop-footer{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin:20px 0 8px;padding-top:14px;border-top:1px solid #e7edf4;font-size:.7rem;color:#526078}.dw-shop-footer a{color:#1e56c9;white-space:nowrap;text-decoration:none}.dw-retail-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.75rem}.dw-retail-table th{font-weight:650;color:#526078;font-size:.7rem;padding:0 0 10px;border-bottom:1px solid #dce4ee}.dw-retail-table td{padding:14px 10px 14px 0;vertical-align:middle;border-bottom:1px solid #edf1f6;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.dw-retail-table th:nth-child(1){width:21%}.dw-retail-table th:nth-child(2){width:20%}.dw-retail-table th:nth-child(3){width:43%}.dw-retail-table th:last-child{width:16%}.dw-retail-table td:last-child,.dw-retail-table th:last-child{text-align:right;padding-right:0}.dw-retail-table small{display:block;font-size:.68rem;margin-top:5px}.dw-shift-progress{display:inline-block;width:80px;height:5px;background:#e8edf3;border-radius:3px;margin-left:10px;vertical-align:middle;overflow:hidden}.dw-shift-progress i{display:block;background:#16805b;height:100%;width:var(--dw-progress)}.dw-retail-timeline{margin-top:24px}.dw-timeline-axis{display:flex;justify-content:space-between;margin:0 0 14px 90px;font-size:.65rem;color:#526078}.dw-timeline-row{display:flex;align-items:center;gap:12px;margin:10px 0}.dw-timeline-row>span{width:78px;flex-shrink:0;font-size:.68rem;overflow-wrap:anywhere}.dw-timeline-row>div{height:12px;background:#f1f4f9;border-radius:3px;position:relative;flex:1;overflow:hidden}.dw-time-window{display:block;position:absolute;height:100%;background:#a7dec6;border-radius:3px}.dw-window-upcoming{background:#cbdcf8}.dw-window-completed{background:#c9d3df}.dw-retail-timeline>p{font-size:.68rem;margin-top:16px}.dw-presets{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:16px 0 10px}.dw-presets>span{font-size:.75rem;color:#526078;margin-right:8px}.dw-editor-row{transition:border-color 160ms ease-out}.dw-editor-row:focus-within{border-color:#2868cf}.dw-preview-tile{transition:background-color 160ms ease-out}.dw-loading{padding-top:20px;min-height:165px}.dw-loading-bar{display:block;height:12px;border-radius:5px;background:#edf1f6;max-width:85%;margin:15px 0}.dw-loading-short{max-width:55%}
@media(max-width:1199px){.dw-shop-days-two .dw-shop-summary{grid-template-columns:1fr}.dw-shop-summary{grid-template-columns:130px minmax(0,1fr)}.dw-shop-summary .dw-donut{width:130px}.dw-shift-progress{display:none}}
@media(max-width:767px){.dw-shop-days-two{grid-template-columns:1fr}.dw-shop-days-two .dw-shop-day+.dw-shop-day{border-left:0;border-top:1px solid #e7edf4;padding:20px 0 0}.dw-shop-days-two .dw-shop-summary{grid-template-columns:120px minmax(0,1fr)}.dw-shop-summary{grid-template-columns:120px minmax(0,1fr);gap:18px}.dw-shop-summary .dw-donut{width:120px}.dw-shop-footer{flex-direction:column;gap:8px}.dw-retail-table thead{display:none}.dw-retail-table tbody{display:block}.dw-retail-table tr{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:16px 0;border-bottom:1px solid #edf1f6}.dw-retail-table td{padding:0;border:0;font-size:.75rem}.dw-retail-table td:nth-child(1){grid-column:1;grid-row:1}.dw-retail-table td:nth-child(2){grid-column:1;grid-row:2;color:#526078;font-size:.7rem}.dw-retail-table td:nth-child(3){grid-column:1/-1;grid-row:3;padding-top:8px}.dw-retail-table td:last-child{grid-column:2;grid-row:1}.dw-retail-table small{font-size:.7rem}.dw-timeline-axis{margin-left:74px}.dw-timeline-row>span{width:62px}.dw-shop-ledger dt{font-size:.72rem}.dw-widget{padding:18px}.dw-shop-intro{font-size:.72rem}}
@media(max-width:379px){.dw-shop-summary,.dw-shop-days-two .dw-shop-summary{grid-template-columns:1fr;gap:10px}.dw-shift-heading{flex-wrap:wrap}.dw-shop-ledger>div{padding:7px 0}}
@media(prefers-reduced-motion:reduce){.dw-widget::after,.dw-editor-row,.dw-preview-tile{transition:none!important}.dw-widget::after{clip-path:none}.dw-widget *{scroll-behavior:auto}}

.dw-shop-window{margin-top:18px;padding-top:12px;border-top:1px solid #edf1f6}.dw-shop-window>div{display:flex;justify-content:space-between;gap:12px;font-size:.65rem;color:#526078}.dw-shop-window-track{display:block;height:4px;background:#e5eaf2;border-radius:3px;margin:9px 0}.dw-shop-window-track i{display:block;height:100%;background:#1e56c9;border-radius:3px}.dw-timeline-tracks{position:relative}.dw-timeline-cursor{position:absolute;inset:0 0 0 90px;pointer-events:none}.dw-timeline-cursor i{position:absolute;top:-4px;bottom:-4px;border-left:2px solid #1e56c9}@media(max-width:767px){.dw-timeline-cursor{left:74px}}

/* Dashboard hierarchy and shift layouts, 25/10/2026. */
.dw-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:8px 0 24px}
.dw-page-heading h1{margin:0;font-size:1.65rem;font-weight:750;color:#15243a}
.dw-page-heading .dw-dashboard-toolbar{margin:0;justify-content:flex-end;font-size:.8rem;gap:14px}
.dw-dashboard-toolbar button{min-height:40px}
.dw-presence{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 32px}
.dw-presence-group{text-align:left;padding:0;border:0;min-width:0}
.dw-presence-heading h3{font-size:.9rem;margin:0 0 4px}
.dw-presence-heading p{font-size:.75rem;color:#526078;margin:0 0 14px;line-height:1.6;overflow-wrap:anywhere}
.dw-presence-body{display:grid;grid-template-columns:132px minmax(0,1fr);align-items:center;gap:20px}
.dw-presence-body .dw-donut{width:132px;margin:0}
.dw-presence-segments{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;margin:0}
.dw-presence-stat dt{display:flex;align-items:center;gap:5px;font-size:.72rem;font-weight:500;color:#526078;line-height:1.45}
.dw-presence-stat dd{font-size:1.25rem;font-weight:750;color:#15243a;margin:3px 0 0;font-variant-numeric:tabular-nums}
.dw-presence-approved{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e7edf4;padding-top:8px}
.dw-presence-approved dd{font-size:1rem;margin:0}
.dw-shift-category{font-size:.72rem;color:#526078;display:block;margin-bottom:5px}
.dw-shift-status h2,.dw-retail-name h3,.dw-shift-heading h3{overflow-wrap:anywhere}
.dw-shift-hours{font-size:.8rem;color:#354860;line-height:1.6;margin:6px 0 0;font-variant-numeric:tabular-nums}
.dw-shift-hours span{color:#526078;font-size:.72rem}
.dw-shift-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 14px;margin:0}
.dw-shift-metrics div{min-width:0}.dw-shift-metrics dt{font-size:.73rem;color:#526078;font-weight:500;line-height:1.5}
.dw-shift-metrics dd{font-size:1.55rem;font-weight:750;margin:6px 0 0;font-variant-numeric:tabular-nums}
.dw-shop-summary{grid-template-columns:180px minmax(0,1fr);gap:36px;padding:18px 0 24px}
.dw-shop-summary .dw-donut{width:172px;margin:0}
.dw-shop-ledger{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 26px;margin:0}
.dw-shop-ledger>div{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:0;border:0}
.dw-shop-ledger dt{font-size:.8rem;font-weight:500;color:#526078;line-height:1.45}
.dw-shop-ledger dd{font-size:1.65rem;font-weight:750;margin:0;font-variant-numeric:tabular-nums}
.dw-shop-days-two .dw-shop-summary{grid-template-columns:120px minmax(0,1fr);gap:20px}
.dw-shop-days-two .dw-shop-summary .dw-donut{width:120px}
.dw-shop-days-two .dw-shop-ledger{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.dw-shop-window{margin-top:0}.dw-shop-window-track{height:5px}.dw-shop-footer{margin-top:24px;padding-top:16px;align-items:center;gap:24px}
.dw-shop-footer>span{max-width:70ch;line-height:1.65}.dw-shop-footer a{white-space:nowrap;min-height:32px;display:inline-flex;align-items:center}
.dw-retail-labels,.dw-retail-rows>li{display:grid;grid-template-columns:minmax(180px,1.35fr) minmax(88px,.55fr) minmax(170px,1.3fr) auto;align-items:center;gap:24px}
.dw-retail-labels{font-size:.72rem;color:#526078;padding-bottom:12px;border-bottom:1px solid #e7edf4}
.dw-retail-rows{list-style:none;margin:0;padding:0}
.dw-retail-rows>li{padding:22px 0;border-bottom:1px solid #e7edf4}.dw-retail-rows>li:last-child{border-bottom:0}
.dw-retail-name h3{font-size:.9rem;line-height:1.5;font-weight:700;margin:0}
.dw-retail-count strong{font-size:1.5rem;color:#15243a;white-space:nowrap}.dw-retail-count strong small{font-size:1rem;color:#526078;font-weight:500}
.dw-retail-count>span{display:block;font-size:.72rem;color:#526078;margin-top:3px}
.dw-retail-bar{display:block;height:6px;border-radius:8px;background:#e8edf4;overflow:hidden}
.dw-retail-bar i{display:block;height:100%;border-radius:inherit;background:#16805b}
.dw-retail-attendance p{font-size:.73rem;color:#526078;margin:9px 0 0;line-height:1.6;display:flex;flex-wrap:wrap;gap:3px 12px}
.dw-retail-schedule{border-top:1px solid #e7edf4;margin-top:10px;padding-top:16px}.dw-retail-schedule>summary{font-size:.8rem;color:#2866a8;cursor:pointer;min-height:32px}
.dw-retail-schedule .dw-retail-timeline{margin-top:16px}
@media(max-width:1199px){.dw-presence-body{grid-template-columns:112px minmax(0,1fr);gap:12px}.dw-presence-body .dw-donut{width:112px}.dw-presence{gap:24px}.dw-retail-labels,.dw-retail-rows>li{gap:16px;grid-template-columns:minmax(150px,1.2fr) 90px minmax(130px,1fr) auto}}
@media(max-width:767px){.dw-page-heading{align-items:flex-start;flex-wrap:wrap;gap:14px}.dw-page-heading h1{font-size:1.45rem}.dw-page-heading .dw-dashboard-toolbar{width:100%;justify-content:space-between;gap:8px}.dw-presence{grid-template-columns:1fr;gap:24px}.dw-presence-group+.dw-presence-group{border-top:1px solid #e7edf4;padding-top:20px}.dw-presence-body{grid-template-columns:108px minmax(0,1fr);gap:16px}.dw-presence-body .dw-donut{width:108px}.dw-presence-stat dt{font-size:.73rem}.dw-shift-status>header{align-items:flex-start}.dw-shift-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.dw-shop-summary,.dw-shop-days-two .dw-shop-summary{grid-template-columns:104px minmax(0,1fr);gap:18px;padding:18px 0}.dw-shop-summary .dw-donut,.dw-shop-days-two .dw-shop-summary .dw-donut{width:104px}.dw-shop-ledger,.dw-shop-days-two .dw-shop-ledger{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.dw-shop-ledger dt{font-size:.73rem}.dw-shop-ledger dd{font-size:1.35rem}.dw-shop-footer{align-items:flex-start;gap:10px}.dw-retail-labels{display:none}.dw-retail-rows>li{grid-template-columns:minmax(0,1fr) auto;gap:14px 12px;padding:20px 0}.dw-retail-name{grid-column:1;grid-row:1}.dw-retail-rows>li>.dw-shift-state{grid-column:2;grid-row:1;align-self:start}.dw-retail-count{grid-column:2;grid-row:2}.dw-retail-attendance{grid-column:1;grid-row:2}.dw-retail-count strong{font-size:1.35rem}.dw-retail-name h3{font-size:.87rem}.dw-shift-hours span{display:block}.dw-shop-days-two .dw-shop-day+.dw-shop-day{padding-top:20px}.dw-presence-segments{gap:10px 12px}}
@media(max-width:359px){.dw-presence-body{grid-template-columns:90px minmax(0,1fr);gap:10px}.dw-presence-body .dw-donut{width:90px}.dw-shop-summary,.dw-shop-days-two .dw-shop-summary{grid-template-columns:1fr}.dw-shop-summary .dw-donut,.dw-shop-days-two .dw-shop-summary .dw-donut{width:128px;margin:auto}.dw-shop-ledger dt{font-size:.78rem}.dw-presence-stat dt{font-size:.7rem}.dw-shift-state{font-size:.65rem}}

.dw-shift-family,.dw-shift-grid{display:contents}

.dw-shift-family[data-widget="factory"]::before{content:"";flex-basis:100%;height:0;margin:0;padding:0}

@media(max-width:767px){.dw-dashboard-toolbar button,.dw-retail-schedule>summary,.dw-shop-footer a{min-height:44px}.dw-shift-metrics dt,.dw-shop-ledger dt,.dw-retail-attendance p{font-size:.78rem}}

/* Four desktop shift charts and a compact retail overview, 26/10/2026. */
@media(min-width:1200px){
 .dw-presence{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
 .dw-presence-group{border:0;padding:0;min-width:0}
 .dw-presence-body{grid-template-columns:1fr;gap:12px}
 .dw-presence-body .dw-donut{width:136px;margin:0 auto}
 .dw-presence-heading{min-height:70px}
 .dw-presence-segments{gap:12px 14px}
}
.dw-retail-glance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.dw-retail-shifts-1{grid-template-columns:1fr}.dw-retail-shifts-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.dw-retail-shifts-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.dw-retail-shift{min-width:0;text-align:center;padding:0 16px}
.dw-retail-shift+.dw-retail-shift{border-left:1px solid #e7edf4}
.dw-retail-shift>header{min-height:100px}
.dw-retail-shift h3{font-size:.95rem;font-weight:700;line-height:1.5;overflow-wrap:anywhere;margin:10px 0 4px;color:#15243a}
.dw-retail-shift header p{font-size:.8rem;color:#526078;margin:0;line-height:1.6;font-variant-numeric:tabular-nums}
.dw-retail-shift header p span{font-size:.72rem}
.dw-retail-ring{display:block;width:156px;max-width:100%;margin:12px auto 18px}
.dw-retail-ring-late{fill:none;stroke:#c48a10;stroke-width:12}
.dw-retail-ring-value{font-size:22px;font-weight:750;fill:#15243a}
.dw-retail-ring-total{font-size:14px;font-weight:500;fill:#526078}
.dw-retail-glance-counts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
.dw-retail-glance-counts dt{display:flex;align-items:center;justify-content:center;gap:5px;font-size:.75rem;font-weight:500;color:#526078}
.dw-retail-glance-counts dd{font-size:1.35rem;font-weight:750;margin:5px 0 0;font-variant-numeric:tabular-nums;color:#15243a}
@media(min-width:768px) and (max-width:1199px){.dw-presence{grid-template-columns:repeat(2,minmax(0,1fr))}.dw-retail-glance{gap:16px}.dw-retail-shift{padding:0 8px}.dw-retail-shifts-4{grid-template-columns:repeat(2,minmax(0,1fr))}.dw-retail-ring{width:136px}}
@media(max-width:767px){
 .dw-retail-glance,.dw-retail-shifts-2,.dw-retail-shifts-4{grid-template-columns:1fr;gap:0}
 .dw-retail-shift{display:grid;grid-template-columns:96px minmax(0,1fr);grid-template-rows:auto auto;gap:12px 20px;text-align:left;padding:20px 0}
 .dw-retail-shift:first-child{padding-top:0}.dw-retail-shift+.dw-retail-shift{border-left:0;border-top:1px solid #e7edf4}
 .dw-retail-shift>header{grid-column:2;grid-row:1;min-height:0}
 .dw-retail-shift h3{font-size:.9rem;margin-top:8px}.dw-retail-shift header p{font-size:.78rem}
 .dw-retail-ring{grid-column:1;grid-row:1/3;width:96px;align-self:center;margin:0}
 .dw-retail-glance-counts{grid-column:2;grid-row:2}.dw-retail-glance-counts dt{justify-content:flex-start;font-size:.73rem}.dw-retail-glance-counts dd{font-size:1.15rem;margin-top:3px}
}
@media(max-width:359px){.dw-retail-shift{grid-template-columns:86px minmax(0,1fr);gap:12px}.dw-retail-ring{width:86px}.dw-retail-shift h3{font-size:.85rem}.dw-retail-glance-counts{gap:8px}}


/* Dashboard cards and the company widget editor. */
.dw-widget{border-radius:12px;box-shadow:0 2px 7px #18365b12;transition:box-shadow 180ms ease-out;font-variant-numeric:tabular-nums}
.dw-widget:hover,.dw-widget:focus-within{box-shadow:0 3px 8px #18365b24}
.dw-widget h2{overflow-wrap:anywhere}
.dw-metric-widget{height:100%;min-height:142px}
.dw-donut-track,.dw-donut-depth,.dw-donut-segment,.dw-donut-highlight{fill:none;stroke-width:14}
.dw-donut-track{stroke:#e7edf4}
.dw-donut-depth{stroke:#b9c7d8}
.dw-donut-highlight{stroke:#fff;stroke-opacity:.4;stroke-width:1}
.dw-donut-present{stroke:#168b62}.dw-donut-late{stroke:#c48a10}
.dw-donut-absent{stroke:#d94350}.dw-donut-incomplete{stroke:#1684c8}
.dw-donut-approved{stroke:#7755a6}.dw-dot-approved{background:#7755a6}
.dw-status-track,.dw-rank-track{display:flex;overflow:hidden;background:#e7edf4;border-radius:5px;height:10px}
.dw-status-track{margin:10px 0 16px}
.dw-status-track i{height:100%}
.dw-band-working,.dw-rank-track i{background:#168b62}
.dw-band-on_lunch{background:#c48a10}.dw-band-clocked_out{background:#29486e}
.dw-band-absent{background:#d94350}.dw-band-approved{background:#7755a6}
.dw-rank-value{display:flex;align-items:center;gap:7px}
.dw-rank-track{width:clamp(32px,6vw,100px);height:5px}
.dw-rank-track i{display:block;height:100%}
.dw-shop-coverage{display:grid;grid-template-columns:minmax(90px,1fr) minmax(0,3fr);gap:16px;align-items:center;margin:15px 0}
.dw-timeline-axis,.dw-retail-row-v2{display:grid;grid-template-columns:minmax(105px,1fr) minmax(0,4fr) minmax(115px,1fr);gap:16px;align-items:center}
.dw-timeline-axis{font-size:.75rem;color:#526078;margin:0 0 8px}
.dw-timeline-axis span:first-child{grid-column:2}
.dw-timeline-axis span:last-child{grid-column:2;grid-row:1;justify-self:end}
.dw-retail-row-v2{padding:10px 0;border-bottom:1px solid #e7edf4}
.dw-retail-row-v2 h3{font-size:.9rem;margin:0}
.dw-retail-staff{display:grid;gap:4px;justify-items:start}
.dw-timeline-lane{position:relative;height:28px;background:#f0f4f8;border-radius:5px}
.dw-timeline-slot{position:absolute;left:var(--dw-start);width:var(--dw-span);inset-block:4px;border-radius:4px;background:#8b99ac}
.dw-timeline-slot.dw-state-active{background:#168b62}.dw-timeline-slot.dw-state-completed{background:#29486e}
.dw-timeline-now{position:absolute;inset-block:0;width:2px;background:#065abf}
.dw-timeline-caption{text-align:right;margin:8px 0 0}
.dw-attention li{padding:4px 0}
.dw-attention li a{display:flex;align-items:center;gap:12px;width:100%;padding:8px 10px;min-height:44px;border-radius:6px;background:#f4f7fa;text-decoration:none}
.dw-attention li a span:last-child{margin-left:auto}
.dw-editor-actions{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.dw-widget-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.dw-widget-fields>label{grid-column:1/-1}
.dw-widget-fields legend{float:none;font-size:.8rem;font-weight:700;margin-bottom:4px}
.dw-widget-fields fieldset{min-width:0}
.dw-scope-options{max-height:175px;overflow:auto;overscroll-behavior:contain}
.dw-scope-options .form-check{min-height:26px;margin:0;overflow-wrap:anywhere}
[data-grow-x]{transform-origin:left center}
svg [data-grow-y]{transform-box:fill-box;transform-origin:center bottom}
@media(max-width:767px){
 .dw-widget{padding:14px}
 .dw-timeline-axis{display:none}
 .dw-retail-row-v2{grid-template-columns:minmax(0,1fr) auto;gap:8px}
 .dw-timeline-lane{grid-column:1/-1;grid-row:2}
 .dw-retail-staff{grid-column:2;grid-row:1}
 .dw-timeline-caption{text-align:left}
 .dw-shop-coverage{grid-template-columns:minmax(0,1fr)}
 .dw-widget-fields{grid-template-columns:minmax(0,1fr)}
 .dw-row-main{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){.dw-widget{transition:none}}


/* Initial loading only. Refresh keeps existing figures and animates the button. */
main:has([data-dashboard-widgets]) .dw-loading-preview{display:none}
.dw-loading-preview h1{font-size:1.6rem;margin:0 0 8px}
.dw-loading-tile{min-height:112px}
.dw-loading-tile span{display:block;height:12px;width:70%;margin:4px 0 16px;border-radius:5px;background:#e8edf4}
.dw-loading-tile span+span{width:42%;height:22px;margin-bottom:0}
@media(prefers-reduced-motion:no-preference){
 .dw-loading-tile span,
 .dw-dashboard-toolbar [data-widget-refresh]:disabled{animation:dw-loading-pulse 1.25s ease-in-out infinite}
}
@keyframes dw-loading-pulse{50%{opacity:.5}}

[data-dashboard-widgets][aria-busy=true] .dw-widget{position:relative}
[data-dashboard-widgets][aria-busy=true] .dw-widget::before{
 content:"";position:absolute;inset:0 12px auto;height:2px;border-radius:2px;background:#4182de;
}
@media(prefers-reduced-motion:no-preference){
 [data-dashboard-widgets][aria-busy=true] .dw-widget::before{animation:dw-widget-progress 1.25s ease-in-out infinite}
}
@keyframes dw-widget-progress{0%,100%{transform:scaleX(.16);opacity:.55}50%{transform:scaleX(.85);opacity:1}}


/* Approved dashboard mockup treatments. */
.dw-page-heading{
 background:#fff;border:1px solid #b8c4d4;border-radius:12px;padding:10px 16px;margin:0 0 16px
}
.dw-page-heading h1{font-size:1.5rem;font-weight:800;color:#101d38}
.dw-dashboard-toolbar button{min-height:40px;border:1px solid #0767d8;color:#075ac0;font-weight:750}
.dw-dashboard-toolbar button span{font-size:1.2em;margin-right:3px}
.dw-widget{color:#101d38;border-color:#b8c4d4;border-radius:12px;box-shadow:0 2px 6px rgb(20 43 79 / 6%)}
.dw-widget h2{font-size:1.18rem;font-weight:800;color:#101d38}
.dw-card-heading{display:flex;min-width:0;align-items:center;gap:10px}
.dw-card-heading .customer-icon{color:#0767d8;width:24px;height:24px;flex:none}
.dw-card-footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px 12px;border-top:1px solid #d7dfe9;margin-top:14px;padding-top:10px}
.dw-card-footer a,.dw-card-link{font-weight:750;color:#075ac0;font-size:.85rem}
.dw-card-footer small:empty{display:none}
.dw-metric-widget>header{margin-bottom:3px}
.dw-total{font-weight:850;letter-spacing:-.025em;font-variant-numeric:tabular-nums;line-height:1.2}
.dw-metric-widget .dw-help{margin:4px 0 0}
.dw-presence-heading h3{font-size:1.08rem;font-weight:800}
.dw-shared-legend{list-style:none;display:flex;justify-content:center;gap:8px 18px;flex-wrap:wrap;border-top:1px solid #d7dfe9;padding:12px 0 0;margin:16px 0 0;font-size:.78rem}
.dw-shared-legend li{display:flex;align-items:center;gap:5px}
.dw-shared-legend .dw-dot{border-radius:3px}
.dw-upcoming{text-align:center;margin:0;color:#17233b;font-size:.83rem}
.dw-upcoming small{display:block}
.dw-scheduled{font-size:.83rem;margin:0 0 6px;color:#43526a}
.dw-shift-status>header{margin-bottom:8px}
.dw-shift-metrics{column-gap:0;text-align:center}
.dw-shift-metrics div+div{border-left:1px solid #d7dfe9}
.dw-shift-metrics dd{grid-row:1;margin:0}
.dw-shift-metrics div{display:grid;gap:2px}
.dw-count-working{color:#138039}.dw-count-on_lunch{color:#946000}
.dw-count-clocked_out{color:#203b6c}.dw-count-absent{color:#ba273a}
.dw-status-track,.dw-rank-track,.dw-shop-window-track{width:100%;display:block;overflow:hidden}
.dw-status-track{height:23px;margin:0 0 14px;border-radius:7px}
.dw-band-working{fill:#16823d}.dw-band-on_lunch{fill:#ec9b14}
.dw-band-clocked_out{fill:#263e73}.dw-band-absent{fill:#ce3347}
.dw-band-approved{fill:#7844a2}.dw-band-pending{fill:#728599}
.dw-shop-window-track rect{fill:#0767d8}
.dw-shop-coverage{grid-template-columns:minmax(110px,1fr) minmax(85px,2.2fr) minmax(150px,1.2fr);gap:14px}
.dw-shop-coverage-bar{border-inline:1px solid #d7dfe9;padding:16px 14px}
.dw-shop-coverage-bar .dw-status-track{height:30px;margin:0}
.dw-shop-coverage>div:first-child small{display:block}
.dw-shop-coverage .dw-shift-metrics{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:10px}
.dw-shop-coverage .dw-shift-metrics div{border:0}
.dw-shop-days-two .dw-shop-coverage{grid-template-columns:minmax(0,1fr)}
.dw-shop-days-two .dw-shop-coverage-bar{border:0;padding:0}
.dw-timeline-lane{display:block;width:100%;height:21px;overflow:hidden;background:#edf2f7}
.dw-timeline-now{stroke:#0767d8;stroke-width:2px}
.dw-shop-footer .btn{font-weight:750;color:white;background:#0767d8}
.dw-attention li a{background:#fff1db;color:#16243c}
.dw-attention li:has(.dw-tone-critical) a{background:#fbeaec}
.dw-attention li a strong{min-width:2em;text-align:center;background:rgb(232 160 42 / 20%);border-radius:6px;padding:3px 6px}
.dw-attention li a strong.dw-tone-critical{background:#f8d8df}
.dw-attention li a span:last-child{color:#075ac0}
.dw-list.dw-activity-list li{padding:5px 0}
.dw-punch-in{background:#def5e3;color:#176331}
.dw-punch-lunch_out,.dw-punch-lunch_in{background:#ffefd2;color:#734600}
.dw-punch-out{background:#e5ebf3;color:#35475e}
.dw-attention-periods{display:grid;grid-template-rows:1fr 1fr;gap:12px}
.dw-attention-period{min-width:0}
.dw-attention-period h3{font-size:.85rem;font-weight:750;color:#16243c}
.dw-attention-period .dw-attention li a{min-height:0;padding:6px 8px}
.dw-attention .dw-attention-zero strong{background:#e5ebf3;color:#526078}
.dw-activity-list time{min-width:4em}
.dw-activity-list .dw-product-tag{max-inline-size:9rem;white-space:normal;text-align:center}
.dw-initials,.dw-device-icon{display:grid;place-items:center;flex:none;padding:4px;border-radius:6px;background:#e3efff;color:#204c85;font-weight:750;min-width:2.2em}
.dw-device-icon .customer-icon{width:18px;height:18px}
[data-widget-type="devices"]>.dw-widget{border-color:#a4b5cb;box-shadow:0 6px 20px rgb(25 55 100 / 10%)}
[data-widget-type="devices"] .dw-card-heading{gap:13px}
[data-widget-type="devices"] .dw-card-heading h2{font-size:1.35rem;font-weight:800;color:#101b40}
[data-widget-type="devices"] .dw-card-heading .customer-icon{width:26px;height:26px;color:#0754f5}
.dw-device-health-healthy{--device-tile:#e3f4e8;--device-dot:#249b36;background:#d4f1d9;color:#125626}
.dw-device-health-attention{--device-tile:#fff4de;--device-dot:#f9b600;background:#fff1cd;color:#754800}
.dw-device-health-offline{--device-tile:#fce9eb;--device-dot:#dd3038;background:#fae0e3;color:#9f2635}
.dw-device-health-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 0 8px}
.dw-device-health-summary>div{
 display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto 1fr;
 align-content:start;column-gap:clamp(5px,0.7vw,10px);padding:10px 8px;min-height:69px;
 border-radius:7px;background:var(--device-tile);color:#101b40
}
.dw-device-health-summary>div::before{
 content:"";grid-row:1;grid-column:1;align-self:center;width:11px;height:11px;
 border-radius:50%;background:var(--device-dot)
}
.dw-device-health-summary dt{
 grid-row:2;grid-column:2;font-size:.75rem;font-weight:600;line-height:1.25;overflow-wrap:anywhere
}
.dw-device-health-summary dd{
 grid-row:1;grid-column:2;margin:0 0 2px;font-size:1.85rem;font-weight:800;line-height:1
}
.dw-list.dw-device-list li{align-items:center;padding:11px 0;border-color:#d2dceb}
.dw-device-list .dw-list-main strong{font-size:1rem;font-weight:800;line-height:1.35;color:#101b40}
.dw-device-list .dw-list-main small{font-size:.78rem;line-height:1.4;color:#40516e}
.dw-device-times{margin:2px 0 0;font-size:.75rem;line-height:1.4;color:#40516e}
.dw-device-times>div{display:flex;flex-wrap:wrap;gap:0 5px}
.dw-device-times dt{font-weight:600}
.dw-device-times dd{margin:0;min-width:0;overflow-wrap:anywhere}
.dw-device-health-detail{display:grid;justify-items:end;gap:4px;max-width:40%;text-align:right}
.dw-device-health-detail small{font-size:.7rem;line-height:1.35;overflow-wrap:anywhere}
.dw-device-state{
 display:inline-block;padding:5px 12px;border-radius:999px;font-size:.8rem;
 font-weight:800;line-height:1.3;text-align:center;overflow-wrap:anywhere
}
[data-widget-type="devices"] .dw-card-footer{border-color:#d2dceb;margin-top:0;padding-top:12px}
[data-widget-type="devices"] .dw-card-footer a{color:#0754f5;font-size:.9rem;text-decoration:none}
[data-widget-type="devices"] .dw-card-footer a:is(:hover,:focus-visible){text-decoration:underline}
@media(max-width:420px){
 [data-widget-type="devices"] .dw-card-heading h2{font-size:1.18rem}
 .dw-device-health-summary>div{padding:9px 5px;column-gap:5px}
 .dw-device-health-summary>div::before{width:8px;height:8px}
 .dw-device-health-summary dt{grid-column:1/-1;font-size:.7rem}
 .dw-device-health-summary dd{font-size:1.6rem}
 .dw-list.dw-device-list li{gap:8px}
 .dw-device-health-detail{align-self:flex-start}
}
.dw-rank-track{width:clamp(28px,7vw,116px);height:7px;flex-shrink:0}
.dw-rank-position{color:#43526a;font-variant-numeric:tabular-nums}
svg [data-grow-x]{transform-box:fill-box;transform-origin:left center}
.dw-timeline-lane>g[data-grow-x]{transform-box:view-box}
@media(min-width:1200px){
 .dw-presence-group+.dw-presence-group{border-left:1px solid #d7dfe9;padding-left:16px}
 .dw-presence-heading{min-height:54px}
 .dw-presence-body .dw-donut{width:min(100%,170px)}
}
@media(max-width:767px){
 .dw-page-heading{padding:10px 12px}
 .dw-shop-coverage{grid-template-columns:minmax(0,1fr)}
 .dw-shop-coverage-bar{border:0;padding:0}
 .dw-shift-status .dw-shift-metrics div:nth-child(3){border:0}
 .dw-widget h2{font-size:1rem}
 .dw-rank-track{width:clamp(20px,7vw,38px)}
 .dw-widget .table>:not(caption)>*>*{padding-inline:4px}
}

.dw-hourly-subtitle{margin:-10px 0 8px}
.dw-chart-key{justify-content:center;color:#263850}
.dw-chart-key span{display:inline-flex;align-items:center;gap:5px}
.dw-hourly-today{width:10px;height:10px;background:#0878f9;border-radius:2px}
.dw-hourly-average{width:22px;border-top:2px dashed #74869d}
.dw-hourly-summary{padding-top:9px;border-top:1px solid #d7dfe9;margin:0 0 8px;font-size:.85rem}
.dw-bar-label{fill:white;font-weight:750;font-size:11px;pointer-events:none}
.dw-shop-window-track{height:8px}
.dw-shop-window-track circle{fill:#0767d8}
.dw-now-label{justify-content:flex-end}
.dw-now-label span{background:#0767d8;color:white;padding:2px 6px;border-radius:4px;font-weight:700}
.dw-timeline-axis{margin-left:0}
@media(max-width:575px){.dw-bar-label{display:none}}

.dw-timeline-axis span:first-child{grid-row:1}
.dw-hourly-grid{stroke:#e4ebf4;fill:none}
.dw-chart-tick,.dw-hourly-count{font-size:12px;fill:#43526a;font-variant-numeric:tabular-nums}
.dw-hourly-count{font-weight:800;fill:#17233b}
@media(min-width:1200px){
 .dw-presence-1{grid-template-columns:minmax(0,1fr)}
 .dw-presence-2{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dw-presence-3{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:575px){.dw-chart-tick,.dw-hourly-count{font-size:18px}}


/* Presence chart states and staff links keep the existing chart grid. */
.dw-presence-group .dw-shift-state{margin-bottom:.375rem}
.dw-donut-awaiting,.dw-dot-awaiting{color:#738399}
.dw-donut-awaiting{stroke:currentColor}
.dw-dot-awaiting{background:currentColor}
