:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #4f46e5;
  --primary-600: #4338ca;
  --accent: #06b6d4;
  --danger: #dc2626;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, #e0e7ff 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 0%, #cffafe 0%, transparent 55%), var(--bg);
  min-height: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  transition: grid-template-columns 0.22s ease;
}

.app-shell--sidebar-collapsed {
  grid-template-columns: 72px 1fr;
}

.sidebar {
  background: linear-gradient(180deg, #0b1220 0%, #111827 100%);
  color: #e5e7eb;
  padding: 28px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  transition: padding 0.22s ease;
}

.sidebar--collapsed {
  padding: 24px 12px;
}

.sidebar__top {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 24px;
}

.sidebar--collapsed .sidebar__top {
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
}

.sidebar-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 2px 0 0;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(165, 180, 252, 0.45);
  color: #fff;
}

.sidebar-toggle__icon {
  display: flex;
  transition: transform 0.22s ease;
}

.sidebar--collapsed .sidebar-toggle__icon {
  transform: rotate(180deg);
}

.sidebar--collapsed .sidebar-toggle {
  margin-top: 0;
}

.brand {
  display: flex;
  flex: 1;
  gap: 12px;
  align-items: center;
  min-width: 0;
  margin-bottom: 0;
}

.sidebar--collapsed .brand {
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.sidebar--collapsed .brand__text {
  display: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-mark--custom {
  background: transparent;
  box-shadow: none;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.brand-mark__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sidebar--collapsed .brand-mark {
  width: 32px;
  height: 40px;
  border-radius: 8px;
}

.brand__text h1 {
  font-size: 15px;
  line-height: 1.25;
  margin: 0;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.brand__text span {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.sidebar--collapsed .nav {
  display: none;
}

.nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}

.nav__primary {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav__primary--guest {
  flex-direction: row;
  justify-content: center;
  padding: 0.35rem 0 0.5rem;
}

.nav__primary--guest .btn-icononly {
  color: #e2e8f0;
  padding: 12px;
  border-radius: 10px;
}

.nav__primary--guest .btn-icononly:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav__primary--guest .btn-icononly.active {
  background: rgba(79, 70, 229, 0.22);
  color: #fff;
  border: 1px solid rgba(129, 140, 248, 0.25);
}

.nav__pengaturan {
  margin-top: auto;
}

.nav a {
  color: #cbd5e1;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav a.active {
  background: rgba(79, 70, 229, 0.22);
  color: #fff;
  border: 1px solid rgba(129, 140, 248, 0.25);
}

.main {
  padding: 28px 32px 48px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.topbar h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.topbar p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.card + .card {
  margin-top: 16px;
}

/* Beranda: accordion aksi cepat = kartu + pola ui-details */
.card.ui-details {
  padding: 0;
  overflow: hidden;
}

.card.ui-details > summary {
  padding: 18px 22px;
}

.card.ui-details .ui-details__body {
  padding: 0 22px 22px;
}

/* Beranda: Community Dashboard (premium shell) */
.home-dashboard-shell {
  margin-top: 20px;
  padding: 28px 28px 24px;
  border-radius: 18px;
  background: #f8f9fb;
  border: 1px solid #e8ecf2;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.home-dashboard-shell__head {
  margin-bottom: 22px;
}

.home-dashboard-shell__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1e293b;
}

.home-dashboard-shell__subtitle {
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: #64748b;
}

.home-dashboard-shell__foot {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e8ecf2;
  font-size: 0.8125rem;
  color: #64748b;
  text-align: center;
}

.home-dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.home-dash-kpi {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 20px 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e8ecf2;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-dash-kpi:hover {
  border-color: #dbe4ee;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.home-dash-kpi__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.home-dash-kpi__icon--blue {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.home-dash-kpi__icon--green {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.home-dash-kpi__icon--gold {
  background: linear-gradient(135deg, #c8a96b 0%, #a88b4a 100%);
}

.home-dash-kpi__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-dash-kpi__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.home-dash-kpi__value {
  font-size: clamp(1.5rem, 3.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1e293b;
  line-height: 1.15;
}

.home-dash-attendance-stack {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.home-dash-attendance-stack[data-attendance-demo="1"] {
  padding-top: 2px;
}

.home-dash-attendance-stack__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 4px 2px 0;
}

.home-dash-attendance-stack__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1e293b;
}

.home-dash-attendance-stack__subtitle {
  margin: 6px 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #64748b;
}

.home-dash-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
}

.home-dash-badge--preview .home-dash-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b82f6;
  flex-shrink: 0;
}

.home-dash-worship-panel {
  padding: 24px 24px 22px;
  background: #ffffff;
}

.home-dash-worship-panel-details.ui-details {
  margin-bottom: 18px;
  border-radius: 18px;
  border: 1px solid #e8ecf2;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.home-dash-worship-panel-details.ui-details > summary.home-dash-worship-panel-details__summary {
  padding: 18px 22px;
  font-weight: 400;
  border-bottom: 1px solid transparent;
}

.home-dash-worship-panel-details.ui-details[open] > summary.home-dash-worship-panel-details__summary {
  border-bottom-color: #e8ecf2;
}

.home-dash-worship-panel-details .ui-details__body {
  padding: 0;
}

.home-dash-worship-panel-details .home-dash-panel.home-dash-worship-panel {
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.home-dash-worship-panel-details__name {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.02em;
}

.home-dash-worship-panel-details__meta {
  display: block;
  margin-top: 6px;
  font-size: 0.875rem;
  font-weight: 400;
  color: #64748b;
}

.home-dash-worship-panel__empty {
  margin: 0;
  padding: 8px 24px 24px;
}

.home-dash-worship-panel__hero {
  margin-bottom: 20px;
}

.home-dash-worship-panel__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.02em;
}

.home-dash-worship-panel__subtitle {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: #64748b;
}

.home-dash-worship-panel__meta {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #94a3b8;
}

.home-dash-worship-kpi {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.home-dash-worship-kpi__card {
  position: relative;
  padding: 16px 16px 14px 48px;
  border-radius: 16px;
  background: #f8f9fb;
  border: 1px solid #e8ecf2;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-dash-worship-kpi__card:hover {
  border-color: #dbe4ee;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.home-dash-worship-kpi__icon {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  color: #fff;
}

.home-dash-worship-kpi__icon--green {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.home-dash-worship-kpi__icon--gold {
  background: linear-gradient(135deg, #c8a96b 0%, #a88b4a 100%);
}

.home-dash-worship-kpi__icon--blue {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.home-dash-worship-kpi__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.home-dash-worship-kpi__value {
  display: block;
  margin-top: 6px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1e293b;
  line-height: 1.2;
}

.home-dash-worship-kpi__unit {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
}

.home-dash-worship-kpi__sub {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.35;
}

.home-dash-worship-chart-card {
  margin-bottom: 22px;
  padding: 18px 18px 14px;
  border-radius: 16px;
  border: 1px solid #e8ecf2;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  overflow: hidden;
}

.home-dash-worship-chart-card__head {
  margin-bottom: 12px;
}

.home-dash-worship-chart-card__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1e293b;
}

.home-dash-worship-chart-card__lede {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #64748b;
}

.home-dash-worship-chart-card__scope {
  margin: 4px 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #94a3b8;
}

.home-dash-worship-chart-drill {
  flex-shrink: 0;
  margin: 0;
}

.home-dash-worship-chart-drill__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  line-height: 1.3;
}

.home-dash-worship-chart-drill__btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.home-dash-worship-chart-drill__icon {
  display: inline-flex;
  color: #64748b;
}

.home-dash-panel__chart--worship {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 300px;
  min-height: 300px;
  max-height: 300px;
  box-sizing: border-box;
}

.home-dash-panel__chart-canvas-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.home-dash-panel__chart-canvas-wrap canvas {
  display: block;
  max-width: 100%;
}

.home-dash-worship-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px 24px;
  align-items: stretch;
}

.home-dash-worship-bottom__col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.home-dash-worship-bottom__heading {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.home-dash-table-wrap--worship {
  margin-top: 0;
}

.home-dash-table--worship tbody tr:nth-child(even) {
  background: rgba(248, 249, 251, 0.85);
}

.home-dash-table--worship tbody tr:hover td {
  background: rgba(59, 130, 246, 0.05);
}

.home-dash-table__num--growth {
  font-weight: 700;
}

.home-dash-growth--up {
  color: #16a34a;
}

.home-dash-growth--down {
  color: #ea580c;
}

.home-dash-growth--flat {
  color: #64748b;
}

.home-dash-worship-insights {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #e8ecf2;
  background: #f8f9fb;
}

.home-dash-worship-insights__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-dash-worship-insights__item {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #475569;
}

.home-dash-worship-insights__item:last-child {
  margin-bottom: 0;
}

.home-dash-worship-insights__bullet {
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
}

.home-dash-worship-insights__item--up .home-dash-worship-insights__bullet {
  background: #22c55e;
}

.home-dash-worship-insights__item--down .home-dash-worship-insights__bullet {
  background: #f59e0b;
}

.home-dash-worship-insights__item--money .home-dash-worship-insights__bullet {
  background: #c8a96b;
}

.home-dash-worship-insights__item--spread .home-dash-worship-insights__bullet {
  background: #3b82f6;
}

.home-dash-worship-insights__item--target .home-dash-worship-insights__bullet {
  background: #64748b;
}

@media (max-width: 1024px) {
  .home-dash-worship-kpi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-dash-worship-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .home-dash-worship-kpi {
    grid-template-columns: 1fr;
  }
}

.home-dashboard.home-dashboard--premium {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 0;
}

.home-dash-panel {
  padding: 22px 24px 20px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e8ecf2;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.home-dash-panel--wide {
  grid-column: 1 / -1;
}

.home-dash-panel__head {
  margin-bottom: 16px;
}

.home-dash-panel__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.02em;
}

.home-dash-panel__desc {
  margin: 6px 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #64748b;
}

.home-dash-panel__chart {
  position: relative;
  max-width: 100%;
}

.home-dash-panel__chart--hbar {
  height: 200px;
}

.home-dash-panel__chart--donut {
  height: 240px;
}

.home-dash-panel__chart--wide {
  height: 280px;
}


.home-dash-panel__chart--growth {
  height: 220px;
}

.home-dash-table-wrap {
  overflow-x: auto;
  margin-top: 4px;
  border-radius: 12px;
  border: 1px solid #e8ecf2;
}

.home-dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.home-dash-table th,
.home-dash-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #e8ecf2;
}

.home-dash-table th {
  font-weight: 600;
  color: #64748b;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f8f9fb;
}

.home-dash-table tbody tr:last-child td {
  border-bottom: none;
}

.home-dash-table tbody tr:hover td {
  background: rgba(59, 130, 246, 0.04);
}

.home-dash-table__num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #1e293b;
  width: 5rem;
}

a.home-dash-table__link {
  font-weight: 700;
  color: #3b82f6;
  text-decoration: none;
}

a.home-dash-table__link:hover {
  text-decoration: underline;
}

.home-dash-donut-wrap {
  position: relative;
  height: 100%;
  max-width: 260px;
  margin: 0 auto;
}

.home-dash-donut-wrap canvas {
  position: relative;
  z-index: 1;
}

.home-dash-donut-center {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1e293b;
  pointer-events: none;
}

.home-dash-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
}

.home-dash-mini > div {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8f9fb;
  border: 1px solid #e8ecf2;
}

.home-dash-mini dt {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin: 0 0 4px;
}

.home-dash-mini dd {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
}

.home-dash-panel__empty {
  margin-top: 10px;
  font-size: 0.875rem;
  color: #64748b;
}

.home-dash-panel__avg-wrap {
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-dash-panel__avg {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #64748b;
}

.home-dash-panel__avg-def {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #94a3b8;
}

.home-dash-panel__avg-num {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #1e293b;
}

.home-dash-panel__avg--offering {
  margin-top: 4px;
}

.home-dash-table-wrap--attendance-offer {
  margin-top: 12px;
}

.home-dash-table--compact {
  font-size: 0.8125rem;
}

.home-dash-table--compact th,
.home-dash-table--compact td {
  padding: 8px 10px;
}

.home-dash-panel--demo {
  border-color: #dbeafe;
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.06);
}

.home-dash-demo-banner {
  margin: 0 0 14px;
  padding: 10px 12px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
}

/* Pendataan Cool — tanggal absensi + tombol satu baris */
.cool-absensi-date-form {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cool-absensi-date-form__label label {
  display: inline-block;
  margin-bottom: 2px;
}

.cool-absensi-date-form__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.cool-absensi-date-form__input {
  flex: 1 1 220px;
  min-width: 0;
}

.cool-absensi-date-form__input input[type='date'],
.cool-absensi-date-form__input input.app-flatpickr-alt-input {
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
}

.cool-absensi-date-form__submit {
  flex: 0 0 auto;
}

.cool-absensi-form__help {
  margin-top: 12px;
}

.cool-absensi-form__moneyrow {
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  margin-top: 4px;
}

.cool-absensi-form__moneycol {
  min-width: 200px;
}

.cool-absensi-form__moneycol--grow {
  flex: 1 1 240px;
  min-width: 240px;
}

.cool-absensi-history-table .cool-absensi-history__roster {
  margin: 0;
  max-width: 320px;
}

.cool-absensi-history-table .cool-absensi-history__roster > summary {
  padding: 8px 10px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.cool-absensi-history-table .cool-absensi-history__roster .ui-details__body {
  padding: 0 10px 10px 2.25rem;
}

.cool-absensi-history__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text);
}

.home-dash-offering-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-dash-panel--saldo {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 55%, #f0f9ff 100%);
}

.home-dash-panel--saldo-cool {
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 50%, #fefce8 100%);
}

.home-dash-saldo {
  margin: 8px 0 0;
  font-size: clamp(1.5rem, 4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1e40af;
}

.home-dash-saldo--cool {
  color: #92400e;
}

@media (max-width: 1100px) {
  .home-dash-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main {
    padding: 22px 20px 40px;
  }
}

@media (max-width: 900px) {
  .home-dash-offering-row {
    grid-template-columns: 1fr;
  }

  .home-dashboard.home-dashboard--premium {
    grid-template-columns: 1fr;
  }

  .home-dashboard-shell {
    padding: 20px 16px 18px;
  }
}

@media (max-width: 520px) {
  .home-dash-kpi-row {
    grid-template-columns: 1fr;
  }
}

.home-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 640px) {
  .home-action-grid {
    grid-template-columns: 1fr;
  }
}

.home-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-action-card:hover {
  text-decoration: none;
  border-color: #a5b4fc;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.12);
}

.home-action-card:hover .home-action-label__title {
  color: var(--primary-600);
}

.home-action-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.home-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.home-action-card:hover .home-action-icon {
  color: var(--primary-600);
}

.home-action-label {
  margin-top: 12px;
  width: 100%;
  max-width: 260px;
}

.home-action-label__title {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
  line-height: 1.3;
  transition: color 0.15s ease;
}

.home-action-label__desc {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 5px;
}

/* Pilihan laporan: kartu utama vs sekunder */
.home-action-card.home-action-card--report-primary {
  border-color: #c4b5fd;
  background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 55%);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.08);
}

.home-action-card.home-action-card--report-primary .home-action-icon {
  background: rgba(79, 70, 229, 0.16);
}

.home-action-card.home-action-card--report-secondary {
  background: var(--surface);
}

.home-action-card.home-action-card--report-secondary:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Satu baris: gender | tanggal lahir | pendidikan — tiga kolom sama lebar */
.grid.identity-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.grid.identity-row .identity-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.grid.identity-row .identity-field select,
.grid.identity-row .identity-field input[type="date"] {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.grid.identity-row .identity-field input.app-flatpickr-alt-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Status sosial: 2×2 — perkawinan | hubungan; checkbox KK | pekerjaan */
.grid.two.social-status-grid {
  align-items: start;
}

.grid.two.social-status-grid .social-field select {
  width: 100%;
  min-width: 0;
}

.grid.two.social-status-grid .social-field--head {
  align-self: end;
  padding-bottom: 2px;
}

.grid.two.social-status-grid .social-field--head .check {
  margin-bottom: 0;
  white-space: nowrap;
}

@media (max-width: 980px) {
  /* Satu kolom + menu samping sebagai drawer (sentuh / layar sempit) */
  .app-shell {
    display: block;
    min-height: 100vh;
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
  }

  .sidebar-backdrop:not([hidden]) {
    display: block;
  }

  .sidebar {
    position: fixed;
    z-index: 110;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(20rem, 88vw);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 14px calc(20px + env(safe-area-inset-bottom, 0px));
    transform: translate3d(-104%, 0, 0);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s ease;
    box-shadow: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .app-shell--mobile-nav-open .sidebar {
    transform: translate3d(0, 0, 0);
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.28);
  }

  /* Mode desktop «collapsed» tidak menyembunyikan isi menu di layar kecil */
  .sidebar--collapsed .nav {
    display: flex;
  }

  .sidebar--collapsed .brand__text {
    display: block;
  }

  .sidebar--collapsed .sidebar__top {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
  }

  .sidebar--collapsed .brand {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .sidebar--collapsed .brand-mark {
    width: 40px;
    height: 40px;
  }

  .mobile-nav-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -8px -12px 16px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(244, 246, 251, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .mobile-nav-bar__menu {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #fff;
    color: var(--primary);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  }

  .mobile-nav-bar__menu:hover {
    background: #f8fafc;
    border-color: #c7d2fe;
  }

  .mobile-nav-bar__titles {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
  }

  .mobile-nav-bar__page {
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-nav-bar__app {
    font-size: 0.75rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .main {
    padding: 16px 16px 40px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .topbar .row {
    justify-content: flex-start;
  }

  .topbar h2 {
    font-size: 1.25rem;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .grid.identity-row {
    grid-template-columns: 1fr;
  }

  .grid.two.social-status-grid .social-field--head .check {
    white-space: normal;
  }

  .nav a {
    min-height: 44px;
    padding: 12px 14px;
    font-size: 15px;
  }

  .nav__meta.help a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

@media (min-width: 981px) {
  .sidebar-backdrop {
    display: none !important;
  }

  .mobile-nav-bar {
    display: none !important;
  }
}

body.app-shell--mobile-nav-open {
  overflow: hidden;
  touch-action: none;
}

label {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

/* Tanpa atribut type = text (HTML); [type="text"] saja tidak mencakupnya. */
input:not([type]),
input[type="text"],
input[type="search"],
input[type="url"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font: inherit;
  outline: none;
  line-height: 1.35;
}

/* Tinggi bidang seperti form laporan (bukan angka/tanggal agar grid rapat). */
input:is(:not([type]), [type="text"], [type="search"], [type="url"], [type="password"], [type="email"], [type="tel"]) {
  min-height: 2.625rem;
}

select:not([multiple]) {
  min-height: 2.625rem;
}

/* Samakan tampilan search dengan text (tanpa kontrol native yang mempersempit field). */
input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

input[type="search"]::-ms-clear,
input[type="search"]::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

select.cool-member-pick {
  max-width: 640px;
  min-height: 220px;
  padding: 8px;
  line-height: 1.35;
}

/* Daftar anggota — filter satu baris (cari + filter + urut; kirim otomatis + reset) */
.members-filter-form {
  margin: 0;
}

.members-filter-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 10px 12px;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

/* Kolom cari: tidak memenuhi sisa baris; ~70% dari lebar “grow” tipikal (~300px) */
.members-filter-field--grow {
  flex: 0 1 210px;
  min-width: min(100%, 140px);
  width: 210px;
  max-width: 210px;
}

.members-filter-field--grow input[type="text"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .members-filter-field--grow {
    flex: 1 1 200px;
    width: auto;
    max-width: none;
    min-width: min(100%, 160px);
  }
}

.members-filter-field:not(.members-filter-field--grow):not(.members-filter-actions):not(.members-filter-field--sort) {
  flex: 0 0 142px;
  min-width: 142px;
  max-width: 142px;
  width: 142px;
}

.members-filter-field--sort {
  flex: 0 0 172px;
  min-width: 172px;
  max-width: 180px;
  width: 172px;
}

.members-filter-field label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.members-filter-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
}

.members-filter-actions .btn {
  white-space: nowrap;
}

.cool-batch-pick-wrap {
  margin-top: 4px;
}

/* Saringan di atas, daftar di bawah — lebar sama (22rem), rata kiri */
.cool-batch-pick-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.cool-batch-pick-row > input[type="text"] {
  width: 100%;
  max-width: 22rem;
  box-sizing: border-box;
}

.cool-batch-pick-wrap .cool-batch-select {
  max-width: 100%;
  min-height: 180px;
  padding: 8px;
  line-height: 1.35;
}

.cool-batch-pick-row .cool-batch-select {
  width: 100%;
  max-width: 22rem;
  min-width: 0;
  margin-top: 0;
  box-sizing: border-box;
}

kbd {
  display: inline-block;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #f1f5f9;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-weight: 600;
  color: var(--text);
}

.cool-ketua-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  color: #1e3a5f;
  background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%);
  border: 1px solid #7dd3fc;
}

.cool-member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cool-member-actions__form {
  display: inline;
  margin: 0;
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}

.check input {
  width: auto;
}

/* Tombol — gaya SaaS modern (flat ringan, radius konsisten, fokus jelas) */
.btn {
  border: 0;
  border-radius: var(--radius);
  padding: 0.625rem 1.125rem;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  vertical-align: middle;
  box-sizing: border-box;
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.14s ease;
}

a.btn,
a.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #f8fafc;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 2px 8px -2px rgba(79, 70, 229, 0.38);
}

.btn-primary:hover {
  background: var(--primary-600);
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.08),
    0 8px 20px -4px rgba(67, 56, 202, 0.45);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow:
    0 1px 1px rgba(15, 23, 42, 0.06),
    0 1px 4px rgba(79, 70, 229, 0.22);
}

.btn-primary:focus-visible {
  outline: 2px solid #a5b4fc;
  outline-offset: 2px;
}

a.btn-primary,
a.btn-primary:visited {
  color: #f8fafc;
}

.btn-primary:disabled,
.btn-primary[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-danger {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
  color: #fff;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 2px 8px -2px rgba(220, 38, 38, 0.35);
}

.btn-danger:hover {
  background: #b91c1c;
  filter: none;
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.08),
    0 8px 18px -4px rgba(185, 28, 28, 0.4);
  transform: translateY(-1px);
}

.btn-danger:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 4px rgba(220, 38, 38, 0.22);
}

.btn-danger:focus-visible {
  outline: 2px solid #fecaca;
  outline-offset: 2px;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.btn-ghost:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.btn-ghost:active {
  background: #f1f5f9;
}

.btn-ghost:focus-visible {
  outline: 2px solid #c7d2fe;
  outline-offset: 2px;
}

/* Tombol / tautan aksi: ikon + teks (standar aplikasi) */
.ui-btn-ico {
  display: inline-flex;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.ui-btn-ico .ui-ico-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.btn.btn--iconrow,
a.btn.btn--iconrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  vertical-align: middle;
}

a.btn.btn--iconrow:hover {
  text-decoration: none;
}

.btn.btn--iconrow .ui-btn-lbl,
a.btn.btn--iconrow .ui-btn-lbl {
  line-height: 1.25;
}

/* Aksi ringkas di tabel */
.btn-icononly {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  min-width: 2.35rem;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  font: inherit;
}

.btn-icononly:hover {
  background: #f8fafc;
  text-decoration: none;
}

.btn-icononly--danger {
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.35);
}

.btn-icononly .ui-btn-ico {
  width: 1.15rem;
  height: 1.15rem;
}

.table-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.table-actions__sep {
  color: var(--muted);
  user-select: none;
}

.alert {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 14px;
}

.alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  border: 1px solid var(--border);
  background: #f8fafc;
}

.pill.ok {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #166534;
}

.pill.warn {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.pill.upcoming {
  border-color: #fdba74;
  background: #fff7ed;
  color: #9a3412;
}

.pill.err {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
}

/* Laporan kegiatan: struktur ketentuan A / B */
.report-kegiatan-spec {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
}

.report-kegiatan-block {
  margin-top: 20px;
}

.report-kegiatan-block > .section-title {
  margin-bottom: 8px;
}

.report-kegiatan-roman {
  margin: 0 0 16px 1.1rem;
  padding: 0;
  list-style: lower-roman;
}

.report-kegiatan-roman > li {
  margin: 12px 0 0;
  padding-left: 4px;
}

.report-kegiatan-roman > li::marker {
  font-weight: 700;
  color: #475569;
}

.report-kegiatan-roman .roman-item-title {
  font-weight: 650;
  margin-bottom: 8px;
  color: #1e293b;
}

.report-kegiatan-subgrid {
  margin-top: 8px;
}

@media (max-width: 720px) {
  .report-kegiatan-summary {
    grid-template-columns: 1fr !important;
  }
}

.section-title {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
  color: #334155;
  margin: 8px 0 12px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.help {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.photo-upload {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

@media (max-width: 640px) {
  .photo-upload {
    grid-template-columns: 1fr;
  }
}

.photo-upload__preview {
  width: 120px;
  height: 150px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-upload__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-upload__placeholder {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 10px;
}

.photo-upload__file {
  position: absolute;
  width: 0.01px;
  height: 0.01px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.photo-upload__actions .row {
  gap: 8px;
}

.photo-webcam {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.photo-webcam[hidden] {
  display: none !important;
}

.photo-webcam__panel {
  max-width: 720px;
  width: 100%;
}

.photo-webcam__video {
  width: 100%;
  max-height: 56vh;
  border-radius: 12px;
  background: #000;
}

.member-card-photo img {
  display: block;
}

/* --- Aksesibilitas: teks hanya untuk pembaca layar --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Collapsible: ikon tampilkan / sembunyikan (standar proyek) --- */
.ui-details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.ui-details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--text);
  user-select: none;
}

.ui-details > summary::-webkit-details-marker {
  display: none;
}

.ui-details > summary::marker {
  content: "";
}

.ui-details__icon {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  background-color: var(--muted);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  transition: transform 0.15s ease;
}

.ui-details[open] > summary .ui-details__icon {
  transform: rotate(90deg);
}

.ui-details__title {
  flex: 1 1 auto;
  min-width: 0;
}

.ui-details__body {
  padding: 0 16px 16px;
}

.ui-details__body > .card {
  margin: 0;
  border: 1px solid var(--border);
}

/* Laporan: jarak antar blok accordion */
.laporan-accordion {
  margin-top: 28px;
}

.laporan-accordion + .laporan-accordion {
  margin-top: 16px;
}

/* --- Jadwal: pengulangan (premium repeat card) + sticky actions --- */
.schedule-form-shell {
  position: relative;
  padding-bottom: 96px;
}

.schedule-form-actions--sticky {
  position: sticky;
  bottom: 0;
  z-index: 8;
  margin-top: 12px;
  margin-left: -6px;
  margin-right: -6px;
  padding: 16px 8px 20px;
  background: linear-gradient(180deg, rgba(244, 246, 251, 0) 0%, rgba(255, 255, 255, 0.97) 22%, #fff 100%);
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 -16px 40px rgba(15, 23, 42, 0.07);
}

.schedule-form-actions--split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.schedule-form-actions--split .btn-primary {
  min-width: 148px;
}

.schedule-form-actions__batal {
  text-decoration: none;
}

.schedule-form-actions__batal:hover {
  text-decoration: none;
  border-color: #c7d2fe;
  color: var(--text);
}

.schedule-recurrence-outer {
  width: 100%;
}

.schedule-recurrence-footnote {
  margin: 14px 0 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.schedule-recurrence-shell {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 8px;
}

.schedule-recurrence-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 14px 40px rgba(15, 23, 42, 0.06),
    0 2px 6px rgba(15, 23, 42, 0.04);
  padding: 22px 22px 24px;
}

.schedule-recurrence-card__intro {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eef2f7;
}

.schedule-recurrence-card__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}

.schedule-recurrence-card .repeat-builder {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Kiri: label + tanggal + waktu | Kanan: ulangi + berakhir (lebar kolom sama) */
.repeat-builder__body-grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 22px;
}

@media (min-width: 960px) {
  .repeat-builder__body-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px 22px;
    align-items: start;
  }
}

.repeat-builder__body-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.repeat-builder__body-col--left .repeat-builder__section {
  margin-bottom: 0;
}

.repeat-builder__field-card {
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e8ecf4;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 10px 28px rgba(15, 23, 42, 0.05);
}

.repeat-builder__body-col--left .schedule-time-block {
  width: 100%;
  max-width: none;
  margin: 0;
}

.repeat-builder__body-card {
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e8ecf4;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 10px 28px rgba(15, 23, 42, 0.05);
}

.repeat-builder__body-card--repeat .repeat-builder__section {
  margin-bottom: 0;
}

.repeat-builder__required-tag {
  display: inline-block;
  font-weight: 650;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.68rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
  vertical-align: middle;
  margin-left: 8px;
}

.schedule-time-card__required {
  font-weight: 600;
  font-size: 0.72rem;
  color: #64748b;
  text-transform: lowercase;
}

.repeat-builder__body-grid + .repeat-builder__preview-notes-row {
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid #eef2f7;
}

.repeat-builder__preview-notes-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 22px;
  align-items: stretch;
  min-width: 0;
}

.repeat-builder__preview-notes-row .repeat-builder__preview {
  min-width: 0;
}

.repeat-builder__preview-notes-row .repeat-builder__notes-aside {
  min-width: 0;
}

.repeat-builder__preview-notes-row .repeat-builder__notes-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.repeat-builder__preview-notes-row .repeat-builder__notes-card .schedule-dash-card__field {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.repeat-builder__preview-notes-row .repeat-builder__notes-card textarea {
  flex: 1;
  min-height: 120px;
}

@media (max-width: 900px) {
  .repeat-builder__preview-notes-row {
    grid-template-columns: 1fr;
  }
}

.repeat-builder__section {
  margin-bottom: 22px;
}

.repeat-builder__section:last-of-type {
  margin-bottom: 0;
}

.repeat-builder__section--end {
  padding-top: 4px;
  margin-bottom: 20px;
}

.repeat-builder__body-card--end.repeat-builder__section--end {
  padding: 18px 18px 16px;
  margin-bottom: 0;
}

.repeat-builder__section-title {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
}

.repeat-builder__section-lead {
  margin: 0 0 12px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.repeat-builder__date-field {
  position: relative;
  max-width: 100%;
}

.repeat-builder__date-input {
  width: 100%;
  max-width: 100%;
  padding: 12px 44px 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafbfc;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.repeat-builder__date-input:hover {
  border-color: #c7d2fe;
  background: #fff;
}

.repeat-builder__date-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.16);
}

.repeat-builder__date-icon {
  pointer-events: none;
  position: absolute;
  right: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border-radius: 6px;
  background: linear-gradient(135deg, #e0e7ff, #eef2ff);
  opacity: 0.95;
  box-shadow: 0 1px 2px rgba(79, 70, 229, 0.12);
}

.repeat-builder__date-icon::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px solid var(--primary-600);
  border-radius: 3px;
  opacity: 0.55;
}

.repeat-builder__field {
  display: block;
  margin-bottom: 12px;
}

.repeat-builder__field--flush {
  margin-bottom: 0;
}

.repeat-builder__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
}

.repeat-builder__select-wrap {
  position: relative;
}

.repeat-builder__select-wrap--lg .repeat-builder__select--lg {
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 1rem;
}

.repeat-builder__select {
  width: 100%;
  max-width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: 12px 42px 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.repeat-builder__select:hover {
  border-color: #c7d2fe;
}

.repeat-builder__select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18);
}

.repeat-builder__select-chev {
  pointer-events: none;
  position: absolute;
  right: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg);
  opacity: 0.65;
}

.repeat-builder__input {
  width: 100%;
  max-width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.repeat-builder__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18);
}

/* Baris frekuensi custom: override width:100% dari .repeat-builder__input */
.repeat-builder__freq .repeat-builder__input.repeat-builder__freq-n {
  width: 5.5rem;
  max-width: min(100%, 7rem);
  flex: 0 0 5.5rem;
  min-width: 3.5rem;
  box-sizing: border-box;
}

.repeat-builder__freq .repeat-builder__freq-unit {
  flex: 1 1 0;
  min-width: 6.5rem;
  max-width: 100%;
}

.repeat-builder__input--inline {
  width: 4.25rem;
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  padding-left: 8px;
  padding-right: 8px;
}

.repeat-builder__inline-kicker {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 6px;
  vertical-align: middle;
}

.repeat-builder__inline-kicker:first-child {
  margin-left: 0;
}

.repeat-builder__empty {
  margin: 12px 0 0;
}

.repeat-builder__empty[hidden] {
  display: none !important;
}

.repeat-builder__empty-card {
  text-align: center;
  padding: 20px 16px;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.repeat-builder__empty-title {
  margin: 0 0 6px;
  font-weight: 650;
  color: var(--text);
}

.repeat-builder__empty-sub {
  margin: 0;
  font-size: 0.82rem;
}

.repeat-builder__empty-icon {
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e0e7ff, #f1f5f9);
}

.repeat-builder__panel {
  margin-top: 14px;
  padding: 14px 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.repeat-builder__panel[hidden] {
  display: none !important;
}

.repeat-builder__panel--end-freq {
  margin-top: 10px;
}

.repeat-builder__end-modes {
  margin-top: 14px;
}

.repeat-builder__panel-kicker {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--text);
}

.repeat-builder__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.repeat-builder__chip {
  cursor: pointer;
  user-select: none;
}

.repeat-builder__chip-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.repeat-builder__chip-ui {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.65rem;
  padding: 9px 10px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #64748b;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  transition: transform 0.14s ease, border-color 0.14s ease, color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.repeat-builder__chip:hover .repeat-builder__chip-ui {
  border-color: #c7d2fe;
  color: var(--text);
}

.repeat-builder__chip-input:focus-visible + .repeat-builder__chip-ui {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.repeat-builder__chip-input:checked + .repeat-builder__chip-ui {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.28);
  transform: translateY(-1px);
}

.repeat-builder__fieldset {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}

.repeat-builder__radio-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text);
  cursor: pointer;
}

.repeat-builder__radio-row input {
  margin-top: 3px;
  accent-color: var(--primary);
}

.repeat-builder__subpanel {
  margin-bottom: 12px;
}

.repeat-builder__subpanel[hidden] {
  display: none !important;
}

.repeat-builder__row2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.repeat-builder__freq {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

/* Opsi berakhir: radio bulat + teks sejajar */
.repeat-builder__end-mode-row {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0 14px;
  align-items: start;
  margin-bottom: 14px;
}

.repeat-builder__end-mode-row:last-child {
  margin-bottom: 0;
}

.repeat-builder__end-mode-radio {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.28rem 0 0;
  justify-self: center;
  accent-color: var(--primary, #6366f1);
  cursor: pointer;
  flex-shrink: 0;
}

.repeat-builder__end-mode-content {
  min-width: 0;
}

.repeat-builder__end-mode-text {
  display: block;
  cursor: pointer;
  padding: 2px 0 0;
}

.repeat-builder__end-mode-title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--text);
  line-height: 1.35;
}

.repeat-builder__end-mode-caption {
  display: block;
  margin-top: 3px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

.repeat-builder__end-mode-reveal {
  margin-top: 10px;
}

.repeat-builder__end-mode-radio:focus-visible {
  outline: 2px solid rgba(79, 70, 229, 0.45);
  outline-offset: 2px;
}

.repeat-builder__choice-reveal {
  margin-top: 12px;
  padding-top: 2px;
  transition: opacity 0.18s ease;
}

.repeat-builder__choice-reveal[hidden] {
  display: none !important;
}

.repeat-builder__choice-reveal--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
}

/* Pratinjau */
.repeat-builder__preview {
  margin-top: 0;
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: linear-gradient(145deg, #f5f7ff 0%, #eef2ff 40%, #fafbfc 100%);
  border: 1px solid #e0e7ff;
  box-shadow: 0 10px 32px rgba(79, 70, 229, 0.1);
}

.repeat-builder__preview[hidden] {
  display: none !important;
}

.repeat-builder__preview-eyebrow {
  font-size: 0.6875rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-600);
  margin-bottom: 8px;
}

.repeat-builder__preview-lead {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.repeat-builder__preview-next-label {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
}

.repeat-builder__preview-body {
  min-height: 3.5rem;
}

.repeat-builder__preview-empty {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px dashed #c7d2fe;
}

.repeat-builder__preview-empty[hidden] {
  display: none !important;
}

.repeat-builder__preview-empty p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #475569;
}

.repeat-builder__preview-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.repeat-builder__preview-list li {
  padding: 9px 0;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  color: #1e293b;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.repeat-builder__preview-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

@media (max-width: 720px) {
  .schedule-recurrence-card {
    padding: 18px 16px 20px;
    border-radius: 14px;
  }

  .repeat-builder__row2 {
    grid-template-columns: 1fr;
  }

  .repeat-builder__freq {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .repeat-builder__freq .repeat-builder__input.repeat-builder__freq-n {
    width: 4.75rem;
    max-width: min(100%, 6rem);
    flex: 0 0 4.75rem;
    min-width: 3.25rem;
  }

  .schedule-form-actions--split {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .schedule-form-actions--split .btn-primary {
    width: 100%;
  }
}

/* --- Form jadwal: waktu mulai & selesai (premium) --- */
body.schedule-time-modal-open {
  overflow: hidden;
}

.schedule-time-block {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.schedule-time-block__inner {
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e8ecf4;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 10px 28px rgba(15, 23, 42, 0.05);
}

.schedule-time-block__header {
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.schedule-time-block__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--text);
  line-height: 1.35;
}

.schedule-time-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Baris 1: label mulai | label selesai; baris 2: trigger mulai | ikon tanpa selesai | trigger selesai */
.schedule-time-cards-stack--inline-mid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 8px;
  align-items: center;
  position: relative;
}

.schedule-time-cards-stack--inline-mid > .schedule-time-card {
  display: contents;
}

.schedule-time-cards-stack--inline-mid > .schedule-time-card[data-field="start"] > .schedule-time-card__label {
  grid-column: 1;
  grid-row: 1;
}

.schedule-time-cards-stack--inline-mid > .schedule-time-card[data-field="start"] > .schedule-time-card__trigger {
  grid-column: 1;
  grid-row: 2;
}

.schedule-time-cards-stack--inline-mid > .schedule-time-card[data-field="start"] > .schedule-time-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  clip-path: inset(50%);
}

.schedule-time-cards-stack--inline-mid > .schedule-time-noend--between {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  justify-self: center;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-time-cards-stack--inline-mid > .schedule-time-card[data-field="end"] > .schedule-time-card__label {
  grid-column: 3;
  grid-row: 1;
}

.schedule-time-cards-stack--inline-mid > .schedule-time-card[data-field="end"] > .schedule-time-card__trigger {
  grid-column: 3;
  grid-row: 2;
}

.schedule-time-cards-stack--inline-mid > .schedule-time-card[data-field="end"] > .schedule-time-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  clip-path: inset(50%);
}

@media (max-width: 520px) {
  .schedule-time-cards-stack--inline-mid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }

  .schedule-time-cards-stack--inline-mid > .schedule-time-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .schedule-time-cards-stack--inline-mid > .schedule-time-card[data-field="start"] > .schedule-time-sr,
  .schedule-time-cards-stack--inline-mid > .schedule-time-card[data-field="end"] > .schedule-time-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    clip-path: inset(50%);
  }

  .schedule-time-cards-stack--inline-mid > .schedule-time-noend--between {
    align-self: center;
  }
}

.schedule-time-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.schedule-time-card__label {
  font-size: 0.8125rem;
  font-weight: 650;
  color: #475569;
  letter-spacing: 0.01em;
}

.schedule-time-card__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 0 14px 0 16px;
  margin: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fafbfc;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}

.schedule-time-card__trigger:hover {
  border-color: #c7d2fe;
  background: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.08);
}

