:root{--green:#23634f;--forest:#163f35;--ink:#1f302a;--muted:#77857d;--line:#e6ebe7;--surface:#f5f7f5;--amber:#d6a05e;--red:#b84343;--radius:14px;font-family:'Segoe UI',Arial,sans-serif;color:var(--ink);font-size:14px;color-scheme:light}*{box-sizing:border-box}body{margin:0;background:var(--surface)}[hidden]{display:none!important}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button:focus-visible,a:focus-visible{outline:3px solid #8dbcaa;outline-offset:3px}input:focus,select:focus,textarea:focus{outline:2px solid #81b39d;outline-offset:1px}input,select,textarea{border:1px solid #dfe6e0;background:white;border-radius:8px;color:var(--ink);padding:11px 12px;min-width:0}input::placeholder,textarea::placeholder{color:#96a299}.sprite{position:absolute;width:0;height:0;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}h1,h2,p{margin:0}h1{font-size:28px;letter-spacing:-.9px;line-height:1.25;font-weight:650}h2{font-size:16px;font-weight:650;letter-spacing:-.3px}small{font-size:11px}.app-shell{display:flex;min-height:100vh}.sidebar{width:244px;flex-shrink:0;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;position:fixed;height:100vh;padding:31px 22px 18px;z-index:5}.brand{display:flex;align-items:center;gap:11px;font-size:23px;letter-spacing:-.9px;font-weight:750}.brand-symbol{width:40px;height:44px;background:var(--forest);color:#dcecdf;display:grid;place-items:center;border-radius:12px 12px 12px 3px}.brand-symbol svg{width:28px;height:28px;stroke-width:1.4}.brand-soft{font-weight:400;color:#577464}.brand small{display:block;font-size:7px;letter-spacing:1.6px;color:#8a958e;margin-top:4px;font-weight:600}.mosque-card{display:flex;align-items:center;gap:10px;background:#f5f7f4;border:1px solid #e8ede7;border-radius:10px;padding:13px 10px;margin:34px 0 29px}.mosque-avatar{width:33px;height:34px;border-radius:8px;color:#62866b;background:#e7ede2;display:grid;place-items:center}.mosque-card strong{font-size:12px;display:block;max-width:142px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mosque-card small{display:block;color:var(--muted);margin-top:4px;font-size:10px}.nav-label{font-size:9px;letter-spacing:1.8px;color:#929d94;padding:0 12px;margin-bottom:11px;font-weight:650}.nav-item{border:0;display:flex;align-items:center;gap:13px;width:100%;background:transparent;padding:13px 14px;border-radius:8px;text-align:left;color:#7b867e;font-size:12px;margin:4px 0;font-weight:500}.nav-item.active{background:#edf4ed;color:var(--green);font-weight:650}.nav-item:hover{background:#f0f4ef}.nav-item svg{width:18px;height:18px}.nav-dot{width:5px;height:5px;background:var(--green);border-radius:50%;margin-left:auto}.sidebar-tip{margin-top:auto;background:#f5f7f1;border:1px solid #e9ede1;border-radius:10px;padding:16px 13px}.tip-icon{height:25px;width:25px;background:#e6eddf;border-radius:50%;display:grid;place-items:center;color:#6f8a61;margin-bottom:10px}.tip-icon svg{width:14px;height:14px}.sidebar-tip strong{font-size:11px}.sidebar-tip p{font-size:10px;line-height:1.8;color:#899080;margin-top:7px}.user-card{display:flex;align-items:center;gap:9px;border-top:1px solid var(--line);margin-top:23px;padding-top:20px}.user-avatar{width:33px;height:33px;border-radius:50%;display:grid;place-items:center;background:#eee9df;color:#7b725d;font-size:13px;font-weight:650}.user-card strong{font-size:11px;display:block;max-width:104px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-card small{font-size:9px;color:var(--muted);display:block;margin-top:3px}.user-card .icon-button{margin-left:auto}.icon-button{display:grid;place-items:center;border:0;background:transparent;color:#7e8a80;width:32px;height:32px;border-radius:6px;padding:5px}.icon-button:hover{background:#edf2ed;color:var(--green)}.icon-button svg{width:17px;height:17px}.sidebar-bottom{display:flex;justify-content:space-between;margin-top:24px;font-size:8px;letter-spacing:1.6px;color:#b0b8b0}.sidebar-bottom span{letter-spacing:0}.workspace{margin-left:244px;width:calc(100% - 244px)}.topbar{height:73px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 36px}.breadcrumb{font-size:11px;color:#8c968e;display:flex;gap:14px;align-items:center}.breadcrumb span{color:#c2c8c2}.breadcrumb strong{font-weight:500;color:#5c6d61}.sync-status{display:flex;align-items:center;gap:7px;font-size:10px;color:#718379}.status-dot,.light-dot,.mini-dot,.legend-dot{display:inline-block;flex-shrink:0;width:6px;height:6px;border-radius:50%;background:#67a57d}.status-dot.error{background:#c2675e}.status-dot.pending{background:#d0a561}.content{padding:33px 36px 20px;max-width:1600px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.eyebrow{display:block;color:#738b78;font-size:9px;letter-spacing:2px;font-weight:700;margin-bottom:9px}.page-heading p{color:var(--muted);font-size:11px;margin-top:10px}.heading-actions{display:flex;gap:10px;align-items:center}.button{padding:11px 15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:8px;font-size:11px;font-weight:600;white-space:nowrap;min-height:39px}.button svg{width:16px;height:16px}.button.primary{background:var(--green);color:white;box-shadow:0 3px 4px #23634f13}.button.primary:hover{background:#1c5341}.button.secondary{background:white;color:#65736a;border-color:#dfe6df}.button.secondary:hover{background:#f6f9f5}.button.danger{background:var(--red);color:white}.button:disabled,.page-button:disabled{opacity:.5;cursor:default}.month-control{display:flex;align-items:center;border:1px solid #dfe6df;background:#fff;border-radius:8px;padding-left:12px;color:#7b887e}.month-control svg{width:16px;height:16px}.month-control input{border:0;background:transparent;padding:10px 8px;font-size:11px;width:153px}.summary-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr .8fr;gap:16px;margin-bottom:23px}.summary-card{padding:20px;background:white;border:1px solid var(--line);border-radius:var(--radius);min-height:153px;position:relative;overflow:hidden}.card-label{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#758379;height:27px;gap:6px;position:relative;z-index:1}.card-label>svg{color:#b7d2c4}.amount{display:block;font-size:26px;font-weight:650;letter-spacing:-.8px;margin-top:10px;white-space:nowrap;position:relative;z-index:1}.card-foot{display:flex;align-items:center;gap:6px;font-size:9px;color:#89988d;margin-top:16px;position:relative;z-index:1}.balance-card{background:var(--forest);color:white;border:0}.balance-card .card-label{color:#c2d6ca}.balance-card .card-foot{color:#acc7b5}.light-dot{background:#b3d5ba;width:5px;height:5px}.balance-decoration{position:absolute;bottom:-27px;right:-14px;width:150px;height:150px;stroke:#d1e6d5;opacity:.08;stroke-width:1}.metric-icon{width:29px;height:29px;border-radius:8px;display:grid;place-items:center}.metric-icon svg{width:16px;height:16px}.income{background:#edf5ed;color:#578666}.expense{background:#fbf2e8;color:#bb8950}.neutral{background:#f0f2ef;color:#7d8b7d}.green{background:#578667}.amber{background:var(--amber)}.gray{background:#9aa89d}.mini-dot{width:5px;height:5px}.chart-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:22px;margin-bottom:23px}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.panel-heading{display:flex;justify-content:space-between;align-items:center;padding:21px 23px 15px;gap:12px}.panel-heading p{color:#89948b;font-size:10px;margin-top:7px}.chip{border:1px solid #e2e8e1;border-radius:6px;padding:5px 10px;font-size:9px;color:#819080}.chart-legend{display:flex;align-items:center;gap:17px;margin:4px 23px 6px;color:#7d8c80;font-size:9px}.chart-legend span{display:flex;align-items:center;gap:6px}.legend-dot{width:7px;height:7px}.chart-legend small{margin-left:auto;font-size:9px}.chart-container{padding:0 18px 10px;min-height:223px}.chart-container svg{width:100%;height:auto;display:block;stroke:none;max-height:240px}.chart-grid .panel{min-height:326px}.donut-wrap{display:flex;justify-content:center;position:relative;padding:7px 0 3px}.donut-wrap svg{width:130px;height:130px;stroke-linecap:butt;stroke-width:14px;stroke:none}.donut-text{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}.donut-text small{font-size:9px;color:#97a092}.donut-text strong{font-size:17px;margin-top:6px;letter-spacing:-.4px}.spending-legend{padding:3px 23px 17px;display:grid;gap:9px}.spending-item{display:flex;align-items:center;gap:8px;font-size:10px;color:#7e8b7f}.spending-item strong{margin-left:auto;font-weight:500;color:#4f6656}.spending-item svg{width:7px;height:7px;stroke:none}.spending-item small{font-size:9px;color:#98a295;min-width:28px;text-align:right}.breakdown-empty{font-size:11px;line-height:1.8;text-align:center;color:#8b988e;padding:25px}.transactions-panel .panel-heading{padding-bottom:20px}.table-filters{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 23px 17px}.search-box{display:flex;align-items:center;gap:8px;max-width:370px;flex:1}.search-box svg{width:17px;height:17px;color:#96a297}.search-box input{border:0;padding:6px 0;font-size:10px;width:100%;background:transparent}.filter-selects{display:flex;gap:8px}.filter-selects select{font-size:10px;padding:7px 27px 7px 10px;border-radius:6px;color:#78877c}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:11px}th{color:#95a094;font-weight:500;font-size:9px;text-transform:uppercase;letter-spacing:.8px;background:#f9faf7;padding:12px 18px;border-top:1px solid #eff2ec;border-bottom:1px solid #eff2ec}th:first-child,td:first-child{padding-left:23px}th:last-child,td:last-child{padding-right:23px}td{padding:15px 18px;border-bottom:1px solid #eff2ed;color:#7d8b80}.align-right{text-align:right}.align-center{text-align:center}.transaction-cell{display:flex;align-items:center;gap:10px}.row-icon{width:29px;height:29px;border-radius:8px;display:grid;place-items:center;flex-shrink:0}.row-icon svg{width:15px;height:15px}.row-title{display:block;max-width:230px;overflow:hidden;text-overflow:ellipsis;font-size:11px;font-weight:550;color:#4f6657}.row-party{font-size:9px;margin-top:4px;display:block;max-width:220px;overflow:hidden;text-overflow:ellipsis}.category-chip{font-size:9px;padding:4px 8px;border-radius:5px;background:#f4f6f0;color:#788670}.money-income{font-weight:600;color:#538567}.money-expense{font-weight:600;color:#bd925e}.voided-row{background:#fcfaf8}.voided-row .row-title{text-decoration:line-through}.void-label{font-size:9px;color:#a8756b;white-space:normal;display:block;max-width:160px;margin:auto}.void-action{border:0;color:#8b958c;background:transparent;font-size:9px;padding:6px 9px;border-radius:5px}.void-action:hover{color:#ad5147;background:#faf0eb}.table-footer{display:flex;justify-content:space-between;align-items:center;padding:15px 23px;color:#99a298;font-size:10px}.pagination{display:flex;align-items:center;gap:13px}.page-button{background:white;border:1px solid #e4e9e0;border-radius:5px;color:#748a78;width:26px;height:26px;font-size:18px}.empty-state{text-align:center;padding:46px 20px!important;font-size:11px;color:#89968d;white-space:normal}.page-footer{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#a0aaa0;margin-top:21px;gap:15px}.demo-banner{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#fcf4e5;color:#a17c43;border:1px solid #eedfbd;border-radius:8px;padding:11px 14px;font-size:10px;margin-bottom:23px}.text-button{border:0;background:transparent;color:inherit;text-decoration:underline;font-size:10px;white-space:nowrap}.connection-error{font-size:11px;background:#fff1ed;color:#ab5b4b;padding:13px;border:1px solid #efd5ca;border-radius:8px;margin-bottom:20px;line-height:1.7}.report-panel{margin-bottom:23px}.report-lines{padding:10px 24px 20px;max-width:760px}.report-lines>div{display:flex;justify-content:space-between;padding:16px 0;border-bottom:1px solid var(--line);font-size:12px;color:#7b897e;gap:20px}.report-lines strong{color:#3f5a49;font-weight:600}.report-lines .report-total{font-weight:600;color:var(--forest)}.report-total strong{font-size:20px}.report-note{padding:0 24px 23px;font-size:11px;color:#89958b;line-height:1.8}dialog{width:min(530px,calc(100% - 32px));border:0;border-radius:16px;padding:28px;color:var(--ink);box-shadow:0 20px 100px #102d3433;max-height:calc(100dvh - 32px);overflow:auto}dialog::backdrop{background:#173b3566;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.dialog-heading h2{font-size:21px}.dialog-intro{font-size:12px;color:#839184;line-height:1.8;margin:12px 0 20px}form>label,.form-grid>label,.login-card label{display:flex;flex-direction:column;gap:8px;font-size:11px;color:#65756b;margin-top:16px;font-weight:550}form label small{font-weight:400;color:#96a094;font-size:10px}form input,form select,form textarea{width:100%;font-size:12px;font-weight:400}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.optional{color:#9ca697;font-weight:400;font-size:10px}.type-toggle{border:0;padding:0;margin:0;display:flex;gap:10px}.type-toggle label{flex:1;position:relative}.type-toggle input{position:absolute;opacity:0;inset:0;width:100%;height:100%;cursor:pointer}.type-toggle span{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #dfe6db;border-radius:8px;padding:12px;font-size:12px;color:#8a9689}.type-toggle input:checked+span{color:var(--green);background:#edf5ed;border-color:#8eba9d}.type-toggle input:focus-visible+span{outline:3px solid #93baa1}.type-toggle svg{width:17px;height:17px}.dialog-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.form-error{padding:11px;background:#fcf0eb;color:#ac5745;border-radius:6px;margin-top:15px;font-size:11px;line-height:1.8}.void-detail{padding:14px;background:#f5f7f1;border-radius:7px;font-size:12px;line-height:1.8}.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:#214d3d;color:#fff;padding:14px 22px;border-radius:10px;box-shadow:0 8px 30px #14322730;font-size:12px;z-index:20;max-width:90vw}.login-screen{display:grid;grid-template-columns:1fr 1.1fr;min-height:100vh}.login-story{background:var(--forest);color:#fff;padding:50px 60px;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh;position:relative;overflow:hidden}.login-story:after{content:'';position:absolute;width:550px;height:550px;border:1px solid #8bb39f1a;border-radius:50%;right:-310px;bottom:-190px;box-shadow:0 0 0 70px #8bb39f08,0 0 0 140px #8bb39f05;pointer-events:none}.brand.light .brand-symbol{background:#ffffff14;color:#c1dac9}.brand.light .brand-soft{color:#c1dac9}.brand.light small{color:#81a895}.login-story .eyebrow{color:#95b89f;font-size:10px}.login-story h1{font-size:54px;line-height:1.17;letter-spacing:-2px;margin-top:20px}.login-story p{font-size:14px;color:#a9c3b4;line-height:1.9;margin-top:24px;max-width:340px}.story-check{display:flex;align-items:center;gap:8px;color:#bfd0c3;font-size:11px;margin-top:40px}.story-check svg{background:#ffffff10;width:22px;height:22px;padding:4px;border-radius:50%}.login-story>small{color:#7f9d8e;font-size:10px}.login-panel{display:flex;align-items:center;justify-content:center;padding:45px;background:#fcfdfb}.login-card{width:100%;max-width:355px}.login-icon{display:grid;place-items:center;background:#edf4e9;border-radius:12px;width:51px;height:51px;color:var(--green);margin-bottom:24px}.login-icon svg{width:30px;height:30px}.login-card h2{font-size:25px;letter-spacing:-.7px}.login-card>p{font-size:12px;color:#8b988b;line-height:1.8;margin-top:12px}.login-card label{margin-top:24px}.login-card .button{margin-top:25px;height:44px;font-size:12px;justify-content:space-between}.full{width:100%}.login-card .login-note{font-size:10px;text-align:center;margin-top:20px;color:#9da797}.demo-link{display:block;font-size:11px;color:var(--green);text-align:center;margin-top:20px}.noscript{padding:30px;text-align:center}body.booting:before{content:'Menyiapkan Kas Masjid…';position:fixed;inset:0;display:grid;place-items:center;color:#78907d;font-size:13px;background:var(--surface);z-index:50}
@media(min-width:1450px){.amount{font-size:29px}.content{padding-top:39px}.chart-grid .panel{min-height:350px}.chart-container{padding-top:15px}.chart-container svg{max-height:250px}.donut-wrap{padding:14px 0}.spending-legend{gap:12px}.page-heading{margin-bottom:31px}}
@media(max-width:1190px){.sidebar{width:208px;padding:25px 16px 17px}.workspace{margin-left:208px;width:calc(100% - 208px)}.content{padding:28px 24px 18px}.topbar{padding:0 24px}.brand{font-size:21px;gap:8px}.summary-card{padding:17px 15px}.amount{font-size:21px}.summary-grid{gap:11px}.card-label{font-size:10px}.metric-icon{width:24px;height:24px}.chart-grid{gap:17px;grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr)}.page-heading{align-items:flex-start}.heading-actions{padding-top:20px}.month-control input{width:142px}.button{padding:10px 12px}.page-heading h1{font-size:25px}.page-heading p{max-width:280px;line-height:1.8}.panel-heading{padding:18px}.chart-legend{margin-left:18px;margin-right:18px}.panel-heading h2{font-size:14px}}
@media(max-width:960px){.summary-grid{grid-template-columns:1fr 1fr}.amount{font-size:27px}.page-heading{flex-direction:column;gap:16px}.heading-actions{padding-top:0}.page-heading p{max-width:none}.chart-grid{grid-template-columns:1fr}.chart-grid .panel{min-height:auto}.cash-chart{min-height:300px!important}.spending-panel{display:grid;grid-template-columns:1fr 1fr}.spending-panel .panel-heading{grid-column:1/-1}.spending-legend{align-content:center}.donut-wrap{padding-bottom:18px}.table-filters{flex-wrap:wrap}.search-box{max-width:none;flex-basis:100%}.filter-selects{margin-left:auto}.login-story{padding:35px}.login-story h1{font-size:42px}}
@media(max-width:680px){.app-shell{display:block}.sidebar{position:static;width:100%;height:auto;padding:17px 20px 0;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:21px}.brand-symbol{width:34px;height:37px}.brand-symbol svg{width:25px;height:25px}.brand small{font-size:6px}.mosque-card,.nav-label,.sidebar-tip,.user-card,.sidebar-bottom{display:none}.sidebar nav{display:flex;margin-top:16px;gap:4px}.nav-item{margin:0;border-radius:7px 7px 0 0;font-size:10px;justify-content:center;padding:12px 6px;gap:7px}.nav-item svg{width:15px;height:15px}.nav-dot{display:none}.workspace{margin:0;width:100%}.topbar{height:51px;padding:0 20px}.breadcrumb{font-size:9px;gap:8px}.sync-status{font-size:8px}.content{padding:24px 18px 20px}.page-heading h1{font-size:26px}.heading-actions{width:100%;justify-content:space-between;gap:8px}.month-control input{width:139px;font-size:10px}.heading-actions .button{font-size:10px;padding:10px}.summary-grid{gap:10px}.summary-card{min-height:137px;padding:14px}.card-label{font-size:10px}.amount{font-size:22px;margin-top:12px}.card-foot{font-size:8px;gap:5px}.chart-grid{gap:16px}.spending-legend{padding-left:4px}.panel-heading{padding:18px 16px}.panel-heading p{font-size:9px}.table-filters{padding:0 16px 15px}.table-footer{padding:13px 16px}.page-footer{font-size:8px;align-items:flex-start;line-height:1.8}.page-footer span{max-width:55%}.demo-banner{font-size:9px;line-height:1.7}.form-grid{gap:12px}.login-screen{grid-template-columns:1fr}.login-story{min-height:auto;padding:24px}.login-story>div:not(.brand){display:none}.login-story>small{display:none}.login-panel{padding:45px 24px;align-items:flex-start}.login-card h2{font-size:25px}.report-lines{padding:0 17px 20px}.report-note{padding:0 17px 20px}.report-total strong{font-size:17px}}
@media(max-width:680px){.sidebar{position:relative}.user-card{display:flex;position:absolute;top:19px;right:19px;border:0;padding:0;margin:0}.user-card>div,.user-card .user-avatar{display:none}.user-card .icon-button{background:#f0f4ed}}
.breadcrumb .mosque-name{color:#708178}
@media(prefers-reduced-motion:no-preference){dialog[open]{animation:appear .16s ease-out}.toast{animation:appear .2s ease-out}@keyframes appear{from{opacity:0}to{opacity:1}}}
@media print{body{background:white;color:#000}.sidebar,.topbar,.page-heading .heading-actions,.summary-grid,.chart-grid,.transactions-panel,.demo-banner,.connection-error,.page-footer,.report-panel button,.toast{display:none!important}.workspace{margin:0;width:100%}.content{padding:0;max-width:none}.page-heading{margin:0 0 30px}.page-heading .eyebrow:after{content:' · KAS MASJID'}.report-panel{display:block!important;border:0}.panel-heading{padding-left:0}.report-lines{padding-left:0;max-width:none}.report-note{padding-left:0}.report-lines strong{color:#000}}
/* Kelola kategori */
.field{display:flex;flex-direction:column;gap:8px;margin-top:16px;min-width:0}
.field-label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:#65756b;font-weight:550;height:14px}
.link-button{display:inline-flex;align-items:center;gap:4px;border:0;background:transparent;color:var(--green);font-size:10px;font-weight:600;padding:2px 4px;margin:-2px -4px;border-radius:5px}
.link-button svg{width:13px;height:13px}
.link-button:hover{background:#edf5ed}
.category-list{list-style:none;margin:18px 0 0;padding:0;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.category-list:empty{display:none}
.category-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;padding:9px 10px 9px 14px;border-top:1px solid var(--line);min-height:52px}
.category-row:first-child{border-top:0}
.category-row.empty{justify-content:center;color:#89968d;font-size:11px}
.category-row.confirming{background:#fcf6f3}
.category-row.editing{background:#f7faf6}
.category-row.archived strong{color:#8a958e}
.category-info{flex:1;min-width:0}
.category-info strong{display:block;font-size:12px;font-weight:550;color:#3f5a49;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.category-info small{display:block;margin-top:3px;color:#96a094;font-size:10px;line-height:1.5}
.category-actions{display:flex;gap:4px;flex-shrink:0;margin-left:auto}
.mini-button{display:inline-flex;align-items:center;gap:5px;border:1px solid transparent;background:transparent;color:#748a78;font-size:10px;font-weight:550;padding:6px 9px;border-radius:6px;white-space:nowrap}
.mini-button svg{width:14px;height:14px}
.mini-button:hover{background:#edf2ed;color:var(--green)}
.mini-button.danger:hover{background:#faf0eb;color:#ad5147}
.mini-button.solid{background:var(--green);color:white}
.mini-button.solid:hover{background:#1c5341;color:white}
.mini-button.solid-danger{background:var(--red);color:white}
.mini-button.solid-danger:hover{background:#9f3838;color:white}
.mini-button:disabled{opacity:.5;cursor:default}
.lock-chip{display:inline-flex;align-items:center;gap:4px;font-size:9px;color:#8a958e;background:#f4f6f0;padding:5px 8px;border-radius:5px}
.lock-chip svg{width:12px;height:12px}
.category-edit{display:flex;align-items:center;gap:6px;flex:1;min-width:0}
.category-edit input{flex:1;padding:8px 10px}
.category-hint{flex-basis:100%;color:#96a094;font-size:10px}
.category-add{display:flex;gap:8px;margin-top:12px}
.category-add input{flex:1}
.category-add .button{flex-shrink:0}
.category-archived{margin-top:16px;font-size:11px;color:#77857d}
.category-archived summary{cursor:pointer;padding:4px 0;width:max-content}
.category-archived .category-list{margin-top:10px}
#category-type{margin-top:4px}
@media(max-width:680px){.category-row{padding:9px 10px}
.category-edit{flex-wrap:wrap}
.category-edit input{flex-basis:100%}
.category-add .button{padding:10px 12px}
}
.money-input{position:relative;display:block}
.money-prefix{position:absolute;left:13px;top:50%;transform:translateY(-50%);font-size:12px;font-weight:600;color:#7b897e;pointer-events:none}
.money-input input{padding-left:40px;font-variant-numeric:tabular-nums}
/* Bukti transaksi */
.required-mark{font-size:9px;font-weight:600;color:#a8756b;background:#fbf0ea;padding:2px 6px;border-radius:4px;margin-left:4px;vertical-align:1px}
.proof-limit{font-size:10px;color:#96a094;font-weight:400}
form label.proof-drop{display:flex;flex-direction:row;align-items:center;gap:12px;margin:0;padding:14px;border:1.5px dashed #c9d8cc;border-radius:10px;background:#f8fbf7;color:var(--green);cursor:pointer;font-weight:400}
.proof-drop:hover,.proof-drop.dragging{background:#eef6ef;border-color:#8eba9d}
.proof-field:focus-within .proof-drop{outline:2px solid #81b39d;outline-offset:1px}
.proof-drop>svg{width:22px;height:22px;flex-shrink:0}
.proof-drop strong{display:block;font-size:12px;font-weight:600}
form .proof-drop small{display:block;margin-top:3px;color:#7f8d83;font-size:10px;line-height:1.5}
.proof-drop.filled{padding:10px 14px}
.proof-picked{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.proof-picked:empty{display:none}
.proof-picked li{display:flex;align-items:center;gap:10px;padding:6px 6px 6px 10px;border:1px solid var(--line);border-radius:8px;font-size:11px;background:white}
.proof-type{display:grid;place-items:center;width:26px;height:26px;border-radius:6px;background:#edf5ed;color:var(--green);flex-shrink:0}
.proof-type svg{width:14px;height:14px}
.proof-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#3f5a49}
.proof-picked small{color:#96a094;font-size:10px;white-space:nowrap}
.proof-picked .icon-button{width:28px;height:28px}
.proof-chip{display:inline-flex;align-items:center;gap:4px;border:1px solid #d6e6d9;background:#f1f7f1;color:var(--green);font-size:9px;font-weight:600;padding:4px 8px;border-radius:5px;white-space:nowrap}
.proof-chip svg{width:12px;height:12px}
.proof-chip:hover{background:#e4f0e5}
.proof-chip.missing{border-color:#f0d9c7;background:#fdf4ec;color:#b07a45}
.proof-chip.missing:hover{background:#fbeadb}
.proof-none{color:#b4bcb4}
.proof-detail{margin-bottom:4px}
.proof-gallery{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:10px}
.proof-gallery>li{display:flex;gap:12px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:10px}
.proof-thumb{width:72px;height:72px;flex-shrink:0;border-radius:8px;overflow:hidden;background:#f3f6f2;display:block}
.proof-thumb a{display:block;width:100%;height:100%}
.proof-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.pdf-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;height:100%;color:#b05b4b;font-size:9px;font-weight:700;letter-spacing:.5px}
.pdf-preview svg{width:24px;height:24px}
.proof-meta{flex:1;min-width:0}
.proof-meta strong{display:block;font-size:12px;font-weight:550;color:#3f5a49;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.proof-meta small{display:block;margin-top:3px;color:#96a094;font-size:10px;line-height:1.5}
.proof-links{display:flex;gap:12px;margin-top:6px}
.proof-links a{display:inline-flex;align-items:center;gap:4px;font-size:10px;font-weight:600;color:var(--green)}
.proof-links a:hover{text-decoration:underline}
.proof-links svg{width:13px;height:13px}
.proof-gallery .proof-empty{justify-content:center;text-align:center;color:#89968d;font-size:11px;line-height:1.7;padding:22px}
.proof-add{display:flex;align-items:center;gap:12px;margin-top:14px;flex-wrap:wrap}
.proof-add label.button{cursor:pointer}
.proof-add:focus-within label.button{outline:2px solid #81b39d;outline-offset:1px}
.proof-add small{flex:1;min-width:180px;color:#96a094;font-size:10px;line-height:1.6}
.report-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.report-lines .report-proof.warn strong{color:#b07a45}
@media(max-width:680px){.report-panel .panel-heading{flex-wrap:wrap}
.report-actions{justify-content:flex-start;width:100%}
.report-actions .button{flex:1}
.proof-thumb{width:56px;height:56px}
}
@media print{.report-actions{display:none!important}
.viewer-banner{display:none!important}
}
/* Akses viewer (hanya lihat) */
.role-viewer .admin-only{display:none!important}
.viewer-banner{display:flex;align-items:center;gap:10px;background:#eef4f8;color:#3d6075;border:1px solid #d3e2ec;border-radius:8px;padding:11px 14px;font-size:10px;line-height:1.6;margin-bottom:23px}
.viewer-banner svg{width:18px;height:18px;flex-shrink:0}
.status-active{font-size:9px;color:#6f8f78;background:#eef5ef;padding:4px 8px;border-radius:5px}
.proof-chip.static{cursor:default}
.proof-chip.static:hover{background:#fdf4ec}
/* Dashboard: laporan bulanan + alokasi pendapatan + alokasi pengeluaran */
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) minmax(0,1fr);gap:22px;margin-bottom:23px;align-items:stretch}
/* Donat alokasi disembunyikan dulu. Hapus baris di bawah ini kalau mau dimunculkan lagi. */
.allocation-panel{display:none!important}
/* Tempat kosong di kanan laporan, disiapkan untuk fitur baru. */
.feature-slot{grid-column:2/-1;min-width:0}
@media(max-width:1190px){.feature-slot{grid-column:1/-1}.feature-slot:empty{display:none}}
.dashboard-grid .report-panel{margin-bottom:0}
.dashboard-grid .report-panel .panel-heading{flex-wrap:wrap;align-items:flex-start}
.dashboard-grid .report-actions{justify-content:flex-start}
.dashboard-grid .report-lines{padding:2px 23px 10px;max-width:none}
.dashboard-grid .report-lines>div{padding:13px 0;font-size:11px}
.dashboard-grid .report-total strong{font-size:18px}
.dashboard-grid .report-note{font-size:10px;line-height:1.7}
.allocation-panel{min-height:326px}
@media(max-width:1190px){.dashboard-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:17px}
.dashboard-grid .report-panel{grid-column:1/-1}
}
@media(max-width:680px){.dashboard-grid{grid-template-columns:minmax(0,1fr)}
}
@media print{.dashboard-grid{display:block!important}
.allocation-panel{display:none!important}
}
/* Pemilih periode: harian, bulanan, tahunan, rentang tanggal */
.period-control{display:flex;align-items:center;border:1px solid #dfe6df;background:#fff;border-radius:8px;padding-left:12px;color:#7b887e;min-height:39px}
.period-icon{width:16px;height:16px}
.period-control select,.period-control input{border:0;background:transparent;font-size:11px;color:var(--ink);border-radius:6px}
.period-mode{padding:10px 4px 10px 8px;font-weight:600;color:var(--green)!important;cursor:pointer}
.period-divider{width:1px;height:20px;background:#e3e9e3;margin:0 2px}
.period-field{display:flex;align-items:center}
.period-field input[type=date]{padding:10px 6px;width:122px}
.period-field input[type=month]{padding:10px 6px;width:140px}
.period-field select{padding:10px 6px;cursor:pointer}
.period-range span{color:#a0aaa0}
.period-step{border:0;background:transparent;color:#748a78;font-size:18px;line-height:1;width:28px;height:30px;border-radius:6px;padding:0 0 2px}
.period-step:hover{background:#edf2ed;color:var(--green)}
.heading-actions{flex-wrap:wrap;justify-content:flex-end}
@media(max-width:1190px){.page-heading{flex-wrap:wrap}
.heading-actions{justify-content:flex-start}
}
@media(max-width:680px){.period-control{width:100%;flex-wrap:wrap;padding:4px 6px 4px 10px}
.period-mode{flex:1}
.period-divider{display:none}
.period-control .period-field{flex:1}
.period-field input[type=date],.period-field input[type=month]{width:100%}
.period-control .period-range{flex:1 1 100%;order:5;padding-bottom:2px}
.heading-actions .button{flex:1}
}
/* Nama akun bisa panjang: potong rapi di legenda donat, nama lengkap ada di tooltip */
.spending-legend{grid-template-columns:minmax(0,1fr)}
.spending-item{min-width:0}
.spending-item span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.spending-item strong,.spending-item small{flex-shrink:0}
/* Rincian laporan per akun di bawah total kas masuk / keluar */
.report-lines>.report-group{display:block}
.report-group-head{display:flex;justify-content:space-between;gap:20px}
.report-accounts{list-style:none;margin:10px 0 2px;padding:0 0 0 12px;border-left:2px solid #e8eee6;display:grid;gap:1px}
.report-accounts:empty{display:none}
.report-accounts li{display:flex;justify-content:space-between;gap:14px;padding:4px 0;font-size:10px;color:#6f7d72;min-width:0}
.report-accounts li span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.report-accounts li strong{font-weight:500;color:#4f6656;flex-shrink:0;font-variant-numeric:tabular-nums}
.report-accounts li.zero,.report-accounts li.zero strong{color:#b3bcb3}
.report-accounts em{font-style:normal;color:#b07a45}
@media print{.report-lines>div,.report-group-head{font-size:10pt!important}
.report-lines>div strong{font-size:10pt}
.report-lines>.report-total strong{font-size:14pt}
.report-accounts li,.report-accounts li strong{color:#000!important;font-size:9pt;padding:2px 0}
.report-accounts li.zero,.report-accounts li.zero strong{color:#666!important}
.report-accounts li span{white-space:normal}
}
/* Impor transaksi dari Excel/CSV */
.table-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
dialog.wide-dialog{width:min(1000px,calc(100% - 32px))}
.import-drop{display:flex;align-items:center;gap:12px;padding:16px;border:1.5px dashed #c9d8cc;border-radius:10px;background:#f8fbf7;color:var(--green);cursor:pointer}
.import-drop:hover,.import-drop.dragging{background:#eef6ef;border-color:#8eba9d}
#import-dialog:has(#import-file:focus-visible) .import-drop{outline:2px solid #81b39d;outline-offset:1px}
.import-drop>svg{width:22px;height:22px;flex-shrink:0}
.import-drop strong{display:block;font-size:12px;font-weight:600}
.import-drop small{display:block;margin-top:3px;color:#7f8d83;font-size:10px}
.import-options{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}
.import-options label{display:flex;flex-direction:column;gap:6px;font-size:10px;color:#65756b;font-weight:550;min-width:180px}
.import-options select{padding:9px 10px;border:1px solid #dfe6df;border-radius:8px;background:#fff;font-size:11px}
.import-mapping{margin-top:14px;padding:12px 14px;border:1px solid #f0d9c7;background:#fdf8f3;border-radius:10px;display:grid;gap:8px;font-size:11px;color:#7d5b3c}
.import-mapping p{margin:0;line-height:1.6}
.import-mapping label{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.import-mapping label span{font-weight:600;color:#6b4a2e}
.import-mapping small{font-weight:400;color:#a07c5c;margin-left:6px}
.import-mapping select{padding:8px 10px;border:1px solid #e7d3c1;border-radius:8px;background:#fff;font-size:11px;min-width:240px}
.import-summary{margin:14px 0 8px;font-size:11px;color:#65756b}
.import-summary strong{color:var(--green)}
.import-preview-wrap{max-height:min(46vh,420px);overflow:auto;border:1px solid var(--line);border-radius:10px}
.import-preview{width:100%;border-collapse:collapse;font-size:10px}
.import-preview th{position:sticky;top:0;background:#f7f8f4;text-align:left;font-size:9px;letter-spacing:.6px;text-transform:uppercase;color:#7d897f;padding:9px 10px;border-bottom:1px solid var(--line);white-space:nowrap}
.import-preview td{padding:8px 10px;border-bottom:1px solid #eef1ec;color:#4f6656;vertical-align:top;white-space:nowrap}
.import-preview td.import-desc{white-space:normal;min-width:220px;max-width:360px;line-height:1.5}
.import-preview tr.error td{background:#fdf5f3}
.import-preview tr.skip td{color:#a7b0a7}
.import-status{display:inline-block;padding:3px 7px;border-radius:5px;font-weight:600;font-size:9px;white-space:normal}
.import-status.ready{background:#eaf4ec;color:#2f6b55}
.import-status.error{background:#fbe9e5;color:#ad5147}
.import-status.pending{background:#fdf0e3;color:#b07a45}
.import-status.skip{background:#f1f3ef;color:#8a958e}
@media(max-width:680px){.table-actions{width:100%;justify-content:flex-start}
.table-actions .button{flex:1}
.import-options label,.import-mapping select{min-width:0;width:100%}
}
/* Kosongkan data */
.button.secondary.danger-soft{color:#ad5147;border-color:#efd5cf}
.button.secondary.danger-soft:hover{background:#faf0eb}
.reset-detail{padding:14px 16px;background:#fdf5f3;border:1px solid #f3dcd6;border-radius:8px;font-size:12px;line-height:1.7;color:#5f4a45}
.reset-detail p{margin:0 0 6px}
.reset-detail p:last-child{margin-bottom:0}
.reset-backup{margin:12px 0 4px;font-size:12px;color:#9a6a2f}
/* Pratinjau impor: baris yang sudah ada di aplikasi */
.import-status.exists{background:#eef1f4;color:#5f6d7a}
.import-preview tr.exists td{color:#a7b0a7}
/* Nomor baris di bawah kategori yang belum dikenal */
.import-mapping .map-lines{display:block;margin-top:3px;font-style:normal;font-weight:400;color:#a07c5c;line-height:1.5}
.import-preview .split-tag{display:block;font-size:9px;color:#8a958e}
/* Highlight baris Saldo awal periode, Total kas masuk, dan Total kas keluar */
.report-lines .report-hl,.dashboard-grid .report-lines>.report-hl{background:#f3f5f1;border:1px solid #e3e8e1;border-radius:8px;padding:11px 14px;margin:8px 0}
.report-lines .report-hl strong{font-weight:700}
.report-lines .report-hl.in{background:#eef6f0;border-color:#d3e8d9}
.report-lines .report-hl.in strong{color:#1f6b45}
.report-lines .report-hl.out{background:#fcf3ec;border-color:#f1dccb}
.report-lines .report-hl.out strong{color:#a05a2c}
.report-lines .report-group{border-bottom:1px solid var(--line);padding-bottom:6px}
@media print{.report-lines .report-hl{background:none!important;border:1px solid #999!important}.report-lines .report-hl strong{color:#000!important}}
/* Viewer tidak bisa mencetak: Ctrl+P dari akun viewer hanya menghasilkan pesan ini */
@media print{body.role-viewer>*{display:none!important}body.role-viewer::before{content:"Cetak laporan hanya bisa dilakukan dengan akun admin.";display:block;padding:40px;font:14pt sans-serif;color:#000}}
/* ---------- Kegiatan masjid ---------- */
#activity-form>label.check-line{flex-direction:row;align-items:center;gap:9px;margin-top:14px;font-size:12px;color:var(--ink);cursor:pointer}
.check-line input{width:16px;height:16px;accent-color:var(--forest,#1f4d3a);margin:0}
.activity-docs{margin-top:18px;display:grid;gap:9px}
.activity-photo-info{margin:0;font-size:10px;color:#7f8d83}
.activity-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px}
.activity-photos:empty{display:none}
.photo-tile{position:relative;aspect-ratio:1;border-radius:8px;overflow:hidden;background:#eef1ec;border:1px solid var(--line)}
.photo-tile img{width:100%;height:100%;object-fit:cover;display:block}
.photo-tile .tile-remove{position:absolute;top:5px;right:5px;width:24px;height:24px;border-radius:50%;border:0;background:#ffffffe6;color:#a34a3a;display:grid;place-items:center;cursor:pointer;box-shadow:0 1px 4px #0002;padding:0}
.photo-tile .tile-remove svg{width:13px;height:13px;stroke-width:2.4}
.photo-tile.queued::after{content:"Baru";position:absolute;left:5px;bottom:5px;font-size:9px;font-weight:600;background:#1f6b45;color:#fff;border-radius:4px;padding:2px 6px}
.photo-tile.removed img{opacity:.25;filter:grayscale(1)}
.photo-tile.removed::after{content:"Dihapus";position:absolute;inset:auto 5px 5px 5px;text-align:center;font-size:9px;font-weight:600;background:#a34a3a;color:#fff;border-radius:4px;padding:2px 4px}
.photo-tile.failed{outline:2px solid #d88b74}
.activity-progress{margin:14px 0 0;font-size:11px;color:#1f6b45;font-weight:600}
.footer-spacer{flex:1}
.danger-text{color:#ad5147;font-size:11px;text-decoration:none;font-weight:600;cursor:pointer}
.danger-text.confirm{background:#fbeee9;border-radius:6px;padding:8px 10px}
/* Daftar kegiatan (halaman admin) */
.activity-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;padding:0 23px 23px}
.activity-list>.empty-state{grid-column:1/-1}
.activity-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;display:flex;flex-direction:column}
.activity-card.featured{border-color:#9cc9ad;box-shadow:0 0 0 1px #9cc9ad}
.activity-cover{display:block;width:100%;aspect-ratio:16/10;border:0;padding:0;background:#eef1ec;cursor:pointer;position:relative;color:#9aa69d}
.activity-cover img{width:100%;height:100%;object-fit:cover;display:block}
.activity-cover .no-photo{display:grid;place-items:center;height:100%;font-size:11px;gap:6px;align-content:center}
.activity-cover .photo-count{position:absolute;right:8px;bottom:8px;background:#000000a8;color:#fff;font-size:10px;border-radius:999px;padding:3px 9px}
.activity-body{padding:13px 14px 14px;display:grid;gap:5px;flex:1}
.activity-body h3{margin:0;font-size:14px;line-height:1.35;color:var(--ink)}
.activity-body time{font-size:10px;color:#7f8d83}
.activity-body p{margin:2px 0 0;font-size:11px;line-height:1.55;color:#5f6d63;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.activity-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;border-top:1px solid var(--line);background:#fafbf8}
.activity-foot label{display:flex;align-items:center;gap:7px;font-size:11px;color:#3f5a49;cursor:pointer;font-weight:550}
.activity-foot .button{padding:7px 12px;font-size:11px}
/* Galeri kegiatan di Dashboard (di spot kanan laporan) */
.activity-gallery .panel-heading{padding-bottom:6px}
.gallery-list{display:grid;gap:22px;padding:8px 23px 23px}
.gallery-item h3{margin:0;font-size:14px;color:var(--ink)}
.gallery-item time{display:block;font-size:10px;color:#7f8d83;margin-top:3px}
.gallery-item p{margin:7px 0 0;font-size:11px;line-height:1.6;color:#5f6d63;white-space:pre-line;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:11px}
.gallery-grid button{position:relative;aspect-ratio:4/3;border:0;padding:0;border-radius:8px;overflow:hidden;background:#eef1ec;cursor:zoom-in}
.gallery-grid img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s}
.gallery-grid button:hover img{transform:scale(1.04)}
.gallery-grid .more{position:absolute;inset:0;background:#0000008c;color:#fff;display:grid;place-items:center;font-size:16px;font-weight:600}
.gallery-item+.gallery-item{border-top:1px solid var(--line);padding-top:20px}
.gallery-empty{padding:30px 23px 40px;text-align:center;font-size:11px;line-height:1.8;color:#89968d}
.gallery-empty .button{margin-top:12px}
/* Penampil foto */
.photo-viewer{width:min(1100px,calc(100% - 32px))}
.photo-viewer-date{margin:4px 0 0;font-size:11px;color:#7f8d83}
.photo-stage{position:relative;display:grid;place-items:center;background:#111;border-radius:10px;min-height:300px;margin-top:6px}
.photo-stage img{max-width:100%;max-height:calc(100dvh - 260px);display:block;object-fit:contain}
.photo-nav{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border-radius:50%;border:0;background:#ffffffd9;display:grid;place-items:center;cursor:pointer;color:#1d2b22}
.photo-nav.prev{left:10px}.photo-nav.next{right:10px}
.photo-nav[hidden]{display:none}
.photo-viewer-desc{margin:12px 0 0;font-size:12px;line-height:1.6;color:#5f6d63;white-space:pre-line}
.photo-viewer-desc:empty{display:none}
@media(max-width:700px){.activity-list{padding:0 16px 16px}.gallery-list{padding:8px 16px 18px}.gallery-grid{grid-template-columns:repeat(2,1fr)}.photo-stage{min-height:200px}}
@media print{.activity-gallery,.feature-slot{display:none!important}}
/* Galeri gabungan: semua foto kegiatan yang dicentang dalam satu grid */
.gallery-grid.combined{margin:4px 23px 23px}
@media(max-width:700px){.gallery-grid.combined{margin:4px 16px 18px}}
/* Jendela Pilih kegiatan (galeri Dashboard per akun) */
.activity-gallery .panel-heading .button{padding:8px 12px;font-size:11px}
.pick-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:14px;font-size:11px;color:#65756b}
.pick-tools .text-button{font-size:11px;color:#1f6b45;cursor:pointer;padding:0}
.pick-list{display:grid;gap:8px;margin-top:10px;max-height:min(420px,55dvh);overflow:auto}
.pick-row{display:flex;align-items:center;gap:12px;padding:9px 11px;border:1px solid var(--line);border-radius:10px;cursor:pointer;font-size:12px}
.pick-row:has(input:checked){border-color:#9cc9ad;background:#f3f9f5}
.pick-row input{width:17px;height:17px;margin:0;accent-color:#1f6b45;flex-shrink:0}
.pick-thumb{width:56px;height:42px;border-radius:6px;overflow:hidden;background:#eef1ec;display:grid;place-items:center;color:#9aa69d;flex-shrink:0}
.pick-thumb img{width:100%;height:100%;object-fit:cover}
.pick-text{display:grid;gap:3px;min-width:0}
.pick-text strong{font-size:12px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pick-text small{font-size:10px;color:#7f8d83}
/* Pilih kegiatan di panel kiri, di bawah menu Dashboard */
.side-picker{margin-top:24px;display:flex;flex-direction:column;flex:0 0 auto}
.side-picker-hint{font-size:9.5px;line-height:1.6;color:#899080;padding:0 12px;margin:-4px 0 8px}
.side-pick-list{overflow:auto;max-height:max(120px,calc(100vh - 560px));display:grid;gap:2px;align-content:start}
.sidebar{overflow-y:auto}
@media(max-height:820px){.sidebar-tip{display:none}}
@media(max-height:820px) and (min-width:681px){.side-pick-list{max-height:max(120px,calc(100vh - 420px))}}
.side-pick{display:flex;align-items:center;gap:9px;padding:8px 12px;border-radius:8px;font-size:11px;color:#4d5b51;cursor:pointer}
.side-pick:hover{background:#f5f7f1}
.side-pick:has(input:checked){background:#eef6f0;color:#1f6b45;font-weight:600}
.side-pick input{width:14px;height:14px;margin:0;accent-color:#1f6b45;flex-shrink:0}
.side-pick span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.side-pick small{font-size:9px;color:#9aa69d;font-weight:400}
.side-pick-empty{font-size:10px;color:#9aa69d;padding:4px 12px;line-height:1.6}
.sidebar-tip{flex-shrink:0;margin-top:auto}
/* Di laptop pilihannya ada di panel kiri, tombol di panel galeri cuma dipakai di HP */
.activity-gallery [data-pick-gallery]{display:none}
@media(max-width:680px){.side-picker{display:none}.activity-gallery [data-pick-gallery]{display:inline-flex}}
/* Foto utama: kegiatan dengan tanggal paling akhir */
.gallery-hero{position:relative;display:block;width:calc(100% - 46px);margin:4px 23px 10px;aspect-ratio:16/9;border:0;padding:0;border-radius:10px;overflow:hidden;background:#eef1ec;cursor:zoom-in}
.gallery-hero img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}
.gallery-hero:hover img{transform:scale(1.02)}
.hero-caption{position:absolute;left:0;right:0;bottom:0;padding:34px 16px 13px;background:linear-gradient(transparent,#000000b3);color:#fff;text-align:left;display:grid;gap:3px}
.hero-caption small{font-size:9px;letter-spacing:1.4px;opacity:.85;font-weight:600}
.hero-caption strong{font-size:15px;line-height:1.3}
.hero-caption span{font-size:11px;opacity:.9}
.gallery-hero+.gallery-grid.combined{margin-top:0}
@media(max-width:700px){.gallery-hero{width:calc(100% - 32px);margin:4px 16px 10px}}
/* ---------- Kelola pengguna ---------- */
.user-table td,.user-table th{padding:13px 16px}
.user-table td strong{font-size:12px}
.user-table .you{font-size:9px;color:#1f6b45;background:#e9f4ec;border-radius:4px;padding:2px 6px;margin-left:6px;font-weight:600}
.role-pill{font-size:9.5px;border-radius:5px;padding:4px 8px;font-weight:600}
.role-pill.admin{background:#e7f0ea;color:#1f5a3f}
.role-pill.viewer{background:#e9eef6;color:#3f5880}
.status-inactive{font-size:9px;color:#9a5a4c;background:#f8ece8;padding:4px 8px;border-radius:5px}
.user-table tr.inactive td{color:#a9b1aa}
.actions-col{text-align:right}
.user-actions{display:flex;gap:6px;justify-content:flex-end}
.user-actions .button{padding:6px 10px;font-size:10.5px}
.user-actions .danger-soft{color:#ad5147}
.user-logs{padding:6px 23px 23px}
.user-logs h3{font-size:12px;margin:10px 0 8px;color:var(--ink)}
.user-logs ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.user-logs li{font-size:10.5px;color:#5f6d63;line-height:1.6;display:flex;gap:10px}
.user-logs li time{color:#9aa69d;flex-shrink:0;min-width:118px}
.user-logs li:empty{display:none}
.field-note{margin:4px 0 0;font-size:10px;color:#8a958e}
.confirm-field{margin-top:16px;padding-top:14px;border-top:1px dashed var(--line)}
/* ---------- Pengaturan ---------- */
.settings-panel form{padding:24px 23px 23px;display:grid;gap:22px;max-width:720px}
.settings-group{display:grid;gap:12px}
.settings-group h3{margin:0;font-size:13px;color:var(--ink)}
.settings-hint{font-size:10px;color:#8a958e;font-weight:400}
.settings-panel .toggle-row{display:flex;flex-direction:row;align-items:flex-start;gap:12px;padding:13px 14px;border:1px solid var(--line);border-radius:10px;cursor:pointer}
.toggle-row:has(input:checked){border-color:#9cc9ad;background:#f3f9f5}
.toggle-row input{width:17px;height:17px;margin:2px 0 0;accent-color:#1f6b45;flex-shrink:0}
.toggle-row span{display:grid;gap:4px}
.toggle-row strong{font-size:12px;color:var(--ink)}
.toggle-row small{font-size:10.5px;line-height:1.6;color:#6f7d73;font-weight:400}
.settings-actions{display:flex;justify-content:flex-start}
.user-card #change-password{margin-left:auto}
.user-card #change-password+#logout{margin-left:0}
.settings-group>label{font-size:11px;color:#5f6d63;font-weight:550}
/* Pilih kegiatan: nama + tanggal kecil, scrollbar abu-abu bulat, dan tombol panah naik/turun */
.side-pick{align-items:flex-start}
.side-pick input{margin-top:2px}
.side-pick-text{flex:1;min-width:0;display:grid;gap:2px}
.side-pick-text span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.side-pick-text time{font-size:9px;color:#9aa69d;font-weight:400}
.side-pick small{margin-top:2px}
.side-pick-wrap{display:flex;flex-direction:column;min-height:0}
.side-pick-wrap{flex-direction:row;gap:6px}
.side-pick-list{flex:1;min-width:0;scrollbar-width:none}
.side-pick-list::-webkit-scrollbar{display:none}
.side-scroll-col{display:flex;flex-direction:column;justify-content:space-between;width:22px;flex-shrink:0;background:#f3f3f3;border-radius:999px;padding:3px 0}
.side-scroll-col[hidden]{display:none}
.side-scroll{width:22px;height:26px;border:0;background:transparent;color:#777;border-radius:999px;display:grid;place-items:center;cursor:pointer;padding:0}
.side-scroll:hover:not(:disabled){background:#e2e2e2;color:#333}
.side-scroll:active:not(:disabled){background:#cfcfcf}
.side-scroll:disabled{opacity:.3;cursor:default}
.side-scroll svg{width:13px;height:13px;stroke-width:2.4;transform:rotate(90deg)}
.side-scroll.down svg{transform:rotate(-90deg)}
/* Akun di laporan bisa diklik (admin) untuk melihat riwayatnya */
.account-link{all:unset;box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;cursor:pointer;border-radius:6px;padding:2px 6px;margin:-2px -6px}
.account-link:hover{background:#f1f6f2}
.account-link:hover span{color:#1f6b45;text-decoration:underline;text-underline-offset:3px}
.account-link:focus-visible{outline:2px solid #9cc9ad}
@media print{.account-link{all:unset;display:flex;justify-content:space-between;width:100%}}
/* Jendela riwayat akun */
.history-dialog{width:min(960px,calc(100% - 32px))}
.history-period{margin:4px 0 0;font-size:11px;color:#7f8d83}
.history-summary{margin:14px 0 10px;font-size:12px;color:#5f6d63;padding:11px 14px;background:#f5f8f4;border-radius:8px}
.history-summary strong{color:var(--ink)}
.history-table-wrap{max-height:min(460px,55dvh);overflow:auto;border:1px solid var(--line);border-radius:8px}
.history-table{font-size:11px;white-space:normal}
.history-table th{position:sticky;top:0;z-index:1}
.history-table td{padding:10px 12px;vertical-align:top;color:#4f5d53}
.history-table td:first-child{white-space:nowrap}
.history-table .desc span{display:block;color:var(--ink)}
.history-table .desc small{display:block;margin-top:3px;font-size:9.5px;color:#9aa69d}
.history-table .num{text-align:right;white-space:nowrap}
.history-table .running{font-weight:600;color:#1f6b45}
.history-table tbody tr:last-child .running{background:#eef6f0}
.history-note{margin:10px 0 0;font-size:10px;color:#8a958e;line-height:1.6}
.report-accounts li .account-link{flex:1;min-width:0}
