    * {

      box-sizing: border-box;

      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    }

    input[type="text"],

    input[type="date"],

    input[type="number"],

    select {

      border: 1px solid #7f9db9;

      background-color: #ffffff;

      padding: 8px 12px;

      color: #000000;

      font-weight: 500;

      height: 40px;

      box-sizing: border-box;

      transition: all 0.2s ease;

    }

    /* Clase espec&iacute;fica para inputs dentro de GRIDS (Tablas) para evitar bordes dobles */

    .grid-input {

      border: none !important;

      height: 100% !important;

      width: 100% !important;

      padding: 0 5px !important;

      font-family: 'Courier New', Courier, monospace !important;

      font-size: 13px !important;

      background: transparent !important;

      outline: none !important;

      box-shadow: none !important;

      display: block !important;

      margin: 0 !important;

    }

    textarea {

      border: 1px solid #7f9db9;

      background-color: #ffffff;

      padding: 8px 12px;

      color: #000000;

      font-weight: 500;

      box-sizing: border-box;

      transition: all 0.2s ease;

      resize: none !important;

      /* Inhabilitar cambio de tama&ntilde;o manual */

    }

    input:focus,

    select:focus,

    textarea:focus {

      border-color: #f59e0b !important;

      /*  intenso (marca de la casa) al enfocar */

      box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2) !important;

      background-color: #fffbeb !important;

      outline: none !important;

    }

    body {

      margin: 0;

      background-color: var(--gray-light);

      color: var(--text-color);

      display: flex;

      flex-direction: column;

      height: 100vh;

      overflow: clip;

    }

    /* PARCHE CRÍTICO: Reinicio total a comportamiento nativo */

    #comAlmacenId,

    #salAlmacen {

      all: revert !important;

      display: inline-block !important;

      min-width: 250px !important;

      height: 30px !important;

      font-size: 14px !important;

      margin-top: 5px !important;

      color: black !important;

      background: white !important;

      border: 1px solid #777 !important;

    }

    select:focus {

      background-color: #ffffcc !important;

    }

    /* Navbar & Submenus —  Dark Industrial Refinado */

    @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

    nav {
      position: relative;
      z-index: 9999;
      background: linear-gradient(90deg, #1A316B 0%, #1e3a7a 50%, #1A316B 100%);

      color: #e0e0e0;

      display: flex;

      align-items: stretch;

      padding: 0 16px;

      border-bottom: 2px solid #f59e0b;

      box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);

      font-family: 'Outfit', sans-serif;

      min-height: 38px;

      letter-spacing: 0.03em;

    }

    /* Logo pill al inicio del nav */

    nav::before {

      content: 'GestorOnLine';

      font-family: 'Outfit', sans-serif;

      font-weight: 800;

      font-size: 12px;

      letter-spacing: 0.14em;

      color: #f59e0b;

      display: flex;

      align-items: center;

      padding: 0 18px 0 4px;

      border-right: 1px solid rgba(255, 255, 255, 0.15);

      margin-right: 8px;

      white-space: nowrap;

      text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);

    }

    .menu-item {

      position: relative;

      padding: 0 16px;

      cursor: pointer;

      user-select: none;

      display: flex;

      align-items: center;

      font-size: 13px;

      font-weight: 500;

      color: #ffffff;

      transition: color 0.2s ease;

    }

    /* Underline animado al hover */

    .menu-item::after {

      content: '';

      position: absolute;

      bottom: 0;

      left: 16px;

      right: 16px;

      height: 2px;

      background: #f59e0b;

      transform: scaleX(0);

      transition: transform 0.2s ease;

      transform-origin: center;

    }

    .menu-item:hover {

      color: #ffffff;

      background: transparent;

    }

    .menu-item:hover::after {

      transform: scaleX(1);

    }

    /* Submen&uacute; mejorado (con puente de mouse) */

    /* Regla Global para selecci&oacute;n de filas - Asegura visibilidad del texto */

    .selected-row,

    tr.selected,

    .selected-row td,

    tr.selected td,

    .selected-row span,

    .selected-row div {

      background-color: #000000 !important;

      color: #ffffff !important;

    }

    .medicos-table {

      table-layout: fixed !important;

      width: 100% !important;

      border-collapse: collapse !important;

    }

    .medicos-table td,

    .medicos-table th {

      overflow: hidden;

      text-overflow: ellipsis;

      white-space: nowrap;

      padding: 2px 10px !important;

      line-height: 1 !important;

      height: 22px !important;

    }

    .medicos-table tr {

      height: 22px !important;

    }

    .submenu {
      display: none;
      position: absolute;
      top: calc(100% - 4px);
      left: 0;
      background: #152654;
      min-width: 200px;
      max-height: 80vh;
      overflow-y: auto;
      z-index: 1000;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-top: 2px solid #f59e0b;
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
      border-radius: 0 0 8px 8px;
    }

    .submenu::-webkit-scrollbar {
      width: 6px;
    }

    .submenu::-webkit-scrollbar-track {
      background: rgba(21, 38, 84, 0.5);
    }

    .submenu::-webkit-scrollbar-thumb {
      background: #f59e0b;
      border-radius: 3px;
    }

    .submenu::-webkit-scrollbar-thumb:hover {
      background: #d97706;
    }

    /* Puente invisible para que el mouse no pierda el hover al bajar */

    .submenu::before {

      content: '';

      position: absolute;

      top: -15px;

      /* Cubre el espacio de transici&oacute;n */

      left: 0;

      right: 0;

      height: 15px;

      background: transparent;

    }

    .menu-item:hover .submenu {

      display: block;

    }

    .submenu-item {

      padding: 9px 18px;

      color: rgba(255, 255, 255, 0.75);

      cursor: pointer;

      font-size: 12px;

      font-weight: 400;

      border-bottom: 1px solid rgba(255, 255, 255, 0.06);

      transition: background 0.15s, color 0.15s, padding-left 0.15s;

      letter-spacing: 0.02em;

    }

    .submenu-item:hover {

      background: rgba(245, 158, 11, 0.12);

      color: #f59e0b;

      padding-left: 24px;

    }

    /* Work Area */

    .workspace {

      flex: 1;

      position: relative;

      padding: 12px;

      display: flex;

      align-items: flex-start;

      justify-content: flex-start;

      background-color: #ffffff;

    }

    /* View Panel (Modern Adaptive Layout) */

    .view-panel {

      display: none;

      width: 100%;

      height: calc(100vh - 45px);

      /* Optimizado para Nav de ~38px */

      background: var(--bg-color);

      border: 1px solid #ddd;

      flex-direction: column;

      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);

      animation: panelFadeIn 0.3s ease-out;

      overflow: hidden;

    }

    @keyframes panelFadeIn {

      from {

        opacity: 0;

        transform: translateY(10px);

      }

      to {

        opacity: 1;

        transform: translateY(0);

      }

    }

    .container {

      display: flex;

      flex: 1;

      padding: 16px 20px;

      gap: 15px;

      overflow: hidden;

      width: 100%;

      height: 100%;

    }

    /* Tree container dynamic sizing */

    .tree-container {

      flex: 1;

      background: #fff;

      border: 1px solid #d0d0d0;

      padding: 10px;

      overflow: auto;

      display: flex;

      flex-direction: column;

      min-width: 0;

      /* Important for grid/flex inside */

    }

    /* Responsive Grid for Forms */

    .grid-form {

      display: grid;

      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

      gap: 15px;

      width: 100%;

    }

    /* Sidebar controls adaptation */

    .controls {

      width: clamp(160px, 15vw, 220px);

      display: flex;

      flex-direction: column;

      gap: 10px;

      flex-shrink: 0;

    }

    @media print {

      @page {

        size: letter;

        margin: 10mm;

      }

      nav,
      .view-header,
      .view-panel .view-header,
      #view-rep-existencias .view-header,
      #view-rep-existecias-farmacia .view-header,
      #view-rep-kardex .view-header,
      #exist-filters-container,
      .no-print,
      .btn-classic,
      button,
      .modal-overlay,
      #kardex-config-panel,
      .submenu,
      .menu-item {
        display: none !important;
      }

      body,

      .workspace {

        background: white !important;

        height: auto !important;

        overflow: visible !important;

        padding: 0 !important;

        margin: 0 !important;

      }

      /* Solo mostrar el panel que est&aacute; activo en pantalla, los dem&aacute;s ocultos */

      .view-panel {

        display: none !important;

        border: none !important;

        box-shadow: none !important;

      }

      #view-rep-existencias:has(#exist-viewer-panel[style*="display: flex"]),
      #view-rep-existecias-farmacia:has(#existFarmacia-viewer-panel[style*="display: flex"]),
      #view-rep-kardex:has(#kardex-results-panel[style*="display: flex"]) {
        display: block !important;
        height: auto !important;
        overflow: visible !important;
      }

      #exist-viewer-panel,
      #existFarmacia-viewer-panel,
      #kardex-results-panel {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
      }

      #kardex-results-panel>div {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        padding: 0 !important;
        background: transparent !important;
      }

      #exist-sheet-area,
      #existFarmacia-sheet-area,
      #kardex-sheet-area {
        transform: none !important;
        box-shadow: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
      }

      #table-kardex-sheet {
        page-break-inside: auto !important;
      }

      #table-kardex-sheet thead {
        display: table-header-group !important;
      }

      #table-kardex-sheet tr {
        page-break-inside: avoid !important;
      }

    }


    :root {

      --primary: #007bff;

      --bg: #f8f9fa;

      --text: #333;

      --border: #dee2e6;

      --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

      --radius: 6px;

    }

    /* Dashboard Layout Responsive & Touch Styles */
    #btn-edit-layout {
      background: white;
      border: 1px solid #cbd5e1;
      border-radius: 20px;
      padding: 8px 16px;
      font-size: 13px;
      font-weight: 700;
      color: #1e3a8a;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
      transition: all 0.2s;
      outline: none;
    }

    #btn-edit-layout:hover {
      background: #eff6ff;
    }

    #btn-edit-layout.active-edit {
      background: #10b981 !important;
      color: white !important;
      border-color: #10b981 !important;
    }

    #btn-reset-layout {
      background: #f8fafc;
      border: 1px solid #cbd5e1;
      border-radius: 20px;
      padding: 8px 14px;
      font-size: 13px;
      font-weight: 700;
      color: #475569;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all 0.2s;
      outline: none;
    }

    #btn-reset-layout:hover {
      background: #fee2e2;
      color: #dc2626;
      border-color: #fca5a5;
    }

    #dashboard-canvas {
      position: relative;
      width: 100%;
      min-height: 850px;
      background: #ffffff;
      box-sizing: border-box;
      touch-action: pan-y;
    }

    .designer-widget {
      position: absolute;
      box-sizing: border-box;
      user-select: none;
      touch-action: none;
    }

    #widget-ventas-sucursal,
    #widget-ventas-departamento,
    #widget-ingresos-forma-pago {
      display: flex !important;
      flex-direction: column;
      min-height: 320px;
    }

    #widget-body-sucursal,
    #widget-body-departamento,
    #widget-body-forma-pago {
      flex: 1;
      overflow-y: auto;
      min-height: 180px;
      padding-right: 4px;
    }

    .resizer-r,
    .resizer-b,
    .resizer-br {
      display: none;
      touch-action: none;
    }

    .active-edit .resizer-r,
    .active-edit .resizer-b,
    .active-edit .resizer-br {
      display: block;
    }

    .active-edit .designer-widget {
      outline: 2px dashed #3b82f6 !important;
      cursor: move !important;
      box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.25) !important;
    }

    /* Solución definitiva y agresiva para el color beige de autofill y foco en campos oscuros */
    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    input:-webkit-autofill:active,
    textarea:-webkit-autofill,
    textarea:-webkit-autofill:hover,
    textarea:-webkit-autofill:focus,
    textarea:-webkit-autofill:active,
    select:-webkit-autofill {
      -webkit-box-shadow: 0 0 0 1000px #1e293b inset !important;
      -webkit-text-fill-color: #ffffff !important;
      caret-color: #ffffff !important;
      transition: background-color 50000s ease-in-out 0s !important;
    }

    #modalOverlayProveedor input,
    #modalOverlayProveedor textarea,
    #modalOverlayProveedor select {
      color: #ffffff !important;
    }

    #modalOverlayProveedor input:focus,
    #modalOverlayProveedor textarea:focus,
    #modalOverlayProveedor select:focus {
      background-color: #1e293b !important;
      color: #ffffff !important;
      -webkit-text-fill-color: #ffffff !important;
      box-shadow: 0 0 0 2px #3b82f6 !important;
    }

    body {

      font-family: 'Inter', sans-serif;

      background-color: var(--bg);

      color: var(--text);

      margin: 0;

      overflow: clip;

    }

    /* Standardized Premium Input/Select Style */

    input[type="text"],

    input[type="number"],

    select,

    textarea {

      border: 1px solid var(--border);

      border-radius: var(--radius);

      padding: 8px 12px;

      font-size: 14px;

      font-family: inherit;

      transition: border-color 0.2s, box-shadow 0.2s;

      outline: none;

      width: 100%;

      box-sizing: border-box;

    }

    input:focus,

    select:focus,

    textarea:focus {

      border-color: var(--primary);

      box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);

    }

    /* Clean Buttons */

    button {

      cursor: pointer;

      border-radius: var(--radius);

      font-family: 'Inter', sans-serif;

      font-weight: 500;

      transition: background 0.2s, transform 0.1s;

      border: 1px solid transparent;

    }

    button:active {

      transform: translateY(1px);

    }

    .btn-primary {

      background-color: #2563eb;

      color: #fff;

      padding: 10px 20px;

      border-radius: 6px;

      border: none;

      cursor: pointer;

      font-weight: 600;

    }

    .btn-primary:hover {

      background-color: #1d4ed8;

    }

    .btn-secondary {

      background-color: #fff;

      color: #333;

      border: 1px solid var(--border);

      padding: 10px 20px;

    }

    .btn-secondary:hover {

      background-color: #f1f1f1;

    }

    /* Sidebar & Menu refinements */

    .sidebar {

      width: 240px;

      background: #fff;

      border-right: 1px solid var(--border);

      height: 100vh;

      padding: 20px 0;

      box-shadow: 2px 0 5px rgba(0, 0, 0, 0.02);

    }

    .menu-item {

      padding: 12px 25px;

      cursor: pointer;

      font-size: 15px;

      font-weight: 500;

      color: #ffffff;

      transition: all 0.2s;

    }

    .menu-item:hover {

      background: #f0f4f8;

      color: var(--primary);

    }

    /* Panel & Workspace */

    .panel {

      background: #fff;

      box-shadow: var(--shadow);

      border-radius: 8px;

      border: 1px solid var(--border);

    }

    /* Modal refine */

    .modal-content {

      background: #fff;

      border-radius: 12px;

      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);

      border: none;

      overflow: hidden;

    }

    .modal-header {

      padding: 20px 30px;

      border-bottom: 1px solid var(--border);

      font-size: 1.2em;

      font-weight: 600;

    }

    .modal-overlay {

      position: fixed;

      top: 0;

      left: 0;

      width: 100%;

      height: 100%;

      background: rgba(0, 0, 0, 0.7);

      display: none;

      align-items: center;

      justify-content: center;

      z-index: 999999;

    }

    .modal {

      background: #fff;

      border: 1px solid var(--border);

      padding: 20px;

      min-width: 300px;

      box-shadow: var(--shadow);

      border-radius: 8px;

    }

    .modal h2 {

      margin-top: 0;

      border-bottom: 2px solid var(--border);

      padding-bottom: 5px;

    }

    .modal input {

      width: 100%;

      padding: 8px;

      border: 1px solid var(--border);

      margin-bottom: 15px;

      border-radius: var(--radius);

    }

    .modal .btn-group {

      display: flex;

      gap: 10px;

      justify-content: flex-end;

    }

    /* Form Grids */

    .checkbox-group {

      display: flex;

      align-items: center;

      gap: 5px;

      margin-bottom: 10px;

    }

    .checkbox-group input {

      width: auto !important;

      margin: 0 !important;

    }

    .grid-form {

      display: grid;

      grid-template-columns: 1fr 1fr;

      gap: 15px;

    }

    /* Tree items mechanics */

    ul {

      list-style: none;

      padding-left: 20px;

      margin: 0;

    }

    .tree-root {

      padding-left: 0;

    }

    .item-row {

      display: flex;

      align-items: center;

      padding: 5px;

      cursor: pointer;

      border: 1px solid transparent;

    }

    .item-row:hover {

      background-color: #f8f9fa;

    }

    .item-row.selected {

      background-color: var(--primary);

      color: white;

    }

    .caret {

      margin-right: 5px;

      font-weight: bold;

      display: inline-block;

      width: 15px;

      text-align: center;

    }

    .hidden {

      display: none !important;

    }

    /* Login Overlay */

    .login-overlay {

      position: fixed;

      top: 0;

      left: 0;

      width: 100vw;

      height: 100vh;

      background: #333;

      display: flex;

      align-items: center;

      justify-content: center;

      z-index: 9999999;

    }

    .login-box {

      background: #fff;

      padding: 40px;

      border-radius: 12px;

      min-width: 350px;

      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

      display: flex;

      flex-direction: column;

      gap: 15px;

    }

    .login-box h1 {

      margin: 0 0 20px 0;

      text-align: center;

      border-bottom: 1px solid var(--border);

      padding-bottom: 10px;

      font-weight: 600;

    }

    .login-box input {

      padding: 12px;

      border: 1px solid var(--border);

      border-radius: var(--radius);

      font-size: 16px;

    }

    .login-box button {

      background: #000;

      color: white;

      border: none;

      padding: 15px;

      font-size: 16px;

      margin-top: 10px;

      cursor: pointer;

      font-weight: bold;

      border-radius: var(--radius);

    }

    .login-box button:hover {

      background: #333;

    }

    /* Tabs */

    .tab-btn {

      background: #eee;

      border: 1px solid var(--border);

      border-bottom: none;

      padding: 10px 20px;

      cursor: pointer;

      border-radius: 6px 6px 0 0;

      margin-right: 2px;

    }

    .tab-btn.active {

      background: white;

      border-top: 3px solid var(--primary);

      font-weight: 600;

    }

    .tab-content {

      padding: 15px 0;

    }

    /* Ocultar flechas de n&uacute;meros globalmente */

    input::-webkit-outer-spin-button,

    input::-webkit-inner-spin-button {

      -webkit-appearance: none;

      margin: 0;

    }

    input[type=number] {

      -moz-appearance: textfield;

      appearance: textfield;

    }

    /* ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢ 

      PREMIUM MODULE UI — GestorOnLine 2026

      Pure CSS upgrade. Zero HTML/JS changes.

      ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  */

    /* Workspace background */

    .workspace {

      background: #ffffff;

    }

    /* View Panel — ventana principal del m&oacute;dulo */

    .view-panel {

      border: none !important;

      box-shadow:

        0 4px 6px -1px rgba(0, 0, 0, 0.15),

        0 10px 30px rgba(0, 0, 0, 0.12) !important;

      background: #f7f7f7 !important;

      overflow: hidden;

    }

    /* View Header — barra de t&iacute;tulo del m&oacute;dulo */

    .view-header {

      background: linear-gradient(135deg, #1A316B 0%, #1e3a7a 100%) !important;

      color: #ffffff !important;

      padding: 10px 16px !important;

      font-family: 'Outfit', sans-serif !important;

      font-size: 13px !important;

      font-weight: 600 !important;

      letter-spacing: 0.06em !important;

      text-transform: uppercase !important;

      border-bottom: 2px solid #f59e0b !important;

      display: flex !important;

      justify-content: space-between !important;

      align-items: center !important;

    }

    /* Close button en header */

    .view-header .close-btn {

      background: transparent;

      border: 1px solid #555;

      color: #aaa;

      width: 22px;

      height: 22px;

      display: flex;

      align-items: center;

      justify-content: center;

      font-size: 12px;

      transition: all 0.2s;

      cursor: pointer;

      padding: 0 !important;

    }

    .view-header .close-btn:hover {

      background: #ef4444 !important;

      border-color: #ef4444;

      color: white !important;

    }

    /* Container interno del m&oacute;dulo */

    .container {

      padding: 16px !important;

      gap: 14px !important;

      background: #f0f0f0;

    }

    /* Panel del &aacute;rbol o tabla */

    .tree-container {

      background: #ffffff !important;

      border: 1px solid #d0d0d0 !important;

      box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);

      overflow: auto;

    }

    /* T&iacute;tulo de secci&oacute;n del &aacute;rbol */

    .tree-header-title {

      background: linear-gradient(90deg, #2d2d2d, #3a3a3a) !important;

      color: #f59e0b !important;

      font-family: 'Outfit', sans-serif !important;

      font-size: 11px !important;

      font-weight: 700 !important;

      letter-spacing: 0.12em !important;

      text-transform: uppercase !important;

      padding: 8px 14px !important;

    }

    /* Panel lateral de controles */

    .controls {

      width: 175px !important;

      background: #ffffff;

      border: 1px solid #d8d8d8;

      padding: 12px !important;

      gap: 8px !important;

      box-shadow: 1px 0 4px rgba(0, 0, 0, 0.04);

    }

    /* Botones de acci&oacute;n en panel de controles */

    /* ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢ 

      PHARMAB PREMIUM THEME — Ventas Farmacia

      ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  */

    #view-ventas-farmacia {

      background: #f3f4f6 !important;

      font-family: 'Outfit', sans-serif !important;

      height: calc(100vh - 45px) !important;

      display: grid;

      grid-template-rows: 60px 1fr 38px !important;

      /* Estructura r&iacute;gida: Header, Body, Footer */

      overflow: hidden !important;

      box-sizing: border-box !important;

    }

    #view-ventas-farmacia .pharma-header {

      background: #2F4A9A;

      padding: 0 20px;

      display: flex;

      align-items: center;

      gap: 20px;

      color: white;

      border-bottom: 3px solid #10b981;

      height: 60px;

      box-sizing: border-box;

    }

    #view-ventas-farmacia .search-box-container {

      flex: 0 0 40%;

      position: relative;

      margin-left: 40px;

      margin-right: auto;

    }

    #view-ventas-farmacia .search-box-container input {

      width: 100%;

      height: 42px;

      border-radius: 21px !important;

      padding: 0 45px;

      border: none;

      font-size: 15px;

      color: #1f2937;

    }

    #view-ventas-farmacia .pharma-container {

      display: grid;

      grid-template-columns: 1fr 480px;

      gap: 12px;

      padding: 12px;

      flex: 1;

      min-height: 0;

      overflow: hidden;

      /* Importante para que los hijos no desborden el contenedor principal */

    }

    #view-ventas-farmacia .product-list-panel {

      background: white;

      border-radius: 12px !important;

      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);

      display: flex;

      flex-direction: column;

      overflow: hidden;

      min-width: 0;

    }

    #view-ventas-farmacia .product-card-selected {

      background: white;

      border-radius: 12px !important;

      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

      padding: 20px;

      display: flex;

      flex-direction: column;

      gap: 15px;

    }

    #farArtImgContainer {

      background: #ffffff !important;

      border: none !important;

      border-radius: 0 !important;

      box-shadow: none !important;

    }

    .product-card-selected {

      background: #ffffff !important;

      box-shadow: none !important;

      border: none !important;

    }

    #view-ventas-farmacia .total-badge {

      background: #001a4d;

      color: white;

      padding: 15px;

      border-radius: 8px !important;

      text-align: right;

      margin-top: auto;

    }

    #view-ventas-farmacia .total-amount {

      font-size: 32px;

      font-weight: 700;

      display: block;

    }

    #view-ventas-farmacia .pharma-btn-grid {

      display: grid;

      grid-template-columns: repeat(4, 1fr);

      gap: 8px;

    }

    #view-ventas-farmacia .pharma-btn {
      background: white;
      border: 1px solid #e5e7eb;
      padding: clamp(5px, 0.55vw, 8px) clamp(2px, 0.25vw, 4px);
      border-radius: 8px !important;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      cursor: pointer;
      transition: all 0.2s;
      min-width: 0;
      flex: 1 1 0;
      max-width: 150px;
      overflow: hidden;
    }

    #view-ventas-farmacia .pharma-btn svg {
      width: clamp(18px, 1.45vw, 24px) !important;
      height: clamp(18px, 1.45vw, 24px) !important;
      flex-shrink: 0;
    }

    #view-ventas-farmacia .pharma-btn:hover {
      background: #f9fafb;
      border-color: #10b981;
      transform: translateY(-2px);
    }

    #view-ventas-farmacia .pharma-btn i {
      font-size: clamp(15px, 1.25vw, 20px);
      color: #001a4d;
    }

    #view-ventas-farmacia .pharma-btn span {
      font-size: clamp(7.5px, 0.62vw, 10px) !important;
      font-weight: 700;
      text-align: center;
      line-height: 1.05;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%;
      letter-spacing: 0.2px !important;
    }

    #view-ventas-farmacia .pharma-btn small {

      font-size: 10px;

      color: #6b7280;

    }

    #view-ventas-farmacia .close-btn:hover {

      background: #ef4444 !important;

      border-radius: 4px !important;

    }

    #view-ventas-farmacia .cobrar-btn {

      background: #10b981;

      color: white;

      width: 100%;

      padding: 15px;

      font-size: 20px;

      font-weight: 700;

      border-radius: 8px !important;

      margin-top: 10px;

      text-transform: uppercase;

      letter-spacing: 1px;

    }

    #view-ventas-farmacia .pharma-footer {

      background: #001a4d;

      color: #94a3b8;

      padding: 8px 20px;

      display: flex;

      justify-content: space-between;

      font-size: 12px;

      flex-shrink: 0;

      width: 100%;

      box-sizing: border-box;

    }

    #view-ventas-farmacia .pharma-table {

      width: 100%;

      border-collapse: collapse;

      table-layout: fixed;

    }

    #view-ventas-farmacia .pharma-table th,
    #view-ventas-farmacia table.pharma-table thead th {
      text-align: left;
      padding: 12px;
      font-size: 11.5px;
      font-weight: 800 !important;
      text-transform: uppercase;
      background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%) !important;
      color: #FFFFFF !important;
      border-bottom: 2px solid #1E3A8A !important;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      letter-spacing: 0.5px;
    }

    #view-ventas-farmacia .pharma-table td {

      padding: 12px;

      border-bottom: 1px solid #f3f4f6;

    }

    .pharma-qty-control {

      display: flex;

      align-items: center;

      gap: 10px;

      background: #f3f4f6;

      padding: 4px 8px;

      border-radius: 15px !important;

      width: fit-content;

    }

    .pharma-qty-btn {

      background: white;

      width: 24px;

      height: 24px;

      border-radius: 50% !important;

      display: flex;

      align-items: center;

      justify-content: center;

      font-weight: bold;

      color: #001a4d;

      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);

    }

    /* RESPONSIVIDAD VERTICAL PREMIUM PARA PANTALLAS COMPACTAS (Laptops / Monitores POS) */

    @media (max-height: 850px) {

      #view-ventas-farmacia {

        grid-template-rows: 50px 1fr 38px !important;

      }

      #view-ventas-farmacia .pharma-header {

        height: 50px !important;

      }

      #view-ventas-farmacia .pharma-container {

        padding: 8px !important;

        gap: 8px !important;

      }

      #view-ventas-farmacia .product-list-panel {

        border-radius: 8px !important;

      }

      #view-ventas-farmacia #farArtImgContainer {

        min-height: 120px !important;

        max-height: 120px !important;

      }

      #view-ventas-farmacia #farArtImg {

        max-height: 120px !important;

      }

      #view-ventas-farmacia .pharma-btn {

        padding: 4px 1px !important;

        gap: 2px !important;

      }

      #view-ventas-farmacia .pharma-btn svg {

        width: 20px !important;

        height: 25px !important;

      }

      #view-ventas-farmacia .product-card-selected {

        padding: 8px !important;

      }

      #view-ventas-farmacia #farArtPlaceholder {

        padding: 15px 0 !important;

      }

      #view-ventas-farmacia #farArtPlaceholder div {

        font-size: 32px !important;

      }

    }

    @media (max-height: 720px) {

      #view-ventas-farmacia #farArtImgContainer {

        min-height: 70px !important;

        max-height: 70px !important;

      }

      #view-ventas-farmacia #farArtImg {

        max-height: 70px !important;

      }

      #view-ventas-farmacia .product-card-selected {

        padding: 6px !important;

      }

      #view-ventas-farmacia .total-badge {

        padding: 6px !important;

      }

      #view-ventas-farmacia .total-amount {

        font-size: 26px !important;

      }

      #view-ventas-farmacia .cobrar-btn {

        padding: 10px !important;

        font-size: 18px !important;

      }

      #view-ventas-farmacia #pharmaLoyaltyCard {

        padding: 6px !important;

      }

      #view-ventas-farmacia #farMonederoSaldo,

      #view-ventas-farmacia #farMonederoGanar {

        font-size: 12px !important;

      }

    }

    @media (max-height: 650px) {

      #view-ventas-farmacia #farSelectionPanel {

        display: none !important;

      }

    }

    /* RESPONSIVIDAD VERTICAL PREMIUM PARA VENTAS CEDIS (Laptops / Monitores POS) */

    @media (max-height: 850px) {

      #view-ventas-cedis {

        grid-template-rows: 45px 1fr !important;

      }

      #view-ventas-cedis .view-header {

        padding: 6px 15px !important;

      }

      #view-ventas-cedis .cedis-container {

        grid-template-columns: 1fr 320px !important;

      }

      #view-ventas-cedis .cedis-container>div:first-child {

        padding: 10px !important;

      }

      #view-ventas-cedis .cedis-container>div:last-child {

        padding: 12px !important;

      }

      #view-ventas-cedis #cedisScanner {

        font-size: 18px !important;

      }

      #view-ventas-cedis label {

        font-size: 10px !important;

      }

      #view-ventas-cedis table th {

        padding: 6px 10px !important;

        font-size: 12px !important;

      }

      #view-ventas-cedis table td {

        padding: 6px 10px !important;

        font-size: 12px !important;

      }

      #view-ventas-cedis #cedisTotal {

        font-size: 40px !important;

      }

    }

    @media (max-height: 720px) {

      #view-ventas-cedis .cedis-container {

        grid-template-columns: 1fr 280px !important;

      }

      #view-ventas-cedis .cedis-container>div:last-child {

        padding: 8px !important;

      }

      #view-ventas-cedis #cedisTotal {

        font-size: 32px !important;

      }

      #view-ventas-cedis button[onclick="saveVentaCedis()"] {

        padding: 12px !important;

        font-size: 16px !important;

      }

      #view-ventas-cedis button[onclick="pausarVentaCedis()"] {

        padding: 10px !important;

        font-size: 13px !important;

      }

      #view-ventas-cedis button[onclick="limpiarVentaCedis()"] {

        padding: 8px !important;

        font-size: 12px !important;

      }

      #view-ventas-cedis #cedisObservaciones {

        height: 45px !important;

        font-size: 12px !important;

      }

    }

    @media (max-height: 650px) {

      #view-ventas-cedis .cedis-container {

        grid-template-columns: 1fr 260px !important;

      }

      #view-ventas-cedis .cedis-container>div:last-child {

        padding: 5px !important;

        gap: 5px !important;

      }

      #view-ventas-cedis #cedisTotal {

        font-size: 26px !important;

      }

      #view-ventas-cedis button[onclick="saveVentaCedis()"] {

        padding: 8px !important;

        font-size: 14px !important;

      }

      #view-ventas-cedis button[onclick="pausarVentaCedis()"] {

        padding: 6px !important;

        font-size: 11px !important;

      }

      #view-ventas-cedis button[onclick="limpiarVentaCedis()"] {

        padding: 5px !important;

        font-size: 11px !important;

      }

      #view-ventas-cedis #cedisObservaciones {

        height: 30px !important;

        font-size: 11px !important;

        margin-top: 4px !important;

      }

      #view-ventas-cedis .cedis-container>div:first-child {

        padding: 5px !important;

      }

      #view-ventas-cedis #cedisScanner {

        font-size: 16px !important;

      }

    }

    transition: all 0.18s ease;

    text-align: left;

    padding-left: 14px !important;

    }

    .controls button:hover {

      background: linear-gradient(180deg, #1a1a1a, #2d2d2d) !important;

      color: #f59e0b !important;

      border-color: #1a1a1a !important;

      transform: translateX(2px);

    }

    .controls button:active {

      transform: translateX(1px) translateY(1px);

    }

    /* Bot&oacute;n Salir — especial */

    .controls button[onclick*="closeView"],

    .controls button[onclick*="Salir"] {

      background: linear-gradient(180deg, #fff, #f5f5f5) !important;

      color: #888 !important;

      border: 1px dashed #c0c0c0 !important;

      margin-top: auto;

    }

    .controls button[onclick*="closeView"]:hover,

    .controls button[onclick*="Salir"]:hover {

      background: #ef4444 !important;

      color: white !important;

      border-color: #ef4444 !important;

    }

    /* Tablas dentro de m&oacute;dulos */

    .tree-container table {

      font-family: 'Outfit', sans-serif !important;

      font-size: 12px !important;

    }

    .tree-container thead {

      background: linear-gradient(90deg, #1a1a1a, #2d2d2d) !important;

      color: white !important;

    }

    .tree-container thead th {

      padding: 10px 12px !important;

      font-weight: 600 !important;

      letter-spacing: 0.05em !important;

      border-color: #444 !important;

      text-transform: uppercase;

      font-size: 11px !important;

    }

    .tree-container tbody tr {

      transition: background 0.12s;

      border-bottom: 1px solid #eee;

    }

    /* Expediente / Steps System */

    .step-btn {

      background: transparent;

      border: none;

      color: #888;

      padding: 12px 20px;

      cursor: pointer;

      font-family: 'Outfit', sans-serif;

      font-size: 11px;

      font-weight: 700;

      text-transform: uppercase;

      letter-spacing: 0.1em;

      transition: all 0.3s;

      border-bottom: 3px solid transparent;

    }

    .step-btn.active {

      color: #f59e0b;

      border-bottom: 3px solid #f59e0b;

      background: rgba(245, 158, 11, 0.05);

    }

    .exp-step {

      display: none;

    }

    .exp-step.active {

      display: block;

      animation: fadeInExp 0.4s ease;

    }

    @keyframes fadeInExp {

      from {

        opacity: 0;

        transform: translateY(10px);

      }

      to {

        opacity: 1;

        transform: translateY(0);

      }

    }

    .cat-item-select {

      padding: 8px;

      border-bottom: 1px solid #eee;

      cursor: pointer;

    }

    .cat-item-select:hover {

      background: #f1f5f9;

    }

    .tree-container tbody tr:nth-child(even) {

      background: #fafafa;

    }

    .tree-container tbody tr:hover {

      background: #fff8e8 !important;

      cursor: pointer;

    }

    .tree-container tbody td {

      padding: 8px 12px !important;

      color: #333;

    }

    /* Item rows del &aacute;rbol (tree view) */

    .item-row {

      padding: 7px 10px !important;

      font-family: 'Outfit', sans-serif !important;

      font-size: 13px !important;

      border-bottom: 1px solid #f0f0f0 !important;

      transition: all 0.15s !important;

    }

    .paciente-row:hover {

      background-color: #fff8e8 !important;

      cursor: pointer;

    }

    .paciente-row.selected {

      background: linear-gradient(90deg, #1a1a1a, #2d2d2d) !important;

      color: #f59e0b !important;

    }

    /* btn-classic (botones de grids de inventario) */

    .btn-classic {

      font-family: 'Outfit', sans-serif !important;

      font-size: 12px !important;

      font-weight: 500 !important;

      background: linear-gradient(180deg, #f8f8f8, #e8e8e8) !important;

      border: 1px solid #b0b0b0 !important;

      color: #2a2a2a !important;

      padding: 5px 14px !important;

      transition: all 0.18s ease;

      cursor: pointer;

    }

    .btn-classic:hover {

      background: linear-gradient(180deg, #2d2d2d, #1a1a1a) !important;

      color: #f59e0b !important;

      border-color: #1a1a1a !important;

    }

    /* Tab buttons */

    .tab-btn {

      font-family: 'Outfit', sans-serif !important;

      font-size: 12px !important;

      font-weight: 500 !important;

      background: #e8e8e8 !important;

      color: #666 !important;

      border: 1px solid #ccc !important;

      transition: all 0.15s;

    }

    .tab-btn.active {

      background: white !important;

      color: #1a1a1a !important;

      border-top: 3px solid #f59e0b !important;

      font-weight: 700 !important;

    }

    .tab-btn:hover:not(.active) {

      background: #f5f5f5 !important;

      color: #333 !important;

    }

    /* Yellow Info Box */

    #yellowInfoBox {

      position: fixed;

      bottom: 20px;

      right: 20px;

      background: linear-gradient(135deg, #1A316B 0%, #152654 100%);

      color: white;

      padding: 0;

      border: none;

      border-radius: 14px;

      font-family: 'Outfit', sans-serif;

      font-size: 12px;

      width: 220px;

      z-index: 999999 !important;

      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);

      display: none;

      overflow: hidden;

      pointer-events: none;

    }

    /* Existencias Globales Modal Styles */

    #tbodyStockGlobal tr:hover {

      background: #fff8e8 !important;

      cursor: default;

    }

    .spinner {

      display: inline-block;

      width: 18px;

      height: 18px;

      border: 3px solid rgba(10, 36, 106, 0.2);

      border-top-color: #0a246a;

      border-radius: 50%;

      animation: spin 0.8s linear infinite;

      vertical-align: middle;

      margin-right: 10px;

    }

    @keyframes spin {

      to {

        transform: rotate(360deg);

      }

    }

    /* ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢ 

      1920 x 1080 MASTER OPTIMIZATION (HIGH DENSITY)

      ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  ¢  */

    @media screen and (min-width: 1900px) {

      :root {

        --font-base: 14px;

        --primary-gold: #f59e0b;

      }

      body {

        font-size: var(--font-base);

      }

      /* Sidebar & Navigation robustness */

      .controls {

        width: 240px !important;

        gap: 12px !important;

      }

      .controls button {

        padding: 12px 16px !important;

        font-size: 13px !important;

      }

      /* NAVBAR & MENUS: Escalado para 1080p */

      nav {

        min-height: 48px !important;

        /* Barra m&aacute;s alta */

      }

      nav::before {

        font-size: 14px !important;

        /* GestorOnLine m&aacute;s grande */

        padding: 0 20px 0 10px !important;

      }

      .menu-item {

        font-size: 16px !important;

        /* Men&uacute;s principales legibles */

        padding: 0 22px !important;

      }

      .submenu-item {

        font-size: 15px !important;

        /* Submen&uacute;s legibles */

        padding: 12px 20px !important;

        /* M&aacute;s espaciado */

      }

      /* Module Panels scaling */

      .view-panel {
        height: calc(100vh - 55px) !important;

        /* Margen de seguridad para barra de Windows y pesta&ntilde;as */

      }

      /* Tables & Data Grids optimization */

      .tree-container thead th {

        padding: 14px 18px !important;

        font-size: 12px !important;

        letter-spacing: 0.08em;

      }

      .tree-container tbody td {

        padding: 12px 18px !important;

        font-size: 14px !important;

      }

      .item-row {

        padding: 12px 18px !important;

        font-size: 14px !important;

      }

      /* Standardized Grid for wide screens */

      .grid-form {

        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;

        gap: 25px !important;

      }

      /* VENTAS MODULE: High Resolution Adjustment */

      #view-ventas-generales .container {

        gap: 15px !important;

        padding: 10px !important;

        max-width: 100% !important;

      }

      /* Forzar el alto de los tres paneles principales de Ventas */

      #view-ventas-generales #venImagePanel,

      #view-ventas-generales #venImagePanel+div {

        height: 100% !important;

      }

      /* Tabla de Ventas Fluida */

      #view-ventas-generales #tableVentas {

        width: 100% !important;

        font-size: 16px !important;

      }

      /* Ajuste del contenedor de la tabla para que crezca */

      #view-ventas-generales>.container>div[style*="height"]:first-child {

        flex: 1 1 auto !important;

        min-width: 800px !important;

      }

      /* Imagen y Totales proporcionales */

      #venImagePanel {

        flex: 0 0 450px !important;

        width: 450px !important;

      }

      #view-ventas-generales div[style*="width:330px"] {

        width: 380px !important;

        flex: 0 0 380px !important;

      }

      #venTotalDisplay {
        font-size: 32px !important;
        line-height: 1.1 !important;
      }

      #venSubtotalFooter,
      #venDescFooter {
        font-size: 16px !important;
        line-height: 1 !important;
      }

      /* Modals robustness */

      .modal {

        min-width: 550px !important;

        padding: 30px !important;

      }

      .modal-header {

        font-size: 1.4em !important;

      }

      /* Scrollbars Premium para 1080p */

      ::-webkit-scrollbar {

        width: 10px;

        height: 10px;

      }

      ::-webkit-scrollbar-track {

        background: #f1f1f1;

      }

      ::-webkit-scrollbar-thumb {

        background: #ccc;

        border-radius: 5px;

        border: 2px solid #f1f1f1;

      }

      ::-webkit-scrollbar-thumb:hover {

        background: #f59e0b;

      }

      /* Transiciones suaves */

      * {

        transition: background-color 0.2s ease, border-color 0.2s ease;

      }

      .view-panel {

        animation: panelFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);

      }

    }


    .swal2-container {
      z-index: 99999999 !important;
    }


    #view-formas-pago {
      background-color: #f8fafc !important;
    }

    #view-formas-pago .view-header {
      background: linear-gradient(135deg, #1A316B 0%, #1e3a7a 100%) !important;
      color: #ffffff !important;
      padding: 14px 24px !important;
      font-family: 'Inter', system-ui, sans-serif !important;
      font-size: 16px !important;
      font-weight: 700 !important;
      letter-spacing: 0.5px !important;
      border-bottom: 2px solid #f59e0b !important;
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
    }

    #view-formas-pago .view-header .close-btn {
      font-size: 18px !important;
      font-weight: 500 !important;
      cursor: pointer !important;
      transition: color 0.2s !important;
    }

    #view-formas-pago .view-header .close-btn:hover {
      color: #ef4444 !important;
    }

    #view-formas-pago .container {
      background-color: #f8fafc !important;
      padding: 24px !important;
      gap: 20px !important;
      display: flex !important;
      flex-direction: row !important;
    }

    #view-formas-pago .tree-container {
      background: #ffffff !important;
      border-radius: 16px !important;
      border: 1px solid #e2e8f0 !important;
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02) !important;
      overflow: auto !important;
      padding: 0 !important;
      flex: 1 !important;
    }

    #view-formas-pago .medicos-table {
      width: 100% !important;
      border-collapse: separate !important;
      border-spacing: 0 !important;
      table-layout: auto !important;
      font-family: 'Inter', system-ui, sans-serif !important;
    }

    #view-formas-pago .medicos-table th {
      background: #f8fafc !important;
      color: #64748b !important;
      text-transform: uppercase !important;
      font-size: 11px !important;
      font-weight: 700 !important;
      letter-spacing: 0.05em !important;
      padding: 14px 20px !important;
      border-bottom: 1px solid #e2e8f0 !important;
      border-right: none !important;
      border-left: none !important;
      border-top: none !important;
      text-align: left !important;
      height: auto !important;
      position: sticky !important;
      top: 0 !important;
      z-index: 10 !important;
    }

    #view-formas-pago .medicos-table td {
      color: #334155 !important;
      padding: 14px 20px !important;
      border-bottom: 1px solid #f1f5f9 !important;
      border-right: none !important;
      border-left: none !important;
      border-top: none !important;
      font-size: 13.5px !important;
      line-height: 1.5 !important;
      height: auto !important;
      white-space: normal !important;
      text-overflow: clip !important;
      overflow: visible !important;
    }

    #view-formas-pago .medicos-table tr {
      height: auto !important;
      transition: background-color 0.15s ease !important;
    }

    #view-formas-pago .medicos-table tr:hover td {
      background-color: #f1f5f9 !important;
    }

    #view-formas-pago .medicos-table tr.selected td {
      background-color: #e0f2fe !important;
      color: #0369a1 !important;
      font-weight: 600 !important;
      border-bottom-color: #bae6fd !important;
    }

    #view-formas-pago .controls {
      width: clamp(160px, 15vw, 220px) !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 12px !important;
    }

    #view-formas-pago .controls button {
      background-color: #ffffff !important;
      color: #334155 !important;
      border: 1px solid #cbd5e1 !important;
      border-radius: 12px !important;
      padding: 12px 18px !important;
      font-weight: 600 !important;
      font-size: 13.5px !important;
      cursor: pointer !important;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
      box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 8px !important;
      outline: none !important;
    }

    #view-formas-pago .controls button i {
      font-size: 14px !important;
    }

    #view-formas-pago .controls button.btn-agregar {
      background: #2563eb !important;
      color: #ffffff !important;
      border: none !important;
    }

    #view-formas-pago .controls button.btn-agregar:hover {
      background: #1d4ed8 !important;
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
      transform: translateY(-1px) !important;
    }

    #view-formas-pago .controls button.btn-editar:hover {
      background: #f8fafc !important;
      border-color: #94a3b8 !important;
      color: #1e293b !important;
      transform: translateY(-1px) !important;
    }

    #view-formas-pago .controls button.btn-eliminar {
      background: #fff1f2 !important;
      color: #e11d48 !important;
      border: 1px solid #fecdd3 !important;
    }

    #view-formas-pago .controls button.btn-eliminar:hover {
      background: #ffe4e6 !important;
      color: #be123c !important;
      border-color: #fda4af !important;
      transform: translateY(-1px) !important;
    }

    #view-formas-pago .controls button.btn-salir {
      margin-top: auto !important;
      background: #ffffff !important;
      color: #475569 !important;
      border: 1px solid #cbd5e1 !important;
    }

    #view-formas-pago .controls button.btn-salir:hover {
      background: #f1f5f9 !important;
      color: #334155 !important;
    }


    #view-lista-precio {
      background-color: #f8fafc !important;
    }

    #view-lista-precio .view-header {
      background: linear-gradient(135deg, #1A316B 0%, #1e3a7a 100%) !important;
      color: #ffffff !important;
      padding: 14px 24px !important;
      font-family: 'Inter', system-ui, sans-serif !important;
      font-size: 16px !important;
      font-weight: 700 !important;
      letter-spacing: 0.5px !important;
      border-bottom: 2px solid #f59e0b !important;
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
    }

    #view-lista-precio .view-header .close-btn {
      font-size: 18px !important;
      font-weight: 500 !important;
      cursor: pointer !important;
      transition: color 0.2s !important;
    }

    #view-lista-precio .view-header .close-btn:hover {
      color: #ef4444 !important;
    }

    #view-lista-precio .container {
      background-color: #f8fafc !important;
      padding: 24px !important;
      gap: 20px !important;
      display: flex !important;
      flex-direction: row !important;
    }

    #view-lista-precio .tree-container {
      background: #ffffff !important;
      border-radius: 16px !important;
      border: 1px solid #e2e8f0 !important;
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02) !important;
      overflow: auto !important;
      padding: 0 !important;
      flex: 1 !important;
    }

    #view-lista-precio .medicos-table {
      width: 100% !important;
      border-collapse: separate !important;
      border-spacing: 0 !important;
      table-layout: auto !important;
      font-family: 'Inter', system-ui, sans-serif !important;
    }

    #view-lista-precio .medicos-table th {
      background: #f8fafc !important;
      color: #64748b !important;
      text-transform: uppercase !important;
      font-size: 11px !important;
      font-weight: 700 !important;
      letter-spacing: 0.05em !important;
      padding: 14px 20px !important;
      border-bottom: 1px solid #e2e8f0 !important;
      border-right: none !important;
      border-left: none !important;
      border-top: none !important;
      text-align: left !important;
      height: auto !important;
      position: sticky !important;
      top: 0 !important;
      z-index: 10 !important;
    }

    #view-lista-precio .medicos-table td {
      color: #334155 !important;
      padding: 14px 20px !important;
      border-bottom: 1px solid #f1f5f9 !important;
      border-right: none !important;
      border-left: none !important;
      border-top: none !important;
      font-size: 13.5px !important;
      line-height: 1.5 !important;
      height: auto !important;
      white-space: normal !important;
      text-overflow: clip !important;
      overflow: visible !important;
    }

    #view-lista-precio .medicos-table tr {
      height: auto !important;
      transition: background-color 0.15s ease !important;
    }

    #view-lista-precio .medicos-table tr:hover td {
      background-color: #f1f5f9 !important;
    }

    #view-lista-precio .medicos-table tr.selected td {
      background-color: #e0f2fe !important;
      color: #0369a1 !important;
      font-weight: 600 !important;
      border-bottom-color: #bae6fd !important;
    }

    #view-lista-precio .controls {
      width: clamp(160px, 15vw, 220px) !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 12px !important;
    }

    #view-lista-precio .controls button {
      background-color: #ffffff !important;
      color: #334155 !important;
      border: 1px solid #cbd5e1 !important;
      border-radius: 12px !important;
      padding: 12px 18px !important;
      font-weight: 600 !important;
      font-size: 13.5px !important;
      cursor: pointer !important;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
      box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 8px !important;
      outline: none !important;
    }

    #view-lista-precio .controls button i {
      font-size: 14px !important;
    }

    #view-lista-precio .controls button.btn-agregar {
      background: #2563eb !important;
      color: #ffffff !important;
      border: none !important;
    }

    #view-lista-precio .controls button.btn-agregar:hover {
      background: #1d4ed8 !important;
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
      transform: translateY(-1px) !important;
    }

    #view-lista-precio .controls button.btn-editar:hover {
      background: #f8fafc !important;
      border-color: #94a3b8 !important;
      color: #1e293b !important;
      transform: translateY(-1px) !important;
    }

    #view-lista-precio .controls button.btn-eliminar {
      background: #fff1f2 !important;
      color: #e11d48 !important;
      border: 1px solid #fecdd3 !important;
    }

    #view-lista-precio .controls button.btn-eliminar:hover {
      background: #ffe4e6 !important;
      color: #be123c !important;
      border-color: #fda4af !important;
      transform: translateY(-1px) !important;
    }

    #view-lista-precio .controls button.btn-salir {
      margin-top: auto !important;
      background: #ffffff !important;
      color: #475569 !important;
      border: 1px solid #cbd5e1 !important;
    }

    #view-lista-precio .controls button.btn-salir:hover {
      background: #f1f5f9 !important;
      color: #334155 !important;
    }


    #view-marcas {
      background-color: #f8fafc !important;
    }

    #view-marcas .view-header {
      background: linear-gradient(135deg, #1A316B 0%, #1e3a7a 100%) !important;
      color: #ffffff !important;
      padding: 14px 24px !important;
      font-family: 'Inter', system-ui, sans-serif !important;
      font-size: 16px !important;
      font-weight: 700 !important;
      letter-spacing: 0.5px !important;
      border-bottom: 2px solid #f59e0b !important;
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
    }

    #view-marcas .view-header .close-btn {
      font-size: 18px !important;
      font-weight: 500 !important;
      cursor: pointer !important;
      transition: color 0.2s !important;
    }

    #view-marcas .view-header .close-btn:hover {
      color: #ef4444 !important;
    }

    #view-marcas .container {
      background-color: #f8fafc !important;
      padding: 24px !important;
      gap: 20px !important;
      display: flex !important;
      flex-direction: row !important;
    }

    #view-marcas .tree-container {
      background: #ffffff !important;
      border-radius: 16px !important;
      border: 1px solid #e2e8f0 !important;
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02) !important;
      overflow: auto !important;
      padding: 0 !important;
      flex: 1 !important;
    }

    #view-marcas .medicos-table {
      width: 100% !important;
      border-collapse: separate !important;
      border-spacing: 0 !important;
      table-layout: auto !important;
      font-family: 'Inter', system-ui, sans-serif !important;
    }

    #view-marcas .medicos-table th {
      background: #f8fafc !important;
      color: #64748b !important;
      text-transform: uppercase !important;
      font-size: 11px !important;
      font-weight: 700 !important;
      letter-spacing: 0.05em !important;
      padding: 14px 20px !important;
      border-bottom: 1px solid #e2e8f0 !important;
      border-right: none !important;
      border-left: none !important;
      border-top: none !important;
      text-align: left !important;
      height: auto !important;
      position: sticky !important;
      top: 0 !important;
      z-index: 10 !important;
    }

    #view-marcas .medicos-table td {
      color: #334155 !important;
      padding: 14px 20px !important;
      border-bottom: 1px solid #f1f5f9 !important;
      border-right: none !important;
      border-left: none !important;
      border-top: none !important;
      font-size: 13.5px !important;
      line-height: 1.5 !important;
      height: auto !important;
      white-space: normal !important;
      text-overflow: clip !important;
      overflow: visible !important;
    }

    #view-marcas .medicos-table tr {
      height: auto !important;
      transition: background-color 0.15s ease !important;
    }

    #view-marcas .medicos-table tr:hover td {
      background-color: #f1f5f9 !important;
    }

    #view-marcas .medicos-table tr.selected td {
      background-color: #e0f2fe !important;
      color: #0369a1 !important;
      font-weight: 600 !important;
      border-bottom-color: #bae6fd !important;
    }

    #view-marcas .controls {
      width: clamp(160px, 15vw, 220px) !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 12px !important;
    }

    #view-marcas .controls button {
      background-color: #ffffff !important;
      color: #334155 !important;
      border: 1px solid #cbd5e1 !important;
      border-radius: 12px !important;
      padding: 12px 18px !important;
      font-weight: 600 !important;
      font-size: 13.5px !important;
      cursor: pointer !important;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
      box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 8px !important;
      outline: none !important;
    }

    #view-marcas .controls button i {
      font-size: 14px !important;
    }

    #view-marcas .controls button.btn-agregar {
      background: #2563eb !important;
      color: #ffffff !important;
      border: none !important;
    }

    #view-marcas .controls button.btn-agregar:hover {
      background: #1d4ed8 !important;
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
      transform: translateY(-1px) !important;
    }

    #view-marcas .controls button.btn-editar:hover {
      background: #f8fafc !important;
      border-color: #94a3b8 !important;
      color: #1e293b !important;
      transform: translateY(-1px) !important;
    }

    #view-marcas .controls button.btn-eliminar {
      background: #fff1f2 !important;
      color: #e11d48 !important;
      border: 1px solid #fecdd3 !important;
    }

    #view-marcas .controls button.btn-eliminar:hover {
      background: #ffe4e6 !important;
      color: #be123c !important;
      border-color: #fda4af !important;
      transform: translateY(-1px) !important;
    }

    #view-marcas .controls button.btn-salir {
      margin-top: auto !important;
      background: #ffffff !important;
      color: #475569 !important;
      border: 1px solid #cbd5e1 !important;
    }

    #view-marcas .controls button.btn-salir:hover {
      background: #f1f5f9 !important;
      color: #334155 !important;
    }


    #view-catalogo-ventas {
      background-color: #f8fafc !important;
    }

    #view-catalogo-ventas .view-header {
      background: linear-gradient(135deg, #1A316B 0%, #1e3a7a 100%) !important;
      color: #ffffff !important;
      padding: 14px 24px !important;
      font-family: 'Inter', system-ui, sans-serif !important;
      font-size: 16px !important;
      font-weight: 700 !important;
      letter-spacing: 0.5px !important;
      border-bottom: 2px solid #f59e0b !important;
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
    }

    #view-catalogo-ventas .view-header .close-btn {
      font-size: 18px !important;
      font-weight: 500 !important;
      cursor: pointer !important;
      transition: color 0.2s !important;
    }

    #view-catalogo-ventas .view-header .close-btn:hover {
      color: #ef4444 !important;
    }

    #view-catalogo-ventas .container {
      background-color: #f8fafc !important;
      padding: 24px !important;
      gap: 20px !important;
      display: flex !important;
      flex-direction: row !important;
    }

    #view-catalogo-ventas .tree-container {
      background: #ffffff !important;
      border-radius: 16px !important;
      border: 1px solid #e2e8f0 !important;
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02) !important;
      overflow: auto !important;
      padding: 0 !important;
      flex: 1 !important;
    }

    #view-catalogo-ventas .medicos-table {
      width: 100% !important;
      border-collapse: separate !important;
      border-spacing: 0 !important;
      table-layout: auto !important;
      font-family: 'Inter', system-ui, sans-serif !important;
    }

    #view-catalogo-ventas .medicos-table th {
      background: #f8fafc !important;
      color: #64748b !important;
      text-transform: uppercase !important;
      font-size: 11px !important;
      font-weight: 700 !important;
      letter-spacing: 0.05em !important;
      padding: 14px 20px !important;
      border-bottom: 1px solid #e2e8f0 !important;
      border-right: none !important;
      border-left: none !important;
      border-top: none !important;
      text-align: left !important;
      height: auto !important;
      position: sticky !important;
      top: 0 !important;
      z-index: 10 !important;
    }

    #view-catalogo-ventas .medicos-table td {
      color: #334155 !important;
      padding: 14px 20px !important;
      border-bottom: 1px solid #f1f5f9 !important;
      border-right: none !important;
      border-left: none !important;
      border-top: none !important;
      font-size: 13.5px !important;
      line-height: 1.5 !important;
      height: auto !important;
      white-space: normal !important;
      text-overflow: clip !important;
      overflow: visible !important;
    }

    #view-catalogo-ventas .medicos-table tr {
      height: auto !important;
      transition: background-color 0.15s ease !important;
    }

    #view-catalogo-ventas .medicos-table tr:hover td {
      background-color: #f1f5f9 !important;
    }

    #view-catalogo-ventas .medicos-table tr.selected td {
      background-color: #e0f2fe !important;
      color: #0369a1 !important;
      font-weight: 600 !important;
      border-bottom-color: #bae6fd !important;
    }

    #view-catalogo-ventas .controls {
      width: clamp(160px, 15vw, 220px) !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 12px !important;
    }

    #view-catalogo-ventas .controls button {
      background-color: #ffffff !important;
      color: #334155 !important;
      border: 1px solid #cbd5e1 !important;
      border-radius: 12px !important;
      padding: 12px 18px !important;
      font-weight: 600 !important;
      font-size: 13.5px !important;
      cursor: pointer !important;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
      box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 8px !important;
      outline: none !important;
    }

    #view-catalogo-ventas .controls button i {
      font-size: 14px !important;
    }

    #view-catalogo-ventas .controls button.btn-agregar {
      background: #2563eb !important;
      color: #ffffff !important;
      border: none !important;
    }

    #view-catalogo-ventas .controls button.btn-agregar:hover {
      background: #1d4ed8 !important;
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
      transform: translateY(-1px) !important;
    }

    #view-catalogo-ventas .controls button.btn-editar:hover {
      background: #f8fafc !important;
      border-color: #94a3b8 !important;
      color: #1e293b !important;
      transform: translateY(-1px) !important;
    }

    #view-catalogo-ventas .controls button.btn-eliminar {
      background: #fff1f2 !important;
      color: #e11d48 !important;
      border: 1px solid #fecdd3 !important;
    }

    #view-catalogo-ventas .controls button.btn-eliminar:hover {
      background: #ffe4e6 !important;
      color: #be123c !important;
      border-color: #fda4af !important;
      transform: translateY(-1px) !important;
    }

    #view-catalogo-ventas .controls button.btn-salir {
      margin-top: auto !important;
      background: #ffffff !important;
      color: #475569 !important;
      border: 1px solid #cbd5e1 !important;
    }

    #view-catalogo-ventas .controls button.btn-salir:hover {
      background: #f1f5f9 !important;
      color: #334155 !important;
    }


    #view-sucursales {
      background-color: #f8fafc !important;
    }

    #view-sucursales .view-header {
      background: linear-gradient(135deg, #1A316B 0%, #1e3a7a 100%) !important;
      color: #ffffff !important;
      padding: 14px 24px !important;
      font-family: 'Inter', system-ui, sans-serif !important;
      font-size: 16px !important;
      font-weight: 700 !important;
      letter-spacing: 0.5px !important;
      border-bottom: 2px solid #f59e0b !important;
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
    }

    #view-sucursales .view-header .close-btn {
      font-size: 18px !important;
      font-weight: 500 !important;
      cursor: pointer !important;
      transition: color 0.2s !important;
    }

    #view-sucursales .view-header .close-btn:hover {
      color: #ef4444 !important;
    }

    #view-sucursales .container {
      background-color: #f8fafc !important;
      padding: 24px !important;
      gap: 20px !important;
      display: flex !important;
      flex-direction: row !important;
    }

    #view-sucursales .tree-container {
      background: #ffffff !important;
      border-radius: 16px !important;
      border: 1px solid #e2e8f0 !important;
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02) !important;
      overflow: auto !important;
      padding: 0 !important;
      flex: 1 !important;
    }

    #view-sucursales .medicos-table {
      width: 100% !important;
      border-collapse: separate !important;
      border-spacing: 0 !important;
      table-layout: auto !important;
      font-family: 'Inter', system-ui, sans-serif !important;
    }

    #view-sucursales .medicos-table th {
      background: #f8fafc !important;
      color: #64748b !important;
      text-transform: uppercase !important;
      font-size: 11px !important;
      font-weight: 700 !important;
      letter-spacing: 0.05em !important;
      padding: 14px 20px !important;
      border-bottom: 1px solid #e2e8f0 !important;
      border-right: none !important;
      border-left: none !important;
      border-top: none !important;
      text-align: left !important;
      height: auto !important;
      position: sticky !important;
      top: 0 !important;
      z-index: 10 !important;
    }

    #view-sucursales .medicos-table td {
      color: #334155 !important;
      padding: 14px 20px !important;
      border-bottom: 1px solid #f1f5f9 !important;
      border-right: none !important;
      border-left: none !important;
      border-top: none !important;
      font-size: 13.5px !important;
      line-height: 1.5 !important;
      height: auto !important;
      white-space: normal !important;
      text-overflow: clip !important;
      overflow: visible !important;
    }

    #view-sucursales .medicos-table tr {
      height: auto !important;
      transition: background-color 0.15s ease !important;
    }

    #view-sucursales .medicos-table tr:hover td {
      background-color: #f1f5f9 !important;
    }

    #view-sucursales .medicos-table tr.selected td {
      background-color: #e0f2fe !important;
      color: #0369a1 !important;
      font-weight: 600 !important;
      border-bottom-color: #bae6fd !important;
    }

    #view-sucursales .controls {
      width: clamp(160px, 15vw, 220px) !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 12px !important;
    }

    #view-sucursales .controls button {
      background-color: #ffffff !important;
      color: #334155 !important;
      border: 1px solid #cbd5e1 !important;
      border-radius: 12px !important;
      padding: 12px 18px !important;
      font-weight: 600 !important;
      font-size: 13.5px !important;
      cursor: pointer !important;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
      box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 8px !important;
      outline: none !important;
    }

    #view-sucursales .controls button i {
      font-size: 14px !important;
    }

    #view-sucursales .controls button.btn-agregar {
      background: #2563eb !important;
      color: #ffffff !important;
      border: none !important;
    }

    #view-sucursales .controls button.btn-agregar:hover {
      background: #1d4ed8 !important;
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
      transform: translateY(-1px) !important;
    }

    #view-sucursales .controls button.btn-editar:hover {
      background: #f8fafc !important;
      border-color: #94a3b8 !important;
      color: #1e293b !important;
      transform: translateY(-1px) !important;
    }

    #view-sucursales .controls button.btn-eliminar {
      background: #fff1f2 !important;
      color: #e11d48 !important;
      border: 1px solid #fecdd3 !important;
    }

    #view-sucursales .controls button.btn-eliminar:hover {
      background: #ffe4e6 !important;
      color: #be123c !important;
      border-color: #fda4af !important;
      transform: translateY(-1px) !important;
    }

    #view-sucursales .controls button.btn-salir {
      margin-top: auto !important;
      background: #ffffff !important;
      color: #475569 !important;
      border: 1px solid #cbd5e1 !important;
    }

    #view-sucursales .controls button.btn-salir:hover {
      background: #f1f5f9 !important;
      color: #334155 !important;
    }


    #view-cuotas {
      background-color: #f8fafc !important;
    }

    #view-cuotas .view-header {
      background: linear-gradient(135deg, #1A316B 0%, #1e3a7a 100%) !important;
      color: #ffffff !important;
      padding: 14px 24px !important;
      font-family: 'Inter', system-ui, sans-serif !important;
      font-size: 16px !important;
      font-weight: 700 !important;
      letter-spacing: 0.5px !important;
      border-bottom: 2px solid #f59e0b !important;
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
    }

    #view-cuotas .view-header .close-btn {
      font-size: 18px !important;
      font-weight: 500 !important;
      cursor: pointer !important;
      transition: color 0.2s !important;
    }

    #view-cuotas .view-header .close-btn:hover {
      color: #ef4444 !important;
    }

    #view-cuotas .container {
      background-color: #f8fafc !important;
      padding: 24px !important;
      gap: 20px !important;
      display: flex !important;
      flex-direction: column !important;
      height: calc(100% - 50px) !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
    }

    #view-cuotas .filter-panel {
      display: flex !important;
      gap: 16px !important;
      background: #ffffff !important;
      padding: 16px 20px !important;
      border-radius: 12px !important;
      border: 1px solid #e2e8f0 !important;
      align-items: center !important;
      box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
    }

    #view-cuotas .filter-panel label {
      font-size: 13px !important;
      font-weight: 600 !important;
      color: #475569 !important;
    }

    #view-cuotas .filter-panel input[type="date"],
    #view-cuotas .filter-panel input[type="number"] {
      border: 1px solid #cbd5e1 !important;
      padding: 6px 12px !important;
      border-radius: 8px !important;
      font-weight: 600 !important;
      font-size: 13px !important;
      outline: none !important;
      background: white !important;
      color: #1e293b !important;
      transition: all 0.2s !important;
    }

    #view-cuotas .filter-panel input[type="date"]:focus,
    #view-cuotas .filter-panel input[type="number"]:focus {
      border-color: #2563eb !important;
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    }

    #view-cuotas .save-btn {
      background: linear-gradient(135deg, #1A316B 0%, #1e3a7a 100%) !important;
      color: white !important;
      border: none !important;
      padding: 8px 16px !important;
      border-radius: 8px !important;
      font-weight: 600 !important;
      font-size: 13px !important;
      cursor: pointer !important;
      box-shadow: 0 4px 10px rgba(26, 49, 107, 0.2) !important;
      display: flex !important;
      align-items: center !important;
      gap: 6px !important;
      transition: all 0.2s !important;
    }

    #view-cuotas .save-btn:hover {
      background: linear-gradient(135deg, #152756 0%, #182e61 100%) !important;
      transform: translateY(-1px) !important;
    }

    #view-cuotas .tree-container {
      background: #ffffff !important;
      border-radius: 16px !important;
      border: 1px solid #e2e8f0 !important;
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05) !important;
      overflow: auto !important;
      padding: 0 !important;
      flex: 1 !important;
    }

    #view-cuotas .medicos-table {
      width: 100% !important;
      border-collapse: separate !important;
      border-spacing: 0 !important;
      table-layout: auto !important;
      font-family: 'Inter', system-ui, sans-serif !important;
    }

    #view-cuotas .medicos-table th {
      background: #1e293b !important;
      color: #f8fafc !important;
      text-transform: uppercase !important;
      font-size: 11px !important;
      font-weight: 700 !important;
      letter-spacing: 0.05em !important;
      padding: 12px 14px !important;
      border-bottom: 1px solid #334155 !important;
      border-right: 1px solid #334155 !important;
      text-align: center !important;
      position: sticky !important;
      top: 0 !important;
      z-index: 10 !important;
    }

    #view-cuotas .medicos-table th:last-child {
      border-right: none !important;
    }

    #view-cuotas .medicos-table th.reward-header {
      color: #f59e0b !important;
      /* Gold/Amber for reward columns */
    }

    #view-cuotas .medicos-table td {
      color: #334155 !important;
      padding: 2px 4px !important;
      border-bottom: 1px solid #e2e8f0 !important;
      border-right: 1px solid #e2e8f0 !important;
      font-size: 13px !important;
    }

    #view-cuotas .medicos-table td:last-child {
      border-right: none !important;
    }

    #view-cuotas .medicos-table td input {
      font-family: 'Inter', system-ui, sans-serif !important;
      font-size: 13.5px !important;
      color: #334155 !important;
      padding: 6px 8px !important;
      background: transparent !important;
      border: none !important;
      outline: none !important;
      width: 100% !important;
      box-sizing: border-box !important;
      text-align: right !important;
      transition: all 0.15s ease !important;
    }

    #view-cuotas .medicos-table td input:focus {
      background: #f0f7ff !important;
      box-shadow: inset 0 0 0 2px #2563eb !important;
      border-radius: 4px !important;
    }

    #view-cuotas .medicos-table tr {
      transition: background-color 0.15s ease !important;
    }

    #view-cuotas .medicos-table tr:hover {
      background-color: #f1f5f9 !important;
    }

    #view-cuotas .medicos-table tr:nth-child(even) {
      background-color: #f8fafc !important;
    }

    #view-cuotas .tree-container::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }

    #view-cuotas .tree-container::-webkit-scrollbar-track {
      background: #f1f5f9;
      border-radius: 4px;
    }

    #view-cuotas .tree-container::-webkit-scrollbar-thumb {
      background: #cbd5e1;
      border-radius: 4px;
    }

    #view-cuotas .tree-container::-webkit-scrollbar-thumb:hover {
      background: #94a3b8;
    }


    #view-terminales {
      background-color: #f8fafc !important;
    }

    #view-terminales .view-header {
      background: linear-gradient(135deg, #1A316B 0%, #1e3a7a 100%) !important;
      color: #ffffff !important;
      padding: 14px 24px !important;
      font-family: 'Inter', system-ui, sans-serif !important;
      font-size: 16px !important;
      font-weight: 700 !important;
      letter-spacing: 0.5px !important;
      border-bottom: 2px solid #f59e0b !important;
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
    }

    #view-terminales .view-header .close-btn {
      font-size: 18px !important;
      font-weight: 500 !important;
      cursor: pointer !important;
      transition: color 0.2s !important;
    }

    #view-terminales .view-header .close-btn:hover {
      color: #ef4444 !important;
    }

    #view-terminales .container {
      background-color: #f8fafc !important;
      padding: 24px !important;
      gap: 20px !important;
      display: flex !important;
      flex-direction: row !important;
    }

    #view-terminales .tree-container {
      background: #ffffff !important;
      border-radius: 16px !important;
      border: 1px solid #e2e8f0 !important;
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02) !important;
      overflow: auto !important;
      padding: 0 !important;
      flex: 1 !important;
    }

    #view-terminales .medicos-table {
      width: 100% !important;
      border-collapse: separate !important;
      border-spacing: 0 !important;
      table-layout: auto !important;
      font-family: 'Inter', system-ui, sans-serif !important;
    }

    #view-terminales .medicos-table th {
      background: #f8fafc !important;
      color: #64748b !important;
      text-transform: uppercase !important;
      font-size: 11px !important;
      font-weight: 700 !important;
      letter-spacing: 0.05em !important;
      padding: 14px 20px !important;
      border-bottom: 1px solid #e2e8f0 !important;
      border-right: none !important;
      border-left: none !important;
      border-top: none !important;
      text-align: left !important;
      height: auto !important;
      position: sticky !important;
      top: 0 !important;
      z-index: 10 !important;
    }

    #view-terminales .medicos-table td {
      color: #334155 !important;
      padding: 14px 20px !important;
      border-bottom: 1px solid #f1f5f9 !important;
      border-right: none !important;
      border-left: none !important;
      border-top: none !important;
      font-size: 13.5px !important;
      line-height: 1.5 !important;
      height: auto !important;
      white-space: normal !important;
      text-overflow: clip !important;
      overflow: visible !important;
    }

    #view-terminales .medicos-table tr {
      height: auto !important;
      transition: background-color 0.15s ease !important;
    }

    #view-terminales .medicos-table tr:hover td {
      background-color: #f1f5f9 !important;
    }

    #view-terminales .medicos-table tr.selected td {
      background-color: #e0f2fe !important;
      color: #0369a1 !important;
      font-weight: 600 !important;
      border-bottom-color: #bae6fd !important;
    }

    #view-terminales .controls {
      width: clamp(160px, 15vw, 220px) !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 12px !important;
    }

    #view-terminales .controls button {
      background-color: #ffffff !important;
      color: #334155 !important;
      border: 1px solid #cbd5e1 !important;
      border-radius: 12px !important;
      padding: 12px 18px !important;
      font-weight: 600 !important;
      font-size: 13.5px !important;
      cursor: pointer !important;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
      box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 8px !important;
      outline: none !important;
    }

    #view-terminales .controls button i {
      font-size: 14px !important;
    }

    #view-terminales .controls button.btn-agregar {
      background: #2563eb !important;
      color: #ffffff !important;
      border: none !important;
    }

    #view-terminales .controls button.btn-agregar:hover {
      background: #1d4ed8 !important;
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
      transform: translateY(-1px) !important;
    }

    #view-terminales .controls button.btn-editar:hover {
      background: #f8fafc !important;
      border-color: #94a3b8 !important;
      color: #1e293b !important;
      transform: translateY(-1px) !important;
    }

    #view-terminales .controls button.btn-eliminar {
      background: #fff1f2 !important;
      color: #e11d48 !important;
      border: 1px solid #fecdd3 !important;
    }

    #view-terminales .controls button.btn-eliminar:hover {
      background: #ffe4e6 !important;
      color: #be123c !important;
      border-color: #fda4af !important;
      transform: translateY(-1px) !important;
    }

    #view-terminales .controls button.btn-salir {
      margin-top: auto !important;
      background: #ffffff !important;
      color: #475569 !important;
      border: 1px solid #cbd5e1 !important;
    }

    #view-terminales .controls button.btn-salir:hover {
      background: #f1f5f9 !important;
      color: #334155 !important;
    }


    #view-cortes table.medicos-table {
      border-collapse: collapse !important;
      width: 100% !important;
    }

    #view-cortes table.medicos-table thead,
    #view-cortes table.medicos-table thead tr,
    #view-cortes table.medicos-table thead th,
    #view-cortes table.medicos-table th {
      background: #e2e8f0 !important;
      background-color: #e2e8f0 !important;
      color: #0f172a !important;
      font-weight: 800 !important;
      font-size: 11px !important;
      text-transform: uppercase !important;
      padding: 10px 8px !important;
      border: 1px solid #cbd5e1 !important;
      height: auto !important;
      line-height: 1.2 !important;
      text-align: center !important;
      position: sticky !important;
      top: 0 !important;
      z-index: 10 !important;
    }

    #view-cortes table.medicos-table td {
      font-size: 12px !important;
      padding: 8px 6px !important;
      border-bottom: 1px solid #e2e8f0 !important;
      border-right: 1px solid #f1f5f9 !important;
      color: #0f172a !important;
      text-align: center !important;
    }

    #view-cortes .tree-container {
      overflow-y: scroll !important;
      scrollbar-gutter: stable;
    }

    #view-cortes .tree-container::-webkit-scrollbar {
      width: 10px !important;
      display: block !important;
    }

    #view-cortes .tree-container::-webkit-scrollbar-track {
      background: #f1f5f9 !important;
      border-radius: 6px !important;
      border: 1px solid #e2e8f0 !important;
    }

    #view-cortes .tree-container::-webkit-scrollbar-thumb {
      background: #94a3b8 !important;
      border-radius: 6px !important;
      border: 2px solid #f1f5f9 !important;
    }

    #view-cortes .tree-container::-webkit-scrollbar-thumb:hover {
      background: #64748b !important;
    }


    #view-tokens {
      background-color: #f8fafc !important;
    }

    #view-tokens .view-header {
      background: linear-gradient(135deg, #1A316B 0%, #1e3a7a 100%) !important;
      color: #ffffff !important;
      padding: 14px 24px !important;
      font-family: 'Inter', system-ui, sans-serif !important;
      font-size: 16px !important;
      font-weight: 700 !important;
      letter-spacing: 0.5px !important;
      border-bottom: 2px solid #f59e0b !important;
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
    }

    #view-tokens .view-header .close-btn {
      font-size: 18px !important;
      font-weight: 500 !important;
      cursor: pointer !important;
      transition: color 0.2s !important;
    }

    #view-tokens .view-header .close-btn:hover {
      color: #ef4444 !important;
    }

    #view-tokens .container {
      background-color: #f8fafc !important;
      padding: 24px !important;
      gap: 20px !important;
      display: flex !important;
      flex-direction: row !important;
    }

    #view-tokens .tree-container {
      background: #ffffff !important;
      border-radius: 16px !important;
      border: 1px solid #e2e8f0 !important;
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02) !important;
      overflow: auto !important;
      padding: 16px !important;
      flex: 1 !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 16px !important;
      max-height: none !important;
    }

    #view-tokens .filter-bar {
      background: #f8fafc !important;
      border: 1px solid #e2e8f0 !important;
      padding: 12px 18px !important;
      display: flex !important;
      gap: 16px !important;
      align-items: center !important;
      border-radius: 12px !important;
      flex-wrap: wrap !important;
    }

    #view-tokens .filter-bar label {
      font-size: 12.5px !important;
      font-weight: 600 !important;
      color: #475569 !important;
    }

    #view-tokens .filter-bar input[type="date"],
    #view-tokens .filter-bar select {
      background-color: #ffffff !important;
      border: 1px solid #cbd5e1 !important;
      border-radius: 8px !important;
      padding: 6px 12px !important;
      font-size: 13px !important;
      color: #1e293b !important;
      transition: all 0.2s !important;
      outline: none !important;
    }

    #view-tokens .filter-bar input[type="date"]:focus,
    #view-tokens .filter-bar select:focus {
      border-color: #2563eb !important;
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    }

    #view-tokens .filter-bar button {
      background: #2563eb !important;
      color: #ffffff !important;
      border: none !important;
      border-radius: 8px !important;
      padding: 8px 16px !important;
      font-weight: 600 !important;
      font-size: 13px !important;
      cursor: pointer !important;
      transition: all 0.2s !important;
      display: inline-flex !important;
      align-items: center !important;
      gap: 6px !important;
      box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2) !important;
    }

    #view-tokens .filter-bar button:hover {
      background: #1d4ed8 !important;
      transform: translateY(-1px) !important;
    }

    #view-tokens .medicos-table {
      width: 100% !important;
      border-collapse: separate !important;
      border-spacing: 0 !important;
      table-layout: auto !important;
      font-family: 'Inter', system-ui, sans-serif !important;
    }

    #view-tokens .medicos-table th {
      background: #f8fafc !important;
      color: #64748b !important;
      text-transform: uppercase !important;
      font-size: 11px !important;
      font-weight: 700 !important;
      letter-spacing: 0.05em !important;
      padding: 14px 20px !important;
      border-bottom: 1px solid #e2e8f0 !important;
      border-right: none !important;
      border-left: none !important;
      border-top: none !important;
      text-align: left !important;
      position: sticky !important;
      top: 0 !important;
      z-index: 10 !important;
    }

    #view-tokens .medicos-table td {
      color: #334155 !important;
      padding: 14px 20px !important;
      border-bottom: 1px solid #f1f5f9 !important;
      border-right: none !important;
      border-left: none !important;
      border-top: none !important;
      font-size: 13.5px !important;
      line-height: 1.5 !important;
      white-space: normal !important;
    }

    #view-tokens .medicos-table tr {
      transition: background-color 0.15s ease !important;
    }

    #view-tokens .medicos-table tr:hover td {
      background-color: #f1f5f9 !important;
    }

    #view-tokens .controls {
      width: clamp(160px, 15vw, 220px) !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 12px !important;
    }

    #view-tokens .controls button {
      background-color: #ffffff !important;
      color: #334155 !important;
      border: 1px solid #cbd5e1 !important;
      border-radius: 12px !important;
      padding: 12px 18px !important;
      font-weight: 600 !important;
      font-size: 13.5px !important;
      cursor: pointer !important;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
      box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 8px !important;
      outline: none !important;
    }

    #view-tokens .controls button i {
      font-size: 14px !important;
    }

    #view-tokens .controls button.btn-agregar {
      background: #2563eb !important;
      color: #ffffff !important;
      border: none !important;
      box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2) !important;
    }

    #view-tokens .controls button.btn-agregar:hover {
      background: #1d4ed8 !important;
      transform: translateY(-1px) !important;
    }

    #view-tokens .controls button.btn-salir {
      margin-top: auto !important;
      background: #ffffff !important;
      color: #475569 !important;
      border: 1px solid #cbd5e1 !important;
    }

    #view-tokens .controls button.btn-salir:hover {
      background: #f1f5f9 !important;
      color: #334155 !important;
    }


    .priv-module-card {
      background: white;
      border: 1.5px solid #e2e8f0;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
      transition: box-shadow 0.2s, border-color 0.2s;
    }

    .priv-module-card:hover {
      border-color: #cbd5e1;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    }

    .priv-module-header {
      padding: 12px 18px;
      background: #ffffff;
      border-bottom: 1px solid #f1f5f9;
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
      user-select: none;
    }

    .priv-module-icon {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      flex-shrink: 0;
    }

    .priv-collapse-btn {
      background: transparent;
      border: none;
      color: #64748b;
      cursor: pointer;
      font-size: 14px;
      padding: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.2s;
    }

    .priv-master-checkbox {
      width: 16px;
      height: 16px;
      accent-color: #1e3a8a;
      cursor: pointer;
    }

    .priv-module-body {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 8px;
      padding: 15px;
      background: #fafafa;
    }

    .priv-toggle-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 12px;
      background: white;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      cursor: pointer;
      user-select: none;
      transition: all 0.15s ease;
    }

    .priv-toggle-item:hover {
      background: #f8fafc;
      border-color: #cbd5e1;
    }

    .priv-toggle-item input[type="checkbox"] {
      display: none !important;
    }

    .priv-toggle-switch {
      width: 32px;
      height: 18px;
      background: #cbd5e1;
      border-radius: 20px;
      position: relative;
      flex-shrink: 0;
      transition: background 0.2s;
    }

    .priv-toggle-switch::after {
      content: '';
      position: absolute;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: white;
      top: 2px;
      left: 2px;
      transition: transform 0.2s;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    .priv-toggle-item input:checked+.priv-toggle-switch {
      background: #2563eb;
    }

    .priv-toggle-item input:checked+.priv-toggle-switch::after {
      transform: translateX(14px);
    }

    .priv-toggle-label {
      font-size: 12px;
      font-weight: 600;
      color: #475569;
      line-height: 1.3;
    }

    .priv-toggle-item input:checked~.priv-toggle-label {
      color: #1e3a8a;
      font-weight: 700;
    }


    #view-almacenes {
      background-color: #f8fafc !important;
    }

    #view-almacenes .view-header {
      background: linear-gradient(135deg, #1A316B 0%, #1e3a7a 100%) !important;
      color: #ffffff !important;
      padding: 14px 24px !important;
      font-family: 'Inter', system-ui, sans-serif !important;
      font-size: 16px !important;
      font-weight: 700 !important;
      letter-spacing: 0.5px !important;
      border-bottom: 2px solid #f59e0b !important;
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
    }

    #view-almacenes .view-header .close-btn {
      font-size: 18px !important;
      font-weight: 500 !important;
      cursor: pointer !important;
      transition: color 0.2s !important;
    }

    #view-almacenes .view-header .close-btn:hover {
      color: #ef4444 !important;
    }

    #view-almacenes .container {
      background-color: #f8fafc !important;
      padding: 24px !important;
      gap: 20px !important;
      display: flex !important;
      flex-direction: row !important;
    }

    #view-almacenes .tree-container {
      background: #ffffff !important;
      border-radius: 16px !important;
      border: 1px solid #e2e8f0 !important;
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02) !important;
      overflow: auto !important;
      padding: 0 !important;
      flex: 1 !important;
    }

    #view-almacenes .medicos-table {
      width: 100% !important;
      border-collapse: separate !important;
      border-spacing: 0 !important;
      table-layout: auto !important;
      font-family: 'Inter', system-ui, sans-serif !important;
    }

    #view-almacenes .medicos-table th {
      background: #f8fafc !important;
      color: #64748b !important;
      text-transform: uppercase !important;
      font-size: 11px !important;
      font-weight: 700 !important;
      letter-spacing: 0.05em !important;
      padding: 14px 20px !important;
      border-bottom: 1px solid #e2e8f0 !important;
      border-right: none !important;
      border-left: none !important;
      border-top: none !important;
      text-align: left !important;
      height: auto !important;
      position: sticky !important;
      top: 0 !important;
      z-index: 10 !important;
    }

    #view-almacenes .medicos-table td {
      color: #334155 !important;
      padding: 14px 20px !important;
      border-bottom: 1px solid #f1f5f9 !important;
      border-right: none !important;
      border-left: none !important;
      border-top: none !important;
      font-size: 13.5px !important;
      line-height: 1.5 !important;
      height: auto !important;
      white-space: normal !important;
      text-overflow: clip !important;
      overflow: visible !important;
    }

    #view-almacenes .medicos-table tr {
      height: auto !important;
      transition: background-color 0.15s ease !important;
    }

    #view-almacenes .medicos-table tr:hover td {
      background-color: #f1f5f9 !important;
    }

    #view-almacenes .medicos-table tr.selected td {
      background-color: #e0f2fe !important;
      color: #0369a1 !important;
      font-weight: 600 !important;
      border-bottom-color: #bae6fd !important;
    }

    #view-almacenes .controls {
      width: clamp(160px, 15vw, 220px) !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 12px !important;
    }

    #view-almacenes .controls button {
      background-color: #ffffff !important;
      color: #334155 !important;
      border: 1px solid #cbd5e1 !important;
      border-radius: 12px !important;
      padding: 12px 18px !important;
      font-weight: 600 !important;
      font-size: 13.5px !important;
      cursor: pointer !important;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
      box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 8px !important;
      outline: none !important;
    }

    #view-almacenes .controls button i {
      font-size: 14px !important;
    }

    #view-almacenes .controls button.btn-agregar {
      background: #2563eb !important;
      color: #ffffff !important;
      border: none !important;
    }

    #view-almacenes .controls button.btn-agregar:hover {
      background: #1d4ed8 !important;
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
      transform: translateY(-1px) !important;
    }

    #view-almacenes .controls button.btn-editar:hover {
      background: #f8fafc !important;
      border-color: #94a3b8 !important;
      color: #1e293b !important;
      transform: translateY(-1px) !important;
    }

    #view-almacenes .controls button.btn-eliminar {
      background: #fff1f2 !important;
      color: #e11d48 !important;
      border: 1px solid #fecdd3 !important;
    }

    #view-almacenes .controls button.btn-eliminar:hover {
      background: #ffe4e6 !important;
      color: #be123c !important;
      border-color: #fda4af !important;
      transform: translateY(-1px) !important;
    }

    #view-almacenes .controls button.btn-salir {
      margin-top: auto !important;
      background: #ffffff !important;
      color: #475569 !important;
      border: 1px solid #cbd5e1 !important;
    }

    #view-almacenes .controls button.btn-salir:hover {
      background: #f1f5f9 !important;
      color: #334155 !important;
    }


    #view-nomina-empleados .tabla-emp-container::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }

    #view-nomina-empleados .tabla-emp-container::-webkit-scrollbar-track {
      background: #f1f5f9;
      border-radius: 4px;
    }

    #view-nomina-empleados .tabla-emp-container::-webkit-scrollbar-thumb {
      background: #cbd5e1;
      border-radius: 4px;
    }

    #view-nomina-empleados .tabla-emp-container::-webkit-scrollbar-thumb:hover {
      background: #94a3b8;
    }


    #view-cajas {
      background-color: #f8fafc !important;
    }

    #view-cajas .view-header {
      background: linear-gradient(135deg, #1A316B 0%, #1e3a7a 100%) !important;
      color: #ffffff !important;
      padding: 14px 24px !important;
      font-family: 'Inter', system-ui, sans-serif !important;
      font-size: 16px !important;
      font-weight: 700 !important;
      letter-spacing: 0.5px !important;
      border-bottom: 2px solid #f59e0b !important;
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
    }

    #view-cajas .view-header .close-btn {
      font-size: 18px !important;
      font-weight: 500 !important;
      cursor: pointer !important;
      transition: color 0.2s !important;
    }

    #view-cajas .view-header .close-btn:hover {
      color: #ef4444 !important;
    }

    #view-cajas .container {
      background-color: #f8fafc !important;
      padding: 24px !important;
      gap: 20px !important;
      display: flex !important;
      flex-direction: row !important;
    }

    #view-cajas .tree-container {
      background: #ffffff !important;
      border-radius: 16px !important;
      border: 1px solid #e2e8f0 !important;
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02) !important;
      overflow: auto !important;
      padding: 0 !important;
      flex: 1 !important;
    }

    #view-cajas .medicos-table {
      width: 100% !important;
      border-collapse: separate !important;
      border-spacing: 0 !important;
      table-layout: auto !important;
      font-family: 'Inter', system-ui, sans-serif !important;
    }

    #view-cajas .medicos-table th {
      background: #f8fafc !important;
      color: #64748b !important;
      text-transform: uppercase !important;
      font-size: 11px !important;
      font-weight: 700 !important;
      letter-spacing: 0.05em !important;
      padding: 14px 20px !important;
      border-bottom: 1px solid #e2e8f0 !important;
      border-right: none !important;
      border-left: none !important;
      border-top: none !important;
      text-align: left !important;
      height: auto !important;
      position: sticky !important;
      top: 0 !important;
      z-index: 10 !important;
    }

    #view-cajas .medicos-table td {
      color: #334155 !important;
      padding: 14px 20px !important;
      border-bottom: 1px solid #f1f5f9 !important;
      border-right: none !important;
      border-left: none !important;
      border-top: none !important;
      font-size: 13.5px !important;
      line-height: 1.5 !important;
      height: auto !important;
      white-space: normal !important;
      text-overflow: clip !important;
      overflow: visible !important;
    }

    #view-cajas .medicos-table tr {
      height: auto !important;
      transition: background-color 0.15s ease !important;
    }

    #view-cajas .medicos-table tr:hover td {
      background-color: #f1f5f9 !important;
    }

    #view-cajas .medicos-table tr.selected td {
      background-color: #e0f2fe !important;
      color: #0369a1 !important;
      font-weight: 600 !important;
      border-bottom-color: #bae6fd !important;
    }

    #view-cajas .controls {
      width: clamp(160px, 15vw, 220px) !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 12px !important;
    }

    #view-cajas .controls button {
      background-color: #ffffff !important;
      color: #334155 !important;
      border: 1px solid #cbd5e1 !important;
      border-radius: 12px !important;
      padding: 12px 18px !important;
      font-weight: 600 !important;
      font-size: 13.5px !important;
      cursor: pointer !important;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
      box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 8px !important;
      outline: none !important;
    }

    #view-cajas .controls button i {
      font-size: 14px !important;
    }

    #view-cajas .controls button.btn-agregar {
      background: #2563eb !important;
      color: #ffffff !important;
      border: none !important;
    }

    #view-cajas .controls button.btn-agregar:hover {
      background: #1d4ed8 !important;
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
      transform: translateY(-1px) !important;
    }

    #view-cajas .controls button.btn-editar:hover {
      background: #f8fafc !important;
      border-color: #94a3b8 !important;
      color: #1e293b !important;
      transform: translateY(-1px) !important;
    }

    #view-cajas .controls button.btn-eliminar {
      background: #fff1f2 !important;
      color: #e11d48 !important;
      border: 1px solid #fecdd3 !important;
    }

    #view-cajas .controls button.btn-eliminar:hover {
      background: #ffe4e6 !important;
      color: #be123c !important;
      border-color: #fda4af !important;
      transform: translateY(-1px) !important;
    }

    #view-cajas .controls button.btn-salir {
      margin-top: auto !important;
      background: #ffffff !important;
      color: #475569 !important;
      border: 1px solid #cbd5e1 !important;
    }

    #view-cajas .controls button.btn-salir:hover {
      background: #f1f5f9 !important;
      color: #334155 !important;
    }


    #view-impuestos {
      background-color: #f8fafc !important;
    }

    #view-impuestos .view-header {
      background: linear-gradient(135deg, #1A316B 0%, #1e3a7a 100%) !important;
      color: #ffffff !important;
      padding: 14px 24px !important;
      font-family: 'Inter', system-ui, sans-serif !important;
      font-size: 16px !important;
      font-weight: 700 !important;
      letter-spacing: 0.5px !important;
      border-bottom: 2px solid #f59e0b !important;
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
    }

    #view-impuestos .view-header .close-btn {
      font-size: 18px !important;
      font-weight: 500 !important;
      cursor: pointer !important;
      transition: color 0.2s !important;
    }

    #view-impuestos .view-header .close-btn:hover {
      color: #ef4444 !important;
    }

    #view-impuestos .container {
      background-color: #f8fafc !important;
      padding: 24px !important;
      gap: 20px !important;
      display: flex !important;
      flex-direction: row !important;
    }

    #view-impuestos .tree-container {
      background: #ffffff !important;
      border-radius: 16px !important;
      border: 1px solid #e2e8f0 !important;
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02) !important;
      overflow: auto !important;
      padding: 0 !important;
      flex: 1 !important;
    }

    #view-impuestos .medicos-table {
      width: 100% !important;
      border-collapse: separate !important;
      border-spacing: 0 !important;
      table-layout: auto !important;
      font-family: 'Inter', system-ui, sans-serif !important;
    }

    #view-impuestos .medicos-table th {
      background: #f8fafc !important;
      color: #64748b !important;
      text-transform: uppercase !important;
      font-size: 11px !important;
      font-weight: 700 !important;
      letter-spacing: 0.05em !important;
      padding: 14px 20px !important;
      border-bottom: 1px solid #e2e8f0 !important;
      border-right: none !important;
      border-left: none !important;
      border-top: none !important;
      text-align: left !important;
      height: auto !important;
      position: sticky !important;
      top: 0 !important;
      z-index: 10 !important;
    }

    #view-impuestos .medicos-table td {
      color: #334155 !important;
      padding: 14px 20px !important;
      border-bottom: 1px solid #f1f5f9 !important;
      border-right: none !important;
      border-left: none !important;
      border-top: none !important;
      font-size: 13.5px !important;
      line-height: 1.5 !important;
      height: auto !important;
      white-space: normal !important;
      text-overflow: clip !important;
      overflow: visible !important;
    }

    #view-impuestos .medicos-table tr {
      height: auto !important;
      transition: background-color 0.15s ease !important;
    }

    #view-impuestos .medicos-table tr:hover td {
      background-color: #f1f5f9 !important;
    }

    #view-impuestos .medicos-table tr.selected td {
      background-color: #e0f2fe !important;
      color: #0369a1 !important;
      font-weight: 600 !important;
      border-bottom-color: #bae6fd !important;
    }

    #view-impuestos .controls {
      width: clamp(160px, 15vw, 220px) !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 12px !important;
    }

    #view-impuestos .controls button {
      background-color: #ffffff !important;
      color: #334155 !important;
      border: 1px solid #cbd5e1 !important;
      border-radius: 12px !important;
      padding: 12px 18px !important;
      font-weight: 600 !important;
      font-size: 13.5px !important;
      cursor: pointer !important;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
      box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 8px !important;
      outline: none !important;
    }

    #view-impuestos .controls button i {
      font-size: 14px !important;
    }

    #view-impuestos .controls button.btn-agregar {
      background: #2563eb !important;
      color: #ffffff !important;
      border: none !important;
    }

    #view-impuestos .controls button.btn-agregar:hover {
      background: #1d4ed8 !important;
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
      transform: translateY(-1px) !important;
    }

    #view-impuestos .controls button.btn-editar:hover {
      background: #f8fafc !important;
      border-color: #94a3b8 !important;
      color: #1e293b !important;
      transform: translateY(-1px) !important;
    }

    #view-impuestos .controls button.btn-eliminar {
      background: #fff1f2 !important;
      color: #e11d48 !important;
      border: 1px solid #fecdd3 !important;
    }

    #view-impuestos .controls button.btn-eliminar:hover {
      background: #ffe4e6 !important;
      color: #be123c !important;
      border-color: #fda4af !important;
      transform: translateY(-1px) !important;
    }

    #view-impuestos .controls button.btn-salir {
      margin-top: auto !important;
      background: #ffffff !important;
      color: #475569 !important;
      border: 1px solid #cbd5e1 !important;
    }

    #view-impuestos .controls button.btn-salir:hover {
      background: #f1f5f9 !important;
      color: #334155 !important;
    }


    #view-medicos {
      background-color: #f8fafc !important;
    }

    #view-medicos .view-header {
      background: linear-gradient(135deg, #1A316B 0%, #1e3a7a 100%) !important;
      color: #ffffff !important;
      padding: 14px 24px !important;
      font-family: 'Inter', system-ui, sans-serif !important;
      font-size: 16px !important;
      font-weight: 700 !important;
      letter-spacing: 0.5px !important;
      border-bottom: 2px solid #f59e0b !important;
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
    }

    #view-medicos .view-header .close-btn {
      font-size: 18px !important;
      font-weight: 500 !important;
      cursor: pointer !important;
      transition: color 0.2s !important;
    }

    #view-medicos .view-header .close-btn:hover {
      color: #ef4444 !important;
    }

    #view-medicos .container {
      background-color: #f8fafc !important;
      padding: 24px !important;
      gap: 20px !important;
      display: flex !important;
      flex-direction: row !important;
    }

    #view-medicos .tree-container {
      background: #ffffff !important;
      border-radius: 16px !important;
      border: 1px solid #e2e8f0 !important;
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02) !important;
      overflow: auto !important;
      padding: 0 !important;
      flex: 1 !important;
    }

    #view-medicos .medicos-table {
      width: 100% !important;
      border-collapse: separate !important;
      border-spacing: 0 !important;
      table-layout: auto !important;
      font-family: 'Inter', system-ui, sans-serif !important;
    }

    #view-medicos .medicos-table th {
      background: #f8fafc !important;
      color: #64748b !important;
      text-transform: uppercase !important;
      font-size: 11px !important;
      font-weight: 700 !important;
      letter-spacing: 0.05em !important;
      padding: 14px 20px !important;
      border-bottom: 1px solid #e2e8f0 !important;
      border-right: none !important;
      border-left: none !important;
      border-top: none !important;
      text-align: left !important;
      height: auto !important;
      position: sticky !important;
      top: 0 !important;
      z-index: 10 !important;
    }

    #view-medicos .medicos-table td {
      color: #334155 !important;
      padding: 14px 20px !important;
      border-bottom: 1px solid #f1f5f9 !important;
      border-right: none !important;
      border-left: none !important;
      border-top: none !important;
      font-size: 13.5px !important;
      line-height: 1.5 !important;
      height: auto !important;
      white-space: normal !important;
      text-overflow: clip !important;
      overflow: visible !important;
    }

    #view-medicos .medicos-table tr {
      height: auto !important;
      transition: background-color 0.15s ease !important;
    }

    #view-medicos .medicos-table tr:hover td {
      background-color: #f1f5f9 !important;
    }

    #view-medicos .medicos-table tr.selected td {
      background-color: #e0f2fe !important;
      color: #0369a1 !important;
      font-weight: 600 !important;
      border-bottom-color: #bae6fd !important;
    }

    #view-medicos .controls {
      width: clamp(160px, 15vw, 220px) !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 12px !important;
    }

    #view-medicos .controls button {
      background-color: #ffffff !important;
      color: #334155 !important;
      border: 1px solid #cbd5e1 !important;
      border-radius: 12px !important;
      padding: 12px 18px !important;
      font-weight: 600 !important;
      font-size: 13.5px !important;
      cursor: pointer !important;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
      box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 8px !important;
      outline: none !important;
    }

    #view-medicos .controls button i {
      font-size: 14px !important;
    }

    #view-medicos .controls button.btn-agregar {
      background: #1e293b !important;
      color: #ffffff !important;
      border: none !important;
    }

    #view-medicos .controls button.btn-agregar:hover {
      background: #0f172a !important;
      box-shadow: 0 4px 12px rgba(30, 41, 59, 0.25) !important;
      transform: translateY(-1px) !important;
    }

    #view-medicos .controls button.btn-editar:hover {
      background: #f8fafc !important;
      border-color: #94a3b8 !important;
      color: #1e293b !important;
      transform: translateY(-1px) !important;
    }

    #view-medicos .controls button.btn-eliminar {
      background: #fff1f2 !important;
      color: #e11d48 !important;
      border: 1px solid #fecdd3 !important;
    }

    #view-medicos .controls button.btn-eliminar:hover {
      background: #ffe4e6 !important;
      color: #be123c !important;
      border-color: #fda4af !important;
      transform: translateY(-1px) !important;
    }

    #view-medicos .controls button.btn-salir {
      margin-top: auto !important;
      background: #ffffff !important;
      color: #475569 !important;
      border: 1px solid #cbd5e1 !important;
    }

    #view-medicos .controls button.btn-salir:hover {
      background: #f1f5f9 !important;
      color: #334155 !important;
    }


    #view-proveedores {
      background-color: #f8fafc !important;
    }

    #view-proveedores .view-header {
      background: linear-gradient(135deg, #1A316B 0%, #1e3a7a 100%) !important;
      color: #ffffff !important;
      padding: 14px 24px !important;
      font-family: 'Inter', system-ui, sans-serif !important;
      font-size: 16px !important;
      font-weight: 700 !important;
      letter-spacing: 0.5px !important;
      border-bottom: 2px solid #f59e0b !important;
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
    }

    #view-proveedores .view-header .close-btn {
      font-size: 18px !important;
      font-weight: 500 !important;
      cursor: pointer !important;
      transition: color 0.2s !important;
    }

    #view-proveedores .view-header .close-btn:hover {
      color: #ef4444 !important;
    }

    #view-proveedores .container {
      background-color: #f8fafc !important;
      padding: 24px !important;
      gap: 20px !important;
      display: flex !important;
      flex-direction: row !important;
    }

    #view-proveedores .tree-container {
      background: #ffffff !important;
      border-radius: 16px !important;
      border: 1px solid #e2e8f0 !important;
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02) !important;
      overflow: auto !important;
      padding: 0 !important;
      flex: 1 !important;
    }

    #view-proveedores .medicos-table {
      width: 100% !important;
      border-collapse: separate !important;
      border-spacing: 0 !important;
      table-layout: auto !important;
      font-family: 'Inter', system-ui, sans-serif !important;
    }

    #view-proveedores .medicos-table th {
      background: #f8fafc !important;
      color: #64748b !important;
      text-transform: uppercase !important;
      font-size: 11px !important;
      font-weight: 700 !important;
      letter-spacing: 0.05em !important;
      padding: 14px 20px !important;
      border-bottom: 1px solid #e2e8f0 !important;
      border-right: none !important;
      border-left: none !important;
      border-top: none !important;
      text-align: left !important;
      height: auto !important;
      position: sticky !important;
      top: 0 !important;
      z-index: 10 !important;
    }

    #view-proveedores .medicos-table td {
      color: #334155 !important;
      padding: 14px 20px !important;
      border-bottom: 1px solid #f1f5f9 !important;
      border-right: none !important;
      border-left: none !important;
      border-top: none !important;
      font-size: 13.5px !important;
      line-height: 1.5 !important;
      height: auto !important;
      white-space: normal !important;
      text-overflow: clip !important;
      overflow: visible !important;
    }

    #view-proveedores .medicos-table tr {
      height: auto !important;
      transition: background-color 0.15s ease !important;
    }

    #view-proveedores .medicos-table tr:hover td {
      background-color: #f1f5f9 !important;
    }

    #view-proveedores .medicos-table tr.selected td {
      background-color: #e0f2fe !important;
      color: #0369a1 !important;
      font-weight: 600 !important;
      border-bottom-color: #bae6fd !important;
    }

    #view-proveedores .controls {
      width: clamp(160px, 15vw, 220px) !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 12px !important;
    }

    #view-proveedores .controls button {
      background-color: #ffffff !important;
      color: #334155 !important;
      border: 1px solid #cbd5e1 !important;
      border-radius: 12px !important;
      padding: 12px 18px !important;
      font-weight: 600 !important;
      font-size: 13.5px !important;
      cursor: pointer !important;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
      box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 8px !important;
      outline: none !important;
    }

    #view-proveedores .controls button i {
      font-size: 14px !important;
    }

    #view-proveedores .controls button.btn-agregar {
      background: #2563eb !important;
      color: #ffffff !important;
      border: none !important;
    }

    #view-proveedores .controls button.btn-agregar:hover {
      background: #1d4ed8 !important;
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
      transform: translateY(-1px) !important;
    }

    #view-proveedores .controls button.btn-editar:hover {
      background: #f8fafc !important;
      border-color: #94a3b8 !important;
      color: #1e293b !important;
      transform: translateY(-1px) !important;
    }

    #view-proveedores .controls button.btn-eliminar {
      background: #fff1f2 !important;
      color: #e11d48 !important;
      border: 1px solid #fecdd3 !important;
    }

    #view-proveedores .controls button.btn-eliminar:hover {
      background: #ffe4e6 !important;
      color: #be123c !important;
      border-color: #fda4af !important;
      transform: translateY(-1px) !important;
    }

    #view-proveedores .controls button.btn-seleccionar {
      background: #10b981 !important;
      color: #ffffff !important;
      border: none !important;
      box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2) !important;
    }

    #view-proveedores .controls button.btn-seleccionar:hover {
      background: #059669 !important;
      transform: translateY(-1px) !important;
    }

    #view-proveedores .controls button.btn-salir {
      margin-top: auto !important;
      background: #ffffff !important;
      color: #475569 !important;
      border: 1px solid #cbd5e1 !important;
    }

    #view-proveedores .controls button.btn-salir:hover {
      background: #f1f5f9 !important;
      color: #334155 !important;
    }


    #modalOverlayPago {
      backdrop-filter: blur(4px) !important;
      background-color: rgba(15, 23, 42, 0.4) !important;
    }

    #modalOverlayPago .modal {
      background: #ffffff !important;
      border-radius: 16px !important;
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
      border: 1px solid #e2e8f0 !important;
      padding: 24px !important;
      font-family: 'Inter', system-ui, sans-serif !important;
      color: #1e293b !important;
    }

    #modalOverlayPago h2 {
      font-size: 18px !important;
      font-weight: 700 !important;
      color: #1e293b !important;
      margin-bottom: 20px !important;
      padding-bottom: 12px !important;
      border-bottom: 1px solid #e2e8f0 !important;
      display: flex !important;
      align-items: center !important;
      gap: 8px !important;
      margin-top: 0 !important;
    }

    #modalOverlayPago label {
      font-size: 13px !important;
      font-weight: 600 !important;
      color: #475569 !important;
      margin-bottom: 6px !important;
      display: inline-block !important;
    }

    #modalOverlayPago input[type="text"],
    #modalOverlayPago input[type="number"] {
      background-color: #ffffff !important;
      border: 1px solid #cbd5e1 !important;
      border-radius: 8px !important;
      padding: 8px 12px !important;
      font-size: 14px !important;
      color: #1e293b !important;
      transition: all 0.2s !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }

    #modalOverlayPago input[type="text"]:focus,
    #modalOverlayPago input[type="number"]:focus {
      border-color: #2563eb !important;
      outline: none !important;
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    }

    #modalOverlayPago input:disabled {
      background-color: #f1f5f9 !important;
      color: #94a3b8 !important;
      cursor: not-allowed !important;
    }

    #modalOverlayPago .grid-form {
      display: grid !important;
      grid-template-columns: 1fr 1fr !important;
      gap: 16px !important;
      margin-bottom: 16px !important;
    }

    #modalOverlayPago .checkbox-group {
      display: flex !important;
      align-items: center !important;
      gap: 8px !important;
      margin: 0 !important;
    }

    #modalOverlayPago .checkbox-group input[type="checkbox"] {
      width: 16px !important;
      height: 16px !important;
      border-radius: 4px !important;
      border: 1px solid #cbd5e1 !important;
      cursor: pointer !important;
      margin: 0 !important;
    }

    #modalOverlayPago .ref-container {
      background: #f8fafc !important;
      border-radius: 12px !important;
      border: 1px solid #e2e8f0 !important;
      padding: 16px !important;
      margin-bottom: 20px !important;
    }

    #modalOverlayPago .btn-group {
      display: flex !important;
      justify-content: flex-end !important;
      gap: 10px !important;
      margin-top: 24px !important;
    }

    #modalOverlayPago .btn-group button {
      border-radius: 8px !important;
      padding: 10px 16px !important;
      font-weight: 600 !important;
      font-size: 13.5px !important;
      cursor: pointer !important;
      transition: all 0.2s !important;
    }

    #modalOverlayPago .btn-group button:first-child {
      background: linear-gradient(135deg, #1A316B 0%, #1e3a7a 100%) !important;
      color: #ffffff !important;
      border: none !important;
      box-shadow: 0 4px 10px rgba(26, 49, 107, 0.2) !important;
    }

    #modalOverlayPago .btn-group button:first-child:hover {
      background: linear-gradient(135deg, #152756 0%, #182e61 100%) !important;
      transform: translateY(-1px) !important;
    }

    #modalOverlayPago .btn-group button:last-child {
      background: #ffffff !important;
      color: #475569 !important;
      border: 1px solid #cbd5e1 !important;
    }

    #modalOverlayPago .btn-group button:last-child:hover {
      background: #f1f5f9 !important;
      color: #334155 !important;
    }


    #modalOverlayListaPrecio {
      backdrop-filter: blur(4px) !important;
      background-color: rgba(15, 23, 42, 0.4) !important;
    }

    #modalOverlayListaPrecio .modal {
      background: #ffffff !important;
      border-radius: 16px !important;
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
      border: 1px solid #e2e8f0 !important;
      padding: 24px !important;
      font-family: 'Inter', system-ui, sans-serif !important;
      color: #1e293b !important;
    }

    #modalOverlayListaPrecio h2 {
      font-size: 18px !important;
      font-weight: 700 !important;
      color: #1e293b !important;
      margin-bottom: 20px !important;
      padding-bottom: 12px !important;
      border-bottom: 1px solid #e2e8f0 !important;
      display: flex !important;
      align-items: center !important;
      gap: 8px !important;
      margin-top: 0 !important;
    }

    #modalOverlayListaPrecio label {
      font-size: 13px !important;
      font-weight: 600 !important;
      color: #475569 !important;
      margin-bottom: 6px !important;
      display: inline-block !important;
    }

    #modalOverlayListaPrecio input[type="text"] {
      background-color: #ffffff !important;
      border: 1px solid #cbd5e1 !important;
      border-radius: 8px !important;
      padding: 8px 12px !important;
      font-size: 14px !important;
      color: #1e293b !important;
      transition: all 0.2s !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }

    #modalOverlayListaPrecio input[type="text"]:focus {
      border-color: #2563eb !important;
      outline: none !important;
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    }

    #modalOverlayListaPrecio .grid-form {
      display: grid !important;
      grid-template-columns: 1fr 1fr !important;
      gap: 16px !important;
      margin-bottom: 16px !important;
    }

    #modalOverlayListaPrecio .checkbox-group {
      display: flex !important;
      align-items: center !important;
      gap: 8px !important;
      margin: 0 !important;
    }

    #modalOverlayListaPrecio .checkbox-group input[type="checkbox"] {
      width: 16px !important;
      height: 16px !important;
      border-radius: 4px !important;
      border: 1px solid #cbd5e1 !important;
      cursor: pointer !important;
      margin: 0 !important;
    }

    #modalOverlayListaPrecio .btn-group {
      display: flex !important;
      justify-content: flex-end !important;
      gap: 10px !important;
      margin-top: 24px !important;
    }

    #modalOverlayListaPrecio .btn-group button {
      border-radius: 8px !important;
      padding: 10px 16px !important;
      font-weight: 600 !important;
      font-size: 13.5px !important;
      cursor: pointer !important;
      transition: all 0.2s !important;
    }

    #modalOverlayListaPrecio .btn-group button:first-child {
      background: linear-gradient(135deg, #1A316B 0%, #1e3a7a 100%) !important;
      color: #ffffff !important;
      border: none !important;
      box-shadow: 0 4px 10px rgba(26, 49, 107, 0.2) !important;
    }

    #modalOverlayListaPrecio .btn-group button:first-child:hover {
      background: linear-gradient(135deg, #152756 0%, #182e61 100%) !important;
      transform: translateY(-1px) !important;
    }

    #modalOverlayListaPrecio .btn-group button:last-child {
      background: #ffffff !important;
      color: #475569 !important;
      border: 1px solid #cbd5e1 !important;
    }

    #modalOverlayListaPrecio .btn-group button:last-child:hover {
      background: #f1f5f9 !important;
      color: #334155 !important;
    }


    #modalOverlayMarca {
      backdrop-filter: blur(4px) !important;
      background-color: rgba(15, 23, 42, 0.4) !important;
    }

    #modalOverlayMarca .modal {
      background: #ffffff !important;
      border-radius: 16px !important;
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
      border: 1px solid #e2e8f0 !important;
      padding: 24px !important;
      font-family: 'Inter', system-ui, sans-serif !important;
      color: #1e293b !important;
    }

    #modalOverlayMarca h2 {
      font-size: 18px !important;
      font-weight: 700 !important;
      color: #1e293b !important;
      margin-bottom: 20px !important;
      padding-bottom: 12px !important;
      border-bottom: 1px solid #e2e8f0 !important;
      display: flex !important;
      align-items: center !important;
      gap: 8px !important;
      margin-top: 0 !important;
    }

    #modalOverlayMarca label {
      font-size: 13px !important;
      font-weight: 600 !important;
      color: #475569 !important;
      margin-bottom: 6px !important;
      display: inline-block !important;
    }

    #modalOverlayMarca input[type="text"] {
      background-color: #ffffff !important;
      border: 1px solid #cbd5e1 !important;
      border-radius: 8px !important;
      padding: 8px 12px !important;
      font-size: 14px !important;
      color: #1e293b !important;
      transition: all 0.2s !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }

    #modalOverlayMarca input[type="text"]:focus {
      border-color: #2563eb !important;
      outline: none !important;
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    }

    #modalOverlayMarca .grid-form {
      display: grid !important;
      grid-template-columns: 1fr 1fr !important;
      gap: 16px !important;
      margin-bottom: 16px !important;
    }

    #modalOverlayMarca .checkbox-group {
      display: flex !important;
      align-items: center !important;
      gap: 8px !important;
      margin: 0 !important;
    }

    #modalOverlayMarca .checkbox-group input[type="checkbox"] {
      width: 16px !important;
      height: 16px !important;
      border-radius: 4px !important;
      border: 1px solid #cbd5e1 !important;
      cursor: pointer !important;
      margin: 0 !important;
    }

    #modalOverlayMarca .btn-group {
      display: flex !important;
      justify-content: flex-end !important;
      gap: 10px !important;
      margin-top: 24px !important;
    }

    #modalOverlayMarca .btn-group button {
      border-radius: 8px !important;
      padding: 10px 16px !important;
      font-weight: 600 !important;
      font-size: 13.5px !important;
      cursor: pointer !important;
      transition: all 0.2s !important;
    }

    #modalOverlayMarca .btn-group button:first-child {
      background: linear-gradient(135deg, #1A316B 0%, #1e3a7a 100%) !important;
      color: #ffffff !important;
      border: none !important;
      box-shadow: 0 4px 10px rgba(26, 49, 107, 0.2) !important;
    }

    #modalOverlayMarca .btn-group button:first-child:hover {
      background: linear-gradient(135deg, #152756 0%, #182e61 100%) !important;
      transform: translateY(-1px) !important;
    }

    #modalOverlayMarca .btn-group button:last-child {
      background: #ffffff !important;
      color: #475569 !important;
      border: 1px solid #cbd5e1 !important;
    }

    #modalOverlayMarca .btn-group button:last-child:hover {
      background: #f1f5f9 !important;
      color: #334155 !important;
    }


    #modalOverlayCaja {
      backdrop-filter: blur(4px) !important;
      background-color: rgba(15, 23, 42, 0.4) !important;
    }

    #modalOverlayCaja .modal {
      background: #ffffff !important;
      border-radius: 16px !important;
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
      border: 1px solid #e2e8f0 !important;
      padding: 24px !important;
      font-family: 'Inter', system-ui, sans-serif !important;
      color: #1e293b !important;
    }

    #modalOverlayCaja h2 {
      font-size: 18px !important;
      font-weight: 700 !important;
      color: #1e293b !important;
      margin-bottom: 20px !important;
      padding-bottom: 12px !important;
      border-bottom: 1px solid #e2e8f0 !important;
      display: flex !important;
      align-items: center !important;
      gap: 8px !important;
      margin-top: 0 !important;
    }

    #modalOverlayCaja label {
      font-size: 13px !important;
      font-weight: 600 !important;
      color: #475569 !important;
      margin-bottom: 6px !important;
      display: inline-block !important;
    }

    #modalOverlayCaja input[type="text"],
    #modalOverlayCaja select {
      background-color: #ffffff !important;
      border: 1px solid #cbd5e1 !important;
      border-radius: 8px !important;
      padding: 8px 12px !important;
      font-size: 14px !important;
      color: #1e293b !important;
      transition: all 0.2s !important;
      width: 100% !important;
      box-sizing: border-box !important;
      height: 38px !important;
    }

    #modalOverlayCaja input[type="text"]:focus,
    #modalOverlayCaja select:focus {
      border-color: #2563eb !important;
      outline: none !important;
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    }

    #modalOverlayCaja .grid-form {
      display: grid !important;
      grid-template-columns: 1fr 1fr !important;
      gap: 16px !important;
      margin-bottom: 16px !important;
    }

    #modalOverlayCaja .checkbox-group {
      display: flex !important;
      align-items: center !important;
      gap: 8px !important;
      margin: 0 !important;
    }

    #modalOverlayCaja .checkbox-group input[type="checkbox"] {
      width: 16px !important;
      height: 16px !important;
      border-radius: 4px !important;
      border: 1px solid #cbd5e1 !important;
      cursor: pointer !important;
      margin: 0 !important;
    }

    #modalOverlayCaja .btn-expedicion {
      background: #1e293b !important;
      color: #ffffff !important;
      border: none !important;
      padding: 10px 16px !important;
      border-radius: 8px !important;
      font-weight: 600 !important;
      font-size: 13.5px !important;
      cursor: pointer !important;
      transition: all 0.2s !important;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
      width: 100% !important;
      text-align: center !important;
    }

    #modalOverlayCaja .btn-expedicion:hover {
      background: #0f172a !important;
      transform: translateY(-1px) !important;
    }

    #modalOverlayCaja .btn-group {
      display: flex !important;
      justify-content: flex-end !important;
      gap: 10px !important;
      margin-top: 24px !important;
    }

    #modalOverlayCaja .btn-group button {
      border-radius: 8px !important;
      padding: 10px 16px !important;
      font-weight: 600 !important;
      font-size: 13.5px !important;
      cursor: pointer !important;
      transition: all 0.2s !important;
    }

    #modalOverlayCaja .btn-group button:first-child {
      background: linear-gradient(135deg, #1A316B 0%, #1e3a7a 100%) !important;
      color: #ffffff !important;
      border: none !important;
      box-shadow: 0 4px 10px rgba(26, 49, 107, 0.2) !important;
    }

    #modalOverlayCaja .btn-group button:first-child:hover {
      background: linear-gradient(135deg, #152756 0%, #182e61 100%) !important;
      transform: translateY(-1px) !important;
    }

    #modalOverlayCaja .btn-group button:last-child {
      background: #ffffff !important;
      color: #475569 !important;
      border: 1px solid #cbd5e1 !important;
    }

    #modalOverlayCaja .btn-group button:last-child:hover {
      background: #f1f5f9 !important;
      color: #334155 !important;
    }


    #modalOverlayLugarExp {
      backdrop-filter: blur(4px) !important;
      background-color: rgba(15, 23, 42, 0.4) !important;
      z-index: 2000001 !important;
      /* Ensure it appears above the Caja modal */
    }

    #modalOverlayLugarExp .modal {
      background: #ffffff !important;
      border-radius: 16px !important;
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
      border: 1px solid #e2e8f0 !important;
      padding: 24px !important;
      font-family: 'Inter', system-ui, sans-serif !important;
      color: #1e293b !important;
    }

    #modalOverlayLugarExp h2 {
      font-size: 18px !important;
      font-weight: 700 !important;
      color: #1e293b !important;
      margin-bottom: 20px !important;
      padding-bottom: 12px !important;
      border-bottom: 1px solid #e2e8f0 !important;
      display: flex !important;
      align-items: center !important;
      gap: 8px !important;
      margin-top: 0 !important;
    }

    #modalOverlayLugarExp label {
      font-size: 13px !important;
      font-weight: 600 !important;
      color: #475569 !important;
      margin-bottom: 6px !important;
      display: inline-block !important;
    }

    #modalOverlayLugarExp input[type="text"],
    #modalOverlayLugarExp input[type="number"] {
      background-color: #ffffff !important;
      border: 1px solid #cbd5e1 !important;
      border-radius: 8px !important;
      padding: 8px 12px !important;
      font-size: 14px !important;
      color: #1e293b !important;
      transition: all 0.2s !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }

    #modalOverlayLugarExp input[type="text"]:focus,
    #modalOverlayLugarExp input[type="number"]:focus {
      border-color: #2563eb !important;
      outline: none !important;
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    }

    #modalOverlayLugarExp .grid-form {
      display: grid !important;
      grid-template-columns: 1fr 1fr !important;
      gap: 16px !important;
      margin-bottom: 16px !important;
    }

    #modalOverlayLugarExp .btn-group {
      display: flex !important;
      justify-content: flex-end !important;
      gap: 10px !important;
      margin-top: 24px !important;
    }

    #modalOverlayLugarExp .btn-group button {
      border-radius: 8px !important;
      padding: 10px 16px !important;
      font-weight: 600 !important;
      font-size: 13.5px !important;
      cursor: pointer !important;
      transition: all 0.2s !important;
    }

    #modalOverlayLugarExp .btn-group button:first-child {
      background: linear-gradient(135deg, #1A316B 0%, #1e3a7a 100%) !important;
      color: #ffffff !important;
      border: none !important;
      box-shadow: 0 4px 10px rgba(26, 49, 107, 0.2) !important;
    }

    #modalOverlayLugarExp .btn-group button:first-child:hover {
      background: linear-gradient(135deg, #152756 0%, #182e61 100%) !important;
      transform: translateY(-1px) !important;
    }

    #modalOverlayLugarExp .btn-group button:last-child {
      background: #ffffff !important;
      color: #475569 !important;
      border: 1px solid #cbd5e1 !important;
    }

    #modalOverlayLugarExp .btn-group button:last-child:hover {
      background: #f1f5f9 !important;
      color: #334155 !important;
    }


    #modalOverlayAlmacen {
      backdrop-filter: blur(4px) !important;
      background-color: rgba(15, 23, 42, 0.4) !important;
    }

    #modalOverlayAlmacen .modal {
      background: #ffffff !important;
      border-radius: 16px !important;
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
      border: 1px solid #e2e8f0 !important;
      padding: 24px !important;
      font-family: 'Inter', system-ui, sans-serif !important;
      color: #1e293b !important;
    }

    #modalOverlayAlmacen h2 {
      font-size: 18px !important;
      font-weight: 700 !important;
      color: #1e293b !important;
      margin-bottom: 20px !important;
      padding-bottom: 12px !important;
      border-bottom: 1px solid #e2e8f0 !important;
      display: flex !important;
      align-items: center !important;
      gap: 8px !important;
      margin-top: 0 !important;
    }

    #modalOverlayAlmacen label {
      font-size: 13px !important;
      font-weight: 600 !important;
      color: #475569 !important;
      margin-bottom: 6px !important;
      display: inline-block !important;
    }

    #modalOverlayAlmacen input[type="text"],
    #modalOverlayAlmacen textarea {
      background-color: #ffffff !important;
      border: 1px solid #cbd5e1 !important;
      border-radius: 8px !important;
      padding: 8px 12px !important;
      font-size: 14px !important;
      color: #1e293b !important;
      transition: all 0.2s !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }

    #modalOverlayAlmacen input[type="text"]:focus,
    #modalOverlayAlmacen textarea:focus {
      border-color: #2563eb !important;
      outline: none !important;
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    }

    #modalOverlayAlmacen .grid-form {
      display: grid !important;
      grid-template-columns: 1fr 1fr !important;
      gap: 16px !important;
      margin-bottom: 16px !important;
    }

    #modalOverlayAlmacen .checkbox-group {
      display: flex !important;
      align-items: center !important;
      gap: 8px !important;
      margin: 0 !important;
    }

    #modalOverlayAlmacen .checkbox-group input[type="checkbox"] {
      width: 16px !important;
      height: 16px !important;
      border-radius: 4px !important;
      border: 1px solid #cbd5e1 !important;
      cursor: pointer !important;
      margin: 0 !important;
    }

    #modalOverlayAlmacen .btn-group {
      display: flex !important;
      justify-content: flex-end !important;
      gap: 10px !important;
      margin-top: 24px !important;
    }

    #modalOverlayAlmacen .btn-group button {
      border-radius: 8px !important;
      padding: 10px 16px !important;
      font-weight: 600 !important;
      font-size: 13.5px !important;
      cursor: pointer !important;
      transition: all 0.2s !important;
    }

    #modalOverlayAlmacen .btn-group button:first-child {
      background: linear-gradient(135deg, #1A316B 0%, #1e3a7a 100%) !important;
      color: #ffffff !important;
      border: none !important;
      box-shadow: 0 4px 10px rgba(26, 49, 107, 0.2) !important;
    }

    #modalOverlayAlmacen .btn-group button:first-child:hover {
      background: linear-gradient(135deg, #152756 0%, #182e61 100%) !important;
      transform: translateY(-1px) !important;
    }

    #modalOverlayAlmacen .btn-group button:last-child {
      background: #ffffff !important;
      color: #475569 !important;
      border: 1px solid #cbd5e1 !important;
    }

    #modalOverlayAlmacen .btn-group button:last-child:hover {
      background: #f1f5f9 !important;
      color: #334155 !important;
    }


    #table-ent-detalle thead,
    #table-ent-detalle thead tr,
    #table-ent-detalle thead th,
    #table-sal-detalle thead,
    #table-sal-detalle thead tr,
    #table-sal-detalle thead th,
    #table-trasp-detalle thead,
    #table-trasp-detalle thead tr,
    #table-trasp-detalle thead th {
      background-color: #1e3a8a !important;
      color: #ffffff !important;
    }

    #table-sal-detalle tbody tr td,
    #table-trasp-detalle tbody tr td,
    #table-ent-detalle tbody tr td {
      border-bottom: 1px solid #cbd5e1 !important;
      padding-top: 3px !important;
      padding-bottom: 3px !important;
    }

    #table-sal-detalle tbody tr:hover,
    #table-trasp-detalle tbody tr:hover,
    #table-ent-detalle tbody tr:hover {
      background-color: #f0f9ff !important;
    }


    @keyframes pulse {

      0% {

        opacity: 0.4;

        transform: scale(0.9);

      }

      50% {

        opacity: 1;

        transform: scale(1.1);

      }

      100% {

        opacity: 0.4;

        transform: scale(0.9);

      }

    }

    #table-trasp-detalle input {

      width: 100%;

      border: none;

      background: transparent;

      padding: 8px;

      font-family: inherit;

      outline: none;

    }

    #table-trasp-detalle input:focus {

      background: #fff8e8;

    }

    #table-trasp-detalle tr:hover {

      background: #f9f9f9;

    }


    #modalOverlayImpuesto {
      backdrop-filter: blur(4px) !important;
      background-color: rgba(15, 23, 42, 0.4) !important;
    }

    #modalOverlayImpuesto .modal {
      background: #ffffff !important;
      border-radius: 16px !important;
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
      border: 1px solid #e2e8f0 !important;
      padding: 24px !important;
      font-family: 'Inter', system-ui, sans-serif !important;
      color: #1e293b !important;
    }

    #modalOverlayImpuesto h2 {
      font-size: 18px !important;
      font-weight: 700 !important;
      color: #1e293b !important;
      margin-bottom: 20px !important;
      padding-bottom: 12px !important;
      border-bottom: 1px solid #e2e8f0 !important;
      display: flex !important;
      align-items: center !important;
      gap: 8px !important;
      margin-top: 0 !important;
    }

    #modalOverlayImpuesto label {
      font-size: 13px !important;
      font-weight: 600 !important;
      color: #475569 !important;
      margin-bottom: 6px !important;
      display: inline-block !important;
    }

    #modalOverlayImpuesto input[type="text"],
    #modalOverlayImpuesto input[type="number"] {
      background-color: #ffffff !important;
      border: 1px solid #cbd5e1 !important;
      border-radius: 8px !important;
      padding: 8px 12px !important;
      font-size: 14px !important;
      color: #1e293b !important;
      transition: all 0.2s !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }

    #modalOverlayImpuesto input[type="text"]:focus,
    #modalOverlayImpuesto input[type="number"]:focus {
      border-color: #2563eb !important;
      outline: none !important;
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    }

    #modalOverlayImpuesto .grid-form {
      display: grid !important;
      grid-template-columns: 1fr 1fr !important;
      gap: 16px !important;
      margin-bottom: 16px !important;
    }

    #modalOverlayImpuesto .btn-group {
      display: flex !important;
      justify-content: flex-end !important;
      gap: 10px !important;
      margin-top: 24px !important;
    }

    #modalOverlayImpuesto .btn-group button {
      border-radius: 8px !important;
      padding: 10px 16px !important;
      font-weight: 600 !important;
      font-size: 13.5px !important;
      cursor: pointer !important;
      transition: all 0.2s !important;
    }

    #modalOverlayImpuesto .btn-group button:first-child {
      background: linear-gradient(135deg, #1A316B 0%, #1e3a7a 100%) !important;
      color: #ffffff !important;
      border: none !important;
      box-shadow: 0 4px 10px rgba(26, 49, 107, 0.2) !important;
    }

    #modalOverlayImpuesto .btn-group button:first-child:hover {
      background: linear-gradient(135deg, #152756 0%, #182e61 100%) !important;
      transform: translateY(-1px) !important;
    }

    #modalOverlayImpuesto .btn-group button:last-child {
      background: #ffffff !important;
      color: #475569 !important;
      border: 1px solid #cbd5e1 !important;
    }

    #modalOverlayImpuesto .btn-group button:last-child:hover {
      background: #f1f5f9 !important;
      color: #334155 !important;
    }


    .btn-classic {

      background: #d4d0c8;

      border: 2px outset #fff;

      padding: 5px 15px;

      font-size: 12px;

      cursor: pointer;

    }

    .btn-classic:active {

      border-style: inset;

    }

    #table-ent-detalle input {

      border: none;

      width: 100%;

      height: 100%;

      outline: none;

    }

    #table-ent-detalle td {

      border: 1px solid #808080;

      padding: 0;

      height: 25px;

    }

    #table-ent-detalle tr:hover {

      background: #e8f0ff;

    }

    /* ART&Iacute;CULO MODAL MODERNIZATION */

    /* ART&Iacute;CULO MODAL MODERNIZATION - PHARMAB STYLE */

    .art-modal-container {

      background: #ffffff;

      color: #0f172a;

      border: none;

      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

      border-radius: 16px;

      font-family: 'Outfit', 'Inter', sans-serif;

    }

    .art-header {

      background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);

      padding: 12px 25px;

      border-bottom: 1px solid rgba(255, 255, 255, 0.1);

      color: white;

      display: flex;

      justify-content: space-between;

      align-items: center;

      font-weight: 800;

      font-size: 16px;

      letter-spacing: 0.5px;

    }

    .art-section-box {

      background: #f8fafc;

      border: 1px solid #e2e8f0;

      padding: 12px 15px;

      border-radius: 12px;

      margin-bottom: 10px;

    }

    .art-label-sub {

      font-size: 12px;

      color: #000000 !important;

      font-weight: 800;

      text-transform: uppercase;

      letter-spacing: 0.5px;

      font-weight: 700;

      display: block;

      margin-bottom: 4px;

      border-left: 3px solid #10b981;

      padding-left: 8px;

      margin-top: 2px;

    }

    .art-input {

      background-color: #ffffff !important;

      border: 1px solid #cbd5e1 !important;

      color: #1e293b !important;

      padding: 2px 8px;

      border-radius: 8px !important;

      font-family: 'Inter', sans-serif;

      width: 100%;

      box-sizing: border-box;

      font-size: 12px;

      transition: all 0.2s;

      height: 26px !important;
    }

    .art-input:focus {

      border-color: #10b981 !important;

      box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1) !important;

      outline: none;

    }

    .art-select {

      background-color: #ffffff !important;

      border: 1px solid #cbd5e1 !important;

      color: #1e293b !important;

      padding: 2px 8px;

      border-radius: 8px !important;

      cursor: pointer;

      font-size: 12px;

      width: 100%;

      height: 26px !important;
    }

    .art-select:focus {

      border-color: #10b981 !important;

      box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1) !important;

      outline: none;

    }

    .art-table {

      width: 100%;

      border-collapse: collapse;

      font-size: 13px;

    }

    .art-table th {

      background: #f1f5f9;

      color: #000000;

      font-weight: 800;

      padding: 12px 15px;

      border-bottom: 2px solid #e2e8f0;

      text-transform: uppercase;

      font-weight: 700;

      font-size: 11px;

    }

    .art-table td {

      border-bottom: 1px solid #f1f5f9;

      padding: 10px 15px;

      background: #fff;

    }

    .art-tab-btns {

      display: flex;

      background: #f8fafc;

      padding: 8px 20px 0 20px;

      gap: 10px;

      border-bottom: 1px solid #e2e8f0;

    }

    .art-tab-btn {

      background: transparent;

      color: #000000;

      border: none;

      padding: 8px 16px;

      cursor: pointer;

      border-radius: 8px 8px 0 0;

      font-size: 15px;

      font-weight: 700;

      font-weight: 600;

      transition: all 0.2s;

      position: relative;

    }

    .art-tab-btn.active {

      background: #ffffff;

      color: #10b981;

      box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.02);

    }

    .art-tab-btn.active::after {

      content: '';

      position: absolute;

      bottom: 0;

      left: 0;

      width: 100%;

      height: 3px;

      background: #10b981;

      border-radius: 3px 3px 0 0;

    }

    .art-char-panel {

      background: #f8fafc;

      border-radius: 12px;

      border: 1px solid #e2e8f0;

      padding: 12px 15px;

    }

    .art-footer {

      background: #ffffff;

      padding: 4px 20px;

      border-top: 1px solid #e2e8f0;

      display: flex;

      justify-content: space-between;

      align-items: center;

      min-height: 40px;

    }

    /* Estilos para el M&oacute;dulo de Expediente */

    .exp-step {

      display: none;

    }

    .exp-step.active {

      display: block;

    }

    .step-btn {

      background: #333;

      color: #888;

      border: none;

      padding: 12px 20px;

      cursor: pointer;

      font-size: 12px;

    }

    .step-btn.active {

      background: #f59e0b;

      color: #000;

      font-weight: bold;

    }

    .cat-item-select {

      padding: 10px;

      border-bottom: 1px solid #eee;

      cursor: pointer;

    }

    .cat-item-select:hover {

      background: #f1f5f9;

    }



    .cyber-check {
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      margin: 0 !important;
      padding: 0 !important;
      cursor: pointer !important;
      gap: 6px !important;
      height: 25px !important;
      min-height: 25px !important;
      line-height: 1 !important;
      transition: 0.15s;
    }

    .cyber-check:hover {
      opacity: 0.8;
    }

    .cyber-check input[type=checkbox] {
      width: 13px !important;
      height: 13px !important;
      min-width: 13px !important;
      margin: 0 !important;
      padding: 0 !important;
      cursor: pointer !important;
      accent-color: #10b981 !important;
    }

    .cyber-check label {
      font-size: 11px !important;
      color: #000000 !important;
      font-weight: 800 !important;
      cursor: pointer !important;
      margin: 0 !important;
      padding: 0 !important;
      line-height: 1 !important;
      user-select: none;
      text-transform: uppercase !important;
      letter-spacing: 0.5px !important;
    }



    #table-precios {
      width: 100%;
      table-layout: fixed;
      border-collapse: collapse;
      font-size: 12px;
      font-family: 'Inter', sans-serif;
    }

    .price-cell-wrap {
      position: relative !important;
      display: flex !important;
      align-items: center !important;
      width: 100% !important;
      height: 38px !important;
      box-sizing: border-box !important;
    }

    .price-cell-wrap .curr-sign {
      position: absolute !important;
      left: 4px !important;
      font-weight: 800 !important;
      font-size: 13px !important;
      pointer-events: none !important;
      z-index: 2 !important;
    }

    .price-cell-wrap input {
      width: 100% !important;
      height: 100% !important;
      padding-left: 14px !important;
      padding-right: 4px !important;
      text-align: right !important;
      font-weight: 800 !important;
      font-size: 13px !important;
      background: transparent !important;
      border: none !important;
      outline: none !important;
      box-sizing: border-box !important;
    }

    #table-precios th {
      background: #2563eb !important;
      color: #ffffff !important;
      font-weight: 800 !important;
      padding: 8px 10px !important;
      text-align: center;
      border-right: 1px solid rgba(255, 255, 255, 0.25) !important;
      border-bottom: 2px solid #1d4ed8 !important;
      white-space: nowrap;
      font-size: 11px !important;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    #table-precios th.col-price {
      color: #ffffff !important;
    }

    #table-precios th.col-list {
      color: #ffffff !important;
    }

    #table-precios tbody tr {

      background: #fff;

      border-bottom: 1px solid #f1f5f9;

      height: 40px;

      transition: 0.2s;

    }

    #table-precios tbody tr:hover {

      background: #f8fafc;

    }

    #table-precios tbody td {

      border-right: 1px solid #f1f5f9;

      padding: 0;

      vertical-align: middle;

      height: 40px;

    }

    #table-precios tbody td.sep {

      border-right: 2px solid #e2e8f0;

    }

    #table-precios td.num {

      width: 30px;

      text-align: center;

      color: #94a3b8;

      font-size: 10px;

      font-weight: 800;

    }

    /* Inputs fusionados con la fila */

    #table-precios input[type=text],

    #table-precios input[type=number] {

      width: 100%;

      height: 40px;

      background: transparent;

      border: none;

      outline: none;

      color: #000000;

      font-size: 14px;

      font-family: 'Inter', sans-serif;

      padding: 0 4px;

      margin: 0;

      box-sizing: border-box;

      display: flex;

      align-items: center;

      text-align: right;

      font-weight: 700;

    }

    #table-precios input#artUnit {

      text-align: center;

      font-weight: 800;

      color: #0ea5e9;

    }

    #table-precios input#artMult {

      text-align: center;

    }

    #table-precios input#artMarger1,
    #table-precios input.p-margen {
      text-align: center;
      color: #0f172a !important;
      font-weight: 800 !important;
      font-size: 13px !important;
      padding: 0 4px !important;
    }

    #table-precios input#artCompra {
      color: #d97706 !important;
      font-weight: 800 !important;
      font-size: 13px !important;
    }

    #table-precios input#artValP1,

    #table-precios input.p-val {

      color: #000000;

      font-weight: 700;

      font-size: 14px;

    }

    #table-precios input:focus,

    #table-variedades input:focus,

    .v-nom:focus {

      background: #ffffff !important;

      color: #000000 !important;

      outline: none !important;

      box-shadow: inset 0 0 0 2px #3b82f6 !important;

    }



    .btn-classic {

      background: #d4d0c8;

      border: 2px outset #fff;

      padding: 5px 15px;

      font-size: 12px;

      cursor: pointer;

    }

    .btn-classic:active {

      border-style: inset;

    }

    #table-ent-detalle input {

      border: none;

      width: 100%;

      height: 100%;

      outline: none;

    }

    #table-ent-detalle td {

      border: 1px solid #808080;

      padding: 0;

      height: 25px;

    }

    #table-ent-detalle tr:hover {

      background: #e8f0ff;

    }

    /* ART&Iacute;CULO MODAL MODERNIZATION */

    /* ART&Iacute;CULO MODAL MODERNIZATION - PHARMAB STYLE */

    .art-modal-container {

      background: #ffffff;

      color: #0f172a;

      border: none;

      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

      border-radius: 16px;

      font-family: 'Outfit', 'Inter', sans-serif;

    }

    .art-header {

      background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);

      padding: 12px 25px;

      border-bottom: 1px solid rgba(255, 255, 255, 0.1);

      color: white;

      display: flex;

      justify-content: space-between;

      align-items: center;

      font-weight: 800;

      font-size: 16px;

      letter-spacing: 0.5px;

    }

    .art-section-box {

      background: #f8fafc;

      border: 1px solid #e2e8f0;

      padding: 12px 15px;

      border-radius: 12px;

      margin-bottom: 10px;

    }

    .art-label-sub {

      font-size: 12px;

      color: #000000 !important;

      font-weight: 800;

      text-transform: uppercase;

      letter-spacing: 0.5px;

      font-weight: 700;

      display: block;

      margin-bottom: 4px;

      border-left: 3px solid #10b981;

      padding-left: 8px;

      margin-top: 2px;

    }

    .art-input {

      background-color: #ffffff !important;

      border: 1px solid #cbd5e1 !important;

      color: #1e293b !important;

      padding: 2px 8px;

      border-radius: 8px !important;

      font-family: 'Inter', sans-serif;

      width: 100%;

      box-sizing: border-box;

      font-size: 12px;

      transition: all 0.2s;

      height: 26px !important;
    }

    .art-input:focus {

      border-color: #10b981 !important;

      box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1) !important;

      outline: none;

    }

    .art-select {

      background-color: #ffffff !important;

      border: 1px solid #cbd5e1 !important;

      color: #1e293b !important;

      padding: 2px 8px;

      border-radius: 8px !important;

      cursor: pointer;

      font-size: 12px;

      width: 100%;

      height: 26px !important;
    }

    .art-select:focus {

      border-color: #10b981 !important;

      box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1) !important;

      outline: none;

    }

    .art-table {

      width: 100%;

      border-collapse: collapse;

      font-size: 13px;

    }

    .art-table th {

      background: #f1f5f9;

      color: #000000;

      font-weight: 800;

      padding: 12px 15px;

      border-bottom: 2px solid #e2e8f0;

      text-transform: uppercase;

      font-weight: 700;

      font-size: 11px;

    }

    .art-table td {

      border-bottom: 1px solid #f1f5f9;

      padding: 10px 15px;

      background: #fff;

    }

    .art-tab-btns {

      display: flex;

      background: #f8fafc;

      padding: 8px 20px 0 20px;

      gap: 10px;

      border-bottom: 1px solid #e2e8f0;

    }

    .art-tab-btn {

      background: transparent;

      color: #000000;

      border: none;

      padding: 8px 16px;

      cursor: pointer;

      border-radius: 8px 8px 0 0;

      font-size: 15px;

      font-weight: 700;

      font-weight: 600;

      transition: all 0.2s;

      position: relative;

    }

    .art-tab-btn.active {

      background: #ffffff;

      color: #10b981;

      box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.02);

    }

    .art-tab-btn.active::after {

      content: '';

      position: absolute;

      bottom: 0;

      left: 0;

      width: 100%;

      height: 3px;

      background: #10b981;

      border-radius: 3px 3px 0 0;

    }

    .art-char-panel {

      background: #f8fafc;

      border-radius: 12px;

      border: 1px solid #e2e8f0;

      padding: 12px 15px;

    }

    .art-footer {

      background: #ffffff;

      padding: 4px 20px;

      border-top: 1px solid #e2e8f0;

      display: flex;

      justify-content: space-between;

      align-items: center;

      min-height: 40px;

    }

    /* Estilos para el M&oacute;dulo de Expediente */

    .exp-step {

      display: none;

    }

    .exp-step.active {

      display: block;

    }

    .step-btn {

      background: #333;

      color: #888;

      border: none;

      padding: 12px 20px;

      cursor: pointer;

      font-size: 12px;

    }

    .step-btn.active {

      background: #f59e0b;

      color: #000;

      font-weight: bold;

    }

    .cat-item-select {

      padding: 10px;

      border-bottom: 1px solid #eee;

      cursor: pointer;

    }

    .cat-item-select:hover {

      background: #f1f5f9;

    }


    @keyframes mlcSlideIn {

      from {
        opacity: 0;
        transform: translateY(-16px) scale(0.97);
      }

      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }

    }


    .floating-cart-btn {

      position: fixed;

      bottom: 50px;

      right: 50px;

      background: #ef4444;

      color: white;

      border-radius: 10px;

      padding: 20px 30px;

      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);

      cursor: pointer;

      z-index: 9000;

      display: flex !important;

      font-size: 20px;

      font-weight: bold;

      font-family: inherit;

      align-items: center;

      gap: 8px;

    }

    .floating-cart-btn:hover {
      background: #2563eb;
    }

    /* ==========================================================================
             SISTEMA DE DISEÑO GLOBAL Y VARIABLES CSS - PHARMA WEB
             Documentado en: DESIGN_GUIDE.md
             ========================================================================== */
    :root {
      --color-primario: #1E40AF;
      --color-medio: #3B82F6;
      --color-claro: #DBEAFE;
      --color-claro-suave: #EFF6FF;
      --color-oscuro: #0F172A;
      --color-fondo: #F8FAFC;
      --color-superficie: #FFFFFF;
      --color-borde: #CBD5E1;
      --color-borde-suave: #E2E8F0;
      --color-texto-secundario: #475569;

      /* Estados semánticos suaves */
      --color-exito: #10B981;
      --color-exito-bg: #DCFCE7;
      --color-exito-texto: #166534;
      --color-advertencia: #F59E0B;
      --color-advertencia-bg: #FEF3C7;
      --color-advertencia-texto: #92400E;
      --color-peligro: #DC2626;
      --color-peligro-bg: #FEE2E2;
      --color-peligro-texto: #991B1B;

      /* Tipografía, bordes, sombras y transiciones */
      --font-principal: 'Inter', 'Outfit', system-ui, -apple-system, sans-serif;
      --radius-card: 12px;
      --radius-modal: 14px;
      --radius-control: 8px;
      --radius-badge: 999px;
      --shadow-card: 0 4px 12px rgba(15, 23, 42, 0.05);
      --shadow-elevated: 0 8px 24px -6px rgba(15, 23, 42, 0.08);
      --shadow-modal: 0 25px 50px -12px rgba(15, 23, 42, 0.38);
      --transition-fast: 0.2s ease;
    }

    .dev-blue-view {
      background: var(--color-fondo, #F8FAFC) !important;
      font-family: var(--font-principal) !important;
      color: var(--color-oscuro, #0F172A);
    }

    .dev-blue-view>.view-header,
    .dev-blue-modal-header {
      background: linear-gradient(135deg, var(--color-primario, #1E40AF) 0%, var(--color-medio, #3B82F6) 100%) !important;
      color: #FFFFFF !important;
      padding: 16px 24px !important;
      border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
      box-shadow: 0 4px 14px rgba(30, 64, 175, 0.18) !important;
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
    }

    .dev-blue-view>.view-header span:first-child {
      font-size: 16px !important;
      font-weight: 800 !important;
      letter-spacing: 0.3px !important;
      display: flex !important;
      align-items: center !important;
      gap: 10px !important;
    }

    .dev-blue-view .close-btn,
    .dev-blue-close-btn {
      background: rgba(255, 255, 255, 0.18) !important;
      color: #FFFFFF !important;
      width: 32px !important;
      height: 32px !important;
      border-radius: var(--radius-control, 8px) !important;
      border: none !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      font-size: 16px !important;
      cursor: pointer !important;
      transition: all var(--transition-fast, 0.2s ease) !important;
    }

    .dev-blue-view .close-btn:hover,
    .dev-blue-close-btn:hover {
      background: rgba(255, 255, 255, 0.32) !important;
      transform: scale(1.05);
    }

    .dev-blue-view .container {
      background: var(--color-fondo, #F8FAFC) !important;
      padding: 20px 24px !important;
    }

    .dev-blue-view .tree-container {
      background: var(--color-superficie, #FFFFFF) !important;
      border: 1px solid var(--color-claro, #DBEAFE) !important;
      border-radius: var(--radius-card, 12px) !important;
      padding: 18px 20px !important;
      box-shadow: var(--shadow-elevated) !important;
    }

    .dev-blue-view .filter-bar {
      background: var(--color-fondo, #F8FAFC) !important;
      border: 1px solid var(--color-claro, #DBEAFE) !important;
      border-radius: 10px !important;
      padding: 14px 16px !important;
      display: flex !important;
      flex-wrap: wrap !important;
      gap: 12px !important;
      align-items: center !important;
    }

    .dev-blue-view .filter-bar label {
      font-size: 12px !important;
      font-weight: 700 !important;
      color: var(--color-oscuro, #0F172A) !important;
      text-transform: uppercase !important;
      letter-spacing: 0.4px !important;
    }

    .dev-blue-view .filter-bar input[type="date"],
    .dev-blue-view .filter-bar input[type="text"],
    .dev-blue-view .filter-bar select,
    .dev-blue-input,
    .dev-blue-select {
      height: 38px !important;
      border: 1.5px solid var(--color-borde, #CBD5E1) !important;
      border-radius: var(--radius-control, 8px) !important;
      padding: 0 12px !important;
      font-size: 13px !important;
      font-weight: 600 !important;
      color: var(--color-oscuro, #0F172A) !important;
      background: var(--color-superficie, #FFFFFF) !important;
      outline: none !important;
      transition: border-color var(--transition-fast, 0.2s ease), box-shadow var(--transition-fast, 0.2s ease) !important;
    }

    .dev-blue-view .filter-bar input[type="date"] {
      width: 155px !important;
      flex: 0 0 auto !important;
    }

    .dev-blue-view .filter-bar select {
      width: auto !important;
      min-width: 190px !important;
      max-width: 280px !important;
      flex: 0 1 auto !important;
    }

    .dev-blue-view .filter-bar input:focus,
    .dev-blue-view .filter-bar select:focus,
    .dev-blue-input:focus,
    .dev-blue-select:focus {
      border-color: var(--color-medio, #3B82F6) !important;
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
    }

    .dev-blue-view .filter-bar button,
    .dev-blue-btn-primary {
      background: var(--color-primario, #1E40AF) !important;
      color: #FFFFFF !important;
      border: none !important;
      border-radius: var(--radius-control, 8px) !important;
      height: 38px !important;
      padding: 0 18px !important;
      font-weight: 700 !important;
      font-size: 13px !important;
      cursor: pointer !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 8px !important;
      box-shadow: 0 4px 10px rgba(30, 64, 175, 0.2) !important;
      transition: all var(--transition-fast, 0.2s ease) !important;
    }

    .dev-blue-view .filter-bar button:hover,
    .dev-blue-btn-primary:hover {
      background: var(--color-medio, #3B82F6) !important;
      transform: translateY(-1px);
      box-shadow: 0 6px 14px rgba(59, 130, 246, 0.3) !important;
    }

    .dev-blue-btn-primary:disabled {
      opacity: 0.55 !important;
      cursor: not-allowed !important;
      transform: none !important;
    }

    .dev-blue-table-wrap {
      overflow-y: auto;
      overflow-x: auto;
      margin-top: 14px !important;
      border-radius: 10px !important;
      border: 1px solid var(--color-claro, #DBEAFE) !important;
      background: var(--color-superficie, #FFFFFF) !important;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
    }

    .dev-blue-view table.medicos-table,
    .dev-blue-view table.dev-blue-table,
    .dev-blue-modal table.medicos-table,
    .dev-blue-modal table.dev-blue-table,
    .dev-blue-table {
      width: 100% !important;
      table-layout: auto !important;
      border-collapse: collapse !important;
      font-size: 13px !important;
    }

    .dev-blue-view table.medicos-table thead th,
    .dev-blue-view table.dev-blue-table thead th,
    .dev-blue-modal table.medicos-table thead th,
    .dev-blue-modal table.dev-blue-table thead th,
    .dev-blue-table thead th {
      background: var(--color-primario, #1E40AF) !important;
      background-color: var(--color-primario, #1E40AF) !important;
      color: #FFFFFF !important;
      font-weight: 700 !important;
      font-size: 11.5px !important;
      text-transform: uppercase !important;
      letter-spacing: 0.5px !important;
      padding: 9px 12px !important;
      border: none !important;
      box-shadow: none !important;
      position: sticky !important;
      top: 0 !important;
      z-index: 5 !important;
    }

    .dev-blue-view table.medicos-table tbody tr,
    .dev-blue-modal table.medicos-table tbody tr,
    .dev-blue-table tbody tr {
      height: auto !important;
      border-bottom: 1px solid var(--color-borde-suave, #E2E8F0) !important;
      transition: background-color 0.15s ease !important;
    }

    .dev-blue-view table.medicos-table tbody tr:nth-child(even),
    .dev-blue-modal table.medicos-table tbody tr:nth-child(even),
    .dev-blue-table tbody tr:nth-child(even) {
      background-color: var(--color-fondo, #F8FAFC) !important;
    }

    .dev-blue-view table.medicos-table tbody tr:hover,
    .dev-blue-modal table.medicos-table tbody tr:hover,
    .dev-blue-table tbody tr:hover {
      background-color: var(--color-claro, #DBEAFE) !important;
    }

    .dev-blue-view table.medicos-table tbody td,
    .dev-blue-modal table.medicos-table tbody td,
    .dev-blue-table tbody td {
      padding: 8px 12px !important;
      color: var(--color-oscuro, #0F172A) !important;
      vertical-align: middle !important;
      white-space: normal !important;
      overflow: visible !important;
    }

    .dev-blue-view .controls .btn-agregar {
      background: linear-gradient(135deg, var(--color-primario, #1E40AF) 0%, var(--color-medio, #3B82F6) 100%) !important;
      color: #FFFFFF !important;
      border: none !important;
      border-radius: 10px !important;
      font-weight: 700 !important;
      box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25) !important;
      transition: all var(--transition-fast, 0.2s ease) !important;
    }

    .dev-blue-view .controls .btn-agregar:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35) !important;
    }

    .dev-blue-modal {
      background: var(--color-fondo, #F8FAFC) !important;
      border-radius: var(--radius-modal, 14px) !important;
      padding: 0 !important;
      overflow: hidden !important;
      border: 1px solid var(--color-claro, #DBEAFE) !important;
      box-shadow: var(--shadow-modal) !important;
      font-family: var(--font-principal) !important;
      color: var(--color-oscuro, #0F172A) !important;
      animation: sysConfirmIn 0.2s ease-out;
    }

    .dev-blue-card {
      background: var(--color-superficie, #FFFFFF);
      border: 1px solid var(--color-claro, #DBEAFE);
      border-radius: var(--radius-card, 12px);
      padding: 16px 18px;
      margin-bottom: 14px;
      box-shadow: var(--shadow-card);
      transition: all var(--transition-fast, 0.2s ease);
    }

    .dev-blue-step-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--color-primario, #1E40AF);
      color: #FFFFFF;
      font-size: 11px;
      font-weight: 800;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      margin-right: 6px;
    }

    .dev-blue-step-title {
      font-size: 12px;
      font-weight: 800;
      color: var(--color-primario, #1E40AF);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      display: flex;
      align-items: center;
      margin-bottom: 10px;
    }

    @media (max-width: 900px) {
      .dev-blue-modal {
        min-width: 94vw !important;
        width: 95vw !important;
      }

      .dev-blue-view .container {
        padding: 12px 14px !important;
      }
    }

    @media (max-width: 600px) {
      .dev-blue-view .filter-bar {
        flex-direction: column !important;
        align-items: stretch !important;
      }

      .dev-blue-view .filter-bar input,
      .dev-blue-view .filter-bar select,
      .dev-blue-view .filter-bar button {
        width: 100% !important;
      }
    }

    /* ==========================================================================
             BUSCADOR DE ACCESO RÁPIDO A MENÚS Y SUBMENÚS EN BARRA SUPERIOR
             ========================================================================== */
    .nav-quick-search-wrapper {
      position: relative;
      display: flex;
      align-items: center;
      margin-left: 10px;
      font-family: var(--font-principal, 'Inter', 'Outfit', sans-serif);
    }

    .nav-quick-search-box {
      position: relative;
      display: flex;
      align-items: center;
      width: 245px;
    }

    .nav-quick-search-box i.fa-search {
      position: absolute;
      left: 11px;
      color: #93C5FD;
      font-size: 12.5px;
      pointer-events: none;
      transition: color 0.2s ease;
    }

    .nav-quick-search-input {
      width: 100% !important;
      height: 31px !important;
      padding: 0 28px 0 32px !important;
      background: rgba(15, 23, 42, 0.45) !important;
      border: 1px solid rgba(147, 197, 253, 0.35) !important;
      border-radius: 999px !important;
      color: #FFFFFF !important;
      font-size: 12px !important;
      font-weight: 600 !important;
      outline: none !important;
      transition: all 0.2s ease !important;
    }

    .nav-quick-search-input::placeholder {
      color: #BFDBFE !important;
      opacity: 0.8;
      font-weight: 500;
    }

    .nav-quick-search-input:focus {
      background: #FFFFFF !important;
      color: var(--color-oscuro, #0F172A) !important;
      border-color: var(--color-medio, #3B82F6) !important;
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.28) !important;
      width: 280px !important;
    }

    .nav-quick-search-input:focus::placeholder {
      color: #64748B !important;
    }

    .nav-quick-search-box:focus-within i.fa-search {
      color: var(--color-primario, #1E40AF);
    }

    .nav-quick-search-dropdown {
      display: none;
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      width: 340px;
      max-height: 370px;
      overflow-y: auto;
      background: var(--color-superficie, #FFFFFF);
      border: 1px solid var(--color-claro, #DBEAFE);
      border-radius: 12px;
      box-shadow: 0 20px 38px -10px rgba(15, 23, 42, 0.32);
      z-index: 9999999;
      padding: 6px;
    }

    .nav-quick-search-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 9px 12px;
      border-radius: 8px;
      cursor: pointer;
      transition: background-color 0.15s ease;
      border-bottom: 1px solid #F1F5F9;
    }

    .nav-quick-search-item:last-child {
      border-bottom: none;
    }

    .nav-quick-search-item:hover,
    .nav-quick-search-item.active {
      background: var(--color-claro, #DBEAFE);
    }

    .nav-quick-search-item-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--color-oscuro, #0F172A);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .nav-quick-search-item-title i {
      color: var(--color-primario, #1E40AF);
      width: 16px;
      text-align: center;
    }

    .nav-quick-search-item-cat {
      font-size: 10.5px;
      font-weight: 800;
      color: var(--color-primario, #1E40AF);
      background: var(--color-claro-suave, #EFF6FF);
      border: 1px solid var(--color-claro, #DBEAFE);
      padding: 2px 8px;
      border-radius: 999px;
      text-transform: uppercase;
      letter-spacing: 0.4px;
      white-space: nowrap;
    }

    .nav-quick-search-empty {
      padding: 14px 12px;
      text-align: center;
      font-size: 12.5px;
      color: #64748B;
      font-weight: 600;
    }