.schedule-time-card__trigger:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.schedule-time-card__trigger:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.schedule-time-card__value {
  font-size: 1.05rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.schedule-time-card__clock {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  border: 1px solid rgba(99, 102, 241, 0.25);
  position: relative;
}

.schedule-time-card__clock::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid var(--primary-600);
  border-radius: 50%;
  opacity: 0.45;
}

.schedule-time-card__clock::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 2px;
  height: 8px;
  margin-left: -1px;
  background: var(--primary-600);
  border-radius: 1px;
  opacity: 0.55;
  transform-origin: bottom center;
  transform: rotate(45deg);
}

.schedule-time-card--end.is-disabled .schedule-time-card__trigger {
  background: #f1f5f9;
}

.schedule-time-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.schedule-time-duration {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 6px 0 12px;
}

/* Durasi / «Tanpa selesai» di bawah baris mulai–selesai (bukan di tengah grid) */
.schedule-time-block__inner > .schedule-time-duration {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.schedule-time-duration--pick {
  justify-content: flex-start;
}

.schedule-time-duration__label {
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 650;
  color: #475569;
  letter-spacing: 0.01em;
}

.schedule-time-duration__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  flex: 1 1 220px;
  min-width: 0;
  max-width: 100%;
}

/* Kolom sama lebar: override width tetap / width:100% global .repeat-builder__input */
.schedule-time-duration__controls .schedule-time-duration__amount.repeat-builder__input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.schedule-time-duration__unit-wrap {
  min-width: 0;
  max-width: 100%;
}

