:root {
    --gm-primary: #0284c7;
    --gm-primary-dark: #0369a1;
    --gm-sidebar: #0f172a;
    --gm-sidebar-hover: #1e293b;
    --gm-bg: #f1f5f9;
}

body {
    background-color: var(--gm-bg);
    font-family: 'Segoe UI', sans-serif;
}

/* ── Sidebar (layout vertical) ── */
.sidebar {
    width: 240px;
    height: 100vh;
    background: var(--gm-sidebar);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.sidebar-brand {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #1e293b;
    text-decoration: none;
    display: block;
    flex-shrink: 0;
}
.sidebar-brand:hover { opacity: 0.85; }
.sidebar-logo {
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}
.sidebar > ul.nav {
    flex: 1 1 0;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    flex-wrap: nowrap;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}
.sidebar > ul.nav::-webkit-scrollbar { width: 4px; }
.sidebar > ul.nav::-webkit-scrollbar-track { background: transparent; }
.sidebar > ul.nav::-webkit-scrollbar-thumb { background-color: #334155; border-radius: 4px; }
.sidebar .nav-link {
    color: #94a3b8;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    margin: 2px 8px;
    font-size: 0.88rem;
    transition: all 0.18s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active { background: var(--gm-sidebar-hover); color: #f1f5f9; }
.sidebar .nav-link i { width: 18px; text-align: center; font-size: 1rem; }
.sidebar .collapse .nav-link {
    font-size: 0.84rem;
    padding: 0.45rem 0.75rem;
    margin: 1px 8px 1px 16px;
    gap: 0.4rem;
}
.nav-link-collapse::after {
    content: '';
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-left: auto;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: rotate(45deg);
    transition: transform 0.2s;
}
.nav-link-collapse[aria-expanded="true"]::after { transform: rotate(-135deg); }
.sidebar-footer {
    flex-shrink: 0;
    border-top: 1px solid #1e293b;
    padding: 0.75rem 1rem;
}
.sidebar-footer-inner { display: flex; align-items: center; gap: 0.6rem; }
.sidebar-user-icon {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--gm-sidebar-hover);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    color: #94a3b8; font-size: 1rem;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 0.8rem; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 0.7rem; color: #475569; }
.sidebar-bell-btn {
    background: none; border: none; color: #94a3b8;
    padding: 4px; position: relative; cursor: pointer; line-height: 1;
}
.sidebar-bell-btn:hover { color: #e2e8f0; }
.sidebar-bell-icon { font-size: 1.1rem; }
.sidebar-logout-btn {
    display: flex; align-items: center; gap: 0.5rem;
    color: #94a3b8; font-size: 0.8rem; padding: 0.4rem 0.5rem;
    border-radius: 6px; text-decoration: none;
    transition: color 0.15s, background 0.15s;
}
.sidebar-logout-btn:hover { color: #ef4444; background: rgba(239,68,68,.08); }

/* main-content quando sidebar está ativo */
.main-content.layout-sidebar {
    margin-top: 0;
    margin-left: 240px;
    min-height: 100vh;
}

/* ── Topnav ── */
.topnav {
    height: 52px;
    background: var(--gm-sidebar);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 0;
}

/* Bootstrap cria .dropdown-backdrop para navs com position:fixed — esconde para não escurecer a página */
.dropdown-backdrop { display: none !important; }
.topnav-inner {
    height: 100%;
    gap: 0.5rem;
}
.topnav-brand {
    padding: 0 0.5rem 0 0;
    flex-shrink: 0;
    text-decoration: none;
}
.topnav-brand:hover { opacity: 0.85; }
.topnav-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.topnav .navbar-collapse {
    flex-grow: 1;
    align-items: center;
}

.topnav .nav-link {
    color: #94a3b8;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    font-size: 0.83rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.18s;
    line-height: 1.3;
}
.topnav .nav-link:hover,
.topnav .nav-link.active,
.topnav .nav-link.show {
    background: var(--gm-sidebar-hover);
    color: #f1f5f9;
}
.topnav .nav-link i { font-size: 0.9rem; flex-shrink: 0; }
.topnav .dropdown-toggle::after { margin-left: 0.2rem; vertical-align: middle; }

/* Separador | entre itens do nav */
.topnav .navbar-nav {
    align-items: stretch;
}
.topnav .navbar-nav .nav-item {
    display: flex;
    align-items: center;
}
.topnav .navbar-nav .nav-item + .nav-item {
    border-left: 1px solid #334155;
}

/* Dropdown menus */
.topnav-dropdown-menu {
    background: var(--gm-sidebar);
    border: 1px solid #1e293b;
    border-radius: 8px;
    min-width: 175px;
    margin-top: 3px !important;
    padding: 4px;
}
.topnav-dropdown-menu .dropdown-item {
    color: #94a3b8;
    font-size: 0.83rem;
    padding: 0.4rem 0.75rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.topnav-dropdown-menu .dropdown-item:hover,
.topnav-dropdown-menu .dropdown-item.active,
.topnav-dropdown-menu .dropdown-item:focus {
    background: var(--gm-sidebar-hover);
    color: #f1f5f9;
}
.topnav-dropdown-menu .dropdown-item i { width: 15px; text-align: center; font-size: 0.85rem; flex-shrink: 0; }

/* Right-side actions */
.topnav-actions { flex-shrink: 0; }

/* Bell */
.topnav-bell-btn {
    background: none;
    border: none;
    color: #94a3b8;
    padding: 4px 6px;
    cursor: pointer;
    line-height: 1;
}
.topnav-bell-btn:hover { color: #e2e8f0; }
.topnav-bell-icon { font-size: 1.05rem; }

/* User info */
.topnav-user-icon { color: #94a3b8; font-size: 1.2rem; flex-shrink: 0; }
.topnav-user-name { font-size: 0.78rem; color: #e2e8f0; white-space: nowrap; line-height: 1.2; }
.topnav-user-role { font-size: 0.67rem; color: #475569; line-height: 1.2; }

/* Logout */
.topnav-logout-btn {
    color: #94a3b8;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.15s, background 0.15s;
    display: flex;
    align-items: center;
}
.topnav-logout-btn:hover { color: #ef4444; background: rgba(239,68,68,.08); }

/* Mobile toggler */
.topnav-toggler {
    border: none;
    color: #94a3b8;
    padding: 0.2rem 0.4rem;
    background: none;
    font-size: 1.4rem;
    line-height: 1;
}
.topnav-toggler:focus { box-shadow: none; }

/* Nav icon wrap (for dot notification) */
.nav-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
}
.nav-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    display: block;
}

/* Collapse toggle link */
.nav-link-collapse::after {
    content: '';
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-left: auto;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: rotate(45deg);
    transition: transform 0.2s;
}
.nav-link-collapse[aria-expanded="true"]::after {
    transform: rotate(-135deg);
}

.bell-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    display: none;
}
.bell-badge.active { display: block; }

/* Bell dropdown */
.bell-dropdown {
    width: 300px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    overflow: hidden;
    margin-top: 4px !important;
}
.bell-dropdown-header {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}
.bell-interno-header {
    padding: 0.4rem 1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #94a3b8;
    background: #f8fafc;
}
.bell-empty {
    padding: 1rem;
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: center;
}

/* Notification items */
.notif-nome { font-weight: 600; font-size: 0.85rem; color: #1e293b; }
.notif-texto { font-size: 0.8rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-tempo { font-size: 0.72rem; color: #94a3b8; }
.badge-xs { font-size: 0.6rem; }

/* ── Main content ── */
.main-content {
    margin-left: 0;
    margin-top: 52px;
    padding: 1.5rem;
    min-height: calc(100vh - 52px);
}

/* ── Busca de configurações ── */
.cfg-search-wrap {
    position: relative;
    width: 260px;
    flex-shrink: 0;
}
.cfg-search-icon {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.85rem;
    pointer-events: none;
}
.cfg-search-input {
    padding-left: 2rem;
    font-size: 0.85rem;
    border-radius: 8px;
    height: 34px;
}

/* ── Topbar ── */
.topbar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    margin: -1.5rem -1.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.topbar h5 { margin: 0; font-weight: 600; }

/* ── Cards ── */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.card-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
    padding: 1rem 1.25rem;
}

/* ── Stat cards ── */
.stat-card {
    border-radius: 12px;
    padding: 1.25rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.stat-card .stat-icon {
    font-size: 2.5rem;
    opacity: 0.2;
    position: absolute;
    right: 1rem;
    bottom: 0.5rem;
}
.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}
.stat-card .stat-label { font-size: 0.85rem; opacity: 0.85; }

.bg-teal    { background: linear-gradient(135deg, #0284c7, #0369a1); }
.bg-indigo  { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.bg-amber   { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.bg-emerald { background: linear-gradient(135deg, #10b981, #059669); }

/* ── Buttons ── */
.btn-primary {
    background: var(--gm-primary);
    border-color: var(--gm-primary);
}
.btn-primary:hover {
    background: var(--gm-primary-dark);
    border-color: var(--gm-primary-dark);
}

/* ── Table ── */
.table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 600;
    border-top: none;
}

/* ── Flash messages ── */
.flash-overlay {
    position: fixed;
    top: 62px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    z-index: 9999;
    pointer-events: none;
}
.flash-message {
    font-size: 0.95rem;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    pointer-events: auto;
}
.flash-show { opacity: 1 !important; }
.flash-hide { opacity: 0 !important; }

/* ── Trial / vencimento banners ── */
.alert-trial-banner {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    margin: -1.5rem -1.5rem 1.5rem;
    text-align: center;
}
.alert-vencimento-banner {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    margin: -1.5rem -1.5rem 1.5rem;
    text-align: center;
}

/* ── Login page ── */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gm-sidebar);
}
.login-card {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.login-logo-wrap { text-align: center; margin-bottom: 1.5rem; }
.login-logo { height: 140px; max-width: 100%; object-fit: contain; }

/* ── Login dividido (login_informacao.html): form à esquerda, mídia à direita ── */
.login-split {
    min-height: 100vh;
    display: flex;
}
.login-split-form {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--gm-sidebar);
}
.login-split-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
    padding: 2rem;
}
.login-split-midia {
    flex: 0 0 50%;
    max-width: 50%;
    position: relative;
    overflow: hidden;
    background: #0f172a;
}
/* Arte recomendada: 1080 × 1350 px (4:5). A arte aparece INTEIRA, sem corte —
   o painel é quase quadrado em telas widescreen, então sobra faixa lateral
   preenchida pelo fundo escuro do container. */
.login-split-media-el {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}
.login-split-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    color: rgba(255,255,255,.45);
}
.login-split-placeholder i { font-size: 3rem; }

@media (max-width: 991.98px) {
    .login-split { flex-direction: column; }
    .login-split-form {
        flex: 1 1 auto;
        max-width: 100%;
        min-height: 100vh;
    }
    .login-split-midia { display: none; }
}

/* ── Itens de plano bloqueados no sidebar ── */
.nav-link.nav-link-locked,
.nav-link.nav-link-sub.nav-link-locked {
    filter: grayscale(1);
    opacity: 0.45;
    cursor: not-allowed;
}
.nav-link.nav-link-locked:hover,
.nav-link.nav-link-sub.nav-link-locked:hover {
    filter: grayscale(1);
    opacity: 0.6;
    background: transparent !important;
}
.nav-lock-icon {
    font-size: 0.6rem;
    vertical-align: middle;
    margin-right: 0.2rem;
    opacity: 0.7;
}

/* ── Cards de integração bloqueados ── */
.integration-locked {
    filter: grayscale(1);
    opacity: 0.6;
}

/* ── Status badges for pedidos ── */
.badge-status-pendente    { background: #fef9c3; color: #854d0e; }
.badge-status-em_preparo  { background: #cffafe; color: #0e7490; }
.badge-status-pronto      { background: #dcfce7; color: #166534; }
.badge-status-entregue    { background: #e0f2fe; color: #075985; }
.badge-status-cancelado   { background: #fee2e2; color: #991b1b; }

/* ── WhatsApp status icon ── */
.wa-status-icon { font-size: 3rem; }

/* ── Switch large ── */
.switch-large .form-check-input {
    width: 3rem;
    height: 1.5rem;
    cursor: pointer;
}

/* ── Form card constraint ── */
.form-card-md { max-width: 500px; }

/* ── Users count ── */
.usuarios-count { font-size: 0.8rem; }

/* ── Chat list avatar ── */
.chat-av-list {
    position: relative;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
}

/* Foto de perfil do WhatsApp cobrindo o avatar (lista e cabeçalho) */
.chat-av-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Avatar do cabeçalho clicável (abre a foto ampliada) */
.chat-av-clickable { cursor: pointer; }

/* ── Chat edit button ── */
.chat-edit-btn { line-height: 1; }
.chat-edit-btn i { font-size: 0.75rem; }

/* ── Context menu ── */
.ctx-menu {
    display: none;
    position: fixed;
    z-index: 9999;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    min-width: 160px;
    overflow: hidden;
}
.ctx-menu-item {
    padding: 9px 16px;
    cursor: pointer;
    font-size: .9rem;
}
.ctx-menu-item:hover { background: #f8f9fa; }
.ctx-menu-item-danger { color: #dc3545; }
.ctx-menu-item-danger:hover { background: #fff5f5; }

/* ── Chat — bubble elements ── */
.bubble-wrap { max-width: 72%; width: fit-content; }
.bubble {
    display: inline-block;
    width: 100%;
    padding: 8px 12px;
    border-radius: 12px;
    word-break: break-word;
    white-space: pre-wrap;
    font-size: 0.9rem;
    line-height: 1.4;
    box-sizing: border-box;
}
.bubble-time { font-size: 0.68rem; color: #888; margin-top: 2px; }
.bubble-date { color: #aaa; }

/* Separador de data entre grupos de mensagens (estilo WhatsApp) */
.chat-date-sep { text-align: center; margin: 12px 0 8px; }
.chat-date-sep span {
    display: inline-block; padding: 3px 12px; border-radius: 12px;
    background: #e9edf2; color: #64748b;
    font-size: .7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .02em;
}
.chat-footer { background: #f8f9fa; border-top: 1px solid #dee2e6; padding: 10px 12px; }

/* Citação (reply/quote) dentro da bolha */
.bubble-quote {
    border-left: 3px solid #0d6efd; background: rgba(0,0,0,.04);
    padding: 3px 8px; margin-bottom: 4px; border-radius: 4px;
    font-size: .8rem; color: #475569; max-height: 3.2em; overflow: hidden;
    white-space: pre-wrap; word-break: break-word;
}

/* Barra de resposta (compositor) */
.chat-reply-bar {
    display: flex; align-items: center; gap: .5rem;
    background: #eef2f7; border-left: 3px solid #0d6efd;
    border-radius: 6px; padding: .35rem .6rem; margin-bottom: .5rem;
}

/* WhatsApp chat bubbles */
.bubble-user  { background: #f0f0f0; color: #222; border-bottom-left-radius: 3px; }
.bubble-bot   { background: #dcf8c6; color: #222; border-bottom-right-radius: 3px; }
.bubble-agent { background: #cce5ff; color: #003; border-bottom-right-radius: 3px; }
#btnMic.recording { background-color: #dc3545 !important; color: #fff !important; }

/* Chat interno bubbles */
.bubble-me    { background: #d1e7ff; color: #003; border-bottom-right-radius: 3px; }
.bubble-other { background: #f0f0f0; color: #222; border-bottom-left-radius: 3px; }

/* Chat avatar in header */
.chat-av-header {
    position: relative;
    width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: #6c757d; color: #fff;
}

/* Chat avatar per message */
.chat-av-msg {
    width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: #e9ecef; color: #6c757d; align-self: flex-end;
}

/* Chat message containers — height depends on page */
.page-chat #chat-messages {
    height: calc(100vh - 280px);
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.page-interno #chat-messages {
    height: calc(100vh - 260px);
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ── Chat interno ── */
.interno-avatar {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
}
.interno-badge {
    font-size: .6rem;
    min-width: 1.1rem;
    padding: 2px 4px;
}
.interno-empty-icon { font-size: 3rem; }
.interno-user-list { max-height: 200px; overflow-y: auto; }
.interno-sender-name { font-size: 0.72rem; color: #666; margin-bottom: 2px; padding-left: 4px; }

/* ── Icon sizes ── */
.icon-sm  { font-size: 0.85rem; }
.icon-xl  { font-size: 2.5rem; }
.icon-3xl { font-size: 3rem; }
.icon-xxl { font-size: 4rem; }

/* ── Chat card ── */
.card-chat { border-radius: 12px; overflow: hidden; }

/* ── Search dropdown (positioned absolute, shown/hidden by JS) ── */
.search-dropdown { z-index: 9999; max-height: 200px; overflow-y: auto; top: 100%; }

/* ── Unread indicator dot on conversation list ── */
.badge-dot { width: 12px; height: 12px; padding: 0; }

/* ── Deleted message display ── */
.msg-deleted { font-size: 0.85rem; }

/* ── Chat media elements ── */
.audio-player { max-width: 240px; height: 36px; display: block; }
.media-img    { max-width: 200px; max-height: 180px; border-radius: 8px; cursor: pointer; display: block; }
.media-video  { max-width: 240px; max-height: 180px; border-radius: 8px; display: block; }

/* ── Media preview modal ── */
.modal-media-img   { max-height: 80vh; box-shadow: 0 8px 32px rgba(0,0,0,.4); }
.modal-media-video { max-height: 75vh; }

/* ── QR code image ── */
.qr-img { max-width: 260px; border-radius: 8px; }

/* ── Error/suspended pages ── */
.page-error-container { max-width: 480px; }

/* ── QR Code area ── */
#qr-container { min-height: 100px; }

/* ── Responsive ── */
@media (max-width: 991px) {
    .topnav .navbar-collapse {
        background: var(--gm-sidebar);
        border-top: 1px solid #1e293b;
        padding: 0.5rem 0.75rem 0.75rem;
        max-height: calc(100vh - 52px);
        overflow-y: auto;
        position: absolute;
        top: 52px;
        left: 0;
        right: 0;
        z-index: 99;
    }
    .topnav .nav-link { padding: 0.5rem 0.75rem; }
    .topnav-dropdown-menu { border: none; background: transparent; box-shadow: none; margin-top: 0 !important; padding: 0; }
    .topnav-dropdown-menu .dropdown-item { padding-left: 2rem; }
    .topnav-actions { border-top: 1px solid #1e293b; padding-top: 0.5rem; margin-top: 0.25rem; }
    .topnav-user { display: flex !important; }
    .topnav .navbar-nav .nav-item + .nav-item { border-left: none; border-top: 1px solid #1e293b; }
}
@media (max-width: 768px) {
    .main-content { padding: 1rem; }
    .topbar { margin: -1rem -1rem 1rem; padding: 0.75rem 1rem; }
}
