@charset "UTF-8";
/* ── BASE ── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.ui-icon {
  display: inline-block;
  flex-shrink: 0;
  color: currentColor;
}

.legacy-fa-svg {
  display: inline-block;
  flex-shrink: 0;
  color: currentColor;
  vertical-align: -0.125em;
}

body {
  font-family: "Geist", "Geist Fallback", system-ui, sans-serif;
  background: var(--app-bg);
  color: var(--app-text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

:root,
[data-theme=light] {
  color-scheme: light;
  --brand-white: #ffffff;
  --brand-accent: #f78e1e;
  --brand-primary: #1b51a0;
  --app-bg: #f8fafc;
  --app-surface: #ffffff;
  --app-surface-muted: #f1f5f9;
  --app-text: #1e293b;
  --app-heading: #111827;
  --app-muted: #6b7280;
  --app-text-muted: #6b7280;
  --text: var(--app-text);
  --text-muted: var(--app-text-muted);
  --muted: var(--app-text-muted);
  --app-subtle: #94a3b8;
  --app-border: #e2e8f0;
  --app-border-soft: #e8edf4;
  --app-header-bg: rgba(255, 255, 255, 0.92);
  --app-sidebar-bg: linear-gradient(180deg, #1b51a0 0%, #2667bd 45%, #f78e1e 100%);
  --app-control-bg: #ffffff;
  --app-control-text: #475569;
  --app-control-placeholder: #94a3b8;
  --app-hover-bg: #fff6ec;
  --app-table-hover-bg: rgba(247, 142, 30, 0.06);
  --app-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme=dark],
.theme-dark,
.dark,
body.dark-mode {
  color-scheme: dark;
  --app-bg: #0b1120;
  --app-surface: #111827;
  --app-surface-muted: #1e293b;
  --app-text: #e5edf7;
  --app-heading: #f8fafc;
  --app-muted: #cbd5e1;
  --app-text-muted: #cbd5e1;
  --text: var(--app-text);
  --text-muted: var(--app-text-muted);
  --muted: var(--app-text-muted);
  --app-subtle: #a8b4c5;
  --app-border: #334155;
  --app-border-soft: #334155;
  --app-header-bg: rgba(17, 24, 39, 0.94);
  --app-control-bg: #172033;
  --app-control-text: #e2e8f0;
  --app-control-placeholder: #94a3b8;
  --app-hover-bg: rgba(51, 65, 85, 0.72);
  --app-hover-border: rgba(148, 163, 184, 0.42);
  --app-active-bg: rgba(247, 142, 30, 0.18);
  --app-active-border: rgba(247, 142, 30, 0.58);
  --app-active-text: #ffb169;
  --app-table-hover-bg: rgba(30, 41, 59, 0.92);
  --app-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

[data-theme=dark] {
  background: var(--app-bg);
  color: var(--app-text);
}
[data-theme=dark] .text-muted,
[data-theme=dark] .text-secondary,
[data-theme=dark] .form-text,
[data-theme=dark] small,
[data-theme=dark] .small,
[data-theme=dark] label,
[data-theme=dark] .form-label {
  color: var(--app-text-muted) !important;
}
[data-theme=dark] h1,
[data-theme=dark] h2,
[data-theme=dark] h3,
[data-theme=dark] h4,
[data-theme=dark] h5,
[data-theme=dark] h6,
[data-theme=dark] .card-title,
[data-theme=dark] .modal-title {
  color: var(--app-heading);
}
[data-theme=dark] .card,
[data-theme=dark] .modal-content,
[data-theme=dark] .offcanvas,
[data-theme=dark] .dropdown-menu,
[data-theme=dark] .list-group-item {
  border-color: var(--app-border-soft);
  background-color: var(--app-surface);
  color: var(--app-text);
}
[data-theme=dark] .card-header,
[data-theme=dark] .card-footer,
[data-theme=dark] .modal-header,
[data-theme=dark] .modal-footer,
[data-theme=dark] .dropdown-divider {
  border-color: var(--app-border-soft);
  background-color: var(--app-surface-muted);
}
[data-theme=dark] .dropdown-item,
[data-theme=dark] .list-group-item-action {
  color: var(--app-text);
}
[data-theme=dark] .dropdown-item:hover, [data-theme=dark] .dropdown-item:focus,
[data-theme=dark] .list-group-item-action:hover,
[data-theme=dark] .list-group-item-action:focus {
  background-color: var(--app-hover-bg);
  color: var(--app-heading);
}
[data-theme=dark] .dropdown-item.disabled,
[data-theme=dark] .dropdown-item:disabled,
[data-theme=dark] .list-group-item.disabled {
  color: #7f8ea3;
}
[data-theme=dark] .form-control,
[data-theme=dark] .form-select,
[data-theme=dark] textarea,
[data-theme=dark] input[type=text],
[data-theme=dark] input[type=search],
[data-theme=dark] input[type=email],
[data-theme=dark] input[type=number],
[data-theme=dark] input[type=password],
[data-theme=dark] input[type=tel],
[data-theme=dark] input[type=url] {
  border-color: var(--app-border-soft);
  background-color: var(--app-control-bg);
  color: var(--app-control-text);
}
[data-theme=dark] .form-control::placeholder,
[data-theme=dark] .form-select::placeholder,
[data-theme=dark] textarea::placeholder,
[data-theme=dark] input[type=text]::placeholder,
[data-theme=dark] input[type=search]::placeholder,
[data-theme=dark] input[type=email]::placeholder,
[data-theme=dark] input[type=number]::placeholder,
[data-theme=dark] input[type=password]::placeholder,
[data-theme=dark] input[type=tel]::placeholder,
[data-theme=dark] input[type=url]::placeholder {
  color: var(--app-control-placeholder);
  opacity: 1;
}
[data-theme=dark] .form-control:focus,
[data-theme=dark] .form-select:focus,
[data-theme=dark] textarea:focus,
[data-theme=dark] input[type=text]:focus,
[data-theme=dark] input[type=search]:focus,
[data-theme=dark] input[type=email]:focus,
[data-theme=dark] input[type=number]:focus,
[data-theme=dark] input[type=password]:focus,
[data-theme=dark] input[type=tel]:focus,
[data-theme=dark] input[type=url]:focus {
  border-color: rgba(247, 142, 30, 0.55);
  background-color: #1d2738;
  color: var(--app-control-text);
  box-shadow: 0 0 0 3px rgba(247, 142, 30, 0.14);
}
[data-theme=dark] .form-control:disabled, [data-theme=dark] .form-control[readonly],
[data-theme=dark] .form-select:disabled,
[data-theme=dark] .form-select[readonly],
[data-theme=dark] textarea:disabled,
[data-theme=dark] textarea[readonly],
[data-theme=dark] input[type=text]:disabled,
[data-theme=dark] input[type=text][readonly],
[data-theme=dark] input[type=search]:disabled,
[data-theme=dark] input[type=search][readonly],
[data-theme=dark] input[type=email]:disabled,
[data-theme=dark] input[type=email][readonly],
[data-theme=dark] input[type=number]:disabled,
[data-theme=dark] input[type=number][readonly],
[data-theme=dark] input[type=password]:disabled,
[data-theme=dark] input[type=password][readonly],
[data-theme=dark] input[type=tel]:disabled,
[data-theme=dark] input[type=tel][readonly],
[data-theme=dark] input[type=url]:disabled,
[data-theme=dark] input[type=url][readonly] {
  background-color: #111827;
  color: #94a3b8;
}
[data-theme=dark] .table {
  --bs-table-bg: var(--app-surface);
  --bs-table-color: var(--app-text);
  --bs-table-hover-bg: var(--app-table-hover-bg);
  --bs-table-hover-color: var(--app-heading);
  color: var(--app-text);
}
[data-theme=dark] .breadcrumb {
  --bs-breadcrumb-divider-color: var(--app-subtle);
  --bs-breadcrumb-item-active-color: var(--app-heading);
  color: var(--app-text-muted);
}
[data-theme=dark] .breadcrumb-item,
[data-theme=dark] .breadcrumb-item a {
  color: var(--app-text-muted);
}
[data-theme=dark] .breadcrumb-item + .breadcrumb-item::before {
  color: var(--app-subtle) !important;
  opacity: 1;
}
[data-theme=dark] .breadcrumb-item.active {
  color: var(--app-heading);
}
[data-theme=dark] [style*="color:#6c757d"],
[data-theme=dark] [style*="color: #6c757d"],
[data-theme=dark] [style*="color:#64748b"],
[data-theme=dark] [style*="color: #64748b"],
[data-theme=dark] [style*="color:#9ca3af"],
[data-theme=dark] [style*="color: #9ca3af"],
[data-theme=dark] [style*="color:#98a1b3"],
[data-theme=dark] [style*="color: #98a1b3"] {
  color: var(--app-text-muted) !important;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 64px;
  gap: 14px;
  border-bottom: 1px solid #e7e9ee;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045);
}

.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  margin-right: 2px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfe5ee;
  border-radius: 11px;
  background: #ffffff;
  color: #607085;
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.mobile-menu-btn:hover, .mobile-menu-btn:focus-visible {
  border-color: #ffc276;
  background: #fff6ec;
  color: #f26d21;
  outline: none;
}

.header-logo {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 0;
  align-items: center;
  padding-right: 2px;
}
.header-logo img {
  display: block;
  height: 36px;
  max-width: 132px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.header-logo-text {
  display: none;
  color: #1b51a0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}
.header-search {
  position: relative;
  display: flex;
  width: min(100%, 344px);
  height: 40px;
  flex: 0 1 344px;
  align-items: center;
  gap: 9px;
  border: 1px solid #dfe5ee;
  border-radius: 12px;
  background: #ffffff;
  color: #667085;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.header-search:focus-within {
  border-color: #b8c7dc;
  box-shadow: 0 0 0 3px rgba(27, 81, 160, 0.08);
}
.header-search__icon {
  flex: 0 0 auto;
  margin-left: 14px;
  color: #7a8797;
  font-size: 13px;
}
.header-search__input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #263244;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}
.header-search__input::placeholder {
  color: #667085;
  opacity: 1;
}
.header-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.header-search__kbd {
  display: inline-flex;
  height: 24px;
  min-width: 42px;
  margin-right: 8px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #e2e7ef;
  border-radius: 7px;
  background: #f8fafc;
  color: #7b8797;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
}
.header-search__kbd .ui-icon {
  width: 12px;
  height: 12px;
}
.header-spacer {
  flex: 1 1 auto;
  min-width: 12px;
}
.header-actions {
  display: flex;
  flex: 0 0 auto;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

@media (min-width: 992px) {
  .app-header {
    width: calc(100% - 250px);
    margin-left: 250px;
    transition: margin-left 0.24s ease, width 0.24s ease;
  }
  .header-logo {
    display: none;
  }
  .sidebar-collapsed .app-header {
    width: calc(100% - 58px);
    margin-left: 58px;
  }
}
.hdr-btn, .hdr-user-btn {
  border: 1px solid #dfe5ee;
  background: #ffffff;
  color: #526174;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.hdr-btn:hover, .hdr-btn:focus-visible, .hdr-user-btn:hover, .hdr-user-btn:focus-visible {
  border-color: #cfd8e6;
  background: #f8fafc;
  color: #1f2a3d;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07);
  outline: none;
}
.hdr-btn {
  position: relative;
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1;
}
.hdr-theme-toggle .theme-icon-light {
  display: none;
}
.hdr-notif-badge {
  position: absolute;
  top: -5px;
  right: -3px;
  display: flex;
  height: 17px;
  min-width: 17px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
  border-radius: 9999px;
  background: #f78e1e;
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 850;
  line-height: 1;
}
.hdr-user-btn {
  display: flex;
  min-width: 166px;
  height: 40px;
  align-items: center;
  gap: 9px;
  padding: 3px 11px 3px 4px;
  border-radius: 9999px;
}
.hdr-avatar {
  display: flex;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8a3d 0%, #f36b21 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(242, 109, 33, 0.22);
  font-size: 10px;
  font-weight: 850;
}
.hdr-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hdr-user-name {
  max-width: 104px;
  overflow: hidden;
  color: #1f2937;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0 0 3px 0;
}
.hdr-user-role {
  max-width: 104px;
  overflow: hidden;
  color: #667085;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hdr-chevron {
  margin-left: auto;
  color: #7b8797;
  font-size: 10px;
}
.hdr-dropdown-wrap {
  position: relative;
  flex: 0 0 auto;
}
.hdr-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 200;
  display: none;
  min-width: 240px;
  overflow: hidden;
  border: 1px solid #e1e7f0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}
.hdr-dropdown.open {
  display: block;
}
.hdr-dropdown--settings {
  min-width: 220px;
}
.hdr-dropdown--user {
  min-width: 280px;
}
.hdr-dd-header {
  padding: 12px 16px;
  border-bottom: 1px solid #edf1f6;
  color: #1f2937;
  font-size: 12.5px;
  font-weight: 800;
}
.hdr-dd-sub {
  margin-top: 2px;
  color: #667085;
  font-size: 11px;
  font-weight: 500;
}
.hdr-dd-empty {
  padding: 14px 16px;
  color: #667085;
  font-size: 13px;
}
.hdr-dd-divider {
  height: 1px;
  background: #edf1f6;
}
.hdr-dd-section {
  padding: 9px 16px;
}
.hdr-dd-label {
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.hdr-dd-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  color: #435166;
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.hdr-dd-item:hover, .hdr-dd-item:focus-visible {
  background: #f8fafc;
  color: #1f2937;
  outline: none;
}
.hdr-dd-item.danger {
  color: #dc2626;
}
.hdr-dd-item.danger:hover, .hdr-dd-item.danger:focus-visible {
  background: #fef2f2;
}

[data-theme=dark] .app-header {
  border-bottom-color: #243246;
  background: rgba(17, 24, 39, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}
[data-theme=dark] .header-logo img {
  height: 38px;
  max-width: 148px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  filter: none;
}
[data-theme=dark] .header-search,
[data-theme=dark] .hdr-btn,
[data-theme=dark] .hdr-user-btn,
[data-theme=dark] .hdr-dropdown {
  border-color: var(--app-border-soft);
  background: #111827;
}
[data-theme=dark] .header-search {
  background: #121d31;
}
[data-theme=dark] .header-search:focus-within {
  border-color: var(--app-active-border);
  background: #172033;
  box-shadow: 0 0 0 3px rgba(247, 142, 30, 0.14);
}
[data-theme=dark] .header-search__input,
[data-theme=dark] .hdr-user-name,
[data-theme=dark] .hdr-dd-header {
  color: #f8fafc;
}
[data-theme=dark] .header-search__kbd {
  border-color: #2c3b52;
  background: #1f2937;
  color: #94a3b8;
}
[data-theme=dark] .hdr-btn,
[data-theme=dark] .hdr-user-role,
[data-theme=dark] .hdr-chevron,
[data-theme=dark] .hdr-dd-sub,
[data-theme=dark] .hdr-dd-empty,
[data-theme=dark] .hdr-dd-label {
  color: #94a3b8;
}
[data-theme=dark] .hdr-btn:hover,
[data-theme=dark] .hdr-btn:focus-visible,
[data-theme=dark] .hdr-user-btn:hover,
[data-theme=dark] .hdr-user-btn:focus-visible {
  border-color: var(--app-hover-border);
  background: var(--app-hover-bg);
  color: #f8fafc;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
[data-theme=dark] .hdr-dd-item:hover,
[data-theme=dark] .hdr-dd-item:focus-visible {
  background: var(--app-hover-bg);
  color: #f8fafc;
}
[data-theme=dark] .hdr-dd-item {
  color: #d7e0ec;
}
[data-theme=dark] .hdr-dd-item .ui-icon {
  color: #cbd5e1;
}
[data-theme=dark] .hdr-dd-item:hover .ui-icon, [data-theme=dark] .hdr-dd-item:focus-visible .ui-icon {
  color: #ffffff;
}
[data-theme=dark] .hdr-dd-item.danger {
  color: #fda4af;
}
[data-theme=dark] .hdr-dd-item.danger:hover, [data-theme=dark] .hdr-dd-item.danger:focus-visible {
  background: rgba(244, 63, 94, 0.16);
  color: #fecdd3;
}
[data-theme=dark] .hdr-dd-item.danger:hover .ui-icon, [data-theme=dark] .hdr-dd-item.danger:focus-visible .ui-icon {
  color: #fecdd3;
}
[data-theme=dark] .hdr-dd-header,
[data-theme=dark] .hdr-dd-divider {
  border-color: #263449;
}
[data-theme=dark] .hdr-dd-divider {
  background: #263449;
}
[data-theme=dark] .hdr-notif-badge {
  border-color: #111827;
}
[data-theme=dark] .hdr-theme-toggle .theme-icon-dark {
  display: none;
}
[data-theme=dark] .hdr-theme-toggle .theme-icon-light {
  display: inline-block;
}

/* ════════════════════════════════
   LAYOUT
════════════════════════════════ */
.app-shell {
  display: flex;
}

/* Sidebar */
.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  display: flex;
  width: 250px;
  height: 100vh;
  height: 100dvh;
  flex-shrink: 0;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid #e7e9ee;
  background: #ffffff;
  color: #2f3a4a;
  box-shadow: 10px 0 28px rgba(15, 23, 42, 0.035);
  transition: width 0.24s ease, box-shadow 0.18s ease;
}

