.pcr-client-sync {
    color: var(--pcr-text);
    background: var(--pcr-surface);
}

.pcr-client-sync .form-label {
    color: var(--pcr-text);
    font-weight: 700;
}

.pcr-client-sync .form-text,
.pcr-client-sync .pcr-client-field__help {
    color: var(--pcr-text-muted);
}

/* ========================================================================
 * Fase 1.26.2.5 — Estándar visual SharePoint / Clientes
 * ======================================================================== */
#forModal.pcr-client-modal-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

#forModal.pcr-client-modal-fullscreen .modal-dialog.modal-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}

#forModal.pcr-client-modal-fullscreen .modal-content {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}

#forModal.pcr-client-modal-fullscreen .modal-body {
    min-height: 0 !important;
    height: calc(100vh - 64px) !important;
    max-height: calc(100vh - 64px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0 !important;
}

#forModal.pcr-client-modal-fullscreen .modal-header {
    min-height: 64px;
    padding: .9rem 1.25rem;
}

#forModal.pcr-client-modal-fullscreen .modal-footer {
    display: none !important;
}

.pcr-client-shell {
    min-height: 100%;
    padding: 1.25rem 1.25rem 2rem;
    background: var(--pcr-surface-muted);
}

.pcr-client-shell__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1rem;
    padding: .25rem 0 1rem;
    border-bottom: 1px solid var(--pcr-border);
}

.pcr-client-shell__header h3 {
    color: var(--pcr-text);
    font-weight: 800;
    letter-spacing: -.02em;
}

.pcr-client-shell__header p {
    color: var(--pcr-text-muted);
    max-width: 760px;
}

.pcr-client-shell__source {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    padding: .6rem .8rem;
    border: 1px solid var(--pcr-border);
    border-radius: var(--pcr-radius-md);
    background: var(--pcr-surface);
    box-shadow: var(--pcr-shadow-sm);
    white-space: nowrap;
}

.pcr-client-shell__source-icon {
    width: 2.1rem;
    height: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--pcr-ochre, #CE7D1E);
    color: #fff;
}

.pcr-client-shell__source strong,
.pcr-client-shell__source small {
    display: block;
}

.pcr-client-shell__source strong {
    color: var(--pcr-text);
    font-size: .82rem;
}

.pcr-client-shell__source small {
    color: var(--pcr-text-muted);
    font-size: .72rem;
}

.pcr-client-progress {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
    padding: .75rem .9rem;
    border: 1px solid var(--pcr-border);
    border-radius: var(--pcr-radius-md);
    background: var(--pcr-surface);
}

.pcr-client-progress__item {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
}

.pcr-client-progress__item strong,
.pcr-client-progress__item small {
    display: block;
}

.pcr-client-progress__item strong {
    color: var(--pcr-text);
    font-size: .76rem;
}

.pcr-client-progress__item small {
    color: var(--pcr-text-muted);
    font-size: .68rem;
}

.pcr-client-progress__dot {
    width: 1.9rem;
    height: 1.9rem;
    flex: 0 0 1.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--pcr-surface-muted);
    color: var(--pcr-text-muted);
    border: 1px solid var(--pcr-border);
    font-size: .75rem;
    font-weight: 800;
}

