/* =========================================================
   HARGANAS-1C — Portal Landing UI Refresh
   Scope: hanya app-landing-screen agar tidak mengganggu layar lain.
   ========================================================= */

.app-landing-screen {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  padding-bottom: 76px;
}

.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 8px clamp(14px, 3vw, 36px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  background:
    linear-gradient(135deg, rgba(3, 105, 161, 0.96), rgba(37, 99, 235, 0.98));
  color: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.14);
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.portal-logo {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
  object-fit: contain;
  padding: 5px;
  flex: 0 0 auto;
}

.portal-brand-text {
  min-width: 0;
}

.portal-eyebrow {
  margin: 0 0 2px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.portal-title {
  margin: 0;
  font-size: clamp(19px, 2.7vw, 30px);
  line-height: 1.08;
  color: #ffffff;
  font-weight: 900;
}

.portal-subtitle {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  line-height: 1.4;
}

.portal-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}

.portal-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 12px;
  font-weight: 800;
}

.portal-status-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.portal-topbar-btn {
  min-height: 34px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f2f5f;
  border-color: rgba(255, 255, 255, 0.5);
}

.portal-topbar-btn-danger {
  color: #b42318;
}

.portal-page-content {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px) 0 22px;
}

.portal-hero-card,
.portal-module-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.portal-hero-card {
  display: grid;
  grid-template-columns: minmax(250px, 0.76fr) minmax(420px, 1.24fr);
  gap: 14px;
  border-radius: 22px;
  padding: clamp(14px, 2.3vw, 22px);
}

.portal-hero-card::after,
.portal-module-card::after {
  content: '';
  position: absolute;
  right: -36px;
  top: -48px;
  width: 148px;
  height: 148px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.20), rgba(37, 99, 235, 0.14));
  pointer-events: none;
}

.portal-hero-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}

.portal-role-badge {
  display: none;
}

.portal-greeting {
  margin: 0;
  color: #475569;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.4;
  font-weight: 700;
}

.portal-welcome-name {
  margin: 3px 0 7px;
  color: #082f5f;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.05;
  font-weight: 900;
}

.portal-role-summary {
  margin: 0;
  color: #244365;
  font-size: 14px;
  line-height: 1.5;
  max-width: 560px;
}

.portal-profile-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-content: center;
}

.portal-profile-strip > div {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  padding: 8px 10px;
  background: rgba(248, 251, 255, 0.88);
}

.portal-profile-strip span {
  display: block;
  margin-bottom: 3px;
  color: #64748b;
  font-size: 10.5px;
  line-height: 1.25;
  font-weight: 700;
}

.portal-profile-strip strong {
  display: block;
  color: #082f5f;
  font-size: 12.5px;
  line-height: 1.3;
  font-weight: 900;
  word-break: break-word;
}

.portal-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.portal-module-card {
  min-height: 292px;
  border-radius: 22px;
  padding: 20px;
}

.portal-module-card > * {
  position: relative;
  z-index: 1;
}

.portal-module-card h3 {
  margin: 10px 0 10px;
  color: #082f5f;
  font-size: 20px;
  line-height: 1.18;
}

.portal-module-card p {
  margin: 0 0 12px;
  color: #3d5575;
  font-size: 14px;
  line-height: 1.65;
}

.portal-module-card-highlight {
  border-color: rgba(37, 99, 235, 0.35);
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.96));
}

.portal-module-tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 10px;
  color: #0369a1;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.20);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.portal-module-tag-hot {
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.30);
}

.portal-module-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #415a7c;
  font-size: 13px;
  line-height: 1.65;
}

.portal-callout {
  margin: 14px 0;
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, 0.20);
  background: rgba(219, 234, 254, 0.54);
}

.portal-callout strong {
  display: block;
  color: #0f3f7a;
  margin-bottom: 4px;
}

.portal-callout p {
  margin-bottom: 0;
  color: #33557c;
  font-size: 13px;
}

