:root {
  --paper: #f7f8f5;
  --surface: #ffffff;
  --surface-soft: #f1f4ef;
  --ink: #1e2924;
  --muted: #7b8580;
  --line: #e4e9e3;
  --green: #145b47;
  --green-strong: #0d4837;
  --green-soft: #dcefe7;
  --lime: #c5dc4b;
  --amber: #d99431;
  --amber-soft: #fff2d7;
  --red: #cf655b;
  --red-soft: #fbe4e0;
  --shadow: 0 18px 46px rgba(35, 55, 44, .07);
  --radius: 16px;
  --sidebar: 250px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--paper); color: var(--ink); font-family: 'Manrope', sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar); background: var(--green); color: #fff; padding: 29px 18px 22px; display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 20; }
.brand-lockup { display: flex; align-items: center; gap: 11px; padding: 0 9px 39px; }
.brand-mark { width: 34px; height: 34px; border-radius: 12px 12px 12px 4px; background: var(--lime); position: relative; transform: rotate(-8deg); }
.brand-mark::before { content: ''; position: absolute; width: 15px; height: 15px; border: 2px solid var(--green); border-radius: 50%; left: 8px; top: 8px; }
.brand-mark span { position: absolute; width: 8px; height: 9px; background: var(--lime); border-radius: 0 9px 9px 0; left: 14px; top: 7px; }
.brand-name { font-size: 13px; font-weight: 800; letter-spacing: -.3px; }
.brand-caption { color: rgba(255,255,255,.51); font-size: 13px; font-family: 'DM Mono', monospace; letter-spacing: .8px; margin-top: 3px; }
.sidebar-section-label { color: rgba(255,255,255,.42); font-size: 13px; font-family: 'DM Mono', monospace; letter-spacing: .12em; text-transform: uppercase; padding: 0 13px 12px; }
.primary-nav { display: grid; gap: 4px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.66); background: transparent; border-radius: 10px; min-height: 43px; padding: 0 13px; text-align: left; transition: .2s ease; font-size: 13px; }
.nav-item:hover { background: rgba(255,255,255,.09); color: white; }
.nav-item.active { background: rgba(255,255,255,.13); color: white; font-weight: 700; }
.nav-icon, [data-icon] { width: 17px; height: 17px; display: inline-grid; place-items: center; flex: none; }
.nav-icon svg, [data-icon] svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-count { margin-left: auto; background: rgba(255,255,255,.16); color: rgba(255,255,255,.85); border-radius: 7px; padding: 3px 6px; font: 13px 'DM Mono', monospace; }
.sidebar-spacer { flex: 1; min-height: 35px; }
.support-card { border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.06); border-radius: 13px; padding: 15px 14px 14px; }
.support-icon { color: var(--lime); width: 18px; margin-bottom: 12px; }
.support-title { font-weight: 700; font-size: 13px; }
.support-copy { color: rgba(255,255,255,.52); line-height: 1.55; font-size: 13px; margin: 6px 0 12px; }
.text-button { color: var(--lime); background: transparent; padding: 0; font-size: 13px; font-weight: 700; }
.text-button span { margin-left: 6px; font-size: 13px; }
.sidebar-footer { color: rgba(255,255,255,.47); font: 13px 'DM Mono', monospace; padding: 19px 5px 0; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); margin-right: 7px; box-shadow: 0 0 0 3px rgba(197,220,75,.12); }
.main-content { width: calc(100% - var(--sidebar)); margin-left: var(--sidebar); min-width: 0; }
.topbar { height: 76px; border-bottom: 1px solid var(--line); background: rgba(247,248,245,.84); backdrop-filter: blur(14px); display: flex; align-items: center; justify-content: space-between; padding: 0 4.3vw; position: sticky; top: 0; z-index: 10; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.breadcrumb strong { color: var(--ink); font-weight: 700; }
.breadcrumb-separator { color: #c8d0ca; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { background: transparent; color: var(--muted); width: 35px; height: 35px; border-radius: 9px; display: grid; place-items: center; position: relative; }
.icon-button:hover { background: var(--surface-soft); color: var(--green); }
.icon-button > span { width: 17px; }
.notification-button i { position: absolute; right: 8px; top: 7px; width: 5px; height: 5px; background: var(--red); border-radius: 50%; border: 1px solid var(--paper); }
.profile-chip { display: flex; gap: 9px; align-items: center; margin-left: 5px; padding-left: 13px; border-left: 1px solid var(--line); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 800; }
.profile-copy { display: grid; gap: 2px; min-width: 62px; }
.profile-copy strong { font-size: 13px; }
.profile-copy span { font: 13px 'DM Mono', monospace; color: var(--muted); }
.profile-chip > span { width: 12px; color: var(--muted); }
.mobile-menu { display: none; background: transparent; color: var(--green); width: 32px; }
.page-wrap { max-width: 1390px; padding: 36px 4.3vw 55px; margin: 0 auto; }
.eyebrow { color: var(--green); font: 13px 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 27px; }
h1 { font-size: clamp(25px, 3.1vw, 37px); letter-spacing: -1.8px; line-height: 1.08; margin: 0; font-weight: 800; }
.heading-copy { color: var(--muted); margin: 10px 0 0; font-size: 13px; line-height: 1.65; }
.heading-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: end; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 9px; min-height: 38px; padding: 0 14px; font-size: 13px; font-weight: 700; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: var(--green); box-shadow: 0 6px 16px rgba(20,91,71,.16); }
.btn-primary:hover { background: var(--green-strong); }
.btn-quiet { color: var(--green); background: var(--green-soft); }
.btn-outline { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn .mini-icon { width: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; min-height: 132px; position: relative; overflow: hidden; }
.stat-card::after { content: ''; position: absolute; width: 74px; height: 74px; border: 1px solid var(--green-soft); border-radius: 50%; right: -20px; bottom: -28px; }
.stat-card.accent { background: var(--green); color: #fff; border-color: var(--green); }
.stat-card.accent::after { border-color: rgba(197,220,75,.25); }
.stat-top { display: flex; justify-content: space-between; align-items: start; }
.stat-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat-card.accent .stat-label { color: rgba(255,255,255,.6); }
.stat-icon { width: 27px; height: 27px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 8px; }
.stat-icon svg { width: 14px; }
.stat-card.accent .stat-icon { background: rgba(255,255,255,.12); color: var(--lime); }
.stat-value { font-size: 22px; letter-spacing: -1.3px; margin-top: 20px; font-weight: 800; }
.stat-foot { display: flex; align-items: center; gap: 5px; margin-top: 7px; color: var(--muted); font-size: 13px; }
.stat-card.accent .stat-foot { color: rgba(255,255,255,.64); }
.trend-up { color: var(--green); font-weight: 700; }
.stat-card.accent .trend-up { color: var(--lime); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.43fr) minmax(300px, .82fr); gap: 14px; margin-top: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 19px; min-width: 0; }
.panel-header { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 20px; }
.panel-title { font-size: 13px; font-weight: 800; margin: 0; }
.panel-subtitle { color: var(--muted); font-size: 13px; margin-top: 5px; }
.link-button { color: var(--green); font-size: 13px; font-weight: 700; background: transparent; padding: 4px 0; white-space: nowrap; }
.link-button:hover { text-decoration: underline; }
.chart-wrap { position: relative; height: 214px; display: flex; gap: 13px; }
.chart-y { width: 46px; flex: none; white-space: nowrap; text-align: right; height: 177px; display: flex; flex-direction: column; justify-content: space-between; color: #a4aea7; font: 13px 'DM Mono', monospace; padding: 3px 0 0; }
.chart-area { position: relative; flex: 1; height: 194px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 47px, #eef1ed 48px); }
.chart-bars { position: absolute; inset: 0 4px 0 3px; display: flex; justify-content: space-around; align-items: end; gap: 5%; }
.chart-column { flex: 1; max-width: 44px; height: 100%; display: flex; align-items: end; gap: 4px; position: relative; }
.chart-bar { flex: 1; min-height: 5px; border-radius: 4px 4px 0 0; background: #cfe5db; transition: height .45s ease; }
.chart-bar.income { background: var(--green); }
.chart-column:hover .chart-bar { filter: brightness(1.08); }
.chart-labels { position: absolute; left: 0; right: 0; bottom: -23px; display: flex; justify-content: space-around; color: #a4aea7; font: 13px 'DM Mono', monospace; }
.chart-legend { display: flex; gap: 13px; color: var(--muted); font-size: 13px; margin: 12px 0 0 59px; }
.legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: #cfe5db; margin-right: 5px; }
.legend-dot.income { background: var(--green); }
.activity-panel { background: var(--green); color: #fff; border: 0; }
.activity-panel .panel-subtitle { color: rgba(255,255,255,.52); }
.activity-panel .link-button { color: var(--lime); }
.activity-list { display: grid; gap: 1px; }
.activity-item { display: flex; gap: 11px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.activity-item:last-child { border-bottom: 0; }
.activity-date { width: 34px; height: 37px; flex: none; display: grid; place-items: center; align-content: center; background: rgba(255,255,255,.1); border-radius: 8px; }
.activity-date strong { font-size: 13px; line-height: 1; }
.activity-date span { color: rgba(255,255,255,.55); font: 13px 'DM Mono', monospace; text-transform: uppercase; margin-top: 3px; }
.activity-copy { min-width: 0; flex: 1; }
.activity-copy strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-copy span { color: rgba(255,255,255,.54); display: block; font-size: 13px; margin-top: 4px; }
.activity-time { color: var(--lime); font: 13px 'DM Mono', monospace; }
.lower-grid { display: grid; grid-template-columns: minmax(0, 1.43fr) minmax(300px, .82fr); gap: 14px; margin-top: 14px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 500px; }
th { color: var(--muted); font: 13px 'DM Mono', monospace; text-align: left; text-transform: uppercase; letter-spacing: .06em; padding: 0 8px 11px; border-bottom: 1px solid var(--line); }
td { padding: 12px 8px; border-bottom: 1px solid #edf0ed; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
.transaction-name { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.transaction-icon { width: 25px; height: 25px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 7px; }
.transaction-icon svg { width: 13px; }
.transaction-meta { color: var(--muted); font-size: 13px; margin-top: 3px; font-weight: 500; }
.amount { font-family: 'DM Mono', monospace; font-size: 13px; white-space: nowrap; }
.amount.in { color: var(--green); }
.amount.out { color: var(--red); }
.badge { display: inline-flex; border-radius: 5px; padding: 4px 7px; font: 13px 'DM Mono', monospace; }
.badge-green { color: var(--green); background: var(--green-soft); }
.badge-amber { color: #9a641d; background: var(--amber-soft); }
.badge-red { color: #a94e47; background: var(--red-soft); }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-action { min-height: 78px; padding: 12px; border: 1px solid var(--line); background: var(--paper); border-radius: 11px; color: var(--ink); text-align: left; transition: .2s ease; }
.quick-action:hover { border-color: var(--green); background: var(--green-soft); transform: translateY(-2px); }
.quick-action .quick-icon { color: var(--green); width: 18px; margin-bottom: 8px; }
.quick-action strong { display: block; font-size: 13px; }
.quick-action span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.page-section-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 14px; }
.mini-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 17px; }
.mini-label { color: var(--muted); font-size: 13px; }
.mini-value { font-size: 22px; font-weight: 800; letter-spacing: -1px; margin-top: 13px; }
.mini-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.data-panel { margin-top: 14px; }
.search-field { position: relative; min-width: 190px; }
.search-field input { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; width: 100%; height: 34px; padding: 0 10px 0 30px; outline: none; font-size: 13px; color: var(--ink); }
.search-field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(20,91,71,.08); }
.search-field > span { position: absolute; left: 10px; top: 9px; width: 13px; color: var(--muted); }
.empty-state { padding: 35px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.inventory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.inventory-card { border: 1px solid var(--line); border-radius: 12px; padding: 15px; background: var(--paper); }
.inventory-head { display: flex; justify-content: space-between; align-items: start; }
.inventory-art { width: 35px; height: 35px; color: var(--green); background: var(--green-soft); border-radius: 10px; display: grid; place-items: center; }
.inventory-art svg { width: 18px; }
.inventory-name { font-weight: 700; font-size: 13px; margin-top: 15px; }
.inventory-meta { font-size: 13px; color: var(--muted); margin-top: 5px; }
.inventory-meter { height: 4px; background: #e3e9e4; border-radius: 4px; margin-top: 15px; overflow: hidden; }
.inventory-meter span { height: 100%; display: block; border-radius: 4px; background: var(--green); }
.announcement-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.announcement-card { border: 1px solid var(--line); border-radius: 12px; padding: 17px; background: var(--paper); }
.announcement-date { color: var(--green); font: 13px 'DM Mono', monospace; }
.announcement-title { font-size: 13px; font-weight: 800; line-height: 1.4; margin: 10px 0 7px; }
.announcement-copy { color: var(--muted); font-size: 13px; line-height: 1.6; }
.announcement-foot { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 11px; color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; }
.modal-layer { position: fixed; inset: 0; background: rgba(21,38,29,.42); z-index: 50; display: grid; place-items: center; padding: 18px; }
.modal-layer[hidden] { display: none; }
.modal { width: min(480px, 100%); background: var(--surface); border-radius: 16px; box-shadow: 0 24px 70px rgba(12,31,21,.22); padding: 23px; }
.modal-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 20px; }
.modal-title { font-size: 16px; font-weight: 800; margin: 0; }
.modal-copy { color: var(--muted); font-size: 13px; margin-top: 6px; }
.modal-close { background: var(--surface-soft); color: var(--muted); width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-field { display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font: 13px 'DM Mono', monospace; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 8px; outline: none; padding: 10px; font-size: 13px; }
.form-field textarea { min-height: 74px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(20,91,71,.08); }
.modal-actions { display: flex; justify-content: end; gap: 8px; margin-top: 20px; }
.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 100; display: grid; gap: 8px; }
.toast { background: var(--green); color: #fff; box-shadow: 0 12px 30px rgba(20,91,71,.2); border-radius: 9px; padding: 12px 15px; font-size: 13px; animation: toastIn .25s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
body.dark { --paper: #17211c; --surface: #1f2b25; --surface-soft: #26352e; --ink: #eef4ef; --muted: #a3b1a9; --line: #33423a; --green-soft: #25473a; --amber-soft: #4b3c24; --red-soft: #4b2d2a; --shadow: 0 18px 46px rgba(0,0,0,.18); }
body.dark .topbar { background: rgba(23,33,28,.84); } body.dark .search-field input, body.dark .form-field input, body.dark .form-field select, body.dark .form-field textarea { background: #18231d; } body.dark .quick-action, body.dark .inventory-card, body.dark .announcement-card { background: #1a261f; }
@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } .dashboard-grid, .lower-grid { grid-template-columns: 1fr; } .inventory-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { :root { --sidebar: 250px; } .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: 20px 0 40px rgba(0,0,0,.12); } .sidebar.open { transform: translateX(0); } .main-content { width: 100%; margin-left: 0; } .topbar { padding: 0 20px; } .mobile-menu { display: block; } .breadcrumb { margin-right: auto; margin-left: 8px; } .profile-copy, .profile-chip > span { display: none; } .profile-chip { border-left: 0; padding-left: 1px; } .page-wrap { padding: 28px 20px 45px; } .page-heading { align-items: start; flex-direction: column; } .heading-actions { justify-content: start; } .page-section-grid { grid-template-columns: 1fr; } .inventory-grid { grid-template-columns: repeat(2, 1fr); } .announcement-grid { grid-template-columns: 1fr; } }
@media (max-width: 470px) { .stat-grid { grid-template-columns: 1fr; } .stat-card { min-height: 118px; } .quick-actions { grid-template-columns: 1fr 1fr; } .inventory-grid { grid-template-columns: 1fr 1fr; } .form-grid { grid-template-columns: 1fr; } .form-field.full { grid-column: auto; } .topbar-actions { gap: 3px; } .topbar .icon-button { width: 30px; } }

/* Pengaturan masjid */
.brand-mark img { display: none; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; transform: rotate(8deg); }
.brand-mark.has-logo { background: var(--surface); overflow: hidden; }
.brand-mark.has-logo::before, .brand-mark.has-logo span { display: none; }
.brand-mark.has-logo img { display: block; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); gap: 14px; align-items: start; }
.settings-card { min-height: 100%; }
.settings-form { display: grid; gap: 15px; }
.settings-form .form-field textarea { min-height: 88px; }
.logo-settings { display: flex; align-items: center; gap: 14px; padding: 13px; border: 1px solid var(--line); background: var(--paper); border-radius: 11px; }
.logo-preview { width: 62px; height: 62px; flex: none; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 15px 15px 15px 5px; overflow: hidden; }
.logo-preview svg { width: 28px; height: 28px; }
.logo-preview img { width: 100%; height: 100%; object-fit: cover; }
.logo-copy { min-width: 0; flex: 1; }
.logo-copy strong { display: block; font-size: 13px; }
.logo-copy span { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 4px; }
.logo-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 8px; }
.upload-label { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 7px; color: var(--green); background: var(--green-soft); font-size: 13px; font-weight: 700; cursor: pointer; }
.upload-label:hover { filter: brightness(.97); }
.upload-label input { display: none; }
.settings-preview { display: flex; align-items: center; gap: 11px; padding-top: 5px; }
.settings-preview-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px 11px 11px 4px; color: var(--green); background: var(--green-soft); overflow: hidden; }
.settings-preview-mark img { width: 100%; height: 100%; object-fit: cover; }
.settings-preview-copy strong { display: block; font-size: 13px; }
.settings-preview-copy span { display: block; color: var(--muted); font: 13px 'DM Mono', monospace; letter-spacing: .08em; margin-top: 3px; text-transform: uppercase; }
.takmir-list { display: grid; gap: 2px; }
.takmir-person { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.takmir-person:last-child { border-bottom: 0; }
.takmir-avatar { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--green-soft); font-size: 13px; font-weight: 800; }
.takmir-info { min-width: 0; flex: 1; }
.takmir-info strong { display: block; font-size: 13px; }
.takmir-info span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.takmir-remove { color: var(--muted); }
.takmir-remove:hover { color: var(--red); background: var(--red-soft); }
.takmir-form { display: grid; grid-template-columns: 1.25fr 1fr; gap: 9px; padding-top: 15px; margin-top: 8px; border-top: 1px solid var(--line); }
.takmir-form .form-field:last-of-type { grid-column: 1 / -1; }
.takmir-form .btn { grid-column: 1 / -1; justify-self: start; }
.settings-note { display: flex; gap: 8px; align-items: start; margin-top: 17px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.settings-note [data-icon] { color: var(--green); width: 14px; height: 14px; margin-top: 1px; }
@media (max-width: 900px) { .settings-layout { grid-template-columns: 1fr; } }
@media (max-width: 470px) { .logo-settings { align-items: start; flex-wrap: wrap; } .takmir-form { grid-template-columns: 1fr; } .takmir-form .form-field:last-of-type { grid-column: auto; } .takmir-form .btn { grid-column: auto; } }

/* ===== Mode nyaman dibaca (ukuran standar) =====
   Prinsip: teks min. 14px, isi 15px, kontras tinggi, tombol & isian cukup besar, fokus jelas. */
:root { --ink: #14201a; --muted: #44514a; --line: #d3dbd4; --green: #0f5240; --red: #b3322a; --amber: #9a5b00; --sidebar: 240px; }
html { font-size: 16px; }
body { font-size: 14px; line-height: 1.55; }
:focus-visible { outline: 3px solid #f0a500; outline-offset: 2px; }

.brand-caption, .sidebar-section-label, .nav-count, .sidebar-footer, .profile-copy span,
.eyebrow, .chart-y, .chart-labels, .activity-date span, .activity-time, th, .amount, .badge,
.announcement-date, .form-field label, .settings-preview-copy span {
  font-family: 'Manrope', sans-serif !important;
  text-transform: none !important; letter-spacing: 0 !important; font-variant-numeric: tabular-nums;
}

/* Sidebar */
.brand-name { font-size: 15px; }
.brand-caption { font-size: 13px; color: rgba(255,255,255,.8); }
.sidebar-section-label { font-size: 13px; color: rgba(255,255,255,.75); font-weight: 700; }
.nav-item { font-size: 14px; min-height: 40px; color: #fff; font-weight: 600; }
.nav-item svg, .nav-item [data-icon] { width: 20px; height: 20px; }
.nav-count { font-size: 13px; padding: 2px 8px; }
.support-title { font-size: 14px; }
.support-copy { font-size: 13px; color: rgba(255,255,255,.85); }
.text-button { font-size: 13px; }
.sidebar-footer { font-size: 13px; color: rgba(255,255,255,.8); }

/* Bilah atas */
.breadcrumb { font-size: 13px; color: var(--muted); }
.icon-button { width: 40px; height: 40px; }
.avatar { width: 38px; height: 38px; font-size: 13px; }
.profile-copy strong { font-size: 13px; }
.profile-copy span { font-size: 13px; }

/* Judul */
.eyebrow { font-size: 13px; font-weight: 700; }
h1 { font-size: clamp(23px, 2.2vw, 29px); letter-spacing: -.5px; line-height: 1.2; }
.heading-copy { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Tombol */
.btn { min-height: 42px; padding: 0 16px; font-size: 13px; border-radius: 10px; }
.btn-outline, .btn-quiet { border: 2px solid var(--green); color: var(--green); }
.link-button { font-size: 13px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.upload-label { min-height: 40px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
#removeLogo { min-height: 40px !important; padding: 0 14px !important; font-size: 13px !important; }

/* Kartu & panel */
.stat-card { min-height: 128px; }
.stat-label { font-size: 13px; font-weight: 700; padding-right: 8px; }
.stat-value { font-size: 23px; letter-spacing: -.5px; margin-top: 16px; white-space: nowrap; }
.stat-foot { font-size: 13px; margin-top: 8px; }
.panel-title { font-size: 15px; }
.panel-subtitle { font-size: 13px; }
.stat-card.accent .stat-label, .stat-card.accent .stat-foot { color: rgba(255,255,255,.92); }
@media (max-width: 1400px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stat-grid { grid-template-columns: 1fr; } }

/* Grafik */
.chart-y { width: 58px; flex: none; text-align: right; white-space: nowrap; font-size: 13px; color: var(--muted); }
.chart-labels { font-size: 13px; color: var(--muted); }
.chart-legend { font-size: 13px; margin-left: 71px; }

/* Agenda */
.activity-copy strong { font-size: 14px; white-space: normal; }
.activity-copy span { font-size: 13px; color: rgba(255,255,255,.88); }
.activity-time { font-size: 14px; font-weight: 700; }
.activity-date strong { font-size: 16px; }

/* Tabel */
table { font-size: 14px; }
th { font-size: 13px; font-weight: 800; color: var(--muted); border-bottom: 2px solid var(--line); }
.transaction-meta { font-size: 13px; color: var(--muted); }
.amount { font-size: 14px; font-weight: 800; }
.badge { font-size: 13px; font-weight: 700; padding: 4px 9px; }
.quick-action strong { font-size: 14px; }
.quick-action span { font-size: 13px; color: var(--muted); }
.mini-label { font-size: 13px; }
.mini-value { font-size: 23px; }
.mini-note { font-size: 13px; }

/* Cari & formulir */
.search-field input { height: 42px; font-size: 14px; border: 2px solid var(--line); border-radius: 9px; }
.form-field label { font-size: 13px; font-weight: 800; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea { font-size: 14px; padding: 9px 12px; min-height: 42px; border: 2px solid var(--line); border-radius: 9px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus, .search-field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(15,82,64,.18); }
.modal-title { font-size: 19px; }
.modal-copy { font-size: 13px; }
.toast { font-size: 14px; }
.empty-state { font-size: 14px; }

/* Inventaris & pengumuman */
.inventory-name { font-size: 14px; font-weight: 700; }
.inventory-meta { font-size: 13px; color: var(--muted); }
.announcement-title { font-size: 15px; }
.announcement-copy { font-size: 14px; line-height: 1.65; color: var(--ink); }
.announcement-date, .announcement-foot { font-size: 13px; }

/* Pengaturan */
.logo-copy strong, .settings-preview-copy strong, .takmir-info strong { font-size: 14px; }
.logo-copy span, .takmir-info span, .settings-note, .settings-preview-copy span { font-size: 13px; }

@media (max-width: 760px) {
  .page-wrap { padding: 24px 16px 40px; }
  .btn { width: 100%; }
  .heading-actions { width: 100%; flex-direction: column; }
}

/* Sidebar: selalu muat di layar pendek & bisa digulir */
.sidebar { overflow-y: auto; padding: 18px 12px 14px; }
.brand-lockup { padding: 0 8px 18px; }
.sidebar-section-label { padding-bottom: 6px; }
.nav-item { margin-bottom: 2px; gap: 11px; }
.nav-item svg, .nav-item [data-icon] { width: 18px; height: 18px; }
.sidebar-support, .support-card { margin-top: 14px; }
@media (max-height: 820px) {
  .sidebar-support, .support-card, .support-box { display: none !important; }
}
.sidebar-spacer { min-height: 8px; }
.sidebar-footer { padding-top: 12px; flex: none; }

/* perbaikan ikon: semua ikon garis memakai warna teks, tanpa isian hitam */
svg[viewBox="0 0 24 24"][aria-hidden="true"] { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
