/* ============================================================
   CRM MODULE THEMES — CLEAN MINIMAL TABLES
   Flat design, subtle separators, teal/green accent
   ============================================================ */


/* ─────────────────────────────────────────────────────────────
   MODULE COLOR SYSTEM — Refreshed with Teal/Green Palette
───────────────────────────────────────────────────────────── */

/* ══════════════════════════════════════════════════════════════
   📝 PURCHASE ORDER  —  Soft Teal
   ══════════════════════════════════════════════════════════════ */
.content-wrapper[data-module="po"] {
  --mod-hue: 174;
  --mod-primary: #14b8a6;
  --mod-primary-rgb: 20, 184, 166;
  --mod-accent: #0d9488;
  --mod-accent-rgb: 13, 148, 136;
  --mod-surface-tint: #f0fdfa;
  --mod-glow: rgba(20, 184, 166, 0.08);
  --mod-stripe: rgba(20, 184, 166, 0.02);
  --mod-badge-bg: rgba(20, 184, 166, 0.08);
  --mod-badge-color: #0d9488;
  --mod-header-grad: linear-gradient(135deg, #14b8a6 0%, #2dd4bf 100%);
  --mod-sidebar-dot: #14b8a6;
  --mod-label: "PURCHASE ORDER";
  --mod-emoji: "📝";
}

/* ══════════════════════════════════════════════════════════════
   🗂️ SALES ORDER  —  Fresh Green
   ══════════════════════════════════════════════════════════════ */
.content-wrapper[data-module="so"] {
  --mod-hue: 158;
  --mod-primary: #10b981;
  --mod-primary-rgb: 16, 185, 129;
  --mod-accent: #059669;
  --mod-accent-rgb: 5, 150, 105;
  --mod-surface-tint: #f0fdf4;
  --mod-glow: rgba(16, 185, 129, 0.08);
  --mod-stripe: rgba(16, 185, 129, 0.02);
  --mod-badge-bg: rgba(16, 185, 129, 0.08);
  --mod-badge-color: #059669;
  --mod-header-grad: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --mod-sidebar-dot: #10b981;
  --mod-label: "SALES ORDER";
  --mod-emoji: "🗂️";
}

/* ══════════════════════════════════════════════════════════════
   💳 INVOICE  —  Mint Green
   ══════════════════════════════════════════════════════════════ */
.content-wrapper[data-module="invoice"] {
  --mod-hue: 142;
  --mod-primary: #22c55e;
  --mod-primary-rgb: 34, 197, 94;
  --mod-accent: #16a34a;
  --mod-accent-rgb: 22, 163, 74;
  --mod-surface-tint: #f0fdf4;
  --mod-glow: rgba(34, 197, 94, 0.08);
  --mod-stripe: rgba(34, 197, 94, 0.02);
  --mod-badge-bg: rgba(34, 197, 94, 0.08);
  --mod-badge-color: #16a34a;
  --mod-header-grad: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
  --mod-sidebar-dot: #22c55e;
  --mod-label: "INVOICE";
  --mod-emoji: "💳";
}

/* ══════════════════════════════════════════════════════════════
   📦 INVOICE & SHIP  —  Sea Green
   ══════════════════════════════════════════════════════════════ */
.content-wrapper[data-module="invoice-ship"] {
  --mod-hue: 168;
  --mod-primary: #06b6d4;
  --mod-primary-rgb: 6, 182, 212;
  --mod-accent: #0891b2;
  --mod-accent-rgb: 8, 145, 178;
  --mod-surface-tint: #ecfeff;
  --mod-glow: rgba(6, 182, 212, 0.08);
  --mod-stripe: rgba(6, 182, 212, 0.02);
  --mod-badge-bg: rgba(6, 182, 212, 0.08);
  --mod-badge-color: #0891b2;
  --mod-header-grad: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
  --mod-sidebar-dot: #06b6d4;
  --mod-label: "INVOICE & SHIP";
  --mod-emoji: "📦";
}

/* ══════════════════════════════════════════════════════════════
   📅 BOOKING  —  Light Teal
   ══════════════════════════════════════════════════════════════ */
.content-wrapper[data-module="booking"] {
  --mod-hue: 180;
  --mod-primary: #2dd4bf;
  --mod-primary-rgb: 45, 212, 191;
  --mod-accent: #14b8a6;
  --mod-accent-rgb: 20, 184, 166;
  --mod-surface-tint: #f0fdfa;
  --mod-glow: rgba(45, 212, 191, 0.08);
  --mod-stripe: rgba(45, 212, 191, 0.02);
  --mod-badge-bg: rgba(45, 212, 191, 0.08);
  --mod-badge-color: #14b8a6;
  --mod-header-grad: linear-gradient(135deg, #2dd4bf 0%, #5eead4 100%);
  --mod-sidebar-dot: #2dd4bf;
  --mod-label: "BOOKING";
  --mod-emoji: "📅";
}

/* ══════════════════════════════════════════════════════════════
   🚢 CONTAINER LIST  —  Deep Teal
   ══════════════════════════════════════════════════════════════ */
.content-wrapper[data-module="container"] {
  --mod-hue: 190;
  --mod-primary: #0d9488;
  --mod-primary-rgb: 13, 148, 136;
  --mod-accent: #0f766e;
  --mod-accent-rgb: 15, 118, 110;
  --mod-surface-tint: #f0fdfa;
  --mod-glow: rgba(13, 148, 136, 0.08);
  --mod-stripe: rgba(13, 148, 136, 0.02);
  --mod-badge-bg: rgba(13, 148, 136, 0.08);
  --mod-badge-color: #0f766e;
  --mod-header-grad: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  --mod-sidebar-dot: #14b8a6;
  --mod-label: "CONTAINER LIST";
  --mod-emoji: "🚢";
}


/* ─────────────────────────────────────────────────────────────
   MINIMAL TABLE STYLES — Clean, Flat, Light
───────────────────────────────────────────────────────────── */

/* Base table reset */
[data-module] table.dataTable,
[data-module] .table {
  border: none;
  border-collapse: collapse;
  font-size: 0.813rem;
  font-weight: 400;
  color: #475569;
  background: transparent;
}

/* Clean header */
[data-module] table.dataTable thead th,
[data-module] .table thead th {
  background: transparent;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1e293b;
  padding: 10px 12px;
}

/* Body cells */
[data-module] table.dataTable tbody td,
[data-module] .table tbody td {
  border: none;
  border-bottom: 1px solid #f1f5f9;
  padding: 10px 12px;
  background: transparent;
  vertical-align: middle;
}

/* SaaS-style row hover - left border on all cells */
[data-module] table.dataTable tbody tr {
  position: relative;
}

[data-module] table.dataTable tbody tr:hover td,
[data-module] .table-hover tbody tr:hover td {
  box-shadow: inset 3px 0 0 var(--mod-primary);
}

/* Remove striped backgrounds (clean flat look) */
[data-module] .table-striped tbody tr:nth-of-type(odd) td {
  background: transparent;
}

/* DataTable wrapper cleanup */
[data-module] .dataTables_wrapper {
  padding: 0;
}

/* Search input minimal */
[data-module] .dataTables_wrapper .dataTables_filter input {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.813rem;
  transition: all 0.2s ease;
}

[data-module] .dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--mod-primary);
  box-shadow: 0 0 0 3px rgba(var(--mod-primary-rgb), 0.08);
  outline: none;
}

