/*
 * Páginas de formulario — header limpio + card blanco
 */

.lib-form-page.lib-page-layout.main-content {
    margin-top: 0.5rem !important;
    border-radius: 12px !important;
    overflow: visible !important;
    box-shadow: none;
    background: transparent;
}

.lib-form-page .lib-page-layout__container {
    margin-top: 0 !important;
    padding: 0 !important;
}

.lib-form-page .lib-page-card {
    border: none !important;
    box-shadow: 0 2px 12px rgba(13, 59, 102, 0.06) !important;
    border-radius: 12px !important;
    background: #fff !important;
    overflow: visible !important;
}

.lib-form-page .lib-page-card__body,
.lib-form-page .lib-form-body {
    overflow: visible !important;
}

@media (max-width: 1199.98px) {
    .lib-form-page.lib-table-has-mobile.lib-page-layout.main-content {
        margin-top: 0 !important;
        border-radius: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

.lib-form-page .lib-form-body {
    padding: 28px 28px 32px;
    background: #fff;
}

@media (max-width: 767.98px) {
    .lib-form-page .lib-form-body {
        padding: 20px 16px 28px;
    }
}

.lib-form-page .lib-form-intro {
    margin: 0 0 24px;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #514f4f !important;
}

.lib-form-page .lib-form-intro--muted {
    margin-top: -12px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: #64748b !important;
}

.lib-form-page .lib-form-field {
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.lib-form-page .lib-form-field:has(.lib-form-input-wrap--select.is-open) {
    z-index: 40;
}

.lib-form-page .lib-form-label,
#changePassModal .lib-form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151 !important;
}

.lib-form-page .lib-form-required {
    color: #dc3545;
}

.lib-form-page .lib-form-input-wrap,
#changePassModal .lib-form-input-wrap {
    display: flex;
    align-items: stretch;
    min-height: 52px;
    background: #ffffff;
    border: 1px solid #dbe1e8;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lib-form-page .lib-form-input-wrap:focus-within,
#changePassModal .lib-form-input-wrap:focus-within {
    border-color: #0d3b66;
    box-shadow: 0 0 0 3px rgba(13, 59, 102, 0.12);
}

.lib-form-page .lib-form-input-wrap.is-invalid,
#changePassModal .lib-form-input-wrap.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

.lib-form-page .lib-form-input,
.lib-form-page .lib-form-select,
#changePassModal .lib-form-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 52px;
    border: none !important;
    background: transparent !important;
    color: #111827 !important;
    font-size: 0.9375rem;
    padding: 0 14px;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.lib-form-page .lib-form-input::placeholder,
#changePassModal .lib-form-input::placeholder {
    color: #9ca3af;
}

.lib-form-page .lib-form-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 40px !important;
}

.lib-form-page .lib-form-select option {
    color: #111827;
    background: #ffffff;
    padding: 12px 14px;
    font-size: 0.9375rem;
}

.lib-form-page .lib-form-field-error {
    display: block;
    margin-top: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #dc3545;
}

/* Select personalizado */
.lib-form-page .lib-form-input-wrap--select {
    overflow: visible;
    position: relative;
    z-index: 1;
}

.lib-form-page .lib-form-input-wrap--select.is-open {
    z-index: 20;
    border-color: #0d3b66;
    box-shadow: 0 0 0 3px rgba(13, 59, 102, 0.12);
}

.lib-form-page .lib-form-custom-select {
    position: relative;
    width: 100%;
}

.lib-form-page .lib-form-custom-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    border: none;
    background: transparent;
    color: #111827;
    font-size: 0.9375rem;
    text-align: left;
    cursor: pointer;
}

.lib-form-page .lib-form-custom-select__value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lib-form-page .lib-form-custom-select__placeholder {
    color: #9ca3af;
}

.lib-form-page .lib-form-custom-select__chevron {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    margin-left: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s ease;
}

.lib-form-page .lib-form-custom-select.is-open .lib-form-custom-select__chevron {
    transform: rotate(180deg);
}

.lib-form-page .lib-form-custom-select__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #ffffff;
    border: 1px solid #dbe1e8;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    max-height: 220px;
    overflow-y: auto;
    z-index: 50;
}

