/* ═══════════════════════════════════════════════════════════════════
   BizSys — Design System
   Brand: IM Investments · Palette anchored to --brand-800 #0f2044
   Font: 'DM Sans' (display) + system-ui (body fallback)
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&display=swap');

/* ── Design tokens ─────────────────────────────────────────────────── */
:root {
  --brand-900: #08152e;
  --brand-800: #0f2044;
  --brand-700: #163060;
  --brand-600: #1a3d7c;
  --brand-500: #1e54b7;
  --brand-400: #3b72d4;
  --brand-300: #7aa3e8;
  --brand-200: #b3ccf5;
  --brand-100: #dceafc;
  --brand-50:  #f0f5ff;

  --surface:    #ffffff;
  --surface-2:  #f8f9fc;
  --surface-3:  #f1f3f8;
  --surface-4:  #e8ecf5;
  --border:     #e2e6ef;
  --border-strong: #c8d0e0;

  --text-primary:   #0f1a2e;
  --text-secondary: #3d4d6b;
  --text-muted:     #8494b0;
  --text-disabled:  #b8c4d8;

  --success:    #059669;  --success-bg: #ecfdf5;
  --warning:    #d97706;  --warning-bg: #fffbeb;
  --danger:     #dc2626;  --danger-bg:  #fef2f2;
  --info:       #0891b2;  --info-bg:    #f0fdfe;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(15,32,68,.06), 0 1px 2px rgba(15,32,68,.04);
  --shadow-md: 0 4px 12px rgba(15,32,68,.08), 0 2px 4px rgba(15,32,68,.04);
  --shadow-lg: 0 12px 32px rgba(15,32,68,.12), 0 4px 8px rgba(15,32,68,.06);
  --shadow-xl: 0 24px 64px rgba(15,32,68,.16), 0 8px 16px rgba(15,32,68,.08);

  --t-fast: .1s ease;
  --t-base: .15s ease;
  --t-slow: .25s ease;
}

/* ── Reset + Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--surface-2);
  -webkit-font-smoothing: antialiased;
}

/* Wallpaper pages */
body.body-style {
  background-color: var(--brand-900);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100%;
}

/* Decorative circles */
body.body-style::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,84,183,.18) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  pointer-events: none;
}
body.body-style::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,84,183,.12) 0%, transparent 70%);
  bottom: -80px;
  right: -80px;
  pointer-events: none;
}

/* ── Typography ────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

/* ── Form controls ─────────────────────────────────────────────────── */
.form-control {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--surface);
  transition: border-color var(--t-base), box-shadow var(--t-base);
  font-family: 'DM Sans', sans-serif;
}
.form-control:focus {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(59,114,212,.12);
  outline: none;
}
.form-control::placeholder { color: var(--text-muted); }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--t-base);
  letter-spacing: .01em;
}
.btn-primary {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--brand-400);
  border-color: var(--brand-400);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(59,114,212,.25);
}
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: #fff;
}
.btn-primary:not(:disabled):not(.disabled).active:focus,
.btn-primary:not(:disabled):not(.disabled):active:focus,
.show > .btn-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 3px rgba(30,84,183,.35);
}
.btn-primary.disabled, .btn-primary:disabled {
  background: var(--brand-300);
  border-color: var(--brand-300);
  color: #fff;
}
.btn-secondary {
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
}
.btn-secondary:hover {
  border-color: var(--brand-400);
  color: var(--brand-500);
  background: var(--brand-50);
}
.btn-danger {
  background: var(--danger-bg);
  border: 1.5px solid #fecaca;
  color: var(--danger);
}
.btn-danger:hover { background: #fecaca; color: var(--danger); }
.btn-outline-light {
  border-color: rgba(255,255,255,.28);
  color: rgba(255,255,255,.82);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.5);
  color: #fff;
}
.btn-info {
  background: var(--info-bg);
  color: var(--info);
  border: 1.5px solid #a5f3fc;
}
.btn-info:hover { background: #a5f3fc; color: var(--info); }
.btn-options { color: rgba(255,255,255,.8); border: 1.5px solid rgba(255,255,255,.3); }
.btn-options:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ── Module button (home.php) ──────────────────────────────────────── */
.module-btn {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  color: #fff;
  font-size: 30px;
  background: rgba(15,32,68,.5);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--t-slow);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.module-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(59,114,212,.25) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--t-slow);
}
.module-btn:hover {
  background: rgba(30,84,183,.6);
  border-color: rgba(59,114,212,.45);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(30,84,183,.4);
  text-decoration: none;
}
.module-btn:hover::after { opacity: 1; }
.module-btn-label {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: rgba(255,255,255,.88);
  line-height: 1.3;
  z-index: 1;
}

