/* Dense desktop shop dashboard (only when the desktop dashboard layout is active). */
/* --- notice: never over the orders table --- */
#notice:not(:empty){cursor:pointer}
body.sd-dashboard #notice:not(:empty)::after{content:'×';margin-inline-start:12px;font-weight:700;opacity:.8}
body.sd-dashboard #notice{left:auto;right:12px;transform:none;bottom:12px;width:calc(var(--sd-dash-sidebar,220px) - 24px);max-width:calc(var(--sd-dash-sidebar,220px) - 24px);font-size:13px;line-height:1.4;border:1px solid #2e6b5a;z-index:60}
body.sd-dashboard #notice:not(:empty){padding:10px 12px;display:flex;align-items:flex-start;justify-content:space-between}
/* --- KPI tiles: compact, two rows --- */
body.sd-dense .sd-kpi-block{margin:0 0 6px}
body.sd-dense .sd-kpi-block>h2{margin:0 2px 3px;font-size:11px}
body.sd-dense .sd-approved-tile,body.sd-dense .sd-carpentry .sd-approved-tile{min-height:0!important;padding:6px 10px!important;display:grid!important;grid-template-columns:1fr auto;align-items:center;gap:2px 8px}
body.sd-dense .sd-approved-tile .sd-tile-top{display:contents}
body.sd-dense .sd-approved-tile .sd-tile-label{grid-column:1;grid-row:1;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.sd-dense .sd-approved-tile .sd-step,body.sd-dense .sd-approved-tile .sd-tile-icon{display:none}
body.sd-dense .sd-approved-tile b{grid-column:2;grid-row:1/span 2;font-size:24px}
body.sd-dense .sd-approved-tile small{grid-column:1;grid-row:2;margin:0;font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.sd-dense .sd-kpi-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 6px}
body.sd-dense .sd-kpi-pair .sd-kpi-block{margin:0}
body.sd-dense .sd-kpi-pair .sd-approved-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
/* --- filtered: tiles become a slim strip so the table gets the height --- */
body.sd-filter-on .sd-kpi-block>h2{display:none}
body.sd-filter-on .sd-approved-tile,body.sd-filter-on .sd-carpentry .sd-approved-tile{padding:3px 9px!important;border-top-width:2px!important}
body.sd-filter-on .sd-approved-tile small{display:none}
body.sd-filter-on .sd-approved-tile b{grid-row:1;font-size:17px}
body.sd-filter-on .sd-approved-tile .sd-tile-label{font-size:12px}
body.sd-filter-on .sd-kpi-block,body.sd-filter-on .sd-kpi-pair{margin-bottom:4px}
body.sd-filter-on .sd-approved-grid{gap:6px}
body.sd-filter-on .sd-filter-pill{display:none}
/* attention banner + reason chips in one compact band */
body.sd-dense .sd-attention-banner{min-height:28px;padding:3px 10px;margin:0 0 4px}
body.sd-dense .sd-reason-groups{gap:5px;margin:0 0 4px;padding:0}
body.sd-dense .sd-reason-chip{flex-direction:row;align-items:center;gap:6px;padding:3px 9px;border-radius:14px;max-width:none;min-height:26px;box-shadow:none}
body.sd-dense .sd-reason-chip strong{font-size:12px;font-weight:600;white-space:nowrap}
body.sd-dense .sd-reason-chip b{font-size:12px;min-width:20px;padding:0 6px;border-radius:9px;background:#0f6e6a;color:#fff;text-align:center;line-height:18px}
body.sd-dense .sd-reason-chip small{display:none}
/* table: dense rows, sticky header, gets all leftover height */
body.sd-dense .sd-table-card{padding:6px 10px 4px}
body.sd-dense .sd-filters.toolbar{margin:4px 0 5px}
body.sd-dense .sd-table-head{position:sticky;top:0;z-index:2;background:var(--sd-surface,#fff)}
body.sd-dense .sd-row>summary.sd-columns{height:38px!important;min-height:38px!important;max-height:38px!important;padding:3px 9px!important;padding-block:3px!important;line-height:1.2}
body.sd-dense .sd-row>summary.sd-columns>span{max-height:34px}
body.sd-dense .sd-row>summary .sd-client small{font-size:10.5px!important}
body.sd-dense .sd-row small{margin-top:1px;font-size:10.5px}
body.sd-dense .sd-row .sd-pill{padding-block:1px}
body.sd-dense .sd-table-footer{min-height:24px;padding-top:3px}
body.sd-dense .sd-pages.sd-single-page button{visibility:hidden}
body.sd-dense #sd-page-number{white-space:nowrap}
/* attention band: summary + reason chips + clear in one wrapped line */
body.sd-dense .sd-attention-band{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:0 0 5px;flex-shrink:0}
body.sd-dense .sd-attention-band .sd-attention-banner{margin:0;min-height:26px;padding:2px 4px 2px 10px;border-radius:14px;gap:8px;order:0}
body.sd-dense .sd-attention-band .sd-attention-banner button{min-height:22px;padding:0 9px;border-radius:11px}
body.sd-dense .sd-attention-band .sd-reason-groups{display:contents}
/* second KPI row is half width: let long labels wrap instead of truncating */
body.sd-dense:not(.sd-filter-on) .sd-kpi-pair .sd-approved-tile .sd-tile-label{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.2}
body.sd-dense:not(.sd-filter-on) .sd-kpi-pair .sd-approved-tile small{display:none}
body.sd-dense:not(.sd-filter-on) .sd-kpi-pair .sd-approved-tile b{grid-row:1}
