/* Pembukuan Harian — refined, accessible dashboard layer */
:root {
  --bg: #f8fafc;
  --ink: #172b23;
  --muted: #596b62;
  --line: #e7ece9;
  --green: #087653;
  --green-dark: #075c42;
  --green-light: #e9f5ef;
  --card: #fff;
  --shadow-sm: 0 2px 8px rgba(15, 40, 28, .04);
  --shadow: 0 12px 30px rgba(15, 40, 28, .08);
}
html, body { font-family: Inter, 'Plus Jakarta Sans', system-ui, sans-serif; background: #f8fafc; color: #172b23; }
body { background: #f8fafc; }
.brand-text h1 { font-weight: 700; letter-spacing: -.04em; }
.content { max-width: 1320px; padding: 24px 36px 48px; }
.hero { border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 34px 38px; background: linear-gradient(125deg,#064e3b 0%,#075c47 55%,#0b3b3a 100%); box-shadow: 0 16px 34px rgba(6,78,59,.16); }
.hero .label { color: #d1fae5; font-weight: 600; letter-spacing: .1em; }
.hero .amount { font-family: Inter, system-ui, sans-serif; font-size: clamp(30px,4vw,44px); font-weight: 700; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.hero small { color: #d1ded8; }
.metrics { display: grid; grid-template-columns: repeat(1,minmax(0,1fr)); gap: 18px; }
.metric,.panel { background: #fff; border: 1px solid #e7ece9; border-radius: 16px; box-shadow: var(--shadow-sm); }
.metric { position: relative; padding: 22px; transition: transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.metric:hover { transform: translateY(-2px); border-color: #cbded3; box-shadow: var(--shadow); }
.metric .label { color: #596b62; font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.metric strong { display: block; margin-top: 10px; color: #172b23; font-family: Inter,system-ui,sans-serif; font-size: clamp(19px,2vw,24px); font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.panel { padding: 26px; margin-bottom: 20px; }
.panel h2 { color: #172b23; font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
th { color: #596b62; background: #f8faf9; font-size: 11px; font-weight: 600; }
th,td { padding: 14px 16px; }
td { border-bottom: 1px solid #edf1ef; }
tr:hover td { background: #f8faf9; }
td.number,th.number { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
input,select { border: 1px solid #d9e2dd; border-radius: 10px; background: #fff; font: inherit; }
input:focus,select:focus { outline: none; border-color: #10a36d; box-shadow: 0 0 0 3px #d9f3e6; }
button.primary { width: auto; justify-self: end; padding: 11px 24px; border-radius: 9px; background: #078454; box-shadow: 0 2px 5px rgba(7,132,84,.16); font-weight: 600; transition: background .15s ease,transform .15s ease; }
button.primary:hover { background: #066b45; transform: translateY(-1px); }
.field { max-width: 100%; }
form { max-width: 100%; }
.empty { color: #596b62; }
.side-nav { background: linear-gradient(160deg,#12382b,#102b23); }
.side-nav button.active { background: rgba(16,185,129,.16); box-shadow: inset 3px 0 #34d399; }
.side-nav button.active svg { stroke: #a7f3d0; }
@media (min-width: 640px) { .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (min-width: 1024px) { .metrics { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (min-width: 768px) {
  .income-entry,.content > .form-panel,.content > section.entry-panel { max-width: 100%; }
  .income-entry { max-width: 960px; }
  .income-entry form { max-width: 100%; }
}
@media (max-width: 767px) {
  .content { padding: 8px 16px 28px; }
  .hero { padding: 26px 22px; border-radius: 18px; }
  .hero .amount { font-size: 29px; }
  .metric { padding: 18px; }
  .panel { padding: 20px; }
  .table-wrap { margin: 0 -20px; padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
