/* Shared visual system. Screen-only rules leave invoices and receipts to their print layouts. */
@media screen {
    :root, body.se-admin-shell {
        --se-nav-width: 264px;
        --se-nav-rail: 76px;
        --se-ink: #18283f;
        --se-muted: #64748b;
        --se-line: #e2e8f0;
        --se-blue: #2563eb;
        --se-cyan: #22d3ee;
        --se-teal: #087f75;
        --ims-bg: #f4f7fb;
        --ims-surface: #fff;
        --ims-surface-soft: #f0f5fc;
        --ims-text: var(--se-ink);
        --ims-muted: var(--se-muted);
        --ims-primary: var(--se-blue);
        --ims-primary-strong: #1d4ed8;
        --ims-primary-soft: #edf3ff;
        --ims-accent: var(--se-teal);
        --ims-border: var(--se-line);
        --ims-shadow: 0 4px 24px #18283f06;
        --ims-shell: #0d192e;
        --ims-shell-strong: #0a1426;
    }
    body.se-admin-shell {
        background: var(--ims-bg) !important;
        color: var(--se-ink) !important;
        font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
        font-size: 13px;
        line-height: 1.55;
        -webkit-font-smoothing: antialiased;
    }
    body.se-admin-shell :is(h1,h2,h3,h4,h5,h6) { color: var(--se-ink); letter-spacing: -.025em; }
    body.se-admin-shell :is(button,input,select,textarea) { font-family: inherit; }
    body.se-admin-shell :is(a,button,input,select,textarea,[tabindex]):focus-visible {
        outline: 3px solid #0284c7 !important;
        outline-offset: 3px;
    }
    body.se-admin-shell [hidden] { display: none !important; }
    .se-skip-link { position: fixed; top: -100px; left: 16px; z-index: 12000; padding: 12px 20px; border-radius: 8px; background: #fff; color: #1d4ed8; font-weight: 700; }
    .se-skip-link:focus { top: 12px; }

    /* Navigation: stable brand and account regions, independently scrolling pages. */
    body.se-admin-shell .pcoded-navbar.se-navigation {
        top: 0 !important;
        left: 0;
        width: var(--se-nav-width) !important;
        height: 100vh !important;
        height: 100dvh !important;
        margin: 0 !important;
        background: radial-gradient(ellipse at 0 0, #1b3355 0, transparent 45%), linear-gradient(180deg, #101e34, #0a1426) !important;
        border: 0 !important;
        border-right: 1px solid #ffffff0c !important;
        box-shadow: 6px 0 28px #0a14260b !important;
        z-index: 1040;
        transition: width .2s ease, transform .2s ease;
    }
    body.se-admin-shell .se-navigation .navbar-wrapper { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
    body.se-admin-shell .se-navigation .navbar-content {
        flex: 1 1 auto;
        height: auto !important;
        padding: 0 0 18px;
        scrollbar-color: #334561 transparent;
    }
    body.se-admin-shell .se-navigation .navbar-content::-webkit-scrollbar-thumb { background: #334561; }
    body.se-admin-shell .se-nav-brand { display: flex; align-items: center; gap: 12px; min-height: 85px; padding: 20px 22px; color: #fff; text-decoration: none; flex-shrink: 0; }
    .se-nav-brand-mark { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border: 1px solid #67e8f94a; border-radius: 12px; background: linear-gradient(135deg, #2563eb, #0891b2); box-shadow: 0 4px 18px #22d3ee20, inset 0 1px 0 #ffffff40; color: #fff; font-size: 21px; }
    .se-nav-brand-mark > svg { display: block; width: 38px; height: 38px; }
    .se-nav-brand-copy { min-width: 0; }
    .se-nav-brand-copy strong { display: block; font-size: 15px; line-height: 1.35; font-weight: 750; letter-spacing: -.3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    body.se-admin-shell .se-nav-brand-copy small { display: block; color: #9bafcb !important; font-size: 10px; margin-top: 4px; letter-spacing: .2px; }
    .se-nav-workspace { display: flex; align-items: center; gap: 10px; padding: 12px; margin: 2px 16px 16px; border: 1px solid #ffffff12; border-radius: 12px; background: #ffffff05; flex-shrink: 0; }
    .se-nav-workspace-icon { display: grid; place-items: center; height: 32px; width: 32px; flex-shrink: 0; background: #ffffff09; color: #b1c5e0; border-radius: 8px; font-size: 15px; }
    .se-nav-workspace > span:nth-child(2) { min-width: 0; }
    body.se-admin-shell .se-nav-workspace small { display: block; font-size: 8px; font-weight: 650; letter-spacing: 1.25px; color: #95a9c5 !important; }
    .se-nav-workspace strong { display: block; font-size: 12px; font-weight: 600; color: #eef5ff; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .se-nav-workspace-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; margin-left: auto; background: #5eead4; box-shadow: 0 0 0 4px #5eead410; }
    .se-nav-search { display: flex; align-items: center; gap: 8px; margin: 0 16px 9px; padding: 0 11px; height: 37px; flex-shrink: 0; border: 1px solid #ffffff16; border-radius: 8px; background: #030b1726; color: #a0b4cf; }
    .se-nav-search:focus-within { border-color: #67e8f9; box-shadow: 0 0 0 2px #22d3ee16; }
    .se-nav-search input { width: 100%; min-width: 0; padding: 0; background: transparent; border: 0; color: #edf5ff; font-size: 11px; outline: none !important; box-shadow: none; }
    .se-nav-search input::placeholder { color: #98abc5; opacity: 1; }
    .se-nav-search kbd { background: #ffffff06; border: 1px solid #ffffff20; color: #a4b4cb; font: 10px/1.5 ui-monospace, monospace; padding: 0 5px; border-radius: 3px; }
    body.se-admin-shell .se-navigation .se-nav-list { display: block; padding: 0 12px; width: 100%; }
    body.se-admin-shell .se-navigation .se-nav-caption { padding: 19px 13px 7px; line-height: 1; }
    .se-nav-caption span { font-size: 9px; color: #90a5c2; font-weight: 650; letter-spacing: 1.35px; text-transform: uppercase; }
    body.se-admin-shell .se-navigation .se-nav-item { position: relative; margin: 3px 0; padding: 0; border: 0; background: transparent !important; }
    body.se-admin-shell .se-navigation .se-nav-item::before { display: none; }
    body.se-admin-shell .se-navigation .se-nav-item > .se-nav-link {
        display: flex !important; align-items: center; gap: 10px;
        position: relative; width: 100%; min-height: 42px; margin: 0 !important; padding: 9px 12px !important;
        background: transparent !important; border: 1px solid transparent !important; border-radius: 8px !important;
        color: #b6c5da !important; font: inherit; font-size: 12px; text-align: left; cursor: pointer; text-decoration: none;
        transition: background .15s, color .15s; transform: none !important;
    }
    body.se-admin-shell .se-navigation .se-nav-link .pcoded-micon { display: grid; place-items: center; width: 20px; height: 20px; margin: 0; padding: 0; flex-shrink: 0; background: transparent !important; font-size: 16px; border-radius: 0; }
    body.se-admin-shell .se-navigation.menu-light .se-nav-list .se-nav-link :is(.pcoded-mtext,.pcoded-micon i) { color: inherit !important; font-weight: 500 !important; }
    body.se-admin-shell .se-navigation .se-nav-link .pcoded-mtext { min-width: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    body.se-admin-shell .se-navigation .se-nav-item > .se-nav-link:hover { background: #ffffff09 !important; color: #fff !important; }
    body.se-admin-shell .se-navigation .se-nav-item.active > .se-nav-link { color: #fff !important; background: linear-gradient(100deg, #2563eb42, #0891b21c) !important; border-color: #60a5fa29 !important; box-shadow: inset 3px 0 0 #38bdf8; }
    body.se-admin-shell .se-navigation .se-nav-item.active > .se-nav-link .pcoded-micon { color: #67e8f9 !important; }
    .se-nav-chevron { margin-left: auto; font-size: 12px; opacity: .7; transition: transform .2s; }
    .se-nav-link[aria-expanded=true] .se-nav-chevron { transform: rotate(180deg); }
    .se-nav-count { font-size: 9px; font-weight: 700; padding: 1px 6px; border-radius: 5px; color: #fecdd3; background: #fb718526; margin-left: auto; }
    body.se-admin-shell .se-navigation .se-nav-submenu { display: none !important; margin: 5px 0 9px 22px !important; padding: 3px 0 3px 14px !important; background: transparent !important; border: 0 !important; border-left: 1px solid #ffffff14 !important; border-radius: 0 !important; }
    body.se-admin-shell .se-navigation .se-nav-item.pcoded-trigger > .se-nav-submenu { display: block !important; }
    body.se-admin-shell .se-navigation.menu-light .se-nav-submenu li a { display: block; margin: 1px 0 !important; padding: 8px 10px !important; border-radius: 6px !important; background: transparent; font-size: 11px; font-weight: 450 !important; color: #a3b5ce !important; text-decoration: none; }
    body.se-admin-shell .se-navigation .se-nav-submenu li a::before { display: none; }
    body.se-admin-shell .se-navigation.menu-light .se-nav-submenu li.active > a,
    body.se-admin-shell .se-navigation.menu-light .se-nav-submenu li a:hover { background: #ffffff08 !important; color: #a5f3fc !important; }
    .se-nav-empty { padding: 28px 20px; color: #dce8f8; font-size: 12px; text-align: center; }
    body.se-admin-shell .se-nav-empty small { display: block; color: #a3b5ce !important; margin-top: 6px; }
    .se-nav-footer { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-top: 1px solid #ffffff0e; background: #07101e40; flex-shrink: 0; }
    .se-nav-footer-avatar { width: 33px; height: 33px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid #93c5fd30; border-radius: 10px; color: #bfdbfe; background: #1e3a5f; font-size: 13px; font-weight: 650; }
    .se-nav-footer-copy { min-width: 0; }
    .se-nav-footer-copy strong { display: block; color: #e7effa; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    body.se-admin-shell .se-nav-footer-copy small { display: block; color: #8da3c0 !important; font-size: 9px; margin-top: 3px; }
    .se-nav-signout { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; margin-left: auto; color: #a3b5ce; border-radius: 7px; }
    .se-nav-signout:hover { background: #fb71851a; color: #fda4af; }

    /* Header and workspace geometry. */
    body.se-admin-shell .pcoded-header.se-shell-topbar {
        left: var(--se-nav-width); width: calc(100% - var(--se-nav-width)); min-height: 92px;
        margin: 0 !important; padding: 16px 28px; gap: 22px; flex-wrap: nowrap;
        background: radial-gradient(ellipse at 85% 0, #164e6352, transparent 60%), linear-gradient(110deg, #101e34, #142943) !important;
        border-bottom: 1px solid #ffffff16 !important; box-shadow: 0 4px 20px #101e3410 !important;
        color: #e7effc; transition: left .2s, width .2s;
    }
    body.se-admin-shell .pcoded-header.se-shell-topbar::after { content: ''; position: absolute; inset: auto 0 -1px; height: 2px; background: linear-gradient(90deg, #2563eb00, #38bdf86b 30%, #22d3ee40 70%, #22d3ee00); pointer-events: none; }
    body.se-admin-shell .pcoded-header.se-shell-topbar .feather { color: inherit !important; }
    body.se-admin-shell .pcoded-header.se-shell-topbar .se-shell-actions { height: auto; }
    body.se-admin-shell .pcoded-header.se-shell-topbar .se-shell-actions > li { padding: 0; line-height: 1.4; }
    .se-nav-close { display: none; }
    .se-topbar-leading { display: flex; align-items: center; gap: 14px; min-width: 0; }
    .se-menu-toggle { display: grid; place-items: center; width: 36px; height: 38px; flex-shrink: 0; border: 1px solid #ffffff20; border-radius: 10px; background: #ffffff06; color: #b5c8e2; cursor: pointer; font-size: 17px; }
    .se-menu-toggle:hover { color: #a5f3fc; background: #ffffff10; border-color: #67e8f94d; }
    .se-header-emblem { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border: 1px solid #67e8f933; border-radius: 12px; color: #a5f3fc; background: linear-gradient(140deg, #2563eb35, #0891b21f); box-shadow: inset 0 1px 0 #ffffff0c; font-size: 19px; }
    body.se-admin-shell .se-shell-heading { display: flex !important; flex-direction: column; margin: 0; min-width: 0; }
    body.se-admin-shell .se-header-label { display: flex; align-items: center; gap: 6px; max-width: 230px; margin-bottom: 3px; color: #a5b9d5 !important; font-size: 10px; font-weight: 450; letter-spacing: .15px; opacity: 1; white-space: nowrap; }
    .se-header-label > span:last-child { overflow: hidden; text-overflow: ellipsis; }
    .se-header-label i { font-size: 9px; opacity: .6; flex-shrink: 0; }
    body.se-admin-shell .se-shell-heading strong { color: #f0f6ff !important; font-size: 21px; line-height: 1.3; font-weight: 650; letter-spacing: -.6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 250px; }
    body.se-admin-shell .se-shell-search { flex: 1; min-width: 140px; max-width: 350px; margin: 0 auto; align-items: center; color: #b5c8e2; }
    body.se-admin-shell .se-shell-search > i { color: #a5b9d5 !important; position: absolute; left: 14px; font-size: 15px; }
    body.se-admin-shell .se-shell-search input { height: 43px; padding: 0 88px 0 39px; border: 1px solid #ffffff20 !important; border-radius: 10px; background: #030d1d26 !important; color: #eff6ff !important; font-size: 11px; box-shadow: inset 0 1px 3px #00000008; }
    body.se-admin-shell .se-shell-search input::placeholder { color: #a5b9d5; opacity: 1; }
    body.se-admin-shell .se-shell-search input:focus { border-color: #67e8f980 !important; background: #030d1d40 !important; }
    body.se-admin-shell .se-shell-search button { top: 6px; right: 6px; height: 31px; padding: 0 10px; background: #ffffff0c !important; color: #d8e8fc !important; border: 1px solid #ffffff14; border-radius: 6px; font-size: 10px; box-shadow: none !important; }
    body.se-admin-shell .se-shell-search button:hover { background: #ffffff18 !important; }
    body.se-admin-shell .se-shell-actions { display: flex; flex-direction: row; gap: 16px; align-items: center; flex-shrink: 0; }
    body.se-admin-shell .se-header-date { align-items: center; padding: 0; background: none !important; border: 0 !important; gap: 9px; color: #d5e4f8 !important; font-size: 11px; }
    .se-header-date > i { display: grid; place-items: center; width: 31px; height: 34px; background: #ffffff07; border: 1px solid #ffffff12; border-radius: 8px; font-size: 15px; }
    body.se-admin-shell .se-header-date small { display: block; margin-bottom: 3px; color: #a5b9d5 !important; font-size: 8px; letter-spacing: .5px; text-transform: uppercase; }
    .se-header-date time { font-weight: 550; }
    body.se-admin-shell .se-topbar-pos { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 10px 14px !important; border: 1px solid #60a5fa59; border-radius: 9px; background: linear-gradient(115deg, #2563eb, #0369a1); color: #fff !important; font-size: 11px; font-weight: 650; line-height: 1; white-space: nowrap; box-shadow: 0 4px 14px #030d1d26, inset 0 1px 0 #ffffff18; }
    body.se-admin-shell .se-topbar-pos:hover { background: linear-gradient(115deg, #1d4ed8, #075985); border-color: #93c5fd99; }
    .se-header-account .drp-user { border-left: 1px solid #ffffff16; padding-left: 16px; }
    body.se-admin-shell .se-user-chip { display: inline-flex !important; gap: 10px; width: auto !important; padding: 4px 7px !important; min-height: 44px; max-width: 200px; background: #ffffff05 !important; border: 1px solid #ffffff14 !important; border-radius: 10px !important; cursor: pointer; font: inherit; text-align: left; }
    body.se-admin-shell .se-user-chip:hover, body.se-admin-shell .se-user-chip[aria-expanded=true] { background: #ffffff0c !important; border-color: #67e8f940 !important; }
    .se-account-copy { min-width: 0; max-width: 106px; }
    body.se-admin-shell .se-user-chip strong { display: block; color: #eaf2ff !important; font-size: 11px; font-weight: 600; }
    body.se-admin-shell .se-user-chip small { color: #a5b9d5 !important; font-size: 9px; margin-top: 3px; }
    .se-account-avatar { display: grid; place-items: center; flex-shrink: 0; padding: 2px; border: 1px solid #67e8f949; border-radius: 10px; background: #ffffff08; }
    body.se-admin-shell .se-user-chip img { width: 31px; height: 31px; border: 0 !important; border-radius: 7px; }
    .se-account-chevron { font-size: 11px; color: #a5b9d5; }
    body.se-admin-shell .se-user-chip::after { display: none; }
    body.se-admin-shell .pcoded-header.se-shell-topbar .profile-notification { width: 280px; margin-top: 13px; background: #fff !important; border: 1px solid var(--se-line); border-radius: 14px; box-shadow: 0 20px 60px #0a14262b; overflow: hidden; }
    body.se-admin-shell .profile-notification .pro-head { background: linear-gradient(120deg, #eff6ff, #f5fafb) !important; color: #18283f; padding: 19px 20px; border-bottom: 1px solid #e2e8f0; }
    body.se-admin-shell .profile-notification .pro-head .se-account-kicker { display: block; color: #536b89; font-size: 9px; font-weight: 650; letter-spacing: 1.3px; margin-bottom: 8px; }
    body.se-admin-shell .profile-notification .pro-head strong { display: block; color: #18283f; font-size: 14px; font-weight: 650; }
    body.se-admin-shell .profile-notification .pro-head small { display: block; color: #64748b !important; margin-top: 4px; overflow-wrap: anywhere; }
    body.se-admin-shell .profile-notification .pro-body { padding: 7px; }
    body.se-admin-shell .profile-notification .pro-body .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 7px; color: #475569; font-size: 12px; }
    .se-account-link-arrow { margin-left: auto; opacity: .5; font-size: 12px; }
    body.se-admin-shell .profile-notification .pro-body .se-account-signout { border-top: 1px solid #edf1f6; margin-top: 5px; padding-top: 5px; }
    body.se-admin-shell .profile-notification .pro-body .se-account-signout .dropdown-item { color: #ac2648; }
    body.se-admin-shell .profile-notification .pro-body .dropdown-item:hover { background: #eff6ff; color: #1d4ed8; }
    body.se-admin-shell:not(.se-pos-workspace) .pcoded-main-container { display: flex; flex-direction: column; margin-left: var(--se-nav-width) !important; min-height: 100vh; transition: margin-left .2s; }
    body.se-admin-shell:not(.se-pos-workspace) .pcoded-content { flex: 1 0 auto; min-width: 0; padding: 22px 28px 30px !important; }

    /* A single footer keeps branch, session and credits in one deliberate surface. */
    .se-workspace-footer { flex-shrink: 0; margin: 0 28px 24px; overflow: hidden; border: 1px solid #223c5d; border-radius: 15px; background: radial-gradient(ellipse at top right, #164e6338, transparent 65%), #101e34; color: #c1d0e5; box-shadow: 0 5px 18px #0a142609; }
    .se-footer-main { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(0, 2fr) auto; align-items: center; gap: 24px; padding: 20px 24px; }
    .se-footer-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
    .se-footer-mark { display: grid; place-items: center; width: 35px; height: 35px; flex-shrink: 0; border: 1px solid #67e8f92b; border-radius: 10px; background: linear-gradient(135deg, #2563eb30, #0891b21a); color: #a5f3fc; font-size: 19px; }
    .se-footer-mark > svg { display: block; width: 32px; height: 32px; }
    .se-footer-brand > div { min-width: 0; }
    .se-footer-brand strong { display: block; color: #edf5ff; font-size: 12px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
    body.se-admin-shell .se-footer-brand small { display: block; margin-top: 3px; color: #a1b6d1 !important; font-size: 9px; }
    .se-footer-context { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin: 0; min-width: 0; }
    .se-footer-context > div { min-width: 0; padding-left: 16px; border-left: 1px solid #ffffff13; }
    .se-footer-context dt { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; color: #a1b6d1; font-size: 9px; font-weight: 450; }
    .se-footer-context dt i { font-size: 11px; color: #93c5fd; }
    .se-footer-context dd { margin: 0; color: #e0ecfc; font-size: 11px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .se-footer-session { display: inline-flex; align-items: center; gap: 7px; justify-self: end; padding: 7px 10px; color: #a7f3d0; background: #34d3990a; border: 1px solid #34d39926; border-radius: 7px; font-size: 10px; white-space: nowrap; text-decoration: none; }
    .se-footer-session:hover { background: #34d39914; color: #d1fae5; }
    .se-footer-session-dot { width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: #6ee7b7; box-shadow: 0 0 0 3px #34d3990d; }
    .se-footer-session .feather { font-size: 11px; opacity: .8; }
    .se-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 12px 24px; background: #030d1d24; border-top: 1px solid #ffffff0c; }
    .se-footer-bottom p { margin: 0; color: #a1b6d1; font-size: 9px; line-height: 1.7; }
    .se-footer-bottom strong { color: #cbdcf2; font-weight: 550; }

    /* Shared surfaces, controls and semantic colors. */
    body.se-admin-shell :is(.card,.page-header,.modal-content,.ims-hero,.ims-mini-card,.ims-kpi-card,.ims-chart-card,.ims-list-card,.ims-side-card,.catalog-summary-card,.catalog-toolbar,.create-wrap,.edit-wrap,.op-panel,.op-filter,.op-kpi,.sales-metric,.sales-table-card,.products-panel) { border-color: var(--se-line) !important; box-shadow: 0 3px 16px #18283f04 !important; border-radius: 12px !important; }
    body.se-admin-shell .card-header { background: #fff; border-bottom-color: var(--se-line); }
    body.se-admin-shell :is(.card-header.ims-section-head,.ims-list-head,.op-panel-head) { background: linear-gradient(110deg, #f7faff, #fff 75%) !important; border-bottom-color: #e8eef6 !important; }
    body.se-admin-shell :is(.card-header h5,.ims-list-head h5,.page-header-title h3,.page-header-title h5) { font-size: 17px; color: var(--se-ink) !important; font-weight: 650; }
    body.se-admin-shell :is(.text-muted,small) { color: #64748b !important; }
    body.se-admin-shell :is(.form-control,.custom-select,.select2-container--default .select2-selection--single,.select2-container--default .select2-selection--multiple,.dataTables_filter input,.dataTables_length select) { background: #fff !important; border: 1px solid #cbd5e1 !important; border-radius: 7px !important; color: #334155; font-size: 12px; box-shadow: none; }
    body.se-admin-shell .form-control:focus { border-color: #3b82f6 !important; box-shadow: 0 0 0 3px #3b82f619 !important; }
    body.se-admin-shell .form-control:disabled, body.se-admin-shell .form-control[readonly] { background: #f1f5f9 !important; }
    body.se-admin-shell .input-group-text { border-color: #cbd5e1; background: #f8fafc; color: #64748b; }
    body.se-admin-shell .btn { border-radius: 7px !important; font-weight: 600; font-size: 12px; box-shadow: none; transition: background .15s, border-color .15s, box-shadow .15s; }
    body.se-admin-shell :is(.btn-primary,.op-button.primary,.sales-button.primary,.products-button.primary) { background: #2563eb !important; border-color: #2563eb !important; color: #fff !important; box-shadow: 0 3px 8px #2563eb1a !important; }
    body.se-admin-shell :is(.btn-primary,.op-button.primary,.sales-button.primary,.products-button.primary):hover { background: #1d4ed8 !important; border-color: #1d4ed8 !important; }
    body.se-admin-shell .btn-success { background: #087f75 !important; border-color: #087f75 !important; color: #fff !important; }
    body.se-admin-shell .btn-info { background: #0369a1 !important; border-color: #0369a1 !important; color: #fff !important; }
    body.se-admin-shell .btn-danger { background: #be3455 !important; border-color: #be3455 !important; color: #fff !important; }
    body.se-admin-shell .btn-warning { background: #fde7b2 !important; border-color: #f7d582 !important; color: #805113 !important; }
    body.se-admin-shell :is(.btn-secondary,.btn-light) { background: #f1f5f9 !important; border-color: #dbe3ec !important; color: #475569 !important; }
    body.se-admin-shell :is(.btn-outline-primary,.btn-outline-info) { border-color: #bfdbfe !important; color: #1d4ed8 !important; background: #eff6ff !important; }
    body.se-admin-shell :is(.btn-outline-primary,.btn-outline-info):hover { background: #dbeafe !important; }
    body.se-admin-shell .badge { border-radius: 5px; font-weight: 650; }
    body.se-admin-shell :is(.badge-success,.alert-success) { background: #e6f7f0 !important; color: #06705c !important; border-color: #bce8d8; }
    body.se-admin-shell :is(.badge-danger,.alert-danger) { background: #fff0f3 !important; color: #ac2648 !important; border-color: #fecdd8; }
    body.se-admin-shell :is(.badge-warning,.alert-warning) { background: #fff6e3 !important; color: #8b5a13 !important; border-color: #f6dfac; }
    body.se-admin-shell :is(.badge-primary,.badge-info,.alert-info) { background: #edf4ff !important; color: #2455b5 !important; border-color: #c9dcfc; }
    body.se-admin-shell .table thead th { background: #f6f8fc !important; border-bottom: 1px solid var(--se-line) !important; color: #52627a !important; font-weight: 650; font-size: 11px; letter-spacing: .2px; padding-top: 13px; padding-bottom: 13px; }
    body.se-admin-shell .table :is(td,th) { color: #334155 !important; border-color: #e8edf3 !important; }
    body.se-admin-shell .table-hover tbody tr:hover { background: #f7faff !important; }
    body.se-admin-shell .table-striped tbody tr:nth-of-type(odd) { background: #f9fbfd; }
    /* Laravel and DataTables share compact controls that wrap on narrow screens. */
    body.se-admin-shell .pagination { flex-wrap: wrap; gap: 4px; margin-bottom: 0; }
    body.se-admin-shell .pagination .page-link { display: flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; padding: 7px 10px; margin-left: 0; border-color: #e2e8f0; color: #475569; border-radius: 7px; font-size: 13px; line-height: 20px; }
    body.se-admin-shell .page-item.active .page-link { background: #2563eb !important; border-color: #2563eb !important; color: #fff !important; }
    body.se-admin-shell .nav-tabs .nav-link.active { color: #1d4ed8; border-bottom-color: #2563eb; }
    body.se-admin-shell :is(.modal-header,.ims-list-head) { background: #fff !important; border-color: var(--se-line) !important; }

    /* Dashboard, catalog, sales and POS share the same visual language. */
    body.se-admin-shell :is(.op-page,.sales-workspace,.products-workspace) { --op-ink: var(--se-ink); --op-muted: var(--se-muted); --op-line: var(--se-line); --sales-border: var(--se-line); font-family: inherit; }
    body.se-admin-shell .inventory-workspace {
        --ov-ink: #18283f; --ov-ink-2: #415570; --ov-muted: #64748b;
        --ov-border: #e2e8f0; --ov-hair: #edf1f6; --ov-subtle: #f4f7fb;
        --ov-accent: #2563eb; --ov-accent-soft: #edf4ff;
        --ov-good: #087f75; --ov-warning: #c58a23; --ov-critical: #be3455;
        --ov-good-text: #06705c; --ov-warning-text: #8b5a13; --ov-critical-text: #ac2648;
    }
    body.se-admin-shell .ws-hero { background: radial-gradient(ellipse at top right, #0891b24d, transparent 70%), linear-gradient(125deg, #142f56, #1c4b83); }
    body.se-admin-shell .ws-nav a.active { background: #2563eb; border-color: #2563eb; }
    body.se-admin-shell .op-kpi.featured { background: radial-gradient(ellipse at top right, #0891b24d, transparent 70%), linear-gradient(125deg, #142f56, #1c4b83) !important; border: 1px solid #255280 !important; color: #fff; }
    body.se-admin-shell .op-kpi.featured :is(span,small) { color: #d4e8ff !important; }
    body.se-admin-shell .op-kpi.featured .op-icon { color: #a5f3fc !important; background: #67e8f91a; }
    body.se-admin-shell .op-kpi > strong { letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
    body.se-admin-shell .op-track { background: #eaf0f7; }
    body.se-admin-shell .op-track > span { background: linear-gradient(90deg, #2563eb, #0891b2); }
    body.se-admin-shell .op-badge.good { color: #06705c; background: #e6f7f0; }
    body.se-admin-shell .op-badge.warning { color: #8b5a13; background: #fff6e3; }
    body.se-admin-shell .op-badge.danger { color: #ac2648; background: #fff0f3; }
    body.se-admin-shell .op-kpi .op-icon { color: #2563eb; background: #edf4ff; }
    body.se-admin-shell .sales-metric:first-child { border-top: 3px solid #2563eb !important; }
    body.se-admin-shell .sales-metric > strong { font-family: inherit; }
    body.se-admin-shell.se-pos-workspace { background: #f4f7fb !important; }
    body.se-admin-shell .pos-topbar { position: relative; background: radial-gradient(ellipse at top right, #164e6352, transparent 60%), linear-gradient(110deg, #101e34, #142943) !important; border-color: #ffffff16 !important; box-shadow: 0 4px 20px #101e3410; }
    .pos-topbar::after { content: ''; position: absolute; inset: auto 0 0; height: 2px; background: linear-gradient(90deg, transparent, #38bdf86b, #22d3ee40, transparent); pointer-events: none; }
    body.se-admin-shell .pos-brand :is(strong,span), body.se-admin-shell .pos-desk-info > span { color: #e5efff !important; }
    body.se-admin-shell .pos-brand-icon { background: linear-gradient(135deg, #2563eb, #0369a1); color: #fff; border: 1px solid #67e8f940; border-radius: 11px; box-shadow: inset 0 1px 0 #ffffff20; }
    body.se-admin-shell .pos-tool-btn { background: #ffffff08; border-color: #ffffff20; border-radius: 9px; color: #c5d5ec; }
    body.se-admin-shell .pos-tool-btn:hover { background: #ffffff18; color: #fff; }
    body.se-admin-shell .pos-desk-info strong { color: #bfdbfe; }
    body.se-admin-shell :is(.pos-catalog-panel,.pos-cart-panel,.pos-payment-sidebar) { border-color: var(--se-line) !important; border-radius: 12px !important; box-shadow: 0 3px 16px #18283f04 !important; }
    body.se-admin-shell .pos-product-card { border-radius: 10px; border-color: #e2e8f0; }
    body.se-admin-shell .pos-product-card:hover { border-color: #60a5fa; background: #f8fbff; box-shadow: 0 4px 14px #2563eb0d; }
    body.se-admin-shell .pos-payment-tile.active { background: #edf4ff !important; border-color: #93c5fd !important; color: #1d4ed8 !important; }
    body.se-admin-shell :is(.pos-submit,.btn-pos-primary) { background: #2563eb !important; color: #fff !important; border-radius: 8px; }
    body.se-admin-shell :is(.pos-browser-footer,.pos-payment-footer,.pos-review-foot) { background: linear-gradient(120deg, #f4f8ff, #f7fbfc); border-top-color: #dfe8f4; }
    body.se-admin-shell .pos-workspace #storePrintButton { background: linear-gradient(115deg, #2563eb, #0369a1) !important; border: 1px solid #2563eb; border-radius: 9px !important; box-shadow: 0 4px 12px #2563eb1a !important; }

    body.se-customer-theme { --bg: #f4f7fb; --ink: #18283f; --muted: #64748b; --line: #e2e8f0; --brand: #2563eb; --brand-deep: #1d4ed8; --accent: #087f75; --shadow: 0 4px 24px #18283f08; background: #f4f7fb; }
    .se-customer-theme .hero-card { background: radial-gradient(ellipse at top right, #0891b24d, transparent 70%), linear-gradient(125deg, #142f56, #1c4b83); }
    .se-customer-theme :is(.hero-card,.hero-total,.panel,.chip) { border-radius: 16px; border-color: #e2e8f0; }

    /* Account access screens use auth-theme.css; Livewire pages use account-theme.css. */

    @media (min-width: 1200px) {
        body.se-nav-collapsed { --se-nav-width: var(--se-nav-rail); }
        body.se-nav-collapsed .se-navigation .se-nav-brand { padding: 23px 19px; }
        body.se-nav-collapsed :is(.se-nav-brand-copy,.se-nav-workspace,.se-nav-search,.se-nav-footer-copy,.se-nav-signout) { display: none !important; }
        body.se-nav-collapsed .se-navigation .se-nav-list { padding: 0 10px; }
        body.se-nav-collapsed .se-navigation .se-nav-caption { height: 20px; padding: 0; margin: 8px 14px; border-bottom: 1px solid #ffffff13; }
        body.se-nav-collapsed .se-navigation .se-nav-caption span { display: none; }
        body.se-nav-collapsed .se-navigation .se-nav-item > .se-nav-link { justify-content: center; padding: 12px !important; }
        body.se-nav-collapsed .se-navigation .se-nav-link :is(.pcoded-mtext,.se-nav-chevron,.se-nav-count) { display: none; }
        body.se-admin-shell.se-nav-collapsed .se-navigation .se-nav-item > .se-nav-submenu { display: none !important; }
        body.se-nav-collapsed .se-nav-footer { justify-content: center; padding: 16px 10px; }
    }
    @media (min-width: 1200px) and (max-width: 1350px) {
        body.se-admin-shell { --se-nav-width: 240px; }
        body.se-nav-collapsed { --se-nav-width: var(--se-nav-rail); }
        body.se-admin-shell .pcoded-header.se-shell-topbar { gap: 15px; padding-inline: 22px; }
        body.se-admin-shell .se-shell-heading strong { max-width: 180px; font-size: 19px; }
        body.se-admin-shell .se-header-label { max-width: 180px; }
        body.se-admin-shell .se-header-date { display: none !important; }
        body.se-admin-shell .se-shell-actions { gap: 12px; }
        body.se-admin-shell .se-user-chip .se-account-copy { display: none !important; }
    }
    @media (max-width: 1199px) {
        body.se-admin-shell .pcoded-navbar.se-navigation { width: min(290px, 86vw) !important; transform: translateX(-100%); }
        .se-nav-close { display: grid; place-items: center; position: absolute; top: 26px; right: 12px; z-index: 1; width: 30px; height: 30px; color: #b6c5da; background: #ffffff09; border: 1px solid #ffffff16; border-radius: 7px; cursor: pointer; }
        body.se-admin-shell .se-nav-brand { padding-right: 52px; }
        body.se-admin-shell.se-nav-open .pcoded-navbar.se-navigation { transform: translateX(0); }
        body.se-admin-shell.se-nav-open { overflow: hidden; }
        body.se-admin-shell .pcoded-header.se-shell-topbar { left: 0; width: 100%; min-height: 80px; padding: 12px 18px; gap: 12px; }
        body.se-admin-shell:not(.se-pos-workspace) .pcoded-main-container { margin-left: 0 !important; }
        body.se-admin-shell:not(.se-pos-workspace) .pcoded-content { padding: 15px 18px 24px !important; }
        .se-workspace-footer { margin: 0 18px 18px; }
        body.se-admin-shell .se-shell-heading strong { font-size: 19px; max-width: 240px; }
        .se-nav-backdrop { position: fixed; inset: 0; background: #07132199; backdrop-filter: blur(3px); z-index: 1035; border: 0; cursor: pointer; }
    }
    @media (max-width: 767px) {
        .se-footer-main { grid-template-columns: minmax(0,1fr) auto; gap: 20px 16px; padding: 20px; }
        .se-footer-context { grid-column: 1 / -1; order: 3; }
        .se-footer-context > div { padding-left: 12px; }
        .se-footer-context > div:first-child { border-left: 0; padding-left: 0; }
        .se-footer-bottom { padding: 12px 20px; flex-wrap: wrap; gap: 3px 16px; }
        .se-header-emblem { display: none; }
    }
    @media (max-width: 575px) {
        body.se-admin-shell .pcoded-header.se-shell-topbar { padding: 10px 13px; gap: 8px; }
        .se-topbar-leading { gap: 9px; }
        body.se-admin-shell .se-header-label { font-size: 8px; max-width: 155px; gap: 4px; }
        body.se-admin-shell .se-shell-heading strong { font-size: 14px; max-width: 150px; }
        body.se-admin-shell .se-shell-actions { gap: 9px; }
        body.se-admin-shell .se-topbar-pos { min-height: 36px; padding: 10px !important; }
        .se-topbar-pos span { display: none; }
        .se-header-account .drp-user { padding-left: 8px; }
        body.se-admin-shell .se-user-chip { padding: 3px !important; min-height: 36px; }
        body.se-admin-shell .se-user-chip img { width: 27px; height: 27px; }
        .se-account-avatar { padding: 1px; border-radius: 8px; }
        .se-account-chevron { display: none; }
        body.se-admin-shell:not(.se-pos-workspace) .pcoded-content { padding: 10px 12px 20px !important; }
        .se-workspace-footer { margin: 0 12px 16px; border-radius: 12px; }
        .se-footer-main { padding: 17px; }
        .se-footer-context { gap: 9px; }
        .se-footer-context dd { font-size: 10px; }
        .se-footer-context dt { font-size: 8px; }
        .se-footer-brand strong { font-size: 11px; }
        .se-footer-bottom { padding: 12px 17px; }

    }
    @media (prefers-reduced-motion: reduce) {
        body.se-admin-shell *, body.se-admin-shell *::before, body.se-admin-shell *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    }
}
