@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&family=Roboto:wght@400;500;600;700&display=swap');

:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --brand: #111827;
  --accent: #0f172a;
  --border: #e5e7eb;
  --primary: #2563eb;
  --primary-2: #111827;
  --primary-soft: #eef2ff;
  --sidebar-text: #ffffff;
  --btn-bg-1: #111111;
  --btn-bg-2: #2b2b2b;
  --btn-text: #ffffff;
  --btn-border: #f5d90a;
  --input-border: rgba(37,99,235,0.25);
  --input-focus: #000000;
  --sidebar-scroll-track: rgba(17,24,39,0.08);
  --sidebar-scroll-thumb: rgba(37,99,235,0.45);
  --sidebar-scroll-thumb-hover: rgba(37,99,235,0.72);
  --sys-font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sys-font-size: 14px;
}

body {
  font-family: var(--sys-font-family), 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--sys-font-size, 14px);
}

/* Widget de Reloj en Vivo (Navbar) */
#navLiveClock {
  background-color: rgba(0, 0, 0, 0.04);
  color: var(--ink, #111827);
  border-color: rgba(0, 0, 0, 0.1) !important;
}
#navLiveClock #navClockTz {
  background-color: var(--primary, #2563eb) !important;
  color: #ffffff !important;
}
body.dark-mode #navLiveClock {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #f3f4f6 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}
body.dark-mode #navLiveClock #navClockTime {
  color: #ffffff !important;
}
body.dark-mode #navLiveClock #navClockDate {
  color: #cbd5e1 !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}
body.dark-mode #navLiveClock #navClockTz {
  background-color: rgba(37, 99, 235, 0.4) !important;
  color: #93c5fd !important;
  border: 1px solid rgba(147, 197, 253, 0.3);
}