.pcr-client-progress__item.is-active .pcr-client-progress__dot {
    background: var(--pcr-ochre, #CE7D1E);
    color: #fff;
    border-color: var(--pcr-ochre, #CE7D1E);
}

.pcr-client-progress__line {
    height: 1px;
    flex: 1;
    min-width: 1.5rem;
    background: var(--pcr-border);
}

.pcr-client-step {
    color: var(--pcr-text);
    background: var(--pcr-surface);
    border: 1px solid var(--pcr-border);
    border-radius: var(--pcr-radius-lg);
    box-shadow: var(--pcr-shadow-sm);
    padding: 1.25rem;
}

.pcr-client-step--classification {
    margin-top: 0;
}

.pcr-client-step__heading {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.15rem;
}

.pcr-client-step__heading h5 {
    color: var(--pcr-text);
    font-weight: 800;
}

.pcr-client-step__heading small {
    color: var(--pcr-text-muted);
}

.pcr-client-step__heading code {
    color: var(--pcr-text);
    background: var(--pcr-surface-muted);
    padding: .08rem .3rem;
    border-radius: .25rem;
}

.pcr-client-step__number {
    width: 2.15rem;
    height: 2.15rem;
    flex: 0 0 2.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--pcr-ochre, #CE7D1E);
    color: #fff;
    font-weight: 800;
}

.pcr-client-field + .pcr-client-field {
    margin-top: 1rem;
}

.pcr-client-field__help {
    margin-top: .45rem;
    font-size: .76rem;
    display: flex;
    gap: .35rem;
    align-items: center;
}

.pcr-client-source-note {
    display: flex;
    gap: .75rem;
    margin-top: 1.15rem;
    padding: .8rem .9rem;
    border: 1px dashed var(--pcr-border);
    border-radius: var(--pcr-radius-md);
    background: var(--pcr-surface-muted);
}

.pcr-client-source-note > i {
    color: var(--pcr-ochre, #CE7D1E);
    margin-top: .15rem;
}

.pcr-client-source-note strong,
.pcr-client-source-note span {
    display: block;
}

.pcr-client-source-note strong {
    color: var(--pcr-text);
    font-size: .8rem;
}

.pcr-client-source-note span {
    color: var(--pcr-text-muted);
    font-size: .72rem;
    line-height: 1.45;
}

.pcr-client-preview {
    padding: 1rem;
    border: 1px solid var(--pcr-border);
    border-radius: var(--pcr-radius-lg);
    background: var(--pcr-surface-muted);
}

.pcr-client-preview__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pcr-client-preview__eyebrow {
    color: var(--pcr-text-muted);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.pcr-client-preview__title {
    margin-top: .2rem;
    color: var(--pcr-text);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
}

.pcr-client-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
}

.pcr-client-meta > div {
    min-width: 0;
    padding: .75rem;
    border: 1px solid var(--pcr-border);
    border-radius: var(--pcr-radius-sm);
    background: var(--pcr-surface-raised);
}

.pcr-client-meta span,
.pcr-client-detail-grid span {
    display: block;
    color: var(--pcr-text-muted);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: .2rem;
}

.pcr-client-meta strong,
.pcr-client-detail-grid strong {
    color: var(--pcr-text);
    word-break: break-word;
    font-size: .85rem;
}

.pcr-client-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem 1rem;
    margin-top: 1rem;
}

.pcr-client-detail-grid > div {
    min-width: 0;
}

.pcr-client-preview__message {
    margin-top: 1rem;
    padding-top: .8rem;
    border-top: 1px solid var(--pcr-border);
    color: var(--pcr-text-muted);
    font-size: .8rem;
    line-height: 1.45;
}

.pcr-client-empty {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    padding: 2rem;
    border: 1px dashed var(--pcr-border);
    border-radius: var(--pcr-radius-lg);
    color: var(--pcr-text-muted);
    background: var(--pcr-surface-muted);
    text-align: left;
}

.pcr-client-empty__icon {
    width: 2.6rem;
    height: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--pcr-action-soft);
    color: var(--pcr-ochre, #CE7D1E);
}

.pcr-client-empty strong,
.pcr-client-empty span {
    display: block;
}

.pcr-client-empty strong {
    color: var(--pcr-text);
    margin-bottom: .15rem;
}

.pcr-client-empty span {
    font-size: .8rem;
}

.pcr-client-action {
    min-height: 44px;
    border: 0 !important;
    border-radius: var(--pcr-radius-md) !important;
    background: var(--pcr-ochre, #CE7D1E) !important;
    color: #fff !important;
    font-weight: 800;
    box-shadow: var(--pcr-shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.pcr-client-action:hover:not(:disabled),
.pcr-client-action:focus-visible:not(:disabled) {
    background: #b96f19 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: var(--pcr-shadow-md);
}

.pcr-client-action:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* Select2 PCR */
.pcr-client-sync .select2-container--default .select2-selection--single {
    min-height: 42px;
    border-color: var(--pcr-border);
    background: var(--pcr-surface-raised);
    color: var(--pcr-text);
    border-radius: var(--pcr-radius-sm);
}

.pcr-client-sync .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--pcr-text);
    line-height: 40px;
    padding-left: .8rem;
}

.pcr-client-sync .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
}

.pcr-client-sync .select2-container--default.select2-container--focus .select2-selection--single,
.pcr-client-sync .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--pcr-action);
    box-shadow: 0 0 0 .2rem var(--pcr-action-soft);
}