.sidebar-brand {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 16px;
  border-bottom: 1px solid #e8eaef;
  background: #ffffff;
}
.sidebar-brand__link {
  position: relative;
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: #1f2a3d;
  text-decoration: none;
}
.sidebar-brand__link img {
  display: block;
  width: 160px;
  max-width: 100%;
  height: 50px;
  object-fit: contain;
  object-position: center;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.sidebar-brand__link .sidebar-brand__logo--dark {
  display: none;
}
.sidebar-brand__link .sidebar-brand__favicon {
  display: none;
  width: 28px;
  height: 28px;
  object-fit: contain;
  object-position: center;
}
.sidebar-brand__text {
  display: none;
  align-items: center;
  min-height: 34px;
  color: #1f2a3d;
  font-size: 16px;
  font-weight: 750;
  line-height: 1;
}
.sidebar-brand__collapse {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8b94a3;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.sidebar-brand__collapse:hover, .sidebar-brand__collapse:focus-visible {
  background: #f5f7fa;
  color: #334155;
  outline: none;
}

.sidebar-nav,
.mobile-sidebar-nav {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  gap: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px 12px 18px;
  scrollbar-color: #d2d8e1 transparent;
}

.nav-item {
  position: relative;
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 10px;
  color: #3f4a5a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.nav-item .nav-icon {
  width: 18px;
  flex: 0 0 18px;
  color: #727d8b;
  transition: color 0.18s ease;
}
.nav-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.nav-item:hover, .nav-item:focus-visible {
  background: #f7f8fa;
  color: #202b3d;
  outline: none;
}
.nav-item:hover .nav-icon, .nav-item:focus-visible .nav-icon {
  color: #475569;
}
.nav-item.active {
  background: #fff1e9;
  color: #f26d21;
  box-shadow: inset 3px 0 0 #ff7a2f;
}
.nav-item.active .nav-icon,
.nav-item.active .nav-arrow {
  color: #f26d21;
}
.nav-item.nav-sub {
  min-height: 34px;
  margin-left: 8px;
  padding: 8px 10px 8px 34px;
  color: #536173;
  font-size: 12.5px;
  font-weight: 550;
}
.nav-item.nav-sub .nav-icon {
  position: absolute;
  left: 10px;
  width: 16px;
}
.nav-item.nav-sub::before {
  content: "";
  position: absolute;
  left: 18px;
  top: -4px;
  bottom: -4px;
  width: 1px;
  background: #edf0f4;
}
.nav-item.nav-sub.active {
  margin-left: 0;
  padding-left: 36px;
}
.nav-item.nav-group-toggle {
  padding-right: 11px;
}
.nav-item.nav-group-toggle span {
  flex: 1 1 auto;
  padding-right: 4px;
}
.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-group-items {
  display: flex;
  max-height: 0;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  padding-left: 0;
  transition: max-height 0.24s ease;
}
.nav-group.open .nav-group-items {
  max-height: 760px;
}
.nav-group.open .nav-arrow {
  transform: rotate(90deg);
}
.nav-arrow {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  color: #a2aab7;
  cursor: pointer;
  font-size: 10px;
  transform: rotate(270deg);
  transform-origin: center;
  transition: transform 0.2s ease, color 0.18s ease, opacity 0.18s ease;
}
.nav-section-label {
  margin-top: 16px;
  padding: 0 12px 5px;
  color: #738092;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  pointer-events: none;
}
.nav-badge {
  display: inline-flex;
  min-width: 28px;
  height: 18px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 9999px;
  background: #40719c;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

[data-theme=dark] .app-sidebar,
[data-theme=dark] .sidebar-brand {
  border-color: #243246;
  background: #111827;
}
[data-theme=dark] .app-sidebar {
  box-shadow: 10px 0 28px rgba(0, 0, 0, 0.22);
}
[data-theme=dark] .sidebar-brand__link,
[data-theme=dark] .sidebar-brand__text {
  color: #e5e7eb;
}
[data-theme=dark] .sidebar-brand__logo--light {
  display: none;
}
[data-theme=dark] .sidebar-brand__logo--dark {
  display: block;
  background: transparent;
  box-shadow: none;
}
[data-theme=dark] .sidebar-brand__collapse:hover,
[data-theme=dark] .sidebar-brand__collapse:focus-visible,
[data-theme=dark] .nav-item:hover,
[data-theme=dark] .nav-item:focus-visible {
  background: var(--app-hover-bg);
  color: #f8fafc;
}
[data-theme=dark] .sidebar-brand__collapse:hover .nav-icon,
[data-theme=dark] .sidebar-brand__collapse:hover .nav-arrow,
[data-theme=dark] .sidebar-brand__collapse:focus-visible .nav-icon,
[data-theme=dark] .sidebar-brand__collapse:focus-visible .nav-arrow,
[data-theme=dark] .nav-item:hover .nav-icon,
[data-theme=dark] .nav-item:hover .nav-arrow,
[data-theme=dark] .nav-item:focus-visible .nav-icon,
[data-theme=dark] .nav-item:focus-visible .nav-arrow {
  color: #f8fafc;
}
[data-theme=dark] .nav-item {
  color: #cbd5e1;
}
[data-theme=dark] .nav-item .nav-icon {
  color: #94a3b8;
}
[data-theme=dark] .nav-item.active {
  background: var(--app-active-bg);
  color: var(--app-active-text);
  box-shadow: inset 0 0 0 1px var(--app-active-border), inset 3px 0 0 #f78e1e;
}
[data-theme=dark] .nav-item.active .nav-icon,
[data-theme=dark] .nav-item.active .nav-arrow {
  color: var(--app-active-text);
}
[data-theme=dark] .nav-item.nav-sub::before {
  background: #263449;
}
[data-theme=dark] .nav-section-label {
  color: #94a3b8;
}

@media (min-width: 992px) {
  .sidebar-collapsed .app-sidebar {
    width: 58px;
    overflow: visible;
  }
  .sidebar-collapsed .sidebar-brand {
    position: relative;
    min-height: 70px;
    justify-content: center;
    padding: 0;
  }
  .sidebar-collapsed .sidebar-brand__link {
    width: 34px;
    height: 34px;
    justify-content: center;
    overflow: visible;
  }
  .sidebar-collapsed .sidebar-brand__link img {
    display: none;
  }
  .sidebar-collapsed .sidebar-brand__link .sidebar-brand__favicon {
    display: block;
    width: 24px;
    height: 24px;
  }
  .sidebar-collapsed .sidebar-brand__text {
    display: none;
  }
  .sidebar-collapsed .sidebar-brand__collapse {
    position: absolute;
    top: 58px;
    right: -11px;
    z-index: 4;
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    border: 1px solid #e8eaef;
    border-radius: 50%;
    background: #ffffff;
    color: #a0a8b5;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
  }
  .sidebar-collapsed .sidebar-brand__collapse .ui-icon {
    transform: rotate(180deg);
  }
  .sidebar-collapsed .sidebar-nav {
    align-items: center;
    gap: 10px;
    padding: 12px 6px 16px;
    overflow: visible;
  }
  .sidebar-collapsed .nav-section-label,
  .sidebar-collapsed .nav-item span,
  .sidebar-collapsed .nav-arrow,
  .sidebar-collapsed .nav-badge {
    display: none;
  }
  .sidebar-collapsed .nav-group {
    position: relative;
    width: 100%;
    align-items: center;
  }
  .sidebar-collapsed .nav-group-items {
    position: absolute;
    top: 0;
    left: calc(100% + 10px);
    z-index: 90;
    display: flex;
    width: max-content;
    min-width: 220px;
    max-width: 280px;
    max-height: min(420px, 100vh - 24px);
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #e3e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-6px);
    transition: opacity 0.16s ease, transform 0.16s ease;
  }
  .sidebar-collapsed .nav-group.flyout-open .nav-group-items {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }
  .sidebar-collapsed .nav-item {
    width: 42px;
    min-height: 34px;
    justify-content: center;
    gap: 0;
    padding: 0;
    border-radius: 11px;
    line-height: 1;
  }
  .sidebar-collapsed .nav-item .nav-icon {
    display: inline-flex;
    width: auto;
    height: 18px;
    flex-basis: auto;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  .sidebar-collapsed .nav-item.active {
    background: #fff1e9;
    box-shadow: inset 3px 0 0 #ff7a2f;
  }
  .sidebar-collapsed .nav-item.nav-sub {
    width: 100%;
    min-height: 36px;
    justify-content: flex-start;
    gap: 10px;
    margin-left: 0;
    padding: 8px 10px;
    border-radius: 9px;
    color: #465366;
    font-size: 12.5px;
    font-weight: 650;
  }
  .sidebar-collapsed .nav-item.nav-sub span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .sidebar-collapsed .nav-item.nav-sub .nav-icon {
    position: static;
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
  }
  .sidebar-collapsed .nav-item.nav-sub::before {
    display: none;
  }
  .sidebar-collapsed .nav-group-items .nav-section-label {
    display: block;
    margin: 8px 0 2px;
    padding: 0 8px;
    color: #7b8797;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
    white-space: normal;
  }
  [data-theme=dark].sidebar-collapsed .sidebar-brand__collapse {
    border-color: #263449;
    background: #111827;
    color: #cbd5e1;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  }
  [data-theme=dark].sidebar-collapsed .sidebar-brand__link .sidebar-brand__favicon {
    width: 34px;
    height: 34px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
  }
  [data-theme=dark].sidebar-collapsed .nav-group-items {
    border-color: #263449;
    background: #111827;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  }
  [data-theme=dark].sidebar-collapsed .nav-group-items .nav-section-label {
    color: #94a3b8;
  }
  [data-theme=dark].sidebar-collapsed .nav-item.nav-sub {
    color: #cbd5e1;
  }
  [data-theme=dark].sidebar-collapsed .nav-item.nav-sub:hover, [data-theme=dark].sidebar-collapsed .nav-item.nav-sub:focus-visible {
    background: var(--app-hover-bg);
    color: #f8fafc;
  }
  [data-theme=dark].sidebar-collapsed .nav-item.nav-sub:hover .nav-icon, [data-theme=dark].sidebar-collapsed .nav-item.nav-sub:focus-visible .nav-icon {
    color: #f8fafc;
  }
  [data-theme=dark].sidebar-collapsed .nav-item.nav-sub.active {
    background: var(--app-active-bg);
    color: var(--app-active-text);
    box-shadow: inset 0 0 0 1px var(--app-active-border);
  }
  [data-theme=dark].sidebar-collapsed .nav-item.nav-sub.active .nav-icon {
    color: var(--app-active-text);
  }
}
/* Mobile Sidebar */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  display: flex;
  width: min(86vw, 286px);
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid #e7e9ee;
  background: #ffffff;
  color: #2f3a4a;
  box-shadow: 24px 0 60px rgba(15, 23, 42, 0.22);
  transform: translateX(-105%);
  transition: transform 0.28s ease;
  will-change: transform;
}
.mobile-sidebar.open {
  transform: translateX(0);
}
.mobile-sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 1040;
  display: block;
  background: rgba(15, 23, 42, 0.46);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.mobile-sidebar-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.mobile-sidebar-header {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px 0 16px;
  border-bottom: 1px solid #e8eaef;
  background: #ffffff;
}
.mobile-sidebar-header .sidebar-brand__link {
  min-width: 0;
  flex: 1 1 auto;
}
.mobile-sidebar-header .sidebar-brand__link img {
  width: auto;
  max-width: min(160px, 100vw - 124px);
}

.mobile-close-btn {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: #f6f7f9;
  color: #5d6877;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.mobile-close-btn:hover, .mobile-close-btn:focus-visible {
  background: #fff1e9;
  color: #f26d21;
  outline: none;
}

.mobile-sidebar-open {
  overflow: hidden;
  touch-action: none;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-sidebar,
  .mobile-sidebar-overlay {
    transition: none;
  }
}
[data-theme=dark] .mobile-sidebar,
[data-theme=dark] .mobile-sidebar-header {
  border-color: #243246;
  background: #111827;
}
[data-theme=dark] .mobile-close-btn {
  background: #1f2937;
  color: #cbd5e1;
}
[data-theme=dark] .mobile-close-btn:hover, [data-theme=dark] .mobile-close-btn:focus-visible {
  background: rgba(242, 109, 33, 0.16);
  color: #ff965c;
}

/* ════════════════════════════════
   MAIN CONTENT
════════════════════════════════ */
.app-content {
  display: flex;
  flex: 1;
  min-width: 0;
  height: calc(100vh - 64px);
  height: calc(100dvh - 64px);
  flex-direction: column;
}

@media (min-width: 992px) {
  .app-content {
    margin-left: 250px;
    transition: margin-left 0.24s ease;
  }
  .sidebar-collapsed .app-content {
    margin-left: 58px;
  }
}
.app-main {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
}
.app-main-inner {
  max-width: 100%;
  margin: 0;
  padding: 20px 24px;
}

@media (max-width: 576px) {
  .nd-grid--roles {
    grid-template-columns: 1fr;
  }
  .nd-summary__inner--3 {
    flex-direction: column;
  }
  .nd-summary__inner--3 .nd-summary__item {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    min-width: 100%;
  }
  .nd-summary__inner--3 .nd-summary__item:last-child {
    border-bottom: none;
  }
  .nd-title {
    font-size: 20px;
  }
  .nd-metric__value {
    font-size: 18px;
  }
}
/* ════════════════════════════════
   APP SWITCH (Reusable ON/OFF toggle)
════════════════════════════════ */
.app-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  margin: 0;
  flex-shrink: 0;
}

.app-switch .app-switch-input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.app-switch .app-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #cbd5e1;
  border-radius: 9999px;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.app-switch .app-switch-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
}

.app-switch .app-switch-input:checked + .app-switch-slider {
  background: linear-gradient(90deg, #E8720C 0%, #f59e0b 100%);
  box-shadow: 0 0 0 3px rgba(232, 114, 12, 0.12);
}

.app-switch .app-switch-input:checked + .app-switch-slider::before {
  transform: translateX(22px);
}

.app-switch .app-switch-input:focus-visible + .app-switch-slider {
  box-shadow: 0 0 0 3px rgba(26, 77, 147, 0.22);
}

.app-switch .app-switch-input:disabled + .app-switch-slider {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-switch-label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-width: 30px;
  display: inline-block;
  text-align: left;
}

/* ════════════════════════════════
   SERVICES PAGE — Tabs grid (clickable tab + per-tab toggle)
════════════════════════════════ */
.services-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.services-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.services-tab:hover {
  border-color: #f6c296;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.services-tab.is-off {
  opacity: 0.72;
  background: #f8fafc;
}

.services-tab.is-off .services-tab-icon {
  background: #eef2f7;
  color: #94a3b8;
}

.services-tab-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 14px;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-height: 96px;
  transition: background-color 0.15s ease;
}

.services-tab-link:hover {
  background: #fff7ef;
  text-decoration: none;
  color: inherit;
}

.services-tab.is-off .services-tab-link:hover {
  background: #eef2f7;
}

.services-tab-link.is-disabled {
  pointer-events: none;
  cursor: not-allowed;
}

.services-tab-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff4eb 0%, #ffe8d4 100%);
  color: #E8720C;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.services-tab-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.services-tab-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.2;
}

.services-tab-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

.services-tab-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #eef2f7;
  background: #fafbfc;
}

.services-tab.is-off .services-tab-toggle {
  background: #f1f5f9;
}

/* ════════════════════════════════════════════════════════════════════════
   Settings hub — left sub-sidebar inside the Settings pages.
   Goes hand-in-hand with layouts/settings.blade.php and
   layouts/partials/settings_subnav.blade.php.
   ════════════════════════════════════════════════════════════════════════ */
.settings-page-wrapper {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  min-height: calc(100vh - 220px);
}

.settings-sub-nav {
  flex: 0 0 230px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 0 16px;
  position: sticky;
  top: 88px;
  align-self: flex-start;
}

.settings-sub-nav-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 12px;
  border-bottom: 1px solid #eef2f7;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.settings-sub-nav-header .ui-icon {
  color: #E8720C;
}

.settings-sub-section {
  padding: 10px 0 4px;
}

.settings-sub-section + .settings-sub-section {
  border-top: 1px solid #f1f5f9;
}

.settings-sub-label {
  padding: 4px 16px 6px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.4px;
}

.settings-sub-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 13px;
  color: #334155;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.settings-sub-item .ui-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #94a3b8;
}

.settings-sub-item:hover {
  background: #f8fafc;
  color: #111827;
}

.settings-sub-item.active {
  background: #fff7ee;
  color: #b95e07;
  border-left-color: #E8720C;
  font-weight: 600;
}

.settings-sub-item.active .ui-icon {
  color: #E8720C;
}

.settings-page-content {
  flex: 1 1 auto;
  min-width: 0;
}

.settings-page-content .cron-config-card {
  max-width: 100%;
}
.settings-page-content .cron-config-table th:first-child,
.settings-page-content .cron-config-table td:first-child {
  width: 54px;
  text-align: center;
}
.settings-page-content .cron-config-table td {
  height: 56px;
}
.settings-page-content .cron-config-table .cron-config-check {
  width: 15px;
  height: 15px;
  margin: 0;
  vertical-align: middle;
}
.settings-page-content .cron-config-table .js-enhanced-select2 + .select2-container--default {
  min-width: 150px;
}
.settings-page-content .cron-config-table .btn-outline-primary {
  white-space: nowrap;
}
.settings-page-content .card:has(.table-responsive) {
  overflow: hidden;
  border: 1px solid #d9d9d9;
  border-radius: 14px;
  background: var(--app-surface);
  box-shadow: none;
}
.settings-page-content .card:has(.table-responsive) .card-body {
  padding: 0;
}
.settings-page-content .table-responsive {
  overflow-x: auto;
}
.settings-page-content .table {
  margin-bottom: 0;
  color: var(--app-text);
  font-size: 14px;
}
.settings-page-content .table thead tr {
  height: 40px;
  border-bottom: 1px solid #d9d9d9;
  background: #fbfbfc;
}
.settings-page-content .table thead th {
  padding: 12px 16px;
  border: 0;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.settings-page-content .table tbody tr {
  border-bottom: 1px solid #d9d9d9;
  background: var(--app-surface);
}
.settings-page-content .table tbody tr:last-child {
  border-bottom: 0;
}
.settings-page-content .table tbody td {
  padding: 13px 16px;
  border: 0;
  color: var(--app-text);
  vertical-align: middle;
}
.settings-page-content .table .form-control,
.settings-page-content .table .form-select {
  min-height: 32px;
  border-color: var(--app-border-soft);
  border-radius: 8px;
  background-color: var(--app-control-bg);
  color: var(--app-control-text);
  font-size: 13px;
  box-shadow: none;
}

[data-theme=dark] .app-switch-label,
[data-theme=dark] .services-tab-desc,
[data-theme=dark] .settings-sub-label {
  color: var(--app-text-muted);
}
[data-theme=dark] .services-tab,
[data-theme=dark] .settings-sub-nav {
  border-color: var(--app-border-soft);
  background: var(--app-surface);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}
[data-theme=dark] .services-tab:hover {
  border-color: rgba(247, 142, 30, 0.45);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
}
[data-theme=dark] .services-tab.is-off {
  background: #0f172a;
  opacity: 0.82;
}
[data-theme=dark] .services-tab-link:hover,
[data-theme=dark] .services-tab.is-off .services-tab-link:hover {
  background: var(--app-hover-bg);
}
[data-theme=dark] .services-tab-title,
[data-theme=dark] .settings-sub-nav-header {
  color: var(--app-heading);
}
[data-theme=dark] .services-tab-toggle {
  border-color: var(--app-border-soft);
  background: #0f172a;
}
[data-theme=dark] .settings-sub-nav-header,
[data-theme=dark] .settings-sub-section + .settings-sub-section {
  border-color: var(--app-border-soft);
}
[data-theme=dark] .settings-sub-item {
  color: var(--app-text);
}
[data-theme=dark] .settings-sub-item .ui-icon {
  color: #94a3b8;
}
[data-theme=dark] .settings-sub-item:hover {
  background: var(--app-hover-bg);
  color: var(--app-heading);
}
[data-theme=dark] .settings-sub-item.active {
  background: rgba(247, 142, 30, 0.16);
  color: #ffb169;
}
[data-theme=dark] .settings-page-content .card:has(.table-responsive) {
  border-color: var(--app-border-soft);
  background: var(--app-surface);
}
[data-theme=dark] .settings-page-content .table {
  --bs-table-bg: var(--app-surface);
  --bs-table-color: var(--app-text);
  --bs-table-hover-bg: var(--app-table-hover-bg);
  color: var(--app-text);
}
[data-theme=dark] .settings-page-content .table thead tr,
[data-theme=dark] .settings-page-content .table thead th {
  border-color: var(--app-border-soft);
  background: var(--app-surface-muted);
  color: #cbd5e1;
}
[data-theme=dark] .settings-page-content .table tbody tr {
  border-color: var(--app-border-soft);
  background: var(--app-surface);
}
[data-theme=dark] .settings-page-content .table tbody td {
  border-color: var(--app-border-soft);
  background: var(--app-surface);
  color: var(--app-text);
}
[data-theme=dark] .header-search-results {
  border-color: #334155;
  background: #0f172a;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}
[data-theme=dark] .header-search-result {
  color: #e2e8f0;
}
[data-theme=dark] .header-search-result:hover, [data-theme=dark] .header-search-result.is-active {
  background: #1e293b;
}
[data-theme=dark] .header-search-result__group {
  color: #94a3b8;
}
[data-theme=dark] .header-search-results__empty {
  color: #94a3b8;
}

@media (max-width: 991.98px) {
  .settings-page-wrapper {
    flex-direction: column;
  }
  .settings-sub-nav {
    position: static;
    flex: 1 1 auto;
    width: 100%;
  }
}
.header-search {
  position: relative;
  display: flex;
  width: min(100%, 344px);
  height: 40px;
  flex: 0 1 344px;
  align-items: center;
  gap: 9px;
  border: 1px solid #dfe5ee;
  border-radius: 12px;
  background: #ffffff;
  color: #667085;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.header-search:focus-within {
  border-color: #b8c7dc;
  box-shadow: 0 0 0 3px rgba(27, 81, 160, 0.08);
}
.header-search__icon {
  flex: 0 0 auto;
  margin-left: 14px;
  color: #7a8797;
  font-size: 13px;
}
.header-search__input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #263244;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}
.header-search__input::placeholder {
  color: #667085;
  opacity: 1;
}
.header-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.header-search__kbd {
  display: inline-flex;
  height: 24px;
  min-width: 42px;
  margin-right: 8px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #e2e7ef;
  border-radius: 7px;
  background: #f8fafc;
  color: #7b8797;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
}
.header-search__kbd .ui-icon {
  width: 12px;
  height: 12px;
}

.header-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 220;
  max-height: 320px;
  overflow: auto;
  border: 1px solid #e1e7f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
  padding: 6px;
}
.header-search-results__empty {
  padding: 12px;
  color: #667085;
  font-size: 13px;
}

.header-search-result {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1f2937;
  cursor: pointer;
  padding: 10px 12px;
  text-align: left;
  font: inherit;
}
.header-search-result:hover, .header-search-result.is-active {
  background: #f4f7fb;
}
.header-search-result__label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.header-search-result__group {
  color: #667085;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.app-footer {
  width: 100%;
  flex-shrink: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--app-border);
  background: var(--app-surface-muted);
  color: var(--app-muted);
  font-size: 12px;
  text-align: center;
}

/* ════════════════════════════════
   CARD
════════════════════════════════ */
.card {
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-surface);
  color: var(--app-text);
  box-shadow: var(--app-card-shadow);
}
.card-header {
  padding: 1.5rem 1.5rem 1rem;
}
.card-content {
  padding: 1.5rem;
}
.card > .card-content:first-child {
  padding-top: 1.5rem !important;
}
.card-title {
  color: var(--app-heading);
  font-size: 1.125rem;
  font-weight: 600;
}
.card:has(.dataTables_wrapper) {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.card:has(.dataTables_wrapper) .card-content {
  padding: 0 !important;
}

/* ════════════════════════════════
   SCROLLBAR
════════════════════════════════ */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 2px;
  background: #cbd5e1;
}

.sidebar-nav,
.mobile-sidebar-nav {
  scrollbar-width: thin;
  scrollbar-color: #c7d0dd transparent;
}

.sidebar-nav::-webkit-scrollbar,
.mobile-sidebar-nav::-webkit-scrollbar {
  width: 1px;
  height: 1px;
}

