﻿/******************************************/
/* 1. VARIABLES CSS */
/******************************************/
:root {
    --color-base: #F8F8F8;
    --color-base-fondo: #F2F2F2;
    --rz-grid-selected-background-color: var(--rz-primary-light);
    outline: none !important;
     /*zoom: 0.45;*/ /* Reducir el tamaño de todo el contenido */
}

/******************************************/
/* 2. ESTILOS BASE Y RESET */
/******************************************/
html,
body {
    /* Fuente mejorada para coincidir con la imagen */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--color-base-fondo);
    /*overflow: auto;*/ /* cambiar esto para que se vea bien los scroll*/
    height: 100% !important;
    /* Mejoras para la renderización de fuente */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "liga" 1, "calt" 1;

    overflow-x: hidden; /* Bloquea scroll horizontal */
    overflow-y: auto; /* Mantiene scroll vertical */
    max-width: 100vw;
}

h1:focus {
    outline: none;
}

/* Selección de texto */
::selection {
    color: #ffffff !important;
    background-color: #0078d4 !important;
    box-shadow: 0 0 10px #0078d4 !important;
}

/******************************************/
/* 3. TIPOGRAFÍA Y ENCABEZADOS */
/******************************************/
/* Tipografía y Textos mejorados */
h1,
h2,
h3,
h4,
h5,
h6,
.card-title {
    font-weight: 600 !important;
    letter-spacing: -0.025em; /* Espaciado característico de Inter */
}

/* Ajuste de tamaños de fuente más precisos */
*:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) {
    font-size: 14px !important; /* Tamaño más específico en lugar de .95rem */
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 32px; /* 2rem equivalente */
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 24px; /* 1.5rem equivalente */
    line-height: 1.33;
    letter-spacing: -0.015em;
}

h3 {
    font-size: 20px; /* 1.25rem equivalente */
    line-height: 1.4;
    letter-spacing: -0.01em;
}

h4 {
    font-size: 18px;
    line-height: 1.44;
    letter-spacing: -0.005em;
}

h5 {
    font-size: 16px;
    line-height: 1.5;
}

h6 {
    font-size: 14px;
    line-height: 1.57;
}

a,
.btn-link {
    color: #0071c1;
    text-decoration: none;
    font-weight: 500; /* Ligeramente más pesado para links */
}

    a.quitalinea {
        text-decoration: none !important;
    }

/******************************************/
/* 4. LAYOUTS PRINCIPALES Y FORMULARIOS BASE */
/******************************************/

/* Contenedores y Diseños */
.principal {
    width: 100% !important;
    position: page;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    max-width: 100vw;
}

.principal-page {
    width: 100% !important;
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
}


.formulariolistar {
    background-color: #fff;
    border-radius: 5px;
    padding: 10px;
    width: calc(100% - 40px);
    margin: 20px;
    overflow: hidden !important;
    resize: both !important;
}

.formulariolistarGestion {
    background-color: #fff;
    border-radius: 5px;
    padding: 10px;
    width: calc(100% - 40px);
    margin: 20px;
    overflow: hidden !important;
    resize: both !important;
    height: calc(100vh - 180px);
}

.formulario {
    width: min(870px, 100%);
    max-width: calc(100% - 40px);
    min-height: 500px !important;
    border: none !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 8px !important;
}


.formulariofactura {

    width: calc(100% - 40px);
    height: calc(100vh - 100px);
}

.formulario,
.formulariofactura
{
    overflow: auto !important;
    resize: both !important;
    display: flex;
    flex-direction: column;
    margin: 20px;
    background-color: #fff;
    border-radius: 5px;
    /*padding: 10px;*/
    /*box-shadow: 0 0 4px rgba(0, 0, 0, 0.05);*/
}


.marco-producto-uno {
    /*border: 0px solid red;*/
    border-radius: 5px;
    padding: 0px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    /*border: 1px solid green;*/
}