.portal-action-stack {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.portal-action-card {
  width: 100%;
  text-align: left;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 16px;
  padding: 12px 14px;
  background: #ffffff;
  color: #082f5f;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.portal-action-card:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
}

.portal-action-card--primary {
  color: #ffffff;
  border-color: rgba(37, 99, 235, 0.72);
  background: linear-gradient(135deg, #0ea5e9, #1d4ed8);
}

.portal-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
  flex: 0 0 auto;
  font-size: 19px;
}

.portal-action-card:not(.portal-action-card--primary) .portal-action-icon {
  background: rgba(14, 165, 233, 0.12);
}

.portal-action-body {
  min-width: 0;
}

.portal-action-body small {
  display: block;
  margin-bottom: 2px;
  color: inherit;
  opacity: 0.72;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: 10px;
}

.portal-action-body strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.portal-action-body span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.86;
}

.portal-development-badge {
  display: inline-flex;
  margin-top: 12px;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(100, 116, 139, 0.10);
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.portal-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.30);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  color: #244365;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 980px) {
  .portal-hero-card {
    grid-template-columns: 1fr;
  }

  .portal-profile-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-module-grid {
    grid-template-columns: 1fr;
  }

  .portal-module-card-highlight {
    order: -1;
  }
}

@media (max-width: 680px) {
  .app-landing-screen {
    padding-bottom: 92px;
  }

  .portal-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 9px 14px;
  }

  .portal-topbar-actions {
    width: 100%;
    justify-content: stretch;
  }

  .portal-status-badge,
  .portal-topbar-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .portal-page-content {
    width: min(100% - 22px, 1120px);
    padding-top: 14px;
  }

  .portal-hero-card,
  .portal-module-card {
    border-radius: 18px;
    padding: 16px;
  }

  .portal-profile-strip {
    grid-template-columns: 1fr;
  }

  .portal-logo {
    width: 44px;
    height: 44px;
  }

  .portal-title {
    font-size: 20px;
  }

  .portal-welcome-name {
    font-size: 24px;
  }
}

.portal-status-badge-offline::before {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
}

/* =========================================================
   HARGANAS-2A — Dokumentasi Page UI Refresh
   Modernisasi halaman Dokumentasi HARGANAS 2026.
   ========================================================= */
.harganas-page {
  background:
    radial-gradient(circle at 8% 18%, rgba(14, 165, 233, 0.16), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(37, 99, 235, 0.12), transparent 28%),
    linear-gradient(180deg, #f4f8ff 0%, #eef4fb 55%, #f8fbff 100%);
  min-height: 100vh;
  padding-bottom: 42px;
}

.harganas-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(247, 251, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.harganas-kicker,
.harganas-section-eyebrow {
  margin: 0 0 4px;
  color: #0b7fbf;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.harganas-content {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 18px;
}

.harganas-gps-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  padding: 16px 18px;
  border: 1px solid rgba(251, 191, 36, 0.55);
  border-radius: 20px;
  color: #3b2f09;
  background:
    radial-gradient(circle at 96% 4%, rgba(251, 191, 36, 0.30), transparent 28%),
    linear-gradient(135deg, #fff7d6 0%, #ffed9f 54%, #ffd86b 100%);
  box-shadow: 0 18px 35px rgba(161, 98, 7, 0.13);
}

.harganas-gps-alert__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.12);
  font-size: 24px;
}

.harganas-gps-alert__body {
  display: grid;
  gap: 4px;
}

.harganas-gps-alert__body strong {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.2;
}

.harganas-gps-alert__body span {
  color: rgba(59, 47, 9, 0.82);
  font-size: 14px;
  line-height: 1.45;
}

.harganas-profile-card,
.harganas-form-card,
.harganas-summary-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.harganas-profile-card::after,
.harganas-form-card::after {
  content: "";
  position: absolute;
  top: -56px;
  right: -52px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.10);
  pointer-events: none;
}

.harganas-section-head {
  position: relative;
  z-index: 1;
}

.harganas-section-head h3 {
  margin: 0;
  color: #082b5f;
  font-size: 20px;
}

