/* Dense operational home: keep the first working rows above the fold. */
.dashboard-page{padding-top:18px}.compact-home-heading{align-items:center;margin-bottom:10px;min-height:28px}.role-summary{display:flex;align-items:baseline;gap:10px;min-width:0}.role-summary strong{font-size:15px;white-space:nowrap}.role-summary span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px}.compact-home-heading .environment-badge{padding:4px 7px;font-size:9px}.overview-grid{gap:10px;margin-bottom:10px}.overview-grid .stat,.overview-grid .news-feed{height:124px;min-height:124px}.compact-feed{padding:8px 10px 7px}.compact-feed .feed-list{overflow:hidden}.feed-list-row{min-height:27px}.feed-list-row>a{padding-block:2px}.surface-head{padding:13px 16px 11px}.surface-head h3{font-size:17px}.surface-head .eyebrow{display:none}

/* A compact selectable order list; navigation remains in the explicit detail button. */
.compact-order-row{display:grid;grid-template-columns:minmax(170px,1.45fr) minmax(92px,.72fr) minmax(105px,.8fr) minmax(150px,1.1fr) 92px minmax(105px,.85fr) auto;align-items:center;gap:10px;min-height:64px;padding:10px 14px;border:0;border-bottom:1px solid var(--line);border-radius:0!important;background:transparent;color:var(--text);text-align:left;cursor:pointer}.compact-order-row:last-child{border-bottom:0}.compact-order-row:hover{background:rgba(85,75,110,.055)}.compact-order-row.selected{background:rgba(91,78,125,.1);box-shadow:inset 3px 0 #6d5d86}.compact-order-row:focus-visible{position:relative;z-index:1;outline-offset:-3px}.compact-order-row>span{min-width:0}.compact-order-row small{display:block;color:var(--muted);font-size:9px;line-height:1.35}.compact-order-row strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.4}.order-row-name strong{font-size:14px}.order-row-name small{margin-top:2px}.order-row-progress i{display:block;height:5px;margin-top:5px;overflow:hidden;border-radius:99px;background:var(--surface-2)}.order-row-progress i b{display:block;height:100%;border-radius:inherit;background:#6d5d86}.compact-order-row .badge{justify-self:end;white-space:nowrap}

.focus-received{margin:7px 0 0!important;color:#b8b8bd!important;font-size:10px!important}.focus-track .liquid-fill{position:relative;width:var(--target);transform-origin:left center;background:#75658e}.focus-track .liquid-fill.animate{animation:liquid-settle .78s cubic-bezier(.2,.75,.25,1) both}.focus-track .liquid-fill.animate:after{content:"";position:absolute;right:-4px;top:-2px;width:10px;height:11px;border-radius:50%;background:#8b799f;animation:liquid-tip .78s ease-out both}.focus-next,.focus-clear{display:grid;gap:3px;padding:10px 11px;border:1px solid var(--line);background:var(--surface-2)}.focus-next span,.focus-clear strong{color:var(--muted);font-size:10px}.focus-next strong,.focus-clear span{font-size:12px}.focus-subtasks{display:grid;gap:7px;padding-top:2px}.focus-subtasks>strong{font-size:11px}.focus-subtasks>span{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px}.focus-subtasks>span.done{color:var(--text)}.focus-subtasks svg{width:14px;color:#5c876c}.focus-subtasks>span:not(.done) svg{color:var(--muted)}
@keyframes liquid-settle{0%{transform:scaleX(0)}78%{transform:scaleX(1.025)}100%{transform:scaleX(1)}}@keyframes liquid-tip{0%{opacity:0;transform:scale(.5) translateX(-8px)}65%{opacity:.65;transform:scale(1.15) translateX(1px)}100%{opacity:0;transform:scale(.75) translateX(3px)}}
@media(max-width:1180px){.compact-order-row{grid-template-columns:minmax(170px,1.3fr) 95px minmax(105px,.8fr) minmax(145px,1fr) 88px minmax(100px,.8fr) auto}.order-row-owner{display:none}}
@media(max-width:820px){.compact-home-heading{align-items:flex-start;flex-direction:row}.role-summary{display:grid;gap:1px}.compact-order-row{grid-template-columns:minmax(0,1fr) auto auto;gap:6px 10px;padding:11px 12px}.order-row-name{grid-column:1/3}.order-row-stage{grid-column:1}.order-row-due{grid-column:2}.order-row-progress{grid-column:1/3}.order-row-owner,.order-row-received{display:block;grid-column:1/3}.compact-order-row .badge{grid-column:3;grid-row:1/3}.focus-rail{scroll-margin-top:78px}}
@media(prefers-reduced-motion:reduce){.focus-track .liquid-fill.animate,.focus-track .liquid-fill.animate:after{animation:none!important;transform:none!important}.focus-track .liquid-fill.animate:after{display:none}}

/* Blue/teal operational accent replaces the previous muted purple. */
.compact-order-row:hover{background:rgba(36,120,242,.055)}.compact-order-row.selected{background:rgba(36,120,242,.1);box-shadow:inset 3px 0 #2478f2}.order-row-progress i b{background:linear-gradient(90deg,#2478f2,#18a999)}
.focus-track .liquid-fill{background:linear-gradient(90deg,#2478f2,#18a999)}.focus-track .liquid-fill.animate:after{background:#18a999}.focus-subtasks svg{color:#18a999}

/* Detail action contrast: do not inherit white primary text on a light surface. */
.focus-actions .btn.primary{min-height:44px;border-color:#d2d5da;background:#e7e9ed;color:#1d1d1f;font-size:15px;font-weight:780;opacity:1}
.focus-actions .btn.primary .ua-icon,.focus-actions .btn.primary svg{color:currentColor;opacity:1}
.focus-actions .btn.primary:hover{border-color:#b9bdc4;background:#daddE3;color:#111214}
.focus-actions .btn.primary:focus-visible{border-color:#7c3aed;background:#e7e9ed;color:#1d1d1f;outline:3px solid rgba(124,58,237,.32);outline-offset:2px}
.focus-actions .btn.primary:active{border-color:#aeb3bb;background:#cfd3d9;color:#111214;transform:translateY(1px)}
.focus-actions .btn.primary:disabled,.focus-actions .btn.primary[aria-disabled="true"]{border-color:#e0e1e4;background:#f2f2f4;color:#76767d;cursor:not-allowed;opacity:1;transform:none}
html[data-theme="dark"] .focus-actions .btn.primary{border-color:#d5d7dc;background:#f1f2f4;color:#171719}
html[data-theme="dark"] .focus-actions .btn.primary:hover{border-color:#fff;background:#fff;color:#111214}
html[data-theme="dark"] .focus-actions .btn.primary:focus-visible{border-color:#b998ff;background:#f1f2f4;color:#171719;outline-color:rgba(185,152,255,.48)}
html[data-theme="dark"] .focus-actions .btn.primary:active{background:#d9dce1;color:#111214}
html[data-theme="dark"] .focus-actions .btn.primary:disabled,html[data-theme="dark"] .focus-actions .btn.primary[aria-disabled="true"]{border-color:#4a4a50;background:#303035;color:#a6a6ad}

@media(max-width:820px){.dashboard-order-table .project-row .sequence-cell{display:flex!important;grid-column:1/-1;justify-content:flex-start;text-align:left!important}.dashboard-order-table .project-row .sequence-cell:before{display:none}.dashboard-order-table .project-row>td:last-child{grid-template-columns:82px minmax(0,1fr)}}
/* Number and chevron form one quiet disclosure target. */
.sequence-toggle{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:44px;min-height:40px;padding:4px;border:0;background:transparent;color:var(--muted);font:inherit;font-weight:700;cursor:pointer;border-radius:6px}.sequence-toggle svg{width:14px;height:14px}.sequence-toggle:hover,.sequence-toggle[aria-expanded="true"]{color:var(--accent);background:var(--accent-soft)}.sequence-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* Shared order table: one header, sortable columns, and an independent item drill-down. */
.data-source-note{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border:1px solid var(--line);border-radius:4px;background:var(--surface);color:var(--muted);font-size:11px;white-space:nowrap}
.overview-grid .stat,.overview-grid .compact-feed{border-radius:6px!important}
.overview-grid .stat-copy small{color:var(--muted);font-size:11px}
.overview-grid .stat-side{grid-template-columns:auto 18px;gap:9px}
.overview-grid .stat-side>svg{width:18px;height:18px;color:var(--muted);transition:transform .18s ease,color .18s ease}
.overview-grid .stat:hover .stat-side>svg,.overview-grid .stat:focus-visible .stat-side>svg{color:var(--accent);transform:translateX(2px)}

.dashboard-order-table-wrap{width:100%;min-width:0;overflow:visible}
.dashboard-order-table{width:100%;border-collapse:collapse;table-layout:fixed;color:var(--text);font-size:13px}
.dashboard-order-table th,.dashboard-order-table td{box-sizing:border-box;text-align:left;vertical-align:middle}
.dashboard-order-table thead{position:sticky;top:70px;z-index:3}
.dashboard-order-table th{height:42px;padding:0 9px;border-bottom:1px solid var(--line);background:var(--surface-2);color:var(--muted);font-size:12px;font-weight:720;white-space:nowrap}
.dashboard-order-table th:nth-child(1){width:66px}.dashboard-order-table th:nth-child(2){width:29%}.dashboard-order-table th:nth-child(3){width:13%}.dashboard-order-table th:nth-child(4){width:11%}.dashboard-order-table th:nth-child(5){width:10%}.dashboard-order-table th:nth-child(6){width:11%}.dashboard-order-table th:nth-child(7){width:15%}
.dashboard-order-table th>button{width:100%;min-height:36px;display:flex;align-items:center;gap:5px;padding:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;text-align:left}
.dashboard-order-table th>button svg{width:13px;height:13px;opacity:.65}
.dashboard-order-table th>button:hover{color:var(--text)}
.dashboard-order-table th>button:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
.project-row{height:67px;border-bottom:1px solid var(--line);transition:background-color .15s ease,box-shadow .15s ease;cursor:pointer}
.project-row>td{padding:9px;color:var(--text);font-variant-numeric:tabular-nums}
.project-row:hover{background:rgba(36,120,242,.045)}
.project-row.selected{background:rgba(36,120,242,.09);box-shadow:inset 3px 0 #2478f2}
.project-row:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
.sequence-cell{color:var(--muted)!important;text-align:center!important;font-weight:700}
.project-cell button{width:100%;display:grid;gap:2px;padding:0;border:0;background:transparent;color:var(--text);text-align:left;cursor:pointer}
.project-cell button strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:1.35}
.project-cell button small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:10px}
.project-cell button:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:4px}
.table-rate{display:grid;gap:6px;min-width:0}.table-rate b{font-size:12px}.table-rate>i{display:block;height:5px;overflow:hidden;border-radius:99px;background:var(--surface-2)}.table-rate>i>em{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2478f2,#18a999)}
.expand-head{text-align:center!important}.expand-order{width:36px;height:36px;display:grid;place-items:center;margin:auto;border:1px solid var(--line);border-radius:4px;background:var(--surface);color:var(--text);cursor:pointer;transition:background-color .15s ease,border-color .15s ease}.expand-order svg{width:17px}.expand-order:hover{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.expand-order:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 30%,transparent);outline-offset:2px}

.item-detail-row>td{padding:0!important;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--surface-2) 72%,var(--surface))}
.item-drilldown{display:grid;grid-template-columns:minmax(220px,.78fr) minmax(0,1.35fr);gap:12px;padding:14px}
.item-code-list,.item-process-card{border:1px solid var(--line);border-radius:6px;background:var(--surface);overflow:hidden}
.item-code-list{align-self:start;display:grid;max-height:286px;overflow-y:auto}
.item-code-head{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;gap:10px;padding:10px 12px;border-bottom:1px solid var(--line);background:var(--surface)}
.item-code-head strong{font-size:13px}.item-code-head small{color:var(--muted);font-size:10px}
.item-code-list>button{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:53px;padding:8px 11px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--text);text-align:left;cursor:pointer}.item-code-list>button:last-child{border-bottom:0}.item-code-list>button:hover{background:var(--surface-2)}.item-code-list>button.selected{background:var(--accent-soft);box-shadow:inset 3px 0 var(--accent)}.item-code-list>button:focus-visible{position:relative;z-index:2;outline:2px solid var(--accent);outline-offset:-3px}.item-code-list>button span{display:grid;gap:2px;min-width:0}.item-code-list>button b,.item-code-list>button small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item-code-list>button b{font-size:12px}.item-code-list>button small{color:var(--muted);font-size:10px}.item-code-list>button svg{width:15px;flex:none}
.item-process-card{padding:14px}.item-process-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.item-process-card>header>div{display:grid;gap:2px;min-width:0}.item-process-card>header span:not(.badge){color:var(--muted);font-size:10px}.item-process-card>header strong{font-size:17px}.item-process-card>header small{color:var(--muted);font-size:11px}.item-process-card dl{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:15px 0}.item-process-card dl>div{padding:10px;border-radius:4px;background:var(--surface-2)}.item-process-card dt{color:var(--muted);font-size:10px}.item-process-card dd{margin:3px 0 0;font-size:14px;font-weight:750;font-variant-numeric:tabular-nums}
.process-unlinked{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px dashed var(--line);border-radius:4px;background:var(--surface-2)}.process-unlinked>svg{width:18px;flex:none;color:var(--muted)}.process-unlinked strong{font-size:12px}.process-unlinked p{margin:3px 0 0;color:var(--muted);font-size:11px;line-height:1.5}

html[data-theme="dark"] .dashboard-order-table th{background:#242428}
html[data-theme="dark"] .project-row:hover{background:rgba(82,145,255,.075)}
html[data-theme="dark"] .project-row.selected{background:rgba(82,145,255,.13)}

@media(min-width:1181px){.dashboard-layout{grid-template-columns:minmax(0,2.25fr) minmax(300px,.85fr);align-items:stretch}.orders-surface,.focus-rail{min-height:100%;height:auto}.orders-surface{align-self:stretch}.focus-rail{align-self:stretch}}
@media(max-width:1350px){.dashboard-layout{grid-template-columns:1fr}.focus-rail{position:static;height:auto}.orders-surface{height:auto}}
@media(max-width:1180px){.orders-surface,.focus-rail{height:auto}.dashboard-order-table th{padding-inline:7px;font-size:11px}.project-row>td{padding-inline:7px}.item-drilldown{grid-template-columns:minmax(190px,.7fr) minmax(0,1.3fr)}}
@media(max-width:820px){.data-source-note{grid-column:1/-1;width:max-content}.dashboard-order-table thead{display:none}.dashboard-order-table,.dashboard-order-table tbody{display:block}.project-row{height:auto;display:grid;grid-template-columns:1fr 1fr;gap:0;padding:8px 10px;border-bottom:8px solid var(--surface-2)}.project-row>td{display:grid;grid-template-columns:82px minmax(0,1fr);align-items:center;min-height:38px;padding:4px 6px}.project-row>td:before{content:attr(data-label);color:var(--muted);font-size:10px;font-weight:650}.project-row .sequence-cell{display:none}.project-row .project-cell{grid-column:1/-1;display:block;padding:8px 6px}.project-row .project-cell:before{display:none}.project-cell button strong{font-size:15px}.project-row>td:last-child{grid-template-columns:82px 36px}.expand-order{margin:0}.item-detail-row,.item-detail-row>td{display:block}.item-drilldown{grid-template-columns:1fr;padding:10px}.item-code-list{max-height:240px}.item-process-card dl{grid-template-columns:1fr 1fr}.item-process-card dl>div:last-child{grid-column:1/-1}}
@media(max-width:520px){.project-row{grid-template-columns:1fr}.project-row>td,.project-row>td:last-child{grid-template-columns:88px minmax(0,1fr)}.item-process-card dl{grid-template-columns:1fr}.item-process-card dl>div:last-child{grid-column:auto}.role-summary{grid-template-columns:1fr}.data-source-note{margin-top:4px}}
