﻿@import url('site.css');
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Controles de paginado para Compras/Ventas */
.pagination {
    margin-top: 10px;
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.pagination .page-link {
    padding: 2px 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
    text-decoration: none;
    color: #1d6b3a;
    font-size: 0.9rem;
}

.pagination .current-page {
    background-color: #1d6b3a;
    color: #fff;
    border-color: #1d6b3a;
}

/* Título fuera del contenedor */
.titulo-login {
    width: 100%;
    max-width: 600px;
    padding-left: 30px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.login-container {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .login-container label {
        font-weight: 600;
        color: #333;
    }

    .login-container input[type="text"],
    .login-container input[type="password"] {
        padding: 12px;
        border: 1px solid #eaeaeaff;
        border-radius: 10px;
        font-size: 16px;
        width: 95%;
        outline:none;
        margin-bottom:20px;
    }

    .login-container .submit-btn {
        margin-top: 50px;
        background-color: #2e7d32;
        border: none;
        color: white;
        padding: 14px;
        border-radius: 50px;
        font-size: 18px;
        cursor: pointer;
        transition: background-color 0.3s ease;
        display: flex;
        float:right;
        height:50px;
        justify-content: center;
        align-items: center;
    }

        .login-container .submit-btn:hover {
            background-color: #1b5e20;
        }

        .login-container .submit-btn::after {
            content: "→";
            font-size: 20px;
            margin-left: 8px;
        }

.registro-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background-color: #ffffffaa;
    border: 2px solid #2e7d32;
    color: #2e7d32;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .registro-btn:hover {
        background-color: #c8e6c9;
    }

@media (max-width: 480px) {

    .titulo-login {
        position: static;
        margin-bottom: 20px;
        font-size: 20px;
        text-align: center;
    }

    .registro-btn {
        position: static;
        margin-bottom: 20px;
    }

    .login-container {
        padding: 30px 20px;
        border-radius: 16px;
        width:80%;
        margin-left:0%;
    }

        .login-container input[type="text"],
        .login-container input[type="password"] {
            padding: 12px;
            border: 1px solid #eaeaeaff;
            border-radius: 10px;
            font-size: 16px;
            width: 90%;
            outline: none;
        }
}

/* Layout y menu responsive */
.layout-wrapper {
    display: flex;
    height: 100vh;    
    width: 100%;
}

.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* empuja logout al fondo */
    height: 100vh;
    width: 280px;
    /*background: linear-gradient( to top, #2e7d32 0%,*/ /* color sólido en la base */
    /*#2e7d32 70%,*/ /* mantiene el verde hasta el 70% */
    /*#ffffff 90%*/ /* transición a blanco hacia arriba */
    /*);*/
    background-color: #2e7d32;
    color: white;
    transition: transform 0.3s ease;
    max-height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
}
.sidebar::-webkit-scrollbar {
    width: 0px; /* ancho de la barra */
}

.sidebar::-webkit-scrollbar-track {
    background: #2e7d32;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: white;
    border-radius: 4px;
    border: 2px solid #2e7d32;
}

    .sidebar ul.menu {
        list-style: none;
        padding: 0;
    }

        .sidebar ul.menu li {
            margin-bottom: 8px;
        }

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    width: 100%;
    background-color: #fff;
}

.topbar {
    background-color: #f0f2f5;
    padding: 0px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: #000;
    cursor: pointer;
    padding: 10px;
    display: block;
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

.content {
    padding: 30px;
    overflow-y: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        transform: translateX(-100%);
        z-index: 1000;
    }

        .sidebar.open {
            transform: translateX(0);
        }

    .main-content {
        width: 100%;
    }
}

/* Panel inicial */

.dashboard {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

    .dashboard h1 {
        font-size: 22px;
        color: #2e7d32;
    }

    .dashboard h2 {
        font-size: 16px;
        background-color: #ebebeb;
        color: #000;
        padding: 0.5%;
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border:1px solid #d4d4d4;
    }

.bienvenida {
    font-size: 18px;
    color: #444;
}

.cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background-color: #ffffffdd;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    flex: 1;
    min-width: 200px;
}

    .card h3 {
        margin-bottom: 10px;
        color: #2e7d32;
        font-size:18px;
    }

    .card p {
        font-size: 24px;
        font-weight: bold;
        color: #333;
    }

.charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

    .charts canvas {
        background-color: #fff;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        width: 100% !important;
        height: auto !important;
    }

    .charts h3 {
        margin-bottom: 10px;
        margin-top:20px;
        color: #000;
        font-size: 18px;
    }


@media (max-width: 768px) {
    .layout-wrapper {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 220px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

        .sidebar.open {
            transform: translateX(0);
        }

    .main-content {
        width: 100%;
    }


    .dashboard {
        padding: 20px;
    }

    .cards {
        flex-direction: column;
        gap: 15px;
    }

    .charts {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.logout-container {
    margin-top: auto;
}

.logout-btn {
    background-color: #f22c2c;
    border-radius: 8px;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    width: 90%;
    text-align: left;
    transition: all 0.2s ease;
    padding-left:3%;
    margin-left:5%;
    margin-bottom:5%;
}

    .logout-btn:hover {
        background-color: #d11515;
        transition: all 0.2s ease;
    }

.extra-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.actualizacion {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.fuentes {
    font-size: 0.70em;
    color: #d1860f;
    margin-top: -5px;
}

/* CargaTickets.cshtml */
.upload-panel {
    background-color: #f9f9f9;
    border: 2px dashed #ccc;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.upload-panel:hover {
    background-color: #e3f3e4;
    transition:all 0.3s ease;
}

.upload-panel label {
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.upload-panel input[type="file"] {
    margin-bottom: 15px;
}

.upload-panel button {
    background-color: #1b5e20;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-left:20px;
    transition:all 0.3s ease;
}

.upload-panel button:hover {
    background-color: #124a16;
    transition:all 0.3s ease;
}

.resultado-carga {
    margin-top: 20px;
    padding: 10px;
    background-color: #ffe2b3;
    border: 1px solid #d1860f;
    border-radius: 5px;
    color: #5b431d;
    font-weight: bold;
}

.tabla-tickets {
    margin-top: 30px;    
}

.tickets-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.tabla-scroll {
    overflow-x: auto;
    max-width: 100%;
}

.tickets-table th, .tickets-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
}

.tickets-table th {
    background-color: #f0f0f0;
    font-weight: bold;
}

.tickets-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.filtros-tickets {
    margin-top: 30px;
    margin-bottom: 20px;
}

.filtros-inline {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
    margin-top:20px;
}

.filtros-inline input,
.filtros-inline select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    min-width: 180px;
}

.filtros-inline button.boton-filtro {
    padding: 8px 16px;
    background-color: #1b5e20;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.filtros-inline button.boton-filtro:hover {
    background-color: #124a16;
    transition: all 0.2s ease;
}

.filtros-inline a{
    padding: 8px 16px;
    background-color: #1b5e20;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration:none;
}

.filtros-grid {
    display: grid;
    gap: 15px;
    align-items: end;
}

.filtros-grid label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.filtros-grid input,
.filtros-grid select {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.boton-filtro {
    grid-column: span 2;
    text-align: left;
}

.boton-filtro button {
    padding: 5px 10px;
    background-color: #1b5e20;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition:all 0.3s ease;
}

.boton-filtro button:hover {
    background-color: #124a16;
    transition:all 0.3s ease;
}

.filtros-input {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}
/* Productos.cshtml */

.grid-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

    .grid-form label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

    .grid-form input {
        width: 100%;
        padding: 6px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    .grid-form select {
        width: 100%;
        padding: 6px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

.boton-agregar,
.boton-inactivos {
    margin-top: 20px;
    text-align: left;
    margin-bottom:20px;
}

.boton-agregar button {
    padding: 5px 10px;
    background-color: #1b5e20;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.boton-inactivos button {
    padding: 5px 10px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.boton-agregar button:hover {
    background-color: #124a16;
    transition: all 0.2s ease;
}

.boton-inactivos button:hover {
    background-color: #1b1b1b;
    transition: all 0.2s ease;
}

.productos-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 0.95rem;
}

    .productos-table th, .productos-table td {
        border: 1px solid #ccc;
        padding: 8px;
        text-align: center;
        white-space: nowrap;
    }

    .productos-table th {
        background-color: #f0f0f0;
        font-weight: bold;
    }
    .productos-table td.acciones {
        min-width: 100px;
        padding: 0px;
    }


.modal-edicion {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    .modal-contenido {
        background-color: white;
        padding: 20px;
        border-radius: 6px;
        width: 100%;
        max-width: 50%;
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: 0 0 10px rgba(0,0,0,0.3);
        position: absolute;
        left: 25%;
        top: 10%;
    }

        .modal-contenido h3{
            font-size:18px;
            font-weight:600;
        }

        .modal-contenido button {
            padding: 5px 10px;
            background-color: #1b5e20;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.2s ease;
        }

            .modal-contenido button:hover {
                background-color: #124a16;
                transition: all 0.2s ease;
            }

        .modal-contenido input {
            width: 20%;
            padding: 6px;
            border: 1px solid #ccc;
            border-radius: 4px;
            margin-bottom:15px;
        }
.fields button{
    background-color:#101010;
    font-weight:400;

}

.fields button:hover {
    background-color: #9f6509;
    transition: all 0.2s ease;
}

.fields select {
    width: 30%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 15px;
}

@media (max-width: 767px) {
    .modal-contenido {
        background-color: white;
        padding: 20px;
        border-radius: 6px;
        width: 95%;
        max-width: 95%;
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: 0 0 10px rgba(0,0,0,0.3);
        position: relative;
        left: 2.5%;
        top: 20vh;
    }
}

    .grid-form-edicion {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 20px;
    }

        .grid-form-edicion label {
            font-weight: bold;
            display: block;
            margin-bottom: 5px;
        }

        .grid-form-edicion input,
        .grid-form-edicion select,
        .grid-form-edicion textarea {
            padding: 8px;
            font-size: 14px;
            height: 38px;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
            width: 100%;
        }

        .grid-form-edicion select {
            appearance: none;
            background-color: #fff;
        }

        .grid-form-edicion textarea {
            resize: vertical;
            min-height: 80px;
            height: auto;
        }

    .botones-edicion {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
    }

.btn-guardar {
    padding: 8px 16px;
    background-color: #1b5e20;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .btn-guardar:hover {
        background-color: #124a16;
        transition: background-color 0.2s ease;
    }

    .btn-cancelar {
        padding: 8px 16px;
        background-color: #ccc;
        color: #333;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

    .acciones {
        justify-content: center;
        align-items: center;
        gap: 8px;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
        padding: 8px;
    }

    .btn-descarga {
    padding: 4px 10px;
    background-color: #d1860f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 20px;
    transition: background-color 0.2s ease;
    text-decoration:none;
}

    .btn-descarga:hover {
        background-color: #b27008;
        transition: background-color 0.2s ease;
        color:#fff;
    }


    .btn-accion {
        background-color: transparent;
        border: none;
        cursor: pointer;
        font-size: 1.2rem;
        padding: 6px;
        border-radius: 4px;
        transition: background-color 0.2s ease;
        margin: 5px;
    }

        .btn-accion:hover {
            background-color: #f0f0f0;
        }

        .btn-accion.editar i {
            color: #1b5e20;
        }

        .btn-accion.desactivar i {
            color: #b71c1c;
        }

        .btn-accion.reactivar i {
            color: #0277bd;
        }

    .tabla-productos {
        margin-bottom: 100px;
        max-width: 100%;
        overflow-x: auto;
    }

.tabla-productos h3 {
    font-size:16px;
    font-weight:600;
    margin-bottom:20px;
}

    .boton-toggle-formulario button {
        padding: 5px 10px;
        background-color: #1b5e20;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-weight: bold;
        margin-bottom: 20px;
        transition: background-color 0.2s ease;
    }

        .boton-toggle-formulario button:hover {
            background-color: #124a16;
            transition: background-color 0.2s ease;
        }
/* Contactos.cshtml */

.contactos-grid-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.contactos-grid-form div {
    display: flex;
    flex-direction: column;
}

.contactos-grid-form label {
    margin-bottom: 4px;
    font-weight: bold;
}

.contactos-grid-form input,
.contactos-grid-form select,
.contactos-grid-form textarea {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    height: 38px;
}

.contactos-grid-form textarea {
    resize: vertical;
    min-height: 80px;
    height: auto;
}

.contactos-grid-form input[readonly] {
    background-color: #f0f0f0;
}

.contactos-grid-form input[list] {
    height: 38px;
}

.contactos-grid-form select {
    appearance: none;
    background-color: #fff;
}

.contactos-boton-agregar {
    text-align: left;
}

.contactos-boton-agregar button {
    background-color: #1b5e20;
    color: white;
    padding: 5px 10px;
    font-size: 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
     transition: all 0.2s ease;
}

.contactos-boton-agregar button:hover {
    background-color: #124a16;
     transition: all 0.2s ease;
}
.filtros-contactos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.filtros-contactos input[type="text"],
.filtros-contactos select {
    padding: 8px;
    font-size: 14px;
    height: 38px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    min-width: 220px;
}

.filtros-contactos button {
    background-color: #1b5e20;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    height: 38px;
    transition: all 0.2s ease;
    width:8%;
}

.filtros-contactos button:hover {
    background-color: #124a16;
    transition: all 0.2s ease;
}
@media (max-width: 600px) {
    .filtros-contactos {
        flex-direction: column;
        align-items: stretch;
    }

        .filtros-contactos input,
        .filtros-contactos select,
        .filtros-contactos button {
            width: 100%;
        }
}

/* Compras.cshtml */

.compras-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

    .compras-table th,
    .compras-table td {
        border: 1px solid #ccc;
        padding: 10px;
        text-align: left;
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .compras-table th {
        background-color: #eaeaea;
        font-weight: 600;
    }

    .compras-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .compras-table tr td input{
        width:16px;
        height:16px;
        padding:15px;
        margin-top:15px;
    }

    .condicion-panel {
        display: flex;
        gap: 16px;
        width: 100%;
        align-items: flex-start;
        box-sizing: border-box;
        background-color: #fae9cf;
        padding: 10px;
        margin-bottom: 20px;
    }

.condicion-panel .cond-left {
    flex: 1 1 50%;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.condicion-panel .cond-actions {
    margin-top: 6px;
}

.cond-left label{
    font-weight:600;
}
.cond-actions button {
    background-color: #1b5e20;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 0px;
    margin-bottom:15px;
    transition: all 0.3s ease;
}
.cond-actions butto:hover {
    background-color: #124a16;
    transition: all 0.3s ease;
}

.transporte-panel {
    flex: 0 0 50%;
    max-width: 50%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 6px;
    background: #fafafa;
}

    .transporte-panel .trans-h4 {
        margin-top: 0;
        font-size: 16px;
        font-weight: 600;
    }

.transporte-panel .trans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    align-items: center;
}

    .transporte-panel .trans-patente {
        grid-column: 1 / 3;
        font-size: 16px;
    }
    .transporte-panel .tipo-row {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 16px;
    }
    .transporte-panel .tipo-label {
        margin: 0;
        white-space: nowrap;
        font-size: 16px;
    }

.neto-info, .total-info, .vencimiento-info { margin-top: 6px; font-weight: 600; }
.total-calculated { border: none; background: transparent; font-weight: 700; }

/* Responsive: stack on small screens */
@media (max-width: 767px) {
  .condicion-panel {
    flex-direction: column;
  }
  .transporte-panel {
    max-width: 100%;
    width: 100%;
  }
  .transporte-panel .trans-grid {
    grid-template-columns: 1fr;
  }
}

.filtros-input {
    width: 30%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom:25px;
}
/* Intermediacion.cshtml */
.filtros-intermediacion button {
    padding: 5px 10px;
    background-color: #1b5e20;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 0px;
    transition: background-color 0.2s ease;
}

    .filtros-intermediacion button:hover {
        background-color: #124a16;
        transition: background-color 0.2s ease;
    }

.filtros-intermediacion input {
    padding: 12px;
    border: 1px solid #eaeaeaff;
    border-radius: 10px;
    font-size: 16px;
    width: 100%;
    outline: none;
    margin-bottom: 0px;
}
.filtros-intermediacion select {
    padding: 12px;
    border: 1px solid #eaeaeaff;
    border-radius: 10px;
    font-size: 16px;
    width: 100%;
    outline: none;
    margin-bottom: 0px;
}

/* Notificaciones en Panel */
.panel-notif-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.panel-notif-item {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.panel-notif-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.panel-notif-item strong {
    font-size: 16px;
    color: #333;
}

.panel-notif-item p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.panel-notif-item small {
    color: #999;
    font-size: 13px;
}

.panel-notif-empty {
    text-align: center;
    padding: 30px;
    color: #999;
}

/* Botones de acción en notificaciones del Panel */
.panel-notif-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.panel-notif-btn:hover {
    transform: scale(1.1);
}

.panel-notif-btn-completar {
    color: #4caf50;
    border-color: #4caf50;
}

.panel-notif-btn-completar:hover {
    background: #4caf50;
    color: white;
}

.panel-notif-btn-cancelar {
    color: #f44336;
    border-color: #f44336;
}

.panel-notif-btn-cancelar:hover {
    background: #f44336;
    color: white;
}

/* Estilos del menú lateral (layout) - VERSIÓN MEJORADA CON MAYOR ESPECIFICIDAD */
.layout-menu-item {
    position: relative;
}

/* Botones con submenú (Inicio, Tickets, Administración) */
.sidebar .menu .layout-menu-item .layout-menu-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px !important; /* más padding horizontal */
    cursor: pointer;
    color: white !important;
    background-color: transparent !important;
    transition: background-color 0.2s ease;
    border-radius: 5px !important;
    margin: 4px 10px !important; /* más margen vertical */
    user-select: none;
    gap: 10px;
    text-decoration: none;
    font-size: 15px; /* tamaño unificado */
}

/* Botones simples (Intermediación, Transporte, Ajustes) - IDÉNTICOS A LOS CON SUBMENÚ */
.sidebar .menu .layout-menu-item .layout-menu-link {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 18px !important; /* igual que los header */
    cursor: pointer;
    color: white !important;
    background-color: transparent !important;
    transition: background-color 0.2s ease;
    border-radius: 5px !important;
    margin: 4px 10px !important; /* igual que los header */
    user-select: none;
    text-decoration: none !important;
    font-size: 15px; /* tamaño unificado */
}

.sidebar .menu .layout-menu-item .layout-menu-link:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
}

.sidebar .menu .layout-menu-item .layout-menu-link i {
    margin-right:12px;
}

/* Flecha de submenú */
.sidebar .menu .layout-menu-item .layout-submenu-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: auto;
    flex-shrink: 0;
}

/* Submenú contenedor */
.sidebar .menu .layout-menu-item .layout-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .menu .layout-menu-item.active .layout-submenu {
    max-height: 600px;
    margin-bottom: 10px;    
}

.sidebar .menu .layout-menu-item .layout-submenu li {
    padding: 0;
    margin: 0;
}

/* Enlaces de submenú - mejorar legibilidad y evitar corte en dos líneas */
.sidebar .menu .layout-menu-item .layout-submenu li a {
    display: flex !important;
    align-items: center;
    padding: 10px 0px 10px 30px !important; /* más padding horizontal y left */
    color: rgba(255, 255, 255, 0.9) !important;
    background-color: transparent !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border-radius: 5px !important;
    margin: 8px 10px 0px !important; /* más separación vertical */
    font-size: 14px;
    white-space: nowrap; /* evita que el texto se parta en dos líneas */
}

.sidebar .menu .layout-menu-item .layout-submenu li a:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    padding-left: 35px !important; /* mantiene efecto de deslizamiento */
}

.sidebar .menu .layout-menu-item .layout-submenu li a i {
    margin-right: 10px;
    font-size: 14px;
    width: 18px;
    text-align: center;
}

/* Alinear botones de acciones en horizontal */
.compras-table td.acciones {
    white-space: nowrap;
}

.compras-table td.acciones .btn-accion {
    display: inline-block;
    margin-right: 4px;
}

/* Resaltar columna Total en registros cerrados */
.compras-table td.total-cell {
    background-color: #222;
    color: #fff;
    font-weight: 700;
}

/* Resaltar filas de cheques rechazados */
.cheques-table tr.cheque-rechazado {
    background-color: #ffe5e5; /* rojo claro */
}

/* Resaltar filas de cheques resueltos */
.cheques-table tr.cheque-resuelto {
    background-color: #fff8e1; /* amarillo claro */
}

/* Botones de exportación */
.btn-exportar {
    display: inline-block;
    padding: 8px 16px;
    background-color: #1b5e20;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    font-size: 14px;
    text-decoration: none;
}

.btn-exportar:hover {
    background-color: #124a16;
    transition: all 0.2s ease;
    color: white;
}

.btn-exportar i {
    margin-right: 6px;
}

/* Botón marcar como resuelto */
.btn-marcar-resuelto {
    padding: 8px 16px;
    background-color: #f57c00 !important;
    color: white !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-marcar-resuelto:hover {
    background-color: #e65100 !important;
    transition: all 0.2s ease;
}

/* Botones para agregar forma de pago/cobro (Pagos y Cobranzas) */
#btnAgregarForma,
#btnAgregarFormaCobro {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

#btnAgregarForma i,
#btnAgregarFormaCobro i {
    color: #fff;
}

#btnAgregarForma:hover,
#btnAgregarFormaCobro:hover {
    background-color: #333;
}

/* Paginado en Chequera */
.paginado-cheques .btn-paginado {
    display: inline-block;
    padding: 4px 10px;
    margin: 0 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background-color: #f8f8f8;
}

.paginado-cheques .btn-paginado:hover {
    background-color: #e0e0e0;
}

.section-content h3 {
    font-size: 16px;
    background-color: #f2cf98;
    color: #000;
    padding: 1%;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #b77307;
}
#panelChequesPropios button, #panelChequesPropios i {
    font-size: 14px;
    background-color: #000;
    color: #fff;
}
#chequeOrigenPanel input{
    width:auto;
    margin-top:10px;
}
#panelChequesPropios h4 {
    font-size: 16px;
    font-weight: 600;
    margin-top:20px;
}
#panelChequesTerceros h4 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
}

/* Checkboxes personalizados para selección de tickets en modales (Pagos, SojaAFijar, etc.) */
.chk-container {
    display: inline-block;
    position: relative;
    padding-left: 22px;
    cursor: pointer;
    user-select: none;
}

.chk-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 16px;
    width: 16px;
}

