/* =========================================================
   ACE TABLES v3 — standalone (load AFTER theme + custom.css)
   public/admin/css/ace-tables.css
   ========================================================= */

/* Kill legacy hover / radius */
body td:hover,
body .page-content td:hover,
body table td:hover {
  background-color: transparent !important;
}
body .paginate_button {
  border-radius: 10px !important;
}

/* ---- Card (single border, no double) ---- */
.ace-table-card {
  background: #fff !important;
  border: 1px solid #eeeaf8 !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 12px rgba(99, 70, 180, 0.05) !important;
  overflow: hidden !important;
}
.ace-table-card .card-body {
  padding: 16px !important;
  border: 0 !important;
  box-shadow: none !important;
}
body .page-content .card:has(table),
body .page-content .card:has(.dataTables_wrapper) {
  background: #fff !important;
  border: 1px solid #eeeaf8 !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 12px rgba(99, 70, 180, 0.05) !important;
  overflow: hidden !important;
}
body .page-content .card:has(table) .card-body,
body .page-content .card:has(.dataTables_wrapper) .card-body {
  border: 0 !important;
  box-shadow: none !important;
}

/* Scroll — no extra border */
.ace-table-scroll,
body .page-content .table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 0 !important;
  box-shadow: none !important;
  scrollbar-width: thin;
  scrollbar-color: #c4b5fd #f5f3ff;
}
.ace-table-scroll::-webkit-scrollbar,
body .page-content .table-responsive::-webkit-scrollbar {
  height: 8px;
}
.ace-table-scroll::-webkit-scrollbar-track,
body .page-content .table-responsive::-webkit-scrollbar-track {
  background: #f5f3ff;
  border-radius: 10px;
}
.ace-table-scroll::-webkit-scrollbar-thumb,
body .page-content .table-responsive::-webkit-scrollbar-thumb {
  background: #c4b5fd;
  border-radius: 10px;
}

/* ---- Base table — single line borders only ---- */
body .page-content table,
body .page-content table.table,
body .page-content table.dataTable,
body .page-content table.display,
body .page-content #example,
body .page-content #myTable,
body table.dataTable,
body table.display,
body #example,
body #myTable {
  width: 100% !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  font-family: "Inter", "Muli", system-ui, -apple-system, sans-serif !important;
  font-size: 0.875rem !important;
  color: #334155 !important;
  background: #fff !important;
  box-shadow: none !important;
}

/* Header */
body .page-content table thead th,
body .page-content #example th,
body .page-content #example thead th,
body .page-content #myTable thead th,
body .page-content table.dataTable thead th,
body .page-content table.display thead th,
body #example th,
body #example thead th,
body #myTable thead th,
body table.dataTable thead th,
body table thead tr th {
  background: #f8f5ff !important;
  color: #4c1d95 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 12px 14px !important;
  border: 0 !important;
  border-bottom: 1px solid #ede9fe !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
  box-shadow: none !important;
}

/* Body cells */
body .page-content table tbody td,
body .page-content #example td,
body .page-content #example tbody td,
body .page-content #myTable tbody td,
body .page-content table.dataTable tbody td,
body #example td,
body #example tbody td,
body #myTable tbody td,
body table.dataTable tbody td,
body table td {
  padding: 12px 14px !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #334155 !important;
  border: 0 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: middle !important;
  background: #fff !important;
  text-transform: none !important;
  box-shadow: none !important;
}

/* Dates — never wrap mid-line */
body .page-content table tbody td,
body #myTable tbody td,
body #example tbody td {
  white-space: nowrap !important;
}

/* Zebra + hover */
body .page-content table tbody tr:nth-child(even) td,
body #example tbody tr:nth-child(even) td,
body #myTable tbody tr:nth-child(even) td,
body table.dataTable tbody tr:nth-child(even) td {
  background: #faf8ff !important;
}
body .page-content table tbody tr:hover td,
body #example tbody tr:hover td,
body #myTable tbody tr:hover td,
body table.dataTable tbody tr:hover td {
  background: #f3e8ff !important;
  color: #1e1b4b !important;
}

body table tbody td.dataTables_empty {
  text-align: center !important;
  padding: 28px 16px !important;
  color: #94a3b8 !important;
  background: #fff !important;
  white-space: normal !important;
}