/* ── Navbar ────────────────────────────────────────────────────────── */
#mainNav {
  background: var(--brand-900) !important;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
#mainNav .navbar-brand img { height: 24px; }
#mainNav .btn-outline-light {
  font-size: 12px;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
}
#mainNav .nav-link {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.72);
  padding: .45rem .75rem;
}
#mainNav .nav-link:hover { color: #fff; }
.navbar-toggler { padding: 5px 7px; border: none !important; }
.navbar-toggler span {
  display: block;
  width: 21px;
  height: 2px;
  background: rgba(255,255,255,.8);
  border-radius: 2px;
  margin: 4px 0;
  transition: all var(--t-base);
}

/* ── Page header banner ────────────────────────────────────────────── */
.page-header {
  background: var(--brand-800);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-md);
}
.page-header-title {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-header-title i { opacity: .65; }
.page-header-sub { color: rgba(255,255,255,.5); font-size: 12px; margin-top: 3px; }
.page-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Section card ──────────────────────────────────────────────────── */
.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.section-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Card overrides ────────────────────────────────────────────────── */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.card-header {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 13px;
  padding: 12px 18px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}
.card-body { padding: 20px; }

/* ── Tabs ──────────────────────────────────────────────────────────── */
.nav-tabs { border-bottom: 2px solid var(--border); gap: 2px; }
.nav-tabs .nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  padding: 9px 18px;
  margin-bottom: -2px;
  border-radius: 0;
  transition: color var(--t-base), border-color var(--t-base);
}
.nav-tabs .nav-link:hover { color: var(--brand-500); }
.nav-tabs .nav-link.active {
  color: var(--brand-500);
  border-bottom-color: var(--brand-500);
  background: transparent;
}
.tab-pane { padding-top: 12px; }

/* ── Table ─────────────────────────────────────────────────────────── */
.table { font-size: 13px; color: var(--text-primary); }
.table thead th {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  background: var(--surface-3);
  padding: 9px 12px;
}
.table td { border-top: 1px solid var(--border); padding: 9px 12px; vertical-align: middle; }
.table-hover tbody tr:hover { background: var(--brand-50); }
.table-striped tbody tr:nth-of-type(odd) { background: var(--surface-2); }

/* ── Badge ─────────────────────────────────────────────────────────── */
.badge {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 10px;
}
.badge-primary { background: var(--brand-100); color: var(--brand-700); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger);  }
.badge-secondary { background: var(--surface-3); color: var(--text-muted); }
.badge-info    { background: var(--info-bg);    color: var(--info);    }

/* ── Modal ─────────────────────────────────────────────────────────── */
.modal-content { border: none; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); overflow: hidden; }
.modal-header  { background: var(--brand-800); border-bottom: none; padding: 16px 22px; }
.modal-title   { color: #fff; font-size: 15px; font-weight: 700; }
.modal-header .close { color: rgba(255,255,255,.65); text-shadow: none; opacity: 1; }
.modal-header .close:hover { color: #fff; opacity: 1; }
.modal-body    { padding: 22px; }
.modal-footer  { padding: 14px 22px; border-top: 1px solid var(--border); background: var(--surface-2); }

.modal-section {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--text-muted);
  padding: 14px 0 6px; border-bottom: 1px solid var(--border);
  margin-bottom: 14px; display: flex; align-items: center; gap: 6px;
}
.modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 576px) { .modal-row { grid-template-columns: 1fr; } }
.btn-modal-primary {
  background: var(--brand-500); border: none; color: #fff;
  border-radius: var(--radius-md); padding: 10px 20px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--t-base); font-family: 'DM Sans', sans-serif;
}
.btn-modal-primary:hover { background: var(--brand-400); }
.modal-form-feedback { font-size: 12px; margin-top: 8px; min-height: 18px; }

