:root {
    --myBlue: #1E305C;
    --myred: #D21919;
    --myOrange: #FF4032;
    --myPale: #FAF2F2;
    --myDisabledGrey: #CFCFCF;
    --myButtonFont: 'Gotham', sans-serif;
    --myGeneralFont: 'Oswald',sans-serif;
}


html {
    background-color:  lightslategray;
    
}
/* Estilos generales */
body {
   
    padding-top: 120px;
    /* Para evitar que el contenido quede oculto detrás del header fijo */
    background-color: lightslategray;
    font-family: 'Oswald',sans-serif;
}

/* Contenedor central con ancho consistente */
.centered-container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    padding: 0;
    background-color: lightslategray;
  }
  
/* Header fijo */
#divMainHeader {
    width: 100%;
    z-index: 1000;
    padding: 0;
    background-color: var(--myBlue);
}

/* Estilos para el logo */

#divLogo {
    background-color: var(--myBlue); 
}

#divLogo img {
    max-width: 200px;
    /* Ajusta el tamaño máximo del logo */ 
}

#logoGoLocal{
    background-color: var(--myBlue); 
}

#userCode{
    width: 60%;
    max-width: 60%;
    text-align: center;
}

/* Contenedor del nombre del Brand Ambassador */
#divName {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background-color: var(--myBlue)
}

#divSectionTitle {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background-color: var(--myBlue)
}


/* Estilos para el login */
#login-container {
    margin-top: 40px;
}

#login-container input {
    max-width: 300px;
}

h2 {
    font-size: 1.8rem;
    text-align: center;
    margin: 20px 0;
    color: #111;
  }
  
  @media (max-width: 768px) {
    h2 {
      font-size: 1.4rem;
    }
  }
  
/* Lista de reportes */
#reports-list {
    margin-top: 10px;
}

#reports-list li {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#reports-list li:hover {
    color: white; 
}

ul#reports-list {
    list-style: none;
    padding-left: 0;
}

ul#reports-list li {
    list-style-type: none;
}
#reports-list button {
    font-size: 14px !important;
    color: darkblue !important;
    background-color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#reports-list button:hover {
    font-size: 14px !important;
    color: white !important;
    background-color: darkblue;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tabla de transacciones */
#transactions-container {
    margin-top: 20px;
    width: 100%;
    z-index: 9000;
    background-color: lightslategray;
    overflow-x: auto; /* Permitir scroll solo si es necesario */
}


#transactions-table {
    width: 100%;
    table-layout: auto;
}

#transactions-table-all {
    width: 100%; /* Asegura que la tabla ocupe todo el ancho del contenedor */
}

#transactions-table-all th:nth-child(2),
#transactions-table-all th:nth-child(4),
#transactions-table-all td:nth-child(2),
#transactions-table-all td:nth-child(4) {
    text-align: right;
    padding-right: 12px;
}

#transactions-table-all th:nth-child(1),
#transactions-table-all td:nth-child(1) {
    width: 6%;
    white-space: nowrap;
}

#transactions-table-all th:nth-child(2),
#transactions-table-all td:nth-child(2) {
    width: 6%;
    white-space: nowrap;
    text-align: right;
}

#transactions-table-all th:nth-child(3),
#transactions-table-all td:nth-child(3) {
    width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#transactions-table-all th:nth-child(4),
#transactions-table-all td:nth-child(4) {
    width: 9%;
    white-space: nowrap;
    text-align: right;
}

/* Asegurando que la celda tenga un tamaño adecuado */
#transactions-table-all th:nth-child(5),
#transactions-table-all td:nth-child(5),
#transactions-table th:nth-child(5),
#transactions-table td:nth-child(5) {
    width: 6%;
    text-align: center;
    vertical-align: middle;
    padding: 0; /* Eliminar el relleno que desajusta el botón */
}

/* Ajustes del botón de borrar */
#transactions-table-all td:nth-child(5) .delete-row,
#transactions-table td:nth-child(5) .delete-row {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: auto; /* Ajustar automáticamente al contenido */
    margin: auto; /* Centrar automáticamente */
    padding: 2px; /* Un poco de espacio interno para el botón */
    background-color: white !important;
}

/* Ajuste del ícono dentro del botón */
#transactions-table-all td:nth-child(5) .delete-row i,
#transactions-table td:nth-child(5) .delete-row i {
    font-size: 0.9rem; /* Tamaño adecuado del ícono */
    color: red;
    background-color: white !important;
}

/* Asegurar que el botón no ocupe toda la celda */
#transactions-table-all td:nth-child(5) .delete-row,
#transactions-table td:nth-child(5) .delete-row {
    width: auto; /* Ajuste automático */
    max-width: 100%; /* Evita que se expanda demasiado */
    border-radius: 4%; /* Forma circular */
}

