/* Self-contained styling for the cross-cutting bug reporter (FAB + dialog).
   Lives OUTSIDE pa-pages so it may carry fallback colors — the reporter must render on
   themeless layouts (MainLayout loads no ProAuditThemeAssets, so --pa-* tokens are absent
   there). Every color uses var(--pa-*, fallback): it blends into the Audit Journal theme
   where the tokens exist, and stands alone where they don't. */

/* ---- Floating launcher (compact icon-only) ---- */
.br-fab {
    position: fixed;
    right: 18px;
    bottom: 10px;
    /* Sit BELOW the app's drawers/dialogs (--pa-z-drawer: 1100) so a right-anchored detail panel
       renders OVER the button instead of colliding with it — the FAB tucks away while a panel is
       open and returns when it closes. Still above normal page content. */
    z-index: calc(var(--pa-z-drawer, 1100) - 10);
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--pa-orange-fg, #16120e);
    background: var(--pa-orange, #dd9142);
    box-shadow: var(--pa-shadow-btn, 0 6px 16px rgba(139, 82, 28, .30));
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.br-fab:hover {
    background: var(--pa-orange-hover, #d0832f);
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(139, 82, 28, .40);
}

.br-fab:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(221, 145, 66, .55);
}

.br-fab__icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
}

/* ---- Dialog ---- */
.br-dialog {
    --br-ink: var(--pa-ink, #191510);
    --br-muted: var(--pa-muted, #706358);
    --br-card: var(--pa-card, #fffaf3);
    --br-hair: var(--pa-hair-strong, #d9cab7);
    --br-orange: var(--pa-orange, #dd9142);
    color: var(--br-ink);
}

.br-dialog__eyebrow {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--pa-orange-deep, #9b672f);
}

.br-dialog__title {
    margin: 2px 0 0;
    font-family: var(--pa-font-display, 'Source Serif 4', Georgia, serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--br-ink);
}

.br-field {
    display: block;
    margin-top: 14px;
}

.br-field > span {
    display: block;
    margin-bottom: 5px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--br-muted);
}

.br-input {
    width: 100%;
    box-sizing: border-box;
    font-family: var(--pa-font-body, 'Figtree', sans-serif);
    font-size: .86rem;
    color: var(--br-ink);
    background: var(--br-card);
    border: 1px solid var(--br-hair);
    border-radius: var(--pa-radius-sm, 8px);
    padding: 9px 12px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.br-input:focus {
    border-color: var(--br-orange);
    box-shadow: var(--pa-focus-ring, 0 0 0 3px rgba(221, 145, 66, .18));
}

.br-textarea {
    resize: vertical;
    min-height: 96px;
}

.br-counter {
    display: block;
    margin-top: 4px;
    text-align: right;
    font-size: .72rem;
    color: var(--br-muted);
}

.br-error {
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: var(--pa-radius-sm, 8px);
    font-size: .8rem;
    color: var(--pa-bad-fg, #963d30);
    background: var(--pa-bad-bg, #f8e9e6);
    border: 1px solid var(--pa-bad-border, #c0584a);
}

.br-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.br-btn {
    font-family: var(--pa-font-body, 'Figtree', sans-serif);
    font-size: .84rem;
    font-weight: 700;
    border-radius: var(--pa-radius, 10px);
    padding: 10px 22px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .15s ease, color .15s ease;
}

.br-btn--primary {
    background: var(--br-orange);
    color: var(--pa-orange-fg, #16120e);
    box-shadow: var(--pa-shadow-btn, 0 6px 14px rgba(139, 82, 28, .16));
}

.br-btn--primary:hover {
    background: var(--pa-orange-hover, #d0832f);
}

.br-btn--ghost {
    background: transparent;
    color: var(--pa-orange-deep, #9b672f);
    font-weight: 600;
}

.br-btn--ghost:hover {
    color: var(--br-orange);
}

.br-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
}
