:root {
  --bg: #fffaf7;
  --panel: #fff;
  --line: #eee6e1;
  --text: #1c1816;
  --muted: #817973;
  --red: #ef5437;
  --orange: #ed902e;
  --green: #199951;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  font-family:
    Inter,
    Arial,
    sans-serif;

  background: #f8f4f1;
  color: var(--text);
}

body {
  overflow-x: hidden;
}

.cc {
  width: 100%;
  min-height: 100vh;

  display: grid;
  grid-template-columns:
    178px
    minmax(0, 1fr);

  background: var(--bg);
}


/* SIDEBAR */

.cc-sidebar {
  min-height: 100vh;

  padding:
    18px
    12px;

  display: flex;
  flex-direction: column;

  border-right:
    1px solid var(--line);

  background:
    rgba(255,255,255,.9);
}

.cc-brand {
  height: 42px;

  display: flex;
  align-items: center;
  gap: 9px;

  padding-left: 7px;

  color: var(--red);
}

.cc-brand-logo {
  width: 30px;
  height: 30px;

  display: grid;
  place-items: center;

  border-radius: 8px;

  color: white;
  background:
    linear-gradient(
      145deg,
      #ff724e,
      #ef4930
    );

  font-size: 10px;
  font-weight: 900;
}

.cc-sidebar nav {
  margin-top: 14px;

  display: grid;
  gap: 2px;
}

.cc-sidebar nav a {
  height: 34px;

  padding: 0 9px;

  display: flex;
  align-items: center;

  border-radius: 7px;

  color: #665e59;

  font-size: 10px;
}

.cc-sidebar nav a.active {
  color: var(--red);

  background: #fff0eb;

  font-weight: 700;
}

.cc-nav-icon {
  display: inline-flex;
  flex: none;

  width: 16px;
  height: 16px;
  margin-right: 8px;

  color: currentColor;
  opacity: .75;
}

.cc-nav-icon svg,
.cc-nav-icon .rn-ic {
  width: 16px;
  height: 16px;
}

.cc-sidebar nav a.active .cc-nav-icon {
  opacity: 1;
}

/* rn-navigation-v2.css's hover/active states (rgba(255,255,255,...)) are
   tuned for the dark .sidebar used on most other pages — nearly invisible
   against this sidebar's light/white background. Override with the same
   dark-on-light treatment .cc-sidebar nav a.active already uses above. */
.cc-sidebar .rn-nav-v2-summary:hover {
  background: #fff0eb;
}

.cc-sidebar .rn-nav-v2-link:hover {
  background: rgba(232, 117, 88, .08);
}

.cc-sidebar .rn-nav-v2-link.active,
.cc-sidebar .rn-nav-v2-link[aria-current="page"] {
  background: #fff0eb;
  color: var(--red);
}

.cc-system {
  margin-top: auto;

  padding: 10px;

  border:
    1px solid var(--line);

  border-radius: 10px;

  background: white;

  font-size: 8px;
}

.cc-system strong {
  display: block;
}

.cc-system strong i {
  width: 7px;
  height: 7px;

  margin-right: 5px;

  display: inline-block;

  border-radius: 50%;

  background: var(--green);
}

.cc-system span,
.cc-system small,
.cc-system b {
  display: block;

  margin-top: 5px;

  color: var(--muted);
}

.cc-system hr {
  border: 0;
  border-top:
    1px solid var(--line);
}


/* MAIN */

.cc-main {
  min-width: 0;

  padding:
    14px
    16px
    12px;
}

.cc-mobile-bar,
.cc-mobile-nav,
.cc-mobile-disaster {
  display: none;
}


/* HEADER */

.cc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 10px;
}

.cc-header h1 {
  margin: 0;

  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px 10px;

  font-size: 20px;
  line-height: 1.1;
}

.cc-header p {
  margin: 5px 0 0;

  color: var(--muted);

  font-size: 8px;
}

.cc-header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.cc-header select {
  width: 185px;
  height: 32px;

  padding: 0 9px;

  border:
    1px solid var(--line);

  border-radius: 8px;

  background: white;

  font-size: 9px;
}

.cc-severity {
  min-height: 22px;

  padding:
    0 9px;

  display: inline-flex;
  align-items: center;

  border-radius: 6px;

  color: var(--orange);
  background: #fff4e8;

  font-size: 8px;
  font-weight: 600;
}

.cc-header h1 .cc-severity {
  flex: 0 0 auto;
}

.cc-header-title {
  min-width: 0;
}

