body {
    margin: 0;
    padding: 0;
    /* 3.2 — this file loads before bootstrap.min.css in <head> (business.layouts.app),
       so without !important Bootstrap's own `body { font-family }` — identical
       specificity, later in the cascade — silently won every page. That's the real
       reason Inter was requested from Google Fonts but never actually rendered
       anywhere: the "Design system v3" intent (see that layout's own comment) was
       already correctly wired here, just never took effect. background-color right
       below already carries !important for what's almost certainly this same reason. */
    font-family: var(--sb-font-body, "Inter", -apple-system, BlinkMacSystemFont, sans-serif) !important;
    background-color: rgb(249 250 251) !important;
    background-size: cover;
}

.navbar {
    background-color: #fff;
}

.header {
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
}

.header-content {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.header-content .dropdown .btn {
    border: 0 !important;
    padding: 0 !important;
}

.header-content .dropdown .dropdown-menu::before {
    content: "";
    width: 13px;
    height: 13px;
    background: #fff;
    position: absolute;
    top: -7px;
    right: 28px;
    transform: rotate(45deg);
    border-top: 1px solid #f2f4f9;
    border-left: 1px solid #f2f4f9;
}

.header-content .dropdown .dropdown-menu {
    min-width: 250px;
    width: max-content;
    position: absolute;
    left: auto;
    right: -20px;
    margin-top: 20px;
    border: 0;
    box-shadow: 0 5px 10px 0 rgba(183, 192, 206, 0.2);
    padding-top: 0;
    padding-bottom: 0;
}

.separate {
    margin: 10px 0;
    border: 0.5px solid #66666614;
}

.h-card {
    height: 100px;
    margin: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px !important;
    /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
}

.h-card:hover {
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 3px 0px !important;
    /* transform: translateY(-5px);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 10px 20px; */
}

.bg-first {
    width: 100%;
    background-color: #00968825 !important;
}

.bg-second {
    width: 100%;
    background-color: rgb(254 242 242) !important;
}

.bg-third {
    width: 100%;
    background-color: rgb(239 246 255) !important;
}

.bg-fourth {
    width: 100%;
    background-color: #f4c33025 !important;
}

.bg-fivth {
    width: 100%;
    background-color: rgb(245 243 255) !important;
}

.fontsize-20 i {
    font-size: 20px !important;
}

.input-group.category-label {
    align-items: center;
    /* Client-list UI gap analysis, 2026-08-22: without an explicit flex-basis,
       a flex item sizes to its content's natural width — fine for the plain
       <select>/<input> filters (their visible option/placeholder text gives
       them a natural size), but the select2-replaced Plan/Service filters
       have no visible content of their own to size against (their internal
       width:100% has nothing to resolve against either), so they were
       collapsing to a sliver and wrapping their placeholder text. flex:1 +
       min-width:0 makes all four filters share the row equally and lets the
       width:100% children actually resolve against a real number. */
    flex: 1;
    min-width: 0;
}

.clear-btn {
    margin: 20px 0 0 0 !important;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    font-size: 14px !important;
    width: 100%;
    border-radius: var(--sb-radius-sm) !important;
}

.tx-16 {
    font-size: 16px !important;
}

a {
    text-decoration: none !important;
}

.tx-14 {
    font-size: 14px !important;
}

.tx-12 {
    font-size: 12px;
}

.tx-32 {
    font-size: 32px !important;
}

.header-content .dropdown .dropdown-menu .ti {
    font-size: 16px;
}

.header-content .dropdown .dropdown-menu .dropdown-item:hover,
.dropdown-item:focus {
    background-color: #faf9fa;
}

.header-content .dropdown .dropdown-image {
    width: 30px;
    height: 30px;
    border-radius: 100%;
}

.custom-search {
    display: block;
    margin-right: 30px;
}

.custom-search .ti {
    color: #d98181 !important;
    font-size: 16px !important;
}

.custom-search .input-group-text {
    background-color: transparent;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
}

.custom-search .form-control {
    background: transparent;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
}

.custom-search .form-control:focus {
    border-color: #dee2e6;
}

.custom-search .form-control::placeholder {
    font-size: 14px;
    color: #b6b8bb;
}

@media only screen and (max-width: 767px) {
    .input-group.custom-search {
        display: none;
    }
}

/* Same look as .custom-search, but visible at every width — .custom-search hides
   below 768px on the assumption a page also has a separate mobile search box (the
   .search/.searchTerm pattern used elsewhere); pages using this class instead don't
   pair it with one, so it must not disappear on its own. */
/* Was a bare bottom-underline field (no border on 3 sides, transparent bg) —
   the only input on the page not styled as a bordered box, sitting right next
   to the boxed All Plan/All Service/Client Since/Clients filters above it.
   Client-list UI gap analysis, 2026-08-22: rebuilt to match that same boxed
   convention instead of its own one-off minimal style. */
.client-list-search {
    display: block;
    margin-right: 30px;
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-sm);
    background: #fff;
}

.client-list-search .ti {
    color: var(--sb-text-soft) !important;
    font-size: 16px !important;
}

.client-list-search .input-group-text {
    background-color: transparent;
    border: 0;
}

.client-list-search .form-control {
    background: transparent;
    border: 0;
}

.client-list-search .form-control:focus {
    box-shadow: none;
}

.client-list-search:focus-within {
    border-color: var(--sb-accent);
    box-shadow: 0 0 0 3px var(--sb-accent-soft);
}

.client-list-search .form-control::placeholder {
    font-size: 14px;
    color: #b6b8bb;
}

.navbar-collapse {
    position: fixed;
    top: 50px;
    left: 0;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 15px;
}

.navbar-collapse.collapsing {
    left: -75%;
    transition: height 0s ease;
}

.navbar-collapse.show {
    left: 10px;
    transition: left 300ms ease-in-out;
}

.navbar-toggler.collapsed~.navbar-collapse {
    transition: left 500ms ease-in-out;
}

.navbar-toggler:hover {
    box-shadow: none !important;
}

.navbar-brand {
    font-family: "Poppins", sans-serif;
}

.search {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
}

@media only screen and (min-width: 576px) {
    .search {
        display: none;
    }
}

.searchTerm {
    width: 100%;
    border: none;
    padding: 20px;
    height: 20px;
    margin: 0px 20px;
    border-radius: 5px 5px;
    outline: none;
    color: #9dbfaf;
    border: 1px solid #ef7c86;
}

.searchTerm:focus {
    color: #00b4cc;
}

.b-id {
    border: 0.5px solid #66666659;
    padding: 2px 5px;
    border-radius: 5px;
    cursor: pointer;
}

.searchButton {
    width: 40px;
    background: #e32636;
    text-align: center;
    color: #fff;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    border: 0;
    align-items: baseline;
}

.searchButton .ti-search {
    width: 25px;
}

.client-section {
    margin-bottom: 100px;
}

.category {
    display: flex;
    /* padding: 10px 100px 10px 100px; */
    /* padding: 10px; */
    box-shadow: none;
}

.category .category-label label {
    width: 100%;
    padding: 0 6px;
    font-size: 14px;
    text-align: left;
}

.category .form-select {
    border-radius: var(--sb-radius-sm);
    /* margin: 0px 3px 0px 0px !important; */
    /* box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px; */
    /* font-size: 12px !important; */
    width: 100%;
}

.navbar-toggler {
    border-radius: 0 !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #fff;
}

.footer .content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    padding: 10px 0px;
    font-weight: 500;
}

.user-img {
    width: 80px;
    height: 80px;
    border-radius: 100%;
}

.client-img {
    width: 40px;
    height: 40px;
    border-radius: 100%;
}

.delete-icon {
    float: right;
    right: 0;
}

.delete-btn {
    position: absolute;
    float: right;
    top: 0;
    right: 0;
}

.icon-text {
    font-size: small;
    font-weight: 500;
    color: #333 !important;
}

/* ── Report stat/filter cards ────────────────────────────────
   Token-based replacement for the old bg-report-1/2/3/4/6 set (hardcoded
   RGB values, and a dead `.reportcard.active` background rule that had
   been commented out - clicking a filter tab gave no visual feedback for
   which one was selected). Used both as a static 3-up stat row
   (client/expired.blade.php) and as clickable filter tabs
   (sale_report.blade.php, all_report.blade.php) - `.reportcard-clickable`
   adds the pointer/hover affordance only where a wire:click is present. */
.reportcard {
    background: #fff;
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-lg) !important;
    box-shadow: 0 1px 2px rgba(28, 25, 23, 0.05);
}

.reportcard-clickable {
    cursor: pointer;
    transition: border-color var(--sb-duration-fast) var(--sb-ease),
        box-shadow var(--sb-duration-fast) var(--sb-ease);
}

.reportcard-clickable:hover {
    box-shadow: 0 2px 8px rgba(28, 25, 23, 0.08);
}

.reportcard-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

/* Reset text color explicitly - a global unscoped `.active { color: #a52a2a }`
   rule elsewhere would otherwise leak a brown tint into every card's text
   the moment it's marked selected. */
.reportcard-clickable.active {
    color: var(--sb-text);
}

.reportcard--danger .reportcard-icon {
    background: var(--sb-danger-soft);
    color: var(--sb-danger);
}

.reportcard--warning .reportcard-icon {
    background: var(--sb-warning-soft);
    color: var(--sb-warning);
}

.reportcard--success .reportcard-icon {
    background: var(--sb-success-soft);
    color: var(--sb-success);
}

.reportcard--info .reportcard-icon {
    background: var(--sb-info-soft);
    color: var(--sb-info);
}

.reportcard-clickable.active.reportcard--danger {
    border-color: var(--sb-danger) !important;
    background: var(--sb-danger-soft);
}

.reportcard-clickable.active.reportcard--warning {
    border-color: var(--sb-warning) !important;
    background: var(--sb-warning-soft);
}

.reportcard-clickable.active.reportcard--success {
    border-color: var(--sb-success) !important;
    background: var(--sb-success-soft);
}

.reportcard-clickable.active.reportcard--info {
    border-color: var(--sb-info) !important;
    background: var(--sb-info-soft);
}

.card-detail-text {
    font-size: small;
    font-weight: 500;
}

.grid-container {
    row-gap: 20px;
}

.sidepanel {
    width: max-content !important;
    height: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
}

.sidepanel ul {
    padding: 20px 20px 20px 20px;
    text-decoration: none;
    font-size: 16px;
    color: #818181;
    display: block;
    transition: 0.3s;
    font-family: "Poppins", sans-serif;
}

.sidepanel ul span {
    padding-left: 8px;
    font-size: 14px;
}

.openbtn {
    font-size: 30px !important;
    cursor: pointer;
    border: none;
}

.save-btn:hover span {
    color: #740000;
}