/* Botones de Accesos Rápidos a Módulos en Navbar */
.nav-shortcuts-bar .btn {
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.82rem;
  padding: 0.3rem 0.65rem;
}
.nav-shortcuts-bar .btn:hover {
  transform: translateY(-1px);
}
body.dark-mode .nav-shortcuts-bar .btn-light {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
body.dark-mode .nav-shortcuts-bar .btn-light:hover {
  background-color: rgba(37, 99, 235, 0.25) !important;
  color: #ffffff !important;
  border-color: rgba(37, 99, 235, 0.5) !important;
}

body.bg-app {
  background: radial-gradient(1200px 600px at 10% -10%, #eaf0ff 0%, #f6f7fb 55%, #f6f7fb 100%);
  color: var(--ink);
}

.dark-mode {
  --bg: #0b1220;
  --card: #0f172a;
  --ink: #e5e7eb;
  --muted: #9ca3af;
  --border: #1f2937;
  --primary-soft: rgba(37,99,235,0.12);
  --input-border: rgba(37,99,235,0.45);
  --sidebar-scroll-track: rgba(148,163,184,0.14);
  --sidebar-scroll-thumb: rgba(96,165,250,0.5);
  --sidebar-scroll-thumb-hover: rgba(96,165,250,0.75);
}

body.dark-mode,
body.dark-mode.bg-light,
body.dark-mode.bg-white,
body.dark-mode.bg-light-subtle {
  background-color: #0b1220 !important;
  background: #0b1220 !important;
  color: var(--ink) !important;
}

body.dark-mode .bg-white,
body.dark-mode .bg-light,
body.dark-mode .bg-light-subtle,
body.dark-mode .navbar,
body.dark-mode .card,
body.dark-mode .card-glass {
  background-color: #0f172a !important;
  background: #0f172a !important;
  color: var(--ink) !important;
}

body.dark-mode .border-bottom,
body.dark-mode .border-top,
body.dark-mode .border-end,
body.dark-mode .border {
  border-color: var(--border) !important;
}

body.dark-mode .text-secondary,
body.dark-mode .text-muted {
  color: var(--muted) !important;
}

body.dark-mode .form-label,
body.dark-mode label,
body.dark-mode .card .text-secondary,
body.dark-mode .card .text-muted,
body.dark-mode .sidebar-footer,
body.dark-mode .sidebar-footer label {
  color: #cbd5f5 !important;
}

body.dark-mode .form-range {
  color: #e5e7eb;
}

body.dark-mode .sidebar {
  background: #0f172a;
  box-shadow: 0 14px 32px rgba(2,6,23,0.75);
}

body.dark-mode .sidebar .navlink {
  color: #e5e7eb;
}

body.dark-mode .sidebar .navlink:hover {
  background: rgba(37,99,235,0.12);
  border-color: rgba(37,99,235,0.35);
}

body.dark-mode .sidebar .navlink.active {
  color: #fff;
}

body.dark-mode .btn-outline-dark {
  color: #e5e7eb;
  border-color: #374151;
}

body.dark-mode .btn-outline-dark:hover {
  background: #111827;
  color: #fff;
}

body.dark-mode table,
body.dark-mode .table {
  --bs-table-bg: transparent;
  --bs-table-color: #e5e7eb;
  --bs-table-border-color: #1f2937;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
  --bs-table-hover-bg: rgba(37, 99, 235, 0.12);
  color: #e5e7eb;
  border-color: #1f2937;
}

body.dark-mode .table thead th {
  color: #e5e7eb;
  border-bottom-color: #374151;
}

body.dark-mode .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: var(--bs-table-striped-bg);
  color: var(--bs-table-color);
}

body.dark-mode .table-hover > tbody > tr:hover > * {
  --bs-table-accent-bg: var(--bs-table-hover-bg);
  color: var(--bs-table-color);
}

body.dark-mode .table > :not(caption) > * > * {
  background-color: var(--bs-table-bg);
  color: var(--bs-table-color);
  border-bottom-color: var(--bs-table-border-color);
}

body.dark-mode .dataTables_wrapper,
body.dark-mode .dataTables_info,
body.dark-mode .dataTables_length label,
body.dark-mode .dataTables_filter label {
  color: #e5e7eb !important;
}

body.dark-mode .dataTables_wrapper .dataTables_filter input,
body.dark-mode .dataTables_wrapper .dataTables_length select {
  background-color: #0b1220 !important;
  color: #e5e7eb !important;
  border: 1px solid #1f2937 !important;
}

body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button {
  color: #e5e7eb !important;
  background: transparent !important;
  border: 1px solid #1f2937 !important;
}

body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button.current,
body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: rgba(37,99,235,0.25) !important;
  border-color: rgba(37,99,235,0.6) !important;
  color: #ffffff !important;
}

body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  color: #6b7280 !important;
  border-color: #1f2937 !important;
}

body.dark-mode .modal-content {
  background-color: #0f172a;
  color: #e5e7eb;
  border: 1px solid #1f2937;
}

body.dark-mode .modal-header,
body.dark-mode .modal-footer {
  border-color: #1f2937;
}

body.dark-mode .modal-backdrop.show {
  background-color: rgba(2,6,23,0.85);
}

body.dark-mode .form-control,
body.dark-mode .form-select {
  background-color: #0b1220;
  color: #e5e7eb;
  border: 1px solid #1f2937;
}

body.dark-mode .form-control::placeholder {
  color: #9ca3af;
}
body.dark-mode .form-text {
  color: #94a3b8 !important;
}

.modal-dialog {
  max-width: 1100px;
}
.modal-content {
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.18);
}
.modal-header {
  padding: .75rem 1rem;
}
.modal-title {
  font-size: 1.05rem;
}
.modal-body {
  padding: 1rem;
}
.modal-footer {
  padding: .75rem 1rem;
}
.modal-body .row.g-3 {
  --bs-gutter-y: .75rem;
  --bs-gutter-x: .75rem;
}
.modal-body .form-label {
  margin-bottom: .25rem;
}
.form-compact .form-label {
  font-size: .82rem;
  letter-spacing: .2px;
}
.form-compact .form-control,
.form-compact .form-select {
  padding: .42rem .6rem;
}
.form-section-block {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(37,99,235,0.12);
  border-radius: 14px;
  padding: .75rem;
}
.form-section-block + .form-section-block {
  margin-top: .75rem;
}
.form-section-title {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .7rem;
  border-radius: 10px;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.18);
}
.form-section-subtitle {
  font-weight: 600;
  color: var(--ink);
  padding-bottom: .25rem;
  border-bottom: 1px dashed rgba(37,99,235,0.25);
}