.sidebar-nav::-webkit-scrollbar-track,
.mobile-sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb,
.mobile-sidebar-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c7d0dd;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover,
.mobile-sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: #aeb9c8;
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 991px) {
  .mobile-menu-btn {
    display: flex;
  }
  .app-sidebar {
    display: none;
  }
  .app-content {
    margin-left: 0;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
  }
  .header-search {
    width: min(42vw, 280px);
    flex-basis: min(42vw, 280px);
  }
  .header-search__kbd {
    display: none;
  }
  .hdr-user-btn {
    min-width: 58px;
    padding-right: 9px;
  }
  .hdr-user-name, .hdr-user-role {
    display: none;
  }
  .hdr-chevron {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 0;
  }
}
@media (min-width: 576px) and (max-width: 767px) {
  .app-header {
    height: 60px;
    gap: 10px;
    padding: 0 16px;
  }
  .mobile-menu-btn {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
  }
  .header-logo {
    flex: 1 1 auto;
    overflow: hidden;
    padding-right: 0;
  }
  .header-logo img {
    width: auto;
    height: 38px;
    max-width: clamp(112px, 22vw, 132px);
  }
  .header-search,
  .header-spacer {
    display: none;
  }
  .header-actions {
    margin-left: auto;
    gap: 6px;
  }
  .hdr-btn {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 10px;
  }
  .hdr-user-btn {
    min-width: 0;
    width: 50px;
    height: 36px;
    gap: 4px;
    padding: 2px 6px 2px 2px;
  }
  .hdr-avatar {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }
  .hdr-dropdown {
    position: fixed;
    top: 54px;
    right: 12px;
    left: auto;
    width: max-content;
    min-width: min(260px, 100vw - 24px);
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    border-radius: 12px;
  }
  .hdr-dropdown--settings {
    min-width: min(220px, 100vw - 24px);
  }
  .hdr-dropdown--user {
    min-width: min(280px, 100vw - 24px);
  }
  .app-content {
    height: calc(100vh - 60px);
    height: calc(100svh - 60px);
    height: calc(100dvh - 60px);
  }
  .app-main-inner {
    padding: 16px;
  }
  .mobile-sidebar {
    width: min(78vw, 320px);
  }
  .mobile-sidebar-header {
    min-height: 60px;
  }
}
@media (max-width: 575px) {
  .app-header {
    height: 60px;
    gap: clamp(6px, 2.4vw, 10px);
    padding: 0 12px;
  }
  .mobile-menu-btn {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
  }
  .header-logo {
    flex: 1 1 auto;
    overflow: hidden;
    padding-right: 0;
  }
  .header-logo img {
    width: auto;
    height: 38px;
    max-width: clamp(76px, 30vw, 132px);
  }
  .header-search {
    display: none;
  }
  .header-spacer {
    display: none;
  }
  .header-actions {
    margin-left: auto;
    gap: 5px;
  }
  .hdr-btn {
    width: 33px;
    height: 33px;
    flex-basis: 33px;
    border-radius: 10px;
  }
  .hdr-user-btn {
    min-width: 0;
    width: 48px;
    height: 36px;
    gap: 4px;
    padding: 2px 5px 2px 2px;
  }
  .hdr-avatar {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }
  .hdr-dropdown {
    position: fixed;
    top: 54px;
    right: 8px;
    left: auto;
    width: max-content;
    min-width: min(260px, 100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    border-radius: 12px;
  }
  .hdr-dropdown--settings {
    min-width: min(220px, 100vw - 16px);
  }
  .hdr-dropdown--user {
    min-width: min(280px, 100vw - 16px);
  }
  .app-content {
    height: calc(100vh - 60px);
    height: calc(100svh - 60px);
    height: calc(100dvh - 60px);
  }
  .app-main-inner {
    padding: 14px;
  }
  .mobile-sidebar {
    width: min(90vw, 286px);
  }
  .mobile-sidebar-header {
    min-height: 60px;
    padding: 0 12px;
  }
}
@media (max-width: 360px) {
  .app-header {
    height: 56px;
    padding: 0 8px;
  }
  .mobile-menu-btn,
  .hdr-btn {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  .header-logo img {
    height: 34px;
    max-width: clamp(66px, 27vw, 96px);
  }
  .header-actions {
    gap: 3px;
  }
  .hdr-user-btn {
    width: 34px;
    height: 32px;
    padding: 1px;
  }
  .hdr-avatar {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
  .hdr-chevron {
    display: none;
  }
  .hdr-notif-badge {
    top: -4px;
    right: -4px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    font-size: 8px;
  }
  .hdr-dropdown {
    top: 50px;
    right: 6px;
    max-height: calc(100dvh - 58px);
  }
  .app-content {
    height: calc(100vh - 56px);
    height: calc(100svh - 56px);
    height: calc(100dvh - 56px);
  }
  .app-main-inner {
    padding: 12px 10px;
  }
  .mobile-sidebar {
    width: min(92vw, 280px);
  }
  .mobile-sidebar-header {
    min-height: 56px;
    gap: 8px;
    padding: 0 10px 0 12px;
  }
}
@media (max-width: 991px) and (orientation: landscape) {
  .app-header {
    height: 54px;
  }
  .app-content {
    height: calc(100vh - 54px);
    height: calc(100svh - 54px);
    height: calc(100dvh - 54px);
  }
  .mobile-sidebar {
    width: min(72vw, 300px);
  }
  .mobile-sidebar-header {
    min-height: 54px;
  }
  .mobile-sidebar-nav {
    gap: 2px;
    padding: 8px 10px 10px;
  }
  .mobile-sidebar .nav-section-label {
    margin-top: 10px;
    padding-bottom: 3px;
  }
  .mobile-sidebar .nav-item {
    min-height: 34px;
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .hdr-dropdown {
    top: 48px;
    max-height: calc(100dvh - 56px);
  }
}
@media (min-width: 576px) and (max-width: 767px) and (orientation: landscape) {
  .app-header {
    padding: 0 14px;
  }
  .header-logo img {
    height: 34px;
    max-width: 120px;
  }
  .mobile-sidebar {
    width: min(48vw, 300px);
  }
  .mobile-sidebar-header {
    min-height: 54px;
  }
  .app-main-inner {
    padding: 12px 14px;
  }
}
/* ════════════════════════════════
   PAGE HEADER — Reusable
════════════════════════════════ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.page-header-title {
  margin: 0;
  color: var(--app-heading);
  font-size: 20px;
  font-weight: 700;
}
.page-header-sub {
  margin: 2px 0 0;
  color: var(--app-text-muted);
  font-size: 12px;
}

/* ════════════════════════════════
   BREADCRUMBS — Reusable
════════════════════════════════ */
.app-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  --bs-breadcrumb-divider-color: var(--app-subtle);
  font-size: 12px;
}
.app-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
  color: var(--app-subtle);
  opacity: 1;
}

.app-breadcrumb-link {
  color: var(--app-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.app-breadcrumb-link:hover {
  color: #f78e1e;
}
.app-breadcrumb-current {
  color: var(--app-subtle);
}
.app-breadcrumb-current.is-active {
  color: var(--app-heading);
  font-weight: 600;
}
.app-breadcrumb-sep {
  display: inline-flex;
  align-items: center;
  color: var(--app-border);
  font-size: 10px;
}

/* ════════════════════════════════
   DATATABLE — Portfolio Table Surface
════════════════════════════════ */
.dt-card {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--app-text);
  box-shadow: none;
}

.card .dataTables_wrapper {
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  box-shadow: none;
}

/* Toolbar */
.dt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 36px;
  margin-bottom: 10px;
  padding: 0;
  border-bottom: 0;
  background: transparent;
}
.dt-toolbar-left, .dt-toolbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.dt-toolbar-left {
  flex: 1 1 auto;
  min-width: 0;
}
.dt-toolbar-right {
  flex: 0 0 auto;
  margin-left: auto;
}

/* External filters moved into toolbar */
.dt-card > .card-content > form[id^=search-],
.card:has(.dataTables_wrapper) form[id^=search-],
.dt-filter-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 !important;
}
.dt-card > .card-content > form[id^=search-] .row,
.card:has(.dataTables_wrapper) form[id^=search-] .row,
.dt-filter-form .row {
  display: inline-flex;
  align-items: center;
  gap: 8px !important;
  margin: 0 !important;
  width: auto;
}
.dt-card > .card-content > form[id^=search-] .col-auto,
.dt-card > .card-content > form[id^=search-] [class*=col-],
.card:has(.dataTables_wrapper) form[id^=search-] .col-auto,
.card:has(.dataTables_wrapper) form[id^=search-] [class*=col-],
.dt-filter-form .col-auto,
.dt-filter-form [class*=col-] {
  width: auto;
  flex: 0 0 auto;
  padding: 0 !important;
}
.dt-card > .card-content > form[id^=search-] .form-select,
.dt-card > .card-content > form[id^=search-] select,
.card:has(.dataTables_wrapper) form[id^=search-] .form-select,
.card:has(.dataTables_wrapper) form[id^=search-] select,
.dt-filter-form .form-select,
.dt-filter-form select {
  min-width: 130px;
  height: 32px;
  padding: 4px 28px 4px 10px;
  border: 1px solid var(--app-border-soft);
  border-radius: 8px;
  background: var(--app-control-bg);
  color: var(--app-control-text);
  box-shadow: none;
  font-size: 12px;
  text-align: left;
  text-align-last: left;
  direction: ltr;
}
.dt-card > .card-content > form[id^=search-] .form-select:focus,
.dt-card > .card-content > form[id^=search-] select:focus,
.card:has(.dataTables_wrapper) form[id^=search-] .form-select:focus,
.card:has(.dataTables_wrapper) form[id^=search-] select:focus,
.dt-filter-form .form-select:focus,
.dt-filter-form select:focus {
  border-color: #f78e1e;
  box-shadow: 0 0 0 3px rgba(232, 114, 12, 0.12);
}
.dt-card > .card-content > form[id^=search-] .dt-filter-select2,
.card:has(.dataTables_wrapper) form[id^=search-] .dt-filter-select2,
.dt-filter-form .dt-filter-select2 {
  min-width: 180px;
}
.dt-card > .card-content > form[id^=search-] .select2-container--default,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default,
.dt-filter-form .select2-container--default {
  min-width: 180px;
  text-align: left;
}
.dt-card > .card-content > form[id^=search-] .select2-container--default.dt-filter-has-many,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default.dt-filter-has-many,
.dt-filter-form .select2-container--default.dt-filter-has-many {
  width: min(340px, calc(100vw - 32px)) !important;
}
.dt-card > .card-content > form[id^=search-] .select2-container--default .select2-selection--single,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default .select2-selection--single,
.dt-filter-form .select2-container--default .select2-selection--single {
  display: flex !important;
  align-items: center !important;
  height: 32px !important;
  padding: 0 32px 0 10px !important;
  border: 1px solid var(--app-border-soft) !important;
  border-radius: 8px !important;
  background: var(--app-control-bg) !important;
  box-shadow: none !important;
}
.dt-card > .card-content > form[id^=search-] .select2-container--default .select2-selection--single .select2-selection__rendered,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default .select2-selection--single .select2-selection__rendered,
.dt-filter-form .select2-container--default .select2-selection--single .select2-selection__rendered {
  width: 100%;
  padding: 0 !important;
  color: var(--app-control-text) !important;
  font-size: 12px !important;
  line-height: 30px !important;
  text-align: left !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dt-card > .card-content > form[id^=search-] .select2-container--default .select2-selection--single .select2-selection__placeholder,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default .select2-selection--single .select2-selection__placeholder,
.dt-filter-form .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #adb5bd !important;
}
.dt-card > .card-content > form[id^=search-] .select2-container--default .select2-selection--single .select2-selection__arrow,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default .select2-selection--single .select2-selection__arrow,
.dt-filter-form .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 0 !important;
  right: 8px !important;
  width: 18px !important;
  height: 30px !important;
  margin-top: 0 !important;
}
.dt-card > .card-content > form[id^=search-] .select2-container--default .select2-selection--single .select2-selection__clear,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default .select2-selection--single .select2-selection__clear,
.dt-filter-form .select2-container--default .select2-selection--single .select2-selection__clear {
  height: 30px !important;
  margin-right: 4px !important;
  color: #475569 !important;
  line-height: 30px !important;
}
.dt-card > .card-content > form[id^=search-] .select2-container--default .select2-selection--multiple,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default .select2-selection--multiple,
.dt-filter-form .select2-container--default .select2-selection--multiple {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  box-sizing: border-box;
  min-height: 32px !important;
  padding: 4px 8px !important;
  border: 1px solid var(--app-border-soft) !important;
  border-radius: 8px !important;
  background: var(--app-control-bg) !important;
  overflow: visible;
}
.dt-card > .card-content > form[id^=search-] .select2-container--default .select2-selection--multiple .select2-selection__choice,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default .select2-selection--multiple .select2-selection__choice,
.dt-filter-form .select2-container--default .select2-selection--multiple .select2-selection__choice {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px;
  flex: 0 1 auto;
  max-width: 100%;
  min-height: 20px;
  margin: 1px 4px 1px 0 !important;
  padding: 2px 6px !important;
  border: 1px solid #ffd8a8 !important;
  border-radius: 6px !important;
  background: #fff1df !important;
  color: #c45f08 !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  vertical-align: middle;
}
.dt-card > .card-content > form[id^=search-] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove,
.dt-filter-form .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  order: 2;
  width: 14px !important;
  height: 14px !important;
  margin: 0 0 0 3px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #111827 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}
.dt-card > .card-content > form[id^=search-] .select2-container--default .select2-selection--multiple .select2-selection__choice__display,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default .select2-selection--multiple .select2-selection__choice__display,
.dt-filter-form .select2-container--default .select2-selection--multiple .select2-selection__choice__display {
  display: block;
  max-width: 132px;
  overflow: hidden;
  padding: 0 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dt-card > .card-content > form[id^=search-] .select2-container--default .select2-selection--multiple .select2-selection__rendered,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default .select2-selection--multiple .select2-selection__rendered,
.dt-filter-form .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 2px 0;
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  min-height: 24px;
  margin: 0 !important;
  list-style: none !important;
  padding: 0 !important;
  overflow: visible;
  text-align: left !important;
}
.dt-card > .card-content > form[id^=search-] .select2-container--default .select2-selection--multiple .select2-selection__rendered:empty,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default .select2-selection--multiple .select2-selection__rendered:empty,
.dt-filter-form .select2-container--default .select2-selection--multiple .select2-selection__rendered:empty {
  display: none !important;
  flex: 0 0 0 !important;
  width: 0 !important;
  min-height: 0 !important;
}
.dt-card > .card-content > form[id^=search-] .select2-container--default.dt-filter-has-value .select2-selection--multiple,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default.dt-filter-has-value .select2-selection--multiple,
.dt-filter-form .select2-container--default.dt-filter-has-value .select2-selection--multiple {
  align-items: center !important;
  min-height: 32px !important;
}
.dt-card > .card-content > form[id^=search-] .select2-container--default.dt-filter-has-value .select2-selection--multiple .select2-selection__rendered,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default.dt-filter-has-value .select2-selection--multiple .select2-selection__rendered,
.dt-filter-form .select2-container--default.dt-filter-has-value .select2-selection--multiple .select2-selection__rendered {
  flex: 0 1 auto;
  width: auto;
  max-width: calc(100% - 44px);
}
.dt-card > .card-content > form[id^=search-] .select2-container--default.dt-filter-has-value .select2-selection--multiple .select2-search--inline,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default.dt-filter-has-value .select2-selection--multiple .select2-search--inline,
.dt-filter-form .select2-container--default.dt-filter-has-value .select2-selection--multiple .select2-search--inline {
  flex: 0 0 1px !important;
  width: 1px !important;
  min-width: 0 !important;
  max-width: 1px !important;
  overflow: hidden !important;
}
.dt-card > .card-content > form[id^=search-] .select2-container--default.dt-filter-has-value .select2-selection--multiple .select2-search--inline .select2-search__field,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default.dt-filter-has-value .select2-selection--multiple .select2-search--inline .select2-search__field,
.dt-filter-form .select2-container--default.dt-filter-has-value .select2-selection--multiple .select2-search--inline .select2-search__field {
  width: 1px !important;
  min-width: 0 !important;
  max-width: 1px !important;
  opacity: 0;
}
.dt-card > .card-content > form[id^=search-] .select2-container--default.dt-filter-is-multiple:not(.dt-filter-has-value) .select2-selection--multiple,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default.dt-filter-is-multiple:not(.dt-filter-has-value) .select2-selection--multiple,
.dt-filter-form .select2-container--default.dt-filter-is-multiple:not(.dt-filter-has-value) .select2-selection--multiple {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  align-items: center !important;
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 8px !important;
  overflow: hidden;
}
.dt-card > .card-content > form[id^=search-] .select2-container--default.dt-filter-is-multiple:not(.dt-filter-has-value) .select2-selection--multiple .select2-selection__rendered,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default.dt-filter-is-multiple:not(.dt-filter-has-value) .select2-selection--multiple .select2-selection__rendered,
.dt-filter-form .select2-container--default.dt-filter-is-multiple:not(.dt-filter-has-value) .select2-selection--multiple .select2-selection__rendered {
  display: none !important;
}
.dt-card > .card-content > form[id^=search-] .select2-container--default.dt-filter-is-multiple:not(.dt-filter-has-value) .select2-selection--multiple .select2-search--inline,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default.dt-filter-is-multiple:not(.dt-filter-has-value) .select2-selection--multiple .select2-search--inline,
.dt-filter-form .select2-container--default.dt-filter-is-multiple:not(.dt-filter-has-value) .select2-selection--multiple .select2-search--inline {
  display: block !important;
  grid-column: 1/2;
  min-width: 0 !important;
  width: 100% !important;
}
.dt-card > .card-content > form[id^=search-] .select2-container--default.dt-filter-is-multiple:not(.dt-filter-has-value) .select2-selection--multiple .select2-search__field,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default.dt-filter-is-multiple:not(.dt-filter-has-value) .select2-selection--multiple .select2-search__field,
.dt-filter-form .select2-container--default.dt-filter-is-multiple:not(.dt-filter-has-value) .select2-selection--multiple .select2-search__field {
  width: 100% !important;
  min-width: 0 !important;
  height: 30px !important;
  margin: 0 !important;
  opacity: 1 !important;
  line-height: 30px !important;
}
.dt-card > .card-content > form[id^=search-] .select2-container--default.dt-filter-is-multiple:not(.dt-filter-has-value) .select2-selection--multiple .select2-selection__clear,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default.dt-filter-is-multiple:not(.dt-filter-has-value) .select2-selection--multiple .select2-selection__clear,
.dt-filter-form .select2-container--default.dt-filter-is-multiple:not(.dt-filter-has-value) .select2-selection--multiple .select2-selection__clear {
  display: none !important;
}
.dt-card > .card-content > form[id^=search-] .select2-container--default.dt-filter-has-many .select2-selection--multiple,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default.dt-filter-has-many .select2-selection--multiple,
.dt-filter-form .select2-container--default.dt-filter-has-many .select2-selection--multiple {
  min-height: 32px !important;
}
.dt-card > .card-content > form[id^=search-] .select2-container--default.dt-filter-has-many .select2-selection--multiple .select2-selection__rendered,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default.dt-filter-has-many .select2-selection--multiple .select2-selection__rendered,
.dt-filter-form .select2-container--default.dt-filter-has-many .select2-selection--multiple .select2-selection__rendered {
  flex: 0 1 auto;
  width: auto;
  max-width: calc(100% - 44px);
}
.dt-card > .card-content > form[id^=search-] .select2-container--default.select2-container--focus .select2-selection--single,
.dt-card > .card-content > form[id^=search-] .select2-container--default.select2-container--focus .select2-selection--multiple, .dt-card > .card-content > form[id^=search-] .select2-container--default.select2-container--open .select2-selection--single,
.dt-card > .card-content > form[id^=search-] .select2-container--default.select2-container--open .select2-selection--multiple,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default.select2-container--focus .select2-selection--single,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default.select2-container--focus .select2-selection--multiple,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default.select2-container--open .select2-selection--single,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default.select2-container--open .select2-selection--multiple,
.dt-filter-form .select2-container--default.select2-container--focus .select2-selection--single,
.dt-filter-form .select2-container--default.select2-container--focus .select2-selection--multiple,
.dt-filter-form .select2-container--default.select2-container--open .select2-selection--single,
.dt-filter-form .select2-container--default.select2-container--open .select2-selection--multiple {
  border-color: #f78e1e !important;
  box-shadow: 0 0 0 3px rgba(232, 114, 12, 0.12) !important;
}
.dt-card > .card-content > form[id^=search-] .select2-container--default .select2-search--inline,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default .select2-search--inline,
.dt-filter-form .select2-container--default .select2-search--inline {
  display: block !important;
  flex: 1 1 42px;
  min-width: 40px;
  max-width: 100%;
  text-align: left !important;
}
.dt-card > .card-content > form[id^=search-] .select2-container--default .select2-search--inline .select2-search__field,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default .select2-search--inline .select2-search__field,
.dt-filter-form .select2-container--default .select2-search--inline .select2-search__field {
  width: auto !important;
  max-width: 100% !important;
  min-width: 40px !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--app-control-text) !important;
  font-size: 12px !important;
  line-height: 20px !important;
  text-align: left !important;
  direction: ltr !important;
  resize: none !important;
  overflow: hidden !important;
  vertical-align: middle !important;
}
.dt-card > .card-content > form[id^=search-] .select2-container--default .select2-search--inline .select2-search__field::placeholder,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default .select2-search--inline .select2-search__field::placeholder,
.dt-filter-form .select2-container--default .select2-search--inline .select2-search__field::placeholder {
  color: #adb5bd !important;
  opacity: 1;
  text-align: left !important;
}

.dt-card > .card-content > form[id^=search-] .select2-container--default .select2-selection--multiple .select2-selection__rendered:empty + .select2-search--inline,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default .select2-selection--multiple .select2-selection__rendered:empty + .select2-search--inline,
.dt-filter-form .select2-container--default .select2-selection--multiple .select2-selection__rendered:empty + .select2-search--inline {
  flex: 1 1 100%;
  min-width: 0;
  margin: -8px 0 0 0;
}
.dt-card > .card-content > form[id^=search-] .select2-container--default .select2-selection--multiple .select2-selection__rendered:empty + .select2-search--inline .select2-search__field,
.card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default .select2-selection--multiple .select2-selection__rendered:empty + .select2-search--inline .select2-search__field,
.dt-filter-form .select2-container--default .select2-selection--multiple .select2-selection__rendered:empty + .select2-search--inline .select2-search__field {
  width: 100% !important;
}

.dt-card > .card-content > form[id^=search-],
.card:has(.dataTables_wrapper) form[id^=search-] {
  margin-bottom: 0 !important;
}

form[id^=search-] .dt-filter-select2 {
  min-width: 180px;
}

form[id^=search-] .dt-filter-select2:not(.select2-hidden-accessible) {
  height: 32px;
  opacity: 0;
}

form[id^=search-] .select2-container {
  vertical-align: top;
}

form[id^=search-] .select2-container--default.dt-filter-has-value .select2-selection--multiple .select2-selection__clear {
  position: static !important;
  order: 3;
  height: 18px !important;
  margin: 0 0 0 auto !important;
  padding: 0 2px !important;
  line-height: 18px !important;
}

form[id^=search-] .select2-container--default .select2-selection--multiple .select2-selection__choice:has(.select2-selection__choice__display:empty) {
  display: none !important;
}

.nominee-filter-card {
  max-width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: var(--app-surface);
  box-shadow: none;
}
.nominee-filter-card .card-content {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  min-height: 56px;
}
.nominee-filter-card .form-label {
  margin: 0 !important;
  color: var(--app-text);
}
.nominee-filter-card .select2-container--default {
  max-width: 360px;
}

@media (max-width: 768px) {
  .dt-card > .card-content > form[id^=search-] .select2-container--default,
  .card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default,
  .dt-filter-form .select2-container--default,
  .dt-filter-form .select2-container--default.dt-filter-has-many,
  .nominee-filter-card .select2-container--default {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
  }
}
/* Table */
.dt-table-wrap {
  overflow-x: auto;
  border: 1px solid #d9d9d9;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: var(--app-surface);
}

table.dataTable {
  width: 100% !important;
  margin: 0 !important;
  border-collapse: collapse !important;
  background: var(--app-surface);
  color: var(--app-text);
  font-size: 14px;
}
table.dataTable thead tr {
  height: 40px;
  border-bottom: 1px solid #d9d9d9;
  background: #fbfbfc;
}
table.dataTable thead th {
  position: relative;
  padding: 12px 16px !important;
  border: none !important;
  color: #334155 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  background: #fafafa;
}
table.dataTable thead th:hover {
  color: #1b51a0 !important;
}
table.dataTable thead th.sorting_disabled {
  padding-right: 16px !important;
  cursor: default;
}
table.dataTable thead th.sorting, table.dataTable thead th.sorting_asc, table.dataTable thead th.sorting_desc {
  padding-right: 28px !important;
}
table.dataTable thead th.sorting, table.dataTable thead th.sorting_asc, table.dataTable thead th.sorting_desc, table.dataTable thead th.sorting_disabled {
  background-image: none !important;
}
table.dataTable thead th.sorting::before, table.dataTable thead th.sorting_asc::before, table.dataTable thead th.sorting_desc::before, table.dataTable thead th.sorting::after, table.dataTable thead th.sorting_asc::after, table.dataTable thead th.sorting_desc::after {
  position: absolute !important;
  right: 10px !important;
  display: block !important;
  width: 10px;
  color: #475569;
  font-size: 8px;
  line-height: 0.85;
  text-align: center;
  opacity: 0.78;
  pointer-events: none;
}
table.dataTable thead th.sorting::before, table.dataTable thead th.sorting_asc::before, table.dataTable thead th.sorting_desc::before {
  top: 12px !important;
  content: "▲" !important;
}
table.dataTable thead th.sorting::after, table.dataTable thead th.sorting_asc::after, table.dataTable thead th.sorting_desc::after {
  top: 21px !important;
  content: "▼" !important;
}
table.dataTable thead th.sorting_asc::before, table.dataTable thead th.sorting_desc::after {
  color: #0f172a;
  opacity: 1;
}
table.dataTable thead th.sorting_asc::after, table.dataTable thead th.sorting_desc::before {
  opacity: 0.34;
}
table.dataTable tbody tr {
  min-height: 58px;
  border-bottom: 1px solid #d9d9d9;
  background: var(--app-surface);
  transition: background-color 0.15s ease;
}
table.dataTable tbody tr:last-child {
  border-bottom: none;
}
table.dataTable tbody tr:hover {
  background: #fafafa;
}
table.dataTable tbody td {
  padding: 10px 16px !important;
  border: none !important;
  color: #020617;
  font-size: 14px;
  line-height: 1.25;
  vertical-align: middle !important;
}
table.dataTable tbody td.dataTables_empty {
  padding: 48px !important;
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
}
table.dataTable tbody td .btn {
  border-radius: 6px !important;
  font-size: 12px;
}
table.dataTable tbody td .btn:not(.btn-primary):not(.btn-danger):not(.btn-success) {
  border: 1px solid #e5eaf2;
  background: var(--app-control-bg);
}
table.dataTable tbody td .dropdown .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0 !important;
}
table.dataTable tbody td .badge-soft,
table.dataTable tbody td .badge-light,
table.dataTable tbody td .badge.bg-light,
table.dataTable tbody td .table-badge,
table.dataTable tbody td .stock-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}
table.dataTable tbody td small,
table.dataTable tbody td .text-muted,
table.dataTable tbody td .sub-text,
table.dataTable tbody td .table-subtitle {
  color: #475569 !important;
  font-size: 12px;
  line-height: 1.35;
}
table.dataTable tbody td strong,
table.dataTable tbody td b {
  font-weight: 700;
}