.profile-logo-img2 {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.form-user-img {
    width: 100px;
    height: 100px;
    border-radius: 100%;
}

.form-control:focus {
    box-shadow: none !important;
}

.form-select:focus {
    box-shadow: none !important;
}

.dob {
    font-size: 12px !important;
    margin-bottom: 0;
    margin-top: 0;
    color: red;
}

@media only screen and (max-width: 768px) {
    .form-col {
        margin-top: 10px !important;
    }

    .category {
        padding: 5px 0px 5px 0px;
        width: auto;
        overflow-x: scroll;
    }

    .category .form-select {
        margin: 0;
        width: auto;
    }

    .user-img {
        width: 70px;
        height: 70px;
        border-radius: 100%;
    }

    /* .category above is deliberately a horizontally-scrollable row of
       naturally-sized fields on mobile (overflow-x: scroll; width: auto) —
       squishing 4 filters into an equal 1/4 share each on a narrow screen
       would make all of them illegibly narrow rather than just needing a
       side-scroll. The flex:1 fix for the desktop select2-width bug (below,
       out of this media query) would otherwise apply here too and fight
       that, so it's reset back to natural sizing at this breakpoint. */
    .input-group.category-label {
        flex: initial;
        min-width: auto;
    }
}

/* Auth pages (login/register/staff-login/forgot-password) moved to their
   own stylesheet, business_css/auth.css, in the 2026-08-13 redesign — see
   resources/views/components/business/auth-shell.blade.php. */

.plan-section {
    margin-top: 1rem;
}

.plan-section .row {
    font-size: 14px;
    /* font-weight: 500; */
}

/*
.plan-section .card{
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
*/
.footer-link {
    color: black;
    text-decoration: none;
    list-style: none;
    font-size: 14px;
    cursor: pointer;
}

.footer-link.active {
    color: var(--sb-accent);
}

.footer-link:active {
    background: var(--sb-accent);
    color: #fff;
    transition-duration: 0.4s;
}

.footer-link .footer-link-content {
    width: 100px;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .footer-link .footer-link-content {
        width: auto;
    }
}

.salonCard {
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    border-radius: var(--sb-radius-sm);
}

/* ── Mobile bottom-nav "+" quick-create (2026-08-14) ──────────────────────
   Raised center FAB in the existing 5-item footer nav, reusing the same
   permission-gated quick-create links as the header's "+New" dropdown via
   <x-business.quick-create-items /> — see footer.blade.php. */
.footer-fab-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100px;
}

.footer-fab {
    width: 46px;
    height: 46px;
    margin-top: -26px;
    border: none;
    border-radius: 50%;
    background: var(--sb-accent);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sb-shadow-md);
}

.edit-button {
    position: absolute;
    top: 15px;
    right: 15px;
}

.dashboard-txt {
    font-weight: 400;
}

.dashboard-txt span {
    font-weight: 700;
    font-size: 20px;
}

.drp-mn .dropdown-item:hover {
    background-color: #e8e8e8;
}

.drp-btn:focus {
    box-shadow: none;
    border: 0;
}

.drp-btn:active {
    box-shadow: none;
    border: 0;
}

.camera-icon {
    width: 30px;
    position: relative;
    margin-top: -35px;
}

.ub-ft {
    font-family: "Poppins", sans-serif;
}

/*
@media screen and (max-width: 1100px){
    .col-md-4, .col-sm-4{
      width: 100% !important;
    }
}
*/

.icons-bg-view {
    padding: 10px;
    margin: 0 10px;
    background-color: #f5eeee;
    border-radius: 5px;
    text-align: center;
}

.dashboard-card-box-shadow .card {
    font-weight: 500;
    text-align: center !important;
}