/* Links */
body .page-content table tbody td a:not(.btn),
body #example tbody td a:not(.btn),
body #myTable tbody td a:not(.btn) {
  color: #6d28d9 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

/* Status pills */
body #example td span.active,
body table span.active,
body .page-content table span.active {
  background: #dcfce7 !important;
  color: #16a34a !important;
  border-radius: 999px !important;
  padding: 4px 10px !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
}
body #example td span.decline,
body table span.decline,
body .page-content table span.decline {
  background: #fee2e2 !important;
  color: #dc2626 !important;
  border-radius: 999px !important;
  padding: 4px 10px !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
}
body .page-content table .badge {
  border-radius: 999px !important;
  font-weight: 600 !important;
  font-size: 0.72rem !important;
  padding: 4px 10px !important;
}

/* Cell buttons */
body .page-content table .btn,
body #example .btn,
body #myTable .btn {
  border-radius: 8px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  padding: 6px 12px !important;
  white-space: nowrap !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
body .page-content table .btn-primary,
body #example .btn-primary,
body #myTable .btn-primary {
  background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
  color: #fff !important;
}
body .page-content table .btn-danger,
body #myTable .btn-danger {
  background: #ef4444 !important;
  color: #fff !important;
}

/* DataTables controls */
body .dataTables_wrapper {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
body .dataTables_wrapper .dataTables_length,
body .dataTables_wrapper .dataTables_filter {
  margin-bottom: 12px !important;
  font-size: 0.85rem !important;
  color: #64748b !important;
  font-weight: 500 !important;
}
body .dataTables_wrapper .dataTables_length select,
body .dataTables_wrapper .dataTables_filter input {
  border: 1.5px solid #e8e0f5 !important;
  border-radius: 10px !important;
  padding: 6px 12px !important;
  background: #faf8ff !important;
  color: #334155 !important;
  height: 36px !important;
  outline: none !important;
}
body .dataTables_wrapper .dataTables_filter input:focus,
body .dataTables_wrapper .dataTables_length select:focus {
  border-color: #7c3aed !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12) !important;
}
body .dataTables_wrapper .dataTables_info {
  font-size: 0.8rem !important;
  color: #64748b !important;
  padding-top: 12px !important;
}

/* Pagination */
body .dataTables_wrapper .dataTables_paginate .paginate_button,
body .paginate_button {
  border-radius: 10px !important;
  margin: 0 3px !important;
  padding: 5px 12px !important;
  border: 1.5px solid #e8e0f5 !important;
  background: #fff !important;
  color: #4c1d95 !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
}
body .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #f3e8ff !important;
  color: #5b21b6 !important;
}
body .dataTables_wrapper .dataTables_paginate .paginate_button.current,
body .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
  color: #fff !important;
  border-color: transparent !important;
}
body .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
body .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
  opacity: 0.45 !important;
  background: #f8fafc !important;
  color: #94a3b8 !important;
}

/* Checkbox + images */
body .page-content table input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  accent-color: #7c3aed !important;
  cursor: pointer !important;
}
body .page-content table tbody td img {
  border-radius: 8px !important;
  object-fit: cover !important;
  max-height: 40px !important;
}
body table tr td a img {
  width: 18px !important;
}

/* ---- Candidate / list page header actions ---- */
.candidate-header-actions .export_btn,
.candidate-list-page .export_btn,
body .page-content a.export_btn {
  background: linear-gradient(135deg, #7c3aed, #db2777) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  padding: 8px 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25) !important;
}
.candidate-header-actions .export_btn:hover,
body .page-content a.export_btn:hover {
  color: #fff !important;
  opacity: 0.95 !important;
}
.candidate-header-actions .export_btn img {
  filter: brightness(0) invert(1);
  width: 16px !important;
}
#statusFilter {
  border: 1.5px solid #e8e0f5 !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
  background: #faf8ff !important;
  color: #334155 !important;
  min-width: 130px;
  height: 40px !important;
}

/* DataTables sorting icons — no extra border boxes */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
  background-image: none !important;
}

@media (max-width: 991.98px) {
  .candidate-header-actions {
    width: 100%;
    justify-content: flex-start !important;
  }
}
@media (max-width: 767.98px) {
  body .page-content table thead th,
  body .page-content table tbody td,
  body #example th,
  body #example td {
    padding: 10px !important;
    font-size: 0.8rem !important;
  }
}