.pcr-client-sync .select2-dropdown {
    border-color: var(--pcr-border);
    background: var(--pcr-surface-raised);
    color: var(--pcr-text);
}

.pcr-client-sync .select2-container--default .select2-results__option {
    color: var(--pcr-text);
}

.pcr-client-sync .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--pcr-action);
    color: #fff;
}

.pcr-client-sync .select2-container--disabled .select2-selection--single {
    opacity: .65;
    cursor: not-allowed;
}

@media (max-width: 991.98px) {
    .pcr-client-shell__header {
        flex-direction: column;
    }

    .pcr-client-progress {
        overflow-x: auto;
    }

    .pcr-client-progress__line {
        min-width: 1rem;
    }

    .pcr-client-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .pcr-client-shell {
        padding: 1rem .75rem 1.5rem;
    }

    .pcr-client-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    #forModal.pcr-client-modal-fullscreen .modal-header {
        min-height: 58px;
        padding: .75rem .9rem;
    }

    #forModal.pcr-client-modal-fullscreen .modal-body {
        height: calc(100vh - 58px) !important;
        max-height: calc(100vh - 58px) !important;
    }

    .pcr-client-shell {
        padding: .8rem .6rem 1.2rem;
    }

    .pcr-client-progress {
        padding: .6rem;
    }

    .pcr-client-progress__item small {
        display: none;
    }

    .pcr-client-progress__item strong {
        font-size: .7rem;
    }

    .pcr-client-step {
        padding: 1rem;
    }

    .pcr-client-meta {
        grid-template-columns: 1fr;
    }

    .pcr-client-preview__title {
        font-size: 1rem;
    }
}

/* ========================================================================
 * Fase 1.26.2.6 — Refinamiento UX/UI del sincronizador SharePoint
 * ======================================================================== */
.pcr-client-shell {
    padding: 1rem 1.25rem 5.75rem;
}

.pcr-client-shell__header {
    margin-bottom: .8rem;
    padding: .15rem 0 .8rem;
}

.pcr-client-shell__header h3 {
    font-size: 1.55rem;
}

.pcr-client-shell__source {
    min-width: 150px;
    justify-content: center;
    padding: .55rem .7rem;
}

.pcr-client-progress {
    gap: .55rem;
    margin-bottom: .8rem;
    padding: .55rem .8rem;
}

.pcr-client-progress__item {
    gap: .45rem;
}

.pcr-client-progress__dot {
    width: 1.75rem;
    height: 1.75rem;
    flex-basis: 1.75rem;
    font-size: .7rem;
}

.pcr-client-progress__item.is-complete .pcr-client-progress__dot {
    background: var(--pcr-text);
    border-color: var(--pcr-text);
    color: var(--pcr-surface);
}

.pcr-client-progress__item.is-complete strong {
    color: var(--pcr-text);
}