/* Pagination minimal */
[data-module] .dataTables_wrapper .dataTables_paginate .paginate_button {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.813rem;
  padding: 4px 10px;
  margin: 0 2px;
  border-radius: 4px;
}

[data-module] .dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--mod-primary) !important;
  color: white !important;
  border: none !important;
}

[data-module] .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: rgba(var(--mod-primary-rgb), 0.08) !important;
  color: var(--mod-primary) !important;
  border: none !important;
}

/* Info text minimal */
[data-module] .dataTables_wrapper .dataTables_info {
  font-size: 0.75rem;
  color: #94a3b8;
  padding: 8px 0;
}

/* Length selector minimal */
[data-module] .dataTables_wrapper .dataTables_length select {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.813rem;
}


/* ─────────────────────────────────────────────────────────────
   SHARED MODULE CHROME — Minimal Updates
───────────────────────────────────────────────────────────── */

/* Clean header */
[data-module] .content-header {
  background: var(--crm-surface);
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 24px;
  position: relative;
}

/* Remove gradient wash */
[data-module] .content-header::before {
  display: none;
}

[data-module] .content-header h1,
[data-module] .content-header h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #1e293b;
  letter-spacing: -0.01em;
}

/* Accent number clean */
[data-module] .content-header #po_no_display,
[data-module] .content-header #so_no_display,
[data-module] .content-header #invoice_no_display,
[data-module] .content-header #booking_no_display {
  color: var(--mod-primary);
  background: transparent;
  padding: 0;
  font-weight: 600;
}