.chk-container .checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 16px;
    width: 16px;
    background-color: #fff;
    border: 1px solid #999;
    border-radius: 3px;
}

.chk-container:hover input ~ .checkmark {
    border-color: #1b5e20;
}

.chk-container input:checked ~ .checkmark {
    background-color: #1b5e20;
    border-color: #1b5e20;
}

.chk-container .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.chk-container input:checked ~ .checkmark:after {
    display: block;
}

.chk-container .checkmark:after {
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* SOBRESCRIBIR estilos para checkboxes de imputación (hacerlos más grandes) */
#tablaFacturasImputacion input[type="checkbox"],
#tablaTicketsImputacion input[type="checkbox"],
#tablaFacturasResolver input[type="checkbox"] {
    position: static !important;
    opacity: 1 !important;
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
    margin: 0 auto !important;
}

#descuentoObsWrapper {
    background-color: #000;
    color: #fff;
    padding: 6px 8px;
    border-radius: 4px;
    margin-top: 6px;
}

#descuentoObsWrapper input.descuento-obs-texto {
    width: 100%;
    margin-top: 4px;
    padding: 2px 4px;
    background-color: #222;
    color: #fff;
    border: 1px solid #555;
}

#totalCalculatedWrapper {
    background-color: #000;
    color: #fff;
    padding: 6px 8px;
    border-radius: 4px;
    margin-top: 6px;
}