.pcr-client-progress__item.is-active strong {
    color: var(--pcr-ochre, #CE7D1E);
}

.pcr-client-progress__item.is-active .pcr-client-progress__dot {
    box-shadow: 0 0 0 .2rem var(--pcr-action-soft);
}

.pcr-client-workspace > [class*="col-"] {
    display: flex;
}

.pcr-client-workspace .pcr-client-step {
    width: 100%;
}

.pcr-client-step {
    padding: 1.05rem 1.15rem;
}

.pcr-client-step__heading {
    margin-bottom: .9rem;
}

.pcr-client-step__number {
    width: 2rem;
    height: 2rem;
    flex-basis: 2rem;
    font-size: .78rem;
}

.pcr-client-field + .pcr-client-field {
    margin-top: .8rem;
}

.pcr-client-source-note {
    margin-top: .85rem;
    padding: .7rem .8rem;
}

.pcr-client-empty {
    min-height: 172px;
    padding: 1.25rem;
    justify-content: flex-start;
}

.pcr-client-empty__icon {
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 2.35rem;
}

.pcr-client-preview {
    padding: .9rem;
}

.pcr-client-preview__top {
    margin-bottom: .8rem;
}

.pcr-client-preview__title {
    font-size: 1.05rem;
}

.pcr-client-meta {
    gap: .55rem;
}

.pcr-client-meta > div {
    padding: .65rem;
}

.pcr-client-detail-grid {
    gap: .7rem .9rem;
    margin-top: .8rem;
}

.pcr-client-preview__message {
    margin-top: .8rem;
    padding-top: .65rem;
}

.pcr-client-step--classification {
    padding-bottom: 1rem;
}

.pcr-client-shell__footer {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .8rem;
    padding: .75rem 1rem;
    border: 1px solid var(--pcr-border);
    border-radius: var(--pcr-radius-md);
    background: color-mix(in srgb, var(--pcr-surface) 94%, transparent);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, .06), var(--pcr-shadow-sm);
    backdrop-filter: blur(12px);
}

.pcr-client-shell__footer-status {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
    color: var(--pcr-text-muted);
    font-size: .78rem;
    line-height: 1.3;
}

.pcr-client-shell__footer-status > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pcr-client-shell__footer-status-dot {
    width: .55rem;
    height: .55rem;
    flex: 0 0 .55rem;
    border-radius: 50%;
    background: var(--pcr-text-muted);
}

.pcr-client-shell__footer-status-dot.is-success {
    background: #2f8f62;
}

.pcr-client-shell__footer-status-dot.is-warning {
    background: var(--pcr-ochre, #CE7D1E);
}

.pcr-client-shell__footer-status-dot.is-danger {
    background: #b23a48;
}

.pcr-client-shell__footer-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex: 0 0 auto;
}

.pcr-client-cancel {
    min-height: 44px;
    padding-inline: 1rem;
    border: 1px solid var(--pcr-border) !important;
    border-radius: var(--pcr-radius-md) !important;
    color: var(--pcr-text) !important;
    background: var(--pcr-surface) !important;
    font-weight: 700;
}

.pcr-client-cancel:hover,
.pcr-client-cancel:focus-visible {
    border-color: var(--pcr-action) !important;
    color: var(--pcr-action) !important;
    background: var(--pcr-action-soft) !important;
}

.pcr-client-shell__footer .pcr-client-action {
    min-width: 190px;
    width: auto !important;
    padding-inline: 1.15rem;
}

html[data-pcr-theme="dark"] .pcr-client-shell__footer {
    box-shadow: 0 -12px 30px rgba(0, 0, 0, .28), var(--pcr-shadow-md);
}

@supports not (background: color-mix(in srgb, black 90%, white)) {
    .pcr-client-shell__footer {
        background: var(--pcr-surface);
    }
}

@media (max-width: 767.98px) {
    .pcr-client-shell {
        padding: .85rem .75rem 6.5rem;
    }

    .pcr-client-shell__footer {
        flex-direction: column;
        align-items: stretch;
        gap: .65rem;
    }

    .pcr-client-shell__footer-actions {
        width: 100%;
    }

    .pcr-client-shell__footer-actions > * {
        flex: 1 1 0;
    }

    .pcr-client-shell__footer-status > span:last-child {
        white-space: normal;
    }
}

/* ========================================================================
 * Fase 1.26.2.7 — Refinamiento final de layout del sincronizador
 * ======================================================================== */

/* El pie de acciones ocupa todo el ancho útil del modal, al mismo nivel
 * visual que la cabecera fullscreen. */
