/* D39-R44: scope strictly to unified WHT page. Approved reference: white/light-blue WHT paid dashboard with right drawer. */
.w44-shell{--w44-blue:#0669d9;--w44-ink:#163453;--w44-muted:#70859c;--w44-border:#dfe8f1;--w44-canvas:#f3f8fc;display:grid;grid-template-columns:172px minmax(0,1fr) 380px;gap:0;min-height:calc(100vh - 110px);font:12px/1.48 'Noto Sans Thai',Tahoma,'Segoe UI',Arial,sans-serif;color:var(--w44-ink);background:var(--w44-canvas);align-items:stretch}
.w44-shell *{box-sizing:border-box}.w44-shell button,.w44-shell input,.w44-shell select{font:inherit}.w44-shell button{cursor:pointer}.w44-shell button:disabled,.w44-shell input:disabled{opacity:.46;cursor:not-allowed}.w44-shell .w44-ico{vertical-align:middle;flex:none}.w44-side{background:#fff;border-right:1px solid var(--w44-border);padding:12px 9px 18px;display:flex;flex-direction:column;gap:3px;min-width:0}.w44-brand{height:63px;background:#113c51;color:#fff;margin:-12px -9px 12px;padding:13px 15px;display:grid;align-content:center}.w44-brand b{font-size:19px;letter-spacing:.3px}.w44-brand small{font-size:10px;opacity:.75;padding-left:29px}.w44-side h3{font-size:12px;margin:9px 9px 11px;color:#35546d}.w44-side button,.w44-side-label{border:0;background:transparent;text-align:left;color:#24445e;padding:11px 9px;border-radius:7px;font-weight:600;min-height:38px;display:block;width:100%;line-height:1.2}.w44-side button:hover{background:#f0f7fb}.w44-side .w44-side-label{background:#eff8f3;color:#14755e;display:flex;justify-content:space-between}.w44-side button.sub{padding:11px 10px 11px 22px;font-size:11px}.w44-side button.active{color:#0971d5;background:#e8f3ff;font-weight:800}
.w44-content{padding:20px 18px 25px;min-width:0}.w44-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 16px}.w44-head h1{font-size:22px;letter-spacing:-.3px;color:#0f3057;margin:2px 0 3px;line-height:1.24;font-weight:800}.w44-head p{margin:0;color:var(--w44-muted);font-size:11px}.w44-head small{font-size:11px;color:#7192ac}.w44-top-actions,.w44-head-tools,.w44-tools{display:flex;align-items:center;gap:7px}.w44-shell button{border:1px solid #d0dfee;background:white;color:#274e74;border-radius:6px;padding:8px 11px;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:5px}.w44-shell button:hover{border-color:#83b4e2;background:#f2f9ff}.w44-shell button.primary{color:#fff;border-color:#086bdb;background:#0872e6;font-weight:700}.w44-shell button.primary:hover{background:#005fc3}.w44-tabs{display:flex;gap:0;background:white;border:1px solid var(--w44-border);border-radius:7px;overflow:hidden;width:min(630px,100%);margin-bottom:13px}.w44-tabs button{flex:1;border:0;border-radius:0;border-right:1px solid #e4ebf3;min-height:44px;font-weight:700;color:#526886}.w44-tabs button:last-child{border-right:0}.w44-tabs button.active{background:#f4f9ff;color:#086de0;border-bottom:3px solid #086de0;padding-bottom:5px}
.w44-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:13px}.w44-card{background:#fff;border:1px solid var(--w44-border);border-radius:10px;padding:15px 12px;min-height:92px;display:flex;gap:10px;align-items:flex-start;box-shadow:0 2px 10px #1a436008;overflow:hidden}.w44-metric-ico{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:9px;background:#edf5ff;color:#0571df}.w44-card.orange .w44-metric-ico{background:#fff4e0;color:#e08d0b}.w44-card.green .w44-metric-ico{background:#e9f8f0;color:#10966a}.w44-card.red .w44-metric-ico{background:#feeff0;color:#e34c59}.w44-card b{display:block;font-size:11px}.w44-card strong{font-size:22px;color:#076de3;line-height:1.4;display:block;font-variant-numeric:tabular-nums}.w44-card.orange strong{color:#d4870c}.w44-card.green strong{color:#099567}.w44-card.red strong{color:#dc3d53}.w44-card small{font-size:10px;color:var(--w44-muted);display:block;line-height:1.35}
.w44-filter{background:white;border:1px solid var(--w44-border);border-radius:8px;padding:11px 12px;display:flex;gap:7px;align-items:end;flex-wrap:wrap;margin-bottom:13px}.w44-filter label{display:grid;gap:4px;color:#64819b;font-size:10px;font-weight:700}.w44-filter select,.w44-filter input{border:1px solid #d7e3ef;border-radius:5px;padding:6px 8px;background:white;color:#254465;min-width:0;height:35px;font-size:11px;max-width:100%}.w44-filter label.w44-grow{flex:1;min-width:140px}.w44-filter label.w44-grow input{width:100%}.w44-filter label:has([data-w44-status]){min-width:105px}.w44-filter label:has([data-w44-period]){min-width:128px}.w44-filter label:has([data-w44-form]){min-width:126px}.w44-filter input[type=date]{max-width:124px}.w44-filter>button{height:35px}
.w44-panel{background:white;border:1px solid var(--w44-border);box-shadow:0 1px 8px #17365408;border-radius:9px;overflow:hidden}.w44-panelhead{padding:15px 13px 11px;display:flex;justify-content:space-between;gap:10px;align-items:center}.w44-panelhead h2,.w44-lower h2{display:flex;align-items:center;gap:7px;font-size:15px;margin:0;color:#17365a}.w44-panelhead h2 .w44-ico{color:#ef991f}.w44-panelhead p{font-size:10px;color:var(--w44-muted);margin:3px 0 0}.w44-head-tools button{font-size:10px;padding:7px}.w44-batch{display:flex;gap:12px;align-items:center;margin:0 11px 9px;padding:8px 10px;background:#eaf4ff;color:#1b619f;border:1px solid #d9eaff;border-radius:6px;font-size:11px;flex-wrap:wrap}.w44-batch label{display:inline-flex;align-items:center;gap:7px}.w44-batch input,.w44-table input{width:15px;height:15px;accent-color:#1177e8;vertical-align:middle}.w44-batch button{margin-left:auto;font-size:11px}.w44-scroll{overflow-x:auto;max-width:100%}.w44-table{border-collapse:collapse;width:100%;min-width:770px;text-align:left;white-space:nowrap;font-size:11px;line-height:1.4}.w44-table th{background:#eef4fa;font-size:10px;color:#526d8b;font-weight:700;padding:9px 8px;border-bottom:1px solid #dce6f0}.w44-table td{padding:8px 8px;border-bottom:1px solid #e8eff6;color:#304d6a}.w44-table tr:hover td,.w44-table tr.is-active td{background:#eef7ff}.w44-table .num{text-align:right;font-variant-numeric:tabular-nums}.w44-shell button.w44-link{padding:0;border:0;background:none;color:#006de2;font-weight:700;font-size:11px}.w44-tools{gap:3px}.w44-tools button{border-color:#d8e7f8;color:#1473d2;padding:4px 5px;min-width:26px;height:26px}.w44-tools .w44-ico{width:14px;height:14px}.w44-empty{text-align:center;padding:35px!important;color:#8a98aa!important;font-size:12px}.w44-pill{display:inline-flex;border-radius:40px;padding:4px 8px;font-size:10px;white-space:nowrap;font-weight:700}.w44-pill.ready{color:#9e620d;background:#fff1d4}.w44-pill.pending{color:#a56a17;background:#fff1e0}.w44-pill.issued{color:#108360;background:#dff7e9}.w44-pill.cancelled{color:#b52d44;background:#ffe4e8}.w44-pill.draft{color:#536d82;background:#eef2f6}.w44-pagefoot{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:10px 13px;font-size:10px;color:var(--w44-muted)}.w44-pagefoot>div{display:flex;gap:5px;align-items:center}.w44-pagefoot select{border:1px solid #dce7f0;border-radius:5px;background:white;padding:5px;max-width:60px}.w44-pagefoot button{padding:5px 8px;min-height:27px}.w44-pagefoot b{color:#0b68d2}
.w44-lower{display:grid;grid-template-columns:1.35fr 1fr;gap:9px;margin-top:12px}.w44-lower header{padding:11px 12px;display:flex;justify-content:space-between;align-items:center}.w44-lower h2{font-size:12px}.w44-lower .w44-mini-stats{padding:0 10px 11px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.w44-mini-stats>div{border:1px solid #e4ecf4;border-radius:6px;padding:9px;display:grid;gap:4px}.w44-mini-stats span{font-size:9px;color:#738aa0}.w44-mini-stats b{font-size:17px;color:#0a6aa5}.w44-mini-stats small,.w44-lower small{font-size:9px;color:#8796a7}.w44-report-summary{padding:0 10px 9px;font-size:10px}.w44-report-summary div{display:grid;grid-template-columns:1.3fr .7fr 1fr 1fr;gap:5px;border-bottom:1px solid #e9eff6;padding:8px 4px}.w44-report-summary div:first-child{background:#f1f6fb}.w44-report-summary strong{text-align:right}.w44-report-summary+small{display:block;padding:0 11px 9px}.w44-disclaimer{display:flex;align-items:center;gap:5px;font-size:10px;color:#6c8298}
.w44-detail{background:white;border-left:1px solid #d8e4ee;display:flex;flex-direction:column;min-height:calc(100vh - 110px);max-height:calc(100vh - 110px);position:sticky;top:0;overflow:hidden}.w44-detail>header{display:flex;align-items:center;justify-content:space-between;padding:11px 15px;border-bottom:1px solid #e0e9f1;color:#234668;font-weight:800;font-size:13px;min-height:47px}.w44-detail>header button{border:0;background:#f3f7fb;padding:6px}.w44-detail-name{padding:16px 14px 10px;border-bottom:1px solid #e9eff4}.w44-detail-name h2{font-size:22px;line-height:1.3;margin:0 0 6px;color:#10355f;letter-spacing:-.3px}.w44-drawer-scroll{flex:1;overflow-y:auto}.w44-detail .w44-tabs.mini{border:0;border-bottom:1px solid #e5eef6;width:100%;border-radius:0;padding:0 9px;margin:0}.w44-tabs.mini button{font-size:10px;min-height:39px;padding:7px 2px;white-space:normal}.w44-drawer-content{padding:13px 14px}.w44-kv{display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px;font-size:11px;border-bottom:1px solid #edf2f7;padding:10px 0}.w44-kv span{color:#72859c}.w44-kv b{font-size:11px;color:#27466a;overflow-wrap:anywhere}.w44-taxbox{background:#f6faff;margin:10px 13px 20px;border:1px solid #e3edf6;border-radius:7px;padding:12px}.w44-taxbox h3{margin:0 0 10px;font-size:12px;color:#194c8d}.w44-taxbox>div{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #e5edf6;padding:9px 0;color:#55708b;font-size:11px}.w44-taxbox>div b{color:#214764;white-space:nowrap}.w44-taxbox>div.total{border-radius:5px;color:#08744d;background:#e0f7e9;padding:12px 8px;font-weight:800}.w44-taxbox>div.total b{color:#08744d}.w44-line{border-bottom:1px solid #ecf1f7;padding:11px 4px;display:grid;gap:5px;font-size:11px}.w44-line span{color:#6f839a}.w44-drawer-actions{border-top:1px solid #dfebf5;padding:11px;display:grid;grid-template-columns:1fr 1fr;gap:7px}.w44-drawer-actions button{font-size:11px;white-space:normal;min-height:36px}.w44-drawer-actions button.primary{grid-column:span 2}.w44-blank{padding:55px 16px;text-align:center;color:#738ca3}.w44-blank .w44-ico{height:32px;width:32px;color:#c0d1df}.w44-alert{border-radius:6px;background:#eef8ff;border:1px solid #badcff;color:#205b8c;padding:10px;margin-bottom:10px;font-size:11px}.w44-alert.error{background:#fff2f3;border-color:#f0b7bb;color:#a52e3b}
@media(max-width:1480px){.w44-shell{grid-template-columns:138px minmax(0,1fr) 340px}.w44-content{padding:15px 11px}.w44-side button.sub{padding-left:8px}.w44-stats{gap:7px}.w44-card{padding:10px 8px}.w44-head h1{font-size:19px}.w44-head-tools button{padding:6px 5px}.w44-lower .w44-mini-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1180px){.w44-shell{grid-template-columns:140px minmax(0,1fr)}.w44-detail{position:fixed;right:0;top:68px;bottom:0;width:min(390px,95vw);min-height:0;max-height:none;z-index:60;box-shadow:-12px 0 30px #18345129}.w44-content{padding:15px 12px}.w44-lower{grid-template-columns:1fr}.w44-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.w44-shell{display:block}.w44-side{display:none}.w44-head{display:block}.w44-top-actions{margin-top:10px}.w44-content{padding:12px 8px}.w44-head h1{font-size:18px}.w44-stats{gap:7px}.w44-panelhead{display:block}.w44-head-tools{margin-top:8px;flex-wrap:wrap}.w44-lower .w44-mini-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.w44-filter{display:grid;grid-template-columns:1fr 1fr}.w44-filter label.w44-grow{grid-column:1/-1}.w44-detail{top:0;width:100vw}.w44-batch button{width:100%;margin-left:0}}