/* Clean card style */
[data-module] .card.card-outline,
[data-module] .quotes-card {
  border: 1px solid #e2e8f0;
  border-top: 2px solid var(--mod-primary);
  box-shadow: none;
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

[data-module] .card.card-outline:hover,
[data-module] .quotes-card:hover {
  border-top-color: var(--mod-accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transform: none;
}

/* Card header minimal */
[data-module] .card-header {
  background: transparent;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  padding: 12px 16px;
}

[data-module] .card-header::after {
  display: none;
}

/* Form controls minimal */
[data-module] .form-control,
[data-module] .form-select {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.875rem;
  padding: 8px 12px;
  transition: all 0.2s ease;
}

[data-module] .form-control:focus,
[data-module] .form-select:focus {
  border-color: var(--mod-primary);
  box-shadow: 0 0 0 3px rgba(var(--mod-primary-rgb), 0.08);
  outline: none;
}

/* Buttons minimal */
[data-module] .btn-primary {
  background: var(--mod-primary);
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  transition: all 0.2s ease;
}

[data-module] .btn-primary:hover,
[data-module] .btn-primary:focus {
  background: var(--mod-accent);
  box-shadow: 0 2px 8px rgba(var(--mod-primary-rgb), 0.2);
  transform: translateY(-1px);
}

[data-module] .btn-outline-primary {
  color: var(--mod-primary);
  border: 1px solid var(--mod-primary);
  background: transparent;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
}

[data-module] .btn-outline-primary:hover {
  background: rgba(var(--mod-primary-rgb), 0.08);
  color: var(--mod-primary);
  border-color: var(--mod-primary);
}

/* Badges minimal */
[data-module] .crm-badge,
[data-module] .badge {
  font-size: 0.688rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  border: none;
  letter-spacing: 0.02em;
}

[data-module] .crm-badge.s-open,
[data-module] .badge-open {
  background: rgba(var(--mod-primary-rgb), 0.1);
  color: var(--mod-primary);
}

/* KPI cards minimal */
[data-module] .crm-kpi-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  background: white;
  transition: all 0.2s ease;
}

[data-module] .crm-kpi-card:hover {
  border-color: var(--mod-primary);
  box-shadow: 0 1px 3px rgba(var(--mod-primary-rgb), 0.06);
  transform: translateY(-1px);
}

[data-module] .crm-kpi-icon {
  background: rgba(var(--mod-primary-rgb), 0.1);
  color: var(--mod-primary);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Breadcrumb minimal */
[data-module] .breadcrumb-item a {
  color: var(--mod-primary);
  text-decoration: none;
  font-size: 0.813rem;
}

/* Action buttons in tables */
[data-module] .dt-action-btn {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  background: white;
  color: #64748b;
  transition: all 0.15s ease;
}

[data-module] .dt-action-btn:hover {
  border-color: var(--mod-primary);
  color: var(--mod-primary);
  background: rgba(var(--mod-primary-rgb), 0.04);
}

/* Remove page identity stripe for clean look */
.content-wrapper[data-module]::before {
  display: none;
}

/* Sidebar minimal active state */
body:has(.content-wrapper[data-module="po"]) .nav-treeview .nav-link[href*="LTE_CRM_PO"],
body:has(.content-wrapper[data-module="so"]) .nav-treeview .nav-link[href*="LTE_CRM_SO"],
body:has(.content-wrapper[data-module="invoice"]) .nav-treeview .nav-link[href*="LTE_CRM_INVOICE.php"],
body:has(.content-wrapper[data-module="invoice-ship"]) .nav-treeview .nav-link[href*="LTE_CRM_INVOICE_SHIP"],
body:has(.content-wrapper[data-module="booking"]) .nav-treeview .nav-link[href*="LTE_CRM_BOOKING"],
body:has(.content-wrapper[data-module="container"]) .nav-treeview .nav-link[href*="LTE_CRM_CONTAINER"] {
  background: rgba(var(--mod-primary-rgb), 0.08);
  color: var(--mod-primary) !important;
  border-left: 2px solid var(--mod-primary);
  border-radius: 0 4px 4px 0;
  font-weight: 600;
}

/* Modal minimal */
[data-module] .modal-content {
  border: 1px solid #e2e8f0;
  border-top: 2px solid var(--mod-primary);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

[data-module] .modal-header {
  border-bottom: 1px solid #f1f5f9;
  padding: 16px 20px;
}

[data-module] .modal-header .modal-title {
  color: var(--mod-primary);
  font-size: 1rem;
  font-weight: 600;
}

/* Alert minimal */
[data-module] .alert-primary {
  background: rgba(var(--mod-primary-rgb), 0.06);
  border: 1px solid rgba(var(--mod-primary-rgb), 0.15);
  border-left: 3px solid var(--mod-primary);
  color: #334155;
  border-radius: 6px;
  font-size: 0.875rem;
}

/* Filter card minimal */
[data-module] .y5-filter-card {
  border: 1px solid #e2e8f0;
  border-left: 2px solid var(--mod-primary);
  border-radius: 6px;
}

/* ─────────────────────────────────────────────────────────────
   Y5 FILTER TOGGLE BUTTON — SaaS Grade
───────────────────────────────────────────────────────────── */

/* Filter card left-accent already set above; refine further */
[data-module] .y5-filter-card {
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

[data-module] .y5-filter-card:has(#poFilterCollapse.show),
[data-module] .y5-filter-card:has(#soFilterCollapse.show),
[data-module] .y5-filter-card:has([id$="FilterCollapse"].show) {
  box-shadow: 0 2px 12px rgba(var(--mod-primary-rgb), 0.08);
}

/* Toggle button — pill chip design */
[data-module] .y5-filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 12px;
  border-radius: 20px;
  border: 1.5px solid rgba(var(--mod-primary-rgb), 0.35);
  background: rgba(var(--mod-primary-rgb), 0.04);
  color: var(--mod-primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
  white-space: nowrap;
  user-select: none;
}

[data-module] .y5-filter-toggle-btn:hover {
  background: rgba(var(--mod-primary-rgb), 0.10);
  border-color: var(--mod-primary);
  box-shadow: 0 0 0 3px rgba(var(--mod-primary-rgb), 0.08);
}

/* Active (open) state */
[data-module] .y5-filter-toggle-btn:not(.collapsed) {
  background: var(--mod-primary);
  border-color: var(--mod-primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(var(--mod-primary-rgb), 0.30);
}

/* Icon chip inside button */
[data-module] .y5-ftb-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 28px;
  height: 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(var(--mod-primary-rgb), 0.20);
  transition: background 0.18s ease, border-color 0.18s ease;
}

[data-module] .y5-filter-toggle-btn:not(.collapsed) .y5-ftb-chip {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.25);
}

[data-module] .y5-ftb-label {
  line-height: 1;
}

[data-module] .y5-ftb-icon {
  font-size: 0.68rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

[data-module] .y5-ftb-chevron {
  font-size: 0.58rem;
  line-height: 1;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Chevron rotates 180° when open */
[data-module] .y5-filter-toggle-btn:not(.collapsed) .y5-ftb-chevron {
  transform: rotate(180deg);
}

/* Sliders icon subtle tilt when open */
[data-module] .y5-filter-toggle-btn:not(.collapsed) .y5-ftb-icon {
  transform: rotate(-15deg);
}

/* Active filter count badge */
/* Active filter badge — human readable */
[data-module] .y5-active-filter-badge {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 6px;
  border-radius: 20px;
  background: rgba(var(--mod-primary-rgb), 0.10);
  border: 1px solid rgba(var(--mod-primary-rgb), 0.25);
  animation: y5-badge-pop 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Live pulse dot */
[data-module] .y5-afb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mod-primary);
  flex-shrink: 0;
  animation: y5-dot-pulse 2s ease-in-out infinite;
}

@keyframes y5-dot-pulse {
  0%, 100% { opacity: 1;   transform: scale(1);    box-shadow: 0 0 0 0   rgba(var(--mod-primary-rgb), 0.4); }
  50%       { opacity: 0.8; transform: scale(1.15); box-shadow: 0 0 0 4px rgba(var(--mod-primary-rgb), 0);   }
}

/* Label text */
[data-module] .y5-afb-text {
  font-size: 0.70rem;
  font-weight: 600;
  color: var(--mod-primary);
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

@keyframes y5-badge-pop {
  from { transform: scale(0.75); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* Dark mode */
body.dark-mode [data-module] .y5-active-filter-badge {
  background: rgba(var(--mod-primary-rgb), 0.15);
  border-color: rgba(var(--mod-primary-rgb), 0.35);
}

/* Collapse panel — animated entry line */
[data-module] .y5-filter-card #poFilterCollapse.collapsing,
[data-module] .y5-filter-card [id$="FilterCollapse"].collapsing {
  transition: height 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-module] .y5-filter-card .card-body {
  border-top: 1px dashed rgba(var(--mod-primary-rgb), 0.18);
  background: rgba(var(--mod-primary-rgb), 0.012);
  animation: y5-filter-fade-in 0.2s ease;
}

@keyframes y5-filter-fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dark mode adjustments */
body.dark-mode [data-module] .y5-filter-toggle-btn {
  border-color: rgba(var(--mod-primary-rgb), 0.4);
  background: rgba(var(--mod-primary-rgb), 0.08);
  color: var(--mod-primary);
}

body.dark-mode [data-module] .y5-filter-toggle-btn:hover {
  background: rgba(var(--mod-primary-rgb), 0.15);
  box-shadow: 0 0 0 3px rgba(var(--mod-primary-rgb), 0.12);
}

body.dark-mode [data-module] .y5-filter-toggle-btn:not(.collapsed) {
  background: var(--mod-primary);
  color: #fff;
}

body.dark-mode [data-module] .y5-filter-card .card-body {
  background: rgba(var(--mod-primary-rgb), 0.04);
  border-top-color: rgba(var(--mod-primary-rgb), 0.25);
}

/* Section titles minimal */
[data-module] .crm-section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.938rem;
  color: #334155;
  letter-spacing: -0.01em;
}

/* Grand total minimal */
[data-module] .crm-grand-total td {
  color: var(--mod-primary);
  background: rgba(var(--mod-primary-rgb), 0.04);
  font-weight: 600;
  border-top: 2px solid var(--mod-primary);
  border-bottom: 2px solid var(--mod-primary);
}


/* ─────────────────────────────────────────────────────────────
   MODULE-SPECIFIC MINIMAL OVERRIDES
───────────────────────────────────────────────────────────── */

/* PO */
.content-wrapper[data-module="po"] .content-wrapper {
  background: #fafafa;
}

/* SO */
.content-wrapper[data-module="so"] .content-wrapper {
  background: #fafafa;
}

/* Invoice */
.content-wrapper[data-module="invoice"] .content-wrapper {
  background: #fafafa;
}

/* Invoice & Ship */
.content-wrapper[data-module="invoice-ship"] .content-wrapper {
  background: #fafafa;
}

/* Booking */
.content-wrapper[data-module="booking"] .content-wrapper {
  background: #fafafa;
}

/* Container */
.content-wrapper[data-module="container"] .content-wrapper {
  background: #fafafa;
}


/* ─────────────────────────────────────────────────────────────
   DARK MODE — Minimal Adjustments
───────────────────────────────────────────────────────────── */
body.dark-mode .content-wrapper[data-module] {
  background: #0f172a;
}

/* Dark mode header fix */
body.dark-mode [data-module] .content-header {
  background: #1e293b;
  border-bottom-color: #334155;
}

body.dark-mode [data-module] .content-header h1,
body.dark-mode [data-module] .content-header h3 {
  color: #f1f5f9;
}

/* Dark mode table styling */
body.dark-mode [data-module] table.dataTable,
body.dark-mode [data-module] .table {
  color: #cbd5e1;
}

body.dark-mode [data-module] table.dataTable thead th,
body.dark-mode [data-module] .table thead th {
  background: #1e293b;
  border-bottom-color: #334155;
  color: #e2e8f0;
  font-weight: 700;
}

body.dark-mode [data-module] table.dataTable tbody td,
body.dark-mode [data-module] .table tbody td {
  border-bottom-color: #1e293b;
  color: #cbd5e1;
  background: transparent;
}

body.dark-mode [data-module] table.dataTable tbody tr:hover td,
body.dark-mode [data-module] .table-hover tbody tr:hover td {
  box-shadow: inset 3px 0 0 var(--mod-primary);
}

body.dark-mode [data-module] .card.card-outline {
  border-color: #334155;
  background: #1e293b;
}

body.dark-mode [data-module] .card-header {
  background: transparent;
  border-bottom-color: #334155;
  color: #e2e8f0;
}

body.dark-mode [data-module] .form-control,
body.dark-mode [data-module] .form-select {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

body.dark-mode [data-module] .form-control:focus,
body.dark-mode [data-module] .form-select:focus {
  border-color: var(--mod-primary);
  background: #1e293b;
}


/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {

  [data-module] table.dataTable,
  [data-module] .table {
    font-size: 0.75rem;
  }

  [data-module] table.dataTable thead th,
  [data-module] .table thead th {
    font-size: 0.688rem;
    padding: 8px 10px;
  }

  [data-module] table.dataTable tbody td,
  [data-module] .table tbody td {
    padding: 8px 10px;
  }
}


/* ─────────────────────────────────────────────────────────────
   PRINT — Clean output
───────────────────────────────────────────────────────────── */
@media print {

  [data-module] table.dataTable,
  [data-module] .table {
    font-size: 9pt;
  }

  [data-module] .card.card-outline {
    border: 1px solid #ccc;
    box-shadow: none;
  }
}

