@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;700&display=swap');
:root{font-family:'Noto Sans Bengali',sans-serif;color:#1b2a25;background:#f5f7f6;font-synthesis:none;--bg:#f5f7f6;--surface:#fff;--surface2:#f7faf8;--text:#1b2a25;--muted:#78857f;--line:#e6ece8;--green:#176b52;--green2:#e7f5ee;--shadow:0 8px 28px rgba(26,54,42,.05)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,select{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:var(--surface);border-right:1px solid var(--line);padding:25px 17px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:11px;padding:0 9px 32px}.brand-mark{width:42px;height:42px;border-radius:13px;background:var(--green);display:grid;place-items:center}.brand-mark svg{width:23px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.brand strong{display:block;font-size:18px}.brand small,.storage-note small{display:block;color:var(--muted);font-size:12px}.nav-label{font-size:11px;color:#9aa59f;font-weight:600;padding:0 12px 10px}.nav{display:grid;gap:5px}.nav-item{border:0;background:transparent;color:#65736c;text-align:left;padding:11px 13px;border-radius:10px;display:flex;align-items:center;gap:12px;font-size:15px}.nav-item:hover,.nav-item.active{background:var(--green2);color:var(--green);font-weight:600}.nav-icon{width:20px;text-align:center;font-size:18px}.sidebar-bottom{margin-top:auto;display:grid;gap:13px}.storage-note{display:flex;align-items:center;gap:10px;padding:12px;background:var(--surface2);border-radius:11px}.storage-note b{font-size:13px}.live-dot{width:9px;height:9px;background:#2db879;border-radius:50%;box-shadow:0 0 0 4px #e0f6eb}.main{margin-left:248px;padding:0 34px 25px;max-width:1700px}.topbar{height:91px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);margin-bottom:26px}.topbar h1{font-size:25px;margin:0;font-weight:700}.eyebrow{font-size:12px;color:var(--muted);margin-bottom:1px}.top-actions{display:flex;align-items:center;gap:13px}.today-chip{font-size:13px;color:var(--muted);background:var(--surface);border:1px solid var(--line);padding:8px 12px;border-radius:9px}.avatar{border:0;background:var(--green);color:white;width:37px;height:37px;border-radius:50%;font-weight:700}.mobile-menu{display:none}.page{display:none}.page.active{display:block}.welcome-row,.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:21px}.welcome-row h2,.section-head h2{font-size:21px;margin:0 0 2px}.welcome-row p,.section-head p,.panel-heading p{color:var(--muted);font-size:13px;margin:0}.section-head h2{font-size:22px}.section-head.compact{margin-top:27px}.section-head.compact h3{font-size:17px;margin:0 0 2px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}.stat-card,.panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.stat-card{padding:18px 19px}.stat-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:13px}.stat-card>strong{display:block;font-size:29px;margin:8px 0 0;line-height:1.2}.stat-card>small{font-size:12px;color:var(--muted)}.stat-icon{width:35px;height:35px;border-radius:10px;display:grid;place-items:center;font-size:18px}.green{background:#e6f5ed;color:#21865d}.blue{background:#e8f1ff;color:#3979cb}.orange{background:#fff2e3;color:#d78b30}.purple{background:#f1eaff;color:#8656c8}.content-grid{display:grid;grid-template-columns:1.25fr .9fr;gap:17px;margin-bottom:18px}.panel{padding:19px;margin-bottom:18px}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:17px}.panel-heading h3,.danger-panel h3{font-size:17px;margin:0 0 2px}.text-btn{border:0;background:none;color:var(--green);font-weight:600}.empty-state{padding:27px 12px;text-align:center;color:var(--muted);font-size:13px}.meal-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px}.slot-card{background:var(--surface2);border:1px solid var(--line);border-radius:11px;padding:14px}.slot-card b{display:block;margin-bottom:8px}.slot-card strong{font-size:22px}.slot-card small{display:block;color:var(--muted)}.quick-actions{display:grid;gap:8px}.quick-actions button{display:grid;grid-template-columns:38px 1fr;grid-template-rows:auto auto;text-align:left;align-items:center;column-gap:10px;padding:9px;border:1px solid var(--line);background:var(--surface2);border-radius:10px;color:var(--text)}.quick-actions button>span{grid-row:span 2;width:36px;height:36px;border-radius:9px;background:var(--green2);color:var(--green);display:grid;place-items:center;font-size:18px}.quick-actions b{font-size:13px}.quick-actions small{font-size:11px;color:var(--muted)}.btn{border:1px solid transparent;border-radius:9px;padding:9px 15px;font-weight:600;font-size:14px}.btn-primary{background:var(--green);color:white}.btn-primary:hover{background:#10563f}.btn-outline{background:var(--surface);border-color:var(--line);color:var(--text)}.btn-danger{background:#fff0ef;color:#c7433d;border-color:#f4d4d1}.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.search{max-width:330px}.muted,.hint{color:var(--muted);font-size:13px}.table-wrap{overflow-x:auto}.table-wrap table{width:100%;border-collapse:collapse;min-width:600px}.table-wrap th{text-align:left;color:var(--muted);font-size:12px;font-weight:600;background:var(--surface2)}.table-wrap th,.table-wrap td{padding:12px 14px;border-bottom:1px solid var(--line);font-size:13px;white-space:nowrap}.table-wrap td{font-weight:500}.table-wrap tr:last-child td{border-bottom:0}.table-wrap .panel-heading{padding:0 2px}.table-wrap .empty-state{display:none}.table-wrap .empty-state.show{display:block}.form-panel{padding:22px}.form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;align-items:end}.form-grid label,.settings-form label,.modal label{display:grid;gap:6px;font-size:13px;font-weight:600;color:var(--text)}input,select{width:100%;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:9px;padding:10px 11px;outline:none;min-height:41px}input:focus,select:focus{border-color:#70b99b;box-shadow:0 0 0 3px rgba(38,145,98,.1)}.form-submit{display:flex;align-items:end}.date-filter{max-width:170px}.total-label{color:var(--green)}.mini-stats{grid-template-columns:repeat(2,minmax(0,1fr));max-width:520px}.mini-stats .stat-card strong{font-size:24px}.settings-panel{max-width:700px}.settings-form{display:grid;gap:18px;max-width:500px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:13px}.settings-form .btn{justify-self:start}.danger-panel{display:flex;align-items:center;justify-content:space-between;gap:20px}.danger-panel p{font-size:12px;color:var(--muted);max-width:480px;margin-bottom:0}.danger-actions{display:flex;gap:8px;flex-wrap:wrap}.file-label{display:inline-flex;align-items:center}.hint{margin:8px 2px 20px}footer{text-align:center;color:#9aa59f;font-size:11px;padding:24px}.modal{border:0;border-radius:16px;padding:23px;width:min(440px,calc(100% - 30px));background:var(--surface);color:var(--text);box-shadow:0 20px 70px #0003}.modal::backdrop{background:#10241c88}.modal form{display:grid;gap:14px}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:3px}.modal-head h3{margin:0;font-size:19px}.modal-head p{margin:0;color:var(--muted);font-size:12px}.icon-button{border:0;background:var(--surface2);color:var(--text);border-radius:8px;width:36px;height:36px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:5px}.toast{position:fixed;bottom:22px;right:22px;background:#183d30;color:white;padding:11px 17px;border-radius:10px;box-shadow:var(--shadow);opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s;z-index:30}.toast.show{opacity:1;transform:translateY(0)}.badge{display:inline-block;padding:3px 8px;border-radius:20px;background:var(--green2);color:var(--green);font-size:11px}.row-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.row-actions .small-btn{white-space:nowrap}.small-btn{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:7px;padding:5px 8px;font-size:12px}.small-btn.delete{color:#c7433d}.total-label{font-size:14px}
body.dark{--bg:#101a16;--surface:#18251f;--surface2:#1e2d26;--text:#e8f0eb;--muted:#9aa9a0;--line:#2a3a32;--green2:#203d30;--shadow:0 8px 28px rgba(0,0,0,.12)}body.dark .btn-danger{background:#402522;border-color:#65312c;color:#ffaaa3}body.dark .stat-icon.green{background:#203d30}body.dark .stat-icon.blue{background:#20334b}body.dark .stat-icon.orange{background:#493723}body.dark .stat-icon.purple{background:#38294b}
@media(max-width:1100px){.main{padding:0 22px}.sidebar{width:220px}.main{margin-left:220px}.stats-grid{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:.22s;width:260px;box-shadow:10px 0 30px #0001}.sidebar.open{transform:translateX(0)}.main{margin-left:0;padding:0 15px 20px}.topbar{height:76px;margin-bottom:20px;gap:10px}.mobile-menu{display:block;flex:none}.topbar h1{font-size:21px}.today-chip{display:none}.welcome-row,.section-head{align-items:flex-start;flex-wrap:wrap}.welcome-row h2{font-size:18px}.stats-grid{gap:10px}.stat-card{padding:14px}.stat-card>strong{font-size:24px}.content-grid{grid-template-columns:1fr}.panel{padding:15px}.form-grid{grid-template-columns:1fr 1fr}.form-submit{grid-column:1/-1}.danger-panel{align-items:flex-start;flex-direction:column}.danger-actions{width:100%}.danger-actions>*{flex:1}.table-wrap table{min-width:580px}}
@media(max-width:430px){.stats-grid{grid-template-columns:1fr 1fr}.stat-top{font-size:11px}.stat-card>strong{font-size:21px}.form-grid,.two-fields{grid-template-columns:1fr}.meal-summary{grid-template-columns:1fr 1fr}.welcome-row .btn{width:100%}.section-head .btn{width:100%}.toolbar{gap:8px}.search{min-width:0;width:65%}}
@media print{.sidebar,.topbar,.section-head .btn,.btn,.toolbar,footer{display:none!important}.main{margin:0;padding:0}.page{display:none!important}#page-reports{display:block!important}.panel,.stat-card{box-shadow:none;break-inside:avoid}}

.nav-icon svg,.quick-actions button>span svg{width:19px;height:19px;display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.quick-actions button>span svg{width:20px;height:20px}
.hidden-field{display:none!important}

.stat-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.expense-today{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.expense-today>div{background:var(--surface2);border:1px solid var(--line);border-radius:11px;padding:13px}
.expense-today small{display:block;color:var(--muted);font-size:12px}
.expense-today strong{font-size:22px;display:block;margin-top:4px}
.filters{justify-content:flex-start;gap:10px;flex-wrap:wrap}
.filters select{max-width:210px}
@media(max-width:430px){.expense-today{grid-template-columns:1fr 1fr}.filters select{max-width:48%;flex:1}}

.sidebar-backdrop{display:none}
@media(max-width:760px){
  .sidebar-backdrop{position:fixed;inset:0;background:rgba(10,20,15,.38);z-index:9}
  .sidebar.open~.sidebar-backdrop{display:block}
}

.history-filters{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,220px);gap:12px;margin-bottom:14px}
.history-filters label{display:grid;gap:6px;font-size:13px;font-weight:600}
.history-summary{display:flex;gap:12px;flex-wrap:wrap;padding:12px;background:var(--surface2);border:1px solid var(--line);border-radius:10px;margin-bottom:12px;font-size:13px;color:var(--muted)}
.history-summary b{color:var(--text)}
@media(max-width:520px){.history-filters{grid-template-columns:1fr}}

.custom-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;grid-column:span 2}
.history-toolbar{display:grid;grid-template-columns:minmax(180px,1fr) minmax(160px,190px);gap:12px}
@media(max-width:520px){.custom-fields{grid-template-columns:1fr;grid-column:1/-1}.history-toolbar{grid-template-columns:1fr}}

.dashboard-finance-heading{margin:22px 0 12px}
.finance-stats{margin-bottom:22px}
.finance-stats .stat-card{min-width:0}

.dashboard-finance-heading{margin:22px 0 12px}.finance-stats{margin-bottom:22px}.finance-stats .stat-card{min-width:0}

.inactive-badge{opacity:.65;background:var(--surface-2)}

.record-edit-dialog{width:min(560px,calc(100% - 28px));max-width:560px;padding:23px}
.record-edit-dialog::backdrop{background:#10241c88}
.record-edit-form{display:grid;gap:14px}
.record-edit-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.record-edit-fields label{display:grid;gap:6px;font-size:13px;font-weight:600;color:var(--text)}
.record-edit-fields input,.record-edit-fields select{width:100%;min-width:0;border:1px solid var(--line);border-radius:9px;padding:10px 11px;background:var(--surface);color:var(--text);font:inherit;min-height:41px}
.record-edit-fields .wide-field{grid-column:1/-1}
.record-edit-dialog .modal-actions{margin-top:5px}
@media(max-width:520px){.record-edit-fields{grid-template-columns:1fr}.record-edit-fields .wide-field{grid-column:auto}}

.report-export-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:760px){.report-export-actions{justify-content:flex-start}.report-export-actions .btn{font-size:12px;padding:8px 10px}}

.dashboard-date-actions{display:flex;align-items:end;gap:9px;flex-wrap:wrap}
.dashboard-date-actions label{font-size:12px;color:var(--muted);font-weight:600}
.dashboard-date-actions input{min-height:42px;padding:9px 11px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--text);font:inherit}
@media(max-width:640px){.dashboard-date-actions{width:100%}.dashboard-date-actions input{flex:1;min-width:140px}.welcome-row{align-items:flex-start;flex-direction:column}}

.dashboard-date-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.dashboard-date-actions label{display:flex;align-items:center;height:42px;margin:0;white-space:nowrap;line-height:1.2}
.dashboard-date-actions input{height:42px;min-height:42px;box-sizing:border-box}
.dashboard-date-actions .btn{height:42px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
@media(max-width:640px){.dashboard-date-actions{align-items:center;gap:8px}.dashboard-date-actions label{width:100%;height:auto}}

.dashboard-date-actions{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:nowrap}
.dashboard-date-actions label{display:inline-flex;align-items:center;height:42px;white-space:nowrap}
.dashboard-date-actions input{width:170px;height:42px;min-height:42px}
.dashboard-date-actions .btn{height:42px;min-height:42px;white-space:nowrap}
@media(max-width:640px){.dashboard-date-actions{margin-left:0;width:100%;flex-wrap:wrap;justify-content:flex-start}.dashboard-date-actions label{width:auto}}

.report-export-actions .btn:disabled{opacity:.78;cursor:wait}
.report-export-actions .btn.is-loading{min-width:150px;pointer-events:none}
.pdf-loading-spinner{display:inline-block;width:13px;height:13px;margin-right:7px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-2px;animation:pdfSpin .7s linear infinite}
@keyframes pdfSpin{to{transform:rotate(360deg)}}

/* Custom date / month picker */
.dp{position:relative;display:block;width:100%;min-width:0}
.dp.date-filter{max-width:170px}
.dp-box{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;padding:9px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);font-weight:600;font-size:14px;white-space:nowrap;transition:border-color .15s,box-shadow .15s}
.dp-box svg{flex:none;color:var(--text)}
.dp-empty{color:var(--muted);font-weight:500}
.dp:hover .dp-box{border-color:#70b99b}
.dp:focus-within .dp-box{border-color:#70b99b;box-shadow:0 0 0 3px rgba(38,145,98,.12)}
.dp input{position:absolute!important;inset:0;width:100%!important;height:100%!important;min-height:0!important;margin:0;padding:0!important;border:0!important;opacity:0;cursor:pointer;z-index:2;box-shadow:none!important}
.dp input::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.dashboard-date-actions .dp{flex:0 1 170px;width:170px;max-width:100%}

/* Custom delete confirmation modal */
.confirm-dialog{width:min(400px,calc(100% - 28px));padding:0;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--text);box-shadow:0 20px 60px rgba(0,0,0,.25)}
.confirm-dialog::backdrop{background:#10241c88;backdrop-filter:blur(2px)}
.confirm-dialog[open]{animation:confirmIn .16s ease-out}
@keyframes confirmIn{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}
.confirm-body{padding:26px 24px 20px;text-align:center}
.confirm-icon{width:52px;height:52px;margin:0 auto 14px;border-radius:50%;background:#fff0ef;display:grid;place-items:center}
.confirm-icon svg{width:24px;fill:none;stroke:#c7433d;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.dark .confirm-icon{background:#402522}
body.dark .confirm-icon svg{stroke:#ffaaa3}
.confirm-body h3{margin:0 0 6px;font-size:18px}
.confirm-body p{margin:0 0 20px;color:var(--muted);font-size:14px;line-height:1.6}
.confirm-actions{justify-content:center;margin-top:0}
.confirm-actions .btn{flex:1}
.btn-danger-solid{background:#c7433d;color:#fff;border-color:#c7433d}
.btn-danger-solid:hover{background:#a93631}

/* Report export toolbar */
.export-heading{flex-wrap:wrap;gap:14px}
.export-heading .report-export-actions{flex:1 1 100%;display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:flex-start;gap:14px 22px;padding-top:14px;border-top:1px solid var(--line)}
.export-group{display:grid;gap:6px}
.export-label{font-size:11px;font-weight:600;color:var(--muted)}
.export-row{display:flex;flex-wrap:wrap;gap:8px}
.report-export-actions .btn{display:inline-flex;align-items:center;gap:7px;font-size:13px;padding:8px 12px;white-space:nowrap}
.report-export-actions .btn .ico{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.report-export-actions #printExpenseReport .ico{stroke:#d9822b}
.report-export-actions #printDepositReport .ico{stroke:var(--green)}
.report-export-actions #printReport .ico,.report-export-actions #printDailyMeals .ico,.report-export-actions #printMemberStatement .ico{stroke:#5b7f72}
.report-export-actions .btn-primary .ico{stroke:#fff}
.report-export-actions select{min-width:150px;height:36px;padding:0 10px;font-size:13px;border-radius:9px}
.export-group:nth-child(2) .export-row{flex-wrap:nowrap}
.export-all{align-self:flex-end}
.export-all{margin-left:auto}
@media(max-width:640px){.export-all{margin-left:0;width:100%;justify-content:center}.export-group{width:100%}}

/* Quick actions: 3 side by side */
.quick-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.quick-actions button{grid-template-columns:1fr;grid-template-rows:auto;justify-items:start;row-gap:3px;padding:14px;transition:border-color .15s,transform .15s,box-shadow .15s}
.quick-actions button:hover{border-color:var(--green);transform:translateY(-1px);box-shadow:var(--shadow)}
.quick-actions button>span{grid-row:auto;margin-bottom:8px}
.quick-actions small{line-height:1.4}
@media(max-width:520px){
.quick-actions{grid-template-columns:1fr}
.quick-actions button{grid-template-columns:38px 1fr;grid-template-rows:auto auto;justify-items:stretch;column-gap:10px;row-gap:0;padding:9px}
.quick-actions button>span{grid-row:span 2;margin-bottom:0}
}

/* Theme toggle icon */
#themeIcon svg{transition:transform .3s}
#themeToggle:hover #themeIcon svg{transform:rotate(25deg)}

/* Daily report page */
.daily-grid-scroll{overflow-x:auto;margin-top:14px;border:1px solid var(--line);border-radius:12px}
.table-wrap .daily-grid{width:100%;min-width:0;border-collapse:separate;border-spacing:0}
.table-wrap .daily-grid th,.table-wrap .daily-grid td{padding:9px 6px;text-align:center;min-width:34px;border-bottom:1px solid var(--line)}
.table-wrap .daily-grid tr:last-child td{border-bottom:0}
.daily-grid thead th{background:var(--surface2);color:var(--muted);font-size:12px;font-weight:600}
.daily-grid td{background:var(--surface);color:var(--text)}
.daily-grid tbody tr:hover td{background:var(--surface2)}
.daily-grid tfoot td{background:var(--green2);color:var(--green)}
.daily-grid th:first-child,.daily-grid td:first-child{position:sticky;left:0;z-index:2;text-align:left;min-width:120px;padding-left:14px;border-right:1px solid var(--line)}
.daily-grid th.today,.daily-grid td.today{background:var(--green2);color:var(--green);font-weight:700}
.daily-grid .sum{position:sticky;z-index:2;font-weight:700}
.table-wrap .daily-grid .sum-meals{right:96px;width:72px;min-width:72px;max-width:72px;border-left:1px solid var(--line)}
.table-wrap .daily-grid .sum-bill{right:0;width:96px;min-width:96px;max-width:96px}
.daily-grid td.sum{background:var(--surface)}
.daily-grid tfoot td.sum{background:var(--green2)}
.daily-grid thead th.sum{background:var(--surface2)}
.daily-grid thead th:first-child{z-index:3}
.cm{background:#ffd9a0;color:#8a4b00;border:1px solid #e8a243;border-radius:5px;padding:0 6px;font-weight:700;display:inline-block}
body.dark .cm{background:#4a3517;color:#ffcf8a;border-color:#7a5522}
.daily-legend{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px;font-size:12px;color:var(--muted)}
.daily-today-dot{width:12px;height:12px;border-radius:3px;background:var(--green2);border:1px solid var(--green);display:inline-block;margin-left:10px}
body.dark .daily-grid tfoot td,body.dark .daily-grid th.today,body.dark .daily-grid td.today{color:#7fd3b0}
body.dark .daily-today-dot{border-color:#7fd3b0}
@media(max-width:640px){
.table-wrap .daily-grid .sum{position:static;width:auto;min-width:64px;max-width:none;border-left:0}
.daily-grid th:first-child,.daily-grid td:first-child{min-width:88px;padding-left:10px}
}

/* Mobile topbar: title truly centered between menu and avatar */
@media(max-width:760px){
.topbar{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px}
.topbar>div:nth-child(2){text-align:center;min-width:0}
.topbar h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-actions{justify-content:flex-end}
.mobile-menu{justify-self:start}
}

/* Monthly report: 5 stat cards in one line */
.stats-grid.stats-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.stats-5 .stat-card{min-width:0}
.stats-5 .stat-top>span:first-child{min-width:0;overflow-wrap:anywhere}
.stats-5 .stat-icon{flex:none}
.stats-5 .stat-card>small{display:block;margin-top:2px}
@media(max-width:1100px){
.stats-grid.stats-5{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.stats-5 .stat-card{padding:14px 12px}
.stats-5 .stat-top{align-items:flex-start;gap:6px;font-size:12px;line-height:1.35;min-height:2.7em}
.stats-5 .stat-icon{display:none}
.stats-5 .stat-card>strong{font-size:22px}
}
@media(max-width:760px){
.stats-grid.stats-5{grid-template-columns:1fr 1fr}
.stats-5 .stat-card:last-child{grid-column:1/-1}
.stats-5 .stat-top{min-height:0;align-items:center;font-size:11px}
.stats-5 .stat-icon{display:grid;width:30px;height:30px;border-radius:9px}
.stats-5 .stat-icon svg{width:16px;height:16px}
}

/* Remove number input up/down arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
-moz-appearance: textfield;
     appearance: textfield;
}

/* Unified input / select typography (same size & weight everywhere) */
input,select,
.record-edit-fields input,.record-edit-fields select,
.dashboard-date-actions input,
.report-export-actions select{font-family:inherit;font-size:14px;font-weight:600}
input::placeholder{font-size:14px;font-weight:500;color:var(--muted);opacity:1}
select option{font-weight:500}

/* Dark mode: sidebar menu text same clarity as the rest of the UI */
body.dark .nav-item{color:var(--text)}
body.dark .nav-label{color:var(--muted)}
body.dark .nav-item:hover,body.dark .nav-item.active{color:#7fd3b0}
body.dark .nav-item .nav-icon{color:inherit}

/* Type-to-confirm (used only for "delete all data") */
.confirm-type{margin:-6px 0 18px;text-align:left;display:grid;gap:6px}
.confirm-type label{font-size:13px;color:var(--muted)}
.confirm-type label b{color:#c7433d;letter-spacing:.5px}
body.dark .confirm-type label b{color:#ffaaa3}
.confirm-type input{text-align:center;letter-spacing:1px}
.confirm-actions .btn:disabled{opacity:.45;cursor:not-allowed}
.confirm-actions .btn-danger-solid:disabled:hover{background:#c7433d}

/* Keep the "type DELETE" instruction on one line */
.confirm-dialog .confirm-type label{display:block;text-align:center;font-weight:500;line-height:1.5}
.confirm-dialog .confirm-type label b{display:inline;font-weight:700}

/* Today's meal update cards: same text style as the expense update cards */
.meal-summary .slot-card{color:var(--text);text-align:left;padding:13px}
.meal-summary .slot-card b{font-size:13px;font-weight:600;margin-bottom:4px}
.meal-summary .slot-card strong{display:block;font-size:22px}
.meal-summary .slot-card small{font-size:12px;color:var(--muted);margin-top:2px}
