/**
 * Stay Blessed â€” application shell & dashboard (uses stay-blessed-tokens.css only).
 */

/* â€”â€” Global app shell â€”â€” */
.sb-app,
.sb-app .main {
    font-family: var(--sb-font);
    color: var(--sb-text);
    background: var(--sb-page-bg) !important;
}

.sb-app .content {
    margin-top: 1.25rem !important;
    padding: 0 1rem 2rem !important;
    max-width: 1400px;
}

/* Page header (modern.css sets white text for old navy band â€” now invisible on gray bg) */
.sb-app .header {
    margin-bottom: 1.25rem !important;
}

.sb-app .header-title {
    color: var(--sb-navy) !important;
    font-weight: var(--sb-font-weight-extrabold);
    font-size: 1.5rem;
    line-height: 1.25;
}

.sb-app .header-subtitle {
    color: var(--sb-text-muted) !important;
    font-weight: var(--sb-font-weight-semibold);
}

/* Remove template top navy band that clips hero */
.sb-app .wrapper::before {
    display: none !important;
    height: 0 !important;
}

.sb-app .navbar-theme {
    background: var(--sb-surface) !important;
    border-bottom: 1px solid var(--sb-border);
    box-shadow: var(--sb-shadow-sm);
}

.sb-app .navbar-theme .nav-link,
.sb-app .navbar-theme .hamburger {
    color: var(--sb-navy) !important;
}

/* Sidebar menu button (template hamburger bars are white â€” invisible on light navbar) */
.sb-app .navbar-theme .sidebar-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    margin-right: 0.35rem;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: var(--sb-radius-md);
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.sb-app .navbar-theme .sidebar-toggle:hover,
.sb-app .navbar-theme .sidebar-toggle:focus-visible {
    background: rgba(0, 63, 138, 0.08);
    outline: none;
}

.sb-app .navbar-theme .sidebar-toggle .hamburger,
.sb-app .navbar-theme .sidebar-toggle .hamburger::before,
.sb-app .navbar-theme .sidebar-toggle .hamburger::after {
    background: var(--sb-navy) !important;
}

.sb-app .navbar-theme .sidebar-toggle:hover .hamburger,
.sb-app .navbar-theme .sidebar-toggle:hover .hamburger::before,
.sb-app .navbar-theme .sidebar-toggle:hover .hamburger::after,
.sb-app .navbar-theme .sidebar-toggle:focus-visible .hamburger,
.sb-app .navbar-theme .sidebar-toggle:focus-visible .hamburger::before,
.sb-app .navbar-theme .sidebar-toggle:focus-visible .hamburger::after {
    background: var(--sb-navy-dark) !important;
}

.sb-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1035;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.sb-sidebar-backdrop:not([hidden]) {
    display: block;
    opacity: 1;
    visibility: visible;
}

body.sb-sidebar-open {
    overflow: hidden;
}

/* Drawer + collapse (mobile, tablet, small laptop) */
@media (max-width: 1199.98px) {
    .sb-app .wrapper > .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1040;
        max-width: var(--sb-sidebar-width, 260px);
        min-width: var(--sb-sidebar-width, 260px);
        width: var(--sb-sidebar-width, 260px);
        margin-left: calc(-1 * var(--sb-sidebar-width, 260px));
        box-shadow: var(--sb-shadow-lg);
    }

    .sb-app .wrapper > .sidebar .sidebar-content {
        position: relative;
        left: calc(-1 * var(--sb-sidebar-width, 260px));
        width: var(--sb-sidebar-width, 260px);
        min-height: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sb-app .wrapper > .sidebar.toggled {
        margin-left: 0;
    }

    .sb-app .wrapper > .sidebar.toggled .sidebar-content {
        left: 0;
    }

    .sb-app .wrapper > .main {
        width: 100%;
        min-width: 0;
        flex: 1 1 auto;
    }
}

/* Large screens: sidebar in flow; toggle collapses it */
@media (min-width: 1200px) {
    .sb-app .wrapper > .sidebar.toggled {
        margin-left: calc(-1 * var(--sb-sidebar-width, 260px));
    }

    .sb-app .wrapper > .sidebar.toggled .sidebar-content {
        left: calc(-1 * var(--sb-sidebar-width, 260px));
    }
}

