.customer-list-no{font-weight:800}.customer-list-name{gap:2px;display:grid}.customer-list-name strong{color:inherit;font-size:var(--k4-ag-font-size)}.customer-list-shell{gap:10px;padding:2px 0 6px;display:grid}.customer-ag-grid{border:1px solid var(--shell-panel-border);background:linear-gradient(180deg, var(--surface-panel-start) 0, var(--surface-panel-end) 100%);border-radius:10px;height:min(700px,100vh - 330px);min-height:0;box-shadow:0 8px 20px #1123470d}.customer-ag-grid .ag-root-wrapper,.customer-ag-grid .ag-root-wrapper-body,.customer-ag-grid .ag-root{border:0}.customer-ag-grid .ag-header{background:var(--surface-grid-header)}.customer-ag-grid .ag-header-cell{font-weight:700}.customer-ag-grid .ag-header-cell-text{text-transform:none}.customer-ag-grid .ag-row{cursor:default}.customer-ag-grid .ag-cell{white-space:nowrap;align-items:center;display:flex}.customer-ag-row-selected .ag-cell{background:var(--surface-grid-selected)}.customer-ag-number-col{text-align:right;justify-content:flex-end}.customer-status-badge{border:1px solid var(--status-neutral-border);min-height:20px;color:var(--status-neutral-text);background:var(--status-neutral-bg);border-radius:999px;justify-content:center;align-items:center;padding:0 8px;font-size:11px;font-weight:800;line-height:1;display:inline-flex}.customer-status-badge.danger{color:var(--status-danger-text);background:var(--status-danger-bg);border-color:var(--status-danger-border)}.customer-list-footer{border:1px solid var(--shell-panel-border);color:var(--gray-600);background:linear-gradient(180deg, var(--surface-toolbar-start) 0, var(--surface-toolbar-end) 100%);font-size:var(--control-font-size);border-radius:10px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;font-weight:700;display:flex;box-shadow:0 8px 20px #1123470d}.customer-list-footer span{white-space:nowrap}.customer-functionbar{justify-content:space-between}.customer-functionbar-main,.customer-save-actions{align-items:center;gap:6px;min-width:0;display:flex}.customer-functionbar-main{overflow-x:auto}.customer-save-actions{flex:none}.customer-validation-message{border:1px solid var(--feedback-error-border);color:var(--feedback-error-text);background:var(--feedback-error-bg);font-size:var(--control-font-size);border-radius:6px;padding:8px 10px;font-weight:700}.customer-edit-field{border-right:1px solid var(--gray-200);border-bottom:1px solid var(--gray-200);gap:4px;min-height:54px;padding:8px 12px}.customer-edit-field.wide,.customer-edit-field[data-multiline=true]{grid-column:1/-1}.customer-edit-field>span{color:var(--gray-500);font-size:var(--label-font-size);text-transform:none;font-weight:800;display:block}.customer-edit-field input,.customer-edit-field textarea,.customer-edit-field select{width:100%;min-height:28px;color:var(--gray-900);background:var(--gray-50);font-size:var(--k4-ag-font-size);border:1px solid #0000;border-radius:4px;padding:4px 6px;font-weight:750}.customer-lookup-input{grid-template-columns:minmax(0,1fr) 34px;gap:4px;display:grid}.customer-lookup-input select,.customer-lookup-input button{color:var(--gray-700);background:var(--white);text-align:center;-webkit-text-fill-color:var(--gray-700);padding:0}.customer-edit-field select option,.customer-lookup-input select option{color:var(--gray-900);background:var(--white);-webkit-text-fill-color:var(--gray-900)}.customer-edit-field textarea{resize:vertical;min-height:84px}.customer-edit-field input:focus,.customer-edit-field textarea:focus,.customer-edit-field select:focus{border-color:var(--field-focus-border);color:var(--gray-900);background:var(--white);box-shadow:0 0 0 3px var(--field-focus-ring);-webkit-text-fill-color:var(--gray-900);outline:none}.customer-edit-checkbox input{width:18px;min-height:18px;margin-top:8px}.customer-master-outline{grid-template-columns:minmax(520px,1.42fr) minmax(320px,.88fr);grid-template-areas:"main currency""main phone""internet internet";align-items:start;gap:12px 14px;padding-top:14px;display:grid}.customer-master-outline-main{grid-area:main}.customer-master-outline-currency{grid-area:currency}.customer-master-outline-phone{grid-area:phone}.customer-master-outline-internet{grid-area:internet}.customer-master-outline-main .inventory-field-grid{grid-template-columns:minmax(140px,.42fr) minmax(260px,1fr)}.customer-master-outline-main .inventory-field.wide{grid-column:1/-1}.customer-master-outline-currency .inventory-field-grid,.customer-master-outline-phone .inventory-field-grid,.customer-master-outline-internet .inventory-field-grid{grid-template-columns:minmax(140px,.42fr) minmax(240px,1fr)}.customer-master-outline-internet .inventory-field.wide{grid-column:1/-1}.customer-setup-outline{grid-template-columns:minmax(420px,1fr) minmax(420px,1fr);grid-template-areas:"bookkeeping misc""trade dimensions";align-items:start;gap:12px 14px;padding-top:14px;display:grid}.customer-setup-outline-bookkeeping{grid-area:bookkeeping}.customer-setup-outline-trade{grid-area:trade}.customer-setup-outline-misc{grid-area:misc}.customer-setup-outline-dimensions{grid-area:dimensions}.customer-setup-outline .inventory-field-grid{grid-template-columns:minmax(150px,.48fr) minmax(240px,1fr)}.customer-discounts-outline{padding-top:14px;display:grid}.customer-discounts-panel{border:1px solid var(--gray-300);background:linear-gradient(180deg, var(--surface-panel-start) 0, var(--surface-panel-end) 100%);border-radius:2px;overflow:hidden}.customer-discounts-head{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:14px;padding:10px 12px 6px;display:grid}.customer-discounts-main h3{color:var(--gray-900);font-size:var(--section-heading-size);margin:-2px 0 6px;font-weight:900}.customer-discounts-fields{grid-template-columns:minmax(160px,.34fr) minmax(260px,.66fr);max-width:520px;display:grid}.customer-discounts-fields .inventory-field{border-radius:0;min-height:28px;padding:3px 8px}.customer-discounts-actions,.customer-discounts-price-action{gap:8px;display:flex}.customer-discounts-actions{margin-top:8px}.customer-discounts-price-action{justify-content:flex-end;min-width:160px}.customer-discounts-actions button,.customer-discounts-price-action button{border:1px solid var(--gray-300);border-radius:var(--control-radius);min-height:30px;color:var(--gray-700);background:var(--white);font-size:var(--control-font-size);padding:5px 18px;font-weight:800}.customer-discounts-table-wrap{border-top:1px solid var(--gray-300);background:var(--grid-empty-background);border-bottom:0;border-left:0;border-right:0;border-radius:0}@media (max-width:1120px){.customer-master-outline{grid-template-columns:1fr;grid-template-areas:"main""currency""phone""internet"}.customer-setup-outline{grid-template-columns:1fr;grid-template-areas:"bookkeeping""trade""misc""dimensions"}.customer-discounts-head{grid-template-columns:1fr}.customer-discounts-price-action{justify-content:flex-start}}.customer-delivery-layout{grid-template-columns:minmax(410px,1fr) minmax(410px,1fr);align-items:start;gap:14px;padding-top:14px;display:grid}.customer-delivery-layout .inventory-field-group{border-color:var(--gray-300);border-radius:2px}.customer-delivery-layout .inventory-field-group h3{background:0 0;border-bottom:0;padding:4px 8px 0}.customer-delivery-layout .inventory-field-grid{grid-template-columns:1fr;padding:0 8px 8px}.customer-delivery-layout .inventory-field,.customer-delivery-layout .customer-edit-field{border-radius:0;grid-template-columns:minmax(140px,.42fr) minmax(230px,1fr);align-items:center;min-height:28px;padding:3px 8px;display:grid}.customer-delivery-layout .inventory-field.wide,.customer-delivery-layout .customer-edit-field.wide{grid-column:1/-1}.customer-delivery-layout .inventory-field>span,.customer-delivery-layout .customer-edit-field>span{margin:0}.customer-delivery-layout .customer-edit-field input,.customer-delivery-layout .customer-edit-field select{min-height:24px}.customer-shipto-modal{border:1px solid var(--shell-panel-border);background:linear-gradient(180deg, var(--surface-modal-start) 0, var(--surface-modal-end) 100%);border-radius:10px;width:min(920px,100vw - 48px);max-height:calc(100vh - 80px);overflow:hidden;box-shadow:0 24px 70px #0f172a38}.customer-shipto-search{padding:12px 16px 0}.customer-shipto-search input{border:1px solid var(--gray-300);width:100%;min-height:34px;color:var(--gray-900);background:var(--white);font-size:var(--k4-ag-font-size);border-radius:6px;padding:6px 10px;font-weight:700}.customer-shipto-table-wrap{max-height:min(520px,100vh - 250px);margin:14px 16px;overflow:auto}.customer-shipto-table{min-width:760px}.sales-order-item-editor{min-width:360px;position:relative}.sales-order-item-editor .customer-lookup-input input{border:1px solid var(--field-focus-border);background:var(--white);min-height:32px}.sales-order-item-editor-menu{z-index:40;border:1px solid var(--shell-panel-border);background:var(--white);border-radius:8px;max-height:280px;position:absolute;top:calc(100% + 6px);left:0;right:0;overflow:auto;box-shadow:0 18px 40px #0f172a2e}.sales-order-item-editor-menu button{border:0;border-bottom:1px solid var(--gray-200);width:100%;color:var(--gray-900);text-align:left;background:0 0;gap:3px;padding:8px 10px;display:grid}.sales-order-item-editor-menu button:last-child{border-bottom:0}.sales-order-item-editor-menu button strong{font-size:var(--control-font-size)}.sales-order-item-editor-menu button span{color:var(--gray-700);font-size:var(--control-font-size);font-weight:650}.sales-order-item-editor-menu button.active,.sales-order-item-editor-menu button:hover{background:var(--surface-panel-raised)}.sales-order-item-lookup-modal{border:1px solid var(--shell-panel-border);background:linear-gradient(180deg, var(--surface-modal-start) 0, var(--surface-modal-end) 100%);border-radius:10px;width:min(1180px,100vw - 40px);max-height:calc(100vh - 60px);overflow:hidden;box-shadow:0 24px 70px #0f172a38}.sales-order-item-lookup-filters{grid-template-columns:minmax(280px,2fr) minmax(0,1fr) minmax(0,1fr);gap:10px;padding:12px 16px 0;display:grid}.sales-order-item-lookup-filters input,.sales-order-item-lookup-filters select{border:1px solid var(--gray-300);min-height:34px;color:var(--gray-900);background:var(--white);font-size:var(--k4-ag-font-size);border-radius:6px;padding:6px 10px;font-weight:700}.sales-order-item-lookup-table-wrap{max-height:min(580px,100vh - 220px);margin:14px 16px;overflow:auto}.sales-order-item-lookup-table{min-width:980px}.customer-shipto-table tbody tr{cursor:pointer}.customer-shipto-table tbody tr:hover,.customer-shipto-table tbody tr:focus-visible{background:var(--surface-grid-hover);outline:none}.sales-dashboard .dashboard-kpi-grid{grid-template-columns:repeat(6,minmax(150px,1fr))}.sales-dashboard-list-button,.sales-dashboard-group-row{border:1px solid var(--gray-200);background:var(--gray-50);text-align:left;justify-content:space-between;align-items:center;gap:12px;width:100%;padding:10px;display:flex}.sales-dashboard-list-button{border-radius:var(--control-radius)}.sales-dashboard-group-row{border-radius:7px}.sales-dashboard-list-button:hover{background:linear-gradient(#f4f8fbfa 0,#eaf1f6f5 100%);border-color:#58778947}.sales-dashboard-group-row span,.sales-dashboard-list-button span{min-width:0;display:grid}.sales-dashboard-list-button strong,.sales-dashboard-group-row strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sales-dashboard-group-bar-wrap{justify-content:flex-end;align-items:center;gap:10px;min-width:220px;display:flex}.sales-dashboard-group-bar{background:linear-gradient(90deg, var(--dashboard-series-primary-start), var(--dashboard-series-primary-end));border-radius:999px;min-width:8px;min-height:12px}.sales-dashboard-group-bar.warning{background:linear-gradient(90deg, var(--dashboard-series-accent-start), var(--dashboard-series-accent-end))}.customer-misc-layout{grid-template-columns:minmax(410px,1fr) minmax(410px,1fr);align-items:start;gap:12px;padding-top:14px;display:grid}.customer-misc-column{align-content:start;gap:8px;display:grid}.customer-misc-layout .inventory-field-group{border-color:var(--gray-300);border-radius:2px}.customer-misc-layout .inventory-field-group h3{background:0 0;border-bottom:0;padding:4px 8px 0}.customer-misc-layout .inventory-field-grid{grid-template-columns:minmax(140px,.45fr) minmax(230px,1fr);padding:0 8px 8px}.customer-misc-layout .inventory-field,.customer-misc-layout .customer-edit-field{border-radius:0;min-height:28px;padding:3px 8px}.customer-misc-layout .customer-edit-field input,.customer-misc-layout .customer-edit-field textarea,.customer-misc-layout .customer-edit-field select{min-height:24px}.customer-misc-layout .inventory-field.wide,.customer-misc-layout .inventory-field[data-multiline=true],.customer-misc-layout .customer-edit-field.wide,.customer-misc-layout .customer-edit-field[data-multiline=true]{grid-column:1/-1}.customer-misc-layout .inventory-field[data-multiline=true],.customer-misc-layout .customer-edit-field[data-multiline=true]{min-height:56px}.customer-misc-layout .customer-edit-field textarea{min-height:44px}.customer-misc-layout .inventory-misc-menu button.active{border-color:var(--erp-tab-active-border);background:linear-gradient(180deg, var(--button-accent-start) 0, var(--button-accent-end) 100%);color:var(--erp-tab-active-text)}.customer-misc-note{border:1px solid var(--gray-200);background:var(--gray-50);color:var(--gray-700);font-size:var(--control-font-size);border-radius:8px;padding:10px 12px;line-height:1.5}.customer-color-view{position:relative}.customer-color-view i{border:1px solid var(--gray-300);border-radius:4px;width:36px;height:20px;position:absolute;bottom:10px;right:12px}.customer-color-edit{grid-template-columns:minmax(0,1fr) 48px}.customer-color-edit>span{grid-column:1/-1}.customer-color-edit input[type=color]{min-height:28px;padding:2px}.customer-discount-table{min-width:1280px}.customer-discount-table .row-actions{justify-content:flex-end;gap:4px}.customer-discount-table .row-actions button,.customer-discount-modal-head button,.customer-discount-modal-actions button{border:1px solid var(--gray-300);border-radius:var(--control-radius);min-height:30px;color:var(--gray-700);background:var(--white);font-size:var(--control-font-size);padding:5px 10px;font-weight:800}.customer-discount-modal{border:1px solid var(--shell-panel-border);background:linear-gradient(180deg, var(--surface-modal-start) 0, var(--surface-modal-end) 100%);border-radius:10px;width:min(860px,100vw - 48px);max-height:calc(100vh - 80px);overflow:auto;box-shadow:0 24px 70px #0f172a38}.customer-discount-modal-head,.customer-discount-modal-actions{border-bottom:1px solid var(--shell-panel-border);background:linear-gradient(180deg, var(--surface-toolbar-start) 0, var(--surface-toolbar-end) 100%);justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;display:flex}.customer-discount-modal-head h3{color:var(--gray-900);margin:0;font-size:18px}.customer-discount-modal-head span{color:var(--gray-500);font-size:var(--control-font-size);margin-top:3px;font-weight:700;display:block}.customer-discount-form{grid-template-columns:minmax(0,1fr) 360px;gap:8px 28px;margin:18px;padding:0;display:grid}.customer-discount-form .customer-edit-field{border:0;grid-template-columns:130px minmax(0,260px);align-items:center;min-height:34px;padding:0;display:grid}.customer-discount-form .customer-edit-field>span{color:var(--gray-600);font-size:var(--control-font-size);text-transform:none;font-weight:800}.customer-discount-form .customer-edit-field input,.customer-discount-form .customer-edit-field textarea{border:1px solid var(--gray-300);background:var(--white);min-height:30px;font-size:var(--k4-ag-font-size);border-radius:6px}.customer-discount-form .customer-lookup-input{grid-template-columns:minmax(0,1fr) 32px;gap:0}.customer-discount-weekdays{border:0;flex-wrap:wrap;grid-area:6/2/span 4;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:8px 42px;margin:0;padding:4px 0 0;display:grid}.customer-discount-weekdays label{color:var(--gray-800);align-items:center;gap:6px;font-size:14px;font-weight:650;display:inline-flex}.customer-discount-weekdays input{width:18px;height:18px}.customer-discount-type{border:0;grid-column:1/-1;grid-template-columns:130px repeat(3,max-content);align-items:center;column-gap:28px;margin:0;padding:0;display:grid}.customer-discount-type legend{color:var(--gray-600);font-size:var(--control-font-size);font-weight:800}.customer-discount-type label{color:var(--gray-800);font-size:var(--k4-ag-font-size);align-items:center;gap:8px;font-weight:750;display:inline-flex}.customer-discount-form .customer-edit-field.wide{grid-column:1/-1;grid-template-columns:130px minmax(0,1fr);align-items:start}.customer-discount-form .customer-edit-field.wide textarea{min-height:116px}.customer-discount-modal-actions{border-top:1px solid var(--gray-200);background:var(--gray-50);border-bottom:0;justify-content:flex-end;gap:8px}.customer-discount-modal-actions .primary{border-color:var(--button-strong-border);color:var(--button-strong-text);background:linear-gradient(180deg, var(--button-strong-start) 0, var(--button-strong-end) 100%)}.customer-price-list-modal{border:1px solid var(--shell-panel-border);background:linear-gradient(180deg, var(--surface-modal-start) 0, var(--surface-modal-end) 100%);border-radius:10px;width:min(1040px,100vw - 48px);max-height:calc(100vh - 80px);overflow:hidden;box-shadow:0 24px 70px #0f172a38}.customer-price-list-table-wrap{max-height:min(560px,100vh - 230px);margin:14px 16px;overflow:auto}.customer-price-list-table{min-width:1180px}.customer-contact-outline{padding-top:14px;display:grid}.customer-contact-toolbar{border:1px solid var(--gray-300);background:linear-gradient(180deg, var(--surface-panel-start) 0, var(--surface-panel-end) 100%);border-bottom:0;border-radius:2px 2px 0 0;gap:4px;padding:0;display:flex}.customer-contact-toolbar button{border:1px solid var(--gray-300);min-width:74px;min-height:30px;color:var(--gray-700);background:var(--white);font-size:var(--control-font-size);border-top:0;border-radius:0;padding:4px 14px;font-weight:800}.customer-contact-table-wrap{border-color:var(--gray-300);background:var(--grid-empty-background);border-radius:0 0 2px 2px;min-height:340px}.customer-contact-table{min-width:1080px}.customer-contact-table tr.selected td{background:var(--surface-grid-selected)}.customer-contact-table .row-actions{justify-content:flex-end;gap:4px}.customer-contact-table .row-actions button{border:1px solid var(--gray-300);border-radius:var(--control-radius);min-height:30px;color:var(--gray-700);background:var(--white);font-size:var(--control-font-size);padding:5px 10px;font-weight:800}.customer-contact-modal{border:1px solid var(--shell-panel-border);background:linear-gradient(180deg, var(--surface-modal-start) 0, var(--surface-modal-end) 100%);border-radius:2px;width:min(668px,100vw - 32px);max-height:calc(100vh - 48px);overflow:auto;box-shadow:0 18px 48px #0f172a33}.customer-contact-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"address communication""internet flags""misc flags";gap:6px;padding:8px;display:grid}.customer-contact-form .inventory-field-group{border-color:var(--gray-300);border-radius:2px;align-content:start}.customer-contact-form .inventory-field-group:first-child{grid-area:address}.customer-contact-form .inventory-field-group:nth-child(2){grid-area:communication}.customer-contact-form .inventory-field-group:nth-child(3){grid-area:internet}.customer-contact-form .inventory-field-group:nth-child(4){grid-area:misc}.customer-contact-form .inventory-field-group:nth-child(5){grid-area:flags}.customer-contact-form .inventory-field-group h3{background:0 0;border-bottom:0;padding:4px 8px 0}.customer-contact-form .inventory-field-grid{grid-template-columns:1fr;padding:0 8px 8px}.customer-contact-form .customer-edit-field{border:0;grid-template-columns:minmax(96px,.42fr) minmax(160px,1fr);align-items:center;min-height:24px;padding:2px 0;display:grid}.customer-contact-form .customer-edit-field.wide{grid-column:1/-1}.customer-contact-form .customer-edit-field>span{color:var(--gray-900);font-size:var(--control-font-size);text-transform:none;font-weight:650}.customer-contact-form .customer-edit-field input{border:1px solid var(--gray-300);background:var(--white);min-height:22px;font-size:var(--k4-ag-font-size);border-radius:0}.customer-contact-form .customer-lookup-input{grid-template-columns:minmax(0,1fr) 32px;gap:0}.customer-contact-flags{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 18px;display:grid}.customer-contact-form .customer-edit-checkbox{grid-template-columns:18px minmax(0,1fr);column-gap:6px;min-height:22px;display:grid}.customer-contact-form .customer-edit-checkbox>span{font-size:var(--control-font-size);grid-area:1/2;font-weight:650}.customer-contact-form .customer-edit-checkbox input{grid-area:1/1;width:13px;min-height:13px;margin:2px 0 0}.customer-contact-modal .customer-discount-modal-actions{background:var(--shell-nav-bg);border-top:0;padding:8px}.customer-document-outline{padding-top:14px;display:grid}.customer-document-toolbar{border:1px solid var(--gray-300);background:linear-gradient(180deg, var(--surface-panel-start) 0, var(--surface-panel-end) 100%);border-bottom:0;border-radius:2px 2px 0 0;align-items:stretch;gap:4px;display:flex}.customer-document-toolbar>button,.customer-document-group-tabs button{border:1px solid var(--gray-300);min-width:74px;min-height:30px;color:var(--gray-700);background:var(--white);font-size:var(--control-font-size);border-top:0;border-radius:0;padding:4px 14px;font-weight:800}.customer-document-drop-button{min-width:208px;color:var(--gray-500)}.customer-document-group-tabs{gap:4px;margin-left:auto;display:flex;overflow-x:auto}.customer-document-group-tabs button.active{background:var(--surface-grid-selected)}.customer-document-table-wrap{border-color:var(--gray-300);background:var(--grid-empty-background);border-radius:0 0 2px 2px;min-height:340px}.customer-document-table{min-width:1380px}.customer-document-table tr.selected td{background:var(--surface-grid-selected)}.customer-document-table .row-actions{justify-content:flex-end;gap:4px}.customer-document-table .row-actions button{border:1px solid var(--gray-300);border-radius:var(--control-radius);min-height:30px;color:var(--gray-700);background:var(--white);padding:5px 10px;font-size:12px;font-weight:800}.customer-document-modal{border:1px solid var(--gray-200);background:var(--white);border-radius:8px;grid-template-rows:auto minmax(0,1fr) auto;width:min(860px,100vw - 48px);max-height:calc(100vh - 80px);display:grid;overflow:hidden;box-shadow:0 24px 70px #0f172a38}.customer-document-modal-head{background:linear-gradient(180deg, var(--surface-toolbar-start) 0, var(--surface-toolbar-end) 100%);align-items:center;padding:14px 16px}.customer-document-modal-head h2{color:var(--gray-900);margin:0;font-size:18px;font-weight:800}.customer-document-modal-head button,.customer-document-modal-actions button{border:1px solid var(--gray-300);border-radius:var(--control-radius);min-height:32px;color:var(--gray-700);background:var(--white);font-size:var(--control-font-size);padding:5px 10px;font-weight:800}.customer-document-form{background:var(--white);grid-template-columns:minmax(0,1fr);gap:8px;min-height:0;padding:16px;display:grid;overflow:auto}.customer-document-form .customer-edit-field{border:0;grid-template-columns:130px minmax(0,1fr);align-items:center;min-height:34px;padding:0;display:grid}.customer-document-form .customer-edit-field>span{color:var(--gray-600);font-size:var(--control-font-size);text-transform:none;font-weight:800}.customer-document-form input,.customer-document-form select,.customer-document-form textarea{border:1px solid var(--gray-300);background:var(--white);min-height:30px;font-size:var(--k4-ag-font-size);border-radius:6px}.customer-document-form textarea{min-height:130px}.customer-document-modal-actions{border-top:1px solid var(--shell-panel-border);background:linear-gradient(180deg, var(--surface-toolbar-start) 0, var(--surface-toolbar-end) 100%);justify-content:flex-end;gap:8px;padding:14px 16px;display:flex}.customer-document-modal-actions .primary{border-color:var(--button-strong-border);color:var(--button-strong-text);background:linear-gradient(180deg, var(--button-strong-start) 0, var(--button-strong-end) 100%)}.customer-log-outline{padding-top:14px;display:grid}.customer-log-toolbar{border:1px solid var(--gray-300);background:linear-gradient(180deg, var(--surface-panel-start) 0, var(--surface-panel-end) 100%);border-bottom:0;border-radius:2px 2px 0 0;gap:4px;display:flex}.customer-log-toolbar button{border:1px solid var(--gray-300);min-width:74px;min-height:30px;color:var(--gray-700);background:var(--white);font-size:var(--control-font-size);border-top:0;border-radius:0;padding:4px 14px;font-weight:800}.customer-log-table-wrap{border-color:var(--gray-300);background:var(--grid-empty-background);border-radius:0 0 2px 2px;min-height:340px}.customer-log-table{min-width:1120px}.customer-log-table tr.selected td{background:var(--surface-grid-selected)}.customer-log-table .row-actions{justify-content:flex-end;gap:4px}.customer-log-table .row-actions button{border:1px solid var(--gray-300);border-radius:var(--control-radius);min-height:30px;color:var(--gray-700);background:var(--white);font-size:var(--control-font-size);padding:5px 10px;font-weight:800}.customer-log-modal{border:1px solid var(--shell-panel-border);background:linear-gradient(180deg, var(--surface-modal-start) 0, var(--surface-modal-end) 100%);border-radius:10px;grid-template-rows:auto minmax(0,1fr) auto;width:min(980px,100vw - 48px);max-height:calc(100vh - 80px);display:grid;overflow:hidden;box-shadow:0 24px 70px #0f172a38}.customer-log-form{background:var(--white);grid-template-columns:minmax(0,1fr) 330px;gap:16px;min-height:0;padding:16px;display:grid;overflow:auto}.customer-log-main-fields{grid-template-columns:minmax(0,1fr);align-content:start;gap:8px;display:grid}.customer-log-form .customer-edit-field{border:0;grid-template-columns:130px minmax(0,1fr);align-items:center;min-height:34px;padding:0;display:grid}.customer-log-form .customer-edit-field.wide{grid-column:1/-1}.customer-log-form .customer-edit-field>span{color:var(--gray-600);font-size:var(--control-font-size);text-transform:none;font-weight:800}.customer-log-form input,.customer-log-form select,.customer-log-form textarea{border:1px solid var(--gray-300);background:var(--white);min-height:30px;font-size:var(--k4-ag-font-size);border-radius:6px}.customer-log-form .customer-lookup-input{grid-template-columns:minmax(0,1fr) 32px;gap:0}.customer-log-form textarea{min-height:130px}.customer-optional-toolbar{grid-area:toolbar/1/toolbar/-1;justify-content:flex-end;margin-top:-6px;margin-bottom:-4px;display:flex}.customer-optional-toolbar button{border:1px solid var(--gray-300);border-radius:var(--control-radius);min-height:34px;color:var(--gray-700);background:var(--white);font-size:var(--control-font-size);padding:7px 12px;font-weight:800}.customer-optional-layout{grid-template-columns:minmax(480px,1.22fr) minmax(340px,.9fr);grid-template-areas:"toolbar toolbar""text numbers""choices dates";align-items:start;gap:8px 12px;padding-top:14px;display:grid}.customer-optional-section{border:1px solid var(--gray-300);background:linear-gradient(180deg, var(--surface-panel-start) 0, var(--surface-panel-end) 100%);border-radius:2px;overflow:hidden}.customer-optional-section h3{color:var(--gray-900);font-size:var(--section-heading-size);background:0 0;border-bottom:0;margin:0;padding:4px 8px 0;font-weight:900}.customer-optional-section-fields{grid-template-columns:minmax(0,1fr);gap:0;padding:0 8px 8px;display:grid}.customer-optional-section .customer-edit-field,.customer-optional-section .inventory-field{border-radius:0;grid-template-columns:minmax(130px,.34fr) minmax(260px,1fr);align-items:center;min-height:28px;padding:3px 8px;display:grid}.customer-optional-section .customer-edit-field>span,.customer-optional-section .inventory-field>span{margin:0}.customer-optional-section .customer-edit-field input,.customer-optional-section .customer-edit-field select{min-height:24px}.customer-optional-text{grid-area:text}.customer-optional-numbers{grid-area:numbers}.customer-optional-choices{grid-area:choices}.customer-optional-dates{grid-area:dates}.customer-optional-choices .customer-optional-section-fields{grid-template-columns:repeat(2,minmax(220px,1fr))}.customer-optional-modal{grid-template-rows:auto minmax(0,1fr) auto;width:min(1180px,100vw - 48px);max-height:calc(100vh - 72px)}.customer-optional-modal-head{align-items:center;padding:18px 20px}.customer-optional-modal-head span{color:var(--gray-500);font-size:var(--control-font-size);text-transform:none;font-weight:800}.customer-optional-modal-head h2{color:var(--gray-950);margin:4px 0 0;font-size:22px;font-weight:900}.customer-optional-modal-head button{border:1px solid var(--gray-300);border-radius:var(--control-radius);width:36px;height:36px;color:var(--gray-700);background:var(--white);place-items:center;font-size:18px;font-weight:900;display:grid}.customer-optional-editor{background:var(--gray-50);gap:8px;min-height:0;padding:14px 20px 18px;display:grid;overflow:auto}.customer-optional-setup-row{border:1px solid var(--gray-200);background:var(--white);border-radius:8px;grid-template-columns:38px 150px minmax(240px,.9fr);align-items:center;gap:12px;padding:10px 12px;display:grid}.customer-optional-setup-row.choice{grid-template-columns:38px 150px minmax(240px,.75fr) minmax(280px,1fr)}.customer-optional-setup-row.inactive{opacity:.72;background:#f8fafc}.customer-optional-active{place-items:center;min-height:34px;display:grid}.customer-optional-active input{width:20px;height:20px;accent-color:var(--button-strong-border)}.customer-optional-field-meta{align-content:center;gap:2px;min-height:34px;display:grid}.customer-optional-field-meta strong{color:var(--gray-900);font-size:var(--k4-ag-font-size)}.customer-optional-field-meta span{color:var(--gray-500);font-size:var(--control-font-size);font-weight:700}.customer-optional-setup-row .customer-edit-field{border:0;grid-template-columns:minmax(0,1fr);align-items:start;gap:4px;min-height:34px;padding:0;display:grid}.customer-optional-setup-row .customer-edit-field>span{color:var(--gray-600);font-size:var(--label-font-size);text-transform:none;font-weight:800}.customer-optional-setup-row input,.customer-optional-setup-row textarea{border:1px solid var(--gray-300);background:var(--white);min-height:34px;font-size:var(--k4-ag-font-size);border-radius:6px;font-weight:700}.customer-optional-setup-row textarea{resize:vertical;min-height:42px}.customer-optional-modal-actions{z-index:1;border-top:1px solid var(--gray-200);background:var(--white);padding:12px 20px;position:sticky;bottom:0}.customer-optional-modal-actions .primary{border-color:var(--button-strong-border);color:var(--button-strong-text);background:linear-gradient(180deg, var(--button-strong-start) 0, var(--button-strong-end) 100%)}.customer-internet-layout{grid-template-columns:minmax(400px,.48fr) minmax(0,1fr);align-items:start;gap:14px;padding-top:14px;display:grid}.customer-internet-panel{border:1px solid var(--gray-300);background:linear-gradient(180deg, var(--surface-panel-start) 0, var(--surface-panel-end) 100%);border-radius:2px;overflow:hidden}.customer-internet-panel h3{color:var(--gray-900);font-size:var(--section-heading-size);background:0 0;border-bottom:0;margin:0;padding:4px 8px 0;font-weight:900}.customer-internet-fields{grid-template-columns:minmax(0,1fr);gap:0;padding:0 8px 8px;display:grid}.customer-internet-fields .customer-edit-field{border-radius:0;grid-template-columns:minmax(140px,.42fr) minmax(220px,1fr);align-items:center;min-height:28px;padding:3px 8px;display:grid}.customer-internet-fields .customer-edit-field>span{margin:0}.customer-internet-fields .customer-edit-field input{min-height:24px}.customer-balance-modal{border-radius:8px}.customer-balance-modal-head{align-items:center;padding:14px 16px}.customer-balance-modal-head span{color:var(--gray-500);font-size:var(--label-font-size);text-transform:none;font-weight:900;display:block}.customer-balance-modal-head h2{color:var(--gray-950);margin:2px 0 0;font-size:18px;font-weight:900;line-height:1.2}.customer-balance-modal-head button{border:1px solid var(--gray-300);border-radius:var(--control-radius);width:32px;height:32px;color:var(--gray-700);background:var(--white);place-items:center;font-size:16px;font-weight:900;display:grid}.customer-balance-filter-modal{grid-template-rows:auto minmax(0,1fr) auto;width:min(680px,100vw - 48px)}.customer-balance-filter-body{background:var(--gray-50);gap:10px;min-height:0;padding:14px 16px;display:grid;overflow:auto}.customer-balance-filter-body fieldset,.customer-balance-result-footer fieldset{border:1px solid var(--gray-200);background:var(--white);border-radius:8px;gap:8px;margin:0;padding:12px;display:grid}.customer-balance-filter-body legend,.customer-balance-result-footer legend{color:var(--gray-600);font-size:var(--label-font-size);text-transform:none;padding:0 5px;font-weight:900}.customer-radio-line,.customer-check-line{min-height:26px;color:var(--gray-800);font-size:var(--k4-ag-font-size);grid-template-columns:18px auto minmax(0,1fr);align-items:center;gap:8px;font-weight:700;display:grid}.customer-radio-line input,.customer-check-line input,.customer-balance-remove-grid input{width:15px;height:15px;accent-color:var(--button-strong-border);margin:0}.customer-radio-line strong{color:var(--gray-700);text-overflow:ellipsis;white-space:nowrap;font-weight:800;overflow:hidden}.customer-check-line{grid-template-columns:18px minmax(0,1fr)}.customer-check-line:has(input:disabled){color:var(--gray-400)}.customer-balance-date-field,.customer-balance-range-grid label{color:var(--gray-600);font-size:var(--control-font-size);grid-template-columns:104px minmax(0,180px);align-items:center;gap:8px;font-weight:800;display:grid}.customer-balance-date-field input,.customer-balance-range-grid input{border:1px solid var(--gray-300);background:var(--white);min-height:30px;color:var(--gray-900);font-size:var(--k4-ag-font-size);border-radius:6px;padding:5px 8px;font-weight:700}.customer-balance-range-grid{grid-template-columns:1fr 1fr;gap:8px 12px;padding-left:26px;display:grid}.customer-balance-result-modal{grid-template-rows:auto minmax(0,1fr);width:min(1280px,100vw - 48px)}.customer-balance-result-head{grid-template-columns:minmax(0,1fr) auto auto;align-items:start;display:grid}.customer-balance-result-head strong{border:1px solid var(--gray-200);color:var(--gray-700);background:var(--gray-50);font-size:var(--control-font-size);border-radius:6px;align-self:center;padding:6px 9px;font-weight:900}.customer-balance-result-body{background:var(--white);grid-template-rows:minmax(0,1fr) auto;min-height:0;display:grid}.customer-balance-table-scroll{border-bottom:1px solid var(--gray-200);background:var(--white);min-height:390px;overflow:auto}.customer-balance-table{border-collapse:collapse;width:100%;min-width:1120px;font-size:12px}.customer-balance-table th,.customer-balance-table td{border-bottom:1px solid var(--gray-200);text-align:left;white-space:nowrap;padding:7px 9px}.customer-balance-table th{z-index:1;color:var(--gray-600);background:var(--gray-100);font-size:var(--label-font-size);text-transform:none;font-weight:900;position:sticky;top:0}.customer-balance-table .number{text-align:right}.customer-balance-table tr.total td{color:var(--gray-950);background:var(--gray-50);font-weight:900}.customer-balance-result-footer{background:var(--gray-50);grid-template-columns:minmax(420px,1fr) auto;align-items:end;gap:12px;padding:12px 16px;display:grid}.customer-balance-remove-grid{grid-template-columns:repeat(3,minmax(140px,1fr));gap:6px 12px;display:grid}.customer-balance-remove-grid label{color:var(--gray-700);font-size:var(--control-font-size);align-items:center;gap:7px;font-weight:700;display:flex}.customer-balance-result-actions{flex-wrap:wrap;justify-content:flex-end;gap:7px;display:flex}.customer-balance-result-actions button{border:1px solid var(--gray-300);border-radius:var(--control-radius);min-height:34px;color:var(--gray-800);background:var(--white);font-size:var(--control-font-size);padding:7px 11px;font-weight:800}.customer-balance-result-actions .primary{border-color:var(--button-strong-border);color:var(--button-strong-text);background:linear-gradient(180deg, var(--button-strong-start) 0, var(--button-strong-end) 100%)}.customer-period-balance-modal{grid-template-rows:auto auto minmax(0,1fr) auto;width:min(1280px,100vw - 48px)}.customer-period-balance-toolbar{border-bottom:1px solid var(--gray-200);background:var(--gray-50);flex-wrap:wrap;align-items:end;gap:10px;padding:12px 16px;display:flex}.customer-period-balance-toolbar label{color:var(--gray-600);font-size:var(--label-font-size);text-transform:none;gap:5px;font-weight:900;display:grid}.customer-period-balance-toolbar select{border:1px solid var(--gray-300);min-width:180px;min-height:34px;color:var(--gray-900);background-color:var(--white);font-size:var(--k4-ag-font-size);text-transform:none;border-radius:6px;padding:6px 32px 6px 9px;font-weight:800}.customer-period-balance-table-wrap{background:var(--white);min-height:430px;overflow:auto}.customer-period-balance-actions{border-top:1px solid var(--gray-200);background:var(--gray-50);justify-content:flex-end;gap:8px;padding:12px 16px;display:flex}.customer-period-balance-actions button{border:1px solid var(--gray-300);border-radius:var(--control-radius);min-height:34px;color:var(--gray-800);background:var(--white);font-size:var(--control-font-size);padding:7px 12px;font-weight:800}.customer-period-balance-actions .primary{border-color:var(--button-strong-border);color:var(--button-strong-text);background:linear-gradient(180deg, var(--button-strong-start) 0, var(--button-strong-end) 100%)}.customer-outlook-button{border:1px solid var(--gray-300);border-radius:var(--control-radius);width:max-content;min-height:30px;color:var(--gray-500);background:var(--gray-50);margin-left:130px;padding:5px 10px;font-size:12px;font-weight:800}.customer-function-modal,.customer-orders-modal{width:min(1320px,100vw - 48px);max-width:min(1320px,100vw - 48px)}.customer-function-modal-body{padding:0 20px 20px}.customer-transactions-modal{border-radius:2px;width:min(800px,100vw - 32px);max-width:min(800px,100vw - 32px);max-height:calc(100vh - 48px)}.customer-transactions-modal-head{min-height:36px;padding:6px 12px}.customer-transactions-modal-head h2{font-size:var(--panel-heading-size)}.customer-transactions-functionbar{background:var(--shell-nav-bg);grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;padding:10px 12px 6px;display:grid}.customer-transactions-functionbar button{min-height:28px;color:var(--white);background:var(--shell-subnav-bg);font-size:var(--control-font-size);border:1px solid #0000;border-radius:0;padding:5px 8px;font-weight:850}.customer-transactions-functionbar button.active{color:var(--erp-tab-active-text);background:linear-gradient(180deg, var(--button-accent-start) 0, var(--button-accent-end) 100%)}.customer-transactions-functionbar button:disabled{color:var(--gray-500);background:var(--shell-subnav-bg);opacity:.75}.customer-transactions-filters{border-bottom:1px solid var(--gray-300);background:linear-gradient(180deg, var(--surface-panel-start) 0, var(--surface-panel-end) 100%);flex-wrap:wrap;align-items:center;gap:6px;padding:6px 12px;display:flex}.customer-transactions-filters span{color:var(--gray-900);font-size:var(--control-font-size);font-weight:800}.customer-transactions-filters select,.customer-transactions-filters button{border:1px solid var(--gray-300);min-height:28px;color:var(--gray-800);background:var(--white);font-size:var(--control-font-size);border-radius:0;padding:4px 10px;font-weight:800}.customer-transactions-modal .customer-function-modal-body{padding:0 12px}.customer-transactions-modal .transaction-ag-grid-shell{border-color:var(--gray-300);border-radius:0;min-height:250px}.customer-transactions-status{border-top:1px solid var(--gray-300);min-height:24px;color:var(--gray-900);background:linear-gradient(180deg, var(--surface-panel-start) 0, var(--surface-panel-end) 100%);font-size:var(--control-font-size);padding:4px 8px;font-weight:800}.customer-orders-toolbar{gap:12px;padding:0 20px 16px;display:grid}.customer-orders-toggle{align-items:center;gap:18px;display:flex}.customer-orders-toggle label{font-size:var(--k4-ag-font-size);align-items:center;gap:6px;display:inline-flex}.customer-orders-tabs{flex-wrap:wrap;gap:4px;display:flex}.customer-orders-tabs button{padding:6px 12px}.customer-orders-filter{gap:4px;max-width:260px;display:grid}.customer-orders-filter span{color:var(--gray-500);font-size:var(--label-font-size);font-weight:700}.customer-orders-filter select{border:1px solid var(--gray-300);min-height:34px;color:var(--gray-900);background:var(--white);font-size:var(--k4-ag-font-size);border-radius:6px;padding:6px 10px}.customer-check-line.compact{align-items:center;gap:8px;margin:0;display:inline-flex}.customer-check-line.compact span{font-size:var(--control-font-size);font-weight:700}.customer-statistics-toolbar{align-items:end}.customer-statistics-intervals{flex-wrap:wrap;gap:10px;display:flex}.customer-orders-layout{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:16px;padding:0 20px 20px;display:grid}.customer-orders-layout section{min-width:0}.customer-orders-layout h3{color:var(--gray-900);font-size:var(--section-heading-size);margin:0 0 8px;font-weight:800}.sales-orders-workspace{gap:16px;padding:18px;display:grid}.sales-orders-toolbar{border:1px solid var(--shell-panel-border);background:linear-gradient(180deg, var(--surface-panel-start) 0, var(--surface-panel-end) 100%);border-radius:12px;gap:14px;padding:16px;box-shadow:0 10px 26px #1123470f}.sales-orders-toolbar-primary,.sales-orders-toolbar-secondary{flex-wrap:wrap;justify-content:space-between;align-items:end;gap:14px;display:flex}.sales-orders-toolbar-secondary{border-top:1px solid #8ea1c42e;padding-top:2px}.sales-orders-search{flex:320px;min-width:280px;max-width:520px}.sales-orders-search input{border:1px solid var(--field-border);min-height:34px;color:var(--gray-900);background:var(--field-bg);font-size:var(--k4-ag-font-size);border-radius:6px;padding:6px 10px}.sales-orders-toolbar-actions{flex:none;justify-content:flex-end;gap:8px;padding-bottom:6px;display:flex}.sales-orders-layout{grid-template-columns:minmax(0,1fr);padding:0}.sales-orders-layout section{border:1px solid var(--shell-panel-border);background:linear-gradient(180deg, var(--surface-panel-start) 0, var(--surface-panel-end) 100%);border-radius:12px;gap:10px;padding:16px;display:grid;box-shadow:0 10px 26px #1123470f}.sales-orders-layout .transaction-ag-grid-shell,.sales-orders-layout .transaction-ag-grid{width:100%}.sales-orders-layout .transaction-ag-grid{height:min(560px,100vh - 360px)}.sales-order-card-workspace{gap:12px;padding:14px;display:grid}.sales-order-workflow-tabs{flex-wrap:wrap;gap:8px;padding-bottom:6px;display:flex}.sales-order-workflow-tabs button{border:1px solid var(--erp-tab-border);border-radius:var(--control-radius);background:linear-gradient(180deg, color-mix(in srgb, var(--erp-tab-bg) 92%, #fff 8%) 0, color-mix(in srgb, var(--erp-tab-border) 96%, #000 4%) 100%);min-height:34px;color:var(--erp-tab-text);font-size:var(--control-font-size);letter-spacing:.01em;padding:7px 14px;font-weight:800;box-shadow:inset 0 1px #ffffff0f}.sales-order-workflow-tabs button:hover:not(:disabled){border-color:color-mix(in srgb, var(--erp-tab-border) 70%, var(--amber) 30%);background:linear-gradient(180deg, color-mix(in srgb, var(--erp-tab-bg) 82%, #fff 18%) 0, color-mix(in srgb, var(--erp-tab-border) 88%, #000 12%) 100%)}.sales-order-workflow-tabs button.active{color:#1d1606;background:linear-gradient(#f5a623f5 0,#e89311f5 100%);border-color:#f5a62399}.sales-order-workflow-tabs button:disabled{opacity:.58}.sales-order-icon-toolbar{border:1px solid var(--shell-panel-border);background:linear-gradient(180deg, var(--surface-toolbar-start) 0, var(--surface-toolbar-end) 100%);border-radius:10px;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;display:flex;box-shadow:0 10px 26px #1123470f}.sales-order-icon-button{border-radius:var(--control-radius);color:#ecf5ffe6;background:#ffffff05;border:1px solid #a0b3d438;justify-content:center;align-items:center;width:34px;height:34px;font-size:17px;line-height:1;display:inline-flex}.sales-order-icon-button:disabled{color:#ecf5ff75}.sales-order-icon-button:not(:disabled):hover{color:#fff2d8;background:#f5a6231f;border-color:#f5a62373}.sales-order-inline-checkbox{color:var(--text-primary);align-items:center;gap:.65rem;font-size:.95rem;display:flex}.sales-order-card-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.sales-order-card-head span{color:var(--gray-500);font-size:var(--label-font-size);font-weight:700}.sales-order-card-actions{flex:none;gap:8px;display:flex}.sales-order-detail-body{gap:12px;display:grid}.sales-order-detail-tabs{padding:0}.sales-order-detail-sections{gap:12px}.sales-order-head-layout{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.sales-order-delivery-layout{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.sales-order-orderdata-layout{grid-template-columns:minmax(0,1fr) minmax(0,.92fr) minmax(0,1fr);align-items:start}.sales-order-misc-layout{grid-template-columns:minmax(0,1.3fr) minmax(280px,.62fr);align-items:start}.sales-order-optional-layout{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.sales-order-inline-strip{border:1px solid var(--shell-panel-border);background:linear-gradient(180deg, var(--surface-panel-start) 0, var(--surface-panel-end) 100%);border-radius:8px;align-items:stretch;min-height:40px;display:flex;overflow:hidden}.sales-order-inline-strip-wide{grid-column:1/-1}.sales-order-inline-strip-field{gap:2px;width:100%;padding:6px 10px;display:grid}.sales-order-inline-strip-field span{color:var(--gray-500);font-size:10px;font-weight:800}.sales-order-inline-strip-field strong{color:var(--gray-900);font-size:12px;font-weight:800;line-height:1.2}.sales-order-head-layout .inventory-field-group,.sales-order-delivery-layout .inventory-field-group,.sales-order-orderdata-layout .inventory-field-group,.sales-order-optional-layout .inventory-field-group{min-width:0}.sales-order-orderdata-column,.sales-order-misc-column{gap:12px;min-width:0;display:grid}.sales-order-head-layout .inventory-field-grid{grid-template-columns:repeat(2,minmax(140px,1fr))}.sales-order-head-layout .inventory-field{min-height:var(--card-field-row-min-height);padding:var(--card-field-row-padding)}.sales-order-head-layout .inventory-field>span{font-size:var(--card-field-label-font-size);font-weight:var(--card-field-label-font-weight)}.sales-order-head-layout .inventory-field>strong{font-size:var(--card-field-value-font-size);line-height:var(--card-field-value-line-height)}.sales-order-head-layout .inventory-field.wide,.sales-order-head-layout .inventory-field[data-multiline=true]{grid-column:1/-1}.sales-order-head-layout .inventory-field-group h3{padding:8px 10px}.sales-order-delivery-layout .inventory-field-grid{grid-template-columns:repeat(2,minmax(140px,1fr))}.sales-order-delivery-layout .inventory-field{min-height:var(--card-field-row-min-height);padding:var(--card-field-row-padding)}.sales-order-delivery-layout .inventory-field>span{font-size:var(--card-field-label-font-size);font-weight:var(--card-field-label-font-weight)}.sales-order-delivery-layout .inventory-field>strong{font-size:var(--card-field-value-font-size);line-height:var(--card-field-value-line-height)}.sales-order-delivery-layout .inventory-field.wide,.sales-order-delivery-layout .inventory-field[data-multiline=true]{grid-column:1/-1}.sales-order-delivery-layout .inventory-field-group h3{padding:8px 10px}.sales-order-orderdata-layout .inventory-field-grid{grid-template-columns:repeat(2,minmax(140px,1fr))}.sales-order-orderdata-layout .inventory-field{min-height:var(--card-field-row-min-height);padding:var(--card-field-row-padding)}.sales-order-orderdata-layout .inventory-field>span{font-size:var(--card-field-label-font-size);font-weight:var(--card-field-label-font-weight)}.sales-order-orderdata-layout .inventory-field>strong{font-size:var(--card-field-value-font-size);line-height:var(--card-field-value-line-height)}.sales-order-orderdata-layout .inventory-field.wide,.sales-order-orderdata-layout .inventory-field[data-multiline=true]{grid-column:1/-1}.sales-order-orderdata-layout .inventory-field-group h3{padding:8px 10px}.sales-order-misc-layout .inventory-field-grid{grid-template-columns:repeat(2,minmax(140px,1fr))}.sales-order-misc-layout .inventory-field{min-height:var(--card-field-row-min-height);padding:var(--card-field-row-padding)}.sales-order-misc-layout .inventory-field>span{font-size:var(--card-field-label-font-size);font-weight:var(--card-field-label-font-weight)}.sales-order-misc-layout .inventory-field>strong{font-size:var(--card-field-value-font-size);line-height:var(--card-field-value-line-height)}.sales-order-misc-layout .inventory-field.wide,.sales-order-misc-layout .inventory-field[data-multiline=true]{grid-column:1/-1}.sales-order-misc-layout .inventory-field[data-multiline=true]{min-height:var(--card-field-multiline-min-height)}.sales-order-misc-layout .inventory-field-group h3{padding:8px 10px}.sales-order-optional-layout .inventory-field-grid{grid-template-columns:1fr}.sales-order-optional-layout .inventory-field{min-height:var(--card-field-row-min-height);padding:var(--card-field-row-padding)}.sales-order-optional-layout .inventory-field>span{font-size:var(--card-field-label-font-size);font-weight:var(--card-field-label-font-weight)}.sales-order-optional-layout .inventory-field>strong{font-size:var(--card-field-value-font-size);line-height:var(--card-field-value-line-height)}.sales-order-optional-layout .inventory-field.wide,.sales-order-optional-layout .inventory-field[data-multiline=true]{grid-column:1/-1}.sales-order-optional-layout .inventory-field-group h3{padding:8px 10px}.sales-order-lines-panel{gap:6px;display:grid}.sales-order-prints-modal{gap:12px;width:min(720px,100vw - 48px);display:grid}.sales-order-invoice-modal{width:min(1120px,100vw - 48px)}.sales-order-invoice-body{gap:14px;padding:14px 16px 16px;display:grid}.sales-order-invoice-layout,.sales-order-print-layout{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.sales-order-print-body{gap:14px;padding:14px 16px 16px;display:grid}.sales-order-print-workflow-modal .transaction-modal-head{padding:14px 16px}.sales-order-print-workflow-modal .transaction-modal-head h2{font-size:20px}.sales-order-print-section{border:1px solid var(--shell-panel-border);background:linear-gradient(180deg, var(--surface-panel-start) 0, var(--surface-panel-end) 100%);box-shadow:var(--panel-shadow);border-radius:12px}.sales-order-print-section h3{font-size:var(--section-heading-size);color:var(--gray-900);border-bottom:1px solid #8ea1c429;margin:0;padding:10px 12px 8px;font-weight:800}.sales-order-print-grid{grid-template-columns:170px 1fr;align-items:center;gap:10px 12px;padding:12px;display:grid}.sales-order-print-grid label,.sales-order-print-inline-row label{font-size:var(--k4-ag-font-size);color:var(--gray-700);font-weight:700}.sales-order-print-control{border:1px solid var(--shell-panel-border);min-height:38px;color:var(--gray-900);background:linear-gradient(#fffffffa 0,#f2f6fbfa 100%);border-radius:10px;align-items:center;padding:8px 12px;font-size:14px;display:flex}.sales-order-print-control:is(select,input){appearance:none;width:100%;font:inherit}.sales-order-print-control:is(select){background-image:linear-gradient(45deg, transparent 50%, var(--gray-600) 50%), linear-gradient(135deg, var(--gray-600) 50%, transparent 50%);background-position:calc(100% - 18px) calc(50% - 2px),calc(100% - 12px) calc(50% - 2px);background-repeat:no-repeat;background-size:6px 6px,6px 6px}.sales-order-print-stepper,.sales-order-print-stepper-input{max-width:88px}.sales-order-print-checkbox-row{align-items:center;min-height:38px;display:flex}.sales-order-print-checkbox-row input{width:16px;height:16px;accent-color:var(--accent-warm)}.sales-order-print-inline-row{grid-template-columns:170px minmax(0,1fr) auto;align-items:center;gap:10px 12px;display:grid}.sales-order-print-inline-button{border:1px solid var(--shell-panel-border);border-radius:var(--control-radius);min-height:38px;color:var(--gray-900);font-size:var(--k4-ag-font-size);background:linear-gradient(#fffffff5 0,#ecf2f9f5 100%);padding:0 14px;font-weight:700}.sales-order-print-ellipsis{min-width:38px;padding:0}.sales-order-print-email{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sales-order-print-email-picker{border:1px solid var(--shell-panel-border);background:linear-gradient(#fafdfffa 0,#f1f7fcfa 100%);border-radius:12px;gap:8px;margin-top:-2px;padding:12px;display:grid}.sales-order-print-email-picker button{text-align:left;justify-content:flex-start}.sales-order-print-actions{justify-content:flex-end;gap:10px;margin-top:4px;display:flex}.sales-order-print-actions button{border-radius:var(--control-radius);min-width:104px;min-height:40px;font-size:var(--k4-ag-font-size);font-weight:700}.sales-order-print-actions button:disabled{opacity:.65}.sales-order-print-workflow-modal .sales-order-workflow-warning.compact{background:0 0;border:0;margin:0;padding:0}.sales-order-print-workflow-modal .sales-order-workflow-warning.compact p{font-size:var(--control-font-size);margin:0}.sales-order-invoice-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.sales-order-invoice-printer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;display:grid}.sales-order-prints-table-shell{border:1px solid var(--shell-panel-border);background:linear-gradient(180deg, var(--surface-panel-start) 0, var(--surface-panel-end) 100%);border-radius:10px;overflow:auto}.sales-order-prints-table{border-collapse:collapse;width:100%}.sales-order-prints-table th,.sales-order-prints-table td{text-align:left;font-size:var(--k4-ag-font-size);border-bottom:1px solid #8ea1c429;padding:10px 12px}.sales-order-prints-table th{color:var(--gray-600);background:#fff6;font-weight:800}.sales-order-prints-table td{color:var(--gray-900)}.sales-order-lines-panel h3{color:var(--gray-900);font-size:var(--section-heading-size);margin:0;font-weight:800}.sales-order-related-lines-modal{width:min(1280px,100vw - 48px)}.sales-order-related-lines-toolbar{flex-wrap:wrap;align-items:center;gap:12px 16px;padding:0 0 12px;display:flex}.sales-order-related-lines-tabs{margin-bottom:12px}.sales-order-related-lines-grid{min-height:420px}.sales-order-related-lines-grid .transaction-ag-grid-shell,.sales-order-related-lines-grid .transaction-ag-grid{height:min(62vh,620px);min-height:420px}.sales-order-split-modal{width:min(1200px,100vw - 48px)}.sales-order-split-form{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 16px;display:grid}.sales-order-split-quantity{width:100%;min-height:34px}.sales-orders-message{margin:0}.customer-function-grid-row-selected .ag-cell{background:var(--surface-grid-selected)}.sales-order-customer-notes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-order-totals-tabs{gap:8px;margin-bottom:12px;display:flex}.sales-order-totals-tabs button{border-radius:999px}.sales-order-totals-tabs button.is-active{background:var(--accent-warm);border-color:var(--accent-warm);color:var(--text-strong)}.sales-order-totals-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}@media (max-width:980px){.sales-orders-toolbar{padding:14px}.sales-orders-search{min-width:0;max-width:none}.sales-order-card-head{align-items:stretch}.sales-order-card-actions{justify-content:flex-start;width:100%}.sales-order-head-layout,.sales-order-delivery-layout,.sales-order-invoice-layout,.sales-order-invoice-printer-grid,.sales-order-orderdata-layout,.sales-order-misc-layout,.sales-order-optional-layout,.customer-misc-layout,.customer-delivery-layout,.customer-discount-form,.customer-contact-form,.customer-log-form,.customer-optional-layout,.customer-optional-choices .customer-optional-section-fields{grid-template-columns:1fr}.customer-optional-choices,.customer-optional-dates{grid-column:auto}.customer-optional-setup-row,.customer-optional-setup-row.choice,.customer-internet-layout,.customer-internet-fields .customer-edit-field,.customer-balance-range-grid,.customer-balance-result-footer,.customer-balance-remove-grid,.customer-balance-date-field,.customer-balance-range-grid label,.customer-orders-layout,.sales-order-totals-grid{grid-template-columns:1fr}}
.sales-order-lookup-field{width:100%;position:relative}.sales-order-lookup-input{align-items:stretch;gap:4px;width:100%;display:flex}.sales-order-lookup-input>input{border-radius:var(--control-radius);flex:auto;min-width:0;margin-top:0}.sales-order-lookup-input>input:focus{border-color:var(--field-focus-border);outline:2px solid var(--field-focus-ring);outline-offset:0}.sales-order-lookup-input.single>input{border-right:1px solid var(--gray-300);border-top-right-radius:var(--control-radius);border-bottom-right-radius:var(--control-radius)}.sales-order-lookup-input>button{min-width:var(--control-height);height:var(--control-height);border:1px solid var(--gray-300);border-radius:var(--control-radius);color:var(--gray-700);background:var(--gray-50);font-size:var(--control-font-size);box-shadow:none;flex:none;padding:0 9px;font-weight:700;line-height:1}.sales-order-lookup-input>button:hover:not(:disabled){background:var(--gray-100);border-color:var(--gray-300)}.sales-order-lookup-menu{z-index:30;border:1px solid var(--gray-300);border-radius:var(--control-radius);background:var(--surface-card);max-height:220px;position:absolute;top:calc(100% + 2px);left:0;right:0;overflow:auto;box-shadow:0 10px 24px #0f172a1f}.sales-order-lookup-menu button,.sales-order-lookup-empty{background:var(--surface-card);text-align:left;width:100%;min-height:0;font-size:var(--control-font-size);box-shadow:none;border:0;border-radius:0;padding:8px 10px;line-height:1.3;display:flex}.sales-order-lookup-menu button{flex-direction:column;align-items:flex-start;gap:2px}.sales-order-lookup-menu button:hover:not(:disabled),.sales-order-lookup-menu button.active{background:var(--surface-grid-selected)}.sales-order-lookup-menu button strong{font-size:var(--control-font-size);margin:0;line-height:1.2}.sales-order-lookup-menu button span,.sales-order-lookup-empty{color:var(--gray-600);font-size:var(--label-font-size);text-transform:none;font-weight:500}
.sales-order-archive-metadata-modal{max-width:min(920px, calc(100vw - var(--space-6)))}.sales-order-archive-metadata-note{color:var(--muted-strong);font-size:var(--control-font-size);line-height:var(--line-height-body);margin:0 0 var(--space-4)}.sales-order-archive-metadata-grid{gap:var(--space-4);grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.sales-order-archive-metadata-grid fieldset{border:1px solid var(--border-subtle);border-radius:var(--control-radius);gap:var(--space-3);padding:var(--space-4);margin:0;display:grid}.sales-order-archive-metadata-grid legend{color:var(--text-strong);font-size:var(--section-heading-size);padding:0 var(--space-1);font-weight:800}.sales-order-archive-metadata-grid label{gap:var(--space-1);display:grid}.sales-order-archive-metadata-grid label span,.sales-order-archive-metadata-checkbox span{color:var(--muted-strong);font-size:var(--label-font-size);text-transform:uppercase;font-weight:800}.sales-order-archive-metadata-checkbox{align-items:center;gap:var(--space-2);display:flex}@media (max-width:980px){.sales-order-archive-metadata-grid{grid-template-columns:1fr}}
.sales-order-back-order-modal{width:min(1320px,100vw - 48px)}.sales-order-back-order-filters{border-bottom:1px solid var(--shell-panel-border);background:linear-gradient(180deg, var(--surface-panel-start) 0, var(--surface-panel-end) 100%);grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 14px;display:grid}.sales-order-back-order-filter-row,.sales-order-back-order-filters label{grid-template-columns:86px minmax(0,1fr) minmax(0,1fr);align-items:center;gap:6px;display:grid}.sales-order-back-order-filters label{grid-template-columns:86px minmax(0,1fr)}.sales-order-back-order-filter-row span,.sales-order-back-order-filters label span{color:var(--gray-700);font-size:var(--label-font-size);font-weight:800}.sales-order-back-order-body{grid-template-rows:auto auto minmax(180px,1fr) minmax(220px,1.15fr);gap:12px;padding:14px 16px 16px;display:grid}.sales-order-back-order-panel{border:1px solid var(--shell-panel-border);border-radius:var(--control-radius);background:linear-gradient(180deg, var(--surface-panel-start) 0, var(--surface-panel-end) 100%);min-height:0;overflow:hidden}.sales-order-back-order-panel h3{border-bottom:1px solid var(--shell-panel-border);background:linear-gradient(180deg, var(--surface-toolbar-start) 0, var(--surface-toolbar-end) 100%);color:var(--gray-900);font-size:var(--section-heading-size);margin:0;padding:8px 10px;font-weight:800}.sales-order-back-order-table-wrap{max-height:100%;overflow:auto}.sales-order-back-order-table{border-collapse:collapse;width:100%;font-size:var(--control-font-size)}.sales-order-back-order-table th,.sales-order-back-order-table td{border-right:1px solid var(--shell-panel-border);border-bottom:1px solid var(--shell-panel-border);white-space:nowrap;padding:5px 7px}.sales-order-back-order-table th{z-index:1;background:var(--surface-grid-header);color:var(--gray-800);text-align:left;font-weight:800;position:sticky;top:0}.sales-order-back-order-table tbody tr{cursor:pointer}.sales-order-back-order-table tbody tr:hover,.sales-order-back-order-table tbody tr.is-selected{background:var(--surface-grid-selected)}.sales-order-back-order-table .numeric{text-align:right}.sales-order-back-order-quantity{text-align:right;width:120px}@media (max-width:980px){.sales-order-back-order-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
.sales-order-bulk-line-update-modal{width:min(1120px,100vw - 32px);max-height:calc(100vh - 32px)}.sales-order-bulk-line-update-note{margin:0 0 calc(var(--control-padding-x) * 1.5);color:var(--gray-600);font-size:var(--control-font-size)}.sales-order-bulk-line-update-filters{gap:var(--control-padding-x);margin-bottom:var(--control-padding-x);grid-template-columns:repeat(5,minmax(130px,1fr));display:grid}.sales-order-bulk-line-update-range{gap:calc(var(--control-padding-y) / 2);grid-template-columns:1fr 1fr;display:grid}.sales-order-bulk-line-update-range span{color:var(--gray-600);font-size:var(--label-font-size);font-weight:var(--card-field-label-font-weight);grid-column:1/-1}.sales-order-bulk-line-update-toggles,.sales-order-bulk-line-update-actions,.sales-order-bulk-line-update-footer{gap:var(--control-padding-x);margin-bottom:var(--control-padding-x);flex-wrap:wrap;align-items:center;display:flex}.sales-order-bulk-line-update-options{gap:var(--control-padding-y) var(--control-padding-x);margin:0 0 var(--control-padding-x);padding:var(--control-padding-x);border:1px solid var(--field-border);border-radius:var(--control-radius);grid-template-columns:repeat(4,minmax(110px,1fr));display:grid}.sales-order-bulk-line-update-options legend{padding:0 calc(var(--control-padding-x) / 2);color:var(--gray-600);font-size:var(--label-font-size);font-weight:var(--card-field-label-font-weight)}.sales-order-bulk-line-update-options label,.sales-order-bulk-line-update-toggles label{gap:calc(var(--control-padding-x) / 2);font-size:var(--control-font-size);align-items:center;display:inline-flex}.sales-order-bulk-line-update-grid-wrap{border:1px solid var(--field-border);border-radius:var(--control-radius);background:var(--white);max-height:42vh;overflow:auto}.sales-order-bulk-line-update-grid{border-collapse:collapse;width:100%;min-width:760px;font-size:var(--k4-ag-font-size)}.sales-order-bulk-line-update-grid th,.sales-order-bulk-line-update-grid td{padding:calc(var(--control-padding-y) / 2) var(--control-padding-x);border-bottom:1px solid var(--gray-200);text-align:left;white-space:nowrap}.sales-order-bulk-line-update-grid th{z-index:1;background:var(--surface-grid-header);color:var(--gray-600);font-weight:800;position:sticky;top:0}.sales-order-bulk-line-update-footer{margin:var(--control-padding-x) 0 0;justify-content:flex-end}@media (max-width:900px){.sales-order-bulk-line-update-filters,.sales-order-bulk-line-update-options{grid-template-columns:1fr}}
.sales-order-invoice-reprint-modal{width:min(1180px,100vw - 32px);max-height:calc(100vh - 32px)}.sales-order-reprint-filters{gap:var(--control-padding-x);margin-bottom:calc(var(--control-padding-x) * 1.5);grid-template-columns:repeat(5,minmax(120px,1fr));display:grid}.sales-order-reprint-filters label{gap:calc(var(--control-padding-y) / 2);color:var(--gray-600);font-size:var(--label-font-size);font-weight:var(--card-field-label-font-weight);display:grid}.sales-order-reprint-filters input,.sales-order-reprint-filters select{width:100%}.sales-order-reprint-actions{gap:var(--control-padding-x);margin-bottom:var(--control-padding-x);flex-wrap:wrap;align-items:center;display:flex}.sales-order-reprint-grid-wrap{border:1px solid var(--field-border);border-radius:var(--control-radius);background:var(--white);max-height:46vh;overflow:auto}.sales-order-reprint-grid{border-collapse:collapse;width:100%;min-width:980px;font-size:var(--k4-ag-font-size)}.sales-order-reprint-grid th,.sales-order-reprint-grid td{padding:calc(var(--control-padding-y) / 2) var(--control-padding-x);border-bottom:1px solid var(--gray-200);text-align:left;white-space:nowrap}.sales-order-reprint-grid th{z-index:1;background:var(--surface-grid-header);color:var(--gray-600);font-weight:800;position:sticky;top:0}.sales-order-reprint-grid tr.active td{background:var(--surface-grid-selected)}.sales-order-reprint-grid .number{text-align:right}.sales-order-reprint-note{margin:var(--control-padding-x) 0 0;color:var(--gray-600);font-size:var(--control-font-size)}@media (max-width:900px){.sales-order-reprint-filters{grid-template-columns:repeat(2,minmax(120px,1fr))}}
.sales-order-return-rent-modal{max-width:min(980px, calc(100vw - var(--space-6)))}.sales-order-return-rent-options{align-items:end;gap:var(--space-3);margin-bottom:var(--space-4);grid-template-columns:minmax(180px,240px) 1fr;display:grid}.sales-order-return-rent-options label{gap:var(--space-1);display:grid}.sales-order-return-rent-options span{color:var(--muted-strong);font-size:var(--label-font-size);text-transform:uppercase;font-weight:800}.sales-order-return-rent-options p{color:var(--muted-strong);font-size:var(--control-font-size);line-height:var(--line-height-body);margin:0}.sales-order-return-rent-table-wrap{border:1px solid var(--border-subtle);border-radius:var(--control-radius);max-height:min(52vh,520px);overflow:auto}.sales-order-return-rent-table{border-collapse:collapse;font-size:var(--control-font-size);width:100%}.sales-order-return-rent-table th,.sales-order-return-rent-table td{border-bottom:1px solid var(--border-subtle);padding:var(--space-2) var(--space-3);text-align:left;vertical-align:middle}.sales-order-return-rent-table th{background:var(--surface-muted);color:var(--muted-strong);font-size:var(--label-font-size);text-transform:uppercase;z-index:1;font-weight:800;position:sticky;top:0}.sales-order-return-rent-table .numeric{text-align:right}.sales-order-return-rent-table input{text-align:right;max-width:120px}@media (max-width:760px){.sales-order-return-rent-options{grid-template-columns:1fr}}
.sales-order-subscription-layout{gap:var(--space-3);grid-template-columns:minmax(260px,.9fr) minmax(220px,.6fr) minmax(360px,1.4fr);align-items:start;display:grid}.sales-order-subscription-dates,.sales-order-subscription-card{gap:var(--space-2);display:grid}.sales-order-subscription-card{align-content:start}.sales-order-subscription-mode-list,.sales-order-subscription-switch,.sales-order-subscription-weekdays,.sales-order-subscription-inline-row{gap:var(--space-2);flex-wrap:wrap;display:flex}.sales-order-subscription-mode-list label,.sales-order-subscription-switch label,.sales-order-subscription-weekdays label{align-items:center;gap:var(--space-1);min-height:var(--control-height);color:var(--text-primary);font-size:var(--control-font-size);font-weight:700;display:inline-flex}.sales-order-subscription-inline-field{gap:var(--space-1);min-width:96px;display:grid}.sales-order-subscription-inline-field span,.sales-order-subscription-inline-field em{color:var(--text-muted);font-size:var(--label-font-size);font-style:normal;font-weight:800}.sales-order-subscription-inline-field input,.sales-order-subscription-inline-field select{min-height:var(--control-height);border:1px solid var(--border-strong);border-radius:var(--control-radius);background:var(--surface-input);color:var(--text-primary);font-size:var(--control-font-size)}.sales-order-subscription-help,.sales-order-subscription-legacy-code,.sales-order-subscription-error{font-size:var(--control-font-size);margin:0}.sales-order-subscription-help,.sales-order-subscription-legacy-code{color:var(--text-muted)}.sales-order-subscription-error{color:var(--status-danger-text);font-weight:800}@media (max-width:1100px){.sales-order-subscription-layout{grid-template-columns:1fr}}
.sales-subscription-batch{gap:var(--control-padding-x);flex-direction:column;min-height:0;display:flex}.sales-subscription-batch-header{align-items:flex-start;gap:calc(var(--control-padding-x) * 2);justify-content:space-between;display:flex}.sales-subscription-batch-header h2{font-size:var(--panel-heading-size);margin:0}.sales-subscription-batch-header p{color:var(--gray-500);margin:var(--control-padding-y) 0 0}.sales-subscription-batch-actions{gap:var(--control-padding-x);display:flex}.sales-subscription-batch-panel{background:linear-gradient(180deg, var(--surface-soft-start) 0, var(--surface-soft-end) 100%);border:1px solid var(--shell-panel-border);border-radius:var(--control-radius);gap:var(--control-padding-x);padding:calc(var(--control-padding-x) * 1.5);flex-direction:column;display:flex}.sales-subscription-batch-grid,.sales-subscription-batch-ranges{gap:var(--control-padding-x);grid-template-columns:repeat(auto-fit,minmax(180px,1fr));display:grid}.sales-subscription-batch-grid label,.sales-subscription-batch-description,.sales-subscription-batch-range{gap:var(--control-padding-y);flex-direction:column;display:flex}.sales-subscription-batch-grid span,.sales-subscription-batch-description span,.sales-subscription-batch-range span,.sales-subscription-batch-summary span{color:var(--gray-500);font-size:var(--label-font-size);font-weight:800}.sales-subscription-batch-check{min-height:var(--control-height);align-items:center;flex-direction:row!important}.sales-subscription-batch-check input{margin:0}.sales-subscription-batch-range{grid-template-columns:1fr 1fr;display:grid}.sales-subscription-batch-range span{grid-column:1/-1}.sales-subscription-batch-status{color:var(--gray-500);margin:0}.sales-subscription-batch-summary{gap:var(--control-padding-x);grid-template-columns:repeat(auto-fit,minmax(140px,1fr));display:grid}.sales-subscription-batch-summary div{background:var(--surface-panel-start);border:1px solid var(--shell-panel-border);border-radius:var(--control-radius);gap:var(--control-padding-y);padding:var(--control-padding-x);flex-direction:column;display:flex}.sales-subscription-batch-summary strong{font-size:var(--section-heading-size)}.sales-subscription-batch-table-wrap,.sales-subscription-batch-results{border:1px solid var(--shell-panel-border);border-radius:var(--control-radius);overflow:auto}.sales-subscription-batch-results h3{font-size:var(--section-heading-size);margin:calc(var(--control-padding-x) * 1.5) calc(var(--control-padding-x) * 1.5) var(--control-padding-x)}.sales-subscription-batch-table{border-collapse:collapse;font-size:var(--control-font-size);width:100%;min-width:1120px}.sales-subscription-batch-table th,.sales-subscription-batch-table td{border-bottom:1px solid var(--shell-panel-border);padding:var(--control-padding-x);text-align:left;white-space:nowrap}.sales-subscription-batch-table th{background:var(--surface-grid-header);color:var(--gray-500);font-size:var(--label-font-size);font-weight:800}.sales-subscription-batch-table .numeric{text-align:right}.sales-subscription-batch-table tr.posted td{background:var(--feedback-success-bg)}.sales-subscription-batch-table tr.failed td{background:var(--status-danger-bg)}
.purchase-dashboard .dashboard-kpi-grid{grid-template-columns:repeat(6,minmax(150px,1fr))}.purchase-dashboard-list-button,.purchase-dashboard-group-row{border:1px solid var(--gray-200);background:var(--gray-50);text-align:left;justify-content:space-between;align-items:center;gap:12px;width:100%;padding:10px;display:flex}.purchase-dashboard-list-button{border-radius:var(--control-radius)}.purchase-dashboard-group-row{border-radius:7px}.purchase-dashboard-list-button:hover{background:linear-gradient(#f4f8fbfa 0,#eaf1f6f5 100%);border-color:#58778947}.purchase-dashboard-group-row span,.purchase-dashboard-list-button span{min-width:0;display:grid}.purchase-dashboard-list-button strong,.purchase-dashboard-group-row strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.purchase-dashboard-group-bar-wrap{justify-content:flex-end;align-items:center;gap:10px;min-width:220px;display:flex}.purchase-dashboard-group-bar{background:linear-gradient(90deg, var(--dashboard-series-primary-start), var(--dashboard-series-secondary-end));border-radius:999px;min-width:8px;min-height:12px}.purchase-dashboard-group-bar.warning{background:linear-gradient(90deg, var(--dashboard-series-accent-start), var(--dashboard-series-accent-end))}.supplier-bank-data-modal{background:linear-gradient(180deg, var(--surface-modal-start) 0, var(--surface-modal-end) 100%);grid-template-rows:auto minmax(0,1fr) auto;width:min(1180px,100vw - 48px);max-height:calc(100vh - 48px);overflow:hidden}.supplier-bank-data-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px 20px 20px;display:grid;overflow:auto}.supplier-bank-data-grid .k4-card-section{align-content:start}.supplier-bank-data-grid .k4-card-section-content{gap:8px;display:grid}.inventory-form-field{color:var(--gray-900);font-size:var(--control-font-size);gap:4px;font-weight:800;display:grid}.inventory-form-field span{color:var(--gray-500);font-size:var(--label-font-size);font-weight:var(--card-field-label-font-weight)}.inventory-form-field input,.inventory-form-field select,.inventory-form-field textarea{width:100%;min-height:var(--control-height);border:1px solid var(--shell-panel-border);border-radius:var(--control-radius);background:var(--white);color:var(--gray-900);font-size:var(--control-font-size);padding:7px 10px;font-weight:750}.inventory-form-field textarea{resize:vertical}.inventory-form-field--wide{grid-column:1/-1}.supplier-bank-checkbox{color:var(--gray-700);font-size:var(--control-font-size);align-items:center;gap:8px;font-weight:800;display:flex}.inventory-field-action{align-self:end}.purchase-order-card-workspace{min-height:calc(100vh - 128px)}.purchase-order-list-section .k4-card-section-content{min-height:520px}.purchase-order-list-grid{height:min(62vh,720px);min-height:520px}.purchase-job-grid,.supplier-card-tab-grid,.supplier-prints-grid{height:min(48vh,560px);min-height:360px}.supplier-card-operational-section{min-height:min(58vh,680px)}.supplier-card-operational-section .inventory-price-panel-head{margin-bottom:10px}.supplier-card-grid-actions{align-items:center;gap:6px;height:100%;display:flex}.supplier-report-cell{align-content:center;min-height:100%;display:grid}.supplier-report-cell small{color:var(--gray-500);font-size:var(--label-font-size);font-weight:700}.sales-subscription-batch-results .purchase-job-grid{height:min(34vh,400px);min-height:240px}.purchase-order-head-layout{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.purchase-order-inline-purchase-no{grid-column:1/3}.purchase-order-inline-total{grid-column:3}.purchase-order-head-layout .inventory-field-group,.purchase-order-head-layout .k4-card-section{min-width:0}.purchase-order-head-layout .inventory-field-grid{grid-template-columns:repeat(2,minmax(140px,1fr))}.purchase-order-head-layout .inventory-field,.purchase-order-head-layout .sales-order-inline-strip{min-height:var(--card-field-row-min-height)}.purchase-order-head-layout .inventory-field.wide,.purchase-order-head-layout .inventory-field[data-multiline=true]{grid-column:1/-1}.purchase-order-approval-box{border:1px solid var(--shell-panel-border);border-radius:var(--control-radius);background:linear-gradient(180deg, var(--surface-panel-start) 0, var(--surface-panel-end) 100%);grid-column:1/-1;gap:6px;min-height:92px;padding:8px 10px;display:grid}.purchase-order-approval-box>span{color:var(--gray-500);font-size:var(--card-field-label-font-size);font-weight:var(--card-field-label-font-weight)}.purchase-order-approval-box label,.purchase-order-checkbox-field .field-checkbox{color:var(--gray-700);font-size:var(--control-font-size);align-items:center;gap:8px;font-weight:800;display:flex}.purchase-order-totals-summary{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;display:grid}.purchase-order-total-card{border:1px solid var(--shell-panel-border);border-radius:var(--control-radius);background:var(--field-bg);gap:10px;padding:12px;display:grid}.purchase-order-total-card header{gap:4px;display:grid}.purchase-order-total-card header span,.purchase-order-total-card dt{color:var(--gray-500);font-size:var(--label-font-size);font-weight:800}.purchase-order-total-card header strong,.purchase-order-total-card dd{color:var(--gray-900);font-size:var(--control-font-size);margin:0;font-weight:800}.purchase-order-total-card dl{gap:6px;margin:0;display:grid}.purchase-order-total-card dl>div{border-top:1px solid var(--shell-panel-border);justify-content:space-between;gap:12px;padding-top:6px;display:flex}.purchase-order-lines-section{min-height:460px}.purchase-order-lines-section .sales-order-line-grid{height:min(44vh,520px);min-height:360px}.purchase-order-lines-section .transaction-ag-grid-shell{min-height:400px}.purchase-order-card-workspace--lines-zoomed .sales-order-detail-body{min-height:calc(100vh - 255px)}.purchase-order-card-workspace--lines-zoomed .purchase-order-lines-section,.purchase-order-card-workspace--lines-zoomed .purchase-order-lines-section .transaction-ag-grid-shell{min-height:calc(100vh - 292px)}.purchase-order-card-workspace--lines-zoomed .purchase-order-lines-section .sales-order-line-grid{height:calc(100vh - 332px);min-height:calc(100vh - 332px)}.purchase-order-split-grid{height:min(58vh,620px);min-height:420px}.purchase-order-info-modal-body{gap:12px;padding:16px;display:grid}.purchase-order-log-table{min-width:920px}.purchase-order-notes-grid{grid-template-columns:repeat(2,minmax(260px,1fr));gap:14px;display:grid}.purchase-order-notes-grid label{gap:6px;display:grid}.purchase-order-notes-grid span{color:var(--gray-500);font-size:var(--label-font-size);font-weight:800}.purchase-order-notes-grid textarea{resize:vertical;min-height:260px}.purchase-line-import-backdrop{background:#0f172a6b;justify-content:center;align-items:center;display:flex}.purchase-line-import-modal{background:var(--surface-panel-start);border:1px solid var(--shell-panel-border);border-radius:var(--panel-radius);box-shadow:var(--shadow-elevated);gap:16px;width:min(1180px,100vw - 48px);max-height:min(86vh,860px);padding:18px;display:grid;overflow:auto}.purchase-line-import-header{justify-content:space-between;align-items:start;gap:16px;display:flex}.purchase-line-import-header h2{font-size:var(--panel-heading-size);margin:0}.purchase-line-import-header p{color:var(--gray-600);margin:4px 0 0}.purchase-line-import-controls{grid-template-columns:minmax(220px,2fr) repeat(3,minmax(120px,1fr)) minmax(180px,auto);align-items:end;gap:12px;display:grid}.purchase-line-import-controls label{color:var(--gray-600);font-size:var(--label-font-size);gap:4px;font-weight:800;display:grid}.purchase-line-import-check{grid-auto-flow:column;justify-content:start}.purchase-line-import-actions{gap:8px;display:flex}.purchase-line-import-status{color:var(--gray-700);font-size:var(--control-font-size);margin:0;font-weight:800}.supplier-cvr-field{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:6px;display:grid}@media (max-width:900px){.supplier-bank-data-grid{grid-template-columns:1fr}.purchase-order-line-toolbar{align-items:stretch}}@media (max-width:1100px){.purchase-order-head-layout{grid-template-columns:minmax(0,1fr)}.purchase-order-inline-purchase-no,.purchase-order-inline-total{grid-column:1}}
.inventory-dashboard .dashboard-kpi-grid{grid-template-columns:repeat(6,minmax(150px,1fr))}.inventory-dashboard-list-button{border:1px solid var(--shell-panel-border);background:linear-gradient(180deg, var(--surface-toolbar-start) 0, var(--surface-toolbar-end) 100%);text-align:left;border-radius:var(--control-radius);justify-content:space-between;align-items:center;gap:12px;width:100%;padding:10px;display:flex}.inventory-dashboard-list-button:hover{background:linear-gradient(#f4f8fbfa 0,#eaf1f6f5 100%);border-color:#58778947}.inventory-dashboard-list-button span{min-width:0;display:grid}.inventory-dashboard-list-button strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
.report-manager-legacy-actions{gap:8px;margin-bottom:12px;display:grid}.report-manager-legacy-row{flex-wrap:wrap;gap:8px;display:flex}.report-manager-legacy-row button{min-height:34px}.report-manager-workspace{min-height:calc(100vh - var(--globalbar-height) - 36px);grid-template-columns:minmax(0,1fr) minmax(280px,.32fr);gap:14px;display:grid}.report-content>.report-manager-workspace{min-height:100%}.report-manager-panel,.report-manager-detail{border:1px solid var(--shell-panel-border);background:linear-gradient(180deg, var(--surface-panel-start) 0, var(--surface-panel-end) 100%);border-radius:8px;min-width:0}.report-manager-tabs{border-bottom:1px solid var(--shell-panel-border);flex-wrap:wrap;gap:0;padding:12px 14px 0;display:flex}.report-manager-tab{margin-right:4px;padding:0 12px;font-weight:800}.report-manager-toolbar{border-bottom:1px solid var(--shell-panel-border);justify-content:space-between;align-items:start;gap:14px;padding:14px;display:flex}.report-manager-toolbar h2,.report-manager-detail-head h2{font-size:19px}.report-manager-toolbar-actions{align-items:center;gap:10px;display:flex}.report-manager-note{color:var(--gray-500);font-size:var(--control-font-size);font-weight:700}.report-manager-summary{border-bottom:1px solid var(--shell-panel-border);grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px 14px;display:grid}.report-manager-summary article{border:1px solid var(--shell-panel-border);background:linear-gradient(180deg, var(--surface-toolbar-start) 0, var(--surface-toolbar-end) 100%);border-radius:7px;gap:4px;padding:10px 12px;display:grid}.report-manager-summary span{color:var(--gray-500);font-size:var(--label-font-size);font-weight:850}.report-manager-summary strong{color:var(--gray-900);font-size:24px;font-weight:900}.report-manager-grid{height:calc(100vh - 330px);min-height:420px}.report-manager-status{border:1px solid var(--gray-200);border-radius:999px;justify-content:center;align-items:center;min-width:76px;min-height:22px;padding:0 10px;font-size:11px;font-weight:900;display:inline-flex}.report-manager-status-ready{color:var(--status-success-text);background:var(--status-success-bg)}.report-manager-status-prepared{color:var(--status-neutral-text);background:var(--status-neutral-bg)}.report-manager-status-blocked{color:var(--status-warning-text);background:var(--status-warning-bg)}.report-manager-status-muted{color:var(--gray-600);background:linear-gradient(180deg, var(--surface-toolbar-start) 0, var(--surface-toolbar-end) 100%)}.report-manager-status-legacy{color:var(--status-warning-text);background:var(--status-warning-bg)}.report-manager-row-ready .ag-cell{background:color-mix(in srgb, var(--white) 88%, var(--surface-grid-selected))}.report-manager-row-prepared .ag-cell{background:color-mix(in srgb, var(--white) 90%, #ecfeff)}.report-manager-row-blocked .ag-cell{background:color-mix(in srgb, var(--white) 90%, #fef3c7)}.report-manager-detail{align-content:start;display:grid}.report-manager-detail-head{border-bottom:1px solid var(--shell-panel-border);padding:14px}.report-manager-detail-actions{border-bottom:1px solid var(--shell-panel-border);background:linear-gradient(180deg, var(--surface-toolbar-start) 0, var(--surface-toolbar-end) 100%);gap:10px;padding:14px;display:grid}.report-manager-detail-guide p{color:var(--gray-700);font-size:var(--control-font-size);margin:0;font-weight:600;line-height:1.5}.report-manager-detail-action-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.report-manager-detail-action-grid button{min-height:34px}.report-manager-detail-list{gap:0;display:grid}.report-manager-detail-list div{border-bottom:1px solid var(--shell-panel-border);gap:3px;padding:12px 14px;display:grid}.report-manager-detail-list dt{color:var(--gray-500);font-size:var(--label-font-size);font-weight:850}.report-manager-detail-list dd{color:var(--gray-900);font-size:var(--k4-ag-font-size);margin:0;font-weight:700}.report-manager-empty{color:var(--gray-500);font-size:var(--k4-ag-font-size);padding:14px}@media (max-width:1180px){.report-manager-workspace{grid-template-columns:minmax(0,1fr)}.report-manager-grid{height:520px}}
.project-workspace{gap:var(--space-3);flex-direction:column;height:100%;min-height:0;display:flex}.project-list-head,.project-card .inventory-card-head{justify-content:space-between;align-items:center;gap:var(--space-4);display:flex}.project-list-head p,.project-card .inventory-card-head p{color:var(--text-muted);font-size:var(--label-font-size);letter-spacing:.02em;margin:0 0 var(--space-1);text-transform:uppercase;font-weight:800}.project-list-head h2,.project-card .inventory-card-head h2{color:var(--text-strong);font-size:var(--panel-heading-size);margin:0}.project-actions{gap:var(--space-2);display:flex}.project-filterbar{background:var(--surface-raised);border:1px solid var(--border-subtle);border-radius:var(--panel-radius);align-items:end;gap:var(--space-2);padding:var(--space-3);grid-template-columns:minmax(180px,1.5fr) repeat(4,minmax(120px,1fr)) auto;display:grid}.project-filterbar label,.project-form-row{gap:var(--space-1);display:grid}.project-filterbar span,.project-form-row span{color:var(--text-muted);font-size:var(--label-font-size);font-weight:800}.project-filterbar input,.project-filterbar select,.project-form-row input,.project-form-row select,.project-form-row textarea{background:var(--control-bg);border:1px solid var(--control-border);border-radius:var(--control-radius);color:var(--text-strong);font-size:var(--control-font-size);min-height:var(--control-height);padding:0 var(--space-2)}.project-form-row textarea{min-height:120px;padding-block:var(--space-2);resize:vertical}.project-tab-grid{background:var(--surface-raised);border:1px solid var(--border-subtle);border-radius:var(--panel-radius);gap:var(--space-3);padding:var(--space-3);display:grid}.project-tab-grid.two-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.project-tab-grid .k4-card-section{min-height:100%}.project-card-section-form{gap:var(--space-2);display:grid}.project-form-row .account-lookup-field{margin-top:0}.project-worksheet-picker .account-lookup-field{min-width:220px}.project-grid-shell,.project-reference-grid,.project-table-panel{background:var(--surface-raised);border:1px solid var(--border-subtle);border-radius:var(--panel-radius);min-height:0;overflow:auto}.project-grid-shell{flex:1}.project-ag-grid{height:100%;min-height:420px}.project-reference-grid{height:520px}.project-table-panel{height:420px}.project-statusline{color:var(--text-muted);font-size:var(--control-font-size)}.project-lines-ledger{gap:var(--space-2);flex-direction:column;min-height:520px;display:flex}.project-lines-toolbar{justify-content:space-between;align-items:end;gap:var(--space-3);display:flex}.project-line-filters{align-items:end;gap:var(--space-2);flex-wrap:wrap;display:flex}.project-line-filters label{gap:var(--space-1);display:grid}.project-line-filters span{color:var(--text-muted);font-size:var(--label-font-size);font-weight:800}.project-line-filters input,.project-line-filters select{background:var(--control-bg);border:1px solid var(--control-border);border-radius:var(--control-radius);color:var(--text-strong);font-size:var(--control-font-size);min-height:var(--control-height);padding:0 var(--space-2)}.project-lines-grid-shell{flex:1}.project-economy{background:var(--surface-raised);border:1px solid var(--border-subtle);border-radius:var(--panel-radius);gap:var(--space-3);min-height:620px;padding:var(--space-3);flex-direction:column;display:flex}.project-economy-summary{gap:var(--space-2);grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.project-economy-summary div{background:var(--surface-subtle);border:1px solid var(--border-subtle);border-radius:var(--panel-radius);gap:var(--space-1);padding:var(--space-3);display:grid}.project-economy-summary span,.project-economy-actions span{color:var(--text-muted);font-size:var(--label-font-size);font-weight:800}.project-economy-summary strong{color:var(--text-strong);font-size:var(--panel-heading-size)}.project-economy-actions{align-items:end;gap:var(--space-2);flex-wrap:wrap;display:flex}.project-economy-actions label{gap:var(--space-1);display:grid}.project-economy-actions input{background:var(--control-bg);border:1px solid var(--control-border);border-radius:var(--control-radius);color:var(--text-strong);font-size:var(--control-font-size);min-height:var(--control-height);padding:0 var(--space-2)}.project-economy-grid-row{gap:var(--space-3);flex:1;grid-template-columns:minmax(0,1fr);min-height:0;display:grid}.project-economy-grid{gap:var(--space-2);min-height:290px;display:grid}.project-economy-grid h3{color:var(--text-strong);font-size:var(--section-heading-size);margin:0}.project-economy-ag-grid{min-height:260px}.project-modal-backdrop{padding:var(--space-4);z-index:1100;background:#0f172a61;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.project-line-modal{background:var(--surface-raised);border:1px solid var(--border-strong);border-radius:var(--panel-radius);box-shadow:var(--shadow-lg);gap:var(--space-3);max-width:980px;max-height:min(90vh,820px);padding:var(--space-4);width:min(100%,980px);display:grid;overflow:auto}.project-invoice-modal{background:var(--surface-raised);border:1px solid var(--border-strong);border-radius:var(--panel-radius);box-shadow:var(--shadow-lg);gap:var(--space-3);height:min(92vh,900px);padding:var(--space-4);flex-direction:column;width:min(96vw,1480px);display:flex}.project-line-modal header,.project-line-modal footer,.project-invoice-modal header{justify-content:space-between;align-items:center;gap:var(--space-2);display:flex}.project-line-modal header p,.project-line-modal header h3,.project-invoice-modal header p,.project-invoice-modal header h3{margin:0}.project-line-modal header p,.project-invoice-modal header p{color:var(--text-muted);font-size:var(--label-font-size);text-transform:uppercase;font-weight:800}.project-invoice-toolbar,.project-invoice-fields,.project-invoice-actions{align-items:end;gap:var(--space-2);flex-wrap:wrap;display:flex}.project-invoice-toolbar label,.project-invoice-fields label{gap:var(--space-1);display:grid}.project-invoice-toolbar span,.project-invoice-fields span{color:var(--text-muted);font-size:var(--label-font-size);font-weight:800}.project-invoice-toolbar input,.project-invoice-toolbar select,.project-invoice-fields input{background:var(--control-bg);border:1px solid var(--control-border);border-radius:var(--control-radius);color:var(--text-strong);font-size:var(--control-font-size);min-height:var(--control-height);padding:0 var(--space-2)}.project-inline-check{align-items:center;gap:var(--space-2);min-height:var(--control-height);display:flex!important}.project-inline-check input{min-height:auto}.project-invoice-summary{background:var(--surface-subtle);border:1px solid var(--border-subtle);border-radius:var(--panel-radius);gap:var(--space-4);padding:var(--space-2) var(--space-3);flex-wrap:wrap;display:flex}.project-invoice-summary span{color:var(--text-muted);font-size:var(--control-font-size)}.project-invoice-summary strong{color:var(--text-strong)}.project-invoice-grid-row{gap:var(--space-3);flex:1;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);min-height:0;display:grid}.project-invoice-ag-grid{height:100%;min-height:360px}.project-line-form{gap:var(--space-2);grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.project-line-form .textarea{grid-column:1/-1}.project-form-row.checkbox{align-items:center;gap:var(--space-2);padding-top:var(--space-4);display:flex}.project-form-row.checkbox input{min-height:auto}.project-line-lock,.project-line-error{color:var(--status-danger-text);font-size:var(--control-font-size);font-weight:800}@media (max-width:1100px){.project-filterbar,.project-tab-grid.two-columns,.project-line-form,.project-economy-summary,.project-invoice-grid-row{grid-template-columns:1fr}}
.project-worksheet{gap:var(--space-4);display:grid}.project-worksheet-picker,.project-worksheet-actions,.project-worksheet-draft{background:var(--surface-panel);border:1px solid var(--border-subtle);border-radius:var(--panel-radius);align-items:end;gap:var(--space-3);padding:var(--space-3);flex-wrap:wrap;display:flex}.project-worksheet-picker label,.project-worksheet-draft label{gap:var(--space-1);display:grid}.project-worksheet-picker span,.project-worksheet-draft span{color:var(--text-muted);font-size:var(--label-font-size);font-weight:800}.project-worksheet-picker input,.project-worksheet-draft input{border:1px solid var(--border-strong);border-radius:var(--control-radius);font-size:var(--control-font-size);height:var(--control-height);padding:0 var(--space-2)}.project-worksheet-picker>span{color:var(--text-secondary);font-size:var(--control-font-size);align-self:center;min-width:min(100%,280px);font-weight:700}.project-worksheet-grid-shell{background:var(--surface-panel);border:1px solid var(--border-subtle);border-radius:var(--panel-radius);min-height:420px;overflow:hidden}.project-worksheet-ag-grid{height:420px;min-height:420px}.project-worksheet-error-row .ag-cell{background:var(--danger-50);color:var(--danger-700)}.project-worksheet-draft{grid-template-columns:repeat(5,minmax(120px,1fr));display:grid}.project-worksheet-draft label:nth-child(6){grid-column:span 2}.project-journal-ag-grid{height:460px;min-height:460px}.project-journal-draft{grid-template-columns:repeat(6,minmax(110px,1fr))}.project-journal-draft label:nth-child(6){grid-column:span 2}.project-journal-draft .project-inline-check{align-items:center;gap:var(--space-2);display:flex}.project-journal-draft .project-inline-check input{height:auto}@media (max-width:900px){.project-worksheet-draft{grid-template-columns:1fr}.project-worksheet-draft label:nth-child(6),.project-journal-draft label:nth-child(6){grid-column:auto}}
.project-analytics{background:var(--surface-raised);border:1px solid var(--border-subtle);border-radius:var(--panel-radius);gap:var(--space-3);min-height:620px;padding:var(--space-3);flex-direction:column;display:flex}.project-analytics-toolbar{align-items:end;gap:var(--space-2);grid-template-columns:repeat(6,minmax(120px,1fr));display:grid}.project-analytics-toolbar.compact{flex-wrap:wrap;display:flex}.project-analytics-toolbar label{gap:var(--space-1);display:grid}.project-analytics-toolbar span{color:var(--text-muted);font-size:var(--label-font-size);font-weight:800}.project-analytics-toolbar input,.project-analytics-toolbar select{background:var(--control-bg);border:1px solid var(--control-border);border-radius:var(--control-radius);color:var(--text-strong);font-size:var(--control-font-size);min-height:var(--control-height);padding:0 var(--space-2)}.project-analytics-check{align-items:center;gap:var(--space-2);min-height:var(--control-height);display:flex!important}.project-analytics-check input{min-height:auto}.project-analytics-grid-shell{flex:1;min-height:0}.project-analytics-ag-grid{height:100%;min-height:360px}.project-analytics-total{font-weight:800}
.project-calculation{grid-template-columns:280px minmax(0,1fr);gap:12px;min-height:560px;display:grid}.project-calculation-sidebar,.project-calculation-detail{border:1px solid var(--shell-panel-border);background:var(--surface-panel-start);box-shadow:var(--shadow-card)}.project-calculation-sidebar{flex-direction:column;min-height:0;display:flex}.project-calculation-sidebar header,.project-calculation-toolbar,.project-calculation-totals{border-bottom:1px solid var(--shell-panel-border);background:linear-gradient(180deg, var(--surface-toolbar-start) 0, var(--surface-toolbar-end) 100%);align-items:center;gap:8px;padding:10px;display:flex}.project-calculation-sidebar h3{font-size:var(--section-heading-size);flex:1;margin:0}.project-calculation-list{flex-direction:column;flex:1;gap:6px;padding:10px;display:flex;overflow:auto}.project-calculation-list button{border:1px solid var(--shell-panel-border);background:var(--surface-panel-start);width:100%;color:var(--gray-900);text-align:left;flex-direction:column;align-items:flex-start;gap:3px;display:flex}.project-calculation-list button.active{border-color:var(--cyan-600);background:var(--cyan-50)}.project-calculation-list span{color:var(--muted-text);font-size:var(--label-font-size)}.project-calculation-create{border-top:1px solid var(--shell-panel-border);gap:8px;padding:10px;display:grid}.project-calculation-create label,.project-calculation-toolbar label{font-size:var(--label-font-size);font-weight:var(--card-field-label-font-weight);gap:3px;display:grid}.project-calculation-create input,.project-calculation-toolbar input{min-height:var(--control-height);font-size:var(--control-font-size)}.project-calculation-detail{flex-direction:column;min-width:0;display:flex}.project-calculation-toolbar{flex-wrap:wrap}.project-calculation-toolbar label{flex:1;min-width:240px}.project-calculation-grid-shell{flex:1;min-height:420px;padding:10px}.project-calculation-ag-grid{height:100%;min-height:400px}.project-calculation-row-actions{align-items:center;gap:5px;height:100%;display:flex}.project-calculation-row-actions button{min-height:24px;font-size:var(--control-font-size);padding:2px 7px}.project-calculation-totals{border-top:1px solid var(--shell-panel-border);color:var(--muted-text);border-bottom:0;justify-content:flex-end}.project-calculation-totals strong{color:var(--gray-900)}@media (max-width:1100px){.project-calculation{grid-template-columns:1fr}}
.project-function-modal{background:var(--surface-raised);border:1px solid var(--border-strong);border-radius:var(--panel-radius);box-shadow:var(--shadow-lg);gap:var(--space-3);max-height:min(92vh,860px);padding:var(--space-4);width:min(96vw,1180px);display:grid;overflow:auto}.project-function-modal.small{width:min(92vw,560px)}.project-function-modal>header{align-items:center;gap:var(--space-3);justify-content:space-between;display:flex}.project-function-modal h3{color:var(--text-strong);font-size:var(--panel-heading-size);margin:0}.project-function-grid{gap:var(--space-2);grid-template-columns:repeat(4,minmax(0,1fr));display:grid}.project-function-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.project-function-grid label{gap:var(--space-1);display:grid}.project-function-grid span{color:var(--text-muted);font-size:var(--label-font-size);font-weight:800}.project-function-grid input,.project-function-grid select{min-height:var(--control-height)}.project-function-grid .project-check{align-items:center;gap:var(--space-2);padding-top:var(--space-4);display:flex}.project-function-grid .project-check input{min-height:auto}@media (max-width:1100px){.project-function-grid,.project-function-grid.compact{grid-template-columns:1fr}}

