/* Shared workspace and control-panel presentation. */
/* Workspace theme: soft cards, clear hierarchy and the PAPANG brand palette. */
.app-layout .sidebar summary:before{content:'▦';color:#8eb8ff;font-size:17px;width:24px;flex-shrink:0}.app-layout .sidebar summary{justify-content:flex-start;gap:8px}.app-layout .sidebar summary:after{margin-left:auto}
.app-layout{background:#f4f6ff}.app-layout .sidebar{background:linear-gradient(165deg,#14243e,#192c4c);border-right:1px solid #ffffff0a}.app-layout .app-header{background:#ffffffdd;border-bottom:1px solid #e8edf7}.app-layout .content{max-width:1600px;margin:0 auto;width:100%;box-sizing:border-box}.app-layout .panel,.app-layout .stat{border:1px solid #e7ecf7;border-radius:22px;box-shadow:0 8px 28px #18325c09}.app-layout .panel{padding:26px}.app-layout .stats{gap:20px}.app-layout .stats .stat{border-top:0;padding:24px;min-width:0}.app-layout .stats .stat:before{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:13px;margin-bottom:16px;font-size:20px;font-weight:700;background:#e3f8ee;color:#059669;content:'↙'}.app-layout .stats .stat:nth-child(2):before{background:#ffeded;color:#ef4444;content:'↗'}.app-layout .stats .stat:nth-child(3):before{background:#eee9ff;color:#7c3aed;content:'≈'}.app-layout .stats .stat:nth-child(4):before{background:#e5edff;color:#2563eb;content:'฿'}.app-layout .stats .stat strong{font-size:27px;letter-spacing:-.5px;overflow-wrap:anywhere}.app-layout .stats .stat small{font-size:11px;line-height:1.7}.app-layout .primary{border-radius:12px;box-shadow:0 5px 15px #2563eb24}.app-layout .outline{border-radius:10px}.app-layout .sidebar .nav-item,.app-layout .sidebar summary{border-radius:11px;transition:background .15s}.app-layout .sidebar details .nav-item.active{background:#2563eb;border-left-color:#34d399;box-shadow:0 5px 18px #0002}.app-layout .sidebar details summary{padding-top:12px;padding-bottom:12px}.app-layout .page-heading h1{letter-spacing:-.4px}.app-layout .filters{border-radius:14px;background:#f8faff}.app-layout input,.app-layout select,.app-layout textarea{border-radius:10px}.app-layout .table-wrap th{background:#f7f9fd}.app-layout .notice{border-radius:14px}.app-layout .app-footer{border-top-color:#e7ecf7}
@media(max-width:1100px){.app-layout .stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.app-layout .panel{padding:20px 16px;border-radius:18px}.app-layout .stats{gap:12px}.app-layout .stats .stat{padding:18px 14px}.app-layout .stats .stat strong{font-size:22px}.app-layout .stats .stat:before{width:36px;height:36px;margin-bottom:12px}}@media(max-width:380px){.app-layout .stats{grid-template-columns:1fr}}
:root{--line:#dfe7f1;--bg:#f3f6fb}
button{font:inherit}input,select,textarea{font-family:inherit;font-size:inherit;font-weight:400}
textarea{display:block;width:100%;min-height:110px;margin-top:7px;padding:12px 14px;border:1px solid #cbd6e4;border-radius:8px;background:#fff;color:var(--text);font-weight:400;line-height:1.6;resize:vertical}
textarea:focus{outline:3px solid #2563eb18;border-color:var(--blue)}
input[type=checkbox],input[type=radio]{width:18px;min-height:18px;height:18px;accent-color:var(--blue);margin:0;vertical-align:middle;flex-shrink:0}
input[type=file]{padding:9px;font-size:12px}
input[type=file]::file-selector-button{font:inherit;padding:5px 10px;margin-right:10px;background:#eff5ff;color:#214e99;border:1px solid #d7e4fa;border-radius:5px;cursor:pointer}
input:disabled,select:disabled,textarea:disabled{background:#f3f6fa;color:var(--muted)}
.app-header{min-height:78px}.breadcrumb{overflow-wrap:anywhere}
.sidebar{position:sticky;top:0;height:100vh;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#466078 transparent}
.sidebar-caption{margin-top:30px}.sidebar details{margin-bottom:10px}.sidebar summary{border-radius:7px;font-weight:600;list-style:none;display:flex;align-items:center;justify-content:space-between}
.sidebar summary::after{content:'›';font-size:18px;line-height:1;transform:rotate(0deg)}.sidebar details[open]>summary::after{transform:rotate(90deg)}.sidebar summary::-webkit-details-marker{display:none}.sidebar summary:hover{background:#ffffff09;color:#fff}.sidebar summary:focus-visible{outline:2px solid #93c5fd;outline-offset:2px}
.sidebar details .nav-item{padding-left:18px;border-left:2px solid transparent}.sidebar details .nav-item.active{border-left-color:#34d399;background:#1c416e;box-shadow:none;color:#fff}
.menu-toggle{display:none}
.panel{box-shadow:0 3px 14px #10233f03}.panel>h2{margin-bottom:18px}.panel-heading h2{margin-bottom:0}.panel-heading{flex-wrap:wrap}
.page-heading{align-items:flex-start;flex-wrap:wrap}.page-heading .primary{flex-shrink:0;margin-top:8px}.page-heading h1{line-height:1.45}
.stats .stat{position:relative;overflow:hidden;border-top:3px solid #c8d9f2}.stats .stat:first-child{border-top-color:var(--emerald)}.stats .stat:nth-child(2){border-top-color:var(--blue)}.stat strong{font-variant-numeric:tabular-nums}
.table-wrap{max-width:100%;overscroll-behavior-x:contain;scrollbar-width:thin}.table-wrap:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
th{font-size:11px;font-weight:600}tbody tr:hover{background:#f8fbff}td{vertical-align:top}td strong,td small{overflow-wrap:anywhere}.empty{white-space:normal;line-height:1.8}
.filters{gap:14px;background:#f8fafc;padding:16px;border:1px solid var(--line);border-radius:10px}.filters label{min-width:140px}.filters input,.filters select{background:#fff}
.notice{overflow-wrap:anywhere}.form-actions{padding-top:10px}.account-grid{align-items:start}.payment-details{gap:14px}.payment-details dd{font-variant-numeric:tabular-nums}
.auth-card .full{justify-content:space-between}.panel .full{justify-content:center}
.profile{flex-wrap:wrap}.profile form{margin-left:0}.member-cell{min-width:180px}.pagination{margin-top:22px}
@media(max-width:1050px){.app-layout{grid-template-columns:215px minmax(0,1fr)}.sidebar{padding:24px 14px}.content{padding:24px}.account-grid{grid-template-columns:1fr}.profile{gap:8px}}
@media(max-width:720px){
 .app-layout{grid-template-columns:minmax(0,1fr)}.sidebar{position:relative;height:auto;overflow:visible;padding:16px 18px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px}
 .sidebar .brand{padding:0}.sidebar-caption,.sidebar-bottom{display:none}.menu-toggle{display:inline-flex;align-items:center;gap:8px;border:1px solid #ffffff35;border-radius:8px;background:#ffffff09;color:#e4edfc;padding:9px 12px;font-size:13px;min-height:42px;cursor:pointer}.menu-toggle[aria-expanded=true]{background:#1c416e}
 .sidebar nav{grid-column:1/-1;margin-top:4px;display:block}.navigation-ready:not(.menu-open) .sidebar nav{display:none}.sidebar nav details{width:100%;margin:0 0 8px}.sidebar summary{padding:10px 12px}.sidebar details .nav-item{display:flex;margin:4px 0 4px 8px;padding:10px 14px}.sidebar .nav-item{display:flex;margin-bottom:5px}.sidebar .upgrade-menu{margin-bottom:10px}
 .app-header{min-height:60px;padding:14px 16px;gap:10px}.app-header .profile{margin-left:auto}.app-header .profile .avatar{display:none}.app-header .profile .outline{min-height:38px;padding:7px 11px}
 .content{padding:22px 16px}.page-heading{gap:12px;margin-bottom:20px}.page-heading h1{font-size:24px}.page-heading .primary{margin-top:0}.page-heading .pill{display:inline-flex;max-width:100%;white-space:normal}.panel{padding:18px 16px}.panel>h2{line-height:1.6}
 .finance-form{grid-template-columns:minmax(0,1fr);gap:4px}.finance-form label{min-width:0}.span-two{grid-column:1/-1}.form-actions .primary,.form-actions .outline{flex:1}
 .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stat{padding:16px 13px}.stats strong{font-size:22px}.stats small{line-height:1.6;display:block}.month-picker{flex-wrap:wrap}.month-picker label{flex:1;min-width:160px}
 .filters{padding:14px}.filters label,.filters label:first-of-type{flex:1 1 100%;min-width:0}.filters .primary,.filters .outline{flex:1}
 .workspace-panel{gap:14px}.workspace-panel>div{min-width:0;flex:1}.workspace-panel .primary,.workspace-panel .outline{width:100%;margin-left:0}.workspace-panel h2{overflow-wrap:anywhere}
 .account-grid{grid-template-columns:minmax(0,1fr);gap:0}.payment-details{grid-template-columns:110px minmax(0,1fr)}.payment-details dd{font-size:13px}.readiness-item{min-width:0}
 .team-invite-form label{min-width:0;flex-basis:100%}.review-buttons button{width:100%}.pagination{justify-content:start}.app-footer{line-height:1.8}
 .auth-main{min-width:0}.auth-top{flex-wrap:wrap}.auth-card h2{font-size:26px}
}
@media(max-width:380px){.stats{grid-template-columns:minmax(0,1fr)}.page-heading .primary{width:100%}.payment-details{grid-template-columns:1fr;gap:5px}.payment-details dd{margin-bottom:10px}}