/* â€”â€” Sidebar â€”â€” */
.sb-app .wrapper > .sidebar {
    flex: 0 0 var(--sb-sidebar-width, 260px) !important;
    width: var(--sb-sidebar-width, 260px) !important;
    min-width: var(--sb-sidebar-width, 260px) !important;
    max-width: var(--sb-sidebar-width, 260px) !important;
    box-sizing: border-box;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

.sb-app .wrapper > .sidebar .sidebar-content {
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
}

.sb-app .sidebar {
    background: var(--sb-sidebar-bg) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

/* Template sets .sidebar-nav to white â€” hides white menu text */
.sb-app .sidebar-content,
.sb-app .sidebar-nav {
    background: transparent !important;
}

.sb-app .sidebar-content {
    padding: 0.5rem 0.75rem 1.5rem;
}

.sb-app .sidebar-user {
    padding: 1.5rem 0.65rem 1.25rem !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
}

.sb-app .sidebar-user .sb-logo-link {
    display: block;
    width: 100%;
    text-align: center;
    line-height: 0;
    background: var(--sb-navy);
}

.sb-app .sb-logo {
    height: 8.5rem !important;
    width: auto !important;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

@media (max-width: 991.98px) {
    .sb-app .sb-logo {
        height: 5rem !important;
    }
}

.sb-app a.sidebar-link {
    color: var(--sb-sidebar-text) !important;
    font-weight: var(--sb-font-weight-semibold);
    font-size: 0.9rem;
    border-radius: var(--sb-radius-md) !important;
    padding: 0.65rem 0.85rem !important;
    transition: background var(--sb-ease), color var(--sb-ease);
    display: flex !important;
    align-items: center;
}

.sb-app a.sidebar-link .sb-sidebar-label {
    color: inherit !important;
    flex: 1;
    min-width: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sb-app a.sidebar-link .fas,
.sb-app a.sidebar-link svg {
    color: var(--sb-gold-end) !important;
    flex-shrink: 0;
}

.sb-app a.sidebar-link:hover {
    background: var(--sb-sidebar-hover-bg) !important;
    color: var(--sb-white) !important;
}

/* Top-level active only (not dropdown children) */
.sb-app .sidebar-nav > .sidebar-item.active > a.sidebar-link {
    background: var(--sb-sidebar-active-bg) !important;
    color: var(--sb-text-on-gold) !important;
    box-shadow: var(--sb-shadow-sm);
}

.sb-app .sidebar-nav > .sidebar-item.active > a.sidebar-link .fas {
    color: var(--sb-text-on-gold) !important;
}

/* Dropdown children â€” readable on navy (template used white bg + white text) */
.sb-app .sidebar-dropdown .sidebar-link {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.875rem !important;
    border-left: 3px solid transparent;
    padding: 0.5rem 0.75rem 0.5rem calc(1rem - 3px) !important;
    margin: 0.15rem 0.5rem !important;
}

.sb-app .sidebar-dropdown .sidebar-link:hover {
    background: var(--sb-sidebar-hover-bg) !important;
    color: var(--sb-white) !important;
}

.sb-app .sidebar-dropdown .sidebar-item.active > a.sidebar-link {
    background: var(--sb-sidebar-child-active-bg) !important;
    color: var(--sb-white) !important;
    border-left-color: var(--sb-gold-end);
}

.sb-app .sidebar-dropdown .sidebar-item.active > a.sidebar-link .fas {
    color: var(--sb-gold-end) !important;
}

.sb-app .sidebar-dropdown {
    padding-left: 0.35rem !important;
}

.sb-app .sidebar [data-bs-toggle="collapse"]::before {
    color: var(--sb-sidebar-text-muted) !important;
}

/* â€”â€” Buttons â€”â€” */
.sb-app .btn-primary {
    background: var(--sb-navy) !important;
    border-color: var(--sb-navy) !important;
    color: var(--sb-white) !important;
    font-weight: var(--sb-font-weight-semibold);
    border-radius: var(--sb-radius-md);
}

.sb-app .btn-primary:hover {
    background: var(--sb-navy-dark) !important;
    border-color: var(--sb-navy-dark) !important;
}

/* Settings / config sub-nav */
.sb-app .list-group-item-action {
    color: var(--sb-text) !important;
    font-weight: var(--sb-font-weight-semibold);
    border-color: var(--sb-border) !important;
}

.sb-app .list-group-item-action:hover {
    background: var(--sb-surface-muted) !important;
    color: var(--sb-navy) !important;
}

.sb-app .list-group-item.active {
    background: var(--sb-navy) !important;
    border-color: var(--sb-navy) !important;
    color: var(--sb-white) !important;
}

.sb-app .list-group-item.active .fas {
    color: var(--sb-gold-end) !important;
}

.btn-sb-gold {
    background: var(--sb-gold-gradient) !important;
    border: none !important;
    color: var(--sb-text-on-gold) !important;
    font-weight: var(--sb-font-weight-bold);
    border-radius: var(--sb-radius-md);
    box-shadow: var(--sb-shadow-sm);
}

.btn-sb-gold:hover {
    filter: brightness(1.04);
    color: var(--sb-text-on-gold) !important;
}

.btn-outline-sb-navy {
    background: transparent !important;
    border: 2px solid var(--sb-navy) !important;
    color: var(--sb-navy) !important;
    font-weight: var(--sb-font-weight-semibold);
    border-radius: var(--sb-radius-md);
}

.btn-outline-sb-navy:hover {
    background: var(--sb-navy) !important;
    color: var(--sb-white) !important;
}

.text-sb-navy { color: var(--sb-navy) !important; }
.text-sb-black { color: var(--sb-text) !important; }
.text-sb-muted { color: var(--sb-text-muted) !important; }

.text-sb-gold {
    background: var(--sb-gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* â€”â€” Auth / landing â€”â€” */
.sb-auth-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--sb-hero-gradient);
    min-height: 100vh;
    min-height: 100dvh;
    padding: 2rem 1rem;
}

.sb-auth-page__inner {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

.sb-auth-page__col {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    width: 100%;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
    flex: 0 0 100%;
}

.sb-auth-page .card,
.sb-auth-card {
    width: 100%;
    border: none;
    border-radius: var(--sb-radius-xl);
    box-shadow: var(--sb-shadow-lg);
}

.sb-auth-logo-wrap {
    margin-bottom: 0.35rem;
    line-height: 0;
}

.sb-auth-logo-wrap--outside {
    margin-bottom: 0.15rem;
    padding: 0 0.5rem;
}

.sb-auth-logo-wrap--outside .logo,
.sb-auth-logo-wrap--outside .sb-logo {
    max-width: 380px;
    width: min(380px, 88vw);
    height: auto;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.22));
}

.sb-auth-logo-wrap .sb-logo-link {
    display: inline-block;
    margin: 0;
    line-height: 0;
}

.sb-auth-logo-wrap .logo,
.sb-auth-logo-wrap .sb-logo {
    display: block;
    max-width: 220px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.sb-auth-card .card-body {
    padding: 1.75rem 1.5rem 1.5rem;
}

.sb-auth-page__footer {
    color: rgba(255, 255, 255, 0.88);
    font-weight: var(--sb-font-weight-semibold);
    line-height: 1.4;
    padding: 0 0.5rem;
}

.sb-auth-page .sb-auth-headline {
    font-size: clamp(1.25rem, 3.5vw, 1.55rem);
    font-weight: var(--sb-font-weight-extrabold);
    color: var(--sb-navy);
    line-height: 1.25;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.sb-auth-page .sb-auth-tagline {
    font-size: 1.05rem;
    color: var(--sb-navy);
    font-weight: var(--sb-font-weight-bold);
}

.sb-auth-page .sb-contact-line {
    color: var(--sb-text-muted);
    font-weight: var(--sb-font-weight-semibold);
}

.sb-auth-page .sb-contact-line a {
    color: var(--sb-navy);
    font-weight: var(--sb-font-weight-bold);
}

.sb-landing,
.sb-auth-page {
    font-family: var(--sb-font);
}

.sb-auth-badge-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

.sb-auth-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: var(--sb-font-weight-bold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(0, 63, 138, 0.08);
    color: var(--sb-navy);
}

@media (min-width: 576px) {
    .sb-auth-page {
        align-items: center;
    }

    .sb-auth-page__inner {
        flex: 0 0 auto;
    }
}

@media (max-width: 575.98px) {
    .sb-auth-page {
        justify-content: flex-start;
        align-items: stretch;
        padding:
            max(1.15rem, env(safe-area-inset-top, 0px))
            max(0.875rem, env(safe-area-inset-right, 0px))
            max(1.35rem, env(safe-area-inset-bottom, 0px))
            max(0.875rem, env(safe-area-inset-left, 0px));
    }

    .sb-auth-page__inner {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        max-width: none;
        padding: 0.35rem 0;
    }

    .sb-auth-page__col {
        max-width: none;
    }

    .sb-auth-page__col {
        gap: 0.85rem;
    }

    .sb-auth-card {
        border-radius: 1.15rem;
    }

    .sb-auth-card .card-body {
        padding: 1.35rem 1.15rem 1.2rem;
    }

    .sb-auth-logo-wrap--outside {
        margin-bottom: 0.1rem;
    }

    .sb-auth-logo-wrap--outside .logo,
    .sb-auth-logo-wrap--outside .sb-logo {
        max-width: min(320px, 90vw);
    }

    .sb-auth-logo-wrap .logo,
    .sb-auth-logo-wrap .sb-logo {
        max-width: min(200px, 58vw);
        height: auto;
    }

    .sb-auth-badge-wrap {
        margin-bottom: 0.6rem !important;
    }

    .sb-auth-page .sb-auth-headline {
        font-size: clamp(1.15rem, 4.5vw, 1.4rem);
        margin-bottom: 0.25rem !important;
    }

    .sb-auth-page .sb-auth-tagline {
        font-size: 0.95rem;
        margin-bottom: 0.3rem !important;
    }

    .sb-auth-page .sb-contact-line.mb-3 {
        margin-bottom: 0.45rem !important;
        font-size: 0.88rem;
    }

    .sb-auth-page .sb-contact-line.mb-4 {
        margin-bottom: 1rem !important;
        font-size: 0.9rem;
    }

    .sb-auth-page__footer {
        margin-top: 0.15rem;
        font-size: 0.78rem;
    }
}

/* â€”â€” Welcome / portal landing â€”â€” */
.sb-landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--sb-page-bg);
    color: var(--sb-text);
    animation: sb-fade-in 0.45s ease;
}

.sb-landing__nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--sb-white);
    border-bottom: 1px solid var(--sb-border);
    box-shadow: var(--sb-shadow-sm);
}

.sb-landing__nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.sb-landing__nav-brand img {
    display: block;
    height: 96px;
    width: auto;
    max-width: min(360px, 80vw);
}

.sb-landing__nav-cta {
    padding: 0.55rem 1.25rem;
    font-size: 0.9rem;
    font-weight: var(--sb-font-weight-bold);
    white-space: nowrap;
}

.sb-landing__hero {
    position: relative;
    overflow: hidden;
    background: var(--sb-hero-gradient);
    color: var(--sb-text-on-navy);
    text-align: center;
}

.sb-landing__hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(247, 191, 0, 0.18) 0%, transparent 55%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 10% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 35%);
    pointer-events: none;
}

