.nexum-fin-cadastros {
    margin-top: 0.5rem;
}

.nexum-fin-cadastros-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nexum-fin-cadastros-count {
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
}

.nexum-config-nav .nav-link.active .nexum-fin-cadastros-count {
    background: rgba(255, 255, 255, 0.25);
}

.nexum-fin-cadastros-card {
    overflow: hidden;
}

.nexum-fin-cadastros-card .card-header {
    border-bottom: 1px solid var(--kaju-border, #e5e8ef);
}

.nexum-fin-cadastros-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--kaju-text-muted, #636e8b);
    background: #f8f9fc;
    border-bottom: 1px solid var(--kaju-border, #e5e8ef);
    padding: 0.65rem 1rem;
}

.nexum-fin-cadastros-table tbody td {
    padding: 0.65rem 1rem;
    vertical-align: middle;
}

.nexum-fin-cadastros-row--inativo {
    opacity: 0.72;
}

.nexum-subnav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95rem;
}

.nexum-subnav__link {
    color: var(--kaju-muted, #636e8b);
    text-decoration: none;
    padding: 0.15rem 0.25rem;
}

.nexum-subnav__link.active {
    color: var(--kaju-primary, #1a7f6e);
    font-weight: 600;
}

.nexum-subnav__sep {
    color: #c5cad6;
    user-select: none;
}

.nexum-baixa-parcela {
    border: 1px solid var(--kaju-border, #e5e8ef);
    border-radius: 0.5rem;
    padding: 1rem 1.1rem;
    margin-bottom: 0.85rem;
    background: #fafbfe;
}

.nexum-baixa-parcela--off {
    opacity: 0.55;
}

.nexum-baixa-parcela__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}

.conta-pagar-vencida {
    color: #c0392b !important;
}

.conta-pagar-paga {
    color: #2e7d5a;
}

.conta-receber-vencida {
    color: #c0392b !important;
}

.conta-receber-recebida {
    color: #2e7d5a;
}

.conta-receber-anexo-btn {
    vertical-align: middle;
}

.conta-receber-anexo-icon {
    font-weight: 700;
    line-height: 1;
}

.conta-receber-anexos-lista .conta-receber-anexo-thumb {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 0.35rem;
    overflow: hidden;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
}

.conta-receber-anexos-lista .conta-receber-anexo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.conta-receber-anexo-upload {
    padding: 0.75rem 1rem;
    border: 1px dashed #c5cad6;
    border-radius: 0.5rem;
    background: #fafbfc;
}

.conta-receber-anexo-upload.is-uploading {
    opacity: 0.85;
    pointer-events: none;
}

.conta-receber-anexos-layout {
    min-height: 360px;
}

.conta-receber-anexos-lista-panel {
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.35rem;
    background: #fff;
}

.conta-receber-anexos-lista .list-group-item.active {
    background-color: var(--kaju-primary, #1a7f6e);
    border-color: var(--kaju-primary, #1a7f6e);
}

.conta-receber-anexo-item-btn {
    cursor: pointer;
}

.conta-receber-anexo-mini-thumb {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 0.25rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
}

.conta-receber-anexo-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.conta-receber-anexo-tipo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    background: #e9ecef;
    color: #495057;
}

.list-group-item.active .conta-receber-anexo-tipo-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.conta-receber-anexo-preview-panel {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    min-height: 360px;
}

.conta-receber-anexo-preview-body {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.35rem;
    min-height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.conta-receber-anexo-preview-img {
    max-width: 100%;
    max-height: 480px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

.conta-receber-anexo-preview-iframe {
    width: 100%;
    height: 480px;
    border: 0;
    display: block;
    background: #fff;
}

.conta-receber-anexo-preview-iframe--texto {
    height: 360px;
}

.conta-receber-anexo-preview-empty {
    border: 1px dashed #dee2e6;
    border-radius: 0.5rem;
    background: #fafbfc;
}

.conta-receber-anexo-preview-fallback {
    width: 100%;
    padding: 1.5rem;
}
