:root {
--primary-color: #007bff;
}

/* styles.css */
h1 {
    font-size: 1.5em;
    color: #fff;
    text-align: center;
    margin: 10px 0;
    line-height: 1.2;
    word-wrap: break-word;
}

h2 {
    font-size: 1.1em;
    background: var(--primary-color);
    color: white;
    padding: 10px;
    width: 100%;
    margin-top: -10px;
    margin-left: -10px;
}

h3 {
    color: var(--primary-color);
    font-size: 1em;
}
main {
    flex: 1;
    margin-top: 60px;
    margin-bottom: 60px;
    padding: 20px;
    overflow-y: auto;
}

body {
    background-size: auto; /* Mantiene el tamaño original de la imagen */
    background-repeat: repeat; /* Repite la imagen tanto horizontal como verticalmente */
    background-position: top left; /* Empieza a repetir desde la esquina superior izquierda */
    background-color: rgba(140, 191, 245, 1); /* Color blanco con opacidad del 50% */
    background-blend-mode: overlay; /* Mezcla el color de fondo con la imagen */
    background-image: url(../img/bg.jpg);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    box-shadow: 0 4px 2px -2px gray;
}

button {
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}

.buttonmasmenos {
    margin: 0px;
    background-color: #ffffff;
    border: 1px solid var(--primary-color);
    padding: 5px 15px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    padding: 10px;
    border: 1px solid #888;
    padding-bottom: 120px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#inventoryTable, #cartTable {
    width: 100%;
    border-collapse: collapse;
}

#inventoryTable th, #cartTable th, #inventoryTable td, #cartTable td {
    border: 1px solid #ddd;
    padding: 8px;
}

.tabcontent {
    display: none;
}

.tablink.active {
    background-color: #ddd;
}

#productButtons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 40px;
}

#productButtons button {
    width: 100px;
    height: 100px;
    margin: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: white;
    font-weight: bold;
    border-radius: 10px;
}

#cartTable th, #cartTable td {
    text-align: center;
}

#voucherModal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

#voucherModal .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

#voucherModal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

#voucherModal .close:hover,
#voucherModal .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@media print {
    #voucherModal button {
        display: none;
    }
}

/* Estilo para el botón flotante */
#addProductBtn {
    position: fixed;
    bottom: 70px;
    right: 5px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: solid 3px white;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
}

#addProductBtn:hover {
    background-color: #0056b3; /* Color al pasar el mouse */
}

/* Asegura que el botón esté visible solo cuando el modal esté abierto */
#inventoryModal.open + #addProductBtn {
    display: flex;
}

.tabs {
    display: flex;
    margin-bottom: 10px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    cursor: pointer;
    background-color: var(--primary-color);
    color: white;
    border: none;
    outline: none;
}

.tab-btn.active {
    background-color: #0056b3;
}

.tab-content {
    display: none;
    padding-bottom: 20px;
}

.tab-content.active {
    display: block;
    padding-bottom: 20px;
}

/*table fino y elegante*/
/* Estilo general para tablas */
table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Estilo para el encabezado de la tabla */
table thead {
    background-color: var(--primary-color);
    color: white;
    text-align: left;
}

/* Estilo para las celdas del encabezado */
table thead th {
    padding: 12px;
    font-weight: bold;
    border-bottom: 2px solid #0056b3;
}

/* Estilo para las filas de la tabla */
table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Estilo para las celdas de la tabla */
table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    color: #333;
}

/* Estilo para la fila al pasar el cursor */
table tbody tr:hover {
    background-color: #e6f7ff;
}

/* Estilo para el pie de tabla */
table tfoot td {
    padding: 12px;
    font-weight: bold;
    color: var(--primary-color);
    border-top: 2px solid #0056b3;
    text-align: right;
}

/* Ajuste de tipografía */
table td, table th {
    font-size: 16px;
}

