    /* ==========================================
    SISTEMA DE GESTIÓN DE COBROS - ESTILOS GLOBALES
    ========================================== */

    /* Reset y Base */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        min-height: 100vh;
        padding: 20px;
    }

    body#login{
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
    }

    /* ==========================================
    HEADER GLOBAL
    ========================================== */

    .header {
        background: white;
        padding: 20px 30px;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        margin-bottom: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .header-left h1 {
        color: #667eea;
        font-size: 28px;
    }

    .header-left p {
        color: #666;
        margin-top: 5px;
    }

    .header-left a {
        color: #667eea;
        text-decoration: none;
        font-size: 14px;
        margin-top: 5px;
        display: inline-block;
    }

    .header-left a:hover {
        text-decoration: underline;
    }

    .header-right {
        text-align: right;
    }

    .user-info {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .user-badge {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 8px 15px;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 600;
    }

    .btn-logout {
        padding: 8px 20px;
        background: #e53e3e;
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 600;
        transition: all 0.3s;
    }

    .btn-logout:hover {
        background: #c53030;
    }

    /* ==========================================
    CARDS Y CONTENEDORES
    ========================================== */

    .card {
        background: white;
        border-radius: 10px;
        padding: 30px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        margin-bottom: 20px;
    }

    .card-title {
        font-size: 22px;
        color: #2d3748;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* ==========================================
    ALERTAS
    ========================================== */

    .alert {
        padding: 15px 20px;
        border-radius: 8px;
        margin-bottom: 20px;
        display: none;
    }

    .alert-success {
        background: #c6f6d5;
        color: #22543d;
        border-left: 4px solid #38a169;
    }

    .alert-error {
        background: #fed7d7;
        color: #742a2a;
        border-left: 4px solid #e53e3e;
    }

    .alert-info {
        background: #bee3f8;
        color: #2c5282;
        border-left: 4px solid #4299e1;
    }

    /* ==========================================
        LOGIN
    ========================================== */

    .login-container {
        background: white;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        overflow: hidden;
        max-width: 400px;
        width: 100%;
    }

    .login-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 40px 30px;
        text-align: center;
    }

    .login-header h1 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .login-header p {
        opacity: 0.9;
        font-size: 14px;
    }

    .login-body {
        padding: 40px 30px;
    }

    .btn-login {
        width: 100%;
        padding: 15px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
    }

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
    }

    .btn-login:active {
        transform: translateY(0);
    }

    .password-wrapper {
        position: relative;
        display: flex;
    }

    .password-wrapper input {
        flex: 1;
        padding-right: 90px;
    }

    .toggle-password {
        position: absolute;
        height: 48px;
        right: 2px;
        top: 2px;
        padding: 0 15px;
        border: none;
        border-top-right-radius: 8px;
        border-bottom-right-radius: 8px;
        color: #2d3748;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
    }

    .toggle-password:hover {
        background: #cbd5e0;
    }

    .login-footer {
            text-align: center;
            padding: 20px;
            background: #f7fafc;
            color: #718096;
            font-size: 12px;
    }   

    /* ==========================================
        DASHBOARD
    ========================================== */
    .welcome-card {
        background: white;
        border-radius: 15px;
        padding: 40px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        margin-bottom: 30px;
        text-align: center;
    }

    .welcome-card h2 {
        color: #2d3748;
        font-size: 28px;
        margin-bottom: 10px;
    }

    .welcome-card p {
        color: #718096;
        font-size: 16px;
    }

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

    .dashboard-card {
        background: white;
        border-radius: 15px;
        padding: 30px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        cursor: pointer;
        transition: all 0.3s;
        text-decoration: none;
        color: inherit;
        display: block;
    }

    .dashboard-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    }

    .dashboard-card .icon {
        font-size: 48px;
        margin-bottom: 15px;
    }

    .dashboard-card h3 {
        color: #2d3748;
        font-size: 22px;
        margin-bottom: 10px;
    }

    .dashboard-card p {
        color: #718096;
        font-size: 15px;
        line-height: 1.5;
    }

    .dashboard-card.primary {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

    .dashboard-card.primary h3,
    .dashboard-card.primary p {
        color: white;
    }

    .dashboard-card.success {
        border-left: 5px solid #48bb78;
    }

    .dashboard-card.warning {
        border-left: 5px solid #ed8936;
    }

    .dashboard-card.info {
        border-left: 5px solid #4299e1;
    }

    .dashboard-card.disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .dashboard-card.disabled:hover {
        transform: none;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }

    /* ==========================================
    BOTONES
    ========================================== */

    .btn {
        padding: 15px 30px;
        border: none;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
    }

    .btn-primary {
        background: #667eea;
        color: white;
    }

    .btn-primary:hover {
        background: #5568d3;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }

    .btn-primary:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

    .btn-success {
        background: #48bb78;
        color: white;
    }

    .btn-success:hover {
        background: #38a169;
    }

    .btn-secondary {
        background: #718096;
        color: white;
    }

    .btn-secondary:hover {
        background: #4a5568;
    }

    .btn-warning {
        background: #ed8936;
        color: white;
        padding: 10px 20px;
        font-size: 14px;
    }

    .btn-warning:hover {
        background: #dd6b20;
    }

    .btn-refresh {
        padding: 10px 20px;
        background: #48bb78;
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 600;
        transition: all 0.3s;
        margin-bottom: 20px;
    }

    .btn-refresh:hover {
        background: #38a169;
    }
    /* ==========================================
    FORMULARIOS
    ========================================== */

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

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

    .form-group label .required {
        color: #e53e3e;
    }

    .form-group input,
    .form-group select {
        width: 100%;
        padding: 12px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 16px;
        transition: all 0.3s;
    }

    .form-group input:focus,
    .form-group select:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    .form-group small {
        display: block;
        margin-top: 5px;
        color: #718096;
        font-size: 13px;
    }

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

    /* ==========================================
    BÚSQUEDA
    ========================================== */

    .search-box {
        position: relative;
        margin-bottom: 20px;
    }

    .search-input-wrapper {
        display: flex;
        gap: 10px;
    }

    .search-box input {
        flex: 1;
        padding: 15px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 16px;
        transition: border 0.3s;
    }

    .search-box input:focus {
        outline: none;
        border-color: #667eea;
    }

    .autocomplete-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 125px;
        background: white;
        border: 2px solid #667eea;
        border-top: none;
        border-radius: 0 0 8px 8px;
        max-height: 300px;
        overflow-y: auto;
        z-index: 1000;
        display: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .autocomplete-item {
        padding: 12px 15px;
        cursor: pointer;
        border-bottom: 1px solid #f0f0f0;
        transition: background 0.2s;
    }

    .autocomplete-item:hover {
        background: #f7fafc;
    }

    .autocomplete-item:last-child {
        border-bottom: none;
    }

    .autocomplete-item .name {
        font-weight: 600;
        color: #2d3748;
        margin-bottom: 4px;
    }

    .autocomplete-item .details {
        font-size: 13px;
        color: #718096;
    }

    /* ==========================================
    TABLAS
    ========================================== */

    .table-container {
        overflow-x: auto;
    }

    .cuentas-table,
    .pagos-table {
        width: 100%;
        border-collapse: collapse;
        margin: 20px 0;
    }

    .cuentas-table th,
    .pagos-table th {
        background: #667eea;
        color: white;
        padding: 12px;
        text-align: left;
        font-weight: 600;
    }

    .cuentas-table td,
    .pagos-table td {
        padding: 12px;
        border-bottom: 1px solid #e0e0e0;
    }

    .cuentas-table tr:hover,
    .pagos-table tr:hover {
        background: #f7fafc;
    }

    .pagos-table {
        min-width: 800px;
    }

    .pagos-table th {
        position: sticky;
        top: 0;
    }

    /* ==========================================
    INFORMACIÓN Y ESTADÍSTICAS
    ========================================== */

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

    .info-item {
        padding: 15px;
        background: #f7fafc;
        border-radius: 8px;
        border-left: 4px solid #667eea;
    }

    .info-item label {
        display: block;
        font-size: 12px;
        color: #718096;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 5px;
    }

    .info-item span {
        font-size: 18px;
        font-weight: 600;
        color: #2d3748;
    }

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

    .stat-card {
        background: white;
        border-radius: 12px;
        padding: 25px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transition: transform 0.3s;
    }

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

    .stat-card.highlight {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

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

    .stat-title {
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        opacity: 0.8;
    }

    .stat-icon {
        font-size: 32px;
    }

    .stat-value {
        font-size: 42px;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .stat-subtitle {
        font-size: 14px;
        opacity: 0.7;
    }

    /* ==========================================
    BADGES
    ========================================== */

    .badge {
        display: inline-block;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
    }

    .badge-success {
        background: #c6f6d5;
        color: #22543d;
    }

    .badge-warning {
        background: #feebc8;
        color: #7c2d12;
    }

    .badge-danger {
        background: #fed7d7;
        color: #742a2a;
    }

    .badge-info {
        background: #bee3f8;
        color: #2c5282;
    }

    .badge-soon {
        display: inline-block;
        background: #feebc8;
        color: #7c2d12;
        padding: 4px 12px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 600;
        margin-left: 10px;
    }

    .badge-efectivo {
        background: #c6f6d5;
        color: #22543d;
    }

    .badge-transferencia {
        background: #bee3f8;
        color: #2c5282;
    }

    .badge-yappy {
        background: #feebc8;
        color: #7c2d12;
    }

    /* ==========================================
    TABS
    ========================================== */

    .tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            border-radius: 10px;
            color: #0000;
            background-color: white;
    }

    .tab {
        padding: 12px 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        font-size: 16px;
        font-weight: 600;
        color: #718096;
        border-bottom: 3px solid transparent;
        transition: all 0.3s;
    }

    .tab.active {
        color: #667eea;
        border-bottom-color: #667eea;
    }

    .tab:hover {
        color: #667eea;
    }

    .tab-content {
        display: none;
    }

    .tab-content.active {
        display: block;
    }

    /* ==========================================
    LOADING Y ESTADOS
    ========================================== */

    .loading {
        text-align: center;
        padding: 40px;
        color: #667eea;
    }

    .spinner {
        border: 4px solid #f3f3f3;
        border-top: 4px solid #667eea;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        animation: spin 1s linear infinite;
        margin: 0 auto 20px;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    .hidden {
        display: none;
    }

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

    .empty-state .icon {
        font-size: 64px;
        margin-bottom: 20px;
        opacity: 0.5;
    }

    /* ==========================================
    DEUDA Y TOTALES
    ========================================== */

    .total-deuda {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 20px;
        border-radius: 10px;
        text-align: center;
        margin: 20px 0;
    }

    .total-deuda h3 {
        font-size: 16px;
        margin-bottom: 10px;
        opacity: 0.9;
    }

    .total-deuda .amount {
        font-size: 42px;
        font-weight: 700;
    }

    /* ==========================================
    RESULTADOS DE BÚSQUEDA
    ========================================== */

    .results-list {
        display: grid;
        gap: 15px;
        margin-top: 20px;
    }

    .result-card {
        background: #f7fafc;
        border: 2px solid #e0e0e0;
        border-radius: 10px;
        padding: 20px;
        cursor: pointer;
        transition: all 0.3s;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 15px;
        align-items: center;
    }

    .result-card:hover {
        border-color: #667eea;
        background: white;
        transform: translateX(5px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    }

    .result-info h3 {
        color: #2d3748;
        font-size: 18px;
        margin-bottom: 8px;
    }

    .result-info p {
        color: #718096;
        font-size: 14px;
        margin-bottom: 4px;
    }

    .result-arrow {
        font-size: 24px;
        color: #667eea;
    }

    /* ==========================================
    MÉTODOS DE PAGO (CAJA)
    ========================================== */

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

    .method-card {
        background: #f7fafc;
        border-radius: 8px;
        padding: 20px;
        border-left: 4px solid #667eea;
    }

    .method-card.efectivo {
        border-left-color: #48bb78;
    }

    .method-card.transferencia {
        border-left-color: #4299e1;
    }

    .method-card.yappy {
        border-left-color: #ed8936;
    }

    .method-name {
        font-size: 12px;
        color: #718096;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 8px;
    }

    .method-amount {
        font-size: 28px;
        font-weight: 700;
        color: #2d3748;
    }

    /* ==========================================
    SECCIONES Y TÍTULOS
    ========================================== */

    .section-title {
        color: #2d3748;
        font-size: 20px;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid #e0e0e0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .action-buttons {
        display: flex;
        gap: 10px;
        margin-top: 20px;
    }

    /* ==========================================
    TEXTOS Y AYUDAS
    ========================================== */

    .help-text {
        background: #edf2f7;
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 20px;
        font-size: 14px;
        color: #4a5568;
    }

    .help-text strong {
        color: #2d3748;
    }

    .last-update {
        text-align: center;
        color: #718096;
        font-size: 13px;
        margin-top: 10px;
    }

    /* ==========================================
    RESULTADOS Y BOXES
    ========================================== */

    .result-box {
        background: #f7fafc;
        border-radius: 8px;
        padding: 20px;
        margin-top: 20px;
    }

    .result-item {
        display: flex;
        justify-content: space-between;
        padding: 12px 0;
        border-bottom: 1px solid #e0e0e0;
    }

    .result-item:last-child {
        border-bottom: none;
    }

    .result-item label {
        font-weight: 600;
        color: #2d3748;
    }

    .result-item span {
        color: #4a5568;
    }

    .result-highlight {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 15px;
        border-radius: 8px;
        text-align: center;
        margin: 15px 0;
    }

    .result-highlight .amount {
        font-size: 32px;
        font-weight: 700;
        margin: 10px 0;
    }

    footer {
        text-align: center;
        color: white;
        padding: 20px;
        font-size: 14px;
        opacity: 0.8;
    }