html, body {
  background: #f1f5f9;
  color: #0f172a;
  font-family: "Inter", sans-serif;
  min-height: 100%;
}

body {
  overflow: auto;
}

.afdip-app-authenticated {
  min-height: 100vh;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #e5e7eb;
}

.afdip-topbar {
  min-height: 84px;
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr) minmax(320px, auto);
  align-items: center;
  gap: 20px;
  padding: 12px 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
}

.afdip-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.afdip-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  color: #082f49;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
}

.afdip-brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.afdip-brand-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f8fafc;
}

.afdip-brand-subtitle {
  font-size: 11px;
  color: #94a3b8;
}

.afdip-topbar-center {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.afdip-primary-nav {
  display: flex;
  gap: 8px;
}

.afdip-primary-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: #cbd5e1 !important;
  background: transparent;
  border: 1px solid transparent;
  font-weight: 600;
}

.afdip-primary-nav-btn:hover {
  background: rgba(148, 163, 184, 0.08);
  color: #ffffff !important;
}

.afdip-primary-nav-btn.active {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.32);
  color: #e0f2fe !important;
}

.afdip-topbar-right {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  min-width: 0;
}

.afdip-context-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  align-items: end;
  gap: 12px;
  min-width: 0;
  flex: 1 1 420px;
}

.afdip-control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.afdip-control-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.afdip-topbar-right .form-group {
  margin-bottom: 0;
}

.afdip-topbar-right .form-select,
.afdip-topbar-right .selectize-input {
  min-height: 40px;
  width: 100%;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #e5e7eb;
}

.afdip-topbar-right .form-select:focus,
.afdip-topbar-right .selectize-input.focus {
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow: 0 0 0 0.18rem rgba(56, 189, 248, 0.16);
}

.afdip-topbar-right .form-select option {
  color: #0f172a;
}

.afdip-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.afd-chip-muted {
  background: rgba(148, 163, 184, 0.10);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.afdip-cancel-chip {
  min-height: 30px;
  padding: 4px 10px;
  gap: 6px;
  background: rgba(127, 29, 29, 0.18);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.28);
  cursor: pointer;
  box-shadow: none;
}

.afdip-cancel-chip:hover {
  background: rgba(153, 27, 27, 0.24);
  color: #fee2e2;
  border-color: rgba(248, 113, 113, 0.40);
}

.afdip-cancel-chip:focus,
.afdip-cancel-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.18);
}

.afdip-cancel-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
}

.afdip-cancel-chip-label {
  line-height: 1;
}

.afd-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.55);
  color: #e5e7eb;
  font-weight: 600;
  max-width: 100%;
}

.afd-profile-btn:hover,
.afd-profile-btn:focus,
.afd-profile-btn:active,
.afd-profile-btn.show {
  background: rgba(30, 41, 59, 0.85) !important;
  color: #f8fafc !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  box-shadow: none !important;
}

.afd-profile-btn::after {
  margin-left: 4px;
}

.afdip-profile-menu {
  min-width: 220px;
  padding: 8px 6px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
}

.afdip-profile-menu .dropdown-divider {
  margin: 8px 0;
  border-top-color: rgba(148, 163, 184, 0.18);
}

.afdip-profile-link {
  display: block;
  width: 100%;
  padding: 9px 12px;
  color: #cbd5e1 !important;
  text-decoration: none !important;
  font-weight: 600;
  border-radius: 8px;
  background: transparent !important;
}

.afdip-profile-link:hover,
.afdip-profile-link:focus {
  background: rgba(148, 163, 184, 0.10) !important;
  color: #f8fafc !important;
}

.afdip-section-tabs-wrap {
  padding: 10px 22px 0 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.35);
}

.afdip-section-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.afdip-section-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  text-decoration: none;
  border-radius: 10px 10px 0 0;
  color: #94a3b8 !important;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}

.afdip-section-tab-btn:hover {
  color: #f8fafc !important;
  background: rgba(148, 163, 184, 0.08);
}

.afdip-section-tab-btn.active {
  color: #e0f2fe !important;
  border-bottom-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

.afdip-page-wrap {
  padding: 24px 22px 22px 22px;
  height: calc(100vh - 84px - 54px);
  overflow: auto;
}

.afdip-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}

