/* NXT Platform — app.css  (theme-variable edition) */

/* ── Base layout variables ────────────────────────────────────── */
:root {
  --sidebar-w:      220px;
  --topbar-h:       52px;
  --border:         rgba(0,0,0,0.08);

  /* Defaults (overridden by header theme injection) */
  --sb-bg:      #1a2744;
  --sb-mid:     #1e3060;
  --accent:     #F5B731;
  --accent-dk:  #c9920a;
  --accent-btn: #1a0a00;
  --accent-rgb: 245,183,49;
  --page-bg:    #f0f3f8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  background: var(--page-bg);
  color: #2d3748;
  transition: background 0.3s;
}

/* ── Layout ───────────────────────────────────────────────────── */
.nxt-wrap { display: flex; min-height: 100vh; }
.nxt-main { flex: 1; display: flex; flex-direction: column; min-width: 0;
            margin-left: var(--sidebar-w); transition: margin 0.25s; }
.nxt-main.collapsed { margin-left: 0; }

/* ── Sidebar ──────────────────────────────────────────────────── */
.nxt-sidebar {
  width: var(--sidebar-w); position: fixed; top: 0; left: 0;
  height: 100vh; background: var(--sb-bg);
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
  transition: transform 0.25s, background 0.3s; z-index: 200;
}
.nxt-sidebar.hidden { transform: translateX(-100%); }