.cc-header h1 #disasterName {
  min-width: 0;

  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.cc-severity[hidden] {
  display: none;
}

.cc-severity[data-level="critical"] {
  color: #d9480f;
  background: #ffede3;
}

.cc-header-abs {
  margin-left: 4px;
}

.cc-event-pick {
  height: 36px;

  padding: 0 4px 0 10px;

  display: inline-flex;
  align-items: center;
  gap: 4px;

  border: 1px solid var(--line);
  border-radius: 8px;

  background: white;
}

.cc-event-pick-icon {
  color: var(--orange);
}

.cc-event-pick-icon svg,
.cc-event-pick-icon .rn-ic,
.cc-share-btn svg,
.cc-share-btn .rn-ic {
  width: 15px;
  height: 15px;
}

.cc-header .cc-event-pick select {
  width: 170px;
  height: 32px;

  border: 0;

  background: transparent;
}

.cc-share-btn {
  height: 36px;

  white-space: nowrap;

  padding: 0 14px;

  display: inline-flex;
  align-items: center;
  gap: 7px;

  border: 0;
  border-radius: 8px;

  color: white;
  background: linear-gradient(135deg, #f26b4f, #f08a4b);
  box-shadow: 0 4px 12px rgba(242, 107, 79, .28);

  font: inherit;
  font-size: 12px;
  font-weight: 600;

  cursor: pointer;
}

.cc-share-btn:hover,
.cc-share-btn:focus-visible {
  filter: brightness(1.05);
}

.cc-share-msg {
  color: var(--muted);

  font-size: 11px;
}

.cc-share-msg:empty {
  display: none;
}


/* NEEDS TOP */

.cc-needs {
  margin-bottom: 7px;

  overflow: hidden;

  border:
    1px solid var(--line);

  border-radius: 10px;

  background: white;
}

.cc-section-title {
  height: 26px;

  padding: 0 9px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom:
    1px solid var(--line);
}

.cc-section-title strong {
  font-size: 9px;
}

.cc-section-title span {
  color: var(--muted);

  font-size: 7px;
}

.cc-needs-grid {
  display: grid;

  grid-template-columns:
    1fr
    1fr;
}

.cc-needs-grid table {
  width: 100%;

  border-collapse: collapse;

  table-layout: fixed;
}

.cc-needs-grid table:first-child {
  border-right:
    1px solid var(--line);
}

.cc-needs-grid th,
.cc-needs-grid td {
  height: 22px;

  padding: 3px 5px;

  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;

  border-bottom:
    1px solid #f5f0ed;

  font-size: 6.8px;

  text-align: right;
}

.cc-needs-grid th:first-child,
.cc-needs-grid td:first-child {
  width: 31%;

  text-align: left;
}

.cc-needs-grid th {
  color: var(--muted);

  font-weight: 600;
}

.cc-progress-wrap {
  min-width: 48px;
}

.cc-progress-label {
  margin-bottom: 2px;

  font-size: 6px;
}

.cc-progress-track {
  height: 3px;

  overflow: hidden;

  border-radius: 999px;

  background: #efe9e5;
}

.cc-progress-bar {
  height: 100%;

  border-radius: inherit;

  background: var(--orange);
}

.cc-progress-bar.good {
  background: var(--green);
}

.cc-progress-bar.low {
  background: var(--red);
}


/* KPI */

.cc-kpis {
  margin-bottom: 7px;

  display: grid;

  grid-template-columns:
    repeat(6, 1fr);

  gap: 6px;
}

.cc-kpis article {
  min-width: 0;
  min-height: 160px;

  padding: 18px 16px 16px;

  position: relative;

  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto auto 1fr;
  column-gap: 12px;

  border:
    1px solid var(--line);

  border-radius: 14px;

  background: white;
}

.cc-kpis article > .cc-kpi-icon {
  grid-row: 1 / span 3;
}

.cc-kpis article > small,
.cc-kpis article > strong,
.cc-kpis article > em {
  grid-column: 2;
}

.cc-kpis .cc-kpi.red strong {
  color: var(--red);
}

.cc-kpis .cc-kpi.orange strong {
  color: var(--orange);
}

.cc-kpis .cc-kpi.green strong {
  color: var(--green);
}

.cc-kpis em.cc-kpi-warn {
  color: var(--orange);

  font-weight: 600;
}

.cc-kpis em.cc-kpi-warn[hidden] {
  display: none;
}

.cc-kpi-bar {
  grid-column: 1 / -1;
  align-self: end;

  height: 4px;

  margin-top: 12px;

  overflow: hidden;

  border-radius: 4px;

  background: #f3ece8;
}

.cc-kpi-bar i {
  width: 0;
  height: 100%;

  display: block;

  border-radius: inherit;

  background: var(--red);

  transition: width .4s ease;
}

.cc-kpi.orange .cc-kpi-bar i {
  background: var(--orange);
}

.cc-kpi.green .cc-kpi-bar i {
  background: var(--green);
}

.cc-kpi-icon {
  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  border-radius: 12px;
}

.cc-kpi-icon svg,
.cc-kpi-icon .rn-ic {
  width: 20px;
  height: 20px;
}

.cc-kpi-icon.red {
  color: var(--red);
  background: #fff0eb;
}

.cc-kpi-icon.orange {
  color: var(--orange);
  background: #fff4e8;
}

.cc-kpi-icon.green {
  color: var(--green);
  background: #eef8f1;
}

.cc-kpis small {
  display: block;

  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.cc-kpis strong {
  display: block;

  margin-top: 4px;

  font-size: 20px;
  line-height: 1.15;
}

.cc-kpis em {
  display: block;

  margin-top: 3px;

  font-size: 10px;
  font-style: normal;
  color: var(--muted);
}


/* MAIN GRID */

.cc-grid-main {
  height: 385px;

  display: grid;

  grid-template-columns:
    1.3fr
    1fr
    1fr
    .7fr;

  gap: 8px;

  margin-bottom: 8px;
}


/* NEEDS CARD (in the main grid, mock-up column 3) */

.cc-needs-scroll {
  flex: 1 1 auto;
  min-height: 0;

  overflow: auto;
}

.cc-needs-table {
  width: 100%;

  border-collapse: collapse;

  font-size: 11px;
}

.cc-needs-table th,
.cc-needs-table td {
  padding: 9px 8px;

  border-bottom: 1px solid #f4efec;

  text-align: right;
  white-space: nowrap;
}

.cc-needs-table th:first-child,
.cc-needs-table td:first-child {
  max-width: 0;
  width: 42%;

  overflow: hidden;

  text-align: left;
  text-overflow: ellipsis;
}

.cc-needs-table th {
  color: var(--muted);

  font-size: 10px;
  font-weight: 600;
}

.cc-needs-table td small {
  color: var(--muted);
}

.cc-need-gap {
  color: var(--red);

  font-weight: 700;
}

.cc-card > header small {
  color: var(--muted);

  font-weight: 500;
}

.cc-card-more {
  flex: 0 0 auto;

  padding: 9px 12px;

  display: block;

  border: 0;
  border-top: 1px solid #f4efec;

  color: var(--red);
  background: none;

  font: inherit;
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;

  cursor: pointer;
}

.cc-card-more[hidden] {
  display: none;
}

.cc-pri-tag {
  margin-top: 14px;

  padding: 1px 7px;

  display: inline-block;

  border-radius: 5px;

  font-size: 9px;
  font-style: normal;
  font-weight: 600;
}

.cc-pri-tag.crit {
  color: var(--red);
  background: #ffeceb;
}

.cc-pri-tag.high {
  color: var(--orange);
  background: #fff4e8;
}

.cc-pri-tag.med,
.cc-pri-tag.low {
  color: #8a6d3b;
  background: #faf3e3;
}

.cc-card {
  min-width: 0;
  min-height: 0;

  overflow: hidden;

  display: flex;
  flex-direction: column;

  border:
    1px solid var(--line);

  border-radius: 10px;

  background: white;
}

.cc-card > header {
  height: 31px;

  flex: 0 0 31px;

  padding: 0 9px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom:
    1px solid var(--line);

  font-size: 9px;
}

.cc-card > header span {
  color: var(--muted);

  font-size: 7px;
}


/* MAP */

.cc-map-card {
  position: relative;
}

.cc-map {
  min-height: 0;

  flex: 1;
}

.cc-map-legend {
  height: 25px;

  flex: 0 0 25px;

  padding: 0 10px;

  display: flex;
  align-items: center;
  gap: 15px;

  border-top:
    1px solid var(--line);

  font-size: 7px;
}

.cc-map-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cc-map-legend i {
  width: 7px;
  height: 7px;

  display: inline-block;

  border-radius: 50%;
}

.cc-map-legend i.critical {
  background: var(--red);
}

.cc-map-legend i.warning {
  background: var(--orange);
}

.cc-map-legend i.safe {
  background: var(--green);
}

.cc-posko-marker {
  width: 20px;
  height: 20px;

  display: block;

  border:
    3px solid white;

  border-radius: 50%;

  box-shadow:
    0 2px 7px rgba(0,0,0,.27);
}

.cc-posko-marker.critical {
  background: var(--red);
}

.cc-posko-marker.warning {
  background: var(--orange);
}

.cc-posko-marker.safe {
  background: var(--green);
}


/* PRIORITY */

.cc-priority {
  min-height: 0;

  overflow: auto;
}

.cc-priority-item {
  padding: 6px 7px;

  display: grid;

  grid-template-columns:
    17px
    1fr
    auto;
  align-items: start;

  gap: 5px;

  border-bottom:
    1px solid #f4efec;
}

.cc-priority-item > span {
  width: 16px;
  height: 16px;

  display: grid;
  place-items: center;

  border-radius: 5px;

  color: white;
  background: var(--red);

  font-size: 6px;
}

.cc-priority-item strong {
  display: block;

  font-size: 7.5px;
}

.cc-priority-item p {
  margin: 2px 0 0;

  color: var(--muted);

  font-size: 6.5px;
}


/* EVIDENCE */

.cc-evidence {
  min-height: 0;

  overflow: auto;
}

.cc-evidence-item {
  padding: 6px;

  display: grid;

  grid-template-columns:
    56px
    1fr;

  gap: 6px;

  border-bottom:
    1px solid #f4efec;
}

.cc-evidence-thumb {
  height: 64px;

  overflow: hidden;

  border-radius: 6px;

  background: #eee;
}

.cc-evidence-thumb img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.cc-evidence-item strong {
  display: -webkit-box;

  overflow: hidden;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  font-size: 7px;
}

.cc-evidence-item span {
  display: block;

  margin-top: 2px;

  color: var(--muted);

  font-size: 6px;
}


/* MODULE BOTTOM */

.cc-modules {
  min-height: 208px;

  display: grid;

  grid-template-columns:
    repeat(7, 1fr);

  border:
    1px solid var(--line);

  border-radius: 10px;

  background: white;
}

.cc-modules article {
  min-width: 0;

  padding: 14px 12px 12px;

  position: relative;

  border-right:
    1px solid var(--line);
}

.cc-modules article:last-child {
  border-right: 0;
}

.cc-modules b {
  display: flex;
  align-items: center;
  gap: 7px;

  font-size: 8px;
}

.cc-mod-icon {
  width: 26px;
  height: 26px;

  flex: 0 0 26px;

  display: grid;
  place-items: center;

  border-radius: 8px;

  color: var(--orange);
  background: #fff4e8;
}

.cc-mod-icon.red {
  color: var(--red);
  background: #fff0eb;
}

.cc-mod-icon.green {
  color: var(--green);
  background: #eef8f1;
}

.cc-mod-icon svg,
.cc-mod-icon .rn-ic {
  width: 15px;
  height: 15px;
}

.cc-modules strong {
  display: block;

  margin-top: 6px;

  font-size: 15px;
}

.cc-modules span {
  display: block;

  margin-top: 2px;

  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;

  color: var(--muted);

  font-size: 6px;
}

.cc-mini-chart {
  height: 48px;

  margin-top: 10px;
}

.cc-mini-chart.orange {
  color: var(--orange);
}

.cc-mini-chart.red {
  color: var(--red);
}

.cc-mini-chart.green {
  color: var(--green);
}

.cc-mod-status-label {
  position: absolute;

  left: 12px;
  bottom: 9px;

  color: var(--muted);

  font-size: 10px;
}

.cc-mini-chart svg {
  width: 100%;
  height: 48px;

  display: block;
}

.cc-chart-empty {
  height: 35px;

  display: flex;
  align-items: end;

  border-bottom:
    1px dashed #ddd;

  color: #aaa;

  font-size: 6px;
}

.cc-modules em {
  position: absolute;

  right: 7px;
  bottom: 6px;

  padding:
    2px 5px;

  border-radius: 5px;

  color: #9c641f;
  background: #fff2df;

  font-size: 6px;
  font-style: normal;
}

.cc-modules em[data-level="bad"] {
  color: var(--red);
  background: #ffeceb;
}

.cc-modules em[data-level="ok"] {
  color: var(--green);
  background: #eef8f1;
}

.cc-status {
  display: none;
}


/* MOBILE MOCKUP */

@media (max-width: 760px) {

  .cc {
    display: block;
  }

  .cc-sidebar {
    display: none;
  }

  .cc-sidebar.is-open {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    z-index: 320;
    overflow-y: auto;
    box-shadow: 0 0 0 2000px rgba(0, 0, 0, .35);
  }

  .cc-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 310;
    background: rgba(0, 0, 0, .35);
  }

  .cc-sidebar-backdrop[hidden] {
    display: none;
  }

  .cc-main {
    padding:
      max(9px, env(safe-area-inset-top))
      8px
      12px;
  }

  .desktop-only {
    display: none;
  }

  .cc-mobile-bar {
    height: 34px;

    display: grid;

    grid-template-columns:
      1fr
      auto
      1fr;

    align-items: center;
  }

  .cc-mobile-bar button {
    width: 30px;
    height: 30px;

    border: 0;

    background: transparent;

    font-size: 16px;
  }

  .cc-mobile-bar button:last-child {
    justify-self: end;
  }

  .cc-mobile-bar .cc-brand-logo {
    width: 28px;
    height: 28px;
  }

  .cc-header {
    height: 54px;

    display: block;

    margin-bottom: 7px;

    text-align: center;
  }

  .cc-header h1 {
    font-size: 17px;
  }

  .cc-header h1 #disasterName {
    display: none;
  }

  .cc-mobile-disaster {
    display: block;

    margin-top: 3px;

    color: #625b57;

    font-size: 9px;
  }

  .cc-header p {
    display: none;
  }

  .cc-header-actions {
    margin-top: 6px;

    justify-content: center;
  }

  .cc-header select {
    width: 220px;
    height: 27px;

    font-size: 8px;
  }

  .cc-severity {
    display: none;
  }


  /* HP: needs single compact horizontal scroll
     sesuai ruang mockup */

  .cc-needs {
    margin-bottom: 6px;
  }

  .cc-section-title {
    height: 24px;
  }

  .cc-needs-grid {
    display: block;
  }

  .cc-needs-grid table {
    min-width: 100%;
  }

  .cc-needs-grid table:first-child {
    border-right: 0;
  }

  .cc-needs-grid table:nth-child(2) {
    display: none;
  }

  .cc-needs-grid th,
  .cc-needs-grid td {
    height: 19px;

    padding:
      2px 4px;

    font-size: 6px;
  }


  /* KPI 3 x 2 seperti mockup HP */

  .cc-kpis {
    height: 164px;

    grid-template-columns:
      repeat(3, 1fr);

    grid-template-rows:
      repeat(2, 1fr);

    gap: 4px;
  }

  .cc-kpis article {
    min-height: 0;

    padding: 6px;

    display: block;
  }

  .cc-kpi-bar {
    display: none;
  }

  .cc-kpi-icon {
    margin: 0 auto;

    width: 23px;
    height: 23px;
  }

  .cc-kpis small {
    position: static;

    margin-top: 3px;

    display: block;

    text-align: center;

    font-size: 6px;
  }

  .cc-kpis strong {
    position: static;

    margin-top: 4px;

    display: block;

    text-align: center;

    font-size: 14px;
  }

  .cc-kpis em {
    display: none;
  }


  /* HP stack */

  .cc-grid-main {
    height: auto;

    display: block;
  }

  .cc-card {
    margin-bottom: 6px;
  }

  .cc-map-card {
    height: 198px;
  }

  .cc-map {
    min-height: 142px;
  }

  .cc-grid-main
  .cc-card:nth-child(2) {
    max-height: 205px;
  }

  /* mock-up (HP): peta, prioritas, kebutuhan kritis — bukti tidak ditampilkan */
  .cc-grid-main
  .cc-card:nth-child(4) {
    display: none;
  }

  .cc-modules {
    display: none;
  }


  /* MOBILE BOTTOM NAV */

  .cc-mobile-nav {
    height: 58px;

    padding:
      4px
      4px
      max(
        4px,
        env(safe-area-inset-bottom)
      );

    position: fixed;

    z-index: 1000;

    left: 0;
    right: 0;
    bottom: 0;

    display: grid;

    grid-template-columns:
      repeat(5, 1fr);

    border-top:
      1px solid var(--line);

    background:
      rgba(255,255,255,.96);

    backdrop-filter:
      blur(10px);
  }

  .cc-mobile-nav a {
    display: grid;
    place-items: center;

    color: #5e5753;

    font-size: 14px;
  }

  .cc-mobile-nav small {
    display: block;

    margin-top: -7px;

    font-size: 6px;
  }

  .cc-mobile-nav a.active {
    color: var(--red);
  }
}