.card-box-shadow {
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.dashboard-card-box-shadow .card .ti {
    font-size: 1.4rem;
}

.dashboard-card-box-shadow .card .icons-round-view {
    height: 50px;
    width: 50px;
    line-height: 50px;
    margin: 0 !important;
    background-color: #f5f3ee;
    border-radius: 100%;
    text-align: center;
}

/* ── Reports Overview (business/dashboard/report.blade.php) — Phase 5/6:
   this page's icons previously rode the shared .icons-round-view /
   .dashboard-icon + bg-first..bg-fivth classes, which carry a 12-color
   rainbow rotation used by several *other* pages (expense reports, other
   performance-report pages) via :nth-child position. That rotation is out
   of scope here (scoped fix, not a global rainbow-icon sweep — see plan),
   so this page's own markup was moved onto these two new, dedicated
   classes instead of overriding the shared ones, matching the rose-
   monochrome convention .stat-card-icon already established on the main
   Dashboard. Zero effect on any other page still using the classes above. */
.report-tile-icon-bg {
    background: var(--sb-accent-soft) !important;
}

.report-tile-icon-bg .ti {
    color: var(--sb-accent);
}

.report-stat-icon {
    height: 50px;
    width: 50px;
    line-height: 50px;
    margin: 0 !important;
    background-color: var(--sb-accent-soft);
    color: var(--sb-accent);
    border-radius: 100%;
    text-align: center;
}

/* The shared .dashboard-card-box-shadow .col-6:nth-child(N) .card { color: ... }
   rule (used by other pages' own rainbow rotation) also colors this page's card
   text generally, not just its icon — including the bold value number, which
   would otherwise still show the old rainbow color even with the icon fixed
   above. !important + the page-only .reports-overview-page class keeps this
   scoped to this one page without touching the shared rule other pages rely on. */
.reports-overview-page .col-6 .card {
    color: var(--sb-text) !important;
}

.dashboard-card-box-shadow .col-6:nth-child(1) .card .ti {
    color: #00bbd5;
}

.dashboard-card-box-shadow .col-6:nth-child(1) .card {
    color: #00bbd5;
}

.dashboard-card-box-shadow .col-6:nth-child(1) .card .icons-round-view {
    background-color: #00bbd525;
}

.dashboard-card-box-shadow .col-6:nth-child(2) .card .ti {
    color: #fd5722;
}

.dashboard-card-box-shadow .col-6:nth-child(2) .card {
    color: #fd5722;
}

.dashboard-card-box-shadow .col-6:nth-child(2) .card .icons-round-view {
    background-color: #fd572225;
}

.dashboard-card-box-shadow .col-6:nth-child(3) .card .ti {
    color: #e91d62;
}

.dashboard-card-box-shadow .col-6:nth-child(3) .card {
    color: #e91d62;
}

.dashboard-card-box-shadow .col-6:nth-child(3) .card .icons-round-view {
    background-color: #e91d6225;
}

.dashboard-card-box-shadow .col-6:nth-child(4) .card .ti {
    color: #009688;
}

.dashboard-card-box-shadow .col-6:nth-child(4) .card {
    color: #009688;
}

.dashboard-card-box-shadow .col-6:nth-child(4) .card .icons-round-view {
    background-color: #00968825;
}

.dashboard-card-box-shadow .col-6:nth-child(5) .card .ti {
    color: #36454f;
}

.dashboard-card-box-shadow .col-6:nth-child(5) .card {
    color: #36454f;
}

.dashboard-card-box-shadow .col-6:nth-child(5) .card .icons-round-view {
    background-color: #36454f25;
}

.dashboard-card-box-shadow .col-6:nth-child(6) .card .ti {
    color: #9f6ef9;
}

.dashboard-card-box-shadow .col-6:nth-child(6) .card {
    color: #9f6ef9;
}

.dashboard-card-box-shadow .col-6:nth-child(6) .card .icons-round-view {
    color: #9f6ef925;
}

.dashboard-card-box-shadow .col-6:nth-child(7) .card .ti {
    color: #bd33a4;
}

.dashboard-card-box-shadow .col-6:nth-child(7) .card {
    color: #bd33a4;
}

.dashboard-card-box-shadow .col-6:nth-child(7) .card .icons-round-view {
    color: #bd33a425;
}

.dashboard-card-box-shadow .col-6:nth-child(8) .card .ti {
    color: #00bfff;
}

.dashboard-card-box-shadow .col-6:nth-child(8) .card {
    color: #00bfff;
}

.dashboard-card-box-shadow .col-6:nth-child(8) .card .icons-round-view {
    color: #00bfff25;
}

.dashboard-card-box-shadow .col-6:nth-child(9) .card .ti {
    color: #009688;
}

.dashboard-card-box-shadow .col-6:nth-child(9) .card {
    color: #009688;
}

.dashboard-card-box-shadow .col-6:nth-child(9) .card .icons-round-view {
    color: #00968825;
}

.dashboard-card-box-shadow .col-6:nth-child(10) .card .ti {
    color: #551a8b;
}

.dashboard-card-box-shadow .col-6:nth-child(10) .card {
    color: #551a8b;
}

.dashboard-card-box-shadow .col-6:nth-child(10) .card .icons-round-view {
    background-color: #551a8b25;
}

.dashboard-card-box-shadow .col-6:nth-child(11) .card .ti {
    color: #be5504;
}

.dashboard-card-box-shadow .col-6:nth-child(11) .card {
    color: #be5504;
}

.dashboard-card-box-shadow .col-6:nth-child(11) .card .icons-round-view {
    background-color: #be550425;
}

.dashboard-card-box-shadow .col-6:nth-child(12) .card .ti {
    color: #f4c430;
}

.dashboard-card-box-shadow .col-6:nth-child(12) .card {
    color: #f4c430;
}

.dashboard-card-box-shadow .col-6:nth-child(12) .card .icons-round-view {
    background-color: #f4c33025;
}

@media screen and (max-width: 768px) {
    .dashboard-card-box-shadow .card .ti {
        color: brown;
        font-size: 1.5rem;
    }

    .dashboard-card-box-shadow .card .icons-round-view {
        height: 0px;
        width: 0px;
        line-height: 0px;
    }

    .dashboard-card-box-shadow .card .icons-round-view .ti {
        font-size: 22px;
        position: absolute;
        right: 18px;
        bottom: 10px;
    }

    .dashboard-card-box-shadow .card .text-start {
        margin-left: 0px !important;
    }

    .dashboard-card-box-shadow .card .justify-content-around {
        justify-content: flex-start !important;
    }
}

.client-section .card .text-dark {
    font-weight: 500;
}

.client-section .table .text-dark {
    border: 1px solid #66666640;
    padding: 2px 2px 2px 6px;
    text-align: center;
    border-radius: 2px;
}

.client-section .card .ti {
    color: black;
}

.plan-section .card .text-dark {
    font-weight: 500;
}

.plan-section .card .ti {
    color: black;
    font-size: 14px;
}

.search-attend {
    width: 100%;
    padding: 20px;
    height: 20px;
    margin: 0px;
    border-radius: 5px;
    outline: none;
    color: #9dbfaf;
    border: 1px solid #df777f;
}

.fs-12 {
    font-size: 12px;
}

.att-drop {
    height: 30px;
    line-height: 30px;
    width: 30px;
    background-color: #f5f3ee;
    border-radius: 100%;
    cursor: pointer;
}

.att-drop button {
    border: 0;
    outline: 0;
    background-color: transparent;
    cursor: pointer;
}

.salon-logo {
    width: 120px;
    height: auto;
}

.nav-link:focus-visible {
    box-shadow: none !important;
}

.edit-btn {
    position: absolute !important;
    right: 0;
    top: 3px;
}

.drop-btn {
    position: absolute !important;
    right: 0;
    bottom: 3px;
}

/*Plan Expired*/

.fs-14 {
    font-size: 12px;
    opacity: 100%;
    font-weight: 600;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.plan-exp-btn {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0px 5px;
    /* background: linear-gradient(-45deg, #cc0000, #e73c7e, #d662ea, #cc0000); */
    background: linear-gradient(-45deg, #ff9999, #ff6666, #ff4d4d, #ff9999);
    background-size: 400% 400%;
    animation: gradient 2s ease infinite;
    opacity: 0.7;
    border-radius: 8px 0px 8px 0px;
}

tbody,
td,
tfoot,
th,
thead,
tr {
    vertical-align: middle;
}

.table-responsive {
    /* text-wrap: nowrap; */
    text-wrap: wrap;
    text-align: start;
}

.table-responsive table thead td {
    font-size: 14px;
}

.table-responsive table thead th {
    font-size: 14px;
    font-weight: 500;
    padding: 12px;
    color: #6f6f6f
}

.table-img {
    width: 45px;
    height: 45px;
    border-radius: 100%;
}

.stylist-img {
    width: 100%;
    height: auto;
    background: #f1f2f6;
    border-radius: 100%;
}

.absolute-top-left {
    position: absolute;
    top: -1px;
    left: 0;
}

/*End Of Plan Expired*/

/*Css For Navbar Brand*/
@media screen and (max-width: 1024px) {
    .navbar .navbar-brand {
        width: 250px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.product-img {
    width: 60px;
    height: 60px;
    border-radius: 100%;
}

.product-exp-btn {
    position: absolute;
    top: 0;
    left: 0;
}

.product-exp-btn .badge {
    padding: 7px 10px;
    border-radius: 8px 0px 8px 0px;
}

.two-line-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    margin-bottom: 0;
}

.one-line-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 1;
    text-overflow: ellipsis;
    margin-bottom: 0;
}

@media screen and (max-width: 992px) {
    .mt-xs-2 {
        margin-top: 2rem !important;
    }

    .mb-xs-2 {
        margin-bottom: 10px !important;
    }

    .table-responsive {
        text-wrap: nowrap;
    }
}

/*Card background*/
/*For lead*/
.card-bottom-bg {
    width: 110px;
    position: absolute;
    right: 5px;
    bottom: 0px;
    z-index: 0;
    opacity: 0.035;
}

.card-bottom-bg-small {
    width: 70px;
    position: absolute;
    right: 7px;
    bottom: 5px;
    z-index: 0;
    opacity: 0.035;
}

.card-top-bg {
    width: 70px;
    position: absolute;
    right: 5px;
    top: 0;
    z-index: 0;
    opacity: 0.035;
}

.card-top-bg-small {
    width: 30px;
    position: absolute;
    right: 5px;
    top: 4px;
    z-index: 0;
    opacity: 0.035;
}

.custom-select {
    border-color: #009688;
    border-width: 1px;
    font-weight: 500;
    color: #fff;
    background-color: #009688;
    border-radius: 3px;
    margin-top: 2px;
    position: relative;
    z-index: 24;
    padding: 0 0 1px 0;
}

.z-22 {
    z-index: 22;
}

.sidepanel .nav-link .ti {
    font-size: 14px;
}

.no-box-shadow {
    box-shadow: none;
}

.light-border {
    border: 0.5px solid #d6d6d6e0;
    border-radius: 7px;
}

.hide-scrollbar::-webkit-scrollbar {
    width: 0;
}

.absolute-top-left .badge {
    padding: 5px 10px;
    border-radius: 8px 0px 8px 0px;
}

.icon-bg {
    background-color: #00bbd525;
    height: 40px;
    width: 40px;
    line-height: 38px;
    text-align: center;
    border-radius: 100%;
    font-size: large;
}

.pos-image-area {
    margin-top: 10px;
    background-color: aliceblue;
    padding: 6px 0;
    border-radius: 5px;
}

.image-area {
    background-color: #f9fafb;
    border-radius: 5px;
}

.custom-select-pos {
    border-color: #009688;
    border-width: 1px;
    font-weight: 500;
    color: #fff;
    background-color: #009688;
    border-radius: 3px;
    margin-top: 2px;
    position: relative;
    z-index: 24;
    padding: 3px 2px 4px 2px;
    float: right;
    width: max-content;
    margin-left: auto;
}

.billing-img-area {
    background-color: aliceblue;
    width: 100%;
    height: auto;
    border-radius: 5px;
    text-align: center;
    padding: 5px 0;
}

.quantity-input {
    min-width: 30px;
    max-width: 50px;
    /* border: .5px solid #d6d6d6;
    border-left: 0;
    border-right: 0; */
    border: 0;
    text-align: center;
    font-weight: 500;
}

.billing-area {
    background-color: aliceblue;
    padding: 10px 15px;
    border-radius: 5px;
}

.product-show-area,
.bill-calc-area {
    max-height: 400px;
    overflow-y: scroll;
}

.stylist-detail {
    margin-top: 10px;
    border-radius: 5px;
}

.client .form-section .card h6 {
    color: #666;
    font-size: 17px;
}

.new-icon {
    position: relative;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.new-icon img {
    width: 20px;
}

.dashboard-icon {
    position: relative;
}

.dashboard-icon img {
    width: 50px;
    height: 50px;
    padding: 5px;
}

.dashboard-text p {
    margin-top: 0;
    font-size: 14px;
    color: #000;
    margin-bottom: 0;
    font-weight: 600;
}

.dashboard-text p {
    position: relative;
    display: inline-block;
}

.dashboard-text p::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 1px;
    background-color: #000;
    transition: width 0.3s ease-in-out;
}

.h-card:hover .dashboard-text p::after {
    width: calc(100% - 20px);
}

.dashboard-text .ti {
    color: #000 !important;
    font-size: 12px !important;
    font-weight: 600;
}

.new-icon p {
    font-size: 10px;
    color: #66666680;
    margin-bottom: 0;
    font-weight: 500;
}

.mail-text {
    position: relative;
}

.mail-text p {
    font-size: 10px;
    color: #66666680;
    margin-bottom: 0;
    font-weight: 500;
}

.header-content .header-right:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    background-color: #e7e7e7;
}

.header-content .header-right {
    position: relative;
    text-align: center;
}

.header-content .header-right:not(:last-child) {
    margin-right: 10px;
    padding-right: 10px;
}

.header-content .header-right .ti {
    font-size: 16px;
    color: #e33f3f;
    cursor: pointer;
}

.profile-logo-img1 {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

/* ── Initials-circle avatar fallback (Phase 4 §4) — same visual treatment as
   the sidebar's own .sidebar-brand-mark (rose circle + business initial),
   reused here for the topbar/profile-page avatar slots that previously always
   showed a generic person-bust image regardless of whether a real business
   logo existed. -sm/-md/-lg just scale the font to the three sizes those
   slots already use (22px/50px/100px circles). */
.avatar-initial {
    background: var(--sb-accent);
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.avatar-initial-sm {
    font-size: 10px;
}

.avatar-initial-md {
    font-size: 20px;
}

.avatar-initial-lg {
    font-size: 40px;
}

/* ── Table-row avatar (client list gap analysis, 2026-08-22) — the client
   table previously used the shared .user-img class (80px), sized for a
   profile-photo-upload preview, not a table row; an 80px image per row was
   the main driver of the list's unusually tall, sparse-feeling rows. Kept
   .user-img itself untouched (still correctly used by the actual upload
   previews in client/stylist forms) and gave the table its own 40px class
   instead, paired with .avatar-initial for the no-photo case in place of
   the old generic person-bust fallback image. */
.table-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    font-size: 15px;
}

@media (max-width: 576px) {
    .header-content {
        margin: auto;
        overflow-x: scroll;
        padding: 5px 0px 10px 0px;
    }

    .header-content::-webkit-scrollbar {
        display: none;
    }
}

@media (min-width: 1024px) {
    .footer {
        display: none;
    }
}

.wd15 {
    width: 15px;
}

/* ═══════════════════════════════════════════════════════════
   PLAN EXPIRED — RENEWAL PAGE (PREMIUM)
═══════════════════════════════════════════════════════════ */

/* ── Renewal Container ── */
.renewal-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 20px 80px;
}

/* ── Step Indicator ── */
.renewal-steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #fff;
    border-radius: 50px;
    padding: 10px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 28px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.rstep {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

.rstep-num {
    width: 26px;
    height: 26px;
    background: #e2e8f0;
    color: #64748b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s;
}

.rstep-active .rstep-num {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    box-shadow: 0 3px 10px rgba(249,115,22,0.4);
}
.rstep-active .rstep-txt { color: #ea580c; font-weight: 600; }

.rstep-line {
    width: 40px;
    height: 2px;
    background: #e2e8f0;
    margin: 0 8px;
}

/* ── Hero Section ── */
.renewal-hero {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    margin-bottom: 28px;
    align-items: start;
}

.hero-left {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e3a5f 100%);
    border-radius: 16px;
    padding: 32px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero-left::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: rgba(249,115,22,0.12);
    border-radius: 50%;
}

.paused-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239,68,68,0.2);
    border: 1px solid rgba(239,68,68,0.4);
    color: #fca5a5;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.paused-dot {
    width: 8px; height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulseDot 1.5s ease-in-out infinite;
}
@keyframes pulseDot {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.7); }
}

