@import url('./record-frame.css');
@import url('./kovox-billing.css');
@import url('./dxf-geometry.css');
@import url('./chart-plan.css');
@import url('./other-form.css');
@import url('./sheet-layout.css');
@import url('./order-parity.css');
@import url('./chart-costs.css');
@import url('./project-views.css');
@import url('./project-form.css');
@import url('./project-costs.css');
@import url('./purchase-costs.css');
:root{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;color:#343740;font-size:14px;--orange:#ffe3bc;--orange-ink:#874000;--border:#dce0e6;--side:#f0f2f9}*{box-sizing:border-box}body{margin:0;background:white}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;border:1px solid #c8cdd4;border-radius:4px;background:#f7f8fa;padding:8px 12px}button:hover{filter:brightness(.97)}button:disabled{opacity:.45;cursor:default}input,textarea,select{border:1px solid #d8dce3;border-radius:3px;background:#fafbfc;padding:9px 10px;min-height:36px;max-width:100%}textarea{resize:vertical;line-height:1.4}input:focus,textarea:focus,select:focus{outline:2px solid #dba15b;outline-offset:0}label{display:flex;flex-direction:column;gap:6px}.orange{background:var(--orange);color:var(--orange-ink);border-color:transparent}.green{background:#e5f3e9;color:#256842;border-color:transparent}.purple{background:#eee7fa;color:#7141a5;border-color:transparent}.red{color:#c92323;background:#ffeded;border:0}.dark{background:#25272d;color:white;border-color:#25272d}.small{padding:5px 10px;min-height:29px}.icon{width:34px;height:34px;padding:0;display:inline-flex;justify-content:center;align-items:center;font-size:21px;border:0;background:transparent}.cross{width:29px;height:29px;display:inline-flex;justify-content:center;align-items:center;padding:0;line-height:1;color:#cb2028;background:#ffeded;border:0;font-size:24px}.top{height:47px;background:#121416;color:#ddd;display:flex;align-items:center;gap:15px;padding:0 20px}.brand-mark{border:3px solid #bd7b3e;color:#bd7b3e;border-radius:50%;width:28px;height:28px;display:grid;place-items:center;font-weight:700}.top .right{margin-left:auto;display:flex;gap:12px;align-items:center}.top button{background:transparent;border:0;color:#aaa}.shell{display:flex;height:calc(100vh - 47px)}.sidebar{width:205px;flex:none;background:var(--side);padding:16px 8px;overflow:auto;border-right:1px solid #e4e6ec}.nav-link{height:40px;display:flex;align-items:center;gap:12px;border-radius:11px;padding:0 13px;color:#804717;cursor:pointer;white-space:nowrap}.nav-link.active{background:white}.nav-icon{width:23px;text-align:center;font-size:21px;color:#f6a63b}.nav-link[data-nav=projects] .nav-icon{color:#4cc68b}.nav-link[data-nav=subjects] .nav-icon{color:#55c2dd}.nav-link[data-nav=material] .nav-icon{color:#7b8b9c}.nav-space{height:28px}.nav-rule{height:1px;background:#d7dce4;margin:12px 4px}.workspace{flex:1;min-width:0;display:flex;flex-direction:column}.tabs{height:46px;background:#24262b;color:#aaa;display:flex;align-items:stretch;padding-left:8px;flex:none}.tab{border:0;border-radius:8px 8px 0 0;color:#aaa;background:transparent;padding:0 18px;display:flex;align-items:center;gap:10px;font-size:16px}.tab.active{background:#dedfe3;color:#303239;font-weight:600}.toolbar{display:flex;align-items:center;gap:10px;min-height:54px;padding:7px 18px;border-bottom:1px solid var(--border);flex:none}.search{width:300px;margin-left:20px;min-height:36px;background:#fafafa}.toolbar .push{margin-left:auto}.toolbar button.filter{border:1px solid #ae6817;color:#814308;background:#fffaf3;padding:8px 15px;font-weight:600}.content{flex:1;overflow:auto;position:relative}.grid{border-collapse:collapse;width:100%;table-layout:fixed;font-size:14px}.grid th{background:#f0f1f4;font-weight:600;text-align:left;border:1px solid var(--border);padding:12px 10px;height:44px;position:sticky;top:0;z-index:1;white-space:nowrap}.grid td{border:1px solid var(--border);padding:11px 10px;height:43px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.grid tbody tr{cursor:pointer}.grid tbody tr:nth-child(even){background:#f8f9fb}.grid tbody tr:hover{background:#f1f4f9}.grid tbody tr.selected{background:#e9edf5}.grid .num{text-align:right;font-variant-numeric:tabular-nums}.grid .row-no{width:40px;text-align:center;background:#f5f6fa;color:#454852}.status-ready{background:#e8f5e9!important}.status-invoice{background:#246c3b!important;color:white}.status-delivery{background:#ffd095!important}.status-purchase{background:#cde4f7!important}.empty{text-align:center;padding:50px;color:#858b94}.detail-header{position:sticky;top:0;background:white;display:flex;height:44px;align-items:center;gap:10px;padding:0 18px;border-bottom:1px solid var(--border);z-index:3}.detail-tab{border:0;background:transparent;border-radius:4px}.detail-tab.active{background:#30343e;color:white;font-weight:600}.form{padding:22px 26px 50px;min-width:850px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 15px}.form-grid .span2{grid-column:span 2}.form-grid .pair{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field-label{font-size:13px}.read-field{background:#fafbfc;border:1px solid #e3e6ec;border-radius:3px;padding:9px 10px;min-height:36px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.form-actions{display:flex;gap:16px;margin:20px 0 24px}.doc-button{font-weight:600;position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:95px;height:36px;padding:0 16px;border-radius:4px;border:0}.doc-button .eye{display:none;margin-left:8px;border:0;background:transparent;padding:0;font-size:15px;color:inherit}.doc-button:hover .eye{display:inline}.section{margin:20px 0 14px}.section-title{font-size:16px;font-weight:500;padding:0 0 12px}.block{border:1px solid #cdd6df;border-radius:7px;margin:14px 0;padding:14px;background:#f7f9fb}.block.import{background:#edf2f6}.block.import strong{display:block;font-size:18px;color:#2d4354}.block.import p{margin:6px 0 15px;color:#617180}.block .actions{display:flex;gap:9px;flex-wrap:wrap}.block.plan{display:flex;align-items:center;justify-content:space-between;background:#edf6f0;color:#315d43}.block.plan strong{font-size:16px}.block.plan p{margin:5px 0 0;color:#678171}.items-wrap{overflow:auto}.items-grid{min-width:100%;width:max-content;table-layout:fixed}.items-grid th,.items-grid td{padding:7px 10px}.items-grid .action-cell{padding:3px;width:53px;text-align:center}.items-grid .doc-button{min-width:38px;width:38px;height:34px;padding:0 7px}.items-grid .doc-button:hover{width:auto}.items-grid .excluded{background:#ffeded!important;color:#a23a37}.switch{display:inline-flex;vertical-align:middle;width:44px;height:24px;background:#188140;border-radius:20px;border:0;padding:2px;align-items:center;justify-content:flex-end}.switch:after{content:'';display:block;width:20px;height:20px;border-radius:50%;background:white;box-shadow:0 1px 3px #0003}.switch.off{background:#bf4744;justify-content:flex-start}.checklist{margin-top:12px;border:1px solid #c2d7c7;background:#edf7ee;border-radius:6px;padding:12px 15px;line-height:1.6;color:#315e3a}.checklist.waiting{background:#fff7e8;border-color:#e3cb9a;color:#7d6028}.billing{margin:18px -4px;border:2px solid #548c61;background:#edf7ef;border-radius:9px;padding:12px 15px;color:#295f33}.billing.missing{background:#fff3f1;border-color:#c65b4d;color:#8c3026}.billing.chart{background:#eff4f8;border-color:#b4c5d5;color:#26495f}.billing-head{display:flex;align-items:center;gap:10px;background:#fafbfc;border:1px solid #dce3e7;border-radius:3px;padding:12px 15px;cursor:pointer;font-weight:600}.billing-head .billing-order{margin-left:auto;text-align:right;font-weight:400}.billing-head .billing-state{display:block;font-weight:600;margin-top:3px}.billing .grid{color:#343740;background:#fff;margin-top:16px}.billing input{background:#fff;border:1px solid transparent;padding:5px;width:100%}.billing input:hover{border-color:#cfd4dc}.billing input:focus{border-color:#caa064}.total{margin-top:12px;padding:12px;border:1px solid #dce6dc;border-radius:4px;background:white;font-size:16px;font-weight:600}.table-add{display:flex;align-items:center;gap:14px;padding:12px 0}.modal-overlay{position:fixed;inset:0;background:#10182266;z-index:50;display:flex;align-items:center;justify-content:center;padding:35px}.modal{background:white;border-radius:10px;max-width:1100px;width:100%;max-height:90vh;overflow:auto;box-shadow:0 18px 60px #0003}.modal.small-modal{max-width:600px}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:20px 22px 12px;position:sticky;top:0;background:#fff;z-index:1}.modal-head h2{font-size:19px;margin:0}.modal-body{padding:10px 22px 22px}.modal-footer{display:flex;gap:10px;justify-content:flex-end;padding:0 22px 20px}.checkboxes{display:grid;grid-template-columns:1fr 1fr;gap:15px}.checkboxes label{display:flex;flex-direction:row;align-items:center}.checkboxes input{min-height:0;width:17px;height:17px}.preview-modal{max-width:1200px;height:90vh}.preview-tools{display:flex;align-items:center;gap:8px}.preview-tools .download{color:#a86113;background:#fff0d9}.preview-body{height:calc(90vh - 70px);background:#e5e7eb;overflow:auto;padding:18px}.preview-body iframe{width:100%;height:100%;border:0;background:white}.hover-preview{position:fixed;z-index:40;width:620px;height:74vh;background:#f8f9fb;border:1px solid #b9bec5;border-radius:7px;box-shadow:0 12px 32px #0003;overflow:hidden}.hover-preview header{padding:8px 10px;display:flex;align-items:center;justify-content:space-between;background:white;border-bottom:1px solid #ddd}.hover-preview iframe{width:100%;height:calc(100% - 43px);border:0}.hoverable{text-decoration:none;color:inherit;cursor:zoom-in}.hoverable:hover{text-decoration:underline}.tag{display:inline-flex;padding:3px 7px;border-radius:3px;background:#eef0f4;color:#566171;font-size:12px}.login-page{min-height:100vh;background:#eff1f6;display:grid;place-items:center}.login-box{background:#fff;padding:35px;border:1px solid #d9dfe8;border-radius:10px;width:390px}.login-box h1{font-size:22px;margin-top:0}.login-box form{display:flex;flex-direction:column;gap:17px}.login-box .note{color:#77818b;font-size:12px;line-height:1.5}.error{color:#b12727}.toast{background:#29343e;color:#fff;padding:11px 18px;margin:7px;border-radius:5px;box-shadow:0 4px 16px #0002;max-width:550px}#toasts{position:fixed;right:20px;bottom:15px;z-index:100}.toast.error{background:#8f2c2c}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;padding:24px}.card{padding:20px;border:1px solid #dce1e8;border-radius:7px;background:white}.card strong{display:block;font-size:25px;margin:10px 0}.subtle{color:#7a828c;font-size:12px}.form-error{color:#a02f2f;line-height:1.5;margin:9px 0}.clickable{cursor:pointer}fieldset{border:1px solid #ddd;border-radius:5px;margin-bottom:16px}legend{font-weight:600}a{color:#83521f}button:focus-visible{outline:2px solid #ad711f;outline-offset:2px}@media(max-width:900px){.sidebar{width:165px}.form{padding:18px;min-width:740px}.search{margin-left:0;width:220px}.cards{grid-template-columns:1fr 1fr}}@media print{.top,.sidebar,.tabs,.toolbar{display:none}.shell{height:auto}.workspace{display:block}}
.quote-grid{table-layout:auto;margin:18px 0}.quote-grid th,.quote-grid td{white-space:normal;vertical-align:top;padding:12px 8px}.quote-grid th:nth-child(n+2):nth-child(-n+6){text-align:right}.quote-grid .subtle{line-height:1.4;margin-top:6px}summary{cursor:pointer;padding:5px 0}
.quote-grid td.num{white-space:nowrap}.quote-grid th{line-height:1.35}
.cad-host{height:calc(90vh - 85px);min-height:400px}.cad-host iframe{width:100%;height:100%;border:0;display:block}.modal-head{gap:12px}.modal-head h2{margin-right:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.modal-head .cross{order:3}.preview-tools{order:2}
.word-zoom{display:flex;justify-content:center;gap:12px;align-items:center;background:#f1f3f5;padding:5px;border-bottom:1px solid #ddd}.preview-body:has(.word-zoom){display:flex;flex-direction:column}.preview-body:has(.word-zoom) iframe{flex:1;min-height:0}.hover-preview:has(.word-zoom) iframe{height:calc(100% - 79px)}.check-row{display:flex;align-items:center;gap:9px;margin:10px 0}.check-row input{width:auto;min-height:0}.import-grid{margin-bottom:20px}.import-grid select{max-width:350px}
.cart-head-actions{display:flex;align-items:center;gap:20px;margin-bottom:20px}.switch-label{display:flex;align-items:center;gap:10px;flex-direction:row}.delete-cell{text-align:center!important;padding:5px!important;vertical-align:middle}.cross,.plus{display:inline-grid;place-items:center;line-height:1;padding:0;width:30px;height:30px}.plus{border:none;border-radius:4px;background:#dff1e4;color:#267447;font-size:25px;font-weight:500}.qty-control{display:flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}.qty-control button{padding:1px 7px;font-size:23px;line-height:26px}.qty-control span{min-width:22px;text-align:center}.cart-grid .link{font-weight:600;text-align:left}.cut-inputs{display:grid;grid-template-columns:1fr 1fr 85px 36px;gap:8px;margin:12px 0}.layout-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:15px;margin-top:20px}.layout-sheet svg{width:100%;display:block;margin-top:10px}.material-plan-grid th:nth-child(1){width:31%}.material-plan-grid th:nth-child(2){width:17%}.material-plan-grid th:nth-child(3),.material-plan-grid th:nth-child(5){width:6%}.material-plan-grid input[type=number]{max-width:70px}.import-grid th:nth-child(1){width:40%}
.cart-head-actions .switch.off,#catalog-repeat.off{background:#aeb6bd}.modal [disabled]{cursor:default}
.document-modal{max-width:1160px}.document-preview{margin-top:15px;height:690px;border:1px solid #d7e0e8;background:#e5e8eb}.document-preview iframe{width:100%;height:100%;border:0;background:white}.document-modal input[type=date]{width:210px}.document-modal [data-deliver-qty]{max-width:100px}
.receipt-modal{max-width:1420px}.receipt-columns{display:grid;grid-template-columns:minmax(360px,1fr) minmax(360px,1.2fr);gap:20px;margin-top:20px}.receipt-pdf iframe{width:100%;height:650px;border:1px solid #ccd5df}.receipt-field{display:block;margin:12px 0;padding:8px;border-radius:5px}.receipt-field small{white-space:pre-wrap;display:block;color:#a32d31;font-size:11px;line-height:1.4;margin-top:5px}.field-red{background:#fff0f0;border:1px solid #d78080}.field-red>input{border-color:#d35c61;background:#fff9f9}.receipt-field .check-row{font-size:12px;line-height:1.4}.receipt-field .check-row input{width:auto}.file-button{position:relative;display:inline-block;overflow:hidden;padding:9px 12px;border-radius:4px;cursor:pointer}.file-button input{position:absolute;inset:0;opacity:0;cursor:pointer}.mail-results{margin-top:15px}.mail-results input{width:auto}.mail-results th:last-child{width:145px}
.status-ordered{background:#b6cbe5!important;color:#1c426c}.status-purchase{background:#deebf7!important;color:#28516d}
.cost-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;padding:12px 0}.cost-summary>div{padding:10px;background:#edf3f7;border-radius:5px;color:#456074;font-size:12px}.cost-summary strong{display:block;font-size:19px;color:#174f79;margin:8px 0}.project-costs{margin:25px 0;border:1px solid #b7cbdc}.project-costs h3{margin-top:0}.project-costs details{background:white}.project-costs .note{line-height:1.5}.project-costs form .actions{margin-top:15px}
.choice-root{position:relative}.choice-toggle{width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:38px;text-align:left;background:#fff}.choice-menu{position:absolute;top:100%;left:0;right:0;z-index:30;max-height:330px;overflow:auto;padding:5px;background:white;border:1px solid #b8c9da;border-radius:5px;box-shadow:0 6px 20px #0003}.choice-menu[hidden]{display:none}.choice-option{display:flex;align-items:center;min-height:36px;border-radius:3px}.choice-option.selected{background:#e1edf8}.choice-option:hover{background:#edf4f9}.choice-option>[data-value]{flex:1;text-align:left;border:0;background:transparent;padding:8px;font-size:13px}.choice-star{flex:0 0 30px;width:30px;height:30px;border:0;background:transparent;font-size:22px;padding:0;display:grid;place-items:center;color:#8b96a3}.choice-star.favorite{color:#d88e18}.choice-clear{border:0;background:#f6f8fa;width:100%;text-align:left;font-size:12px;padding:8px}.choice-custom{display:flex;gap:5px;padding:5px}.choice-custom input{min-width:0;flex:1}.choice-custom .small{flex:0 0 auto}
.top{height:44px;background:#18191b}.shell{height:calc(100vh - 44px)}.sidebar{width:190px;background:linear-gradient(#f6f7ff,#e8edfc);padding-top:0}.sidebar-home{height:36px;background:#272727;color:white;width:calc(100% + 16px);margin:0 -8px 16px;border:0;text-align:left;padding-left:33px;border-radius:0 0 6px 6px;font-size:14px;font-weight:600}.tabs{height:36px;min-height:36px}.tab{padding-top:0;padding-bottom:0;line-height:36px}.toolbar{height:48px;min-height:48px;padding-top:4px;padding-bottom:4px}.toolbar input{min-height:34px;height:34px}.detail-header{height:40px}.form{padding:25px 24px 50px;min-width:0}.form-grid{gap:16px 15px}.form input,.form select,.form .read-field{min-height:34px;height:34px}.form label>span{font-size:12px}.form textarea{min-height:34px;height:34px;resize:vertical;line-height:20px}.form textarea:focus{height:76px}.nav-link{height:41px}.nav-icon{width:22px;display:inline-flex;flex:none}.nav-icon svg{width:22px;height:22px}.nav-home,.nav-search,.nav-calendar,.nav-orders,.nav-material,.nav-items,.nav-plans,.nav-expedition{color:#818b9f}.nav-dashboard{color:#0f1012}.nav-projects{color:#4ed398}.nav-documents{color:#ffb145}.nav-catalog{color:#9985ed}.nav-subjects{color:#42bff4}.nav-wages{color:#36d487}.nav-work{color:#ff9800}.nav-advances{color:#49a34f}.nav-production{color:#db180b}.nav-relations{color:#4aaa55}.nav-warehouse{color:#05b3c8}.brand-mark{width:30px;height:30px;border-radius:50%;background:#fff;display:grid;place-items:center;border:1px solid #d7dce2;color:#8d4b08;font-size:27px}.detail-main{display:grid;grid-template-columns:36px minmax(0,1fr)}.record-gutter{align-self:start;position:sticky;top:40px;display:flex;flex-direction:column;border-right:1px solid #d9dce3;background:#f8f9fc}.record-gutter button{height:42px;min-height:42px;padding:0;border:0;border-radius:0;border-bottom:1px solid #d9dce3;background:transparent;font-size:13px;font-weight:600}.record-gutter .current{background:#dce8fe;box-shadow:inset 0 0 0 1px #4e89ed}.section-title{font-weight:600;font-size:15px}.items-grid{table-layout:fixed;width:100%;min-width:100%}.items-grid th,.items-grid td{padding:6px 7px}.items-grid .action-cell{padding:3px}.items-grid select{max-width:100%;padding:4px 6px}.items-grid td{overflow:hidden}.form-actions{margin:16px 0 25px}.form-actions .doc-button{padding:10px 25px;min-height:34px}.form .billing .grid input{height:34px}.order-grid .row-no{width:36px}
.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.check-row{flex-direction:row;justify-content:flex-start}.check-row input[type=checkbox]{flex:none;margin:0;min-height:0;width:15px;height:15px}.receipt-field{display:flex;flex-direction:column;gap:6px}.receipt-field>input{width:100%}.receipt-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.receipt-columns{grid-template-columns:minmax(360px,1fr) minmax(360px,1.15fr)}.receipt-pdf .empty{min-height:400px;display:grid;place-items:center}.receipt-modal .block .note{margin-bottom:0}.receipt-modal .form-grid{gap:12px}.receipt-modal .check-row{line-height:1.5}
[hidden]{display:none!important}
.items-grid .qty-input{width:58px;min-width:45px;padding:4px 2px;height:32px;min-height:32px}.items-grid .link{padding:0;border:0;background:transparent;color:inherit;text-align:left}.receipt-modal .form-error{white-space:pre-line}
.subject-logo{display:flex;align-items:center;gap:25px;margin-top:20px}.subject-logo img{width:230px;height:90px;object-fit:contain}.subject-logo .file-button{flex:none}
.overview-summary{display:flex;align-items:center;gap:24px;padding:14px 20px;border-bottom:1px solid var(--border);font-weight:600}.calendar-toolbar{display:flex;align-items:center;justify-content:center;gap:20px;padding:15px}.calendar-toolbar h2{font-size:18px;font-weight:500;min-width:190px;text-align:center}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));margin:0 20px 20px;border-left:1px solid var(--border);border-top:1px solid var(--border)}.calendar-weekday{font-weight:600;background:#edf0f5;text-align:center;padding:10px;border-right:1px solid var(--border);border-bottom:1px solid var(--border)}.calendar-day{min-height:110px;border-right:1px solid var(--border);border-bottom:1px solid var(--border);padding:8px;color:#343740}.calendar-day.outside{color:#a5a9b0;background:#f8f9fb}.calendar-day.today{box-shadow:inset 0 0 0 2px #cc8a37}.calendar-day strong{font-size:12px}.calendar-day button{display:block;width:100%;margin-top:5px;padding:5px;font-size:12px;text-align:left}.calendar-day small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:10px}
.compose-attachments{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px}.compose-attachments a{padding:8px 12px;text-decoration:none}#compose-form textarea{min-height:180px;line-height:1.5}
.material-comparison{margin-top:24px;border:1px solid #bfcbd5;border-radius:7px;padding:14px;background:#fafcfe}.material-comparison>summary{font-size:16px;font-weight:600}.material-comparison details[data-comparison-item]{margin-top:14px;border-top:1px solid #d1dbe4;padding-top:12px}.material-comparison summary{cursor:pointer;line-height:1.6}.material-comparison summary .tag{margin-left:12px}.comparison-grades{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:14px 0}.comparison-grades strong,.comparison-grades small{display:block;margin:3px}.comparison-grid td,.comparison-grid th{white-space:normal;height:auto;overflow:visible;overflow-wrap:anywhere;vertical-align:top;padding:9px;line-height:1.4;font-size:12px;position:static}.comparison-grid small{display:block;font-size:11px;color:#5c6872;margin-top:5px;line-height:1.4}.comparison-reference{background:#edf6ef}.comparison-good{background:#ddf1e1}.comparison-wait{background:#fff0d7}.comparison-info{background:#eef3f7}.comparison-help{float:right;border:1px solid #a3b0ba;background:white;border-radius:50%;width:21px;height:21px;line-height:19px;padding:0;color:#3d657e;font-size:12px}.comparison-extra{padding:12px 0}.comparison-tooltip{position:fixed;z-index:90;background:white;border:1px solid #aebbc7;border-radius:7px;box-shadow:0 8px 30px #0003;width:510px;max-height:78vh;overflow:auto;padding:18px;font-size:12px;line-height:1.5}.comparison-tooltip>.cross{float:right}.comparison-tooltip h3{font-size:15px}.comparison-tooltip>div{padding:8px;border-radius:4px}
.clone-mark{font-size:11px;color:#a4acb5;border:1px solid #4d555e;border-radius:4px;padding:3px 6px;margin-left:8px}

.cad-buttons{display:flex;flex-wrap:wrap;gap:4px;white-space:normal;align-items:center;max-width:100%}.cad-buttons button{flex:none;max-width:100%}

.preview-tools svg,#hover-open svg{width:16px;height:16px;display:block}.detail-header>.icon svg{width:20px;height:20px;vertical-align:middle}.preview-tools .download{display:inline-flex;align-items:center;justify-content:center}

.toolbar>.icon svg{width:20px;height:20px;vertical-align:middle}.view-column{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid var(--border)}.view-column>.check-row{flex:1;margin:0}.view-width{width:72px;font-size:11px;gap:3px}.view-width input{width:72px;min-height:30px;padding:4px 6px}.view-column>.small{padding:5px 8px}.grid th.sortable{cursor:pointer;user-select:none}.grid th.sortable:focus-visible{outline:2px solid #a76316;outline-offset:-2px}.grid th[aria-sort=ascending]:after{content:' ▴';font-size:11px}.grid th[aria-sort=descending]:after{content:' ▾';font-size:11px}.grid.compact-grid td{height:32px;padding-top:3px;padding-bottom:3px}.state-cell{text-align:center}.status-check{width:15px;height:15px;min-height:0;margin:0;vertical-align:middle;opacity:1}

.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}.view-column-headers{display:grid;grid-template-columns:1fr 72px 70px;gap:8px;font-size:11px;color:#656b76;padding:4px 0}.view-settings-modal{display:flex;flex-direction:column;overflow:hidden}.view-settings-modal>.modal-head,.view-settings-modal>.modal-footer{flex:none}.view-settings-modal>.modal-body{min-height:0;overflow:auto}.view-settings-modal>.modal-footer{padding-top:12px;border-top:1px solid var(--border);background:#fff}
.status-check{pointer-events:none}
input.project-switch{appearance:none;display:inline-block;position:relative;width:42px!important;height:24px;min-height:24px!important;padding:2px;border:0;border-radius:25px;background:#c9ccd4;cursor:pointer;vertical-align:middle;flex:none}input.project-switch:after{content:'';position:absolute;top:3px;left:4px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003}input.project-switch:checked{background:#1798e8}input.project-switch:checked:after{transform:translateX(17px)}.project-identity .actions{margin-top:10px}

.modal-head{z-index:3}.modal .grid th{top:var(--modal-head-height,70px)}.modal #project-cost-form{scroll-margin-top:calc(var(--modal-head-height,70px) + 8px)}

.view-settings-modal .grid th{top:0}

/* Editable native QC fields keep their original field widths and compact link action. */
.native-material-control{display:flex;align-items:center;gap:6px;min-width:0}.native-material-control input,.native-material-control select{width:100%;min-width:0;flex:1}.native-material-control>a{flex:none;font-size:18px;line-height:30px}.native-material-control>a[hidden]{display:none}[data-material-error] p{margin:4px 0}[data-material-error] .grid{margin:8px 0}[data-material-error] button+button{margin-left:8px}

/* Mail is a separate workspace; existing order/document themes stay intact. */
.nav-icon.nav-mail{color:#d58b38}.workspace.mail-workspace>.tabs,.workspace.mail-workspace>.toolbar{display:none}.workspace.mail-workspace>.content{padding:0;min-width:0;overflow:auto}

/* Receipt geometry and norms use the same compact spacing as native record fields. */
.receipt-modal .form-grid .receipt-field{margin:0;padding:0}
.receipt-modal .form-grid+.form-grid{margin-top:16px}
.receipt-modal .receipt-fields .receipt-field{margin:6px 0;padding:6px}

.receipt-modal .receipt-pending{background:#fff3dc;border-color:#ead3ab;color:#755216}