/* ==========================================================
   LARGE NORMAL TYPOGRAPHY
   ========================================================== */

body {
  font-size: 15px;
  line-height: 1.45;
}


/* Sidebar */

.cc-brand {
  font-size: 15px;
}

.cc-sidebar nav a {
  font-size: 13px;
}

.cc-system {
  font-size: 11px;
}

.cc-system small,
.cc-system b,
.cc-system span {
  font-size: 10px;
}


/* Header */

.cc-header h1 {
  font-size: 23px;
}

.cc-header p {
  font-size: 11px;
}

.cc-header select {
  font-size: 12px;
}

.cc-severity {
  font-size: 11px;
}


/* Needs table */

.cc-section-title strong {
  font-size: 12px;
}

.cc-section-title span {
  font-size: 10px;
}

.cc-needs-grid th,
.cc-needs-grid td {
  font-size: 10px;
}

.cc-progress-label {
  font-size: 9px;
}


/* KPI */

.cc-kpis small {
  font-size: 12px;
}

.cc-kpis strong {
  font-size: 27px;
}

.cc-kpis em {
  font-size: 10px;
}


/* Main cards */

.cc-card > header {
  font-size: 12px;
}

.cc-card > header span {
  font-size: 10px;
}

.cc-map-legend {
  font-size: 10px;
}


