/**
 * Layout & alur halaman operasional — ramah pengguna awam.
 * Pola: intro, progress langkah, kartu langkah, toolbar.
 */

.oper-page {
  max-width: 980px;
  margin: 0 auto;
  padding-bottom: 1.5rem;
}

.oper-page--wide {
  max-width: none;
}

.oper-page .topbar {
  display: none;
}

/* — Intro — */
.oper-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-bottom: 1.35rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border, #e5ddd2);
  border-radius: 18px;
  background: linear-gradient(135deg, #fffdf9 0%, #f8f4ec 55%, #f3ede3 100%);
  box-shadow: 0 1px 3px rgba(46, 42, 38, 0.05);
}

.oper-intro--center {
  text-align: center;
  justify-content: center;
}

.oper-intro--center .oper-intro__main {
  max-width: 36rem;
  margin: 0 auto;
}

.oper-intro--center .oper-intro__actions {
  width: 100%;
  justify-content: center;
}

.oper-intro__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8f6f38;
}

.oper-intro__title {
  margin: 0;
  font-size: clamp(1.25rem, 3.5vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #2e2a26;
  line-height: 1.25;
}

.oper-intro__lead {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #5c5650;
  max-width: 42rem;
}

.oper-intro__meta {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
  color: #7b736b;
}

.oper-intro__context {
  margin-bottom: 0.5rem;
}

.oper-intro__context-kicker {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8f6f38;
}

.oper-intro__context-name {
  display: block;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #5b21b6;
}

.oper-intro--compact {
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}

.oper-intro--compact .oper-intro__title {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 650;
}

.oper-intro--compact .oper-intro__lead,
.oper-intro--no-lead .oper-intro__lead {
  display: none;
}

.oper-filter-hint {
  display: none;
}

.oper-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

/* — Progress langkah — */
.oper-progress {
  margin-bottom: 1.25rem;
  padding: 0 0.15rem;
}

.oper-progress__list {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.oper-progress__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  position: relative;
  min-width: 0;
}

.oper-progress__item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 1rem;
  left: calc(50% + 1.1rem);
  right: calc(-50% + 1.1rem);
  height: 2px;
  background: #e5ddd2;
  z-index: 0;
}

.oper-progress__item--done:not(:last-child)::after {
  background: #c89b4b;
}

.oper-progress__bubble {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  border: 2px solid #e5ddd2;
  background: #fff;
  color: #9a9288;
}

.oper-progress__item--done .oper-progress__bubble {
  border-color: #c89b4b;
  background: #c89b4b;
  color: #fff;
}

.oper-progress__item--current .oper-progress__bubble {
  border-color: #8f6f38;
  background: #fff;
  color: #8f6f38;
  box-shadow: 0 0 0 3px rgba(200, 155, 75, 0.22);
}

.oper-progress__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #9a9288;
  line-height: 1.25;
  padding: 0 0.15rem;
}

.oper-progress__item--current .oper-progress__label {
  color: #2e2a26;
}

.oper-progress__item--done .oper-progress__label {
  color: #5c5650;
}

.oper-progress__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.oper-progress__link:hover .oper-progress__label {
  color: #8f6f38;
}

@media (max-width: 520px) {
  .oper-progress__label {
    font-size: 0.65rem;
  }
  .oper-progress__bubble {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.72rem;
  }
  .oper-progress__item:not(:last-child)::after {
    top: 0.875rem;
  }
}

/* — Kartu langkah / section — */
.oper-step-card {
  margin-bottom: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border, #e5ddd2);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(46, 42, 38, 0.04);
}

.oper-step-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.85rem;
}

.oper-step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(200, 155, 75, 0.18);
  color: #8f6f38;
  flex-shrink: 0;
}

.oper-step-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  color: #2e2a26;
}

.oper-step-card__hint {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #5c5650;
}

/* — Beranda: grup aksi — */
.home-quick-actions-hub .oper-section-label {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8f6f38;
}

.home-layout .oper-intro {
  margin-bottom: 1rem;
}

.oper-intro__extra {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #5c5650;
  max-width: 42rem;
}

.oper-intro__extra.mdb-insight-lines--hero {
  margin-top: 0.75rem;
}

/* Petunjuk singkat sebelum filter / toolbar */
.oper-filter-hint {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #5c5650;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid #e5ddd2;
  border-radius: 12px;
  max-width: 42rem;
}

/* Langkah vertikal (batch upload, dsb.) */
.oper-lane {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.oper-step-card--current {
  border-color: #c89b4b;
  box-shadow: 0 0 0 1px rgba(200, 155, 75, 0.25), 0 2px 8px rgba(46, 42, 38, 0.06);
}

.oper-step-card--done {
  opacity: 0.92;
}

.oper-step-card--error {
  border-color: #e8b4b4;
  background: #fff9f9;
}

.oper-step-card--error .oper-step-card__num {
  background: #fecaca;
  color: #b91c1c;
}

/* Insight / laporan: intro di dalam scope berwarna */
.cintel-page > .oper-intro,
.laporan-dash-scope > .oper-intro,
.insight-worship-page > .oper-intro {
  margin-bottom: 1.25rem;
}

.insight-worship-page .oper-intro,
.cintel-page.tw-bg-\[\#f4f1ea\] .oper-intro {
  background: linear-gradient(135deg, #fff 0%, #faf7f2 100%);
}

/* Beranda: judul grup aksi */
.home-quick-actions-hub .home-quick-actions__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 650;
  color: #2e2a26;
}

.home-quick-actions-hub .home-quick-actions-group.card {
  border-radius: 16px;
  border-color: #e5ddd2;
  box-shadow: 0 1px 2px rgba(46, 42, 38, 0.04);
}

/* Prioritas beranda */
.home-priority-kpi {
  margin-bottom: 1.25rem;
}
