/* ==========================================================================
   GLOBAL EXECUTIVE DESIGN SYSTEM (COMPACT 10PX THEME & MODERN UI)
   ========================================================================== */

/* 1. Global Rounded Corners & Base Elements */
.card,
.modal-content,
.dropdown-menu,
.nav-tabs-custom {
  border-radius: 10px !important;
}

.card {
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02) !important;
  margin-bottom: 14px;
}

.card-header {
  padding: 10px 14px !important;
  background-color: #ffffff;
  border-bottom: 1px solid #f1f3fa !important;
}

.card-body {
  padding: 14px 16px !important;
}

/* 2. Compact Executive Page Header Box */
.page-header-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0 6px 0;
  margin-top: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 10px;
}

.page-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-icon-badge {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 8px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.14) 0%,
    rgba(37, 99, 235, 0.05) 100%
  );
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.22);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.1);
}

.page-header-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #313a46;
  margin: 0;
  line-height: 1.2;
}

.page-header-subtitle {
  font-size: 0.74rem;
  color: #8391a2;
  margin: 1px 0 0 0;
}

/* 3. Modern Soft Status Badges (Compact) */
.badge-soft-success {
  background-color: rgba(16, 185, 129, 0.12) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px !important;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
}

.badge-soft-danger {
  background-color: rgba(239, 68, 68, 0.12) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px !important;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
}

.badge-soft-primary {
  background-color: rgba(37, 99, 235, 0.12) !important;
  color: #2563eb !important;
  border: 1px solid rgba(37, 99, 235, 0.25) !important;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px !important;
  font-size: 0.72rem;
}

.badge-soft-warning {
  background-color: rgba(245, 158, 11, 0.14) !important;
  color: #e0a800 !important;
  border: 1px solid rgba(245, 158, 11, 0.28) !important;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px !important;
  font-size: 0.72rem;
}

.badge-soft-info {
  background-color: rgba(14, 165, 233, 0.12) !important;
  color: #0ea5e9 !important;
  border: 1px solid rgba(14, 165, 233, 0.25) !important;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px !important;
  font-size: 0.72rem;
}

/* Fix for standard badges with solid bg-* classes overriding --ct-badge-color */
.badge.bg-primary,
.badge.bg-success,
.badge.bg-danger,
.badge.bg-info,
.badge.bg-secondary,
.badge.bg-dark {
  color: #ffffff !important;
}

.badge.bg-warning,
.badge.bg-light {
  color: #313a46 !important;
}

/* 4. Action Buttons (Compact 28px Icons) */
.btn-action-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 6px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  text-decoration: none !important;
  background: transparent;
  padding: 0;
  flex-shrink: 0 !important;
}

.btn-action-icon:hover {
  transform: translateY(-1px);
}

th.col-actions, td.col-actions {
  min-width: 140px !important;
  width: 140px !important;
  white-space: nowrap !important;
  text-align: right !important;
}

.btn-action-icon.action-edit {
  color: #0ea5e9;
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.18);
}

.btn-action-icon.action-edit:hover {
  color: #ffffff;
  background: #0ea5e9;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.3);
}

.btn-action-icon.action-delete,
.btn-action-icon.action-remove {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.18);
}

.btn-action-icon.action-delete:hover,
.btn-action-icon.action-remove:hover {
  color: #ffffff;
  background: #ef4444;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.btn-action-icon.action-view {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.18);
}

.btn-action-icon.action-view:hover {
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.btn-action-icon.action-download {
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.18);
}

.btn-action-icon.action-download:hover {
  color: #ffffff;
  background: #10b981;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.btn-action-icon.action-status {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.18);
}

.btn-action-icon.action-status:hover {
  color: #ffffff;
  background: #f59e0b;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.btn-action-icon.action-whatsapp {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
}

.btn-action-icon.action-whatsapp:hover {
  color: #ffffff;
  background: #10b981;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.btn-action-icon.action-pay {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.18);
}