/* Priority */

.cc-priority-item strong {
  font-size: 10px;
}

.cc-priority-item p {
  font-size: 9px;
}


/* Evidence */

.cc-evidence-item strong {
  font-size: 10px;
}

.cc-evidence-item span {
  font-size: 9px;
}


/* Bottom modules */

.cc-modules b {
  font-size: 11px;
}

.cc-modules strong {
  font-size: 20px;
}

.cc-modules span {
  font-size: 9px;
}

.cc-modules em {
  font-size: 9px;
}


/* Leaflet popup */

.leaflet-popup-content {
  font-size: 12px;
  line-height: 1.45;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 760px) {

  body {
    font-size: 14px;
  }

  .cc-header h1 {
    font-size: 21px;
  }

  .cc-mobile-disaster {
    font-size: 12px;
  }

  .cc-header select {
    font-size: 11px;
  }

  .cc-section-title strong {
    font-size: 11px;
  }

  .cc-section-title span {
    font-size: 9px;
  }

  .cc-needs-grid th,
  .cc-needs-grid td {
    font-size: 8.5px;
  }

  .cc-kpis small {
    font-size: 8.5px;
  }

  .cc-kpis strong {
    font-size: 18px;
  }

  .cc-card > header {
    font-size: 11px;
  }

  .cc-priority-item strong {
    font-size: 9.5px;
  }

  .cc-priority-item p {
    font-size: 8.5px;
  }

  .cc-mobile-nav small {
    font-size: 8px;
  }
}