.sb-landing__hero-inner {
    position: relative;
    z-index: 1;
    padding: 3.5rem 1rem 4rem;
    max-width: 52rem;
}

.sb-landing__eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: var(--sb-font-weight-bold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.sb-landing__title {
    margin: 0 0 1.25rem;
    line-height: 1.15;
}

.sb-landing__title-accent {
    display: block;
    font-size: clamp(2.25rem, 6vw, 3.25rem);
    font-weight: var(--sb-font-weight-extrabold);
    background: var(--sb-gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sb-landing__title-sub {
    display: block;
    margin-top: 0.35rem;
    font-size: clamp(1.35rem, 3.5vw, 1.85rem);
    font-weight: var(--sb-font-weight-bold);
    color: var(--sb-white);
}

.sb-landing__lead {
    margin: 0 auto 1.75rem;
    max-width: 38rem;
    font-size: clamp(1rem, 2.2vw, 1.125rem);
    font-weight: var(--sb-font-weight-semibold);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
}

.sb-landing__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.sb-landing__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: var(--sb-font-weight-bold);
    text-decoration: none;
    color: var(--sb-white);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background var(--sb-ease), border-color var(--sb-ease);
}

.sb-landing__chip:hover {
    color: var(--sb-white);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
}

.sb-landing__chip--badge {
    cursor: default;
    color: rgba(255, 255, 255, 0.9);
}

.sb-landing__hero-actions .btn-sb-gold {
    min-width: 220px;
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
    font-weight: var(--sb-font-weight-bold);
    box-shadow: 0 8px 24px rgba(10, 10, 10, 0.2);
}

.sb-landing__hero-note {
    margin: 1.75rem auto 0;
    max-width: 28rem;
    font-size: 0.9rem;
    font-weight: var(--sb-font-weight-semibold);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
}

.sb-landing__hero-note a {
    color: var(--sb-gold-end);
    font-weight: var(--sb-font-weight-bold);
    text-decoration: none;
}

.sb-landing__hero-note a:hover {
    text-decoration: underline;
}

.sb-landing__workflow {
    padding: 3.5rem 0;
    background: var(--sb-white);
    border-bottom: 1px solid var(--sb-border);
}

.sb-landing__section-title {
    margin: 0 0 0.5rem;
    text-align: center;
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    font-weight: var(--sb-font-weight-extrabold);
    color: var(--sb-navy);
}

.sb-landing__section-lead {
    margin: 0 auto 2.5rem;
    max-width: 32rem;
    text-align: center;
    font-size: 1rem;
    font-weight: var(--sb-font-weight-semibold);
    color: var(--sb-text-muted);
    line-height: 1.5;
}

.sb-landing__flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin: 0 auto;
    max-width: 1120px;
}

.sb-landing__step {
    flex: 1 1 0;
    min-width: 0;
    padding: 1.65rem 1.15rem 1.5rem;
    background: var(--sb-white);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-lg);
    text-align: center;
    box-shadow: var(--sb-shadow-card);
    transition: box-shadow var(--sb-ease), border-color var(--sb-ease), transform var(--sb-ease);
}