.rh-calendar-wrap [data-cal-day] {
  transition: box-shadow .12s ease, border-color .12s ease, transform .08s ease;
}
.rh-calendar-wrap [data-cal-day]:hover {
  border-color: rgba(37,99,235,.5) !important;
  box-shadow: 0 3px 10px rgba(37,99,235,.16);
}
.rh-calendar-wrap [data-cal-day]:active {
  transform: translateY(1px);
}
body.dark-mode .form-section-block {
  background: rgba(2,6,23,0.5);
  border-color: #1f2937;
}
body.dark-mode .form-section-title {
  background: rgba(15,23,42,0.6);
  border-color: #1f2937;
  color: #e5e7eb;
}
body.dark-mode .form-section-subtitle {
  color: #e5e7eb;
  border-bottom-color: rgba(37,99,235,0.35);
}

.main-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#moduleTopNavSlot {
  overflow: visible !important;
}

#moduleTopNavSlot .op-topmenu {
  flex-wrap: nowrap;
}

#moduleTopNavSlot .dropdown-menu {
  z-index: 2000;
}

.card,
.card-glass {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(37,99,235,0.12);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(15,23,42,0.06);
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.card:hover,
.card-glass:hover {
  border-color: rgba(37,99,235,0.45);
  box-shadow: 0 14px 34px rgba(37,99,235,0.18);
  transform: translateY(-2px);
}

.sidebar {
  display: flex;
  flex-direction: column;
  width: 240px;
  flex: 0 0 240px;
  box-sizing: border-box;
  min-height: 100vh;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: hidden;
  transition: width .2s ease;
  box-shadow: 0 12px 28px rgba(15,23,42,0.12);
  border-right: 1px solid var(--border);
}

.sidebar .sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--sidebar-scroll-thumb) var(--sidebar-scroll-track);
}

.sidebar .sidebar-nav::-webkit-scrollbar {
  width: 10px;
}

.sidebar .sidebar-nav::-webkit-scrollbar-track {
  background: var(--sidebar-scroll-track);
  border-radius: 999px;
}

.sidebar .sidebar-nav::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--sidebar-scroll-thumb) 0%, var(--sidebar-scroll-thumb-hover) 100%);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.sidebar .sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--sidebar-scroll-thumb-hover) 0%, var(--primary) 100%);
}
.sidebar.collapsed {
  width: 72px;
  flex: 0 0 72px;
}
.sidebar .navlink {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .9rem;
  border-radius: 999px;
  color: #111827;
  text-decoration: none;
  margin: .2rem 0;
  border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  position: relative;
  overflow: hidden;
}
.sidebar .navgroup .navlink-toggle {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
}
.sidebar .navgroup-items {
  display: none;
  padding-left: .5rem;
  margin-top: .25rem;
}
.sidebar .navgroup.open .navgroup-items {
  display: block;
}
.sidebar .navlink.sublink {
  font-size: .92rem;
  padding-left: 1.1rem;
}
.sidebar .navchev {
  transition: transform .18s ease;
}
.sidebar .navgroup.open .navchev {
  transform: rotate(180deg);
}
.sidebar .navlink > * {
  position: relative;
  z-index: 1;
}
.sidebar .navicon {
  width: 18px;
  min-width: 18px;
  text-align: center;
  opacity: .85;
  color: inherit;
}
.sidebar .navlabel {
  display: inline;
  color: inherit;
}
.sidebar .sidebar-section {
  display: block;
}
.sidebar.collapsed .navlabel {
  display: none;
}
.sidebar.collapsed .sidebar-section,
.sidebar.collapsed .tenant-badge {
  display: none;
}
.sidebar.collapsed .navlink {
  justify-content: center;
  padding: .6rem 0;
}
.sidebar.collapsed .sidebar-footer .form-check {
  display: none;
}
.sidebar .sidebar-theme-icon {
  display: none;
}
.sidebar.collapsed .sidebar-theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sidebar .navlink.active {
  color: #fff;
  border-color: rgba(37,99,235,0.65);
  box-shadow: 0 10px 22px rgba(37,99,235,0.28);
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}

