body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #1b1b1b;
display: flex;
flex-direction: column;
min-height: 100vh;
}

html, body {
    height: 100%;
}

.container.my-2 {
    flex: 1 0 auto;
}
footer {
    flex-shrink: 0;
}

@media print {
    body > *:not(iframe) {
        display: none !important;
    }
    
    .modal, .modal-backdrop {
        display: none !important;
    }
    
    .modal-dialog {
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .modal-content {
        border: none !important;
        box-shadow: none !important;
    }
    
    .modal-header, 
    .modal-footer {
        display: none !important;
    }

    .factura-documento {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: auto;
        overflow: visible;
        background-color: white !important;
        color: black !important;
    }
    
    @page {
        size: A4;
        margin: 1cm;
    }

    tr, td, th, .row {
        page-break-inside: avoid;
    }
    
    .text-primary, .text-success, .text-info, .text-warning, .text-danger {
        color: black !important;
    }
    
    .btn, button, .no-print {
        display: none !important;
    }
    
    * {
        font-family: Arial, Helvetica, sans-serif !important;
    }
    
    .factura-documento * {
        visibility: visible !important;
    }
}

#tablaClientes th:first-child,
#tablaClientes td:first-child {
    display: none;
}

#tablaProveedores th:first-child,
#tablaProveedores td:first-child {
    display: none;
}

#btnNuevoGasto{
    margin-bottom: 10px;
}

.nav-tabs .nav-link {
    color: #dddddd;
    border: none;
    border-radius: 10px 10px 0 0;
}

.nav-tabs .nav-link.active {
    background-color: #2c3e50;
    color: white;
    font-weight: bold;
    border: none;
}

.dropdown-toggle {
background-color: #1f8537;
color: white;
border-radius: 8px;
padding: 10px 20px;
}

.dropdown-menu {
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.);
}

.dropdown-item {
padding: 10px 20px;
font-size: 14px;
}

.dropdown-item:hover {
background-color: #4f24c7;
color: white;
cursor: pointer; 
}

.dropdown-toggle:focus {
box-shadow: none;
}

h1 {
text-align: center;
color: #f8f9fa;
}

.table-responsive {
margin-top: 20px;
}

table {
width: 100%;
border-collapse: collapse;
border: 2px solid #275296;
}

th, td {
padding: 12px;
text-align: center;
border: 2px solid #444;
}

th {
background-color: #2c3e50;
color: white;
}

tbody tr:nth-child(even) {
background-color: #34495e;
}

tbody tr:nth-child(odd) {
background-color: #2c3e50;
border: 2px solid #444;
}

tbody tr:hover {
background-color: #1abc9c;
color: white; 
}

button {
background-color: #e74c3c;
color: white;
border: none;
padding: 5px 10px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}

button:hover {
background-color: #4f24c7;
opacity: 0.9;
}

button:focus {
outline: none;
}

@media (max-width: 768px) {
.d-flex {
flex-direction: column;
align-items: center;
}

.btn {
width: 100%;
margin-top: 10px;
}

th, td {
padding: 8px;
}

th {
font-size: 14px;
}

td {
font-size: 12px;
}
}

#tablaInventarios td img {
width: 300px;
height: auto;
margin: 0 auto;
display: block;
}

.btn-eliminar {
background-color: transparent;
border: none;
color: #dc3545;
padding: 6px;
border-radius: 4px;
transition: all 0.3s;
}

.btn-eliminar:hover {
background-color: #dc3545;
color: white;
}

.pagination {
margin-top: 1rem;
}

.page-item.active .page-link {
background-color: #3d5afe;
border-color: #3d5afe;
}

.factura-from-inventario {
    border-left: 3px solid #0d6efd !important;
    transition: background-color 0.3s;
}

.factura-from-inventario:hover {
    background-color: rgba(0, 123, 255, 0.2) !important;
}

.badge.bg-info {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}