/* ==========================================================
   LANDROVER EVIDENCE LIGHTBOX
   ========================================================== */

.cc-evidence-item {
  cursor: pointer;

  transition:
    transform .15s ease,
    background .15s ease;
}

.cc-evidence-item:hover {
  background: #fff8f4;
  transform: translateY(-1px);
}

.cc-evidence-thumb {
  position: relative;
}

.cc-evidence-thumb::after {
  content: "⌕";

  width: 20px;
  height: 20px;

  position: absolute;
  right: 4px;
  bottom: 4px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  color: #fff;
  background: rgba(0,0,0,.65);

  font-size: 11px;
}

.cc-evidence-modal[hidden] {
  display: none;
}

.cc-evidence-modal {
  position: fixed;
  z-index: 99999;

  inset: 0;

  padding: 28px;

  display: grid;
  place-items: center;

  background:
    rgba(20,16,14,.82);

  backdrop-filter:
    blur(8px);
}

.cc-evidence-modal-card {
  width: min(1050px, 96vw);
  max-height: 90vh;

  overflow: auto;

  display: grid;

  grid-template-columns:
    minmax(0, 1.45fr)
    minmax(310px, .8fr);

  border-radius: 16px;

  background: #fff;

  box-shadow:
    0 24px 80px
    rgba(0,0,0,.35);
}