.accordion-item {
    border: 1px solid #ddd;
    margin: 5px 0;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-header {
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: #0056b3;
}

.accordion-body {
    padding: 10px;
    display: none;
}

.accordion-body.active {
    display: block;
}

.accordion-body table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.accordion-body table th, .accordion-body table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.accordion-body table th {
    background-color: #f4f4f4;
}

.sales-display {
            font-size: 3rem;
            color: #333;
            padding: 0px 20px 10px 0px;
            text-align: right;
        }

        .sales-display span {
            font-weight: bold;
        }
        
/*botones home*/
/* Estilo para el contenedor de los botones en el footer */
.footer-button, .accordion-toggle, .sub-accordion-toggle {
    background-color: #ffffff;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    color: var(--primary-color);
    font-size: 12px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

/* Botones de los meses ocupando el 100% del ancho */
.accordion-toggle {
    width: 100%;
}

/* Botones de los días desplazándose a la derecha */
.sub-accordion-toggle {
    width: calc(100% - 30px);
    margin-left: 30px;
}
.sub-accordion-content table {
    width: calc(100% - 30px);
    margin-left: 30px;
    border-collapse: collapse; /* Opcional: para evitar bordes dobles entre celdas */
}

button {
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}

.fechareporte{
            background-color: #ffffff;
            border: 2px solid var(--primary-color);
            border-radius: 5px;
            color: var(--primary-color);
            font-size: 12px;
            padding: 5px 10px;
            cursor: pointer;
            transition: background-color 0.3s, color 0.3s;
        }
        
@media print {
  
  /* Oculta todo el contenido por defecto */
  body * {
    visibility: hidden;
  }
  
  /* Muestra solo el área que deseas imprimir */
  #printArea, #printArea * {
    visibility: visible;
  }
  
  /* Ajusta el contenedor a la vista de impresión */
  #printArea {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}
/*notificacion de registro de venta*/
.notification {
    position: fixed;
    top: 55px;
    left: 5%; /* Ajustado para centrar el 90% en la pantalla */
    width: 90%; /* Ancho del 90% de la pantalla */
    transform: translateX(100%); /* Inicialmente fuera de la pantalla */
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease; /* Transición para el efecto de deslizamiento */
    text-align: center; /* Centrar el texto */
}

.notification.show {
    transform: translateX(0); /* Mover a la posición original */
}

.notification.hide {
    opacity: 0; /* Ocultar la notificación */
    transform: translateX(100%); /* Mover fuera de la pantalla */
}


.notification.error {
    background-color: #f44336; /* Rojo para error */
}

.notification.fade-out {
    opacity: 0;
}

/*confirmacion personalizada*/

/* Estilos para el fondo del modal */
.custom-confirmation-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

/* Estilos para el contenido del modal */
.custom-confirmation-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    text-align: center;
}

/* Estilos para el header del modal */
.custom-confirmation-header {
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

/* Estilos para el body del modal */
.custom-confirmation-body {
    margin: 20px 0;
}

/* Estilos para el footer del modal */
.custom-confirmation-footer button {
    padding: 10px 20px;
    margin: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#custom-confirmation-yes, .footer-button-si {
    background-color: #4CAF50;
    color: white;
}

#custom-confirmation-no, .footer-button-no {
    background-color: #f44336;
    color: white;
}

/* Estilos para el botón de cerrar */
.custom-confirmation-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 20px;
    cursor: pointer;
}

/*canelacion de confirmacion*/
.custom-cancel-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.custom-cancel-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    text-align: center;
    border-radius: 8px;
}

.custom-cancel-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.custom-cancel-close:hover,
.custom-cancel-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.custom-cancel-button {
    background-color: #d9534f;
    color: white;
    padding: 10px 20px;
    margin: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.custom-cancel-button:hover {
    background-color: #c9302c;
}

/*confirmacion de borrado producto*/

.custom-delete-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.custom-delete-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    text-align: center;
    border-radius: 8px;
}

.custom-delete-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.custom-delete-close:hover,
.custom-delete-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.custom-delete-button {
    background-color: #d9534f;
    color: white;
    padding: 10px 20px;
    margin: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.custom-delete-button:hover {
    background-color: #c9302c;
}

/*editar producto modal*/
.custom-edit-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.custom-edit-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    text-align: left;
    border-radius: 8px;
}

.custom-edit-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.custom-edit-close:hover,
.custom-edit-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.custom-edit-input {
    width: calc(100% - 20px);
    padding: 8px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.custom-edit-button {
    background-color: #5cb85c;
    color: white;
    padding: 10px 20px;
    margin: 10px 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.custom-edit-button:hover {
    background-color: #4cae4c;
}

.custom-button#cancelLogoutBtn,.custom-edit-button#edit-product-cancel {
    background-color: #d9534f;
}

.custom-button#cancelLogoutBtn,.custom-edit-button#edit-product-cancel:hover {
    background-color: #c9302c;
}

/*agregar producto modal*/
.custom-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.custom-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    text-align: left;
    border-radius: 8px;
}

.custom-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.custom-close:hover,
.custom-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.custom-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    margin: 10px 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.custom-button:hover {
  background-color: #45a049;
}


