/* Odoo-style layout: no sidebar, horizontal module menu in top bar */

html[data-portal-nav="top"] .portal-sidebar,
html[data-portal-nav="top"] .sidebar-overlay {
    display: none !important;
}

html[data-portal-nav="top"] .portal-main {
    margin-left: 0 !important;
}

html[data-portal-nav="top"] .portal-topbar {
    left: 0 !important;
}

html[data-portal-nav="top"] .topbar-sidebar-toggle {
    display: none !important;
}

html[data-portal-nav="top"] .topbar-page-title {
    display: none;
}

html[data-portal-nav="top"] .portal-topbar {
    gap: 0.5rem;
}

.portal-topbar-apps {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.portal-topbar-brand {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    text-decoration: none;
    white-space: nowrap;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.portal-topbar-brand:hover {
    background: var(--surface-elevated);
    color: var(--text-main);
}

.portal-module-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
    padding: 0 0.25rem;
}

.portal-module-nav::-webkit-scrollbar {
    height: 4px;
}

.portal-module-nav__link {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
}

.portal-module-nav__link:hover {
    color: var(--text-main);
    background: var(--surface-elevated);
}

.portal-module-nav__link.is-active {
    color: var(--primary-hover);
    background: var(--primary-light);
    border-color: rgba(20, 184, 166, 0.25);
    font-weight: 600;
}

.portal-apps-menu {
    min-width: 220px;
    max-height: 70vh;
    overflow-y: auto;
}

.portal-apps-menu .dropdown-item {
    font-size: 0.875rem;
}

.portal-apps-menu .dropdown-item small {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
}