.sb-landing__step:hover {
    border-color: rgba(0, 63, 138, 0.28);
    box-shadow: var(--sb-shadow-md);
    transform: translateY(-3px);
}

.sb-landing__flow-arrow {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 3.25rem;
    padding: 0 0.15rem;
    align-self: center;
}

.sb-landing__flow-arrow__line {
    display: block;
    width: 1.25rem;
    height: 2px;
    background: linear-gradient(90deg, var(--sb-navy) 0%, var(--sb-gold-end) 100%);
    border-radius: 1px;
}

.sb-landing__flow-arrow__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-left: -0.35rem;
    border-radius: 50%;
    background: var(--sb-white);
    border: 2px solid var(--sb-gold-end);
    color: var(--sb-navy);
    font-size: 0.7rem;
    box-shadow: var(--sb-shadow-sm);
}

.sb-landing__step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--sb-gold-gradient);
    color: var(--sb-black);
    font-size: 1.15rem;
}

.sb-landing__step-title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: var(--sb-font-weight-bold);
    color: var(--sb-navy);
}

.sb-landing__step-text {
    margin: 0;
    font-size: 0.875rem;
    font-weight: var(--sb-font-weight-semibold);
    color: var(--sb-text-muted);
    line-height: 1.5;
}

.sb-landing__workflow-cta {
    margin-top: 2.5rem;
}

.sb-landing__workflow-cta .btn-sb-gold {
    min-width: 260px;
    padding: 0.85rem 2rem;
    font-weight: var(--sb-font-weight-bold);
}

.sb-landing__panels {
    padding: 3.5rem 0 4rem;
}

.sb-landing__panel {
    height: 100%;
    padding: 2rem 2rem 1.75rem;
    background: var(--sb-white);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-xl);
    box-shadow: var(--sb-shadow-card);
}

.sb-landing__panel--primary {
    border-color: rgba(0, 63, 138, 0.2);
    box-shadow: var(--sb-shadow-lg);
}

.sb-landing__panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1.25rem;
    border-radius: var(--sb-radius-md);
    background: var(--sb-gold-gradient);
    color: var(--sb-black);
    font-size: 1.25rem;
}

.sb-landing__panel-icon--muted {
    background: rgba(0, 63, 138, 0.08);
    color: var(--sb-navy);
}

.sb-landing__panel-title {
    margin: 0 0 0.65rem;
    font-size: 1.35rem;
    font-weight: var(--sb-font-weight-extrabold);
    color: var(--sb-navy);
}

.sb-landing__panel-intro {
    margin: 0 0 1.25rem;
    font-size: 0.975rem;
    font-weight: var(--sb-font-weight-semibold);
    color: var(--sb-text-muted);
    line-height: 1.55;
}

.sb-landing__panel-list {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
}

.sb-landing__panel-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.55rem 0;
    font-size: 0.95rem;
    font-weight: var(--sb-font-weight-semibold);
    color: var(--sb-text);
    border-bottom: 1px solid var(--sb-border);
}

.sb-landing__panel-list li:last-child {
    border-bottom: none;
}

.sb-landing__panel-list li i {
    flex-shrink: 0;
    margin-top: 0.2rem;
    color: var(--sb-gold-start);
    font-size: 0.8rem;
}

.sb-landing__callout {
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--sb-surface-muted);
    border-left: 4px solid var(--sb-navy);
    border-radius: 0 var(--sb-radius-md) var(--sb-radius-md) 0;
}

.sb-landing__callout-label {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    font-weight: var(--sb-font-weight-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sb-text-muted);
}

.sb-landing__callout-phone {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: var(--sb-font-weight-extrabold);
    color: var(--sb-navy);
    text-decoration: none;
    line-height: 1.2;
}

.sb-landing__callout-phone:hover {
    color: var(--sb-gold-start);
}

.sb-landing__panel-note {
    margin: 0;
    font-size: 0.875rem;
    font-weight: var(--sb-font-weight-semibold);
    color: var(--sb-text-muted);
    line-height: 1.55;
}

.sb-landing__footer {
    margin-top: auto;
    padding: 2rem 0;
    background: var(--sb-white);
    border-top: 1px solid var(--sb-border);
}

.sb-landing__footer-inner {
    display: flex;
    justify-content: center;
}

.sb-landing__footer-logo {
    display: block;
    height: auto;
    width: auto;
    max-width: 280px;
    opacity: 0.9;
}

@media (max-width: 991.98px) {
    .sb-landing__flow {
        flex-direction: column;
        align-items: center;
        max-width: 22rem;
    }

    .sb-landing__step {
        width: 100%;
    }

    .sb-landing__flow-arrow {
        flex-direction: column;
        width: auto;
        height: 2.75rem;
        padding: 0.25rem 0;
    }

    .sb-landing__flow-arrow__line {
        width: 2px;
        height: 1.25rem;
        background: linear-gradient(180deg, var(--sb-navy) 0%, var(--sb-gold-end) 100%);
    }

    .sb-landing__flow-arrow__icon {
        margin-left: 0;
        margin-top: -0.35rem;
        transform: rotate(90deg);
    }
}

