
:root{font:15px/1.45 "Segoe UI",system-ui,sans-serif;color:#172b39;background:#edf2f5}
*{box-sizing:border-box}body{margin:0}header{background:#102936;color:white;padding:24px max(20px,4vw);border-bottom:4px solid #1b9c86}
header p{margin:2px 0 0;color:#bcdbdf}header a{color:#d5f2ee}h1{margin:0;font-size:2rem}h2{margin:0;font-size:1.25rem}p{margin:8px 0}
.sprinkler-filter{max-width:520px;margin-top:12px}
table[data-column-layout]{table-layout:fixed}
table[data-column-layout] th,table[data-column-layout] td{overflow-wrap:anywhere}
table[data-column-layout] th{padding-right:16px;cursor:grab}
.table-layout-grip{position:absolute;right:0;top:0;bottom:0;width:12px;padding:0;border:0;border-right:2px solid #8198a2;border-radius:0;background:transparent;cursor:col-resize;touch-action:none}
#sin-table small{display:block;color:#425c68}
#sin-table p{margin:3px 0 0}
textarea{font:inherit;width:100%;margin-top:4px;border:1px solid #9fb4bc;border-radius:6px;padding:7px 9px}
main{padding:22px max(16px,4vw) 36px}.panel{background:white;border:1px solid #cddbe0;border-radius:12px;padding:16px;margin:0 0 16px}
.grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr))}
.search{grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr))}
label{display:block;font-weight:600}label input:not([type=checkbox]),select{display:block;width:100%;margin-top:4px}
input,select,button,.button{font:inherit;border:1px solid #9fb4bc;border-radius:6px;padding:7px 9px;color:inherit;background:white}
button,.button{cursor:pointer;text-decoration:none;white-space:nowrap}.primary{background:#086b60;color:white;border-color:#086b60;font-weight:650}
.actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}.actions input[type=number]{width:82px}
.hint{color:#425c68;font-size:.92rem}details{margin-top:12px}summary{cursor:pointer;font-weight:650}
details .grid{margin-top:10px}dl{display:flex;flex-wrap:wrap;gap:12px;margin:10px 0}dl div{min-width:115px;background:#edf5f4;padding:7px 10px;border-radius:6px}
dt{font-size:.83rem;color:#425c68}dd{margin:0;font-weight:650;font-variant-numeric:tabular-nums}
.scroll{overflow:auto;max-height:65vh;border:1px solid #dce6e8;border-radius:8px;margin-top:10px}table{border-collapse:collapse;width:100%}
th,td{text-align:left;padding:8px 10px;border-bottom:1px solid #e0e8eb;vertical-align:top}
th{background:#eaf2f4;position:sticky;top:0;z-index:1;line-height:1.2;font-size:.85rem}
#results{table-layout:fixed;width:var(--results-width, 2169px)}
#results td,#results th{overflow-wrap:anywhere}
#results th{padding-right:16px;cursor:grab}
#results th.drag-over{box-shadow:inset 3px 0 #086b60}
#results th.drag-source{opacity:.55}
.column-grip{position:absolute;right:0;top:0;height:100%;width:10px;cursor:col-resize;touch-action:none;border-right:2px solid #9fb4bc}
.column-grip:hover,.column-grip:focus-visible{background:#87c3bd}
body.resizing{cursor:col-resize;user-select:none}
.copy-actions button{padding:4px 6px;font-size:.85rem;margin:0 4px 4px 0}
button:disabled{opacity:.55;cursor:default}
input:disabled{background:#e6ebee;color:#637781;cursor:default}
.results-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
tr:nth-child(even){background:#f6f9fa}tr.catalog{background:#eff7f4}nav{display:flex;gap:10px;align-items:center;margin-top:12px}
.results-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.results-heading select{display:inline-block;width:auto;margin:0 0 0 4px}
button:hover,.button:hover{box-shadow:0 0 0 2px #87c3bd} :focus-visible{outline:2px solid #087b70;outline-offset:2px}
[hidden]{display:none!important}
.header-content{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
#import-order-issues{max-height:200px;overflow:auto;padding-left:24px}
:root[data-theme="dark"]{color-scheme:dark;color:#e0ebf0;background:#111b22}
[data-theme="dark"] header{background:#132c39;border-color:#2aad97}
[data-theme="dark"] .panel{background:#182830;border-color:#3b515c}
[data-theme="dark"] input,[data-theme="dark"] select,[data-theme="dark"] textarea,
[data-theme="dark"] button,[data-theme="dark"] .button{background:#213741;border-color:#6a858f}
[data-theme="dark"] .primary{background:#117d70;color:#fff;border-color:#269f8d}
[data-theme="dark"] input:disabled{background:#26333b;color:#9dafb8}
[data-theme="dark"] .hint,[data-theme="dark"] dt,[data-theme="dark"] #sin-table small{color:#afc6d0}
[data-theme="dark"] dl div,[data-theme="dark"] th{background:#233d47}
[data-theme="dark"] .scroll,[data-theme="dark"] td,[data-theme="dark"] th{border-color:#3b515c}
[data-theme="dark"] tr:nth-child(even){background:#1d313b}
[data-theme="dark"] tr.catalog{background:#1b3736}
[data-theme="dark"] .column-grip{border-color:#718e98}
.quote-template{margin-left:16px}.quote-template-body{white-space:pre-wrap;overflow-wrap:anywhere} #template-form{margin-top:12px}
.app-nav{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap;margin:7px 0 0}
.app-nav a[aria-current=page]{font-weight:700;text-decoration:none;color:#fff}

.start-grid{margin-top:12px;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))}
.start-grid .button{padding:14px;white-space:normal}
.start-grid .button strong,.start-grid .button span{display:block}
.start-grid .button span{margin-top:3px}

.table-columns{margin:8px 0}.table-columns summary{cursor:pointer;width:max-content}
.table-column-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:5px 10px;max-height:180px;overflow:auto}
.table-column-choices label{display:flex;align-items:flex-start;gap:4px;overflow-wrap:anywhere}

body[data-workflow] #workflow-print{display:none}
body[data-workflow] fieldset{margin:10px 0}
body[data-workflow] #workflow-content{margin-top:12px}
@media print{
 body[data-workflow]>*{display:none!important}
 body[data-workflow] #workflow-print{display:block!important;background:white;color:black;white-space:pre-wrap}
}

body>header{display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap;padding-block:12px}
body>header .header-content{flex:1}
body>header .header-content>div:first-child{display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap}
body>header h1{font-size:1.35rem}
body>header .app-nav{margin:0;display:inline-flex;flex-wrap:nowrap;gap:6px}
body>header .app-nav .start-shortcut{display:inline-flex;align-items:center;justify-content:center;
  padding:7px 10px;border:1px solid #839ca7;border-radius:6px;color:white;text-decoration:none}
body>header .app-nav select{min-width:0;max-width:min(230px,62vw)}
.app-nav select,#shutdown-server{color:#fff;background:#102936;border-color:#839ca7}

body>header .header-quick-links{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap}
body>header .header-quick-links a{color:#d5f2ee}
body>header .header-quick-links a[aria-current=page]{font-weight:700}

#page-layout-toggle,#shutdown-server{min-width:34px;min-height:34px;padding:2px 7px;font-size:1.15rem;line-height:1;color:#fff;background:#102936;border-color:#839ca7}
.page-layout-controls{display:flex;gap:8px;flex-wrap:wrap;padding:6px;margin-block:4px 8px;border:1px dashed #8198a2;border-radius:6px}

#markup-tier-table{width:auto;max-width:100%;font-variant-numeric:tabular-nums}
#markup-tier-table :is(th,td){padding:5px 8px}
#markup-tier-table input{width:min(130px,28vw)}
#markup-tier-table button{padding:5px 7px}
#markup-tier-table input[aria-invalid=true]{outline:2px solid #ae514a}

.header-more{display:none;position:relative;margin:0}
.header-more>summary{cursor:pointer;padding:4px 7px}
.header-more>div{position:absolute;z-index:6;right:0;top:100%;min-width:160px;max-height:60vh;overflow:auto;background:#102936;border:1px solid #8198a2;border-radius:6px;padding:6px}
.header-more>div>a{display:block;padding:6px 8px}
@media(max-width:900px){
 body>header .header-quick-links>a:nth-of-type(n+3){display:none}
 body>header .header-quick-links>a:nth-of-type(3)~.header-more{display:block}
 .header-more>div>a:nth-of-type(-n+2){display:none}
}
@media(max-width:560px){
 body>header .header-quick-links>a:nth-of-type(n+2){display:none}
 body>header .header-quick-links>a:nth-of-type(2)~.header-more{display:block}
 .header-more>div>a:nth-of-type(2){display:block}
}
.table-toolbar{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;margin-block:8px}
.table-toolbar .table-columns{margin:0}
.table-toolbar label>select{width:auto}

:is(#bulk-price-preview,#sell-history-details){width:min(850px,94vw);max-height:90vh;border:1px solid #8198a2;border-radius:12px;padding:16px;color:inherit;background:white}
[data-theme=dark] :is(#bulk-price-preview,#sell-history-details){background:#182830}
:is(#bulk-price-preview,#sell-history-details) .scroll{max-height:50vh}

.paperwork-pdf-dialog{box-sizing:border-box;width:min(1200px,96vw);max-width:96vw;height:94vh;max-height:94vh}
.paperwork-pdf-dialog[open]{display:flex;flex-direction:column}
.paperwork-pdf-dialog iframe{width:100%;flex:1;min-height:0;border:1px solid currentColor}

.paperwork-page-scroll{flex:1;min-height:0;overflow:auto;background:#88939c;padding:12px}
.paperwork-page{position:relative;max-width:900px;margin:auto;container-type:inline-size}
.paperwork-page img{display:block;width:100%;cursor:crosshair}
.paperwork-markers{position:absolute;inset:0;pointer-events:none}
.paperwork-text-mark{position:absolute;pointer-events:auto;padding:0;border:0;border-radius:0;background:transparent;color:#111;font-family:Arial,sans-serif;font-weight:normal;line-height:1;white-space:nowrap}
.paperwork-text-mark:hover,.paperwork-text-mark:focus-visible{outline:1px solid #1468b3;background:#eef8ff}

.paperwork-text-mark{touch-action:none;cursor:grab}.paperwork-text-mark:active{cursor:grabbing}

/* Account controls stay compact on the shared-server header. */
.account-menu{display:inline-block;position:relative;margin-left:10px;vertical-align:middle;font-size:.9rem}
.account-menu>summary{cursor:pointer;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-menu>div{position:absolute;right:0;top:100%;z-index:80;display:grid;gap:8px;min-width:185px;padding:12px;background:#fff;color:#172f3b;border:1px solid #78909b;border-radius:8px;box-shadow:0 5px 18px #0004}
.account-menu a{color:inherit!important}
[data-theme=dark] .account-menu>div{background:#223843;color:#e1ebef}
#user-permissions details{margin-top:8px}#users-list button{margin:2px}

/* Shared workspace styling: compact hierarchy, accessible focus, no external assets. */
:root{--ui-accent:#086b60;--ui-surface:#fff;--ui-border:#d8e2e8;--ui-muted:#526777;--ui-shadow:0 2px 8px #152c3b08}
[data-theme=dark]{--ui-surface:#182830;--ui-border:#38515e;--ui-muted:#b1c5d0;--ui-shadow:0 2px 10px #0002}
@media screen{
 :root{background:#f2f5f8} :root[data-theme=dark]{background:#101b23}
 body>header{border-bottom-width:2px;box-shadow:0 2px 10px #0001;gap:8px 12px}
 body>header h1{font-size:1.2rem;letter-spacing:-.015em}
 main{padding-top:24px}.panel{border-color:var(--ui-border);border-radius:12px;box-shadow:var(--ui-shadow);padding:18px;margin-bottom:18px}
 .panel>h2,.panel>details>summary,.panel>summary{letter-spacing:-.01em}.panel>details{margin-top:0}.panel>details>summary,.panel>summary{padding-block:3px}
 input:not([type=checkbox]),select,textarea{min-height:36px}button,.button{transition:background-color .12s,border-color .12s;min-height:34px}
 input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--ui-accent);outline-offset:3px}
 .scroll{border-color:var(--ui-border)}th{font-weight:650;padding-block:11px}td{padding-block:10px}tbody tr:hover{background:#e9f3f6}[data-theme=dark] tbody tr:hover{background:#263f4b}
 dd,td{font-variant-numeric:tabular-nums}.hint{color:var(--ui-muted)}
 .start-grid{gap:14px}.start-grid>.button{border-color:var(--ui-border);background:var(--ui-surface);box-shadow:var(--ui-shadow);padding:18px;position:relative;padding-right:32px}
 .start-grid>.button::after{content:'›';position:absolute;right:15px;top:16px;font-size:1.3rem;color:var(--ui-accent)}.start-grid>.button:hover{border-color:var(--ui-accent);box-shadow:0 3px 12px #17394c12}.start-grid>.button span{font-size:.9rem;color:var(--ui-muted);line-height:1.45;margin-top:6px}
}
.workspace-header-button{display:inline-flex;gap:8px;align-items:center;background:transparent!important;color:white!important;border-color:#8098a7!important;font-size:.88rem}
.workspace-header-button kbd{font:inherit;font-size:11px;line-height:1.3;opacity:.75;padding:2px 4px;border:1px solid #ffffff45;border-radius:4px}
#workspace-task-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;padding:1px 5px;border-radius:20px;background:#fff;color:#163543;font-weight:700}
#workspace-page-finder{width:min(620px,94vw);max-height:85dvh;border:1px solid var(--ui-border);border-radius:14px;padding:22px;background:var(--ui-surface);color:inherit;box-shadow:0 18px 70px #0004}
#workspace-page-finder::backdrop{background:#10233088}#workspace-page-finder input{width:100%;margin-top:16px;font-size:1rem}
#workspace-page-results{padding:0;margin:8px -6px 0;list-style:none;max-height:48dvh;overflow:auto}#workspace-page-results a{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 10px;border-radius:8px;color:inherit;text-decoration:none}#workspace-page-results a span{font-size:.82rem;color:var(--ui-muted);text-align:right}#workspace-page-results a:is(.is-active,:hover,:focus){background:#e6f2f1}[data-theme=dark] #workspace-page-results a:is(.is-active,:hover,:focus){background:#28434c}
#workspace-task-tray{position:fixed;z-index:90;right:18px;bottom:18px;width:min(410px,calc(100vw - 32px));max-height:78dvh;overflow:auto;padding:18px;border:1px solid var(--ui-border);border-radius:14px;background:var(--ui-surface);color:inherit;box-shadow:0 10px 45px #0003}
#workspace-task-tray h2{font-size:1.1rem}.workspace-task-card{border-top:1px solid var(--ui-border);padding-block:14px}.workspace-task-card .results-heading>span{font-size:.8rem;color:var(--ui-muted)}.workspace-task-card progress{width:100%;accent-color:var(--ui-accent)}.workspace-task-card .actions{gap:12px;margin-top:8px}.workspace-task-card .actions a:not(.button){color:inherit}
.permission-preset-controls{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-top:18px;padding:14px;border:1px solid var(--ui-border);background:var(--ui-surface);border-radius:10px}.permission-preset-controls label{flex:1 1 180px}.permission-preset-controls button{flex:0 0 auto}
@media(max-width:600px){.workspace-header-button kbd{display:none}#workspace-search>span:last-of-type{font-size:.82rem}main{padding-inline:12px}.panel{padding:14px}#workspace-page-finder{padding:16px}#workspace-page-results a{align-items:flex-start;flex-direction:column;gap:3px}#workspace-page-results a span{text-align:left}}
@media(prefers-reduced-motion:reduce){button,.button{transition:none}}
@media print{#workspace-task-tray,#workspace-page-finder{display:none!important}}
@media(max-width:600px){
 body>header{display:grid;grid-template-columns:1fr auto auto auto auto;gap:9px;padding:12px 16px}
 body>header .header-content{display:contents}
 body>header .header-content>div:first-child{grid-column:1/-1;display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px}
 body>header h1{font-size:1.05rem;max-width:150px;overflow-wrap:anywhere}
 body>header .app-nav{min-width:0;justify-content:flex-end}
 body>header .app-nav select{flex:1 1 100px;width:100%;max-width:none}
 body>header .header-quick-links{grid-column:1/-1;flex-wrap:nowrap;gap:14px;min-width:0}
 body>header .header-quick-links a{white-space:nowrap}
 body>header .header-content>label{display:flex;gap:6px;align-items:center;white-space:nowrap;font-size:.85rem}
 body>header .header-content>label input{margin:0}
 #workspace-search>span:last-of-type{display:none}
 #workspace-search{min-width:35px;padding-inline:9px}
 .account-menu{grid-column:1/-1;justify-self:end;margin:0}
}

input[type=checkbox]{accent-color:var(--ui-accent)}

:is(#workspace-page-finder,#workspace-task-tray) button{background:var(--ui-surface);color:inherit;border-color:var(--ui-border)}

#workspace-record-results{padding:0;list-style:none;max-height:38vh;overflow:auto}#workspace-record-results a{display:grid;gap:4px;padding:12px 8px;border-top:1px solid var(--ui-border);color:inherit;text-decoration:none}#workspace-record-results a:is(:hover,.is-active){background:#e6f2f1}[data-theme=dark] #workspace-record-results a:is(:hover,.is-active){background:#28434c}#workspace-record-results span,#workspace-record-results small{color:var(--ui-muted);overflow-wrap:anywhere}.workspace-record-toggle{display:flex;gap:8px;align-items:center;margin-top:12px}

/* Professional shell: grouped navigation, a restrained toolbar and a clear content hierarchy. */
:root{--ui-text:#223548;--ui-soft:#eef3f7;--ui-nav:#102936;--shell-nav-width:238px}
:root[data-theme=dark]{--ui-text:#dce7ef;--ui-soft:#223642}
body.workspace-shell{font-family:"Segoe UI Variable","Segoe UI",system-ui,sans-serif;font-size:14px;background:#f4f7fb;color:var(--ui-text)}
[data-theme=dark] body.workspace-shell{background:#101b25}
.workspace-shell #workspace-sidebar{position:fixed;inset:0 auto 0 0;width:var(--shell-nav-width);z-index:30;display:flex;flex-direction:column;background:var(--ui-nav);color:#d4e2eb;border-right:1px solid #ffffff0a}
.shell-brand{display:flex;gap:12px;align-items:center;padding:23px 20px 20px;min-height:85px}.shell-brand img{border-radius:7px;background:#fff;padding:3px;flex:none}.shell-brand strong{font-size:15px;line-height:1.3;font-weight:650;letter-spacing:-.02em}
.shell-navigation{display:block!important;margin:0;padding:0 12px;overflow-y:auto;overscroll-behavior:contain;flex:1;scrollbar-width:thin}.shell-navigation section{margin-bottom:18px}.shell-navigation h2{font-size:10px;font-weight:600;letter-spacing:.13em;text-transform:uppercase;color:#8da5b6;padding:0 12px;margin:10px 0 7px}.shell-navigation a{display:flex;align-items:center;gap:11px;padding:9px 11px;border-radius:7px;margin:3px 0;color:#c4d4df;text-decoration:none;line-height:1.3;font-size:13px;min-height:36px}.shell-navigation a svg{flex:none;opacity:.8}.shell-navigation a:hover{background:#ffffff0b;color:#fff}.shell-navigation a[aria-current=page]{background:#ffffff12;color:#fff;box-shadow:inset 3px 0 var(--ui-accent);font-weight:600}.shell-navigation a[aria-current=page] svg{opacity:1;color:#8ed5ce}
.shell-sidebar-footer{padding:16px 20px;border-top:1px solid #ffffff12;display:grid;gap:9px}.shell-sidebar-footer small{font-size:10px;color:#8da5b6}.shell-sidebar-footer button{padding:0;border:0;min-height:26px;background:transparent;color:#b3c8d6;text-align:left;font-size:11px}
body.workspace-shell>header{margin-left:var(--shell-nav-width);padding:0!important;display:block;background:var(--ui-surface)!important;color:var(--ui-text)!important;border-bottom:1px solid var(--ui-border)!important;box-shadow:none}
.shell-topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 24px;min-height:70px;flex-wrap:wrap}.shell-title-group,.shell-tools{display:flex;align-items:center;gap:12px;min-width:0}.shell-title-group h1{font-size:14px!important;font-weight:600;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shell-tools{gap:9px;flex-wrap:wrap}.shell-tools .workspace-header-button{background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-border)!important;border-radius:8px;box-shadow:none!important;min-height:35px}.shell-tools #workspace-search{min-width:170px;justify-content:flex-start;color:var(--ui-muted)!important}.shell-tools #workspace-search kbd{margin-left:auto;border-color:var(--ui-border);font-size:10px;padding:2px 4px;background:var(--ui-soft);color:var(--ui-muted)}
.workspace-shell #workspace-sidebar-toggle,.workspace-shell #shutdown-server,.workspace-shell #page-layout-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:33px;min-height:33px;border:1px solid var(--ui-border);border-radius:7px;color:var(--ui-muted)!important;background:var(--ui-surface)!important;box-shadow:none;font-size:17px;padding:4px}.workspace-shell #shutdown-server:hover{color:#b34848!important;background:#fff0f0!important}.workspace-shell .app-nav{gap:6px!important}.workspace-shell .app-nav .start-shortcut{border-color:var(--ui-border);color:var(--ui-muted);padding:5px 8px;font-size:12px;background:var(--ui-surface)}.workspace-shell .app-nav select{max-width:155px;min-height:32px;padding:5px 7px;border-color:var(--ui-border);color:var(--ui-muted);background:var(--ui-surface);font-size:12px}.shell-theme-switch{display:flex;align-items:center;gap:6px;font-size:12px;white-space:nowrap;font-weight:500}.shell-theme-switch input{margin:0}
.shell-quickbar{border-top:1px solid var(--ui-border);padding:6px 24px;background:var(--ui-surface)}.workspace-shell .header-quick-links{gap:5px!important}.workspace-shell .header-quick-links>a{color:var(--ui-muted);font-size:12px;text-decoration:none;padding:5px 10px;border-radius:5px;white-space:nowrap}.workspace-shell .header-quick-links>a:hover{background:var(--ui-soft)}.workspace-shell .header-quick-links>a[aria-current=page]{background:var(--ui-soft);color:var(--ui-text);font-weight:600}.workspace-shell .header-more{color:var(--ui-muted);font-size:12px}.workspace-shell .header-more>div{background:var(--ui-surface);border-color:var(--ui-border)}.workspace-shell .header-more>div>a{color:var(--ui-text)}.workspace-shell .account-menu{margin:0;color:var(--ui-text);font-size:12px}.workspace-shell .account-menu>summary{max-width:115px}.workspace-shell #shutdown-status:empty{display:none}.workspace-shell #shutdown-status:not(:empty){display:block;padding:8px 24px;color:var(--ui-muted)}
body.workspace-shell>main{margin-left:var(--shell-nav-width);padding:26px 28px 40px;min-width:0}.shell-page-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.shell-page-intro small{display:block;font-size:10px;letter-spacing:.12em;text-transform:uppercase;font-weight:650;color:var(--ui-muted);margin-bottom:6px}.shell-page-intro h2{font-size:26px;line-height:1.25;letter-spacing:-.035em;font-weight:650;margin:0;color:var(--ui-text)}.shell-page-intro p{font-size:13px;color:var(--ui-muted);margin:6px 0 0}.shell-workspace-identity{font-size:11px;color:var(--ui-muted);border:1px solid var(--ui-border);border-radius:20px;padding:6px 11px;white-space:nowrap;background:var(--ui-surface)}
.workspace-shell .panel{border-color:var(--ui-border);border-radius:10px;padding:20px;box-shadow:0 2px 5px #142b4303;margin-bottom:18px}.workspace-shell .panel>h2{font-size:16px;letter-spacing:-.02em}.workspace-shell .panel>details>summary,.workspace-shell .panel>summary{font-size:14px;font-weight:600}.workspace-shell :is(input,select,textarea,button,.button){border-radius:7px}.workspace-shell :is(button,.button):hover{box-shadow:none}.workspace-shell button:hover:not(:disabled):not(.primary){border-color:#90a7b7}.workspace-shell input:not([type=checkbox]),.workspace-shell select,.workspace-shell textarea{border-color:#c8d6e1}.workspace-shell label{font-size:12px;font-weight:600}.workspace-shell input,.workspace-shell select,.workspace-shell textarea{font-size:13px}.workspace-shell .primary{font-size:13px;font-weight:600}.workspace-shell .actions{gap:10px}.workspace-shell .scroll{border-color:var(--ui-border);border-radius:7px}.workspace-shell th{font-size:11px;letter-spacing:.015em;padding:11px 12px;background:var(--ui-soft);color:var(--ui-muted);font-weight:650}.workspace-shell td{font-size:12px;padding:11px 12px;border-color:var(--ui-border)}.workspace-shell tr:nth-child(even){background:#f9fbfd}.workspace-shell tbody tr:hover{background:#f0f6fa}.workspace-shell .table-toolbar{padding-block:3px}.workspace-shell .table-columns summary{font-size:12px;color:var(--ui-muted)}
[data-theme=dark] .workspace-shell :is(input:not([type=checkbox]),select,textarea){border-color:var(--ui-border)}[data-theme=dark] .workspace-shell tr:nth-child(even){background:#1b2e39}[data-theme=dark] .workspace-shell tbody tr:hover{background:#223c49}
.workspace-shell .start-grid>.button{padding:18px 34px 18px 18px;min-height:100px;box-shadow:none}.workspace-shell .start-grid>.button strong{font-size:14px;font-weight:600}.workspace-shell .start-grid>.button span{font-size:12px}.workspace-shell dl div{background:var(--ui-soft);border:1px solid var(--ui-border);padding:12px 15px}.workspace-shell dt{font-size:11px}.workspace-shell dd{font-size:20px;letter-spacing:-.025em;color:var(--ui-text)}
body.shell-rail{--shell-nav-width:72px}.shell-rail #workspace-sidebar .shell-brand{padding:22px 19px}.shell-rail #workspace-sidebar .shell-brand strong,.shell-rail #workspace-sidebar .shell-navigation a span,.shell-rail #workspace-sidebar .shell-navigation h2,.shell-rail #workspace-sidebar .shell-sidebar-footer{display:none}.shell-rail #workspace-sidebar .shell-navigation{padding:0 9px}.shell-rail #workspace-sidebar .shell-navigation a{justify-content:center;padding:10px}.shell-rail #workspace-sidebar .shell-navigation section{margin-bottom:10px}
#workspace-navigation-drawer{margin:0;height:100dvh;max-height:100dvh;width:280px;max-width:86vw;padding:12px 0 20px;border:0;background:var(--ui-nav);color:#d4e2eb;box-shadow:12px 0 45px #0003}#workspace-navigation-drawer::backdrop{background:#10233077}#workspace-navigation-drawer>button{margin:0 16px;color:#d4e2eb;background:transparent;border-color:#ffffff35;font-size:12px}#workspace-navigation-drawer .shell-navigation{max-height:calc(100dvh - 150px)}
@media(max-width:1100px){.workspace-shell #workspace-sidebar{display:none}body.workspace-shell>header,body.workspace-shell>main{margin-left:0}.shell-topbar{padding:12px 18px}.shell-title-group{flex:1}.shell-tools #workspace-search{min-width:125px}.shell-quickbar{padding-inline:18px}}
@media(max-width:700px){.shell-topbar{gap:10px;padding:12px 14px}.shell-title-group{gap:9px;flex:1 1 100%}.shell-title-group h1{max-width:none;flex:1;font-size:14px!important}.workspace-shell .app-nav select{max-width:125px}.shell-tools{width:100%;justify-content:flex-end;gap:8px}.shell-tools #workspace-search{min-width:35px}.shell-tools .shell-theme-switch{margin-right:auto}.shell-tools #workspace-tasks{font-size:12px}.shell-quickbar{padding:5px 8px}.workspace-shell .account-menu{grid-column:auto;justify-self:auto}.workspace-shell .shell-page-intro{margin-bottom:18px;align-items:flex-start}.shell-page-intro h2{font-size:23px}.shell-workspace-identity{display:none}body.workspace-shell>main{padding:20px 14px 30px}.workspace-shell .panel{padding:16px}.workspace-shell .header-quick-links>a{padding:5px 8px}.workspace-shell dd{font-size:18px}}
@media print{.workspace-shell #workspace-sidebar,.workspace-shell .shell-page-intro{display:none!important}body.workspace-shell>main{margin:0;padding:0}}

.shell-navigation h2{padding:0 6px}.shell-navigation h2 button{width:100%;display:flex;justify-content:space-between;border:0;min-height:25px;padding:4px 6px;background:transparent;color:#8da5b6;text-transform:uppercase;font-size:10px;letter-spacing:.13em;border-radius:4px}.shell-navigation h2 button::after{content:'⌄';font-size:12px}.shell-navigation .is-collapsed h2 button::after{content:'›'}.shell-navigation section.is-collapsed>a{display:none}.shell-rail #workspace-sidebar .shell-navigation section.is-collapsed>a{display:flex}

/* Full-width workspace mode retains the toolbar button for navigation recovery. */
body.workspace-shell.shell-sidebar-hidden{--shell-nav-width:0px}
.workspace-shell.shell-sidebar-hidden #workspace-sidebar{display:none}

/* Main workspace surfaces share a hierarchy across reports, search and workbooks. */
.workspace-shell #workspace-sidebar-minimal{display:inline-flex;align-items:center;justify-content:center;min-width:33px;min-height:33px;padding:4px;border:1px solid var(--ui-border);background:var(--ui-surface);color:var(--ui-muted);border-radius:7px}
.workspace-shell #workspace-sidebar-minimal[aria-pressed=true]{background:var(--ui-soft);border-color:var(--ui-accent);color:var(--ui-accent)}
.workspace-shell main>section,.workspace-shell main>form.panel,.workspace-shell main>details.panel{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:12px;box-shadow:0 3px 12px #142b4305;margin-bottom:20px;padding:22px}
.workspace-shell main :is(h2,h3){line-height:1.35;letter-spacing:-.02em}
.workspace-shell main>section>h2,.workspace-shell main>section>details>summary{font-size:16px;font-weight:650;margin-bottom:12px}
.workspace-shell main>details.panel{padding:0}
.workspace-shell main>details.panel>summary{padding:17px 22px;font-size:14px;line-height:1.4}
.workspace-shell main>details.panel[open]>summary{border-bottom:1px solid var(--ui-border);margin-bottom:18px;background:var(--ui-soft)}
.workspace-shell main>details.panel>:not(summary){margin-left:22px;margin-right:22px}
.workspace-shell main>details.panel>:last-child{margin-bottom:22px}
.workspace-shell main :is(.hint,small){line-height:1.55}
.workspace-shell main :is(.toolbar,.table-toolbar,.results-heading){gap:10px;align-items:center}
.workspace-shell main .table-toolbar{padding:10px 12px;background:var(--ui-soft);border:1px solid var(--ui-border);border-radius:8px;margin-block:12px}
.workspace-shell main :is(input:not([type=checkbox]):not([type=radio]),select,textarea){min-height:36px;box-shadow:0 1px 2px #142b4303}
.workspace-shell main :is(button,.button){min-height:34px;line-height:1.35}
.workspace-shell main :is(button,.button).primary{box-shadow:0 2px 4px #10293612}
.workspace-shell main button:disabled{box-shadow:none;cursor:not-allowed}
.workspace-shell main :is(input,select,textarea,button,a,summary):focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}
.workspace-shell main :is(td.numeric,dd,.cards strong){font-variant-numeric:tabular-nums}
.workspace-shell main .cards{gap:12px;margin-block:16px}
.workspace-shell main .cards button{flex:1 1 170px;padding:15px 17px;border:1px solid var(--ui-border);border-top:3px solid var(--ui-accent);border-radius:9px;background:var(--ui-surface)}
.workspace-shell main .cards button strong{font-size:24px;line-height:1.35;letter-spacing:-.035em;margin-block:3px}
.workspace-shell main .cards button[aria-pressed=true]{background:var(--ui-accent);color:white}
.workspace-shell main .cards button:not([aria-pressed=true]):hover{background:var(--ui-soft)}
.workspace-shell .start-grid{gap:14px;margin-top:18px}
.workspace-shell .start-grid>a.button{position:relative;display:grid;grid-template-columns:32px 1fr;column-gap:12px;row-gap:5px;align-content:start;padding:20px;min-height:124px;border:1px solid var(--ui-border);background:var(--ui-surface);white-space:normal}
.workspace-shell .start-grid>a.button .shell-tile-icon{grid-row:1/3;width:30px;height:30px;padding:5px;border-radius:7px;background:var(--ui-soft);color:var(--ui-accent)}
.workspace-shell .start-grid>a.button strong,.workspace-shell .start-grid>a.button span{grid-column:2}
.workspace-shell .start-grid>a.button:hover{border-color:var(--ui-accent);background:var(--ui-soft);box-shadow:0 4px 12px #142b4308}
@media(max-width:1100px){.workspace-shell #workspace-sidebar-minimal{display:none}}
@media(max-width:700px){.workspace-shell main>section,.workspace-shell main>form.panel{padding:16px}.workspace-shell main>details.panel>summary{padding:15px 16px}.workspace-shell main>details.panel>:not(summary){margin-left:16px;margin-right:16px}.workspace-shell main .cards button{flex-basis:135px}.workspace-shell .start-grid>a.button{min-height:110px;padding:16px}}

.calendar-quote-pricing{margin-top:14px;padding-top:12px;border-top:1px solid var(--ui-border,#cddbe0)}.calendar-quote-card+ .calendar-quote-card{margin-top:14px}.calendar-quote-pricing dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}.calendar-quote-pricing dd{font-size:17px!important}.calendar-quote-pricing>p{color:var(--ui-muted,#425c68);font-size:12px}

.part-code-link{font-weight:600;text-underline-offset:3px;text-decoration-thickness:1px}.part-code-link:hover{text-decoration-thickness:2px}

/* Main-area view tools and clear filter / results hierarchy. */
.shell-content-controls{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap;margin-left:auto}.shell-content-controls select{width:auto;max-width:250px;min-height:33px;font-size:12px;color:var(--ui-muted);background:var(--ui-surface);border-color:var(--ui-border)}.shell-content-controls label{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:12px;color:var(--ui-muted);font-weight:500}.shell-content-controls input{margin:0}
.workspace-shell main>form.panel{background:var(--ui-soft)}.workspace-shell main fieldset{border:1px solid var(--ui-border);border-radius:9px;padding:15px 17px;margin-block:16px;min-width:0}.workspace-shell main legend{padding:0 7px;font-size:12px;font-weight:650;color:var(--ui-muted)}
.workspace-shell main .results-heading{padding-bottom:12px;border-bottom:1px solid var(--ui-border);margin-bottom:14px}.workspace-shell main .scroll{scrollbar-width:thin}.workspace-shell main th{box-shadow:inset 0 -1px var(--ui-border)}.workspace-shell main nav[aria-label="Results pages"]{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;padding-top:16px;color:var(--ui-muted);font-size:12px}
.workspace-shell main .panel{scroll-margin-top:20px}.workspace-shell main button:disabled{opacity:.55}
.workspace-shell.workspace-content-compact main :is(th,td){padding-top:6px;padding-bottom:6px;font-size:12px}.workspace-shell.workspace-content-compact main .panel{margin-bottom:12px}.workspace-shell.workspace-content-compact main :is(button,.button){min-height:28px}.workspace-shell.workspace-content-compact main>section,.workspace-shell.workspace-content-compact main>form.panel{padding:16px}.workspace-shell.workspace-content-compact main .cards button{padding:10px 13px}.workspace-shell.workspace-content-compact main .grid{gap:9px}
.vendor-link-actions{white-space:nowrap}.vendor-link-actions button+button{margin-left:7px}#vendor-test-dialog{width:min(650px,94vw);max-height:90vh;border:1px solid var(--ui-border);border-radius:12px;padding:24px;color:var(--ui-text);background:var(--ui-surface)}#vendor-test-dialog::backdrop{background:#10233088}#vendor-test-code{width:100%;margin-top:7px}#vendor-test-status{overflow-wrap:anywhere;color:var(--ui-muted);font-size:12px;margin-top:16px}
@media(max-width:900px){.shell-page-intro{flex-wrap:wrap}.shell-content-controls{justify-content:flex-start;order:3;width:100%;margin:0}.shell-content-controls select{max-width:min(250px,100%)}}
@media print{.shell-content-controls{display:none!important}}

.workspace-shell main :is(.table-layout-grip,.job-grip){min-height:0;min-width:0;padding:0}

/* Page-specific section styles must not leak into shared navigation groups. */
body.workspace-shell{min-height:100vh}.workspace-shell .shell-navigation section{background:transparent;border:0;border-radius:0;padding:0;box-shadow:none}
.workspace-shell #sources>form{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:16px;border:1px solid var(--ui-border);border-radius:9px;background:var(--ui-soft);min-width:0}.workspace-shell #sources>form>br{display:none}.workspace-shell #sources>form>button{align-self:flex-start;max-width:100%;white-space:normal}.workspace-shell #sources>form>small{display:block;margin-top:auto;color:var(--ui-muted);overflow-wrap:anywhere}.workspace-shell #sources input[type=file]{max-width:100%;background:var(--ui-surface)}

/* Work stays prominent; setup and secondary actions remain available on demand. */
.workspace-shell .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.workspace-shell .workspace-setup>summary,.workspace-shell #workspace-all-tools>summary{font-weight:650;padding:5px 0;cursor:pointer}
.workspace-shell .workspace-filter-band{position:sticky;top:0;z-index:8;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:10px;padding:14px 16px;margin:16px 0;box-shadow:0 3px 10px #10233008}
.workspace-shell .workspace-filter-band>.grid{margin:0;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));align-items:start;gap:12px}
.workspace-shell .workspace-filter-band details{min-width:0}.workspace-shell .workspace-filter-band summary{font-size:13px;font-weight:600;cursor:pointer;padding:7px 0}
.workspace-shell .workspace-filter-chips{display:flex;gap:6px;flex-wrap:wrap;align-items:center;padding-top:10px;font-size:12px;color:var(--ui-muted)}
.workspace-shell .workspace-filter-chips button{font-size:12px;min-height:28px;padding:4px 9px;border-radius:20px;background:var(--ui-soft);color:var(--ui-text);max-width:100%;white-space:normal;overflow-wrap:anywhere}
.workspace-shell #dashboard-advanced-filters{margin-top:8px;border-top:1px solid var(--ui-border)}
.workspace-shell .workspace-more{position:relative;margin-left:auto}.workspace-shell .workspace-more>summary{cursor:pointer;font-size:13px;padding:8px 12px;border:1px solid var(--ui-border);border-radius:7px;list-style:none}
.workspace-shell .workspace-more[open]{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.workspace-shell .workspace-more>button{margin:4px}
.workspace-shell .workspace-bulk-bar{position:sticky;bottom:12px;z-index:9;padding:12px 16px;background:var(--ui-soft);border:1px solid var(--ui-border);border-radius:9px;box-shadow:0 4px 16px #10233012}
.workspace-shell .workspace-no-selection{display:none!important}
.workspace-shell dialog.workspace-detail-drawer{position:fixed;inset:0 0 0 auto;margin:0!important;width:min(760px,90vw)!important;max-width:100vw!important;height:100dvh;max-height:100dvh!important;border:0;border-left:1px solid var(--ui-border);border-radius:0!important;background:var(--ui-surface);color:var(--ui-text);padding:26px;overflow:auto;box-shadow:-12px 0 40px #10233024}
.workspace-shell dialog.workspace-detail-drawer::backdrop{background:#10233055}
.workspace-shell .workspace-drawer-footer{position:sticky;bottom:-26px;margin:18px -26px -26px;padding:16px 26px;background:var(--ui-surface);border-top:1px solid var(--ui-border);z-index:2;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.workspace-shell .workspace-dirty{font-size:12px;color:var(--ui-muted);margin-right:auto}
@media(max-width:700px){.workspace-shell .workspace-filter-band{position:static;padding:12px}.workspace-shell dialog.workspace-detail-drawer{width:100vw!important;padding:18px}.workspace-shell .workspace-drawer-footer{bottom:-18px;margin:18px -18px -18px;padding:14px 18px}.workspace-shell .workspace-more{margin-left:0}}
@media(max-height:700px){.workspace-shell .workspace-filter-band{position:static}}
@media print{.workspace-shell .workspace-filter-band{position:static}.workspace-shell .workspace-filter-chips,.workspace-shell .workspace-bulk-bar{display:none!important}}

.workspace-shell .workspace-secondary{border-top:1px solid var(--ui-border);padding-top:12px;margin-block:14px}.workspace-shell .workspace-secondary>summary{font-weight:600;font-size:13px;cursor:pointer;margin-bottom:10px}

#workspace-feedback-dialog{width:min(600px,94vw);max-height:90vh;background:var(--ui-surface);color:var(--ui-text);border:1px solid var(--ui-border);border-radius:12px;padding:24px}#workspace-feedback-dialog label{display:block;margin-top:12px;font-weight:600}#workspace-feedback-dialog :is(input,textarea,select){display:block;width:100%;margin-top:5px}#workspace-feedback-dialog p{font-size:12px;color:var(--ui-muted)}#workspace-feedback-dialog::backdrop{background:#10233066}
#workspace-shared-update:not([hidden]){display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:var(--ui-soft);border:1px solid var(--ui-border);padding:12px 16px;border-radius:9px;margin-bottom:14px}.workspace-shell #board-editor .actions{position:sticky;bottom:-18px;background:var(--ui-surface);padding-block:12px;border-top:1px solid var(--ui-border)}

#workspace-mailbox-dialog{width:min(1040px,96vw);max-height:94vh;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface);color:var(--ui-text);padding:22px}#workspace-mailbox-dialog::backdrop{background:#10233066}.mailbox-layout{display:grid;grid-template-columns:minmax(180px,270px) minmax(0,1fr);gap:20px}.mailbox-threads{max-height:65vh;overflow:auto}.mailbox-thread{width:100%;display:flex;flex-direction:column;gap:4px;text-align:left;margin-bottom:8px;white-space:normal;overflow-wrap:anywhere}.mailbox-thread small{max-height:3em;overflow:hidden;color:var(--ui-muted)}.mailbox-history{max-height:42vh;min-height:100px;overflow:auto;padding:8px;background:var(--ui-soft);border-radius:8px}.mailbox-history article{padding:12px;margin:8px 0;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:8px}.mailbox-history .mailbox-own{margin-left:25px;border-left:3px solid var(--ui-accent)}.mailbox-history small{display:block;color:var(--ui-muted);margin-top:3px}.mailbox-history p{white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:0}#workspace-mailbox-dialog label{display:block;font-weight:600;margin:10px 0}#workspace-mailbox-dialog :is(input,select,textarea){display:block;width:100%;margin-top:5px}#workspace-mailbox-dialog [hidden]{display:none!important}@media(max-width:700px){.mailbox-layout{grid-template-columns:1fr}.mailbox-threads{max-height:150px}.mailbox-history{max-height:30vh}}