.cc-evidence-modal-image {
  min-height: 500px;

  display: grid;
  place-items: center;

  background: #151515;
}

.cc-evidence-modal-image img {
  width: 100%;
  height: 100%;

  max-height: 78vh;

  object-fit: contain;
}

.cc-evidence-modal-content {
  padding: 28px;
}

.cc-evidence-demo-badge {
  display: inline-flex;

  padding: 5px 8px;

  border-radius: 999px;

  color: #a65b13;
  background: #fff1dd;

  font-size: 10px;
  font-weight: 800;
}

.cc-evidence-modal-content h2 {
  margin:
    16px 0
    7px;

  font-size: 24px;
  line-height: 1.2;
}

.cc-evidence-modal-location {
  color: #817873;

  font-size: 12px;
}

.cc-evidence-modal-content > p {
  line-height: 1.65;
}

.cc-evidence-modal-meta {
  margin-top: 22px;

  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 10px;
}

.cc-evidence-modal-meta > div {
  padding: 11px;

  border:
    1px solid #eee6e1;

  border-radius: 9px;
}

.cc-evidence-modal-meta span,
.cc-evidence-modal-meta strong {
  display: block;
}

.cc-evidence-modal-meta span {
  color: #8c827c;

  font-size: 9px;
}

.cc-evidence-modal-meta strong {
  margin-top: 4px;

  font-size: 11px;
}