@media (max-width: 575.98px) {
    .sb-landing__hero-inner {
        padding: 2.5rem 0.5rem 3rem;
    }

    .sb-landing__panel {
        padding: 1.5rem 1.25rem;
    }

    .sb-landing__nav-brand img {
        height: 72px;
        max-width: min(300px, 85vw);
    }

    .sb-landing__footer-logo {
        max-width: 220px;
    }

    .sb-landing__nav-cta {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
    }
}

.sb-auth-back-link {
    color: var(--sb-navy);
    font-weight: var(--sb-font-weight-bold);
    text-decoration: none;
}

.sb-auth-back-link:hover {
    color: var(--sb-gold-start);
    text-decoration: underline;
}

/* â€”â€” Dashboard home â€”â€” */
.sb-dashboard-home .header {
    display: none;
}

.sb-dashboard-home {
    animation: sb-fade-in 0.4s ease;
}

@keyframes sb-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.sb-hero--dashboard {
    background: var(--sb-navy);
    padding: 1.25rem 2rem;
    min-height: 6.75rem;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sb-hero--dashboard::after {
    display: none;
}

.sb-hero--dashboard .sb-hero__grid {
    gap: 1.75rem;
}

.sb-hero--dashboard .sb-hero__brand {
    line-height: 0;
    background: var(--sb-navy);
}

.sb-hero--dashboard .sb-hero__logo {
    height: clamp(6.5rem, 14vw, 6rem);
    max-width: none;
    width: auto;
    mix-blend-mode: normal;
    filter: none;
    opacity: 1;
}

.sb-hero--dashboard .sb-hero__divider {
    flex: 0 0 1px;
    width: 1px;
    height: clamp(5.75rem, 12vw, 7.25rem);
    min-height: 0;
    align-self: center;
    background: var(--sb-gold-end);
    opacity: 0.9;
}

.sb-hero--dashboard .sb-hero__welcome {
    flex: 0 1 auto;
}

.sb-hero--dashboard .sb-hero__title {
    font-size: clamp(1.5rem, 0.9rem + 1.6vw, 2.125rem);
    font-weight: var(--sb-font-weight-bold);
    line-height: 1.2;
    text-align: left;
    color: var(--sb-gold-end);
    background: var(--sb-gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sb-hero {
    position: relative;
    overflow: hidden;
    background: var(--sb-navy);
    border-radius: var(--sb-radius-xl);
    color: var(--sb-text-on-navy);
    padding: 1.35rem 1.75rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--sb-shadow-md);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 7.5rem;
}

.sb-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247, 191, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.sb-hero__grid {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem 2rem;
    width: 100%;
}

.sb-hero--dashboard .sb-hero__grid {
    gap: clamp(1rem, 2vw, 2.25rem);
}

.sb-hero__brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sb-hero__logo {
    display: block;
    width: auto;
    height: clamp(4.25rem, 10vw, 5.5rem);
    max-width: min(7.5rem, 28vw);
    object-fit: contain;
}

.sb-hero__divider {
    flex: 0 0 auto;
    align-self: stretch;
    width: 1px;
    min-height: 4.25rem;
    background: linear-gradient(
        180deg,
        rgba(247, 191, 0, 0) 0%,
        rgba(247, 191, 0, 0.95) 22%,
        rgba(169, 112, 25, 0.95) 50%,
        rgba(247, 191, 0, 0.95) 78%,
        rgba(247, 191, 0, 0) 100%
    );
}

.sb-hero__welcome {
    flex: 1 1 auto;
    min-width: 0;
}

@media (min-width: 992px) {
    .sb-hero__grid {
        justify-content: flex-start;
    }
}

.sb-hero__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: var(--sb-font-weight-bold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sb-gold-end);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    margin-bottom: 0.75rem;
}

.sb-hero__wordmark {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 0.85rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    line-height: 1.15;
}

.sb-hero__wordmark-gold {
    font-size: clamp(1.05rem, 0.55rem + 1.1vw, 1.25rem);
    font-weight: var(--sb-font-weight-bold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--sb-gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.22));
}

.sb-hero__wordmark-white {
    font-size: clamp(1.05rem, 0.55rem + 1.1vw, 1.25rem);
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.sb-hero__wordmark-reg {
    margin-left: 0.04rem;
    font-size: 0.45em;
    font-weight: 700;
    line-height: 0;
    vertical-align: super;
    color: #fff;
}

.sb-hero__title {
    font-size: clamp(1.35rem, 0.85rem + 1.5vw, 2rem);
    font-weight: var(--sb-font-weight-bold);
    line-height: 1.25;
    margin: 0;
    text-align: left;
    letter-spacing: 0.01em;
    background: var(--sb-gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.sb-hero__title span {
    background: var(--sb-gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
}

.sb-hero__lead {
    font-size: 1.05rem;
    font-weight: var(--sb-font-weight-normal);
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 1.25rem;
    max-width: 32rem;
    line-height: 1.55;
}

.sb-hero__main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.sb-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.sb-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: var(--sb-font-weight-semibold);
    color: var(--sb-white);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: var(--sb-radius-md);
}

.sb-hero__chip a {
    color: var(--sb-gold-end);
    text-decoration: none;
}

.sb-hero__chip a:hover {
    color: var(--sb-white);
}

.sb-hero__panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--sb-radius-lg);
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(8px);
}

.sb-hero__panel-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sb-gold-end);
    font-weight: var(--sb-font-weight-bold);
    margin-bottom: 0.35rem;
}

.sb-hero__panel-phone {
    font-size: 1.5rem;
    font-weight: var(--sb-font-weight-extrabold);
    color: var(--sb-white);
    margin: 0;
}

.sb-hero__panel-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0.5rem 0 0;
}

.sb-stat-card {
    background: var(--sb-surface);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-lg);
    padding: 1.25rem;
    height: 100%;
    min-height: 6rem;
    width: 100%;
    box-shadow: var(--sb-shadow-card);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: box-shadow var(--sb-ease), transform var(--sb-ease);
}

.sb-stat-card:hover {
    box-shadow: var(--sb-shadow-md);
    transform: translateY(-2px);
}