.marco-empresa-uno {
    /*border: 0px solid red;*/
    border-radius: 5px;
    padding: 0px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    /*border: 1px solid green;*/
}

.marco-producto-dos {
    /*border: 1px solid red;*/
    padding: 0px;
    flex: 1;
}

.marco-producto-foto {
    /*border: 1px solid blue;*/
    border-radius: 5px;
    width: 180px;
    padding: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.marco {
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 10px;
    width: 100%;
}

.alto-bloque {
    margin-top: 2px;
}

/******************************************/
/* 5. CONTROLES DE FORMULARIO E INPUTS */
/******************************************/

/* Input fields con tipografía consistente */
input,
select,
textarea,
.form-control,
.rz-textbox,
.rz-dropdown {
    font-weight: 400;
    letter-spacing: -0.005em;
}

.form-group {
    margin-bottom: 15px;
    display: inline-block;
    vertical-align: central;
    margin-right: 2%;
}

.form-group-check {
    margin-bottom: 15px;
    display: inline-block;
    vertical-align: central;
    margin-right: 20px;
    width: 190px;
}

.form-control {
    width: 100%;
    border-radius: 5px;
    padding: 10px;
    font-size: .95rem;
    height: 40px;
}

    .form-control:focus {
        outline: none !important;
        border-color: #5dade2 !important;
        box-shadow: 0 0 0 0px rgba(37, 99, 235, 0.1) !important;
    }

.form-control-numeric {
    outline: none !important;
    box-shadow: 0 0 0 0px rgba(37, 99, 235, 0.1) !important;
    width: 100%;
    border-radius: 5px;
    font-size: .95rem;
    height: 40px;
    border: 1px solid #ccc;
}

    .form-control-numeric:hover {
        outline: none !important;
        border: 1px solid #ccc !important;
        box-shadow: 0 0 0 0px rgba(37, 99, 235, 0.1) !important;
        /*border-color: #5dade2 !important;*/
    }

    /* Al hacer focus */
    .form-control-numeric.rz-numeric:focus-within,
    .form-control-numeric:focus-within {
        border-color: #5dade2 !important;
        box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) !important;
        /*border: 11px solid red !important;*/
    }

.custom-dropdown {
    border-radius: 5px;
    font-size: .95rem;
    height: 40px;
    border-color: #ccc !important;
    min-width: 0 !important;
    border: 1px solid #ccc;
    padding: 8px 12px;
}

    .custom-dropdown:focus {
        outline: none !important;
        border-color: #5dade2 !important;
        box-shadow: 0 0 0 0px rgba(37, 99, 235, 0.1) !important;
    }

.form-control-busqueda {
    width: 100%;
    border-radius: 5px;
    padding: 10px;
    font-size: .95rem;
}

.form-control,
.btn {
    outline: none !important;
}

.form-control-grilla {
    outline: none !important;
    box-shadow: 0 0 0 0px rgba(37, 99, 235, 0.1) !important;
    border-radius: 2px;
}

    .form-control-grilla input:focus {
        outline: none !important;
        border-color: #5dade2 !important;
        box-shadow: 0 0 0 0.5px #5dade2 !important;
        /* Simula un borde más fino */
        border-radius: 2px;
    }

.custom-dropdown,
.btn {
    outline: none !important;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.control-label {
    font-size: 16px;
    font-weight: bold;
}

/* Campos con icono */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-prefix {
    position: absolute;
    left: 10px;
    z-index: 2;
    /*color: #666;*/
    font-weight: bold;
}

.input-icon-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 3;
    font-size: 16px;
    pointer-events: none; /* ¡Esto es clave! */
    transition: color 0.2s ease;
}