table.dataTable.nowrap th,
table.dataTable.nowrap td,
table.dataTable th,
table.dataTable td {
  white-space: nowrap;
}

table.dataTable th.dt-wrap-cell,
table.dataTable td.dt-wrap-cell {
  min-width: 360px;
  max-width: 640px;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.45;
}

table.dataTable td.dt-body-right,
table.dataTable td.text-end,
table.dataTable td.text-right,
table.dataTable td[class*=amount],
table.dataTable td[class*=price] {
  font-variant-numeric: tabular-nums;
}

/* Bottom bar */
.dt-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 52px;
  padding: 10px 16px;
  border: 1px solid #d9d9d9;
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: var(--app-surface);
}

.dataTables_info_wrap,
.dataTables_length_wrap,
.dataTables_paginate_wrap {
  display: flex;
  align-items: center;
}

/* Info */
div.dataTables_wrapper .dataTables_scrollHead {
  border-bottom: 1px solid #d9d9d9;
  background: #fbfbfc;
}
div.dataTables_wrapper .dataTables_scrollHeadInner,
div.dataTables_wrapper .dataTables_scrollHeadInner table.dataTable {
  width: 100% !important;
}
div.dataTables_wrapper .dataTables_scrollBody {
  border-top: 0 !important;
}
div.dataTables_wrapper .dataTables_scrollBody table.dataTable > thead {
  visibility: collapse;
}
div.dataTables_wrapper .dataTables_scrollBody table.dataTable > thead th,
div.dataTables_wrapper .dataTables_scrollBody table.dataTable > thead td {
  height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border: 0 !important;
  line-height: 0 !important;
}
div.dataTables_wrapper .dataTables_scrollBody table.dataTable > thead th::before,
div.dataTables_wrapper .dataTables_scrollBody table.dataTable > thead th::after,
div.dataTables_wrapper .dataTables_scrollBody table.dataTable > thead td::before,
div.dataTables_wrapper .dataTables_scrollBody table.dataTable > thead td::after {
  display: none !important;
  content: none !important;
}
div.dataTables_wrapper div.dataTables_info {
  padding: 0 !important;
  color: #9aa5b5 !important;
  font-size: 12px !important;
  white-space: nowrap;
}
div.dataTables_wrapper {
  /* Length */
}
div.dataTables_wrapper div.dataTables_length {
  color: #7b8798 !important;
  font-size: 12px !important;
}
div.dataTables_wrapper div.dataTables_length label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #7b8798;
  font-size: 12px;
}
div.dataTables_wrapper div.dataTables_length select {
  min-width: 66px;
  height: 30px;
  padding: 4px 8px !important;
  border: 1px solid var(--app-border-soft) !important;
  border-radius: 8px !important;
  background: var(--app-control-bg) !important;
  color: var(--app-control-text) !important;
  font-size: 12px !important;
  outline: none !important;
  cursor: pointer;
  text-align: center;
}
div.dataTables_wrapper {
  /* Pagination — Bootstrap 5 ul.pagination structure */
}
div.dataTables_wrapper div.dataTables_paginate {
  margin: 0 !important;
  padding: 0 !important;
}
div.dataTables_wrapper div.dataTables_paginate ul.pagination {
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0 !important;
}
div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button {
  list-style: none;
}
div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button > a,
div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button > span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 30px !important;
  height: 30px !important;
  padding: 0 8px !important;
  border: 1px solid #e7edf5 !important;
  border-radius: 8px !important;
  background: var(--app-control-bg) !important;
  color: #8c98aa !important;
  box-shadow: none !important;
  font-size: 12px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
}
div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button > a:focus,
div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button > span:focus {
  box-shadow: 0 0 0 3px rgba(232, 114, 12, 0.14) !important;
  outline: none !important;
}
div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button:hover > a,
div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button:hover > span {
  border-color: #f6b784 !important;
  background: var(--app-control-bg) !important;
  color: #ea580c !important;
}
div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button.active > a,
div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button.active > span {
  border-color: #f78e1e !important;
  background: #f78e1e !important;
  color: #ffffff !important;
  box-shadow: 0 6px 14px rgba(232, 114, 12, 0.25) !important;
  font-weight: 600 !important;
}
div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button.disabled > a,
div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button.disabled > span {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

[data-theme=dark] .dt-card,
[data-theme=dark] .card .dataTables_wrapper {
  border-color: var(--app-border-soft);
}
[data-theme=dark] .dt-toolbar,
[data-theme=dark] .dt-bottom,
[data-theme=dark] .dt-table-wrap,
[data-theme=dark] table.dataTable thead tr,
[data-theme=dark] table.dataTable tbody tr {
  border-color: var(--app-border-soft);
}
[data-theme=dark] .dt-bottom {
  background: var(--app-surface);
}
[data-theme=dark] .dt-filter-form .form-select,
[data-theme=dark] .dt-filter-form select,
[data-theme=dark] .dt-card > .card-content > form[id^=search-] .form-select,
[data-theme=dark] .dt-card > .card-content > form[id^=search-] select,
[data-theme=dark] .card:has(.dataTables_wrapper) form[id^=search-] .form-select,
[data-theme=dark] .card:has(.dataTables_wrapper) form[id^=search-] select {
  border-color: var(--app-border-soft);
  background: var(--app-control-bg);
  color: var(--app-control-text);
}
[data-theme=dark] .dt-filter-form .select2-container--default .select2-selection--single,
[data-theme=dark] .dt-filter-form .select2-container--default .select2-selection--multiple,
[data-theme=dark] .dt-card > .card-content > form[id^=search-] .select2-container--default .select2-selection--single,
[data-theme=dark] .dt-card > .card-content > form[id^=search-] .select2-container--default .select2-selection--multiple,
[data-theme=dark] .card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default .select2-selection--single,
[data-theme=dark] .card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default .select2-selection--multiple {
  border-color: var(--app-border-soft) !important;
  background: var(--app-control-bg) !important;
  color: var(--app-control-text) !important;
}
[data-theme=dark] .dt-filter-form .select2-container--default .select2-selection__rendered,
[data-theme=dark] .dt-filter-form .select2-container--default .select2-search__field,
[data-theme=dark] .dt-card > .card-content > form[id^=search-] .select2-container--default .select2-selection__rendered,
[data-theme=dark] .dt-card > .card-content > form[id^=search-] .select2-container--default .select2-search__field,
[data-theme=dark] .card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default .select2-selection__rendered,
[data-theme=dark] .card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default .select2-search__field {
  color: var(--app-control-text) !important;
}
[data-theme=dark] .dt-filter-form .select2-container--default .select2-selection__placeholder,
[data-theme=dark] .dt-filter-form .select2-container--default .select2-search__field::placeholder,
[data-theme=dark] .dt-card > .card-content > form[id^=search-] .select2-container--default .select2-selection__placeholder,
[data-theme=dark] .dt-card > .card-content > form[id^=search-] .select2-container--default .select2-search__field::placeholder,
[data-theme=dark] .card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default .select2-selection__placeholder,
[data-theme=dark] .card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default .select2-search__field::placeholder {
  color: var(--app-control-placeholder) !important;
}
[data-theme=dark] .dt-filter-form .select2-container--default .select2-selection__choice,
[data-theme=dark] .dt-card > .card-content > form[id^=search-] .select2-container--default .select2-selection__choice,
[data-theme=dark] .card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default .select2-selection__choice {
  border-color: rgba(247, 142, 30, 0.45) !important;
  background: rgba(247, 142, 30, 0.16) !important;
  color: #fbbf77 !important;
}
[data-theme=dark] .dt-filter-form .select2-container--default .select2-selection__choice__remove,
[data-theme=dark] .dt-card > .card-content > form[id^=search-] .select2-container--default .select2-selection__choice__remove,
[data-theme=dark] .card:has(.dataTables_wrapper) form[id^=search-] .select2-container--default .select2-selection__choice__remove {
  color: #fde6ca !important;
}
[data-theme=dark] .nominee-filter-card {
  border-color: var(--app-border-soft);
  background: var(--app-surface);
}
[data-theme=dark] table.dataTable {
  background: var(--app-surface);
  --bs-table-bg: var(--app-surface);
  --bs-table-color: var(--app-text);
  --bs-table-hover-bg: var(--app-table-hover-bg);
  --bs-table-hover-color: var(--app-text);
}
[data-theme=dark] table.dataTable thead tr {
  background: var(--app-surface-muted);
}
[data-theme=dark] table.dataTable tbody tr {
  background: var(--app-surface);
}
[data-theme=dark] table.dataTable thead th {
  background-color: var(--app-surface-muted) !important;
  color: #e2e8f0 !important;
  background: var(--app-surface-muted);
}
[data-theme=dark] table.dataTable thead th.sorting::before, [data-theme=dark] table.dataTable thead th.sorting::after, [data-theme=dark] table.dataTable thead th.sorting_asc::before, [data-theme=dark] table.dataTable thead th.sorting_asc::after, [data-theme=dark] table.dataTable thead th.sorting_desc::before, [data-theme=dark] table.dataTable thead th.sorting_desc::after {
  color: #d1d9e6 !important;
  opacity: 0.88 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
[data-theme=dark] table.dataTable thead th.sorting_asc::before, [data-theme=dark] table.dataTable thead th.sorting_desc::after {
  color: #ffffff !important;
  opacity: 1 !important;
}
[data-theme=dark] table.dataTable thead th.sorting_asc::after, [data-theme=dark] table.dataTable thead th.sorting_desc::before {
  color: #9fb0c5 !important;
  opacity: 0.62 !important;
}
[data-theme=dark] table.dataTable > :not(caption) > * > * {
  background-color: var(--app-surface) !important;
  box-shadow: none !important;
  color: var(--app-text);
}
[data-theme=dark] table.dataTable > thead > tr > th {
  background-color: var(--app-surface-muted) !important;
}
[data-theme=dark] table.dataTable.table-hover > tbody > tr:hover > * {
  background-color: var(--app-table-hover-bg) !important;
  box-shadow: none !important;
  color: var(--app-heading) !important;
}
[data-theme=dark] table.dataTable tbody tr:hover,
[data-theme=dark] table.dataTable tbody tr:hover > *,
[data-theme=dark] table.dataTable tbody tr:hover td {
  background-color: var(--app-table-hover-bg) !important;
  color: var(--app-heading) !important;
}
[data-theme=dark] table.dataTable tbody td {
  background-color: var(--app-surface) !important;
  color: var(--app-text);
}
[data-theme=dark] table.dataTable tbody td .badge-soft,
[data-theme=dark] table.dataTable tbody td .badge-light,
[data-theme=dark] table.dataTable tbody td .badge.bg-light,
[data-theme=dark] table.dataTable tbody td .table-badge,
[data-theme=dark] table.dataTable tbody td .stock-badge {
  border-color: var(--app-border-soft);
  background: var(--app-control-bg);
  color: #d7e0ec;
}
[data-theme=dark] table.dataTable tbody td small,
[data-theme=dark] table.dataTable tbody td .text-muted,
[data-theme=dark] table.dataTable tbody td .sub-text,
[data-theme=dark] table.dataTable tbody td .table-subtitle {
  color: #cbd5e1 !important;
}
[data-theme=dark] div.dataTables_wrapper .dataTables_scrollHead {
  background: var(--app-surface-muted);
}
[data-theme=dark] div.dataTables_wrapper div.dataTables_info,
[data-theme=dark] div.dataTables_wrapper div.dataTables_length,
[data-theme=dark] div.dataTables_wrapper div.dataTables_length label {
  color: var(--app-text-muted) !important;
}
[data-theme=dark] div.dataTables_wrapper div.dataTables_length select,
[data-theme=dark] div.dataTables_wrapper div.dataTables_filter input[type=search] {
  border-color: var(--app-border-soft) !important;
  background-color: var(--app-control-bg) !important;
  color: var(--app-control-text) !important;
}
[data-theme=dark] div.dataTables_wrapper div.dataTables_length select::placeholder,
[data-theme=dark] div.dataTables_wrapper div.dataTables_filter input[type=search]::placeholder {
  color: var(--app-control-placeholder) !important;
  opacity: 1;
}
[data-theme=dark] div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button > a,
[data-theme=dark] div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button > span {
  border-color: var(--app-border-soft) !important;
  background: var(--app-control-bg) !important;
  color: #d7e0ec !important;
}
[data-theme=dark] div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button:not(.disabled):not(.active):hover > a,
[data-theme=dark] div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button:not(.disabled):not(.active):hover > span, [data-theme=dark] div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button:not(.disabled):not(.active):focus-within > a,
[data-theme=dark] div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button:not(.disabled):not(.active):focus-within > span {
  border-color: rgba(247, 142, 30, 0.7) !important;
  background: rgba(247, 142, 30, 0.18) !important;
  color: #fff7ed !important;
  box-shadow: 0 0 0 3px rgba(247, 142, 30, 0.14) !important;
}
[data-theme=dark] div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button.active > a,
[data-theme=dark] div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button.active > span {
  border-color: #f78e1e !important;
  background: #f78e1e !important;
  color: #ffffff !important;
}
[data-theme=dark] div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button.disabled > a,
[data-theme=dark] div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button.disabled > span {
  color: #64748b !important;
  opacity: 0.7 !important;
}

/* ════════════════════════════════
   DATATABLE SEARCH — Native styled
════════════════════════════════ */
.dataTables_filter {
  display: flex;
  align-items: center;
}
.dataTables_filter label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #8b96a7;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.dataTables_filter input[type=search] {
  width: 230px !important;
  margin-left: 0 !important;
  padding: 7px 12px 7px 36px !important;
  border: 1px solid #e8edf4 !important;
  border-radius: 9px !important;
  background: #f7f9fc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 10px center !important;
  color: #1e293b !important;
  box-shadow: none !important;
  font-size: 12.5px !important;
  outline: none !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dataTables_filter input[type=search]:focus {
  border-color: #f78e1e !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(232, 114, 12, 0.12) !important;
}

[data-theme=dark] .dataTables_filter label {
  color: var(--app-text-muted);
}
[data-theme=dark] .dataTables_filter input[type=search] {
  border-color: var(--app-border-soft) !important;
  background-color: var(--app-control-bg) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") !important;
  color: var(--app-control-text) !important;
}
[data-theme=dark] .dataTables_filter input[type=search]::placeholder {
  color: var(--app-control-placeholder) !important;
  opacity: 1;
}
[data-theme=dark] .dataTables_filter input[type=search]:focus {
  border-color: #f78e1e !important;
  background-color: #1d2738 !important;
  box-shadow: 0 0 0 3px rgba(247, 142, 30, 0.18) !important;
}

@media (max-width: 768px) {
  .dt-toolbar {
    align-items: stretch;
    margin-bottom: 10px;
    padding: 0;
  }
  .dt-toolbar-left,
  .dt-toolbar-right {
    width: 100%;
    justify-content: space-between;
  }
  .dataTables_filter label {
    width: 100%;
  }
  .dataTables_filter input[type=search] {
    width: 100% !important;
    min-width: 0;
  }
  .dt-bottom {
    padding: 10px 12px;
  }
  .dt-filter-form {
    width: 100%;
  }
  .dt-filter-form .row {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }
  .dt-filter-form .col-auto {
    width: 100%;
  }
  .dt-filter-form .form-select,
  .dt-filter-form select {
    width: 100%;
    min-width: 0;
  }
}
/* ════════════════════════════════
   ACTION BUTTONS — Generalized
════════════════════════════════ */
.btn {
  --mo-btn-radius: 8px;
  --mo-btn-focus: rgba(247, 142, 30, .18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: var(--mo-btn-radius) !important;
  padding: 9px 16px !important;
  border-width: 1px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.btn .ui-icon,
.btn i,
.btn svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: currentColor;
  stroke: currentColor;
}
.btn:focus-visible {
  box-shadow: 0 0 0 3px var(--mo-btn-focus) !important;
  outline: 0;
}
.btn:disabled, .btn.disabled {
  box-shadow: none !important;
  cursor: not-allowed;
  opacity: 0.58;
  transform: none !important;
}

.btn-sm {
  min-height: 34px !important;
  gap: 6px;
  padding: 7px 12px !important;
  font-size: 13px !important;
}
.btn-sm .ui-icon,
.btn-sm i,
.btn-sm svg {
  width: 14px;
  height: 14px;
}

.btn-lg {
  min-height: 46px !important;
  padding: 11px 18px !important;
  font-size: 15px !important;
}

.btn.p-0,
.btn.btn-icon,
.btn-action {
  padding: 0 !important;
}

.btn.px-3 {
  padding-right: 14px !important;
  padding-left: 14px !important;
}

.btn.px-4 {
  padding-right: 18px !important;
  padding-left: 18px !important;
}

.btn.w-100 {
  width: 100%;
}

.btn-primary {
  border-color: #1b51a0 !important;
  background: linear-gradient(180deg, #2361b3 0%, #1b51a0 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 18px rgba(27, 81, 160, 0.18);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  border-color: #d97408 !important;
  background: linear-gradient(180deg, #ff9f38 0%, #f78e1e 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 22px rgba(247, 142, 30, 0.28), 0 0 0 3px rgba(247, 142, 30, 0.14) !important;
}

.btn-secondary {
  border-color: #475569 !important;
  background: #475569 !important;
  color: #ffffff !important;
}
.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active {
  border-color: #334155 !important;
  background: #334155 !important;
  color: #ffffff !important;
}

.btn-success {
  border-color: #16a34a !important;
  background: #16a34a !important;
  color: #ffffff !important;
}
.btn-success:hover, .btn-success:focus, .btn-success:active {
  border-color: #12803b !important;
  background: #12803b !important;
  color: #ffffff !important;
}

.btn-warning {
  border-color: #f78e1e !important;
  background: #f78e1e !important;
  color: #221405 !important;
}
.btn-warning:hover, .btn-warning:focus, .btn-warning:active {
  border-color: #d97408 !important;
  background: #d97408 !important;
  color: #ffffff !important;
}

.btn-danger {
  border-color: #dc2626 !important;
  background: #dc2626 !important;
  color: #ffffff !important;
}
.btn-danger:hover, .btn-danger:focus, .btn-danger:active {
  border-color: #b91c1c !important;
  background: #b91c1c !important;
  color: #ffffff !important;
}

.btn-outline-primary {
  border-color: rgba(27, 81, 160, 0.55) !important;
  background: rgba(27, 81, 160, 0.04) !important;
  color: #1b51a0 !important;
}
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
  border-color: rgba(247, 142, 30, 0.72) !important;
  background: #fff6ec !important;
  color: #9a4d05 !important;
  box-shadow: 0 0 0 3px rgba(247, 142, 30, 0.1) !important;
}

.btn-outline-secondary {
  border-color: var(--app-border) !important;
  background: var(--app-surface) !important;
  color: var(--app-control-text) !important;
}
.btn-outline-secondary:hover, .btn-outline-secondary:focus, .btn-outline-secondary:active {
  border-color: rgba(247, 142, 30, 0.62) !important;
  background: #fff6ec !important;
  color: #9a4d05 !important;
  box-shadow: 0 0 0 3px rgba(247, 142, 30, 0.1) !important;
}

.btn-outline-success {
  border-color: rgba(22, 163, 74, 0.42) !important;
  background: rgba(22, 163, 74, 0.06) !important;
  color: #16a34a !important;
}
.btn-outline-success:hover, .btn-outline-success:focus, .btn-outline-success:active {
  border-color: #16a34a !important;
  background: #f0fdf4 !important;
  color: #0f7a36 !important;
}

.btn-outline-danger {
  border-color: rgba(220, 38, 38, 0.38) !important;
  background: rgba(220, 38, 38, 0.05) !important;
  color: #dc2626 !important;
}
.btn-outline-danger:hover, .btn-outline-danger:focus, .btn-outline-danger:active {
  border-color: #dc2626 !important;
  background: #fef2f2 !important;
  color: #b91c1c !important;
}

.btn-outline-warning {
  border-color: rgba(247, 142, 30, 0.58) !important;
  background: rgba(247, 142, 30, 0.08) !important;
  color: #9a4d05 !important;
}
.btn-outline-warning:hover, .btn-outline-warning:focus, .btn-outline-warning:active {
  border-color: #f78e1e !important;
  background: #fff6ec !important;
  color: #7c3d03 !important;
}

.btn-light {
  border-color: var(--app-border-soft) !important;
  background: var(--app-surface) !important;
  color: var(--app-heading) !important;
}

.btn[style*="color:#2dd4a0"],
.btn[style*="color: #2dd4a0"],
.btn[style*="color:#2f5fb3"],
.btn[style*="color: #2f5fb3"] {
  border-color: rgba(27, 81, 160, 0.55) !important;
  background: rgba(27, 81, 160, 0.04) !important;
  color: #1b51a0 !important;
}
.btn[style*="color:#2dd4a0"]:hover, .btn[style*="color:#2dd4a0"]:focus, .btn[style*="color:#2dd4a0"]:active,
.btn[style*="color: #2dd4a0"]:hover,
.btn[style*="color: #2dd4a0"]:focus,
.btn[style*="color: #2dd4a0"]:active,
.btn[style*="color:#2f5fb3"]:hover,
.btn[style*="color:#2f5fb3"]:focus,
.btn[style*="color:#2f5fb3"]:active,
.btn[style*="color: #2f5fb3"]:hover,
.btn[style*="color: #2f5fb3"]:focus,
.btn[style*="color: #2f5fb3"]:active {
  border-color: rgba(247, 142, 30, 0.62) !important;
  background: #fff6ec !important;
  color: #9a4d05 !important;
}

.btn[style*="background:#E8720C"],
.btn[style*="background: #E8720C"],
.btn[style*="background:#e8720c"],
.btn[style*="background: #e8720c"],
.btn[style*="background:linear-gradient(135deg,#e8720c"],
.btn[style*="background: linear-gradient(135deg,#e8720c"],
.btn[style*="background:linear-gradient(135deg, #e8720c"],
.btn[style*="background: linear-gradient(135deg, #e8720c"] {
  border-color: #1b51a0 !important;
  background: linear-gradient(180deg, #2361b3 0%, #1b51a0 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 18px rgba(27, 81, 160, 0.18) !important;
}
.btn[style*="background:#E8720C"]:hover, .btn[style*="background:#E8720C"]:focus, .btn[style*="background:#E8720C"]:active,
.btn[style*="background: #E8720C"]:hover,
.btn[style*="background: #E8720C"]:focus,
.btn[style*="background: #E8720C"]:active,
.btn[style*="background:#e8720c"]:hover,
.btn[style*="background:#e8720c"]:focus,
.btn[style*="background:#e8720c"]:active,
.btn[style*="background: #e8720c"]:hover,
.btn[style*="background: #e8720c"]:focus,
.btn[style*="background: #e8720c"]:active,
.btn[style*="background:linear-gradient(135deg,#e8720c"]:hover,
.btn[style*="background:linear-gradient(135deg,#e8720c"]:focus,
.btn[style*="background:linear-gradient(135deg,#e8720c"]:active,
.btn[style*="background: linear-gradient(135deg,#e8720c"]:hover,
.btn[style*="background: linear-gradient(135deg,#e8720c"]:focus,
.btn[style*="background: linear-gradient(135deg,#e8720c"]:active,
.btn[style*="background:linear-gradient(135deg, #e8720c"]:hover,
.btn[style*="background:linear-gradient(135deg, #e8720c"]:focus,
.btn[style*="background:linear-gradient(135deg, #e8720c"]:active,
.btn[style*="background: linear-gradient(135deg, #e8720c"]:hover,
.btn[style*="background: linear-gradient(135deg, #e8720c"]:focus,
.btn[style*="background: linear-gradient(135deg, #e8720c"]:active {
  border-color: #d97408 !important;
  background: linear-gradient(180deg, #ff9f38 0%, #f78e1e 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 22px rgba(247, 142, 30, 0.28), 0 0 0 3px rgba(247, 142, 30, 0.14) !important;
}

button[style*="background:#E8720C"]:not(.btn),
button[style*="background: #E8720C"]:not(.btn),
button[style*="background:#e8720c"]:not(.btn),
button[style*="background: #e8720c"]:not(.btn) {
  border-color: #1b51a0 !important;
  background: #1b51a0 !important;
  color: #ffffff !important;
}
button[style*="background:#E8720C"]:not(.btn):hover, button[style*="background:#E8720C"]:not(.btn):focus,
button[style*="background: #E8720C"]:not(.btn):hover,
button[style*="background: #E8720C"]:not(.btn):focus,
button[style*="background:#e8720c"]:not(.btn):hover,
button[style*="background:#e8720c"]:not(.btn):focus,
button[style*="background: #e8720c"]:not(.btn):hover,
button[style*="background: #e8720c"]:not(.btn):focus {
  border-color: #d97408 !important;
  background: #f78e1e !important;
  color: #ffffff !important;
}

.btn-link {
  min-height: auto;
  border-radius: 6px !important;
  color: #1b51a0;
  font-weight: 700;
}
.btn-link:hover, .btn-link:focus {
  color: #d97408;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  color: #475569;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-action svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn-action:hover {
  background: #f1f5f9;
  color: #1e293b;
}
.btn-action.btn-edit {
  border-color: #bdd5ff;
  background: #eef5ff;
  color: #1b51a0;
}
.btn-action.btn-edit:hover {
  border-color: #1b51a0;
  background: #1b51a0;
  color: #ffffff;
}
.btn-action.btn-view {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #16a34a;
}
.btn-action.btn-view:hover {
  border-color: #16a34a;
  background: #16a34a;
  color: #ffffff;
}
.btn-action.btn-delete {
  border-color: #fecaca;
  background: #fef2f2;
  color: #dc2626;
}
.btn-action.btn-delete:hover {
  border-color: #dc2626;
  background: #dc2626;
  color: #ffffff;
}

table.dataTable tbody td .dropdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

table.dataTable th.dt-actions-cell,
table.dataTable td.dt-actions-cell,
table.dataTable th:last-child,
table.dataTable td:last-child {
  white-space: normal;
}

table.dataTable tbody td .dropdown > button[aria-label=Actions] {
  display: none !important;
}

table.dataTable tbody td .dropdown > .dropdown-menu {
  position: static !important;
  inset: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  width: 124px !important;
  min-width: 124px !important;
  max-width: 124px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

table.dataTable tbody td .dropdown > .dropdown-menu > li {
  display: inline-flex !important;
  margin: 0 !important;
  padding: 0 !important;
}

table.dataTable tbody td .dropdown > .dropdown-menu .dropdown-divider {
  display: none !important;
}

table.dataTable tbody td .dropdown > .dropdown-menu .dropdown-item {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #526174 !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

table.dataTable tbody td .dropdown > .dropdown-menu .dropdown-item:hover,
table.dataTable tbody td .dropdown > .dropdown-menu .dropdown-item:focus {
  background: #fff1e9 !important;
  color: #f26d21 !important;
  outline: none !important;
}

table.dataTable tbody td .dropdown > .dropdown-menu .dropdown-item > svg,
table.dataTable tbody td .dropdown > .dropdown-menu .dropdown-item i,
table.dataTable tbody td .dropdown > .dropdown-menu .dropdown-item .legacy-fa-svg {
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: currentColor !important;
  font-size: 15px !important;
  line-height: 1 !important;
}

table.dataTable tbody td .dropdown > button[aria-label=Actions] {
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  padding: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #475569 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

table.dataTable tbody td .dropdown > button[aria-label=Actions]::before {
  content: "⋮";
  display: block;
  color: currentColor;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-1px);
}

table.dataTable tbody td .dropdown > button[aria-label=Actions] > svg,
table.dataTable tbody td .dropdown > button[aria-label=Actions] > .legacy-fa-svg {
  display: none !important;
}

table.dataTable tbody td .dropdown > button[aria-label=Actions]:hover {
  border-color: transparent !important;
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

table.dataTable tbody td .btn-action {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-color: transparent;
  border-radius: 8px;
  background: transparent;
  color: #526174;
}

table.dataTable tbody td .btn-action:hover {
  border-color: transparent;
  background: #fff1e9;
  color: #f26d21;
}

table.dataTable.table-hover > tbody > tr:hover > * {
  box-shadow: inset 0 0 0 9999px var(--app-table-hover-bg) !important;
}

[data-theme=dark] .btn {
  --mo-btn-focus: rgba(247, 142, 30, .22);
}
[data-theme=dark] .btn-primary {
  border-color: #2d6bc1 !important;
  background: linear-gradient(180deg, #2d6bc1 0%, #1d55a6 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}
[data-theme=dark] .btn-primary:hover, [data-theme=dark] .btn-primary:focus-visible, [data-theme=dark] .btn-primary:active {
  border-color: #f78e1e !important;
  background: linear-gradient(180deg, #ff9f38 0%, #f78e1e 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(247, 142, 30, 0.22), 0 12px 24px rgba(0, 0, 0, 0.28) !important;
}
[data-theme=dark] .btn-secondary {
  border-color: #475569 !important;
  background: #334155 !important;
  color: #f8fafc !important;
}
[data-theme=dark] .btn-secondary:hover, [data-theme=dark] .btn-secondary:focus-visible, [data-theme=dark] .btn-secondary:active {
  border-color: rgba(247, 142, 30, 0.52) !important;
  background: #3f4f64 !important;
  color: #ffffff !important;
}
[data-theme=dark] .btn-outline-secondary {
  border-color: var(--app-border-soft) !important;
  background: rgba(15, 23, 42, 0.42) !important;
  color: #d7e0ec !important;
}
[data-theme=dark] .btn-outline-secondary .ui-icon,
[data-theme=dark] .btn-outline-secondary i,
[data-theme=dark] .btn-outline-secondary svg {
  color: #cbd5e1;
  stroke: currentColor;
}
[data-theme=dark] .btn-outline-secondary:hover, [data-theme=dark] .btn-outline-secondary:focus-visible {
  border-color: var(--app-active-border) !important;
  background: rgba(247, 142, 30, 0.16) !important;
  color: #fff7ed !important;
  box-shadow: 0 0 0 3px rgba(247, 142, 30, 0.14) !important;
}
[data-theme=dark] .btn-outline-primary {
  border-color: rgba(96, 165, 250, 0.58) !important;
  background: rgba(59, 130, 246, 0.08) !important;
  color: #bfdbfe !important;
}
[data-theme=dark] .btn-outline-primary:hover, [data-theme=dark] .btn-outline-primary:focus-visible {
  border-color: rgba(247, 142, 30, 0.62) !important;
  background: rgba(247, 142, 30, 0.18) !important;
  color: #fff7ed !important;
  box-shadow: 0 0 0 3px rgba(247, 142, 30, 0.14) !important;
}
[data-theme=dark] .btn-outline-success {
  border-color: rgba(52, 211, 153, 0.38) !important;
  background: rgba(16, 185, 129, 0.1) !important;
  color: #86efac !important;
}
[data-theme=dark] .btn-outline-success:hover, [data-theme=dark] .btn-outline-success:focus-visible {
  border-color: rgba(52, 211, 153, 0.62) !important;
  background: rgba(16, 185, 129, 0.18) !important;
  color: #dcfce7 !important;
}
[data-theme=dark] .btn-outline-danger {
  border-color: rgba(248, 113, 113, 0.42) !important;
  background: rgba(220, 38, 38, 0.12) !important;
  color: #fca5a5 !important;
}
[data-theme=dark] .btn-outline-danger:hover, [data-theme=dark] .btn-outline-danger:focus-visible {
  border-color: rgba(248, 113, 113, 0.7) !important;
  background: rgba(220, 38, 38, 0.22) !important;
  color: #fee2e2 !important;
}
[data-theme=dark] .btn-outline-warning {
  border-color: rgba(247, 142, 30, 0.55) !important;
  background: rgba(247, 142, 30, 0.12) !important;
  color: #fed7aa !important;
}
[data-theme=dark] .btn-outline-warning:hover, [data-theme=dark] .btn-outline-warning:focus-visible {
  border-color: rgba(247, 142, 30, 0.72) !important;
  background: rgba(247, 142, 30, 0.2) !important;
  color: #fff7ed !important;
}
[data-theme=dark] .btn-light {
  border-color: var(--app-border-soft) !important;
  background: var(--app-surface-muted) !important;
  color: var(--app-heading) !important;
}
[data-theme=dark] .btn-link {
  color: #bfdbfe;
}
[data-theme=dark] .btn-link:hover, [data-theme=dark] .btn-link:focus-visible {
  color: #fed7aa;
}
[data-theme=dark] table.dataTable th.dt-actions-cell,
[data-theme=dark] table.dataTable td.dt-actions-cell,
[data-theme=dark] table.dataTable th:last-child,
[data-theme=dark] table.dataTable td:last-child {
  color: #cbd5e1 !important;
}
[data-theme=dark] table.dataTable tbody td .dropdown > .dropdown-menu .dropdown-item,
[data-theme=dark] table.dataTable tbody td .btn-action {
  color: #cbd5e1 !important;
  opacity: 1 !important;
  border-color: transparent !important;
}
[data-theme=dark] table.dataTable tbody td .dropdown > .dropdown-menu .dropdown-item > svg,
[data-theme=dark] table.dataTable tbody td .dropdown > .dropdown-menu .dropdown-item i,
[data-theme=dark] table.dataTable tbody td .dropdown > .dropdown-menu .dropdown-item .legacy-fa-svg,
[data-theme=dark] table.dataTable tbody td .btn-action > svg,
[data-theme=dark] table.dataTable tbody td .btn-action i,
[data-theme=dark] table.dataTable tbody td .btn-action .legacy-fa-svg {
  color: currentColor !important;
  opacity: 1 !important;
  stroke: currentColor !important;
}
[data-theme=dark] table.dataTable tbody td .dropdown > .dropdown-menu .dropdown-item:hover,
[data-theme=dark] table.dataTable tbody td .dropdown > .dropdown-menu .dropdown-item:focus,
[data-theme=dark] table.dataTable tbody td .btn-action:hover {
  border-color: rgba(247, 142, 30, 0.38) !important;
  background: rgba(247, 142, 30, 0.2) !important;
  color: #fff7ed !important;
}
[data-theme=dark] table.dataTable.table-hover > tbody > tr:hover > * {
  box-shadow: none !important;
}

/* ════════════════════════════════
   BADGE — Generalized
════════════════════════════════ */
.badge-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.badge-status--compact {
  min-height: 18px;
  padding: 3px 8px;
  font-size: 11px;
}
.badge-active {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}
.badge-inactive, .badge-deactivated {
  border-color: #fde68a;
  background: #fffbeb;
  color: #b45309;
}
.badge-deleted {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
}
.badge-primary {
  border: 1px solid #bdd5ff;
  background: #eef5ff;
  color: #1b51a0;
}

.dt-code {
  display: inline-block;
  max-width: 100%;
  padding: 2px 6px;
  border: 1px solid #dbeafe;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

.cp-dt-status {
  background: var(--cp-status-bg);
  color: var(--cp-status-color);
  border-color: var(--cp-status-border);
}

.cp-dt-status__dot {
  background: var(--cp-status-dot);
}

[data-theme=dark] code {
  color: #bfdbfe;
}
[data-theme=dark] .dt-code {
  border-color: rgba(96, 165, 250, 0.34);
  background: rgba(37, 99, 235, 0.16);
  color: #bfdbfe;
}
[data-theme=dark] .badge-active {
  border-color: rgba(34, 197, 94, 0.38);
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}
[data-theme=dark] .badge-inactive,
[data-theme=dark] .badge-deactivated {
  border-color: rgba(234, 179, 8, 0.46);
  background: rgba(234, 179, 8, 0.16);
  color: #fde047;
}
[data-theme=dark] .badge-deleted {
  border-color: rgba(244, 63, 94, 0.44);
  background: rgba(244, 63, 94, 0.16);
  color: #fb7185;
}
[data-theme=dark] .cp-dt-status--in-force {
  --cp-status-bg: rgba(34, 197, 94, .18) !important;
  --cp-status-color: #86efac !important;
  --cp-status-border: rgba(34, 197, 94, .40) !important;
  --cp-status-dot: #4ade80 !important;
}
[data-theme=dark] .cp-dt-status--paid-up {
  --cp-status-bg: rgba(59, 130, 246, .18) !important;
  --cp-status-color: #93c5fd !important;
  --cp-status-border: rgba(59, 130, 246, .44) !important;
  --cp-status-dot: #60a5fa !important;
}
[data-theme=dark] .cp-dt-status--lapsed {
  --cp-status-bg: rgba(244, 63, 94, .16) !important;
  --cp-status-color: #fb7185 !important;
  --cp-status-border: rgba(244, 63, 94, .42) !important;
  --cp-status-dot: #fb7185 !important;
}
[data-theme=dark] .cp-dt-status--fully-paid {
  --cp-status-bg: rgba(20, 184, 166, .18) !important;
  --cp-status-color: #5eead4 !important;
  --cp-status-border: rgba(20, 184, 166, .42) !important;
  --cp-status-dot: #2dd4bf !important;
}
[data-theme=dark] .cp-dt-status--neutral {
  --cp-status-bg: rgba(148, 163, 184, .16) !important;
  --cp-status-color: #cbd5e1 !important;
  --cp-status-border: rgba(148, 163, 184, .32) !important;
  --cp-status-dot: #94a3b8 !important;
}

@keyframes finarray-loader-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes finarray-loader-spin-reverse {
  0% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
@keyframes finarray-loader-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.42;
  }
}
.finarray-loader {
  --finarray-loader-primary: var(--brand-accent, #f78e1e);
  --finarray-loader-secondary: #d97408;
  --finarray-loader-accent: #ffc276;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  color: var(--finarray-loader-primary);
}
.finarray-loader .loader-circular {
  position: relative;
  width: 100%;
  height: 100%;
}
.finarray-loader .loader-ring {
  position: absolute;
  border-radius: 50%;
}
.finarray-loader .loader-ring-1 {
  inset: 0;
  border: 3px solid rgba(247, 142, 30, 0.12);
  border-top-color: var(--finarray-loader-primary);
  border-right-color: var(--finarray-loader-accent);
  animation: finarray-loader-spin 1.2s linear infinite;
}
.finarray-loader .loader-ring-2 {
  top: 15%;
  left: 15%;
  width: 70%;
  height: 70%;
  border: 2px solid rgba(247, 142, 30, 0.1);
  border-bottom-color: var(--finarray-loader-secondary);
  animation: finarray-loader-spin-reverse 1.5s linear infinite;
}
.finarray-loader .loader-ring-3 {
  top: 30%;
  left: 30%;
  width: 40%;
  height: 40%;
  border: 1.5px solid rgba(255, 194, 118, 0.28);
  border-left-color: var(--finarray-loader-accent);
  animation: finarray-loader-spin 0.8s linear infinite;
}
.finarray-loader .loader-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--finarray-loader-primary);
  box-shadow: 0 0 8px var(--finarray-loader-primary);
  transform: translate(-50%, -50%);
}
.finarray-loader--sm {
  width: 52px;
  height: 52px;
}
.finarray-loader--xs {
  width: 18px;
  height: 18px;
}
.finarray-loader--xs .loader-ring-1 {
  border-width: 2px;
}
.finarray-loader--xs .loader-ring-2 {
  border-width: 1.5px;
}
.finarray-loader--xs .loader-ring-3 {
  border-width: 1px;
}
.finarray-loader--xs .loader-dot {
  width: 4px;
  height: 4px;
}

.finarray-loader-display {
  display: flex;
  align-items: center;
  justify-content: center;
}
.finarray-loader-display--table {
  min-height: 76px;
}

.finarray-page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: progress;
  opacity: 1;
  pointer-events: all;
  transform: translateZ(0);
  transition: opacity 0.22s ease, backdrop-filter 0.22s ease, -webkit-backdrop-filter 0.22s ease;
  will-change: opacity;
}
.finarray-page-loader.is-hiding {
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
}

body.finarray-loading {
  cursor: progress;
}

div.dataTables_wrapper div.dataTables_processing {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 8;
  display: flex !important;
  width: min(120px, 100% - 32px);
  height: auto;
  min-height: 88px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 14px;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  transform: translate(-50%, -50%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
div.dataTables_wrapper div.dataTables_processing > div:not(.finarray-loader-display) {
  display: none !important;
}
div.dataTables_wrapper div.dataTables_processing > div:last-child {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
}
div.dataTables_wrapper div.dataTables_processing > div:last-child > div {
  position: static !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  animation: none !important;
}
div.dataTables_wrapper div.dataTables_processing > .finarray-loader-display {
  min-height: 76px;
  margin: 0 !important;
}
div.dataTables_wrapper div.dataTables_processing > .finarray-loader-display > .finarray-loader {
  display: inline-flex !important;
  width: 52px !important;
  height: 52px !important;
  background: transparent !important;
}
div.dataTables_wrapper div.dataTables_processing:empty, div.dataTables_wrapper div.dataTables_processing[style*="display: none"] {
  display: none !important;
}
div.dataTables_wrapper div.dataTables_processing .spinner-border,
div.dataTables_wrapper div.dataTables_processing .text-primary {
  display: none !important;
}

body.finarray-global-loader-active div.dataTables_wrapper div.dataTables_processing,
body.finarray-global-loader-active div.dataTables_wrapper div.dataTables_processing * {
  display: none !important;
}

[data-theme=dark] .finarray-page-loader {
  background: rgba(0, 0, 0, 0.5);
}
[data-theme=dark] div.dataTables_wrapper div.dataTables_processing {
  background: transparent !important;
  box-shadow: none;
}
[data-theme=dark] .finarray-loader .loader-ring-1 {
  border-color: rgba(247, 142, 30, 0.16);
  border-top-color: var(--finarray-loader-primary);
  border-right-color: var(--finarray-loader-accent);
}
[data-theme=dark] .finarray-loader .loader-ring-2 {
  border-color: rgba(247, 142, 30, 0.16);
  border-bottom-color: var(--finarray-loader-secondary);
}
[data-theme=dark] .finarray-loader .loader-ring-3 {
  border-color: rgba(255, 194, 118, 0.24);
  border-left-color: var(--finarray-loader-accent);
}

@media (prefers-reduced-motion: reduce) {
  .finarray-loader .loader-ring-1,
  .finarray-loader .loader-ring-2,
  .finarray-loader .loader-ring-3 {
    animation-duration: 2.4s;
  }
  .finarray-loader .loader-dot {
    animation: finarray-loader-pulse 1.4s ease-in-out infinite;
  }
}
/* ══════════════════════════════════════════════
   VALIDATION — force invalid-feedback visible
   Works for plain inputs, Select2, and phone input-group
══════════════════════════════════════════════ */
/* Force feedback div visible when JS sets display:block */
.form-group .invalid-feedback[style*="display: block"], .form-group .invalid-feedback[style*="display:block"] {
  display: block !important;
}
.form-group:has(.ff-phone-group.is-invalid) > .invalid-feedback {
  display: block !important;
}

/* Red border on Select2 container when sibling select has is-invalid */
select.is-invalid + .select2-container .select2-selection,
select.is-invalid ~ .select2-container .select2-selection {
  border-color: #dc3545 !important;
  border-width: 1px !important;
  border-style: solid !important;
}

/* Red border on input-group when it has is-invalid */
.input-group.is-invalid .form-control,
.input-group.is-invalid .form-select {
  border-color: #dc3545 !important;
}

/* ══════════════════════════════════════════════
   FF — Form Field Design System
   Matches reference: light bg, 8px radius, clean label
══════════════════════════════════════════════ */
.ff-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--app-muted);
  letter-spacing: 0.2px;
  margin-bottom: 5px;
}

.ff-input {
  width: 100%;
  background: var(--app-control-bg);
  border: 1px solid var(--app-border-soft);
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 13px;
  color: var(--app-text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
.ff-input:focus {
  border-color: #f78e1e;
  background: var(--app-control-bg);
  box-shadow: 0 0 0 3px rgba(232, 114, 12, 0.1);
}
.ff-input::placeholder {
  color: #adb5bd;
  font-size: 12.5px;
}
.ff-input[readonly] {
  background: var(--app-surface-muted);
  color: var(--app-muted);
  cursor: not-allowed;
}
.ff-input.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.08) !important;
}

/* ── Phone field ── */
.ff-phone-group {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--app-border-soft);
  border-radius: 8px;
  background: var(--app-control-bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ff-phone-group:focus-within {
  border-color: #f78e1e;
  background: var(--app-control-bg);
  box-shadow: 0 0 0 3px rgba(232, 114, 12, 0.1);
}
.ff-phone-group.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.08) !important;
}
.ff-phone-code {
  width: 80px;
  flex-shrink: 0;
  padding: 9px 8px;
  border: none;
  border-right: 1px solid var(--app-border-soft);
  border-radius: 0;
  background: var(--app-surface-muted);
  color: var(--app-control-text);
  font-size: 13px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}
.ff-phone-input {
  flex: 1;
  padding: 9px 13px;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.ff-phone-input:focus {
  border: none !important;
  box-shadow: none !important;
}

/* ── Datepicker ── */
.ff-date-wrap {
  position: relative;
}
.ff-date-wrap .ff-input {
  padding-right: 36px;
  cursor: pointer;
}
.ff-date-wrap .ff-date-native-picker {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.ff-date-icon {
  position: absolute;
  top: 50%;
  right: 11px;
  display: flex;
  align-items: center;
  color: #adb5bd;
  pointer-events: none;
  transform: translateY(-50%);
}

/* ── Select2 override to match ff-input style ── */
.select2-container--default .select2-selection--single {
  display: flex !important;
  align-items: center !important;
  height: 38px !important;
  padding: 0 13px !important;
  border: 1px solid var(--app-border-soft) !important;
  border-radius: 8px !important;
  background: var(--app-control-bg) !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0 !important;
  color: var(--app-text) !important;
  font-size: 13px !important;
  line-height: 38px !important;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #adb5bd !important;
  font-size: 12.5px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  right: 8px !important;
  height: 36px !important;
  margin-top: 5px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #adb5bd transparent transparent transparent !important;
}
.select2-container--default.select2-container--focus .select2-selection--single, .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #f78e1e !important;
  background: var(--app-control-bg) !important;
  box-shadow: 0 0 0 3px rgba(232, 114, 12, 0.1) !important;
}
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #f78e1e transparent !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
  padding: 7px 10px !important;
  border: 1px solid var(--app-border-soft) !important;
  border-radius: 6px !important;
  font-size: 12.5px !important;
  outline: none !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: #f78e1e !important;
}
.select2-container--default .select2-results__option {
  padding: 8px 13px !important;
  font-size: 13px !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #f78e1e !important;
}

.select2-dropdown {
  border: 1px solid var(--app-border-soft) !important;
  background: var(--app-surface) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
  overflow: hidden;
}

.select2-dropdown.dt-filter-select2-dropdown {
  border-color: rgba(247, 142, 30, 0.28) !important;
  background: var(--app-surface) !important;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14) !important;
}
.select2-dropdown.dt-filter-select2-dropdown .select2-results__options {
  max-height: 260px;
}
.select2-dropdown.dt-filter-select2-dropdown .select2-results__option {
  min-height: 36px;
  padding: 9px 13px !important;
  background: transparent !important;
  color: var(--app-text) !important;
  line-height: 1.25;
}
.select2-dropdown.dt-filter-select2-dropdown .select2-results__option--selected {
  background: rgba(247, 142, 30, 0.12) !important;
  color: #9a4b0c !important;
  font-weight: 600;
}
.select2-dropdown.dt-filter-select2-dropdown .select2-results__option--highlighted.select2-results__option--selectable {
  background: rgba(247, 142, 30, 0.18) !important;
  color: #7c2d12 !important;
}
.select2-dropdown.dt-filter-select2-dropdown .select2-results__option--highlighted.select2-results__option--selected {
  background: #f78e1e !important;
  color: #fff !important;
}
.select2-dropdown.dt-filter-select2-dropdown .select2-results__option--disabled,
.select2-dropdown.dt-filter-select2-dropdown .select2-results__message {
  color: var(--app-text-muted) !important;
  opacity: 0.72;
}

.form-check-input {
  border-color: var(--app-border-soft);
  background-color: var(--app-control-bg);
  cursor: pointer;
}
.form-check-input:checked {
  border-color: #1b51a0 !important;
  background-color: #1b51a0 !important;
}
.form-check-input:focus {
  border-color: #1b51a0 !important;
  box-shadow: 0 0 0 3px rgba(26, 77, 147, 0.16) !important;
}

.js-enhanced-select2 + .select2-container--default {
  width: 100% !important;
  min-width: 0;
  text-align: left;
}
.js-enhanced-select2 + .select2-container--default .select2-selection--single {
  height: 32px !important;
  padding: 0 32px 0 10px !important;
  border-radius: 8px !important;
}
.js-enhanced-select2 + .select2-container--default .select2-selection--single .select2-selection__rendered {
  width: 100%;
  padding: 0 !important;
  color: var(--app-control-text) !important;
  font-size: 13px !important;
  line-height: 30px !important;
  text-align: left !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.js-enhanced-select2 + .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 0 !important;
  right: 8px !important;
  height: 30px !important;
  margin-top: 0 !important;
}
.js-enhanced-select2 + .select2-container--default.select2-container--disabled .select2-selection--single {
  background: var(--app-surface-muted) !important;
  color: var(--app-text-muted) !important;
  cursor: not-allowed;
}

[data-theme=dark] .form-check-input {
  border-color: var(--app-border-soft);
  background-color: var(--app-control-bg);
}
[data-theme=dark] .form-check-input:checked {
  border-color: #1b51a0 !important;
  background-color: #1b51a0 !important;
}
[data-theme=dark] .select2-dropdown {
  border-color: var(--app-border-soft) !important;
  background: var(--app-surface) !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34) !important;
}
[data-theme=dark] .select2-dropdown.dt-filter-select2-dropdown {
  border-color: rgba(247, 142, 30, 0.4) !important;
  background: var(--app-surface) !important;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.42) !important;
}
[data-theme=dark] .select2-dropdown.dt-filter-select2-dropdown .select2-results__option {
  background: transparent !important;
  color: var(--app-text) !important;
}
[data-theme=dark] .select2-dropdown.dt-filter-select2-dropdown .select2-results__option--selected {
  background: rgba(247, 142, 30, 0.18) !important;
  color: #fed7aa !important;
}
[data-theme=dark] .select2-dropdown.dt-filter-select2-dropdown .select2-results__option--highlighted.select2-results__option--selectable {
  background: rgba(247, 142, 30, 0.26) !important;
  color: #fff7ed !important;
}
[data-theme=dark] .select2-dropdown.dt-filter-select2-dropdown .select2-results__option--highlighted.select2-results__option--selected {
  background: #f78e1e !important;
  color: #fff !important;
}
[data-theme=dark] .select2-dropdown.dt-filter-select2-dropdown .select2-results__option--disabled,
[data-theme=dark] .select2-dropdown.dt-filter-select2-dropdown .select2-results__message {
  color: var(--app-text-muted) !important;
}
[data-theme=dark] .select2-container--default .select2-results__option {
  color: var(--app-text) !important;
}
[data-theme=dark] .select2-container--default .select2-results__option--selected {
  background-color: var(--app-control-bg) !important;
  color: var(--app-control-text) !important;
}
[data-theme=dark] .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #f78e1e !important;
  color: #ffffff !important;
}
[data-theme=dark] .select2-container--default .select2-search--dropdown .select2-search__field {
  border-color: var(--app-border-soft) !important;
  background: var(--app-control-bg) !important;
  color: var(--app-control-text) !important;
}

.dt-filter-select2 + .select2-container--default {
  min-width: 180px;
  text-align: left;
}
.dt-filter-select2 + .select2-container--default .select2-selection--single {
  height: 32px !important;
  padding: 0 32px 0 10px !important;
}
.dt-filter-select2 + .select2-container--default .select2-selection--single .select2-selection__rendered {
  width: 100%;
  color: var(--app-control-text) !important;
  font-size: 12px !important;
  line-height: 30px !important;
  text-align: left !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dt-filter-select2 + .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 0 !important;
  height: 30px !important;
  margin-top: 0 !important;
}
.dt-filter-select2 + .select2-container--default .select2-selection--multiple {
  min-height: 32px !important;
  text-align: left !important;
}
.dt-filter-select2 + .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  text-align: left !important;
}
.dt-filter-select2 + .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
  text-align: left !important;
}

.card-content > .form-label + .select2-container--default,
.card-body > .form-label + .select2-container--default {
  margin-left: 8px;
  vertical-align: middle;
}

/* ── Validation state for Select2 ── */
select.is-invalid + .select2-container .select2-selection--single,
select.is-invalid ~ .select2-container .select2-selection--single {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.08) !important;
}

/* ══════════════════════════════════════════════
   MODAL — centered + blurred backdrop
══════════════════════════════════════════════ */
.modal-backdrop {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-backdrop.show {
  opacity: 0.5;
}

.modal-content {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  overflow: visible;
}

/* Select2 inside Bootstrap modals — keep list under field, above modal layers */
.modal .select2-container {
  position: relative;
  z-index: 1;
}
.modal .select2-container--open {
  z-index: 2;
}
.modal .select2-container--open .select2-dropdown--below {
  border-top: none;
}
.modal .select2-container--open .select2-dropdown--above {
  border-bottom: none;
}
.modal .select2-dropdown {
  z-index: 1065 !important;
}

/* ══════════════════════════════════════════════
   CUSTOMER MODAL — Step bar
══════════════════════════════════════════════ */
.cust-step-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border: 2px solid #dee2e6;
  border-radius: 50%;
  background: #e9ecef;
  color: #6c757d;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.2s;
}
.cust-step-label {
  color: #6c757d;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}
.cust-step-item.active .cust-step-dot {
  border-color: #f78e1e;
  background: #f78e1e;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(232, 114, 12, 0.15);
}
.cust-step-item.active .cust-step-label {
  color: #f78e1e;
  font-weight: 600;
}
.cust-step-item.done .cust-step-dot {
  border-color: #198754;
  background: #198754;
  color: #ffffff;
}
.cust-step-item.done .cust-step-label {
  color: #198754;
}
.cust-step-line {
  flex: 1;
  min-width: 24px;
  height: 2px;
  margin: 0 8px;
  background: #dee2e6;
  transition: background 0.3s;
}

.cust-step-line.done {
  background: #198754;
}

.profile-page {
  display: grid;
  gap: 20px;
  width: 100%;
  color: var(--app-text);
}

.profile-hero-card,
.profile-content-card {
  border: 1px solid var(--app-border-soft);
  background: var(--app-surface);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.profile-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 24px;
}
.profile-hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #1f5ca8 0%, #f78e1e 100%);
}

.profile-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, max-content);
  gap: 24px;
  align-items: start;
}