.sb-stat-card__icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--sb-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: rgba(0, 63, 138, 0.08);
    color: var(--sb-navy);
}

.sb-stat-card__icon--gold {
    background: linear-gradient(135deg, rgba(169, 112, 25, 0.18), rgba(247, 191, 0, 0.24));
    color: var(--sb-gold-start);
}

.sb-stat-card__value {
    font-size: 1.75rem;
    font-weight: var(--sb-font-weight-extrabold);
    color: var(--sb-navy);
    line-height: 1.1;
}

.sb-stat-card__label {
    font-size: 0.875rem;
    font-weight: var(--sb-font-weight-semibold);
    color: var(--sb-text-muted);
    margin-top: 0.15rem;
}

.sb-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

.sb-section-title {
    font-size: 1.125rem;
    font-weight: var(--sb-font-weight-extrabold);
    color: var(--sb-text);
    margin: 0;
}

.sb-section-sub {
    font-size: 0.875rem;
    color: var(--sb-text-muted);
    font-weight: var(--sb-font-weight-normal);
    margin: 0;
}

.sb-action-card {
    background: var(--sb-surface);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-lg);
    padding: 1.35rem;
    height: 100%;
    box-shadow: var(--sb-shadow-card);
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--sb-ease), transform var(--sb-ease), border-color var(--sb-ease);
}

a:hover .sb-action-card {
    border-color: var(--sb-navy-light);
    box-shadow: var(--sb-shadow-md);
    transform: translateY(-3px);
}

.sb-action-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.sb-action-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--sb-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.sb-action-card__icon--navy {
    background: rgba(0, 63, 138, 0.1);
    color: var(--sb-navy);
}

.sb-action-card__icon--gold {
    background: linear-gradient(135deg, rgba(169, 112, 25, 0.18), rgba(247, 191, 0, 0.22));
    color: var(--sb-gold-start);
}

.sb-action-card__arrow {
    color: var(--sb-border-strong);
    font-size: 0.9rem;
    transition: color var(--sb-ease), transform var(--sb-ease);
}

a:hover .sb-action-card__arrow {
    color: var(--sb-navy);
    transform: translateX(3px);
}

.sb-action-card__label {
    font-size: 1.05rem;
    font-weight: var(--sb-font-weight-bold);
    color: var(--sb-text);
    margin-bottom: 0.35rem;
}

.sb-action-card__desc {
    font-size: 0.875rem;
    color: var(--sb-text-muted);
    margin: 0;
    line-height: 1.45;
    flex: 1;
}

.sb-note-card {
    background: var(--sb-surface);
    border: 1px solid var(--sb-border);
    border-left: 4px solid var(--sb-gold-start);
    border-radius: var(--sb-radius-md);
    padding: 1.15rem 1.35rem;
    color: var(--sb-text);
    font-size: 0.925rem;
    font-weight: var(--sb-font-weight-normal);
    line-height: 1.55;
    box-shadow: var(--sb-shadow-sm);
}

.sb-note-card strong {
    color: var(--sb-navy);
    font-weight: var(--sb-font-weight-bold);
}

.sb-quotes-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--sb-surface, #fff);
}

.sb-quotes-empty-state p {
    margin: 0;
    width: 100%;
    text-align: center;
}

.sb-quote-status {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sb-quote-status--draft {
    background: #e8edf3;
    color: #334155;
}

.sb-quote-status--sent {
    background: #e8f4fc;
    color: #003f8a;
}

.sb-quote-status--bound {
    background: #e8f4e8;
    color: #166534;
}

.sb-quote-status--expired,
.sb-quote-status--lost {
    background: #fef2f2;
    color: #991b1b;
}

@media (max-width: 991.98px) {
    .sb-app .content {
        padding: 0 max(0.85rem, env(safe-area-inset-left)) 1.5rem max(0.85rem, env(safe-area-inset-right)) !important;
        margin-top: 0.85rem !important;
        overflow-x: clip;
    }

    .sb-hero--dashboard {
        padding: 1rem 1.15rem;
        min-height: auto;
    }

    .sb-hero--dashboard .sb-hero__grid {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 1rem;
    }

    .sb-hero--dashboard .sb-hero__logo {
        height: clamp(5.5rem, 22vw, 6.75rem);
    }

    .sb-hero--dashboard .sb-hero__divider {
        width: 1px;
        height: clamp(5rem, 20vw, 6.25rem);
        min-height: 0;
        background: var(--sb-gold-end);
    }

    .sb-hero--dashboard .sb-hero__title {
        font-size: clamp(1.05rem, 3.8vw, 1.35rem);
        text-align: left;
    }

    .sb-hero {
        padding: 1.15rem 1rem;
        margin-bottom: 1.25rem;
        border-radius: 1rem;
        min-height: auto;
    }

    .sb-hero__grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.85rem;
    }

    .sb-hero__divider {
        width: min(12rem, 70%);
        height: 1px;
        min-height: 0;
        align-self: center;
        background: linear-gradient(
            90deg,
            rgba(247, 191, 0, 0) 0%,
            rgba(247, 191, 0, 0.95) 22%,
            rgba(169, 112, 25, 0.95) 50%,
            rgba(247, 191, 0, 0.95) 78%,
            rgba(247, 191, 0, 0) 100%
        );
    }

    .sb-hero__title {
        text-align: center;
        font-size: clamp(1.15rem, 4.5vw, 1.45rem);
    }

    .sb-hero__eyebrow,
    .sb-hero__wordmark {
        margin-bottom: 0.75rem;
    }

    .sb-hero__wordmark-gold,
    .sb-hero__wordmark-white {
        font-size: clamp(0.95rem, 2.8vw, 1.1rem);
    }

    .sb-hero__title {
        font-size: clamp(1.1rem, 3.8vw, 1.45rem);
    }

    .sb-hero__lead {
        font-size: 0.98rem;
        max-width: none;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1rem;
    }

    .sb-hero__meta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
    }

    .sb-hero__chip {
        justify-content: center;
        width: 100%;
        font-size: 0.9rem;
        padding: 0.55rem 0.85rem;
    }

    .sb-hero__panel {
        text-align: center;
        padding: 1.1rem 1rem;
    }

    .sb-hero__panel-phone {
        font-size: 1.35rem;
    }

    .sb-section-head {
        text-align: center;
        justify-content: center;
    }

    .sb-section-title,
    .sb-section-sub {
        width: 100%;
    }

    .sb-stat-card {
        padding: 1rem;
    }

    .sb-stat-card__value {
        font-size: 1.5rem;
    }

    .sb-action-card {
        padding: 1.15rem;
    }

    .sb-note-card {
        font-size: 0.92rem;
        line-height: 1.55;
        padding: 1rem 1.1rem;
    }
}

