/*
 * Secciones de diapositivas y diálogo "Encabezado y pie de página".
 *
 * Las cabeceras de sección se intercalan entre las miniaturas del panel
 * izquierdo (`layout/thumbnails.js`) y marcan las bandas del clasificador; su
 * alto debe coincidir con la constante `SECTION_HEIGHT` del panel, que es la que
 * usa la virtualización para calcular el desplazamiento.
 */

/* ---------- Cabecera de sección en el panel de miniaturas ---------- */

.thumb-section {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 26px;
    padding: 0 4px;
    border-radius: var(--ppt-radius-sm);
    color: var(--ppt-text-2);
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.thumb-section:hover { background: var(--ppt-hover-solid); }

.thumb-section__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: var(--ppt-text-muted);
    font-size: 10px;
    line-height: 1;
}

.thumb-section__name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thumb-section__count {
    flex: 0 0 auto;
    min-width: 16px;
    padding: 0 5px;
    border-radius: 8px;
    background: var(--ppt-hover-solid);
    color: var(--ppt-text-muted);
    font-size: var(--ppt-font-size-ui-sm);
    font-weight: 400;
    text-align: center;
}

.thumb-section.is-collapsed .thumb-section__count {
    background: var(--ppt-accent);
    color: #FFFFFF;
}

.thumb-section__input {
    flex: 1;
    min-width: 0;
    height: 20px;
    padding: 0 4px;
    border: 1px solid var(--ppt-accent);
    border-radius: var(--ppt-radius-sm);
    font: inherit;
    font-weight: 400;
    color: inherit;
    background: #FFFFFF;
}

/* ---------- Banda de sección en el clasificador ---------- */

.sorter__section {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 4px 2px;
    border-bottom: 1px solid var(--ppt-border-soft);
    color: var(--ppt-text-2);
    font-weight: 600;
    user-select: none;
}

.sorter__section-count {
    color: var(--ppt-text-muted);
    font-size: var(--ppt-font-size-ui-sm);
    font-weight: 400;
}

/* ---------- Diálogo "Encabezado y pie de página" ---------- */

.dialog--header-footer { width: 460px; }

.hf-body { padding-top: 10px; }

.hf-title {
    margin-bottom: 8px;
    color: var(--ppt-text-2);
    font-weight: 600;
}

.hf-check {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
    cursor: pointer;
}

.hf-group {
    margin: 0 0 6px 20px;
    padding-left: 8px;
    border-left: 2px solid var(--ppt-border-soft);
}

.hf-indent { margin: 0 0 8px 20px; }

.hf-input { width: 100%; }

.hf-input:disabled { color: var(--ppt-text-disabled); }

/* Vista previa: rectángulo de la diapositiva con las tres zonas del pie. */

.hf-preview {
    position: relative;
    width: 150px;
    height: 84px;
    margin: 0 auto 12px;
    border: 1px solid var(--ppt-border);
    background: #FFFFFF;
}

.hf-preview__mark {
    position: absolute;
    height: 6px;
    background: var(--ppt-border-soft);
}

.hf-preview__mark.is-on { background: var(--ppt-accent); }

.hf-preview__mark--header { top: 6px; left: 10px; width: 34px; }
.hf-preview__mark--date { bottom: 6px; left: 10px; width: 34px; }
.hf-preview__mark--footer { bottom: 6px; left: 52px; width: 46px; }
.hf-preview__mark--number { bottom: 6px; right: 10px; width: 20px; }