#forModal.pcr-client-modal-fullscreen .pcr-client-shell__footer {
    position: sticky;
    bottom: 0;
    z-index: 40;
    width: calc(100% + 2.5rem);
    margin: .9rem -1.25rem -5.75rem;
    min-height: 66px;
    padding: .75rem 1.25rem;
    border: 0;
    border-top: 1px solid var(--pcr-border);
    border-radius: 0;
    background: color-mix(in srgb, var(--pcr-surface) 97%, transparent);
    box-shadow: 0 -12px 30px rgba(0, 0, 0, .08);
    backdrop-filter: blur(14px);
}

#forModal.pcr-client-modal-fullscreen .pcr-client-shell__footer-actions {
    align-items: center;
}

/* Stepper: estado activo y completado inequívocos, incluso cuando existan
 * estilos legacy con mayor especificidad. */
#forModal.pcr-client-modal-fullscreen .pcr-client-progress__dot {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
    opacity: 1 !important;
    visibility: visible !important;
}

#forModal.pcr-client-modal-fullscreen .pcr-client-progress__item.is-active .pcr-client-progress__dot {
    background: var(--pcr-ochre, #CE7D1E) !important;
    border-color: var(--pcr-ochre, #CE7D1E) !important;
    color: #fff !important;
}

#forModal.pcr-client-modal-fullscreen .pcr-client-progress__item.is-complete .pcr-client-progress__dot {
    background: var(--pcr-text) !important;
    border-color: var(--pcr-text) !important;
    color: var(--pcr-surface) !important;
}

/* Los encabezados de cada bloque deben conservar un número visible y
 * consistente con el stepper superior. */
#forModal.pcr-client-modal-fullscreen .pcr-client-step__number {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    line-height: 1;
    opacity: 1 !important;
    visibility: visible !important;
    background: var(--pcr-ochre, #CE7D1E) !important;
    border: 1px solid var(--pcr-ochre, #CE7D1E) !important;
    color: #fff !important;
}

/* Empty state: más equilibrado y menos “vacío” antes de seleccionar un cliente. */
#forModal.pcr-client-modal-fullscreen .pcr-client-empty {
    min-height: 214px;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
}

#forModal.pcr-client-modal-fullscreen .pcr-client-empty__icon {
    width: 2.75rem;
    height: 2.75rem;
    flex-basis: 2.75rem;
    background: var(--pcr-action-soft);
    color: var(--pcr-ochre, #CE7D1E);
    box-shadow: inset 0 0 0 1px var(--pcr-border);
}

#forModal.pcr-client-modal-fullscreen .pcr-client-empty strong {
    font-size: .92rem;
}

#forModal.pcr-client-modal-fullscreen .pcr-client-empty span {
    max-width: 520px;
    line-height: 1.45;
}

/* Fuente oficial: compacto, centrado y con jerarquía clara. */
#forModal.pcr-client-modal-fullscreen .pcr-client-shell__source {
    min-width: 164px;
    gap: .55rem;
    padding: .5rem .7rem;
    border-radius: var(--pcr-radius-md);
}

#forModal.pcr-client-modal-fullscreen .pcr-client-shell__source-icon {
    width: 1.9rem;
    height: 1.9rem;
    flex: 0 0 1.9rem;
}

@media (max-width: 767.98px) {
    #forModal.pcr-client-modal-fullscreen .pcr-client-shell__footer {
        width: calc(100% + 1.5rem);
        margin-left: -.75rem;
        margin-right: -.75rem;
        padding: .7rem .75rem;
    }

    #forModal.pcr-client-modal-fullscreen .pcr-client-empty {
        min-height: 170px;
        padding: 1.25rem;
    }
}

@supports not (background: color-mix(in srgb, black 90%, white)) {
    #forModal.pcr-client-modal-fullscreen .pcr-client-shell__footer {
        background: var(--pcr-surface);
    }
}

/* ========================================================================
 * Fase 1.26.2.8 Corrección de visibilidad de indicadores y acción final
 * ======================================================================== */

