/*
 * The console layout's own banners and dialogs, which the layout draws on every page.
 * They used to carry a <style> next to their markup, inside <body>: the browser painted the page, then met the
 * rules, and everything below them moved. Linked in <head> by layouts/app.blade.php instead.
 */

/* Suspension banner (resources/views/partials/suspension-banner.blade.php) */
.susp { margin: var(--ow-sp-3) var(--ow-sp-4) 0; padding: var(--ow-sp-3) var(--ow-sp-4); display: grid; gap: 2px;
        background: var(--ow-danger-bg, rgba(220,38,38,.09)); color: var(--ow-danger, #b91c1c);
        border: 1px solid currentColor; border-radius: var(--ow-radius-md, 12px); font-size: var(--ow-fs-sm); overflow-wrap: anywhere; position: relative; z-index: 2; }
.susp__what { opacity: .85; }

/* Trial chip row (resources/views/partials/trial-chip.blade.php) */
.trial-chip-row { padding: var(--ow-sp-3) var(--ow-sp-4) 0; position: relative; z-index: 2; }

/* Plan pin notice (resources/views/partials/plan-pin-notice.blade.php) */
.pinn { margin: var(--ow-sp-3) var(--ow-sp-4) 0; padding: var(--ow-sp-3) var(--ow-sp-4); display: grid; gap: 2px;
        border: 1px solid var(--ow-border); border-left: 4px solid var(--ow-warning, #b45309); border-radius: var(--ow-radius-md, 12px);
        background: var(--ow-surface); font-size: var(--ow-fs-sm); overflow-wrap: anywhere; position: relative; z-index: 2; }
.pinn a { font-weight: var(--ow-fw-medium); }

/* "Report a bug" dialog (resources/views/partials/bug-report.blade.php) */
.bugr {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    overflow-y: auto;
    background: rgba(15, 23, 42, .45);
    font-family: var(--ow-theme-font-body, 'DM Sans', system-ui, -apple-system, sans-serif);
}
.bugr[data-open="true"] { display: flex; }

.bugr__card {
    width: 100%;
    max-width: 440px;
    margin-top: 6vh;
    background: #fff;
    border: 1px solid var(--ow-theme-border, #e6e9eb);
    border-radius: var(--ow-theme-radius-lg, 14px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
    padding: 20px;
}

.bugr__title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: #0f172a;
}
.bugr__hint {
    margin: 0 0 14px;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #425466;
}

.bugr__field {
    display: block;
    width: 100%;
    min-height: 132px;
    padding: 10px 12px;
    font: inherit;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #0f172a;
    background: #fff;
    border: 1px solid var(--ow-theme-border, #e6e9eb);
    border-radius: var(--ow-theme-radius, 8px);
    resize: vertical;
    transition: border-color 160ms ease-out, box-shadow 160ms ease-out;
}
.bugr__field:focus {
    outline: none;
    border-color: var(--ow-theme-brand, #635bff);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, .18);
}

.bugr__meta {
    margin: 10px 0 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #697386;
}

.bugr__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}
.bugr__count {
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    color: #697386;
}
.bugr__count[data-over="true"] { color: #b91c1c; }

.bugr__actions { display: flex; gap: 8px; }

.bugr__btn {
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--ow-theme-radius, 8px);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 160ms ease-out, background-color 160ms ease-out, opacity 160ms ease-out;
}
.bugr__btn:active { transform: scale(0.98); }
.bugr__btn--ghost { background: #fff; border-color: var(--ow-theme-border, #e6e9eb); color: #425466; }
.bugr__btn--ghost:hover { background: #f6f9fc; }
.bugr__btn--send {
    background: var(--ow-theme-brand, #635bff);
    color: var(--ow-theme-fg, #fff);
}
.bugr__btn--send:hover { background: var(--ow-theme-strong, #4c46cc); }
.bugr__btn--send[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.bugr__note {
    margin: 12px 0 0;
    padding: 10px 12px;
    font-size: 0.8125rem;
    line-height: 1.45;
    border: 1px solid;
    border-radius: var(--ow-theme-radius, 8px);
    display: none;
}
.bugr__note[data-kind="error"]   { display: block; border-color: #f3c2c2; background: #fdf4f4; color: #842029; }
.bugr__note[data-kind="success"] { display: block; border-color: #b7e4cb; background: #f2fbf6; color: #0f5132; }

@media (prefers-reduced-motion: reduce) {
    .bugr__btn, .bugr__field { transition: none; }
    .bugr__btn:active { transform: none; }
}

/* Sidebar link markers (resources/views/layouts/navbars/menus/static_owner.blade.php) */
/* Right-edge markers on owner-sidebar nav-links.
   Two families of markers live at the right side of a link:
     · plugin star (`.sf-plugin-badge`) — indicates addon links
     · collapse chevron (Argon `::after` on `[data-toggle='collapse']`)
   We use the SAME mechanism for both — `margin-left: auto` inside
   the link's flex row — so they land at the identical x-position
   (the link's flex-end minus its padding-right) and inherit the
   link's `align-items: center` for vertical centering. No absolute
   positioning, no manual right-offset math — the flex row handles
   both, so they align perfectly across every row. */
/* Argon (argon.css:19192) applies `min-width: 2.25rem` to ALL
   direct `<i>` children of sidebar nav-links to give the LEFT
   icon its consistent width. That rule also matches the plugin
   star `<i>`, giving it a phantom 36px-wide box that pushes the
   glyph ~18px inward from the right edge — while the chevron
   (a `::after` pseudo-element, not an `<i>`) sits flush right
   and looks perfectly aligned. Match Argon's specificity + kill
   the min-width so the star occupies its intrinsic width and
   lines up with the chevron. */
/* Both right-edge markers get the SAME 16×16 box, glyph
   text-centered inside. Without a fixed box, the star (~14px
   wide) and the chevron (~8px wide) would visually diverge:
   equal margin-right ≠ equal visual centers. With identical
   boxes, both glyph centers land on the exact same x-axis,
   pixel-perfect down the sidebar. */
.navbar-vertical .navbar-nav .nav-link > .sf-plugin-badge,
.navbar-vertical .navbar-nav .nav-link[data-toggle='collapse']:after {
    margin-left: auto;
    margin-right: 24px;
    min-width: 0;
    width: 16px;
    display: inline-block;
    text-align: center;
    font-size: 14px;
    line-height: 1;
    align-self: center;
}
/* !important on the chevron rule wins any Argon cascade that
   reintroduces margin-left: auto with no matching right offset. */
.navbar-vertical .navbar-nav .nav-link[data-toggle='collapse']:after {
    margin-left: auto !important;
    margin-right: 24px !important;
}
/* Star gets its warm-amber tone; chevron keeps Argon's default. */
.navbar-vertical .navbar-nav .nav-link > .sf-plugin-badge {
    color: #f59e0b;
    opacity: 0.95;
    top: auto;
}
/* Preserve Argon's rotate-on-expand while keeping our box intact. */
.navbar-vertical .navbar-nav .nav-link[data-toggle='collapse'][aria-expanded='true']:after {
    transform: rotate(90deg);
}
