/* Barra de carga unificada del POS (sustituye spinners circulares). */

.pos-loading-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.pos-loading-bar--lg {
    height: 28px;
    border-radius: 0.25rem;
}

.pos-loading-bar--sm {
    height: 6px;
}

.pos-loading-bar__fill {
    width: 0;
    min-width: 0;
    transition: width 0.28s ease-out;
}

.pos-loading-bar__fill--with-pct {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pos-loading-bar--lg .pos-loading-bar__fill--with-pct {
    font-size: 0.875rem;
}

.pos-loading-inline {
    width: 100%;
}

.pos-loading-inline__title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: inherit;
}

.pos-loading-inline__hint {
    line-height: 1.35;
}

.pos-loading-inline--compact .pos-loading-bar {
    margin-top: 0.35rem;
}

.pos-loading-overlay-panel {
    font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    text-align: center;
    background: #fff;
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    min-width: 280px;
    max-width: 440px;
}

.pos-loading-overlay-panel__title {
    font-size: 1rem;
    font-weight: 600;
    color: #343a40;
}

.appointment-matricula-loading-box,
.portal-matricula-loading {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.appointment-matricula-loading-box .pos-loading-bar,
.portal-matricula-loading .pos-loading-bar {
    width: 100%;
}

html[data-theme='dark'] .pos-loading-overlay-panel {
    background: #1e293b;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.45);
}

html[data-theme='dark'] .pos-loading-overlay-panel__title {
    color: #f1f5f9;
}

html[data-theme='dark'] .pos-loading-bar {
    background: rgba(255, 255, 255, 0.12);
}
