.workspace-mode>header,.workspace-mode>main,.workspace-mode>footer{display:none}.office-head{position:fixed;inset:0 0 auto;height:116px;display:flex;z-index:10;background:white;border-bottom:0;box-sizing:border-box}.office-head::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:#17a28e;z-index:1;pointer-events:none}.office-banner{height:100%;box-sizing:border-box;min-height:0}.office-brand{width:224px;flex:none;display:flex;align-items:center;justify-content:center;background:#eef7fb}.office-brand img{width:200px;height:92px;object-fit:contain}.office-banner{display:grid;grid-template-columns:1fr 1fr;flex:1;min-width:0}.motivation{padding:15px 22px;display:flex;flex-direction:column;justify-content:center;gap:3px}.motivation b{font-size:14px}.motivation small{font-size:11px;color:#607f94}.market{background:linear-gradient(115deg,#e4f3fb,#e0f4e9);padding:14px 22px;display:flex;flex-direction:column;gap:5px;font-size:13px}.market small{color:#53798c}.office-nav{position:fixed;top:116px;bottom:0;left:0;width:224px;overflow-y:auto;background:linear-gradient(165deg,#104d78,#057ac0 55%,#18a758);padding:12px;box-sizing:border-box}.office-nav h3{font-size:13px;color:#ffd4d0;margin:16px 10px 8px}.office-nav-button{width:100%;background:transparent;border:0;color:#fff;display:flex;align-items:center;gap:12px;text-align:left;margin:3px 0;border-radius:12px;padding:12px;font-size:15px;cursor:pointer}.office-nav-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;flex:none}.office-nav-button.active{background:white;color:#087bbd;font-weight:700;box-shadow:inset 4px 0 #1baa71}.bank-link{padding-left:45px;font-size:13px}.office-main{display:block;margin:116px 0 0 224px;padding:24px 28px;max-width:none;min-height:calc(100vh - 116px);box-sizing:border-box;background:#f0f6fb}.office-top{display:flex;justify-content:space-between;align-items:center;gap:16px}.office-top h1{font-size:27px;margin:0}.office-user{display:flex;align-items:center;gap:12px;font-size:13px}.office-button{background:linear-gradient(110deg,#0780ca,#1baa69);color:white;border:0;border-radius:10px;padding:9px 16px;cursor:pointer;width:auto;margin:0;font-size:13px}.office-content{margin-top:24px}.office-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.office-stat,.office-panel{background:white;border:1px solid #dae8f1;border-radius:18px;padding:22px;box-shadow:0 3px 14px #1b466008}.office-stat{cursor:pointer;text-align:left;border-bottom:4px solid #20ae84;color:#183c53;display:flex;flex-direction:column;gap:13px;font-size:16px;margin:0}.office-stat b{font-size:34px}.office-stat small{font-size:12px;color:#6b8595}.office-notice{padding:18px 20px;background:#e3f2ef;border-left:4px solid #20ae84;border-radius:10px;line-height:1.8;font-size:14px}.office-panel{margin-bottom:18px;line-height:1.8}.office-panel h2{font-size:20px;margin-top:0}.office-records details{border-bottom:1px solid #e1eaf0;padding:10px}.office-records pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.office-records summary{cursor:pointer}@media(max-width:1100px){.office-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.motivation{padding:12px}.market{padding:12px}.office-user{flex-wrap:wrap;justify-content:flex-end}}@media(max-width:700px){.office-head{height:100px}.office-brand{width:100px}.office-brand img{width:94px;height:75px}.office-banner{grid-template-columns:1fr}.motivation{padding:8px 10px;gap:2px}.motivation b{font-size:11px}.motivation small{font-size:9px}.market{display:none}.office-nav{top:100px;width:64px;padding:6px}.office-nav h3{font-size:10px;margin:13px 0 7px;text-align:center;color:#ffd4d0}.office-nav-button{flex-direction:column;gap:4px;padding:9px 2px;font-size:10px;border-radius:9px}.bank-link{padding:9px 2px}.office-main{margin:100px 0 0 64px;padding:16px 12px;min-height:calc(100vh - 100px)}.office-top{align-items:flex-start;flex-direction:column;gap:10px}.office-top h1{font-size:22px}.office-user{font-size:11px;justify-content:flex-start}.office-button{font-size:11px;padding:8px 10px}.office-content{margin-top:18px}.office-cards{gap:10px}.office-stat{padding:13px;font-size:12px;border-radius:12px}.office-stat b{font-size:26px}.office-stat small{font-size:10px}.office-notice{font-size:12px;padding:12px}.office-panel{padding:14px;font-size:13px}}
.protected-toolbar,.protected-tabs{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 18px}.protected-tabs button{background:#e4eef5;color:#235470}.protected-tabs button.selected{background:linear-gradient(110deg,#0780ca,#1baa69);color:white}.protected-company-select{font-size:17px;width:min(600px,100%);min-height:58px;padding:12px;border-radius:14px;background:linear-gradient(110deg,#e1f1fc,#d9f4e6);border:1px solid #96c8d7;color:#174c68;margin:0 0 20px}.protected-bank-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.protected-bank-grid>div:first-child .office-panel{border-top:5px solid #1487c6}.protected-bank-grid>div:nth-child(2) .office-panel{border-top:5px solid #20aa79}.protected-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0}.protected-fields dt{font-size:12px;color:#638094}.protected-fields dd{margin:5px 0;overflow-wrap:anywhere;white-space:pre-wrap}.protected-logo{width:240px;max-width:100%;height:110px;object-fit:contain;object-position:left}.protected-form{background:white;padding:24px;border-radius:18px;border:1px solid #d6e6f0}.protected-fields label{display:flex;flex-direction:column;gap:7px;font-size:13px}.protected-fields input,.protected-fields textarea{width:100%;box-sizing:border-box;font-size:15px;padding:12px;border:1px solid #bdd5e3;border-radius:10px;min-height:46px;background:white;color:#18374b}.protected-link{background:transparent;color:#147aba;border:0;width:auto;text-align:left;padding:0;font-size:12px}.protected-table-wrap{overflow-x:auto}.protected-table{width:100%;border-collapse:collapse;font-size:13px;min-width:600px}.protected-table th{background:#eef6fa;text-align:left}.protected-table th,.protected-table td{padding:13px;border-bottom:1px solid #e4edf3}.protected-table td button{margin:3px;font-size:12px}.protected-status{color:#a03526;font-size:14px;white-space:pre-wrap}.office-content pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px}.office-content details{margin:15px 0}.office-content input[type=checkbox]{width:auto;display:inline-block;margin-right:8px}.office-content input[type=file]{font-size:13px;max-width:100%}@media(max-width:850px){.protected-bank-grid{grid-template-columns:1fr}.protected-fields{grid-template-columns:1fr}.protected-form{padding:15px}.protected-company-select{font-size:14px}.protected-toolbar .office-button{font-size:12px}}
.protected-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:15px}.protected-card-heading h2{flex:1;min-width:0;font-size:18px;overflow-wrap:anywhere}.bank-brand{width:160px;max-width:40%;height:58px;object-fit:contain;object-position:right center}.employee-sort{white-space:nowrap}.drag-handle{cursor:grab;font-size:23px;letter-spacing:-5px;display:inline-block;padding:0 12px 0 0;color:#57849b}.employee-sort button{padding:6px!important;width:auto!important;font-size:18px!important}.employee-sort button:disabled{opacity:.3;cursor:default}.protected-table tr.dragging{opacity:.4;background:#d8f4e7}.bank-preview{position:fixed;inset:0;z-index:100;background:#eaf1f6;overflow:auto;padding:24px;box-sizing:border-box}.bank-print-tools{max-width:794px;margin:0 auto 20px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.bank-sheet{background:white;color:#18384f;box-sizing:border-box;width:210mm;max-width:100%;min-height:260mm;margin:0 auto;padding:20mm;box-shadow:0 4px 25px #20465b15;user-select:text}.bank-sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:3px solid #169d98;padding-bottom:22px}.bank-sheet h1{font-size:24px;margin:0}.bank-currency{color:#3c6c88;font-size:14px;margin:20px 0 30px}.bank-print-fields{display:grid;grid-template-columns:160px minmax(0,1fr);gap:0;margin:0}.bank-print-fields dt,.bank-print-fields dd{margin:0;padding:17px 0;border-bottom:1px solid #dce8ef;font-size:15px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.bank-print-fields dt{font-weight:700;padding-right:18px}.bank-copy-fallback{position:absolute;top:0;left:0;opacity:0;width:1px;height:1px}@media(max-width:700px){.protected-card-heading{gap:10px}.bank-brand{width:120px;height:44px}.bank-preview{padding:12px}.bank-sheet{padding:22px;min-height:0}.bank-sheet h1{font-size:18px}.bank-print-fields{grid-template-columns:1fr}.bank-print-fields dt{padding-bottom:3px;border-bottom:0}.bank-print-fields dd{padding-top:0;font-size:14px}}@media print{@page{size:A4;margin:14mm}body.workspace-mode{background:white}#office>.office-head,#office>.office-nav,#office>.office-main{display:none!important}#office>.bank-preview{display:block;position:static;padding:0;background:white;overflow:visible}.bank-print-tools{display:none!important}.bank-sheet{padding:0;width:100%;min-height:0;max-width:none;margin:0;box-shadow:none}.bank-print-fields{grid-template-columns:160px minmax(0,1fr)}.bank-print-fields dt{padding:17px 18px 17px 0;border-bottom:1px solid #dce8ef;break-after:avoid}.bank-print-fields dd{padding:17px 0;font-size:15px;break-inside:avoid}.bank-sheet-heading{break-inside:avoid}.bank-sheet h1{font-size:24px}}
.market{display:block;padding:7px 14px;box-sizing:border-box;min-height:0;overflow:hidden;line-height:1.2}.market-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px;font-size:12px}.market-heading .office-button{font-size:10px;padding:4px 10px;line-height:1.4}.market-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.metal-cell{display:flex;flex-direction:column;gap:2px;min-width:0;border-left:1px solid #b9dcd8;padding-left:8px}.metal-cell:first-child{border-left:0;padding-left:0}.metal-name{font-size:10px;color:#406e7e;white-space:nowrap}.metal-price{font-size:16px;font-variant-numeric:tabular-nums;color:#154b63;line-height:1.3}.metal-change{font-size:9px;white-space:nowrap}.metal-change.up{color:#bd3838}.metal-change.down{color:#088965}.metal-change.flat,.metal-change.unknown{color:#627f91}.metal-date{font-size:8px;white-space:nowrap;color:#547583}.market-status{display:block;font-size:8px;margin-top:4px;color:#567b82}.metal-history-tools{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:16px}.metal-history-tools label{font-size:12px;display:flex;flex-direction:column;gap:5px}.metal-history-tools input{padding:10px;font-size:13px;border:1px solid #bfd6e2;border-radius:8px}@media(max-width:1000px) and (min-width:701px){.metal-price{font-size:13px}.metal-change{font-size:8px}.metal-cell{padding-left:4px}.market-grid{gap:4px}.market{padding:9px}}@media(max-width:700px){.office-head{height:178px}.office-nav{top:178px}.office-main{margin-top:178px;min-height:calc(100vh - 178px)}.office-banner{grid-template-rows:82px 96px}.motivation{padding:5px 8px;overflow:hidden;gap:1px}.motivation b{font-size:10px}.motivation small{font-size:8px}.market{display:block;padding:5px 7px;border-top:1px solid #bdddd9}.market-heading{font-size:10px;margin-bottom:3px;gap:5px}.market-heading .office-button{font-size:9px;padding:3px 8px}.market-grid{gap:3px}.metal-cell{padding-left:3px}.metal-name{font-size:8px}.metal-price{font-size:11px}.metal-change{font-size:8px}.metal-date{font-size:7px}.market-status{font-size:7px;white-space:nowrap}.metal-history-tools{gap:9px}.metal-history-tools input{max-width:155px}.office-brand{align-self:stretch}}

.business-stage{background:#fff7df;border-left:4px solid #dda944;padding:12px 16px;border-radius:10px;font-size:12px;line-height:1.7}.business-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:18px 0}.business-tools input,.business-tools select,.business-receipts input{padding:10px;border:1px solid #bfd6e2;border-radius:10px;background:white;color:#183c53;font-size:13px;box-sizing:border-box}.business-tools input{width:260px;max-width:100%}.business-tools select{min-width:120px;max-width:100%}.business-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.business-tabs button{border-radius:12px;background:linear-gradient(110deg,#0780ca,#1baa69);color:white;padding:11px 18px;border:1px solid #158bb5;cursor:pointer;font-size:14px;width:auto;margin:0}.business-tabs button.selected{background:white;color:#087aac;border-color:#0fa28b;box-shadow:0 2px 8px #12597215}.business-repeat{border:1px solid #b7d6e3;border-radius:14px;margin:16px 0;overflow:hidden}.business-repeat .protected-fields{padding:0 18px}.business-repeat-heading{display:flex;justify-content:space-between;align-items:center;padding:12px 18px;color:white;background:linear-gradient(110deg,#0c79b5,#19a77d)}.business-repeat:nth-child(even) .business-repeat-heading{background:linear-gradient(110deg,#119a95,#1980b7)}.business-file-slot{background:#edf4f8;border:1px dashed #8db7cc;border-radius:10px;padding:14px;color:#5b7d92;font-size:12px}.business-table td{white-space:pre-line}.business-receipts{display:flex;gap:14px;flex-wrap:wrap;background:#e5f3ee;padding:18px;border-radius:14px}.business-receipts h3{width:100%;margin:0}.business-receipts label{display:flex;flex-direction:column;gap:7px;font-size:12px}.business-form input,.business-form textarea,.business-form select{color:#172f41;background:white}.business-form label button{align-self:flex-start}.business-form input[type=number]{font-variant-numeric:tabular-nums}@media(max-width:700px){.business-tabs{gap:6px}.business-tabs button{font-size:11px;padding:9px 10px}.business-repeat .protected-fields{padding:0 12px}.business-tools{gap:8px}.business-tools input{width:100%}.business-repeat-heading{padding:10px}.business-repeat-heading .office-button{font-size:10px}.business-stage{padding:10px;font-size:11px}.business-receipts{padding:12px}.business-receipts label{width:100%}}
.business-form .protected-fields select{width:100%;box-sizing:border-box;font-size:15px;padding:12px;border:1px solid #bdd5e3;border-radius:10px;min-height:46px;background:white;color:#18374b}

.master-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.master-categories label{display:flex;gap:8px;align-items:center;background:#ecf6f6;border:1px solid #c4e0de;border-radius:10px;padding:12px;font-size:13px}.master-categories input[type=checkbox]{margin:0;flex:none}.master-entry{border:1px solid #bbd9e4;border-radius:14px;overflow:hidden;margin:18px 0}.master-entry .protected-fields{padding:0 16px}.master-detail-item{border-left:3px solid #18a497;padding:5px 16px;margin:14px 0;background:#f1f8fb;overflow-wrap:anywhere}.business-form .office-panel>label{display:flex;flex-direction:column;gap:8px}.business-form .office-panel>label select{min-height:46px;font-size:15px;padding:10px;border:1px solid #bdd5e3;border-radius:10px;color:#18374b;background:#e7f6f0}@media(max-width:700px){.master-categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.master-categories label{padding:9px;font-size:11px}.master-entry .protected-fields{padding:0 12px}}

.pi-editor .office-panel>label{display:flex;flex-direction:column;gap:8px}.pi-editor textarea,.pi-editor input,.pi-editor select{font-size:15px;border:1px solid #bdd5e3;border-radius:10px;padding:11px;box-sizing:border-box;max-width:100%;color:#18374b;background:white}.pi-editor [aria-label="PI抬头"]{width:min(100%,392px);height:70px;min-height:70px;font-size:17px;background:linear-gradient(110deg,#0877d1,#159a83,#21b34b);color:white;border:0;font-weight:600}.pi-editor [aria-label="PI抬头"] option{color:#18374b;background:white}.pi-company-summary{margin-top:14px;line-height:1.6;font-size:13px}.pi-company-summary img{display:block;width:210px;height:85px;object-fit:contain;object-position:left;margin-bottom:12px}.pi-products{width:100%;min-width:950px;border-collapse:collapse;margin:18px 0;font-size:12px}.pi-products th{background:#e8f5ef;padding:12px;text-align:left}.pi-products td{padding:10px;border-bottom:1px solid #dce9ed;vertical-align:top}.pi-products td label{display:flex;flex-direction:column;gap:5px;font-size:10px;margin-bottom:6px}.pi-products td:nth-child(1){width:27%}.pi-products td:nth-child(2){width:25%}.pi-products td:nth-child(3),.pi-products td:nth-child(4){width:14%}.pi-products td:nth-child(5){min-width:100px;font-variant-numeric:tabular-nums}.pi-products input,.pi-products select{width:100%;min-height:43px;font-size:13px}.pi-editor .office-panel>b{display:block;text-align:right;color:#087daf;margin-top:16px}.pi-preview{position:fixed;inset:0;z-index:100;overflow:auto;background:#edf3f7;padding:22px;box-sizing:border-box}.pi-preview-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;max-width:794px;margin:0 auto 16px}.pi-preview-tools b{flex:1;min-width:200px}.pi-preview-tools button:nth-last-child(-n+2){background:linear-gradient(110deg,#087cc5,#16a578)}.pi-preview>p{max-width:794px;margin:0 auto 14px;font-size:12px;color:#587d91}.pi-paper-root{overflow-x:auto}.pi-sheet{width:210mm;height:297mm;box-sizing:border-box;background:white;box-shadow:0 4px 22px #214d5f15;margin:0 auto 18px}.pi-sheet img{display:block;width:100%;height:100%}.office-button:disabled{opacity:.5;cursor:default}@media(max-width:700px){.pi-preview{padding:12px}.pi-preview-tools{gap:8px}.pi-preview-tools b{font-size:12px;min-width:130px}.pi-editor [aria-label="PI抬头"]{font-size:16px}.pi-company-summary img{width:180px}.pi-editor .protected-fields{gap:12px}.pi-paper-root{border:1px solid #d0e0e7}.pi-sheet{margin-left:0;margin-right:0}}

@media(max-width:700px){.pi-editor .pi-products{min-width:0;width:100%}.pi-products thead{display:none}.pi-products tbody,.pi-products tr{display:block}.pi-products tr{border:1px solid #c2dce7;border-radius:12px;margin:14px 0;padding:8px;background:#f6fbfc}.pi-editor .pi-products td{display:block;width:100%!important;box-sizing:border-box;border:0;padding:8px}.pi-products td:nth-child(5)::before{content:"金额 USD：";color:#548096}.pi-preview .pi-sheet{width:100%;height:auto}.pi-preview .pi-sheet img{height:auto}.pi-preview .pi-paper-root{overflow-x:hidden}}

@media(max-width:700px){.pi-editor .pi-products{display:block;max-width:100%;box-sizing:border-box}.pi-editor .pi-products tbody{width:100%;box-sizing:border-box}.pi-editor .pi-products tr{width:100%;max-width:100%;box-sizing:border-box}.pi-editor .pi-products td label{min-width:0}.pi-editor .pi-products input,.pi-editor .pi-products select{min-width:0;max-width:100%;box-sizing:border-box}}

.pi-editor{min-width:0;grid-template-columns:minmax(0,1fr)}.pi-editor>.office-panel,.pi-editor>.business-tools{min-width:0}.pi-editor input,.pi-editor textarea,.pi-editor select{min-width:0;font-family:inherit;font-weight:400}.pi-editor select{width:100%}

.order-ledger{min-width:1300px}.order-ledger th{white-space:nowrap}.order-ledger td:first-child{min-width:140px}.order-ledger td:nth-child(2){min-width:190px}.order-ledger td:nth-child(4){min-width:160px}.order-ledger td:nth-child(5){white-space:nowrap}.order-ledger td:last-child{min-width:145px}

.document-seal-preview{display:block;max-width:240px;max-height:130px;object-fit:contain;margin:16px 0}.doc-print-image{display:none!important}

.execution-form{min-width:0;grid-template-columns:minmax(0,1fr)}.execution-form label{display:flex;flex-direction:column;gap:7px;font-size:12px;min-width:0}.execution-form input,.execution-form select{font-size:14px;min-height:42px;min-width:0;max-width:100%;width:100%;box-sizing:border-box;background:white;color:#173b56;padding:9px;border:1px solid #c4dbe6;border-radius:9px}.execution-table{min-width:1000px}.execution-table th{white-space:nowrap}.execution-table td{min-width:115px}.execution-table label{min-width:115px}.execution-factory{border-left:5px solid #0877d1}.execution-factory-1{border-left-color:#18a36c}.execution-factory-2{border-left-color:#168b9b}.execution-factory-head{background:linear-gradient(110deg,#0877d1,#159a83,#21b34b);color:white;padding:18px;border-radius:12px;margin-bottom:18px}.execution-factory-head label{color:white}.execution-factory-head>span{display:block;font-size:20px;font-weight:700}.execution-cost-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.execution-cost-row{display:grid;grid-template-columns:2fr 85px 1fr auto;gap:7px;margin:12px 0;align-items:end}.execution-profit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;background:linear-gradient(110deg,#edf7ff,#e8f7ee);padding:20px;border-radius:12px}.execution-profit-grid span{display:block;font-size:20px;font-weight:700;color:#117d77}.execution-request{background:#cf4242;color:white}.order-ledger td:nth-child(3),.order-ledger td:nth-child(6){white-space:pre-line;line-height:2}
@media(max-width:700px){.execution-cost-grid{grid-template-columns:minmax(0,1fr)}.execution-cost-row{grid-template-columns:minmax(0,1fr) 75px}.execution-profit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.execution-factory-head{padding:12px}.execution-form>.office-panel{min-width:0}.execution-table{min-width:950px}}
.workflow-table{min-width:800px}.workflow-table .workflow-status-cell{width:130px;min-width:130px;text-align:center}.workflow-status{display:inline-flex;align-items:center;justify-content:center;min-width:100px;padding:10px 16px;border-radius:12px;background:#fff0ce;color:#875319;font-weight:700}.workflow-status.done{background:#dff5e9;color:#107447}.workflow-status.rejected{background:#ffe2e3;color:#a81b27}.workflow-danger{background:#c62938;color:white}.workflow-reply{white-space:pre-wrap;padding:14px;border-left:3px solid #18a895;background:#edf9f6}.office-nav-button .unread-badge{background:#df2738;color:#fff;padding:2px 7px;border-radius:20px;min-width:22px;font-size:12px;line-height:18px;margin-left:auto}
.ledger-account{background:#e7f2f5;color:#163d52;text-align:left;border:2px solid transparent}.ledger-account.selected{background:linear-gradient(110deg,#0b70bc,#10a56d);color:white;border:2px solid #074c88;box-shadow:0 5px 18px #0b70bc33}.ledger-account .bank-brand{width:145px;max-height:80px}.ledger-account.selected p,.ledger-account.selected h2{color:white}.ledger-table{min-width:1100px}.ledger-credit{color:#087642;font-weight:700}.ledger-debit{color:#be2130;font-weight:700}.ledger-balance{color:#1266ae;font-weight:700}.ledger-red{background:#ffe3e6}.ledger-red .ledger-debit{color:#920817;font-weight:800}.ledger-table td{position:relative}.ledger-tip{display:none;white-space:pre-wrap;position:absolute;z-index:5;left:0;top:100%;min-width:200px;max-width:320px;background:#183b50;color:white;padding:12px;border-radius:10px;font-weight:400}.ledger-table td:hover .ledger-tip,.ledger-table td:focus .ledger-tip{display:block}.ledger-income-input input{background:#e9faef;border-color:#72be91}.ledger-outgoing-input input{background:#fff0f0;border-color:#db8b91}
.data-center-select{padding:12px 18px;min-width:220px;min-height:48px;font-size:15px;border-radius:12px;background:linear-gradient(110deg,#e6f3fb,#e5f7ee);border:1px solid #bedbe5;margin:8px}.attachments-panel input[type=file]{max-width:100%}.attachment-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px;border-bottom:1px solid #e1ebef}
/* Compact purchase, packing and document workflow, 2026-10-14 revision. */
.compact-purchases,.compact-contracts{padding:16px}.purchase-spec{border:1px solid #bfdcdF;border-radius:12px;margin:14px 0;padding:12px;background:#fbfefd}.purchase-spec-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:9px 12px;background:linear-gradient(110deg,#e4f3fc,#e6f7eb);border-radius:8px;font-size:13px}.purchase-spec-heading>b{flex:1 1 320px}.purchase-spec-heading>span{white-space:nowrap;font-size:12px}.compact-purchases .execution-table{min-width:800px}.execution-form .execution-table label{font-size:0;gap:0}.execution-form .execution-table input,.execution-form .execution-table select{font-size:13px;min-height:34px;padding:6px 8px;margin:0;width:100%}.execution-form .execution-table td{padding:9px}.compact-contracts .execution-factory{padding:12px;margin:12px 0}.compact-contracts .execution-factory-head{padding:12px;margin-bottom:10px}.compact-contracts .execution-factory-head>span{font-size:16px;margin-bottom:8px}.compact-contracts .protected-fields{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0}.compact-contracts .protected-fields input,.compact-contracts .protected-fields select{min-height:34px;padding:6px 8px;font-size:13px}.factory-payment-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.factory-payment-cell{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px;padding:12px;border-radius:10px;background:#edf5f7;align-items:end}.factory-payment-cell input{min-height:34px;padding:6px 8px;font-size:13px}.execution-request:disabled{background:#8c9ca4;color:white;opacity:1}.execution-form>[role=status]:not(:empty){padding:12px 15px;background:#fff5d8;border-radius:9px;position:sticky;top:0;z-index:3}.execution-close{margin:12px 0;background:#b34242;color:#fff}.packing-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;background:linear-gradient(110deg,#e5f3fc,#e8f6eb);padding:15px;border-radius:12px}.packing-summary span{font-weight:600;font-size:14px}.packing-editor{background:#f2f9fa;border:1px solid #abd3d9}.document-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}.document-grid>.office-panel,.document-card{padding:14px;margin:0;min-width:0}.document-card{display:flex;flex-direction:column;gap:10px}.document-card h3,.attachments-panel h3{font-size:15px;margin:0 0 8px}.document-card label select{min-height:36px!important;font-size:13px!important;padding:7px!important}.document-card .office-button{margin:0;align-self:flex-start;font-size:12px}.document-grid .attachments-panel .attachment-row{gap:6px;padding:8px 0;font-size:12px}.document-grid .attachments-panel input[type=file]{font-size:12px;width:100%}.document-grid .attachments-panel .office-button{font-size:12px;padding:7px 10px;margin:6px 0}.execution-cost-grid .attachments-panel{padding:10px;margin:12px 0 0;background:#f3faf8;border:1px dashed #9bcfc6}.ledger-editor>label{display:flex;flex-direction:column;gap:6px;margin:10px 0}.ledger-components{background:#fdf4f3;border:1px solid #e4c5c0;border-radius:12px;padding:15px;margin:16px 0}.ledger-component-row{display:grid;grid-template-columns:2fr 1fr auto;gap:10px;margin:9px 0;align-items:center}.ledger-component-row input{width:100%;box-sizing:border-box;min-height:38px;border:1px solid #c4d8df;border-radius:8px;padding:8px;color:#1a3444;background:#fff}.ledger-component-row .office-button{margin:0}.ledger-editor .ledger-outgoing-input input[readonly]{background:#ffeae5;color:#a82626;font-weight:700}.execution-table td>span{white-space:pre-line}
@media(max-width:900px){.factory-payment-grid{grid-template-columns:minmax(0,1fr)}.compact-contracts .protected-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.packing-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.document-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.document-grid{grid-template-columns:minmax(0,1fr)}.factory-payment-cell{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.factory-payment-cell .office-button{grid-column:1/-1;justify-self:start}.ledger-component-row{grid-template-columns:minmax(0,1fr) 100px}.ledger-component-row button{grid-column:1/-1;justify-self:start}.packing-summary{gap:8px;padding:12px}.packing-summary span{font-size:12px}.compact-purchases,.compact-contracts{padding:10px}}
.execution-form{margin:12px 0;gap:8px}.execution-form .business-tabs{margin:10px 0}.execution-form>[role=status]:empty{display:none}.execution-form .execution-table label{margin:0}.execution-form .execution-table input,.execution-form .execution-table select,.compact-contracts .protected-fields input,.compact-contracts .protected-fields select,.factory-payment-cell input{height:34px}.execution-form>[role=status]:not(:empty){top:126px;scroll-margin-top:140px}@media(max-width:700px){.execution-form>[role=status]:not(:empty){top:8px}}
.ledger-editor .protected-fields select{width:100%;min-height:46px;box-sizing:border-box;padding:10px;border:1px solid #bdd5e3;border-radius:10px;font-size:14px;color:#18374b;background:white}.ledger-editor>.ledger-check{flex-direction:row;align-items:center;gap:9px;font-size:13px}.ledger-editor>.ledger-check input[type=checkbox]{width:18px;height:18px;min-height:0;flex:none;margin:0}.compact-purchases>h2,.compact-contracts>h2{font-size:19px}.compact-contracts .execution-factory>h2{font-size:15px;margin-bottom:10px}.packing-panel>.protected-table-wrap>.execution-table{min-width:720px}.packing-editor .execution-table{min-width:680px}

/* Compact R3 templates, partner type icons and quiet cloud loading. */
.office-loading{padding:24px 4px;color:#668295;font-size:14px;display:flex;align-items:center;gap:10px}.office-loading:before{content:'';width:18px;height:18px;border:2px solid #cce7e2;border-top-color:#0985b5;border-radius:50%;animation:cloud-spin .9s linear infinite}@keyframes cloud-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.office-loading:before{animation:none}}
.template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}.template-card{border-top:4px solid #14a395;display:flex;flex-direction:column;align-items:flex-start;gap:6px}.template-card h2,.template-card p{margin:3px 0}.template-card .office-button{margin-top:auto}.template-abbr{background:linear-gradient(110deg,#087dc0,#18ae79);color:white;border-radius:10px;padding:8px 13px;font-weight:700}.template-terms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}.template-terms>p,.template-terms>button{grid-column:1/-1}.template-terms textarea{width:100%;box-sizing:border-box}details.office-panel>summary{cursor:pointer;font-weight:700;color:#126882}.partner-type{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:9px;background:#e7f5f1;color:#116d78;white-space:nowrap}.partner-type svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}.ledger-table td:last-child{min-width:170px}.ledger-table td:last-child .office-button{margin:3px}.ledger-table td:last-child small{display:block}
@media(max-width:640px){.template-grid,.template-terms{grid-template-columns:1fr}}

.template-company{width:min(580px,100%);min-height:46px;padding:8px 12px;border:1px solid #a9d4d7;border-radius:11px;background:linear-gradient(110deg,#e7f3fb,#e4f6eb);color:#174c68;font-size:15px}.ledger-confirm{border:2px solid #cf5e5e}.ledger-confirm .office-button{margin:4px}

/* R8: square work cards, compact approval details and explicit blank dates. */
.dashboard-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,180px));gap:14px}.dash-tile{position:relative;width:100%;height:0;padding:calc(100% - 2px) 0 0;border:1px solid #b9d9e4;border-radius:16px;background:linear-gradient(145deg,#edf7ff,#e9f7ef);color:#174962;text-align:left;overflow:hidden}.dash-tile:hover{border-color:#13a58e;box-shadow:0 5px 18px #1b776c18}.dash-tile-body{position:absolute;inset:14px;display:flex;flex-direction:column;gap:8px;min-width:0;font-size:13px;line-height:1.5}.dash-tile b{font-size:15px;overflow-wrap:anywhere}.dash-description{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.dash-tile small{color:#607e90;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dash-status{align-self:flex-start;margin-top:auto;background:#fff;padding:3px 9px;border-radius:8px;color:#098b80;font-size:12px}.workflow-detail{max-width:980px}.workflow-detail-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 20px;margin:18px 0}.workflow-detail-field{padding:10px 12px;background:#f2f7fa;border-radius:10px;min-width:0}.workflow-detail-field dt{font-size:12px;color:#648192;margin-bottom:4px}.workflow-detail-field dd{margin:0;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;color:#173c52}.approval-controls{background:#edf7f4;border:1px solid #bbded2;border-radius:12px;padding:16px;max-width:740px;margin:16px 0;display:grid;grid-template-columns:180px minmax(0,1fr);gap:10px 18px}.approval-controls h3{grid-column:1/-1;margin:0}.approval-controls label{display:flex;flex-direction:column;gap:6px;margin:0}.approval-controls textarea{min-height:82px}.rejection-editor{border:2px solid #d76161;border-radius:13px;background:#fff3f2;padding:18px;margin:18px 0;max-width:740px}.rejection-editor h3{color:#ae2727;margin:0}.rejection-editor>label{display:flex;flex-direction:column;gap:7px}.rejection-editor textarea{min-height:110px;width:100%;border:1px solid #d67b7b;border-radius:8px;padding:10px;font:inherit}.rejection-editor .office-button{margin:10px 8px 0 0}.date-field{display:inline-block;position:relative;width:100%;min-width:0}.date-field input{width:100%;box-sizing:border-box}.date-empty-label{display:none;position:absolute;left:12px;top:50%;transform:translateY(-50%);pointer-events:none;color:#728594;font-weight:400;font-size:13px;white-space:nowrap}.date-field[data-empty=true] .date-empty-label{display:block}.date-field[data-empty=true] input{color:transparent!important}.date-field[data-empty=true] input::-webkit-datetime-edit{opacity:0}.date-field[data-empty=true] input::-webkit-calendar-picker-indicator{opacity:1}.date-field:focus-within .date-empty-label{display:none}.date-field:focus-within input{color:#18364d!important}.date-field:focus-within input::-webkit-datetime-edit{opacity:1}.receipt-amounts{max-width:740px;background:#eaf6f1;padding:14px;border-radius:12px;margin-top:14px}.order-ledger td:nth-child(3),.order-ledger td:nth-child(6),.order-ledger td:nth-child(7){white-space:pre-line;line-height:2;vertical-align:top}
@media(max-width:640px){.dashboard-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dash-tile-body{inset:10px;font-size:11px;gap:5px}.dash-tile b{font-size:12px}.dash-status{font-size:10px;padding:2px 6px}.workflow-detail-fields,.approval-controls{grid-template-columns:1fr}.approval-controls h3{grid-column:auto}.workflow-detail-field{padding:9px}.date-empty-label{font-size:12px}}

.workflow-detail{max-width:900px}.approval-controls textarea{border:1px solid #b8d2de;border-radius:8px;padding:9px;font:inherit}.workflow-attachment-panel{border-top:1px solid #d6e5ec;margin-top:16px;padding-top:12px}.workflow-attachment-panel>summary{cursor:pointer;color:#126d7a;font-weight:650}.workflow-attachment-panel .office-panel{margin-top:12px}

.release-version{background:#e0f1ed;color:#28786c;border-radius:6px;padding:2px 6px;font-size:11px}
/* R9: compact, aligned factory contracts, product groups and editable dates */
.text-date{font-variant-numeric:tabular-nums;min-width:0;width:100%;font-size:14px!important}.text-date::placeholder{font-size:12px;color:#78909e;opacity:1}.text-date[aria-invalid=true]{border-color:#d64444!important;background:#fff3f2!important}
.pi-product-group{border:1px solid #cfe4e6;border-radius:14px;margin:14px 0;padding:16px;background:#fcfefe}.pi-product-group h3{color:#087b8b;margin:0 0 12px}.pi-product-group>label{display:block;max-width:100%;margin-bottom:14px}.pi-products{table-layout:fixed;width:100%;min-width:850px}.pi-products th:nth-child(1){width:23%}.pi-products th:nth-child(2){width:24%}.pi-products th:nth-child(3){width:17%}.pi-products th:nth-child(4){width:17%}.pi-products th:nth-child(5){width:12%}.pi-products th:nth-child(6){width:7%}.pi-products label{display:block;white-space:normal;font-size:12px;margin-bottom:7px}.pi-products input,.pi-products select{min-width:0;width:100%;height:38px;padding:7px!important}.pi-total{margin-left:auto;color:#077b80;font-size:19px}
.receipt-row{grid-template-columns:minmax(170px,260px) minmax(150px,240px)!important;gap:14px!important;padding:10px 0}.lc-receipts{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;max-width:1000px}
.compact-contracts>.execution-factory{padding:0!important;overflow:hidden;border:1px solid #c9e0e5;border-radius:16px;margin-top:20px}.compact-contracts>.execution-factory>h2{display:none}.compact-contracts .execution-factory-head{padding:18px!important;background:linear-gradient(110deg,#0766a1,#13a47f)!important;border-radius:0!important;color:#fff!important}.compact-contracts .execution-factory-1 .execution-factory-head{background:linear-gradient(110deg,#17528a,#168d98)!important}.compact-contracts .execution-factory-2 .execution-factory-head{background:linear-gradient(110deg,#087989,#279c63)!important}.execution-factory-head>.protected-fields{grid-template-columns:repeat(3,minmax(150px,1fr))!important;gap:10px 16px!important;margin:12px 0}.execution-factory-head label{font-size:13px!important;color:#fff!important}.execution-factory-head input,.execution-factory-head select{color:#172c38!important;background:#fff!important;min-height:36px!important;padding:7px 10px!important;font-size:14px!important}.execution-factory-head .factory-payment-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.execution-factory-head .factory-payment-cell{display:grid;grid-template-columns:1fr 1.2fr auto;gap:8px;align-items:end;background:#ffffff12;padding:10px;border-radius:10px}.execution-factory-head .attachments-panel{background:transparent!important;border:1px solid #ffffff50!important;margin:12px 0 0!important;padding:10px!important;box-shadow:none!important;color:white}.execution-factory-head .attachments-panel h3,.execution-factory-head .attachments-panel small,.execution-factory-head .attachments-panel p{color:white!important}.execution-factory-head input[type=file]{font-size:12px!important}.execution-factory>.protected-table-wrap{margin:14px}.execution-factory>button{margin:0 14px 14px}.factory-spec-picker{margin:14px;border:1px solid #cde0e4;border-radius:12px;padding:12px}.factory-spec-picker summary{cursor:pointer;color:#05778c;font-weight:700}.factory-spec-choices{max-height:240px;overflow:auto;margin:10px 0;display:grid;grid-template-columns:1fr 1fr;gap:8px}.factory-spec-choices label{display:flex;gap:8px;align-items:flex-start;font-size:13px}.factory-spec-choices input{width:18px!important;min-height:18px!important;flex:0 0 18px}.production-batches{min-width:170px}.production-batches details{border:1px solid #cde3e5;border-radius:8px;padding:8px}.production-batches summary{cursor:pointer}.production-batches label{display:block;margin:6px 0}
.packing-head-row{grid-template-columns:repeat(4,minmax(120px,1fr))!important}.packing-import-preview:not(:empty){border:1px solid #9acbbf;background:#f6fffc;border-radius:12px;padding:14px;margin:14px 0}.attachment-preview-image{display:block;max-width:100%;max-height:480px;object-fit:contain;margin-top:10px;border:1px solid #bdd7dc;border-radius:10px}.attachment-preview-pdf{display:block;width:100%;height:70vh;border:1px solid #bdd7dc;margin-top:10px}.attachments-panel input[type=file]{max-width:100%}.archive-confirm{background:#fff2ef;border:1px solid #e6aba5;padding:12px;border-radius:10px;max-width:340px;white-space:normal}.archive-confirm b{display:block;font-size:13px;margin-bottom:8px}.metal-change{font-size:15px!important;font-weight:800!important}.metal-change.up,.history-change.up{color:#c63030!important}.metal-change.down,.history-change.down{color:#09854d!important}.history-change{display:block;font-size:14px;font-weight:700;margin-top:4px}
@media(max-width:900px){.execution-factory-head>.protected-fields{grid-template-columns:1fr 1fr!important}.execution-factory-head .factory-payment-grid{grid-template-columns:1fr!important}.packing-head-row{grid-template-columns:1fr 1fr!important}}
@media(max-width:600px){.pi-product-group{padding:10px}.execution-factory-head>.protected-fields,.factory-spec-choices{grid-template-columns:1fr!important}.execution-factory-head .factory-payment-cell{grid-template-columns:1fr!important}.receipt-row,.packing-head-row{grid-template-columns:1fr!important}.compact-contracts .execution-factory-head{padding:12px!important}.pi-total{margin-left:0;font-size:16px}.metal-change{font-size:13px!important}}
.packing-head-row label>span{display:flex;align-items:center;min-height:40px;padding:8px 10px;box-sizing:border-box;border:1px solid #cddfe6;background:#f3f8fa;border-radius:8px;font-size:14px;color:#173b4f}.packing-import-help{padding:10px 0;color:#526f80;font-size:13px}.packing-import-help summary{color:#08788c;font-weight:700;cursor:pointer}

/* R11: compact order identity, readable supplier rows and quantity equation. */
.order-basic-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px 20px!important;max-width:1120px}.order-basic-grid>div{padding:8px 10px;border-radius:9px;background:#f2f8fa}.order-basic-grid p{margin:4px 0 0;line-height:1.45;font-size:14px}.order-basic-panel h2{margin-bottom:14px}.order-ledger th:nth-child(3),.order-ledger td:nth-child(3){min-width:110px;width:125px;white-space:pre;line-height:2.4}.purchase-unit-equation{display:grid;grid-template-columns:minmax(100px,1fr) auto minmax(100px,1fr) auto;gap:6px;align-items:end;margin-top:8px}.purchase-unit-equation b{padding-bottom:12px;font-size:13px}.purchase-unit-equation label{min-width:100px}.purchase-unit-equation input{min-width:100px}.factory-spec-choices label[hidden]{display:none!important}@media(max-width:700px){.order-basic-grid{grid-template-columns:1fr!important}.purchase-unit-equation{grid-template-columns:minmax(100px,1fr) auto}.lc-receipts{grid-template-columns:1fr!important}}

/* R12 compact contract, receipts and shipment detail fields. */
.compact-contracts .execution-factory-head{padding:12px!important;margin-bottom:10px}.execution-factory-head>.protected-fields{grid-template-columns:repeat(4,minmax(125px,1fr))!important;gap:7px 12px!important;margin:8px 0!important}.execution-factory-head>span{font-size:16px}.execution-factory-head label{gap:4px!important;font-size:12px!important}.execution-factory-head input,.execution-factory-head select{min-height:32px!important;padding:5px 8px!important;font-size:13px!important}.execution-factory-head .factory-payment-cell{padding:7px!important;gap:7px!important}.execution-factory-head .attachments-panel{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:7px!important;margin-top:8px!important}.execution-factory-head .attachments-panel h3{font-size:12px;margin:0;min-width:120px}.execution-factory-head .attachments-panel p{margin:0;font-size:11px}.execution-factory-head .attachments-panel input[type=file]{flex:1;min-width:170px;width:auto}.execution-factory-head .attachments-panel small{flex-basis:100%;font-size:10px}.execution-factory-head .attachments-panel .office-button{padding:7px 11px;min-height:30px}.tt-receipts{grid-template-columns:1fr 1fr!important;gap:12px!important;max-width:1050px}.tt-receipts .receipt-row{padding:0!important;grid-template-columns:1fr 1fr!important;gap:10px!important}.lc-receipts{grid-template-columns:repeat(4,minmax(150px,1fr))!important;max-width:1100px;align-items:start;gap:10px!important}.lc-files-inline{grid-column:span 2}.lc-files-inline .attachments-panel{padding:10px!important;margin:0!important;display:flex;align-items:center;flex-wrap:wrap;gap:7px}.lc-files-inline .attachments-panel h3{font-size:12px;margin:0}.lc-files-inline .attachments-panel p{font-size:11px;margin:0}.lc-files-inline .attachments-panel input[type=file]{flex:1;min-width:160px;width:auto}.lc-files-inline .attachments-panel small{font-size:10px;flex-basis:100%}.lc-files-inline .attachments-panel button{padding:7px 10px}.compact-logistics>.protected-fields{grid-template-columns:repeat(4,minmax(135px,1fr))!important;gap:10px 14px!important}.compact-logistics>.office-panel{padding:14px;margin-top:12px}.compact-logistics>.office-panel>.protected-fields{grid-template-columns:repeat(4,minmax(130px,1fr))!important;gap:10px 14px!important}.compact-logistics label{font-size:12px;gap:4px}.compact-logistics input,.compact-logistics select{min-height:34px;padding:6px 9px;font-size:13px}.compact-logistics textarea{min-height:62px}.compact-logistics h2{font-size:17px;margin:0 0 12px}.actual-unit-pair{grid-template-columns:1fr 1fr!important;gap:10px!important;min-width:260px}.actual-unit-pair label{margin:0!important}.production-actual-row{padding:5px 0}.production-actual-row>small{display:block;margin-bottom:4px}.production-current{min-width:280px}.production-current .actual-unit-pair>label:only-child{grid-column:1/-1}
@media(max-width:950px){.execution-factory-head>.protected-fields,.lc-receipts,.compact-logistics>.protected-fields,.compact-logistics>.office-panel>.protected-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}.tt-receipts{grid-template-columns:1fr!important}}
@media(max-width:600px){.execution-factory-head>.protected-fields,.lc-receipts,.compact-logistics>.protected-fields,.compact-logistics>.office-panel>.protected-fields{grid-template-columns:1fr!important}.lc-files-inline{grid-column:auto}.tt-receipts .receipt-row{grid-template-columns:1fr!important}.lc-files-inline .attachments-panel input[type=file]{width:100%;min-width:0}.execution-factory-head .attachments-panel input[type=file]{min-width:0;flex-basis:100%}}

.lc-files-inline{grid-column:auto}.lc-files-inline .attachments-panel small,.execution-factory-head .attachments-panel small{display:none}.lc-files-inline .attachments-panel input[type=file]{width:100%;min-width:0;font-size:11px}.order-basic-panel .tt-receipts input,.order-basic-panel .lc-receipts input{min-height:34px;padding:6px 9px;font-size:13px}.lc-files-inline .attachments-panel h3{flex-basis:100%}.lc-files-inline .attachments-panel .protected-status:empty{display:none}
.production-current .actual-unit-pair label{font-size:12px!important;display:flex!important;flex-direction:column;gap:5px;color:#315e70!important}.production-current .actual-unit-pair{margin:0!important}

.execution-batch-tools{display:flex;align-items:flex-end;gap:10px;margin:10px 0 14px}.execution-batch-tools>label{width:250px;max-width:100%}.execution-batch-tools select{min-height:36px;padding:6px 9px}.execution-batch-tools>.office-button{min-height:36px;padding:8px 12px}@media(max-width:600px){.execution-batch-tools{flex-wrap:wrap}.execution-batch-tools>label{width:100%}}
.execution-factory-head>.protected-fields{grid-template-columns:1.3fr 1fr 1.1fr .65fr .8fr .8fr!important;gap:8px!important}.execution-factory-head input,.execution-factory-head select{height:32px!important;min-height:32px!important}.execution-factory-head input[type=file]{height:34px!important}.execution-factory-head .office-button{min-height:32px!important;padding:6px 10px!important}.execution-factory-head .factory-payment-cell{padding:6px!important}.execution-factory-head .attachments-panel p:empty{display:none}@media(max-width:1100px){.execution-factory-head>.protected-fields{grid-template-columns:repeat(3,minmax(0,1fr))!important}}@media(max-width:700px){.execution-factory-head>.protected-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:600px){.execution-factory-head>.protected-fields{grid-template-columns:1fr!important}}
.order-basic-panel .tt-receipts input,.order-basic-panel .lc-receipts input{height:36px!important;min-height:36px!important}.order-basic-panel>.lc-receipts,.order-basic-panel>.tt-receipts{margin-top:8px!important}.order-basic-panel>h3{margin:16px 0 10px}.lc-files-inline .attachments-panel{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:5px!important;padding:8px!important}.lc-files-inline .attachments-panel>h3{grid-column:1;grid-row:1;align-self:center}.lc-files-inline .attachments-panel>.office-button{grid-column:2;grid-row:1;padding:6px 8px;min-height:30px}.lc-files-inline .attachments-panel>input[type=file],.lc-files-inline .attachments-panel>.attachment-row,.lc-files-inline .attachments-panel>.protected-status{grid-column:1/-1;width:100%;min-width:0}.lc-files-inline .attachments-panel>input[type=file]{height:34px!important}.lc-files-inline .attachments-panel>.muted{display:none}
.compact-logistics input,.compact-logistics select{height:36px!important;min-height:36px!important}.compact-logistics textarea{min-height:62px;height:62px}

/* R13: one shared order with equal-height factory subrows. */
.order-ledger.ledger-aligned{table-layout:fixed;width:100%;min-width:1600px;border-collapse:collapse}.order-ledger.ledger-aligned th,.order-ledger.ledger-aligned td{min-width:0!important;width:auto!important;box-sizing:border-box;white-space:normal!important;line-height:1.5;vertical-align:middle!important;padding:10px 12px}.order-ledger.ledger-aligned th{white-space:nowrap!important}.order-ledger.ledger-aligned .ledger-factory-row{height:72px}.order-ledger.ledger-aligned .ledger-factory-cell{padding:0 12px}.order-ledger.ledger-aligned .ledger-factory-row:not(.ledger-last-row)>.ledger-factory-cell{border-bottom:0}.ledger-factory-slot{display:flex;align-items:center;min-height:52px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ledger-cell-2 .ledger-factory-slot{display:block;line-height:52px}.order-ledger.ledger-aligned .ledger-cell-4,.order-ledger.ledger-aligned .ledger-cell-9{white-space:nowrap!important}.order-ledger.ledger-aligned .ledger-cell-0>.office-button{max-width:100%;padding:9px 10px;overflow-wrap:anywhere}.ledger-stage{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:3px 5px}.ledger-stage span{white-space:nowrap}.ledger-sailings{display:flex;flex-direction:column;gap:7px}.ledger-sailing{display:flex;align-items:center;flex-wrap:wrap;gap:2px 6px}.ledger-sailing small,.ledger-date{white-space:nowrap}.ledger-actions{display:flex;flex-direction:column;gap:6px;align-items:flex-start}.ledger-actions>.office-button{padding:6px 10px;min-height:30px;margin:0!important;font-size:12px}.ledger-order-group>.ledger-factory-row>.ledger-cell-7{text-align:center}

/* R14: PI amount shares order identity; multiple products follow their factories. */
.order-ledger.ledger-aligned{min-width:1472px}.order-ledger.ledger-aligned .ledger-order-identity{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:78px;width:100%;padding:12px 9px;box-sizing:border-box}.ledger-order-number{font-weight:650}.ledger-pi-amount{font-size:12px;white-space:nowrap;font-weight:400}.ledger-cell-3 .ledger-factory-slot{white-space:pre-line;overflow:visible;line-height:1.5;padding:10px 0;box-sizing:border-box;overflow-wrap:anywhere}.ledger-cell-3{overflow-wrap:anywhere}

/* R15: centered compact ledger with combined factory identity and amount. */
.order-ledger.ledger-aligned{min-width:1332px}.order-ledger.ledger-aligned th,.order-ledger.ledger-aligned td{text-align:center!important}.ledger-factory-slot{justify-content:center}.ledger-cell-2 .ledger-factory-slot.ledger-factory-info{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;line-height:1.5;min-height:72px;padding:8px 0;box-sizing:border-box}.ledger-factory-amount{font-size:12px;white-space:nowrap}.ledger-sailing{flex-direction:column;align-items:center;gap:2px}.ledger-actions{align-items:center}.ledger-sailings{gap:10px}

/* R16: shared customer/order identity card. */
.order-ledger.ledger-aligned{min-width:1197px}.order-ledger.ledger-aligned .ledger-order-identity{min-height:104px;padding:12px 10px;gap:7px;background:linear-gradient(120deg,#086caa,#087b69);color:#fff}.ledger-customer-name{display:block;color:#ffe58a;font-size:13px;font-weight:700;line-height:1.45;white-space:normal;overflow-wrap:anywhere;text-align:center}.ledger-order-identity .ledger-pi-amount{color:#fff}

/* R17: consistent compact editors; long content stays readable on mobile. */
.entry-form{max-width:1120px;margin:0 auto}.entry-form .protected-fields{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:16px 18px!important;margin:16px 0!important;align-items:start}.entry-form .protected-fields>label{grid-column:span 2;min-width:0;display:flex;flex-direction:column;gap:6px;margin:0!important;font-size:13px;line-height:1.5;color:#31566b}.entry-form .protected-fields>label.field-medium{grid-column:span 3}.entry-form .protected-fields>label.field-wide{grid-column:1/-1}.entry-form input:not([type=checkbox]):not([type=radio]):not([type=file]),.entry-form select{height:38px!important;min-height:38px!important;padding:8px 10px!important;font-size:14px!important;box-sizing:border-box;width:100%;min-width:0;border-radius:8px}.entry-form textarea{min-height:78px!important;height:90px;padding:9px 11px!important;font-size:14px!important;line-height:1.6;box-sizing:border-box;width:100%;resize:vertical;border-radius:8px}.entry-form .office-panel{padding:20px 22px}.entry-form h2{font-size:19px;margin:0 0 16px}.entry-form h3{font-size:15px;margin:20px 0 10px}.entry-form .master-entry{padding:14px 16px;margin:12px 0;border:1px solid #d6e6e9;border-radius:10px;background:#fbfdfd}.entry-form .master-entry>.protected-fields{margin:12px 0 0!important}.entry-form .business-repeat-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.entry-form .master-entry>label{display:flex;flex-direction:column;gap:6px;margin:8px 0}.entry-form .business-tools{gap:10px;margin:14px 0}.entry-form .office-notice{font-size:12px;padding:10px 12px;line-height:1.6}.entry-form fieldset{border:1px solid #d4e5e8;border-radius:10px;padding:12px 16px;margin:18px 0}.entry-form fieldset>label{display:inline-flex;align-items:center;gap:7px;margin:6px 20px 6px 0;font-size:13px}.entry-form fieldset input[type=checkbox]{width:16px;height:16px;margin:0}.entry-form fieldset legend{font-size:14px;font-weight:650;color:#176578}.entry-form .master-categories{display:flex;gap:8px 18px;flex-wrap:wrap}.entry-form .master-categories label{display:flex;align-items:center;gap:6px;font-size:13px}.workflow-entry>.office-panel>label{display:flex;flex-direction:column;gap:6px;margin:14px 0;max-width:560px}.workflow-entry>.office-panel>label.field-wide{max-width:none}.workflow-entry .master-entry{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}.workflow-entry .master-entry>h4{grid-column:1/-1;margin:0}.workflow-entry .master-entry>.field-wide{grid-column:1/-1}.workflow-entry .master-entry>button{align-self:end;justify-self:start}.workflow-entry .recipient-picker>p{margin:8px 0}.workflow-entry .recipient-picker>.office-button{display:block;margin-bottom:10px}
.ledger-editor.entry-form{max-width:1000px;padding:22px 26px}.ledger-editor .protected-fields>.ledger-income-input,.ledger-editor .protected-fields>.ledger-outgoing-input{grid-column:span 3}.ledger-editor .protected-fields>label:last-child{grid-column:1/-1}.ledger-editor .ledger-components{border:0!important;border-top:1px solid #d4e5e8!important;border-radius:0!important;background:none!important;padding:14px 0!important;margin:16px 0!important}.ledger-components h3{margin:0 0 8px}.ledger-components>.muted{max-width:750px;font-size:12px}.ledger-component-row{display:grid;grid-template-columns:minmax(0,1fr) 170px auto;gap:10px;margin:8px 0;max-width:750px}.ledger-component-row input{margin:0}.ledger-editor .ledger-check{display:flex;align-items:center;gap:8px;font-size:12px;margin:12px 0;line-height:1.6}.ledger-editor .ledger-check input{width:16px;height:16px;flex:0 0 16px}.ledger-annotations{border-top:1px solid #d4e5e8;margin:16px 0;padding-top:12px}.ledger-annotations summary{cursor:pointer;font-size:13px;color:#086b7d;font-weight:650}.ledger-notes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:12px}.ledger-notes label{display:flex;flex-direction:column;gap:6px;font-size:12px}.ledger-notes textarea{height:80px}
.settings-card{padding:22px!important}.settings-card>.protected-card-heading{border-bottom:1px solid #d5e7e8;padding-bottom:12px;margin-bottom:16px;display:flex;justify-content:space-between;align-items:center;gap:16px}.settings-card h2{font-size:18px;line-height:1.5;margin:0}.settings-card>.protected-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin:12px 0 18px}.settings-card>.protected-fields>div{padding:11px 0;border-bottom:1px solid #e6eef1;min-width:0;background:none;border-radius:0}.settings-card>.protected-fields>.settings-wide{grid-column:1/-1}.settings-card dt{font-size:12px;color:#6b8595;margin-bottom:5px}.settings-card dd{font-size:14px;color:#193b50;line-height:1.6;margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.settings-card>.protected-logo{max-width:240px;max-height:105px;object-fit:contain;margin:4px 0 8px}.settings-card .document-seal-preview{max-width:200px;max-height:100px;object-fit:contain;margin:10px 16px}.settings-card .bank-brand{width:105px;max-height:55px;object-fit:contain}.settings-form{padding:20px 22px;border:1px solid #d4e5e8;border-radius:12px;background:#fff}.protected-bank-grid{gap:18px!important;align-items:start}.settings-form>.protected-logo{max-width:220px;max-height:100px;object-fit:contain}.settings-form>label{display:flex;flex-direction:column;gap:7px;font-size:13px;margin:12px 0}.settings-form>.protected-toolbar{border-top:1px solid #dce9ed;padding-top:14px;margin-top:20px}
.password-panel{max-width:900px}.password-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:16px 0}.password-fields label{display:flex;flex-direction:column;gap:7px;font-size:13px}.password-fields input{width:100%;height:40px;padding:8px 10px;box-sizing:border-box;border:1px solid #c9dfe6;border-radius:8px;font:inherit}.login-records>summary{cursor:pointer;font-weight:650;color:#12697b;font-size:17px}.login-records[open]>summary{margin-bottom:16px}.login-record-table{min-width:950px}.login-record-table td,.login-record-table th{font-size:12px;padding:10px!important;white-space:nowrap}.login-record-table td:last-child{white-space:normal}.login-record-table button{margin:5px 0;display:block;font-size:11px;padding:6px 10px}
@media(max-width:760px){.entry-form .protected-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:13px!important}.entry-form .protected-fields>label,.entry-form .protected-fields>label.field-medium,.entry-form .protected-fields>label.field-short{grid-column:span 1}.entry-form .protected-fields>label.field-wide{grid-column:1/-1}.entry-form .office-panel,.ledger-editor.entry-form,.settings-form{padding:16px!important}.ledger-notes{grid-template-columns:1fr}.ledger-component-row{grid-template-columns:minmax(0,1fr) 110px auto}.settings-card>.protected-fields{grid-template-columns:1fr}.settings-card>.protected-fields>.settings-wide{grid-column:auto}.protected-bank-grid{grid-template-columns:1fr!important}}
@media(max-width:480px){.entry-form .protected-fields,.workflow-entry .master-entry,.password-fields{grid-template-columns:1fr!important}.entry-form .protected-fields>label{grid-column:1/-1!important}.ledger-component-row{grid-template-columns:minmax(0,1fr) 95px}.ledger-component-row button{grid-column:2;justify-self:end}.ledger-notes{gap:12px}.entry-form .business-tools{flex-wrap:wrap}}
@media(min-width:761px){.entry-form .protected-fields{grid-template-columns:repeat(4,minmax(0,1fr))!important}.entry-form .protected-fields>label{grid-column:span 1}.entry-form .protected-fields>label.field-medium{grid-column:span 2}.entry-form .protected-fields>label.field-wide{grid-column:1/-1}.ledger-editor .protected-fields>.ledger-income-input,.ledger-editor .protected-fields>.ledger-outgoing-input{grid-column:span 2}}
.ledger-editor.entry-form>button{width:auto!important;display:inline-flex!important;margin:8px 10px 0 0!important;padding:9px 16px!important;min-height:36px!important}.ledger-editor.entry-form>.ledger-check{min-height:24px!important;padding:0!important;margin:9px 0!important}.ledger-editor.entry-form>.ledger-check>input{min-height:16px!important}.ledger-editor.entry-form .protected-fields{margin-top:8px!important}.ledger-editor.entry-form textarea{height:72px;min-height:64px!important}
.settings-company>.protected-fields>div:first-child,.settings-bank>.protected-fields>div:first-child{grid-column:1/-1}.protected-bank-grid .settings-form .protected-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}.protected-bank-grid .settings-form .protected-fields>label.field-medium{grid-column:1/-1}.protected-bank-grid .settings-form .protected-fields>label.field-short{grid-column:span 1}
@media(min-width:761px){.workflow-entry[data-kind=payment]>.office-panel>.protected-fields>label:nth-child(2){grid-column:span 3}.workflow-entry[data-kind=notice]>.office-panel>.protected-fields>label:first-child{grid-column:span 3}.workflow-entry[data-kind=reimbursement]>.office-panel>.protected-fields>label:nth-child(2){grid-column:span 3}.workflow-entry[data-kind=reimbursement]>.office-panel>.protected-fields>label:nth-child(3){grid-column:span 3}}

/* R18: requested field rows and an aligned partner type card. */
body.workspace-mode{overscroll-behavior-x:none}.protected-table-wrap{overscroll-behavior-x:contain}.entry-form input[hidden]{display:none!important}.ledger-sync-status{font-size:12px;margin:8px 0;color:#6b8493}
.courier-main-row{grid-column:1/-1;display:grid;grid-template-columns:1.25fr 1fr .85fr 1.15fr;gap:16px 18px;align-items:start}.courier-main-row>label,.courier-amount-pair>label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:13px;color:#31566b;margin:0}.courier-main-row textarea{height:38px!important;min-height:38px!important;line-height:20px}.courier-amount-pair{display:grid;grid-template-columns:minmax(0,1fr) 82px;gap:8px}.master-form>.office-panel>label{max-width:360px}
.entry-form .customer-basic-grid textarea,.entry-form .supplier-basic-grid textarea{height:54px!important;min-height:54px!important}.entry-form .partner-basic-grid textarea{height:72px!important;min-height:72px!important}.master-form .partner-basic-grid>[data-field=type]{border:1px solid #b6dcd6;background:linear-gradient(145deg,#edf8fb,#e9f7ef);border-radius:12px;padding:14px;box-sizing:border-box;justify-content:center;align-items:center;color:#166779;font-weight:650;text-align:center}.master-form .partner-basic-grid>[data-field=type] .partner-type{display:flex;justify-content:center;margin:5px 0 10px}.master-form .partner-basic-grid>[data-field=type] .partner-type svg{width:42px;height:42px}.master-form .partner-basic-grid>[data-field=type] .partner-type span{display:none}.master-form .partner-basic-grid>[data-field=type] select{width:100%;max-width:180px}
@media(min-width:761px){
 .workflow-entry[data-kind=courier]>.office-panel>.courier-linked{grid-template-columns:1.25fr 1.25fr .8fr!important}.workflow-entry[data-kind=courier]>.office-panel>.courier-linked>label{grid-column:auto!important}
 .workflow-entry[data-kind=leave]>.office-panel>.protected-fields>[data-field=reason],.workflow-entry[data-kind=leave]>.office-panel>.protected-fields>[data-field=handover]{grid-column:span 2!important}
 .workflow-entry[data-kind=reimbursement]>.office-panel>.protected-fields{grid-template-columns:2fr 1fr .8fr 1.2fr!important}.workflow-entry[data-kind=reimbursement]>.office-panel>.protected-fields>label[data-field]{grid-column:auto!important}.workflow-entry[data-kind=reimbursement]>.office-panel>.protected-fields>[data-field=description]{grid-column:1/-1!important}
 .master-form .customer-basic-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.master-form .customer-basic-grid>[data-field=name]{grid-column:span 2!important}.master-form .customer-basic-grid>[data-field=country],.master-form .customer-basic-grid>[data-field=phone],.master-form .customer-basic-grid>[data-field=taxType],.master-form .customer-basic-grid>[data-field=taxNumber],.master-form .customer-basic-grid>[data-field=website],.master-form .customer-basic-grid>[data-field=status]{grid-column:span 1!important}
 .master-form .supplier-basic-grid>[data-field=name]{grid-column:span 2!important}.master-form .supplier-basic-grid>[data-field=short],.master-form .supplier-basic-grid>[data-field=region]{grid-column:span 1!important}.master-form .supplier-basic-grid>[data-field=phone],.master-form .supplier-basic-grid>[data-field=status]{grid-column:span 2!important}
 .entry-form .protected-fields.partner-basic-grid{grid-template-columns:1.6fr 1fr .8fr!important}.master-form .partner-basic-grid>[data-field=name]{grid-column:1!important;grid-row:1}.master-form .partner-basic-grid>[data-field=short]{grid-column:2!important;grid-row:1}.master-form .partner-basic-grid>[data-field=address]{grid-column:1!important;grid-row:2}.master-form .partner-basic-grid>[data-field=city]{grid-column:2!important;grid-row:2}.master-form .partner-basic-grid>[data-field=type]{grid-column:3!important;grid-row:1/span 2}.master-form .partner-basic-grid>[data-field=service]{grid-column:1/-1!important}.master-form .partner-basic-grid>[data-field=status]{grid-column:1!important}
}
@media(max-width:760px){.courier-main-row{grid-template-columns:1fr 1fr}.master-form .partner-basic-grid>[data-field=type]{grid-column:1/-1!important}.courier-main-row textarea{height:60px!important}.courier-amount-pair{grid-template-columns:minmax(0,1fr) 80px}}
@media(max-width:480px){.courier-main-row{grid-template-columns:1fr}.courier-amount-pair{grid-template-columns:minmax(0,1fr) 90px}}
.master-form .partner-basic-grid>[data-field=type]{align-self:stretch}
/* R19: compact forms and clearly separated supplier tax ledgers. */
.supplier-ledger-title{font-weight:800;color:#087eb0;font-size:24px}.supplier-ledger-panel{border:1px solid #acd9d7!important}.supplier-ledger-panel h3{color:#087d84;font-weight:800}.ledger-range{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.ledger-range>label{max-width:135px;display:flex;flex-direction:column;gap:6px}.ledger-range-total{font-size:17px;font-weight:700;color:#087e8c}.supplier-payment-parties{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:14px 0}.supplier-payment-parties>label,.supplier-account-stack>label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#31566b}.supplier-account-stack{grid-column:1/-1;display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px;align-items:start}.supplier-account-stack textarea{height:64px!important;min-height:64px!important}.supplier-account-stack>label{grid-column:auto!important}.reimbursement-description-row{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:18px}.reimbursement-description-row>label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#31566b}.reimbursement-description-row textarea{height:88px!important;min-height:88px!important}.voucher-picker{border:1px dashed #8dcac9;background:#f2faf9;border-radius:10px;padding:12px;min-width:0}.voucher-picker h3{font-size:14px;margin:0 0 10px}.voucher-picker input{max-width:100%}.voucher-picker p{font-size:12px;overflow-wrap:anywhere}.company-seals{margin-top:24px}.company-seals-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:18px}.company-seals-grid figure{margin:0;padding:12px;border:1px solid #dce9ed;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:140px}.company-seals-grid figcaption{color:#547386;font-size:13px}.settings-company>.protected-toolbar{margin-top:36px;padding-top:22px;border-top:1px solid #dce9ed}
@media(min-width:761px){.workflow-entry[data-kind=courier]>.office-panel>.courier-linked{grid-template-columns:1.6fr 1fr .85fr 1fr!important}.courier-main-row{grid-template-columns:1.5fr 1.2fr 1fr}.settings-company>.protected-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.workflow-entry[data-kind=supplier_payment]>.office-panel>.protected-fields{grid-template-columns:repeat(4,minmax(0,1fr))!important}.workflow-entry[data-kind=supplier_payment]>.office-panel>.protected-fields>label{grid-column:auto!important}.supplier-account-stack{grid-template-columns:220px minmax(0,1fr)}}
@media(max-width:760px){.supplier-payment-parties{grid-template-columns:1fr}.supplier-account-stack,.reimbursement-description-row{grid-template-columns:1fr}.supplier-account-stack>label{width:100%}.company-seals-grid{gap:10px}.company-seals-grid .document-seal-preview{max-width:100%;margin:8px 0}.ledger-range>label{max-width:110px}}

.supplier-account-stack{grid-template-columns:1fr!important;max-width:720px}.supplier-account-stack>[data-field=accountType]{max-width:260px}.supplier-account-stack textarea{width:100%}
@media(min-width:761px){.settings-form-company>.protected-fields{grid-template-columns:repeat(3,minmax(0,1fr))!important}.settings-form-company>.protected-fields>label{grid-column:auto!important}.settings-form-company>.protected-fields>label:nth-child(-n+2){grid-column:1/-1!important}}

/* R20: one height for supplier-ledger toolbar controls, account type on first row. */
.office-button.supplier-ledger-entry{color:#ffe15a!important;font-weight:800!important}
.supplier-ledger-tools{display:flex;align-items:center!important;gap:12px;flex-wrap:wrap}
.supplier-ledger-tools>label{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;margin:0!important;min-width:0;font-weight:700;white-space:nowrap}
.supplier-ledger-tools>label>select{width:220px;max-width:100%;margin:0!important}
.supplier-ledger-tools>button,.supplier-ledger-tools>input,.supplier-ledger-tools>label>select{height:42px!important;min-height:42px!important;box-sizing:border-box;border-radius:10px;line-height:20px;padding-top:10px!important;padding-bottom:10px!important}
.supplier-ledger-tools>input{flex:1 1 240px;min-width:160px;max-width:380px;margin:0!important}
.supplier-payment-parties>label{min-width:0;align-self:start}
.supplier-payment-parties>label>input,.supplier-payment-parties>label>select{height:38px!important;min-height:38px!important;box-sizing:border-box;margin:0!important}
@media(min-width:1001px){.supplier-payment-parties{grid-template-columns:1.2fr 1fr 1fr .85fr}}
@media(min-width:761px) and (max-width:1000px){.supplier-payment-parties{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.supplier-ledger-tools>label{width:100%;justify-content:space-between}.supplier-ledger-tools>label>select{flex:1;max-width:calc(100% - 60px)}.supplier-ledger-tools>input{max-width:none;flex-basis:100%;width:100%}}
.supplier-payment-parties>label input,.supplier-payment-parties>label select{height:38px!important;min-height:38px!important;box-sizing:border-box;margin:0!important}

.workflow-action-status{margin:12px 0;padding:0;max-width:740px}.workflow-action-status:empty{display:none}.workflow-action-status:not(:empty){padding:12px 14px;background:#eaf5f4;border-radius:10px}.workflow-action-status.workflow-action-error{background:#fff0ed;color:#a62b22;border:1px solid #e9aca4;font-weight:650}.approval-controls .text-date[aria-invalid=true]{border-color:#cc483c}
/* R25 production data: plan -> batch -> packages -> totals -> amounts. */
.production-plan-controls{display:flex;gap:16px;align-items:end;flex-wrap:wrap}.production-plan-controls>label{display:flex;flex-direction:column;gap:7px;max-width:180px}.production-plan-controls .office-button{margin-bottom:0}.production-batch-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,180px));gap:12px;margin:18px 0}.production-batch-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:76px;border:2px solid #b5d4df;background:#e8f2f7;color:#345b70;border-radius:13px;cursor:pointer}.production-batch-card b{font-size:20px}.production-batch-card small{font-size:12px}.production-batch-card.selected{background:linear-gradient(120deg,#087fb6,#0aa77d);border-color:#0b9c97;color:white;box-shadow:0 4px 10px #148eaa30}.production-batch-context,.production-total{font-weight:700;color:#087a91;background:#eaf7f5;padding:12px 15px;border-radius:10px}.production-quantity-review{padding:16px;margin:18px 0;border:1px solid #c7dfe5;border-radius:12px}.production-quantity-review>summary{font-weight:650;color:#326b80;cursor:pointer}.production-plan+.packing-panel{margin-top:18px}@media(max-width:640px){.production-batch-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.production-batch-card{min-height:66px}.production-plan-controls>label{max-width:100%}}
/* R27: compact batch switching and consistent native select text metrics. */
.production-batch-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.production-batch-card{min-height:38px;padding:7px 13px;flex-direction:row;gap:9px;border-width:1px;border-radius:8px;box-shadow:none}.production-batch-card b{font-size:14px;white-space:nowrap}.production-batch-card small{font-size:11px;white-space:nowrap}.production-plan-controls{align-items:end;gap:12px}.production-plan-controls>.production-batch-tabs{flex:1;min-width:160px;margin:0}.production-plan-controls>.muted{flex-basis:100%;order:2}.production-plan-controls>label{max-width:150px}.batch-receipt-card{border-top:1px solid #d4e5e8;padding:14px 0;margin-top:12px}.batch-receipt-card h3{color:#087c94;font-size:16px}.linked-cost-source{grid-column:1/-1;color:#087d8b;overflow-wrap:anywhere}.profit-ledger-entry{color:#ffe56a!important;font-weight:800}.profit-ledger-table{min-width:1200px}.profit-ledger-table th,.profit-ledger-table td{text-align:center;vertical-align:middle}.profit-review-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.business-form select,.protected-toolbar select,.business-tools select,.protected-fields select{height:44px!important;min-height:44px!important;line-height:normal!important;padding-top:5px!important;padding-bottom:5px!important;box-sizing:border-box!important;text-overflow:ellipsis;max-width:100%}.pi-editor select[aria-label="PI抬头"]{height:70px!important;min-height:70px!important}
@media(max-width:700px){.production-batch-card{min-height:36px;padding:7px 10px}.production-batch-card b{font-size:12px}.production-batch-card small{font-size:10px}.production-plan-controls>.production-batch-tabs{flex-basis:100%}.profit-review-fields{grid-template-columns:1fr}.market-grid{min-width:0}.metal-change{white-space:normal!important;overflow-wrap:anywhere}.office-main,.office-banner,.market{min-width:0;max-width:100%}.office-brand img{max-width:100%}}
.partner-selected-name{display:block;white-space:normal;overflow-wrap:anywhere;font-size:11px;color:#547385;font-weight:400;line-height:1.5}
@media(max-width:700px){.business-form input,.business-form select,.business-form textarea{font-size:16px!important}.business-form input[type=checkbox]{width:auto}.profit-ledger-table{font-size:12px}}
@media(max-width:700px){.production-batch-tabs{gap:6px}.production-batch-card{padding:6px 8px;gap:6px}.production-batch-card b{font-size:12px}.production-batch-card small{font-size:10px}}
/* Reserve room for wrapped quote units and the quote-date/status lines on phones. */
@media(max-width:700px){.office-head{height:210px}.office-banner{grid-template-rows:82px 128px}.office-nav{top:210px}.office-main{margin-top:210px;min-height:calc(100vh - 210px)}.market{overflow:visible}.market-status{white-space:normal!important}.metal-date{white-space:normal!important}}
.office-nav-button.profit-ledger-entry.active{background:#175c79;color:#ffe56a!important;box-shadow:inset 4px 0 #ffd34e}
.profit-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.profit-summary-grid .office-panel{padding:16px 20px}.profit-summary-grid h2{font-size:17px;margin-bottom:8px}.profit-summary-grid .ledger-range{gap:9px}.profit-summary-grid input{height:38px;padding:7px 10px;box-sizing:border-box}.profit-summary-grid .ledger-range-total{margin:10px 0 0;font-size:16px}@media(max-width:700px){.profit-summary-grid{grid-template-columns:1fr;gap:0}.profit-summary-grid .ledger-range>label{max-width:90px}}
.history-carried{background:#f1f6f8}.history-change.carried{color:#6b8090;font-size:11px;display:block;white-space:nowrap}
.metal-history-tools label{min-width:0;flex:0 1 165px}.metal-history-tools input{width:100%;box-sizing:border-box}

.batch-delete-request{display:flex;align-items:center;flex-wrap:wrap;gap:10px;border-left-color:#dda944}.batch-delete-request b{flex-basis:100%;overflow-wrap:anywhere}.batch-delete-request small{flex:1;min-width:150px}.batch-delete-request .office-button{white-space:nowrap}

.batch-delete-overlay{position:fixed;inset:0;background:#102f4a66;z-index:1000;display:flex;align-items:center;justify-content:center;padding:18px}.batch-delete-dialog{width:520px;max-width:100%;max-height:90vh;overflow:auto}.batch-delete-dialog label{display:flex;flex-direction:column;gap:8px}.batch-delete-dialog textarea{width:100%;box-sizing:border-box;border:1px solid #b7cfdd;border-radius:10px;padding:10px;font:inherit;color:#183c53}.batch-delete-dialog .office-button{margin:14px 10px 0 0}
/* R31 compact order finance and production surfaces */
.profit-ledger-notice{padding:9px 13px;font-size:12px;margin:10px 0}.profit-ledger-table{min-width:1120px}.profit-ledger-table th{white-space:nowrap!important;font-size:12px}.profit-ledger-table td{padding:7px 9px;line-height:1.4;font-size:12px;white-space:pre-line}.profit-ledger-table td button{padding:6px 10px;white-space:nowrap;margin:0}.profit-summary-grid{gap:12px}.profit-summary-grid .profit-stat-card{padding:10px 14px;margin-bottom:12px}.profit-stat-card h2{font-size:15px;margin:0 0 5px}.profit-stat-card .ledger-range{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.profit-stat-card .ledger-range label{max-width:82px;font-size:11px;gap:3px}.profit-stat-card input{height:31px!important;padding:4px 7px!important}.profit-stat-card .ledger-range-total{display:inline-block;font-size:15px;margin:6px 0 0}.profit-stat-card>small{display:block;font-size:11px}.profit-stat-card .office-button{padding:6px 11px}.profit-review-card{padding:16px 20px}.profit-review-card h2{font-size:19px;margin-bottom:4px}.profit-review-profit{font-weight:750;color:#067d99;font-size:17px;margin:4px 0}.profit-review-card>p.muted{font-size:12px;margin:3px 0 12px}.profit-review-fields{grid-template-columns:130px 140px 110px 150px minmax(150px,1fr);gap:12px;align-items:end}.profit-review-fields label{display:flex;flex-direction:column;font-size:12px;gap:5px}.profit-review-fields input,.profit-review-fields select{width:100%;height:36px!important;min-height:36px!important;padding:5px 8px;border:1px solid #bdd5e3;border-radius:8px;box-sizing:border-box}.profit-review-card>.office-button{margin-top:12px}.profit-review-card .protected-status:empty{display:none}
.batch-receipt-card{padding:10px 0;margin-top:8px}.batch-receipt-card h3{color:#c42935!important;font-weight:800;font-size:16px;margin:0 0 8px}.receipt-entry-layout{display:grid;grid-template-columns:minmax(0,760px);gap:16px;align-items:stretch}.receipt-entry-layout.has-lc{grid-template-columns:minmax(0,1fr) 270px}.receipt-entry-layout>.protected-fields{margin:0;gap:8px 12px;grid-template-columns:repeat(4,minmax(0,1fr));align-content:start}.receipt-entry-layout label{font-size:11px;gap:4px}.receipt-entry-layout input{width:100%;height:34px!important;min-height:34px!important;padding:5px 8px!important}.receipt-lc-files .attachments-panel{height:100%;margin:0!important;border-radius:10px;padding:9px!important;box-sizing:border-box;box-shadow:none}.receipt-lc-files .attachments-panel h3{font-size:12px;color:#28627a!important;margin:0}.receipt-lc-files .attachments-panel .muted{display:none}.receipt-lc-files .attachments-panel .office-button{font-size:11px;padding:5px 7px}.receipt-lc-files .attachments-panel input[type=file]{font-size:11px;height:30px!important;padding:3px!important}.receipt-lc-files .attachments-panel>.protected-status:empty{display:none}
.production-plan{padding:14px 18px}.production-plan>h2{font-size:19px;margin:0 0 10px}.production-plan-controls{gap:8px;align-items:center}.production-plan-controls>label{flex:0 0 95px;max-width:95px;gap:3px!important;font-size:11px;white-space:nowrap}.production-plan-controls>label input{height:34px!important;min-height:34px!important;padding:5px 8px!important}.production-plan-controls>.office-button,.production-batch-card{height:34px;min-height:34px;padding:5px 11px!important;font-size:12px}.production-plan-controls>.production-batch-tabs{margin:0;min-width:0;gap:7px}.production-plan-controls>.muted{display:none}.production-delete-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:9px}.production-delete-tools>.office-button{padding:5px 10px;font-size:11px}.batch-delete-help{margin:0!important;font-size:11px;max-width:650px}.batch-delete-help summary{cursor:pointer;color:#54788d}.production-delete-tools>div:empty{display:none}.production-delete-tools>div:not(:empty){flex-basis:100%}.production-batch-context{padding:7px 10px;font-size:12px;margin:8px 0 0}.production-delete-tools .batch-delete-request{margin:6px 0;padding:9px 12px}.production-delete-tools h3{font-size:14px;margin:4px 0}
.packing-panel{padding:14px 18px}.packing-panel>h2{font-size:18px;margin-bottom:10px}.packing-summary{display:grid;grid-template-columns:minmax(180px,1.25fr) minmax(150px,1fr) 85px minmax(190px,1.4fr);gap:12px;align-items:center;padding:10px 13px;font-size:12px;line-height:1.5}.packing-summary>*{min-width:0}.packing-action-tools{gap:7px;margin:10px 0!important}.packing-action-tools>.office-button,.packing-excel-tools>.office-button{font-size:12px;padding:6px 10px;min-height:32px}.packing-excel-tools{flex-basis:100%;display:flex;gap:8px;align-items:center;flex-wrap:wrap;border-top:1px solid #e0ebf0;padding-top:9px;margin-top:2px}.packing-excel-tools>input[type=file]{width:260px!important;max-width:100%;height:34px!important;min-height:34px!important;padding:4px 6px!important;font-size:12px!important;flex:0 1 260px}.packing-excel-tools>.packing-import-help{margin:0!important;font-size:11px}.packing-excel-tools>.packing-import-help[open]{flex-basis:100%;order:2}.packing-panel>.muted{font-size:11px;margin:6px 0}.packing-panel .execution-table td{padding:8px 10px}.packing-panel .business-tools .office-button{white-space:nowrap}
@media(max-width:1100px){.profit-review-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.receipt-entry-layout.has-lc{grid-template-columns:minmax(0,1fr) 230px}.receipt-entry-layout>.protected-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.packing-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.profit-review-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.profit-review-fields>label:last-child{grid-column:1/-1}.receipt-entry-layout.has-lc{grid-template-columns:1fr}.receipt-entry-layout>.protected-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.production-plan,.packing-panel{padding:12px}.production-plan-controls>.production-batch-tabs{flex-basis:100%;margin-top:3px}.packing-excel-tools>input[type=file]{flex:1 1 160px}.packing-summary{gap:7px;font-size:11px;padding:8px}.profit-ledger-table th{font-size:11px}}
.production-plan-controls{align-items:end}.production-plan-controls>.production-batch-tabs{align-self:end}
.profit-review-card{display:block}.profit-review-card>.office-button{width:auto!important}.profit-review-card>.protected-status:empty{margin:0}
/* R32 readable typography and visible attachment state */
.profit-ledger-table{min-width:1320px;font-size:14px}.profit-ledger-table th{font-size:14px!important;padding:12px 13px;font-weight:750}.profit-ledger-table td{font-size:14px;line-height:1.55;padding:10px 13px}.profit-order-info{min-width:210px}.profit-order-info b,.profit-order-info span{display:block}.profit-order-info b{font-size:14px;color:#116a8d}.profit-order-info span{font-size:14px;color:#36556b;margin-top:3px}.profit-ledger-table td button{font-size:13px}.profit-summary-grid h2{font-size:17px}.profit-stat-card .ledger-range label{font-size:13px}.profit-stat-card input{font-size:14px}.profit-stat-card .ledger-range-total{font-size:17px}.profit-review-profit{font-size:21px;color:#087e93;font-weight:800}.profit-review-fields label{font-size:14px}.profit-review-fields input,.profit-review-fields select{font-size:15px}.profit-back-costs{margin:0 10px 14px 0;font-weight:750}.profit-ledger-notice{font-size:13px}
.important-shipment-date,.important-shipment-date input{color:#c42636!important;font-weight:750!important}.important-shipment-date input{border-color:#dba4ad!important}.important-shipment-date input::placeholder{color:#b46a74}
.attachments-panel{border-left:4px solid #c6d5df;transition:border-color .15s}.attachments-panel[data-attachment-state=present]{border-color:#9bcdb5;border-left-color:#169b67;background:#f5fcf8}.attachments-panel[data-attachment-state=empty]{border-left-color:#b3bfca;background:#fcfdfe}.attachments-panel>h3{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.attachment-state-badge{display:inline-block;font-size:12px;font-weight:750;line-height:1.5;padding:2px 8px;border-radius:20px;background:#e9eef2;color:#64788a;white-space:nowrap}.attachments-panel[data-attachment-state=present] .attachment-state-badge{background:#d9f2e3;color:#08764b}.attachments-panel[data-attachment-state=present] .attachment-row{border-bottom:1px solid #dcece3;padding:7px 0}.attachment-row>span{font-weight:600;overflow-wrap:anywhere}.lc-files-inline .attachments-panel h3{display:flex!important;gap:4px}.lc-files-inline .attachment-state-badge{font-size:11px;padding:1px 5px}
.execution-form{font-size:14px}.execution-form .office-panel>h2{font-size:19px;line-height:1.5;font-weight:750}.execution-form h3{font-size:16px;line-height:1.5;font-weight:700}.execution-form .protected-fields label{font-size:13px;font-weight:600;line-height:1.5}.execution-form .protected-fields input,.execution-form .protected-fields select,.execution-form .protected-fields textarea{font-size:14px;font-weight:400}.execution-form .protected-table th{font-size:13px;font-weight:750}.execution-form .protected-table td{font-size:14px;line-height:1.55}.execution-form .office-button{font-size:13px}.execution-form .muted{font-size:12px;line-height:1.65}.execution-form .batch-receipt-card h3{font-size:16px;color:#c42935}.execution-form .packing-summary{font-size:13px}.execution-form .production-batch-card b{font-size:14px}.execution-form .production-batch-card small{font-size:12px}.execution-form .packing-action-tools .office-button,.execution-form .packing-excel-tools .office-button{font-size:13px}.execution-form .receipt-entry-layout label{font-size:12px}.execution-form .receipt-entry-layout input{font-size:14px}.execution-form .receipt-lc-files h3{font-size:13px}
@media(max-width:700px){.profit-ledger-table th,.profit-ledger-table td{font-size:14px!important}.profit-review-fields input,.profit-review-fields select,.execution-form input,.execution-form select,.execution-form textarea{font-size:16px!important}.execution-form .office-panel>h2{font-size:18px}.execution-form .protected-fields label{font-size:13px}.execution-form .office-button{font-size:12px}.execution-form .packing-summary{font-size:12px}.profit-review-profit{font-size:20px}}
.pi-editor>.office-panel>h2{font-size:19px;font-weight:750;line-height:1.5}.pi-editor label{font-size:13px;font-weight:600;line-height:1.5}.pi-editor input,.pi-editor select,.pi-editor textarea{font-size:14px;font-weight:400}.pi-editor .office-button{font-size:13px}@media(max-width:700px){.pi-editor input,.pi-editor select,.pi-editor textarea{font-size:16px!important}.pi-editor>.office-panel>h2{font-size:18px}}
.execution-form input:not([type=file]):not([type=checkbox]):not([type=radio]),.execution-form select,.execution-form textarea{font-size:14px!important}.pi-editor input:not([type=file]):not([type=checkbox]):not([type=radio]),.pi-editor select,.pi-editor textarea{font-size:14px!important}@media(max-width:700px){.execution-form input:not([type=file]):not([type=checkbox]):not([type=radio]),.execution-form select,.execution-form textarea,.pi-editor input:not([type=file]):not([type=checkbox]):not([type=radio]),.pi-editor select,.pi-editor textarea{font-size:16px!important}}
.execution-form .document-card select{font-size:14px!important}@media(max-width:700px){.execution-form .document-card select{font-size:16px!important}}
/* R33 order information card and closeable attachment preview */
.profit-order-info{min-width:240px;max-width:310px}.profit-order-card{background:linear-gradient(115deg,#087fb8,#13a77a);border-radius:10px;padding:8px 12px;min-width:210px;line-height:1.55;text-align:center}.profit-order-card b{color:white;font-size:14px}.profit-order-card .profit-order-ci{color:white;font-size:14px;margin:3px 0}.profit-order-card .profit-order-customer{color:#ffeb9c;font-size:14px;font-weight:650;margin:0;white-space:normal;overflow-wrap:anywhere}.profit-review-profit-bar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:5px 0 10px}.profit-review-profit-bar .profit-review-profit{margin:0}.profit-review-profit-bar .profit-back-costs{color:#ffe56a!important;font-weight:800;margin:0;padding:8px 13px;white-space:nowrap}.attachment-close-preview{display:inline-block;margin:4px 10px 8px 0!important;font-weight:750}.attachments-panel .protected-status>a{overflow-wrap:anywhere}.attachments-panel .attachment-preview-image,.attachments-panel .attachment-preview-pdf{display:block;margin-top:8px}

/* R34: actionable order information card */
button.profit-order-card{display:block;width:100%;border:0;cursor:pointer;font-family:inherit;color:white;transition:box-shadow .15s}button.profit-order-card:hover{box-shadow:0 0 0 3px #a8ddd4}button.profit-order-card:focus-visible{outline:3px solid #e5ae14;outline-offset:3px}
.profit-ledger-table{min-width:1180px}

.factory-spec-tools{display:flex;gap:8px;align-items:center;margin:8px 0}.factory-spec-tools .office-button{padding:6px 16px;min-height:34px;font-size:14px}

.factory-spec-tools{flex-wrap:nowrap}.factory-spec-tools .office-button{white-space:nowrap;flex:0 0 auto}@media(max-width:600px){.factory-spec-tools{gap:6px}.factory-spec-tools .office-button{padding:6px 9px;font-size:13px}}

.shared-lc-card{padding:12px;margin:10px 0 16px;border:1px solid #b9dcd8;border-radius:10px;background:#f1faf8}.shared-lc-card>h3{margin:0 0 10px;color:#167d88}.receipt-entry-layout>.shared-lc-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.shared-lc-card .receipt-entry-layout{align-items:start}@media(max-width:700px){.receipt-entry-layout>.shared-lc-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}

.receipt-entry-layout.shared-lc-batch{grid-template-columns:minmax(0,1fr)}.receipt-entry-layout.shared-lc-batch>.protected-fields{grid-template-columns:repeat(5,minmax(0,1fr))}@media(max-width:1100px){.receipt-entry-layout.shared-lc-batch>.protected-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.receipt-entry-layout.shared-lc-batch>.protected-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* R38 shared LC compact layout */
.execution-form .shared-lc-card{padding:10px 12px;margin:8px 0 12px}.execution-form .shared-lc-card>h3{font-size:15px;margin:0 0 8px}.execution-form .shared-lc-card .receipt-entry-layout{grid-template-columns:minmax(0,1.7fr) minmax(285px,1fr);gap:14px}.execution-form .shared-lc-card .shared-lc-fields{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px}.shared-lc-card .receipt-lc-files .attachments-panel{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px!important;min-height:0;height:auto}.shared-lc-card .receipt-lc-files .attachments-panel h3{flex-basis:100%;font-size:12px;margin:0}.shared-lc-card .receipt-lc-files input[type=file]{flex:1;min-width:130px;width:130px}.shared-lc-card .receipt-lc-files .attachments-panel>small{flex-basis:100%;font-size:11px;line-height:1.4}.shared-lc-card .attachment-row{flex-basis:100%}.shared-lc-conflicts{margin:8px 0 0;padding:6px 9px;border-radius:6px;background:#fff5df;color:#88530e;font-size:12px}.shared-lc-conflicts summary{cursor:pointer;font-weight:650}.shared-lc-conflicts p{margin:6px 0}.shared-lc-conflicts .protected-table{margin:5px 0;font-size:12px}.shared-lc-conflicts .protected-table th,.shared-lc-conflicts .protected-table td{padding:5px 8px;font-size:12px!important;line-height:1.45}@media(max-width:800px){.execution-form .shared-lc-card .receipt-entry-layout{grid-template-columns:1fr;gap:8px}.execution-form .shared-lc-card .shared-lc-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

.ledger-component-name{display:flex;align-items:center;gap:8px;min-width:0}.ledger-component-name select{width:100%;min-width:0}.ledger-component-name input:not([hidden]){width:100%;min-width:0}.ledger-component-name input[hidden]{display:none!important}@media(max-width:700px){.ledger-component-name{flex-wrap:wrap;gap:5px}}

/* R41: preserve readable columns on phones instead of squeezing Chinese into vertical text. */
.master-list{table-layout:auto;min-width:1000px}.master-list th{white-space:nowrap!important}.master-list td{vertical-align:middle}.master-list th:last-child,.master-list td:last-child{min-width:226px;white-space:nowrap!important}.master-list-actions .office-button{display:inline-flex!important;margin:3px 5px 3px 0!important;padding:8px 12px;white-space:nowrap!important}.master-list-supplier th:first-child,.master-list-supplier td:first-child{width:240px;min-width:200px;max-width:260px;white-space:normal;overflow-wrap:anywhere}.master-list-supplier td:nth-child(2){min-width:135px}.supplier-short-region{display:flex;flex-direction:column;gap:5px}.supplier-short-region span{white-space:nowrap}.master-list-supplier td:nth-child(5),.master-list-customer td:nth-child(6),.master-list-partner td:nth-child(4),.master-list-partner td:nth-child(5),.master-list-partner td:nth-child(7){white-space:nowrap!important;word-break:normal;overflow-wrap:normal;min-width:90px}.master-list-supplier th:nth-child(5){min-width:90px}.profit-rejection-note{display:block;color:#b42c38;white-space:normal;max-width:230px}.profit-reject-button{background:#bc2939!important;margin:12px 0 0 12px}.profit-ledger-table td .profit-rejection-note+button{display:block;margin:6px auto}.master-list-partner{min-width:1120px}
