:root{
  color-scheme:light;
  font-family:"Noto Sans Thai","Segoe UI",Tahoma,system-ui,sans-serif;
  font-size:16px;line-height:1.55;
  --navy:#102944;--navy-deep:#0b1e35;--navy-soft:#173a5e;
  --red:#cf1236;--red-dark:#a90d2b;--text:#172e47;--muted:#52667b;
  --surface:#fff;--canvas:#f3f6fa;--line:#dce5ee;--line-soft:#eaf0f5;
  --focus:#2563bd;--success:#11643c;--warning:#8b5611;
  --shadow-sm:0 2px 10px rgba(18,45,72,.045);--shadow-md:0 16px 42px rgba(18,45,72,.09);
  color:var(--text);background:var(--canvas)
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth}
body{margin:0;min-width:320px}
button,input,select,textarea{font:inherit}
button{min-height:44px;cursor:pointer;border:1px solid transparent;border-radius:11px;padding:9px 16px;font-weight:700;line-height:1.3;touch-action:manipulation;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,color .16s ease}
button:active:not(:disabled){filter:brightness(.94)}
button:disabled{opacity:.52;cursor:not-allowed}
a{color:#1256a3;text-underline-offset:3px}
input,select,textarea{width:100%;min-height:44px;padding:10px 12px;border:1px solid #b8c8d9;border-radius:10px;background:var(--surface);color:var(--text);line-height:1.4}
textarea{min-height:86px;resize:vertical}
input::placeholder,textarea::placeholder{color:#77899b}
:where(input,select,textarea,button,a,summary):focus-visible{outline:3px solid var(--focus);outline-offset:2px}
label{display:grid;gap:6px;color:#31495f;font-size:.85rem;font-weight:700}
label small{color:var(--muted);font-size:.75rem;font-weight:500;line-height:1.45}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(1.6rem,2.2vw,2rem);line-height:1.25;letter-spacing:-.025em}
h2{font-size:1.22rem;line-height:1.35}
h3{font-size:1rem;line-height:1.35}
p{line-height:1.65}
.primary{background:var(--red);color:#fff;box-shadow:0 4px 10px rgba(207,18,54,.13)}
.primary:hover{background:var(--red-dark);box-shadow:0 6px 15px rgba(207,18,54,.19)}
.secondary{background:#e9f0f7;color:#123d69;border-color:#d3e0ed}
.secondary:hover{background:#dce9f6}
.ghost{background:transparent;color:#31506e;border-color:#d5e0eb}
.ghost:hover{background:#edf3f8}
.danger{background:#fff0f2;color:#a51f37;border-color:#f5c9d1}
.danger:hover{background:#ffe5e9}
.compact{min-height:36px;padding:7px 11px;font-size:.78rem;border-radius:9px;white-space:nowrap}
.wide{width:100%}
.muted{color:var(--muted)}
.small{font-size:.78rem}
.eyebrow{display:block;color:var(--red);font-size:.7rem;letter-spacing:.14em;font-weight:800;text-transform:uppercase}
.skip-link{position:fixed;z-index:100;top:-80px;left:16px;background:#fff;padding:10px 16px;border-radius:9px;box-shadow:var(--shadow-md)}
.skip-link:focus{top:14px}

/* Entry and authentication */
.login-shell{min-height:100dvh;display:grid;grid-template-columns:minmax(0,1fr) minmax(460px,1fr);background:#eef3f8}
.login-intro{position:relative;display:flex;flex-direction:column;justify-content:center;padding:clamp(36px,7vw,112px);overflow:hidden;color:#fff;background:radial-gradient(circle at 90% 13%,rgba(84,143,198,.25),transparent 34%),linear-gradient(145deg,#0b1e35,#163d63)}
.login-intro:after{content:"";position:absolute;right:-110px;bottom:-130px;width:420px;height:420px;border:1px solid rgba(255,255,255,.12);border-radius:50%;box-shadow:0 0 0 72px rgba(255,255,255,.025),0 0 0 146px rgba(255,255,255,.018);pointer-events:none}
.intro-kicker{color:#aac5df;font-size:.7rem;font-weight:800;letter-spacing:.24em}
.login-intro h2{max-width:650px;margin:30px 0 20px;font-size:clamp(2.2rem,4vw,4.3rem);line-height:1.24;letter-spacing:-.035em}
.login-intro p{max-width:480px;color:#d3e0ed;font-size:1rem}
.intro-steps{display:flex;gap:12px;flex-wrap:wrap;margin-top:38px;z-index:1}
.intro-steps span{display:inline-flex;align-items:center;gap:9px;border:1px solid rgba(255,255,255,.22);border-radius:99px;padding:8px 13px;color:#e6eef6;font-size:.78rem;background:rgba(255,255,255,.055)}
.intro-steps b{color:#ff7189;font-variant-numeric:tabular-nums}
.intro-foot{position:absolute;bottom:30px;color:#a6bfd6;font-size:.72rem;letter-spacing:.07em}
.login-card{align-self:center;justify-self:center;width:min(500px,calc(100% - 48px));max-height:calc(100dvh - 48px);overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:clamp(26px,3vw,42px);box-shadow:var(--shadow-md)}
.login-logo{display:block;width:126px;height:66px;object-fit:contain;object-position:left center;margin-bottom:15px}
.login-card h1{margin:7px 0 9px}
.login-card>p{color:var(--muted);font-size:.89rem;margin-bottom:27px}
.auth-form{display:grid;gap:16px}
.auth-form h2{font-size:1.04rem;margin:0 0 2px;padding-top:18px;border-top:1px solid var(--line-soft)}
.auth-form .primary{margin-top:4px;justify-content:space-between;display:flex;align-items:center}
.hq-recovery-panel{margin-bottom:18px}
.hq-recovery-panel form{align-items:end;margin:16px 0}
.recovery-result{padding:16px;border:1px solid #a8d3ba;border-radius:12px;background:#f0faf4;color:#123b2b;overflow-wrap:anywhere}
.recovery-result[hidden]{display:none}
.recovery-result code,.recovery-code-list code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.92rem;letter-spacing:.03em}
.recovery-code-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px 24px;padding-left:26px}

/* App frame */
.app-shell{display:grid;grid-template-columns:252px minmax(0,1fr);min-height:100dvh}
.sidebar{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;gap:18px;padding:20px 12px 16px;overflow-y:auto;background:var(--navy-deep);color:#fff}
.brand{display:grid;gap:7px;justify-items:start;padding:5px 12px 20px;border-bottom:1px solid rgba(255,255,255,.12)}
.brand img{width:102px;height:54px;object-fit:contain;object-position:left center;background:#fff;border-radius:10px;padding:6px}
.brand small{font-size:.64rem;letter-spacing:.14em;color:#a8bfd4;font-weight:800}
.sidebar nav{display:grid;gap:3px}
.nav-heading{margin:17px 12px 5px;color:#849fb8;font-size:.64rem;font-weight:800;letter-spacing:.15em;text-transform:uppercase}
.nav-heading:first-child{margin-top:0}
.sidebar nav button{display:flex;align-items:center;gap:11px;width:100%;text-align:left;background:transparent;color:#bed0e1;font-size:.86rem;font-weight:600;min-height:43px;border-radius:10px;padding:10px 12px}
.sidebar nav button svg{flex:none;width:19px;height:19px;opacity:.92}
.sidebar nav button:hover{background:rgba(255,255,255,.09);color:#fff}
.sidebar nav button.active{background:#244565;color:#fff;box-shadow:inset 3px 0 0 #fa4c69}
.sidebar-note{margin-top:auto;padding:13px;border:1px solid rgba(255,255,255,.16);border-radius:12px;background:rgba(255,255,255,.045);color:#b8ccdd;font-size:.71rem;line-height:1.55}
.mobile-nav{display:none}
.mobile-menu{border:1px solid var(--line);background:#fff;color:var(--text);box-shadow:0 -18px 45px rgba(8,28,47,.2)}
.mobile-menu::backdrop{background:rgba(8,28,47,.54)}
.mobile-menu-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:17px}
.mobile-menu-head h2{margin:5px 0 0}
.mobile-menu-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.mobile-menu-group{grid-column:1/-1;margin:11px 0 2px;color:#52667b;font-size:.75rem;font-weight:800;letter-spacing:.08em}
.mobile-menu-items button{display:flex;align-items:center;gap:10px;min-width:0;text-align:left;background:#f5f8fb;border:1px solid var(--line);color:var(--navy);font-size:.82rem}
.mobile-menu-items button svg{flex:none;width:19px;height:19px}
.mobile-menu-items button.active{background:#fff0f3;border-color:#e9aab7;color:var(--red)}
.workspace{min-width:0}
.topbar{position:sticky;top:0;z-index:5;min-height:77px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px clamp(20px,3vw,40px);background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}
.top-title{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.top-title strong{font-size:1rem;color:var(--navy)}
.top-eyebrow{width:100%;font-size:.63rem;letter-spacing:.15em;color:#6d7f92;font-weight:800;line-height:1}
.demo-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border-radius:99px;background:#fff0db;color:#754a0e;font-size:.68rem;font-weight:800;white-space:nowrap}
.demo-chip:before{content:"";width:6px;height:6px;background:#b97312;border-radius:50%}
.top-controls{display:flex;align-items:center;gap:12px;font-size:.75rem}
.top-controls label{font-size:.72rem;white-space:nowrap}
.top-controls select{min-width:190px;max-width:300px;min-height:38px;padding:6px 10px;font-size:.8rem}
.current-branch{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:#f5f8fb;color:var(--navy);font-size:.8rem;font-weight:800}
.actor-badge{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:7px 11px;border-radius:99px;background:#eef3f8;color:#294a69;font-weight:700}
.credit-chip{padding:7px 10px;border-radius:99px;background:#eaf5ed;color:#17633b;font-weight:800;white-space:nowrap}
.credit-chip.negative{background:#fff0f2;color:#bf1236}
.direct-receipt-form{min-width:190px;margin-top:8px;padding:10px;border:1px solid #dce5ee;border-radius:9px;background:#f8fafc;gap:7px}
.direct-receipt-form label{font-size:.72rem}
.direct-receipt-form input,.direct-receipt-form select{width:100%;margin-top:4px}
.top-controls #topup-alert-button{border-color:#f0c4a3;background:#fff4e7;color:#895021;white-space:nowrap}
.top-controls #topup-alert-button.has-pending{border-color:#e7a7b4;background:#fff0f3;color:#b71339}
#topup-alert-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;margin-left:5px;padding:0 4px;border-radius:99px;background:#d70937;color:#fff;font-size:.7rem}
.top-controls .ghost{min-height:38px;padding:7px 10px;font-size:.76rem;white-space:nowrap}
.content{max-width:1500px;margin:0 auto;padding:clamp(20px,3vw,40px)}
.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:25px}
.page-head h1{margin:4px 0 7px}
.page-head p{margin:0;max-width:750px;font-size:.86rem}
.icon-close{display:inline-grid;place-items:center;min-width:40px;min-height:40px;padding:8px}
.icon-close svg{width:20px;height:20px}
.page-head .primary{align-self:center}

/* Cards, data, and forms */
.panel{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:17px;padding:23px;box-shadow:var(--shadow-sm);margin-bottom:18px}
.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.panel-head h2{margin:0 0 3px}
.panel-head p{font-size:.79rem;margin:0}
.grid{display:grid;gap:15px}
.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
#branch-form>.grid.four,#branch-profile-form>.grid.four,#customer-form>.grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}
.integration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:18px;margin-bottom:18px}
.integration-grid>.panel{margin-bottom:0}
.integration-grid .panel-head{flex-wrap:wrap}
.integration-grid .integration-account-top{flex-wrap:wrap}
.integration-grid .integration-access-form .menu-grid{grid-template-columns:1fr}
.integration-grid .integration-form.grid.two{grid-template-columns:1fr}
.integration-grid .integration-branch{grid-column:1}
.integration-branch{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:13px 15px;border:1px solid var(--line);border-radius:12px;background:#f5f8fb;color:var(--muted);font-size:.82rem}
.integration-branch strong{color:var(--navy)}
.integration-account-list{display:grid;gap:11px;margin:17px 0 22px}
.integration-account{padding:17px 18px;border:1px solid #d7e2ec;border-radius:13px;background:#f8fafc}
.integration-account.connected{border-color:#a9d7bf;background:linear-gradient(115deg,#effaf3,#f8fcfa)}
.integration-account.failed{border-color:#ebbdc5;background:#fff5f6}
.integration-account-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.integration-account-source{display:block;margin-bottom:3px;color:var(--muted);font-size:.69rem;font-weight:700}
.integration-account h3{margin:0;color:var(--navy);font-size:1.02rem}
.integration-account h3 span{font-weight:600;color:#36566e}
.integration-check{display:inline-flex;align-items:center;gap:6px;flex:none;padding:7px 11px;border-radius:99px;background:#e7edf3;color:#526b7f;font-size:.77rem;font-weight:800}
.integration-check.connected{background:#d8f2e2;color:#10643f}
.integration-check.failed{background:#ffe1e5;color:#a72b40}
.integration-check>span{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#60778b;color:#fff;font-size:.72rem}
.integration-check.connected>span{background:#10643f}
.integration-check.failed>span{background:#a72b40}
.integration-account-meta{display:flex;flex-wrap:wrap;align-items:center;gap:7px 15px;margin-top:12px;color:#48647a;font-size:.75rem}
.integration-account-meta>span:not(:last-child){font-weight:700}
.integration-use.ready{color:#0f7044}
.integration-access{display:grid;gap:8px;margin-top:14px;padding:12px 14px;border:1px solid #c9dce9;border-radius:10px;background:#fff;color:#34536b;font-size:.77rem}
.integration-access strong{color:var(--navy)}
.integration-access>span{overflow-wrap:anywhere}
.integration-access summary{width:fit-content;cursor:pointer;color:#075487;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.integration-access-form{margin-top:13px}
.integration-access-form .menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.integration-access-form button{justify-self:start}
.integration-account-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:14px;padding-top:12px;border-top:1px solid #d9e9de}
.integration-account.failed .integration-account-actions{border-color:#f1d7db}
.integration-account-actions button{width:auto}
.integration-editor{margin-top:16px;border-top:1px solid var(--line-soft)}
.integration-editor summary{width:fit-content;margin-top:14px;padding:9px 13px;border:1px solid var(--line);border-radius:9px;background:#f5f8fb;color:var(--navy);font-size:.78rem;font-weight:800;cursor:pointer;list-style:none}
.integration-editor summary::-webkit-details-marker{display:none}
.integration-editor summary:hover{background:#eaf2f8}
.integration-editor[open] .integration-form{margin-top:17px}
.pricing-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0 0 20px;padding:6px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 10px 26px rgba(16,45,75,.05)}
.pricing-tabs button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;min-width:0;min-height:64px;padding:12px 18px;border:1px solid transparent;border-radius:11px;background:transparent;color:var(--navy);text-align:left}
.pricing-tabs button:hover{background:#f1f6fb}
.pricing-tabs button.active,.pricing-tabs button.active:hover{background:var(--navy);color:#fff;box-shadow:0 7px 18px rgba(13,40,70,.17)}
.pricing-tabs strong{font-size:.93rem}
.pricing-tabs small{font-size:.72rem;color:var(--muted)}
.pricing-tabs button.active small{color:#c7d9ec}
.pricing-tabs button:focus-visible{outline:3px solid #2674cb;outline-offset:2px}
.rate-editor-section{margin-top:21px}
.rate-editor-label{display:block;margin-bottom:9px;color:var(--muted);font-size:.72rem;font-weight:800;letter-spacing:.035em}
.rate-carrier-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.rate-carrier-tab{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;min-height:65px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#f7f9fc;color:var(--navy);text-align:left}
.rate-carrier-tab strong{font-size:.86rem}
.rate-carrier-tab small{font-size:.68rem;color:var(--muted)}
.rate-carrier-tab.active{border-color:#0d2846;background:#eaf2f9;box-shadow:inset 0 0 0 1px #0d2846}
.rate-carrier-tab.active strong{color:#0d2846}
.rate-editor-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:0}
.rate-editor-tabs button{min-height:40px;padding:8px 15px;border:1px solid var(--line);border-radius:10px;background:#f5f8fb;color:var(--navy);font-size:.78rem;font-weight:700}
.rate-editor-tabs button.active{border-color:var(--navy);background:var(--navy);color:#fff}
.rate-tier-count{display:inline-block;margin-left:7px;padding:2px 6px;border-radius:7px;background:#e5edf5;color:var(--navy);font-size:.68rem}
.rate-editor-tabs button.active .rate-tier-count{background:rgba(255,255,255,.2);color:#fff}
.rate-entry-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:24px;padding:17px 0 13px;border-top:1px solid var(--line-soft)}
.rate-entry-head h3{margin:0;color:var(--navy);font-size:1rem}
.rate-entry-head p{margin:5px 0 0}
.rate-entry-head .status{flex:none}
.rate-entry-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
.rate-entry-cell{display:flex;flex-direction:column;gap:6px;min-width:0;padding:11px;border:1px solid var(--line);border-radius:11px;background:#f8fafc;color:var(--navy);font-size:.75rem;font-weight:800}
.rate-entry-cell input{width:100%;min-width:0;height:41px;padding:7px 9px;background:#fff;text-align:right;font-size:.9rem;font-variant-numeric:tabular-nums}
.rate-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:17px}
.rate-editor-footer p{max-width:460px;margin:0}
.rate-editor-footer button{flex:none}
.credit-period-form{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:15px 0 20px}
.credit-period-form label{min-width:170px;font-size:.75rem;font-weight:700}
.credit-period-form input{margin-top:6px}
.credit-period-form button{min-height:44px}
.credit-branch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.credit-branch-card{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0;padding:17px;border:1px solid var(--line);border-radius:13px;background:#f8fafc;color:var(--navy);text-align:left}
.credit-branch-card.active{border-color:#153c60;background:#eef5fb;box-shadow:inset 0 0 0 1px #153c60}
.credit-branch-card span{font-size:.8rem;font-weight:800}
.credit-branch-card strong{font-size:1.35rem;font-variant-numeric:tabular-nums}
.credit-branch-card small{color:var(--muted);font-size:.73rem}
.credit-branch-card em{font-size:.74rem;font-style:normal;font-weight:800;color:#ad263b}
.credit-branch-card .credit-ok{color:#147045}
.credit-detail{margin-top:18px}
.credit-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:18px}
.credit-summary-grid>div{padding:14px;border:1px solid var(--line);border-radius:11px;background:#f8fafc}
.credit-summary-grid span,.credit-summary-grid small{display:block;color:var(--muted);font-size:.72rem}
.credit-summary-grid strong{display:block;margin-top:7px;font-size:1.14rem;font-variant-numeric:tabular-nums}
.credit-topup-callout{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:15px;padding:20px;border-radius:13px;background:#102b49;color:#fff}
.credit-topup-callout span,.credit-topup-callout p{color:#cbdce9;font-size:.75rem}
.credit-topup-callout strong{display:block;margin-top:5px;color:#fff;font-size:1.65rem;font-variant-numeric:tabular-nums}
.credit-topup-callout p{margin:4px 0 0}
.credit-action-row{display:flex;align-items:center;justify-content:space-between;gap:17px;margin-top:16px}
.credit-action-row p{max-width:520px;margin:0}
.credit-action-row button{flex:none}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.stat{background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:20px;box-shadow:var(--shadow-sm)}
.stat span{color:var(--muted);font-size:.77rem}
.stat strong{display:block;margin-top:10px;color:var(--navy);font-size:1.8rem;line-height:1.25;font-variant-numeric:tabular-nums}
.stat.primary-stat{background:var(--navy);border-color:var(--navy);color:#fff}
.stat.primary-stat span{color:#cbdde9}
.stat.primary-stat strong{color:#fff}
.overview-hero{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) 154px;align-items:center;gap:22px;min-height:216px;padding:29px 32px;border-radius:20px;background:#0d2846;color:#fff;box-shadow:0 15px 32px rgba(12,39,70,.16)}
.overview-hero:before{content:"";position:absolute;z-index:-1;inset:0;background:radial-gradient(circle at 77% 15%,rgba(76,137,190,.22),transparent 34%),linear-gradient(112deg,transparent 73%,rgba(255,255,255,.045) 73%,rgba(255,255,255,.045) 74%,transparent 74%);pointer-events:none}
.overview-hero-copy{min-width:0}
.overview-kicker{display:inline-flex;align-items:center;gap:9px;color:#b7d1e8;font-size:.67rem;font-weight:800;letter-spacing:.15em}
.overview-live-dot{width:7px;height:7px;border-radius:50%;background:#ed405d;box-shadow:0 0 0 4px rgba(237,64,93,.16)}
.overview-hero h2{margin:11px 0 4px;color:#fff;font-size:clamp(1.35rem,2vw,1.9rem);letter-spacing:-.025em}
.overview-hero p{margin:0;color:#c7d8e8;font-size:.83rem;line-height:1.6}
.overview-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:20px}
.overview-actions button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:9px 14px;font-size:.8rem}
.overview-actions svg{width:17px;height:17px}
.overview-outline{background:rgba(255,255,255,.06);border-color:rgba(220,235,248,.38);color:#fff}
.overview-outline:hover{background:rgba(255,255,255,.14)}
.overview-hero-number{align-self:stretch;display:flex;flex-direction:column;justify-content:center;align-items:flex-end;padding-left:15px;border-left:1px solid rgba(228,239,250,.2);text-align:right}
.overview-hero-number span{color:#c5d8e9;font-size:.73rem;font-weight:700}
.overview-hero-number strong{color:#fff;font-family:"Segoe UI",Tahoma,sans-serif;font-size:clamp(3.8rem,7vw,5.2rem);font-weight:750;line-height:1.1;font-variant-numeric:tabular-nums;letter-spacing:-.05em}
.overview-hero-number small{color:#a9c3d9;font-size:.67rem}
.overview-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:16px 0 22px}
.overview-metric{position:relative;display:flex;flex-direction:column;min-width:0;min-height:137px;padding:19px 19px 16px;border:1px solid #dbe5ee;border-radius:16px;background:#fff;box-shadow:0 3px 13px rgba(18,45,72,.04)}
.overview-metric-icon{position:absolute;top:17px;right:17px;display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#edf3f9;color:#315a7d}
.overview-metric-icon svg{width:17px;height:17px}
.overview-metric-label{padding-right:34px;color:#536b81;font-size:.75rem;font-weight:700}
.overview-metric strong{display:block;margin-top:7px;color:#0d2846;font-family:"Segoe UI",Tahoma,sans-serif;font-size:2rem;line-height:1.2;font-variant-numeric:tabular-nums;letter-spacing:-.035em;white-space:nowrap}
.overview-metric-money strong{font-size:1.75rem}
.overview-metric small{margin-top:auto;color:#71869a;font-size:.68rem}
.service-summary{padding:25px}
.service-summary .panel-head{align-items:center;gap:14px;margin-bottom:18px}
.service-summary .panel-head h2{margin:4px 0 4px}
.service-summary .panel-head p{line-height:1.5}
.service-summary-kicker{color:#bc1d40;font-size:.62rem;font-weight:800;letter-spacing:.15em}
.service-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.service-card{display:flex;flex-direction:column;min-width:0;min-height:303px;padding:17px;border:1px solid #dce6ef;border-radius:14px;background:#fff;box-shadow:0 2px 8px rgba(18,45,72,.035)}
.service-card-shopee{border-color:#bed6e9;background:linear-gradient(160deg,#f2f8fd 0%,#fff 65%)}
.service-card-top{display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:27px}
.service-card-type{color:#65829a;font-size:.64rem;font-weight:800;letter-spacing:.04em}
.service-card-shopee .service-card-type{color:#2174a2}
.service-card-mark{display:grid;place-items:center;flex:none;width:27px;height:27px;border-radius:8px;background:#edf3f8;color:#426b8b}
.service-card-shopee .service-card-mark{background:#dceefa;color:#2574a4}
.service-card-mark svg{width:16px;height:16px}
.service-card h3{margin:10px 0 1px;color:#102d4b;font-size:1.08rem;line-height:1.25}
.service-card-name{min-height:31px;margin:0;color:#74899b;font-size:.73rem;line-height:1.4}
.service-card-main{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;margin:13px 0;padding:13px 0 11px;border-block:1px solid #e7edf3}
.service-card-main>span{width:100%;color:#58738a;font-size:.72rem;font-weight:700}
.service-card-main strong{color:#102d4b;font-family:"Segoe UI",Tahoma,sans-serif;font-size:2.15rem;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.045em}
.service-card-shopee .service-card-main strong{color:#126197}
.service-card-main small{color:#8699a9;font-size:.68rem}
.service-card-mini{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:13px}
.service-card-mini>div{min-width:0;padding:10px 11px;border-radius:9px;background:#f5f8fb}
.service-card-shopee .service-card-mini>div{background:#eaf4fa}
.service-card-mini span{display:block;color:#71899d;font-size:.66rem}
.service-card-mini strong{display:block;margin-top:3px;color:#1d425f;font-size:1.05rem;font-variant-numeric:tabular-nums}
.service-card-details{margin-top:auto;border-top:1px solid #e7edf3}
.service-card-details summary{padding:10px 0 0;color:#315e7f;font-size:.7rem;font-weight:800;cursor:pointer}
.service-card-details summary:focus-visible,.service-card-link:focus-visible{outline:2px solid #3d80af;outline-offset:3px;border-radius:3px}
.service-card-details dl{display:grid;gap:7px;margin:12px 0 0}
.service-card-details dl>div{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.service-card-details dt{color:#7c91a2;font-size:.68rem}
.service-card-details dd{margin:0;color:#234561;font-size:.72rem;font-weight:800;text-align:right}
.service-card-details dd small{color:#899baa;font-weight:500}
.service-card-link{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding:10px 0 0;border-top:1px solid #d9e7f1;color:#176391;font-size:.72rem;font-weight:800;text-decoration:none}
.service-card-link:hover{text-decoration:underline}
.service-card-link span{font-size:1rem}
.service-summary-note{margin:14px 0 0;color:#8295a6;font-size:.7rem}
@media(max-width:1050px){.service-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.service-summary{padding:18px}.service-summary .panel-head{align-items:flex-start;flex-direction:column}.service-card-grid{grid-template-columns:1fr}.service-card{min-height:0}.service-card-name{min-height:0}}
.spx-dashboard{overflow:hidden;padding:0}
.spx-dashboard-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:126px;padding:25px 28px;background:linear-gradient(115deg,#102d4b 0%,#163c60 72%,#23577b 100%);color:#fff}
.spx-eyebrow{display:block;color:#9ec5e0;font-size:.65rem;font-weight:800;letter-spacing:.16em}
.spx-dashboard-hero h2{margin:7px 0 2px;color:#fff;font-size:1.55rem;line-height:1.2}
.spx-dashboard-hero p{margin:0;color:#c9dce9;font-size:.82rem}
.spx-connection{display:inline-flex;align-items:center;gap:8px;flex:none;padding:8px 12px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.1);color:#fff;font-size:.74rem;font-weight:800;white-space:nowrap}
.spx-connection>span{width:8px;height:8px;border-radius:50%;background:#f6ba66}
.spx-connection.connected>span{background:#65d6a1;box-shadow:0 0 0 4px rgba(101,214,161,.15)}
.spx-sync-meta{display:flex;flex-wrap:wrap;gap:6px 22px;padding:13px 28px;border-bottom:1px solid var(--line-soft);background:#f7fafc;color:#6b8196;font-size:.72rem}
.spx-sync-meta strong{color:#284b68;font-weight:800}
.spx-dashboard>.notice{margin:18px 28px 0}
.spx-kpis{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:11px;padding:21px 28px 11px}
.spx-kpi{display:flex;flex-direction:column;min-width:0;min-height:129px;padding:16px 18px;border:1px solid #dce7ef;border-radius:13px;background:#fff}
.spx-kpi-primary{border-color:#c8dced;background:#f0f6fb}
.spx-kpi>span{display:flex;justify-content:space-between;gap:7px;color:#55718a;font-size:.74rem;font-weight:800}
.spx-kpi>span small{color:#8295a6;font-size:.66rem;font-weight:600;white-space:nowrap}
.spx-kpi strong{margin:7px 0 0;color:#0d2846;font-family:"Segoe UI",Tahoma,sans-serif;font-size:2.1rem;line-height:1.15;font-variant-numeric:tabular-nums;letter-spacing:-.04em}
.spx-kpi-primary strong{color:#174e7a}
.spx-kpi>small{margin-top:auto;color:#7890a3;font-size:.68rem}
.spx-section-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:14px 28px 12px}
.spx-section-kicker{color:#b81739;font-size:.62rem;font-weight:800;letter-spacing:.15em}
.spx-section-head h3{margin:3px 0 0;color:#102d4b;font-size:1rem}
.spx-period{color:#7890a3;font-size:.7rem;white-space:nowrap}
.spx-daily-wrap{margin:0 28px;border:1px solid #e0e8ef;border-radius:12px;overflow:hidden}
.spx-daily-table{width:100%;border-collapse:collapse;font-size:.8rem}
.spx-daily-table thead{background:#f5f8fb}
.spx-daily-table th,.spx-daily-table td{padding:10px 14px;border-bottom:1px solid #e9eff4;text-align:left}
.spx-daily-table thead th{color:#617b92;font-size:.68rem;font-weight:800}
.spx-daily-table tbody tr:last-child th,.spx-daily-table tbody tr:last-child td{border-bottom:0}
.spx-daily-table tbody tr.is-today{background:#f7fbff}
.spx-daily-table tbody th{width:150px;color:#183b5b;font-weight:800;white-space:nowrap}
.spx-daily-table tbody th small{display:block;color:#879aab;font-size:.65rem;font-weight:500}
.spx-daily-table tbody td:nth-child(2){width:100%}
.spx-daily-table tbody td:last-child{text-align:right;white-space:nowrap}
.spx-daily-table tbody td:last-child strong{color:#163b5c;font-size:.95rem;font-variant-numeric:tabular-nums}
.spx-daily-table tbody td:last-child small{margin-left:4px;color:#8395a6;font-size:.68rem}
.spx-day-bar{display:block;width:100%;height:9px;border:0;border-radius:999px;appearance:none;background:#edf3f8;overflow:hidden}
.spx-day-bar::-webkit-progress-bar{border-radius:999px;background:#edf3f8}
.spx-day-bar::-webkit-progress-value{border-radius:999px;background:linear-gradient(90deg,#2b78a6,#6bb8d4)}
.spx-day-bar::-moz-progress-bar{border-radius:999px;background:#2b78a6}
.spx-daily-table .is-today .spx-day-bar::-webkit-progress-value{background:linear-gradient(90deg,#b8183c,#ec6d78)}
.spx-daily-table .is-today .spx-day-bar::-moz-progress-bar{background:#b8183c}
.spx-data-note{margin:11px 28px 20px;color:#72889c;font-size:.72rem}
.spx-parcel-details{border-top:1px solid var(--line-soft);background:#fbfcfe}
.spx-parcel-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:73px;padding:14px 28px;cursor:pointer;list-style:none}
.spx-parcel-details>summary::-webkit-details-marker{display:none}
.spx-parcel-details>summary:focus-visible{outline:2px solid #3d80af;outline-offset:-4px}
.spx-parcel-details>summary>span:first-child{display:grid;gap:2px}
.spx-parcel-details>summary strong{color:#173b59;font-size:.84rem}
.spx-parcel-details>summary small{color:#8195a7;font-size:.69rem}
.spx-parcel-details>summary .count-chip:after{content:'⌄';margin-left:8px;font-size:1rem;line-height:.6}
.spx-parcel-details[open]>summary .count-chip:after{content:'⌃'}
.spx-parcel-details>.table-wrap{margin:0 28px 18px}
.spx-parcel-details>#spx-drop-load-more{margin:0 28px 20px}
.spx-parcel-details>.empty{margin:0 28px 18px}
@media(max-width:700px){.spx-dashboard-hero{align-items:flex-start;flex-direction:column;gap:13px;padding:22px 18px}.spx-sync-meta{padding:12px 18px}.spx-kpis{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px 18px 9px}.spx-kpi-primary{grid-column:1/-1}.spx-section-head{margin:13px 18px 11px}.spx-daily-wrap{margin:0 18px}.spx-data-note{margin:11px 18px 18px}.spx-parcel-details>summary{padding-inline:18px}.spx-parcel-details>.table-wrap{margin-inline:18px}.spx-parcel-details>#spx-drop-load-more{margin-left:18px}.spx-dashboard>.notice{margin-inline:18px}}
@media(max-width:420px){.spx-kpi{padding:13px;min-height:112px}.spx-kpi strong{font-size:1.8rem}.spx-kpi>span{display:block}.spx-kpi>span small{display:block;margin-top:2px}.spx-period{display:none}.spx-daily-table th,.spx-daily-table td{padding:10px 9px}.spx-daily-table tbody th{width:auto}.spx-daily-table tbody th small{font-size:.61rem}}
.overview-recent{padding:24px 26px}
.overview-recent .panel-head{align-items:center;margin-bottom:15px}
.overview-recent .panel-head h2{margin:3px 0 2px}
.overview-section-kicker{color:#cb173c;font-size:.64rem;font-weight:800;letter-spacing:.16em}
.overview-recent .panel-head .secondary{font-size:.77rem;white-space:nowrap}
.overview-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:194px;padding:23px 16px;border:1px dashed #cbd9e6;border-radius:13px;background:#f9fbfd;text-align:center}
.overview-empty-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:12px;background:#e9f1f8;color:#315c81}
.overview-empty-icon svg{width:23px;height:23px}
.overview-empty h3{margin:11px 0 3px;color:#193956;font-size:.96rem}
.overview-empty p{margin:0;color:#627990;font-size:.77rem}
.overview-empty button{margin-top:13px;min-height:35px;padding:7px 12px;font-size:.76rem;background:#fff}
.shipment-layout{display:grid;grid-template-columns:minmax(0,1fr) 302px;gap:18px;align-items:start}
.summary{position:sticky;top:95px}
.summary-total{color:var(--red);font-size:1.85rem;font-weight:800;font-variant-numeric:tabular-nums}
.parcel-card{margin-bottom:15px;padding:20px;background:#f8fafc;border:1px solid var(--line);border-radius:13px}
.parcel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.parcel-title h3{margin:0}
.carrier-fieldset{min-width:0;margin:0 0 14px;padding:0;border:0}
.carrier-fieldset legend{margin-bottom:8px;color:#31495f;font-size:.85rem;font-weight:800}
.carrier-radio-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.carrier-option{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:48px;padding:9px 10px;border:1px solid #b8c8d9;border-radius:11px;background:#fff;cursor:pointer;text-align:center}
.carrier-option input{width:16px;height:16px;min-height:16px;margin:0;padding:0;flex:none;accent-color:var(--red)}
.carrier-option span{font-size:.81rem;white-space:nowrap}
.carrier-option:has(input:checked){border-color:var(--red);background:#fff3f5;box-shadow:0 0 0 1px rgba(207,18,54,.15)}
.carrier-option:focus-within{outline:3px solid var(--focus);outline-offset:2px}
.box-fieldset{margin-top:17px;margin-bottom:0;padding:14px;border:1px solid var(--line);border-radius:11px;background:#fff}
.box-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.box-catalog{display:block;margin-top:12px}
.box-catalog[hidden]{display:none}
.cod-amount{display:block;margin-top:12px}
.cod-amount[hidden],.cod-account-panel[hidden]{display:none}
.cod-account-panel{margin-top:18px;padding:17px;border:1px solid #b8c8d9;border-radius:12px;background:#f8fbff}
.cod-account-panel>strong{display:block;margin-bottom:10px}
.cod-account-panel button{margin-top:10px}
.cod-collection{color:#12466e}
.quote-item{padding:10px 0;border-bottom:1px solid var(--line)}
.quote-item:last-child{border-bottom:0}
.address-area{margin-top:13px}
.parcel-hint{margin:12px 0 0}
.postcode-picker{position:relative;min-width:0}
.postcode-options{position:absolute;z-index:10;top:calc(100% + 4px);left:0;width:max(100%,min(320px,calc(100vw - 32px)));max-height:min(260px,45dvh);overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;padding:5px;background:#fff;border:1px solid #b8c8d9;border-radius:11px;box-shadow:var(--shadow-md)}
.parcel-card .postcode-options{left:auto;right:0}
.postcode-options button{display:block;width:100%;min-height:40px;padding:9px 11px;text-align:left;border-radius:7px;background:#fff;color:var(--text);font-size:.81rem;font-weight:600}
.postcode-options button:hover,.postcode-options button.active{background:#e9f1f9;color:#123f69}
.postcode-selection{display:block;margin-top:5px;color:#235b40;font-size:.72rem;font-weight:700;line-height:1.4}
.direct-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,1fr);gap:16px;align-items:start;margin-bottom:18px}
.direct-layout>aside{display:grid;gap:16px}
.direct-layout .panel{min-width:0}
.direct-step{margin:18px 0 0;padding-top:20px;border-top:1px solid var(--line-soft)}
.direct-entry-panel{box-shadow:0 12px 30px rgba(17,48,76,.06)}
.section-heading.direct-section-heading{align-items:center;gap:13px;padding:14px 16px;border:1px solid #d7e5f1;border-radius:14px;background:linear-gradient(120deg,#edf5fc,#f8fbfe);margin-bottom:16px}
.direct-section-heading.direct-step{margin:24px 0 16px;padding:14px 16px;border-top:1px solid #d7e5f1}
.direct-section-icon{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:12px;background:#143a60;color:#fff;box-shadow:0 5px 12px rgba(20,58,96,.15)}
.direct-section-icon svg{width:23px;height:23px}
.direct-section-copy{min-width:0}
.section-heading.direct-section-heading h2{margin:2px 0 0;font-size:1.06rem;line-height:1.3}
.direct-section-index{color:#4c718f;font-size:.69rem;font-weight:800;letter-spacing:.04em}
.direct-customer-picker{display:grid;gap:7px;min-width:0}
.direct-customer-picker>label{color:#27465f;font-size:.84rem;font-weight:800}
.direct-customer-picker>small{color:var(--muted);font-size:.73rem}
.direct-customer-combobox{position:relative;min-width:0}
.direct-customer-combobox:before{content:"";position:absolute;z-index:1;top:14px;left:14px;width:12px;height:12px;border:2px solid #65819a;border-radius:50%;pointer-events:none}
.direct-customer-combobox:after{content:"";position:absolute;z-index:1;top:27px;left:27px;width:8px;height:2px;background:#65819a;transform:rotate(45deg);transform-origin:left center;pointer-events:none}
#direct-customer-search{padding-left:41px}
.direct-customer-options{position:absolute;z-index:12;top:calc(100% + 5px);left:0;right:0;max-height:300px;overflow:auto;padding:5px;border:1px solid #b8c8d9;border-radius:11px;background:#fff;box-shadow:var(--shadow-md)}
.direct-customer-options button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:54px;padding:9px 11px;border-radius:8px;background:#fff;color:var(--text);text-align:left}
.direct-customer-options button:hover,.direct-customer-options button.active{background:#e9f1f9;color:#123f69}
.direct-customer-options button span{display:grid;gap:2px;min-width:0}
.direct-customer-options button strong,.direct-customer-options button small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.direct-customer-options button strong{font-size:.8rem}
.direct-customer-options button small{color:var(--muted);font-size:.7rem;font-weight:500}
.direct-customer-options button b{flex:none;color:#17466f;font-size:.78rem;font-variant-numeric:tabular-nums}
.direct-recipient-picker{position:relative;display:grid;gap:7px;min-width:0}
.direct-recipient-picker>label{font-size:.84rem;font-weight:800;color:#27465f}
.direct-recipient-picker>small{font-size:.73rem;color:var(--muted)}
.direct-recipient-options{position:absolute;z-index:12;top:calc(100% + 5px);left:0;right:0;max-height:280px;overflow:auto;padding:5px;border:1px solid #b8c8d9;border-radius:11px;background:#fff;box-shadow:var(--shadow-md)}
.direct-recipient-options button{display:grid;gap:3px;width:100%;padding:10px 11px;border-radius:8px;background:#fff;color:var(--text);text-align:left}
.direct-recipient-options button:hover,.direct-recipient-options button.active{background:#e9f1f9}
.direct-recipient-options button small{color:var(--muted);font-size:.72rem;line-height:1.4}
.direct-carrier-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.direct-carrier-options .carrier-option{min-width:0}
@media(max-width:650px){.direct-carrier-options{grid-template-columns:1fr}}
.direct-preview{padding:13px 15px;border-radius:11px;background:#f2f6fa;border:1px solid var(--line-soft);color:var(--muted);font-size:.8rem;line-height:1.55}
.direct-preview strong{color:var(--navy)}
.direct-preview.selected{border-color:#b8d6c6;background:#f0f8f3;color:#365e46}
.sender-mode-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:15px 0 12px}
.sender-mode-tabs button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;border:1px solid #c6d7e5;border-radius:10px;background:#f7f9fc;color:var(--navy);font-size:.8rem;font-weight:800}
.sender-mode-tabs button svg{flex:none;width:17px;height:17px}
.sender-mode-tabs button.active{border-color:#1d5682;background:#e9f3fb;box-shadow:inset 0 0 0 1px #1d5682}
.direct-add-sender{margin:0 0 20px;padding:16px;border:1px solid #c5d8e8;border-radius:12px;background:#f7fbff}
.direct-add-sender>p{margin:0 0 13px}
.direct-saved-sender{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:16px;padding:14px 16px;border:1px solid #b9dcc9;border-radius:12px;background:#f0f8f3}
.direct-saved-sender[hidden]{display:none}
.direct-saved-sender-copy{display:grid;gap:3px;min-width:0}
.direct-saved-sender-copy span{color:#276347;font-size:.69rem;font-weight:800}
.direct-saved-sender-copy strong{color:#173d2e;font-size:.96rem}
.direct-saved-sender-copy small{color:#527264;font-size:.74rem}
.direct-saved-sender button{flex:0 0 auto}
@media(max-width:520px){.direct-saved-sender button{width:100%}}
.direct-queue-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.direct-queue-actions button{flex:1 1 190px}
.direct-queue{min-width:0}
.direct-queue:not(:empty){padding:15px;border:1px solid #bdd5e7;border-radius:12px;background:#f5f9fd}
.direct-queue-head{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;align-items:baseline;margin-bottom:10px}
.direct-queue-head strong{color:var(--navy)}
.direct-queue ol{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:8px}
.direct-queue li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border:1px solid #dbe6f0;border-radius:9px;background:#fff}
.direct-queue li span{display:grid;gap:3px;min-width:0}
.direct-queue li small{color:var(--muted);overflow-wrap:anywhere}
.direct-queue li button{flex:none}
.direct-add-sender form{gap:13px}
.direct-add-sender form>button{justify-self:start;width:auto}
.direct-add-sender .grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:580px){.direct-add-sender .grid.two,.direct-add-sender .grid.four{grid-template-columns:1fr}}
#direct-existing-sender{display:grid;gap:10px}
.postcode-none{padding:10px;color:var(--muted);font-size:.78rem}
.toolbar,.actions,.row-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.toolbar>*{width:auto}
.toolbar input{flex:1 1 280px;min-width:220px}
.staff-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.staff-card{min-width:0;padding:20px;border:1px solid var(--line);border-radius:14px;background:#f8fafc}
.staff-card .panel-head{margin-bottom:12px}
.staff-card h3{margin-bottom:3px}
.staff-card p{margin-bottom:0;overflow-wrap:anywhere}
.menu-fieldset{min-width:0;margin:0;padding:15px;border:1px solid var(--line);border-radius:12px;background:#fff}
.menu-fieldset legend{padding:0 6px;color:#31495f;font-size:.85rem;font-weight:800}
.role-access-note{margin:-3px 0 0;padding:10px 12px;border-left:3px solid var(--red);border-radius:0 8px 8px 0;background:#f5f8fc;line-height:1.5}
#hq-user-menu-summary{margin:0 0 10px}
.menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.menu-check{display:flex;align-items:center;gap:10px;min-width:0;padding:9px 11px;border:1px solid #dce5ee;border-radius:9px;background:#f8fafc;font-size:.82rem;font-weight:600;cursor:pointer}
.menu-check:has(input:checked){border-color:#9bb9d6;background:#edf5fc;color:#143c63}
.menu-check input{width:18px;height:18px;min-height:18px;flex:none;margin:0;accent-color:#cf1236}
.menu-check span{overflow-wrap:anywhere}
.staff-reset{margin-top:13px;border-top:1px solid var(--line);padding-top:10px}
.staff-reset summary{cursor:pointer;color:#31506e;font-size:.82rem;font-weight:700}
.staff-password-form{margin-top:12px}
.staff-edit{margin-top:13px;border-top:1px solid var(--line);padding-top:10px}
.staff-edit summary{cursor:pointer;color:#31506e;font-size:.82rem;font-weight:700}
.staff-profile-form{margin-top:12px}
.branch-management-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:18px;padding:14px 18px;border:1px solid #c8dced;border-radius:13px;background:#eef5fb;color:#254361;font-size:.84rem}
.branch-management-bar strong{color:var(--navy)}
.branch-open-row{cursor:pointer}
.branch-selected-row{background:#eef6ff}
.branch-enter-action{white-space:nowrap}
.branch-open-row:focus-within{outline:2px solid #7aa7d3;outline-offset:-2px}
.branch-open-link{display:inline;min-height:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:#075487;font-size:inherit;font-weight:800;text-align:left;text-decoration:underline;text-underline-offset:3px}
.branch-open-link:hover{background:none;color:#ba1030;box-shadow:none}
@media(max-width:1100px){.staff-list{grid-template-columns:1fr}}
@media(max-width:580px){.menu-grid{grid-template-columns:1fr}}
@media(max-width:580px){#branch-form>.grid.four,#branch-profile-form>.grid.four,#customer-form>.grid.four{grid-template-columns:1fr}}
.list{width:100%;border-collapse:collapse;font-size:.83rem}
.list th,.list td{text-align:left;padding:13px 12px;border-bottom:1px solid var(--line-soft);vertical-align:middle}
.list th{color:#546b81;font-size:.7rem;letter-spacing:.03em;font-weight:800;white-space:nowrap;background:#f8fafc}
.list tr:last-child td{border-bottom:0}
.list tbody tr:hover{background:#fafcfe}
.direct-actions{min-width:175px}
.direct-actions button{display:block;width:100%;margin:3px 0}
.direct-list-panel .panel-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 10px}
.direct-list-panel .panel-head>div:first-child{min-width:0}
.direct-list-panel .table-wrap{border:0;overflow:visible}
.direct-list-table,.direct-list-panel .table-wrap .direct-list-table,.direct-list-table tbody{display:block;width:100%;min-width:0}
.direct-list-table thead{display:none}
.direct-list-table tbody{display:grid;gap:12px}
.direct-list-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:16px;border:1px solid #d8e5f0;border-radius:16px;background:#fff;box-shadow:0 8px 22px #102c4b0b}
.direct-list-table tbody tr:hover{background:#fbfdff;border-color:#a9c6dd}
.direct-list-table tbody td{display:block;min-width:0;padding:0;border:0;overflow-wrap:anywhere;line-height:1.5}
.direct-list-table tbody td:first-child{font-size:.72rem;color:var(--muted)}
.direct-list-table tbody td:first-child strong{display:block;margin-top:2px;color:var(--navy);font-size:.84rem}
.direct-list-table tbody td:nth-child(2){grid-column:2;grid-row:1;text-align:right;font-size:.72rem;color:var(--muted)}
.direct-list-table tbody td:nth-child(2) strong{display:inline-block;padding:4px 9px;border-radius:8px;background:#eaf3fb;color:#17466f;font-size:.75rem}
.direct-list-table tbody td:nth-child(n+3){grid-column:1/-1}
.direct-list-table tbody td:nth-child(3){padding-top:10px;border-top:1px solid var(--line-soft)}
.direct-route{display:grid;grid-template-columns:minmax(0,1fr) 26px minmax(0,1fr);gap:7px;align-items:center}
.direct-party{display:grid;gap:2px;min-width:0}
.direct-party small{color:#6a8299;font-size:.68rem;font-weight:700}
.direct-party strong{color:var(--navy);font-size:.9rem;line-height:1.3;overflow-wrap:anywhere}
.direct-route-arrow{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#e9f2fa;color:#28618e;font-size:1rem;font-weight:800}
.direct-package-facts{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.direct-package-facts span{padding:4px 8px;border-radius:7px;background:#f0f5f9;color:#45637e;font-size:.71rem;font-weight:700}
.direct-box-summary{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 7px;margin-top:10px;padding:9px 11px;border:1px solid #dce9f4;border-radius:9px;background:#f7fbff;font-size:.73rem}
.direct-box-summary>span{color:#64809a;font-weight:700}
.direct-box-summary strong{color:var(--navy);font-size:.77rem}
.direct-box-summary b{margin-left:auto;color:#15517f;font-size:.82rem;white-space:nowrap}
.direct-box-summary small{width:100%;text-align:right;color:#7890a4;font-size:.65rem}
.direct-cod-summary{display:grid;gap:2px;margin-top:8px;padding:8px 10px;border-radius:8px;background:#fff7e9;color:#89510c;font-size:.72rem}
.direct-cod-summary small{font-size:.68rem}
.direct-cod-account-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;padding:10px 12px;border:1px dashed #b9d3e9;border-radius:10px;background:#f5faff}
.direct-cod-account-actions .secondary{flex:none}
.direct-cod-fee{grid-column:1/-1;display:grid;gap:9px;padding:13px;border:1px solid #d4e4f2;border-radius:11px;background:#f6faff}
.direct-cod-fee>strong{color:var(--navy);font-size:.85rem}
.direct-cod-vat-options{display:flex;flex-wrap:wrap;gap:8px}
.direct-cod-vat-options label{display:inline-flex;align-items:center;gap:6px;padding:8px 10px;border:1px solid #cbddee;border-radius:9px;background:#fff;font-size:.76rem;cursor:pointer}
.direct-cod-vat-options input{width:16px;height:16px;min-height:16px;margin:0;accent-color:var(--red)}
.direct-cod-fee-preview{display:grid;gap:5px;color:#335977;font-size:.75rem}
.direct-cod-fee-preview span{display:flex;justify-content:space-between;gap:10px}
.direct-cod-fee-preview strong{color:var(--navy);font-variant-numeric:tabular-nums}
.direct-cod-fee-preview .direct-cod-fee-total{padding-top:6px;border-top:1px solid #d4e4f2;font-weight:800}
.direct-cod-account-dialog{width:min(480px,calc(100% - 28px))}
.direct-cod-account-dialog h2{margin:0 0 3px}
.direct-cod-account-dialog form{display:grid;gap:13px;margin-top:16px}
.cod-bank-image-field{display:grid;gap:6px}
.cod-bank-image-field input{padding:9px;min-height:48px}
.cod-bank-image-field img{display:block;width:100%;max-height:220px;object-fit:contain;border:1px solid var(--line);border-radius:10px;background:#f5f8fc}
.cod-bank-image-field img[hidden]{display:none}
.cod-bank-image-link{display:inline-flex;align-items:center;text-decoration:none;border:1px solid #d3e0ed}
.direct-cod-account-dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:9px;margin-top:5px}
.direct-list-table tbody td:nth-child(4){padding:8px 0;border-top:1px solid var(--line-soft)}
.direct-list-table tbody td:nth-child(5){padding:9px 0;border-top:1px solid var(--line-soft);font-size:.85rem;font-weight:700;color:var(--navy)}
.direct-list-table tbody td:nth-child(5):before{content:"ราคาพัสดุชิ้นนี้";display:block;margin-bottom:6px;color:var(--muted);font-size:.7rem;font-weight:700}
.direct-list-table tbody td:nth-child(5) .small{font-weight:500}
.direct-price-total{display:block;color:var(--navy);font-size:1.14rem;font-variant-numeric:tabular-nums;line-height:1.25}
.direct-price-breakdown{display:grid;gap:5px;padding:11px 12px;border:1px solid #dce9f4;border-radius:10px;background:#f7fbff;font-size:.76rem;font-weight:500}
.direct-price-row,.direct-price-grand{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.direct-price-row span{color:#54708a}
.direct-price-row strong,.direct-price-grand strong{font-variant-numeric:tabular-nums;white-space:nowrap}
.direct-price-vat{color:#68819a;font-size:.69rem}
.direct-price-grand{padding-top:8px;margin-top:3px;border-top:1px solid #dce9f4;font-weight:800;color:var(--navy)}
.direct-price-grand strong{font-size:1.08rem}
.direct-price-breakdown small{color:#6d8297;font-size:.68rem;font-weight:500}
.direct-live-price{display:grid;gap:4px;padding:15px 17px;border:1px solid #bbd2e8;border-radius:12px;background:#f0f7ff;color:var(--navy);font-size:.82rem}
.direct-live-price strong{font-size:1.45rem;line-height:1.2;font-variant-numeric:tabular-nums}
.direct-live-price small{font-size:.75rem;color:var(--muted)}
.direct-list-table .direct-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;min-width:0;margin-top:3px}
.direct-list-table .direct-actions button{width:100%;margin:0;white-space:normal;line-height:1.3}
.direct-list-table .direct-actions .direct-charge-form,.direct-list-table .direct-actions .direct-charge-note{grid-column:1/-1}
.direct-repeat-toolbar{grid-column:1/-1;display:flex;align-items:center;justify-content:stretch;min-width:0}
.direct-repeat-toolbar.multiple{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.direct-repeat-toolbar label{min-width:0;font-size:.72rem}
.direct-repeat-toolbar select{min-height:36px;padding:6px 9px}
.direct-repeat-toolbar button{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;white-space:normal}
.direct-repeat-sender svg{width:15px;height:15px}
.direct-list-table tbody tr.statement-selected{border-color:#4387ba;background:#f9fcff;box-shadow:0 0 0 2px #4387ba22}
.direct-statement-select{display:inline-flex;align-items:center;gap:6px;margin:0 0 5px;color:#15517f;font-size:.72rem;font-weight:800;cursor:pointer}
.direct-statement-select input{width:17px;height:17px;min-height:17px;margin:0;padding:0;accent-color:#cf1236}
.direct-statement-select input:disabled{cursor:not-allowed}
.direct-statement-issued{display:block;margin-bottom:5px;color:#52667b;font-size:.7rem;font-weight:700}
.direct-statement-builder{display:grid;gap:10px;margin-bottom:14px;padding:12px;border:1px solid #d0e2f0;border-radius:12px;background:#f4f9fe}
.direct-statement-heading{display:grid;gap:2px}
.direct-statement-heading strong{font-size:.85rem;color:var(--navy)}
.direct-statement-heading small{font-size:.7rem;color:var(--muted)}
.direct-statement-builder>p{margin:0}
.direct-statement-lines{display:grid;gap:8px}
.direct-statement-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;align-items:center;padding:9px 10px;border:1px solid #dce8f2;border-radius:9px;background:#fff}
.direct-statement-line>span{display:grid;min-width:0}
.direct-statement-line>span strong{font-size:.76rem;overflow-wrap:anywhere}
.direct-statement-line>span small{font-size:.67rem;color:var(--muted);overflow-wrap:anywhere}
.direct-statement-line>strong{white-space:nowrap;font-size:.78rem}
.direct-statement-line label{grid-column:1/-1;font-size:.7rem}
.direct-statement-line input{min-height:38px;padding:6px 9px}
.direct-statement-adjustments{display:grid;gap:10px;padding:11px;border:1px solid #dce8f2;border-radius:10px;background:#fff}
.direct-statement-adjustment-head{display:grid;gap:2px}
.direct-statement-adjustment-head strong,.direct-statement-extra-head strong{font-size:.78rem;color:var(--navy)}
.direct-statement-adjustment-head small{font-size:.67rem;color:var(--muted)}
.direct-statement-discount-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.direct-statement-discount-fields label{min-width:0;font-size:.7rem}
.direct-statement-discount-fields input,.direct-statement-discount-fields select,.direct-statement-extra-row input,.direct-statement-extra-row select{min-width:0;min-height:38px;padding:7px 9px;font-size:.75rem}
.direct-statement-extra-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.direct-statement-extra-head button{font-size:.7rem}
.direct-statement-extra-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(75px,.45fr) minmax(85px,.5fr) 34px;gap:6px}
@media(max-width:560px){.direct-statement-extra-row{grid-template-columns:minmax(0,1fr) minmax(80px,.6fr) 34px}.direct-statement-extra-row [data-extra-label]{grid-column:1/-1}.direct-statement-extra-row [data-extra-vat]{grid-column:2}.direct-statement-extra-row [data-extra-remove]{grid-column:3;grid-row:2}}
.direct-statement-extra-row button{min-width:34px;padding:4px;font-size:1.2rem}
.direct-statement-adjustment-summary{display:grid;gap:3px;padding-top:8px;border-top:1px solid #e3edf5}
.direct-statement-adjustment-summary span{display:flex;justify-content:space-between;gap:8px;color:#55718b;font-size:.71rem}
.direct-statement-adjustment-summary strong{color:var(--navy);font-variant-numeric:tabular-nums}
.direct-statement-adjustment-summary .direct-statement-subtotal{margin-top:5px;padding-top:7px;border-top:1px solid #e3edf5;font-weight:800;color:var(--navy)}
.direct-statement-adjustment-summary .direct-statement-cod-principal{color:#946127;font-size:.67rem}
.direct-statement-adjustment-error{margin:0;color:#ad2443;font-size:.69rem}
.direct-statement-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding-top:8px;border-top:1px solid #dce8f2;font-size:.72rem}
.direct-statement-footer strong{display:block;color:var(--navy);font-size:1rem}
.direct-statement-history{display:grid;gap:8px;margin-top:17px;padding-top:15px;border-top:1px solid var(--line-soft)}
.direct-statement-history h3{margin:0 0 2px}
.direct-statement-history>p{margin:0}
.direct-statement-history-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px;border:1px solid var(--line);border-radius:9px;background:#f8fafc}
.direct-statement-history-row span{display:grid;min-width:0;overflow-wrap:anywhere}
.direct-statement-history-row strong{font-size:.72rem}
.direct-statement-history-row small{font-size:.67rem;color:var(--muted)}
.direct-statement-history-actions{display:flex;align-items:center;flex:none;gap:5px}
.direct-statement-history-row a{display:inline-flex;align-items:center;flex:none;text-decoration:none;white-space:nowrap}
.direct-statement-history-row a,.bill-card-actions a{min-height:36px;padding:7px 11px;border:1px solid #d3e0ed;border-radius:9px;font-size:.73rem;font-weight:700;text-decoration:none}
.wholesale-reference-panel{display:grid;gap:12px}
.wholesale-source{border:1px solid var(--line);border-radius:12px;padding:12px 16px;background:#f8fafc}
.wholesale-source summary{cursor:pointer;font-weight:800;color:var(--text)}
.wholesale-source p{margin:10px 0}
.wholesale-source.price-reference-card{padding:0;overflow:hidden;border-radius:15px;background:#fff;box-shadow:var(--shadow-sm)}
.price-reference-card[open]{border-color:#b8d3e9}
.price-reference-card>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 18px;list-style:none}
.price-reference-card>summary::-webkit-details-marker{display:none}
.price-reference-card>summary::marker{content:""}
.price-reference-card>summary:hover{background:#f6fafd}
.price-reference-card>summary:focus-visible{outline:3px solid #6ba7d2;outline-offset:-3px}
.price-reference-title{display:flex;align-items:center;gap:12px;min-width:0}
.price-reference-title>span:last-child{display:grid;gap:3px;min-width:0}
.price-reference-title strong{font-size:.94rem;line-height:1.25}
.price-reference-title small{color:var(--muted);font-size:.73rem;font-weight:500;line-height:1.35}
.price-reference-icon{display:grid;place-items:center;flex:none;width:39px;height:39px;border-radius:11px;background:#eaf3fb;color:#1e5c87}
.price-reference-icon svg{width:20px;height:20px}
.price-reference-count{display:inline-flex;align-items:center;gap:8px;flex:none;padding:7px 10px;border-radius:999px;background:#edf4fa;color:#315b78;font-size:.72rem;white-space:nowrap}
.price-reference-count span{display:inline-block;font-size:1rem;line-height:1;transition:transform .16s ease}
.price-reference-card[open] .price-reference-count span{transform:rotate(180deg)}
.price-reference-body{padding:17px 18px 14px;border-top:1px solid var(--line-soft)}
.price-reference-toolbar{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:12px}
.price-reference-toolbar label{width:210px;font-size:.75rem}
.price-reference-toolbar input{min-height:40px}
.price-reference-ranges{display:flex;flex-wrap:wrap;gap:6px}
.price-reference-ranges button{min-height:40px;padding:7px 11px;border-color:var(--line);background:#f3f7fa;color:var(--navy);font-size:.74rem}
.price-reference-ranges button:hover{background:#e8f2fa}
.price-reference-ranges button.active{border-color:var(--navy);background:var(--navy);color:#fff}
.price-reference-result{margin:12px 0 9px;color:var(--muted);font-size:.73rem}
.price-reference-result strong{color:var(--navy)}
.price-reference-table{max-height:410px}
.price-reference-table .list{margin:0}
.price-reference-table .list thead th{position:sticky;top:0;z-index:1;background:#edf4f9}
.price-reference-table .list tbody th{background:transparent;color:var(--navy);font-size:.79rem}
.price-reference-table .list tbody tr:nth-child(even){background:#f9fbfd}
.price-reference-table .list tbody tr[hidden]{display:none}
.price-reference-amount{color:var(--navy);font-weight:700;font-variant-numeric:tabular-nums}
.wholesale-source .price-reference-source{margin:11px 0 0;color:var(--muted);font-size:.72rem;overflow-wrap:anywhere}
.price-reference-source a{font-weight:700}
@media(max-width:650px){.price-reference-card>summary{align-items:flex-start;padding:13px}.price-reference-title small{font-size:.68rem}.price-reference-count{padding:6px 8px;font-size:.68rem}.price-reference-body{padding:14px 12px}.price-reference-toolbar label{width:100%}.price-reference-ranges{width:100%}.price-reference-ranges button{flex:1 1 auto}.price-reference-table .list{min-width:510px}}
.rate-source-branches{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.rate-source-branch{display:flex;flex-direction:column;align-items:flex-start;gap:5px;width:100%;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:#f7fafc;color:var(--text);text-align:left;cursor:pointer}
.rate-source-branch.active{border-color:#3679ac;background:#edf6fc;box-shadow:0 0 0 2px #d8ebfa}
.rate-source-branch span{font-size:.82rem;color:var(--muted)}
.rate-import-source{margin:8px 0 0;color:#255b83}
.box-reference-intro{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:16px 0 10px;padding:14px 16px;border:1px solid #c9dff1;border-radius:14px;background:#f1f8fe}
.box-reference-intro p{margin:5px 0 0;color:var(--muted);font-size:.88rem}
.box-reference-scroll{max-height:310px;overflow:auto;margin-bottom:20px;border:1px solid var(--line);border-radius:12px}
.box-reference-scroll table{margin:0}
.box-reference-scroll thead{position:sticky;top:0;z-index:1;background:#f8fafc}
.box-reference-pending{background:#fbfdff}
.box-size-inputs{display:grid;grid-template-columns:repeat(3,minmax(64px,1fr));gap:6px;margin-bottom:8px}
.box-size-inputs input{min-width:0;width:100%}
.box-legacy-separator td{background:#edf3f8;color:#365a77;font-weight:800}
.bill-card-actions a{display:inline-flex;align-items:center;justify-content:center}
.table-wrap{max-width:100%;overflow:auto;border:1px solid var(--line-soft);border-radius:11px}
.table-wrap .list{min-width:640px}
.list-search{display:block;max-width:420px;margin:0 0 18px}
.bill-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) auto auto;gap:12px;align-items:end;margin-bottom:18px}
.bill-filter-grid button{min-height:44px;white-space:nowrap}
.bill-filter-panel .list-search{max-width:520px;margin-bottom:13px}
.bill-filter-tabs{display:flex;flex-wrap:wrap;gap:8px}
.bill-filter-tabs button{width:auto;min-height:37px;padding:8px 14px;border:1px solid var(--line);border-radius:9px;background:#f5f8fb;color:var(--navy);font-size:.78rem}
.bill-filter-tabs button.active{background:var(--navy);border-color:var(--navy);color:#fff}
.bill-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}
.bill-summary>div{padding:17px 19px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:var(--shadow-sm)}
.bill-summary>div:first-child{background:var(--navy);border-color:var(--navy);color:#fff}
.bill-summary span{display:block;font-size:.72rem;color:var(--muted)}
.bill-summary>div:first-child span,.bill-summary>div:first-child strong{color:#fff}
.bill-summary strong{display:block;margin-top:5px;color:var(--navy);font-size:1.35rem;font-variant-numeric:tabular-nums}
.bill-card-list{display:grid;gap:11px}
.bill-card{display:flex;justify-content:space-between;gap:18px;padding:18px;border:1px solid var(--line);border-radius:13px;background:#f8fafc}
.bill-card-main{min-width:0;flex:1}
.bill-card-top{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.bill-card-top strong{font-size:1rem;color:var(--navy);overflow-wrap:anywhere}
.bill-card-sender{margin:7px 0 4px;font-weight:750;color:var(--navy)}
.bill-card-meta,.bill-card-breakdown{display:flex;flex-wrap:wrap;gap:5px 13px;color:var(--muted);font-size:.73rem}
.bill-card-breakdown{margin-top:12px;padding-top:11px;border-top:1px solid var(--line-soft);color:#35546e}
.bill-card-side{display:flex;flex-direction:column;align-items:flex-end;gap:3px;min-width:205px}
.bill-card-side small{color:var(--muted)}
.bill-card-side>strong{color:var(--navy);font-size:1.35rem;font-variant-numeric:tabular-nums}
.bill-card-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:7px;margin-top:auto;padding-top:12px}
.bill-card-actions button{width:auto;min-height:38px;padding:8px 11px;font-size:.73rem}
.direct-cash-form{width:min(100%,240px);margin-top:12px;text-align:left}
.direct-cash-form button{width:100%}
@media(max-width:760px){.bill-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bill-card{display:block}.bill-card-side{align-items:flex-start;min-width:0;margin-top:12px}.bill-card-actions{justify-content:flex-start}}
@media(max-width:480px){.bill-summary{grid-template-columns:1fr}.bill-summary>div{padding:13px}.bill-filter-grid{grid-template-columns:1fr 1fr}.bill-filter-grid label{grid-column:1/-1}}
.parcel-filters{margin-bottom:18px}
.box-price-form{display:grid;grid-template-columns:repeat(2,minmax(90px,1fr));gap:7px;min-width:220px}
.box-price-form input{min-width:0;width:100%;height:36px;padding:7px 9px}
.box-price-form button{min-height:34px}
.box-create-panel{margin-top:18px;overflow:hidden;border:1px solid #b9d6eb;border-radius:15px;background:#f4f9fd}
.box-create-panel[open]{background:#fff;box-shadow:var(--shadow-sm)}
.box-create-panel>summary{display:flex;align-items:center;gap:13px;padding:16px 18px;list-style:none;cursor:pointer}
.box-create-panel>summary::-webkit-details-marker{display:none}
.box-create-panel>summary::marker{content:""}
.box-create-panel>summary:hover{background:#eaf4fc}
.box-create-panel>summary:focus-visible{outline:3px solid #6ba7d2;outline-offset:-3px}
.box-create-summary-icon{display:grid;place-items:center;flex:none;width:43px;height:43px;border-radius:12px;background:var(--navy);color:#fff}
.box-create-summary-icon svg{width:23px;height:23px}
.box-create-summary-copy{display:grid;gap:2px;min-width:0}
.box-create-summary-copy strong{color:var(--navy);font-size:1rem;line-height:1.25}
.box-create-summary-copy small{color:var(--muted);font-size:.75rem;line-height:1.35}
.box-create-summary-action{display:inline-flex;align-items:center;gap:9px;margin-left:auto;padding:9px 12px;border-radius:9px;background:#dbeaf6;color:var(--navy);font-size:.75rem;font-weight:800;white-space:nowrap}
.box-create-summary-action .when-open{display:none}
.box-create-panel[open] .when-open{display:inline}
.box-create-panel[open] .when-closed{display:none}
.box-create-chevron{display:inline-block;font-size:1rem;line-height:1;transition:transform .16s ease}
.box-create-panel[open] .box-create-chevron{transform:rotate(180deg)}
.box-create-form{padding:18px;border-top:1px solid #d7e7f3}
.box-create-form>.primary{justify-self:start;min-width:210px}
@media(max-width:600px){.box-create-panel>summary{padding:13px;gap:10px}.box-create-summary-icon{width:37px;height:37px}.box-create-summary-copy small{display:none}.box-create-summary-action{padding:7px 9px}.box-create-form{padding:14px}.box-create-form>.grid.four,.box-create-form>.grid.two{grid-template-columns:1fr 1fr}.box-create-form>.primary{width:100%}}
@media(max-width:420px){.box-create-form>.grid.four,.box-create-form>.grid.two{grid-template-columns:1fr}}
.status{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:99px;background:#eaf1f8;color:#315978;font-size:.69rem;font-weight:800;white-space:nowrap}
.status.good{background:#e0f3e9;color:var(--success)}
.status.warn{background:#fff0da;color:var(--warning)}
.tracking-filter-panel{margin-bottom:18px}
.tracking-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;align-items:end}
.tracking-filter-grid .tracking-search{grid-column:span 3}
.tracking-filter-grid button{min-height:44px}
.tracking-summary{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:15px 18px;margin-bottom:14px;border:1px solid var(--line);border-radius:14px;background:#eaf2fa;color:var(--navy)}
.tracking-summary strong{font-size:1.8rem;line-height:1}
.tracking-summary span{font-size:.82rem;font-weight:700}
.tracking-summary button:first-of-type{margin-left:auto}
.tracking-carrier-panel{margin-bottom:14px}
.tracking-carrier-panel .panel-head{align-items:center;flex-wrap:wrap}
.tracking-count{display:inline-flex;align-items:center;padding:5px 10px;margin-left:7px;border-radius:99px;background:#eaf1f8;color:#315978;font-size:.74rem;vertical-align:middle}
.tracking-carrier-panel .list{min-width:790px}
.tracking-carrier-panel td:last-child{min-width:125px}
.tracking-carrier-panel td:last-child button{margin:2px 4px 2px 0}
.tracking-number{border:0;background:none;padding:0;color:var(--navy);font-weight:800;text-align:left;cursor:pointer}
.tracking-number:hover{text-decoration:underline}
.tracking-carrier-panel td small{display:block;color:var(--muted);font-size:.72rem;margin-top:4px}
.tracking-events{padding:15px;margin-top:14px;background:#f4f8fc;border-radius:10px;font-size:.8rem}
.tracking-timeline-day{margin-top:16px;border-top:1px solid #dce7f1;padding-top:10px}
.tracking-timeline-day h3{font-size:.86rem;margin:0 0 10px;color:var(--navy,#102943)}
.tracking-timeline-entry{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;padding:8px 0;border-bottom:1px solid #e4edf5}
.tracking-timeline-entry time{font-weight:700;color:var(--navy,#102943)}
.tracking-timeline-entry p{margin:5px 0 0;line-height:1.5;overflow-wrap:anywhere}
.negative-amount{color:#bf1236}
.credit-balance{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px 0}
.credit-balance strong{font-size:1.25rem;color:var(--navy)}
.credit-balance strong.negative-amount{color:#bf1236}
.credit-history{margin-top:20px}
.topup-caution{padding:11px 13px;margin:12px 0!important;border:1px solid #f3d5a5;border-radius:10px;background:#fff8eb}
.topup-history,.topup-alert-list{display:grid;gap:9px;max-height:55vh;overflow:auto;margin-top:17px}
.topup-page-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px;margin-top:16px}
.topup-page-list .topup-request-row{background:#fff}
.topup-request-row a{display:inline-flex;margin-top:9px}
#branch-credit-slip-existing{display:block;margin-top:8px;font-size:.8rem}
#branch-credit-slip-existing[hidden]{display:none}
.topup-history h3{margin:0 0 2px;font-size:.92rem}
.topup-request-row{padding:13px;border:1px solid var(--line);border-radius:12px;background:#f7fafd}
.topup-request-row strong{display:block;font-size:1.12rem;color:var(--navy)}
.topup-request-row p{margin:5px 0 0!important;overflow-wrap:anywhere;font-size:.8rem}
.topup-request-row small{display:block;margin-top:6px;color:var(--muted)}
.topup-request-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:11px}
.topup-alert-dialog{width:min(570px,calc(100% - 28px))}
.line{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid var(--line-soft)}
.line:last-child{border:0}
.notice{padding:14px 16px;background:#fff6e7;border:1px solid #efd5a6;color:#684916;border-radius:11px;margin-bottom:17px;font-size:.82rem;line-height:1.55}
.notice.error{background:#fff0f2;border-color:#eec9d0;color:#9d1e34}
.empty,.empty-state{padding:28px 18px;text-align:center;color:var(--muted)}
.empty-state{background:#f8fafc;border:1px dashed #c5d4e2;border-radius:12px}
.empty-state strong{display:block;color:var(--navy);margin-bottom:4px}
.empty-state p{margin:0;font-size:.79rem}
.actions{margin-top:15px}
.customer-guide .actions{display:flex;flex-wrap:wrap;gap:10px}
.printed-label{background:#e2f3e9!important;border-color:#9fd5b5!important;color:#12613c!important}
.intake-intro{background:linear-gradient(125deg,#f5f8fc,#fff)}
.intake-intro h2{margin:0 0 15px}
.intake-intro>p{margin:15px 0 0}
.intake-steps{display:flex;flex-wrap:wrap;gap:8px}
.intake-steps span{display:inline-flex;align-items:center;gap:7px;padding:9px 11px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:.8rem}
.intake-steps b{display:grid;place-items:center;width:23px;height:23px;border-radius:7px;background:#e7eff8;color:var(--navy)}
.intake-options{align-items:stretch}
.intake-option{display:flex;flex-direction:column;gap:12px;margin:0;min-height:315px}
.intake-option h2,.intake-option p{margin:0}
.intake-option ul{margin:0;padding-left:20px;color:var(--muted);font-size:.82rem;line-height:1.7}
.intake-option button{align-self:flex-start;margin-top:auto}
.intake-tag{align-self:flex-start;padding:5px 9px;border-radius:999px;font-size:.67rem;font-weight:800;letter-spacing:.07em}
.intake-tag.live{color:#075781;background:#e4f3fb}
.intake-tag.demo{color:#87520b;background:#fff1d8}
#toast{position:fixed;right:20px;bottom:20px;z-index:30;display:none;max-width:min(420px,calc(100% - 40px));padding:13px 18px;background:var(--navy);color:#fff;border-radius:11px;box-shadow:var(--shadow-md);font-size:.82rem}
#toast.show{display:block}

/* HQ onboarding */
.setup-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}
.setup-progress>div{display:flex;align-items:center;gap:12px;min-width:0;padding:14px 16px;background:#eaf0f6;border:1px solid #dce5ee;border-radius:13px;color:#5c7083}
.setup-progress>div.done{background:#eaf4ef;border-color:#cfe7da;color:#135d3d}
.setup-progress>div.current{background:#fef3e9;border-color:#f2d6ba;color:#875018}
.setup-progress b{display:grid;place-items:center;flex:none;width:35px;height:35px;border-radius:10px;background:#fff;font-size:.75rem;font-variant-numeric:tabular-nums}
.setup-progress span{display:grid;min-width:0;line-height:1.28}
.setup-progress strong{font-size:.83rem;color:var(--text)}
.setup-progress small{font-size:.69rem;margin-top:3px;color:inherit}
.overview-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:18px;background:var(--surface);border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow-sm)}
.overview-strip>div{padding:17px 21px;display:flex;justify-content:space-between;align-items:center;gap:9px;border-right:1px solid var(--line-soft)}
.overview-strip>div:last-child{border-right:0}
.overview-strip span{font-size:.75rem;color:var(--muted)}
.overview-strip strong{font-size:1.4rem;color:var(--navy);font-variant-numeric:tabular-nums}
.section-heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:17px}
.section-heading h2{margin:0 0 3px}
.section-heading p{font-size:.77rem;color:var(--muted);margin:0}
.step-pill{display:grid;place-items:center;flex:none;width:37px;height:37px;border-radius:11px;background:#e9f0f8;color:#17466f;font-size:.76rem;font-weight:800}
.setup-panel form>.primary{justify-self:start;min-width:170px;margin-top:5px}
.generated-shop-id{display:grid;gap:6px;padding:15px 17px;border:1px solid #bfd5ea;border-radius:12px;background:#f1f7fd;color:#31495f;font-size:.82rem}
.generated-shop-id span{font-weight:800}
.generated-shop-id strong{color:var(--navy);font-size:1rem}
.generated-shop-id small{color:var(--muted);line-height:1.45}
.count-chip{display:inline-flex;white-space:nowrap;padding:5px 9px;border-radius:99px;background:#edf3f8;color:#345a79;font-size:.69rem;font-weight:800}
.modal{width:min(460px,calc(100% - 28px));border:1px solid var(--line);border-radius:18px;padding:23px;box-shadow:0 24px 80px rgba(11,30,53,.23)}
.menu-modal{width:min(620px,calc(100% - 28px));max-height:85vh;overflow:auto}
.modal::backdrop{background:rgba(9,28,47,.62)}
.modal .panel-head{margin-bottom:7px}
.modal h2{margin:4px 0}
.modal p{margin:0}

@media(max-width:1050px){.rate-carrier-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.rate-entry-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1050px){.credit-branch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.rate-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rate-entry-head,.rate-editor-footer{align-items:flex-start;flex-direction:column}.rate-editor-footer button{width:100%}}
@media(max-width:650px){.credit-branch-grid,.credit-summary-grid{grid-template-columns:1fr 1fr}.credit-action-row{align-items:stretch;flex-direction:column}.credit-action-row button{width:100%}.credit-topup-callout{align-items:flex-start;flex-direction:column}}
@media(max-width:420px){.rate-carrier-tab{min-height:60px;padding:10px}.rate-carrier-tab strong{font-size:.78rem}.rate-editor-tabs button{flex:1}.rate-entry-cell{padding:8px}}
@media(max-width:420px){.pricing-tabs button{min-height:58px;padding:10px 12px}.pricing-tabs strong{font-size:.84rem}.pricing-tabs small{font-size:.66rem}}
@media(max-width:420px){.credit-branch-grid{grid-template-columns:1fr}.credit-period-form label{flex:1;min-width:130px}}
@media(max-width:1180px){
  .app-shell{grid-template-columns:218px minmax(0,1fr)}
  .topbar{padding-inline:20px;flex-wrap:wrap}
  .top-controls{gap:8px;min-width:0;flex-wrap:wrap;justify-content:flex-end}
  .top-controls select{width:180px;min-width:160px;max-width:180px}
  .top-controls .actor-badge{max-width:100px}
  .shipment-layout{grid-template-columns:1fr}.summary{position:static}
  .direct-layout .grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  .integration-grid{grid-template-columns:1fr}
  .app-shell{display:block}
  .sidebar{display:none}
  .mobile-nav{position:fixed;z-index:20;inset:auto 0 0;display:grid;gap:3px;min-height:69px;padding:6px 7px calc(6px + env(safe-area-inset-bottom));background:rgba(255,255,255,.98);border-top:1px solid var(--line);box-shadow:0 -8px 28px rgba(16,41,68,.1)}
  .mobile-nav button{display:grid;align-content:center;justify-items:center;gap:2px;min-width:0;min-height:54px;padding:4px 1px;background:transparent;color:#52667b;border-radius:11px;font-size:.75rem;font-weight:700;white-space:nowrap}
  .mobile-nav button svg{width:21px;height:21px}
  .mobile-nav button.active{background:#fff0f3;color:var(--red);box-shadow:inset 0 2px 0 var(--red)}
  .mobile-menu[open]{position:fixed;inset:auto 0 0;width:100%;max-width:none;max-height:min(78dvh,680px);margin:0;padding:19px 16px calc(22px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0;overflow-y:auto}
  .content{padding-bottom:calc(96px + env(safe-area-inset-bottom))}
  .tracking-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tracking-filter-grid .tracking-search{grid-column:span 2}
  .topbar{align-items:flex-start;flex-wrap:wrap}
  .direct-layout{grid-template-columns:1fr}
  .login-shell{grid-template-columns:1fr}
  .login-intro{min-height:245px;padding:28px 32px}
  .login-intro h2{margin:12px 0 7px;font-size:1.8rem}.login-intro p{margin:0}
  .intro-steps{margin-top:15px}.intro-foot{display:none}
  .login-card{margin:24px 0;width:min(550px,calc(100% - 32px));max-height:none}
  .grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .tracking-filter-grid{grid-template-columns:1fr}
  .tracking-filter-grid .tracking-search{grid-column:span 1}
  .tracking-summary button:first-of-type{margin-left:0}
  .integration-account-top{flex-wrap:wrap}
  .integration-access-form .menu-grid{grid-template-columns:1fr}
  .overview-hero{grid-template-columns:minmax(0,1fr) 110px;padding:23px}
  .overview-hero-number strong{font-size:3.6rem}
  .carrier-radio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .topbar{position:static;padding:13px 16px;gap:12px}
  .top-controls{width:100%;gap:7px;flex-wrap:wrap}
  .top-controls label{width:100%}.top-controls select{flex:1;min-width:0;max-width:none;min-height:44px}
  .actor-badge{max-width:145px}.top-controls .ghost{margin-left:auto;min-height:44px}
  .content{padding:18px 14px calc(96px + env(safe-area-inset-bottom))}
  .page-head{display:block;margin-bottom:19px}.page-head .primary{margin-top:13px}
  .grid.two,.grid.three{grid-template-columns:1fr}
  .panel{padding:17px}
  .setup-progress{gap:7px}.setup-progress>div{padding:10px 8px;gap:7px;display:block}.setup-progress b{width:29px;height:29px;margin-bottom:6px}.setup-progress strong{font-size:.72rem}.setup-progress small{font-size:.62rem}
  .overview-strip>div{padding:13px 9px;display:block}.overview-strip span{display:block;font-size:.67rem}.overview-strip strong{font-size:1.2rem}
  .line{align-items:flex-start}.line button{flex:none}
}
@media(max-width:420px){
  .overview-hero{grid-template-columns:1fr;gap:19px}
  .overview-hero-number{align-items:flex-start;padding:15px 0 0;border-left:0;border-top:1px solid rgba(228,239,250,.2);text-align:left}
  .overview-hero-number strong{font-size:3rem}
  .overview-metrics{grid-template-columns:1fr;gap:9px}
  .overview-metric{min-height:104px;padding:15px}
  .overview-recent{padding:18px}
  .overview-recent .panel-head{align-items:flex-start}
  .box-choice-grid{grid-template-columns:1fr}
  .login-intro{min-height:180px;padding:23px}.login-intro h2{font-size:1.5rem}.login-intro p,.intro-steps{display:none}
  .login-card{margin:14px 0;padding:22px;width:calc(100% - 24px)}
  .grid.four{grid-template-columns:1fr}
  .top-controls .actor-badge{display:none}
  .stats{gap:8px}.stat{padding:13px}.stat strong{font-size:1.35rem}
  .parcel-title{align-items:flex-start;flex-direction:column}
  .toolbar input{min-width:0;flex-basis:100%}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}button{transition:none}}
