:root {
  --app-bg: #f4f7fb;
  --app-text: #0f172a;
  --app-surface: rgba(255, 255, 255, 0.88);
  --app-surface-solid: #ffffff;
  --app-border: rgba(20, 32, 62, 0.10);
  --app-text-soft: #64748b;
  --app-shadow: 0 22px 65px rgba(15, 23, 42, 0.10);
  --app-shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.07);
  --brand-1: #0f766e;
  --brand-2: #14b8a6;
  --brand-3: #1d4ed8;
  --accent: #f59e0b;
}

[data-bs-theme="dark"] {
  --app-bg: #07111f;
  --app-text: #e5e7eb;
  --app-surface: rgba(15, 23, 42, 0.82);
  --app-surface-solid: #0f172a;
  --app-border: rgba(148, 163, 184, 0.18);
  --app-text-soft: #94a3b8;
  --app-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --app-shadow-soft: 0 16px 44px rgba(0, 0, 0, 0.28);
  --brand-1: #2dd4bf;
  --brand-2: #38bdf8;
  --brand-3: #818cf8;
  --accent: #fbbf24;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  color: var(--app-text);
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(29, 78, 216, 0.13), transparent 30rem),
    linear-gradient(180deg, var(--app-bg), var(--app-bg));
}

[data-bs-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.18), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.16), transparent 34rem),
    linear-gradient(180deg, var(--app-bg), #020617);
}

body,
.card,
.form-control,
.form-select,
.btn {
  letter-spacing: -0.01em;
}

.app-navbar {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.96), rgba(15, 23, 42, 0.94) 48%, rgba(30, 64, 175, 0.92));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(16px);
}

.navbar .nav-link {
  border-radius: 999px;
  padding-inline: 0.85rem !important;
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  background: rgba(255, 255, 255, 0.13);
  color: #fff !important;
}

.app-shell {
  max-width: 1440px;
  margin-inline: auto;
}

.app-logo {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-grid;
  place-items: center;
  border-radius: 0.95rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.1) 28%, transparent 30%),
    linear-gradient(135deg, var(--brand-2), var(--brand-1) 52%, var(--brand-3));
  color: white;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 14px 30px rgba(37, 99, 235, 0.28);
}

.app-logo i {
  font-size: 1.18rem;
}

.brand-title {
  line-height: 1;
}

.brand-subtitle {
  font-size: 0.68rem;
  opacity: 0.76;
  font-weight: 500;
}

.avatar-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
  color: white;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.user-chip {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.28rem 0.72rem 0.28rem 0.32rem;
  max-width: 21rem;
}

.user-chip-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-toggle {
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
  border-radius: 999px;
}

.page-hero,
.glass-card,
.card,
.table-card {
  background: var(--app-surface);
  border: 1px solid var(--app-border) !important;
  box-shadow: var(--app-shadow-soft);
  backdrop-filter: blur(18px);
}

.page-hero {
  border-radius: 1.6rem;
  padding: clamp(1.15rem, 3vw, 1.75rem);
  margin-bottom: 1.25rem;
}

.page-eyebrow {
  color: var(--brand-1);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}

[data-bs-theme="dark"] .page-eyebrow {
  color: var(--brand-2);
}

.text-soft {
  color: var(--app-text-soft) !important;
}

.card,
.table-card {
  border-radius: 1.35rem;
  overflow: hidden;
}

.card-header,
.card-footer {
  background: color-mix(in srgb, var(--app-surface-solid) 82%, transparent) !important;
  border-color: var(--app-border) !important;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-hover-bg: rgba(37, 99, 235, 0.06);
}

[data-bs-theme="dark"] .table {
  --bs-table-hover-bg: rgba(96, 165, 250, 0.10);
}

.table thead th {
  color: var(--app-text-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom-color: var(--app-border);
}

.table tbody td {
  border-color: var(--app-border);
}

.btn {
  border-radius: 0.85rem;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-3));
  border: 0;
  box-shadow: 0 14px 30px rgba(20, 184, 166, 0.18);
}

.btn-outline-primary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-secondary,
.btn-outline-light {
  border-width: 1.5px;
}

.form-control,
.form-select {
  border-radius: 0.9rem;
  min-height: 2.85rem;
  border-color: var(--app-border);
  background-color: color-mix(in srgb, var(--app-surface-solid) 88%, transparent);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-1);
  box-shadow: 0 0 0 0.22rem rgba(37, 99, 235, 0.14);
}

.form-text {
  color: var(--app-text-soft);
}

.metric-link-card {
  height: 100%;
  display: flex;
  text-decoration: none;
  color: inherit;
  border-radius: 1.35rem;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow-soft);
  padding: 1.15rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.metric-link-card::after {
  content: "";
  position: absolute;
  inset: auto -2rem -3rem auto;
  width: 8rem;
  height: 8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.13), rgba(6, 182, 212, 0.13));
}

.metric-link-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand-1) 45%, var(--app-border));
  box-shadow: var(--app-shadow);
}

.metric-value {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1;
  font-weight: 900;
}

.metric-label {
  color: var(--app-text-soft);
  font-weight: 700;
  font-size: 0.9rem;
}

.icon-bubble {
  width: 2.85rem;
  height: 2.85rem;
  display: inline-grid;
  place-items: center;
  border-radius: 1rem;
  color: white;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 14px 28px rgba(20, 184, 166, 0.23);
}

