/* Mi cuenta: organización (flex) y pestañas de gestión */
.profile-contact-data {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: flex-end;
}

.profile-contact-data .form-group {
    flex: 1 1 12rem;
    min-width: 10rem;
    margin-bottom: 0;
}

.profile-contact-data .country-phone-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-contact-data .country-phone-group .form-control {
    flex: 1 1 8rem;
}

.profile-contact-data .profile-contact-title-container {
    width: 100%;
}

.provider-data {
    padding: 20px;
    border: 1px solid #cccccc;
    border-radius: 10px;
    background: #fbf8f8;
}

.provider-data .form-check-input {
    border: 1px solid #c00000!important;
}

.profile-org-data {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.profile-org-data .profile-org-checkboxes {
    padding: 5px 20px;
}

.profile-org-title {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.profile-org-subsection {
    margin-bottom: 1.25rem;
}

.profile-org-subtitle {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-org-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: flex-start;
}

.profile-org-checkbox-item {
    flex: 0 1 auto;
}

.profile-org-save-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.profile-mc-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.profile-mc-tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    margin: 0 0 1rem 0;
    padding: 0;
    border-bottom: 1px solid #c00000;
}

.profile-mc-tablist > li {
    margin: 0;
}

.profile-mc-tab {
    display: inline-block;
    padding: 0.55rem 1rem;
    border: 1px solid #c00000;
    background: #f3f3f3;
    cursor: pointer;
    color: #6c757d;
    border-radius: 0.35rem 0.35rem 0 0;
    margin: 0 0.25rem -1px 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.profile-mc-tab:hover,
.profile-mc-tab:focus {
    background: #ffffff;
    color: #c00000;
    outline: none;
}

.profile-mc-tab.is-active {
    background: #fff;
    color: #c00000;
    border-bottom-color: #fff;
    font-weight: 600;
}

.profile-mc-tab:not(.is-active) {
    background: #f3f3f3;
    color: #6c757d;
}

.profile-mc-panel {
    display: none;
    padding-top: 0.75rem;
}

.profile-mc-panel.is-visible {
    display: block;
}

.profile-mc-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.profile-mc-panel-actions>* {
    margin-bottom: 0!important;
    margin-top: 0!important;
}

.profile-mc-panel-actions .form-check {
    display: flex;
    align-items: center;
}

.profile-mc-panel-actions .form-check-label {
    margin-bottom: 0!important;
}

.profile-mc-madurez-intro {
    max-width: 48rem;
    line-height: 1.5;
}

/* Security maturity wizard — semaphore: red (iniciado) → yellow (definido) → green (gestionado) */
.profile-madurez-wrap,
#modalMadurezNivel {
    --madurez-iniciado-fg: #7a1f1f;
    --madurez-iniciado-border: #c73e3e;
    --madurez-iniciado-bg: #fde8e8;
    --madurez-iniciado-bg-hover: #f5d0d0;
    --madurez-definido-fg: #6b5300;
    --madurez-definido-border: #c9a008;
    --madurez-definido-bg: #fff6d6;
    --madurez-definido-bg-hover: #ffecb0;
    --madurez-gestionado-fg: #0d5030;
    --madurez-gestionado-border: #2f8f56;
    --madurez-gestionado-bg: #d8f0e3;
    --madurez-gestionado-bg-hover: #bae6cc;
    --madurez-noaplica-fg: #495057;
    --madurez-noaplica-border: #adb5bd;
    --madurez-noaplica-bg: #e9ecef;
    --madurez-noaplica-bg-hover: #dee2e6;
}

.profile-madurez-wrap {
    max-width: 100%;
}

.profile-madurez-admin-hint {
    color: #6c757d;
    margin-bottom: 1rem;
}

.profile-madurez-loading {
    padding: 1rem 0;
    color: #6c757d;
}

.profile-madurez-empty-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-madurez-empty-body {
    color: #555;
    line-height: 1.5;
    max-width: 40rem;
}

.profile-madurez-progress-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem 1rem;
    align-items: center;
}

.profile-madurez-progress-nav-center {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
}

.profile-madurez-progress-nav-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
}

.profile-madurez-progress-nav .profile-madurez-btn-nav {
    flex-shrink: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0.05rem 0.22rem;
    min-width: 1.35rem;
    min-height: 0;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 0;
}

.profile-madurez-nav-arrow {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    position: relative;
    top: -0.05em;
}

.profile-madurez-nav-arrow--prev::before {
    content: "\2039";
}