/* ── Alert ─────────────────────────────────────────────────────────── */
.alert {
  border: none; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 500; padding: 12px 16px;
}
.alert-success { background: var(--success-bg); color: var(--success); border-left: 3px solid var(--success); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-left: 3px solid var(--warning); }
.alert-danger  { background: var(--danger-bg);  color: var(--danger);  border-left: 3px solid var(--danger);  }
.alert-info    { background: var(--info-bg);    color: var(--info);    border-left: 3px solid var(--info);    }
.alert-dismissible .close { color: inherit; opacity: .5; }
.alert-dismissible .close:hover { opacity: 1; }

/* ══════════════════════════════════════════════════════════════════════
   BizSys — Selectize Full Design System
   Drop into style.css after your existing Selectize block.
   Requires: selectize.bootstrap4.css + your existing base rules above.
   ══════════════════════════════════════════════════════════════════════ */

/* ── 1. CONTROL & INPUT SHELL ──────────────────────────────────────── */
.selectize-control {
  font-family: 'DM Sans', sans-serif !important;
}

/* Arrow chevron — replace the default triangle with a cleaner one */
.selectize-control.single::after {
  border: none !important;
  content: '' !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-size: 12px 12px !important;
  width: 12px !important;
  height: 12px !important;
  margin-top: -6px !important;
  border-width: 0 !important;
}

/* ── 2. DROPDOWN PANEL ─────────────────────────────────────────────── */
.selectize-dropdown {
  margin-top: 2px !important;
  border-top-width: 1.5px !important;
  overflow: hidden;
}

.selectize-dropdown .selectize-dropdown-content {
  padding: 4px 0 !important;
  max-height: 320px !important;
  overflow-y: auto !important;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.selectize-dropdown .selectize-dropdown-content::-webkit-scrollbar {
  width: 5px;
}
.selectize-dropdown .selectize-dropdown-content::-webkit-scrollbar-track {
  background: transparent;
}
.selectize-dropdown .selectize-dropdown-content::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}