.harganas-team-grid,
.harganas-summary-card .profile-grid {
  position: relative;
  z-index: 1;
}

.harganas-team-grid > div,
.harganas-summary-card .profile-grid > div {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(248, 251, 255, 0.78);
}

.harganas-media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.harganas-media-card {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 20px;
  background:
    radial-gradient(circle at 96% 0%, rgba(14, 165, 233, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.harganas-media-card::after {
  content: "";
  position: absolute;
  right: -22px;
  top: -24px;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.06);
}

.harganas-media-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.12);
  font-size: 18px;
}

.harganas-media-card .label {
  display: block;
  margin-bottom: 2px;
  color: #526987;
  font-size: 12px;
  font-weight: 700;
}

.harganas-media-card strong {
  display: block;
  color: #082b5f;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.harganas-media-card small {
  display: block;
  margin-top: 8px;
  color: #60718d;
  font-size: 12px;
}

.harganas-media-card.is-complete {
  border-color: rgba(34, 197, 94, 0.32);
  background:
    radial-gradient(circle at 96% 0%, rgba(34, 197, 94, 0.13), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.harganas-media-card.is-complete strong {
  color: #166534;
}

.harganas-form-card .filters-grid {
  position: relative;
  z-index: 1;
}

.harganas-form-card input,
.harganas-form-card select {
  border-color: rgba(148, 163, 184, 0.34);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.96);
}

.harganas-form-card input:focus,
.harganas-form-card select:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
  outline: none;
}

.harganas-summary-card {
  margin-top: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.harganas-action-row,
.harganas-next-row {
  position: relative;
  z-index: 1;
}

.harganas-primary-action {
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.22);
}

.harganas-next-action {
  width: 100%;
  justify-content: center;
}

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

@media (max-width: 680px) {
  .harganas-content {
    width: min(100% - 20px, 1160px);
    padding-top: 12px;
  }

  .harganas-topbar {
    align-items: flex-start;
  }

  .harganas-gps-alert {
    align-items: flex-start;
    padding: 14px;
  }

  .harganas-gps-alert__icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 21px;
  }

  .harganas-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .harganas-media-card {
    min-height: 104px;
    padding: 14px;
  }

  .harganas-media-card strong {
    font-size: 22px;
  }
}

@media (max-width: 420px) {
  .harganas-media-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   HARGANAS-2B — GPS Permission & Capture Readiness Gate
   ========================================================= */
.harganas-gps-alert {
  align-items: stretch;
}

.harganas-gps-alert__body {
  min-width: 0;
  flex: 1 1 auto;
}

.harganas-gps-alert__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 8px;
}

.harganas-gps-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(146, 64, 14, 0.18);
  border-radius: 999px;
  color: #7c2d12;
  background: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 900;
}

.harganas-gps-chip.is-ready {
  border-color: rgba(22, 163, 74, 0.25);
  color: #166534;
  background: rgba(220, 252, 231, 0.82);
}

.harganas-gps-chip.is-warning {
  border-color: rgba(217, 119, 6, 0.34);
  color: #92400e;
  background: rgba(254, 243, 199, 0.92);
}

.harganas-gps-chip.is-error {
  border-color: rgba(220, 38, 38, 0.30);
  color: #991b1b;
  background: rgba(254, 226, 226, 0.82);
}