/* Números del stepper: conservar siempre el 1 / 2 / 3 visible. */
#forModal.pcr-client-modal-fullscreen .pcr-client-progress__dot,
#forModal.pcr-client-modal-fullscreen .pcr-client-step__number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: .78rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-indent: 0 !important;
    overflow: visible !important;
}

#forModal.pcr-client-modal-fullscreen .pcr-client-progress__item.is-complete .pcr-client-progress__dot {
    background: var(--pcr-text) !important;
    border-color: var(--pcr-text) !important;
    color: var(--pcr-surface) !important;
}

#forModal.pcr-client-modal-fullscreen .pcr-client-progress__item.is-active .pcr-client-progress__dot {
    background: var(--pcr-ochre, #CE7D1E) !important;
    border-color: var(--pcr-ochre, #CE7D1E) !important;
    color: #fff !important;
}

#forModal.pcr-client-modal-fullscreen .pcr-client-progress__dot:not(.is-active):not(.is-complete),
#forModal.pcr-client-modal-fullscreen .pcr-client-progress__item:not(.is-active):not(.is-complete) .pcr-client-progress__dot {
    /*background: var(--pcr-surface-muted) !important;
    border-color: var(--pcr-border) !important;
    color: var(--pcr-text-muted) !important;*/
}

/* Números de los encabezados internos. */
#forModal.pcr-client-modal-fullscreen .pcr-client-step__number {
    position: relative !important;
    z-index: 2 !important;
    background: var(--pcr-ochre, #CE7D1E) !important;
    border: 1px solid var(--pcr-ochre, #CE7D1E) !important;
    color: #fff !important;
}

/* Iconos críticos: forzar visibilidad y tipografía de Font Awesome. */
#forModal.pcr-client-modal-fullscreen .pcr-client-shell__source-icon,
#forModal.pcr-client-modal-fullscreen .pcr-client-empty__icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#forModal.pcr-client-modal-fullscreen .pcr-client-shell__source-icon > i,
#forModal.pcr-client-modal-fullscreen .pcr-client-empty__icon > i,
#forModal.pcr-client-modal-fullscreen .pcr-client-shell__footer .pcr-client-action > i {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

/* Botón de acción: visible y legible tanto habilitado como deshabilitado. */
#forModal.pcr-client-modal-fullscreen #btnGuardarCliente,
#forModal.pcr-client-modal-fullscreen .pcr-client-shell__footer .pcr-client-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    min-width: 190px !important;
    padding: .65rem 1.15rem !important;
    background: var(--pcr-ochre, #CE7D1E) !important;
    border: 1px solid var(--pcr-ochre, #CE7D1E) !important;
    color: #fff !important;
    visibility: visible !important;
}

#forModal.pcr-client-modal-fullscreen #btnGuardarCliente:disabled {
    opacity: .55 !important;
    cursor: not-allowed !important;
}

#forModal.pcr-client-modal-fullscreen #btnGuardarCliente:not(:disabled) {
    opacity: 1 !important;
}

#forModal.pcr-client-modal-fullscreen #btnGuardarClienteTexto {
    display: inline !important;
    color: inherit !important;
    visibility: visible !important;
    opacity: 1 !important;
    white-space: nowrap !important;
}


/* ========================================================================
 * Fase 1.26.2.9 — Corrección visual de indicadores, iconos y acción
 * ======================================================================== */

