:root{--nav:#101e35;--nav2:#1e324f;--blue:#4e97df;--deep:#1a4d85;--text:#233147;--muted:#6f7f92;--border:#dae2ea;--bg:#f4f6f9;--paper:#fff}*{box-sizing:border-box}body{margin:0;color:var(--text);background:var(--bg);font:14px/1.48 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}.shell{display:flex;min-height:100vh}.sidebar{width:242px;background:var(--nav);color:#eaf1f8;flex-shrink:0;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;padding:22px 14px}.brand{display:flex;align-items:center;gap:11px;margin:0 7px 31px}.brand b{font-size:19px;letter-spacing:.4px}.brand small{display:block;color:#a4b7ce;font-size:11px}.brandmark{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#4b95e0;font-weight:800;font-size:18px}.side-label{text-transform:uppercase;letter-spacing:1px;font-size:10px;color:#7f9dbd;padding:10px 12px}.sidebar nav{display:grid;gap:5px;margin-bottom:21px}.sidebar nav button{color:#bfd0e3;text-align:left;border:0;background:transparent;padding:12px 14px;border-radius:9px;display:flex;justify-content:space-between;align-items:center;font-size:13px;cursor:pointer}.sidebar nav button:hover,.sidebar nav button.active{background:var(--nav2);color:#fff}.sidebar nav button.active{box-shadow:inset 3px 0 #65adf4}.badge{font-size:10px;border-radius:12px;background:#335576;padding:1px 7px}.history{overflow:auto;min-height:100px;flex:1}.history button{display:block;width:100%;text-align:left;border:1px solid #30445f;background:#182b46;padding:9px 10px;border-radius:8px;color:#dce7f3;margin-bottom:6px;cursor:pointer}.history button.active{border-color:#89b9e8;background:#28466c}.history small{display:block;color:#9ab2ca}.side-bottom{display:grid;gap:6px}.workspace{flex:1;min-width:0;display:flex;flex-direction:column}.toolbar{min-height:106px;background:#fff;border-bottom:1px solid var(--border);padding:17px 27px;display:flex;align-items:center;justify-content:space-between;gap:16px}.tiny-title{font-size:10px;letter-spacing:1.8px;font-weight:750;color:#6e9cce}.toolbar h1{font-size:22px;margin:3px 0}.status{font-size:12px;color:#7b8da1}.toolbar-buttons{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}button{font:inherit;cursor:pointer;border-radius:7px;padding:8px 12px;border:1px solid #d0dbe6;background:#fff;color:#31516e;transition:background .1s}button:hover{background:#eef5fc}button:disabled{opacity:.42;cursor:not-allowed}.primary{background:#367dc5;color:#fff;border-color:#367dc5}.primary:hover{background:#246aae}.primary.outline{background:#eaf4ff;color:#2373bd}.secondary{background:#fff}.sidebar .secondary{background:#263d5b;color:#e2ecf6;border-color:#395574}.block{width:100%}.flat{border:0;background:transparent;font-weight:700;color:#356f9f;padding:5px 10px}.content{display:grid;grid-template-columns:minmax(365px,450px) minmax(500px,1fr);gap:0;flex:1;min-height:0}.editor{background:#fff;border-right:1px solid var(--border);padding:0 21px 24px;max-height:calc(100vh - 160px);overflow-y:auto}.edit-head{position:sticky;top:0;z-index:2;background:#fff;padding:18px 0 12px;border-bottom:1px solid #edf1f5;margin-bottom:14px}.edit-head h2{margin:0;font-size:16px}.edit-head p{margin:4px 0 0;color:var(--muted);font-size:12px}.section{border:1px solid #e1e8ef;border-radius:10px;overflow:hidden;margin:14px 0;background:#fff}.section h3{padding:10px 13px;margin:0;background:#f5f8fb;color:#46627f;font-size:13px;display:flex;justify-content:space-between}.fields{padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:11px}.field.wide{grid-column:span 2}.field label{font-size:11px;color:#60758a;font-weight:650;display:block;margin-bottom:4px}.field input,.field select,.field textarea,.mini input,.mini select{width:100%;padding:8px 9px;outline:0;border:1px solid #d6e0e9;background:#fff;border-radius:6px;font:inherit;min-width:0}.field textarea{resize:vertical;min-height:64px}.field input:focus,.field select:focus,.field textarea:focus,.mini input:focus{border-color:#64a7e5;box-shadow:0 0 0 2px #e8f2fb}.lines{display:grid;gap:10px;padding:12px}.line-box{border:1px solid #e0e8f0;padding:11px;border-radius:8px}.line-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.line-top b{font-size:12px}.line-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.mini label{display:block;font-size:10px;color:#60758a;margin-bottom:3px}.line-image{max-width:90px;max-height:70px;object-fit:contain;border:1px solid #e0e6ee;padding:4px;border-radius:4px}.small{font-size:11px}.add-row{margin:0 12px 12px;background:#eaf5ff;color:#236aa7;border:1px dashed #98c4e9;width:calc(100% - 24px)}.note{background:#f1f7fd;border-left:3px solid #5e9ed9;font-size:12px;padding:9px;margin:12px 0;color:#486480}.warning{background:#fff7e7;border-color:#deac59;color:#9c6112}.danger{color:#bb4d4d;font-size:11px;border:0;padding:3px 6px}.preview-area{max-height:calc(100vh - 160px);overflow-y:auto;display:flex;align-items:center;flex-direction:column;padding:14px 12px 42px;background:#eef2f6}.preview-tools{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#fff;border:1px solid #e0e7ee;box-shadow:0 1px 4px #1f3b5d0c;padding:9px 13px;border-radius:9px;width:min(100%,800px);margin-bottom:14px;font-size:12px;color:#657b91}.preview-tools label{margin-left:7px}.preview-tools select{border:1px solid #d9e3ed;padding:5px;border-radius:5px;color:#315775}.paper{width:794px;max-width:100%;min-height:1123px;background:white;box-shadow:0 6px 30px #263d501f;padding:38px 44px;flex-shrink:0}.print-hint{color:#8797a8;font-size:11px;max-width:780px;text-align:center;margin-top:16px}.bottom-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:48px;padding:8px 21px;background:#fff;border-top:1px solid var(--border);font-size:11px;color:#7590a7}.paper .doc{font-family:Arial,"Microsoft YaHei",sans-serif;color:#152638;font-size:10.5px;line-height:1.38}.paper .doc-title{text-align:center;font-size:26px;color:#86a8df;margin:4px 0 17px;font-weight:750}.paper .doc-title.alt{font-size:23px;color:#326caa;text-transform:uppercase}.paper .doc-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;min-height:74px}.paper .company{font-size:12px;font-weight:700}.paper .muted{color:#637387}.paper .logo{max-width:145px;max-height:72px;object-fit:contain;align-self:center}.paper .blue{background:#60a4ea;color:#fff;font-weight:700}.paper .blue-light{background:#e5f1ff}.paper .meta{display:flex;justify-content:space-between;align-items:center;padding:7px 12px;gap:12px}.paper .section-label{padding:6px 9px;font-weight:750;background:#60a4ea;color:#fff}.paper .box{border:1px solid #b9c6d5;padding:9px}.paper .grid2{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:10px 0}.paper p{margin:4px 0}.paper .tbl{border-collapse:collapse;width:100%;table-layout:fixed;margin:11px 0}.paper .tbl th{background:#60a4ea;color:#fff;padding:7px 5px;border:1px solid #a8bdcf;font-size:9.2px;word-break:break-word}.paper .tbl td{vertical-align:top;border:1px solid #c4d0dc;padding:7px 5px;word-break:break-word}.paper .tbl tr{break-inside:avoid}.paper .tbl thead{display:table-header-group}.paper .num{text-align:right;white-space:nowrap}.paper .center{text-align:center}.paper .row-image{max-height:58px;max-width:76px;object-fit:contain;display:block;margin-top:4px}.paper .terms{white-space:pre-line;color:#3b4c60;min-height:30px}.paper .signs{display:flex;justify-content:space-between;gap:30px;margin-top:34px}.paper .signature{border-top:1px solid #587b9b;padding-top:7px;width:42%;min-height:40px;text-align:center;font-size:10px}.paper .totals{margin-left:auto;width:43%;border-collapse:collapse}.paper .totals td{border:1px solid #c2d0de;padding:6px}.paper .totals td:first-child{background:#60a4ea;color:#fff;font-weight:750}.paper .draft-mark{position:absolute;pointer-events:none;top:44%;left:29%;font-size:64px;font-weight:800;color:#d2dce442;transform:rotate(-28deg)}.paper .doc{position:relative;min-height:980px}.paper .qt-cols th:nth-child(1){width:5%}.paper .qt-cols th:nth-child(2){width:38%}.paper .qt-cols th:nth-child(3){width:9%}.paper .qt-cols th:nth-child(4){width:17%}.paper .qt-cols th:nth-child(5){width:14%}.paper .qt-cols th:nth-child(6){width:17%}.paper .theme-clean .section-label,.paper .theme-clean .blue,.paper .theme-clean .tbl th,.paper .theme-clean .totals td:first-child{background:#324d66}.paper .theme-clean .doc-title{color:#324d66}.empty-panel{padding:40px 12px;color:#6d8196;text-align:center}.history-row{border:1px solid #e1e7f0;padding:12px;border-radius:8px;margin:9px 0;background:#fff}.history-row p{margin:3px 0;color:#647e94}.history-row button{margin-right:4px}.hide{display:none!important}
@media(max-width:1300px){.content{grid-template-columns:minmax(330px,430px) 1fr}.paper{transform:scale(.87);transform-origin:top center;margin-bottom:-150px}}@media(max-width:990px){.sidebar{width:188px;padding:14px 9px}.content{display:block}.editor,.preview-area{max-height:none}.preview-area{padding:20px}.paper{transform:none;margin-bottom:0}.toolbar{padding:12px 15px}.toolbar h1{font-size:18px}}@media(max-width:680px){.shell{display:block}.sidebar{position:static;height:auto;width:auto}.sidebar nav{display:grid;grid-template-columns:repeat(5,1fr)}.sidebar nav button{font-size:11px;padding:9px 4px}.sidebar nav button .badge,.sidebar .side-label,.sidebar .history,.sidebar .side-bottom{display:none}.brand{margin:2px 8px 10px}.toolbar{display:block}.toolbar-buttons{justify-content:flex-start;margin-top:12px}.paper{width:794px;transform:scale(.58);transform-origin:top left;margin-bottom:-465px;max-width:none}.preview-area{display:block;overflow:hidden}.preview-tools{display:block}.content{display:block}}
@page{size:A4 portrait;margin:10mm}@media print{html,body{width:190mm;height:auto;margin:0;padding:0;background:white;-webkit-print-color-adjust:exact;print-color-adjust:exact}.shell,.workspace,.content,.preview-area{display:block!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:0!important;background:white!important}.no-print{display:none!important}.paper{width:190mm;max-width:190mm;min-height:0;margin:0!important;box-shadow:none;padding:0!important;transform:none!important}.paper .doc{min-height:0}.paper .tbl thead{display:table-header-group}.paper .tbl tr,.paper .signs,.paper .box{break-inside:avoid}.paper .section-label,.paper .tbl th,.paper .blue{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

.field input[type=checkbox],.mini input[type=checkbox]{width:auto;margin:0 5px 0 0;vertical-align:middle}.paper .signs,.paper .totals{break-inside:avoid}.toolbar-buttons{max-width:690px}.toolbar-buttons button{font-size:12px}.paper .doc-header,.paper .doc-title{break-inside:avoid}

.paper .tbl small{display:block;margin-top:3px;color:#637387}.paper .dimension{white-space:nowrap;font-size:8.5px}
/* V1 library workbench: restrained ink / jade, dense business data, clear actions. */
:root{--nav:#102c30;--nav2:#1d4246;--blue:#438f94;--deep:#24686d;--bg:#f3f5f3;--text:#243d40;--border:#dce5e1;--muted:#738583}body{font-family:"PingFang SC","Microsoft YaHei",-apple-system,sans-serif}.sidebar{width:224px;padding:26px 14px}.brand{margin-bottom:28px}.brandmark{background:#a5cbb8;color:#173b35;border-radius:9px}.brand small{color:#a1bbb7;margin-top:4px}.sidebar nav button.active{box-shadow:inset 3px 0 #99cbb2}.sidebar nav button:hover,.sidebar nav button.active{background:#1d4246}.sidebar nav{margin-bottom:15px}.sidebar #docNav{gap:0}.sidebar #docNav button{padding:8px 14px;font-size:12px}.sidebar-local{padding:14px 10px;font-size:12px;color:#d2e3da}.sidebar-local small{display:block;font-size:10px;color:#8eaca4;margin:5px 0 0 13px}.sidebar-local i,.local-status i{display:inline-block;width:6px;height:6px;background:#8bceaa;border-radius:50%;margin-right:7px}.side-bottom{margin-top:auto}.sidebar .secondary{background:#1d4246;border-color:#355a5e;color:#d9e9e3}.history{max-height:180px}.history button{background:#16373b;border-color:#32565a}.toolbar{min-height:100px;padding:19px 30px}.tiny-title{color:#46847a;letter-spacing:1.5px}.toolbar h1{font-size:24px;letter-spacing:.4px}.primary{background:#237c6d;border-color:#237c6d}.primary:hover{background:#186354}.primary.outline{background:#e8f4ef;border-color:#a9cec0;color:#206b5c}button{border-color:#ccdcd5;color:#315c54}button:hover{background:#ecf4ef}button:focus-visible{outline:2px solid #237c6d;outline-offset:3px}.flat{color:#246e5e}.content{flex:1}.content.library-view{display:block}.library-view .preview-area{display:none}.library-view .editor{max-height:none;overflow:visible;background:transparent;border:0;padding:28px 32px 36px}.library-view .edit-head:empty{display:none}.library-view .edit-head{position:static;background:transparent}.bottom-bar{margin-top:auto;color:#6b857a}.page-heading,.dashboard-intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px;gap:20px}.page-heading h2{font-size:28px;margin:5px 0}.page-heading p,.dashboard-intro p{color:var(--muted);margin:7px 0}.eyebrow{font-size:10px;letter-spacing:1.4px;font-weight:700;color:#6e9184}.dashboard-intro{padding:12px 0 18px;border-bottom:1px solid var(--border)}.dashboard-intro h2{font-size:30px;font-weight:650;letter-spacing:1px;margin:9px 0}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:24px 0 30px}.metric-card{background:white;text-align:left;border:1px solid var(--border);border-radius:10px;padding:20px 22px;display:grid;gap:7px}.metric-card>span{font-size:13px;color:#677d76}.metric-card strong{font-family:Georgia,serif;font-weight:500;font-size:42px;line-height:1.2;color:#173d35}.metric-card small{color:#6d9b84;font-size:11px}.dashboard-columns{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:25px}.panel-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.panel-title h3{margin:0;font-size:17px}.start-panel{background:#e4eee7;border:1px solid #cfdfd4;border-radius:10px;padding:24px}.start-panel h3{font-size:19px;line-height:1.5}.start-panel ol{padding-left:20px;color:#587064;font-size:12px;line-height:2.9}.start-panel button{width:100%;background:#f4f8f4}.local-status{margin-top:22px;font-size:11px;color:#668d78}.library-tools,.library-command{display:flex;align-items:center;gap:12px;margin-bottom:15px;flex-wrap:wrap}.library-tools input[type=text],.library-tools>input,.library-tools select,.case-search{border:1px solid #d6e2da;padding:10px 12px;border-radius:7px;background:white;font:inherit;color:#36594e}.library-tools>input{width:320px}.library-tools label{color:#71857c;font-size:12px}.library-count{margin-left:auto;font-size:12px;color:#71857c}.library-command button{font-size:12px}.table-wrap{overflow:auto;background:white;border:1px solid var(--border);border-radius:10px}.library-table{border-collapse:collapse;width:100%;font-size:13px;text-align:left}.library-table th{background:#eef3ef;padding:13px 16px;color:#6e847a;font-size:11px;font-weight:650;white-space:nowrap}.library-table td{padding:15px 16px;border-top:1px solid #edf1ee;vertical-align:middle}.library-table tr:hover td{background:#fbfdfb}.library-table b{font-weight:600;display:block}.library-table small{display:block;color:#8b9b91;margin-top:3px;font-size:11px}.library-table td:not(.row-actions){max-width:340px;overflow-wrap:anywhere}.product-thumb img{width:48px;height:48px;object-fit:contain}.image-placeholder{font-size:10px;color:#a4b5aa;display:grid;place-items:center;background:#f0f4ef;width:46px;height:46px;border-radius:5px}.record-initial{display:grid;place-items:center;width:32px;height:32px;background:#eaf1e7;color:#6d8b5e;border-radius:8px}.pill{display:inline-block;font-size:10px;border-radius:4px;padding:4px 7px;white-space:nowrap}.pill.on{background:#e7f2eb;color:#357554}.pill.off{background:#f0f0eb;color:#9a956f}.row-actions{white-space:nowrap}.row-actions button{font-size:11px;padding:5px 8px}.empty-state{text-align:center;padding:65px 25px;color:#899b90}.empty-state h3{font-size:18px;color:#587868}.empty-state p{font-size:13px}.empty-symbol{font-size:28px;border:1px dashed #a9c2b1;border-radius:10px;width:60px;height:60px;display:grid;place-items:center;margin:auto}.pagination{display:flex;justify-content:flex-end;align-items:center;gap:10px;font-size:11px;color:#83978a;margin-top:14px}.case-card{background:#fff;padding:20px 24px;border:1px solid var(--border);border-radius:10px;margin-bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:20px}.case-card h3{font-size:17px;margin:5px 0}.case-card p{color:#899b90;font-size:12px}.case-types{display:flex;gap:8px}.document-controls{padding:10px 26px;background:#f7faf7;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#87a08e}.document-controls[hidden]{display:none}.segmented{display:flex;gap:3px}.segmented button{border:0;background:transparent;font-size:12px}.segmented button.active{background:#e2eee5;color:#276949}.content.preview-only{display:block}.preview-only .editor{display:none}.preview-only .preview-area{max-height:none}.preview-only .paper{width:794px}.call-library{padding:14px;background:#edf5f0;border:1px solid #cbded1;border-radius:8px;display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.call-library button{font-size:11px;background:#fff;color:#286955}.call-library small{flex-basis:100%;font-size:10px;color:#708e7b}.settings-tabs{display:flex;gap:8px;margin:0 0 24px}.settings-tabs button.active{background:#e2eee6;color:#2d7250}.data-path{font-size:12px;overflow-wrap:anywhere;background:#e9f0e9;padding:12px 15px;border-radius:6px}.migration-actions{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0}dialog{border:1px solid #ccdbd0;border-radius:12px;padding:0;width:min(880px,92vw);max-height:88vh;box-shadow:0 20px 90px #14332233;color:var(--text)}dialog::backdrop{background:#102c3066;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;padding:18px 24px;border-bottom:1px solid var(--border);background:#f5f8f4}.dialog-heading h2{font-size:18px;margin:0}.dialog-heading button{font-size:22px;border:0;background:transparent;padding:0 6px}.dialog-body,#dialogContent{padding:22px 24px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-grid label{font-size:12px;color:#71867a;display:block}.form-grid label.wide{grid-column:span 2}.form-grid input,.form-grid select,.form-grid textarea,.picker-search,.import-mapping select,.import-controls select{display:block;width:100%;font:inherit;color:#2c5040;padding:10px 11px;border:1px solid #cfddd2;border-radius:6px;margin-top:6px}.form-grid textarea{min-height:75px;resize:vertical}.form-grid input[type=checkbox]{display:inline;width:auto}.dialog-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;padding-top:15px;border-top:1px solid #e2eae1}.form-error{color:#b25245;font-size:12px;margin-top:14px;white-space:pre-line}.picker-list{max-height:430px;overflow:auto;margin:15px 0}.picker-row{display:flex;align-items:center;gap:12px;padding:12px 5px;border-bottom:1px solid #e8ede6}.picker-row img{width:40px;height:40px;object-fit:contain}.picker-row>div{flex:1}.picker-row small{display:block;color:#8a9e8c;font-size:11px}.picker-row input[type=text],.picker-row input[type=number]{width:85px;border:1px solid #d4e0d4;padding:7px;border-radius:5px}.pick-record{display:block;width:100%;text-align:left;margin-bottom:8px;padding:13px}.pick-record small{display:block;color:#869b88;font-size:11px}.image-preview img{height:65px;width:90px;object-fit:contain;margin:8px 0}.import-controls{display:grid;gap:15px}.import-controls label{color:#738e78;font-size:12px}.import-mapping{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-height:280px;overflow:auto;margin:15px 0}.import-mapping label{font-size:11px;color:#768f7a}.import-preview th,.import-preview td{padding:10px;font-size:11px}.import-stats{background:#edf5ee;padding:12px;font-size:12px;border-radius:6px;margin:15px 0}.modal-note{color:#7c9480;font-size:12px}.danger-text{color:#b15c48}.case-search{margin-bottom:18px;width:320px}
[hidden]{display:none!important}@media(max-width:1200px){.dashboard-columns{grid-template-columns:1fr}.start-panel{display:none}.metric-grid{gap:10px}.library-view .editor{padding:22px}.sidebar{width:200px}.toolbar{padding:16px 22px}}@media(max-width:850px){.metric-grid{grid-template-columns:1fr 1fr}.sidebar{width:175px}.page-heading h2,.dashboard-intro h2{font-size:23px}.case-types{display:none}.form-grid{grid-template-columns:1fr}.form-grid label.wide{grid-column:span 1}.toolbar-buttons{max-width:320px}}@media print{.content.library-view .editor{display:none!important}.document-controls,dialog{display:none!important}}
/* Keep company/settings controls reachable as business records grow. */
@media screen{.sidebar{overflow-y:auto}.sidebar>*{flex-shrink:0}.sidebar .history{max-height:220px;min-height:0}.sidebar nav{margin-bottom:12px}}
/* V1.2: business steps and shipment-based customs workspace. */
.workflow-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;list-style:none;padding:0;margin:24px 0}.workflow-steps li{border:1px solid #dbe4dd;border-radius:10px;padding:16px 12px;background:#fff;display:grid;grid-template-columns:28px 1fr;gap:4px 8px}.workflow-steps li>span{grid-row:span 2;display:grid;place-items:center;align-self:start;width:27px;height:27px;border-radius:50%;background:#edf0eb;color:#849486}.workflow-steps li.complete{border-color:#bdd8c5;background:#f0f8f2}.workflow-steps li.complete>span{background:#34725a;color:white}.workflow-steps b{font-size:12px}.workflow-steps small{font-size:10px;color:#819788}.workflow-actions,.source-links{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:13px 0}.workflow-actions button,.source-links button,.button-link{font-size:12px}.button-link{display:inline-block;text-decoration:none;color:#28684f;border:1px solid #cbded1;border-radius:7px;padding:8px 12px;background:#fff}.batch-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px}.batch-card,.customs-case{border:1px solid #d6e2d8;border-radius:12px;padding:20px;background:#fff}.customs-case{margin:20px 0}.customs-case .batch-card{background:#f7faf6}.batch-card h3,.customs-case h3{font-size:16px;margin:0;overflow-wrap:anywhere}.batch-card .panel-title{gap:12px;align-items:start}.batch-card .pill{white-space:nowrap}.source-links button{padding:6px 9px;text-align:left}.workflow-warning{color:#a46a27;font-size:12px;background:#fff8ea;border-radius:7px;padding:10px 12px}.workflow-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:20px 0}.workflow-metrics>div{background:#eff5ef;border-radius:10px;padding:20px;display:flex;gap:16px;align-items:center}.workflow-metrics b{font-size:30px;color:#315f4e}.workflow-metrics span{color:#768d7e;font-size:12px}.preparation-panel{border:1px solid #bcd8c7;background:#f1f8f3;border-radius:10px;padding:14px;margin:12px 0}.preparation-panel h3{font-size:14px;margin:0}.preparation-panel p{font-size:11px;color:#718977}.checklist{margin-top:12px;font-size:11px}.checklist summary{cursor:pointer;color:#3c6d52;padding:6px 0}.checklist ul{margin:5px 0;padding-left:16px;line-height:1.8}.checklist button{background:transparent;border:0;text-align:left;padding:4px 0;font-size:11px;color:#95612e}.diff-table td{white-space:pre-wrap;overflow-wrap:anywhere;max-width:300px;font-size:12px;vertical-align:top}.bank-preview{background:#edf5ee;border:1px solid #c9ded1;border-radius:8px;padding:14px;margin:15px 0;overflow-wrap:anywhere;font-size:12px;color:#306349}.workflow-actions+.section{margin-top:8px}#customsIdentity .field>div{font-size:12px;overflow-wrap:anywhere}#dialogContent>label.field input{width:100%}@media(max-width:1100px){.workflow-steps{grid-template-columns:repeat(3,1fr)}.workflow-metrics{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.workflow-steps{grid-template-columns:repeat(2,1fr)}.batch-grid{grid-template-columns:1fr}.workflow-metrics{grid-template-columns:repeat(2,1fr)}}

.paper .customs-summary{display:grid;grid-template-columns:1fr 1fr;gap:4px 14px;margin:10px 0}.paper .customs-summary p{overflow-wrap:anywhere;margin:2px 0}

.account-page{padding:32px 16px;background:#eff4f1}.account-card{max-width:960px;margin:0 auto;background:white;padding:32px;border-radius:16px}.account-form{display:grid;gap:14px;max-width:440px;margin:24px 0}.account-form label{display:grid;gap:6px}.account-form input,.account-form select{padding:12px;border:1px solid #bacbc2;border-radius:7px;font:inherit;min-width:0}#accountError{color:#a83232;white-space:pre-wrap}.account-card h2{margin-top:36px}