.harganas-gps-detail {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: rgba(59, 47, 9, 0.86) !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.harganas-gps-alert__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.harganas-gps-button {
  min-width: 132px;
  border-color: rgba(37, 99, 235, 0.20);
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.harganas-media-card.is-warning {
  border-color: rgba(217, 119, 6, 0.36);
  background:
    radial-gradient(circle at 96% 0%, rgba(245, 158, 11, 0.18), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}

.harganas-media-card.is-warning strong {
  color: #92400e;
  font-size: clamp(18px, 2.2vw, 22px);
}

.harganas-next-action:not(:disabled) {
  border-color: rgba(22, 163, 74, 0.32);
  color: #166534;
  background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
  cursor: pointer;
}

@media (max-width: 680px) {
  .harganas-gps-alert {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .harganas-gps-alert__actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .harganas-gps-button {
    width: 100%;
  }
}

/* =========================================================
   HARGANAS-2C — Photo Capture & Document Route Stabilization
   ========================================================= */
.harganas-media-card--actionable {
  gap: 5px;
}

.harganas-media-action {
  align-self: flex-start;
  margin-top: 8px;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #0b57d0;
  background: rgba(219, 234, 254, 0.70);
  border-color: rgba(37, 99, 235, 0.18);
  font-size: 12px;
  font-weight: 900;
}

.harganas-media-action:hover:not(:disabled) {
  background: rgba(191, 219, 254, 0.90);
}

.harganas-media-action:disabled {
  opacity: 0.68;
  cursor: wait;
}

.harganas-media-card.is-complete .harganas-media-action {
  color: #166534;
  background: rgba(220, 252, 231, 0.86);
  border-color: rgba(22, 163, 74, 0.18);
}

.harganas-media-card small[id$="-detail"] {
  max-width: 100%;
  min-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* =========================================================
   HARGANAS-4 — Drive Upload Bridge + Manifest Workbook
   ========================================================= */
.harganas-next-action:not(:disabled) {
  border-color: rgba(37, 99, 235, 0.28);
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9 0%, #1d4ed8 100%);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.22);
}

.harganas-next-action:not(:disabled):hover {
  filter: brightness(1.03);
}

.harganas-next-action:disabled {
  cursor: not-allowed;
}

/* =========================================================
   HARGANAS-4-R1 — GPS Fix & Upload CTA Placement
   ========================================================= */
.harganas-upload-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  margin-top: 16px;
  border: 1px solid rgba(147, 197, 253, 0.85);
  border-radius: 22px;
  background:
    radial-gradient(circle at 94% 10%, rgba(191, 219, 254, 0.52) 0 56px, transparent 57px),
    linear-gradient(135deg, rgba(239, 246, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 62%, rgba(219, 234, 254, 0.85) 100%);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.harganas-upload-card__content {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.harganas-upload-card__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(219, 234, 254, 0.95);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.10);
  font-size: 22px;
}

.harganas-upload-card h3 {
  margin: 2px 0 3px;
}

.harganas-upload-card .harganas-next-action {
  width: min(320px, 100%);
  min-height: 46px;
  border-radius: 15px;
  font-weight: 900;
}

@media (max-width: 720px) {
  .harganas-upload-card {
    align-items: stretch;
    flex-direction: column;
  }

  .harganas-upload-card .harganas-next-action {
    width: 100%;
  }
}

/* =========================================================
   HARGANAS-4A-R1 — Device Save Helper
   ========================================================= */
.harganas-device-save {
  align-self: flex-start;
  margin-top: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #155e75;
  background: rgba(207, 250, 254, 0.72);
  border: 1px solid rgba(8, 145, 178, 0.20);
  font-size: 12px;
  font-weight: 900;
}

.harganas-device-save:hover:not(:disabled) {
  background: rgba(165, 243, 252, 0.90);
}

.harganas-device-save.hidden {
  display: none !important;
}

.harganas-media-card.is-complete .harganas-device-save {
  color: #0f766e;
  background: rgba(204, 251, 241, 0.86);
  border-color: rgba(15, 118, 110, 0.18);
}

/* HARGANAS-5 Admin Verification Dashboard */
.harganas-admin-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #f5fbff 0%, #edf4fb 100%);
  color: #102a4c;
}

.harganas-admin-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 18px 38px;
}

.harganas-admin-loading,
.harganas-admin-empty {
  padding: 18px;
  border: 1px dashed rgba(37, 99, 235, 0.28);
  border-radius: 18px;
  color: #607089;
  background: rgba(255, 255, 255, 0.72);
}

.harganas-admin-empty.is-error {
  color: #991b1b;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(254, 242, 242, 0.9);
}

.harganas-admin-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(15, 64, 112, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 50px rgba(15, 43, 71, 0.08);
}

.harganas-admin-kicker {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1e80aa;
}

.harganas-admin-topbar h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  color: #0b2d5a;
}

.harganas-admin-subtitle {
  margin: 8px 0 0;
  max-width: 720px;
  color: #5d6c82;
  line-height: 1.55;
}

.harganas-admin-topbar__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.harganas-admin-content {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.harganas-admin-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.harganas-admin-summary article {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 64, 112, 0.11);
  box-shadow: 0 12px 28px rgba(15, 43, 71, 0.06);
}

.harganas-admin-summary span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #607089;
}

.harganas-admin-summary strong {
  font-size: 1.7rem;
  color: #0b2d5a;
}

.harganas-admin-filter-card,
.harganas-admin-list-card,
.harganas-admin-detail-card {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 64, 112, 0.11);
  box-shadow: 0 14px 36px rgba(15, 43, 71, 0.07);
}

