﻿/* ── Açık pencereler: mobil dialog listesi ──────────────────────────────
   laf_pagenavigation_styles.css dosyasının sonuna eklenecek. */

.laf-navdlg {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.laf-navdlg-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: min(60vh, 480px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.laf-navdlg-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--LAF-palette-lines);
}

    .laf-navdlg-item:last-child {
        border-bottom: 0;
    }

.laf-navdlg-item-active {
    background: var(--LAF-palette-background-focusedrow);
    box-shadow: inset 3px 0 0 var(--LAF-palette-primary);
}

.laf-navdlg-select {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 4px 4px 12px;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

    .laf-navdlg-select:active {
        background: var(--LAF-palette-hover);
    }

    .laf-navdlg-select:focus-visible {
        outline: 2px solid var(--LAF-palette-primary);
        outline-offset: -2px;
    }

.laf-navdlg-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(var(--LAF-palette-primary-rgb), .10);
    color: var(--LAF-palette-primary);
    font-weight: 600;
    font-size: 13px;
}

    .laf-navdlg-icon svg {
        width: 16px !important;
        height: 16px !important;
    }

.laf-navdlg-item-active .laf-navdlg-icon {
    background: var(--LAF-palette-primary);
    color: #fff;
}

.laf-navdlg-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.laf-navdlg-item-active .laf-navdlg-title {
    font-weight: 600;
}

.laf-navdlg-close {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin-right: 4px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: none;
    color: inherit;
    opacity: .55;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

    .laf-navdlg-close svg {
        width: 16px;
        height: 16px;
    }

    .laf-navdlg-close:active {
        opacity: 1;
        color: var(--LAF-palette-error);
        background: rgba(var(--LAF-palette-error-rgb), .10);
    }

    .laf-navdlg-select:disabled,
    .laf-navdlg-close:disabled {
        cursor: default;
    }

.laf-navdlg-actions {
    display: flex;
    justify-content: flex-end;
    padding: 10px 14px 2px;
    border-top: 1px solid var(--LAF-palette-lines);
}

/* LAF_Button_Link kullanmak isterseniz bu blok gereksiz. */
.laf-navdlg-link {
    border: 0;
    background: none;
    padding: 6px 0;
    color: var(--LAF-palette-primary);
    font: inherit;
    cursor: pointer;
}

.laf-navdlg-empty {
    padding: 24px 14px;
    text-align: center;
    opacity: .6;
}

.laf-navdlg {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

/* Dialog kutusunun kendisi: yalnızca bu içeriği taşıyan dialog etkilenir. */
*:has(> .laf-dlg-content .laf-navdlg) {
    width: min(420px, calc(100vw - 70px)) !important;
    min-width: 0 !important;
    max-width: none !important;
}
