@charset "UTF-8";
:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#28342f;background:#f6f5f1;font-synthesis:none;--wine:#722f3e;--ink:#28342f;--muted:#68736d;--line:#e4e6de;--green:#245b46;--amber:#8b5a16}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.6}button,input,select{border-radius:7px}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #ba7888;outline-offset:3px}button{border:1px solid var(--line);background:#fff;color:var(--ink)}input,select{border:1px solid #d8ddd4;background:#fff;color:var(--ink);padding:11px 12px;min-height:42px;max-width:100%}input::placeholder{color:#858c87}h1,h2,h3,h4,p{margin-top:0}h1,h2{letter-spacing:-.035em}h1{font-size:32px;margin-bottom:8px}h2{font-size:24px}h3{font-size:14px}p{line-height:1.6}.brand{display:flex;align-items:center;gap:11px}.brand-mark{height:42px;width:42px;border:1px solid #f5e8d66b;border-radius:11px;display:grid;place-items:center;font-family:Georgia,serif;font-size:16px;color:#fff7e9;letter-spacing:-1px;flex-shrink:0}.brand-name{font-family:Georgia,serif;font-size:16px;color:#fff8ee}.brand-name small{display:block;font-family:"Segoe UI",sans-serif;font-size:9px;letter-spacing:2px;color:#dec9cb;margin-top:5px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.6px;color:var(--wine);margin-bottom:10px}.small-text,.section-caption{font-size:12px;color:var(--muted)}.primary{background:var(--wine);color:#fff;border:0;padding:13px 18px;font-weight:600}.secondary{padding:10px 14px;background:#fff;font-size:12px;font-weight:600}.text-button{border:0;background:none;text-decoration:underline;text-underline-offset:4px;font-size:12px;padding:6px 4px}.error{padding:14px 16px;background:#fbecea;color:#8c2e27;border-radius:7px;font-size:13px}.notice{padding:12px;background:#edf4ec;border-radius:7px;font-size:13px}.pill{display:inline-flex;align-items:center;padding:5px 8px;font-size:10px;line-height:1.2;font-weight:650;border-radius:5px;white-space:nowrap;background:#edf0e9;color:#4a5850}.pill.green{background:#e8f2eb;color:#24613f}.pill.amber{background:#fbefda;color:#805611}.pill.neutral{background:#f0edf4;color:#675274}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.startup{padding:15vh 10vw;color:var(--muted)}
/* Sign-in */
.login-layout{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.login-story{background:var(--wine);color:#f9f0e5;padding:48px 64px;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh}.login-story .eyebrow{color:#ddbdba}.login-story h1{font-family:Georgia,serif;font-weight:400;font-size:58px;line-height:1.12;margin:25px 0}.login-story p:not(.eyebrow){max-width:360px;color:#e8d4d1;font-size:16px}.story-foot{font-size:10px;letter-spacing:2px;color:#cfaaa9}.login-side{display:grid;place-items:center;padding:50px 30px}.login-card{width:100%;max-width:365px}.login-card h2{font-size:32px;margin:14px 0}.login-card>p{color:var(--muted);font-size:14px}.login-card label{display:block;font-size:12px;font-weight:650;margin:20px 0 8px}.login-card input{width:100%}.login-card .primary{display:flex;width:100%;justify-content:space-between;margin:24px 0}.login-card .small-text{margin-top:25px}.login-footer{font-size:11px;color:#7c827b;margin-top:50px;padding-top:20px;border-top:1px solid var(--line)}.setup-note{font-size:13px;padding:18px;background:#eeeae0;border-radius:8px;line-height:1.6}
/* Workspace shell */
.desk-layout{display:grid;grid-template-columns:228px minmax(0,1fr);min-height:100vh}.sidebar{background:#263d34;color:#f6f3e9;padding:29px 21px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.sidebar .brand-mark{background:#ffffff0b;border-color:#7b8e7e}.sidebar .brand-name{font-size:14px}.sidebar .brand-name small{color:#a8beb0}.nav-heading{font-size:9px;color:#9db3a5;letter-spacing:1.5px;margin:48px 10px 15px}.nav-current,.nav-upcoming{font-size:12px;padding:13px 11px;border-radius:7px}.nav-current{background:#f1f1e817;color:#fff;border:1px solid #eeeeee17}.nav-current>span,.nav-upcoming>span{font-size:17px;display:inline-block;width:25px}.nav-upcoming{color:#adbbb2;margin-top:10px}.nav-upcoming small{display:block;margin:7px 0 0 29px;font-size:10px;color:#8ea298}.sidebar-bottom{margin-top:auto;font-size:11px;color:#d0dfd5;border-top:1px solid #ffffff17;padding:20px 3px 0}.sidebar-bottom p{font-size:10px;color:#91aa9a;margin:9px 0 0}.connection-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#a8c29f;margin-right:7px}.workspace{min-width:0}.topbar{height:67px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 32px;background:#fcfcf9;font-size:12px;color:#536259}.slash{color:#b5bbb4;padding:0 10px}.user-tools{display:flex;align-items:center;gap:16px;font-size:11px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:29px 32px 22px}.page-heading p:last-child{font-size:13px;color:var(--muted);margin:0}.page-heading .eyebrow{font-size:9px}.header-actions{display:flex;gap:9px;flex-shrink:0}.header-actions select{font-size:12px}.preview-banner{padding:9px 32px;background:#eee6d5;color:#635137;font-size:11px;font-weight:600}.stats{display:grid;grid-template-columns:repeat(4,1fr);margin:0 32px 26px;background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}.stats>div{padding:19px 22px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:7px}.stats>div:last-child{border-right:0}.stats span{font-size:11px;color:var(--muted)}.stats strong{font-size:29px;letter-spacing:-1px;font-weight:600}.stats small{font-size:10px;color:#8a918a}.stats .send-state{background:#f8f8f3}.stats .send-state strong{font-size:22px;color:#7a827a;line-height:1.6}.desk-error{margin:0 32px 20px}.inbox{display:grid;grid-template-columns:292px minmax(0,1fr);margin:0 32px;border:1px solid var(--line);border-radius:10px;background:#fff;min-height:570px;overflow:hidden}.queue{border-right:1px solid var(--line);background:#fafbf7;min-width:0}.queue-controls{padding:18px 16px 0}.queue-controls input,.queue-controls select{width:100%;font-size:11px;min-height:37px;padding:9px}.queue-controls select{margin-top:9px;background:#fafbf7}.queue-summary{display:flex;justify-content:space-between;gap:6px;font-size:9px;color:#7c857d;padding:19px 0 12px}.queue-card{display:block;border:0;border-top:1px solid var(--line);border-radius:0;text-align:left;width:100%;padding:17px 18px;background:transparent;position:relative}.queue-card.selected{background:#edf2e9}.queue-card.selected:before{content:"";position:absolute;top:0;bottom:0;left:0;width:3px;background:var(--green)}.queue-card:hover{background:#f0f3ec}.queue-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.queue-card-top>span:last-child{font-size:9px;color:#7c857c}.queue-card h3{font-size:12px;line-height:1.5;margin:13px 0 4px;overflow-wrap:anywhere}.queue-card p{font-size:11px;color:#687269;margin:0;overflow-wrap:anywhere}.queue-card-bottom{display:flex;gap:12px;font-size:10px;color:#64705f;margin-top:18px}.queue-message{padding:24px;font-size:13px;color:var(--muted)}.load-more{margin:20px 16px}.detail-empty{padding:100px 40px;text-align:center;color:var(--muted)}.detail-empty h2{font-size:20px;color:var(--ink)}.detail-empty p{font-size:13px;max-width:340px;margin:auto}.empty-symbol{font-size:32px;display:block;margin-bottom:20px}
/* Order detail */
#detail{min-width:0}.order-detail{padding:27px 25px 0}.detail-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.detail-heading .eyebrow{font-size:9px;margin-bottom:9px}.detail-heading h2{font-size:20px;line-height:1.3;margin-bottom:7px;overflow-wrap:anywhere}.order-subject{font-size:12px;color:var(--muted);margin-bottom:22px}.detail-heading>.pill{margin-top:4px}.order-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;padding:18px 0;margin:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}dt{font-size:10px;color:#7a837a;margin-bottom:6px}dd{margin:0;font-size:12px;font-weight:600;overflow-wrap:anywhere}.date-note{font-size:11px;color:var(--muted);margin-top:10px}.review-notice{background:#fcf7ed;border:1px solid #efe3ce;border-radius:7px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 14px;margin:20px 0}.review-notice strong{font-size:12px;color:#745016}.review-notice p{font-size:10px;color:#8e7446;margin:5px 0 0 15px}.review-dot{width:6px;height:6px;display:inline-block;background:#b37c2d;border-radius:50%;margin-right:9px}.read-only{font-size:8px;letter-spacing:.8px;color:#8f7954;white-space:nowrap}.review-columns{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:23px;padding-bottom:25px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:3px 0 10px}.section-heading h3{margin:0}.section-heading h3 span{font-size:10px;margin-left:4px;color:#7a817a;font-weight:400}.section-heading>span{font-size:10px;color:var(--muted)}.section-caption{font-size:10px;line-height:1.5;margin-bottom:16px}.item-card{border:1px solid var(--line);border-radius:7px;padding:13px;margin-bottom:11px}.item-card.attention{border-color:#e1bf82;background:#fffcf5}.item-top{display:flex;gap:10px;align-items:flex-start}.line-number{width:19px;height:19px;display:grid;place-items:center;background:#f0f2ec;border-radius:4px;font-size:9px;color:#6e796d;flex-shrink:0}.item-name{min-width:0;flex:1}.item-name h4{font-size:12px;line-height:1.4;margin:0 0 4px;overflow-wrap:anywhere}.item-name>span{font-size:9px;color:var(--muted)}.quantity{text-align:right;margin-left:auto}.quantity strong{display:block;font-size:18px;line-height:1.1;font-weight:600}.quantity span{font-size:8px;color:#8b938b}.catalog-name{font-size:10px;color:#637364;line-height:1.6;padding:10px 0;overflow-wrap:anywhere}.item-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}.item-bottom>span:last-child{font-size:9px;color:#859082}.item-card details{border-top:1px solid #e5e7de;margin-top:12px;padding-top:9px;font-size:10px;color:#727d70}.item-card details p{margin:8px 0 0}summary{cursor:pointer;line-height:1.5}blockquote{margin:10px 0;padding-left:9px;border-left:2px solid #c1cabb;font-size:11px;color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere}.email-panel{padding:16px;border:1px solid var(--line);border-radius:7px;background:#fdfdf9}.email-panel .section-heading{padding-bottom:12px;border-bottom:1px solid var(--line)}.email-panel h4{font-size:12px;line-height:1.5;margin:12px 0 5px;overflow-wrap:anywhere}.email-meta{font-size:9px;color:#84907f;margin-bottom:16px}.email-panel pre{font-family:"Segoe UI",sans-serif;font-size:11px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;max-height:430px;overflow-y:auto;margin:0;color:#4f5d4c}.discrepancies{margin-top:25px}.discrepancies>h3{font-size:13px;margin-bottom:17px}.issue{display:flex;gap:10px;padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid var(--line)}.issue>span{border:1px solid #ead8b7;color:#956c29;border-radius:50%;height:19px;width:19px;display:grid;place-items:center;font-size:9px;flex-shrink:0}.issue h4{font-size:11px;line-height:1.5;margin:0 0 5px}.issue p{font-size:10px;color:#7d8175;line-height:1.65;margin:0}.source-details{font-size:10px;color:#73816d;margin-top:18px}.source-details dl{display:grid;gap:12px}.source-details p{font-size:10px}.instructions{background:#f5f4ed;border-radius:7px;padding:15px;margin-top:20px}.instructions h3{font-size:12px}.instructions p{font-size:11px;white-space:pre-wrap}.review-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid var(--line);padding:19px 0}.review-footer strong{font-size:11px}.review-footer p{font-size:10px;color:var(--muted);margin:5px 0 0;max-width:330px}.review-footer button{padding:11px 14px;background:#edf0e9;font-size:11px;flex-shrink:0;color:#5d6b59}.workspace-footer{display:flex;justify-content:space-between;gap:20px;font-size:9px;color:#879081;padding:20px 32px 26px}
@media(min-width:1700px){.order-facts{grid-template-columns:repeat(4,minmax(0,1fr))}.inbox{grid-template-columns:320px minmax(0,1fr)}.order-detail{padding:32px 35px 0}.review-columns{gap:32px}.item-card{padding:16px}.email-panel pre{font-size:13px}.item-name h4{font-size:14px}.item-name>span,.catalog-name,.issue p{font-size:12px}.issue h4{font-size:13px}}
@media(max-width:1200px){.desk-layout{grid-template-columns:185px minmax(0,1fr)}.sidebar{padding:25px 15px}.sidebar .brand{gap:7px}.sidebar .brand-name{font-size:12px}.sidebar .brand-mark{width:33px;height:36px;font-size:13px}.topbar,.page-heading{padding-left:22px;padding-right:22px}.stats,.inbox{margin-left:22px;margin-right:22px}.inbox{grid-template-columns:240px minmax(0,1fr)}.review-columns{grid-template-columns:1fr}.order-detail{padding:23px 20px 0}.review-footer{align-items:flex-start;flex-direction:column}.stats>div{padding:17px 15px}.stats span{font-size:10px}.stats .send-state strong{font-size:18px}}
@media(max-width:900px){.desk-layout{grid-template-columns:1fr}.sidebar{position:static;height:auto;display:block;padding:17px 22px}.sidebar .brand-name{font-size:15px}.sidebar .brand-mark{width:38px;height:38px}.sidebar .nav-heading,.sidebar .nav-current,.sidebar .nav-upcoming,.sidebar-bottom{display:none}.review-columns{grid-template-columns:1fr}.user-tools>span{max-width:180px;overflow:hidden;text-overflow:ellipsis}.login-story{padding:40px}.login-story h1{font-size:43px}.inbox{grid-template-columns:235px minmax(0,1fr)}}
@media(max-width:640px){.topbar{padding:0 17px;height:55px;font-size:10px}.user-tools{gap:8px}.user-tools>span{max-width:110px;font-size:9px}.page-heading{display:block;padding:24px 17px 18px}.page-heading h1{font-size:28px}.header-actions{margin-top:18px}.header-actions select{flex:1}.stats{grid-template-columns:repeat(2,1fr);margin:0 17px 20px}.stats>div{border-bottom:1px solid var(--line);padding:14px}.stats>div:nth-child(2){border-right:0}.stats>div:nth-child(n+3){border-bottom:0}.stats strong{font-size:25px}.inbox{grid-template-columns:1fr;margin:0 17px}.queue{border-right:0;border-bottom:1px solid var(--line)}#queue-list{max-height:275px;overflow-y:auto}.queue-controls{padding:15px 15px 0}.queue-card{padding:15px}.queue-card h3{margin-top:10px}.queue-card-bottom{margin-top:10px}.detail-heading{display:block}.detail-heading>.pill{margin-bottom:16px}.order-detail{padding:22px 16px 0}.review-notice{align-items:flex-start}.read-only{margin-top:3px}.review-notice p{margin-left:0}.review-columns{gap:12px}.review-footer button{width:100%}.workspace-footer{padding:18px;display:block;line-height:1.8}.workspace-footer>span{display:block}.preview-banner{padding:10px 17px;line-height:1.6}.login-layout{grid-template-columns:1fr}.login-story{min-height:auto;padding:24px}.login-story h1{font-size:36px;margin:25px 0 15px}.login-story p:not(.eyebrow){font-size:13px}.login-story .eyebrow{margin-top:40px}.story-foot{display:none}.login-side{padding:35px 25px}.login-footer{margin-top:30px}}
@media(prefers-reduced-motion:no-preference){button{transition:background-color .12s ease}}
[hidden]{display:none!important}
/* Invoice-style review: full-width line table, evidence underneath. */
.items-panel{min-width:0;margin-bottom:24px}.catalog-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:10px}.catalog-toolbar p{font-size:11px;color:var(--muted);margin:0}.table-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:8px;max-width:100%}.order-table{border-collapse:collapse;width:100%;table-layout:fixed;min-width:560px;text-align:left;font-size:12px}.order-table th{background:#f2f4ee;font-size:10px;text-transform:uppercase;letter-spacing:.6px;color:#677466;padding:13px 12px;border-bottom:1px solid var(--line)}.order-table th:first-child{width:36px}.order-table th:nth-child(3){width:60px}.order-table th:nth-child(4){width:60px}.order-table th:last-child{width:132px}.order-table td{padding:14px 12px;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}.order-table tr:last-child td{border-bottom:0}.order-line.attention{background:#fff1f1}.order-line.attention td:first-child{box-shadow:inset 3px 0 #d93636}.order-line.attention .requested-cell{color:#a51f1f;font-weight:600}.order-line.edited{background:#f5f1fa}.order-line.edited td:first-child{box-shadow:inset 3px 0 #826399}.product-cell>strong{display:block;font-size:13px;margin-bottom:8px}.product-cell select{width:100%;font-size:11px;padding:8px;min-height:37px;white-space:nowrap;text-overflow:ellipsis}.qty-cell{text-align:right;font-variant-numeric:tabular-nums}.qty-cell strong{font-size:17px}.review-cell small{display:block;font-size:10px;margin-top:8px;color:#856123}.review-cell .text-button{display:block;margin-top:8px}.line-details{font-size:10px;color:var(--muted);margin-top:9px}.line-details p{margin:8px 0 0}.selection-notice{font-size:11px;line-height:1.6;padding:12px 0;color:#705b79}.selection-notice .text-button{font-size:11px}.evidence-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;margin:20px 0}.evidence-panel .discrepancies{margin-top:0}.evidence-panel .source-details,.evidence-panel .instructions{margin-top:0}.email-panel pre{max-height:220px}.review-notice{margin:16px 0}.order-facts{gap:14px}.product-cell .catalog-filter{width:100%;font-size:11px;margin-bottom:5px;min-height:32px;padding:7px}
@media(max-width:1200px){.evidence-panel{grid-template-columns:1fr}.inbox{grid-template-columns:220px minmax(0,1fr)}}
@media(max-width:640px){.inbox{grid-template-columns:1fr}.order-detail{padding-left:12px;padding-right:12px}.catalog-toolbar{align-items:flex-start}.order-table{min-width:540px}.evidence-panel{gap:18px}}
/* Dense worksheet: one compact row per item, notes on demand. */
.email-above{margin:0 0 18px;padding:14px;background:#fcfcf8}.email-above pre{max-height:none;overflow:visible;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.email-above h3{font-size:12px;margin-bottom:10px}.order-facts input,.order-facts select{width:100%;min-height:33px;padding:5px 7px;font-size:12px}.order-table .qty-cell{padding:0}.qty-cell input{border:0;background:transparent;border-radius:0;width:100%;min-height:36px;text-align:right;padding:5px;font-size:12px;appearance:textfield}.qty-cell input::-webkit-inner-spin-button{appearance:none}.order-table th:last-child{width:58px}.line-actions{white-space:nowrap}.remove-line{border:0;background:none;color:#9a403d;padding:2px;font-size:17px}.edit-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0 4px}.edit-actions>div{display:flex;align-items:center;gap:12px}.edit-actions .primary{padding:9px 13px;font-size:12px}@media(max-width:640px){.edit-actions{flex-wrap:wrap}.edit-actions>div{margin-left:auto}}
.product-cell .product-search{width:100%;min-height:36px;border:0;border-radius:0;background:transparent;padding:7px;font-size:12px;text-overflow:ellipsis}.product-cell .product-search:focus{outline:2px solid #287749;outline-offset:-2px;background:#fff}.product-results{position:fixed;z-index:1000;overflow:auto;overscroll-behavior:contain;border:1px solid #a7b5a5;background:#fff;box-shadow:0 7px 22px #203e3329;border-radius:4px;padding:3px;font-size:12px}.product-results [role=option]{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 9px;cursor:pointer;min-height:38px}.product-results [role=option]:hover,.product-results [aria-selected=true]{background:#e7f0e3;color:#214f39}.product-results [role=option] span{overflow-wrap:anywhere}.product-results small{color:#758170;white-space:nowrap}.no-products{padding:12px;color:#68736d}
.table-scroll{position:relative}
.order-detail{padding:20px 22px 0}.order-facts{grid-template-columns:repeat(4,minmax(0,1fr));padding:12px 0;margin-bottom:18px}.order-subject{margin-bottom:14px}.items-panel{margin-bottom:12px}.table-scroll{border-radius:0;border-color:#cbd4c9}.order-table{min-width:760px;font-size:12px}.order-table th{padding:8px;background:#edf1eb;border:1px solid #cbd4c9;letter-spacing:0;text-transform:none;font-size:11px}.order-table th:first-child{width:32px}.order-table th:nth-child(2){width:24%}.order-table th:nth-child(3){width:auto}.order-table th:nth-child(4){width:54px}.order-table th:nth-child(5){width:52px}.order-table th:nth-child(6){width:102px}.order-table th:last-child{width:32px}.order-table td{height:38px;padding:4px 8px;border:1px solid #dce2d9;vertical-align:middle}.order-table tr:last-child td{border-bottom:0}.order-table td.product-cell{padding:0}.product-cell select{border:0;border-radius:0;min-height:36px;background:transparent;font-size:12px;padding:7px;width:100%}.product-cell select:focus{outline:2px solid #287749;outline-offset:-2px;background:#fff}.requested-cell{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.qty-cell strong{font-size:13px;font-weight:500}.review-cell{white-space:nowrap}.review-cell .text-button{display:inline-block;margin:0 0 0 3px;padding:1px;font-size:15px}.order-table .pill{font-size:10px;padding:3px 5px}.line-info{border:0;background:transparent;padding:3px;color:#62765c;font-size:15px}.line-inspector{border:1px solid var(--line);border-top:0;padding:12px;font-size:12px;background:#fafbf8}.line-inspector p{margin:0}.catalog-toolbar{justify-content:flex-start;margin-bottom:8px;min-height:30px}.catalog-toolbar input{width:260px;min-height:30px;padding:6px 9px;font-size:11px}.catalog-toolbar>span{font-size:10px;color:var(--muted)}.catalog-toolbar .secondary{padding:6px 10px}.catalog-error{font-size:12px;padding:10px;margin-bottom:8px;background:#fff2d9;color:#76541b;border:1px solid #ebd3a7}.selection-notice{padding:8px 0;font-size:10px}.evidence-panel{grid-template-columns:1fr;gap:0;margin:6px 0}.evidence-panel>details{border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;padding:10px 0;margin:0;font-size:12px}.evidence-panel>details>summary{font-weight:600}.evidence-panel .issue:first-of-type{margin-top:14px}.review-footer{padding:12px 0}.review-footer>span{font-size:10px;color:var(--muted)}.stats>div{padding:12px 18px;gap:3px}.stats strong{font-size:24px}.stats small{display:none}.stats{margin-bottom:18px}.page-heading{padding-top:20px;padding-bottom:18px}.page-heading .eyebrow,.page-heading p:last-child{display:none}.page-heading h1{font-size:27px;margin:0}
@media(max-width:640px){.order-detail{padding:16px 10px 0}.order-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.order-table{min-width:700px}.catalog-toolbar input{width:190px}.catalog-toolbar{flex-wrap:wrap}}
.order-table th:last-child{width:58px}
.order-facts{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:640px){.order-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Readable staff-workspace typography, with no external font downloads. */
:root{font-family:"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,Arial,sans-serif;font-size:16px;--muted:#536159}
.topbar,.user-tools,.nav-current,.nav-upcoming{font-size:14px}
.nav-heading,.sidebar-bottom,.nav-upcoming small,.sidebar-bottom p{font-size:12px}
.nav-upcoming,.sidebar-bottom p{color:#c0d0c5}
.page-heading h1{font-size:30px}.detail-heading h2{font-size:25px}
.order-subject,.queue-card p{font-size:14px;color:#536159}
.queue-card h3{font-size:15px}.queue-card-bottom,.queue-summary,.queue-card-top>span:last-child{font-size:12px;color:#536159}
.queue-controls input,.queue-controls select,.header-actions select{font-size:15px;min-height:42px}
.stats span{font-size:14px;color:#536159}.stats strong{font-size:28px}
.pill,.order-table .pill{font-size:12px;padding:4px 6px}
.email-above h3,.section-heading h3{font-size:17px}
.email-above pre{font-family:inherit;font-size:16px;line-height:1.65;color:#334239}
dt{font-size:13px;color:#536159}dd{font-size:15px}
.order-facts input,.order-facts select{font-size:16px;min-height:40px;padding:7px 9px}
.section-heading>span,.catalog-toolbar>span,.selection-notice,.date-note{font-size:13px}
.order-table{font-size:15px;min-width:840px}
.order-table th{font-size:14px;color:#435348;padding:10px 8px}
.order-table th:nth-child(4){width:68px}.order-table th:nth-child(5){width:55px}.order-table th:nth-child(6){width:116px}
.order-table td{height:46px}
.product-cell .product-search,.qty-cell input{font-size:16px;min-height:44px}
.qty-cell input{padding:6px 8px}
.product-results{font-size:16px}.product-results small{font-size:12px;color:#536159}
.product-results [role=option]{min-height:44px}
.line-info,.remove-line{font-size:19px}
.line-inspector,.evidence-panel>details,.instructions p,.source-details p,.issue p{font-size:14px}
.line-inspector blockquote{font-size:14px}.issue h4{font-size:15px}.issue p{color:#536159}
.secondary,.text-button,.edit-actions .primary,.review-footer button{font-size:14px}
.review-footer>span,.workspace-footer{font-size:12px;color:#536159}
.login-card label,.login-card>p,.small-text,.login-card .small-text{font-size:15px}
.login-footer,.setup-note,.error,.notice{font-size:14px}
@media(max-width:640px){
  .user-tools>span{font-size:12px}.topbar{font-size:13px}
  .section-heading{align-items:flex-start;flex-wrap:wrap}
  .order-facts{column-gap:10px}.edit-actions>div{gap:8px}
}

/* Compact operations layout: keep readable type, spend less space on chrome. */
.desk-layout{grid-template-columns:190px minmax(0,1fr)}
.sidebar{padding:20px 12px}.sidebar .brand{gap:8px}.sidebar .brand-name{font-size:13px}
.sidebar .brand-mark{width:34px;height:36px}.nav-heading{margin:28px 8px 8px}
.nav-current,.nav-upcoming{padding:9px 8px}.nav-upcoming{margin-top:5px}
.topbar{height:42px;padding:0 16px}.page-heading{padding:10px 16px;gap:12px}
.page-heading h1{font-size:26px}.header-actions select,.header-actions button{min-height:36px;padding:6px 10px}
.stats{display:flex;flex-wrap:wrap;margin:0 16px 10px;border-radius:5px}
.stats>div{flex:1;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;padding:7px 12px}
.stats strong,.stats .send-state strong{font-size:19px;letter-spacing:0;line-height:1.3}
.stats span{font-size:13px}
.inbox{margin:0 16px;border-radius:5px;grid-template-columns:250px minmax(0,1fr);min-height:0}
.queue-controls{padding:10px 10px 0}.queue-controls input,.queue-controls select{min-height:36px;padding:6px 8px}
.queue-controls select{margin-top:6px}.queue-summary{padding:9px 0}
.queue-card{padding:11px 12px}.queue-card h3{margin:8px 0 3px}.queue-card-bottom{margin-top:8px;gap:8px}
.order-detail{padding:14px 14px 0}.detail-heading h2{font-size:23px;margin-bottom:3px}
.order-subject{margin-bottom:10px}.detail-heading{gap:10px}
.order-overview{display:grid;grid-template-columns:minmax(0,1fr) 205px;gap:12px;align-items:start;margin-bottom:12px}
.email-above{margin:0;padding:10px 12px;border-radius:4px}
.email-above h3{font-size:15px;margin-bottom:7px}.email-above pre{line-height:1.35}
.order-overview .order-facts{display:grid;grid-template-columns:1fr;gap:12px;margin:0;padding:8px 0;border:0}
.order-facts dt{margin-bottom:4px}
.section-heading{margin:0 0 4px}.catalog-toolbar{min-height:22px;margin-bottom:5px}
.order-table th{padding:7px 8px}.order-table td{height:42px;padding-top:2px;padding-bottom:2px}
.product-cell .product-search,.qty-cell input{min-height:40px}
.edit-actions{margin:8px 0 0;gap:8px}.edit-actions .secondary,.edit-actions .primary{padding:7px 12px;min-height:36px}
.selection-notice{padding:5px 0}.items-panel{margin-bottom:6px}
.evidence-panel{margin:0}.evidence-panel>details{padding:7px 0}
.review-footer{padding:8px 0}.review-footer button{padding:7px 10px}
.workspace-footer{padding:10px 16px}.desk-error{margin:0 16px 10px}
@media(max-width:1200px){
  .desk-layout{grid-template-columns:170px minmax(0,1fr)}
  .inbox{grid-template-columns:220px minmax(0,1fr)}
  .order-overview{grid-template-columns:1fr}
  .order-overview .order-facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0}
}

.view-tabs{display:flex;gap:6px;padding:0 16px 8px}
.view-tabs button{padding:7px 12px;font-size:14px;background:transparent}
.view-tabs button[aria-current=page]{background:#263d34;color:white;border-color:#263d34}
.sidebar button.nav-upcoming{border:0;background:none;text-align:left;width:100%;font-family:inherit}
.sidebar button.nav-current{text-align:left;width:100%;font-family:inherit;color:white}
.approval-panel{border-top:1px solid var(--line);padding:12px 0;margin-top:6px;font-size:14px}
.approval-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;flex-wrap:wrap}
.approval-heading>span{font-size:12px;color:var(--muted)}
.approval-panel p{margin:7px 0;line-height:1.45}.approval-panel .primary{font-size:14px;padding:9px 13px}
.approval-panel label{display:block;font-size:13px;margin:8px 0 4px}
.approval-panel textarea{display:block;width:100%;resize:vertical;border:1px solid #bbc6b9;border-radius:4px;font:inherit;padding:8px;color:var(--ink)}
.approval-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.approval-history{margin-top:10px}.approval-history ol{padding-left:20px}.approval-history li{padding:7px 0;border-bottom:1px solid var(--line)}
.approval-history small{display:block;overflow-wrap:anywhere;color:var(--muted);margin-top:3px}
@media(max-width:900px){.sidebar button.nav-current,.sidebar button.nav-upcoming{display:none}}
@media(max-width:640px){.view-tabs{padding:0 10px 8px}}
@media(max-width:900px){
  .desk-layout{grid-template-columns:1fr}.sidebar{padding:10px 16px}
  .stats>div{flex-basis:40%}.stats>div:nth-child(2){border-right:0}
}
@media(max-width:640px){
  .topbar{padding:0 10px}.page-heading{padding:10px;display:flex;flex-wrap:wrap}
  .header-actions{margin:0;gap:6px;flex:1}.page-heading h1{font-size:24px}
  .stats{margin:0 10px 8px}.stats>div{padding:7px 9px}.stats span{font-size:12px}
  .inbox{margin:0 10px;grid-template-columns:1fr}.order-detail{padding:12px 10px 0}
  .queue-controls{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:8px 8px 0}
  .queue-controls select{margin:0}.queue-summary{grid-column:1/-1;padding:2px 0 6px}
  .queue-card{padding:9px 10px}.queue-card h3{margin-top:5px}.queue-card-bottom{margin-top:5px}
  .order-overview .order-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .detail-heading>.pill{margin-bottom:8px}.email-above{padding:9px 10px}
  .edit-actions>div{margin-left:auto}.workspace-footer{padding:8px 10px}
}
.invoice-result .invoice-table { width: 100%; border-collapse: collapse; table-layout: auto; }
.invoice-result .invoice-table th, .invoice-result .invoice-table td { padding: 8px 10px; border: 1px solid var(--border, #d6ddd3); text-align: right; white-space: nowrap; }
.invoice-result .invoice-table th:first-child, .invoice-result .invoice-table td:first-child { text-align: left; width: 55%; white-space: normal; min-width: 180px; }
.invoice-result .invoice-table thead { background: #edf1e9; }
.auto-sync { display:flex; flex-wrap:wrap; gap:6px 16px; padding:0 0 10px; color:var(--muted); font-size:13px; }
.auto-sync #sync-note { color:var(--amber); }
[hidden]{display:none!important}
.auto-sync{padding:0 16px 10px}
.home-page{width:calc(100% - 64px);max-width:1440px;margin:0 auto 20px}
.home-intro{padding:22px 0 24px}.home-intro h2{font-size:clamp(28px,2.5vw,36px);font-weight:600;letter-spacing:-1.2px;margin:9px 0 10px;line-height:1.2}.home-intro p{color:var(--muted);margin:0;font-size:16px}.home-intro .eyebrow{font-size:10px;color:#777669;letter-spacing:2px}
.home-destinations{display:grid;grid-template-columns:1.08fr 1fr 1fr;gap:18px}
.destination{display:flex;flex-direction:column;text-align:left;background:#fff;border:1px solid #dedfd6;border-radius:12px;padding:24px;font:inherit;color:var(--ink);cursor:pointer;box-shadow:0 3px 5px #28342f04;transition:border-color .15s,box-shadow .15s,transform .15s;min-width:0}
.destination:hover,.destination:focus-visible{border-color:#869d8d;box-shadow:0 6px 18px #263d3412;transform:translateY(-2px)}
.destination-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px}
.destination-icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;background:#f2e9ed;color:#7a4052;border-radius:12px;flex-shrink:0}
.destination-icon svg{width:25px;height:25px}.destination-kicker{font-size:10px;letter-spacing:1.2px;font-weight:650;color:#72766d}
.destination h3{font-size:25px;letter-spacing:-.6px;font-weight:650;margin:0 0 9px}
.destination p{font-size:15px;line-height:1.55;color:#5d685f;min-height:48px;margin:0 0 24px;max-width:360px}
.destination small{display:flex;justify-content:space-between;align-items:center;font-size:14px;color:#334e40;font-weight:600;border-top:1px solid #e9eae3;padding-top:16px;margin-top:auto}
.destination small span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#f2f4ef}.destination small svg{width:18px;height:18px}
.destination-primary{background:linear-gradient(120deg,#29473b,#1e382f);border-color:#284439;color:#fff;box-shadow:0 5px 14px #253c3414}
.destination-primary:hover,.destination-primary:focus-visible{border-color:#527e65;background:linear-gradient(120deg,#305241,#233f35)}
.destination-primary .destination-icon{background:#ffffff14;color:#e2e9d8;border:1px solid #ffffff20}.destination-primary .destination-kicker{color:#b9cabe}
.destination-primary p{color:#c5d5cc}.destination-primary small{color:#f6f2e5;border-color:#ffffff24}.destination-primary small span{background:#ffffff14}
.destination-sending .destination-icon{background:#f7efdd;color:#9c783a}
.recent-panel{margin-top:26px;border:1px solid #dedfd6;border-radius:12px;background:white;padding:0;overflow:hidden;box-shadow:0 3px 5px #28342f03}
.recent-panel .section-heading{margin:0;padding:20px 22px;align-items:center}.recent-panel .section-heading h3{font-size:19px;margin:0 0 4px;letter-spacing:-.35px}.recent-panel .section-heading p{font-size:13px;color:#738075;margin:0}
.recent-panel .text-button{display:flex;align-items:center;gap:10px;text-decoration:none;color:#315b45;font-weight:600;font-size:13px}.recent-panel .text-button span{display:flex}.recent-panel .text-button svg{width:17px;height:17px}
.recent-order,.recent-columns{width:100%;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(170px,1fr) minmax(160px,.8fr);gap:18px;align-items:center;padding:17px 22px}
.recent-columns{padding-top:10px;padding-bottom:10px;background:#f7f8f4;color:#7b8279;font-size:10px;font-weight:650;text-transform:uppercase;letter-spacing:1.1px;border-top:1px solid #eaede5}
.recent-columns>span:last-child{text-align:right;padding-right:37px}
.recent-order{text-align:left;border:0;border-top:1px solid #eceee7;border-radius:0;background:white;font:inherit;color:var(--ink)}
.recent-order:hover{background:#f8faf6}.recent-order strong{font-size:14px;font-weight:650;letter-spacing:.1px;overflow-wrap:anywhere}.recent-order small{display:block;color:#6f7a70;margin-top:4px;font-size:13px;overflow-wrap:anywhere}.recent-date{font-size:13px;color:#738075;font-variant-numeric:tabular-nums}
.recent-customer{display:flex;align-items:center;gap:13px;min-width:0}.recent-icon{display:grid;place-items:center;width:36px;height:40px;border:1px solid #e4e8df;border-radius:7px;color:#7a8a7a;background:#fafbf8;flex-shrink:0}.recent-icon svg{width:20px;height:20px}
.recent-status{display:flex;align-items:center;justify-content:flex-end;gap:20px}.recent-status .pill{border-radius:20px;padding:6px 10px;font-size:11px;font-weight:600}.row-arrow{color:#899587;display:flex}.row-arrow svg{width:18px;height:18px}
#home-recent>p{padding:20px 22px;margin:0;color:var(--muted);font-size:14px}
.home-setup-note{font-size:13px;color:var(--muted);margin-top:16px}.correction-panel{border-top:1px solid var(--line);padding:18px 0}.correction-panel>p{font-size:14px;color:var(--muted)}.correction-panel>input{display:block;margin:7px 0 12px;max-width:220px}.correction-items-title{margin:14px 0 8px}.invoice-email{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}
@media(min-width:901px){.view-tabs{display:none}}
/* Shared shell polish; worksheet density and behavior are unchanged. */
.sidebar{background:#223b31}.sidebar .brand{padding-bottom:25px;border-bottom:1px solid #ffffff13}.sidebar .brand-name{font-size:15px;line-height:1.3}.sidebar .brand-mark{width:38px;height:44px;border-radius:10px}
.nav-heading{font-size:10px;letter-spacing:1.7px;margin:29px 11px 14px;color:#8fa99a}.sidebar button.nav-current,.sidebar button.nav-upcoming{align-items:center;gap:12px;padding:12px;margin-top:5px;min-height:44px;border-radius:8px;line-height:20px}
.sidebar button.nav-current{background:#ffffff12;border:1px solid #ffffff16;box-shadow:inset 3px 0 #b9c7a2;font-weight:600}.sidebar button.nav-upcoming:hover{background:#ffffff08;color:#fff}
.nav-icon{width:19px!important;height:20px;display:inline-flex!important;vertical-align:middle;margin-right:10px}.nav-icon svg{width:19px;height:19px}
.sidebar-bottom{font-size:11px;line-height:1.5}.sidebar-bottom p{font-size:11px;color:#a1b7a8}
.topbar{height:55px;background:#fcfcf9;font-size:13px}.user-tools{font-size:13px}.user-tools .text-button{font-size:13px;text-decoration:none;border-left:1px solid var(--line);padding-left:16px}
.is-home .page-heading{padding:18px 32px 8px}.is-home .page-heading h1{font-size:23px;font-weight:600;letter-spacing:-.6px}.is-home .auto-sync{padding:0 32px 7px;font-size:11px;color:#7c867b}
.is-home #sync-status:before{content:'';display:inline-block;vertical-align:middle;width:5px;height:5px;background:#87917e;border-radius:50%;margin-right:6px}
.is-home .header-actions select,.is-home .header-actions button{font-size:13px;min-height:34px;border-color:#dedfd6}
.is-home .workspace-footer{width:calc(100% - 64px);max-width:1440px;margin:auto;padding:12px 0;font-size:11px;color:#80897e}
.home-setup-note{font-size:11px;color:#7c867b;padding-left:2px;margin-top:16px}
@media(min-width:1201px){.desk-layout{grid-template-columns:214px minmax(0,1fr)}.sidebar{padding:28px 17px}}
@media(min-width:901px) and (max-width:1100px){.destination{padding:18px}.destination-kicker{display:none}.home-page{width:calc(100% - 40px)}.recent-order,.recent-columns{grid-template-columns:minmax(0,1.4fr) 1fr}.recent-date,.recent-columns>span:nth-child(2){display:none}}
@media(max-width:900px){.sidebar .brand{border:0;padding:0}.sidebar .brand-mark{height:36px;width:34px}.topbar{height:46px}.view-tabs{flex-wrap:wrap}.home-page{width:calc(100% - 32px)}.is-home .page-heading{padding:14px 16px 8px}.is-home .auto-sync{padding-left:16px}.destination{padding:18px}.destination-kicker{display:none}.recent-order,.recent-columns{grid-template-columns:minmax(0,1fr) auto}.recent-date,.recent-columns>span:nth-child(2){display:none}}
@media(max-width:640px){.home-page{width:calc(100% - 24px);margin-bottom:12px}.home-intro{padding:20px 0}.home-intro h2{font-size:27px;letter-spacing:-.8px;max-width:330px}.home-intro p{font-size:14px}.home-intro .eyebrow{font-size:9px;letter-spacing:1.3px}.home-destinations{grid-template-columns:1fr;gap:12px}.destination{position:relative;padding:20px}.destination-top{position:absolute;right:20px;top:20px;margin:0}.destination-icon{width:38px;height:38px;border-radius:10px}.destination-icon svg{width:22px;height:22px}.destination h3{font-size:22px;margin:0 52px 9px 0}.destination p{font-size:14px;min-height:0;margin:0 38px 16px 0;max-width:unset}.destination small{padding-top:11px;font-size:13px}.recent-panel{margin-top:20px}.recent-panel .section-heading{padding:16px;gap:12px;flex-wrap:wrap}.recent-panel .section-heading h3{font-size:18px}.recent-panel .section-heading p{font-size:12px}.recent-panel .text-button{font-size:12px;padding:0}.recent-order,.recent-columns{padding:14px;gap:9px}.recent-columns{font-size:9px;padding-top:9px;padding-bottom:9px}.recent-columns>span:last-child{padding:0}.recent-icon,.row-arrow{display:none}.recent-order strong{font-size:12px}.recent-order small{font-size:12px}.recent-status .pill{font-size:10px;padding:5px 7px;max-width:110px;white-space:normal;text-align:center}.recent-status{gap:0}.is-home .workspace-footer{width:calc(100% - 24px);gap:8px;flex-wrap:wrap}.is-home .header-actions{flex:unset}.is-home .page-heading{padding-left:12px;padding-right:12px}.is-home .auto-sync{padding-left:12px}}
@media(prefers-reduced-motion:reduce){.destination{transition:none}.destination:hover{transform:none}}

/* Apple-inspired surfaces and responsive workspace layout. */
:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: #202333;
  background: #f5f6fb;
  --ink: #202333;
  --muted: #626b7e;
  --line: #e2e6ef;
  --wine: #0765d6;
  --green: #087951;
  --amber: #936000;
}
body {
  background:
    radial-gradient(ellipse at 86% 10%, #e9e2ff85, transparent 42%),
    radial-gradient(ellipse at 25% 0%, #dcecff90, transparent 44%),
    #f5f6fb;
}
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline-color: #2381f1;
}
input, select { border-color: #dce1ed; color: var(--ink); background: #ffffffed; }
input::placeholder { color: #758095; }
.primary { background: #0765d6; box-shadow: 0 2px 5px #0066dd15; }
.primary:hover:not(:disabled) { background: #0058bc; }
.secondary { background: #ffffffd9; border-color: #dfe4ed; color: #39465e; }
.text-button { color: #0866c9; }
.sidebar {
  background: linear-gradient(165deg, #f0f3fff5, #edf2f9eb 65%, #eeeaf8ed);
  border-right: 1px solid #dce1ee;
  color: #46536b;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.sidebar .brand { border-bottom-color: #dce2ee; }
.sidebar .brand-mark { background: linear-gradient(145deg, #439bff, #5558e8); border-color: #ffffff7d; color: white; box-shadow: 0 3px 10px #4878cf24; }
.sidebar .brand-name { font-family: inherit; color: #28354e; font-size: 14px; font-weight: 650; letter-spacing: -.3px; }
.sidebar .brand-name small { color: #727f98; font-weight: 500; }
.nav-heading { color: #758198; }
.sidebar button.nav-upcoming { color: #56637a; }
.sidebar button.nav-current { background: #0769db; color: #fff; border-color: #0865ce; box-shadow: 0 3px 8px #0769db23; }
.sidebar button.nav-upcoming:hover { background: #dfe7f8; color: #215fbb; }
.sidebar [data-view="invoices"]:not(.nav-current) .nav-icon { color: #8a57ca; }
.sidebar #sidebar-inbox:not(.nav-current) .nav-icon { color: #1477d9; }
.sidebar #sidebar-approval:not(.nav-current) .nav-icon { color: #008777; }
.sidebar-bottom { color: #56637a; border-top-color: #dce2ee; }
.sidebar-bottom p { color: #727f92; }
.connection-dot { background: #219779; }
.topbar { background: #ffffff9c; border-bottom-color: #e0e5ef; color: #657188; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.user-tools { color: #637188; }
.is-home .auto-sync, .home-setup-note, .is-home .workspace-footer { color: #6f788a; }
.is-home #sync-status:before { background: #7489aa; }
.is-home .header-actions select, .is-home .header-actions button { border-color: #dce2ef; background: #ffffffc9; }
.home-intro h2 { color: #222838; font-weight: 650; }
.home-intro .eyebrow { color: #697995; }
.home-intro p { color: #637087; }
.destination { border-color: #ffffff; border-radius: 18px; background: #ffffffd9; box-shadow: 0 5px 22px #2a49760a, 0 0 0 1px #dee3ef9c; }
.destination:hover, .destination:focus-visible { border-color: #c5d9f7; box-shadow: 0 9px 28px #2a497616, 0 0 0 1px #d0dff3; }
.destination h3 { color: #273047; }
.destination p { color: #627087; }
.destination .destination-kicker { color: #727f95; }
.destination small { color: #186cc4; border-top-color: #d9e5f780; }
.destination small span { background: #e6effc; color: #2175d1; }
.destination-primary { background: linear-gradient(135deg, #edf7ff, #e7edff); border-color: #fff; color: #273047; }
.destination-primary:hover, .destination-primary:focus-visible { background: linear-gradient(135deg, #e6f3ff, #e2eaff); border-color: #b2d1ff; }
.destination-primary .destination-icon { background: linear-gradient(145deg, #3eabff, #1168e4); border-color: #ffffff55; color: #fff; box-shadow: 0 4px 12px #2684e832; }
.destination-primary .destination-kicker { color: #406eae; }
.destination-primary p { color: #506787; }
.destination-primary small { color: #125fbd; border-top-color: #c8daf5; }
.destination-primary small span { background: #fff9; color: #176bd1; }
.destination-invoices { background: linear-gradient(145deg, #fff, #f3efff); }
.destination-invoices .destination-icon { background: linear-gradient(145deg, #b17bed, #7c4bdb); color: white; box-shadow: 0 4px 12px #8e5bde24; }
.destination-invoices .destination-kicker { color: #80659e; }
.destination-invoices small { color: #7950bc; border-top-color: #e8dcf5; }
.destination-invoices small span { background: #eae1f9; color: #8155c5; }
.destination-sending { background: linear-gradient(145deg, #fff, #eaf9f7); }
.destination-sending .destination-icon { background: linear-gradient(145deg, #28c6ae, #048b91); color: white; box-shadow: 0 4px 12px #089a9224; }
.destination-sending .destination-kicker { color: #4f817d; }
.destination-sending small { color: #087f78; border-top-color: #d6eeea; }
.destination-sending small span { background: #dbf2ed; color: #087f78; }
.recent-panel { border-color: #e0e5ee; border-radius: 18px; background: #ffffffdc; box-shadow: 0 5px 24px #2a497607; }
.recent-panel .section-heading p, .recent-order small, .recent-date { color: #6c788c; }
.recent-panel .text-button { color: #126bca; }
.recent-columns { color: #6d7890; background: #f5f7fc; border-top-color: #e9ecf4; }
.recent-order { background: transparent; border-top-color: #e9edf5; }
.recent-order:hover { background: #eff5ff; }
.recent-icon { color: #5987c4; background: #eff5ff; border-color: #dce7f7; }
.row-arrow { color: #8494ad; }
.pill { background: #eef1f7; color: #53627b; }
.pill.green { background: #e4f5ed; color: #22734d; }
.pill.amber { background: #fff2db; color: #8b5b0b; }
.pill.neutral { background: #eee8fc; color: #7450a9; }
.view-tabs button[aria-current=page] { background: #086bdc; border-color: #086bdc; color: #fff; }
.view-tabs button { color: #5c6d88; }
.queue { background: #f7f9fd; }
.queue-card.selected { background: #eaf2ff; }
.queue-card.selected:before { background: #2780e3; }
.queue-card:hover { background: #f0f5ff; }
.queue-card p, .queue-card-bottom, .queue-summary, .queue-card-top>span:last-child, .order-subject, dt { color: #64718a; }
.queue-controls select { background: #f9fbff; }
.order-table th, .invoice-result .invoice-table thead { background: #f1f5fc; color: #4e607c; }
.email-panel { background: #fbfcff; border-color: #e1e7f1; }
.email-above pre { color: #39465c; }
.notice { background: #eaf4ff; color: #275987; }
.login-story { background: linear-gradient(145deg, #1c73d4, #5c4dc5); }
.login-story .brand-mark { border-color: #ffffff50; }
.login-story p:not(.eyebrow), .login-story .eyebrow, .story-foot { color: #dce6ff; }
@media(prefers-reduced-transparency:reduce) { .sidebar { background:#eef2fa; backdrop-filter:none; -webkit-backdrop-filter:none; } .topbar { background:#fafbff; backdrop-filter:none; -webkit-backdrop-filter:none; } }

/* Stable icon rail: expansion overlays the queue instead of resizing the sheet. */
.sidebar button .nav-label { width:auto; font-size:14px; white-space:nowrap; }
.sidebar .nav-icon { flex:0 0 20px; width:20px; }
.sidebar .brand-mark { flex-shrink:0; }
@media (min-width:901px) and (hover:hover) and (pointer:fine) {
  .desk-layout { grid-template-columns:72px minmax(0,1fr); }
  .sidebar {
    width:72px; padding:24px 12px; z-index:40; overflow:hidden;
    transition:width 180ms ease, box-shadow 180ms ease;
  }
  .sidebar .brand { width:208px; gap:12px; padding-left:4px; }
  .sidebar .brand-mark { width:38px; height:42px; }
  .sidebar .brand-name { width:158px; flex-shrink:0; }
  .sidebar .nav-heading { width:190px; margin:24px 12px 12px; }
  .sidebar button.nav-current, .sidebar button.nav-upcoming {
    display:flex; width:100%; min-height:46px; gap:14px; padding:12px;
  }
  .sidebar .brand-name, .sidebar .nav-heading, .sidebar .nav-label,
  .sidebar .sidebar-caption, .sidebar-bottom p {
    opacity:0; transition:opacity 120ms ease;
  }
  .sidebar-bottom { width:208px; padding-left:10px; }
  .sidebar:hover, .sidebar:has(button:focus-visible) {
    width:240px; box-shadow:12px 0 32px #334a731f;
  }
  .sidebar:is(:hover, :has(button:focus-visible)) :is(.brand-name, .nav-heading, .nav-label, .sidebar-caption),
  .sidebar:is(:hover, :has(button:focus-visible)) .sidebar-bottom p { opacity:1; }
}

/* Keep useful cell widths at every viewport; scroll the sheet, not the page. */
.items-panel { max-width:100%; }
.table-scroll:has(> .order-table) { max-width:100%; }
.order-table { width:100%; min-width:1000px; }
.order-table th:first-child { width:36px; }
.order-table th:nth-child(2) { width:auto; }
.order-table th:nth-child(3) { width:40%; }
.order-table th:nth-child(4) { width:92px; padding:8px 10px; }
.order-table th:nth-child(5) { width:104px; }
.order-table th:nth-child(6) { width:124px; }
.order-table th:last-child { width:76px; }
.order-table td { height:44px; line-height:1.4; overflow-wrap:normal; }
.order-table .requested-cell { white-space:normal; overflow-wrap:anywhere; padding:8px 10px; }
.order-table td:nth-child(5) { white-space:normal; word-break:normal; hyphens:none; padding:8px 10px; }
.order-table .qty-cell input { min-height:42px; padding:6px 10px; }
.order-table .line-actions { text-align:center; }
.queue-card-top { flex-wrap:wrap; }
.queue-card-top .pill { flex-shrink:0; }
/* Lighter list typography, distinct from the larger order worksheet. */
.queue-card { font-family:"Helvetica Neue",Arial,sans-serif; font-weight:400; padding:7px 12px; }
.queue-card h3 { font-size:13px; font-weight:500; line-height:1.4; letter-spacing:.01em; color:#34425a; margin:5px 0 2px; }
.queue-card.selected h3 { color:#203c61; }
.queue-card p { font-size:12px; font-weight:400; line-height:1.35; }
.queue-card-bottom { margin-top:5px; }
.queue-card-bottom, .queue-card-top>span:last-child { font-size:11px; font-weight:400; }
.queue-card .pill { font-size:11px; font-weight:500; }
.queue-card .pill.amber { color:#8b5b0b; }
.queue-card .pill.green { color:#22734d; }
.queue-dates { display:grid; gap:2px; margin-top:5px; color:#586982; font-size:11px; line-height:1.5; }
.queue-dates:empty { display:none; }
.queue-dates>span { display:grid; grid-template-columns:48px minmax(0,1fr); gap:5px; }
.date-label { color:#7a8597; }
.order-overview { display:block; }
.email-heading { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:5px 16px; margin-bottom:10px; }
.email-heading h3 { margin:0; }
.email-sent { color:#64718a; font-size:12px; font-weight:400; }
.worksheet-meta { display:flex; align-items:center; flex-wrap:wrap; gap:10px 18px; padding:4px 0 14px; }
.delivery-field { display:flex; align-items:center; gap:10px; }
.delivery-field label { margin:0; font-size:13px; color:#52617b; }
.delivery-field input { width:175px; min-height:38px; padding:7px 9px; font-size:14px; }
.worksheet-meta .date-note { margin:0; font-size:12px; }
.customer-link { margin-left:auto; display:flex; gap:8px; align-items:center; font-size:12px; color:#64718a; }
.customer-link strong { font-weight:500; color:#39465c; }
.line-info { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; padding:4px; vertical-align:middle; border-radius:6px; color:#667b96; }
.line-info svg { width:18px; height:18px; }
.line-info:hover, .line-info:focus-visible, .line-info[aria-expanded=true] { background:#eaf2ff; color:#126bd1; }
.line-popover { position:fixed; z-index:1100; width:340px; max-width:calc(100vw - 24px); overflow:auto; padding:15px; border:1px solid #dce4f0; border-radius:10px; background:#fff; box-shadow:0 8px 32px #233c6326; font-size:13px; line-height:1.5; color:#44536c; overflow-wrap:anywhere; }
.line-popover strong { display:block; font-size:13px; font-weight:600; color:#27354b; }
.line-popover blockquote { margin:10px 0; padding:7px 10px; border-left:2px solid #9dbfec; background:#f4f7fc; font-size:13px; }
.line-popover p+p { margin-top:8px; }
@media(max-width:640px) { .customer-link { margin-left:0; width:100%; } .delivery-field { flex-wrap:wrap; } }
/* Wider order cards on desktop; share spare worksheet space with Requested. */
@media (min-width:901px) { .inbox { grid-template-columns:300px minmax(0,1fr); } }
@media (min-width:1201px) { .inbox { grid-template-columns:360px minmax(0,1fr); } }
@media (prefers-reduced-motion:reduce) {
  .sidebar, .sidebar .brand-name, .sidebar .nav-heading, .sidebar .nav-label,
  .sidebar .sidebar-caption, .sidebar-bottom p { transition:none; }
}
.edit-claim-status { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:12px 14px 0; padding:9px 12px; border:1px solid #dbe5fb; border-radius:8px; background:#f2f6ff; color:#426087; font-size:12px; }
.edit-claim-status[hidden] { display:none; }
.edit-claim-status span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.edit-claim-status button { flex-shrink:0; font-size:12px; }
.edit-claim-status button[hidden] { display:block!important; visibility:hidden; pointer-events:none; }
.order-review-banner { display:flex; align-items:flex-start; gap:12px; margin:12px 14px 0; padding:11px 13px; border:1px solid #ef9a9a; border-radius:8px; background:#fff0f0; color:#9f1d1d; font-size:12px; line-height:1.45; }
.order-review-banner strong { flex-shrink:0; color:#b01919; font-weight:700; }
.order-review-banner span { min-width:0; overflow-wrap:anywhere; }
.field-error { border-color:#d93b3b!important; background:#fff4f4!important; box-shadow:0 0 0 1px #d93b3b22!important; }
.field-error-wrap label,.field-error-wrap span,.field-error-wrap strong { color:#b42323!important; }
.editing-badge { display:block; height:16px; line-height:16px; margin-top:3px; font-size:11px; color:#5b57a8; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.editing-badge[hidden] { display:block!important; visibility:hidden; }
.product-results { overscroll-behavior:contain; }
#detail input[readonly] { cursor:default; }

/* Lists must not set the document height. Keep the desktop desk inside the
   viewport, with independent list/detail scrolling and stationary controls. */
.queue-controls, .queue > .load-more { flex-shrink:0; }
#queue-list { overscroll-behavior:contain; }
@media (min-width:901px) {
  .desk-layout:has(> .workspace:not(.is-home)) {
    height:100dvh; min-height:0; grid-template-rows:minmax(0,1fr);
  }
  .workspace:not(.is-home) {
    display:flex; flex-direction:column; height:100dvh; min-height:0; overflow:hidden;
  }
  .workspace:not(.is-home) > :not(.inbox):not(.customer-workspace) { flex-shrink:0; }
  .workspace:not(.is-home) .inbox {
    flex:1 1 0; min-height:0; grid-template-rows:minmax(0,1fr);
  }
  .queue { display:flex; flex-direction:column; min-height:0; overflow:hidden; }
  #queue-list { flex:1 1 0; min-height:0; overflow-y:auto; scrollbar-gutter:stable; }
  #detail { min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
}
@media (min-width:641px) and (max-width:900px) {
  .queue { display:flex; flex-direction:column; align-self:start; max-height:70dvh; min-height:0; }
  #queue-list { min-height:0; overflow-y:auto; }
}

/* Customer history is an independent, read-only workspace. */
.home-destinations { grid-template-columns:repeat(4,minmax(0,1fr)); }
.destination-customers { background:linear-gradient(135deg,#fff8f2,#fff1f5); border-color:#f2dfe3; }
.destination-customers .destination-icon { background:#ffe4e9; color:#c34e6f; }
.customer-workspace { display:grid; grid-template-columns:300px minmax(0,1fr); flex:1 1 0; min-height:0; margin:0 16px; border:1px solid #dfe5f0; border-radius:12px; background:#fff; overflow:hidden; }
.customer-directory { display:flex; flex-direction:column; min-height:0; min-width:0; background:#f7f9ff; border-right:1px solid #e1e7f1; }
.customer-search { padding:16px 12px 0; }
.customer-search label { display:block; font-size:15px; font-weight:500; margin-bottom:8px; }
.customer-search>div { display:flex; gap:6px; }
.customer-workspace input { min-width:0; width:100%; padding:8px 10px; font:inherit; font-size:15px; border:1px solid #d8e0ef; border-radius:6px; background:#fff; color:var(--ink); }
.customer-search input { flex:1; }
.customer-workspace .secondary,.customer-workspace .text-button { font-size:14px; padding:8px 10px; }
.history-scope { font-size:11px; line-height:1.5; color:#718098; padding:8px 13px 12px; margin:0; }
#customer-list { overflow:auto; flex:1; min-height:0; scrollbar-gutter:stable; }
.customer-card,.customer-order-card { display:block; width:100%; text-align:left; border:0; border-radius:0; border-top:1px solid #e2e8f2; background:transparent; color:#34425a; font:inherit; padding:12px 14px; cursor:pointer; overflow-wrap:anywhere; }
.customer-card:hover,.customer-order-card:hover { background:#f1f5ff; }
.customer-card.selected,.customer-order-card.selected { background:#eaf2ff; box-shadow:inset 3px 0 #3884ed; }
.customer-card strong,.customer-order-card strong { display:block; font-size:15px; font-weight:500; line-height:1.4; }
.customer-card span,.customer-order-card span:not(.pill) { display:block; font-size:13px; margin-top:5px; }
.customer-card small,.customer-order-card small { display:block; font-size:12px; color:#64728a; margin-top:4px; line-height:1.5; }
.customer-content { display:flex; flex-direction:column; min-height:0; min-width:0; }
.customer-profile { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:4px 24px; padding:12px 18px; border-bottom:1px solid #edf0f7; background:linear-gradient(110deg,#fafcff,#fff7fa); }
.customer-profile>.eyebrow { grid-column:1/-1; margin-bottom:0; }
.customer-profile h2 { font-size:23px; font-weight:600; margin:0; line-height:1.3; letter-spacing:-.5px; overflow-wrap:anywhere; }
.customer-profile p { font-size:13px; color:#64728a; margin:0; line-height:1.6; }
.customer-profile p span { margin:0 5px; }
#customer-order-filters { display:grid; grid-template-columns:minmax(180px,420px) 160px 160px auto auto; justify-content:start; gap:6px 10px; padding:10px 18px; align-items:end; border-bottom:1px solid #e2e8f2; }
#customer-order-filters label { font-size:12px; color:#687892; }
#customer-order-filters input { display:block; margin-top:4px; min-height:38px; padding-top:7px; padding-bottom:7px; }
#customer-order-filters small { grid-column:1/-1; color:#64728a; font-size:11px; }
.customer-records { display:grid; grid-template-columns:260px minmax(0,1fr); min-height:0; flex:1; }
.customer-order-list { overflow:auto; min-height:0; border-right:1px solid #e2e8f2; background:#fcfdff; scrollbar-gutter:stable; }
.customer-order-card .pill { display:inline-block; font-size:12px; margin-bottom:8px; }
.customer-record { container-type:inline-size; min-width:0; min-height:0; overflow:auto; padding:18px; scrollbar-gutter:stable; overscroll-behavior:contain; background:#fbfcff; }
.history-record-heading h3 { margin:7px 0 10px; font-size:20px; font-weight:600; overflow-wrap:anywhere; }
.history-facts { display:flex; flex-wrap:wrap; gap:12px 30px; margin:18px 0; }
.history-facts dt { color:#64728a; font-size:12px; }.history-facts dd { margin:5px 0 0; font-size:16px; }
.customer-record h4 { margin:16px 0 10px; font-size:16px; font-weight:600; }
.history-muted { font-size:12px; color:#738098; line-height:1.5; }
.history-table-scroll { overflow:auto; border:1px solid #e0e6f0; border-radius:7px; }
.history-table { width:100%; border-collapse:collapse; font-size:15px; line-height:1.45; background:white; }
.history-table th,.history-table td { text-align:left; padding:9px 10px; border-bottom:1px solid #e5eaf2; vertical-align:top; }
.history-table th { background:#f4f7fd; font-size:13px; font-weight:600; color:#62728d; }
.history-table :is(th,td):not(:first-child) { width:70px; white-space:nowrap; }.history-table td:first-child { min-width:130px; overflow-wrap:anywhere; }
.history-table tr:last-child td { border-bottom:0; }.history-table small { display:block; font-size:12px; color:#64728a; margin-top:4px; }
.history-section,.history-event { border-bottom:1px solid #e2e8f2; padding:13px 0; font-size:15px; }
.history-section summary,.history-event summary { cursor:pointer; font-weight:500; }
.history-section>small { display:block; margin-top:12px; color:#738098; overflow-wrap:anywhere; }
.history-section pre { font:inherit; font-size:15px; line-height:1.55; white-space:pre-wrap; overflow-wrap:anywhere; background:#f8faff; padding:14px; border-radius:8px; }
.history-event summary span { display:block; margin:6px 0 0 16px; color:#64728a; font-size:12px; font-weight:400; overflow-wrap:anywhere; }
.history-event summary strong { font-weight:500; }.history-comparison { display:grid; grid-template-columns:1fr 1fr; gap:12px; }.history-comparison section { min-width:0; }
.history-total { text-align:right; font-weight:600; }.history-empty { padding:22px; color:#738098; font-size:13px; line-height:1.6; }
.history-empty h2 { font-size:25px; color:#34425a; font-weight:500; }.customer-workspace .error { margin:12px; }
#history-more-customers,#history-more-orders { margin:10px; flex-shrink:0; }#history-more-activity { margin-top:12px; }
.history-record-summary { display:flex; justify-content:space-between; align-items:start; gap:16px; margin-bottom:16px; }
.history-record-heading { min-width:0; }.history-record-heading h3 { font-size:23px; line-height:1.3; }
.history-record-summary .history-facts { flex-shrink:0; margin:0; padding:10px 14px; border:1px solid #e0e7f2; border-radius:8px; background:white; }
.history-primary-grid,.history-secondary-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; align-items:start; }
.history-items-card,.history-email-card,.history-activity,.history-secondary-grid>.history-section { min-width:0; border:1px solid #e0e7f2; border-radius:10px; background:white; padding:14px; }
.history-items-card h4,.history-activity h4 { margin:0 0 12px; }
.history-email-card>small { font-size:12px; line-height:1.5; }
.history-email-card pre { margin:12px 0 0; padding:12px; }
.history-secondary-grid { margin:16px 0; }
.history-activity>.history-muted { margin:0 0 8px; }
.history-comparison .history-table { font-size:14px; }
@container (min-width:860px) {
  .history-primary-grid { grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); }
  .history-secondary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@container (max-width:520px) {
  .history-record-summary { flex-wrap:wrap; }.history-record-summary .history-facts { width:100%; padding:9px 12px; }
  .history-comparison { grid-template-columns:1fr; }
}
@media (max-width:1500px) { .home-destinations { grid-template-columns:repeat(2,minmax(0,1fr)); } .customer-workspace { grid-template-columns:260px minmax(0,1fr); }.customer-records { grid-template-columns:230px minmax(0,1fr); }.customer-profile { grid-template-columns:1fr; } }
@media (min-width:901px) and (max-width:1200px) { #customer-order-filters { grid-template-columns:1fr 1fr 1fr; } #customer-order-filters label:first-child { grid-column:1/-1; }.history-comparison { grid-template-columns:1fr; } }
@media (max-width:900px) { .customer-workspace { grid-template-columns:1fr; }.customer-directory { max-height:300px; border-right:0; border-bottom:1px solid #e1e7f1; }.customer-records { grid-template-columns:220px minmax(0,1fr); }.customer-order-list { max-height:65dvh; }.customer-record { overflow:visible; }.history-comparison { grid-template-columns:1fr; } }
@media (max-width:640px) { .home-destinations { grid-template-columns:1fr; }.customer-workspace { margin:0 10px; }.customer-records { grid-template-columns:1fr; }.customer-order-list { max-height:230px; border-right:0; border-bottom:1px solid #e1e7f1; }#customer-order-filters { grid-template-columns:1fr 1fr; padding:12px; }#customer-order-filters label:first-child { grid-column:1/-1; }.customer-profile,.customer-record { padding:14px; }.customer-profile h2 { font-size:21px; } }

/* Keep the controls above history compact, without shrinking the record itself. */
.customer-order-card { width:calc(100% - 16px); margin:8px; padding:10px 12px; border:1px solid #e1e7f1; border-radius:12px; background:#fff; }
.customer-order-card.selected { border-color:#afcbf4; box-shadow:0 2px 7px #2566ad0c; }
.customer-order-card strong { font-size:14px; margin:6px 0; }
.customer-order-card span.history-card-top { display:flex; justify-content:space-between; align-items:center; gap:7px; margin:0; }
.customer-order-card .history-card-top>span { margin:0; font-size:11px; }
.customer-order-card .history-card-top>.pill { white-space:normal; }
.customer-order-card .history-card-top>span:last-child { flex-shrink:0; color:#64728a; }
.customer-record { background:#fff; }
.customer-record .history-email-card { padding:10px 12px; border-radius:5px; margin-bottom:12px; }
.customer-record .history-email-card pre { padding:0; margin:0; background:transparent; font-size:16px; line-height:1.4; }
.history-worksheet-meta .delivery-field { font-size:13px; color:#64728a; }
.history-worksheet-meta .delivery-field strong { font-size:15px; font-weight:500; color:var(--ink); }
.customer-record .history-items-card { padding:0; border:0; border-radius:0; }
.history-items-card .section-heading h3 { font-size:16px; margin:0 0 6px; }
.history-items-card .section-heading>span { font-size:12px; color:#64728a; }
.history-worksheet-scroll { overflow:auto; max-width:100%; }
.history-order-table { width:100%; min-width:760px; border-collapse:collapse; table-layout:fixed; font-size:15px; line-height:1.4; }
.history-order-table th,.history-order-table td { padding:9px 10px; border:1px solid #d6ddd3; text-align:left; overflow-wrap:anywhere; }
.history-order-table th { background:#f1f5fb; color:#52617b; font-size:13px; font-weight:600; }
.history-order-table th:first-child { width:36px; }.history-order-table th:nth-child(3) { width:40%; }
.history-order-table th:nth-child(4) { width:80px; }.history-order-table th:nth-child(5) { width:90px; }.history-order-table th:last-child { width:115px; }
.history-order-table :is(th,td):nth-child(4) { text-align:right; }.history-order-table .attention { background:#fff8e9; }
.history-order-table .pill { font-size:11px; white-space:normal; }
.customer-record .history-secondary-grid { display:block; margin:12px 0; }
.customer-record .history-secondary-grid>.history-section,.customer-record .history-activity { padding:10px 0; border:0; border-top:1px solid #e0e7f2; border-radius:0; }
.is-customers .topbar { height:36px; }
.is-customers .page-heading { padding:6px 16px; min-height:46px; }
.is-customers .auto-sync { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); }
.is-customers .customer-profile { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 18px; padding:8px 16px; }
.is-customers .customer-profile>.eyebrow { display:none; }
.is-customers .customer-profile h2 { font-size:22px; line-height:1.3; }
.is-customers .customer-profile p { font-size:13px; }
.is-customers #customer-order-filters { padding:7px 16px; row-gap:0; }
.is-customers #customer-order-filters small { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.is-customers .customer-search { padding:10px 12px 0; }
.is-customers .customer-search label { margin-bottom:5px; }
.is-customers .history-scope { padding-top:6px; padding-bottom:8px; }
@media (max-width:640px) {
  .is-customers .page-heading { padding:6px 10px; }
  .is-customers #customer-order-filters { padding:8px 12px; row-gap:8px; }
  .is-customers .customer-profile { padding:10px 12px; }
}

/* Reviewed pricing: editable rate, calculated total, and enough width for audit-friendly values. */
.order-table { min-width:1120px; }
.order-table th:nth-child(6),.order-table th:nth-child(7){width:80px}
.order-table th:nth-child(8){width:90px}
.order-table .price-cell{padding:0}
.order-table .price-cell input{width:100%;box-sizing:border-box;min-height:42px;border:0;background:transparent;padding:6px 10px;text-align:right;font:inherit;font-variant-numeric:tabular-nums}
.order-table .price-cell input:focus{outline:2px solid #287749;outline-offset:-2px;background:#fff}
.order-table .money-cell{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:600}

.order-table th:last-child{width:60px}

@media(max-width:1200px){.order-table{min-width:1120px}}

.order-table .currency-input{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;padding-left:8px;font-variant-numeric:tabular-nums}
.order-table .currency-input>span{color:#52617b;font-weight:600}
.order-table .currency-input input{min-width:0}

/* Order worksheet controls and summary. */
.order-table .line-actions-heading{width:72px}
.order-table .line-number-heading{width:36px}
.order-table th:nth-child(3){width:auto}
.order-table th:nth-child(4){width:40%}
.order-table th:nth-child(5){width:92px}
.order-table th:nth-child(6){width:104px}
.order-table th:nth-child(7){width:96px}
.order-table th:nth-child(8){width:100px}
.order-table th:nth-child(9){width:104px}
.order-table th:last-child{width:104px}
.order-table .line-actions{white-space:nowrap;text-align:center;padding:6px 7px}
.apple-control{width:27px;height:27px;padding:0;border:1px solid transparent;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;line-height:1;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif;box-shadow:0 1px 2px #1d27330d;transition:background .15s ease,border-color .15s ease,transform .15s ease,box-shadow .15s ease}
.apple-control:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 2px 5px #1d27331a}
.apple-control:focus-visible{outline:3px solid #0a84ff40;outline-offset:2px}
.line-info.apple-control{color:#087bf0;background:#eef7ff;border-color:#cbe5ff}
.line-info.apple-control:hover:not(:disabled){background:#e1f1ff;border-color:#9dceff}
.line-info.apple-control span{font-size:15px;font-weight:700;transform:translateY(-.5px)}
.remove-line.apple-control{margin-left:5px;color:#ff3b30;background:#fff2f1;border-color:#ffd2ce}
.remove-line.apple-control:hover:not(:disabled){background:#ffe7e4;border-color:#ffaaa3}
.remove-line.apple-control span{font-size:21px;font-weight:300;transform:translateY(-1px)}
.apple-control:disabled{opacity:.38;cursor:not-allowed}
.order-total{display:flex;align-items:center;justify-content:flex-end;gap:28px;padding:13px 16px;border:1px solid #cbd4c9;border-top:0;background:linear-gradient(180deg,#fbfcfe,#f5f7fb);font-variant-numeric:tabular-nums}
.order-total span{color:#52617b;font-size:14px;font-weight:600}
.order-total strong{min-width:120px;text-align:right;color:#182238;font-size:21px;font-weight:650;letter-spacing:-.02em}

/* Preserve readable two-line item names after adding the left-side controls. */
.order-table{min-width:1200px}
@media(max-width:1200px){.order-table{min-width:1200px}}

.order-table{min-width:1180px}
@media(max-width:1200px){.order-table{min-width:1180px}}
.order-table .line-actions-heading{width:66px}
.order-table .line-actions{padding-left:4px;padding-right:4px}
.apple-control{width:25px;height:25px}
.remove-line.apple-control{margin-left:3px}
.order-table{min-width:1150px}
@media(max-width:1200px){.order-table{min-width:1150px}}
.order-table{min-width:1200px}
@media(max-width:1200px){.order-table{min-width:1200px}}

/* Final worksheet column map: number and actions share one compact column. */
.order-table{min-width:1120px}
@media(max-width:1200px){.order-table{min-width:1120px}}
.order-table .line-actions-heading{width:92px;text-align:left;padding-left:12px}
.order-table th:nth-child(2){width:auto}
.order-table th:nth-child(3){width:40%}
.order-table th:nth-child(4){width:92px}
.order-table th:nth-child(5){width:104px}
.order-table th:nth-child(6){width:96px}
.order-table th:nth-child(7){width:100px}
.order-table th:nth-child(8),.order-table th:last-child{width:104px}
.order-table .line-actions{width:92px;padding:6px 7px;text-align:left;white-space:nowrap}
.order-table .line-actions .line-number{display:inline-block;width:18px;margin-right:4px;color:#52617b;font-size:12px;font-weight:650;text-align:center;vertical-align:middle}
.apple-control{width:24px;height:24px;box-shadow:none}
.remove-line.apple-control{margin-left:3px}

/* Keep the row number and controls inside their own column at every viewport. */
.order-table :is(th,td):first-child{width:96px!important;min-width:96px!important;max-width:96px!important;box-sizing:border-box}
.order-table .line-actions{padding:6px 6px;text-align:left;overflow:hidden}
.order-table .line-actions .line-number{width:16px;margin-right:3px}
.apple-control{width:24px;min-width:24px;height:24px;min-height:24px;padding:0}

/* Refined macOS-style line-action cluster: quiet by default, expressive on interaction. */
.order-table :is(th,td):first-child{width:112px!important;min-width:112px!important;max-width:112px!important}
.order-table .line-actions{padding:5px 7px;overflow:visible}
.order-table .line-actions .line-number{width:18px;margin-right:6px;color:#6e6e73;font-size:12px;font-weight:600}
.line-controls{display:inline-flex;align-items:center;gap:1px;padding:2px;border:1px solid #d9d9de;border-radius:9px;background:linear-gradient(180deg,#fff,#f4f4f6);box-shadow:0 1px 2px #0000000a;vertical-align:middle}
.apple-control,.line-info.apple-control,.remove-line.apple-control{width:27px;min-width:27px;height:25px;min-height:25px;margin:0;padding:0;border:0;border-radius:7px;background:transparent;color:#6e6e73;box-shadow:none}
.apple-control svg{width:18px;height:18px;overflow:visible;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.apple-control svg .icon-dot{fill:currentColor;stroke:none}
.line-info.apple-control:hover:not(:disabled),.line-info.apple-control:focus-visible,.line-info.apple-control[aria-expanded=true]{background:#e8f3ff;color:#007aff}
.remove-line.apple-control:hover:not(:disabled),.remove-line.apple-control:focus-visible{background:#ffebe9;color:#ff3b30}
.apple-control:hover:not(:disabled){transform:none;box-shadow:none}
.apple-control:active:not(:disabled){transform:scale(.94)}
.apple-control:focus-visible{outline:2px solid #007aff59;outline-offset:1px}
.apple-control:disabled{opacity:.32}

/* Purpose-led order desk. All operational states come from the existing application. */
/* Keep panel DOM mounted: smooth layout changes preserve inputs and PDF previews. */
:root{--panel-duration:600ms;--panel-easing:cubic-bezier(.4,0,.2,1)}
.inbox{transition:grid-template-columns var(--panel-duration) var(--panel-easing)}
.queue{overflow:hidden}
.queue>:not(.panel-toggle){transition:opacity var(--panel-duration) var(--panel-easing),visibility var(--panel-duration)}
.panel-toggle::before{transition:transform var(--panel-duration) var(--panel-easing)}
.order-overview{transition:opacity var(--panel-duration) var(--panel-easing),visibility var(--panel-duration)}
@media(min-width:1400px){
 .order-editor.source-open,.order-editor.source-collapsed{transition:grid-template-columns var(--panel-duration) var(--panel-easing),column-gap var(--panel-duration) var(--panel-easing)}
 .order-editor.source-collapsed.source-collapsed{grid-template-columns:minmax(0,1fr) 0px;column-gap:0}
 .order-editor.source-collapsed>.order-overview{grid-column:2;grid-row:2 / span 3;position:sticky;top:18px}
}
@media(max-width:1399px){.order-editor.source-collapsed>.order-overview{display:none}}
@media(prefers-reduced-motion:reduce){
 .inbox,.order-editor.source-open,.order-editor.source-collapsed,.order-overview,.queue>:not(.panel-toggle),.panel-toggle::before{transition:none!important}
}
.panel-toggle{display:inline-grid;place-items:center;border:0;background:transparent;color:#777391;width:32px;height:32px;padding:0;font-size:0;cursor:pointer;box-shadow:none;transition:background-color .15s,color .15s}
.panel-toggle::before{content:"";display:block;width:20px;height:20px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='M3 4h18v16H3zM15 4v16M8 9l3 3-3 3'/%3E%3C/svg%3E") center/contain no-repeat}
#toggle-queue::before{transform:scaleX(-1)}
.panel-toggle[aria-expanded=false]::before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='M3 4h18v16H3zM15 4v16M11 9l-3 3 3 3'/%3E%3C/svg%3E")}
.panel-toggle:hover{background:#e8e5f7;color:#5145a2;box-shadow:none}
.panel-toggle:focus-visible{outline:2px solid #7165be;outline-offset:2px}
.detail-tools{display:flex;align-items:center;gap:10px}
.queue>.panel-toggle{display:block;margin:8px 8px 0 auto}
.inbox.queue-collapsed{grid-template-columns:46px minmax(0,1fr)}
.queue-collapsed .queue>:not(.panel-toggle){visibility:hidden;opacity:0;pointer-events:none}
.order-editor.source-collapsed{grid-template-columns:minmax(0,1fr)}
.order-editor.source-collapsed>.order-overview{visibility:hidden;opacity:0;pointer-events:none}
.order-editor.source-collapsed>.items-panel{grid-column:1;grid-row:2}
.distribution-label-summary input{width:280px;max-width:100%;padding:7px 8px;font-size:14px;color:#454082;border:0;border-bottom:1px solid #aaa6cf;background:transparent}
.distribution-label-summary label{font-size:11px;color:#686489}
/* Square geometry throughout the portal, including detached menus and dialogs. */
html body *,html body *::before,html body *::after{border-radius:0!important}
.order-editor .distribution-label-summary{flex-basis:100%;display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 14px;padding:10px 0 0;border-top:1px solid #d8daee;margin-top:4px}
.distribution-label-summary>span{font-size:11px;color:#686489}
.distribution-label-summary>strong{font-size:14px;font-weight:600;color:#454082;overflow-wrap:anywhere}
.distribution-label-summary>small{font-size:11px;color:#6d7087}
/* Native controls retain keyboard behavior; one visual language for all toolbars. */
.queue-controls :is(input,select),.header-actions :is(select,button){font-family:inherit!important;font-size:12px!important;font-weight:500;color:#42496d!important;border:1px solid #d8d9eb!important;border-radius:7px!important;background-color:#f9f9ff!important;box-shadow:0 1px 2px #29295005;min-height:36px!important}
.queue-controls select,.header-actions select{appearance:none;padding:8px 34px 8px 12px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23747799' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 11px center}
.queue-controls input{padding:9px 12px!important}.queue-controls input::placeholder{color:#8186a1}
.queue-controls :is(input,select):focus,.header-actions select:focus{outline:2px solid #7779bb!important;outline-offset:1px!important;box-shadow:none!important;border-color:#aaaed5!important}
.header-actions{align-items:center;gap:8px}.header-actions button{padding:8px 13px!important}.header-actions button:hover:not(:disabled){background:#efeffa!important;border-color:#b9bcdb!important}
.user-tools{gap:12px;font-size:11px;color:#737991}.user-tools>span{max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-tools .text-button,.user-tools button{font-family:inherit;font-size:11px;font-weight:500;color:#565b87;border:0;border-radius:6px;background:transparent;box-shadow:none;padding:7px 9px}
.user-tools button:hover{background:#ededf9;color:#3f4381}.user-tools button:focus-visible{outline:2px solid #7779bb;outline-offset:2px}
:root{--desk-ink:#18243b;--desk-muted:#566780;--desk-border:#dce3ef;--desk-accent:#5256cf;--desk-paper:#fff;font-family:"Segoe UI Variable Text","Segoe UI",system-ui,sans-serif}
body{background:#edf0f6;color:var(--desk-ink)}
button,input,select,textarea{font-family:inherit}
.workspace:not(.is-home):not(.is-customers){background:#edf0f6}
.sidebar{background:#172339;color:#b6c4db;border-right:1px solid #25354e;backdrop-filter:none}
.sidebar .brand{border-color:#304057}.sidebar .brand-name{color:#f3f6fc}.sidebar .brand-name small,.sidebar .nav-heading{color:#a3b3cb}
.sidebar .brand-mark{background:#6065df;border:1px solid #9298f1;box-shadow:none}
.sidebar button.nav-upcoming{color:#b6c4db}.sidebar button.nav-upcoming:hover{background:#273752;color:white}
.sidebar button.nav-current{background:#5057c7;border:1px solid #6e77df;color:white;box-shadow:0 3px 12px #0002}
.sidebar .nav-icon{color:inherit!important}.sidebar-bottom{border-color:#344259;color:#a8b7ce}.sidebar-bottom p{color:#a8b7ce}
.topbar{background:#f9fafe;border-bottom:1px solid #dbe2ee;color:#607089;font-size:12px}
.workspace:not(.is-home):not(.is-customers) .page-heading{padding:20px 22px 5px}
.workspace:not(.is-home):not(.is-customers) .page-heading h1{font-size:26px;font-weight:700;letter-spacing:-.8px;color:#1c2940}
.header-actions select,.header-actions button{font-size:12px;border-radius:8px;border-color:#d2dbe9;min-height:36px}
.auto-sync{color:#64748b;font-size:11px;padding-left:22px}
.inbox{margin-left:22px;margin-right:22px;border:1px solid #d5ddeb;border-radius:14px;box-shadow:0 8px 28px #1e35590b;overflow:hidden;background:white}
.queue{background:#f3f3fc;border-right:1px solid #d8daee;min-width:0}
.queue-controls{padding:20px 14px 10px}
.workspace-kicker{margin:0 0 12px;color:#67768d;font-size:10px;font-weight:700;letter-spacing:1.3px;text-transform:uppercase}
.queue-segments{display:flex;gap:3px;padding:4px;margin-bottom:14px;background:#e9e9f7;border:1px solid #d9daee;border-radius:9px}
.queue-segments button{flex:1;border:0;border-radius:6px;background:transparent;color:#566780;padding:7px 5px;font-size:12px;font-weight:600}
.queue-segments button[aria-pressed=true]{background:white;color:#4148af;box-shadow:0 1px 4px #22385b15}
.queue-controls input,.queue-controls select{border:1px solid #d7dfeb;border-radius:8px;font-size:12px;min-height:38px;background:white}
.queue-summary{padding:11px 0 2px;font-size:10px;color:#607089}
#queue-list{padding:0 0 12px}
.queue-card{width:100%;font-family:inherit;margin:0;padding:10px 14px;border:0;border-bottom:1px solid #e1e7f0;border-radius:0;background:transparent;box-shadow:none;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;align-content:start}
.queue-card:hover{background:#eef1f8}
.queue-card.selected{background:#eceefb;box-shadow:none}
.queue-card.selected:before{top:14px;bottom:14px;left:0;width:3px;border-radius:0 3px 3px 0;background:#555bc6}
.queue-card h3{grid-column:1;grid-row:1;font-size:12px;line-height:20px;font-weight:650;margin:0;color:#233149;letter-spacing:-.1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.queue-card p{grid-column:1/-1;font-size:11px;line-height:16px;color:#61708a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
.queue-card-top{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:flex-end;gap:0}
.queue-card .queue-kind{display:none}
.queue-kind{color:#5c6e88;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:1px}
.queue-card .pill{font-size:10px;padding:3px 6px;border:1px solid #00000007;border-radius:5px}
.queue-card .queue-dates{grid-column:1/-1;font-size:10px;line-height:15px;color:#586a83;margin:0}.queue-dates>span:last-child:not(:first-child){display:none}
.queue-card-bottom{display:none}
.queue-card .editing-badge{grid-column:1/-1;margin:0;font-size:10px}
#detail{background:#f7f7ff}
.order-editor{padding:26px 28px 0;display:grid;grid-template-columns:minmax(0,1fr);column-gap:24px;align-items:start}
.order-editor>.detail-heading{grid-column:1/-1;padding:0 0 22px;margin:0 0 22px;border-bottom:1px solid #dfe5ee;display:flex;justify-content:space-between;gap:20px}
.order-editor .detail-heading .workspace-kicker{display:inline-flex;align-items:center;gap:7px;color:#625229;letter-spacing:1px;margin-bottom:10px}
.order-editor .detail-heading .workspace-kicker:before{content:"";width:6px;height:6px;border:1px solid currentColor;border-radius:50%}
.order-editor .detail-heading h2{font-size:25px;line-height:1.3;font-weight:700;letter-spacing:-.8px;max-width:800px;color:#1b2940}
.order-editor .order-subject{margin:7px 0 0;font-size:13px;color:#62708a;line-height:1.5}
.detail-tools{display:flex;align-items:flex-end;flex-direction:column;gap:12px;flex-shrink:0}
.detail-tools button:not(.panel-toggle){font-size:12px;font-weight:600;border:1px solid #bbc7dc;border-radius:8px;padding:10px 14px;box-shadow:0 1px 2px #23385808}
.panel-toggle{position:relative;line-height:0}
.panel-toggle::before,.panel-toggle[aria-expanded=false]::before{position:absolute;left:50%;top:50%;margin:0;width:20px;height:20px;border:0;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 6 6 6-6 6' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;transform:translate(-50%,-50%) rotate(0deg)}
#toggle-source[aria-expanded=false]::before,#toggle-queue[aria-expanded=true]::before{transform:translate(-50%,-50%) rotate(180deg)}
#toggle-queue[aria-expanded=false]::before{transform:translate(-50%,-50%) rotate(0deg)}
.detail-tools .pill{font-size:10px;letter-spacing:.4px;background:#f0eff9;color:#5a5596}
.extraction-brief{display:flex;align-items:flex-start;gap:13px;padding:17px 18px;margin-bottom:18px;border:1px solid #d9daf2;border-left:3px solid #7074d6;border-radius:9px;background:#f8f8ff}
.brief-symbol{font-size:24px;color:#6669bb;line-height:1.1}
.extraction-brief h3{font-size:12px;font-weight:700;line-height:1.5;color:#464b90;margin:0 0 6px}
.extraction-brief h3 span{display:inline-block;margin-left:10px;font-size:10px;font-weight:400;color:#676e8e}
.extraction-brief p{font-size:13px;line-height:1.75;color:#3e4c67;margin:0;overflow-wrap:anywhere}
.order-review-banner{display:block;margin:0 0 22px;padding:0;background:#fffcf5;border:1px solid #e9d9b5;color:#705b2c;border-radius:8px;font-size:12px}
#detail>.order-review-banner{margin:20px 28px 0}
.order-review-banner>summary{padding:12px 14px;display:flex;gap:10px;align-items:center;cursor:pointer;list-style:none}
.order-review-banner>summary::-webkit-details-marker{display:none}.order-review-banner strong{color:inherit;font-weight:650}
.review-dot{width:19px;height:19px;display:grid;place-items:center;border:1px solid #cfb77f;border-radius:50%;font-size:11px;font-weight:700}
.review-hint{margin-left:auto;font-size:11px}.review-hint:after{content:" +";font-size:14px}.order-review-banner[open] .review-hint:after{content:" −"}
.order-review-banner ul{list-style:none;margin:0;padding:0 16px 12px 43px}
.order-review-banner li{padding:10px 0;border-top:1px solid #eee4cf}.order-review-banner li p{margin:5px 0 0;font-size:12px;line-height:1.65}
.order-editor .worksheet-meta{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-bottom:18px;padding:16px;border:1px solid #dce3ed;background:white;border-radius:9px}
.order-editor .delivery-field{flex-shrink:0}.order-editor .delivery-field label{font-size:11px;font-weight:600;color:#52627c}
.order-editor #requested-date{border:1px solid #c5d0e1;border-radius:6px;font-size:13px;background:#f9fbfe}
.order-editor .date-note{flex:1 1 240px;font-size:11px;line-height:1.6;color:#5c6e85}
.order-editor .customer-link{font-size:11px;gap:6px;color:#63728b}
.order-editor .section-heading{margin:0 0 8px}.order-editor .section-heading h3{font-size:16px;font-weight:650;letter-spacing:-.3px}
.order-editor .section-heading h3 span{font-size:11px;border:1px solid #dce3ef;background:#f4f6fa;border-radius:5px;padding:2px 6px;margin-left:6px}
.order-editor .section-heading>span{font-size:11px;color:#60728b}
.order-editor .catalog-toolbar{margin-bottom:9px;min-height:18px}.order-editor .catalog-toolbar>span{font-size:11px;color:#697990}
.order-editor .table-scroll{border:1px solid #d3d5ec;border-radius:8px 8px 0 0;background:#fff}
.order-editor .order-table{min-width:1080px;font-size:13px;color:#24334c}
.order-editor .order-table th{background:#ececfa;color:#50557f;font-size:11px;font-weight:650;border:0;border-bottom:1px solid #d3d5ec;padding:13px 9px}
.order-editor .order-table td{height:62px;border:0;border-bottom:1px solid #e0e6ef;padding:8px 9px}
.order-editor .order-table td+td{border-left:1px solid #edf0f6}
.order-editor .order-table th:nth-child(2){width:220px}.order-editor .order-table th:nth-child(3){width:auto}
.order-editor .order-table th:nth-child(4){width:80px}.order-editor .order-table th:nth-child(5){width:80px}
.order-editor .order-table th:nth-child(6){width:116px}.order-editor .order-table th:nth-child(7){width:100px}.order-editor .order-table th:nth-child(8){width:90px}
.order-editor .order-table .currency-input{gap:5px;padding:0 6px;min-width:0}
.order-editor .order-table .currency-input input{width:100%;min-width:0;text-align:right;padding:8px 5px}
.order-editor .order-table .qty-cell input{padding-right:10px}
.order-editor .table-scroll{scrollbar-gutter:stable;overscroll-behavior-x:contain}
.order-editor .order-table :is(th,td):first-child{width:100px!important;min-width:100px!important;max-width:100px!important}
.order-editor .order-table .product-cell,.order-editor .order-table .qty-cell,.order-editor .order-table .price-cell{padding:3px}
.order-editor .order-table input{font-size:13px;border-radius:0;border:0;border-bottom:1px solid transparent;background:transparent;box-shadow:none}
.order-editor .order-table input.field-error{border-color:transparent!important;border-bottom-color:#b89450!important;background:transparent!important;box-shadow:none!important}
.order-editor .order-table input.field-error:focus{background:#fff!important}
.order-editor .order-table input::placeholder{color:#77748b}
/* Compact catalog suggestions: one row per product, not wrapped cards. */
.product-results{font-family:Arial,sans-serif;font-size:13px;border:1px solid #dcdced;border-radius:6px;padding:4px;background:#fff;box-shadow:0 6px 18px #28224914;overflow-x:hidden}
.product-results [role=option]{display:flex;gap:20px;min-height:36px;padding:8px 10px;border-radius:3px;white-space:nowrap}
.product-results [role=option] span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
.product-results small{flex:none;font-size:11px;color:#6d7087;white-space:nowrap}
.product-results [role=option]:hover,.product-results [aria-selected=true]{background:#efedfb;color:#433a88}
.order-editor .order-table .line-controls{border:0;background:transparent;box-shadow:none;padding:0}
.order-editor .order-table .line-number{background:transparent;border-radius:0}
.order-editor .order-table input:hover:not(:disabled){background:#f0f3fa}
.order-editor .order-table input:focus{outline:2px solid #7479cb;outline-offset:-2px;background:white}
.order-editor .requested-cell{white-space:normal;font-weight:500;line-height:1.5}
.source-quantity{display:block;color:#726040;font-size:11px;font-weight:400;margin-top:5px}
.order-editor .order-line.attention{background:#fff9e6}.order-editor .order-line.attention td:first-child{box-shadow:inset 3px 0 #d4a72c}
.order-editor .order-line:not(.attention):not(.edited){background:#f0faf4}
.order-editor .order-line:not(.attention):not(.edited) td:first-child{box-shadow:inset 3px 0 #2d9260}
.order-editor .order-line.edited:not(:has(.field-error)){background:#edf5ff}
.order-editor .order-line.edited:not(:has(.field-error)) td:first-child{box-shadow:inset 3px 0 #2874c5}
.order-editor .order-line.edited:not(:has(.field-error)) .requested-cell{color:#234f7c}
.order-editor .order-line:has(input:invalid){background:#fff0ef}
.order-editor .order-line:has(input:invalid) td:first-child{box-shadow:inset 3px 0 #c6423a}
.order-editor .order-line input:invalid{border-bottom-color:#c6423a!important}
.order-editor .order-table .pill.neutral{background:#dfeeff;color:#245c96}
.order-editor .order-table .pill.green{background:#dcf3e5;color:#226741}
.order-editor .order-table .pill.amber{background:#fff0bd;color:#795609}
.order-editor .order-table input:focus{outline-color:#2874c5}
.order-editor .order-line.attention .requested-cell{color:#6c562e}
.order-editor .order-line.attention .product-search{border:0;border-bottom:1px solid #b89450;background:transparent}
.order-editor .order-table .pill{font-size:10px;padding:4px 6px;border-radius:5px;font-weight:600}
.order-editor .order-total{display:none}
.order-editor .edit-actions{position:sticky;bottom:0;z-index:5;padding:14px;margin:0;border:1px solid #cfd9e7;border-top:0;border-radius:0 0 8px 8px;background:#efeffbee;box-shadow:0 -5px 16px #1c31530a;backdrop-filter:blur(14px);flex-wrap:wrap}
.action-total{font-size:10px;color:#5d6d83;text-transform:uppercase;letter-spacing:.6px;min-width:80px}
.action-total strong{display:block;color:#253653;font-size:19px;font-weight:700;letter-spacing:-.5px;font-variant-numeric:tabular-nums;margin-top:3px}
.edit-actions>div{margin-left:auto}.edit-actions button{font-size:12px}.edit-actions .primary{background:#4f56bd;border:1px solid #434baa;border-radius:7px;font-weight:600;box-shadow:0 2px 4px #343e751a}
.edit-actions .primary:hover:not(:disabled){background:#4047a8}
.order-editor .selection-notice{font-size:11px;color:#735793;padding:8px 0}.order-editor .selection-notice:empty{display:none}
.order-editor>.evidence-panel{grid-column:1;margin-top:18px}.order-editor>.approval-panel{grid-column:1;margin-top:6px}
.order-editor .instructions{background:#f6f8fc;border:1px solid #dce3ef;border-radius:8px;padding:14px;margin-bottom:12px}
.order-editor .instructions h3{font-size:11px;color:#526580}.order-editor .instructions p{font-size:13px;line-height:1.7}
.order-editor .source-details{font-size:12px;color:#62738c}
.order-editor .approval-panel{border-top:1px solid #dce3ef;padding:18px 0}.order-editor .approval-heading{font-size:12px}
.order-editor .approval-panel p{font-size:11px;color:#60718a;line-height:1.6}
.order-overview{min-width:0}.order-overview .email-panel{margin:0 0 20px;background:#f0f0fc;border:1px solid #d3d5ed;border-radius:10px;padding:20px}
.order-overview .email-heading{display:block}.order-overview .email-heading h3{font-size:14px;font-weight:650;margin-bottom:7px;color:#2c3b56}
.order-overview .email-sent{display:block;font-size:11px;color:#687992}.order-overview .email-panel>p{font-size:13px;line-height:1.8;color:#485b78}
.order-overview details{border-top:1px solid #dbe3ef;padding-top:14px;margin-top:16px}.order-overview summary{font-size:12px;color:#4e58aa;font-weight:600;cursor:pointer}
.order-overview pre{font-family:inherit;font-size:13px;line-height:1.8;max-height:55vh;overflow:auto;margin-top:14px;color:#374b68}
@media(min-width:1100px){.inbox{grid-template-columns:300px minmax(0,1fr)}}
@media(min-width:1400px){.order-editor.source-open{grid-template-columns:minmax(0,1fr) 300px}.order-editor.source-open>.order-overview{grid-column:2;grid-row:2 / span 3;position:sticky;top:18px}.order-editor.source-open>.items-panel{grid-column:1;grid-row:2}}
@media(max-width:900px){.order-editor{padding:20px 16px 0}.order-editor .detail-heading{flex-wrap:wrap}.detail-tools{flex-direction:row;align-items:center}.inbox{margin-left:14px;margin-right:14px}.extraction-brief h3 span{display:block;margin-left:0}}
@media(max-width:640px){.sidebar .brand-name{color:#f3f6fc}.inbox{border-radius:10px}.order-editor .detail-heading h2{font-size:22px}.queue-controls{padding:12px}.queue-card{padding:12px}.order-editor .edit-actions{gap:8px}.edit-actions>div{gap:4px}.review-hint{display:none}.order-editor .worksheet-meta{gap:10px}.order-editor .section-heading{gap:8px}.order-editor .detail-heading{margin-bottom:18px;padding-bottom:18px}}
.attachment-panel{margin-top:16px;padding:16px;border:1px solid #d9d9f1;border-radius:12px;background:#f8f7ff;min-width:0}.attachment-panel[hidden]{display:none}.attachment-panel header{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.attachment-panel h3{font-size:13px;margin:0;color:#27284d}.attachment-panel h3 span{font-weight:400;color:#77769b}.attachment-panel small,.attachment-meta{font-size:11px;color:#6d6d8c}.attachment-file{padding:14px 0;border-top:1px solid #e3e2f1;margin-top:12px;min-width:0}.attachment-file strong{display:block;font-size:12px;overflow-wrap:anywhere}.attachment-meta{display:block;margin-top:5px}.attachment-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.attachment-actions button{padding:6px 9px;font-size:11px;border:1px solid #d6d4ec;background:white;border-radius:6px;color:#4d4694}.attachment-feedback{font-size:11px;margin:6px 0}.attachment-preview img{max-width:100%;height:auto}.attachment-preview iframe{width:100%;height:420px;border:1px solid #d6d4ec;background:white}.signature-files{margin-top:12px;font-size:11px;color:#6d6d8c}.signature-files summary{cursor:pointer}
.attachment-preview canvas{width:100%;height:auto;background:white;border:1px solid #d6d4ec}.attachment-preview .attachment-actions{align-items:center;justify-content:space-between;margin-bottom:8px}
.order-overview > .attachment-panel{margin-top:0;margin-bottom:16px}

/* Compact review workspace: items first, supporting context on demand. */
:root{font-family:Arial,"Segoe UI",sans-serif}
.topbar{height:38px}
.workspace:not(.is-home):not(.is-customers) .page-heading{padding:10px 22px 3px;align-items:center}
.workspace:not(.is-home):not(.is-customers) .page-heading h1{font-size:22px;letter-spacing:-.5px}
.auto-sync{padding-bottom:6px;font-size:10px}
.order-editor{padding:16px 22px 0;column-gap:24px}
.order-editor>.detail-heading{padding-bottom:12px;margin-bottom:12px;gap:10px}
.order-editor .detail-heading>div:first-child{display:flex;align-items:center;flex-wrap:wrap;gap:5px 12px;min-width:0}
.order-editor .detail-heading h2{order:0;font-size:22px;line-height:1.25;margin:0;letter-spacing:-.45px}
.order-editor .detail-heading .workspace-kicker{order:1;margin:0;font-size:9px;letter-spacing:.65px;white-space:nowrap}
.order-editor .order-subject{order:2;flex-basis:100%;margin:0;font-size:12px;line-height:1.4}
.order-editor .extraction-brief{display:block;padding:8px 12px;margin-bottom:10px;border-left-width:2px;border-radius:7px}
.extraction-brief summary{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:#50509a;cursor:pointer;list-style:none}
.extraction-brief summary::after{content:"+";margin-left:auto}.extraction-brief[open] summary::after{content:"−"}
.extraction-brief .brief-symbol{font-size:16px}.extraction-brief .brief-caution{font-size:10px;font-weight:400;color:#74738e}
.extraction-brief p{margin:8px 0 0;line-height:1.5}
.order-metadata{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;padding:10px 12px;margin-bottom:10px;border:1px solid #d9d9ee;border-radius:8px;background:#fafaff}
.order-editor .order-metadata .worksheet-meta,.order-metadata .purchase-order-field{display:contents}
.order-metadata .customer-link{margin-left:auto;order:3;gap:5px}
.order-metadata .delivery-field{gap:8px}
.order-metadata .purchase-order-field>label:not(.po-confirm){font-size:11px}
.order-metadata .purchase-order-field>input{width:190px;min-height:34px;padding:6px 9px;font-size:12px}
.order-metadata .delivery-field input{min-height:34px;padding:6px 9px;width:150px}
.order-metadata .po-confirm{order:4;flex-basis:100%}
.order-editor .order-review-banner{margin-bottom:12px}
.order-review-banner>summary{padding:9px 12px}
.order-editor .section-heading{margin:0 0 8px;align-items:center}
.order-editor .section-heading h3{margin:0;font-size:14px}
.order-editor .catalog-toolbar:has(>span:only-child){display:none}
.order-editor .order-table th{padding-top:10px;padding-bottom:10px}
.order-overview .email-panel{padding:14px}.order-overview .email-heading h3{font-size:13px;margin-bottom:4px}
.order-overview pre{line-height:1.55;margin-top:10px}
.queue-controls{padding:12px 14px 8px}
.queue-controls>.workspace-kicker{display:none}
.queue-segments{margin-bottom:8px}
.queue-summary{padding-top:8px}
@media(max-width:900px){.order-editor{padding:14px 16px 0}.order-editor .detail-heading h2{font-size:20px}.order-metadata{gap:9px}.order-metadata .customer-link{flex-basis:100%}}
@media(max-width:640px){.workspace:not(.is-home):not(.is-customers) .page-heading{padding:10px 14px 3px}.header-actions{margin-top:0}.order-editor .detail-heading .workspace-kicker{white-space:normal}.order-metadata .purchase-order-field>input{flex:1;min-width:0}.extraction-brief .brief-caution{font-size:9px}}

.purchase-order-field{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 16px;margin:-6px 0 18px;border:1px solid #d9d9ee;border-radius:8px;background:#f6f5ff}.purchase-order-field>label{font-size:12px;color:#414571}.purchase-order-field>input{width:230px;max-width:100%;font-size:13px;border:1px solid #cecee6;border-radius:6px;padding:9px 10px;background:#fff}.purchase-order-field small{font-size:11px;color:#6b6b8a}.purchase-order-field .po-confirm{flex-basis:100%;display:flex;align-items:center;gap:7px}.po-confirm input{width:auto}
.source-resize{display:none}.document-toolbar{display:flex;align-items:center;gap:5px;padding:8px 0;position:sticky;top:0;background:#f8f7ff;z-index:1}.document-toolbar button{border:1px solid #d6d4ec;background:white;color:#4d4694;border-radius:6px;padding:6px 9px;font:inherit;font-size:12px;cursor:pointer}.document-toolbar button:focus-visible,.source-resize:focus-visible{outline:2px solid #655dd4;outline-offset:2px}.document-toolbar button:disabled{opacity:.45;cursor:default}.document-toolbar .document-expand{margin-left:auto}.document-zoom{font-size:11px;min-width:35px;text-align:center}.document-scroll{overflow:auto;max-height:65vh;background:#e9e9f4;border:1px solid #d6d4ec}.document-scroll canvas,.document-scroll img{display:block;height:auto;border:0}.document-dialog{width:min(1100px,94vw);max-width:94vw;height:94vh;max-height:94vh;padding:16px;border:1px solid #cecaea;border-radius:14px;background:#f8f7ff;box-shadow:0 20px 90px #15132f66;overflow:auto}.document-dialog::backdrop{background:#14132999}.document-dialog .document-scroll{max-height:calc(94vh - 130px)}.document-dialog .attachment-preview{display:block}.attachment-file>strong{font-weight:550;font-size:11px;line-height:1.5}.attachment-file{padding:10px 0;margin-top:8px}.attachment-panel{padding:12px}.attachment-actions{margin-top:7px}
@media(min-width:1400px){.order-editor.source-open{grid-template-columns:minmax(0,1fr) var(--source-width,420px)}.source-resize{display:block;position:absolute;left:-19px;top:0;bottom:0;width:14px;cursor:col-resize;touch-action:none;border-radius:6px}.source-resize::after{content:'';position:absolute;left:6px;top:0;bottom:0;width:2px;background:#d6d2ec}.source-resize:hover::after,.source-resize:focus::after{background:#7166cc;width:3px}}
/* Explicit exclusion decisions stay separate from editable invoice lines. */
.excluded-lines { margin-top:18px;border-top:1px solid #cbd5e1;padding-top:12px; }
.excluded-lines h3 {font-size:13px;margin:0 0 8px;}
.excluded-line {display:flex;align-items:center;gap:16px;padding:10px 0;border-bottom:1px solid #e2e8f0;}
.excluded-line>div {flex:1;min-width:0;}
.excluded-line strong {font-size:13px;overflow-wrap:anywhere;}
.excluded-line small {display:block;color:#64748b;margin-top:4px;}
.removal-dialog {border:1px solid #94a3b8;padding:24px;max-width:min(460px,90vw);color:#172b4d;box-shadow:0 16px 60px #0f172a30;}
.removal-dialog::backdrop {background:#0f172a55;}
.removal-dialog form {display:flex;flex-direction:column;gap:12px;}
.removal-dialog h3,.removal-dialog p {margin:0;}
.removal-dialog button {padding:10px 14px;border:1px solid #cbd5e1;background:#f8fafc;color:#173f75;text-align:left;cursor:pointer;}
.removal-dialog button:hover {background:#e8eff9;}
@media(max-width:700px){.excluded-line{flex-wrap:wrap}.excluded-line>div{flex-basis:100%}}
.customer-order-tools { display:flex; align-items:center; gap:16px; padding:0 0 12px; }
.customer-order-tools[hidden] { display:none; }
.customer-order-tools strong { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media(max-width:600px) { .customer-order-tools { flex-wrap:wrap; gap:8px; } .customer-order-tools strong { flex-basis:100%; order:-1; } }

/* Shared action hierarchy: square, tactile controls rather than text links. */
:is(.workspace,.user-tools,.document-dialog) :is(button.primary,button.secondary,button.text-button,.attachment-actions button,.document-toolbar button,.header-actions button){
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:36px;padding:8px 14px;border:1px solid #c5d2e0!important;border-radius:0!important;
  background:#fff!important;color:#244565!important;font-family:inherit;font-size:12px;font-weight:600;line-height:1.25;
  text-decoration:none!important;white-space:nowrap;box-shadow:0 1px 2px #1634520a;
  transition:background-color 180ms ease,border-color 180ms ease,box-shadow 180ms ease;
}
:is(.workspace,.user-tools,.document-dialog) :is(button.primary,button.secondary,button.text-button,.attachment-actions button,.document-toolbar button,.header-actions button):hover:not(:disabled){
  background:#edf4fb!important;border-color:#8ca9c7!important;color:#173e69!important;box-shadow:0 2px 5px #16345212;
}
.workspace button.primary{background:#173e69!important;border-color:#173e69!important;color:#fff!important;box-shadow:0 2px 4px #16345220}
.workspace button.primary:hover:not(:disabled){background:#245583!important;border-color:#245583!important;color:#fff!important}
:is(.workspace,.user-tools,.document-dialog) button:focus-visible{outline:2px solid #3981c4;outline-offset:3px}
:is(.workspace,.user-tools,.document-dialog) :is(button.primary,button.secondary,button.text-button,.attachment-actions button,.document-toolbar button):disabled{
  background:#e8edf3!important;border-color:#d8e0e9!important;color:#8796a8!important;box-shadow:none;opacity:1;cursor:not-allowed;
}
.attachment-actions button,.document-toolbar button{min-height:32px!important;padding:7px 11px!important;font-size:11px!important}
.edit-actions>div{display:flex;align-items:center;gap:8px}
.customer-order-tools{margin:0 22px 12px;padding:10px 12px;background:#f7fafd;border:1px solid #d5dfeb;gap:12px}
.customer-order-tools strong{font-size:13px;color:#244565}
.user-tools button{min-height:30px!important;padding:6px 10px!important;font-size:11px!important;background:transparent!important;border-color:transparent!important;box-shadow:none!important}
.queue-segments{border-radius:0!important;background:#e7eef6!important;border-color:#cbd8e6!important}
.queue-segments button{border-radius:0!important;color:#526b85!important;transition:background-color 180ms ease,color 180ms ease}
.queue-segments button[aria-pressed=true]{background:#173e69!important;color:white!important;box-shadow:0 1px 3px #173e6920}
.header-actions select{border-radius:0!important;border-color:#c5d2e0!important;background-color:#fff!important;color:#244565!important}
@media(prefers-reduced-motion:reduce){.workspace button,.user-tools button,.document-dialog button{transition:none!important}}

/* Delivery calendar: blue for activity, green for invoiced, amber for missing dates. */
#calendar-workspace[hidden]{display:none}
#calendar-workspace{min-height:0;min-width:0;flex:1 1 0!important;overflow:auto;padding:0 22px 22px;color:#19324f}
.cal-toolbar,.cal-period,.cal-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cal-toolbar{justify-content:space-between;margin:4px 0 10px}
.cal-period h2{font-size:22px;letter-spacing:-.5px;margin:0 8px;min-width:190px}
.cal-toolbar button,.cal-toolbar input{border:1px solid #cbd7e4;background:#fff;color:#244565;padding:9px 13px;font:inherit}
.cal-switch{display:flex}.cal-switch button+button{border-left:0}.cal-switch [aria-pressed=true]{background:#173e69;color:#fff;border-color:#173e69}
.cal-caption{display:flex;justify-content:space-between;color:#5a6e85;font-size:12px;margin-bottom:16px}
.cal-metrics{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #d5dfeb;background:#fff;margin-bottom:18px}
.cal-metrics>div,.cal-metrics>button{padding:14px 20px;text-align:left;border:0;border-right:1px solid #d5dfeb;background:transparent;color:inherit}
.cal-metrics strong{display:block;font-size:28px;font-weight:650;line-height:1.15;font-variant-numeric:tabular-nums}.cal-metrics span{font-size:12px;color:#5a6e85}.cal-metrics>button{color:#996419;cursor:pointer}
.cal-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}
.cal-board{min-width:0;background:#fff;border:1px solid #d5dfeb}
.cal-weekdays,.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.cal-weekdays{background:#eaf0f7;color:#52677f;text-align:center;font-size:11px;text-transform:uppercase;letter-spacing:1px;padding:10px 0}
.cal-cell{min-width:0;min-height:135px;padding:10px;text-align:left;display:flex;flex-direction:column;gap:7px;background:#fff;color:#19324f;border:0;border-right:1px solid #e0e7f0;border-top:1px solid #e0e7f0;cursor:pointer;font:inherit}
.cal-cell:hover{background:#f2f7fc}.cal-cell.selected{background:#edf5ff;box-shadow:inset 0 0 0 2px #2d69ab}.cal-cell.outside{background:#f8fafc;color:#8b98a9}.cal-day-number{font-size:13px;font-weight:650}.cal-cell.today .cal-day-number{background:#173e69;color:white;padding:3px 7px;align-self:flex-start}
.cal-count{font-size:11px;color:#225e98;display:flex;flex-wrap:wrap;gap:3px}.cal-count span{color:#257253;display:block;width:100%}.cal-zero{font-size:10px;color:#8998a9}
.cal-names{min-width:0;display:grid;gap:4px;font-size:10px}.cal-names>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cal-names small{color:#376493}
.cal-week .cal-cell{min-height:350px}.cal-agenda{background:#fff;border:1px solid #d5dfeb;min-width:0}
.cal-agenda>header{background:#173e69;color:#fff;padding:18px 20px}.cal-agenda>header>span{font-size:11px;letter-spacing:1px;text-transform:uppercase;color:#b5cee7}.cal-agenda h3{font-size:24px;margin:5px 0}.cal-agenda header p{margin:0;font-size:12px;color:#d6e4f2}
.cal-agenda section{padding:16px}.cal-agenda h4{margin:0 0 10px;font-size:13px;display:flex;justify-content:space-between;gap:8px}.cal-agenda h4 span{font-weight:400;color:#697e94}
.cal-order{display:flex;flex-direction:column;gap:5px;width:100%;text-align:left;background:#fff;border:0;border-bottom:1px solid #e3eaf2;padding:12px 0;color:#19324f;cursor:pointer}
.cal-order:hover{background:#f2f7fc}.cal-order strong{font-size:12px}.cal-order>span{font-size:11px;color:#6b7f94;overflow-wrap:anywhere}.cal-order small{font-size:10px}.cal-green{color:#20704b}.cal-blue{color:#225e98}
.cal-missing{border-top:1px solid #d5dfeb}.cal-missing p{font-size:11px;color:#6d7d8f;line-height:1.5}.cal-missing>div{max-height:260px;overflow:auto;display:grid;gap:9px;font-size:11px;color:#617184}
.cal-empty{padding:16px 0;color:#6d7d8f;font-size:13px}.cal-definitions{margin-top:16px;color:#6d7d8f;font-size:11px;line-height:1.6}.cal-definitions summary{cursor:pointer}
.cal-day-layout{display:block}.cal-day-layout .cal-board{display:none}.cal-day-layout .cal-agenda{display:grid;grid-template-columns:220px minmax(0,1fr) minmax(220px,.7fr)}.cal-day-layout .cal-missing{border-top:0;border-left:1px solid #d5dfeb}.cal-day-layout .cal-missing>div{max-height:none}
.cal-undated{padding:18px;background:#fffbef;border:1px solid #e5d6ad;margin-top:18px}.cal-undated h3{margin:0;font-size:16px}.cal-undated .cal-order{background:transparent}
@media(max-width:1100px){.cal-layout{grid-template-columns:minmax(0,1fr)}.cal-agenda{display:grid;grid-template-columns:180px 1fr 1fr}.cal-cell{padding:7px;min-height:120px}.cal-missing{border-top:0}.cal-day-layout .cal-agenda{grid-template-columns:180px 1fr 1fr}}
@media(max-width:650px){#calendar-workspace{padding:0 10px 14px}.cal-period h2{font-size:18px;min-width:0}.cal-metrics{grid-template-columns:repeat(2,1fr)}.cal-metrics>div,.cal-metrics>button{padding:12px}.cal-cell{min-height:92px;padding:5px}.cal-names{display:none}.cal-count{font-size:9px}.cal-count span{font-size:8px}.cal-zero{font-size:8px}.cal-agenda,.cal-day-layout .cal-agenda{display:block}.cal-week .cal-cell{min-height:140px}.cal-weekdays{font-size:9px;letter-spacing:0}.cal-caption{gap:10px}.cal-toolbar button,.cal-toolbar input{padding:8px}.cal-missing{border-top:1px solid #d5dfeb}}

.cal-status-counts{display:grid;gap:4px;font-size:11px;line-height:1.3;width:100%}
.cal-status-counts>span{display:flex;gap:6px;align-items:center;white-space:nowrap;padding:2px 0;font:inherit;text-align:left}
.cal-open-day{border:0;background:transparent;color:inherit;font:inherit;padding:0;cursor:pointer;text-align:left}
.cal-open-day:hover{text-decoration:underline}
.cal-open-day:focus-visible{outline:2px solid white;outline-offset:3px}
.cal-status-counts>button:hover,.cal-status-counts>button[aria-pressed=true]{background:#dceafa;text-decoration:underline}
.cal-day-number{border:0;background:transparent;color:inherit;text-align:left;padding:0;cursor:pointer}
.cal-filter-note{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;background:#edf5ff;color:#244565;font-size:12px}
.cal-filter-note button{border:0;background:transparent;color:#225e98;text-decoration:underline;cursor:pointer}
.cal-status-counts b{font-variant-numeric:tabular-nums;min-width:14px}
.cal-completed{color:#237148!important}.cal-review,.cal-pending{color:#a16b12!important}.cal-invoiced{color:#225e98!important}
.cal-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(min-width:901px){
 #calendar-workspace{display:flex;flex-direction:column;overflow:hidden;padding-bottom:8px}
 .cal-toolbar,.cal-caption,.cal-metrics,.cal-definitions{flex-shrink:0}
 .cal-toolbar{margin:0 0 6px}.cal-caption{margin-bottom:8px}
 .cal-metrics{margin-bottom:10px}.cal-metrics>div,.cal-metrics>button{padding:9px 16px}.cal-metrics strong{font-size:24px}
 .cal-layout{flex:1;min-height:0;align-items:stretch}
 .cal-board{display:flex;flex-direction:column;min-height:0}
 .cal-weekdays{flex-shrink:0;padding:7px 0}
 .cal-grid{flex:1;min-height:0;grid-auto-rows:minmax(0,1fr)}
 .cal-cell,.cal-week .cal-cell{min-height:0;padding:6px 9px;gap:3px;overflow:hidden}
 .cal-day-number{font-size:12px;line-height:15px}
 .cal-cell.today .cal-day-number{padding:0 5px}
 .cal-agenda{min-height:0;overflow:auto}
 .cal-agenda>header{padding:12px 16px}.cal-agenda h3{font-size:21px}
 .cal-definitions{margin-top:6px}.cal-definitions[open]{max-height:100px;overflow:auto}
 .cal-undated{position:absolute;z-index:5;inset:25% 10% 10%;overflow:auto;box-shadow:0 12px 48px #19324f33}
 .cal-day-layout .cal-agenda{height:100%}
}
@media(min-width:901px) and (max-height:800px){
 .cal-status-counts{font-size:10px;gap:1px;line-height:1.15}
 .cal-cell,.cal-week .cal-cell{padding:3px 6px;gap:1px}
 .cal-toolbar button,.cal-toolbar input{padding:5px 9px}
 .cal-metrics>div,.cal-metrics>button{padding:5px 12px}
 .cal-metrics strong{font-size:20px}
}
@media(max-width:650px){.cal-status-counts{font-size:7px;gap:4px}.cal-status-counts>span{gap:2px}.cal-status-counts b{min-width:5px}}

/* One compact row per customer; only the list scrolls. */
.cal-agenda.cal-compact,.cal-day-layout .cal-agenda.cal-compact{display:flex;flex-direction:column;overflow:hidden}
.cal-compact>header,.cal-customer-controls{flex-shrink:0}
.cal-customer-controls{padding:12px;border-bottom:1px solid #dce5ef}
.cal-customer-tabs{display:flex;margin-bottom:10px}
.cal-customer-tabs button{flex:1;border:1px solid #d4deeb;padding:8px 4px;background:#f5f8fc;color:#5a7089;font:inherit;font-size:11px;white-space:nowrap}
.cal-customer-tabs button+button{border-left:0}
.cal-customer-tabs button[aria-pressed=true]{background:#173e69;color:white;border-color:#173e69}
.cal-customer-tabs b{font-size:10px;margin-left:4px}
#cal-customer-search{width:100%;min-width:0;padding:8px 10px;font-size:12px;border:1px solid #d4deeb;background:white}
.cal-customer-list{overflow:auto;min-height:0;flex:1}
.cal-customer-row{display:block;width:100%;border:0;border-bottom:1px solid #e0e7ef;padding:12px 14px;background:#fff;color:#19324f;text-align:left;font:inherit}
.cal-customer-row:hover,.cal-customer-row[aria-expanded=true]{background:#f0f6fc}
.cal-customer-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;font-weight:650}
.cal-customer-meta{display:flex;align-items:center;gap:7px;margin-top:6px;font-size:10px;color:#657d95}
.cal-customer-badges{display:flex;gap:6px;flex:1}
.cal-mini-status{font-size:9px;font-weight:600;white-space:nowrap}
.cal-expand-icon{font-size:16px;line-height:12px;color:#32638e;margin-left:auto}
.cal-customer-orders{padding:0 14px 0 22px;background:#f5f8fc;border-left:3px solid #2f659c}
.cal-customer-orders .cal-order{background:transparent;padding:10px 0}
.cal-customer-orders .cal-order small{color:#42688e}
.cal-absent-row{padding:11px 14px;border-bottom:1px solid #e7edf4;color:#536c85;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cal-roster-note{font-size:10px;line-height:1.5;color:#738399;padding:0 14px}
.cal-customer-list>.cal-empty{padding:14px}
.cal-day-layout .cal-customer-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));align-content:start}
.cal-day-layout .cal-roster-note{grid-column:1/-1}
@media(max-width:900px){.cal-agenda.cal-compact{max-height:480px}.cal-day-layout .cal-agenda.cal-compact{height:auto;max-height:600px}}

/* Operational design system: calm surfaces, strong hierarchy, semantic state. */

.is-messages #detail{background:#fff;scroll-behavior:auto}
.is-messages .message-reader{padding:28px 36px;max-width:1040px;margin:0 auto;width:100%;box-sizing:border-box}
.is-messages .message-heading{border-bottom:1px solid #e2e8ef;padding-bottom:20px;margin-bottom:24px}
.is-messages .message-eyebrow{display:flex;justify-content:space-between;align-items:center;gap:16px;color:#64748b;font-size:12px;margin-bottom:16px}
.is-messages .message-heading h2{font-family:Georgia,serif;font-size:27px;font-weight:400;line-height:1.25;text-transform:none;margin:0 0 8px;color:#17385a}
.is-messages .message-subject{font-size:14px;color:#64748b;margin:0}
.is-messages .message-type{display:inline-block;font-size:11px;line-height:1.5;color:#315574;background:#edf3f8;padding:3px 8px;font-weight:500;text-transform:none}
.is-messages .message-content pre,.is-messages .message-disclosure pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:16px;line-height:1.75;color:#263b50;margin:0;max-height:none;overflow:visible}
.is-messages .message-content{padding-bottom:24px}
.is-messages .message-disclosure{border-top:1px solid #e2e8ef;padding:14px 0;margin:0;font-size:14px;color:#52677e}
.is-messages .message-disclosure summary{cursor:pointer;font-weight:500;list-style-position:inside;padding:5px 0}
.is-messages .message-disclosure summary span{font-size:11px;color:#7b8998;margin-left:10px}
.is-messages .message-disclosure[open]>:not(summary){margin-top:16px}
.is-messages .message-disclosure pre{font-size:13px;line-height:1.6}
.is-messages .message-related{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e2e8ef;padding:18px 0;margin:0;background:none}
.is-messages .message-related h3{font-size:13px;margin:0 0 5px}
.is-messages .message-related p{font-size:13px;color:#64748b;margin:0}
.is-messages #related-order-preview{flex-basis:100%}
.is-messages #related-order-preview:empty{display:none}
.is-messages .message-safety{font-size:12px;color:#64748b;margin:0 0 16px}
.is-messages .message-card{display:block;width:100%;min-height:0;padding:18px 16px;text-align:left;border-radius:0}
.is-messages .message-card-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:7px}
.is-messages .message-card-heading h3{font-family:Georgia,serif;font-size:16px;font-weight:400;line-height:1.35;white-space:normal;text-transform:none;margin:0;color:#183c61}
.is-messages .message-card-heading>span{flex-shrink:0;font-size:10px;color:#718096}
.is-messages .message-card .message-card-subject{font-size:12px;color:#344b63;margin:0 0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.is-messages .message-card .message-card-preview{font-size:12px;line-height:1.5;color:#738195;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:normal;margin:0 0 10px}
.is-messages .message-card:hover{background:#f4f8fc}
.is-messages .message-card.selected{background:#edf4fc;box-shadow:inset 3px 0 #2563a6}
.is-messages .message-thread{margin:0 36px}
.is-messages .message-thread .instructions{background:transparent;padding:0;border:0}
@media(max-width:800px){.is-messages .message-reader{padding:22px 18px}.is-messages .message-eyebrow{flex-wrap:wrap}.is-messages .message-thread{margin:0 18px}}

.is-messages #order-workspace{grid-template-columns:clamp(300px,24vw,360px) minmax(0,1fr);transition:none}
.is-messages #order-workspace>.queue{border:0;border-right:1px solid #dce5ed;background:#fff;display:flex;flex-direction:column;min-height:0}
.is-messages #order-workspace>.queue>:not(.panel-toggle){visibility:visible;opacity:1;pointer-events:auto}
.is-messages #toggle-queue,.is-messages .workspace-kicker{display:none}
.is-messages .queue-controls{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:10px 12px;border-bottom:1px solid #dce5ed}
.is-messages #search{width:100%;font-size:12px;background:#f2f6fa;border:0;border-radius:0;min-height:32px}
.is-messages .queue-summary{margin:0;gap:12px;padding:0;font-size:11px}
.is-messages #queue-list{max-height:none;padding:0;overflow:auto}
.is-messages #queue-list .message-card{display:grid;grid-template-columns:minmax(0,1fr) 72px;align-items:center;gap:2px 8px;padding:8px 12px;min-height:0;height:auto;border:0;border-bottom:1px solid #e7edf3;box-shadow:none;background:#fff;font:13px/1.4 'Segoe UI',sans-serif;color:#24384c;transition:background .18s ease}
.is-messages #queue-list .message-card.selected{background:#eaf2fb;box-shadow:inset 3px 0 #2466ad}
.is-messages .message-card>.message-type{display:none}
.is-messages .mail-excerpt{grid-column:1/-1;grid-row:2}
.is-messages .mail-subject,.is-messages .mail-preview{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:17px}
.is-messages .mail-date{grid-column:2;grid-row:1}
.is-messages #queue-list .message-card:before{display:none}
.is-messages #queue-list .editing-badge{display:none!important}
.is-messages #queue-list .message-card:hover{background:#eef4fa;box-shadow:inset 0 1px #d6e1ed,inset 0 -1px #d6e1ed}
.is-messages #queue-list .message-card:focus-visible{outline:2px solid #2466ad;outline-offset:-2px}
.is-messages .mail-sender,.is-messages .mail-excerpt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.is-messages .mail-sender{font-weight:600}
.is-messages .mail-preview{color:#7b8795}
.is-messages .mail-date{font-size:10px;text-align:right;color:#65768a;white-space:nowrap}
.is-messages .message-reader{max-width:none;padding:18px 24px}
.is-messages #message-back{display:none;margin-bottom:24px}
.is-messages .message-heading h2{font-family:'Segoe UI',sans-serif;font-size:18px;font-weight:600}
.is-messages .message-heading{padding-bottom:14px;margin-bottom:18px}
.is-messages .message-eyebrow{margin-bottom:10px;font-size:11px}
.is-messages .message-subject{font-size:12px}
.is-messages .message-content pre{font-family:'Segoe UI',sans-serif;font-size:13px;line-height:1.5}
.is-messages .message-content{padding-bottom:16px}
.is-messages .message-disclosure{padding:10px 0;font-size:12px}
.is-messages .message-related{padding:12px 0}
.is-messages .message-thread{max-width:1036px;margin:0 auto}
@media(max-width:700px){.is-messages #order-workspace{grid-template-columns:minmax(0,1fr)}.is-messages:not(.message-open) #detail,.is-messages.message-open #order-workspace>.queue{display:none}.is-messages #message-back{display:inline-flex}.is-messages .message-reader{padding:16px}}
.is-messages .queue-segments,.is-messages #status-filter,.is-messages .queue-kind,.is-messages .queue-card-bottom{display:none}
.is-messages .email-panel pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;line-height:1.65;font-size:14px}
.payment-unverified :is(#edit-invoice,#update-invoice,#delete-invoice,#save-changes){display:none!important}
.payment-unverified .notice{margin:0;border-radius:0}
.payment-unverified #order-workspace{height:calc(100% - 110px)}
/* Day view is a focused ledger, not a stretched month sidebar. */
#calendar-workspace .cal-day-layout .cal-agenda.cal-compact{display:grid;grid-template-columns:280px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);height:100%;max-height:none;overflow:hidden}
#calendar-workspace .cal-day-layout .cal-agenda>header{grid-column:1;grid-row:1;padding:20px}
#calendar-workspace .cal-day-layout .cal-customer-controls{grid-column:1;grid-row:2;background:#f7f9fc;padding:14px;border-right:1px solid #dde5ec}
#calendar-workspace .cal-day-layout .cal-customer-list{grid-column:2;grid-row:1/3;display:block;overflow:auto;min-height:0;background:#fff}
#calendar-workspace .cal-day-layout .cal-customer-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px}
#calendar-workspace .cal-day-layout .cal-customer-name{font-size:18px;flex:1}
#calendar-workspace .cal-day-layout .cal-customer-meta{min-width:220px;margin:0;font-size:12px}
#calendar-workspace .cal-day-layout .cal-customer-orders{padding:0 22px 0 30px}
#calendar-workspace .cal-day-layout .cal-absent-row{padding:18px 22px;font-size:15px}
@media(max-width:700px){
 #calendar-workspace .cal-day-layout .cal-agenda.cal-compact{display:flex;height:auto;max-height:none}
 #calendar-workspace .cal-day-layout .cal-customer-row{display:block;padding:14px}
 #calendar-workspace .cal-day-layout .cal-customer-meta{margin-top:8px;min-width:0}
 #calendar-workspace .cal-day-layout .cal-customer-list{max-height:60dvh;flex:auto}
}
/* Presentation only: original customer records and document identifiers stay intact. */
.workspace :is(.cal-customer-name,.cal-absent-row,.customer-card>strong,.customer-hub-profile h2,.queue-card h3,.detail-heading h2){text-transform:lowercase}
.workspace :is(.cal-customer-name,.cal-absent-row,.customer-card>strong,.customer-hub-profile h2,.queue-card h3,.detail-heading h2)::first-letter{text-transform:uppercase}
.workspace :is(.eyebrow,.workspace-kicker,.destination-kicker,.customer-hub-eyebrow,.cal-weekdays,.cal-agenda>header>span){text-transform:lowercase;letter-spacing:.3px}
.workspace :is(.eyebrow,.workspace-kicker,.destination-kicker,.customer-hub-eyebrow,.cal-agenda>header>span)::first-letter{text-transform:uppercase}
.workspace .cal-weekdays>span{text-transform:none;letter-spacing:.3px}
@media(prefers-reduced-motion:no-preference){
 .workspace button,.calendar-editor-dialog button{transition:background-color 220ms ease,border-color 220ms ease,color 220ms ease,box-shadow 220ms ease}
 .workspace button:active,.calendar-editor-dialog button:active{filter:brightness(.96)}
 .calendar-editor-dialog[open]{animation:desk-dialog-enter 480ms cubic-bezier(.22,1,.36,1) both}
 .calendar-editor-dialog[open]::backdrop{animation:desk-backdrop-enter 400ms ease both}
 .customer-hub-profile,.history-record-summary,.customer-transactions-scroll{animation:desk-content-enter 420ms cubic-bezier(.22,1,.36,1) both}
 @keyframes desk-dialog-enter{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
 @keyframes desk-backdrop-enter{from{opacity:0}to{opacity:1}}
 @keyframes desk-content-enter{from{opacity:.4;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
}
@media(min-width:1300px){
 #calendar-workspace:not([hidden]):has(.cal-layout:not(.cal-day-layout))>.cal-metrics{grid-column:1/-1;grid-row:1;align-self:center;justify-self:start;margin:0 0 0 280px;z-index:1}
 #calendar-workspace:not([hidden])>.cal-metrics>div,#calendar-workspace:not([hidden])>.cal-metrics>button{min-width:0;padding:5px 10px}
 #calendar-workspace:not([hidden])>.cal-metrics strong{font-size:17px;line-height:1.1}
 #calendar-workspace:not([hidden])>.cal-metrics span{font-size:10px;white-space:nowrap}
 #calendar-workspace:not([hidden]):has(.cal-layout:not(.cal-day-layout)){grid-template-rows:auto auto minmax(0,1fr) auto}
 #calendar-workspace:not([hidden]) .cal-layout:not(.cal-day-layout)>.cal-board{grid-row:3}
 #calendar-workspace:not([hidden]):has(.cal-board) .cal-layout:not(.cal-day-layout)>.cal-agenda{grid-row:1/4}
 #calendar-workspace:not([hidden]):has(.cal-layout:not(.cal-day-layout))>.cal-definitions{grid-row:4}
}
@media(min-width:1600px){
 .workspace:has(#calendar-workspace:not([hidden]))>.page-heading .header-actions{margin-right:368px}
 #calendar-workspace:not([hidden]):has(.cal-layout:not(.cal-day-layout))>.cal-toolbar{grid-column:1;grid-row:1;padding-right:270px;justify-content:space-between;gap:12px}
 #calendar-workspace:not([hidden]) .cal-layout:not(.cal-day-layout)>.cal-agenda{grid-row:1/5}
}
/* Calendar navigation shares the page header instead of consuming another row. */
@media(min-width:1300px){
 .workspace:has(#calendar-workspace:not([hidden]))>.page-heading{min-height:52px;height:52px;padding-top:6px;padding-bottom:6px}
 .workspace:has(#calendar-workspace:not([hidden])) #view-title{visibility:hidden}
 .workspace:has(#calendar-workspace:not([hidden]))>.page-heading .header-actions{position:relative;z-index:2}
 #calendar-workspace:not([hidden]){margin-top:-52px;position:relative}
 #calendar-workspace>.cal-toolbar{min-height:52px;padding-right:280px;flex-wrap:nowrap;gap:18px}
 #calendar-workspace .cal-controls{flex-wrap:nowrap;gap:8px}
 #calendar-workspace .cal-period{flex-wrap:nowrap;gap:7px}
 #calendar-workspace .cal-period h2{min-width:0;font-size:21px;margin:0 4px}
 #calendar-workspace .cal-toolbar button,#calendar-workspace .cal-toolbar input{padding:7px 10px;min-height:36px;font-size:12px}
}
/* Let the customer panel occupy the caption/totals space as well as the grid. */
@media(min-width:1101px){
 #calendar-workspace:has(.cal-layout:not(.cal-day-layout)){display:grid;grid-template-columns:minmax(0,1fr) 350px;grid-template-rows:auto auto auto minmax(0,1fr) auto;column-gap:18px;row-gap:6px}
 #calendar-workspace:has(.cal-layout:not(.cal-day-layout))>.cal-toolbar{grid-column:1/-1;grid-row:1;margin:0}
 #calendar-workspace:has(.cal-layout:not(.cal-day-layout))>.cal-caption{grid-column:1;grid-row:2;margin:0}
 #calendar-workspace:has(.cal-layout:not(.cal-day-layout))>.cal-metrics{grid-column:1;grid-row:3;margin:0;justify-self:start}
 #calendar-workspace .cal-layout:not(.cal-day-layout){display:contents}
 #calendar-workspace .cal-layout:not(.cal-day-layout)>.cal-board{grid-column:1;grid-row:4}
 #calendar-workspace .cal-layout:not(.cal-day-layout)>.cal-agenda{grid-column:2;grid-row:2/5;height:100%;max-height:none}
 #calendar-workspace:has(.cal-layout:not(.cal-day-layout))>.cal-definitions{grid-column:1/-1;grid-row:5;margin:0}
}
#calendar-workspace .cal-metrics{align-self:flex-start;display:flex;width:auto;max-width:100%;margin-bottom:8px}
#calendar-workspace .cal-metrics>div,#calendar-workspace .cal-metrics>button{padding:6px 16px;min-width:130px}
#calendar-workspace .cal-metrics strong{font-size:20px}
#calendar-workspace .cal-metrics span{font-size:11px}
#calendar-workspace .cal-agenda>header{padding:9px 14px}
#calendar-workspace .cal-agenda h3{margin:4px 0;font-size:22px}
#calendar-workspace .cal-agenda header p{margin:0}
#calendar-workspace .cal-customer-controls{padding:8px 10px}
#calendar-workspace .cal-customer-tabs{margin-bottom:6px}
#calendar-workspace #cal-customer-search{min-height:32px;padding:6px 9px}
#calendar-workspace .cal-customer-name{font-family:Georgia,"Times New Roman",serif;font-size:16px;font-weight:400;letter-spacing:0;white-space:normal;line-height:1.4}
#calendar-workspace .cal-customer-row{padding:11px 14px}
#calendar-workspace .cal-customer-meta{font-size:11px;margin-top:4px}
@media(min-width:1101px){#calendar-workspace .cal-layout{grid-template-columns:minmax(0,1fr) 350px}}
.calendar-editor-dialog{width:calc(100vw - 48px);max-width:1600px;height:calc(100dvh - 48px);max-height:none;padding:0;border:1px solid #ccd8e4;background:#fff;color:#182b40}
.calendar-editor-dialog::backdrop{background:#142d4c70;backdrop-filter:blur(3px)}
.calendar-editor-toolbar{display:flex;justify-content:space-between;align-items:center;padding:10px 18px;border-bottom:1px solid #dde5ec;height:58px}
.calendar-editor-dialog #order-workspace{height:calc(100% - 58px);margin:0;width:100%;display:block;overflow:auto}
.calendar-editor-dialog .queue{display:none}
.calendar-editor-dialog #detail{height:100%;overflow:auto}
.calendar-editor-dialog #toggle-queue{display:none}
@media(max-width:640px){.calendar-editor-dialog{width:100vw;height:100dvh}.cal-metrics{flex-wrap:wrap}}
.customer-workspace .customer-records{display:block;overflow:hidden;min-height:0}
.customer-workspace .customer-order-list{height:100%;max-height:none;border:0;background:#fff;overflow:auto}
.customer-workspace .customer-record{height:100%;overflow:auto}
.customer-workspace [hidden]{display:none!important}
.customer-transactions-heading{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid #dde5ec}
.customer-transactions-heading h3{margin:0;font-size:14px;color:#173653}
.customer-transactions-heading>span{font-size:11px;color:#607286}
.customer-transactions-scroll{overflow:auto}
.customer-transactions{width:100%;min-width:760px;border-collapse:collapse;font-size:12px}
.customer-transactions th{background:#f0f4f7;color:#607286;font-size:11px;text-align:left;white-space:nowrap;padding:12px}
.customer-transactions td{padding:13px 12px;border-bottom:1px solid #e4eaf0;vertical-align:middle}
.customer-transactions tbody tr:hover{background:#edf4fb}
.customer-transactions td:nth-child(3){max-width:320px;overflow-wrap:anywhere}
.customer-transactions td strong{font-weight:500}
.customer-transactions td small{display:block;margin-top:4px;color:#607286}
.customer-transactions :is(th,td):last-child{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.transaction-open{border:0;background:transparent;color:#1765cf;padding:6px 0;white-space:nowrap;font-weight:600;font-size:12px}
.customer-back{margin-bottom:18px}
@media(max-width:900px){.customer-workspace .customer-records{min-height:350px;overflow:auto}.customer-workspace .customer-record{height:auto}}
.customer-record .history-order-table{min-width:900px;font-size:13px}
.customer-record .history-order-table th{white-space:nowrap;font-size:11px}
.customer-record .history-order-table th:nth-child(2){width:180px}
.customer-record .history-order-table th:nth-child(3){width:260px}
.customer-record .history-order-table th:nth-child(4){width:60px}
.customer-record .history-order-table th:nth-child(5){width:70px}
.customer-record .history-order-table th:nth-child(6),.customer-record .history-order-table th:nth-child(7){width:85px}
.customer-record .history-email-card pre{font-size:13px;line-height:1.6;max-height:240px;overflow:auto}
.customer-hub-metrics{padding-left:20px;border-left:1px solid #dde5ec}
.is-customers .customer-hub-profile{padding:20px;gap:16px;border-bottom:1px solid #dde5ec;background:#f8fafc}
.customer-hub-eyebrow{display:block;font-size:10px;letter-spacing:1.3px;color:#245b8e;font-weight:600;margin-bottom:8px}
.customer-hub-profile h2{margin:0 0 6px}
.customer-hub-profile p{margin:0;color:#607286}
.customer-hub-metrics{display:flex;gap:24px;color:#607286;font-size:12px}
.customer-hub-metrics strong{display:block;font-size:25px;font-weight:600;color:#173653;margin-bottom:3px}
.customer-hub-profile>button{margin-left:auto}
.customer-order-card .history-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.customer-order-card strong{font-size:13px;line-height:1.5}
.customer-record .history-record-heading h3{font-size:18px;line-height:1.4}
@media(max-width:640px){.customer-hub-profile>button{margin-left:0}.is-customers .customer-hub-profile{padding:14px}.customer-hub-metrics{gap:20px}}
/* Shared page polish; keep operational state colors separate from navigation. */
.workspace .destination{background:#fff;border-color:#dce4eb;box-shadow:none;padding:20px}
.workspace .destination:hover{background:#f6f9fd;border-color:#8eb4da;box-shadow:0 4px 16px #1736530a}
.workspace .destination .destination-icon{background:#eaf2fd;color:#1765cf;border-color:transparent;box-shadow:none;width:36px;height:36px}
.workspace .destination .destination-kicker{color:#607286}
.workspace .destination p{color:#607286;font-size:13px;margin-bottom:16px;min-height:40px}
.workspace .destination small{color:#245b8e;border-color:#e1e8ef;padding-top:12px;font-size:12px}
.workspace .destination small span{background:#edf4fb;color:#245b8e}
.workspace .destination h3{color:#173653;font-size:22px}
.workspace .destination-top{margin-bottom:12px}
.workspace .home-intro{padding:14px 0 20px}
.workspace .home-intro h2{font-size:28px}
.workspace .home-intro>button{margin-top:14px}
.customer-workspace,.customer-content{background:#fff;border-color:#dde5ec}
.customer-directory{background:#f7f9fb;border-color:#dde5ec}
.customer-card:hover,.customer-order-card:hover{background:#f0f5fa}
.customer-card.selected,.customer-order-card.selected{background:#eaf2fd;box-shadow:inset 3px 0 #1765cf}
.customer-card strong{font-size:13px;font-weight:600;color:#253c51}
.customer-card span{font-size:12px;color:#607286}
.customer-card small{font-size:11px}
.history-empty h2{font-size:22px;font-weight:600;color:#173653}
.workspace :is(button,input,select,summary):focus-visible{outline:2px solid #2875c7;outline-offset:3px}
@media(min-width:901px){.sidebar:not(:hover):not(:has(button:focus-visible)) .brand-name{visibility:hidden}}
@media(max-width:640px){
 .workspace .destination{padding:16px}
 .workspace .destination p{min-height:0;font-size:13px}
 .workspace .destination-top{margin:0}
 .cal-no-orders{display:none}
 .workspace .home-intro h2{font-size:25px}
}
:root{
 --desk-ink:#182b40;--desk-muted:#607286;--desk-border:#dde5ec;--desk-accent:#245b8e;
 --desk-paper:#fff;--ink:#182b40;--muted:#607286;--line:#dde5ec;
 font-family:"Segoe UI Variable Text","Segoe UI",system-ui,sans-serif;
}
body{background:#f3f5f7;color:var(--desk-ink);-webkit-font-smoothing:antialiased}
button,input,select,textarea,table{font-family:inherit}
.workspace,.workspace:not(.is-home):not(.is-customers){background:#f3f5f7}
.topbar{background:#fff;border-bottom:1px solid var(--desk-border);color:var(--desk-muted)}
.sidebar{background:#142436;border-right-color:#25394e}
.sidebar .brand-mark{background:#234d73;border-color:#416786;color:#fff}
.sidebar button.nav-current{background:#234f77;border-color:#3e6b91;box-shadow:none}
.sidebar button.nav-upcoming{color:#a9b8c8}
.sidebar button.nav-upcoming:hover{background:#20374d}
.workspace .page-heading h1{font-weight:650!important;letter-spacing:-.5px!important}
.inbox{border-color:var(--desk-border);box-shadow:0 3px 12px #172b4005}
.queue{background:#f7f9fb;border-right-color:var(--desk-border)}
.queue-controls :is(input,select){background-color:#fff!important;color:var(--desk-ink)!important;border-color:#d5dee7!important;font-size:12px!important;box-shadow:none}
.queue-controls :is(input,select):focus,.header-actions select:focus{outline-color:#3981c4!important;border-color:#3981c4!important}
.queue-controls input::placeholder{color:#78899a}
.queue-card{border-bottom-color:#e4eaf0}
.queue-card:hover{background:#edf3f8}
.queue-card.selected{background:#e7f0f8}
.queue-card.selected:before{background:#28679f}
.queue-card h3{font-size:12px;font-weight:600;color:#253c51}
.queue-card p{color:#65798d}
.queue-card .queue-dates{color:#617589}
.queue-card .pill{font-weight:500}
#detail{background:#fff}
.order-editor .detail-heading h2{font-weight:650;font-size:23px;letter-spacing:-.55px;color:#182b40}
.order-editor>.detail-heading{border-bottom-color:#e2e8ee}
.order-editor .order-subject{color:#6b7d8f;font-size:12px}
.order-editor .order-metadata,.order-editor .worksheet-meta,.purchase-order-field{background:#f8fafc;border-color:#dde5ec}
.distribution-label-summary input{color:#245b8e;border-bottom-color:#9fb9cf}
.distribution-label-summary :is(label,small){color:#607286}
.order-editor .table-scroll{border-color:#dce4eb}
.order-editor .order-table th{background:#f0f4f7;color:#526779;border-bottom-color:#dce4eb;font-size:11px;font-weight:600}
.order-editor .order-table td{border-bottom-color:#e4eaf0}
.order-editor .order-table td+td{border-left-color:#edf1f5}
.order-editor .order-table{font-variant-numeric:tabular-nums}
.order-editor .order-line.attention{background:#fffbef}
.order-editor .order-line:not(.attention):not(.edited){background:#f3faf6}
.order-editor .order-line.edited:not(:has(.field-error)){background:#edf5fc}
.order-editor .order-line:has(input:invalid){background:#fff1ef}
.order-editor .order-table input::placeholder{color:#77899b}
.order-editor .edit-actions{background:#f7f9fcf5;border-color:#dce4eb;box-shadow:0 -3px 12px #172b4006}
.attachment-panel,.order-overview .email-panel,.order-overview .email-card,.order-overview .email-section,.order-overview .original-email{background:#f8fafc!important;border-color:#dde5ec!important}
.order-overview{border-color:#dde5ec;color:#334d65}
.order-overview :is(h3,strong){color:#263f55}
.attachment-panel h3{color:#263f55}
.attachment-panel :is(small,.attachment-meta){color:#6b7e91}
.attachment-file{border-top-color:#e0e7ee}
.document-toolbar,.document-dialog{background:#f8fafc}
.document-scroll{background:#eef2f6;border-color:#d8e2ec}
.source-resize::after{background:#d8e2ec}
.source-resize:hover::after{background:#3978ae}
.panel-toggle{color:#708499}
.panel-toggle:hover{background:#e8f0f7;color:#245b8e}
.detail-tools .pill{background:#edf2f7;color:#62768a}
.order-editor .selection-notice{color:#3c668b}
.order-editor .instructions{background:#f8fafc;border-color:#e1e7ed}
.product-results{font-family:inherit;border-color:#d5dfe9;box-shadow:0 8px 24px #19344d18}
.product-results [role=option]:hover,.product-results [aria-selected=true]{background:#eaf3fb;color:#214f77}
.customer-order-tools{background:#fff;border-color:#dce4eb}
.cal-toolbar button,.cal-toolbar input{font-size:12px;font-weight:500;border-color:#d5dfe9}
.cal-switch [aria-pressed=true]{background:#234f77;border-color:#234f77}
.cal-cell{border-color:#e5eaf0}
.cal-cell.selected{background:#edf5fc;box-shadow:inset 0 0 0 2px #3475ad}
.cal-weekdays{background:#f0f4f7;color:#657b90}
.cal-metrics,.cal-board,.cal-agenda{border-color:#dce4eb}
.cal-metrics strong{font-weight:600}
.cal-agenda>header{background:#234f77}
.cal-customer-row{border-bottom-color:#e3eaf0}
.cal-customer-name{font-size:12px;font-weight:600}
.cal-customer-row:hover,.cal-customer-row[aria-expanded=true]{background:#edf4fa}
.cal-customer-orders{background:#f7fafc}
.cal-order strong{font-weight:600}
.cal-no-orders{font-size:10px;color:#8a99a8;line-height:1.4}
.cal-cell:has(.cal-no-orders):not(.selected){background:#fafbfd}
.cal-cell:has(.cal-status-counts) .cal-day-number{font-weight:700;color:#214f77}
.cal-cell.today .cal-day-number{color:white}
.queue-card h3{grid-column:1/-1;grid-row:1;min-width:0}
.queue-card p{grid-column:1/-1;grid-row:2}
.queue-card .queue-dates{grid-column:1;grid-row:3;min-width:0;overflow:hidden;white-space:nowrap}
.queue-card-top{grid-column:2;grid-row:3;align-self:center}
.queue-card .pill{font-size:9px;line-height:14px;padding:1px 5px;max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.queue-card .editing-badge{grid-row:4}
/* Carry the login's blue identity into navigation, not the working paper. */
:root{--desk-accent:#1765cf}
.sidebar{background:linear-gradient(165deg,#174d86 0%,#233e72 55%,#293d68 100%);border-right-color:#234e7d}
.sidebar .brand-mark{background:#ffffff0d;border:1px solid #ffffff45;color:#fff}
.sidebar .brand,.sidebar-bottom{border-color:#ffffff20}
.sidebar button.nav-upcoming{color:#d3e1f4}
.sidebar button.nav-upcoming:hover{background:#ffffff12;color:#fff}
.sidebar button.nav-current{background:#ffffff1e;border-color:#ffffff42;box-shadow:inset 3px 0 #91c5ff;color:white}
.workspace button.primary{background:#1765cf!important;border-color:#1765cf!important;box-shadow:0 2px 5px #1765cf20}
.workspace button.primary:hover:not(:disabled){background:#1256b4!important;border-color:#1256b4!important}
.workspace button.primary:disabled{background:#e8edf3!important;border-color:#d8e0e9!important;box-shadow:none}
.queue-segments button[aria-pressed=true]{background:#1765cf!important;color:white!important}
.queue-card.selected{background:#eaf2fd}
.queue-card.selected:before{background:#1765cf}
.cal-switch [aria-pressed=true],.cal-customer-tabs button[aria-pressed=true]{background:#1765cf;border-color:#1765cf}
.cal-agenda>header{background:linear-gradient(115deg,#216ac0,#3657a2)}
.cal-cell.selected{background:#edf4ff;box-shadow:inset 0 0 0 2px #2b71cb}
.cal-cell.today .cal-day-number{background:#1765cf}
.customer-order-tools{border-left:3px solid #2b71cb}
.workspace .page-heading h1{color:#173653!important}
.panel-toggle:hover{background:#eaf2fd;color:#1765cf}
@media(prefers-reduced-motion:no-preference){
 .queue-card,.cal-cell,.cal-customer-row{transition:background-color 160ms ease,box-shadow 160ms ease}
}
/* Keep calendar navigation together; daily counts remain in the calendar cells. */
#calendar-workspace:not([hidden])>.cal-metrics{display:none}
#calendar-workspace:not([hidden])>.cal-toolbar,
#calendar-workspace:not([hidden]):has(.cal-layout:not(.cal-day-layout))>.cal-toolbar{justify-content:flex-start;gap:22px}

/* Native popovers retain viewport positioning above modal order editors. */
.product-results[popover]{margin:0;inset:auto;padding:4px;color:var(--ink);}


/* Compact account bar without redundant breadcrumbs. */
.workspace > .topbar{justify-content:flex-end;height:34px;padding:0 16px}


.user-tools .message-center-trigger{display:grid;place-items:center;width:32px;height:30px;padding:5px!important;color:#214d78;cursor:pointer}
.message-center-trigger svg{width:21px;height:21px}
.message-center-trigger[aria-current="page"]{background:#e6effa!important}
.message-customer-group{border-bottom:1px solid #dce5ef}
.message-customer-group>summary{display:flex;align-items:center;gap:10px;padding:14px 16px;cursor:pointer;list-style:none;color:#183b60;font-size:15px;background:#f7f9fc}
.message-customer-group>summary::before{content:'›';font-size:21px;transition:transform .25s ease}
.message-customer-group[open]>summary::before{transform:rotate(90deg)}
.message-customer-group>summary small{margin-left:auto;font-size:12px;color:#60758c}
.message-customer-group>summary:hover{background:#eaf1f9}
.message-customer-group>div{padding-left:8px}

.order-email-preview{width:min(760px,94vw);max-height:88vh;border:1px solid #cbd8e5;padding:0;color:#183b60;background:white}
.order-email-preview::backdrop{background:#102c4866}
.order-email-preview>header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid #dce5ef}
.order-email-preview h2{font-size:20px;margin:0}
.email-preview-content{padding:18px 24px}
.email-preview-content section{padding:16px 0;border-top:1px solid #dce5ef}
.email-preview-content pre{white-space:pre-wrap;font:inherit;line-height:1.65;color:#324b64}
#preview-order-emails{margin:12px 0}

.user-tools .profile-toggle{display:grid;place-items:center;width:32px;height:30px;padding:5px!important;color:#214d78;cursor:pointer}
.profile-toggle svg{width:21px;height:21px}
.profile-toggle:hover{background:#eaf1f9!important}
.profile-menu[popover]{position:fixed;inset:42px 18px auto auto;margin:0;width:min(300px,calc(100vw - 32px));padding:8px;background:#fff;color:#193b60;border:1px solid #d8e2ee;box-shadow:0 12px 32px #17395b24}
.profile-account{display:grid;gap:6px;padding:12px 10px 16px;border-bottom:1px solid #e3eaf2;margin-bottom:6px}
.profile-account strong{font-size:14px}
.profile-account span{font-size:12px;color:#65788e;overflow-wrap:anywhere}
.user-tools .profile-menu button{display:block;width:100%;text-align:left;padding:10px!important;font-size:13px!important;border:0!important;box-shadow:none!important;cursor:pointer}
.user-tools .profile-menu button:hover{background:#edf3fa!important}
.profile-menu #sign-out{color:#a53434}

.recent-messages[popover]{position:fixed;inset:42px 56px auto auto;margin:0;width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 65px);padding:0;border:1px solid #d7e2ee;background:#fff;color:#193b60;box-shadow:0 12px 36px #17395b26;overflow:auto}
.recent-messages>header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #e2e9f1}
.recent-messages>footer{padding:12px 16px;border-top:1px solid #e2e9f1}
.recent-message-list{max-height:60dvh;overflow:auto}
.recent-message-list>p{padding:16px}
.user-tools .recent-message-list .message-card{display:grid!important;grid-template-columns:1fr auto;gap:6px;width:100%;padding:12px 16px!important;text-align:left;border:0!important;border-bottom:1px solid #e6edf4!important;background:#fff!important}
.recent-message-list .mail-sender{font-size:14px;font-weight:600}
.recent-message-list .mail-excerpt{grid-column:1/-1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;font-size:12px}
.recent-message-list .message-type{display:none}
.recent-message-list .mail-date{grid-column:2;grid-row:1;font-size:11px;color:#65788e}
.user-tools .recent-message-list .message-card:hover{background:#edf3fa!important}
.recent-messages:popover-open{animation:recent-message-enter .25s ease-out}
@keyframes recent-message-enter{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){.recent-messages:popover-open{animation:none}}
@media(max-width:600px){.recent-messages[popover]{right:12px}}

.message-customer-group .mail-sender,.message-customer-group .message-type{display:none!important}
.message-customer-group .message-card{padding:10px 14px!important;min-height:0!important}
.message-customer-group .mail-subject{font-size:13px;font-weight:500}
.message-customer-group .mail-preview{font-size:12px}
.message-customer-group>summary{padding:12px 14px}
.message-reader .message-heading{padding-bottom:14px;margin-bottom:18px}
.message-reader .message-content{padding-top:0}
.message-reader .message-content pre{line-height:1.65}
.message-reader .message-more{margin-top:24px;border-top:1px solid #e6edf4;border-bottom:0;padding:12px 0}
.message-more>summary{font-weight:400;font-size:12px;color:#718398}
.message-more h3{font-size:13px;margin-top:20px}

/* Compact left-aligned refresh action, including the shared calendar toolbar. */
.workspace > .page-heading{justify-content:flex-start!important;gap:16px!important}
.workspace > .page-heading .header-actions{margin:0!important;flex:0 0 auto!important}
.workspace #refresh.refresh-control{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px!important;padding:7px 11px!important;border:1px solid #cbd8e5!important;border-radius:0!important;background:#f8fbfe!important;color:#234e78!important;font:500 12px/1.2 inherit;box-shadow:none!important;transition:background-color 220ms ease,border-color 220ms ease,color 220ms ease}
.workspace #refresh.refresh-control svg{width:16px;height:16px;flex:none;transition:transform 350ms ease}
.workspace #refresh.refresh-control:hover:not(:disabled){background:#e8f1fa!important;border-color:#91afcc!important;color:#153e65!important}
.workspace #refresh.refresh-control:hover:not(:disabled) svg{transform:rotate(35deg)}
.workspace #refresh.refresh-control:focus-visible{outline:2px solid #2573bc;outline-offset:3px}
.workspace #refresh.refresh-control:disabled{opacity:.5;cursor:wait}
@media(min-width:1300px){
 .workspace:has(#calendar-workspace:not([hidden]))>.page-heading{position:relative;z-index:3;pointer-events:none}
 .workspace:has(#calendar-workspace:not([hidden]))>.page-heading>div:first-child{display:none}
 .workspace:has(#calendar-workspace:not([hidden]))>.page-heading .header-actions{pointer-events:auto}
 #calendar-workspace:not([hidden])>.cal-toolbar{padding-left:114px!important}
}
@media(prefers-reduced-motion:reduce){.workspace #refresh.refresh-control,.workspace #refresh.refresh-control svg{transition:none}}