@media (max-width: 575.98px) {
    .sb-hero {
        padding: 1.25rem 1rem;
        min-height: 8.25rem;
    }

    .sb-hero__title {
        font-size: clamp(1.05rem, 4.5vw, 1.35rem);
    }
}

/* â€”â€” Quotes list (My / All) â€”â€” */
.sb-quotes-filters {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.sb-quotes-filters__label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: var(--sb-font-weight-extrabold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sb-navy);
}

.sb-quotes-filters__track {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.sb-quotes-filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: var(--sb-font-weight-semibold);
    text-decoration: none;
    color: var(--sb-navy);
    background: var(--sb-surface);
    border: 1px solid var(--sb-border-strong);
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sb-quotes-filter-pill:hover {
    color: var(--sb-navy);
    border-color: var(--sb-navy);
    background: rgba(0, 63, 138, 0.06);
}

.sb-quotes-filter-pill.is-active {
    color: var(--sb-white);
    background: var(--sb-navy);
    border-color: var(--sb-navy);
    box-shadow: 0 2px 8px rgba(0, 63, 138, 0.25);
}

/* Shared panel list tables (staff, roles, quotes, etc.) */
.sb-panel-table-wrap,
.sb-quotes-table-wrap {
    width: 100%;
}

.sb-panel-table-wrap .dataTables_filter,
.sb-quotes-table-wrap .dataTables_filter {
    margin-bottom: 0.75rem;
}

.sb-panel-table-wrap .dataTables_filter label,
.sb-quotes-table-wrap .dataTables_filter label {
    width: 100%;
    font-weight: var(--sb-font-weight-semibold);
    color: var(--sb-text-muted);
}

.sb-panel-table-wrap .dataTables_filter input,
.sb-quotes-table-wrap .dataTables_filter input {
    width: 100%;
    max-width: none;
    margin-left: 0 !important;
    margin-top: 0.35rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-md);
}

/* Inline row action icons (staff, roles, quotes, etc.) */
.sb-panel-mobile-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
}

.sb-panel-mobile-actions__label {
    display: none;
}

.sb-panel-row-actions-scroll {
    width: 100%;
    max-width: 100%;
}

.sb-panel-row-actions {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    width: max-content;
    min-width: 100%;
}

.sb-panel-action-form {
    display: inline-flex;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.sb-panel-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid var(--sb-border);
    border-radius: 0.4rem;
    background: var(--sb-surface);
    color: var(--sb-navy);
    font-size: 0.8rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.sb-panel-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 31, 68, 0.1);
}

.sb-panel-action-btn--view {
    color: #003f8a;
    border-color: #c5d4e8;
    background: #f8fbff;
}

.sb-panel-action-btn--edit {
    color: #b45309;
    border-color: #fde68a;
    background: #fffbeb;
}

.sb-panel-action-btn--link {
    color: #003f8a;
    border-color: #c5d4e8;
    background: #f8fbff;
}

.sb-panel-action-btn--pdf {
    color: #9f1239;
    border-color: #fbcfe8;
    background: #fff1f2;
}

.sb-panel-action-btn--success {
    color: #166534;
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.sb-panel-action-btn--warning {
    color: #b45309;
    border-color: #fde68a;
    background: #fffbeb;
}

.sb-panel-action-btn--delete {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fef2f2;
}

.sb-panel-action-btn--bound {
    color: #166534;
    border-color: #bbf7d0;
    background: #e8f4e8;
}

.sb-panel-action-btn--lost {
    color: #991b1b;
    border-color: #fecaca;
    background: #fef2f2;
}

.sb-panel-action-btn--expired {
    color: #9a3412;
    border-color: #fdba74;
    background: #fff7ed;
}

.sb-quotes-search__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem 0.75rem;
    align-items: end;
}

@media (min-width: 576px) {
    .sb-quotes-search__grid {
        grid-template-columns: 1fr 1fr auto;
    }

    .sb-quotes-search__field--wide {
        grid-column: 1 / -1;
    }
}

@media (min-width: 992px) {
    .sb-quotes-search__grid {
        grid-template-columns: 2fr 1fr 1fr 1fr auto;
    }

    .sb-quotes-search__field--wide {
        grid-column: auto;
    }
}

.sb-quotes-search__label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.sb-quotes-search__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.sb-quotes-search__hint {
    margin-top: 0.5rem;
}

.sb-panel-table-wrap td.sb-panel-col--actions,
.sb-quotes-table-wrap .sb-quotes-col--actions {
    width: 1%;
    white-space: nowrap;
}

.sb-upload-preview {
    object-fit: cover;
    background: var(--sb-surface-muted);
    border: 2px solid var(--sb-border);
}

@media (max-width: 767.98px) {
    .sb-quotes-filters__track {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        gap: 0.5rem;
        padding: 0.15rem 0.1rem 0.45rem;
        margin: 0 -0.15rem;
        scrollbar-width: none;
    }

    .sb-quotes-filters__track::-webkit-scrollbar {
        display: none;
    }

    .sb-quotes-filter-pill {
        scroll-snap-align: start;
        flex-shrink: 0;
        padding: 0.5rem 1rem;
        font-size: 0.82rem;
    }

    /* Card headers â€” stack title + action button on mobile */
    .card-header {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding-bottom: 0.85rem !important;
    }

    .card-header .card-actions {
        float: none !important;
        order: -1;
        width: 100%;
        display: flex;
        justify-content: stretch;
    }

    .card-header .card-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .card-header .card-title {
        margin-bottom: 0 !important;
        text-align: center;
        font-size: 1rem;
    }

    .card-body {
        overflow-x: clip;
    }

    /* List table mobile cards: stay-blessed-datatables-mobile.css */
}

