/* Antecipação - layout principal */
.card-antecipacao {
    border-radius: 10px;
}

.card-antecipacao .card-help-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 14px;
    color: #adb5bd;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    z-index: 10;
}

.card-antecipacao .card-help-icon:hover {
    color: #6c757d;
    transform: scale(1.1);
}

/* Cards de limite */
.card-limit .progress {
    background-color: #f1f3f5;
    border-radius: 4px;
}

.card-limit h3 {
    font-weight: 600;
}

.card-limit-cc {
    border-left: 4px solid #0d6efd;
}

.card-limit-bp {
    border-left: 4px solid #198754;
}

/* Toggle grande */
.custom-switch-lg .custom-control-label::before {
    height: 1.5rem;
    width: 2.75rem;
    border-radius: 0.75rem;
}

.custom-switch-lg .custom-control-label::after {
    width: calc(1.5rem - 4px);
    height: calc(1.5rem - 4px);
    border-radius: 0.75rem;
}

.custom-switch-lg .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(1.25rem);
}

.custom-switch-lg .custom-control-label {
    padding-left: 0.5rem;
    padding-top: 0.1rem;
    min-height: 1.5rem;
}

/* Tabelas */
#tabela-elegiveis tbody tr.row-doc-required {
    background-color: #fff8f0;
}

.badge-billing-cc {
    background-color: #cfe2ff;
    color: #084298;
    padding: 0.25em 0.5em;
}

.badge-billing-bp {
    background-color: #d1e7dd;
    color: #0f5132;
    padding: 0.25em 0.5em;
}

/* Estado: soma de seleção acima do limite */
[data-selected-sum].over-limit {
    color: #dc3545 !important;
}

/* Vazio */
.table-empty-state {
    text-align: center;
    padding: 32px 16px;
    color: #6c757d;
}

.table-empty-state i {
    font-size: 2rem;
    margin-bottom: 8px;
    opacity: 0.5;
}

/* Status badge no histórico */
.badge-status {
    font-size: 0.78rem;
    padding: 0.32em 0.55em;
    border-radius: 4px;
}

.badge-status-pending    { background-color: #fff3cd; color: #664d03; }
.badge-status-scheduled  { background-color: #fff3cd; color: #664d03; }
.badge-status-credited   { background-color: #d1e7dd; color: #0f5132; }
.badge-status-debited    { background-color: #e2e3e5; color: #41464b; }
.badge-status-denied     { background-color: #f8d7da; color: #842029; }
.badge-status-cancelled  { background-color: #f8d7da; color: #842029; }
.badge-status-overdue    { background-color: #f8d7da; color: #842029; }

/* Mobile */
@media (max-width: 768px) {
    .card-antecipacao .card-help-icon {
        top: 8px;
        right: 8px;
        font-size: 12px;
    }
}
