/* Badges de status nas listas do admin (Cobranças e Imóveis) e atalhos do
   cabeçalho. As cores têm variante para o tema escuro do próprio admin, que
   marca <html data-theme="dark"> (ou "auto", seguindo o sistema). */

.badge-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.badge-status.paga { color: #0a7d33; background: #e6f6ec; }
.badge-status.parcial { color: #8a6d00; background: #fdf3d0; }
.badge-status.vencida { color: #b3231f; background: #fdeceb; }
.badge-status.aberta { color: #4a5568; background: #eef1f5; }

.texto-devedor { color: #b3231f; font-weight: 600; }

/* Atalhos no cabeçalho do admin (Dashboard e Backup) */
#nav-atalhos {
    display: flex;
    gap: 8px;
    align-items: center;
}

#nav-atalhos a {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--header-link-color, #fff);
    background: rgba(255, 255, 255, 0.15);
    text-decoration: none;
    white-space: nowrap;
}

#nav-atalhos a:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Tema escuro */
html[data-theme="dark"] .badge-status.paga { color: #6fdc98; background: #12351f; }
html[data-theme="dark"] .badge-status.parcial { color: #ffd75e; background: #3a3110; }
html[data-theme="dark"] .badge-status.vencida { color: #ff9d99; background: #3d1513; }
html[data-theme="dark"] .badge-status.aberta { color: #aab6c4; background: #2a3038; }
html[data-theme="dark"] .texto-devedor { color: #ff9d99; }

@media (prefers-color-scheme: dark) {
    html[data-theme="auto"] .badge-status.paga { color: #6fdc98; background: #12351f; }
    html[data-theme="auto"] .badge-status.parcial { color: #ffd75e; background: #3a3110; }
    html[data-theme="auto"] .badge-status.vencida { color: #ff9d99; background: #3d1513; }
    html[data-theme="auto"] .badge-status.aberta { color: #aab6c4; background: #2a3038; }
    html[data-theme="auto"] .texto-devedor { color: #ff9d99; }
}