/* Ajuste para dispositivos móviles */
@media (max-width: 768px) {
    #transactions-table td:nth-child(5) .delete-row,
    #transactions-table-all td:nth-child(5) .delete-row {
        height: 2em;
        width: 2em;
    }

    #transactions-table td:nth-child(5) .delete-row i,
    #transactions-table-all td:nth-child(5) .delete-row i {
        font-size: 1.2rem;
    }
}

.input-right {
    text-align: right;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/*
#transaction-modal-Old1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white; 
    z-index: 9999;
    overflow-y: auto;
    display: none; 
    padding: 20px;
}



#transaction-modal-Old2 {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 600px;
    background-color: var(--myOrange);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}
    */
#transaction-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--myBlue);
    z-index: 9999;
    display: flex;
    overflow-y: auto;
    overflow-x: hidden;
    align-items: center;
    justify-content: center;
}

#transaction-modal .modal-dialog {
    max-width: 600px;
    margin: auto;
    background-color: lightslategray;
    border-radius: 10px;
    padding: 20px;
}

/* Modal de transacciones */
.modal-content {
    padding: 15px;
}

.modal-title {
    text-align: center;
}

/* Botones */
button {
    margin-top: 10px;
}


/* Estilo del contenedor de SlimSelect */
.ss-main {
    font-size: 16px;
    min-height: 42px;
    width: 100%;
    background-color: white;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
}

.ss-single-selected {
    padding: 8px;
    color: #212529;
    font-weight: normal;
    background-color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ss-content {
    max-height: 200px;
    overflow-y: auto;
}

#add-products-table td:nth-child(1) {
    width: 8%;
}

#products-table td:nth-child(1) input {
    font-size: 0.6rem !important; /* Tamaño del texto */
    color: darkblue !important; /* Color del texto */
    background-color: white !important; /* Fondo claro */
   border: 1px solid darkblue !important; /* Borde */
   
}

#add-products-table td:nth-child(2) {
    width: 60%;
    border-style: none;
}


#add-products-table td:nth-child(3) {
    width: 17%;
}

#products-table td:nth-child(3) input {
    font-size: 0.6rem !important; /* Tamaño del texto */
    color: darkblue !important; /* Color del texto */
    background-color: white !important; /* Fondo claro */
    border: 1px solid darkblue !important; /* Borde */
}

#products-table td {
    padding: 4px;
    vertical-align: middle;
}

#products-table input,
#products-table select,
#products-table .ss-main {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Mejoras en móviles */
@media (max-width: 768px) {
    #products-table td {
        padding: 2px;
    }
}

/* Tom Select CSS */
#products-table .ts-wrapper .ts-control .item,
#products-table .ts-wrapper .ts-control .item span,
#products-table .ts-wrapper .ts-control .item div,
#products-table .ts-wrapper .ts-dropdown .option,
#products-table .ts-wrapper .ts-control input {
    font-size: 0.6rem !important; /* Ajusta el tamaño */
    color: red !important; /* Color del texto */
    background-color: #f9f9f9 !important; /* Fondo claro */
    /*border: 1px solid lightslategray !important; /* Borde */
    border-style: none;
}

#products-table .ts-wrapper .ts-control .item {
    font-size: 0.6rem !important;
    color: darkblue !important;
}

#products-table .ts-wrapper .ts-dropdown .option {
    font-size: 0.6rem !important;
    color: blue !important;
}

#products-table .ts-wrapper .ts-control .item span {
    font-size: 0.6rem !important;
    color: darkblue !important;
}

#products-table .ts-wrapper .ts-control input {
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Ajuste específico para evitar zoom en iPhone */
@supports (-webkit-touch-callout: none) {
    input, select, textarea, button {
        font-size: 16px !important; /* Tamaño mínimo para evitar el zoom */
        -webkit-text-size-adjust: 100%; /* Evita que Safari ajuste el tamaño del texto */
    }

    /* Ajuste visual para que parezca más pequeño */
    #products-table td:nth-child(1) input,
    #products-table td:nth-child(3) input,
    #products-table .ts-wrapper .ts-control .item,
    #products-table .ts-wrapper .ts-control .item span,
    #products-table .ts-wrapper .ts-control .item div,
    #products-table .ts-wrapper .ts-dropdown .option,
    #products-table .ts-wrapper .ts-control input {
        font-size: 16px !important; /* Garantiza que no haga zoom */
        transform: scale(0.6); /* Reducir el tamaño visual */
        transform-origin: left top; /* Mantener la posición correcta */
    }
}



/* Ajuste para la tabla en dispositivos móviles */
@media (max-width: 768px) {
    #transactions-table-all, 
    #transactions-table, 
    #add-products-table {
        width: 100%; /* Que la tabla se adapte al contenedor */
        table-layout: auto; /* Ajuste automático de columnas */
    }

    /* Asegurar que el contenedor no tenga scroll lateral */
    body, html {
        overflow-x: hidden;
    }

    /* Ajuste para el contenedor principal */
    .centered-container {
        max-width: 100%; /* Que el contenedor se ajuste a la pantalla */
        padding-left: 0;
        padding-right: 0;
    }
}