.afdip-page-title {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  color: #f8fafc;
}

.afdip-page-subtitle {
  margin: 8px 0 0 0;
  color: #94a3b8;
  font-size: 14px;
}

.afdip-context-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.afdip-context-left,
.afdip-context-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.afdip-main-panel,
.afdip-admin-layout,
.afdip-metrics-layout {
  display: grid;
  gap: 18px;
}

.afdip-admin-layout {
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
  align-items: start;
}

.afdip-metrics-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.afdip-metrics-wide-card {
  grid-column: 1 / -1;
}

.afdip-filter-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: stretch;
}

.afdip-search-row .shiny-input-container {
  width: 100%;
  margin-bottom: 0;
}

.afdip-search-row .form-control {
  min-height: 48px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #e5e7eb;
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.28);
}

.afdip-search-row .form-control::placeholder {
  color: #94a3b8;
}

.afdip-search-row .form-control:focus {
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow: 0 0 0 0.18rem rgba(56, 189, 248, 0.16);
  background: rgba(15, 23, 42, 0.96);
  color: #ffffff;
}

.afdip-toolbar-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .afdip-filter-row {
    flex-direction: column;
  }

  .afdip-filter-box,
  .afdip-filter-actions {
    width: 100%;
  }
}

.afdip-toolbar-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 700px;
}

.afdip-filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.afdip-toolbar-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.afdip-filter-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.afdip-filter-chip-row .btn.afdip-filter-chip,
.afdip-filter-chip {
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.88);
  color: #cbd5e1;
  font-weight: 700;
  box-shadow: none;
}

.afdip-filter-chip-row .btn.afdip-filter-chip:hover,
.afdip-filter-chip:hover {
  background: rgba(148, 163, 184, 0.08);
  color: #ffffff;
}

.afdip-filter-chip-row .btn.afdip-filter-chip.active,
.afdip-filter-chip.active {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.32);
  color: #e0f2fe;
}

.afdip-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.afdip-create-btn {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.32);
  background: rgba(56, 189, 248, 0.16);
  color: #e0f2fe;
  font-weight: 700;
}

.afdip-create-btn:hover {
  background: rgba(56, 189, 248, 0.24);
  color: #ffffff;
}

.afdip-filter-box,
.afdip-filter-actions,
.afdip-card,
.afdip-table-card,
.afdip-metric-card {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.28);
}

.afdip-filter-box,
.afdip-filter-actions {
  padding: 14px 16px;
  color: #cbd5e1;
}

.afdip-filter-box {
  flex: 1 1 420px;
  min-width: 0;
}

.afdip-filter-actions {
  flex: 1 1 260px;
  min-width: 0;
}

.afdip-table-card,
.afdip-card,
.afdip-metric-card {
  padding: 16px;
}

.afdip-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 14px;
}

.afdip-metric-value {
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 10px;
}

.afdip-table {
  width: 100%;
  border-collapse: collapse;
}

.afdip-table thead th {
  text-align: left;
  padding: 12px 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #94a3b8;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.afdip-table tbody td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  color: #e5e7eb;
}

.afdip-table tbody tr:hover {
  background: rgba(148, 163, 184, 0.05);
}

.afdip-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.afdip-status-pill.success {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
}

.afdip-status-pill.warning {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
}

.afdip-status-pill.danger {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}

.afdip-status-pill.info {
  background: rgba(56, 189, 248, 0.16);
  color: #bae6fd;
}

.afdip-warning-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
}

.afdip-warning-pill.muted {
  background: rgba(148, 163, 184, 0.10);
  color: #94a3b8;
}

.afdip-muted-text {
  color: #94a3b8;
}

.afdip-detail-card {
  padding-top: 18px;
}

