/* Portál dokumentace (PORTAL_HOST): horní lišta místo sidebaru Decku.
 * Obsah stránek (docs, vault) používá stejné komponenty; tady jen layout
 * lišty a přepis okrajů .main-content, které v Decku počítají se sidebarem.
 * Barvy přes tokeny.
 */

.portal-layout {
    display: block;
    min-height: 100vh;
    background: var(--bg-primary);
}
.portal-layout .main-content {
    margin: 0 auto;
    max-width: 1400px;
    padding: 24px 24px 48px;
    width: auto;
}

.portal-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 24px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
}
.portal-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--accent-gradient);
    color: #fff;
    font-size: 12px;
    letter-spacing: .04em;
}

.portal-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.portal-switch-label { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.portal-switch .form-control { padding: 6px 10px; font-size: 13px; min-width: 220px; }
.portal-client {
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portal-client:hover { color: var(--text-primary); }

.portal-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.portal-lock { display: inline; }
.portal-actions .btn.is-active { background: var(--bg-hover); }

@media (max-width: 720px) {
    .portal-topbar { flex-wrap: wrap; padding: 10px 16px; }
    .portal-layout .main-content { padding: 16px 16px 40px; }
    .portal-switch { order: 3; width: 100%; }
    .portal-switch .form-control { min-width: 0; flex: 1; }
}

/* Profil: QR pro ověřovací aplikaci */
.portal-qr {
    display: inline-block;
    background: #fff;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
}
.portal-qr-manual { margin-bottom: 16px; }
.portal-qr-manual summary { cursor: pointer; }
.portal-qr-manual code {
    display: block;
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    font-size: 13px;
    letter-spacing: .08em;
}