#totalCalculatedWrapper input.total-calculated {
    background-color: #222;
    color: #fff;
    border: 1px solid #555;
}
.boton-carga-manual {
    display: inline-block;
    padding: 8px 8px;
    background: #1b5e20;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
    border:none;
}
.boton-carga-manual:hover {
    background: #124a16;
    color:#fff;
}
.boton-carga-manual i {
    margin-right: 8px;
}

/* Botón específico para crear asiento manual en CuentasCorrientes */
.boton-asiento-manual {
    padding: 10px 20px;
    background-color: #FF9800;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease;
}
.boton-asiento-manual:hover {
    background-color: #e68900;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom:20px;
}
.contenedores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom:20px;
}
.section-header i {
    text-decoration: none;
}
.section-header a {
    text-decoration: none;
}
.section-header button {
    margin-bottom: 10px;
}

/* Logo Sidebar - Contenedor aislado */
.logo-sidebar-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 0 10px 0;
    box-sizing: border-box;
    margin-bottom: 40px;
    position: sticky;
    top: 0; /* 👈 clave */
    z-index: 10;
    background-color: transparent;
}
    .logo-sidebar-container::before {
        content: "";
        position: absolute;
        width: 90%;
        height: 65%;
        background: #fff;
        border-radius: 8px;
        z-index: 1;
        box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.02) 0px 5px 12px;
    }
