.facturas-billin-container {
    max-width: 900px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding: 20px;
}

/* Login Form */
.facturas-billin-login {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.facturas-billin-login h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

.facturas-billin-login p {
    color: #666;
    margin-bottom: 30px;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Buttons */
.btn-login, .btn-logout, .btn-download {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login {
    background: #007bff;
    color: white;
    width: 100%;
    margin-top: 10px;
}

.btn-login:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

.btn-logout {
    background: #6c757d;
    color: white;
    float: right;
    padding: 8px 16px;
    font-size: 12px;
}

.btn-logout:hover {
    background: #545b62;
}

.btn-download {
    background: #28a745;
    color: white;
    padding: 8px 16px;
    font-size: 12px;
}

.btn-download:hover {
    background: #218838;
}

/* Header */
.facturas-billin-header {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 20px;
    margin: -20px -20px 30px -20px;
    border-radius: 8px 8px 0 0;
    overflow: auto;
}

.facturas-billin-header h2 {
    color: #333;
    margin: 0 0 10px 0;
    display: inline-block;
}

.facturas-billin-header p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* Table */
.facturas-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.facturas-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.facturas-table th {
    padding: 15px;
    text-align: left;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.facturas-table td {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    color: #555;
    font-size: 14px;
}

.facturas-table tbody tr:hover {
    background: #f8f9fa;
}

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

/* Messages */
.message {
    display: block;
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
}

.message.loading,
.loading {
    color: #0c5460;
    background: #d1ecf1;
    border: 1px solid #bee5eb;
}

.message.success,
.success {
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.message.error,
.error {
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

.no-facturas {
    text-align: center;
    color: #999;
    padding: 40px;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .facturas-billin-container {
        padding: 15px;
    }

    .facturas-billin-login {
        padding: 25px;
    }

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

    .facturas-table th,
    .facturas-table td {
        padding: 10px;
        font-size: 12px;
    }
}