.cc-evidence-modal-close {
  width: 40px;
  height: 40px;

  position: fixed;
  z-index: 100000;

  top: 18px;
  right: 22px;

  border: 0;
  border-radius: 50%;

  color: #fff;
  background: rgba(255,255,255,.18);

  font-size: 28px;

  cursor: pointer;
}


@media (max-width:760px) {

  .cc-evidence-modal {
    padding: 8px;
  }

  .cc-evidence-modal-card {
    width: 100%;
    max-height: 94vh;

    display: block;

    border-radius: 12px;
  }

  .cc-evidence-modal-image {
    min-height: 230px;
    height: 38vh;
  }

  .cc-evidence-modal-content {
    padding: 17px;
  }

  .cc-evidence-modal-content h2 {
    font-size: 19px;
  }

  .cc-evidence-modal-meta {
    grid-template-columns: 1fr 1fr;
  }
}

/* Clickable KPI / module cards -> follow-up pages */
.cc-clickable {
  cursor: pointer;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}

.cc-clickable:hover,
.cc-clickable:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .14);
  border-color: rgba(37, 99, 235, .55);
  outline: none;
}

.cc-clickable::after {
  content: "\2197";
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 12px;
  opacity: .35;
}

.cc-kpis article,
.cc-modules article {
  position: relative;
}


/* ==========================================================
   KPI / module drill-down modal
   ========================================================== */
.cc-drill-modal[hidden] {
  display: none;
}

.cc-drill-modal {
  position: fixed;
  z-index: 99999;
  inset: 0;
  padding: 28px;
  display: grid;
  place-items: center;
  background: rgba(20, 16, 14, .82);
  backdrop-filter: blur(8px);
}

