/* Scoped shell/home/workspace presentation; existing business tables and forms retain their CSS. */
.workspace-shell {display:grid;grid-template-areas:"brand brand" "nav main";grid-template-rows:auto 1fr;grid-template-columns:190px minmax(0,1fr)}
.workspace-shell .workspace-brandbar {grid-area:brand;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 28px;border-bottom:1px solid #c5c8bd}
.workspace-shell .workspace-account {display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:flex-end;min-width:0}
.workspace-account .account-name {overflow-wrap:anywhere;max-width:180px}
.workspace-shell .sidebar {grid-area:nav;background:var(--paper);height:auto;align-self:start;position:sticky;top:0;padding:16px 12px;border-right:1px solid #c5c8bd}
.workspace-shell .nav a {white-space:nowrap;padding:12px;margin:3px 0;color:var(--ink)}
.workspace-shell .nav a.active {color:#fff;background:var(--green)}
.workspace-shell .main {grid-area:main;min-width:0}
.workspace-shell .content {padding-top:24px}
.workspace-subnav {display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:12px 28px;background:var(--paper)}
.workspace-subnav:empty {display:none}
.workspace-subnav a {padding:7px 10px;border-radius:3px;color:var(--ink)}
.workspace-subnav a.active {color:var(--ink);background:var(--surface-selected);box-shadow:inset 0 -2px var(--green)}
.shortcut-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-width:680px;margin:0 auto 28px}
.shortcut {position:relative;display:block;aspect-ratio:1;min-width:0;overflow:hidden;color:var(--ink);background:#f5f0e6;border:1px solid #d8d4ca;border-radius:3px;text-align:center}
.shortcut-art {position:absolute;inset:0;display:block;background-image:url('/workspace-art/shortcut-atlas.webp');background-size:400% 529.0566%;background-position:var(--tile-x) var(--tile-y);background-repeat:no-repeat}
/* Personal scenes: skip 42px of empty source space and include the original row through 282px. */
.shortcut-art-orders {background-image:url('/workspace-art/orders.webp');background-size:cover;background-position:center}
.shortcut-art-cashier {background-image:url('/workspace-art/cashier.webp');background-size:cover;background-position:center}
.shortcut-art-cashier-history {background-image:url('/workspace-art/cashier-history.webp');background-size:cover;background-position:center}
.shortcut-art-personal {background-size:400% 584.1667%;background-position:var(--tile-x) 3.61446%}
.shortcut-label {position:absolute;z-index:1;top:8px;left:5px;right:5px;font-size:17px;font-weight:700;line-height:1.2;color:#171a17;overflow-wrap:anywhere}
.shortcut:hover {border-color:var(--green)}
.shortcut:focus-visible {outline:3px solid var(--green);outline-offset:2px}
.workspace-home {max-width:900px;margin:auto}
.workspace-overview {max-width:1100px}
.workspace-section {border-top:1px solid var(--line);padding:20px 0}
.workspace-section h2 {font-size:18px;margin:0 0 14px}
.workspace-task-links {display:flex;flex-wrap:wrap;gap:10px}
.workspace-task-links a {padding:10px 14px;background:var(--white);border:1px solid var(--line);border-radius:4px}
.workflow-note {color:var(--muted);line-height:1.8;margin:14px 0}
.context-banner {display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:16px;border-left:3px solid var(--green);padding:10px 12px;background:#edf1e9}
.workspace-todos h2 {display:flex;justify-content:space-between;align-items:center;font-size:18px}
.workspace-todo-row {display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:14px 0;border-top:1px solid var(--line)}
.workspace-todo-row small {color:var(--muted)}
@media(max-width:820px){
 .workspace-shell {grid-template-areas:"brand" "nav" "main";grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto 1fr}
 .workspace-shell .workspace-brandbar {padding:20px 20px 16px;gap:12px}
 .workspace-shell .sidebar {position:static;width:100%;padding:6px 12px;background:var(--paper);border-top:1px solid #c5c8bd;border-bottom:1px solid #bfc4b7;border-right:0}
 .workspace-shell .nav {display:flex;gap:5px;overflow-x:auto;scrollbar-width:thin}
 .workspace-shell .nav a {margin:0;padding:11px 12px;flex-shrink:0}
 .workspace-shell .content {padding:22px 16px}
 .workspace-subnav {padding:10px 16px;flex-wrap:nowrap;overflow-x:auto}
 .workspace-subnav a {white-space:nowrap;flex-shrink:0}
 .workspace-account .account-name {max-width:130px;font-size:13px}
 .workspace-shell .workspace-account {gap:10px}
 .shortcut-grid {gap:6px;margin-bottom:20px}
 .shortcut-label {top:5px;left:3px;right:3px;font-size:clamp(10px,3.3vw,13px)}
}
@media(prefers-reduced-motion:no-preference){.shortcut {transition:border-color .12s}}

.workspace-shell .workspace-brandbar .brand {margin:0}

.workspace-home .todo-list {background:transparent;border:0;border-top:1px solid var(--line);padding:20px 0;margin:0}
.workspace-home .todo-list h2 {font-size:18px;margin-top:0}
.workspace-home .todo-list p {line-height:1.8}
.workspace-home [data-todo-group] {display:block;padding:9px 0;border-bottom:1px solid var(--line)}

.duty-grid {width:auto;border-collapse:collapse}
.duty-grid th,.duty-grid td {padding:6px 8px;white-space:nowrap}
.duty-grid input[type=number] {width:86px}
.duty-grid select {width:130px}
.duty-grid input[data-field=note] {width:240px}
