/* ============================================================================
   RYSIND MARKET OS 6.2 — MATERIAL DESIGN 3 · 100% RESPONSIVE MULTI-DISPOSITIVO
   Adaptable a TV/4K, PC, Laptop, Tablet (Vertical/Horizontal) y Celular (320px+)
   Colores Sólidos (Cero Degradados) | Tema Dual Claro/Oscuro | Tablas -> Cards
   ============================================================================ */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;600&family=Roboto:wght@400;500;700&display=swap');

:root {
  --bg-body: #f5f7f6;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-elevated: #f1f5f3;
  --card-item-bg: #f8faf9;
  --border-subtle: #e0e5e2;
  --border-glow: #16a34a;

  --text-primary: #1a1c1b;
  --text-secondary: #495057;
  --text-muted: #6c757d;

  --cyan: #16a34a;
  --brand-primary: #16a34a;
  --brand-accent: #f97316;
  --btn-bg: #16a34a;
  --btn-text: #ffffff;
  --table-th-bg: #15803d;
  --table-th-text: #ffffff;
  --table-stripe: #f0fdf4;

  --emerald: #15803d;
  --violet: #7c3aed;
  --amber: #ea580c;
  --rose: #dc2626;
  --blue: #2563eb;

  --md-elev-1: 0 1px 2px rgba(0,0,0,0.12), 0 1px 3px 1px rgba(0,0,0,0.08);
  --md-elev-2: 0 2px 6px 2px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.14);
  --md-elev-3: 0 6px 14px 3px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.14);
  --shadow-sm: var(--md-elev-1);
  --shadow-card: var(--md-elev-1);
  --shadow-hover: var(--md-elev-3);

  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --sidebar-w: 268px;
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; max-width: 100vw; overflow-x: hidden; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg-body);
  color: var(--text-primary);
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-font { font-family: 'Roboto', sans-serif; font-weight: 700; letter-spacing: -0.01em; color: var(--text-primary); }
.mono { font-family: 'JetBrains Mono', monospace; }
a { color: var(--brand-primary); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }
img, svg, canvas, video { max-width: 100%; height: auto; }

/* ---------------- MATERIAL RIPPLE ---------------- */
.md-ripple-host { position: relative; overflow: hidden; }
.md-ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,0.35); animation: mdRippleAnim 0.55s ease-out; pointer-events: none; }
@keyframes mdRippleAnim { to { transform: scale(3.5); opacity: 0; } }

/* ---------------- NAVIGATION DRAWER & APP BAR ---------------- */
.app-shell { display: flex; min-height: 100vh; width: 100%; }

.sidebar {
  width: var(--sidebar-w); background: var(--bg-surface); border-right: 1px solid var(--border-subtle);
  display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 220;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1); overflow-y: auto; box-shadow: var(--md-elev-1);
}
.sidebar-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.52); z-index: 210; display: none; }
.sidebar-backdrop.open { display: block; }

.sidebar-brand { padding: 14px 16px; min-height: 64px; border-bottom: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand-orb { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-primary); color: var(--btn-text); display: grid; place-items: center; font-weight: 700; font-size: 18px; box-shadow: var(--md-elev-1); overflow: hidden; flex-shrink: 0; }
.brand-orb img { width: 100%; height: 100%; object-fit: cover; }

.sidebar-nav { padding: 10px 10px 32px; flex: 1; }
.nav-group-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); padding: 14px 12px 6px; font-weight: 700; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 44px; border-radius: 999px; color: var(--text-secondary); font-weight: 500; margin-bottom: 3px; transition: background 0.16s ease, color 0.16s ease; }
.nav-item i { font-size: 20px; width: 22px; text-align: center; flex-shrink: 0; }
.nav-item:hover { background: var(--bg-elevated); color: var(--brand-primary); text-decoration: none; }
.nav-item.active { background: var(--brand-primary); color: var(--btn-text); font-weight: 700; box-shadow: var(--md-elev-1); }

.main-area { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-width: 0; width: 100%; }
.topbar { min-height: 64px; background: var(--bg-surface); border-bottom: 1px solid var(--border-subtle); padding: 8px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 0; z-index: 120; box-shadow: var(--md-elev-1); }
.page-content { padding: 20px 22px 48px; max-width: 1600px; width: 100%; margin: 0 auto; }

