/* Pembukuan Harian — modern accessible UI layer */
:root{--bg:#f8fafc;--ink:#172b23;--muted:#52645b;--line:#e8eeeb;--green:#047857;--green-dark:#065f46;--soft:#ecfdf5;--shadow:0 1px 3px rgba(15,23,42,.04),0 8px 24px rgba(15,23,42,.035)}
html,body{font-family:Inter,'Plus Jakarta Sans',system-ui,-apple-system,sans-serif!important;background:#f8fafc!important;color:#172b23;letter-spacing:normal}
.brand-text h1,.nav-brand,.panel h2,.auth-card h1,.setup-card h1,.hero .amount,.metric strong{font-family:Inter,'Plus Jakarta Sans',system-ui,sans-serif!important}
.content{width:100%;max-width:1280px!important;margin-left:auto!important;margin-right:auto!important;padding:24px 16px 48px!important}
.hero{border:1px solid rgba(255,255,255,.13)!important;border-radius:24px!important;padding:24px!important;background:linear-gradient(135deg,#064e3b 0%,#065f46 48%,#0f3d43 100%)!important;box-shadow:0 16px 40px rgba(6,78,59,.14)!important}
.hero .label{color:#d1fae5!important}.hero small{color:#d1fae5!important;font-size:12px!important;opacity:1!important}.hero .amount{font-size:36px!important;line-height:1.1!important;font-weight:700!important;letter-spacing:-.045em!important;font-variant-numeric:tabular-nums}
.metrics{display:grid!important;grid-template-columns:repeat(1,minmax(0,1fr))!important;gap:20px!important}
.metric,.panel{background:#fff!important;border:1px solid #e8eeeb!important;border-radius:16px!important;box-shadow:var(--shadow)!important}
.metric{padding:16px!important;position:relative;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.metric:hover{transform:translateY(-2px);border-color:#b9d9c9!important;box-shadow:0 12px 30px rgba(15,23,42,.08)!important}
.metric .label{color:#475569!important;font-weight:600;font-size:12px!important;letter-spacing:.08em!important;text-transform:uppercase}.metric strong{color:#0f172a!important;font-size:24px!important;line-height:1.2!important;font-weight:700!important;letter-spacing:-.035em!important;font-variant-numeric:tabular-nums}
/* Small inline dashboard icon tiles */
.metric:after{position:absolute;right:18px;top:18px;width:34px;height:34px;border-radius:11px;background:#ecfdf5;color:#047857;display:grid;place-items:center;font:600 16px Inter,sans-serif}
.content:has(.hero) .metrics .metric:nth-child(1):after{content:'◈'}
.content:has(.hero) .metrics .metric:nth-child(2):after{content:'▦'}
.content:has(.hero) .metrics .metric:nth-child(3):after{content:'↗'}
.content:has(.hero) .metrics .metric:nth-child(4):after{content:'✦'}
.panel{padding:16px!important;margin-bottom:20px}.panel h2{font-size:16px!important;font-weight:700!important;color:#172b23!important;letter-spacing:-.02em!important}.dashboard-grid{min-width:0}.dashboard-grid>.panel{min-width:0}
th{background:#f8fafc!important;color:#52645b!important;font-size:11px;font-weight:600}th,td{padding:10px 16px!important}td{border-bottom:1px solid #edf1ef!important}.dashboard-grid .table-wrap{overflow:visible!important}tr:hover td{background:rgba(248,250,252,.7)!important}td.number,th.number{text-align:right!important;font-variant-numeric:tabular-nums;font-weight:600}
.muted,.empty,.field label{color:#52645b!important}.hero small{color:#d1fae5!important;font-weight:500!important}.positive{color:#047857!important}.negative{color:#b42318!important}
input,select,textarea{font-family:inherit!important;border:1px solid #dbe4df!important;border-radius:10px!important;background:#fff!important;color:#172b23!important;min-height:42px;transition:border-color .15s,box-shadow .15s}
input:focus,select:focus,textarea:focus{outline:none!important;border-color:#10a36d!important;box-shadow:0 0 0 3px #d1fae5!important}
button.primary{width:auto!important;justify-self:end;padding:10px 24px!important;border-radius:9px!important;background:#059669!important;color:white!important;font-weight:600!important;box-shadow:0 2px 5px rgba(5,150,105,.16)!important;transition:background .15s,transform .15s}
button.primary:hover{background:#047857!important;transform:translateY(-1px)}form{max-width:100%}.content> .panel:has(form),.content>form{max-width:760px;margin-left:auto;margin-right:auto}
.content:has(.income-entry)>.income-entry{max-width:760px!important;margin-left:auto;margin-right:auto}.income-entry form{max-width:100%!important}
.secondary,.report-export{background:#fff!important;color:#334155!important;border:1px solid #cbd5e1!important;border-radius:9px!important;padding:9px 15px!important;font-weight:600;transition:background .15s}.secondary:hover,.report-export:hover{background:#f8fafc!important}
.report-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 20px}.report-custom-dates{max-width:760px}.report-filters{gap:18px!important}
.empty-state{display:grid;justify-items:center;text-align:center;gap:8px;padding:36px 20px;color:#52645b}.empty-state svg{width:46px;height:46px;color:#059669;padding:11px;border-radius:15px;background:#ecfdf5}.empty-state p{margin:0}.empty-state .primary{margin-top:8px}
.side-nav{background:linear-gradient(160deg,#12382b,#102b23)!important}.side-nav button.active{background:rgba(16,185,129,.16)!important;box-shadow:inset 3px 0 #34d399!important}.side-nav button.active svg{stroke:#a7f3d0}
@media(min-width:640px){.content{padding-left:24px!important;padding-right:24px!important}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}.metric{padding:20px!important}}
@media(min-width:1024px){.metrics{grid-template-columns:repeat(4,minmax(0,1fr))!important}.hero .amount{font-size:40px!important}.metric strong{font-size:24px!important}}
@media(max-width:767px){.content{padding:12px 16px 30px!important}.hero{padding:24px!important;border-radius:20px!important}.hero .amount{font-size:30px!important}.metric{padding:16px!important}.panel{padding:16px!important}.dashboard-grid .table-wrap{overflow-x:auto!important}.table-wrap{margin:0 -16px;padding:0 16px}}
/* Dashboard compact density: keep the overview visible at standard desktop zoom. */
.dashboard-page .content,.content:has(.hero){padding-top:24px!important;padding-bottom:48px!important}
.content:has(.hero) .hero{padding:24px!important;min-height:0!important;border-radius:24px!important;display:block!important}
.content:has(.hero) .hero .label{display:block!important;font-size:11px!important;line-height:1.3!important;letter-spacing:.1em!important}
.content:has(.hero) .hero .amount{display:block!important;font-size:36px!important;line-height:1.1!important;margin-top:10px!important}
.content:has(.hero) .hero small{display:block!important;font-size:12px!important;line-height:1.3!important;margin:8px 0 0!important}
.content:has(.hero) .metrics{gap:12px!important;margin-top:12px!important}
.content:has(.hero) .metric{padding:12px!important;border-radius:12px!important}
.content:has(.hero) .metric .label{font-size:11px!important;line-height:1.25!important;letter-spacing:.06em!important}
.content:has(.hero) .metric strong{font-size:18px!important;line-height:1.15!important;margin-top:6px!important}
.content:has(.hero) .metric:after{right:12px;top:12px;width:28px;height:28px;border-radius:8px;font-size:13px}
.content:has(.hero) .dashboard-grid{gap:12px!important;margin-top:12px!important}
.content:has(.hero) .dashboard-grid>.panel{padding:12px!important;margin-bottom:0!important;border-radius:12px!important}
.content:has(.hero) .dashboard-grid .panel h2{font-size:14px!important;line-height:1.25!important;margin:0 0 8px!important}
.content:has(.hero) .dashboard-grid th,.content:has(.hero) .dashboard-grid td{padding:6px 12px!important;font-size:12px!important;line-height:1.25!important}
.content:has(.hero) .dashboard-grid .table-wrap{max-height:none!important;overflow:visible!important}
@media(min-width:1024px){.content:has(.hero){padding-left:16px!important;padding-right:16px!important}.content:has(.hero) .hero{padding:24px!important}.content:has(.hero) .hero .amount{font-size:40px!important}.content:has(.hero) .metric{padding:12px!important}.content:has(.hero) .dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:639px){.content:has(.hero) .hero{padding:24px!important}.content:has(.hero) .hero small{width:auto;margin:8px 0 0}.content:has(.hero) .metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}.content:has(.hero) .metric strong{font-size:17px!important}.content:has(.hero) .dashboard-grid{grid-template-columns:1fr!important}}
.content:has(.hero) .hero small{color:#d1fae5!important;font-weight:500!important;opacity:1!important}
/* Unified transaction and management page architecture */
.transaction-card{padding:24px!important;border-radius:20px!important;border-color:#e2e8f0!important;box-shadow:0 1px 3px rgba(15,23,42,.04),0 10px 24px rgba(15,23,42,.035)!important}
.form-heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:22px}.form-icon{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:12px;background:#ecfdf5;color:#047857;font-size:20px;font-weight:700}.form-heading h2{margin:0!important;font-size:18px!important}.form-subtitle{margin:4px 0 0;color:#64748b;font-size:13px;line-height:1.45}
.transaction-card form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.transaction-card form .field{min-width:0}.transaction-card form .field.full{grid-column:1/-1}.transaction-card form .primary{grid-column:1/-1;justify-self:end;margin-top:4px}
.transaction-card .field{position:relative}.transaction-card .field label{display:block;margin-bottom:7px;color:#475569!important;font-size:12px;font-weight:600}.transaction-card input,.transaction-card select,.transaction-card textarea{width:100%;border:1px solid #cbd5e1!important;border-radius:12px!important;padding:10px 14px!important;color:#1e293b!important;font-size:14px!important;font-weight:500!important;min-height:42px}.transaction-card input:focus,.transaction-card select:focus,.transaction-card textarea:focus{border-color:#10b981!important;box-shadow:0 0 0 3px rgba(16,185,129,.16)!important}
.transaction-card .field:has(.has-currency)::before{content:'Rp';position:absolute;left:1px;bottom:1px;z-index:1;display:grid;place-items:center;width:36px;height:40px;border-radius:11px 0 0 11px;background:#f1f5f9;color:#64748b;font-size:12px;font-weight:700;pointer-events:none}.transaction-card .field .has-currency{padding-left:48px!important}
.content:has(.transaction-card){max-width:1280px}.content:has(.transaction-card)>.transaction-card{max-width:none!important;margin-left:0!important;margin-right:0!important}.content:has(.transaction-card)>.panel:not(.transaction-card){max-width:none!important;margin-left:0!important;margin-right:0!important}.content:has(.transaction-card)>.transaction-card+ .panel{margin-top:0}
.content:has(.transaction-card) .table-wrap{overflow-x:auto}.content:has(.transaction-card) table{width:100%;border-collapse:separate;border-spacing:0}.content:has(.transaction-card) th,.content:has(.transaction-card) td{padding:12px 16px!important;font-size:13px}.content:has(.transaction-card) tbody tr{transition:background .15s}.content:has(.transaction-card) tbody tr:hover td{background:#f8fafc!important}.content:has(.transaction-card) .empty{padding:32px;text-align:center;color:#64748b}
@media(min-width:1024px){.content:has(>.transaction-card){display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:24px;align-items:start}.content:has(>.transaction-card)> .transaction-card{grid-column:span 2}.content:has(>.transaction-card)> .panel:not(.transaction-card){grid-column:1/-1}.content:has(>.transaction-card)>.transaction-card form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:639px){.transaction-card{padding:18px!important}.transaction-card form{grid-template-columns:1fr;gap:13px}.transaction-card form .field.full{grid-column:auto}.transaction-card form .primary{grid-column:auto;width:100%;justify-self:stretch}.form-heading{margin-bottom:18px}}
.reports-page{max-width:1280px!important}.report-filter-card,.report-results-card{padding:24px!important;border-radius:20px!important;border-color:#e2e8f0!important}.report-title{display:flex;align-items:flex-start;gap:12px;margin-bottom:20px}.report-title h2{margin:0!important;font-size:20px!important}.report-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.report-controls .field{min-width:0}.report-controls label{display:block;margin-bottom:7px;color:#475569!important;font-size:12px;font-weight:600}.report-controls input,.report-controls select{width:100%;border:1px solid #cbd5e1!important;border-radius:12px!important;padding:10px 14px!important;font-size:14px!important}.report-actions{display:flex;justify-content:flex-end;gap:10px;margin:20px 0 0}.report-pdf,.report-csv{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:12px;padding:10px 16px;font-size:13px;font-weight:600;transition:background .15s,transform .15s}.report-pdf{background:#ef4444;color:#fff}.report-pdf:hover{background:#dc2626;transform:translateY(-1px)}.report-csv{background:#059669;color:#fff}.report-csv:hover{background:#047857;transform:translateY(-1px)}.report-results-card{margin-bottom:20px}.report-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}.report-metric{padding:16px;border:1px solid #f1f5f9;border-radius:14px;background:#f8fafc}.report-metric.highlight{background:#ecfdf5;border-color:#d1fae5}.report-metric span{display:block;color:#64748b;font-size:12px;font-weight:600}.report-metric strong{display:block;margin-top:7px;color:#0f172a;font-size:22px;font-weight:700;font-variant-numeric:tabular-nums}.report-metric.highlight strong{color:#047857}.report-table-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px;color:#475569;font-size:13px}.report-search{display:flex;align-items:center;gap:8px;width:min(360px,100%);padding:0 12px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}.report-search span{color:#94a3b8;font-size:18px}.report-search input{width:100%;border:0!important;outline:0!important;box-shadow:none!important;padding:9px 0!important;min-height:38px}.report-results-card th,.report-results-card td{padding:12px 16px!important}.report-results-card tbody tr:hover td{background:rgba(248,250,252,.7)!important}.report-empty{display:grid;place-items:center;text-align:center;padding:56px 20px;color:#64748b}.empty-icon{display:grid;place-items:center;width:56px;height:56px;margin-bottom:14px;border-radius:999px;background:#f1f5f9;color:#94a3b8;font-size:24px}.report-empty h3{margin:0;color:#334155;font-size:16px}.report-empty p{margin:7px 0 0;font-size:13px}@media(max-width:900px){.report-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:639px){.report-filter-card,.report-results-card{padding:18px!important}.report-controls,.report-summary{grid-template-columns:1fr}.report-actions{justify-content:stretch}.report-pdf,.report-csv{flex:1;justify-content:center}.report-table-head{align-items:stretch;flex-direction:column}.report-search{width:100%}}
.income-example{margin:0 0 18px;padding:14px;border:1px solid #d1fae5;border-radius:12px;background:rgba(236,253,245,.6);color:#334155;font-size:12px;line-height:1.55}.income-example strong{color:#047857;font-weight:700}.field-help{display:block;margin-top:6px;color:#64748b;font-size:11px;line-height:1.4}.content:has(.income-entry){max-width:1024px!important}.content:has(.income-entry)>.income-entry{max-width:896px!important;margin-left:auto!important;margin-right:auto!important}.content:has(.income-entry)>.income-entry form{max-width:100%!important}
@media(max-width:639px){.income-example{font-size:11px;padding:12px}.content:has(.income-entry)>.income-entry{max-width:none!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