/* Indirect client row tint */
body .page-content table tbody tr.client-row-indirect td {
  background: #eff6ff !important;
}
body .page-content table tbody tr.client-row-indirect:hover td {
  background: #dbeafe !important;
}
/* Checks popup */
.shocsk {
  position: absolute;
  z-index: 30;
  background: #fff;
  padding: 10px 14px;
  border: 1px solid #e8e0f5;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(99, 70, 180, 0.12);
  font-size: 0.82rem;
  color: #334155;
  max-width: 240px;
  line-height: 1.45;
  margin-top: 6px;
  white-space: normal !important;
}

/* =========================================================
   Forms + Role checkbox grid (users create/edit etc.)
   ========================================================= */
.user-form-card .form-control,
.ace-form-card .form-control {
  border-radius: 10px !important;
  border: 1.5px solid #e8e0f5 !important;
  background: #faf8ff !important;
  height: 44px !important;
  color: #1e1b4b !important;
  font-weight: 500 !important;
}
.user-form-card .form-control:focus,
.ace-form-card .form-control:focus {
  border-color: #7c3aed !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12) !important;
}
.user-form-card .form-label,
.ace-form-card .form-label {
  font-weight: 600 !important;
  color: #475569 !important;
  font-size: 0.85rem !important;
  margin-bottom: 6px !important;
}
.user-form-card .btn-submit,
.ace-form-card .btn-submit {
  background: linear-gradient(135deg, #7c3aed, #db2777) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
  min-width: 120px;
}
.user-form-card .btn-submit:hover,
.ace-form-card .btn-submit:hover {
  color: #fff !important;
  opacity: 0.95;
}
.user-form-card .btn-cancel,
.ace-form-card .btn-cancel {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
}

/* Role checkbox grid — replaces broken native multi-select */
.ace-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  padding: 14px;
  background: #faf8ff;
  border: 1.5px solid #e8e0f5;
  border-radius: 12px;
  max-height: 280px;
  overflow-y: auto;
}
.ace-role-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1.5px solid #ede9fe;
  border-radius: 10px;
  cursor: pointer;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  transition: border-color .15s, background .15s, box-shadow .15s;
  user-select: none;
}
.ace-role-item:hover {
  border-color: #c4b5fd;
  background: #f5f3ff;
}
.ace-role-item:has(input:checked) {
  border-color: #7c3aed;
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15);
  color: #4c1d95;
  font-weight: 600;
}
.ace-role-item input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  accent-color: #7c3aed !important;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}
.role-hint {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 8px;
}
@media (max-width: 575.98px) {
  .ace-role-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Allocate / Assign modals — GLOBAL (no per-page HTML change)
   Targets:
   - #mulopeallocate
   - .ace-allocate-modal
   - .modal-dialog.assign  (theme already uses this)
   - #assignModal, #allocateModal, .modal-allocate
   ========================================================= */
.modal-backdrop.show {
  opacity: 0.45 !important;
  background: #1e1b4b !important;
}

#mulopeallocate .modal-dialog,
.modal.ace-allocate-modal .modal-dialog,
.modal-dialog.assign,
#assignModal .modal-dialog,
#allocateModal .modal-dialog,
.modal-allocate .modal-dialog {
  max-width: 440px;
}

#mulopeallocate .modal-content,
.modal.ace-allocate-modal .modal-content,
.modal-dialog.assign .modal-content,
#assignModal .modal-content,
#allocateModal .modal-content,
.modal-allocate .modal-content,
.modal.show .modal-dialog.assign .modal-content {
  border: 0 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 24px 64px rgba(30, 27, 75, 0.22) !important;
  overflow: hidden;
  color: #334155 !important;
}

#mulopeallocate .modal-header,
.modal.ace-allocate-modal .modal-header,
.modal-dialog.assign .modal-header,
#assignModal .modal-header,
#allocateModal .modal-header,
.modal-allocate .modal-header,
.modal.show .modal-dialog.assign .modal-header {
  border-bottom: 0 !important;
  padding: 22px 24px 8px !important;
  background: #ffffff !important;
}

#mulopeallocate .modal-title,
.modal.ace-allocate-modal .modal-title,
.modal-dialog.assign .modal-title,
#assignModal .modal-title,
#allocateModal .modal-title,
.modal-allocate .modal-title,
.modal.show .modal-dialog.assign .modal-title {
  font-weight: 700 !important;
  color: #1e1b4b !important;
  font-size: 1.15rem !important;
  text-align: left !important;
  width: auto !important;
  letter-spacing: -0.02em;
}

#mulopeallocate .modal-header .btn-close,
.modal.ace-allocate-modal .modal-header .btn-close,
.modal-dialog.assign .btn-close,
#assignModal .btn-close,
#allocateModal .btn-close {
  background-color: #f1f5f9 !important;
  border-radius: 50% !important;
  opacity: 1 !important;
  width: 32px;
  height: 32px;
  padding: 0;
  background-size: 12px;
}