.input-with-icon {
    padding-left: 35px !important;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Ocultar botones de input[type="number"] */
[class*="numeric"] button,
[class*="numeric"] [class*="button"],
[class*="spinner"] button,
input[type="number"] ~ button,
[class*="numeric"] [role="button"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
}

/******************************************/
/* 6. ESTADOS DE VALIDACIÓN Y DISABLED */
/******************************************/

/* Validación */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* Estados deshabilitados/solo lectura */

.form-control:disabled,
.form-control[disabled],
.form-control[readonly],
.form-control .rz-inputnumber-disabled,
.form-control .rz-dropdown-disabled,
.form-control .rz-inputtext[disabled],
.form-control .rz-inputtext[readonly],
.form-control .rz-dropdown[disabled],
.form-control .rz-button[disabled],
.form-control .rz-checkbox-disabled,
.form-control .rz-slider[disabled],
.form-control .rz-inputswitch[disabled],
.form-control input:disabled,
.form-control input[readonly],
.form-control select:disabled,
.form-control textarea:disabled,
.form-control button:disabled,
.form-control .rz-autocomplete[disabled],
.form-control .rz-calendar[disabled],
.form-control .rz-listbox[disabled],
.form-control .rz-multiselect[disabled],
.form-control .rz-spinner[disabled],
.form-control .rz-selectbutton[disabled],
.form-control .rz-togglebutton[disabled],
.form-control .rz-radiobutton-disabled,
.form-control .rz-treeselect-disabled,
.form-control .rz-rating[disabled],
.form-control .rz-colorpicker[disabled],
.form-control .rz-panel-disabled,
.form-control .rz-tabview-disabled,
.form-control .rz-datatable-disabled,
.form-control .rz-datepicker[disabled],
.form-control .rz-fileupload[disabled] {
    background-color: var(--color-base);
    color: #6c757d;
    cursor: not-allowed;
}

.form-disabled {
    pointer-events: none;
    cursor: not-allowed;
}

    .form-disabled .nav-tabs,
    .form-disabled .nav-tabs .nav-link {
        pointer-events: auto;
        /* Permite clics en los tabs */
        opacity: 1;
        /* Mantiene los tabs visibles */
    }

    .form-disabled .gridFactura {
        pointer-events: auto;
        overflow: auto;
        /* Asegura que siga teniendo scroll si aplica */
    }

/* Bloqueo State (Estilos para contenedores de sólo lectura) */
.bloqueo {
    background-color: var(--color-base); /* Fondo gris claro */
    padding: 10px;
    /*padding: 0px 8px;*/ /* Menos alto, mantiene un poco de espacio lateral */
    border-radius: 3px;
    position: relative;
}

    .bloqueo .form-control[readonly],
    .bloqueo .form-control[disabled],
    .bloqueo button:disabled {
        background-color: var(--color-base);
        color: #000;
        font-weight: bold;
        font-size: 1.2rem;
        cursor: not-allowed;
        border: 0px solid #ccc;
    }

    .bloqueo button:disabled {
        opacity: 0.6;
        pointer-events: none;
    }

    .bloqueo .custom-dropdown:disabled,
    .bloqueo .custom-dropdown.rz-state-disabled {
        font-weight: bold;
        color: #000000;
        opacity: 1 !important;
        background-color: #f0f0f0;
    }

        .bloqueo .custom-dropdown.rz-state-disabled .rz-dropdown-label,
        .bloqueo .custom-dropdown.rz-state-disabled .rz-chip {
            font-weight: bold;
            color: #000000;
        }

/******************************************/
/* 7. BOTONES E ICONOS */
/******************************************/

.btn-group-xs > .btn,
.btn-xs {
    padding: .35rem .6rem;
    font-size: .875rem;
    line-height: .6;
    border-radius: .3rem;
}

/*.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}
*/
.custom-btn {
    border: none !important;
    /* Elimina cualquier borde por defecto */
    outline: none !important;
    /* Elimina el contorno al enfocar */
}

    .custom-btn:focus,
    .custom-btn:active,
    .custom-btn:hover {
        border: none !important;
        /* Mantiene sin borde en todos los estados */
        outline: none !important;
        /* Mantiene sin contorno */
        box-shadow: none !important;
        /* Elimina sombras que puedan agrandar el botón */
        transform: none !important;
        /* Evita cambios de escala o tamaño */
    }

.equal-width-btn {
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
}

.custom-button {
    background-color: #0078d4;
    color: #FFF;
    width: 3rem;
    height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem !important;
    /* Ajusta el valor según tus necesidades */
}

.btn-icon-split {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

 
/* .btn-imagen {
    border-radius: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
} */

 
 .btn-margen-derecho {
    margin-right: 3px;
} 


 
 .delete-button {
    position: absolute;
    top: -5px;
    right: -5px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    z-index: 10;
    font-size: 10px;
    border: none;
    background-color: #dc3545;
}

    /*.delete-button:hover {
        background-color: rgba(220, 53, 69, 1);
    }

    .delete-button i {
        line-height: 1;
    } */

 
 .icono-camara {
    font-size: 18px;
    margin-bottom: 5px;
} 

 
 .icono-cog {
    color: none;
} 

.cerrar {
    cursor: pointer;
    float: right;
    position: relative;
    top: 0;
    font-size: 1.2em;
}

.flecha-paginacion {
    cursor: pointer;
    color: #0078d4;
}

/******************************************/
/* 8. NAVEGACIÓN Y MENÚS */
/******************************************/

/* Navegación y sidebar */
/* COMENTADO: Selector vacío sin propiedades activas */
/* .navbar,
.sidebar,
.nav {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif !important;
} */

.navbar-brand,
.nav-link {
    font-weight: 500 !important;
    letter-spacing: -0.01em;
}

/* Tabs */
.responsive-tabs {
    display: flex;
    flex-wrap: wrap;
}

    /* comportamiento normal en escritorio */
    .responsive-tabs .nav-item {
        flex: 0 0 auto;
        text-align: center;
    }

    .responsive-tabs .nav-link {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
    }

.nav-tabs .nav-link.active {
    color: #007bff;
    border-top: 1px solid #007bff;
    font-weight: 500;
    background-color: white;
}

.nav-tabs .nav-link {
    color: #777;
}

/* Combobox Dropdown Menu */
.dropdown-menu {
    max-height: 200px !important;
    overflow-y: auto !important;
    background-color: #fff;
}

 
 .combo-derecha {
    margin: -30px;
} 

.dropdown-toggle {
    position: relative !important;
    padding-right: 2.5rem !important;
    white-space: pre !important;
}

    .dropdown-toggle::after {
        content: "" !important;
        position: absolute !important;
        top: 50% !important;
        right: 0.8rem !important;
        transform: translateY(-50%) rotate(45deg) !important;
        border: solid #000 !important;
        border-width: 0 2px 2px 0 !important;
        padding: 3px !important;
        pointer-events: none !important;
        white-space: pre !important;
    }


/******************************************/
/* 9. PESTAÑAS Y PAGINACIÓN */
/******************************************/



.pagination {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
    overflow-x: visible !important;
    white-space: normal !important;
    align-items: center;
    padding: 20px 0;
}


/*.active-page {
    font-weight: bold;
    color: orange;
}
*/

    /* Opcional: Desactivar flecha cuando no hay más páginas */
    .pagination .page-link.disabled {
        opacity: 0.3;
        cursor: not-allowed;
        pointer-events: none;
        color: #d1d5db;
    }

    .pagination .page-link {
        background: transparent;
        color: #6b7280;
        border: none;
        border-radius: 8px;
        padding: 8px 14px;
        font-weight: 400;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.2s ease;
        min-width: 36px;
        height: 36px;
        text-align: center;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

        .pagination .page-link:hover {
            background: #f3f4f6;
            color: #374151;
        }

        /* Página activa */
        .pagination .page-link.active-page {
            background: #dbeafe;
            color: #3b82f6;
            font-weight: 500;
        }

            .pagination .page-link.active-page:hover {
                background: #bfdbfe;
                color: #5dade2;
            }

/* Flechas de navegación */
.flecha-paginacion .page-link:first-child,
.flecha-paginacion .page-link:last-child {
    color: #9ca3af;
    font-size: 18px;
    padding: 8px 12px;
}

    .flecha-paginacion .page-link:first-child:hover,
    .flecha-paginacion .page-link:last-child:hover {
        background: #f3f4f6;
        color: #6b7280;
    }



/******************************************/
/* 10. ESTILOS ESPECÍFICOS DE DOCUMENTOS / FACTURA */
/******************************************/

/* Layouts de Factura */
.marco-factura-uno {

    width: 100%;
    display: flex;
    padding: 0px;
}

.marco-mitad-izquierda {

    margin-left: 0;
    padding: 15px;

    flex: 1;
}

.marco-mitad-derecha {
    border-radius: 5px;
    padding-left: 15px;

    flex: 1;
}

.marco-factura-grilla {
    border-radius: 5px;
    padding: 5px 15px;
    width: 100%;
    margin-right: 5px;
    display: flex; /* activa flexbox */
    flex-direction: column; /* organiza elementos verticalmente */
    justify-content: center; /* centra verticalmente */
    align-items: center; /* centra horizontalmente */
}

    .marco-factura-grilla > div {
        width: 100%;
        overflow-x: auto; /* permite scroll horizontal en celular */
    }

.cabeceraFactura {
    display: flex;
    align-items: flex-start;
    width: 100%;
    flex-wrap: wrap;
    padding: 10px 15px;
}

    .cabeceraFactura > :nth-child(3) {
        margin-left: auto;
    }

/* Totales y Valores */
.totalfactura {
    margin-left: auto;
    font-weight: bold;
    font-size: 40px !important;
    color: #333333;
    padding-right: 40px;
}

.totales-wrapper {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 5px;
}

.totales-box {
    border-radius: 3px;
    padding-right: 15px;
    width: 50%;
}

.totales-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #e4e4e4;
    /*border: 1px solid blue;*/
}

    .totales-container:last-child {
        border-bottom: none;
        /*color: #007bff;*/
    }

.totales-label {
    font-weight: 650;
    color: #555;
    font-size: 1rem;
}

.totales-value {
    font-weight: 650;
    color: #555;
    font-size: 1rem;
    text-align: right;
    min-width: 100px;
}

.totales-container:last-child .totales-label {
    color: #555;
    font-size: 1rem;
    font-weight: 650;
}

.totales-container:last-child .totales-value {

    font-size: 1rem;
}

 /*Tablas/Grillas*/ 
 
 .anchofila {
    width: 140px;
    text-align: center
} 

 
 .anchofilacantidad {
    width: 75px;
    text-align: center
} 

 
 .anchofilaespacio {
    padding-left: 20px;
    padding-right: 20px;
} 

 
 .cant-recep-clickable {
    cursor: pointer;
    color: #0066cc;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 6px;
    border-radius: 4px;
}

    .cant-recep-clickable:hover {
        background-color: #e3f2fd;
        text-decoration: underline;
    }

    .cant-recep-clickable i {
        font-size: 14px;
        opacity: 0.7;
    }

    .cant-recep-clickable:hover i {
        opacity: 1;
    } 

/******************************************/
/* 11. IMÁGENES Y AVATARES */
/******************************************/

.user-image {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
}

.image-placeholder {
    border: 1px solid #d3d3d3;
    border-radius: 5px;
    width: 150px;
    height: 150px;
}

.marco-imagen-upload {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    border-radius: 5px;
}

.marco-imagen-vacio {
    border: 1px dashed #ccc;
}

.texto-upload {
    text-align: center;
}

.texto-instruccion {
    font-size: 14px;
    margin: 0;
}


/******************************************/
/* 12. ESTILOS DE COMPONENTES (CARDS, BADGES, FILTROS) */
/******************************************/

/* ===== CARDS DE RESUMEN (Estructura) ===== */
.card-resumen {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: white;
    gap: 1rem;
}

.card-resumen-icono {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
}

.card-resumen-contenido {
    display: flex;
    flex-direction: column;
}

.card-resumen-titulo {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 600;
}

.card-resumen-valor {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
}

/* ===== FILTROS DE ESTADO (Estructura) ===== */
.filtros-estado {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-filtro-estado {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 2px solid #e5e7eb;
    background: white;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-filtro-estado:hover {
        border-color: #d1d5db;
        background: #f9fafb;
    }

    .btn-filtro-estado.activo {
        background: #1f2937;
        color: white;
        border-color: #1f2937;
    }

/* ===== BADGES DE CANTIDAD (Estructura) ===== */
.badge-cantidad {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 700;
    font-size: 1rem;
    min-width: 50px;
}

/* ===== BARRAS DE PROGRESO (Estructura) ===== */
.barra-progreso {
    width: 80px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.barra-progreso-relleno {
    height: 100%;
    transition: width 0.3s ease;
}

.texto-porcentaje {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
}


/******************************************/
/* 13. ESTILOS ESPECÍFICOS DE PLATAFORMA (BLAZOR/RADZEN) */
/******************************************/
.content {
    padding-top: 1.1rem;
}

/* Blazor Error UI (Contiene base64, mejor dejarlo acá) */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTNfNCA1My42MjgxIDI5MC4xODUgOTIuMTgzMSAyOTAuNTQ1IDkyLjc5NSAyOTAuNjU2IDkyLjk5NkMyOTAuODc3IDkzLjUxMyAyOTEgOTQuMDgxNSAyOTEgOTQuNjc4MiAyOTEgOTcuMDY1MSAyODkuMDM4IDk5IDI4Ni42MTcgOTlMMjQwLjM4MyA5OUMyMzcuOTYzIDk5IDIzNiA5Ny4wNjUxIDIzNiA5NC42NzgyIDIzNiA5NC4zNzk5IDIzNi4wMzEgOTQuMDg4NiAyMzYuMDg5IDkzLjgwNzJMMjM2LjMzOCA5My4wMTYyIDIzNi44NTggOTIuMTMxNCAyNTkuNDczIDUzLjYyOTQgMjU5Ljk2MSA1Mi43OTg1IDI2MC40MDcgNTIuMjY1OEMyNjEuMiA1MS40ODM3IDI2Mi4yOTYgNTEgMjYzLjUwNiA1MVpNMjYzLjU4NiA2Ni4wMTgzQzI2MC43MzcgNjYuMDE4MyAyNTkuMzEzIDY3LjEyNDUgMjU5LjMxMyA2OS4zMzcgMjU5LjMxMyA2OS42MTAyIDI1OS4zMzIgNjkuODYwOCAyNTkuMzcxIDcwLjA4ODdMMjYxLjc5NSA4NC4wMTYxIDI2NS4zOCA4NC4wMTYxIDI2Ny44MjEgNjkuNzQ3NUMyNjcuODYgNjkuNzMwOSAyNjcuODc5IDY5LjU4NzcgMjY3Ljg3OSA2OS4zMTc5IDI2Ny44NzkgNjcuMTE4MiAyNjYuNDQ4IDY2LjAxODMgMjYzLjU4NiA2Ni4wMTgzWk0yNjMuNTc2IDg2LjA1NDdDMjYxLjA0OSA4Ni4wNTQ3IDI1OS43ODYgODcuMzAwNSAyNTkuNzg2IDg5LjU3OTIgMjU5L7g3ODYgOTIuMjgzNyAyNjEuMDQ5IDkzLjUyOTUgMjYzLjU3NiA5My41MjI5NSAyNjYuMTE2IDkzLjUyOTA1IDI2Ny4zODcgOTIuMjgzNzgyNjcuMzg3IDg5LjU3OTIgMjY3LjM4NyA4Ny4zMDA1IDI2Ni4xMTYgODYuMDU0NyAyNjMuNTc2IDg2LjA1NDdaIiBmaWxsPSIjRkZFNTAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L2c+PC9zdmc+) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/* Toasts (Blazored.Toast) */
.ancho-toast {
    min-width: 320px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 500px !important;
}

.blazored-toast .blazored-toast-message {
    font-weight: normal !important;
}

/* Modals */
.my-custom-modal-confirm {
    max-width: 96%;
    width: 500px;
    border-radius: 5px;
    padding: 30px;
    background-color: #fff;
    margin-left: auto;
    margin-right: auto;
    margin-top: 200px;
    animation: popIn 60ms ease-in-out;
}

.modal-header-custom-confirm {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.modal-header-custom {
    padding: 20px 24px 0 24px;
    border: none;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11.25rem;
}

    .modal-header-custom .icon-style {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px !important;
    }


/******************************************/
/* 14. UTILIDADES MISCELÁNEAS */
/******************************************/

 
 .texto-izquierda {
    text-align: left !important;
    top: 10% !important;
    white-space: pre !important;
} 

 
 .texto-oscuro {
    color: #333333;
} 

 
 .cabecera-oscura [class*="header"] {
    background-color: #f5f5f5;
} 

 
 .descripcion-view {
    padding-left: 10px !important;
} 

.contenido-ayuda {
    display: flex;
    justify-content: center;
    align-items: center;
}

#focusableDiv:focus {
    outline: none;
    /* Eliminar el borde de enfoque */
}

.tip-box {
    background-color: #e7f3ff;
    border-left: 4px solid #0d6efd;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Checkbox y Switch */
input.mi-Switch {
    width: 35px !important;
    height: 17px;
}

.alinea-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
}

.estilo-checkbox {
    width: 17px;
    height: 22px;
    margin-right: 5px;
    accent-color: #0078D7;
}

.estilo-switch {
    margin-left: 10px;
    display: inline-block;
    vertical-align: middle;
}

input.checkbox {
    width: 35px !important;
    height: 30px !important;
    margin-right: 5px !important;
}

.footer-personalizado {
    background-color: #f0f0f0;
    font-weight: bold !important;
    padding: 12px 16px !important;
    margin: -12px -16px !important;
}


/******************************************/
/* 15. ANIMACIONES */
/******************************************/

.loading-page {
    height: 100vh;
    width: 100vw;
}

.loading-dots-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    /* Asegura que esté encima de otros elementos */
}

.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .loading-dots span {
        display: inline-block;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: #0078d4;
        margin-right: 8px;
        animation: bounce 1.5s infinite ease-in-out;
    }

        .loading-dots span:last-child {
            margin-right: 0;
        }

        .loading-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .loading-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/******************************************/
/* 17. SCROLLBAR */
/******************************************/

/* Scrollbar personalizado */
.dropdown-menu::-webkit-scrollbar {
    width: 12px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 5px;
}

.dropdown-menu {
    scrollbar-width: thin;
    scrollbar-color: #888 #f5f5f5;


    .dropdown-menu::-webkit-scrollbar-track {
        background-color: #f1f1f1;
    }
}

/******************************************/
/* 18. PUNTO DE VENTA (POS) */
/******************************************/

/* ===== HEADER BAR POS ===== */
.pos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.pos-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pos-greeting {
    font-weight: 600;
    font-size: 1rem;
}

.pos-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pos-header-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
}

.pos-header-label {
    opacity: 0.85;
}

.pos-header-value {
    font-weight: 600;
}

.pos-version {
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pos-status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== MAIN CONTAINER POS ===== */
.pos-container {
    display: flex;
    height: calc(100vh - 110px);
    gap: 0;
    background-color: var(--color-base-fondo);
}

/* ===== LEFT PANEL - PRODUCTOS ===== */
.pos-left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    margin: 15px;
    margin-right: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* ===== ACTION BUTTONS ===== */
.pos-action-buttons {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.pos-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid;
}

.pos-btn-outline {
    background: white;
    border-color: #3b82f6;
    color: #3b82f6;
}

.pos-btn-outline:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.pos-btn-outline:disabled {
    border-color: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
}

.pos-btn-outline:disabled:hover {
    background: white;
    transform: none;
    box-shadow: none;
}

/* ===== SCANNER INPUT ===== */
.pos-scanner-container {
    padding: 15px 20px;
}

.pos-scanner-input {
    height: 50px !important;
    font-size: 1rem !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    transition: all 0.2s ease;
}

.pos-scanner-input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* ===== PRODUCTS TABLE ===== */
.pos-products-table-container {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 20px 20px;
}

.pos-products-table {
    width: 100%;
    border-collapse: collapse;
}

.pos-products-table thead {
    position: sticky;
    top: 0;
    background: #f8fafc;
    z-index: 10;
}

.pos-products-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e5e7eb;
}

.pos-products-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.pos-products-table tbody tr {
    transition: background-color 0.15s ease;
}

.pos-products-table tbody tr:hover {
    background-color: #f8fafc;
}

.pos-row-editing {
    background-color: #eff6ff !important;
}

/* ===== EMPTY CART STATE ===== */
.pos-empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    color: #9ca3af;
}

.pos-empty-cart-icon {
    font-size: 4rem !important;
    margin-bottom: 20px;
    opacity: 0.5;
}

.pos-empty-cart-text {
    font-size: 1.1rem;
    font-weight: 500;
}

/* ===== RIGHT PANEL - RESUMEN ===== */
.pos-right-panel {
    width: 320px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    background: white;
    margin: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* ===== SUMMARY HEADER ===== */
.pos-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.pos-summary-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.pos-btn-options {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pos-btn-options:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* ===== DOCUMENT INFO ===== */
.pos-document-info {
    padding: 15px 20px;
}

.pos-document-type {
    margin-bottom: 10px;
}

.pos-articles-count {
    font-size: 0.9rem;
    color: #64748b;
}

.pos-divider {
    margin: 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

/* ===== CLIENT SECTION ===== */
.pos-client-section {
    padding: 15px 20px;
}

.pos-client-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

.pos-client-info {
    position: relative;
}

.pos-client-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.pos-client-rut {
    font-size: 0.875rem;
    color: #64748b;
}

.pos-btn-clear-client {
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.pos-btn-clear-client:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.pos-rut-input {
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    width: 100%;
}

.pos-rut-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* ===== TOTALS SECTION ===== */
.pos-totals {
    padding: 15px 20px;
    flex: 1;
}

.pos-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.pos-total-label {
    font-weight: 500;
    color: #374151;
}

.pos-total-value {
    font-weight: 600;
    color: #1f2937;
}

.pos-discount-row {
    color: #10b981;
}

.pos-discount-value {
    color: #10b981 !important;
}

.pos-grand-total {
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid #e5e7eb;
}

.pos-grand-total .pos-total-label {
    font-size: 1.1rem;
    font-weight: 700;
}

.pos-grand-total-value {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: #1f2937 !important;
}

/* ===== PAYMENT BUTTON ===== */
.pos-payment-section {
    padding: 15px 20px;
}

.pos-btn-payment {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.pos-btn-payment:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.pos-btn-payment:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    box-shadow: none;
}

/* ===== ADDITIONAL ACTIONS ===== */
.pos-additional-actions {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #e5e7eb;
}

.pos-btn-secondary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 15px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pos-btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

/* ===== RESPONSIVE POS ===== */
@media (max-width: 1024px) {
    .pos-container {
        flex-direction: column;
        height: auto;
    }

    .pos-right-panel {
        width: 100%;
        min-width: auto;
        margin-top: 0;
    }

    .pos-left-panel {
        margin-right: 15px;
        min-height: 400px;
    }

    .pos-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .pos-header-right {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .pos-action-buttons {
        flex-direction: column;
    }

    .pos-btn {
        width: 100%;
        justify-content: center;
    }

    .pos-header-item {
        font-size: 0.75rem;
    }

    .pos-additional-actions {
        flex-direction: column;
    }
}