.schedule-time-duration__unit {
  width: 100%;
  min-width: 0;
}

.schedule-time-duration.is-disabled {
  opacity: 0.48;
  pointer-events: none;
}

.schedule-time-noend {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

/* Ikon «tanpa waktu selesai» di antara mulai & selesai */
.schedule-time-noend--between {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2px;
}

.schedule-time-noend__icon-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fafbfc;
  color: #64748b;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.schedule-time-noend__icon-label:hover {
  border-color: #c7d2fe;
  background: #fff;
  color: #475569;
}

.schedule-time-noend__icon-label:has(.schedule-time-noend__cb:checked) {
  border-color: rgba(79, 70, 229, 0.55);
  background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
  color: var(--primary-600);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.2);
}

.schedule-time-noend__icon-label:has(.schedule-time-noend__cb:focus-visible) {
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25);
}

.schedule-time-noend__icon-surface {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.schedule-time-noend__svg {
  display: block;
}

.schedule-time-noend__cb {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.schedule-time-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.schedule-time-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.schedule-time-modal[hidden] {
  display: none !important;
}

.schedule-time-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  animation: scheduleTimeFadeIn 0.18s ease;
}

.schedule-time-modal__panel {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 20px 20px 18px;
  border-radius: 16px 16px 0 0;
  background: #fff;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
  border: 1px solid #e8ecf4;
  animation: scheduleTimeSlideUp 0.22s ease;
}

@media (min-width: 480px) {
  .schedule-time-modal {
    align-items: center;
  }

  .schedule-time-modal__panel {
    border-radius: 16px;
  }
}

@keyframes scheduleTimeFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scheduleTimeSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.schedule-time-modal__title {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.schedule-time-modal__pickers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.schedule-time-modal__field span {
  display: block;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 6px;
}

.schedule-time-modal__select {
  width: 100%;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafbfc;
}

.schedule-time-modal__select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
}

.schedule-time-modal__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.schedule-time-modal__chip {
  padding: 8px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.schedule-time-modal__chip:hover {
  border-color: #c7d2fe;
  background: #eef2ff;
}

.schedule-time-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* --- Form jadwal ibadah: grid satu kolom (satu baris per blok) --- */
.schedule-form-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 12px;
  align-items: start;
}

.schedule-form-dashboard .schedule-recurrence-shell,
.schedule-form-dashboard .schedule-time-block {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.schedule-dash-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 8px 22px rgba(15, 23, 42, 0.05);
}

.schedule-dash-card__field {
  display: block;
  margin: 0;
}

.schedule-dash-card__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 650;
  color: #475569;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.schedule-dash-card__input,
.schedule-dash-card textarea,
.schedule-dash-card__textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafbfc;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.schedule-dash-card__input:focus,
.schedule-dash-card textarea:focus,
.schedule-dash-card__textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}