.renewal-h1 {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.renewal-sub {
    font-size: 15px;
    color: #c7d2fe;
    margin-bottom: 20px;
    line-height: 1.5;
}

.urgency-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.urgency-list li {
    font-size: 14px;
    color: #e0e7ff;
    display: flex;
    align-items: center;
    gap: 10px;
}
.urgency-list li .ti-lock    { color: #f87171; }
.urgency-list li .ti-shield-check { color: #4ade80; }

/* Countdown */
.countdown-wrap {
    background: rgba(0,0,0,0.25);
    border-radius: var(--sb-radius-lg);
    padding: 16px;
    margin-bottom: 22px;
    border: 1px solid rgba(255,255,255,0.1);
}
.countdown-label {
    font-size: 12px;
    color: #a5b4fc;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}
.countdown-timer {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ct-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: var(--sb-radius-md);
    padding: 8px 14px;
    min-width: 58px;
}
.ct-unit span {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.ct-unit small {
    font-size: 10px;
    color: #a5b4fc;
    text-transform: uppercase;
    margin-top: 2px;
    letter-spacing: 0.5px;
}
.ct-sep {
    font-size: 22px;
    font-weight: 700;
    color: #a5b4fc;
    margin-bottom: 14px;
}

.hero-scroll-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 24px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(249,115,22,0.4);
}
.hero-scroll-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249,115,22,0.5);
}

/* Right panel */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.expired-info-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 16px rgba(0,0,0,0.09);
}
.eic-header {
    background: linear-gradient(90deg, #fef3c7, #fff7ed);
    padding: 11px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #fde68a;
}
.eic-table {
    width: 100%;
    padding: 12px 16px;
    border-collapse: collapse;
}
.eic-table td {
    padding: 6px 4px;
    font-size: 13.5px;
    color: #374151;
}
.eic-table td:first-child {
    color: #6b7280;
    font-weight: 500;
    width: 40%;
    padding-right: 12px;
}

/* Coupon collapsible */
.coupon-toggle-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1d4ed8;
    cursor: pointer;
    border-top: 1px solid #f0f4ff;
    transition: background 0.15s;
    user-select: none;
}
.coupon-toggle-bar:hover  { background: #f0f4ff; }
.coupon-toggle-open       { background: #eff6ff; }

.coupon-body {
    padding: 4px 16px 16px;
}
.coupon_input {
    font-size: 14px;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.support-link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    transition: all 0.2s;
}
.support-link-card:hover { color: #f97316; box-shadow: 0 4px 14px rgba(0,0,0,0.1); }

/* ── Trust Strip ── */
.trust-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #fff;
    border-radius: var(--sb-radius-lg);
    padding: 14px 24px;
    margin-bottom: 28px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    flex-wrap: wrap;
    gap: 16px;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #374151;
}
.trust-item .ti {
    font-size: 18px;
    color: #f97316;
}
.trust-divider {
    width: 1px;
    height: 30px;
    background: #e5e7eb;
}

/* ── Plans Section ── */
.plans-section {
    margin-bottom: 28px;
}

.plans-heading {
    text-align: center;
    margin-bottom: 22px;
}
.plans-heading h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}
.plans-heading p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.recommendation-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 50px;
    padding: 7px 20px;
    font-size: 13.5px;
    color: #92400e;
    margin-bottom: 20px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Plan cards grid */
.plans-grid {
    display: grid;
    gap: 20px;
    align-items: start;
}
.plans-grid-1 { grid-template-columns: minmax(0, 360px); justify-content: center; }
.plans-grid-2 { grid-template-columns: repeat(2, 1fr); }
.plans-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Individual plan card */
.plan-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px 20px 20px;
    border: 2px solid #e2e8f0;
    position: relative;
    transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
    overflow: hidden;
}
.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* Featured card */
.plan-card-featured {
    border-color: #f97316;
    transform: scale(1.03);
    box-shadow: 0 8px 28px rgba(249,115,22,0.2);
    background: linear-gradient(160deg, #fff8f3 0%, #fff 55%);
    z-index: 1;
}
.plan-card-featured:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 14px 36px rgba(249,115,22,0.28);
}

/* Discounted state */
.plan-card-discounted {
    border-color: #16a34a !important;
    background: linear-gradient(160deg, #f0fdf4 0%, #fff 60%) !important;
}

/* Recommended ribbon */
.plan-recommended-ribbon {
    position: absolute;
    top: 14px;
    right: -24px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 4px 36px;
    letter-spacing: 1px;
    transform: rotate(35deg);
    box-shadow: 0 2px 8px rgba(249,115,22,0.4);
}

/* Tag pill */
.plan-tag-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}
.plan-tag-starter { background: #e0f2fe; color: #0369a1; }
.plan-tag-popular { background: #fff7ed; color: #c2410c; }
.plan-tag-best    { background: #f0fdf4; color: #15803d; }

/* Plan name + duration */
.plan-card-name {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}
.plan-duration-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 12px;
    border-radius: 50px;
    margin-bottom: 14px;
    font-weight: 500;
}

/* Price block */
.plan-price-block {
    margin-bottom: 8px;
}
.plan-price-main {
    font-size: 30px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
}
.plan-price-original {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-top: 2px;
}
/* Plan card description (Quill HTML output) */
.plan-card-desc { font-size: 13px; line-height: 1.5; margin-bottom: 8px; }
.plan-card-desc p { margin: 0 0 4px; }
.plan-card-desc ul, .plan-card-desc ol { margin: 0 0 4px; padding-left: 18px; }

.plan-compare-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}
.plan-compare-price {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: line-through;
}
.plan-discount-pct {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #e53e3e;
    border-radius: 4px;
    padding: 1px 6px;
    letter-spacing: .3px;
}
.plan-gst-note {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
    margin-bottom: 2px;
}
.plan-buy-btn-upgrade {
    background: linear-gradient(135deg, #d97706, #f59e0b) !important;
    border-color: #d97706 !important;
    color: #1a0000 !important;
}
.plan-buy-btn-upgrade:hover {
    background: linear-gradient(135deg, #b45309, #d97706) !important;
    color: #fff !important;
}
/* Active-plan countdown: dark text on light green background */
.countdown-wrap.active-plan .ct-unit {
    background: rgba(22, 163, 74, 0.12);
}
.countdown-wrap.active-plan .ct-unit span {
    color: #14532d;
}
.countdown-wrap.active-plan .ct-unit small {
    color: #15803d;
}
.countdown-wrap.active-plan .ct-sep {
    color: #15803d;
}
.plan-sms-credits-badge {
    display: inline-flex;
    align-items: center;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    padding: 3px 10px;
    margin: 8px 0 4px;
}
.plan-per-month {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 3px;
}
.plan-savings-tag {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    margin-top: 6px;
}

.plan-discount-note {
    font-size: 12.5px;
    color: #16a34a;
    font-weight: 700;
    margin: 6px 0;
}

/* Features list */
.plan-features-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}
.plan-features-list li {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
}
.feat-ok .ti  { color: #16a34a; font-size: 14px; }
.feat-no      { color: #9ca3af; }
.feat-no .ti  { color: #d1d5db; font-size: 14px; }

/* Buy button */
.plan-buy-btn {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s;
    background: #f1f5f9;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.plan-buy-btn:hover:not(:disabled) {
    background: #e2e8f0;
    transform: translateY(-1px);
}
.plan-buy-btn-featured {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    box-shadow: 0 5px 16px rgba(249,115,22,0.38);
}
.plan-buy-btn-featured:hover:not(:disabled) {
    background: linear-gradient(135deg, #fb923c, #f97316);
    box-shadow: 0 8px 22px rgba(249,115,22,0.48);
    color: #fff;
}
.plan-buy-btn:disabled { cursor: not-allowed; opacity: 0.65; }

/* Demo/Try-free link */
.try-demo-link {
    font-size: 13.5px;
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed #a5b4fc;
    padding-bottom: 1px;
    transition: color 0.2s;
}
.try-demo-link:hover { color: #4f46e5; }

/* ── Comparison Table ── */
.comparison-section {
    margin-bottom: 28px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.comparison-toggle-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 16px 22px;
    font-size: 14.5px;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    text-align: left;
    transition: background 0.15s;
}
.comparison-toggle-btn:hover { background: #f8fafc; }

.comparison-table-wrap { border-top: 1px solid #f1f5f9; }

.comp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.comp-table th, .comp-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
}
.comp-table th:first-child, .comp-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: #374151;
}
.comp-table thead th {
    background: #f8fafc;
    font-weight: 700;
    color: #0f172a;
    font-size: 13px;
}
.comp-table tbody tr:hover { background: #f8fafc; }

/* ── FAQ Section ── */
.faq-section {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    margin-bottom: 28px;
}
.faq-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    padding: 20px 22px 16px;
    border-bottom: 1px solid #f1f5f9;
    margin: 0;
}
.faq-item { border-bottom: 1px solid #f1f5f9; }
.faq-item:last-child { border-bottom: none; }

.faq-q {
    width: 100%;
    background: none;
    border: none;
    padding: 16px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    transition: background 0.15s;
}
.faq-q:hover { background: #f8fafc; }
.faq-icon { font-size: 16px; color: #94a3b8; flex-shrink: 0; transition: transform 0.2s; }

.faq-a {
    max-height: 0;
    overflow: hidden;
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.65;
    transition: max-height 0.35s ease, padding 0.25s ease;
    padding: 0 22px;
}
.faq-a-open {
    max-height: 200px;
    padding: 0 22px 16px;
}

/* ── Toast ── */
.plan-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    font-size: 13.5px;
    animation: planToastIn 0.3s ease;
}
.plan-toast-close {
    background: none; border: none; color: rgba(255,255,255,0.8);
    margin-left: auto; cursor: pointer; font-size: 20px; line-height: 1; padding: 0 2px;
}
.plan-toast-close:hover { color: #fff; }

@keyframes planToastIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Sticky Mobile CTA ── */
.sticky-mobile-cta {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 12px 16px;
    background: linear-gradient(to top, rgba(245,247,250,1) 60%, transparent);
}
.sticky-cta-btn {
    display: block;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    padding: 14px 20px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(249,115,22,0.45);
}

/* ── Near-Expiry Warning Banner ── */
.plan-expiry-banner {
    background: linear-gradient(90deg, #fff7ed, #ffedd5);
    border-left: 4px solid #f97316;
    border-radius: var(--sb-radius-sm);
    padding: 10px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: #7c2d12;
}
.plan-expiry-banner .banner-renew-link {
    margin-left: auto;
    font-weight: 600;
    color: #ea580c;
    text-decoration: none;
    white-space: nowrap;
}
.plan-expiry-banner .banner-renew-link:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .renewal-hero { grid-template-columns: 1fr; }
    .plans-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .plan-card-featured { transform: none; }
    .plan-card-featured:hover { transform: translateY(-4px); }
}

@media (max-width: 640px) {
    .renewal-container { padding: 20px 14px 80px; }
    .renewal-h1 { font-size: 20px; }
    .plans-grid-2, .plans-grid-3 { grid-template-columns: 1fr; }
    .trust-divider { display: none; }
    .trust-strip { justify-content: flex-start; gap: 12px; }
    .renewal-steps-bar { padding: 8px 16px; gap: 0; }
    .rstep-line { width: 24px; }
    .rstep-txt { display: none; }
    .sticky-mobile-cta { display: flex; }
    .search-client { display: none; }
    .mb_sm_40 { margin-bottom: 40px; }
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    padding: 0 18px !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: 1px solid #dfdfdf !important;
}

/* Client-list UI gap analysis, 2026-08-22 — third pass. First attempt tuned
   min-height/margin-top by pixel measurement in one browser and didn't
   reproduce reliably (field still rendered outside the box for real).
   Second attempt made the box a flexbox and centered its content instead of
   predicting an exact height — that fixed the overflow, but swapping the
   search field's height to `auto` (to stop it fighting a fixed value) had a
   side effect not caught in that round's testing: a bare <textarea> with no
   `rows` attribute defaults to **2 rows** per the HTML spec, not 1 — confirmed
   via computed style (rows=2, 48px rendered height at this font's 24px
   line-height) — so `height: auto` let the box balloon to fit 2 blank text
   rows, ~20px taller than the sibling Date Filter/Clients boxes right next
   to it (38px). Fixed by giving the field an explicit single-line height
   instead of `auto`, and matching the container's min-height to its
   siblings' real measured 38px exactly rather than a rounder guessed
   number. The flexbox centering from the second pass is kept — it's still
   the right way to keep this correct regardless of small future height
   changes, just no longer being defeated by the textarea's own default. */
.select2-container--default .select2-selection--multiple {
    border: 1px solid #dfdfdf !important;
    min-height: 38px !important;
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 4px;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 4px;
    width: 100%;
}

.select2-container .select2-search--inline {
    flex: 1;
    min-width: 60px;
}

.select2-container .select2-search--inline .select2-search__field {
    color: #707273 !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    margin: 0 !important;
    height: 20px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.form-select {
    color: #707273 !important;
}

.badge-light {
    --bs-bg-opacity: 1;
    background-color: rgb(225 225 225) !important;
}

.btn-outline-0 {
    background: #fff !important;
    border: 1px solid #d7d7d7 !important;
    padding: 2px 7px !important;
}

.btn-outline-0:hover {
    background: #f1f5f9 !important;
    border: 1px solid #d7d7d7 !important;
    color: #000 !important;
    padding: 2px 7px !important;
}

.bg-green {
    background: #e2f7e2;
    padding: 2px 10px;
    border-radius: 20px;
    text-align: center;
    color: green;
}

.bg-red {
    background: #f7e2e2;
    padding: 2px 10px;
    border-radius: 20px;
    text-align: center;
    color: brown;
}

.dashboard-icon-bg {
    height: 50px;
    width: 50px;
    line-height: 50px;
    margin: 0 !important;
    background-color: #f5f3ee;
    border-radius: 100%;
    text-align: center;
}

.dashboard-icon-bg2 {
    height: 40px;
    width: 40px;
    line-height: 40px;
    margin: 0 !important;
    border-radius: 100%;
    text-align: center;
}

.dashboard-card-box-shadow .col:nth-child(1) .card .dashboard-icon-bg2 {
    background-color: #e91d6225;
}

.dashboard-card-box-shadow .col:nth-child(2) .card .dashboard-icon-bg2 {
    background-color: #00968825;
}

.dashboard-card-box-shadow .col:nth-child(3) .card .dashboard-icon-bg2 {
    background-color: #e91d6225;
}

.dashboard-card-box-shadow .col:nth-child(4) .card .dashboard-icon-bg2 {
    background-color: #00bbd525;
}

.dashboard-card-box-shadow .col:nth-child(5) .card .dashboard-icon-bg2 {
    background-color: #f4c33025;
}

.dashboard-card-box-shadow .col:nth-child(1) .card .dashboard-icon-bg {
    background-color: #e91d6225;
}

.dashboard-card-box-shadow .col:nth-child(2) .card .dashboard-icon-bg {
    background-color: #00968825;
}

.dashboard-card-box-shadow .col:nth-child(3) .card .dashboard-icon-bg {
    background-color: #551a8b25;
}

.dashboard-card-box-shadow .col:nth-child(4) .card .dashboard-icon-bg {
    background-color: #f4c33025;
}

.dashboard-card-box-shadow .col:nth-child(5) .card .dashboard-icon-bg {
    background-color: #00bbd525;
}

.btn-outline-light {
    background: #fff !important;
}

.btn-light {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #ddd;
}

.card .nav-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0;
    gap: 5px;
}

.card .nav-tabs .nav-link {
    color: #969696;
    padding: 2px 8px;
}

.card .nav-tabs .nav-link.active {
    color: #000;
    background: #f9fafb;
    border-bottom: 2px solid;
    padding: 2px 8px;
}

.card .nav-tabs .nav-link:focus,
.card .nav-tabs .nav-link:hover {
    color: #000;
    background: #f9fafb;
    border-bottom: 2px solid;
}

/* .card .nav-tabs-wrapper{
    overflow-x: auto;
    white-space: nowrap;
    overflow-y: hidden;
} */
.graph-fix {
    width: 100%;
    height: auto;
    max-width: 1100px;
    max-height: 350px;
    display: block;
}

.img-fit {
    object-fit: contain;
    aspect-ratio: 2 / 1;
}

.nav-wrapper .nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.nav-wrapper .nav-list .nav-link {
    color: #000;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
}

.nav-wrapper .nav-list .nav-link.active {
    color: #bb2d3b;
    font-weight: 600;
    background: #fff;
    border: 1px solid #bb2d3b;
}

@media (max-width: 768px) {
    .nav-wrapper .nav-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding: 10px 0;
        display: flex;
        justify-content: normal;
        gap: 4px;
    }

    .nav-wrapper .nav-list .nav-link {
        flex: 0 0 auto;
    }
}

.nav-wrapper .nav-list::-webkit-scrollbar {
    display: none;
}

/* Shared secondary navigation for the complete Store & Inventory workspace. */
.store-section-nav-shell {
    width: min(calc(100% - (var(--saas-page-gutter) * 2)), var(--saas-content-max));
    margin: 0 auto 18px;
}

.store-section-nav {
    padding: 8px;
    background: #fff;
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-lg);
    box-shadow: var(--sb-shadow-sm);
}

.store-section-nav .nav-list {
    justify-content: flex-start;
    gap: 4px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.store-section-nav .nav-link {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 9px 14px;
}

.team-section-nav-shell {
    width: min(calc(100% - (var(--saas-page-gutter) * 2)), var(--saas-content-max));
    margin: 0 auto 18px;
}

.team-section-nav {
    padding: 8px;
    background: #fff;
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-lg);
    box-shadow: var(--sb-shadow-sm);
}

.team-section-nav .nav-list {
    justify-content: flex-start;
    gap: 4px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.team-section-nav .nav-link {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 9px 14px;
}

/* Compact, collapsible operating metrics shared outside the dashboard. */
.compact-kpi-card { overflow: hidden; background: #fff; border: 1px solid var(--sb-border); border-radius: var(--sb-radius-lg); box-shadow: var(--sb-shadow-sm); }
.compact-kpi-card__header { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; color: var(--sb-text); font-weight: 700; cursor: pointer; list-style: none; }
.compact-kpi-card__header::-webkit-details-marker { display: none; }
.compact-kpi-card__header > span { display: inline-flex; gap: 8px; align-items: center; }
.compact-kpi-card__chevron { transition: transform .2s ease; }
.compact-kpi-card[open] .compact-kpi-card__chevron { transform: rotate(180deg); }
.compact-kpi-card__items { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--sb-border); }
.compact-kpi-card__item { display: flex; gap: 10px; align-items: center; min-width: 0; padding: 13px 16px; color: inherit; text-decoration: none; border-right: 1px solid var(--sb-border); }
.compact-kpi-card__item:last-child { border-right: 0; }
.compact-kpi-card__item:hover { color: inherit; background: var(--sb-neutral-50); }
.compact-kpi-card__item > span:last-child { display: grid; min-width: 0; }
.compact-kpi-card__item strong { color: var(--sb-text); font-size: 17px; line-height: 1.15; }
.compact-kpi-card__item small { overflow: hidden; color: var(--sb-text-soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.compact-kpi-card__icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 34px; height: 34px; color: var(--sb-text-soft); background: var(--sb-neutral-100); border-radius: 10px; }
.compact-kpi-card__icon--success { color: #047857; background: #ecfdf5; }.compact-kpi-card__icon--warning { color: #a16207; background: #fefce8; }.compact-kpi-card__icon--danger { color: #b42318; background: #fef2f2; }.compact-kpi-card__icon--info { color: #1d4ed8; background: #eff6ff; }

@media (max-width: 575.98px) {
    .store-section-nav-shell {
        width: calc(100% - 24px);
        margin-bottom: 14px;
    }

    .team-section-nav-shell {
        width: calc(100% - 24px);
        margin-bottom: 14px;
    }

    .compact-kpi-card__items { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
    .compact-kpi-card__item { flex: 0 0 155px; scroll-snap-align: start; }
}

.collapse-icon {
    transition: transform 0.3s ease;
}

.rotate-up {
    transform: rotate(180deg);
}

/* Readonly field visual styling */
input[readonly],
textarea[readonly],
select[readonly] {
    background-color: #f8f9fa !important;
    cursor: not-allowed;
    color: #6c757d;
}

/* ===========================================================
   Design system v2 — persistent sidebar shell
   =========================================================== */

:root {
    /* ===========================================================
       Design system v3 — full token set
       Every token already consumed elsewhere in this file (--sb-ink,
       --sb-canvas, --sb-accent, --sb-border, --sb-text, --sb-text-soft, etc.)
       is kept as a working alias onto the new scale below, so nothing
       downstream needs to change — only the values got richer.
       =========================================================== */

    /* ── Neutral scale (warm stone, 50 lightest → 950 darkest) ──
       50/100/200/600/900/950 are the exact values the old 4-step palette
       already used, kept identical for continuity; the rest fill the gaps. */
    --sb-neutral-50: #fbfaf8;
    --sb-neutral-100: #f7f5f2;
    --sb-neutral-150: #f2efea;
    --sb-neutral-200: #e8e4de;
    --sb-neutral-300: #d8d2c8;
    --sb-neutral-400: #b8b0a3;
    --sb-neutral-500: #948c7f;
    --sb-neutral-600: #78726b;
    --sb-neutral-700: #5a544d;
    --sb-neutral-800: #3a3632;
    --sb-neutral-900: #211d1b;
    --sb-neutral-950: #1c1917;

    /* ── Accent scale (brand rose — refreshed from the old flat #c4283f) ── */
    --sb-accent-50: #fef1f3;
    --sb-accent-100: #fde3e8;
    --sb-accent-200: #fac6d0;
    --sb-accent-300: #f29aac;
    --sb-accent-400: #e8637f;
    --sb-accent-500: #e2375c;
    --sb-accent-600: #cc2350;
    --sb-accent-700: #a81f42;
    --sb-accent-800: #7a1626;
    --sb-accent-900: #571221;

    /* ── Semantic colors (success/warning/danger/info), each with a
       soft background + an ink foreground meant to sit on that background ── */
    --sb-success: #16a34a;
    --sb-success-soft: #e9f7ee;
    --sb-success-ink: #15803d;

    --sb-warning: #d97706;
    --sb-warning-soft: #fdf3e0;
    --sb-warning-ink: #8a5a00;

    /* True error red — deliberately distinct from --sb-accent. The app's
       .btn-danger/.pill-danger classes intentionally stay accent-colored
       (that repurposing predates this token pass and drives real primary-
       action buttons app-wide) — this pair is for new error/validation UI
       that needs to read as "wrong", not "brand". */
    --sb-danger: #dc2626;
    --sb-danger-soft: #fef2f2;
    --sb-danger-ink: #b91c1c;

    --sb-info: #1f5f8a;
    --sb-info-soft: #e8f2fb;
    --sb-info-ink: #1f5f8a;

    /* ── Elevation ── */
    --sb-shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.05);
    --sb-shadow-md: 0 4px 12px rgba(28, 25, 23, 0.08);
    --sb-shadow-lg: 0 12px 32px rgba(28, 25, 23, 0.14);

    /* ── Radius ── */
    --sb-radius-sm: 6px;
    --sb-radius-md: 8px;
    --sb-radius-lg: 12px;
    --sb-radius-full: 999px;

    /* ── Spacing (4px base unit) ── */
    --sb-space-1: 4px;
    --sb-space-2: 8px;
    --sb-space-3: 12px;
    --sb-space-4: 16px;
    --sb-space-5: 24px;
    --sb-space-6: 32px;
    --sb-space-7: 48px;
    --sb-space-8: 64px;

    /* ── Typography ── */
    --sb-font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --sb-font-brand: "Poppins", sans-serif;
    --sb-text-xs: 11px;
    --sb-text-sm: 12.5px;
    --sb-text-base: 13.5px;
    --sb-text-md: 15px;
    --sb-text-lg: 16px;
    --sb-text-xl: 20px;
    --sb-text-2xl: 24px;
    --sb-text-3xl: 32px;

    /* ── Motion ── */
    --sb-duration-fast: 120ms;
    --sb-duration-base: 180ms;
    --sb-ease: cubic-bezier(0.4, 0, 0.2, 1);

    /* ── Legacy aliases (existing usages throughout this file reference
       these names directly — keep them pointed at the new scale) ── */
    --sb-ink: var(--sb-neutral-950);
    --sb-ink-raised: #262220;
    --sb-canvas: var(--sb-neutral-100);
    /* 3.1 — was --sb-accent-500 (#e2375c): white text on that background measured
       4.26:1, just under WCAG AA's 4.5:1 for this button's actual text size/weight.
       Promoted to -600 (5.35:1, comfortably passing) and hover to -700 (7.14:1) to
       preserve the same one-step-darker-on-hover relationship — both already exist
       in the accent ramp above, so this is a token reassignment, not a new color. */
    --sb-accent: var(--sb-accent-600);
    --sb-accent-hover: var(--sb-accent-700);
    --sb-accent-soft: var(--sb-accent-50);
    --sb-accent-ink: var(--sb-accent-800);
    --sb-border: var(--sb-neutral-200);
    --sb-text: var(--sb-neutral-900);
    --sb-text-soft: var(--sb-neutral-600);
    --sb-width: 272px;
    --sb-width-collapsed: 76px;
}

body {
    background-color: var(--sb-canvas) !important;
}

/* ── Sidebar shell ─────────────────────────────────────────── */
.sidepanel {
    background: linear-gradient(180deg, #24201e 0%, var(--sb-ink) 34%, #171412 100%) !important;
    width: var(--sb-width) !important;
    max-width: 84vw;
    color: #cfc7c1;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 10px 0 28px rgba(28, 25, 23, 0.12);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 76px;
    padding: 17px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.018);
}

.sidebar-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--sb-accent-500), var(--sb-accent-700));
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 5px 12px rgba(204, 35, 80, 0.28);
}

.sidebar-brand-logo {
    background: var(--sb-neutral-100);
    object-fit: cover;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* 3.2 — neither this nor .sidepanel itself ever set a font-family, so before
       today's body-font fix this was silently inheriting Bootstrap's system-ui
       (same root cause as the body-wide bug); now it would inherit the newly-fixed
       Inter instead. Set explicitly to Poppins to match the "brand/sidebar marks"
       half of the documented design-system-v3 intent (business.layouts.app's own
       header comment), same as .navbar-brand elsewhere already does. */
    font-family: "Poppins", sans-serif;
}

.sidebar-brand-name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-brand-sub {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #a89e97;
    font-size: 10.5px;
    letter-spacing: 0.01em;
}

.sidebar-brand-status {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.10);
}

.sidebar-brand-chevron {
    flex-shrink: 0;
    margin-left: auto;
    color: #7d746c;
    font-size: 15px;
}

.sidepanel .badge-addon {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    padding: 2px 7px;
    color: #6b4c00;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: linear-gradient(135deg, #ffe9a8, #ffcf5c);
    border-radius: 999px;
}

.sidebar-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-scroll::-webkit-scrollbar { width: 5px; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.13); border-radius: 999px; }

/* ── Fixed bottom area (utility links + plan chip) — sits outside
   .sidebar-scroll so it never scrolls away, per redesign brief §16. ── */
.sidebar-bottom {
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(0, 0, 0, 0.10);
}

.sidebar-bottom-links {
    padding: 6px 10px;
}

.sidebar-bottom-links .nav-link {
    padding: 7px 10px !important;
    font-size: 13px;
}

.sidebar-plan-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 8px 12px 12px;
    padding: 11px 12px;
    background: linear-gradient(135deg, rgba(226, 55, 92, 0.18), rgba(255, 255, 255, 0.045));
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    flex-shrink: 0;
}

.sidebar-plan-chip-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.sidebar-plan-chip-name {
    color: #fff;
    font-size: 12.5px;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-plan-chip-days {
    color: #a89e97;
    font-size: 11px;
    white-space: nowrap;
}

.sidebar-plan-chip-cta {
    flex-shrink: 0;
    padding: 6px 12px;
    color: #fff !important;
    font-weight: 650;
    font-size: 11.5px;
    background: rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}

.sidebar-plan-chip-cta:hover {
    background: var(--sb-accent);
}

/* ── Nav groups / items ───────────────────────────────────── */
.sidepanel ul {
    padding: 0;
    font-family: inherit;
    color: inherit;
}

.sidepanel .nav-item.nav-category {
    font-size: 10px !important;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    font-weight: 650;
    color: #8a8079 !important;
    padding: 20px 18px 7px !important;
}

.sidepanel .nav-item.nav-category:first-child {
    padding-top: 14px !important;
}

/* Sub-labels inside an already-open group (e.g. "Reports" under Finance &
   Reports) — deliberately smaller/quieter than .nav-category so the parent
   group still reads as the primary heading and these feel secondary. */
.sidepanel .nav-item.nav-subcategory {
    font-size: 10px !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
    color: #6f6660 !important;
    padding: 12px 11px 4px !important;
}

.sidepanel .nav-item.nav-subcategory:first-child {
    padding-top: 4px !important;
}

.sidepanel > .offcanvas-body > .sidebar-scroll > .nav-item,
.sidepanel .sidebar-scroll > .nav-item {
    padding-left: 10px;
    padding-right: 10px;
}

.sidepanel .nav-link {
    display: flex !important;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 10px 12px !important;
    border-radius: 9px;
    color: #cfc7c1 !important;
    font-size: 13.5px;
    font-weight: 500;
    position: relative;
    transition: background-color var(--sb-duration-fast) var(--sb-ease), color var(--sb-duration-fast) var(--sb-ease), transform var(--sb-duration-fast) var(--sb-ease);
}

.sidepanel .nav-link .ti {
    font-size: 19px !important;
    color: #a89e97 !important;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidepanel .nav-link:hover,
.sidepanel .nav-link:focus {
    background: rgba(255, 255, 255, 0.06);
    color: #fff !important;
    transform: translateX(2px);
}

.sidepanel .nav-link:hover .ti,
.sidepanel .nav-link:focus .ti {
    color: #fff !important;
}

.sidepanel .nav-link.active {
    background: rgba(226, 55, 92, 0.20);
    color: #fff !important;
    font-weight: 600;
}

.sidepanel .nav-link.active .ti {
    color: #ff9bb1 !important;
}

.sidepanel li.nav-item.active > .nav-link {
    background: rgba(226, 55, 92, 0.20);
    color: #fff !important;
    font-weight: 600;
}

.sidepanel li.nav-item.active > .nav-link .ti {
    color: #ff9bb1 !important;
}

/* Left accent indicator on any active row — thicker/stronger on primary
   rows, a slim hairline on submenu rows so hierarchy stays clear (brief
   §5: primary active = stronger highlight, submenu active = subtle). */
.sidepanel .nav-link.active::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 0;
    width: 3px;
    background: var(--sb-accent);
    border-radius: 0 3px 3px 0;
}

.sidepanel .collapse .nav-link.active {
    background: rgba(255, 255, 255, 0.055);
    color: #fff !important;
    font-weight: 600;
}

.sidepanel .collapse .nav-link.active::before {
    top: 6px;
    bottom: 6px;
    width: 2px;
}

/* Sub-menu (collapsed groups like Reports, Settings) — thinner, quieter
   connector line and a visibly smaller row than the parent item so the
   hierarchy (parent = primary, children = secondary) reads at a glance. */
.sidepanel .collapse .nav,
.sidepanel .collapse.show .nav {
    padding-left: 9px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    margin-left: 23px;
}

.sidepanel .collapse .nav-link {
    min-height: 36px;
    font-size: 12.75px;
    padding: 7px 10px !important;
    border-radius: 8px;
}

.sidepanel .collapse .nav-link .ti {
    font-size: 16px !important;
    width: 18px;
}

.sidepanel .collapse-icon {
    color: #7d746c;
    font-size: 12px;
    transition: transform .15s ease;
}

.sidepanel .nav-link:focus-visible,
.sidebar-collapse-toggle:focus-visible,
.sidebar-plan-chip-cta:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.sidepanel .collapse-icon.rotate-up {
    transform: rotate(180deg);
}

.sidepanel hr {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 10px 16px;
}

.sidepanel .link-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Topbar ───────────────────────────────────────────────── */
.header {
    z-index: 1020;
}

.page-heading {
    font-size: 16px;
    font-weight: 600;
    color: var(--sb-text);
}

.topbar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f4f2ef;
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-md);
    padding: 7px 12px;
    width: 260px;
    color: var(--sb-text-soft);
    font-size: 13px;
    margin-right: 8px;
}

.topbar-search .ti {
    font-size: 14px;
}

.topbar-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    width: 100%;
    color: var(--sb-text);
}

.topbar-search input::placeholder {
    color: #a39c92;
}

.topbar-search {
    cursor: pointer;
    text-align: left;
}

.topbar-search-placeholder {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-search-mobile {
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-right: 4px;
    padding: 0;
    color: var(--sb-text-soft);
    background: transparent;
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-md);
}

.topbar-search-mobile .ti {
    font-size: 17px;
}

.topbar-search-kbd {
    background: #fff;
    border: 1px solid var(--sb-border);
    border-radius: 5px;
    padding: 1px 6px;
    font-size: 11px;
    font-family: inherit;
    color: var(--sb-text-soft);
    flex-shrink: 0;
}

/* Global search palette (Ctrl/Cmd+K) */
.global-search-modal-content {
    border-radius: var(--sb-radius-lg);
    overflow: hidden;
    border: none;
}

.global-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--sb-border);
}

.global-search-input-wrap > .ti {
    font-size: 18px;
    color: var(--sb-text-soft);
}

.global-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: var(--sb-text);
}

.global-search-kbd {
    background: var(--sb-neutral-100);
    border: 1px solid var(--sb-border);
    border-radius: 5px;
    padding: 2px 7px;
    font-size: 12px;
    font-family: inherit;
    color: var(--sb-text-soft);
}

.global-search-results {
    max-height: 60vh;
    overflow-y: auto;
    padding: 8px;
}

.global-search-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--sb-text-soft);
    padding: 10px 12px 4px;
}

