/**
 * Estilos de ALCAUR.
 * Este archivo fue extraído de index.html sin modificar el orden de la cascada.
 */

/* Evita que el login reaparezca durante el retorno de Google OAuth. */
html.alcaur-auth-returning #login-screen {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Bloque de estilos 1 */
.variety-counter {
        background: #000000;
        border-radius: 12px;
        padding: 6px 8px;
        min-width: 180px;
        width: 185px;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: none;
        border: none;
        position: relative;
      }
      .variety-counter::after {
        content: none;
      }
      .variety-number {
        font-family: 'Montserrat', sans-serif;
        font-weight: 900;
        font-size: 1.8rem;
        color: #ffffff;
        line-height: 1;
      }
      .variety-label {
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 0.65rem;
        color: #ffffff;
        text-transform: uppercase;
        margin-top: 4px;
        letter-spacing: 1px;
      }

      /* Custom styles for Divisas Row */
      .divisas-select-container select {
        font-size: clamp(0.5rem, 2vw, 0.65rem);
        background: transparent;
        color: inherit;
        border: none;
        appearance: none;
        -webkit-appearance: none;
        appearance: none;
        appearance: none;
        cursor: pointer;
        width: 100%;
        outline: none;
        white-space: pre;
        font-family: 'Share Tech Mono', monospace;
      }
      /* Ensure options are styled based on mode */
      body.light-mode .divisas-select-container select option {
        background-color: #ffffff;
        color: #001FB8;
        border-bottom: 1px solid rgba(0, 31, 184, 0.15);
      }
      body:not(.light-mode) .divisas-select-container select option {
        background-color: #0a0a0a;
        color: #99FF00;
        border-bottom: 1px solid rgba(153, 255, 0, 0.25);
      }
      .divisas-select-container select option {
        padding: 10px 12px;
        font-family: 'Share Tech Mono', monospace;
        font-weight: 700;
        white-space: pre;
      }
      .divisas-display-text {
        font-size: clamp(0.6rem, 2.5vw, 0.75rem);
      }

      /* Custom Rate Modal */
      #custom-rate-modal {
        position: fixed;
        inset: 0;
        z-index: 2000;
        display: none;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(4px);
      }
      .modal-content {
        background: var(--black-2);
        border: 1px solid var(--green-border);
        border-radius: 16px;
        padding: 24px;
        width: 90%;
        max-width: 400px;
        text-align: center;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
      }
      body.light-mode .modal-content {
        background: #ffffff;
        border-color: #ddd;
        color: #000;
      }
      .modal-title {
        font-family: var(--font-body);
        font-size: 0.75rem;
        letter-spacing: 1px;
        text-transform: uppercase;
        margin-bottom: 16px;
        color: var(--green);
      }
      body.light-mode .modal-title {
        color: #000;
        font-weight: 700;
      }
      .modal-input {
        width: 100%;
        background: var(--black-4);
        border: var(--surface-border-width) solid var(--surface-border-current);
        border-radius: 8px;
        padding: 12px;
        color: var(--white);
        font-family: var(--font-mono);
        font-size: 1.2rem;
        text-align: center;
        margin-bottom: 20px;
        outline: none;
      }
      body.light-mode .modal-input {
        background: #f5f5f5;
        border-color: #ccc;
        color: #000;
      }
      .modal-save-btn {
        background: var(--green);
        color: #000;
        border: none;
        border-radius: 8px;
        padding: 10px 24px;
        font-family: var(--font-body);
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
        cursor: pointer;
        transition: transform 0.2s;
      }
      .modal-save-btn:active { transform: scale(0.95); }

      :root {
        --black: #000000;
        --black-2: #0a0a0a;
        --black-3: #111111;
        --black-4: #1a1a1a;
        --black-5: #222222;
        --black-6: #2a2a2a;
        --green: #8CFF00;
        --green-dim: rgba(140,255,0,0.15);
        --green-border: rgba(140,255,0,0.3);
        --white: #ffffff;
        --white-60: rgba(255,255,255,0.6);
        --white-30: rgba(255,255,255,0.3);
        --white-10: rgba(255,255,255,0.1);
        --red: #ff2020;
        --blue: #1a1aff;
        --font-display: 'Cormorant Garamond', serif;
        --font-body: 'Montserrat', sans-serif;
        --font-mono: var(--font-body), monospace;
        
        /* Adaptive Colors */
        --adaptive-text: #ffffff;
        --adaptive-price: #39ff14;
        --preview-price-usd: #00eeff;
        --preview-stock: #e100ff;
      }

      * { box-sizing: border-box; margin: 0; padding: 0; }
      input[type=number]::-webkit-inner-spin-button, 
      input[type=number]::-webkit-outer-spin-button { 
        -webkit-appearance: none; 
        margin: 0; 
      }
      input[type=number] {
        -moz-appearance: textfield;
        appearance: textfield;
      }
      body { font-family: var(--font-body); background: var(--black); color: var(--adaptive-text); overflow-x: hidden; }
      body, html { width: 100%; height: 100%; }
      html { scrollbar-width: none; -ms-overflow-style: none; }
      body::-webkit-scrollbar, html::-webkit-scrollbar { width: 0; height: 0; }

      /* ── LOGIN SCREEN ── */
      #login-screen {
        position: fixed; inset: 0; z-index: 100;
        display: flex; flex-direction: column;
        justify-content: center; align-items: center;
        background: var(--black);
      }
      .login-bg {
        position: absolute; inset: 0;
        background: radial-gradient(ellipse at 50% 30%, #0d0d0d 0%, #000 70%);
        z-index: 0;
      }
            .login-container {
        position: relative; z-index: 10;
        display: flex; flex-direction: column;
        align-items: center; width: 90%; max-width: 560px;
        text-align: center;
      }
      /* Reserve the left half of the desktop home screen for future content. */
      .login-main-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        transform: translateX(clamp(120px, 25vw, 360px));
      }

      .login-title {
        font-family: 'Pinyon Script', cursive;
        font-size: 5rem; color: var(--white);
        margin-bottom: 0.5rem; letter-spacing: 0px;
        transition: all 0.6s ease;
      }
      .login-subtitle {
        font-family: var(--font-body);
        font-size: 0.65rem; letter-spacing: 6px;
        color: var(--white-30); text-transform: uppercase;
        margin-bottom: 3rem;
      }
      .controls-wrapper {
        display: flex; align-items: center; justify-content: center;
        gap: 16px; height: 80px; margin-bottom: 2.5rem;
        position: relative; width: 100%;
      }
      .power-btn {
        width: 64px; height: 64px;
        background: var(--black-4);
        border: 1px solid var(--black-6);
        border-radius: 16px;
        display: flex; justify-content: center; align-items: center;
        cursor: pointer;
        transition: all 0.5s cubic-bezier(0.34,1.56,0.64,1);
        box-shadow: 0 8px 24px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.05);
        z-index: 20; flex-shrink: 0;
      }
      .active .power-btn {
        border-color: var(--green-border);
        transform: translateX(-145px);
      }
      .power-icon { width: 26px; height: 26px; fill: none; stroke: #444; stroke-width: 2; transition: all 0.5s; }
      .active .power-icon { stroke: var(--white-60); }
      .auth-panel {
        position: absolute;
        display: flex; align-items: center; flex-direction: row; gap: 6px;
        background: var(--black-3);
        border: 1px solid var(--black-6);
        border-radius: 14px; padding: 8px 10px;
        width: 300px; opacity: 0;
        transform: translateX(80px) scale(0.95);
        pointer-events: none;
        transition: all 0.5s cubic-bezier(0.34,1.56,0.64,1);
      }
      .active .auth-panel {
        opacity: 1; transform: translateX(50px) scale(1);
        pointer-events: auto; border-color: rgba(255,255,255,0.12);
      }
      .auth-input {
        background: transparent; border: none;
        color: var(--white); flex: 1;
        padding: 6px 8px; font-family: var(--font-body);
        font-size: 12px; outline: none; letter-spacing: 1px;
        box-sizing: border-box;
      }
      .auth-input::placeholder { color: var(--white-30); font-size: 11px; letter-spacing: 1px; }
      .submit-btn {
        width: 36px; height: 36px; flex-shrink: 0;
        background: var(--green); border: none; border-radius: 8px;
        color: #000000 !important; font-size: 15px;
        display: flex; justify-content: center; align-items: center;
        cursor: pointer; transition: all 0.2s;
        font-weight: 700;
      }
      .submit-btn:hover { background: #fff; transform: scale(1.05); }
      .info-block {
        display: flex; align-items: flex-start; gap: 16px;
        padding: 24px; background: var(--black-3);
        border-radius: 12px; border: var(--surface-border-width) solid var(--surface-border-current);
        max-width: 540px; margin-bottom: 2.5rem;
        transform: translateX(clamp(120px, 25vw, 360px));
      }
      .info-text {
        font-family: var(--font-body); font-size: 11.5px;
        line-height: 1.9; color: var(--white-60); text-align: left;
        font-weight: 300;
      }
      .brand-hl { font-weight: 600; color: var(--white); }
      .login-footer {
        position: fixed; bottom: 20px; width: 100%;
        display: flex; flex-direction: column; align-items: center; gap: 8px;
        transform: translateX(clamp(120px, 25vw, 360px));
      }
      .footer-line { width: 240px; height: 1px; background: var(--black-5); }
      .footer-text { font-size: 9px; color: #333; letter-spacing: 2px; text-transform: uppercase; }

      /* ── LOADING (CATERPILLAR) ── */
      .loading-overlay {
        position: fixed; inset: 0; background: #ffffff;
        z-index: 9999; display: none;
        justify-content: center; align-items: center; flex-direction: column;
      }
      .caterpillar-container {
        width: 100%; max-width: 500px; aspect-ratio: 2/1;
        display: flex; align-items: center; justify-content: center;
        position: relative;
        margin-bottom: -20px;
      }
      #caterpillarSvg { width: 100%; height: 100%; }
      #wordSvg { width: 80%; max-width: 320px; height: auto; margin-top: 0px; }
      @keyframes waveMove { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-8px); } }
      .dot-wave { transform-box: fill-box; transform-origin: center; animation: waveMove 0.6s ease-in-out infinite; }

      /* ── INDICADOR DE SINCRONIZACIÓN ── */
      .sync-badge {
        position: fixed; bottom: 16px; right: 16px; z-index: 9999;
        font-family: var(--font-mono); font-size: 10px; font-weight: 600;
        padding: 4px 12px; border-radius: 4px; letter-spacing: 1px;
        transition: all 0.4s;
      }
      /* Paleta de superficies exclusiva para modo oscuro. */
      body:not(.light-mode) .app-header,
      body:not(.light-mode) .sidebar {
        background: #000000;
        border-color: #171717;
      }
      body:not(.light-mode) .panel,
      body:not(.light-mode) .form-card,
      body:not(.light-mode) .product-card,
      body:not(.light-mode) .invoice-card {
        background: #050505;
        border-color: #171717;
      }
      body:not(.light-mode) .panel:hover,
      body:not(.light-mode) .product-card:hover,
      body:not(.light-mode) .invoice-card:hover {
        border-color: #262626;
      }

      /* Panel lateral derecho vacío y área central adaptada. */
      .right-sidebar {
        width: 260px;
        background: var(--black-2);
        border-left: var(--surface-border-width) solid var(--surface-border-current);
        color: var(--white);
        height: calc(100vh - 100px);
        position: fixed;
        top: 100px;
        right: 0;
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
      }
      body:not(.light-mode) .right-sidebar {
        background: #000000;
        border-color: #171717;
      }
      body.light-mode .right-sidebar {
        background: var(--black) !important;
        border-color: var(--surface-border-current) !important;
        color: var(--adaptive-text) !important;
      }
      @media (min-width: 1181px) {
        .app-container {
          margin-right: 260px !important;
          width: auto !important;
        }
      }
      @media (max-width: 1180px) {
        .right-sidebar { display: none; }
        .app-container { margin-right: 0 !important; width: 100% !important; }
      }
      @media (max-width: 768px) {
        .right-sidebar { display: none; }
      }

      .sync-badge.connected    { background: #051a0a; color: #39ff14; border: 1px solid rgba(57,255,20,0.3); }
      .sync-badge.disconnected { background: #1a0505; color: #ff4444; border: 1px solid rgba(255,68,68,0.3); }
      .sync-badge.syncing      { background: var(--black-4); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); animation: syncPulse 1s infinite; }
      @keyframes syncPulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

      /* ── MARKET APP ── */
      #market-app { display: none; width: 100%; min-height: 100vh; background: var(--black); overflow-y: auto; }

      /* ── SIDEBAR ── */
      .sidebar {
        width: 260px; background: var(--black-2);
        border-right: var(--surface-border-width) solid var(--surface-border-current);
        color: var(--white); flex-shrink: 0;
        height: 100vh; position: fixed; top: 0; left: 0;
        padding: 0; z-index: 1000;
        display: flex; flex-direction: column;
        overflow-y: auto; overflow-x: hidden;
        transition: transform 0.3s ease;
      }
      /* Desktop: always visible */
      @media(min-width:769px){
        .sidebar { transform: translateX(0) !important; }
        .app-container { margin-left: 260px !important; }
        #hamburger-btn { display: none !important; }
      }
      /* Mobile: hidden by default, open class shows it */
      @media(max-width:768px){
        .sidebar { transform: translateX(-100%); }
        .sidebar.open { transform: translateX(0); }
        .app-container.sidebar-open { margin-left: 0; }
        #hamburger-btn { display: flex !important; }
      }
      .sidebar-inner { display: flex; flex-direction: column; padding: 20px 14px 24px; flex: 1; }
      /* Sidebar divider */
      .sidebar-divider { border: none; border-top: var(--surface-border-width) solid var(--surface-border-current); margin: 12px 0; }
      /* CALCULADORA button */
      .sidebar-calc-btn {
        display: flex; align-items: center; gap: 10px;
        background: var(--black-4); border: 1px solid var(--black-6);
        border-radius: 8px; padding: 10px 14px; cursor: pointer;
        font-family: var(--font-body); font-size: 0.65rem; font-weight: 600;
        letter-spacing: 2px; text-transform: uppercase; color: var(--white-60);
        width: 100%; transition: all 0.2s; justify-content: space-between;
      }
      .sidebar-calc-btn:hover { border-color: var(--green-border); color: var(--white); }
      .sidebar-calc-btn .calc-chevron { transition: transform 0.2s; font-size: 10px; }
      .sidebar-calc-btn.open .calc-chevron { transform: rotate(180deg); }
      /* Calculator */
      #sidebar-calc-panel {
        display: none; flex-direction: column;
        background: #0a0a0a; border: 1px solid #222;
        border-radius: 10px; padding: 14px; margin-top: 8px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.04);
      }
      body.light-mode #sidebar-calc-panel {
        background: #919191;
        border-color: #5c5c5c;
      }
      #sidebar-calc-panel.open { display: flex; }
      /* Screen */
      .sc-screen {
        position: relative;
        background: #1a2e1b; border-radius: 6px;
        padding: 10px 12px; margin-bottom: 10px;
        border: 2px solid #111111;
        box-shadow: inset 0 2px 8px rgba(0,0,0,0.6);
        height: 75px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
      }
      .sc-screen:focus-within {
        outline: none;
        box-shadow: inset 0 2px 8px rgba(0,0,0,0.6);
      }
      .sc-input {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        background: transparent;
        color: transparent;
        caret-color: transparent;
        border: none;
        outline: none;
        box-shadow: none;
        -webkit-appearance: none;
        appearance: none;
        font-size: 1rem;
      }
      .sc-input:focus {
        outline: none;
        box-shadow: none;
      }
      .sc-input:focus {
        outline: none;
        box-shadow: none;
      }
      .sc-expr {
        font-family: 'VT323', monospace;
        font-size: 1.05rem;
        color: rgba(255,255,255,0.85);
        text-align: right;
        min-height: 18px;
        overflow: hidden;
        white-space: nowrap;
        letter-spacing: 0.6px;
      }
      .sc-result {
        font-family: 'VT323', monospace;
        font-size: 1.6rem;
        color: #ffffff;
        text-align: right;
        letter-spacing: 0.6px;
        line-height: 1.05;
        word-break: break-all;
      }
      /* Calc grid */
      .sc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
      .sc-btn {
        background: linear-gradient(180deg, #1e1e1e 0%, #111 100%);
        border: 1px solid #2a2a2a; color: #ccc;
        font-family: var(--font-mono); font-size: 0.85rem;
        padding: 9px 4px; border-radius: 6px; cursor: pointer;
        text-align: center; transition: all 0.08s;
        box-shadow: 0 3px 0 #050505, inset 0 1px 0 rgba(255,255,255,0.05);
      }
      .sc-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #050505; }
      .sc-btn.op { color: #39ff14; border-color: rgba(57,255,20,0.2); }
      .sc-btn.clear { background: linear-gradient(180deg, #1a0505 0%, #0e0303 100%); color: #ff6b6b; border-color: rgba(255,107,107,0.2); }
      .sc-btn.del { background: linear-gradient(180deg, #1a0a00 0%, #0e0600 100%); color: #ff9933; border-color: rgba(255,153,51,0.2); }
      .sc-btn.eq { background: linear-gradient(180deg, #39ff14 0%, #1f8c07 100%); color: #000; font-weight: 700; border-color: #1a6600; box-shadow: 0 3px 0 #0a3302, 0 0 10px rgba(57,255,20,0.2), inset 0 1px 0 rgba(255,255,255,0.2); }
      .sc-btn.span2 { grid-column: span 2; }
      /* User manager */
      .sidebar-user-section { margin-top: 16px; }
      .sidebar-user-input { font-family: var(--font-body); font-size: 0.65rem; }
      .app-container { flex-grow: 1; transition: margin-left 0.3s ease; width: 100%; position: relative; }


      /* ── CONVERSION CALC ── */
      .conv-section {
        background: var(--black-3); border: var(--surface-border-width) solid var(--surface-border-current);
        border-radius: 8px; padding: 12px; margin-bottom: 8px;
      }
      .conv-label { font-size: 0.6rem; letter-spacing: 2px; text-transform: uppercase; color: var(--white-30); margin-bottom: 6px; }
      .conv-input {
        background: var(--black); border: 1px solid var(--black-6);
        color: var(--white); font-family: var(--font-mono); font-size: 1rem;
        padding: 8px 12px; border-radius: 6px; width: 100%; outline: none;
        transition: border-color 0.2s;
      }
      .conv-input:focus { border-color: var(--green-border); }
      .conv-input[readonly] { color: var(--green); }
      .conv-rate-badge {
        background: var(--black-4); border: 1px solid var(--black-6);
        border-radius: 6px; padding: 6px 10px; display: flex; align-items: center; gap: 8px;
        margin-bottom: 8px;
      }
      .conv-rate-label { font-size: 0.55rem; letter-spacing: 2px; color: var(--white-30); text-transform: uppercase; white-space: nowrap; }
      .conv-rate-input {
        background: transparent; border: none; color: var(--white);
        font-family: var(--font-mono); font-size: 0.9rem; outline: none; width: 70px; text-align: right;
      }

      /* ── APP HEADER ── */
      .app-header {
        background: var(--black-2); border-bottom: var(--surface-border-width) solid var(--surface-border-current);
        padding: 0 24px;
        position: relative;
        min-height: 100px;
        display: flex;
        align-items: flex-end;
      }
      .header-main-content {
        display: flex;
        align-items: flex-end;
        gap: 20px;
        width: 100%;
        height: 100%;
      }
      .header-divider {
        width: 1px;
        height: 60px;
        background: var(--black-5);
        margin: 0 10px 10px 10px;
        align-self: flex-end;
      }
      .sidebar-clock {
        display: flex;
        justify-content: center;
        align-items: baseline;
        padding: 10px 12px 0px 12px;
        margin-bottom: 0px;
        color: var(--white);
      }
      .clock-time {
        font-family: var(--font-body), monospace; /* Fuente monoespaciada profesional */
        font-size: 2.2rem; /* Hora más grande */
        letter-spacing: 1px;
        font-weight: 600;
        min-width: 180px; /* Ajustado para el nuevo tamaño */
        text-align: center;
        display: inline-block;
        /* Asegurar que no haya variaciones de ancho */
        font-variant-numeric: tabular-nums;
        -webkit-font-feature-settings: "tnum";
        font-feature-settings: "tnum";
      }
      .clock-ampm {
        font-family: 'Montserrat', sans-serif; /* Fuente más legible */
        font-size: 0.8rem; /* AM/PM más pequeño */
        color: var(--white-60);
        margin-left: 8px;
        width: 40px; /* Ancho fijo para el indicador */
        text-align: left;
        font-weight: 600;
        letter-spacing: 1px;
      }
      .sidebar-date {
        text-align: center; padding: 0 12px 8px 12px; margin-bottom: 4px;
        font-family: 'Montserrat', sans-serif; font-size: 0.65rem; font-weight: 600;
        color: #eaeaea; letter-spacing: 1px; text-transform: uppercase;
      }
      body.light-mode .sidebar-date {
        color: #000000 !important;
      }
      .sidebar-bcv-container {
        display: flex; align-items: center; justify-content: space-between;
        padding: 10px 12px; margin-bottom: 12px; background: var(--black-4);
        border-radius: 6px; border: 1px solid transparent;
        transition: border-color 0.3s ease;
      }
      .sidebar-bcv-container.active-border {
        border-color: #66FF00 !important;
      }
      body.light-mode .sidebar-bcv-container.active-border {
        border-color: #000000 !important;
      }
      .sidebar-bcv-price {
        font-family: var(--font-mono); font-size: 0.95rem; font-weight: 700;
        color: #40d200; letter-spacing: 1px;
      }
      .sidebar-bcv-label {
        font-size: 0.5rem; letter-spacing: 1px; text-transform: uppercase;
        color: var(--white-30); margin-bottom: 4px;
      }
      .bcv-copy-btn {
        background: transparent; border: 1px solid #40d200; border-radius: 4px;
        padding: 4px 8px; cursor: pointer; color: #40d200; transition: all 0.2s;
        display: flex; align-items: center; gap: 4px; font-size: 0.65rem;
      }
      .bcv-copy-btn:hover { background: rgba(64, 210, 0, 0.1); }
      .bcv-copy-btn.copied { background: rgba(64, 210, 0, 0.2); }


      /* --- EURO PRICE STYLES --- */
      .sidebar-euro-container {
        display: flex; align-items: center; justify-content: space-between;
        padding: 10px 12px; margin-bottom: 12px; background: var(--black-4);
        border-radius: 6px; border: 1px solid transparent;
        transition: border-color 0.3s ease;
      }
      .sidebar-euro-container.active-border {
        border-color: #66FF00 !important;
      }
      body.light-mode .sidebar-euro-container.active-border {
        border-color: #000000 !important;
      }
      .sidebar-euro-price {
        font-family: var(--font-body); font-size: 0.95rem; font-weight: 700;
        color: #69fe2a; letter-spacing: 1px;
      }
      body.light-mode .sidebar-euro-price {
        color: #000000;
      }
      .euro-copy-btn {
        background: transparent; border: 1px solid #69fe2a; border-radius: 4px;
        padding: 4px 8px; cursor: pointer; color: #69fe2a; transition: all 0.2s;
        display: flex; align-items: center; gap: 4px; font-size: 0.65rem;
      }
      body.light-mode .euro-copy-btn {
        border-color: #000000; color: #000000;
      }
      .euro-copy-btn:hover { background: rgba(105, 254, 42, 0.1); }
      body.light-mode .euro-copy-btn:hover { background: rgba(0, 0, 0, 0.05); }
      .euro-copy-btn.copied { background: rgba(105, 254, 42, 0.2); }
      .app-title {
        font-family: var(--font-body); font-size: 2.2rem; font-weight: 900;
        color: var(--adaptive-text); text-align: left; letter-spacing: 2px;
        text-transform: uppercase;
      }
      .title-mi-campo { color: #ffffff; }
      .title-market { color: #9de600; }
      body.light-mode .title-mi-campo { color: #000000; }
      body.light-mode .title-market { color: #000000; }
      /* En modo claro, ambos fragmentos del título se mantienen en negro sólido. */
      body.light-mode #market-app .title-mi-campo,
      body.light-mode #market-app .title-market {
        color: #000000 !important;
        text-shadow: none !important;
      }
      .app-subtitle {
        font-family: 'Pinyon Script', cursive; font-size: 1.2rem; letter-spacing: 1px;
        color: #c9c9c9; text-align: right; margin-top: -5px;
        text-transform: none;
        width: 100%;
      }
      body.light-mode .app-subtitle { color: #000000; }
      .nav-bar.top-nav { display: flex; justify-content: flex-start; margin-top: 0; gap: 10px; padding-left: 0; align-items: center; }
      .top-nav-item {
        padding: 8px 12px; cursor: pointer;
        font-family: var(--font-body); font-size: 0.65rem; font-weight: 900;
        letter-spacing: 1px; text-transform: uppercase; color: var(--white-30);
        transition: color 0.2s; white-space: nowrap;
        display: flex; align-items: center; justify-content: center;
      }
      .top-nav-item:hover { color: var(--white-60); }
      .top-nav-item.active { color: var(--adaptive-text); transform: none !important; }

      /* ── PANELS ── */
      .panel {
        background: var(--black-3); border: var(--surface-border-width) solid var(--surface-border-current);
        border-radius: 14px; overflow: visible; margin-bottom: 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      }
      .panel-body,
      .form-card,
      .info-tooltip-container {
        overflow: visible;
      }
      .info-tooltip-panel {
        z-index: 99999;
      }
      
      /* Expandable Panels in Facturas */
      .expandable-panel {
        order: 1;
        cursor: pointer;
        position: relative;
        height: 100px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
      }
      
      .expandable-panel .panel-header {
        background: transparent;
        border: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        pointer-events: none;
      }
      
      .expandable-panel .panel-title {
        opacity: 1;
        font-size: 0.6rem;
      }
      
      .expandable-panel .panel-body {
        display: none;
        width: 100%;
        opacity: 0;
        transition: opacity 0.3s ease;
      }
      
      .expandable-panel.expanded {
        width: 100% !important;
        max-width: 600px;
        height: auto;
        cursor: default;
        display: block;
        text-align: left;
      }
      
      .expandable-panel.expanded .panel-header {
        background: var(--black-4);
        border-bottom: var(--surface-border-width) solid var(--surface-border-current);
        padding: 16px 20px;
        flex-direction: row;
        pointer-events: auto;
      }
      
      .expandable-panel.expanded .panel-title {
        font-size: 0.7rem;
        opacity: 0.6;
      }
      
      .expandable-panel.expanded .panel-body {
        display: block;
        opacity: 1;
      }
      
      .expandable-panel .expand-icon {
        position: absolute;
        top: 10px;
        right: 10px;
        opacity: 0.3;
        transition: transform 0.3s ease;
      }
      
      .expandable-panel.expanded .expand-icon {
        transform: rotate(180deg);
      }
      .panel-header{
        background: var(--black-4); padding: 16px 20px;
        border-bottom: var(--surface-border-width) solid var(--surface-border-current);
        display: flex; justify-content: space-between; align-items: center;
        position: relative;
        border-top-left-radius: 14px;
        border-top-right-radius: 14px;
      }
      .panel-title {
        font-family: var(--font-body); font-size: 0.7rem; font-weight: 600;
        letter-spacing: 3px; text-transform: uppercase; color: var(--adaptive-text);
        opacity: 0.6;
      }
      body.light-mode .panel-title {
        color: #000000 !important;
        opacity: 1 !important;
      }
      body.light-mode .panel-title span {
        color: #052400 !important;
      }
      
      /* Exchange Rate Inputs Borders */
      #j-exchange-rate, #k-exchange-rate,
      #j-exchange-rate:focus, #k-exchange-rate:focus,
      .variety-counter input#j-exchange-rate,
      .variety-counter input#k-exchange-rate {
        border: none !important;
        background: #000000 !important;
        color: #ffffff !important;
        box-shadow: none !important;
        outline: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        appearance: none !important;
        -webkit-appearance: none !important;
        border-radius: 0 !important;
        font-size: 2rem !important;
        line-height: 1.1 !important;
        min-height: 3rem !important;
      }
      .variety-counter input#j-exchange-rate::-webkit-inner-spin-button,
      .variety-counter input#j-exchange-rate::-webkit-outer-spin-button,
      .variety-counter input#k-exchange-rate::-webkit-inner-spin-button,
      .variety-counter input#k-exchange-rate::-webkit-outer-spin-button {
        -webkit-appearance: none !important;
        margin: 0 !important;
      }
      body.light-mode #j-exchange-rate,
      body.light-mode #k-exchange-rate,
      body.light-mode #j-exchange-rate:focus,
      body.light-mode #k-exchange-rate:focus {
        border: none !important;
        background: transparent !important;
        color: #ffffff !important;
        box-shadow: none !important;
        outline: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        appearance: none !important;
        -webkit-appearance: none !important;
        border-radius: 0 !important;
      }

      .panel-body { padding: 20px; }
      /* Day Divider Styles */
      .day-divider {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin: 25px 0 15px 0;
        position: relative;
        width: 100%;
      }
      .day-divider-line {
        width: 100%;
        height: 2px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 0;
        margin-top: 0;
        z-index: 1;
      }
      .day-divider-label {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-bottom: none;
        padding: 8px 22px;
        border-radius: 12px 12px 0 0;
        font-family: var(--font-body);
        font-size: 0.75rem;
        font-weight: 700;
        color: var(--adaptive-text);
        text-transform: uppercase;
        letter-spacing: 1px;
        position: relative;
        z-index: 2;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
        margin-bottom: 0;
      }
      .day-divider.credit .day-divider-line { background: #F28282; }
      .day-divider.credit .day-divider-label { background: #F28282; border-color: #F28282; color: #000; backdrop-filter: none; }
      body.light-mode .day-divider-line { background: rgba(0, 0, 0, 0.1); }
      body.light-mode .day-divider-label { background: rgba(255, 255, 255, 0.9); border-color: rgba(0, 0, 0, 0.1); color: #000000; }
      body.light-mode .day-divider.credit .day-divider-line { background: #F28282; }
      body.light-mode .day-divider.credit .day-divider-label { background: #F28282; color: #fff; }


      /* ── TOOLTIP STYLES ── */
      .info-tooltip-container {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        margin-bottom: 4px;
      }
      .info-tooltip-container > label.field-label {
        margin: 0;
        margin-top: -1px;
        line-height: 1.2;
        display: inline-flex;
        align-items: center;
        transform: translateY(-1px);
      }
      .info-tooltip-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 15px;
        height: 15px;
        background: var(--white-10);
        border: 1px solid var(--white-30);
        border-radius: 50%;
        font-family: var(--font-body);
        font-size: 10px;
        font-weight: 800;
        color: var(--white-60);
        transition: all 0.2s;
        margin-right: 6px;
        transform: translateY(-1px);
      }
      .info-tooltip-container:hover .info-tooltip-icon {
        background: var(--white-30);
        color: var(--white);
        border-color: var(--white-60);
      }
      .info-tooltip-panel {
        position: absolute;
        bottom: calc(100% + 10px);
        left: 0;
        width: 280px;
        background: #000000;
        color: #ffffff;
        padding: 14px;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.4);
        font-family: var(--font-body);
        font-size: 0.65rem;
        font-weight: 600;
        line-height: 1.5;
        text-transform: none;
        letter-spacing: 0.5px;
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
        transform: translateY(10px);
        pointer-events: none;
      }
      body.light-mode .info-tooltip-panel {
        background: #ffffff;
        color: #000000;
        box-shadow: 0 10px 25px rgba(0,0,0,0.18);
      }
      .info-tooltip-panel strong {
        color: #00FFBF;
        font-weight: 800;
      }
      body.light-mode .info-tooltip-panel strong {
        color: #0006B8;
      }
      .info-tooltip-container:hover .info-tooltip-panel {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
      }
      /* Arrow for tooltip */
      .info-tooltip-panel::after {
        display: none;
      }

      /* ── INPUTS ── */
.field-input {
        background: rgba(10, 10, 10, 0.85); border: 1px solid var(--black-6);
        color: var(--white); font-family: var(--font-body); font-size: 0.78rem;
        font-weight: 700; line-height: 1.2;
        padding: 10px 14px; border-radius: 7px; outline: none;
        transition: border-color 0.2s; width: 100%;
        position: relative;
        z-index: 2;
        backdrop-filter: blur(4px);
      }
      .field-input:focus { border-color: var(--green-border); }
      .field-input::placeholder { color: #333; font-weight: 600; }
      .field-label { font-size: 0.64rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--adaptive-text); opacity: 0.45; margin-bottom: 6px; display: block; }
      @media (max-width: 700px) {
        .field-input {
          font-size: 0.82rem;
          font-weight: 700;
          padding: 11px 14px;
        }
        .field-label {
          font-size: 0.66rem;
          font-weight: 700;
          opacity: 0.5;
        }
      }
      .btn-green {
        background: var(--green); color: var(--black);
        border: none; border-radius: 8px; padding: 10px 20px;
        font-family: var(--font-body); font-size: 0.7rem; font-weight: 700;
        letter-spacing: 2px; text-transform: uppercase;
        cursor: pointer; transition: all 0.2s;
      }
      .btn-green:hover { background: #fff; transform: translateY(-1px); }
      .btn-green:active { transform: translateY(0); }
      .btn-outline {
        background: #d1d1d1; color: #000000;
        border: 1px solid #b1b1b1; border-radius: 8px; padding: 10px 20px;
        font-family: var(--font-body); font-size: 0.7rem; font-weight: 700;
        letter-spacing: 2px; text-transform: uppercase;
        cursor: pointer; transition: all 0.2s;
      }
      .btn-outline:hover { background: #ffffff; border-color: #ffffff; color: #000000; }
      .btn-danger {
        background: #ff2020 !important; color: #ffffff !important;
        border: none; border-radius: 8px; padding: 6px 14px;
        font-family: var(--font-body); font-size: 0.65rem; font-weight: 700;
        letter-spacing: 1px; cursor: pointer; transition: all 0.2s;
      }
      .btn-danger:hover { background: #e60000 !important; transform: scale(1.02); }
      .btn-icon {
        background: var(--black-4); border: 1px solid var(--black-6);
        color: var(--white-60); border-radius: 8px; padding: 8px 14px;
        font-family: var(--font-body); font-size: 0.65rem;
        cursor: pointer; transition: all 0.2s;
      }
      .btn-icon:hover { border-color: var(--green-border); color: var(--green); }
      /* ── ACTIVO/INACTIVO BUTTON ── */
      .btn-activo { transition: all 0.3s ease; }
      .btn-activo[data-activo="true"] { background: #0000FF; color: #FFFFFF; border: 1px solid #0000FF; }
      .btn-activo[data-activo="false"] { background: #ff2020; color: #FFFFFF; border: 1px solid #ff2020; }

      /* ── PRODUCT ITEM ── */
.product-item {
        background: var(--black-4); border: var(--surface-border-width) solid var(--surface-border-current);
        border-radius: 8px; padding: 8px 12px; margin-bottom: 8px;
        transition: all 0.2s;
        min-height: 100px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        z-index: 1;
      }
      .product-item:hover { border-color: var(--black-6); background: var(--black-3); }
      .product-name { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; color: var(--adaptive-text); }
      .product-meta { font-size: 0.65rem; color: var(--white-30); margin-top: 3px; font-family: var(--font-mono); }
      .product-price-bs { font-family: var(--font-mono); font-size: 0.85rem; color: var(--adaptive-price); font-weight: 600; }
      .product-price-usd { font-family: var(--font-mono); font-size: 0.7rem; color: var(--white-30); }
      .product-item .product-name,
      .product-item .product-meta,
      .product-item .product-price-bs,
      .product-item .product-price-usd {
        font-weight: 700 !important;
      }
      .product-image-thumbnail { width: 100px; height: 100px; object-fit: contain; border-radius: 0; border: none; background: transparent; margin: -10px 0; }
      .stock-low { color: #ff6b6b !important; }
      @keyframes saiPulse{0%,100%{opacity:1;letter-spacing:2px}50%{opacity:0.5;letter-spacing:4px}}

      /* ── TABS ── */
      .tab-content { display: none; }
      .tab-content.active { display: block; }
      .hidden { display: none !important; }

      /* ── TABLE ── */
      .data-table { width: 100%; border-collapse: collapse; }
      .data-table th {
        background: var(--black-4); padding: 10px 14px;
        font-family: var(--font-body); font-size: 0.6rem; font-weight: 600;
        letter-spacing: 2px; text-transform: uppercase; color: var(--white-30);
        text-align: left; border-bottom: var(--surface-border-width) solid var(--surface-border-current);
      }
      .data-table td {
        padding: 10px 14px; font-family: var(--font-mono); font-size: 0.75rem;
        color: var(--adaptive-text); opacity: 0.6; border-bottom: 1px solid var(--black-4);
      }
      .data-table tr:hover td { background: var(--black-4); }

      /* ── SELECT ── */
      select.field-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }

      /* ── AUTOCOMPLETE ── */
      .autocomplete-container { position: relative; }
      .autocomplete-list {
        position: absolute; top: 100%; left: 0; width: 100%;
        max-height: 300px; overflow-y: auto;
        background: var(--black-3); border: var(--surface-border-width) solid var(--surface-border-current);
        border-radius: 0 0 8px 8px; z-index: 9999;
        box-shadow: 0 10px 25px rgba(0,0,0,0.5);
      }
      .autocomplete-list.hidden { display: none; }
      .autocomplete-item {
        padding: 10px 14px; cursor: pointer; color: var(--white-60);
        font-family: var(--font-body); font-size: 0.75rem;
        transition: background 0.1s; border-bottom: 1px solid var(--black-4);
      }
      .autocomplete-item:hover, .autocomplete-item.selected { background: var(--black-5); color: var(--white); }

      /* ── INVOICE ── */
      .invoice-history-item { cursor: pointer; }
      .invoice-details { display: none; padding: 16px; background: var(--black-4); border-top: var(--surface-border-width) solid var(--surface-border-current); border-radius: 0 0 8px 8px; }
      .invoice-details.open { display: block; }
      .invoice-toggle { transition: transform 0.3s; }
      .invoice-toggle.open { transform: rotate(180deg); }
      .invoice-history-card { position: relative; }
      .invoice-profit-pill {
        position: absolute;
        top: 8px;
        right: 12px;
        color: #39ff14;
        font-family: var(--font-body);
        font-size: 0.72rem;
        font-weight: 800;
        font-style: italic;
        letter-spacing: 0.4px;
        white-space: nowrap;
        z-index: 2;
      }
      body.light-mode .invoice-profit-pill {
        color: #0D3E04;
      }
      .invoice-history-total {
        font-family: var(--font-mono);
        font-size: 0.85rem;
        color: #ffffff;
        font-weight: 700;
      }
      body.light-mode .invoice-history-total {
        color: #000000;
      }

      /* ── FORM CARD ── */
      .form-card { background: var(--black-4); border: var(--surface-border-width) solid var(--surface-border-current); border-radius: 10px; padding: 20px; margin-bottom: 16px; }

      .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
      }
      .service-card .btn-icon:hover {
        background: rgba(255,255,255,0.4) !important;
        transform: scale(1.1);
      }
      .service-card .svc-delete-direct:hover {
        background: rgba(255,0,0,0.4) !important;
      }

      /* ── SERVICIOS CAROUSEL ── */
      .services-carousel-wrapper {
        position: relative;
        width: 100%;
        display: flex;
        align-items: center;
      }
      #servicios-list {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto;
        scroll-behavior: smooth;
        gap: 16px;
        padding: 10px 5px;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
      }
      #servicios-list::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
      }
      
      
      
      /* --- CARDS CAROUSEL ADJUSTMENTS --- */
      .services-carousel-wrapper {
        padding: 10px 0; /* Altura del panel reducida significativamente */
        overflow: visible;
      }
      #servicios-list {
        display: flex;
        align-items: center;
        gap: 20px; /* Separación equilibrada */
        padding: 20px 50px !important;
        overflow-x: auto;
        scroll-behavior: smooth;
      }
      
      
      .service-card {
        flex: 0 0 180px; /* Volvemos al ancho más compacto */
        min-height: 260px; /* Altura más reducida */
        padding: 12px;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease !important;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
      }
      .card-top-section {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
      }
      
      .card-icon-container {
        width: 55px;
        height: 55px;
        flex-shrink: 0;
        background: transparent; /* Fondo eliminado */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0; /* Sin padding para que el icono se vea directo */
      }

      .card-icon-container img {
        width: 100%;
        height: 100%;
        object-fit: contain;
      }
      .card-info-right {
        flex: 1;
        text-align: left;
        padding-top: 2px;
        overflow: hidden;
      }
      
      .card-title {
        font-weight: 900;
        font-size: 0.7rem;
        line-height: 1.1;
        text-transform: uppercase;
        letter-spacing: 0.2px;
        color: inherit; /* Hereda el color calculado por la función textColorFor */
        margin-bottom: 2px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
      
      .card-subtitle {
        font-size: 0.5rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        opacity: 0.8;
        color: inherit; /* Hereda el color calculado */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      
      .card-bottom-section {
        display: flex;
        justify-content: space-between;
        align-items: center; /* Alineación centrada para los botones compactos */
        width: 100%;
        margin-top: auto;
      }
      .card-percentage-box {
        border: 1.5px solid currentColor; /* Usa el color del texto para el borde */
        border-radius: 6px;
        padding: 4px 8px;
        font-family: var(--font-body);
        font-weight: 900;
        font-size: 1.1rem;
        color: inherit; /* Hereda el color calculado */
        line-height: 1;
      }

      .card-actions {
        display: flex;
        gap: 4px;
      }
      .card-btn-edit {
        background: #fff;
        color: #000;
        border: none;
        width: 32px; /* Botones más pequeños y cuadrados/redondeados */
        height: 32px;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        transition: transform 0.2s;
      }
      .card-btn-delete {
        background: #ff4d4d;
        color: #fff;
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        transition: transform 0.2s;
      }


      
      .service-card {
        flex: 0 0 180px; /* Volvemos al ancho más compacto */
        min-height: 260px; /* Altura más reducida */
        padding: 12px;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease !important;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
      }
      .card-top-section {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
      }
      
      .card-icon-container {
        width: 55px;
        height: 55px;
        flex-shrink: 0;
        background: transparent; /* Fondo eliminado */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0; /* Sin padding para que el icono se vea directo */
      }

      .card-icon-container img {
        width: 100%;
        height: 100%;
        object-fit: contain;
      }
      .card-info-right {
        flex: 1;
        text-align: left;
        padding-top: 2px;
        overflow: hidden;
      }
      
      .card-title {
        font-weight: 900;
        font-size: 0.7rem;
        line-height: 1.1;
        text-transform: uppercase;
        letter-spacing: 0.2px;
        color: inherit; /* Hereda el color calculado por la función textColorFor */
        margin-bottom: 2px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
      
      .card-subtitle {
        font-size: 0.5rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        opacity: 0.8;
        color: inherit; /* Hereda el color calculado */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      
      .card-bottom-section {
        display: flex;
        justify-content: space-between;
        align-items: center; /* Alineación centrada para los botones compactos */
        width: 100%;
        margin-top: auto;
      }
      .card-percentage-box {
        border: 1.5px solid currentColor; /* Usa el color del texto para el borde */
        border-radius: 6px;
        padding: 4px 8px;
        font-family: var(--font-body);
        font-weight: 900;
        font-size: 1.1rem;
        color: inherit; /* Hereda el color calculado */
        line-height: 1;
      }

      .card-actions {
        display: flex;
        gap: 4px;
      }
      .card-btn-edit {
        background: #fff;
        color: #000;
        border: none;
        width: 32px; /* Botones más pequeños y cuadrados/redondeados */
        height: 32px;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        transition: transform 0.2s;
      }
      .card-btn-delete {
        background: #ff4d4d;
        color: #fff;
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        transition: transform 0.2s;
      }


      
      .service-card {
        flex: 0 0 180px; /* Volvemos al ancho más compacto */
        min-height: 260px; /* Altura más reducida */
        padding: 12px;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease !important;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
      }
      .card-top-section {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
      }
      
      .card-icon-container {
        width: 55px;
        height: 55px;
        flex-shrink: 0;
        background: transparent; /* Fondo eliminado */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0; /* Sin padding para que el icono se vea directo */
      }

      .card-icon-container img {
        width: 100%;
        height: 100%;
        object-fit: contain;
      }
      .card-info-right {
        flex: 1;
        text-align: left;
        padding-top: 2px;
        overflow: hidden;
      }
      
      .card-title {
        font-weight: 900;
        font-size: 0.7rem;
        line-height: 1.1;
        text-transform: uppercase;
        letter-spacing: 0.2px;
        color: inherit; /* Hereda el color calculado por la función textColorFor */
        margin-bottom: 2px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
      
      .card-subtitle {
        font-size: 0.5rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        opacity: 0.8;
        color: inherit; /* Hereda el color calculado */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      
      .card-bottom-section {
        display: flex;
        justify-content: space-between;
        align-items: center; /* Alineación centrada para los botones compactos */
        width: 100%;
        margin-top: auto;
      }
      .card-percentage-box {
        border: 1.5px solid currentColor; /* Usa el color del texto para el borde */
        border-radius: 6px;
        padding: 4px 8px;
        font-family: var(--font-body);
        font-weight: 900;
        font-size: 1.1rem;
        color: inherit; /* Hereda el color calculado */
        line-height: 1;
      }

      .card-actions {
        display: flex;
        gap: 4px;
      }
      .card-btn-edit {
        background: #fff;
        color: #000;
        border: none;
        width: 32px; /* Botones más pequeños y cuadrados/redondeados */
        height: 32px;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        transition: transform 0.2s;
      }
      .card-btn-delete {
        background: #ff4d4d;
        color: #fff;
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        transition: transform 0.2s;
      }


      
      .service-card {
        flex: 0 0 180px; /* Volvemos al ancho más compacto */
        min-height: 260px; /* Altura más reducida */
        padding: 12px;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease !important;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
      }
      .card-top-section {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
      }
      
      .card-icon-container {
        width: 55px;
        height: 55px;
        flex-shrink: 0;
        background: transparent; /* Fondo eliminado */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0; /* Sin padding para que el icono se vea directo */
      }

      .card-icon-container img {
        width: 100%;
        height: 100%;
        object-fit: contain;
      }
      .card-info-right {
        flex: 1;
        text-align: left;
        padding-top: 2px;
        overflow: hidden;
      }
      
      .card-title {
        font-weight: 900;
        font-size: 0.7rem;
        line-height: 1.1;
        text-transform: uppercase;
        letter-spacing: 0.2px;
        color: inherit; /* Hereda el color calculado por la función textColorFor */
        margin-bottom: 2px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
      
      .card-subtitle {
        font-size: 0.5rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        opacity: 0.8;
        color: inherit; /* Hereda el color calculado */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      
      .card-bottom-section {
        display: flex;
        justify-content: space-between;
        align-items: center; /* Alineación centrada para los botones compactos */
        width: 100%;
        margin-top: auto;
      }
      .card-percentage-box {
        border: 1.5px solid currentColor; /* Usa el color del texto para el borde */
        border-radius: 6px;
        padding: 4px 8px;
        font-family: var(--font-body);
        font-weight: 900;
        font-size: 1.1rem;
        color: inherit; /* Hereda el color calculado */
        line-height: 1;
      }

      .card-actions {
        display: flex;
        gap: 4px;
      }
      .card-btn-edit {
        background: #fff;
        color: #000;
        border: none;
        width: 32px; /* Botones más pequeños y cuadrados/redondeados */
        height: 32px;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        transition: transform 0.2s;
      }
      .card-btn-delete {
        background: #ff4d4d;
        color: #fff;
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        transition: transform 0.2s;
      }


      .service-card {
        flex: 0 0 180px; /* Ancho fijo para las tarjetas en el carrusel */
      }
      .carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        opacity: 1 !important;
        pointer-events: auto !important;
        visibility: visible !important;
      }
      .carousel-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: var(--green);
        transform: translateY(-50%) scale(1.1);
      }
      .carousel-btn.prev { left: -22px; }
      .carousel-btn.next { right: -22px; }
      .carousel-btn svg {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.5;
        stroke-linecap: round;
        stroke-linejoin: round;
      }
      body.light-mode .carousel-btn {
        background: rgba(0, 0, 0, 0.1);
        border-color: rgba(0, 0, 0, 0.1);
        color: #000;
      }
      body.light-mode .carousel-btn:hover {
        background: rgba(0, 0, 0, 0.2);
      }

      /* ── TAGS ── */
      #tag-template { width: 300px; height: 300px; font-family: serif; background: white; position: relative; }
      #tag-content { height: 100%; display: flex; flex-direction: column; }
      #tag-content .top-half, #tag-content .bottom-half { height: 50%; display: flex; align-items: center; padding-left: 1rem; cursor: pointer; }
      .tag-product-name { font-size: 1rem; color: #000; }
      .tag-product-price { font-size: 2.9rem; font-weight: bold; color: #000; }

      /* ── BOX / TECLADO ── */
      .teclado-wrapper {
        background: var(--black-2); border: var(--surface-border-width) solid var(--surface-border-current);
        border-radius: 14px; padding: 24px; display: flex;
        flex-direction: column; align-items: center; gap: 16px;
      }
      .lcd-panel {
        background: #000a22; border: 1px solid #0a1a3a;
        border-radius: 10px; padding: 20px 24px; width: 100%;
        display: flex; align-items: flex-end; justify-content: flex-end;
        min-height: 100px; position: relative; overflow: hidden;
        box-shadow: inset 0 2px 12px rgba(0,0,17,0.8);
      }
      .lcd-panel::before {
        content: ''; position: absolute; inset: 0;
        background: repeating-linear-gradient(0deg, rgba(0,0,0,0.1) 0px, transparent 1px, transparent 3px);
        pointer-events: none;
      }
      .display-number {
        font-family: var(--font-mono); color: #ff2020;
        font-size: 4rem; line-height: 1; text-align: right;
        text-shadow: 0 0 20px rgba(255,32,32,0.6);
        word-break: break-all; z-index: 1;
      }
      .teclado-brand { font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 3px; color: var(--white-30); text-transform: uppercase; align-self: flex-start; }
      .key-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 8px; width: 100%; }
      .retro-key {
        background: var(--black-3);
        border: 1px solid var(--black-6);
        border-radius: 8px; color: var(--white);
        font-family: var(--font-mono); font-size: 1.1rem;
        height: 58px; display: flex; align-items: center; justify-content: center;
        cursor: pointer; position: relative; overflow: hidden;
        transition: all 0.1s;
        box-shadow: 0 4px 0 var(--black), 0 6px 10px rgba(0,0,0,0.5);
      }
      .retro-key:hover { background: var(--black-5); border-color: #333; }
      .retro-key:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--black); }
      .key-adorno-tr { position: absolute; top: 3px; right: 5px; font-size: 0.45rem; color: #1a6aff; font-family: var(--font-body); }
      .key-adorno-tl { position: absolute; top: 3px; left: 5px; font-size: 0.5rem; color: var(--white-30); font-family: var(--font-body); }
      .key-shokyo {
        grid-column: span 2; color: #1a6aff;
        font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 1px;
      }
      .btn-add-key {
        background: #0000cc; border: 1px solid #1a1aff;
        border-radius: 8px; color: white; font-family: 'Pinyon Script', cursive;
        font-size: 2rem; height: 58px; width: 100%;
        display: flex; align-items: center; justify-content: center;
        cursor: pointer; transition: all 0.15s;
        box-shadow: 0 4px 0 #00007a;
      }
      .btn-add-key:active { transform: translateY(3px); box-shadow: 0 1px 0 #00007a; }
      .btn-agg-key {
        background: #cc0000; border: 1px solid #ff2020;
        border-radius: 8px; color: white; font-family: 'Pinyon Script', cursive;
        font-size: 2rem; height: 58px; width: 100%;
        display: flex; align-items: center; justify-content: center;
        cursor: pointer; transition: all 0.15s;
        box-shadow: 0 4px 0 #660000;
      }
      .btn-agg-key:active { transform: translateY(3px); box-shadow: 0 1px 0 #660000; }
      .teclado-action-row { display: flex; gap: 10px; width: 100%; }

      /* ── MONITOR ── */
      .monitor-wrap {
        background: var(--black-2); border: var(--surface-border-width) solid var(--surface-border-current);
        border-radius: 14px; padding: 20px;
        display: flex; flex-direction: column; align-items: center;
      }
      .monitor-bezel {
        background: #0a0a0a; border: 2px solid #1a1a1a;
        border-radius: 8px; padding: 6px;
        box-shadow: inset 0 2px 8px rgba(0,0,0,0.8), 0 8px 24px rgba(0,0,0,0.6);
      }
      .monitor-screen {
        width: 200px; height: 200px; background: #000;
        border-radius: 4px; position: relative; overflow: hidden;
        display: flex; flex-direction: column;
        font-family: var(--font-mono); color: #00ff00;
        padding: 10px; transition: background 0.5s;
      }
      .monitor-screen.on {
        background: #0011ff;
        box-shadow: inset 0 0 60px rgba(0,0,0,0.9);
      }
      .monitor-screen.on::after {
        content: ' '; display: block; position: absolute; inset: 0;
        background: linear-gradient(rgba(18,16,16,0) 50%, rgba(0,0,0,0.2) 50%),
                    radial-gradient(circle at 50% 15%, rgba(255,255,255,0.08) 0%, transparent 75%);
        background-size: 100% 3px, 100% 100%; pointer-events: none; z-index: 10;
      }
      .monitor-view { display: none; flex-direction: column; width: 100%; height: 100%; position: relative; }
      .monitor-view.active { display: flex; }
      #monitorViewBrand { justify-content: center; align-items: center; }
      #monitorViewHeader { justify-content: flex-start; align-items: flex-start; text-align: left; overflow: hidden; }
      .monitor-brand-name { font-family: 'Pinyon Script', cursive; font-size: 2.5rem; }
      .monitor-header-text { font-size: 0.75rem; line-height: 1.3; word-break: break-all; margin-bottom: 6px; flex-shrink: 0; }
      .monitor-product-list { width: 100%; overflow-y: auto; flex-grow: 1; margin-bottom: 4px; scrollbar-width: thin; scrollbar-color: #00ff00 transparent; }
      .monitor-product-item { display: flex; justify-content: space-between; font-size: 0.6rem; border-bottom: 1px dashed rgba(0,255,0,0.2); padding: 2px 0; }
      .monitor-totals-footer { flex-shrink: 0; border-top: 1px solid #00ff00; padding-top: 4px; margin-top: auto; font-size: 0.7rem; }
      .monitor-total-row { display: flex; justify-content: space-between; }
      .monitor-cursor { display: inline-block; color: #00ff00; animation: blink 0.9s step-end infinite; font-family: var(--font-mono); }
      @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
      .monitor-power-btn {
        width: 36px; height: 36px; background: var(--black-3);
        border: 1px solid var(--black-6); border-radius: 50%;
        cursor: pointer; display: flex; align-items: center; justify-content: center;
        margin-top: 12px; transition: all 0.3s;
      }
      .monitor-power-icon { width: 14px; height: 14px; border: 1.5px solid #444; border-radius: 50%; border-top-color: transparent; position: relative; transition: all 0.4s; }
      .monitor-power-icon::before { content: ''; position: absolute; top: -4px; left: 50%; transform: translateX(-50%); width: 1.5px; height: 7px; background: #444; border-radius: 1px; transition: all 0.4s; }
      .monitor-power-btn.active .monitor-power-icon { border-color: #00ff00; border-top-color: transparent; filter: drop-shadow(0 0 4px rgba(0,255,0,0.6)); }
      .monitor-power-btn.active .monitor-power-icon::before { background: #00ff00; filter: drop-shadow(0 0 4px rgba(0,255,0,0.6)); }

      /* ── BALANCE ── */
      .balance-panel {
        background: var(--black-3); border: var(--surface-border-width) solid var(--surface-border-current);
        border-radius: 10px; padding: 24px; display: flex;
        flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center;
        margin-top: 20px;
      }
      .balance-label { font-size: 0.55rem; letter-spacing: 3px; text-transform: uppercase; color: var(--white-30); margin-bottom: 6px; }
      .balance-value { font-family: var(--font-mono); font-size: 2.2rem; font-weight: 600; color: var(--green); }
      .balance-sub { font-size: 0.6rem; color: #333; margin-top: 4px; letter-spacing: 1px; }

      /* ── EGRESOS/INGRESOS ── */
      .cash-panel { background: var(--black-3); border: var(--surface-border-width) solid var(--surface-border-current); border-radius: 10px; overflow: hidden; }
      .cash-header-red { background: rgba(180,0,0,0.15); border-bottom: 1px solid rgba(180,0,0,0.2); padding: 12px 16px; }
      .cash-header-blue { background: rgba(0,0,180,0.15); border-bottom: 1px solid rgba(0,0,180,0.2); padding: 12px 16px; }
      .cash-title { font-size: 0.6rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; }

      /* ── CONTROL BUTTONS BOX ── */
      .control-btn {
        width: 44px; height: 44px; background: var(--black-3);
        border: 1px solid var(--black-6); border-radius: 10px;
        display: flex; justify-content: center; align-items: center;
        cursor: pointer; transition: all 0.3s; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
      }
      .control-btn-pair { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: flex; gap: 8px; }
      .ctrl-icon { width: 20px; height: 20px; fill: none; stroke: #444; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: all 0.3s; }
      .control-btn:hover .ctrl-icon { stroke: var(--white-60); }
      .control-btn.active-reset { border-color: rgba(0,242,255,0.3); }
      .control-btn.active-reset .ctrl-icon { stroke: #00f2ff; }
      .control-btn.active-dl { border-color: var(--green-border); }
      .control-btn.active-dl .ctrl-icon { stroke: var(--green); transform: translateY(2px); }

      /* ── PIXEL-FADE ── */
      @keyframes fadeSlideIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
      .fade-in { animation: fadeSlideIn 0.25s ease forwards; }


      
      /* ── PDF TEMPLATES ── */
      #notifications-pdf-template, #box-report-template { display: none; }

      /* ── RESPONSIVE ── */
      @media (max-width: 768px) {
        .key-grid { grid-template-columns: repeat(4,1fr); }
        .display-number { font-size: 2.5rem; }
      }
            @media (max-width: 600px) {
        .login-main-content,
        .info-block,
        .login-footer { transform: none; }
        .login-title { font-size: 3.5rem; }
        .active .power-btn { transform: translateX(-120px); }

        .active .auth-panel { transform: translateX(25px) scale(1); }
      }
    
      /* --- LIGHT MODE STYLES --- */
      body.light-mode {
        --black: #f0f0f0;
        --black-2: #e0e0e0;
        --black-3: #d0d0d0;
        --black-4: #c0c0c0;
        --black-5: #b0b0b0;
        --black-6: #a0a0a0;
        --white: #000000;
        --white-60: rgba(0,0,0,0.6);
        --white-30: rgba(0,0,0,0.3);
        --white-10: rgba(0,0,0,0.1);
        
        /* Adaptive Colors for Light Mode */
        --adaptive-text: #000000;
        --adaptive-price: #008000; /* Darker green for better visibility in light mode */
        --preview-price-usd: #0017c7;
        --preview-stock: #3800d1;
        
        background: var(--black);
        color: var(--white);
      }
      body.light-mode #login-screen, 
      body.light-mode #market-app,
      body.light-mode .sidebar-bcv-price,
      body.light-mode .sidebar-bcv-label {
        color: #000000 !important;
      }
      body.light-mode .bcv-copy-btn {
        border-color: #000000 !important;
        color: #000000 !important;
      }
      body.light-mode .bcv-copy-btn:hover {
        background: rgba(0, 0, 0, 0.1) !important;
      }
      body.light-mode .sidebar,
      body.light-mode .main-content,
      body.light-mode .app-container {
        background: var(--black) !important;
        color: var(--adaptive-text) !important;
      }
      body.light-mode .nav-bar {
        background: transparent !important;
        color: var(--adaptive-text) !important;
      }
      body.light-mode .app-header {
        background: #e3e3e3 !important;
        color: var(--adaptive-text) !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        border-bottom: 1px solid #d1d1d1 !important;
      }
      /* En modo claro, toda la pantalla de acceso debe ser blanca, sin degradados de fondo. */
      html:has(body.light-mode),
      body.light-mode {
        background: #ffffff !important;
      }
      body.light-mode #login-screen,
      body.light-mode #login-screen .login-bg {
        background: #ffffff !important;
        background-image: none !important;
      }
      body.light-mode .login-title {
        color: #000000 !important;
      }
      body.light-mode .login-subtitle {
        color: rgba(0,0,0,0.4) !important;
      }
      body.light-mode .info-block {
        background: #f5f5f5 !important;
        border-color: #e0e0e0 !important;
      }
      body.light-mode .info-text {
        color: rgba(0,0,0,0.7) !important;
      }
      body.light-mode .brand-hl {
        color: #000000 !important;
      }
      body.light-mode .power-btn {
        background: #ffffff !important;
        border-color: #dddddd !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
      }
      body.light-mode .power-icon {
        stroke: #666666 !important;
      }
      body.light-mode .active .power-icon {
        stroke: #000000 !important;
      }
      body.light-mode .footer-text {
        color: #999999 !important;
      }
      body.light-mode .footer-line {
        background: #eeeeee !important;
      }
      body.light-mode .sidebar-bcv-price,
      body.light-mode .sidebar-bcv-label {
        color: #000000 !important;
      }
      body.light-mode .bcv-copy-btn {
        border-color: #000000 !important;
        color: #000000 !important;
      }
      body.light-mode .bcv-copy-btn:hover {
        background: rgba(0, 0, 0, 0.1) !important;
      }
      body.light-mode .sidebar-calc-btn,
      body.light-mode .product-card,
      body.light-mode .invoice-card,
      body.light-mode .field-input {
        background: var(--black-4) !important;
        border-color: var(--surface-border-current) !important;
        color: var(--adaptive-text) !important;
      }
      body.light-mode .auth-panel {
        background: #f0f0f0 !important;
        border-color: #dddddd !important;
      }
      body.light-mode .auth-input {
        background: transparent !important;
        color: #000000 !important;
      }
      body.light-mode .auth-input::placeholder {
        color: #999999 !important;
      }
      body.light-mode .top-nav-item {
        background: transparent !important;
        border-color: transparent !important;
        color: var(--white-30) !important;
      }
      body.light-mode .top-nav-item.active {
        background: transparent !important;
        color: #000 !important;
        border-bottom: none !important;
      }
      body.light-mode .autocomplete-list {
        background: #ffffff !important;
        border-color: #cccccc !important;
      }
      body.light-mode .autocomplete-item {
        color: #333333 !important;
        border-bottom-color: #eeeeee !important;
      }
      body.light-mode .autocomplete-item:hover, body.light-mode .autocomplete-item.selected {
        background: #f0f0f0 !important;
        color: #000000 !important;
      }
      body.light-mode #inv-preview-price,
      body.light-mode #invoice-total,
      body.light-mode .item-total {
        color: var(--adaptive-price) !important;
      }
      body.light-mode #invoice-total {
        font-size: 1.4rem !important;
        color: #000000 !important;
        font-family: var(--font-body) !important;
        font-weight: 900 !important;
      }
      body.light-mode #summary-currency-icon {
        color: #000000 !important;
      }
      body.light-mode #inv-preview-desc {
        color: #4a7a00 !important; /* Darker lime for light mode */
      }
      body.light-mode #cli-add-btn,
      body.light-mode #cajero-add-btn,
      body.light-mode #generate-pdf,
      body.light-mode .sidebar-bcv-price,
      body.light-mode .sidebar-bcv-label {
        color: #000000 !important;
      }
      body.light-mode .bcv-copy-btn {
        border-color: #000000 !important;
        color: #000000 !important;
      }
      body.light-mode .bcv-copy-btn:hover {
        background: rgba(0, 0, 0, 0.1) !important;
      }
      body.light-mode #svc-toggle-form,
      body.light-mode #j-add-product,
      body.light-mode #k-add-product,
      body.light-mode #dom-save,
      body.light-mode #cat-save,
      body.light-mode .sidebar-bcv-price,
      body.light-mode .sidebar-bcv-label {
        color: #000000 !important;
      }
      body.light-mode .bcv-copy-btn {
        border-color: #000000 !important;
        color: #000000 !important;
      }
      body.light-mode .bcv-copy-btn:hover {
        background: rgba(0, 0, 0, 0.1) !important;
      }
      body.light-mode #svc-save,
      body.light-mode #j-save-new,
      body.light-mode #k-save-new,
      body.light-mode .j-save-edit,
      body.light-mode .k-save-edit,
      body.light-mode .sidebar-bcv-price,
      body.light-mode .sidebar-bcv-label {
        color: #000000 !important;
      }
      body.light-mode .bcv-copy-btn {
        border-color: #000000 !important;
        color: #000000 !important;
      }
      body.light-mode .bcv-copy-btn:hover {
        background: rgba(0, 0, 0, 0.1) !important;
      }
      body.light-mode #save-invoice-only,
      body.light-mode #dom-ie-save,
      body.light-mode #download-tag,
      body.light-mode #nota-save,
      body.light-mode #cuenta-save,
      body.light-mode #cat-ie-save {
        color: #000000 !important;
      }
      body.light-mode .invoice-details .data-table td,
      body.light-mode .invoice-details .data-table th {
        color: #000000 !important;
        opacity: 1 !important;
      }
      body.light-mode .invoice-details .data-table tfoot td {
        color: #000000 !important;
      }
      body.light-mode .product-price-bs {
        color: #000000 !important;
      }
      body.light-mode input, body.light-mode select, body.light-mode textarea {
        background: #ffffff !important;
        color: #000000 !important;
        border-color: #dddddd !important;
      }
      
      /* Toggle Switch Container - Centered with Icons */
      .theme-switch-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 6px 10px;
        background: var(--black-4);
        border-radius: 8px;
        border: var(--surface-border-width) solid var(--surface-border-current);
        height: 44px;
        flex: 1;
      }
      .eye-btn {
        width: 44px; height: 44px;
        background: var(--black-4);
        border: var(--surface-border-width) solid var(--surface-border-current);
        border-radius: 8px;
        display: flex; align-items: center; justify-content: center;
        color: var(--white-30);
        cursor: pointer;
        transition: all 0.2s;
        margin-left: 8px;
      }
      body.light-mode .eye-btn { background: #c0c0c0; border-color: #aaa; color: #000; }
      .eye-btn:active { transform: scale(0.95); }
      .eye-btn svg { transition: transform 0.3s; }
      .theme-icon {
        color: var(--white-30);
        transition: color 0.3s;
      }
      body.light-mode .theme-icon.sun { color: #444444; fill: #444444; }
      body:not(.light-mode) .theme-icon.sun { color: #fbbf24; fill: #fbbf24; }
      body:not(.light-mode) .theme-icon.moon { color: #818cf8; }

      /* Fix light mode text colors for general readability */
      body.light-mode { color: #000000 !important; }
      body.light-mode .sidebar-label, 
      body.light-mode .sidebar-title,
      body.light-mode .sidebar-item-text,
      body.light-mode .conv-label,
      body.light-mode .conv-rate-label,
      body.light-mode .variety-label { color: #000000 !important; }
      body.light-mode .sidebar-divider { border-color: rgba(0,0,0,0.08); }

      /* Superficies blancas puras y elevación visual para el modo claro. */
      body.light-mode,
      body.light-mode #market-app,
      body.light-mode .sidebar,
      body.light-mode .main-content,
      body.light-mode .app-container,
      body.light-mode .right-sidebar {
        background: #ffffff !important;
      }
      body.light-mode .app-header {
        background: #ffffff !important;
        border-bottom-color: rgba(0,0,0,0.08) !important;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
      }
      body.light-mode .panel,
      body.light-mode .form-card,
      body.light-mode .product-card,
      body.light-mode .invoice-card,
      body.light-mode .invoice-details,
      body.light-mode .conv-section,
      body.light-mode .sidebar-calc-btn,
      body.light-mode #sidebar-calc-panel,
      body.light-mode .theme-switch-container,
      body.light-mode .eye-btn {
        background: #ffffff !important;
        border-color: rgba(0,0,0,0.08) !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.07) !important;
      }
      body.light-mode .panel:hover,
      body.light-mode .product-card:hover,
      body.light-mode .invoice-card:hover {
        box-shadow: 0 8px 22px rgba(0,0,0,0.10) !important;
      }

      /* Campos y tablas: blanco matizado, sin rellenos grises, con contorno discreto. */
      body.light-mode .field-input,
      body.light-mode .conv-input,
      body.light-mode input,
      body.light-mode select,
      body.light-mode textarea,
      body.light-mode .autocomplete-list,
      body.light-mode .autocomplete-item,
      body.light-mode .data-table th,
      body.light-mode .data-table td,
      body.light-mode .panel-header,
      body.light-mode .rep-header,
      body.light-mode .divisas-select-container,
      body.light-mode .divisas-amount-container,
      body.light-mode .variety-counter {
        background: #fbfbf8 !important;
        border-color: rgba(28,28,28,0.32) !important;
      }
      body.light-mode .field-input,
      body.light-mode .conv-input,
      body.light-mode input,
      body.light-mode select,
      body.light-mode textarea,
      body.light-mode .autocomplete-list,
      body.light-mode .divisas-select-container,
      body.light-mode .divisas-amount-container,
      body.light-mode .variety-counter {
        border-width: 1px !important;
        border-style: solid !important;
      }
      body.light-mode .data-table th {
        color: #202020 !important;
        border: 1px solid rgba(28,28,28,0.32) !important;
      }
      body.light-mode .data-table td {
        border-bottom: 1px solid rgba(28,28,28,0.16) !important;
      }
      body.light-mode .autocomplete-item {
        border-bottom-color: rgba(28,28,28,0.16) !important;
      }
      body.light-mode .autocomplete-item:hover,
      body.light-mode .autocomplete-item.selected,
      body.light-mode .data-table tr:hover td {
        background: #f5f5f1 !important;
      }
      body.light-mode .variety-counter #j-exchange-rate,
      body.light-mode .variety-counter #k-exchange-rate,
      body.light-mode .variety-counter #j-exchange-rate:focus,
      body.light-mode .variety-counter #k-exchange-rate:focus {
        background: transparent !important;
        color: #1a1a1a !important;
        border: none !important;
      }
      body.light-mode .variety-label {
        color: #3a3a3a !important;
      }
      body.light-mode .field-input:focus,
      body.light-mode .conv-input:focus,
      body.light-mode input:focus,
      body.light-mode select:focus,
      body.light-mode textarea:focus {
        border-color: rgba(28,28,28,0.52) !important;
        box-shadow: 0 0 0 2px rgba(28,28,28,0.07) !important;
      }

      /* Referencia visual: una sola superficie blanca delimitada por contornos suaves. */
      body.light-mode .panel,
      body.light-mode .form-card,
      body.light-mode .product-card,
      body.light-mode .invoice-card,
      body.light-mode .invoice-details,
      body.light-mode .conv-section,
      body.light-mode .sidebar-calc-btn,
      body.light-mode #sidebar-calc-panel,
      body.light-mode .theme-switch-container,
      body.light-mode .eye-btn,
      body.light-mode .field-input,
      body.light-mode .conv-input,
      body.light-mode input,
      body.light-mode select,
      body.light-mode textarea,
      body.light-mode .autocomplete-list,
      body.light-mode .autocomplete-item,
      body.light-mode .data-table th,
      body.light-mode .data-table td,
      body.light-mode .panel-header,
      body.light-mode .rep-panel,
      body.light-mode .rep-header,
      body.light-mode .divisas-select-container,
      body.light-mode .divisas-amount-container,
      body.light-mode .variety-counter {
        background: #ffffff !important;
        border-color: #e5e7eb !important;
      }
      body.light-mode .field-input,
      body.light-mode .conv-input,
      body.light-mode input,
      body.light-mode select,
      body.light-mode textarea,
      body.light-mode .autocomplete-list,
      body.light-mode .divisas-select-container,
      body.light-mode .divisas-amount-container,
      body.light-mode .variety-counter {
        border-radius: 12px !important;
        box-shadow: none !important;
      }
      body.light-mode .panel,
      body.light-mode .form-card,
      body.light-mode .product-card,
      body.light-mode .invoice-card,
      body.light-mode .conv-section,
      body.light-mode .rep-panel {
        box-shadow: 0 1px 2px rgba(15,23,42,0.025) !important;
      }
      body.light-mode .data-table th,
      body.light-mode .data-table td {
        border-color: #e5e7eb !important;
      }
      body.light-mode .autocomplete-item:hover,
      body.light-mode .autocomplete-item.selected,
      body.light-mode .data-table tr:hover td {
        background: #ffffff !important;
      }
      body.light-mode .field-input:focus,
      body.light-mode .conv-input:focus,
      body.light-mode input:focus,
      body.light-mode select:focus,
      body.light-mode textarea:focus {
        border-color: #cfd4dc !important;
        box-shadow: 0 0 0 2px rgba(15,23,42,0.035) !important;
      }

      .switch {
        position: relative;
        display: inline-block;
        width: 40px;
        height: 22px;
      }
      .switch input { opacity: 0; width: 0; height: 0; }
      .slider {
        position: absolute;
        cursor: pointer;
        top: 0; left: 0; right: 0; bottom: 0;
        background-color: #333;
        transition: .4s;
        border-radius: 22px;
      }
      .slider:before {
        position: absolute;
        content: "";
        height: 16px; width: 16px;
        left: 3px; bottom: 3px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
      }
      input:checked + .slider { background-color: #000ED6; }
      input:checked + .slider:before { transform: translateX(18px); }

      /* --- PRODUCT STATUS SWITCH: diseño compacto con caritas --- */
      .status-switch-wrapper {
        display: flex;
        align-items: flex-end;
        width: 168px;
        min-width: 168px;
      }
      .status-switch-wrapper .status-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
      }
      .status-switch.product-status-switch {
        position: relative;
        display: block;
        width: 168px;
        height: 52px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
      }
      .status-switch.product-status-switch input {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
      }
      .product-status-track {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        overflow: hidden;
        background: #000000;
        border: 2px solid #333333;
        border-radius: 999px;
        transition: border-color .4s ease, background-color .4s ease;
      }
      .product-status-text {
        position: absolute;
        z-index: 1;
        width: calc(100% - 58px);
        font-family: var(--font-body);
        font-size: .52rem;
        font-weight: 800;
        letter-spacing: .75px;
        line-height: 1;
        text-align: center;
        text-transform: uppercase;
        transition: opacity .45s ease, transform .45s cubic-bezier(.34,1.56,.64,1);
      }
      .product-status-text-off { right: 4px; color: #ff4757; opacity: 1; }
      .product-status-text-on { left: 4px; color: #C8F800; opacity: 0; transform: translateX(-18px); }
      .product-status-thumb {
        position: absolute;
        z-index: 2;
        left: 4px;
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #222222;
        border: 2px solid transparent;
        border-radius: 50%;
        transition: transform .5s cubic-bezier(.34,1.56,.64,1), width .3s cubic-bezier(.4,0,.2,1), background-color .4s ease, border-color .4s ease;
      }
      .product-status-icon {
        position: absolute;
        width: 23px;
        height: 23px;
        transition: opacity .45s ease, transform .45s cubic-bezier(.34,1.56,.64,1);
      }
      .product-status-icon-sad { color: #ff4757; opacity: 1; transform: scale(1) rotate(0deg); }
      .product-status-icon-happy { color: #C8F800; opacity: 0; transform: scale(.2) rotate(-180deg); }
      .status-switch.product-status-switch input:checked + .product-status-track { border-color: #C8F800; background: #050a00; }
      .status-switch.product-status-switch input:checked + .product-status-track .product-status-thumb { transform: translateX(116px); background: #111111; border-color: #C8F800; }
      .status-switch.product-status-switch input:checked + .product-status-track .product-status-text-off { opacity: 0; transform: translateX(18px); }
      .status-switch.product-status-switch input:checked + .product-status-track .product-status-text-on { opacity: 1; transform: translateX(0); }
      .status-switch.product-status-switch input:checked + .product-status-track .product-status-icon-sad { opacity: 0; transform: scale(.2) rotate(180deg); }
      .status-switch.product-status-switch input:checked + .product-status-track .product-status-icon-happy { opacity: 1; transform: scale(1) rotate(0); }
      .status-switch.product-status-switch:active .product-status-thumb { width: 50px; }
      .status-switch.product-status-switch:active input:checked + .product-status-track .product-status-thumb { transform: translateX(108px); }
      .status-switch.product-status-switch input:focus-visible + .product-status-track { outline: 2px solid var(--adaptive-text); outline-offset: 3px; }
      body.light-mode .product-status-track { background: #ffffff; border-color: #505050; }
      body.light-mode .status-switch.product-status-switch input:checked + .product-status-track { background: #f8ffe9; border-color: #87a900; }
      @media (max-width: 620px) {
        .status-switch-wrapper { width: 152px; min-width: 152px; }
        .status-switch.product-status-switch { width: 152px; height: 48px; }
        .product-status-thumb { width: 38px; height: 38px; }
        .status-switch.product-status-switch input:checked + .product-status-track .product-status-thumb { transform: translateX(106px); }
        .status-switch.product-status-switch:active input:checked + .product-status-track .product-status-thumb { transform: translateX(98px); }
      }

      /* --- LAYOUT: HEADER OVER SIDEBAR --- */
      .app-header {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        height: 100px;
        z-index: 2000 !important;
        background: var(--black-2);
        border-bottom: var(--surface-border-width) solid var(--surface-border-current);
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        padding-bottom: 0;
      }
      
      .sidebar {
        top: 100px !important;
        height: calc(100vh - 100px) !important;
        z-index: 1000 !important;
      }
      
      main {
        margin-top: 100px !important;
      }

      /* --- HIDE SCROLLBARS --- */
      /* Ocultar barra en Sidebar y otros contenedores pero permitir scroll */
      .sidebar, #market-app, body {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE y Edge */
      }
      .sidebar::-webkit-scrollbar, #market-app::-webkit-scrollbar, body::-webkit-scrollbar {
        display: none; /* Chrome, Safari y Opera */
      }
      
      /* Ajuste de márgenes para escritorio */
      @media(min-width:769px){
        .app-container { margin-left: 260px !important; }
      }
      
      /* Ajuste para móviles */
      @media(max-width:768px){
        .app-header { height: auto; min-height: 100px; flex-direction: column; align-items: flex-start; padding: 10px 20px 0; }
        .header-main-content { flex-direction: column; align-items: flex-start; gap: 10px; }
        .header-divider { display: none; }
        .nav-bar { margin-top: 10px; padding-left: 0; width: 100%; overflow-x: auto; }
        .sidebar { top: 180px !important; height: calc(100vh - 180px) !important; }
        main { margin-top: 180px !important; }
      }
    

      /* Divisas UI Updates */
      .divisas-select-container {
        position: relative;
        cursor: pointer;
        border-radius: 10px 0 0 10px;
        overflow: hidden;
        background: var(--black-6);
      }
      /* Arrow icon for the selector */
      .divisas-select-container::after {
        content: '▼';
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.5rem;
        color: currentColor;
        pointer-events: none;
        opacity: 0.6;
      }
      body.light-mode .divisas-select-container {
        background: #d0d0d0 !important;
        color: #001FB8 !important;
        border-right-color: #cbd4ff !important;
      }
      body:not(.light-mode) .divisas-select-container {
        background: #0a0a0a !important;
        color: #99FF00 !important;
        border-right-color: rgba(153,255,0,0.35) !important;
      }
      /* Right side matches other inputs */
      body.light-mode .divisas-amount-container {
        background: #c0c0c0 !important;
        color: var(--adaptive-text) !important;
      }
      body:not(.light-mode) .divisas-amount-container {
        background: #0d0d0d !important;
      }
      #divisas-currency-select {
        opacity: 0;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 3;
        cursor: pointer;
      }
      .divisas-selected-view {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 4px;
        width: 100%;
        height: 100%;
        padding: 0 12px 0 10px;
        z-index: 1;
        font-weight: 700;
        font-size: 0.85rem;
      }

      body.light-mode .divisas-select-container select {
        color: #001FB8 !important;
        background: transparent !important;
      }
      body:not(.light-mode) .divisas-select-container select {
        color: #99FF00 !important;
        background: transparent !important;
      }
      body.light-mode .divisas-amount-container {
        background: #c0c0c0 !important;
        color: #000000 !important;
      }
      body:not(.light-mode) .divisas-amount-container {
        background: #0d0d0d !important;
      }
      body.light-mode #divisas-amount-input {
        color: #000000 !important;
        background: transparent !important;
      }
      body.light-mode .divisas-display-text {
        color: #666666 !important;
      }

      /* Estilos para que los paneles expandidos se ubiquen debajo de los botones */
      .prod-top-grid, .caj-cli-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        margin-bottom: 12px;
        align-items: flex-start;
      }
      
      .expandable-panel.expanded {
        width: 100% !important;
        max-width: 100% !important;
        order: 999; /* Lo manda al final del contenedor flex */
        margin-top: 10px;
      }

      /* Animación de olas para los puntos de "CERRANDO SESIÓN..." */
      .loading-dot {
        display: inline-block;
        animation: dot-wave 1.2s ease-in-out infinite;
      }
      .loading-dot:nth-child(1) { animation-delay: 0s; }
      .loading-dot:nth-child(2) { animation-delay: 0.15s; }
      .loading-dot:nth-child(3) { animation-delay: 0.3s; }

      @keyframes dot-wave {
        0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
        30% { transform: translateY(-6px); opacity: 1; }
      }

      /* Tipografías (si no usas Tailwind, descomenta y ajusta) */
      /*
      #main-panel, #btn-cancel, #btn-accept, #main-title {
          font-family: 'Orbitron', sans-serif;
      }
      #main-subtitle {
          font-family: 'Inter', sans-serif;
      }
      */
    

      /* ── NUEVO PANEL DE ACCESO ALCAUR ── */
      #login-screen {
        overflow: hidden;
      }
      #login-screen .login-container {
        width: min(46vw, 520px);
        max-width: none;
        min-width: 0;
        align-items: center;
      }
      #login-screen .login-main-content {
        width: 100%;
        transform: none;
      }
      #login-screen .alcaur-login-light {
        position: absolute;
        z-index: 1;
        border-radius: 999px;
        filter: blur(110px);
        pointer-events: none;
      }
      #login-screen .alcaur-login-light-primary {
        width: 370px;
        height: 370px;
        top: 8%;
        right: 11%;
        background: rgba(140, 255, 0, 0.09);
      }
      #login-screen .alcaur-login-light-secondary {
        width: 300px;
        height: 300px;
        bottom: -7%;
        right: 28%;
        background: rgba(39, 110, 255, 0.09);
      }
      #login-screen .alcaur-auth-shell {
        position: relative;
        z-index: 4;
        width: 100%;
        margin: 0;
        font-family: 'Inter', var(--font-body), sans-serif;
      }
      #login-screen .alcaur-auth-card {
        position: relative;
        display: flex;
        min-height: 620px;
        padding: 30px 32px 23px;
        flex-direction: column;
        justify-content: space-between;
        overflow: hidden;
        text-align: center;
        color: #ffffff;
        background: rgba(18, 18, 22, 0.68);
        border: 1px solid rgba(255, 255, 255, 0.13);
        border-radius: 22px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(255, 255, 255, 0.05) inset;
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
      }
      #login-screen .alcaur-auth-view {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: center;
      }
      #login-screen .alcaur-auth-view-hidden {
        display: none;
      }
      #login-screen .alcaur-auth-heading h1 {
        margin: 0 0 5px;
        color: #ffffff;
        font-family: 'Inter', var(--font-body), sans-serif;
        font-size: 25px;
        font-weight: 700;
        letter-spacing: -0.035em;
        line-height: 1.2;
      }
      #login-screen .alcaur-auth-heading p {
        margin: 0 0 25px;
        color: rgba(255, 255, 255, 0.55);
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.04em;
        line-height: 1.45;
      }
      #login-screen .alcaur-auth-form,
      #login-screen .alcaur-social-options {
        display: flex;
        width: 100%;
        flex-direction: column;
        gap: 12px;
      }
      #login-screen .alcaur-field-group {
        width: 100%;
        text-align: left;
      }
      #login-screen .alcaur-field-group label {
        display: block;
        margin: 0 0 6px;
        color: rgba(255, 255, 255, 0.58);
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.1em;
      }
      #login-screen .alcaur-field-label-row {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 10px;
      }
      #login-screen .alcaur-field-label-row .alcaur-text-button {
        color: rgba(255, 255, 255, 0.56);
        font-size: 9px;
        font-weight: 500;
        letter-spacing: 0;
        text-decoration: none;
      }
      #login-screen .alcaur-input {
        width: 100%;
        height: 43px;
        padding: 0 14px;
        color: #ffffff;
        font-family: 'Inter', var(--font-body), sans-serif;
        font-size: 13px;
        font-weight: 400;
        letter-spacing: 0.02em;
        outline: none;
        background: rgba(6, 6, 8, 0.72);
        border: 1px solid rgba(255, 255, 255, 0.13);
        border-radius: 999px;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
      }
      #login-screen .alcaur-input::placeholder {
        color: rgba(255, 255, 255, 0.29);
      }
      #login-screen .alcaur-input:focus {
        background: rgba(6, 6, 8, 0.9);
        border-color: rgba(255, 255, 255, 0.45);
        box-shadow: 0 0 14px rgba(255, 255, 255, 0.11);
      }
      #login-screen .alcaur-password-wrapper {
        position: relative;
        display: flex;
        align-items: center;
      }
      #login-screen .alcaur-password-wrapper .alcaur-input {
        padding-right: 46px;
      }
      #login-screen .alcaur-eye-button {
        position: absolute;
        right: 12px;
        display: inline-flex;
        width: 25px;
        height: 25px;
        padding: 0;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.46);
        background: transparent;
        border: 0;
        border-radius: 999px;
        cursor: pointer;
      }
      #login-screen .alcaur-eye-button:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.09);
      }
      #login-screen .alcaur-eye-button svg {
        width: 16px;
        height: 16px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.8;
      }
      #login-screen .alcaur-primary-button,
      #login-screen .alcaur-social-button {
        display: inline-flex;
        width: 100%;
        min-height: 44px;
        padding: 0 18px;
        align-items: center;
        justify-content: center;
        gap: 11px;
        font-family: 'Inter', var(--font-body), sans-serif;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.045em;
        cursor: pointer;
        transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
      }
      #login-screen .alcaur-primary-button {
        margin-top: 5px;
        color: #000000;
        background: #8CFF00;
        border: 1px solid #8CFF00;
        border-radius: 999px;
        box-shadow: 0 12px 23px rgba(140, 255, 0, 0.15);
      }
      #login-screen .alcaur-primary-button:hover {
        background: #9cff2c;
        border-color: #9cff2c;
        box-shadow: 0 14px 25px rgba(140, 255, 0, 0.22);
        transform: translateY(-1px);
      }
      #login-screen .alcaur-primary-button:active,
      #login-screen .alcaur-social-button:active {
        transform: scale(0.985);
      }
      #login-screen .alcaur-divider {
        position: relative;
        display: flex;
        width: 100%;
        margin: 21px 0;
        align-items: center;
        justify-content: center;
      }
      #login-screen .alcaur-divider::before {
        width: 100%;
        height: 1px;
        content: '';
        background: rgba(255, 255, 255, 0.12);
      }
      #login-screen .alcaur-divider span {
        position: absolute;
        padding: 0 12px;
        color: rgba(255, 255, 255, 0.37);
        font-size: 9px;
        font-weight: 600;
        letter-spacing: 0.095em;
        background: #121216;
      }
      #login-screen .alcaur-social-button {
        color: #ffffff;
        background: rgba(6, 6, 8, 0.48);
        border: 1px solid rgba(255, 255, 255, 0.13);
        border-radius: 999px;
      }
      #login-screen .alcaur-social-button:hover {
        background: rgba(255, 255, 255, 0.10);
        border-color: rgba(255, 255, 255, 0.27);
        transform: translateY(-1px);
      }
      #login-screen .alcaur-social-button svg {
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
      }
      #login-screen .alcaur-social-icon {
        fill: currentColor;
      }
      #login-screen .alcaur-account-switch {
        display: flex;
        margin: 21px 0 0;
        align-items: center;
        justify-content: center;
        gap: 7px;
        color: rgba(255, 255, 255, 0.54);
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.025em;
      }
      #login-screen .alcaur-account-switch button,
      #login-screen .alcaur-auth-legal button,
      #login-screen .alcaur-text-button {
        padding: 0;
        color: #ffffff;
        font-family: inherit;
        font-size: inherit;
        font-weight: 700;
        background: transparent;
        border: 0;
        border-radius: 0;
        cursor: pointer;
        text-decoration: underline;
        text-underline-offset: 3px;
      }
      #login-screen .alcaur-account-switch button:hover,
      #login-screen .alcaur-auth-legal button:hover,
      #login-screen .alcaur-text-button:hover {
        color: #8CFF00;
      }
      #login-screen .alcaur-auth-legal {
        max-width: 385px;
        margin: 22px auto 0;
        color: rgba(255, 255, 255, 0.36);
        font-size: 9px;
        font-weight: 500;
        letter-spacing: 0.035em;
        line-height: 1.65;
      }
      #login-screen .alcaur-auth-legal button {
        color: rgba(255, 255, 255, 0.58);
        font-size: 9px;
        font-weight: 600;
      }
      #login-screen .alcaur-form-fade-enter {
        animation: alcaurLoginFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
      }
      @keyframes alcaurLoginFadeIn {
        from { opacity: 0; transform: translateY(7px) scale(0.985); }
        to { opacity: 1; transform: translateY(0) scale(1); }
      }
      #login-screen .alcaur-auth-toast {
        position: fixed;
        z-index: 130;
        right: 26px;
        bottom: 26px;
        display: flex;
        max-width: min(360px, calc(100vw - 40px));
        padding: 13px 17px;
        align-items: center;
        gap: 10px;
        color: #ffffff;
        font-family: 'Inter', var(--font-body), sans-serif;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.03em;
        background: rgba(12, 12, 14, 0.94);
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 999px;
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
        opacity: 0;
        pointer-events: none;
        transform: translateY(22px);
        transition: opacity 0.28s ease, transform 0.28s ease;
      }
      #login-screen .alcaur-auth-toast.is-visible {
        opacity: 1;
        transform: translateY(0);
      }
      #login-screen .alcaur-auth-toast-icon {
        width: 8px;
        height: 8px;
        flex: 0 0 8px;
        background: #8CFF00;
        border-radius: 999px;
      }
      #login-screen .alcaur-auth-toast.is-error .alcaur-auth-toast-icon { background: #ff4d4d; }
      #login-screen .alcaur-auth-toast.is-info .alcaur-auth-toast-icon { background: #7db4ff; }
      #login-screen .login-footer {
        position: relative;
        z-index: 4;
        width: min(46vw, 520px);
        margin-left: calc(50% - min(46vw, 520px) / 2 + 25vw);
        transform: none;
      }
      body.light-mode #login-screen .login-bg {
        background: radial-gradient(ellipse at 75% 30%, #f5f5f5 0%, #ffffff 66%) !important;
      }
      body.light-mode #login-screen::after { background: rgba(0, 0, 0, 0.15); }
      body.light-mode #login-screen .alcaur-auth-card {
        color: #111111;
        background: rgba(255, 255, 255, 0.76);
        border-color: rgba(0, 0, 0, 0.13);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.11), 0 0 1px 1px rgba(0, 0, 0, 0.03) inset;
      }
      body.light-mode #login-screen .alcaur-auth-heading h1 { color: #000000; }
      body.light-mode #login-screen .alcaur-auth-heading p,
      body.light-mode #login-screen .alcaur-field-group label,
      body.light-mode #login-screen .alcaur-field-label-row .alcaur-text-button,
      body.light-mode #login-screen .alcaur-account-switch,
      body.light-mode #login-screen .alcaur-auth-legal { color: rgba(0, 0, 0, 0.54); }
      body.light-mode #login-screen .alcaur-input {
        color: #000000;
        background: rgba(248, 248, 248, 0.94);
        border-color: rgba(0, 0, 0, 0.20);
      }
      body.light-mode #login-screen .alcaur-input::placeholder { color: rgba(0, 0, 0, 0.36); }
      body.light-mode #login-screen .alcaur-input:focus {
        background: #ffffff;
        border-color: rgba(0, 0, 0, 0.48);
        box-shadow: 0 0 13px rgba(0, 0, 0, 0.08);
      }
      body.light-mode #login-screen .alcaur-eye-button { color: rgba(0, 0, 0, 0.48); }
      body.light-mode #login-screen .alcaur-eye-button:hover { color: #000000; background: rgba(0, 0, 0, 0.05); }
      body.light-mode #login-screen .alcaur-divider::before { background: rgba(0, 0, 0, 0.14); }
      body.light-mode #login-screen .alcaur-divider span { color: rgba(0, 0, 0, 0.45); background: #ffffff; }
      body.light-mode #login-screen .alcaur-social-button {
        color: #111111;
        background: rgba(255, 255, 255, 0.88);
        border-color: rgba(0, 0, 0, 0.18);
      }
      body.light-mode #login-screen .alcaur-social-button:hover { background: #f4f4f4; border-color: rgba(0, 0, 0, 0.32); }
      body.light-mode #login-screen .alcaur-account-switch button,
      body.light-mode #login-screen .alcaur-auth-legal button,
      body.light-mode #login-screen .alcaur-text-button { color: #000000; }
      body.light-mode #login-screen .alcaur-auth-toast {
        color: #000000;
        background: rgba(255, 255, 255, 0.97);
        border-color: rgba(0, 0, 0, 0.17);
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
      }
      @media (max-width: 768px) {
        #login-screen .login-container {
          width: min(92vw, 480px);
        }
        #login-screen .alcaur-auth-card {
          min-height: 0;
          padding: 27px 21px 22px;
        }
        #login-screen .login-footer {
          width: min(92vw, 480px);
          margin-left: 0;
        }
      }
      @media (max-width: 420px) {
        #login-screen .alcaur-auth-card { padding: 24px 17px 20px; }
        #login-screen .alcaur-auth-heading h1 { font-size: 22px; }
        #login-screen .alcaur-field-label-row { align-items: flex-start; flex-direction: column; gap: 3px; }
        #login-screen .alcaur-auth-toast { right: 20px; bottom: 20px; }
      }


      /* ── AJUSTE FINAL DE PORTADA: NEGRO PURO Y PANEL A LA DERECHA ── */
      #login-screen,
      body.light-mode #login-screen {
        background: #000000 !important;
      }
      #login-screen .login-bg,
      body.light-mode #login-screen .login-bg {
        background: #000000 !important;
      }
      #login-screen .alcaur-login-light {
        display: none !important;
      }
      #login-screen .login-container {
        position: absolute;
        top: 50%;
        left: 75%;
        width: min(42vw, 500px);
        margin: 0;
        transform: translate(-50%, -50%);
      }
      #login-screen .login-main-content {
        width: 100%;
        transform: none;
      }
      #login-screen .login-footer,
      #login-screen .footer-line,
      #login-screen .footer-text {
        display: none !important;
      }
      @media (max-width: 768px) {
        #login-screen .login-container {
          top: 50%;
          left: 50%;
          width: min(92vw, 480px);
          transform: translate(-50%, -50%);
        }
      }


      /* ── IMAGEN DE PORTADA: MITAD IZQUIERDA ── */
      #login-screen .alcaur-login-left-image {
        position: absolute;
        z-index: 2;
        top: 0;
        right: 50%;
        bottom: 0;
        left: 0;
        overflow: hidden;
        background: #000000;
      }
      #login-screen .alcaur-login-left-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
      }
      #login-screen::after {
        z-index: 3;
      }
      @media (max-width: 768px) {
        #login-screen .alcaur-login-left-image {
          display: none;
        }
      }


      /* ── AJUSTE DE BARRA SUPERIOR Y LOGOTIPO ALCAUR ── */
      .alcaur-header-logo {
        display: inline-flex;
        width: 56px;
        height: 56px;
        flex: 0 0 56px;
        align-items: center;
        justify-content: center;
        color: #ffffff;
      }
      .alcaur-header-logo-svg {
        display: block;
        width: 100%;
        height: 100%;
        fill: currentColor;
      }
      .alcaur-header-logo-svg path {
        fill: currentColor !important;
      }
      body:not(.light-mode) .alcaur-header-logo {
        color: #ffffff;
      }
      body.light-mode .alcaur-header-logo {
        color: #000000;
      }
      @media (min-width: 769px) {
        .app-header {
          height: 92px !important;
          min-height: 92px !important;
        }
        .sidebar,
        .right-sidebar {
          top: 92px !important;
          height: calc(100vh - 92px) !important;
        }
        main {
          margin-top: 92px !important;
        }
      }

/* Bloque de estilos 2 */
@media(max-width:700px){.products-grid{grid-template-columns:1fr!important}}

/* Bloque de estilos 3 */
@media(max-width:1000px){.history-grid{grid-template-columns: 1fr !important;}}

/* Bloque de estilos 4 */
@media(max-width:700px){#notificaciones-tab .grid-2{grid-template-columns:1fr!important}}

/* Bloque de estilos 5 */
.rep-panel { background:var(--black-3);border:1px solid var(--black-5);border-radius:10px;overflow:hidden;margin-bottom:20px; }
            .rep-header { background:var(--black-4);padding:16px 20px;border-bottom:1px solid var(--black-5);display:flex;align-items:center;gap:12px; }
            .rep-icon { width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;flex-shrink:0; }
            .rep-title { font-family:var(--font-body);font-size:0.7rem;font-weight:600;letter-spacing:3px;text-transform:uppercase;color:var(--white-60); }
            .rep-body { padding:20px; }
            .filter-btn { background:var(--black-4);border:1px solid var(--black-6);color:var(--white-30);border-radius:6px;padding:6px 16px;font-family:var(--font-body);font-size:0.65rem;letter-spacing:2px;text-transform:uppercase;cursor:pointer;transition:all 0.2s; }
            .filter-btn.active { background:var(--green) !important; color:#000000 !important; border-color:var(--green) !important; font-weight:700; }
            .chart-wrap { position:relative;width:100%;height:240px;margin-top:16px; }
            .bar-chart { display:flex;align-items:flex-end;gap:1px;height:100%;padding-bottom:28px;position:relative; }
            .bar-col { display:flex;flex-direction:column;align-items:center;flex:1;gap:4px;position:relative;height:100%; }
            .bar-fill { width:85%;left:50%;transform:translateX(-50%);border-radius:2px 2px 0 0;background:var(--green);min-height:2px;transition:height 0.5s cubic-bezier(0.4,0,0.2,1);position:absolute;bottom:28px; }
            .bar-label { position:absolute;bottom:0;font-family:var(--font-body);font-size:0.45rem;color:var(--white-30);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;text-align:center; }
            .bar-val { position:absolute;font-family:var(--font-body);font-size:0.55rem;color:var(--white-60);white-space:nowrap; }
            .top-item { display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--black-4); }
            .top-rank { font-family:var(--font-body);font-size:0.7rem;color:var(--white-30);width:20px;flex-shrink:0; }
            .top-name { font-family:var(--font-body);font-size:0.8rem;color:var(--white);flex:1; }
            .top-qty { font-family:var(--font-body);font-size:0.75rem;color:var(--green);font-weight:600;flex-shrink:0; }
            .top-bar-bg { flex:2;height:6px;background:var(--black-5);border-radius:3px;overflow:hidden; }
            .top-bar-fill { height:100%;background:var(--green);border-radius:3px;transition:width 0.5s; }
            .gain-row { display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid var(--black-4); }
            .gain-label { font-family:var(--font-body);font-size:0.75rem;color:var(--white-60); }
            .gain-val { font-family:var(--font-body);font-size:1rem;font-weight:600; }
            .rep-empty { text-align:center;padding:24px;color:var(--white-30);font-size:0.75rem; }
      
      
      /* Divisas UI Updates */
      .divisas-select-container {
        position: relative;
        cursor: pointer;
      }
      /* Arrow icon for the selector */
      .divisas-select-container::after {
        content: '▼';
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.5rem;
        color: inherit;
        pointer-events: none;
        opacity: 0.6;
      }
      body.light-mode .divisas-select-container {
        background: #d0d0d0 !important;
        color: #000000 !important;
        border-right-color: #dddddd !important;
      }
      /* Right side matches other inputs */
      body.light-mode .divisas-amount-container {
        background: #c0c0c0 !important;
        color: var(--adaptive-text) !important;
      }
      body:not(.light-mode) .divisas-amount-container {
        background: #0d0d0d !important;
      }
      #divisas-currency-select {
        opacity: 0;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 3;
        cursor: pointer;
      }
      .divisas-selected-view {
        display: flex;
        align-items: center;
        gap: 4px;
        width: 100%;
        height: 100%;
        padding-right: 15px; /* space for arrow */
        z-index: 1;
        font-weight: 700;
        font-size: 0.85rem;
      }

      body.light-mode .divisas-select-container select {
        color: #000000 !important;
        background: transparent !important;
      }
      body.light-mode .divisas-amount-container {
        background: #c0c0c0 !important;
        color: #000000 !important;
      }
      body:not(.light-mode) .divisas-amount-container {
        background: #0d0d0d !important;
      }
      body.light-mode #divisas-amount-input {
        color: #000000 !important;
        background: transparent !important;
      }
      body.light-mode .divisas-display-text {
        color: #666666 !important;
      }

      /* Estilos para que los paneles expandidos se ubiquen debajo de los botones */
      .prod-top-grid, .caj-cli-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        margin-bottom: 12px;
        align-items: flex-start;
      }
      
      .expandable-panel.expanded {
        width: 100% !important;
        max-width: 100% !important;
        order: 999; /* Lo manda al final del contenedor flex */
        margin-top: 10px;
      }

/* Bloque de estilos 6: light-mode-invoice-payment-uniform-style */
/* Ajuste final de facturación y pagos: prioriza el estilo blanco uniforme. */
    body.light-mode #invoice-product-preview,
    body.light-mode #inv-preview-filled > div:first-child,
    body.light-mode .divisas-payment-control,
    body.light-mode .divisas-select-container,
    body.light-mode .divisas-amount-container,
    body.light-mode .variety-counter {
      background: #ffffff !important;
      border-color: #e5e7eb !important;
    }
    body.light-mode #invoice-product-preview,
    body.light-mode .divisas-payment-control,
    body.light-mode .variety-counter {
      border: 1px solid #e5e7eb !important;
      border-radius: 12px !important;
      box-shadow: none !important;
    }
    body.light-mode .divisas-select-container,
    body.light-mode .divisas-amount-container {
      border: none !important;
      border-radius: 0 !important;
    }
    body.light-mode .divisas-select-container {
      border-right: 1px solid #d1d5db !important;
      color: #1f2937 !important;
    }
    body.light-mode .divisas-amount-container {
      color: #1f2937 !important;
    }
    body.light-mode #divisas-amount-input {
      color: #1f2937 !important;
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
    }
    body.light-mode .divisas-display-text,
    body.light-mode #divisas-symbol-display,
    body.light-mode #divisas-rate-display {
      color: #4b5563 !important;
    }
    body.light-mode .variety-counter #j-exchange-rate,
    body.light-mode .variety-counter #k-exchange-rate,
    body.light-mode .variety-counter #j-exchange-rate:focus,
    body.light-mode .variety-counter #k-exchange-rate:focus {
      color: #1f2937 !important;
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
    }

    /* Tipografía de aplicación: títulos, etiquetas y botones en mayúscula. */
    #market-app h1,
    #market-app h2,
    #market-app h3,
    #market-app h4,
    #market-app h5,
    #market-app h6,
    #market-app .app-title,
    #market-app .title-market,
    #market-app .title-mi-campo,
    #market-app .panel-title,
    #market-app .card-title,
    #market-app .card-subtitle,
    #market-app .rep-title,
    #market-app .modal-title,
    #market-app .field-label,
    #market-app .label,
    #market-app .bar-label,
    #market-app .gain-label,
    #market-app .day-divider-label,
    #market-app .status-label,
    #market-app .sidebar-bcv-label,
    #market-app .top-nav-item,
    #market-app .data-table th,
    #market-app .pay-row > span,
    #market-app .bulk-btn-action,
    #market-app button,
    #market-app [role="button"] {
      text-transform: uppercase !important;
    }

    /* Botones de acción: forma alargada, extremos redondeados y respuesta táctil sutil. */
    #market-app button:not(.btn-icon):not(.card-btn-edit):not(.card-btn-delete):not(.cat-edit-btn):not(.dom-edit-btn):not(.qty-btn):not(.sc-btn):not(.eye-btn),
    #market-app .sidebar-calc-btn,
    #market-app .filter-btn,
    #market-app .bcv-copy-btn,
    #market-app .euro-copy-btn,
    #market-app .bulk-btn-action,
    #market-app .modal-save-btn,
    #market-app .submit-btn {
      border-radius: 999px !important;
      min-height: 38px;
      padding-inline: 18px !important;
      box-shadow: 0 2px 6px rgba(15,23,42,0.10) !important;
      transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.18s ease !important;
    }
    #market-app button:not(.btn-icon):not(.card-btn-edit):not(.card-btn-delete):not(.cat-edit-btn):not(.dom-edit-btn):not(.qty-btn):not(.sc-btn):not(.eye-btn):hover,
    #market-app .sidebar-calc-btn:hover,
    #market-app .filter-btn:hover,
    #market-app .bcv-copy-btn:hover,
    #market-app .euro-copy-btn:hover,
    #market-app .bulk-btn-action:hover,
    #market-app .modal-save-btn:hover,
    #market-app .submit-btn:hover {
      transform: translateY(-1px) !important;
      box-shadow: 0 5px 12px rgba(15,23,42,0.14) !important;
      filter: brightness(1.03);
    }
    #market-app button:not(.btn-icon):not(.card-btn-edit):not(.card-btn-delete):not(.cat-edit-btn):not(.dom-edit-btn):not(.qty-btn):not(.sc-btn):not(.eye-btn):active,
    #market-app .sidebar-calc-btn:active,
    #market-app .filter-btn:active,
    #market-app .bcv-copy-btn:active,
    #market-app .euro-copy-btn:active,
    #market-app .bulk-btn-action:active,
    #market-app .modal-save-btn:active,
    #market-app .submit-btn:active {
      transform: translateY(0) !important;
      box-shadow: 0 1px 3px rgba(15,23,42,0.10) !important;
    }

    /* Ajuste focalizado de los desplegables del panel lateral. */
    #market-app #sidebar-tasa-toggle,
    #market-app #sidebar-calc-toggle,
    #market-app #sidebar-price-toggle {
      background: #000000 !important;
      border: 1px solid rgba(255,255,255,0.34) !important;
      color: #f5f5f5 !important;
      box-shadow: 0 1px 3px rgba(0,0,0,0.35) !important;
    }
    #market-app #sidebar-tasa-toggle:hover,
    #market-app #sidebar-calc-toggle:hover,
    #market-app #sidebar-price-toggle:hover {
      background: #000000 !important;
      border-color: rgba(255,255,255,0.55) !important;
      color: #ffffff !important;
    }
    .sidebar,
    .right-sidebar {
      border-color: rgba(255,255,255,0.10) !important;
    }
    .sidebar-divider {
      border-top-color: rgba(255,255,255,0.10) !important;
    }
    body.light-mode .sidebar,
    body.light-mode .right-sidebar {
      border-color: rgba(0,0,0,0.07) !important;
    }
    body.light-mode .sidebar-divider {
      border-top-color: rgba(0,0,0,0.07) !important;
    }

    /* Acento verde unificado para acciones, tasas, reportes y cifras destacadas. */
    #market-app .btn-green,
    #market-app .filter-btn.active,
    #market-app .bar-fill,
    #market-app .top-bar-fill,
    #market-app .sidebar-bcv-price,
    #market-app .sidebar-euro-price,
    #market-app .bcv-copy-btn,
    #market-app .euro-copy-btn,
    #market-app .title-market,
    #market-app .top-qty,
    #market-app .gain-val[style*="var(--green)"],
    #market-app #inv-preview-price {
      color: #8CFF00 !important;
    }
    #market-app .btn-green,
    #market-app .filter-btn.active,
    #market-app .bar-fill,
    #market-app .top-bar-fill {
      background-color: #8CFF00 !important;
      border-color: #8CFF00 !important;
    }
    #market-app .btn-green,
    #market-app .filter-btn.active {
      color: #000000 !important;
    }
    #market-app .bcv-copy-btn,
    #market-app .euro-copy-btn,
      border-color: #8CFF00 !important;
    }
    #market-app .bcv-copy-btn:hover,
    #market-app .euro-copy-btn:hover,
      background: rgba(140,255,0,0.12) !important;
    }

    /* Tasas: el valor permanece en su posición; los controles se agrupan abajo a la derecha. */
    #market-app .sidebar-bcv-container,
    #market-app .sidebar-euro-container,
      position: relative;
      display: flex !important;
      align-items: center;
    }
    #market-app .sidebar-bcv-container > div:first-child,
    #market-app .sidebar-euro-container > div:first-child,
      padding-right: 0;
    }
    #market-app .sidebar-bcv-container > div:last-child,
    #market-app .sidebar-euro-container > div:last-child,
      position: absolute;
      right: 9px;
      bottom: 8px;
      display: flex;
      align-items: center;
      gap: 4px !important;
    }
    #market-app .bcv-copy-btn,
    #market-app .euro-copy-btn,
      width: 22px !important;
      min-width: 22px !important;
      height: 22px !important;
      min-height: 22px !important;
      padding: 0 !important;
      border-radius: 7px !important;
      display: inline-flex !important;
      align-items: center;
      justify-content: center;
      box-shadow: none !important;
    }
    #market-app .bcv-copy-btn svg,
    #market-app .euro-copy-btn svg,
      width: 10px;
      height: 10px;
    }

    /* Los desplegables del panel lateral se adaptan únicamente al modo claro. */
    body.light-mode #market-app #sidebar-tasa-toggle,
    body.light-mode #market-app #sidebar-calc-toggle,
    body.light-mode #market-app #sidebar-price-toggle {
      background: #ffffff !important;
      border-color: #e5e7eb !important;
      color: #111827 !important;
      box-shadow: 0 1px 3px rgba(15,23,42,0.08) !important;
    }
    body.light-mode #market-app #sidebar-tasa-toggle:hover,
    body.light-mode #market-app #sidebar-calc-toggle:hover,
    body.light-mode #market-app #sidebar-price-toggle:hover {
      background: #ffffff !important;
      border-color: #cbd5e1 !important;
      color: #000000 !important;
    }

    /* Iconos de navegación lateral: visibles, consistentes y legibles por tema. */
    #market-app #sidebar-tasa-toggle > div > svg,
    #market-app #sidebar-calc-toggle > div > svg,
    #market-app #sidebar-price-toggle > div > svg {
      width: 18px !important;
      height: 18px !important;
      min-width: 18px;
      padding: 2px;
      border-radius: 5px;
      color: inherit !important;
      stroke-width: 2.25;
      background: rgba(255,255,255,0.08);
    }
    body.light-mode #market-app #sidebar-tasa-toggle > div > svg,
    body.light-mode #market-app #sidebar-calc-toggle > div > svg,
    body.light-mode #market-app #sidebar-price-toggle > div > svg {
      background: #f3f4f6;
      color: #111827 !important;
    }
    body:not(.light-mode) #market-app #sidebar-tasa-toggle > div > svg,
    body:not(.light-mode) #market-app #sidebar-calc-toggle > div > svg,
    body:not(.light-mode) #market-app #sidebar-price-toggle > div > svg {
      color: #8CFF00 !important;
      background: rgba(140,255,0,0.10);
    }

    /* Contraste negro exclusivo para PRICE y tasas en modo claro. */
    body.light-mode #market-app .sidebar-bcv-price,
    body.light-mode #market-app .sidebar-euro-price,
    body.light-mode #market-app .bcv-copy-btn,
    body.light-mode #market-app .euro-copy-btn,
    body.light-mode #market-app #price-usd,
    body.light-mode #market-app #price-unit-result,
    body.light-mode #market-app #price-pct-result,
    body.light-mode #market-app #price-final,
    body.light-mode #market-app #price-units,
    body.light-mode #market-app #price-pct,
    body.light-mode #market-app #price-copy-btn {
      color: #000000 !important;
    }
    body.light-mode #market-app .bcv-copy-btn,
    body.light-mode #market-app .euro-copy-btn,
    body.light-mode #market-app #price-copy-btn {
      border-color: #d1d5db !important;
      background: #ffffff !important;
    }
    body.light-mode #market-app #sidebar-price-panel [style*="color:var(--green)"],
    body.light-mode #market-app #sidebar-price-panel [style*="rgba(57,255,20"] {
      color: #000000 !important;
      border-color: #d1d5db !important;
    }

    /* Iconografía lateral minimalista, sin acento verde. */
    #market-app #sidebar-tasa-toggle > div > svg,
    #market-app #sidebar-calc-toggle > div > svg,
    #market-app #sidebar-price-toggle > div > svg {
      width: 16px !important;
      height: 16px !important;
      min-width: 16px;
      padding: 0;
      border-radius: 0;
      background: transparent !important;
      color: inherit !important;
      stroke-width: 2;
    }
    body.light-mode #market-app #sidebar-tasa-toggle > div > svg,
    body.light-mode #market-app #sidebar-calc-toggle > div > svg,
    body.light-mode #market-app #sidebar-price-toggle > div > svg {
      color: #000000 !important;
    }
    body:not(.light-mode) #market-app #sidebar-tasa-toggle > div > svg,
    body:not(.light-mode) #market-app #sidebar-calc-toggle > div > svg,
    body:not(.light-mode) #market-app #sidebar-price-toggle > div > svg {
      color: #ffffff !important;
    }
    #market-app .sidebar-bcv-container > div:last-child,
    #market-app .sidebar-euro-container > div:last-child,
      right: 8px;
      bottom: 7px;
      gap: 3px !important;
    }
    #market-app .bcv-copy-btn,
    #market-app .euro-copy-btn,
      width: 18px !important;
      min-width: 18px !important;
      height: 18px !important;
      min-height: 18px !important;
      border-radius: 5px !important;
      line-height: 1;
      overflow: hidden;
    }
    #market-app .bcv-copy-btn svg,
    #market-app .euro-copy-btn svg,
      width: 9px !important;
      height: 9px !important;
      display: block;
      margin: auto;
    }
    body.light-mode #market-app .bcv-copy-btn svg,
    body.light-mode #market-app .euro-copy-btn svg,
      color: #000000 !important;
    }
    body:not(.light-mode) #market-app .bcv-copy-btn svg,
    body:not(.light-mode) #market-app .euro-copy-btn svg,
      color: #ffffff !important;
    }

    /* Separador visual de las dos mitades de la portada. */
    #login-screen::after {
      content: '';
      position: absolute;
      top: 0;
      bottom: 0;
      left: 50%;
      width: 1px;
      background: rgba(255,255,255,0.16);
      transform: translateX(-0.5px);
      pointer-events: none;
      z-index: 1;
    }
    @media (max-width: 768px) {
      #login-screen::after { display: none; }
    }

    /* Modo oscuro: superficies negras uniformes, diferenciadas por contornos. */
    body:not(.light-mode) #market-app .panel,
    body:not(.light-mode) #market-app .panel-header,
    body:not(.light-mode) #market-app .form-card,
    body:not(.light-mode) #market-app .product-card,
    body:not(.light-mode) #market-app .invoice-card,
    body:not(.light-mode) #market-app .invoice-details,
    body:not(.light-mode) #market-app .sidebar-bcv-container,
    body:not(.light-mode) #market-app .sidebar-euro-container,
    body:not(.light-mode) #market-app #invoice-history > .invoice-history-card,
    body:not(.light-mode) #market-app #credit-invoice-history > .invoice-history-card {
      background: #000000 !important;
      border-color: rgba(255,255,255,0.14) !important;
    }
    body:not(.light-mode) #market-app .panel-header,
    body:not(.light-mode) #market-app .invoice-details {
      border-bottom-color: rgba(255,255,255,0.14) !important;
      border-top-color: rgba(255,255,255,0.14) !important;
    }
    body:not(.light-mode) #market-app .field-input,
    body:not(.light-mode) #market-app input:not([type="checkbox"]):not([type="radio"]),
    body:not(.light-mode) #market-app select,
    body:not(.light-mode) #market-app textarea {
      background: #000000 !important;
      border-color: rgba(255,255,255,0.14) !important;
    }
    body:not(.light-mode) #market-app .data-table thead,
    body:not(.light-mode) #market-app .data-table thead th,
    body:not(.light-mode) #market-app .invoice-history-item {
      background: #000000 !important;
      border-color: rgba(255,255,255,0.14) !important;
    }

    /* Ajustes focalizados: superficies negras solo en modo oscuro. */
    body:not(.light-mode) #market-app .theme-switch-container,
    body:not(.light-mode) #market-app .eye-btn,
    body:not(.light-mode) #market-app #invoice-product-preview,
    body:not(.light-mode) #market-app #inv-preview-empty,
    body:not(.light-mode) #market-app #inv-preview-filled,
    body:not(.light-mode) #market-app .variety-counter,
    body:not(.light-mode) #market-app #reportes-tab .rep-panel,
    body:not(.light-mode) #market-app #reportes-tab .rep-header {
      background: #000000 !important;
      border-color: rgba(255,255,255,0.16) !important;
    }
    body:not(.light-mode) #market-app .theme-switch-container,
    body:not(.light-mode) #market-app .eye-btn {
      box-shadow: none !important;
    }
    body:not(.light-mode) #market-app .theme-switch-container .slider,
    body:not(.light-mode) #market-app .theme-switch-container input:checked + .slider {
      background: #000000 !important;
      border: 1px solid rgba(255,255,255,0.22) !important;
    }
    body:not(.light-mode) #market-app .variety-counter #j-exchange-rate,
    body:not(.light-mode) #market-app .variety-counter #k-exchange-rate,
    body:not(.light-mode) #market-app .variety-counter #j-exchange-rate:focus,
    body:not(.light-mode) #market-app .variety-counter #k-exchange-rate:focus {
      background: #000000 !important;
      border-color: rgba(255,255,255,0.16) !important;
    }
    body:not(.light-mode) #market-app #reportes-tab .rep-header {
      border-bottom-color: rgba(255,255,255,0.16) !important;
    }

    /* Refinamiento focalizado de contornos y búsquedas de inventario. */
    body:not(.light-mode) #market-app #sidebar-tasa-toggle,
    body:not(.light-mode) #market-app #sidebar-calc-toggle,
    body:not(.light-mode) #market-app #sidebar-price-toggle {
      border-color: rgba(255,255,255,0.16) !important;
    }
    #market-app #j-search,
    #market-app #k-search {
      border-radius: 999px !important;
      padding-left: 16px !important;
      padding-right: 16px !important;
    }

/* Bloque de estilos 7: invoice-surface-unification-style */
/* Superficies de factura uniformes: sin grises en tasa BCV y divisas. */
    body:not(.light-mode) #facturas-tab #invoice-bcv-rate-card {
      background: #000000 !important;
      border: 1px solid rgba(255, 255, 255, 0.16) !important;
      box-shadow: none !important;
    }
    body.light-mode #facturas-tab #invoice-bcv-rate-card {
      background: #ffffff !important;
      border: 1px solid rgba(0, 0, 0, 0.28) !important;
      box-shadow: none !important;
    }

    body:not(.light-mode) #facturas-tab .divisas-payment-control {
      background: #000000 !important;
      border: 1px solid rgba(255, 255, 255, 0.16) !important;
      border-radius: 6px !important;
      box-shadow: none !important;
    }
    body:not(.light-mode) #facturas-tab .divisas-select-container,
    body:not(.light-mode) #facturas-tab .divisas-amount-container {
      background: #000000 !important;
      border: none !important;
      color: #ffffff !important;
    }
    body:not(.light-mode) #facturas-tab .divisas-select-container {
      border-right: 1px solid rgba(255, 255, 255, 0.16) !important;
    }
    body:not(.light-mode) #facturas-tab #divisas-amount-input {
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
      color: #ffffff !important;
    }
    body:not(.light-mode) #facturas-tab .divisas-display-text,
    body:not(.light-mode) #facturas-tab #divisas-symbol-display,
    body:not(.light-mode) #facturas-tab #divisas-rate-display {
      color: rgba(255, 255, 255, 0.62) !important;
    }

    body.light-mode #facturas-tab .divisas-payment-control {
      background: #ffffff !important;
      border: 1px solid rgba(0, 0, 0, 0.28) !important;
      border-radius: 6px !important;
      box-shadow: none !important;
    }
    body.light-mode #facturas-tab .divisas-select-container,
    body.light-mode #facturas-tab .divisas-amount-container {
      background: #ffffff !important;
      border: none !important;
      color: #111111 !important;
    }
    body.light-mode #facturas-tab .divisas-select-container {
      border-right: 1px solid rgba(0, 0, 0, 0.28) !important;
    }
    body.light-mode #facturas-tab #divisas-amount-input {
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
      color: #111111 !important;
    }
    body.light-mode #facturas-tab .divisas-display-text,
    body.light-mode #facturas-tab #divisas-symbol-display,
    body.light-mode #facturas-tab #divisas-rate-display {
      color: #404040 !important;
    }

/* Bloque de estilos 8: invoice-dark-outline-and-history-style */
/* Definición del botón BORRAR FACTURA solamente en modo oscuro. */
    body:not(.light-mode) #market-app #clear-invoice-btn {
      background: #000000 !important;
      border: 1px solid rgba(255, 255, 255, 0.24) !important;
      color: #ffffff !important;
      box-shadow: none !important;
    }

    /* Historial de facturas: pestañas de fecha negras, con borde claro en modo oscuro. */
    body:not(.light-mode) #market-app .day-divider:not(.credit) .day-divider-label {
      background: #000000 !important;
      border-color: rgba(255, 255, 255, 0.16) !important;
      color: #ffffff !important;
      box-shadow: none !important;
      -webkit-backdrop-filter: none !important;
      backdrop-filter: none !important;
    }
    body:not(.light-mode) #market-app .day-divider:not(.credit) .day-divider-line {
      background: rgba(255, 255, 255, 0.16) !important;
    }


/* Bloque de estilos 12: monedas-module-style */
#panel-monedas .panel-header > svg { color:inherit; }
  #monedas-list{display:flex!important;flex-direction:row!important;flex-wrap:wrap;gap:7px!important;align-items:stretch}
  .moneda-row{display:flex;align-items:center;gap:6px;padding:7px 8px;border:1px solid rgba(255,255,255,.20);border-radius:9px;min-width:172px;max-width:220px;flex:1 1 172px;box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}
  .moneda-dot{width:12px;height:12px;border-radius:50%;border:1px solid rgba(255,255,255,.42);flex:0 0 12px}.moneda-row-name{font-size:.61rem;font-weight:800;letter-spacing:.8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.35)}.moneda-row-price{font-size:.58rem;color:rgba(255,255,255,.86);margin-top:2px}.moneda-mini-btn{border:1px solid rgba(255,255,255,.32);background:rgba(0,0,0,.18);color:#fff;padding:4px 6px;border-radius:999px;cursor:pointer;font-size:.49rem;font-family:var(--font-body);letter-spacing:.4px}body.light-mode .moneda-row{border-color:rgba(0,0,0,.16)}body.light-mode .moneda-row-price{color:rgba(255,255,255,.88)}body.light-mode .moneda-mini-btn{border-color:rgba(255,255,255,.55);color:#fff;background:rgba(0,0,0,.18)}

/* Bloque de estilos 13: rate-card-controls-compact-style */
/* Controles de tasas: iconos compactos y agrupados en el extremo inferior derecho. */
    #market-app .sidebar-bcv-container > div:last-child,
    #market-app .sidebar-euro-container > div:last-child,
      right: 6px !important;
      bottom: 5px !important;
      gap: 2px !important;
    }
    #market-app .bcv-copy-btn,
    #market-app .euro-copy-btn,
      width: 14px !important;
      min-width: 14px !important;
      height: 14px !important;
      min-height: 14px !important;
      padding: 0 !important;
      border-radius: 4px !important;
    }
    #market-app .bcv-copy-btn svg,
    #market-app .euro-copy-btn svg,
      width: 7px !important;
      height: 7px !important;
    }

/* Bloque de estilos 14: inventory-headings-style */
/* Encabezados visuales de inventarios: títulos amplios, con icono y color adaptable. */
    #market-app .inventory-heading {
      display: inline-flex !important;
      align-items: center !important;
      gap: 10px !important;
      margin: 0 !important;
      color: #ffffff !important;
      font-size: 1.08rem !important;
      font-weight: 800 !important;
      line-height: 1.15 !important;
      letter-spacing: 1.4px !important;
      text-transform: uppercase !important;
      opacity: 1 !important;
      white-space: nowrap;
    }
    #market-app .inventory-heading .inventory-heading-icon {
      display: block;
      width: 22px !important;
      height: 22px !important;
      min-width: 22px;
      color: currentColor !important;
      flex: 0 0 22px;
    }
    body.light-mode #market-app .inventory-heading {
      color: #000000 !important;
    }
    @media (max-width: 700px) {
      #market-app .inventory-heading {
        font-size: 0.92rem !important;
        letter-spacing: 1px !important;
      }
      #market-app .inventory-heading .inventory-heading-icon {
        width: 19px !important;
        height: 19px !important;
        min-width: 19px;
        flex-basis: 19px;
      }
    }

/* Bloque de estilos 15: invoice-action-buttons-theme-style */
/* Acciones de Facturas: cuatro controles neutrales por tema y color solo al interactuar. */
    #market-app #clear-invoice-btn,
    #market-app #dolarizar-btn,
    #market-app #generate-credit-pdf,
    #market-app #save-invoice-only {
      flex: 1 1 0 !important;
      min-width: 0 !important;
      height: 42px !important;
      padding: 0 10px !important;
      background: #000000 !important;
      border: 1px solid rgba(255, 255, 255, 0.34) !important;
      color: #ffffff !important;
      box-shadow: none !important;
      white-space: nowrap;
    }
    #market-app #clear-invoice-btn svg,
    #market-app #dolarizar-btn svg,
    #market-app #generate-credit-pdf svg,
    #market-app #save-invoice-only svg {
      color: currentColor !important;
      flex: 0 0 auto;
    }
    #market-app #generate-pdf {
      flex: 1.22 1 0 !important;
      min-width: 0 !important;
      height: 42px !important;
      padding: 0 16px !important;
      white-space: nowrap;
    }
    body.light-mode #market-app #clear-invoice-btn,
    body.light-mode #market-app #dolarizar-btn,
    body.light-mode #market-app #generate-credit-pdf,
    body.light-mode #market-app #save-invoice-only {
      background: #ffffff !important;
      border-color: rgba(0, 0, 0, 0.42) !important;
      color: #000000 !important;
    }
    #market-app #clear-invoice-btn:hover,
    #market-app #clear-invoice-btn:active {
      background: #DC2626 !important;
      border-color: #DC2626 !important;
      color: #ffffff !important;
    }
    #market-app #dolarizar-btn:hover,
    #market-app #dolarizar-btn:active {
      background: #FACC15 !important;
      border-color: #FACC15 !important;
      color: #111111 !important;
    }
    #market-app #generate-credit-pdf:hover,
    #market-app #generate-credit-pdf:active {
      background: #0006B3 !important;
      border-color: #0006B3 !important;
      color: #ffffff !important;
    }
    #market-app #save-invoice-only:hover,
    #market-app #save-invoice-only:active {
      background: #0B6B3A !important;
      border-color: #0B6B3A !important;
      color: #ffffff !important;
    }
    #market-app #clear-invoice-btn:active,
    #market-app #dolarizar-btn:active,
    #market-app #generate-credit-pdf:active,
    #market-app #save-invoice-only:active {
      transform: translateY(1px) !important;
      filter: brightness(0.92);
    }

/* Bloque de estilos 16: invoice-action-buttons-light-state-fix */
/* En modo claro, los colores de acción deben prevalecer sobre la superficie blanca al interactuar. */
    body.light-mode #market-app #clear-invoice-btn:hover,
    body.light-mode #market-app #clear-invoice-btn:active {
      background: #DC2626 !important;
      border-color: #DC2626 !important;
      color: #ffffff !important;
    }
    body.light-mode #market-app #dolarizar-btn:hover,
    body.light-mode #market-app #dolarizar-btn:active {
      background: #FACC15 !important;
      border-color: #FACC15 !important;
      color: #111111 !important;
    }
    body.light-mode #market-app #generate-credit-pdf:hover,
    body.light-mode #market-app #generate-credit-pdf:active {
      background: #0006B3 !important;
      border-color: #0006B3 !important;
      color: #ffffff !important;
    }
    body.light-mode #market-app #save-invoice-only:hover,
    body.light-mode #market-app #save-invoice-only:active {
      background: #0B6B3A !important;
      border-color: #0B6B3A !important;
      color: #ffffff !important;
    }
    /* Imprimir conserva su verde; solo gana un contorno oscuro sutil en modo claro. */
    body.light-mode #market-app #generate-pdf {
      border: 1px solid rgba(0, 0, 0, 0.42) !important;
    }

/* Bloque de estilos 17: clear-invoice-dark-hover-fix */
/* En modo oscuro, este selector supera la superficie negra normal y activa el rojo al interactuar. */
    body:not(.light-mode) #market-app #clear-invoice-btn:hover,
    body:not(.light-mode) #market-app #clear-invoice-btn:active {
      background: #DC2626 !important;
      border-color: #DC2626 !important;
      color: #ffffff !important;
    }

/* Bloque de estilos 18: rate-card-icons-visibility-style */
/* Los controles se mantienen compactos, pero sus iconos recuperan una escala legible. */
    #market-app .bcv-copy-btn,
    #market-app .euro-copy-btn,
      width: 20px !important;
      min-width: 20px !important;
      height: 20px !important;
      min-height: 20px !important;
      padding: 0 !important;
      line-height: 1 !important;
      overflow: visible !important;
    }
    #market-app .bcv-copy-btn svg,
    #market-app .euro-copy-btn svg,
      display: block !important;
      width: 11px !important;
      height: 11px !important;
      margin: auto !important;
      color: currentColor !important;
      flex: 0 0 auto;
    }
    body:not(.light-mode) #market-app .bcv-copy-btn,
    body:not(.light-mode) #market-app .euro-copy-btn,
    body:not(.light-mode) #market-app .bcv-copy-btn svg,
    body:not(.light-mode) #market-app .euro-copy-btn svg,
      color: #8CFF00 !important;
    }
    body.light-mode #market-app .bcv-copy-btn,
    body.light-mode #market-app .euro-copy-btn,
    body.light-mode #market-app .bcv-copy-btn svg,
    body.light-mode #market-app .euro-copy-btn svg,
      color: #000000 !important;
    }

/* Bloque de estilos 19: sidebar-panel-uniform-surfaces-style */
/* Tasas y Precios: fondos uniformes; los bordes mantienen la jerarquía visual. */
    body:not(.light-mode) #market-app #sidebar-tasa-panel,
    body:not(.light-mode) #market-app #sidebar-price-panel,
    body:not(.light-mode) #market-app .sidebar-bcv-container,
    body:not(.light-mode) #market-app .sidebar-euro-container,
    body:not(.light-mode) #market-app #sidebar-price-panel > div,
    body:not(.light-mode) #market-app #sidebar-price-panel > div > div[style*="background"] {
      background: #000000 !important;
      border-color: rgba(255, 255, 255, 0.14) !important;
    }
    body.light-mode #market-app #sidebar-tasa-panel,
    body.light-mode #market-app #sidebar-price-panel,
    body.light-mode #market-app .sidebar-bcv-container,
    body.light-mode #market-app .sidebar-euro-container,
    body.light-mode #market-app #sidebar-price-panel > div,
    body.light-mode #market-app #sidebar-price-panel > div > div[style*="background"] {
      background: #ffffff !important;
      border-color: rgba(0, 0, 0, 0.16) !important;
    }

/* Bloque de estilos 20: sidebar-controls-theme-unification-style */
/* Controles de PRECIOS: superficies sin gris, según el tema. */
    body:not(.light-mode) #market-app #price-copy-btn,
    body:not(.light-mode) #market-app #price-copy-btn:hover {
      background: #000000 !important;
      border-color: rgba(255, 255, 255, 0.18) !important;
      color: #ffffff !important;
    }
    body.light-mode #market-app #price-copy-btn,
    body.light-mode #market-app #price-copy-btn:hover {
      background: #ffffff !important;
      border-color: rgba(0, 0, 0, 0.20) !important;
      color: #000000 !important;
    }
    /* Iconos de luna y sol neutrales, sin acentos de color. */
    body:not(.light-mode) #market-app .theme-icon {
      color: #ffffff !important;
    }
    body:not(.light-mode) #market-app .theme-icon.sun {
      fill: #ffffff !important;
    }
    body.light-mode #market-app .theme-icon {
      color: #000000 !important;
    }
    body.light-mode #market-app .theme-icon.sun {
      fill: #000000 !important;
    }
    /* El selector compone la mitad izquierda; el botón de vista, la mitad derecha. */
    #market-app .theme-switch-container {
      border-radius: 999px 0 0 999px !important;
    }
    #market-app .eye-btn {
      margin-left: 0 !important;
      border-radius: 0 999px 999px 0 !important;
    }
    body:not(.light-mode) #market-app .theme-switch-container,
    body:not(.light-mode) #market-app .eye-btn {
      background: #000000 !important;
      border-color: rgba(255, 255, 255, 0.18) !important;
      color: #ffffff !important;
    }
    body.light-mode #market-app .theme-switch-container,
    body.light-mode #market-app .eye-btn {
      background: #ffffff !important;
      border-color: rgba(0, 0, 0, 0.20) !important;
      color: #000000 !important;
      box-shadow: none !important;
    }

/* Bloque de estilos 21: product-creation-modal-style */
/* Botones Editar de los dos inventarios con extremos totalmente redondeados. */
    #market-app .j-edit-product,
    #market-app .k-edit-product {
      border-radius: 999px !important;
      padding-left: 12px !important;
      padding-right: 12px !important;
    }
    /* El formulario existente se presenta como modal sin cambiar sus campos ni eventos. */
    #j-product-form:not(.hidden),
    #k-product-form:not(.hidden) {
      position: fixed !important;
      top: 50% !important;
      left: 50% !important;
      z-index: 10051 !important;
      width: min(720px, calc(100vw - 32px)) !important;
      max-height: calc(100vh - 32px) !important;
      margin: 0 !important;
      padding: 22px !important;
      overflow-y: auto !important;
      transform: translate(-50%, -50%) !important;
      border: 1px solid rgba(255, 255, 255, 0.20) !important;
      border-radius: 16px !important;
      box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55) !important;
    }
    body:has(#j-product-form:not(.hidden), #k-product-form:not(.hidden)) {
      overflow: hidden !important;
    }
    body:has(#j-product-form:not(.hidden), #k-product-form:not(.hidden))::before {
      content: '';
      position: fixed;
      inset: 0;
      z-index: 10050;
      background: rgba(0, 0, 0, 0.64);
      pointer-events: auto;
    }
    body.light-mode #j-product-form:not(.hidden),
    body.light-mode #k-product-form:not(.hidden) {
      background: #ffffff !important;
      border-color: rgba(0, 0, 0, 0.20) !important;
      box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22) !important;
    }
    body:not(.light-mode) #j-product-form:not(.hidden),
    body:not(.light-mode) #k-product-form:not(.hidden) {
      background: #000000 !important;
      border-color: rgba(255, 255, 255, 0.20) !important;
    }
    @media (max-width: 700px) {
      #j-product-form:not(.hidden),
      #k-product-form:not(.hidden) {
        width: calc(100vw - 20px) !important;
        max-height: calc(100vh - 20px) !important;
        padding: 16px !important;
        border-radius: 14px !important;
      }
    }

/* Bloque de estilos 22: product-creation-titles-style */
/* Encabezados destacados de los modales de alta. */
    #market-app .product-creation-modal-title {
      margin: 0 0 18px !important;
      font-family: var(--font-body) !important;
      font-size: 1.12rem !important;
      font-weight: 900 !important;
      line-height: 1.15 !important;
      letter-spacing: 1.6px !important;
      text-transform: uppercase !important;
      color: #ffffff !important;
    }
    body.light-mode #market-app .product-creation-modal-title {
      color: #000000 !important;
    }

/* Bloque de estilos 23: main-titles-and-sales-surfaces-style */
/* Jerarquía visual compartida por los encabezados principales solicitados. */
    #market-app .main-panel-emphasis {
      font-size: 1.12rem !important;
      font-weight: 900 !important;
      letter-spacing: 1.5px !important;
      line-height: 1.15 !important;
    }
    /* Métricas de ventas: sin superficies grises en ningún tema. */
    body:not(.light-mode) #market-app #ventas-resumen .sales-summary-card,
    body:not(.light-mode) #market-app #reportes-tab .filter-btn:not(.active) {
      background: #000000 !important;
      border-color: rgba(255,255,255,0.18) !important;
      color: #ffffff !important;
    }
    body.light-mode #market-app #ventas-resumen .sales-summary-card,
    body.light-mode #market-app #reportes-tab .filter-btn:not(.active) {
      background: #ffffff !important;
      border-color: rgba(0,0,0,0.20) !important;
      color: #000000 !important;
    }
    body.light-mode #market-app #ventas-resumen .sales-summary-card div {
      color: #000000 !important;
    }

/* Bloque de estilos 24: product-image-preview-style */
/* Cabecera compacta del formulario: imagen a la izquierda y campos principales a la derecha. */
    #market-app .product-modal-top-row {
      display: grid !important;
      grid-template-columns: 148px minmax(0, 1fr) !important;
      gap: 14px !important;
      align-items: start !important;
      width: 100% !important;
    }
    #market-app .product-modal-image-preview {
      width: 148px !important;
      height: 148px !important;
      overflow: hidden !important;
      border: 1px solid rgba(255,255,255,0.20) !important;
      border-radius: 12px !important;
      background: #000000 !important;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04) !important;
    }
    #market-app .product-modal-image-preview img {
      width: 100% !important;
      height: 100% !important;
      display: block !important;
      object-fit: cover !important;
    }
    #market-app .product-modal-primary-fields {
      display: flex !important;
      min-width: 0 !important;
      flex-direction: column !important;
      gap: 10px !important;
    }
    body.light-mode #market-app .product-modal-image-preview {
      background: #ffffff !important;
      border-color: rgba(0,0,0,0.20) !important;
      box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03) !important;
    }
    @media (max-width: 520px) {
      #market-app .product-modal-top-row {
        grid-template-columns: 104px minmax(0, 1fr) !important;
        gap: 10px !important;
      }
      #market-app .product-modal-image-preview {
        width: 104px !important;
        height: 104px !important;
        border-radius: 10px !important;
      }
    }

/* Bloque de estilos 25: creation-modal-title-icons-style */
#market-app .product-creation-modal-title {
      display: inline-flex !important;
      align-items: center !important;
      gap: 9px !important;
    }
    #market-app .creation-modal-title-icon {
      width: 1.14em !important;
      height: 1.14em !important;
      flex: 0 0 auto !important;
      color: currentColor !important;
    }

/* Bloque de estilos 26: product-edit-modal-style */
/* Paneles de edición: presentación modal centrada. */
    #market-app .product-edit:not(.hidden) {
      position: fixed !important;
      z-index: 2000 !important;
      top: 50% !important;
      left: 50% !important;
      width: min(720px, calc(100vw - 34px)) !important;
      max-height: min(86vh, 860px) !important;
      overflow-y: auto !important;
      box-sizing: border-box !important;
      transform: translate(-50%, -50%) !important;
      margin: 0 !important;
      padding: 24px !important;
      border: 1px solid rgba(255,255,255,0.22) !important;
      border-radius: 16px !important;
      background: #000000 !important;
      box-shadow: 0 18px 55px rgba(0,0,0,0.58) !important;
    }
    body.light-mode #market-app .product-edit:not(.hidden) {
      background: #ffffff !important;
      border-color: rgba(0,0,0,0.22) !important;
      box-shadow: 0 18px 55px rgba(0,0,0,0.22) !important;
    }
    #product-edit-modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 1990;
      background: rgba(0,0,0,0.62);
      backdrop-filter: blur(3px);
    }
    #market-app .edit-modal-title {
      display: inline-flex !important;
      align-items: center !important;
      gap: 9px !important;
      margin: 0 0 18px !important;
      color: #ffffff !important;
      font-family: var(--font-body) !important;
      font-size: 1.12rem !important;
      font-weight: 900 !important;
      letter-spacing: 1.6px !important;
      line-height: 1.15 !important;
      text-transform: uppercase !important;
    }
    body.light-mode #market-app .edit-modal-title { color: #000000 !important; }
    #market-app .edit-modal-top-row {
      display: grid !important;
      grid-template-columns: 148px minmax(0, 1fr) !important;
      gap: 14px !important;
      align-items: start !important;
      width: 100% !important;
      margin-bottom: 10px !important;
    }
    #market-app .edit-modal-image-preview {
      width: 148px !important;
      height: 148px !important;
      overflow: hidden !important;
      border: 1px solid rgba(255,255,255,0.20) !important;
      border-radius: 12px !important;
      background: #000000 !important;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04) !important;
    }
    body.light-mode #market-app .edit-modal-image-preview {
      background: #ffffff !important;
      border-color: rgba(0,0,0,0.20) !important;
      box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03) !important;
    }
    #market-app .edit-modal-image-preview img {
      width: 100% !important;
      height: 100% !important;
      display: block !important;
      object-fit: cover !important;
      border-radius: 0 !important;
    }
    #market-app .edit-modal-primary-fields {
      display: flex !important;
      flex-direction: column !important;
      gap: 10px !important;
      min-width: 0 !important;
    }
    #market-app .product-edit:not(.hidden) .field-label,
    #market-app .product-edit:not(.hidden) .edit-modal-label {
      color: #ffffff !important;
      opacity: 0.88 !important;
    }
    body.light-mode #market-app .product-edit:not(.hidden) .field-label,
    body.light-mode #market-app .product-edit:not(.hidden) .edit-modal-label {
      color: #000000 !important;
      opacity: 0.74 !important;
    }
    #market-app .edit-modal-label {
      display: block !important;
      margin-bottom: 4px !important;
    }
    @media (max-width: 520px) {
      #market-app .product-edit:not(.hidden) { padding: 18px !important; }
      #market-app .edit-modal-top-row {
        grid-template-columns: 104px minmax(0, 1fr) !important;
        gap: 10px !important;
      }
      #market-app .edit-modal-image-preview {
        width: 104px !important;
        height: 104px !important;
        border-radius: 10px !important;
      }
      #market-app .edit-modal-title { font-size: 0.94rem !important; }
    }

/* Bloque de estilos 27: product-edit-modal-centering-fix */
/* La edición usa la misma jerarquía de capas y geometría del modal de creación. */
  #market-app .product-edit:not(.hidden) {
    position: fixed !important;
    display: block !important;
    top: 50% !important;
    left: 50% !important;
    z-index: 10051 !important;
    width: min(720px, calc(100vw - 32px)) !important;
    max-height: calc(100vh - 32px) !important;
    margin: 0 !important;
    padding: 22px !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    transform: translate(-50%, -50%) !important;
    border-radius: 16px !important;
  }
  body:has(#market-app .product-edit:not(.hidden)) {
    overflow: hidden !important;
  }
  body:has(#market-app .product-edit:not(.hidden))::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(0, 0, 0, 0.64);
    pointer-events: auto;
  }
  /* Se desactiva el fondo anterior para que no compita con la capa estándar. */
  #product-edit-modal-backdrop {
    display: none !important;
  }
  @media (max-width: 700px) {
    #market-app .product-edit:not(.hidden) {
      width: calc(100vw - 20px) !important;
      max-height: calc(100vh - 20px) !important;
      padding: 16px !important;
      border-radius: 14px !important;
    }
  }

/* Bloque de estilos 28: product-edit-modal-containing-block-fix */
/* La animación de la tarjeta aplicaba transform y convertía la tarjeta en el
     contenedor de position:fixed. Al editar, se desactiva únicamente ese contexto. */
  #market-app .product-item:has(.product-edit:not(.hidden)) {
    transform: none !important;
    animation: none !important;
  }

/* Bloque de estilos 29: product-edit-modal-z-elevation */
/* El editor permanece dentro de su tarjeta. Esta regla eleva esa tarjeta completa
     por encima de las tarjetas hermanas, la barra superior y el fondo atenuado. */
  #market-app .product-item:has(.product-edit:not(.hidden)) {
    position: relative !important;
    z-index: 10052 !important;
    isolation: isolate !important;
  }

  /* El formulario conserva una capa aún superior dentro de la tarjeta elevada. */
  #market-app .product-item:has(.product-edit:not(.hidden)) .product-edit:not(.hidden) {
    z-index: 10053 !important;
  }

  /* El velo se sitúa detrás del editor, pero por encima de todo el contenido normal. */
  body:has(#market-app .product-edit:not(.hidden))::after {
    z-index: 10050 !important;
    background: rgba(0, 0, 0, 0.68) !important;
  }

/* Bloque de estilos 30: product-edit-preview-theme-alignment */
/* La cabecera del editor replica exactamente las medidas y la alineación del modal de creación. */
  #market-app .product-edit:not(.hidden) .edit-modal-top-row {
    display: grid !important;
    grid-template-columns: 148px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: start !important;
    width: 100% !important;
    margin: 0 0 10px !important;
  }

  #market-app .product-edit:not(.hidden) .edit-modal-image-preview {
    width: 148px !important;
    height: 148px !important;
    min-width: 148px !important;
    min-height: 148px !important;
    box-sizing: border-box !important;
    align-self: start !important;
    overflow: hidden !important;
    border-radius: 12px !important;
  }

  #market-app .product-edit:not(.hidden) .edit-modal-image-preview img {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    display: block !important;
    object-fit: cover !important;
  }

  #market-app .product-edit:not(.hidden) .edit-modal-primary-fields {
    min-height: 148px !important;
    justify-content: flex-start !important;
  }

  /* El editor toma el degradado de Color 1 y Color 2 del producto que se está editando. */
  #market-app .product-edit:not(.hidden).edit-modal-product-colors {
    background: linear-gradient(135deg, var(--edit-product-color-1) 0%, var(--edit-product-color-2) 100%) !important;
    border-color: var(--edit-modal-contrast) !important;
    box-shadow: 0 18px 55px rgba(0,0,0,0.58), inset 0 0 0 1px color-mix(in srgb, var(--edit-modal-contrast) 22%, transparent) !important;
  }

  #market-app .product-edit:not(.hidden).edit-modal-product-colors .edit-modal-title,
  #market-app .product-edit:not(.hidden).edit-modal-product-colors .field-label,
  #market-app .product-edit:not(.hidden).edit-modal-product-colors .edit-modal-label,
  #market-app .product-edit:not(.hidden).edit-modal-product-colors .edit-modal-primary-fields > div > .field-label {
    color: var(--edit-modal-contrast) !important;
    opacity: 0.94 !important;
    text-shadow: 0 1px 2px color-mix(in srgb, var(--edit-modal-shadow) 48%, transparent) !important;
  }

  #market-app .product-edit:not(.hidden).edit-modal-product-colors .edit-modal-image-preview {
    background: color-mix(in srgb, var(--edit-product-color-1) 55%, #000000) !important;
    border-color: color-mix(in srgb, var(--edit-modal-contrast) 42%, transparent) !important;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--edit-modal-contrast) 12%, transparent) !important;
  }

  @media (max-width: 520px) {
    #market-app .product-edit:not(.hidden) .edit-modal-top-row {
      grid-template-columns: 104px minmax(0, 1fr) !important;
      gap: 10px !important;
    }
    #market-app .product-edit:not(.hidden) .edit-modal-image-preview {
      width: 104px !important;
      height: 104px !important;
      min-width: 104px !important;
      min-height: 104px !important;
      border-radius: 10px !important;
    }
    #market-app .product-edit:not(.hidden) .edit-modal-primary-fields {
      min-height: 104px !important;
    }
  }

/* Bloque de estilos 31: product-edit-final-theme-refinement */
/* Vista previa ampliada: la imagen ocupa la altura completa de Nombre, Descripción y Etiqueta. */
  #market-app .product-edit:not(.hidden) .edit-modal-top-row {
    grid-template-columns: 190px minmax(0, 1fr) !important;
    align-items: stretch !important;
  }

  #market-app .product-edit:not(.hidden) .edit-modal-image-preview {
    width: 190px !important;
    min-width: 190px !important;
    height: auto !important;
    min-height: 190px !important;
    align-self: stretch !important;
  }

  #market-app .product-edit:not(.hidden) .edit-modal-primary-fields {
    min-height: 190px !important;
  }

  /* El panel conserva los colores del producto en modo claro y oscuro, sin borde blanco externo. */
  #market-app .product-edit:not(.hidden).edit-modal-product-colors {
    background: linear-gradient(135deg, var(--edit-product-color-1) 0%, var(--edit-product-color-2) 100%) !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: 0 18px 55px rgba(0,0,0,0.58) !important;
  }

  /* Encabezados adaptativos: claros sobre fondos oscuros y oscuros sobre fondos claros. */
  #market-app .product-edit:not(.hidden).edit-modal-product-colors .edit-modal-title,
  #market-app .product-edit:not(.hidden).edit-modal-product-colors label,
  #market-app .product-edit:not(.hidden).edit-modal-product-colors .field-label,
  #market-app .product-edit:not(.hidden).edit-modal-product-colors .edit-modal-label {
    color: var(--edit-modal-contrast) !important;
    opacity: 1 !important;
    text-shadow: 0 1px 2px color-mix(in srgb, var(--edit-modal-shadow) 52%, transparent) !important;
  }

  @media (max-width: 520px) {
    #market-app .product-edit:not(.hidden) .edit-modal-top-row {
      grid-template-columns: 124px minmax(0, 1fr) !important;
      gap: 10px !important;
    }
    #market-app .product-edit:not(.hidden) .edit-modal-image-preview {
      width: 124px !important;
      min-width: 124px !important;
      min-height: 124px !important;
    }
    #market-app .product-edit:not(.hidden) .edit-modal-primary-fields {
      min-height: 124px !important;
    }
  }

/* Bloque de estilos 32: product-edit-theme-both-modes-fix */
/* Igual prioridad frente a las reglas de modo claro y oscuro: el editor siempre
     toma el degradado configurado para el producto o componente en edición. */
  body.light-mode #market-app .product-edit:not(.hidden).edit-modal-product-colors,
  body:not(.light-mode) #market-app .product-edit:not(.hidden).edit-modal-product-colors {
    background: linear-gradient(135deg, var(--edit-product-color-1) 0%, var(--edit-product-color-2) 100%) !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: 0 18px 55px rgba(0,0,0,0.58) !important;
  }

  body.light-mode #market-app .product-edit:not(.hidden).edit-modal-product-colors .edit-modal-title,
  body.light-mode #market-app .product-edit:not(.hidden).edit-modal-product-colors label,
  body.light-mode #market-app .product-edit:not(.hidden).edit-modal-product-colors .field-label,
  body.light-mode #market-app .product-edit:not(.hidden).edit-modal-product-colors .edit-modal-label,
  body:not(.light-mode) #market-app .product-edit:not(.hidden).edit-modal-product-colors .edit-modal-title,
  body:not(.light-mode) #market-app .product-edit:not(.hidden).edit-modal-product-colors label,
  body:not(.light-mode) #market-app .product-edit:not(.hidden).edit-modal-product-colors .field-label,
  body:not(.light-mode) #market-app .product-edit:not(.hidden).edit-modal-product-colors .edit-modal-label {
    color: var(--edit-modal-contrast) !important;
    opacity: 1 !important;
  }

/* Bloque de estilos 33: product-edit-title-icons-style */
#market-app .edit-modal-title {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
  }
  #market-app .edit-modal-title-icon {
    width: 1.14em !important;
    height: 1.14em !important;
    flex: 0 0 auto !important;
    color: currentColor !important;
  }

/* Bloque de estilos 34: right-cashier-panel-redesign */
/* El panel de cajero ocupa exclusivamente la mitad superior del lateral derecho. */
  #right-sidebar .cashier-right-layout {
    height: 50%;
    min-height: 0;
    padding: 14px 13px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  #right-sidebar .cashier-right-card {
    background: #000000;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 12px;
    color: #ffffff;
    box-sizing: border-box;
  }
  #right-sidebar .cashier-active-card { padding: 14px; flex: 0 0 auto; }
  #right-sidebar .cashier-active-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-body);
    font-size: 0.79rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .8px;
  }
  #right-sidebar .cashier-active-icon { width: 18px; height: 18px; flex: 0 0 auto; color: currentColor; }
  #right-sidebar .cashier-active-divider { height: 1px; background: rgba(255,255,255,0.14); margin: 13px -14px; }
  #right-sidebar .cashier-active-caption {
    color: rgba(255,255,255,0.48);
    font-family: var(--font-body);
    font-size: 0.50rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
  }
  #right-sidebar .cashier-active-name {
    min-height: 16px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #right-sidebar .cashier-active-card[data-has-active="false"] .cashier-active-name { color: rgba(255,255,255,0.45); }
  #right-sidebar .cashier-change-btn {
    width: 100%; height: 34px; border: 0; border-radius: 8px; cursor: pointer;
    background: #ffffff; color: #000000; font-family: var(--font-body); font-size: .61rem;
    font-weight: 900; letter-spacing: .8px; transition: transform .16s ease, background .16s ease;
  }
  #right-sidebar .cashier-change-btn:hover { background: #8CFF00; transform: translateY(-1px); }
  #right-sidebar .cashier-registry-card { flex: 1 1 auto; min-height: 0; padding: 14px; display: flex; flex-direction: column; overflow: hidden; }
  #right-sidebar .cashier-registry-heading {
    font-family: var(--font-body); color: #ffffff; font-size: .57rem; font-weight: 900;
    letter-spacing: .95px; margin-bottom: 10px; flex: 0 0 auto;
  }
  #right-sidebar .cashier-timeline { min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 1px 0 4px; }
  #right-sidebar .cashier-timeline-item { position: relative; display: flex; align-items: center; min-height: 36px; }
  #right-sidebar .cashier-timeline-item::before { content: ''; position: absolute; left: 5px; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.17); }
  #right-sidebar .cashier-timeline-item:first-child::before { top: 50%; }
  #right-sidebar .cashier-timeline-item:last-child::before { bottom: 50%; }
  #right-sidebar .cashier-timeline-select {
    position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1;
    border: 0; background: transparent; color: inherit; padding: 5px 3px 5px 0; cursor: pointer; text-align: left;
  }
  #right-sidebar .cashier-timeline-dot { width: 11px; height: 11px; border-radius: 999px; background: #5f6265; border: 2px solid #000; box-sizing: border-box; flex: 0 0 auto; }
  #right-sidebar .cashier-timeline-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  #right-sidebar .cashier-timeline-index { color: rgba(255,255,255,.52); font-family: var(--font-body); font-size: .48rem; font-weight: 800; letter-spacing: .75px; }
  #right-sidebar .cashier-timeline-name { color: #ffffff; font-family: var(--font-body); font-size: .66rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #right-sidebar .cashier-timeline-item.is-active .cashier-timeline-dot { background: #8CFF00; }
  #right-sidebar .cashier-timeline-item.is-active .cashier-timeline-index,
  #right-sidebar .cashier-timeline-item.is-active .cashier-timeline-name { color: #8CFF00; }
  #right-sidebar .cashier-remove-btn { opacity: 0; border: 0; background: transparent; color: rgba(255,255,255,.58); cursor: pointer; font: 700 18px/1 sans-serif; padding: 4px 0 4px 4px; transition: opacity .16s ease, color .16s ease; }
  #right-sidebar .cashier-timeline-item:hover .cashier-remove-btn { opacity: 1; }
  #right-sidebar .cashier-remove-btn:hover { color: #ff5252; }
  #right-sidebar .cashier-empty-state { color: rgba(255,255,255,.42); text-align: center; font-family: var(--font-body); font-size: .51rem; letter-spacing: .7px; padding: 18px 0; }
  #right-sidebar .cashier-add-row { display: flex; gap: 6px; padding-top: 10px; margin-top: 6px; border-top: 1px solid rgba(255,255,255,.12); flex: 0 0 auto; }
  #right-sidebar .cashier-add-input { min-width: 0; flex: 1; height: 28px; padding: 0 8px; border-radius: 7px; border: 1px solid rgba(255,255,255,.18); background: #000; color: #fff; font-family: var(--font-body); font-size: .56rem; outline: none; }
  #right-sidebar .cashier-add-input:focus { border-color: #8CFF00; }
  #right-sidebar .cashier-add-input::placeholder { color: rgba(255,255,255,.38); }
  #right-sidebar .cashier-add-btn { width: 30px; height: 28px; border: 0; border-radius: 7px; background: #8CFF00; color: #000; cursor: pointer; font: 900 18px/1 sans-serif; }
  #right-sidebar .cashier-registry-highlight { animation: cashierRegistryFocus 1.1s ease both; }
  @keyframes cashierRegistryFocus { 0%,100%{border-color:rgba(255,255,255,.16)} 35%,70%{border-color:#8CFF00} }

  body.light-mode #right-sidebar .cashier-right-card { background: #ffffff; border-color: rgba(0,0,0,.15); color: #000000; box-shadow: 0 2px 8px rgba(15,23,42,.07); }
  body.light-mode #right-sidebar .cashier-active-divider,
  body.light-mode #right-sidebar .cashier-add-row { background-color: rgba(0,0,0,.12); border-color: rgba(0,0,0,.12); }
  body.light-mode #right-sidebar .cashier-active-caption,
  body.light-mode #right-sidebar .cashier-timeline-index { color: rgba(0,0,0,.48); }
  body.light-mode #right-sidebar .cashier-active-name,
  body.light-mode #right-sidebar .cashier-registry-heading,
  body.light-mode #right-sidebar .cashier-timeline-name { color: #000000; }
  body.light-mode #right-sidebar .cashier-active-card[data-has-active="false"] .cashier-active-name,
  body.light-mode #right-sidebar .cashier-empty-state { color: rgba(0,0,0,.44); }
  body.light-mode #right-sidebar .cashier-timeline-item::before { background: rgba(0,0,0,.16); }
  body.light-mode #right-sidebar .cashier-timeline-dot { background: #868686; border-color: #ffffff; }
  body.light-mode #right-sidebar .cashier-timeline-item.is-active .cashier-timeline-index,
  body.light-mode #right-sidebar .cashier-timeline-item.is-active .cashier-timeline-name { color: #247000; }
  body.light-mode #right-sidebar .cashier-add-input { border-color: rgba(0,0,0,.17); background: #ffffff; color: #000000; }
  body.light-mode #right-sidebar .cashier-add-input::placeholder { color: rgba(0,0,0,.38); }
  body.light-mode #right-sidebar .cashier-remove-btn { color: rgba(0,0,0,.48); }
  body.light-mode #right-sidebar .cashier-change-btn { background: #000000; color: #ffffff; }

/* Bloque de estilos 35: invoice-side-clients-panel */
/* Herramientas exclusivas de Facturas: los laterales se ocultan en el resto de módulos. */
  #right-sidebar { display: none !important; }
  body.invoice-tools-visible #right-sidebar { display: block !important; }
  @media (min-width:1181px) {
    body:not(.invoice-tools-visible) .app-container { margin-right: 0 !important; width: 100% !important; }
  }
  #right-sidebar .invoice-side-tools { height: 100%; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
  #right-sidebar .cashier-right-layout { height: auto !important; flex: 0 0 46%; min-height: 0; }
  #right-sidebar .clients-side-card { margin: 0 13px 14px; min-height: 0; flex: 1 1 auto; padding: 13px; display: flex; flex-direction: column; background: #000; color:#fff; border:1px solid rgba(255,255,255,.16); border-radius:12px; box-sizing:border-box; overflow:hidden; }
  #right-sidebar .clients-side-heading { display:flex; align-items:center; gap:9px; font-family:var(--font-body); font-size:.78rem; font-weight:900; letter-spacing:.85px; flex:0 0 auto; }
  #right-sidebar .clients-side-icon { width:18px; height:18px; flex:0 0 auto; color:currentColor; }
  #right-sidebar .clients-side-divider { height:1px; background:rgba(255,255,255,.14); margin:12px -13px; flex:0 0 auto; }
  #right-sidebar .clients-search-wrap { flex:0 0 auto; margin-bottom:8px; }
  #right-sidebar .clients-side-search { box-sizing:border-box; width:100%; height:29px; padding:0 9px; border-radius:7px; border:1px solid rgba(255,255,255,.18); background:#000; color:#fff; outline:none; font-family:var(--font-body); font-size:.54rem; letter-spacing:.5px; }
  #right-sidebar .clients-side-search:focus { border-color:#8CFF00; }
  #right-sidebar .clients-side-search::placeholder { color:rgba(255,255,255,.4); }
  #right-sidebar .clients-side-list { min-height:0; flex:1 1 auto; overflow-y:auto; padding-right:1px; }
  #right-sidebar .clients-side-item { display:flex; align-items:center; gap:7px; padding:6px 0; border-bottom:1px solid rgba(255,255,255,.10); }
  #right-sidebar .clients-side-copy { min-width:0; flex:1; }
  #right-sidebar .clients-side-name { color:#fff; font-family:var(--font-body); font-size:.64rem; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  #right-sidebar .clients-side-detail { margin-top:3px; color:rgba(255,255,255,.43); font-family:var(--font-body); font-size:.44rem; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  #right-sidebar .clients-side-actions { display:flex; align-items:center; gap:2px; flex:0 0 auto; }
  #right-sidebar .client-mini-action { width:23px; height:23px; display:grid; place-items:center; border:0; background:transparent; color:rgba(255,255,255,.65); border-radius:6px; cursor:pointer; padding:0; }
  #right-sidebar .client-mini-action svg { width:13px; height:13px; }
  #right-sidebar .client-edit-action:hover { color:#8CFF00; background:rgba(140,255,0,.10); }
  #right-sidebar .client-delete-action { font:700 19px/1 sans-serif; }
  #right-sidebar .client-delete-action:hover { color:#ff5252; background:rgba(255,82,82,.12); }
  #right-sidebar .clients-empty-state { color:rgba(255,255,255,.42); padding:14px 0; text-align:center; font-family:var(--font-body); font-size:.49rem; letter-spacing:.6px; }
  #right-sidebar .clients-register-trigger { width:100%; height:31px; margin-top:10px; border:0; border-radius:8px; background:#fff; color:#000; font-family:var(--font-body); font-size:.57rem; font-weight:900; letter-spacing:.7px; cursor:pointer; flex:0 0 auto; }
  #right-sidebar .clients-register-trigger:hover { background:#8CFF00; }
  #right-sidebar .client-registration-form { margin-top:9px; padding-top:9px; border-top:1px solid rgba(255,255,255,.13); flex:0 0 auto; }
  #right-sidebar .client-registration-form.hidden { display:none; }
  #right-sidebar .client-registration-form input { box-sizing:border-box; width:100%; height:28px; padding:0 7px; margin-bottom:6px; border:1px solid rgba(255,255,255,.18); border-radius:7px; background:#000; color:#fff; outline:none; font-family:var(--font-body); font-size:.52rem; }
  #right-sidebar .client-registration-form input:focus { border-color:#8CFF00; }
  #right-sidebar .client-registration-form input::placeholder { color:rgba(255,255,255,.4); }
  #right-sidebar .client-registration-row { display:flex; gap:5px; }
  #right-sidebar .client-registration-row input { min-width:0; flex:1; }
  #right-sidebar .client-registration-actions { display:flex; justify-content:flex-end; gap:6px; margin-top:1px; }
  #right-sidebar .client-registration-actions button { height:27px; border:0; border-radius:7px; padding:0 9px; font-family:var(--font-body); font-size:.49rem; font-weight:900; letter-spacing:.55px; cursor:pointer; }
  #right-sidebar .client-registration-cancel { background:transparent; color:#fff; border:1px solid rgba(255,255,255,.22) !important; }
  #right-sidebar .client-registration-save { background:#8CFF00; color:#000; }
  #right-sidebar .client-edit-title { color:#8CFF00; font-family:var(--font-body); font-size:.53rem; font-weight:900; letter-spacing:.75px; margin-bottom:8px; }
  body.light-mode #right-sidebar .clients-side-card { background:#fff; color:#000; border-color:rgba(0,0,0,.15); box-shadow:0 2px 8px rgba(15,23,42,.07); }
  body.light-mode #right-sidebar .clients-side-divider { background:rgba(0,0,0,.12); }
  body.light-mode #right-sidebar .clients-side-search,
  body.light-mode #right-sidebar .client-registration-form input { background:#fff; color:#000; border-color:rgba(0,0,0,.18); }
  body.light-mode #right-sidebar .clients-side-search::placeholder,
  body.light-mode #right-sidebar .client-registration-form input::placeholder,
  body.light-mode #right-sidebar .clients-side-detail,
  body.light-mode #right-sidebar .clients-empty-state { color:rgba(0,0,0,.42); }
  body.light-mode #right-sidebar .clients-side-item { border-color:rgba(0,0,0,.10); }
  body.light-mode #right-sidebar .clients-side-name { color:#000; }
  body.light-mode #right-sidebar .client-mini-action { color:rgba(0,0,0,.60); }
  body.light-mode #right-sidebar .clients-register-trigger { background:#000; color:#fff; }
  body.light-mode #right-sidebar .client-registration-form { border-color:rgba(0,0,0,.12); }
  body.light-mode #right-sidebar .client-registration-cancel { color:#000; border-color:rgba(0,0,0,.22) !important; }

/* Bloque de estilos 36: empty-right-sidebar-outside-invoices */
/* El lateral derecho permanece como superficie vacía en todos los módulos. */
  #right-sidebar { display: block !important; }
  body:not(.invoice-tools-visible) #right-sidebar .invoice-side-tools { display: none !important; }
  body.invoice-tools-visible #right-sidebar .invoice-side-tools { display: flex !important; }

  @media (min-width:1181px) {
    body:not(.invoice-tools-visible) .app-container {
      margin-right: 260px !important;
      width: auto !important;
    }
  }
  @media (max-width:1180px) {
    #right-sidebar { display: none !important; }
  }

/* Bloque de estilos 37: cashier-client-sidebar-controls-refinement */
/* El lateral mantiene desplazamiento con la rueda, sin barra de scroll visible. */
  #right-sidebar,
  #right-sidebar .cashier-timeline,
  #right-sidebar .clients-side-list {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  #right-sidebar::-webkit-scrollbar,
  #right-sidebar .cashier-timeline::-webkit-scrollbar,
  #right-sidebar .clients-side-list::-webkit-scrollbar { width: 0; height: 0; display: none; }

  /* Se concede más espacio al registro de cajeros y se compacta el bloque de clientes. */
  #right-sidebar .cashier-right-layout { flex: 0 0 54% !important; }
  #right-sidebar .clients-side-card { min-height: 0; }
  #right-sidebar .cashier-search-wrap { flex: 0 0 auto; margin: 0 0 7px; }
  #right-sidebar .cashier-search-input {
    width: 100%; height: 29px; box-sizing: border-box; padding: 0 8px;
    background: #000; color: #fff; border: 1px solid rgba(255,255,255,.18);
    border-radius: 6px; outline: none; font-family: var(--font-body); font-size: .53rem; letter-spacing: .45px;
  }
  #right-sidebar .cashier-search-input:focus { border-color: #8CFF00; }
  #right-sidebar .cashier-search-input::placeholder { color: rgba(255,255,255,.40); }

  /* Todas las acciones usan botones cuadrados con esquinas suavemente redondeadas. */
  #right-sidebar .cashier-add-btn {
    width: 30px; min-width: 30px; height: 30px; border-radius: 6px;
    display: grid; place-items: center; padding: 0; border: 1px solid #8CFF00;
  }
  #right-sidebar .cashier-remove-btn,
  #right-sidebar .client-mini-action {
    opacity: 1; width: 25px; height: 25px; min-width: 25px; padding: 0;
    display: grid; place-items: center; border-radius: 6px; border: 1px solid rgba(255,255,255,.24);
    background: #000; color: rgba(255,255,255,.78); box-sizing: border-box;
  }
  #right-sidebar .cashier-remove-btn:hover { color:#ff5252; border-color:#ff5252; background:rgba(255,82,82,.08); }
  #right-sidebar .client-edit-action:hover { color:#8CFF00; border-color:#8CFF00; background:rgba(140,255,0,.08); }
  #right-sidebar .client-delete-action:hover { color:#ff5252; border-color:#ff5252; background:rgba(255,82,82,.08); }
  #right-sidebar .cashier-timeline-item:hover .cashier-remove-btn { opacity: 1; }

  body.light-mode #right-sidebar .cashier-search-input { background:#fff; color:#000; border-color:rgba(0,0,0,.18); }
  body.light-mode #right-sidebar .cashier-search-input::placeholder { color:rgba(0,0,0,.38); }
  body.light-mode #right-sidebar .cashier-remove-btn,
  body.light-mode #right-sidebar .client-mini-action { background:#fff; color:rgba(0,0,0,.66); border-color:rgba(0,0,0,.20); }

/* Bloque de estilos 38: square-invoice-sidebar-actions-priority */
/* Excepción localizada al diseño global de botones-píldora. */
  #market-app #right-sidebar .cashier-add-btn {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
  }
  #market-app #right-sidebar .cashier-remove-btn,
  #market-app #right-sidebar .client-mini-action {
    width: 25px !important;
    min-width: 25px !important;
    height: 25px !important;
    min-height: 25px !important;
    padding: 0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
  }
  #market-app #right-sidebar .cashier-remove-btn svg,
  #market-app #right-sidebar .client-mini-action svg { width: 13px; height: 13px; }

/* Bloque de estilos 39: cashier-registry-space-final */
/* Más espacio para buscar y recorrer cajeros; el bloque de clientes queda compacto. */
  #right-sidebar .cashier-right-layout { flex: 0 0 60% !important; }

/* Bloque de estilos 40: cashier-registry-height-balance-final */
/* El registro de cajeros recibe espacio adicional para la búsqueda y el listado. */
  #right-sidebar .cashier-right-layout { flex: 0 0 63% !important; }

/* Bloque de estilos 41: products-side-categories-labels */
/* Herramientas de Productos: tarjetas laterales compactas para categorías y etiquetas. */
  #right-sidebar .product-side-tools { display:none; height:100%; min-height:0; flex-direction:column; gap:10px; padding:13px; box-sizing:border-box; overflow:hidden; }
  body.products-tools-visible #right-sidebar .product-side-tools { display:flex !important; }
  body.products-tools-visible #right-sidebar .invoice-side-tools { display:none !important; }

  #right-sidebar .product-side-tools .panel.expandable-panel {
    width:auto !important; margin:0 !important; min-width:0; flex:1 1 0; min-height:0;
    display:flex; flex-direction:column; overflow:hidden; background:#000; color:#fff;
    border:1px solid rgba(255,255,255,.16); border-radius:12px; box-sizing:border-box;
  }
  #right-sidebar .product-side-tools .panel.expandable-panel .expand-icon { display:none !important; }
  #right-sidebar .product-side-tools .panel-header { min-height:42px; padding:0 12px; display:flex; align-items:center; flex:0 0 auto; border-bottom:1px solid rgba(255,255,255,.13); }
  #right-sidebar .product-side-tools .panel-header svg { color:currentColor; stroke:currentColor; flex:0 0 auto; }
  #right-sidebar .product-side-tools .panel-title { font-family:var(--font-body); font-size:.72rem; font-weight:900; letter-spacing:.8px; color:currentColor; }
  #right-sidebar .product-side-tools .panel-body { display:block !important; min-height:0; flex:1 1 auto; padding:11px 12px 12px; overflow-y:auto !important; overflow-x:hidden; }
  #right-sidebar .product-side-tools .panel-body::-webkit-scrollbar { width:0; height:0; display:none; }
  #right-sidebar .product-side-tools .panel-body { scrollbar-width:none; -ms-overflow-style:none; }

  #right-sidebar .product-side-tools #dom-form,
  #right-sidebar .product-side-tools #cat-form { margin:8px 0 10px !important; padding:10px !important; border-radius:8px !important; background:#000 !important; border-color:rgba(255,255,255,.16) !important; }
  #right-sidebar .product-side-tools #dom-form > div:first-child,
  #right-sidebar .product-side-tools #cat-form > div:first-child { display:flex !important; flex-direction:column !important; align-items:stretch !important; gap:7px !important; }
  #right-sidebar .product-side-tools #dom-form > div:first-child > div,
  #right-sidebar .product-side-tools #cat-form > div:first-child > div { width:100% !important; min-width:0 !important; flex:0 0 auto !important; }
  #right-sidebar .product-side-tools #dom-form label,
  #right-sidebar .product-side-tools #cat-form label { font-size:.49rem !important; letter-spacing:.8px !important; margin-bottom:4px !important; }
  #right-sidebar .product-side-tools #dom-form .field-input,
  #right-sidebar .product-side-tools #cat-form .field-input { height:29px; font-size:.56rem; padding:0 8px; }
  #right-sidebar .product-side-tools #dom-form input[type="color"],
  #right-sidebar .product-side-tools #cat-form input[type="color"] { width:30px !important; height:29px !important; }
  #right-sidebar .product-side-tools #dom-form [id$="-cancel"],
  #right-sidebar .product-side-tools #cat-form [id$="-cancel"],
  #right-sidebar .product-side-tools #dom-form [id$="-save"],
  #right-sidebar .product-side-tools #cat-form [id$="-save"] { min-height:28px !important; height:28px; padding:0 9px !important; border-radius:6px !important; font-size:.49rem; box-shadow:none !important; }
  #right-sidebar .product-side-tools #dom-toggle-form,
  #right-sidebar .product-side-tools #cat-toggle-form { width:27px; min-width:27px; height:27px; min-height:27px !important; padding:0 !important; border-radius:6px !important; box-shadow:none !important; overflow:hidden; font-size:0 !important; }
  #right-sidebar .product-side-tools #dom-toggle-form::after,
  #right-sidebar .product-side-tools #cat-toggle-form::after { content:'+'; font:900 18px/1 sans-serif; }

  #right-sidebar .product-side-tools #dominios-list,
  #right-sidebar .product-side-tools #categorias-list { display:flex !important; flex-direction:column !important; flex-wrap:nowrap !important; gap:0 !important; min-height:0 !important; }
  #right-sidebar .product-side-tools #dominios-list > div,
  #right-sidebar .product-side-tools #categorias-list > div { width:100%; min-width:0; box-sizing:border-box; display:flex !important; align-items:center; gap:5px; padding:5px 0; border-bottom:1px solid rgba(255,255,255,.10); }
  #right-sidebar .product-side-tools #dominios-list > div > div:first-child { width:100%; display:flex !important; align-items:center; min-width:0; box-sizing:border-box; }
  #right-sidebar .product-side-tools #dominios-list .dom-edit-btn,
  #right-sidebar .product-side-tools #dominios-list .dom-delete-btn,
  #right-sidebar .product-side-tools #categorias-list .cat-edit-btn,
  #right-sidebar .product-side-tools #categorias-list .cat-delete-btn {
    display:grid !important; place-items:center; width:23px !important; min-width:23px !important; height:23px !important; min-height:23px !important;
    padding:0 !important; border-radius:6px !important; border:1px solid rgba(255,255,255,.24) !important; background:#000 !important;
    color:rgba(255,255,255,.78) !important; box-shadow:none !important; flex:0 0 auto;
  }
  #right-sidebar .product-side-tools .dom-edit-btn:hover,
  #right-sidebar .product-side-tools .cat-edit-btn:hover { border-color:#8CFF00 !important; color:#8CFF00 !important; }
  #right-sidebar .product-side-tools .dom-delete-btn:hover,
  #right-sidebar .product-side-tools .cat-delete-btn:hover { border-color:#ff5252 !important; color:#ff5252 !important; }
  #right-sidebar .product-side-tools .dom-delete-btn,
  #right-sidebar .product-side-tools .cat-delete-btn { font:700 18px/1 sans-serif; cursor:pointer; }
  #right-sidebar .product-side-tools #dominios-list .dom-edit-btn svg,
  #right-sidebar .product-side-tools #categorias-list .cat-edit-btn svg { width:11px; height:11px; }
  #right-sidebar .product-side-tools #dominios-list .dom-edit-btn + .dom-delete-btn { margin-left:4px; }
  #right-sidebar .product-side-tools .cat-filter-btn { min-width:0; flex:1; justify-content:flex-start; padding:5px 8px !important; }
  #right-sidebar .product-side-tools .cat-filter-btn span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  #right-sidebar .product-side-tools #dom-inline-edit,
  #right-sidebar .product-side-tools #cat-inline-edit { margin-top:9px !important; padding:10px !important; box-sizing:border-box; }
  #right-sidebar .product-side-tools #dom-inline-edit { display:block !important; }
  #right-sidebar .product-side-tools #dom-inline-edit > div,
  #right-sidebar .product-side-tools #cat-inline-edit > div { display:flex !important; flex-direction:column !important; align-items:stretch !important; gap:7px !important; }
  #right-sidebar .product-side-tools #dom-inline-edit [style*="min-width"],
  #right-sidebar .product-side-tools #cat-inline-edit [style*="min-width"] { min-width:0 !important; width:100% !important; }

  body.light-mode #right-sidebar .product-side-tools .panel.expandable-panel { background:#fff; color:#000; border-color:rgba(0,0,0,.15); box-shadow:0 2px 8px rgba(15,23,42,.07); }
  body.light-mode #right-sidebar .product-side-tools .panel-header { border-color:rgba(0,0,0,.12); }
  body.light-mode #right-sidebar .product-side-tools #dom-form,
  body.light-mode #right-sidebar .product-side-tools #cat-form { background:#fff !important; border-color:rgba(0,0,0,.15) !important; }
  body.light-mode #right-sidebar .product-side-tools #dominios-list > div,
  body.light-mode #right-sidebar .product-side-tools #categorias-list > div { border-color:rgba(0,0,0,.10); }
  body.light-mode #right-sidebar .product-side-tools #dominios-list .dom-edit-btn,
  body.light-mode #right-sidebar .product-side-tools #dominios-list .dom-delete-btn,
  body.light-mode #right-sidebar .product-side-tools #categorias-list .cat-edit-btn,
  body.light-mode #right-sidebar .product-side-tools #categorias-list .cat-delete-btn { background:#fff !important; color:rgba(0,0,0,.68) !important; border-color:rgba(0,0,0,.20) !important; }

/* Bloque de estilos 42: cashier-list-clean-light-input */
/* Lista de cajeros: sin cápsulas ni superficies de fondo en cada registro. */
  #market-app #right-sidebar .cashier-timeline-item,
  #market-app #right-sidebar .cashier-timeline-select {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  #market-app #right-sidebar .cashier-timeline-select {
    border: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 5px 3px 5px 0 !important;
  }
  #market-app #right-sidebar .cashier-timeline-item:hover .cashier-timeline-select,
  #market-app #right-sidebar .cashier-timeline-item.is-active .cashier-timeline-select {
    background: transparent !important;
  }

  /* El área de alta no añade un bloque gris detrás del campo. */
  body.light-mode #market-app #right-sidebar .cashier-add-row {
    background: transparent !important;
    border-top-color: rgba(0,0,0,.14) !important;
  }
  body.light-mode #market-app #right-sidebar .cashier-add-input {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid rgba(0,0,0,.28) !important;
    border-radius: 7px !important;
    box-shadow: none !important;
  }
  body.light-mode #market-app #right-sidebar .cashier-add-input:focus {
    background: #ffffff !important;
    border-color: #000000 !important;
    outline: none !important;
  }

/* Bloque de estilos 43: cashier-continuous-timeline-connector */
/* La conexión pertenece a cada fila: así cubre toda la altura desplazable de la lista. */
  #right-sidebar .cashier-timeline {
    position: relative;
    isolation: isolate;
  }

  /* Se elimina la línea única del contenedor, limitada al área visible al desplazarse. */
  #right-sidebar .cashier-timeline::before {
    display: none !important;
  }

  /* Cada cajero dibuja su tramo para formar una línea continua entre todos los puntos. */
  #right-sidebar .cashier-timeline-item {
    position: relative !important;
    z-index: 1;
  }
  #right-sidebar .cashier-timeline-item::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    z-index: 0;
    left: 5px !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 1px !important;
    background: rgba(255,255,255,.17) !important;
    pointer-events: none;
  }

  /* La línea comienza en el centro del primer punto y termina en el del último. */
  #right-sidebar .cashier-timeline-item:first-child::before {
    top: 50% !important;
  }
  #right-sidebar .cashier-timeline-item:last-child::before {
    bottom: 50% !important;
  }
  #right-sidebar .cashier-timeline-item:only-child::before {
    display: none !important;
  }

  /* El contenido y el punto se mantienen por encima de la línea. */
  #right-sidebar .cashier-timeline-select {
    position: relative;
    z-index: 1;
  }
  #right-sidebar .cashier-timeline-dot {
    position: relative;
    z-index: 2;
  }

  /* Adaptación de contraste para el modo claro. */
  body.light-mode #right-sidebar .cashier-timeline-item::before {
    background: rgba(0,0,0,.16) !important;
  }

/* Bloque de estilos 44: category-label-side-panels-open */
/* Los dos paneles laterales permanecen abiertos de forma independiente. */
  #right-sidebar .product-side-tools #panel-categorias,
  #right-sidebar .product-side-tools #panel-etiquetas {
    max-height: none !important;
  }
  #right-sidebar .product-side-tools #panel-categorias .panel-body,
  #right-sidebar .product-side-tools #panel-etiquetas .panel-body {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
  }
  #right-sidebar .product-side-tools #panel-categorias .panel-header,
  #right-sidebar .product-side-tools #panel-etiquetas .panel-header {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap;
  }
  #right-sidebar .product-side-tools #panel-categorias .panel-header > svg,
  #right-sidebar .product-side-tools #panel-etiquetas .panel-header > svg {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    flex: 0 0 auto;
  }
  #right-sidebar .product-side-tools #panel-categorias .panel-title,
  #right-sidebar .product-side-tools #panel-etiquetas .panel-title {
    margin: 0 !important;
    line-height: 1 !important;
  }

  /* Debajo del título empieza directamente la lista; el botón de creación permanece disponible. */
  #right-sidebar .product-side-tools #panel-categorias .panel-body > div:first-child,
  #right-sidebar .product-side-tools #panel-etiquetas .panel-body > div:first-child {
    justify-content: flex-end !important;
    min-height: 27px;
    margin: 0 0 6px !important;
  }
  #right-sidebar .product-side-tools #panel-categorias .panel-body > div:first-child > div:first-child,
  #right-sidebar .product-side-tools #panel-etiquetas .panel-body > div:first-child > div:first-child {
    display: none !important;
  }

  /* Cada registro conserva las acciones a la derecha; editar abre su formulario bajo la lista del mismo panel. */
  #right-sidebar .product-side-tools #dominios-list > div,
  #right-sidebar .product-side-tools #categorias-list > div {
    position: relative;
    align-items: center !important;
  }
  #right-sidebar .product-side-tools #dominios-list .dom-edit-btn,
  #right-sidebar .product-side-tools #dominios-list .dom-delete-btn,
  #right-sidebar .product-side-tools #categorias-list .cat-edit-btn,
  #right-sidebar .product-side-tools #categorias-list .cat-delete-btn {
    opacity: 1 !important;
    display: grid !important;
  }
  #right-sidebar .product-side-tools #dom-inline-edit,
  #right-sidebar .product-side-tools #cat-inline-edit {
    position: relative;
    z-index: 3;
    width: 100%;
    box-sizing: border-box;
  }

/* Bloque de estilos 45: currencies-side-panel-products */
/* Monedas ocupa la parte superior del lateral de Productos. */
  #right-sidebar .product-side-tools { gap:8px !important; }
  #right-sidebar .product-side-tools #panel-monedas {
    order:-1; flex:0 0 216px !important; min-height:216px; width:auto !important; margin:0 !important;
    display:flex !important; flex-direction:column; overflow:hidden; background:#000; color:#fff;
    border:1px solid rgba(255,255,255,.16); border-radius:12px; box-sizing:border-box;
  }
  #right-sidebar .product-side-tools #panel-categorias { flex:0 0 30% !important; min-height:164px; }
  #right-sidebar .product-side-tools #panel-etiquetas { flex:1 1 auto !important; min-height:0; }
  #right-sidebar .product-side-tools #panel-monedas .expand-icon { display:none !important; }
  #right-sidebar .product-side-tools #panel-monedas .panel-header {
    min-height:42px; padding:0 12px; display:flex !important; align-items:center; gap:8px;
    border-bottom:1px solid rgba(255,255,255,.13); flex:0 0 auto; cursor:default;
  }
  #right-sidebar .product-side-tools #panel-monedas .panel-header > svg { width:16px; height:16px; display:block; flex:0 0 auto; }
  #right-sidebar .product-side-tools #panel-monedas .panel-title { margin:0; line-height:1; font-family:var(--font-body); font-size:.72rem; font-weight:900; letter-spacing:.8px; }
  #right-sidebar .product-side-tools #panel-monedas .moneda-header-create {
    margin-left:auto; display:grid; place-items:center; width:25px; height:25px; min-width:25px; min-height:25px; padding:0 !important;
    border:1px solid rgba(255,255,255,.28) !important; border-radius:6px !important; background:#000 !important; color:#8CFF00 !important;
    box-shadow:none !important; font:900 18px/1 sans-serif; cursor:pointer;
  }
  #right-sidebar .product-side-tools #panel-monedas .moneda-header-create:hover { background:#8CFF00 !important; color:#000 !important; border-color:#8CFF00 !important; }
  #right-sidebar .product-side-tools #panel-monedas .panel-body { display:block !important; flex:1 1 auto; min-height:0; padding:9px 11px 10px; overflow-y:auto !important; overflow-x:hidden; }
  #right-sidebar .product-side-tools #panel-monedas .panel-body::-webkit-scrollbar { width:0; height:0; display:none; }
  #right-sidebar .product-side-tools #panel-monedas .panel-body { scrollbar-width:none; -ms-overflow-style:none; }
  #right-sidebar .product-side-tools #panel-monedas .panel-body > div:first-child { display:none !important; }

  /* Formulario compacto sin fondos grises. */
  #right-sidebar .product-side-tools #moneda-form { margin:0 0 8px !important; padding:9px !important; background:#000 !important; border:1px solid rgba(255,255,255,.16) !important; border-radius:8px !important; }
  #right-sidebar .product-side-tools #moneda-form > div:first-child { gap:6px !important; }
  #right-sidebar .product-side-tools #moneda-form .field-label { font-size:.49rem !important; letter-spacing:.7px !important; margin-bottom:3px !important; }
  #right-sidebar .product-side-tools #moneda-form .field-input { height:27px; min-height:27px; padding:0 7px; font-size:.56rem; }
  #right-sidebar .product-side-tools #moneda-form [style*="width:150px"] { width:100% !important; }
  #right-sidebar .product-side-tools #moneda-form > div > div:nth-child(3) { gap:6px !important; flex-wrap:nowrap !important; }
  #right-sidebar .product-side-tools #moneda-form input[type="color"] { width:27px !important; height:27px !important; }
  #right-sidebar .product-side-tools #moneda-form input[type="color"] + input { flex:1; min-width:0; width:auto !important; }
  #right-sidebar .product-side-tools #moneda-form button { height:27px; min-height:27px !important; padding:0 8px !important; border-radius:6px !important; font-size:.49rem; box-shadow:none !important; }

  /* Lista minimalista con valores y controles de monedas personalizadas. */
  #right-sidebar .product-side-tools #monedas-list { display:flex !important; flex-direction:column !important; gap:5px !important; min-height:0 !important; }
  #right-sidebar .product-side-tools #monedas-list .moneda-row {
    display:flex !important; align-items:center; gap:7px; min-height:32px; padding:5px 6px !important; box-sizing:border-box;
    background:transparent !important; border:1px solid rgba(255,255,255,.16) !important; border-left:3px solid var(--moneda-color,#8CFF00) !important; border-radius:7px !important;
  }
  #right-sidebar .product-side-tools #monedas-list .moneda-row[data-system="true"] { background:#8CFF00 !important; border-color:#8CFF00 !important; border-left-color:#8CFF00 !important; color:#000 !important; }
  #right-sidebar .product-side-tools #monedas-list .moneda-dot { display:block; width:8px !important; height:8px !important; min-width:8px; border-radius:3px !important; box-shadow:none !important; }
  #right-sidebar .product-side-tools #monedas-list .moneda-row[data-system="true"] .moneda-dot { background:#000 !important; }
  #right-sidebar .product-side-tools #monedas-list .moneda-row-name { color:#fff; font-family:var(--font-body); font-size:.56rem; font-weight:900; letter-spacing:.35px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  #right-sidebar .product-side-tools #monedas-list .moneda-row-price { color:rgba(255,255,255,.62); font-family:var(--font-body); font-size:.48rem; font-weight:700; margin-top:2px; }
  #right-sidebar .product-side-tools #monedas-list .moneda-row[data-system="true"] .moneda-row-name,
  #right-sidebar .product-side-tools #monedas-list .moneda-row[data-system="true"] .moneda-row-price { color:#000 !important; }
  #right-sidebar .product-side-tools #monedas-list .moneda-row[data-system="true"] > span:not(.moneda-dot) { display:none !important; }
  #right-sidebar .product-side-tools #monedas-list .moneda-mini-btn {
    display:grid; place-items:center; width:22px; min-width:22px; height:22px; min-height:22px; padding:0 !important;
    border:1px solid rgba(255,255,255,.24) !important; border-radius:6px !important; background:#000 !important; color:#fff !important; box-shadow:none !important; font-size:0 !important;
  }
  #right-sidebar .product-side-tools #monedas-list .moneda-mini-btn[data-moneda-edit]::before { content:'✎'; font:700 13px/1 sans-serif; }
  #right-sidebar .product-side-tools #monedas-list .moneda-mini-btn[data-moneda-delete]::before { content:none !important; }
  #right-sidebar .product-side-tools #monedas-list .moneda-mini-btn[data-moneda-edit]:hover { color:#8CFF00 !important; border-color:#8CFF00 !important; }
  #right-sidebar .product-side-tools #monedas-list .moneda-mini-btn[data-moneda-delete]:hover { color:#ff5252 !important; border-color:#ff5252 !important; }

  body.light-mode #right-sidebar .product-side-tools #panel-monedas { background:#fff; color:#000; border-color:rgba(0,0,0,.15); box-shadow:0 2px 8px rgba(15,23,42,.07); }
  body.light-mode #right-sidebar .product-side-tools #panel-monedas .panel-header { border-color:rgba(0,0,0,.12); }
  body.light-mode #right-sidebar .product-side-tools #panel-monedas .moneda-header-create { background:#fff !important; color:#000 !important; border-color:rgba(0,0,0,.28) !important; }
  body.light-mode #right-sidebar .product-side-tools #panel-monedas .moneda-header-create:hover { background:#8CFF00 !important; color:#000 !important; border-color:#000 !important; }
  body.light-mode #right-sidebar .product-side-tools #moneda-form { background:#fff !important; border-color:rgba(0,0,0,.15) !important; }
  body.light-mode #right-sidebar .product-side-tools #monedas-list .moneda-row { border-color:rgba(0,0,0,.18) !important; background:#fff !important; }
  body.light-mode #right-sidebar .product-side-tools #monedas-list .moneda-row[data-system="true"] { background:#8CFF00 !important; border-color:#000 !important; }
  body.light-mode #right-sidebar .product-side-tools #monedas-list .moneda-row-name { color:#000; }
  body.light-mode #right-sidebar .product-side-tools #monedas-list .moneda-row-price { color:rgba(0,0,0,.58); }
  body.light-mode #right-sidebar .product-side-tools #monedas-list .moneda-mini-btn { background:#fff !important; color:#000 !important; border-color:rgba(0,0,0,.26) !important; }

/* Bloque de estilos 46: compact-currency-row-height-fix */
/* Las reglas heredadas de tarjetas no pueden expandir las filas de moneda. */
  #right-sidebar .product-side-tools #monedas-list {
    flex: 0 0 auto !important;
    height: auto !important;
    align-content: flex-start !important;
  }
  #right-sidebar .product-side-tools #monedas-list .moneda-row {
    flex: 0 0 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    align-self: stretch !important;
    overflow: hidden !important;
  }
  #right-sidebar .product-side-tools #monedas-list .moneda-row > div {
    align-self: center !important;
  }

/* Bloque de estilos 47: cashier-box-client-scroll-enhancement */
/* Nombre y caja se presentan juntos en el cajero activo. */
  #right-sidebar .cashier-active-details { display:flex; align-items:flex-end; justify-content:space-between; gap:10px; }
  #right-sidebar .cashier-active-person { min-width:0; flex:1 1 auto; }
  #right-sidebar .cashier-active-box { min-width:60px; min-height:42px; padding:6px 7px; display:flex; flex-direction:column; justify-content:center; box-sizing:border-box; border:1px solid rgba(255,255,255,.28); border-radius:7px; text-align:center; }
  #right-sidebar .cashier-active-box span { color:rgba(255,255,255,.50); font-family:var(--font-body); font-size:.43rem; font-weight:900; letter-spacing:.65px; }
  #right-sidebar .cashier-active-box strong { margin-top:3px; color:#fff; font-family:var(--font-body); font-size:.56rem; font-weight:900; line-height:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  #right-sidebar .cashier-timeline-box-name { margin-top:1px; color:rgba(255,255,255,.46); font-family:var(--font-body); font-size:.42rem; font-weight:800; letter-spacing:.45px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  #right-sidebar .cashier-timeline-item.is-active .cashier-timeline-box-name { color:#8CFF00; }

  /* El nuevo cajero se registra con nombre y caja en dos campos delineados. */
  #right-sidebar .cashier-add-row { display:grid !important; grid-template-columns:minmax(0,1fr) 30px; gap:5px 6px; }
  #right-sidebar .cashier-add-row .cashier-add-input { grid-column:1; width:100%; box-sizing:border-box; }
  #right-sidebar .cashier-add-row .cashier-add-btn { grid-column:2; grid-row:1 / span 2; width:30px !important; height:auto !important; min-height:61px !important; }

  /* Los paneles se desplazan internamente cuando los formularios superan la altura disponible. */
  #right-sidebar .cashier-registry-card,
  #right-sidebar .clients-side-card { overflow-y:auto !important; overscroll-behavior:contain; scrollbar-width:none; -ms-overflow-style:none; }
  #right-sidebar .cashier-registry-card::-webkit-scrollbar,
  #right-sidebar .clients-side-card::-webkit-scrollbar { width:0; height:0; display:none; }
  #right-sidebar .clients-side-list { flex:0 1 132px !important; max-height:132px; }
  #right-sidebar .client-registration-form { flex:0 0 auto; }

  /* El título de edición conserva contraste en modo claro. */
  body.light-mode #right-sidebar .client-edit-title { color:#000 !important; }
  body.light-mode #right-sidebar .cashier-active-box { border-color:rgba(0,0,0,.30); }
  body.light-mode #right-sidebar .cashier-active-box span,
  body.light-mode #right-sidebar .cashier-timeline-box-name { color:rgba(0,0,0,.52); }
  body.light-mode #right-sidebar .cashier-active-box strong { color:#000; }
  body.light-mode #right-sidebar .cashier-timeline-item.is-active .cashier-timeline-box-name { color:#247000; }

/* Bloque de estilos 48: cashier-fixed-box-prefix */
/* El prefijo CAJA permanece fijo; solo se escribe el número. */
  #right-sidebar .cashier-add-row .cashier-caja-input-wrap {
    grid-column:1; width:100%; height:28px; display:flex; align-items:center; box-sizing:border-box;
    border:1px solid rgba(255,255,255,.18); border-radius:7px; overflow:hidden; background:#000;
  }
  #right-sidebar .cashier-caja-prefix { padding:0 7px; color:rgba(255,255,255,.52); border-right:1px solid rgba(255,255,255,.15); font-family:var(--font-body); font-size:.49rem; font-weight:900; letter-spacing:.45px; }
  #right-sidebar .cashier-caja-input-wrap input { min-width:0; flex:1; width:100%; height:100%; padding:0 7px; border:0; outline:none; background:transparent; color:#fff; font-family:var(--font-body); font-size:.56rem; font-weight:800; }
  #right-sidebar .cashier-caja-input-wrap:focus-within { border-color:#8CFF00; }
  #right-sidebar .cashier-caja-input-wrap input::placeholder { color:rgba(255,255,255,.38); }
  body.light-mode #right-sidebar .cashier-add-row .cashier-caja-input-wrap { background:#fff; border-color:rgba(0,0,0,.18); }
  body.light-mode #right-sidebar .cashier-caja-prefix { color:rgba(0,0,0,.52); border-color:rgba(0,0,0,.14); }
  body.light-mode #right-sidebar .cashier-caja-input-wrap input { color:#000; }
  body.light-mode #right-sidebar .cashier-caja-input-wrap input::placeholder { color:rgba(0,0,0,.38); }

/* Bloque de estilos 49: login-light-input-solid-priority */
html body.light-mode #login-screen input.alcaur-input,
  html body.light-mode #login-screen input.alcaur-input:focus,
  html body.light-mode #login-screen input.alcaur-input:focus-visible {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid rgba(0, 0, 0, 0.24) !important;
    box-shadow: none !important;
    outline: none !important;
  }

/* Bloque de estilos 50: services-modal-stable-style */
/* Modal centrado sin observadores ni reubicación del formulario. */
  #market-app:has(#svc-form:not(.hidden))::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 2990;
    background: rgba(0, 0, 0, 0.66);
    backdrop-filter: blur(4px);
    pointer-events: none;
  }
  #market-app #svc-form:not(.hidden) {
    position: fixed !important;
    z-index: 3000 !important;
    top: 50% !important;
    left: 50% !important;
    display: block !important;
    width: min(920px, calc(100vw - 48px)) !important;
    max-height: min(860px, calc(100vh - 28px)) !important;
    margin: 0 !important;
    padding: 30px 32px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    transform: translate(-50%, -50%) !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    outline: none !important;
    border-radius: 16px !important;
    background: var(--black-2) !important;
    box-shadow: 0 24px 72px rgba(0, 0, 0, .60) !important;
    scrollbar-width: thin;
    scrollbar-color: #6b6b6b rgba(255,255,255,.07);
  }
  #market-app #svc-form:not(.hidden)::-webkit-scrollbar { width: 9px; }
  #market-app #svc-form:not(.hidden)::-webkit-scrollbar-track { background: rgba(255,255,255,.07); border-radius: 999px; }
  #market-app #svc-form:not(.hidden)::-webkit-scrollbar-thumb { background: #6b6b6b; border: 2px solid transparent; background-clip: padding-box; border-radius: 999px; }
  #market-app #svc-form:not(.hidden)::-webkit-scrollbar-thumb:hover { background: #7a7a7a; background-clip: padding-box; }
  body.light-mode #market-app #svc-form:not(.hidden) {
    background: #ffffff !important;
    border-color: rgba(0,0,0,.18) !important;
    box-shadow: 0 24px 72px rgba(0,0,0,.24) !important;
    scrollbar-color: #777777 rgba(0,0,0,.08);
  }
  body.light-mode #market-app #svc-form:not(.hidden)::-webkit-scrollbar-track { background: rgba(0,0,0,.08); }
  body.light-mode #market-app #svc-form:not(.hidden)::-webkit-scrollbar-thumb { background: #777777; background-clip: padding-box; }
  @media (max-width: 620px) {
    #market-app #svc-form:not(.hidden) {
      width: calc(100vw - 20px) !important;
      max-height: calc(100vh - 20px) !important;
      padding: 20px !important;
      border-radius: 13px !important;
    }
  }

/* Bloque de estilos 51: services-panel-bottom-alignment */
/* Servicios se estira hasta compartir el borde inferior de la fila superior con Monedas. */
  #productos-tab .prod-top-grid {
    align-items: stretch !important;
  }
  #productos-tab .prod-top-grid #panel-servicios {
    height: auto !important;
    min-height: 216px !important;
    max-height: none !important;
    align-self: stretch !important;
  }

/* Bloque de estilos 52: product-side-panel-header-search-refinement */
/* Los tres encabezados ocupan todo el ancho interno del panel y separan claramente el contenido. */
  #right-sidebar .product-side-tools #panel-monedas .panel-header,
  #right-sidebar .product-side-tools #panel-categorias .panel-header,
  #right-sidebar .product-side-tools #panel-etiquetas .panel-header {
    width:100% !important;
    min-height:44px !important;
    box-sizing:border-box !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:8px !important;
    padding:0 12px !important;
    margin:0 !important;
    border-bottom:1px solid rgba(255,255,255,.22) !important;
  }
  #right-sidebar .product-side-tools #panel-monedas .panel-title,
  #right-sidebar .product-side-tools #panel-categorias .panel-title,
  #right-sidebar .product-side-tools #panel-etiquetas .panel-title {
    margin:0 auto 0 0 !important;
    text-align:left !important;
    text-transform:uppercase !important;
  }
  #right-sidebar .product-side-tools #panel-monedas .panel-header > svg,
  #right-sidebar .product-side-tools #panel-categorias .panel-header > svg,
  #right-sidebar .product-side-tools #panel-etiquetas .panel-header > svg {
    margin:0 !important;
    flex:0 0 auto !important;
  }

  /* Acciones de creación: contraste explícito, sin superficies grises. */
  #right-sidebar .product-side-tools #panel-monedas .moneda-header-create,
  #right-sidebar .product-side-tools #panel-categorias #dom-toggle-form,
  #right-sidebar .product-side-tools #panel-etiquetas #cat-toggle-form {
    display:grid !important;
    place-items:center !important;
    flex:0 0 28px !important;
    width:28px !important;
    min-width:28px !important;
    height:28px !important;
    min-height:28px !important;
    margin:0 0 0 auto !important;
    padding:0 !important;
    border:1px solid #8CFF00 !important;
    border-radius:7px !important;
    background:#000 !important;
    color:#8CFF00 !important;
    box-shadow:none !important;
    font:900 19px/1 sans-serif !important;
    line-height:1 !important;
  }
  #right-sidebar .product-side-tools #panel-monedas .moneda-header-create::after,
  #right-sidebar .product-side-tools #panel-categorias #dom-toggle-form::after,
  #right-sidebar .product-side-tools #panel-etiquetas #cat-toggle-form::after {
    color:inherit !important;
  }
  #right-sidebar .product-side-tools #panel-monedas .moneda-header-create:hover,
  #right-sidebar .product-side-tools #panel-categorias #dom-toggle-form:hover,
  #right-sidebar .product-side-tools #panel-etiquetas #cat-toggle-form:hover {
    background:#8CFF00 !important;
    color:#000 !important;
  }

  /* La antigua banda de acciones se conserva para la lógica, pero deja de ocupar espacio. */
  #right-sidebar .product-side-tools #panel-categorias .legacy-panel-actions,
  #right-sidebar .product-side-tools #panel-etiquetas .legacy-panel-actions {
    display:none !important;
  }

  /* Búsquedas inmediatamente bajo la línea divisoria, sin gris en ninguno de los modos. */
  #right-sidebar .product-side-tools .side-panel-search {
    width:100% !important;
    margin:0 0 9px !important;
    padding:0 !important;
  }
  #right-sidebar .product-side-tools .side-panel-search-input {
    width:100% !important;
    height:30px !important;
    box-sizing:border-box !important;
    padding:0 9px !important;
    border:1px solid #8CFF00 !important;
    border-radius:7px !important;
    outline:none !important;
    appearance:none !important;
    -webkit-appearance:none !important;
    background:#000 !important;
    color:#fff !important;
    box-shadow:none !important;
    font-family:var(--font-body) !important;
    font-size:.57rem !important;
    font-weight:700 !important;
    letter-spacing:.5px !important;
    text-transform:uppercase !important;
  }
  #right-sidebar .product-side-tools .side-panel-search-input::placeholder {
    color:#8CFF00 !important;
    opacity:1 !important;
  }
  #right-sidebar .product-side-tools .side-panel-search-input:focus {
    border-color:#8CFF00 !important;
    box-shadow:0 0 0 1px #8CFF00 !important;
  }

  body.light-mode #right-sidebar .product-side-tools #panel-monedas .panel-header,
  body.light-mode #right-sidebar .product-side-tools #panel-categorias .panel-header,
  body.light-mode #right-sidebar .product-side-tools #panel-etiquetas .panel-header {
    border-bottom-color:#000 !important;
  }
  body.light-mode #right-sidebar .product-side-tools #panel-monedas .moneda-header-create,
  body.light-mode #right-sidebar .product-side-tools #panel-categorias #dom-toggle-form,
  body.light-mode #right-sidebar .product-side-tools #panel-etiquetas #cat-toggle-form {
    background:#fff !important;
    color:#000 !important;
    border-color:#000 !important;
  }
  body.light-mode #right-sidebar .product-side-tools #panel-monedas .moneda-header-create:hover,
  body.light-mode #right-sidebar .product-side-tools #panel-categorias #dom-toggle-form:hover,
  body.light-mode #right-sidebar .product-side-tools #panel-etiquetas #cat-toggle-form:hover {
    background:#000 !important;
    color:#fff !important;
  }
  body.light-mode #right-sidebar .product-side-tools .side-panel-search-input {
    background:#fff !important;
    color:#000 !important;
    border-color:#000 !important;
  }
  body.light-mode #right-sidebar .product-side-tools .side-panel-search-input::placeholder {
    color:#000 !important;
  }
  body.light-mode #right-sidebar .product-side-tools .side-panel-search-input:focus {
    border-color:#000 !important;
    box-shadow:0 0 0 1px #000 !important;
  }

  /* Prioridad final para mantener el contraste de las acciones pese a las reglas heredadas. */
  #market-app #right-sidebar .product-side-tools #panel-monedas .moneda-header-create,
  #market-app #right-sidebar .product-side-tools #panel-categorias #dom-toggle-form,
  #market-app #right-sidebar .product-side-tools #panel-etiquetas #cat-toggle-form {
    background:#000 !important;
    color:#8CFF00 !important;
    border-color:#8CFF00 !important;
  }
  body.light-mode #market-app #right-sidebar .product-side-tools #panel-monedas .moneda-header-create,
  body.light-mode #market-app #right-sidebar .product-side-tools #panel-categorias #dom-toggle-form,
  body.light-mode #market-app #right-sidebar .product-side-tools #panel-etiquetas #cat-toggle-form {
    background:#fff !important;
    color:#000 !important;
    border-color:#000 !important;
  }

/* Bloque de estilos 53: moneda-color-fields-vertical */
/* Cada color tiene su propia fila completa para conservar legibilidad en el panel lateral angosto. */
  #right-sidebar .product-side-tools #moneda-form > div:first-child > div:nth-child(3) {
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:9px !important;
    flex-wrap:nowrap !important;
  }
  #right-sidebar .product-side-tools #moneda-form > div:first-child > div:nth-child(3) > div {
    width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }
  #right-sidebar .product-side-tools #moneda-form > div:first-child > div:nth-child(3) > div > div {
    width:100% !important;
    display:flex !important;
    align-items:center !important;
    gap:6px !important;
  }

/* Bloque de estilos 54: moneda-full-width-gradient-items */
/* Cada moneda ocupa por completo el ancho disponible del panel lateral. */
  #right-sidebar .product-side-tools #monedas-list {
    width:100% !important;
    gap:6px !important;
  }
  #right-sidebar .product-side-tools #monedas-list .moneda-row,
  body.light-mode #right-sidebar .product-side-tools #monedas-list .moneda-row,
  #right-sidebar .product-side-tools #monedas-list .moneda-row[data-system="true"],
  body.light-mode #right-sidebar .product-side-tools #monedas-list .moneda-row[data-system="true"] {
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    flex:0 0 44px !important;
    box-sizing:border-box !important;
    display:flex !important;
    align-items:center !important;
    gap:0 !important;
    padding:6px 10px !important;
    background:var(--moneda-item-gradient, linear-gradient(135deg,#8CFF00 0%,#8CFF00 100%)) !important;
    color:var(--moneda-item-text,#000) !important;
    border:1px solid var(--moneda-item-border,rgba(0,0,0,.3)) !important;
    border-left:1px solid var(--moneda-item-border,rgba(0,0,0,.3)) !important;
    border-radius:7px !important;
    box-shadow:none !important;
    overflow:hidden !important;
  }
  #right-sidebar .product-side-tools #monedas-list .moneda-row .moneda-dot,
  #right-sidebar .product-side-tools #monedas-list .moneda-row > span:not(.moneda-dot) {
    display:none !important;
  }
  #right-sidebar .product-side-tools #monedas-list .moneda-row > div {
    width:100% !important;
    min-width:0 !important;
    flex:1 1 auto !important;
  }
  #right-sidebar .product-side-tools #monedas-list .moneda-row .moneda-row-name,
  #right-sidebar .product-side-tools #monedas-list .moneda-row .moneda-row-price,
  body.light-mode #right-sidebar .product-side-tools #monedas-list .moneda-row .moneda-row-name,
  body.light-mode #right-sidebar .product-side-tools #monedas-list .moneda-row .moneda-row-price {
    color:var(--moneda-item-text,#000) !important;
    text-shadow:0 1px 2px var(--moneda-item-shadow,rgba(255,255,255,.38)) !important;
  }
  #right-sidebar .product-side-tools #monedas-list .moneda-row .moneda-row-name {
    font-size:.62rem !important;
    font-weight:900 !important;
    letter-spacing:.45px !important;
    line-height:1.1 !important;
  }
  #right-sidebar .product-side-tools #monedas-list .moneda-row .moneda-row-price {
    margin-top:3px !important;
    font-size:.53rem !important;
    font-weight:800 !important;
    line-height:1 !important;
    opacity:.94 !important;
  }
  /* La especificidad adicional mantiene el contraste calculado también para BCV y EUR. */
  #right-sidebar .product-side-tools #monedas-list .moneda-row[data-system="true"] .moneda-row-name,
  #right-sidebar .product-side-tools #monedas-list .moneda-row[data-system="true"] .moneda-row-price,
  body.light-mode #right-sidebar .product-side-tools #monedas-list .moneda-row[data-system="true"] .moneda-row-name,
  body.light-mode #right-sidebar .product-side-tools #monedas-list .moneda-row[data-system="true"] .moneda-row-price {
    color:var(--moneda-item-text,#000) !important;
    text-shadow:0 1px 2px var(--moneda-item-shadow,rgba(255,255,255,.38)) !important;
  }

  /* Las acciones se conservan, pero aparecen solo al enfocar o pasar el cursor: el estado normal muestra nombre y bolívares. */
  #right-sidebar .product-side-tools #monedas-list .moneda-row .moneda-mini-btn {
    display:none !important;
  }
  #right-sidebar .product-side-tools #monedas-list .moneda-row:hover .moneda-mini-btn,
  #right-sidebar .product-side-tools #monedas-list .moneda-row:focus-within .moneda-mini-btn {
    display:grid !important;
    flex:0 0 22px !important;
    margin-left:5px !important;
    background:rgba(0,0,0,.72) !important;
    border-color:rgba(255,255,255,.72) !important;
    color:#fff !important;
  }

/* Bloque de estilos 55: category-label-local-edit-layout */
/* Las listas se ordenan como filas completas dentro de sus paneles. */
  #right-sidebar .product-side-tools #dominios-list,
  #right-sidebar .product-side-tools #categorias-list {
    width:100% !important;
    display:flex !important;
    flex-direction:column !important;
    flex-wrap:nowrap !important;
    gap:6px !important;
  }
  #right-sidebar .product-side-tools #dominios-list > div:not(#dom-inline-edit),
  #right-sidebar .product-side-tools #categorias-list > div:not(#cat-inline-edit),
  #right-sidebar .product-side-tools #categorias-list > button {
    width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }
  #right-sidebar .product-side-tools #dominios-list > div:not(#dom-inline-edit) {
    display:flex !important;
    flex-direction:column !important;
  }

  /* Categorías: bloque alargado, nombre a la izquierda y acciones a la derecha. */
  #right-sidebar .product-side-tools #dominios-list > div:has(.dom-edit-btn) > div:first-child {
    width:100% !important;
    min-height:40px !important;
    box-sizing:border-box !important;
    display:flex !important;
    align-items:center !important;
    gap:7px !important;
    padding:7px 8px 7px 10px !important;
    border-radius:7px !important;
  }
  #right-sidebar .product-side-tools #dominios-list > div:has(.dom-edit-btn) > div:first-child > span:first-child {
    min-width:0 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    margin-right:auto !important;
  }
  #right-sidebar .product-side-tools #dominios-list > div:has(.dom-edit-btn) > div:first-child > svg {
    flex:0 0 auto !important;
  }

  /* Etiquetas: el botón con el nombre ocupa la zona izquierda; acciones separadas a la derecha. */
  #right-sidebar .product-side-tools #categorias-list > div:has(.cat-edit-btn) {
    min-height:40px !important;
    display:flex !important;
    align-items:center !important;
    gap:6px !important;
    padding:0 !important;
  }
  #right-sidebar .product-side-tools #categorias-list > div:has(.cat-edit-btn) .cat-filter-btn {
    min-width:0 !important;
    min-height:40px !important;
    flex:1 1 auto !important;
    justify-content:flex-start !important;
    box-sizing:border-box !important;
    padding:7px 10px !important;
    border-radius:7px !important;
  }
  #right-sidebar .product-side-tools #categorias-list > div:has(.cat-edit-btn) .cat-filter-btn span {
    min-width:0 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
    text-align:left !important;
  }

  /* Controles en el extremo derecho, separados del texto. */
  #right-sidebar .product-side-tools #dominios-list .dom-edit-btn,
  #right-sidebar .product-side-tools #dominios-list .dom-delete-btn,
  #right-sidebar .product-side-tools #categorias-list .cat-edit-btn,
  #right-sidebar .product-side-tools #categorias-list .cat-delete-btn {
    flex:0 0 24px !important;
    width:24px !important;
    min-width:24px !important;
    height:24px !important;
    min-height:24px !important;
    margin:0 !important;
    border-radius:7px !important;
  }
  #right-sidebar .product-side-tools #dominios-list .dom-edit-btn { margin-left:2px !important; }
  #right-sidebar .product-side-tools #dominios-list .dom-delete-btn,
  #right-sidebar .product-side-tools #categorias-list .cat-delete-btn { margin-left:1px !important; }

  /* Fila Todos también llena el ancho, pero sin afectar su lógica de filtros. */
  #right-sidebar .product-side-tools #dominios-list > div:not(:has(.dom-edit-btn)):not(#dom-inline-edit),
  #right-sidebar .product-side-tools #categorias-list > button {
    min-height:38px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    box-sizing:border-box !important;
    border-radius:7px !important;
  }

  /* El editor sigue toda la anchura y se integra justo debajo de la fila que lo abrió. */
  #right-sidebar .product-side-tools #dominios-list > #dom-inline-edit,
  #right-sidebar .product-side-tools #categorias-list > #cat-inline-edit {
    width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
    position:relative !important;
    inset:auto !important;
    margin:0 0 2px !important;
    padding:10px !important;
    border-radius:8px !important;
    z-index:4 !important;
  }
  #right-sidebar .product-side-tools #dom-inline-edit > div:first-child,
  #right-sidebar .product-side-tools #cat-inline-edit {
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:8px !important;
  }
  #right-sidebar .product-side-tools #dom-inline-edit [style*="min-width"],
  #right-sidebar .product-side-tools #cat-inline-edit [style*="min-width"] {
    width:100% !important;
    min-width:0 !important;
  }
  #right-sidebar .product-side-tools #dom-inline-edit [id$="-cancel"],
  #right-sidebar .product-side-tools #dom-inline-edit [id$="-delete"],
  #right-sidebar .product-side-tools #dom-inline-edit [id$="-save"],
  #right-sidebar .product-side-tools #cat-inline-edit [id$="-cancel"],
  #right-sidebar .product-side-tools #cat-inline-edit [id$="-delete"],
  #right-sidebar .product-side-tools #cat-inline-edit [id$="-save"] {
    min-height:29px !important;
    padding:0 9px !important;
    border-radius:7px !important;
    font-size:.5rem !important;
  }

/* Bloque de estilos 56: product-side-panels-fixed-open-refinement */
/* Los tres paneles permanecen abiertos y conservan su estructura al cambiar de sección. */
  #right-sidebar .product-side-tools #panel-monedas,
  #right-sidebar .product-side-tools #panel-categorias,
  #right-sidebar .product-side-tools #panel-etiquetas {
    display:flex !important;
    flex-direction:column !important;
    overflow:hidden !important;
  }
  #right-sidebar .product-side-tools #panel-monedas .panel-body,
  #right-sidebar .product-side-tools #panel-categorias .panel-body,
  #right-sidebar .product-side-tools #panel-etiquetas .panel-body {
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
  }

  /* En modo claro, el divisor conserva el mismo carácter suave que el borde del panel. */
  body.light-mode #right-sidebar .product-side-tools #panel-monedas .panel-header,
  body.light-mode #right-sidebar .product-side-tools #panel-categorias .panel-header,
  body.light-mode #right-sidebar .product-side-tools #panel-etiquetas .panel-header {
    border-bottom-color:rgba(0,0,0,.15) !important;
  }

  /* Las acciones de alta se identifican exclusivamente por el signo más. */
  #right-sidebar .product-side-tools #panel-monedas .moneda-header-create,
  #right-sidebar .product-side-tools #panel-categorias #dom-toggle-form,
  #right-sidebar .product-side-tools #panel-etiquetas #cat-toggle-form {
    font-size:0 !important;
  }
  #right-sidebar .product-side-tools #panel-monedas .moneda-header-create::after,
  #right-sidebar .product-side-tools #panel-categorias #dom-toggle-form::after,
  #right-sidebar .product-side-tools #panel-etiquetas #cat-toggle-form::after {
    content:'+' !important;
    display:block !important;
    color:inherit !important;
    font:900 19px/1 sans-serif !important;
  }

  /* Los textos de búsqueda se mantienen legibles sin negro o verde excesivos. */
  #right-sidebar .product-side-tools .side-panel-search-input {
    color:rgba(255,255,255,.72) !important;
  }
  #right-sidebar .product-side-tools .side-panel-search-input::placeholder {
    color:rgba(255,255,255,.48) !important;
    opacity:1 !important;
  }
  body.light-mode #right-sidebar .product-side-tools .side-panel-search-input {
    color:rgba(0,0,0,.66) !important;
  }
  body.light-mode #right-sidebar .product-side-tools .side-panel-search-input::placeholder {
    color:rgba(0,0,0,.44) !important;
    opacity:1 !important;
  }

/* Bloque de estilos 57: category-label-editors-compact-clean */
/* Contenedores limpios: sin rellenos grises, con el mismo lenguaje de panel del editor de Monedas. */
  #right-sidebar .product-side-tools #dom-inline-edit,
  #right-sidebar .product-side-tools #cat-inline-edit {
    background:#000 !important;
    border:1px solid rgba(255,255,255,.18) !important;
    box-shadow:none !important;
    padding:8px !important;
    gap:7px !important;
  }
  body.light-mode #right-sidebar .product-side-tools #dom-inline-edit,
  body.light-mode #right-sidebar .product-side-tools #cat-inline-edit {
    background:#fff !important;
    border-color:rgba(0,0,0,.16) !important;
    box-shadow:none !important;
  }

  /* Campos más pequeños, con superficies puras y bordes discretos. */
  #right-sidebar .product-side-tools #dom-inline-edit .field-label,
  #right-sidebar .product-side-tools #cat-inline-edit label {
    margin:0 0 3px !important;
    color:rgba(255,255,255,.55) !important;
    font-size:.48rem !important;
    line-height:1 !important;
    letter-spacing:1.15px !important;
  }
  #right-sidebar .product-side-tools #dom-inline-edit .field-input,
  #right-sidebar .product-side-tools #cat-inline-edit .field-input {
    height:27px !important;
    min-height:27px !important;
    padding:0 8px !important;
    border:1px solid rgba(255,255,255,.24) !important;
    border-radius:6px !important;
    background:#000 !important;
    color:#fff !important;
    box-shadow:none !important;
    font-size:.61rem !important;
  }
  #right-sidebar .product-side-tools #dom-inline-edit input[type="color"],
  #right-sidebar .product-side-tools #cat-inline-edit input[type="color"] {
    width:27px !important;
    min-width:27px !important;
    height:27px !important;
    padding:2px !important;
    border:1px solid rgba(255,255,255,.24) !important;
    border-radius:6px !important;
    background:#000 !important;
  }
  body.light-mode #right-sidebar .product-side-tools #dom-inline-edit .field-label,
  body.light-mode #right-sidebar .product-side-tools #cat-inline-edit label {
    color:rgba(0,0,0,.48) !important;
  }
  body.light-mode #right-sidebar .product-side-tools #dom-inline-edit .field-input,
  body.light-mode #right-sidebar .product-side-tools #cat-inline-edit .field-input {
    background:#fff !important;
    color:#000 !important;
    border-color:rgba(0,0,0,.2) !important;
  }
  body.light-mode #right-sidebar .product-side-tools #dom-inline-edit input[type="color"],
  body.light-mode #right-sidebar .product-side-tools #cat-inline-edit input[type="color"] {
    background:#fff !important;
    border-color:rgba(0,0,0,.2) !important;
  }

  /* Organización vertical compacta de los dos campos principales. */
  #right-sidebar .product-side-tools #dom-inline-edit > div:first-child,
  #right-sidebar .product-side-tools #cat-inline-edit {
    gap:7px !important;
  }
  #right-sidebar .product-side-tools #dom-inline-edit > div:first-child > div,
  #right-sidebar .product-side-tools #cat-inline-edit > div {
    margin:0 !important;
  }
  #right-sidebar .product-side-tools #dom-inline-edit [style*="display:flex"][style*="align-items:center"],
  #right-sidebar .product-side-tools #cat-inline-edit [style*="display:flex"][style*="align-items:center"] {
    gap:5px !important;
  }

  /* La asignación de etiquetas sigue disponible, pero ocupa una zona breve y desplazable. */
  #right-sidebar .product-side-tools #dom-inline-edit > div:nth-child(2) {
    margin:0 !important;
  }
  #right-sidebar .product-side-tools #dom-inline-edit > div:nth-child(2) > label {
    margin:0 0 5px !important;
  }
  #right-sidebar .product-side-tools #dom-inline-edit > div:nth-child(2) > div {
    max-height:86px !important;
    overflow-y:auto !important;
    padding-right:2px !important;
    gap:4px !important;
  }
  #right-sidebar .product-side-tools #dom-inline-edit .dom-cat-check {
    width:10px !important;
    height:10px !important;
    margin:0 !important;
  }
  #right-sidebar .product-side-tools #dom-inline-edit label:has(.dom-cat-check) {
    padding:3px 6px !important;
    border-radius:5px !important;
    background:#000 !important;
    border-color:rgba(255,255,255,.18) !important;
    color:rgba(255,255,255,.68) !important;
    font-size:.54rem !important;
  }
  body.light-mode #right-sidebar .product-side-tools #dom-inline-edit label:has(.dom-cat-check) {
    background:#fff !important;
    border-color:rgba(0,0,0,.16) !important;
    color:rgba(0,0,0,.64) !important;
  }

  /* Acciones del tamaño compacto del editor de Monedas. */
  #right-sidebar .product-side-tools #dom-inline-edit > div:last-child,
  #right-sidebar .product-side-tools #cat-inline-edit > div:last-child {
    display:flex !important;
    justify-content:flex-end !important;
    align-items:center !important;
    gap:5px !important;
    margin:1px 0 0 !important;
  }
  #right-sidebar .product-side-tools #dom-inline-edit button,
  #right-sidebar .product-side-tools #cat-inline-edit button {
    height:27px !important;
    min-height:27px !important;
    padding:0 8px !important;
    border-radius:6px !important;
    font-size:.49rem !important;
    line-height:1 !important;
    box-shadow:none !important;
  }
  /* El editor de Etiquetas conserva todos sus controles dentro de una altura breve y desplazable. */
  #right-sidebar .product-side-tools #cat-inline-edit {
    max-height:190px !important;
    overflow-y:auto !important;
    scrollbar-width:thin;
  }

/* Bloque de estilos 58: cashier-fixed-form-empty-box-refinement */
/* Solo la lista se desplaza; el bloque de registro se conserva fijo al pie de su panel. */
  #right-sidebar .cashier-registry-card {
    overflow:hidden !important;
  }
  #right-sidebar .cashier-registry-card .cashier-timeline {
    flex:1 1 0 !important;
    min-height:0 !important;
    overflow-y:auto !important;
    overscroll-behavior:contain;
    padding-bottom:4px !important;
  }
  #right-sidebar .cashier-registry-card .cashier-add-row {
    flex:0 0 auto !important;
    position:relative !important;
    z-index:2 !important;
    margin-top:auto !important;
    padding-top:9px !important;
    background:#000 !important;
    border-top:1px solid rgba(255,255,255,.14) !important;
  }
  body.light-mode #right-sidebar .cashier-registry-card .cashier-add-row {
    background:#fff !important;
    border-top-color:rgba(0,0,0,.14) !important;
  }

  /* La caja comienza vacía y su ejemplo es ácido, tenue y no es un valor guardado. */
  #right-sidebar .cashier-caja-input-wrap input::placeholder {
    color:rgba(140,255,0,.38) !important;
    opacity:1 !important;
    font-weight:900 !important;
    letter-spacing:1px !important;
  }
  body.light-mode #right-sidebar .cashier-caja-input-wrap input::placeholder {
    color:rgba(140,255,0,.46) !important;
  }

/* Bloque de estilos 59: category-label-editors-vertical-order */
/* Ambos editores se organizan en una sola columna, sin solapamientos u overflow horizontal. */
  #right-sidebar .product-side-tools #dom-inline-edit,
  #right-sidebar .product-side-tools #cat-inline-edit {
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:8px !important;
    max-width:100% !important;
    overflow-x:hidden !important;
  }
  #right-sidebar .product-side-tools #dom-inline-edit > div,
  #right-sidebar .product-side-tools #cat-inline-edit > div {
    width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
    margin:0 !important;
  }

  /* Nombre y color de categoría: uno debajo del otro, con etiquetas alineadas a la izquierda. */
  #right-sidebar .product-side-tools #dom-inline-edit > div:first-child {
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:8px !important;
  }
  #right-sidebar .product-side-tools #dom-inline-edit > div:first-child > div {
    width:100% !important;
    min-width:0 !important;
  }
  #right-sidebar .product-side-tools #dom-inline-edit .field-label,
  #right-sidebar .product-side-tools #cat-inline-edit > div > label {
    display:block !important;
    width:100% !important;
    text-align:left !important;
    margin:0 0 4px !important;
  }

  /* Campos principales de ancho completo y bordes compactos. */
  #right-sidebar .product-side-tools #dom-inline-edit #dom-ie-nombre,
  #right-sidebar .product-side-tools #cat-inline-edit #cat-ie-nombre,
  #right-sidebar .product-side-tools #cat-inline-edit #cat-ie-dominio {
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }
  #right-sidebar .product-side-tools #dom-inline-edit [id$="-picker"] + input,
  #right-sidebar .product-side-tools #cat-inline-edit [id$="-picker"] + input {
    width:auto !important;
    min-width:0 !important;
    flex:1 1 auto !important;
  }
  #right-sidebar .product-side-tools #dom-inline-edit [id$="-picker"]:parent,
  #right-sidebar .product-side-tools #cat-inline-edit [id$="-picker"]:parent { width:100% !important; }
  #right-sidebar .product-side-tools #dom-inline-edit [id$="-picker"],
  #right-sidebar .product-side-tools #cat-inline-edit [id$="-picker"] {
    flex:0 0 27px !important;
  }
  #right-sidebar .product-side-tools #dom-inline-edit div:has(> #dom-ie-picker),
  #right-sidebar .product-side-tools #cat-inline-edit div:has(> #cat-ie-picker) {
    width:100% !important;
    display:flex !important;
    align-items:center !important;
    gap:6px !important;
  }

  /* Asignación de etiquetas: ordenada y desplazable internamente, sin elementos superpuestos. */
  #right-sidebar .product-side-tools #dom-inline-edit > div:nth-child(2) {
    display:flex !important;
    flex-direction:column !important;
    gap:4px !important;
  }
  #right-sidebar .product-side-tools #dom-inline-edit > div:nth-child(2) > div {
    width:100% !important;
    display:flex !important;
    flex-direction:column !important;
    flex-wrap:nowrap !important;
    align-items:stretch !important;
    gap:4px !important;
    max-height:94px !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    padding-right:2px !important;
    box-sizing:border-box !important;
  }
  #right-sidebar .product-side-tools #dom-inline-edit label:has(.dom-cat-check) {
    width:100% !important;
    min-width:0 !important;
    display:flex !important;
    align-items:center !important;
    box-sizing:border-box !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  /* Etiqueta: Nombre, Color y Categoría siempre se apilan verticalmente. */
  #right-sidebar .product-side-tools #cat-inline-edit {
    max-height:245px !important;
    overflow-y:auto !important;
  }
  #right-sidebar .product-side-tools #cat-inline-edit > div:not(:last-child) {
    display:block !important;
  }

  /* Solo Cancelar y Guardar se muestran al editar; eliminar permanece en la fila de cada elemento. */
  #right-sidebar .product-side-tools #dom-inline-edit #dom-ie-delete,
  #right-sidebar .product-side-tools #cat-inline-edit #cat-ie-delete {
    display:none !important;
  }
  #right-sidebar .product-side-tools #dom-inline-edit > div:last-child,
  #right-sidebar .product-side-tools #cat-inline-edit > div:last-child {
    width:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:6px !important;
    padding-top:2px !important;
  }
  #right-sidebar .product-side-tools #dom-inline-edit > div:last-child button,
  #right-sidebar .product-side-tools #cat-inline-edit > div:last-child button {
    min-width:72px !important;
    height:28px !important;
    min-height:28px !important;
    box-sizing:border-box !important;
  }

/* Bloque de estilos 60: product-panels-permanent-open-order */
/* Orden estable: MONEDAS arriba, CATEGORÍAS al centro y ETIQUETAS abajo. */
  #right-sidebar .product-side-tools {
    display:flex !important;
    flex-direction:column !important;
  }
  #right-sidebar .product-side-tools #panel-monedas { order:1 !important; }
  #right-sidebar .product-side-tools #panel-categorias { order:2 !important; }
  #right-sidebar .product-side-tools #panel-etiquetas { order:3 !important; }

  /* El contenido de los tres paneles siempre es visible, incluso si una regla heredada altera clases. */
  #right-sidebar .product-side-tools #panel-monedas .panel-body,
  #right-sidebar .product-side-tools #panel-categorias .panel-body,
  #right-sidebar .product-side-tools #panel-etiquetas .panel-body {
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    height:auto !important;
    max-height:none !important;
  }
  #right-sidebar .product-side-tools #panel-monedas .panel-header,
  #right-sidebar .product-side-tools #panel-categorias .panel-header,
  #right-sidebar .product-side-tools #panel-etiquetas .panel-header {
    cursor:default !important;
  }

/* Bloque de estilos 61: category-editor-tags-actions-refinement */
/* Las etiquetas asignables ganan altura y tipografía sin perder el scroll interno. */
  #right-sidebar .product-side-tools #dom-inline-edit > div:nth-child(2) > div {
    max-height:118px !important;
    gap:5px !important;
    padding-right:3px !important;
  }
  #right-sidebar .product-side-tools #dom-inline-edit label:has(.dom-cat-check) {
    min-height:23px !important;
    padding:5px 7px !important;
    gap:6px !important;
    border-radius:6px !important;
    font-size:.60rem !important;
    line-height:1.1 !important;
    letter-spacing:.25px !important;
  }
  #right-sidebar .product-side-tools #dom-inline-edit .dom-cat-check {
    width:12px !important;
    height:12px !important;
    min-width:12px !important;
  }

  /* Cancelar y Guardar quedan en una misma fila, con igual ancho y sin desbordarse. */
  #right-sidebar .product-side-tools #dom-inline-edit > div:last-child,
  #right-sidebar .product-side-tools #cat-inline-edit > div:last-child {
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    justify-content:stretch !important;
    width:100% !important;
    gap:6px !important;
    overflow:visible !important;
  }
  #right-sidebar .product-side-tools #dom-inline-edit > div:last-child #dom-ie-cancel,
  #right-sidebar .product-side-tools #dom-inline-edit > div:last-child #dom-ie-save,
  #right-sidebar .product-side-tools #cat-inline-edit > div:last-child #cat-ie-cancel,
  #right-sidebar .product-side-tools #cat-inline-edit > div:last-child #cat-ie-save {
    flex:1 1 0 !important;
    width:calc(50% - 3px) !important;
    min-width:0 !important;
    height:30px !important;
    min-height:30px !important;
    padding:0 5px !important;
    font-size:.50rem !important;
    white-space:nowrap !important;
  }

/* Bloque de estilos 62: currency-form-simple-name-price */
/* La creación y edición muestran únicamente nombre y precio de cambio. */
  #right-sidebar .product-side-tools #moneda-form > div:first-child {
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:7px !important;
  }
  #right-sidebar .product-side-tools #moneda-form > div:first-child > div:nth-child(1),
  #right-sidebar .product-side-tools #moneda-form > div:first-child > div:nth-child(2) {
    width:100% !important;
    min-width:0 !important;
  }
  #right-sidebar .product-side-tools #moneda-form > div:first-child > div:nth-child(3) {
    display:none !important;
  }
  #right-sidebar .product-side-tools #moneda-form #moneda-nombre,
  #right-sidebar .product-side-tools #moneda-form #moneda-precio {
    width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }

  /* Cancelar y Guardar ocupan la fila inferior del panel de forma equilibrada. */
  #right-sidebar .product-side-tools #moneda-form > div:nth-child(2) {
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    justify-content:stretch !important;
    gap:7px !important;
    width:100% !important;
    margin-top:2px !important;
  }
  #right-sidebar .product-side-tools #moneda-form > #moneda-edit-id {
    display:none !important;
  }
  #right-sidebar .product-side-tools #moneda-form #moneda-cancel,
  #right-sidebar .product-side-tools #moneda-form #moneda-save {
    flex:1 1 0 !important;
    width:calc(50% - 3.5px) !important;
    min-width:0 !important;
    height:31px !important;
    min-height:31px !important;
    padding:0 6px !important;
    font-size:.52rem !important;
    white-space:nowrap !important;
    box-sizing:border-box !important;
  }

/* Bloque de estilos 63: alcaur-header-logo-size-refinement */
.alcaur-header-logo {
    width:1.8rem !important;
    height:1.8rem !important;
    flex:0 0 1.8rem !important;
    align-self:center;
  }
  .alcaur-header-logo-svg {
    width:100% !important;
    height:100% !important;
  }

/* Bloque de estilos 64: product-panel-rigid-headers-independent-forms */
/* Los paneles conservan su jerarquía visual: la barra nunca cambia al abrir formularios. */
  #right-sidebar .product-side-tools #panel-monedas,
  #right-sidebar .product-side-tools #panel-categorias,
  #right-sidebar .product-side-tools #panel-etiquetas {
    display:flex !important;
    flex-direction:column !important;
    overflow:visible !important;
    min-width:0 !important;
  }
  #right-sidebar .product-side-tools #panel-monedas > .panel-header,
  #right-sidebar .product-side-tools #panel-categorias > .panel-header,
  #right-sidebar .product-side-tools #panel-etiquetas > .panel-header {
    position:relative !important;
    z-index:3 !important;
    flex:0 0 58px !important;
    width:100% !important;
    height:58px !important;
    min-height:58px !important;
    max-height:58px !important;
    box-sizing:border-box !important;
    overflow:hidden !important;
    transform:none !important;
  }
  #right-sidebar .product-side-tools #panel-monedas > .panel-body,
  #right-sidebar .product-side-tools #panel-categorias > .panel-body,
  #right-sidebar .product-side-tools #panel-etiquetas > .panel-body {
    display:flex !important;
    flex:0 0 auto !important;
    flex-direction:column !important;
    width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
    overflow:visible !important;
  }

  /* Los formularios se sitúan bajo la barra, como bloques propios, sin tocar su geometría. */
  #right-sidebar .product-side-tools #panel-monedas .panel-body > :first-child { order:0 !important; }
  #right-sidebar .product-side-tools #moneda-form,
  #right-sidebar .product-side-tools #dom-form,
  #right-sidebar .product-side-tools #cat-form {
    position:static !important;
    float:none !important;
    clear:both !important;
    align-self:stretch !important;
    width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
    margin-top:8px !important;
    margin-bottom:8px !important;
    transform:none !important;
  }
  #right-sidebar .product-side-tools #moneda-form { order:1 !important; }
  #right-sidebar .product-side-tools #dom-form,
  #right-sidebar .product-side-tools #cat-form { order:2 !important; }
  #right-sidebar .product-side-tools #monedas-list { order:2 !important; }
  #right-sidebar .product-side-tools #dominios-list,
  #right-sidebar .product-side-tools #categorias-list { order:3 !important; }
  #right-sidebar .product-side-tools #dom-form.hidden,
  #right-sidebar .product-side-tools #cat-form.hidden,
  #right-sidebar .product-side-tools #moneda-form.hidden { display:none !important; }
  #right-sidebar .product-side-tools #dom-form:not(.hidden),
  #right-sidebar .product-side-tools #cat-form:not(.hidden),
  #right-sidebar .product-side-tools #moneda-form:not(.hidden) { display:block !important; }

/* Bloque de estilos 65: product-panel-no-shrink-no-transform */
/* El conjunto desplaza internamente cuando las tres listas están abiertas. */
  #right-sidebar .product-side-tools {
    align-items:stretch !important;
    min-height:0 !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
  }
  /* Ningún panel puede comprimirse, trasladarse o solaparse por reglas heredadas de acordeón. */
  #right-sidebar .product-side-tools #panel-monedas,
  #right-sidebar .product-side-tools #panel-categorias,
  #right-sidebar .product-side-tools #panel-etiquetas {
    position:relative !important;
    inset:auto !important;
    top:auto !important;
    right:auto !important;
    bottom:auto !important;
    left:auto !important;
    transform:none !important;
    transition:none !important;
    flex:0 0 auto !important;
    flex-shrink:0 !important;
    height:auto !important;
    min-height:0 !important;
  }
  #right-sidebar .product-side-tools #panel-monedas > .panel-header,
  #right-sidebar .product-side-tools #panel-categorias > .panel-header,
  #right-sidebar .product-side-tools #panel-etiquetas > .panel-header {
    order:0 !important;
    transform:none !important;
    transition:none !important;
  }
  #right-sidebar .product-side-tools #panel-monedas > .panel-body,
  #right-sidebar .product-side-tools #panel-categorias > .panel-body,
  #right-sidebar .product-side-tools #panel-etiquetas > .panel-body {
    flex:0 0 auto !important;
    flex-shrink:0 !important;
    height:auto !important;
    min-height:0 !important;
  }

/* Bloque de estilos 66: cashier-caja-single-surface-refinement */
/* El contorno pertenece exclusivamente al grupo CAJA, nunca al input interno. */
  #right-sidebar .cashier-caja-input-wrap > input#cajero-caja,
  #right-sidebar .cashier-caja-input-wrap > input#cajero-caja:focus,
  #right-sidebar .cashier-caja-input-wrap > input#cajero-caja:focus-visible {
    appearance: none !important;
    -webkit-appearance: none !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 7px !important;
    border: 0 !important;
    border-width: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  /* El prefijo conserva solamente la línea divisoria funcional; no crea otra casilla. */
  #right-sidebar .cashier-caja-input-wrap > .cashier-caja-prefix {
    flex: 0 0 auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  /* La única silueta visible es el marco exterior del campo completo. */
  #right-sidebar .cashier-caja-input-wrap {
    box-shadow: none !important;
  }

/* Bloque de estilos 67: product-panels-compact-scroll-neutral-currency */
/* Las filas de Monedas dejan de usar degradados y colores propios. */
  #right-sidebar .product-side-tools #monedas-list .moneda-row,
  #right-sidebar .product-side-tools #monedas-list .moneda-row[data-system="true"] {
    background: #ffffff !important;
    background-image: none !important;
    color: #000000 !important;
    border-color: rgba(255,255,255,.72) !important;
    box-shadow: none !important;
  }
  #right-sidebar .product-side-tools #monedas-list .moneda-row *,
  #right-sidebar .product-side-tools #monedas-list .moneda-row[data-system="true"] * {
    color: #000000 !important;
    text-shadow: none !important;
  }
  #right-sidebar .product-side-tools #monedas-list .moneda-row .moneda-dot {
    background: #000000 !important;
    border-color: #000000 !important;
    box-shadow: none !important;
    opacity: .36 !important;
  }
  #right-sidebar .product-side-tools #monedas-list .moneda-row .moneda-mini-btn {
    background: transparent !important;
    border-color: currentColor !important;
    box-shadow: none !important;
  }

  /* En modo claro, las filas se invierten para conservar el contraste solicitado. */
  body.light-mode #right-sidebar .product-side-tools #monedas-list .moneda-row,
  body.light-mode #right-sidebar .product-side-tools #monedas-list .moneda-row[data-system="true"] {
    background: #000000 !important;
    background-image: none !important;
    color: #ffffff !important;
    border-color: rgba(0,0,0,.82) !important;
    box-shadow: none !important;
  }
  body.light-mode #right-sidebar .product-side-tools #monedas-list .moneda-row *,
  body.light-mode #right-sidebar .product-side-tools #monedas-list .moneda-row[data-system="true"] * {
    color: #ffffff !important;
    text-shadow: none !important;
  }
  body.light-mode #right-sidebar .product-side-tools #monedas-list .moneda-row .moneda-dot {
    background: #ffffff !important;
    border-color: #ffffff !important;
  }

  /* Tres bloques iguales: Monedas arriba, Categorías en el centro y Etiquetas abajo. */
  #right-sidebar .product-side-tools {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }
  #right-sidebar .product-side-tools #panel-monedas,
  #right-sidebar .product-side-tools #panel-categorias,
  #right-sidebar .product-side-tools #panel-etiquetas {
    flex: 1 1 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  #right-sidebar .product-side-tools #panel-monedas { order: 1 !important; }
  #right-sidebar .product-side-tools #panel-categorias { order: 2 !important; }
  #right-sidebar .product-side-tools #panel-etiquetas { order: 3 !important; }

  /* Cada cabecera conserva sus 58 px; el contenido se desplaza dentro de su propio panel. */
  #right-sidebar .product-side-tools #panel-monedas > .panel-body,
  #right-sidebar .product-side-tools #panel-categorias > .panel-body,
  #right-sidebar .product-side-tools #panel-etiquetas > .panel-body {
    flex: 1 1 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.28) transparent;
    box-sizing: border-box !important;
    padding-bottom: 6px !important;
  }
  body.light-mode #right-sidebar .product-side-tools #panel-monedas > .panel-body,
  body.light-mode #right-sidebar .product-side-tools #panel-categorias > .panel-body,
  body.light-mode #right-sidebar .product-side-tools #panel-etiquetas > .panel-body {
    scrollbar-color: rgba(0,0,0,.30) transparent;
  }
  #right-sidebar .product-side-tools #panel-monedas > .panel-body::-webkit-scrollbar,
  #right-sidebar .product-side-tools #panel-categorias > .panel-body::-webkit-scrollbar,
  #right-sidebar .product-side-tools #panel-etiquetas > .panel-body::-webkit-scrollbar {
    width: 4px;
  }
  #right-sidebar .product-side-tools #panel-monedas > .panel-body::-webkit-scrollbar-thumb,
  #right-sidebar .product-side-tools #panel-categorias > .panel-body::-webkit-scrollbar-thumb,
  #right-sidebar .product-side-tools #panel-etiquetas > .panel-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.28);
    border-radius: 999px;
  }
  body.light-mode #right-sidebar .product-side-tools #panel-monedas > .panel-body::-webkit-scrollbar-thumb,
  body.light-mode #right-sidebar .product-side-tools #panel-categorias > .panel-body::-webkit-scrollbar-thumb,
  body.light-mode #right-sidebar .product-side-tools #panel-etiquetas > .panel-body::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.30);
  }

/* Bloque de estilos 68: product-side-tools-section-visibility-fix */
/* Los paneles de Monedas, Categorías y Etiquetas existen solo al visitar Productos. */
  body:not(.products-tools-visible) #right-sidebar .product-side-tools {
    display: none !important;
  }
  body.products-tools-visible #right-sidebar .product-side-tools {
    display: flex !important;
  }

/* Bloque de estilos 69: all-currency-rows-uniform-contrast */
/* Las reglas se aplican a toda fila, incluso si fue creada después de cargar la vista. */
  body:not(.light-mode) #right-sidebar #monedas-list .moneda-row,
  body:not(.light-mode) #right-sidebar #monedas-list .moneda-row[data-system],
  body:not(.light-mode) #right-sidebar #monedas-list .moneda-row[data-system="true"],
  body:not(.light-mode) #right-sidebar #monedas-list .moneda-row[data-system="false"] {
    background: #000000 !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,.72) !important;
    color: #ffffff !important;
  }
  body:not(.light-mode) #right-sidebar #monedas-list .moneda-row *,
  body:not(.light-mode) #right-sidebar #monedas-list .moneda-row::before,
  body:not(.light-mode) #right-sidebar #monedas-list .moneda-row::after {
    color: #ffffff !important;
    text-shadow: none !important;
  }
  body.light-mode #right-sidebar #monedas-list .moneda-row,
  body.light-mode #right-sidebar #monedas-list .moneda-row[data-system],
  body.light-mode #right-sidebar #monedas-list .moneda-row[data-system="true"],
  body.light-mode #right-sidebar #monedas-list .moneda-row[data-system="false"] {
    background: #ffffff !important;
    background-image: none !important;
    border: 1px solid rgba(0,0,0,.72) !important;
    color: #000000 !important;
  }
  body.light-mode #right-sidebar #monedas-list .moneda-row *,
  body.light-mode #right-sidebar #monedas-list .moneda-row::before,
  body.light-mode #right-sidebar #monedas-list .moneda-row::after {
    color: #000000 !important;
    text-shadow: none !important;
  }

/* Bloque de estilos 70: category-create-form-width-refinement */
/* El bloque de color usa todo el ancho disponible del formulario de creación. */
  #right-sidebar .product-side-tools #dom-form > div:first-child > div:nth-child(2) {
    width: 100% !important;
    min-width: 0 !important;
  }
  #right-sidebar .product-side-tools #dom-form > div:first-child > div:nth-child(2) > div {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
  }
  #right-sidebar .product-side-tools #dom-form #dom-color-picker {
    flex: 0 0 36px !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 32px !important;
  }
  #right-sidebar .product-side-tools #dom-form #dom-color {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 32px !important;
  }

  /* Cancelar y Guardar se reparten toda la fila disponible de manera equilibrada. */
  #right-sidebar .product-side-tools #dom-form > div:first-child > div:nth-child(3) {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    gap: 8px !important;
  }
  #right-sidebar .product-side-tools #dom-form #dom-cancel,
  #right-sidebar .product-side-tools #dom-form #dom-save {
    flex: 1 1 0 !important;
    width: calc(50% - 4px) !important;
    min-width: 0 !important;
    height: 32px !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
  }

/* Bloque de estilos 71: category-inline-editor-full-height-only */
/* El panel lateral maneja el desplazamiento vertical; el editor nunca se reduce a una ranura. */
  #right-sidebar .product-side-tools #panel-categorias > .panel-body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  #right-sidebar .product-side-tools #dominios-list {
    overflow: visible !important;
  }

  /* Se conserva el movimiento nativo que inserta el editor bajo la fila elegida. */
  #right-sidebar .product-side-tools #dom-inline-edit,
  #right-sidebar .product-side-tools #dominios-list > #dom-inline-edit {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 0 8px !important;
    padding: 10px !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-sizing: border-box !important;
  }
  #right-sidebar .product-side-tools #dom-inline-edit > div {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  /* Las etiquetas asignables muestran todas sus filas; la rueda desplaza el panel completo. */
  #right-sidebar .product-side-tools #dom-inline-edit > div:nth-child(2) > div {
    max-height: none !important;
    overflow: visible !important;
  }

/* Bloque de estilos 72: label-inline-editor-full-height-fix */
/* El panel de Etiquetas mantiene el desplazamiento; el editor no se comprime en una ranura. */
  #right-sidebar .product-side-tools #panel-etiquetas > .panel-body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  #right-sidebar .product-side-tools #categorias-list {
    overflow: visible !important;
  }

  /* Se conserva el posicionamiento existente bajo la etiqueta elegida y se libera su altura. */
  #right-sidebar .product-side-tools #cat-inline-edit,
  #right-sidebar .product-side-tools #categorias-list > #cat-inline-edit {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 0 8px !important;
    padding: 10px !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-sizing: border-box !important;
  }
  #right-sidebar .product-side-tools #cat-inline-edit > div {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
  }

/* Bloque de estilos 73: label-create-form-width-refinement */
/* El bloque de color utiliza todo el ancho del formulario de creación de Etiquetas. */
  #right-sidebar .product-side-tools #cat-form > div:first-child > div:nth-child(2) {
    width: 100% !important;
    min-width: 0 !important;
  }
  #right-sidebar .product-side-tools #cat-form > div:first-child > div:nth-child(2) > div {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
  }
  #right-sidebar .product-side-tools #cat-form #cat-color-picker {
    flex: 0 0 36px !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 32px !important;
  }
  #right-sidebar .product-side-tools #cat-form #cat-color {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 32px !important;
  }

  /* Cancelar y Guardar se reparten toda la fila de acciones. */
  #right-sidebar .product-side-tools #cat-form > div:first-child > div:nth-child(4) {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    gap: 8px !important;
  }
  #right-sidebar .product-side-tools #cat-form #cat-cancel,
  #right-sidebar .product-side-tools #cat-form #cat-save {
    flex: 1 1 0 !important;
    width: calc(50% - 4px) !important;
    min-width: 0 !important;
    height: 32px !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
  }

/* Bloque de estilos 74: product-panel-create-buttons-cashier-style */
#market-app #right-sidebar .product-side-tools #panel-monedas .moneda-header-create,
  #market-app #right-sidebar .product-side-tools #panel-categorias #dom-toggle-form,
  #market-app #right-sidebar .product-side-tools #panel-etiquetas #cat-toggle-form,
  body.light-mode #market-app #right-sidebar .product-side-tools #panel-monedas .moneda-header-create,
  body.light-mode #market-app #right-sidebar .product-side-tools #panel-categorias #dom-toggle-form,
  body.light-mode #market-app #right-sidebar .product-side-tools #panel-etiquetas #cat-toggle-form {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    border: 1px solid #8CFF00 !important;
    border-radius: 7px !important;
    background: #8CFF00 !important;
    color: #000 !important;
    box-shadow: none !important;
    font-size: 0 !important;
    line-height: 1 !important;
  }
  #market-app #right-sidebar .product-side-tools #panel-monedas .moneda-header-create::after,
  #market-app #right-sidebar .product-side-tools #panel-categorias #dom-toggle-form::after,
  #market-app #right-sidebar .product-side-tools #panel-etiquetas #cat-toggle-form::after {
    content: none !important;
    display: none !important;
  }
  #market-app #right-sidebar .product-side-tools #panel-monedas .moneda-header-create .app-add-icon,
  #market-app #right-sidebar .product-side-tools #panel-categorias #dom-toggle-form .app-add-icon,
  #market-app #right-sidebar .product-side-tools #panel-etiquetas #cat-toggle-form .app-add-icon {
    display: block !important;
    width: 19px !important;
    height: 19px !important;
    color: #000000 !important;
  }
  #market-app #right-sidebar .product-side-tools #panel-monedas .moneda-header-create:hover,
  #market-app #right-sidebar .product-side-tools #panel-categorias #dom-toggle-form:hover,
  #market-app #right-sidebar .product-side-tools #panel-etiquetas #cat-toggle-form:hover,
  #market-app #right-sidebar .product-side-tools #panel-monedas .moneda-header-create:focus-visible,
  #market-app #right-sidebar .product-side-tools #panel-categorias #dom-toggle-form:focus-visible,
  #market-app #right-sidebar .product-side-tools #panel-etiquetas #cat-toggle-form:focus-visible {
    background: #8CFF00 !important;
    color: #000 !important;
    border-color: #000 !important;
    outline: none !important;
    filter: brightness(.96) !important;
  }

/* Bloque de estilos 75: monedas-exchange-and-label-full-row-final */
.monedas-exchange-icon { color:#fff !important; }
  body.light-mode .monedas-exchange-icon { color:#000 !important; }

  /* Cada Etiqueta forma una fila completa y conserva sus acciones dentro de ella. */
  #right-sidebar .product-side-tools #categorias-list > div:has(.cat-filter-btn) {
    display:flex !important;
    align-items:center !important;
    width:100% !important;
    min-width:0 !important;
    min-height:40px !important;
    gap:7px !important;
    padding:2px 7px 2px 10px !important;
    box-sizing:border-box !important;
    border-radius:999px !important;
    overflow:hidden !important;
  }
  #right-sidebar .product-side-tools #categorias-list > div:has(.cat-filter-btn) .cat-filter-btn {
    display:flex !important;
    align-items:center !important;
    flex:1 1 auto !important;
    min-width:0 !important;
    min-height:34px !important;
    padding:5px 0 !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    background:transparent !important;
  }
  #right-sidebar .product-side-tools #categorias-list > div:has(.cat-filter-btn) .cat-filter-btn span {
    display:block !important;
    min-width:0 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
    text-align:left !important;
  }
  #right-sidebar .product-side-tools #categorias-list > div:has(.cat-filter-btn) .cat-edit-btn,
  #right-sidebar .product-side-tools #categorias-list > div:has(.cat-filter-btn) .cat-delete-btn {
    position:static !important;
    flex:0 0 24px !important;
    width:24px !important;
    min-width:24px !important;
    height:24px !important;
    min-height:24px !important;
    margin:0 !important;
    border-radius:7px !important;
  }

/* Bloque de estilos 76: side-panel-search-pill-shape */
#right-sidebar #categorias-side-search,
  #right-sidebar #etiquetas-side-search,
  #right-sidebar #cashiers-side-search,
  #right-sidebar .clients-side-search {
    border-radius: 999px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    overflow: hidden !important;
  }
  #right-sidebar #categorias-side-search::-webkit-search-decoration,
  #right-sidebar #etiquetas-side-search::-webkit-search-decoration,
  #right-sidebar #cashiers-side-search::-webkit-search-decoration,
  #right-sidebar .clients-side-search::-webkit-search-decoration,
  #right-sidebar #categorias-side-search::-webkit-search-cancel-button,
  #right-sidebar #etiquetas-side-search::-webkit-search-cancel-button,
  #right-sidebar #cashiers-side-search::-webkit-search-cancel-button,
  #right-sidebar .clients-side-search::-webkit-search-cancel-button {
    -webkit-appearance: none;
  }

/* Bloque de estilos 77: product-search-light-border-softening */
body.light-mode #right-sidebar #categorias-side-search,
  body.light-mode #right-sidebar #etiquetas-side-search {
    border-color: rgba(0, 0, 0, 0.22) !important;
  }

/* Bloque de estilos 78: invoice-history-light-card-white */
body.light-mode #invoice-history .invoice-history-card.product-item,
  body.light-mode #credit-invoice-history .invoice-history-card.product-item {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.22) !important;
  }

  body.light-mode #invoice-history .invoice-history-card.product-item:hover,
  body.light-mode #credit-invoice-history .invoice-history-card.product-item:hover {
    background: #ffffff !important;
  }

  body.light-mode #invoice-history .invoice-history-card .invoice-details,
  body.light-mode #credit-invoice-history .invoice-history-card .invoice-details,
  body.light-mode #credit-invoice-history .invoice-history-card .invoice-details .data-table {
    background: #ffffff !important;
  }

/* Bloque de estilos 79: nueva-factura-ticket-icon-style */
#market-app .nueva-factura-title {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  #market-app .nueva-factura-title-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: currentColor;
  }

/* Bloque de estilos 80: stock-control-out-icon-style */
#market-app .stock-control-title {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  #market-app .stock-control-title-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: currentColor;
  }

/* Bloque de estilos 81: price-tag-header-icon-style */
#market-app .price-tag-title {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  #market-app .price-tag-title-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: currentColor;
  }

/* Bloque de estilos 82: login-solid-surfaces-no-glass */
#login-screen .alcaur-auth-card {
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  body:not(.light-mode) #login-screen .alcaur-input {
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease, background-color 0.15s ease !important;
  }
  body:not(.light-mode) #login-screen .alcaur-input:focus,
  body:not(.light-mode) #login-screen .alcaur-input:focus-visible {
    background: #000000 !important;
    border-color: rgba(255, 255, 255, 0.34) !important;
    outline: none !important;
    box-shadow: none !important;
  }
  body.light-mode #login-screen .alcaur-auth-card {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.24) !important;
    box-shadow: none !important;
  }
  body.light-mode #login-screen .alcaur-input,
  body.light-mode #login-screen .alcaur-input:focus,
  body.light-mode #login-screen .alcaur-input:focus-visible {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.24) !important;
    color: #000000 !important;
    outline: none !important;
    box-shadow: none !important;
  }

/* Bloque de estilos 83: login-light-input-final-override */
html body.light-mode #login-screen #login-user,
  html body.light-mode #login-screen #login-user:focus,
  html body.light-mode #login-screen #login-user:focus-visible,
  html body.light-mode #login-screen #login-password,
  html body.light-mode #login-screen #login-password:focus,
  html body.light-mode #login-screen #login-password:focus-visible {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid rgba(0, 0, 0, 0.24) !important;
    box-shadow: none !important;
    outline: none !important;
  }

/* Bloque de estilos 84: credits-empty-panel-style */
#market-app #creditos-tab .credits-empty-panel,
  #market-app #proveedores-tab .providers-empty-panel { min-height: 220px; }
  #market-app #creditos-tab .panel-body,
  #market-app #proveedores-tab .panel-body { min-height: 150px; }

/* Bloque de estilos 85: services-management-compact-layout */
/* Panel de servicios fijo: se mantiene por debajo de las herramientas superiores y antes de los inventarios. */
  #productos-tab :is(.prod-top-grid, .products-grid) #panel-servicios {
    order: 2;
    width: 100% !important;
    flex: 0 0 100% !important;
    height: 216px;
    min-height: 216px;
    max-height: 216px;
    margin: -2px 0 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: default;
  }
  #productos-tab :is(.prod-top-grid, .products-grid) #panel-servicios .panel-header {
    min-height: 44px;
    height: 44px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    flex: 0 0 44px;
  }
  #productos-tab :is(.prod-top-grid, .products-grid) #panel-servicios .panel-header > svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
  }
  #productos-tab :is(.prod-top-grid, .products-grid) #panel-servicios .panel-title {
    margin: 0;
    color: var(--adaptive-text);
    font-size: 1.12rem !important;
    font-weight: 900 !important;
    letter-spacing: 1.5px !important;
    line-height: 1.15 !important;
    text-align: left;
  }
  #productos-tab :is(.prod-top-grid, .products-grid) #panel-servicios .panel-body {
    display: flex !important;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    padding: 10px 12px 12px;
    overflow: hidden;
  }
  #productos-tab :is(.prod-top-grid, .products-grid) #panel-servicios .services-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin: 0 0 8px;
  }
  #productos-tab :is(.prod-top-grid, .products-grid) #panel-servicios #svc-search {
    min-width: 0;
    flex: 1 1 auto;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px !important;
    font-size: 0.68rem;
  }
  #productos-tab :is(.prod-top-grid, .products-grid) #panel-servicios #svc-toggle-form {
    height: 32px;
    min-width: 68px;
    padding: 0 13px !important;
    border-radius: 8px !important;
    font-family: var(--font-body);
    font-size: 0.62rem !important;
    font-weight: 900;
    letter-spacing: 0.8px;
    line-height: 1;
    flex: 0 0 auto;
  }
  #productos-tab :is(.prod-top-grid, .products-grid) #panel-servicios #svc-form {
    flex: 0 0 auto;
    max-height: 260px;
    overflow-y: auto;
  }
  #productos-tab :is(.prod-top-grid, .products-grid) #panel-servicios .services-carousel-wrapper {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    padding: 0 !important;
    overflow: hidden;
  }
  #productos-tab :is(.prod-top-grid, .products-grid) #panel-servicios #servicios-list {
    display: flex !important;
    align-items: flex-start !important;
    gap: 6px !important;
    height: 100%;
    min-height: 0;
    padding: 0 30px !important;
    overflow-x: auto;
    overflow-y: hidden;
  }
  #productos-tab :is(.prod-top-grid, .products-grid) #panel-servicios .service-card {
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 222px !important;
    width: 222px;
    height: 58px !important;
    min-height: 58px !important;
    padding: 6px 8px !important;
    border-radius: 9px !important;
    transform: none !important;
    box-shadow: none !important;
  }
  #productos-tab :is(.prod-top-grid, .products-grid) #panel-servicios .service-card:hover { transform: none !important; box-shadow: none !important; }
  #productos-tab :is(.prod-top-grid, .products-grid) #panel-servicios .card-top-section {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    flex: 1 1 auto;
  }
  #productos-tab :is(.prod-top-grid, .products-grid) #panel-servicios .card-icon-container {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }
  #productos-tab :is(.prod-top-grid, .products-grid) #panel-servicios .card-info-right { min-width: 0; overflow: hidden; }
  #productos-tab :is(.prod-top-grid, .products-grid) #panel-servicios .card-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.63rem !important;
    line-height: 1.1;
  }
  #productos-tab :is(.prod-top-grid, .products-grid) #panel-servicios .card-subtitle {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.47rem !important;
    line-height: 1.15;
  }
  #productos-tab :is(.prod-top-grid, .products-grid) #panel-servicios .card-bottom-section {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 0 7px !important;
    flex: 0 0 auto;
  }
  #productos-tab :is(.prod-top-grid, .products-grid) #panel-servicios .card-percentage-box {
    min-width: 30px;
    height: 22px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    font-size: 0.55rem !important;
  }
  #productos-tab :is(.prod-top-grid, .products-grid) #panel-servicios .card-actions { display: flex; gap: 3px; }
  #productos-tab :is(.prod-top-grid, .products-grid) #panel-servicios .card-btn-edit,
  #productos-tab :is(.prod-top-grid, .products-grid) #panel-servicios .card-btn-delete {
    width: 22px;
    height: 22px;
    min-width: 22px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 6px;
  }
  #productos-tab :is(.prod-top-grid, .products-grid) #panel-servicios .card-btn-edit i,
  #productos-tab :is(.prod-top-grid, .products-grid) #panel-servicios .card-btn-delete i { font-size: 0.58rem; }
  #productos-tab :is(.prod-top-grid, .products-grid) #panel-servicios .carousel-btn {
    width: 22px;
    height: 32px;
    min-width: 22px;
    padding: 0;
  }
  #productos-tab :is(.prod-top-grid, .products-grid) #panel-servicios #servicios-list > p {
    align-self: center;
    width: 100%;
    margin: 0;
    padding: 0 !important;
  }

  /* Cuando las herramientas de Productos se muestran en el lateral, mantiene el mismo alto de Monedas. */
  #right-sidebar .product-side-tools #panel-servicios {
    order: 0;
    width: auto !important;
    height: 216px;
    min-height: 216px;
    max-height: 216px;
    margin: 0 !important;
    display: flex !important;
    flex: 0 0 216px !important;
    flex-direction: column;
    overflow: hidden;
  }
  #right-sidebar .product-side-tools #panel-servicios .panel-header {
    min-height: 44px;
    height: 44px;
    padding: 0 12px;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex: 0 0 44px;
  }
  #right-sidebar .product-side-tools #panel-servicios .panel-title {
    margin: 0;
    font-size: 0.9rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.7px !important;
    line-height: 1 !important;
    white-space: nowrap;
  }
  #right-sidebar .product-side-tools #panel-servicios .panel-body {
    display: flex !important;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    padding: 9px 10px 10px;
    overflow: hidden;
  }
  #right-sidebar .product-side-tools #panel-servicios .services-toolbar { margin-bottom: 7px; }
  #right-sidebar .product-side-tools #panel-servicios #svc-search { height: 29px; font-size: 0.58rem; padding: 0 10px; }
  #right-sidebar .product-side-tools #panel-servicios #svc-toggle-form { height: 29px; min-width: 56px; padding: 0 9px !important; font-size: 0.54rem !important; }
  #right-sidebar .product-side-tools #panel-servicios #servicios-list { padding: 0 24px !important; }
  #right-sidebar .product-side-tools #panel-servicios .service-card { flex-basis: 205px !important; width: 205px; height: 54px !important; min-height: 54px !important; }

/* Bloque de estilos 86: services-management-form-accessibility */
#productos-tab :is(.prod-top-grid, .products-grid) #panel-servicios:has(#svc-form:not(.hidden)),
  #right-sidebar .product-side-tools #panel-servicios:has(#svc-form:not(.hidden)) {
    height: auto;
    max-height: calc(100vh - 132px);
  }
  #productos-tab :is(.prod-top-grid, .products-grid) #panel-servicios:has(#svc-form:not(.hidden)) .panel-body,
  #right-sidebar .product-side-tools #panel-servicios:has(#svc-form:not(.hidden)) .panel-body {
    overflow-y: auto;
  }

/* Bloque de estilos 87: products-hierarchy-layout */
/* Jerarquía principal: Mis Productos domina la columna izquierda; Servicios y Componentes se ordenan a la derecha. */
  #productos-tab .products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: minmax(216px, auto) minmax(216px, auto) !important;
    grid-template-areas:
      "products services"
      "products components";
    column-gap: 16px !important;
    row-gap: 4px !important;
    align-items: stretch;
    margin-top: 14px !important;
  }
  #productos-tab #panel-mis-productos {
    grid-area: products;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  #productos-tab #panel-mis-productos > .panel-body {
    min-height: 0;
    flex: 1 1 auto;
  }
  #productos-tab .products-grid #panel-servicios {
    grid-area: services;
    order: initial;
    width: auto !important;
    min-width: 0;
    height: 100%;
    min-height: 216px;
    max-height: none;
    margin: 0 !important;
    align-self: stretch;
  }
  #productos-tab #panel-componentes {
    grid-area: components;
    min-width: 0;
    height: 100%;
    min-height: 216px;
    display: flex;
    flex-direction: column;
  }
  #productos-tab #panel-componentes > .panel-body {
    min-height: 0;
    flex: 1 1 auto;
    overflow: auto;
  }
  /* Al desplegar un formulario, el panel afectado puede crecer sin ocultar sus campos. */
  #productos-tab .products-grid #panel-servicios:has(#svc-form:not(.hidden)),
  #productos-tab #panel-componentes:has(#k-product-form:not(.hidden)) {
    height: auto;
    max-height: none;
  }
  @media (max-width: 920px) {
    #productos-tab .products-grid {
      grid-template-columns: minmax(0, 1fr) !important;
      grid-template-rows: auto !important;
      grid-template-areas:
        "products"
        "services"
        "components";
    }
    #productos-tab #panel-mis-productos,
    #productos-tab .products-grid #panel-servicios,
    #productos-tab #panel-componentes {
      height: auto;
      min-height: 0;
      max-height: none;
    }
  }

/* Bloque de estilos 88: services-vertical-scroll-list */
/* Misma altura compacta que el panel de Monedas. */
  #productos-tab .products-grid #panel-servicios {
    height: 216px !important;
    min-height: 216px !important;
    max-height: 216px !important;
    align-self: start;
  }
  #productos-tab .products-grid #panel-servicios .panel-body {
    overflow: hidden !important;
  }
  #productos-tab .products-grid #panel-servicios .services-list-wrapper {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow: hidden;
  }
  #productos-tab .products-grid #panel-servicios #servicios-list {
    display: flex !important;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 5px !important;
    padding: 0 2px 1px 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(140,255,0,.65) transparent;
  }
  #productos-tab .products-grid #panel-servicios #servicios-list::-webkit-scrollbar { width: 5px; }
  #productos-tab .products-grid #panel-servicios #servicios-list::-webkit-scrollbar-track { background: transparent; }
  #productos-tab .products-grid #panel-servicios #servicios-list::-webkit-scrollbar-thumb { background: rgba(140,255,0,.65); border-radius: 999px; }
  #productos-tab .products-grid #panel-servicios .service-card {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 48px !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 5px 7px !important;
    border-radius: 7px !important;
  }
  #productos-tab .products-grid #panel-servicios .card-top-section {
    min-width: 0;
    gap: 6px;
  }
  #productos-tab .products-grid #panel-servicios .card-icon-container {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
  }
  #productos-tab .products-grid #panel-servicios .card-title { font-size: 0.60rem !important; }
  #productos-tab .products-grid #panel-servicios .card-subtitle { font-size: 0.45rem !important; }
  #productos-tab .products-grid #panel-servicios .card-bottom-section { margin-left: 6px !important; gap: 4px; }
  #productos-tab .products-grid #panel-servicios .card-percentage-box { min-width: 28px; height: 20px; font-size: 0.50rem !important; }
  #productos-tab .products-grid #panel-servicios .card-btn-edit,
  #productos-tab .products-grid #panel-servicios .card-btn-delete { width: 20px; height: 20px; min-width: 20px; }
  #productos-tab .products-grid #panel-servicios #servicios-list > p {
    min-height: 100%;
    display: grid;
    place-items: center;
  }
  /* El formulario conserva espacio adicional temporalmente cuando se abre. */
  #productos-tab .products-grid #panel-servicios:has(#svc-form:not(.hidden)) {
    height: auto !important;
    max-height: calc(100vh - 132px) !important;
  }
  body.light-mode #productos-tab .products-grid #panel-servicios #servicios-list {
    scrollbar-color: rgba(0,0,0,.42) transparent;
  }
  body.light-mode #productos-tab .products-grid #panel-servicios #servicios-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,.42); }

/* Bloque de estilos 89: products-secondary-column-alignment */
/* La columna derecha queda independiente del alto variable de Mis Productos. */
  #productos-tab .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: auto !important;
    grid-template-areas: "products secondary" !important;
    align-items: start !important;
  }
  #productos-tab #panel-mis-productos { grid-area: products; }
  #productos-tab #productos-secondary-column {
    grid-area: secondary;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  #productos-tab #productos-secondary-column #panel-servicios,
  #productos-tab #productos-secondary-column #panel-componentes {
    grid-area: auto;
    width: 100% !important;
    height: 216px !important;
    min-height: 216px !important;
    max-height: 216px !important;
    margin: 0 !important;
    flex: 0 0 216px !important;
    align-self: stretch;
  }
  #productos-tab #productos-secondary-column #panel-componentes {
    display: flex;
    flex-direction: column;
  }
  #productos-tab #productos-secondary-column #panel-componentes > .panel-body {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
  }
  #productos-tab #productos-secondary-column #panel-servicios:has(#svc-form:not(.hidden)),
  #productos-tab #productos-secondary-column #panel-componentes:has(#k-product-form:not(.hidden)) {
    height: auto !important;
    max-height: calc(100vh - 132px) !important;
    flex-basis: auto !important;
  }
  @media (max-width: 920px) {
    #productos-tab .products-grid {
      grid-template-columns: minmax(0, 1fr) !important;
      grid-template-areas: "products" "secondary" !important;
    }
    #productos-tab #productos-secondary-column #panel-servicios,
    #productos-tab #productos-secondary-column #panel-componentes {
      height: auto !important;
      min-height: 0 !important;
      max-height: none !important;
      flex-basis: auto !important;
    }
  }

/* Bloque de estilos 90: products-secondary-column-full-height */
/* Separación equivalente a las herramientas laterales, con una columna derecha a altura completa. */
  #productos-tab .products-grid { align-items: stretch !important; }
  #productos-tab #productos-secondary-column {
    height: 100%;
    min-height: 0;
    gap: 10px;
  }
  #productos-tab #productos-secondary-column #panel-servicios {
    height: 216px !important;
    min-height: 216px !important;
    max-height: 216px !important;
    flex: 0 0 216px !important;
  }
  #productos-tab #productos-secondary-column #panel-componentes {
    height: auto !important;
    min-height: 216px !important;
    max-height: none !important;
    flex: 1 1 auto !important;
  }
  #productos-tab #productos-secondary-column #panel-componentes > .panel-body {
    min-height: 0;
    overflow-y: auto;
  }
  #productos-tab #productos-secondary-column #panel-servicios:has(#svc-form:not(.hidden)),
  #productos-tab #productos-secondary-column #panel-componentes:has(#k-product-form:not(.hidden)) {
    height: auto !important;
    max-height: calc(100vh - 132px) !important;
    flex: 0 0 auto !important;
  }
  @media (max-width: 920px) {
    #productos-tab #productos-secondary-column { height: auto; gap: 10px; }
    #productos-tab #productos-secondary-column #panel-componentes {
      height: auto !important;
      min-height: 0 !important;
      flex: 0 0 auto !important;
    }
  }

/* Bloque de estilos 91: services-header-search-alignment */
/* El encabezado y el corte visual coinciden con la estructura de Mis Productos. */
  #productos-tab #productos-secondary-column #panel-servicios > .panel-header {
    min-height: 0;
    height: auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex: 0 0 auto;
    box-sizing: border-box;
  }
  #productos-tab #productos-secondary-column #panel-servicios > .panel-header > svg {
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
  }
  #productos-tab #productos-secondary-column #panel-servicios > .panel-header .panel-title {
    line-height: 1.15 !important;
    margin: 0;
  }
  #productos-tab #productos-secondary-column #panel-servicios > .panel-body {
    padding: 20px;
  }
  /* La búsqueda y el botón mantienen la misma composición horizontal del panel Mis Productos. */
  #productos-tab #productos-secondary-column #panel-servicios .services-toolbar {
    gap: 10px;
    margin: 0 0 16px;
  }
  #productos-tab #productos-secondary-column #panel-servicios #svc-search {
    height: auto;
    min-height: 0;
    padding: 10px 14px;
    border-radius: 7px !important;
    font-size: 0.78rem;
    font-weight: 700;
  }
  #productos-tab #productos-secondary-column #panel-servicios #svc-toggle-form {
    height: auto;
    min-height: 0;
    min-width: auto;
    padding: 10px 18px !important;
    border-radius: 7px !important;
    font-size: 0.7rem !important;
    letter-spacing: normal;
  }
  @media (max-width: 920px) {
    #productos-tab #productos-secondary-column #panel-servicios > .panel-header { padding: 16px 20px; }
    #productos-tab #productos-secondary-column #panel-servicios > .panel-body { padding: 20px; }
  }

/* Bloque de estilos 92: services-header-thickness-match */
/* Ambos encabezados comparten el mismo alto de caja y línea divisoria. */
  #productos-tab #panel-mis-productos > .panel-header,
  #productos-tab #productos-secondary-column #panel-servicios > .panel-header {
    box-sizing: border-box;
    height: 64px !important;
    min-height: 64px !important;
    padding: 0 20px !important;
    border-bottom: 1px solid var(--black-5) !important;
    display: flex;
    align-items: center;
  }
  #productos-tab #productos-secondary-column #panel-servicios > .panel-header {
    justify-content: flex-start;
    gap: 10px;
  }
  #productos-tab #productos-secondary-column #panel-servicios > .panel-header > svg {
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px;
  }
  #productos-tab #productos-secondary-column #panel-servicios > .panel-header .panel-title {
    font-size: 1.08rem !important;
    font-weight: 800 !important;
    letter-spacing: 1.4px !important;
    line-height: 1.15 !important;
  }

/* Bloque de estilos 93: products-services-invoice-title-tone */
/* Mismo tono visual atenuado del título Nueva Factura. */
  #productos-tab #panel-mis-productos .inventory-heading,
  #productos-tab #panel-componentes .inventory-heading,
  #productos-tab #productos-secondary-column #panel-servicios .panel-title {
    color: var(--adaptive-text) !important;
    opacity: 0.6 !important;
  }
  #productos-tab #panel-mis-productos .inventory-heading .inventory-heading-icon,
  #productos-tab #panel-componentes .inventory-heading .inventory-heading-icon,
  #productos-tab #productos-secondary-column #panel-servicios > .panel-header > svg {
    color: var(--adaptive-text) !important;
    stroke: currentColor !important;
    fill: currentColor;
    opacity: 0.6;
  }
  body.light-mode #productos-tab #panel-mis-productos .inventory-heading,
  body.light-mode #productos-tab #panel-componentes .inventory-heading,
  body.light-mode #productos-tab #productos-secondary-column #panel-servicios .panel-title,
  body.light-mode #productos-tab #panel-mis-productos .inventory-heading .inventory-heading-icon,
  body.light-mode #productos-tab #panel-componentes .inventory-heading .inventory-heading-icon,
  body.light-mode #productos-tab #productos-secondary-column #panel-servicios > .panel-header > svg {
    color: var(--adaptive-text) !important;
  }

/* Bloque de estilos 94: services-controls-match-products */
/* Controles equivalentes a #j-search y #j-add-product. */
  #productos-tab #productos-secondary-column #panel-servicios .services-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
  }
  #productos-tab #productos-secondary-column #panel-servicios #svc-search {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding: 10px 14px !important;
    border-radius: 7px !important;
    font-family: var(--font-body);
    font-size: 0.78rem !important;
    font-weight: 700;
    line-height: 1.2;
  }
  #productos-tab #productos-secondary-column #panel-servicios #svc-toggle-form {
    flex: 0 0 auto;
    min-width: 0;
    padding: 10px 18px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-family: var(--font-body);
    font-size: 0.7rem !important;
    font-weight: 700;
    letter-spacing: 2px !important;
    line-height: normal;
    text-transform: uppercase;
    white-space: nowrap;
  }
  /* Comparte el mismo radio de los botones Nuevo de Mis Productos y Componentes. */
  #market-app #productos-tab #panel-servicios #svc-toggle-form {
    border-radius: 8px !important;
  }
  #productos-tab #productos-secondary-column #panel-servicios #svc-toggle-form .app-add-icon {
    width: 1.45em !important;
    height: 1.45em !important;
    margin: 0 !important;
    color: #000000 !important;
  }

/* Bloque de estilos 95: precision-panel-top-alignment */
/* Productos comparte el mismo punto de inicio vertical que los paneles superiores de Facturación. */
  #productos-tab .prod-top-grid {
    margin-bottom: 0 !important;
  }
  #productos-tab .products-grid {
    margin-top: 0 !important;
  }
  /* El lateral de Productos usa el mismo relleno superior de 14 px que el bloque de Cajero. */
  #right-sidebar .product-side-tools {
    padding: 14px 13px 13px !important;
  }

/* Bloque de estilos 96: services-item-hierarchical-layout */
/* Imagen y datos a la izquierda; ganancia centrada y acciones al extremo derecho. */
  #productos-tab #productos-secondary-column #panel-servicios .service-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: 8px;
    height: 52px !important;
    min-height: 52px !important;
    flex-basis: 52px !important;
    padding: 6px 7px !important;
  }
  #productos-tab #productos-secondary-column #panel-servicios .card-top-section {
    grid-column: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 7px;
  }
  #productos-tab #productos-secondary-column #panel-servicios .card-icon-container {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }
  #productos-tab #productos-secondary-column #panel-servicios .card-info-right {
    min-width: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    overflow: hidden;
  }
  #productos-tab #productos-secondary-column #panel-servicios .card-title {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.62rem !important;
    line-height: 1.1;
  }
  #productos-tab #productos-secondary-column #panel-servicios .card-subtitle {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.47rem !important;
    line-height: 1.1;
  }
  #productos-tab #productos-secondary-column #panel-servicios .card-bottom-section {
    display: contents;
    margin: 0 !important;
  }
  #productos-tab #productos-secondary-column #panel-servicios .card-percentage-box {
    grid-column: 2;
    justify-self: center;
    display: grid;
    place-items: center;
    min-width: 32px;
    height: 24px;
    padding: 0 5px;
    border: 1px solid currentColor;
    border-radius: 6px;
    background: rgba(0,0,0,.16);
    font-size: 0.54rem !important;
    font-weight: 900;
    line-height: 1;
  }
  #productos-tab #productos-secondary-column #panel-servicios .card-actions {
    grid-column: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
  }
  #productos-tab #productos-secondary-column #panel-servicios .card-btn-edit,
  #productos-tab #productos-secondary-column #panel-servicios .card-btn-delete {
    width: 22px;
    height: 22px;
    min-width: 22px;
    padding: 0;
    display: grid;
    place-items: center;
  }
  #productos-tab #productos-secondary-column #panel-servicios .card-btn-edit i,
  #productos-tab #productos-secondary-column #panel-servicios .card-btn-delete i { font-size: 0.60rem; }

/* Bloque de estilos 97: smart-weight-invoice-style */
.smart-weight-field { isolation: isolate; }
  .smart-weight-field .smart-kg-input {
    caret-color: var(--green);
    padding-right: 46px !important;
  }
  .smart-weight-field .smart-weight-unit {
    position: absolute !important;
    right: 6px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 5 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 31px;
    height: 24px;
    padding: 0 5px;
    border: 1px solid rgba(174,255,0,0.88);
    border-radius: 6px;
    background: var(--green, #AEFF00);
    color: #071000 !important;
    font-family: var(--font-body);
    font-size: 0.67rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.7px !important;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: none;
    box-shadow: 0 1px 8px rgba(174,255,0,0.32);
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: none;
  }
  #kg-weight-input.smart-kg-input {
    padding-left: 8px !important;
    padding-right: 48px !important;
  }
  /* Las cantidades por peso y líquidos comparten exactamente el cuerpo de Precio Bs. */
  #invoice-items tr[data-unidad-medida="Kg."] .item-price,
  #invoice-items tr[data-unidad-medida="Lt."] .item-price,
  #invoice-items tr[data-unidad-medida="Kg."] .smart-weight-field,
  #invoice-items tr[data-unidad-medida="Kg."] .item-quantity,
  #invoice-items tr[data-unidad-medida="Lt."] .item-quantity {
    width: 100px !important;
    min-width: 100px !important;
    height: 37px !important;
    min-height: 37px !important;
    box-sizing: border-box !important;
  }
  #invoice-items tr[data-unidad-medida="Kg."] .smart-kg-input {
    width: 100% !important;
    min-width: 100% !important;
  }
  /* En modo claro, Gr/Kg se muestra en negro con texto blanco para mayor contraste. */
  body.light-mode .smart-weight-field .smart-weight-unit {
    background: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
    box-shadow: 0 1px 7px rgba(0,0,0,0.28) !important;
  }

/* Bloque de estilos 98: header-profile-placeholder-style */
.app-header .header-profile-placeholder {
    position: absolute;
    top: 50%;
    right: 28px;
    z-index: 8;
    width: 44px;
    height: 44px;
    box-sizing: border-box;
    transform: translateY(-50%);
    border: 2px solid rgba(255,255,255,.46);
    border-radius: 50%;
    background: transparent;
    pointer-events: none;
  }
  /* Marco independiente: cuadrado real, vacío y sin movimiento al interactuar. */
  #market-app .app-header .header-terms-trigger {
    position: absolute !important;
    top: calc(50% - 22px) !important;
    right: 84px !important;
    z-index: 9;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    color: rgba(255,255,255,.92);
    background-color: transparent !important;
    background-image: none !important;
    border: 2px solid rgba(255,255,255,.46) !important;
    border-radius: 3px !important;
    box-shadow: none !important;
    cursor: pointer;
    transform: none !important;
    transition: none !important;
  }
  #market-app .app-header .header-terms-trigger > svg {
    display: block !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    flex: 0 0 34px;
  }
  #market-app .app-header .header-terms-trigger:hover,
  #market-app .app-header .header-terms-trigger:focus-visible,
  #market-app .app-header .header-terms-trigger:active {
    color: #C8F800;
    background-color: transparent !important;
    background-image: none !important;
    border-color: #C8F800 !important;
    box-shadow: none !important;
    outline: none;
    transform: none !important;
  }
  .app-header .header-terms-tooltip {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    z-index: 10;
    width: max-content;
    max-width: 220px;
    padding: 8px 10px;
    color: #000000;
    background: #C8F800;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: .55rem;
    font-weight: 900;
    letter-spacing: .85px;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
    white-space: nowrap;
  }
  .app-header .header-terms-trigger:hover .header-terms-tooltip,
  .app-header .header-terms-trigger:focus-visible .header-terms-tooltip {
    opacity: 1;
    visibility: visible;
  }
  body.light-mode .app-header .header-profile-placeholder {
    border-color: rgba(0,0,0,.54);
  }
  body.light-mode #market-app .app-header .header-terms-trigger {
    color: #000000;
    border-color: rgba(0,0,0,.56) !important;
  }
  body.light-mode #market-app .app-header .header-terms-trigger:hover,
  body.light-mode #market-app .app-header .header-terms-trigger:focus-visible,
  body.light-mode #market-app .app-header .header-terms-trigger:active {
    color: #000000;
    border-color: #000000 !important;
    background: transparent !important;
  }
  body.light-mode .app-header .header-terms-tooltip {
    color: #ffffff;
    background: #000000;
  }
  @media (max-width: 620px) {
    .app-header .header-profile-placeholder {
      right: 14px;
      width: 36px;
      height: 36px;
      border-width: 1.5px;
    }
    #market-app .app-header .header-terms-trigger {
      top: calc(50% - 18px) !important;
      right: 60px !important;
      width: 36px !important;
      height: 36px !important;
      border-radius: 3px !important;
    }
    #market-app .app-header .header-terms-trigger > svg { width: 28px !important; height: 28px !important; min-width: 28px !important; min-height: 28px !important; flex-basis: 28px; }
    .app-header .header-terms-tooltip {
      right: -4px;
      font-size: .49rem;
      letter-spacing: .55px;
    }
  }

/* Bloque de estilos 99: invoice-bulk-options-row-style */
/* Las opciones de bulto permanecen en una sola fila para no extender verticalmente el resultado. */
  #invoice-product-suggestions .invoice-bulk-options-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    width: 216px;
    min-width: 216px;
    flex: 0 0 216px;
    align-items: stretch;
  }
  #invoice-product-suggestions .invoice-bulk-options-row .bulk-btn-action {
    min-width: 0;
    padding: 3px 4px !important;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  @media (max-width: 620px) {
    #invoice-product-suggestions .invoice-bulk-options-row {
      width: 192px;
      min-width: 192px;
      flex-basis: 192px;
      gap: 3px;
    }
    #invoice-product-suggestions .invoice-bulk-options-row .bulk-btn-action {
      font-size: 0.55rem !important;
      padding: 3px 2px !important;
    }
  }

/* Bloque de estilos 100: unified-add-icons-style */
.app-add-icon {
    display: inline-block;
    width: 1.38em;
    height: 1.38em;
    vertical-align: -0.18em;
    flex: 0 0 auto;
    color: #C8F800 !important;
  }
  body.light-mode .app-add-icon { color: #000000 !important; }
  #dom-toggle-form::after,
  #cat-toggle-form::after { content: none !important; display: none !important; }
  #dom-toggle-form .app-add-icon,
  #cat-toggle-form .app-add-icon,
  .moneda-header-create .app-add-icon { width: 22px; height: 22px; vertical-align: initial; }
  #market-app #right-sidebar .product-side-tools #panel-monedas .moneda-header-create .app-add-icon,
  #market-app #right-sidebar .product-side-tools #panel-categorias #dom-toggle-form .app-add-icon,
  #market-app #right-sidebar .product-side-tools #panel-etiquetas #cat-toggle-form .app-add-icon { color: #000000 !important; }
  #svc-add-monto .app-add-icon,
  .cashier-add-btn .app-add-icon { width: 24px; height: 24px; vertical-align: initial; }
  #j-add-product .app-add-icon,
  #k-add-product .app-add-icon,
  #moneda-toggle-form .app-add-icon { margin-right: 5px; }
  #j-add-product .app-add-icon,
  #k-add-product .app-add-icon { color: #000000 !important; }

/* Bloque de estilos 101: unified-edit-icons-style */
.app-edit-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.13em;
    flex: 0 0 auto;
  }
  .card-btn-edit .app-edit-icon { width: .72rem; height: .72rem; vertical-align: initial; }
  #productos-tab #productos-secondary-column #panel-servicios .card-btn-edit .app-edit-icon { width: .60rem; height: .60rem; }
  #right-sidebar .product-side-tools #monedas-list .moneda-mini-btn[data-moneda-edit]::before { content: none; display: none; }
  #right-sidebar .product-side-tools #monedas-list .moneda-mini-btn[data-moneda-edit] .app-edit-icon { width: 13px; height: 13px; vertical-align: middle; }

/* Bloque de estilos 102: invoice-product-search-camera-style */
#market-app .invoice-product-search-container .invoice-search-input-wrap {
    position: relative;
    width: 100%;
  }
  #market-app .invoice-product-search-container #invoice-product-search {
    padding-right: 48px !important;
  }
  #market-app .invoice-product-search-container .invoice-search-camera-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    z-index: 2;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C8F800;
    pointer-events: none;
    transform: translateY(-50%);
  }
  #market-app .invoice-product-search-container .invoice-search-camera-icon svg {
    display: block;
    width: 22px;
    height: 22px;
  }
  body.light-mode #market-app .invoice-product-search-container .invoice-search-camera-icon {
    color: #000000;
  }

/* Bloque de estilos 103: invoice-product-search-neon-style */
/* El color del borde permanece durante la escritura; el destello solo anuncia la entrada a Facturación. */
  /* Prioridad específica sobre las superficies oscuras generales de los campos. */
  body:not(.light-mode) #market-app #invoice-product-search.invoice-search-neon-active,
  body:not(.light-mode) #market-app #invoice-product-search.invoice-search-neon-active:focus {
    border-color: #8CFF00 !important;
    box-shadow: none !important;
    outline: none !important;
  }
  #invoice-product-search.invoice-search-neon-callout {
    animation: invoiceProductSearchDarkPulse 3s ease-in-out 1;
  }
  @keyframes invoiceProductSearchDarkPulse {
    0%, 100% { filter: drop-shadow(0 0 3px rgba(140,255,0,.28)); }
    45% { filter: drop-shadow(0 0 5px rgba(140,255,0,.98)) drop-shadow(0 0 14px rgba(140,255,0,.82)); }
  }
  body.light-mode #invoice-product-search.invoice-search-neon-active {
    border-color: #0300C2 !important;
    box-shadow: none !important;
  }
  body.light-mode #invoice-product-search.invoice-search-neon-callout {
    animation-name: invoiceProductSearchLightPulse;
  }
  @keyframes invoiceProductSearchLightPulse {
    0%, 100% { filter: drop-shadow(0 0 3px rgba(3,0,194,.24)); }
    45% { filter: drop-shadow(0 0 5px rgba(3,0,194,.98)) drop-shadow(0 0 14px rgba(3,0,194,.78)); }
  }

/* Bloque de estilos 104: services-panel-bottom-alignment-final */
/* Refuerzo final: Servicios comparte el borde inferior de la fila superior con Monedas. */
  #productos-tab .prod-top-grid {
    align-items: stretch !important;
  }
  #productos-tab .prod-top-grid #panel-servicios {
    height: auto !important;
    min-height: 216px !important;
    max-height: none !important;
    align-self: stretch !important;
  }
  #productos-tab #panel-mis-productos #j-add-product .app-add-icon,
  #productos-tab #panel-componentes #k-add-product .app-add-icon {
    color: #000000 !important;
    stroke: #000000 !important;
  }
  #productos-tab #panel-mis-productos #j-add-product .app-add-icon g,
  #productos-tab #panel-componentes #k-add-product .app-add-icon g,
  #productos-tab #panel-mis-productos #j-add-product .app-add-icon line,
  #productos-tab #panel-componentes #k-add-product .app-add-icon line,
  #productos-tab #panel-mis-productos #j-add-product .app-add-icon circle,
  #productos-tab #panel-componentes #k-add-product .app-add-icon circle {
    stroke: #000000 !important;
  }
  #productos-tab #panel-mis-productos #j-add-product .app-add-icon circle[fill="currentColor"],
  #productos-tab #panel-componentes #k-add-product .app-add-icon circle[fill="currentColor"] {
    fill: #000000 !important;
  }
  /* Los tres botones Nuevo comparten una forma tipo píldora con laterales completamente redondos. */
  #productos-tab #panel-mis-productos #j-add-product,
  #productos-tab #panel-componentes #k-add-product,
  #productos-tab #productos-secondary-column #panel-servicios #svc-toggle-form {
    border-radius: 999px !important;
  }
  /* La búsqueda de servicios conserva los mismos laterales completamente redondos. */
  #productos-tab #productos-secondary-column #panel-servicios #svc-search {
    border-radius: 999px !important;
  }
  /* El ícono de registrar cajero se mantiene negro sobre su botón verde en cualquier modo. */
  #market-app #right-sidebar #cajero-add-btn .app-add-icon,
  #market-app #right-sidebar #cajero-add-btn .app-add-icon g,
  #market-app #right-sidebar #cajero-add-btn .app-add-icon line,
  #market-app #right-sidebar #cajero-add-btn .app-add-icon circle {
    color: #000000 !important;
    stroke: #000000 !important;
  }
  #market-app #right-sidebar #cajero-add-btn .app-add-icon circle[fill="currentColor"] {
    fill: #000000 !important;
  }
  /* Categorías y Etiquetas: todos los ítems, incluido Todos, comparten laterales completamente redondos. */
  #right-sidebar .product-side-tools #dominios-list > button,
  #right-sidebar .product-side-tools #dominios-list > div:has(.dom-edit-btn) > div:first-child,
  #right-sidebar .product-side-tools #dominios-list > div:has(.dom-edit-btn) > div:nth-child(2) span,
  #right-sidebar .product-side-tools #categorias-list > button,
  #right-sidebar .product-side-tools #categorias-list > div:has(.cat-filter-btn),
  #right-sidebar .product-side-tools #categorias-list > div:has(.cat-filter-btn) .cat-filter-btn {
    border-radius: 999px !important;
  }
  /* Botón de modo visual: mismo marco que Términos y Condiciones, a su izquierda. */
  #market-app .app-header .header-theme-trigger {
    position: absolute !important;
    top: calc(50% - 22px) !important;
    right: 140px !important;
    z-index: 9;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    color: #C8F800 !important;
    background: transparent !important;
    border: 2px solid rgba(255,255,255,.46) !important;
    border-radius: 3px !important;
    box-shadow: none !important;
    cursor: pointer;
    transform: none !important;
    transition: none !important;
  }
  #market-app .app-header .header-theme-trigger:hover,
  #market-app .app-header .header-theme-trigger:focus-visible,
  #market-app .app-header .header-theme-trigger:active {
    color: #C8F800 !important;
    background: transparent !important;
    border-color: #C8F800 !important;
    outline: none;
    box-shadow: none !important;
    transform: none !important;
  }
  #market-app .app-header .header-theme-trigger .header-theme-icon {
    width: 29px !important;
    height: 29px !important;
    display: block;
    flex: 0 0 29px;
  }
  /* Prioridad frente a la regla heredada de Términos que muestra todos los SVG. */
  #market-app .app-header .header-theme-trigger .header-theme-sun { display: block !important; }
  #market-app .app-header .header-theme-trigger .header-theme-moon { display: none !important; }
  body.light-mode #market-app .app-header .header-theme-trigger {
    color: #000000 !important;
    border-color: rgba(0,0,0,.56) !important;
  }
  body.light-mode #market-app .app-header .header-theme-trigger:hover,
  body.light-mode #market-app .app-header .header-theme-trigger:focus-visible,
  body.light-mode #market-app .app-header .header-theme-trigger:active {
    color: #000000 !important;
    border-color: #000000 !important;
  }
  body.light-mode #market-app .app-header .header-theme-trigger .header-theme-sun { display: none !important; }
  body.light-mode #market-app .app-header .header-theme-trigger .header-theme-moon { display: block !important; }
  /* Se elimina cualquier apariencia nativa para igualar exactamente el marco de Términos. */
  #market-app .app-header .header-terms-trigger,
  #market-app .app-header .header-theme-trigger {
    box-sizing: border-box !important;
    aspect-ratio: 1 / 1;
    border-style: solid !important;
    border-radius: 3px !important;
  }
  #market-app .app-header .header-theme-trigger {
    appearance: none !important;
    -webkit-appearance: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
  }
  /* Icono de eliminación unificado en todos los módulos. */
  .app-delete-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    flex: 0 0 auto;
    vertical-align: -0.125em;
  }
  #right-sidebar .product-side-tools :is(.dom-delete-btn,.cat-delete-btn) .app-delete-icon,
  #right-sidebar .cashier-remove-btn .app-delete-icon,
  #right-sidebar .client-delete-action .app-delete-icon,
  #right-sidebar .product-side-tools #monedas-list [data-moneda-delete] .app-delete-icon {
    width: 13px !important;
    height: 13px !important;
  }
  #productos-tab #panel-servicios .card-btn-delete .app-delete-icon {
    width: 0.7rem !important;
    height: 0.7rem !important;
  }
  #right-sidebar .product-side-tools #monedas-list [data-moneda-delete] .app-delete-icon {
    color: currentColor !important;
  }
  /* Categorías y Etiquetas neutras: sin rellenos de color, solo contornos visibles. */
  #right-sidebar .product-side-tools #dominios-list > button,
  #right-sidebar .product-side-tools #categorias-list > button,
  #right-sidebar .product-side-tools #dominios-list > div:has(.dom-edit-btn) > div:first-child,
  #right-sidebar .product-side-tools #categorias-list > div:has(.cat-filter-btn),
  #right-sidebar .product-side-tools #dominios-list > div:has(.dom-edit-btn) > div:nth-child(2) span {
    background: transparent !important;
    background-color: transparent !important;
    border: 1px solid rgba(255,255,255,.35) !important;
    box-shadow: none !important;
    color: #ffffff !important;
  }
  #right-sidebar .product-side-tools #categorias-list > div:has(.cat-filter-btn) .cat-filter-btn {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #ffffff !important;
  }
  #right-sidebar .product-side-tools #dominios-list > div:has(.dom-edit-btn) > div:first-child :is(span,svg,.dom-edit-btn),
  #right-sidebar .product-side-tools #categorias-list > div:has(.cat-filter-btn) .cat-filter-btn span {
    color: #ffffff !important;
    stroke: currentColor !important;
  }
  #right-sidebar .product-side-tools #dominios-list > div:has(.dom-edit-btn) > div:nth-child(2) span {
    outline: none !important;
  }
  #right-sidebar .product-side-tools #dominios-list > div:has(.dom-edit-btn) > div:nth-child(2) {
    border-color: rgba(255,255,255,.35) !important;
  }
  body.light-mode #right-sidebar .product-side-tools #dominios-list > button,
  body.light-mode #right-sidebar .product-side-tools #categorias-list > button,
  body.light-mode #right-sidebar .product-side-tools #dominios-list > div:has(.dom-edit-btn) > div:first-child,
  body.light-mode #right-sidebar .product-side-tools #categorias-list > div:has(.cat-filter-btn),
  body.light-mode #right-sidebar .product-side-tools #dominios-list > div:has(.dom-edit-btn) > div:nth-child(2) span {
    background: transparent !important;
    background-color: transparent !important;
    border-color: rgba(0,0,0,.35) !important;
    color: #000000 !important;
  }
  body.light-mode #right-sidebar .product-side-tools #categorias-list > div:has(.cat-filter-btn) .cat-filter-btn,
  body.light-mode #right-sidebar .product-side-tools #dominios-list > div:has(.dom-edit-btn) > div:first-child :is(span,svg,.dom-edit-btn),
  body.light-mode #right-sidebar .product-side-tools #categorias-list > div:has(.cat-filter-btn) .cat-filter-btn span {
    color: #000000 !important;
    stroke: currentColor !important;
  }
  body.light-mode #right-sidebar .product-side-tools #dominios-list > div:has(.dom-edit-btn) > div:nth-child(2) {
    border-color: rgba(0,0,0,.35) !important;
  }
  /* Íconos de eliminación principales más visibles; el panel lateral conserva su tamaño compacto. */
  #market-app .app-delete-icon {
    width: 16px !important;
    height: 16px !important;
  }
  #market-app #productos-tab #panel-servicios .card-btn-delete .app-delete-icon {
    width: 16px !important;
    height: 16px !important;
  }
  #market-app #right-sidebar .app-delete-icon,
  #market-app #right-sidebar .product-side-tools #monedas-list [data-moneda-delete] .app-delete-icon {
    width: 13px !important;
    height: 13px !important;
  }
  /* Botón de modo: neutro en reposo, verde únicamente al interactuar. */
  #market-app .app-header .header-theme-trigger {
    color: rgba(255,255,255,.92) !important;
    border-color: rgba(255,255,255,.46) !important;
  }
  body.light-mode #market-app .app-header .header-theme-trigger {
    color: #000000 !important;
    border-color: rgba(0,0,0,.56) !important;
  }
  #market-app .app-header .header-theme-trigger:hover,
  #market-app .app-header .header-theme-trigger:focus-visible,
  #market-app .app-header .header-theme-trigger:active,
  body.light-mode #market-app .app-header .header-theme-trigger:hover,
  body.light-mode #market-app .app-header .header-theme-trigger:focus-visible,
  body.light-mode #market-app .app-header .header-theme-trigger:active {
    color: #C8F800 !important;
    border-color: #C8F800 !important;
    background: transparent !important;
  }
  .app-header .header-theme-tooltip {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    z-index: 10;
    width: max-content;
    max-width: 220px;
    padding: 8px 10px;
    color: #000000;
    background: #C8F800;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: .55rem;
    font-weight: 900;
    letter-spacing: .85px;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
    white-space: nowrap;
  }
  .app-header .header-theme-trigger:hover .header-theme-tooltip,
  .app-header .header-theme-trigger:focus-visible .header-theme-tooltip {
    opacity: 1;
    visibility: visible;
  }
  /* Altura medida para que el borde inferior de Servicios coincida con Monedas en escritorio. */
  @media (min-width: 921px) {
    #productos-tab #productos-secondary-column #panel-servicios {
      height: 312px !important;
      min-height: 312px !important;
      max-height: 312px !important;
      flex: 0 0 312px !important;
    }
  }
  /* Menú visual de perfil: por ahora solo presenta Cerrar sesión sin ejecutar una acción. */
  #market-app .app-header #header-profile-trigger {
    pointer-events: auto !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    background: transparent !important;
  }
  #market-app .app-header .header-profile-options {
    position: absolute;
    top: calc(50% + 31px);
    right: 28px;
    z-index: 30;
    width: 164px;
    padding: 7px;
    box-sizing: border-box;
    color: rgba(255,255,255,.94);
    background: #050505;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 5px;
    box-shadow: 0 10px 28px rgba(0,0,0,.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    pointer-events: none;
    transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
  }
  #market-app .app-header .header-profile-options.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  #market-app .app-header .header-profile-logout-option {
    width: 100%;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    padding: 8px 9px;
    box-sizing: border-box;
    color: #ef4444;
    background: transparent;
    border: 0;
    border-radius: 3px;
    cursor: default;
    font-family: var(--font-body);
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .7px;
    text-align: left;
  }
  #market-app .app-header .header-profile-logout-option svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  body.light-mode #market-app .app-header .header-profile-options {
    color: #111111;
    background: #ffffff;
    border-color: rgba(0,0,0,.12);
    box-shadow: 0 10px 28px rgba(0,0,0,.16);
  }
  /* Perfil rígido y menú de sesión como fila simple sin marco interno. */
  #market-app .app-header #header-profile-trigger,
  #market-app .app-header #header-profile-trigger:hover,
  #market-app .app-header #header-profile-trigger:focus,
  #market-app .app-header #header-profile-trigger:focus-visible,
  #market-app .app-header #header-profile-trigger:active {
    transform: translateY(-50%) !important;
    transition: none !important;
  }
  #market-app .app-header .header-profile-options {
    width: 208px;
    padding: 10px 14px;
  }
  #market-app .app-header .header-profile-logout-option {
    min-height: 38px;
    padding: 7px 0;
    gap: 10px;
    color: #ef4444 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transform: none !important;
    transition: opacity .15s ease !important;
  }
  #market-app .app-header .header-profile-logout-option:hover,
  #market-app .app-header .header-profile-logout-option:focus-visible,
  #market-app .app-header .header-profile-logout-option:active {
    color: #ef4444 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none;
    opacity: .72;
    transform: none !important;
  }
  @media (max-width: 620px) {
    #market-app .app-header .header-profile-options { width: 188px; }
  }
  /* Capa de concentración: difumina la aplicación sin cubrir la notificación de cierre. */
  #market-app .profile-logout-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1190;
    background: rgba(0,0,0,.12);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
  }
  #market-app .profile-logout-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  body.light-mode #market-app .profile-logout-backdrop {
    background: rgba(255,255,255,.16);
  }
  /* Notificación autónoma de cierre de sesión con fondo de aplicación difuminado. */
  #market-app .profile-logout-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1200;
    width: min(360px, calc(100vw - 32px));
    padding: 22px;
    box-sizing: border-box;
    color: #ffffff;
    background: #050505;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 7px;
    box-shadow: 0 18px 44px rgba(0,0,0,.42);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -46%) scale(.97);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  }
  #market-app .profile-logout-notification.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
  }
  #market-app .profile-logout-notification h2 {
    margin: 0 0 10px;
    color: inherit;
    font-family: var(--font-body);
    font-size: .88rem;
    font-weight: 900;
    letter-spacing: 1px;
  }
  #market-app .profile-logout-farewell {
    z-index: 1210;
    border-color: rgba(140,255,0,.52);
  }
  #market-app .profile-logout-farewell h2 {
    color: var(--green);
  }
  #market-app .profile-logout-farewell p {
    min-height: auto;
    margin-bottom: 0;
    color: rgba(255,255,255,.82);
  }
  body.light-mode #market-app .profile-logout-farewell {
    border-color: rgba(0,0,0,.48);
  }
  body.light-mode #market-app .profile-logout-farewell h2,
  body.light-mode #market-app .profile-logout-farewell p {
    color: #000000;
  }
  #market-app .profile-logout-notification p {
    min-height: 40px;
    margin: 0 0 18px;
    color: rgba(255,255,255,.7);
    font-size: .72rem;
    line-height: 1.5;
  }
  #market-app .profile-logout-actions {
    display: flex;
    gap: 9px;
  }
  #market-app .profile-logout-actions button {
    flex: 1 1 0;
    min-height: 36px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .8px;
    cursor: pointer;
  }
  #market-app #profile-logout-cancel {
    color: #ffffff;
    background: transparent;
    border: 1px solid rgba(255,255,255,.42);
  }
  #market-app #profile-logout-accept {
    color: #ffffff;
    background: #dc2626;
    border: 1px solid #dc2626;
  }
  body.light-mode #market-app .profile-logout-notification {
    color: #000000;
    background: #ffffff;
    border-color: rgba(0,0,0,.38);
    box-shadow: 0 18px 44px rgba(0,0,0,.18);
  }
  body.light-mode #market-app .profile-logout-notification p {
    color: rgba(0,0,0,.62);
  }
  body.light-mode #market-app #profile-logout-cancel {
    color: #000000;
    border-color: rgba(0,0,0,.42);
  }
  /* Divisores de encabezado sutiles y uniformes en modo claro. */
  body.light-mode #productos-tab #panel-mis-productos > .panel-header,
  body.light-mode #productos-tab #productos-secondary-column #panel-servicios > .panel-header {
    border-bottom-color: rgba(0,0,0,.12) !important;
  }
  @media (max-width: 620px) {
    #market-app .profile-logout-notification {
      width: min(330px, calc(100vw - 28px));
      padding: 18px;
    }
    #market-app .app-header .header-profile-options {
      top: calc(50% + 27px);
      right: 14px;
      width: 154px;
    }
    #market-app .app-header .header-theme-trigger {
      top: calc(50% - 18px) !important;
      right: 106px !important;
      width: 36px !important;
      height: 36px !important;
    }
    #market-app .app-header .header-theme-trigger .header-theme-icon {
      width: 24px !important;
      height: 24px !important;
      flex-basis: 24px;
    }
  }

/* Bloque de estilos 105: header-notifications-control-style */
/* Campana visual: ocupa el espacio entre Términos y el cambio de modo, sin comportamiento asignado. */
  #market-app .app-header #header-notifications-trigger {
    right: 140px !important;
  }
  #market-app .app-header .header-theme-trigger {
    right: 196px !important;
  }
  @media (max-width: 620px) {
    #market-app .app-header #header-notifications-trigger {
      top: calc(50% - 18px) !important;
      right: 106px !important;
      width: 36px !important;
      height: 36px !important;
    }
    #market-app .app-header .header-theme-trigger {
      right: 152px !important;
    }
  }

/* Bloque de estilos 106: login-light-white-background-style */
/* En modo claro la superficie completa de acceso permanece blanca, detrás de la imagen y del formulario. */
  body.light-mode #login-screen,
  body.light-mode #login-screen .login-bg,
  body.light-mode #login-screen .alcaur-login-left-image {
    background: #ffffff !important;
  }
  body.light-mode #login-screen::after {
    background: transparent !important;
  }

/* Bloque de estilos 107: stock-control-expiry-sidebar-style */
/* Control de Stock conserva su contenido central; la caducidad se muestra en el lateral derecho contextual. */
  #market-app #notificaciones-tab .stock-control-layout { display: block; }
  #market-app #notificaciones-tab .stock-control-main-panel {
    min-width: 0;
    min-height: 358px;
    margin: 0;
  }
  #market-app #notificaciones-tab .stock-control-main-panel > .panel-body { overflow: auto; }

  #right-sidebar .stock-expiry-side-tools {
    display: none;
    height: 100%;
    min-height: 0;
    flex-direction: column;
    gap: 14px;
    padding: 13px;
    box-sizing: border-box;
    overflow: hidden;
  }
  body.stock-tools-visible #right-sidebar .stock-expiry-side-tools { display: flex !important; }
  body.stock-tools-visible #right-sidebar .invoice-side-tools,
  body.stock-tools-visible #right-sidebar .product-side-tools { display: none !important; }
  #right-sidebar .stock-expiry-side-card {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-height: 0;
    padding: 14px 14px 10px;
    box-sizing: border-box;
    overflow: hidden;
    background: #000;
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 12px;
  }
  #right-sidebar .stock-expiry-heading {
    flex: 0 0 auto;
    margin-bottom: 8px;
    padding-bottom: 8px;
    font-family: var(--font-body);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.25;
    text-transform: uppercase;
  }
  #right-sidebar .stock-expired-card .stock-expiry-heading {
    color: #ff4444;
    border-bottom: 1px solid rgba(255,68,68,.2);
  }
  #right-sidebar .stock-upcoming-card .stock-expiry-heading {
    color: #ff6a00;
    border-bottom: 1px solid rgba(255,106,0,.2);
  }
  #right-sidebar .stock-expiry-list {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
    padding-right: 4px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.22) transparent;
  }
  #right-sidebar .stock-expiry-list::-webkit-scrollbar { width: 5px; }
  #right-sidebar .stock-expiry-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.22);
    border-radius: 999px;
  }
  body.light-mode #right-sidebar .stock-expiry-side-card {
    background: #fff;
    color: #000;
    border-color: rgba(0,0,0,.15);
    box-shadow: 0 2px 8px rgba(15,23,42,.07);
  }
  body.light-mode #right-sidebar .stock-expiry-list { scrollbar-color: rgba(0,0,0,.2) transparent; }
  body.light-mode #right-sidebar .stock-expiry-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,.2); }

/* Bloque de estilos 108: invoice-preview-light-details-style */
/* En modo claro, la información del producto se lee sobre blanco; la imagen conserva su degradado propio. */
  body.light-mode #market-app #inv-preview-filled > #inv-preview-details {
    background: #ffffff !important;
  }
  /* El precio en bolívares conserva el acento original en oscuro y gana contraste verde oscuro en claro. */
  body.light-mode #market-app #inv-preview-price {
    color: #026100 !important;
  }

/* Bloque de estilos 109: profile-menu-row-final */
/* Anulación final: fila de sesión limpia, sin píldora ni botón visible. */
  #market-app .app-header .header-profile-options > .header-profile-logout-option,
  #market-app .app-header .header-profile-options > .header-profile-logout-option:hover,
  #market-app .app-header .header-profile-options > .header-profile-logout-option:focus-visible,
  #market-app .app-header .header-profile-options > .header-profile-logout-option:active {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }
  @media (max-width: 620px) {
    #market-app .app-header .header-profile-options { width: 188px !important; }
  }

/* Bloque de estilos 110: profile-menu-grouped-layout */
/* Menú de perfil organizado por bloques; solo el cierre de sesión es interactivo. */
  #market-app .app-header .header-profile-options { width: 304px !important; padding: 12px 14px !important; }
  #market-app .app-header .profile-menu-identity { display:flex; align-items:center; gap:10px; padding:3px 0 11px; }
  #market-app .app-header .profile-menu-avatar { width:36px; height:36px; flex:0 0 36px; box-sizing:border-box; border:1.5px solid rgba(255,255,255,.52); border-radius:50%; background:transparent; }
  #market-app .app-header .profile-menu-identity-copy { display:flex; flex-direction:column; min-width:0; gap:3px; }
  #market-app .app-header .profile-menu-identity-copy strong { color:rgba(255,255,255,.95); font-family:var(--font-body); font-size:.63rem; font-weight:900; letter-spacing:.75px; line-height:1.1; }
  #market-app .app-header .profile-menu-identity-copy small { color:rgba(255,255,255,.45); font-family:var(--font-body); font-size:.48rem; font-weight:800; letter-spacing:.8px; line-height:1.1; }
  #market-app .app-header .profile-menu-divider { height:1px; margin:0 -1px; background:rgba(255,255,255,.13); }
  #market-app .app-header .profile-menu-group { display:flex; flex-direction:column; padding:5px 0; }
  #market-app .app-header .profile-menu-static-option { display:flex; align-items:center; gap:10px; min-height:32px; padding:5px 1px; box-sizing:border-box; color:rgba(255,255,255,.78); cursor:default; font-family:var(--font-body); font-size:.57rem; font-weight:800; letter-spacing:.55px; line-height:1.15; pointer-events:none; user-select:none; }
  #market-app .app-header .profile-menu-static-option svg { width:17px; height:17px; flex:0 0 17px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
  #market-app .app-header .profile-menu-action-option { cursor:pointer; pointer-events:auto; }
  #market-app .app-header .profile-menu-action-option:hover,
  #market-app .app-header .profile-menu-action-option:focus-visible { color:var(--white); outline:none; }
  #market-app .app-header .profile-menu-legal-option svg { fill:currentColor; stroke:none; }
  #market-app .app-header .profile-menu-exit-divider { margin-top:1px; }
  #market-app .app-header .header-profile-logout-option { margin-top:5px; }
  body.light-mode #market-app .app-header .profile-menu-avatar { border-color:rgba(0,0,0,.46); }
  body.light-mode #market-app .app-header .profile-menu-identity-copy strong { color:#000; }
  body.light-mode #market-app .app-header .profile-menu-identity-copy small { color:rgba(0,0,0,.45); }
  body.light-mode #market-app .app-header .profile-menu-divider { background:rgba(0,0,0,.12); }
  body.light-mode #market-app .app-header .profile-menu-static-option { color:rgba(0,0,0,.72); }
  body.light-mode #market-app .app-header .profile-menu-action-option:hover,
  body.light-mode #market-app .app-header .profile-menu-action-option:focus-visible { color:#000; }
  /* El icono legal se traslada al menú; los dos controles restantes se reacomodan junto al perfil. */
  #market-app .app-header #header-notifications-trigger { right:84px !important; }
  #market-app .app-header .header-theme-trigger { right:140px !important; }
  @media (max-width:620px) {
    #market-app .app-header .header-profile-options { width:min(304px, calc(100vw - 28px)) !important; }
    #market-app .app-header #header-notifications-trigger { right:60px !important; }
    #market-app .app-header .header-theme-trigger { right:106px !important; }
  }

/* Bloque de estilos 111: header-chat-payments-control-style */
/* Controles superiores: de izquierda a derecha, brillo, notificaciones, chat y pagos. */
  #market-app .app-header .header-theme-trigger { right:252px !important; }
  #market-app .app-header #header-notifications-trigger { right:196px !important; }
  #market-app .app-header #header-chat-trigger { right:140px !important; }
  #market-app .app-header .header-chat-trigger > svg { width:31px !important; height:31px !important; min-width:31px !important; min-height:31px !important; flex-basis:31px; }
  @media (max-width:620px) {
    #market-app .app-header .header-theme-trigger { right:198px !important; }
    #market-app .app-header #header-notifications-trigger { right:152px !important; }
    #market-app .app-header #header-chat-trigger { right:106px !important; }
    #market-app .app-header .header-chat-trigger > svg { width:25px !important; height:25px !important; min-width:25px !important; min-height:25px !important; flex-basis:25px; }
  }

  /* Compactación exclusiva de los controles de la esquina superior. */
  #market-app .app-header .header-profile-placeholder {
    right:30px;
    width:40px;
    height:40px;
  }
  #market-app .app-header .header-terms-trigger,
  #market-app .app-header .header-theme-trigger {
    top:calc(50% - 20px) !important;
    width:40px !important;
    height:40px !important;
  }
  #market-app .app-header .header-terms-trigger > svg {
    width:30px !important;
    height:30px !important;
    min-width:30px !important;
    min-height:30px !important;
    flex-basis:30px;
  }
  #market-app .app-header .header-theme-trigger .header-theme-icon {
    width:26px !important;
    height:26px !important;
    flex-basis:26px;
  }
  #market-app .app-header #header-chat-trigger { right:138px !important; }
  #market-app .app-header #header-notifications-trigger { right:190px !important; }
  #market-app .app-header .header-theme-trigger { right:242px !important; }
  @media (max-width:620px) {
    #market-app .app-header .header-profile-placeholder {
      right:16px;
      width:32px;
      height:32px;
    }
    #market-app .app-header .header-terms-trigger,
    #market-app .app-header .header-theme-trigger {
      top:calc(50% - 16px) !important;
      width:32px !important;
      height:32px !important;
    }
    #market-app .app-header .header-terms-trigger > svg {
      width:24px !important;
      height:24px !important;
      min-width:24px !important;
      min-height:24px !important;
      flex-basis:24px;
    }
    #market-app .app-header .header-theme-trigger .header-theme-icon {
      width:21px !important;
      height:21px !important;
      flex-basis:21px;
    }
    #market-app .app-header #header-chat-trigger { right:98px !important; }
    #market-app .app-header #header-notifications-trigger { right:140px !important; }
    #market-app .app-header .header-theme-trigger { right:182px !important; }
  }

/* Bloque de estilos 112: compact-header-and-product-status-switches */
/* Compactación adicional, limitada a los controles de la esquina superior. */
  #market-app .app-header .header-profile-placeholder {
    right: 32px;
    width: 36px;
    height: 36px;
  }
  #market-app .app-header .header-terms-trigger,
  #market-app .app-header .header-theme-trigger {
    top: calc(50% - 18px) !important;
    width: 36px !important;
    height: 36px !important;
  }
  #market-app .app-header .header-terms-trigger > svg {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    flex-basis: 28px;
  }
  #market-app .app-header .header-theme-trigger .header-theme-icon {
    width: 24px !important;
    height: 24px !important;
    flex-basis: 24px;
  }
  #market-app .app-header #header-chat-trigger { right: 132px !important; }
  #market-app .app-header #header-notifications-trigger { right: 180px !important; }
  #market-app .app-header .header-theme-trigger { right: 228px !important; }

  /* Interruptores de estado: compactos y alineados a la esquina superior derecha del formulario. */
  #j-product-form .product-creation-modal-title,
  #k-product-form .product-creation-modal-title {
    padding-right: 64px !important;
  }
  #j-product-form .status-switch-wrapper,
  #k-product-form .status-switch-wrapper,
  .product-edit .status-switch-wrapper {
    position: absolute !important;
    top: 14px;
    right: 16px;
    z-index: 4;
    display: block;
    width: 48px !important;
    min-width: 48px !important;
    height: 22px;
  }
  #j-product-form .status-switch.product-status-switch,
  #k-product-form .status-switch.product-status-switch,
  .product-edit .status-switch.product-status-switch {
    width: 48px !important;
    height: 22px !important;
  }
  #j-product-form .product-status-track,
  #k-product-form .product-status-track,
  .product-edit .product-status-track {
    border-width: 1px;
  }
  #j-product-form .product-status-text,
  #k-product-form .product-status-text,
  .product-edit .product-status-text {
    display: none;
  }
  #j-product-form .product-status-thumb,
  #k-product-form .product-status-thumb,
  .product-edit .product-status-thumb {
    left: 2px;
    width: 16px;
    height: 16px;
    border-width: 1px;
  }
  #j-product-form .product-status-icon,
  #k-product-form .product-status-icon,
  .product-edit .product-status-icon {
    width: 10px;
    height: 10px;
  }
  #j-product-form .status-switch.product-status-switch input:checked + .product-status-track .product-status-thumb,
  #k-product-form .status-switch.product-status-switch input:checked + .product-status-track .product-status-thumb,
  .product-edit .status-switch.product-status-switch input:checked + .product-status-track .product-status-thumb {
    transform: translateX(28px);
  }
  #j-product-form .status-switch.product-status-switch:active .product-status-thumb,
  #k-product-form .status-switch.product-status-switch:active .product-status-thumb,
  .product-edit .status-switch.product-status-switch:active .product-status-thumb {
    width: 20px;
  }
  #j-product-form .status-switch.product-status-switch:active input:checked + .product-status-track .product-status-thumb,
  #k-product-form .status-switch.product-status-switch:active input:checked + .product-status-track .product-status-thumb,
  .product-edit .status-switch.product-status-switch:active input:checked + .product-status-track .product-status-thumb {
    transform: translateX(24px);
  }
  @media (max-width: 620px) {
    #market-app .app-header .header-profile-placeholder {
      right: 18px;
      width: 28px;
      height: 28px;
    }
    #market-app .app-header .header-terms-trigger,
    #market-app .app-header .header-theme-trigger {
      top: calc(50% - 14px) !important;
      width: 28px !important;
      height: 28px !important;
    }
    #market-app .app-header .header-terms-trigger > svg {
      width: 21px !important;
      height: 21px !important;
      min-width: 21px !important;
      min-height: 21px !important;
      flex-basis: 21px;
    }
    #market-app .app-header .header-theme-trigger .header-theme-icon {
      width: 19px !important;
      height: 19px !important;
      flex-basis: 19px;
    }
    #market-app .app-header #header-chat-trigger { right: 90px !important; }
    #market-app .app-header #header-notifications-trigger { right: 126px !important; }
    #market-app .app-header .header-theme-trigger { right: 162px !important; }
    #j-product-form .status-switch-wrapper,
    #k-product-form .status-switch-wrapper,
    .product-edit .status-switch-wrapper {
      top: 12px;
      right: 12px;
    }
  }

/* Bloque de estilos 113: product-form-field-alignment-adjustments */
/* Interruptor un poco mayor, conservando su posición junto al título. */
  #j-product-form .product-creation-modal-title,
  #k-product-form .product-creation-modal-title {
    padding-right: 76px !important;
  }
  #j-product-form .status-switch-wrapper,
  #k-product-form .status-switch-wrapper,
  .product-edit .status-switch-wrapper {
    top: 12px;
    width: 56px !important;
    min-width: 56px !important;
    height: 26px;
  }
  #j-product-form .status-switch.product-status-switch,
  #k-product-form .status-switch.product-status-switch,
  .product-edit .status-switch.product-status-switch {
    width: 56px !important;
    height: 26px !important;
  }
  #j-product-form .product-status-thumb,
  #k-product-form .product-status-thumb,
  .product-edit .product-status-thumb {
    width: 20px;
    height: 20px;
  }
  #j-product-form .product-status-icon,
  #k-product-form .product-status-icon,
  .product-edit .product-status-icon {
    width: 12px;
    height: 12px;
  }
  #j-product-form .status-switch.product-status-switch input:checked + .product-status-track .product-status-thumb,
  #k-product-form .status-switch.product-status-switch input:checked + .product-status-track .product-status-thumb,
  .product-edit .status-switch.product-status-switch input:checked + .product-status-track .product-status-thumb {
    transform: translateX(32px);
  }
  #j-product-form .status-switch.product-status-switch:active .product-status-thumb,
  #k-product-form .status-switch.product-status-switch:active .product-status-thumb,
  .product-edit .status-switch.product-status-switch:active .product-status-thumb {
    width: 24px;
  }
  #j-product-form .status-switch.product-status-switch:active input:checked + .product-status-track .product-status-thumb,
  #k-product-form .status-switch.product-status-switch:active input:checked + .product-status-track .product-status-thumb,
  .product-edit .status-switch.product-status-switch:active input:checked + .product-status-track .product-status-thumb {
    transform: translateX(28px);
  }

  /* Unidad de medida y normas de stock: dos campos de igual ancho y sin límites artificiales. */
  #j-product-form div:has(> div > #j-new-unidad):has(> div > #j-new-stock-rule),
  #k-product-form div:has(> div > #k-new-unidad):has(> div > #k-new-stock-rule),
  .product-edit div:has(> div > .edit-unidad):has(> div > .edit-stock-rule) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    align-items: start !important;
  }
  #j-product-form div:has(> #j-new-unidad),
  #j-product-form div:has(> #j-new-stock-rule),
  #k-product-form div:has(> #k-new-unidad),
  #k-product-form div:has(> #k-new-stock-rule),
  .product-edit div:has(> .edit-unidad),
  .product-edit div:has(> .edit-stock-rule) {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: none !important;
  }
  @media (max-width: 560px) {
    #j-product-form div:has(> div > #j-new-unidad):has(> div > #j-new-stock-rule),
    #k-product-form div:has(> div > #k-new-unidad):has(> div > #k-new-stock-rule),
    .product-edit div:has(> div > .edit-unidad):has(> div > .edit-stock-rule) {
      grid-template-columns: minmax(0, 1fr) !important;
      gap: 10px !important;
    }
  }

/* Bloque de estilos 114: invoice-table-stable-layout */
#invoice-items-table {
    width: 100%;
    min-width: 650px;
    table-layout: fixed;
  }
  #invoice-items-table th,
  #invoice-items-table td {
    box-sizing: border-box;
    padding: 8px 6px;
    vertical-align: middle;
    overflow: hidden;
  }
  #invoice-items-table th:nth-child(1), #invoice-items-table td:nth-child(1) { width: 40%; }
  #invoice-items-table th:nth-child(2), #invoice-items-table td:nth-child(2) { width: 17%; }
  #invoice-items-table th:nth-child(3), #invoice-items-table td:nth-child(3) { width: 21%; }
  #invoice-items-table th:nth-child(4), #invoice-items-table td:nth-child(4) { width: 16%; }
  #invoice-items-table th:nth-child(5), #invoice-items-table td:nth-child(5) { width: 6%; }
  #invoice-items-table td:nth-child(1) { white-space: nowrap; text-overflow: ellipsis; }
  #invoice-items-table .item-price {
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
  }
  #invoice-items-table .item-total,
  #invoice-items-table #invoice-total {
    white-space: nowrap;
    text-align: right;
    font-variant-numeric: tabular-nums;
  }

/* Bloque de estilos 115: compact-login-panel-mobile */
@media (max-width: 768px) {
    #login-screen .login-container {
      width: min(86vw, 410px);
    }
    #login-screen .alcaur-auth-card {
      padding: 22px 18px 18px;
      border-radius: 18px;
    }
    #login-screen .alcaur-auth-heading h1 {
      font-size: 23px;
    }
    #login-screen .alcaur-auth-heading p {
      margin-bottom: 18px;
    }
    #login-screen .alcaur-auth-form,
    #login-screen .alcaur-social-options {
      gap: 9px;
    }
    #login-screen .alcaur-input {
      height: 40px;
      padding: 0 12px;
      font-size: 12px;
    }
    #login-screen .alcaur-primary-button,
    #login-screen .alcaur-social-button {
      min-height: 41px;
      padding: 0 16px;
      font-size: 10px;
    }
    #login-screen .alcaur-divider {
      margin: 16px 0;
    }
    #login-screen .alcaur-account-switch {
      margin-top: 16px;
    }
    #login-screen .alcaur-auth-legal {
      margin-top: 16px;
      line-height: 1.5;
    }
  }
  @media (max-width: 420px) {
    #login-screen .login-container {
      width: min(86vw, 360px);
    }
    #login-screen .alcaur-auth-card {
      padding: 19px 16px 16px;
    }
    #login-screen .alcaur-auth-heading h1 {
      font-size: 21px;
    }
  }

/* Bloque de estilos 116: invoice-quantity-and-subtotal-controls */
#invoice-items-table {
    min-width: 760px;
  }
  #invoice-items-table th:nth-child(1), #invoice-items-table td:nth-child(1) { width: 38%; }
  #invoice-items-table th:nth-child(2), #invoice-items-table td:nth-child(2) { width: 15%; }
  #invoice-items-table th:nth-child(3), #invoice-items-table td:nth-child(3) { width: 21%; }
  #invoice-items-table th:nth-child(4), #invoice-items-table td:nth-child(4) { width: 20%; }
  #invoice-items-table th:nth-child(5), #invoice-items-table td:nth-child(5) { width: 6%; }

  #invoice-items-table .qty-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    border-radius: 6px !important;
    border: 1px solid transparent !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  #invoice-items-table .item-quantity:not([type="hidden"]) {
    height: 40px !important;
    min-height: 40px;
    box-sizing: border-box;
    font-variant-numeric: tabular-nums;
  }
  #invoice-items-table .smart-weight-field {
    height: 40px !important;
    align-items: stretch !important;
  }
  #invoice-items-table .smart-weight-field .item-quantity {
    height: 40px !important;
  }
  body:not(.light-mode) #invoice-items-table .qty-btn.minus {
    color: #000000 !important;
    background: #c8ff00 !important;
    border-color: #c8ff00 !important;
  }
  body:not(.light-mode) #invoice-items-table .qty-btn.plus {
    color: #000000 !important;
    background: #39ff14 !important;
    border-color: #39ff14 !important;
  }
  body.light-mode #invoice-items-table .qty-btn.minus,
  body.light-mode #invoice-items-table .qty-btn.plus {
    color: #ffffff !important;
    background: #000000 !important;
    border-color: #000000 !important;
  }

  #invoice-items-table .item-total,
  #invoice-items-table #invoice-total {
    overflow: visible !important;
    padding: 7px 6px !important;
  }
  #invoice-items-table .invoice-line-subtotal,
  #invoice-items-table .invoice-grand-total {
    display: flex;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    align-items: center;
    justify-content: flex-end;
    color: inherit;
    background: transparent;
    border: 1.5px solid #39ff14;
    border-radius: 7px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }
  #invoice-items-table .invoice-line-subtotal {
    min-height: 40px;
    padding: 0 10px;
    font-size: 0.78rem;
  }
  #invoice-items-table .invoice-grand-total {
    min-height: 46px;
    padding: 0 12px;
    font-size: 1.15rem;
    font-weight: 900;
  }
  body.light-mode #invoice-items-table .invoice-line-subtotal,
  body.light-mode #invoice-items-table .invoice-grand-total {
    border-color: #006b00;
  }

/* Bloque de estilos 117: bank-money-input-style */
input[data-bank-money="true"] {
    font-variant-numeric: tabular-nums;
    text-align: right;
  }

/* Bloque de estilos 118: invoice-remove-button-prominent */
#invoice-items-table th:nth-child(1), #invoice-items-table td:nth-child(1) { width: 37%; }
  #invoice-items-table th:nth-child(4), #invoice-items-table td:nth-child(4) { width: 19%; }
  #invoice-items-table th:nth-child(5), #invoice-items-table td:nth-child(5) { width: 8%; }
  #invoice-items-table .remove-item {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #ff4444 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
  }
  #invoice-items-table .remove-item .app-delete-icon {
    width: 40px !important;
    height: 40px !important;
    stroke-width: 2.6;
  }
  body.light-mode #invoice-items-table .remove-item {
    color: #d60000 !important;
    background: transparent !important;
    border: 0 !important;
  }

/* Bloque de estilos 119: invoice-print-split-control */
#market-app .invoice-print-split {
    position: relative;
    display: inline-flex;
    flex: 1.22 1 0;
    min-width: 0;
    height: 42px;
    align-items: stretch;
  }
  #market-app .invoice-print-split #generate-pdf {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #000000 !important;
    background: var(--green) !important;
    border: 1px solid var(--green) !important;
    border-radius: 999px 0 0 999px !important;
    font-size: 0.75rem !important;
  }
  #market-app .invoice-print-menu-toggle {
    width: 48px;
    min-width: 48px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    background: var(--green);
    border: 1px solid var(--green);
    border-left: 2px solid rgba(0, 0, 0, 0.78);
    border-radius: 0 999px 999px 0;
    cursor: pointer;
    transition: filter 0.18s ease, transform 0.18s ease;
  }
  #market-app .invoice-print-menu-toggle:hover,
  #market-app .invoice-print-menu-toggle[aria-expanded="true"] {
    filter: brightness(1.08);
  }
  #market-app .invoice-print-menu-toggle svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
  }
  #market-app .invoice-print-menu-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }
  #market-app .invoice-print-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    right: 0;
    display: flex;
    width: 100%;
    min-width: 206px;
    flex-direction: column;
    gap: 7px;
  }
  #market-app .invoice-print-menu.hidden {
    display: none !important;
  }
  #market-app .invoice-print-menu-option {
    width: 100%;
    min-height: 40px;
    padding: 0 16px;
    color: #000000;
    background: var(--green);
    border: 1px solid var(--green);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: filter 0.18s ease, transform 0.18s ease;
  }
  #market-app .invoice-print-menu-option:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
  }
  body.light-mode #market-app .invoice-print-split #generate-pdf,
  body.light-mode #market-app .invoice-print-menu-toggle,
  body.light-mode #market-app .invoice-print-menu-option {
    color: #000000 !important;
    background: var(--green) !important;
    border-color: rgba(0, 0, 0, 0.5) !important;
  }
  body.light-mode #market-app .invoice-print-menu-toggle {
    border-left-color: rgba(0, 0, 0, 0.78) !important;
  }

/* Bloque de estilos 120: invoice-print-single-button-fix */
#market-app #invoice-print-split {
    display: inline-flex !important;
    gap: 0 !important;
    overflow: visible;
    background: var(--green) !important;
    border: 1px solid var(--green) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
  }
  #market-app #invoice-print-split > #generate-pdf {
    margin: 0 !important;
    color: #000000 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 999px 0 0 999px !important;
    box-shadow: none !important;
  }
  #market-app #invoice-print-split > #invoice-print-menu-toggle {
    margin: 0 !important;
    color: #000000 !important;
    background: transparent !important;
    border: 0 !important;
    border-left: 2px solid rgba(0, 0, 0, 0.82) !important;
    border-radius: 0 999px 999px 0 !important;
    box-shadow: none !important;
  }
  body.light-mode #market-app #invoice-print-split {
    background: var(--green) !important;
    border-color: var(--green) !important;
  }
  body.light-mode #market-app #invoice-print-split > #invoice-print-menu-toggle {
    border-left-color: rgba(0, 0, 0, 0.82) !important;
  }

/* Bloque de estilos 121: header-controls-fine-borders */
#market-app .app-header .header-profile-placeholder,
  #market-app .app-header .header-terms-trigger,
  #market-app .app-header .header-theme-trigger {
    border-width: 1px !important;
  }

/* Bloque de estilos 122: invoice-print-fixed-divider */
#market-app #invoice-print-split::after {
    position: absolute;
    z-index: 3;
    top: 0;
    right: 48px;
    bottom: 0;
    width: 2px;
    content: '';
    background: rgba(0, 0, 0, 0.82);
    pointer-events: none;
  }
  #market-app #invoice-print-split > #invoice-print-menu-toggle,
  #market-app #invoice-print-split > #invoice-print-menu-toggle:hover,
  #market-app #invoice-print-split > #invoice-print-menu-toggle:focus-visible,
  #market-app #invoice-print-split > #invoice-print-menu-toggle:active,
  #market-app #invoice-print-split > #generate-pdf,
  #market-app #invoice-print-split > #generate-pdf:hover,
  #market-app #invoice-print-split > #generate-pdf:focus-visible,
  #market-app #invoice-print-split > #generate-pdf:active {
    transform: none !important;
  }
  #market-app #invoice-print-split > #invoice-print-menu-toggle {
    border-left: 0 !important;
  }

/* Bloque de estilos 123: invoice-currency-suffix-style */
#invoice-items-table .invoice-price-input-wrap {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
  }
  #invoice-items-table .invoice-price-input-wrap .item-price {
    width: 0 !important;
    min-width: 0 !important;
    flex: 1 1 0;
    border-radius: 6px 0 0 6px !important;
  }
  #invoice-items-table .invoice-price-suffix {
    display: inline-flex;
    min-width: 50px;
    padding: 0 7px;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    color: var(--white-60);
    background: var(--black-5);
    border: 1px solid var(--black-6);
    border-left: 0;
    border-radius: 0 6px 6px 0;
    font-family: var(--font-body);
    font-size: 0.60rem;
    font-weight: 800;
    letter-spacing: 0.25px;
    pointer-events: none;
    user-select: none;
  }
  body.light-mode #invoice-items-table .invoice-price-suffix {
    color: #111111;
    background: #f1f1f1;
    border-color: rgba(0, 0, 0, 0.28);
  }
  #invoice-items-table th:nth-child(1), #invoice-items-table td:nth-child(1) { width: 33%; }
  #invoice-items-table th:nth-child(2), #invoice-items-table td:nth-child(2) { width: 19%; }
  #invoice-items-table th:nth-child(3), #invoice-items-table td:nth-child(3) { width: 21%; }
  #invoice-items-table th:nth-child(4), #invoice-items-table td:nth-child(4) { width: 19%; }
  #invoice-items-table th:nth-child(5), #invoice-items-table td:nth-child(5) { width: 8%; }

/* Bloque de estilos 124: invoice-currency-icon-visibility */
#market-app #dolarizar-btn .invoice-currency-icon {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    flex: 0 0 20px !important;
    stroke: currentColor !important;
    stroke-width: 2.2 !important;
  }

/* Ajustes visuales aislados: notas y agregar monto de servicio. */
#facturas-tab .invoice-notes-card {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}
#facturas-tab .invoice-notes-card > .field-label {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#productos-tab #svc-add-monto .app-add-icon,
#productos-tab #svc-add-monto .app-add-icon * {
  color: #000000 !important;
  stroke: #000000 !important;
}

/* Bloque de estilos 125: invoice-large-total-display-style */
#facturas-tab .invoice-notes-card,
  #facturas-tab .invoice-total-display-wrapper {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  #facturas-tab .invoice-notes-card #invoice-note {
    height: auto !important;
    flex: 1 1 auto;
  }

  #facturas-tab .invoice-large-total-card {
    position: relative;
    min-width: 0;
    min-height: 0;
    height: 100%;
    flex: 1 1 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.6vw, 16px);
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid var(--adaptive-price);
    border-radius: 8px;
    background: transparent;
  }

  #facturas-tab .invoice-large-total-prefix {
    position: static;
    flex: 0 0 auto;
    font-family: var(--font-body);
    font-size: clamp(1.5rem, 2.65vw, 2.8rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.06em;
    color: var(--adaptive-price);
  }

  #facturas-tab .invoice-large-total {
    width: auto;
    max-width: calc(100% - 3.1em);
    min-height: 1.15em;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 2.65vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums lining-nums;
    font-kerning: none;
    color: var(--adaptive-price);
  }

  #facturas-tab .invoice-odometer-viewport {
    display: inline-block;
    width: 0.72em;
    height: 1.15em;
    overflow: hidden;
    vertical-align: middle;
  }

  #facturas-tab .invoice-odometer-rail {
    display: block;
    transform: translateY(0);
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  #facturas-tab .invoice-odometer-digit {
    display: block;
    width: 100%;
    height: 1.15em;
    line-height: 1.15;
    text-align: center;
  }

  #facturas-tab .invoice-odometer-separator {
    display: inline-block;
    width: 0.22em;
    height: 1.15em;
    line-height: 1.15;
    text-align: center;
    vertical-align: middle;
  }

  body.light-mode #facturas-tab .invoice-large-total-card {
    background: transparent;
    border-color: var(--adaptive-price);
  }

  @media (prefers-reduced-motion: reduce) {
    #facturas-tab .invoice-odometer-rail {
      transition: none;
    }
  }

  @media (max-width: 620px) {
    #facturas-tab .invoice-notes-total-row {
      grid-template-columns: 1fr !important;
    }
  }

/* Bloque de estilos 126: accounts-receivable-panel-style */
#creditos-tab .accounts-receivable-header {
    align-items: center;
    gap: 18px;
  }

  #creditos-tab .accounts-receivable-subtitle {
    margin-top: 5px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--white-30);
  }

  #creditos-tab .accounts-receivable-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: var(--surface-border-width) solid var(--surface-border-current);
    border-radius: 999px;
    color: var(--white-60);
    font-family: var(--font-body);
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    white-space: nowrap;
  }

  #creditos-tab .accounts-receivable-status span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--adaptive-price);
    box-shadow: 0 0 10px var(--adaptive-price);
  }

  #creditos-tab .accounts-receivable-layout {
    display: grid;
    grid-template-columns: 218px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }

  #creditos-tab .accounts-receivable-nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
    position: sticky;
    top: 12px;
  }

  #creditos-tab .ar-nav-button {
    min-height: 46px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    background: #000000;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 7px;
    color: rgba(255,255,255,0.72);
    text-align: left;
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
  }

  #creditos-tab .ar-nav-button > span {
    min-width: 20px;
    color: rgba(255,255,255,0.36);
    font-family: var(--font-mono);
    font-size: 0.58rem;
  }

  #creditos-tab .ar-nav-button:hover,
  #creditos-tab .ar-nav-button.active {
    color: #ffffff;
    border-color: var(--adaptive-price);
  }

  #creditos-tab .ar-nav-button.active {
    box-shadow: inset 3px 0 0 var(--adaptive-price);
  }

  #creditos-tab .accounts-receivable-content {
    min-width: 0;
  }

  #creditos-tab .ar-section[hidden] {
    display: none !important;
  }

  #creditos-tab .ar-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: var(--surface-border-width) solid var(--surface-border-current);
  }

  #creditos-tab .ar-eyebrow {
    margin-bottom: 5px;
    font-family: var(--font-body);
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--adaptive-price);
  }

  #creditos-tab .ar-section-heading h3 {
    margin: 0;
    color: var(--adaptive-text);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 900;
  }

  #creditos-tab .ar-section-note {
    max-width: 240px;
    color: var(--white-30);
    font-family: var(--font-body);
    font-size: 0.65rem;
    line-height: 1.35;
    text-align: right;
  }

  #creditos-tab .ar-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 10px;
    margin-bottom: 14px;
  }

  #creditos-tab .ar-kpi-card,
  #creditos-tab .ar-summary-panel,
  #creditos-tab .ar-projection-card,
  #creditos-tab .ar-report-card {
    border: var(--surface-border-width) solid var(--surface-border-current);
    border-radius: 8px;
    background: var(--black-4);
    box-sizing: border-box;
  }

  #creditos-tab .ar-kpi-card {
    min-height: 124px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
  }

  #creditos-tab .ar-kpi-card > span,
  #creditos-tab .ar-projection-card > span {
    color: var(--white-30);
    font-family: var(--font-body);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  #creditos-tab .ar-kpi-card strong,
  #creditos-tab .ar-projection-card strong {
    color: var(--adaptive-price);
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
  }

  #creditos-tab .ar-kpi-card small {
    margin-top: auto;
    color: var(--white-30);
    font-family: var(--font-body);
    font-size: 0.58rem;
    line-height: 1.25;
  }

  #creditos-tab .ar-kpi-card.ar-kpi-alert strong {
    color: #ff6969;
  }

  #creditos-tab .ar-summary-grid,
  #creditos-tab .ar-projection-grid,
  #creditos-tab .ar-report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
  }

  #creditos-tab .ar-summary-panel {
    min-height: 150px;
    padding: 14px;
  }

  #creditos-tab .ar-summary-title {
    margin-bottom: 10px;
    color: var(--adaptive-text);
    font-family: var(--font-body);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
  }

  #creditos-tab .ar-compact-row,
  #creditos-tab .ar-state-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: var(--surface-border-width) solid var(--surface-border-current);
    color: var(--white-60);
    font-family: var(--font-body);
    font-size: 0.68rem;
  }

  #creditos-tab .ar-compact-row:last-child,
  #creditos-tab .ar-state-row:last-child {
    border-bottom: none;
  }

  #creditos-tab .ar-compact-row strong,
  #creditos-tab .ar-state-row strong {
    color: var(--adaptive-text);
    font-family: var(--font-mono);
    font-weight: 700;
    white-space: nowrap;
  }

  #creditos-tab .ar-empty-note {
    padding: 22px 8px;
    color: var(--white-30);
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-align: center;
  }

  #creditos-tab .ar-aging-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 9px;
    margin-bottom: 14px;
  }

  #creditos-tab .ar-aging-card {
    min-height: 91px;
    padding: 12px;
    border: var(--surface-border-width) solid var(--surface-border-current);
    border-top: 3px solid var(--ar-aging-color, var(--adaptive-price));
    border-radius: 8px;
    background: var(--black-4);
  }

  #creditos-tab .ar-aging-card span {
    display: block;
    color: var(--white-30);
    font-family: var(--font-body);
    font-size: 0.57rem;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
  }

  #creditos-tab .ar-aging-card strong {
    display: block;
    margin-top: 12px;
    color: var(--adaptive-text);
    font-family: var(--font-mono);
    font-size: 1rem;
  }

  #creditos-tab .ar-table-wrap {
    overflow-x: auto;
    border: var(--surface-border-width) solid var(--surface-border-current);
    border-radius: 8px;
  }

  #creditos-tab .ar-data-table {
    min-width: 720px;
  }

  #creditos-tab .ar-data-table td {
    vertical-align: middle;
    opacity: 1;
  }

  #creditos-tab .ar-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: .6px;
    white-space: nowrap;
  }

  #creditos-tab .ar-badge.current { color: var(--adaptive-price); }
  #creditos-tab .ar-badge.due { color: #ff6969; }
  #creditos-tab .ar-badge.warning { color: #ffbd2e; }
  #creditos-tab .ar-badge.risk { color: #ff5f8f; }

  #creditos-tab .ar-projection-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
    margin-bottom: 14px;
  }

  #creditos-tab .ar-projection-card {
    padding: 16px;
  }

  #creditos-tab .ar-projection-card strong {
    display: block;
    margin: 13px 0;
  }

  #creditos-tab .ar-projection-bar {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--black-6);
  }

  #creditos-tab .ar-projection-bar i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--adaptive-price);
    transition: width .45s ease;
  }

  #creditos-tab .ar-projection-message {
    margin: 0;
    color: var(--white-60);
    font-family: var(--font-body);
    font-size: .73rem;
    line-height: 1.55;
  }

  #creditos-tab .ar-report-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }

  #creditos-tab .ar-report-card {
    min-height: 158px;
    padding: 16px;
    display: flex;
    flex-direction: column;
  }

  #creditos-tab .ar-report-card strong {
    color: var(--adaptive-text);
    font-family: var(--font-body);
    font-size: .78rem;
  }

  #creditos-tab .ar-report-card p {
    margin: 10px 0;
    color: var(--white-60);
    font-family: var(--font-body);
    font-size: .68rem;
    line-height: 1.5;
  }

  #creditos-tab .ar-report-card span {
    margin-top: auto;
    color: var(--adaptive-price);
    font-family: var(--font-body);
    font-size: .54rem;
    font-weight: 800;
    letter-spacing: 1.3px;
  }

  #credit-form-modal[hidden] { display: none !important; }
  #credit-form-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,.68);
    backdrop-filter: blur(5px);
  }

  .credit-form-dialog {
    width: min(480px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 20px;
    border: 1px solid var(--adaptive-price);
    border-radius: 10px;
    background: var(--black-3);
    box-shadow: 0 18px 70px rgba(0,0,0,.42);
  }

  .credit-form-dialog h3 {
    margin: 0;
    color: var(--adaptive-text);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 900;
  }

  .credit-form-dialog > p {
    margin: 8px 0 18px;
    color: var(--white-60);
    font-family: var(--font-body);
    font-size: .7rem;
    line-height: 1.45;
  }

  .credit-form-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
  }

  .credit-form-field.full { grid-column: 1 / -1; }
  .credit-form-field label { display: block; }
  .credit-form-required { color: #ff6969; }

  .credit-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
  }

  .credit-form-actions button {
    min-height: 38px;
    padding: 0 16px;
    border-radius: 7px;
    font-family: var(--font-body);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .8px;
    cursor: pointer;
  }

  .credit-form-cancel { background: transparent; border: var(--surface-border-width) solid var(--surface-border-current); color: var(--white-60); }
  .credit-form-confirm { background: #0006B3; border: 1px solid #0006B3; color: #fff; }

  body.light-mode #creditos-tab .ar-kpi-card,
  body.light-mode #creditos-tab .ar-summary-panel,
  body.light-mode #creditos-tab .ar-projection-card,
  body.light-mode #creditos-tab .ar-report-card,
  body.light-mode #creditos-tab .ar-aging-card,
  body.light-mode .credit-form-dialog {
    background: #ffffff;
    border-color: rgba(0,0,0,.22);
  }

  @media (max-width: 1180px) {
    #creditos-tab .ar-kpi-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    #creditos-tab .ar-aging-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  }

  @media (max-width: 820px) {
    #creditos-tab .accounts-receivable-layout { grid-template-columns: 1fr; }
    #creditos-tab .accounts-receivable-nav { position: static; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    #creditos-tab .ar-projection-grid,
    #creditos-tab .ar-report-grid { grid-template-columns: 1fr; }
  }

  @media (max-width: 560px) {
    #creditos-tab .accounts-receivable-header,
    #creditos-tab .ar-section-heading { align-items: flex-start; flex-direction: column; }
    #creditos-tab .ar-section-note { text-align: left; }
    #creditos-tab .accounts-receivable-nav,
    #creditos-tab .ar-kpi-grid,
    #creditos-tab .ar-aging-grid,
    #creditos-tab .ar-summary-grid,
    .credit-form-grid { grid-template-columns: 1fr; }
    .credit-form-field.full { grid-column: auto; }
  }

/* Bloque de estilos 127: accounts-payable-panel-style */
#proveedores-tab .accounts-payable-header { align-items:center; gap:18px; }
  #proveedores-tab .accounts-payable-subtitle { margin-top:5px; font-family:var(--font-body); font-size:.7rem; color:var(--white-30); }
  #proveedores-tab .accounts-payable-status { display:inline-flex; align-items:center; gap:7px; padding:7px 10px; border:1px solid var(--black-5); border-radius:999px; color:var(--white-60); font-family:var(--font-body); font-size:.55rem; font-weight:800; letter-spacing:1.4px; white-space:nowrap; }
  #proveedores-tab .accounts-payable-status span { width:7px; height:7px; border-radius:50%; background:#39ff14; box-shadow:0 0 10px #39ff14; }
  #proveedores-tab .accounts-payable-layout { display:grid; grid-template-columns:218px minmax(0,1fr); gap:20px; align-items:start; }
  #proveedores-tab .accounts-payable-nav { display:flex; flex-direction:column; gap:7px; position:sticky; top:12px; }
  #proveedores-tab .ap-nav-button { min-height:46px; padding:0 12px; display:flex; align-items:center; gap:9px; background:#000; border:1px solid rgba(255,255,255,.14); border-radius:7px; color:rgba(255,255,255,.72); text-align:left; font-family:var(--font-body); font-size:.66rem; font-weight:800; letter-spacing:.2px; cursor:pointer; transition:border-color .2s ease,color .2s ease,transform .2s ease; }
  #proveedores-tab .ap-nav-button > span { min-width:20px; color:rgba(255,255,255,.36); font-family:var(--font-mono); font-size:.58rem; }
  #proveedores-tab .ap-nav-button:hover, #proveedores-tab .ap-nav-button.active { color:#fff; border-color:#39ff14; }
  #proveedores-tab .ap-nav-button.active { box-shadow:inset 3px 0 0 #39ff14; }
  #proveedores-tab .accounts-payable-content { min-width:0; }
  #proveedores-tab .ap-section[hidden] { display:none !important; }
  #proveedores-tab .ap-section-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; margin-bottom:18px; padding-bottom:12px; border-bottom:1px solid var(--black-5); }
  #proveedores-tab .ap-eyebrow { margin-bottom:5px; font-family:var(--font-body); font-size:.55rem; font-weight:800; letter-spacing:2px; color:#39ff14; }
  #proveedores-tab .ap-section-heading h3 { margin:0; color:var(--adaptive-text); font-family:var(--font-body); font-size:1.1rem; font-weight:900; }
  #proveedores-tab .ap-section-note { max-width:240px; color:var(--white-30); font-family:var(--font-body); font-size:.65rem; line-height:1.35; text-align:right; }
  #proveedores-tab .ap-kpi-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
  #proveedores-tab .ap-kpi-card, #proveedores-tab .ap-summary-panel, #proveedores-tab .ap-projection-card, #proveedores-tab .ap-report-card, #proveedores-tab .ap-record-card, #proveedores-tab .ap-register-template { border:1px solid var(--black-5); border-radius:8px; background:var(--black-4); box-sizing:border-box; }
  #proveedores-tab .ap-kpi-card { min-height:124px; padding:14px; display:flex; flex-direction:column; gap:7px; }
  #proveedores-tab .ap-kpi-card > span, #proveedores-tab .ap-projection-card > span { color:var(--white-30); font-family:var(--font-body); font-size:.56rem; font-weight:800; letter-spacing:1px; text-transform:uppercase; }
  #proveedores-tab .ap-kpi-card strong, #proveedores-tab .ap-projection-card strong { color:#39ff14; font-family:var(--font-mono); font-size:1.15rem; font-weight:800; line-height:1; }
  #proveedores-tab .ap-kpi-card small { margin-top:auto; color:var(--white-30); font-family:var(--font-body); font-size:.58rem; line-height:1.25; }
  #proveedores-tab .ap-kpi-card.ap-kpi-alert strong { color:#ff6969; }
  #proveedores-tab .ap-summary-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
  #proveedores-tab .ap-summary-panel { min-height:150px; padding:14px; }
  #proveedores-tab .ap-summary-title { margin-bottom:10px; color:var(--adaptive-text); font-family:var(--font-body); font-size:.67rem; font-weight:800; letter-spacing:1.2px; text-transform:uppercase; }
  #proveedores-tab .ap-empty-note { padding:22px 8px; color:var(--white-30); font-family:var(--font-body); font-size:.7rem; text-align:center; line-height:1.45; }
  #proveedores-tab .ap-record-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-bottom:14px; }
  #proveedores-tab .ap-record-card { min-height:112px; padding:15px; }
  #proveedores-tab .ap-record-card strong { color:var(--adaptive-text); font-family:var(--font-body); font-size:.75rem; }
  #proveedores-tab .ap-record-card p, #proveedores-tab .ap-register-template p { margin:8px 0 0; color:var(--white-60); font-family:var(--font-body); font-size:.67rem; line-height:1.5; }
  #proveedores-tab .ap-register-template { padding:15px; }
  #proveedores-tab .ap-register-fields { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
  #proveedores-tab .ap-register-fields span { padding:9px; border:1px dashed var(--black-5); border-radius:6px; color:var(--white-60); font-family:var(--font-body); font-size:.61rem; text-align:center; }
  #proveedores-tab .ap-aging-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:9px; margin-bottom:14px; }
  #proveedores-tab .ap-aging-card { min-height:91px; padding:12px; border:1px solid var(--black-5); border-top:3px solid var(--ap-aging-color,#39ff14); border-radius:8px; background:var(--black-4); }
  #proveedores-tab .ap-aging-card span { display:block; color:var(--white-30); font-family:var(--font-body); font-size:.57rem; font-weight:800; letter-spacing:.8px; text-transform:uppercase; }
  #proveedores-tab .ap-aging-card strong { display:block; margin-top:12px; color:var(--adaptive-text); font-family:var(--font-mono); font-size:1rem; }
  #proveedores-tab .ap-table-wrap { overflow-x:auto; border:1px solid var(--black-5); border-radius:8px; }
  #proveedores-tab .ap-data-table { min-width:720px; }
  #proveedores-tab .ap-data-table td { vertical-align:middle; opacity:1; }
  #proveedores-tab .ap-projection-grid, #proveedores-tab .ap-report-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
  #proveedores-tab .ap-projection-grid { margin-bottom:14px; }
  #proveedores-tab .ap-projection-card { padding:16px; }
  #proveedores-tab .ap-projection-card strong { display:block; margin:13px 0; }
  #proveedores-tab .ap-projection-bar { height:6px; overflow:hidden; border-radius:999px; background:var(--black-6); }
  #proveedores-tab .ap-projection-bar i { display:block; width:0; height:100%; border-radius:inherit; background:#39ff14; }
  #proveedores-tab .ap-report-card { min-height:158px; padding:16px; display:flex; flex-direction:column; }
  #proveedores-tab .ap-report-card strong { color:var(--adaptive-text); font-family:var(--font-body); font-size:.78rem; }
  #proveedores-tab .ap-report-card p { margin:10px 0; color:var(--white-60); font-family:var(--font-body); font-size:.68rem; line-height:1.5; }
  #proveedores-tab .ap-report-card span { margin-top:auto; color:#39ff14; font-family:var(--font-body); font-size:.54rem; font-weight:800; letter-spacing:1.3px; }
  body.light-mode #proveedores-tab .ap-kpi-card, body.light-mode #proveedores-tab .ap-summary-panel, body.light-mode #proveedores-tab .ap-projection-card, body.light-mode #proveedores-tab .ap-report-card, body.light-mode #proveedores-tab .ap-record-card, body.light-mode #proveedores-tab .ap-register-template, body.light-mode #proveedores-tab .ap-aging-card { background:#fff; border-color:rgba(0,0,0,.22); }
  @media(max-width:1180px){ #proveedores-tab .ap-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr));} #proveedores-tab .ap-aging-grid{grid-template-columns:repeat(3,minmax(0,1fr));} }
  @media(max-width:820px){ #proveedores-tab .accounts-payable-layout{grid-template-columns:1fr;} #proveedores-tab .accounts-payable-nav{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));} #proveedores-tab .ap-projection-grid,#proveedores-tab .ap-report-grid{grid-template-columns:1fr;} }
  @media(max-width:560px){ #proveedores-tab .accounts-payable-header,#proveedores-tab .ap-section-heading{align-items:flex-start;flex-direction:column;} #proveedores-tab .ap-section-note{text-align:left;} #proveedores-tab .accounts-payable-nav,#proveedores-tab .ap-kpi-grid,#proveedores-tab .ap-aging-grid,#proveedores-tab .ap-summary-grid,#proveedores-tab .ap-record-grid,#proveedores-tab .ap-register-fields{grid-template-columns:1fr;} }

/* Bloque de estilos 128: product-price-converter-style */
.product-price-converter-slot { position:relative; flex:1; min-width:0; }
  .product-price-converter-slot > input.field-input { width:100%; padding-right:46px !important; }
  .product-price-converter-trigger { position:absolute; z-index:2; top:50%; right:5px; width:34px; height:34px; padding:0; display:inline-flex; align-items:center; justify-content:center; transform:translateY(-50%); border:0; border-radius:7px; background:transparent; color:var(--adaptive-price); cursor:pointer; transition:background .2s ease, transform .2s ease, color .2s ease; }
  .product-price-converter-trigger:hover, .product-price-converter-trigger:focus-visible { outline:none; background:color-mix(in srgb, var(--adaptive-price) 15%, transparent); }
  .product-price-converter-trigger:hover svg { transform:rotate(-4deg) scale(1.06); }
  .product-price-converter-trigger svg { width:23px; height:23px; overflow:visible; transition:transform .22s ease; }
  .product-price-converter-trigger .converter-scanlines { transform-origin:center; animation:productPriceCalculatorScan 2.25s ease-in-out infinite; }
  @keyframes productPriceCalculatorScan { 0%,100%{transform:translateX(-1px);opacity:.58} 48%{transform:translateX(2px);opacity:1} 68%{transform:translateX(0);opacity:.78} }
  .product-price-converter-backdrop { position:fixed; z-index:12000; inset:0; display:flex; align-items:center; justify-content:center; padding:20px; background:rgba(0,0,0,.42); backdrop-filter:blur(2px); }
  .product-price-converter-backdrop[hidden] { display:none !important; }
  .product-price-converter-panel { width:min(100%,390px); border:1px solid var(--adaptive-price); border-radius:12px; overflow:hidden; background:var(--black-3); box-shadow:0 20px 56px rgba(0,0,0,.42),0 0 0 1px rgba(57,255,20,.08); }
  .product-price-converter-header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; padding:15px 16px 12px; border-bottom:1px solid var(--black-5); }
  .product-price-converter-eyebrow { margin:0 0 4px; color:var(--adaptive-price); font-family:var(--font-body); font-size:.53rem; font-weight:900; letter-spacing:1.7px; }
  .product-price-converter-header h4 { margin:0; color:var(--adaptive-text); font-family:var(--font-body); font-size:.95rem; font-weight:900; letter-spacing:.4px; }
  .product-price-converter-close { width:28px; height:28px; display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; border:1px solid var(--black-6); border-radius:6px; background:transparent; color:var(--adaptive-text); font-size:1.25rem; line-height:1; cursor:pointer; transition:color .2s ease,border-color .2s ease,background .2s ease; }
  .product-price-converter-close:hover { color:#ff5252; border-color:#ff5252; background:rgba(255,82,82,.08); }
  .product-price-converter-body { display:flex; flex-direction:column; gap:13px; padding:15px 16px 16px; }
  .product-price-converter-label { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:5px; color:var(--white-60); font-family:var(--font-body); font-size:.59rem; font-weight:800; letter-spacing:1px; text-transform:uppercase; }
  .product-price-converter-label span:last-child { color:var(--adaptive-price); font-family:var(--font-mono); font-size:.58rem; letter-spacing:0; text-transform:none; }
  .product-price-converter-panel .field-input { min-height:41px; }
  .product-price-converter-bs-row { position:relative; }
  .product-price-converter-bs-prefix { position:absolute; z-index:1; top:50%; left:12px; transform:translateY(-50%); color:var(--adaptive-price); font-family:var(--font-mono); font-size:.78rem; font-weight:800; pointer-events:none; }
  #product-price-converter-bs { box-sizing:border-box; padding-left:38px; text-align:right; font-family:var(--font-mono); font-variant-numeric:tabular-nums; }
  .product-price-converter-result { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:53px; padding:11px 12px; border:1px solid var(--black-5); border-radius:8px; background:var(--black-4); }
  .product-price-converter-result span { color:var(--white-30); font-family:var(--font-body); font-size:.54rem; font-weight:800; letter-spacing:1px; }
  .product-price-converter-result strong { max-width:210px; overflow:hidden; color:var(--adaptive-price); font-family:var(--font-mono); font-size:1.05rem; font-variant-numeric:tabular-nums; text-overflow:ellipsis; white-space:nowrap; }
  .product-price-converter-help { margin:0; color:var(--white-30); font-family:var(--font-body); font-size:.62rem; line-height:1.4; }
  .product-price-converter-footer { display:flex; justify-content:flex-end; padding:0 16px 16px; }
  .product-price-converter-ready { min-width:92px; border-color:var(--adaptive-price) !important; }
  body.light-mode .product-price-converter-panel { background:#fff; box-shadow:0 20px 56px rgba(0,0,0,.18),0 0 0 1px rgba(0,128,0,.1); }
  body.light-mode .product-price-converter-result { background:#fafafa; border-color:rgba(0,0,0,.18); }
  body.light-mode .product-price-converter-close { border-color:rgba(0,0,0,.2); }
  @media(max-width:520px){ .product-price-converter-backdrop { padding:12px; align-items:flex-end; } .product-price-converter-panel { width:100%; } }
  @media(prefers-reduced-motion:reduce){ .product-price-converter-trigger,.product-price-converter-trigger svg { transition:none; } .product-price-converter-trigger .converter-scanlines { animation:none; } }

/* Bloque de estilos 129: product-price-converter-inline-popover */
.product-price-converter-slot.converter-open { z-index:220; }
  .product-price-converter-slot > .product-price-converter-backdrop { position:absolute; z-index:220; inset:auto; top:calc(100% + 8px); left:0; display:block; width:100%; padding:0; background:transparent; backdrop-filter:none; }
  .product-price-converter-slot > .product-price-converter-backdrop .product-price-converter-panel { width:min(390px,100%); max-width:none; margin:0; box-shadow:0 18px 42px rgba(0,0,0,.36),0 0 0 1px color-mix(in srgb,var(--adaptive-price) 24%,transparent); }
  .product-price-converter-slot > .product-price-converter-backdrop[hidden] { display:none !important; }
  .product-price-converter-trigger { color:#ffffff; background:transparent; }
  .product-price-converter-trigger:hover, .product-price-converter-trigger:focus-visible { background:transparent; }
  .product-price-converter-trigger:hover svg { transform:none; }
  .product-price-converter-trigger svg { width:18px; height:26px; transition:none; }
  .product-price-converter-trigger .calculator-svg-stroke { stroke:currentColor; stroke-width:10; stroke-linecap:round; stroke-linejoin:round; fill:none; }
  .product-price-converter-trigger .calculator-svg-text { fill:currentColor; font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif; font-weight:600; text-anchor:middle; dominant-baseline:central; }
  .product-price-converter-trigger .calculator-symbol-dollar { animation:productCalculatorToggleSymbol 4s infinite ease-in-out; }
  .product-price-converter-trigger .calculator-symbol-bs { animation:productCalculatorToggleSymbolAlt 4s infinite ease-in-out; }
  @keyframes productCalculatorToggleSymbol { 0%,45%{opacity:1} 50%,95%{opacity:0} 100%{opacity:1} }
  @keyframes productCalculatorToggleSymbolAlt { 0%,45%{opacity:0} 50%,95%{opacity:1} 100%{opacity:0} }
  body.light-mode .product-price-converter-trigger { color:#000000; }
  @media(max-width:520px){ .product-price-converter-slot > .product-price-converter-backdrop .product-price-converter-panel { width:min(390px,calc(100vw - 28px)); } }
  @media(prefers-reduced-motion:reduce){ .product-price-converter-trigger .calculator-symbol-dollar,.product-price-converter-trigger .calculator-symbol-bs { animation:none; } .product-price-converter-trigger .calculator-symbol-bs { opacity:0; } }

/* Bloque de estilos 130: invoice-subtotal-neutral-border */
#invoice-items-table .invoice-line-subtotal {
    border-color: var(--black-6) !important;
  }
  body.light-mode #invoice-items-table .invoice-line-subtotal {
    border-color: rgba(0,0,0,.56) !important;
  }

/* Bloque de estilos 131: product-price-field-spacing-and-stability */
#j-product-form .product-currency-row,
  #k-product-form .product-currency-row,
  .product-item .edit-moneda-row {
    margin-bottom: 12px;
  }
  .product-price-converter-slot > input.field-input {
    text-align: left !important;
  }
  .product-price-converter-trigger,
  .product-price-converter-trigger:hover,
  .product-price-converter-trigger:focus-visible,
  .product-price-converter-trigger:active {
    transform: translateY(-50%) !important;
    transition: background .2s ease, color .2s ease !important;
  }
  .product-price-converter-trigger svg,
  .product-price-converter-trigger:hover svg,
  .product-price-converter-trigger:active svg {
    transform: none !important;
    transition: none !important;
  }

/* Bloque de estilos 132: product-calculator-icon-fixed-final */
#market-app .product-price-converter-trigger,
  #market-app .product-price-converter-trigger:hover,
  #market-app .product-price-converter-trigger:focus,
  #market-app .product-price-converter-trigger:focus-visible,
  #market-app .product-price-converter-trigger:active {
    transform: translateY(-50%) !important;
    margin: 0 !important;
  }
  #market-app .product-price-converter-trigger svg,
  #market-app .product-price-converter-trigger:hover svg,
  #market-app .product-price-converter-trigger:active svg {
    transform: none !important;
  }

/* Bloque de estilos 133: product-calculator-icon-contained */
#market-app .product-price-converter-slot > .product-price-converter-trigger,
  #market-app .product-price-converter-slot > .product-price-converter-trigger:hover,
  #market-app .product-price-converter-slot > .product-price-converter-trigger:focus,
  #market-app .product-price-converter-slot > .product-price-converter-trigger:focus-visible,
  #market-app .product-price-converter-slot > .product-price-converter-trigger:active {
    position: absolute !important;
    top: 50% !important;
    right: 6px !important;
    bottom: auto !important;
    left: auto !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    line-height: 0 !important;
    transform: translateY(-50%) !important;
    transition: color .2s ease, background .2s ease !important;
    will-change: auto !important;
  }
  #market-app .product-price-converter-slot > .product-price-converter-trigger svg,
  #market-app .product-price-converter-slot > .product-price-converter-trigger:hover svg,
  #market-app .product-price-converter-slot > .product-price-converter-trigger:active svg {
    display: block !important;
    width: 15px !important;
    height: 22px !important;
    max-width: 15px !important;
    max-height: 22px !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    transform: none !important;
  }

/* Bloque de estilos 134: product-calculator-icon-visible-final */
#market-app .product-price-converter-slot > .product-price-converter-trigger,
  #market-app .product-price-converter-slot > .product-price-converter-trigger:hover,
  #market-app .product-price-converter-slot > .product-price-converter-trigger:focus,
  #market-app .product-price-converter-slot > .product-price-converter-trigger:focus-visible,
  #market-app .product-price-converter-slot > .product-price-converter-trigger:active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    top: 50% !important;
    right: 7px !important;
    width: 30px !important;
    height: 32px !important;
    min-width: 30px !important;
    min-height: 32px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #ffffff !important;
    overflow: hidden !important;
    opacity: 1 !important;
    transform: translateY(-50%) !important;
    animation: none !important;
  }
  #market-app .product-price-converter-slot > .product-price-converter-trigger svg,
  #market-app .product-price-converter-slot > .product-price-converter-trigger:hover svg,
  #market-app .product-price-converter-slot > .product-price-converter-trigger:active svg {
    display: block !important;
    flex: 0 0 auto !important;
    width: 22px !important;
    height: 30px !important;
    max-width: 22px !important;
    max-height: 30px !important;
    overflow: visible !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  #market-app .product-price-converter-trigger .calculator-svg-stroke {
    display: block !important;
    stroke: currentColor !important;
    stroke-width: 16 !important;
    fill: none !important;
    opacity: 1 !important;
  }
  #market-app .product-price-converter-trigger .calculator-svg-text {
    display: block !important;
    fill: currentColor !important;
    opacity: 1 !important;
  }
  #market-app .product-price-converter-trigger .calculator-symbol-dollar {
    animation: productCalculatorToggleSymbol 4s infinite ease-in-out !important;
  }
  #market-app .product-price-converter-trigger .calculator-symbol-bs {
    animation: productCalculatorToggleSymbolAlt 4s infinite ease-in-out !important;
  }
  #market-app .product-price-converter-trigger svg * { pointer-events: none !important; }
  body.light-mode #market-app .product-price-converter-slot > .product-price-converter-trigger,
  body.light-mode #market-app .product-price-converter-slot > .product-price-converter-trigger:hover,
  body.light-mode #market-app .product-price-converter-slot > .product-price-converter-trigger:focus,
  body.light-mode #market-app .product-price-converter-slot > .product-price-converter-trigger:active {
    color: #000000 !important;
  }

/* Bloque de estilos 135: product-calculator-clean-final */
#market-app .product-price-converter-slot > .product-price-converter-trigger.btn-icon,
  #market-app .product-price-converter-slot > .product-price-converter-trigger.btn-icon:hover,
  #market-app .product-price-converter-slot > .product-price-converter-trigger.btn-icon:focus,
  #market-app .product-price-converter-slot > .product-price-converter-trigger.btn-icon:focus-visible,
  #market-app .product-price-converter-slot > .product-price-converter-trigger.btn-icon:active {
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    transform: translateY(-50%) !important;
  }
  #market-app .product-price-converter-panel {
    border-color: var(--surface-border-current) !important;
    box-shadow: 0 18px 42px rgba(0,0,0,.34) !important;
  }
  #market-app .product-price-converter-header-compact {
    min-height: 0 !important;
    justify-content: flex-end !important;
    padding: 8px 10px 0 !important;
    border-bottom: 0 !important;
  }
  body.light-mode #market-app .product-price-converter-panel {
    border-color: rgba(0,0,0,.2) !important;
    box-shadow: 0 18px 42px rgba(0,0,0,.18) !important;
  }


/* Bloque de estilos 124: header-rates-panel */
#market-app .app-header #header-rates-trigger {
  right: 228px !important;
}
#market-app .app-header .header-theme-trigger {
  right: 276px !important;
}
#market-app .app-header #header-rates-trigger > svg {
  width: 25px !important;
  height: 25px !important;
  min-width: 25px !important;
  min-height: 25px !important;
  transition: transform 0.2s ease, color 0.2s ease;
}
#market-app .app-header #header-rates-trigger[aria-expanded="true"] {
  color: var(--green) !important;
  border-color: var(--green) !important;
  background: rgba(57, 255, 20, 0.08) !important;
}
#market-app .app-header #header-rates-trigger[aria-expanded="true"] > svg {
  transform: scale(0.92);
}
#header-rates-panel {
  position: fixed;
  z-index: 1000;
  top: 76px;
  right: 170px;
  width: min(320px, calc(100vw - 28px));
  padding: 14px;
  border: 1px solid rgba(57, 255, 20, 0.45);
  border-radius: 12px;
  background: rgba(10, 12, 10, 0.98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42), 0 0 24px rgba(57, 255, 20, 0.1);
  backdrop-filter: blur(16px);
}
#header-rates-panel[hidden] {
  display: none !important;
}
.header-rates-title {
  margin: 0 0 10px;
  color: var(--white-60);
  font-family: var(--font-body);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 2px;
}
.header-rate-row {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) auto 32px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 8px 10px 10px;
  border-top: var(--surface-border-width) solid var(--surface-border-current);
}
.header-rate-currency {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--white-60);
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.6px;
}
.header-rate-symbol {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(57, 255, 20, 0.42);
  border-radius: 6px;
  color: var(--green);
  font-size: 0.76rem;
}
.header-rate-value {
  min-width: 88px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}
.header-rate-copy-btn {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--black-6);
  border-radius: 7px;
  color: var(--white-60);
  background: var(--black-4);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.header-rate-copy-btn svg {
  width: 15px;
  height: 15px;
}
.header-rate-copy-btn:hover,
.header-rate-copy-btn:focus-visible,
.header-rate-copy-btn.copied {
  border-color: var(--green);
  color: var(--green);
  background: rgba(57, 255, 20, 0.09);
  outline: 0;
}
.header-rate-copy-btn:active {
  transform: scale(0.92);
}
body.light-mode #header-rates-panel {
  border-color: rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}
body.light-mode .header-rate-row {
  border-top-color: rgba(0, 0, 0, 0.12);
}
body.light-mode .header-rates-title,
body.light-mode .header-rate-currency {
  color: rgba(0, 0, 0, 0.56);
}
body.light-mode .header-rate-value {
  color: rgba(0, 0, 0, 0.9);
}
body.light-mode .header-rate-copy-btn {
  border-color: rgba(0, 0, 0, 0.18);
  color: rgba(0, 0, 0, 0.62);
  background: rgba(0, 0, 0, 0.04);
}
@media (max-width: 620px) {
  #market-app .app-header #header-rates-trigger { right: 162px !important; }
  #market-app .app-header .header-theme-trigger { right: 198px !important; }
  #market-app .app-header #header-rates-trigger > svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
  }
  #header-rates-panel {
    top: 62px;
    right: 12px;
    width: min(300px, calc(100vw - 24px));
  }
}


/* Bloque de estilos 135: header-controls-and-rates-panel-refinement */
/* Controles compactos, con iconografía y bordes de opacidad uniforme. */
#market-app .app-header .header-terms-trigger,
#market-app .app-header .header-theme-trigger {
  box-sizing: border-box !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.025) !important;
  color: rgba(255, 255, 255, 0.58) !important;
  box-shadow: none !important;
}
#market-app .app-header .header-terms-trigger > svg,
#market-app .app-header .header-theme-trigger .header-theme-icon,
#market-app .app-header #header-rates-trigger > svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  flex-basis: 18px !important;
  opacity: 0.9;
}
#market-app .app-header .header-terms-trigger:hover,
#market-app .app-header .header-terms-trigger:focus-visible,
#market-app .app-header .header-theme-trigger:hover,
#market-app .app-header .header-theme-trigger:focus-visible {
  border-color: rgba(57, 255, 20, 0.72) !important;
  background: rgba(57, 255, 20, 0.06) !important;
  color: rgba(215, 255, 207, 0.9) !important;
  outline: 0;
}
#market-app .app-header #header-rates-trigger[aria-expanded="true"] {
  border-color: rgba(57, 255, 20, 0.78) !important;
  background: rgba(57, 255, 20, 0.08) !important;
  color: rgba(215, 255, 207, 0.92) !important;
}
#header-rates-panel {
  border-color: rgba(255, 255, 255, 0.3) !important;
  border-radius: 10px !important;
  background: #080808 !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42) !important;
  backdrop-filter: none !important;
}
.header-rates-title {
  color: rgba(255, 255, 255, 0.48) !important;
}
.header-rate-row {
  border-top-color: rgba(255, 255, 255, 0.15) !important;
}
.header-rate-currency {
  color: rgba(255, 255, 255, 0.58) !important;
}
.header-rate-symbol {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: rgba(255, 255, 255, 0.54) !important;
  font-size: 0.72rem !important;
}
.header-rate-value {
  color: rgba(255, 255, 255, 0.9) !important;
}
.header-rate-copy-btn,
.header-rate-copy-btn:hover,
.header-rate-copy-btn:focus-visible,
.header-rate-copy-btn:active,
.header-rate-copy-btn.copied {
  display: inline-grid !important;
  width: 22px !important;
  height: 22px !important;
  place-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: rgba(255, 255, 255, 0.54) !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
  transform: none !important;
}
.header-rate-copy-btn:hover,
.header-rate-copy-btn:focus-visible,
.header-rate-copy-btn.copied {
  color: rgba(215, 255, 207, 0.95) !important;
}
.header-rate-copy-btn svg {
  width: 14px !important;
  height: 14px !important;
}
body.light-mode #market-app .app-header .header-terms-trigger,
body.light-mode #market-app .app-header .header-theme-trigger {
  border-color: rgba(0, 0, 0, 0.34) !important;
  background: rgba(255, 255, 255, 0.34) !important;
  color: rgba(0, 0, 0, 0.52) !important;
}
body.light-mode #market-app .app-header .header-terms-trigger:hover,
body.light-mode #market-app .app-header .header-terms-trigger:focus-visible,
body.light-mode #market-app .app-header .header-theme-trigger:hover,
body.light-mode #market-app .app-header .header-theme-trigger:focus-visible,
body.light-mode #market-app .app-header #header-rates-trigger[aria-expanded="true"] {
  border-color: rgba(0, 112, 43, 0.62) !important;
  background: rgba(0, 112, 43, 0.08) !important;
  color: rgba(0, 76, 29, 0.74) !important;
}
body.light-mode #header-rates-panel {
  border-color: rgba(0, 0, 0, 0.24) !important;
  background: #ffffff !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18) !important;
}
body.light-mode .header-rates-title,
body.light-mode .header-rate-currency,
body.light-mode .header-rate-symbol {
  color: rgba(0, 0, 0, 0.5) !important;
}
body.light-mode .header-rate-row {
  border-top-color: rgba(0, 0, 0, 0.13) !important;
}
body.light-mode .header-rate-value {
  color: rgba(0, 0, 0, 0.82) !important;
}
body.light-mode .header-rate-copy-btn,
body.light-mode .header-rate-copy-btn:hover,
body.light-mode .header-rate-copy-btn:focus-visible,
body.light-mode .header-rate-copy-btn:active,
body.light-mode .header-rate-copy-btn.copied {
  color: rgba(0, 0, 0, 0.48) !important;
  background: transparent !important;
}
body.light-mode .header-rate-copy-btn:hover,
body.light-mode .header-rate-copy-btn:focus-visible,
body.light-mode .header-rate-copy-btn.copied {
  color: rgba(0, 91, 34, 0.8) !important;
}
@media (max-width: 620px) {
  #market-app .app-header .header-terms-trigger > svg,
  #market-app .app-header .header-theme-trigger .header-theme-icon,
  #market-app .app-header #header-rates-trigger > svg {
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    min-height: 15px !important;
    flex-basis: 15px !important;
  }
}


/* Bloque de estilos 136: header-controls-square-geometry */
/* Geometría compartida de los controles de cabecera: cajas cuadradas y esquina corta. */
#market-app .app-header .header-terms-trigger,
#market-app .app-header .header-theme-trigger,
#market-app .app-header .header-profile-placeholder,
#market-app .app-header #header-rates-trigger,
#market-app .app-header #header-rates-trigger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  aspect-ratio: 1 / 1 !important;
  padding: 0 !important;
}
#market-app .app-header #header-rates-trigger > svg {
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  min-height: 17px !important;
  flex: 0 0 17px !important;
}
@media (max-width: 620px) {
  #market-app .app-header .header-terms-trigger,
  #market-app .app-header .header-theme-trigger,
  #market-app .app-header .header-profile-placeholder,
  #market-app .app-header #header-rates-trigger,
  #market-app .app-header #header-rates-trigger > svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    flex-basis: 14px !important;
  }
}


/* Bloque de estilos 137: services-cards-product-proportion */
/* Las tarjetas ganan presencia vertical; el panel conserva su tamaño y usa el desplazamiento ya existente. */
#productos-tab #panel-servicios #servicios-list {
  gap: 8px !important;
}
#productos-tab .products-grid #panel-servicios .service-card,
#productos-tab #productos-secondary-column #panel-servicios .service-card,
#right-sidebar .product-side-tools #panel-servicios .service-card {
  flex: 0 0 108px !important;
  height: 108px !important;
  min-height: 108px !important;
  padding: 10px 11px !important;
  border-radius: 8px !important;
}
#productos-tab .products-grid #panel-servicios .card-icon-container,
#productos-tab #productos-secondary-column #panel-servicios .card-icon-container,
#right-sidebar .product-side-tools #panel-servicios .card-icon-container {
  width: 68px !important;
  height: 68px !important;
  flex: 0 0 68px !important;
}
#productos-tab .products-grid #panel-servicios .card-top-section,
#productos-tab #productos-secondary-column #panel-servicios .card-top-section,
#right-sidebar .product-side-tools #panel-servicios .card-top-section {
  gap: 10px !important;
}
#productos-tab .products-grid #panel-servicios .card-title,
#productos-tab #productos-secondary-column #panel-servicios .card-title,
#right-sidebar .product-side-tools #panel-servicios .card-title {
  font-size: 0.70rem !important;
  line-height: 1.15 !important;
}
#productos-tab .products-grid #panel-servicios .card-subtitle,
#productos-tab #productos-secondary-column #panel-servicios .card-subtitle,
#right-sidebar .product-side-tools #panel-servicios .card-subtitle {
  margin-top: 5px !important;
  font-size: 0.54rem !important;
  line-height: 1.25 !important;
}
#productos-tab .products-grid #panel-servicios .card-bottom-section,
#productos-tab #productos-secondary-column #panel-servicios .card-bottom-section,
#right-sidebar .product-side-tools #panel-servicios .card-bottom-section {
  margin-left: 9px !important;
  gap: 6px !important;
}
@media (max-width: 620px) {
  #productos-tab .products-grid #panel-servicios .service-card,
  #productos-tab #productos-secondary-column #panel-servicios .service-card,
  #right-sidebar .product-side-tools #panel-servicios .service-card {
    flex-basis: 88px !important;
    height: 88px !important;
    min-height: 88px !important;
    padding: 8px 9px !important;
  }
  #productos-tab .products-grid #panel-servicios .card-icon-container,
  #productos-tab #productos-secondary-column #panel-servicios .card-icon-container,
  #right-sidebar .product-side-tools #panel-servicios .card-icon-container {
    width: 54px !important;
    height: 54px !important;
    flex-basis: 54px !important;
  }
}


/* Bloque de estilos 138: services-cards-exact-product-height */
/* Igualación precisa con los 171 px medidos de las tarjetas de productos; el panel no cambia de tamaño. */
#productos-tab .products-grid #panel-servicios .service-card,
#productos-tab #productos-secondary-column #panel-servicios .service-card,
#right-sidebar .product-side-tools #panel-servicios .service-card {
  flex-basis: 171px !important;
  height: 171px !important;
  min-height: 171px !important;
  padding: 13px !important;
}
#productos-tab .products-grid #panel-servicios .card-icon-container,
#productos-tab #productos-secondary-column #panel-servicios .card-icon-container,
#right-sidebar .product-side-tools #panel-servicios .card-icon-container {
  width: 112px !important;
  height: 112px !important;
  flex-basis: 112px !important;
}
#productos-tab .products-grid #panel-servicios .card-title,
#productos-tab #productos-secondary-column #panel-servicios .card-title,
#right-sidebar .product-side-tools #panel-servicios .card-title {
  font-size: 0.76rem !important;
}
#productos-tab .products-grid #panel-servicios .card-subtitle,
#productos-tab #productos-secondary-column #panel-servicios .card-subtitle,
#right-sidebar .product-side-tools #panel-servicios .card-subtitle {
  font-size: 0.58rem !important;
}
@media (max-width: 620px) {
  #productos-tab .products-grid #panel-servicios .service-card,
  #productos-tab #productos-secondary-column #panel-servicios .service-card,
  #right-sidebar .product-side-tools #panel-servicios .service-card {
    flex-basis: 128px !important;
    height: 128px !important;
    min-height: 128px !important;
  }
  #productos-tab .products-grid #panel-servicios .card-icon-container,
  #productos-tab #productos-secondary-column #panel-servicios .card-icon-container,
  #right-sidebar .product-side-tools #panel-servicios .card-icon-container {
    width: 82px !important;
    height: 82px !important;
    flex-basis: 82px !important;
  }
}


/* Bloque de estilos 139: header-draggable-calculator */
/* Acceso cuadrado previo al control de navegación y calculadora negra flotante. */
#market-app .app-header #header-calculator-trigger {
  position: fixed !important;
  z-index: 1002 !important;
  top: 28px !important;
  right: 372px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 !important;
  border: 1px solid rgba(255,255,255,.34) !important;
  border-radius: 3px !important;
  background: rgba(255,255,255,.025) !important;
  color: rgba(255,255,255,.58) !important;
  box-shadow: none !important;
  cursor: pointer;
}
#market-app .app-header #header-calculator-trigger > svg {
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  min-height: 17px !important;
}
#market-app .app-header #header-calculator-trigger:hover,
#market-app .app-header #header-calculator-trigger:focus-visible,
#market-app .app-header #header-calculator-trigger[aria-expanded="true"] {
  border-color: rgba(57,255,20,.72) !important;
  background: rgba(57,255,20,.06) !important;
  color: rgba(215,255,207,.9) !important;
  outline: 0;
}
#market-app #sidebar-calc-panel.calculator-window {
  position: fixed !important;
  z-index: 12500 !important;
  top: 82px;
  right: 20px;
  width: min(318px, calc(100vw - 24px));
  display: none;
  flex-direction: column;
  gap: 0;
  margin: 0 !important;
  padding: 12px !important;
  overflow: hidden;
  border: 1px solid #303030 !important;
  border-radius: 8px !important;
  background: #050505 !important;
  box-shadow: 0 20px 50px rgba(0,0,0,.68), inset 0 1px 0 rgba(255,255,255,.07) !important;
  color: #ffffff !important;
}
#market-app #sidebar-calc-panel.calculator-window[hidden] { display: none !important; }
#market-app #sidebar-calc-panel.calculator-window.open:not([hidden]) { display: flex !important; }
#market-app #sidebar-calc-panel.calculator-window.dragging { cursor: grabbing; user-select: none; }
body.calculator-is-dragging { user-select: none !important; cursor: grabbing !important; }
#market-app .sc-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  margin: -2px -2px 10px;
  padding: 0 2px 8px;
  border-bottom: 1px solid #242424;
  color: rgba(255,255,255,.72);
  cursor: grab;
  touch-action: none;
  user-select: none;
}
#market-app .sc-window-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: 1.4px;
}
#market-app .sc-window-title svg { width: 16px; height: 16px; color: rgba(255,255,255,.64); }
#market-app .sc-drag-indicator { color: rgba(255,255,255,.42); font-family: var(--font-mono); font-size: .78rem; letter-spacing: 2px; }
#market-app #sidebar-calc-panel.calculator-window .sc-screen {
  height: 78px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #2c2c2c;
  border-radius: 5px;
  background: #000000;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.88), inset 0 0 0 1px rgba(255,255,255,.025);
}
#market-app #sidebar-calc-panel.calculator-window .sc-expr { color: rgba(255,255,255,.58); }
#market-app #sidebar-calc-panel.calculator-window .sc-result { color: #ffffff; }
#market-app #sidebar-calc-panel.calculator-window .sc-grid { gap: 7px; }
#market-app #sidebar-calc-panel.calculator-window .sc-btn,
#market-app #sidebar-calc-panel.calculator-window .sc-btn.op,
#market-app #sidebar-calc-panel.calculator-window .sc-btn.clear,
#market-app #sidebar-calc-panel.calculator-window .sc-btn.del,
#market-app #sidebar-calc-panel.calculator-window .sc-btn.eq {
  min-height: 42px;
  border: 1px solid #313131 !important;
  border-radius: 5px;
  background: linear-gradient(180deg, #202020 0%, #0a0a0a 100%) !important;
  color: #ffffff !important;
  font-size: .92rem;
  font-weight: 700;
  box-shadow: 0 3px 0 #010101, inset 0 1px 0 rgba(255,255,255,.10) !important;
}
#market-app #sidebar-calc-panel.calculator-window .sc-btn:hover,
#market-app #sidebar-calc-panel.calculator-window .sc-btn.op:hover,
#market-app #sidebar-calc-panel.calculator-window .sc-btn.clear:hover,
#market-app #sidebar-calc-panel.calculator-window .sc-btn.del:hover,
#market-app #sidebar-calc-panel.calculator-window .sc-btn.eq:hover {
  border-color: #555555 !important;
  background: linear-gradient(180deg, #292929 0%, #101010 100%) !important;
  color: #ffffff !important;
}
#market-app #sidebar-calc-panel.calculator-window .sc-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #010101, inset 0 1px 5px rgba(0,0,0,.75) !important;
}
body.light-mode #market-app .app-header #header-calculator-trigger {
  border-color: rgba(0,0,0,.34) !important;
  background: rgba(255,255,255,.34) !important;
  color: rgba(0,0,0,.52) !important;
}
body.light-mode #market-app .app-header #header-calculator-trigger:hover,
body.light-mode #market-app .app-header #header-calculator-trigger:focus-visible,
body.light-mode #market-app .app-header #header-calculator-trigger[aria-expanded="true"] {
  border-color: rgba(0,112,43,.62) !important;
  background: rgba(0,112,43,.08) !important;
  color: rgba(0,76,29,.74) !important;
}
@media (max-width: 620px) {
  #market-app .app-header #header-calculator-trigger {
    top: 16px !important;
    right: 270px !important;
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
  }
  #market-app .app-header #header-calculator-trigger > svg { width: 14px !important; height: 14px !important; }
  #market-app #sidebar-calc-panel.calculator-window {
    top: auto;
    right: 12px;
    bottom: 12px;
    width: min(300px, calc(100vw - 24px));
    padding: 10px !important;
  }
  #market-app #sidebar-calc-panel.calculator-window .sc-btn,
  #market-app #sidebar-calc-panel.calculator-window .sc-btn.op,
  #market-app #sidebar-calc-panel.calculator-window .sc-btn.clear,
  #market-app #sidebar-calc-panel.calculator-window .sc-btn.del,
  #market-app #sidebar-calc-panel.calculator-window .sc-btn.eq { min-height: 38px; }
}


/* Bloque de estilos 140: product-unit-price-assistant */
/* Calculadora de precio unitario: conversión, ganancia y división por unidades. */
#market-app .product-price-converter-panel {
  width: min(430px, 100%) !important;
  border-color: rgba(255,255,255,.22) !important;
  background: #050505 !important;
  box-shadow: 0 22px 56px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.05) !important;
}
#market-app .product-price-converter-header {
  align-items: center;
  padding: 13px 16px 11px;
  border-bottom-color: #262626;
}
#market-app .product-price-converter-body {
  gap: 10px;
  padding: 14px 16px 15px;
}
#market-app .product-price-converter-panel .field-input {
  min-height: 40px;
  border-color: #333333;
  background: #101010;
  color: #ffffff;
}
#market-app .product-price-converter-panel .field-input:focus {
  border-color: var(--adaptive-price);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--adaptive-price) 18%, transparent);
}
#market-app .product-price-converter-split-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #303030;
  border-radius: 8px;
  background: #0b0b0b;
}
#market-app .product-price-converter-split-cell {
  display: flex;
  min-width: 0;
  min-height: 78px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 10px 11px;
}
#market-app .product-price-converter-split-cell + .product-price-converter-split-cell {
  border-left: 1px solid #303030;
  background: #080808;
}
#market-app .product-price-converter-split-cell.is-input {
  background: rgba(57,255,20,.035);
}
#market-app .product-price-converter-split-cell .product-price-converter-label {
  display: block;
  margin: 0;
  color: rgba(255,255,255,.58);
  font-size: .51rem;
  line-height: 1.2;
}
#market-app .product-price-converter-split-cell .field-input {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
#market-app .product-price-converter-result-caption {
  overflow: hidden;
  color: rgba(255,255,255,.42);
  font-family: var(--font-body);
  font-size: .49rem;
  font-weight: 800;
  letter-spacing: .7px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#market-app .product-price-converter-split-result {
  overflow: hidden;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: .92rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#market-app .product-price-converter-result {
  min-height: 58px;
  border-color: rgba(57,255,20,.34);
  background: linear-gradient(135deg, rgba(57,255,20,.09), rgba(255,255,255,.018));
}
#market-app .product-price-converter-result strong {
  color: var(--adaptive-price);
}
#market-app .product-price-converter-help {
  color: rgba(255,255,255,.5);
  font-size: .63rem;
  line-height: 1.45;
}
#market-app .product-price-converter-footer {
  padding: 0 16px 16px;
}
body.light-mode #market-app .product-price-converter-panel {
  border-color: rgba(0,0,0,.22) !important;
  background: #ffffff !important;
  box-shadow: 0 22px 56px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.8) !important;
}
body.light-mode #market-app .product-price-converter-header {
  border-bottom-color: rgba(0,0,0,.12);
}
body.light-mode #market-app .product-price-converter-panel .field-input {
  border-color: rgba(0,0,0,.22);
  background: #ffffff;
  color: rgba(0,0,0,.88);
}
body.light-mode #market-app .product-price-converter-split-row {
  border-color: rgba(0,0,0,.18);
  background: #f4f4f4;
}
body.light-mode #market-app .product-price-converter-split-cell + .product-price-converter-split-cell {
  border-left-color: rgba(0,0,0,.15);
  background: #fafafa;
}
body.light-mode #market-app .product-price-converter-split-cell.is-input {
  background: rgba(0,112,43,.045);
}
body.light-mode #market-app .product-price-converter-split-cell .product-price-converter-label,
body.light-mode #market-app .product-price-converter-result-caption,
body.light-mode #market-app .product-price-converter-help {
  color: rgba(0,0,0,.52);
}
body.light-mode #market-app .product-price-converter-split-result {
  color: rgba(0,0,0,.9);
}
body.light-mode #market-app .product-price-converter-result {
  border-color: rgba(0,112,43,.34);
  background: linear-gradient(135deg, rgba(0,112,43,.08), rgba(0,0,0,.018));
}
@media (max-width: 520px) {
  #market-app .product-price-converter-body { padding: 12px; }
  #market-app .product-price-converter-footer { padding: 0 12px 12px; }
  #market-app .product-price-converter-split-cell { min-height: 72px; padding: 9px; }
  #market-app .product-price-converter-split-result { font-size: .82rem; }
}


/* Bloque de estilos 141: product-unit-price-assistant-refinement */
/* Encabezado minimalista, campos neutros y contornos solicitados. */
#market-app .product-price-converter-header-close-only {
  position: relative;
  min-height: 0;
  padding: 0;
  border: 0;
}
#market-app .product-price-converter-header-close-only .product-price-converter-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 13px;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 300;
  line-height: .8;
  box-shadow: none;
}
#market-app .product-price-converter-header-close-only .product-price-converter-close:hover,
#market-app .product-price-converter-header-close-only .product-price-converter-close:focus-visible {
  outline: 0;
  border: 0;
  background: transparent;
  color: #39ff14;
}
#market-app .product-price-converter-header-close-only + .product-price-converter-body {
  padding-top: 46px;
}
#market-app .product-price-converter-panel .field-input {
  background: #000000;
}
#market-app .product-price-converter-split-row,
#market-app .product-price-converter-split-cell,
#market-app .product-price-converter-split-cell.is-input,
#market-app .product-price-converter-split-cell + .product-price-converter-split-cell {
  background: #000000;
}
#market-app .product-price-converter-split-cell.is-input {
  border-color: #303030;
}
#market-app .product-price-converter-split-cell .product-price-converter-label {
  color: #39ff14;
  font-weight: 900;
}
#market-app .product-price-converter-result {
  border: 1px solid #39ff14;
  background: transparent;
}
#market-app .product-price-converter-result span {
  color: rgba(255,255,255,.68);
}
body.light-mode #market-app .product-price-converter-header-close-only .product-price-converter-close,
body.light-mode #market-app .product-price-converter-header-close-only .product-price-converter-close:hover,
body.light-mode #market-app .product-price-converter-header-close-only .product-price-converter-close:focus-visible {
  color: #000000;
}
body.light-mode #market-app .product-price-converter-panel .field-input,
body.light-mode #market-app .product-price-converter-split-row,
body.light-mode #market-app .product-price-converter-split-cell,
body.light-mode #market-app .product-price-converter-split-cell.is-input,
body.light-mode #market-app .product-price-converter-split-cell + .product-price-converter-split-cell {
  background: #ffffff;
}
body.light-mode #market-app .product-price-converter-split-cell .product-price-converter-label,
body.light-mode #market-app .product-price-converter-result span,
body.light-mode #market-app .product-price-converter-result strong {
  color: #000000;
}
body.light-mode #market-app .product-price-converter-result {
  border-color: rgba(0,0,0,.78);
  background: transparent;
}
body.light-mode #market-app .product-price-converter-ready {
  border-color: #050505 !important;
  background: #050505 !important;
  color: #ffffff !important;
}


/* Bloque de estilos 142: product-unit-price-assistant-accent */
/* Acento verde exacto y cierre sin superficie residual. */
#market-app .product-price-converter-header-close-only .product-price-converter-close,
#market-app .product-price-converter-header-close-only .product-price-converter-close::before,
#market-app .product-price-converter-header-close-only .product-price-converter-close::after {
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
#market-app .product-price-converter-header-close-only .product-price-converter-close::before,
#market-app .product-price-converter-header-close-only .product-price-converter-close::after {
  content: none !important;
}
#market-app .product-price-converter-header-close-only .product-price-converter-close:hover,
#market-app .product-price-converter-header-close-only .product-price-converter-close:focus,
#market-app .product-price-converter-header-close-only .product-price-converter-close:focus-visible,
#market-app .product-price-converter-header-close-only .product-price-converter-close:active {
  transform: none !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #8CFF00 !important;
}
#market-app .product-price-converter-split-cell .product-price-converter-label {
  color: #8CFF00;
}
#market-app .product-price-converter-result {
  border-color: #8CFF00;
}
#market-app .product-price-converter-panel .field-input:focus {
  border-color: #8CFF00;
  box-shadow: 0 0 0 2px rgba(140,255,0,.22);
}
body.light-mode #market-app .product-price-converter-split-cell .product-price-converter-label,
body.light-mode #market-app .product-price-converter-header-close-only .product-price-converter-close:hover,
body.light-mode #market-app .product-price-converter-header-close-only .product-price-converter-close:focus,
body.light-mode #market-app .product-price-converter-header-close-only .product-price-converter-close:focus-visible,
body.light-mode #market-app .product-price-converter-header-close-only .product-price-converter-close:active {
  color: #080808 !important;
}
body.light-mode #market-app .product-price-converter-result {
  border-color: #080808;
}
body.light-mode #market-app .product-price-converter-panel .field-input:focus {
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(0,0,0,.16);
}


/* Bloque de estilos 143: product-unit-price-assistant-title-hierarchy */
/* Tasa y precio en blanco; ganancia y unidades como únicos títulos de énfasis. */
#market-app .product-price-converter-body > div > .product-price-converter-label {
  color: #ffffff;
}
#market-app .product-price-converter-split-cell .product-price-converter-label {
  color: #8CFF00;
}
body.light-mode #market-app .product-price-converter-body > div > .product-price-converter-label,
body.light-mode #market-app .product-price-converter-split-cell .product-price-converter-label {
  color: #080808 !important;
}


/* Bloque de estilos 144: product-unit-price-assistant-final-contrast */
/* Contraste integral: acento #8CFF00 en oscuro y texto/montos negros en claro. */
#market-app .product-price-converter-result strong {
  color: #8CFF00 !important;
}
#market-app .product-price-converter-panel .field-input:focus,
#market-app .product-price-converter-panel .field-input:focus-visible {
  border-color: #8CFF00 !important;
  box-shadow: 0 0 0 1px rgba(140,255,0,.58) !important;
}
body.light-mode #market-app .product-price-converter-panel,
body.light-mode #market-app .product-price-converter-panel .product-price-converter-label,
body.light-mode #market-app .product-price-converter-panel .product-price-converter-result-caption,
body.light-mode #market-app .product-price-converter-panel .product-price-converter-split-result,
body.light-mode #market-app .product-price-converter-panel .product-price-converter-result span,
body.light-mode #market-app .product-price-converter-panel .product-price-converter-result strong,
body.light-mode #market-app .product-price-converter-panel .product-price-converter-help,
body.light-mode #market-app .product-price-converter-panel .product-price-converter-bs-prefix,
body.light-mode #market-app .product-price-converter-panel .field-input {
  color: #080808 !important;
}
body.light-mode #market-app .product-price-converter-panel .field-input:focus,
body.light-mode #market-app .product-price-converter-panel .field-input:focus-visible {
  border-color: #000000 !important;
  box-shadow: 0 0 0 1px rgba(0,0,0,.55) !important;
}


/* Bloque de estilos 145: product-unit-price-assistant-focus-border */
/* Borde efectivo y fino para el campo activo en cada tema. */
#market-app .product-price-converter-panel .field-input:focus,
#market-app .product-price-converter-panel .field-input:focus-visible {
  border: 1px solid #8CFF00 !important;
  outline: 0 !important;
  box-shadow: 0 0 0 1px rgba(140,255,0,.58) !important;
}
body.light-mode #market-app .product-price-converter-panel .field-input:focus,
body.light-mode #market-app .product-price-converter-panel .field-input:focus-visible {
  border: 1px solid #000000 !important;
  outline: 0 !important;
  box-shadow: 0 0 0 1px rgba(0,0,0,.55) !important;
}


/* Bloque de estilos 146: product-unit-price-assistant-active-field */
/* Especificidad reforzada para todos los campos operativos del asistente. */
body:not(.light-mode) #market-app #product-price-converter-panel .field-input:focus,
body:not(.light-mode) #market-app #product-price-converter-panel .field-input:focus-visible {
  border: 1px solid #8CFF00 !important;
  border-color: #8CFF00 !important;
  outline: 0 !important;
  box-shadow: 0 0 0 1px rgba(140,255,0,.58) !important;
}
body.light-mode #market-app #product-price-converter-panel .field-input:focus,
body.light-mode #market-app #product-price-converter-panel .field-input:focus-visible {
  border: 1px solid #000000 !important;
  border-color: #000000 !important;
  outline: 0 !important;
  box-shadow: 0 0 0 1px rgba(0,0,0,.55) !important;
}



/* Bloque de estilos 148: product-price-assistant-title-colors-final */
/* Las etiquetas usan un span interno; se fija su color para impedir que herede el acento general. */
body:not(.light-mode) #market-app #product-price-converter-panel label[for="product-price-converter-rate"] > span,
body:not(.light-mode) #market-app #product-price-converter-panel label[for="product-price-converter-bs"] > span {
  color: #ffffff !important;
}
body:not(.light-mode) #market-app #product-price-converter-panel label[for="product-price-converter-profit"] > span,
body:not(.light-mode) #market-app #product-price-converter-panel label[for="product-price-converter-units"] > span {
  color: #8CFF00 !important;
}
body.light-mode #market-app #product-price-converter-panel .product-price-converter-label > span {
  color: #080808 !important;
}

/* Bloque de estilos 149: bulk-price-converter-contextual-width */
/* El panel se ancla debajo del precio por bulto, pero no hereda la estrecha columna del campo. */
#market-app .product-price-converter-slot > .product-price-converter-backdrop .product-price-converter-panel {
  width: min(390px, calc(100vw - 28px)) !important;
  max-width: none !important;
}


/* Bloque de estilos 150: header-notes-placeholder */
/* Acceso visual de notas, reservado para una futura implementación funcional. */
#market-app .app-header #header-notes-trigger {
  position: fixed !important;
  z-index: 1002 !important;
  top: 28px !important;
  right: 416px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 !important;
  border: 1px solid rgba(255,255,255,.34) !important;
  border-radius: 3px !important;
  background: rgba(255,255,255,.025) !important;
  color: rgba(255,255,255,.58) !important;
  box-shadow: none !important;
  cursor: pointer;
}
#market-app .app-header #header-notes-trigger > svg {
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  min-height: 17px !important;
}
#market-app .app-header #header-notes-trigger:hover,
#market-app .app-header #header-notes-trigger:focus-visible {
  border-color: rgba(57,255,20,.72) !important;
  background: rgba(57,255,20,.06) !important;
  color: rgba(215,255,207,.9) !important;
  outline: 0;
}
body.light-mode #market-app .app-header #header-notes-trigger {
  border-color: rgba(0,0,0,.34) !important;
  background: rgba(255,255,255,.34) !important;
  color: rgba(0,0,0,.52) !important;
}
body.light-mode #market-app .app-header #header-notes-trigger:hover,
body.light-mode #market-app .app-header #header-notes-trigger:focus-visible {
  border-color: rgba(0,112,43,.62) !important;
  background: rgba(0,112,43,.08) !important;
  color: rgba(0,76,29,.74) !important;
}
@media (max-width: 620px) {
  #market-app .app-header #header-notes-trigger {
    top: 16px !important;
    right: 304px !important;
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
  }
  #market-app .app-header #header-notes-trigger > svg { width: 14px !important; height: 14px !important; }
}

/* Bloque de estilos 151: header-chat-bottom-nav-icon */
/* El SVG se toma de la navegación inferior y conserva su silueta en ambos temas. */
#market-app .app-header #header-chat-trigger > svg[viewBox*="1500"] path {
  fill: currentColor !important;
  stroke: none !important;
}

/* Bloque de estilos 152: header-uniform-square-controls */
/* Los controles de cabecera mantienen una cuadrícula uniforme; solo el perfil permanece circular. */
#market-app .app-header #header-notes-trigger,
#market-app .app-header #header-calculator-trigger,
#market-app .app-header #header-theme-toggle,
#market-app .app-header #header-rates-trigger,
#market-app .app-header #header-notifications-trigger,
#market-app .app-header #header-chat-trigger {
  top: 28px !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 3px !important;
}
#market-app .app-header #header-notes-trigger { right: 322px !important; }
#market-app .app-header #header-calculator-trigger { right: 274px !important; }
#market-app .app-header #header-theme-toggle { right: 226px !important; }
#market-app .app-header #header-rates-trigger { right: 178px !important; }
#market-app .app-header #header-notifications-trigger { right: 130px !important; }
#market-app .app-header #header-chat-trigger { right: 82px !important; }
@media (max-width: 620px) {
  #market-app .app-header #header-notes-trigger,
  #market-app .app-header #header-calculator-trigger,
  #market-app .app-header #header-theme-toggle,
  #market-app .app-header #header-rates-trigger,
  #market-app .app-header #header-notifications-trigger,
  #market-app .app-header #header-chat-trigger {
    top: 16px !important;
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    border-radius: 3px !important;
  }
  #market-app .app-header #header-notes-trigger { right: 234px !important; }
  #market-app .app-header #header-calculator-trigger { right: 198px !important; }
  #market-app .app-header #header-theme-toggle { right: 162px !important; }
  #market-app .app-header #header-rates-trigger { right: 126px !important; }
  #market-app .app-header #header-notifications-trigger { right: 90px !important; }
  #market-app .app-header #header-chat-trigger { right: 54px !important; }
}

/* Bloque de estilos 153: product-price-calculator-supplied-icon */
/* El SVG de operaciones proporcionado se mantiene cuadrado y completamente visible en las casillas de precio. */
#market-app .product-price-converter-slot > .product-price-converter-trigger svg.operations-icon,
#market-app .product-price-converter-slot > .product-price-converter-trigger:hover svg.operations-icon,
#market-app .product-price-converter-slot > .product-price-converter-trigger:active svg.operations-icon {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  aspect-ratio: 1 / 1 !important;
  overflow: visible !important;
}

/* ── Navegación principal en panel lateral derecho ─────────────────────── */
.section-navigation-panel {
  position: fixed;
  top: 118px;
  right: 18px;
  z-index: 1300;
  width: 174px;
  padding: 12px;
  background: var(--black-2);
  border: var(--surface-border-width) solid var(--surface-border-current);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
.section-navigation-heading {
  margin: 0 0 9px;
  padding: 0 3px;
  color: var(--white-30);
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 1.35px;
  text-transform: uppercase;
}
.right-section-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.section-navigation-panel .top-nav-item {
  width: 100%;
  min-height: 38px;
  margin: 0;
  padding: 9px 10px;
  border: var(--surface-border-width) solid var(--surface-border-current);
  border-radius: 7px;
  background: transparent;
  color: var(--white-60);
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  line-height: 1.1;
  text-align: left;
  text-transform: uppercase;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.section-navigation-panel .top-nav-item:hover,
.section-navigation-panel .top-nav-item:focus-visible {
  border-color: var(--white-30);
  background: var(--black-4);
  color: var(--adaptive-text);
  outline: none;
}
.section-navigation-panel .top-nav-item.active {
  border-color: var(--adaptive-text);
  background: var(--adaptive-text);
  color: #000000;
  transform: none !important;
}
body.light-mode .section-navigation-panel {
  background: #ffffff;
  border-color: #cfcfcf;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
body.light-mode .section-navigation-heading { color: #707070; }
body.light-mode .section-navigation-panel .top-nav-item {
  border-color: #d7d7d7;
  color: #3b3b3b;
}
body.light-mode .section-navigation-panel .top-nav-item:hover,
body.light-mode .section-navigation-panel .top-nav-item:focus-visible {
  border-color: #777777;
  background: #f2f2f2;
  color: #000000;
}
body.light-mode .section-navigation-panel .top-nav-item.active {
  border-color: #161616;
  background: #161616;
  color: #ffffff;
}
@media (min-width: 1181px) {
  .app-container { margin-right: 202px !important; }
}
@media (min-width: 769px) and (max-width: 1180px) {
  .section-navigation-panel { right: 10px; width: 148px; padding: 10px; }
  .section-navigation-panel .top-nav-item { min-height: 35px; font-size: 0.56rem; }
  .app-container { margin-right: 168px !important; }
}
@media (max-width: 768px) {
  .section-navigation-panel {
    top: 106px;
    left: 12px;
    right: 12px;
    width: auto;
    padding: 8px;
  }
  .section-navigation-heading { display: none; }
  .right-section-nav {
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .right-section-nav::-webkit-scrollbar { display: none; }
  .section-navigation-panel .top-nav-item {
    width: auto;
    min-width: max-content;
    min-height: 34px;
    padding: 8px 10px;
    text-align: center;
    font-size: 0.55rem;
  }
  .app-container { margin-right: 0 !important; }
}

/* La navegación de secciones ocupa el lateral derecho ya reservado por la aplicación. */
#right-sidebar .section-navigation-panel {
  position: static;
  width: auto;
  margin: 0;
  padding: 15px 13px 14px;
  background: var(--black-2);
  border: 0;
  border-bottom: var(--surface-border-width) solid var(--surface-border-current);
  border-radius: 0;
  box-shadow: none;
}
#right-sidebar .section-navigation-heading { margin: 0 2px 9px; }
#right-sidebar .right-section-nav { display: flex; flex-direction: column; gap: 6px; width: 100%; }
#right-sidebar .section-navigation-panel .top-nav-item {
  width: 100%;
  min-height: 38px;
  margin: 0;
  padding: 9px 11px;
  border: var(--surface-border-width) solid var(--surface-border-current);
  border-radius: 7px;
  background: transparent;
  color: var(--white-60);
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  line-height: 1.1;
  text-align: left;
  text-transform: uppercase;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
#right-sidebar .section-navigation-panel .top-nav-item:hover,
#right-sidebar .section-navigation-panel .top-nav-item:focus-visible {
  border-color: var(--white-30);
  background: var(--black-4);
  color: var(--adaptive-text);
  outline: none;
}
#right-sidebar .section-navigation-panel .top-nav-item.active {
  border-color: var(--adaptive-text);
  background: var(--adaptive-text);
  color: #000000;
  transform: none !important;
}
body.light-mode #right-sidebar .section-navigation-panel { background: #ffffff; border-color: #d4d4d4; }
body.light-mode #right-sidebar .section-navigation-heading { color: #707070; }
body.light-mode #right-sidebar .section-navigation-panel .top-nav-item { border-color: #d7d7d7; color: #3b3b3b; }
body.light-mode #right-sidebar .section-navigation-panel .top-nav-item:hover,
body.light-mode #right-sidebar .section-navigation-panel .top-nav-item:focus-visible { border-color: #777777; background: #f2f2f2; color: #000000; }
body.light-mode #right-sidebar .section-navigation-panel .top-nav-item.active { border-color: #161616; background: #161616; color: #ffffff; }

/* En Facturación, las herramientas contextuales siguen disponibles bajo las secciones. */
body.invoice-tools-visible #right-sidebar .invoice-side-tools {
  height: calc(100% - 349px);
  min-height: 300px;
}
@media (min-width: 769px) and (max-width: 1180px) {
  #right-sidebar {
    display: block !important;
    top: 100px;
    left: 260px;
    right: 0;
    width: auto;
    height: 62px;
    padding: 0;
    border-right: 0;
    border-left: 0;
    border-bottom: var(--surface-border-width) solid var(--surface-border-current);
    overflow: visible;
  }
  #right-sidebar .section-navigation-panel { padding: 10px 14px; border-bottom: 0; }
  #right-sidebar .section-navigation-heading { display: none; }
  #right-sidebar .right-section-nav { flex-direction: row; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  #right-sidebar .right-section-nav::-webkit-scrollbar { display: none; }
  #right-sidebar .section-navigation-panel .top-nav-item { width: auto; min-width: max-content; min-height: 40px; padding: 8px 11px; text-align: center; font-size: 0.55rem; }
  #right-sidebar > :not(#section-navigation-panel) { display: none !important; }
  .app-container { margin-right: 0 !important; width: calc(100% - 260px) !important; }
  #market-app main { margin-top: 170px !important; }
}
@media (max-width: 768px) {
  #right-sidebar {
    display: block !important;
    top: 100px;
    left: 0;
    right: 0;
    width: auto;
    height: 64px;
    padding: 0;
    border-right: 0;
    border-left: 0;
    border-bottom: var(--surface-border-width) solid var(--surface-border-current);
    overflow: visible;
  }
  #right-sidebar .section-navigation-panel { padding: 10px 12px; border-bottom: 0; }
  #right-sidebar .section-navigation-heading { display: none; }
  #right-sidebar .right-section-nav { flex-direction: row; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  #right-sidebar .right-section-nav::-webkit-scrollbar { display: none; }
  #right-sidebar .section-navigation-panel .top-nav-item { width: auto; min-width: max-content; min-height: 40px; padding: 8px 11px; text-align: center; font-size: 0.55rem; }
  #right-sidebar > :not(#section-navigation-panel) { display: none !important; }
  #market-app main { margin-top: 180px !important; }
}

/* ── Navegación principal debajo del reloj en el panel izquierdo ──────── */
#sidebar .section-navigation-panel {
  position: static;
  width: auto;
  margin: 18px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
#sidebar .section-navigation-heading {
  margin: 0 2px 9px;
  color: var(--white-30);
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 1.35px;
  text-transform: uppercase;
}
#sidebar .right-section-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  overflow: visible;
}
#sidebar .section-navigation-panel .top-nav-item {
  box-sizing: border-box;
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--white-30);
  border-radius: 2px;
  background: transparent;
  color: var(--white-60);
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  line-height: 1.1;
  text-align: left;
  text-transform: uppercase;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
#sidebar .section-navigation-panel .top-nav-item:hover,
#sidebar .section-navigation-panel .top-nav-item:focus-visible {
  border-color: var(--white-60);
  background: rgba(255, 255, 255, 0.035);
  color: var(--white);
  outline: none;
}
#sidebar .section-navigation-panel .top-nav-item.active {
  border-color: #8CFF00;
  background: transparent;
  color: #8CFF00;
  transform: none !important;
}
body.light-mode #sidebar .section-navigation-heading { color: rgba(0, 0, 0, 0.48); }
body.light-mode #sidebar .section-navigation-panel .top-nav-item {
  border-color: rgba(0, 0, 0, 0.34);
  color: rgba(0, 0, 0, 0.56);
}
body.light-mode #sidebar .section-navigation-panel .top-nav-item:hover,
body.light-mode #sidebar .section-navigation-panel .top-nav-item:focus-visible {
  border-color: rgba(0, 0, 0, 0.72);
  background: rgba(0, 0, 0, 0.025);
  color: #000000;
}
body.light-mode #sidebar .section-navigation-panel .top-nav-item.active {
  border-color: #000000;
  background: transparent;
  color: #000000;
}
@media (max-width: 768px) {
  #sidebar .section-navigation-panel { margin-top: 16px; }
  #sidebar .right-section-nav { overflow: visible; }
  #sidebar .section-navigation-panel .top-nav-item { min-height: 35px; }
}

/* Prioridad final: los accesos de sección no heredan la forma de píldora de los botones de acción. */
#market-app #sidebar .section-navigation-panel .top-nav-item {
  min-height: 36px !important;
  padding-inline: 10px !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  transform: none !important;
}
#market-app #sidebar .section-navigation-panel .top-nav-item:hover,
#market-app #sidebar .section-navigation-panel .top-nav-item:focus-visible,
#market-app #sidebar .section-navigation-panel .top-nav-item:active {
  border-radius: 2px !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
}

/* ── Refuerzo sutil de paneles y líneas divisoras ────────────────────────
   Solo afecta bordes estructurales; no cambia fondos, textos, radios ni controles. */
:root {
  --surface-border-dark: rgba(255, 255, 255, 0.24);
  --surface-border-light: rgba(0, 0, 0, 0.30);
  --surface-border-width: 1.25px;
}
#market-app .app-header,
#market-app .sidebar,
#market-app .right-sidebar,
#market-app .form-card,
#market-app .product-item,
#market-app .service-card,
#market-app .invoice-history-card,
#market-app .rep-panel,
#market-app .data-table,
#market-app .table-wrap,
#market-app [class*="-panel"],
#market-app [class$="-card"],
#market-app [class*="-card "] {
  border-width: var(--surface-border-width);
  border-color: var(--surface-border-dark);
}
#market-app .app-header,
#market-app .data-table th,
#market-app .data-table td,
#market-app .invoice-details,
#market-app .rep-header,
#market-app [class*="section-heading"],
#market-app [class*="section-header"],
#market-app [class*="divider"] {
  border-width: var(--surface-border-width);
  border-color: var(--surface-border-dark);
}
#market-app [style*="border"][style*="var(--black-5)"],
#market-app [style*="border"][style*="var(--black-6)"] {
  border-width: var(--surface-border-width) !important;
  border-color: var(--surface-border-dark) !important;
}
body.light-mode #market-app .app-header,
body.light-mode #market-app .sidebar,
body.light-mode #market-app .right-sidebar,
body.light-mode #market-app .form-card,
body.light-mode #market-app .product-item,
body.light-mode #market-app .service-card,
body.light-mode #market-app .invoice-history-card,
body.light-mode #market-app .rep-panel,
body.light-mode #market-app .data-table,
body.light-mode #market-app .table-wrap,
body.light-mode #market-app [class*="-panel"],
body.light-mode #market-app [class$="-card"],
body.light-mode #market-app [class*="-card "] {
  border-color: var(--surface-border-light);
}
body.light-mode #market-app .app-header,
body.light-mode #market-app .data-table th,
body.light-mode #market-app .data-table td,
body.light-mode #market-app .invoice-details,
body.light-mode #market-app .rep-header,
body.light-mode #market-app [class*="section-heading"],
body.light-mode #market-app [class*="section-header"],
body.light-mode #market-app [class*="divider"] {
  border-color: var(--surface-border-light);
}
body.light-mode #market-app [style*="border"][style*="var(--black-5)"],
body.light-mode #market-app [style*="border"][style*="var(--black-6)"] {
  border-color: var(--surface-border-light) !important;
}

/* Color activo de líneas estructurales según el tema. */
:root { --surface-border-current: var(--surface-border-dark); }
body.light-mode { --surface-border-current: var(--surface-border-light); }

/* El bloque de cajero ahora muestra solo la identidad autenticada. */
#right-sidebar .cashier-right-layout {
  height: auto !important;
  flex: 0 0 auto !important;
}
#right-sidebar .cashier-active-card {
  width: 100%;
}

/* Facturación: reserva el ancho completo del lateral contextual para mantener
   centrados Crear Factura, Historial y Facturas a Crédito. */
@media (min-width: 1181px) {
  body.invoice-tools-visible .app-container {
    margin-right: 260px !important;
    width: auto !important;
  }
}


/* Bloque de estilos 151: title-and-search-boxes-cleanup */
/* Los marcos deben pertenecer al panel, no a sus títulos, etiquetas o formularios auxiliares. */
#market-app .main-panel-emphasis,
#market-app .main-panel-emphasis.nueva-factura-title,
#market-app .panel-title.main-panel-emphasis,
#market-app .side-panel-search,
#market-app .day-divider-label {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* La línea de estado de pago conserva únicamente su divisor superior. */
#market-app #payment-methods-grid > div[style*="border-top"] {
  border-width: var(--surface-border-width) 0 0 0 !important;
  border-style: solid !important;
  border-color: var(--surface-border-current) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

/* Los encabezados de créditos/proveedores conservan solo la división inferior. */
#market-app .ar-section-heading,
#market-app .ap-section-heading {
  border-width: 0 0 var(--surface-border-width) 0 !important;
  border-style: solid !important;
  border-color: var(--surface-border-current) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Búsqueda de Categorías y Etiquetas: la caja visual corresponde al input, no al formulario. */
#market-app .side-panel-search {
  padding: 0 !important;
  margin: 0 0 9px !important;
}

/* Separador de fecha: texto limpio sobre una línea, sin tarjeta alrededor. */
#market-app .day-divider {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#market-app .day-divider-line {
  border: 0 !important;
  border-radius: 0 !important;
}

/* Encabezados de inventario junto a sus íconos. */
#market-app .inventory-heading {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#market-app .inventory-heading .inventory-heading-icon {
  display: block !important;
  flex: 0 0 auto !important;
}

body.light-mode #market-app .main-panel-emphasis,
body.light-mode #market-app .panel-title.main-panel-emphasis,
body.light-mode #market-app .side-panel-search,
body.light-mode #market-app .day-divider-label,
body.light-mode #market-app .ar-section-heading,
body.light-mode #market-app .ap-section-heading {
  background: transparent !important;
}

#sidebar .section-navigation-divider {
  width: 100%;
  height: 1px;
  margin: 18px 0 14px;
  background: var(--surface-border-current);
  border: 0;
  border-radius: 0;
  opacity: 0.9;
}
body.light-mode #sidebar .section-navigation-divider {
  background: var(--surface-border-current);
}


/* Bloque de estilos 152: profile-button-perfect-circle */
/* El control de perfil conserva su posición, pero queda circular y del mismo tamaño que los botones cuadrados. */
#market-app .app-header #header-profile-trigger,
#market-app .app-header .header-profile-placeholder {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  top: 50% !important;
  right: 32px !important;
  transform: translateY(-50%) !important;
  pointer-events: auto !important;
}

@media (max-width: 620px) {
  #market-app .app-header #header-profile-trigger,
  #market-app .app-header .header-profile-placeholder {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    right: 18px !important;
    border-radius: 50% !important;
  }
}


/* Bloque de estilos 153: header-brand-and-inventory-title-harmony */
/* El grupo de marca se centra con los controles superiores sin alterar su posición izquierda. */
#market-app .app-header .header-main-content {
  align-items: center !important;
}
#market-app .app-header .header-brand-group {
  align-items: center !important;
  padding-bottom: 0 !important;
}

/* Los títulos de inventario igualan el tamaño de Gestión de servicios; los íconos no se redimensionan. */
#market-app #productos-tab #panel-mis-productos .inventory-heading,
#market-app #productos-tab #panel-componentes .inventory-heading {
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: 1.4px !important;
}

@media (max-width: 700px) {
  #market-app #productos-tab #panel-mis-productos .inventory-heading,
  #market-app #productos-tab #panel-componentes .inventory-heading {
    font-size: 0.92rem !important;
    letter-spacing: 1px !important;
  }
}

/* Marca SVG de cabecera: conserva verde fijo y adapta trazos al tema. */
#market-app .app-header .header-brand-group {
  gap: 0 !important;
}
#market-app .app-header .alcaur-header-wordmark {
  display: block;
  width: clamp(360px, 35vw, 520px);
  height: 92px;
  flex: 0 1 520px;
  min-width: 0;
}
#market-app .app-header .alcaur-header-wordmark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}
#market-app .app-header .alcaur-header-wordmark-dark {
  display: block !important;
}
#market-app .app-header .alcaur-header-wordmark-light {
  display: none !important;
}
body.light-mode #market-app .app-header .alcaur-header-wordmark-dark {
  display: none !important;
}
body.light-mode #market-app .app-header .alcaur-header-wordmark-light {
  display: block !important;
}
@media (max-width: 700px) {
  #market-app .app-header .alcaur-header-wordmark {
    width: clamp(330px, 82vw, 420px);
    height: 86px;
    flex-basis: auto;
  }
}

/* Ampliación adicional solicitada para mejorar la lectura de la marca. */
#market-app .app-header .alcaur-header-wordmark {
  width: clamp(450px, 48vw, 680px);
  height: 92px;
  flex-basis: 680px;
}
@media (max-width: 700px) {
  #market-app .app-header .alcaur-header-wordmark {
    width: clamp(390px, 96vw, 520px);
    height: 86px;
    flex-basis: auto;
  }
}

/* El SVG suministrado incluye un lienzo 16:9; se recorta de forma controlada para que la marca ocupe el área visible. */
#market-app .app-header .alcaur-header-wordmark {
  overflow: hidden;
}
#market-app .app-header .alcaur-header-wordmark img {
  object-fit: cover;
  object-position: center 43%;
}

/* Reducción del 50 % solicitada para equilibrar la marca en la cabecera. */
#market-app .app-header .alcaur-header-wordmark {
  width: clamp(225px, 24vw, 340px);
  height: 46px;
  flex-basis: 340px;
}
@media (max-width: 700px) {
  #market-app .app-header .alcaur-header-wordmark {
    width: clamp(195px, 48vw, 260px);
    height: 43px;
    flex-basis: auto;
  }
}

/* Escala compacta final solicitada para la marca de cabecera. */
#market-app .app-header .alcaur-header-wordmark {
  width: clamp(190px, 22vw, 240px);
  height: 46px;
  flex-basis: 240px;
}
@media (max-width: 700px) {
  #market-app .app-header .alcaur-header-wordmark {
    width: clamp(170px, 48vw, 220px);
    height: 40px;
    flex-basis: auto;
  }
}

/* Ajuste vertical leve para evitar que la parte superior de la marca quede cortada. */
#market-app .app-header .alcaur-header-wordmark img {
  object-position: center 34%;
  transform: translateY(4px);
}

/* Evita mostrar el formulario durante la restauración inicial de una sesión persistente. */
html.alcaur-auth-booting {
  background: #000000 !important;
}
html.alcaur-auth-booting #login-screen {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Vista previa vacía: gusano y texto de selección ligeramente más visibles. */
#market-app #inv-preview-empty .inv-preview-empty-worm {
  width: 150px;
  height: auto;
  opacity: 0.78;
}
#market-app #inv-preview-empty .inv-preview-empty-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: rgba(232, 255, 222, 0.78);
  text-shadow: 0 0 3px rgba(140, 255, 0, 0.42), 0 0 6px rgba(140, 255, 0, 0.18);
}
body.light-mode #market-app #inv-preview-empty .inv-preview-empty-label {
  color: rgba(0, 0, 0, 0.62);
  text-shadow: 0 0 3px rgba(140, 255, 0, 0.34), 0 0 6px rgba(140, 255, 0, 0.12);
}

/* Luminosidad interna del texto de vista previa: sin contorno ni halo exterior. */
@keyframes invPreviewTextLightSweep {
  0% { background-position: 180% 50%; }
  100% { background-position: -80% 50%; }
}
#market-app #inv-preview-empty .inv-preview-empty-label {
  background: linear-gradient(90deg, rgba(232,255,222,0.48) 0%, rgba(232,255,222,0.48) 38%, #ffffff 50%, rgba(232,255,222,0.48) 62%, rgba(232,255,222,0.48) 100%);
  background-size: 260% 100%;
  background-position: 180% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  text-shadow: none !important;
  animation: invPreviewTextLightSweep 3.2s ease-in-out infinite;
}
body.light-mode #market-app #inv-preview-empty .inv-preview-empty-label {
  background: linear-gradient(90deg, rgba(0,0,0,0.52) 0%, rgba(0,0,0,0.52) 38%, #111111 50%, rgba(0,0,0,0.52) 62%, rgba(0,0,0,0.52) 100%);
  background-size: 260% 100%;
  background-position: 180% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  text-shadow: none !important;
}
@media (prefers-reduced-motion: reduce) {
  #market-app #inv-preview-empty .inv-preview-empty-label {
    animation: none;
    background-position: 50% 50%;
  }
}

/* Panel superior de avisos de inventario. */
#market-app .app-header .header-notifications-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
#market-app .app-header #header-notifications-trigger {
  position: relative;
}
#market-app .app-header .header-notifications-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--black-2);
  border-radius: 999px;
  background: #e3262e;
  color: #ffffff;
  font: 700 0.55rem/1 var(--font-body), sans-serif;
  z-index: 3;
}
#market-app .app-header .header-notifications-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(340px, calc(100vw - 28px));
  max-height: min(430px, calc(100vh - 120px));
  overflow: hidden;
  padding: 12px;
  border: 1.25px solid var(--surface-border-current);
  border-radius: 8px;
  background: var(--black-2);
  color: var(--white);
  box-shadow: 0 16px 36px rgba(0,0,0,0.38);
  z-index: 2500;
}
#market-app .app-header .header-notifications-panel[hidden] { display: none !important; }
#market-app .app-header .header-notifications-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 10px;
  border-bottom: 1.25px solid var(--surface-border-current);
  font: 700 0.68rem/1.2 var(--font-body), sans-serif;
  letter-spacing: 1.2px;
}
#market-app .app-header #header-notifications-mark-read {
  border: 0;
  padding: 2px 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font: 700 0.55rem/1.2 var(--font-body), sans-serif;
  letter-spacing: 0.5px;
}
#market-app .app-header .header-notifications-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 350px;
  overflow-y: auto;
  padding-top: 10px;
}
#market-app .app-header .header-notification-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 10px;
  border-left: 3px solid #e3262e;
  background: rgba(227,38,46,0.08);
}
#market-app .app-header .header-notification-item.is-read {
  border-left-color: var(--white-30);
  opacity: 0.58;
}
#market-app .app-header .header-notification-item strong {
  color: #ff5b61;
  font: 800 0.62rem/1.2 var(--font-body), sans-serif;
  letter-spacing: 0.7px;
}
#market-app .app-header .header-notification-item span,
#market-app .app-header .header-notifications-empty {
  color: var(--white-60);
  font: 500 0.66rem/1.4 var(--font-body), sans-serif;
}
body.light-mode #market-app .app-header .header-notifications-badge {
  border-color: #ffffff;
}
body.light-mode #market-app .app-header .header-notifications-panel {
  border-color: rgba(0,0,0,0.25);
  background: #ffffff;
  color: #111111;
  box-shadow: 0 16px 36px rgba(0,0,0,0.18);
}
body.light-mode #market-app .app-header .header-notifications-panel-head {
  border-bottom-color: rgba(0,0,0,0.18);
}
body.light-mode #market-app .app-header .header-notifications-item strong,
body.light-mode #market-app .app-header .header-notification-item strong { color: #c5161d; }
body.light-mode #market-app .app-header .header-notification-item { background: rgba(227,38,46,0.06); }
body.light-mode #market-app .app-header .header-notification-item span,
body.light-mode #market-app .app-header .header-notifications-empty { color: rgba(0,0,0,0.62); }
@media (max-width: 700px) {
  #market-app .app-header .header-notifications-panel {
    position: fixed;
    top: 108px;
    right: 12px;
  }
}

/* Corrección final: notificaciones alineadas con tasas y chat. */
#market-app .app-header .header-notifications-wrap {
  position: absolute !important;
  top: 28px !important;
  right: 130px !important;
  width: 36px !important;
  height: 36px !important;
}
#market-app .app-header .header-notifications-wrap #header-notifications-trigger {
  position: relative !important;
  top: 0 !important;
  right: 0 !important;
}
@media (max-width: 620px) {
  #market-app .app-header .header-notifications-wrap {
    top: 16px !important;
    right: 90px !important;
    width: 28px !important;
    height: 28px !important;
  }
}

/* Acciones y gesto del panel de notificaciones. */
#market-app .app-header .header-notifications-panel-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
#market-app .app-header #header-notifications-clear-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ff5b61;
  cursor: pointer;
}
#market-app .app-header #header-notifications-clear-all svg {
  width: 16px;
  height: 16px;
}
#market-app .app-header .header-notification-item {
  touch-action: pan-y;
  transition: transform 180ms ease, opacity 180ms ease;
  user-select: none;
  cursor: grab;
}
#market-app .app-header .header-notification-item.is-swiping { cursor: grabbing; transition: none; }
#market-app .app-header .header-notification-item.is-removing {
  transform: translateX(-110%);
  opacity: 0;
}
body.light-mode #market-app .app-header #header-notifications-clear-all { color: #c5161d; }

/* Ficha funcional de registro de proveedores. */
#proveedores-tab .supplier-record-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1.25px solid var(--black-5);
  border-radius: 8px;
  background: var(--black-4);
}
#proveedores-tab .supplier-form-section { padding-bottom: 14px; border-bottom: 1px solid var(--black-5); }
#proveedores-tab .supplier-form-section:last-of-type { border-bottom: 0; padding-bottom: 0; }
#proveedores-tab .supplier-form-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:12px; }
#proveedores-tab .supplier-form-grid label { display:flex; flex-direction:column; gap:6px; color:var(--white-60); font-family:var(--font-body); font-size:.59rem; font-weight:700; letter-spacing:.65px; text-transform:uppercase; }
#proveedores-tab .supplier-form-grid label small { color:var(--white-30); font-size:.52rem; letter-spacing:.3px; }
#proveedores-tab .supplier-form-grid input,
#proveedores-tab .supplier-form-grid select,
#proveedores-tab .supplier-form-grid textarea { width:100%; min-width:0; box-sizing:border-box; padding:10px 11px; border:1px solid var(--black-5); border-radius:5px; background:var(--black-3); color:var(--adaptive-text); font-family:var(--font-body); font-size:.72rem; outline:none; }
#proveedores-tab .supplier-form-grid textarea { resize:vertical; min-height:72px; }
#proveedores-tab .supplier-form-grid input:focus,
#proveedores-tab .supplier-form-grid select:focus,
#proveedores-tab .supplier-form-grid textarea:focus { border-color:#8CFF00; box-shadow:0 0 0 1px rgba(140,255,0,.18); }
#proveedores-tab .supplier-field-wide { grid-column:span 2; }
#proveedores-tab .supplier-form-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
#proveedores-tab .supplier-form-actions [role="status"] { margin-right:auto; color:var(--white-60); font-size:.65rem; }
#proveedores-tab .supplier-form-actions [data-state="success"] { color:#8CFF00; }
#proveedores-tab .supplier-form-actions [data-state="error"] { color:#ff6670; }
#proveedores-tab .supplier-form-actions [data-state="loading"] { color:#ffbd2e; }
#proveedores-tab .ap-primary-button,
#proveedores-tab .ap-secondary-button { min-height:36px; padding:0 14px; border:1px solid var(--black-5); border-radius:4px; font-family:var(--font-body); font-size:.6rem; font-weight:800; letter-spacing:1px; cursor:pointer; }
#proveedores-tab .ap-primary-button { background:#8CFF00; color:#000; border-color:#8CFF00; }
#proveedores-tab .ap-secondary-button { background:transparent; color:var(--adaptive-text); }
#proveedores-tab .supplier-records-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:16px; }
#proveedores-tab .supplier-records-heading > span { color:var(--white-60); font-size:.62rem; }
#proveedores-tab .supplier-record-list { display:flex; flex-direction:column; gap:8px; margin-top:10px; }
#proveedores-tab .supplier-record-card { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 14px; border:1px solid var(--black-5); border-radius:6px; background:var(--black-4); }
#proveedores-tab .supplier-record-card-main { display:flex; flex-direction:column; gap:4px; min-width:0; }
#proveedores-tab .supplier-record-card-main strong { color:var(--adaptive-text); font-size:.76rem; }
#proveedores-tab .supplier-record-card-main span,
#proveedores-tab .supplier-record-card-main small,
#proveedores-tab .supplier-record-card-meta { color:var(--white-60); font-size:.62rem; }
#proveedores-tab .supplier-record-card-meta { display:flex; flex-direction:column; align-items:flex-end; gap:5px; white-space:nowrap; }
body.light-mode #proveedores-tab .supplier-record-form,
body.light-mode #proveedores-tab .supplier-record-card { background:#fff; border-color:rgba(0,0,0,.22); }
body.light-mode #proveedores-tab .supplier-form-grid label,
body.light-mode #proveedores-tab .supplier-records-heading > span { color:rgba(0,0,0,.68); }
body.light-mode #proveedores-tab .supplier-form-grid input,
body.light-mode #proveedores-tab .supplier-form-grid select,
body.light-mode #proveedores-tab .supplier-form-grid textarea { background:#fff; color:#111; border-color:rgba(0,0,0,.28); }
body.light-mode #proveedores-tab .supplier-form-actions [role="status"] { color:rgba(0,0,0,.68); }
@media(max-width:820px){ #proveedores-tab .supplier-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px){ #proveedores-tab .supplier-form-grid { grid-template-columns:1fr; } #proveedores-tab .supplier-field-wide { grid-column:auto; } #proveedores-tab .supplier-record-card { align-items:flex-start; flex-direction:column; } #proveedores-tab .supplier-record-card-meta { align-items:flex-start; } #proveedores-tab .supplier-form-actions { justify-content:stretch; } #proveedores-tab .supplier-form-actions button { flex:1; } }

/* Incremento mínimo solicitado para la legibilidad de la marca. */
#market-app .app-header .alcaur-header-wordmark {
  width: clamp(216px, 24.75vw, 270px);
  height: 48px;
  flex-basis: 270px;
  flex-shrink: 0;
}
@media (max-width: 700px) {
  #market-app .app-header .alcaur-header-wordmark {
    width: clamp(194px, 53.9vw, 250px);
    height: 42px;
        flex-basis: auto;
    flex-shrink: 0;
  }
}
/* Zoom interno mínimo: aumenta solo el contenido visible del SVG sin expandir la cabecera. */
#market-app .app-header .alcaur-header-wordmark {
  overflow: visible !important;
}
#market-app .app-header .alcaur-header-wordmark img {
  transform: scale(1.10);
  transform-origin: left 43%;
  overflow: visible;
}
