/* ── Wrapper ── */
.sb26-wrap {
    display: flex;
    align-items: flex-start;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #202124;
}

/* ── Mini sidebar (szint 1 ikonok) ── */
.sb26-mini {
    width: 60px;
    min-width: 60px;
    background: #f1f3f4;
    border-right: 1px solid #dadce0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky;
    top: 0;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
}

/* Scrollozható szekció ikon terület */
.sb26-mini-sections {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 4px;
    gap: 2px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #dadce0 transparent;
}

.sb26-mini-sections::-webkit-scrollbar { width: 4px; }
.sb26-mini-sections::-webkit-scrollbar-thumb { background: #dadce0; border-radius: 2px; }

/* Fix alsó rész: toggle + avatar */
.sb26-mini-bottom {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 0 8px;
    gap: 2px;
    border-top: 1px solid #e0e0e0;
}

.sb26-mini-item {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #5f6368;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: background 0.15s, color 0.15s;
    user-select: none;
    position: relative;
    flex-shrink: 0;
    overflow: visible;
}

.sb26-mini-item img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    pointer-events: none;
}

.sb26-mini-item .sb26-initials { pointer-events: none; }
.sb26-mini-item:hover { background: #e2e5e9; }
.sb26-mini-item.active { background: #1a73e8; color: white; }
.sb26-mini-item.active img { filter: brightness(10); }

#sb26Tooltip {
    position: fixed;
    background: #3c4043;
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    font-family: Arial, sans-serif;
}

.sb26-mini-spacer { display: none; }

.sb26-mini-toggle {
    width: 36px;
    height: 36px;
    border: 1px solid #dadce0;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #3c4043;
    transition: background 0.15s;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
    margin-top: 6px;
    margin-bottom: 2px;
}
.sb26-mini-toggle:hover { background: #e8eaed; }

/* ── Részletes sidebar ── */
.sb26-detail {
    width: 300px;
    min-width: 300px;
    background: #f8f9fa;
    border-right: 1px solid #dadce0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    transition: width 0.22s ease, min-width 0.22s ease, opacity 0.18s ease;
    opacity: 1;
    box-sizing: border-box;
}

.sb26-detail.hidden {
    width: 0;
    min-width: 0;
    opacity: 0;
    border-right: none;
}

.sb26-detail-inner {
    width: 300px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.sb26-header {
    padding: 12px 12px 8px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.sb26-section-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a73e8;
    padding: 0 2px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sb26-section-name.global-mode { color: #e37400; }

.sb26-search-box { position: relative; }

.sb26-search-box input {
    width: 100%;
    padding: 9px 30px 9px 34px;
    border: 1px solid #dadce0;
    border-radius: 9px;
    outline: none;
    font-size: 13px;
    background: white;
    font-family: inherit;
    box-sizing: border-box;
}

.sb26-search-box input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26,115,232,0.14);
}

.sb26-search-icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #9aa0a6;
    font-size: 16px;
    pointer-events: none;
}

/* Tartalom */
.sb26-content {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0 16px;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #dadce0 transparent;
}
.sb26-content::-webkit-scrollbar { width: 5px; }
.sb26-content::-webkit-scrollbar-thumb { background: #dadce0; border-radius: 3px; }

.sb26-global-section-hdr {
    font-size: 11px;
    font-weight: 700;
    color: #e37400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 18px 3px;
}
.sb26-global-section-hdr:first-child { padding-top: 4px; }

.sb26-group { padding: 0 10px 4px; }
.sb26-group + .sb26-group { border-top: 1px solid #ebebeb; margin-top: 4px; padding-top: 8px; }

.sb26-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: #80868b;
    padding: 6px 8px 4px;
    cursor: pointer;
    user-select: none;
    border-radius: 7px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.sb26-group-title:hover { background: #eef1f3; }
.sb26-group-items { margin-top: 2px; }

.sb26-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    margin: 1px 0;
    border-radius: 9px;
    cursor: pointer;
    color: #202124;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.12s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sb26-item:hover { background: #edf2fa; color: #202124; text-decoration: none; }
.sb26-item.active { background: #dbe8fd; color: #1a73e8; font-weight: 600; }
.sb26-item.sb26-highlight { background: #fff3cd; outline: 1px solid #f4c542; border-radius: 9px; }

.sb26-item-icon {
    width: 18px; height: 18px; min-width: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: #9aa0a6; flex-shrink: 0;
}
.sb26-item-icon img { width: 16px; height: 16px; object-fit: contain; }

.sb26-item-label { flex: 1; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; }

.sb26-empty { padding: 14px 18px; font-size: 13px; color: #9aa0a6; display: none; }

#sb26SearchClear {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0 4px;
    margin: 0;
    color: #9aa0a6;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s;
}

#sb26SearchClear:hover {
    color: #3c4043;
}

/* ── Felhasználó avatar (mini sidebar alján) ── */
.sb26-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1a73e8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
    margin: 6px 0 8px;
    transition: background 0.15s, box-shadow 0.15s;
    letter-spacing: 0.5px;
}
.sb26-user-avatar:hover {
    background: #1557b0;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.22);
}

/* ── Felhasználó dropdown tartalma ── */
.sb26-user-dropdown {
    padding: 16px 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 200px;
}
.sb26-ud-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1a73e8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.sb26-ud-name {
    font-size: 14px;
    font-weight: 700;
    color: #202124;
    text-align: center;
}
.sb26-ud-username {
    font-size: 12px;
    color: #80868b;
    text-align: center;
}
.sb26-ud-divider {
    width: 100%;
    border-top: 1px solid #e0e0e0;
    margin: 10px 0 6px;
}
.sb26-ud-logout {
    display: block;
    width: 100%;
    padding: 8px 12px;
    text-align: center;
    font-size: 13px;
    color: #c62828;
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: background 0.12s;
}
.sb26-ud-logout:hover {
    background: #fce8e6;
    color: #c62828;
    text-decoration: none;
}

/* ── Felhasználó info doboz (detail sidebar alján) ── */
.sb26-user-info-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 14px;
    margin: 0 8px 10px;
    border-radius: 10px;
    background: #f1f3f4;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
}
.sb26-uib-main {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sb26-uib-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1a73e8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}
.sb26-uib-text {
    flex: 1;
    min-width: 0;
}
.sb26-uib-name {
    font-size: 13px;
    font-weight: 600;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sb26-uib-username {
    font-size: 11px;
    color: #80868b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sb26-uib-db {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #5f6368;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sb26-uib-db i {
    font-size: 12px;
    flex-shrink: 0;
}

/* ── Mobil: detail panel fixált drawer ── */
@media (max-width: 768px) {
    .sb26-detail {
        position: fixed;
        top: 0;
        left: 60px;
        height: 100vh;
        max-height: 100vh;
        z-index: 50;
    }
}
