*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html{font-size:17px;-webkit-text-size-adjust:100%}
body{font-family:'Sarabun','Noto Sans Thai',sans-serif;background:#EEF2F7;color:#1a1a2e;min-height:100vh;overflow-x:hidden;padding-bottom:72px}

/* SPLASH */
.splash-screen{position:fixed;inset:0;background:#0D47A1;display:flex;align-items:center;justify-content:center;z-index:1000}
.splash-inner{text-align:center;padding:40px 24px;display:flex;flex-direction:column;align-items:center;gap:10px}
.splash-drop{font-size:4.5rem;animation:dropBounce 1.5s ease-in-out infinite}
@keyframes dropBounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}
.splash-title{font-size:1.4rem;font-weight:800;color:#fff;line-height:1.3}
.splash-bar-wrap{width:220px;height:6px;background:rgba(255,255,255,0.2);border-radius:10px;overflow:hidden;margin:8px 0}
.splash-bar{height:100%;background:#fff;border-radius:10px;width:0;transition:width 0.5s ease}
.splash-msg{font-size:0.8rem;color:rgba(255,255,255,0.7)}
.splash-foot{margin-top:24px}
.splash-ver{font-size:0.7rem;color:rgba(255,255,255,0.4);letter-spacing:1px}
.splash-author{font-size:0.82rem;font-weight:700;color:rgba(255,255,255,0.8);margin-top:4px}

/* LOGIN */
.login-bg{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px;background:linear-gradient(160deg,#0D47A1 0%,#1565C0 60%,#1976D2 100%)}
.login-wrap{width:100%;max-width:420px;display:flex;flex-direction:column;gap:16px}
.login-brand{text-align:center}
.login-drop{font-size:3rem;margin-bottom:8px}
.login-appname{font-size:1.25rem;font-weight:800;color:#fff;line-height:1.3}
.login-village{font-size:0.85rem;color:rgba(255,255,255,0.75);margin:4px 0 10px}
.login-sync{display:inline-block;background:rgba(255,255,255,0.15);color:#fff;font-size:0.7rem;font-weight:600;padding:4px 12px;border-radius:20px;border:1px solid rgba(255,255,255,0.2)}
.login-card{background:#fff;border-radius:24px;padding:22px 20px;box-shadow:0 8px 40px rgba(0,0,0,0.25)}
.login-tabs{display:flex;gap:6px;margin-bottom:18px;background:#EEF2F7;padding:4px;border-radius:12px}
.ltab{flex:1;padding:9px 4px;border:none;border-radius:10px;font-size:0.78rem;font-weight:700;font-family:inherit;cursor:pointer;background:transparent;color:#888;transition:all 0.2s}
.ltab.active{background:#fff;color:#0D47A1;box-shadow:0 1px 6px rgba(0,0,0,0.12)}
.lgroup{margin-bottom:12px}
.llabel{display:block;font-size:0.82rem;font-weight:700;color:#444;margin-bottom:5px}
.linput{width:100%;border:2px solid #e0e0e0;border-radius:12px;padding:13px 15px;font-size:1rem;font-family:inherit;outline:none;transition:border-color 0.2s;background:#fafafa;color:#1a1a2e}
.linput:focus{border-color:#1565C0;background:#fff}
.lhint{font-size:0.75rem;color:#999;background:#F8F9FA;padding:7px 11px;border-radius:8px;margin-bottom:12px;line-height:1.4}
.lbtn{width:100%;border:none;border-radius:14px;padding:15px;font-size:1rem;font-weight:700;font-family:inherit;cursor:pointer}
.lbtn-admin{background:linear-gradient(135deg,#0D47A1,#1565C0);color:#fff}
.lbtn-staff{background:linear-gradient(135deg,#1B5E20,#2E7D32);color:#fff}
.lbtn-resident{background:linear-gradient(135deg,#E65100,#F4511E);color:#fff}
.lerr{color:#c62828;font-size:0.82rem;text-align:center;margin-top:10px;padding:9px;background:#FFEBEE;border-radius:8px}
.lerr.hidden{display:none}
.login-footer{text-align:center;font-size:0.68rem;color:rgba(255,255,255,0.45);line-height:1.5}

/* TOPBAR */
.topbar{position:fixed;top:0;left:0;right:0;z-index:100;background:#0D47A1;color:#fff;height:58px;display:flex;align-items:center;padding:0 10px;gap:8px;box-shadow:0 2px 12px rgba(13,71,161,0.35)}
.topbar-center{flex:1;text-align:center}
.topbar-title{font-size:0.95rem;font-weight:800;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar-right{display:flex;gap:4px;align-items:center}
.back-btn,.topbar-icon-btn{background:none;border:none;color:#fff;cursor:pointer;padding:8px;border-radius:50%;display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}
.back-btn.hidden{display:none}
.sync-dot{width:9px;height:9px;border-radius:50%;background:#4CAF50;margin-right:2px;flex-shrink:0;transition:background 0.3s}
.sync-dot.syncing{background:#FFC107;animation:blink 0.8s infinite}
.sync-dot.error{background:#f44336}
@keyframes blink{0%,100%{opacity:1}50%{opacity:0.2}}

/* LAYOUT */
.main-content{margin-top:58px;min-height:calc(100vh - 130px)}
.screen{display:none;padding:12px 12px 20px;animation:fadeIn 0.2s ease}
.screen.active{display:block}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}

/* ADMIN DASHBOARD */
.month-selector-bar{display:flex;align-items:center;background:#0D47A1;border-radius:14px;padding:12px 16px;margin-bottom:12px;gap:10px}
.msb-arrow{background:rgba(255,255,255,0.15);border:none;color:#fff;width:36px;height:36px;border-radius:50%;font-size:1.4rem;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.msb-month{flex:1;text-align:center;font-size:1.05rem;font-weight:800;color:#fff}
.dashboard-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:12px}
.dg-card{background:#fff;border-radius:14px;padding:14px;text-align:center;box-shadow:0 1px 6px rgba(0,0,0,0.08);border-top:3px solid transparent}
.dg-card.tappable{cursor:pointer;transition:transform 0.1s,box-shadow 0.1s;-webkit-tap-highlight-color:transparent}
.dg-card.tappable:active{transform:scale(0.97);box-shadow:0 1px 3px rgba(0,0,0,0.08)}
.dg-card.blue{border-top-color:#1565C0}
.dg-card.green{border-top-color:#2E7D32}
.dg-card.amber{border-top-color:#E65100}
.dg-card.purple{border-top-color:#6A1B9A}
.dg-num{font-size:1.8rem;font-weight:900;line-height:1}
.dg-num.blue{color:#0D47A1}.dg-num.green{color:#1B5E20}.dg-num.amber{color:#E65100}.dg-num.purple{color:#4A1D96}
.dg-lbl{font-size:0.62rem;color:#888;margin-top:4px;font-weight:600}
.dg-sub{font-size:0.7rem;color:#aaa;margin-top:2px}
.progress-bar-wrap{background:#EEF2F7;border-radius:6px;height:8px;overflow:hidden;margin-top:6px}
.progress-bar-fill{height:100%;background:#1565C0;border-radius:6px;transition:width 0.5s}
.dash-tabs{display:flex;gap:6px;margin-bottom:10px;overflow-x:auto;padding-bottom:2px}
.dash-tabs::-webkit-scrollbar{display:none}
.dtab{flex-shrink:0;padding:8px 14px;border:1.5px solid #e0e0e0;border-radius:20px;background:#fff;font-size:0.75rem;font-family:inherit;color:#666;cursor:pointer;font-weight:600;white-space:nowrap;transition:all 0.15s}
.dtab.active{background:#0D47A1;color:#fff;border-color:#0D47A1}
.section-label{font-size:0.78rem;font-weight:700;color:#888;letter-spacing:0.4px;text-transform:uppercase;margin:8px 0 6px}

/* HOUSE CARDS */
.house-list{display:flex;flex-direction:column;gap:8px}
.house-card{background:#fff;border-radius:16px;padding:13px 15px;box-shadow:0 1px 6px rgba(0,0,0,0.07);border:2px solid transparent;cursor:pointer;transition:all 0.15s}
.house-card:active{transform:scale(0.98)}
.house-card.done{border-color:#A5D6A7}
.house-card.pending{border-color:#FFE082}
.house-card.paid-done{border-color:#A5D6A7;background:#FAFFFE}
.house-card.unpaid{border-color:#EF9A9A;background:#FFF8F8}
.hc-top{display:flex;align-items:center;gap:8px;margin-bottom:5px}
.hc-num{background:#E3F2FD;color:#0C447C;font-size:0.95rem;font-weight:800;padding:5px 12px;border-radius:20px;white-space:nowrap;flex-shrink:0}
.hc-owner{font-size:0.95rem;font-weight:700;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hc-status{font-size:0.68rem;font-weight:700;padding:3px 8px;border-radius:16px;white-space:nowrap;flex-shrink:0}
.s-done{background:#E8F5E9;color:#1B5E20}
.s-pending{background:#FFF3E0;color:#E65100}
.s-paid{background:#E8F5E9;color:#1B5E20}
.s-unpaid{background:#FFEBEE;color:#c62828}
.hc-meta{display:flex;gap:10px;font-size:0.73rem;color:#999;flex-wrap:wrap}
.hc-meta b{color:#333;font-weight:700}
.hc-acts{display:flex;gap:5px;margin-top:7px;flex-wrap:wrap}
.act-btn{padding:6px 10px;border-radius:8px;border:none;font-size:0.72rem;font-weight:700;font-family:inherit;cursor:pointer;transition:opacity 0.15s}
.act-btn:active{opacity:0.7}
.ab-edit{background:#E3F2FD;color:#0C447C}
.ab-meter{background:#FFF3E0;color:#E65100}
.ab-bill{background:#E8F5E9;color:#1B5E20}
.ab-del{background:#FFEBEE;color:#c62828}
.ab-paid{background:#E8F5E9;color:#1B5E20}
.ab-unpaid{background:#FFEBEE;color:#c62828}

/* SEARCH / FILTER */
.search-bar-wrap{margin-bottom:10px}
.search-bar{display:flex;align-items:center;background:#fff;border-radius:14px;padding:10px 14px;gap:8px;box-shadow:0 1px 6px rgba(0,0,0,0.07);border:2px solid transparent;transition:border-color 0.2s}
.search-bar:focus-within{border-color:#1565C0}
.search-bar svg{stroke:#aaa;flex-shrink:0}
.search-bar input{flex:1;border:none;outline:none;font-size:0.95rem;font-family:inherit;background:transparent;color:#1a1a2e}
.search-bar input::placeholder{color:#bbb}
.filter-row{display:flex;gap:6px;margin-bottom:12px;overflow-x:auto;padding-bottom:2px}
.filter-row::-webkit-scrollbar{display:none}
.filter-btn{flex-shrink:0;padding:8px 14px;border:1.5px solid #e0e0e0;border-radius:20px;background:#fff;font-size:0.75rem;font-family:inherit;color:#666;cursor:pointer;font-weight:600;white-space:nowrap;transition:all 0.15s}
.filter-btn.active{background:#0D47A1;color:#fff;border-color:#0D47A1}

/* FORM */
.form-card{background:#fff;border-radius:18px;padding:18px 16px;box-shadow:0 1px 6px rgba(0,0,0,0.07)}
.form-section-title{font-size:0.95rem;font-weight:800;color:#0D47A1;margin-bottom:14px;padding-bottom:10px;border-bottom:2px solid #E3F2FD}
.form-group{margin-bottom:16px}
.form-label{display:block;font-size:0.82rem;font-weight:700;color:#333;margin-bottom:7px}
.req{color:#e53935}
.form-input{width:100%;border:2px solid #e0e0e0;border-radius:12px;padding:14px 16px;font-size:1rem;font-family:inherit;color:#1a1a2e;background:#fafafa;transition:border-color 0.2s;outline:none}
.form-input:focus{border-color:#1565C0;background:#fff}
.num-input{font-size:1.5rem;font-weight:800;text-align:center;letter-spacing:3px}
.form-input.error{border-color:#e53935}
.fhint{font-size:0.73rem;color:#999;margin-top:5px;line-height:1.4}
.fhint.error{color:#e53935}

/* BUTTONS */
.btn-primary{width:100%;background:linear-gradient(135deg,#0D47A1,#1565C0);color:#fff;border:none;border-radius:14px;padding:17px;font-size:1.05rem;font-weight:700;font-family:inherit;cursor:pointer;transition:opacity 0.15s}
.btn-primary:active{opacity:0.85}
.btn-primary:disabled{opacity:0.5}
.btn-secondary{width:100%;background:#fff;color:#1565C0;border:2px solid #1565C0;border-radius:14px;padding:15px;font-size:0.95rem;font-weight:700;font-family:inherit;cursor:pointer}
.btn-danger{width:100%;background:#fff;color:#c62828;border:2px solid #FFCDD2;border-radius:14px;padding:15px;font-size:0.95rem;font-weight:700;font-family:inherit;cursor:pointer}
.danger-zone{border:2px solid #FFCDD2!important}

/* METER */
.house-info-banner{background:linear-gradient(135deg,#0D47A1,#1565C0);color:#fff;border-radius:16px;padding:14px 16px;margin-bottom:12px}
.hib-num{font-size:1.2rem;font-weight:800}
.hib-name{font-size:0.85rem;opacity:0.85;margin-top:3px}
.reading-row{display:flex;align-items:center;gap:8px;margin-bottom:18px;background:#EEF2F7;border-radius:14px;padding:14px}
.reading-box{flex:1;text-align:center}
.rl{font-size:0.68rem;color:#666;margin-bottom:4px;font-weight:700;text-transform:uppercase;letter-spacing:0.3px}
.rn{font-size:1.7rem;font-weight:900;color:#1a1a2e}
.rn.hi{color:#0D47A1}
.rarrow{font-size:1.6rem;color:#0D47A1;font-weight:900}
.calc-box{background:linear-gradient(135deg,#E8F5E9,#F1F8E9);border-radius:14px;padding:14px;margin:14px 0;border:1.5px solid #C8E6C9}
.cb-row{display:flex;justify-content:space-between;padding:4px 0;font-size:0.9rem}
.cbv{font-weight:700}
.cb-divider{border-top:1.5px dashed #A5D6A7;margin:7px 0}
.cb-total{font-weight:800;font-size:1rem}
.cbtotal{font-size:1.6rem;font-weight:900;color:#1B5E20}
.mini-graph-wrap{background:#F8F9FA;border-radius:14px;padding:14px;margin:10px 0}
.mg-title{font-size:0.75rem;font-weight:700;color:#555;margin-bottom:10px}
.quick-nav{display:flex;gap:8px;margin-top:12px;background:#fff;border-radius:16px;padding:10px;box-shadow:0 1px 6px rgba(0,0,0,0.07)}
.qnb{flex:1;padding:10px 6px;border:1.5px solid #e0e0e0;border-radius:12px;background:#F8F9FA;font-size:0.68rem;font-weight:700;font-family:inherit;color:#555;cursor:pointer;transition:all 0.15s}
.qnb:active{background:#E3F2FD;border-color:#1565C0;color:#0D47A1}

/* BILL */
.bill-card-pro{background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 4px 20px rgba(0,0,0,0.12);margin-bottom:12px;max-width:390px;margin-left:auto;margin-right:auto}
.bcp-header{background:linear-gradient(135deg,#0D47A1,#1565C0);padding:20px 18px;color:#fff}
.bcp-village{font-size:0.82rem;opacity:0.8;margin-bottom:2px;letter-spacing:0.3px;font-weight:600}
.bcp-doc{font-size:0.78rem;opacity:0.7;margin-bottom:10px}
.bcp-house-row{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:6px;flex-wrap:wrap;gap:6px}
.bcp-house-num{font-size:1.6rem;font-weight:900;line-height:1}
.bcp-month-badge{background:rgba(255,255,255,0.25);font-size:0.78rem;font-weight:700;padding:4px 12px;border-radius:20px;border:1px solid rgba(255,255,255,0.3)}
.bcp-owner{font-size:1rem;opacity:0.95;margin-top:4px;font-weight:600}
.bcp-phone{font-size:0.82rem;opacity:0.75;margin-top:2px}
.bcp-body{padding:16px}
.bcp-amount-box{background:#E8F5E9;border-radius:16px;padding:20px 16px;text-align:center;margin-bottom:14px;border:2px solid #A5D6A7}
.bcp-pay-lbl{font-size:0.85rem;font-weight:700;color:#1B5E20;margin-bottom:6px;text-transform:uppercase;letter-spacing:0.5px}
.bcp-amount{font-size:2.8rem;font-weight:900;color:#1B5E20;line-height:1}
.bcp-amount-sub{font-size:0.82rem;color:#888;margin-top:6px}
.bcp-detail-grid{display:flex;flex-direction:column;gap:0;margin-bottom:10px}
.bcp-detail-item{background:transparent;padding:0}
.bcp-di-label{display:none}
.bcp-di-val{font-size:1.1rem;font-weight:900;color:#1a1a2e}
.bcp-divider{border-top:1px dashed #e0e0e0;margin:14px 0}
.bcp-recorder{font-size:0.78rem;color:#aaa;text-align:center;line-height:1.5}
.bcp-graph{padding:0 16px 16px}
.bcp-graph-title{font-size:0.82rem;font-weight:700;color:#555;margin-bottom:10px}
.bcp-qr-section{border-top:2px dashed #e0e0e0;padding:18px 16px;text-align:center;background:#FAFFFE}
.bcp-qr-title{font-size:0.88rem;font-weight:800;color:#0D47A1;margin-bottom:12px}
.bcp-qr-img{max-width:180px;max-height:180px;border-radius:14px;border:2px solid #e0e0e0;box-shadow:0 2px 8px rgba(0,0,0,0.08)}
.bcp-bank{font-size:0.88rem;color:#333;margin-top:10px;font-weight:600}
.bcp-footer{background:#F0F4F8;padding:10px 16px;text-align:center;font-size:0.68rem;color:#bbb;border-top:1px solid #E8ECEF}
.bill-acts{display:flex;gap:8px;margin-bottom:10px}
.bact{flex:1;background:#fff;border:2px solid #e0e0e0;border-radius:14px;padding:12px 6px;font-size:0.78rem;font-weight:700;font-family:inherit;cursor:pointer;text-align:center;line-height:1.5;min-height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
.bact.share{border-color:#0D47A1;color:#0D47A1}
.bact.pdf{border-color:#6A1B9A;color:#6A1B9A}
.bact.img{border-color:#1B5E20;color:#1B5E20}
.after-nav{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:14px}
.an-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:14px 10px;border-radius:16px;border:2px solid transparent;font-family:inherit;cursor:pointer;min-height:80px;transition:all 0.15s}
.an-btn:active{transform:scale(0.96)}
.an-next{background:#E3F2FD;border-color:#90CAF9;color:#0C447C}
.an-home{background:#E8F5E9;border-color:#A5D6A7;color:#1B5E20}
.an-text{font-size:0.9rem;font-weight:800}
.an-sub{font-size:0.67rem;opacity:0.75;text-align:center}

/* BILL LIST */
.bill-summary-header{background:linear-gradient(135deg,#0D47A1,#1976D2);color:#fff;border-radius:16px;padding:16px 18px;margin-bottom:10px}
.bsh-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.bsh-title{font-size:0.95rem;font-weight:800}
.bsh-amount{font-size:1.6rem;font-weight:900}
.bsh-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.bsh-stat{background:rgba(255,255,255,0.15);border-radius:8px;padding:8px;text-align:center}
.bsh-stat-num{font-size:1.1rem;font-weight:900}
.bsh-stat-lbl{font-size:0.6rem;opacity:0.8;margin-top:2px}
.export-row{display:flex;gap:8px;margin-bottom:12px}
.exp-btn{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;padding:11px;background:#fff;border:2px solid #0D47A1;border-radius:12px;color:#0D47A1;font-size:0.78rem;font-weight:700;font-family:inherit;cursor:pointer}
.exp-btn:active{background:#E3F2FD}
.exp-share{border-color:#1B5E20;color:#1B5E20}
.exp-share:active{background:#E8F5E9}
.bill-list-item{background:#fff;border-radius:14px;padding:12px 14px;box-shadow:0 1px 5px rgba(0,0,0,0.07);display:flex;align-items:center;gap:10px;border:1.5px solid transparent;transition:all 0.15s;cursor:pointer}
.bill-list-item:active{border-color:#90CAF9}
.bli-left{flex:1}
.bli-num{font-size:0.78rem;font-weight:800;color:#0C447C;background:#E3F2FD;padding:2px 8px;border-radius:10px;display:inline-block;margin-bottom:3px}
.bli-name{font-size:0.9rem;font-weight:700}
.bli-sub{font-size:0.7rem;color:#aaa;margin-top:2px}
.bli-right{text-align:right;flex-shrink:0}
.bli-amount{font-size:1.2rem;font-weight:900;color:#1B5E20}
.bli-pay-status{font-size:0.65rem;font-weight:700;padding:2px 8px;border-radius:10px;margin-top:3px;display:inline-block}
.bli-paid{background:#E8F5E9;color:#1B5E20}
.bli-unpaid{background:#FFEBEE;color:#c62828}

/* REPORT */
.report-doc{background:#fff;border-radius:0}
.report-header{background:linear-gradient(135deg,#0D47A1,#1565C0);color:#fff;padding:22px 20px;margin-bottom:0}
.rh-title{font-size:0.8rem;opacity:0.8;margin-bottom:4px;letter-spacing:0.5px}
.rh-village{font-size:1.1rem;font-weight:900;margin-bottom:6px}
.rh-month-badge{background:rgba(255,255,255,0.2);display:inline-block;padding:6px 16px;border-radius:20px;font-size:1rem;font-weight:800}
.rh-meta{font-size:0.72rem;opacity:0.65;margin-top:10px}
.report-kpis{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;padding:14px;background:#F8F9FA}
.rk-card{background:#fff;border-radius:12px;padding:12px;text-align:center;border-left:3px solid #1565C0}
.rk-card.green{border-left-color:#2E7D32}
.rk-card.amber{border-left-color:#E65100}
.rk-card.purple{border-left-color:#6A1B9A}
.rk-num{font-size:1.4rem;font-weight:900;color:#0D47A1}
.rk-num.green{color:#1B5E20}.rk-num.amber{color:#E65100}.rk-num.purple{color:#4A1D96}
.rk-lbl{font-size:0.62rem;color:#999;margin-top:3px;font-weight:600}
.rk-change{font-size:0.62rem;font-weight:700;margin-top:2px;padding:2px 6px;border-radius:8px;display:inline-block}
.rk-up{background:#FFEBEE;color:#c62828}
.rk-down{background:#E8F5E9;color:#1B5E20}
.rk-same{background:#F8F9FA;color:#888}
.report-chart-wrap{padding:14px;background:#fff;border-bottom:1px solid #F0F0F0}
.rct{font-size:0.82rem;font-weight:700;color:#333;margin-bottom:10px}
.report-table-wrap{overflow-x:auto}
.rtable{width:100%;border-collapse:collapse;font-size:0.75rem}
.rtable th{background:#0D47A1;color:#fff;padding:8px 10px;text-align:left;font-weight:700}
.rtable th:last-child,.rtable td:last-child{text-align:right}
.rtable td{padding:7px 10px;border-bottom:1px solid #F5F5F5;vertical-align:middle}
.rtable tr:nth-child(even) td{background:#F8F9FA}
.rtable tr.pending-r td{background:#FFF8F8;color:#c62828}
.rtable tr.total-r td{background:#0D47A1;color:#fff;font-weight:800}
.report-foot{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;background:#F8F9FA;border-top:1px dashed #e0e0e0}
.rf-l{font-size:0.68rem;color:#aaa;line-height:1.5}
.rf-r{font-size:0.65rem;color:#bbb;text-align:right;line-height:1.5}
.report-acts{display:flex;gap:8px;margin-bottom:10px}
.ract{flex:1;background:#fff;border:2px solid #e0e0e0;border-radius:14px;padding:12px 6px;font-size:0.78rem;font-weight:700;font-family:inherit;cursor:pointer;text-align:center;line-height:1.5;min-height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
.ract.share{border-color:#0D47A1;color:#0D47A1}
.ract.pdf{border-color:#6A1B9A;color:#6A1B9A}
.ract.img{border-color:#1B5E20;color:#1B5E20}

/* STAFF */
.staff-greeting{background:linear-gradient(135deg,#1B5E20,#2E7D32);color:#fff;border-radius:14px;padding:14px 16px;margin-bottom:12px}
.sg-name{font-size:1.1rem;font-weight:800}
.sg-role{font-size:0.78rem;opacity:0.8;margin-top:3px}

/* RESIDENT */
.res-portal{padding:12px 12px 30px}
.res-hero{background:linear-gradient(135deg,#E65100,#F4511E);color:#fff;border-radius:20px;padding:20px;margin-bottom:14px}
.rph-village{font-size:0.78rem;opacity:0.8;margin-bottom:4px}
.rph-house{font-size:2.2rem;font-weight:900;line-height:1}
.rph-owner{font-size:0.95rem;margin-top:6px;opacity:0.9}
.rph-month{font-size:0.78rem;opacity:0.7;margin-top:2px}
.res-month-select{background:#fff;border-radius:14px;padding:12px 16px;margin-bottom:12px;box-shadow:0 1px 6px rgba(0,0,0,0.07);display:flex;align-items:center;gap:10px}
.rms-label{font-size:0.78rem;font-weight:700;color:#555;white-space:nowrap}
.rms-select{flex:1;border:1.5px solid #e0e0e0;border-radius:10px;padding:8px 12px;font-size:0.9rem;font-family:inherit;background:#F8F9FA;color:#1a1a2e;outline:none}
.res-stat-section{background:#fff;border-radius:16px;padding:16px;margin-bottom:12px;box-shadow:0 1px 6px rgba(0,0,0,0.07)}
.rss-title{font-size:0.9rem;font-weight:800;color:#0D47A1;margin-bottom:12px;padding-bottom:8px;border-bottom:2px solid #E3F2FD}
.res-stat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:12px}
.rsg-card{background:#EEF2F7;border-radius:12px;padding:12px;text-align:center}
.rsg-num{font-size:1.4rem;font-weight:900;color:#0D47A1}
.rsg-lbl{font-size:0.62rem;color:#777;margin-top:2px;font-weight:600}
.res-chart-wrap{margin-top:6px}
.rct-controls{margin-top:12px}
.rct-controls .rms-select{width:100%}
.rct-note{font-size:0.7rem;color:#aaa;text-align:center;margin-top:8px;padding-top:8px;border-top:1px dashed #e8e8e8}
.res-hist-section{background:#fff;border-radius:16px;padding:16px;margin-bottom:14px;box-shadow:0 1px 6px rgba(0,0,0,0.07)}
.res-hist-table{width:100%;border-collapse:collapse}
.rht th{font-size:0.68rem;color:#999;font-weight:700;padding:6px 4px;border-bottom:1.5px solid #EEF2F7;text-align:left}
.rht td{font-size:0.82rem;padding:8px 4px;border-bottom:1px solid #F5F5F5}
.rht tr.cur td{font-weight:700;color:#0D47A1;background:#EEF2F7}
.rht tr:last-child td{border-bottom:none}
.res-share-btn{width:100%;background:linear-gradient(135deg,#E65100,#F4511E);color:#fff;border:none;border-radius:16px;padding:15px;font-size:1rem;font-weight:800;font-family:inherit;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:12px}
.res-export-row{display:flex;gap:8px;margin-bottom:14px}
.res-exp-btn{flex:1;background:#fff;border:2px solid #e0e0e0;border-radius:12px;padding:10px;font-size:0.75rem;font-weight:700;font-family:inherit;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:3px;min-height:60px;justify-content:center}
.res-exp-btn.pdf{border-color:#6A1B9A;color:#6A1B9A}
.res-exp-btn.img{border-color:#1B5E20;color:#1B5E20}
.res-note{font-size:0.72rem;color:#aaa;text-align:center;padding:10px 16px;line-height:1.5;border-top:1px dashed #e8e8e8;margin-top:4px}

/* QR UPLOAD */
.qr-upload-area{border:2px dashed #e0e0e0;border-radius:14px;padding:20px;text-align:center;cursor:pointer;transition:border-color 0.2s;background:#fafafa}
.qr-upload-area:hover{border-color:#1565C0}
.qr-preview-wrap{display:flex;flex-direction:column;align-items:center;color:#aaa}
.qr-preview-img{max-width:150px;max-height:150px;border-radius:10px;border:1px solid #e0e0e0}

/* ABOUT */
.about-card{background:linear-gradient(135deg,#0D47A1,#1565C0);border-radius:18px;padding:22px;text-align:center;margin-top:12px;color:#fff}
.about-logo{font-size:2.5rem;margin-bottom:8px}
.about-name{font-size:0.95rem;font-weight:800;margin-bottom:4px}
.about-ver{font-size:0.72rem;background:rgba(255,255,255,0.2);padding:3px 12px;border-radius:20px;display:inline-block;margin-bottom:10px}
.about-dev{font-size:0.82rem;opacity:0.9;margin-bottom:3px}
.about-contact{font-size:0.8rem;opacity:0.8;margin-bottom:8px}
.about-copy{font-size:0.65rem;opacity:0.4}

/* STAFF LIST */
.staff-item{background:#fff;border-radius:14px;padding:12px 14px;box-shadow:0 1px 5px rgba(0,0,0,0.07);display:flex;align-items:center;gap:10px;border:1.5px solid transparent}
.si-avatar{width:40px;height:40px;border-radius:50%;background:#E8F5E9;display:flex;align-items:center;justify-content:center;font-size:1.2rem;flex-shrink:0}
.si-info{flex:1}
.si-name{font-size:0.95rem;font-weight:700}
.si-role{font-size:0.7rem;color:#888;margin-top:2px}
.si-del{padding:6px 10px;border-radius:8px;border:none;font-size:0.72rem;font-weight:700;font-family:inherit;cursor:pointer;background:#FFEBEE;color:#c62828}

/* BOTTOM NAV */
.bottom-nav{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #E8ECEF;display:flex;align-items:center;height:70px;z-index:100;box-shadow:0 -2px 12px rgba(0,0,0,0.06)}
.nav-btn{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:none;background:none;color:#aaa;font-size:0.58rem;font-family:inherit;font-weight:700;cursor:pointer;padding:6px 2px;min-height:44px;transition:color 0.15s}
.nav-btn.active{color:#0D47A1}
.nav-btn.active svg{stroke:#0D47A1}
.nav-btn svg{stroke:#aaa;transition:stroke 0.15s}
.add-nav svg{stroke:#0D47A1;background:#E3F2FD;border-radius:50%;padding:4px;width:34px;height:34px}
.add-nav{color:#0D47A1}

/* PICK HOUSE */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.55);z-index:300;display:flex;align-items:flex-end;justify-content:center;padding:16px}
.modal-overlay.hidden{display:none}
.modal-box{background:#fff;border-radius:24px 24px 18px 18px;padding:22px;width:100%;max-width:440px;box-shadow:0 8px 40px rgba(0,0,0,0.25)}
.modal-box.tall-modal{max-height:80vh;display:flex;flex-direction:column;border-radius:24px}
.modal-title{font-size:1.05rem;font-weight:800;margin-bottom:10px}
.modal-body{font-size:0.95rem;color:#666;line-height:1.6;margin-bottom:18px}
.modal-btns{display:flex;gap:10px}
.modal-cancel{flex:1;padding:13px;border:2px solid #e0e0e0;border-radius:12px;background:#fff;font-size:0.95rem;font-weight:700;font-family:inherit;cursor:pointer;color:#666}
.modal-confirm{flex:1;padding:13px;border:none;border-radius:12px;background:#c62828;color:#fff;font-size:0.95rem;font-weight:700;font-family:inherit;cursor:pointer}
.pick-search{padding:8px 0;flex-shrink:0}
.pick-search input{width:100%;border:2px solid #e0e0e0;border-radius:10px;padding:11px 13px;font-size:0.95rem;font-family:inherit;outline:none}
.pick-search input:focus{border-color:#1565C0}
.pick-list{overflow-y:auto;flex:1}
.pick-item{display:flex;align-items:center;gap:10px;padding:12px 4px;border-bottom:1px solid #F5F5F5;cursor:pointer;border-radius:10px;transition:background 0.1s}
.pick-item:active{background:#E3F2FD}
.pick-num{font-size:0.85rem;font-weight:800;color:#0C447C;background:#E3F2FD;padding:4px 11px;border-radius:14px;white-space:nowrap}
.pick-info{flex:1}
.pick-name{font-size:0.9rem;font-weight:700}
.pick-sub{font-size:0.72rem;color:#aaa;margin-top:2px}
.pick-status{font-size:0.68rem;font-weight:700;padding:3px 8px;border-radius:10px;white-space:nowrap}

/* TOAST */
.toast{position:fixed;bottom:82px;left:50%;transform:translateX(-50%);background:#1a1a2e;color:#fff;padding:12px 22px;border-radius:16px;font-size:0.9rem;font-weight:700;z-index:400;white-space:nowrap;box-shadow:0 4px 20px rgba(0,0,0,0.3);max-width:92vw;text-align:center}
.toast.hidden{display:none}
.toast.success{background:#1B5E20}
.toast.error{background:#B71C1C}

@supports (padding-bottom: env(safe-area-inset-bottom)){
  .bottom-nav{padding-bottom:env(safe-area-inset-bottom)}
  body{padding-bottom:calc(70px + env(safe-area-inset-bottom))}
}

/* CHART TYPE TOGGLE */
.chart-type-row{display:flex;gap:5px;flex-wrap:wrap}
.chart-type-btn{padding:5px 10px;border:1.5px solid #e0e0e0;border-radius:20px;background:#fff;font-size:0.72rem;font-weight:700;font-family:inherit;color:#666;cursor:pointer;white-space:nowrap;transition:all 0.15s}
.chart-type-btn.active{background:#0D47A1;color:#fff;border-color:#0D47A1}

/* MONTHS LIST in settings */
#monthsList .month-item{display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:10px;margin-bottom:6px}

/* STAFF item in settings (smaller) */
#staffList .staff-item{margin-bottom:6px}

/* ===== BILL MOBILE (iPhone-first) ===== */
.bill-mobile{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,0.1);margin-bottom:10px;font-family:'Sarabun','Noto Sans Thai',sans-serif;width:100%;max-width:390px;margin-left:auto;margin-right:auto;display:block}

.bm-header{background:#0D47A1;padding:14px 16px;display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.bm-hdr-top{flex:1}
.bm-village{font-size:0.75rem;color:rgba(255,255,255,0.75);font-weight:600;margin-bottom:2px}
.bm-doc-label{font-size:0.8rem;color:rgba(255,255,255,0.9);font-weight:700;letter-spacing:0.3px}
.bm-month-tag{background:rgba(255,255,255,0.2);color:#fff;font-size:0.72rem;font-weight:700;padding:4px 10px;border-radius:20px;white-space:nowrap;align-self:flex-start;border:1px solid rgba(255,255,255,0.25)}

.bm-house-section{padding:12px 16px 0;border-bottom:1px dashed #EEF2F7}
.bm-house-no{font-size:1.25rem;font-weight:900;color:#0D47A1;line-height:1.1}
.bm-owner{font-size:0.92rem;font-weight:700;color:#1a1a2e;margin-top:2px}
.bm-phone{font-size:0.75rem;color:#888;margin-top:2px;padding-bottom:12px}

.bm-amount-section{background:linear-gradient(135deg,#E8F5E9,#F1F8E9);margin:10px 12px;border-radius:12px;padding:14px;text-align:center;border:1.5px solid #A5D6A7}
.bm-amt-label{font-size:0.7rem;font-weight:800;color:#1B5E20;letter-spacing:0.8px;text-transform:uppercase;margin-bottom:4px}
.bm-amt-value{font-size:2.4rem;font-weight:900;color:#1B5E20;line-height:1;letter-spacing:-0.5px;display:flex;align-items:baseline;justify-content:center;gap:6px}
.bm-amt-hint{font-size:0.68rem;color:#888;margin-top:4px}

.bm-detail-section{padding:0 16px 10px}
.bm-detail-row{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid #F5F5F5;gap:8px}
.bm-detail-row:last-child{border-bottom:none}
.bm-dl{font-size:0.78rem;color:#666;flex:1}
.bm-dv{font-size:0.88rem;font-weight:700;color:#1a1a2e;text-align:right;white-space:nowrap}
.bm-dv-blue{color:#0D47A1}
.bm-dv-green{color:#1B5E20;font-size:1rem;font-weight:900}
.bm-highlight-row{background:#F8F9FA;margin:0 -4px;padding:8px 4px;border-radius:8px}
.bm-total-row{background:#E8F5E9;margin:0 -4px;padding:10px 4px;border-radius:8px;border-bottom:none!important}
.bm-dl-bold{font-weight:800;color:#333;font-size:0.82rem}

.bm-graph-section{padding:10px 16px;border-top:1px dashed #EEF2F7}
.bm-graph-label{font-size:0.72rem;font-weight:700;color:#666;margin-bottom:8px}

.bm-qr-section{border-top:1.5px dashed #C8E6C9;padding:14px 16px;text-align:center;background:#FAFFFE}
.bm-qr-label{font-size:0.78rem;font-weight:800;color:#0D47A1;margin-bottom:10px}
.bm-qr-img{width:140px;height:140px;object-fit:contain;border-radius:10px;border:1.5px solid #e0e0e0}
.bm-bank-text{font-size:0.8rem;color:#333;font-weight:600;margin-top:6px}

.bm-footer{background:#F0F4F8;padding:10px 16px;display:flex;justify-content:space-between;align-items:center;gap:8px}
.bm-footer-recorder{font-size:0.68rem;color:#888;line-height:1.4}
.bm-footer-credit{font-size:0.62rem;color:#bbb;text-align:right;white-space:nowrap}

/* ===== SLIP SYSTEM ===== */
.ab-slip-view{background:#FFF3E0;color:#E65100}
.ab-slip-add{background:#E8F5E9;color:#1B5E20}

/* Slip Upload Modal */
.slip-upload-area{border:2px dashed #e0e0e0;border-radius:14px;padding:20px;text-align:center;cursor:pointer;transition:border-color 0.2s;background:#fafafa;min-height:120px;display:flex;align-items:center;justify-content:center;margin:10px 0}
.slip-upload-area:hover{border-color:#1565C0;background:#F0F8FF}
.slip-upload-area:active{border-color:#0D47A1}

/* Slip Viewer Modal */
.slip-view-box{background:#fff;border-radius:20px;width:calc(100% - 32px);max-width:420px;overflow:hidden;box-shadow:0 12px 48px rgba(0,0,0,0.35);display:flex;flex-direction:column;max-height:88vh}
.slip-view-header{background:#0D47A1;color:#fff;padding:14px 18px;display:flex;justify-content:space-between;align-items:center;flex-shrink:0}
.slip-view-title{font-size:0.95rem;font-weight:700}
.slip-view-close{background:rgba(255,255,255,0.25);border:none;color:#fff;width:34px;height:34px;border-radius:50%;font-size:1.1rem;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.slip-view-close:active{background:rgba(255,255,255,0.4)}
.slip-view-body{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;align-items:center;gap:10px}
.slip-view-img{width:100%;max-height:50vh;object-fit:contain;border-radius:10px;border:1px solid #e0e0e0;background:#F8F9FA}
.slip-view-meta{width:100%;background:#F0F4F8;border-radius:12px;padding:10px 14px;font-size:0.8rem;line-height:2;color:#555}
.slip-view-meta div{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid #E8ECEF;padding:2px 0}
.slip-view-meta div:last-child{border-bottom:none}
.slip-view-meta span{color:#888}
.slip-view-meta b{color:#1a1a2e;text-align:right}
.slip-view-actions{display:flex;gap:8px;padding:12px 14px;border-top:1px solid #F0F0F0;flex-shrink:0;background:#FAFAFA}
.slip-act-btn{flex:1;padding:13px 8px;border-radius:12px;border:none;font-size:0.88rem;font-weight:700;font-family:inherit;cursor:pointer;transition:opacity 0.15s}
.slip-act-btn:active{opacity:0.75}
.slip-share{background:#0D47A1;color:#fff}
.slip-del{background:#FFEBEE;color:#c62828;border:1.5px solid #FFCDD2}

/* Slip indicator on bill list */
.bli-slip-badge{font-size:0.62rem;background:#FFF3E0;color:#E65100;padding:2px 6px;border-radius:8px;font-weight:700;display:inline-block;margin-left:4px}

/* BAHT SYMBOL FIX - use word "บาท" styled to look like ฿ */
.bm-baht{
  font-size:0.9rem;
  font-weight:700;
  color:#1B5E20;
  font-family:'Sarabun','Noto Sans Thai',sans-serif;
  letter-spacing:0;
  align-self:flex-end;
  margin-bottom:4px;
}
/* Force font on bill elements for export */
.bill-mobile *,.bill-card-pro *{
  font-family:'Sarabun','Noto Sans Thai',Arial,sans-serif !important;
}

/* ===== BILL AS RENDERED CANVAS (live <canvas>, WYSIWYG, mobile-safe) ===== */
.bill-img-wrap{
  position:relative;
  width:100%;
  max-width:360px;
  margin:0 auto;
  display:block;
}
.bill-render-img{
  width:100%;
  height:auto;
  display:block;
  vertical-align:top;
  border-radius:16px;
  box-shadow:0 2px 12px rgba(0,0,0,0.1);
  background:#fff;
}
.qr-tap-zone{
  position:absolute;
  border:none;
  background:transparent;
  padding:0;
  margin:0;
  cursor:pointer;
  border-radius:14px;
  -webkit-appearance:none;
  appearance:none;
  -webkit-tap-highlight-color:transparent;
}
.qr-tap-zone:active{background:rgba(13,71,161,0.12)}
.qr-tap-badge{
  position:absolute;
  bottom:6px;
  right:6px;
  width:30px;
  height:30px;
  border-radius:50%;
  background:rgba(13,71,161,0.85);
  color:#fff;
  font-size:0.85rem;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 2px 6px rgba(0,0,0,0.25);
  pointer-events:none;
}

/* QR Zoom Modal */
.qr-zoom-box{
  background:#fff;
  border-radius:22px;
  padding:22px;
  width:calc(100% - 32px);
  max-width:360px;
  text-align:center;
  box-shadow:0 12px 48px rgba(0,0,0,0.3);
}
.qr-zoom-title{font-size:1rem;font-weight:800;color:#0D47A1;margin-bottom:16px}
.qr-zoom-img{width:100%;max-width:300px;border-radius:14px;border:1px solid #e0e0e0}
.qr-zoom-close{
  width:100%;
  margin-top:16px;
  padding:14px;
  border:2px solid #e0e0e0;
  border-radius:14px;
  background:#fff;
  font-weight:700;
  font-size:0.95rem;
  font-family:inherit;
  color:#666;
  cursor:pointer;
}
.qr-zoom-close:active{background:#F8F9FA}

/* ===== PAGINATION ===== */
.pagination-bar{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  margin-top:14px;
  padding:8px 0 4px;
}
.pg-arrow{
  width:42px;height:42px;
  border-radius:50%;
  border:1.5px solid #e0e0e0;
  background:#fff;
  font-size:1.4rem;
  font-weight:700;
  color:#0D47A1;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
  transition:all 0.15s;
}
.pg-arrow:active:not(:disabled){background:#E3F2FD;border-color:#90CAF9}
.pg-arrow:disabled{opacity:0.3;cursor:default;color:#bbb}
.pg-label{
  font-size:0.85rem;
  font-weight:700;
  color:#444;
  text-align:center;
  white-space:nowrap;
}
.pg-total{
  font-size:0.7rem;
  font-weight:600;
  color:#aaa;
  display:block;
  margin-top:2px;
}

/* ===== STAFF DASHBOARD: COLLECTION PROGRESS ===== */
.summary-strip{display:flex;flex-direction:column;gap:0}
.collect-progress-card{
  background:linear-gradient(135deg,#E8F5E9,#F1F8E9);
  border:1.5px solid #A5D6A7;
  border-radius:16px;
  padding:16px;
  margin-bottom:10px;
}
.cp-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.cp-label{font-size:0.85rem;font-weight:800;color:#1B5E20}
.cp-pct{font-size:1.05rem;font-weight:900;color:#1B5E20;background:rgba(255,255,255,0.65);padding:3px 13px;border-radius:20px}
.cp-amounts{display:flex;align-items:baseline;gap:6px;margin-bottom:8px;flex-wrap:wrap}
.cp-paid{font-size:1.9rem;font-weight:900;color:#1B5E20;line-height:1}
.cp-sep{font-size:0.9rem;font-weight:700;color:#5a8a5e}
.cp-empty{font-size:0.72rem;color:#7a9a7d;margin-top:6px;text-align:center}
.progress-bar-fill.green{background:#2E7D32}

/* Extra dg-card color variant: red (urgent) */
.dg-card.red{border-top-color:#c62828}
.dg-num.red{color:#c62828}

/* ===== ADMIN DASHBOARD: TREND CHART + SHORTCUTS ===== */
.dashboard-chart-card{
  background:#fff;
  border-radius:16px;
  padding:14px;
  margin-bottom:12px;
  box-shadow:0 1px 6px rgba(0,0,0,0.07);
}
.dch-title{font-size:0.82rem;font-weight:700;color:#555;margin-bottom:10px}
.dch-empty{text-align:center;color:#bbb;font-size:0.78rem;padding:30px 10px}

.dashboard-shortcuts{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:8px}
.dsh-btn{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  background:#fff;border:1.5px solid #EEF2F7;border-radius:14px;
  padding:18px 8px;font-family:inherit;cursor:pointer;transition:all 0.15s;
  min-height:84px;
}
.dsh-btn:active{background:#F0F4F8;border-color:#90CAF9}
.dsh-icon{font-size:1.9rem;line-height:1}
.dsh-label{font-size:0.8rem;font-weight:700;color:#444}

/* ===== FLOATING ADD BUTTON ===== */
.fab-add{
  position:fixed;
  bottom:86px;
  right:18px;
  display:flex;align-items:center;gap:7px;
  background:#0D47A1;color:#fff;
  border:none;border-radius:30px;
  padding:14px 22px;
  font-size:0.9rem;font-weight:700;font-family:inherit;
  box-shadow:0 4px 16px rgba(13,71,161,0.35);
  cursor:pointer;
  z-index:90;
}
.fab-add:active{background:#0A3A85}
.fab-add svg{flex-shrink:0}

/* Staff bottom nav active state (green theme) */
#staffApp .nav-btn.active{color:#1B5E20}
#staffApp .nav-btn.active svg{stroke:#1B5E20}

/* Receipt button on house cards */
.ab-receipt{background:#E8F5E9;color:#1B5E20;font-weight:800}

/* Resident receipt view toggle */
.res-receipt-toggle{
  display:block;width:100%;margin:12px 0 0;
  padding:13px;border:2px solid #A5D6A7;border-radius:14px;
  background:#F1F8E9;color:#1B5E20;
  font-weight:700;font-size:0.88rem;font-family:inherit;
  cursor:pointer;text-align:center;
}
.res-receipt-toggle:active{background:#E8F5E9}
.res-receipt-section{margin-top:10px}
.res-receipt-section.hidden{display:none}

/* ===== PAYMENT METHOD BREAKDOWN (cash vs transfer) ===== */
.cp-method-row{
  display:flex;
  gap:10px;
  margin-top:10px;
  padding-top:10px;
  border-top:1px dashed #C8E6C9;
}
.cp-method-row.standalone{
  border-top:none;
  padding-top:0;
  margin-top:0;
  background:#fff;
  border-radius:14px;
  padding:12px;
  box-shadow:0 1px 6px rgba(0,0,0,0.07);
  margin-bottom:12px;
}
.cp-method-item{flex:1;text-align:center}
.cp-method-lbl{display:block;font-size:0.68rem;font-weight:700;color:#888;margin-bottom:3px}
.cp-method-val{display:block;font-size:1rem;font-weight:900;color:#1B5E20}