@media (min-width: 768px) {
    .sb-panel-table-wrap .dataTables_wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sb-panel-table-wrap table.datatables-users,
    .sb-quotes-table-wrap table.datatables-users {
        width: 100% !important;
    }

    .sb-quotes-table-wrap .sb-quotes-col--compact {
        white-space: nowrap;
        width: 1%;
    }

    .sb-panel-table-wrap td.sb-panel-col--actions,
    .sb-quotes-table-wrap .sb-quotes-col--actions {
        white-space: nowrap;
        width: 1%;
    }
}

/* My Profile — submit below photo on mobile */
.sb-profile-form__submit-mobile {
    margin-top: 1.25rem;
}

@media (max-width: 767.98px) {
    .sb-profile-form__photo {
        margin-top: 0.25rem;
    }
}

/* Quote activity history */
.sb-quote-history__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sb-navy, #003f8a);
    margin-bottom: 0.25rem;
}

.sb-quote-history__meta {
    margin-bottom: 1rem;
}

.sb-quote-history-section {
    margin-top: 0.5rem;
}

.sb-panel-action-btn--history:hover {
    color: var(--sb-navy, #003f8a);
}

.sb-quote-history__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
}

.sb-quote-history__empty i {
    font-size: 1.35rem;
    color: #94a3b8;
}

.sb-quote-history__empty p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.sb-quote-history__timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.sb-quote-history__entry {
    display: grid;
    grid-template-columns: 2.25rem 1fr;
    gap: 0.85rem 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.sb-quote-history__entry:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 1.1rem;
    top: 2.1rem;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #c5d4e8 0%, #e2e8f0 100%);
}

.sb-quote-history__marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: #eef4fb;
    border: 2px solid #c5d4e8;
    color: #003f8a;
    font-size: 0.78rem;
    z-index: 1;
}

.sb-quote-history__entry--created .sb-quote-history__marker {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: #047857;
}

.sb-quote-history__entry--updated .sb-quote-history__marker {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.sb-quote-history__entry--status .sb-quote-history__marker {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #b45309;
}

.sb-quote-history__entry--viewed .sb-quote-history__marker {
    background: #f5f3ff;
    border-color: #c4b5fd;
    color: #6d28d9;
}

.sb-quote-history__entry--deleted .sb-quote-history__marker {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.sb-quote-history__card {
    padding: 0.85rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 31, 68, 0.04);
}

.sb-quote-history__entry:first-child .sb-quote-history__card {
    border-color: #c5d4e8;
    box-shadow: 0 4px 14px rgba(0, 63, 138, 0.08);
}

.sb-quote-history__when {
    font-size: 0.74rem;
    font-weight: 700;
    color: #64748b;
}

.sb-quote-history__summary {
    margin: 0.25rem 0 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}

.sb-quote-history__actor {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.45rem 0 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
}

.sb-quote-history__actor i {
    font-size: 0.68rem;
    color: #94a3b8;
}

.sb-quote-history--compact .sb-quote-history__timeline {
    max-height: 320px;
    overflow-y: auto;
}

/* Dashboard stats date filter */
.sb-dashboard-filter {
    background: #ffffff;
    border: 1px solid rgba(0, 63, 138, 0.12);
    border-radius: 0.6rem;
    padding: 0.85rem 1rem;
    margin: 0 0 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sb-dashboard-filter__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
}

.sb-dashboard-filter__field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 11rem;
}

.sb-dashboard-filter__field label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #6c757d;
    margin: 0;
}

.sb-dashboard-filter__select,
.sb-dashboard-filter__input {
    height: 2.4rem;
    padding: 0 0.6rem;
    border: 1px solid #ced4da;
    border-radius: 0.4rem;
    background: #fff;
    font-size: 0.92rem;
    color: #212529;
    min-width: 10rem;
}

.sb-dashboard-filter__select:focus,
.sb-dashboard-filter__input:focus {
    outline: none;
    border-color: var(--sb-navy, #003f8a);
    box-shadow: 0 0 0 3px rgba(0, 63, 138, 0.15);
}

.sb-dashboard-filter__custom {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
}

.sb-dashboard-filter__custom[hidden] {
    display: none;
}

.sb-dashboard-filter__btn {
    height: 2.4rem;
    padding: 0 1.1rem;
    border: none;
    border-radius: 0.4rem;
    background: var(--sb-navy, #003f8a);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.sb-dashboard-filter__btn:hover {
    opacity: 0.9;
}

.sb-dashboard-filter__current {
    margin: 0 0 0 auto;
    font-size: 0.85rem;
    color: #495057;
    align-self: center;
}

.sb-dashboard-filter__current strong {
    color: var(--sb-navy, #003f8a);
}

@media (max-width: 575.98px) {
    .sb-dashboard-filter__current {
        margin-left: 0;
        width: 100%;
    }
}

/* Reusable Back button (used on quote pages, user pages, settings, etc.) */
.sb-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    line-height: 1;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.sb-back-btn:hover {
    transform: translateX(-2px);
}

.sb-back-btn svg {
    flex-shrink: 0;
}

.sb-back-btn--default {
    background: #f1f3f5;
    color: #003f8a;
    border-color: #dee2e6;
}

.sb-back-btn--default:hover {
    background: #e2e6ea;
    color: #002a5c;
}

.sb-back-btn--light {
    background: #ffffff;
    color: #003f8a;
    border-color: #003f8a;
}

.sb-back-btn--light:hover {
    background: #f5f9ff;
    color: #002a5c;
}

.sb-back-btn--toolbar {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

.sb-back-btn--toolbar:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
}