.icon-bubble.warning { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.icon-bubble.success { background: linear-gradient(135deg, #10b981, #06b6d4); }
.icon-bubble.purple { background: linear-gradient(135deg, #8b5cf6, #2563eb); }
.icon-bubble.dark { background: linear-gradient(135deg, #0f172a, #475569); }

.input-section {
  border: 1px solid var(--app-border);
  border-radius: 1.25rem;
  padding: 1.05rem;
  background: color-mix(in srgb, var(--app-surface-solid) 74%, transparent);
  margin-bottom: 1rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 850;
  margin-bottom: 0.35rem;
}

.section-title i {
  color: var(--brand-1);
}

.helper-card {
  border: 1px dashed color-mix(in srgb, var(--brand-1) 45%, var(--app-border));
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.08));
  border-radius: 1.2rem;
  padding: 1rem;
}

[data-bs-theme="dark"] .helper-card {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.13), rgba(34, 211, 238, 0.08));
}

.doc-preset-btn {
  border-radius: 1rem;
  text-align: left;
  min-height: 4.9rem;
}

.status-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  display: inline-block;
  background: currentColor;
}

.vehicle-plate {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.plate-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.58rem;
  border-radius: 0.8rem;
  background: color-mix(in srgb, var(--app-surface-solid) 78%, transparent);
  border: 1px solid var(--app-border);
  text-decoration: none;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.info-item {
  border: 1px solid var(--app-border);
  border-radius: 1rem;
  padding: 0.85rem;
  background: color-mix(in srgb, var(--app-surface-solid) 75%, transparent);
}

.info-label {
  color: var(--app-text-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.18rem;
}

.info-value {
  font-weight: 750;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--app-text-soft);
}

.empty-state i {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 0.75rem;
  color: color-mix(in srgb, var(--brand-1) 70%, var(--app-text-soft));
}

.auth-card {
  max-width: 520px;
  margin-inline: auto;
}

.auth-logo-xl {
  width: 4rem;
  height: 4rem;
  border-radius: 1.4rem;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-1) 48%, var(--brand-3));
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 22px 45px rgba(20, 184, 166, 0.26);
}

.mobile-card-list .mobile-card {
  display: none;
}

@media (max-width: 991.98px) {
  .navbar .nav-link {
    margin: 0.15rem 0;
  }
  .user-chip {
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .page-hero {
    border-radius: 1.1rem;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .table-to-cards table,
  .table-to-cards thead,
  .table-to-cards tbody,
  .table-to-cards th,
  .table-to-cards td,
  .table-to-cards tr {
    display: block;
  }
  .table-to-cards thead {
    display: none;
  }
  .table-to-cards tr {
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    margin: 0.75rem;
    background: color-mix(in srgb, var(--app-surface-solid) 82%, transparent);
    overflow: hidden;
  }
  .table-to-cards td {
    border: 0 !important;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0.85rem !important;
  }
  .table-to-cards td::before {
    content: attr(data-label);
    color: var(--app-text-soft);
    font-weight: 800;
    font-size: 0.78rem;
  }
  .table-to-cards td.no-label::before {
    content: "";
  }
}

.fw-black { font-weight: 900 !important; }
.auth-logo-xl.bg-danger { background: linear-gradient(135deg, #ef4444, #be123c) !important; }
.input-group-text {
  border-radius: 0.9rem 0 0 0.9rem;
  border-color: var(--app-border);
  background: color-mix(in srgb, var(--app-surface-solid) 82%, transparent);
}
.input-group .form-control,
.input-group .form-select { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group > .form-control:first-child,
.input-group > .form-select:first-child {
  border-top-left-radius: 0.9rem;
  border-bottom-left-radius: 0.9rem;
}
.input-group > .input-group-text:first-child + .form-control,
.input-group > .input-group-text:first-child + .form-select {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.metric-link-card.compact {
  min-height: auto;
  padding: 1rem;
}

.reminder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.reminder-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--app-border);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--app-surface-solid) 82%, transparent);
  cursor: pointer;
  font-weight: 750;
}

.reminder-option:hover {
  border-color: color-mix(in srgb, var(--brand-1) 50%, var(--app-border));
  transform: translateY(-1px);
}

.reminder-option input {
  flex: 0 0 auto;
}

.clearable-file-input,
input[type="file"].form-control {
  cursor: pointer;
}

/* Registrasi dibuat rapi, sejajar, dan simetris */
.register-shell {
  width: min(1040px, 100%);
  margin-inline: auto;
}

.register-card {
  border: 1px solid var(--app-border);
}

.register-side {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.26), transparent 12rem),
    linear-gradient(145deg, var(--brand-1), var(--brand-3));
  color: white;
}

.register-side-inner {
  min-height: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.register-side .auth-logo-xl {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 22px 50px rgba(15, 23, 42, 0.24);
}

.register-note {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.92rem;
}

.register-note i {
  flex: 0 0 auto;
  margin-top: 0.1rem;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--brand-1);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
}

.register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.15rem;
  align-items: start;
}

.register-field {
  min-width: 0;
}

.register-field-wide {
  grid-column: 1 / -1;
}

.register-field .form-label {
  min-height: 1.25rem;
  margin-bottom: 0.42rem;
}

.register-field .input-group {
  width: 100%;
  align-items: stretch;
}

.register-field .input-group-text {
  width: 3rem;
  justify-content: center;
}

.register-field .form-control,
.register-field .form-select {
  width: 1%;
  min-width: 0;
}

.register-form .text-danger.small {
  margin-top: 0.35rem;
  display: block;
}

.register-password-help {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--app-border);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--brand-2) 8%, var(--app-surface-solid));
  color: var(--app-text-soft);
  font-size: 0.92rem;
}

.register-password-help i {
  color: var(--brand-1);
  flex: 0 0 auto;
  margin-top: 0.1rem;
}

.register-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 991.98px) {
  .register-side-inner {
    padding: 1.5rem;
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .register-grid {
    grid-template-columns: 1fr;
  }
  .register-actions {
    justify-content: stretch;
  }
  .register-actions .btn {
    width: 100%;
  }
}

/* =========================
   Responsive polish v2
   Fokus: layout lebih tengah, rapi di HP, dan navbar tidak penuh/berantakan.
   ========================= */
* {
  min-width: 0;
}

.app-shell {
  max-width: 1240px;
  width: 100%;
}

main.app-shell {
  min-height: calc(100vh - 5.25rem);
}

.app-navbar .app-shell {
  min-height: 4.25rem;
}

.app-navbar-collapse {
  gap: 0.75rem;
}

.app-nav-main {
  align-items: center;
  flex-wrap: wrap;
}

.app-nav-main .nav-item,
.app-user-tools {
  min-width: 0;
}

.navbar-brand {
  min-width: 0;
  flex: 0 1 auto;
}

.brand-title {
  white-space: nowrap;
}

.navbar .nav-link,
.app-admin-menu .dropdown-item {
  white-space: nowrap;
}

.app-admin-menu {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1rem;
  padding: 0.45rem;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(18px);
}

.app-admin-menu .dropdown-item {
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.58rem 0.75rem;
}

.app-user-tools {
  flex-shrink: 0;
}

.page-hero {
  width: 100%;
}

.page-hero > .d-flex > div:first-child {
  min-width: 0;
}

.page-hero h1,
.card h1,
.card h2,
.card h3,
.info-value,
.metric-label,
.user-chip-text,
.table td,
.list-group-item {
  overflow-wrap: anywhere;
}

.metric-link-card {
  min-height: 9rem;
}

.metric-link-card.compact {
  min-height: 6.1rem;
}

.card,
.table-card,
.input-section,
.helper-card,
.list-group-item {
  max-width: 100%;
}

.card-body,
.card-header,
.card-footer {
  min-width: 0;
}

.table-responsive {
  border-radius: inherit;
}

.table td,
.table th {
  vertical-align: middle;
}

.table .btn-group {
  flex-wrap: nowrap;
}

.plate-pill {
  max-width: 100%;
}

.plate-pill .vehicle-plate {
  overflow-wrap: anywhere;
}

.form-label {
  font-weight: 750;
}

.form-control[type="file"] {
  padding-top: 0.7rem;
}

.action-row,
.form-actions,
.approval-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.approval-panel {
  position: sticky;
  top: 5.5rem;
}

.upload-guide-card {
  border-radius: 1.2rem;
  border: 1px dashed color-mix(in srgb, var(--brand-1) 45%, var(--app-border));
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.08), rgba(37, 99, 235, 0.08));
  padding: 1rem;
}

[data-bs-theme="dark"] .upload-guide-card {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.12), rgba(96, 165, 250, 0.09));
}

@media (min-width: 1400px) {
  .app-shell {
    max-width: 1280px;
  }
}

@media (max-width: 1199.98px) {
  .approval-panel {
    position: static;
  }
}