#mulopeallocate .modal-body,
.modal.ace-allocate-modal .modal-body,
.modal-dialog.assign .modal-body,
#assignModal .modal-body,
#allocateModal .modal-body,
.modal-allocate .modal-body,
.modal.show .modal-dialog.assign .modal-body {
  padding: 12px 24px 8px !important;
  background: #ffffff !important;
  color: #334155 !important;
}

#mulopeallocate .form-label,
.modal.ace-allocate-modal .form-label,
.modal-dialog.assign .form-label,
#assignModal .form-label,
#allocateModal .form-label,
.modal-allocate .form-label {
  font-weight: 600 !important;
  color: #64748b !important;
  font-size: 0.8rem !important;
  margin-bottom: 8px !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#mulopeallocate .form-control,
#mulopeallocate select.form-control,
#mulopeallocate select,
.modal.ace-allocate-modal .form-control,
.modal.ace-allocate-modal select,
.modal-dialog.assign .form-control,
.modal-dialog.assign select,
#assignModal .form-control,
#assignModal select,
#allocateModal .form-control,
#allocateModal select,
.modal-allocate .form-control,
.modal-allocate select,
.modal.show .modal-dialog.assign .form-control,
.modal.show .modal-dialog.assign select {
  border-radius: 12px !important;
  border: 1.5px solid #e8e0f5 !important;
  background: #faf8ff !important;
  height: 48px !important;
  color: #1e1b4b !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  padding: 0 14px !important;
  box-shadow: none !important;
}

#mulopeallocate .form-control:focus,
#mulopeallocate select:focus,
.modal.ace-allocate-modal .form-control:focus,
.modal-dialog.assign .form-control:focus,
.modal-dialog.assign select:focus,
#assignModal .form-control:focus,
#allocateModal .form-control:focus {
  border-color: #7c3aed !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12) !important;
}

#mulopeallocate .mb-3,
.modal.ace-allocate-modal .mb-3,
.modal-dialog.assign .mb-3 {
  margin-bottom: 1.1rem !important;
}

#mulopeallocate .modal-footer,
.modal.ace-allocate-modal .modal-footer,
.modal-dialog.assign .modal-footer,
#assignModal .modal-footer,
#allocateModal .modal-footer,
.modal-allocate .modal-footer,
.modal.show .modal-dialog.assign .modal-footer {
  border-top: 0 !important;
  padding: 8px 24px 22px !important;
  background: #ffffff !important;
  gap: 10px;
  justify-content: flex-end !important;
}

#mulopeallocate .modal-footer .btn-secondary,
.modal.ace-allocate-modal .modal-footer .btn-secondary,
.modal-dialog.assign .modal-footer .btn-secondary,
#assignModal .modal-footer .btn-secondary,
#allocateModal .modal-footer .btn-secondary {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #475569 !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
  min-width: 100px;
}

#mulopeallocate .modal-footer .btn-primary,
.modal.ace-allocate-modal .modal-footer .btn-primary,
.modal-dialog.assign .modal-footer .btn-primary,
#assignModal .modal-footer .btn-primary,
#allocateModal .modal-footer .btn-primary,
#mulopeallocate #msavealo,
.modal-dialog.assign #msavealo {
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  padding: 10px 22px !important;
  color: #fff !important;
  min-width: 120px;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.28) !important;
}

#mulopeallocate .modal-footer .btn-primary:hover,
#mulopeallocate #msavealo:hover,
.modal-dialog.assign .modal-footer .btn-primary:hover {
  filter: brightness(1.05);
  color: #fff !important;
}