/* Font Awesome: asegurar la familia correcta para iconos del sincronizador. */
.pcr-client-sync .fas,
.pcr-client-sync .far,
.pcr-client-sync .fab,
.pcr-client-sync i[class*="fa-"] {
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.pcr-client-sync .fas,
.pcr-client-sync i.fas {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}

.pcr-client-sync .far,
.pcr-client-sync i.far {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 400 !important;
}

.pcr-client-sync .fab,
.pcr-client-sync i.fab {
    font-family: "Font Awesome 5 Brands" !important;
    font-weight: 400 !important;
}

/* Stepper: números siempre visibles y con geometría estable. */
.pcr-client-progress__dot {
    width: 1.9rem !important;
    min-width: 1.9rem !important;
    height: 1.9rem !important;
    min-height: 1.9rem !important;
    flex: 0 0 1.9rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: var(--pcr-surface-muted, #F0F0EF) !important;
    color: var(--pcr-text-muted, #5F6368) !important;
    border: 1px solid var(--pcr-border, #D8D8D6) !important;
    font-family: var(--pcr-font-family, "Montserrat", sans-serif) !important;
    font-size: .78rem !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.pcr-client-progress__item.is-active .pcr-client-progress__dot {
    background: var(--pcr-ochre, #CE7D1E) !important;
    color: #FFFFFF !important;
    border-color: var(--pcr-ochre, #CE7D1E) !important;
}

/* Números de sección: siempre visibles dentro de su círculo. */
.pcr-client-step__number {
    width: 2.15rem !important;
    min-width: 2.15rem !important;
    height: 2.15rem !important;
    min-height: 2.15rem !important;
    flex: 0 0 2.15rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: var(--pcr-ochre, #CE7D1E) !important;
    color: #FFFFFF !important;
    border: 1px solid var(--pcr-ochre, #CE7D1E) !important;
    font-family: var(--pcr-font-family, "Montserrat", sans-serif) !important;
    font-size: .82rem !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Empty state: icon estable y centrado aunque el glifo tarde en cargar. */
.pcr-client-empty__icon {
    width: 2.6rem !important;
    min-width: 2.6rem !important;
    height: 2.6rem !important;
    min-height: 2.6rem !important;
    flex: 0 0 2.6rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: var(--pcr-accent-soft, #F5E8D8) !important;
    color: var(--pcr-ochre, #CE7D1E) !important;
}

.pcr-client-empty__icon .fas {
    font-size: 1rem !important;
    line-height: 1 !important;
}

/* Fuente oficial: icono visible y alineado con el texto. */
.pcr-client-shell__source-icon {
    width: 2.1rem !important;
    min-width: 2.1rem !important;
    height: 2.1rem !important;
    min-height: 2.1rem !important;
    flex: 0 0 2.1rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: var(--pcr-ochre, #CE7D1E) !important;
    color: #FFFFFF !important;
}

.pcr-client-shell__source-icon .fas {
    font-size: .9rem !important;
    line-height: 1 !important;
}

/* Acción: siempre visible; cuando está deshabilitada se comunica visualmente. */
.pcr-client-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .35rem !important;
    min-width: 220px !important;
    min-height: 44px !important;
    padding: .625rem 1rem !important;
    border: 1px solid var(--pcr-ochre, #CE7D1E) !important;
    border-radius: var(--pcr-radius-md, .625rem) !important;
    background: var(--pcr-ochre, #CE7D1E) !important;
    color: #FFFFFF !important;
    font-family: var(--pcr-font-family, "Montserrat", sans-serif) !important;
    font-weight: 800 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.pcr-client-action:disabled {
    opacity: .48 !important;
    cursor: not-allowed !important;
    background: var(--pcr-surface-muted, #F0F0EF) !important;
    color: var(--pcr-text-muted, #5F6368) !important;
    border-color: var(--pcr-border, #D8D8D6) !important;
    box-shadow: none !important;
}

.pcr-client-action:not(:disabled):hover,
.pcr-client-action:not(:disabled):focus-visible {
    background: var(--pcr-action-hover, #E0A04A) !important;
    border-color: var(--pcr-action-hover, #E0A04A) !important;
    color: #FFFFFF !important;
}

.pcr-client-action .fas {
    display: inline-block !important;
    font-size: .9rem !important;
    line-height: 1 !important;
}

/* Estado del footer: mantener visible la leyenda incluso con acción deshabilitada. */
.pcr-client-shell__footer-status {
    display: inline-flex !important;
    align-items: center !important;
    min-width: 0 !important;
}

.pcr-client-shell__footer-status-dot {
    width: .55rem !important;
    min-width: .55rem !important;
    height: .55rem !important;
    min-height: .55rem !important;
    border-radius: 50% !important;
    background: var(--pcr-text-muted, #5F6368) !important;
}