.logo-sidebar-img {
    max-width: 140px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    position: relative;
    z-index: 2;
}
#notificacionArqueo {
    display: none;
    background: #d11515;
    color: white;
    padding: 5px;
    text-align: center;
    position: fixed;
    top: 0px;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
    #notificacionArqueo a {
        color: white;
        margin-left: 15px;
        background: #d1860f;
        color: #fff;
        padding: 5px 10px;
        border-radius: 4px;
        text-decoration:none;
    }
    #notificacionArqueo button {
        margin-left: 15px;
        background: #f44336;
        color: #fff;
        border: none;
        padding: 2px 10px;
        border-radius: 4px;
        cursor: pointer;
    }

/* Estilos específicos para la página de Proyección (prefijo proyeccion-*) */
.proyeccion-wrapper {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-top: 20px;
}
.proyeccion-filtros {
    display:flex; 
    gap:12px; 
    align-items:center; 
    flex-wrap:wrap;
    margin-bottom: 20px;
}
.proyeccion-filtros input,
.proyeccion-filtros select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    min-width: 180px;
}
.proyeccion-filtros label {
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}
.proyeccion-resumen { 
    display:flex; 
    gap:16px; 
    align-items:center; 
    margin-top:12px; 
    margin-bottom: 20px;
    flex-wrap:wrap; 
}
.proyeccion-resumen .card { 
    flex:1; 
    min-width:200px; 
}
.proyeccion-detalle { 
    margin-top:20px; 
}
.proyeccion-detalle .tabla { 
    overflow-x:auto; 
    margin-top: 15px;
}
.proyeccion-agregar-row { 
    margin-top:8px; 
    margin-bottom: 15px;
    display:flex; 
    gap:8px; 
    align-items:center; 
    flex-wrap: wrap;
}
.proyeccion-agregar-row input,
.proyeccion-agregar-row select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}
.proyeccion-chart { 
    margin-top:20px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.proyeccion-week-table { 
    margin-top:12px; 
    border-collapse:collapse; 
    width:100%; 
}
.proyeccion-week-table th, 
.proyeccion-week-table td { 
    border:1px solid #ccc; 
    padding:8px; 
    text-align: center;
}
.proyeccion-week-table th {
    background-color: #f0f0f0;
    font-weight: bold;
}
.proyeccion-summary-export { 
    margin-top:20px; 
    display:flex; 
    gap:8px; 
    justify-content:flex-end;
    flex-wrap: wrap;
}
/* Botones para proyección - usar estilos existentes */
.proyeccion-btn,
.proyeccion-filtros .boton-filtro,
.proyeccion-summary-export .boton-filtro {
    background-color: #1b5e20;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}
.proyeccion-btn:hover,
.proyeccion-filtros .boton-filtro:hover,
.proyeccion-summary-export .boton-filtro:hover {
    background-color: #124a16;
    transition: all 0.2s ease;
}
.proyeccion-btn.secondary {
    background-color: #999;
}
.proyeccion-btn.secondary:hover {
    background-color: #777;
}
/* Ajustes para inputs editables en la tabla */
.proyeccion-detalle input.editable-cob,
.proyeccion-detalle input.editable-pag {
    width: 120px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: right;
    font-size: 14px;
}
.proyeccion-detalle input.editable-cob:focus,
.proyeccion-detalle input.editable-pag:focus {
    outline: none;
    border-color: #1b5e20;
    background-color: #f0f8f0;
}
