body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f3f4f6; /* Fondo gris claro */
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container-caja {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.header-caja {
    background-color: #37474f; /* Gris azulado oscuro */
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px 6px 0 0;
    margin-bottom: 20px;
}

.logo-caja {
    font-size: 1.6em;
    font-weight: bold;
}

.nav-caja ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.nav-caja ul li {
    margin-left: 15px;
}

.nav-caja ul li:first-child {
    margin-left: 0;
}

.nav-caja a {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.nav-caja a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.main-caja {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.venta-panel-caja {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.paneles-ocultables {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    align-items: flex-start; /* Para que los botones y paneles se alineen arriba */
}

.btn-secundario {
    background-color: #6c757d;
}

.btn-secundario:hover {
    background-color: #545b62;
}

.btn-info {
    background-color: #17a2b8;
}

.btn-info:hover {
    background-color: #138496;
}

.lista-deudas-panel-caja, .informe-deudas-panel-caja {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    margin-top: 10px; /* Espacio entre el botón y el panel */
    flex: 1 1 100%; /* Ocupan todo el ancho por defecto */
}

@media (min-width: 768px) {
    .lista-deudas-panel-caja, .informe-deudas-panel-caja {
        flex: 1 1 calc(50% - 5px); /* Ocupan la mitad del ancho con un pequeño espacio */
    }
}

.oculto {
    display: none;
}

h2 {
    color: #37474f;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.form-venta-caja {
    display: grid;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #555;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.icon {
    position: absolute;
    left: 10px;
    color: #777;
    font-size: 1em;
}

.input-icon input {
    padding-left: 30px; /* Espacio para el icono */
}

.autocomplete-wrapper {
    position: relative;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.autocomplete-results .item-cliente {
    padding: 8px;
    cursor: pointer;
    background-color: white;
    border-bottom: 1px solid #eee;
}

.autocomplete-results .item-cliente:last-child {
    border-bottom: none;
}

.autocomplete-results .item-cliente.resaltado {
    background-color: #e0f7fa; /* Color de resaltado */
}

.btn-caja {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
}

.btn-primary {
    background-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-editar {
    background-color: #28a745;
    margin-right: 5px;
}

.btn-editar:hover {
    background-color: #1e7e34;
}

.btn-eliminar {
    background-color: #dc3545;
}

.btn-eliminar:hover {
    background-color: #c82333;
}

.btn-ver {
    background-color: #17a2b8;
}

.btn-ver:hover {
    background-color: #138496;
}

.tabla-caja {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.tabla-caja th,
.tabla-caja td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    font-size: 0.9em;
}

.tabla-caja th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.tabla-caja tr:nth-child(even) {
    background-color: #f9f9f9;
}

.tabla-caja .acciones {
    white-space: nowrap;
}

.table-responsive-caja {
    overflow-x: auto;
}

.footer-caja {
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
    background-color: #f8f9fa;
    color: #555;
    border-top: 1px solid #eee;
    border-radius: 0 0 8px 8px;
} body {
            font-family: sans-serif;
            margin: 0;
            background-color: #f0f2f5;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
        }

        .pdv-container {
            background-color: #e9ecef;
            border-radius: 10px;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
            width: 99%;
            max-width: 1400px;
            padding: 20px;
            display: grid;
            grid-template-columns: 2fr 1fr 1.5fr;
            grid-template-rows: auto auto auto auto auto 1fr;
            gap: 15px;
            grid-template-areas:
                "header  header  header"
                "title   title   title"
                "left    middle  right"
                "left    middle  right"
                "left    middle  right"
                "left    bottom  bottom";
        }

        .header {
            background-color: #343a40;
            color: white;
            padding: 10px 20px;
            border-radius: 8px 8px 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            grid-area: header;
        }

        .header-left {
            font-size: 1.5em;
            font-weight: bold;
        }

        .header-right {
            font-size: 0.9em;
            display: flex;
            gap: 10px;
        }

        .product-title {
            background-color: #007bff;
            color: white;
            padding: 8px;
            border-radius: 4px;
            text-align: center;
            font-size: 1em;
            font-weight: bold;
            grid-area: title;
        }

        .left-panel {
            background-color: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 15px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 200px;
            grid-area: left;
        }

        .company-data {
            text-align: left;
            margin-bottom: 10px;
        }

        .non-fiscal-coupon {
            font-size: 1.1em;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .coupon-details {
            font-size: 0.9em;
            line-height: 1.4;
        }

        .shopping-cart-icon {
            text-align: center;
            opacity: 0.6;
        }

        .shopping-cart-icon img {
            max-width: 80%;
            height: auto;
        }

        .middle-panel {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 15px;
            grid-area: middle;
        }

        .form-group {
            display: grid;
            grid-template-columns: auto 1fr;
            gap: 8px;
            align-items: center;
        }

        .form-group label {
            font-weight: bold;
            font-size: 1em;
        }

        .form-group input[type="text"],
        .form-group input[type="number"] {
            padding: 8px;
            border: 1px solid #ced4da;
            border-radius: 4px;
            font-size: 1em;
        }

        .add-button-container {
            display: flex;
            justify-content: flex-end;
        }

        .add-product-button {
            background-color: #28a745;
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 1em;
        }

        .add-product-button:hover {
            background-color: #1e7e34;
        }

        .right-panel {
            display: flex;
            flex-direction: column;
            gap: 8px;
            padding: 15px;
            min-height: 200px;
            grid-area: right;
        }

        .action-button {
            background-color: #007bff;
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 1em;
            text-align: left;
            display: flex;
            align-items: center;
        }

        .action-button::before {
            content: '';
            display: inline-block;
            width: 20px;
            height: 20px;
            background-color: #0056b3;
            border-radius: 50%;
            margin-right: 10px;
            font-size: 0.8em;
            color: white;
            text-align: center;
            line-height: 20px;
        }

        .action-button:nth-child(1)::before { content: 'F2'; }
        .action-button:nth-child(2)::before { content: 'F4'; }
        .action-button:nth-child(3)::before { content: 'F8'; }
        .action-button:nth-child(4)::before { content: 'F9'; }
        .action-button:nth-child(5)::before { content: 'F11'; }

        .action-button:hover {
            background-color: #0056b3;
        }

        .bottom-section {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            grid-area: bottom;
        }

        .sell-button {
            background-color: #28a745;
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 3.5em;
            text-align: center;
        }

        .sell-button:hover {
            background-color: #1e7e34;
        }

        .total-section {
            background-color: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            padding: 15px;
            text-align: right;
            font-size: 1.5em;
            font-weight: bold;
            min-width: 150px;
        }

        .total-section span {
            float: right;
        }

        /* Estilos para la lista de productos */
        .product-list {
            max-height: 300px;
            overflow-y: auto;
            margin-bottom: 15px;
        }

        .product-item {
            display: grid;
            grid-template-columns: 30px 60px 1fr 40px 60px 60px;
            gap: 5px;
            padding: 5px 0;
            border-bottom: 1px solid #eee;
            font-size: 0.9em;
        }

        .product-item-header {
            font-weight: bold;
            background-color: #f0f0f0;
            padding: 5px 0;
        }

        .remove-product {
            color: red;
            cursor: pointer;
            text-align: center;
        }
