.it-input { width: 100%; margin-bottom: 4px; }

.it-input__box {
    position: relative;
    display: flex;
    align-items: center;
}

.it-input__field {
    width: 100%;
    height: 52px;
    padding: 0 14px;
    font-size: 1rem;
    font-weight: 400;
    color: #4b5563; /* gris medio: legible sin parecer negrita */
    background: #fff;
    border: 1.6px solid #d7dde5;
    border-radius: 12px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.it-input__field--icon { padding-left: 42px; }

.it-input__field:focus {
    border-color: var(--it-accent, #03335B);
    box-shadow: 0 0 0 3px var(--it-accent-soft, rgba(3, 51, 91,.15));
}

/* Etiqueta flotante */
.it-input__label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 1rem;
    pointer-events: none;
    transition: all .15s ease;
    background: transparent;
    padding: 0 4px;
}

.it-input__field--icon ~ .it-input__label { left: 40px; }

/* Sube la etiqueta al enfocar o si hay texto */
.it-input__field:focus ~ .it-input__label,
.it-input__field:not(:placeholder-shown) ~ .it-input__label {
    top: 0;
    left: 12px;
    transform: translateY(-50%) scale(.86);
    color: var(--it-accent, #03335B);
    background: #fff;
}

.it-input__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--it-accent, #03335B);
    font-size: 1rem;
    pointer-events: none;
}

.it-input__toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #98a2b3;
    cursor: pointer;
    font-size: 1rem;
    padding: 6px;
    line-height: 1;
}

    .it-input__toggle:hover { color: #4b5563; }

/* Estado error */
.it-input--error .it-input__field {
    border-color: #b42318;
}

    .it-input--error .it-input__field:focus {
        box-shadow: 0 0 0 3px rgba(180,35,24,.12);
    }

.it-input--error .it-input__field:focus ~ .it-input__label,
.it-input--error .it-input__field:not(:placeholder-shown) ~ .it-input__label {
    color: #b42318;
}

.it-input__error {
    color: #b42318;
    font-size: .82rem;
    margin: 4px 2px 0;
}

.it-input--disabled { opacity: .65; }
.it-input--disabled .it-input__field { background: #f3f4f6; cursor: not-allowed; }

/* Oculta las flechas nativas del navegador (usamos las propias). */
.it-number__field::-webkit-inner-spin-button,
.it-number__field::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.it-number__field {
    -moz-appearance: textfield;
    appearance: textfield;
    padding-right: 44px !important;
}

/* Flechas propias: siempre visibles, discretas y modernas. */
.it-number__steppers {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.it-number__step {
    width: 26px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    background: #f0f3f7;
    color: #7a8699;
    font-size: .6rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: background .12s, color .12s;
}

    .it-number__step:hover {
        background: var(--it-accent-bg, #E6EDF4);
        color: var(--it-accent, #03335B);
    }

    .it-number__step:active {
        transform: scale(.94);
    }

/* En los campos compactos (cabeceras y barras), las flechas, más pequeñas: no tapan la etiqueta ni el número. */
.it-compact .it-number__field, .it-compact.it-number .it-number__field { padding-right: 30px !important; }
.it-compact .it-number__steppers { right: 5px; gap: 1px; }
.it-compact .it-number__step { width: 20px; height: 14px; font-size: .5rem; border-radius: 4px; }

.it-select { position: relative; width: 100%; margin-bottom: 4px; outline: none; }

.it-select__box {
    position: relative;
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0 40px 0 14px;
    background: #fff;
    border: 1.6px solid #d7dde5;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.it-select--open .it-select__box,
.it-select:focus-within .it-select__box {
    border-color: var(--it-accent, #03335B);
    box-shadow: 0 0 0 3px var(--it-accent-soft, rgba(3, 51, 91,.15));
}

.it-select__value {
    font-size: 1rem;
    font-weight: 400;
    color: #4b5563; /* gris medio: legible sin parecer negrita */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .it-select__value--icon { padding-left: 28px; }
    .it-select__value--empty { color: transparent; }

.it-select__icon {
    position: absolute;
    left: 14px;
    color: var(--it-accent, #03335B);
    pointer-events: none;
}

.it-select__label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 1rem;
    pointer-events: none;
    transition: all .15s ease;
    padding: 0 4px;
}

.it-select__value--icon ~ .it-select__label { left: 40px; }

.it-select__label--float {
    top: 0;
    left: 12px;
    transform: translateY(-50%) scale(.86);
    color: var(--it-accent, #03335B);
    background: #fff;
}

.it-select__arrow {
    position: absolute;
    right: 14px;
    color: #98a2b3;
    transition: transform .15s;
    pointer-events: none;
}

/* X de limpiar (roja): aparece junto al chevron cuando hay valor y AllowClear */
.it-select__clearbtn {
    position: absolute;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #e53935;
    font-size: .8rem;
    cursor: pointer;
    transition: background .12s, color .12s;
    z-index: 1;
}

    .it-select__clearbtn:hover {
        background: #fdecea;
        color: #c62828;
    }

/* Con X visible, deja sitio para que el texto no quede debajo */
.it-select__box:has(.it-select__clearbtn) {
    padding-right: 62px;
}

.it-select--open .it-select__arrow { transform: rotate(180deg); }

.it-select__backdrop {
    position: fixed;
    inset: 0;
    z-index: 1190;
    background: transparent;
}

.it-select__panel {
    /* fixed + arranque fuera de pantalla: itDpPosition (JS) lo coloca bajo el
       input en coordenadas de viewport, así ningún modal con overflow lo recorta. */
    position: fixed;
    z-index: 5000;
    top: 0;
    left: -9999px;
    right: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(16,24,40,.14);
    overflow: hidden;
}

.it-select__search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f2f5;
    color: #98a2b3;
}

    .it-select__search input {
        border: none;
        outline: none;
        width: 100%;
        font-size: .95rem;
        color: #1f2937;
    }

.it-select__list { max-height: 240px; overflow-y: auto; }

/* Insignia opcional de la opción (ItOption.Badge): dorada, como la de partner de la cabecera. */
.it-select__badge {
    display: inline-flex; align-items: center; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
    background: linear-gradient(135deg, #f7d774, #d9a21b); color: #3d2c00;
    font-size: 10px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; vertical-align: middle;
}

/* Texto secundario de la opción (ItOption.Detalle), p. ej. el apodo del cliente. */
.it-select__detalle { margin-left: 6px; color: #64748b; font-size: .85em; font-weight: 400; }

.it-select__option {
    padding: 10px 14px;
    font-size: .95rem;
    color: #1f2937;
    cursor: pointer;
}

    .it-select__option:hover { background: #f5f7fa; }

/* La elegida, como en Effic (1-dic-2026): fondo azul muy claro y texto azul, no el gris oscuro de antes. */
.it-select__option--active {
    background: #eaf3fb;
    color: #4088BD;
    font-weight: 600;
}

.it-select__option--clear { color: #b42318; }

.it-select__empty { padding: 12px 14px; color: #98a2b3; font-size: .9rem; }

.it-select--error .it-select__box { border-color: #b42318; }
.it-select--error .it-select__label--float { color: #b42318; }

.it-select__error { color: #b42318; font-size: .82rem; margin: 4px 2px 0; }

.it-select--disabled { opacity: .65; pointer-events: none; }
.it-select--disabled .it-select__box { background: #f3f4f6; }

/* ============================================================
   ItDatePicker (16-nov-2026): campo + calendario en MODAL centrado.
   El modal (.it-dp__overlay) se lleva al <body> mientras está abierto
   (itDpModal en gesticoop.js): por eso todo va con clases propias y
   colores de :root, sin depender del contenedor del campo.
   ============================================================ */
.it-dp { position: relative; }

.it-dp__input { padding-right: 46px !important; }

/* El formato de ayuda solo se ve al escribir: sin foco la etiqueta ocupa su sitio. */
.it-dp__input::placeholder { color: transparent; }
.it-dp__input:focus::placeholder { color: #b3bcc8; }

/* Mes y Año: el campo no se escribe, se pulsa. */
.it-dp__input--lectura { cursor: pointer; caret-color: transparent; user-select: none; -webkit-user-select: none; }
.it-dp__input--lectura:disabled { cursor: not-allowed; }

.it-dp__caption {
    position: absolute;
    top: 5px;
    left: 12px;
    color: var(--it-muted);
    font-size: .7rem;
    font-weight: 600;
    line-height: 1;
    pointer-events: none;
}
.it-dp__box:has(.it-dp__caption) .it-dp__input { padding: 14px 34px 0 12px !important; }

.it-dp__label--float {
    top: 0 !important;
    left: 12px !important;
    transform: translateY(-50%) scale(.86) !important;
    color: var(--it-accent, #03335B);
    background: #fff;
}

.it-input--error .it-dp__label--float { color: #b42318; }

/* Icono del calendario: abre el modal. */
.it-dp__arrow {
    position: absolute;
    right: 8px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 9px;
    background: none;
    color: #98a2b3;
    cursor: pointer;
    font-size: .9rem;
    transition: background .12s, color .12s;
}

    .it-dp__arrow:hover:not(:disabled) { background: #f0f3f7; color: var(--it-accent, #03335B); }
    .it-dp__arrow:disabled { cursor: not-allowed; }

/* Mes y año: todo el campo es el botón, como un desplegable (la flecha solo se ve; el clic va al campo). */
.it-dp--mes .it-dp__input--lectura, .it-dp--anio .it-dp__input--lectura { cursor: pointer; }
.it-dp--mes .it-dp__arrow, .it-dp--anio .it-dp__arrow { pointer-events: none; background: none !important; width: 26px; font-size: .75rem; color: #7a8699; }
.it-dp--mes:hover .it-dp__box .it-input__field, .it-dp--anio:hover .it-dp__box .it-input__field { border-color: #b8c4d2; }

/* Con el modal abierto, el campo se queda marcado (se ve al cerrar y detrás del fondo). */
.it-dp--open .it-dp__arrow { color: var(--it-accent, #03335B); }

.it-dp--open .it-dp__box .it-input__field {
    border-color: var(--it-accent, #03335B);
    box-shadow: 0 0 0 3px var(--it-accent-soft, rgba(3, 51, 91,.15));
}

/* Ancla y portal no ocupan sitio: solo llevan el modal. */
.it-dp__anchor, .it-dp__portal { display: contents; }

/* ---- Modal ---- */

/* Por encima de todo: ItModalHost (99990 / 1000000), ConfirmModal (1000100), la pantalla de
   licencia (999999), EVA (30000) y los filtros de Radzen (2000). Debajo de las notificaciones
   (.rz-notification, 2000000). */
.it-dp__overlay {
    position: fixed;
    inset: 0;
    z-index: 1000200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    background: rgba(10, 25, 41, .45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    overscroll-behavior: contain;
    animation: itDpFondo .16s ease-out;
}

.it-dp__dialog {
    --dp-accent: var(--it-action, #03335B);
    --dp-ink: #1d2939;
    --dp-muted: #667085;
    --dp-soft: #98a2b3;
    --dp-line: #eaecf0;
    --dp-hover: #f2f5f9;
    --dp-tint: var(--it-tint, #E8EEF5);
    position: relative;
    box-sizing: border-box;
    width: min(360px, 100%);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 18px 14px;
    border-radius: 16px;
    background: #fff;
    color: var(--dp-ink);
    font-family: inherit;
    text-align: left;
    box-shadow: 0 24px 56px -12px rgba(16, 24, 40, .38), 0 2px 8px rgba(16, 24, 40, .08);
    animation: itDpEntra .2s cubic-bezier(.2, .8, .25, 1);
}

.it-dp__dialog--mes, .it-dp__dialog--anio { width: min(340px, 100%); }

.it-dp__dialog:focus { outline: none; }

@keyframes itDpFondo {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes itDpEntra {
    from { opacity: 0; transform: translateY(8px) scale(.97); }
    to { opacity: 1; transform: none; }
}

@keyframes itDpSube {
    from { transform: translateY(100%); }
    to { transform: none; }
}

/* Asa de la hoja inferior (solo en el móvil). */
.it-dp__asa { display: none; }

/* Cabecera: qué se elige y lo elegido, en grande. */
.it-dp__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--dp-line);
}

.it-dp__head-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.it-dp__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--dp-muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .it-dp__eyebrow::before {
        content: "";
        flex: 0 0 auto;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--marca-verde, #4CAF50);
    }

.it-dp__resumen {
    color: var(--dp-accent);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
}

.it-dp__resumen--vacio { color: var(--dp-soft); font-weight: 600; }

.it-dp__x {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #f2f4f7;
    color: #475467;
    font-size: .95rem;
    cursor: pointer;
    transition: background .12s, color .12s;
}

    .it-dp__x:hover { background: #e4e7ec; color: var(--dp-ink); }

/* «Escribe la fecha» (Modo Dia). */
.it-dp__escribir {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 0 12px;
    margin-bottom: 12px;
    box-sizing: border-box;
    border: 1.5px solid #d7dde5;
    border-radius: 10px;
    background: #fff;
    color: var(--dp-soft);
    transition: border-color .15s, box-shadow .15s;
}

    .it-dp__escribir:focus-within {
        border-color: var(--dp-accent);
        box-shadow: 0 0 0 3px rgba(3, 51, 91, .14);
    }

.it-dp__escribir--error, .it-dp__escribir--error:focus-within { border-color: #b42318; box-shadow: none; }

.it-dp__typed {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--dp-ink);
    font: inherit;
    font-size: .95rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
}

    .it-dp__typed::placeholder { color: #b3bcc8; }

.it-dp__typed-error { margin: -6px 2px 10px; color: #b42318; font-size: .8rem; }

/* Flechas y título (mes y año → meses → años). */
.it-dp__nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 8px;
}

.it-dp__nav {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #475467;
    font-size: .8rem;
    cursor: pointer;
    transition: background .12s, color .12s;
}

    .it-dp__nav:hover:not(:disabled) { background: var(--dp-hover); color: var(--dp-accent); }
    .it-dp__nav:disabled { opacity: .3; cursor: default; }

.it-dp__title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--dp-ink);
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .12s, color .12s;
}

    .it-dp__title i { font-size: .62rem; color: var(--dp-soft); transition: color .12s; }
    .it-dp__title:hover { background: var(--dp-hover); color: var(--dp-accent); }
    .it-dp__title:hover i { color: var(--dp-accent); }

.it-dp__title--fijo { cursor: default; font-variant-numeric: tabular-nums; }
    .it-dp__title--fijo:hover { background: transparent; color: var(--dp-ink); }

/* Días de la semana (empieza en lunes) */
.it-dp__dow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 2px;
    color: var(--dp-soft);
    font-size: .72rem;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
}

.it-dp__dow--finde { color: #b8c0cc; }

.it-dp__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

/* Celdas de las tres vistas */
.it-dp__cell {
    position: relative;
    border: none;
    background: transparent;
    color: var(--dp-ink);
    font: inherit;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: background .12s, color .12s, box-shadow .12s;
}

    .it-dp__cell:hover:not(:disabled):not(.it-dp__cell--sel) { background: var(--dp-hover); color: var(--dp-accent); }
    .it-dp__cell:focus { outline: none; }
    .it-dp__cell:focus-visible { outline: 2px solid var(--dp-accent); outline-offset: 2px; }

    .it-dp__cell:disabled {
        color: #d0d5dd;
        cursor: not-allowed;
        background: transparent;
    }

/* Esquinas redondeadas, no círculo: en celdas anchas el 50 % salía un óvalo (1-dic-2026). */
.it-dp__day {
    height: 40px;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 500;
}

.it-dp__day--finde { color: var(--dp-muted); }
.it-dp__day--out { color: #c3ccd6; font-weight: 400; }

/* Hoy: anillo. Elegido: relleno azul de la marca. (Con .it-dp__cell delante para ganar al fondo
   de las celdas de meses y años.) */
.it-dp__cell.it-dp__cell--hoy {
    box-shadow: inset 0 0 0 1.5px var(--dp-accent);
    color: var(--dp-accent);
    font-weight: 700;
}

.it-dp__cell.it-dp__cell--sel,
.it-dp__cell.it-dp__cell--sel:hover {
    background: var(--dp-accent);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 6px 14px -6px rgba(3, 51, 91, .55);
}

.it-dp__cell.it-dp__cell--sel.it-dp__cell--hoy { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8), 0 6px 14px -6px rgba(3, 51, 91, .55); }

.it-dp__cell.it-dp__cell--hoy:disabled { box-shadow: inset 0 0 0 1.5px #e4e7ec; color: #d0d5dd; }

.it-dp__cell--sel:focus-visible { outline-color: var(--marca-verde, #4CAF50); }

/* Meses (3 × 4) y años (3 × 4) */
.it-dp__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 4px 0 2px;
}

.it-dp__mes, .it-dp__anio {
    height: 50px;
    border-radius: 12px;
    background: #f6f8fb;
    font-size: .92rem;
    font-weight: 600;
}

    .it-dp__mes:disabled, .it-dp__anio:disabled { background: #fafbfc; }

/* Hora (ShowTime) */
.it-dp__time {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--dp-line);
    color: var(--dp-soft);
}

    .it-dp__time input {
        flex: 1;
        height: 40px;
        padding: 0 10px;
        border: 1.5px solid #d7dde5;
        border-radius: 10px;
        color: var(--dp-ink);
        font: inherit;
        font-size: .95rem;
        outline: none;
    }

        .it-dp__time input:focus {
            border-color: var(--dp-accent);
            box-shadow: 0 0 0 3px rgba(3, 51, 91, .14);
        }

/* Pie: Hoy / Este mes / Este año y Borrar a la izquierda; Cancelar (y Aceptar) a la derecha. */
.it-dp__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--dp-line);
}

.it-dp__footer-grupo { display: flex; align-items: center; gap: 6px; }

.it-dp__btn {
    height: 36px;
    padding: 0 14px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #475467;
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background .12s, color .12s;
}

    .it-dp__btn:hover:not(:disabled) { background: var(--dp-hover); color: var(--dp-ink); }
    .it-dp__btn:disabled { opacity: .45; cursor: not-allowed; }
    .it-dp__btn:focus-visible { outline: 2px solid var(--dp-accent); outline-offset: 2px; }

.it-dp__btn--hoy { background: var(--dp-tint); color: var(--dp-accent); }
    .it-dp__btn--hoy:hover:not(:disabled) { background: #d9e3ee; color: var(--dp-accent); }

.it-dp__btn--borrar { color: var(--dp-muted); }
    .it-dp__btn--borrar:hover:not(:disabled) { background: #fef3f2; color: #b42318; }

.it-dp__btn--ok { background: var(--dp-accent); color: #fff; }
    .it-dp__btn--ok:hover:not(:disabled) { background: var(--it-action-hover, #022748); color: #fff; }

/* Móvil: hoja inferior a todo el ancho, celdas más grandes para el dedo. */
@media (max-width: 599.98px) {
    .it-dp__overlay { align-items: flex-end; padding: 0; }

    .it-dp__dialog,
    .it-dp__dialog--mes,
    .it-dp__dialog--anio {
        width: 100%;
        max-height: calc(100dvh - 24px);
        padding: 8px 16px calc(14px + env(safe-area-inset-bottom, 0px));
        border-radius: 20px 20px 0 0;
        animation: itDpSube .24s cubic-bezier(.2, .8, .25, 1);
    }

    .it-dp__asa {
        display: block;
        width: 40px;
        height: 4px;
        margin: 0 auto 12px;
        border-radius: 999px;
        background: #d0d5dd;
    }

    .it-dp__day { height: auto; aspect-ratio: 1; max-height: 52px; font-size: .95rem; }
    .it-dp__mes, .it-dp__anio { height: 54px; }
    .it-dp__btn { height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    .it-dp__overlay, .it-dp__dialog,
    .it-dp__dialog--mes, .it-dp__dialog--anio { animation: none !important; }
    .it-dp__cell, .it-dp__btn, .it-dp__nav, .it-dp__title, .it-dp__x { transition: none; }
}
/* La caja y su etiqueta comparten tamaño incluso dentro de una columna estrecha. */
.it-input, .it-select, .it-input__box, .it-select__box { min-width: 0; }
.it-input__field, .it-select__box { box-sizing: border-box; }
button.it-select__box { width: 100%; text-align: start; font: inherit; }
.it-select__box:focus-visible { outline: 2px solid var(--it-action); outline-offset: 2px; }
.it-select__clearbtn { top: 26px; }
.it-select__box:has(+ .it-select__clearbtn) { padding-right: 64px; }
button.it-select__option { display: block; width: 100%; border: 0; background: transparent; text-align: start; font-family: inherit; }
button.it-select__option:focus-visible { outline: 2px solid var(--it-action); outline-offset: -2px; background: var(--it-tint); }
.it-select__panel { box-sizing: border-box; max-width: calc(100vw - 16px); display: flex; flex-direction: column; }
.it-select__list { min-height: 0; overscroll-behavior: contain; }
.it-input__label, .it-select__label { max-width: calc(100% - 32px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it-select__label { max-width: calc(100% - 54px); }
button.it-select__option:hover { background: #f5f7fa; }
button.it-select__option.it-select__option--active { background: #eaf3fb; color: #4088BD; }
fieldset:disabled :is(.it-input__field,.it-select__box) { background-color: #f3f4f6; color: var(--it-muted); cursor: default; }

/* «+» de alta rápida a la derecha del desplegable (ItSelect / ItClienteSelect con Anadir,
   16-nov-2026): mismo alto que la caja, sin tocar el marcado de los selects que no lo usan. */
.it-select.it-select--anadir { box-sizing: border-box; padding-right: 58px; }
.it-select--anadir > .it-select__clearbtn { right: 94px; }
.it-select__anadir {
    position: absolute; top: 0; right: 0; width: 52px; height: 52px; box-sizing: border-box;
    display: inline-flex; align-items: center; justify-content: center; padding: 0;
    /* Verde de «añadir» (17-nov-2026): se distingue de la caja del desplegable. */
    border: 1.6px solid #b7e1c8; border-radius: 12px; background: #e7f6ee;
    color: #146c43; font-size: 1.05rem; font-weight: 700; cursor: pointer;
    transition: border-color .15s, background-color .15s;
}
.it-select__anadir:hover { border-color: #146c43; background: #146c43; color: #fff; }
.it-select__anadir:focus-visible { outline: 2px solid var(--it-action); outline-offset: 2px; }
.it-select__anadir:disabled { cursor: default; background: #f3f4f6; border-color: #d7dde5; color: #98a2b3; }
/* Con el foco en el «+», la caja no se marca como si se estuviera eligiendo. */
.it-select--anadir:not(.it-select--open, .it-select--error):has(> .it-select__anadir:focus) .it-select__box { border-color: #d7dde5; box-shadow: none; }
/* Variante compacta (barras de filtros, 38px). */
.it-compact .it-select__anadir { width: 38px; height: 38px; border-radius: 10px; }
.it-select--anadir:is(.it-compact, .it-compact *) { padding-right: 44px; }
.it-select--anadir:is(.it-compact, .it-compact *) > .it-select__clearbtn { right: 80px; }

/* Aire alrededor de los campos con etiqueta flotante (16-nov-2026). La etiqueta sube media altura
   por encima del borde del campo: si justo encima hay una casilla, un texto o un título, se montaban
   y no se leía. Va aquí, global, porque el CSS aislado de una página no llega a sus componentes
   hijos (pasaba con la casilla de dietas de la hoja salarial). */
.casilla {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: .75rem 0 1rem;
    line-height: 1.35;
}
.casilla > input[type="checkbox"] { flex: 0 0 auto; }
:where(label, p, small, h1, h2, h3, h4, h5, h6, .casilla) + :where(.it-input, .it-select) { margin-top: 14px; }
:where(.it-input, .it-select) + .casilla { margin-top: 12px; }
html[data-apariencia="dark"] .it-select__anadir { background: #16382a; border-color: #245c41; color: #7ee2b1; }
html[data-apariencia="dark"] .it-select__anadir:hover { background: #1f7a52; border-color: #1f7a52; color: #fff; }
