/* NORA26 · Enterprise Navy Design System v3.0 — interfaz integral del ERP */
:root {
  color-scheme: dark;
  --bg: #061a30;
  --panel: #0c2844;
  --panel-strong: #103653;
  --line: #24415d;
  --text: #f2f7ff;
  --muted: #9bb3cc;
  --brand: #398fe7;
  --brand-2: #236fc6;
  --warning: #f0b944;
  --danger: #fa6e79;
  --ok: #1bcc85;
  --shadow: 0 14px 36px rgba(0, 8, 24, .2);
  --glow: 0 16px 38px rgba(0, 10, 30, .22);
}
html {scroll-behavior: smooth;}
body { background: linear-gradient(135deg,#061a30 0%,#06192c 60%,#071e36 100%); color:var(--text); }
body::before {opacity:.15;pointer-events:none;}
:focus-visible {outline:2px solid #4da2fa;outline-offset:3px;}
.shell {display:grid;grid-template-columns:276px minmax(0,1fr);grid-template-rows:81px minmax(0,1fr);min-height:100vh;background:linear-gradient(110deg,#071e35,#06192d 75%);}
.premium-topbar {grid-column:1/-1;grid-row:1;z-index:200;position:sticky;top:0;display:grid;grid-template-columns:276px minmax(260px,540px) 1fr;gap:clamp(20px,3vw,70px);align-items:center;width:100%;min-height:81px;margin:0;padding:0 29px 0 31px;border-bottom:1px solid #14324f;background:linear-gradient(105deg,#082745,#0b2c4d 65%,#0a2948);box-shadow:0 5px 25px rgba(0,4,16,.2);}
.topbar-brand {margin:0;gap:7px;white-space:nowrap;min-width:0;}
.topbar-brand .brand-mark {display:grid;flex:0 0 36px;width:36px;height:36px;font-size:22px;line-height:1;border-radius:9px;color:#eaf5ff;background:linear-gradient(135deg,#379ffd,#1558a4);box-shadow:none;font-weight:900;}
.topbar-brand > strong {font-size:28px;letter-spacing:-.06em;font-weight:900;color:white;line-height:1;}
.topbar-brand > strong span {display:inline;color:#318df3;margin:0;}
.topbar-brand .brand-subtitle {padding-left:17px;margin-left:12px;border-left:1px solid #315471;color:#a6c0d8;font-size:10px;letter-spacing:.25em;font-weight:700;}
.global-search {position:relative;width:min(100%,545px);}
.global-search input {height:48px;width:100%;border:1px solid #325371;border-radius:10px;background:#ffffff0b;color:#f2f8ff;padding:0 18px 0 49px;box-shadow:inset 0 1px 0 #ffffff08;font:500 14px Inter,system-ui,sans-serif;outline:none;}
.global-search input:focus {border-color:#4a92d9;background:#193d5c;box-shadow:0 0 0 3px #318cf329;}
.global-search input::placeholder {color:#b4c9dc;}
.global-search-icon {position:absolute;left:18px;top:5px;font-size:32px;color:#c3d9ed;pointer-events:none;line-height:35px;}
.global-search-results {position:absolute;top:calc(100% + 10px);left:0;right:0;max-height:310px;overflow:auto;padding:7px;border:1px solid #2f4e6c;border-radius:14px;background:#0c2945;box-shadow:0 25px 55px #0008;z-index:400;}
.global-search-results button {width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 13px;background:transparent;border:0;border-radius:9px;text-align:left;color:#e5f0fd;cursor:pointer;font-size:13px;}
.global-search-results button:hover,.global-search-results button:focus {background:#20496c;}
.global-search-results small {font-size:10px;color:#a1bad0;}
.global-search-empty {padding:13px;color:#a9bfd4;font-size:12px;}
.topbar-user-actions {display:flex;align-items:center;justify-content:flex-end;gap:25px;min-width:0;}
.notification-bell {width:43px;height:43px;display:grid;place-items:center;position:relative;color:#c3d8ed;background:transparent;border:0;border-radius:10px;cursor:pointer;}
.notification-bell:hover {background:#ffffff12;color:white;}
.notification-bell-badge {position:absolute;right:0;top:-2px;min-width:19px;height:19px;display:grid;place-items:center;border-radius:999px;font-size:10px;color:white;background:#e84961;box-shadow:0 0 0 2px #0a2948;}
.profile-wrap {position:relative;min-width:0;}
.profile-trigger {display:flex;gap:12px;align-items:center;max-width:255px;min-height:63px;padding:5px 1px;color:#eaf4ff;border:0;background:transparent;text-align:left;cursor:pointer;}
.profile-trigger > svg {margin-left:8px;color:#b0c7dc;flex-shrink:0;}
.profile-avatar {display:grid;width:44px;height:44px;flex:0 0 44px;place-items:center;position:relative;overflow:hidden;border:2px solid #6b98c1;border-radius:50%;color:#eaf5ff;font-size:15px;font-weight:900;background:linear-gradient(145deg,#225c9b,#0a3b6e);}
.profile-avatar img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.profile-text {display:grid;gap:3px;min-width:0;}
.profile-text strong {font-size:13px;font-weight:800;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
.profile-text small {font-size:11px;color:#adc5de;white-space:nowrap;}
.profile-dropdown {position:absolute;right:0;top:calc(100% + 5px);z-index:500;width:305px;padding:13px;border:1px solid #2a4c6b;border-radius:16px;background:#0c2946;box-shadow:0 26px 55px #0009;}
.profile-panel-head {display:flex;align-items:center;gap:12px;padding:7px 8px 15px;border-bottom:1px solid #294964;}
.profile-avatar-large {width:58px;height:58px;flex-basis:58px;font-size:20px;}
.profile-panel-head strong,.profile-panel-head small {display:block;}
.profile-panel-head strong {font-size:15px;}
.profile-panel-head small {font-size:11px;color:#9eb8d0;margin-top:5px;}
.profile-upload-action,.profile-menu-action,.profile-logout {display:block;width:100%;padding:12px 13px;text-align:left;color:#e7f4ff;border:0;background:transparent;border-radius:9px;font-weight:600;font-size:12px;cursor:pointer;}
.profile-upload-action:hover,.profile-menu-action:hover,.profile-logout:hover {background:#193f61;}
.profile-hint {display:block;color:#9ab4cc;font-size:10px;padding:0 13px 12px;}
.profile-logout {border-top:1px solid #294964;border-radius:0;color:#ffadba;}
.mobile-menu-toggle {display:none;}
.sidebar {grid-column:1;grid-row:2;position:sticky;top:81px;height:calc(100vh - 81px);padding:24px 13px 14px;border-right:1px solid #17324e;background:linear-gradient(180deg,#082441,#061d35);backdrop-filter:none;}
.nav-label {padding:3px 16px 14px;color:#6e96bb;font-size:10px;letter-spacing:.16em;font-weight:800;}
.nav {gap:3px;margin:0;padding-right:2px;}
.nav-item {display:flex;align-items:center;gap:14px;min-height:48px;padding:10px 15px;border:1px solid transparent;border-radius:9px;color:#b6cbe0;font-size:13px;font-weight:550;letter-spacing:0;background:transparent;box-shadow:none;white-space:nowrap;}
.nav-item .nav-icon {display:inline-flex;flex:0 0 20px;align-items:center;justify-content:center;color:#a9c3da;}
.nav-item .nav-icon svg {width:20px;height:20px;stroke-width:1.9;}
.nav-item:hover,.nav-item.active {border-color:#ffffff0a;color:white;background:linear-gradient(100deg,#1a3f67,#173b60);box-shadow:inset 3px 0 0 #268dec;}
.nav-item:hover .nav-icon,.nav-item.active .nav-icon {color:#e4f3ff;}
.nav-item::before {display:none!important;}
.nav-item.nav-chat {justify-content:initial;}
.nav-item.nav-chat .nav-badge {margin-left:auto;}
.storage-card {display:flex;align-items:center;gap:12px;padding:13px 12px;margin-top:12px;border:1px solid #21405e;border-radius:12px;background:#0e2c48;box-shadow:none;}
.storage-card .system-status-dot {width:11px;height:11px;flex-shrink:0;border-radius:50%;background:#17d694;box-shadow:0 0 0 5px #17d69414;}
.storage-card strong {font-size:12px;margin:0;color:#dcedff;}
.storage-card small {font-size:10px;margin-top:5px;}
.storage-card .system-storage-size {display:none;}
.sidebar-footer {display:flex;align-items:center;gap:12px;padding:17px 13px 5px;margin-top:11px;border-top:1px solid #24415f;color:#d4e4f5;}
.sidebar-footer .footer-building {font-size:20px;color:#a6c5e2;}
.sidebar-footer strong,.sidebar-footer small {display:block;}
.sidebar-footer strong {font-size:11px;}
.sidebar-footer small {margin-top:5px;font-size:10px;color:#829fbb;}
.main {grid-column:2;grid-row:2;min-width:0;padding:30px clamp(18px,2.5vw,42px) 55px;}
.page-heading {display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px;}
.page-heading-copy {min-width:0;}
.breadcrumbs {display:flex;align-items:center;gap:11px;margin-bottom:18px;font-size:12px;color:#b4c9df;}
.breadcrumb-arrow {font-size:19px;color:#749abc;}
.breadcrumbs span:last-child {color:#e1edf8;}
.page-heading h1 {font-size:clamp(27px,3vw,37px);font-weight:850;letter-spacing:-.045em;line-height:1.13;}
.page-heading p {margin:10px 0 0;max-width:700px;font-size:13px;line-height:1.65;color:#abc2d8;}
.page-heading-actions {display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;flex-shrink:0;}
.page-heading-actions .ghost {background:#0d2a46;color:#e3efff;border-color:#3a607c;}
.page-heading-actions .primary {background:#06b968;color:white;border:1px solid #10c87c;box-shadow:0 10px 20px #05b9661c;}
.page-heading-actions .primary:hover {background:#09d277;}
.session-scope-badge {border-color:#315775;background:#0e2c4b;}
.primary {color:white;background:#0ab96d;border:1px solid #0dd17b;border-radius:9px;box-shadow:0 5px 16px #00b66a16;}
.primary:hover {background:#0bcb75;box-shadow:0 7px 21px #00bf7040;}
.primary::after,.brand-mark::after,.pill::after {display:none;}
.secondary,.ghost {background:#123451;border:1px solid #355875;color:#e7f0ff;border-radius:9px;}
.secondary:hover,.ghost:hover {background:#194461;border-color:#4a759c;}
input,select,textarea {color:var(--text);background:#0c2b49;border:1px solid #2a4b6a;border-radius:9px;}
input::placeholder,textarea::placeholder {color:#8ca9c4;}
input:focus,select:focus,textarea:focus {border-color:#3c92e5;box-shadow:0 0 0 3px #4095e91f;outline:0;}
.hero,.card,.table-wrap,.backup-card {border:1px solid #1e3b56;border-radius:15px;background:linear-gradient(125deg,#0e2c48,#0b2844);box-shadow:0 10px 26px #00000017;backdrop-filter:none;}
.hero,.export-hero,.maintenance-card.featured {background:radial-gradient(circle at 87% 0%,#21537b55,transparent 50%),linear-gradient(120deg,#113452,#092741);}
.hero:hover,.card:hover,.product-card:hover,.client-card:hover {transform:none;box-shadow:0 12px 29px #00000026;border-color:#345775;}
.card,.product-card,.client-card {border-radius:15px;}
.card h3 {font-weight:750;}
.pill {color:#d6edff;background:#164f84;border:1px solid #367ab1;}
.kpi-card,.metric-card {background:linear-gradient(135deg,#0f3555,#0b2a46);border-color:#244463;border-radius:14px;}
.filters {padding:12px;margin-bottom:16px;border:1px solid #1a3953;border-radius:13px;background:#081f37;}
.filters input,.filters select {background:#10304e;color:#e6f1fb;border-color:#2b4e6e;}
.table-wrap {overflow:auto;border-radius:14px;box-shadow:0 15px 26px #00000015;}
table {border-collapse:collapse;}
th,td {padding:16px 16px;border-color:#23415b;}
th {color:#b6cee5;background:#123653;font-weight:750;font-size:11px;letter-spacing:.045em;}
td {color:#e6f0fc;font-size:12px;vertical-align:middle;}
tbody tr:nth-child(2n) {background:#0b284311;}
tbody tr:hover {background:#1d4462;}
td strong {color:#f0f6ff;font-weight:750;}
td small {color:#92abc5;}
.status {border-radius:999px;border:1px solid transparent;padding:6px 11px;font-weight:750;font-size:11px;}
.status.pagada,.status.completada,.status.activa,.status.cerrada {color:#72f0c6;background:#087d5a38;border-color:#1799743b;}
.status.pendiente,.status.parcial {color:#ffe59e;background:#a875083e;border-color:#d2a02d47;}
.status.vencida,.status.vencido {color:#ffb2b7;background:#b8304234;border-color:#e6566340;}
.seller-chip,.account-type-chip.sales {background:#17619a39;border:1px solid #368dcd4f;color:#b5e5ff;}
.toolbar {margin-bottom:18px;}
.toolbar h2 {font-size:21px;letter-spacing:-.025em;}
.toolbar p {font-size:12px;max-width:670px;}
.nav-badge {background:#db5065;}
.modal-dialog {background:#0d2945;border-color:#2d4d69;box-shadow:0 30px 90px #000a;}
.modal-dialog h2 {color:#ecf6ff;}
.notification-dropdown {background:#0d2b49;border-color:#35526b;box-shadow:0 25px 60px #0009;}
.boot-screen,.login-screen {background:radial-gradient(circle at 75% 15%,#1d4d7655,transparent 40%),linear-gradient(135deg,#041b31,#092946);}
.boot-card,.login-card {background:#0e2c48;border-color:#31506b;box-shadow:0 24px 65px #0008;}
.boot-halo {background:radial-gradient(circle at 50% 50%,#2e83d340,transparent 40%);}
.boot-progress span {background:linear-gradient(90deg,#318ee7,#14c58b);box-shadow:0 0 17px #277ed855;}
.sales-user-note,.assignment-impact,.internal-security-note {background:linear-gradient(135deg,#143b59,#123451);border-color:#2e6080;}
/* Sutilezas enterprise: feedback visual, scroll, accesibilidad. */
button {transition:background-color .16s,border-color .16s,box-shadow .16s,color .16s;}
.main::-webkit-scrollbar,.nav::-webkit-scrollbar,.table-wrap::-webkit-scrollbar {width:7px;height:7px;}
.main::-webkit-scrollbar-thumb,.nav::-webkit-scrollbar-thumb,.table-wrap::-webkit-scrollbar-thumb {background:#2a587f;border-radius:10px;}
@media (max-width:1150px) {
  .shell {grid-template-columns:239px minmax(0,1fr);}
  .premium-topbar {grid-template-columns:239px minmax(190px,1fr) auto;padding:0 17px;gap:14px;}
  .topbar-brand .brand-subtitle {display:none;}
  .sidebar {padding:17px 9px 10px;}
  .page-heading {align-items:flex-start;}
  .page-heading-actions {max-width:310px;}
}
@media (max-width:900px) {
  .shell {display:grid;grid-template-columns:1fr;grid-template-rows:70px minmax(0,1fr);}
  .premium-topbar {grid-column:1;grid-row:1;grid-template-columns:auto auto minmax(90px,1fr) auto;gap:9px;min-height:70px;padding:0 13px;}
  .topbar-brand > strong {font-size:23px;}
  .topbar-brand .brand-mark {width:31px;height:31px;flex-basis:31px;font-size:19px;}
  .mobile-menu-toggle {display:inline-grid;place-items:center;width:39px;height:39px;border:1px solid #365979;border-radius:8px;color:#e9f4ff;background:#103a5b;font-size:20px;cursor:pointer;}
  .sidebar {position:fixed;z-index:180;top:70px;bottom:0;left:0;width:270px;height:calc(100vh - 70px);transform:translateX(-110%);transition:transform .23s ease;box-shadow:14px 15px 32px #0007;}
  body.mobile-sidebar-open .sidebar {transform:translateX(0);}
  .main {grid-column:1;grid-row:2;padding:22px 16px 44px;}
  .global-search input {height:40px;}
  .profile-text {display:none;}
  .profile-trigger {min-height:42px;gap:5px;}
  .profile-trigger > svg {display:none;}
  .topbar-user-actions {gap:4px;}
  .page-heading {gap:12px;flex-wrap:wrap;}
  .page-heading-actions {max-width:none;justify-content:flex-start;}
}
@media (max-width:620px) {
  .premium-topbar {grid-template-columns:auto 38px minmax(50px,1fr) auto;}
  .topbar-brand .brand-mark {display:none;}
  .topbar-brand > strong {font-size:19px;}
  .global-search input {padding-left:31px;font-size:11px;height:38px;}
  .global-search-icon {left:9px;font-size:24px;top:6px;}
  .profile-avatar {width:36px;height:36px;flex-basis:36px;}
  .notification-bell {width:31px;}
  .profile-dropdown {right:-6px;width:min(295px,calc(100vw - 24px));}
  .page-heading h1 {font-size:28px;}
  .page-heading-actions {width:100%;}
  .page-heading-actions .ghost,.page-heading-actions .primary {flex:1;}
  .session-scope-badge {display:none;}
  .breadcrumbs {margin-bottom:9px;}
  .filters {padding:9px;}
  .hero {padding:19px;}
  .toolbar {flex-direction:column;align-items:flex-start;}
}
@media print {
  .premium-topbar,.sidebar,.profile-dropdown,.global-search,.page-heading-actions {display:none!important;}
  .shell {display:block;background:white;}.main{padding:0;}.page-heading h1{color:#111!important;}
}
/* El encabezado premium contiene el título; la barra de cada módulo conserva sus acciones. */
.view > .toolbar > div:first-child:has(> h2) {display:none;}
.view > .toolbar {justify-content:flex-end;margin-bottom:15px;min-height:0;}
#ventas > .toolbar {display:none;}

/* NORA Premium v3.1 — Menciones dirigidas y contador de mensajes */
.mention-field{position:relative;min-width:0;width:100%}
.mention-field textarea{width:100%;display:block}
.mention-suggestions[hidden]{display:none!important}
.mention-suggestions{position:absolute;z-index:120;left:0;bottom:calc(100% + 6px);width:min(100%,360px);max-height:275px;overflow-y:auto;box-shadow:0 18px 45px #0009;background:#102b48;border:1px solid #365779;border-radius:12px;padding:6px;color:#eaf3ff}
.mention-suggestions-heading{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#a5bad0;padding:8px 10px}
.mention-option{display:flex!important;gap:10px;align-items:center;text-align:left;width:100%;border:0!important;border-radius:9px!important;background:transparent!important;color:#f4f8ff!important;padding:8px 10px!important;cursor:pointer}
.mention-option:hover,.mention-option.active{background:#244d73!important}
.mention-option span:nth-child(2){display:grid;gap:2px}
.mention-option strong{font-size:13px}.mention-option small{font-size:11px;color:#b2c7dc}
.mention-avatar{height:31px;width:31px;border-radius:50%;background:#2f6dac;display:grid;place-items:center;color:white;font-weight:700;flex-shrink:0}
.internal-thread-heading #internalThreadCount{font-size:12px;white-space:nowrap;letter-spacing:0}
@media(max-width:700px){.mention-suggestions{width:100%;max-height:220px}}


/* NORA26 Premium v3.2 — ergonomía, capas y fondos corporativos */
:root {
  --nora-photo-boardroom: url("https://images.unsplash.com/photo-1774186184398-1cc2da3d029e?auto=format&fit=crop&w=2000&q=80");
  --nora-photo-team: url("https://images.unsplash.com/photo-1758518729711-1cbacd55efdb?auto=format&fit=crop&w=2000&q=80");
}

/* Los modales deben quedar por encima de la cabecera sticky y no salirse del viewport. */
.modal {
  z-index: 900;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(10px, 2vh, 24px);
  align-items: center;
}
.modal-dialog {
  max-height: min(92dvh, calc(100dvh - 24px));
  max-width: calc(100vw - 24px);
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.toast { z-index: 1200; }

/* Fotografía corporativa real con capas oscuras para mantener contraste y legibilidad. */
.login-screen {
  background-color: #061b30;
  background-image:
    linear-gradient(115deg, rgba(3, 18, 34, .94) 0%, rgba(5, 28, 49, .83) 52%, rgba(4, 18, 34, .77) 100%),
    var(--nora-photo-boardroom),
    linear-gradient(135deg, #041b31, #092946);
  background-position: center, center 48%, center;
  background-size: cover;
  background-repeat: no-repeat;
}
.login-card {
  background: linear-gradient(145deg, rgba(9, 36, 61, .94), rgba(6, 25, 44, .92));
  border-color: rgba(121, 174, 218, .35);
  backdrop-filter: blur(22px);
}
.page-heading {
  padding: 18px 21px;
  border: 1px solid rgba(72, 119, 157, .48);
  border-radius: 16px;
  background-color: #092744;
  background-image:
    linear-gradient(90deg, rgba(7, 31, 53, .97) 0%, rgba(7, 31, 53, .91) 53%, rgba(7, 31, 53, .72) 100%),
    var(--nora-photo-team),
    linear-gradient(120deg, #113452, #092741);
  background-position: center, center 42%, center;
  background-size: cover;
  box-shadow: 0 12px 30px rgba(0, 5, 18, .14);
}
.page-heading .breadcrumbs { margin-bottom: 10px; }
.page-heading p { color: #c0d4e7; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(79, 132, 174, .48);
  background-color: #0b2c49;
  background-image:
    linear-gradient(100deg, rgba(7, 34, 58, .97) 0%, rgba(7, 34, 58, .90) 52%, rgba(7, 34, 58, .68) 100%),
    var(--nora-photo-boardroom),
    linear-gradient(120deg, #113452, #092741);
  background-position: center, center 55%, center;
  background-size: cover;
  box-shadow: 0 18px 44px rgba(0, 5, 18, .22);
}
.hero > * { position: relative; z-index: 1; }

/* El selector de vínculos del Centro Interno tiene encabezado y cierre explícitos. */
.internal-reference-popover[open] > .internal-reference-popover-panel {
  gap: 9px;
  width: min(430px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: min(440px, calc(100dvh - 120px));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 13px;
  border-color: #315675;
  background: rgba(7, 25, 43, .985);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .48);
}
.internal-reference-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 9px;
  border-bottom: 1px solid rgba(150, 190, 222, .18);
}
.internal-reference-popover-head strong { font-size: 12px; color: #eff7ff; }
.internal-reference-popover .internal-reference-close {
  display: inline-grid;
  flex: 0 0 32px;
  width: 32px;
  min-height: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid #355775;
  border-radius: 9px;
  color: #e8f4ff;
  font-size: 21px;
  line-height: 1;
  background: #143552;
}
.internal-reference-popover .internal-reference-close:hover { background: #214c70; border-color: #4c83b1; }
.internal-reference-popover select,
.internal-reference-popover [data-internal-add-reference] { min-height: 40px; }

@media (max-width: 760px) {
  .page-heading { align-items: flex-start; flex-direction: column; padding: 16px; gap: 14px; }
  .page-heading-actions { width: 100%; }
  .modal { padding: 10px; }
  .modal-dialog { width: calc(100vw - 20px) !important; max-width: calc(100vw - 20px); max-height: calc(100dvh - 20px); padding: 20px 14px; border-radius: 18px; }
  .sale-modal-dialog { width: calc(100vw - 20px) !important; }
  .internal-reference-popover[open] > .internal-reference-popover-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 84px;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 112px);
  }
}
@media (max-height: 700px) {
  .modal { align-items: start; }
  .modal-dialog { max-height: calc(100dvh - 20px); }
}
@media (prefers-reduced-motion: reduce) {
  .modal, .modal-dialog, .internal-reference-popover { scroll-behavior: auto; }
}

/* NORA26 Premium v3.3 — scrollbars, buscador de productos y seguridad de cuenta */
/* Barras discretas incluso en scrolls anidados: tablas, historial, formularios y menús. */
:is(html,body,.shell,.main,.nav,.modal,.modal-dialog,.table-wrap,.internal-thread-list,.internal-thread-messages,.internal-reference-popover-panel,.export-audit-list,.notification-dropdown-list,.global-search-results,.mention-suggestions,.sale-product-suggestions,textarea) {
  scrollbar-color: #416a8c rgba(7,27,45,.65);
  scrollbar-width: thin;
}
:is(.main,.nav,.modal-dialog,.table-wrap,.internal-thread-list,.internal-thread-messages,.internal-reference-popover-panel,.export-audit-list,.notification-dropdown-list,.global-search-results,.mention-suggestions,.sale-product-suggestions,textarea)::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
:is(.main,.nav,.modal-dialog,.table-wrap,.internal-thread-list,.internal-thread-messages,.internal-reference-popover-panel,.export-audit-list,.notification-dropdown-list,.global-search-results,.mention-suggestions,.sale-product-suggestions,textarea)::-webkit-scrollbar-track {
  background: rgba(7,27,45,.65);
  border-radius: 20px;
}
:is(.main,.nav,.modal-dialog,.table-wrap,.internal-thread-list,.internal-thread-messages,.internal-reference-popover-panel,.export-audit-list,.notification-dropdown-list,.global-search-results,.mention-suggestions,.sale-product-suggestions,textarea)::-webkit-scrollbar-thumb {
  background: #416a8c;
  border: 2px solid rgba(7,27,45,.65);
  border-radius: 20px;
  background-clip: padding-box;
}
:is(.main,.nav,.modal-dialog,.table-wrap,.internal-thread-list,.internal-thread-messages,.internal-reference-popover-panel,.export-audit-list,.notification-dropdown-list,.global-search-results,.mention-suggestions,.sale-product-suggestions,textarea)::-webkit-scrollbar-thumb:hover {
  background: #5d95bc;
  background-clip: padding-box;
}

/* El listado nativo <datalist> no permite estilizar su scroll: se reemplaza en ventas. */
.sale-lines-card { overflow: visible; }
.sale-line { position: relative; }
.sale-line:focus-within { z-index: 45; }
.sale-line-product { position: relative; min-width: 0; }
.sale-line-product > label { display: block; margin: 0 0 7px; color: #b7cce1; font-weight: 750; font-size: 11px; }
.sale-lookup-wrap { position: relative; min-width: 0; }
.sale-lookup-wrap > input { width: 100%; }
.sale-product-suggestions[hidden] { display: none !important; }
.sale-product-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(480px, max(100%, 290px));
  max-width: calc(100vw - 52px);
  max-height: min(292px, 42dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 120;
  padding: 6px;
  border: 1px solid #416987;
  border-radius: 14px;
  background: #0a233c;
  box-shadow: 0 18px 42px rgba(0,0,0,.6);
}
.sale-product-suggestions.open-up { top: auto; bottom: calc(100% + 8px); }
.sale-lookup-option {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  text-align: left;
  color: #f1f7ff;
  background: transparent;
  cursor: pointer;
}
.sale-lookup-option + .sale-lookup-option { border-top: 1px solid rgba(167,200,225,.07); }
.sale-lookup-option strong { font-weight: 750; font-size: 12px; line-height: 1.35; }
.sale-lookup-option small { color: #aac5dd; margin: 0; min-height: 0; font-weight: 500; font-size: 10px; }
.sale-lookup-option:hover,.sale-lookup-option.active,.sale-lookup-option:focus-visible { background: #1b4d75; outline: 1px solid #4e87b7; }
.sale-lookup-empty { padding: 13px; color: #afc7db; font-size: 12px; line-height: 1.5; }

/* Cuenta y clave: disponible para cualquier perfil, incluida la raíz. */
.profile-dropdown .profile-password-action {
  display: flex;
  width: 100%;
  margin: 8px 0 4px;
  border-top: 1px solid rgba(165,200,226,.16);
  padding-top: 13px;
  color: #e4f3ff;
}
.profile-security-dialog { width: min(470px, calc(100vw - 28px)); }
.security-modal-kicker { font-size: 10px; font-weight: 800; letter-spacing: .11em; color: #7dbded; }
.profile-security-dialog h2 { margin: 8px 42px 8px 0; }
.profile-security-dialog .modal-intro { color: #b4cce0; line-height: 1.55; }
.profile-security-dialog form { margin-top: 20px; }
.profile-security-dialog form label { font-weight: 700; color: #cad9e8; font-size: 12px; }
.profile-security-dialog input { margin-top: 8px; min-height: 43px; width: 100%; }
.profile-security-hint { margin: 0; color: #a0bcd2; font-size: 11px; line-height: 1.5; }
.profile-security-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 5px; }
.profile-security-actions button { min-height: 41px; }
.profile-security-actions button:disabled { opacity: .55; cursor: wait; }

/* Imagen empresarial solo en cabeceras informativas, nunca detrás de registros ni formularios. */
#exportaciones .export-hero {
  background-color: #0b2c49;
  background-image:
    linear-gradient(100deg,rgba(7,31,51,.97) 0%,rgba(7,31,51,.93) 53%,rgba(7,31,51,.77) 100%),
    var(--nora-photo-team);
  background-position: center, center 39%;
  background-size: cover;
  border: 1px solid rgba(78,127,166,.5);
}
#interno .internal-security-note {
  background-color: #0c304d;
  background-image:
    linear-gradient(100deg,rgba(12,46,70,.97),rgba(13,47,74,.9) 78%,rgba(13,47,74,.83)),
    var(--nora-photo-boardroom);
  background-size: cover;
  background-position: center;
}
@media (max-width: 620px) {
  .sale-product-suggestions { width: 100%; max-height: min(220px,36dvh); }
  .profile-security-actions { display: grid; grid-template-columns: 1fr; }
  .profile-security-actions button { width: 100%; }
}


/* NORA26 BRAND PATCH v3.3-brand1 · Imagen aprobada integrada sin alterar componentes. */
.nora-brand-icon { display:block; flex:none; object-fit:contain; object-position:center; }
.nora-brand-full { display:block; width:100%; height:auto; object-fit:contain; }
.nora-topbar-brand { gap:8px; }
.nora-topbar-icon { width:43px; height:43px; max-width:43px; filter:drop-shadow(0 3px 8px rgba(13,132,239,.3)); }
.nora-footer-icon { width:26px; height:30px; filter:drop-shadow(0 2px 7px rgba(24,129,241,.25)); }
.nora-login-brand { flex-direction:column; align-items:stretch; gap:11px; margin-bottom:22px; }
.nora-login-logo-surface, .nora-boot-logo-surface {
  display:grid; place-items:center; overflow:hidden;
  background:linear-gradient(135deg,rgba(244,249,255,.97),rgba(208,231,252,.94));
  border:1px solid rgba(176,213,247,.72);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 12px 35px rgba(0,9,28,.16);
}
.nora-login-logo-surface { width:100%; max-width:335px; min-height:105px; border-radius:17px; padding:9px 13px; }
.nora-login-brand-full { max-width:304px; }
.nora-login-access-label { color:#a9c9e4; font-size:11px; font-weight:750; letter-spacing:.1em; text-transform:uppercase; }
.nora-boot-logo-surface { width:min(310px,100%); border-radius:16px; padding:7px 12px; }
.nora-boot-brand-full { max-width:286px; }
@media (max-width:1150px) {
  .nora-topbar-icon { width:39px; height:39px; }
}
@media (max-width:900px) {
  .nora-topbar-brand { gap:5px; }
  .nora-topbar-icon { width:34px; height:34px; }
}
@media (max-width:620px) {
  .nora-topbar-icon { display:none; }
  .nora-login-logo-surface { max-width:100%; min-height:84px; }
}


/* NORA26 v3.3 · ajuste logo aportado por el cliente: sólo imagen y centrado.
   Se mantiene el PNG con transparencia original; el fondo claro pertenece al contenedor
   para que el texto azul oscuro del logotipo contraste con la pantalla de acceso. */
.login-screen .nora-login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-inline: auto;
  gap: 12px;
  text-align: center;
}
.login-screen .nora-login-logo-surface {
  box-sizing: border-box;
  width: min(100%, 410px);
  max-width: 410px;
  min-height: 0;
  padding: 12px 14px;
  margin-inline: auto;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(246,251,255,.97), rgba(219,238,253,.96));
  border: 1px solid rgba(190,222,248,.77);
}
.login-screen .nora-login-brand-full {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
  margin-inline: auto;
}
.login-screen .nora-login-access-label {
  display: block;
  width: 100%;
  margin: 0;
  text-align: center;
  line-height: 1.45;
}
.boot-screen .nora-boot-logo-surface {
  box-sizing: border-box;
  margin-inline: auto;
  width: min(360px,100%);
  max-width: 100%;
}
.boot-screen .nora-boot-brand-full {
  display: block;
  width: 100%;
  max-width: 332px;
  height: auto;
  margin-inline: auto;
}
@media (max-width: 620px) {
  .login-screen .nora-login-logo-surface {
    width: 100%;
    max-width: 410px;
    min-height: 0;
    padding: 10px 11px;
    border-radius: 14px;
  }
  .login-screen .nora-login-brand-full { max-width: 100%; }
}

/* NORA26 v3.3 · Hotfix visual: logotipo PNG transparente SIN tarjeta blanca.
   Mantiene el tamaño del parche aprobado, cambia solo el contenedor y el contraste. */
.login-screen .nora-login-logo-surface,
.boot-screen .nora-boot-logo-surface {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}
.login-screen .nora-login-brand-full,
.boot-screen .nora-boot-brand-full {
  filter: drop-shadow(0 0 10px rgba(125, 203, 255, .46))
          drop-shadow(0 2px 9px rgba(40, 140, 255, .20));
}


/* NORA26 v3.3 · Fotos de productos sin recorte (solo presentación).
   No toca el archivo original, su carga, el backend ni las fotos de usuarios. */
.product-grid .product-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 186px;
  padding: 12px;
  border: 1px solid rgba(113, 161, 203, .18);
  background: radial-gradient(ellipse at 50% 38%, rgba(46, 90, 130, .18), rgba(5, 21, 37, .52) 85%);
}
.product-grid .product-photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}
/* Previsualización al subir/editar: conserva la relación de aspecto completa. */
#productPhotoPreview {
  padding: 14px;
  min-height: 186px;
  border-color: rgba(95, 148, 194, .38);
  background: radial-gradient(ellipse at 50% 35%, rgba(35, 78, 118, .25), rgba(6, 24, 41, .58));
}
#productPhotoPreview img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(40dvh, 300px);
  object-fit: contain;
  object-position: center;
}
@media (max-width: 600px) {
  .product-grid .product-photo { height: 175px; padding: 10px; }
  #productPhotoPreview { min-height: 165px; padding: 10px; }
  #productPhotoPreview img { max-height: min(35dvh, 250px); }
}

/* NORA26 v3.4 · Trazabilidad de fecha y hora, sin alterar la fecha comercial. */
.nora-business-date { display: inline-block; font-weight: 600; white-space: nowrap; }
.nora-audit-time { display: flex; gap: 4px; align-items: center; margin-top: 4px; white-space: nowrap; font-size: 11px; font-weight: 500; line-height: 1.4; color: #a2c2dd; }
.nora-audit-zone { font-size: 10px; opacity: .8; }
.nora-payment-history { margin-top: 6px; max-width: 235px; }
.nora-payment-history > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; padding: 2px 3px; border-radius: 6px; font-size: 11px; font-weight: 600; color: #68b9ff; }
.nora-payment-history > summary::-webkit-details-marker { display: none; }
.nora-payment-history > summary::before { content: '▸'; margin-right: 5px; }
.nora-payment-history[open] > summary::before { content: '▾'; }
.nora-payment-history > summary:hover,.nora-payment-history > summary:focus-visible { color: #d5f0ff; background: rgba(47,132,208,.15); outline-offset: 2px; }
.nora-payment-list { margin-top: 6px; display: grid; gap: 6px; padding: 8px; border: 1px solid rgba(90,160,210,.26); border-radius: 8px; background: #091c30; }
.nora-payment-entry { display: grid; gap: 2px; font-size: 11px; overflow-wrap: anywhere; line-height: 1.35; color: #bfd4e5; }
.nora-payment-entry + .nora-payment-entry { border-top: 1px solid rgba(140,177,205,.18); padding-top: 7px; }
.nora-payment-entry > strong { color: #eaf6ff; font-size: 12px; }
.nora-payment-entry .nora-audit-time { margin: 0; white-space: normal; }
.nora-time-unknown { color: #90a3b5; font-size: 10px; }


/* NORA26 v3.4.1 · Auditoría de fechas y movimientos: composición accesible.
   No altera fechas, importes, zona horaria, APIs ni los datos almacenados. */
.nora-operation-when {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 124px;
  max-width: 164px;
  line-height: 1.35;
}
.nora-operation-when .nora-business-date {
  display: block;
  font-weight: 750;
  font-size: 12px;
  color: #eef6ff;
  white-space: nowrap;
}
.nora-audit-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  line-height: 1.3;
}
.nora-audit-meta .nora-audit-time {
  display: block;
  margin: 0;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  color: #8ccaff;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.nora-audit-meta .nora-audit-zone {
  display: block;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .01em;
  color: #91aabe;
  white-space: nowrap;
  opacity: 1;
}
.nora-amount-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  max-width: 240px;
}
.nora-amount-primary {
  display: block;
  font-weight: 750;
  font-size: 13px;
  color: #eaf5ff;
  line-height: 1.35;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/* Reservar espacio real para el historial: nunca amontonar texto con el importe. */
td.nora-activity-cell {
  vertical-align: middle;
  min-width: 184px;
  max-width: 270px;
}
.nora-activity-cell .nora-payment-history {
  width: 100%;
  max-width: 235px;
  margin: 0;
  min-width: 0;
}
.nora-payment-history > summary {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  max-width: 100%;
  min-height: 29px;
  padding: 5px 9px;
  background: rgba(31, 91, 142, .18);
  border: 1px solid rgba(83, 160, 219, .28);
  border-radius: 9px;
  color: #a7ddff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  white-space: nowrap;
  list-style: none;
  user-select: none;
}
.nora-payment-history > summary::before {
  content: '';
  width: 6px;
  height: 6px;
  flex: none;
  border: solid currentColor;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(-45deg);
  transition: transform .18s ease;
  margin: 0 2px 0 0;
}
.nora-payment-history[open] > summary::before { transform: rotate(45deg); }
.nora-payment-history > summary::-webkit-details-marker { display: none; }
.nora-payment-history > summary:hover,
.nora-payment-history > summary:focus-visible {
  color: #f4fbff;
  border-color: #519bd2;
  background: rgba(54, 134, 202, .26);
  outline-offset: 2px;
}
.nora-activity-count {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 7px;
  background: rgba(53, 152, 222, .25);
  color: #e4f5ff;
  font-size: 10px;
  font-weight: 800;
}
.nora-activity-cell .nora-payment-list {
  display: grid;
  width: 100%;
  box-sizing: border-box;
  gap: 7px;
  padding: 7px;
  margin-top: 7px;
  border: 1px solid rgba(93, 157, 204, .34);
  border-radius: 11px;
  background: linear-gradient(165deg, #0c2740, #0a2035);
  box-shadow: 0 8px 19px rgba(0, 0, 0, .13);
}
.nora-payment-entry {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  overflow-wrap: break-word;
  padding: 8px;
  border: 1px solid rgba(93, 151, 190, .19);
  border-radius: 8px;
  background: rgba(24, 60, 87, .58);
  color: #d7eafa;
  font-size: 11px;
  line-height: 1.4;
}
.nora-payment-entry + .nora-payment-entry {
  padding-top: 8px;
  border-top: 1px solid rgba(93, 151, 190, .19);
}
.nora-payment-entry-head,
.nora-payment-entry-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 9px;
}
.nora-payment-index { color: #8eb7d7; font-size: 10px; font-weight: 750; }
.nora-payment-entry-head > strong {
  color: #f1f9ff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.nora-payment-label { min-width: 0; overflow-wrap: anywhere; color: #dceafa; }
.nora-payment-date { flex: none; color: #a4bad0; font-size: 10px; white-space: nowrap; }
.nora-payment-entry-time {
  padding-top: 5px;
  border-top: 1px solid rgba(157, 188, 212, .14);
}
.nora-payment-entry-time .nora-audit-meta {
  gap: 2px;
}
.nora-time-unknown { display: block; color: #a4b9c8; font-size: 10px; line-height: 1.45; }
/* NORA26 v3.4.1 · Logo exclusivo del login: halo blanco SUAVE sobre el PNG limpio.
   No se aplica al logo del menu, la cabecera ni a la pantalla de carga. */
.login-screen .nora-login-brand-full {
  filter:
    drop-shadow(0 0 5px rgba(255, 255, 255, .16))
    drop-shadow(0 0 12px rgba(255, 255, 255, .09));
  box-shadow: none;
  text-shadow: none;
}
.login-screen .nora-login-logo-surface {
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: none;
}
@media (max-width: 640px) {
  .nora-operation-when { min-width: 115px; }
  td.nora-activity-cell { min-width: 178px; }
  .nora-payment-entry { padding: 7px; }
}


/* NORA26 Premium 3.5 — Selectores acotados de clientes y productos en Ventas */
#saleForm .sale-client-field { display:grid; gap:8px; min-width:0; position:relative; color:var(--muted); font-size:13px; font-weight:700; z-index:55; }
#saleForm .sale-client-field > label { display:block; margin:0; color:inherit; font:inherit; }
.sale-client-lookup-wrap { position:relative; min-width:0; }
.sale-client-lookup-wrap > input { width:100%; }
.sale-client-suggestions[hidden],.sale-product-suggestions[hidden] { display:none !important; }
.sale-client-suggestions { position:absolute; z-index:155; top:calc(100% + 7px); left:0; right:0; min-width:0; max-height:min(285px,38dvh); overflow-y:auto; overscroll-behavior:contain; padding:6px; border-radius:13px; border:1px solid #446d90; background:#09233d; box-shadow:0 18px 45px rgba(0,4,17,.65); }
.sale-client-suggestions.open-up { top:auto; bottom:calc(100% + 7px); }
.sale-client-suggestions .sale-lookup-option { width:100%; }
.sale-lookup-footer { padding:10px 12px; font-size:11px; line-height:1.5; color:#bad5ed; border-top:1px solid rgba(167,200,225,.12); background:rgba(29,79,119,.25); border-radius:8px; }
.sale-product-suggestions { max-height:min(300px,40dvh); scrollbar-width:thin; scrollbar-color:#457fa8 #102d48; }
.sale-client-suggestions { scrollbar-width:thin; scrollbar-color:#457fa8 #102d48; }
.sale-client-suggestions::-webkit-scrollbar,.sale-product-suggestions::-webkit-scrollbar { width:7px; }
.sale-client-suggestions::-webkit-scrollbar-track,.sale-product-suggestions::-webkit-scrollbar-track { background:#102d48; border-radius:8px; }
.sale-client-suggestions::-webkit-scrollbar-thumb,.sale-product-suggestions::-webkit-scrollbar-thumb { background:#457fa8; border:1px solid #102d48; border-radius:8px; }
#saleForm #saleSellerSelect:focus-visible,#saleForm #saleCustomerLookup:focus-visible { outline:2px solid #4aa5ef; outline-offset:1px; }
@media(max-width:620px){ .sale-client-suggestions,.sale-product-suggestions { max-height:min(220px,34dvh); } }


/* NORA26 Premium v3.4.4 — Carteras compartidas y avisos administrativos */
#clientForm .nora-client-sellers { min-width:0; display:grid; gap:11px; padding:16px; border:1px solid rgba(107,164,214,.27); border-radius:16px; background:linear-gradient(135deg,rgba(29,73,115,.22),rgba(7,22,43,.55)); }
.nora-client-sellers-title{ display:flex; gap:11px; align-items:center; min-width:0; }
.nora-client-sellers-glyph{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:12px;background:rgba(61,161,241,.18);color:#8ed0ff;font-size:20px;border:1px solid rgba(124,191,240,.30)}
.nora-client-sellers-title>div{flex:1;min-width:0;display:grid;gap:3px}.nora-client-sellers-title strong{font-size:14px;color:#eef8ff}.nora-client-sellers-title small{font-size:11px;line-height:1.45;color:#accde7}
.nora-client-sellers-count{white-space:nowrap;font-size:11px;font-weight:800;color:#bfe7ff;background:rgba(42,125,187,.2);padding:6px 9px;border:1px solid rgba(106,177,229,.25);border-radius:20px}
.nora-client-sellers-admin{display:grid;gap:9px;min-width:0}.nora-client-sellers-admin[hidden],.nora-client-sellers-help[hidden]{display:none!important}
#clientSellerSearch{width:100%;min-width:0;background:rgba(5,20,39,.65);border:1px solid rgba(107,161,210,.33);border-radius:10px;padding:11px 13px;color:#ebf7ff}
.nora-client-sellers-options{max-height:205px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#467fa9 #0b2945;padding:4px;display:grid;gap:4px;border:1px solid rgba(89,141,188,.22);border-radius:12px;background:rgba(3,17,35,.36)}
.nora-client-sellers-options::-webkit-scrollbar{width:7px}.nora-client-sellers-options::-webkit-scrollbar-thumb{background:#467fa9;border-radius:10px}
.nora-client-seller-row{display:flex!important;align-items:center;gap:10px;cursor:pointer;min-width:0;padding:9px 11px!important;margin:0!important;border-radius:10px;border:1px solid transparent;background:rgba(255,255,255,.025);transition:background .2s,border .2s}
.nora-client-seller-row:hover,.nora-client-seller-row:has(input:checked){background:rgba(49,121,184,.18);border-color:rgba(96,169,228,.26)}
.nora-client-seller-row[hidden]{display:none!important}.nora-client-seller-row input{accent-color:#40a5ee;width:17px;height:17px;flex:none}
.nora-client-seller-avatar{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:linear-gradient(135deg,#164c80,#2667a5);color:#e8f7ff;font-size:13px;font-weight:800}
.nora-client-seller-name{display:grid;gap:2px;flex:1;min-width:0}.nora-client-seller-name strong{font-size:12px;color:#f0f8ff}.nora-client-seller-name small{font-size:10px;color:#aac8e1}
.nora-client-seller-check{color:#71d3ff;opacity:0}.nora-client-seller-row:has(input:checked) .nora-client-seller-check{opacity:1}
.nora-client-sellers-help,.nora-client-seller-empty{color:#9cbed9;font-size:11px;line-height:1.5}
.nora-client-seller-empty{padding:14px 12px}
.nora-new-client-alert{position:fixed;right:24px;bottom:24px;z-index:9998;width:min(390px,calc(100vw - 28px));padding:19px;border-radius:18px;border:1px solid rgba(90,171,238,.4);background:linear-gradient(145deg,#123958,#071e36 75%);box-shadow:0 22px 60px rgba(0,8,25,.65),0 0 0 1px rgba(255,255,255,.035) inset;color:#f2f9ff;animation:nora-client-alert-in .24s ease-out}
@keyframes nora-client-alert-in{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
.nora-client-alert-top{display:flex;align-items:center;gap:8px;color:#94d2ff;text-transform:uppercase;letter-spacing:.13em;font-size:10px;font-weight:800;margin-bottom:12px}.nora-client-alert-symbol{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:rgba(59,155,233,.2);font-size:17px}
.nora-client-alert-x{margin-left:auto;border:0;background:rgba(255,255,255,.075);color:#c8e3f6;border-radius:9px;width:28px;height:28px;cursor:pointer;font-size:19px}
.nora-new-client-alert>strong{display:block;font-size:17px;line-height:1.35;color:#fff}.nora-new-client-alert>p{color:#b1cde4;line-height:1.5;font-size:12px;margin:9px 0 18px}
.nora-client-alert-footer{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.nora-client-alert-extra{font-size:10px;color:#92c4ea;flex:1}.nora-client-alert-view,.nora-client-alert-read{border:1px solid rgba(93,170,231,.35);border-radius:10px;padding:8px 12px;cursor:pointer;font-weight:700;font-size:11px;color:#edf7ff;background:rgba(55,140,210,.2)}.nora-client-alert-view{background:linear-gradient(135deg,#1478c1,#2a92da);border-color:#2788cc}
@media(max-width:620px){.nora-new-client-alert{right:14px;bottom:14px;padding:15px}.nora-client-sellers-title{flex-wrap:wrap}.nora-client-sellers-count{margin-left:49px}}


/* NORA26 Premium v3.4.5 — Control de cambios físicos y recepción */
.nora-physical-change-section .section-heading{align-items:center;gap:14px;flex-wrap:wrap}
.nora-physical-section-mark{font-size:9px;font-weight:850;letter-spacing:.14em;color:#a9dcff;border:1px solid rgba(94,173,231,.25);background:rgba(43,122,181,.12);padding:7px 10px;border-radius:999px;white-space:nowrap}
.nora-physical-pending-hint{display:inline-block;margin-top:3px;color:#f3c76d;font-size:10px}
.nora-physical-receive-button{border:1px solid rgba(87,179,241,.34)!important;background:linear-gradient(135deg,rgba(32,127,192,.35),rgba(14,58,93,.75))!important;color:#e6f6ff!important;border-radius:9px!important;padding:8px 10px!important;font-size:11px!important;font-weight:800!important;white-space:nowrap}
.nora-physical-change-dialog{max-width:980px!important;max-height:min(90dvh,900px)!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#467fa9 #0b2945}
.nora-physical-change-dialog::-webkit-scrollbar{width:8px}.nora-physical-change-dialog::-webkit-scrollbar-thumb{background:#467fa9;border-radius:10px}
.nora-physical-change-form{gap:15px!important}
.nora-physical-exchange-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;min-width:0}
.nora-physical-product-card{display:grid;align-content:start;gap:12px;min-width:0;padding:17px;border-radius:16px;border:1px solid rgba(107,164,214,.24);background:linear-gradient(150deg,rgba(23,59,91,.7),rgba(7,24,43,.76));}
.nora-physical-product-card.returned{border-top:2px solid rgba(240,185,68,.7)}.nora-physical-product-card.delivered{border-top:2px solid rgba(53,165,235,.78)}
.nora-physical-step{font-size:9px;font-weight:850;letter-spacing:.13em;color:#a9d6f8}.nora-physical-product-card h3{font-size:14px;margin:0;color:#f2f8ff}.nora-physical-product-card label{display:grid;gap:6px;font-size:11px;color:#b7d0e6}.nora-physical-product-card select,.nora-physical-product-card input{width:100%;min-width:0}
.nora-physical-product-card>small{font-size:10px;line-height:1.5;color:#9db9d1}
.nora-physical-availability{display:grid;gap:4px;border:1px solid rgba(78,158,218,.2);border-radius:10px;padding:10px 12px;background:rgba(4,18,34,.48);color:#9fc5e5;font-size:11px;line-height:1.5}
.nora-physical-availability strong{color:#7ed4ff;font-size:12px}.nora-physical-availability span{color:#a8c1d8}
.nora-physical-policy-note{display:flex;gap:12px;align-items:flex-start;padding:13px 15px;border:1px solid rgba(80,150,202,.23);border-radius:12px;background:rgba(14,50,78,.48)}
.nora-physical-policy-note strong{flex:none;color:#b8e2ff;font-size:11px}.nora-physical-policy-note span{font-size:11px;line-height:1.55;color:#abc5dc}
.nora-physical-receive-balance{display:grid;gap:5px;padding:13px 15px;border-radius:12px;border:1px solid rgba(93,170,225,.24);background:rgba(16,52,81,.48)}
.nora-physical-receive-balance strong{font-size:14px;color:#9cddff}.nora-physical-receive-balance span{font-size:11px;color:#aec9e0}
@media(max-width:700px){.nora-physical-exchange-grid{grid-template-columns:minmax(0,1fr)}.nora-physical-policy-note{display:grid;gap:5px}.nora-physical-change-dialog{width:calc(100vw - 20px)!important;max-width:none!important;padding:20px!important}.nora-physical-section-mark{margin-left:0}}

.nora-physical-receipt-history{margin-top:6px;min-width:145px}.nora-physical-receipt-history>summary{cursor:pointer;color:#92d5ff;font-size:10px;font-weight:750;white-space:nowrap}.nora-physical-receipt-history>div{display:grid;gap:7px;min-width:210px;max-width:300px;padding:8px;margin-top:6px;border:1px solid rgba(102,167,216,.22);border-radius:10px;background:#071d33}.nora-physical-receipt-history article{display:grid;gap:3px;padding-bottom:6px;border-bottom:1px solid rgba(154,195,225,.12)}.nora-physical-receipt-history article:last-child{padding-bottom:0;border-bottom:0}.nora-physical-receipt-history article strong{font-size:10px;color:#e8f6ff}.nora-physical-receipt-history article span{font-size:10px;color:#a9d5f5}.nora-physical-receipt-history article small{font-size:9px;line-height:1.45;color:#8eabc3}


/* ========================================================================
 * NORA26 Premium v3.4.9 — reparación de folios; reglas aisladas
 * La tabla mantiene sus 14 celdas originales y se presenta como tarjetas.
 * Clases explícitas en index.html: NO depende de :has() ni de columnas fijas.
 * No modifica otros listados, operaciones, permisos o JavaScript.
 * ======================================================================== */
#abordo .nora-folio-cards {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#abordo .nora-folio-cards > .nora-folio-cards-table {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  border-collapse: separate;
  border: 0;
  table-layout: auto;
  background: none;
}
#abordo .nora-folio-cards-table > thead { display: none !important; }
#abordo .nora-folio-cards-table > #onboardLoadsTable {
  display: grid !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 14px;
}
#abordo #onboardLoadsTable > tr {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    "folio folio folio seller seller seller products products products products actions actions"
    "loaded loaded adjusted adjusted sold sold changes changes returned returned actions actions"
    "available available paid paid pending pending receipt receipt status status actions actions";
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  gap: 0;
  border: 1px solid rgba(92,155,202,.31);
  border-radius: 17px;
  background: linear-gradient(140deg,#133653,#0a2640 85%);
  box-shadow: 0 12px 32px rgba(0,8,27,.18);
  align-items: stretch;
}
#abordo #onboardLoadsTable > tr:hover {
  border-color: rgba(95,181,243,.52);
  box-shadow: 0 14px 34px rgba(0,8,27,.29);
}
#abordo #onboardLoadsTable > tr > td {
  display: block !important;
  box-sizing: border-box;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100%;
  margin: 0;
  padding: 12px 13px;
  border: 0;
  border-bottom: 1px solid rgba(125,170,208,.12);
  border-right: 1px solid rgba(125,170,208,.08);
  background: transparent;
  color: #eaf5ff;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}
#abordo #onboardLoadsTable > tr > td::before {
  display: block;
  margin-bottom: 7px;
  color: #91c5e9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.35;
  text-transform: uppercase;
  white-space: normal;
}
#abordo #onboardLoadsTable > tr > td:nth-child(1)  { grid-area: folio; }
#abordo #onboardLoadsTable > tr > td:nth-child(2)  { grid-area: seller; }
#abordo #onboardLoadsTable > tr > td:nth-child(3)  { grid-area: products; }
#abordo #onboardLoadsTable > tr > td:nth-child(4)  { grid-area: loaded; }
#abordo #onboardLoadsTable > tr > td:nth-child(5)  { grid-area: adjusted; }
#abordo #onboardLoadsTable > tr > td:nth-child(6)  { grid-area: sold; }
#abordo #onboardLoadsTable > tr > td:nth-child(7)  { grid-area: changes; }
#abordo #onboardLoadsTable > tr > td:nth-child(8)  { grid-area: returned; }
#abordo #onboardLoadsTable > tr > td:nth-child(9)  { grid-area: available; }
#abordo #onboardLoadsTable > tr > td:nth-child(10) { grid-area: paid; }
#abordo #onboardLoadsTable > tr > td:nth-child(11) { grid-area: pending; }
#abordo #onboardLoadsTable > tr > td:nth-child(12) { grid-area: receipt; }
#abordo #onboardLoadsTable > tr > td:nth-child(13) { grid-area: status; }
#abordo #onboardLoadsTable > tr > td:nth-child(14) { grid-area: actions; }
#abordo #onboardLoadsTable > tr > td:nth-child(1)::before { content:"Fecha / folio"; }
#abordo #onboardLoadsTable > tr > td:nth-child(2)::before { content:"Vendedor / ruta"; }
#abordo #onboardLoadsTable > tr > td:nth-child(3)::before { content:"Productos"; }
#abordo #onboardLoadsTable > tr > td:nth-child(4)::before { content:"Salida"; }
#abordo #onboardLoadsTable > tr > td:nth-child(5)::before { content:"Regularizado"; }
#abordo #onboardLoadsTable > tr > td:nth-child(6)::before { content:"Vendido después"; }
#abordo #onboardLoadsTable > tr > td:nth-child(7)::before { content:"Cambios físicos"; }
#abordo #onboardLoadsTable > tr > td:nth-child(8)::before { content:"Devuelto"; }
#abordo #onboardLoadsTable > tr > td:nth-child(9)::before { content:"Disponible"; }
#abordo #onboardLoadsTable > tr > td:nth-child(10)::before { content:"Liquidado"; }
#abordo #onboardLoadsTable > tr > td:nth-child(11)::before { content:"Pendiente"; }
#abordo #onboardLoadsTable > tr > td:nth-child(12)::before { content:"Comprobante"; }
#abordo #onboardLoadsTable > tr > td:nth-child(13)::before { content:"Estado"; }
#abordo #onboardLoadsTable > tr > td:nth-child(14)::before { content:"Acciones"; }
#abordo #onboardLoadsTable > tr > td:nth-child(-n+3) { background: rgba(53,116,169,.10); }
#abordo #onboardLoadsTable > tr > td:nth-child(14) {
  background: rgba(1,15,30,.20);
  border-left: 1px solid rgba(113,175,220,.12);
}
#abordo #onboardLoadsTable > tr > td:nth-child(14) .row-actions {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 6px;
  width: 100%;
  min-width: 0;
  align-content: start;
}
#abordo #onboardLoadsTable > tr > td:nth-child(14) .row-actions button {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 8px 5px;
  white-space: normal;
  overflow-wrap: anywhere;
  border-radius: 9px;
  font-size: 10px;
  line-height: 1.3;
}
#abordo #onboardLoadsTable .nora-physical-pending-hint { display:block; margin-top:5px; }
#abordo #onboardLoadsTable .status { max-width:100%; white-space:normal; }
#abordo #onboardLoadsTable > tr > td[colspan] {
  grid-area: 1 / 1 / auto / -1 !important;
  width: 100%;
  min-height: 85px;
  padding: 20px;
  border: 0;
}
#abordo #onboardLoadsTable > tr > td[colspan]::before { content:none; }
@media (max-width: 1270px) {
  #abordo #onboardLoadsTable > tr {
    grid-template-columns: repeat(6,minmax(0,1fr));
    grid-template-areas:
      "folio folio folio seller seller seller"
      "products products products products actions actions"
      "loaded adjusted sold changes returned actions"
      "available available paid paid pending pending"
      "receipt receipt status status status status";
  }
  #abordo #onboardLoadsTable > tr > td:nth-child(14) .row-actions {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 720px) {
  #abordo #onboardLoadsTable > tr {
    grid-template-columns: repeat(2,minmax(0,1fr));
    grid-template-areas:
      "folio folio"
      "seller seller"
      "products products"
      "loaded adjusted"
      "sold changes"
      "returned available"
      "paid pending"
      "receipt status"
      "actions actions";
  }
  #abordo #onboardLoadsTable > tr > td { padding:11px; }
  #abordo #onboardLoadsTable > tr > td:nth-child(14) .row-actions {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  #abordo #onboardLoadsTable > tr > td:nth-child(14) { border-top:1px solid rgba(113,175,220,.22); }
}

/* Aviso de actividad al iniciar sesión: scroll fino y sin saltos visuales. */
#internalNotificationsModal .notification-modal-dialog {
  display: flex;
  flex-direction: column;
  max-height: min(88dvh, 820px);
  overflow: hidden;
  border: 1px solid rgba(100, 167, 216, .35);
  background: linear-gradient(145deg, #103452 0%, #0a2742 72%, #071d34 100%);
  box-shadow: 0 28px 85px rgba(0, 5, 19, .60);
}
#internalNotificationsModal .notification-modal-head,
#internalNotificationsModal .notification-modal-actions { flex: 0 0 auto; }
#internalNotificationsModal .notification-modal-list {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(56dvh, 560px);
  overflow-x: hidden;
  overflow-y: auto;
  gap: 10px;
  padding: 5px 9px 8px 2px;
  scrollbar-width: thin;
  scrollbar-color: #518ebb rgba(6, 25, 44, .58);
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}
#internalNotificationsModal .notification-modal-list::-webkit-scrollbar,
#notificationDropdownList::-webkit-scrollbar {
  width: 8px;
}
#internalNotificationsModal .notification-modal-list::-webkit-scrollbar-track,
#notificationDropdownList::-webkit-scrollbar-track {
  background: rgba(6, 25, 44, .68);
  border-radius: 99px;
  margin: 5px 0;
}
#internalNotificationsModal .notification-modal-list::-webkit-scrollbar-thumb,
#notificationDropdownList::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4f94ca, #336b97);
  border: 2px solid #0c2b47;
  border-radius: 99px;
  background-clip: padding-box;
}
#internalNotificationsModal .notification-modal-list::-webkit-scrollbar-thumb:hover,
#notificationDropdownList::-webkit-scrollbar-thumb:hover {
  background: #70b9eb;
  background-clip: padding-box;
}
#internalNotificationsModal .notification-item {
  border-color: rgba(105, 169, 214, .22);
  border-radius: 13px;
  background: rgba(10, 42, 69, .60);
  box-shadow: inset 3px 0 0 rgba(66, 152, 221, .28);
}
#internalNotificationsModal .notification-item.unread {
  background: linear-gradient(110deg, rgba(34, 95, 139, .45), rgba(12, 43, 69, .8));
}
#internalNotificationsModal .notification-modal-actions {
  margin-top: 14px;
  border-top-color: rgba(108, 166, 213, .20);
  background: transparent;
}
#notificationDropdownList {
  scrollbar-width: thin;
  scrollbar-color: #518ebb rgba(6, 25, 44, .58);
  overscroll-behavior: contain;
}
@media (max-width: 760px) {
  #internalNotificationsModal .notification-modal-dialog { max-height: calc(100dvh - 20px); }
  #internalNotificationsModal .notification-modal-head { gap: 10px; }
  #internalNotificationsModal .notification-modal-list { max-height: 52dvh; }
}

/* v3.5.0: campos de integración en Venta */
#saleForm [hidden]{display:none!important}
#saleForm .nora-sale-hint{padding:12px 14px;border:1px solid rgba(90,181,243,.28);border-radius:12px;background:rgba(39,116,189,.12);color:#d9edff;font-size:.87rem}
#saleForm .nora-sale-source{display:grid;gap:6px;margin-top:8px;color:#b4d8f4;font-size:.8rem}
#saleForm .nora-sale-source select{width:100%;max-width:100%;min-width:0;border:1px solid rgba(136,187,233,.35);background:#153450;color:#ecf6ff;border-radius:9px;padding:9px}
#saleForm .nora-sale-source.has-loads select{border-color:#5dbef9}

/* NORA26 v3.5.1 · Visibilidad de ventas: únicamente información, sin alterar operaciones. */
.nora-sales-visibility { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin:0 0 12px; padding:10px 14px; border:1px solid rgba(89,151,223,.26); background:linear-gradient(115deg,rgba(19,56,107,.25),rgba(8,26,54,.16)); border-radius:12px; font-size:13px; color:inherit; }
.nora-sales-visibility span { min-width:0; overflow-wrap:anywhere; opacity:.9; }
.nora-sales-visibility .nora-sales-clear { border:1px solid rgba(115,176,255,.45); border-radius:9px; background:rgba(70,138,219,.15); color:inherit; font:inherit; padding:8px 12px; min-height:35px; cursor:pointer; transition:background .15s ease; }
.nora-sales-visibility .nora-sales-clear:hover { background:rgba(70,138,219,.28); }
.nora-sales-visibility .nora-sales-clear[hidden] { display:none!important; }
@media(max-width:640px) { .nora-sales-visibility { align-items:stretch; flex-direction:column; } .nora-sales-visibility .nora-sales-clear { width:100%; } }

/* NORA26 v3.5.2 — Filtros de ventas por período; estilos aislados del resto del ERP */
#ventas .nora-sales-filters-premium {
  display:grid;grid-template-columns:minmax(190px,1.6fr) minmax(190px,1fr) minmax(170px,.85fr);
  gap:12px;align-items:end;
  background:linear-gradient(122deg,rgba(12,42,73,.98),rgba(9,32,55,.98));
  border:1px solid rgba(102,163,233,.25);border-radius:16px;padding:16px;
  box-shadow:inset 0 1px rgba(255,255,255,.045);
}
#ventas .nora-sales-filters-premium > input,
#ventas .nora-sales-filters-premium > label {width:100%;min-width:0;}
#ventas .nora-sales-filters-premium > input {min-height:44px;align-self:end;}
#ventas .nora-sales-period-field,#ventas .nora-sales-status-field,
#ventas .nora-sales-custom-dates label {
  display:flex;flex-direction:column;gap:7px;min-width:0;color:#c5ddf3;
  font-size:12px;font-weight:650;letter-spacing:.025em;
}
#ventas .nora-sales-filters-premium select,
#ventas .nora-sales-custom-dates input {width:100%;min-height:44px;max-width:100%;min-width:0;border:1px solid #3c6487;
  border-radius:11px;padding:9px 12px;background:#0e2c4b;color:#e9f5ff;font:inherit;font-size:13px;outline-offset:2px;}
#ventas .nora-sales-filters-premium select:focus-visible,
#ventas .nora-sales-custom-dates input:focus-visible {outline:2px solid #64b5f6;}
#ventas .nora-sales-custom-dates {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
  margin:-5px 0 14px;padding:13px 16px;border:1px solid rgba(102,163,233,.2);border-radius:12px;background:rgba(15,48,80,.6);}
#ventas .nora-sales-custom-dates[hidden] {display:none!important;}
#ventas .nora-sales-period-metrics {display:grid;grid-template-columns:minmax(130px,1.05fr) repeat(4,minmax(0,1fr));
  gap:9px;margin:0 0 16px;}
#ventas .nora-sales-summary-heading,#ventas .nora-sales-metric {display:flex;flex-direction:column;gap:7px;
  min-width:0;padding:13px 14px;border-radius:12px;border:1px solid rgba(89,151,223,.26);
  background:linear-gradient(155deg,rgba(18,55,90,.94),rgba(10,38,66,.94));}
#ventas .nora-sales-summary-heading {justify-content:center;}
#ventas .nora-sales-summary-heading strong{font-size:14px;color:#eaf6ff;}
#ventas .nora-sales-summary-heading small {font-size:11px;color:#9cbdd9;line-height:1.5;overflow-wrap:anywhere;}
#ventas .nora-sales-metric span {font-size:11px;line-height:1.4;color:#a8cce8;}
#ventas .nora-sales-metric strong {font-size:18px;line-height:1.35;color:#f0f8ff;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;}
#ventas .nora-sales-metric small {font-size:10px;line-height:1.45;color:#a7c6e3;}
#ventas .nora-sales-metric-pending strong {color:#f6d393;}
@media(max-width:1100px) {#ventas .nora-sales-period-metrics {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:730px) {#ventas .nora-sales-filters-premium {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:510px) {
  #ventas .nora-sales-filters-premium {grid-template-columns:minmax(0,1fr);gap:12px;padding:12px;}
  #ventas .nora-sales-custom-dates {grid-template-columns:minmax(0,1fr);}
  #ventas .nora-sales-period-metrics {grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
  #ventas .nora-sales-summary-heading {grid-column:1/-1;}
  #ventas .nora-sales-metric {padding:11px;}
  #ventas .nora-sales-metric strong {font-size:16px;}
}