.lib-form-page .lib-form-custom-select__option {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #111827;
    font-size: 0.9375rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.lib-form-page .lib-form-custom-select__option:hover,
.lib-form-page .lib-form-custom-select__option.is-selected {
    background: #dbeafe;
    color: #0d3b66;
}

.lib-form-page .lib-form-input-wrap--actions .lib-form-input,
#changePassModal .lib-form-input-wrap--actions .lib-form-input {
    padding-right: 8px;
}

.lib-form-page .lib-form-input-actions,
#changePassModal .lib-form-input-actions {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
    border-left: 1px solid #dbe1e8;
    background: #f8fafc;
}

.lib-form-page .lib-form-icon-btn,
#changePassModal .lib-form-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    padding: 0;
    border: none;
    background: transparent;
    color: #0d3b66;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.lib-form-page .lib-form-icon-btn:hover,
#changePassModal .lib-form-icon-btn:hover {
    background: #eef2f7;
    color: #0a3258;
}

.lib-form-page .lib-form-icon-btn + .lib-form-icon-btn,
#changePassModal .lib-form-icon-btn + .lib-form-icon-btn {
    border-left: 1px solid #dbe1e8;
}

.lib-form-page .lib-form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
    padding-top: 8px;
}

.lib-form-page .lib-form-btn-primary,
#changePassModal .lib-form-btn-primary {
    min-height: 52px;
    padding: 0 24px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.975rem;
    color: #ffffff !important;
    background: linear-gradient(135deg, #0d3b66, #1a5a96) !important;
    border: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lib-form-page .lib-form-btn-primary:hover:not(:disabled),
#changePassModal .lib-form-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(13, 59, 102, 0.28);
    color: #ffffff !important;
    background: linear-gradient(135deg, #0a3258, #164d7a) !important;
}

.lib-form-page .lib-form-btn-primary:disabled,
.lib-form-page .lib-form-btn-primary:disabled:hover {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: linear-gradient(135deg, #6b7280, #9ca3af) !important;
}

.lib-form-page .lib-form-btn-secondary {
    min-height: 52px;
    padding: 0 24px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.975rem;
    color: #0d3b66 !important;
    background: #fff !important;
    border: 1px solid #dbe1e8 !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.lib-form-page .lib-form-btn-secondary:hover {
    background: #f8fafc !important;
    border-color: #0d3b66 !important;
    color: #0d3b66 !important;
}

/* Tabs móvil — Ver / Agregar usuarios */
@media (min-width: 1200px) {
    .lib-users-mobile-tabs,
    .lib-users-mobile-tabs-slot {
        display: none !important;
    }
}

@media (max-width: 1199.98px) {
    .lib-users-mobile-tabs {
        display: flex;
        gap: 0;
        width: 100%;
        padding: 0 8px;
        background: #fff;
        border-bottom: 1px solid #e2e8f0;
    }

    .lib-table-movil-toolbar .lib-users-mobile-tabs {
        padding: 0 8px;
        margin: 0 -4px 10px;
        width: calc(100% + 8px);
    }

    .lib-users-mobile-tabs__item {
        flex: 1 1 0;
        min-width: 0;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        padding: 10px 8px 12px;
        border: none;
        border-radius: 0;
        font-size: 0.8125rem;
        font-weight: 600;
        line-height: 1.2;
        text-align: center;
        text-decoration: none;
        color: #64748b;
        background: transparent;
        transition: color 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .lib-users-mobile-tabs__item::after {
        content: '';
        position: absolute;
        left: 12%;
        right: 12%;
        bottom: 0;
        height: 3px;
        border-radius: 3px 3px 0 0;
        background: transparent;
        transition: background 0.2s ease;
    }

    .lib-users-mobile-tabs__item:active {
        color: #475569;
    }

    .lib-users-mobile-tabs__item.is-active {
        color: #0d3b66;
        background: transparent;
    }

    .lib-users-mobile-tabs__item.is-active::after {
        background: #0d3b66;
    }

    .lib-form-page.lib-table-has-mobile .lib-users-mobile-tabs-slot {
        padding: 0;
        background: #fff;
    }
}

/* Wizard escuelas — barra de pasos (separada del banner) */
.lib-form-page.lib-school-wizard .lib-school-steps-bar {
    margin: 24px 28px 0;
    padding: 22px 28px 24px;
    background: #fff;
    border: none;
    border-radius: 0;
}

.lib-school-steps-bar__heading {
    margin: 0 0 16px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    text-align: center;
}

.lib-school-steps {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

.lib-school-steps__track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

.lib-school-steps__item {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    max-width: 112px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.lib-school-steps__item:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 10px;
    left: calc(50% + 13px);
    right: calc(-50% + 13px);
    height: 3px;
    background: #dbe3ec;
    z-index: 0;
}

.lib-school-steps__item.completed:not(:last-child)::before {
    background: #0d3b66;
}

.lib-school-steps__dot {
    position: relative;
    z-index: 1;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid #cbd5e1;
    background: #fff;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lib-school-steps__item.active .lib-school-steps__dot {
    background: #0d3b66;
    border-color: #0d3b66;
    box-shadow: 0 0 0 5px rgba(13, 59, 102, 0.14);
}

.lib-school-steps__item.completed .lib-school-steps__dot {
    background: #22c55e;
    border-color: #22c55e;
}

.lib-school-steps__label {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
    color: #94a3b8;
    padding: 0 2px;
}

.lib-school-steps__item.active .lib-school-steps__label {
    color: #0d3b66;
    font-weight: 700;
}

.lib-school-steps__item.completed .lib-school-steps__label {
    color: #475569;
}

.lib-form-page.lib-school-wizard .lib-school-wizard-body {
    background: #fff;
    min-height: 320px;
    padding-top: 24px;
}

.lib-form-step-title,
.lib-school-wizard .lib-form-body .section-title {
    margin: 0 0 8px;
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827 !important;
}

.lib-school-wizard .lib-form-body .section-subtitle {
    margin: 0 0 20px;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #514f4f !important;
}

.lib-form-page .lib-form-input-wrap--readonly {
    background: #f8fafc;
}

.lib-form-page .lib-form-input-wrap--readonly .lib-form-input {
    color: #64748b !important;
    cursor: default;
}

/* Selector de archivos — logo y banner */
.lib-form-page .lib-form-file-picker {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 14px;
    min-height: 112px;
    padding: 14px;
    background: #fff;
    border: 1px solid #dbe1e8;
    border-radius: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lib-form-page .lib-form-file-picker:focus-within,
.lib-form-page .lib-form-file-picker.has-file {
    border-color: #0d3b66;
    box-shadow: 0 0 0 3px rgba(13, 59, 102, 0.1);
}

.lib-form-page .lib-form-file-picker__preview {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}

.lib-form-page .lib-form-file-picker--logo .lib-form-file-picker__preview {
    width: 84px;
    height: 84px;
}

.lib-form-page .lib-form-file-picker--banner .lib-form-file-picker__preview {
    width: 120px;
    height: 84px;
}

.lib-form-page .lib-form-file-picker__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.lib-form-page .lib-form-file-picker__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lib-form-page .lib-form-file-picker__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.lib-form-page .lib-form-file-picker__name {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.35;
    word-break: break-word;
}

.lib-form-page .lib-form-file-picker.has-file .lib-form-file-picker__name {
    color: #0d3b66;
}

.lib-form-page .lib-form-file-picker__hint {
    margin: 0 0 8px;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #94a3b8;
}

.lib-form-page .lib-form-file-picker__btn {
    align-self: flex-start;
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0d3b66 !important;
    background: #fff !important;
    border: 1px solid #0d3b66 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

.lib-form-page .lib-form-file-picker__btn:hover {
    color: #fff !important;
    background: #0d3b66 !important;
}

.lib-form-page .lib-form-file-picker__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 575.98px) {
    .lib-form-page .lib-form-file-picker {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
    }

    .lib-form-page .lib-form-file-picker__preview {
        width: 100% !important;
        height: 120px !important;
    }

    .lib-form-page .lib-form-file-picker--logo .lib-form-file-picker__preview {
        max-width: 120px;
        margin: 0 auto;
    }
}

.lib-form-page .lib-form-input-wrap--color {
    justify-content: center;
    padding: 8px 14px;
}

.lib-form-page .lib-form-input--color {
    width: 100%;
    height: 36px;
    padding: 0;
    border: none !important;
    background: transparent !important;
    cursor: pointer;
}

/* Selector de color — fondo y texto */
.lib-form-page .lib-form-color-picker {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 14px;
    min-height: 96px;
    padding: 14px;
    background: #fff;
    border: 1px solid #dbe1e8;
    border-radius: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lib-form-page .lib-form-color-picker:focus-within {
    border-color: #0d3b66;
    box-shadow: 0 0 0 3px rgba(13, 59, 102, 0.1);
}

.lib-form-page .lib-form-color-picker__swatch {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #0d3b66;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.lib-form-page .lib-form-color-picker__swatch--text {
    background: #f1f5f9;
}

.lib-form-page .lib-form-color-picker__sample {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    user-select: none;
}

.lib-form-page .lib-form-color-picker__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.lib-form-page .lib-form-color-picker__hex {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #111827;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.lib-form-page .lib-form-color-picker__hint {
    margin: 0 0 8px;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #94a3b8;
}

.lib-form-page .lib-form-color-picker__btn {
    align-self: flex-start;
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0d3b66 !important;
    background: #fff !important;
    border: 1px solid #0d3b66 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

.lib-form-page .lib-form-color-picker__btn:hover {
    color: #fff !important;
    background: #0d3b66 !important;
}

.lib-form-page .lib-form-color-picker__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 575.98px) {
    .lib-form-page .lib-form-color-picker {
        min-height: 0;
    }
}

.lib-form-page .lib-form-switch-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.lib-form-page .lib-form-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0 4px;
    flex-shrink: 0;
}

.lib-form-page .lib-form-switch .form-check-input {
    width: 2.5em;
    height: 1.25em;
    margin: 0;
    cursor: pointer;
}

.lib-form-page .lib-form-switch-label {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569 !important;
    white-space: nowrap;
}

.lib-form-page .lib-form-switch-input {
    flex: 1 1 160px;
    min-width: 0;
}

@media (max-width: 1199.98px) {
    .lib-form-page.lib-school-wizard.lib-table-has-mobile .lib-school-steps-bar {
        margin: 16px 16px 0;
        padding: 18px 16px 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .lib-form-page.lib-school-wizard.lib-table-has-mobile .lib-school-steps-bar::-webkit-scrollbar {
        display: none;
    }

    .lib-form-page.lib-school-wizard.lib-table-has-mobile .lib-school-steps {
        max-width: none;
        min-width: min(100%, 420px);
    }

    .lib-form-page.lib-school-wizard.lib-table-has-mobile .lib-school-steps__item {
        max-width: 80px;
    }

    .lib-form-page.lib-school-wizard.lib-table-has-mobile .lib-school-steps__label {
        font-size: 0.6875rem;
    }
}

.lib-form-page .lib-form-step-subtitle {
    margin: 0 0 16px;
    padding-bottom: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0d3b66;
    border-bottom: 1px solid #e8edf2;
}

.lib-form-page .lib-school-wizard-panel + .lib-school-wizard-panel {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid #e8edf2;
}

.lib-form-page .lib-form-tag-list--grados:empty::before {
    content: "Aún no hay grados agregados";
}

.lib-form-page .lib-form-tag-list--grupos:empty::before {
    content: "Aún no hay grupos agregados";
}

.lib-form-page .lib-form-tag-list:not(.lib-form-tag-list--grados):not(.lib-form-tag-list--grupos):empty::before {
    content: "Aún no hay niveles agregados";
}

/* Paquetes de libros — mismos inputs, misma distribución */
.lib-form-page .lib-form-btn-save-school {
    min-width: 200px;
    padding: 0 32px;
}

.lib-form-page .lib-form-paquete-block {
    padding: 20px;
    margin-bottom: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px;
}

.lib-form-page .lib-form-paquete-block.card-box {
    background: #f8fafc !important;
}

.lib-form-page .lib-form-paquete-heading {
    margin: 0 0 20px;
    padding: 0 0 12px;
    border-bottom: 1px solid #e8edf2;
}

.lib-form-page .lib-form-paquete-add-wrap {
    display: flex;
    justify-content: flex-end;
    margin: -4px 0 20px;
}

.lib-form-page .lib-form-paquete-add-btn {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.8125rem;
    border-radius: 12px !important;
    white-space: nowrap;
}

.lib-form-page .lib-form-paquete-item + .lib-form-paquete-item {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8edf2;
}

.lib-form-page .lib-form-paquete-item--extra {
    position: relative;
    padding-top: 8px;
    padding-right: 44px;
}

.lib-form-page .lib-form-paquete-remove {
    position: absolute;
    top: 12px;
    right: 0;
    left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lib-form-page .lib-form-paquete-remove:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
}

@media (max-width: 767.98px) {
    .lib-form-page .lib-form-paquete-add-wrap {
        justify-content: stretch;
    }

    .lib-form-page .lib-form-paquete-add-btn {
        width: 100%;
    }
}

/* Wizard — fila agregar + etiquetas (niveles) */
.lib-form-page .lib-form-add-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 6px;
    align-items: center;
    margin-bottom: 20px;
}

.lib-form-page .lib-form-add-row__label {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
}

.lib-form-page .lib-form-add-row__input {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
}

.lib-form-page .lib-form-add-row__action {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
}

.lib-form-page .lib-form-add-row__btn {
    min-width: 160px;
    min-height: 52px;
    height: 52px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px !important;
}

.lib-form-page .lib-form-tag-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 52px;
    margin-bottom: 24px;
}

.lib-form-page .lib-form-tag-list:empty::before {
    display: block;
    padding: 18px 16px;
    text-align: center;
    font-size: 0.875rem;
    color: #94a3b8;
    background: #f8fafc;
    border: 1px dashed #dbe1e8;
    border-radius: 14px;
}

.lib-form-page .lib-form-tag.dynamic-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin: 0 !important;
    margin-left: 0 !important;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    cursor: default;
}

.lib-form-page .lib-form-tag.dynamic-item::before {
    content: none !important;
    display: none !important;
}

.lib-form-page .lib-form-tag__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 1.125rem;
    line-height: 1;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.lib-form-page .lib-form-tag__label {
    flex: 1;
    min-width: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
}

.lib-form-page .lib-form-tag__remove {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    color: #64748b;
    line-height: 0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lib-form-page .lib-form-tag__remove:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
}

.lib-form-page .lib-form-actions--between {
    justify-content: space-between;
}

@media (max-width: 575.98px) {
    .lib-form-page .lib-form-add-row {
        grid-template-columns: 1fr;
    }

    .lib-form-page .lib-form-add-row__label {
        grid-column: 1;
        grid-row: 1;
    }

    .lib-form-page .lib-form-add-row__input {
        grid-column: 1;
        grid-row: 2;
    }

    .lib-form-page .lib-form-add-row__action {
        grid-column: 1;
        grid-row: 3;
        width: 100%;
    }

    .lib-form-page .lib-form-add-row__btn {
        width: 100%;
    }
}

/* SweetAlert — centrado vertical y horizontal en registro de escuelas */
body.lib-wizard-schools-page .swal2-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding: 1rem !important;
    margin: 0 !important;
    grid-template: none !important;
    grid-template-rows: none !important;
    grid-template-columns: none !important;
    grid-template-areas: none !important;
    overflow: hidden !important;
}

body.lib-wizard-schools-page .swal2-container::after {
    content: none !important;
    display: none !important;
    height: 0 !important;
}

body.lib-wizard-schools-page .swal2-container > .swal2-popup {
    position: relative !important;
    grid-column: unset !important;
    grid-row: unset !important;
    align-self: center !important;
    justify-self: center !important;
    margin: 0 !important;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

/* Entregas */
.lib-entregas-page .lib-entregas-body {
    padding: 24px 28px 28px;
}

.lib-entregas-heading {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.lib-entregas-lead {
    margin: 0.35rem 0 1rem;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

.lib-entregas-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 32px;
    align-items: start;
}

.lib-entregas-scan,
.lib-entregas-panel {
    min-width: 0;
}

.lib-entregas-scan__viewport {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #111827;
    min-height: 320px;
}

.lib-entregas-page .lib-entregas-reader {
    width: 100%;
    min-height: 320px;
    margin: 0;
}

.lib-entregas-page #reader video {
    width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: cover;
}

.lib-entregas-scan__status {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: #e5e7eb;
    background: rgba(17, 24, 39, 0.75);
    text-align: center;
}

.lib-entregas-scan__status.is-error { color: #fca5a5; }
.lib-entregas-scan__status.is-success { color: #86efac; }

.lib-entregas-link-btn {
    margin-top: 0.75rem;
    padding: 0;
    border: none;
    background: none;
    color: #0d3b66;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lib-entregas-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lib-entregas-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lib-entregas-panel__row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.lib-entregas-panel__input-wrap {
    flex: 1;
    min-width: 0;
}

.lib-entregas-btn {
    flex-shrink: 0;
    min-width: 88px;
    padding: 0 1.125rem;
    border: none;
    border-radius: 10px;
    background: #0d3b66;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.lib-entregas-btn:hover { background: #0a2f52; }

.lib-entregas-btn--outline {
    background: #fff;
    color: #0d3b66;
    border: 1px solid #cbd5e1;
}

.lib-entregas-btn--outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.lib-entregas-btn--deliver {
    background: #047857 !important;
    color: #fff !important;
    min-width: 170px;
}

.lib-entregas-btn--deliver:hover {
    background: #065f46 !important;
}

.lib-entregas-list__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
}

.lib-entregas-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: #94a3b8;
    font-size: 0.75rem;
}

.lib-entregas-divider::before,
.lib-entregas-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.lib-entregas-upload {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    background: #fafbfc;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.lib-entregas-upload:hover {
    border-color: #0d3b66;
    background: #f8fafc;
}

.lib-entregas-upload__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #e8eef5;
    color: #0d3b66;
}

.lib-entregas-upload__text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.lib-entregas-upload__text strong {
    font-size: 0.9375rem;
    color: #0f172a;
    font-weight: 600;
}

.lib-entregas-upload__text small {
    font-size: 0.8125rem;
    color: #64748b;
}

.lib-entregas-help,
.lib-entregas-feedback {
    margin-top: 1rem;
    padding: 0.75rem 0.875rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.lib-entregas-help {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.lib-entregas-feedback {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0369a1;
}

.lib-entregas-feedback.is-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.lib-entregas-feedback__text {
    margin: 0;
}

/* Detalle del pedido — ancho completo */
.lib-entregas-body.is-detail-mode {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 11rem);
    color: #0f172a;
}

.lib-entregas-body.is-detail-mode .lib-entregas-list-view,
.lib-entregas-body.is-detail-mode .lib-entregas-list,
.lib-entregas-body.is-detail-mode .lib-entregas-detail {
    color: #0f172a;
}

.lib-entregas-detail-view {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.lib-entregas-detail {
    width: 100%;
    max-width: none;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lib-entregas-detail__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.lib-entregas-detail__label {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lib-entregas-detail__folio {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
}

.lib-entregas-badge {
    flex-shrink: 0;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}

.lib-entregas-badge--paid,
.lib-entregas-badge--pagado { background: #ecfdf5; color: #047857; }
.lib-entregas-badge--pending,
.lib-entregas-badge--pendiente { background: #fffbeb; color: #b45309; }
.lib-entregas-badge--cancelled,
.lib-entregas-badge--cancelado { background: #fef2f2; color: #b91c1c; }
.lib-entregas-badge--delivered,
.lib-entregas-badge--entregado { background: #eff6ff; color: #1d4ed8; }

.lib-entregas-detail__list {
    margin: 0;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2.5rem;
    align-content: start;
}

.lib-entregas-detail__row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.lib-entregas-detail__row--wide {
    grid-column: 1 / -1;
}

.lib-entregas-detail__row dt {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
}

.lib-entregas-detail__row dd {
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
    word-break: break-word;
}

.lib-entregas-detail__actions {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.lib-entregas-detail__actions .lib-entregas-btn {
    min-width: 180px;
    min-height: 44px;
}

@media (max-width: 991.98px) {
    .lib-entregas-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .lib-entregas-scan__viewport,
    .lib-entregas-page .lib-entregas-reader {
        min-height: 260px;
    }

    .lib-entregas-detail__list {
        grid-template-columns: 1fr;
    }

    .lib-entregas-detail__row--wide {
        grid-column: auto;
    }

    .lib-entregas-body.is-detail-mode {
        min-height: auto;
    }
}

@media (max-width: 575.98px) {
    .lib-entregas-page .lib-entregas-body {
        padding: 18px 16px 22px;
    }

    .lib-entregas-panel__row {
        flex-direction: column;
    }

    .lib-entregas-btn {
        width: 100%;
        min-height: 44px;
    }

    .lib-entregas-detail__list {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .lib-entregas-detail__row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .lib-entregas-detail__row--wide {
        grid-column: auto;
    }

    .lib-entregas-detail__actions .lib-entregas-btn {
        width: 100%;
    }

    .lib-entregas-body.is-detail-mode {
        min-height: auto;
    }
}

/* Entregas — tabs, lista, modal INE */
.lib-entregas-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1.25rem 0 1rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.lib-entregas-tabs__btn {
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
}

.lib-entregas-tabs__btn.is-active {
    background: #eff6ff;
    color: #0d3b66;
}

.lib-entregas-tab-panel { display: none; }
.lib-entregas-tab-panel.is-active { display: block; }

.lib-entregas-list-view {
    flex: 1;
    width: 100%;
    color: #0f172a;
}

.lib-entregas-list {
    width: 100%;
    color: #0f172a;
}

.lib-entregas-list-view .lib-entregas-detail__folio,
.lib-entregas-list-view .lib-entregas-list__title,
.lib-entregas-list-view h2,
.lib-entregas-list-view h3 {
    color: #0f172a !important;
}

.lib-entregas-list-view .lib-entregas-detail__label,
.lib-entregas-list-view .lib-entregas-lead,
.lib-entregas-list-view .lib-entregas-list__meta {
    color: #64748b !important;
}

.lib-entregas-list__items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.lib-entregas-list__item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.75rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
    color: #0f172a;
}

.lib-entregas-list__title {
    font-size: 1rem;
    margin: 0 0 0.25rem;
    color: #0f172a !important;
}

.lib-entregas-list__meta {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b !important;
}

.lib-entregas-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lib-entregas-modal[hidden] { display: none !important; }

.lib-entregas-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.lib-entregas-modal__dialog {
    position: relative;
    width: min(560px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.lib-entregas-modal__head,
.lib-entregas-modal__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.lib-entregas-modal__foot {
    border-bottom: none;
    border-top: 1px solid #e2e8f0;
    justify-content: flex-end;
}

.lib-entregas-modal__title {
    margin: 0;
    font-size: 1.1rem;
    color: #0d3b66;
}

.lib-entregas-modal__close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
}

.lib-entregas-modal__body { padding: 1.25rem; }

.lib-entregas-ine-steps {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.lib-entregas-ine-step {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #f1f5f9;
}

.lib-entregas-ine-step.is-active {
    background: #dbeafe;
    color: #1d4ed8;
}

.lib-entregas-ine-video {
    display: block;
    width: 100%;
    max-height: 280px;
    margin: 0.75rem 0;
    border-radius: 0.75rem;
    background: #0f172a;
    object-fit: cover;
}

.lib-entregas-ine-capture__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.lib-entregas-ine-capture__actions .lib-entregas-upload {
    margin-top: 0;
    flex: 1 1 140px;
}

.lib-entregas-upload--camera {
    margin-top: 0.75rem;
    cursor: pointer;
}

.lib-entregas-ine-preview {
    margin-top: 1rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.lib-entregas-ine-preview img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    background: #f8fafc;
}

.lib-entregas-ine-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.lib-entregas-ine-form .lib-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.lib-entregas-ine-form .lib-form-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.lib-entregas-ine-required {
    color: #dc2626;
    font-weight: 700;
    line-height: 1;
}

.lib-entregas-ine-form .lib-form-input--underline {
    width: 100%;
    height: auto;
    min-height: 44px;
    padding: 0.65rem 0 0.4rem;
    border: none;
    border-bottom: 2px solid #94a3b8;
    border-radius: 0;
    background: transparent;
    color: #0f172a;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.lib-entregas-ine-form .lib-form-input--underline::placeholder {
    color: #94a3b8;
    font-size: 0.9rem;
}

.lib-entregas-ine-form .lib-form-input--underline:hover {
    border-bottom-color: #64748b;
}

.lib-entregas-ine-form .lib-form-input--underline:focus {
    border-bottom-color: #2563eb;
    box-shadow: none;
}

.lib-entregas-ine-form .lib-form-input--underline.is-autofill {
    border-bottom-color: #16a34a;
}

.lib-entregas-ine-form .lib-form-input--underline:invalid:not(:placeholder-shown) {
    border-bottom-color: #dc2626;
}

.lib-entregas-ocr-status.is-success {
    color: #15803d;
}

.lib-entregas-ocr-status.is-error {
    color: #b45309;
}

.lib-form-field--wide { grid-column: 1 / -1; }

.lib-entregas-ocr-status {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #64748b;
}

.lib-entregas-ine-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.lib-entregas-ine-gallery figure {
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.lib-entregas-ine-gallery img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.lib-entregas-ine-gallery figcaption {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    text-align: center;
    color: #64748b;
}

@media (max-width: 640px) {
    .lib-entregas-list__item {
        grid-template-columns: 1fr;
    }
    .lib-entregas-ine-form__grid {
        grid-template-columns: 1fr;
    }
}

/* Marca escolar — preview y UI dinámica con contraste */
.lib-school-banner-thumb {
    width: 160px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.lib-school-brand-preview {
    --school-primary: #0d3b66;
    --school-accent: #014f90;
    --school-on-primary: #ffffff;
    --school-on-surface: #014f90;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.lib-school-brand-preview__hero {
    padding: 1rem 1.1rem;
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.08)), var(--school-primary);
    color: var(--school-on-primary);
}

.lib-school-brand-preview__eyebrow {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.88;
}

.lib-school-brand-preview__hero-title {
    font-size: 1rem;
    font-weight: 800;
}

.lib-school-brand-preview__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    background: #f8fafc;
}

.lib-school-brand-preview__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--school-on-surface);
}

.lib-school-brand-preview__btn {
    border: none;
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    background: var(--school-primary);
    color: var(--school-on-primary);
    font-size: 0.78rem;
    font-weight: 700;
}

.lib-school-brand-preview__note {
    margin: 0;
    padding: 0.65rem 1rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #92400e;
    background: #fffbeb;
    border-top: 1px solid #fde68a;
}

.lib-form-page.lib-school-brand-active .lib-form-btn-primary,
.lib-school-modal.lib-school-brand-active .btn-primary,
.lib-school-modal.lib-school-brand-active #btnSaveConfig {
    background: var(--school-primary) !important;
    border-color: var(--school-primary) !important;
    color: var(--school-on-primary) !important;
}

.lib-form-page.lib-school-brand-active .lib-form-btn-primary:hover:not(:disabled),
.lib-school-modal.lib-school-brand-active .btn-primary:hover,
.lib-school-modal.lib-school-brand-active #btnSaveConfig:hover {
    filter: brightness(0.95);
    color: var(--school-on-primary) !important;
}

.lib-form-page.lib-school-brand-active .lib-form-step-title,
.lib-form-page.lib-school-brand-active .lib-school-steps__item.active .lib-school-steps__label {
    color: var(--school-on-surface);
}

.lib-form-page.lib-school-brand-active .lib-school-steps__item.active .lib-school-steps__dot,
.lib-form-page.lib-school-brand-active .lib-school-steps__item.completed .lib-school-steps__dot {
    background: var(--school-primary);
    border-color: var(--school-primary);
}

.lib-form-page.lib-school-brand-active .lib-form-color-picker__sample {
    color: var(--school-accent);
}

.lib-form-page.lib-school-brand-active .lib-form-color-picker:not(.lib-form-color-picker--text) .lib-form-color-picker__swatch {
    background-color: var(--school-primary) !important;
}

.lib-form-page.lib-school-brand-active .lib-form-color-picker:not(.lib-form-color-picker--text) .lib-form-color-picker__sample {
    color: var(--school-on-primary);
}

.lib-school-modal.lib-school-brand-active .modal-title {
    color: var(--school-on-surface);
}