/* ---------------- BOTTOM NAVIGATION BAR (SOLO MÓVIL <= 768px) ---------------- */
.mobile-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; height: 62px; z-index: 180;
  background: var(--bg-surface); border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.10);
  justify-content: space-around; align-items: center;
  padding: 0 4px env(safe-area-inset-bottom, 0px);
}
.mbn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; height: 100%; color: var(--text-secondary); font-size: 10.5px; font-weight: 600;
  text-decoration: none !important; border: none; background: transparent; cursor: pointer;
}
.mbn-item i { font-size: 21px; }
.mbn-item.active, .mbn-item:hover { color: var(--brand-primary); }

/* ---------------- MATERIAL CARDS & KPIs ---------------- */
.glass-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--md-elev-1); min-width: 0; }
.item-card { background: var(--card-item-bg); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--md-elev-1); transition: box-shadow 0.22s ease, transform 0.2s ease, border-color 0.2s ease; cursor: pointer; min-width: 0; }
.item-card:hover { box-shadow: var(--md-elev-3); transform: translateY(-3px); border-color: var(--brand-primary); }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi-card { position: relative; padding: 16px 18px; border-top: 4px solid var(--brand-primary); }
.kpi-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); font-weight: 700; }
.kpi-value { font-size: 25px; font-weight: 700; margin: 6px 0 3px; color: var(--text-primary); word-break: break-word; }
.kpi-sub { font-size: 12px; color: var(--text-muted); }