.profile-hero-main {
  display: flex;
  min-width: 0;
  gap: 18px;
  align-items: center;
}

.profile-hero-avatar {
  display: inline-flex;
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(31, 92, 168, 0.22);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(31, 92, 168, 0.16), rgba(247, 142, 30, 0.18));
  color: #1f5ca8;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.55);
}
.profile-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-hero-copy {
  min-width: 0;
}

.profile-kicker {
  margin-bottom: 6px;
  color: var(--app-text-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-hero-name {
  margin: 0;
  color: var(--app-heading);
  font-size: clamp(26px, 2.2vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.profile-hero-badges,
.profile-hero-meta,
.profile-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.profile-hero-badges {
  margin-top: 12px;
}

.profile-role-badge,
.profile-status-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.profile-role-badge {
  border: 1px solid rgba(31, 92, 168, 0.2);
  background: rgba(31, 92, 168, 0.1);
  color: #1f5ca8;
}

.profile-status-badge {
  border: 1px solid rgba(21, 128, 61, 0.22);
  background: rgba(22, 163, 74, 0.12);
  color: #0f8f4d;
}

.profile-hero-meta {
  margin-top: 14px;
  color: var(--app-text-muted);
  font-size: 13px;
}
.profile-hero-meta span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
}
.profile-hero-meta i,
.profile-hero-meta svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: #1f5ca8;
}

.profile-hero-actions {
  align-self: start;
  justify-content: flex-end;
  min-width: 0;
}
.profile-hero-actions .btn {
  display: inline-flex;
  gap: 8px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.profile-hero-actions .btn i,
.profile-hero-actions .btn svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}
.profile-hero-actions .btn-outline-secondary {
  border-color: var(--app-border-soft);
  background: var(--app-surface);
  color: var(--app-heading);
}
.profile-hero-actions .btn-outline-secondary:hover, .profile-hero-actions .btn-outline-secondary:focus {
  border-color: rgba(247, 142, 30, 0.55);
  background: rgba(247, 142, 30, 0.1);
  color: var(--app-heading);
}

.profile-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.profile-summary-card {
  min-width: 0;
  border: 1px solid var(--app-border-soft);
  border-radius: 8px;
  background: var(--app-surface-muted);
  padding: 14px;
}

.profile-summary-label {
  display: block;
  margin-bottom: 6px;
  color: var(--app-text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.profile-summary-value {
  display: block;
  min-width: 0;
  color: var(--app-heading);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.profile-content-card {
  overflow: hidden;
  border-radius: 14px;
}

.profile-content-card__inner {
  padding: 28px;
}

.profile-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--app-heading);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.profile-section-title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  min-width: 40px;
  background: var(--app-border-soft);
}

.profile-section-title.mb-0::after {
  display: none;
}

.profile-section-divider {
  margin: 28px 0;
  border-color: var(--app-border-soft);
  opacity: 1;
}

.profile-detail-grid {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--app-border-soft);
  border-radius: 10px;
  overflow: hidden;
  background: var(--app-surface);
}
.profile-detail-grid > [class*=col-] {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  width: 100%;
  min-width: 0;
  border-right: 1px solid var(--app-border-soft);
  border-bottom: 1px solid var(--app-border-soft);
  padding: 15px 18px;
}
.profile-detail-grid > [class*=col-]:nth-child(2n) {
  border-right: 0;
}
.profile-detail-grid > [class*=col-]:nth-last-child(-n+2) {
  border-bottom: 0;
}

.profile-field-label {
  margin: 0;
  color: var(--app-text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.profile-field-value {
  min-width: 0;
  margin: 0;
  color: var(--app-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.profile-doc-list {
  display: grid;
  gap: 10px;
}

.profile-doc-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--app-border-soft);
  border-radius: 8px;
  background: var(--app-surface-muted);
  padding: 12px;
}

.profile-doc-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(31, 92, 168, 0.1);
  color: #1f5ca8;
}

.profile-doc-title,
.profile-doc-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-doc-title {
  color: var(--app-heading);
  font-weight: 800;
}

.profile-doc-meta {
  color: var(--app-text-muted);
  font-size: 12px;
}

.profile-doc-actions {
  display: flex;
  gap: 8px;
}
.profile-doc-actions .btn {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0;
}

.profile-doc-body {
  min-width: 0;
}

.profile-doc-dot {
  margin: 0 6px;
  color: var(--app-text-muted);
}

#profile-family-members-section {
  overflow: hidden;
  border: 1px solid var(--app-border-soft) !important;
  border-radius: 10px !important;
  background: var(--app-surface) !important;
}
#profile-family-members-section h6 {
  color: var(--app-heading) !important;
}
#profile-family-members-section table {
  margin: 0;
  color: var(--app-text);
}
#profile-family-members-section th {
  border-color: var(--app-border-soft) !important;
  background: var(--app-surface-muted) !important;
  color: var(--app-heading) !important;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
