/* Canonical company workspace layout. Legacy business dialogs keep their shared primitives. */
/* Company theme: the sole adapter from business semantics to the legacy primitives. */
body.company-system {
 --company-purple:#5850bd; --company-teal:#197e72;
 --company-canvas:#f3f5f8; --company-surface:#ffffff; --company-soft:#f7f8fa;
 --company-ink:#202b3d; --company-muted:#647187; --company-line:#e2e6ed;
 --company-accent-soft:#efedfa; --company-success-soft:#eaf6f1;
 --company-danger:#b44343; --company-warning:#946118;
 --sp-violet:var(--company-purple); --sp-blue:#567cc4; --sp-mint:#2b9e91;
 --sp-ink:var(--company-ink); --sp-muted:var(--company-muted); --sp-line:var(--company-line);
 --sp-paper:var(--company-canvas); --sp-coral:var(--company-danger); --sp-amber:var(--company-warning);
 --primary:var(--company-purple); --primary-strong:#4941a2; --text:var(--company-ink);
 --muted:var(--company-muted); --line:var(--company-line); --danger:var(--company-danger);
 --success:var(--company-teal); --warning:var(--company-warning); --panel:var(--company-surface);
 background:var(--company-canvas); color:var(--company-ink); font-size:14px; padding:0;
 font-family:"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif; line-height:1.55;
 font-variant-numeric:tabular-nums;
}
body.company-system::before { display:none; }
#companyReports #reportDialog { display:block!important; position:static!important; inset:auto!important; transform:none!important; margin:0!important; padding:0!important; width:100%!important; max-width:none!important; height:auto!important; max-height:none!important; overflow:visible!important; border:0!important; background:transparent!important; box-shadow:none!important; }
#companyReports #reportDialog > .report-box { display:block!important; position:static!important; width:100%!important; height:auto!important; max-height:none!important; margin:0!important; padding:0!important; overflow:visible!important; background:transparent!important; border:0!important; box-shadow:none!important; }
#companyReports #reportDialog .dialog-head { display:none!important; }
#companyReports #reportDialog .report-workflow-body,#companyReports #reportView { height:auto!important; max-height:none!important; padding:0!important; overflow:visible!important; background:transparent!important; }
#companyReports #reportView[hidden] { display:none!important; }
.company-report-tools { display:flex; align-items:center; flex-wrap:wrap; gap:14px; padding:16px; background:#fafbff; border:1px solid var(--company-line); border-radius:12px; position:sticky; top:0; z-index:10; }
.company-report-switch { display:flex; background:#efecfa; padding:4px; border-radius:9px; gap:4px; }
.company-report-switch button { border:0; box-shadow:none; background:transparent; padding:10px 24px; color:#62718a; border-radius:7px; }
.company-report-switch button[aria-pressed=true] { color:#fff; background:var(--company-purple); }
.company-report-tools label { display:flex; align-items:center; gap:8px; font-size:13px; color:#65738a; }
.company-report-tools input { width:165px; min-width:0; padding:10px; border:1px solid var(--company-line); border-radius:8px; background:#fff; }
.company-report-actions { display:flex; gap:10px; margin-left:auto; }
#companyReportRefresh { padding:10px 16px; border:1px solid var(--company-line); background:white; border-radius:8px; font-size:13px; color:#52617a; }
#companyReportStatus { font-size:12px; color:#64758b; margin:14px 2px; }
@media(max-width:760px) {
 .company-report-tools { gap:10px; padding:10px; position:static; }
 .company-report-switch button { padding:10px 18px; }
 .company-report-tools label { flex:1; }
 .company-report-tools input { width:100%; }
 .company-report-actions { width:100%; }
 .company-report-actions button { flex:1; font-size:13px; padding:12px; }
}
.company-system [data-company-admin][hidden] { display:none!important; }
.company-system #mobileMoreDialog .mobile-more-grid:has([data-company-admin][hidden]) { grid-template-columns:1fr; }
.company-system .company-inactive { display:none!important; }
.company-system button { cursor:pointer; }
.company-system button:focus-visible,.company-system summary:focus-visible { outline:3px solid #8c7ee6; outline-offset:3px; }
.company-sidebar { width:204px; position:fixed; inset:0 auto 0 0; z-index:30; display:flex; flex-direction:column; padding:30px 18px 22px; background:#fff; border-right:1px solid var(--company-line); box-sizing:border-box; }
.company-sidebar .brand-lockup { margin-bottom:42px; gap:10px; }
.company-sidebar .brand-lockup h1 { font-size:20px; }
.company-sidebar .brand-subtitle { font-size:11px; }
.company-sidebar .spectrum-primary-nav { display:flex; flex-direction:column; gap:8px; width:100%; padding:0; border:0; background:none; box-shadow:none; overflow:visible; }
.company-sidebar .spectrum-primary-nav button { width:100%; border:0; box-shadow:none; background:transparent; display:flex; gap:15px; align-items:center; padding:14px 18px; font-size:14px; border-radius:10px; color:#65728a; text-align:left; }
.company-sidebar .spectrum-primary-nav button span { font-size:20px; width:20px; }
.company-sidebar .spectrum-primary-nav button.active { background:#ece8ff; color:#5744c0; font-weight:650; }
.company-sidebar .account-cluster { margin-top:auto; display:block; border-top:1px solid #e1e5ef; padding-top:20px; }
.company-sidebar .account-caption { display:block; font-size:12px; margin-bottom:8px; }
.company-sidebar .user-badge { background:transparent; border:0; padding:0; font-size:13px; box-shadow:none; white-space:normal; }
.company-topbar { margin-left:204px; min-height:80px; padding:16px 28px; display:flex; align-items:center; gap:24px; background:#ffffff; border-bottom:1px solid var(--company-line); box-sizing:border-box; }
.company-topbar h1 { font-size:20px; margin:0 auto 0 0; }
.company-topbar .spectrum-global-zone { border:0; padding:0; font-size:12px; }
.company-topbar .topbar-actions { display:flex; width:auto; gap:12px; }
.company-topbar .header-task-strip { display:flex; }
body.company-system .company-topbar #newOrderBtn { background:var(--company-purple)!important; color:#fff; border:0; border-radius:9px; box-shadow:none!important; padding:12px 18px; }
.company-system main.layout { margin:0 0 0 204px; padding:26px 28px 40px; width:auto; max-width:none; display:block; min-width:0; }
.company-home { display:block; width:100%; }
.company-overview { display:grid; grid-template-columns:1.6fr 1fr; gap:20px; }
/* Home identity and personalized print-proof screen. */
.company-hero {
 display:grid; grid-template-columns:minmax(0,1fr) minmax(172px,.95fr); align-items:center; gap:14px;
 min-height:244px; padding:28px 32px; overflow:hidden; border:1px solid #ddd8ef; border-radius:18px; position:relative;
 background:radial-gradient(ellipse at 100% 0%,#d9eee8 0%,transparent 55%),linear-gradient(115deg,#f4f0ff,#e9e4f6 72%,#e8f2ee); color:#292344; box-shadow:inset 0 1px 0 #fff,0 6px 22px #34285908;
}
.company-hero-copy small { display:flex; align-items:center; gap:8px; color:#504682; font-size:12px; font-weight:700; letter-spacing:.11em; }
.company-hero-copy small::before { content:''; display:block; width:14px; height:2px; background:var(--company-purple,#5850bd); }
.company-hero h2 { margin:12px 0 0; color:inherit; font-size:clamp(26px,2.75vw,42px); font-weight:700; line-height:1.2; letter-spacing:-.025em; }
.company-hero-subtitle { margin:16px 0 0; color:#716484; font-size:13px; letter-spacing:.035em; }
.company-proof {
 display:grid; align-content:center; justify-items:center; min-width:0; min-height:166px; padding:14px 10px 8px;
 background-image:linear-gradient(#7567a71b 1px,transparent 1px),linear-gradient(90deg,#7567a71b 1px,transparent 1px);
 background-size:20px 20px; border-radius:50%;
}
.company-proof-frame {
 width:min(100%,264px); padding:10px; transform:rotate(-6deg); border:1px solid #ab9ecd; border-radius:8px;
 background:#faf8ff; box-shadow:8px 10px 0 #594b8c13,0 14px 26px #3329511a; position:relative;
}
.company-proof-frame::before,
.company-proof-frame::after {
 content:''; position:absolute; width:7px; height:7px; border-color:#8e80b3; pointer-events:none;
}
.company-proof-frame::before { top:4px; left:4px; border-top:1px solid; border-left:1px solid; }
.company-proof-frame::after { bottom:4px; right:4px; border-bottom:1px solid; border-right:1px solid; }
.company-proof-screen {
 min-height:112px; display:grid; grid-template-columns:minmax(0,1fr); align-content:center; justify-items:center; gap:8px; padding:11px;
 border-radius:4px; background:linear-gradient(145deg,#302b56,#585084); color:white; text-align:center; overflow-wrap:anywhere;
}
.company-proof-screen p { margin:0; min-height:3.1em; display:grid; align-items:center; font-size:16px; font-weight:500; line-height:1.65; color:#f0ecff; width:100%; max-width:100%; text-wrap:balance; }
.company-proof-swatches { justify-self:end; width:37px; height:4px; margin:13px 0 0; border-radius:2px; background:linear-gradient(90deg,#6b5eb0 32%,#258a7d 32% 66%,#b98558 66%); }
@media(max-width:560px) {
 .company-hero { grid-template-columns:minmax(0,.7fr) minmax(155px,1fr); min-height:165px; padding:14px; gap:8px; }
 .company-hero h2 { font-size:24px; }
 .company-hero h2 span { display:block; }
 .company-hero-subtitle { font-size:12px; margin-top:10px; max-width:12em; }
 .company-proof { padding-inline:8px; min-height:130px; }
 .company-proof-frame { padding:7px; transform:rotate(-2deg); }
 .company-proof-screen { min-height:99px; padding:9px 8px; }
 .company-proof-screen p { font-size:14px; }
}
.company-card { background:#fff; border:1px solid var(--company-line); border-radius:14px; overflow:hidden; }
.company-card > header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:20px; }
.company-card h3 { font-size:17px; font-weight:650; margin:0; letter-spacing:.01em; }
.company-card h3 small { font-size:12px; font-weight:400; color:var(--company-muted); margin-left:8px; }
.company-card header > span { color:var(--company-muted); font-size:12px; }
.company-month { padding:0; display:flex; flex-direction:column; }
.company-month > header { padding:18px 22px 0; }
.company-rate { display:flex; align-items:baseline; gap:10px; margin:8px 0 10px; }
.company-rate > strong { font-size:44px; color:var(--company-purple); line-height:1.2; font-weight:650; }
.company-rate small { font-size:18px; margin-left:3px; }
.company-rate > span { color:var(--company-muted); font-size:13px; }
.company-month progress { display:block; width:100%; height:6px; border:0; border-radius:8px; background:#eceef7; accent-color:var(--company-purple); }
.company-month progress::-webkit-progress-bar { background:#eceef7; border-radius:8px; }
.company-month progress::-webkit-progress-value { background:linear-gradient(90deg,var(--company-purple),#8d81d4); border-radius:8px; }
.company-month-counts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:16px 0; gap:12px; }
.company-month-counts div { display:flex; flex-direction:column; gap:5px; }
.company-month-counts b { font-size:23px; font-weight:600; line-height:1.3; }
.company-month-counts b small { font-size:12px; color:var(--company-muted); font-weight:400; margin-left:5px; }
.company-month-counts div + div { border-left:1px solid var(--company-line); padding-left:16px; }
.company-month-counts div:nth-child(2) b { color:var(--company-teal); }
.company-month-main { padding:0 22px; flex:1; }
.company-month-footer { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:9px 22px; background:var(--company-soft); border-top:1px solid var(--company-line); }
.company-month-footer > span { font-size:12px; color:var(--company-muted); }
.company-month-footer button { display:flex; align-items:center; gap:10px; min-height:30px; }
.company-month-counts span { color:var(--company-muted); font-size:12px; }
.company-system .company-text-button { border:0; background:transparent; box-shadow:none; color:var(--company-purple); padding:5px 0; font-size:12px; }
.company-stages { display:grid; grid-template-columns:repeat(4,1fr); margin:20px 0; background:#fff; border:1px solid var(--company-line); border-radius:14px; padding:10px; box-shadow:0 3px 14px #26334b04; }
.company-stages button { display:flex; gap:12px; align-items:center; padding:15px; background:none; border:0; border-right:1px solid #e5e9f2; border-radius:0; box-shadow:none; color:#52617a; font-size:13px; }
.company-stages button:last-child { border:0; }
.company-stages b { margin-left:4px; font-size:24px; color:#26384d; }
.company-stage-icon { width:34px; height:34px; border-radius:10px; background:#efecf9; color:var(--company-purple); display:grid; place-items:center; font-size:12px; }
.company-work-grid { display:grid; grid-template-columns:1.65fr 1fr; align-items:start; gap:20px; }
.company-system .company-task { width:100%; border:0; border-top:1px solid #edf0f5; border-radius:0; box-shadow:none; background:transparent; padding:20px; display:grid; grid-template-columns:minmax(150px,1.05fr) minmax(180px,1.25fr) 80px 90px; gap:16px; text-align:left; align-items:center; color:#26384d; font-size:14px; }
.company-task:hover,.company-shipment:hover { background:#f7f6fc; }
.company-task strong { display:block; font-size:15px; font-weight:650; line-height:1.5; margin-top:5px; }
.company-task-main { min-width:0; }
.company-task-phase { display:inline-block; padding:2px 7px; font-size:11px; line-height:1.5; border-radius:5px; background:#f0edf9; color:#665697; }
.company-task-phase[data-phase="ship"] { color:#277266; background:#eaf4f0; }
.company-task-phase[data-phase="confirm"] { color:#775f35; background:#f7f1e6; }
.company-task-reason > span { display:block; line-height:1.6; }
.company-task-clock { width:fit-content; max-width:100%; padding:3px 7px; border:1px solid #e8eaf0; border-radius:5px; background:#f7f8fa; }
.company-task-clock.company-warning { background:#fff7ec; border-color:#f0dfc5; color:#925518; }
.company-owner-mark { display:grid; place-items:center; width:27px; height:27px; flex:0 0 27px; border-radius:9px; background:#efedf7; color:#65588e; font-size:12px; font-weight:600; }
.company-task-owner > span:last-child { overflow-wrap:anywhere; }
.company-task small { display:block; font-size:12px; color:var(--company-muted); margin-top:7px; }
.company-task .company-warning { color:#a8621a; }
.company-task-link { color:var(--company-purple); white-space:nowrap; padding:7px 9px; border-radius:7px; background:#f1eefb; text-align:center; font-size:13px; }
.company-system .company-shipment { background:transparent; box-shadow:none; border:0; border-top:1px solid #edf0f5; border-radius:0; padding:15px 20px; display:grid; grid-template-columns:1fr; gap:5px; width:100%; text-align:left; color:#26384d; }
.company-shipment time { color:var(--company-teal); font-size:12px; }
.company-shipment small { color:var(--company-muted); font-size:12px; }
.company-team { margin-top:20px; }
.company-team button { display:grid; grid-template-columns:1fr 45px 65px 45px; gap:8px; width:100%; text-align:left; padding:12px 20px; background:none; border:0; border-radius:0; box-shadow:none; color:#52617a; }
.company-empty { padding:32px 20px; color:var(--company-muted); font-size:13px; }
.company-page-heading { margin-bottom:24px; }
.company-page-heading h2 { font-size:26px; margin:0 0 10px; }
.company-page-heading p { color:var(--company-muted); }
.company-tool-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.company-tool-grid article { padding:26px; border:1px solid var(--company-line); border-radius:14px; background:white; }
.company-tool-grid article h3 { margin:0 0 12px; }
.company-tool-grid article p { color:var(--company-muted); margin-bottom:24px; }
.company-tool-grid > button { min-height:100px; background:white; color:#485a75; border:1px solid var(--company-line); border-radius:14px; font-size:16px; box-shadow:none; }
/* System management uses shared controls and compact business tool cards. */
#companyAdmin { width:100%; max-width:none; min-width:0; margin:0; }
#companyAdmin .company-page-heading { margin-bottom:20px; }
#companyAdmin .company-page-heading h2 { font-size:24px; margin-bottom:6px; }
#companyAdmin .company-page-heading p { margin:0; font-size:13px; }
#companyAdmin .company-tool-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
#companyAdmin .company-tool-grid > button { display:flex; align-items:center; min-height:108px; padding:22px; gap:14px; text-align:left; border-radius:12px; box-shadow:0 4px 18px #202b3d05; }
#companyAdmin .company-tool-grid > button:hover { border-color:#b7afe0; background:#fcfbff; }
.company-admin-icon { flex:0 0 40px; display:grid; place-items:center; width:40px; height:40px; background:var(--company-accent-soft); color:var(--company-purple); border-radius:10px; }
.company-admin-icon svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.company-admin-tool-copy { display:grid; gap:6px; min-width:0; }
.company-admin-tool-copy strong { font-size:15px; font-weight:600; color:var(--company-ink); }
.company-admin-tool-copy small { font-size:12px; font-weight:400; color:var(--company-muted); line-height:1.5; }
.company-admin-arrow { margin-left:auto; color:var(--company-muted); font-size:21px; }
.company-safeguards { margin-top:20px; }
.company-safeguards > header { padding:20px 24px; }
.company-safeguards header p { margin:5px 0 0; font-size:13px; color:var(--company-muted); }
.company-safeguards header .company-admin-tag { color:var(--company-purple); background:var(--company-accent-soft); padding:5px 9px; border-radius:5px; font-size:12px; white-space:nowrap; }
.company-operations-status { padding:12px 24px; margin:0; color:var(--company-muted); background:var(--company-soft); font-size:13px; }
#operationsForm { padding:0; }
#operationsForm[hidden] { display:none; }
.company-operations-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:24px; gap:24px; }
#operationsForm fieldset { border:1px solid var(--company-line); border-radius:10px; padding:16px 20px 20px; margin:0; min-width:0; background:#fcfcfe; }
#operationsForm legend { font-weight:600; font-size:15px; padding:0 6px; }
.company-field-description { margin:0 0 18px; font-size:13px; color:var(--company-muted); }
.company-operations-times { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.company-operations-times label { display:grid; gap:8px; font-size:13px; color:var(--company-muted); }
.company-operations-times input { width:100%; min-width:0; min-height:44px; border:1px solid var(--company-line); padding:10px; border-radius:8px; font-size:14px; }
.company-operations-times small { font-size:12px; }
.company-operations-days { display:flex; flex-wrap:wrap; gap:7px; margin-top:18px; }
.company-operations-days label { display:flex; align-items:center; gap:6px; min-height:44px; padding:5px 9px; border:1px solid var(--company-line); border-radius:7px; font-size:13px; cursor:pointer; }
.company-operations-days label:has(input:checked) { background:var(--company-accent-soft); border-color:#d4ceee; color:var(--company-purple); }
.company-operations-days input { width:15px; height:15px; margin:0; accent-color:var(--company-purple); }
.company-operations-note { font-size:12px; color:var(--company-muted); overflow-wrap:anywhere; margin:16px 0 0; line-height:1.7; }
.company-backup-status { background:var(--company-soft); padding:12px 14px; margin-top:14px; border-radius:7px; }
.company-backup-status > span { font-size:12px; font-weight:600; }
.company-backup-status .company-operations-note { margin:4px 0 0; }
.company-operations-bottom { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:13px; padding:16px 24px; border-top:1px solid var(--company-line); background:var(--company-soft); }
.company-operations-bottom > span { color:var(--company-muted); }
.company-operations-bottom button { min-height:44px; padding:11px 22px; }
@media(max-width:1100px) {
 #companyAdmin .company-tool-grid > button { padding:16px; gap:10px; }
 .company-admin-icon { flex-basis:34px; width:34px; height:34px; }
 .company-operations-grid { gap:16px; padding:20px; }
}
@media(max-width:900px) {
 .company-operations-grid { grid-template-columns:1fr; }
 #companyAdmin .company-tool-grid { grid-template-columns:1fr; gap:10px; }
 #companyAdmin .company-tool-grid > button { min-height:78px; }
}
@media(max-width:760px) {
 .company-safeguards > header { padding:16px; }
 .company-safeguards header p { font-size:12px; }
 .company-operations-status { padding:12px 16px; }
 .company-operations-grid { padding:16px; gap:18px; }
 #operationsForm fieldset { padding:12px; }
 .company-operations-times { gap:10px; }
 .company-operations-bottom { padding:14px 16px; }
 .company-operations-bottom button { width:100%; }
}
.company-system .spectrum-orders { width:100%; max-width:none; min-width:0; border:1px solid var(--company-line); border-radius:14px; background:white; box-shadow:0 4px 18px #202b3d06; }
.company-system .spectrum-orders .board-head { background:#fafbff; padding:20px; border:0; }
.company-system .spectrum-orders .board-head h2 { font-size:20px; font-weight:650; color:var(--company-ink); }
.company-system .spectrum-orders .filters { display:flex; flex-wrap:wrap; align-items:center; gap:10px; width:100%; }
.company-system .spectrum-orders .filters > * { grid-area:auto; margin:0; }
.company-system .spectrum-orders .search-control { flex:1 1 280px; min-width:0; }
.company-system #responsibilityTabs { flex:0 0 auto; width:auto; display:flex; }
.company-system #responsibilityTabs button { min-width:68px; font-size:13px; padding:10px; }
.company-system .spectrum-orders .filters > select { min-width:110px; width:140px; flex:0 0 140px; font-size:13px; }
.company-system #monthSummary:empty { display:none; }
.company-system .orders-list { max-height:none; overflow:visible; }
.company-system .spectrum-orders .order-task-strip { grid-template-columns:minmax(190px,1.25fr) minmax(130px,1fr) minmax(150px,1fr) minmax(155px,1fr) minmax(175px,1.2fr); gap:16px; align-items:center; }
.company-system .spectrum-orders .order-panorama-identity .order-no { display:block; white-space:nowrap; }
.company-system .spectrum-orders .order-flags { display:flex; flex-wrap:wrap; gap:5px; margin:6px 0; min-width:0; }
.company-system .spectrum-orders .order-flags:empty { display:none; }
.company-system .spectrum-orders .order-flags .badge { flex:0 0 auto; margin:0; white-space:nowrap; font-size:12px; }
.company-system .spectrum-orders .order-task-progress .order-panorama-owner { flex-wrap:wrap; gap:4px 8px; }
.company-system .spectrum-orders .order-panorama-dwell { grid-column:auto; }
.company-system .spectrum-orders .order-panorama-next { grid-column:auto; min-width:0; }
@media(min-width:1001px) and (max-width:1279px) {
 .company-system .spectrum-orders .order-task-strip { grid-template-columns:minmax(190px,1fr) minmax(160px,1.2fr) minmax(150px,1fr); }
 .company-system .spectrum-orders .order-panorama-dwell { grid-column:1; }
 .company-system .spectrum-orders .order-panorama-next { grid-column:2 / 4; }
}
@media(min-width:761px) and (max-width:1000px) {
 .company-system .spectrum-orders .order-task-strip { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
 .company-system .spectrum-orders .order-panorama-identity { grid-column:1; grid-row:1; }
 .company-system .spectrum-orders .order-task-progress { grid-column:2; grid-row:1; }
 .company-system .spectrum-orders .order-task-content { grid-column:1 / 3; grid-row:2; }
 .company-system .spectrum-orders .order-panorama-dwell { grid-column:1; grid-row:3; }
 .company-system .spectrum-orders .order-panorama-next { grid-column:2; grid-row:3; }
}
.company-system .alert-panel { width:100%; max-height:none; min-height:0; background:transparent; border:0; box-shadow:none; }
.company-system .alert-panel > .panel-head { display:none; }
.company-system #alertsList { display:block; max-height:none; overflow:visible; padding:20px; }
body.company-system #alertsList .pending-page-header { display:flex; justify-content:space-between; align-items:center; margin:0 0 24px; padding:0; }
body.company-system #alertsList .pending-page-header h2 { font-size:24px; }
body.company-system #alertsList .pending-page-header h2 span { font-size:14px; margin-left:10px; font-weight:400; }
body.company-system #alertsList .pending-categories { display:flex; border-bottom:1px solid var(--company-line); margin-bottom:24px; overflow:auto; }
body.company-system #alertsList .pending-categories button { background:transparent; border:0; border-bottom:3px solid transparent; border-radius:0; box-shadow:none; color:#67768d; padding:14px 22px; white-space:nowrap; }
body.company-system #alertsList .pending-categories button[aria-pressed=true] { color:var(--company-purple); border-bottom-color:var(--company-purple); background:#f6f4fc; font-weight:600; }
body.company-system #alertsList .pending-scope button { font-size:13px; padding:10px 16px; box-shadow:none; }
body.company-system #alertsList .pending-scope button[aria-pressed=true] { background:#ece8ff; color:var(--company-purple); }
body.company-system #alertsList .pending-action-group h3 { font-size:15px; }
body.company-system #alertsList .pending-action-group > div { background:#fff; border:1px solid var(--company-line); border-radius:12px; overflow:hidden; box-shadow:0 4px 18px #202b3d05; }
body.company-system #alertsList .pending-action-row { width:100%; display:grid; grid-template-columns:1fr auto; gap:10px 20px; background:white; border:0; border-bottom:1px solid #edf0f5; border-radius:0; padding:20px; color:#26384d; text-align:left; font-size:14px; box-shadow:none; }
body.company-system #alertsList .pending-action-row small { grid-column:1/-1; color:var(--company-muted); font-size:12px; }
body.company-system #alertsList .pending-row-action { color:var(--company-purple); text-align:center; background:#f1eefb; border:1px solid #e8e2f7; border-radius:7px; padding:7px 9px; font-size:13px; font-weight:600; width:fit-content; justify-self:end; }
body.company-system #alertsList .pending-row-time { font-size:12px; color:#925518; border:1px solid #f0dfc5; background:#fff7ec; padding:4px 8px; border-radius:6px; width:fit-content; max-width:100%; box-sizing:border-box; }
body.company-system #alertsList .pending-row-time.is-critical { color:#a63f3f; background:#fff1ef; border-color:#efd4d0; }
body.company-system #alertsList .pending-page-header h2 { margin:0; }
body.company-system #alertsList .pending-action-group { margin-top:20px; }
body.company-system #alertsList .pending-action-group > .pending-column-labels { display:grid; grid-template-columns:minmax(200px,1.2fr) minmax(220px,1.4fr) 180px 110px; gap:20px; padding:12px 20px; background:var(--company-soft); color:#6c7a90; font-size:12px; border-radius:10px 10px 0 0; border-bottom:0; }
@media(min-width:1001px) {
 body.company-system #alertsList .pending-action-row { grid-template-columns:minmax(200px,1.2fr) minmax(220px,1.4fr) 180px 110px; grid-template-rows:auto auto; align-items:center; gap:7px 20px; padding:18px 20px; }
 body.company-system #alertsList .pending-action-row > strong { grid-column:1; grid-row:1; font-size:15px!important; font-weight:600; }
 body.company-system #alertsList .pending-action-row > small { grid-column:1; grid-row:2; font-size:13px; }
 body.company-system #alertsList .pending-action-row > .pending-row-reason { grid-column:2; grid-row:1/3; font-size:14px; }
 body.company-system #alertsList .pending-action-row > .pending-row-time { grid-column:3; grid-row:1/3; font-size:12px; text-align:left; }
 body.company-system #alertsList .pending-action-row > .pending-row-action { grid-column:4; grid-row:1/3; font-size:13px; text-align:center; }
}
@media(max-width:1000px) {
 body.company-system #alertsList .pending-action-group > .pending-column-labels { display:none; }
 body.company-system #alertsList .pending-action-row > strong { grid-column:1; grid-row:1; }
 body.company-system #alertsList .pending-action-row > small { grid-column:1/-1; grid-row:2; }
 body.company-system #alertsList .pending-row-time { grid-column:2; grid-row:1; }
 body.company-system #alertsList .pending-row-reason { grid-column:1; grid-row:3; }
 body.company-system #alertsList .pending-row-action { grid-column:2; grid-row:3; }
}
.company-system #drawer.company-detail { width:100%; max-width:none; inset:0; display:block; }
.company-system #drawer.company-detail.hidden { display:none; }
.company-system #drawer.company-detail .drawer-shade { position:absolute; inset:0; }
.company-system #drawer.company-detail .drawer-panel { display:flex; flex-direction:column; box-sizing:border-box; padding-bottom:88px; position:absolute; width:min(960px,calc(100vw - 48px)); max-width:960px; height:calc(100dvh - 48px); max-height:calc(100dvh - 48px); top:24px; bottom:24px; left:50%; right:auto; margin-left:calc(min(960px,100vw - 48px) / -2); border-radius:18px; }
.company-system #drawer.company-detail .summary-bento-card .order-summary-grid { grid-template-columns:1fr; }
.company-system #drawer.company-detail .summary-field { grid-template-columns:100px minmax(0,1fr); font-size:13px; }
.company-system #drawer.company-detail .summary-field strong { font-size:13px; font-weight:500; overflow-wrap:anywhere; }
.company-system #drawer.company-detail .summary-bento-card { box-shadow:none; }
.company-system #drawer.company-detail .summary-group-label { font-size:13px; font-weight:600; }
.company-detail #drawerSub { display:none; }
.company-detail .drawer-head { flex:0 0 auto; }
.company-system #drawer.company-detail #drawerContent { flex:1 1 auto; min-height:0; height:auto; overflow-y:auto; overscroll-behavior:contain; touch-action:pan-y; padding:0 24px 24px; }
.company-detail-head { display:grid; grid-template-columns:1fr auto; align-items:center; gap:12px; padding:24px 0 20px; border-bottom:1px solid var(--company-line); margin-bottom:16px; }
.company-detail-head h2 { font-size:28px; font-weight:650; letter-spacing:.01em; margin:0 0 6px; }
.company-detail-head p { font-size:13px; margin:0; }
.company-detail-head > div > span { color:var(--company-muted); font-size:13px; }
.company-detail-head .order-time { font-size:12px; }
.company-next { border-radius:8px; padding:12px 15px; background:var(--company-accent-soft); color:#5844b7; font-size:14px; }
.company-check { margin:12px 0; font-size:12px; color:#467c73; }
.company-detail .detail-tabs { display:flex; overflow:auto; gap:0; margin:16px 0; background:var(--company-soft); padding:5px; border-radius:10px; position:sticky; top:0; z-index:3; }
.company-detail .detail-tabs button { flex:1 0 auto; font-size:13px; padding:12px; box-shadow:none; border-radius:7px; }
.company-detail .detail-tabs button.active { background:var(--company-surface); color:var(--company-purple); font-weight:600; border:1px solid var(--company-line); }
.company-detail .detail-section { padding:16px; margin:0 0 14px; border:1px solid #e3e7f0; border-radius:10px; box-shadow:none; }
.company-detail .detail-section h3 { font-size:15px; }
.company-detail .revision-entry,.company-detail .reship-entry { padding:16px; }
.company-detail-actions { position:absolute; bottom:0; left:0; right:0; background:var(--company-surface); border-top:1px solid var(--company-line); box-shadow:0 -6px 18px #26334b05; display:flex; align-items:center; justify-content:space-between; padding:16px 24px; z-index:6; gap:16px; }
.company-detail-actions > details { position:relative; }
.company-detail-actions summary { cursor:pointer; border:1px solid var(--company-line); background:white; border-radius:8px; padding:12px 18px; font-size:14px; list-style:none; }
.company-secondary-actions { position:absolute; bottom:calc(100% + 10px); left:0; width:210px; background:white; box-shadow:0 8px 35px #26384d26; border:1px solid var(--company-line); border-radius:10px; padding:10px; display:grid; gap:8px; }
.company-primary-action button { background:var(--company-purple)!important; box-shadow:none!important; border:0!important; border-radius:9px; padding:13px 32px; color:white; font-size:14px; }
.company-detail .attachment-dropzone { display:none; }
.company-detail .attachments-card { padding:0; background:transparent; border:0; box-shadow:none; }
.company-detail .detail-file-zone { display:flex; align-items:center; justify-content:center; gap:10px; min-height:64px; margin:12px 0 20px; padding:14px; border:1px dashed #b9b1d7; border-radius:10px; background:#f8f7fc; color:#6a6083; cursor:pointer; font-size:13px; text-align:center; }
.company-detail .attachment-upload-bar { display:flex; flex-wrap:wrap; align-items:end; gap:12px; padding:0; background:transparent; }
.company-detail .attachment-kind-field { flex:1 1 210px; min-width:0; }
.company-detail .attachment-kind-field > span { display:block; margin-bottom:6px; font-size:12px; color:var(--company-muted); }
.company-detail .attachment-kind-field select { width:100%; min-height:42px; border-radius:8px; background:white; }
.company-detail .attachment-pick { flex:0 1 160px; min-height:42px; display:flex; align-items:center; justify-content:center; gap:8px; padding:8px 14px; border:1px solid #d9d2ef; border-radius:8px; color:var(--company-purple); background:#f1eefb; font-size:13px; cursor:pointer; box-sizing:border-box; }
.company-detail .attachment-pick::before { content:'+'; font-size:20px; line-height:1; }
.company-detail .attachment-group-head { padding:12px 0; margin-bottom:8px; background:transparent; border-bottom:1px solid var(--company-line); }
.company-detail .attachment-group-head strong { display:flex; align-items:center; gap:8px; color:var(--company-ink); font-size:14px; }
.company-detail .attachment-group-head strong::before { content:''; width:3px; height:14px; background:var(--company-purple); border-radius:3px; }
.company-detail .attachment-group-head > span { background:#f0f2f6; color:#6b7486; padding:3px 8px; border-radius:6px; font-size:11px; }
.company-attachment-sequence { position:absolute; top:8px; left:8px; min-width:23px; padding:2px 5px; border:1px solid #ffffff9c; border-radius:5px; background:#ffffffeb; color:#596579; font-size:11px; line-height:1.5; pointer-events:none; }
.company-detail .attachment-meta { min-height:0; margin:0; padding:2px 0; font-size:11px; line-height:1.6; color:#6b778a; overflow-wrap:anywhere; }
.company-detail .detail-file-zone.dragover { border:2px dashed var(--company-purple); background:#eae6ff; color:#5142b7; }
.company-detail .attachment-preview-trigger { width:100%; aspect-ratio:auto; height:150px; position:relative; display:flex; align-items:center; justify-content:center; padding:0; overflow:hidden; background:#f0f2f6; border:0; border-radius:9px 9px 0 0; box-shadow:none; }
.company-detail .attachment-preview-trigger img { display:block; width:100%; height:100%; object-fit:contain; padding:6px; box-sizing:border-box; }
.company-image-status { position:absolute; inset:0; display:grid; place-items:center; padding:15px; font-size:13px; color:#63738b; background:#edf0f7; }
.company-detail .file-preview-list { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:14px; }
.company-detail .file-preview { width:120px; max-width:calc(50% - 5px); padding:8px; border:1px solid var(--company-line); background:white; border-radius:8px; }
.company-detail .file-preview img { width:100%; height:70px; object-fit:contain; }
.company-detail .file-preview strong { display:block; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media(max-width:760px) { .company-detail .detail-file-zone { min-height:48px; font-size:12px; padding:10px; } }
.company-detail .attachment-grid {
 display:grid; width:100%; max-width:none; min-width:0;
 grid-template-columns:repeat(auto-fill,minmax(min(200px,100%),1fr)); gap:12px;
}
.company-detail .attachment-card { box-shadow:none; }
.company-detail .attachment-card-body { position:relative; min-height:44px; display:flex; align-items:center; padding:8px 38px 8px 10px; box-sizing:border-box; border-top:1px solid #edf0f4; }
.company-detail .attachment-card-body > strong { display:none; }
.company-detail .attachment-card-footer[hidden] { display:none; }
.company-detail .attachment-preview-label { display:none; }
.company-attachment-menu { position:absolute; top:50%; right:6px; transform:translateY(-50%); }
.company-attachment-menu summary { cursor:pointer; list-style:none; display:grid; place-items:center; min-width:30px; min-height:32px; padding:4px; box-sizing:border-box; border:1px solid #e8e5f1; border-radius:7px; background:#faf9fd; color:#76678c; }
.company-attachment-menu > div { position:absolute; right:0; bottom:calc(100% + 6px); z-index:3; background:white; width:180px; max-width:calc(50vw - 44px); max-height:155px; overflow-y:auto; padding:12px; border:1px solid var(--company-line); border-radius:9px; overflow-wrap:anywhere; box-shadow:0 4px 16px #26384d24; }
.company-attachment-menu[open] summary { color:var(--company-purple); background:#eeeafa; border-radius:6px; }
.company-attachment-menu > div > strong { display:block; font-size:12px; font-weight:500; margin-bottom:8px; }
.company-attachment-menu > div > button { width:100%; padding:9px; font-size:13px; }
.company-detail [hidden] { display:none!important; }
@media(min-width:761px) { .company-system #mobileDock { display:none!important; } }
@media(max-width:1100px) and (min-width:761px) {
 .company-sidebar { width:170px; padding:24px 12px; }
 .company-topbar { margin-left:170px; }
 .company-system main.layout { margin-left:170px; padding:20px; }
 .company-topbar .spectrum-global-zone { display:none; }
 .company-overview { grid-template-columns:1.2fr 1fr; }
 .company-work-grid { grid-template-columns:1fr; }
 .company-stages button { gap:8px; padding:12px 8px; }
 .company-stage-icon { display:none; }
}
@media(max-width:760px) {
 .company-sidebar { display:none; }
 .company-topbar { margin:0; min-height:64px; padding:14px 16px; gap:10px; }
 .company-topbar h1 { font-size:18px; }
 .company-topbar .spectrum-global-zone,.company-topbar #newOrderBtn { display:none; }
 .company-topbar .topbar-actions { margin:0; padding:0; }
 .company-topbar #inboundDraftBtn { font-size:12px; padding:8px 10px; min-height:34px; }
 .company-system main.layout { margin:0; padding:16px 14px 100px; display:block; }
 .company-overview { grid-template-columns:1fr; gap:14px; }
 .company-month { padding:0; }
 .company-rate { margin:12px 0; }
 .company-rate > strong { font-size:34px; }
 .company-month-counts { padding:16px 0 8px; }
 .company-stages { grid-template-columns:1fr 1fr; padding:4px; margin:14px 0; }
 .company-stages button { padding:12px 8px; gap:7px; border:0; font-size:12px; }
 .company-stage-icon { width:22px; height:22px; }
 .company-stages b { font-size:20px; }
 .company-work-grid { grid-template-columns:1fr; gap:14px; }
 .company-card > header { padding:16px; }
 .company-card h3 { font-size:15px; }
 .company-system .company-task { padding:16px; gap:10px; grid-template-columns:1fr auto; }
 .company-task-reason { grid-row:2; grid-column:1; font-size:12px; }
 .company-task-link { grid-column:2; grid-row:1/3; font-size:12px; }
 .company-task strong { font-size:14px; }
 .company-system .spectrum-orders .board-head { padding:14px; }
 .company-system .spectrum-orders .filters { gap:8px; }
 .company-system .spectrum-orders .search-control { flex:1 1 100%; }
 .company-system #responsibilityTabs { flex:1 1 auto; }
 .company-system #responsibilityTabs button { min-width:0; padding:10px 8px; font-size:12px; }
 .company-system .mobile-order-filters { margin:0; }
 .company-system .spectrum-orders .orders-list { padding:8px; }
 body.company-system #alertsList .pending-page-header { margin:0 0 14px; }
 .company-system #alertsList { padding:12px; }
 body.company-system #alertsList .pending-page-header h2 { font-size:20px; }
 body.company-system #alertsList .pending-scope button { font-size:12px; padding:8px 12px; }
 body.company-system #alertsList .pending-categories button { padding:12px; font-size:13px; }
 body.company-system #alertsList .pending-action-row { padding:16px; font-size:13px; gap:9px; }
 body.company-system #alertsList .pending-action-row strong { font-size:15px; }
 .company-tool-grid { grid-template-columns:1fr; gap:14px; }
 .company-tool-grid article { padding:20px; }
 .company-page-heading h2 { font-size:22px; }
 .company-page-heading p { font-size:13px; }
 .company-system #drawer.company-detail { width:100%; max-width:100%; top:0; right:0; bottom:0; height:100dvh; border-radius:0; }
 .company-system #drawer.company-detail .drawer-panel { width:100%; max-width:100%; height:100dvh; max-height:100dvh; inset:0; margin:0; border-radius:0; }
 .company-system #drawer.company-detail #drawerContent { padding:0 14px 20px; }
 .company-system #drawer.company-detail .drawer-panel { padding-bottom:calc(88px + env(safe-area-inset-bottom)); }
 .company-detail .attachment-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
 .company-detail .attachment-preview-trigger { height:110px; }
 .company-detail .attachment-kind-field { flex:1 1 150px; }
 .company-detail .attachment-pick { flex:0 1 120px; }
 .company-detail .attachment-meta { font-size:11px; }
 .company-detail-head { padding:16px 0; gap:10px; }
 .company-detail-head h2 { font-size:22px; }
 .company-detail-head p { font-size:12px; }
 .company-detail .detail-tabs button { font-size:12px; padding:10px 12px; }
 .company-detail-actions { padding:12px 14px calc(12px + env(safe-area-inset-bottom)); }
 .company-primary-action { flex:1; }
 .company-primary-action button { width:100%; font-size:14px; }
 .company-system:has(#drawer:not(.hidden)) #mobileDock { display:none!important; }
 .company-system #mobileDock { left:12px; right:12px; width:auto; bottom:calc(10px + env(safe-area-inset-bottom)); padding:6px; min-height:64px; border-radius:20px; }
 .company-system #mobileDock button { font-size:12px; min-width:0; }
 .company-detail .attachment-meta { font-size:12px; line-height:1.5; }
 .company-detail .revision-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
}
@media(prefers-reduced-motion:reduce) { .company-system * { scroll-behavior:auto!important; animation:none!important; transition:none!important; } }

/* Workbench information hierarchy: business data before promotional copy. */
.company-stage-arrow { margin-left:auto; }
.company-lead { flex-direction:column; align-items:start!important; gap:5px!important; min-width:0; }
.company-lead strong { font-size:15px; }
.company-lead span { overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.company-task-columns { display:grid; grid-template-columns:minmax(150px,1.05fr) minmax(180px,1.25fr) 80px 90px; gap:16px; padding:11px 20px; background:#f6f7fc; color:#68778c; font-size:12px; }
.company-task-owner { display:flex; align-items:center; gap:7px; font-size:13px; color:#52617a; min-width:0; }
.company-team-columns { display:grid; grid-template-columns:1fr 45px 65px 45px; gap:8px; padding:10px 20px; background:#f6f7fc; color:var(--company-muted); font-size:12px; }
.company-team .company-warning { color:#ac5e19; }
.company-system .company-shipment.is-overdue time { color:#b34b42; font-weight:600; }
.company-system .company-shipment.is-due time { color:#986322; }
@media(min-width:761px) and (max-width:1250px) {
 .company-task-columns,.company-system .company-task { grid-template-columns:1fr 1.2fr 70px 80px; gap:10px; }
}
@media(max-width:760px) {
 .company-task-columns { display:none; }
 .company-system .company-task { grid-template-columns:1fr auto; gap:8px; font-size:14px; }
 .company-task-reason { grid-column:1; grid-row:2; font-size:14px; }
 .company-task-owner { grid-column:1; grid-row:3; font-size:12px; }
 .company-task-owner::before { content:'负责人'; color:var(--company-muted); }
 .company-task-owner .company-owner-mark { display:none; }
 .company-task-link { grid-column:2; grid-row:1/4; }
 .company-lead { flex:1; }
 .company-team button,.company-team-columns { grid-template-columns:1fr 40px 60px 40px; }
}

/* Shared business primitives: visual ownership stays in this stylesheet. */
/* Pointer feedback uses color and border; content remains anchored. */
body.company-system button:not(:disabled):hover { transform:none; }
@media (hover:hover) and (pointer:fine) {
 body.company-system :is(button,.order-task-strip) { transition:transform 160ms ease,background-color 160ms ease,border-color 160ms ease; }
 body.company-system button:not(:disabled):hover { transform:none; }
 body.company-system .order-task-strip:hover { transform:none; }
 body.company-system :is(.company-task,.company-shipment,.pending-action-row):hover { background:var(--company-accent-soft); }
 body.company-system button:not(:disabled):active,body.company-system .order-task-strip:active { transform:translateY(0); }
 /* Image previews and inline controls stay anchored to their content. */
 body.company-system :is(.attachment-preview-trigger,#searchClearBtn):hover { transform:none; }
}
@media (prefers-reduced-motion:reduce) {
 body.company-system button:not(:disabled):hover,body.company-system .order-task-strip:hover { transform:none!important; }
}
body.company-system :is(button,input,select,textarea) { font-family:inherit; }
body.company-system :is(input,select,textarea) { color:var(--company-ink); background:var(--company-surface); border-color:var(--company-line); font-weight:400; box-shadow:none; }
body.company-system :is(input,textarea)::placeholder { color:var(--company-muted); opacity:1; }
body.company-system :is(.primary,.flow-btn),
body.company-system dialog[data-spectrum-workflow] .dialog-actions :is(.primary,.flow-btn) {
 background:var(--company-purple)!important; border-color:var(--company-purple); color:white; box-shadow:none!important; font-weight:600;
}
body.company-system :is(.ghost,.icon-btn) { box-shadow:none; background:var(--company-surface); color:var(--company-ink); border-color:var(--company-line); }
body.company-system :is(.danger,button.danger),
body.company-system #confirmDialog[data-confirm-tone="danger"] #confirmOkBtn { background:var(--company-danger); color:white; border-color:var(--company-danger); box-shadow:none; }
body.company-system .company-card { box-shadow:0 4px 18px #202b3d06; }
body.company-system .company-card > header { border-bottom:1px solid var(--company-line); min-height:68px; box-sizing:border-box; }
body.company-system .company-month > header { border-bottom:0; }
body.company-system .company-task-columns,body.company-system .company-team-columns { color:var(--company-muted); background:var(--company-soft); }
body.company-system .company-task-link { font-weight:600; }
body.company-system .company-sidebar .spectrum-primary-nav button.active { background:var(--company-accent-soft); box-shadow:inset 3px 0 var(--company-purple); }
body.company-system .spectrum-orders .board-head { background:var(--company-surface); }
body.company-system .order-task-strip { background:var(--company-surface); box-shadow:0 3px 12px #202b3d04; border-color:var(--company-line); border-left-color:#b9b5e2; border-radius:10px; }
body.company-system .order-task-strip:hover { background:var(--company-soft); border-color:#b9b5e2; }
body.company-system .order-panorama-next { background:#f6f4fc; border-color:#e7e1f3; border-radius:9px; box-shadow:none; }
body.company-system .order-panorama-next strong { color:var(--company-purple); font-weight:600; }
body.company-system .order-number-text { font-size:12px; font-weight:500; color:var(--company-muted); }
body.company-system .order-client { font-size:15px; font-weight:650; color:var(--company-ink); }
body.company-system .badge { box-shadow:none; font-weight:500; line-height:1.5; border-radius:6px; }
body.company-system dialog:not(.feedback-dialog) { border:1px solid var(--company-line); border-radius:16px; box-shadow:0 24px 80px #17243d33; background:var(--company-surface); }
body.company-system dialog:not(.feedback-dialog)::before { display:none; }
body.company-system dialog:not(.feedback-dialog)::backdrop { background:rgba(26,36,57,.38); backdrop-filter:none; }
body.company-system dialog[data-spectrum-workflow] > :is(form,.report-box,.report-order-box,.inbound-draft-box,.admin-dialog-box,.preview-box,.confirm-box) {
 border-top:0!important; background:var(--company-surface);
}
body.company-system dialog[data-spectrum-workflow]:not(.feedback-dialog) .dialog-head,
body.company-system #drawer.company-detail .drawer-head {
 background:#faf9fd!important; border-bottom:1px solid var(--company-line); box-shadow:none; backdrop-filter:none;
}
body.company-system dialog[data-spectrum-workflow] .dialog-head h2 { padding-left:0; font-size:20px; font-weight:600; color:var(--company-ink); }
body.company-system dialog[data-spectrum-workflow] .dialog-head h2::before { display:none; }
body.company-system dialog:not(.feedback-dialog) .dialog-actions { background:var(--company-soft); border-color:var(--company-line); box-shadow:none; backdrop-filter:none; }
body.company-system :is(#orderForm,#revisionForm,#shipForm,#reshipForm) .form-grid-body > label { background:transparent; border:0; box-shadow:none; border-radius:0; padding:0; color:#526077; font-size:13px; font-weight:500; }
body.company-system dialog :is(input,select,textarea) { font-size:14px; line-height:1.5; }
body.company-system dialog .form-hint { color:var(--company-muted); font-weight:400; }
body.company-system #orderForm .form-grid-body { background:#fff; gap:18px 22px; }
body.company-system .company-form-section { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:6px 16px; grid-column:1/-1; padding:17px 0 0; margin-top:4px; border-top:1px solid var(--company-line); }
body.company-system .company-form-section h3 { display:flex; align-items:center; gap:8px; margin:0; font-size:15px; font-weight:650; color:var(--company-ink); }
body.company-system .company-form-section h3::before { content:''; width:3px; height:14px; border-radius:2px; background:var(--company-purple); }
body.company-system .company-form-section p { margin:0; font-size:12px; color:var(--company-muted); }
body.company-system dialog .form-grid-body > label :is(input,select,textarea) { margin-top:7px; border-radius:8px; border:1px solid #dfe3eb; background:#fcfcfe; }
body.company-system #orderForm .recognize-box { padding:16px; border:1px solid #e4def2; border-radius:11px; background:#f8f6fc; box-shadow:none; }
body.company-system #orderForm .recognize-box textarea { margin-top:8px; border-color:#ded8ec; background:#fff; font-size:14px; }
body.company-system #orderForm .recognize-actions { gap:10px; }
body.company-system #orderForm :is(.responsibility-assignment-editor,.rare-fields) { border:1px solid var(--company-line); border-radius:10px; background:#f8f9fb; box-shadow:none; }
body.company-system #orderForm .responsibility-assignment-editor legend { color:var(--company-ink); font-size:13px; font-weight:600; }
body.company-system #orderForm .system-date-field { color:var(--company-muted); background:#f2f4f7; }
body.company-system #confirmDialog .confirm-workflow-body { background:#fff; padding:24px; }
body.company-system #confirmDialog #confirmMessage { font-size:15px; line-height:1.8; color:var(--company-ink); margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
body.company-system dialog .dialog-actions > button { min-height:42px; min-width:88px; border-radius:8px; }
body.company-system :is(#revisionForm,#shipForm,#reshipForm) .form-grid-body { background:#fff; gap:16px 18px; }
body.company-system :is(#revisionForm,#shipForm,#reshipForm) .form-grid-body > :is(fieldset,.revision-target-fields,.add-on-fields,.reship-items-field,.upload-field) { padding:14px; border:1px solid var(--company-line); border-radius:10px; background:#f8f9fb; box-shadow:none; }
body.company-system :is(#revisionForm,#shipForm,#reshipForm) .form-hint { margin:0; padding:10px 12px; border-radius:7px; color:var(--company-muted); background:#f5f6f9; font-size:12px; line-height:1.65; }
body.company-system :is(#revisionForm,#shipForm,#reshipForm) input[readonly] { color:var(--company-muted); background:#f2f4f7; }
body.company-system :is(#revisionForm,#shipForm,#reshipForm) .file-zone { padding:14px; min-height:56px; border:1px dashed #b9b1d7; background:#f8f7fc; color:#6a6083; border-radius:9px; font-size:13px; }
body.company-system :is(#revisionForm,#shipForm,#reshipForm) .file-zone.dragover { background:#eeebfa; border-color:var(--company-purple); }
body.company-system :is(#revisionForm,#shipForm,#reshipForm) .file-picker { border:1px solid #dfe3eb; border-radius:8px; background:#fff; box-shadow:none; }
body.company-system :is(#revisionForm,#shipForm,#reshipForm) .file-picker-button { color:var(--company-purple); background:#efecf9; border-radius:6px; font-weight:600; box-shadow:none; }
body.company-system :is(#revisionForm,#shipForm,#reshipForm) .file-picker-summary { color:var(--company-muted); font-size:12px; overflow-wrap:anywhere; }
body.company-system #revisionForm .revision-type-display { display:block; margin-top:7px; padding:10px 12px; min-height:42px; box-sizing:border-box; border:1px solid #e0d9ef; border-radius:8px; background:#f4f1fb; color:var(--company-purple); font-size:14px; font-weight:600; }
body.company-system #reshipForm .reship-cause-card { padding:12px 10px 12px 32px; transform:none; border:1px solid #e1e5ed; border-radius:9px; background:#fff; box-shadow:none; color:var(--company-ink); }
body.company-system #reshipForm .reship-cause-card input { top:16px; margin:0; }
body.company-system #reshipForm .reship-cause-card:has(input:checked) { border-color:#a59acb; background:#f2effa; box-shadow:inset 0 0 0 1px #d5cdec; }
body.company-system #reshipForm .reship-cause-card > span { color:var(--company-ink); font-weight:600; font-size:14px; }
body.company-system #reshipForm .reship-cause-card > small { color:var(--company-muted); font-size:12px; }
body.company-system #reshipForm :is(.reship-cause-card input,.reship-item-option input) { accent-color:var(--company-purple); }
body.company-system #reshipForm .reship-item-option { border:1px solid #e1e5ed; border-radius:8px; background:#fff; box-shadow:none; }
body.company-system #reshipForm .reship-item-option:has(input:checked) { background:#f2effa; border-color:#b7add5; }
body.company-system #shipForm .ship-checklist { background:#f8f9fb; border:1px solid var(--company-line); border-radius:10px; box-shadow:none; }
body.company-system #shipForm .ship-check-item { border:1px solid #e1e5ed; border-radius:8px; background:#fff; box-shadow:none; }
body.company-system #shipForm .ship-check-item:has(input:checked) { background:#edf7f2; border-color:#b9dacf; }
body.company-system #shipForm .ship-check-item:is(.unresolved,.is-incomplete):not(.resolved) { background:#fff7ec; border-color:#ecd9b7; }
body.company-system #shipForm .cod-ship-notice { background:#fff7ec; border:1px solid #ecd9b7; border-radius:8px; color:#85551d; box-shadow:none; }


body.company-system #drawer.company-detail .drawer-panel { background:var(--company-surface); box-shadow:0 24px 80px #17243d33; border:1px solid var(--company-line); }
body.company-system #drawer.company-detail .drawer-panel::before { height:3px; background:var(--company-purple); }
body.company-system #drawer.company-detail .drawer-shade { background:rgba(26,36,57,.38); backdrop-filter:none; }
body.company-system #drawer.company-detail #drawerContent { background:#fafbfc; }
body.company-system #drawer.company-detail .drawer-head h2 { font-size:18px; font-weight:600; }
body.company-system #drawer.company-detail :is(.detail-section,.summary-bento-card,.smart-summary-card,.revision-entry,.reship-entry) { background:var(--company-surface); box-shadow:none; border-color:var(--company-line); }
body.company-system #drawer.company-detail :is(.detail-section,.summary-bento-card)::before { display:none; }
body.company-system #drawer.company-detail .summary-field { padding-top:10px; padding-bottom:10px; border-bottom:1px solid #edf0f5; }
body.company-system .company-next { border-left:3px solid var(--company-purple); }
body.company-system #drawer.company-detail .smart-summary-card { font-size:13px; line-height:1.6; }
body.company-system #drawer.company-detail .smart-summary-card :is(.smart-summary-next,.smart-summary-foot) { font-size:13px; }
body.company-system .company-check { color:var(--company-teal); font-size:13px; }
body.company-system .company-detail .detail-tabs { border:1px solid var(--company-line); box-shadow:none; }
body.company-system .company-detail .detail-tabs button { background:transparent; color:var(--company-muted); border:1px solid transparent; font-weight:500; }
body.company-system #drawer.company-detail .detail-tabs button.active { background:#fff!important; border-color:#e3dff1!important; color:var(--company-purple)!important; font-weight:650; box-shadow:0 2px 6px #3428590c!important; }
body.company-system .company-detail .attachment-group { border:0; background:transparent; box-shadow:none; }
body.company-system .company-detail .attachment-card { border:1px solid var(--company-line); border-radius:10px; background:var(--company-surface); box-shadow:0 3px 10px #202b3d06; }
body.company-system #mobileDock { background:var(--company-surface); border-color:var(--company-line); box-shadow:0 6px 24px #24334b12; }
body.company-system #mobileDock .mobile-dock-primary { background:var(--company-purple); box-shadow:none; }
@media(max-width:760px) {
 body.company-system dialog[data-spectrum-workflow] .dialog-head h2 { font-size:18px; }
 body.company-system dialog :is(input,select,textarea) { font-size:16px; }
 body.company-system .company-detail .detail-tabs button { min-height:44px; }
}

/* Fine hover feedback for controls that open a page, order, or person detail. */
@media (hover:hover) and (pointer:fine) {
 body.company-system :is(.company-stages button,.company-month-footer button,.company-task,.company-shipment,.company-team button,.company-tool-grid > button) {
  transition:background-color 150ms ease,border-color 150ms ease,box-shadow 150ms ease,transform 150ms ease;
 }
 body.company-system .company-stages button:hover {
  background:#f8f7fc; box-shadow:inset 0 -2px #d8d2ec; transform:translateY(-1px);
 }
 body.company-system .company-month-footer button:hover,
 body.company-system .company-task:hover,
 body.company-system .company-shipment:hover,
 body.company-system .company-team button:hover {
  background:#f5f4fa; transform:translateY(-1px);
 }
 body.company-system .company-task:hover { box-shadow:inset 3px 0 #aaa0d0; }
 body.company-system .company-tool-grid > button:hover {
  border-color:#c9c2e2; background:#fbfaff; box-shadow:0 6px 18px #34285910; transform:translateY(-2px);
 }
}
@media (prefers-reduced-motion:reduce) {
 body.company-system :is(.company-stages button,.company-month-footer button,.company-task,.company-shipment,.company-team button,.company-tool-grid > button) { transition:none!important; }
}

/* The order drawer separates navigation, preview, and secondary actions on hover. */
@media (hover:hover) and (pointer:fine) {
 body.company-system #drawer.company-detail .detail-tabs button:not(.active):hover {
  color:var(--company-purple); background:#f7f6fb; border-color:#e8e4f1; transform:translateY(-1px);
 }
 body.company-system #drawer.company-detail .attachment-card {
  transition:border-color 150ms ease,box-shadow 150ms ease,transform 150ms ease;
 }
 body.company-system #drawer.company-detail .attachment-card:hover {
  border-color:#c8c1de; box-shadow:0 7px 18px #34285912; transform:translateY(-2px);
 }
 body.company-system #drawer.company-detail .attachment-preview-trigger:hover {
  border-color:#aaa0d0; background:#f2f0f8;
 }
 body.company-system #drawer.company-detail .company-detail-actions summary:hover {
  color:var(--company-purple); background:#f4f2fa;
 }
 body.company-system #drawer.company-detail .company-attachment-menu summary:hover,
 body.company-system #drawer.company-detail .mobile-attachment-menu summary:hover {
  color:var(--company-purple); background:#f3f1f9; border-radius:7px;
 }
}
body.company-system #drawer.company-detail :is(.detail-tabs button,.attachment-preview-trigger,.company-detail-actions summary,.company-attachment-menu summary,.mobile-attachment-menu summary):focus-visible {
 outline:3px solid #8c7ee6; outline-offset:2px;
}
@media (prefers-reduced-motion:reduce) {
 body.company-system #drawer.company-detail .attachment-card { transition:none!important; }
}

/* Report drill-downs feel interactive without making the summary cards noisy. */
body.company-system #companyReports #reportView .ledger-disclosure,
body.company-system #companyReports #reportView .ledger-person {
 transition:border-color 150ms ease,background-color 150ms ease;
}
body.company-system #companyReports #reportView .ledger-disclosure > summary,
body.company-system #companyReports #reportView .ledger-person > summary {
 cursor:pointer; transition:color 150ms ease,background-color 150ms ease;
}
body.company-system #companyReports #reportView .ledger-disclosure[open] { border-color:#d4cde8; background:#fbfaff; }
body.company-system #companyReports #reportView .ledger-person[open] { border-color:#d4cde8; }
body.company-system #companyReports #reportView .ledger-order,
body.company-system #companyReports #reportView .ledger-active-toggle,
body.company-system #companyReports #reportView .ledger-tabs button {
 transition:background-color 150ms ease,border-color 150ms ease,box-shadow 150ms ease,transform 150ms ease;
}
body.company-system #companyReports #reportView :is(.ledger-disclosure > summary,.ledger-person > summary):focus-visible,
body.company-system #companyReports #reportView :is(.ledger-order,.ledger-active-toggle,.ledger-tabs button):focus-visible {
 outline:3px solid #8c7ee6; outline-offset:2px;
}
@media (hover:hover) and (pointer:fine) {
 body.company-system #companyReports #reportView .ledger-disclosure > summary:hover,
 body.company-system #companyReports #reportView .ledger-person > summary:hover { color:var(--company-purple); background:#f4f2fa; }
 body.company-system #companyReports #reportView .ledger-order:hover,
 body.company-system #companyReports #reportView .ledger-active-toggle:hover {
  border-color:#c7bfdf; background:#f4f2fb; box-shadow:0 4px 12px #3428590d; transform:translateY(-1px);
 }
 body.company-system #companyReports #reportView .ledger-tabs button:not([aria-selected="true"]):hover {
  color:var(--company-purple); background:#f8f7fc; border-color:#e6e1f0;
 }
}
@media (prefers-reduced-motion:reduce) {
 body.company-system #companyReports #reportView :is(.ledger-disclosure,.ledger-person,.ledger-order,.ledger-active-toggle,.ledger-tabs button) { transition:none!important; }
}

/* Final cross-page pass: controls, status feedback, and secondary dialogs. */
body.company-system :is(input,select,textarea):focus-visible {
 outline:3px solid #8c7ee655; outline-offset:1px; border-color:#9689c9!important; box-shadow:0 0 0 1px #9689c933!important;
}
body.company-system button:disabled,
body.company-system input:disabled,
body.company-system select:disabled,
body.company-system textarea:disabled {
 cursor:not-allowed; opacity:.58; filter:saturate(.7);
}
body.company-system :is(.ghost,.icon-btn,.company-text-button,.company-report-switch button,.company-report-actions button,.company-operations-bottom button) {
 transition:background-color 150ms ease,border-color 150ms ease,color 150ms ease,box-shadow 150ms ease,filter 150ms ease;
}
@media (hover:hover) and (pointer:fine) {
 body.company-system :is(.ghost,.icon-btn):not(:disabled):hover { border-color:#cfc9df; background:#f7f6fb; color:var(--company-purple); }
 body.company-system :is(.primary,.flow-btn):not(:disabled):hover { filter:brightness(1.06); }
 body.company-system :is(.danger,button.danger):not(:disabled):hover { filter:brightness(1.06); }
 body.company-system .company-report-tools { border-color:#dce1eb; background:#fff; box-shadow:0 4px 14px #202b3d08; }
 body.company-system .company-report-switch button:not([aria-pressed="true"]):hover { color:var(--company-purple); background:#f7f6fb; }
 body.company-system #companyReportRefresh:hover,
 body.company-system #companyReports .company-report-actions .ghost:hover { border-color:#c9c2de; color:var(--company-purple); background:#f7f6fb; }
 body.company-system #operationsForm fieldset:hover { border-color:#d4d9e4; }
 body.company-system .company-operations-days label:hover { border-color:#c9c2de; background:#f8f7fc; }
 body.company-system dialog .dialog-actions .ghost:hover { border-color:#c9c2de; color:var(--company-purple); background:#f7f6fb; }
}
body.company-system #previewDialog .preview-box { background:#f5f6f8; }
body.company-system #previewDialog .preview-box img { border-radius:8px; }
body.company-system #reportOrderDialog .report-order-box { background:#fff; }
body.company-system #confirmDialog .confirm-box { background:#fff; }
body.company-system #confirmDialog .dialog-actions { border-top:1px solid var(--company-line); }
body.company-system #feedbackDialog { border:0; border-radius:12px; box-shadow:0 12px 36px #17243d24; }
@media (prefers-reduced-motion:reduce) {
 body.company-system :is(.ghost,.icon-btn,.company-text-button,.company-report-switch button,.company-report-actions button,.company-operations-bottom button) { transition:none!important; }
}

/* Admin records share the workspace surface and use color only for meaning. */
body.company-system .admin-dialog-box { background:#fff; }
body.company-system .admin-dialog .dialog-kicker { color:var(--company-purple); letter-spacing:.04em; }
body.company-system .admin-dialog .dialog-note { padding:12px 14px; margin:14px 0; border-left:3px solid #b9afd9; border-radius:7px; background:#f7f6fb; color:#596579; line-height:1.7; }
body.company-system .admin-dialog .admin-list { gap:8px; }
body.company-system .admin-dialog .admin-row { align-items:center; padding:14px 16px; border:1px solid var(--company-line); border-left:3px solid #b9afd9; border-radius:10px; background:#fff; box-shadow:0 3px 12px #202b3d05; }
body.company-system .admin-dialog .admin-row.recycle-row { border-left-color:#c19048; background:#fffdfa; }
body.company-system .admin-dialog .admin-row.delivery-row { border-left-color:#8b83bd; background:#fff; }
body.company-system .admin-row-main > strong { color:var(--company-ink); font-weight:650; }
body.company-system .admin-row-main > span { color:#526077; }
body.company-system .admin-row-main > small { color:var(--company-muted); }
body.company-system .admin-dialog .status-chip { border-radius:6px; font-weight:600; }
body.company-system .admin-dialog .staff-admin-section { padding-top:15px; margin-top:18px; border-top:1px solid var(--company-line); }
body.company-system .admin-dialog .staff-admin-section h3 { margin:0 0 12px; color:var(--company-ink); font-size:15px; }
body.company-system .admin-dialog .staff-admin-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:10px; }
body.company-system .admin-dialog .staff-admin-summary > * { border:1px solid var(--company-line); border-radius:9px; background:#f8f9fb; padding:12px; }
body.company-system .admin-dialog .delivery-health-panel { padding:14px; border:1px solid var(--company-line); border-radius:10px; background:#f8f9fb; }
body.company-system .admin-dialog .admin-empty { border-color:#d9dfe7; background:#f8f9fb; color:var(--company-muted); }
@media(max-width:760px) { body.company-system .admin-dialog .admin-row { align-items:flex-start; } }

/* Detail history and money use calm surfaces; red remains reserved for real risk. */
body.company-system #drawer.company-detail .revision-entry { grid-template-columns:minmax(0,1fr) auto; gap:14px; padding:15px 16px; border:1px solid #e3e0ef; border-left:3px solid #8d82be; border-radius:10px; background:#fff; }
body.company-system #drawer.company-detail .revision-entry strong { color:#4f476d; font-weight:650; }
body.company-system #drawer.company-detail .revision-entry p { color:#596579; line-height:1.65; }
body.company-system #drawer.company-detail .reship-entry { border:1px solid #eadfd1; border-left:3px solid #bd8c4d; border-radius:10px; background:#fffdfa; }
body.company-system #drawer.company-detail .reship-btn { background:#96603c; border-color:#96603c; }
body.company-system #drawer.company-detail .timeline-item { border:1px solid var(--company-line); border-left:3px solid #b9afd9; border-radius:9px; background:#fff; box-shadow:none; }
body.company-system #drawer.company-detail .timeline-item:is(.add_on,.size_change,.template_change) { background:#fff; box-shadow:none; }
body.company-system #drawer.company-detail .timeline-item strong { color:var(--company-ink); }
body.company-system #drawer.company-detail .timeline-item p { color:#586579; line-height:1.65; }
body.company-system #drawer.company-detail .cod-detail-value { border:1px solid #e1e6ed; border-radius:9px; background:#fff; }
body.company-system #drawer.company-detail .cod-detail-value.collected { border-color:#cfe3d9; background:#f2f8f4; }
body.company-system #drawer.company-detail .cod-detail-value strong { color:var(--company-ink); }
body.company-system #drawer.company-detail .cod-confirm-btn { border-radius:8px; box-shadow:none; }
body.company-system #drawer.company-detail .permission-banner { border-radius:9px; box-shadow:none; }

/* Filter controls and navigation carry the same restrained active state. */
body.company-system .spectrum-orders .board-head { background:#fff; border-bottom:1px solid var(--company-line); }
body.company-system .spectrum-orders .filters .search-control { border:1px solid var(--company-line); border-radius:9px; background:#fff; box-shadow:none; }
body.company-system .spectrum-orders .filters .search-control:focus-within { border-color:#a69bc9; box-shadow:0 0 0 3px #5850bd12; }
body.company-system .spectrum-orders .filters > select { min-height:42px; border:1px solid var(--company-line); border-radius:8px; background:#fff; color:#455268; }
body.company-system #responsibilityTabs { padding:3px; border:1px solid var(--company-line); border-radius:9px; background:#f5f6f8; gap:2px; }
body.company-system #responsibilityTabs button { min-height:36px; border:1px solid transparent; border-radius:7px; color:#667287; background:transparent; box-shadow:none; }
body.company-system #responsibilityTabs button[aria-pressed="true"],body.company-system #responsibilityTabs button.active { color:var(--company-purple); background:#fff; border-color:#e4e0ef; box-shadow:0 1px 3px #202b3d0a; }
body.company-system #mobileDock { background:#fff; border:1px solid #e0e4eb; box-shadow:0 8px 26px #202b3d12; }
body.company-system #mobileDock button { color:#667287; }
body.company-system #mobileDock button.active { color:var(--company-purple); background:#f2effa; border-radius:14px; }
body.company-system #mobileDock .mobile-dock-primary { color:#fff; background:var(--company-purple); border:3px solid #fff; box-shadow:0 5px 16px #5850bd30; }
body.company-system .company-sidebar .spectrum-primary-nav button:hover { background:#f6f5fa; }
body.company-system .company-sidebar .spectrum-primary-nav button.active:hover { background:var(--company-accent-soft); }