/* ---------------- MATERIAL BUTTONS ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 18px; min-height: 40px; border-radius: var(--radius-md); font-weight: 600; font-size: 13.5px; border: 1px solid transparent; cursor: pointer; transition: box-shadow 0.18s ease, filter 0.16s ease, transform 0.14s ease; font-family: inherit; white-space: nowrap; text-decoration: none !important; box-shadow: var(--md-elev-1); }
.btn:hover { box-shadow: var(--md-elev-2); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { filter: brightness(0.93); }
.btn-accent { background: var(--brand-accent); color: #ffffff; }
.btn-accent:hover { filter: brightness(0.93); }
.btn-emerald { background: #15803d; color: #ffffff; }
.btn-emerald:hover { background: #166534; }
.btn-ghost { background: var(--bg-card); color: var(--text-primary); border-color: var(--border-subtle); box-shadow: none; }
.btn-ghost:hover { background: var(--bg-elevated); border-color: var(--brand-primary); color: var(--brand-primary); box-shadow: var(--md-elev-1); }
.btn-danger { background: #dc2626; color: #ffffff; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 6px 12px; min-height: 36px; font-size: 12.2px; border-radius: var(--radius-sm); }

/* ---------------- CHIPS / BADGES ---------------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.badge-cyan { background: #dcfce7; color: #166534; }
.badge-violet { background: #ede9fe; color: #6d28d9; }
.badge-emerald { background: #d1fae5; color: #065f46; }
.badge-amber { background: #ffedd5; color: #c2410c; }
.badge-rose { background: #fee2e2; color: #b91c1c; }
.badge-slate { background: #e2e8f0; color: #334155; }

/* ---------------- INPUTS & FORMS ---------------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.input, select.input, textarea.input { width: 100%; min-height: 42px; padding: 9px 12px; border-radius: var(--radius-md); border: 1.5px solid var(--border-subtle); background: var(--bg-card); color: var(--text-primary); font-family: inherit; font-size: 14px; outline: none; transition: border-color 0.16s ease, box-shadow 0.16s ease; }
.input:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(22,163,74,0.16); }

/* ---------------- DATA TABLES ---------------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-md); border: 1px solid var(--border-subtle); background: var(--bg-card); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13.2px; }
table.data-table thead th { background: var(--table-th-bg); color: var(--table-th-text); font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: 0.05em; padding: 13px 14px; text-align: left; white-space: nowrap; }
table.data-table tbody td { padding: 11px 14px; border-bottom: 1px solid var(--border-subtle); vertical-align: middle; color: var(--text-primary); }
table.data-table tbody tr:nth-child(even) { background: var(--table-stripe); }
table.data-table tbody tr:hover { background: var(--bg-elevated); }

/* ---------------- MODALS & TOASTS ---------------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.56); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 999; }
.modal-backdrop.open { display: flex; }
.modal-box { background: var(--bg-card); border-radius: 16px; width: 100%; max-width: 780px; max-height: 92vh; overflow-y: auto; padding: 22px; box-shadow: var(--md-elev-3); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--border-subtle); }

.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 24px); }
.toast { background: var(--bg-card); color: var(--text-primary); border-left: 5px solid var(--brand-primary); border-top: 1px solid var(--border-subtle); border-right: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); padding: 12px 16px; border-radius: 8px; box-shadow: var(--md-elev-3); display: flex; align-items: center; gap: 10px; min-width: 240px; font-weight: 500; }

/* ---------------- STOREFRONT, POS & TABS ---------------- */
.store-header { position: sticky; top: 0; z-index: 110; background: var(--bg-surface); border-bottom: 3px solid var(--brand-primary); padding: 12px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; box-shadow: var(--md-elev-2); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 16px; }
.product-card { background: var(--card-item-bg); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--md-elev-1); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--md-elev-3); border-color: var(--brand-primary); }
.product-thumb { height: 160px; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; border-bottom: 1px solid var(--border-subtle); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pos-layout { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 18px; align-items: start; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dept-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.dept-tab { padding: 8px 16px; min-height: 36px; border-radius: 999px; border: 1px solid var(--border-subtle); background: var(--bg-card); color: var(--text-secondary); cursor: pointer; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; transition: all 0.16s ease; }
.dept-tab.active, .dept-tab:hover { border-color: var(--brand-primary); color: var(--btn-text); background: var(--brand-primary); box-shadow: var(--md-elev-1); text-decoration: none; }

.tab-bar { display: flex; gap: 4px; border-bottom: 2px solid var(--border-subtle); margin-bottom: 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn { padding: 11px 18px; min-height: 44px; border: none; background: transparent; color: var(--text-secondary); font-weight: 600; font-size: 13.5px; white-space: nowrap; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; display: inline-flex; align-items: center; gap: 7px; }
.tab-btn.active { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }

/* ---------------- FOOTER ---------------- */
.site-footer { background: #111827; color: #e5e7eb; margin-top: 48px; border-top: 4px solid var(--brand-primary); }
.footer-grid { max-width: 1360px; margin: 0 auto; padding: 36px 24px 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.site-footer h3, .site-footer h4 { color: #ffffff; margin: 0 0 10px 0; }
.site-footer a { color: #93c5fd; font-weight: 500; }
.site-footer a:hover { color: #ffffff; }
.social-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; background: #1f2937; border: 1px solid #374151; color: #ffffff !important; font-size: 12.5px; font-weight: 600; text-decoration: none !important; }
.social-btn:hover { background: var(--brand-primary); border-color: var(--brand-primary); }
.footer-bottom { background: #0b1120; border-top: 1px solid #1f2937; text-align: center; padding: 14px 20px; font-size: 12px; color: #9ca3af; }

.mobile-menu-btn { display: none; }
.hide-mobile { display: inline-flex; }

/* ============================================================================
   1. TABLET & LAPTOP PEQUEÑA (<= 1024px)
   ============================================================================ */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--md-elev-3); }
  .sidebar.open { transform: translateX(0); }
  .main-area { margin-left: 0; }
  .mobile-menu-btn { display: inline-flex; }
  .pos-layout { grid-template-columns: 1fr; }
  .pos-layout > div[style*="sticky"] { position: static !important; top: auto !important; }
  .page-content > div[style*="grid-template-columns"],
  .bi-tab > div[style*="grid-template-columns"],
  #tabApariencia > div[style*="grid-template-columns"],
  #tabCatalogos > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================================
   2. TABLET VERTICAL & PHABLET (<= 768px)
   ============================================================================ */
@media (max-width: 768px) {
  .mobile-bottom-nav { display: flex; }
  .page-content { padding: 16px 14px 86px; }
  .toast-container { bottom: 74px; left: 12px; right: 12px; }
  .toast { min-width: 0; width: 100%; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar > div { width: 100%; }
  .toolbar .input, .auto-filter-bar .input { max-width: 100% !important; width: 100% !important; }
  .dept-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .dept-tab { flex-shrink: 0; }
  .store-header > div:nth-child(2) { order: 3; flex: 1 1 100%; max-width: 100% !important; }
  .hero-store { grid-template-columns: 1fr !important; }
  .hero-copy { padding: 22px 18px !important; }
  .hero-copy h1 { font-size: 24px !important; }
}

/* ============================================================================
   3. CELULARES (<= 640px) — TABLAS SE CONVIERTEN EN TARJETAS MATERIAL
   ============================================================================ */
@media (max-width: 640px) {
  .topbar { padding: 6px 12px; min-height: 58px; }
  .topbar h2 { font-size: 15px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
  .hide-mobile { display: none !important; }
  .glass-card { padding: 14px; border-radius: 10px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi-card { padding: 12px 13px; }
  .kpi-value { font-size: 19px; }
  .form-grid { grid-template-columns: 1fr !important; gap: 10px; }
  .input, select.input, textarea.input { font-size: 16px; min-height: 44px; } /* Evita auto-zoom en iOS */
  .btn { min-height: 42px; }
  .btn-sm { min-height: 36px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-thumb { height: 125px; }
  .modal-backdrop { padding: 8px; align-items: flex-end; }
  .modal-box { padding: 16px; border-radius: 16px 16px 10px 10px; max-height: 92vh; }

  /* Transformación automática de Tablas -> Tarjetas Material (Cero Scroll Horizontal) */
  .table-wrap { border: none; background: transparent; overflow: visible; }
  table.data-table.md-responsive thead { display: none; }
  table.data-table.md-responsive,
  table.data-table.md-responsive tbody,
  table.data-table.md-responsive tr,
  table.data-table.md-responsive td { display: block; width: 100%; }
  table.data-table.md-responsive tr {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
    box-shadow: var(--md-elev-1);
  }
  table.data-table.md-responsive td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-subtle);
    text-align: right;
  }
  table.data-table.md-responsive td:last-child { border-bottom: none; padding-bottom: 2px; }
  table.data-table.md-responsive td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
    flex-shrink: 0;
    max-width: 44%;
  }
  table.data-table.md-responsive td[colspan] {
    display: block; text-align: center;
  }
  table.data-table.md-responsive td[colspan]::before { display: none; }
}

/* ============================================================================
   4. CELULARES MUY PEQUEÑOS (<= 380px)
   ============================================================================ */
@media (max-width: 380px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
}


/* ============================================================================
   5. PAGINACIÓN Y FILTRO UNIVERSAL MATERIAL DESIGN 3 (v6.7)
   ============================================================================ */
.auto-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}
.md-pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--bg-elevated, #f8fafc);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 12px;
  font-size: 13px;
}
.md-pg-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--text-muted, #64748b);
  font-size: 12.5px;
}
.md-pg-info {
  font-weight: 600;
  color: var(--text-main, #0f172a);
}
.md-pg-size-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.md-pg-select {
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle, #cbd5e1);
  background: var(--bg-surface, #ffffff);
  color: var(--text-main, #0f172a);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.md-pg-quick-search {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle, #cbd5e1);
  background: var(--bg-surface, #ffffff);
  color: var(--text-main, #0f172a);
  font-size: 12.5px;
  width: 195px;
  max-width: 100%;
}
.md-pg-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.md-page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle, #cbd5e1);
  background: var(--bg-surface, #ffffff);
  color: var(--text-main, #0f172a);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.md-page-btn:hover:not(:disabled):not(.active) {
  background: var(--bg-hover, #e2e8f0);
  border-color: var(--brand-primary, #0ea5e9);
}
.md-page-btn.active {
  background: var(--brand-primary, #0ea5e9);
  border-color: var(--brand-primary, #0ea5e9);
  color: #ffffff;
}
.md-page-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.md-page-ellipsis {
  padding: 0 4px;
  color: var(--text-muted, #64748b);
  font-weight: 700;
  user-select: none;
}
tr.md-pg-hidden {
  display: none !important;
}
tr.md-pg-empty-row td {
  text-align: center !important;
  padding: 18px 12px !important;
  color: var(--text-muted, #64748b);
  font-style: italic;
}
@media (max-width: 768px) {
  .md-pagination-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }
  .md-pg-left {
    justify-content: space-between;
  }
  .md-pg-quick-search {
    width: 100%;
  }
  .md-pg-controls {
    justify-content: center;
  }
  .md-page-btn {
    min-width: 36px;
    height: 36px;
  }
}

/* === Modales Blanco Brillante Global (v7.9.2) === */
.modal-box,
.modal-card {
  background: #ffffff !important;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}
