:root{--ink:#20364f;--ink2:#40556f;--muted:#75879c;--nav:#12284a;--nav2:#1c3a63;--teal:var(--ui-primary);--teal2:#348ef3;--blue:var(--ui-primary);--bg:#f7f9fc;--surface:#fff;--line:#e4ebf3;--soft:#eff5ff;--warn:#ad741b;--danger:#ba4e4e;--radius:12px;--shadow:0 3px 16px rgba(27,65,111,.07);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}svg{vertical-align:middle;flex:none}h1,h2,h3,h4,p{margin-top:0}h1{font-size:24px;letter-spacing:-.4px}h2{font-size:18px}h3{font-size:16px}p{line-height:1.65}.muted{color:var(--muted)}.small{font-size:12px}.tiny{font-size:11px}.mono{font-variant-numeric:tabular-nums;font-family:ui-monospace,Consolas,monospace}.boot{display:flex;height:100vh;flex-direction:column;justify-content:center;align-items:center}.boot-logo{font-size:36px;font-weight:850;color:var(--nav)}.boot-logo span{color:#e58e39}.boot p{color:var(--muted);font-size:13px;margin-top:12px}
.layout{display:flex;min-height:100vh}.sidebar{background:var(--nav);width:252px;min-width:252px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;color:#c5d8dd;z-index:20}.brandbox{padding:22px 19px 16px;border-bottom:1px solid #ffffff12}.brand{font-size:22px;letter-spacing:.3px;color:white;font-weight:850;display:flex;align-items:center;gap:10px}.brandmark{width:35px;height:35px;background:linear-gradient(135deg,#1677e8,#326f99);display:grid;place-items:center;border-radius:10px;color:#fff;font-size:20px}.brand small{font-size:10px;font-weight:700;display:block;letter-spacing:2px;margin-top:3px;color:#a9c1ca}.brandnote{color:#88a9b9;margin-top:9px;font-size:11px}.menu-search{padding:15px 13px 12px}.search-dark{display:flex;gap:8px;align-items:center;border:1px solid #ffffff1d;border-radius:9px;padding:8px 11px;background:#ffffff0d;color:#9db6c2}.search-dark input{border:0;outline:0;background:transparent;width:100%;color:white;font-size:12px}.search-dark input::placeholder{color:#7f9cab}.nav-scroll{overflow:auto;flex:1;padding:0 8px 14px;scrollbar-width:thin;scrollbar-color:#375d6c transparent}.navgroup{margin:4px 0}.grouphead{display:flex;align-items:center;gap:9px;padding:11px 12px 10px;width:100%;border:0;border-radius:8px;background:none;color:#a5c3ca;text-align:left;font-size:12px;font-weight:700}.grouphead:hover{background:#ffffff12}.grouphead .chev{margin-left:auto;transition:transform .2s}.grouphead.expanded .chev{transform:rotate(90deg)}.navitems{padding:2px 0 7px 13px;border-left:1px solid #294c5a;margin-left:21px}.navitem{display:flex;width:100%;align-items:center;justify-content:space-between;background:none;color:#b2c8d0;border:0;padding:9px 10px;margin:1px 0;text-align:left;border-radius:7px;font-size:12px}.navitem:hover{background:#ffffff13;color:#fff}.navitem.active{background:#1677e8;color:white;box-shadow:inset 3px 0 #9dccff}.navitem .dot{width:5px;height:5px;border-radius:50%;background:#9dccff}.sidebarfoot{padding:13px 17px;border-top:1px solid #ffffff16;color:#a6bec8;font-size:11px}.sidebarfoot .mode{display:flex;gap:7px;align-items:center;color:#68d5bd;margin-bottom:7px}
.workspace{min-width:0;flex:1}.topbar{height:66px;position:sticky;top:0;z-index:10;background:#fff;border-bottom:1px solid var(--line);padding:0 27px;display:flex;align-items:center;gap:15px;justify-content:space-between}.crumb{color:var(--muted);font-size:12px;display:flex;gap:9px;align-items:center;min-width:0}.crumb strong{color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:420px}.righttools{display:flex;align-items:center;gap:11px;font-size:12px}.env{display:inline-flex;align-items:center;gap:6px;color:#956d21;background:#fff6e5;border:1px solid #ffebc7;padding:6px 10px;border-radius:20px;font-size:11px}.userpill{display:flex;align-items:center;gap:7px;color:#536a77}.avatar{border-radius:50%;height:28px;width:28px;background:#eaf3ff;color:#0e5fc4;display:grid;place-items:center;font-weight:750}.mobile-menu{display:none}.page{padding:27px 30px 42px;max-width:1880px;margin:auto}.titlebar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:21px}.titlebar h1{margin:0 0 5px}.titlebar p{color:var(--muted);font-size:13px;margin:0}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.btn{border:1px solid #d5e2e6;border-radius:8px;background:white;color:var(--ink2);font-size:12px;font-weight:700;padding:9px 13px;display:inline-flex;align-items:center;gap:7px;justify-content:center;white-space:nowrap;min-height:35px}.btn:hover{background:#f2f7ff;border-color:#b8d5fa}.btn.primary{background:var(--teal);color:white;border-color:var(--teal)}.btn.primary:hover{background:var(--ui-primary-dark)}.btn.danger{color:var(--danger)}.btn.soft{background:#eaf3ff;color:#1677e8;border-color:#cfe2ff}.btn.minor{border:0;background:transparent}.btn.small{min-height:29px;padding:5px 9px;font-size:11px}.btn.wide{width:100%}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:17px}.cardpad{padding:20px}.cardtitle{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:17px}.cardtitle h2{font-size:15px;margin:0;display:flex;gap:8px;align-items:center}.cardtitle .aux{color:var(--muted);font-size:11px}.overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.stat{padding:20px;position:relative;min-height:136px}.stat .label{font-size:12px;color:#79909a;margin-top:3px}.stat .num{font-size:29px;font-weight:800;letter-spacing:-1px;margin:14px 0 5px}.stat .foot{color:var(--muted);font-size:11px}.stat .iconbg{height:35px;width:35px;border-radius:10px;background:#eaf3ff;color:#1677e8;display:grid;place-items:center;position:absolute;right:19px;top:19px}.grid2{display:grid;grid-template-columns:1.4fr 1fr;gap:17px}.grid2.equal{grid-template-columns:1fr 1fr}.workflow{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}.wfstep{background:#f6f9fa;border:1px solid #e9eff2;border-radius:10px;padding:14px 10px;text-align:center;min-height:96px}.wfstep strong{font-size:12px;display:block;margin:9px 0 4px}.wfstep span{font-size:10px;color:var(--muted)}.wfnumber{background:#eaf3ff;color:#1677e8;border-radius:50%;width:24px;height:24px;display:grid;place-items:center;margin:auto;font-size:11px;font-weight:800}.section-note{padding:11px 14px;background:#edf6f7;color:#40636c;border-radius:8px;font-size:12px;line-height:1.7;margin-bottom:16px}.section-note.warn{background:#fff7e9;color:#86612e}.section-note.danger{background:#fff0f0;color:#ae4646}.inline-note{color:var(--muted);font-size:11px}.toolbar{padding:13px 16px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:9px;flex-wrap:wrap}.toolbar .grow{flex:1}.searchfield{display:flex;align-items:center;gap:7px;background:#f8fafb;border:1px solid var(--line);border-radius:8px;padding:8px 11px;min-width:190px}.searchfield input{border:0;outline:0;background:none;min-width:0;width:100%;font-size:12px}.form-control{border:1px solid #d9e4e8;border-radius:8px;background:#fff;padding:9px 11px;font-size:12px;color:var(--ink);min-height:36px;max-width:100%}.form-control:focus{outline:2px solid #cfe2ff;border-color:#5a9ced}.table-scroll{overflow:auto;max-width:100%}.data-table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}.data-table th{background:#f7fafb;color:#708792;text-align:left;font-weight:700;padding:12px 14px;border-bottom:1px solid #e5edef}.data-table td{padding:12px 14px;border-bottom:1px solid #edf0f1;color:#2e4859}.data-table tr:hover td{background:#fbfdfd}.declaration-form-section .table-scroll{overflow-x:hidden}.declaration-form-section .data-table{table-layout:fixed;white-space:normal;width:100%}.declaration-form-section .data-table input{width:100%;min-width:0;box-sizing:border-box}.declaration-form-section .data-table th,.declaration-form-section .data-table td{padding:9px 7px;overflow:hidden;text-overflow:ellipsis}.declaration-form-section .data-table th:nth-child(2),.declaration-form-section .data-table td:nth-child(2){width:13%}.declaration-form-section .data-table th:nth-child(4),.declaration-form-section .data-table td:nth-child(4),.declaration-form-section .data-table th:nth-child(5),.declaration-form-section .data-table td:nth-child(5){width:16%}.declaration-form-section .data-table th:nth-child(3),.declaration-form-section .data-table td:nth-child(3){width:9%}; .declaration-form-section .data-table th,.declaration-form-section .data-table td{vertical-align:top;text-align:left}.declaration-form-section .data-table th:nth-child(1),.declaration-form-section .data-table td:nth-child(1){width:4%;text-align:center}.declaration-form-section .data-table th:nth-child(2),.declaration-form-section .data-table td:nth-child(2){width:14%}.declaration-form-section .data-table th:nth-child(3),.declaration-form-section .data-table td:nth-child(3){width:9%}.declaration-form-section .data-table th:nth-child(4),.declaration-form-section .data-table td:nth-child(4){width:15%}.declaration-form-section .data-table th:nth-child(5),.declaration-form-section .data-table td:nth-child(5){width:15%}.declaration-form-section .data-table th:nth-child(6),.declaration-form-section .data-table td:nth-child(6){width:10%}.declaration-form-section .data-table th:nth-child(9),.declaration-form-section .data-table td:nth-child(9){width:6%}.declaration-form-section .data-table th:nth-child(10),.declaration-form-section .data-table td:nth-child(10){width:8%}.declaration-form-section .data-table th:nth-child(11),.declaration-form-section .data-table td:nth-child(11){width:8%}.declaration-form-section .data-table th:nth-child(12),.declaration-form-section .data-table td:nth-child(12){width:7%}.declaration-form-section .data-table th:nth-child(13),.declaration-form-section .data-table td:nth-child(13){width:6%}.declaration-form-section .data-table input{display:block;margin-top:0;height:36px;line-height:20px}.batch-row-clickable{cursor:pointer;transition:background .15s,box-shadow .15s}.batch-row-clickable:hover td{background:#e9f7f5!important;box-shadow:inset 0 1px 0 #b8e2de,inset 0 -1px 0 #b8e2de}.batch-row-clickable:active td{background:#d9f0ed!important}.data-table .emphasis{font-weight:750;color:#173f54}.data-table .numeric{text-align:right;font-variant-numeric:tabular-nums}.data-table tbody tr:last-child td{border-bottom:0}.table-footer{padding:12px 16px;display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted)}.state{font-size:11px;border-radius:6px;padding:5px 8px;display:inline-block;background:#f1f3f4;color:#657780;font-weight:700}.state.submitted{background:#eaf1fa;color:#1677e8}.state.processing{background:#e9f5ff;color:#237bb0}.state.packed{background:#ecf7ed;color:#2d8b61}.state.quoted{background:#fff5e7;color:#aa7b2c}.state.awaiting_payment{background:#fff2e2;color:#c17b25}.state.paid{background:#e4f6eb;color:#248458}.state.received{background:#e8f6ef;color:#258763}.state.expected{background:#eaf1ff;color:#376eb4}.state.planned{background:#f2f4f6;color:#87929c}.empty{padding:52px 25px;text-align:center;color:#91a0a8;font-size:12px}.empty strong{display:block;color:#536b78;margin:10px auto 4px;font-size:14px}.pill{border:1px solid #dce7e9;border-radius:50px;padding:5px 9px;background:#f8fafa;color:#66828a;font-size:11px;display:inline-flex;align-items:center;gap:5px}.splitpage{display:grid;grid-template-columns:1fr 305px;gap:17px}.queueitem{padding:13px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;font-size:12px}.queueitem:last-child{border:0}.queueitem b{color:var(--ink)}.queueitem small{display:block;color:var(--muted);margin-top:5px}.pagecols{display:flex;gap:8px;flex-wrap:wrap}.fieldchip{background:#f3f7f8;border:1px solid #e0e9eb;color:#516a77;font-size:11px;padding:8px 10px;border-radius:7px}.reserved{display:grid;grid-template-columns:2fr 1fr;gap:17px}.reserved .skeleton{height:54px;border:1px solid #edf1f3;border-radius:8px;margin-bottom:8px;background:linear-gradient(90deg,#f8fafb,#fff)}.reserved .skeleton:nth-child(2){width:90%}.reserved .skeleton:nth-child(3){width:97%}.feature-map{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.feature-map>div{background:#f7f9fa;border:1px solid #ebf0f2;padding:15px;border-radius:9px}.feature-map strong{display:block;font-size:12px;margin:9px 0 3px}.feature-map span{font-size:11px;color:var(--muted)}
/* overlays / dialogs */
.scrim{position:fixed;inset:0;z-index:60;background:rgba(11,27,35,.45);display:flex;align-items:center;justify-content:center;padding:20px}.modal{width:min(620px,100%);max-height:min(90vh,930px);overflow:auto;background:white;border-radius:16px;box-shadow:0 25px 70px #10202f44}.modalheader{display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid var(--line);padding:21px 24px}.modalheader h2{margin:0 0 4px;font-size:17px}.modalbody{padding:23px}.modalfooter{display:flex;justify-content:flex-end;gap:9px;padding:0 23px 23px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-field label{font-size:12px;font-weight:700;color:#506774;margin-bottom:7px;display:block}.form-field input,.form-field textarea,.form-field select{border:1px solid #d8e4e8;border-radius:8px;padding:10px;width:100%;font-size:13px;outline:none;background:#fff;min-height:40px}.form-field textarea{min-height:85px;resize:vertical}.form-field input:focus,.form-field select:focus,.form-field textarea:focus{border-color:#5a9ced;box-shadow:0 0 0 3px #eaf3ff}.form-field.wide{grid-column:1/-1}.fieldhint{font-size:11px;color:var(--muted);margin-top:6px}.checkrow{padding:9px 10px;border:1px solid var(--line);display:flex;align-items:center;gap:10px;border-radius:7px;font-size:12px;margin-bottom:7px}.checkrow input{width:auto}.drawer-scrim{position:fixed;inset:0;z-index:45;background:#102b3647}.drawer{position:fixed;right:0;top:0;height:100vh;width:min(850px,100vw);background:white;box-shadow:-10px 0 45px #102b3633;overflow:auto;display:flex;flex-direction:column}.drawerhead{padding:24px 25px 14px;border-bottom:1px solid var(--line)}.drawermain{padding:24px 25px;flex:1;overflow:auto}.drawerfoot{border-top:1px solid var(--line);padding:12px 22px;background:#fbfcfc;display:flex;justify-content:flex-end;gap:10px}.detailgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.detailitem{border-bottom:1px solid #edf0f2;padding:11px 0}.detailitem .k{font-size:11px;color:var(--muted)}.detailitem .v{font-size:13px;font-weight:700;margin-top:6px;word-break:break-word}.tabs{display:flex;gap:3px;border-bottom:1px solid var(--line);overflow:auto}.tab{border:0;background:none;padding:13px 15px;white-space:nowrap;color:#69828e;font-size:12px;border-bottom:2px solid transparent}.tab.selected{color:#1677e8;border-color:#1677e8;font-weight:750}.timeline{padding-left:19px;border-left:2px solid #e5eeee;margin-left:8px}.event{position:relative;padding:2px 0 19px 15px;font-size:12px}.event:before{content:'';position:absolute;left:-26px;top:5px;background:#1677e8;border:3px solid white;box-shadow:0 0 0 1px #cfe2ff;width:9px;height:9px;border-radius:50%}.event small{color:#8297a2;display:block;margin-top:6px}.event p{margin:6px 0 0}.totalbar{display:flex;align-items:flex-end;justify-content:space-between;background:#eff8f7;border:1px solid #d3ebe9;padding:18px;border-radius:10px}.totalbar strong{font-size:25px;color:#1677e8}.toast{position:fixed;right:24px;bottom:23px;z-index:200;background:#102e3c;color:white;border-radius:10px;padding:13px 18px;box-shadow:0 10px 30px #102e3c44;font-size:12px;max-width:450px;line-height:1.5}.toast.err{background:#a63a3a}.loginpage{min-height:100vh;display:grid;grid-template-columns:1fr 500px;background:#eff4f4}.loginvisual{padding:12vh 11%;background:linear-gradient(140deg,#0d2b3a,#164b59);color:white;position:relative;overflow:hidden}.loginvisual h1{font-size:46px;margin:22px 0}.loginvisual p{max-width:520px;color:#c7e4e6;font-size:15px}.loginvisual .bigbadge{font-size:13px;color:#b8d5fa;letter-spacing:2px}.loginvisual .tilegrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:610px;margin-top:65px}.loginvisual .tilegrid div{background:#ffffff14;border:1px solid #ffffff22;padding:17px;border-radius:11px;font-size:12px;line-height:2}.loginform{display:flex;align-items:center;justify-content:center;padding:35px}.loginbox{background:white;border:1px solid var(--line);padding:32px;border-radius:17px;width:100%;max-width:380px}.loginbox h2{font-size:24px;margin:0 0 9px}.loginbox p{font-size:12px;color:var(--muted);margin-bottom:25px}
/* client portal PC/H5 */
.portal{min-height:100vh;background:#f7f9fc}.portalhead{background:#fff;border-bottom:1px solid var(--line);height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 max(23px,calc((100vw - 1190px)/2))}.portalbrand{font-size:20px;font-weight:850}.portalbrand i{font-style:normal;color:#1677e8}.portalnav{display:flex;gap:18px;align-items:center}.portalnav button{border:0;background:none;color:#6d8590;font-size:12px;padding:10px 3px}.portalnav button.on{color:#1677e8;font-weight:750;border-bottom:2px solid #1677e8}.portalcontent{max-width:1190px;margin:0 auto;padding:28px 22px 98px}.portalbanner{background:linear-gradient(120deg,#12376b,#1677e8);border-radius:15px;padding:32px;color:white;display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:17px;overflow:hidden}.portalbanner h1{color:white;font-size:26px;margin:8px 0}.portalbanner p{color:#c5e7e5;font-size:13px;margin:0}.portalbanner .deco{font-size:57px;opacity:.65}.portalmetrics{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.portalmetrics .card{padding:20px}.portalmetrics strong{display:block;font-size:27px;margin:10px 0 4px}.portal-action{border:1px solid var(--line);border-radius:11px;background:white;padding:17px;display:flex;align-items:center;gap:13px;cursor:pointer}.portal-action:hover{border-color:#9dccff}.portal-action strong{font-size:13px}.portal-action span{display:block;font-size:11px;color:var(--muted);margin-top:4px}.portal-bottom{display:none}
@media(max-width:1250px){.overview-grid{grid-template-columns:repeat(2,1fr)}.workflow{grid-template-columns:repeat(3,1fr)}.splitpage,.grid2,.reserved{grid-template-columns:1fr}.sidebar{width:223px;min-width:223px}.page{padding:24px 20px}.feature-map{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.sidebar{position:fixed;transform:translateX(-100%);transition:transform .2s;width:min(310px,86vw);z-index:31}.sidebar.open{transform:translateX(0)}.sidebar-backdrop{position:fixed;inset:0;background:#1428335c;z-index:30}.mobile-menu{display:inline-flex}.topbar{padding:0 13px;height:59px}.crumb{font-size:11px}.topbar .env{display:none}.topbar .userpill{display:none}.page{padding:18px 12px 24px}.titlebar{align-items:flex-start;flex-wrap:wrap}.titlebar h1{font-size:21px}.overview-grid{gap:9px}.stat{padding:15px;min-height:113px}.stat .num{font-size:24px}.workflow{grid-template-columns:repeat(2,1fr)}.cardpad{padding:15px}.feature-map{grid-template-columns:1fr}.detailgrid{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:1fr}.form-field.wide{grid-column:auto}.modalbody{padding:17px}.modalheader{padding:18px}.loginpage{grid-template-columns:1fr}.loginvisual{display:none}.loginform{min-height:100vh}.portalhead{padding:0 17px;height:59px}.portalnav{display:none}.portalcontent{padding:17px 12px 95px}.portalbanner{padding:22px}.portalbanner h1{font-size:21px}.portalbanner .deco{font-size:35px}.portalmetrics{gap:9px}.portalmetrics .card{padding:14px}.portalmetrics strong{font-size:24px}.portal-bottom{position:fixed;bottom:0;left:0;right:0;z-index:25;background:#fff;display:flex;border-top:1px solid var(--line);padding:7px 0 max(10px,env(safe-area-inset-bottom));box-shadow:0 -6px 20px #1c414612}.portal-bottom button{flex:1;border:0;background:none;color:#91a0a5;font-size:10px;display:flex;gap:4px;align-items:center;flex-direction:column}.portal-bottom button.on{color:var(--teal);font-weight:750}.portal-bottom svg{height:20px;width:20px}.drawerhead,.drawermain{padding-left:15px;padding-right:15px}.tabs{margin:0 -15px}.tab{padding:12px 11px}.righttools .btn.small{padding:6px}.reserved .skeleton{height:45px}}
@media print{.sidebar,.topbar,.righttools,.drawerfoot,.btn,.no-print{display:none!important}.workspace,.page{padding:0!important}.drawer-scrim{position:static;background:white}.drawer{position:static;box-shadow:none;width:100%;height:auto;overflow:visible}.drawermain{overflow:visible}}

/* Keep the sidebar menu button mobile-only. */
@media(min-width:761px){.mobile-menu{display:none!important}}
@media(max-width:760px){.mobile-menu{display:inline-flex!important}}

/* Keep batch bulk controls reachable while scrolling a long batch/order list. */
.batch-bulk-floating{position:fixed;z-index:20;top:96px;right:max(30px,calc((100vw - 1880px)/2 + 36px));display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;max-width:calc(100vw - 48px);padding:8px;background:rgba(255,255,255,.97);border:1px solid var(--line);border-radius:11px;box-shadow:0 8px 24px #17384720;backdrop-filter:blur(8px)}
@media(max-width:760px){.batch-bulk-floating{top:auto;right:10px;bottom:calc(68px + env(safe-area-inset-bottom));left:10px;max-width:none;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;overscroll-behavior-x:contain;padding:7px;box-shadow:0 4px 18px #17384730}.batch-bulk-floating .btn,.batch-bulk-floating>[data-batch-bulk-actions]{flex:0 0 auto}}
@media print{.batch-bulk-floating{display:none!important}}
@media(max-width:1250px){.grid2.equal{grid-template-columns:1fr}}

/* Global side control available on every authenticated admin and customer page. */
.back-to-top-float{position:fixed;z-index:24;right:16px;bottom:42%;display:grid;place-items:center;width:48px;height:48px;padding:0;border:1px solid #cfe2ff;border-radius:50%;background:rgba(255,255,255,.96);color:#1677e8;box-shadow:0 5px 18px #17384726;backdrop-filter:blur(8px);font-size:25px;line-height:1;font-weight:800;cursor:pointer}.back-to-top-float:hover{background:#eaf3ff;transform:translateY(-2px)}
@media(max-width:760px){.back-to-top-float{right:10px;bottom:calc(92px + env(safe-area-inset-bottom));width:42px;height:42px}}
@media print{.back-to-top-float{display:none!important}}

/* M3 functional framework */
.frame-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:16px;align-items:start}.frame-side{display:grid;gap:15px}.frame-actions,.frame-checks{display:flex;flex-direction:column;gap:8px}.frame-action{padding:10px;background:#f7f9fa;border:1px solid #e9eff1;border-radius:7px;font-size:12px;color:#3d5b69;display:flex;gap:8px;align-items:center}.frame-action small{margin-left:auto;color:#84939d}.frame-checks>div{font-size:12px;display:flex;gap:8px;padding:9px 4px;border-bottom:1px solid #eff2f4;align-items:center}.frame-checks>div span{margin-left:auto;color:#8b9ca5}.frame-map{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.frame-module-list{display:grid;gap:4px}.frame-module-list button{display:flex;align-items:center;gap:9px;width:100%;border:0;background:#f7f9fa;padding:10px 12px;border-radius:7px;text-align:left;color:#3a5969;cursor:pointer}.frame-module-list button:hover{background:#e9f5f3}.frame-module-list button span{flex:1;font-size:12px}.frame-module-list button small{color:#7c969d;font-size:10px}.frame-flow{display:grid;gap:10px}.frame-flow-item{display:flex;align-items:center;gap:14px}.frame-flow-item>div{flex:1}.frame-flow-item p{margin:6px 0 0;color:#738891;font-size:12px}@media(max-width:1100px){.frame-grid,.frame-map{grid-template-columns:1fr}}@media(max-width:650px){.frame-flow-item{flex-wrap:wrap}.frame-flow-item>div{flex:1 1 70%}}

/* M4 quick intake */
.intake-wrap{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.8fr);gap:16px;align-items:start}.intake-card{padding:24px}.intake-label{font-size:12px;font-weight:750;display:block;margin-bottom:9px}.intake-scan{display:flex;gap:10px}.intake-scan input{flex:1;min-width:0;font-size:23px;font-weight:750;padding:15px 17px;border:2px solid #1677e8;border-radius:12px;letter-spacing:.8px}.intake-result{padding:10px 12px;background:#f0f8f8;border-radius:8px;margin:12px 0 19px;min-height:42px}.intake-found{color:#087a5a}.intake-error{color:#ae3838}.intake-photo-area{margin-top:18px;padding:18px;border:1px dashed #a8c6c9;border-radius:12px;background:#f8fbfc}.intake-photo-area input{margin-top:14px;max-width:100%}.intake-thumbs{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.intake-thumb{width:98px;height:98px;position:relative;border:1px solid #dbe7eb;border-radius:9px;overflow:hidden;background:#fff}.intake-thumb img{width:100%;height:100%;object-fit:cover}.intake-thumb button{position:absolute;right:2px;top:2px;border:0;background:#17252dcc;color:white;border-radius:100%;width:24px;height:24px;cursor:pointer}.intake-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:22px}.intake-actions button{min-height:42px}.intake-gallery-image{max-height:290px;max-width:100%;border-radius:8px;object-fit:contain;border:1px solid #dbe7eb}@media(max-width:1050px){.intake-wrap{grid-template-columns:1fr}}@media(max-width:650px){.intake-scan{flex-direction:column}.intake-scan input{font-size:18px}}

/* Customer PC/H5 visual layer inspired by the supplied Happo references. */
.portal{background:var(--bg);color:var(--ink)}.portal-notice{height:30px;background:#f7f7f7;color:#ff6b6b;font-size:11px;display:flex;align-items:center;gap:40px;padding:0 max(20px,calc((100vw - 1200px)/2));white-space:nowrap;overflow:hidden}.portal-notice .portal-lang{margin-left:auto;color:#7e8589}.portalhead{height:92px;padding:0 max(20px,calc((100vw - 1200px)/2));box-shadow:0 1px 0 #e6eaed}.portalbrand{display:flex;align-items:center;gap:10px;color:#123783;font-size:30px;line-height:.9;letter-spacing:-1px}.portalbrand i{color:#0e5fc4}.portalbrand small{display:block;color:#7d8b9b;font-size:8px;letter-spacing:1.8px;margin-top:8px;font-weight:700}.portal-logo{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#143789;color:#fff;font-weight:900;font-size:25px;box-shadow:0 4px 0 #e1e5eb}.portalnav{gap:28px}.portalnav button{font-size:14px;color:#26333c;padding:35px 4px 29px}.portalnav button.on{color:#0e5fc4;border-bottom:4px solid #1677e8}.portal-welcome{font-size:12px;color:#616c73}.portal-welcome b{color:#e99215}.portal-subnav{max-width:1200px;margin:18px auto 0;background:#2e82c9;border-radius:28px;color:#fff;min-height:48px;display:flex;align-items:center;padding:0 22px;gap:23px;box-shadow:0 5px 14px #2e82c933}.portal-subnav span{font-weight:800;margin-right:8px}.portal-subnav button{border:0;background:transparent;color:#eaf5ff;font-size:12px;padding:8px 4px}.portal-subnav button.on{font-weight:800;color:#fff}.portalcontent{max-width:1200px;padding:18px 0 98px}.portalcontent>.titlebar{display:none}.portalbanner{background:linear-gradient(120deg,#1461d9 0%,#087cf0 55%,#1b5ac9 100%);border-radius:0 0 22px 22px;padding:35px 40px;min-height:160px;box-shadow:0 8px 24px #2d72d633}.portalbanner h1{font-size:30px}.portalbanner .deco{font-size:74px}.portalmetrics{margin-top:-15px;position:relative;padding:0 18px;grid-template-columns:repeat(4,1fr);gap:0}.portalmetrics .card{border:0;border-radius:0;padding:19px 22px;margin:0;text-align:center;box-shadow:0 5px 20px #22334414}.portalmetrics .card:first-child{border-radius:16px 0 0 16px}.portalmetrics .card:last-child{border-radius:0 16px 16px 0}.portalmetrics .card strong{color:#087ed4}.portal-action{min-height:96px;background:#fff;border:0;box-shadow:0 2px 12px #21394d0d}.portalcontent .card{border:0;box-shadow:0 3px 15px #26374612}.portalcontent .cardtitle h2{font-size:20px}.portalcontent .cardtitle h2:after{content:'';display:block;width:34px;height:3px;background:#2f8fd7;margin-left:3px}.portal-bottom{background:#fff}
@media(max-width:760px){.portal-notice{display:none}.portalhead{height:66px;background:linear-gradient(135deg,#1263df,#177ff0);padding:0 15px;color:#fff}.portalbrand{font-size:20px;color:#fff}.portalbrand i{color:#fff}.portalbrand small{display:none}.portal-logo{width:36px;height:36px;font-size:20px;background:#fff;color:#1464dc;box-shadow:none}.portalhead .portalnav,.portalhead .portal-welcome{display:none}.portalhead .righttools{color:#fff}.portalhead .righttools .btn{color:#fff}.portal-subnav{display:none}.portalcontent{padding:0 12px 92px}.portalbanner{margin:0 -12px 0;border-radius:0 0 22px 22px;min-height:184px;padding:29px 22px}.portalbanner h1{font-size:27px;margin-top:18px}.portalbanner p{font-size:12px;max-width:230px}.portalbanner .deco{font-size:45px}.portalmetrics{padding:0;margin:-27px 0 17px;grid-template-columns:repeat(4,1fr);gap:2px}.portalmetrics .card{padding:14px 4px;border-radius:0!important}.portalmetrics .card strong{font-size:22px}.portalmetrics .card .tiny{font-size:10px}.portalcontent .grid2.equal{gap:12px}.portalcontent .cardtitle h2{font-size:20px}.portal-action{min-height:78px;padding:12px}.portal-action svg{width:26px;height:26px}.portalcontent .data-table{font-size:11px}}
/* Customer portal home: service grid inspired by the legacy mobile entry screen. */
.portal-quick-card{margin-top:17px}.portal-quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.portal-quick-item{border:1px solid #edf0f3;background:#fff;border-radius:12px;min-height:100px;padding:13px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#526672;font-size:12px}.portal-quick-item svg{color:#1682da}.portal-quick-item:hover{border-color:#8ec8ee;background:#f5fbff;transform:translateY(-1px)}
@media(max-width:760px){.portal-quick-grid{grid-template-columns:repeat(4,1fr);gap:7px}.portal-quick-item{min-height:78px;font-size:11px;padding:8px 3px}.portal-quick-item svg{width:24px;height:24px}}
.portal{max-width:520px;margin:0 auto;min-height:100vh}.portal-notice,.portal-subnav,.portalnav{display:none}.portalhead{height:66px;background:linear-gradient(135deg,#1263df,#177ff0);padding:0 15px;color:#fff}.portalbrand{font-size:20px;color:#fff}.portalbrand i{color:#fff}.portalbrand small{display:none}.portal-logo{width:36px;height:36px;font-size:20px;background:#fff;color:#1464dc;box-shadow:none}.portalhead .portal-welcome{display:none}.portalhead .righttools{color:#fff}.portalhead .righttools .btn{color:#fff}.portalcontent{padding:0 12px 92px}.portalbanner{margin:0 -12px 0;border-radius:0 0 22px 22px;min-height:184px;padding:29px 22px}.portalbanner h1{font-size:27px;margin-top:18px}.portalbanner p{font-size:12px;max-width:230px}.portalbanner .deco{font-size:45px}.portalmetrics{padding:0;margin:-27px 0 17px;grid-template-columns:repeat(4,1fr);gap:2px}.portalmetrics .card{padding:14px 4px;border-radius:0!important}.portalmetrics strong{font-size:22px}.portalmetrics .card .tiny{font-size:10px}.portal-bottom{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(520px,100vw);z-index:25;background:#fff;display:flex;border-top:1px solid var(--line);padding:7px 0 max(10px,env(safe-area-inset-bottom));box-shadow:0 -6px 20px #1c414612}.portal-bottom button{flex:1;border:0;background:none;color:#91a0a5;font-size:10px;display:flex;gap:4px;align-items:center;flex-direction:column}.portal-bottom button.on{color:#1682da;font-weight:750}.portal-bottom svg{height:20px;width:20px}.portalcontent .data-table{font-size:11px}
.portalmetrics .card{position:relative;overflow:hidden;background:linear-gradient(180deg,#fff,#f7fbff);border-top:3px solid #2f8fd7}.portalmetrics .card:nth-child(2){border-top-color:#1677e8}.portalmetrics .card:nth-child(3){border-top-color:#e5a52c}.portalmetrics .card:nth-child(4){border-top-color:#e26d78}.portalmetrics .card strong{font-size:30px;letter-spacing:-1px}.portal-quick-item{box-shadow:0 8px 24px rgba(27,76,111,.07);transition:.18s ease}.portal-quick-item:nth-child(4n+1) svg{color:#2c8fe6}.portal-quick-item:nth-child(4n+2) svg{color:#1677e8}.portal-quick-item:nth-child(4n+3) svg{color:#e0a12c}.portal-quick-item:nth-child(4n) svg{color:#d96c7a}
.transfer-application-layout{grid-template-columns:minmax(0,1fr) 172px;gap:12px;align-items:start}.transfer-application-help{padding:16px}.transfer-application-help .cardtitle{margin-bottom:12px}.transfer-application-help .cardtitle h2{font-size:17px}.transfer-application-help .section-note{padding:10px 11px;font-size:11px;line-height:1.6}.transfer-application-help .event{padding-left:12px;padding-bottom:17px;font-size:11px}.transfer-application-help .event:before{left:-25px}.transfer-package-option .fieldhint{line-height:1.45}.transfer-package-option .fieldhint+.fieldhint{color:#587987}
.shipment-preview-modal{width:min(760px,100%)}.shipment-preview-modal h3{font-size:13px;margin:19px 0 9px;color:#345363}.shipment-provider{border:1px solid #c5e7e4;background:#eefaf8;padding:13px 15px;border-radius:10px;display:grid;gap:4px}.shipment-provider span,.shipment-preview-cell span{font-size:11px;color:#66818c}.shipment-provider strong{font-size:16px;color:#1677e8}.shipment-provider small{font-size:11px;color:#58747d;line-height:1.45}.shipment-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.shipment-preview-cell{padding:10px 11px;border:1px solid #e0eaed;border-radius:8px;min-width:0}.shipment-preview-cell span,.shipment-preview-cell b{display:block}.shipment-preview-cell b{margin-top:4px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.shipment-preview-cell.wide{grid-column:1/-1}.shipment-preview-actions{display:flex;align-items:center;gap:8px;margin-top:17px}.shipment-preview-actions .grow{flex:1}@media(max-width:560px){.shipment-preview-grid{grid-template-columns:1fr}.shipment-preview-cell.wide{grid-column:auto}.shipment-preview-actions{flex-wrap:wrap}.shipment-preview-actions .grow{display:none}.shipment-preview-actions .btn.primary{flex:1}}
@media(max-width:420px){.transfer-application-layout{grid-template-columns:1fr}.transfer-application-help{order:2}}
/* Homepage service groups keep the full feature set discoverable by business area. */
.public-showcase{margin-top:16px}.showcase-item{padding:13px 0;border-bottom:1px solid #edf2f3}.showcase-item:last-child{border-bottom:0}.showcase-item p{margin:6px 0;color:var(--ink)}
.portal-service-group{margin-top:22px;padding-top:16px;border-top:1px solid #e7eff1}.portal-service-group:first-of-type{margin-top:0;padding-top:0;border-top:0}.portal-service-group-head{display:flex;align-items:baseline;gap:10px;margin-bottom:10px}.portal-service-group-head h3{margin:0;font-size:15px;color:var(--ink)}.portal-service-group-head span{font-size:11px;color:var(--muted)}
@media(max-width:520px){.portal-service-group-head{display:block}.portal-service-group-head span{display:block;margin-top:4px}}
/* China recipient address form: region fields stay on one row and the
   postal-code lookup occupies the former delivery-method slot. */
.region-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.region-fields>div{min-width:0}
.postal-action-field .btn{width:100%;min-height:42px}
.id-doc-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.id-doc-preview{width:100%;aspect-ratio:1.586/1;border:1px dashed #b9cdd2;border-radius:8px;background:#f7fafb;display:grid;place-items:center;overflow:hidden;color:#8aa0a8;font-size:12px;margin-bottom:8px}
.id-doc-preview{cursor:pointer;transition:border-color .15s,background .15s}
.id-doc-preview:hover{border-color:var(--teal);background:#eff9f8}
.id-doc-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.id-doc-preview img{width:100%;height:100%;object-fit:cover;display:block}
/* Keep the recipient editor wide enough for its four-column form and two ID photos. */
.scrim:has(form[data-form="address-create"]) .modal,.scrim:has(form[data-form="address-update"]) .modal,.scrim:has(form[data-form="admin-box-recipient-update"]) .modal{width:min(1180px,calc(100vw - 40px))}
@media(max-width:760px){.scrim:has(form[data-form="address-create"]) .modal,.scrim:has(form[data-form="address-update"]) .modal,.scrim:has(form[data-form="admin-box-recipient-update"]) .modal{width:calc(100vw - 24px)}form[data-form="address-create"] .form-grid,form[data-form="address-update"] .form-grid,form[data-form="admin-box-recipient-update"] .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.region-fields{grid-column:1/-1!important}}
form[data-form="address-create"] .form-field:has([name="id_number"]),form[data-form="address-update"] .form-field:has([name="id_number"]){order:2}
form[data-form="address-create"] .form-field:has([name="address"]),form[data-form="address-update"] .form-field:has([name="address"]){order:3}
form[data-form="address-create"] .id-doc-grid,form[data-form="address-update"] .id-doc-grid{order:4}
form[data-form="address-create"] .id-doc-grid~.fieldhint,form[data-form="address-update"] .id-doc-grid~.fieldhint{order:5}
form[data-form="address-create"] .form-field:has([name="address"]) textarea,form[data-form="address-update"] .form-field:has([name="address"]) textarea{min-height:64px;height:64px}
form[data-form="address-create"] .postal-action-field,form[data-form="address-update"] .postal-action-field,form[data-form="client-transfer"] .form-field:has([data-action="lookup-postcode"]){display:none!important}
form[data-form="address-create"] .recipient-auto-recognize,form[data-form="address-update"] .recipient-auto-recognize{order:0}
form[data-form="address-create"] .form-field:has([name="recipient"]),form[data-form="address-update"] .form-field:has([name="recipient"]){order:1}
form[data-form="address-create"] .form-field:has([name="phone"]),form[data-form="address-update"] .form-field:has([name="phone"]){order:1}
form[data-form="address-create"] .form-field:has([name="postcode"]),form[data-form="address-update"] .form-field:has([name="postcode"]){order:2}
form[data-form="address-create"] .region-fields,form[data-form="address-update"] .region-fields{order:3}
form[data-form="address-create"] .form-field:has([name="address"]),form[data-form="address-update"] .form-field:has([name="address"]){order:4}
form[data-form="address-create"] .form-field:has([name="id_number"]),form[data-form="address-update"] .form-field:has([name="id_number"]){order:5}
form[data-form="address-create"] .id-doc-grid,form[data-form="address-update"] .id-doc-grid{order:6}
form[data-form="address-create"] .id-doc-grid~.fieldhint,form[data-form="address-update"] .id-doc-grid~.fieldhint{order:7}
form[data-form="address-create"]>.checkrow,form[data-form="address-update"]>.checkrow{order:8;align-self:end;justify-self:start;margin-top:8px}
form[data-form="address-create"] .form-grid>.checkrow,form[data-form="address-update"] .form-grid>.checkrow{order:99!important;grid-column:1/-1!important;justify-self:start!important}
form[data-form="address-create"] .form-field:has([name="address"]) textarea,form[data-form="address-update"] .form-field:has([name="address"]) textarea{height:40px!important;min-height:40px!important}
form[data-form="address-create"] .modalfooter,form[data-form="address-update"] .modalfooter{justify-content:space-between;align-items:center}
form[data-form="address-create"] .modalfooter .checkrow,form[data-form="address-update"] .modalfooter .checkrow{display:flex;flex:0 0 auto;align-items:center;margin:0;padding:9px 10px}
form[data-form="address-create"] .modalfooter [data-action="close-modal"],form[data-form="address-update"] .modalfooter [data-action="close-modal"]{margin-left:auto}
form[data-form="address-create"] .form-grid,form[data-form="address-update"] .form-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
form[data-form="address-create"] .form-field:has([name="recipient"]),form[data-form="address-update"] .form-field:has([name="recipient"]),form[data-form="address-create"] .form-field:has([name="phone"]),form[data-form="address-update"] .form-field:has([name="phone"]){grid-column:span 2}
form[data-form="address-create"] .form-field:has([name="postcode"]),form[data-form="address-update"] .form-field:has([name="postcode"]){grid-column:span 1}
form[data-form="address-create"] .region-fields,form[data-form="address-update"] .region-fields{grid-column:span 3}
form[data-form="address-create"] .form-field:has([name="address"]),form[data-form="address-update"] .form-field:has([name="address"]),form[data-form="address-create"] .form-field:has([name="id_number"]),form[data-form="address-update"] .form-field:has([name="id_number"]),form[data-form="address-create"] .id-doc-grid,form[data-form="address-update"] .id-doc-grid,form[data-form="address-create"] .id-doc-grid~.fieldhint,form[data-form="address-update"] .id-doc-grid~.fieldhint{grid-column:1/-1}
form[data-form="address-create"] [name="province"][readonly],form[data-form="address-create"] [name="city"][readonly],form[data-form="address-update"] [name="province"][readonly],form[data-form="address-update"] [name="city"][readonly]{background:#eef4f7;color:#58707b;cursor:not-allowed}
form[data-form="admin-box-recipient-update"] .form-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
form[data-form="admin-box-recipient-update"] .form-field:has([name="recipient"]),form[data-form="admin-box-recipient-update"] .form-field:has([name="phone"]){grid-column:span 2}
form[data-form="admin-box-recipient-update"] .form-field:has([name="postcode"]){grid-column:span 1}
form[data-form="admin-box-recipient-update"] .region-fields{grid-column:span 3}
form[data-form="admin-box-recipient-update"] .form-field:has([name="address"]),form[data-form="admin-box-recipient-update"] .form-field:has([name="id_number"]),form[data-form="admin-box-recipient-update"] .id-doc-grid,form[data-form="admin-box-recipient-update"] .id-doc-grid~.fieldhint{grid-column:1/-1}
form[data-form="admin-box-recipient-update"] .form-field:has([name="address"]) textarea{height:40px!important;min-height:40px!important}
@media(max-width:680px){.region-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.region-fields input{padding-left:6px;padding-right:6px;font-size:11px}.postal-action-field{grid-column:1/-1}}
@media(max-width:520px){.id-doc-grid{grid-template-columns:1fr}}
.portal-bottom button[data-portaltab="包裹预报"],.portal-bottom button[data-portaltab="转运订单"],.portal-bottom button[data-portaltab="消息通知"],.portal-bottom button[data-portaltab="运费试算"]{display:none!important}
.portal-all-services{display:none!important}
.transfer-optional-hidden{display:none!important}.transfer-recipient-picker .btn.selected{border-color:#1677e8;background:#eaf3ff;color:#1677e8;box-shadow:inset 0 0 0 1px #1677e8;font-weight:800}
.portal [data-address-book] .queueitem{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding:14px 0}
.portal [data-address-book] .queueitem>div{min-width:0}
.portal [data-address-book] .queueitem small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.portal [data-address-book] .address-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;min-width:166px}
.portal [data-address-book] .address-actions .btn{flex:0 0 auto}
@media(max-width:560px){.portal [data-address-book] .queueitem{grid-template-columns:1fr}.portal [data-address-book] .address-actions{justify-content:flex-start;min-width:0}}
form[data-form="client-transfer"] .form-field:has([name="shipping_line"]){grid-column:1/-1;max-width:280px}
.home-showcase-large{margin-top:18px;min-height:180px}.home-showcase-large .cardtitle{align-items:flex-start}.home-showcase-placeholder{min-height:105px;border:1px dashed #cddfe3;border-radius:14px;background:linear-gradient(135deg,#f8fcfd,#eef8f7);display:flex;align-items:center;justify-content:center;gap:16px;margin-top:8px}.showcase-mark{width:48px;height:48px;border-radius:14px;background:#eaf3ff;color:#1677e8;display:grid;place-items:center;font-size:24px}.home-showcase-placeholder strong{color:var(--ink);font-size:15px}.home-showcase-placeholder p{margin:6px 0 0}
.portal-hierarchy{display:flex;align-items:center;gap:14px;margin:0 0 12px;padding:0 2px;min-height:32px}.portal-back{display:inline-flex;align-items:center;gap:3px;padding:6px 10px;border-color:#d8e5e8;color:#2e6170;background:#fff}.portal-back svg{transform:rotate(180deg)}.portal-crumbs{display:flex;align-items:center;gap:6px;color:#6f858e;font-size:12px}.portal-crumb{border:0;background:none;color:#1682a0;padding:4px 2px;cursor:pointer;font-size:12px}.portal-crumb:hover{text-decoration:underline}.portal-crumb-sep{display:inline-flex;color:#9aadb3}@media(max-width:760px){.portal-hierarchy{margin-top:2px}.portal-crumbs{min-width:0;overflow:auto;white-space:nowrap}.portal-back{flex:none;font-size:11px}.portal-back span{display:inline}}
/* Dashboard cards expose their navigation affordance before activation. */
.dashboard-stat{cursor:pointer;text-align:left;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.dashboard-stat:hover{transform:translateY(-2px);border-color:#9dccff;box-shadow:0 10px 24px rgba(31,77,91,.14)}.dashboard-stat:focus-visible{outline:3px solid #bfe9e6;outline-offset:2px}.dashboard-hint{position:absolute;right:18px;bottom:17px;color:#1677e8;font-size:10px;font-weight:700;opacity:0;transform:translateY(3px);transition:opacity .15s ease,transform .15s ease}.dashboard-stat:hover .dashboard-hint,.dashboard-stat:focus-visible .dashboard-hint{opacity:1;transform:translateY(0)}
.portalmetrics .card{cursor:pointer;position:relative;transition:transform .15s ease,box-shadow .15s ease,background .15s ease}.portalmetrics .card:hover{transform:translateY(-2px);background:#f4fbfb;box-shadow:0 8px 18px rgba(31,77,91,.12)}.portalmetrics .card::after{content:'点击查看';position:absolute;right:10px;bottom:8px;color:#1677e8;font-size:10px;font-weight:700;opacity:0;transition:opacity .15s ease}.portalmetrics .card:hover::after{opacity:1}
.portalmetrics .card::after{display:none!important}
.dashboard-hint{display:none!important}
/* Order detail overview summaries */
.order-overview-summaries{margin-top:17px}.order-overview-summaries .card{margin-bottom:0}.summary-row{display:flex;align-items:center;gap:9px;padding:9px 0;border-bottom:1px solid var(--line);font-size:12px}.summary-row:last-child{border-bottom:0}.summary-row small{margin-left:auto;color:var(--muted)}.summary-row strong{margin-left:auto}.summary-row .state{margin-left:auto}
.order-progress-inline{margin:0 0 0 auto;padding:7px 12px;min-width:0;box-shadow:none;border-radius:8px}.order-progress-inline .cardtitle{margin:0 0 5px}.order-progress-inline .cardtitle h2{font-size:11px}.order-progress-inline .pagecols{gap:4px;flex-wrap:nowrap}.order-progress-inline .fieldchip{padding:4px 6px;font-size:10px;white-space:nowrap}.order-progress-inline p{display:none}
@media(max-width:900px){.order-progress-inline{display:none}}
.drawer{width:min(1120px,100vw)}
/* Keep the order detail drawer narrower and fit a legible packing grid without scrolling. */
.drawer{width:min(1000px,calc(100vw - 24px))}
.drawer .data-table:has(tr[data-box-row]){width:100%;table-layout:fixed;font-size:12px;white-space:normal}
.drawer .data-table:has(tr[data-box-row]) th{font-size:12px;line-height:1.2;padding:6px 2px;white-space:normal;overflow-wrap:anywhere}
.drawer .data-table:has(tr[data-box-row]) td{padding:6px 2px;font-size:12px}
.drawer .data-table:has(tr[data-box-row]) th:nth-child(1),.drawer .data-table:has(tr[data-box-row]) td:nth-child(1){width:3%}
.drawer .data-table:has(tr[data-box-row]) th:nth-child(2),.drawer .data-table:has(tr[data-box-row]) td:nth-child(2){width:5%}
.drawer .data-table:has(tr[data-box-row]) th:nth-child(3),.drawer .data-table:has(tr[data-box-row]) td:nth-child(3){width:9%}
.drawer .data-table:has(tr[data-box-row]) th:nth-child(4),.drawer .data-table:has(tr[data-box-row]) td:nth-child(4){width:9%}
.drawer .data-table:has(tr[data-box-row]) th:nth-child(5),.drawer .data-table:has(tr[data-box-row]) td:nth-child(5){width:7%}
.drawer .data-table:has(tr[data-box-row]) th:nth-child(n+6):nth-child(-n+9),.drawer .data-table:has(tr[data-box-row]) td:nth-child(n+6):nth-child(-n+9){width:5%}
.drawer .data-table:has(tr[data-box-row]) th:nth-child(10),.drawer .data-table:has(tr[data-box-row]) td:nth-child(10){width:6%}
.drawer .data-table:has(tr[data-box-row]) th:nth-child(11),.drawer .data-table:has(tr[data-box-row]) td:nth-child(11){width:5%}
.drawer .data-table:has(tr[data-box-row]) th:nth-child(12),.drawer .data-table:has(tr[data-box-row]) td:nth-child(12){width:5%}
.drawer .data-table:has(tr[data-box-row]) th:nth-child(13),.drawer .data-table:has(tr[data-box-row]) td:nth-child(13){width:5%}
.drawer .data-table:has(tr[data-box-row]) th:nth-child(14),.drawer .data-table:has(tr[data-box-row]) td:nth-child(14){width:6%}
.drawer .data-table:has(tr[data-box-row]) th:nth-child(15),.drawer .data-table:has(tr[data-box-row]) td:nth-child(15){width:15%}
.drawer .data-table:has(tr[data-box-row]) .box-inline-input{box-sizing:border-box;width:100%;min-width:0;padding:5px 2px;font-size:12px}
.drawer .data-table:has(tr[data-box-row]) .btn.small{min-height:28px;padding:4px 4px;font-size:11px}
.dashboard-overview-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.agent-welcome{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.agent-welcome h2{margin:5px 0 7px;font-size:20px}.agent-welcome p{margin:0;color:var(--muted);font-size:13px}.agent-capabilities{display:grid;gap:0}.agent-capabilities>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}.agent-capabilities>div:last-child{border-bottom:0}
.portal-quick-item{position:relative}.portal-unread-badge{position:absolute;top:7px;right:8px;display:grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#e45454;color:#fff;font-size:11px;line-height:1;font-weight:750;box-shadow:0 2px 6px rgba(180,42,42,.28)}
.customer-order-detail{width:min(520px,calc(100vw - 28px));max-height:min(760px,calc(100vh - 28px));overflow:auto;border-radius:18px;background:#fff;box-shadow:0 22px 70px rgba(16,40,52,.28)}.customer-order-detail header,.customer-order-detail footer{padding:20px 22px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.customer-order-detail header h2{margin:4px 0 9px;font-size:18px}.customer-order-detail main{padding:8px 22px}.customer-order-detail footer{border-bottom:0;border-top:1px solid var(--line);justify-content:flex-end}.customer-order-section{padding:16px 0;border-bottom:1px solid var(--line)}.customer-order-section:last-child{border-bottom:0}.customer-order-section h3{margin:0 0 9px;font-size:14px}.customer-order-section p{margin:4px 0;font-size:13px;line-height:1.55}.customer-order-fee{display:flex;justify-content:space-between;gap:16px;padding:8px 0;font-size:13px;border-bottom:1px dashed #e4ecee}.customer-order-fee:last-child{border-bottom:0}.customer-order-total{display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}.customer-order-total strong{font-size:18px;color:var(--teal)}
.customer-support-reply-hint{display:block;margin-top:5px;color:#1677e8;font-weight:700;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.customer-support-thread{width:min(480px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto;border-radius:18px;background:#fff;box-shadow:0 22px 70px rgba(16,40,52,.28)}.customer-support-thread header{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:12px}.customer-support-thread h2{margin:5px 0 8px;font-size:17px;line-height:1.35}.customer-support-thread main{padding:16px 20px}.customer-support-history{display:grid;gap:10px}.customer-support-message{max-width:88%;padding:11px 13px;border-radius:12px;background:#f0f7f8;color:#294b57}.customer-support-message.staff{border:1px solid #b9e4df;background:#e9f8f6}.customer-support-message.mine{justify-self:end;background:#f3f6f8}.customer-support-message span{display:block;color:#70858d;font-size:11px;font-weight:700}.customer-support-message p{margin:6px 0 0;font-size:13px;line-height:1.55;word-break:break-word}.customer-support-compose{margin-top:16px;padding-top:15px;border-top:1px solid var(--line)}.customer-support-compose label{display:block;margin-bottom:7px;font-size:13px;font-weight:700}.customer-support-compose textarea{width:100%;min-height:78px;resize:vertical}.customer-support-compose button{margin-top:10px;width:100%}@media(max-width:560px){.customer-support-thread{width:100vw;max-height:100vh;border-radius:0}.customer-support-thread header{padding:16px}.customer-support-thread main{padding:14px 16px}.customer-support-message{max-width:92%}}
@media(max-width:720px){.customer-support-thread{width:calc(100vw - 24px);max-height:calc(100vh - 24px)}.customer-support-thread header{padding:16px}.customer-support-thread main{padding:14px 16px}.customer-support-message{max-width:92%}}
@media(max-width:560px){.customer-support-thread{width:100vw;max-height:100vh;border-radius:0}}
@media(max-width:1250px){.dashboard-overview-grid{grid-template-columns:repeat(5,minmax(150px,1fr));overflow-x:auto}}
@media(max-width:760px){.dashboard-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}}
@media(max-width:620px){.agent-welcome{display:block}.agent-welcome .pill{display:inline-block;margin-top:12px}}
.box-inline-input{width:72px;min-width:62px;border:1px solid var(--line);border-radius:6px;padding:6px 5px;text-align:center;color:var(--ink);background:#fff}.box-inline-input:focus{border-color:var(--teal);box-shadow:0 0 0 2px #d9f2ef;outline:0}.box-inline-input:disabled{background:#f1f4f5;color:#82949b;border-color:#e2e8e9}
.box-select,.box-select-all{width:16px;height:16px;accent-color:var(--teal);cursor:pointer}.box-row-selected td{background:#e9f8f6!important}.data-table tr[data-box-row]{cursor:pointer}.data-table tr[data-box-row] button,.data-table tr[data-box-row] input{cursor:auto}
/* 装箱明细固定压缩在抽屉内展示，避免横向滚动隐藏后续字段。 */
.drawer .table-scroll:has(tr[data-box-row]){overflow:visible}.drawer .data-table:has(tr[data-box-row]){table-layout:fixed;font-size:10px;white-space:normal}.drawer .data-table:has(tr[data-box-row]) th,.drawer .data-table:has(tr[data-box-row]) td{padding:8px 3px;text-align:center;white-space:nowrap}.drawer .data-table:has(tr[data-box-row]) th:nth-child(1){width:28px}.drawer .data-table:has(tr[data-box-row]) th:nth-child(2){width:48px}.drawer .data-table:has(tr[data-box-row]) th:nth-child(3){width:96px}.drawer .data-table:has(tr[data-box-row]) th:nth-child(4){width:92px}.drawer .data-table:has(tr[data-box-row]) th:nth-child(5){width:72px}.drawer .data-table:has(tr[data-box-row]) th:nth-child(n+6):nth-child(-n+9){width:54px}.drawer .data-table:has(tr[data-box-row]) th:nth-child(n+10):nth-child(-n+14){width:60px}.drawer .data-table:has(tr[data-box-row]) th:nth-child(15){width:90px}.drawer .data-table:has(tr[data-box-row]) .box-inline-input{width:48px;min-width:42px;padding:5px 2px;font-size:10px}.drawer .data-table:has(tr[data-box-row]) .btn.small{min-height:28px;padding:4px 5px;font-size:10px}
.declaration-channel-home{width:100%;max-width:none;box-sizing:border-box}.declaration-channel-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.declaration-channel-card{position:relative;min-height:178px;padding:20px;border:1px solid #dce9ec;border-radius:12px;background:linear-gradient(150deg,#fff,#f5fbfb);box-shadow:0 5px 16px #183d4210;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.declaration-channel-card:hover,.declaration-channel-card:focus-visible{transform:translateY(-2px);border-color:#1677e8;box-shadow:0 8px 20px #183d4220;outline:none}.declaration-channel-card h2{font-size:17px;margin:18px 0 8px;color:#193d50}.declaration-channel-card p{font-size:12px;color:#718995;margin:0 0 20px}.declaration-channel-icon{height:38px;width:38px;display:grid;place-items:center;border-radius:11px;background:#eaf3ff;color:#1677e8}.declaration-channel-kind{position:absolute;top:21px;right:18px;border-radius:20px;background:#efe8ff;color:#7b5ab2;padding:5px 8px;font-size:10px;font-weight:750}.declaration-channel-next{margin-top:22px;color:#1677e8;font-size:12px;font-weight:750}.declaration-flow-hint{display:flex;gap:10px;align-items:center;flex-wrap:wrap;color:#59747c;font-size:12px;padding:2px 5px}.declaration-flow-hint span{background:#eef6f7;border-radius:7px;padding:8px 10px}.declaration-flow-hint i{font-style:normal;color:#1677e8;font-size:16px}
.customer-transfer-select-head,.customer-staff-transfer-row>td:first-child{width:46px;min-width:46px;padding-left:18px!important;padding-right:8px!important;text-align:left}.customer-transfer-select-head input,.customer-staff-transfer-row>td:first-child input{display:block;width:16px;height:16px;margin:0;accent-color:#1677e8}.customer-staff-transfer-row[data-transferable="1"]{cursor:pointer}.customer-staff-transfer-row[data-transferable="1"]:hover{background:#f1fbfa}.customer-staff-transfer-row[data-transferable="1"]:focus-within{background:#edf8f7}
@media(max-width:1280px){.declaration-channel-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1024px){.declaration-channel-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.declaration-channel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.declaration-channel-card{min-height:150px;padding:16px}}
@media(max-width:480px){.declaration-channel-grid{grid-template-columns:1fr}}
.scrim:has(form[data-form="new-declaration-batch"]) .form-field:has(input[type="date"]),.scrim:has(form[data-form="duplicate-declaration-batch"]) .form-field:has(input[type="date"]),.scrim:has(form[data-form="edit-declaration-batch"]) .form-field:has(input[type="date"]){cursor:pointer}.scrim:has(form[data-form="new-declaration-batch"]) .form-field:has(input[type="date"]) input,.scrim:has(form[data-form="duplicate-declaration-batch"]) .form-field:has(input[type="date"]) input,.scrim:has(form[data-form="edit-declaration-batch"]) .form-field:has(input[type="date"]) input{cursor:pointer}
.date-field-control{position:relative;display:block;width:100%}.date-field-control input[type="date"]{position:relative;z-index:1}.date-field-hit{position:absolute;inset:0;z-index:2;width:100%;height:100%;border:0;background:transparent;cursor:pointer;padding:0}.date-field-hit:focus{outline:2px solid #5a9ced;outline-offset:2px}
.declaration-stepbar{display:flex;align-items:center;gap:14px;margin:16px 0;color:#92a9ad}.declaration-stepbar span{padding:9px 14px;border-radius:20px;background:#edf4f3;font-weight:700}.declaration-stepbar span.active{background:#1677e8;color:#fff}.declaration-stepbar i{font-style:normal;color:#c7d8d8}.declaration-form-section{margin-top:16px}.declaration-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.declaration-fields .wide{grid-column:1/-1}.upload-placeholder{min-height:120px;border:1px dashed #b9d8d5;border-radius:10px;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;color:#6d898d}.upload-placeholder b{align-self:flex-start}.upload-placeholder span{text-align:center}.smart-recognition{grid-column:3;grid-row:5 / span 2;background:#ecf8f5;border-radius:12px;padding:14px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.smart-recognition b,.smart-recognition textarea{grid-column:1/-1}.smart-recognition textarea{min-height:70px}.product-tools{grid-template-columns:1.5fr auto 1.5fr auto auto;align-items:end}.product-tools input,.data-table input{min-width:80px;width:100%;box-sizing:border-box}.package-summary{margin-top:16px}.declaration-submit-actions{display:flex;justify-content:flex-end;gap:10px;margin:18px 0 30px}.danger-text{color:#e06456;font-weight:700}
.declaration-fields .smart-recognition{grid-column:1/-1;grid-row:auto;display:grid;margin-top:8px}
.declaration-fields .smart-recognition{grid-column:1/-1!important;grid-row:auto!important;display:grid!important;min-height:120px;width:100%;box-sizing:border-box;visibility:visible!important;opacity:1!important;position:relative;z-index:2;margin:18px 0!important}
.declaration-fields .smart-recognition textarea{display:block;min-height:72px;visibility:visible!important;opacity:1!important}
.declaration-fields .form-field:has([name="country"]){display:none!important}
.declaration-fields .upload-placeholder{min-height:0;aspect-ratio:1.586/1;width:100%;box-sizing:border-box;justify-self:center}
.declaration-fields .upload-placeholder b{font-size:1.15em}
.declaration-fields .upload-placeholder span{font-size:1.05em}
.declaration-fields .upload-placeholder.has-image{padding:8px;gap:4px;overflow:hidden}
.declaration-fields .upload-placeholder.has-image img{display:block;width:100%;height:calc(100% - 20px);object-fit:contain;border-radius:6px}
.declaration-fields .upload-placeholder.has-image small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.package-summary{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}@media(max-width:900px){.package-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.package-summary{grid-template-columns:minmax(0,1fr)}}
.package-summary .form-field{min-width:0}
.declaration-form-section .checkrow{display:inline-flex;width:max-content;max-width:100%;align-items:center;gap:8px;padding:8px 12px;border:1px solid #d9e6e5;border-radius:8px;box-sizing:border-box}
.declaration-form-section .checkrow input{margin:0}
.declaration-fields .upload-placeholder{grid-row:5;min-height:0;aspect-ratio:1.586/1}
.declaration-fields .upload-placeholder{grid-column:2}
.declaration-fields .upload-placeholder + .upload-placeholder{grid-column:3}
.declaration-fields .upload-placeholder b{display:none}
.declaration-fields .smart-recognition{grid-column:1!important;grid-row:5!important;align-self:stretch;min-height:0!important;height:auto;aspect-ratio:1.586/1;padding:12px;gap:6px;margin:0!important;border-radius:10px}
.declaration-fields .smart-recognition textarea{min-height:0;height:auto;padding:8px;font-size:13px}
.declaration-fields .smart-recognition .btn{min-height:30px;padding:5px 8px;font-size:12px}
.declaration-fields .smart-recognition{aspect-ratio:1.35/1;min-height:0!important;padding:12px}
.declaration-fields .smart-recognition b{font-size:18px;line-height:1.2}
.declaration-fields .smart-recognition textarea{min-height:0;height:100%;font-size:12px;line-height:1.35}
.declaration-fields .smart-recognition .btn{font-size:11px;line-height:1.2}
.declaration-fields .smart-recognition{aspect-ratio:1.586/1;height:auto;min-height:0!important}
.declaration-fields .smart-recognition b{font-size:16px;line-height:1.15}
.declaration-fields .smart-recognition textarea{height:100%;min-height:0;font-size:15px;line-height:1.35}
.declaration-fields .smart-recognition .btn{font-size:10px;min-height:26px;padding:4px 6px}
.declaration-fields .smart-recognition textarea{height:140px;min-height:140px;box-sizing:border-box}
.declaration-fields .smart-recognition{grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}
.declaration-fields .smart-recognition textarea{height:auto;min-height:0;max-height:none;align-self:stretch;resize:none;box-sizing:border-box}
.declaration-fields .smart-recognition .btn{align-self:stretch}
.declaration-form-section .checkrow{border:0;background:transparent;padding:4px 0}
.product-tools{grid-template-columns:minmax(220px,420px) minmax(220px,420px) 150px minmax(20px,1fr) 150px;justify-content:stretch;gap:10px}
.product-tools input{height:42px;border:1px solid #d5e3e6;border-radius:8px;outline:none;box-sizing:border-box;font-size:16px;padding:0 12px}
.product-tools input:focus{border-color:#1677e8;box-shadow:0 0 0 3px rgba(22,119,232,.12)}
.product-tools>input,.product-tools>.btn{height:42px;min-height:42px;box-sizing:border-box;align-self:stretch}
.product-tools>.btn:first-of-type{display:none}
.product-tools>.btn:nth-of-type(2),.product-tools>.btn:nth-of-type(3){width:100%;min-width:0}
.product-tools>.btn:nth-of-type(3){grid-column:5}
.data-table input{border:1px solid #d5e3e6;border-radius:7px;outline:none;padding:7px 9px;font-size:14px}
.data-table input:focus{border-color:#1677e8;box-shadow:0 0 0 3px rgba(22,119,232,.12)}
.declaration-fields .form-field:has([name="recipient_address"]){grid-column:1/-1!important;grid-row:4!important;align-self:start}
.declaration-fields .form-field:has([name="province"]),.declaration-fields .form-field:has([name="city"]),.declaration-fields .form-field:has([name="district"]){grid-row:4!important}
.declaration-fields .form-field:has([name="recipient_address"]){grid-row:5!important}
.declaration-fields .upload-placeholder{grid-row:6!important}
.declaration-fields .smart-recognition{grid-row:6!important}
.product-tools>input,.product-tools>.btn,.data-table input{height:42px;min-height:42px;box-sizing:border-box}
.data-table input{height:auto;min-height:0}
.product-tools>input,.product-tools>.btn{height:36px;min-height:36px}
.declaration-fields .upload-placeholder{cursor:pointer;transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.declaration-fields .upload-placeholder:hover{background:#eaf3ff;border-color:#1677e8;box-shadow:0 8px 18px rgba(22,119,232,.14);transform:translateY(-2px)}
.upload-placeholder.file-drag-active,.intake-photo-area.file-drag-active,.id-doc-preview.file-drag-active{background:#eaf3ff!important;border-color:#1677e8!important;box-shadow:0 0 0 4px rgba(22,119,232,.18),0 12px 28px rgba(22,119,232,.18)!important;transform:translateY(-2px)}
.upload-placeholder.file-drag-active:after,.intake-photo-area.file-drag-active:after,.id-doc-preview.file-drag-active:after{content:'松开即可加载文件';position:absolute;inset:10px;display:grid;place-items:center;border-radius:8px;background:rgba(234,243,255,.94);color:#1677e8;font-weight:800;font-size:15px;z-index:9;pointer-events:none}.upload-placeholder,.intake-photo-area,.id-doc-preview{position:relative}
.declaration-fields .upload-placeholder span{font-size:0}
.declaration-fields .upload-placeholder span:before{content:'+';display:block;font-size:64px;line-height:.8;font-weight:300;color:#6d898d;margin-bottom:14px}
.declaration-fields .upload-placeholder span:after{content:'点击上传身份证照片';font-size:18px;color:#6d898d}
/* The recipient section is used continuously during batch entry; keep the
   optional ID upload and parsing controls compact instead of consuming a full
   screen height. */
.declaration-recipient-compact .declaration-fields{gap:8px}
.declaration-recipient-compact .upload-placeholder,.declaration-recipient-compact .smart-recognition{min-height:92px!important;aspect-ratio:auto!important}
.declaration-recipient-compact .smart-recognition{padding:9px!important;gap:5px!important}
.declaration-recipient-compact .smart-recognition textarea{min-height:42px!important;height:42px!important;font-size:12px!important}
.declaration-recipient-compact .upload-placeholder span:before{font-size:34px;margin-bottom:3px}
.declaration-recipient-compact .upload-placeholder span:after{font-size:12px}
/* 制单页收件人资料压缩为“资料两行 + 识别/证件一行”，避免地址控件把页面撑高。 */
.declaration-recipient-compact .declaration-fields{grid-template-columns:repeat(6,minmax(0,1fr))!important;grid-auto-flow:row!important;align-items:start!important}
.declaration-recipient-compact .declaration-fields>.declaration-source-note{grid-column:1/-1!important;grid-row:1!important}
.declaration-recipient-compact .declaration-fields>.form-field:has([name="customer_id"]){grid-column:1/-1!important;grid-row:2!important}
.declaration-recipient-compact .declaration-fields>.form-field:has([name="recipient"]),.declaration-recipient-compact .declaration-fields>.form-field:has(.recipient-keyword-wrap){grid-column:1/span 3!important;grid-row:3!important}
.declaration-recipient-compact .declaration-fields>.form-field:has([name="recipient_name"]){grid-column:4!important;grid-row:3!important}
.declaration-recipient-compact .declaration-fields>.form-field:has([name="recipient_phone"]){grid-column:5!important;grid-row:3!important}
.declaration-recipient-compact .declaration-fields>.form-field:has([name="recipient_id_number"]){grid-column:6!important;grid-row:3!important}
.declaration-recipient-compact .declaration-fields>.form-field:has([name="province"]){grid-column:1!important;grid-row:4!important}
.declaration-recipient-compact .declaration-fields>.form-field:has([name="city"]){grid-column:2!important;grid-row:4!important}
.declaration-recipient-compact .declaration-fields>.form-field:has([name="district"]){grid-column:3!important;grid-row:4!important}
.declaration-recipient-compact .declaration-fields>.form-field:has([name="recipient_address"]){grid-column:4/-1!important;grid-row:4!important}
.declaration-recipient-compact .declaration-fields>.upload-placeholder{grid-row:5!important;grid-column:span 2!important;height:92px!important;min-height:92px!important;max-height:92px!important}
.declaration-recipient-compact .declaration-fields>.id-front-upload{grid-column:1/span 2!important}
.declaration-recipient-compact .declaration-fields>.id-back-upload{grid-column:3/span 2!important}
.declaration-recipient-compact .declaration-fields>.smart-recognition{grid-row:5!important;grid-column:5/span 2!important;height:92px!important;min-height:92px!important;max-height:92px!important}
.declaration-recipient-compact .declaration-fields>.smart-recognition textarea{height:42px!important;min-height:42px!important;max-height:42px!important}
.declaration-recipient-compact .declaration-fields>.form-field:has([name="country"]){display:none!important}
.declaration-recipient-compact .id-ocr-review{grid-column:1/-1;grid-row:6;display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:-2px;padding:7px 9px;border:1px solid #e5cb82;border-radius:8px;background:#fffaf0;font-size:12px;color:#71530d}.id-ocr-review[hidden]{display:none}.id-ocr-review small{width:100%;color:#8b7440}.id-ocr-ok{color:#177052;font-weight:700}.id-ocr-warn{font-weight:700}.id-ocr-actions{display:inline-flex;gap:6px}.id-ocr-actions .btn{padding:5px 8px;font-size:11px}
.id-ocr-review.id-ocr-review-bottom{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0 0;padding:13px 15px;border:1px solid #e5cb82;border-radius:10px;background:#fffaf0;font-size:13px;color:#71530d}.id-ocr-review.id-ocr-review-bottom[hidden]{display:none}.id-ocr-review.id-ocr-review-bottom::before{content:'身份证识别核对';width:100%;color:#17394b;font-size:14px;font-weight:800}.id-ocr-review.id-ocr-review-bottom small{width:100%;margin-top:1px}.id-ocr-review.id-ocr-review-bottom+.declaration-submit-actions{margin-top:10px}
.declaration-edit-ocr-review{display:flex;flex-direction:column;gap:6px;margin:12px 0 0;padding:12px 14px;border:1px solid #e5cb82;border-radius:10px;background:#fffaf0;font-size:13px;color:#71530d}.declaration-edit-ocr-review[hidden]{display:none}
@media(max-width:760px){
 .declaration-recipient-compact .declaration-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .declaration-recipient-compact .declaration-fields>.form-field:has([name="recipient"]),.declaration-recipient-compact .declaration-fields>.form-field:has(.recipient-keyword-wrap),.declaration-recipient-compact .declaration-fields>.form-field:has([name="recipient_address"]),.declaration-recipient-compact .declaration-fields>.smart-recognition{grid-column:1/-1!important}
 .declaration-recipient-compact .declaration-fields>.form-field:has([name="recipient_name"]){grid-column:1!important}
 .declaration-recipient-compact .declaration-fields>.form-field:has([name="recipient_phone"]){grid-column:2!important}
 .declaration-recipient-compact .declaration-fields>.form-field:has([name="recipient_id_number"]){grid-column:1/-1!important}
 .declaration-recipient-compact .declaration-fields>.form-field:has([name="province"]){grid-column:1!important}
 .declaration-recipient-compact .declaration-fields>.form-field:has([name="city"]){grid-column:2!important}
 .declaration-recipient-compact .declaration-fields>.form-field:has([name="district"]){grid-column:1!important}
 .declaration-recipient-compact .declaration-fields>.upload-placeholder{grid-column:span 1!important}
}
.package-summary{margin-top:26px;row-gap:22px}
.package-summary + .checkrow{margin-top:16px}
.package-summary + .checkrow + .section-note{margin-top:18px}
.region-metrics{grid-template-columns:repeat(4,minmax(0,1fr));margin:14px 0}.region-metrics .metric{min-height:82px}.region-metrics .metric b{font-size:22px}@media(max-width:760px){.region-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
.receiving-region-tree{overflow:hidden;padding:0}.receiving-country-row,.receiving-region-row{width:100%;min-height:58px;display:flex;align-items:center;border:0;border-bottom:1px solid #e4edef;background:#fff;color:#17394a;text-align:left}.receiving-country-row{padding:0 22px;gap:12px;cursor:pointer;font-size:18px}.receiving-country:last-child>.receiving-country-row{border-bottom:0}.receiving-country-row:hover,.receiving-region-row:hover{background:#f2faf9}.region-chevron{display:inline-grid;place-items:center;width:22px;height:22px;font-size:24px;line-height:1;transition:transform .18s ease;color:#66848b}.open>.region-chevron{transform:rotate(90deg)}.receiving-region-row{justify-content:space-between;padding:0 18px 0 calc(22px + var(--region-indent,0px))}.receiving-region-row.level-1{--region-indent:28px}.receiving-region-row.level-2{--region-indent:56px}.receiving-region-row.level-3{--region-indent:84px}.receiving-region-toggle{display:flex;align-items:center;gap:10px;min-height:56px;flex:1;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.receiving-region-toggle.leaf{cursor:default}.receiving-region-toggle.leaf .region-chevron{visibility:hidden}.receiving-region-actions{display:flex;gap:7px;opacity:.28;transition:opacity .15s ease}.receiving-region-row:hover .receiving-region-actions,.receiving-region-actions:focus-within{opacity:1}.receiving-region-children[hidden]{display:none}.receiving-region-empty{padding:15px 24px 15px 110px;color:#789096;background:#fafcfc;border-bottom:1px solid #e4edef}@media(max-width:720px){.receiving-region-actions{opacity:1}.receiving-region-row.level-3{--region-indent:52px}}
.region-picker-modal{width:min(980px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto}.region-search{display:grid;grid-template-columns:1fr 110px;gap:10px;padding:18px 20px 8px}.region-search input{min-height:42px}.region-picker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:12px 20px}.region-picker-grid section{min-width:0}.region-picker-grid h3,.region-search-results h3{margin:0 0 8px;font-size:13px}.region-list{height:300px;overflow:auto;border:1px solid #e4ebf3;border-radius:10px;padding:6px;background:#f7f9fc}.region-option{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;border:0;border-radius:7px;background:transparent;padding:9px 10px;text-align:left;color:#40556f;cursor:pointer}.region-option:hover,.region-option.selected{background:#eaf3ff;color:#1677e8}.region-option small{font-size:10px;color:#75879c;text-align:right}.region-search-results{margin:4px 20px 12px;padding:12px;border:1px solid #cfe2ff;border-radius:10px;background:#fff}.region-result-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:220px;overflow:auto;gap:3px}.region-picker-modal .modalfooter{align-items:center}.region-picker-modal [data-region-summary]{margin-right:auto}@media(max-width:720px){.region-picker-grid{grid-template-columns:1fr}.region-list{height:180px}.region-result-list{grid-template-columns:1fr}.region-search{grid-template-columns:1fr auto}}
.declaration-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}.declaration-metric{padding:16px 18px}.declaration-metric span,.declaration-metric small{display:block;color:var(--muted)}.declaration-metric strong{display:block;font-size:28px;line-height:1.15;margin:6px 0}.declaration-management-filters{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:12px;align-items:end}.declaration-filter{display:flex;flex-direction:column;gap:6px}.declaration-filter span{font-size:12px;font-weight:700;color:var(--muted)}.declaration-filter input,.declaration-filter select{width:100%;min-height:38px;border:1px solid var(--line);border-radius:9px;background:var(--surface);padding:8px 10px;color:var(--text)}.declaration-filter.wide{grid-column:span 2}.declaration-filter-actions{display:flex;gap:8px;align-items:center}.declaration-orders-table{overflow:hidden}.declaration-orders-table .tablewrap{overflow:auto}.declaration-orders-table table{min-width:1620px}.declaration-orders-table td{vertical-align:top}.declaration-orders-table td small{display:block;margin-top:5px;color:var(--muted);max-width:260px}.declaration-orders-table tr[data-declaration-order-row]{cursor:pointer}.declaration-orders-table tr[data-declaration-order-row]:hover td{background:#f7f9fc}.declaration-orders-table tr.declaration-row-selected td{background:#eaf3ff}.declaration-row-actions{min-width:112px}.declaration-row-actions .btn{display:block;width:100%;margin:0 0 6px}.declaration-state{display:inline-flex;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:750;background:#eef2f6;color:#445}.declaration-state.success{background:#e7f7ed;color:#16723a}.declaration-state.danger{background:#ffebe9;color:#b42318}.declaration-state.warn{background:#fff3d6;color:#955b00}.declaration-orders-table .danger-text{color:#b42318}.declaration-tax-cell{min-width:100px;white-space:nowrap}.test-mode-mark{color:#955b00!important;font-weight:750}.declaration-select-all{display:flex;gap:7px;align-items:center;font-size:13px;font-weight:700}
@media(max-width:1050px){.declaration-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.declaration-management-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.declaration-metrics,.declaration-management-filters{grid-template-columns:1fr}.declaration-filter.wide{grid-column:auto}.declaration-filter-actions .btn{flex:1}.declaration-orders-table table{min-width:1320px}}
.declaration-metric[data-action]{width:100%;text-align:left;color:inherit;font:inherit;cursor:pointer}.declaration-metric[data-action]:hover,.declaration-metric[data-action]:focus-visible{border-color:var(--primary);box-shadow:0 0 0 2px rgba(13,141,141,.16);outline:none}

/* A selected declaration is indicated by one calm row tint, not a separate
   left edge in every cell.  This keeps the table readable while preserving a
   clear selection state for bulk actions. */
.declaration-orders-table tr.declaration-row-selected td{background:#eaf3ff;box-shadow:none}

/* 申报订单管理：全部筛选条件固定为同一行，空间不足时横向滚动而不是折行。 */
.declaration-management-filters{display:flex!important;flex-flow:row nowrap!important;align-items:end!important;overflow-x:auto;padding-bottom:2px}
.declaration-management-filters .declaration-filter{flex:1 1 132px;min-width:132px}
.declaration-management-filters .declaration-filter.wide{flex:1.8 1 260px;min-width:230px;grid-column:auto!important}
.declaration-management-filters .declaration-filter-actions{flex:0 0 auto;min-width:max-content;white-space:nowrap}

/* 申报订单筛选：不要把字段强制挤在一条横向长带里，确保客户、申报订单号等字段可见。 */
.declaration-management-filters{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;flex-flow:initial!important;overflow:visible!important;align-items:end!important}
.declaration-management-filters .declaration-filter{min-width:0!important;flex:initial!important}
.declaration-management-filters .declaration-filter.wide{grid-column:span 2!important;min-width:0!important;flex:initial!important}
.declaration-management-filters .declaration-filter-actions{grid-column:span 2;min-width:0!important;white-space:nowrap}
@media(max-width:1050px){.declaration-management-filters{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:620px){.declaration-management-filters{grid-template-columns:1fr!important}.declaration-management-filters .declaration-filter.wide{grid-column:auto!important}.declaration-management-filters .declaration-filter-actions{grid-column:auto}}

/* 批次账号分布保持信息完整，但压缩卡片和标签行高。 */
.declaration-account-summary{padding:11px 14px!important;margin-top:12px}
.declaration-account-summary .cardtitle{margin-bottom:6px;padding:0}
.declaration-account-summary .cardtitle h3{font-size:15px;line-height:1.2;margin:0}
.declaration-account-chips{display:flex;align-items:center;gap:6px;flex-wrap:wrap;line-height:1}
.declaration-account-chips .pill{padding:4px 9px;line-height:1.15;font-size:12px}

/* 申报订单表格：批次号突出显示；勾选列和操作列与表头统一居中。 */
.declaration-orders-table th:first-child,.declaration-orders-table td:first-child,.declaration-orders-table th:nth-child(2),.declaration-orders-table td:nth-child(2){text-align:center!important;vertical-align:middle!important}
.declaration-orders-table .declaration-row-actions{display:table-cell}
.declaration-orders-table .declaration-batch-no{display:block;color:#c43f35;font-size:15px;font-weight:800;line-height:1.25;margin-top:3px}
.declaration-select-all-header{justify-content:flex-start;white-space:nowrap;gap:5px;font-size:12px;padding-left:8px}
.declaration-select-all-header input{margin:0}
.declaration-orders-table th:first-child,.declaration-orders-table td:first-child{width:78px;padding-left:8px;padding-right:8px;text-align:left!important}
.declaration-orders-table th:nth-child(2),.declaration-orders-table td:nth-child(2){width:160px}
.declaration-orders-table td:first-child>input{margin-left:8px}
.declaration-orders-table td.declaration-row-actions{display:table-cell;vertical-align:middle;padding:8px 10px}
.declaration-orders-table td.declaration-row-actions .btn{width:100%;min-width:0;max-width:100%;margin:0;padding:6px 4px;white-space:normal;overflow-wrap:anywhere;word-break:break-word;justify-content:center;text-align:center;line-height:1.2}
.declaration-orders-table td.declaration-status-cell .declaration-status-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:6px}
.declaration-orders-table td.declaration-status-cell .declaration-status-actions .btn{min-height:28px;max-width:100%;white-space:normal}
.declaration-orders-table td.declaration-status-cell{min-width:190px;max-width:260px;white-space:normal;overflow-wrap:anywhere}
.declaration-orders-table .declaration-failure-reason{display:block;max-width:100%;margin-top:6px;color:#b42318;white-space:normal;overflow-wrap:anywhere;word-break:break-word;line-height:1.4}
.declaration-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:12px 14px;border-top:1px solid var(--line);color:var(--muted);font-size:13px}.declaration-pagination>span:first-child{margin-right:auto}.declaration-pagination label{display:flex;align-items:center;gap:6px;white-space:nowrap}.declaration-pagination select{min-height:34px;border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:5px 8px;color:var(--text)}.declaration-page-indicator{white-space:nowrap}.declaration-pagination button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:620px){.declaration-pagination{justify-content:center;gap:7px;padding:10px}.declaration-pagination>span:first-child{flex:1 0 100%;text-align:center;margin:0}.declaration-pagination label{margin-right:auto}}

/* 未取号订单编辑：重量及备注同一行，多个商品使用紧凑可横向滚动列表。 */
.scrim:has(form[data-form="edit-declaration-order"]){align-items:flex-start;overflow:auto}
.scrim:has(form[data-form="edit-declaration-order"]) .modal{width:min(94vw,1480px);max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);overflow:auto;margin:16px auto}
.scrim:has(form[data-form="edit-declaration-order"]) .modalbody{max-width:100%;overflow:hidden}
.declaration-edit-recipient-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px 10px}.declaration-edit-recipient-grid .form-field label{margin-bottom:4px}.declaration-edit-recipient-grid .form-field input{min-height:34px;padding:7px 9px}.declaration-edit-recipient-grid .form-field:has([name="customer_code"]){grid-column:1}.declaration-edit-recipient-grid .form-field:has([name="country"]){grid-column:2}.declaration-edit-recipient-grid .form-field:has([name="recipient"]){grid-column:3}.declaration-edit-recipient-grid .form-field:has([name="recipient_phone"]){grid-column:4}.declaration-edit-recipient-grid .form-field:has([name="recipient_id_number"]){grid-column:5/span 2}.declaration-edit-recipient-grid .form-field:has([name="recipient_region"]){grid-column:1/span 2}.declaration-edit-recipient-grid .form-field:has([name="recipient_address"]){grid-column:3/span 3}.declaration-edit-recipient-grid .form-field:has([name="recipient_postcode"]){grid-column:6}
.declaration-edit-id-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px;align-items:start}.declaration-edit-id-tools .form-field label{margin-bottom:6px}.declaration-edit-id-tools .id-doc-preview{width:100%;height:auto;min-height:210px;aspect-ratio:85.6/54;margin-bottom:6px}.declaration-edit-id-tools .id-doc-field small{font-size:10px}.declaration-edit-id-tools .id-doc-preview img{display:block;width:100%;height:100%;object-fit:contain;background:#f7fafb}.declaration-edit-smart-address{display:grid;grid-template-rows:auto minmax(140px,1fr) auto auto;gap:6px}.declaration-edit-smart-address textarea{width:100%;height:100%;min-height:140px;resize:vertical;padding:10px;font-size:12px}.declaration-edit-smart-address .btn{width:100%}.declaration-edit-smart-address small{color:var(--muted);line-height:1.4}.declaration-edit-recipient-library{display:grid;grid-template-columns:minmax(220px,1fr) minmax(260px,2fr);align-items:center;gap:6px 12px;margin:8px 0 12px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#f7fbff}.declaration-edit-recipient-library label{font-weight:700}.declaration-edit-recipient-library small{grid-column:2;color:var(--muted)}.declaration-edit-recipient-picker{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(260px,1.2fr);gap:8px}.declaration-edit-recipient-picker input,.declaration-edit-recipient-picker select{width:100%}
.declaration-edit-package-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px}
.compact-note{padding:8px 10px;margin-bottom:8px;font-size:12px}.declaration-edit-goods-actions{justify-content:flex-end;margin-top:8px}.declaration-edit-goods-scroll{max-width:100%;overflow-x:auto;overflow-y:hidden;max-height:none;border:1px solid #dbe9ea;border-radius:10px;background:#fff}
.declaration-edit-goods-table{width:100%;min-width:1180px;border-collapse:collapse;font-size:12px}
.declaration-edit-goods-table th{position:sticky;top:0;z-index:1;padding:9px 8px;background:#edf7f6;color:#365966;text-align:left;white-space:nowrap}
.declaration-edit-goods-table td{padding:6px 7px;border-top:1px solid #e7eff0;vertical-align:middle;white-space:nowrap}
.declaration-edit-goods-table td:first-child{font-weight:800;color:#52717b;text-align:center}
.declaration-edit-goods-table input{width:130px;min-width:0;height:34px;box-sizing:border-box;padding:6px 8px;border:1px solid #d4e3e6;border-radius:6px;background:#fff;color:#173f4d}.declaration-edit-goods-table td:nth-child(1){width:38px}.declaration-edit-goods-table td:nth-child(2) input{width:150px}.declaration-edit-goods-table td:nth-child(3) input{width:130px}.declaration-edit-goods-table td:nth-child(4) input,.declaration-edit-goods-table td:nth-child(5) input{width:155px}.declaration-edit-goods-table td:nth-child(6) input{width:130px}.declaration-edit-goods-table td:nth-child(7) input{width:125px}.declaration-edit-goods-table td:nth-child(8) input{width:82px}.declaration-edit-goods-table td:nth-child(9) input{width:110px}.declaration-edit-product-summary{min-width:240px;color:#526d76}
.declaration-edit-goods-table .declaration-edit-tax-picker{display:block;width:125px;max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:6px 7px;text-align:left}.declaration-edit-goods-table [data-edit-tax-unit]{display:block;max-width:125px;margin-top:3px;color:#6e858d;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.declaration-edit-goods-table th:nth-child(7),.declaration-edit-goods-table td:nth-child(7){text-align:center}.declaration-edit-goods-table td:nth-child(7) .declaration-edit-tax-cell{display:flex;justify-content:center}.declaration-edit-goods-table td:nth-child(7) .declaration-edit-tax-button{width:125px!important;text-align:center!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.declaration-edit-goods-table .declaration-edit-tax-picker{display:block;width:125px;max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:6px 7px;text-align:left}.declaration-edit-goods-table [data-edit-tax-unit]{display:block;max-width:125px;margin-top:3px;color:#6e858d;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:760px){.declaration-edit-recipient-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.declaration-edit-recipient-grid .form-field:has([name="recipient_id_number"]),.declaration-edit-recipient-grid .form-field:has([name="recipient_region"]),.declaration-edit-recipient-grid .form-field:has([name="recipient_address"]){grid-column:1/-1}.declaration-edit-recipient-grid .form-field:has([name="recipient_postcode"]){grid-column:1}.declaration-edit-id-tools{grid-template-columns:1fr}.declaration-edit-package-row{grid-template-columns:repeat(2,minmax(0,1fr))}.scrim:has(form[data-form="edit-declaration-order"]) .modal{width:calc(100vw - 16px)}}

.modal:has(form[data-form="declaration-new-product"]) .modalfooter{padding-right:24px;transform:translate(-8px,-6px)}
.declaration-product-search-row{cursor:pointer}.declaration-product-search-row:hover{background:#eaf3ff;color:#1677e8}
.declaration-form-section .data-table th{text-align:center!important;vertical-align:middle!important}.declaration-form-section .data-table td{text-align:center;vertical-align:top}.declaration-form-section .data-table td input{text-align:center;font-size:11px;padding-left:5px;padding-right:5px;overflow:visible;text-overflow:clip}.declaration-form-section .data-table td:nth-child(2) input,.declaration-form-section .data-table td:nth-child(4) input,.declaration-form-section .data-table td:nth-child(5) input,.declaration-form-section .data-table td:nth-child(6) input{font-size:12px}
.declaration-form-section .data-table td{box-sizing:border-box;min-width:0;overflow:hidden;position:relative}.declaration-form-section .data-table td input{box-sizing:border-box;display:block;max-width:calc(100% - 2px);min-width:0;position:relative;z-index:1;margin-left:0;margin-right:2px}.declaration-form-section .product-tools{grid-template-columns:minmax(180px,380px) minmax(180px,380px) 150px minmax(20px,1fr) 150px;margin-bottom:8px}.declaration-form-section .data-table tbody td{vertical-align:middle!important}.declaration-form-section .data-table tbody td:nth-child(1),.declaration-form-section .data-table tbody td:nth-child(12){text-align:center!important}.declaration-form-section .data-table tbody td input{height:29px;min-height:29px;line-height:18px;vertical-align:middle}.declaration-form-section .data-table tbody td .btn{vertical-align:middle}

/* 商品读取后的分类弹窗和商品行：在窄视口内完整可达，不裁掉右侧操作。 */
.declaration-form-section:has(.product-tools) .table-scroll{max-width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin}
.declaration-form-section:has(.product-tools) .data-table{width:100%;min-width:1160px;table-layout:fixed}
.declaration-form-section:has(.product-tools) .data-table th:last-child,.declaration-form-section:has(.product-tools) .data-table td:last-child{width:104px;min-width:104px;white-space:nowrap}
.declaration-tax-picker-scrim{box-sizing:border-box;align-items:center;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:12px}
.declaration-tax-picker-modal{box-sizing:border-box;flex:none;width:min(760px,calc(100vw - 24px));max-width:760px;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);min-height:0;overflow:hidden;display:flex;flex-direction:column;margin:auto}
.declaration-tax-picker-modal .modalheader{flex:none;gap:12px;min-width:0}
.declaration-tax-picker-modal .modalheader>div{min-width:0}
.declaration-tax-picker-content{min-width:0;overflow:hidden}
.declaration-tax-picker-content [data-tax-current]{display:grid;gap:8px;max-height:min(52vh,520px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:2px 4px 2px 0}
.declaration-tax-picker-content [data-tax-current]>.btn{box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:38px;height:auto;white-space:normal;overflow-wrap:anywhere;text-align:left;line-height:1.45}
.declaration-tax-picker-footer{position:sticky;bottom:0;z-index:1;flex:none;flex-wrap:wrap;gap:8px;background:var(--surface,#fff)}
@media(max-width:520px){.declaration-tax-picker-scrim{padding:8px}.declaration-tax-picker-modal{width:calc(100vw - 16px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px)}.declaration-tax-picker-modal .modalheader{padding:14px}.declaration-tax-picker-modal .modalheader p{line-height:1.45}.declaration-tax-picker-content{padding:12px!important}.declaration-tax-picker-content [data-tax-current]{max-height:min(48vh,420px)}.declaration-tax-picker-footer [data-tax-summary]{flex:1 0 100%;min-width:0;overflow-wrap:anywhere}}
 .batch-row-clickable{cursor:pointer}.batch-history-row td{padding:0!important;background:#f7fbfb!important}.batch-history-panel{padding:12px 18px;border-top:1px solid #dceeed}.batch-history-list{display:grid;gap:6px}.batch-history-item{display:grid;grid-template-columns:minmax(150px,1.4fr) 1.2fr 1fr 1fr 1fr;gap:12px;align-items:center;padding:9px 12px;background:#fff;border:1px solid #e5eff0;border-radius:7px;color:#486571;font-size:12px}.batch-history-item small{color:#80939a}
.batch-history-row~*{}
.data-table:has(tbody .batch-row-clickable) th,.data-table:has(tbody .batch-row-clickable) td{text-align:center!important;vertical-align:middle!important}.data-table tbody .batch-row-clickable td:last-child{white-space:nowrap}.data-table tbody .batch-row-clickable td:last-child .btn{margin-left:8px}.data-table tbody .batch-row-clickable td:last-child .btn:first-child{margin-left:0}
.batch-hover-tip{position:fixed;z-index:9999;pointer-events:none;background:#173f54;color:#fff;border:1px solid #0d6570;border-radius:6px;padding:8px 12px;font-size:15px;font-weight:700;line-height:1.4;box-shadow:0 5px 16px rgba(18,50,64,.22);white-space:nowrap}
.titlebar .actions{gap:10px;align-items:center}
.titlebar .actions>.btn,.titlebar .actions>[data-batch-bulk-actions]>.btn{height:35px;min-height:35px;box-sizing:border-box}
.titlebar .actions>[data-batch-bulk-actions]{display:inline-flex;align-items:center;gap:10px}
.batch-history-toolbar{padding:0 0 9px;border-bottom:0;justify-content:flex-start;position:relative;gap:10px;flex-wrap:nowrap}
.batch-history-toolbar>b{position:static;flex:none}
.batch-history-toolbar select{height:32px;min-height:32px;border:1px solid var(--line);border-radius:7px;padding:4px 8px;background:#fff;color:var(--ink2)}
.batch-history-item{min-height:35px;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}
.batch-history-item:hover{background:#eaf3ff;border-color:#9dccff;box-shadow:0 3px 10px rgba(20,109,108,.12)}
.batch-history-item:focus-visible{outline:2px solid #1677e8;outline-offset:2px}
.batch-history-search{width:auto!important;flex:0 1 360px;min-width:0;height:32px;border:1px solid var(--line);border-radius:7px;padding:4px 9px}
.batch-history-list{overflow:hidden}
.batch-history-list .batch-history-item{display:grid;width:100%;min-width:0;grid-template-columns:24px minmax(0,.9fr) minmax(0,.35fr) minmax(0,1.4fr) minmax(0,.36fr) minmax(0,.38fr) minmax(0,.7fr) minmax(0,.7fr) minmax(0,.55fr) minmax(0,.5fr) minmax(0,1.5fr);gap:7px;overflow:hidden;align-items:center}
.batch-history-header{display:grid;width:100%;min-width:0;grid-template-columns:24px minmax(0,.9fr) minmax(0,.35fr) minmax(0,1.4fr) minmax(0,.36fr) minmax(0,.38fr) minmax(0,.7fr) minmax(0,.7fr) minmax(0,.55fr) minmax(0,.5fr) minmax(0,1.5fr);gap:7px;align-items:center;padding:7px 12px;color:#6d8791;background:#edf7f7;border:1px solid #dceeed;border-radius:7px;font-size:11px;font-weight:750;white-space:nowrap;overflow:hidden}.batch-history-header span{min-width:0;overflow:hidden;text-overflow:ellipsis}.batch-history-header span:last-child{text-align:right}
.batch-history-item>*{min-width:0}.batch-history-field{font-size:11px;color:#607883;display:flex;align-items:center;gap:4px;min-width:0;white-space:nowrap}.batch-history-field span,.batch-history-field em{font-style:normal;flex:none}.batch-history-field input{flex:1;min-width:0;width:100%;height:30px;border:1px solid var(--line);border-radius:6px;padding:4px 7px;background:#fff;color:var(--ink)}
.batch-history-order,.batch-history-recipient,.batch-history-tracking,.batch-history-tax,.batch-history-status{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.batch-history-tracking{color:#607883;font-size:11px;font-variant-numeric:tabular-nums}.batch-history-tax{font-variant-numeric:tabular-nums}.batch-history-tax small{display:block}
.batch-history-item.selected{background:#eaf3ff;border-color:#9dccff}
.batch-history-item input{width:16px;height:16px}
.batch-history-actions{display:flex;justify-content:flex-end;gap:5px;min-width:0;white-space:nowrap}
.batch-history-actions .btn{height:29px;min-height:29px;min-width:0;padding:4px 6px;font-size:10px}
.batch-history-check{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:flex-start;width:24px;overflow:visible}.batch-history-check input[type="checkbox"]{appearance:none!important;-webkit-appearance:none!important;display:block!important;width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;margin:0!important;padding:0!important;box-sizing:border-box!important;opacity:1!important;visibility:visible!important;border:1px solid #577884!important;border-radius:3px;background:#fff!important;outline:none!important;transform:none!important}.batch-history-check input[type="checkbox"]:checked{background:#1677e8!important;border-color:#1677e8!important;box-shadow:inset 0 0 0 3px #fff}
.batch-history-item .batch-history-field input{flex:1;width:100%;min-width:0;height:30px;box-sizing:border-box}
.batch-history-order{grid-column:2;grid-row:1}.batch-history-recipient{grid-column:3;grid-row:1}.batch-history-tracking{grid-column:4;grid-row:1}
.batch-history-item>label:nth-of-type(1){grid-column:5;grid-row:1}.batch-history-item>label:nth-of-type(2){grid-column:6;grid-row:1}.batch-history-item>label:nth-of-type(3){grid-column:7;grid-row:1}.batch-history-item>label:nth-of-type(4){grid-column:8;grid-row:1}
.batch-history-tax{grid-column:9;grid-row:1}.batch-history-status{grid-column:10;grid-row:1}.batch-history-actions{grid-column:11;grid-row:1}
.label-preview-modal{width:min(820px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto}.label-preview-body{background:#f3f6f7;padding:22px}.label-preview-paper{background:#fff;border:2px solid #111;padding:28px;min-height:560px;max-width:620px;margin:0 auto;color:#111}.label-preview-brand{font-size:22px;font-weight:800}.label-preview-mode{float:right;border:2px solid #b42318;color:#b42318;padding:3px 7px;font-weight:800}.label-preview-tracking{font:700 26px ui-monospace,monospace;letter-spacing:1px;border-block:2px solid #111;padding:14px 0;margin:16px 0;word-break:break-all}.label-preview-grid{display:grid;grid-template-columns:145px 1fr;border-top:1px solid #555}.label-preview-grid>div{padding:9px 4px;border-bottom:1px solid #aaa}.label-preview-grid .k{font-weight:700}.label-preview-goods{margin-top:16px;font-size:13px}.label-preview-hint{margin-top:16px;color:#667;font-size:12px}.label-preview-actions{justify-content:flex-end;gap:10px}.label-preview-actions .danger{color:#b42318;border-color:#e3b7b2}@media print{body *{visibility:hidden!important}.label-preview-paper,.label-preview-paper *{visibility:visible!important}.label-preview-paper{position:absolute;left:0;top:0;width:100%;max-width:none;min-height:0;border:2px solid #111;margin:0;padding:12mm}.label-preview-body{padding:0;background:#fff}.label-preview-modal{width:auto;max-height:none;overflow:visible}.label-preview-actions,.label-preview-modal>.modalheader{display:none!important}}
.yto-label-paper{width:min(100%,500px);aspect-ratio:100/180;margin:0 auto;display:grid;grid-template-rows:8% 10.4% 9% 10.3% 8.1% 10.3% 9.1% 10.3% 24.5%;background:#fff;border:.35mm solid #000;box-sizing:border-box;color:#000;font-family:Arial,"PingFang SC","Microsoft YaHei",sans-serif;overflow:hidden}.yto-label-paper>*{box-sizing:border-box;min-width:0}.yto-headcode{display:flex;align-items:center;justify-content:center;border-bottom:.65mm solid #000;font-size:7.1mm;font-weight:900;letter-spacing:.1mm;line-height:1}.yto-track{position:relative;display:flex;align-items:center;justify-content:center;border-bottom:.65mm solid #000}.yto-track>div{width:53%;display:flex;flex-direction:column;align-items:center;gap:.9mm}.yto-track-top>div{width:50%;margin-left:27mm}.yto-barcode-svg{display:block;width:100%;height:9.8mm;fill:#000}.yto-track strong{font-size:4.2mm;line-height:1;font-weight:900;letter-spacing:.04mm;white-space:nowrap}.yto-express-mark{position:absolute;left:10.3mm;top:50%;width:13.8mm;height:auto;transform:translateY(-50%);object-fit:contain}.yto-party{display:grid;grid-template-columns:15.5mm 1fr;grid-template-rows:1fr 1fr;align-content:center;padding:1.8mm 1.8mm;border-bottom:.65mm solid #000;font-size:3.65mm;line-height:1.17;font-weight:650}.yto-party b{grid-row:1/3;align-self:center;font-size:4mm;white-space:nowrap}.yto-party span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.yto-party em{font-style:normal;font-weight:650;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.yto-recipient{font-weight:800}.yto-recipient span,.yto-recipient em{font-weight:800}.yto-weight{display:grid;grid-template-columns:46.1% 53.9%;border-bottom:.65mm solid #000;font-size:3.8mm;line-height:1.35;font-weight:800}.yto-weight>div{padding:2.1mm 1.8mm}.yto-weight strong{font-size:4.3mm;margin-left:2mm}.yto-sign{border-left:.65mm solid #000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.1mm;font-size:4.1mm}.yto-sign span{font-size:3.8mm}.yto-track-bottom>div{width:76%;gap:.9mm}.yto-detail{position:relative;display:flex;align-items:flex-start;justify-content:space-between;padding:3.3mm 4.1mm;font-size:4.2mm;line-height:1.28;font-weight:800}.yto-detail>div:first-child{display:flex;flex-direction:column;gap:.7mm;max-width:48mm}.yto-detail strong{font-size:4.3mm}.yto-detail span{font-size:3.85mm;font-weight:700;white-space:nowrap}.yto-international-logo{width:17mm;height:17mm;object-fit:contain;margin-top:4.8mm;flex:none}@page{size:100mm 180mm;margin:0}@media print{.yto-label-paper{width:100mm;height:180mm;aspect-ratio:auto;margin:0;border:.35mm solid #000}.label-preview-body{padding:0!important;background:#fff!important}.yto-label-paper{font-kerning:normal}.label-preview-modal{width:auto!important;max-height:none!important;overflow:visible!important}}
.label-template-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);gap:17px;align-items:start}.label-logo-config{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:18px 0}.label-logo-slot{border:1px solid #dce8ea;border-radius:10px;background:#f9fbfb;padding:13px}.label-logo-slot-head{display:flex;justify-content:space-between;gap:9px;align-items:center;margin-bottom:12px}.label-logo-slot-head b{font-size:12px;color:#294b59}.label-logo-slot-head small{font-size:11px;color:#66818b}.label-logo-slot img{display:block;width:100%;height:118px;object-fit:contain;background:#fff;border:1px dashed #b8ced3;border-radius:8px;margin-bottom:11px;padding:9px}.label-logo-slot input[type=file]{width:100%;font-size:11px}.label-logo-slot p{font-size:11px;color:#79909a;margin:9px 0 0;line-height:1.5}.label-template-actions{justify-content:flex-end;border-top:1px solid #e9f0f1;padding-top:16px}.label-template-preview{position:sticky;top:83px}.label-template-preview-stage{padding:16px;background:#edf2f3;border-radius:9px;min-height:620px;display:grid;place-items:center;overflow:auto}.label-template-paper-preview{width:min(100%,310px);min-width:250px;box-shadow:0 8px 22px #23434b22}.label-template-paper-preview .yto-headcode{font-size:5.4mm}.label-template-paper-preview .yto-party{font-size:2.75mm}.label-template-paper-preview .yto-party b{font-size:3mm}.label-template-paper-preview .yto-weight{font-size:2.8mm}.label-template-paper-preview .yto-weight strong{font-size:3.15mm}.label-template-paper-preview .yto-sign{font-size:3.05mm}.label-template-paper-preview .yto-sign span{font-size:2.8mm}.label-template-paper-preview .yto-track strong{font-size:3.1mm}.label-template-paper-preview .yto-detail{font-size:3mm}.label-template-paper-preview .yto-detail strong{font-size:3.1mm}.label-template-paper-preview .yto-detail span{font-size:2.7mm}.label-template-paper-preview .yto-express-mark{left:7mm}.label-template-paper-preview .yto-track-top>div{margin-left:20mm}.label-template-paper-preview .yto-international-logo{margin-right:7mm}.label-template-paper-preview .yto-brand-name{right:2mm!important;top:7mm!important;font-size:3.3mm!important}@media(max-width:1100px){.label-template-grid{grid-template-columns:1fr}.label-template-preview{position:static}.label-template-preview-stage{min-height:520px}}@media(max-width:640px){.label-logo-config{grid-template-columns:1fr}.label-template-preview-stage{padding:10px}.label-template-paper-preview{min-width:220px}}
.api-payload-view{margin:6px 0 0;max-height:360px;overflow:auto;white-space:pre-wrap;word-break:break-word;padding:12px;border:1px solid var(--line);border-radius:8px;background:#f7fafb;color:#183849;font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace}
.label-preview-scrim{z-index:100}
.bulk-label-sheet{margin:12px auto}
@media print {
 body:has(.bulk-label-modal) .bulk-label-modal { height:auto!important; max-height:none!important; overflow:visible!important }
 body:has(.bulk-label-modal) .bulk-label-modal .bulk-label-body { height:auto!important; overflow:visible!important }
 body:has(.bulk-label-modal) .bulk-label-sheet { width:100mm!important; height:180mm!important; margin:0!important; break-after:page; page-break-after:always; overflow:hidden!important }
 body:has(.bulk-label-modal) .bulk-label-sheet:last-child { break-after:auto; page-break-after:auto }
 body:has(.bulk-label-modal) .bulk-label-sheet .custom-label-paper { width:100mm!important; height:180mm!important; max-width:none!important; max-height:none!important; margin:0!important }
}
@media print {
  body:has(.label-preview-scrim) > :not(#overlay-root) { display:none!important }
  body:has(.label-preview-scrim) #overlay-root { display:block!important; position:static!important; margin:0!important; padding:0!important }
  body:has(.label-preview-scrim) .label-preview-modal { height:auto!important; max-height:none!important; overflow:visible!important }
  body:has(.label-preview-scrim) .label-preview-modal .modalbody { max-height:none!important; overflow:visible!important; padding:0!important }
  body:has(.label-preview-scrim) .label-preview-modal .custom-label-paper { width:100mm!important; height:180mm!important; min-width:0!important; min-height:0!important; max-width:100mm!important; max-height:180mm!important; margin:0!important; transform:none!important; box-sizing:border-box!important }
}
@media print{
  html,body{margin:0!important;padding:0!important;background:#fff!important}
  body *{visibility:hidden!important}
  .label-preview-scrim,.label-preview-scrim *{visibility:visible!important}
  .label-preview-scrim{position:static!important;display:block!important;padding:0!important;background:#fff!important}
  .label-preview-modal{position:static!important;width:100mm!important;max-width:100mm!important;height:auto!important;max-height:none!important;overflow:visible!important;margin:0!important;border:0!important;box-shadow:none!important;border-radius:0!important}
  .label-preview-modal>.modalheader,.label-preview-modal>.modalfooter{display:none!important}
  .label-preview-body{display:block!important;width:100mm!important;height:180mm!important;padding:0!important;background:#fff!important;overflow:hidden!important}
  .label-preview-modal .yto-label-paper,.label-preview-modal .htt-label-paper{display:grid!important;visibility:visible!important;width:100mm!important;height:180mm!important;max-width:none!important;margin:0!important;aspect-ratio:auto!important;border:.35mm solid #000!important}
  .label-preview-modal .yto-label-paper>* ,.label-preview-modal .htt-label-paper>*{font-size:90%!important}
  @page{size:100mm 180mm;margin:0}
}
.order-main-badge{display:inline-block;border-radius:5px;padding:3px 6px;background:#eaf3ff;color:#1677e8;font:700 10px/1 sans-serif;vertical-align:1px}.order-children-row td{padding:0!important;background:#f7f9fc!important}.order-children{padding:15px 18px 18px;border-left:3px solid #1677e8;min-width:760px}.order-children-title{font-size:13px;font-weight:800;color:#173f54;margin-bottom:4px}.order-child-scroll{overflow-x:auto;margin-top:10px}.order-child-table{border-collapse:collapse;width:100%;font-size:11px;background:#fff;border:1px solid #dbe9e9}.order-child-table th{background:#edf7f6;color:#52727a;text-align:left;font-weight:700;padding:9px 10px;border-bottom:1px solid #dbe9e9}.order-child-table td{padding:9px 10px!important;border-bottom:1px solid #edf1f1!important;background:#fff!important}.order-child-table tbody tr:last-child td{border-bottom:0!important}
.label-preview-modal{width:min(720px,calc(100vw - 96px))!important;max-height:86vh!important;overflow:hidden!important}.label-preview-modal .modalheader{padding:15px 18px}.label-preview-modal .modalheader h2{font-size:16px}.label-preview-modal .modalbody{max-height:calc(86vh - 145px);overflow:auto}.label-preview-body{padding:16px!important}
.label-preview-scrim~.batch-hover-tip,.label-preview-scrim+.batch-hover-tip{display:none!important}.label-preview-body .yto-label-paper,.label-preview-body .htt-label-paper{height:min(650px,calc(86vh - 175px));width:auto;max-width:100%;aspect-ratio:100/180}
/* 角色权限采用左侧菜单一致的折叠树；默认只展示一级菜单。 */
.staff-permission-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.permission-tree{border:1px solid #dbe7e9;border-radius:8px;background:#fff;min-width:0}.permission-tree summary{display:grid;grid-template-columns:17px minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px;cursor:pointer;list-style:none}.permission-tree summary::-webkit-details-marker{display:none}.permission-tree summary::after{content:'›';color:#6b858f;font-size:17px;line-height:1;transform:rotate(0);transition:transform .16s}.permission-tree[open] summary{border-bottom:1px solid #e7eef0;background:#f9fcfc}.permission-tree[open] summary::after{transform:rotate(90deg)}.permission-parent{width:auto!important;min-height:0!important;margin:0!important}.permission-tree-title{font-size:12px;font-weight:800;color:#173f54;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.permission-tree-count{font-size:10px;color:#69848e;white-space:nowrap}.permission-tree-hint{display:none}.permission-tree-children{display:grid;gap:7px;padding:7px}.permission-child-section{display:grid;gap:4px}.permission-child-section+.permission-child-section{padding-top:7px;border-top:1px solid #edf2f3}.permission-child-section>b{font-size:10px;color:#69848e;letter-spacing:.04em;padding:1px 8px}.permission-tree-partial{border-color:#cfe2ff}.permission-tree-partial .permission-tree-count{color:#1677e8;font-weight:700}.permission-tree[open] .permission-tree-hint{display:none}
/* 角色权限在一屏内完成勾选，避免每个选项占用过高卡片。 */
.staff-permission-editor>label{margin-bottom:6px}.staff-permission-grid .checkrow{display:grid!important;grid-template-columns:16px minmax(0,1fr);column-gap:8px;min-height:40px;margin:0;padding:5px 8px;font-size:11px;line-height:1.25;border-radius:6px;align-items:center}.staff-permission-grid .checkrow input{grid-column:1;grid-row:1;margin:0;transform:scale(.9)}.permission-copy{grid-column:2;grid-row:1;display:grid;gap:2px;min-width:0;width:100%}.permission-name{font-weight:700;color:#405b68}.permission-description{font-size:10px;line-height:1.22;color:#748a95;font-weight:400}.staff-permission-editor small{display:block;margin-top:8px;line-height:1.4}@media(max-width:860px){.staff-permission-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.staff-permission-grid{grid-template-columns:1fr}}
.staff-price-toggle{height:40px!important;min-height:40px;box-sizing:border-box;display:flex!important;align-items:center;gap:9px;margin:0!important;padding:0 10px!important;border:1px solid #d8e4e8!important;border-radius:8px;color:#405b68!important;font-size:13px!important;font-weight:500!important;background:#fff}.staff-price-toggle input{width:auto!important;min-height:0!important;margin:0!important}
.staff-role-topline{grid-column:1/-1;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px;align-items:start;width:100%}.staff-role-topline>.form-field{min-width:0;display:grid;grid-template-rows:18px 40px;gap:6px;align-content:start}.staff-role-topline>.form-field>label:first-child{height:18px;line-height:18px;margin:0}.staff-role-topline>.form-field>input,.staff-role-topline>.form-field>.staff-role-enabled{grid-row:2;width:100%;height:40px!important;min-height:40px!important;box-sizing:border-box}.staff-role-enabled{display:flex;align-items:center;justify-content:flex-start;gap:8px;margin:0;padding:0 10px;border:1px solid #d8e4e8;border-radius:8px;background:#fff;color:#405b68;font-size:13px;font-weight:500}.staff-role-enabled input{width:auto!important;min-height:0!important;margin:0!important}@media(max-width:620px){.staff-role-topline{grid-template-columns:1fr!important}}
.modal:has(form[data-form="staff-role"]){width:min(980px,calc(100vw - 40px));max-height:calc(100vh - 40px)}.modal:has(form[data-form="staff-role"]) .modalbody{padding:16px 20px}.modal:has(form[data-form="staff-role"]) .form-grid{gap:10px}.modal:has(form[data-form="staff-role"]) .form-field input{min-height:36px;padding:8px}
.declaration-order-detail-modal{width:min(1120px,calc(100vw - 48px));max-height:calc(94vh);}.declaration-order-detail-modal .modalheader{padding:16px 20px}.declaration-order-detail-modal .modalbody{padding:15px 20px}.declaration-order-detail-modal .section-note{padding:8px 11px;margin-bottom:11px;line-height:1.5}.declaration-detail-section{margin-top:14px}.declaration-detail-section>h3{font-size:15px;margin:0 0 7px}.declaration-order-detail-modal .detailgrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px 16px}.declaration-order-detail-modal .detailitem{padding:6px 0}.declaration-order-detail-modal .detailitem .v{font-size:12px;margin-top:3px}.declaration-order-detail-modal .detailitem .k{font-size:10px}.declaration-order-detail-modal .card{margin-bottom:8px}.declaration-order-detail-modal .cardpad{padding:11px 13px}.declaration-order-detail-modal .cardtitle{margin-bottom:8px}.declaration-order-detail-modal .id-doc-grid{margin-top:8px}.declaration-detail-id-docs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:12px 0}.declaration-detail-id-docs h4{margin:0 0 6px;font-size:12px;color:#274653}.declaration-detail-id-photo{min-height:180px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;border:1px dashed #9dcbd5;border-radius:9px;background:#f7fcfc;overflow:hidden}.declaration-detail-id-photo b{font-size:12px;color:#496b76}.declaration-detail-id-photo small{font-size:11px;color:#718b94}.declaration-detail-id-photo img{display:block;width:100%;height:220px;object-fit:contain;background:#fff}.declaration-detail-id-photo.missing{background:#fafcfc;border-color:#d8e5e7}.declaration-inline-note{display:grid;grid-template-columns:minmax(150px,1fr) minmax(260px,2.2fr) auto;gap:10px;align-items:center;margin-top:9px;padding:9px 11px;border:1px solid var(--line);border-radius:9px;background:#fbfdfd}.declaration-inline-note h3{font-size:12px;margin:0}.declaration-inline-note p{font-size:10px;line-height:1.4;color:var(--muted);margin:3px 0 0}.declaration-inline-note textarea{min-height:42px;resize:vertical;border:1px solid #d8e4e8;border-radius:7px;padding:7px 9px;font-size:12px}.declaration-operation-log{margin-top:15px;border:1px solid var(--line);border-radius:9px;background:#fbfdfd;padding:0 12px}.declaration-operation-log summary{cursor:pointer;padding:11px 0;font-weight:750;font-size:13px}.declaration-operation-log summary span{font-size:11px;color:var(--muted);font-weight:400}.declaration-operation-log[open] summary{border-bottom:1px solid var(--line);margin-bottom:10px}.declaration-operation-log .timeline{margin:2px 0 10px}.declaration-operation-log .event{padding-bottom:11px}
@media(max-width:760px){.declaration-order-detail-modal{width:calc(100vw - 20px)}.declaration-order-detail-modal .detailgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.declaration-inline-note{grid-template-columns:1fr}.declaration-inline-note .btn{width:100%}}
/* 身份证按真实 85.60 × 53.98 mm 比例展示，智能识别放左侧 */
.declaration-recipient-compact .declaration-fields>.smart-recognition{grid-column:1/span 2!important;grid-row:5!important;aspect-ratio:85.6/54!important;height:auto!important;min-height:0!important;max-height:none!important}
.declaration-recipient-compact .declaration-fields>.upload-placeholder{grid-row:5!important;grid-column:3/span 2!important;aspect-ratio:85.6/54!important;height:auto!important;min-height:0!important;max-height:none!important}
.declaration-recipient-compact .declaration-fields>.upload-placeholder+.upload-placeholder{grid-column:5/span 2!important}
/* 智能地址识别与两张身份证按同一真实证件比例排列。
   卡片高度由屏幕宽度自然决定；文本框只占标题、按钮和说明之外的剩余高度。 */
.declaration-recipient-compact .declaration-fields>.smart-recognition{display:grid!important;grid-column:1/span 2!important;grid-row:5!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:auto minmax(0,1fr) auto auto!important;gap:6px!important;align-self:stretch!important;aspect-ratio:85.6/54!important;height:auto!important;min-height:0!important;max-height:none!important;padding:10px!important;overflow:hidden}
.declaration-recipient-compact .declaration-fields>.upload-placeholder{grid-row:5!important;aspect-ratio:85.6/54!important;height:auto!important;min-height:0!important;max-height:none!important}
.declaration-recipient-compact .declaration-fields>.smart-recognition>b,.declaration-recipient-compact .declaration-fields>.smart-recognition textarea,.declaration-recipient-compact .declaration-fields>.smart-recognition [data-smart-recognition-status]{grid-column:1/-1!important}
.declaration-recipient-compact .declaration-fields>.smart-recognition textarea{height:100%!important;min-height:0!important;max-height:none!important;resize:none!important;box-sizing:border-box!important;overflow:auto}
.declaration-recipient-compact .declaration-fields>.smart-recognition .btn{width:100%;min-width:0;min-height:30px!important;margin:0!important;padding:4px 6px!important;font-size:12px!important;white-space:nowrap}
.declaration-recipient-compact .declaration-fields>.smart-recognition [data-smart-recognition-status]{display:block!important;min-width:0;overflow-wrap:anywhere;font-size:11px!important;line-height:1.3!important;color:#69848e}
@media(max-width:760px){.declaration-recipient-compact .declaration-fields>.smart-recognition{grid-column:1/-1!important;grid-row:auto!important;aspect-ratio:85.6/54!important}.declaration-recipient-compact .declaration-fields>.upload-placeholder{grid-column:span 1!important;grid-row:auto!important}}

/* 大包发货 · 商业线制单 */
.commercial-section{padding:18px 0;border-bottom:1px solid #e7eff0}.commercial-section:last-of-type{border-bottom:0}.commercial-section h3{margin:0 0 13px;color:#173f54;font-size:15px}.commercial-item{margin:12px 0;padding:14px;border:1px solid #dbe9ea;border-radius:9px;background:#fbfdfd}.commercial-item-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;color:#173f54}.commercial-hs-actions{display:flex;align-items:center;gap:10px;margin-top:10px}.commercial-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.commercial-item-grid{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:1050px){.commercial-item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.commercial-item-grid{grid-template-columns:1fr}.commercial-hs-actions{align-items:flex-start;flex-direction:column}.commercial-actions{justify-content:stretch}.commercial-actions .btn{flex:1}}

/* Excel 导入：支持从微信、Finder 与桌面直接拖入文件，同时保留点击选择。 */
.excel-import-drop{position:relative;display:flex;box-sizing:border-box;min-height:132px;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:20px;border:2px dashed #cfe2ff;border-radius:14px;background:#f7fcfc;color:#52737b;cursor:pointer;text-align:center;transition:border-color .16s ease,background .16s ease,transform .16s ease}
.excel-import-drop:hover,.excel-import-drop:focus,.excel-import-drop.dragover{border-color:#1677e8;background:#eaf3ff;outline:none;transform:translateY(-1px)}
.excel-import-drop.has-file{border-style:solid;border-color:#1677e8;background:#f7f9fc;color:#40556f}
.excel-import-drop input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.excel-import-drop b{font-size:16px;color:#173f4d}.excel-import-drop span{font-size:13px}.excel-import-drop small{font-weight:700;color:#0e5fc4}

/* Keep the role activation control centered inside its third header card. */
.staff-role-enabled{display:grid!important;grid-template-columns:auto auto;justify-content:start!important;align-items:center!important}
/* Taotaro dashboard summary: lightweight section aligned with the main KPI cards. */
.taotaro-dashboard-section{margin:2px 0 14px}.taotaro-dashboard-title{font-size:15px;font-weight:800;color:var(--ink);display:flex;align-items:center;justify-content:space-between;margin:0 0 10px;padding:0 2px}.taotaro-dashboard-title span{font-size:11px;font-weight:500;color:var(--muted)}.taotaro-stat-grid{grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-flow:row;margin-bottom:14px}.taotaro-stat-grid .stat{min-width:0;min-height:116px;padding:18px}.taotaro-stat-grid .stat .iconbg{right:17px;top:17px}.taotaro-stat-grid .stat .num{margin:10px 0 3px}.taotaro-dashboard-section+.card .cardtitle{margin-bottom:10px}.taotaro-dashboard-section+.card .cardpad{padding:14px}.taotaro-dashboard-section+.card .workflow{gap:5px}.taotaro-dashboard-section+.card .wfstep{min-height:62px;padding:8px 7px}.taotaro-dashboard-section+.card .wfstep strong{margin:5px 0 2px;font-size:11px}.taotaro-dashboard-section+.card .wfstep span{font-size:9px}.taotaro-dashboard-section+.card .wfnumber{width:20px;height:20px;font-size:10px}
.taotaro-dashboard-section+.card.cardpad{padding:10px 14px}.taotaro-dashboard-section+.card.cardpad .cardtitle{margin-bottom:6px}.taotaro-dashboard-section+.card.cardpad .workflow{gap:4px}.taotaro-dashboard-section+.card.cardpad .wfstep{min-height:42px;padding:5px 4px}.taotaro-dashboard-section+.card.cardpad .wfstep strong{margin:3px 0 0;font-size:10px}.taotaro-dashboard-section+.card.cardpad .wfstep span{display:none}.taotaro-dashboard-section+.card.cardpad .wfnumber{width:16px;height:16px;font-size:9px}
.taotaro-dashboard-section+.card.cardpad .workflow{display:flex;align-items:center;gap:4px}.taotaro-dashboard-section+.card.cardpad .wfstep{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:38px;padding:4px 6px}.taotaro-dashboard-section+.card.cardpad .wfstep .wfnumber{flex:0 0 auto;margin:0}.taotaro-dashboard-section+.card.cardpad .wfstep strong{margin:0;white-space:nowrap}.taotaro-dashboard-section+.card.cardpad .wfstep span{display:none}.taotaro-dashboard-section+.card.cardpad .workflow .wfstep:not(:last-child)::after{content:'›';color:#9ab1b8;font-size:17px;font-weight:700;margin-left:2px}
.taotaro-dashboard-section+.card.cardpad .wficon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;color:#1677e8}.taotaro-dashboard-section+.card.cardpad .wfstep strong{display:inline-flex;align-items:center;line-height:1}.taotaro-dashboard-section+.card.cardpad .workflow .wfstep:not(:last-child)::after{display:inline-flex;align-items:center;line-height:1}
/* Compact OCR comparison panel in edit modal footer */
.declaration-edit-ocr-review.declaration-edit-ocr-footer{flex:1 1 420px;min-width:260px;margin:0;padding:6px 9px;border-radius:7px;display:block;font-size:11px;line-height:1.35}
.declaration-edit-ocr-review.declaration-edit-ocr-footer b{display:inline-block;margin-right:8px}
.declaration-edit-ocr-review.declaration-edit-ocr-footer div{display:inline-block;margin-right:10px}
.declaration-edit-ocr-review.declaration-edit-ocr-footer div:last-child{display:block;margin-top:2px}
form[data-form="edit-declaration-order"] .modalfooter{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.batch-sticky-page{padding-right:30px!important}
.batch-sticky-titlebar,.declaration-entry-sticky-titlebar{position:sticky;top:76px;z-index:9;margin:-10px -12px 20px;padding:10px 12px;border:1px solid #d4e8e9;border-radius:12px;background:rgba(249,252,252,.97);box-shadow:0 8px 20px #1c435018;backdrop-filter:blur(10px)}
.batch-sticky-titlebar h1,.declaration-entry-sticky-titlebar h1{font-size:23px}.batch-sticky-titlebar p,.declaration-entry-sticky-titlebar p{max-width:560px}.batch-sticky-actions{justify-content:flex-end;gap:7px}.batch-sticky-actions [data-batch-bulk-actions]{display:inline-flex;align-items:center;gap:7px;padding:5px 7px;border:1px solid #d6e9e9;border-radius:10px;background:#fff}.batch-sticky-actions [data-batch-bulk-actions] .btn{min-height:32px}.batch-sticky-actions [data-action="batch-bulk-get"]{background:#1677e8;border-color:#1677e8;color:#fff;box-shadow:0 3px 8px #1677e826}.batch-sticky-actions [data-action="batch-bulk-delete"]{border-color:#f0d7d7;background:#fffafa}.batch-sticky-actions [data-order-template-download]{background:#eff9f8}.batch-sticky-actions [data-action="back-declaration-channels"],.batch-sticky-actions [data-action="refresh"]{color:#58717c;background:#fff}
@media(max-width:1100px){.batch-sticky-page{padding-right:24px!important}}
@media(max-width:960px){.batch-sticky-titlebar,.declaration-entry-sticky-titlebar{top:67px;align-items:flex-start;flex-wrap:wrap}.batch-sticky-actions{width:100%;justify-content:flex-start}.batch-sticky-actions [data-batch-bulk-actions]{flex-wrap:wrap}}
@media(max-width:760px){.batch-sticky-page{padding-right:12px!important}.batch-sticky-titlebar,.declaration-entry-sticky-titlebar{top:59px;margin:-6px 0 16px;padding:10px;border-radius:10px}.batch-sticky-titlebar h1,.declaration-entry-sticky-titlebar h1{font-size:20px}.batch-sticky-titlebar p,.declaration-entry-sticky-titlebar p{display:none}.batch-sticky-actions .btn{font-size:11px;padding:7px 8px}.batch-sticky-actions [data-batch-bulk-actions]{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.batch-sticky-actions [data-batch-bulk-actions] .btn{width:100%}}
.portalhead .portal-welcome b,.portalhead .righttools .muted{color:#fff}
.modal:has(form[data-form="new-private-recipient"]){width:min(900px,calc(100vw - 48px));max-height:94vh}
.modal:has(form[data-form="new-private-recipient"]) .modalbody{padding:24px 30px}
.recipient-intake-note{padding:12px 14px;background:#eef9f8;border:1px solid #d5ece9;border-radius:10px;color:#47717a;margin-bottom:18px;line-height:1.6}
.recipient-intake-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.recipient-intake-fields .form-field.wide{grid-column:1/-1}
.recipient-intake-raw{display:block;margin-top:16px}
.recipient-intake-raw>span,.recipient-id-dropzone>span{display:block;font-size:12px;font-weight:700;color:#506774;margin-bottom:7px}
.recipient-intake-raw textarea{display:block;width:100%;min-height:72px;border:1px solid #d8e4e8;border-radius:8px;padding:10px;font-size:13px;resize:vertical}
.recipient-id-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:20px}
.recipient-id-dropzone{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:220px;border:1px dashed #b8d2dc;border-radius:10px;padding:14px;background:#fbfdfd;cursor:pointer;text-align:center}
.recipient-id-dropzone:hover{border-color:#1682da;background:#f5fbff}
.recipient-id-dropzone input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.recipient-id-drop-hint{font-size:12px;color:#718895}
.recipient-id-preview{display:block;width:100%;max-height:190px;aspect-ratio:1.586/1;object-fit:contain;border-radius:8px;margin-top:12px}
.recipient-id-preview:not([src]){display:none}
@media(max-width:700px){.modal:has(form[data-form="new-private-recipient"]){width:calc(100vw - 24px)}.modal:has(form[data-form="new-private-recipient"]) .modalbody{padding:16px}.recipient-intake-fields,.recipient-id-pair{grid-template-columns:1fr}.recipient-intake-fields .form-field.wide{grid-column:auto}}
.modal:has(form[data-form="new-private-recipient"]){width:min(490px,calc(100vw - 36px));max-height:calc(100vh - 32px)}
.modal:has(form[data-form="new-private-recipient"]) .modalheader{padding:13px 20px}
.modal:has(form[data-form="new-private-recipient"]) .modalbody{padding:12px 20px}
.modal:has(form[data-form="new-private-recipient"]) .modalfooter{padding:0 20px 14px}
.modal:has(form[data-form="new-private-recipient"]) .form-field label{margin-bottom:4px}
.modal:has(form[data-form="new-private-recipient"]) .form-field input{min-height:36px;padding:7px 9px}
.recipient-intake-note{padding:8px 11px;margin-bottom:7px;line-height:1.45}
.recipient-intake-fields{gap:8px 10px}
.recipient-intake-raw{margin-top:7px}
.recipient-intake-raw textarea{min-height:52px;padding:8px 9px}
.recipient-id-pair{gap:12px;margin-top:8px}
.recipient-id-dropzone{height:138px;min-height:138px;padding:10px;overflow:hidden}
.recipient-id-preview{max-height:96px;margin-top:7px}
@media(max-width:700px){.modal:has(form[data-form="new-private-recipient"]){width:calc(100vw - 24px)}.modal:has(form[data-form="new-private-recipient"]) .modalbody{padding:12px}}
.recipient-id-dropzone{padding:5px}
.recipient-id-preview{width:100%;height:100%;max-height:100%;margin:0;aspect-ratio:auto;object-fit:contain}
.recipient-id-dropzone.is-processing{border-color:#0b86a4;box-shadow:0 0 0 2px #0b86a420 inset}
.recipient-id-dropzone:not(:has(.recipient-id-preview[src]))::before{content:'身份证正面';font-size:14px;font-weight:700;color:#4f6a79}
.recipient-id-dropzone:nth-child(2):not(:has(.recipient-id-preview[src]))::before{content:'身份证反面'}
.recipient-id-dropzone:not(:has(.recipient-id-preview[src]))::after{content:'点击或拖入图片';margin-top:5px;font-size:11px;color:#8195a0}
.recipient-id-pair::after{content:'正反面分别放入对应卡片；支持点击选择或直接拖入图片。';grid-column:1/-1;font-size:11px;line-height:1.4;color:#718895}
.recipient-id-status{font-size:11px;line-height:1.4;color:#3c6872;margin-top:6px}
.recipient-id-status:empty{display:none}
.recipient-id-status[data-state="warning"]{color:#ad571a}
.recipient-id-manual{display:flex;align-items:flex-start;gap:6px;margin-top:6px;font-size:11px;line-height:1.4;color:#526b77}
.recipient-id-manual[hidden]{display:none}
.recipient-id-manual input{margin:1px 0 0}
/* Customer bank-remittance page, patterned after the supplied mobile reference. */
.recharge-page{max-width:760px;margin:0 auto 28px;padding:18px;border-radius:22px;background:linear-gradient(155deg,#b5d7ff 0,#dbeefa 21%,#f2f6fb 48%,#f5f7fa 100%);color:#17364a}
.recharge-page [hidden]{display:none!important}
.recharge-payee-card{border-color:#c9e0f6}.recharge-payee-card h3{margin-bottom:13px}.recharge-payee-grid{display:grid;grid-template-columns:100px minmax(0,1fr);gap:10px 14px;align-items:baseline;font-size:14px}.recharge-payee-grid>span{color:#71899a}.recharge-payee-grid>b{overflow-wrap:anywhere;color:#17364a}.recharge-payee-note{margin:12px 0 0;color:#6b8190;font-size:13px;line-height:1.6}
.recharge-hero{padding:18px 10px 25px;text-align:center}.recharge-kicker{font-size:11px;font-weight:800;letter-spacing:2px;color:#3677cf}.recharge-hero h2{margin:8px 0 6px;font-size:26px}.recharge-hero p{margin:0;color:#5d7586;font-size:13px}
.recharge-card{background:#fff;border:1px solid #e4edf6;border-radius:17px;padding:21px 23px;margin-bottom:14px;box-shadow:0 5px 18px #396d9b0b}.recharge-card h3{margin:0;font-size:18px}.recharge-amount-line{display:flex;align-items:center;gap:17px;border-bottom:1px solid #e8eef4;margin-top:18px;padding:4px 0 8px}.recharge-amount-line span{font-size:20px;font-weight:750}.recharge-amount-line input{width:100%;border:0;outline:0;background:transparent;font:inherit;font-size:22px;color:#143a59;min-width:0}.recharge-amount-line input::placeholder{color:#9eaebc;font-size:18px}
.recharge-balance-card{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:15px;font-weight:750;color:#2071d7}.recharge-balance-card button,.recharge-detail-head button{border:0;background:transparent;color:#263e4e;font:inherit;font-size:14px;cursor:pointer;white-space:nowrap}.recharge-balance-card button:hover,.recharge-detail-head button:hover{color:#116fe7}
.recharge-fields{padding-top:4px;padding-bottom:4px}.recharge-fields>label{display:grid;grid-template-columns:160px minmax(0,1fr);align-items:center;min-height:65px;gap:14px;border-bottom:1px solid #edf1f5;font-size:14px;font-weight:700}.recharge-fields>label span em{color:#e44343;font-style:normal}.recharge-fields>label input{border:0;outline:0;min-width:0;background:transparent;font:inherit;font-weight:400;color:#19384c}.recharge-fields>label input::placeholder{color:#9baab5}.recharge-proof-row{display:grid;grid-template-columns:160px minmax(0,1fr);align-items:center;gap:14px;padding:18px 0;font-size:14px;font-weight:700}.recharge-proof-row>div{display:flex;align-items:center;gap:15px;min-width:0}.recharge-upload{width:110px;height:110px;flex:none;border:1px dashed #bfd5e8;border-radius:12px;background:#f4f8fb;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#758b9b;cursor:pointer;font-weight:500}.recharge-upload b{font-size:36px;font-weight:400;line-height:1}.recharge-proof-row small{color:#8195a1;font-weight:400;overflow-wrap:anywhere}
.recharge-safety{color:#8a6429;background:#fff8e9;border:1px solid #f0dfb9;border-radius:12px;padding:11px 14px;font-size:12px;line-height:1.6;margin-bottom:15px}.recharge-submit{display:block;width:100%;min-height:54px;border:0;border-radius:999px;background:linear-gradient(90deg,#448dff,#1671ef);color:#fff;font-size:17px;font-weight:750}.recharge-submit:disabled{opacity:.58;cursor:not-allowed}
.recharge-detail-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.recharge-tabs{display:grid;grid-template-columns:repeat(3,1fr);background:#f0f2f5;border-radius:10px;padding:3px}.recharge-tabs button{border:0;border-radius:8px;background:transparent;min-height:43px;color:#6d7880;font-size:14px;cursor:pointer}.recharge-tabs button.active{background:#fff;color:#1671e5;font-weight:750;box-shadow:0 1px 4px #143f6814}.recharge-empty{text-align:center;min-height:270px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#9aaab5}.recharge-empty-icon{width:75px;height:75px;border-radius:22px;background:#eaf3ff;color:#80b3f6;font-size:56px;line-height:66px}.recharge-empty p{margin:17px 0 4px;font-size:16px}.recharge-empty small{font-size:12px}
@media(max-width:600px){.recharge-page{padding:12px;border-radius:16px}.recharge-card{padding:18px 16px}.recharge-fields>label,.recharge-proof-row{grid-template-columns:112px minmax(0,1fr);gap:8px}.recharge-proof-row>div{align-items:flex-start;flex-direction:column;gap:7px}.recharge-upload{width:98px;height:98px}.recharge-hero{padding:15px 6px 20px}}

/* 商品库：11 列紧凑布局，申报价格与单价相邻，右侧编辑始终可见。 */
.product-catalog-table .table-scroll{overflow-x:auto}
.product-catalog-table .data-table{width:100%;min-width:1120px;table-layout:fixed;font-size:12px}
.product-catalog-table .data-table th,.product-catalog-table .data-table td{padding:9px 7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-catalog-table .data-table th:nth-child(1){width:10%}.product-catalog-table .data-table th:nth-child(2){width:9%}.product-catalog-table .data-table th:nth-child(3){width:11%}.product-catalog-table .data-table th:nth-child(4){width:15%}.product-catalog-table .data-table th:nth-child(5){width:10%}.product-catalog-table .data-table th:nth-child(6){width:8%}.product-catalog-table .data-table th:nth-child(7){width:6%}.product-catalog-table .data-table th:nth-child(8){width:7%}.product-catalog-table .data-table th:nth-child(9){width:8%}.product-catalog-table .data-table th:nth-child(10){width:8%}.product-catalog-table .data-table th:nth-child(11){width:6%;min-width:62px;position:sticky;right:0;z-index:2;background:#f5f9fa;text-align:center}
.product-catalog-table .data-table th:nth-child(8),.product-catalog-table .data-table th:nth-child(9),.product-catalog-table .data-table td:nth-child(8),.product-catalog-table .data-table td:nth-child(9){text-align:center}
.product-catalog-table .data-table td:nth-child(11){position:sticky;right:0;z-index:1;background:#fff;text-align:center;overflow:visible}.product-catalog-table .data-table td:nth-child(11) .btn{min-height:28px;padding:4px 8px;font-size:12px}
.product-catalog-editor .form-field input[readonly]{background:#f2f7f8;color:#53717b}
/* Paid AI translation is separate; bulk translate/extract uses the existing
   Google Translate web endpoint. Keep its label honest and align its size with
   the adjacent merge action. */
.taotaro-bulk-toolbar [data-action^="taotaro-choose-box:"],.taotaro-bulk-toolbar [data-action^="taotaro-bulk-suggest:"]{box-sizing:border-box;min-width:92px;min-height:40px;padding:8px 14px;font-size:15px;line-height:1.2;display:inline-flex;align-items:center;justify-content:center}

/* 全局阅读字号：在不改变卡片宽高和页面布局的前提下，整体上调一档。 */
body{font-size:16px}
.small{font-size:15px}.tiny{font-size:14px}
.brandnote,.brand small,.search-dark input,.grouphead,.navitem,.sidebarfoot,.crumb,.righttools,.env{font-size:15px}
.titlebar p{font-size:16px}.btn{font-size:15px;min-height:40px}.btn.small{font-size:14px;min-height:33px}
.cardtitle .aux,.stat .label,.stat .foot,.wfstep strong,.section-note,.inline-note,.searchfield input,.form-control{font-size:15px}
.data-table{font-size:15px}.data-table th{font-size:15px}.table-footer,.state,.pill{font-size:14px}
.form-field label{font-size:15px}.form-field input,.form-field textarea,.form-field select{font-size:16px}
.detailitem .k,.fieldhint,.checkrow,.event,.toast{font-size:15px}.detailitem .v{font-size:16px}

/* 淘太郎代切收件人：沿用全局表单控件的尺寸、边框和留白。 */
.taotaro-recipient-raw{display:block;margin:0 0 14px}.taotaro-recipient-raw>span,.taotaro-recipient-field>span{display:block;margin:0 0 7px;font-size:15px;font-weight:700;color:#506774}.taotaro-recipient-raw textarea,.taotaro-recipient-field input,.taotaro-recipient-field select{width:100%;box-sizing:border-box;border:1px solid #d8e4e8;border-radius:8px;padding:10px;font:inherit;font-size:16px;line-height:1.35;outline:none;background:#fff;color:var(--ink,#29465a);min-height:40px}.taotaro-recipient-raw textarea{resize:vertical;min-height:64px}.taotaro-recipient-raw textarea:focus,.taotaro-recipient-field input:focus,.taotaro-recipient-field select:focus{border-color:#5a9ced;box-shadow:0 0 0 3px #eaf3ff}
.taotaro-recipient-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.taotaro-recipient-field{display:block;min-width:0}.taotaro-recipient-field select{appearance:auto;cursor:pointer}
.taotaro-recipient-id-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:17px}.taotaro-recipient-id-zone{position:relative;min-height:170px;box-sizing:border-box;border:2px dashed #9bcbd7;border-radius:13px;background:#f4fbfc;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;overflow:hidden;cursor:pointer;transition:.15s ease;color:#176f7b;user-select:none}.taotaro-recipient-id-zone:hover,.taotaro-recipient-id-zone:focus-visible,.taotaro-recipient-id-zone.is-dragover{border-color:#1677e8;background:#eaf3ff;outline:none}.taotaro-recipient-id-zone.is-processing{opacity:.64;pointer-events:none}.taotaro-recipient-id-zone input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.taotaro-recipient-id-zone.has-image{background:#fff;border-style:solid}.taotaro-recipient-id-zone img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff;z-index:1}.taotaro-recipient-id-zone.has-image .taotaro-recipient-plus,.taotaro-recipient-id-zone.has-image strong,.taotaro-recipient-id-zone.has-image small{display:none}.taotaro-recipient-plus{font-size:40px;line-height:1;font-weight:350}.taotaro-recipient-id-zone strong{font-size:16px}.taotaro-recipient-id-zone small{font-size:13px;color:#63838e}.taotaro-recipient-ocr-note{margin-top:10px;padding:9px 12px;border-radius:8px;background:#f1f6f8;color:#55717e;font-size:14px}.taotaro-recipient-ocr-note.is-success{background:#e4f6ed;color:#187449}.taotaro-recipient-ocr-note.is-warning{background:#fff3dd;color:#99641b}.taotaro-recipients-card .data-table td:last-child,.taotaro-recipients-card .data-table th:last-child{white-space:nowrap;text-align:center}
@media(max-width:680px){.taotaro-recipient-fields,.taotaro-recipient-id-grid{grid-template-columns:1fr}.taotaro-recipient-field:nth-child(8){grid-column:auto}.taotaro-recipient-id-zone{min-height:145px}}


/* 申报订单横向滚动条固定在视口底部，列表进入视野时可随时左右滚动。 */
.declaration-orders-sticky-scrollbar{position:fixed;z-index:120;bottom:8px;height:26px;box-sizing:border-box;padding:6px 8px;background:#fff;border:1px solid #b8cbd2;border-radius:10px;box-shadow:0 3px 14px rgba(16,44,61,.24);touch-action:pan-x;user-select:none}
.declaration-orders-sticky-scrollbar[hidden]{display:none}
.declaration-orders-scroll-track{position:relative;width:100%;height:12px;border-radius:8px;background:#e8eff1;cursor:pointer;touch-action:none}
.declaration-orders-scroll-thumb{position:absolute;top:0;left:0;height:12px;min-width:44px;border-radius:8px;background:#668b98;box-shadow:inset 0 0 0 1px #fff8;cursor:grab;touch-action:none}
.declaration-orders-scroll-thumb:hover{background:#426d7b}
.declaration-orders-scroll-thumb:active{cursor:grabbing;background:#315b68}
.scrim:has(.recipient-picker-card) .modal{width:min(560px,calc(100vw - 32px));max-height:min(84vh,780px)}
.scrim:has(.recipient-picker-card) .modalheader{padding:14px 18px}
.scrim:has(.recipient-picker-card) .modalbody{padding:12px 16px}
.recipient-picker-card{padding:10px 13px!important;margin:0 0 8px!important;border-radius:10px}
.recipient-picker-card .detailgrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:3px 10px}
.recipient-picker-card .detailitem{padding:5px 0}
.recipient-picker-card .detailitem .k{font-size:10px}
.recipient-picker-card .detailitem .v{font-size:12px;line-height:1.25;margin-top:2px}
.recipient-picker-card .detailitem:nth-child(5),.recipient-picker-card .detailitem:nth-child(6){grid-column:1/-1}
.recipient-picker-card .actions{gap:6px;margin-top:6px!important}
.recipient-picker-card .actions .btn{min-height:29px;padding:5px 9px;font-size:11px}
@media(max-width:560px){.recipient-picker-card .detailgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.recipient-picker-card .detailitem:nth-child(3){grid-column:1/-1}}

/* Readability baseline: operational screens have enough horizontal room, so
   body copy, table values and controls should not use the old compact sizes. */
@media(min-width:761px){
 body{font-size:17px}
 .small{font-size:15px}.tiny{font-size:14px}
 .section-note,.inline-note,.toolbar,.table-footer,.state,.pill{font-size:16px}
 .btn{font-size:16px;min-height:42px}.btn.small{font-size:14px;min-height:34px}
 .form-control,.searchfield input{font-size:16px;min-height:40px}
 .data-table,.data-table th,.data-table td{font-size:16px}
 .form-field label{font-size:16px}.form-field input,.form-field textarea,.form-field select{font-size:17px}
 .modalheader h2{font-size:20px}.modalheader p,.detailitem .k,.fieldhint,.checkrow,.event,.toast{font-size:16px}.detailitem .v{font-size:17px}
}

/* Taotaro package detail: one bounded layout owned by this component.
   Do not attach generic :has(.taotaro-item-edit) rules here: this editor is
   also used by other dialogs. */
.modal.taotaro-detail-modal{width:min(1860px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
.modal.taotaro-detail-modal .modalbody{padding:16px 22px;overflow-x:hidden}
.modal.taotaro-detail-modal .taotaro-bulk-toolbar{margin:10px 0;gap:8px;align-items:center}
.modal.taotaro-detail-modal .taotaro-bulk-toolbar>[data-action^="taotaro-choose-box:"],
.modal.taotaro-detail-modal .taotaro-bulk-toolbar>[data-action^="taotaro-bulk-suggest:"],
.modal.taotaro-detail-modal .taotaro-bulk-toolbar>[data-action^="taotaro-box-workbench-open:"],
.modal.taotaro-detail-modal .taotaro-bulk-toolbar>[data-action^="taotaro-items-save:"]{box-sizing:border-box!important;display:inline-flex!important;flex:0 0 148px!important;width:148px!important;min-width:148px!important;max-width:148px!important;height:38px!important;min-height:38px!important;max-height:38px!important;padding:0 8px!important;align-items:center!important;justify-content:center!important;font-size:14px!important;line-height:1!important;white-space:nowrap!important}
.modal.taotaro-detail-modal .taotaro-selection-summary{position:fixed;z-index:160;width:max-content;max-width:calc(100vw - 24px);margin:0;padding:11px 16px;border:3px solid #f5a623;border-radius:12px;background:#172b4d;color:#fff;box-shadow:0 8px 22px rgba(23,43,77,.34);font-size:15px;font-weight:800;letter-spacing:.2px;cursor:grab;user-select:none;touch-action:none}
.modal.taotaro-detail-modal .taotaro-selection-summary.is-dragging{cursor:grabbing;box-shadow:0 12px 30px rgba(23,43,77,.48)}
.modal.taotaro-detail-modal .taotaro-selection-summary b{color:#ffd166;font-size:18px}
.modal.taotaro-detail-modal .taotaro-selection-summary .selection-summary-divider{color:#b9c8de;margin:0 8px}
.modal.taotaro-detail-modal .table-scroll:has(>table.taotaro-unboxed-table){width:100%;max-width:100%;overflow:visible}
.modal.taotaro-detail-modal table.taotaro-unboxed-table{width:100%;min-width:0;max-width:100%;table-layout:fixed}
.modal.taotaro-detail-modal table.taotaro-unboxed-table th,.modal.taotaro-detail-modal table.taotaro-unboxed-table td{min-width:0;padding:5px 3px;white-space:normal;overflow-wrap:anywhere;word-break:break-word;vertical-align:middle}
.modal.taotaro-detail-modal table.taotaro-unboxed-table .taotaro-item-edit{box-sizing:border-box;display:block;width:100%!important;min-width:0!important;max-width:100%!important}
.modal.taotaro-detail-modal table.taotaro-unboxed-table img{display:block;width:38px;height:38px;margin:auto;object-fit:cover}
.modal.taotaro-detail-modal .taotaro-item-actions{display:inline-flex;align-items:center;justify-content:center;gap:4px;white-space:nowrap}
.modal.taotaro-detail-modal .taotaro-item-actions .btn{min-width:30px!important}
.modal.taotaro-detail-modal .taotaro-id-card-panel{width:100%;margin-top:12px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#f7fbfc}
.modal.taotaro-detail-modal .taotaro-id-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,160px));gap:12px;margin-top:8px}
.modal.taotaro-detail-modal .taotaro-id-card-grid a{display:grid;gap:5px;color:inherit;text-decoration:none}
.modal.taotaro-detail-modal .taotaro-id-card-grid img{width:100%;height:100px;object-fit:contain;border:1px solid var(--line);border-radius:8px;background:#fff}
.modal.taotaro-detail-modal .taotaro-id-card-grid span{font-size:12px;color:var(--muted);text-align:center}
@media(max-width:640px){.modal.taotaro-detail-modal .taotaro-id-card-grid{grid-template-columns:1fr}}
/* 包裹处理从首帧即为宽弹窗；明细的内容只能在卡片内裁切/换行，不能越过弹窗边界。 */
.modal.taotaro-detail-modal{box-sizing:border-box;max-height:calc(100vh - 32px);overflow:hidden;display:flex;flex-direction:column}
.modal.taotaro-detail-modal .modalbody{box-sizing:border-box;max-width:100%;min-height:0;flex:1 1 auto;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
.modal.taotaro-detail-modal .taotaro-bulk-toolbar ~ .table-scroll{box-sizing:border-box;display:block!important;height:auto!important;min-height:1px!important;overflow:hidden!important;visibility:visible!important;content-visibility:visible!important}
.modal.taotaro-detail-modal .taotaro-bulk-toolbar ~ .table-scroll table.taotaro-unboxed-table{box-sizing:border-box;width:100%!important;min-width:0!important;max-width:100%!important}
.modal.taotaro-detail-modal .taotaro-bulk-toolbar ~ .table-scroll table.taotaro-unboxed-table{display:table!important;height:auto!important;visibility:visible!important;content-visibility:visible!important}
.modal.taotaro-detail-modal .taotaro-bulk-toolbar ~ .table-scroll table.taotaro-unboxed-table th,.modal.taotaro-detail-modal .taotaro-bulk-toolbar ~ .table-scroll table.taotaro-unboxed-table td{box-sizing:border-box;overflow:hidden!important;text-overflow:ellipsis}
.modal.taotaro-detail-modal .taotaro-bulk-toolbar ~ .table-scroll table.taotaro-unboxed-table .taotaro-item-edit{min-width:0!important;max-width:100%!important}
/* 淘太郎商品详情使用普通网格行，避免旧 table 容器在 Chrome 中偶发零高度。 */
.modal.taotaro-detail-modal .taotaro-product-grid{display:block;width:100%;margin:0;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:#fff}
.modal.taotaro-detail-modal .taotaro-product-grid-header,.modal.taotaro-detail-modal .taotaro-product-grid-row{display:grid;grid-template-columns:56px 62px 125px minmax(145px,1.1fr) minmax(145px,1.1fr) minmax(96px,.7fr) minmax(96px,.7fr) minmax(220px,1.45fr) 48px 76px minmax(190px,1.1fr);gap:8px;align-items:center;padding:8px 10px}
.modal.taotaro-detail-modal .taotaro-product-grid-header{background:#f7fafb;color:#708792;font-size:12px;font-weight:700}
.modal.taotaro-detail-modal .taotaro-product-select-all-cell{display:flex;align-items:center;justify-content:flex-start;padding-left:13px;box-sizing:border-box}
.modal.taotaro-detail-modal .taotaro-product-select-all-cell input{width:16px;height:16px;margin:0;accent-color:var(--teal);cursor:pointer}
.modal.taotaro-detail-modal .taotaro-product-grid-row{border-top:1px solid #edf0f1;color:#2e4859;font-size:12px;min-height:58px}
.modal.taotaro-detail-modal .taotaro-product-grid-row:hover{background:#fbfdfd}
.modal.taotaro-detail-modal .taotaro-product-select{display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer}.modal.taotaro-detail-modal .taotaro-product-select input{width:16px;height:16px;margin:0}
.modal.taotaro-detail-modal .taotaro-product-image img{display:block;width:42px;height:42px;object-fit:cover;border-radius:4px}
.modal.taotaro-detail-modal .taotaro-product-grid .taotaro-item-edit{box-sizing:border-box;width:100%;min-width:0;padding:6px 7px;border:1px solid #d9e4e8;border-radius:6px;background:#fff}
.modal.taotaro-detail-modal .taotaro-product-original{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.modal.taotaro-detail-modal .taotaro-product-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.modal.taotaro-detail-modal .taotaro-product-actions>span:first-child{font-weight:700;color:#1677e8}
/* Box 已合箱商品明细：首三列压缩后让表格使用弹窗宽度，不建立内部横向滚动区。 */
.modal.taotaro-detail-modal .taotaro-box-workbench .taotaro-box-products .table-scroll{width:100%!important;max-width:100%!important;overflow-x:auto!important;overscroll-behavior-x:contain}
.modal.taotaro-detail-modal .taotaro-box-workbench .taotaro-box-products table.taotaro-box-product-table{display:table!important;width:100%!important;min-width:1145px!important;max-width:none!important;table-layout:fixed!important}
.modal.taotaro-detail-modal .taotaro-box-workbench .taotaro-box-products table.taotaro-box-product-table th,
.modal.taotaro-detail-modal .taotaro-box-workbench .taotaro-box-products table.taotaro-box-product-table td{box-sizing:border-box!important;min-width:0!important;padding:4px!important;white-space:normal!important;overflow:hidden!important;vertical-align:middle!important}
.modal.taotaro-detail-modal .taotaro-box-workbench .taotaro-box-products table.taotaro-box-product-table th:nth-child(1),.modal.taotaro-detail-modal .taotaro-box-workbench .taotaro-box-products table.taotaro-box-product-table td:nth-child(1){width:28px!important;min-width:28px!important;max-width:28px!important;text-align:center!important}
.modal.taotaro-detail-modal .taotaro-box-workbench .taotaro-box-products table.taotaro-box-product-table th:nth-child(2),.modal.taotaro-detail-modal .taotaro-box-workbench .taotaro-box-products table.taotaro-box-product-table td:nth-child(2){width:36px!important;min-width:36px!important;max-width:36px!important;padding-left:0!important;padding-right:0!important;text-align:center!important}
.modal.taotaro-detail-modal .taotaro-box-workbench .taotaro-box-products table.taotaro-box-product-table th:nth-child(2) input[type="checkbox"],.modal.taotaro-detail-modal .taotaro-box-workbench .taotaro-box-products table.taotaro-box-product-table td:nth-child(2) input[type="checkbox"]{display:block!important;box-sizing:border-box!important;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px!important;max-height:16px!important;margin:0 auto!important;padding:0!important;transform:none!important;flex:none!important}
.modal.taotaro-detail-modal .taotaro-box-workbench .taotaro-box-products table.taotaro-box-product-table th:nth-child(3),.modal.taotaro-detail-modal .taotaro-box-workbench .taotaro-box-products table.taotaro-box-product-table td:nth-child(3){width:40px!important;min-width:40px!important;max-width:40px!important;padding-left:1px!important;padding-right:1px!important;text-align:center!important}
.modal.taotaro-detail-modal .taotaro-box-workbench .taotaro-box-products table.taotaro-box-product-table th:nth-child(9),.modal.taotaro-detail-modal .taotaro-box-workbench .taotaro-box-products table.taotaro-box-product-table td:nth-child(9){text-align:left!important}
.modal.taotaro-detail-modal .taotaro-box-workbench .taotaro-box-products table.taotaro-box-product-table th:nth-child(13),.modal.taotaro-detail-modal .taotaro-box-workbench .taotaro-box-products table.taotaro-box-product-table td:nth-child(13){text-align:center!important}
.modal.taotaro-detail-modal .taotaro-box-workbench .taotaro-box-products table.taotaro-box-product-table .taotaro-item-edit{display:block!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important}
.modal.taotaro-detail-modal .taotaro-box-workbench .taotaro-box-products table.taotaro-box-product-table .taotaro-box-original-name{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.modal.taotaro-detail-modal .taotaro-box-workbench .taotaro-box-products table.taotaro-box-product-table th:nth-child(9),.modal.taotaro-detail-modal .taotaro-box-workbench .taotaro-box-products table.taotaro-box-product-table td:nth-child(9){width:260px!important;min-width:230px!important;max-width:260px!important}
.modal.taotaro-detail-modal .taotaro-box-workbench .taotaro-box-products table.taotaro-box-product-table th:nth-child(13),.modal.taotaro-detail-modal .taotaro-box-workbench .taotaro-box-products table.taotaro-box-product-table td:nth-child(13){width:160px!important;min-width:150px!important;max-width:160px!important;padding-left:3px!important;padding-right:3px!important}
.modal.taotaro-detail-modal .taotaro-box-workbench .taotaro-box-products table.taotaro-box-product-table td:last-child .taotaro-item-actions{display:flex!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;align-items:center!important;justify-content:center!important;gap:4px!important;flex-wrap:nowrap!important;white-space:nowrap!important;overflow:visible!important}
.modal.taotaro-detail-modal .taotaro-box-workbench .taotaro-box-products table.taotaro-box-product-table td:last-child .taotaro-item-actions>.btn{box-sizing:border-box!important;flex:0 0 auto!important;min-width:30px!important;max-width:100%!important;padding-left:7px!important;padding-right:7px!important}
@media(max-width:1400px){.modal.taotaro-detail-modal .taotaro-product-grid{overflow-x:auto}.modal.taotaro-detail-modal .taotaro-product-grid-header,.modal.taotaro-detail-modal .taotaro-product-grid-row{min-width:1360px}}

/* Product catalogue import: large click-or-drop target for template files. */
.product-import-dropzone{position:relative;display:flex;align-items:center;justify-content:center;min-height:190px;width:100%;box-sizing:border-box;border:2px dashed #cfe2ff;border-radius:12px;background:#f7f9fc;color:#42636b;font-size:16px;font-weight:700;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}.product-import-dropzone:hover,.product-import-dropzone.is-dragover{border-color:#1677e8;background:#eaf3ff;box-shadow:inset 0 0 0 1px #1677e8}.product-import-dropzone:focus-within{outline:3px solid #cfe2ff;outline-offset:2px}.product-import-dropzone input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}

/* Internal admin tabs: multiple modules stay in one browser tab. */
.admin-tabs{height:46px;display:flex;align-items:stretch;gap:12px;padding:6px 24px 0;background:#f7fafc;border-bottom:1px solid var(--line);overflow:hidden}.admin-tabs-scroll{display:flex;align-items:stretch;gap:5px;min-width:0;overflow-x:auto;scrollbar-width:none}.admin-tabs-scroll::-webkit-scrollbar{display:none}.admin-tab{display:inline-flex;align-items:center;gap:14px;max-width:220px;border:1px solid #e2e9ee;border-bottom:0;border-radius:8px 8px 0 0;background:#edf2f7;color:#536b78;padding:0 13px;font-size:12px;white-space:nowrap}.admin-tab:hover{background:#e3edf4;color:var(--ink)}.admin-tab.active{background:#1677e8;border-color:#1677e8;color:#fff;font-weight:750;box-shadow:0 -2px 0 #9dccff inset}.admin-tab-close{display:inline-grid;place-items:center;width:17px;height:17px;border-radius:50%;font-size:16px;line-height:1;font-weight:400;opacity:.75}.admin-tab-close:hover{background:#ffffff33;opacity:1}.admin-tabs-count{margin-left:auto;align-self:center;flex:none;color:var(--muted);font-size:11px;padding:0 2px 5px 0}.admin-tabs+.page{padding-top:23px}
@media(max-width:720px){.admin-tabs{padding-left:12px;padding-right:12px;gap:7px}.admin-tabs-count{display:none}.admin-tab{padding:0 10px;gap:8px}.admin-tabs+.page{padding-top:17px}}

/* Shared visual language for the refreshed admin screens. */
:root{--ui-primary:#1677e8;--ui-primary-dark:#0e5fc4;--ui-primary-soft:#eaf3ff;--ui-active:#1677e8}
.btn.primary{background:var(--ui-primary);border-color:var(--ui-primary)}
.btn.primary:hover{background:var(--ui-primary-dark);border-color:var(--ui-primary-dark)}
.btn.soft{background:var(--ui-primary-soft);border-color:#cfe2ff;color:#125fb9}
.navitem.active{background:var(--ui-active);box-shadow:inset 3px 0 #9dccff}
.admin-tab.active{background:var(--ui-primary);border-color:var(--ui-primary);box-shadow:0 -2px 0 #9dccff inset}
.form-control:focus{outline-color:#c9e0ff;border-color:#5a9ced}
.form-field input:focus,.form-field select:focus,.form-field textarea:focus{border-color:#5a9ced;box-shadow:0 0 0 3px #e0edff}

/* 2026 admin redesign: shared shell and page components, scoped away from customer portal and dialogs. */
.layout{background:#f7f9fc;color:#1e3049}
.layout>.sidebar{width:224px;min-width:224px;background:linear-gradient(180deg,#102746 0%,#192d49 100%);color:#cbd8e8}
.layout .brandbox{padding:17px 18px 15px;border-color:#ffffff1a}
.layout .brand{font-size:18px;gap:10px}
.layout .brandmark{background:#1677e8;border-radius:7px;box-shadow:0 3px 12px #051b3480}
.layout .brandnote{color:#9fb4ce}
.layout .menu-search{padding:12px 12px 9px}
.layout .search-dark{border-color:#6e89a94a;background:#ffffff0c}
.layout .nav-scroll{padding:4px 8px 16px}
.layout .grouphead{color:#c8d7e8;font-size:13px;padding:11px 12px}
.layout .navitems{border-color:#ffffff24;margin-left:20px;padding-left:10px}
.layout .navitem{color:#b8cbdf;font-size:13px;padding:10px 12px}
.layout .navitem.active{background:#1677e8;color:#fff;box-shadow:inset 3px 0 #a9d1ff}
.layout .sidebarfoot{color:#9cb2cb;border-color:#ffffff1b}
.layout .topbar{height:57px;padding:0 21px;box-shadow:0 1px 2px #172e4b0b}
.layout .crumb{font-size:13px;color:#75879c}
.layout .crumb strong{color:#263b53}
.layout .righttools{gap:9px}
.layout .avatar{background:#e7f0ff;color:#1465c6}
.layout .page{max-width:none;width:100%;padding:17px 18px 35px}
.layout .titlebar{margin-bottom:15px;align-items:center}
.layout .titlebar h1{font-size:20px;color:#21374f}
.layout .titlebar p{font-size:12px}
.layout .card{border-color:#e4ebf3;border-radius:8px;box-shadow:0 1px 5px #20385b0a}
.layout .cardpad{padding:17px}
.layout .btn{border-radius:5px;border-color:#dbe4ef;color:#344a63}
.layout .btn.primary{background:#1677e8;border-color:#1677e8;color:#fff}
.layout .btn.primary:hover{background:#0d62c7;border-color:#0d62c7}
.layout .btn.soft{background:#eaf3ff;border-color:#cfe1ff;color:#145fb8}
.layout .titlebar [data-action="new-order"].btn.primary{background:#1677e8;border-color:#1677e8;color:#fff}
.layout .titlebar [data-action="new-order"].btn.primary:hover{background:#0e5fc4;border-color:#0e5fc4}
.layout .toolbar{gap:9px;padding:13px 14px;background:#fff}
.layout .toolbar form,.layout form.toolbar{border-radius:7px}
.layout .searchfield,.layout .form-control{border-color:#dbe4ef;border-radius:5px;background:#fff}
.layout .data-table{font-size:12px}
.layout .data-table th{background:#f3f6fb;color:#40526a;font-size:12px;padding:11px 12px;border-color:#e1e8f1}
.layout .data-table td{padding:10px 12px;border-color:#e9eef4;color:#35465d}
.layout .data-table tbody tr:hover td{background:#f5f9ff}
.layout .data-table .emphasis{color:#1269d3}
.layout .table-footer{background:#fff;border-top:1px solid #e9eef4}
.layout .pill{background:#f2f6fb;border-color:#dfe8f2;color:#576d87}
.layout .section-note{background:#edf5ff;color:#345b86;border-radius:6px}
.layout .admin-tabs{height:51px;background:#fff;padding:7px 17px 0;border-color:#e4ebf3}
.layout .admin-tab{border-color:#e0e7f0;background:#f1f4f8;color:#52637a;border-radius:6px 6px 0 0;min-width:108px;justify-content:space-between}
.layout .admin-tab.active{background:#1677e8;border-color:#1677e8;color:#fff;box-shadow:none}
.layout .admin-tabs-count{color:#60748c}
.layout .admin-tab-close{cursor:pointer}
@media(max-width:720px){.layout>.sidebar{width:224px;min-width:224px}.layout .topbar{padding:0 12px}.layout .page{padding:13px 10px 25px}.layout .admin-tabs{padding:7px 10px 0}.layout .titlebar{align-items:flex-start;flex-wrap:wrap}.layout .data-table{font-size:12px}}
@media print{.layout .admin-tabs{display:none}}

/* Complete the blue admin language on module-specific surfaces. Keep status colours meaningful. */
.layout{--teal:#1677e8;--teal2:#348ef3;--blue:#1677e8;--soft:#eff5ff;--line:#e4ebf3;--ink:#20364f;--ink2:#40556f;--muted:#75879c}
.layout .btn:not(.primary):not(.danger):hover{background:#f2f7ff;border-color:#b8d5fa;color:#115fbd}
.layout .stat .iconbg,.layout .wfnumber{background:#e7f1ff;color:#1677e8}
.layout .dashboard-stat:hover{border-color:#8dbcf4;box-shadow:0 8px 22px #154c8b1a}
.layout .dashboard-stat:focus-visible{outline-color:#a8d0ff}
.layout .dashboard-hint{color:#176ed2}
.layout .frame-action,.layout .frame-module-list button{background:#f7f9fc;border-color:#e5ebf3;color:#435a75}
.layout .frame-module-list button:hover{background:#eaf3ff;color:#135db9}
.layout .frame-checks>div{border-color:#e8eef6}
.layout .declaration-channel-card{border-color:#e2eaf4;background:linear-gradient(150deg,#fff,#f5f9ff);box-shadow:0 3px 12px #20385b0d}
.layout .declaration-channel-card:hover,.layout .declaration-channel-card:focus-visible{border-color:#6eaff5;box-shadow:0 8px 20px #1769c124}
.jp-post-preview-note{border-left:4px solid var(--ui-primary)}.jp-post-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;list-style:none;margin:16px 0;padding:0}.jp-post-steps li{display:flex;align-items:center;gap:9px;padding:12px;border-bottom:2px solid var(--line);color:var(--muted);font-size:13px}.jp-post-steps li span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#edf1f6;font-weight:800}.jp-post-steps li.active{border-color:var(--ui-primary);color:var(--ui-primary);font-weight:750}.jp-post-steps li.active span,.jp-post-steps li.done span{background:var(--ui-primary);color:#fff}.jp-post-order{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.jp-post-order h2{margin:8px 0;color:var(--ink)}.jp-post-order p{margin:0;color:var(--muted)}.jp-post-panel{margin-top:14px}.jp-post-services{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.jp-post-service{display:flex;align-items:flex-start;gap:10px;padding:15px;border:1px solid var(--line);border-radius:10px;cursor:pointer}.jp-post-service.selected{border-color:var(--ui-primary);background:var(--ui-primary-soft)}.jp-post-service input{margin-top:3px;accent-color:var(--ui-primary)}.jp-post-service span{display:grid;gap:6px}.jp-post-service small,.jp-post-check-grid small{color:var(--muted)}.jp-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.jp-post-grid label{display:grid;gap:6px;color:var(--ink2);font-size:12px;font-weight:650}.jp-post-grid label.wide{grid-column:1/-1}.jp-post-grid input{width:100%;box-sizing:border-box;min-height:38px;padding:8px 10px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);font:inherit}.jp-post-items input,.jp-post-items select{min-width:92px;max-width:150px;min-height:34px;padding:6px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink)}.jp-post-actions{justify-content:flex-end;margin:16px 0}.jp-post-check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:9px;overflow:hidden}.jp-post-check-grid div{display:grid;gap:8px;padding:16px;background:#fff}.jp-post-confirm{text-align:center;padding:42px}.jp-post-confirm-icon{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 12px;border-radius:50%;background:#eaf7ef;color:#198754;font-size:30px;font-weight:800}.jp-post-confirm h2{color:var(--ink)}.jp-post-confirm>p{color:var(--muted)}.jp-post-confirm .actions{justify-content:center;margin-top:20px}
.jp-post-entry-layout{max-width:none}.jp-post-entry-layout>.section-note:not(.jp-post-preview-note):first-of-type{display:none}.jp-post-entry-layout .legacy-jp-post-service{margin-top:14px}.jp-post-entry-layout .jp-post-sender-panel{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.jp-post-entry-layout .jp-post-panel .cardtitle h2{font-size:17px;color:var(--ink)}.jp-post-entry-layout .jp-post-grid select{width:100%;box-sizing:border-box;min-height:38px;padding:8px 10px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink)}.jp-post-entry-layout .jp-post-product-note{margin:-2px 0 18px}.jp-post-entry-layout .declaration-submit-actions{position:sticky;bottom:16px;z-index:5;padding:12px 14px;border:1px solid #dce8f4;border-radius:12px;background:rgba(255,255,255,.96);box-shadow:0 10px 28px rgba(28,65,105,.14)}
@media(max-width:760px){.jp-post-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.jp-post-services{grid-template-columns:repeat(2,minmax(0,1fr))}.jp-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.jp-post-check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.jp-post-order{align-items:flex-start;flex-direction:column}}
@media(max-width:480px){.jp-post-services,.jp-post-grid,.jp-post-check-grid{grid-template-columns:1fr}.jp-post-grid label.wide{grid-column:auto}.jp-post-steps li{padding:9px;font-size:12px}}
.layout .declaration-channel-icon{background:#e7f1ff;color:#1677e8}
.layout .declaration-channel-next,.layout .declaration-flow-hint i{color:#1677e8}
.layout .declaration-flow-hint span,.layout .declaration-stepbar span{background:#edf4ff}
.layout .declaration-stepbar span.active{background:#1677e8;color:#fff}
.layout .smart-recognition{background:#f0f6ff;border:1px solid #dceaff}
.layout .upload-placeholder{border-color:#b7d4f5;color:#55738f;background:#fafcff}
.layout .declaration-fields .upload-placeholder:hover{background:#eef6ff;border-color:#4c9df1;box-shadow:0 8px 18px #1677e826}
.layout .upload-placeholder.file-drag-active,.layout .intake-photo-area.file-drag-active,.layout .id-doc-preview.file-drag-active{background:#e6f2ff!important;border-color:#1677e8!important;box-shadow:0 0 0 4px #1677e82b,0 12px 28px #1677e829!important}
.layout .upload-placeholder.file-drag-active:after,.layout .intake-photo-area.file-drag-active:after,.layout .id-doc-preview.file-drag-active:after{background:#eff6ffee;color:#1266c5}
.layout .order-main-badge{background:#e8f2ff;color:#176ac9}
.layout .order-children-row td{background:#f5f9ff!important}
.layout .order-children{border-left-color:#1677e8}
.layout .order-child-table,.layout .order-child-table th{border-color:#e1eaf5}
.layout .order-child-table th{background:#edf4fd;color:#405a78}
.layout .permission-tree{border-color:#dce6f2}
.layout .permission-tree[open] summary{background:#f5f9ff;border-color:#e4ecf6}
.layout .permission-tree-partial{border-color:#8ebcf1}
.layout .permission-tree-partial .permission-tree-count{color:#176ac9}
.layout .batch-sticky-titlebar,.layout .declaration-entry-sticky-titlebar{border-color:#dce8f8;background:#f8fbfffa;box-shadow:0 8px 20px #193b6518}
.layout .batch-sticky-actions [data-batch-bulk-actions]{border-color:#dce8f8}
.layout .batch-sticky-actions [data-action="batch-bulk-get"]{background:#1677e8;border-color:#1677e8;color:#fff;box-shadow:0 3px 8px #1677e826}
.layout .batch-sticky-actions [data-order-template-download]{background:#eff6ff}
.layout .batch-row-clickable:hover td{background:#edf5ff!important;box-shadow:inset 0 1px 0 #c7defb,inset 0 -1px 0 #c7defb}
.layout .batch-row-clickable:active td{background:#e2efff!important}
.product-import-dropzone{border-color:#9bc3f1;background:#f6faff;color:#426388}
.product-import-dropzone:hover,.product-import-dropzone.is-dragover{border-color:#1677e8;background:#eaf4ff;box-shadow:inset 0 0 0 1px #1677e8}
.product-import-dropzone:focus-within{outline-color:#b8d7ff}
.layout .state.planned{background:#edf3fa;color:#637994}
.layout .empty{color:#8293a8}
.layout .empty strong{color:#435a75}

/* Declaration management: compact search, one action strip, and readable order rows. */
.layout .declaration-management-page{padding-top:13px}
.layout .declaration-management-page>.titlebar{display:flex;margin:0 0 10px}
.layout .declaration-management-page>.titlebar h1{font-size:17px;margin:0;color:#243b57}
.layout .declaration-management-page>.titlebar p{display:none}
.layout .declaration-management-page>.card.cardpad{padding:15px 16px;margin-bottom:13px}
.layout .declaration-management-page .declaration-management-filters{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px 12px!important;align-items:end!important}
.layout .declaration-management-page .declaration-filter{gap:5px}
.layout .declaration-management-page .declaration-filter span{font-size:11px;color:#63758c}
.layout .declaration-management-page .declaration-filter input,.layout .declaration-management-page .declaration-filter select{min-height:34px;border:1px solid #dbe5f1;border-radius:5px;padding:6px 9px;color:#304760;font-size:12px}
.layout .declaration-management-page .declaration-filter input:focus,.layout .declaration-management-page .declaration-filter select:focus{outline:2px solid #dceaff;border-color:#5a9ceb}
.layout .declaration-management-page .declaration-filter.wide{grid-column:span 2!important}
.layout .declaration-management-page .declaration-filter-actions{grid-column:auto;align-self:end}
.layout .declaration-management-page .declaration-filter-actions .btn{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;height:36px;min-height:36px;padding:0 10px;line-height:1.2;white-space:nowrap}
.layout .declaration-management-page .declaration-orders-table{border-radius:7px}
.layout .declaration-management-page .declaration-orders-table>.toolbar{gap:7px;padding:10px 12px;flex-wrap:nowrap;overflow-x:auto;border-bottom:1px solid #e5ebf3}
.layout .declaration-management-page .declaration-orders-table>.toolbar .btn{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:none;height:36px;min-height:36px;padding:0 10px;line-height:1.2;white-space:nowrap}
.layout .declaration-management-page .declaration-orders-table>.toolbar [data-action="nav-new-declaration"]{background:#1677e8;border-color:#1677e8;color:#fff}
.layout .declaration-management-page .declaration-orders-table>.toolbar [data-action="nav-new-declaration"]:hover{background:#0e5fc4;border-color:#0e5fc4}
.layout .declaration-management-page .declaration-orders-table .data-table th{background:#f3f6fb;padding:8px 6px;font-size:12px;color:#435770;white-space:nowrap}
.layout .declaration-management-page .declaration-orders-table .data-table td{padding:9px 11px;font-size:14px;line-height:1.35;vertical-align:middle}
.layout .declaration-management-page .declaration-orders-table .data-table td small{font-size:12px;line-height:1.3;margin-top:3px}
.layout .declaration-management-page .declaration-orders-table .data-table tr:nth-child(even) td{background:#f8faff}
.layout .declaration-management-page .declaration-orders-table tr[data-declaration-order-row]:hover td{background:#edf5ff}
.layout .declaration-management-page .declaration-orders-table .data-table tr.declaration-row-selected td{background:#dbeafe;box-shadow:none}
.layout .declaration-management-page .declaration-row-actions{min-width:168px;max-width:190px;white-space:nowrap}
.layout .declaration-management-page .declaration-orders-table .data-table td.declaration-row-actions{display:table-cell;padding:9px 11px;vertical-align:middle}
.layout .declaration-management-page .declaration-row-action-pair{display:flex;align-items:center;justify-content:center;gap:6px}
.layout .declaration-management-page .declaration-row-actions .btn{display:inline-flex;flex:1;min-width:0;min-height:32px;margin:0;padding:5px 8px;font-size:13px;white-space:nowrap}
.declaration-detail-extra-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:10px 12px;margin:0 0 14px;border:1px solid #dce8f8;border-radius:7px;background:#f6faff}
.declaration-detail-extra-actions b{font-size:12px;color:#315676;margin-right:5px}
.layout .declaration-management-page .declaration-orders-table td:nth-child(2) b,.layout .declaration-management-page .declaration-orders-table td:nth-child(4) b{color:#1269d3}
.layout .declaration-management-page .declaration-select-all-header span{font-size:0}
.layout .declaration-management-page .declaration-orders-table th:first-child,.layout .declaration-management-page .declaration-orders-table td:first-child{text-align:center;width:40px}
.layout .declaration-management-page .declaration-orders-table table{min-width:1580px}
.layout .declaration-management-page .declaration-orders-table .declaration-state{font-size:12px}
.layout .declaration-management-page .declaration-metrics-details{position:relative;order:20}
.layout .declaration-management-page .declaration-metrics-details summary{list-style:none;cursor:pointer;border:1px solid #dbe4ef;background:#fff;border-radius:5px;padding:7px 10px;color:#3b5878;font-size:11px;font-weight:700}
.layout .declaration-management-page .declaration-metrics-details summary::-webkit-details-marker{display:none}
.layout .declaration-management-page .declaration-metrics-details[open] .declaration-metrics{position:absolute;right:0;top:37px;z-index:8;width:min(850px,calc(100vw - 260px));padding:12px;background:#fff;border:1px solid #dce7f5;border-radius:8px;box-shadow:0 12px 32px #173b6a24;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.layout .declaration-management-page .declaration-metrics-details .declaration-metric{margin:0;padding:10px;min-height:80px}
.layout .declaration-management-page .declaration-metrics-details .declaration-metric strong{font-size:20px;margin:3px 0}
@media(max-width:1100px){.layout .declaration-management-page .declaration-management-filters{grid-template-columns:repeat(3,minmax(0,1fr))!important}.layout .declaration-management-page .declaration-metrics-details[open] .declaration-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.layout .declaration-management-page .declaration-management-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}.layout .declaration-management-page .declaration-filter.wide{grid-column:span 2!important}.layout .declaration-management-page .declaration-metrics-details[open] .declaration-metrics{width:calc(100vw - 30px)}}

/* Channel history expands with the same blue table and selection language as the admin shell. */
.layout .batch-history-row td{background:#f7f9fc!important}
.layout .batch-history-panel{padding:14px 16px;border-top-color:#e4ebf3;background:#fff;color:#35465d}
.layout .batch-history-toolbar{background:transparent;border:0}
.layout .batch-history-toolbar>b{color:#40526a;font-size:13px}
.layout .batch-history-toolbar select,.layout .batch-history-search{border-color:#dbe4ef;border-radius:5px;color:#35465d;background:#fff}
.layout .batch-history-toolbar select:focus,.layout .batch-history-search:focus{outline:2px solid #dceaff;border-color:#5a9ceb}
.layout .batch-history-header{background:#f3f6fb;border-color:#e1e8f1;border-radius:6px;color:#40526a;font-size:12px}
.layout .batch-history-header .batch-history-select-all{display:block;width:16px;height:16px;min-width:16px;margin:0;accent-color:#1677e8;cursor:pointer}
.layout .batch-history-header .batch-history-select-all:focus-visible{outline:2px solid #a8d0ff;outline-offset:2px}
.layout .batch-history-item{border-color:#e4ebf3;border-radius:6px;color:#35465d}
.layout .batch-history-item:hover{background:#f5f9ff;border-color:#b8d5fa;box-shadow:0 3px 10px #154c8b14}
.layout .batch-history-item:focus-visible{outline-color:#a8d0ff}
.layout .batch-history-item.selected{background:#eaf3ff;border-color:#9fc6f5}
.layout .batch-history-check input[type="checkbox"]:checked{background:#1677e8!important;border-color:#1677e8!important}

/* Shared visual operation guides: readable steps on desktop and PDA. */
.process-guide{margin:18px 0;padding:20px;background:var(--surface,#fff);border:1px solid var(--line);border-top:4px solid var(--ui-primary);border-radius:10px;color:var(--ink)}
.process-guide-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.process-guide-heading h2{margin:0;font-size:20px;font-weight:750;color:var(--ink)}
.process-guide-heading>span{font-size:14px;color:var(--ink2)}
.process-steps{display:flex;gap:28px;margin:0;padding:0;list-style:none}
.process-step{position:relative;flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center;padding:16px 10px;background:var(--ui-primary-soft);border:1px solid var(--line);border-radius:8px;gap:8px}
.process-step:not(:last-child)::after{content:'→';position:absolute;right:-24px;top:45px;font-size:24px;font-weight:700;color:var(--ui-primary)}
.process-icon{display:grid;place-items:center;width:48px;height:48px;background:var(--ui-primary);color:#fff;border-radius:12px}
.process-number{position:absolute;top:10px;left:10px;font-size:13px;font-weight:700;color:var(--ui-primary-dark)}
.process-step strong{font-size:18px;line-height:1.4;color:var(--ink)}
.process-step small{font-size:14px;line-height:1.6;color:var(--ink2);overflow-wrap:anywhere}
@media(max-width:900px){.process-steps{flex-wrap:wrap;gap:12px}.process-step{flex:1 1 26%}.process-step::after{display:none}.process-guide-heading{align-items:flex-start;flex-direction:column}}
@media(max-width:480px){.process-guide{padding:14px}.process-step{flex:1 1 40%;padding:14px 8px}.process-step strong{font-size:16px}}

/* Each Box header, configuration and product rows form one visible parcel. */
.modal.taotaro-detail-modal .taotaro-box-workbench>.taotaro-box-plan-scroll>table{border-collapse:separate;border-spacing:0}
.modal.taotaro-detail-modal .taotaro-box-divider>td{padding:0!important;border-top:18px solid var(--surface,#fff)!important;border-left:4px solid var(--ui-primary,#1677e8)!important;border-right:2px solid #bfd6f7!important;background:var(--ui-primary-soft,#eaf3ff)!important}
.modal.taotaro-detail-modal .taotaro-box-heading{display:flex;align-items:center;gap:18px;padding:13px 14px;color:var(--ink,#20364f)}
.modal.taotaro-detail-modal .taotaro-box-heading>strong{font-size:18px;min-width:140px;color:var(--ui-primary-dark,#0e5fc4)}
.modal.taotaro-detail-modal .taotaro-box-heading>.pill{margin-left:auto}
.modal.taotaro-detail-modal .taotaro-box-plan>td{background:#f7faff!important;border-top:1px solid #bfd6f7!important;border-bottom:1px solid var(--line)!important;padding-top:14px!important;padding-bottom:14px!important}
.modal.taotaro-detail-modal .taotaro-box-plan>td:first-child{border-left:4px solid var(--ui-primary,#1677e8)!important}
.modal.taotaro-detail-modal .taotaro-box-plan>td:last-child{border-right:2px solid #bfd6f7!important}
.modal.taotaro-detail-modal .taotaro-box-parameters>td{padding:12px 14px!important;border-left:4px solid var(--ui-primary,#1677e8)!important;border-right:2px solid #bfd6f7!important;border-bottom:1px solid var(--line)!important;background:#f7faff!important}
.modal.taotaro-detail-modal .taotaro-box-parameter-grid{display:grid;grid-template-columns:repeat(4,minmax(145px,1fr));gap:10px 12px;align-items:end;white-space:normal}
.modal.taotaro-detail-modal .taotaro-box-parameter-grid label{display:flex;min-width:0;flex-direction:column;gap:5px;color:var(--muted,#64788d);font-size:12px;font-weight:700}
.modal.taotaro-detail-modal .taotaro-box-parameter-grid input{box-sizing:border-box;width:100%;min-width:0;height:36px;padding:7px 10px}
.modal.taotaro-detail-modal .taotaro-box-parameter-save{display:flex;align-items:flex-end;min-height:36px}
.modal.taotaro-detail-modal .taotaro-box-parameter-save .btn{width:100%;min-height:36px}
@media(max-width:1200px){.modal.taotaro-detail-modal .taotaro-box-parameter-grid{grid-template-columns:repeat(3,minmax(140px,1fr))}}
@media(max-width:760px){.modal.taotaro-detail-modal .taotaro-box-parameter-grid{grid-template-columns:repeat(2,minmax(120px,1fr))}}
.modal.taotaro-detail-modal .taotaro-box-products>td{border-left:4px solid var(--ui-primary,#1677e8)!important;border-right:2px solid #bfd6f7!important;border-bottom:2px solid #bfd6f7!important;padding:14px 12px 18px!important;background:var(--surface,#fff)!important}
.modal.taotaro-detail-modal .taotaro-box-products>td>.section-note{background:var(--ui-primary-soft,#eaf3ff);color:var(--ui-primary-dark,#0e5fc4);margin-bottom:12px}

/* Compact review immediately above the right-aligned submission buttons. */
.declaration-submit-actions.declaration-submit-with-review{display:grid;grid-template-columns:auto auto;justify-content:end;gap:8px}
.declaration-submit-actions>.id-ocr-review.id-ocr-review-bottom{grid-column:1/-1;justify-self:end;width:min(480px,calc(100vw - 48px));max-width:100%;margin:0 0 2px;padding:8px 10px;gap:5px;font-size:12px;line-height:1.45}
.declaration-submit-actions>.id-ocr-review.id-ocr-review-bottom::before{font-size:12px}
.declaration-submit-actions.declaration-submit-with-review>button{justify-self:end;width:max-content}

.declaration-fields .upload-placeholder.has-image{position:relative}.id-preview-rotate{position:absolute;right:7px;bottom:24px;z-index:1;background:#fff}

.declaration-management-page .declaration-management-remark-cell{min-width:190px;vertical-align:top}.declaration-management-page .declaration-management-remark-cell input{display:block;box-sizing:border-box;width:65%;min-width:0;height:36px;font-size:14px}.declaration-management-page .declaration-management-remark-cell [data-remarks-feedback]{display:block;white-space:normal}
.declaration-management-page .declaration-package-weight-cell{min-width:220px}.declaration-package-weight-heading{display:flex;align-items:center;gap:10px;white-space:nowrap}.declaration-billing-weight{display:inline-flex;align-items:center;padding:4px 9px;border:1px solid #9bc5ff;border-radius:999px;background:#eaf3ff;color:#0e5fc4;font-size:14px;font-weight:800;line-height:1.2}.declaration-package-weight-cell>small{margin-top:7px}

.report-line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid var(--line);font-size:12px}.report-line small{color:var(--muted)}.report-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:7px}.donut-wrap{display:grid;grid-template-columns:170px 1fr;align-items:center;gap:20px}.prepaid-donut{width:160px;height:160px;border-radius:50%;display:grid;place-items:center}.prepaid-donut>div{width:95px;height:95px;border-radius:50%;background:#fff;display:grid;place-content:center;text-align:center}.prepaid-donut b{font-size:25px}.prepaid-donut small{font-size:10px;color:var(--muted)}[data-prepaid-month]{width:145px;padding:7px;border:1px solid var(--line);border-radius:7px}@media(max-width:760px){.donut-wrap{grid-template-columns:1fr}.prepaid-donut{margin:auto}}

/* Desktop readability guard: keep the refreshed shell from restoring the old compact type scale. */
@media(min-width:761px){
 .layout .brandnote,.layout .search-dark input,.layout .grouphead,.layout .navitem,.layout .sidebarfoot,.layout .crumb,.layout .righttools,.layout .env{font-size:15px}
 .layout .admin-tab,.layout .titlebar p,.layout .btn,.layout .searchfield input,.layout .form-control{font-size:15px}
 .layout .data-table,.layout .data-table th,.layout .data-table td{font-size:15px}
}

/* 欧美澳 e-PAQ 制单工作区：按参考图使用四步导航、主表单、SOP侧栏与紧凑商品表。 */
.eurasia-editor,.eurasia-editor-form{display:block;width:100%;max-width:none;min-width:0;box-sizing:border-box}
.eurasia-editor{padding:8px 0 108px}
.eurasia-editor-head{display:grid;grid-template-columns:minmax(260px,1fr);gap:14px;margin-bottom:16px}
.eurasia-editor-title{display:flex;align-items:center;gap:12px;min-width:0}
.eurasia-editor-title h1{margin:0;font-size:23px;color:var(--ink)}
.eurasia-editor-title .muted{margin-top:4px}
.eurasia-editor-title .iconbox{width:50px;height:50px;flex:0 0 50px;color:var(--ui-primary);background:var(--ui-primary-soft);border-radius:12px}
.eurasia-stepbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;width:100%;margin:0 0 2px}
.eurasia-step{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:8px 12px;border:0;border-bottom:3px solid var(--line);background:transparent;color:var(--muted);font-size:14px;font-weight:700;text-align:center;white-space:nowrap}
.eurasia-step:before{content:attr(data-step);display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border:2px solid #aebbd0;border-radius:50%;color:#5b6c84;background:#fff;font-size:15px}
.eurasia-step.active{border-color:var(--ui-primary);color:var(--ui-primary)}
.eurasia-step.active:before{border-color:var(--ui-primary);background:var(--ui-primary);color:#fff}
.eurasia-editor-form{position:relative}
.eurasia-workflow{display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,350px);gap:16px;align-items:start;width:100%;min-width:0}
.eurasia-main{min-width:0;width:100%}
.eurasia-note{margin:0 0 14px;padding:10px 14px;line-height:1.55}
.eurasia-section{min-width:0;margin:0 0 10px;padding:14px 16px;border:1px solid var(--line);border-radius:11px;background:#fff;box-shadow:0 2px 8px #183b5d08}
.eurasia-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px;padding-bottom:8px;border-bottom:1px solid #e9eef5}
.eurasia-section-title h3{margin:0;color:#1c3048;font-size:16px}
.eurasia-future-note{color:var(--muted);font-size:12px}
.eurasia-destination-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 10px}
.eurasia-destination{min-width:105px;padding:7px 14px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#24364d;font-weight:650;cursor:pointer}
.eurasia-destination.selected{border-color:var(--ui-primary);background:var(--ui-primary-soft);color:var(--ui-primary);box-shadow:inset 0 0 0 1px var(--ui-primary)}
.eurasia-destination.reserved{color:#8b96a1;background:#f5f6f7;cursor:not-allowed}
.eurasia-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 14px}
.eurasia-grid .form-field{min-width:0;margin:0}
.eurasia-grid .form-field label,.eurasia-product-field span{display:block;margin:0 0 4px;color:#34475e;font-size:12px;font-weight:700}
.eurasia-grid input,.eurasia-grid select{height:36px;min-width:0;box-sizing:border-box}
.eurasia-channel-fields{grid-template-columns:minmax(0,1fr)}
.eurasia-address-recognition{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;margin-bottom:10px;padding:10px;border:1px solid #dce8f4;border-radius:8px;background:#f8fbff}
.eurasia-address-recognition>label{grid-column:1/-1;color:#415672;font-size:12px;font-weight:700}
.eurasia-autofill{width:100%;min-height:42px;height:42px;box-sizing:border-box;resize:vertical;border:1px solid #cbd5e1;border-radius:6px;padding:8px 10px;background:#fff;font:inherit}
.eurasia-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.eurasia-toolbar .small{font-size:11px}
.jp-post-panel .eurasia-toolbar{margin:14px 0 12px;padding:10px 12px;border:1px solid #dce8f4;border-radius:10px;background:#f8fbff;gap:10px;flex-wrap:nowrap}
.jp-post-panel .eurasia-toolbar label.grow{display:flex;align-items:center;gap:10px;flex:1;min-width:280px;margin:0}
.jp-post-panel .eurasia-toolbar label.grow .small{flex:0 0 auto;margin:0;color:#405a78;font-size:12px;font-weight:700;white-space:nowrap}
.jp-post-panel .eurasia-toolbar input[name="jp_preview_scan"]{flex:1;min-width:0;height:38px;box-sizing:border-box;padding:8px 11px;border:1px solid #cbdbea;border-radius:7px;background:#fff;color:var(--ink);font:inherit;outline:none}
.jp-post-panel .eurasia-toolbar input[name="jp_preview_scan"]:focus{border-color:#1677e8;box-shadow:0 0 0 3px #e7f1ff}
.jp-post-panel .eurasia-toolbar>[data-action="jp-preview-scan"]{height:38px;padding:0 15px;border-radius:7px;white-space:nowrap}
@media(max-width:720px){.jp-post-panel .eurasia-toolbar{flex-wrap:wrap}.jp-post-panel .eurasia-toolbar label.grow{min-width:100%}}
.eurasia-package-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.eurasia-rule-card{position:sticky;top:14px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:11px;background:#fff;box-shadow:0 2px 10px #183b5d0a}
.eurasia-rule-heading{display:flex;align-items:center;gap:9px;margin:-1px -1px 10px;padding:10px 12px;border-radius:8px;background:#e6f6eb;color:#163d28}
.eurasia-rule-heading>span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#19964c;color:white;font-weight:800}
.eurasia-rule-heading h3,.eurasia-summary-card h3{margin:0;font-size:15px}
.eurasia-rule-card ul{display:grid;gap:8px;padding:0;margin:0;list-style:none}
.eurasia-rule-card li{position:relative;padding-left:25px;color:#24364d;font-size:12px;line-height:1.5}
.eurasia-rule-card li:before{content:'✓';position:absolute;left:0;top:0;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#19964c;color:#fff;font-size:12px;font-weight:800}
.eurasia-api-state{margin-top:12px;padding:10px 11px;border:1px solid #f4d395;border-radius:8px;background:#fff8e9;color:#674c1c;font-size:12px;line-height:1.55}
.eurasia-summary-card{margin-top:10px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff}
.eurasia-summary-card h3{margin-bottom:7px}
.eurasia-summary{display:grid;gap:0}
.eurasia-summary>div{padding:6px 2px;border-bottom:1px solid #e8edf3;color:#26384e;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.eurasia-summary>div:last-child{border-bottom:0}
.eurasia-product-section{padding-bottom:12px}
.eurasia-product-table-wrap{width:100%;overflow-x:auto;border:1px solid #dce5ef;border-radius:7px}
.eurasia-product-table{width:100%;min-width:790px;border-collapse:collapse;table-layout:fixed}
.eurasia-product-table th{padding:7px 6px;background:#eaf2ff;color:#26384e;font-size:12px;text-align:center;white-space:nowrap}
.eurasia-product-table td{padding:5px 5px;border-top:1px solid #e5ebf3;text-align:center;vertical-align:middle}
.eurasia-product-table th:nth-child(1){width:42px}.eurasia-product-table th:nth-child(2){width:23%}.eurasia-product-table th:nth-child(3){width:17%}.eurasia-product-table th:nth-child(4){width:9%}.eurasia-product-table th:nth-child(5){width:12%}.eurasia-product-table th:nth-child(6){width:12%}.eurasia-product-table th:nth-child(7){width:13%}.eurasia-product-table th:nth-child(8){width:68px}
.eurasia-product-field{display:block;min-width:0;text-align:left}
.eurasia-product-field span{display:none}
.eurasia-product-field input,.eurasia-product-field select{width:100%;height:30px;min-width:0;box-sizing:border-box;padding:4px 7px;border:1px solid #cbd5e1;border-radius:5px;background:#fff;color:#1f2937;font:inherit;font-size:12px}
.eurasia-product-index{color:#34475e;font-size:12px;font-weight:700}
.eurasia-product-details td{padding:0 10px 8px;background:#fbfdff}
.eurasia-product-details details{text-align:left}
.eurasia-product-details summary{padding:4px 0;color:#536b88;font-size:11px;cursor:pointer}
.eurasia-product-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 12px;padding:8px 0 2px}
.eurasia-product-detail-grid .eurasia-product-field span{display:block}
.eurasia-pid-note{margin-top:8px;color:var(--muted);font-size:11px}
.eurasia-preflight-result{margin:10px 0;padding:12px;border-radius:8px;line-height:1.55}
.eurasia-editor-actions{position:fixed;z-index:30;right:0;bottom:0;left:var(--sidebar-width,220px);display:flex;align-items:center;justify-content:flex-end;gap:8px;min-height:58px;padding:8px 18px;border-top:1px solid var(--line);background:rgba(255,255,255,.97);box-shadow:0 -5px 18px #152b4510;backdrop-filter:blur(8px)}
.eurasia-editor-actions .muted{margin-right:auto}
@media(max-width:1100px){.eurasia-workflow{grid-template-columns:minmax(0,1fr) 290px}.eurasia-package-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.eurasia-workflow{grid-template-columns:minmax(0,1fr)}.eurasia-rule-card{position:static}.eurasia-stepbar{gap:4px}.eurasia-step{font-size:12px}}
@media(max-width:680px){.eurasia-editor{padding-top:2px}.eurasia-editor-title h1{font-size:19px}.eurasia-stepbar{grid-template-columns:repeat(2,minmax(0,1fr))}.eurasia-step{justify-content:flex-start;white-space:normal}.eurasia-section{padding:11px}.eurasia-grid,.eurasia-channel-fields,.eurasia-package-grid{grid-template-columns:1fr}.eurasia-product-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.eurasia-editor-actions{left:0;justify-content:flex-start;overflow-x:auto;white-space:nowrap;padding:8px}.eurasia-editor-actions .muted{display:none}.eurasia-editor-actions .btn{flex:0 0 auto}.eurasia-address-recognition{grid-template-columns:1fr}.eurasia-address-recognition>label{grid-column:auto}}
@media print{.eurasia-editor-actions{display:none!important}}
.eurasia-customer-items{display:grid;gap:8px;margin:8px 0}.eurasia-customer-item{display:grid;grid-template-columns:minmax(150px,1.35fr) minmax(140px,1fr) 90px 115px auto;gap:8px;align-items:center;padding:9px;border:1px solid var(--line);border-radius:8px;background:#fbfdff}.eurasia-customer-item input{min-width:0;width:100%;height:36px;box-sizing:border-box}.eurasia-customer-tax{margin:7px 0 10px;padding:12px;border:1px solid #f2d08b;border-radius:8px;background:#fff9ec;color:#4f4128;line-height:1.55}.eurasia-customer-tax.available{border-color:#b8dfc4;background:#f1fbf4;color:#24452f}.eurasia-customer-tax small{display:block;margin-top:6px;color:var(--muted)}.eurasia-customer-tax p{margin:6px 0 0}.eurasia-customer-tax.unavailable{border-color:#e7c3c3;background:#fff6f6;color:#7a3030}
@media(max-width:760px){.eurasia-customer-item{grid-template-columns:repeat(2,minmax(0,1fr))}.eurasia-customer-item button{grid-column:1/-1;justify-self:start}}
.eurasia-sender-card,.eurasia-advanced,.eurasia-contact-more,.eurasia-package-details{margin:0 0 10px;padding:10px 13px;border:1px solid var(--line);border-radius:9px;background:#fff}
.eurasia-sender-card>summary,.eurasia-advanced>summary,.eurasia-contact-more>summary,.eurasia-package-details>summary,.eurasia-address-recognition>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#26384e;font-size:12px;font-weight:700;cursor:pointer;list-style:none}
.eurasia-sender-card>summary::-webkit-details-marker,.eurasia-advanced>summary::-webkit-details-marker,.eurasia-contact-more>summary::-webkit-details-marker,.eurasia-package-details>summary::-webkit-details-marker,.eurasia-address-recognition>summary::-webkit-details-marker{display:none}
.eurasia-sender-card>summary:after,.eurasia-advanced>summary:after,.eurasia-contact-more>summary:after,.eurasia-package-details>summary:after,.eurasia-address-recognition>summary:after{content:'＋';color:var(--ui-primary);font-size:15px}
.eurasia-sender-card[open]>summary:after,.eurasia-advanced[open]>summary:after,.eurasia-contact-more[open]>summary:after,.eurasia-package-details[open]>summary:after,.eurasia-address-recognition[open]>summary:after{content:'−'}
.eurasia-sender-card>summary span{color:var(--muted);font-size:11px;font-weight:400}
.eurasia-sender-card>.eurasia-grid,.eurasia-advanced>.eurasia-grid,.eurasia-contact-more>.eurasia-grid,.eurasia-package-details>.eurasia-grid{margin-top:10px}
.eurasia-advanced{margin-top:10px;margin-bottom:0;padding:8px 10px;background:#fbfcfe}
.eurasia-address-recognition{display:block;margin:0 0 9px;padding:8px 10px;border:1px solid #dce8f4;border-radius:8px;background:#f8fbff}
.eurasia-address-recognition>summary{justify-content:flex-start}
.eurasia-address-recognition>label{display:block;margin:9px 0 5px;color:#415672;font-size:12px;font-weight:700}
.eurasia-address-recognition>.eurasia-autofill{min-height:42px;height:42px}
.eurasia-address-recognition .eurasia-toolbar{margin-top:6px}
.eurasia-contact-more{grid-column:1/-1;margin:0;padding:7px 9px;background:#fbfcfe}
.eurasia-package-details{margin:10px 0 0;padding:8px 10px;background:#fbfcfe}
.eurasia-service-field{min-width:0;margin:0;padding:0;border:0}
.eurasia-service-field legend{margin:0 0 5px;padding:0;color:#34475e;font-size:12px;font-weight:700}
.eurasia-service-choices{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.eurasia-service-choice{display:flex;align-items:center;gap:6px;min-height:34px;padding:5px 9px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#34475e;font-size:12px;line-height:1.35;cursor:pointer}
.eurasia-service-choice.selected{border-color:var(--ui-primary);background:var(--ui-primary-soft);color:#0756c9;box-shadow:inset 0 0 0 1px var(--ui-primary)}
.eurasia-service-choice input{width:15px;height:15px;margin:0;accent-color:var(--ui-primary);flex:0 0 15px}
.eurasia-service-choice span{font-weight:650}
.eurasia-channel-fields{align-items:start;gap:6px 12px}
.eurasia-channel-card .eurasia-grid .form-field label,.eurasia-grid .form-field label{margin-bottom:3px}
.eurasia-grid input,.eurasia-grid select{height:33px}
.eurasia-grid{gap:6px 14px}
.eurasia-contact-more,.eurasia-package-details,.eurasia-advanced{padding:7px 10px}
.postal-sender-card{margin:10px 0;padding:10px 13px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}
.postal-recipient-card{margin:12px 0;padding:14px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}.postal-recipient-card h3{margin:0 0 12px;color:var(--ink);font-size:15px}.postal-recipient-tools{display:grid;grid-template-columns:minmax(160px,1fr) minmax(190px,1.2fr) minmax(220px,2fr) auto;gap:8px;align-items:center}.postal-recipient-tools [data-postal-search-results]{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px}.postal-recipient-import{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:10px 0;color:var(--muted);font-size:12px}.postal-recipient-fields{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:8px}.postal-recipient-fields label{display:grid;gap:4px;color:var(--ink2);font-size:12px}.postal-recipient-fields input,.postal-recipient-fields select{min-width:0;width:100%;box-sizing:border-box}.postal-recipient-flags{display:flex;flex-wrap:wrap;gap:16px;margin-top:10px;font-size:12px;color:var(--ink2)}.postal-recipient-card>.fieldhint{margin:8px 0 0}
.postal-sender-card>summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;color:var(--ink)}
.postal-sender-card>summary::-webkit-details-marker{display:none}.postal-sender-card>summary:after{content:'＋';margin-left:auto;color:var(--ui-primary);font-size:16px}.postal-sender-card[open]>summary:after{content:'−'}
.postal-sender-card .muted{font-size:12px;font-weight:400;color:var(--muted)}.postal-sender-toggle{margin-left:auto;color:var(--ui-primary);font-size:12px;font-weight:400}.postal-sender-card[open] .postal-sender-toggle{display:none}
.postal-sender-fields{margin-top:12px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 14px}.postal-sender-fields .form-field{min-width:0}.postal-sender-fields input{width:100%;box-sizing:border-box}
@media(max-width:760px){.postal-sender-fields{grid-template-columns:1fr}.postal-sender-card>summary{flex-wrap:wrap}.postal-sender-toggle{margin-left:0}.postal-recipient-tools,.postal-recipient-fields{grid-template-columns:1fr}.postal-recipient-flags{display:grid;gap:8px}}
.taotaro-writeback-modal.modal{width:min(1080px,calc(100vw - 28px));max-width:none;max-height:92dvh;display:flex;flex-direction:column;padding:0;overflow:hidden}
.taotaro-writeback-panel input[type=number]{box-sizing:border-box;width:96px;min-height:38px;padding:7px 8px;border:1px solid var(--line);border-radius:6px;font:inherit}.taotaro-writeback-panel input[type=number]:focus{outline:2px solid #1769df}.taotaro-writeback-panel .data-table th,.taotaro-writeback-panel .data-table td{white-space:nowrap}
.taotaro-writeback-modal .modalheader{flex-shrink:0;padding:18px 24px;border-bottom:1px solid var(--line)}
.taotaro-writeback-modal .modalbody{padding:20px 24px;overflow:auto;min-height:0}
.taotaro-writeback-identity{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px}.taotaro-writeback-identity span{padding:9px 12px;background:#eaf3ff;border-radius:8px}
.taotaro-writeback-panel{border:1px solid var(--line);border-radius:10px;padding:15px 18px;margin:0 0 14px;background:#fff}.taotaro-writeback-panel h3{margin:0 0 10px;color:var(--ink)}.taotaro-writeback-panel p{margin:8px 0;color:var(--ink2)}.taotaro-writeback-channel{font-size:21px!important;font-weight:800;color:#1769df!important}.taotaro-writeback-panel .table-scroll{max-width:100%;overflow:auto}.taotaro-writeback-panel table{min-width:750px;width:100%}.taotaro-writeback-check{margin:16px 0}.taotaro-writeback-actions{display:flex;justify-content:flex-end;gap:10px;position:sticky;bottom:0;padding:12px 0;background:#fff}
.taotaro-writeback-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(290px,1fr);gap:14px;align-items:start}.taotaro-writeback-layout>*{min-width:0}.taotaro-writeback-box{padding:12px 0;border-top:1px solid var(--line)}.taotaro-writeback-box:first-of-type{border-top:0}.taotaro-writeback-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:10px}.taotaro-writeback-fields label{display:grid;gap:5px;color:var(--ink2);font-size:13px}.taotaro-writeback-fields input[type=number]{width:100%;min-width:0}.taotaro-writeback-metrics{display:flex;gap:18px;padding:12px;background:#edf5ff;border-radius:7px}.taotaro-writeback-cost{background:#f8fbff}.taotaro-writeback-cost-line{display:flex;justify-content:space-between;gap:12px;padding:8px 4px;border-bottom:1px solid var(--line)}.taotaro-writeback-cost-line:nth-child(even){background:#f1f6fc}.taotaro-writeback-cost-total{margin-top:12px;padding:13px;background:#1769df;color:#fff;border-radius:7px;font-weight:700}.taotaro-writeback-modal .modalbody{overflow-x:hidden}@media(max-width:800px){.taotaro-writeback-layout{grid-template-columns:1fr}.taotaro-writeback-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