.global-search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--sb-radius-md);
    color: var(--sb-text);
    text-decoration: none;
    transition: background var(--sb-duration-fast) var(--sb-ease);
}

.global-search-result:hover,
.global-search-result:focus {
    background: var(--sb-neutral-100);
    color: var(--sb-text);
}

.global-search-result > .ti {
    font-size: 18px;
    color: var(--sb-accent);
    flex-shrink: 0;
}

/* Specificity note: .header-content .dropdown .btn (above) zeroes out
   padding/border on every header dropdown trigger with 3-selector
   specificity + !important — a plain .topbar-quick-btn rule loses that
   fight even with its own !important, so this selector has to match or
   beat it (.btn.topbar-quick-btn, one class more than the generic rule). */
.header-content .dropdown .btn.topbar-quick-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 36px;
    background: var(--sb-accent) !important;
    color: #fff !important;
    border-radius: var(--sb-radius-md) !important;
    padding: 0 14px !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.topbar-quick-btn:hover {
    background: var(--sb-accent-hover) !important;
}

.topbar-quick-btn .ti {
    font-size: 14px !important;
    color: #fff !important;
}

.topbar-quick-create .dropdown-menu {
    min-width: 190px;
}

/* Header-right cluster height standard (2026-08-14): the search bar and
   +New button are both 36px tall; #notifyDown (icon-over-label, stacked)
   and #profileDown (avatar+name, single row) previously had no explicit
   height at all, so each sized to its own content — 39px and 29px
   respectively — and all four items only lined up at their vertical
   *center*, not their edges, which reads as misaligned. Matching all four
   to the same 36px height fixes that without changing anyone's layout. */