#profile-family-members-section td {
  border-color: var(--app-border-soft) !important;
  color: var(--app-text) !important;
  vertical-align: middle;
}
#profile-family-members-section .btn {
  border-radius: 8px;
  font-weight: 800;
}

[data-theme=dark] .profile-hero-card,
[data-theme=dark] .profile-content-card {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}
[data-theme=dark] .profile-hero-avatar {
  border-color: rgba(96, 165, 250, 0.26);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(247, 142, 30, 0.18));
  color: #dbeafe;
  box-shadow: inset 0 0 0 8px rgba(15, 23, 42, 0.5);
}
[data-theme=dark] .profile-role-badge {
  border-color: rgba(96, 165, 250, 0.32);
  background: rgba(59, 130, 246, 0.16);
  color: #bfdbfe;
}
[data-theme=dark] .profile-status-badge {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(16, 185, 129, 0.14);
  color: #86efac;
}
[data-theme=dark] .profile-hero-meta i,
[data-theme=dark] .profile-hero-meta svg {
  color: #93c5fd;
}
[data-theme=dark] .profile-doc-icon {
  background: rgba(59, 130, 246, 0.16);
  color: #bfdbfe;
}
[data-theme=dark] .profile-hero-actions .btn-outline-secondary {
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.34);
  color: #f8fafc;
}
[data-theme=dark] .profile-hero-actions .btn-outline-secondary:hover, [data-theme=dark] .profile-hero-actions .btn-outline-secondary:focus {
  border-color: rgba(247, 142, 30, 0.65);
  background: rgba(247, 142, 30, 0.14);
  color: #ffffff;
}

@media (max-width: 1200px) {
  .profile-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 992px) {
  .profile-hero-grid {
    grid-template-columns: 1fr;
  }
  .profile-hero-actions {
    justify-content: flex-start;
    width: 100%;
  }
  .profile-detail-grid {
    grid-template-columns: 1fr;
  }
  .profile-detail-grid > [class*=col-] {
    border-right: 0;
  }
  .profile-detail-grid > [class*=col-]:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--app-border-soft);
  }
  .profile-detail-grid > [class*=col-]:last-child {
    border-bottom: 0;
  }
}
@media (max-width: 640px) {
  .profile-hero-card,
  .profile-content-card__inner {
    padding: 18px;
  }
  .profile-hero-main {
    align-items: flex-start;
  }
  .profile-hero-avatar {
    flex-basis: 68px;
    width: 68px;
    height: 68px;
    font-size: 22px;
  }
  .profile-summary-grid,
  .profile-detail-grid {
    grid-template-columns: 1fr;
  }
  .profile-detail-grid > [class*=col-] {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px;
  }
  .profile-hero-actions .btn {
    width: 100%;
  }
  .profile-doc-item {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .profile-doc-actions {
    grid-column: 1/-1;
    justify-content: flex-end;
  }
}
.auth-body {
  min-height: 100vh;
  overflow: hidden;
  background: #eaf0f8;
}

.auth-page {
  display: grid;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  place-items: center;
  padding: clamp(0px, 3vw, 0px);
}
.auth-page--success {
  overflow-y: auto;
}

.auth-shell {
  display: grid;
  width: 100%;
  height: min(907px, 100vh - 0px);
  min-height: 0;
  grid-template-columns: minmax(0, 55%) minmax(0, 45%);
  align-items: stretch;
  overflow: hidden;
  border-radius: 0px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.13);
}

.auth-brand-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid rgba(205, 216, 232, 0.72);
  background: linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px), linear-gradient(135deg, #ffffff 0%, #ffffff 52%, #f8fafc 100%);
  background-position: 0 0;
  background-size: 86px 91px, 86px 91px, auto;
  background-repeat: repeat, repeat, no-repeat;
}
.auth-brand-panel::before, .auth-brand-panel::after {
  position: absolute;
  border-radius: 9999px;
  content: "";
  filter: blur(64px);
  pointer-events: none;
}
.auth-brand-panel::before {
  top: 80px;
  left: 80px;
  width: 288px;
  height: 288px;
  background: rgba(247, 142, 30, 0.1);
}
.auth-brand-panel::after {
  right: 40px;
  bottom: 80px;
  width: 384px;
  height: 384px;
  background: rgba(27, 81, 160, 0.1);
}
.auth-brand-panel__inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100%;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(14px, 2vh, 22px);
  padding: clamp(28px, 4vw, 44px);
}
.auth-brand-panel__top {
  align-self: center;
  max-width: 660px;
  min-height: 0;
}

.auth-brand-logo {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: clamp(10px, 3vh, 7px);
  border: 1px solid rgba(205, 216, 232, 0.82);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  padding: 6px 10px;
}
.auth-brand-logo img {
  display: block;
  width: clamp(150px, 13vw, 178px);
  max-width: 46vw;
  height: auto;
  object-fit: contain;
}

.auth-brand-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-bottom: 10px;
  border: 1px solid rgba(247, 142, 30, 0.72);
  border-radius: 9999px;
  background: #fff7ed;
  padding: 5px 13px;
}
.auth-brand-tag span {
  color: #f78e1e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.auth-brand-title {
  margin: 0;
  color: #07111f;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.14;
}
.auth-brand-title span {
  color: #f78e1e;
}

.auth-brand-copy {
  max-width: 570px;
  margin: clamp(14px, 2vh, 20px) 0 0;
  color: #344054;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.55;
}

.auth-brand-features {
  display: grid;
  gap: 10px;
  width: fit-content;
  margin: clamp(18px, 3vh, 30px) 0 0;
  padding: 0;
  color: #344054;
  list-style: none;
}
.auth-brand-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
}
.auth-brand-features span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(247, 142, 30, 0.12);
  color: #f78e1e;
}

.auth-brand-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 18px;
  align-items: center;
  border: 1px solid rgba(205, 216, 232, 0.82);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(247, 251, 255, 0.72));
  box-shadow: 0 14px 34px rgba(27, 81, 160, 0.08);
  color: #536b90;
  font-size: 12px;
  padding: 10px 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  width: fit-content;
}
.auth-brand-footer strong,
.auth-brand-footer small {
  display: block;
}
.auth-brand-footer strong {
  color: #1f2937;
  font-size: 13px;
}
.auth-brand-footer small {
  margin-top: 3px;
}
.auth-brand-footer a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #536b90;
  text-decoration: none;
}
.auth-brand-footer a:hover {
  color: #1b51a0;
}
.auth-brand-footer a .ui-icon {
  color: #f78e1e;
  width: 12px;
  height: 12px;
}
.auth-brand-footer__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}
.auth-brand-footer__mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(247, 142, 30, 0.28);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(247, 142, 30, 0.16), rgba(27, 81, 160, 0.11));
  color: #1b51a0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
}
.auth-brand-footer__meta {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1/-1;
  gap: 6px 14px;
  padding-left: 45px;
}
.auth-brand-footer__badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(27, 81, 160, 0.14);
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 245, 255, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  padding: 7px 11px;
  color: #1b51a0;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  width: fit-content;
}
.auth-brand-footer__badge .ui-icon {
  color: #f78e1e;
  width: 14px;
  height: 14px;
}

