/* InvestorWakaf.com — warna brand: merah investorwakaf.com (#E00000 → #8B0000). Hijau/oranye hanya untuk penanda capaian. */
:root {
  --maroon: #c40c0c; --maroon-d: #8b0000; --maroon-50: #fdeceb; --red-hi: #e60000;
  --green: #1d5c3b; --green-2: #2f8a57; --green-50: #e9f4ee;
  --gold: #b8871b; --gold-50: #fbf3df;
  --blue: #2a5f8f; --blue-50: #e8f0f8;
  --bg: #f6f4ef; --card: #ffffff; --ink: #1d2124; --muted: #6b7075; --line: #e7e2d8; --line-2: #f0ece4;
  --radius: 12px; --shadow: 0 1px 2px rgba(30, 25, 15, .05), 0 4px 16px rgba(30, 25, 15, .04);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 14.5px; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--maroon); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; } h3 { font-size: 1.05rem; } h4 { font-size: .95rem; margin-top: 1.2em; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; }
img { max-width: 100%; }
.muted { color: var(--muted); } .small { font-size: .85em; } .center { text-align: center; } .b { font-weight: 600; }
.inline { display: inline; } .row-gap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- Kerangka */
.shell { display: flex; min-height: 100vh; background: linear-gradient(90deg, #7a0000 256px, var(--bg) 256px); }
.side { width: 256px; flex: 0 0 256px; background: linear-gradient(180deg, #c40c0c 0%, #9a0000 45%, #7a0000 100%); color: #fff2f2; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; gap: 10px; align-items: center; padding: 18px 18px 14px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand:hover { text-decoration: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand img.tile { background: #fff; border-radius: 10px; padding: 3px; }
.brand b { display: block; font-size: 1.05rem; letter-spacing: .01em; } .brand small { display: block; opacity: .7; font-size: .75rem; }
.side nav { padding: 8px 10px 16px; flex: 1; }
.nav-group { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; opacity: .55; padding: 14px 10px 6px; }
.side nav a { display: flex; align-items: center; gap: 10px; color: #fff2f2; padding: 8px 10px; border-radius: 8px; font-size: .9rem; opacity: .88; }
.side nav a:hover { background: rgba(255,255,255,.07); text-decoration: none; opacity: 1; }
.side nav a.on { background: rgba(255,255,255,.14); opacity: 1; font-weight: 600; box-shadow: inset 3px 0 0 #fff; }
.side-foot { font-size: .72rem; opacity: .5; padding: 12px 18px 16px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: rgba(246,244,239,.92); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); }
.top h1 { font-size: 1.2rem; margin: 0; flex: 1; }
.top-logo { display: none; } .top-logo img { height: 32px; width: auto; display: block; }
.burger { display: none; border: 0; background: none; font-size: 1.4rem; cursor: pointer; }
.me { display: flex; align-items: center; gap: 12px; }
.me > a:first-child { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.me > a:first-child:hover { text-decoration: none; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--maroon); color: #fff; display: grid; place-items: center; font-weight: 700; }
.me-name { line-height: 1.15; font-weight: 600; font-size: .88rem; } .me-name small { display: block; color: var(--muted); font-weight: 400; }
.content { padding: 22px 28px 40px; max-width: 1320px; width: 100%; }
.foot { margin-top: auto; padding: 16px 28px 22px; font-size: .78rem; color: var(--muted); display: grid; gap: 10px; }
.partners { display: inline-flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px 12px; max-width: 100%; justify-self: start; }
.partners span { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.partners img { display: block; height: 44px; width: auto; max-width: 100%; object-fit: contain; }
.auth-form { flex-direction: column; gap: 28px; }
.partners-auth { align-self: center; width: 100%; max-width: 420px; align-items: center; }
.partners-auth img { height: auto; width: 100%; }
.preview-bar { background: var(--gold-50); border-bottom: 1px solid #ecd9a6; padding: 8px 28px; font-size: .88rem; }
.preview-bar.warn { background: var(--maroon-50); border-color: #efc9cf; }

/* ---------- Ikon (CSS mask sederhana via emoji fallback) */
.ic { width: 18px; text-align: center; font-style: normal; opacity: .9; }
.ic::before { font-size: .95rem; }
.ic-home::before { content: "◧"; } .ic-coin::before { content: "◎"; } .ic-doc::before { content: "▤"; } .ic-news::before { content: "✎"; }
.ic-gh::before { content: "⌂"; } .ic-chart::before { content: "▥"; } .ic-cycle::before { content: "↻"; } .ic-upload::before { content: "⇪"; }
.ic-users::before { content: "☺"; } .ic-build::before { content: "▦"; } .ic-pin::before { content: "⌖"; } .ic-pie::before { content: "◔"; }
.ic-shield::before { content: "⛉"; } .ic-gear::before { content: "⚙"; } .ic-refresh::before { content: "⟳"; } .ic-db::before { content: "⛁"; } .ic-list::before { content: "≡"; } .ic-pen::before { content: "✍"; } .ic-check::before { content: "☑"; }

/* ---------- Kartu & grid */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card.narrow { max-width: 640px; }
.card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-h h3 { margin: 0; }
.grid-main { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.section-t { margin: 8px 0 12px; }
.hello { margin-bottom: 16px; } .hello h2 { margin-bottom: 2px; }

/* ---------- KPI */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpis-3 { grid-template-columns: repeat(3, 1fr); } .kpis-4 { grid-template-columns: repeat(4, 1fr); }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.kpi-l { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.kpi-v { font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi-v small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.kpi-v-sm { font-size: 1.1rem; }
.kpi-s { font-size: .8rem; color: var(--muted); }
.kpi-accent { background: linear-gradient(135deg, var(--red-hi) 0%, var(--maroon-d) 100%); border-color: transparent; }
.kpi-accent .kpi-l, .kpi-accent .kpi-s { color: rgba(255,255,255,.78); } .kpi-accent .kpi-v { color: #fff; }
.kpi-accent .var { background: rgba(255,255,255,.16); color: #fff; }

/* ---------- Badge & selisih */
.badge { display: inline-block; font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.b-green { background: var(--green-50); color: var(--green); } .b-maroon { background: var(--maroon-50); color: var(--maroon); }
.b-gold { background: var(--gold-50); color: #8a650f; } .b-blue { background: var(--blue-50); color: var(--blue); } .b-grey { background: #eeece7; color: #5d6166; }
.var { display: inline-block; font-size: .74rem; font-weight: 700; padding: 1px 6px; border-radius: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.var-up { background: var(--green-50); color: var(--green); } .var-down { background: #fef1e2; color: #b45309; }
.var-eq { background: #eeece7; color: #5d6166; } .var-na { color: var(--muted); }

/* ---------- Tabel */
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fbfaf7; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl tr:hover td { background: #fcfbf8; }
.tbl .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr.tot td { font-weight: 700; border-top: 1px solid var(--line); background: #fbfaf7; }
.tbl-compact td, .tbl-compact th { padding: 6px 8px; }
.tbl-pa { font-size: .84rem; } .tbl-pa td { padding: 8px 8px; }
.tbl-pa thead tr:first-child th { text-align: center; border-bottom: 0; }
.tbl-pa thead tr:nth-child(2) th { text-align: right; font-size: .68rem; }
.tbl-pa td.b { color: var(--maroon-d); }
.tbl-pa th[colspan] { border-left: 1px solid var(--line-2); }
.row-plan td { color: #8b8f94; background: #fcfbf8; }
.actions { white-space: nowrap; text-align: right; }
.actions .small { margin-right: 8px; }

/* ---------- Tombol & form */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 9px; font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn:hover { text-decoration: none; border-color: #d4cdc0; background: #fdfcfa; }
.btn-primary { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-d); border-color: var(--maroon-d); color: #fff; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 5px 10px; font-size: .8rem; border-radius: 7px; }
.btn-block { width: 100%; justify-content: center; padding: 11px; }
.btn-danger-ghost { background: transparent; color: var(--maroon); border-color: transparent; }
.btn-danger-ghost:hover { background: var(--maroon-50); }
.form label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 12px; }
.form h3 { margin-top: 18px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], input:not([type]), select, textarea {
  display: block; width: 100%; margin-top: 5px; padding: 9px 11px; border: 1px solid #d9d3c7; border-radius: 9px; background: #fff; font: inherit; font-weight: 400; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(196, 12, 12, .16); border-color: var(--maroon); }
input:disabled, select:disabled, textarea:disabled { background: #f4f2ed; color: #777; }
input[type=file] { margin-top: 6px; font-size: .85rem; }
.hint { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; margin-top: 4px; }
.check { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 500 !important; }
.check input { margin-top: 3px; }
.req { color: var(--maroon); font-style: normal; }
.form-card { max-width: 920px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { margin-bottom: 14px; } .field.full { grid-column: 1 / -1; }
.field > label:not(.check) { margin-bottom: 0; }
.form-section { grid-column: 1 / -1; margin: 12px 0 10px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--maroon); }
.form-grid > .form-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.prefix, .suffix { position: relative; }
.prefix input { padding-left: 36px; } .prefix::before { content: "Rp"; position: absolute; left: 11px; top: calc(50% + 2px); transform: translateY(-50%); color: var(--muted); font-size: .85rem; }
.suffix input { padding-right: 30px; } .suffix::after { content: "%"; position: absolute; right: 12px; top: calc(50% + 2px); transform: translateY(-50%); color: var(--muted); }
.form-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.file-now { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.file-now img { height: 56px; border-radius: 8px; border: 1px solid var(--line); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar p { margin: 0; flex: 1; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters select, .filters input { width: auto; margin: 0; min-width: 160px; padding: 7px 10px; }
.filters .check { margin: 0; }
.pager { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.pay-form { display: grid; grid-template-columns: 140px 1fr; gap: 6px; align-items: center; min-width: 360px; }
.pay-form input { margin: 0; padding: 6px 8px; font-size: .82rem; }
.pay-form input[type=text], .pay-form button { grid-column: span 1; }
.restore-form { display: flex; gap: 6px; align-items: center; }
.restore-form select, .restore-form input { width: auto; margin: 0; padding: 5px 8px; font-size: .8rem; }

/* ---------- Peringatan */
.alert { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-size: .9rem; border: 1px solid; }
.alert-ok { background: var(--green-50); color: var(--green); border-color: #cde6d7; }
.alert-err { background: var(--maroon-50); color: var(--maroon-d); border-color: #efc9cf; }
.alert-info { background: var(--blue-50); color: #224d73; border-color: #cddcec; }
.empty { text-align: center; padding: 26px; color: var(--muted); }
.empty.big { padding: 60px 20px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-ic { font-size: 2.4rem; margin-bottom: 8px; } .empty h2 { color: var(--ink); }

/* ---------- Grafik */
.chart-box { position: relative; height: 300px; }
.chart-donut { position: relative; height: 190px; width: 190px; flex: 0 0 190px; }
.legend { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 8px; }
.lg-plan { background: #d9d3c7; } .lg-act { background: var(--maroon); }
.split { display: flex; gap: 18px; align-items: center; }
.split table { flex: 1; }
.bar { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.bar span { display: block; height: 100%; background: var(--maroon); border-radius: 99px; }
.reserve { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--gold-50); display: grid; gap: 2px; }
.reserve b { font-size: 1.2rem; }

/* ---------- Tahap budidaya */
.stepper { list-style: none; display: flex; padding: 0; margin: 10px 0 12px; counter-reset: s; }
.stepper li { flex: 1; text-align: center; font-size: .72rem; color: var(--muted); position: relative; padding-top: 18px; }
.stepper li span { position: absolute; top: 4px; left: 50%; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%; background: #ddd7cb; z-index: 1; }
.stepper li::before { content: ""; position: absolute; top: 9px; left: -50%; right: 50%; height: 2px; background: #ddd7cb; }
.stepper li:first-child::before { display: none; }
.stepper li.done span, .stepper li.done::before, .stepper li.now::before { background: var(--maroon); }
.stepper li.now span { background: var(--gold); box-shadow: 0 0 0 4px var(--gold-50); width: 13px; height: 13px; margin-left: -6px; top: 3px; }
.stepper li.now { color: var(--ink); font-weight: 700; }

/* ---------- Investor: kartu GH */
.gh-card .stepper li:not(.now) { font-size: 0; }
.gh-card .stepper li.now { font-size: .74rem; white-space: nowrap; }
.gh-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.gh-card { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--ink); box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.gh-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,25,15,.08); }
.gh-card-top { display: flex; gap: 12px; } .gh-card-top > div:last-child { display: flex; flex-direction: column; }
.gh-thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--maroon-50); display: grid; place-items: center; font-size: 1.8rem; flex: 0 0 64px; }
.gh-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gh-card-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line-2); padding-top: 10px; font-size: .88rem; }
.gh-head { display: flex; gap: 20px; align-items: stretch; }
.gh-head-img { width: 220px; flex: 0 0 220px; border-radius: 10px; overflow: hidden; background: var(--maroon-50); display: grid; place-items: center; font-size: 3.4rem; min-height: 150px; }
.gh-head-img img { width: 100%; height: 100%; object-fit: cover; }
.gh-head-info { flex: 1; } .gh-head-info h2 { margin: 6px 0 2px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 12px; }
.facts > div { background: #fbfaf7; border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 10px; }
.facts span { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.facts b { font-variant-numeric: tabular-nums; }
.note { background: #fbfaf7; border-left: 3px solid var(--gold); padding: 8px 12px; border-radius: 6px; margin: 12px 0 0; font-size: .88rem; }

/* ---------- Kabar, dokumen, log */
.feed { list-style: none; padding: 0; margin: 0 0 14px; }
.feed li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.feed li img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.feed li div { display: flex; flex-direction: column; }
.posts { display: grid; gap: 14px; }
.post { display: flex; gap: 14px; }
.post img { width: 140px; height: 105px; object-fit: cover; border-radius: 10px; flex: 0 0 140px; }
.post h3, .post h4 { margin: 2px 0 6px; } .post p { margin: 0; color: #3a3f44; }
.posts-wide .post img { width: 220px; height: 160px; flex-basis: 220px; }
.docs { list-style: none; padding: 0; margin: 0; }
.docs li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.docs li > a:first-child { font-weight: 600; display: flex; gap: 6px; flex: 1 1 260px; }
.log { list-style: none; padding: 0; margin: 0; font-size: .86rem; }
.log li { padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.todo { list-style: none; padding: 0; margin: 0 0 8px; font-size: .88rem; }
.todo li { padding: 8px 10px; border-radius: 8px; background: var(--gold-50); margin-bottom: 6px; }
.todo li.warn { background: var(--maroon-50); } .todo li.ok { background: var(--green-50); }
.version-big { font-size: 2rem; font-weight: 800; color: var(--maroon); margin: 0; }
.update-box { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 10px 0; }
.update-box.new { border-color: #cde6d7; background: var(--green-50); }
.changelog { white-space: pre-wrap; background: #fbfaf7; border: 1px solid var(--line-2); padding: 10px; border-radius: 8px; max-height: 320px; overflow: auto; }
.code { white-space: pre-wrap; text-align: left; background: #fff; padding: 10px; border-radius: 8px; }
.steps { padding-left: 18px; }

/* ---------- Halaman masuk & pemasang */
body.auth { background: var(--bg); }
.auth-wrap { display: flex; min-height: 100vh; }
.auth-hero { flex: 1.1; background: radial-gradient(circle at 20% 15%, #ff1a1a 0%, #c40c0c 38%, #6d0000 100%); color: #fff; display: flex; align-items: center; justify-content: center; padding: 40px; position: relative; overflow: hidden; }
.auth-hero::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(255,255,255,.06) 0 2px, transparent 2px 26px); }
.auth-hero-in { max-width: 440px; position: relative; z-index: 1; }
.auth-logo { width: 300px; max-width: 80%; height: auto; display: block; }
.auth-logo.tile { width: 96px; background: #fff; border-radius: 16px; padding: 8px; }
.auth-hero h2 { font-size: 2.2rem; margin: 18px 0 4px; }
.auth-hero p { opacity: .85; font-size: 1.05rem; }
.auth-hero ul { padding-left: 18px; opacity: .92; line-height: 1.9; }
.auth-partners { margin-top: 28px; font-size: .8rem; opacity: .65; }
.auth-form { flex: 1; display: flex; align-items: center; justify-content: center; padding: 30px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-title { font-size: 1.5rem; }
.install { max-width: 760px; margin: 30px auto; padding: 0 16px; }
.install-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.install-head img { width: 150px; } .install-head h1 { margin: 0; font-size: 1.5rem; } .install-head p { margin: 0; }


/* ---------- Laporan panen & persetujuan (v1.1) */
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.report-head h2 { margin: 6px 0 2px; } .report-head p { margin: 0; }
.checks { background: var(--gold-50); border-color: #ecd9a6; }
.card.checks h3, .checks h4 { margin-top: 0; }
.checks ul { margin: 6px 0; padding-left: 20px; font-size: .88rem; }
.tbl-input td { padding: 4px 4px; vertical-align: middle; }
.tbl-input input, .tbl-input select { margin: 0; padding: 6px 8px; font-size: .86rem; min-width: 90px; }
.tbl-input th input { min-width: 110px; font-weight: 600; }
.tbl-input input.n { text-align: right; }
.tbl-input .w-s { min-width: 64px; width: 80px; }
.tbl-input select { min-width: 150px; }
.tbl-input tfoot td { font-size: .88rem; padding: 7px 8px; background: #fbfaf7; }
.form-grid-3 { grid-template-columns: repeat(3, 1fr); }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.summary-grid > div { background: #fbfaf7; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.summary-grid span { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.summary-grid b { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.summary-grid .hl { background: var(--maroon-50); border-color: #f3c9c6; } .summary-grid .hl b { color: var(--maroon-d); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.photo-grid img { width: 100%; height: 120px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); display: block; }
.photo-keep { margin: 0 !important; font-weight: 400 !important; } .photo-keep span { font-size: .8rem; display: flex; gap: 4px; margin-top: 3px; }
.sticky-actions { position: sticky; bottom: 0; background: rgba(246,244,239,.95); padding: 12px 0; border-top: 1px solid var(--line); z-index: 3; }
.inline-right { display: flex; justify-content: flex-end; margin-top: -44px; position: relative; z-index: 4; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab { padding: 7px 12px; border-radius: 8px; font-size: .86rem; color: var(--muted); font-weight: 600; }
.tab:hover { background: #ede9e1; text-decoration: none; } .tab.on { background: var(--maroon); color: #fff; }
.tab-hot { color: var(--maroon); border: 1px solid #f3c9c6; background: var(--maroon-50); } .tab-hot b { background: var(--maroon); color: #fff; border-radius: 99px; padding: 0 7px; margin-left: 4px; }
.flow { list-style: none; display: flex; padding: 0; margin: 8px 0 14px; }
.flow li { flex: 1; position: relative; padding: 22px 6px 0; text-align: center; font-size: .84rem; }
.flow li::before { content: ""; position: absolute; top: 9px; left: -50%; right: 50%; height: 3px; background: #ddd7cb; }
.flow li:first-child::before { display: none; }
.flow-dot { position: absolute; top: 2px; left: 50%; margin-left: -9px; width: 18px; height: 18px; border-radius: 50%; background: #ddd7cb; border: 3px solid #fff; box-shadow: 0 0 0 1px #ddd7cb; z-index: 1; }
.flow li b { display: block; line-height: 1.25; } .flow li small { display: block; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.flow li.done .flow-dot, .flow li.done::before { background: var(--green-2); box-shadow: 0 0 0 1px var(--green-2); }
.flow li.now .flow-dot { background: var(--gold); box-shadow: 0 0 0 4px var(--gold-50); }
.flow li.now::before { background: var(--green-2); }
.flow-info .flow li .flow-dot, .flow-info .flow li::before { background: var(--maroon); box-shadow: 0 0 0 1px var(--maroon); }
.approve-box { border: 2px solid var(--maroon); background: #fffafa; border-radius: 12px; padding: 14px 16px; margin: 10px 0; }
.approve-box h4 { margin-top: 0; color: var(--maroon-d); }
.approve-form { max-width: 560px; }
.sign-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sign { border: 1px dashed var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; }
.sign.signed { border-style: solid; border-color: #cde6d7; background: #fbfefc; }
.sign-logo { height: 42px; width: auto; max-width: 150px; object-fit: contain; margin-bottom: 4px; }
.sign-qr { width: 150px; height: 150px; margin: 6px 0; image-rendering: pixelated; }
.sign-empty { width: 150px; height: 150px; margin: 6px 0; border: 1px dashed #d9d3c7; border-radius: 8px; display: grid; place-items: center; color: var(--muted); font-size: .8rem; }
.chart-box-s { height: 200px; margin-bottom: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.step-icon { width: 40px; height: 40px; object-fit: contain; }
.report-list { display: grid; gap: 8px; }
.report-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.report-item:hover { background: #fcfbf8; text-decoration: none; border-color: #d9d3c7; }
.report-item > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.report-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--green-50); color: var(--green); display: grid; place-items: center; font-weight: 700; }
.tbl tr.grp td { background: #fbfaf7; font-weight: 600; font-size: .82rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }
details summary { cursor: pointer; margin-bottom: 8px; color: var(--maroon); }
/* Halaman publik verifikasi */
body.public { background: var(--bg); display: flex; flex-direction: column; min-height: 100vh; }
.pub-head { background: linear-gradient(90deg, #c40c0c, #8b0000); padding: 14px 20px; text-align: center; }
.pub-head img { height: 46px; }
.pub-main { flex: 1; padding: 24px 16px; }
.pub-foot { text-align: center; padding: 18px; font-size: .78rem; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pub-foot img { max-width: 420px; width: 90%; background: #fff; border-radius: 10px; padding: 6px 10px; }
.verify { max-width: 640px; margin: 0 auto; text-align: center; }
.verify h1 { font-size: 1.4rem; margin: 8px 0 4px; }
.verify-badge { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; margin: 4px auto 6px; color: #fff; font-weight: 800; }
.verify-badge.ok { background: var(--green-2); } .verify-badge.bad { background: #b45309; }
.verify-tbl { text-align: left; margin: 14px 0; } .verify-tbl td:first-child { color: var(--muted); width: 40%; }
.verify-list { list-style: none; padding: 0; text-align: left; display: grid; gap: 8px; }
.verify-list li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.verify-list li.ok { border-color: #cde6d7; background: var(--green-50); }
.verify-list img { width: 36px; height: 36px; object-fit: contain; } .verify-list div { flex: 1; display: flex; flex-direction: column; }
@media (max-width: 860px) {
  .form-grid-3, .summary-grid, .sign-grid, .grid-3 { grid-template-columns: 1fr; }
  .flow { flex-direction: column; gap: 6px; } .flow li { text-align: left; padding: 0 0 0 30px; } .flow li::before { display: none; } .flow-dot { left: 0; margin-left: 0; top: 0; }
  .inline-right { margin-top: 8px; }
}


/* ---------- Laporan bertahap (v1.2) */
.type-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.type-card { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.type-card.on { border-color: var(--maroon); box-shadow: 0 0 0 2px var(--maroon-50); }
.type-card h3 { margin: 2px 0; } .type-card p { margin: 0 0 6px; } .type-card .grid2 { margin-top: auto; }
.type-card label { font-size: .82rem; } .type-card label.full { grid-column: 1 / -1; }
.type-ic { font-size: 1.8rem; }
.board td, .board th { text-align: center; vertical-align: middle; } .board td:first-child, .board th:first-child { text-align: left; }
.chip { display: inline-block; min-width: 28px; padding: 2px 9px; border-radius: 99px; font-size: .76rem; font-weight: 700; }
.chip:hover { text-decoration: none; filter: brightness(.95); }
.chip-green { background: var(--green-50); color: var(--green); } .chip-gold { background: var(--gold-50); color: #8a650f; }
.chip-maroon { background: var(--maroon-50); color: var(--maroon); } .chip-grey { background: #eeece7; color: #5d6166; }
.source-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .9rem; }
.bar-lg { height: 12px; }
.tbl-input .w-date { min-width: 140px; }
.sign-grid.sign-1 { grid-template-columns: minmax(0, 320px); justify-content: center; }
.sign-grid.sign-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.center { text-align: center; }
@media (max-width: 1100px) { .type-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .type-cards { grid-template-columns: 1fr; } }


/* ---------- Profil Green House (v1.3) */
.profile-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; }
.gallery-main { position: relative; border-radius: 12px; overflow: hidden; background: var(--maroon-50); aspect-ratio: 4 / 3; display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 8px; color: #fff; font-size: .82rem; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.gallery-cap:empty { display: none; }
.gallery-empty { font-size: 3.4rem; text-align: center; color: var(--muted); } .gallery-empty small { font-size: .85rem; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; cursor: pointer; flex: 0 0 76px; height: 56px; background: none; }
.gallery-thumbs button.on { border-color: var(--maroon); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-info h2 { margin: 6px 0 2px; }
.manage-photos summary { cursor: pointer; }
.photo-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pa-item { border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: grid; gap: 6px; }
.pa-item img { width: 100%; height: 130px; object-fit: cover; border-radius: 8px; }
.map-box { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); height: 280px; }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.coord { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0 6px; }
.coord .mono { background: #fbfaf7; border: 1px solid var(--line-2); padding: 5px 9px; border-radius: 7px; font-size: .85rem; }
.inv-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inv-stats > div { background: #fbfaf7; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.inv-stats span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; } .inv-stats b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.fund-bar { height: 12px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin: 14px 0 4px; }
.fund-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--red-hi), var(--maroon-d)); border-radius: 99px; }
.chart-donut-lg { width: 230px; height: 230px; flex: 0 0 230px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.tbl tr.row-me td { background: var(--maroon-50) !important; }
.grid-tight { gap: 14px; margin-bottom: 4px; }
.formula { background: #fbfaf7; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; }
.formula h4 { margin-top: 0; } .formula ol { padding-left: 18px; margin: 0; line-height: 1.6; }
.sim-title { margin: 18px 0 8px; padding-top: 14px; border-top: 1px dashed var(--line); }
.mine-box { margin-top: 14px; padding: 12px 14px; background: var(--maroon-50); border: 1px solid #f3c9c6; border-radius: 10px; font-size: .9rem; }
@media (max-width: 860px) { .profile-hero { grid-template-columns: 1fr; } .chart-donut-lg { width: 200px; height: 200px; flex-basis: auto; } }


/* ---------- Mode demo (v1.4) */
.ic-star::before { content: "★"; }
.demo-bar { background: #fff7e0; border-color: #f0d98a; }
.auth-form-demo { align-items: flex-start; overflow-y: auto; max-height: 100vh; }
.auth-form-demo .auth-card { margin-top: 4vh; max-width: 560px; }
.demo-login { width: 100%; max-width: 560px; margin: 18px auto 30px; }
.demo-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-grid form { margin: 0; }
.demo-btn { width: 100%; text-align: left; display: flex; gap: 10px; align-items: center; padding: 9px 11px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; font: inherit; }
.demo-btn:hover { border-color: var(--maroon); background: #fffafa; }
.demo-btn b { display: block; font-size: .86rem; } .demo-btn small { display: block; font-size: .74rem; line-height: 1.3; }
.demo-ic { font-size: 1.5rem; width: 32px; text-align: center; }
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; } }

/* ---------- Responsif */
@media (max-width: 1100px) { .grid-main { grid-template-columns: 1fr; } .kpis-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .stepper li:not(.now) { font-size: 0; } .stepper li.now { white-space: nowrap; }
  .shell { background: var(--bg); }
  .side { position: fixed; left: -270px; z-index: 30; transition: left .2s; box-shadow: 0 0 40px rgba(0,0,0,.25); }
  .side.open { left: 0; }
  .burger { display: block; } .top-logo { display: block; }
  .top { padding: 12px 16px; } .content { padding: 16px; }
  .me-name { display: none; }
  .grid-2, .form-grid, .grid2, .kpis-3 { grid-template-columns: 1fr; }
  .gh-head { flex-direction: column; } .gh-head-img { width: 100%; flex-basis: auto; height: 180px; }
  .split { flex-direction: column; }
  .auth-hero { display: none; }
  .post, .posts-wide .post { flex-direction: column; } .post img, .posts-wide .post img { width: 100%; height: 180px; flex-basis: auto; }
}
@media (max-width: 520px) { .kpis-4 { grid-template-columns: 1fr; } .kpi-v { font-size: 1.25rem; } .filters select, .filters input { min-width: 0; width: 100%; } }
@media print {
  .partners { display: none !important; }
  .side, .top, .toolbar, .noprint, .foot, .preview-bar { display: none !important; }
  .content { padding: 0; } .card, .kpi { box-shadow: none; break-inside: avoid; } body { background: #fff; }
}