#notifyDown {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 36px;
}

#profileDown {
    height: 36px;
}

.topbar-profile {
    display: flex;
    align-items: center;
    height: 36px;
}

.topbar-profile .mail-text {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.topbar-profile-text {
    text-align: left;
    line-height: 1.25;
}

.topbar-profile-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--sb-text);
}

.topbar-profile-role {
    font-size: 11px;
    color: var(--sb-text-soft);
}

.topbar-caret {
    font-size: 10px !important;
    color: var(--sb-text-soft) !important;
    margin-left: 2px;
}

/* ── Desktop: sidebar becomes persistent, content reflows ──── */
@media (min-width: 992px) {
    .sidepanel {
        transform: none !important;
        visibility: visible !important;
    }

    body:has(.sidepanel) {
        padding-left: var(--sb-width);
    }

    body:has(.sidepanel) .header {
        left: var(--sb-width);
    }
}

/* ── Desktop: collapsed icon-only rail ───────────────────────
   Toggled via a small handle button fixed to the sidebar's own edge
   (so it stays in the same spot whether expanded or collapsed) and
   persisted client-side; see the script at the bottom of sidebar.blade.php.
   Mobile is untouched — this entire block only matters ≥992px, where the
   sidebar is already the persistent (non-offcanvas) layout above. ── */