.auth-card {
  display: flex;
  width: 100%;
  min-height: 100%;
  flex-direction: column;
  align-self: stretch;
  justify-self: stretch;
  overflow: hidden;
  border-radius: 0;
  background: linear-gradient(180deg, rgb(255, 255, 255), rgba(250, 252, 255, 0.98));
  box-shadow: none;
}
.auth-card--signup {
  width: 100%;
}
.auth-card--compact {
  min-height: 100%;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 6vw, 56px);
}
.auth-card__body {
  display: grid;
  flex: 1;
  min-height: 0;
  align-content: center;
  overflow-y: auto;
  padding: clamp(28px, 5vh, 46px) 32px 34px;
  scrollbar-width: none;
}
.auth-card__body .inner-card-body {
  width: calc(100% - 200px);
  margin: 0 auto;
}
.auth-card__body::-webkit-scrollbar {
  display: none;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #cdd8e8;
  background: #edf3fc;
  flex: 0 0 auto;
}
.auth-tabs__item {
  position: relative;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  color: #4f6382;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.auth-tabs__item::after {
  position: absolute;
  right: 20px;
  bottom: -1px;
  left: 20px;
  height: 2px;
  background: transparent;
  content: "";
}
.auth-tabs__item.is-active {
  background: #ffffff;
  color: #1b51a0;
  font-weight: 700;
}
.auth-tabs__item.is-active::after {
  background: #f78e1e;
}

.auth-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.auth-progress span {
  width: 12px;
  height: 4px;
  border-radius: 9999px;
  background: #cbd7e8;
}
.auth-progress span.is-active {
  width: 24px;
  background: #1b51a0;
}
.auth-progress--step-2 span:first-child {
  background: #f78e1e;
}

.auth-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #dceaff;
  color: #1b51a0;
  font-size: 18px;
}
.auth-icon .ui-icon {
  width: 20px;
  height: 20px;
}

.auth-title {
  margin: 0 0 4px;
  color: #1b51a0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.auth-copy {
  margin: 0 0 18px;
  color: #536b90;
  font-size: 14px;
  line-height: 1.45;
}