/* "No results" / "Loading" messages */
.selectize-dropdown .no-results,
.selectize-dropdown [data-selectable].create {
  padding: 10px 14px !important;
  font-size: 12px !important;
  color: var(--text-secondary, #6b7280) !important;
}

/* ── 3. OPTION ROW — hover / active / selected ─────────────────────── */
.selectize-dropdown .option {
  padding: 0 !important;
  cursor: pointer;
  transition: background 0.1s ease;
}

.selectize-dropdown .option.active {
  background: var(--brand-50, #eff6ff) !important;
  color: inherit !important;
}

.selectize-dropdown .option.selected {
  background: var(--brand-100, #dbeafe) !important;
  color: var(--brand-700, #1d4ed8) !important;
}

.selectize-dropdown .option.active.selected {
  background: var(--brand-200, #bfdbfe) !important;
}

/* ── 4. OPTION INNER LAYOUT (.sz-opt) ──────────────────────────────── */
.sz-opt {
  padding: 7px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 38px;
  justify-content: center;
}

/* Row 1: primary content */
.sz-row1 {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}

/* Row 2: secondary/meta content */
.sz-row2 {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  line-height: 1.2;
}

/* Main label — truncates by default; .sz-opt--item overrides to wrap */
.sz-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary, #111827);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ID chip */
.sz-id {
  font-size: 11px;
  font-weight: 500;
  color: var(--brand-600, #2563eb);
  background: var(--brand-50, #eff6ff);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Monetary total */
.sz-total {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary, #111827);
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Muted meta text */
.sz-muted {
  font-size: 11px;
  color: var(--text-secondary, #6b7280);
}

/* Separator dot */
.sz-sep {
  font-size: 11px;
  color: var(--text-secondary, #9ca3af);
  opacity: 0.5;
  user-select: none;
}

/* ── 5. BADGES ─────────────────────────────────────────────────────── */
.sz-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.4;
}

.sz-badge-green  { background: #eaf3de; color: #3b6d11; }
.sz-badge-blue   { background: #e6f1fb; color: #185fa5; }
.sz-badge-amber  { background: #faeeda; color: #854f0b; }
.sz-badge-purple { background: #f0ebfe; color: #6d28d9; }
.sz-badge-gray   { background: #f1f3f5; color: #4b5563; }

/* ── 6. PRODUCT THUMBNAIL (.sz-item-thumb) ─────────────────────────── */
/* Used by selectizeItemSel — replaces old .sz-img */

.sz-item-thumb {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-muted, #f3f4f6);
  border: 1px solid var(--border, #e5e7eb);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sz-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fallback when image 404s — shows a placeholder icon via mask */
.sz-item-thumb.sz-thumb-fallback img {
  display: none;
}

.sz-item-thumb.sz-thumb-fallback::after {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background-color: var(--border, #d1d5db);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
}

/* Small variant — used inside the input box when item is selected */
.sz-item-thumb--sm {
  width: 20px;
  height: 20px;
  border-radius: 3px;
}

/* ── 7. PRODUCT OPTION VARIANT (.sz-opt--item) ─────────────────────── */
/* Row layout + wrapping text, only for selectizeItemSel */

.sz-opt.sz-opt--item {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 12px;
  min-height: 38px;
}

/* Thumb nudged down slightly to align with first text line */
.sz-opt.sz-opt--item .sz-item-thumb {
  margin-top: 2px;
}

/* Text body next to the thumbnail */
.sz-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Override truncation — name wraps inside product options */
.sz-opt.sz-opt--item .sz-name {
  white-space: normal !important;
  word-break: break-word !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.4;
}

/* ── 8. SELECTED ITEM (inside the input box) ───────────────────────── */
.selectize-input .item {
  display: flex !important;
  align-items: center;
  gap: 5px;
  min-width: 0;           /* allow flex children to shrink below content size */
  max-width: 100%;
}

.selectize-input .item .sz-badge {
  font-size: 9px;
  padding: 1px 5px;
}

.selectize-input .item .sz-id {
  font-size: 11px;
}

/* Selected product item wrapper — must fill .item and allow label to shrink */
.selectize-input .sz-selected-item {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;                /* grow to fill .item */
  min-width: 0;           /* allow children to shrink below their content width */
}

.selectize-input .sz-selected-label {
  flex: 1;                /* take remaining space after thumbnail */
  min-width: 0;           /* required for text-overflow to work in flex */
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #111827);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── 9. PLACEHOLDER ────────────────────────────────────────────────── */
.selectize-input input::placeholder,
.selectize-input .selectize-placeholder {
  color: var(--text-secondary, #9ca3af) !important;
  font-size: 13px;
  font-weight: 400;
}

/* ── 10. DISABLED STATE ────────────────────────────────────────────── */
.selectize-input.disabled {
  background-color: var(--surface-muted, #f9fafb) !important;
  color: var(--text-secondary, #6b7280) !important;
  cursor: not-allowed !important;
  opacity: 0.75;
}

.selectize-control.disabled::after {
  opacity: 0.35;
}

/* ── 11. LOADING INDICATOR ─────────────────────────────────────────── */
.selectize-control.loading .selectize-input::after {
  content: '';
  display: block;
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 2px solid var(--border, #e5e7eb);
  border-top-color: var(--brand-500, #3b72d4);
  border-radius: 50%;
  animation: sz-spin 0.6s linear infinite;
}

@keyframes sz-spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* ── 12. OPTION GROUP HEADER ───────────────────────────────────────── */
.selectize-dropdown .optgroup-header {
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: var(--text-secondary, #9ca3af) !important;
  padding: 8px 12px 4px !important;
  background: transparent !important;
}

/* ── 13. AppFilters simple options (no .sz-opt wrapper) ────────────── */
.selectize-dropdown .option > div:not(.sz-opt) {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-primary, #111827);
}

/* ── 14. FOCUS-WITHIN for control wrapper ──────────────────────────── */
.selectize-control:focus-within > .selectize-input:not(.is-invalid):not(.is-valid) {
  border-color: var(--brand-400, #60a5fa) !important;
  box-shadow: 0 0 0 3px rgba(59, 114, 212, 0.10) !important;
}

/* ── 15. VALIDATION STATES ─────────────────────────────────────────── */
.selectize-control .selectize-input.is-invalid {
  border-color: #dc3545 !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 2rem center !important;
  background-size: 1rem 1rem !important;
  padding-right: 3.5rem !important;
}

.selectize-control .selectize-input.is-valid {
  border-color: #198754 !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 2rem center !important;
  background-size: 1rem 1rem !important;
  padding-right: 3.5rem !important;
}

.selectize-control .selectize-input.is-invalid.focus {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

.selectize-control .selectize-input.is-valid.focus {
  border-color: #198754 !important;
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25) !important;
}

.selectize-control.single .selectize-input.is-invalid,
.selectize-control.single .selectize-input.is-valid {
  padding-right: 3.5rem !important;
}


/* ── Obsequio toggle switch ────────────────────────────────────────── */
.sz-toggle-wrap {
  display: inline-flex;
  align-items: center;
}

.sz-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.sz-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
  margin: 0;
}

/* Track */
.sz-toggle-track {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
  border-radius: 99px;
  background: var(--border, #d1d5db);
  border: 1.5px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

/* Thumb */
.sz-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  transition: transform 0.2s ease;
}

/* Checked state — track */
.sz-toggle-input:checked + .sz-toggle-label .sz-toggle-track {
  background: var(--brand-500, #3b72d4);
  border-color: var(--brand-500, #3b72d4);
}

/* Checked state — thumb slides right */
.sz-toggle-input:checked + .sz-toggle-label .sz-toggle-thumb {
  transform: translateX(14px);
}

/* Focus ring */
.sz-toggle-input:focus-visible + .sz-toggle-label .sz-toggle-track {
  outline: 2px solid var(--brand-400, #60a5fa);
  outline-offset: 2px;
}

/* Disabled */
.sz-toggle-input:disabled + .sz-toggle-label {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Label text */
.sz-toggle-text {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary, #6b7280);
  font-family: 'DM Sans', sans-serif;
  transition: color 0.2s ease;
}

/* Text darkens when checked */
.sz-toggle-input:checked + .sz-toggle-label .sz-toggle-text {
  color: var(--brand-600, #2563eb);
  font-weight: 500;
}

/* ── Loader ────────────────────────────────────────────────────────── */
.loader {
  width: 48px; height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--brand-500);
  border-radius: 50%;
  animation: bspin .8s linear infinite;
  margin: 0 auto;
}
@keyframes bspin { to { transform: rotate(360deg); } }

#globalAjaxLoader {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(8,21,46,.3);
  backdrop-filter: blur(3px);
  align-items: center; justify-content: center;
  pointer-events: all;
}
#globalAjaxLoader.active { display: flex; }
#globalAjaxLoader .spinner-border {
  width: 3rem; height: 3rem;
  border-color: rgba(255,255,255,.25);
  border-top-color: #fff;
}

/* ── Status pill ───────────────────────────────────────────────────── */
.status-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: 20px; letter-spacing: .2px;
}
.status-pill.ok     { background: var(--success-bg); color: var(--success); }
.status-pill.warn   { background: var(--warning-bg); color: var(--warning); }
.status-pill.danger { background: var(--danger-bg);  color: var(--danger);  }
.status-pill.muted  { background: var(--surface-3);  color: var(--text-muted); }

/* ── Divider ───────────────────────────────────────────────────────── */
hr, .divider { border-color: var(--border); margin: 18px 0; }

/* ── Utilities ─────────────────────────────────────────────────────── */
.text-brand   { color: var(--brand-500) !important; }
.isHidden     { display: none !important; }

/* ── Typeahead ─────────────────────────────────────────────────────── */
.twitter-typeahead { width: 100%; }
.tt-menu {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  margin-top: 4px; padding: 4px 0; width: 100%;
}
.tt-suggestion { font-size: 13px; padding: 8px 14px; cursor: pointer; color: var(--text-primary); }
.tt-suggestion:hover, .tt-suggestion.tt-cursor { background: var(--brand-50); color: var(--brand-500); }
.tt-suggestion p { margin: 0; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  h1 { font-size: 20px; }
  h2 { font-size: 16px; }
  h3 { font-size: 14px; }
  .tab-text { display: none; }
}

/* ── Print ─────────────────────────────────────────────────────────── */
@media print {
  #mainNav, footer, .no-print { display: none !important; }
}



/* ── Container ─────────────────────────────────────────────────── */
.pf-notif-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 16px;
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  min-height: 48px;
}

/* ── Label ─────────────────────────────────────────────────────── */
.notif-bar-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-right: 4px;
  flex-shrink: 0;
}

/* ── Chip ──────────────────────────────────────────────────────── */
.pf-notif-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  background: none;
  transition: transform .12s, box-shadow .12s, opacity .15s;
  user-select: none;
  white-space: nowrap;
  line-height: 1;
}
.pf-notif-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,.10);
}
.pf-notif-chip.active {
  box-shadow: 0 0 0 3px rgba(0,0,0,.10);
}
/* Zero-count chips are greyed and non-interactive */
.pf-notif-chip[data-count="0"] {
  opacity: .35;
  cursor: default;
  pointer-events: none;
}
.pf-notif-chip .chip-icon {
  font-size: 12px;
  opacity: .75;
}
.pf-notif-chip .chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

/* ── Urgency themes ─────────────────────────────────────────────── */
.chip-warning               { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.chip-warning .chip-count   { background: #d97706; color: #fff; }

.chip-info                  { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.chip-info    .chip-count   { background: #2563eb; color: #fff; }

.chip-success               { background: #f0fdf4; color: #065f46; border-color: #a7f3d0; }
.chip-success .chip-count   { background: #059669; color: #fff; }

.chip-danger                { background: #fff1f2; color: #9f1239; border-color: #fecdd3; }
.chip-danger  .chip-count   { background: #e11d48; color: #fff; }

.chip-purple                { background: #f5f3ff; color: #5b21b6; border-color: #ddd6fe; }
.chip-purple  .chip-count   { background: #7c3aed; color: #fff; }

/* ── Loading skeleton ───────────────────────────────────────────── */
.pf-notif-skeleton {
  display: inline-block;
  height: 28px;
  width: 110px;
  border-radius: 20px;
  background: linear-gradient(
    90deg,
    var(--surface-2) 25%,
    var(--surface-3) 50%,
    var(--surface-2) 75%
  );
  background-size: 200% 100%;
  animation: notifShimmer 1.2s infinite linear;
}
@keyframes notifShimmer {
  to { background-position: -200% 0; }
}

/* ── Clear filter button ────────────────────────────────────────── */
.pf-notif-clear {
  display: none;          /* shown via .visible class */
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 4px 8px;
  border: none;
  border-radius: 4px;
  background: none;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .12s, background .12s;
}
.pf-notif-clear:hover   { color: var(--danger); background: #fff1f2; }
.pf-notif-clear.visible { display: inline-flex; }

/* ── Shared conciliation status badges ────────────────────────────
   Used in tesoreria.php AND opeCompras.php facturas panel.
   concil_st values: 0=none, 99=partial, 2=cent-diff, 1=full
   ────────────────────────────────────────────────────────────── */
.concil-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.concil-badge-none    { background: #f1f5f9; color: #64748b; }
.concil-badge-partial { background: #fff7ed; color: #c2410c; }
.concil-badge-cent    { background: #fefce8; color: #854d0e; }
.concil-badge-ok      { background: #dcfce7; color: #15803d; }

/* ══════════════════════════════════════════════════════════════════════
   NAVBAR v2 — mega-menu, global search, notification bell
   Markup lives in navbar-b4.php. All panels share .nav2-panel.
   ══════════════════════════════════════════════════════════════════════ */

.nav2-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-base), color var(--t-base);
}
.nav2-btn:hover, .nav2-btn[aria-expanded="true"] {
  background: rgba(59,114,212,.25);
  color: #fff;
  text-decoration: none;
}
.nav2-btn .caret { font-size: 10px; opacity: .6; }

/* Icon-only utility button */
.nav2-ibtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(255,255,255,.62);
  font-size: 13px;
  cursor: pointer;
  position: relative;
  transition: background var(--t-base), color var(--t-base);
}
.nav2-ibtn:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }

/* Floating panel (shared by mega-menu, search results, bell) */
.nav2-panel {
  position: absolute;
  top: calc(100% + 8px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  z-index: 1060;
  display: none;
  overflow: hidden;
}
.nav2-panel.open { display: block; }

/* ── Mega-menu ─────────────────────────────────────────────────────── */
.nav2-mega {
  left: 0;
  width: min(880px, calc(100vw - 24px));
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  padding: 18px 20px;
}
.nav2-mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px 22px;
}
.nav2-mega-mod { min-width: 0; }
.nav2-mega-mod-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-500);
  text-transform: uppercase;
  letter-spacing: .4px;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.nav2-mega-mod-title a { color: inherit; text-decoration: none; }
.nav2-mega-mod-title a:hover { color: var(--brand-400); }
.nav2-mega-mod-title .fa {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-50);
  border-radius: 6px;
  font-size: 11px;
}
.nav2-mega-sub {
  display: block;
  padding: 4px 6px;
  margin: 0 -6px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav2-mega-sub:hover { background: var(--brand-50); color: var(--brand-500); text-decoration: none; }
.nav2-mega-sub .fa { width: 16px; font-size: 11px; color: var(--text-muted); margin-right: 5px; }
.nav2-mega-sub:hover .fa { color: var(--brand-400); }

/* ── Global search ─────────────────────────────────────────────────── */
.nav2-search { position: relative; }
.nav2-search input {
  width: 240px;
  height: 34px;
  padding: 0 12px 0 32px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: background var(--t-base), border-color var(--t-base), width .2s ease;
}
.nav2-search input::placeholder { color: rgba(255,255,255,.4); font-size: 12px; }
.nav2-search input:focus {
  background: rgba(255,255,255,.12);
  border-color: var(--brand-400);
  width: 300px;
}
.nav2-search .fa-search {
  position: absolute;
  left: 11px; top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: rgba(255,255,255,.4);
  pointer-events: none;
}
.nav2-search-panel {
  right: 0;
  width: 380px;
  max-height: 480px;
  overflow-y: auto;
}
.nav2-search-group {
  padding: 8px 14px 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  background: var(--surface-2);
}
.nav2-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  border-bottom: 1px solid var(--surface-3);
}
.nav2-search-item:hover { background: var(--brand-50); text-decoration: none; color: var(--brand-500); }
.nav2-search-item .fa {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-3);
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.nav2-search-item small { display: block; color: var(--text-muted); font-size: 11px; }
.nav2-search-empty {
  padding: 18px 14px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Notification bell ─────────────────────────────────────────────── */
.nav2-bell-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  background: var(--danger);
  border-radius: 8px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  display: none;
}
.nav2-bell-badge.show { display: block; }
.nav2-bell-panel {
  right: 0;
  width: 340px;
  max-height: 420px;
  overflow-y: auto;
}
.nav2-bell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.nav2-bell-head a { font-size: 11px; font-weight: 500; color: var(--brand-500); cursor: pointer; }
.nav2-notif {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid var(--surface-3);
  font-size: 12.5px;
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1.45;
}
.nav2-notif:hover { background: var(--surface-2); text-decoration: none; color: var(--text-primary); }
.nav2-notif.unread { background: var(--brand-50); }
.nav2-notif.unread:hover { background: var(--brand-100); }
.nav2-notif time { display: block; font-size: 10.5px; color: var(--text-muted); margin-top: 3px; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .nav2-search input, .nav2-search input:focus { width: 170px; }
  .nav2-mega { left: -60px; }
}
@media (max-width: 575px) {
  .nav2-search { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   PAGE SHELL — core/includes/pageHead.php + pageFoot.php
   ══════════════════════════════════════════════════════════════════════ */
.page-wrap {
  max-width: 1480px;
  margin: 0 auto;
  padding: 72px 18px 28px;   /* clears the 52px fixed navbar */
}
.page-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.page-breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color var(--t-base); }
.page-breadcrumb a:hover { color: var(--brand-500); }
.page-breadcrumb .sep { opacity: .5; }
.page-breadcrumb .current { color: var(--text-secondary); font-weight: 600; }
/* dark variant for wallpaper pages (body.body-style) */
.body-style .page-breadcrumb,
.body-style .page-breadcrumb a { color: rgba(255,255,255,.4); }
.body-style .page-breadcrumb a:hover { color: rgba(255,255,255,.75); }
.body-style .page-breadcrumb .current { color: rgba(255,255,255,.7); }

/* ══════════════════════════════════════════════════════════════════════
   MODULE INDEX — landing pages (submodule grid on the dark wallpaper).
   Promoted from the inline styles in crm/index.php so legacy landing
   pages (clientes, stmonitor…) can share one definition. Existing module
   indexes keep their inline copies; values here match them.
   ══════════════════════════════════════════════════════════════════════ */
.mod-wrap { max-width: 960px; margin: 0 auto; padding: 80px 16px 60px; }

.mod-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: rgba(255,255,255,.4);
  margin-bottom: 20px; font-weight: 500;
}
.mod-breadcrumb a { color: rgba(255,255,255,.4); text-decoration: none; transition: color .15s; }
.mod-breadcrumb a:hover { color: rgba(255,255,255,.75); }
.mod-breadcrumb .sep { opacity: .3; }
.mod-breadcrumb .current { color: rgba(255,255,255,.7); }

.mod-header { margin-bottom: 28px; }
.mod-header-title {
  font-size: 26px; font-weight: 800; color: #fff;
  letter-spacing: -.4px; line-height: 1.2;
  display: flex; align-items: center; gap: 12px;
}
.mod-header-title .mod-icon-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(59,114,212,.25); border: 1px solid rgba(59,114,212,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--brand-300, #7aa3e8); flex-shrink: 0;
}
.mod-header-sub { font-size: 13px; color: rgba(255,255,255,.4); margin-top: 5px; font-weight: 400; }

.mod-section-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px;
  color: rgba(255,255,255,.3); margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.submod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }

.submod-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 24px 14px 20px;
  background: rgba(15, 32, 68, 0.48); border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,.82); text-decoration: none; transition: all .2s ease;
  position: relative; overflow: hidden; min-height: 120px;
}
.submod-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(59,114,212,.2) 0%, transparent 60%);
  opacity: 0; transition: opacity .2s;
}
.submod-card:hover {
  background: rgba(30,84,183,.55); border-color: rgba(59,114,212,.4); color: #fff;
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,84,183,.35); text-decoration: none;
}
.submod-card:hover::before { opacity: 1; }
.submod-card:active { transform: translateY(0); }
.submod-icon { font-size: 26px; z-index: 1; color: rgba(255,255,255,.75); transition: color .2s; }
.submod-card:hover .submod-icon { color: #fff; }
.submod-name {
  font-size: 12px; font-weight: 600; text-align: center; line-height: 1.35; z-index: 1;
  color: rgba(255,255,255,.8); transition: color .2s;
}
.submod-card:hover .submod-name { color: #fff; }

.mod-empty {
  background: rgba(15,32,68,.45); border: 1px dashed rgba(255,255,255,.12);
  border-radius: 14px; padding: 48px 24px; text-align: center;
  color: rgba(255,255,255,.35); backdrop-filter: blur(8px);
}
.mod-empty i { font-size: 32px; display: block; margin-bottom: 12px; opacity: .3; }
.mod-empty p { font-size: 13px; margin: 0; }

@media (max-width: 575px) {
  .submod-grid { grid-template-columns: repeat(2, 1fr); }
  .mod-header-title { font-size: 20px; }
}