@media (max-width: 991.98px) {
  .app-navbar-collapse {
    padding-top: 0.85rem;
  }

  .app-nav-main {
    align-items: stretch;
    gap: 0.25rem !important;
  }

  .navbar .nav-link {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    padding-block: 0.7rem !important;
  }

  .app-user-tools {
    width: 100%;
    justify-content: stretch !important;
    padding-top: 0.75rem;
  }

  .app-user-tools > .btn,
  .app-user-tools > form,
  .app-user-tools > form > .btn {
    flex: 1 1 auto;
  }

  .user-chip {
    order: -1;
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  .app-admin-menu {
    width: 100%;
    position: static !important;
    transform: none !important;
    margin-top: 0.35rem;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 0.95rem;
  }

  main.app-shell {
    padding-inline: 0.75rem !important;
    padding-top: 1rem !important;
  }

  .page-hero {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .page-hero .d-flex.gap-2,
  .page-hero .d-flex.flex-wrap {
    width: 100%;
  }

  .page-hero .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .metric-link-card {
    min-height: 7.3rem;
    padding: 0.95rem;
  }

  .metric-link-card.compact {
    min-height: 5.5rem;
  }

  .metric-value {
    font-size: clamp(2rem, 12vw, 2.75rem);
  }

  .icon-bubble {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 0.85rem;
  }

  .card,
  .table-card,
  .input-section,
  .helper-card {
    border-radius: 1.05rem;
  }

  .card-body.p-4,
  .card-body {
    padding: 1rem !important;
  }

  .card-header {
    padding-inline: 1rem !important;
  }

  .input-section {
    padding: 0.85rem;
  }

  .doc-preset-btn {
    min-height: 4.2rem;
  }

  .reminder-grid {
    grid-template-columns: 1fr;
  }

  .reminder-option {
    padding: 0.78rem 0.85rem;
  }

  .table-to-cards {
    overflow: visible;
  }

  .table-to-cards tr {
    margin: 0.75rem 0.75rem 0.9rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  }

  [data-bs-theme="dark"] .table-to-cards tr {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
  }

  .table-to-cards td {
    display: grid;
    grid-template-columns: minmax(6.2rem, 38%) minmax(0, 1fr);
    align-items: start;
    gap: 0.75rem;
    text-align: right;
  }

  .table-to-cards td::before {
    text-align: left;
    line-height: 1.25;
  }

  .table-to-cards td.no-label,
  .table-to-cards td[data-label="Aksi"] {
    grid-template-columns: 1fr;
    text-align: stretch;
  }

  .table-to-cards td.no-label::before,
  .table-to-cards td[data-label="Aksi"]::before {
    content: "";
  }

  .table-to-cards td[data-label="Aksi"] .btn,
  .table-to-cards td.no-label .btn {
    width: 100%;
  }

  .table-to-cards td[data-label="Aksi"] .btn-group,
  .table-to-cards td.no-label .btn-group {
    display: flex;
    width: 100%;
  }

  .table-to-cards td[data-label="Aksi"] .btn-group .btn,
  .table-to-cards td.no-label .btn-group .btn {
    flex: 1 1 0;
  }

  .plate-pill {
    justify-content: center;
  }

  .info-item {
    padding: 0.78rem;
  }

  .list-group-item .d-flex {
    flex-direction: column;
    gap: 0.45rem !important;
  }

  .list-group-item .badge {
    align-self: flex-start;
  }

  .action-row,
  .form-actions,
  .approval-actions,
  form .d-flex.justify-content-end {
    justify-content: stretch !important;
  }

  .action-row .btn,
  .form-actions .btn,
  .approval-actions .btn,
  form .d-flex.justify-content-end .btn,
  .approval-panel form .btn[type="submit"] {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .brand-title {
    display: none !important;
  }

  .app-logo {
    width: 2.2rem;
    height: 2.2rem;
  }

  .navbar-brand {
    max-width: calc(100% - 4rem);
  }

  .auth-card,
  .register-shell {
    width: 100%;
  }

  .register-side-inner {
    padding: 1.15rem;
  }

  .register-note {
    font-size: 0.86rem;
  }

  .table-to-cards td {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .table-to-cards td::before {
    margin-bottom: -0.35rem;
  }
}

/* =========================
   Fresh install polish v3
   Layout lebih central, menu/form lebih stabil di desktop dan HP.
   ========================= */
html,
body {
  overflow-x: hidden;
}

.app-shell {
  max-width: 1180px;
}

@media (min-width: 1536px) {
  .app-shell {
    max-width: 1220px;
  }
}

.navbar-brand,
.app-nav-main,
.app-user-tools {
  min-height: 2.75rem;
}

.navbar .nav-link {
  min-height: 2.35rem;
}

.btn,
.dropdown-item,
.plate-pill,
.metric-link-card,
.reminder-option {
  align-items: center;
}

.btn {
  display: inline-flex;
  justify-content: center;
  gap: 0.4rem;
}

.page-hero .btn,
.card-header .btn,
.form-actions .btn,
.approval-actions .btn {
  white-space: normal;
}

.card-header .d-flex,
.page-hero .d-flex,
.input-section .row,
form .row {
  min-width: 0;
}

.table-to-cards td[data-label="Dokumen"] .badge,
.table-to-cards td[data-label="Status"] .badge,
.table-to-cards td[data-label="Kepemilikan"] .badge,
.table-to-cards td[data-label="Sewa"] .badge,
.table-to-cards td[data-label="Pemakai"] .badge {
  white-space: normal;
  text-align: center;
}

.approval-panel {
  border-color: color-mix(in srgb, var(--brand-1) 35%, var(--app-border)) !important;
}

.upload-guide-card strong,
.helper-card strong {
  color: color-mix(in srgb, var(--brand-1) 78%, currentColor);
}

[data-bs-theme="dark"] .upload-guide-card strong,
[data-bs-theme="dark"] .helper-card strong {
  color: var(--brand-2);
}

@media (max-width: 991.98px) {
  .app-navbar .container-fluid.app-shell {
    padding-inline: 0.8rem !important;
  }

  .app-navbar-collapse {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin-top: 0.65rem;
  }

  .app-nav-main .nav-link {
    background: rgba(255, 255, 255, 0.07);
  }

  .theme-toggle,
  .app-user-tools form .btn {
    min-height: 2.55rem;
  }
}

@media (max-width: 767.98px) {
  .row.g-4,
  .row.g-3 {
    --bs-gutter-y: 0.9rem;
  }

  .page-hero h1 {
    font-size: 1.45rem;
  }

  .page-hero p,
  .helper-card,
  .upload-guide-card,
  .form-text {
    line-height: 1.45;
  }

  .metric-link-card {
    justify-content: center;
    text-align: left;
  }

  .table-to-cards tr {
    margin-inline: 0;
  }

  .table-to-cards td {
    padding: 0.72rem 0.85rem !important;
  }

  .table-to-cards td > *:last-child {
    justify-self: end;
  }

  .table-to-cards td[data-label="No Pol"] > *,
  .table-to-cards td[data-label="Kendaraan"] > *,
  .table-to-cards td[data-label="File"] > *,
  .table-to-cards td[data-label="Aksi"] > * {
    justify-self: stretch;
  }

  .table-to-cards td[data-label="File"] .btn {
    width: 100%;
  }

  .approval-panel {
    box-shadow: 0 18px 45px rgba(20, 184, 166, 0.14);
  }

  .document-form-sidebar,
  .mobile-sticky-note {
    position: static !important;
  }

  input[type="date"],
  input[type="number"],
  input[type="file"],
  .form-control,
  .form-select {
    font-size: 16px;
  }
}

@media (max-width: 575.98px) {
  .metric-link-card.compact .metric-value {
    font-size: 2.15rem;
  }

  .card-header .btn,
  .page-hero .btn,
  .form-actions .btn,
  .approval-actions .btn {
    width: 100%;
  }

  .card-header .d-flex.gap-2,
  .page-hero .d-flex.gap-2 {
    width: 100%;
  }
}


/* =========================
   UX update: bantuan kecil, modal, role/database security, mobile polish.
   ========================= */
.auth-help-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.help-mini-btn {
  color: var(--brand-1) !important;
  text-decoration: none;
  font-weight: 800;
}

.help-mini-btn:hover {
  text-decoration: underline;
}

.modal-content {
  border-radius: 1.25rem;
  border: 1px solid var(--app-border);
  background: var(--app-surface-solid);
  color: var(--app-text);
  box-shadow: 0 25px 80px rgba(15, 23, 42, 0.22);
}

[data-bs-theme="dark"] .modal-content {
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.48);
}

.modal-header {
  border-bottom-color: var(--app-border);
}

.modal-title i {
  color: var(--brand-1);
}

.doc-preset-btn {
  min-height: 4.4rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
}

.auth-card .card,
.register-card {
  box-shadow: 0 22px 65px rgba(15, 23, 42, 0.1);
}

[data-bs-theme="dark"] .auth-card .card,
[data-bs-theme="dark"] .register-card {
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.35);
}

@media (max-width: 767.98px) {
  .modal-dialog {
    margin: 0.75rem;
  }

  .auth-help-row {
    flex-direction: column;
    gap: 0.35rem;
  }

  .register-side {
    display: none;
  }

  .register-card .card-body {
    padding: 1rem !important;
  }

  .register-grid {
    gap: 0.85rem;
  }

  .input-group-text {
    width: 2.75rem;
    justify-content: center;
  }

  .document-help-actions,
  .page-hero > .d-flex > .d-flex {
    width: 100%;
  }
}

/* =========================
   Arbechem logo + peminjaman workflow polish
   ========================= */
.app-logo.logo-image-wrap {
  width: clamp(5.2rem, 14vw, 8.5rem);
  height: 2.7rem;
  padding: 0.28rem 0.45rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 12px 28px rgba(15, 23, 42, 0.18);
}

.app-logo.logo-image-wrap img,
.logo-auth img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.auth-logo-xl.logo-auth {
  width: min(13rem, 62vw);
  height: 5.25rem;
  border-radius: 1.1rem;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.98) !important;
  color: inherit;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.15);
}

