﻿@charset "UTF-8";
:root{--navy:#5f5f5f;--teal:#5f5f5f;--teal-light:#efefef;--text:#333333;--muted:#5f5f5f;--line:#e3e3e3;--bg:#f5f5f5;--white:#fff;--danger:#a73333}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.6 "Malgun Gothic","맑은 고딕",system-ui,sans-serif}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}button{cursor:pointer}h1,h2,h3,p{margin-top:0}h1{font-size:29px;line-height:1.35;letter-spacing:-1.3px;margin-bottom:10px}h2{font-size:19px;letter-spacing:-.6px}h3{font-size:19px;margin-bottom:7px}p{margin-bottom:16px}label{display:block;font-weight:700;margin:18px 0 7px}input,select{display:block;width:100%;border:1px solid #d4d4d4;border-radius:8px;padding:11px 13px;background:white;color:var(--text);min-height:46px}input:focus,select:focus{border-color:var(--teal);outline:2px solid #5f5f5f33}input[type=hidden]{display:none}.muted,.hint,.footnote{color:var(--muted)}.small,.hint,.footnote{font-size:12px}.hint{margin:7px 0 20px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;color:var(--teal);display:block;margin-bottom:12px}.button{display:inline-flex;align-items:center;justify-content:center;gap:18px;min-height:42px;border:1px solid #d4d4d4;border-radius:7px;padding:9px 17px;background:white;color:var(--text);font-size:13px;font-weight:700;white-space:nowrap}.button:hover{background:#eeeeee}.button.primary{background:var(--teal);border-color:var(--teal);color:#fff}.button.primary:hover{background:#5f5f5f}.button.light{border-color:transparent;color:var(--navy)}.button.full{width:100%;margin:26px 0 20px}.button.compact{font-size:11px;min-height:32px;padding:5px 10px}.button.disabled{opacity:.4;pointer-events:none}.text-button{background:none;border:0;color:var(--muted);padding:0;font-size:12px}.badge{display:inline-block;border:1px solid #d8d8d8;background:#f0f0f0;color:#5f5f5f;border-radius:30px;padding:6px 13px;font-size:11px;font-weight:700;white-space:nowrap}.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;background:var(--teal);color:#fff;font-size:22px;font-weight:900}.wordmark{display:flex;gap:12px;align-items:center;font-size:23px;font-weight:900;letter-spacing:1px}.wordmark b{font-size:12px;font-weight:500;letter-spacing:2px;color:#dddddd}.sidebar{position:fixed;left:0;top:0;width:224px;bottom:0;background:var(--navy);color:#fafafa;padding:30px 22px;display:flex;flex-direction:column}.sidebar nav{display:flex;flex-direction:column;gap:5px}.nav-label{font-size:9px;font-weight:700;letter-spacing:1.7px;color:#dddddd;display:block;margin:29px 12px 10px}.sidebar nav a{display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:8px;color:#eeeeee;font-size:13px}.sidebar nav a span{font-size:19px;line-height:1}.sidebar nav a:hover{background:#5f5f5f}.sidebar nav a.active{background:#5f5f5f;color:white}.nav-pending{display:flex;justify-content:space-between;color:#cccccc;padding:10px 14px;font-size:13px}.nav-pending small{font-size:9px;background:#5f5f5f;border-radius:4px;padding:1px 5px}.sidebar-foot{margin-top:auto;border-top:1px solid #5f5f5f;padding-top:18px;font-size:11px;color:#eeeeee}.sidebar-foot p{font-size:10px;color:#dddddd;margin-top:7px}.status-dot{display:inline-block;background:#cccccc;width:6px;height:6px;border-radius:50%;margin-right:7px}.workspace{margin-left:224px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px;background:white;color:var(--muted);font-size:11px}.account{display:flex;align-items:center;gap:20px}.account strong{font-size:12px;color:var(--text)}.content{padding:38px;max-width:1600px;width:100%;margin:0 auto;flex:1}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.page-heading p{margin:0}.page-heading .eyebrow{margin-bottom:8px}.welcome-banner{background:var(--navy);color:white;border-radius:12px;min-height:255px;padding:35px 38px;display:flex;align-items:center;justify-content:space-between;margin-bottom:32px;overflow:hidden}.welcome-banner .eyebrow{color:#eeeeee}.welcome-banner h2{font-size:27px;line-height:1.5;margin-bottom:12px;letter-spacing:-1px}.welcome-banner p{font-size:12px;color:#eeeeee}.banner-art{border:1px solid #5f5f5f;border-radius:22px;transform:none;padding:28px 36px;margin-right:35px;background:#5f5f5f;text-align:center;box-shadow:14px 15px 0 #5f5f5f}.banner-art>span{font-size:47px;font-weight:900;letter-spacing:6px;color:#eeeeee}.banner-art div{font-size:11px;letter-spacing:2px;color:#eeeeee}.section-title{font-size:16px;margin-bottom:16px}.module-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:25px}.module-card{background:white;border:1px solid var(--line);border-radius:10px;padding:25px;transition:border-color .15s,transform .15s}.module-card:hover{border-color:#5f5f5f;transform:translateY(-2px)}.module-icon{background:var(--teal-light);color:var(--teal);border-radius:10px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;font-size:25px;margin-bottom:20px}.module-card p{font-size:12px;color:var(--muted);margin-bottom:22px}.card-link{font-size:12px;color:var(--teal);font-weight:700}.info-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:20px}.panel{padding:27px;background:white;border:1px solid var(--line);border-radius:10px}.panel h2{font-size:17px}.panel .eyebrow{font-size:9px}.check-list{list-style:none;padding:0;margin:0;color:#5f5f5f;font-size:12px}.check-list li{padding:7px 0}.check-list li:before{content:"✓";color:var(--teal);margin-right:10px}.notice{padding:14px 17px;border:1px solid #dedede;background:#f7f7f7;border-radius:8px;font-size:12px;color:#5f5f5f;margin-bottom:18px}.notice p:last-child{margin-bottom:0}.notice.success{background:#f0f0f0;border-color:#cccccc;color:#5f5f5f}.notice.error{background:#fff1f1;color:var(--danger);border-color:#ebc9c9}.validation{color:var(--danger);font-size:12px}.validation ul{padding-left:20px}.validation:empty{display:none}.catalog-panel{padding:0;overflow:hidden}.searchbar{display:flex;gap:9px;padding:23px;border-bottom:1px solid var(--line);background:#fff}.searchbar input{max-width:510px}.list-summary{display:flex;justify-content:space-between;padding:20px 24px;font-size:12px}.list-summary strong{color:var(--teal);font-size:15px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px;text-align:left;white-space:nowrap}th{font-size:11px;background:#f7f7f7;color:#5f5f5f;font-weight:700;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:13px 22px}td{padding:14px 22px;border-bottom:1px solid #eeeeee;color:#5f5f5f;max-width:420px;overflow:hidden;text-overflow:ellipsis}td strong{color:var(--text);font-weight:700}tbody tr:hover{background:#f8f8f8}.empty{text-align:center;padding:65px 20px;color:var(--muted)}.pagination{display:flex;align-items:center;justify-content:space-between;padding:20px 23px;font-size:12px}.pagination .button{font-size:11px;min-height:35px}.footnote{margin:14px 2px}.workspace-footer{padding:18px 38px;border-top:1px solid var(--line);font-size:10px;color:#5f5f5f;display:flex;justify-content:space-between}.narrow{max-width:540px;margin:30px auto}.admin-grid{display:grid;grid-template-columns:320px 1fr;gap:22px}.login-wrap{min-height:100vh;display:grid;grid-template-columns:minmax(0,3fr) minmax(0,7fr);background:#fff}.login-intro{min-width:0;background:var(--navy);padding:10vh clamp(24px,3vw,68px);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;color:white}.login-intro .eyebrow{color:#eeeeee}.login-intro h1{font-size:clamp(30px,3vw,46px);line-height:1.45;letter-spacing:-2px;margin:18px 0 24px}.login-intro p{font-size:14px;color:#eeeeee;line-height:1.9}.environment{font-size:10px;letter-spacing:.7px;margin-top:65px;color:#eeeeee;border:1px solid #5f5f5f;padding:7px 12px;border-radius:4px}.login-card{width:min(380px,80%);margin:auto}.login-card .brand-mark{margin-bottom:24px;width:45px;height:45px;font-size:28px}.login-card h2{font-size:25px;margin-bottom:8px}.login-card>p{font-size:12px}.login-card label{font-size:12px}.skip{position:absolute;left:-9999px}.skip:focus{position:fixed;top:5px;left:5px;z-index:10;background:white;padding:10px}.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}code{font-family:Consolas,monospace;overflow-wrap:anywhere}
@media(min-width:1600px){.content{padding:45px 55px}}@media(max-width:1100px){.sidebar{width:190px;padding:25px 16px}.workspace{margin-left:190px}.content{padding:25px}.topbar{padding:0 25px}.banner-art{margin-right:0;padding:20px}.banner-art>span{font-size:36px}.admin-grid{grid-template-columns:280px 1fr}.module-card{padding:20px}.welcome-banner{padding:28px}.info-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.sidebar{position:static;width:100%;padding:16px 18px}.wordmark{font-size:20px}.sidebar>.nav-label,.sidebar-foot,.nav-pending,nav>.nav-label{display:none}.sidebar nav{flex-direction:row;flex-wrap:wrap;margin-top:12px;gap:4px}.sidebar nav a{padding:8px 10px;font-size:11px}.sidebar nav a span{display:none}.workspace{margin-left:0}.topbar{height:auto;min-height:56px;padding:13px 18px;gap:12px}.topbar>span{display:none}.account{width:100%;justify-content:flex-end;gap:15px}.content{padding:24px 16px}.page-heading{align-items:flex-start}.page-heading .badge{font-size:9px}h1{font-size:24px}.page-heading p{font-size:12px}.welcome-banner{padding:25px}.welcome-banner h2{font-size:23px}.banner-art{display:none}.module-grid,.info-grid,.admin-grid{grid-template-columns:1fr}.module-card{padding:20px}.module-icon{float:left;margin:0 18px 30px 0}.module-card p{margin-bottom:13px}.searchbar{padding:16px;flex-wrap:wrap}.searchbar input{max-width:none;flex-basis:100%}.panel{padding:22px}.catalog-panel{padding:0}.workspace-footer{padding:16px;font-size:9px}.login-wrap{grid-template-columns:1fr}.login-intro{padding:38px 10%}.login-intro h1{font-size:32px;margin:6px 0 14px}.login-intro p{font-size:12px;margin-bottom:0}.environment{margin-top:20px}.login-card{padding:35px 0}.login-card .brand-mark{display:none}}
.company-logo{display:block;object-fit:contain;background:transparent;border-radius:0;flex-shrink:0;height:auto}.sidebar-logo{width:52px;height:auto}.wordmark{gap:10px}.wordmark>span{font-size:21px;letter-spacing:.5px}.wordmark b{font-size:10px}.login-logo{display:block;width:88px;height:auto;margin-bottom:24px}.banner-logo{display:block;width:112px;height:auto;margin:0 auto 16px}.record-link{font-weight:700;color:#5f5f5f;display:inline-block;max-width:100%}.record-link:hover{text-decoration:underline}.record-link span{font-size:11px;opacity:.55}.back-link{display:inline-block;font-size:12px;color:var(--teal);margin-bottom:20px}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.detail-section h2{border-bottom:1px solid var(--line);padding-bottom:15px;margin-bottom:7px}.detail-section dl{margin:0}.detail-field{display:grid;grid-template-columns:115px minmax(0,1fr);gap:16px;padding:13px 0;border-bottom:1px solid #eeeeee}.detail-field:last-child{border:0}.detail-field dt{font-size:12px;color:var(--muted)}.detail-field dd{margin:0;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:600px;overflow:auto}.detail-section:last-child:nth-child(odd){grid-column:1/-1}.related-panel{margin-top:22px}.section-heading{display:flex;gap:16px;justify-content:space-between;align-items:center;margin-bottom:15px}.section-heading h2{margin:0}.filter-notice{display:flex;gap:16px;justify-content:space-between;align-items:center}.filter-notice a{color:var(--teal);font-weight:700;white-space:nowrap}
@media(max-width:760px){.sidebar-logo{width:42px;height:auto}.login-logo{width:68px;height:auto}.detail-grid{grid-template-columns:1fr}.detail-field{grid-template-columns:90px minmax(0,1fr);gap:10px}.filter-notice{align-items:flex-start;flex-direction:column}.wordmark>span{font-size:20px}.section-heading{flex-wrap:wrap}}
.login-brand{display:flex;align-items:center;gap:14px;margin-bottom:8px}.login-brand .login-logo{width:64px;height:auto;margin:0}.login-brand .eyebrow{margin:0;white-space:nowrap}
@media(max-width:760px){.login-brand{gap:12px}.login-brand .login-logo{width:52px;height:auto}}
.quote-filters{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr;gap:14px;padding:22px;border-bottom:1px solid var(--line)}.quote-filters label{font-size:11px;margin:0 0 7px;color:var(--muted)}.quote-filters input,.quote-filters select{font-size:12px;min-width:0}.filter-actions{display:flex;gap:8px;grid-column:1/-1}.numeric{text-align:right;font-variant-numeric:tabular-nums}.total{color:var(--teal);font-weight:700}.quote-table{min-width:1050px}.quote-table th,.quote-table td{padding:13px 16px}.quote-title{min-width:245px;max-width:340px}.quote-title .record-link{max-width:310px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cell-sub{display:block;font-size:11px;color:var(--muted);margin-top:3px}.quote-status{padding:4px 8px;background:var(--teal-light);border-radius:5px;color:#5f5f5f;font-size:10px}.quote-amounts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:22px}.quote-amounts section>span{display:block;font-size:12px;color:var(--muted);margin-bottom:10px}.quote-amounts strong{display:block;font-size:26px;overflow-wrap:anywhere}.quote-amounts small{font-weight:400;font-size:12px;color:var(--muted)}.quote-amounts .amount-total{border-color:#cccccc;background:#f2f2f2}.quote-related{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0;font-size:12px}.quote-related .hint{margin:0}.quote-lines{margin-top:22px}.quote-lines .list-summary{align-items:center;gap:15px}.quote-lines .list-summary h2{margin:0}.quote-line-table{min-width:900px}.quote-line-table td{vertical-align:top}.quote-line-table .line-description{white-space:pre-wrap;overflow-wrap:anywhere;min-width:220px;max-width:380px}.saved-text{white-space:pre-wrap}.stored-adjustments{display:flex;justify-content:flex-end;gap:32px;margin-top:18px;font-size:12px;color:var(--muted)}.stored-adjustments strong{margin-left:10px;color:var(--text)}
@media(max-width:1100px){.quote-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-search{grid-column:1/-1}.quote-amounts strong{font-size:21px}}@media(max-width:760px){.quote-filters{padding:16px;gap:12px}.quote-amounts{grid-template-columns:1fr;gap:10px}.quote-amounts section{padding:18px}.quote-amounts strong{font-size:23px}.quote-lines .list-summary{align-items:flex-start;flex-direction:column}.stored-adjustments{flex-direction:column;gap:10px}}
.product-specification{white-space:pre-wrap;overflow-wrap:anywhere;max-height:400px;overflow:auto;margin:15px 0}
.quote-description{white-space:pre-wrap;color:var(--text);line-height:1.5}
textarea{display:block;width:100%;border:1px solid #d4d4d4;border-radius:8px;padding:11px 13px;font:inherit;color:var(--text);resize:vertical;background:white}textarea:focus{border-color:#5f5f5f;outline:2px solid #5f5f5f33}.draft-toolbar{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#fff;padding:14px;border:1px solid var(--line);border-radius:8px;margin-bottom:20px;box-shadow:0 2px 8px #0001}.draft-toolbar .hint{margin:0}.draft-lookup{margin-bottom:22px}.draft-search{display:grid;grid-template-columns:2fr 1fr;gap:16px}.draft-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.draft-fields{margin-bottom:22px}.draft-fields label,.draft-line label,.draft-amounts label{font-size:12px}.draft-line{border:1px solid var(--line);border-radius:9px;padding:18px;margin:18px 0}.draft-line legend{font-size:13px;font-weight:700;padding:0 8px}.draft-line-heading{display:grid;grid-template-columns:2fr 1fr 100px;gap:15px}.draft-line-values{display:grid;grid-template-columns:1fr 1fr 1fr 1.4fr;gap:15px}.draft-line-heading label,.draft-line-values label{margin-top:0}.draft-lines{margin-bottom:22px}.draft-money-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:15px}.draft-lookup h3{font-size:15px;margin-top:20px}.draft-form .validation:not(:empty){background:#fff1f1;padding:12px;margin:15px 0;border-radius:7px}.draft-amounts .hint{margin-top:14px}@media(max-width:1000px){.draft-money-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.draft-line-values{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.draft-search,.draft-line-heading,.draft-line-values{grid-template-columns:1fr}.draft-toolbar{gap:8px}.draft-toolbar .button{font-size:11px}.draft-line{padding:12px}}
.catalog-panel .searchbar select{width:200px;flex:0 0 200px}.catalog-panel .numeric{white-space:nowrap}@media(max-width:760px){.catalog-panel .searchbar select{width:100%;flex-basis:100%}}
.button.danger{color:#b42318;border-color:#e6b9b4}.button.danger:hover{background:#fff0ee}.statement-filters{grid-template-columns:2fr repeat(5,minmax(120px,1fr))}.statement-summary{border-top:2px solid var(--line);padding-bottom:8px}.statement-summary table{min-width:1100px}.statement-summary th,.statement-summary td{text-align:right;white-space:nowrap}.statement-summary>.hint,.statement-summary>.notice{margin:14px 22px}@media(max-width:1200px){.statement-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.statement-filters{grid-template-columns:1fr}}
.inline-check{display:inline-block;width:auto;min-height:0}.mail-signature-image{display:block;max-width:min(360px,100%);height:auto;margin:16px 0}.mail-text{white-space:pre-wrap;overflow-wrap:anywhere}.mail-editor fieldset{border:0;margin:0;padding:0;min-width:0}.mail-files li{margin:12px 0;overflow-wrap:anywhere}.mail-files .button{margin-left:10px}.mail-editor h2{margin-top:28px}
.mail-rich-editor{margin:0 0 8px;min-width:0;background:#fff}.mail-rich-editor .ql-toolbar{border-radius:8px 8px 0 0;background:#f8f8f8;font:13px Arial,sans-serif}.mail-rich-editor .ql-container{border-radius:0 0 8px 8px}.mail-rich-editor .ql-editor,.mail-rich-preview{font-family:"Malgun Gothic",Arial,sans-serif;font-size:11pt;line-height:1.5;overflow-wrap:anywhere}.mail-rich-editor .ql-editor{min-height:180px;max-height:650px;overflow-y:auto}.mail-rich-editor .ql-toolbar button,.mail-rich-editor .ql-toolbar select{width:28px;min-height:0;padding:3px 5px;border:0;border-radius:0;background:none}.mail-rich-editor .ql-picker{height:24px}.mail-rich-editor .ql-font{width:145px}.mail-rich-editor .ql-size{width:65px}.mail-rich-editor .ql-lineheight{width:65px}.mail-rich-editor .ql-picker-label::before,.mail-rich-editor .ql-picker-item::before{content:attr(data-label)}.mail-rich-editor .ql-font .ql-picker-label::before,.mail-rich-editor .ql-font .ql-picker-item::before,.mail-rich-editor .ql-size .ql-picker-label::before,.mail-rich-editor .ql-size .ql-picker-item::before{content:attr(data-label)!important}.mail-rich-editor .ql-snow .ql-picker-options{max-height:300px;overflow:auto}.mail-rich-editor .ql-tooltip::before{content:"링크 주소:"}.mail-rich-editor .ql-tooltip a.ql-action::after{content:"저장"}.mail-rich-editor .ql-tooltip a.ql-remove::before{content:"제거"}.mail-rich-editor .ql-toolbar input{width:auto;min-height:0;padding:3px}.mail-rich-preview p,.mail-rich-preview div{margin:0}.mail-rich-preview blockquote{margin:0 0 0 16px;border-left:3px solid #ccc;padding-left:12px}.mail-rich-preview a{color:#0563c1;text-decoration:underline}.mail-rich-preview h1{font-size:2em;letter-spacing:normal;line-height:inherit;margin:0}.mail-rich-preview h2{font-size:1.5em;letter-spacing:normal;line-height:inherit;margin:0}.mail-rich-preview h3{font-size:1.17em;letter-spacing:normal;line-height:inherit;margin:0}.rich-html[hidden],.rich-source[hidden]{display:none}.rich-counter{margin:4px 0 16px}@media(max-width:760px){.mail-rich-editor .ql-toolbar .ql-formats{margin-right:6px}.mail-rich-editor .ql-editor{min-height:160px}}

.mail-rich-preview img,.mail-rich-editor .ql-editor img{max-width:100%;height:auto;}

.mail-body-editor .ql-editor{min-height:540px;max-height:1200px}.mail-editor #Body:not([hidden]){min-height:540px}@media(max-width:760px){.mail-body-editor .ql-editor{min-height:480px}}

.mail-rich-editor img.rich-selected-image{outline:2px solid #5f5f5f}.mail-rich-editor .ql-toolbar .ql-resizeimage{width:42px;font-size:11px}

.mail-image-resizer{position:fixed;border:1px solid #5f5f5f;pointer-events:none;z-index:2000;box-sizing:border-box}.mail-image-resizer[hidden]{display:none}.mail-image-resizer .mail-image-handle{position:absolute;width:12px;height:12px;min-height:0;padding:0;background:white;border:2px solid #5f5f5f;border-radius:1px;pointer-events:auto;touch-action:none}.mail-image-handle.nw{left:-6px;top:-6px;cursor:nwse-resize}.mail-image-handle.ne{right:-6px;top:-6px;cursor:nesw-resize}.mail-image-handle.sw{left:-6px;bottom:-6px;cursor:nesw-resize}.mail-image-handle.se{right:-6px;bottom:-6px;cursor:nwse-resize}

.sidebar nav a .workspace-nav-icon{display:block;width:24px;height:24px;flex:0 0 24px;object-fit:contain;filter:brightness(0) invert(1);}

.module-icon.module-image-icon{background:#5f5f5f}.module-image-icon img{display:block;width:26px;height:26px;object-fit:contain;filter:brightness(0) invert(1);}

.sidebar>.wordmark{background:#fff;color:#000;margin:-30px -22px -18px;padding:30px 22px 18px;flex-shrink:0}.sidebar>.wordmark b{color:#000}
@media(max-width:1100px){.sidebar>.wordmark{margin:-25px -16px -18px;padding:25px 16px 18px}}
@media(max-width:760px){.sidebar>.wordmark{margin:-16px -18px 0;padding:16px 18px}}

@media(min-width:761px){.sidebar>.wordmark{height:76px;min-height:76px;margin:-30px -22px 0;padding:0 22px;border-bottom:1px solid var(--line);align-items:center}}
@media(min-width:761px) and (max-width:1100px){.sidebar>.wordmark{margin:-25px -16px 0;padding:0 16px}}

.period-shortcuts{grid-column:1/-1;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.period-shortcuts>span{font-size:12px;font-weight:700}.period-shortcuts small{color:var(--muted);font-size:11px}

.column-sort{display:inline-block;white-space:nowrap;padding:5px 0}.column-sort span[aria-hidden]{font-size:10px;opacity:.5}.column-sort.selected{font-weight:800;color:#111}.column-sort.selected span[aria-hidden]{opacity:1}.column-sort:hover{text-decoration:underline}.sort-divider{color:#5f5f5f}

.draft-party-more{margin:16px 0;border-top:1px solid var(--line);padding-top:12px}.draft-party-more summary{cursor:pointer;font-weight:700}.draft-party-more dl{margin:0}.draft-party-more dd{overflow-wrap:anywhere;white-space:pre-wrap}

/* Keep navigation states visible within the unified RGB(95,95,95) theme. */
.sidebar nav a.active{box-shadow:inset 0 0 0 1px #ffffff80;font-weight:700}.sidebar nav a:hover{box-shadow:inset 0 0 0 1px #ffffff40}

/* Home brand accent: a light inset card against the shared 95/95/95 banner. */
.welcome-banner .banner-art{position:relative;isolation:isolate;flex-shrink:0;width:214px;min-height:190px;margin-right:20px;padding:20px 26px 22px;background:linear-gradient(145deg,#fff,#f1f1f1);border:1px solid #ffffffb3;border-radius:20px;box-shadow:0 16px 32px #00000024,0 1px 0 #ffffff80 inset;}
.welcome-banner .banner-art::before{content:"";position:absolute;inset:-9px 9px 9px -9px;z-index:-1;border:1px solid #bfd5e6;background:#bfd5e62b;border-radius:24px;transform:rotate(-5deg);pointer-events:none;}
.welcome-banner .banner-art::after{content:"";position:absolute;left:28px;right:28px;bottom:12px;height:2px;background:linear-gradient(90deg,#ed3030 0 30%,transparent 30% 35%,#24bd43 35% 65%,transparent 65% 70%,#274cdb 70%);opacity:.65;border-radius:2px;}
.welcome-banner .banner-art .banner-logo{width:128px;height:128px;object-fit:contain;margin:0 auto 3px;}
.welcome-banner .banner-art>div{color:#5f5f5f;font-size:10px;font-weight:700;letter-spacing:2px;}
@media(min-width:761px) and (max-width:1100px){.welcome-banner .banner-art{width:184px;min-height:178px;margin-right:0;padding:15px 20px 20px}.welcome-banner .banner-art .banner-logo{width:116px;height:116px}}

.welcome-banner .banner-art>div{font-size:9px;letter-spacing:1.1px;white-space:nowrap}

/* Login-only slate palette and frosted brand plate. */
.login-intro{background:#26384a;background-image:radial-gradient(ellipse at 0% 15%,#ffffff0a,transparent 65%)}
.login-logo-glass{position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;padding:13px 14px;border:1px solid #ffffffb3;border-radius:15px;background:linear-gradient(135deg,#fffffff0,#ffffffc9);box-shadow:0 10px 24px #0b17262b,inset 0 1px 0 #fff;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);overflow:hidden}
.login-logo-glass::after{content:"";position:absolute;inset:0;background:linear-gradient(125deg,#ffffff4d,transparent 55%);pointer-events:none}
.login-brand .login-logo{position:relative;z-index:1;width:64px;height:auto;margin:0}
.login-brand .eyebrow{color:#f0f4f8}
.login-intro p{color:#dce4ec}
.login-intro .environment{color:#dce4ec;border-color:#ffffff40}
@media(max-width:760px){.login-logo-glass{padding:10px 12px;border-radius:12px}.login-brand .login-logo{width:52px}}

/* Home banner: slate blue gradient coordinated with the login palette. */
.welcome-banner{background:linear-gradient(110deg,#30465b 0%,#344c61 55%,#3b566c 100%)}

/* Home shortcuts share the banner slate palette; preserve white supplied icons. */
.module-icon.module-image-icon{background:linear-gradient(135deg,#30465b,#3b566c)}

/* Sidebar legibility: solid white labels and consistent, crisp icon slots. */
.sidebar nav a{color:#fff;font-size:14px;font-weight:600;line-height:1.5;min-height:46px;letter-spacing:0}
.sidebar nav a.active{font-weight:800;box-shadow:inset 0 0 0 1px #ffffffa6}
.sidebar nav>.nav-label{color:#fff;font-size:10px;font-weight:800;letter-spacing:1.4px}
.sidebar nav a .workspace-nav-icon{width:26px;height:26px;flex-basis:26px;filter:brightness(0) invert(1) drop-shadow(.25px 0 0 #fff) drop-shadow(0 .25px 0 #fff)}
.sidebar nav a .navigation-line-icon{display:block;width:26px;height:26px;flex:0 0 26px;color:#fff}
@media(min-width:761px) and (max-width:1100px){.sidebar nav a{font-size:13px;padding-left:10px;padding-right:10px;gap:10px}}
@media(max-width:760px){.sidebar nav a{font-size:12px;min-height:40px;gap:8px}.sidebar nav a .workspace-nav-icon,.sidebar nav a .navigation-line-icon{width:22px;height:22px;flex-basis:22px}}

.draft-row-search{padding:0 0 16px;margin-bottom:16px;border-bottom:1px solid var(--line)}.draft-row-search>label{margin-top:0}.draft-row-search-controls{display:flex;align-items:center;gap:10px}.draft-row-search-controls input{flex:1;min-width:0}.draft-row-search-controls .button{flex-shrink:0}.draft-row-results{padding:14px;background:#f5f7f9;border:1px solid var(--line);border-radius:8px;margin-bottom:20px}@media(max-width:760px){.draft-row-search-controls{flex-wrap:wrap}.draft-row-search-controls input{flex-basis:100%}}

.draft-line,.draft-row-results{min-width:0}.draft-row-results .table-scroll{max-width:100%}

.draft-row-search-controls select{width:160px;flex:0 0 160px}.draft-row-results .column-sort{font-size:12px;color:var(--text)}@media(max-width:760px){.draft-row-search-controls select{flex:1 0 100%;width:100%}}

@media(max-width:760px){.account{flex-wrap:wrap;row-gap:8px}}

.sidebar{overflow-y:auto}@media(max-width:760px){.sidebar{overflow-y:visible}}

.account-profile-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:20px}

#master-create-form [data-money="true"]{text-align:right;font-variant-numeric:tabular-nums}

.address-search-button{margin-top:10px}
.address-search-dialog{width:min(540px,calc(100vw - 32px));max-width:calc(100vw - 24px);max-height:92dvh;padding:20px;border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 60px #0004;overflow:auto}
.address-search-dialog::backdrop{background:#0007}
.address-search-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.address-search-heading h2{font-size:18px;margin:0}
.address-search-frame{height:min(460px,60dvh);min-height:300px;overflow:hidden}
@media(max-width:540px){.address-search-dialog{padding:12px}.address-search-frame{height:55dvh}}

/* Keep per-line VAT controls compact alongside their caption. */
.draft-line label:has(> .statement-auto-vat){display:flex;align-items:center;gap:7px;margin:8px 0 14px;line-height:1.4;font-size:12px;font-weight:400;cursor:pointer;}
.draft-line input.statement-auto-vat{display:inline-block;flex:0 0 15px;width:15px;height:15px;min-width:15px;min-height:15px;padding:0;margin:0;border:0;border-radius:3px;box-shadow:none;accent-color:#0d6efd;cursor:pointer;}

#quote-auto-vat{accent-color:#0d6efd;}

.mail-rename-editor{margin:10px 0;max-width:900px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fafafa}.mail-rename-editor[hidden]{display:none}.mail-rename-editor label{margin:0 0 7px}.mail-rename-controls{display:flex;align-items:center;gap:8px}.mail-rename-controls input{flex:1;min-width:0;min-height:36px;padding:7px 10px}.mail-rename-controls .button{margin:0;min-height:36px}.mail-rename-extension{white-space:nowrap;color:var(--muted)}.mail-rename-editor .hint{margin:7px 0 0}@media(max-width:760px){.mail-rename-controls{flex-wrap:wrap}.mail-rename-controls input{flex-basis:75%}}

.login-card .login-options{display:flex;align-items:center;gap:24px;margin:4px 0 8px}.login-card .login-options label{display:flex;align-items:center;gap:7px;margin:0;cursor:pointer}.login-card .login-options input[type=checkbox]{width:15px;height:15px;min-height:0;margin:0;padding:0;accent-color:#1677ff}.login-card .login-remember-hint{font-size:11px;color:var(--muted);margin:0 0 18px}

.draft-add-row{display:flex;justify-content:flex-end;margin-top:20px}.draft-add-row .button{margin:0}

/* Screen-only theme; document preview/print layouts use their own independent styles. */
.theme-picker{display:inline-flex;gap:2px;padding:3px;border:1px solid var(--line);border-radius:8px;background:var(--white);flex-shrink:0}
.theme-picker button{border:0;border-radius:5px;background:transparent;color:var(--muted);padding:5px 10px;font-size:11px;line-height:1.5;min-height:28px;font-weight:600}
.theme-picker button[aria-pressed=true]{background:#30485e;color:#fff}
.login-theme-picker{position:absolute;top:20px;right:24px;z-index:10}
html[data-theme=dark]{--text:#edf1f7;--muted:#b4c0cf;--line:#38424f;--bg:#11161d;--white:#1d2530;--teal:#c0d7f0;--teal-light:#293848;--danger:#ffb1b1}
html[data-theme=dark] body{background:var(--bg);color:var(--text)}
html[data-theme=dark] :is(.topbar,.panel,.module-card,.searchbar,.login-wrap,.theme-picker,.mail-rename-editor){background:#1d2530;border-color:var(--line);color:var(--text)}
html[data-theme=dark] :is(.sidebar){background:#18222d}
html[data-theme=dark] :is(.wordmark){background:#fff;color:#000}
html[data-theme=dark] :is(.muted,.hint,.footnote,.small,.cell-sub,.account,.workspace-footer,.page-heading p,.module-card p,.detail-field dt,.list-summary,.pagination,.back-link){color:var(--muted)}
html[data-theme=dark] :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){background:#131c26;color:var(--text);border-color:#4b596a;color-scheme:dark}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#a1aebf;opacity:1}
html[data-theme=dark] input[readonly]{background:#253242;color:#d7e5f5}
html[data-theme=dark] input:-webkit-autofill{-webkit-text-fill-color:#edf1f7;box-shadow:0 0 0 1000px #253242 inset}
html[data-theme=dark] :is(th,.badge,.notice,.notice.success,.filter-notice){background:#253242;color:#d7e5f5;border-color:#45566a}
html[data-theme=dark] :is(td,.detail-field,.detail-section h2){color:var(--text);border-color:var(--line)}
html[data-theme=dark] tbody tr:hover{background:#293848}
html[data-theme=dark] :is(.button,.button.light){background:#263545;color:#edf1f7;border-color:#53677e}
html[data-theme=dark] .button.primary{background:#486b8b;border-color:#486b8b;color:#fff}
html[data-theme=dark] .button.danger{background:#462d35;color:#ffc2c2;border-color:#93616c}
html[data-theme=dark] :is(.text-button,.record-link,.card-link,.section-title,.list-summary strong){color:#d0e3fa}
html[data-theme=dark] :is(.notice.error,.validation){color:#ffc0c0}
html[data-theme=dark] .notice.error{background:#3b242b;border-color:#87515c}
html[data-theme=dark] :is(.draft-line,.draft-row-search,.draft-party-more,.draft-actions){border-color:var(--line)}
html[data-theme=dark] :is(.ql-toolbar.ql-snow,.ql-container.ql-snow){background:#1a2430;border-color:#4b596a;color:#edf1f7}
html[data-theme=dark] :is(.ql-snow .ql-picker,.ql-snow .ql-tooltip){color:#edf1f7}
html[data-theme=dark] :is(.ql-snow .ql-picker-options,.ql-snow .ql-tooltip){background:#263545;border-color:#53677e}
html[data-theme=dark] .ql-snow .ql-stroke{stroke:#d7e5f5}html[data-theme=dark] .ql-snow .ql-fill{fill:#d7e5f5}
html[data-theme=dark] .ql-editor.ql-blank::before{color:#a1aebf}
html[data-theme=dark] .theme-picker button{color:#c1cede}html[data-theme=dark] .theme-picker button[aria-pressed=true]{background:#c0d7f0;color:#142232}
@media(max-width:760px){.account{flex-wrap:wrap}.login-theme-picker{top:12px;right:12px}}html[data-theme=dark] :is(.check-list,.quote-status,.sort-divider){color:var(--muted)}
html[data-theme=dark] :is(.draft-toolbar,.draft-row-results,.module-card:hover){background:#253242;border-color:var(--line)}
html[data-theme=dark] .column-sort.selected{color:#d0e3fa}
html[data-theme=dark] .draft-form .validation:not(:empty){background:#3b242b}
/* Authored mail colors stay faithful to the message, like a document canvas. */
html[data-theme=dark] :is(.mail-rich-editor .ql-container,.mail-rich-editor .ql-editor,.mail-rich-preview){background:#fff;color:#222;color-scheme:light}
html[data-theme=dark] .mail-rich-preview{padding:14px;border-radius:6px}
html[data-theme=dark] .mail-rich-editor .ql-editor.ql-blank::before{color:#666}.workspace-search{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:20px}.workspace-search label{margin:0;flex:1;min-width:170px}.calendar-scroll{overflow:auto;margin-bottom:22px}.workspace-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:700px;border-top:1px solid var(--line);border-left:1px solid var(--line);background:var(--white)}.calendar-heading,.calendar-day{border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:10px}.calendar-heading{text-align:center;font-weight:700;background:var(--teal-light)}.calendar-day{min-height:120px;overflow:hidden}.calendar-day.outside{opacity:.45}.calendar-day strong{display:block;margin-bottom:5px}.calendar-day a{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:var(--teal-light);color:var(--text);border-radius:4px;margin:4px 0;padding:3px 5px;font-size:11px}.workspace-entry-body{white-space:pre-wrap;overflow-wrap:anywhere}.workspace-delete{margin-top:30px;border-top:1px solid var(--line);padding-top:16px}
.sidebar{overflow-y:auto}.sidebar nav{flex-shrink:0}.sidebar-foot{flex-shrink:0}@media(max-width:760px){.sidebar{overflow:visible}}
[data-schedule-time][hidden],[data-schedule-date][hidden]{display:none}.all-day-choice{display:flex;align-items:center;gap:8px}.all-day-choice input{width:16px;height:16px;margin:0;min-height:0;accent-color:#1677ff}.board-files li{padding:8px 0}.board-files label{display:inline-flex;margin:0 0 0 15px;align-items:center;gap:6px}.board-emoji-group{display:inline-block;position:relative}.mail-rich-editor .ql-toolbar .board-emoji-group>button{font-size:20px;color:var(--text);width:32px}.board-emoji-picker{position:absolute;top:100%;right:0;z-index:20;display:grid;grid-template-columns:repeat(5,36px);padding:8px;background:var(--white);border:1px solid var(--line);border-radius:8px;box-shadow:0 4px 18px #0003}.board-emoji-picker[hidden]{display:none}.mail-rich-editor .ql-toolbar .board-emoji-picker button{font-size:21px;width:36px;height:36px;padding:3px}.sales-filters{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end;margin-bottom:20px}.sales-filters>label{flex:1;min-width:155px;margin:0}.sales-filters .period-shortcuts{width:100%}.sales-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:20px 0 8px}.sales-actions button:disabled{opacity:.5;cursor:wait}.sales-report-scroll{overflow:auto;margin-top:20px}.sales-report{background:#fff;color:#111;min-width:1260px;padding:28px;font:14px/1.5 'Malgun Gothic',sans-serif}.sales-report header{border-bottom:2px solid #222;padding-bottom:12px}.sales-report h2{font-size:30px;text-align:center;margin:0 0 16px;color:#111}.sales-report header p{margin:4px 0}.sales-brand{float:right;font-size:18px;font-weight:800}.sales-count{font-size:12px;margin:12px 0}.sales-report-table{white-space:normal;table-layout:fixed;font-size:13px}.sales-report-table :is(th,td){background:#fff;color:#111;border:1px solid #777;padding:7px 6px;white-space:normal;max-width:none;overflow-wrap:anywhere;text-overflow:clip}.sales-report-table th{text-align:center;background:#eee;font-size:13px}.sales-report-table tbody tr:hover{background:none}.sales-report-table .sales-group th{text-align:left;background:#e8eef4}.sales-report-table .sales-subtotal td{background:#f3f3f3;font-weight:700}.sales-report-table tfoot td,.sales-report-table tfoot th{background:#e8eef4;font-weight:700}.sales-note{font-size:11px;color:#444;margin:10px 0 0}.sales-report .numeric{white-space:nowrap}
html[data-theme=dark] .sales-report-table :is(th,td){color:#111;border-color:#777}html[data-theme=dark] .sales-report-table th{background:#eee}html[data-theme=dark] .sales-report-table .sales-group th{background:#e8eef4}html[data-theme=dark] .sales-report-table .sales-subtotal td{background:#f3f3f3}html[data-theme=dark] .sales-report-table tfoot :is(th,td){background:#e8eef4}
@media print{@page sales-report{size:A4 landscape;margin:10mm}.sales-report{page:sales-report}body:has(.sales-report){background:#fff}.sidebar:has(~.workspace .sales-report),body:has(.sales-report) .topbar,body:has(.sales-report) .workspace-footer,body:has(.sales-report) .content>:not(.sales-report-scroll){display:none!important}body:has(.sales-report) .workspace{margin:0}body:has(.sales-report) .content{padding:0}.sales-report-scroll{overflow:visible;margin:0}.sales-report{min-width:0;padding:0;font-size:9pt}.sales-report-table :is(th,td){font-size:8pt;padding:4px}.sales-report-table tr{break-inside:avoid}.sales-report-table thead{display:table-header-group}.sales-report-table tfoot{display:table-row-group}}
.board-entry-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0 0}.board-entry-body{border-top:1px solid var(--line);margin-top:24px;padding-top:28px}.board-comments{margin-top:22px}.board-comment{padding:20px 0;border-bottom:1px solid var(--line)}.board-comment .board-entry-meta{margin:0 0 12px}.comment-actions{display:flex;gap:18px;align-items:flex-start;margin-top:14px}.comment-actions details[open]{flex:1}.comment-actions summary{cursor:pointer;font-size:12px}.comment-actions form{margin-top:12px}.comment-compose{padding-top:24px}.comment-compose .hint{margin:8px 0 14px}@media(max-width:600px){.comment-actions{flex-wrap:wrap}.comment-actions details[open]{flex-basis:100%}}

.comment-emoji{position:relative;display:inline-block;margin:0 0 8px}.comment-emoji-picker{position:absolute;top:100%;left:0;z-index:30;display:grid;grid-template-columns:repeat(6,36px);gap:2px;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--white);box-shadow:0 5px 18px #0002}.comment-emoji-picker[hidden]{display:none}.comment-emoji-picker button{width:36px;height:36px;min-height:0;padding:3px;font-size:21px;border:0;background:transparent;border-radius:5px}.comment-emoji-picker button:hover,.comment-emoji-picker button:focus-visible{background:var(--teal-light)}

.order-table-scroll{overflow:auto;max-height:70vh}.order-table{min-width:2900px;width:100%;border-collapse:collapse}.order-table th{position:sticky;top:0;background:var(--white);z-index:1}.order-table th,.order-table td{padding:12px;white-space:pre-wrap;min-width:100px;border-bottom:1px solid var(--line);vertical-align:middle}.order-table th a{white-space:nowrap}


.order-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.order-filter-grid label{display:flex;flex-direction:column;gap:8px}.order-filter-grid+.draft-actions{margin-top:20px}@media(max-width:1000px){.order-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.order-filter-grid{grid-template-columns:1fr}}

/* Compact order ledger filters, spreadsheet columns and entry fields. */
.order-filter-panel{padding:16px 18px}.order-filter-grid{gap:8px 12px}.order-filter-grid label{margin:0;gap:4px}.order-filter-grid input,.order-filter-grid select{min-height:38px;padding:7px 10px}.order-filter-grid+.draft-actions{margin-top:10px;margin-bottom:0}
.order-table{min-width:0;width:max-content;table-layout:auto;font-size:12px}.order-table th,.order-table td{padding:5px 7px;min-width:0;max-width:200px;white-space:nowrap;line-height:1.4}.order-table th{font-size:11px}.order-totals [data-order-total="orders"] strong{color:#d92d20}[data-theme="dark"] .order-totals [data-order-total="orders"] strong{color:#ff8787}
.order-edit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 16px}.order-edit .order-field label{margin:0 0 5px}.order-field input,.order-field select{min-height:40px;padding:8px 10px}.order-input-action{display:flex;gap:6px;align-items:center}.order-input-action input{min-width:0}.order-date-mode{margin-bottom:5px}.order-section-title{margin-top:28px}.order-product-line{border:1px solid var(--line);border-radius:8px;margin:12px 0;padding:16px}.order-product-line legend{padding:0 6px}.order-product-line .order-field:first-child{grid-column:span 2}.order-line-actions{justify-content:flex-end}.order-lookup-results{max-height:230px;overflow:auto;border:1px solid var(--line);background:var(--white);border-radius:6px;padding:6px;margin-top:6px}.order-lookup-results[hidden]{display:none}.order-lookup-choice{display:block;width:100%;border:0;background:transparent;color:var(--text);text-align:left;padding:8px;white-space:normal}.order-lookup-choice:hover,.order-lookup-choice:focus{background:var(--teal-light)}.order-edit .muted{margin-top:18px}
@media(max-width:1100px){.order-edit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.order-edit-grid{grid-template-columns:1fr}.order-product-line .order-field:first-child{grid-column:auto}}

/* Distinct, opaque sticky headers and red delivery/negative-price values in both themes. */
.order-table thead th{background:#ededed;color:#333;border-bottom:2px solid #ccc}.order-table thead th a{color:inherit}.order-table td.order-attention{color:#d92d20;font-weight:700}
html[data-theme="dark"] .order-table-scroll .order-table thead th{background:#293b4e;color:#e8f0f8;border-bottom-color:#50677e}[data-theme="dark"] .order-table td.order-attention{color:#ff8787}

.order-field{position:relative;align-self:start;min-width:0}.order-field.lookup-open{z-index:35}.order-lookup-results{position:absolute;top:100%;left:0;right:0;z-index:40;box-shadow:0 6px 18px #0003;max-height:230px}.order-lookup-results p{margin:4px 6px}

.order-detail-actions{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.order-delete-confirm{display:flex;align-items:center;gap:8px}.order-delete-confirm input{width:16px;height:16px;min-height:0;margin:0;accent-color:#1677ff}

.order-lookup-choice strong,.order-lookup-choice small{display:block}.order-lookup-choice small{color:var(--muted);font-size:11px;margin-top:2px}.order-lookup-choice+.order-lookup-choice{border-top:1px solid var(--line)}

/* Read-only completion overlay: no changes to the existing search controls or layout. */
.search-suggestions{position:fixed;z-index:2000;overflow:auto;background:var(--white);color:var(--text);border:1px solid var(--line);border-radius:8px;box-shadow:0 6px 18px #0003;padding:4px}.search-suggestions[hidden]{display:none}.search-suggestions button{display:block;width:100%;text-align:left;background:transparent;color:var(--text);border:0;border-radius:4px;padding:9px 10px;white-space:normal}.search-suggestions button:hover,.search-suggestions button[aria-selected=true]{background:var(--teal-light)}.search-suggestions strong,.search-suggestions small{display:block}.search-suggestions small{font-size:11px;color:var(--muted);margin-top:2px}.search-suggestion-empty{padding:10px;font-size:12px;color:var(--muted)}.order-lookup-choice[aria-selected=true]{background:var(--teal-light)}

.order-transfer-check{width:16px;height:16px;min-height:0;margin:0;accent-color:#1677ff}

/* Separate order date shortcuts from the search/reset actions. */
.order-filter-panel > .period-shortcuts{margin-top:16px}

/* Keep order-level actions clear of the filter panel. */
.page-heading + .draft-actions:has(+ .order-filter-panel){margin-top:-8px;margin-bottom:18px}

/* Order list uses stable source-column identifiers; detail and Excel retain all fields. */
.order-table{width:100%}
.order-table :is([data-order-col="5"],[data-order-col="6"],[data-order-col="22"]){white-space:normal;overflow-wrap:anywhere;max-width:180px}
.order-table :is([data-order-col="3"],[data-order-col="4"],[data-order-col="13"],[data-order-col="17"],[data-order-col="18"]){text-align:center}
.order-table :is([data-order-col="8"],[data-order-col="9"],[data-order-col="10"]){text-align:right}

/* Quote edit: compact spreadsheet and original detailed editor share the same inputs. */
.quote-mode-picker{display:inline-flex;padding:3px;gap:3px;border:1px solid var(--line);border-radius:999px;background:var(--bg);flex-shrink:0}
.quote-mode-picker[hidden]{display:none}.quote-mode-picker label{margin:0;display:flex;align-items:center;gap:5px;padding:6px 10px;border-radius:999px;font-size:12px;cursor:pointer;white-space:nowrap}
.quote-mode-picker label:has(:checked){background:var(--teal);color:#fff}.quote-mode-picker input[type=radio]{display:inline-block;width:14px;height:14px;min-height:0;padding:0;margin:0;accent-color:#1677ff}
.quote-lines-viewport,.quote-lines-body{display:contents}.quote-grid-header,.quote-row-number,.quote-row-lookup,.quote-spec-trigger{display:none}
.quote-mode-simple > .draft-toolbar + .notice{display:none}.quote-mode-simple > .draft-lookup{padding:14px 18px}.quote-mode-simple > .draft-lookup h2{font-size:15px;margin-bottom:8px}.quote-mode-simple > .draft-lookup label{margin:0 0 4px}.quote-mode-simple > .draft-lookup .draft-actions{margin-top:8px}
.quote-mode-simple .draft-fields{gap:12px;margin-top:12px}.quote-mode-simple .draft-fields > section{padding:14px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 10px;align-content:start}.quote-mode-simple .draft-fields h2{font-size:15px;grid-column:1/-1;margin-bottom:4px}.quote-mode-simple .draft-fields label{font-size:11px;margin:0 0 3px}.quote-mode-simple .draft-fields input,.quote-mode-simple .draft-fields select{min-height:32px;height:32px;padding:5px 7px;font-size:12px}.quote-mode-simple .draft-fields > section > :is(details,.draft-search){grid-column:1/-1}.quote-mode-simple .draft-fields > section > .hint,.quote-mode-simple .quote-meta-secondary{display:none}.quote-mode-simple .draft-fields > section > .button{grid-column:1/-1;justify-self:start;min-height:26px;padding:2px 7px;font-size:11px}.quote-mode-simple .draft-fields .draft-search{gap:10px}.quote-mode-simple .draft-fields details{font-size:11px}
.quote-mode-simple .draft-lines{padding:14px;margin-top:12px}.quote-mode-simple .draft-lines h2{font-size:16px}.quote-mode-simple .quote-lines-viewport{display:block;overflow:auto;max-height:72vh;border:1px solid var(--line);border-radius:6px}
.quote-mode-simple .quote-grid-header,.quote-mode-simple .quote-lines-body > .draft-line{display:grid;grid-template-columns:32px minmax(220px,2.2fr) minmax(80px,.8fr) 62px 48px 65px 110px 115px minmax(100px,1fr) 42px;min-width:1050px;gap:0;align-items:stretch}
.quote-mode-simple .quote-grid-header{position:sticky;top:0;z-index:2;background:var(--bg);font-size:11px;font-weight:700;border-bottom:1px solid var(--line)}.quote-mode-simple .quote-grid-header span{padding:7px 5px;border-right:1px solid var(--line);text-align:center}.quote-grid-header[hidden]{display:none}
.quote-mode-simple .quote-lines-body{display:block}.quote-mode-simple .quote-lines-body > .draft-line{margin:0;padding:0;border:0;border-bottom:1px solid var(--line);border-radius:0;min-inline-size:1050px}.quote-mode-simple .quote-lines-body > .draft-line:focus-within{background:var(--teal-light)}
.quote-mode-simple .draft-line > :is(legend,label,textarea,.draft-row-search,.draft-row-results){display:none}.quote-mode-simple .draft-line > :is(.draft-line-heading,.draft-line-values){display:contents}.quote-mode-simple .draft-line .quote-cell{padding:2px 3px;border-right:1px solid var(--line);min-width:0;grid-row:1}.quote-mode-simple .draft-line .quote-cell label{display:none}.quote-mode-simple .draft-line .quote-cell input{min-height:28px;height:28px;border:1px solid transparent;background:transparent;padding:3px 4px;border-radius:3px;font-size:12px;min-width:0}.quote-mode-simple .draft-line .quote-cell input:focus{border-color:var(--teal);background:var(--white);outline:1px solid var(--teal)}
.quote-mode-simple .quote-row-number{display:flex;align-items:center;justify-content:center;grid-column:1;grid-row:1;font-size:11px;border-right:1px solid var(--line)}.quote-mode-simple .quote-cell-product{grid-column:2;display:flex;align-items:center;gap:2px}.quote-mode-simple .quote-cell-specification{grid-column:3}.quote-mode-simple .quote-cell-unit{grid-column:5}.quote-mode-simple .quote-cell-quantity{grid-column:6}.quote-mode-simple .quote-cell-unitprice{grid-column:7}.quote-mode-simple .quote-cell-amount{grid-column:8}.quote-mode-simple .quote-cell-notes{grid-column:9}
.quote-mode-simple .quote-row-lookup{display:inline-flex;align-items:center;justify-content:center;flex:0 0 25px;width:25px;height:26px;border:1px solid var(--line);border-radius:3px;background:var(--white);color:var(--text);padding:4px}.quote-row-lookup svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}
.quote-mode-simple .quote-spec-trigger{display:block;grid-column:4;grid-row:1;margin:3px;border:1px solid var(--line);border-radius:3px;padding:0 4px;background:var(--white);color:var(--text);font-size:11px}.quote-mode-simple .draft-line > .draft-actions{grid-column:10;grid-row:1;margin:0;justify-content:center;align-items:center}.quote-mode-simple .draft-line > .draft-actions button{min-height:26px;height:26px;padding:0 8px;font-size:17px;color:#d92d20}
.quote-row-dialog{width:min(1000px,94vw);max-height:88dvh;overflow:auto;background:var(--white);color:var(--text);border:1px solid var(--line);border-radius:12px;padding:20px}.quote-row-dialog::backdrop{background:#0006}.quote-row-dialog h2{font-size:18px}.quote-row-dialog .draft-row-search{display:block}.quote-row-dialog textarea{display:block;width:100%;min-height:240px}.quote-row-dialog .draft-row-results{display:block}.quote-row-dialog .table-scroll{max-height:48vh}.quote-mode-simple .draft-amounts{padding:16px;margin-top:12px}.quote-mode-simple .draft-amounts h2{font-size:16px}.quote-mode-simple .draft-amounts label{margin-top:8px}
@media(max-width:900px){.quote-mode-simple .draft-fields{grid-template-columns:1fr}.quote-mode-simple .draft-fields > section{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-mode-picker label{padding:5px 7px}}

.quote-mode-simple > .validation-summary-valid{display:none}
.quote-mode-simple .draft-fields > section > :is(details,.button,.hint){display:none}
.quote-mode-simple .draft-fields > section:nth-child(2) .quote-meta-field{order:1}
.quote-mode-simple .draft-fields > section:nth-child(2) .quote-meta-field:has([name="Input.Company"]){grid-column:span 2}
.quote-mode-simple .draft-fields > section:nth-child(2) > .draft-search{order:2}
html[data-theme="dark"] .quote-mode-picker label:has(:checked){background:#466a87;color:#fff}

/* Statement sheet retains per-row VAT controls and the shared detailed editor. */
.statement-layout.quote-mode-simple .quote-grid-header,.statement-layout.quote-mode-simple .quote-lines-body > .draft-line{grid-template-columns:32px minmax(220px,2.2fr) minmax(80px,.8fr) 62px 48px 65px 110px 115px 115px minmax(100px,1fr) 42px;min-width:1165px}
.statement-layout.quote-mode-simple .quote-cell-tax{grid-column:9;display:flex;align-items:center;gap:3px}.statement-layout.quote-mode-simple .quote-cell-tax > input:not([type=hidden]){min-width:0;flex:1}.statement-layout.quote-mode-simple .quote-cell-tax label.hint{display:inline-flex;margin:0;font-size:0;flex-shrink:0}.statement-layout.quote-mode-simple .quote-cell-tax input[type=checkbox]{display:inline-block;width:13px;height:13px;min-height:0;padding:0;margin:0;accent-color:#1677ff}.statement-layout.quote-mode-simple .quote-cell-notes{grid-column:10}.statement-layout.quote-mode-simple .draft-line > .draft-actions{grid-column:11}.statement-layout.quote-mode-simple .quote-lines-body > .draft-line{min-inline-size:1165px}

/* Keep saved statement party information discoverable in the compact editor. */
.statement-layout.quote-mode-simple .quote-meta-secondary{display:block}.statement-layout.quote-mode-simple .draft-fields > section > details.draft-party-more{display:block;grid-column:1/-1}.statement-layout.quote-mode-simple .draft-fields > section:nth-child(2) .quote-meta-field:has([name="Input.Address"]){grid-column:span 2}
