@font-face{font-family:'STPFIVazir';src:url('assets/vazirmatn-400.woff2') format('woff2');font-weight:400;font-display:swap}.stpfi-app{--pf-navy:#102742;--pf-blue:#215cbb;--pf-border:#dce4ed;--pf-muted:#64748b;max-width:1440px;margin:0 auto;padding:32px 30px 70px;background:#f4f7fb;color:#182a41;font-family:'STPFIVazir','Vazirmatn',Tahoma,sans-serif;font-size:17px;line-height:1.8;min-height:80vh}.stpfi-app *{box-sizing:border-box}.stpfi-top,.stpfi-heading,.stpfi-document-head,.stpfi-card-title{display:flex;align-items:center;justify-content:space-between;gap:20px}.stpfi-top{padding-bottom:18px;border-bottom:1px solid var(--pf-border);font-size:15px}.stpfi-brand{font-size:23px!important;font-weight:700;color:var(--pf-navy);text-decoration:none}.stpfi-brand span{display:block;font:9px/1.6 Arial,sans-serif;letter-spacing:1.4px;color:var(--pf-muted)}.stpfi-app a{color:var(--pf-blue)}.stpfi-tabs{display:flex;gap:6px;border-bottom:1px solid #dce4ed;padding:12px 0;margin:12px 0 25px;direction:rtl}.stpfi-tabs a{padding:8px 18px;border-radius:8px;text-decoration:none;color:#36516f;font:600 16px/1.7 'Vazirmatn','STPFIVazir',Tahoma,sans-serif}.stpfi-tabs a[aria-current]{background:#e6eefb;color:#174b92}.stpfi-heading{margin:25px 0}.stpfi-heading h1{font-size:31px;margin:3px 0;letter-spacing:-.5px}.stpfi-heading p,.stpfi-document-head p{margin:0;color:var(--pf-muted)}.stpfi-eyebrow{font:10px/1.6 Arial,sans-serif;letter-spacing:2px;color:#6a7e97}.stpfi-app button{font:inherit;border:1px solid var(--pf-border);border-radius:8px;padding:8px 16px;background:#fff;color:var(--pf-navy);cursor:pointer;transition:background .15s}.stpfi-app button:hover{background:#eaf0f8}.stpfi-app button:disabled{opacity:.5;cursor:default}.stpfi-app .stpfi-primary{background:var(--pf-navy);border-color:var(--pf-navy);color:#fff}.stpfi-app .stpfi-primary:hover{background:#1d436b}.stpfi-layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:24px;align-items:start}.stpfi-aside{background:#fff;border:1px solid var(--pf-border);border-radius:12px;padding:20px;position:sticky;top:40px;max-height:85vh;overflow:auto}.stpfi-aside h2{font-size:21px;margin:0 0 15px}.stpfi-app label{display:block;color:#526277;font-size:15px;font-weight:600}.stpfi-app input,.stpfi-app textarea,.stpfi-app select{width:100%;border:1px solid #d8e1eb;border-radius:6px;padding:9px 11px;background:#fff;color:#162b43;font-family:inherit;font-size:16px;font-weight:400;line-height:1.7;margin-top:4px;outline:none;max-width:100%}.stpfi-app input:focus,.stpfi-app textarea:focus,.stpfi-app select:focus{border-color:#5086ce;box-shadow:0 0 0 3px #5086ce15}.stpfi-app textarea{resize:vertical}.stpfi-app fieldset{border:0;padding:0;margin:0;min-width:0}.stpfi-app fieldset:disabled input,.stpfi-app fieldset:disabled textarea{background:#f9fbfd;color:#253c56;opacity:1}.stpfi-app fieldset:disabled .stpfi-icon,.stpfi-app fieldset:disabled .stpfi-product-search,.stpfi-app fieldset:disabled .stpfi-import button{display:none}.stpfi-aside label{margin-bottom:12px}.stpfi-count{font-size:14px;color:var(--pf-muted);margin:18px 0 8px}.stpfi-list-item{display:flex!important;flex-direction:column;align-items:stretch;text-align:right;width:100%;margin:7px 0;padding:14px!important;gap:3px}.stpfi-list-item>span:first-child{font:12px/1.6 Arial,sans-serif;color:#44668d;text-align:right}.stpfi-list-item strong{font-size:17px}.stpfi-list-item small{color:#8090a3;font-size:12px}.stpfi-list-item.selected{border-color:#6c94c5!important;background:#f1f6fe!important}.stpfi-badge{display:inline-flex;font-size:12px;background:#eff3f8;color:#4f637a;padding:3px 9px;border-radius:5px;width:fit-content;white-space:nowrap}.stpfi-badge[data-state=pending]{background:#fff3d9;color:#9a641b}.stpfi-badge[data-state=approved],.stpfi-badge[data-state=issued]{background:#e6f4eb;color:#246246}.stpfi-badge[data-state=void],.stpfi-badge[data-state=rejected]{background:#fbe8e8;color:#a34747}.stpfi-list-empty{padding:25px 5px;color:var(--pf-muted)}#stpfi-pagination{display:flex;align-items:center;justify-content:space-between;font-size:13px;gap:6px;margin-top:15px}#stpfi-pagination button{padding:4px 10px}.stpfi-empty{padding:90px 25px;background:#fff;border:1px dashed #cbd7e7;border-radius:12px;text-align:center;color:var(--pf-muted)}.stpfi-empty h2{color:#243f60;font-size:26px;margin:12px 0}.stpfi-empty p{margin:5px 0}.stpfi-empty-mark{display:grid;place-items:center;margin:0 auto;border:1px solid #dbe6f1;border-radius:16px;width:62px;height:72px;color:#6d8daf;font:30px Arial}.stpfi-small{font-size:13px!important;color:var(--pf-muted)}.stpfi-document-head{padding:18px 0 20px}.stpfi-document-head h2{font:700 25px/1.5 Arial,Tahoma,sans-serif;margin:4px 0}.stpfi-card{background:#fff;border:1px solid var(--pf-border);border-radius:10px;padding:23px 25px;margin:0 0 18px}.stpfi-card-title{margin-bottom:18px;flex-wrap:wrap}.stpfi-card h3{margin:0;font-size:16px;color:#8ca0b8;font-weight:400}.stpfi-card h3 span{color:#203b59;font-size:20px;font-weight:700;margin-right:13px}.stpfi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:15px}.stpfi-import,.stpfi-product-search{display:flex;gap:12px;align-items:end;margin-top:12px}.stpfi-import label{flex:1}.stpfi-import button{white-space:nowrap;align-self:end}.stpfi-product-search{margin:0 0 14px}.stpfi-product-search input{margin:0}.stpfi-product-search button{white-space:nowrap}.stpfi-table-wrap{overflow:auto}.stpfi-items{border-collapse:collapse;width:100%;min-width:620px;font-size:15px}.stpfi-items th{background:#f3f6fa;text-align:right;padding:10px 8px;color:#61758e;font-size:13px;font-weight:600}.stpfi-items td{padding:12px 7px;border-bottom:1px solid #e6edf4;vertical-align:top}.stpfi-items td:first-child{width:30px;color:#8596ac;font-size:13px;padding-top:20px}.stpfi-items th:nth-child(2){min-width:190px}.stpfi-items td:nth-child(3){width:65px}.stpfi-items td:nth-child(4),.stpfi-items td:nth-child(5){min-width:95px;width:115px}.stpfi-items td:nth-child(6){min-width:100px;padding-top:22px}.stpfi-items input,.stpfi-items textarea{padding:6px 7px;font-size:14px}.stpfi-items [data-field=sku]{font:12px/1.8 Arial,sans-serif}.stpfi-items .stpfi-icon{padding:2px 9px;line-height:1.5;font-size:20px;border:0;color:#9d6060}.stpfi-add{margin-top:14px;color:#365a8a!important;border-style:dashed!important}.stpfi-finance{display:grid;grid-template-columns:1fr 290px;gap:28px;border-top:1px solid #e6edf4;margin-top:20px;padding-top:22px}.stpfi-finance-inputs{grid-template-columns:1fr;align-content:start}.stpfi-finance dl{margin:0}.stpfi-finance dl>div{display:flex;justify-content:space-between;gap:10px;padding:5px 0;font-size:15px}.stpfi-finance dd{margin:0;font-weight:600}.stpfi-grand{background:#102742;color:#fff;margin-top:12px;padding:14px!important;border-radius:7px;font-size:17px!important}.stpfi-actions{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.stpfi-app .stpfi-danger{color:#a94d4d;border-color:#e9c9c9}.stpfi-review-note{padding:15px 20px;background:#fff4e6;border:1px solid #f1dabb;border-radius:9px;margin-bottom:15px;white-space:pre-wrap}.stpfi-review-note p{margin:3px 0}.stpfi-error,.stpfi-success{padding:12px 18px;border-radius:8px;margin:12px 0;white-space:pre-wrap}.stpfi-error{color:#944146;background:#fff0f1;border:1px solid #edc9cc}.stpfi-success{color:#246047;background:#eef9f3;border:1px solid #c9e5d6}.stpfi-event{display:flex;flex-direction:column;border-bottom:1px solid #e5ebf1;padding:12px 0;font-size:14px}.stpfi-event span{color:#718296}.stpfi-event p{margin:0}.stpfi-login{max-width:480px;margin:60px auto;padding:30px;background:white;border:1px solid #dbe4ef;border-radius:12px}.stpfi-login input{margin-bottom:15px}#stpfi-product-results{display:grid;gap:6px;margin-bottom:14px}#stpfi-product-results button{display:flex;align-items:center;justify-content:space-between;gap:15px;text-align:right;font-size:14px}#stpfi-product-results button span[dir=ltr]{font:12px Arial}.stpfi-app button:focus-visible{outline:3px solid #689ce0;outline-offset:2px}@media(min-width:1500px){.stpfi-layout{grid-template-columns:310px 1fr}}@media(max-width:1050px){.stpfi-layout{grid-template-columns:240px 1fr}.stpfi-card{padding:20px 15px}.stpfi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stpfi-finance{grid-template-columns:1fr}.stpfi-finance-inputs{grid-template-columns:1fr 1fr}}@media(max-width:760px){.stpfi-app{padding:18px 14px 45px}.stpfi-layout{grid-template-columns:1fr}.stpfi-aside{position:static;max-height:450px}.stpfi-heading,.stpfi-top,.stpfi-document-head{align-items:start;flex-wrap:wrap;gap:10px}.stpfi-heading h1{font-size:26px}.stpfi-grid{grid-template-columns:1fr}.stpfi-finance-inputs{grid-template-columns:1fr}.stpfi-import,.stpfi-product-search{flex-wrap:wrap}.stpfi-card{padding:18px 14px}.stpfi-tabs a{font-size:13px;padding:7px 12px}.stpfi-empty{padding:50px 20px}}

/* Readable controls and visible issue confirmation. */
#stpfi-app [hidden]{display:none!important}
.stpfi-app .stpfi-document-head h2{font-family:inherit;font-size:25px;overflow-wrap:anywhere}
.stpfi-app .stpfi-list-item>span:first-child{font-size:14px}
.stpfi-app .stpfi-list-item small{font-size:13px;color:#536780}
.stpfi-app .stpfi-badge{font-size:13px;line-height:1.8;white-space:normal}
.stpfi-app .stpfi-items input,.stpfi-app .stpfi-items textarea{font-size:16px;min-height:42px}
.stpfi-app .stpfi-items [data-field=sku]{font-size:14px}
.stpfi-app .stpfi-items th{font-size:14px;color:#425a74}
.stpfi-app button{font-size:15px;min-height:42px}
.stpfi-app .stpfi-issue-confirm{border:1px solid #9ac5b0;border-radius:10px;background:#eef9f3;padding:18px;margin-top:20px;color:#203b36;scroll-margin-block:110px}
.stpfi-app .stpfi-issue-confirm p{font-size:15px;line-height:1.9;margin:8px 0 14px}
.stpfi-app .stpfi-issue-confirm>div{display:flex;flex-wrap:wrap;gap:10px}
.stpfi-app #stpfi-action-message{scroll-margin-block:110px;font-size:15px;line-height:1.9}
@media(max-width:760px){.stpfi-tabs a{font-size:14px}.stpfi-app input,.stpfi-app textarea,.stpfi-app select{font-size:16px}.stpfi-app .stpfi-actions button{flex:1 1 160px}.stpfi-app .stpfi-issue-confirm button{flex:1 1 150px}}

#stpc-list .stpc-created{display:block;color:#64748b;font-size:13px;margin-top:4px}

/* Consistent white controls in the proforma dashboard. */
#stpfx-dashboard>.stpfi-actions>button,#stpfx-dashboard>.stpfi-actions>a{display:inline-flex;align-items:center;justify-content:center;font:inherit;line-height:inherit;padding:8px 16px;border:1px solid var(--pf-border);border-radius:8px;background:#fff;color:var(--pf-navy);text-decoration:none;cursor:pointer}
#stpfx-dashboard>.stpfi-actions>button:hover,#stpfx-dashboard>.stpfi-actions>a:hover{background:#fff;color:var(--pf-navy);border-color:#5086ce}
#stpfx-dashboard>.stpfi-actions>a:focus-visible{outline:3px solid #689ce0;outline-offset:2px}

/* Match all customer actions, including the invoice link, to white buttons. */
#stpc-app button,#stpc-app a.stpfi-primary,.stpfi-app #stpc-new{display:inline-flex;align-items:center;justify-content:center;font:inherit;line-height:inherit;padding:8px 16px;border:1px solid var(--pf-border);border-radius:8px;background:#fff;color:var(--pf-navy);text-decoration:none;cursor:pointer}
#stpc-app button:hover,#stpc-app a.stpfi-primary:hover,.stpfi-app #stpc-new:hover{background:#fff;color:var(--pf-navy);border-color:#5086ce}
#stpc-app a.stpfi-primary:focus-visible{outline:3px solid #689ce0;outline-offset:2px}

/* Shared staff navigation, including the Messaging workspace. */
.stpfi-tabs{flex-wrap:wrap;align-items:center}.stpfi-tabs a,.stpfi-tabs a[aria-current]{background:#fff;border:1px solid #dce4ed;color:#215c80}.stpfi-tabs a[aria-current]{border-color:#215c80;box-shadow:inset 0 -2px #215c80}.stpfi-tabs a:hover{background:#fff;border-color:#215c80}.stpfi-tabs a:focus-visible{outline:3px solid #689ce0;outline-offset:2px}#stm-app .stpfi-tabs{margin:12px 0 24px}#stm-app .stm-top>[data-stpfi-logout]{color:#215c80;text-decoration:none;font:inherit}.stpfi-top,.stps-top{flex-wrap:wrap}

/* Separate, paginated invoice list and full-width editor. */
#stpfi-app [hidden]{display:none!important}
#stpfi-app .stpfi-layout{display:block}
.stpfi-page-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.stpfi-page-link{display:inline-flex;align-items:center;justify-content:center;padding:8px 16px;border:1px solid var(--pf-border);border-radius:8px;background:#fff;text-decoration:none;font:inherit}
.stpfi-page-link:focus-visible{outline:3px solid #689ce0;outline-offset:2px}
.stpfi-app[data-screen=list] .stpfi-aside{position:static;max-height:none;overflow:visible;width:100%;padding:24px}
.stpfi-app[data-screen=list] #stpfi-filter{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 20px;align-items:start}
.stpfi-app[data-screen=list] #stpfi-filter label{margin:0}
.stpfi-app[data-screen=list] #stpfi-filter .stpfi-small,.stpfi-app[data-screen=list] #stpfi-filter-customer-results{grid-column:1/-1}
.stpfi-app[data-screen=list] #stpfi-filter-customer-results:empty{display:none}
.stpfi-app[data-screen=list] #stpfi-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.stpfi-app[data-screen=list] #stpfi-list .stpfi-list-item{margin:0;min-width:0;overflow-wrap:anywhere;height:100%}
.stpfi-app[data-screen=list] #stpfi-pagination{justify-content:center;gap:20px;padding-top:12px}
@media(max-width:1000px){.stpfi-app[data-screen=list] #stpfi-filter,.stpfi-app[data-screen=list] #stpfi-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.stpfi-app[data-screen=list] .stpfi-aside{padding:16px}.stpfi-app[data-screen=list] #stpfi-filter,.stpfi-app[data-screen=list] #stpfi-list{grid-template-columns:minmax(0,1fr)}.stpfi-page-actions{width:100%}.stpfi-page-actions>*{flex:1;text-align:center}}

/* Keep the government-customer checkbox out of full-width text-input rules. */
#stpfi-app .stpfi-government-choice{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:start;gap:12px;direction:rtl;text-align:right;padding:15px 16px;margin:0 0 18px;background:#f6f9fd;border:1px solid var(--pf-border);border-radius:10px;cursor:pointer}
#stpfi-app .stpfi-government-choice input[type=checkbox]{display:block;position:static;appearance:auto;inline-size:20px!important;width:20px!important;min-width:20px;max-width:20px;block-size:20px;height:20px;margin:4px 0 0!important;padding:0;box-shadow:none;accent-color:var(--pf-blue);cursor:pointer}
#stpfi-app .stpfi-government-copy{display:block;min-width:0}
#stpfi-app .stpfi-government-copy strong{display:block;font-size:16px;font-weight:700;color:var(--pf-navy);line-height:1.8}
#stpfi-app .stpfi-government-copy small{display:block;margin-top:4px;font-size:13px;font-weight:400;line-height:1.9;color:#526277}
#stpfi-app .stpfi-government-choice:focus-within{outline:2px solid #689ce0;outline-offset:2px}
@media(max-width:600px){#stpfi-app .stpfi-government-choice{padding:12px;gap:10px}}

/* Today's own documents on the editor; the full archive keeps its separate screen. */
.stpfi-app[data-screen=editor] .stpfi-aside{position:static;max-height:none;overflow:visible;margin-bottom:24px;padding:22px}
.stpfi-app[data-screen=editor] #stpfi-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.stpfi-app[data-screen=editor] #stpfi-list .stpfi-list-item{margin:0;min-width:0;height:100%;overflow-wrap:anywhere}
.stpfi-app[data-screen=editor] .stpfi-list-empty{grid-column:1/-1}
@media(max-width:1000px){.stpfi-app[data-screen=editor] #stpfi-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.stpfi-app[data-screen=editor] #stpfi-list{grid-template-columns:minmax(0,1fr)}.stpfi-app[data-screen=editor] .stpfi-aside{padding:16px}}

/* Local editor conveniences: no additional asset or background requests. */
#stpfi-app .stpfi-row-tool{display:block;font-size:12px;padding:3px 8px;margin:4px 0;background:#fff}
#stpfi-app fieldset:disabled .stpfi-row-tool{display:none}
#stpfi-app .stpfi-ux-tools{margin:18px 0;border:1px solid var(--pf-border);border-radius:8px;padding:12px 16px}
#stpfi-app .stpfi-field-error{display:block;color:#9f2630;font-size:13px;line-height:1.7;margin-top:4px}
#stpfi-app [aria-invalid=true]{border-color:#ba3e4b;outline:1px solid #ba3e4b}
#stpfi-app .stpfi-quickbar{position:sticky;bottom:8px;z-index:15;align-items:center;justify-content:space-between;background:#fff;border:1px solid var(--pf-border);box-shadow:0 -4px 16px #10274212;border-radius:10px;padding:12px;margin-top:20px}
#stpfi-app .stpfi-review-warning{border:1px solid #d8b96e;background:#fff9eb;color:#75501a;padding:12px;border-radius:8px}
#stpfi-app .stpfi-review-dialog{max-width:650px;width:calc(100% - 32px);max-height:85vh;overflow:auto;border:1px solid #dce4ed;border-radius:12px;padding:24px;font:inherit;color:#182a41;background:#fff}
#stpfi-app .stpfi-review-dialog::backdrop{background:#10274277}
#stpfi-app .stpfi-review-dialog[open]{position:fixed;inset:0;margin:auto;z-index:1000}
#stpfi-app .stpfi-review-dialog dl{display:grid;grid-template-columns:120px 1fr;gap:8px}#stpfi-app .stpfi-review-dialog dd{margin:0;overflow-wrap:anywhere}.stpfi-note-preview{white-space:pre-wrap}
@media(max-width:600px){#stpfi-app .stpfi-quickbar{bottom:5px;gap:8px;padding:10px}#stpfi-app .stpfi-quickbar strong{width:100%}#stpfi-app .stpfi-review-dialog dl{grid-template-columns:90px minmax(0,1fr)}}
@media print{#stpfi-app .stpfi-quickbar,#stpfi-app .stpfi-ux-tools{display:none!important}}

#stpfi-app .stpfi-quickfilters button[aria-pressed=true]{background:#fff;border-color:#215c80;box-shadow:inset 0 -2px #215c80}

/* Workflow helpers are local to the proforma editor. */
#stpfi-save-state{font-weight:700;padding:.6em;border:1px solid #d5deea;border-radius:6px}
#stpfi-save-state[data-state=dirty],#stpfi-save-state[data-state=error]{color:#8b3c18;background:#fff8ed}
#stpfi-save-state[data-state=saved]{color:#17634b;background:#eff9f4}
.stpfi-workflow small{display:block}.stpfi-workflow [disabled]{opacity:.65;cursor:default}
.stpfi-row-search{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:14px;border:1px solid #d5deea;border-radius:8px;margin:12px 0}
.stpfi-row-search label{flex:1;min-width:180px}.stpfi-row-search input{display:block;width:100%}
#stpfi-rows tr.stpfi-row-match td{background:#fff7d6;box-shadow:inset 0 2px #e5be48}
#stpfi-workflow-output td{white-space:pre-wrap;overflow-wrap:anywhere}

/* Customer directory uses the page scroll and leaves the editor below the results. */
.stpc-directory { background: #fff; border: 1px solid #dbe4ef; border-radius: 12px; padding: clamp(14px, 3vw, 28px); }
#stpc-filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; align-items: end; }
#stpc-filter button { justify-self: start; }
#stpc-list > p { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 10px 0; border-bottom: 1px solid #e5ebf1; }
#stpc-list button { text-align: start; max-width: 100%; }
#stpc-pages { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
#stpc-editor:not([hidden]) { margin-top: 24px; padding: clamp(14px, 3vw, 28px); background: #fff; border: 1px solid #dbe4ef; border-radius: 12px; scroll-margin-top: 20px; }

/* Components describe each device. The invoice amount belongs to the main row. */
.stpfi-components{margin-top:.5rem}
.stpfi-components summary{cursor:pointer}
.stpfi-component{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.4rem;margin:.55rem 0;padding:.5rem;border:1px solid #cbd8e5;border-radius:.35rem}
.stpfi-component label:nth-child(2){grid-column:1/-1}
.stpfi-component input{min-width:0;width:100%}
.stpfi-component button{justify-self:start}

/* 1.34.14: consistent type and a responsive internal purchase workspace. */
#stpfi-app{font-family:'STPFIVazir',Tahoma,sans-serif;font-size:16px;line-height:1.9;padding:24px clamp(14px,2.5vw,32px) 70px;--pf-muted:#52657b}
#stpfi-app :is(button,input,textarea,select),#stpfi-app .stpfi-tabs a{font-family:inherit}
#stpfi-app :is(h1,h2,h3,h4){font-family:inherit;line-height:1.6;overflow-wrap:anywhere}
#stpfi-app .stpfi-heading h1{font-size:clamp(23px,2.4vw,30px)}
#stpfi-app .stpfi-document-head h2{font-family:inherit;font-size:24px}
#stpfi-app .stpfi-card{padding:clamp(16px,2vw,26px);border-radius:14px;margin-bottom:20px;min-width:0}
#stpfi-app .stpfi-card h3{font-size:19px;color:var(--pf-navy);font-weight:700}
#stpfi-app .stpfi-card-title h3{font-size:14px;color:#52657b}
#stpfi-app .stpfi-card-title h3 span{font-size:20px;color:var(--pf-navy)}
#stpfi-app .stpfi-card h4{font-size:16px;color:var(--pf-navy);margin:24px 0 8px}
#stpfi-app label{font-size:14px;line-height:1.9;color:#334c65;font-weight:600;min-width:0}
#stpfi-app :is(input,select,textarea){font-size:16px;border-radius:9px;min-width:0;line-height:1.7}
#stpfi-app :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select){min-height:46px}
#stpfi-app textarea{min-height:84px}
#stpfi-app button,#stpfi-app .stpfi-page-link{font-size:15px;line-height:1.65;min-height:44px;padding:9px 16px;white-space:normal;overflow-wrap:anywhere}
#stpfi-app :is(button,a,summary):focus-visible{outline:3px solid #215cbb;outline-offset:3px}
#stpfi-app button:disabled{opacity:.65}
#stpfi-app .stpfi-small{color:#52657b;font-size:13px!important;line-height:1.95}
#stpfi-app :is([data-field=unit_price],[data-field=qty],[data-field=discount],[data-purchase=amount],[data-expense=amount],[name=shipping],[name=tax_rate]){direction:ltr;text-align:right;font-variant-numeric:tabular-nums}
#stpfi-app [data-field=sku]{direction:ltr;text-align:left;font-family:'STPFIVazir',Tahoma,sans-serif;font-size:14px}
#stpfi-app :is(.stpfi-grid,.stpfi-finance,.stpfi-heading,.stpfi-document-head,.stpfi-tabs,.stpfi-actions)>*{min-width:0}
#stpfi-app .stpfi-tabs{gap:8px;align-items:stretch}
#stpfi-app .stpfi-tabs a{font-size:15px;line-height:1.75;display:flex;align-items:center;justify-content:center;text-align:center}
#stpfx-dashboard{display:flex;flex-wrap:wrap;align-items:stretch;gap:8px;margin-bottom:24px}
#stpfx-dashboard>.stpfi-actions{flex-basis:100%;margin:0;gap:8px}
#stpfx-dashboard>section{flex-basis:100%;margin:8px 0 0}
#stpfi-app .stppm-required,#stpfi-app .stppm-optional{display:inline-flex;align-items:center;padding:3px 10px;border-radius:6px;font-size:12px;line-height:1.8;white-space:nowrap}
#stpfi-app .stppm-required{color:#814d08;background:#fff5dc}
#stpfi-app .stppm-optional{color:#315b77;background:#edf4fa}
#stpfi-app .stppm-management-note{border-inline-start:3px solid #497ca6}
#stpfi-app .stppm-management-note textarea{min-height:120px}
#stpfi-app .stppm-purchase-panel>summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;color:var(--pf-navy);font-weight:700;font-size:18px;min-height:44px}
#stpfi-app .stppm-purchase-panel>summary::-webkit-details-marker{display:none}
#stpfi-app .stppm-purchase-panel>summary::before{content:'＋';font-size:22px;font-weight:400;color:#416e92}
#stpfi-app .stppm-purchase-panel[open]>summary::before{content:'−'}
#stpfi-app .stppm-purchase-panel>summary .stppm-optional{margin-inline-start:auto}
#stpfi-app .stppm-panel-body{border-top:1px solid var(--pf-border);padding-top:16px;margin-top:12px}
#stpfi-app .stppm-cost-state{max-width:440px;margin-top:16px}
#stpfi-app #stppm-status-help{margin:8px 0 20px;max-width:70ch}
#stpfi-app :is([data-purchase-row],[data-expense-row]){padding:18px;margin:12px 0;border:1px solid #d8e3ef;border-radius:12px;background:#f8fafc;gap:14px;align-items:end;grid-template-columns:repeat(2,minmax(0,1fr))}
#stpfi-app [data-purchase-row]>label:first-child{grid-column:1/-1}
#stpfi-app :is([data-purchase-remove],[data-expense-remove]){justify-self:start;align-self:end;color:#9b3440;border-color:#e2bfc4;background:#fff}
#stpfi-app [data-expense-row]{grid-template-columns:minmax(110px,.6fr) minmax(0,1.5fr) minmax(150px,1fr) auto}
#stpfi-app :is([data-purchase-add],[data-expense-add]){border-style:dashed;border-color:#8ba9c4;color:#245574;margin-top:4px}
#stpfi-app .stppm-profit{border-top:1px solid var(--pf-border);margin-top:20px;padding-top:20px}
#stpfi-app .stppm-profit-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:16px}
#stpfi-app .stppm-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
#stpfi-app .stppm-metrics>div{min-width:0;padding:14px 16px;background:#f5f8fc;border:1px solid #e0e8f1;border-radius:10px}
#stpfi-app .stppm-metrics dt{font-size:13px;color:#52657b;margin-bottom:6px}
#stpfi-app .stppm-metrics dd{margin:0;font-weight:700;font-size:20px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
#stpfi-app .stppm-metrics dd small{font-size:12px;font-weight:400}
#stpfi-app .stppm-metrics .stppm-metric-main{background:#edf6fa;border-color:#bed8e6}
#stpfi-app .stppm-alerts{margin:16px 0 0;padding:12px 30px 12px 16px;background:#fff8e8;border:1px solid #e9d8ac;border-radius:10px;font-size:14px;color:#77531a}
#stpfi-app .stppm-readonly{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#stpfi-app .stppm-readonly article{border:1px solid var(--pf-border);border-radius:10px;padding:16px;min-width:0;overflow-wrap:anywhere}
#stpfi-app .stppm-readonly article h4{margin:0 0 6px}
#stpfi-app .stppm-readonly article p{margin:4px 0}
#stpfi-app .stpfi-items td{vertical-align:top}
#stpfi-app .stpfi-items [data-field=supply_status]{font-size:14px;margin-bottom:8px}
#stpfi-app .stpfi-items td:last-child button{min-height:36px}
@media(max-width:1000px){#stpfi-app [data-expense-row]{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 #stpfi-app .stpfi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #stpfi-app .stpfi-items{min-width:0;width:100%;border-collapse:separate}
 #stpfi-app .stpfi-items thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 #stpfi-app #stpfi-rows{display:grid;gap:16px}
 #stpfi-app #stpfi-rows>tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:1px solid var(--pf-border);border-radius:12px;padding:14px;background:#fbfcfe}
 #stpfi-app .stpfi-items td{display:block;width:auto!important;min-width:0!important;padding:0;border:0;color:var(--pf-navy)}
 #stpfi-app .stpfi-items td::before{content:attr(data-label);display:block;color:#52657b;font-size:13px;font-weight:600;margin-bottom:4px}
 #stpfi-app .stpfi-items td:nth-child(1),#stpfi-app .stpfi-items td:nth-child(2),#stpfi-app .stpfi-items td:nth-child(6),#stpfi-app .stpfi-items td:nth-child(7){grid-column:1/-1}
 #stpfi-app .stpfi-items td:nth-child(1){display:flex;gap:8px;align-items:center;font-weight:700;font-size:15px}
 #stpfi-app .stpfi-items td:nth-child(6){padding-top:10px;border-top:1px solid var(--pf-border);font-size:19px;font-weight:700}
 #stpfi-app .stpfi-items td:last-child{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
 #stpfi-app .stpfi-items td:last-child::before{display:none}
 #stpfi-app .stpfi-row-tool{display:inline-flex;margin:0}
 #stpfi-app .stpfi-finance{grid-template-columns:minmax(0,1fr);gap:16px}
}
@media(max-width:600px){
 #stpfi-app{padding:16px 12px 60px;font-size:15px}
 #stpfi-app :is(.stpfi-heading,.stpfi-document-head){align-items:flex-start;flex-direction:column;gap:12px}
 #stpfi-app .stpfi-grid,#stpfi-app :is([data-purchase-row],[data-expense-row]),#stpfi-app .stppm-metrics,#stpfi-app .stppm-readonly{grid-template-columns:minmax(0,1fr)}
 #stpfi-app .stpfi-tabs a{flex:1 1 calc(50% - 8px);padding:9px 10px;font-size:14px}
 #stpfi-app :is(.stpfi-product-search,.stpfi-import){flex-direction:column;align-items:stretch}
 #stpfi-app .stpfi-import :is(label,button),#stpfi-app .stpfi-product-search button{width:100%;align-self:stretch;white-space:normal}
 #stpfi-app .stpfi-actions{gap:8px}
 #stpfi-app .stpfi-actions>button{flex:1 1 150px}
 #stpfi-app .stppm-purchase-panel>summary{font-size:16px;gap:8px}
 #stpfi-app :is([data-purchase-row],[data-expense-row]){padding:14px}
 #stpfi-app .stpfi-quickbar{position:static;box-shadow:none}
 #stpfi-app .stpfi-items :is(input,textarea,select){font-size:16px}
}
@media(prefers-reduced-motion:reduce){#stpfi-app *{scroll-behavior:auto!important;transition:none!important}}

/* Attachments remain visible to experts, outside the document's disabled fieldset. */
#stpfi-app .stpfe-evidence{border-inline-start:3px solid #497ca6;scroll-margin-top:24px}
#stpfi-app .stpfe-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:16px}
#stpfi-app .stpfe-evidence input[type=file]{height:auto;padding:12px;white-space:normal;overflow:hidden}
#stpfi-app .stpfe-file-row{border-top:1px solid var(--pf-border);padding:14px 0;overflow-wrap:anywhere}
#stpfi-app .stpfe-file-row span{display:block;font-size:13px;color:var(--pf-muted);margin-top:6px}
#stpfi-app .stpfe-file-row p{margin:6px 0;font-size:14px;white-space:pre-wrap}
@media(max-width:600px){#stpfi-app .stpfe-grid{grid-template-columns:minmax(0,1fr)}}

/* 1.34.16: reserve enough room for the full grouped unit price. */
@media(min-width:761px){
 #stpfi-app .stpfi-items th:nth-child(4),#stpfi-app .stpfi-items td:nth-child(4){width:240px;min-width:240px}
}
#stpfi-app .stpfi-items input[data-field=unit_price]{width:100%;min-width:0;min-height:52px;padding:10px 12px;font-size:18px;line-height:1.6;direction:ltr;text-align:right;font-variant-numeric:tabular-nums;letter-spacing:normal}
@media(max-width:760px){
 #stpfi-app #stpfi-rows>tr>td:nth-child(4){grid-column:1/-1}
}

/* 1.34.17: purchase quantity and the cost allocated to this document. */
#stpfi-app [data-purchase=unit_price],#stpfi-app [data-purchase=qty],#stpfi-app [data-purchase=allocated_qty]{direction:ltr;text-align:right;font-variant-numeric:tabular-nums}
#stpfi-app .stppm-purchase-line-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;grid-column:1/-1;margin:4px 0}
#stpfi-app .stppm-purchase-line-totals>div{padding:12px;border:1px solid #d7e3ed;border-radius:8px;background:#fff;min-width:0}
#stpfi-app .stppm-purchase-line-totals dt{font-size:13px;color:#52657b}
#stpfi-app .stppm-purchase-line-totals dd{margin:6px 0 0;font-size:17px;font-weight:700;overflow-wrap:anywhere}
#stpfi-app .stppm-purchase-help{grid-column:1/-1;margin:4px 0}
@media(max-width:600px){#stpfi-app .stppm-purchase-line-totals{grid-template-columns:minmax(0,1fr)}}

#stpfx-signature-canvas{display:block;width:min(100%,900px);height:auto;aspect-ratio:15/4;border:1px solid #cbd9e5;border-radius:12px;background:#fff;touch-action:none;cursor:crosshair}.manager-signature-mark{display:inline-block;width:34mm;height:17mm;object-fit:contain;vertical-align:middle;margin:0 2mm}.seller-seal .manager-signature-mark+small{display:inline-block;vertical-align:middle;max-width:34mm}

.seller-seal .seller-stamp{display:inline-block;width:36mm;vertical-align:middle;margin:0 1mm}.seller-seal .manager-signature-mark{width:32mm;vertical-align:middle}