.sidebar .navlink.active .navicon,
.sidebar .navlink.active .navlabel {
  color: #fff !important;
}

.sidebar .navlink:hover {
  color: #fff;
}

.sidebar .navlink:hover .navicon,
.sidebar .navlink:hover .navlabel {
  color: #fff !important;
}
.sidebar .navlink::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--primary) 0%,
    var(--primary-2) 100%);
  opacity: 0;
  transition: opacity .18s ease;
  border-radius: 999px;
  z-index: 0;
}
.sidebar .navlink:hover::before,
.sidebar .navlink.active::before {
  opacity: 1;
}
.sidebar .navlink:hover {
  color: #fff;
  border-color: rgba(37,99,235,0.35);
  box-shadow: 0 10px 20px rgba(37,99,235,0.22);
  transform: translateX(2px);
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.form-control,
.form-select,
textarea.form-control {
  border-radius: .7rem;
  border: 1px solid var(--input-border);
  box-shadow: 0 3px 8px rgba(15,23,42,0.05);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  border-color: var(--input-focus) !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none;
}
 .form-control:focus-visible,
 .form-select:focus-visible,
 textarea.form-control:focus-visible {
  border-color: var(--input-focus) !important;
  box-shadow: none !important;
  outline: none !important;
 }

body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode textarea.form-control {
  border-color: var(--input-border);
  box-shadow: none;
}
body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus,
body.dark-mode textarea.form-control:focus {
  border-color: var(--input-focus) !important;
  box-shadow: none !important;
  outline: none !important;
}
.btn:focus,
.btn:focus-visible,
.btn:active {
  box-shadow: none !important;
}
.op-required {
  border-color: rgba(244, 63, 94, 0.55) !important;
}
body.dark-mode .op-required {
  border-color: rgba(244, 63, 94, 0.8) !important;
}

.preview-gradient {
  color: #fff;
  border: 1px solid rgba(37,99,235,0.35);
  box-shadow: 0 8px 18px rgba(37,99,235,0.25);
}

.btn,
.btn-dark,
.btn-primary,
.btn-outline-dark,
.btn-outline-secondary {
  border-radius: 999px !important;
}

.btn-dark,
.btn-primary,
.btn-outline-dark,
.btn-outline-secondary {
  background: linear-gradient(135deg,
    var(--btn-bg-1) 0%,
    var(--btn-bg-2) 100%) !important;
  color: var(--btn-text) !important;
  border: 1px solid var(--btn-border) !important;
  box-shadow: 0 10px 22px rgba(17,17,17,0.28);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn-dark:hover,
.btn-primary:hover,
.btn-outline-dark:hover,
.btn-outline-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(17,17,17,0.35);
  filter: brightness(1.05);
}

body.dark-mode .btn-dark,
body.dark-mode .btn-primary,
body.dark-mode .btn-outline-dark,
body.dark-mode .btn-outline-secondary {
  border-color: var(--btn-border) !important;
}

.swal2-styled.swal2-confirm,
.swal2-styled.swal2-cancel {
  background: linear-gradient(135deg, var(--btn-bg-1) 0%, var(--btn-bg-2) 100%) !important;
  color: var(--btn-text) !important;
  border: 1px solid var(--btn-border) !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 22px rgba(17,17,17,0.28);
}

.table thead th {
  font-weight: 600;
}

.rh-type-badge {
  font-weight: 600;
  border: 1px solid transparent;
}
.rh-type-permiso {
  background: rgba(245,158,11,.16);
  color: #92400e;
  border-color: rgba(245,158,11,.4);
}
.rh-type-vacaciones {
  background: rgba(59,130,246,.14);
  color: #1d4ed8;
  border-color: rgba(59,130,246,.35);
}
.rh-type-incapacidad {
  background: rgba(220,38,38,.14);
  color: #b91c1c;
  border-color: rgba(220,38,38,.35);
}
.rh-type-justificacion {
  background: rgba(14,165,233,.14);
  color: #0369a1;
  border-color: rgba(14,165,233,.35);
}

.dt-container .dt-search input,
.dt-container .dt-length select {
  border-radius: .5rem;
  border: 1px solid var(--border);
}

input.time-24::-webkit-datetime-edit-ampm-field {
  display: none;
}

@media (max-width: 991px) {
  body.sidebar-open {
    overflow: hidden;
  }
  .main-content {
    min-width: 0;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1065;
    height: 100dvh;
    width: min(88vw, 340px);
    flex: 0 0 min(88vw, 340px);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    transform: translateX(-104%);
    transition: transform .22s ease;
  }
  .sidebar .sidebar-nav {
    overflow-y: auto;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .sidebar .navlabel {
    display: inline !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: inherit !important;
  }
  .sidebar .sidebar-section,
  .sidebar .tenant-badge {
    display: block !important;
  }
  .sidebar .navlink {
    justify-content: flex-start !important;
    padding: .6rem .9rem !important;
  }
  .sidebar .sidebar-footer .form-check {
    display: block !important;
  }
  .sidebar .sidebar-theme-icon {
    display: none !important;
  }

  .modal {
    padding-right: 0 !important;
  }
  .modal .modal-dialog,
  .modal .modal-dialog.modal-lg,
  .modal .modal-dialog.modal-xl {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    min-height: 100dvh !important;
  }
  .modal .modal-content {
    border-radius: 0 !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
  }
  .modal .modal-header,
  .modal .modal-footer {
    flex: 0 0 auto;
    padding: .5rem .75rem;
  }
  .modal .modal-body {
    max-height: calc(100dvh - 128px) !important;
    overflow-y: auto !important;
    padding: .75rem;
  }
  .modal .modal-footer .btn {
    min-width: 110px;
  }

  #reclTopActions {
    width: 100%;
  }
  #reclTopActions .btn {
    flex: 1 1 0;
  }
  .recl-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  #vacantesTable,
  #candidatosTable {
    min-width: 980px;
  }
  #historialCandidatoTable,
  #historialVacanteTable {
    min-width: 720px;
  }
  .dataTables_wrapper .dataTables_length label,
  .dataTables_wrapper .dataTables_filter label {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
  }
  .dataTables_wrapper .dataTables_length select,
  .dataTables_wrapper .dataTables_filter input {
    width: 100%;
    margin-left: 0 !important;
  }
  .recl-modal-dialog .row > [class^="col-"],
  .recl-modal-dialog .row > [class*=" col-"] {
    width: 100%;
  }
  .recl-modal-dialog .select2-container {
    width: 100% !important;
  }
}