.btn-action-icon.action-pay:hover {
  color: #ffffff;
  background: #6366f1;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

/* Soft Button Variants & Micro Buttons */
.btn-xs {
  padding: 3px 8px !important;
  font-size: 0.72rem !important;
  line-height: 1.2 !important;
  border-radius: 6px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.btn-xs:hover {
  transform: translateY(-1px);
}

.btn-soft-primary {
  color: #2563eb !important;
  background-color: rgba(37, 99, 235, 0.12) !important;
  border: 1px solid rgba(37, 99, 235, 0.25) !important;
}

.btn-soft-primary:hover {
  color: #ffffff !important;
  background-color: #2563eb !important;
  border-color: #2563eb !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.btn-soft-success {
  color: #10b981 !important;
  background-color: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

.btn-soft-success:hover {
  color: #ffffff !important;
  background-color: #10b981 !important;
  border-color: #10b981 !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.btn-soft-warning {
  color: #f59e0b !important;
  background-color: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.25) !important;
}

.btn-soft-warning:hover {
  color: #ffffff !important;
  background-color: #f59e0b !important;
  border-color: #f59e0b !important;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

.btn-soft-danger {
  color: #ef4444 !important;
  background-color: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
}

.btn-soft-danger:hover {
  color: #ffffff !important;
  background-color: #ef4444 !important;
  border-color: #ef4444 !important;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
}

.btn-soft-info {
  color: #0ea5e9 !important;
  background-color: rgba(14, 165, 233, 0.12) !important;
  border: 1px solid rgba(14, 165, 233, 0.25) !important;
}

.btn-soft-info:hover {
  color: #ffffff !important;
  background-color: #0ea5e9 !important;
  border-color: #0ea5e9 !important;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.25);
}

.btn-soft-secondary {
  color: #6c757d !important;
  background-color: rgba(108, 117, 125, 0.12) !important;
  border: 1px solid rgba(108, 117, 125, 0.25) !important;
}

.btn-soft-secondary:hover {
  color: #ffffff !important;
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  box-shadow: 0 2px 6px rgba(108, 117, 125, 0.25);
}

.btn-soft-dark {
  color: #313a46 !important;
  background-color: rgba(49, 58, 70, 0.10) !important;
  border: 1px solid rgba(49, 58, 70, 0.22) !important;
}

.btn-soft-dark:hover {
  color: #ffffff !important;
  background-color: #313a46 !important;
  border-color: #313a46 !important;
  box-shadow: 0 2px 6px rgba(49, 58, 70, 0.25);
}

/* 5. Compact Form Controls & Input System */
.form-group-compact {
  margin-bottom: 12px;
}

.form-control,
.form-select {
  width: 100% !important;
  display: block;
  border-radius: 8px !important;
  border: 1px solid #d1d9e2;
  padding: 6px 10px;
  font-size: 0.84rem;
  height: 36px;
  line-height: 1.5;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.18) !important;
}

textarea.form-control {
  height: auto !important;
  min-height: 70px;
}

.form-label {
  font-weight: 600;
  color: #475569;
  font-size: 0.81rem;
  margin-bottom: 4px;
  display: inline-block;
}

.form-label.compulsory::after,
.form-label.required::after {
  content: " *";
  color: #ef4444;
  font-weight: bold;
}

/* 6. Compact Buttons */
.btn {
  border-radius: 8px !important;
  font-weight: 500;
  padding: 6px 14px;
  font-size: 0.84rem;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-sm {
  padding: 4px 10px !important;
  font-size: 0.78rem !important;
  border-radius: 6px !important;
}

.btn-primary {
  background-color: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background-color: #5d68ec;
  border-color: #5d68ec;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #e2e8f0;
  border-color: #e2e8f0;
  color: #475569;
}

.btn-secondary:hover {
  background-color: #cbd5e1;
  border-color: #cbd5e1;
  color: #1e293b;
}

.btn-back {
  background: #ffffff;
  border: 1px solid #d1d9e2;
  color: #475569;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-back:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #1e293b;
}

/* 7. Compact DataTables & Table Styling */
.table-responsive {
  width: 100%;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.dataTables_wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.dataTables_wrapper .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.table,
table.dataTable {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 0 !important;
}

.table thead th {
  background-color: #f8fafc !important;
  color: #64748b !important;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #e2e8f0 !important;
  border-top: none !important;
  padding: 8px 10px !important;
  white-space: nowrap !important;
}

.table tbody td {
  padding: 7px 10px !important;
  vertical-align: middle;
  border-top: 1px solid #f1f5f9;
  color: #334155;
  font-size: 0.83rem;
}

.table tbody tr:hover {
  background-color: #f8fafc !important;
}

.table-responsive {
  margin-bottom: 0 !important;
  border: none !important;
}

/* DataTables Top & Bottom Controls Spacing */
.dataTables_wrapper > div:first-child,
.dataTables_wrapper .row:first-child {
  margin-bottom: 14px !important;
  gap: 8px;
}

.dataTables_wrapper .dt-buttons {
  display: inline-flex !important;
  gap: 5px !important;
  align-items: center;
  margin: 0 6px;
}

.dataTables_wrapper .dt-buttons .btn {
  padding: 3px 8px !important;
  font-size: 0.75rem !important;
  height: 28px !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  border: 1px solid #d1d9e2 !important;
  color: #475569 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-right: 0 !important;
  transition: all 0.15s ease;
  display: inline-flex !important;
  align-items: center;
  gap: 3px;
}

.dataTables_wrapper .dt-buttons .btn:hover {
  background: #f1f3fa !important;
  border-color: #2563eb !important;
  color: #2563eb !important;
}

.dataTables_wrapper .dataTables_filter {
  margin-left: 0;
}

.dataTables_wrapper .dataTables_filter input {
  height: 30px !important;
  border-radius: 6px !important;
  font-size: 0.81rem;
  padding: 3px 8px;
  border: 1px solid #d1d9e2;
  min-width: 150px;
}

.dataTables_wrapper .dataTables_length select {
  height: 30px !important;
  border-radius: 6px !important;
  font-size: 0.81rem;
  padding: 2px 22px 2px 8px;
  border: 1px solid #d1d9e2;
}

.dataTables_wrapper .dataTables_info {
  padding-top: 6px !important;
  font-size: 0.76rem !important;
  color: #64748b;
  margin: 0 !important;
}

.dataTables_wrapper .dataTables_paginate {
  padding-top: 6px !important;
  margin: 0 !important;
}

.dataTables_wrapper .dataTables_paginate .pagination {
  margin: 0 !important;
  gap: 2px;
}

.dataTables_wrapper .dataTables_paginate .page-item .page-link {
  padding: 2px 8px !important;
  font-size: 0.74rem !important;
  height: 26px !important;
  min-width: 26px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px !important;
  border: 1px solid #d1d9e2;
  margin: 0 1px;
}

/* Mobile Responsive DataTables Controls */
@media (max-width: 767.98px) {
  /* toolbar wrapper stacks vertically */
  .dt-toolbar-wrapper {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
  }

  /* per-page row */
  .dt-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-left: 0 !important;
  }

  /* export buttons — scrollable horizontally */
  .dt-center {
    width: 100%;
  }

  .dataTables_wrapper .dt-buttons {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    margin: 0 !important;
    gap: 4px !important;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .dataTables_wrapper .dt-buttons::-webkit-scrollbar {
    display: none;
  }

  .dataTables_wrapper .dt-buttons .btn {
    padding: 2px 7px !important;
    font-size: 0.72rem !important;
    height: 26px !important;
    flex-shrink: 0 !important;
  }

  /* search — full width */
  .dt-right {
    padding-right: 0 !important;
    width: 100% !important;
  }

  .dataTables_wrapper .dataTables_filter {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .dataTables_wrapper .dataTables_filter label {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
  }

  .dataTables_wrapper .dataTables_filter input {
    width: 100% !important;
    min-width: unset !important;
    flex: 1 !important;
    height: 30px !important;
    box-sizing: border-box !important;
  }

  .dataTables_wrapper .dataTables_length select {
    height: 28px !important;
  }

  .dataTables_wrapper > div:last-child {
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    margin-top: 6px !important;
    padding-top: 0 !important;
    text-align: center;
  }

  .dataTables_wrapper > div:last-child .dataTables_info {
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0.74rem !important;
    line-height: 1.2 !important;
  }

  .dataTables_wrapper > div:last-child .dataTables_paginate {
    padding: 0 !important;
    margin: 0 !important;
  }

  .dataTables_wrapper > div:last-child .pagination {
    margin: 0 !important;
    gap: 2px !important;
  }
}

/* Dark Mode Overrides */
body[data-layout-color="dark"] .page-header-title {
  color: #e3eaef !important;
}

body[data-layout-color="dark"] .card {
  background-color: #2b3040 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body[data-layout-color="dark"] .card-header {
  background-color: #2b3040 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body[data-layout-color="dark"] .table thead th {
  background-color: #32374a !important;
  color: #94a3b8 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body[data-layout-color="dark"] .table tbody td {
  border-color: rgba(255, 255, 255, 0.05) !important;
  color: #cbd5e1 !important;
}

body[data-layout-color="dark"] .table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02) !important;
}

body[data-layout-color="dark"] .form-control,
body[data-layout-color="dark"] .form-select {
  background-color: #222736 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e3eaef !important;
}

body[data-layout-color="dark"] .form-label {
  color: #cbd5e1 !important;
}

/* Dark Mode DataTables Styling */
body[data-layout-color="dark"] .dataTables_wrapper .dt-buttons .btn {
  background: #32374a !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

body[data-layout-color="dark"] .dataTables_wrapper .dt-buttons .btn:hover {
  background: #3b4256 !important;
  border-color: #2563eb !important;
  color: #2563eb !important;
}

body[data-layout-color="dark"] .dataTables_wrapper .dataTables_filter input {
  background-color: #222736 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e3eaef !important;
}

body[data-layout-color="dark"] .dataTables_wrapper .dataTables_length select {
  background-color: #222736 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e3eaef !important;
}

body[data-layout-color="dark"] .dataTables_wrapper .dataTables_info {
  color: #94a3b8 !important;
}

body[data-layout-color="dark"] .dataTables_wrapper .page-link {
  background-color: #2b3040 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
}

body[data-layout-color="dark"]
  .dataTables_wrapper
  .page-item.active
  .page-link {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

body[data-layout-color="dark"]
  .dataTables_wrapper
  .page-item.disabled
  .page-link {
  background-color: #222736 !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
  color: #6c757d !important;
}

body[data-layout-color="dark"] div.dt-button-collection {
  background-color: #2b3040 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
  border-radius: 8px !important;
}

body[data-layout-color="dark"] div.dt-button-collection .dt-button {
  background-color: transparent !important;
  color: #cbd5e1 !important;
}

body[data-layout-color="dark"] div.dt-button-collection .dt-button:hover,
body[data-layout-color="dark"] div.dt-button-collection .dt-button.active {
  background-color: rgba(37, 99, 235, 0.18) !important;
  color: #2563eb !important;
}

body[data-layout-color="dark"] .btn-secondary {
  background-color: #32374a !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
}

body[data-layout-color="dark"] .btn-secondary:hover {
  background-color: #3b4256 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

body[data-layout-color="dark"] .btn-back {
  background-color: #32374a !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
}

body[data-layout-color="dark"] .btn-back:hover {
  background-color: #3b4256 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

/* Dark mode overrides for soft buttons */
body[data-layout-color="dark"] .btn-soft-primary,
[data-bs-theme="dark"] .btn-soft-primary {
  color: #929af8 !important;
  background-color: rgba(37, 99, 235, 0.22) !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
}

body[data-layout-color="dark"] .btn-soft-primary:hover,
[data-bs-theme="dark"] .btn-soft-primary:hover {
  color: #ffffff !important;
  background-color: #2563eb !important;
  border-color: #2563eb !important;
}

body[data-layout-color="dark"] .btn-soft-success,
[data-bs-theme="dark"] .btn-soft-success {
  color: #26e2ac !important;
  background-color: rgba(16, 185, 129, 0.22) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

body[data-layout-color="dark"] .btn-soft-success:hover,
[data-bs-theme="dark"] .btn-soft-success:hover {
  color: #ffffff !important;
  background-color: #10b981 !important;
  border-color: #10b981 !important;
}

body[data-layout-color="dark"] .btn-soft-info,
[data-bs-theme="dark"] .btn-soft-info {
  color: #59c4e2 !important;
  background-color: rgba(14, 165, 233, 0.22) !important;
  border-color: rgba(14, 165, 233, 0.35) !important;
}

body[data-layout-color="dark"] .btn-soft-info:hover,
[data-bs-theme="dark"] .btn-soft-info:hover {
  color: #ffffff !important;
  background-color: #0ea5e9 !important;
  border-color: #0ea5e9 !important;
}

body[data-layout-color="dark"] .btn-soft-warning,
[data-bs-theme="dark"] .btn-soft-warning {
  color: #fbbf24 !important;
  background-color: rgba(245, 158, 11, 0.22) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}

body[data-layout-color="dark"] .btn-soft-warning:hover,
[data-bs-theme="dark"] .btn-soft-warning:hover {
  color: #ffffff !important;
  background-color: #f59e0b !important;
  border-color: #f59e0b !important;
}

body[data-layout-color="dark"] .btn-soft-danger,
[data-bs-theme="dark"] .btn-soft-danger {
  color: #ff7593 !important;
  background-color: rgba(239, 68, 68, 0.22) !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
}

body[data-layout-color="dark"] .btn-soft-danger:hover,
[data-bs-theme="dark"] .btn-soft-danger:hover {
  color: #ffffff !important;
  background-color: #ef4444 !important;
  border-color: #ef4444 !important;
}

body[data-layout-color="dark"] .btn-soft-secondary,
[data-bs-theme="dark"] .btn-soft-secondary {
  color: #cbd5e1 !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

body[data-layout-color="dark"] .btn-soft-secondary:hover,
[data-bs-theme="dark"] .btn-soft-secondary:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

body[data-layout-color="dark"] .btn-soft-dark,
[data-bs-theme="dark"] .btn-soft-dark {
  color: #e2e8f0 !important;
  background-color: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

body[data-layout-color="dark"] .btn-soft-dark:hover,
[data-bs-theme="dark"] .btn-soft-dark:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

/* ==========================================================================
   8. Executive Modern Select2 Theme Styling (Matches 10px Form Controls)
   ========================================================================== */
.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem !important;
  font-size: 0.83rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #334155 !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 14px 10px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
  display: flex !important;
  align-items: center !important;
  cursor: pointer !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-left: 0 !important;
  padding-right: 0 !important;
  color: #334155 !important;
  line-height: 1.5 !important;
  font-size: 0.83rem !important;
  width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #6c757d !important;
  font-size: 0.83rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
  position: absolute !important;
  right: 28px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #94a3b8 !important;
  font-weight: bold !important;
  font-size: 14px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
  color: #ef4444 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  display: none !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.15) !important;
  outline: 0 !important;
}

/* Select2 Dropdown Menu */
.select2-dropdown {
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
  overflow: hidden !important;
  z-index: 1060 !important;
  font-size: 0.83rem !important;
}

.select2-container--default .select2-search--dropdown {
  padding: 6px 8px !important;
  background-color: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  padding: 5px 10px !important;
  font-size: 0.82rem !important;
  outline: none !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15) !important;
}

.select2-results__option {
  padding: 6px 12px !important;
  font-size: 0.83rem !important;
  color: #334155 !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #2563eb !important;
  color: #fff !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: #f1f5f9 !important;
  color: #1e293b !important;
  font-weight: 600 !important;
}

/* Dark Mode Select2 */
body[data-layout-color="dark"] .select2-container--default .select2-selection--single {
  background-color: #2b3040 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #cbd5e1 !important;
}

body[data-layout-color="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #cbd5e1 !important;
}

body[data-layout-color="dark"] .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #64748b !important;
}

body[data-layout-color="dark"] .select2-dropdown {
  background-color: #242938 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
}

body[data-layout-color="dark"] .select2-container--default .select2-search--dropdown {
  background-color: #1e222d !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body[data-layout-color="dark"] .select2-container--default .select2-search--dropdown .select2-search__field {
  background-color: #2b3040 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #cbd5e1 !important;
}

body[data-layout-color="dark"] .select2-results__option {
  color: #cbd5e1 !important;
}

body[data-layout-color="dark"] .select2-container--default .select2-results__option[aria-selected=true] {
  background-color: #32374a !important;
  color: #ffffff !important;
}

/* ==========================================================================
   PASSWORD INPUT-GROUP — EYE ICON FIX
   ========================================================================== */

/* Ensure input inside input-group doesn't break compact height */
.input-group.input-group-merge .form-control {
  height: 36px !important;
  border-radius: 8px 0 0 8px !important;
  flex: 1 1 auto;
  min-width: 0;
}

/* Eye toggle button — match height, correct border, subtle styling */
.input-group.input-group-merge .input-group-text {
  height: 36px !important;
  width: 40px !important;
  min-width: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8fafc;
  border: 1px solid #d1d9e2;
  border-left: none;
  border-radius: 0 8px 8px 0 !important;
  cursor: pointer;
  transition: background 0.15s ease;
}

.input-group.input-group-merge .input-group-text:hover {
  background-color: #f1f5f9;
}

/* Eye icon — correct size and color */
.input-group.input-group-merge .password-eye {
  font-size: 18px;
  line-height: 1;
  color: #8391a2;
  display: flex;
  align-items: center;
}

.input-group.input-group-merge .input-group-text:hover .password-eye {
  color: #2563eb;
}

/* Dark mode — eye toggle */
body[data-layout-color="dark"] .input-group.input-group-merge .input-group-text {
  background-color: #222736 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body[data-layout-color="dark"] .input-group.input-group-merge .input-group-text:hover {
  background-color: #2b3040 !important;
}

body[data-layout-color="dark"] .input-group.input-group-merge .password-eye {
  color: #8391a2;
}