[data-bs-theme="dark"] .auth-logo-xl.logo-auth,
[data-bs-theme="dark"] .app-logo.logo-image-wrap {
  background: rgba(255, 255, 255, 0.94) !important;
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.workflow-step {
  border: 1px solid var(--app-border);
  background: color-mix(in srgb, var(--app-surface-solid) 82%, transparent);
  border-radius: 1rem;
  padding: 0.9rem;
}

.workflow-step .step-number {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-3));
  color: white;
  font-weight: 900;
  margin-bottom: 0.45rem;
}

.request-section-hidden {
  display: none !important;
}

@media (max-width: 991.98px) {
  .app-logo.logo-image-wrap {
    width: 6.4rem;
    height: 2.45rem;
  }
  .navbar-brand {
    gap: 0.55rem !important;
  }
}

@media (max-width: 575.98px) {
  .app-logo.logo-image-wrap {
    width: 5.7rem;
    height: 2.2rem;
    padding: 0.22rem 0.35rem;
  }
  .auth-logo-xl.logo-auth {
    width: min(11rem, 74vw);
    height: 4.6rem;
  }
  .page-eyebrow {
    font-size: 0.66rem;
  }
}


/* =========================
   Clean UI v5
   Menu lebih ringkas, tulisan instruksi dipindah ke modal, dan mobile lebih nyaman.
   ========================= */
.app-navbar {
  min-height: 4.2rem;
}
.app-brand {
  flex-shrink: 0;
}
.app-logo.logo-image-wrap {
  width: clamp(4.75rem, 8vw, 6.4rem);
  height: 2.15rem;
  border-radius: 0.65rem;
  padding: 0.2rem 0.32rem;
}
.brand-title {
  font-size: 1rem;
  letter-spacing: -0.03em;
}
.brand-subtitle {
  font-size: 0.63rem;
}
.app-nav-main {
  justify-content: center;
}
.navbar .nav-link {
  min-height: 2.25rem;
  padding-inline: 0.75rem !important;
  font-weight: 750;
}
.btn-nav-pill {
  color: #fff !important;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  min-height: 2.35rem;
}
.btn-nav-pill:hover,
.btn-nav-pill:focus {
  color: #fff !important;
  background: rgba(255,255,255,0.17);
}
.app-register-btn {
  border-radius: 999px;
  font-weight: 850;
}
.user-chip {
  max-width: 17rem;
  min-height: 2.35rem;
  padding-right: 0.68rem;
}
.page-hero {
  padding: clamp(1rem, 2.25vw, 1.35rem);
  border-radius: 1.35rem;
}
.page-hero h1 {
  margin-bottom: 0 !important;
}
.page-hero p:empty {
  display: none;
}
.metric-link-card {
  min-height: 7.8rem;
}
.metric-link-card.compact {
  min-height: 5.35rem;
}
.metric-value {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
}
.metric-label {
  font-size: 0.84rem;
}
.help-list {
  display: grid;
  gap: 0.8rem;
}
.help-list > div {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--app-surface-solid) 84%, transparent);
  border: 1px solid var(--app-border);
}
.help-list i {
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-3));
  color: #fff;
}
.input-section {
  padding: 1rem;
}
.section-title {
  margin-bottom: 0.8rem;
}
.form-text {
  font-size: 0.82rem;
}
.doc-preset-btn {
  min-height: 3.65rem;
}
.doc-preset-btn .text-soft {
  font-size: 0.78rem;
}
.card-header strong {
  letter-spacing: -0.02em;
}
.app-alert-stack {
  max-width: 980px;
  margin-inline: auto;
}

@media (min-width: 992px) {
  .app-navbar .app-shell {
    display: flex;
    align-items: center;
  }
  .app-navbar-collapse {
    display: flex !important;
    align-items: center;
  }
  .app-user-tools {
    margin-left: auto;
  }
}

@media (max-width: 991.98px) {
  .app-logo.logo-image-wrap {
    width: 5.3rem;
    height: 2rem;
  }
  .app-navbar-collapse {
    padding-bottom: 0.8rem;
  }
  .app-user-tools {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem !important;
  }
  .app-user-tools .user-chip {
    grid-column: 1 / -1;
    order: -1;
  }
  .app-user-tools > .btn,
  .app-user-tools > a.btn,
  .app-user-tools > form,
  .app-user-tools > form > .btn {
    width: 100%;
  }
  .navbar .nav-link,
  .dropdown-menu .dropdown-item {
    font-size: 0.98rem;
  }
}

@media (max-width: 575.98px) {
  .app-navbar .container-fluid.app-shell {
    padding-inline: 0.7rem !important;
  }
  .app-logo.logo-image-wrap {
    width: 4.75rem;
    height: 1.85rem;
  }
  .app-user-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .app-user-tools .user-chip {
    min-height: 2.5rem;
  }
  .avatar-circle {
    width: 1.85rem;
    height: 1.85rem;
  }
  .page-hero {
    padding: 0.92rem;
  }
  .page-hero .d-flex.gap-2 .btn {
    flex: 1 1 calc(50% - 0.35rem);
    min-height: 2.55rem;
  }
  .page-hero .d-flex.gap-2 .btn:first-child:last-child {
    flex-basis: 100%;
  }
  .metric-link-card {
    min-height: 6.35rem;
  }
  .metric-value {
    font-size: 2rem;
  }
  .metric-label {
    font-size: 0.78rem;
  }
  .icon-bubble {
    width: 2.2rem;
    height: 2.2rem;
  }
  .table-to-cards td {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .table-to-cards td > *:last-child {
    justify-self: stretch;
  }
  .doc-preset-btn {
    min-height: 3.35rem;
  }
}

/* ========================================================================== */
/* ARBE AssetHub v3 — production dark theme / corporate red + navy            */
/* ========================================================================== */
:root,
[data-bs-theme="dark"] {
  color-scheme: dark;
  --app-bg: #070b14;
  --app-bg-2: #0b1220;
  --app-text: #f4f7fb;
  --app-text-soft: #9aa7bb;
  --app-surface: rgba(17, 25, 40, 0.94);
  --app-surface-solid: #111928;
  --app-surface-2: #151f31;
  --app-border: rgba(148, 163, 184, 0.18);
  --app-border-strong: rgba(226, 232, 240, 0.26);
  --app-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --app-shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.28);
  --brand-1: #ef252f;
  --brand-2: #ff5961;
  --brand-3: #3158dc;
  --accent: #f5b942;
  --success: #2bc48a;
  --danger: #ff5663;
  --info: #55a8ff;
}

