/*
 * Diálogo Abrir (Archivo → Abrir): lugares a la izquierda, listado de lo
 * guardado a la derecha y zona de importación de archivos `.pptx`.
 *
 * Los nombres de clase llevan el prefijo `open-` para no chocar con el resto de
 * diálogos, que comparten `.dialog`, `.btn` y demás de `dialogs.css`.
 */

.dialog--open {
    width: 720px;
    height: 460px;
}

.open-body {
    display: flex;
    gap: 0;
    padding: 0;
    flex: 1;
    min-height: 0;
}

/* ---------- Lugares (columna izquierda) ---------- */

.open-places {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 180px;
    padding: 12px 8px;
    border-right: 1px solid var(--ppt-border-soft);
    background: var(--ppt-ribbon-bg);
}

.open-place {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 10px;
    border-radius: var(--ppt-radius-sm);
    color: var(--ppt-text-2);
    text-align: left;
}

.open-place:hover { background: var(--ppt-hover); }

.open-place.is-active {
    background: #FFFFFF;
    color: var(--ppt-text);
    font-weight: 600;
}

.open-place--action {
    margin-top: 10px;
    border-top: 1px solid var(--ppt-border-soft);
    padding-top: 10px;
    border-radius: 0;
}

/* ---------- Panel derecho ---------- */

.open-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.open-pane {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 12px;
    overflow: auto;
}

.open-pane[hidden] { display: none; }

.open-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.open-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border-radius: var(--ppt-radius-sm);
    text-align: left;
}

.open-item:hover { background: var(--ppt-hover); }

.open-item:focus-visible {
    outline: 1px solid var(--ppt-focus);
    outline-offset: -1px;
}

.open-item__icon {
    display: inline-flex;
    color: var(--ppt-brand);
}

.open-item__texts {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.open-item__name {
    color: var(--ppt-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.open-item__meta {
    color: var(--ppt-text-muted);
    font-size: var(--ppt-font-size-ui-sm);
}

.open-empty {
    margin: 24px 8px;
    color: var(--ppt-text-muted);
    text-align: center;
}

/* ---------- Importación ---------- */

.open-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 1;
    min-height: 200px;
    padding: 24px;
    border: 1px dashed var(--ppt-divider);
    border-radius: var(--ppt-radius);
    background: var(--ppt-gallery-bg);
    text-align: center;
}

.open-drop.is-over {
    border-color: var(--ppt-brand);
    background: #FFFFFF;
}

.open-drop__text {
    max-width: 360px;
    color: var(--ppt-text-2);
}

.open-status {
    min-height: 16px;
    color: var(--ppt-text-muted);
}

.open-status.is-error { color: var(--ppt-brand); }
