:root {
    --primary-color: #ff7f11;
    --secondary-color: #1a1a1a;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.header-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2d2d2d 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.header-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.header-title .logo-accent {
    color: var(--primary-color);
}

.header-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.stats-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stats-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stats-card.primary .icon {
    color: var(--primary-color);
}

.stats-card.success .icon {
    color: var(--success-color);
}

.stats-card.danger .icon {
    color: var(--danger-color);
}

.stats-card.info .icon {
    color: var(--info-color);
}

.stats-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.stats-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.filter-section h3 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-filter {
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-filter.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.btn-filter:not(.active) {
    background: #f8f9fa;
    color: #495057;
    border-color: #dee2e6;
}

.btn-filter:not(.active):hover {
    background: #e9ecef;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.table-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.table-custom {
    margin: 0;
}

.table-custom thead {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2d2d2d 100%);
    color: white;
}

.table-custom thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table-custom tbody tr {
    transition: background-color 0.2s ease;
}

.table-custom tbody tr:hover {
    background-color: #f8f9fa;
}

.table-custom tbody td {
    padding: 1rem;
    vertical-align: middle;
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.status-badge.pago {
    background: #d4edda;
    color: #155724;
}

.status-badge.aberto {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.atraso {
    background: #f8d7da;
    color: #721c24;
}

.btn-action {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-action:hover {
    transform: scale(1.05);
}

.valor-destaque {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 3rem;
}

.loading-spinner.active {
    display: block;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

h1.logo {
    background-image: url('https://cdn.qualida.de/images/logo_2clix_negativo.svg');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    height: 80px;
    text-indent: -9999px;
    overflow: hidden;
}

/* Consumo Page Specific Styles */
.consumo-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2d2d2d 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
}

.consumo-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.consumo-header p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 0.3rem;
}

.date-selector {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: border-color 0.3s ease;
}

.date-selector:hover {
    border-color: var(--primary-color);
}

.date-selector input[type="month"] {
    border: none;
    background: transparent;
    font-weight: 600;
    color: var(--secondary-color);
    outline: none;
}

.date-selector input[type="month"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
}

.date-selector input[type="month"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.status-indicator{
    display:none;
}

.loading .status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.loading .status-indicator .pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.expand-controls {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.expand-controls .btn {
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.table-consumo-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    padding-bottom: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-height: calc(100vh - 155px);
    overflow-y: auto;
}

.table-consumo {
    margin: 0;
}

.table-consumo thead {
    position: sticky;
    top: -25px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2d2d2d 100%);
    color: white;
    z-index: 10;
}

.table-consumo thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.table-consumo tbody tr {
    transition: background-color 0.2s ease;
}

.table-consumo .cliente-row {
    cursor: pointer;
    transition: all 0.2s ease;
}

.table-consumo .cliente-row:hover {
    background-color: #f8f9fa !important;
}

.table-consumo .campanha-row {
    display: none;
    transition: all 0.3s ease;
}

.table-consumo .campanha-row.expanded {
    display: table-row;
}

.table-consumo .cliente-row.expanded .chevron-icon {
    transform: rotate(90deg);
}

.table-consumo .chevron-icon {
    transition: transform 0.2s ease;
}

@media (max-width: 768px) {
    .header-title {
        font-size: 1.8rem;
    }

    .stats-card {
        margin-bottom: 1rem;
    }
    
    .consumo-header h1 {
        font-size: 1.5rem;
    }
    
    .date-selector {
        width: 100%;
        justify-content: center;
    }
}
.table-consumo thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table-consumo tfoot {
    position: sticky;
    bottom: 0px;
    background: #212529;
    z-index: 10;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.loading .table-consumo-container{
    display:none;
}

