/* styles.css - Hoja de estilos principal completa */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ====== RESET Y BASE ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Asegurar texto oscuro en todos los campos de entrada */
input, textarea, select {
    color: #1a1a1a !important;
    font-family: inherit;
    background-color: #f1f1f1;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #f5f5f5c0; 
}
/* Estilos adicionales para formulario de egresos */
.expense-form-section {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.expense-form {
    width: 100%;
}

.expense-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.expense-form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-method-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.payment-method-badge.efectivo {
    background: #fee2e2;
    color: #dc2626;
}

.payment-method-badge.transferencia {
    background: #dbeafe;
    color: #2563eb;
}

.payment-method-badge.cheque {
    background: #fef3c7;
    color: #d97706;
}

.payment-method-badge.tarjeta {
    background: #ede9fe;
    color: #7c3aed;
}

.expenses-total-row {
    background: rgba(239, 68, 68, 0.05);
    border-top: 2px solid #ef4444;
}

.btn-edit {
    background: #f59e0b;
    color: white;
}

.btn-edit:hover {
    background: #d97706;
}

.action-btn-small {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.action-btn-small.btn-primary {
    background: #059669;
    color: white;
}

.action-btn-small.btn-primary:hover {
    background: #047857;
}

.action-btn-small.btn-delete {
    background: #dc2626;
    color: white;
}

.action-btn-small.btn-delete:hover {
    background: #b91c1c;
}

.action-btn-small.btn-hide {
    background: #f59e0b;
    color: white;
}

.action-btn-small.btn-hide:hover {
    background: #d97706;
}

.action-btn-small.btn-show {
    background: #6b7280;
    color: white;
}

.action-btn-small.btn-show:hover {
    background: #4b5563;
}

/* Estilo para filas omitidas (tachadas) */
.row-omitted {
    text-decoration: line-through;
    opacity: 0.6;
    background-color: rgba(107, 114, 128, 0.1);
}

/* Excluir botones del tachado */
.row-omitted button,
.row-omitted .action-btn-small {
    text-decoration: none !important;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

@media (max-width: 768px) {
    .expense-form-grid {
        grid-template-columns: 1fr;
    }
    
    .expense-form-actions {
        flex-direction: column;
    }
    
    .action-button {
        width: 100%;
    }
    
    .view-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-actions {
        flex-direction: column;
    }
}



.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ====== COMPONENTES GLASS MORPHISM ====== */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.glass:hover {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

.transparente {
    padding: 30px;
    margin: 20px 0;
}

/* ====== ADMIN PANEL STYLES ====== */
.admin-header {
    background: linear-gradient(135deg, #525252ff, #3b3b3bff);
    padding: 20px 0;
    margin-bottom: 30px;
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.admin-nav h1 {
    color: white;
    margin: 0;
    font-size: 24px;
}

.admin-nav .user-info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}



.admin-nav .user-info a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.admin-nav .user-info a:hover {
    color: white;
}

/* ====== ESTADÍSTICAS ====== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #ef4444;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

.currency-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.currency-stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.currency-stat .amount {
    font-weight: bold;
    font-size: 14px;
}

.currency-stat .currency {
    font-size: 12px;
    opacity: 0.8;
}

/* ====== TABLA ADMIN ====== */
.table-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.search-box .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.budget-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: 15px;
    overflow: hidden;
}

.budget-table th {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.budget-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f1f1;
    font-size: 14px;
}

.budget-table tbody tr:hover {
    background: rgba(239, 68, 68, 0.05);
    transform: scale(1.001);
    transition: all 0.2s ease;
}

.budget-table tbody tr:last-child td {
    border-bottom: none;
}

.budget-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.client-info {
    color: #666;
    font-size: 12px;
}

.budget-id {
    font-family: monospace;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.budget-id:hover {
    background: #e9ecef;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #d1fae5;
    color: #059669;
}

.status-expired {
    background: #fee2e2;
    color: #dc2626;
}

.currency-totals {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.currency-total {
    font-size: 12px;
    font-weight: bold;
}

.currency-total.ars { color: #059669; }
.currency-total.usd { color: #3b82f6; }
.currency-total.eur { color: #8b5cf6; }

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-view {
    background: rgba(128, 128, 128, 0.5);
    color: #666;
}

.btn-edit {
    background: #10b981;
    color: white;
}

.btn-delete {
    background: #ef4444;
    color: white;
}

.btn-copy {
    background: #8b5cf6;
    color: white;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #333;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 10px;
}

.pagination a,
.pagination span {
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination a {
    background: rgba(255, 255, 255, 0.2);
    color: #333;
}

.pagination a:hover {
    background: #ef4444;
    color: white;
}

.pagination .current {
    background: #ef4444;
    color: white;
}

/* ====== FORMULARIOS ====== */
.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h1 {
    color: #ef4444;
    margin-bottom: 10px;
}

.form-header .breadcrumb {
    color: #666;
    font-size: 14px;
}

.form-header .breadcrumb a {
    color: #ef4444;
    text-decoration: none;
}

.form-section {
    margin: 40px 0;
}

.form-section-title {
    background: #6d6d6d;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: bold;
    margin-bottom: 25px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group label .required {
    color: #ef4444;
    margin-left: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ef4444;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.file-upload {
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 100%;
}

.file-upload input[type="file"] {
    position: absolute;
    left: -9999px;
}

.file-upload-label {
    display: block;
    padding: 12px 15px;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    text-align: center;
    background: #f8fafc;
    color: #64748b;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload:hover .file-upload-label {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.file-preview {
    margin-top: 10px;
    text-align: center;
}

.file-preview img {
    max-width: 150px;
    max-height: 100px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

/* ====== COMPONENTES FORM ====== */
.components-container {
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 20px;
    background: #f8fafc;
}

.component-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    position: relative;
}

.component-item .remove-component {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.component-header {
    font-weight: bold;
    color: #ef4444;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #fecaca;
}

.component-amount-currency {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
}

.currency-select {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
}

.add-component {
    width: 100%;
    padding: 15px;
    border: 2px dashed #10b981;
    background: rgba(16, 185, 129, 0.05);
    color: #10b981;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-component:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #059669;
}

.total-preview {
    background: #f59e0b;
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin: 20px 0;
    font-size: 16px;
    font-weight: bold;
}

.form-actions {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-top: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-actions .btn {
    margin: 0 10px;
    min-width: 150px;
}

.btn-save {
    background: #059669;
}

.char-counter {
    font-size: 12px;
    color: #64748b;
    text-align: right;
    margin-top: 4px;
}

.validation-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #ef4444;
    width: 0%;
    transition: width 0.5s ease;
}

/* ====== NOTIFICACIONES ====== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.notification-success {
    background: #10b981;
}

.notification-error {
    background: #ef4444;
}

.notification-info {
    background: #3b82f6;
}

/* ====== HEADER VENCIDO ====== */
.expired-header {
    background: linear-gradient(135deg, #ff4757, #c44569);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
    animation: pulseRed 2s infinite;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

@keyframes pulseRed {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* ====== HEADER DEL PRESUPUESTO ====== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 30px;
    flex-wrap: wrap;
}

.logo-section {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.client-section {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.budget-title {
    text-align: center;
    flex: 2;
    min-width: 300px;
}
.budget-title-lista {
    flex: 2;
    min-width: 300px;
    font-weight: 800;
}

.budget-title h1 {
    color: #ef4444;
    font-size: 28px;
    font-weight: 700;
    margin-top: 25px;
}

.budget-title h2 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.logo-placeholder {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: gray;
    font-size: 12px;
    text-align: right;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.logo-container {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.logoemisor-container {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}
.logologin {
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 10px;
    object-fit: contain;
}

.logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.logoemisor-container img {
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
}

.budget-number {
    background: #878787;
    color: white;
    padding: 8px 15px;
    border-radius: 10px;
    font-weight: bold;
    display: inline-block;
    margin: 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.budget-date {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.company-info,
.client-info {
    margin-top: 15px;
    font-size: 12px;
    color: #555;
    line-height: 1.4;
}

/* ====== SECCIONES ====== */
.section {
    margin: 40px 0;
}

.section-title {
    color: #b7b7b7;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #a6a6a6;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    border-radius: 2px;
}

/* ====== DESCRIPCIÓN DEL PROYECTO ====== */
.project-description {
    margin: 25px 0;
}

.project-item {
    margin-bottom: 25px;
}

.project-item h3 {
    color: #f14e4e;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.project-item h4 {
    color: #f14e4e;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-item p {
    color: #555;
    line-height: 1.6;
    text-align: left;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 25px 0;
}

/* ====== COMPONENTES ECONÓMICOS ====== */
.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    align-items: start;
    margin: 25px 0;
}

.component-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.component-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #f14e4e;
    border-radius: 12px 12px 0 0;
}

.component-box:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.25);
}

.component-currency-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(239, 68, 68, 0.8);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.component-currency-badge.ars { background: rgba(5, 150, 105, 0.8); }
.component-currency-badge.usd { background: rgba(59, 130, 246, 0.8); }
.component-currency-badge.eur { background: rgba(139, 92, 246, 0.8); }

.component-title {
    font-weight: bold;
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    padding-right: 60px;
}

.component-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.component-amount {
    font-size: 20px;
    font-weight: bold;
    color: #4a4a4a;
    text-align: right;
    padding: 15px;
    border-top: 1px solid rgba(201, 201, 201, 0.3);
    background: rgba(255, 255, 255, 0.1);
    margin: -20px -20px -20px -20px;
    margin-top: 20px;
    border-radius: 0 0 12px 12px;
    font-family: 'Montserrat', monospace;
}

.component-amount.negative {
    color: #ef4444;
}

/* ====== TOTALES POR MONEDA ====== */
.currency-totals-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid rgba(239, 68, 68, 0.2);
    margin: 20px 0;
}

.currency-totals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.currency-total-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.currency-total-card.ars {
    border-left: 4px solid #059669;
}

.currency-total-card.usd {
    border-left: 4px solid #3b82f6;
}

.currency-total-card.eur {
    border-left: 4px solid #8b5cf6;
}

.currency-name {
    font-size: 14px;
    font-weight: bold;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.currency-amount {
    font-size: 28px;
    font-weight: bold;
    color: #414141;
}

.currency-code {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.total-section-multicurrency {
    background:#d6d6d6;
    color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
}

.total-section-multicurrency .section-title {
    color: rgb(100, 100, 100);
    margin-bottom: 20px;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hidden-currency {
    display: none;
}

/* ====== SECCIÓN TOTAL LEGACY ====== */
.total-section {
    background: #8f8f8f;
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.total-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.total-section div:first-child {
    font-size: 16px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

.total-amount {
    font-size: 32px;
    font-weight: bold;
    margin: 15px 0;
    font-family: 'Montserrat', monospace;
}

/* ====== CONDICIONES COMERCIALES ====== */
.commercial-terms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.term-box {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 5px;
    border-left: 5px solid #f14e4e;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.term-box:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.2);
}

.term-title {
    font-weight: bold;
    color: #f14e4e;
    margin-bottom: 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.term-box div:last-child {
    color: #555;
    line-height: 1.5;
}

/* ====== INFORMACIÓN DE VIGENCIA ====== */
.validity-info {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 5px;
    padding: 20px;
    margin: 25px 0;
    text-align: center;
    transition: all 0.3s ease;
}

.validity-expired {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    animation: pulseRed 2s infinite;
}

/* ====== BOTONES ====== */
.btn {
    background: #f14e4e;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    margin: 10px 5px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(128, 128, 128, 0.5);
    color: #666;
    border: 2px solid rgba(128, 128, 128, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(128, 128, 128, 0.6);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    color: #555;
}

.btn-pay {
    background: #d97706;
    color: white;
    border: 2px solid #d97706;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.btn-pay:hover {
    background: #b45309;
    border-color: #b45309;
    box-shadow: 0 15px 35px rgba(217, 119, 6, 0.4);
    transform: translateY(-2px);
}

/* ====== FORMULARIOS BASE ====== */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}
.btn-share {
    background: #8c8c8c;
    color: white;
}

.botones-container {
  display: flex; /* Habilita Flexbox */
  justify-content: center; /* Centra los divs horizontalmente */
  align-items: center; /* Centra los divs verticalmente (útil si tienen diferentes alturas) */
  gap: 10px; /* Agrega un espacio de 10px entre cada div */
  padding: 10px;
}


/* ====== FORMULARIO DE ACCESO ====== */
.access-form {
    max-width: 450px;
    margin: 50px auto;
    text-align: center;
}
        .login-header {
            text-align: center;
            margin-bottom: 30px;
        }
        
        .login-header h1 {
            color: white;
            font-size: 24px;
            margin-bottom: 10px;
        }

.login-header h2 {
    color: gray;
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 700;
}

.login-header p {
    color: gray;
    margin-bottom: 30px;
    font-size: 14px;
}

.input-help {
    font-size: 12px;
    color: gray;
    margin-top: 5px;
}

        .login-container {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(15px);
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.2);
            width: 100%;
            max-width: 400px;
            
        }
        
        .login-header {
            text-align: center;
            margin-bottom: 30px;
        }
        
        .login-header h1 {
            color:gray;
            font-size: 24px;
            margin-bottom: 10px;
        }
        
        .login-header p {
            color: gray;
            font-size: 14px;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            color: gray;
            margin-bottom: 8px;
            font-weight: 500;
        }
        
        .form-group input {
            width: 100%;
            padding: 15px;
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.1);
            color:gray;
            font-size: 16px;
            transition: all 0.3s ease;
            box-sizing: border-box;
        }
        
        .form-group input:focus {
            outline: none;
            border-color: #ef4444;
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
            background: rgba(255, 255, 255, 0.15);
        }
        
        .form-group input::placeholder {
            color: rgba(131, 131, 131, 0.6);
        }

        /* Toggle Switch Styles */
        .toggle-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            margin-top: 30px;
        }

        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 34px;
            margin: 0;
        }

        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: 0.4s;
            border-radius: 34px;
        }

        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 26px;
            width: 26px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: 0.4s;
            border-radius: 50%;
        }

        .toggle-switch input:checked + .toggle-slider {
            background-color: #10b981;
        }

        .toggle-switch input:focus + .toggle-slider {
            box-shadow: 0 0 1px #10b981;
        }

        .toggle-switch input:checked + .toggle-slider:before {
            transform: translateX(26px);
        }

        .toggle-label {
            flex: 1;
        }

        .toggle-label span {
            font-weight: 500;
            color: #333;
            font-size: 16px;
        }
        
        .btn-login {
            width: 100%;
            padding: 15px;
            background: linear-gradient(135deg, #ef4444, #dc2626);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-bottom: 20px;
        }
        
        .btn-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
        }
        
        .error-message {
            background: rgba(239, 68, 68, 0.2);
            border: 1px solid rgba(239, 68, 68, 0.5);
            color: white;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 20px;
            text-align: center;
            font-size: 14px;
        }
        
        .back-link {
            text-align: center;
            margin-top: 20px;
        }
        
        .back-link a {
            color: gray;
            text-decoration: none;
            font-size: 14px;
            transition: color 0.3s ease;
        }
        
        .back-link a:hover {
            color:rgb(41, 41, 41);
        }
        
        .security-info {
            margin-top: 30px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            font-size: 12px;
            color: gray;
        }
        
        .password-strength {
            margin-top: 5px;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.6);
        }
        
        .login-attempts {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(255, 255, 255, 0.1);
            padding: 10px 15px;
            border-radius: 8px;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.8);
        }

        /* Estilos para adjuntos múltiples */
        .attachments-preview {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
            margin-top: 15px;
            max-height: 300px;
            overflow-y: auto;
            padding: 10px 0;
        }
        
        .attachment-item {
            background: white;
            border-radius: 8px;
            padding: 15px;
            border: 2px solid #e2e8f0;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            transition: all 0.3s ease;
            position: relative;
        }
        
        .attachment-item:hover {
            border-color: #ef4444;
            box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1);
        }
        
        .attachment-item img {
            max-width: 100%;
            max-height: 80px;
            object-fit: cover;
            border-radius: 4px;
            margin-bottom: 10px;
        }
        
        .file-icon {
            font-size: 40px;
            margin-bottom: 10px;
            opacity: 0.7;
        }
        
        .attachment-info {
            width: 100%;
        }
        
        .attachment-name {
            font-size: 12px;
            font-weight: bold;
            color: #333;
            margin-bottom: 4px;
            word-break: break-word;
        }
        
        .attachment-size {
            font-size: 11px;
            color: #666;
        }
        
        .remove-attachment {
            position: absolute;
            top: 5px;
            right: 5px;
            background: #ef4444;
            color: white;
            border: none;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            cursor: pointer;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .attachment-item:hover .remove-attachment {
            opacity: 1;
        }
        
        @media (max-width: 768px) {
            .attachments-preview {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
                gap: 10px;
            }
        }

        .existing-attachments {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    background: #f8fafc;
}

.existing-attachment {
    position: relative;
}

.existing-attachment .remove-attachment {
    background: #ef4444;
    opacity: 1;
}

.existing-attachment:hover .remove-attachment {
    opacity: 1;
}

.delete-notice {
    animation: pulse 1s infinite;
}

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

.attachment-item.marked-for-deletion {
    opacity: 0.5;
    border: 2px dashed #ef4444 !important;
}

.attachment-item.marked-for-deletion .remove-attachment {
    background: #10b981;
}

/* Separación visual entre adjuntos existentes y nuevos */
#newAttachmentsPreview {
    border-top: 1px dashed #cbd5e0;
    padding-top: 15px;
}

#newAttachmentsPreview:empty {
    border-top: none;
    padding-top: 0;
}

/* ====== ESTILOS PARA ADJUNTOS DEL PROYECTO (INDEX.PHP) ====== */
.project-attachments {
    margin-top: 30px;
}

.project-attachments h3 {
    color: #ef4444;
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-images {
    margin-bottom: 30px;
}

.image-row {
    display: grid;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: center;
}

.image-row.columns-1 {
    grid-template-columns: 1fr;
    max-width: 60%;
    margin: 0 auto 15px auto;
}

.image-row.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.image-row.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.image-row.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.image-item {
    text-align: center;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-item img:hover {
    transform: scale(1.02);
}

.image-caption {
    padding: 12px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
    word-break: break-word;
}

.project-files {
    margin-top: 20px;
}

.project-files h4 {
    color: #666;
    font-size: 16px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.files-list {
    display: grid;
    gap: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.file-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.file-icon {
    font-size: 24px;
    margin-right: 15px;
    min-width: 40px;
    text-align: center;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    word-break: break-word;
}

.file-size {
    font-size: 12px;
    color: #666;
}

.file-download {
    font-size: 20px;
    text-decoration: none;
    color: #ef4444;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.file-download:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

/* Modal para imágenes */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.modal-download {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-content:hover .modal-download {
    opacity: 1;
}

.modal-download:hover {
    background: rgba(239, 68, 68, 0.9);
    transform: scale(1.05);
}

.period-text {
    color: #ef4444;
    font-weight: normal;
    margin-left: 8px;
    font-size: 16px;
}

.tax-text {
    color: #666;
    font-weight: normal;
    margin-left: 4px;
    font-size: 14px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.8);
    transform: scale(1.1);
}

/* Responsive para adjuntos del proyecto */
@media (max-width: 768px) {
    .image-row.columns-1 {
        max-width: 100%;
    }
    
    .image-row.columns-2,
    .image-row.columns-3,
    .image-row.columns-4 {
        grid-template-columns: 1fr;
    }
    
    .image-item img {
        height: 250px;
    }
    
    .file-item {
        padding: 12px;
    }
    
    .file-icon {
        font-size: 20px;
        margin-right: 12px;
        min-width: 35px;
    }
}

@media print {
    .project-attachments {
        page-break-inside: avoid;
    }
    
    .image-item {
        break-inside: avoid;
        margin-bottom: 10px;
    }
    
    .file-download {
        display: none;
    }
}

/* ====== ESTILOS PARA FORMULARIO DE PRESUPUESTO (BUDGET_FORM.PHP) ====== */
.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h1 {
    color: #ef4444;
    margin-bottom: 10px;
}

.form-header .breadcrumb {
    color: #666;
    font-size: 14px;
}

.form-header .breadcrumb a {
    color: #ef4444;
    text-decoration: none;
}

.form-section {
    margin: 40px 0;
}

.form-section-title {
    background: #6d6d6d;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: bold;
    margin-bottom: 25px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group label .required {
    color: #ef4444;
    margin-left: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    color: #1a1a1a;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ef4444;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.file-upload {
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 100%;
}

.file-upload input[type="file"] {
    position: absolute;
    left: -9999px;
}

.file-upload-label {
    display: block;
    padding: 12px 15px;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    text-align: center;
    background: #f8fafc;
    color: #64748b;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload:hover .file-upload-label {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.file-preview {
    margin-top: 10px;
    text-align: center;
}

.file-preview img {
    max-width: 150px;
    max-height: 100px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

.attachments-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.attachment-item {
    position: relative;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.attachment-item:hover {
    border-color: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.attachment-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.attachment-info {
    margin-top: 10px;
}

.attachment-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    word-break: break-word;
    line-height: 1.2;
}

.attachment-size {
    font-size: 11px;
    color: #666;
}

.remove-attachment {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.remove-attachment:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.file-upload-container {
    margin-bottom: 20px;
}

.components-container {
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 20px;
    background: #f8fafc;
}

.component-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    position: relative;
}

.component-item .remove-component {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.component-header {
    font-weight: bold;
    color: #ef4444;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #fecaca;
}

.component-amount-currency {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
}

.currency-select {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
}

.add-component {
    width: 100%;
    padding: 15px;
    border: 2px dashed #10b981;
    background: rgba(16, 185, 129, 0.05);
    color: #10b981;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-component:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #059669;
}

.total-preview {
    background: #f59e0b;
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin: 20px 0;
    font-size: 16px;
    font-weight: bold;
}

.currency-totals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.currency-total {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.form-actions {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-top: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-actions .btn {
    margin: 0 10px;
    min-width: 150px;
}

.btn-save {
    background: #059669;
}

.char-counter {
    font-size: 12px;
    color: #64748b;
    text-align: right;
    margin-top: 4px;
}

.validation-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #ef4444;
    width: 0%;
    transition: width 0.5s ease;
}

/* ====== ESTILOS PARA IMPRESIÓN (PRINT STYLES) ====== */
@media print {
    .no-print { 
        display: none !important; 
    }
    
    body { 
        background: white !important; 
        color: black !important; 
    }
    
    .glass { 
        background: white !important; 
        border: 1px solid #ddd !important; 
        box-shadow: none !important; 
    }
    
    .expired-header { 
        background: #ff4757 !important; 
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* ====== ESTILOS PARA PANEL DE ADMINISTRACIÓN (ADMIN_PANEL.PHP) ====== */
.admin-header {
    background: #6b7280;
    padding: 20px 0;
    margin-bottom: 30px;
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.admin-nav h1 {
    color: white;
    margin: 0;
    font-size: 24px;
}

.admin-nav .user-info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #ef4444;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

.currency-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.currency-stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.currency-stat .amount {
    font-weight: bold;
    font-size: 14px;
}

.currency-stat .currency {
    font-size: 12px;
    opacity: 0.8;
}

.table-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.search-box .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.budget-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: 15px;
    overflow: hidden;
}

.budget-table th {
    background: #6b7280;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.budget-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f1f1;
    font-size: 14px;
}

.budget-table tbody tr:hover {
    background: rgba(239, 68, 68, 0.05);
    transform: scale(1.001);
    transition: all 0.2s ease;
}

.budget-table tbody tr:last-child td {
    border-bottom: none;
}

.budget-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.client-info {
    color: #666;
    font-size: 12px;
}

.budget-id {
    font-family: monospace;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.budget-id:hover {
    background: #e9ecef;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #d1fae5;
    color: #059669;
}

.status-expired {
    background: #fee2e2;
    color: #dc2626;
}

.currency-totals {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.currency-total {
    font-size: 12px;
    font-weight: bold;
}

.currency-total.ars { color: #059669; }
.currency-total.usd { color: #3b82f6; }
.currency-total.eur { color: #8b5cf6; }

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-view {
    background: rgba(128, 128, 128, 0.5);
    color: #666;
}

.btn-edit {
    background: #10b981;
    color: white;
}

.btn-delete {
    background: #ef4444;
    color: white;
}

.btn-copy {
    background: #8b5cf6;
    color: white;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #333;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 10px;
}

.pagination a,
.pagination span {
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination a {
    background: rgba(255, 255, 255, 0.2);
    color: #333;
}

.pagination a:hover {
    background: #ef4444;
    color: white;
}

.pagination .current {
    background: #ef4444;
    color: white;
}

/* ====== ESTILOS PARA LOGIN DE ADMINISTRADOR (ADMIN_LOGIN.PHP) ====== */
body.admin-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    /* Mantener el fondo heredado del body base */
}

/* ====== ESTILOS ADICIONALES PARA ELEMENTOS INLINE ====== */
.logo-image {
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
}

.logo-image-small {
    max-width: 150px;
    max-height: 100px;
    object-fit: contain;
}

.access-key-input {
    text-transform: uppercase;
    text-align: center;
    font-family: monospace;
    font-size: 18px;
    letter-spacing: 2px;
}

.admin-separator {
    margin: 30px 0;
    border: 1px solid rgba(255,255,255,0.2);
}

.text-center {
    text-align: center;
}

.expired-text {
    color: #ef4444;
    font-weight: bold;
}

.currency-info-text {
    color: #666;
    font-size: 14px;
    text-align: center;
}

.logo-preview-container {
    position: relative;
    display: inline-block;
}

.logo-preview-image {
    max-width: 150px;
    max-height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.remove-logo {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bullet-info {
    color: #666;
    display: block;
    margin-top: 5px;
}

.bullet-copy {
    max-width: 3ch;
    text-align: center;
}

.highlight-symbol {
    font-weight: bold;
    color: #f14e4e;
}

.admin-logout-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}


/* ====== ESTILOS EXTRA�DOS DE INLINE STYLES ====== */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
}

.page-title {
    font-size: 18px;
    color: #666;
    font-weight: 400;
}

.company-name {
    font-size: 18px;
    color: #666;
    font-weight: 600;
}

.home-link {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    font-size: 10px;
}

.home-link .material-icons {
    font-size: 14px;
}

.home-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    text-decoration: none;
}

.page-footer {
    margin-top: auto;
    padding: 15px 0;
    text-align: center;
    font-size: 12px;
    color: #777;
}

.nav-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.nav-tab {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.nav-tab:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.nav-tab.active {
    background: rgba(107, 114, 128, 0.8);
    color: white;
}

.section-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-box-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}


/* Estilos adicionales extra�dos */
.section-title.small { font-size: 18px; }

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.view-header .section-title { margin: 0; }

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.material-icons.small { font-size: 16px; }

.material-icons.medium { font-size: 18px; }

.material-icons.vertical-middle { vertical-align: middle; margin-right: 8px; }


/* ====== ESTILOS PARA P�GINA PRINCIPAL CON 4 BOTONES ====== */

.main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 100px 10px 30px 10px;
    padding: 0;
}

.main-button { aspect-ratio: 1; width: 100%; max-width: 140px; margin: 0 auto; border: none; border-radius: 12px; background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)); backdrop-filter: blur(20px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-decoration: none; position: relative; overflow: hidden; }

.main-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(239, 68, 68, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-button:hover::before {
    opacity: 1;
}

.main-button:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.main-button:active {
    transform: translateY(-4px) scale(1.01);
}

.main-button-icon { font-size: 32px !important; color: #333333; }

.main-button:hover .main-button-icon { font-size: 32px !important; color: #333333; }

.main-button-text { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.2; color: #333333; }

.main-button:hover .main-button-text { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.2; color: #333333; }

/* Botones deshabilitados en la home (sin link real) */
a.main-button[href="#"] .main-button-icon,
a.main-button[href="#"] .main-button-text {
    color: rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
        margin: 50px 5px 20px 5px;
        padding: 0;
    }
    
    .main-button { aspect-ratio: 1; width: 100%; max-width: 140px; margin: 0 auto; border: none; border-radius: 12px; background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)); backdrop-filter: blur(20px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-decoration: none; position: relative; overflow: hidden; }
    
    .main-button-icon { font-size: 32px !important; color: #333333; }
    
    .main-button-text { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.2; color: #333333; }
}

@media (max-width: 480px) {
    .main-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 8px;
        margin: 30px 3px 15px 3px;
    }
    
    .main-button { aspect-ratio: 1; width: 100%; max-width: 140px; margin: 0 auto; border: none; border-radius: 12px; background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)); backdrop-filter: blur(20px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-decoration: none; position: relative; overflow: hidden; }
    
    .main-button-icon { font-size: 32px !important; color: #333333; }
    
    .main-button-text { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.2; color: #333333; }
}




        .page-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 0;
            margin-bottom: 30px;
        }
        
        .page-title {
            font-size: 18px;
            color: #666;
            font-weight: 400;
        }
        
        .company-name {
            font-size: 18px;
            color: #666;
            font-weight: 600;
        }
        
        .nav-tabs {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-bottom: 40px;
        }
        
        .nav-tab {
            padding: 12px 30px;
            border: none;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.2);
            color: #666;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
        }
        
        .nav-tab:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }
        
        .nav-tab.active {
            background: rgba(107, 114, 128, 0.8);
            color: white;
        }
        
        .section-title {
            font-size: 24px;
            color: #333;
            margin-bottom: 30px;
            font-weight: 600;
        }
        
        .form-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .stats-row {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .stat-box {
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }
        
        .stat-box-label {
            font-size: 12px;
            color: #666;
            text-transform: uppercase;
            margin-bottom: 10px;
            font-weight: 600;
        }
        
        .stat-box-value {
            font-size: 24px;
            color: #333;
            font-weight: 700;
        }
        
        .payment-section {
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 30px;
            margin-bottom: 30px;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .payment-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-bottom: 20px;
        }
        
        .input-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #333;
            font-size: 14px;
        }
        
        .input-group input, .input-group select {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.9);
            color: #1a1a1a;
            font-size: 14px;
            transition: all 0.3s ease;
            box-sizing: border-box;
        }
        
        .input-group input:focus, .input-group select:focus {
            outline: none;
            border-color: #6b7280;
            box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
        }
        
        .total-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            background: rgba(0, 0, 0, 0.05);
            border-radius: 10px;
            margin-top: 20px;
        }

        .total-label {
            font-size: 16px;
            font-weight: 600;
            color: #333;
        }

        .total-value {
            font-size: 24px;
            font-weight: 700;
            color: #333;
        }

        /* Estilos específicos para totales de comisiones e ingresos */
        .total-value.total-comision {
            color: #b91c1c; /* rojo oscuro */
        }

        .total-descuento {
            color: #ea580c;
        }

        .total-value.total-ingreso {
            color: #166534; /* verde oscuro */
        }
        
        .commission-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
        }
        
        .commission-label {
            font-size: 14px;
            color: #666;
        }
        
        .commission-value {
            font-size: 16px;
            font-weight: 700;
            color: #333;
        }
        
        /* Estilos para layout horizontal de cobros y totales */
        .cobros-horizontal {
            display: flex;
            gap: 20px;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }
        
        .cobro-box {
            flex: 1;
            min-width: 200px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 20px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
        }
        
        .cobro-box:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }
        
        .cobro-label {
            display: block;
            font-size: 14px;
            font-weight: 600;
            color: #333;
            margin-bottom: 10px;
            text-transform: uppercase;
        }
        
        .cobro-value {
            display: block;
            font-size: 20px;
            font-weight: 700;
            color: #333;
        }
        
        .totales-horizontal {
            display: flex;
            gap: 20px;
            margin-top: 20px;
            flex-wrap: wrap;
        }
        
        .total-box {
            flex: 1;
            min-width: 250px;
            background: rgba(0, 0, 0, 0.05);
            border-radius: 10px;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        /* Estilos para totales finales horizontales */
        .totales-finales-horizontal {
            display: flex;
            gap: 20px;
            margin-top: 20px;
            flex-wrap: wrap;
        }
        
        .total-final-box {
            flex: 1;
            min-width: 200px;
            background: rgba(0, 0, 0, 0.05);
            border-radius: 10px;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .total-final-box .total-label {
            font-size: 16px;
            font-weight: 600;
            color: #333;
        }
        
        .total-final-box .total-value {
            font-size: 24px;
            font-weight: 700;
        }
        
        /* Colores específicos para cada tipo de total */
        .total-final-box .total-value.total-ingreso {
            color: #166534; /* verde oscuro */
        }
        
        .total-final-box .total-value.total-descuento {
            color: #ea580c; /* naranja */
        }
        
        .total-final-box .total-value.total-comision {
            color: #b91c1c; /* rojo oscuro */
        }
        
        /* Estilos para información de cobrador y supervisor */
        .cobrador-info {
            margin-bottom: 30px;
        }
        
        .cobrador-nombre {
            color: #333333;
            font-size: 18px;
            font-weight: bold;
            margin: 0 0 5px 0;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .supervisor-nombre {
            color: #666666;
            font-size: 14px;
            font-weight: 500;
            margin: 0;
            text-transform: capitalize;
        }
        
        /* Estilos para detalles de comisiones */
        .total-label-with-detail {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }
        
        .commission-percentage {
            font-size: 11px;
            color: #999999;
            font-style: italic;
            font-weight: 400;
            margin-top: 3px;
        }
        
        /* Estilos para header de totales con iconos de editar */
        .total-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
        }
        
        .edit-icon-btn {
            background: none;
            border: none;
            color: #b7b7b7;
            cursor: pointer;
            padding: 4px;
            border-radius: 4px;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .edit-icon-btn:hover {
            background: rgba(183, 183, 183, 0.1);
            color: #ffffff;
            transform: scale(1.1);
        }
        
        .edit-icon-btn .material-icons {
            font-size: 16px;
        }
        
        /* Estilo especial para iconos de editar naranjas */
        .orange-edit {
            color: #ea580c !important;
            margin-left: 8px;
            background: rgba(234, 88, 12, 0.1) !important;
            border: 1px solid rgba(234, 88, 12, 0.2) !important;
        }
        
        .orange-edit:hover {
            background: rgba(234, 88, 12, 0.2) !important;
            color: #fb923c !important;
            border: 1px solid rgba(234, 88, 12, 0.3) !important;
        }
        
        /* Estilos para modales mejorados */
        .modal-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .modal-input {
            width: 100% !important;
            text-align: center !important;
            font-size: 16px !important;
            padding: 12px !important;
            min-width: 200px !important;
        }
        
        .modal-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
        }
        
        .modal-buttons .action-button {
            min-width: 140px;
        }
        
        /* Estilos para labels en modales */
        .modal-grid .input-group label {
            color: #ffffff !important;
        }
        
        /* Estilos para cajas de totales inline (sin animación hover) */
        
        .total-inline-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
        }
        
        .total-inline-content .total-label {
            display: flex;
            align-items: center;
            flex: 1;
        }
        
        .total-inline-content .total-value {
            margin-left: 20px;
            font-weight: bold;
        }
        
        /* Estilos para el cuadro de total a pagar */
        .total-pagar-box {
            background: rgba(16, 185, 129, 0.15) !important;
            border: 1px solid rgba(16, 185, 129, 0.3) !important;
            box-shadow: 0 4px 15px rgba(5, 150, 105, 0.1) !important;
            width: 100% !important;
            max-width: none !important;
            margin: 0 !important;
        }
        
        .total-pagar-box .total-label {
            color: #333333 !important;
            font-weight: bold !important;
        }
        
        .total-pagar-box .total-value {
            color: #333333 !important;
            font-weight: bold !important;
            font-size: 24px !important;
            line-height: 1.2 !important;
        }
        
        /* Estilos para layout horizontal de secciones */
        .sections-horizontal {
            display: flex;
            gap: 30px;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }
        
        .section-half {
            flex: 1;
            min-width: 400px;
        }
        
        .section-half .payment-grid {
            grid-template-columns: repeat(3, 1fr);
        }
        
        /* Responsive design */
        @media (max-width: 1024px) {
            .sections-horizontal {
                flex-direction: column;
            }
            
            .section-half {
                min-width: auto;
            }
        }
        
        @media (max-width: 768px) {
            .cobros-horizontal,
            .totales-horizontal,
            .totales-finales-horizontal {
                flex-direction: column;
            }
            
            .cobro-box,
            .total-box,
            .total-final-box {
                min-width: auto;
            }
            
            .section-half .payment-grid {
                grid-template-columns: 1fr;
            }
        }
        
        .action-button {
            padding: 12px 30px;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .btn-primary {
            background: #10b981;
            color: white;
        }
        
        .btn-primary:hover {
            background: #059669;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
        }
        
        .button-row {
            display: flex;
            justify-content: center;
            margin-top: 30px;
        }
        
        .table-container {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }
        
        .data-table {
            width: 100%;
            border-collapse: collapse;
        }
        
        .data-table thead {
            background: #6b7280;
            color: white;
        }
        
        .data-table th {
            padding: 15px;
            text-align: left;
            font-weight: 600;
            font-size: 12px;
            text-transform: uppercase;
        }
        
        .data-table td {
            padding: 15px;
            border-bottom: 1px solid #f1f1f1;
            font-size: 14px;
            color: #333;
        }
        
        .data-table tbody tr:hover {
            background: rgba(107, 114, 128, 0.05);
        }
        
        .status-badge {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: bold;
            text-transform: uppercase;
        }
        
        .status-confirmed {
            background: #d1fae5;
            color: #059669;
        }
        
        .status-pending {
            background: #fef3c7;
            color: #d97706;
        }
        
        .action-btn-small {
            padding: 6px 12px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            text-decoration: none;
        }
        
        .btn-view {
            background: rgba(128, 128, 128, 0.5);
            color: #666;
        }
        
        .btn-confirm {
            background: #d97706;
            color: white;
        }
        
        .btn-view:hover {
            background: rgba(128, 128, 128, 0.6);
            color: #555;
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }
        
        .btn-confirm:hover {
            background: #b45309;
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(217, 119, 6, 0.3);
        }
        
        .top-collectors {
            margin-top: 30px;
        }
        
        .collector-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            margin-bottom: 10px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            transition: all 0.3s ease;
        }
        
        .collector-item:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateX(5px);
        }
        
        .collector-name {
            font-weight: 600;
            color: #333;
            font-size: 14px;
        }
        
        .collector-supervisor {
            font-size: 12px;
            color: #666;
        }
        
        .collector-amount {
            font-size: 16px;
            font-weight: 700;
            color: #10b981;
        }
        
        .payment-breakdown {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .breakdown-item {
            text-align: center;
            padding: 15px;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 10px;
        }
        
        .breakdown-label {
            font-size: 12px;
            color: #666;
            margin-bottom: 5px;
        }
        
        .breakdown-value {
            font-size: 18px;
            font-weight: 700;
            color: #333;
        }
        
        .breakdown-percent {
            font-size: 11px;
            color: #999;
        }
        
        .export-button {
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.2);
            color: #666;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        
        .export-button:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }
        
        .filter-dropdown {
            padding: 10px 15px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 8px;
            background: #f1f1f1;
            color: #1a1a1a;
            font-size: 14px;
            cursor: pointer;
        }
    

/* ===== ESTILOS PARA CAJA COBRANZAS ===== */

/* Estilos para el informe diario con cajitas */
.daily-report {
    width: 100%;
}

.report-date-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 0;
}

.report-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.report-value {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.report-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 15px 0;
}

/* Cajitas principales del informe */
.report-boxes-main {
    display: flex !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
}

.report-boxes-payment {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 25px !important;
    width: 100% !important;
}

.report-box {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    text-align: center !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    flex: 1 !important;
    display: block !important;
    box-sizing: border-box !important;
}

.report-box-label {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-box-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

/* Colores específicos para cada tipo de caja */
/* Cajitas principales - Verde */
.report-box-total {
    border-left: 4px solid #10b981 !important;
}

.report-box-collectors {
    border-left: 4px solid #10b981 !important;
}

/* Cajitas de métodos de pago - Azul */
.report-box-qr {
    border-left: 4px solid #3b82f6 !important;
}

.report-box-transfer {
    border-left: 4px solid #3b82f6 !important;
}

.report-box-cash {
    border-left: 4px solid #3b82f6 !important;
}

/* Cajitas de comisiones - Violeta */
.report-box-commission-micro {
    border-left: 4px solid #8b5cf6 !important;
}

.report-box-commission-products {
    border-left: 4px solid #8b5cf6 !important;
}

/* Cajitas de egresos - Naranja */
.report-box-egreso-qr {
    border-left: 4px solid #f59e0b !important;
}

.report-box-egreso-banco {
    border-left: 4px solid #f59e0b !important;
}

.report-box-egreso-efectivo {
    border-left: 4px solid #f59e0b !important;
}

/* Botones de compartir */
.report-share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-email {
    background: #6b7280;
    color: white;
}

.btn-email:hover {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

/* Estilos para arqueo de caja mejorado */
.bill-counter-container {
    width: 100%;
}

.bill-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bill-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: left;
}

.bill-input {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    height: 36px;
    box-sizing: border-box;
}

.bill-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.bill-total {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    text-align: right;
    background: rgba(16, 185, 129, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
}

.bill-row-total {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: center;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    padding: 20px;
}

.bill-total-label {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    text-align: left;
    text-transform: uppercase;
}

.bill-total-value {
    font-size: 20px;
    font-weight: 700;
    color: #10b981;
    text-align: right;
}

/* Distribución de ancho para secciones */
.sections-horizontal {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px;
    width: 100%;
    align-items: flex-start;
}

.section-half {
    flex-shrink: 0;
}

.section-half:first-child {
    flex: 0 0 35%;
    max-width: 35%;
}

.section-half:last-child {
    flex: 1;
    min-width: 0;
}

/* Responsive design para caja cobranzas */
@media (max-width: 768px) {
    .sections-horizontal {
        flex-direction: column !important;
    }
    
    .section-half,
    .section-half:first-child,
    .section-half:last-child {
        flex: 1;
        width: 100% !important;
    }
}

/* Estilos específicos para las cajas de ajustes */
.ajustes-horizontal {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px;
    width: 100%;
    align-items: flex-start;
}

.ajuste-box {
    flex: 1;
    width: 50%;
    max-width: 50%;
    min-width: 0;
}

/* Responsive design para cajas de ajustes */
@media (max-width: 768px) {
    .ajustes-horizontal {
        flex-direction: column !important;
    }
    
    .ajuste-box {
        flex: 1;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Estilos específicos para la sección de conciliaciones */
.conciliaciones-title {
    color: #8b5cf6 !important;
}

.conciliaciones-content {
    min-height: 60px;
    padding: 15px 0;
}

@media (max-width: 480px) {
    .report-boxes-main,
    .report-boxes-payment {
        flex-direction: column;
    }
    
    .report-share-buttons {
        flex-direction: column;
    }
    
    .bill-row {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }
    
    .bill-total {
        text-align: center;
    }
    
    .bill-row-total {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .bill-total-value {
        text-align: center;
    }
}