.sidebar-collapse-toggle {
    display: none;
    position: absolute;
    top: 22px;
    right: -12px;
    z-index: 5;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    color: #cfc7c1;
    background: var(--sb-ink);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    cursor: pointer;
}

.sidebar-collapse-toggle:hover {
    color: #fff;
    background: #2a2622;
}

.sidebar-collapse-toggle .ti {
    font-size: 13px;
    transition: transform 0.15s ease;
}

@media (min-width: 992px) {
    .sidebar-collapse-toggle {
        display: flex;
    }

    body:has(.sidepanel.is-collapsed) {
        padding-left: var(--sb-width-collapsed);
    }

    body:has(.sidepanel.is-collapsed) .header {
        left: var(--sb-width-collapsed);
    }

    .sidepanel.is-collapsed {
        width: var(--sb-width-collapsed) !important;
    }

    .sidepanel.is-collapsed .sidebar-collapse-toggle .ti {
        transform: rotate(180deg);
    }

    .sidepanel.is-collapsed .sidebar-brand-text,
    .sidepanel.is-collapsed .sidebar-brand-chevron,
    .sidepanel.is-collapsed .nav-item.nav-category,
    .sidepanel.is-collapsed .nav-item.nav-subcategory,
    .sidepanel.is-collapsed .link-title,
    .sidepanel.is-collapsed .collapse-icon,
    .sidepanel.is-collapsed .badge-addon,
    .sidepanel.is-collapsed .sidebar-plan-chip-info,
    .sidepanel.is-collapsed .sidebar-plan-chip-cta,
    .sidepanel.is-collapsed hr {
        display: none;
    }

    .sidepanel.is-collapsed .sidebar-brand {
        justify-content: center;
        padding: 18px 8px;
    }

    .sidepanel.is-collapsed .nav-link {
        justify-content: center;
        padding: 10px !important;
    }

    .sidepanel.is-collapsed .nav-link .ti {
        width: auto;
    }

    .sidepanel.is-collapsed .collapse .nav {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
    }

    .sidepanel.is-collapsed .nav-link.active::before {
        left: 50%;
        width: 3px;
        transform: translateX(-32px);
    }

    .sidepanel.is-collapsed .sidebar-plan-chip {
        display: none;
    }

    .sidepanel.is-collapsed .sidebar-bottom-links .nav-link {
        justify-content: center;
    }
}

/* ===========================================================
   Design system v2 — content re-skin (cards, tables, pills, forms)
   =========================================================== */

/* ── Cards (v4 — modern-SaaS precision pass) ─────────────────
   Flat and quiet at rest (hairline border, near-invisible shadow); depth is
   earned on hover/interaction rather than applied everywhere by default —
   the "everything has a soft shadow" look is exactly what reads as dated. */
.card {
    border: 1px solid var(--sb-neutral-200) !important;
    border-radius: 14px !important;
    box-shadow: var(--sb-shadow-sm) !important;
    transition: box-shadow var(--sb-duration-base) var(--sb-ease),
        border-color var(--sb-duration-base) var(--sb-ease),
        transform var(--sb-duration-base) var(--sb-ease);
}

.card:hover {
    box-shadow: var(--sb-shadow-sm) !important;
}

/* Opt-in: cards that are themselves a clickable action (dashboard quick
   actions, utility cards) — replaces the old per-card inline
   onmouseover/onmouseout JS hover-lift hack with one reusable class. */
.card-interactive {
    cursor: pointer;
}

.card-interactive:hover {
    border-color: var(--sb-neutral-300) !important;
    box-shadow: var(--sb-shadow-md) !important;
    transform: translateY(-2px);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--sb-neutral-200);
    font-weight: 600;
}

/* ── Buttons (v4 — modern-SaaS precision pass) ───────────────
   Flat solid color at rest (no shadow-by-default), semibold label, a touch
   more breathing room than Bootstrap's default padding, and a deliberate
   hover lift + focus ring — small, consistent motion instead of a static
   color-only hover, which is most of what makes buttons feel current. */
.btn {
    border-radius: 9px;
    font-weight: 600;
    font-size: 13.5px;
    padding: 9px 18px;
    letter-spacing: 0;
    border-width: 1.5px;
    transition: background-color var(--sb-duration-fast) var(--sb-ease),
        border-color var(--sb-duration-fast) var(--sb-ease),
        box-shadow var(--sb-duration-fast) var(--sb-ease),
        transform var(--sb-duration-fast) var(--sb-ease);
}

.btn-sm {
    padding: 6px 13px;
    font-size: 12.5px;
    border-radius: 7px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 15px;
    border-radius: 10px;
}

.btn:active {
    transform: translateY(1px);
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--sb-accent-soft) !important;
}

/* "btn-danger" is used throughout as the primary/save action color (not just
   destructive actions) — retint it to the design-system accent instead of
   Bootstrap's default red. */
.btn-danger {
    background-color: var(--sb-accent) !important;
    border-color: var(--sb-accent) !important;
    box-shadow: 0 1px 2px rgba(226, 55, 92, 0.15);
}

.btn-danger:hover {
    background-color: var(--sb-accent-hover) !important;
    border-color: var(--sb-accent-hover) !important;
    box-shadow: 0 6px 16px rgba(226, 55, 92, 0.28);
    transform: translateY(-1px);
}

.btn-danger:active {
    box-shadow: 0 1px 2px rgba(226, 55, 92, 0.2);
}

.btn-outline-danger {
    color: var(--sb-accent) !important;
    border-color: var(--sb-accent) !important;
}

.btn-outline-danger:hover {
    background-color: var(--sb-accent) !important;
    border-color: var(--sb-accent) !important;
    transform: translateY(-1px);
}

/* "btn-primary" (Bootstrap blue) is used for secondary-emphasis actions
   alongside the red accent — retint to the sidebar's ink tone so the two
   button colors read as an intentional system rather than red vs. default blue. */
.btn-primary {
    background-color: var(--sb-ink) !important;
    border-color: var(--sb-ink) !important;
}

.btn-primary:hover {
    background-color: var(--sb-ink-raised) !important;
    border-color: var(--sb-ink-raised) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(28, 25, 23, 0.22);
}

.btn-outline-primary {
    color: var(--sb-ink) !important;
    border-color: var(--sb-ink) !important;
}

.btn-outline-primary:hover {
    background-color: var(--sb-ink) !important;
    border-color: var(--sb-ink) !important;
    transform: translateY(-1px);
    color: #fff !important;
}

.btn-light {
    background-color: var(--sb-neutral-100) !important;
    border-color: var(--sb-neutral-200) !important;
    color: var(--sb-text) !important;
}

.btn-light:hover {
    background-color: var(--sb-neutral-150) !important;
    border-color: var(--sb-neutral-300) !important;
}

.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active, .btn:hover {
    color: var(--bs-btn-active-color) !important;
}

body.saas-app .btn {
    font-size: 14px;
}

/* ── Tables ───────────────────────────────────────────────── */
.table thead th {
    background: #faf9f7;
    color: var(--sb-text-soft);
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--sb-border) !important;
    padding: 12px;
}

.table td {
    font-size: 13.5px;
    color: var(--sb-text);
    border-color: var(--sb-border) !important;
    padding: 12px;
}

.table-hover {
    --bs-table-hover-bg: var(--sb-accent-soft);
}

.table-responsive {
    background: #fff;
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-lg);
}

.table-responsive table {
    margin-bottom: 0;
}

/* Opt-in wrapper for tables built/touched going forward */
.data-table {
    background: #fff;
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-lg);
    overflow: hidden;
}

.data-table table {
    margin-bottom: 0;
}

/* ── Badges / pills ───────────────────────────────────────── */
.badge {
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Opt-in status pill for tables/cards built/touched going forward */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: var(--sb-radius-full);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.pill-success {
    background: var(--sb-success-soft);
    color: #1f8a4c;
}

.pill-danger {
    background: var(--sb-accent-soft);
    color: var(--sb-accent-ink);
}

.pill-warning {
    background: var(--sb-warning-soft);
    color: var(--sb-warning-ink);
}

.pill-info {
    background: var(--sb-info-soft);
    color: var(--sb-info);
}

.pill-neutral {
    background: #f1efec;
    color: var(--sb-text-soft);
}

/* .pill-danger intentionally stays brand-accent-colored, not true red (see
   :root comment) — these two fill the gap for status badges that need a
   color .pill-danger doesn't provide:
   pill-accent = the brand rose, used on its own semantic terms (e.g. an
   "in progress / confirmed" state, not an error) rather than as a
   danger-repurposed color.
   pill-error = true red (--sb-danger), for a status that must read as
   genuinely wrong or terminal — the counterpart to crm.css's .pill-lost,
   generalized beyond CRM leads. */
.pill-accent {
    background: var(--sb-accent-soft);
    color: var(--sb-accent-ink);
}

.pill-error {
    background: var(--sb-danger-soft);
    color: var(--sb-danger-ink);
}

/* ── Stat cards ───────────────────────────────────────────── */
.stat-card {
    background: #fff;
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-lg) !important;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    box-shadow: 0 1px 2px rgba(28, 25, 23, 0.05) !important;
}

.stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    background: var(--sb-accent-soft);
    color: var(--sb-accent);
}

.stat-card-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--sb-text);
    line-height: 1.1;
}

.stat-card-label {
    font-size: 12.5px;
    color: var(--sb-text-soft);
}

/* ── Forms (v4 — modern-SaaS precision pass) ─────────────────
   Same 9px radius family as buttons (they sit in the same rows), a border
   with slightly more definition than the card hairline so fields read as
   "fillable" at a glance, and taller default padding — Bootstrap's stock
   padding is the single biggest reason forms read as dated. */
.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--sb-text);
    margin-bottom: 6px;
}

.form-control,
.form-select {
    border: 1.5px solid var(--sb-neutral-300);
    border-radius: 9px;
    padding: 9px 14px;
    font-size: 13.5px;
    color: var(--sb-text);
    background-color: #fff;
    transition: border-color var(--sb-duration-fast) var(--sb-ease),
        box-shadow var(--sb-duration-fast) var(--sb-ease);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--sb-accent) !important;
    box-shadow: 0 0 0 3px var(--sb-accent-soft) !important;
}

.form-control:hover:not(:focus):not(:disabled),
.form-select:hover:not(:focus):not(:disabled) {
    border-color: var(--sb-neutral-400);
}

.form-control::placeholder {
    color: var(--sb-neutral-500);
}

