/* A shared visual layer for the three roles. All business values stay untouched. */
body{--chinh:#087f68;--chinh-dam:#066854;--chinh-nhat:#e0f4ec;--nen:#f3f6f5;--vien:#dce5e1;--bo-goc:16px;--chu-mo:#52675f;--bong:0 2px 4px #163e2e04,0 10px 30px #163e2e06;color:#17352c;letter-spacing:.005em}
body [hidden]{display:none!important}.panda-sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
body .sidebar{background:#122e29;padding:20px 14px 28px;scrollbar-gutter:stable}body .brand{border-color:#ffffff18}body .brand-text span{color:#acc6bb}body .nav-group>p{color:#a1bfb2;font-size:10px;letter-spacing:1.3px;margin:16px 0 5px}body .nav-item{color:#d5e8df;border-radius:11px;font-size:13px;padding:10px 12px;min-height:44px;margin:2px 0}body .nav-item.active{background:#dff5e8;color:#0b533e;box-shadow:none;font-weight:750}body .nav-item:hover{background:#ffffff10;color:white}body .nav-item.active:hover{background:#ccebdc;color:#0b533e}body .nav-item .ico{font-size:17px}
.panda-nav-search{padding:6px 5px}.panda-nav-search input{width:100%;min-height:42px;border:1px solid #ffffff30;border-radius:10px;background:#ffffff09;color:white;padding:10px 12px;font-size:14px}.panda-nav-search input::placeholder{color:#a4bfb2}.panda-nav-search input:focus{outline:2px solid #7fd9b0;outline-offset:2px}.panda-nav-search p{font-size:13px;color:#c4dcd0;padding:12px 4px}
body .topbar{min-height:72px;background:#ffffffed;border-bottom:1px solid #e0e9e4;backdrop-filter:blur(14px);gap:10px;padding:12px 26px}body .topbar h2{font-size:18px;color:#173c2f;font-weight:750;min-width:0;line-height:1.35}#page-title:focus{outline:none}.topbar-actions{position:relative}.topbar .icon-action,.topbar .notif-btn,.topbar .back-btn,.topbar .hamburger{min-width:42px;min-height:42px;border-radius:12px;box-shadow:none}.topbar button:focus-visible,body .btn:focus-visible{outline:3px solid #28ae87;outline-offset:2px}
body .user-chip{font:inherit;display:flex;align-items:center;gap:9px;border:1px solid #dae8df;background:#f7fbf8;border-radius:13px;min-height:44px;padding:5px 10px;color:#1d4435;cursor:pointer}.user-chip .name{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.panda-user-menu{position:absolute;right:0;top:calc(100% + 9px);background:white;border:1px solid #dce8e1;border-radius:15px;box-shadow:0 16px 50px #103b2926;padding:8px;min-width:210px;z-index:70}.panda-user-menu>b{display:block;font-size:12px;color:#60786b;padding:9px 12px}.panda-user-menu button{width:100%;min-height:44px;display:block;background:white;border:0;border-radius:9px;text-align:left;padding:10px 12px;color:#244b39;cursor:pointer}.panda-user-menu button:hover{background:#edf6ef}.panda-user-menu button:last-child{color:#b33f3f}
body .content{padding:26px;max-width:1520px;margin:0 auto}body .card{border-color:#dfe8e2;box-shadow:var(--bong);padding:22px}body .card-head{gap:10px}body .card-head h3{font-size:17px}body .btn{min-height:42px;border-radius:10px;transition:background-color .15s,box-shadow .15s}body .btn.primary{background:#087f68;box-shadow:0 3px 7px #075d4520}body .btn.danger{background:#fff4f3;border-color:#f0d1cb;color:#ae3c31}body .btn:disabled{opacity:.6;cursor:wait}body .table-wrap{border-radius:13px;scrollbar-width:thin;scrollbar-color:#aec8b8 #f0f5f1;scrollbar-gutter:stable}body th{background:#f3f8f4;color:#586f62;font-size:11px;padding:13px 14px;letter-spacing:.045em}body td{padding:13px 14px}body tbody tr:hover{background:#f6faf7}body .filters{gap:10px}body .filters input,body .filters select{min-height:42px;border-radius:10px}.panda-save-error{padding:12px 14px;margin-bottom:16px;border-radius:11px;background:#fff0ed;border:1px solid #f0c2b9;color:#9d3027;line-height:1.6}
body .modal{border-radius:19px;box-shadow:0 25px 100px #0c302c40}body .modal-head{padding:18px 22px}body .modal-body{padding:20px 22px}body .modal-foot{padding:14px 22px;background:#f7faf8;border-radius:0 0 19px 19px}body .field label{color:#355548;font-weight:650;margin-bottom:7px}body .field input,body .field select,body .field textarea{border:1px solid #ccddd2;border-radius:10px;min-height:43px;background:white}body .field input:focus,body .field select:focus,body .field textarea:focus{outline:2px solid #5bbaa0;outline-offset:1px}
body .adm-hero{background:linear-gradient(125deg,#e5f3eb,#f6fbf7);border:1px solid #d2e6d8;color:#173e2e;box-shadow:none;border-radius:20px}body .adm-hero h1{color:#173e2e;font-size:clamp(23px,2.3vw,30px);letter-spacing:-.035em}body .adm-hero p{color:#547260}body .adm-hero .st b{color:#125b3d}body .adm-hero .st span{color:#587161}body .adm-stat{border:1px solid #dfe8e1;box-shadow:var(--bong);border-radius:16px}body .adm-section-title{color:#466352;font-size:12px;letter-spacing:.045em}body .adm-chart,body .adm-activity{border:1px solid #dfe8e1;box-shadow:var(--bong);border-radius:16px}
body[data-role=parent]{--nen:#f4f8f4}body .parent-hero{background:linear-gradient(118deg,#0b6654,#27846b);border-radius:20px;box-shadow:0 8px 25px #106b4a12}body .parent-hero-name{letter-spacing:-.02em}body .hp-summary{border:1px solid #cfe2d6;border-radius:18px;box-shadow:var(--bong)}body .hp-summary.has-debt{border-color:#ead7ae;background:#fffcf4}body .pm-card{border:1px solid #dce8de;background:white;border-radius:16px;box-shadow:0 2px 6px #16452b04;min-height:106px;transition:border-color .15s,box-shadow .15s}body .pm-card:hover{transform:none;border-color:#86b99c;box-shadow:0 6px 18px #16452b0c}body .pm-card .pm-label{color:#20452f}body .child-card{border:1px solid #d7e6dc;border-radius:17px;box-shadow:var(--bong)}body .btn-bao-nghi{border-radius:15px;box-shadow:none}
body #login-screen{background:radial-gradient(ellipse at 20% 10%,#eff9e8 0,transparent 55%),linear-gradient(135deg,#e9f6ef,#d7ece3);overflow-y:auto}body .login-box{border:1px solid #d5e7dc;box-shadow:0 20px 70px #174b3420;padding:35px;border-radius:24px}body .login-box h1{font-size:21px;color:#134832;letter-spacing:-.025em}body .login-box .sub{color:#64796d}body .login-logo{box-shadow:none;border:1px solid #d5e8da;width:72px;height:72px}.panda-password{position:relative}.panda-password input{padding-right:68px!important}.panda-password button{position:absolute;right:5px;top:4px;bottom:4px;min-width:54px;min-height:38px;background:#edf6f0;border:0;border-radius:8px;color:#216044;font-size:13px;font-weight:700;cursor:pointer}body .login-btn{background:#087f68;box-shadow:0 6px 18px #087f6830;border-radius:12px}body .login-help{font-size:12px}
.panda-notif-prompt{background:#f2f7f4!important;border:1px solid #d9e5dc!important;box-shadow:none!important}.panda-notif-prompt>div{gap:9px!important}.panda-notif-prompt>div>div:first-child{font-size:22px!important}.panda-notif-prompt>div>div:nth-child(2){min-width:150px!important}.panda-notif-prompt .btn{padding:8px 12px!important;font-size:12px}
.panda-nav-backdrop{position:fixed;inset:0;border:0;background:#0b241d65;z-index:80;backdrop-filter:blur(2px)}#panda-nav-close{display:none;margin-left:auto;border:1px solid #ffffff30;background:#ffffff10;color:white;border-radius:10px;width:40px;height:40px;font-size:25px;cursor:pointer}
body[data-role=admin] .adm-hero-stats{display:none}body .adm-stat .v{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}body .hp-summary-amount .money{font-size:clamp(25px,7vw,36px);overflow-wrap:anywhere}.panda-page-error{display:grid;gap:14px;justify-items:start}.panda-page-error p{color:#64756a;line-height:1.6}
@media(max-width:960px){body .sidebar{z-index:90;width:min(310px,88vw)}#panda-nav-close{display:block}body.panda-drawer-open{overflow:hidden}body .topbar{padding:9px 15px;min-height:64px}body .content{padding:18px}body .card{padding:17px}body .panda-user-menu{right:0}.panda-drawer-open .bottom-nav{pointer-events:none}}
@media(max-width:720px){body .content{padding:14px;padding-bottom:calc(96px + env(safe-area-inset-bottom))!important}body .topbar{padding:8px 12px;gap:6px;min-height:62px}body .topbar h2{font-size:16px}body .topbar-actions{gap:5px}.topbar .icon-action,.topbar .notif-btn,.topbar .back-btn{min-width:38px;min-height:40px;width:38px;padding:5px}body .user-chip{padding:4px 6px;gap:5px}.user-chip .name{display:none}body .avatar{width:31px;height:31px}body .bottom-nav{padding-top:5px;background:#fffffff7;box-shadow:0 -5px 24px #194c2f0c}body .bn-tab{min-height:53px;font-size:11px;border-radius:12px}.bn-tab.active{background:#e6f4eb;color:#075e42}body .adm-hero{padding:21px 18px}body .adm-hero-stats{gap:14px}body .adm-stat .v{font-size:24px}body .pm-grid{gap:10px}body .pm-card{min-height:103px;padding:14px 11px}body .pm-card .pm-label{font-size:14px}body .parent-hero{padding:23px 19px}body .field input,body .field select,body .field textarea,body .filters input,body .filters select,body .login-field input{font-size:16px}body .modal-body{max-height:65dvh;overflow:auto}body .modal-head,body .modal-foot{padding:14px 16px}body .modal-body{padding:17px 16px}body .modal-foot .btn{min-height:45px}body .login-box{padding:28px 23px}body .table-wrap:focus-visible{outline:3px solid #2f9d76;outline-offset:2px}body .adm-chart{overflow:hidden}}
@media(prefers-reduced-motion:reduce){body *,body *::before,body *::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.panda-logout{min-height:44px;white-space:nowrap;display:inline-flex;gap:5px;align-items:center}.panda-logout>span:first-child{font-size:22px}@media(max-width:600px){.panda-logout-label{display:none}.panda-logout{padding:6px;min-width:38px}}
/* Compact phone layout; exact money values and all menu actions remain available. */
.panda-mobile-shortcuts{display:none}
@media(max-width:600px){
 html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
 body .topbar{min-height:56px;padding:7px 12px;gap:6px}body .topbar h2{font-size:16px;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body .topbar-actions{flex:none;gap:6px}body .topbar .panda-header-refresh,body .topbar .panda-logout{display:none!important}body .topbar .sync-badge.ok{display:none!important}body .topbar .sync-badge{font-size:10px;max-width:96px;padding:4px 6px}
 body .user-chip{min-width:42px;min-height:42px;padding:4px;justify-content:center;border-radius:12px}body .user-chip>span:last-child{display:none}body .panda-user-menu{max-width:calc(100vw - 24px)}
 body .content{padding:12px;padding-bottom:calc(90px + env(safe-area-inset-bottom))!important}body .adm-hero{padding:14px 15px;border-radius:15px;margin-bottom:10px}body .adm-hero h1{font-size:20px;line-height:1.25;margin:0}body .adm-hero p{font-size:12px;line-height:1.5;margin:6px 0 0}
 body .panda-cash-filter{padding:12px!important;margin:10px 0!important;border-radius:14px}body .panda-cash-filter>div{display:grid!important;gap:8px!important}body .panda-cash-filter label{min-width:0!important;display:grid;grid-template-columns:65px minmax(0,1fr);gap:8px;align-items:center;font-size:12px}body .panda-cash-filter select,body .panda-cash-filter input{width:100%;max-width:100%;min-width:0;min-height:40px;font-size:16px;padding:6px 8px;border:1px solid #dce5e1;border-radius:9px;background:#fff;color:#173c2f}body .panda-cash-note{font-size:12px;color:#52675f}body .panda-cash-period,body .panda-cash-method{display:none}
 body .adm-filter-bar{display:flex;flex-wrap:nowrap;gap:6px;margin:10px 0 14px}body .adm-filter-btn{flex:1;min-width:0;padding:8px 5px;font-size:11px;min-height:40px;border-radius:10px}
 body .adm-section-title{font-size:11px;margin:14px 0 8px}body .adm-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body .adm-stat{padding:12px;border-radius:13px;min-width:0}body .adm-stat .ic{width:30px;height:30px;font-size:17px;border-radius:9px;margin-bottom:8px}body .adm-stat .v{font-size:clamp(16px,4.8vw,21px);line-height:1.25;letter-spacing:-.5px;white-space:nowrap;word-break:normal;overflow-wrap:normal;font-variant-numeric:tabular-nums}body .adm-stat .l{font-size:11px;line-height:1.4;font-weight:500}body .adm-stat .trend{font-size:10px;top:10px;right:9px;padding:2px 5px}
 body .panda-mobile-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}body .panda-mobile-shortcuts button{min-height:44px;text-align:left;padding:10px 12px;border:1px solid #cfe2d8;border-radius:10px;background:#fff;color:#15513e;font-size:13px;font-weight:650;cursor:pointer}body .panda-desktop-shortcuts{display:none}
 body .adm-chart{padding:13px;margin-top:12px;border-radius:14px}body .adm-chart h3{display:block;font-size:12px;line-height:1.5;margin-bottom:8px}body .adm-chart h3 span{display:block;font-size:16px;margin-top:3px;white-space:nowrap}body .adm-chart svg{height:116px}body .adm-chart-labels{font-size:10px;padding:0;gap:4px}body .adm-activity{padding:8px 13px;border-radius:14px}body .adm-act-item{padding:10px 0;font-size:12px;line-height:1.5}body .adm-act-item .aico{width:28px;height:28px;font-size:16px}body .adm-act-item .atxt .time{font-size:10px}body .adm-act-item:nth-child(n+4){display:none}body .adm-alert{padding:11px;border-radius:12px}body .adm-alert .aic{width:32px;height:32px;font-size:18px}body .adm-alert .at{font-size:12px}body .adm-alert .as{font-size:11px}
 body .bn-tab{min-height:48px;font-size:10px}body .bottom-nav{padding-top:3px}body .bn-tab .ico{font-size:22px}
}
@media(max-width:600px){body .stat{min-width:0}body .stat .v{font-size:clamp(16px,4.8vw,21px);white-space:nowrap;word-break:normal;overflow-wrap:normal;font-variant-numeric:tabular-nums}}
.panda-phone-greeting{display:none}
@media(max-width:600px){.panda-desktop-greeting{display:none}.panda-phone-greeting{display:inline}body .adm-hero h1{font-size:18px}body .adm-hero p{display:none}body .bn-tab{font-size:11px}}
