/* Credencial institucional (modal del navbar): carnet vertical, siempre en el morado institucional (--rd-*). */
#modalMiCredencial .cred-dialog { max-width: 340px; }
#modalMiCredencial .cred-content {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.cred-card {
    --cred: var(--rd-primary-600);
    --cred-ink: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(27, 5, 23, .35);
    font-family: inherit;
}
.cred-band {
    width: 100%;
    height: 74px;
    padding: 14px 18px 0;
    background: var(--cred);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.cred-logo { height: 46px; width: auto; max-width: 70%; object-fit: contain; }
#modalMiCredencial .cred-close { opacity: .9; }
#modalMiCredencial .cred-close:hover { opacity: 1; background-color: rgba(255, 255, 255, .18); }

/* Foto sin marco, completa bajo la banda */
.cred-photo-frame {
    margin-top: 18px;
    line-height: 0;
}
.cred-photo {
    display: block;
    width: 128px;
    height: 160px;
    max-width: none;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
    background: var(--rd-ink-100);
}

.cred-name {
    margin: 14px 18px 4px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--rd-primary-600);
    overflow-wrap: anywhere;
}

.cred-data {
    width: calc(100% - 36px);
    margin: 8px 18px 16px;
    padding-top: 10px;
    border-top: 1px solid var(--rd-ink-200);
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.cred-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--rd-ink-700); }
.cred-row dt { flex: 0 0 18px; margin: 0; text-align: center; font-size: 14px; color: var(--rd-primary-600); }
.cred-row dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.cred-row dd strong { display: block; font-weight: 600; }
.cred-row dd small { display: block; font-size: 12px; color: var(--rd-ink-500); }
.cred-muted { font-style: italic; color: var(--rd-ink-400) !important; }

.cred-foot {
    width: 100%;
    padding: 7px 18px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: var(--cred);
    color: var(--cred-ink);
}