/*botones edit/remove */

.editremove {
    padding-left: 10px;
    padding-right: 10px;
}

.totalventa {
  color: #45a049;
  font-size:18px;
}

.ventadiahome {
    background: #4CAF50;
    margin-left: 100px;
    margin-right: 100px;
    padding: 2px 2px 1px 2px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

/*boton varrito footer*/
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Espacio entre botones */
}

/**/
#openInventoryBtn {
            background-color: #ffffff;
            border: 2px solid var(--primary-color);
            border-radius: 5px;
            color: var(--primary-color);
            font-size: 12px;
            cursor: pointer;
            transition: background-color 0.3s, color 0.3s;
            z-index: 1000;
            position: fixed;
            left: 1%; /* Posiciona el botón a la mitad de la pantalla */
            /*transform: translateX(-80%);  Mueve el botón hacia la izquierda la mitad de su propio ancho para centrarlo */
}



footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    z-index: 999;
    height: 50px;
}
/**/

#openCartBtn {
position: fixed;
bottom: 50px;
right: 10px; /* Posiciona el botón a la mitad de la pantalla */
/*transform: translateX(-50%);  Mueve el botón hacia la izquierda la mitad de su propio ancho para centrarlo */
width: 70px;
height: 70px;
border-radius: 50%;
background-color: var(--primary-color);
color: white;
border: solid 3px white;
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3);
font-size: 20px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
z-index: 1000;

}

.cart-icon {
    width: 50px;
    height: 50px;
    background-color: white;
    mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="9" cy="21" r="1"%3E%3C/circle%3E%3Ccircle cx="20" cy="21" r="1"%3E%3C/circle%3E%3Cpath d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61l1.38-7.39H6"%3E%3C/path%3E%3C/svg%3E') center / contain no-repeat; /* Reemplaza con la ruta al ícono del carrito */
}

.cart-count {
    position: absolute;
    top: -0px;
    right: -0px;
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}
/**/
/* Estilo general para el menú */
nav {
    position: relative;
    margin-left: 10px;
    float: left;
    margin-top: 15px;
}

/* Estilo para el botón de menú */
.menu-toggle {
    font-size: 24px;
    cursor: pointer;
    padding-left: 10px;
}

/* Estilo para el menú */
ul.menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 0;
    left: -260px; /* Ajusta el ancho del menú */
    width: 200px; /* Ancho del menú */
    background-color: var(--primary-color);
    color: white;
    transition: left 0.4s ease; /* Efecto de deslizamiento */
    top: 38px;
}

/* Estilo para los elementos del menú */
ul.menu li {
    padding: 10px;
    border-bottom: 1px solid #444;
}

ul.menu li a {
    color: white;
    text-decoration: none;
    display: block;
}

/* Mostrar el menú cuando se activa */
ul.menu.show {
    left: 0;
    margin-left: -10px;
    top: 38px;
}

/*estilo para sales.php*/
#SalesReport h2{
    padding: 10px 0px 10px 10px;
    text-align: center;
    
}

.sales-history {
    width: 100%;
    margin: 0 auto;
    background: linear-gradient(to bottom, #ffffff, rgba(255, 255, 255, 0));
}

.sales-report {
    width: 100%;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

.sales-report form {
    margin-top: 20px;
    padding: 0px 10px 0px 10px;
    text-align: center;
}


.sales-history header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sales-history .close {
    cursor: pointer;
    font-size: 24px;
    color: #333;
}

.sales-history .tabs {
    margin-top: 20px;
}

.sales-history .tab-btn {
    margin-right: 10px;
    padding: 10px 20px;
    cursor: pointer;
}

.sales-history .tab-content {
    margin-top: 20px;
    padding: 0px 10px 0px 10px;
}

/*REPORTE*/
.no-sales{
    text-align:center;
}

@media print {
    .print-button button, .home-button a {
        display: none;
    }
}
/* Estilos para los encabezados de la tabla */
.sales-table th, .sales-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

/* Color de fondo para los encabezados */
.sales-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

/* Alternar color de las filas para mayor legibilidad */
.sales-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Estilos para el contenedor de la tabla en pantallas pequeñas */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Habilita el desplazamiento suave en dispositivos táctiles */
}

.print-button, .home-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
    margin-right: 20px;
    margin-left: 20px;
}
/*productos.php*/
#Productos {
    background: linear-gradient(to bottom, #ffffff, rgba(255, 255, 255, 0));
    width:100%;
    
}