.form-check-input {
    border: 1.5px solid var(--sb-neutral-400);
}

.form-check-input:checked {
    background-color: var(--sb-accent);
    border-color: var(--sb-accent);
}

.form-check-input:focus {
    border-color: var(--sb-accent);
    box-shadow: 0 0 0 3px var(--sb-accent-soft);
}

/* ── Buttons (secondary — the one Bootstrap default the earlier
   retint pass missed; btn-danger/btn-primary are already accent/ink) ── */
.btn-secondary {
    background-color: var(--sb-neutral-600) !important;
    border-color: var(--sb-neutral-600) !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background-color: var(--sb-neutral-700) !important;
    border-color: var(--sb-neutral-700) !important;
}

.btn-outline-secondary {
    color: var(--sb-neutral-600) !important;
    border-color: var(--sb-neutral-400) !important;
}

.btn-outline-secondary:hover {
    background-color: var(--sb-neutral-600) !important;
    border-color: var(--sb-neutral-600) !important;
}

/* ── Buttons (success/warning/info — 3.4) — the semantic tokens above already
   existed (used for status badges) but nothing had ever pointed the matching
   Bootstrap button classes at them, so any .btn-warning/.btn-info/.btn-success
   in the app (e.g. Client Setting's "Sync Client") was still rendering in raw,
   untokenized Bootstrap defaults — the exact ad hoc-color gap this phase's
   audit flagged. Buttons use each color's darker "-ink" variant rather than
   the base token: white text on the base success/warning tokens measures only
   ~3.2:1, the same class of WCAG AA failure 3.1 fixed on the primary button;
   the -ink variants clear 5:1+. info has no separate -ink (its base token was
   already dark enough at 6.86:1), so it's used directly. Hover shades are each
   one step further darkened, matching the darker-on-hover pattern used
   throughout this file. */
.btn-success {
    background-color: var(--sb-success-ink) !important;
    border-color: var(--sb-success-ink) !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background-color: #116c33 !important;
    border-color: #116c33 !important;
}

.btn-outline-success {
    color: var(--sb-success-ink) !important;
    border-color: var(--sb-success) !important;
}

.btn-outline-success:hover {
    background-color: var(--sb-success-ink) !important;
    border-color: var(--sb-success-ink) !important;
}

.btn-warning {
    background-color: var(--sb-warning-ink) !important;
    border-color: var(--sb-warning-ink) !important;
    color: #fff !important;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
    background-color: #754c00 !important;
    border-color: #754c00 !important;
    color: #fff !important;
}

.btn-outline-warning {
    color: var(--sb-warning-ink) !important;
    border-color: var(--sb-warning) !important;
}

.btn-outline-warning:hover {
    background-color: var(--sb-warning-ink) !important;
    border-color: var(--sb-warning-ink) !important;
    color: #fff !important;
}

.btn-info {
    background-color: var(--sb-info) !important;
    border-color: var(--sb-info) !important;
    color: #fff !important;
}

.btn-info:hover,
.btn-info:focus,
.btn-info:active {
    background-color: #1a5075 !important;
    border-color: #1a5075 !important;
    color: #fff !important;
}

.btn-outline-info {
    color: var(--sb-info) !important;
    border-color: var(--sb-info) !important;
}

.btn-outline-info:hover {
    background-color: var(--sb-info) !important;
    border-color: var(--sb-info) !important;
    color: #fff !important;
}

/* ── Data table (finished) — sticky header, zebra/hover, empty/loading ── */
.data-table {
    position: relative;
}

.data-table table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.data-table tbody tr:hover {
    background: var(--sb-neutral-50);
}

.data-table-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sb-space-2);
    padding: var(--sb-space-6) 0;
    color: var(--sb-text-soft);
    font-size: var(--sb-text-sm);
}

/* ── Empty state ──────────────────────────────────────────── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--sb-space-7) var(--sb-space-4);
    color: var(--sb-text-soft);
}

.empty-state-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--sb-radius-full);
    background: var(--sb-neutral-100);
    color: var(--sb-neutral-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: var(--sb-space-3);
}

.empty-state-title {
    color: var(--sb-text);
    font-weight: 600;
    font-size: var(--sb-text-md);
    margin-bottom: var(--sb-space-1);
}

.empty-state-subtitle {
    font-size: var(--sb-text-sm);
    max-width: 360px;
    margin: 0;
}

.empty-state-action {
    margin-top: var(--sb-space-4);
}

/* ── Avatar ───────────────────────────────────────────────── */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: var(--sb-radius-full);
    background: var(--sb-accent-soft);
    color: var(--sb-accent-ink);
    font-weight: 600;
    overflow: hidden;
    line-height: 1;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-sm {
    width: 28px;
    height: 28px;
    font-size: 11px;
}

.avatar-md {
    width: 38px;
    height: 38px;
    font-size: 13px;
}

.avatar-lg {
    width: 56px;
    height: 56px;
    font-size: 18px;
}

/* Reports hub */
.report-hub-card { border: 1px solid var(--sb-border); border-radius: var(--sb-radius-lg); box-shadow: var(--sb-shadow-sm); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.report-hub-card:hover { color: var(--sb-text); border-color: var(--sb-accent); box-shadow: var(--sb-shadow-md); transform: translateY(-2px); }
.report-hub-card:focus-visible { outline: 3px solid color-mix(in srgb, var(--sb-accent) 30%, transparent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .report-hub-card { transition: none; } .report-hub-card:hover { transform: none; } }

/* Website content navigation */
.content-section-nav-shell { max-width: 1140px; margin: 16px auto 0; padding: 0 12px; }
.content-section-nav { display: flex; gap: 4px; overflow-x: auto; padding: 5px; background: #fff; border: 1px solid var(--sb-border); border-radius: var(--sb-radius-lg); box-shadow: var(--sb-shadow-sm); scrollbar-width: thin; }
.content-section-nav a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 38px; padding: 0 13px; color: var(--sb-text-soft); border-radius: 9px; font-size: 14px; font-weight: 600; text-decoration: none; }
.content-section-nav a:hover { color: var(--sb-text); background: var(--sb-neutral-50); }.content-section-nav a.active { color: var(--sb-accent-ink); background: var(--sb-accent-soft); }.content-section-nav a:focus-visible { outline: 3px solid color-mix(in srgb, var(--sb-accent) 30%, transparent); outline-offset: 1px; }

/* Universal phone application shell */
@media (max-width: 991.98px) {
    body.saas-app:has(#globalMobileAppNav) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    body.saas-app:has(#globalMobileAppNav) .footer:not(#globalMobileAppNav) { display: none !important; }
    #globalMobileAppNav { z-index: 1040; right: 0; left: 0; width: 100%; padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.96); border-top: 1px solid var(--sb-border); box-shadow: 0 -8px 28px rgba(28,25,23,.09); backdrop-filter: blur(14px); }
    #globalMobileAppNav .salonCard { background: transparent; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
    #globalMobileAppNav .content { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); min-height: 64px; padding: 6px max(8px, env(safe-area-inset-left)) 4px max(8px, env(safe-area-inset-right)); }
    #globalMobileAppNav .footer-link, #globalMobileAppNav .footer-fab-wrap { width: 100%; min-width: 0; }
    #globalMobileAppNav .footer-link { display: flex; align-items: center; justify-content: center; min-height: 52px; color: var(--sb-text-soft); border-radius: 10px; }
    #globalMobileAppNav .footer-link-content { display: grid; gap: 2px; width: auto; justify-items: center; }
    #globalMobileAppNav .footer-link-content .ti { font-size: 21px; line-height: 1; }
    #globalMobileAppNav .footer-link-content p { font-size: 11px; font-weight: 650; line-height: 1.2; }
    #globalMobileAppNav .footer-link.active { color: var(--sb-accent); background: var(--sb-accent-soft); }
    #globalMobileAppNav .footer-fab-wrap { align-items: center; }
    #globalMobileAppNav .footer-fab { width: 50px; height: 50px; margin-top: -23px; border: 3px solid #fff; box-shadow: 0 7px 18px rgba(204,35,80,.28); }
    .topbar-search-mobile, .navbar-toggler.openbtn { min-width: 44px; width: 44px; min-height: 44px; height: 44px; }
    .header-content .dropdown .btn.topbar-quick-btn, #notifyDown, #profileDown, .topbar-profile { min-height: 44px; height: 44px; }
    .floating-help-btn { bottom: calc(82px + env(safe-area-inset-bottom)) !important; }
}

@supports (height: 100dvh) {
    .sidepanel, .offcanvas { min-height: 100dvh; }
}

/* Responsive notification centre */
body.saas-app .notification-popover { width: min(400px, calc(100vw - 24px)); min-width: min(380px, calc(100vw - 24px)); max-width: 400px; padding: 0; animation: dropdownFadeIn .2s ease-out; }
body.saas-app .notification-count { padding: .3em .6em; font-size: .6rem; border: 2px solid #fff; }
body.saas-app .notification-popover-title { font-size: 1.05rem; }
body.saas-app .notification-popover-title .ti { font-size: 1.1rem; }
body.saas-app .notification-list { max-height: min(420px, 58dvh); overflow-y: auto; background: #fff; overscroll-behavior: contain; }
body.saas-app .notification-section-label { font-size: .7rem; letter-spacing: .8px; }
body.saas-app .notification-item { min-height: 68px; white-space: normal; transition: background-color .2s ease; }
body.saas-app .notification-item:hover { background-color: var(--sb-neutral-50) !important; }
body.saas-app .notification-item-icon { width: 42px; height: 42px; border: 1px solid color-mix(in srgb, var(--sb-accent) 12%, transparent); }
body.saas-app .notification-item-icon .ti { font-size: 1.15rem; }
body.saas-app .notification-item-title { font-size: .92rem; }
body.saas-app .notification-item-message { font-size: .85rem; }
body.saas-app .notification-item-meta { font-size: .8rem; }
body.saas-app .notification-item-meta .ti { font-size: .75rem; }
body.saas-app .notification-empty-icon { width: 70px; height: 70px; }
body.saas-app .notification-empty-icon .ti { font-size: 2.5rem; }
body.saas-app .notification-footer-link { min-height: 48px; font-size: .85rem; transition: background-color .2s ease; }
body.saas-app .notification-footer-link:hover { color: var(--sb-accent-hover) !important; background-color: var(--sb-neutral-100); }
body.saas-app .notification-dropdown .hover-underline:hover { text-decoration: underline !important; }
body.saas-app .notification-list::-webkit-scrollbar { width: 5px; }
body.saas-app .notification-list::-webkit-scrollbar-track { background: transparent; }
body.saas-app .notification-list::-webkit-scrollbar-thumb { background: var(--sb-neutral-300); border-radius: 10px; }
body.saas-app .notification-list::-webkit-scrollbar-thumb:hover { background: var(--sb-neutral-400); }
body.saas-app .tracking-wider { letter-spacing: .5px; }

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 575.98px) {
    body.saas-app .notification-popover { position: fixed !important; inset: 58px 12px auto 12px !important; width: auto; max-width: none; margin: 0; transform: none !important; border-radius: var(--sb-radius-lg) !important; }
    body.saas-app .notification-list { max-height: calc(100dvh - 214px); }
    body.saas-app .notification-popover-title { font-size: 1rem; }
    body.saas-app .notification-item { min-height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
    body.saas-app .notification-popover { animation: none; }
}
