/* Leader Report Component Styles */

/* ── Hero ────────────────────────────────────────────────────────── */
.heroSection {
  padding: 32px 0 24px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb a:hover {
  color: #1e3d34;
}

.breadcrumbCurrent {
  color: #1e293b;
  font-weight: 500;
}

.breadcrumbSep {
  color: #cbd5e1;
  font-size: 11px;
}

.heroLayout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.heroLeft {
  flex: 1;
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #269436;
  margin-bottom: 12px;
}

.eyebrowDash {
  display: inline-block;
  width: 20px;
  height: 2px;
  background-color: #269436;
  border-radius: 1px;
}

.heroHeading {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 800;
  color: #17232f;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.heroHeadingHighlight {
  color: #269436;
}

.heroDesc {
  font-size: 15px;
  line-height: 1.6;
  color: #52616b;
  margin: 0;
  max-width: 520px;
}

.heroRight {
  flex-shrink: 0;
  position: relative;
  width: 380px;
  height: 180px;
}

.heroArtwork {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.handwrittenTag {
  position: absolute;
  top: 10px;
  left: 20px;
  font-family: var(--font-playfair, Georgia, serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.25;
  color: #2d5a4c;
  transform: rotate(-7deg);
  pointer-events: none;
  font-weight: 600;
}

/* ── Main Form Card ──────────────────────────────────────────────── */
.mainCard {
  background: #ffffff;
  border: 1px solid #e5e9e6;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(20, 40, 30, 0.035);
  margin-bottom: 24px;
}

.cardHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.cardHeaderTitleGroup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cardHeaderIconBox {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eef8ef;
  color: #269436;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cardHeaderTitle {
  font-size: 26px;
  font-weight: 800;
  color: #17232f;
  margin: 0 0 4px;
}

.cardHeaderSubtitle {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.cardHeaderSubtitle strong {
  color: #1e293b;
  font-weight: 600;
}

.statusBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.statusPending {
  background: #fff5dd;
  color: #b76a00;
  border: 1px solid rgba(183, 106, 0, 0.15);
}

.statusSubmitted {
  background: #eef8ef;
  color: #269436;
  border: 1px solid rgba(38, 148, 54, 0.2);
}

.statusRevision {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.tripSummaryLine {
  font-size: 14px;
  color: #64748b;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid #f1f5f2;
  font-weight: 500;
}

/* ── Section Styles ──────────────────────────────────────────────── */
.formSection {
  margin-bottom: 28px;
}

.sectionHeading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #17232f;
  margin: 0 0 16px;
}

.sectionIcon {
  color: #269436;
}

/* ── Grouped Card (Pemasukan / Pengeluaran) ───────────────────────── */
.groupCard {
  background: #fbfdfb;
  border: 1px solid #eaf0eb;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 24px;
}

.groupCardHeading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: #17232f;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e9e6;
}

.subSection {
  margin-bottom: 24px;
}

.subSection:last-child {
  margin-bottom: 0;
}

.subHeading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
}

.subTotalRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 12px 16px;
  background: #eef8ef;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #1e3d34;
}

.subTotalRow strong {
  font-size: 14px;
  font-weight: 800;
  color: #17232f;
}

.twoColumnGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.formGroup {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.formLabel {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.formInput {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #dcdfe4;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.formInput:focus {
  border-color: #269436;
  box-shadow: 0 0 0 3px rgba(38, 148, 54, 0.12);
}

.formTextarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #dcdfe4;
  border-radius: 10px;
  outline: none;
  min-height: 120px;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.formTextarea:focus {
  border-color: #269436;
  box-shadow: 0 0 0 3px rgba(38, 148, 54, 0.12);
}

.charCount {
  display: block;
  text-align: right;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 6px;
}

/* ── Dashed Action Area ──────────────────────────────────────────── */
.dashedActionArea {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1px dashed rgba(38, 148, 54, 0.4);
  background: #fbfdfb;
  border-radius: 14px;
  padding: 20px 16px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  border-style: dashed;
}

.dashedActionArea:hover {
  background: #f4faf4;
  border-color: #269436;
}

.dashedActionBtnText {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #269436;
  margin-bottom: 4px;
}

.dashedActionHelper {
  font-size: 12px;
  color: #64748b;
}

/* ── Dynamic Entry Row ───────────────────────────────────────────── */
.dynamicList {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.dynamicRow {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  background: #fbfdfb;
  border: 1px solid #eaf0eb;
  padding: 14px 16px;
  border-radius: 12px;
}

.removeRowBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #fecaca;
  background: #ffffff;
  color: #ef4444;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.removeRowBtn:hover {
  background: #fef2f2;
  border-color: #dc2626;
  color: #dc2626;
}

/* ── Financial Summary Inside Form ───────────────────────────────── */
.formTotals {
  background: #fbfdfb;
  border: 1px solid #eef2ef;
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.formTotalRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  color: #475569;
}

.formTotalNet {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px dashed #dbe3dc;
  font-size: 15px;
  font-weight: 700;
  color: #17232f;
}

.formBalancePill {
  background: #eef8ef;
  color: #269436;
  padding: 4px 12px;
  border-radius: 8px;
  font-weight: 700;
}

.formBalancePillNegative {
  background: #fef2f2;
  color: #dc2626;
  padding: 4px 12px;
  border-radius: 8px;
  font-weight: 700;
}

/* ── Action Buttons ──────────────────────────────────────────────── */
.actionsBar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.btnDraft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  background: #ffffff;
  border: 1px solid #dcdfe4;
  border-radius: 10px;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btnDraft:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.btnSubmit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  background: #269436;
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btnSubmit:hover:not(:disabled) {
  background: #1f7f2e;
}

.btnSubmit:disabled,
.btnDraft:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Alerts & Banners ────────────────────────────────────────────── */
.banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.bannerSuccess {
  background: #eef8ef;
  color: #1e3d34;
  border: 1px solid rgba(38, 148, 54, 0.2);
}

.bannerError {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.bannerConfirm {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ── Sidebar Cards ───────────────────────────────────────────────── */
.sidebarContainer {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stickySidebar {
  position: sticky;
  top: 100px;
}

.sidebarCard {
  background: #ffffff;
  border: 1px solid #e5e9e6;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 4px 18px rgba(20, 40, 30, 0.035);
}

.sidebarCardTitle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #17232f;
  margin: 0 0 16px;
}

.sidebarCardIcon {
  color: #269436;
}

.tripThumbnailWrapper {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin-bottom: 14px;
  background: #f1f5f2;
}

.tripThumbnailImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tripMainTitle {
  font-size: 17px;
  font-weight: 700;
  color: #17232f;
  margin: 0 0 2px;
}

.tripRouteSubtitle {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 14px;
}

.tripMetaList {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid #f1f5f2;
  padding-top: 14px;
}

.tripMetaItem {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #475569;
}

.tripMetaIcon {
  color: #269436;
  flex-shrink: 0;
}

.tripMetaBold {
  font-weight: 700;
  color: #0f172a;
}

/* ── Financial Sidebar Card ──────────────────────────────────────── */
.financeRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  color: #475569;
}

.financeRowValue {
  font-weight: 600;
  color: #0f172a;
}

.balanceRow {
  margin-top: 8px;
  padding: 10px 14px;
  background: #eef8ef;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #15803d;
}

.balanceRowNegative {
  margin-top: 8px;
  padding: 10px 14px;
  background: #fef2f2;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #dc2626;
}

/* ── Support Card ────────────────────────────────────────────────── */
.supportCard {
  background: #ffffff;
  border: 1px solid #e5e9e6;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 4px 18px rgba(20, 40, 30, 0.035);
}

.supportHeader {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #17232f;
  margin-bottom: 8px;
}

.supportIcon {
  color: #269436;
}

.supportDesc {
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  margin: 0 0 16px;
}

.whatsappBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  background: #ffffff;
  border: 1px solid #269436;
  border-radius: 10px;
  color: #269436;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.whatsappBtn:hover {
  background: #f4faf4;
}

/* ── Trust Strip ─────────────────────────────────────────────────── */
.trustStrip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 32px 0 48px;
}

.trustItem {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.trustIconBox {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eef8ef;
  color: #269436;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Read-only Submitted State ───────────────────────────────────── */
.successCard {
  background: #ffffff;
  border: 1px solid #e5e9e6;
  border-radius: 18px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(20, 40, 30, 0.035);
  margin-bottom: 24px;
}

.successIconLarge {
  color: #269436;
  margin-bottom: 16px;
}

.successHeading {
  font-size: 22px;
  font-weight: 800;
  color: #17232f;
  margin: 0 0 8px;
}

.successSubtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 20px;
}

/* ── Responsive Media Queries ────────────────────────────────────── */
@media (max-width: 1024px) {
  .heroLayout {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .heroRight {
    width: 100%;
    max-width: 380px;
    height: 160px;
  }
  .stickySidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .heroHeading {
    font-size: 32px;
  }
  .handwrittenTag {
    display: none;
  }
  .twoColumnGrid {
    grid-template-columns: 1fr;
  }
  .dynamicRow {
    flex-direction: column;
    align-items: stretch;
  }
  .removeRowBtn {
    align-self: flex-end;
  }
  .actionsBar {
    flex-direction: column;
    width: 100%;
  }
  .btnDraft,
  .btnSubmit {
    width: 100%;
  }
  .trustStrip {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
