:root{--nav:#112b53}button.primary{background:#1b3d70;border-color:#1b3d70}button.primary:hover{background:#13315d}header>span{line-height:1.6}.ref-x{border:0;background:none;font-size:25px;color:#8a96a6;padding:4px 10px}.ref-editor-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.ref-editor-head small{color:#7c8a9d}.ref-editor-head h1{margin-top:5px}.work-editor{inset:0;margin:0;width:100vw;max-width:none;height:100vh;max-height:100vh;border-radius:0;padding:30px;background:#f7f9fc;overflow-y:auto}.work-editor>form{max-width:1600px;margin:auto}.work-editor>.ref-editor-head{max-width:1600px;margin:0 auto 28px}.work-editor .panel{margin-bottom:26px;padding:28px 30px}.work-editor .field,.item-editor .field,.receipt-editor .field,.ref-layer .field{font-size:15px;gap:8px;margin-bottom:18px}.work-editor input,.work-editor select,.item-editor input,.item-editor select,.receipt-editor input,.receipt-editor select,.ref-layer input,.ref-layer select{min-height:49px;width:100%;font-size:15px}.work-editor textarea,.item-editor textarea,.receipt-editor textarea,.ref-layer textarea{width:100%;font-size:15px;line-height:1.7}.work-editor .ss-control,.item-editor .ss-control,.receipt-editor .ss-control,.ref-layer .ss-control{width:100%;min-width:0}.work-editor .ss-input,.item-editor .ss-input,.receipt-editor .ss-input,.ref-layer .ss-input{width:100%}.ref-purchase-head{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(220px,1.5fr) minmax(140px,.8fr) minmax(160px,.9fr) minmax(230px,2fr);gap:20px;align-items:start}.ref-supplier-cell{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.ref-supplier-cell>button{align-self:start;margin-top:27px;height:49px}.ref-purchase-line{display:grid;grid-template-columns:130px 80px minmax(250px,2fr) minmax(180px,1.3fr) 85px 135px 95px 35px;gap:12px;align-items:start;padding:14px 10px;background:#f8fafc;border-radius:8px;margin-bottom:15px}.ref-purchase-line .field{margin:0;font-size:12px}.ref-purchase-line>button{margin-top:27px;padding:9px;color:#d33449;border:0;background:transparent;font-size:18px}.ref-purchase-line output{display:block;padding:15px 0;font-variant-numeric:tabular-nums}.ref-purchase-line .ref-text-button{font-size:11px;margin-top:5px;padding:2px 0}.ref-items-card{overflow:visible}.ref-totals{width:320px;max-width:100%;margin:25px 0 0 auto}.ref-totals>div{display:grid;grid-template-columns:1fr 150px;gap:20px;align-items:center;min-height:56px}.ref-totals output{text-align:right;font-variant-numeric:tabular-nums}.ref-totals input{text-align:right;width:100%}.ref-net{border-top:1px solid #dde4ed;font-size:17px}.ref-net output{color:#138755;font-weight:700}.ref-attachments .panelhead{gap:20px;align-items:center}.ref-attachments h2{margin-bottom:4px}.ref-attachments p{margin:0}.ref-file-button{display:inline-flex;position:relative;align-items:center;flex-shrink:0;padding:12px 18px;border:1px solid #cfd8e5;border-radius:6px;cursor:pointer;background:white;font-size:14px}.ref-file-button input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}.ref-files-empty{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:9px}.ref-files-empty>span{font-size:35px;color:#99aac0;background:#f1f5f9;border-radius:50%;padding:7px 20px}.ref-files-empty>strong{font-size:16px}.ref-files-empty p{max-width:420px}.ref-file-list{list-style:none;padding:20px 0;margin:0;line-height:2.4}.ref-file-list small{color:#8391a5}.ref-form-footer{display:flex;gap:14px;align-items:center;margin-top:25px}.ref-form-footer button{font-size:15px;min-height:46px;font-weight:500}.ref-sticky-footer{position:sticky;bottom:-30px;background:#f7f9fced;backdrop-filter:blur(8px);padding:14px 0;z-index:2}.ref-expense-form{max-width:850px!important}.ref-expense-top{display:grid;grid-template-columns:200px 300px;gap:20px}.ref-expense-form>section>label{margin-top:20px}.ref-expense-form .ref-attachments{border-top:1px solid #e2e8f0}.ref-expense-form .ref-totals{margin-bottom:25px}.item-editor{width:min(740px,96vw);max-height:95vh;padding:26px 25px}.item-editor h1{font-size:21px;letter-spacing:0}.ref-item-meta{display:grid;grid-template-columns:200px 180px;gap:20px}.ref-item-meta small,.ref-help,.ref-tiny small{font-size:12px;color:#7687a0;line-height:1.6}.ref-item-meta input[readonly]{background:#f8fafc}.ref-narrow{max-width:300px;margin:20px 0}.ref-tiny{max-width:150px;margin:20px 0}.ref-check{display:flex;gap:12px;align-items:center;margin:20px 0;font-size:14px}.ref-check input{width:16px!important;min-height:16px!important;height:16px}.ref-item-state{display:flex;gap:14px;align-items:center;flex-wrap:wrap;border-top:1px solid #e2e8f0;padding-top:18px}.ref-item-state small{width:100%;color:#7c8ca0}.ref-text-button{border:0;background:none;color:#1b558f;padding:3px 0;font-size:12px;margin:0 0 15px;text-align:left}.ref-layer{width:min(740px,96vw);max-height:90vh;overflow:auto}.ref-dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.ref-dialog-head h2{margin:0}.ref-category-list{margin-top:25px;max-height:280px;overflow:auto}.receipt-editor{width:min(720px,95vw);max-height:95vh;padding:30px}.receipt-editor h1{font-size:23px}.receipt-editor textarea{min-height:80px}.ref-payment-filters{display:grid;grid-template-columns:minmax(240px,1.6fr) repeat(5,minmax(140px,1fr));gap:15px;align-items:end;margin:25px 0}.ref-payment-filters .field{font-size:11px}.ref-payment-filters>input{min-height:45px}.ref-payment-filters>button{grid-column:6;justify-self:end}.ref-payment-table{padding:0;overflow:hidden}.ref-payment-table table{font-size:14px;min-width:1150px}.ref-payment-table th{font-size:11px}.ref-payment-table td{padding:17px 16px}.ref-payment-table th button{padding:0 2px;border:0;background:none;font-size:12px}.ref-item-detail-actions{display:flex;gap:10px;justify-content:flex-end;margin:-10px 0 25px}.ref-info-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.ref-info-row small{display:block;color:#7f8ea3;font-size:13px;margin-bottom:8px}.ref-info-row strong{font-size:17px;display:block;font-weight:500}.ref-stock-summary{grid-template-columns:repeat(5,minmax(0,1fr));border-top:1px solid #e0e7ef;margin-top:30px;padding-top:25px}.ref-stock-summary strong{font-weight:600}.ref-stock-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,550px),1fr));gap:30px}.ref-stock-history{padding:0;max-width:none;min-width:0}.ref-stock-history .tablewrap{background:white;border:1px solid #e0e7ef;border-radius:9px}.ref-stock-history table{font-size:14px}.ref-stock-history td{padding:20px 16px}.ref-stock-history h2{font-size:20px}aside nav .nav-count{margin-left:auto;background:#db4c55;color:#fff;padding:2px 6px;border-radius:15px;font-size:10px}.ref-item-summary>p{padding-top:20px;border-top:1px solid #e0e7ef;margin-bottom:0}
@media(max-width:1400px){.ref-purchase-head{grid-template-columns:repeat(3,minmax(0,1fr))}.ref-purchase-line{grid-template-columns:130px 70px minmax(220px,2fr) minmax(160px,1.2fr) 75px 120px 80px 30px}.ref-items-card{overflow-x:auto}.ref-payment-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.ref-payment-filters>button{grid-column:3}.ref-purchase-line{min-width:1050px}}
@media(max-width:800px){.work-editor{padding:20px}.work-editor .panel{padding:20px}.ref-purchase-head,.ref-info-row{grid-template-columns:repeat(2,minmax(0,1fr))}.ref-stock-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.ref-expense-top{grid-template-columns:1fr 1fr}.ref-sticky-footer{bottom:-20px}.ref-payment-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.ref-payment-filters>button{grid-column:2}}
@media(max-width:500px){.ref-purchase-head,.ref-expense-top,.ref-item-meta,.ref-payment-filters{grid-template-columns:1fr}.ref-item-meta .field,.ref-narrow{max-width:none}.ref-attachments .panelhead{align-items:flex-start;flex-direction:column}.ref-info-row{grid-template-columns:1fr 1fr}.ref-form-footer button{flex:1}.item-editor,.receipt-editor,.ref-layer{padding:20px}.ref-payment-filters>button{grid-column:1}.ref-totals{width:100%}.ref-totals>div{grid-template-columns:1fr 130px}}
.work-editor .field,.item-editor .field,.receipt-editor .field,.ref-layer .field{align-content:start}.ref-item-meta{align-items:start}.ref-info-row strong.tag{display:inline-block;width:fit-content}

.attachment-widget .ref-file-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e2e8f0;padding:7px 0}.attachment-widget .ref-file-list small,.saved-attachment-list small{display:block;color:#7687a0;line-height:1.5}.attachment-widget .ref-file-list button{padding:4px 9px;min-height:30px;width:auto}.attachment-empty{padding:30px 0;color:#8290a4;text-align:center}.attachment-widget input[type=file]{min-height:0}.saved-attachment-list a{overflow-wrap:anywhere}



.user-approval-fields{border:1px solid #dce4ee;border-radius:8px;margin:20px 0;padding:18px}.user-approval-fields legend{font-weight:600;color:#294f7d;padding:0 7px}.user-approval-choices{display:flex;gap:18px 30px;flex-wrap:wrap}.user-approval-choices label{display:flex;align-items:center;gap:9px;font-size:14px}.user-approval-fields p,.user-approval-help{font-size:12px;color:#72839a;line-height:1.7}.user-approval-tick{text-align:center}.user-approval-tick input{width:19px;height:19px;cursor:pointer}.user-approval-actions{min-width:165px}.user-approval-actions button{margin:3px}.user-approval-unsaved{background:#fffbed}.user-approval-actions button:disabled{color:#8c9aab;background:#f7f9fb;cursor:default}
.user-approvals-panel td:first-child{min-width:205px}.user-approvals-panel td:first-child small{overflow-wrap:anywhere;max-width:250px}.user-approvals-panel .tag{white-space:nowrap}.user-approvals-panel td:nth-child(2){min-width:100px}
.year-checkbox-fields{border:1px solid #dce4ee;border-radius:8px;margin:20px 0;padding:18px}.year-checkbox-fields legend{font-weight:600;padding:0 7px}.year-all-choice,.year-checkbox-choices label,.user-activate-choice{display:flex;align-items:center;gap:9px;font-size:14px}.year-all-choice{font-weight:600;margin-bottom:15px}.year-checkbox-choices{display:flex;gap:12px;flex-wrap:wrap}.year-checkbox-choices label{padding:10px 15px;border:1px solid #dce4ee;background:#f7f9fc;border-radius:7px;min-width:92px}.year-checkbox-fields input[type=checkbox],.user-activate-choice input[type=checkbox]{width:18px;height:18px;flex:none;margin:0}.year-checkbox-fields p{font-size:12px;color:#72839a;margin:14px 0 0;line-height:1.6}.year-checkbox-choices input:disabled{opacity:.65}.user-activate-choice{margin:15px 0}

.password-control{position:relative;display:block;min-width:0;width:100%}.password-control input{width:100%;padding-right:48px}.password-control input::-ms-reveal,.password-control input::-ms-clear{display:none}.password-control .password-visibility{position:absolute;right:3px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:40px;height:40px;min-height:0;padding:8px;margin:0;border:0;background:transparent;border-radius:6px;color:#64748b;cursor:pointer}.password-control .password-visibility:hover{background:#eef3f9;color:#183d6e}.password-control .password-visibility:focus-visible{outline:2px solid #167caa;outline-offset:-2px}.password-visibility svg{display:block;width:21px;height:21px;pointer-events:none}

.workspace-review-picker{display:flex;align-items:center;gap:8px;color:#52708e;font-size:12px}.workspace-review-picker select{max-width:210px}.workspace-review-picker .ss-control{width:210px}.workspace-review-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 28px;background:#fff5dc;border-bottom:1px solid #ebd8a2;color:#644c11}.workspace-review-banner strong,.workspace-review-banner span{display:block}.workspace-review-banner span{font-size:12px;margin-top:4px}.workspace-review-banner button{background:#fff9ec;border:1px solid #dbc68e;color:#644c11;white-space:nowrap}@media(max-width:760px){.workspace-review-picker{width:100%;justify-content:space-between}.workspace-review-picker .ss-control{flex:1;max-width:230px}.workspace-review-banner{padding:12px 16px;align-items:start;flex-direction:column}}

.spending-category-tabs,.spending-subcategory-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.spending-category-tabs button,.spending-subcategory-tabs button{display:flex;align-items:center;gap:9px;padding:10px 14px;border:1px solid #dbe4ee;background:white;border-radius:7px;white-space:nowrap;color:#35516d}.spending-category-tabs button.selected{background:#087f78;border-color:#087f78;color:#fff}.spending-subcategory-tabs button.selected{background:#e6f3f1;border-color:#80bdb7;color:#07655f}.spending-category-tabs button span,.spending-subcategory-tabs button span{font-size:11px;line-height:20px;min-width:22px;text-align:center;border-radius:10px;background:#eaf0f5;color:#35516d}.spending-category-tabs button.selected span{background:#ffffff30;color:white}.spending-subcategory-tabs{padding:0 0 14px;border-bottom:1px solid #dbe4ee}.spending-filters{display:flex;flex-wrap:wrap;gap:14px;align-items:end;margin:16px 0}.spending-filters .field{flex:1;min-width:160px}.spending-filters .field:first-child{flex:2}.expense-category-nav .expense-category>nav{margin-left:12px;border-left:1px solid #36566a;padding-left:6px}.expense-category>summary{display:flex;align-items:center;justify-content:space-between}

.approval-action-buttons{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px;margin:4px 0}.approval-action-buttons button{padding:6px 10px;font-size:12px;min-height:32px;white-space:nowrap}.approval-action-buttons button:disabled{cursor:default;opacity:.55}.tablewrap td:has(>[data-approval-actions]){position:sticky;right:0;z-index:1;background:#fff;min-width:235px;max-width:300px;box-shadow:-3px 0 5px #1836500a}.tablewrap table:has([data-approval-actions]) th:last-child{position:sticky;right:0;z-index:2;background:#f5f8fb}

@media(max-width:760px){.spending-category-tabs,.spending-subcategory-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px}}
[data-purchase-return-form] td{vertical-align:top}[data-purchase-return-form] td:nth-child(3){min-width:110px}[data-purchase-return-form] [data-return-serial]{width:auto}[data-purchase-return-form] td:nth-child(4){min-width:180px}[data-purchase-return-form] td small{display:block;margin-top:6px;color:#71829b}[data-purchase-return-form] .totals{margin:18px 0;text-align:right}.inline-customer-dialog{width:min(560px,94vw)}
