/* POS-X D39-R45 | Single workspace inside the signed-in application; closely matches the approved WHT mockup. */
.ws45-shell{display:grid;grid-template-columns:164px minmax(0,1fr);min-height:calc(100vh - 111px);width:100%;background:#f3f8fc;color:#193c64;font:12px/1.5 'Noto Sans Thai',Tahoma,'Segoe UI',Arial,sans-serif;box-sizing:border-box}
.ws45-shell *{box-sizing:border-box}.ws45-side{background:#fff;border-right:1px solid #dfebf5;min-width:0;padding:0 8px 16px}.ws45-logo{background:#103c4d;margin:0 -8px 13px;color:#fff;height:65px;display:flex;flex-direction:column;justify-content:center;padding:0 14px}.ws45-logo b{font-size:18px;letter-spacing:.2px}.ws45-logo small{font-size:10px;padding-left:27px;opacity:.8}.ws45-section{font-size:11px;padding:7px 8px 13px;font-weight:700;color:#345c79}.ws45-plain{font-size:11px;padding:10px 8px;color:#34536d}.ws45-group{border-radius:6px;background:#eaf7f0;font-weight:700;color:#14785b;padding:10px 8px;display:flex;justify-content:space-between}.ws45-side button{display:block;width:100%;text-align:left;cursor:pointer;border:0;border-radius:5px;background:transparent;color:#47637f;font-size:11px;font-weight:600;padding:10px 7px 10px 17px}.ws45-side button:hover,.ws45-side button.active{background:#e6f5ee;color:#06735c}.ws45-body{min-width:0;padding:17px 14px 22px}.ws45-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:14px}.ws45-crumb{font-size:11px;color:#7491a9}.ws45-header h1{font-size:22px;margin:2px 0 5px;color:#12385f;line-height:1.3;font-weight:800}.ws45-header p{color:#6b829c;font-size:11px;margin:0}.ws45-actions{display:flex;gap:8px;align-items:center}.ws45-actions button{border:1px solid #dbe5f0;color:#22496d;background:white;border-radius:7px;padding:9px 12px;white-space:nowrap;cursor:pointer;font-size:11px}.ws45-actions .ws45-primary{background:#076de4;border-color:#076de4;color:white;font-weight:800}.ws45-tabs{width:min(610px,100%);display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #dce7f2;background:white;border-radius:8px;overflow:hidden;margin-bottom:13px}.ws45-tabs button{padding:10px 6px;min-height:42px;border:0;border-right:1px solid #e2eaf2;background:#fff;color:#617891;font-weight:700;cursor:pointer;font-size:12px}.ws45-tabs button:last-child{border-right:0}.ws45-tabs button.active{color:#076de3;background:#f5f9ff;box-shadow:inset 0 3px #076de3}.ws45-slot{min-width:0}.ws45-loading{background:white;padding:30px;border:1px solid #dce8f1;border-radius:7px;color:#7690a7}.ws45-error{padding:16px;border:1px solid #f1bbc4;background:#fff2f3;color:#9e3a4c;border-radius:7px}
/* R44 paid WHT is rendered as the actual center+right panels; no nested sidebar/title/tabs. */
.ws45-wht>.w44-shell{grid-template-columns:minmax(0,1fr) minmax(310px,355px);min-height:calc(100vh - 190px);width:100%;background:transparent}
.ws45-wht .w44-side,.ws45-wht .w44-content>.w44-head,.ws45-wht .w44-content>.w44-tabs{display:none!important}
.ws45-wht .w44-content{padding:0 12px 0 0;min-width:0}.ws45-wht .w44-detail{min-height:calc(100vh - 190px);max-height:calc(100vh - 190px);border:1px solid #dce7f0;border-radius:9px;overflow:hidden;top:0}.ws45-wht .w44-stats{gap:8px}.ws45-wht .w44-stats .w44-card{min-height:96px}.ws45-wht .w44-filter{margin-bottom:11px}.ws45-wht .w44-tabs.mini{display:flex!important}.ws45-wht .w44-head-tools{flex-wrap:wrap}
/* Expense home reuses the R43 expense application and leaves its editor component untouched. */
.ws45-expense .exp-m26-sidebar,.ws45-expense .exp-m26-main>.exp-m26-top,.ws45-expense .exp-m26-main>.exp-m26-unified-tabs{display:none!important}
.ws45-expense .exp-m26-layout{display:block!important;grid-template-columns:minmax(0,1fr)!important}.ws45-expense .exp-m26-main{padding:0!important;min-width:0}.ws45-expense .exp-m26-shell,.ws45-expense .exp-module{min-height:0}
.ws45-received .payment-report-head{margin-top:0}.ws45-received .payment-report-page{padding:0!important;max-width:none}
@media(max-width:1400px){.ws45-shell{grid-template-columns:144px minmax(0,1fr)}.ws45-body{padding:12px 9px}.ws45-wht>.w44-shell{grid-template-columns:minmax(0,1fr) 300px}.ws45-wht .w44-card{padding:9px 6px}.ws45-wht .w44-filter{gap:5px}.ws45-wht .w44-lower{grid-template-columns:1fr}}
@media(max-width:1080px){.ws45-shell{display:block}.ws45-side{display:none}.ws45-wht>.w44-shell{display:block}.ws45-wht .w44-detail{position:fixed;width:min(370px,96vw);right:0;top:65px;bottom:0;min-height:0;max-height:none;z-index:75;box-shadow:-12px 0 25px #153b6022}.ws45-wht .w44-content{padding:0}.ws45-wht .w44-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.ws45-header{display:block}.ws45-header h1{font-size:18px}.ws45-actions{margin:10px 0}.ws45-tabs{width:100%}.ws45-tabs button{font-size:11px}.ws45-body{padding:10px 7px}.ws45-wht .w44-detail{top:0;width:100vw}}