.auth-alert {
  margin-bottom: 14px;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.auth-field {
  display: grid;
  gap: 7px;
}
.auth-field label {
  margin: 0;
  color: #536b90;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.auth-field label span {
  color: #dc2626;
}
.auth-field input,
.auth-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cdd8e8;
  border-radius: 9px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  outline: 0;
  padding: 0 14px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.auth-field input::placeholder,
.auth-field select::placeholder {
  color: #aab8cc;
}
.auth-field input:focus,
.auth-field select:focus {
  border-color: rgba(27, 81, 160, 0.48);
  box-shadow: 0 0 0 4px rgba(27, 81, 160, 0.08);
}
.auth-field input.is-invalid,
.auth-field select.is-invalid {
  border-color: #dc2626;
}
.auth-field select {
  cursor: pointer;
}

.auth-field .select2-container {
  width: 100% !important;
}
.auth-field .select2-container .select2-selection--single {
  display: flex;
  min-height: 48px;
  align-items: center;
  border: 1px solid #cdd8e8;
  border-radius: 9px;
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.auth-field .select2-container .select2-selection__rendered {
  width: 100%;
  padding-right: 40px;
  padding-left: 14px;
  color: #0f172a;
  font-size: 14px;
  line-height: 48px;
}
.auth-field .select2-container .select2-selection__placeholder {
  color: #aab8cc;
}
.auth-field .select2-container.select2-container--focus .select2-selection--single, .auth-field .select2-container.select2-container--open .select2-selection--single {
  border-color: rgba(27, 81, 160, 0.48);
  box-shadow: 0 0 0 4px rgba(27, 81, 160, 0.08);
}
.auth-field select.is-invalid + .select2-container .select2-selection--single {
  border-color: #dc2626;
}

.select2-dropdown.auth-select2-dropdown {
  overflow: hidden;
  border: 1px solid #cdd8e8;
  border-radius: 9px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}
.select2-dropdown.auth-select2-dropdown .select2-results__option {
  padding: 10px 14px;
  color: #0f172a;
  font-size: 14px;
}
.select2-dropdown.auth-select2-dropdown .select2-results__option--highlighted.select2-results__option--selectable {
  background: #eef5ff;
  color: #1b51a0;
}
.select2-dropdown.auth-select2-dropdown .select2-results__option--selected {
  background: #fff7ed;
  color: #f78e1e;
  font-weight: 700;
}

.auth-phone {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #cdd8e8;
  border-radius: 9px;
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-phone:focus-within {
  border-color: rgba(27, 81, 160, 0.48);
  box-shadow: 0 0 0 4px rgba(27, 81, 160, 0.08);
}
.auth-phone span {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #dbe4f2;
  background: #f2f7ff;
  color: #1b51a0;
  font-size: 13px;
  font-weight: 700;
}
.auth-phone input {
  min-height: 46px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.auth-phone input:focus {
  box-shadow: none;
}

.auth-otp {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.auth-otp input {
  width: 50px;
  height: 50px;
  aspect-ratio: 1;
  min-height: 0;
  border: 1px solid #d5e0ef;
  border-radius: 13px;
  background: #edf4ff;
  color: #1b51a0;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
}

.auth-primary-btn,
.auth-outline-btn,
.auth-secondary-btn {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.auth-primary-btn:hover,
.auth-outline-btn:hover,
.auth-secondary-btn:hover {
  transform: translateY(-1px);
}

.auth-primary-btn {
  border: 0;
  background: linear-gradient(90deg, #f47508, #ff9234);
  box-shadow: 0 12px 24px rgba(247, 142, 30, 0.24);
  color: #ffffff;
}

.auth-outline-btn,
.auth-secondary-btn {
  border: 1px solid #bdd5ff;
  background: #eef5ff;
  color: #1b51a0;
}

.auth-secondary-btn {
  background: #ffffff;
}

.auth-resend {
  color: #536b90;
  font-size: 12px;
  text-align: right;
}
.auth-resend a,
.auth-resend strong {
  color: #0f172a;
  font-weight: 800;
  text-decoration: none;
}

.auth-error {
  color: #dc2626;
  font-size: 12px;
}

.auth-inline-otp {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d5e0ef;
  border-radius: 13px;
  background: #f4f8ff;
}
.auth-inline-otp > label {
  color: #536b90;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.auth-inline-otp.is-invalid {
  border-color: #dc2626;
}

.auth-signup-step {
  display: grid;
  gap: 16px;
}

.auth-success {
  display: grid;
  width: min(100%, 360px);
  min-height: clamp(280px, 44vh, 420px);
  align-content: center;
  gap: 12px;
  justify-items: center;
  margin: auto;
  border: 1px solid rgba(205, 216, 232, 0.82);
  border-radius: 18px;
  background: radial-gradient(circle at 50% 8%, rgba(22, 163, 74, 0.12), transparent 34%), linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.98));
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  padding: clamp(28px, 5vw, 42px) clamp(20px, 4vw, 34px);
  text-align: center;
}
.auth-success__icon {
  position: relative;
  display: inline-flex;
  width: clamp(62px, 8vw, 76px);
  height: clamp(62px, 8vw, 76px);
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #16a34a;
  box-shadow: 0 16px 30px rgba(22, 163, 74, 0.22), 0 0 0 10px rgba(22, 163, 74, 0.09);
  color: #ffffff;
  font-size: clamp(24px, 3vw, 30px);
}
.auth-success__icon::after {
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(22, 163, 74, 0.16);
  border-radius: inherit;
  content: "";
}
.auth-success h1 {
  margin: 10px 0 0;
  color: #1b51a0;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.15;
}
.auth-success p {
  max-width: 280px;
  margin: 0;
  color: #536b90;
  font-size: clamp(13px, 1.5vw, 15px);
  line-height: 1.55;
}
.auth-success__loader {
  margin-top: 8px;
}

@media (max-width: 991px) {
  .auth-page {
    height: auto;
    min-height: 100vh;
    align-items: start;
    overflow-y: auto;
  }
  .auth-shell {
    height: auto;
    min-height: auto;
    grid-template-columns: 1fr;
  }
  .auth-brand-panel__inner {
    gap: 24px;
    padding: 28px 24px;
  }
  .auth-brand-logo {
    margin-bottom: 22px;
  }
  .auth-brand-logo img {
    width: 150px;
  }
  .auth-brand-title {
    font-size: clamp(31px, 7vw, 44px);
  }
  .auth-brand-copy {
    max-width: 680px;
    margin-top: 16px;
    font-size: 15px;
  }
  .auth-brand-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 24px;
  }
  .auth-brand-features li {
    align-items: flex-start;
    font-size: 13px;
  }
  .auth-brand-footer {
    grid-template-columns: 1fr;
  }
  .auth-brand-footer__meta {
    padding-left: 49px;
  }
  .auth-brand-footer__badge {
    width: fit-content;
    margin-left: 49px;
  }
  .auth-card {
    width: min(100% - 48px, 440px);
    min-height: auto;
    align-self: center;
    justify-self: center;
    margin: 24px;
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  }
  .auth-card__body {
    align-content: start;
    overflow: visible;
    padding: 28px 32px 26px;
  }
  .auth-card--compact {
    min-height: 420px;
  }
}
@media (max-width: 575px) {
  .auth-page {
    height: auto;
    min-height: 100vh;
    align-items: start;
    overflow-y: auto;
    padding: 0;
  }
  .auth-shell {
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
  .auth-brand-panel__inner {
    padding: 22px 18px;
  }
  .auth-brand-tag,
  .auth-brand-copy,
  .auth-brand-features {
    display: none;
  }
  .auth-brand-footer {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 4px;
    padding: 10px;
  }
  .auth-brand-footer__identity {
    gap: 9px;
  }
  .auth-brand-footer__mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 10px;
    font-size: 11px;
  }
  .auth-brand-footer__meta {
    display: none;
  }
  .auth-brand-footer__badge {
    width: fit-content;
    margin-left: 43px;
    padding: 7px 10px;
  }
  .auth-brand-logo {
    margin-bottom: 14px;
  }
  .auth-brand-logo img {
    width: 136px;
  }
  .auth-brand-title {
    font-size: 27px;
  }
  .auth-card {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .auth-card__body {
    padding: 26px 20px;
  }
  .auth-card--compact {
    min-height: 420px;
    padding: 24px 16px;
  }
  .auth-success {
    min-height: 320px;
    border-radius: 16px;
  }
  .auth-grid {
    grid-template-columns: 1fr;
  }
  .auth-otp {
    gap: 8px;
  }
  .auth-otp input {
    border-radius: 11px;
    font-size: 19px;
  }
}
@media (max-width: 991px) {
  .auth-body {
    overflow: auto;
  }
  .auth-page {
    display: block;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .auth-shell {
    width: 100%;
    min-height: 100dvh;
    overflow: visible;
  }
  .auth-brand-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(205, 216, 232, 0.72);
  }
  .auth-brand-panel__inner {
    min-height: auto;
    grid-template-rows: auto;
  }
  .auth-brand-panel__top {
    align-self: start;
  }
  .auth-card {
    display: flex;
    min-height: auto;
  }
  .auth-card__body {
    overflow: visible;
  }
  .auth-card__body .inner-card-body {
    width: min(100%, 460px);
  }
  .auth-inline-otp {
    min-width: 0;
  }
  .auth-otp {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .auth-otp input {
    width: 100%;
    height: auto;
  }
}
@media (max-width: 575px) {
  .auth-page {
    min-height: 100dvh;
    background: #ffffff;
  }
  .auth-shell {
    display: flex;
    min-height: 100dvh;
    flex-direction: column;
  }
  .auth-brand-panel {
    flex: 0 0 auto;
    background-size: 56px 60px, 56px 60px, auto;
  }
  .auth-brand-panel::before {
    top: -70px;
    left: -42px;
    width: 190px;
    height: 190px;
  }
  .auth-brand-panel::after {
    right: -86px;
    bottom: -84px;
    width: 230px;
    height: 230px;
  }
  .auth-brand-panel__inner {
    display: flex;
    min-height: auto;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 16px;
  }
  .auth-brand-panel__top {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
  }
  .auth-brand-logo {
    flex: 0 0 auto;
    margin: 0;
  }
  .auth-brand-logo img {
    width: 118px;
    max-width: 38vw;
  }
  .auth-brand-title,
  .auth-brand-footer {
    display: none;
  }
  .auth-card {
    flex: 1 1 auto;
    min-height: auto;
    justify-content: flex-start;
  }
  .auth-card__body {
    align-content: start;
    padding: 22px 16px 28px;
  }
  .auth-tabs {
    position: sticky;
    top: 0;
    z-index: 4;
  }
  .auth-tabs__item {
    min-height: 46px;
    font-size: 13px;
  }
  .auth-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
  }
  .auth-title {
    font-size: 19px;
  }
  .auth-copy {
    margin-bottom: 16px;
    font-size: 13px;
  }
  .auth-form,
  .auth-signup-step {
    gap: 14px;
  }
  .auth-field input,
  .auth-field select,
  .auth-primary-btn,
  .auth-outline-btn,
  .auth-secondary-btn {
    min-height: 44px;
  }
  .auth-field .select2-container .select2-selection--single {
    min-height: 44px;
  }
  .auth-field .select2-container .select2-selection__rendered {
    line-height: 44px;
  }
  .auth-phone {
    grid-template-columns: 46px minmax(0, 1fr);
  }
  .auth-phone input {
    min-height: 42px;
  }
  .auth-inline-otp {
    padding: 14px;
  }
  .auth-otp {
    gap: 6px;
  }
  .auth-otp input {
    min-width: 0;
    font-size: 18px;
  }
  .auth-card--compact {
    min-height: auto;
  }
  .auth-success {
    width: 100%;
    min-height: min(360px, 100dvh - 128px);
  }
}
@media (max-width: 380px) {
  .auth-card__body {
    padding-right: 12px;
    padding-left: 12px;
  }
  .auth-otp {
    gap: 5px;
  }
  .auth-otp input {
    border-radius: 9px;
    font-size: 17px;
  }
}
@media (max-width: 991px) and (orientation: landscape) {
  .auth-shell {
    min-height: 100dvh;
  }
  .auth-brand-panel__inner {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .auth-brand-tag,
  .auth-brand-copy,
  .auth-brand-features,
  .auth-brand-footer {
    display: none;
  }
  .auth-brand-logo {
    margin-bottom: 0;
  }
  .auth-brand-logo img {
    width: 128px;
  }
  .auth-brand-title {
    font-size: clamp(22px, 5vw, 30px);
  }
  .auth-card {
    width: min(100% - 32px, 520px);
    margin: 16px auto;
  }
  .auth-card__body {
    padding-top: 20px;
    padding-bottom: 22px;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .auth-brand-panel__inner {
    padding: 22px 28px;
  }
  .auth-brand-logo {
    margin-bottom: 16px;
  }
  .auth-brand-logo img {
    width: 142px;
  }
  .auth-brand-title {
    font-size: clamp(28px, 5vw, 38px);
  }
  .auth-brand-copy {
    max-width: 620px;
    font-size: 14px;
  }
  .auth-brand-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
  }
  .auth-brand-features span {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  .auth-brand-footer {
    width: 100%;
  }
  .auth-card {
    width: min(100% - 64px, 540px);
    margin: 22px auto 32px;
  }
}
@media (min-width: 992px) and (max-width: 1280px) {
  .auth-shell {
    height: 100dvh;
    grid-template-columns: minmax(0, 52%) minmax(420px, 48%);
  }
  .auth-brand-panel__inner {
    padding: clamp(24px, 3vw, 34px);
  }
  .auth-brand-logo {
    margin-bottom: 16px;
  }
  .auth-brand-logo img {
    width: clamp(138px, 13vw, 164px);
  }
  .auth-brand-title {
    font-size: clamp(30px, 4vw, 46px);
  }
  .auth-brand-copy {
    max-width: 520px;
    font-size: clamp(14px, 1.5vw, 17px);
  }
  .auth-brand-features {
    gap: 8px;
    margin-top: 18px;
  }
  .auth-brand-features li {
    font-size: 13px;
  }
  .auth-brand-features span {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 10px;
  }
  .auth-brand-footer {
    max-width: 100%;
  }
  .auth-card__body {
    padding: clamp(24px, 4vh, 38px) 24px 28px;
  }
  .auth-card__body .inner-card-body {
    width: min(100%, 430px);
  }
  .auth-otp input {
    width: 100%;
    height: auto;
  }
}
@media (min-width: 992px) and (max-width: 1280px) and (max-height: 760px) {
  .auth-shell {
    height: 100vh;
  }
  .auth-brand-panel__inner {
    gap: 12px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .auth-brand-logo {
    margin-bottom: 10px;
  }
  .auth-brand-logo img {
    width: 132px;
  }
  .auth-brand-title {
    font-size: clamp(28px, 3.4vw, 38px);
  }
  .auth-brand-copy {
    margin-top: 12px;
    font-size: 14px;
  }
  .auth-brand-features {
    margin-top: 14px;
  }
  .auth-brand-footer {
    padding: 9px 10px;
  }
  .auth-card__body {
    align-content: start;
    overflow-y: auto;
    padding-top: 22px;
    padding-bottom: 22px;
  }
}
@media (min-width: 1281px) and (max-width: 1440px) {
  .auth-card__body .inner-card-body {
    width: min(100%, 460px);
  }
}
.auth-card:not(.auth-card--compact) {
  border: 1px solid rgba(205, 216, 232, 0.9);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.1);
}
.auth-card:not(.auth-card--compact) .auth-card__body {
  background: #ffffff;
}
.auth-card:not(.auth-card--compact) .auth-card__body .inner-card-body {
  width: 100%;
  max-width: none;
}

.auth-tabs {
  overflow: hidden;
  border-bottom: 1px solid #cdd8e8;
  border-radius: 22px 22px 0 0;
  background: #edf3fc;
}
.auth-tabs__item {
  min-height: 56px;
  background: #edf3fc;
  color: #4f6382;
}
.auth-tabs__item::after {
  right: 20px;
  bottom: 0;
  left: 20px;
  height: 3px;
  border-radius: 9999px 9999px 0 0;
}
.auth-tabs__item.is-active {
  background: #ffffff;
  color: #1b51a0;
}

@media (min-width: 992px) {
  .auth-card:not(.auth-card--compact) {
    width: min(100% - 48px, 448px);
    min-height: auto;
    max-height: calc(100dvh - 56px);
    align-self: center;
    justify-self: center;
    overflow: hidden;
  }
  .auth-card:not(.auth-card--compact) .auth-card__body {
    align-content: start;
    overflow-y: auto;
    padding: 28px 32px 34px;
  }
  .auth-card--signup {
    width: min(100% - 48px, 520px);
  }
}
@media (min-width: 992px) and (max-width: 1280px) {
  .auth-card:not(.auth-card--compact) {
    width: min(100% - 36px, 430px);
  }
  .auth-card:not(.auth-card--compact) .auth-card__body {
    padding: 24px 26px 28px;
  }
  .auth-card--signup {
    width: min(100% - 36px, 500px);
  }
}
@media (max-width: 991px) {
  .auth-card:not(.auth-card--compact) {
    overflow: hidden;
  }
  .auth-card:not(.auth-card--compact) .auth-card__body .inner-card-body {
    width: 100%;
  }
}
@media (max-width: 575px) {
  .auth-card:not(.auth-card--compact) {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .auth-tabs {
    border-radius: 0;
  }
}
.auth-shell,
.auth-brand-panel,
.auth-card {
  min-height: 0;
}

.auth-brand-panel {
  display: flex;
}
.auth-brand-panel__inner {
  width: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.auth-brand-panel__inner::-webkit-scrollbar {
  display: none;
}

.auth-card__body {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 992px) {
  .auth-body,
  .auth-page {
    height: 100vh;
    height: 100dvh;
  }
  .auth-page {
    overflow: hidden;
  }
  .auth-shell {
    max-height: 100dvh;
  }
  .auth-brand-panel {
    max-height: 100dvh;
    overflow: hidden;
  }
  .auth-brand-panel__inner {
    max-height: 100dvh;
  }
  .auth-card:not(.auth-card--compact) {
    max-height: calc(100dvh - 48px);
  }
  .auth-card--compact {
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 991px) {
  .auth-body,
  .auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .auth-shell {
    min-height: 100dvh;
    max-height: none;
  }
  .auth-brand-panel {
    overflow: visible;
  }
  .auth-brand-panel__inner {
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
  }
  .auth-card {
    max-height: none;
  }
}
@media (max-width: 991px) and (orientation: landscape) {
  .auth-body,
  .auth-page {
    height: auto;
  }
  .auth-shell {
    min-height: 100dvh;
  }
  .auth-card:not(.auth-card--compact) {
    max-height: none;
  }
}
@media (min-width: 992px) and (max-height: 680px) {
  .auth-brand-panel__inner {
    align-content: start;
  }
  .auth-brand-panel__top {
    align-self: start;
  }
  .auth-card:not(.auth-card--compact) {
    max-height: calc(100dvh - 24px);
  }
  .auth-card:not(.auth-card--compact) .auth-card__body {
    padding-top: 20px;
    padding-bottom: 22px;
  }
}
.nd-dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nd-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.nd-header__text {
  flex: 1;
  min-width: 0;
}

.nd-title {
  margin: 0;
  color: #1a4d93;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.nd-subtitle {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 14px;
}

.nd-subtitle--user {
  color: #1e293b;
  font-size: 16px;
  font-weight: 600;
}

.nd-role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid rgba(27, 81, 160, 0.18);
  border-radius: 9999px;
  background: rgba(27, 81, 160, 0.08);
  color: #1b51a0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.nd-summary {
  overflow: hidden;
  border: 1px solid #f0e6dc;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.06), rgba(249, 115, 22, 0.04));
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.nd-summary .card-content,
.nd-summary__inner {
  padding: 0;
}

.nd-summary__inner {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  border-radius: 8px;
}

.nd-summary__item {
  display: flex;
  min-width: 140px;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
  border-right: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.nd-summary__item:last-child {
  border-right: 0;
}

.nd-summary__label {
  margin: 0 0 6px;
  color: #6b7280;
  font-size: 13px;
}

.nd-summary__value {
  margin: 0;
  color: #1e293b;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.nd-summary__item--primary .nd-summary__value {
  color: #1a4d93;
  font-size: 28px;
}

.nd-summary__inner--3 .nd-summary__item {
  min-width: 0;
  flex: 1;
}

.nd-section {
  margin-top: 4px;
}

.nd-section__title {
  margin: 0 0 16px;
  color: #1e293b;
  font-size: 18px;
  font-weight: 600;
}

.nd-grid {
  display: grid;
  gap: 16px;
}

.nd-grid--roles {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(var(--nd-role-cols, 4), minmax(0, 1fr));
  gap: 16px;
}

.nd-card--role {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e8edf4;
  border-top: 2px solid #f97316;
  border-bottom: 2px solid #3b82f6;
  border-radius: 10px;
  background: linear-gradient(135deg, #e8f4fc 0%, #f8fafc 50%, #fff5eb 100%);
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.05);
}

.nd-card--role:hover {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.nd-card--role .nd-card__body {
  display: flex;
  min-height: 120px;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px;
}

.nd-card--role .nd-card__name {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  font-size: 14px;
  font-weight: 700;
}

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

.nd-card__stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  line-height: 1.3;
}

.nd-card__stat-label {
  color: #6b7280;
  font-weight: 500;
}

.nd-card__stat-value {
  color: #1e293b;
  font-weight: 600;
}

.nd-card__stat-row--total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}

.nd-card__stat-row--total .nd-card__stat-label,
.nd-card__stat-row--total .nd-card__stat-value {
  color: #1a4d93;
  font-weight: 700;
}

.nd-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.nd-metric {
  display: flex;
  min-height: 100px;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 10px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.nd-metric--teal {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
}

.nd-metric--purple {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.nd-metric--orange {
  background: linear-gradient(135deg, #ea580c, #fb923c);
}

.nd-metric--link {
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nd-metric--link:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18);
}

.nd-metric__icon {
  display: flex;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 18px;
}

.nd-metric__label {
  margin: 0 0 6px;
  font-size: 13px;
  opacity: 0.92;
}

.nd-metric__value {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

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

.nd-panel {
  overflow: hidden;
  border: 1px solid #e8edf4;
  border-radius: 10px;
}

.nd-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #eef2f7;
  background: #fafbfc;
}

.nd-panel__title {
  margin: 0;
  color: #1a4d93;
  font-size: 16px;
  font-weight: 700;
}

.nd-panel__sub {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 12px;
}

.nd-panel__filters {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.nd-filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  color: #6b7280;
  font-size: 11px;
}

.nd-filter .form-select {
  min-width: 120px;
}

.nd-panel__body {
  padding: 14px 18px 16px;
}

.nd-chart-wrap {
  position: relative;
  height: 240px;
}

.nd-chart-badge {
  padding: 4px 10px;
  border: 1px solid rgba(26, 77, 147, 0.2);
  border-radius: 9999px;
  background: rgba(26, 77, 147, 0.08);
  color: #1a4d93;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.nd-asset-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nd-asset-categories__title {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #334155;
}

.nd-asset-categories__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.nd-asset-card {
  position: relative;
  min-height: 194px;
  padding: 32px 24px 20px;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid #d9dde3;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.nd-asset-card--link {
  cursor: pointer;
}

.nd-asset-card--link:hover {
  color: inherit;
  text-decoration: none;
}

.nd-asset-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--nd-asset-accent, #38bdf8);
}

.nd-asset-card:hover {
  transform: translateY(-3px);
  border-color: rgba(148, 163, 184, 0.72);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.13);
}

.nd-asset-card__icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 20px;
  color: var(--nd-asset-accent, #0ea5e9);
  background: var(--nd-asset-soft, #e0f2fe);
}

.nd-asset-card__name {
  margin: 0 0 3px;
  color: #334155;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
}

.nd-asset-card__count {
  margin: 0 0 15px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.35;
}

.nd-asset-card__value {
  margin: 0 0 4px;
  color: #020617;
  font-size: 25px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.nd-asset-card__note {
  margin: 0;
  color: #00b87a;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.nd-asset-card__note--negative {
  color: #ef4444;
}

.nd-asset-card--sky {
  --nd-asset-accent: #0ea5e9;
  --nd-asset-soft: #e0f7ff;
}

.nd-asset-card--mint {
  --nd-asset-accent: #10b981;
  --nd-asset-soft: #dffcf0;
}

.nd-asset-card--coral {
  --nd-asset-accent: #ff7a3d;
  --nd-asset-soft: #fff0e8;
}

.nd-asset-card--lavender {
  --nd-asset-accent: #a78bfa;
  --nd-asset-soft: #f0ebff;
}

.nd-asset-card--gold {
  --nd-asset-accent: #f5b51b;
  --nd-asset-soft: #fff8e7;
}

.nd-asset-card--blue {
  --nd-asset-accent: #3b82c4;
  --nd-asset-soft: #e8f1fb;
}

.nd-asset-card--rose {
  --nd-asset-accent: #fb6b6f;
  --nd-asset-soft: #ffecef;
}

.nd-asset-card--neutral {
  --nd-asset-accent: #d7dadd;
  --nd-asset-soft: #f3f4f6;
}

.nd-asset-card.is-disabled {
  color: #a3a9b2;
  background: #fff;
}

.nd-asset-card.is-disabled:hover {
  transform: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.nd-asset-card.is-disabled .nd-asset-card__name,
.nd-asset-card.is-disabled .nd-asset-card__count,
.nd-asset-card.is-disabled .nd-asset-card__note {
  color: #a3a9b2;
}

[data-theme=dark] .nd-title,
[data-theme=dark] .nd-section__title,
[data-theme=dark] .nd-asset-categories__title,
[data-theme=dark] .nd-panel__title,
[data-theme=dark] .nd-card__name,
[data-theme=dark] .nd-summary__value,
[data-theme=dark] .nd-card__stat-value,
[data-theme=dark] .nd-card__stat-row--total .nd-card__stat-label,
[data-theme=dark] .nd-card__stat-row--total .nd-card__stat-value,
[data-theme=dark] .nd-metric__value,
[data-theme=dark] .nd-asset-card__name,
[data-theme=dark] .nd-asset-card__value {
  color: var(--app-heading);
}
[data-theme=dark] .nd-subtitle,
[data-theme=dark] .nd-panel__sub,
[data-theme=dark] .nd-summary__label,
[data-theme=dark] .nd-metric__label,
[data-theme=dark] .nd-card__stat-label,
[data-theme=dark] .nd-filter,
[data-theme=dark] .nd-asset-card__count {
  color: var(--app-text-muted);
}
[data-theme=dark] .nd-summary,
[data-theme=dark] .nd-card,
[data-theme=dark] .nd-panel,
[data-theme=dark] .nd-asset-card {
  border-color: var(--app-border-soft);
  background: var(--app-surface);
  color: var(--app-text);
  box-shadow: none;
}
[data-theme=dark] .nd-summary__item,
[data-theme=dark] .nd-card__stat-row,
[data-theme=dark] .nd-card--role .nd-card__name,
[data-theme=dark] .nd-card__stat-row--total,
[data-theme=dark] .nd-panel__head {
  border-color: var(--app-border-soft);
}
[data-theme=dark] .nd-summary__item {
  background: #172033;
}
[data-theme=dark] .nd-summary__item:nth-child(even) {
  background: #1d2738;
}
[data-theme=dark] .nd-card--role {
  border-top-color: #f78e1e;
  border-bottom-color: #3b82f6;
}
[data-theme=dark] .nd-panel__head {
  background: #1d2738;
}
[data-theme=dark] .nd-panel__body {
  background: var(--app-surface);
}
[data-theme=dark] .nd-summary__item--primary,
[data-theme=dark] .nd-chart-badge,
[data-theme=dark] .nd-filter select,
[data-theme=dark] .nd-filter .form-select {
  border-color: var(--app-border-soft);
  background: var(--app-control-bg);
  color: var(--app-control-text);
}
[data-theme=dark] .nd-asset-card:hover,
[data-theme=dark] .nd-card:hover,
[data-theme=dark] .nd-panel:hover {
  border-color: rgba(247, 142, 30, 0.32);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}
[data-theme=dark] .nd-asset-card__icon {
  background: color-mix(in srgb, var(--nd-asset-accent, #38bdf8) 18%, transparent);
}
[data-theme=dark] .nd-asset-card.is-disabled {
  background: var(--app-surface-muted);
  color: var(--app-text-muted);
}

@media (max-width: 1200px) {
  .nd-grid--roles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nd-metrics-row,
  .nd-panels {
    grid-template-columns: 1fr;
  }
  .nd-asset-categories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 576px) {
  .nd-grid--roles {
    grid-template-columns: 1fr;
  }
  .nd-summary__inner--3 {
    flex-direction: column;
  }
  .nd-summary__inner--3 .nd-summary__item {
    min-width: 100%;
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }
  .nd-summary__inner--3 .nd-summary__item:last-child {
    border-bottom: 0;
  }
  .nd-title {
    font-size: 20px;
  }
  .nd-metric__value {
    font-size: 18px;
  }
  .nd-asset-categories__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .nd-asset-card {
    min-height: 176px;
    padding: 24px 20px 18px;
    border-radius: 14px;
  }
  .nd-asset-card__value {
    font-size: 22px;
  }
}
/* Life insurance policy cards */
.cp-policy-filters {
  width: 100%;
  margin-bottom: 20px !important;
}

.cp-policy-filters__row {
  display: grid;
  grid-template-columns: minmax(220px, 220px) minmax(180px, 180px) minmax(180px, 180px) minmax(200px, 200px);
  align-items: center !important;
  gap: 8px !important;
  margin-right: 0;
  margin-left: 0;
}

.cp-policy-filters__row > [class*=col-] {
  width: 100%;
  max-width: 100%;
  padding-right: 0;
  padding-left: 0;
}

.cp-policy-filters .select2-container--default {
  width: 100% !important;
  min-width: 0;
}

.cp-policy-filters .select2-selection--single,
.cp-policy-filters .select2-selection--multiple {
  height: 32px !important;
  min-height: 32px !important;
}

.li-policy-showcase {
  margin: 0 0 22px;
}

.li-policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.li-policy-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 268px;
  background: #fff;
  border: 1px solid #dfe4ea;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.li-policy-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--li-card-accent, #43d6b0);
}

.li-policy-card:hover {
  transform: translateY(-3px);
  border-color: rgba(148, 163, 184, 0.7);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
}

.li-policy-card--active {
  --li-card-accent: #3dd7b1;
}

.li-policy-card--pending {
  --li-card-accent: #f2c94c;
}

.li-policy-card--lapsed {
  --li-card-accent: #ff8d8f;
}

.li-policy-card__top {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 24px;
  align-items: start;
  gap: 10px;
  padding: 22px 22px 0;
}

.li-policy-card__heart {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: #f0ebff;
  color: #a78bfa;
}

.li-policy-card__identity {
  min-width: 0;
}

.li-policy-card__identity h3 {
  margin: 0;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
}

.li-policy-card__identity p {
  margin: 1px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.li-policy-card__menu {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #64748b;
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.li-policy-card__menu:hover {
  color: #334155;
  background: #f3f4f6;
}

.li-policy-card__actions {
  position: relative;
  display: flex;
  justify-content: flex-end;
  min-width: 24px;
}

.li-policy-card__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 12;
  width: min(220px, 100vw - 48px);
  padding: 6px 0;
  background: #fff;
  border: 1px solid #d9dde3;
  border-radius: 10px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.li-policy-card__actions.is-open .li-policy-card__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.li-policy-card__dropdown button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  color: #1f2937;
  background: transparent;
  border: 0;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.li-policy-card__dropdown button:hover {
  background: #f8fafc;
}

.li-policy-card__dropdown button + button {
  border-top: 1px solid #eef2f7;
}

.li-policy-card__dropdown-danger {
  color: #ff3d57 !important;
}

.li-policy-card__badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 22px 0;
}

.li-policy-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 20px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 800;
}

.li-policy-card__badge--plan {
  color: #16a085;
  background: #dcfff3;
}

.li-policy-card__badge--active {
  color: #00a66a;
  background: #dcfff3;
}

.li-policy-card__badge--pending {
  color: #c58a00;
  background: #fff7dc;
}

.li-policy-card__badge--lapsed {
  color: #e23d4d;
  background: #ffe8eb;
}

.li-policy-card__badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.li-policy-card__provider {
  padding: 14px 22px 0;
}

.li-policy-card__provider span,
.li-policy-card__label {
  display: block;
  color: #667085;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 600;
}

.li-policy-card__provider strong {
  display: block;
  margin-top: 2px;
  color: #111827;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
}

.li-policy-card__provider small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 600;
}

.li-policy-card__amounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px 22px 0;
}

.li-policy-card__amounts strong {
  display: block;
  margin-top: 1px;
  color: #020617;
  font-size: 20px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.li-policy-card__premium {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin: 16px 22px 0;
  padding: 11px 12px;
  min-height: 50px;
  color: #4b5563;
  background: #fbfbfc;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
}

.li-policy-card__premium span {
  display: block;
  color: #64748b;
  font-size: 9px;
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
}

.li-policy-card__premium strong {
  display: block;
  margin-top: 2px;
  color: #111827;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 800;
}

.li-policy-card__premium em {
  align-self: start;
  padding: 4px 8px;
  color: #8a94a3;
  background: #f4f5f6;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  font-style: normal;
  font-weight: 800;
}

.li-policy-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 0;
  padding: 14px 22px;
  color: #475569;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 600;
}

.li-policy-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.li-policy-card__meta strong {
  color: #64748b;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 800;
  white-space: nowrap;
}

.li-policy-card__details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding: 16px 18px;
  color: #475569;
  border-top: 1px solid #e5e7eb;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: #fbfbfc;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.li-policy-card__details:hover {
  color: #1f2937;
  background: #f8fafc;
}

body.li-policy-drawer-open {
  overflow: hidden;
}

.li-policy-drawer {
  position: fixed;
  inset: 0;
  z-index: 1090;
  pointer-events: none;
  visibility: hidden;
}

.li-policy-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.li-policy-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  opacity: 0;
  backdrop-filter: blur(4px);
  transition: opacity 0.2s ease;
}

.li-policy-drawer.is-open .li-policy-drawer__backdrop {
  opacity: 1;
}

.li-policy-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 390px);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -24px 0 42px rgba(15, 23, 42, 0.22);
  transform: translateX(100%);
  transition: transform 0.24s ease;
  outline: none;
}

.li-policy-drawer.is-open .li-policy-drawer__panel {
  transform: translateX(0);
}

.li-policy-drawer__header {
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid #e5e7eb;
  flex: 0 0 auto;
}

.li-policy-drawer__heart {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #a78bfa;
  background: #f0ebff;
}

.li-policy-drawer__header h2 {
  margin: 0;
  color: #020617;
  font-size: 18px;
  line-height: 1.12;
  font-weight: 900;
}

.li-policy-drawer__header p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.li-policy-drawer__close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #64748b;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.li-policy-drawer__close:hover {
  color: #111827;
  background: #f3f4f6;
}

.li-policy-drawer__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 20px 88px;
}

.li-policy-status-card {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px 14px;
  color: #00a66a;
  background: #e4fff5;
  border: 1px solid #74e0bd;
  border-radius: 10px;
}

.li-policy-status-card strong {
  display: block;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
}

.li-policy-status-card span {
  display: block;
  margin-top: 3px;
  color: #0f766e;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 600;
}

.li-policy-status-card em {
  color: #00a66a;
  font-size: 10px;
  line-height: 1;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.li-policy-detail-section {
  margin-top: 22px;
}

.li-policy-detail-section h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  color: #334155;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.li-policy-detail-section h3 span {
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0;
}

.li-policy-client {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}

.li-policy-client > span {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #fff;
  background: #ff7a3d;
  font-size: 14px;
  font-weight: 900;
}

.li-policy-client strong,
.li-policy-nominee strong {
  display: block;
  color: #020617;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
}

.li-policy-client small,
.li-policy-nominee small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 600;
}

.li-policy-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  margin-top: 8px;
  padding: 8px 10px;
  color: #475569;
  background: #f7f7f8;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
}

.li-policy-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
}

.li-policy-detail-grid span,
.li-policy-date-list span {
  display: block;
  color: #64748b;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 600;
}

.li-policy-detail-grid strong,
.li-policy-date-list strong {
  display: block;
  margin-top: 3px;
  color: #020617;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 900;
}

.li-policy-money-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.li-policy-money-card {
  min-height: 78px;
  padding: 14px 13px;
  border-radius: 11px;
  border: 1px solid transparent;
}

.li-policy-money-card--cover {
  background: #f4f2ff;
  border-color: #d7d0ff;
}

.li-policy-money-card--premium {
  background: #fff0e8;
  border-color: #ffc7ad;
}

.li-policy-money-card span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.li-policy-money-card strong {
  display: block;
  margin-top: 9px;
  color: #020617;
  font-size: 19px;
  line-height: 1.05;
  font-weight: 900;
}

.li-policy-money-card small {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 700;
}

.li-policy-date-list {
  display: grid;
  gap: 10px;
}

.li-policy-date-list > div {
  padding: 11px 12px;
  background: #fbfbfc;
  border: 1px solid #dfe3e8;
  border-radius: 9px;
}

.li-policy-nominee {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: #fbfbfc;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
}

.li-policy-nominee > span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4d8fd8;
  background: #eaf4ff;
  border-radius: 10px;
}

.li-policy-nominee em {
  color: #ff6b2d;
  font-size: 12px;
  line-height: 1;
  font-style: normal;
  font-weight: 900;
}

.li-policy-riders {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.li-policy-riders span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 6px 10px;
  color: #0284c7;
  background: #e0f7ff;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
}

.li-policy-drawer__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 20px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.li-policy-drawer__action {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
}

.li-policy-drawer__action--edit {
  color: #020617;
  background: #f8fafc;
  border: 1px solid #d1d5db;
}

.li-policy-drawer__action--download {
  color: #fff;
  background: #ff7a3d;
  border: 1px solid #ff7a3d;
}

@media (max-width: 1200px) {
  .cp-policy-filters__row {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
  }
  .li-policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .cp-policy-filters__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .li-policy-grid {
    grid-template-columns: 1fr;
  }
  .li-policy-card {
    min-height: auto;
  }
}
[data-theme=dark] .li-policy-card,
[data-theme=dark] .li-policy-drawer__panel {
  border-color: var(--app-border-soft);
  background: var(--app-surface);
  color: var(--app-text);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}
[data-theme=dark] .li-policy-card:hover {
  border-color: rgba(247, 142, 30, 0.42);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.36);
}
[data-theme=dark] .li-policy-card__identity h3,
[data-theme=dark] .li-policy-card__provider strong,
[data-theme=dark] .li-policy-card__amounts strong,
[data-theme=dark] .li-policy-card__premium strong,
[data-theme=dark] .li-policy-client strong,
[data-theme=dark] .li-policy-nominee strong,
[data-theme=dark] .li-policy-detail-grid strong,
[data-theme=dark] .li-policy-date-list strong,
[data-theme=dark] .li-policy-money-card strong,
[data-theme=dark] .li-policy-drawer__header h2 {
  color: var(--app-heading);
}
[data-theme=dark] .li-policy-card__identity p,
[data-theme=dark] .li-policy-card__provider span,
[data-theme=dark] .li-policy-card__provider small,
[data-theme=dark] .li-policy-card__label,
[data-theme=dark] .li-policy-card__premium span,
[data-theme=dark] .li-policy-card__premium em,
[data-theme=dark] .li-policy-card__meta,
[data-theme=dark] .li-policy-card__meta strong,
[data-theme=dark] .li-policy-drawer__header p,
[data-theme=dark] .li-policy-client small,
[data-theme=dark] .li-policy-nominee small,
[data-theme=dark] .li-policy-contact-row,
[data-theme=dark] .li-policy-detail-grid span,
[data-theme=dark] .li-policy-date-list span,
[data-theme=dark] .li-policy-money-card span,
[data-theme=dark] .li-policy-money-card small {
  color: var(--app-text-muted);
}
[data-theme=dark] .li-policy-card__menu,
[data-theme=dark] .li-policy-drawer__close {
  color: #cbd5e1;
}
[data-theme=dark] .li-policy-card__menu:hover,
[data-theme=dark] .li-policy-drawer__close:hover {
  background: var(--app-hover-bg);
  color: var(--app-heading);
}
[data-theme=dark] .li-policy-card__dropdown,
[data-theme=dark] .li-policy-card__premium,
[data-theme=dark] .li-policy-card__details,
[data-theme=dark] .li-policy-contact-row,
[data-theme=dark] .li-policy-date-list > div,
[data-theme=dark] .li-policy-nominee,
[data-theme=dark] .li-policy-drawer__footer {
  border-color: var(--app-border-soft);
  background: var(--app-surface-muted);
}
[data-theme=dark] .li-policy-card__dropdown button,
[data-theme=dark] .li-policy-card__details {
  color: var(--app-text);
}
[data-theme=dark] .li-policy-card__dropdown button:hover,
[data-theme=dark] .li-policy-card__details:hover {
  background: var(--app-hover-bg);
  color: var(--app-heading);
}
[data-theme=dark] .li-policy-card__dropdown button + button,
[data-theme=dark] .li-policy-card__details,
[data-theme=dark] .li-policy-drawer__header,
[data-theme=dark] .li-policy-drawer__footer {
  border-color: var(--app-border-soft);
}
[data-theme=dark] .li-policy-detail-section h3 {
  color: var(--app-heading);
}
[data-theme=dark] .li-policy-detail-section h3 span {
  background: var(--app-surface-muted);
  color: var(--app-text-muted);
}
[data-theme=dark] .li-policy-money-card--cover,
[data-theme=dark] .li-policy-money-card--premium {
  border-color: var(--app-border-soft);
  background: #141f32;
}
[data-theme=dark] .li-policy-riders span,
[data-theme=dark] .li-policy-card__badge {
  border: 1px solid rgba(255, 255, 255, 0.08);
}
[data-theme=dark] .li-policy-drawer__action--edit {
  border-color: var(--app-border-soft);
  background: var(--app-surface-muted);
  color: var(--app-heading);
}

@media (max-width: 420px) {
  .cp-policy-filters__row {
    grid-template-columns: 1fr;
  }
  .li-policy-card__top {
    grid-template-columns: 34px minmax(0, 1fr) 24px;
    padding: 18px 16px 0;
  }
  .li-policy-card__badges,
  .li-policy-card__provider,
  .li-policy-card__amounts {
    padding-left: 16px;
    padding-right: 16px;
  }
  .li-policy-card__premium {
    margin-left: 16px;
    margin-right: 16px;
  }
  .li-policy-card__meta {
    padding-left: 16px;
    padding-right: 16px;
  }
  .li-policy-card__amounts strong {
    font-size: 18px;
  }
  .li-policy-card__dropdown {
    right: -8px;
    width: min(210px, 100vw - 32px);
  }
  .li-policy-drawer__header {
    padding: 12px 16px;
  }
  .li-policy-drawer__body {
    padding: 16px 16px 100px;
  }
  .li-policy-status-card,
  .li-policy-detail-grid,
  .li-policy-money-grid {
    grid-template-columns: 1fr;
  }
  .li-policy-status-card {
    align-items: start;
  }
  .li-policy-status-card em {
    justify-self: start;
  }
  .li-policy-drawer__footer {
    grid-template-columns: 1fr;
    padding: 12px 16px;
  }
}

/*# sourceMappingURL=custom.css.map */