.afdip-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.afdip-detail-item {
  background: rgba(2, 6, 23, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 14px;
  padding: 12px;
}

.afdip-detail-label {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.afdip-detail-value {
  font-size: 15px;
  font-weight: 600;
  color: #f8fafc;
  word-break: break-word;
}

.afdip-detail-notes {
  margin-bottom: 14px;
}

.afdip-detail-note-box {
  background: rgba(2, 6, 23, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 14px;
  padding: 12px;
  min-height: 52px;
}

.afdip-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.afdip-action-row .btn {
  border-radius: 12px;
  font-weight: 700;
}

.afdip-main-panel .shiny-input-container {
  margin-bottom: 0;
}

.afdip-main-panel textarea.form-control {
  background: rgba(2, 6, 23, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #e5e7eb;
  border-radius: 14px;
}

.afdip-main-panel textarea.form-control:focus {
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow: 0 0 0 0.18rem rgba(56, 189, 248, 0.16);
}

.afdip-main-panel .afdip-card .control-label {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
}

.afdip-main-panel .afdip-card .selectize-control {
  margin-bottom: 0;
}

.afdip-main-panel .afdip-card .selectize-input,
.afdip-main-panel .afdip-card .form-control {
  min-height: 46px;
  padding: 10px 40px 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.42) !important;
  color: #e5e7eb !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.afdip-main-panel .afdip-card .selectize-input:hover,
.afdip-main-panel .afdip-card .form-control:hover {
  border-color: rgba(148, 163, 184, 0.30);
  background: rgba(2, 6, 23, 0.52) !important;
}

.afdip-main-panel .afdip-card .selectize-input.focus,
.afdip-main-panel .afdip-card .selectize-input.input-active,
.afdip-main-panel .afdip-card .form-control:focus {
  border-color: rgba(56, 189, 248, 0.46) !important;
  box-shadow: 0 0 0 0.18rem rgba(56, 189, 248, 0.14) !important;
  background: rgba(2, 6, 23, 0.58) !important;
}

.afdip-main-panel .afdip-card .selectize-input > input {
  color: #e5e7eb !important;
}

.afdip-main-panel .afdip-card .selectize-input.not-full::after {
  border-top-color: #94a3b8;
}

.afdip-main-panel .afdip-card .selectize-input.full::after,
.afdip-main-panel .afdip-card .selectize-input.dropdown-active::after {
  border-top-color: #e5e7eb;
}

.afdip-main-panel .afdip-card .selectize-input .item {
  color: #f8fafc !important;
  line-height: 1.35;
  white-space: normal;
}

.afdip-main-panel .afdip-card .selectize-input input::placeholder {
  color: #64748b !important;
  opacity: 1;
}

.afdip-main-panel .afdip-card .selectize-dropdown {
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.34);
}

.afdip-main-panel .afdip-card .selectize-dropdown .option,
.afdip-main-panel .afdip-card .selectize-dropdown .optgroup-header {
  padding: 10px 14px;
}

.afdip-main-panel .afdip-card .selectize-dropdown .option {
  color: #e5e7eb;
  line-height: 1.4;
  white-space: normal;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.afdip-main-panel .afdip-card .selectize-dropdown .option:last-child {
  border-bottom: none;
}

.afdip-main-panel .afdip-card .selectize-dropdown .option.active,
.afdip-main-panel .afdip-card .selectize-dropdown .option.selected {
  background: rgba(56, 189, 248, 0.14);
  color: #f8fafc;
}

.afdip-main-panel .afdip-card .selectize-dropdown .option[data-value=""] {
  color: #94a3b8;
  font-style: italic;
}

table.dataTable.afdip-dt {
  width: 100% !important;
  color: #e5e7eb;
}

table.dataTable.afdip-dt thead th,
table.dataTable.afdip-dt thead td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.16) !important;
  color: #94a3b8 !important;
  background: transparent !important;
}

table.dataTable.afdip-dt tbody td {
  background: transparent !important;
  color: #e5e7eb !important;
  border-top: 1px solid rgba(148, 163, 184, 0.08) !important;
}

table.dataTable.afdip-dt tbody tr:hover td {
  background: rgba(148, 163, 184, 0.05) !important;
}

html body .dataTables_wrapper table.dataTable.afdip-dt tbody tr.afdip-selected-row > *,
html body .dataTables_wrapper table.dataTable.afdip-dt tbody tr.selected > *,
html body table.dataTable.afdip-dt tbody tr.afdip-selected-row > *,
html body table.dataTable.afdip-dt tbody tr.selected > * {
  --dt-row-selected: 39, 52, 73 !important;
  --dt-row-selected-text: 248, 250, 252 !important;
  background: #273449 !important;
  background-color: #273449 !important;
  background-image: none !important;
  color: #f8fafc !important;
  box-shadow: none !important;
  border-top-color: rgba(148, 163, 184, 0.16) !important;
  border-bottom-color: rgba(148, 163, 184, 0.16) !important;
}

html body .dataTables_wrapper table.dataTable.afdip-dt tbody tr.afdip-selected-row > *:first-child,
html body .dataTables_wrapper table.dataTable.afdip-dt tbody tr.selected > *:first-child,
html body table.dataTable.afdip-dt tbody tr.afdip-selected-row > *:first-child,
html body table.dataTable.afdip-dt tbody tr.selected > *:first-child {
  box-shadow: inset 4px 0 0 rgba(56, 189, 248, 0.65) !important;
}

.dataTables_wrapper .dataTables_info {
  color: #94a3b8 !important;
  padding-top: 12px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  color: #cbd5e1 !important;
}

html body .dataTables_wrapper table.dataTable.afdip-dt button.afdip-row-action-btn {
  position: relative;
  z-index: 5;
  min-width: 92px;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid transparent !important;
  background-image: none !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.28) !important;
}

html body .dataTables_wrapper table.dataTable.afdip-dt button.afdip-row-action-btn:hover {
  filter: brightness(1.08);
}

html body .dataTables_wrapper table.dataTable.afdip-dt button.afdip-row-action-btn.approve {
  background: #22c55e !important;
  background-color: #22c55e !important;
  border-color: rgba(134, 239, 172, 0.65) !important;
  color: #052e16 !important;
}

html body .dataTables_wrapper table.dataTable.afdip-dt button.afdip-row-action-btn.deny {
  background: #dc2626 !important;
  background-color: #dc2626 !important;
  border-color: rgba(254, 202, 202, 0.65) !important;
  color: #fee2e2 !important;
}

html body .dataTables_wrapper table.dataTable.afdip-dt button.afdip-row-action-btn.regrant {
  background: #2563eb !important;
  background-color: #2563eb !important;
  border-color: rgba(191, 219, 254, 0.65) !important;
  color: #eff6ff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  border: 1px solid rgba(56, 189, 248, 0.32) !important;
  background: rgba(56, 189, 248, 0.16) !important;
  color: #e0f2fe !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  background: rgba(148, 163, 184, 0.08) !important;
  color: #ffffff !important;
}

.modal-content {
  background: #0f172a;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.modal-header,
.modal-footer {
  border-color: rgba(148, 163, 184, 0.12);
}

.modal-content .form-control,
.modal-content textarea.form-control {
  background: rgba(2, 6, 23, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #e5e7eb;
}

.modal-content .form-control:focus,
.modal-content textarea.form-control:focus {
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow: 0 0 0 0.18rem rgba(56, 189, 248, 0.16);
}

.bootstrap-select .dropdown-menu li a {
  position: relative;
  padding-left: 36px !important;
}

.bootstrap-select .dropdown-menu li a .text::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  border: 1px solid rgba(148, 163, 184, 0.65);
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.65);
}

.bootstrap-select .dropdown-menu li.selected a .text::before {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.75);
}

.bootstrap-select .dropdown-menu li.selected a .text::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 50%;
  width: 5px;
  height: 9px;
  transform: translateY(-58%) rotate(45deg);
  border-right: 2px solid #38bdf8;
  border-bottom: 2px solid #38bdf8;
}

.bootstrap-select .dropdown-menu .bs-actionsbox {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.bootstrap-select .dropdown-menu .bs-actionsbox .btn {
  border-radius: 8px;
}

@media (max-width: 1400px) {
  .afdip-topbar {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .afdip-topbar-center {
    justify-content: flex-start;
  }

  .afdip-topbar-right {
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .afdip-context-controls {
    width: 100%;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .afdip-profile-wrap {
    margin-left: auto;
  }

  .afdip-admin-layout,
  .afdip-metrics-layout,
  .afdip-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .afdip-page-header {
    flex-direction: column;
  }

  .afdip-primary-nav {
    flex-wrap: wrap;
  }

  .afdip-context-controls {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .afdip-profile-wrap {
    width: 100%;
    margin-left: 0;
  }

  .afd-profile-btn {
    width: 100%;
    justify-content: center;
  }

  .afdip-toolbar-row {
    align-items: flex-start;
  }
}