/* Tenant branding: the uploaded logo and the "Powered by Tahona WMS" caption under the brand
   block. The accent override itself is not here — it is emitted per-request as an inline
   <style id="tenant-accent"> in App.razor, since it depends on the resolved tenant and a
   stylesheet is static. */

.brand-logo {
    border-radius: 6px;
    object-fit: contain;
}

/* Base rule: also used by Branding.razor's live preview (.brand-preview .powered-by), which is
   NOT inside .app-sidebar, so this must stay the plain, unindented caption it always was — the
   preview sits under its own Save button, not the sidebar's brand mark. */
.powered-by {
    font-size: 11px;
    color: var(--text-3);
    padding: 6px 10px;
}

/* The sidebar's own copy: a caption directly under the brand block (mark + wordmark), not a
   sidebar-bottom footer line anymore — DashboardLayout renders it as the next sibling of
   .sidebar-brand. Left padding lines up with where the WORDMARK TEXT starts (not the mark icon):
   .sidebar-brand's own padding-left (16px) + BrandMark's 38px box + its 10px gap = 64px. No
   bottom-of-sidebar spacing is needed here now — the warehouse scope / nav below already carry
   their own top spacing. Scoped to .app-sidebar so it never leaks into the /admin/branding
   preview (Copilot, PR #144). SidebarBrandCaptionAlignmentTests keeps this sum in step with the mark size. */
.app-sidebar .powered-by {
    font-size: 10.5px;
    padding: 2px 14px 0 64px;
}

.app-sidebar.collapsed .powered-by {
    display: none;
}

/* /admin/branding's live preview. Scoped to --accent/--accent-ink set INLINE on .brand-preview
   itself (the operator's in-progress typing), never the page's own tenant-accent style block —
   see the comment on the element in Branding.razor. */
.brand-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-4);
    padding: var(--spacing-4);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-md);
    background: var(--surface-2);
}

.brand-preview-sidebar {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-2) var(--spacing-3);
    border-radius: var(--radius-md);
    background: var(--surface);
    width: 100%;
}

.brand-preview-mark {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--accent);
    flex-shrink: 0;
}

.brand-preview-name {
    font-weight: 600;
    color: var(--text);
}

.brand-preview-button {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
}