.cc-drill-card {
  width: min(960px, 96vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
  overflow: hidden;
}

.cc-drill-head {
  padding: 22px 26px 16px;
  border-bottom: 1px solid #eee6e1;
}

.cc-drill-kicker {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cc-drill-head h2 {
  margin: 10px 0 4px;
  font-size: 21px;
  line-height: 1.2;
}

.cc-drill-sub {
  margin: 0;
  color: #817873;
  font-size: 12px;
}

.cc-drill-body {
  padding: 18px 26px;
  overflow-y: auto;
  flex: 1;
}

.cc-drill-loading,
.cc-drill-empty-items {
  padding: 24px 4px;
  color: #8c827c;
  font-size: 13px;
}

.cc-drill-group {
  border: 1px solid #eee6e1;
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}

.cc-drill-group.is-closed {
  background: #fbf7f0;
}

.cc-drill-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #f7f4f1;
  border-bottom: 1px solid #eee6e1;
}

.cc-drill-group.is-closed .cc-drill-group-head {
  background: #f6ead3;
  border-bottom-color: #ecdcbb;
}

.cc-drill-org strong {
  font-size: 14px;
}

.cc-drill-type {
  margin-left: 8px;
  color: #8c827c;
  font-size: 11px;
}

.cc-drill-badge {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.cc-drill-badge.open {
  background: #e7f6ec;
  color: #1a7f43;
}

.cc-drill-badge.closed {
  background: #fbe6c8;
  color: #9a5b12;
}

.cc-drill-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 11px 14px;
  font-size: 12px;
  color: #5c534e;
}

.cc-drill-summary b {
  color: #201b18;
}

.cc-drill-summary .crit b {
  color: #c0392b;
}

.cc-drill-locked {
  margin: 0;
  padding: 12px 14px 16px;
  color: #7a6a4c;
  font-size: 12px;
  line-height: 1.6;
}

.cc-drill-items {
  list-style: none;
  margin: 0;
  padding: 4px 0 6px;
}

.cc-drill-items li {
  border-top: 1px solid #f0eae4;
}

.cc-drill-items li:first-child {
  border-top: 0;
}

.cc-drill-item {
  display: block;
  padding: 10px 14px;
  color: inherit;
  text-decoration: none;
}

.cc-drill-item.is-link {
  cursor: pointer;
  transition: background .12s ease;
}

.cc-drill-item.is-link:hover,
.cc-drill-item.is-link:focus-visible {
  background: #f4f7ff;
  outline: none;
}

.cc-drill-item.is-link:hover .cc-drill-go {
  transform: translateX(2px);
  color: #2563eb;
}

.cc-drill-item-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cc-drill-item-main strong {
  font-size: 13px;
}

.cc-drill-pri,
.cc-drill-stat {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.cc-drill-stat {
  background: #eef1f4;
  color: #55606b;
}

.cc-drill-pri.hi {
  background: #fde7e4;
  color: #c0392b;
}

.cc-drill-pri.mid {
  background: #fef3d8;
  color: #9a6a12;
}

.cc-drill-pri.lo {
  background: #e9f1ea;
  color: #4b6b52;
}

.cc-drill-item-sub {
  margin-top: 3px;
  color: #6b625c;
  font-size: 11.5px;
}

.cc-drill-item-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 6px;
  color: #8c827c;
  font-size: 11px;
}

.cc-drill-go {
  margin-left: auto;
  color: #9aa4b2;
  font-weight: 700;
  font-size: 13px;
  transition: transform .12s ease, color .12s ease;
}

.cc-drill-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 26px;
  border-top: 1px solid #eee6e1;
  background: #faf8f6;
}

.cc-drill-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  color: #8c827c;
  font-size: 10.5px;
}

.cc-drill-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}

.cc-drill-legend i.open {
  background: #1a7f43;
}

.cc-drill-legend i.closed {
  background: #d99a3f;
}

.cc-drill-modlink {
  color: #2563eb;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
}

.cc-drill-close {
  width: 40px;
  height: 40px;
  position: fixed;
  z-index: 100000;
  top: 18px;
  right: 22px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .cc-drill-modal {
    padding: 8px;
  }

  .cc-drill-card {
    width: 100%;
    max-height: 94vh;
  }

  .cc-drill-item-foot {
    font-size: 10.5px;
  }
}

/* ===== Kebutuhan Kritis item → posko drill (reuses drill modal) ===== */
.cc-need-item {
  cursor: pointer;
  color: inherit;
  text-decoration: underline dotted #c9b8ae;
  text-underline-offset: 3px;
}
.cc-need-item:hover {
  text-decoration: underline;
}
.cc-need-item:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
}

.cc-need-posko-list {
  list-style: none;
  margin: 0;
  padding: 4px 0 2px;
  display: grid;
  gap: 10px;
}
.cc-need-posko {
  border: 1px solid #f0eae4;
  border-radius: 10px;
  padding: 12px 14px;
}
.cc-need-posko-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cc-need-posko-head strong {
  font-size: 13px;
}
.cc-need-posko-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}
.cc-need-posko-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 8px 0 6px;
  font-size: 11.5px;
  color: #55606b;
}
.cc-need-posko-stats .crit b {
  color: #c0392b;
}
.cc-need-posko-bar {
  height: 5px;
  border-radius: 999px;
  background: #eef1f4;
  overflow: hidden;
}
.cc-need-posko-bar i {
  display: block;
  height: 100%;
  background: #2563eb;
}
.cc-need-posko-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.cc-need-btn {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,.35);
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
.cc-need-btn.primary {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.cc-need-btn:hover {
  filter: brightness(.95);
}

/* Popup pin peta: alasan posko kritis dari sinyal turunan backend */
.cc-crit-why {
  margin: 6px 0;
  padding: 6px 8px;
  border-left: 3px solid #ef4444;
  background: rgba(239, 68, 68, 0.08);
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.35;
}
.cc-crit-why ul {
  margin: 4px 0 0;
  padding-left: 16px;
}
.cc-crit-why-hidden {
  color: #6b7280;
  border-left-color: #9ca3af;
  background: rgba(107, 114, 128, 0.08);
}