.schedule-dash-card textarea,
.schedule-dash-card__textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.45;
}

.schedule-dash__meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.schedule-form-dashboard .schedule-dash__recurrence,
.schedule-form-dashboard .schedule-dash__actions {
  grid-column: 1;
  grid-row: auto;
}

/* --- Modal pilihan hapus: satu tanggal vs seluruh slot jadwal --- */
body.schedule-delete-choice-modal-open {
  overflow: hidden;
}

.schedule-delete-choice-modal {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.schedule-delete-choice-modal[hidden] {
  display: none !important;
}

.schedule-delete-choice-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.schedule-delete-choice-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 22px 22px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e8ecf4;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.schedule-delete-choice-modal__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.schedule-delete-choice-modal__lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.schedule-delete-choice-modal__stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.schedule-delete-choice-modal__stack .btn {
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}

.schedule-delete-choice-modal__stack form {
  margin: 0;
}

/* --- Modal konfirmasi hapus katalog (jadwal + laporan) --- */
.catalog-delete-confirm-modal .schedule-delete-choice-modal__panel {
  max-width: 480px;
}

.catalog-delete-modal__list {
  margin: 12px 0 0;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

.catalog-delete-modal__list li {
  margin-bottom: 6px;
}

.catalog-delete-modal__warn {
  margin: 14px 0 0;
  font-size: 0.875rem;
  font-weight: 650;
  color: #b91c1c;
}

.repeat-builder__input--block {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 10px;
  box-sizing: border-box;
}

/* Penugasan: pemisah grup bulan pada tabel pelaksanaan */
.table tr.penugasan-month-head th {
  background: #f1f5f9;
  font-weight: 600;
  text-align: left;
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.table--penugasan-by-month tr.penugasan-month-head th.penugasan-month-head__month {
  width: 12rem;
  max-width: 38%;
  vertical-align: middle;
}

.table--penugasan-by-month tr.penugasan-month-head th.penugasan-month-head__actions {
  width: 6rem;
  text-align: right;
}

.sd-table tr.penugasan-month-head th {
  background: #f1f5f9;
  font-weight: 600;
  text-align: left;
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

/* Subgrup label (Laporan — pelaksanaan terkini) di bawah judul bulan */
.sd-table tr.lrp-label-group__head-row th {
  background: #f8fafc;
  font-weight: 500;
  text-align: left;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 12px;
  border-bottom: 1px solid #eef2f7;
}

.lrp-label-group__toggle .month-group__label {
  color: var(--muted, #64748b);
  font-size: 0.92em;
}

.lrp-label-mobile-stack {
  margin-bottom: 10px;
}

.lrp-label-mobile-stack:last-child {
  margin-bottom: 0;
}

button.lrp-label-mobile-stack__toggle.month-group__toggle--mobile {
  margin: 8px 0 6px;
  padding: 6px 10px;
  font-size: 0.9rem;
  font-weight: 500;
  background: #f8fafc;
}

/* Grup bulanan: tombol bentangkan / ciutkan (standar semua halaman) */
.month-group__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.month-group__toggle:focus-visible {
  outline: 2px solid var(--focus, #2563eb);
  outline-offset: 2px;
}

.month-group__toggle--table {
  padding: 2px 0;
}

.month-group__chev {
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  flex-shrink: 0;
  margin-top: 0.12em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s ease, margin 0.15s ease;
}

/* Tertutup: chevron ke kanan (>); terbuka: ke bawah */
.month-group__toggle[aria-expanded="true"] .month-group__chev {
  transform: rotate(45deg);
  margin-top: 0.08em;
}

.month-group__label {
  flex: 1;
  min-width: 0;
}

.lrp-recent button.month-group__toggle--mobile.sd-mobile-month-head {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  margin: 12px 0 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f1f5f9;
  font-weight: 600;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

tbody.month-group.is-collapsed > tr:not(.month-group__head-row) {
  display: none;
}

.table tr.penugasan-activity-mode-head td.penugasan-activity-mode-head__cell {
  background: #e8eef6;
  font-size: 0.9rem;
  font-weight: 600;
  padding-top: 8px;
  padding-bottom: 8px;
  border-top: 1px solid var(--border, #e2e8f0);
  color: var(--text, #0f172a);
}

/* Form anggota: pratinjau kelompok umur (master) */
.member-age-group-preview {
  margin-top: 6px;
  margin-bottom: 0;
}

.member-age-group-preview__k {
  color: var(--muted);
  margin-right: 6px;
}

/* Input persembahan (format Rupiah Indonesia) */
.js-offering-idr {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Laporan IR: ringkasan — empat kolom sama (label + angka) agar baris angka sejajar */
.ir-report-totals-card__heading {
  margin-bottom: 12px;
}

.ir-report-totals-card__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.ir-report-totals-card__help-top {
  margin-top: 0;
  min-height: 2.75em;
  line-height: 1.35;
}

.ir-report-totals-card__figure {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.ir-report-totals-card__figure strong {
  font-weight: 800;
}

.ir-report-totals-card__cell--grand {
  text-align: right;
}

@media (max-width: 900px) {
  .ir-report-totals-card__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ir-report-totals-card__cell--grand {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .ir-report-totals-card__grid {
    grid-template-columns: 1fr;
  }
}

/* Detail anggota: kolom kanan (foto + kartu) */
.member-detail-aside-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: start;
  position: sticky;
  top: 16px;
  min-width: 0;
}

/* Kartu anggota ≈ ISO 7810 ID-1: 85,60 × 53,98 mm */
.member-namecard-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 8px 0 24px;
}

.member-namecard-page--embed {
  padding: 0;
}

.member-namecard {
  position: relative;
  width: 85.6mm;
  height: 53.98mm;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  border-radius: 2.8mm;
  overflow: hidden;
  color: #f0f9ff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-shadow:
    0 4px 6px -1px rgba(15, 23, 42, 0.25),
    0 12px 24px -6px rgba(30, 58, 138, 0.45);
  background: linear-gradient(
    148deg,
    #0c1929 0%,
    #132447 18%,
    #1e3a8a 42%,
    #2563eb 68%,
    #38bdf8 100%
  );
}

.member-namecard__shine {
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(
    118deg,
    transparent 40%,
    rgba(255, 255, 255, 0.12) 48%,
    transparent 56%
  );
  pointer-events: none;
}

.member-namecard__inner {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: calc(100% - 5mm);
  padding: 2.6mm 2.8mm 0.8mm 3mm;
  gap: 2.4mm;
  z-index: 1;
}

.member-namecard__col--text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-right: 0.5mm;
}

.member-namecard__org {
  margin: 0 0 0.6mm;
  font-size: 5.5pt;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(224, 242, 254, 0.92);
  line-height: 1.2;
}

.member-namecard__name {
  margin: 0 0 0.5mm;
  font-size: 11.5pt;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.35);
}

.member-namecard__meta {
  margin: 0 0 1mm;
  font-size: 6.5pt;
  line-height: 1.25;
  color: rgba(191, 219, 254, 0.95);
}

.member-namecard__label {
  margin: 0;
  font-size: 5.5pt;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.9);
}

.member-namecard__no {
  margin: 0.15mm 0 0.8mm;
  font-size: 8.5pt;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  color: #fff;
}

.member-namecard__facts {
  margin: 0 0 0.6mm;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6mm 2mm;
  font-size: 6pt;
  line-height: 1.2;
}

.member-namecard__facts dt {
  margin: 0;
  font-weight: 600;
  color: rgba(147, 197, 253, 0.85);
  font-size: 5.5pt;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.member-namecard__facts dd {
  margin: 0.1mm 0 0;
  color: #f8fafc;
  word-break: break-word;
}

.member-namecard__addr {
  margin: 0;
  font-size: 5.5pt;
  line-height: 1.25;
  color: rgba(224, 242, 254, 0.88);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.member-namecard__col--photo {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.member-namecard__qrwrap {
  padding: 1mm;
  background: #fff;
  border-radius: 1.2mm;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
}

.member-namecard__qr {
  display: block;
  width: 19mm;
  height: 19mm;
  object-fit: contain;
}

.member-namecard__qrtip {
  margin: 0.8mm 0 0;
  font-size: 4.8pt;
  line-height: 1.2;
  text-align: center;
  color: rgba(224, 242, 254, 0.85);
  max-width: 22mm;
}

.member-namecard__img {
  width: 19mm;
  height: 24mm;
  object-fit: cover;
  border-radius: 1.4mm;
  border: 0.35mm solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
}

.member-namecard__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
  color: rgba(191, 219, 254, 0.75);
  font-size: 5.5pt;
  text-align: center;
  line-height: 1.35;
}

.member-namecard__foot {
  position: relative;
  z-index: 1;
  height: 5mm;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5pt;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.75);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.45) 100%);
  border-top: 0.12mm solid rgba(255, 255, 255, 0.12);
}

.member-namecard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

@media screen and (max-width: 520px) {
  .member-namecard {
    width: min(85.6mm, 100%);
    height: auto;
    aspect-ratio: 85.6 / 53.98;
  }

  .member-namecard__inner {
    height: calc(100% - 5mm);
  }
}

@media (max-width: 900px) {
  .member-detail-aside-col {
    position: static;
    max-width: 420px;
  }
}

/* --- Responsif tablet / ponsel: isi lebar, tabel gulir, gambar tidak meluap --- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (max-width: 720px) {
  .card {
    padding: 16px;
  }

  .card.ui-details > summary {
    padding: 14px 16px;
  }

  .card.ui-details .ui-details__body {
    padding: 0 16px 16px;
  }

  .table {
    font-size: 0.8125rem;
  }

  .table th,
  .table td {
    padding: 8px 6px;
  }

  .row {
    gap: 8px;
  }
}

.table-responsive,
.table-scroll,
.table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.table-responsive .table,
.table-scroll .table,
.table-wrap .table {
  width: max-content;
  min-width: 100%;
}

.main img,
.main video,
.main canvas {
  max-width: 100%;
  height: auto;
}
