/* =====================================================================
   SIMETRIS v2 — gaya aplikasi
   ===================================================================== */

:root {
  --sb-width: 264px;
  --brand: #1d3f6e;
  --brand-2: #2a5ca8;
  --ink: #1f2937;
  --muted: #6b7280;
  --bg: #f4f6fa;
}

body.app-body {
  background: var(--bg);
  color: var(--ink);
  font-size: .925rem;
}

.app-shell { display: flex; min-height: 100vh; }

/* ----------------------------------------------------------- sidebar -- */
.app-sidebar {
  width: var(--sb-width);
  flex: 0 0 var(--sb-width);
  background: linear-gradient(180deg, #14315a 0%, #1d3f6e 60%, #173660 100%);
  color: #dbe4f2;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding-bottom: 1rem;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: 1.15rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.app-brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: #fff; color: var(--brand);
  font-weight: 800; font-size: 1.15rem;
}
.app-brand-mark img { width: 30px; height: 30px; object-fit: contain; display: block; }
.app-brand-text { line-height: 1.15; display: flex; flex-direction: column; }
.app-brand-text b { color: #fff; font-size: 1rem; letter-spacing: .02em; }
.app-brand-text small { color: #9fb4d4; font-size: .68rem; }

.app-nav { padding: .9rem .6rem 0; }
.app-nav-group {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
  color: #8aa2c6; padding: .9rem .7rem .35rem;
}
.app-nav-link {
  display: flex; align-items: center; gap: .7rem;
  padding: .55rem .7rem; margin-bottom: 2px;
  border-radius: 8px; color: #cdd9ec; text-decoration: none;
  transition: background .15s, color .15s;
}
.app-nav-link i { font-size: 1.02rem; opacity: .9; width: 18px; text-align: center; }
.app-nav-link:hover { background: rgba(255,255,255,.09); color: #fff; }
.app-nav-link.is-active {
  background: #fff; color: var(--brand); font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.app-nav-link.is-active i { opacity: 1; }

.sidebar-backdrop { display: none; }

/* ------------------------------------------------------------ main --- */
.app-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.app-topbar {
  background: #fff; border-bottom: 1px solid #e5e9f0;
  height: 58px; position: sticky; top: 0; z-index: 100;
}
.avatar-sm {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem;
}

.app-content { flex: 1 1 auto; padding: 1.35rem 1.5rem; }
.app-footer { padding: 1rem 1.5rem; border-top: 1px solid #e5e9f0; background: #fff; }

/* ----------------------------------------------------------- cards --- */
.card { border: 1px solid #e7ebf2; border-radius: 14px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.card-header {
  background: #fff; border-bottom: 1px solid #eef1f6;
  font-weight: 600; border-radius: 14px 14px 0 0 !important;
}

.stat-card { border: 0; border-radius: 14px; color: #fff; overflow: hidden; position: relative; }
.stat-card .stat-body { padding: 1.1rem 1.2rem; }
.stat-card-link {
  color: rgba(255, 255, 255, .8);
  font-size: .95rem;
  line-height: 1;
  text-decoration: none;
  transition: color .15s ease, transform .15s ease;
}
.stat-card-link:hover,
.stat-card-link:focus-visible { color: #fff; transform: translateY(-1px); }
.stat-card-link:focus-visible { outline: 2px solid rgba(255, 255, 255, .9); outline-offset: 2px; border-radius: 50%; }
.stat-angka {
  border: 0;
  border-bottom: 1px dotted rgba(255, 255, 255, .6);
  background: none;
  padding: 0;
  font: inherit;
  font-weight: inherit;
  color: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}
.stat-angka:hover { border-bottom-style: solid; }
.stat-angka:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .9);
  outline-offset: 3px;
  border-radius: 4px;
  border-bottom-color: transparent;
}
.stat-card .stat-sub .stat-angka { font-weight: 700; }
.stat-card .stat-label { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; opacity: .9; }
.stat-card .stat-value { font-size: 1.9rem; font-weight: 800; line-height: 1.15; }
.stat-card .stat-sub { font-size: .78rem; opacity: .88; }
.stat-card .stat-target { margin-top: .45rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; opacity: .92; }
.stat-card .stat-target strong { display: block; margin-top: .1rem; font-size: 1.35rem; font-weight: 800; line-height: 1.1; letter-spacing: 0; }

.bg-stat-primary { background: linear-gradient(135deg, #1d3f6e, #2a5ca8); }
.bg-stat-success { background: linear-gradient(135deg, #157347, #1f9d63); }
.bg-stat-warning { background: linear-gradient(135deg, #a76a00, #d99b1a); }
.bg-stat-danger  { background: linear-gradient(135deg, #a52323, #d64545); }
.bg-stat-info    { background: linear-gradient(135deg, #0f6f8c, #17a2b8); }
.bg-stat-muted   { background: linear-gradient(135deg, #4b5563, #6b7280); }

/* ---------------------------------------------------- clickable cards -- */
.row a.text-decoration-none {
  display: block;
  height: 100%;
}

.row a.text-decoration-none .stat-card {
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  cursor: pointer;
}

.row a.text-decoration-none:hover .stat-card {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .18);
  filter: saturate(1.08) brightness(1.02);
}

.row a.text-decoration-none:active .stat-card {
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(15, 23, 42, .16);
}

/* ---------------------------------------------------------- tables --- */
.table { --bs-table-bg: transparent; }
.table thead th {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); background: #fafbfd; border-bottom-width: 1px; white-space: nowrap;
}
.table td { vertical-align: middle; }
.table-hover tbody tr:hover { background: #f7f9fc; }

.filter-bar { background: #fff; border: 1px solid #e7ebf2; border-radius: 14px; padding: .9rem; }
.filter-bar .form-control, .filter-bar .form-select { border-radius: 8px; }

.table-thumb {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; background: #e5e9f0; display: grid; place-items: center;
  font-weight: 700; color: var(--brand);
}

.timeline { position: relative; padding-left: 1.4rem; }
.timeline::before {
  content: ''; position: absolute; left: 5px; top: .3rem; bottom: .3rem;
  width: 2px; background: #e3e8f0;
}
.timeline-item { position: relative; padding-bottom: 1rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -1.4rem; top: .35rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand-2);
}

.kv dt { color: var(--muted); font-weight: 500; font-size: .8rem; }
.kv dd { font-weight: 600; margin-bottom: .55rem; }

/* ------------------------------------------------------------ auth --- */
.auth-body {
  min-height: 100vh; display: grid; place-items: center; padding: 1.5rem;
  background:
    radial-gradient(1000px 500px at 10% -10%, #2a5ca833, transparent),
    radial-gradient(900px 500px at 110% 110%, #15734733, transparent),
    linear-gradient(135deg, #14315a, #1d3f6e 55%, #0f2748);
}
.auth-wrap { width: 100%; max-width: 430px; }
.auth-card { border-radius: 18px; }
.auth-mark {
  width: 56px; height: 56px; border-radius: 16px; display: inline-grid; place-items: center;
  background: linear-gradient(135deg, #1d3f6e, #2a5ca8); color: #fff;
  font-size: 1.6rem; font-weight: 800;
}
.auth-logo {
  width: 150px; height: auto; object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(13, 43, 74, .18));
}

/* -------------------------------------------------------------- TV --- */
/* Mode TV: editorial dashboard with calm motion and a compact bento overview. */
.tv-body {
  --tv-bg: #07131f;
  --tv-panel: #101f2d;
  --tv-panel-soft: #142637;
  --tv-line: rgba(194, 216, 232, .12);
  --tv-text: #eff6f8;
  --tv-muted: #91a6b5;
  --tv-accent: #b7e27b;
  min-height: 100vh;
  overflow: hidden;
  color: var(--tv-text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(ellipse at 78% -12%, rgba(66, 118, 111, .22), transparent 42%),
    radial-gradient(ellipse at 0% 100%, rgba(29, 79, 91, .2), transparent 42%),
    var(--tv-bg);
}
.tv-body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
.tv-frame { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100vh; padding: 1.35rem 2.35rem 1rem; }
.tv-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .15rem 0 1rem; border-bottom: 1px solid var(--tv-line); }
.tv-brand { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.tv-brand-mark { width: 58px; height: 58px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--tv-line); border-radius: 17px; background: linear-gradient(145deg, #172b3a, #0d1b28); box-shadow: inset 0 1px rgba(255,255,255,.08), 0 10px 30px rgba(0,0,0,.2); }
.tv-brand-mark img { width: 43px; height: 43px; object-fit: contain; }
.tv-brand-copy { line-height: 1.2; }
.tv-kicker, .tv-eyebrow, .tv-live, .tv-label { color: var(--tv-muted); font-size: .66rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.tv-title { margin-top: .16rem; color: var(--tv-text); font-size: 1.22rem; font-weight: 760; letter-spacing: .025em; }
.tv-subtitle { margin-top: .2rem; color: var(--tv-muted); font-size: .76rem; }
.tv-head-meta { text-align: right; }
.tv-live { display: inline-flex; align-items: center; gap: .48rem; color: #b6c7c9; font-size: .62rem; letter-spacing: .13em; }
.tv-live-dot, .tv-eyebrow span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--tv-accent); box-shadow: 0 0 14px rgba(183,226,123,.75); animation: tv-pulse 2.2s ease-in-out infinite; }
.tv-clock { margin-top: .3rem; color: var(--tv-text); font-size: 1.22rem; font-weight: 720; font-variant-numeric: tabular-nums; letter-spacing: .035em; }
.tv-panels { position: relative; flex: 1 1 auto; min-height: 0; margin-top: 1.1rem; overflow: hidden; }
.tv-panel { position: absolute; inset: 0; display: flex; flex-direction: column; overflow-y: auto; opacity: 0; transform: translateY(12px) scale(.995); pointer-events: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.tv-panel.is-active { z-index: 1; opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.tv-panel.is-active > * { animation: tv-enter .65s both; }
.tv-dots { display: flex; align-items: center; justify-content: center; gap: .45rem; padding-top: .8rem; }
.tv-dot { width: 6px; height: 6px; border-radius: 9px; background: #40515d; transition: width .45s ease, background .45s ease, box-shadow .45s ease; }
.tv-dot.is-active { width: 28px; background: var(--tv-accent); box-shadow: 0 0 14px rgba(183,226,123,.32); }
.tv-overview-intro { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding: .3rem 0 1.1rem; }
.tv-eyebrow { display: flex; align-items: center; gap: .5rem; color: var(--tv-accent); }
.tv-eyebrow span { width: 6px; height: 6px; }
.tv-overview-intro h1 { margin: .65rem 0 .38rem; font-size: clamp(1.65rem, 2.8vw, 2.65rem); font-weight: 720; line-height: 1.05; letter-spacing: -.045em; }
.tv-overview-intro h1 span { color: var(--tv-accent); }
.tv-overview-intro p { margin: 0; color: var(--tv-muted); font-size: .86rem; }
.tv-overview-total { display: flex; flex-direction: column; align-items: flex-end; padding-bottom: .15rem; color: var(--tv-muted); font-size: .76rem; }
.tv-overview-total strong { color: var(--tv-text); font-size: 2.7rem; font-weight: 720; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -.055em; }
.tv-overview-total small { margin-top: .2rem; color: var(--tv-muted); font-size: .68rem; }
.tv-bento-grid { display: grid; flex: 1; min-height: 0; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(132px, 1fr)); gap: .72rem; }
.tv-stat, .tv-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--tv-line); border-radius: 17px; background: linear-gradient(145deg, rgba(22,41,57,.96), rgba(13,29,42,.96)); box-shadow: 0 14px 36px rgba(0,0,0,.13), inset 0 1px rgba(255,255,255,.035); }
.tv-stat { display: flex; flex-direction: column; justify-content: space-between; padding: 1rem 1.08rem; transition: transform .35s ease, border-color .35s ease, background .35s ease; }
.tv-stat:hover { transform: translateY(-3px); border-color: rgba(183,226,123,.3); background: linear-gradient(145deg, #1a3040, #112635); }
.tv-stat::after { content: ''; position: absolute; width: 105px; height: 105px; right: -40px; bottom: -53px; border: 1px solid currentColor; border-radius: 50%; opacity: .12; box-shadow: 0 0 0 15px rgba(255,255,255,.018), 0 0 0 31px rgba(255,255,255,.014); }
.tv-stat-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.tv-stat .l { color: var(--tv-muted); font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.tv-stat .v { position: relative; z-index: 1; color: var(--tv-text); font-size: clamp(2rem, 3.2vw, 3.05rem); font-weight: 730; line-height: .98; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.tv-stat-caption { position: relative; z-index: 1; color: #8298a7; font-size: .68rem; }
.tv-stat-icon { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid currentColor; border-radius: 10px; color: inherit; opacity: .82; font-size: .9rem; }
.tv-tone-info { color: #80c9d6; }
.tv-tone-success { color: var(--tv-accent); }
.tv-tone-warning { color: #edbd72; }
.tv-tone-danger { color: #ed8b82; }
.tv-stat-accepted .v { color: #8bd0dc; }
.tv-stat-process .v { color: #f08e84; }
.tv-stat-revision .v, .tv-stat-overdue .v { color: #edbd72; }
.tv-stat-done .v { color: var(--tv-accent); }
.tv-stat-accepted { grid-column: span 3; }
.tv-stat-process { grid-column: span 3; }
.tv-stat-revision { grid-column: span 3; }
.tv-stat-done { grid-column: span 3; }
.tv-stat-overdue { grid-column: span 3; }
.tv-activity-card { grid-column: span 9; padding: 1rem 1.1rem; }
.tv-card-heading { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.tv-card-heading h2 { margin: .24rem 0 0; color: var(--tv-text); font-size: 1rem; font-weight: 680; }
.tv-card-heading > i { color: var(--tv-accent); font-size: 1.1rem; }
.tv-kind-list { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .48rem; }
.tv-kind-pill { display: flex; align-items: center; gap: .7rem; max-width: 100%; padding: .48rem .7rem; border: 1px solid var(--tv-line); border-radius: 10px; background: rgba(255,255,255,.025); color: #b8c8d1; font-size: .7rem; }
.tv-kind-pill b { color: var(--tv-accent); font-size: .74rem; font-variant-numeric: tabular-nums; }
.tv-panel:not(.tv-panel-overview) > .row { margin: 0; gap: .05rem; }
.tv-panel-heading { margin: .25rem 0 1rem; }
.tv-panel-heading .tv-label { color: var(--tv-accent); }
.tv-panel-heading h1 { margin: .35rem 0 0; color: var(--tv-text); font-size: 1.7rem; font-weight: 700; letter-spacing: -.035em; }
.tv-panel:not(.tv-panel-overview) .tv-card { height: auto !important; min-height: 145px; padding: 1rem 1.05rem; }
.tv-panel:not(.tv-panel-overview) .tv-label { color: var(--tv-muted); }
.tv-panel:not(.tv-panel-overview) .fw-bold.fs-5 { color: var(--tv-text); }
.tv-panel:not(.tv-panel-overview) .tv-muted { color: var(--tv-muted); }
.tv-panel:not(.tv-panel-overview) .rounded-pill { font-weight: 650; }
.tv-panel:not(.tv-panel-overview) .tv-scroll { height: 100% !important; overflow-y: auto !important; padding: 1rem 1.2rem; }
.tv-table { --bs-table-bg: transparent; --bs-table-color: #d9e4e8; --bs-table-border-color: rgba(194,216,232,.1); color: #d9e4e8; }
.tv-table thead th { position: sticky; top: 0; z-index: 2; color: #91a6b5; background: #122434; }
.tv-table td { padding-top: .72rem; padding-bottom: .72rem; }
.tv-panel .tv-card > * { position: relative; z-index: 1; }
.tv-scroll { overflow: auto; }
.tv-avatar { background: linear-gradient(160deg, #477d74, #b7e27b); color: #10241f; }
.tv-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 32px; padding-top: .45rem; color: #758b99; font-size: .58rem; font-weight: 700; letter-spacing: .13em; }
.tv-footer > div:first-child { display: flex; align-items: center; gap: .45rem; }
.tv-footer-mark { width: 6px; height: 6px; border-radius: 50%; background: var(--tv-accent); }
.tv-footer-divider { color: #3b5361; }
.tv-footer-note { text-align: right; }.tv-staff-card { color: var(--tv-text); display: flex; flex-direction: row; align-items: center; gap: .6rem; }
  .tv-staff-card img { flex: 0 0 auto; width: 80px; height: 80px; border: 2px solid rgba(183,226,123,.5); box-shadow: 0 0 0 4px rgba(183,226,123,.1), 0 6px 18px rgba(0,0,0,.3); border-radius: 50%; object-fit: cover; transition: transform .2s ease, box-shadow .2s ease; }
  .tv-staff-card img:hover { transform: scale(1.08); box-shadow: 0 0 0 4px rgba(183,226,123,.25), 0 8px 24px rgba(0,0,0,.35); }
  .tv-staff-card .fw-semibold { color: var(--tv-text); }
  .tv-staff-card .small { color: var(--tv-muted); font-size: .72rem; }

.tv-panel:not(.tv-panel-overview) .badge { padding: .45rem .65rem; border: 1px solid rgba(255,255,255,.15); }
.tv-panel:not(.tv-panel-overview) .tv-table .fw-semibold { color: var(--tv-text); }
@keyframes tv-enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tv-pulse { 50% { opacity: .48; box-shadow: 0 0 4px rgba(183,226,123,.3); } }
@media (prefers-reduced-motion: reduce) {
  .tv-panel, .tv-dot, .tv-stat, .tv-live-dot, .tv-eyebrow span { animation: none !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------------------- responsive --- */
@media (max-width: 991.98px) {
  .app-sidebar {
    position: fixed; z-index: 1050; left: 0; top: 0;
    transform: translateX(-100%); transition: transform .25s ease;
  }
  .app-sidebar.is-open { transform: none; }
  .sidebar-backdrop.is-open {
    display: block; position: fixed; inset: 0;
    background: rgba(15,23,42,.45); z-index: 1040;
  }
  .app-content { padding: 1rem; }
}
/* --------------------------------------------------------- peta kerja --- */
.peta-map { height: 68vh; min-height: 420px; width: 100%; background: #e9eef5; border-radius: 0 0 14px 14px; }
.peta-loading {
  position: absolute; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.72); font-size: .9rem; color: #475569; border-radius: 0 0 14px 14px;
}
.peta-toolbar .peta-cari { width: 240px; }
.peta-toolbar .form-select { width: auto; max-width: 200px; }
.peta-info-card .peta-info { max-height: 68vh; overflow: auto; }
.peta-dl dt, .peta-dl dd { border-bottom: 1px solid #eef2f7; }
.peta-dl dd { font-weight: 600; }
.peta-info .table th { font-weight: 500; }
.peta-jarak-box {
  border: 1px solid #dbeafe; background: #f0f9ff; border-radius: 10px;
  padding: .55rem .75rem; margin-bottom: .75rem;
}
.peta-jarak-box.peta-jarak-dalam { border-color: #bbf7d0; background: #f0fdf4; }
.peta-jarak-box.peta-jarak-off { border-color: #e2e8f0; background: #f8fafc; }
.peta-terdekat .list-group-item { padding: .55rem .75rem; }
.peta-terdekat .badge { font-weight: 500; }
.peta-rute-langkah { max-height: 320px; overflow: auto; }
.peta-langkah-ikon {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #eff6ff; color: #1d4ed8; font-size: .82rem;
}
.peta-tujuan-ikon span {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: #dc2626; color: #fff; border: 2px solid #fff; box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(15,23,42,.4); font-size: .78rem;
}
.peta-posisi-ikon span {
  display: block; width: 18px; height: 18px; border-radius: 50%;
  background: #2563eb; border: 3px solid #fff; box-sizing: border-box;
  box-shadow: 0 0 0 2px rgba(37,99,235,.55), 0 0 0 9px rgba(37,99,235,.18);
  animation: peta-denyut 2s ease-out infinite;
}
@keyframes peta-denyut {
  0% { box-shadow: 0 0 0 2px rgba(37,99,235,.55), 0 0 0 0 rgba(37,99,235,.35); }
  70% { box-shadow: 0 0 0 2px rgba(37,99,235,.55), 0 0 0 15px rgba(37,99,235,0); }
  100% { box-shadow: 0 0 0 2px rgba(37,99,235,.55), 0 0 0 0 rgba(37,99,235,0); }
}
.min-w-0 { min-width: 0; }
.leaflet-container { font: inherit; }
.leaflet-tooltip { font-size: .78rem; }
.leaflet-control-legend {
  background: #fff; padding: .5rem .65rem; border-radius: 8px;
  box-shadow: 0 1px 5px rgba(15,23,42,.3); font-size: .78rem; line-height: 1.55;
  color: #334155; max-height: 60vh; overflow: auto;
}
.leaflet-control-legend .legend-title { font-weight: 600; margin-bottom: .25rem; white-space: nowrap; }
.leaflet-control-legend .legend-row { display: flex; align-items: center; gap: .45rem; white-space: nowrap; }
.legend-swatch {
  display: inline-block; width: 12px; height: 12px; border-radius: 3px;
  border: 1px solid rgba(15,23,42,.25); flex: 0 0 12px; vertical-align: -1px;
}
@media (max-width: 767.98px) {
  .peta-map { height: 58vh; min-height: 340px; }
  .peta-toolbar .peta-cari { width: 100%; }
  .peta-toolbar .form-select { max-width: none; }
}

/* ----------------------------------------------------- rincian laporan -- */
.detail-link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.detail-link:hover,
.detail-link:focus-visible {
  text-decoration: underline;
}
.detail-link strong {
  color: var(--brand-2);
  text-decoration: underline dotted;
}
.detail-link:hover strong,
.detail-link:focus-visible strong {
  text-decoration: underline;
}
.detail-link:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
  border-radius: 4px;
}
.detail-angka {
  border: 0;
  background: none;
  padding: 0 .18rem;
  font: inherit;
  font-weight: 600;
  color: var(--brand-2);
  border-radius: 4px;
  cursor: pointer;
  line-height: 1.2;
}
.detail-angka:hover,
.detail-angka:focus-visible {
  background: #e8f0fb;
  text-decoration: underline;
}
.detail-angka:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 1px;
}
.detail-angka.text-danger { color: #b02a37; }
#modalRincianBody { min-height: 180px; }
