/* =========================================================
   DANA SOSIAL ENGINEERING — V7.3.2
   Perbaikan rekonsiliasi dan header, tanpa mengubah tema utama.
========================================================= */

/* Header lebih rapi: menu tetap tersedia pada navigasi bawah/sidebar. */
#mainApp .topbar-left {
  flex: 1 1 auto;
  min-width: 0;
}

#mainApp .topbar-title-card {
  position: relative;
  width: min(100%, 560px);
  min-width: 250px;
  padding: 10px 18px 10px 20px;
  overflow: hidden;
  border: 1px solid rgba(6, 78, 59, .12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 94% 8%, rgba(212, 175, 55, .22), transparent 34%),
    linear-gradient(135deg, rgba(236, 253, 245, .96), rgba(255, 251, 235, .93));
  box-shadow: 0 10px 28px rgba(6, 78, 59, .08);
}

#mainApp .topbar-title-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #047857, #d4af37);
}

#mainApp .topbar-title-card::after {
  content: "";
  position: absolute;
  width: 84px;
  height: 84px;
  right: -38px;
  bottom: -54px;
  border: 1px solid rgba(4, 120, 87, .13);
  border-radius: 50%;
}

#mainApp .topbar-title-card .topbar-kicker {
  color: #477467;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
}

#mainApp .topbar-title-card h1 {
  position: relative;
  z-index: 1;
  margin-top: 3px !important;
  font-size: 1.42rem !important;
  letter-spacing: -.02em;
}

/* Kartu selisih dapat ditekan untuk membuka rincian. */
#mainApp .v73-data-box-action {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

#mainApp .v73-data-box-action:hover,
#mainApp .v73-data-box-action:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(212, 175, 55, .52);
  box-shadow: 0 9px 22px rgba(6, 78, 59, .10);
  outline: none;
}

#mainApp .v73-data-box-action small {
  display: block;
  margin-top: 7px;
  color: #9a771c;
  font-size: 9px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}

#mainApp .v73-recon-action-status {
  min-height: 38px;
  margin: 12px 0 2px;
  padding: 10px 13px;
  border: 1px solid rgba(6, 78, 59, .11);
  border-radius: 12px;
  color: #4e6b60;
  background: linear-gradient(135deg, rgba(236, 253, 245, .78), rgba(255, 251, 235, .76));
  font-size: 10px;
  font-weight: 700;
  line-height: 1.55;
}

#mainApp .v73-recon-action-status.is-working {
  color: #835f00;
  border-color: rgba(212, 175, 55, .25);
}

#mainApp .v73-recon-action-status.is-success {
  color: #087246;
  border-color: rgba(5, 150, 105, .22);
}

#mainApp .v73-recon-action-status.is-error {
  color: #b42318;
  border-color: rgba(220, 38, 38, .20);
  background: #fff4f4;
}

/* Modal rincian rekonsiliasi. */
#v73ReconciliationModal .v73-recon-modal-panel {
  width: min(760px, 100%);
  max-height: min(88svh, 860px);
}

#v73ReconciliationModal .v63-modal-body {
  overflow-y: auto;
}

.v73-recon-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 15px;
}

.v73-recon-summary-item {
  padding: 12px;
  border: 1px solid rgba(6, 78, 59, .10);
  border-radius: 13px;
  background: #fbfdfc;
}

.v73-recon-summary-item span {
  display: block;
  color: #72857d;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.v73-recon-summary-item strong {
  display: block;
  margin-top: 5px;
  color: #173a2d;
  font-size: 14px;
}

.v73-recon-section {
  margin-top: 16px;
}

.v73-recon-section h4 {
  margin: 0 0 8px;
  color: #064e3b;
  font-size: 13px;
}

.v73-recon-row {
  padding: 12px 13px;
  border: 1px solid rgba(6, 78, 59, .10);
  border-radius: 13px;
  background: #fff;
}

.v73-recon-row + .v73-recon-row {
  margin-top: 8px;
}

.v73-recon-row strong,
.v73-recon-row span,
.v73-recon-row small {
  display: block;
}

.v73-recon-row strong {
  color: #173a2d;
  font-size: 11px;
}

.v73-recon-row span {
  margin-top: 4px;
  color: #61786f;
  font-size: 10px;
}

.v73-recon-row small {
  margin-top: 5px;
  color: #8a7b49;
  font-size: 9px;
  line-height: 1.5;
}

@media (max-width: 860px) {
  #mainApp .topbar {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  #mainApp .topbar-left {
    width: 100%;
    flex-basis: 100%;
    justify-content: center;
  }

  #mainApp .topbar-title-card {
    width: 100%;
    min-width: 0;
    text-align: center;
    padding: 10px 20px 11px;
  }

  #mainApp .topbar-title-card::before {
    inset: auto 14% 0;
    width: 72%;
    height: 3px;
  }

  #mainApp .topbar-right {
    justify-content: center;
  }
}

@media (max-width: 540px) {
  #mainApp .topbar-title-card .topbar-kicker {
    font-size: .58rem;
  }

  #mainApp .topbar-title-card h1 {
    font-size: 1.25rem !important;
  }

  .v73-recon-summary {
    grid-template-columns: 1fr;
  }
}
