/**
 * Navigation globale BusitelIA (Chat · Tickets · Atelier) — même shell sur tout le site.
 */
.busitel-shell-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 12px;
    background: #1e1e22;
    color: #e8e8ea;
    border-bottom: 1px solid #2c2c32;
    min-height: 42px;
}

.busitel-shell-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1;
}

.busitel-shell-header h1,
.busitel-shell-logo {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #f5f5f7;
    text-decoration: none;
    white-space: nowrap;
    text-shadow: none;
}

.busitel-shell-nav {
    display: flex;
    align-items: stretch;
    gap: 2px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.busitel-shell-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #b8b8be;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: background 0.12s ease, color 0.12s ease;
}

.busitel-shell-nav-link:hover {
    color: #f5f5f7;
    background: rgba(255, 255, 255, 0.08);
}

.busitel-shell-nav-link.active,
.busitel-shell-nav-link[aria-current="page"] {
    color: #fff;
    background: rgba(102, 126, 234, 0.35);
    border-color: rgba(102, 126, 234, 0.5);
    font-weight: 600;
}

.busitel-shell-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.busitel-shell-user {
    font-size: 0.72rem;
    color: #b8b8be;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.busitel-shell-icon-btn {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #e8e8ea;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-decoration: none;
}

.busitel-shell-icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Page principale : header existant + nav globale */
.header.busitel-shell-header .header-controls {
    margin: 0;
    gap: 8px;
    justify-content: flex-end;
}

.header.busitel-shell-header .mode-toggle {
    background: rgba(255, 255, 255, 0.06);
    padding: 2px;
    border-radius: 6px;
}

.header.busitel-shell-header .mode-btn {
    padding: 4px 10px;
    font-size: 0.78rem;
}

.header.busitel-shell-header .status-indicator {
    font-size: 0.75rem;
    opacity: 0.85;
}

.header.busitel-shell-header .status-details {
    display: none;
}

/* Atelier : shell pleine page */
body.busitel-shell-page {
    margin: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #f0f1f3;
}

.busitel-app-shell {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.busitel-app-body {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: var(--aside-width, 248px) 1fr;
    overflow: hidden;
}

@media (max-width: 768px) {
    .busitel-shell-brand {
        flex-wrap: wrap;
        gap: 8px;
    }

    .busitel-shell-nav-link {
        padding: 4px 8px;
        font-size: 0.74rem;
    }
}