@media (max-width: 1200px) and (min-width: 992px) {
  .sidebar {
    width: 220px;
    flex: 0 0 220px;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   MEJORAS MODO OSCURO (CONTRASTE DE TEXTO)
   ───────────────────────────────────────────────────────────────────────────── */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode .h1,
body.dark-mode .h2,
body.dark-mode .h3,
body.dark-mode .h4,
body.dark-mode .h5,
body.dark-mode .h6,
body.dark-mode .fw-bold,
body.dark-mode .fw-semibold {
  color: #f8fafc !important;
}

body.dark-mode .border.rounded.p-2 .text-secondary,
body.dark-mode .border.rounded.p-2 .text-muted,
body.dark-mode .small.fw-semibold {
  color: #cbd5e1 !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   AUTOCOMPLETADO Y SUGERENCIAS CP GLOBAL
   ───────────────────────────────────────────────────────────────────────────── */
.cp-col-wrap {
  position: relative;
}
.cp-wrap {
  position: relative;
}
.cp-spinner {
  display: none; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border: 2px solid rgba(37,99,235,.3); border-top-color: var(--primary, #2563eb);
  border-radius: 50%; animation: spin .7s linear infinite; z-index: 3;
}
.cp-spinner.show { display: block; }

.cp-suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  background: var(--card, #fff);
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  z-index: 1000;
  display: none;
  margin-top: 5px;
}
body.dark-mode .cp-suggestions-dropdown {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}
.cp-suggestion-item {
  padding: .6rem .85rem;
  font-size: .8rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .15s, color .15s;
  color: var(--ink, #111);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
body.dark-mode .cp-suggestion-item {
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.cp-suggestion-item:last-child {
  border-bottom: none;
}
.cp-suggestion-item:hover,
.cp-suggestion-item.active {
  background: var(--primary, #2563eb) !important;
  color: #fff !important;
}
.cp-suggestion-item:hover .cp-item-sub,
.cp-suggestion-item.active .cp-item-sub {
  color: rgba(255, 255, 255, 0.8) !important;
}
.cp-item-zip {
  font-weight: 700;
}
.cp-item-sub {
  font-size: .72rem;
  color: var(--muted, #6b7280);
}

.cp-badge {
  display: none; align-items: center; gap: .35rem;
  font-size: .7rem; font-weight: 700; padding: .2rem .6rem;
  border-radius: 20px; margin-top: .4rem;
}
.cp-badge.ok  { display: flex; background: rgba(34,197,94,.12); color: #16a34a; }
.cp-badge.err { display: flex; background: rgba(239,68,68,.10); color: #dc2626; }
body.dark-mode .cp-badge.ok  { color: #4ade80; background: rgba(74,222,128,.1); }
body.dark-mode .cp-badge.err { color: #f87171; background: rgba(248,113,113,.1); }

/* Premium Table UI/UX Styles */
.table-premium th {
  font-weight: 700 !important;
  text-transform: uppercase;
  font-size: 0.72rem !important;
  letter-spacing: 0.8px;
  color: var(--muted) !important;
  padding: 12px 14px !important;
  border-bottom: 2px solid var(--border) !important;
}
.table-premium td {
  padding: 14px 14px !important;
  font-size: 0.84rem !important;
}
.table-premium tbody tr {
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.table-premium tbody tr:hover {
  background-color: rgba(37, 99, 235, 0.04) !important;
}
body.dark-mode .table-premium tbody tr:hover {
  background-color: rgba(37, 99, 235, 0.12) !important;
}

/* Zeba Table Style (Zebra Striped + Clean Borders) */
.table-zeba {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  border: 1px solid var(--border, #e5e7eb) !important;
}
.table-zeba th {
  background: var(--bg, #f8fafc) !important;
  color: var(--muted, #475569) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px !important;
  border-bottom: 2px solid var(--border, #e5e7eb) !important;
}
.table-zeba td {
  padding: 12px 16px !important;
  font-size: 0.85rem !important;
  border-bottom: 1px solid var(--border, #f1f5f9) !important;
  vertical-align: middle;
}
.table-zeba tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02) !important;
}
body.dark-mode .table-zeba tbody tr:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.03) !important;
}
.table-zeba tbody tr:hover {
  background-color: rgba(37, 99, 235, 0.06) !important;
}
body.dark-mode .table-zeba tbody tr:hover {
  background-color: rgba(37, 99, 235, 0.15) !important;
}

/* Collapsed Sidebar Footer Logout button */
.sidebar.collapsed .sidebar-footer .logout-btn {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: .65rem 0 !important;
}
.sidebar.collapsed .sidebar-footer .logout-btn .logout-text {
  display: none !important;
}
.sidebar.collapsed .sidebar-footer .logout-btn i {
  font-size: 1.1rem !important;
}

