/* ============================================================
 *  SitRoom Logbook — selaras dashboard utama / pertanyaan / lari
 * ============================================================ */

.lb-kpi {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.lb-insight {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 20px;
}
.lb-insight__card {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 1px 2px rgba(13, 19, 38, 0.04);
  position: relative;
  overflow: hidden;
}
.lb-insight__card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #1c3c7a, #c39a3c);
}
.lb-insight__kicker {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
}
.lb-insight__value {
  font-family: Fraunces, Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: #0b1330;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.lb-insight__sub {
  margin-top: 6px;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.35;
}
.lb-insight__bar {
  margin-top: 12px;
  height: 6px;
  border-radius: 99px;
  background: #eef2f7;
  overflow: hidden;
}
.lb-insight__bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #1c3c7a, #3a5aa0);
  transition: width 0.35s ease;
}
.lb-insight__bar--gold span {
  background: linear-gradient(90deg, #b38a2b, #e3c16f);
}

.lb-chart-block { margin-bottom: 18px; }

.lb-feed-head {
  margin: 4px 0 14px;
}
.lb-feed-head__title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 750;
  color: #0b1330;
}
.lb-feed-head__lead {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.lb-status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lb-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}
.lb-flag--sakit { background: #fef2f2; color: #b91c1c; }
.lb-flag--fit { background: #fffbeb; color: #a16207; }
.lb-flag--unfit { background: #fff7ed; color: #c2410c; }
.lb-flag--evak { background: #fef2f2; color: #991b1b; font-weight: 800; }
.lb-flag--kendala { background: #fff7ed; color: #c2410c; }
.lb-flag--late { background: #fffbeb; color: #a16207; }
.lb-flag--ok { background: #ecfdf5; color: #047857; }

.lb-badge--terkirim { background: #fff4df; color: #9a6b12; }
.lb-badge--divalidasi { background: #e6f6ef; color: #0f766e; }
.lb-badge--ditolak { background: #fef2f2; color: #b91c1c; }
.lb-badge--tidak_valid { background: #f3e8ff; color: #6b21a8; }

.lb-accept__hint {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}

.lb-card__flags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.lb-card__preview {
  margin: 0;
  padding: 12px 14px;
  font-size: 13.5px;
  color: #1e293b;
  line-height: 1.5;
  background: #f7f9fc;
  border-radius: 10px;
  border: 1px solid #eef2f7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lb-card__ketua {
  margin-top: 6px;
  font-size: 12.5px;
  color: #334155;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(195, 154, 60, 0.12);
  border: 1px solid rgba(195, 154, 60, 0.28);
}
.lb-card__ketua strong {
  color: #0b1330;
  font-weight: 700;
}

.lb-accept {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e8edf5;
  text-align: left;
}
.lb-accept__title {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c39a3c;
  margin-bottom: 10px;
}
.lb-accept .field__label {
  display: block;
  font-size: 12.5px;
  font-weight: 650;
  margin-bottom: 6px;
  color: #0d1326;
}
.lb-accept .input {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d5dde9;
  font: inherit;
  font-size: 14px;
}
.lb-accept textarea.input {
  min-height: 72px;
  resize: vertical;
}

.lb-dialog__actions {
  flex-wrap: wrap;
  gap: 8px;
}
.lb-btn-reject {
  color: #b91c1c !important;
  border-color: #fecaca !important;
}

body.is-viewer .editor-only {
  display: none !important;
}

.lb-pre {
  white-space: pre-wrap;
  font-size: 13.5px;
  line-height: 1.5;
  color: #0f172a;
  background: #f7f9fc;
  border-radius: 10px;
  border: 1px solid #eef2f7;
  padding: 12px 14px;
  margin: 0 0 4px;
}

.lb-sakit-list {
  margin: 8px 0 12px;
  padding: 0;
  list-style: none;
}
.lb-sakit-list li {
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: #fff8f5;
  border: 1px solid #f0d5c8;
  font-size: 13px;
  line-height: 1.45;
  color: #0d1326;
}
.lb-sakit-list small {
  display: block;
  margin-top: 4px;
  color: #64748b;
}

@media (max-width: 1200px) {
  .lb-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .lb-insight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .lb-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-row--2 { grid-template-columns: 1fr !important; }
}

@media (max-width: 640px) {
  .lb-kpi { grid-template-columns: 1fr 1fr !important; }
  .lb-insight { grid-template-columns: 1fr; }
  .lb-status-grid { grid-template-columns: 1fr; }
  .lb-insight__value { font-size: 1.65rem; }
}

/* —— Status strip, map, missing, WA —— */
.lb-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.lb-strip__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}
.lb-strip__chip--green { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.lb-strip__chip--yellow { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.lb-strip__chip--red { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.lb-strip__chip.is-blink { animation: lb-blink 1s ease-in-out infinite; }
.lb-strip__icon { font-weight: 800; }

@keyframes lb-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.35); }
  50% { opacity: 0.72; box-shadow: 0 0 0 6px rgba(185, 28, 28, 0); }
}

/* —— Clean WebGIS —— */
.lb-map-card {
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: 18px;
  overflow: hidden;
  margin: 0 0 20px;
  box-shadow: 0 1px 2px rgba(13, 19, 38, 0.04);
}
.lb-map-card__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #eef2f7;
  background: linear-gradient(180deg, #fbfcfe 0%, #fff 100%);
}
.lb-map-card__intro {
  min-width: 0;
  flex: 1 1 auto;
}
.lb-map-card__tools {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.lb-map-card__kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a94a6;
}
.lb-map-card__title {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #0b1330;
}
.lb-map-card__sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
  max-width: 46ch;
}
.lb-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: #5b6577;
}
.lb-map-legend__i {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.lb-swatch {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
}
.lb-swatch--ok { background: #0f766e; }
.lb-swatch--late { background: #c4820f; }
.lb-swatch--alert { background: #c2410c; animation: lb-blink 1.1s ease-in-out infinite; }
.lb-swatch--overdue { background: #6d28d9; animation: lb-blink 1.1s ease-in-out infinite; }
.lb-swatch--miss {
  background: #fff;
  box-shadow: inset 0 0 0 2px #94a3b8;
}

.lb-map-shell {
  position: relative;
  background: #dfe7f1;
}
.lb-map {
  height: min(62vh, 520px);
  min-height: 360px;
  width: 100%;
}
.lb-map .leaflet-control-zoom a {
  border: none !important;
  color: #122B5C !important;
  width: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
  border-radius: 10px !important;
  margin-bottom: 6px;
  box-shadow: 0 4px 14px rgba(13, 19, 38, 0.12);
}
.lb-map .leaflet-control-attribution {
  background: rgba(255,255,255,0.78) !important;
  color: #94a3b8;
  font-size: 10px;
  border-radius: 8px 0 0 0;
  padding: 2px 8px;
}

.lb-map-float-legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 450;
  max-width: min(320px, calc(100% - 24px));
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(18, 43, 92, 0.1);
  box-shadow: 0 10px 28px rgba(13, 19, 38, 0.14);
  backdrop-filter: blur(10px);
  pointer-events: none;
}
.lb-map-float-legend__title {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a94a6;
}
.lb-map-float-legend .lb-map-legend {
  gap: 7px 10px;
  margin-bottom: 8px;
}
.lb-map-keys--in-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid #eef2f7;
  font-size: 11px;
  color: #64748b;
}
.lb-map-keys--in-legend .lb-key {
  margin-right: 2px;
}

/* Fullscreen map card */
.lb-map-card:fullscreen,
.lb-map-card:-webkit-full-screen,
.lb-map-card.is-fs-fallback {
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.lb-map-card:fullscreen .lb-map-shell,
.lb-map-card:-webkit-full-screen .lb-map-shell,
.lb-map-card.is-fs-fallback .lb-map-shell {
  flex: 1 1 auto;
  min-height: 0;
}
.lb-map-card:fullscreen .lb-map,
.lb-map-card:-webkit-full-screen .lb-map,
.lb-map-card.is-fs-fallback .lb-map {
  height: 100%;
  min-height: 0;
}
.lb-map-card.is-fs-fallback {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.lb-map-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
  pointer-events: none;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.72), rgba(223,231,241,0.35));
  color: #475569;
  padding: 24px;
}
.lb-map-empty strong {
  font-size: 15px;
  color: #0b1330;
}
.lb-map-empty span {
  font-size: 13px;
  max-width: 36ch;
}

.lb-map-chipbar {
  position: absolute;
  left: 14px;
  top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 500;
  pointer-events: none;
}
.lb-map-chipbar span {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(18, 43, 92, 0.08);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 650;
  color: #334155;
  box-shadow: 0 4px 14px rgba(13, 19, 38, 0.08);
}
.lb-map-chipbar .is-alert {
  color: #c2410c;
  border-color: rgba(194, 65, 12, 0.2);
}

.lb-map-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  padding: 12px 20px 16px;
  border-top: 1px solid #eef2f7;
  font-size: 12px;
  color: #64748b;
}
.lb-key {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  margin-right: 4px;
  vertical-align: middle;
  color: #fff;
}
.lb-key--h { background: #0f766e; }
.lb-key--s { background: #1c3c7a; }
.lb-key--r { background: #c4820f; }

.lb-pin-wrap {
  background: transparent !important;
  border: none !important;
}
.lb-pin {
  position: relative;
  width: 44px;
  height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 6px 10px rgba(13, 19, 38, 0.22));
}
.lb-pin__orb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  border: 2.5px solid rgba(255,255,255,0.95);
  position: relative;
  z-index: 2;
}
.lb-pin--ok .lb-pin__orb { background: linear-gradient(145deg, #14958c, #0f766e); }
.lb-pin--late .lb-pin__orb { background: linear-gradient(145deg, #e0a12a, #c4820f); }
.lb-pin--alert .lb-pin__orb { background: linear-gradient(145deg, #e05a2b, #c2410c); }
.lb-pin--overdue .lb-pin__orb { background: linear-gradient(145deg, #8b5cf6, #6d28d9); }
.lb-pin.is-blink .lb-pin__orb { animation: lb-blink 1.1s ease-in-out infinite; }

.lb-pin__dots {
  display: flex;
  gap: 3px;
  margin-top: -2px;
  position: relative;
  z-index: 3;
}
.lb-pin__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.lb-pin__dot--ok { background: #0f766e; }
.lb-pin__dot--late { background: #c4820f; }
.lb-pin__dot--alert { background: #c2410c; }
.lb-pin__dot.is-blink { animation: lb-blink 1s ease-in-out infinite; }

.lb-pin__stem {
  width: 2px;
  height: 10px;
  margin-top: 1px;
  border-radius: 2px;
  background: rgba(15, 23, 42, 0.35);
}

.lb-pop-wrap .leaflet-popup-content-wrapper {
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(13, 19, 38, 0.16);
  border: 1px solid rgba(18, 43, 92, 0.08);
  padding: 0;
}
.lb-pop-wrap .leaflet-popup-content {
  margin: 0;
  min-width: 220px;
}
.lb-pop-wrap .leaflet-popup-tip {
  box-shadow: none;
}
.lb-pop {
  padding: 12px 14px 13px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}
.lb-pop__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.lb-pop__tone {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}
.lb-pop__tone--ok { background: #ecfdf5; color: #0f766e; }
.lb-pop__tone--late { background: #fff7ed; color: #c4820f; }
.lb-pop__tone--alert { background: #fff1f2; color: #c2410c; }
.lb-pop__tone--overdue { background: #f5f3ff; color: #6d28d9; }
.lb-pop__contacts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 6px 0 8px;
}
.lb-pop__wa {
  font-size: 12px;
  font-weight: 650;
  color: #0f766e;
  text-decoration: none;
}
.lb-pop__wa:hover { text-decoration: underline; }

.lb-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.lb-contact__num {
  font-size: 13px;
  font-weight: 650;
  color: #0d1326;
}
.lb-contact__btns,
.lb-contact--compact {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.lb-contact__btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}
.lb-contact__btn--wa {
  color: #0f766e !important;
  border-color: rgba(15, 118, 110, 0.35) !important;
  background: #ecfdf5 !important;
}
.lb-contact__btn--wa:hover {
  background: #d1fae5 !important;
}
.lb-contact__btn--tel {
  color: #1c3c7a !important;
  border-color: rgba(28, 60, 122, 0.3) !important;
  background: #eff4ff !important;
}
.lb-contact__btn--tel:hover {
  background: #dbe6ff !important;
}
.lb-card__contact {
  margin-top: 8px;
  min-height: 32px;
}
.lb-card__wa-num {
  font-weight: 700;
  color: #0f766e;
  letter-spacing: 0.01em;
}
.tq-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.lb-pop__geo {
  font-size: 11px;
  color: #94a3b8;
}
.lb-pop__title {
  font-weight: 800;
  color: #0b1330;
  font-size: 15px;
}
.lb-pop__meta {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.35;
  margin-top: 2px;
}
.lb-pop__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.lb-pop__stats span {
  font-size: 11.5px;
  font-weight: 650;
  color: #334155;
  background: #f5f7fb;
  border-radius: 8px;
  padding: 4px 7px;
}
.lb-pop__date {
  margin-top: 10px;
  font-size: 11px;
  color: #94a3b8;
}
.lb-pop__btn {
  margin-top: 10px;
  width: 100%;
}

.lb-detail-map-wrap {
  margin: 4px 0 16px;
  display: grid;
  gap: 8px;
}
.lb-detail-map {
  height: 240px;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(18, 43, 92, 0.1);
  background: #dfe7f1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.lb-detail-map .leaflet-control-zoom a {
  border: none !important;
  color: #122B5C !important;
  width: 28px !important;
  height: 28px !important;
  line-height: 28px !important;
  border-radius: 8px !important;
}
.lb-detail-map__note {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}
.lb-detail-map__empty {
  margin: 0;
  padding: 16px;
  border-radius: 14px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}
.lb-detail-map__focus {
  justify-self: start;
}

.lb-missing { margin-bottom: 18px; }
.lb-missing__list {
  display: grid;
  gap: 8px;
  padding: 12px 16px 16px;
  max-height: 360px;
  overflow: auto;
}
.lb-missing__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e8edf5;
  border-radius: 12px;
  background: #fff;
}
.lb-missing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  flex: none;
}
.lb-missing__empty {
  color: #64748b;
  font-size: 13.5px;
  padding: 8px 0;
}
.lb-missing__gap {
  margin-top: 2px;
  color: #b45309 !important;
  font-weight: 650;
}

.lb-wa-actions__label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 6px;
}
.lb-wa-actions__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lb-wa-actions__miss {
  font-size: 12.5px;
  color: #94a3b8;
}

.lb-flag--saran {
  background: #eff6ff;
  color: #1d4ed8;
}
.lb-flag--darurat {
  background: #fef2f2;
  color: #991b1b;
  font-weight: 800;
}
.lb-flag--darurat-ok {
  background: #ecfdf5;
  color: #047857;
}

.lb-exec {
  margin-bottom: 20px;
}
.lb-exec__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.lb-exec__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}
.lb-exec__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.lb-exec__field .select {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
  font-size: 13px;
  color: #0d1326;
}
.lb-exec__field.is-dim {
  opacity: 0.55;
}
.lb-exec__field.is-dim .select {
  cursor: not-allowed;
}
.lb-exec__hint {
  margin: 0;
  padding: 4px 4px 8px;
  font-size: 13px;
  color: #64748b;
}
.lb-exec__body {
  padding: 4px 2px 8px;
}
.lb-exec__prose {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: #0d1326;
}
.lb-exec__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.lb-exec__grid > div {
  background: #f8fafc;
  border: 1px solid #e8edf5;
  border-radius: 12px;
  padding: 10px 12px;
}
.lb-exec__grid span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}
.lb-exec__grid strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  color: #0b1330;
  font-variant-numeric: tabular-nums;
}
.lb-exec__alerts-title {
  font-size: 12px;
  font-weight: 750;
  color: #64748b;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lb-exec__alerts ul {
  margin: 0;
  padding-left: 1.15em;
  font-size: 13.5px;
  line-height: 1.45;
  color: #0d1326;
}
.lb-exec__quiet {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.lb-ai {
  margin-top: 18px;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(28, 60, 122, 0.12);
  background:
    linear-gradient(165deg, rgba(28, 60, 122, 0.05) 0%, #fff 36%, #fff 100%);
  box-shadow: 0 10px 28px rgba(13, 19, 38, 0.06);
  overflow: hidden;
}
.lb-ai--loading,
.lb-ai--error {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #e8edf5;
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
}
.lb-ai--error {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fff7f7;
}
.lb-ai__spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #dbe3f0;
  border-top-color: #1c3c7a;
  animation: lb-ai-spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes lb-ai-spin {
  to { transform: rotate(360deg); }
}
.lb-ai__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px 10px;
}
.lb-ai__brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.lb-ai__badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(145deg, #1c3c7a 0%, #2f528f 100%);
  box-shadow: 0 6px 14px rgba(28, 60, 122, 0.22);
}
.lb-ai__kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a94a6;
}
.lb-ai__title {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.18rem;
  font-weight: 600;
  color: #0b1330;
  line-height: 1.3;
}
.lb-ai__doc {
  margin: 0 14px;
  padding: 16px 16px 14px;
  border-radius: 14px;
  border: 1px solid #e8edf5;
  background: #f8fafc;
  max-height: min(56vh, 520px);
  overflow: auto;
}
.lb-ai__lede {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
}
.lb-ai__sec + .lb-ai__sec {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}
.lb-ai__sec-title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #1c3c7a;
}
.lb-ai__list {
  margin: 0;
  padding-left: 1.15em;
  font-size: 13.5px;
  line-height: 1.5;
  color: #0f172a;
}
.lb-ai__list li + li {
  margin-top: 6px;
}
.lb-ai__muted {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}
.lb-ai__link {
  color: #1c3c7a;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}
.lb-ai__empty {
  margin: 0;
  color: #64748b;
}
.lb-ai__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px 6px;
}
.lb-ai__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.lb-ai__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.lb-ai__btn:not(:disabled):hover {
  transform: translateY(-1px);
}
.lb-ai__btn:not(:disabled):active {
  transform: translateY(0);
}
.lb-ai__btn--wa {
  color: #fff;
  background: linear-gradient(145deg, #25d366 0%, #128c7e 100%);
  box-shadow: 0 8px 18px rgba(18, 140, 126, 0.28);
}
.lb-ai__btn--wa:not(:disabled):hover {
  box-shadow: 0 10px 22px rgba(18, 140, 126, 0.36);
}
.lb-ai__btn--copy {
  color: #0b1330;
  background: #fff;
  border: 1px solid #d7dee9;
  box-shadow: 0 1px 2px rgba(13, 19, 38, 0.04);
}
.lb-ai__btn--copy:not(:disabled):hover {
  border-color: #b8c4d6;
  background: #f8fafc;
}
.lb-ai__btn--copy.is-done {
  color: #0f766e;
  border-color: #99f6e4;
  background: #f0fdfa;
}
.lb-ai__hint {
  margin: 0;
  padding: 4px 18px 16px;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}
.lb-ai__hint strong {
  color: #475569;
}

@media (max-width: 720px) {
  .lb-ai__head { flex-direction: column; }
  .lb-ai__actions { flex-direction: column; }
  .lb-ai__btn { width: 100%; }
}

.lb-darurat {
  margin-top: 16px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid #fecaca;
  background: linear-gradient(180deg, #fff7f7 0%, #fff 70%);
}
.lb-darurat__title {
  font-size: 14px;
  font-weight: 800;
  color: #991b1b;
  margin-bottom: 4px;
}
.lb-darurat__lead {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: #7f1d1d;
  line-height: 1.4;
}
.lb-darurat__kontak {
  margin-bottom: 12px;
}
.lb-darurat__kontak-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #fecaca;
  font-size: 13px;
  color: #0d1326;
}
.lb-darurat__kontak-card strong { font-size: 13.5px; }
.lb-darurat__kontak-card span { color: #64748b; font-size: 12.5px; }
.lb-darurat__actions {
  margin-top: 12px;
}

.lb-darurat-ai {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #fecaca;
  background: #fff;
}
.lb-darurat-ai__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.lb-darurat-ai__title {
  font-size: 13px;
  font-weight: 800;
  color: #7f1d1d;
}
.lb-darurat-ai__lead {
  margin: 2px 0 0;
  font-size: 12px;
  color: #9a3412;
  line-height: 1.35;
}
.lb-darurat-ai__body {
  margin-top: 12px;
}
.lb-darurat-ai__preview {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-size: 13.5px;
  line-height: 1.55;
  color: #1c1917;
  white-space: normal;
}
.lb-darurat-ai__meta {
  margin: 8px 0 0;
  font-size: 11.5px;
  color: #78716c;
}
.lb-darurat-ai__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}
.lb-darurat-ai__loading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #9a3412;
  padding: 8px 0;
}
.lb-darurat-ai__error {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 13px;
}
@media (max-width: 720px) {
  .lb-darurat-ai__head { flex-direction: column; }
  .lb-darurat-ai__actions .btn { width: 100%; }
}

@media (max-width: 900px) {
  .lb-exec__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .lb-map { height: 320px; min-height: 280px; }
  .lb-map-card__head { flex-direction: column; }
  .lb-map-legend { justify-content: flex-start; }
}

/* ============================================================
   Detail laporan popup — full-viewport safe, sticky chrome
   ============================================================ */

.lb-detail-dialog {
  border: none;
  border-radius: 18px;
  padding: 0;
  width: min(720px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: min(92dvh, 920px);
  height: auto;
  margin: auto;
  background: #fff;
  color: #0d1326;
  box-shadow: 0 28px 80px -20px rgba(11, 19, 48, 0.5);
  overflow: hidden;
}

.lb-detail-dialog::backdrop {
  background: rgba(8, 14, 32, 0.58);
  backdrop-filter: blur(5px);
}

.lb-detail-dialog__form {
  display: flex;
  flex-direction: column;
  max-height: min(92dvh, 920px);
  min-height: 0;
  height: min(92dvh, 920px);
  overflow: hidden;
}

.lb-detail-dialog__head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #eef2f7;
  background: linear-gradient(180deg, #fbfcfe 0%, #fff 100%);
}

.lb-detail-dialog__kicker {
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a94a6;
}

.lb-detail-dialog__title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: #0b1330;
  line-height: 1.25;
}

.lb-detail-dialog__x {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, border-color 0.15s;
}
.lb-detail-dialog__x:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.lb-detail-dialog .lb-status-strip {
  flex: 0 0 auto;
  margin: 0;
  padding: 10px 18px 12px;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  max-height: none;
  overflow: visible;
}

.lb-detail-dialog__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 14px 18px 20px;
  scroll-padding-bottom: 24px;
}

.lb-detail-dialog__body {
  text-align: left;
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
}

.lb-detail-dialog__foot {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #eef2f7;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 -8px 24px rgba(11, 19, 48, 0.06);
}

.lb-detail-dialog__foot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-left: auto;
}

.lb-detail-dialog__foot .btn {
  min-height: 42px;
  padding: 0 14px;
  white-space: nowrap;
}

/* Content blocks inside detail body */
.lb-detail-block {
  margin: 0 0 16px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid #e8edf5;
  background: #fff;
  box-shadow: 0 1px 2px rgba(13, 19, 38, 0.03);
}

.lb-detail-block__title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c39a3c;
}

.lb-detail-fields {
  display: grid;
  gap: 0;
}

.lb-detail-row {
  display: grid;
  grid-template-columns: minmax(100px, 34%) 1fr;
  gap: 8px 14px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  align-items: start;
}
.lb-detail-row:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}
.lb-detail-row__label {
  font-size: 12px;
  font-weight: 650;
  color: #64748b;
  line-height: 1.4;
  padding-top: 2px;
}
.lb-detail-row__value {
  font-size: 14px;
  font-weight: 650;
  color: #0f172a;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.lb-detail-row__value .tq-badge,
.lb-detail-row__value .lb-flag {
  vertical-align: middle;
}
.lb-detail-row__flags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.lb-detail-prose {
  white-space: pre-wrap;
  font-size: 13.5px;
  line-height: 1.55;
  color: #0f172a;
  background: #f7f9fc;
  border-radius: 10px;
  border: 1px solid #eef2f7;
  padding: 12px 14px;
  margin: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.lb-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lb-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid #dbe3f0;
  background: #f8fafc;
  color: #0b4f8a;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  max-width: 100%;
}
.lb-detail-link:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.lb-detail-link--muted {
  color: #64748b;
  font-weight: 600;
  cursor: default;
}

.lb-detail-dialog .lb-accept,
.lb-detail-dialog .lb-darurat {
  margin-top: 4px;
  margin-bottom: 8px;
}

.lb-detail-dialog .lb-detail-map {
  height: min(220px, 36vw);
  min-height: 180px;
}

.lb-detail-dialog .select,
.lb-detail-dialog .lb-accept .input,
.lb-detail-dialog .lb-darurat .input,
.lb-detail-dialog .lb-darurat .select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .lb-detail-dialog {
    width: 100vw;
    max-width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    margin: 0;
  }

  .lb-detail-dialog__form {
    max-height: 100dvh;
    height: 100dvh;
  }

  .lb-detail-dialog__head {
    padding: 12px 14px 10px;
  }

  .lb-detail-dialog .lb-status-strip {
    padding: 8px 14px 10px;
    gap: 6px;
  }

  .lb-detail-dialog__scroll {
    padding: 12px 14px 18px;
  }

  .lb-detail-dialog__foot {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .lb-detail-dialog__foot > .btn {
    order: 2;
    width: 100%;
  }

  .lb-detail-dialog__foot-actions {
    order: 1;
    margin-left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .lb-detail-dialog__foot-actions .btn {
    width: 100%;
  }

  .lb-detail-dialog__foot-actions .btn--primary {
    grid-column: 1 / -1;
  }

  .lb-detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 11px 0;
  }

  .lb-detail-block {
    padding: 12px;
    border-radius: 12px;
  }

  .lb-detail-dialog .lb-detail-map {
    height: 200px;
    min-height: 180px;
  }

  .lb-strip__chip {
    font-size: 11px;
    padding: 5px 9px;
  }
}

@media (min-width: 900px) {
  .lb-detail-dialog {
    width: min(780px, calc(100vw - 40px));
  }
}