.sb-brand { padding: 18px 16px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sb-brand-title { font-size: 16px; font-weight: 600; color: #fff; letter-spacing: 0.01em; }
.sb-brand-sub   { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; }

.sb-company { margin: 10px 10px 4px; padding: 10px 12px;
              background: rgba(255,255,255,0.06); border-radius: 8px;
              border: 1px solid rgba(255,255,255,0.08); }
.sb-company-label { font-size: 10px; color: rgba(255,255,255,0.35);
                    text-transform: uppercase; letter-spacing: 0.06em; }
.sb-company-name  { font-size: 12px; color: #e0eaf0; font-weight: 500; margin-top: 2px; }

.sb-section { font-size: 10px; color: rgba(255,255,255,0.3); text-transform: uppercase;
              letter-spacing: 0.07em; padding: 14px 16px 4px; }

.sb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; cursor: pointer; color: rgba(255,255,255,0.55);
  border-left: 2px solid transparent; text-decoration: none;
  font-size: 13px; transition: all 0.15s;
}
.sb-item:hover { color: #fff; background: rgba(255,255,255,0.05); text-decoration: none; }
.sb-item.active {
  color: #fff;
  background: rgba(var(--accent-rgb),0.12);
  border-left-color: var(--accent);
}
.sb-item .fa    { width: 16px; text-align: center; font-size: 13px; opacity: 0.7; flex-shrink: 0; }
.sb-item.active .fa { opacity: 1; }
.sb-badge {
  margin-left: auto; background: var(--accent); color: var(--accent-btn);
  font-size: 10px; padding: 1px 7px; border-radius: 10px;
}

.sb-footer {
  margin-top: auto; padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 8px;
}
.sb-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--accent-btn);
  font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sb-user-info   { min-width: 0; flex: 1; }
.sb-user-name   { font-size: 12px; color: #e0eaf0; font-weight: 500;
                  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user-role   { font-size: 10px; color: rgba(255,255,255,0.3); }
.sb-logout      { color: rgba(255,255,255,0.35); font-size: 14px; flex-shrink: 0; }
.sb-logout:hover { color: #e05a5a; }

/* ── Topbar ───────────────────────────────────────────────────── */
.nxt-topbar {
  height: var(--topbar-h); background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 20px;
  position: sticky; top: 0; z-index: 100;
}
.nxt-topbar-left  { display: flex; align-items: center; gap: 12px; flex: 1; }
.nxt-topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-title   { font-size: 15px; font-weight: 500; color: #1a202c; }
.sidebar-toggle { background: none; border: none; cursor: pointer; color: #666;
                  font-size: 18px; line-height: 1; padding: 4px; }
.topbar-cmp     { font-size: 12px; color: #aaa; }
.topbar-user    { font-size: 13px; color: #555; }
.topbar-logout  { font-size: 13px; color: #e05a5a; text-decoration: none; }
.topbar-logout:hover { text-decoration: underline; }

/* ── Theme switcher button ────────────────────────────────────── */
.theme-toggle-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--sb-bg); cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 14px; transition: all 0.15s; flex-shrink: 0;
  position: relative;
}
.theme-toggle-btn:hover { opacity: 0.85; }

/* Theme panel */
.theme-panel {
  position: absolute; top: calc(var(--topbar-h) + 6px); right: 20px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; z-index: 999; width: 260px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  display: none;
}
.theme-panel.open { display: block; }
.theme-panel-title { font-size: 12px; font-weight: 600; color: #1a202c;
                     margin-bottom: 12px; letter-spacing: 0.03em; }
.theme-swatches { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.theme-swatch {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-radius: 8px; border: 2px solid transparent; cursor: pointer;
  transition: all 0.15s; background: #f8fafc;
}
.theme-swatch:hover { border-color: #ccc; }
.theme-swatch.active { border-color: var(--accent); background: rgba(var(--accent-rgb),0.06); }
.swatch-dots { display: flex; gap: 3px; }
.swatch-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.swatch-name { font-size: 11px; color: #444; font-weight: 500; line-height: 1.2; }

/* ── Content ──────────────────────────────────────────────────── */
.nxt-content { padding: 20px; flex: 1; }
.page-head { display: flex; align-items: center; justify-content: space-between;
             margin-bottom: 18px; }
.page-head h1 { font-size: 20px; font-weight: 500; color: #1a202c; }

/* ── Cards ────────────────────────────────────────────────────── */
.nxt-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px; margin-bottom: 16px; overflow: hidden;
}
.nxt-card-head {
  display: flex; align-items: center; padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}
.nxt-card-title { font-size: 14px; font-weight: 500; color: #1a202c; flex: 1; }
.nxt-card-body  { padding: 16px 18px; }

/* ── Stat cards ───────────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr));
             gap: 14px; margin-bottom: 18px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 10px;
             padding: 16px 18px; border-top: 3px solid var(--accent); }
.stat-label { font-size: 12px; color: #888; margin-bottom: 4px; }
.stat-val   { font-size: 26px; font-weight: 500; color: #1a202c; line-height: 1.1; }
.stat-sub   { font-size: 11px; color: #aaa; margin-top: 4px; }

/* ── Tables ───────────────────────────────────────────────────── */
.table { font-size: 13px; }
.table th { font-size: 11px; font-weight: 600; color: #888;
            text-transform: uppercase; letter-spacing: 0.05em; background: #f8fafc; }
.table td { vertical-align: middle; }
.table thead tr { border-top: 2px solid var(--accent); }

/* ── Badges ───────────────────────────────────────────────────── */

/* ── Buttons ──────────────────────────────────────────────────── */
.btn-accent { background: var(--accent); color: var(--accent-btn); border: none; }
.btn-accent:hover { background: var(--accent-dk); color: var(--accent-btn); }

/* ── Forms ────────────────────────────────────────────────────── */
.form-label { font-size: 12px; font-weight: 500; color: #555; margin-bottom: 4px; }
.form-control, .form-select { font-size: 13px; border-color: #ddd; }
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.18rem rgba(var(--accent-rgb),0.2);
}

/* ── Permission toggles ───────────────────────────────────────── */
.perm-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.perm-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px;
             border: 1px solid var(--border); border-radius: 8px; background: #f8fafc; }
.perm-label { font-size: 13px; color: #333; flex: 1; }

/* ── Login page ───────────────────────────────────────────────── */
.login-page {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; background: var(--page-bg);
}
.login-page::before {
  content: ''; position: fixed; top: 0; left: 0; bottom: 0; width: 380px;
  background: var(--sb-bg);
}
.login-box {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 36px 32px; width: 100%; max-width: 380px; position: relative; z-index: 1;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.login-logo {
  width: 44px; height: 44px; border-radius: 10px; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: var(--accent-btn); margin-bottom: 16px;
}
.login-brand { font-size: 22px; font-weight: 600; color: #1a202c; margin-bottom: 2px; }
.login-sub   { font-size: 13px; color: #888; margin-bottom: 24px; }

/* ── Alerts ───────────────────────────────────────────────────── */
.nxt-alert { padding: 10px 14px; border-radius: 8px; font-size: 13px;
             margin-bottom: 14px; border: 1px solid transparent; }
.nxt-alert-success { background: #E1F5EE; color: #085041; border-color: #9FE1CB; }
.nxt-alert-danger  { background: #FCEBEB; color: #791F1F; border-color: #F7C1C1; }
.nxt-alert-info    { background: #E6F1FB; color: #0C447C; border-color: #B5D4F4; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nxt-sidebar { transform: translateX(-100%); }
  .nxt-sidebar.open { transform: none; }
  .nxt-main { margin-left: 0; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .theme-panel { right: 8px; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   SELF-CONTAINED BUTTON STYLES
   (Bootstrap CDN fallback — these work even without Bootstrap)
   ═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; font-size: 13px; font-weight: 500;
  border-radius: 7px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: all 0.15s; line-height: 1.4; vertical-align: middle;
  background: transparent; color: #374151;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }

.btn-sm  { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.btn-lg  { padding: 9px 20px; font-size: 15px; }

.btn-primary        { background: #3B82F6; border-color: #3B82F6; color: #fff; }
.btn-primary:hover  { background: #2563EB; border-color: #2563EB; color: #fff; }

.btn-success        { background: #10B981; border-color: #10B981; color: #fff; }
.btn-success:hover  { background: #059669; border-color: #059669; color: #fff; }

.btn-danger         { background: #EF4444; border-color: #EF4444; color: #fff; }
.btn-danger:hover   { background: #DC2626; border-color: #DC2626; color: #fff; }

.btn-warning        { background: #F59E0B; border-color: #F59E0B; color: #1a0a00; }
.btn-warning:hover  { background: #D97706; border-color: #D97706; color: #1a0a00; }

.btn-secondary        { background: #6B7280; border-color: #6B7280; color: #fff; }
.btn-secondary:hover  { background: #4B5563; border-color: #4B5563; color: #fff; }

.btn-outline-primary       { border-color: #3B82F6; color: #3B82F6; }
.btn-outline-primary:hover { background: #EFF6FF; color: #1D4ED8; }

.btn-outline-secondary       { border-color: #9CA3AF; color: #374151; }
.btn-outline-secondary:hover { background: #F9FAFB; border-color: #6B7280; color: #111827; }

.btn-outline-danger       { border-color: #FCA5A5; color: #DC2626; }
.btn-outline-danger:hover { background: #FEF2F2; border-color: #EF4444; color: #B91C1C; }

.btn-outline-success       { border-color: #6EE7B7; color: #059669; }
.btn-outline-success:hover { background: #ECFDF5; border-color: #10B981; color: #047857; }

.btn-accent        { background: var(--accent); border-color: var(--accent); color: var(--accent-btn); }
.btn-accent:hover  { background: var(--accent-dk); border-color: var(--accent-dk); color: var(--accent-btn); }

.btn-link { border-color: transparent; color: var(--accent); padding-left: 0; padding-right: 0; }
.btn-link:hover { text-decoration: underline; color: var(--accent-dk); }

/* Dropdown toggle arrow */
.dropdown-toggle::after {
  content: ''; display: inline-block; margin-left: 5px;
  width: 0; height: 0;
  border-top: 4px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════════
   BADGE STYLES
   ═══════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 9px; font-size: 11px; font-weight: 600;
  border-radius: 20px; line-height: 1.3; white-space: nowrap;
  vertical-align: middle; letter-spacing: 0.02em;
  --bs-badge-color: inherit;   /* override Bootstrap white default */
}

/* Semantic badges */

/* Bootstrap-compat status badges */
.bg-success { background: #DCFCE7 !important; color: #15803D !important; }
.bg-danger  { background: #FEE2E2 !important; color: #B91C1C !important; }
.bg-warning { background: #FEF9C3 !important; color: #A16207 !important; }
.bg-info    { background: #DBEAFE !important; color: #1D4ED8 !important; }
.bg-secondary { background: #F3F4F6 !important; color: #4B5563 !important; }

.text-bg-success { background: #DCFCE7; color: #15803D; }
.text-bg-danger  { background: #FEE2E2; color: #B91C1C; }

/* ═══════════════════════════════════════════════════════════════
   DROPDOWN MENU
   ═══════════════════════════════════════════════════════════════ */
.dropdown { position: relative; display: inline-block; }

.dropdown-menu {
  display: none; position: absolute; right: 0; top: 100%;
  background: #fff; border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px; padding: 6px; min-width: 170px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 9999;
  margin-top: 4px;
}
.dropdown-menu.show { display: block; }

.dropdown-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px; font-size: 13px; color: #374151;
  border-radius: 7px; cursor: pointer; text-decoration: none;
  border: none; background: none; width: 100%; text-align: left;
  transition: background 0.12s;
}
.dropdown-item:hover { background: #F9FAFB; color: #111827; text-decoration: none; }
.dropdown-item.text-danger { color: #DC2626; }
.dropdown-item.text-danger:hover { background: #FEF2F2; }
.dropdown-item .fa { width: 16px; font-size: 13px; }

.dropdown-divider { border: none; border-top: 1px solid #F3F4F6; margin: 4px 0; }

/* ═══════════════════════════════════════════════════════════════
   PERMISSION TOGGLE SWITCH (no Bootstrap dependency)
   ═══════════════════════════════════════════════════════════════ */
.perm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid #E5E7EB;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}
.perm-item:hover { border-color: var(--accent); background: #FAFAFA; }
.perm-label { font-size: 13px; color: #374151; flex: 1; }

.perm-toggle {
  width: 40px; height: 22px;
  background: #D1D5DB;
  border-radius: 11px;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}
.perm-toggle.perm-on { background: var(--accent); }
.perm-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.perm-toggle.perm-on .perm-thumb { transform: translateX(18px); }


/* ═══════════════════════════════════════════════════════════════
   DATATABLE — Bootstrap 5 pagination structure
   dataTables.bootstrap5.js renders: .pagination > .page-item > .page-link
   ═══════════════════════════════════════════════════════════════ */

/* Wrapper layout */
.dataTables_wrapper {
  position: relative;
}
.dataTables_wrapper .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
}

/* Length + filter controls */
.dataTables_length label,
.dataTables_filter label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6B7280;
  margin: 0;
}
.dataTables_length select {
  padding: 5px 26px 5px 10px;
  font-size: 12px;
  border: 1.5px solid #E5E7EB;
  border-radius: 7px;
  background: #fff;
  color: #374151;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236B7280'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.dataTables_filter input {
  border: 1.5px solid #E5E7EB;
  border-radius: 7px;
  padding: 5px 10px 5px 30px;
  font-size: 12px;
  outline: none;
  color: #374151;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Ccircle cx='5.5' cy='5.5' r='4.5'/%3E%3Cpath d='M12 12l-3-3'/%3E%3C/svg%3E") no-repeat 8px center;
}
.dataTables_filter input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}
.dataTables_info {
  font-size: 12px;
  color: #9CA3AF;
  padding: 4px 0;
}

/* ── Bootstrap 5 Pagination ───────────────────────────────────── */
.dataTables_paginate .pagination {
  display: flex;
  align-items: center;
  gap: 3px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.dataTables_paginate .pagination .page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  background: #fff;
  border: 1.5px solid #E5E7EB;
  border-radius: 8px !important;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.12s;
  line-height: 1;
}
.dataTables_paginate .pagination .page-item .page-link:hover {
  background: #F3F4F6;
  border-color: #D1D5DB;
  color: #111827;
}
/* ★ Active page — accent color */
.dataTables_paginate .pagination .page-item.active .page-link {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--accent-btn) !important;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(var(--accent-rgb), 0.35);
}
/* Disabled (prev/next at start/end) */
.dataTables_paginate .pagination .page-item.disabled .page-link {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
  background: #F9FAFB;
  border-color: #E5E7EB;
  color: #9CA3AF;
}
/* ★ Prev / Next arrows — clear background */
.dataTables_paginate .pagination .page-item.previous .page-link,
.dataTables_paginate .pagination .page-item.next .page-link {
  font-size: 16px;
  font-weight: 400;
  color: #374151;
  background: #F9FAFB;
  border-color: #E5E7EB;
  padding: 0 12px;
}
.dataTables_paginate .pagination .page-item.previous .page-link:hover,
.dataTables_paginate .pagination .page-item.next .page-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-btn);
}

/* Sorting */
.dataTable thead th.sorting,
.dataTable thead th.sorting_asc,
.dataTable thead th.sorting_desc { cursor: pointer; user-select: none; }
.dataTable thead th.sorting_asc  { color: var(--accent); }
.dataTable thead th.sorting_desc { color: var(--accent); }

/* Table rows */
.nxt-datatable tbody tr:hover { background: #F9FAFB; }
.nxt-datatable thead tr { border-top: 2px solid var(--accent); }
.nxt-datatable th {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #6B7280 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #F8FAFC !important;
  white-space: nowrap;
  padding: 10px 12px !important;
}
.nxt-datatable td { padding: 10px 12px !important; vertical-align: middle; }

/* ═══════════════════════════════════════════════════════════════
   DROPDOWN — fixed positioning, no Bootstrap JS required
   ═══════════════════════════════════════════════════════════════ */
.dropdown { position: relative; display: inline-block; }

.dropdown-menu {
  display: none;
  position: fixed;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 5px;
  min-width: 180px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
  z-index: 99999;
}
.dropdown-menu.nxt-open { display: block; }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  font-size: 13px;
  color: #374151;
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: background 0.1s;
}
.dropdown-item:hover { background: #F3F4F6; color: #111; text-decoration: none; }
.dropdown-item.text-danger       { color: #DC2626; }
.dropdown-item.text-danger:hover { background: #FEF2F2; }
.dropdown-item .fa { width: 15px; font-size: 12px; }
.dropdown-divider  { border: none; border-top: 1px solid #F3F4F6; margin: 4px 2px; }

/* ── NXT DataTable layout wrappers ───────────────────────────── */
.nxt-dt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 10px;
  border-bottom: 1px solid #F3F4F6;
  gap: 12px;
}
.nxt-dt-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid #F3F4F6;
  flex-wrap: wrap;
  gap: 8px;
}
.nxt-dt-search { flex: 1; min-width: 180px; max-width: 280px; }
.nxt-dt-search .dataTables_filter { display: block; }
.nxt-dt-search .dataTables_filter label {
  display: flex;
  align-items: center;
  margin: 0;
  width: 100%;
}
.nxt-dt-search .dataTables_filter input {
  flex: 1;
  width: 100% !important;
}
.nxt-dt-length .dataTables_length label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  color: #6B7280;
  white-space: nowrap;
}
.nxt-dt-length .dataTables_length select {
  font-size: 12px;
  padding: 4px 24px 4px 8px;
  border: 1.5px solid #E5E7EB;
  border-radius: 7px;
}
.nxt-dt-info .dataTables_info {
  font-size: 12px;
  color: #9CA3AF;
  padding: 0;
}
.nxt-dt-pages .dataTables_paginate { display: flex; justify-content: flex-end; }

/* Remove Bootstrap row padding inside DT wrapper */
.dataTables_wrapper > .row { display: none !important; }
