/**
 * PointDrive · Capa de marca
 * Se carga DESPUÉS de lite-purple.min.css. Solo cambia valores (colores, fuentes, radios),
 * no la estructura del tema. Tokens tomados del brand book (tokens.json).
 */

/* ---------- Fuentes (locales, SIL OFL) ---------- */
@font-face { font-family: "Sora"; font-weight: 400; font-style: normal; font-display: swap; src: url(../../fonts/pointdrive/sora-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 600; font-style: normal; font-display: swap; src: url(../../fonts/pointdrive/sora-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 700; font-style: normal; font-display: swap; src: url(../../fonts/pointdrive/sora-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(../../fonts/pointdrive/nunito-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(../../fonts/pointdrive/nunito-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 700 900; font-style: normal; font-display: swap; src: url(../../fonts/pointdrive/nunito-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(../../fonts/pointdrive/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500 700; font-style: normal; font-display: swap; src: url(../../fonts/pointdrive/jetbrains-mono-latin-500-normal.woff2) format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --pd-surface: #F4F7FB;
  --pd-surface-raised: #FFFFFF;
  --pd-surface-sunken: #EBEFF4;
  --pd-line: #D8E0E9;
  --pd-line-control: #8592A8;
  --pd-ink: #1F2A3C;
  --pd-ink-2: #4B566B;
  --pd-ink-3: #5E6A82;
  --pd-brand: #1A63D6;
  --pd-brand-hover: #1554BA;
  --pd-brand-bright: #4E97FD;
  --pd-on-brand: #FFFFFF;
  --pd-brand-soft: #E7F0FF;
  --pd-night: #0E1A33;
  --pd-pulse: #22C7E8;
  --pd-panel: #2B3445;
  --pd-panel-active: #3A4560;
  --pd-panel-ink: #C9D2E3;
  --pd-success: #157A3B;  --pd-success-soft: #E6F6EC;
  --pd-warning: #B45309;  --pd-warning-soft: #FFF4E0;
  --pd-danger: #C8281C;   --pd-danger-soft: #FDECEC;
  --pd-violet: #6D28D9;   --pd-violet-soft: #EFE9FF;
  --pd-radius-sm: 6px;
  --pd-radius-md: 10px;
  --pd-radius-lg: 14px;
  --pd-font-display: "Sora", "Nunito Sans", system-ui, sans-serif;
  --pd-font-ui: "Nunito Sans", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pd-font-data: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Bootstrap 5 */
  --bs-primary: #1A63D6;
  --bs-primary-rgb: 26, 99, 214;
  --bs-success: #157A3B;
  --bs-success-rgb: 21, 122, 59;
  --bs-danger: #C8281C;
  --bs-danger-rgb: 200, 40, 28;
  --bs-link-color: #1A63D6;
  --bs-link-hover-color: #1554BA;
  --bs-body-font-family: var(--pd-font-ui);
  --bs-body-color: #1F2A3C;
  --bs-font-monospace: var(--pd-font-data);
}

body { font-family: var(--pd-font-ui); color: var(--pd-ink); }
a { color: var(--pd-brand); }
a:hover { color: var(--pd-brand-hover); }

/* Títulos de pantalla en Sora */
h1, h2, .h1, .h2, .breadcrumb h1, .main-content-wrap .breadcrumb h1 { font-family: var(--pd-font-display); letter-spacing: -0.01em; }

/* Datos: IMEI, ICCID, referencias */
code, kbd, pre, samp, .pd-data, .imei-code, .font-monospace { font-family: var(--pd-font-data); }
.table td, .card .display-6, .card-body .text-24, .pd-kpi { font-variant-numeric: tabular-nums; }

/* ---------- Acciones ---------- */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #1A63D6;
  --bs-btn-border-color: #1A63D6;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #1554BA;
  --bs-btn-hover-border-color: #1554BA;
  --bs-btn-focus-shadow-rgb: 26, 99, 214;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #12489F;
  --bs-btn-active-border-color: #12489F;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #1A63D6;
  --bs-btn-disabled-border-color: #1A63D6;
}
.btn-outline-primary {
  --bs-btn-color: #1A63D6;
  --bs-btn-border-color: #1A63D6;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #1A63D6;
  --bs-btn-hover-border-color: #1A63D6;
  --bs-btn-active-bg: #1554BA;
  --bs-btn-active-border-color: #1554BA;
  --bs-btn-focus-shadow-rgb: 26, 99, 214;
}
.btn-success { --bs-btn-bg: #157A3B; --bs-btn-border-color: #157A3B; --bs-btn-hover-bg: #116431; --bs-btn-hover-border-color: #116431; }
.btn-danger  { --bs-btn-bg: #C8281C; --bs-btn-border-color: #C8281C; --bs-btn-hover-bg: #A92117; --bs-btn-hover-border-color: #A92117; }
.btn { border-radius: var(--pd-radius-md); font-weight: 600; }

.text-primary { color: var(--pd-brand) !important; }
.bg-primary { background-color: var(--pd-brand) !important; }
.border-primary { border-color: var(--pd-brand) !important; }
.text-success { color: var(--pd-success) !important; }
.text-danger { color: var(--pd-danger) !important; }
.text-muted, .text-gray-600 { color: var(--pd-ink-3) !important; }

/* Foco visible: 2 px con 2 px de separación */
.btn:focus-visible, a:focus-visible, .form-control:focus-visible, .form-select:focus-visible { outline: 2px solid var(--pd-brand); outline-offset: 2px; box-shadow: none; }
.form-control:focus, .form-select:focus { border-color: var(--pd-brand); box-shadow: 0 0 0 3px rgba(26, 99, 214, .18); }
.form-control, .form-select { border-color: var(--pd-line-control); border-radius: var(--pd-radius-sm); }
.form-check-input:checked { background-color: var(--pd-brand); border-color: var(--pd-brand); }

.page-item.active .page-link, .pagination .page-item.active .page-link { background-color: var(--pd-brand); border-color: var(--pd-brand); color: #fff; }
.page-link { color: var(--pd-brand); }
.nav-tabs .nav-link.active, .nav-pills .nav-link.active { color: var(--pd-brand); border-color: var(--pd-brand); }
.nav-pills .nav-link.active { background-color: var(--pd-brand); color: #fff; }

/* ---------- Superficies ---------- */
.app-admin-wrap, .main-content-wrap, body:not(.login-page) { background-color: var(--pd-surface); }
.card { border-radius: var(--pd-radius-md); border-color: var(--pd-line); }
.table thead th, table.dataTable thead th { background-color: var(--pd-surface-sunken); color: var(--pd-ink-2); }

/* ---------- Barra lateral ---------- */
.sidebar-content,
.sidebar-content.bg-gray-900 { background: var(--pd-panel) !important; }
/* Sin viñetas a la izquierda de cada opción */
.sidebar-content ul, .sidebar-content li { list-style: none; margin: 0; padding: 0; }
.sidebar-content .list-group { padding-left: 0; }

/* Opciones: mismo tamaño de icono y misma sangría para todo el menú */
.sidebar-content .nav-item,
.sidebar-content .collapse-button {
  color: var(--pd-panel-ink);
  min-height: 40px; height: auto;
  padding: 9px 12px !important;
  margin-bottom: 4px !important;
  border-radius: 10px;
  position: relative;
  transition: background-color 150ms ease, color 150ms ease;
}
.sidebar-content .nav-item > svg:first-child,
.sidebar-content .collapse-button > div > svg:first-child,
.sidebar-content .collapse-button > div > img:first-child {
  width: 18px !important; height: 18px !important; flex: 0 0 18px; opacity: .8; transition: opacity 150ms ease;
}
.sidebar-content .nav-item .item-name,
.sidebar-content .collapse-button .item-name { margin-left: 12px; margin-top: 0; font-size: 14px; line-height: 20px; }
.sidebar-content .collapse-button .collapse-icon { opacity: .6; }

/* Paso del cursor: fondo suave, sin cambiar a azul */
.sidebar-content .nav-item:hover,
.sidebar-content .collapse-button:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.sidebar-content .nav-item:hover > svg:first-child,
.sidebar-content .collapse-button:hover > div > svg:first-child { opacity: 1; }

/* Opción activa: fondo y barra de pulso. Grupo abierto: sin fondo (sin el "óvalo") */
.sidebar-content .nav-item.active { color: #fff; background: var(--pd-panel-active); box-shadow: none; }
.sidebar-content .nav-item.active > svg:first-child { opacity: 1; }
.sidebar-content .nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--pd-pulse);
}
.sidebar-content .collapse-button.collapse-active { color: #fff; background: transparent; }
.sidebar-content .collapse-button.collapse-active:hover { background: rgba(255, 255, 255, .07); }
.sidebar-content .collapse-button.collapse-active > div > svg:first-child { opacity: 1; }
.sidebar-content .collapse-button .collapse-icon { transition: transform 180ms ease; }
.sidebar-content .collapse-button.collapse-active .collapse-icon { transform: rotate(90deg); opacity: .9; }

/* Subopciones: línea guía vertical y punto de pulso solo en la activa */
.sidebar-content .collapse-content > .list-group { position: relative; }
.sidebar-content .collapse-content > .list-group::before {
  content: ""; position: absolute; left: 21px; top: 4px; bottom: 8px; width: 1px; background: #46526C;
}
.sidebar-content .collapse-content .nav-item.child-nav { padding: 7px 10px 7px 38px !important; min-height: 36px; height: auto; font-size: 13.5px; border-radius: 8px; background: transparent; }
.sidebar-content .collapse-content .nav-item.child-nav .item-name { margin-left: 0; font-size: 13.5px; line-height: 18px; white-space: normal !important; min-width: 0; }
.sidebar-content .nav-item.child-nav .prefix { position: absolute; left: 18px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; padding: 0 !important; background: transparent !important; outline: none !important; box-shadow: none; }
.sidebar-content .nav-item.child-nav:hover { background: rgba(255, 255, 255, .05); }
.sidebar-content .nav-item.child-nav.active { background: transparent; color: #fff; font-weight: 700; }
.sidebar-content .nav-item.child-nav.active::before { display: none; }
.sidebar-content .nav-item.child-nav.active .prefix { background: var(--pd-pulse) !important; box-shadow: 0 0 0 3px var(--pd-panel); }

/* Foco con teclado */
.sidebar-content .nav-item:focus-visible,
.sidebar-content .collapse-button:focus-visible { outline: 2px solid var(--pd-pulse); outline-offset: -2px; }

/* Logo */
.sidebar-header .pd-brand { display: flex; align-items: center; min-height: 36px; }
.sidebar-header .pd-logo-full { height: 36px; width: auto; display: block; }
.sidebar-header .pd-logo-mark { height: 34px; width: 34px; display: none; }
.sidebar-header .compact-button, .sidebar-header .close-sidebar { color: var(--pd-panel-ink); border-color: #4A5672 !important; }
.sidebar-header .compact-button:hover, .sidebar-header .close-sidebar:hover { color: #fff; border-color: var(--pd-pulse) !important; background: rgba(255,255,255,.06); }

/* ---------- Barra lateral contraída: riel de iconos (opción A) ---------- */
/* 72 px, solo iconos. El nombre aparece en una etiqueta al pasar el cursor y los grupos
   abren un submenú flotante (assets/js/pointdrive-sidebar.js). El contenido no se mueve. */
.compact-layout .layout-sidebar.compact { max-width: 72px !important; overflow: visible !important; position: relative; z-index: 1035; }
.layout-sidebar.compact .sidebar-content { width: 72px !important; padding: 16px 10px; }
.sidebar-content.compact .sidebar-header { flex-direction: column; gap: 12px; justify-content: center !important; margin-bottom: 20px !important; }
.sidebar-content.compact .sidebar-header > div { justify-content: center; }
.sidebar-content.compact .sidebar-header .pd-brand { margin-right: 0 !important; }
.sidebar-content.compact .sidebar-header .pd-logo-full { display: none; }
.sidebar-content.compact .sidebar-header .pd-logo-mark { display: block; }
.sidebar-content.compact .sidebar-header .app-logo { width: 40px; margin-right: 0 !important; }
.sidebar-content.compact .compact-button svg { transform: rotate(180deg); }
.sidebar-content.compact .nav-item,
.sidebar-content.compact .collapse-button { justify-content: center; padding: 11px 0 !important; }
.sidebar-content.compact .collapse-button > div { justify-content: center; }
.sidebar-content.compact .nav-item .item-name,
.sidebar-content.compact .collapse-button .item-name,
.sidebar-content.compact .collapse-button .collapse-icon { display: none; }
.sidebar-content.compact .collapse-content { max-height: 0 !important; overflow: hidden; }
/* El tema original despliega la barra al pasar el cursor; en el riel se queda fija */
.sidebar-content.compact .sidebar-header,
.sidebar-content.compact:hover .sidebar-header { justify-content: center !important; }
.sidebar-content.compact .sidebar-header .compact-button,
.sidebar-content.compact:hover .sidebar-header .compact-button { display: flex !important; }
.sidebar-content.compact:hover .nav-item,
.sidebar-content.compact:hover .collapse-button { justify-content: center; padding: 11px 0 !important; }
.sidebar-content.compact:hover .nav-item .item-name,
.sidebar-content.compact:hover .collapse-button .item-name,
.sidebar-content.compact:hover .collapse-button .collapse-icon { display: none !important; }
/* Grupo que contiene la pantalla actual: punto de pulso junto al icono */
.sidebar-content.compact .collapse-button.pd-has-active::after {
  content: ""; position: absolute; right: 9px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--pd-pulse);
}
.sidebar-content.compact .collapse-button.pd-has-active > div > svg:first-child { opacity: 1; }
.sidebar-content.compact .collapse-button.pd-fly-open { background: rgba(255, 255, 255, .07); color: #fff; }

/* Etiqueta y submenú flotantes (se dibujan fuera de la barra para no cortarse) */
.pd-side-tip {
  position: fixed; z-index: 1060; pointer-events: none;
  background: var(--pd-night); color: #fff; font: 700 13px/1.2 var(--pd-font-ui, inherit);
  padding: 7px 11px; border-radius: 8px; white-space: nowrap;
  box-shadow: 0 8px 20px rgba(14, 26, 51, .25);
  opacity: 0; visibility: hidden; left: -9999px; transform: translate(-4px, -50%); transition: opacity 120ms ease, transform 120ms ease;
}
.pd-side-tip::before { content: ""; position: absolute; left: -5px; top: 50%; margin-top: -5px; border: 5px solid transparent; border-left: 0; border-right-color: var(--pd-night); }
.pd-side-tip.show { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.pd-side-fly {
  position: fixed; z-index: 1060; min-width: 220px; max-width: 280px; max-height: calc(100vh - 24px); overflow-y: auto;
  background: var(--pd-panel); border: 1px solid #3E4A63; border-radius: 12px; padding: 8px;
  box-shadow: 0 16px 36px rgba(14, 26, 51, .35);
  opacity: 0; visibility: hidden; transform: translateX(-4px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 0s linear 120ms;
}
.pd-side-fly.show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.pd-side-fly::before { content: ""; position: absolute; left: -14px; top: 0; bottom: 0; width: 14px; }
.pd-side-fly h5 { margin: 4px 10px 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #8C97AE; font-weight: 700; }
.pd-side-fly a {
  display: flex; align-items: center; min-height: 36px; padding: 7px 12px; border-radius: 8px;
  color: var(--pd-panel-ink); font-size: 13.5px; line-height: 18px; text-decoration: none;
}
.pd-side-fly a:hover, .pd-side-fly a:focus-visible { background: rgba(255, 255, 255, .07); color: #fff; outline: none; }
.pd-side-fly a.active { background: var(--pd-panel-active); color: #fff; font-weight: 700; }
@media (max-width: 991.98px) { .pd-side-tip, .pd-side-fly { display: none !important; } }

/* ---------- Pie de página ---------- */
.app-footer .logo.pd-footer-logo { height: 28px; width: auto; margin-right: 16px; }

/* ---------- Etiquetas de estado ---------- */
.badge.bg-success, .badge-success { background-color: var(--pd-success-soft) !important; color: var(--pd-success) !important; }
.badge.bg-danger, .badge-danger { background-color: var(--pd-danger-soft) !important; color: var(--pd-danger) !important; }
.badge.bg-warning, .badge-warning { background-color: var(--pd-warning-soft) !important; color: var(--pd-warning) !important; }
.badge.bg-primary, .badge-primary, .badge.bg-info, .badge-info { background-color: var(--pd-brand-soft) !important; color: var(--pd-brand) !important; }

/* ---------- Login ---------- */
.login-pointdrive .pd-login-brand { text-align: center; margin: 0 auto 20px; padding: 14px 22px 12px; width: max-content; max-width: 100%; border-radius: var(--pd-radius-lg); background: rgba(14, 26, 51, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.login-pointdrive .pd-login-brand img { height: 52px; width: auto; display: inline-block; }
.login-pointdrive .pd-login-brand p { margin: 6px 0 0; color: #E6EBF3; font-size: 14px; letter-spacing: .01em; }
.login-pointdrive .login-main { border-radius: var(--pd-radius-lg); box-shadow: 0 24px 60px rgba(4, 10, 25, .45); }
.login-pointdrive .login-main .theme-form h1 { font-family: var(--pd-font-display); font-size: 24px; font-weight: 700; color: var(--pd-ink); margin-bottom: 4px; }
.login-pointdrive .login-main .theme-form p { color: var(--pd-ink-3); }
.login-pointdrive .login-main .theme-form .form-group input { background-color: var(--pd-surface-raised); border: 1px solid var(--pd-line-control); }
.login-pointdrive .login-main .theme-form .link.text-danger { color: var(--pd-brand) !important; }
.login-pointdrive .login-main .btn-primary { height: 44px; font-size: 15px; }
.auth-logo img { max-height: 48px; }

/* ---------- POS: logo en el encabezado ---------- */
.pd-header-logo img { height: 30px; width: auto; display: block; }
@media (max-width: 575px) { .pd-header-logo img { height: 24px; } }

/* ---------- Formularios: etiquetas y campos legibles ---------- */
.form-group label { font-size: 13px; color: var(--pd-ink-2); font-weight: 600; }
.form-control:not(.form-control-sm), .form-select:not(.form-select-sm), .input-group-text { font-size: 14px; }
.form-control-sm, .form-select-sm { font-size: 13px; }
.form-control::placeholder { color: #8592A8; opacity: 1; }
.form-control::-moz-placeholder { color: #8592A8; opacity: 1; }
.input-group-text { background: var(--pd-surface-sunken); border-color: var(--pd-line-control); color: var(--pd-ink-2); }

/* ---------- Importes: Costo y Precio ---------- */
.pd-money-field .input-group-text { font-family: var(--pd-font-data); font-weight: 500; min-width: 40px; justify-content: center; }
.pd-money-input { font-size: 16px !important; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; color: var(--pd-ink); }
.pd-money-input::placeholder { font-weight: 400; }
.table td.pd-money, table.dataTable td.pd-money { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--pd-ink); }
.table th.pd-money, table.dataTable th.pd-money { text-align: right; }
.v-select .vs__selected, .v-select .vs__search, .v-select .vs__search::placeholder { font-size: 14px; }

/* ---------- Celular: áreas táctiles de al menos 40 px ---------- */
@media (max-width: 575.98px) {
  .form-control:not(.form-control-sm), .form-select, .vs__dropdown-toggle { min-height: 40px; }
  .dataTables_filter input { min-height: 40px; font-size: 14px !important; }
  .form-control-sm { min-height: 36px; }
  .table .btn-sm, table.dataTable .btn-sm { min-width: 36px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; }
  .vs__clear { min-width: 28px; min-height: 28px; padding: 0 !important; }
  .close-sidebar { min-width: 36px; min-height: 36px; justify-content: center; }
}

/* ---------- Celular y tablet: acomodo de barras y tablas ---------- */
@media (max-width: 767.98px) {
  /* Inventario por IMEI: filtros a todo lo ancho */
  .imei-filters > div { min-width: 0 !important; flex: 1 1 100%; margin: 0 !important; }
  .imei-filters > .ms-auto { flex-wrap: wrap; }
  .imei-filters form { flex: 1 1 100%; }
  .imei-filters form input { width: auto !important; flex: 1 1 auto; }
  .imei-filters > .ms-auto > .btn { flex: 1 1 100%; }
  /* Controles de DataTables alineados */
  .dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dt-buttons { text-align: left !important; float: none !important; margin-bottom: 8px; }
  .dataTables_wrapper .dataTables_filter label, .dataTables_wrapper .dataTables_filter input { width: 100% !important; margin-left: 0 !important; display: block; }
}
@media (max-width: 575.98px) {
  /* Tablero: sin ilustración para que las cifras no se partan */
  img[src$="overview.png"] { display: none; }
  .card .fs-4 { white-space: nowrap; }
  /* POS: solo el isotipo en el encabezado */
  .pd-header-logo { margin-left: 8px !important; margin-right: 4px !important; }
  .pd-header-logo img { content: url(../../../images/pointdrive-isotipo.svg); height: 28px !important; width: 28px; }
}
/* Casilla de IMEI bloqueada: texto legible */
.checkbox input:disabled ~ span:not(.checkmark) { color: var(--pd-ink-3); opacity: 1; }

/* Celular, tablet y laptop chica: un renglón por registro y desplazamiento horizontal en tablas */
@media (max-width: 1199.98px) {
  .table-responsive table.table td, .dataTables_wrapper table.dataTable td { white-space: nowrap; }
}
/* Inventario por IMEI: renglones compactos en cualquier ancho y cifras sin partir */
#imei_table td { white-space: nowrap; }
.imei-kpi .kpi-value { white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Menú de idiomas: elemento activo con colores de marca */
.button_language .dropdown-item { display: flex; align-items: center; gap: 10px; }
.button_language .dropdown-item.active, .button_language .dropdown-item:active { background: var(--pd-brand-soft); color: var(--pd-brand); font-weight: 600; }
.button_language .flag-icon { border-radius: 3px; box-shadow: 0 0 0 1px rgba(14, 26, 51, .12); }

/* Menú en celular: el grupo abierto muestra sus opciones (antes quedaba abierto pero vacío) */
.layout-sidebar-mobile .collapse-button.collapse-active + .collapse-content { max-height: none !important; }

/* Contador en el menú (Almacén → Por conciliar) */
.sidebar-content .pd-menu-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #F59E0B; color: #0E1A33; font-size: 11.5px; font-weight: 800; display: inline-grid; place-items: center; font-family: var(--pd-font-mono, monospace); }
.pd-side-fly .pd-menu-badge { display: none; }

/* POS: el tema escribía cada palabra de los botones con mayúscula ("Pagar Ahora").
   En español solo va mayúscula al inicio. */
html[lang^="es"] .btn-primary { text-transform: none; }

/* Celular: la "×" para borrar una selección (vue-select) medía 10 px; se amplía el área táctil sin moverla */
@media (max-width: 767px) {
  .v-select .vs__clear { position: relative; }
  .v-select .vs__clear::after { content: ""; position: absolute; inset: -11px; }
}

/* ---------- Accesibilidad: contraste mínimo 4.5:1 (WCAG 2 AA) ----------
   Solo se oscurece el texto; bordes y fondos conservan el color de la marca. */
html body table.dataTable thead th,
html body .table thead th { color: var(--pd-ink-2); }            /* antes rgba(73,106,181,.62): 2.35:1 */
html body .btn-outline-success { --bs-btn-color: #15803D; }       /* verde #33D067: 2.02:1 → 5.0:1 */
html body .btn-outline-info { --bs-btn-color: #1D5FC9; }          /* azul #4E97FD: 2.92:1 → 6.0:1 */
html body .badge-outline-success { color: #15803D; }
html body .badge-outline-warning { color: #8A5A00; }              /* amarillo #FFC107: 1.63:1 → 5.9:1 */
html body .badge-outline-danger { color: #B42318; }
html body .badge-outline-info { color: #1D5FC9; }

/* ---------- Celular: sin zoom automático al escribir ----------
   iOS acerca la pantalla cuando un campo tiene letra menor de 16 px (búsquedas, escaneo, cantidades). */
@media (max-width: 767px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]),
  select, textarea, .form-control, .form-select, .vs__search, .dataTables_filter input {
    font-size: 16px !important;
  }
}

/* Botones de solo ícono del encabezado (idioma y cuenta): se ven igual que antes y ahora reciben foco */
.pd-icon-btn { background: transparent; border: 0; padding: 0; margin: 0; color: inherit; font: inherit; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; }
.pd-icon-btn:focus-visible { outline: 2px solid var(--pd-brand, #1D5FC9); outline-offset: 3px; border-radius: 999px; }

/* ---------- Accesibilidad, segunda ronda (26/10/2026) ---------- */
/* Texto escrito en los campos: el tema del POS lo pintaba gris #7E7E7E (3.8:1) */
html body .form-control { color: var(--pd-ink); }
/* El style.css del POS lo fuerza con !important; solo se corrige dentro del POS */
html body.pos-body .form-control { color: var(--pd-ink) !important; }
/* "Anterior / Siguiente" de las tablas: #7D879C (3.6:1) → 7:1 */
html body .dataTables_wrapper .paginate_button.previous a,
html body .dataTables_wrapper .paginate_button.next a,
html body .dataTables_wrapper .paginate_button.previous,
html body .dataTables_wrapper .paginate_button.next { color: var(--pd-ink-2); }
/* Botón de idioma: área táctil de 40 px (antes 17 px) sin cambiar el ícono */
.pd-icon-btn { min-width: 40px; min-height: 40px; justify-content: center; }
.button_language { margin-top: 0; }