.profile-madurez-nav-arrow--next::before {
    content: "\203A";
}

.profile-madurez-progress-nav .profile-madurez-progress-label {
    text-align: center;
    line-height: 1.3;
}

@media (max-width: 36rem) {
    .profile-madurez-progress-nav {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .profile-madurez-progress-nav-actions {
        justify-content: flex-end;
    }
}

.profile-madurez-progress {
    height: 0.5rem;
    border-radius: 0.25rem;
    background: #e9ecef;
}

.profile-madurez-progress-bar {
    background-color: var(--colorCorporativo, #bc0500);
}

.profile-madurez-domain-title {
    font-size: 1.25rem;
    margin: 1rem 0 1rem;
}

.profile-madurez-practica .card-body {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Not linked to provider services/capabilities — unrelated to maturity nivel "no_aplica". */
.profile-madurez-practica--fuera-perfil {
    background: #ececed;
    border-color: #d8d9db;
    opacity: 0.92;
}

.profile-madurez-practica--fuera-perfil .profile-madurez-practica-codigo,
.profile-madurez-practica--fuera-perfil .profile-madurez-practica-nombre {
    color: #6c757d;
}

.profile-madurez-practica--fuera-perfil .card-body {
    user-select: none;
}

.profile-madurez-fuera-perfil-hint {
    display: inline-block;
    max-width: 200px;
    padding: 0.35rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.25;
    text-transform: uppercase;
    text-align: center;
    color: #6c757d;
    border: 1px dashed #adb5bd;
    border-radius: 0.25rem;
    background: #f8f9fa;
    cursor: default;
    pointer-events: none;
    margin-left: 20px;
}

.profile-madurez-practica a.profile-madurez-open-modal {
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    width: 200px;
    min-width: 200px;
    margin-left: 20px;
    text-align: center;
    padding: 0.35rem 0.5rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* No level selected — corporate outline */
.profile-madurez-practica a.profile-madurez-open-modal.profile-madurez-nivel--none {
    color: var(--colorCorporativo, #bc0500);
    border-color: var(--colorCorporativo, #bc0500);
    background: #fff;
}

.profile-madurez-practica a.profile-madurez-open-modal.profile-madurez-nivel--none:hover {
    background: rgba(188, 5, 0, 0.06);
    color: var(--colorCorporativo, #bc0500);
}

.profile-madurez-practica a.profile-madurez-open-modal.profile-madurez-nivel--iniciado {
    color: var(--madurez-iniciado-fg);
    border-color: var(--madurez-iniciado-border);
    background: var(--madurez-iniciado-bg);
}

.profile-madurez-practica a.profile-madurez-open-modal.profile-madurez-nivel--iniciado:hover {
    background: var(--madurez-iniciado-bg-hover);
    color: var(--madurez-iniciado-fg);
}

.profile-madurez-practica a.profile-madurez-open-modal.profile-madurez-nivel--definido {
    color: var(--madurez-definido-fg);
    border-color: var(--madurez-definido-border);
    background: var(--madurez-definido-bg);
}

.profile-madurez-practica a.profile-madurez-open-modal.profile-madurez-nivel--definido:hover {
    background: var(--madurez-definido-bg-hover);
    color: var(--madurez-definido-fg);
}

.profile-madurez-practica a.profile-madurez-open-modal.profile-madurez-nivel--gestionado {
    color: var(--madurez-gestionado-fg);
    border-color: var(--madurez-gestionado-border);
    background: var(--madurez-gestionado-bg);
}

.profile-madurez-practica a.profile-madurez-open-modal.profile-madurez-nivel--gestionado:hover {
    background: var(--madurez-gestionado-bg-hover);
    color: var(--madurez-gestionado-fg);
}

.profile-madurez-practica a.profile-madurez-open-modal.profile-madurez-nivel--no_aplica {
    color: var(--madurez-noaplica-fg);
    border-color: var(--madurez-noaplica-border);
    background: var(--madurez-noaplica-bg);
}

.profile-madurez-practica a.profile-madurez-open-modal.profile-madurez-nivel--no_aplica:hover {
    background: var(--madurez-noaplica-bg-hover);
    color: var(--madurez-noaplica-fg);
}

.profile-madurez-practica-codigo {
    font-weight: 600;
    color: var(--colorCorporativo, #bc0500);
    margin-right: 0.35rem;
}

.profile-madurez-practica-nombre {
    display: inline;
}

.profile-madurez-modal-options .profile-madurez-modal-option {
    cursor: pointer;
    border-left: 4px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Inactive rows: accent stripe only (rgba fallback, then color-mix when supported) */
.profile-madurez-modal-options .profile-madurez-modal-option.profile-madurez-nivel--iniciado:not(.profile-madurez-modal-option--active) {
    border-left-color: rgba(199, 62, 62, 0.5);
    border-left-color: color-mix(in srgb, var(--madurez-iniciado-border) 55%, transparent);
}

.profile-madurez-modal-options .profile-madurez-modal-option.profile-madurez-nivel--definido:not(.profile-madurez-modal-option--active) {
    border-left-color: rgba(201, 160, 8, 0.55);
    border-left-color: color-mix(in srgb, var(--madurez-definido-border) 55%, transparent);
}

.profile-madurez-modal-options .profile-madurez-modal-option.profile-madurez-nivel--gestionado:not(.profile-madurez-modal-option--active) {
    border-left-color: rgba(47, 143, 86, 0.5);
    border-left-color: color-mix(in srgb, var(--madurez-gestionado-border) 55%, transparent);
}

.profile-madurez-modal-options .profile-madurez-modal-option.profile-madurez-nivel--no_aplica:not(.profile-madurez-modal-option--active) {
    border-left-color: rgba(173, 181, 189, 0.65);
    border-left-color: color-mix(in srgb, var(--madurez-noaplica-border) 55%, transparent);
}

.profile-madurez-modal-options .profile-madurez-modal-option:not(.profile-madurez-modal-option--active):hover {
    background-color: #f8f9fa;
}

.profile-madurez-modal-options .profile-madurez-modal-option.profile-madurez-nivel--iniciado:not(.profile-madurez-modal-option--active):hover {
    background-color: var(--madurez-iniciado-bg);
}

.profile-madurez-modal-options .profile-madurez-modal-option.profile-madurez-nivel--definido:not(.profile-madurez-modal-option--active):hover {
    background-color: var(--madurez-definido-bg);
}

.profile-madurez-modal-options .profile-madurez-modal-option.profile-madurez-nivel--gestionado:not(.profile-madurez-modal-option--active):hover {
    background-color: var(--madurez-gestionado-bg);
}

.profile-madurez-modal-options .profile-madurez-modal-option.profile-madurez-nivel--no_aplica:not(.profile-madurez-modal-option--active):hover {
    background-color: var(--madurez-noaplica-bg);
}

/* Selected row: same treatment as the list button */
.profile-madurez-modal-options .profile-madurez-modal-option.profile-madurez-nivel--iniciado.profile-madurez-modal-option--active {
    color: var(--madurez-iniciado-fg);
    background-color: var(--madurez-iniciado-bg) !important;
    border-color: var(--madurez-iniciado-border);
    border-left-color: var(--madurez-iniciado-border);
}

.profile-madurez-modal-options .profile-madurez-modal-option.profile-madurez-nivel--definido.profile-madurez-modal-option--active {
    color: var(--madurez-definido-fg);
    background-color: var(--madurez-definido-bg) !important;
    border-color: var(--madurez-definido-border);
    border-left-color: var(--madurez-definido-border);
}

.profile-madurez-modal-options .profile-madurez-modal-option.profile-madurez-nivel--gestionado.profile-madurez-modal-option--active {
    color: var(--madurez-gestionado-fg);
    background-color: var(--madurez-gestionado-bg) !important;
    border-color: var(--madurez-gestionado-border);
    border-left-color: var(--madurez-gestionado-border);
}

.profile-madurez-modal-options .profile-madurez-modal-option.profile-madurez-nivel--no_aplica.profile-madurez-modal-option--active {
    color: var(--madurez-noaplica-fg);
    background-color: var(--madurez-noaplica-bg) !important;
    border-color: var(--madurez-noaplica-border);
    border-left-color: var(--madurez-noaplica-border);
}

.profile-madurez-modal-options .profile-madurez-modal-option.profile-madurez-modal-option--active strong {
    color: inherit;
}

.profile-madurez-modal-options .profile-madurez-modal-option.profile-madurez-modal-option--active .small.text-muted {
    color: inherit !important;
    opacity: 0.82;
}

.profile-madurez-modal-options .profile-madurez-modal-option.profile-madurez-modal-option--active:hover {
    filter: brightness(0.97);
}

#btnGoToCatalogo {
    display: none;
}


#contentTblProveedor table {
    width: 100% !important;
}