﻿/* ==========================================================================
   Sistem Informasi BUMDes Desa Bawomataluo â€” Design System
   Palet: teal akademik + emas hangat. Semua warna memakai custom property.
   ========================================================================== */
:root {
  --brand-900: #062f2b;
  --brand-800: #0a4a43;
  --brand-700: #0d6156;
  --brand-600: #11796a;
  --brand-500: #189683;
  --brand-100: #e2f3ef;
  --gold-600: #b5820e;
  --gold-500: #e0a416;
  --gold-100: #fdf3dc;
  --ink-900: #14211f;
  --ink-700: #38474a;
  --ink-500: #6a7a7d;
  --surface: #f5f8f7;
  --surface-2: #ffffff;
  --line: #e3ebe9;
  --danger-600: #b3261e;
  --success-600: #16794c;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-sm: 0 1px 2px rgba(6, 47, 43, .06), 0 1px 3px rgba(6, 47, 43, .05);
  --shadow-md: 0 8px 24px rgba(6, 47, 43, .08);
  --sidebar-w: 268px;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--ink-900);
  font-size: .95rem;
  line-height: 1.6;
}

.hero-public { background: linear-gradient(135deg, #eef8f5 0%, #fdf8e9 100%); }
.eyebrow { color: var(--gold-600); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-public h1 { color: var(--brand-900); max-width: 720px; }
.hero-panel { background: var(--brand-900); border-radius: var(--radius-lg); color: #fff; padding: 2rem; box-shadow: var(--shadow-md); }
.hero-panel h2 { color: #fff; }
.hero-panel-mark { color: var(--gold-500); font-size: 2.5rem; margin-bottom: 1.5rem; }
.hero-module { align-items: center; border-top: 1px solid rgba(255,255,255,.16); display: flex; gap: .8rem; padding: .9rem 0; }
.hero-module i { color: var(--gold-500); }
.feature-item { height: 100%; padding: 1rem 0; }
.feature-item > i { color: var(--brand-600); font-size: 1.8rem; }

.landing-page { background: #f7faf9; }
.landing-hero { position: relative; overflow: hidden; background-size: cover; background-position: center; min-height: 680px; display: flex; align-items: center; }
.landing-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(16, 49, 44, 0.18) 0%, rgba(47, 78, 57, 0.10) 30%, rgba(245, 182, 72, 0.12) 58%, rgba(16, 49, 44, 0.14) 100%); }
.landing-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 18%, rgba(255, 212, 112, 0.25), transparent 24%), radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.10), transparent 20%); }
.position-relative.z-1 { z-index: 1; }
.py-lg-6 { padding-top: 5.5rem; padding-bottom: 5.5rem; }
.landing-badge { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.35); background: rgba(10, 74, 67, 0.18); color: #fff; border-radius: 999px; padding: .5rem .9rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.landing-hero h1 { color: #fff; font-size: clamp(3.2rem, 5vw, 6rem); line-height: .96; max-width: 760px; font-weight: 400; font-family: 'Berkshire Swash', cursive; letter-spacing: .02em; text-shadow: 0 3px 20px rgba(0,0,0,.35); }
.landing-hero .lead { color: rgba(255,255,255,.96); max-width: 640px; font-size: 1.08rem; text-shadow: 0 2px 12px rgba(0,0,0,.22); }
.landing-hero .btn { min-width: 180px; }
.landing-cta .btn-outline-light { border-width: 1.5px; }
.landing-micro { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.landing-micro > div { min-width: 140px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: .8rem .9rem; backdrop-filter: blur(3px); }
.landing-micro strong { display: block; color: #fff; font-size: .9rem; }
.landing-micro span { display: block; color: rgba(255,255,255,.78); font-size: .75rem; }
.landing-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 24px; box-shadow: 0 18px 35px rgba(6, 47, 43, .18); padding: 1.5rem; backdrop-filter: blur(8px); }
.landing-card__head { margin-bottom: 1rem; }
.landing-card__head .eyebrow { color: #f7d985; }
.landing-card h2 { color: #fff; }
.landing-check-list { display: grid; gap: .8rem; }
.landing-check-list div { display: flex; align-items: center; gap: .85rem; padding: .9rem 0; border-top: 1px solid rgba(255,255,255,.12); color: #fff; }
.landing-check-list div:first-child { border-top: none; }
.landing-check-list i { color: var(--gold-500); font-size: 1.1rem; }
.landing-check-list span { color: rgba(255,255,255,.9); }
.landing-stats { padding: 1.6rem 0 0; margin-top: -2rem; position: relative; z-index: 2; }
.stat-card--soft { background: rgba(255,255,255,.9); border: 1px solid var(--line); border-left: 4px solid var(--brand-600); border-radius: 18px; box-shadow: 0 12px 24px rgba(6, 47, 43, .06); padding: 1.1rem 1.15rem; }
.section-heading { max-width: 760px; margin-bottom: 2.5rem; }
.section-heading h2 { color: var(--brand-900); font-size: clamp(2.2rem, 2.8vw, 3.4rem); font-family: 'Georgia', 'Times New Roman', serif; font-weight: 600; letter-spacing: .01em; line-height: 1.1; }
.section-heading p { color: var(--ink-700); margin: 0 auto; max-width: 700px; }
.bg-soft-cream { background: linear-gradient(180deg, #fffdf7 0%, #f3f9f6 100%); }
.showcase-panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 2rem; box-shadow: var(--shadow-md); }
.showcase-panel h2 { font-family: 'Georgia', 'Times New Roman', serif; font-weight: 600; font-size: clamp(2.2rem, 2.5vw, 3rem); letter-spacing: .01em; line-height: 1.1; }
.showcase-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }

.public-page-shell { background: linear-gradient(180deg, #f8faf8 0%, #f5f7f3 100%); }
.public-page-hero { position: relative; min-height: 260px; display: flex; align-items: center; background: linear-gradient(110deg, rgba(9,42,38,0.72), rgba(18,74,64,0.45)), url('<?= asset("img/Banner.jpeg") ?>') center/cover no-repeat; }
.public-page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,35,30,0.72), rgba(10,61,53,0.18)); }
.public-page-hero .container { position: relative; z-index: 1; }
.public-page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4vw, 4rem); margin: 0; font-family: 'Berkshire Swash', cursive; line-height: 1; }
.public-page-hero .lead { color: rgba(255,255,255,.9); max-width: 640px; margin-top: 1rem; }
.public-page-section { padding: 4rem 0; }
.public-panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); padding: 1.6rem; height: 100%; }
.public-panel h2, .public-panel h3 { color: var(--brand-900); }
.public-kicker { display: inline-block; color: var(--gold-600); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.public-card-grid { display: grid; gap: 1.25rem; }
.public-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; height: 100%; }
.public-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.public-card-image { height: 200px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(135deg, #eaf5f2, #fdf7ea); color: var(--brand-700); font-size: 3rem; }
.public-card-image img { width: 100%; height: 100%; object-fit: cover; }
.public-card-video { width: min(100%, 270px); aspect-ratio: 9 / 16; margin-inline: auto; overflow: hidden; background: #111; }
.public-card-video video { display: block; width: 100%; height: 100%; object-fit: contain; }
.unit-thumbnail { display: block; width: 56px; height: 44px; object-fit: cover; border-radius: 8px; }
.unit-edit-preview { display: block; width: min(100%, 220px); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.unit-detail-image { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.unit-cover { display: block; width: 100%; height: 220px; object-fit: cover; border-radius: 12px; }
.unit-cover--compact { width: 76px; height: 76px; flex: 0 0 76px; }
.unit-service-image { margin: 1rem 0; border-radius: 12px; }
.unit-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: .75rem; }
.unit-gallery-card { display: flex; align-items: center; gap: .75rem; min-width: 0; padding: .65rem; border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none; }
.unit-gallery-card:hover { color: inherit; background: rgba(23, 79, 88, .04); }
.unit-gallery-card img { width: 64px; height: 54px; flex: 0 0 64px; object-fit: cover; border-radius: 7px; }
.unit-gallery-card span { min-width: 0; font-size: .82rem; font-weight: 700; overflow-wrap: anywhere; }
.public-card-body { padding: 1.2rem; }
.public-card-body h3 { margin: 0 0 .7rem; font-size: 1.3rem; }
.public-card-body p { margin: 0 0 1rem; color: var(--ink-700); }
.public-pill { display: inline-flex; align-items: center; gap: .4rem; background: var(--brand-100); color: var(--brand-800); border-radius: 999px; padding: .35rem .7rem; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.public-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.public-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-700); }
.public-list li i { color: var(--success-600); margin-top: .15rem; }
.contact-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-list strong { display: block; color: var(--brand-900); }
.contact-list span { color: var(--ink-700); }
.contact-address, .contact-hours { display: flex; align-items: center; gap: 1rem; }
.contact-official-card { display: flex; flex-direction: column; gap: .8rem; }
.contact-feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; background: var(--brand-100); color: var(--brand-800); font-size: 1.2rem; }
.contact-phone { color: var(--brand-900); font-size: 1.2rem; font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
.contact-phone:hover { color: var(--brand-700); text-decoration: underline; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: auto; padding-top: .5rem; }
.contact-actions .btn { flex: 1 1 110px; }
.culture-video-panel { display: flex; justify-content: center; padding: 1rem; }
.culture-video-player { width: min(100%, 360px); aspect-ratio: 9 / 16; overflow: hidden; border-radius: 12px; background: #111; }
.culture-video-player video { display: block; width: 100%; height: 100%; object-fit: contain; }
.information-detail-image { display: block; width: min(100%, 720px); max-height: 460px; margin: 0 auto 1.5rem; object-fit: cover; border-radius: 12px; }
.information-detail-copy { white-space: pre-line; line-height: 1.8; color: var(--ink-700); }
.public-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
@media (max-width: 767.98px) {
  .public-page-section { padding: 3rem 0; }
  .public-page-hero { min-height: 220px; }
}
@media (max-width: 575.98px) {
  .contact-address, .contact-hours { align-items: flex-start; }
  .contact-official-card { padding: 1.2rem; }
}
.showcase-list li { display: flex; align-items: flex-start; gap: .8rem; color: var(--ink-700); }
.showcase-list i { color: var(--success-600); margin-top: .1rem; }
.showcase-visual { display: flex; align-items: stretch; min-height: 100%; }
.showcase-visual__card { width: 100%; background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 60%, #0f7c74 100%); border-radius: 24px; padding: 2rem; color: #fff; box-shadow: var(--shadow-md); display: flex; flex-direction: column; justify-content: center; }
.showcase-visual__card small { color: rgba(255,255,255,.72); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.showcase-visual__card h3 { color: #fff; margin-top: .6rem; font-family: 'Georgia', 'Times New Roman', serif; font-weight: 600; font-size: clamp(2rem, 2.2vw, 2.8rem); letter-spacing: .01em; line-height: 1.1; }
.mini-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin-top: 1.25rem; }
.mini-metrics > div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: .8rem; }
.mini-metrics strong { display: block; font-size: 1rem; }
.mini-metrics span { color: rgba(255,255,255,.8); font-size: .75rem; }
.journey-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-sm); padding: 2rem; }
.journey-card h3 { font-family: 'Georgia', 'Times New Roman', serif; font-weight: 600; font-size: clamp(1.9rem, 2vw, 2.5rem); line-height: 1.1; }
.journey-card p { color: var(--ink-700); margin-bottom: 1.2rem; }
.landing-cta-strip { padding: 1rem 0 4rem; }
.landing-cta-strip__inner { background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 100%); border-radius: 28px; padding: 2rem 2.25rem; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 1rem; box-shadow: var(--shadow-md); }
.landing-cta-strip__inner h2 { color: #fff; margin: 0.4rem 0 0; max-width: 560px; font-family: 'Georgia', 'Times New Roman', serif; font-weight: 600; font-size: clamp(2.2rem, 2.8vw, 3rem); line-height: 1.08; }
.text-white { color: #fff !important; }
@media (max-width: 991.98px) {
  .landing-hero { min-height: 560px; }
  .landing-cta-strip__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767.98px) {
  .landing-hero { min-height: 500px; }
  .landing-micro { gap: .75rem; }
  .mini-metrics { grid-template-columns: 1fr; }
  .landing-cta-strip__inner { padding: 1.6rem; }
}

.auth-page { align-items: center; background: linear-gradient(135deg, #eef8f5, #fdf8e9); display: flex; justify-content: center; min-height: calc(100vh - 80px); padding: 2rem 1rem; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); max-width: 430px; padding: 2.25rem; width: 100%; }
.auth-brand { align-items: center; color: var(--brand-800); display: flex; font-size: 1.1rem; font-weight: 800; gap: .75rem; line-height: 1.1; }
.auth-brand > img { background: #fff; border-radius: 14px; height: 64px; object-fit: contain; width: 64px; }
.auth-brand small { color: var(--ink-500); font-size: .75rem; font-weight: 500; }
.dashboard-page { min-height: calc(100vh - 80px); }
.dashboard-links { display: grid; gap: .75rem; max-width: 720px; }
.dashboard-links a { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); display: flex; gap: .9rem; padding: 1rem 1.15rem; }
.dashboard-links a > i:first-child { color: var(--brand-600); font-size: 1.2rem; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -.01em; color: var(--brand-900); }
a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand-500); }

/* ---------- Tombol ---------- */
.btn { border-radius: 10px; font-weight: 600; }
.btn-brand { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }
.btn-outline-brand { border-color: var(--brand-700); color: var(--brand-700); }
.btn-outline-brand:hover { background: var(--brand-700); color: #fff; }
.btn-gold { background: var(--gold-500); border-color: var(--gold-500); color: var(--brand-900); }
.btn-gold:hover { background: var(--gold-600); border-color: var(--gold-600); color: #fff; }
.btn-icon { border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Navbar publik ---------- */
.navbar-public { background: var(--surface-2); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); padding-block: .55rem; }
.navbar-public .brand-text strong { display: block; line-height: 1.1; color: var(--brand-800); font-size: 1.02rem; }
.navbar-public .brand-text small { color: var(--ink-500); font-size: .76rem; }
.navbar-public .nav-link { color: var(--ink-700); font-weight: 600; border-radius: 8px; padding: .45rem .8rem; }
.navbar-public .nav-link:hover { color: var(--brand-700); background: var(--brand-100); }
.navbar-public .nav-link.active { color: var(--brand-800); background: var(--brand-100); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 55%, var(--brand-500) 100%);
  color: #fff; padding: 4.5rem 0 4rem; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(224,164,22,.28), transparent 65%); border-radius: 50%;
}
.hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.9rem); }
.hero .lead { color: rgba(255,255,255,.88); }
.hero-badge { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 999px; padding: .35rem .9rem; font-size: .8rem; font-weight: 600; }
.hero-logo { background: rgba(255,255,255,.94); border-radius: 24px; padding: 1.25rem; box-shadow: var(--shadow-md); }

/* ---------- Kartu ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); background: var(--surface-2); }
.card-header { background: var(--surface-2); border-bottom: 1px solid var(--line); font-weight: 700; color: var(--brand-800); border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important; }
.section-title { font-size: 1.35rem; margin-bottom: .35rem; }
.section-sub { color: var(--ink-500); margin-bottom: 1.5rem; }

.feature-card { height: 100%; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-100); color: var(--brand-700); display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; margin-bottom: .9rem; }

/* ---------- Statistik ---------- */
.stat-card { display: flex; gap: 1rem; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--brand-600); border-radius: var(--radius-md); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); height: 100%; }
.stat-card .stat-icon { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; background: var(--brand-100); color: var(--brand-700); }
.stat-card.tone-gold { border-left-color: var(--gold-500); }
.stat-card.tone-gold .stat-icon { background: var(--gold-100); color: var(--gold-600); }
.stat-card.tone-success { border-left-color: var(--success-600); }
.stat-card.tone-success .stat-icon { background: #e4f4ec; color: var(--success-600); }
.stat-card.tone-danger { border-left-color: var(--danger-600); }
.stat-card.tone-danger .stat-icon { background: #fbeae9; color: var(--danger-600); }
.stat-body { min-width: 0; }
.stat-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-500); font-weight: 700; }
.stat-value { display: block; font-size: 1.4rem; font-weight: 700; color: var(--brand-900); line-height: 1.25; overflow-wrap: anywhere; }
.stat-hint { display: block; font-size: .78rem; color: var(--ink-500); }

/* ---------- Layout panel ---------- */
.app-shell { min-height: 100vh; }
.app-sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--brand-900);
  color: rgba(255,255,255,.82); display: flex; flex-direction: column; z-index: 1045;
  transition: transform .22s ease; overflow-y: auto;
}
.sidebar-brand { display: flex; align-items: center; gap: .7rem; padding: 1.1rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-brand img { background: #fff; border-radius: 10px; padding: 3px; }
.sidebar-brand strong { color: #fff; display: block; line-height: 1.1; font-size: .98rem; }
.sidebar-brand span { font-size: .74rem; color: rgba(255,255,255,.65); }
.sidebar-user { display: flex; gap: .7rem; align-items: center; padding: .9rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-user small { color: rgba(255,255,255,.6); font-size: .74rem; }
.sidebar-user strong { color: #fff; font-size: .9rem; }
.avatar { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: var(--gold-500); color: var(--brand-900); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.avatar-sm { width: 30px; height: 30px; flex-basis: 30px; font-size: .85rem; }
.sidebar-nav { padding: .8rem .7rem 1.5rem; display: flex; flex-direction: column; gap: 2px; }
.sidebar-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.45); padding: .85rem .6rem .3rem; font-weight: 700; }
.sidebar-nav a { display: flex; align-items: center; gap: .65rem; padding: .58rem .7rem; border-radius: 10px; color: rgba(255,255,255,.82); font-size: .9rem; font-weight: 600; }
.sidebar-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-nav a.active { background: var(--brand-600); color: #fff; }
.sidebar-nav a i:first-child { width: 1.15rem; text-align: center; }
.sidebar-sub { display: flex; flex-direction: column; padding: .15rem 0 .3rem 2rem; gap: 1px; }
.sidebar-sub a { font-size: .85rem; font-weight: 500; padding: .4rem .6rem; }

.app-main { margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-height: 100vh; }
.app-topbar { display: flex; align-items: center; gap: .9rem; background: var(--surface-2); border-bottom: 1px solid var(--line); padding: .85rem 1.4rem; position: sticky; top: 0; z-index: 1030; }
.topbar-title { font-size: 1.12rem; margin: 0; }
.topbar-sub { margin: 0; font-size: .82rem; color: var(--ink-500); }
.app-content { padding: 1.4rem; flex: 1 1 auto; }
.app-footer { background: var(--surface-2); border-top: 1px solid var(--line); padding: .9rem 1.4rem; font-size: .82rem; color: var(--ink-700); }
.sidebar-backdrop { position: fixed; inset: 0; background: rgba(6,47,43,.45); z-index: 1040; display: none; }
.sidebar-backdrop.show { display: block; }

@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-100%); }
  .app-sidebar.open { transform: translateX(0); box-shadow: var(--shadow-md); }
  .app-main { margin-left: 0; }
  .app-content { padding: 1rem; }
}

/* ---------- Tabel & form ---------- */
.table > thead th { background: var(--brand-100); color: var(--brand-800); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; border-bottom-color: var(--line); white-space: nowrap; }
.table > tbody td { border-color: var(--line); }
.table-sm-nowrap td, .table-sm-nowrap th { white-space: nowrap; }
.form-label { font-weight: 600; font-size: .86rem; color: var(--ink-700); }
.form-control, .form-select { border-radius: 10px; border-color: var(--line); padding: .55rem .8rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand-500); box-shadow: 0 0 0 .2rem rgba(24,150,131,.15); }
.breadcrumb { font-size: .84rem; margin-bottom: 1rem; }
.breadcrumb-item.active { color: var(--ink-500); }
.badge { font-weight: 600; border-radius: 999px; padding: .35em .7em; }
.text-money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.text-in { color: var(--success-600); font-weight: 600; }
.text-out { color: var(--danger-600); font-weight: 600; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.login-side { background: linear-gradient(150deg, var(--brand-900), var(--brand-600)); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.login-side h2 { color: #fff; }
.login-side ul { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.login-side li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .6rem; color: rgba(255,255,255,.88); }
.login-form { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.25rem; background: var(--surface-2); }
.login-card { width: 100%; max-width: 420px; }
@media (max-width: 991.98px) { .login-wrap { grid-template-columns: 1fr; } .login-side { display: none; } }

/* ---------- Publik ---------- */
.public-footer { background: var(--brand-900); color: rgba(255,255,255,.78); padding: 2.75rem 0 1.5rem; margin-top: 3rem; }
.public-footer h6 { color: #fff; text-transform: uppercase; font-size: .78rem; letter-spacing: .06em; margin-bottom: .8rem; }
.public-footer a { color: rgba(255,255,255,.78); display: inline-block; padding: .15rem 0; }
.public-footer a:hover { color: var(--gold-500); }
.public-footer hr { border-color: rgba(255,255,255,.15); margin: 2rem 0 1rem; }
.usaha-card { height: 100%; }
.usaha-thumb { height: 172px; background: var(--brand-100); display: flex; align-items: center; justify-content: center; color: var(--brand-600); font-size: 2.4rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; }
.usaha-thumb img { width: 100%; height: 100%; object-fit: cover; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-500); }
.empty-state i { font-size: 2.5rem; color: var(--brand-600); display: block; margin-bottom: .75rem; }

/* ---------- Cetak ---------- */
.print-doc { background: #fff; max-width: 900px; margin: 1.5rem auto; padding: 2.5rem; box-shadow: var(--shadow-md); }
.print-head { text-align: center; border-bottom: 3px double var(--brand-900); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.print-head h2 { margin-bottom: .1rem; font-size: 1.25rem; }
.print-head p { margin: 0; font-size: .88rem; color: var(--ink-700); }
.print-sign { margin-top: 3rem; display: flex; justify-content: flex-end; text-align: center; }
@media print {
  .no-print, .app-sidebar, .app-topbar, .app-footer, .navbar-public, .public-footer { display: none !important; }
  body { background: #fff; }
  .app-main { margin-left: 0; }
  .app-content { padding: 0; }
  .print-doc { box-shadow: none; margin: 0; max-width: none; padding: 0; }
  .table > thead th { background: #eee !important; -webkit-print-color-adjust: exact; }
}


