.se_link_click {
    position: relative;
    display: block;
    background: #f5f8fa;
    padding: 1.8rem 2rem;
    margin: 0 0 3rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: inherit !important;
    border-color: #fcab32;
    border-left: .5rem solid #f5c26b;
    border-radius: 0.1875rem;
    box-shadow: 0 .1rem .5rem 0 #cbd6e2;
    cursor: pointer;
    transition: .2s ease-in-out all;
}
.se_link_click_bdr{
    border-right: 5px solid #f5c26b;
}
.se_link_click:hover {
    cursor: pointer;
    box-shadow: 0 1rem 1.5rem -4.5px #cbd6e2;
    transition: 0.3s ease-in-out;
    color: inherit;
    text-decoration: none;
}
.se_link_click,
.se_link_click p,
.se_link_click span{
    text-decoration: none;
}
.se_link_click p{
    font-size: 1.6rem;
    margin: 0;
}
.se_link_click span,
.cards_item .card_link span{
    color: var(--bg-site-blue);
    font-size: 1.2rem;
    font-weight: bold;
}
.se_link_click span img,
.se_link_click span svg,
.cards_item .card_link span img,
.cards_item .card_link span svg{
    width: 1.2rem;
    height: 1.2rem;
    margin: 0 0 .2rem 1rem;
    object-fit: contain;
}
.flex-wrapper {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}
.flex-wrapper .ml-auto svg,
.flex-wrapper .ml-auto img,
.flex-wrapper .ml-right svg,
.flex-wrapper .ml-right svg {
    width: 1.9rem;
    height: 1.9rem;
    margin-top: -.2rem;
    object-fit: contain;
}
.se_box {
    position: relative;
    background-color: #fff;
    min-height: 15rem;
    padding: 2rem;
    margin: 0 0 3rem;
    border-radius: .7rem;
    box-shadow: 0 .2rem 1rem rgba(0, 0, 0, .1);
}
.user-card {
    position: relative;
    min-height: 16rem;
    margin-bottom: 2em;
    box-shadow: rgba(103, 113, 133, 0.2) .5rem 1rem 1.5rem 0 !important;
    overflow: hidden;
}
.u-card--img {
    position: relative;
    margin-bottom: 1rem;
}
.u-card--img svg,
.u-card--img img {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
}
.head-text-overflow {
    display: block;
    font-size: 2.4rem;
    width: 27rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.dashboard-title{
    font-size: 3rem;
    font-family: var(--Delivery-Black);
}
.dashboard-title span{
    display: block;
    font-size: 1.4rem;
    font-family: var(--Roboto);
}
.sett_profile_mini {
    justify-content: center;
    margin-bottom: 2.5rem;
}
.sett_profile_mini .info {
    position: relative;
}
.sett_profile_mini .info h3 {
    color: #4b4b4b;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}
.sett_profile_mini .info h3 a {
    color: #4b4b4b;
}
.sett_profile_mini .info p {
    color: #e4a008;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}
.avatar-change{
    position: relative;
    background: #f0f0f0;
    height: 7.5rem;
    width: 7.5rem;
    margin-right: 0.5rem;
    border-radius: 100%;
    border: .5rem solid #d39e0e;
    overflow: hidden;
}
.user_profile {
    width: 100%;
    height: 100%;
    border-radius: 100%;
}
.user_profile img,
.user_profile svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.table-data__history thead tr th{
    overflow: hidden;
    white-space: nowrap;
}
.table-data__history a.view{
    color: var(--text-white);
    background-color: var(--google);
    font-size: 1.3rem;
    padding: .8rem 1.3rem;
    border-radius: 10rem;
    max-width: 5rem;
    text-overflow: ellipsis;
}
.table-data__history a.view img,
.table-data__history a.view svg{
    width: 1.2rem;
    height: 1.2rem;
    margin: 0 0 .2rem .1rem;
    object-fit: contain;
}
.table-data__history .link_wrapper{
    justify-content: center;
    /* gap: .5rem; */
}
.table-data__history .link_wrapper a.view{
    position: relative;
    color: var(--bg-blue);
    background-color: var(--transparent);
    padding: .8rem 1rem;
    max-width: 100%;
    border-radius: 0;
}
.table-data__history .link_wrapper a.view img,
.table-data__history .link_wrapper a.view svg{
    fill: currentColor;
}
.table-data__history .link_wrapper a.view:first-child::after{
    content: "";
    position: absolute;
    background-color: var(--bg-blue);
    width: .1rem;
    height: 50%;
    top: 1rem;
    right: 0rem;
    z-index: 0;
}
/* user navbar */
.nav_tabs {
    margin-bottom: 2.5rem;
}
.nav_tabs_settings {
    position: sticky;
    background-color: var(--transparent);
    top: 0;
    margin-bottom: 3rem;
    z-index: 1;
}
.nav_tabs ul {
    display: -ms-flexbox;
    display: flex;
    position: relative;
    white-space: nowrap;
    overflow-x: auto;
}
.nav_tabs ul:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: .2rem;
    background-color: rgba(230, 230, 230, 0.204);
    z-index: -1;
}
.nav_tabs ul li {
    margin: 0;
}
.nav_tabs ul li:first-child {
    margin-left: auto;
}
.nav_tabs ul li:last-child {
    margin-right: auto;
}
.nav_tabs ul li a {
    display: block;
    color: #8b8b8b;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
    padding: 1.3rem 2.5rem;
    border-bottom: .2rem solid rgba(230, 230, 230, 0.204);
}
.nav_tabs ul li a:hover {
    color: #4e4e4e
}
.nav_tabs ul li.active a {
    background: var(--transparent);
    color: #e4a008;
    border-bottom-color: #e4a008;
}
/* End user navbar */

.user-greeting {
    position: relative;
    background: #fff;
    padding: 1.5rem 2rem;
    border-left: .4rem solid;
    border-left-color: #C1C1C1;
    margin-bottom: 3rem;
}
.user-greeting p {
    margin: 0;
}
.card {
    min-width: 0;
    min-height: 16rem;
    padding: 1.25rem;
    border-radius: .1rem;
    border: none;
    box-shadow: var(--box-shadow-3);
    border-radius: 3rem;
    transition: background-image 0.6s ease 0s;
}
.cards_item{
    display: block;
    color: var(--bg-black-80);
    background: var(--bg-white);
    font-size: 1.4rem;
    text-decoration: none;
    min-height: 22rem;
    padding: 2.5rem;
    margin: 0 0 4rem;
    border: 1px solid var(--grey-50);
    border-radius: 2rem;
    box-shadow: var(--box-shadow-9);
}
.cards_item img,
.cards_item svg{
    width: 4rem;
    height: 4rem;
    margin: 0 0 1rem;
    fill: currentColor;
    object-fit: contain;
}
.cards_item .card_title{
    font-size: 1.6rem;
    margin: 1rem 0;
}
.cards_item .card_text{
    font-size: 1.4rem;
    color: var(--bg-black-50);
    margin: 0;
}
.cards_item .card_link{
    display: inline-block;
    text-decoration: none;
    margin: 1rem 0 0;
}
.cards_item .card_link span{
    font-size: 1.3rem;
}

/* filter pills */
.filter_parents{
    position: relative;
    margin: 2rem 0 3rem;
}
.filter_parents .title{
    display: block;
    font-size: 1.6rem;
    text-align: center;
}
.small-pills__parent {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
    margin: 0;
    overflow-y: hidden;
}
.small-nav__pills {
    position: relative;
    max-width: 190px;
    margin: 0 10px 0 0;
    border: 1px solid var(--transparent);
    border-radius: 100px;
    transition: .1s ease-in-out all;
}
.small-nav__pills .btn {
    font-size: 1.2rem;
    margin: 0;
    padding: .5rem 1rem !important;
    border-radius: 10rem;
    max-width: 19rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.small-nav__pills.bgclass.active{
    border: 1px solid rgb(174 164 164 / 50%);
    box-shadow: rgb(0 0 0 / 49%) -4px 9px 8px -6px;
    border-radius: 100px;
}
.small-nav__pills.bgclass.active:hover {
    box-shadow: rgb(0 0 0 / 19%) 0px 0px 0px 0px;
}
/* End filter pills */

.site-breadcrumbs,
.site-breadcrumbs .link,
.site-breadcrumbs .breadcrumbs__navs
{
    display: flex;
    align-items: center;
}
.site-breadcrumbs svg,
.site-breadcrumbs img{
    width: 1rem;
    height: 1rem;
    fill: currentColor;
    object-fit: contain;
}
.site-breadcrumbs .breadcrumbs__navs{
    flex-wrap: wrap;
    gap: 1rem;
}
.site-breadcrumbs .link{
    color: var(--bg-dark-80);
    font-size: 1.4rem;
    gap: .5rem;
    padding: 0;
    border: none;
}
.site-breadcrumbs .link a{
    text-decoration: none;
}
.site-breadcrumbs .link[is-clickable] a{
    color: var(--dark-50);
}
.site-breadcrumbs .go-back{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 3rem;
    color: var(--black);
    background-color: var(--white);
    cursor: pointer;
    padding: .5rem 1.5rem;
    border: .1rem solid var(--bg-site-grey);
    border-radius: .4rem;
}

/* ================================================================
 * V3 DASHBOARD — All styles prefixed v3- to avoid conflicts
 * ================================================================ */

/* ── V3 SIDEBAR ─────────────────────────────────────────────── */
.v3-sidebar {
    background: #111318;
    border-radius: 14px;
    padding: 8px 8px 4px;
    position: sticky;
    top: 16px;
    display: flex;
    flex-direction: column;
    min-height: 520px;
}

.v3-nav-section { padding: 14px 4px 4px; }

.v3-nav-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #2d3345;
    padding: 0 8px;
    margin-bottom: 4px;
}

.v3-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }

.v3-nav-list li a,
.v3-nav-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #8b92a5;
    font-size: 13px;
    font-weight: 500;
    transition: all .14s ease;
}
.v3-nav-link:hover,
.v3-nav-list li a:hover { background: rgba(255,255,255,.05); color: #c9cdd8; text-decoration: none; }

.v3-nav-list li.v3-on a,
.v3-nav-list li.v3-on .v3-nav-link { background: rgba(255,255,255,.08); color: #ffffff; font-weight: 600; }
.v3-nav-list li.v3-on .v3-ni { opacity: 1; color: #f5a623; }

.v3-ni { width: 15px; height: 15px; flex-shrink: 0; opacity: .5; }
.v3-nav-link:hover .v3-ni { opacity: .8; }
.v3-nav-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.v3-nav-badge {
    margin-left: auto;
    font-size: 10px; font-weight: 700;
    background: rgba(245,166,35,.2); color: #f5a623;
    padding: 1px 7px; border-radius: 100px; min-width: 18px; text-align: center;
}

.v3-nav-sep { height: 1px; background: rgba(255,255,255,.05); margin: 6px 10px; }

/* user profile at bottom of sidebar */
.v3-nav-user-wrap { margin-top: auto; border-top: 1px solid rgba(255,255,255,.05); padding: 10px 4px 4px; }
.v3-nav-user {
    display: flex; align-items: center; gap: 9px;
    padding: 8px 10px; border-radius: 8px;
    text-decoration: none; cursor: default;
}
.v3-nav-avatar {
    width: 30px; height: 30px; border-radius: 7px; flex-shrink: 0;
    background: linear-gradient(135deg,#f5a623,#ef6820);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; color: #111;
}
.v3-nav-uname { font-size: 12px; font-weight: 600; color: #d1d5db; }
.v3-nav-uid   { font-size: 11px; color: #4b5563; }
.v3-nav-caret { margin-left: auto; color: #2d3345; }
.v3-nav-user-info { flex: 1; min-width: 0; }

/* user action icon buttons (settings + logout) */
.v3-nav-user-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-shrink: 0; }
.v3-nav-act-btn {
    width: 26px; height: 26px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: #3b4152; text-decoration: none; transition: all .13s;
}
.v3-nav-act-btn svg { width: 13px; height: 13px; }
.v3-nav-act-btn:hover { background: rgba(255,255,255,.08); color: #9ca3af; text-decoration: none; }
.v3-nav-act-logout:hover { background: rgba(232,64,64,.12) !important; color: #e84040 !important; }

/* logout icon: hidden by default, shown in v4-shell */
.v4-sb-logout-icon { display: none; }
.v4-shell .v4-sb-logout-icon { display: flex; }

/* sidebar responsive: horizontal tabs on mobile */
@media (max-width: 991px) {
    .v3-sidebar {
        min-height: auto;
        border-radius: 10px;
        margin-bottom: 16px;
        padding: 6px 8px;
        position: static;
    }
    .v3-nav-section { padding: 4px 0; }
    .v3-nav-label { display: none; }
    .v3-nav-sep { display: none; }
    .v3-nav-list { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; scrollbar-width: none; }
    .v3-nav-list::-webkit-scrollbar { display: none; }
    .v3-nav-list li { flex-shrink: 0; }
    .v3-nav-text { display: none; }
    .v3-nav-link, .v3-nav-list li a { padding: 8px 10px; gap: 0; }
    .v3-ni { width: 18px; height: 18px; opacity: .6; }
    .v3-nav-user-wrap { display: none; }
}

/* ── V3 HERO BANNER ─────────────────────────────────────────── */
.v3-hero {
    background: linear-gradient(160deg, #0c1221 0%, #111d35 60%, #0f1e2e 100%);
    border-radius: 20px;
    padding: 22px 20px 18px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.v3-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 10% 0%, rgba(249,193,44,.12) 0%, transparent 50%),
                radial-gradient(ellipse at 90% 80%, rgba(79,70,229,.10) 0%, transparent 50%);
    pointer-events: none;
}
/* Greeting section */
.v3-hero-left { position: relative; z-index: 1; margin-bottom: 18px; }
.v3-hero-greeting {
    font-size: 13px; font-weight: 500;
    color: #94a3b8; letter-spacing: .01em;
    margin-bottom: 6px;
}
.v3-hero-name {
    font-size: 26px; font-weight: 800;
    color: #ffffff; letter-spacing: -.5px; line-height: 1.1;
    margin-bottom: 8px;
}
.v3-hero-sub { font-size: 11.5px; color: #475569; }
.v3-hero-sub span { color: #64748b; }

/* Stats — always 2×2 grid */
.v3-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: relative; z-index: 1;
}
.v3-hstat-div { display: none; }

.v3-hstat {
    display: flex; flex-direction: column; align-items: flex-start;
    padding: 14px 14px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.08);
    text-decoration: none; color: inherit;
    transition: background .15s, border-color .15s;
    cursor: pointer; position: relative; overflow: hidden;
}
.v3-hstat::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 2.5px; border-radius: 14px 14px 0 0;
    background: rgba(255,255,255,.12);
}
.v3-hstat:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.14); text-decoration: none; }
.v3-hstat-urgent { border-color: rgba(239,68,68,.25); background: rgba(239,68,68,.07); }
.v3-hstat-urgent::after { background: #ef4444; opacity: .7; }

.v3-hstat-num {
    font-size: 30px; font-weight: 800;
    line-height: 1; letter-spacing: -1.5px;
    color: #ffffff; margin-bottom: 5px;
}
.v3-num-red   { color: #f87171; }
.v3-num-blue  { color: #60a5fa; }
.v3-num-green { color: #34d399; }

.v3-hstat-lbl {
    font-size: 11px; font-weight: 500;
    color: #64748b; margin-bottom: 10px; line-height: 1.3;
}
.v3-hstat-cta {
    display: inline-flex; align-items: center;
    font-size: 11px; font-weight: 600;
    padding: 3px 10px; border-radius: 100px;
    margin-top: auto;
}
.v3-cta-r  { background: rgba(239,68,68,.18);  color: #f87171; }
.v3-cta-b  { background: rgba(59,130,246,.18); color: #60a5fa; }
.v3-cta-g  { background: rgba(52,211,153,.15); color: #34d399; }
.v3-cta-w  { background: rgba(255,255,255,.09); color: #94a3b8; }
.v3-cta-ok { background: rgba(52,211,153,.12); color: #34d399; }

/* Colored top accent per stat type */
.v3-hstat-urgent::after                          { background: #f87171; opacity: .8; }
.v3-hstat:nth-child(3)::after                   { background: #60a5fa; opacity: .6; }
.v3-hstat:nth-child(5)::after                   { background: #34d399; opacity: .6; }
.v3-hstat:nth-child(7)::after                   { background: #a78bfa; opacity: .5; }

@media (max-width: 1200px) {
    .v3-hero-stats { grid-template-columns: 1fr 1fr; }
}

/* ── V3 ACTIVITY STRIP ──────────────────────────────────────── */
.v3-activity-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
/* Financial-only strip — 2 cards, capped width so they don't stretch full row */
.v3-fin-strip {
    grid-template-columns: repeat(2, minmax(0, 320px));
}
.v3-act-card {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    padding: 16px;
    transition: box-shadow .15s;
}
.v3-act-card:hover { box-shadow: 0 4px 8px rgba(16,24,40,.08); }

.v3-act-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.v3-act-icon {
    width: 30px; height: 30px; border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
}
.v3-act-icon svg { width: 14px; height: 14px; }
.v3-ai-r { background: #fef2f2; color: #ef4444; }
.v3-ai-b { background: #eff6ff; color: #3b82f6; }
.v3-ai-g { background: #f0fdf4; color: #22c55e; }
.v3-ai-a { background: #fffbeb; color: #f59e0b; }

.v3-trend {
    font-size: 11px; font-weight: 600;
    padding: 2px 7px; border-radius: 100px;
}
.v3-trend-alert { background: #fef2f2; color: #ef4444; }
.v3-trend-ok    { background: #f0fdf4; color: #16a34a; }
.v3-trend-flat  { background: #f1f5f9; color: #64748b; }

.v3-act-val { font-size: 22px; font-weight: 800; color: #101828; letter-spacing: -.5px; }
.v3-act-val-sm { font-size: 16px; letter-spacing: -.3px; }
.v3-act-lbl { font-size: 12px; color: #98a2b3; font-weight: 500; margin-top: 2px; }

/* sparkbars */
.v3-sparkbar {
    display: flex; gap: 2px; align-items: flex-end;
    height: 26px; margin-top: 10px;
}
.v3-sb { border-radius: 2px; flex: 1; transition: opacity .15s; }
.v3-sb:hover { opacity: .7; }
.v3-sb-r { background: rgba(239,68,56,.22); }
.v3-sb-b { background: rgba(59,130,246,.22); }
.v3-sb-g { background: rgba(34,197,106,.22); }
.v3-sb-a { background: rgba(245,158,11,.22); }
.v3-sb-r.v3-sb-last { background: #ef4444; }
.v3-sb-b.v3-sb-last { background: #3b82f6; }
.v3-sb-g.v3-sb-last { background: #22c55e; }
.v3-sb-a.v3-sb-last { background: #f59e0b; }

@media (max-width: 991px) {
    .v3-activity-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .v3-activity-strip { grid-template-columns: 1fr; }
}

/* ── V3 MAIN GRID ───────────────────────────────────────────── */
.v3-main-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 16px;
    margin-bottom: 16px;
}
@media (max-width: 1100px) { .v3-main-grid { grid-template-columns: 1fr; } }

/* ── V3 CARD BASE ───────────────────────────────────────────── */
.v3-card {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16,24,40,.04);
    margin-bottom: 16px;
}
.v3-card-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px 13px;
    border-bottom: 1px solid #f2f4f7;
}
.v3-card-title { font-size: 14px; font-weight: 700; color: #101828; }
.v3-card-sub   { font-size: 11.5px; color: #98a2b3; margin-top: 1px; }
.v3-card-action {
    display: flex; align-items: center; gap: 4px;
    font-size: 12px; font-weight: 500; color: #98a2b3;
    text-decoration: none; padding: 4px 10px;
    border-radius: 8px; border: 1px solid #e4e7ec;
    transition: all .14s;
}
.v3-card-action:hover { background: #f1f5f9; color: #101828; text-decoration: none; }

/* ── V3 TABLE ───────────────────────────────────────────────── */
.v3-table-wrap { overflow-x: auto; }
.v3-table { width: 100%; border-collapse: collapse; }
.v3-table th {
    padding: 9px 16px; text-align: left;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .07em;
    color: #98a2b3; background: #fafafa;
    border-bottom: 1px solid #e4e7ec; white-space: nowrap;
}
.v3-table td {
    padding: 13px 16px;
    border-bottom: 1px solid #f2f4f7;
    font-size: 13px; vertical-align: middle;
}
.v3-table tr:last-child td { border-bottom: none; }
.v3-table tbody tr { transition: background .1s; }
.v3-table tbody tr:hover td { background: #fafafa; }

.v3-tid {
    font-family: 'SF Mono','Fira Mono','Courier New', monospace;
    font-size: 11.5px; font-weight: 600;
    background: #f2f4f7; padding: 3px 7px;
    border-radius: 5px; color: #101828; white-space: nowrap;
}
.v3-rname  { font-weight: 500; color: #101828; }
.v3-rphone { font-size: 11.5px; color: #98a2b3; margin-top: 1px; }
.v3-fw6    { font-weight: 600; color: #101828; }
.v3-muted  { font-size: 12px; color: #98a2b3; white-space: nowrap; }

.v3-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11.5px; font-weight: 600;
    padding: 3px 10px; border-radius: 100px; white-space: nowrap;
}
.v3-badge::before {
    content: ''; width: 5px; height: 5px;
    border-radius: 50%; background: currentColor; flex-shrink: 0;
}
.v3-badge-pending    { background: #fffbeb; color: #b45309; }
.v3-badge-processing { background: #f5f3ff; color: #6d28d9; }
.v3-badge-transit    { background: #eff6ff; color: #1d4ed8; }
.v3-badge-delivered  { background: #f0fdf4; color: #15803d; }
.v3-badge-hold       { background: #fefce8; color: #a16207; }
.v3-badge-cancelled  { background: #fef2f2; color: #b91c1c; }
.v3-badge-returned   { background: #fff7ed; color: #c2410c; }

.v3-row-btn {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; font-weight: 500; color: #98a2b3;
    border: none; background: none; cursor: pointer;
    padding: 4px 8px; border-radius: 6px; font-family: inherit;
    text-decoration: none; transition: all .14s;
}
.v3-row-btn:hover { background: #f1f5f9; color: #101828; text-decoration: none; }

/* empty state */
.v3-empty { padding: 40px 24px; text-align: center; }
.v3-empty-icon {
    width: 52px; height: 52px; margin: 0 auto 14px;
    border-radius: 12px; background: #f1f5f9;
    display: flex; align-items: center; justify-content: center;
}
.v3-empty-icon svg { width: 24px; height: 24px; color: #98a2b3; }
.v3-empty-title { font-size: 15px; font-weight: 700; color: #101828; margin-bottom: 4px; }
.v3-empty-sub   { font-size: 13px; color: #98a2b3; margin-bottom: 16px; }
.v3-btn-primary {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px; background: #111318; color: #ffffff;
    border: none; border-radius: 8px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    text-decoration: none; transition: opacity .15s; font-family: inherit;
}
.v3-btn-primary:hover { opacity: .85; text-decoration: none; color: #ffffff; }

/* ── V3 RIGHT PANEL ─────────────────────────────────────────── */
.v3-right-panel { display: flex; flex-direction: column; gap: 0; }

/* ── Announcements ── */
.v3-ann-new-badge {
    font-size: 11px; font-weight: 700;
    background: #eff6ff; color: #2563eb;
    padding: 3px 10px; border-radius: 100px;
    border: 1px solid #bfdbfe;
}
.v3-ann-body { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.v3-ann-item {
    padding: 13px 14px; border-radius: 12px;
    border: 1px solid #e4e7ec; background: #fafafa;
    position: relative; transition: box-shadow .14s, border-color .14s;
}
.v3-ann-item:hover { box-shadow: 0 2px 8px rgba(16,24,40,.08); }

/* Colored card backgrounds by announcement type */
.v3-ann-item:has(.v3-at-blue)   { background: #eff6ff; border-color: #bfdbfe; }
.v3-ann-item:has(.v3-at-green)  { background: #f0fdf4; border-color: #bbf7d0; }
.v3-ann-item:has(.v3-at-purple) { background: #f5f3ff; border-color: #ddd6fe; }
.v3-ann-item:has(.v3-at-teal)   { background: #f0fdfa; border-color: #99f6e4; }
.v3-ann-item:has(.v3-at-amber)  { background: #fffbeb; border-color: #fde68a; }

/* Type label */
.v3-ann-type {
    font-size: 10px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .08em;
    display: flex; align-items: center; gap: 5px;
    margin-bottom: 6px;
}
.v3-ann-type::before {
    content: ''; width: 5px; height: 5px;
    border-radius: 50%; background: currentColor; flex-shrink: 0;
}
.v3-at-blue   { color: #2563eb; }
.v3-at-green  { color: #16a34a; }
.v3-at-purple { color: #7c3aed; }
.v3-at-teal   { color: #0d9488; }
.v3-at-amber  { color: #d97706; }
.v3-at-gray   { color: #6b7280; }

.v3-ann-title { font-size: 13.5px; font-weight: 700; color: #101828; padding-right: 22px; margin-bottom: 4px; line-height: 1.35; }
.v3-ann-desc  { font-size: 12px; color: #64748b; line-height: 1.5; }
.v3-ann-link  {
    display: inline-block; margin-top: 8px;
    font-size: 12px; font-weight: 600;
    color: #2563eb; text-decoration: none;
}
.v3-ann-link:hover { text-decoration: underline; }
.v3-ann-dismiss {
    position: absolute; top: 10px; right: 10px;
    width: 20px; height: 20px; border-radius: 6px;
    border: none; background: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: #94a3b8; transition: background .12s, color .12s;
    line-height: 1;
}
.v3-ann-dismiss:hover { background: rgba(0,0,0,.06); color: #374151; }

/* ── Quick Actions — 2×2 card grid ── */
.v3-qa-body {
    padding: 12px 14px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.v3-qa-item {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 12px;
    padding: 16px 14px 14px;
    border-radius: 14px;
    border: 1px solid #e8edf2;
    background: #fff;
    text-decoration: none; color: inherit;
    transition: box-shadow .15s, border-color .15s;
    cursor: pointer;
}
.v3-qa-item:hover {
    border-color: #c9d1db;
    box-shadow: 0 4px 14px rgba(16,24,40,.08);
    text-decoration: none;
}
.v3-qa-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.v3-qa-icon svg { width: 20px; height: 20px; }
.v3-qi-amber  { background: #fef3c7; color: #d97706; }
.v3-qi-blue   { background: #e0e7ff; color: #4338ca; }
.v3-qi-green  { background: #dcfce7; color: #16a34a; }
.v3-qi-purple { background: #ede9fe; color: #7c3aed; }
.v3-qa-label  { font-size: 13.5px; font-weight: 700; color: #101828; line-height: 1.3; }
.v3-qa-desc   { font-size: 11.5px; color: #98a2b3; margin-top: 2px; line-height: 1.4; }
.v3-qa-arrow  { display: none; }

/* ── V3 APP TOPBAR ───────────────────────────────────────────── */
/* Replaces the floating site header for all authenticated pages   */
.v3-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 56px;
    background: #0d0f12;
    border-bottom: 1px solid rgba(255,255,255,.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    z-index: 1040;
}
.v3-tb-logo { display: flex; align-items: center; text-decoration: none; }
.v3-tb-logo-img { height: 34px; width: auto; display: block; }
.v3-tb-right { display: flex; align-items: center; gap: 14px; }
.v3-tb-uid { font-size: 11.5px; color: #3b4152; font-family: monospace; letter-spacing: .04em; }
.v3-tb-logout {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 500; color: #6b7280;
    text-decoration: none;
    padding: 6px 11px; border-radius: 7px;
    border: 1px solid rgba(255,255,255,.07);
    transition: all .15s ease;
}
.v3-tb-logout svg { width: 14px; height: 14px; flex-shrink: 0; }
.v3-tb-logout:hover { background: rgba(232,64,64,.1); border-color: rgba(232,64,64,.25); color: #e84040; text-decoration: none; }

/* Body padding when the topbar is active */
body.v3-app { padding-top: 56px !important; background: #f3f4f6 !important; }

/* Mobile: topbar stays full-width, just less padding */
@media (max-width: 576px) {
    .v3-topbar { padding: 0 14px; }
    .v3-tb-uid  { display: none; }
}

/* ================================================================
 * V4 APP SHELL — full-viewport integrated layout
 * Covers the entire viewport (z-index > v3-topbar 1040) so the
 * floating site header and footer are hidden behind the shell.
 * ================================================================ */
.v4-shell {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    z-index: 1100;
    background: #f0f2f5;
}

/* ── Sidebar container ───────────────────────── */
.v4-sidebar-wrap {
    width: 220px; min-width: 220px; height: 100%;
    overflow-y: auto; overflow-x: hidden;
    display: flex; flex-direction: column;
    scrollbar-width: none;
    background: #111318;
}
.v4-sidebar-wrap::-webkit-scrollbar { display: none; }

/* Override v3-sidebar when inside v4-shell */
.v4-shell .v3-sidebar {
    flex: 1; border-radius: 0; position: static;
    min-height: 100%; padding: 0 8px 8px;
}

/* ── Logo: hidden by default, shown only in v4-shell ─── */
.v4-sb-logo { display: none; }

.v4-shell .v4-sb-logo {
    display: flex; align-items: center; gap: 10px;
    padding: 17px 16px 15px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    text-decoration: none; flex-shrink: 0;
}
.v4-sb-logo-img { height: 36px; width: auto; display: block; object-fit: contain; }

/* ── Main content area ───────────────────────── */
/* v4-main is the scroll container.
   min-height:0 prevents the flex item from growing beyond 100vh.
   Children get flex-shrink:0 so they overflow and trigger the scrollbar
   instead of being compressed by the flex layout. */
.v4-main { flex: 1; min-width: 0; min-height: 0; height: 100%; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #d1d5db transparent; }
.v4-main > * { flex-shrink: 0; }
.v4-main::-webkit-scrollbar { width: 5px; }
.v4-main::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

/* ── Page header bar ─────────────────────────── */
.v4-ph {
    background: #fff; border-bottom: 1px solid #e5e7eb;
    padding: 0 24px; height: 52px;
    display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
    position: sticky; top: 0; z-index: 100;
}
.v4-ph-bc { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #9ca3af; }
.v4-ph-bc strong { color: #111827; font-weight: 600; font-size: 13px; }
.v4-ph-bc svg { width: 11px; height: 11px; }
.v4-ph-actions { display: flex; align-items: center; gap: 10px; }
.v4-ph-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 7px;
    font-size: 12.5px; font-weight: 600; text-decoration: none;
    background: #f5a623; color: #111318; border: none; cursor: pointer;
    transition: background .13s;
}
.v4-ph-btn:hover { background: #e09716; text-decoration: none; color: #111318; }
.v4-ph-btn svg { width: 12px; height: 12px; }

/* ── Scrollable page body (dashboard only) ───── */
.v4-page-body { flex: 1; padding: 20px 24px 32px; }

/* ── Tablet (768px – 991px): keep horizontal tab bar ─────── */
@media (max-width: 991px) {
    .v4-shell { flex-direction: column; }
    .v4-sidebar-wrap { width: 100%; min-width: unset; height: auto; overflow: visible; }
    .v4-shell .v3-sidebar { min-height: auto; flex: none; }
    .v4-page-body { padding: 14px 16px 24px; }
}

/* ── Mobile header + bottom nav: hidden on desktop ─────────── */
.v4-mob-header { display: none; }
.v4-mob-nav    { display: none; }
.v4-mob-ham    { display: none; }

/* ── Slide-out drawer: always in DOM, off-screen until opened ── */
.v4-mob-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 3998;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.v4-mob-drawer {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 285px;
    background: #fff;
    z-index: 3999;
    transform: translateX(-100%);
    transition: transform .27s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 6px 0 28px rgba(0,0,0,.14);
}
body.v4-dr-open .v4-mob-overlay { display: block; }
body.v4-dr-open .v4-mob-drawer  { transform: translateX(0); }

/* Drawer header */
.v4-dr-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f1f3;
    flex-shrink: 0;
    background: #fff;
}
.v4-dr-logo  { height: 26px; width: auto; }
.v4-dr-close {
    width: 30px; height: 30px; border-radius: 8px;
    background: #f3f4f6; border: none; padding: 0;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #6b7280;
    -webkit-tap-highlight-color: transparent;
}
.v4-dr-close svg { width: 14px; height: 14px; }

/* Drawer nav */
.v4-dr-nav    { flex: 1; overflow-y: auto; padding: 10px 8px; }
.v4-dr-section { margin-bottom: 18px; }
.v4-dr-label  {
    display: block; font-size: 10px; font-weight: 700;
    color: #b0b7c3; text-transform: uppercase; letter-spacing: .07em;
    padding: 0 10px 6px;
}
.v4-dr-item {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 12px; border-radius: 9px;
    font-size: 13.5px; font-weight: 500; color: #374151;
    text-decoration: none;
    transition: background .12s;
    position: relative;
}
.v4-dr-item svg      { width: 17px; height: 17px; flex-shrink: 0; color: #9ca3af; }
.v4-dr-item:hover    { background: #f9fafb; color: #111827; }
.v4-dr-item.v4-dr-on { background: rgba(245,166,35,.1); color: #e69510; }
.v4-dr-item.v4-dr-on svg { color: #f5a623; }
.v4-dr-badge {
    margin-left: auto;
    min-width: 18px; height: 18px; border-radius: 9px;
    background: #ef4444; color: #fff;
    font-size: 9px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}

/* Drawer footer */
.v4-dr-foot   { border-top: 1px solid #f0f1f3; padding: 14px 16px 20px; flex-shrink: 0; }
.v4-dr-user   { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.v4-dr-avatar {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg,#f5a623,#ef6820);
    color: #fff; font-size: 12px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; letter-spacing: .02em;
}
.v4-dr-uname  { font-size: 13px; font-weight: 600; color: #111827; line-height: 1.3; }
.v4-dr-uid    { font-size: 11px; color: #9ca3af; }
.v4-dr-logout {
    display: flex; align-items: center; gap: 9px;
    padding: 10px 14px; border-radius: 9px;
    font-size: 13.5px; font-weight: 600; color: #ef4444;
    text-decoration: none;
    background: rgba(239,68,68,.06);
    transition: background .12s;
    -webkit-tap-highlight-color: transparent;
}
.v4-dr-logout:hover { background: rgba(239,68,68,.12); color: #ef4444; }
.v4-dr-logout svg   { width: 17px; height: 17px; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════
   MOBILE (≤767px) — bottom nav replaces sidebar entirely
══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

    /* Hide sidebar, restore row direction so v4-main fills width */
    .v4-sidebar-wrap { display: none !important; }
    .v4-shell { flex-direction: row !important; }

    /* Room for fixed bottom nav */
    .v4-main { padding-bottom: 80px !important; }

    /* ── Mobile header: [☰] [LOGO centered] [avatar] ── */
    .v4-mob-header {
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
        padding: 0 10px;
        height: 56px;
        background: #fff;
        flex-shrink: 0;
        position: sticky;
        top: 0;
        z-index: 200;
        border-bottom: 1px solid rgba(0,0,0,.07);
        box-shadow: 0 1px 8px rgba(0,0,0,.05);
    }
    /* Hamburger — left column */
    .v4-mob-ham {
        display: flex; align-items: center; justify-content: center;
        width: 36px; height: 36px; border-radius: 10px;
        background: transparent; border: none; padding: 0;
        color: #374151; cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: background .12s;
        justify-self: start;
    }
    .v4-mob-ham:active { background: rgba(0,0,0,.06); }
    .v4-mob-ham svg { width: 20px; height: 20px; }
    /* Logo — center column, truly centered */
    .v4-mob-logo {
        height: 30px; width: auto;
        max-width: 110px;
        object-fit: contain;
        justify-self: center;
    }
    /* Avatar — right column */
    .v4-mob-avatar-btn {
        width: 34px; height: 34px; border-radius: 50%;
        background: #4f46e5; border: none;
        display: flex; align-items: center; justify-content: center;
        font-size: 12px; font-weight: 700; color: #fff;
        cursor: pointer; letter-spacing: 0;
        -webkit-tap-highlight-color: transparent;
        transition: opacity .12s;
        justify-self: end;
    }
    .v4-mob-avatar-btn:active { opacity: .8; }

    /* ── Fixed bottom nav bar — frosted glass ── */
    .v4-mob-nav {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: rgba(255,255,255,.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(0,0,0,.06);
        box-shadow: 0 -4px 24px rgba(0,0,0,.07);
        z-index: 2000;
        align-items: stretch;
        justify-content: space-around;
        padding: 6px 4px calc(env(safe-area-inset-bottom, 0px) + 10px);
    }

    /* Nav item */
    .v4-mn-item {
        flex: 1;
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
        text-decoration: none; position: relative;
        padding: 6px 0 4px;
        -webkit-tap-highlight-color: transparent;
        transition: transform .1s;
    }
    .v4-mn-item:active { transform: scale(.88); }

    .v4-mn-item svg {
        width: 22px; height: 22px;
        color: #adb5c3; transition: color .15s;
    }
    /* Brand logo image (Home tab) */
    .v4-mn-logo-img {
        width: 24px; height: 24px;
        border-radius: 6px;
        object-fit: contain;
        opacity: 0.4;
        filter: grayscale(1);
        transition: opacity .18s, filter .18s;
    }
    /* Notification dot */
    .v4-mn-notif {
        position: absolute; top: 1px; right: 3px;
        width: 7px; height: 7px; border-radius: 50%;
        background: #ef4444; border: 1.5px solid #fff;
    }
    /* Badge count */
    .v4-mn-badge {
        position: absolute; top: 2px; right: calc(50% - 26px);
        min-width: 16px; height: 16px; border-radius: 8px;
        background: #ef4444; color: #fff;
        font-size: 8px; font-weight: 800;
        display: flex; align-items: center; justify-content: center;
        border: 2px solid #fff;
        padding: 0 3px;
    }
    .v4-mn-text {
        font-size: 10px; font-weight: 500;
        color: #adb5c3; transition: color .15s; line-height: 1;
        letter-spacing: 0.01em;
    }

    /* No top-bar indicator — replaced by icon pill */
    .v4-mn-item::before { display: none; }

    /* Icon pill container */
    .v4-mn-icon {
        width: 44px; height: 30px;
        display: flex; align-items: center; justify-content: center;
        border-radius: 12px;
        transition: background .18s;
        position: relative;
    }

    /* Active state — indigo pill */
    .v4-mn-item.v4-mn-on .v4-mn-icon { background: rgba(79,70,229,.10); }
    .v4-mn-item.v4-mn-on svg          { color: #4f46e5; stroke-width: 2.2; }
    .v4-mn-item.v4-mn-on .v4-mn-text  { color: #4f46e5; font-weight: 700; }
    .v4-mn-item.v4-mn-on .v4-mn-logo-img { opacity: 1; filter: none; }

    /* CTA button (New Order) — raised FAB with white ring */
    .v4-mn-cta { padding-top: 0; margin-top: -18px; }
    .v4-mn-cta::before { display: none !important; }
    .v4-mn-cta .v4-mn-icon {
        width: 52px; height: 52px;
        background: linear-gradient(135deg, #F9C12C 0%, #f0a800 100%);
        border-radius: 18px;
        border: 3px solid #fff;
        box-shadow: 0 6px 20px rgba(249,193,44,.45), 0 2px 8px rgba(0,0,0,.12);
        transition: transform .15s, box-shadow .15s;
    }
    .v4-mn-cta:active .v4-mn-icon {
        transform: scale(.86);
        box-shadow: 0 2px 10px rgba(249,193,44,.35);
    }
    .v4-mn-cta svg         { color: #1a1a1a !important; width: 24px; height: 24px; stroke-width: 2.5; }
    .v4-mn-cta .v4-mn-text { color: #94a3b8 !important; font-weight: 600; margin-top: 4px; }

    /* ── Page header: hidden on mobile ── */
    .v4-ph { display: none !important; }

    /* ── Page body padding — more breathing room than 12px ── */
    .v4-page-body { padding: 14px 14px 28px !important; }

    /* ── Page header: show only title, hide breadcrumb prefix on mobile ── */
    .v4-ph-bc > *:not(strong) { display: none; }
    .v4-ph-bc strong { font-size: 14px; font-weight: 700; color: #111827; }

    /* ── Tables: horizontal scroll on mobile ── */
    .v4-main .se_box          { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .v4-main .table-wrap      { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .v4-main .se_box table    { min-width: 560px; }
    .v3-table-wrap            { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .v3-table th, .v3-table td { font-size: 11px; padding: 8px 10px; }

    /* ── Container padding ── */
    .v4-main > section.container,
    .v4-main > div.container,
    .v4-main section.container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    /* ── Remove hero-wrapper top padding inside v4-shell (no fixed navbar inside app) ── */
    .v4-main .hero-wrapper   { padding-top: 0 !important; }
    .v4-main .hero           { padding-top: 0 !important; }
    .v4-main section.hero    { padding-top: 0 !important; padding-bottom: 0 !important; }

    /* ════════════════════════════════════════════════
       DASHBOARD — v3 components
    ════════════════════════════════════════════════ */

    /* Hero banner */
    .v3-hero { padding: 16px; border-radius: 12px; }
    .v3-hero-greeting { font-size: 17px; }
    .v3-hero-sub      { font-size: 12px; }
    .v3-hero-stats    { overflow-x: auto; margin-top: 10px; gap: 8px; width: 100%; padding-bottom: 6px; }
    .v3-hstat         { min-width: 96px; padding: 10px 14px; border-radius: 10px; }
    .v3-hstat-div     { display: none; }
    .v3-hstat-num     { font-size: 20px; }
    .v3-hstat-lbl     { font-size: 10px; }
    .v3-hstat-cta     { font-size: 10px; padding: 2px 7px; }

    /* Activity strip — already 1-col at 575px; make 2-col from 576-767px */
    .v3-activity-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .v3-act-card       { padding: 14px; }
    .v3-act-val        { font-size: 20px; }
    .v3-act-lbl        { font-size: 11px; }

    /* Cards */
    .v3-card-head   { padding: 12px 14px; }
    .v3-card-title  { font-size: 13px; }
    .v3-card-action { font-size: 11px; padding: 3px 8px; }

    /* Recent shipments table in dashboard */
    .v3-table th  { font-size: 10px; padding: 8px 10px; }
    .v3-table td  { font-size: 11.5px; padding: 9px 10px; }

    /* Announcement items */
    .v3-ann-body  { font-size: 12.5px; }
    .v3-ann-title { font-size: 13px; }

    /* ════════════════════════════════════════════════
       ORDER FORM — os-* accordion (no mobile CSS existed)
    ════════════════════════════════════════════════ */

    .os-page-header   { max-width: 100%; margin-bottom: 14px; padding: 0; }
    .os-page-header h1 { font-size: 22px; margin-bottom: 6px; }
    .os-page-header p  { font-size: 13px; max-width: 100%; }

    .os-accordion     { max-width: 100%; margin-bottom: 100px; }
    .os-step          { margin-bottom: 8px; border-radius: 10px; }

    /* Step header */
    .os-step-header   { padding: 14px 16px; gap: 10px; }
    .os-badge         { width: 28px; height: 28px; font-size: 12px; border-radius: 7px; }
    .os-step-title    { font-size: 14px; }
    .os-step-summary  { font-size: 11px; }
    .os-edit-btn      { font-size: 10px; padding: 3px 8px; border-radius: 5px; }
    .os-chevron       { width: 16px; height: 16px; flex-shrink: 0; }

    /* Step body — reduce the 24px sides to 14px */
    .os-step-body     { padding: 0 14px 18px; }

    /* Quote / rate step page header */
    .qs-page-header   { padding: 14px 0 12px; }
    .qs-page-header h1 { font-size: 22px; margin-bottom: 6px; }
    .qs-page-header p  { font-size: 13px; }
    .qs-accordion     { max-width: 100%; }

    /* ════════════════════════════════════════════════
       SETTINGS / PROFILE pages (uses Bootstrap grid)
    ════════════════════════════════════════════════ */

    /* Make all se_box cards full-width and comfortable on mobile */
    .se_box { padding: 16px; margin-bottom: 16px; }

    /* Form labels and inputs on mobile */
    .v4-main label { font-size: 13px; }
    .v4-main input[type="text"],
    .v4-main input[type="email"],
    .v4-main input[type="tel"],
    .v4-main input[type="number"],
    .v4-main input[type="password"],
    .v4-main select,
    .v4-main textarea {
        font-size: 16px !important; /* prevents iOS auto-zoom on focus */
        border-radius: 8px;
    }

    /* ════════════════════════════════════════════════
       SHIPMENTS page — Tailwind-based
       (overflow-x-auto already on table wrapper)
    ════════════════════════════════════════════════ */

    /* ══════════════════════════════════════════════════════
       FILTER PILL ROWS — single-row horizontal scroll
       Two patterns exist across the app:
         1. Tailwind  →  div.flex.flex-wrap.gap-3   (user views)
         2. Bootstrap →  .small-pills__parent        (filter/* components)
       !important is required on Tailwind targets: the CDN
       injects utility styles via JS *after* <link> stylesheets.
    ══════════════════════════════════════════════════════ */

    /* ── 1. Tailwind pill rows ── */
    .v4-main .flex.flex-wrap {
        flex-wrap:  nowrap  !important;
        overflow-x: auto   !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px !important;
        padding-bottom: 6px;
    }
    .v4-main .flex.flex-wrap::-webkit-scrollbar { display: none; }
    .v4-main .flex.flex-wrap > * { flex-shrink: 0 !important; }

    /* ── 2. Bootstrap pill rows ── */
    .small-pills__parent {
        flex-wrap:  nowrap  !important;
        overflow-x: auto   !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 6px;
    }
    .small-pills__parent::-webkit-scrollbar { display: none; }
    .small-nav__pills { flex-shrink: 0 !important; }

    /* ── Tighten the filter card padding on mobile ── */
    .v4-main .rounded-2xl.p-5  { padding: 12px !important; }
    .v4-main .rounded-2xl.mb-6 { margin-bottom: 12px !important; }

    /* ── Hide decorative "Filter by Status" heading row ──
       Saves ~56px; pill labels are self-explanatory on mobile */
    .v4-main .flex.items-center.gap-3.mb-4 { display: none !important; }
}

/* ── Restore 1-col activity strip on very small screens ─────────────
   The max-width:767px block above forces 2-col; re-override at ≤480px
   (existing ≤575px rule at line 668 was defined earlier and gets
   overridden by the later 767px block — this restores the intent).   */
@media (max-width: 480px) {
    .v3-activity-strip { grid-template-columns: 1fr !important; }
}


/* ── Inner-page layout compat: pages using col-lg-3/col-lg-9 ────────────
   The layout now provides the sidebar. Hide the injected col-lg-3 nav
   column and expand col-lg-9 to fill the full main area.
───────────────────────────────────────────────────────────────────────── */
.v4-main .row > .col-lg-3:first-child { display: none !important; }
.v4-main .col-lg-9 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Reset top margin on any container immediately inside v4-main (works for mt-35, mt-80, etc.) */
.v4-main > section.container,
.v4-main > div.container,
.v4-main section.container { margin-top: 0 !important; padding-top: 24px !important; padding-bottom: 32px !important; }


/* ══════════════════════════════════════════════════════════════════════
   QUOTE PAGE — 3-step accordion  (.qs-*)
══════════════════════════════════════════════════════════════════════ */

.qs-page-header { padding: 24px 0 20px; max-width:900px; margin-left:auto; margin-right:auto; }
.qs-page-header h1 { font-family:'Poppins',sans-serif; font-size:30px; font-weight:700; color:#1e1e1e; margin:15px 0 5px; line-height:1.3; }
.qs-page-header p  { font-size:14px; color:#666; margin:0; line-height:1.6; max-width:820px; }

.qs-accordion { display:flex; flex-direction:column; gap:10px; max-width:900px; margin:0 auto 48px; }

/* ── Step 3 footer: info notes + back button ───────────────────────── */
.qs-rate-footer { margin-top:24px; }
.qs-rate-footer .info_reset {
    display:block;
    padding:16px 20px;
    margin-bottom:16px;
    border-radius:8px;
}
.qs-rate-footer .info_reset ul {
    margin:0;
    padding-left:22px;
    list-style-type:disc;
}
.qs-rate-footer .info_reset ul li { margin-bottom:4px; font-size:13px; }

/* ── Check-error (JS validation messages) inside accordion ─────────── */
.qs-step-body .check-error { width:100%; margin-bottom:8px; }

/* ── Step card ─────────────────────────────────────────────────────── */
.qs-step {
    background:#fff;
    border-radius:12px;
    border:1px solid #e8eaed;
    border-left:4px solid #e0e0e0;
    box-shadow:0 1px 4px rgba(0,0,0,.05);
    transition:border-color .25s, box-shadow .25s;
    overflow:hidden;
}
.qs-step--active    { border-left-color:#f5a623; box-shadow:0 4px 20px rgba(245,166,35,.13); }
.qs-step--completed { border-left-color:#22c55e; }
.qs-step--pending   { opacity:.55; pointer-events:none; }

/* ── Header ────────────────────────────────────────────────────────── */
.qs-step-header {
    display:flex; align-items:center; gap:14px;
    padding:16px 20px;
    cursor:default; user-select:none;
}
.qs-step--completed .qs-step-header { cursor:pointer; }
.qs-step--completed .qs-step-header:hover { background:#fafafa; }

/* ── Badge ─────────────────────────────────────────────────────────── */
.qs-badge {
    width:34px; height:34px; border-radius:50%; flex-shrink:0;
    display:flex; align-items:center; justify-content:center;
    font-size:13px; font-weight:700;
    background:#f0f0f0; color:#aaa;
    transition:background .25s, color .25s;
}
.qs-step--active    .qs-badge { background:#f5a623; color:#fff; }
.qs-step--completed .qs-badge { background:#22c55e; color:#fff; }

.qs-badge .badge-check { display:none; }
.qs-badge .badge-num   { display:block; }
.qs-step--completed .qs-badge .badge-check { display:block; font-size:16px; line-height:1; }
.qs-step--completed .qs-badge .badge-num   { display:none; }

/* ── Step info ─────────────────────────────────────────────────────── */
.qs-step-info  { flex:1; min-width:0; }
.qs-step-title { font-size:14px; font-weight:700; color:#1e1e1e; display:block; }
.qs-step-summary {
    font-size:12px; color:#6b7280; display:none;
    margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.qs-step--completed .qs-step-summary { display:block; }

/* ── Edit button ───────────────────────────────────────────────────── */
.qs-edit-btn {
    display:none;
    font-size:12px; font-weight:600; color:#f5a623;
    background:rgba(245,166,35,.10); border:1px solid rgba(245,166,35,.30);
    border-radius:20px; padding:4px 14px; line-height:1.5;
    cursor:pointer; flex-shrink:0;
    transition:background .2s;
}
.qs-edit-btn:hover { background:rgba(245,166,35,.22); }
.qs-step--completed .qs-edit-btn { display:inline-flex; }

/* ── Chevron ───────────────────────────────────────────────────────── */
.qs-chevron {
    width:18px; height:18px; color:#b0b0b0; flex-shrink:0;
    transition:transform .25s; display:none;
}
.qs-step--completed .qs-chevron { display:block; }
.qs-step--open .qs-chevron { transform:rotate(180deg); }

/* ── Body ──────────────────────────────────────────────────────────── */
.qs-step-body { padding:0 24px 24px; display:none; }
.qs-step--active .qs-step-body,
.qs-step--completed.qs-step--open .qs-step-body { display:block; }

/* ── Inner form overrides inside accordion ─────────────────────────── */
.qs-step .form-control { background-color:#fffcfc !important; border-color:#b5beb5 !important; }
.qs-step .card  { border:1px solid #f0f0f0; box-shadow:none; border-radius:8px; }
.qs-step .form.card { margin-bottom:0; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width:768px) {
    .qs-step-summary { display:none !important; }
    .qs-step-body  { padding:0 16px 20px; }
    .qs-step-header { padding:14px 16px; gap:10px; }
    .qs-page-header h1 { font-size:22px; }
    .qs-page-header { padding:16px 0 14px; }
}


/* ══════════════════════════════════════════════════════════════════════
   RATE CARDS  (.rc-*)  — replaces old rate_wrapper / rate_wrapper_bottom
══════════════════════════════════════════════════════════════════════ */

/* Override bloated rate_card defaults when paired with rc-card */
.rc-card.rate_card {
    padding:0; margin:0 0 16px;
    border:1px solid #e8eaed; border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,.06);
    overflow:hidden;
}

/* ── 4-column grid ─────────────────────────────────────────────────── */
.rc-grid {
    display:grid;
    grid-template-columns: 1.3fr 1.3fr 1fr auto;
    align-items:center;
    padding:20px 24px;
    gap:0;
}
.rc-col { padding:0 20px; }
.rc-col:first-child { padding-left:0; }
.rc-col--action    { padding-right:0; }
.rc-col + .rc-col  { border-left:1px solid #f0f0f0; }

/* ── Labels & values ───────────────────────────────────────────────── */
.rc-label {
    font-size:11px; font-weight:800; text-transform:uppercase;
    letter-spacing:.05em; color:#9ca3af; margin:0 0 3px;
}
.rc-mt     { margin-top:14px; }
.rc-muted  { color:#9ca3af; font-size:12px; }
.rc-value  { display:block; font-size:13px; font-weight:500; color:#1e1e1e; }

/* ── Courier logo ──────────────────────────────────────────────────── */
.rc-logo { margin-bottom:10px; }
.rc-logo img { height:28px; width:auto; max-width:90px; object-fit:contain; }

/* ── Price amounts ─────────────────────────────────────────────────── */
.rc-amount { display:block; font-size:15px; font-weight:800; color:#1e1e1e; }
.rc-amount--green {
    display:inline-block; background:#22c55e; color:#fff;
    padding:4px 12px; border-radius:4px; font-size:14px; font-weight:700;
}

/* ── Action button ─────────────────────────────────────────────────── */
.rc-book-btn {
    background:#f5a623 !important; border-color:#f5a623 !important;
    color:#fff !important; border-radius:8px !important;
    padding:10px 18px; font-weight:600; white-space:nowrap;
    font-size:13px; line-height:1.4;
}
.rc-book-btn:hover { background:#e09400 !important; border-color:#e09400 !important; }

/* ── B2B discount breakdown ────────────────────────────────────────── */
.rc-amount--strike { display:block; font-size:12px; font-weight:500; color:#9ca3af; text-decoration:line-through; margin-bottom:1px; }
.rc-discount-badge { margin-top:10px; padding:6px 10px; background:#f0fdf4; border:1px solid #bbf7d0; border-radius:6px; }
.rc-disc-label { display:block; font-size:11px; font-weight:700; color:#15803d; }
.rc-disc-saving { display:block; font-size:11px; color:#16a34a; margin-top:2px; }

/* ── Services bar ──────────────────────────────────────────────────── */
.rc-services { border-top:1px solid #f0f0f0; padding:10px 24px; }
.rc-services ul {
    display:flex; flex-wrap:wrap; justify-content:center;
    gap:6px 20px; margin:0; padding:0; list-style:none;
}
.rc-services ul li {
    font-size:12px; color:#374151;
    display:flex; align-items:center; gap:4px;
}
.rc-services ul li svg,
.rc-services ul li img { width:14px; height:14px; flex-shrink:0; }
.rc-services ul li.prohibited { color:var(--bg-danger,#dc3545); }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width:768px) {
    .rc-grid { grid-template-columns:1fr 1fr; padding:16px; }
    .rc-col--arrival  { padding-left:0; }
    .rc-col--courier  { border-left:none; padding-right:0; }
    .rc-col--price    { grid-column:1; border-left:none; border-top:1px solid #f0f0f0; padding:14px 0 0; margin-top:10px; }
    .rc-col--action   { grid-column:2; border-left:none; border-top:1px solid #f0f0f0; padding:14px 0 0; text-align:center; }
}
@media (max-width:480px) {
    .rc-grid { grid-template-columns:1fr; }
    .rc-col + .rc-col { border-left:none; border-top:1px solid #f0f0f0; padding:12px 0 0; margin-top:6px; }
    .rc-col--price, .rc-col--action { grid-column:auto; }
    .rc-book-btn { width:100%; text-align:center; }
}

/* ══════════════════════════════════════════════════════════════════
   Order Accordion  (.os-*)
   ══════════════════════════════════════════════════════════════════ */

.os-page-header {
    max-width: 860px;
    margin: 0 auto 24px;
}
.os-page-header h1 {
    font-size: 30px;
    font-weight: 700;
    margin: 15px 0 5px;
    color: #1a1a2e;
}
.os-page-header p {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px;
    max-width: 820px;
}

.os-accordion {
    max-width: 860px;
    margin: 0 auto 60px;
}

/* ── Step card ──────────────────────────────────────────────────── */
.os-step {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 4px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: border-color .2s;
    position: relative;
}
.os-step--active    { border-left-color: #ff9500; }
.os-step--completed { border-left-color: #28a745; }
.os-step--pending   { opacity: .55; pointer-events: none; }

/* ── Header ─────────────────────────────────────────────────────── */
.os-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: default;
    user-select: none;
}
.os-step--completed .os-step-header { cursor: pointer; }

/* ── Badge ──────────────────────────────────────────────────────── */
.os-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}
.os-step--active    .os-badge { background: #ff9500; color: #fff; }
.os-step--completed .os-badge { background: #28a745; color: #fff; }
.os-badge .badge-num   { display: block; }
.os-badge .badge-check { display: none;  }
.os-step--completed .os-badge .badge-num   { display: none;  }
.os-step--completed .os-badge .badge-check { display: block; }

/* ── Info ───────────────────────────────────────────────────────── */
.os-step-info { flex: 1; min-width: 0; }
.os-step-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    display: block;
}
.os-step-summary {
    font-size: 12px;
    color: #888;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Edit button ────────────────────────────────────────────────── */
.os-edit-btn {
    display: none;
    background: none;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color .15s, color .15s;
}
.os-edit-btn:hover { border-color: #ff9500; color: #ff9500; }
.os-step--completed .os-edit-btn { display: block; }

/* ── Chevron ────────────────────────────────────────────────────── */
.os-chevron {
    width: 18px;
    height: 18px;
    stroke: #aaa;
    flex-shrink: 0;
    transition: transform .25s;
}
.os-step--active .os-chevron,
.os-step--open   .os-chevron { transform: rotate(180deg); }

/* ── Body ───────────────────────────────────────────────────────── */
.os-step-body {
    display: none;
    padding: 0 24px 24px;
    border-top: 1px solid #f0f0f0;
}
.os-step--active                .os-step-body { display: block; }
.os-step--completed.os-step--open .os-step-body { display: block; }

/* ── Rate footer (step 3) ───────────────────────────────────────── */
.os-rate-footer { margin-top: 20px; }
.os-rate-footer .info_reset.bottom {
    position: static !important;
    padding: 0 !important;
    margin-bottom: 12px;
}

/* ── Hide old navigator ─────────────────────────────────────────── */
.shipping_navigator { display: none !important; }
