
/* D39-R46 | Compact branch expense dashboard, scoped presentation only */
.ws45-branch-host{display:block;width:100%;min-width:0;background:#f4f8fc}
.ws45-branch-host .ws45-slot{width:100%;min-width:0}
.exp-r46-shell{background:#f4f8fc;min-height:calc(100vh - 100px);width:100%;color:#193555;font-family:'Noto Sans Thai',Tahoma,'Segoe UI',Arial,sans-serif}
.exp-r46-shell .exp-r46-main{max-width:none!important;width:100%;padding:16px 18px 26px!important;box-sizing:border-box}
.exp-r46-shell .exp-r46-top{margin:0 0 18px;align-items:flex-start}
.exp-r46-shell .exp-r46-top h1{font-size:23px;line-height:1.28;color:#142f55;font-weight:850;margin:4px 0}
.exp-r46-shell .exp-r46-top p{font-size:11px;margin:1px 0 0;color:#647e99}
.exp-r46-shell .exp-m26-top-actions{display:flex;gap:10px}
.exp-r46-shell .exp-m26-top-actions button{min-height:41px;border-radius:8px;padding:10px 15px;font-size:12px;font-weight:750;display:inline-flex;align-items:center;gap:9px;white-space:nowrap}
.exp-r46-shell .exp-m26-top-actions .exp-m26-primary{background:#0870ed;color:white;box-shadow:0 5px 14px #2071de1c}
.exp-r46-shell .exp-m26-filter{display:grid;grid-template-columns:minmax(135px,1.15fr) minmax(115px,.82fr) minmax(140px,.92fr) minmax(235px,2.3fr) minmax(130px,1fr) minmax(130px,1fr) auto;gap:10px;padding:14px 15px 16px;margin:0 0 16px;border-radius:11px;background:#fff;border:1px solid #dde7f2;box-shadow:0 3px 13px #1a53790a;align-items:end}
.exp-r46-shell .exp-m26-filter label{min-width:0;display:flex;flex-direction:column;gap:8px;font-size:11px;font-weight:700;color:#2d4665;margin:0}
.exp-r46-shell .exp-m26-filter input,.exp-r46-shell .exp-m26-filter select{width:100%;min-width:0;max-width:100%;height:41px;background:#fff;color:#19395b;border:1px solid #cfdeeb;border-radius:7px;padding:7px 11px;box-sizing:border-box;font-size:12px}
.exp-r46-shell .exp-m26-filter .exp-m26-search{grid-column:auto}
.exp-r46-shell .exp-m26-filter .exp-m26-primary{height:41px;min-width:88px;border-radius:8px;display:flex;align-items:center;justify-content:center;gap:6px;background:#0b71eb;color:white;border:0}
.exp-r46-shell .exp-r46-list{background:white;border:1px solid #dce7f2;box-shadow:0 4px 18px #17457b0b;border-radius:11px;overflow:hidden;margin:0}
.exp-r46-shell .exp-r46-list>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;min-height:64px;border-bottom:1px solid #e7eef5}
.exp-r46-shell .exp-r46-list>header h2{font-size:15px;line-height:1.3;margin:0;display:flex;gap:10px;align-items:center;color:#17345b;font-weight:800}
.exp-r46-shell .exp-r46-subtitle{font-size:12px;color:#617996;font-weight:500}
.exp-r46-shell .exp-m26-headerbtn{display:flex;gap:8px;flex-wrap:wrap}
.exp-r46-shell .exp-r46-list .exp-m26-outline{display:flex;gap:7px;align-items:center;justify-content:center;background:#fff;color:#214364;border:1px solid #d4e1ed;padding:8px 12px;border-radius:8px;min-height:34px;font-weight:700;font-size:12px}
.exp-r46-shell .exp-r46-list .exp-m26-outline:hover{background:#f0f7ff;color:#086dde}
.exp-r46-shell .exp-r46-list .exp-m26-scroll{overflow-x:auto;max-width:100%}
.exp-r46-shell .exp-r46-list table{min-width:1160px;width:100%;border-collapse:collapse;table-layout:auto}
.exp-r46-shell .exp-r46-list th{background:#f4f8fc;border-bottom:1px solid #e4edf5;color:#294464;font-weight:800;font-size:11px;padding:10px 7px;white-space:nowrap}
.exp-r46-shell .exp-r46-list td{height:51px;padding:9px 7px;border-bottom:1px solid #e9eff5;font-size:11px;color:#203b5f;white-space:nowrap}
.exp-r46-shell .exp-r46-list tr:last-child td{border-bottom:0}
.exp-r46-shell .exp-r46-list tr:hover td{background:#f5faff}
.exp-r46-shell .exp-r46-list .exp-m26-number{font-variant-numeric:tabular-nums;text-align:right}
.exp-r46-shell .exp-r46-list td:first-child,.exp-r46-shell .exp-r46-list th:first-child{width:32px;text-align:center}
.exp-r46-shell .exp-r46-list .exp-r46-idx{text-align:center;width:38px}
.exp-r46-shell .exp-r46-list .exp-r46-date{width:100px}
.exp-r46-shell .exp-r46-list .exp-r46-payee{max-width:210px;overflow:hidden;text-overflow:ellipsis}
.exp-r46-shell .exp-r46-list .exp-r46-desc{max-width:220px;overflow:hidden;text-overflow:ellipsis}
.exp-r46-shell .exp-r46-list .exp-m26-link{color:#096ce8;text-decoration:underline;text-underline-offset:2px;font-weight:700;font-size:11px}
.exp-r46-shell .exp-r46-list .exp-m26-tag{font-size:10px;padding:5px 10px}
.exp-r46-shell .exp-r46-list .exp-r46-actions{justify-content:center;gap:5px}
.exp-r46-shell .exp-r46-list .exp-r46-action{width:30px;height:29px;min-width:30px;min-height:29px;padding:5px;border-radius:6px;background:#fff;border:1px solid #d8e5f2;display:grid;place-items:center;color:#1f4d80}
.exp-r46-shell .exp-r46-list .exp-r46-action svg{width:16px;height:16px}
.exp-r46-shell .exp-r46-list .exp-r46-open{color:#0c70df;background:#eaf4ff}
.exp-r46-shell .exp-r46-list .exp-r46-edit:not(:disabled){color:#05814c;background:#e9f9ee;border-color:#d3f0dd}
.exp-r46-shell .exp-r46-list .exp-r46-pay:not(:disabled){color:#df3952;background:#ffeff1;border-color:#fdd7de}
.exp-r46-shell .exp-r46-list .exp-r46-action:disabled{opacity:.32;cursor:not-allowed;background:#f7f9fb;color:#879cb2}
.exp-r46-shell .exp-r46-list .exp-r46-action:hover:not(:disabled){filter:brightness(.96);border-color:#8bb7ef}
.exp-r46-shell .exp-r46-selection{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:0 12px 9px;padding:8px 11px;background:#ecf5ff;border:1px solid #cce1fd;border-radius:8px;font-size:11px;color:#225c96}
.exp-r46-shell .exp-r46-selection[hidden]{display:none}
.exp-r46-shell .exp-r46-selection>label{display:flex;align-items:center;gap:6px;cursor:pointer}
.exp-r46-shell .exp-r46-selection .exp-m26-primary{background:#0870e9;border-radius:6px;display:flex;align-items:center;gap:6px;min-height:28px;padding:5px 10px;font-weight:700}
.exp-r46-shell .exp-r46-list .exp-m26-pagination{padding:15px 16px;min-height:70px;font-size:11px}
.exp-r46-shell .exp-r46-local{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px;background:#fffaf0;border:1px solid #f5ddaa;margin:0 0 12px;border-radius:8px;color:#8d6417;font-size:11px}
.exp-r46-shell .exp-r46-local>span{display:flex;align-items:center;gap:6px}
.exp-r46-shell .exp-r46-local button{background:#fff;border:1px solid #e6d099;border-radius:6px;padding:7px 10px;color:#795819;cursor:pointer}
@media(max-width:1480px){.exp-r46-shell .exp-m26-filter{grid-template-columns:repeat(3,minmax(120px,1fr)) minmax(225px,2fr)}.exp-r46-shell .exp-m26-filter label:nth-child(5),.exp-r46-shell .exp-m26-filter label:nth-child(6){grid-column:auto}.exp-r46-shell .exp-m26-filter .exp-m26-primary{grid-column:auto}}
@media(max-width:950px){.exp-r46-shell .exp-r46-main{padding:12px!important}.exp-r46-shell .exp-m26-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.exp-r46-shell .exp-r46-top{flex-wrap:wrap;gap:9px}.exp-r46-shell .exp-r46-top h1{font-size:20px}}
@media(max-width:600px){.exp-r46-shell .exp-m26-filter{grid-template-columns:1fr}.exp-r46-shell .exp-r46-list>header{flex-wrap:wrap}.exp-r46-shell .exp-r46-list .exp-m26-pagination{flex-wrap:wrap}.exp-r46-shell .exp-r46-local{flex-wrap:wrap}}

/* R46-A5 | five compact actions in the single expense table */
.exp-r46-shell .exp-r46-list .exp-r46-actions{gap:3px;min-width:0}
.exp-r46-shell .exp-r46-list .exp-r46-action{width:28px;min-width:28px;height:28px;min-height:28px;padding:4px}
.exp-r46-shell .exp-r46-list .exp-r46-print:not(:disabled){color:#285486;background:#f6faff}
.exp-r46-shell .exp-r46-list .exp-r46-wht:not(:disabled){color:#6b4cb4;background:#f6f1ff}