html { background: var(--app-bg); }
body {
  background:
    radial-gradient(circle at 0 0, rgba(239, 37, 47, 0.16), transparent 32rem),
    radial-gradient(circle at 100% 0, rgba(49, 88, 220, 0.16), transparent 34rem),
    linear-gradient(180deg, #080d17 0%, #060a12 100%) !important;
  color: var(--app-text);
}

.app-shell { max-width: 1680px; margin-inline: auto; }
.app-navbar {
  min-height: 78px;
  background: linear-gradient(115deg, rgba(7, 11, 20, .98), rgba(18, 24, 39, .98) 56%, rgba(35, 19, 30, .98)) !important;
  border-bottom: 1px solid rgba(239, 37, 47, .34) !important;
  box-shadow: 0 16px 42px rgba(0,0,0,.34);
}
.app-brand { display:flex; align-items:center; gap:.85rem; min-width:320px; padding:0; }
.brand-logo-box {
  display:flex; align-items:center; justify-content:center;
  width:112px; height:54px; padding:3px 7px;
  background:#fff; border-radius:12px;
  border:1px solid rgba(255,255,255,.36);
  box-shadow:0 8px 24px rgba(0,0,0,.28);
  overflow:hidden; flex:0 0 auto;
}
.brand-logo-box img { display:block; width:100%; height:100%; object-fit:contain; }
.brand-copy { display:flex; flex-direction:column; line-height:1.16; min-width:0; }
.brand-copy strong { color:#fff; font-size:1.02rem; font-weight:850; letter-spacing:.005em; white-space:nowrap; }
.brand-copy small { color:#cbd5e1; font-size:.82rem; font-weight:650; margin-top:.2rem; }
.app-main-nav .nav-link { color:#d9e2f1 !important; font-weight:700; }
.app-main-nav .nav-link:hover,
.app-main-nav .nav-link:focus { color:#fff !important; background:rgba(239,37,47,.15); }
.app-dropdown { background:#111927 !important; border-color:rgba(148,163,184,.22) !important; box-shadow:0 20px 55px rgba(0,0,0,.45); }
.app-dropdown .dropdown-item { color:#e6edf8; }
.app-dropdown .dropdown-item:hover { background:rgba(239,37,47,.16); color:#fff; }
.app-user-area { display:flex; align-items:center; gap:.65rem; }
.user-email { max-width:240px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#d8e2f0; }
.role-pill { border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.08); }
.role-super_admin { border-color:rgba(245,185,66,.48); color:#ffd777; }
.role-admin_hrd { border-color:rgba(85,168,255,.48); color:#8bc6ff; }
.role-admin_it { border-color:rgba(43,196,138,.48); color:#67ddb0; }

.page-header,
.page-hero {
  background:linear-gradient(135deg, rgba(22,31,48,.96), rgba(12,18,30,.95));
  border:1px solid var(--app-border);
  border-left:4px solid var(--brand-1);
  border-radius:18px;
  padding:1.35rem 1.45rem;
  margin-bottom:1.15rem;
  box-shadow:var(--app-shadow-soft);
}
.page-header { display:flex; justify-content:space-between; align-items:center; gap:1.2rem; }
.page-header h1 { margin:0; font-size:clamp(1.45rem, 2.4vw, 2.2rem); font-weight:850; color:#fff; }
.page-header p { margin:.35rem 0 0; color:var(--app-text-soft); }
.page-eyebrow { color:#ff747b !important; }
.page-actions { display:flex; gap:.65rem; flex-wrap:wrap; justify-content:flex-end; }
.title-muted { color:#aab5c5; font-weight:650; }

.module-section,
.panel-card,
.form-section,
.filter-card,
.detail-hero,
.card,
.table-card {
  background:linear-gradient(145deg, rgba(18,27,43,.98), rgba(12,19,31,.98)) !important;
  border:1px solid var(--app-border) !important;
  box-shadow:var(--app-shadow-soft);
}
.module-section { border-radius:20px; padding:1.15rem; }
.vehicle-module { border-top:3px solid #ef252f !important; }
.it-module { border-top:3px solid #3c7cf6 !important; }
.section-heading h2, .panel-header h3 { color:#f8fafc; }
.section-heading p, .panel-header small { color:var(--app-text-soft); }
.section-icon { background:rgba(239,37,47,.15); color:#ff666e; }
.it-module .section-icon { background:rgba(60,124,246,.16); color:#73a7ff; }

.metric-card {
  background:linear-gradient(145deg, rgba(24,34,53,.96), rgba(13,20,33,.98));
  border:1px solid var(--app-border);
  box-shadow:0 12px 28px rgba(0,0,0,.24);
}
.metric-card:hover { border-color:rgba(239,37,47,.46); transform:translateY(-2px); }
.metric-card strong { color:#fff; }
.metric-card small { color:#9eabc0; }
.metric-icon.primary { color:#9eb6ff; background:rgba(49,88,220,.18); }
.metric-icon.info { color:#86c4ff; background:rgba(85,168,255,.15); }
.metric-icon.success { color:#62ddb0; background:rgba(43,196,138,.15); }
.metric-icon.warning { color:#ffd16d; background:rgba(245,185,66,.15); }
.metric-icon.danger { color:#ff7b84; background:rgba(255,86,99,.15); }
.metric-icon.accent { color:#ff8b91; background:rgba(239,37,47,.15); }

.btn-primary {
  background:linear-gradient(135deg,#ef252f,#c81422) !important;
  border-color:#ef252f !important;
  box-shadow:0 10px 26px rgba(239,37,47,.22);
}
.btn-primary:hover { background:linear-gradient(135deg,#ff3b45,#db1825) !important; transform:translateY(-1px); }
.btn-outline-info { color:#8ac6ff; border-color:rgba(85,168,255,.62); }
.btn-outline-info:hover { color:#fff; background:#2877cc; border-color:#2877cc; }
.btn-ghost { color:#d8e2f0; background:rgba(255,255,255,.04); border:1px solid var(--app-border); }
.btn-ghost:hover { color:#fff; background:rgba(255,255,255,.10); border-color:var(--app-border-strong); }

.form-control,
.form-select,
.form-check-input,
.input-group-text {
  color:#eef2f8 !important;
  background-color:#0d1523 !important;
  border-color:rgba(148,163,184,.24) !important;
}
.form-control::placeholder { color:#6f7e94; }
.form-control:focus, .form-select:focus {
  border-color:#ef4b54 !important;
  box-shadow:0 0 0 .22rem rgba(239,37,47,.15) !important;
}
.form-check-input:checked { background-color:#ef252f !important; border-color:#ef252f !important; }
.form-label, .filter-card label { color:#d8e2ef; font-weight:700; }
.form-text { color:#8392a8 !important; }
.form-section-title > span { background:rgba(239,37,47,.16); color:#ff6e76; border:1px solid rgba(239,37,47,.28); }

.app-table { color:#e9eef7; }
.app-table thead th { color:#aab7c9; background:rgba(8,13,23,.62); }
.app-table tbody tr:hover { background:rgba(255,255,255,.035); }
.app-table td, .app-table th { border-color:rgba(148,163,184,.14) !important; vertical-align:middle; }
.app-table a { color:#7db8ff; }
.app-table small { display:block; color:#8493a8; margin-top:.15rem; }
.table-actions { display:flex; gap:.35rem; justify-content:flex-end; }
.table-actions a, .table-actions button { display:inline-grid; place-items:center; width:32px; height:32px; border-radius:9px; background:rgba(255,255,255,.05); color:#cbd5e1; border:1px solid var(--app-border); }
.table-actions a:hover, .table-actions button:hover { color:#fff; background:rgba(239,37,47,.17); border-color:rgba(239,37,47,.4); }

.status-badge { display:inline-flex; align-items:center; white-space:nowrap; border-radius:999px; padding:.34rem .62rem; font-size:.76rem; font-weight:800; border:1px solid transparent; }
.status-badge.success { color:#62ddb0; background:rgba(43,196,138,.13); border-color:rgba(43,196,138,.32); }
.status-badge.info, .status-badge.primary { color:#89c4ff; background:rgba(85,168,255,.13); border-color:rgba(85,168,255,.30); }
.status-badge.warning { color:#ffd16d; background:rgba(245,185,66,.13); border-color:rgba(245,185,66,.30); }
.status-badge.danger { color:#ff7e88; background:rgba(255,86,99,.13); border-color:rgba(255,86,99,.32); }
.status-badge.secondary { color:#bdc7d5; background:rgba(148,163,184,.10); border-color:rgba(148,163,184,.25); }

.detail-photo { background:#0b1321; border-color:var(--app-border); }
.detail-photo img { width:100%; height:100%; object-fit:contain; background:#fff; border-radius:14px; }
.description-grid small { color:#8392a8; }
.description-grid strong { color:#f0f4fa; }
.pre-line { white-space:pre-line; }
.empty-state { color:#9aa8bc; }
.alert { border-color:rgba(255,255,255,.12); }
.app-footer { color:#7f8da2; border-top:1px solid rgba(148,163,184,.12); margin-top:2rem; padding:1rem 0 1.4rem; }

/* High-visibility requirement flags. */
.requirement-chip { display:inline-flex; align-items:center; gap:.35rem; border-radius:999px; padding:.35rem .65rem; font-size:.78rem; font-weight:800; }
.requirement-chip.required { color:#ffd16d; border:1px solid rgba(245,185,66,.35); background:rgba(245,185,66,.12); }
.requirement-chip.optional { color:#99a6b8; border:1px solid var(--app-border); background:rgba(255,255,255,.035); }

@media (max-width: 1199.98px) {
  .app-brand { min-width:0; }
  .app-user-area { align-items:flex-start; flex-wrap:wrap; padding-top:1rem; }
  .app-main-nav { padding-top:1rem; gap:.25rem; }
}
@media (max-width: 767.98px) {
  .app-navbar { min-height:70px; }
  .brand-logo-box { width:88px; height:44px; }
  .brand-copy strong { font-size:.88rem; white-space:normal; }
  .brand-copy small { font-size:.74rem; }
  .page-header { align-items:flex-start; flex-direction:column; }
  .page-actions { width:100%; justify-content:flex-start; }
  .page-actions .btn { flex:1 1 auto; }
  .module-section { padding:.8rem; }
}

/* Document setup helper and conditional request sections. */
.doc-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(239, 37, 47, .24);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(239, 37, 47, .09), rgba(49, 88, 220, .08));
}
.doc-guide strong { display: block; color: #fff; font-size: 1rem; margin-bottom: .25rem; }
.doc-guide p { color: var(--app-text-soft); font-size: .86rem; }
.doc-preset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; }
.doc-preset-btn {
  min-height: 2.55rem;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: rgba(255,255,255,.045);
  color: #dce5f2;
  font-size: .76rem;
  font-weight: 750;
}
.doc-preset-btn:hover { border-color: rgba(239,37,47,.55); background: rgba(239,37,47,.14); color: #fff; }
[hidden] { display: none !important; }
@media (max-width: 900px) {
  .doc-guide { grid-template-columns: 1fr; }
  .doc-preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* === UI Refresh v3.1 === */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
  opacity: .28;
}
.page-header-feature {
  position: relative;
  overflow: hidden;
}
.page-header-feature::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,.10), transparent 62%);
  border-radius: 50%;
}
.enhanced-card {
  position: relative;
  overflow: hidden;
}
.enhanced-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(239,37,47,0), rgba(239,37,47,.9), rgba(49,88,220,.85), rgba(49,88,220,0));
}
.asset-symbol {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.30);
}
.vehicle-symbol { background: linear-gradient(135deg, #ef252f, #a31129); }
.vehicle-symbol.delivery { background: linear-gradient(135deg, #f59e0b, #dc2626); }
.vehicle-symbol.shuttle { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.vehicle-symbol.factory { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.vehicle-symbol.visit { background: linear-gradient(135deg, #7c3aed, #2563eb); }
.vehicle-symbol.pool { background: linear-gradient(135deg, #0f766e, #0ea5e9); }
.it-symbol.computer { background: linear-gradient(135deg, #3158dc, #1d4ed8); }
.it-symbol.mobile { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.it-symbol.printer { background: linear-gradient(135deg, #f59e0b, #d97706); }
.it-symbol.network { background: linear-gradient(135deg, #06b6d4, #0f766e); }
.it-symbol.server { background: linear-gradient(135deg, #7c3aed, #4338ca); }
.it-symbol.ups { background: linear-gradient(135deg, #10b981, #059669); }
.it-symbol.other { background: linear-gradient(135deg, #64748b, #334155); }
.mini-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.mini-chip {
  display: inline-flex;
  align-items: center;
  padding: .28rem .58rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: #dce7f3;
}
.ownership-chip { border-color: rgba(239,37,47,.26); background: rgba(239,37,47,.10); color: #ff9ea4; }
.group-chip { border-color: rgba(49,88,220,.28); background: rgba(49,88,220,.11); color: #b7c7ff; }
.dept-chip { border-color: rgba(16,185,129,.24); background: rgba(16,185,129,.10); color: #9ff0cd; }
.asset-card-footer-wrap {
  align-items: flex-start !important;
  gap: .9rem;
}
.filter-card {
  background: linear-gradient(145deg, rgba(11,18,32,.98), rgba(11,19,34,.98)) !important;
  border-radius: 18px;
  padding: 1rem;
}
.filter-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, minmax(160px, 1fr)) auto;
  gap: .9rem;
  align-items: end;
}
.filter-grow { min-width: 0; }
.form-select, .form-control {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
.form-select option {
  background: #08111f;
  color: #e8eef8;
}
.btn-outline-info {
  background: rgba(85,168,255,.06);
}
.btn-outline-info:hover { box-shadow: 0 10px 22px rgba(40,119,204,.22); }
.btn-ghost:hover { box-shadow: 0 8px 20px rgba(255,255,255,.08); }
.brand-logo-box {
  position: relative;
}
.brand-logo-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.08);
  pointer-events: none;
}
.status-badge {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
@media (max-width: 1200px) {
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .filter-grid { grid-template-columns: 1fr; }
  .asset-symbol { width: 52px; height: 52px; font-size: 1.25rem; }
  .mini-chip { font-size: .68rem; }
}

/* ========================================================================== */
/* ARBE AssetHub v3.1.2 — dashboard layout repair                             */
/* Fixes missing base layout classes used by templates/inventory/dashboard.   */
/* ========================================================================== */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading > div:first-child {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 850;
  letter-spacing: -.02em;
}

.section-heading p {
  margin: .18rem 0 0;
  font-size: .88rem;
}

.section-heading > a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  flex: 0 0 auto;
  color: #8cc4ff;
  font-weight: 750;
  text-decoration: none;
  padding: .48rem .7rem;
  border-radius: .75rem;
  border: 1px solid rgba(85, 168, 255, .22);
  background: rgba(85, 168, 255, .06);
}

.section-heading > a:hover {
  color: #fff;
  border-color: rgba(85, 168, 255, .55);
  background: rgba(85, 168, 255, .14);
}

.section-icon {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  font-size: 1.18rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 24px rgba(0, 0, 0, .22);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .78rem;
}

.metric-card {
  min-width: 0;
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: .78rem;
  padding: .88rem;
  border-radius: 15px;
  color: var(--app-text);
  text-decoration: none;
  overflow: hidden;
  position: relative;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.metric-card::after {
  content: "";
  position: absolute;
  width: 78px;
  height: 78px;
  right: -35px;
  bottom: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .08), transparent 68%);
  pointer-events: none;
}

.metric-card > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.metric-card strong {
  display: block;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1;
  margin-bottom: .28rem;
  font-weight: 900;
}

.metric-card small {
  display: block;
  line-height: 1.25;
  font-size: .77rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.metric-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  font-size: 1.08rem;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr);
  gap: 1rem;
  align-items: stretch;
}

.panel-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
}

.panel-header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--app-border);
  background: rgba(6, 12, 22, .38);
}

.panel-header > div:first-child {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .62rem;
}

.panel-header > div:first-child > i {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #ff777e;
  border-radius: 10px;
  background: rgba(239, 37, 47, .12);
  border: 1px solid rgba(239, 37, 47, .20);
}

.it-module .panel-header > div:first-child > i {
  color: #8bc0ff;
  background: rgba(49, 88, 220, .14);
  border-color: rgba(49, 88, 220, .24);
}

.panel-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 820;
  line-height: 1.2;
}

.panel-header > a {
  flex: 0 0 auto;
  color: #8cc4ff;
  font-size: .79rem;
  font-weight: 750;
  text-decoration: none;
}

.panel-header > a:hover {
  color: #fff;
}

.count-chip {
  min-width: 30px;
  height: 30px;
  padding: 0 .55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-size: .78rem;
  font-weight: 850;
  background: rgba(239, 37, 47, .16);
  border: 1px solid rgba(239, 37, 47, .30);
}

.request-stack {
  display: flex;
  flex-direction: column;
  min-height: 180px;
}

.request-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  color: var(--app-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(148, 163, 184, .11);
  transition: background .16s ease;
}

.request-row:last-child {
  border-bottom: 0;
}

.request-row:hover {
  color: #fff;
  background: rgba(255, 255, 255, .035);
}

.request-row > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.request-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .88rem;
}

.request-row small {
  color: var(--app-text-soft);
  font-size: .73rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-icon {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
}

.request-icon.vehicle {
  background: linear-gradient(135deg, #ef252f, #a6112b);
}

.request-icon.it {
  background: linear-gradient(135deg, #3158dc, #1746bb);
}

.empty-state.compact {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 1.6rem 1rem;
  font-size: .82rem;
}

.empty-state.compact i {
  margin: 0;
  font-size: 1.75rem;
}

.panel-card .table-responsive {
  min-height: 180px;
}

.panel-card .app-table thead th {
  padding: .7rem .9rem;
  font-size: .7rem;
}

.panel-card .app-table tbody td {
  padding: .75rem .9rem;
}

@media (max-width: 1399.98px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

@media (max-width: 767.98px) {
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric-card {
    min-height: 82px;
  }
}

@media (max-width: 479.98px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }
  .metric-card {
    min-height: 76px;
  }
  .panel-header {
    align-items: flex-start;
  }
}

/* ========================================================================== */
/* ARBE AssetHub v3.1.2 — structural layout completion                        */
/* Memperbaiki dashboard/kartu/form yang sebelumnya hanya memiliki warna.     */
/* ========================================================================== */

/* Heading tiap modul */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section-heading > div {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 850;
  letter-spacing: -.02em;
}
.section-heading p {
  margin: .2rem 0 0;
  font-size: .84rem;
}
.section-heading > a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: #8cc7ff;
  font-weight: 750;
  font-size: .85rem;
  text-decoration: none;
  white-space: nowrap;
}
.section-heading > a:hover { color: #fff; }
.section-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 1.15rem;
}

/* Ringkasan angka dashboard */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .75rem;
}
.metric-card {
  min-width: 0;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(145deg, rgba(24,34,53,.96), rgba(12,19,31,.98));
  border: 1px solid rgba(148,163,184,.18);
  box-shadow: 0 10px 26px rgba(0,0,0,.20);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.metric-card:hover {
  color: inherit;
  transform: translateY(-3px);
  border-color: rgba(239,37,47,.52);
  box-shadow: 0 18px 36px rgba(0,0,0,.30);
}
.metric-card > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.metric-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 13px;
  font-size: 1.08rem;
  border: 1px solid rgba(255,255,255,.08);
}
.metric-card strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.03em;
}
.metric-card small {
  display: block;
  margin-top: .32rem;
  line-height: 1.25;
  font-size: .76rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* Panel dashboard: tabel utama + antrean request */
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(300px, .88fr);
  gap: 1rem;
  align-items: stretch;
}
.panel-card {
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
}
.panel-header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid rgba(148,163,184,.14);
  background: rgba(8,13,23,.36);
}
.panel-header > div {
  display: flex;
  align-items: center;
  gap: .62rem;
  min-width: 0;
}
.panel-header > div > i {
  color: #ff6670;
  font-size: 1.05rem;
  flex: 0 0 auto;
}
.it-module .panel-header > div > i { color: #7fb2ff; }
.panel-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 820;
  letter-spacing: -.015em;
}
.panel-header > a {
  color: #8cc7ff;
  font-size: .78rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.panel-header > a:hover { color: #fff; }
.count-chip {
  min-width: 30px;
  height: 30px;
  padding: 0 .55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(239,37,47,.18);
  border: 1px solid rgba(239,37,47,.40);
  font-weight: 850;
  font-size: .78rem;
}
.it-module .count-chip {
  background: rgba(49,88,220,.18);
  border-color: rgba(90,130,255,.42);
}

/* Request list di dashboard/detail */
.request-stack {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: .65rem;
}
.request-row {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: .72rem;
  padding: .72rem;
  border-radius: 13px;
  color: #eaf0f8;
  text-decoration: none;
  border: 1px solid transparent;
  background: rgba(255,255,255,.025);
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.request-row:hover {
  color: #fff;
  background: rgba(255,255,255,.065);
  border-color: rgba(148,163,184,.18);
  transform: translateX(2px);
}
.request-row > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.request-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .87rem;
}
.request-row small {
  margin-top: .2rem;
  color: #8796aa;
  font-size: .72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.request-row > i:last-child { color: #6f7e94; }
.request-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex: 0 0 auto;
}
.request-icon.vehicle { color: #ff7e86; background: rgba(239,37,47,.13); }
.request-icon.it { color: #8bb9ff; background: rgba(49,88,220,.16); }

/* Empty state versi ringkas */
.empty-state.compact {
  min-height: 145px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .55rem;
  padding: 1.35rem;
  font-size: .82rem;
  color: #98a7ba;
}
.empty-state.compact i {
  margin: 0;
  font-size: 1.85rem;
  color: #ff5961;
}
.it-module .empty-state.compact i { color: #73a7ff; }

/* Kartu daftar kendaraan dan inventaris IT */
.asset-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.asset-card-grid > .empty-state {
  grid-column: 1 / -1;
  width: 100%;
}
.asset-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  padding: 1rem;
  background: linear-gradient(145deg, rgba(18,27,43,.98), rgba(10,17,28,.98));
  border: 1px solid rgba(148,163,184,.18);
  box-shadow: 0 14px 36px rgba(0,0,0,.25);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.asset-card:hover {
  transform: translateY(-3px);
  border-color: rgba(239,37,47,.40);
  box-shadow: 0 20px 46px rgba(0,0,0,.34);
}
.it-card:hover { border-color: rgba(85,168,255,.42); }
.asset-card-top {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: start;
  gap: .8rem;
}
.asset-identity {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.asset-identity > a {
  color: #fff;
  font-size: 1.03rem;
  font-weight: 900;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.asset-identity > a:hover { color: #ff858c; }
.it-card .asset-identity > a:hover { color: #95c2ff; }
.asset-identity > span {
  color: #98a7ba;
  margin-top: .2rem;
  font-size: .78rem;
  overflow-wrap: anywhere;
}
.asset-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  margin-top: 1rem;
}
.asset-info-grid > div {
  min-width: 0;
  padding: .72rem;
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(148,163,184,.11);
}
.asset-info-grid small {
  display: block;
  color: #8190a5;
  font-size: .66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .045em;
  margin-bottom: .3rem;
}
.asset-info-grid strong,
.asset-info-grid span {
  display: block;
  color: #edf2f8;
  font-size: .80rem;
  overflow-wrap: anywhere;
}
.asset-info-grid span { color: #8998ac; margin-top: .16rem; }
.asset-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid rgba(148,163,184,.12);
}
.condition-line {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #cbd5e1;
  font-size: .78rem;
  font-weight: 750;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
  background: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148,163,184,.10);
}
.dot.success, .dot.good { background:#2bc48a; box-shadow:0 0 0 4px rgba(43,196,138,.12); }
.dot.warning, .dot.monitor, .dot.fair { background:#f5b942; box-shadow:0 0 0 4px rgba(245,185,66,.12); }
.dot.danger, .dot.need_service, .dot.need_repair, .dot.damaged, .dot.not_roadworthy, .dot.not_usable { background:#ff5663; box-shadow:0 0 0 4px rgba(255,86,99,.12); }

/* Detail kendaraan/IT */
.detail-hero {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) minmax(220px,auto);
  align-items: center;
  gap: 1rem;
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
}
.detail-icon {
  width: 66px;
  height: 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  color: #fff;
  font-size: 1.6rem;
  background: linear-gradient(135deg,#ef252f,#a31129);
  box-shadow: 0 16px 32px rgba(239,37,47,.22);
}
.it-detail-hero .detail-icon { background: linear-gradient(135deg,#3158dc,#1d4ed8); box-shadow:0 16px 32px rgba(49,88,220,.22); }
.detail-main h2 { margin: 0; color:#fff; font-size:clamp(1.2rem,2vw,1.65rem); font-weight:850; }
.detail-badges { display:flex; flex-wrap:wrap; gap:.45rem; margin-top:.55rem; }
.detail-status-block {
  display: flex;
  flex-direction: column;
  gap: .16rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(148,163,184,.16);
}
.detail-status-block small { color:#8190a5; text-transform:uppercase; letter-spacing:.05em; font-size:.66rem; font-weight:800; }
.detail-status-block strong { color:#fff; font-size:.95rem; }
.detail-status-block span { color:#95a4b8; font-size:.76rem; }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
}
.description-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .7rem;
  padding: 1rem;
}
.description-grid.cols-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.description-grid > div {
  min-width:0;
  padding:.78rem;
  border-radius:12px;
  background:rgba(255,255,255,.025);
  border:1px solid rgba(148,163,184,.10);
}
.description-grid small { display:block; margin-bottom:.28rem; font-size:.66rem; text-transform:uppercase; letter-spacing:.05em; font-weight:800; }
.description-grid strong { display:block; font-size:.82rem; overflow-wrap:anywhere; }
.panel-card > p.pre-line { margin:0; padding:1rem; color:#cbd5e1; }
.required-doc-banner {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.55rem;
  margin:.9rem 1rem;
  padding:.75rem .85rem;
  border-radius:12px;
  background:rgba(245,185,66,.08);
  border:1px solid rgba(245,185,66,.20);
  color:#cbd5e1;
  font-size:.78rem;
}
.required-doc-banner .label { color:#ffd16d; font-weight:850; }

/* Form layout */
.form-layout {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-layout.narrow { max-width: 1020px; margin-inline:auto; }
.form-section {
  border-radius: 18px;
  padding: 1.05rem;
}
.form-section-title {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  margin-bottom: 1rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid rgba(148,163,184,.12);
}
.form-section-title > span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 12px;
  font-weight: 900;
}
.form-section-title h2 { margin:0; color:#fff; font-size:1.02rem; font-weight:850; }
.form-section-title p { margin:.2rem 0 0; color:#8998ac; font-size:.76rem; }
.form-grid { display:grid; gap:.9rem; align-items:start; }
.form-grid.cols-2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.form-grid.cols-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.form-grid.cols-4 { grid-template-columns:repeat(4,minmax(0,1fr)); }
.form-grid .span-2 { grid-column:span 2; }
.form-grid .span-3 { grid-column:span 3; }
.form-actions {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(10,17,28,.88);
  border: 1px solid rgba(148,163,184,.14);
}
.filter-actions { display:flex; align-items:center; gap:.5rem; align-self:end; }

/* Tabel agar isi kosong tidak membuat panel terlalu tinggi */
.panel-card .table-responsive { min-height: 0; }
.app-table thead th { padding:.72rem .8rem; }
.app-table tbody td { padding:.75rem .8rem; }

/* Responsive */
@media (max-width: 1399.98px) {
  .metric-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 1099.98px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .asset-info-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .description-grid.cols-4 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .form-grid.cols-4 { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767.98px) {
  .section-heading { align-items:flex-start; }
  .section-heading > a { margin-top:.45rem; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-card { min-height:76px; padding:.78rem; }
  .metric-icon { width:38px; height:38px; }
  .metric-card strong { font-size:1.25rem; }
  .asset-card-grid { grid-template-columns:1fr; }
  .asset-info-grid { grid-template-columns:1fr 1fr; }
  .asset-card-top { grid-template-columns:auto minmax(0,1fr); }
  .asset-card-top > .status-badge { grid-column:1 / -1; justify-self:start; }
  .detail-hero { grid-template-columns:auto minmax(0,1fr); }
  .detail-status-block { grid-column:1 / -1; border-left:0; border-top:1px solid rgba(148,163,184,.16); padding:.8rem 0 0; }
  .detail-grid, .description-grid, .description-grid.cols-4 { grid-template-columns:1fr; }
  .form-grid.cols-2, .form-grid.cols-3, .form-grid.cols-4 { grid-template-columns:1fr; }
  .form-grid .span-2, .form-grid .span-3 { grid-column:auto; }
  .panel-header { align-items:flex-start; }
  .panel-header > a { white-space:normal; text-align:right; }
}
@media (max-width: 499.98px) {
  .metric-grid { grid-template-columns:1fr; }
  .asset-info-grid { grid-template-columns:1fr; }
  .section-heading { flex-direction:column; }
  .section-heading > a { margin-top:0; }
  .asset-card-footer { align-items:flex-start; flex-direction:column; }
  .asset-card-footer > div:last-child { width:100%; }
  .asset-card-footer .btn { flex:1 1 auto; }
}