/* Force light color-scheme so dark theme doesn't paint modal body dark */
#mulopeallocate,
.modal.ace-allocate-modal,
.modal-dialog.assign,
#assignModal,
#allocateModal,
.modal-allocate {
  color-scheme: light;
}

/* =========================================================
   View States — global pill + list (all tables)
   Usage: <a class="btn-view-states" data-states="State1||State2">View States (N)</a>
   Modal: #viewStatesModal with #statesList
   ========================================================= */
.btn-view-states {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #6d28d9 !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  text-decoration: none !important;
  background: #f3e8ff !important;
  border-radius: 999px !important;
  padding: 4px 12px !important;
  white-space: nowrap !important;
  border: none !important;
  cursor: pointer !important;
}
.btn-view-states:hover {
  background: #ede9fe !important;
  color: #5b21b6 !important;
}
.ace-states-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  max-height: 50vh;
  overflow: auto;
}
.ace-states-list li {
  padding: 10px 14px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: #1e1b4b !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  background: transparent !important;
}
.ace-states-list li:last-child {
  border-bottom: 0 !important;
}
.ace-states-list li::before {
  content: "•";
  color: #7c3aed;
  font-weight: 700;
  margin-right: 8px;
}

/* #opeallocate same as multi-allocate modals */
#opeallocate .modal-dialog,
#opeallocate.modal .modal-dialog {
  max-width: 440px;
}
#opeallocate .modal-content {
  border: 0 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 24px 64px rgba(30, 27, 75, 0.22) !important;
  overflow: hidden;
  color: #334155 !important;
}
#opeallocate .modal-header {
  border-bottom: 0 !important;
  padding: 22px 24px 8px !important;
  background: #ffffff !important;
}
#opeallocate .modal-title {
  font-weight: 700 !important;
  color: #1e1b4b !important;
  font-size: 1.15rem !important;
  text-align: left !important;
}
#opeallocate .modal-header .btn-close {
  background-color: #f1f5f9 !important;
  border-radius: 50% !important;
  opacity: 1 !important;
  width: 32px;
  height: 32px;
  padding: 0;
  background-size: 12px;
}
#opeallocate .modal-body {
  padding: 12px 24px 8px !important;
  background: #ffffff !important;
  color: #334155 !important;
}
#opeallocate .form-label {
  font-weight: 600 !important;
  color: #64748b !important;
  font-size: 0.8rem !important;
  margin-bottom: 8px !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
#opeallocate .form-control,
#opeallocate select.form-control,
#opeallocate select {
  border-radius: 12px !important;
  border: 1.5px solid #e8e0f5 !important;
  background: #faf8ff !important;
  height: 48px !important;
  color: #1e1b4b !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  padding: 0 14px !important;
  box-shadow: none !important;
}
#opeallocate .form-control:focus,
#opeallocate select:focus {
  border-color: #7c3aed !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12) !important;
}
#opeallocate .modal-footer {
  border-top: 0 !important;
  padding: 8px 24px 22px !important;
  background: #ffffff !important;
  gap: 10px;
  justify-content: flex-end !important;
}
#opeallocate .modal-footer .btn-secondary {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #475569 !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
  min-width: 100px;
}
#opeallocate .modal-footer .btn-primary,
#opeallocate #savealo {
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  padding: 10px 22px !important;
  color: #fff !important;
  min-width: 120px;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.28) !important;
}
#opeallocate {
  color-scheme: light;
}

/* Education/vendor/OE/QC legacy table wrappers */
body .client-table-responsive{width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch;border:0!important;box-shadow:none!important}
body .client-table-responsive table{min-width:980px}
body .client-table-responsive::-webkit-scrollbar{height:8px}
body .client-table-responsive::-webkit-scrollbar-track{background:#f5f3ff;border-radius:10px}
body .client-table-responsive::-webkit-scrollbar-thumb{background:#c4b5fd;border-radius:10px}
@media(max-width:767.98px){body .page-content .card .card-body{padding:12px!important}body .client-table-responsive table{min-width:900px}}

/* Prevent wide education/OE/QC tables from being clipped inside cards. */
body .page-content .card:has(table) .card-body {
  overflow-x: auto !important;
  overflow-y: visible !important;
}