.harganas-admin-filters {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1.5fr auto;
  gap: 12px;
  align-items: end;
}

.harganas-admin-filters label,
.harganas-admin-verification-box label {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #40516b;
}

.harganas-admin-filters input,
.harganas-admin-filters select,
.harganas-admin-verification-box textarea {
  width: 100%;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  padding: 11px 12px;
  background: #fff;
  color: #0b2d5a;
  font: inherit;
}

.harganas-admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.25fr);
  gap: 16px;
  align-items: start;
}

.harganas-admin-list {
  display: grid;
  gap: 10px;
}

.harganas-admin-item {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.harganas-admin-item:hover,
.harganas-admin-item.is-active {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}

.harganas-admin-item__head,
.harganas-admin-item__meta,
.harganas-admin-item__foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.harganas-admin-item__head {
  align-items: center;
}

.harganas-admin-item__head strong {
  color: #0b2d5a;
  font-size: 1.02rem;
}

.harganas-admin-item__meta,
.harganas-admin-item__foot {
  margin-top: 7px;
  color: #607089;
  font-size: 0.86rem;
  line-height: 1.35;
}

.harganas-admin-item__foot {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
}

.harganas-admin-status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.harganas-admin-status.is-waiting {
  color: #92400e;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.harganas-admin-status.is-verified {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.harganas-admin-status.is-resubmit {
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.harganas-admin-status.is-rejected {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.harganas-admin-detail {
  display: grid;
  gap: 14px;
}

.harganas-admin-detail-section {
  padding: 14px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid rgba(15, 64, 112, 0.09);
}

.harganas-admin-detail-section h4 {
  margin: 0 0 10px;
  color: #0b2d5a;
}

.harganas-admin-dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.harganas-admin-dl div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  align-items: start;
}

.harganas-admin-dl dt {
  color: #607089;
  font-size: 0.82rem;
  font-weight: 800;
}

.harganas-admin-dl dd {
  margin: 0;
  color: #0b2d5a;
  font-weight: 700;
  word-break: break-word;
}

.harganas-admin-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.harganas-admin-media-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(37, 99, 235, 0.13);
}

.harganas-admin-media-card strong {
  color: #0b2d5a;
}

.harganas-admin-media-card small {
  color: #607089;
  line-height: 1.35;
}

.harganas-admin-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

@media (max-width: 960px) {
  .harganas-admin-topbar,
  .harganas-admin-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

  .harganas-admin-summary,
  .harganas-admin-filters,
  .harganas-admin-media-grid {
    grid-template-columns: 1fr;
  }

  .harganas-admin-topbar__actions {
    justify-content: start;
  }
}

@media (max-width: 640px) {
  .harganas-admin-shell {
    padding: 14px 12px 28px;
  }

  .harganas-admin-topbar,
  .harganas-admin-filter-card,
  .harganas-admin-list-card,
  .harganas-admin-detail-card {
    border-radius: 18px;
  }

  .harganas-admin-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .harganas-admin-dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .harganas-admin-item__head,
  .harganas-admin-item__meta,
  .harganas-admin-item__foot {
    display: grid;
  }
}
