html,
body {
    min-height: 100%;
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: #f4f7fb;
    color: #101827;
}

* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

a,
button,
label {
    -webkit-tap-highlight-color: transparent;
}

button {
    font-family: inherit;
}

/* Bootstrap / Blazor defaults */

a,
.btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus,
.form-select:focus {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .08);
    border-color: #bfdbfe;
    outline: none;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
    font-size: .82rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZyIgeGxpbmlucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgb3ZlcmZsb3c9ImhpZGRlbiI+PGRlZnM+PGNsaXBQYXRoIGlkPSJjbGlwMCI+PHJlY3QgeD0iMjM1IiB5PSI1MSIgd2lkdGg9IjU2IiBoZWlnaHQ9IjQ5Ii8+PC9jbGlwUGF0aD48L2RlZnM+PGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIzNSAtNTEpIj48cGF0aCBkPSJNMjYzLjUwNiA1MUMyNjQuNzE3IDUxIDI2NS44MTMgNTEuNDgzNyAyNjYuNjA2IDUyLjI2NThMMjY3LjA1MiA1Mi43OTg3IDI2Ny41MzkgNTMuNjI4MyAyOTAuMTg1IDkyLjE4MzEgMjkwLjU0NSA5Mi43OTUgMjkwLjY1NiA5Mi45OTZDMjkwLjg3NyA5My41MTMgMjkxIDk0LjA4MTUgMjkxIDk0LjY3ODIgMjkxIDk3LjA2NTEgMjg5LjAzOCA5OSAyODYuNjE3IDk5TDI0MC4zODMgOTlDMjM3Ljk2MyA5OSAyMzYgOTcuMDY1MSAyMzYgOTQuNjc4MiAyMzYgOTQuMzc5OSAyMzYuMDMxIDk0LjA4ODYgMjM2LjA4OSA5My44MDcyTDIzNi4zMzggOTMuMDE2MiAyMzYuODU4IDkyLjEzMTQgMjU5LjQ3MyA1My42Mjk0IDI1OS45NjEgNTIuNzk4NSAyNjAuNDA3IDUyLjI2NThDMjYxLjIgNTEuNDgzNyAyNjIuMjk2IDUxIDI2My41MDYgNTFaTTI2My41ODYgNjYuMDE4M0MyNjAuNzM3IDY2LjAxODMgMjU5LjMxMyA2Ny4xMjQ1IDI1OS4zMTMgNjkuMzM3IDI1OS4zMTMgNjkuNjEwMiAyNTkuMzMyIDY5Ljg2MDggMjU5LjM3MSA3MC4wODg3TDI2MS43OTUgODQuMDE2MSAyNjUuMzggODQuMDE2MSAyNjcuODIxIDY5Ljc0NzVDMjY3Ljg2IDY5LjczMDkgMjY3Ljg3OSA2OS41ODc3IDI2Ny44NzkgNjkuMzE3OSAyNjcuODc5IDY3LjExODIgMjY2LjQ0OCA2Ni4wMTgzIDI2My41ODYgNjYuMDE4M1pNMjYzLjU3NiA4Ni4wNTQ3QzI2MS4wNDkgODYuMDU0NyAyNTkuNzg2IDg3LjMwMDUgMjU5Ljc4NiA4OS43OTIxIDI1OS43ODYgOTIuMjgzNyAyNjEuMDQ5IDkzLjUyOTUgMjYzLjU3NiA5My41Mjk1IDI2Ni4xMTYgOTMuNTI5NSAyNjcuMzg3IDkyLjI4MzcgMjY3LjM4NyA4OS43OTIxIDI2Ny4zODcgODcuMzAwNSAyNjYuMTE2IDg2LjA1NDcgMjYzLjU3NiA4Ni4wNTQ3WiIgZmlsbD0iI0ZGRTUwMCIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9nPjwvc3ZnPg==) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* POS App Shell */

:root {
    --pos-bg: #f4f7fb;
    --pos-panel: #ffffff;
    --pos-line: #e6edf6;
    --pos-text: #101827;
    --pos-soft: #64748b;
    --pos-muted: #94a3b8;
    --pos-blue: #2563eb;
    --pos-blue-soft: #eef5ff;
    --pos-green: #16a34a;
    --pos-amber: #d97706;
    --pos-red: #dc2626;
    --pos-sidebar-open: 252px;
    --pos-sidebar-closed: 78px;
}

.pos-sidebar-toggle {
    display: none;
}

.pos-shell {
    min-height: 100vh;
    display: flex;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .07), transparent 32%),
        linear-gradient(180deg, #f9fbff 0%, #eef3f8 100%);
}

/* Sidebar */

.pos-sidebar {
    width: var(--pos-sidebar-open);
    min-height: 100vh;
    padding: 16px 12px;
    background: rgba(255, 255, 255, .96);
    border-right: 1px solid var(--pos-line);
    position: sticky;
    top: 0;
    align-self: flex-start;
    z-index: 50;
    overflow: hidden;
    transition: width .22s ease, transform .22s ease;
    box-shadow: 10px 0 28px rgba(15, 23, 42, .045);
}

.pos-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 56px;
    padding: 4px 8px 16px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eef2f7;
}

.pos-brand-logo {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #ffffff;
    font-size: .92rem;
    font-weight: 750;
    box-shadow: 0 12px 24px rgba(37, 99, 235, .18);
}

.pos-brand-text {
    min-width: 0;
    transition: opacity .18s ease, visibility .18s ease;
}

.pos-brand-title {
    color: var(--pos-text);
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

.pos-brand-subtitle {
    margin-top: 3px;
    color: var(--pos-muted);
    font-size: .68rem;
    white-space: nowrap;
}

.pos-sidebar-nav {
    display: grid;
    gap: 4px;
    padding-top: 4px;
}

.pos-nav-section {
    margin: 16px 10px 7px;
    color: var(--pos-blue);
    font-size: .64rem;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: opacity .18s ease, visibility .18s ease;
}

.pos-nav-link {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 11px;
    border-radius: 12px;
    color: #475569;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
    position: relative;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.pos-nav-link:hover {
    background: #f8fafc;
    color: var(--pos-blue);
    transform: translateX(2px);
}

.pos-nav-link.active {
    background: var(--pos-blue-soft);
    color: #0f172a;
}

.pos-nav-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    width: 3px;
    height: 20px;
    border-radius: 999px;
    background: var(--pos-blue);
}

.pos-nav-icon {
    width: 24px;
    min-width: 24px;
    display: inline-flex;
    justify-content: center;
    color: #94a3b8;
    font-size: .98rem;
}

.pos-nav-link:hover .pos-nav-icon,
.pos-nav-link.active .pos-nav-icon {
    color: var(--pos-blue);
}

.pos-nav-text {
    white-space: nowrap;
    transition: opacity .18s ease, visibility .18s ease;
}

.pos-sidebar-card {
    margin-top: 24px;
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc, #eef6ff);
    border: 1px solid #e5eef9;
    display: flex;
    gap: 10px;
    align-items: center;
    transition: opacity .18s ease;
}

.pos-sidebar-card-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 12px;
    background: #ffffff;
    color: var(--pos-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pos-sidebar-card-text {
    transition: opacity .18s ease, visibility .18s ease;
}

.pos-sidebar-card-text strong {
    display: block;
    color: var(--pos-text);
    font-size: .8rem;
}

.pos-sidebar-card-text span {
    display: block;
    margin-top: 2px;
    color: var(--pos-soft);
    font-size: .7rem;
}

/* Main area and header */

.pos-main {
    flex: 1;
    min-width: 0;
}

.pos-topbar {
    min-height: 68px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--pos-line);
}

.pos-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.pos-menu-button {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 12px;
    border: 1px solid var(--pos-line);
    background: #ffffff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .18s ease;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .045);
}

.pos-menu-button:hover {
    color: var(--pos-blue);
    background: #f8fafc;
    transform: translateY(-1px);
}

.pos-topbar-title-wrap {
    min-width: 0;
}

.pos-topbar-title {
    color: var(--pos-text);
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.pos-topbar-subtitle {
    margin-top: 2px;
    color: var(--pos-muted);
    font-size: .7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pos-topbar-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
}

.pos-icon-button,
.pos-logout-button {
    height: 36px;
    border-radius: 11px;
    border: 1px solid var(--pos-line);
    background: #ffffff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .18s ease;
    text-decoration: none;
}

.pos-icon-button {
    width: 36px;
}

.pos-logout-button {
    padding: 0 11px;
    gap: 7px;
    font-size: .76rem;
    font-weight: 650;
    cursor: pointer;
}

.pos-icon-button:hover,
.pos-logout-button:hover {
    background: #f8fafc;
    color: var(--pos-blue);
    transform: translateY(-1px);
}

.pos-user-pill {
    height: 38px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 9px 4px 4px;
    border-radius: 999px;
    border: 1px solid var(--pos-line);
    background: #ffffff;
}

.pos-user-avatar {
    width: 29px;
    height: 29px;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--pos-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .74rem;
    font-weight: 750;
}

.pos-user-text strong {
    display: block;
    color: var(--pos-text);
    font-size: .72rem;
    line-height: 1.1;
}

.pos-user-text span {
    display: block;
    color: var(--pos-muted);
    font-size: .65rem;
    line-height: 1.1;
    margin-top: 2px;
}

.pos-content {
    max-width: 1520px;
    margin: 0 auto;
    padding: 22px 26px 34px;
}

/* Desktop sidebar collapse */

.pos-sidebar-toggle:checked ~ .pos-shell .pos-sidebar {
    width: var(--pos-sidebar-closed);
    padding-left: 12px;
    padding-right: 12px;
}

.pos-sidebar-toggle:checked ~ .pos-shell .pos-brand-text,
.pos-sidebar-toggle:checked ~ .pos-shell .pos-nav-text,
.pos-sidebar-toggle:checked ~ .pos-shell .pos-nav-section,
.pos-sidebar-toggle:checked ~ .pos-shell .pos-sidebar-card-text {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.pos-sidebar-toggle:checked ~ .pos-shell .pos-sidebar-brand {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.pos-sidebar-toggle:checked ~ .pos-shell .pos-nav-link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.pos-sidebar-toggle:checked ~ .pos-shell .pos-nav-link:hover {
    transform: translateX(0);
}

.pos-sidebar-toggle:checked ~ .pos-shell .pos-nav-link.active::before {
    left: -5px;
}

.pos-sidebar-toggle:checked ~ .pos-shell .pos-sidebar-card {
    justify-content: center;
    padding: 11px;
}

/* Mobile sidebar drawer */

.pos-sidebar-backdrop {
    display: none;
}

@media (max-width: 991px) {
    .pos-shell {
        display: block;
    }

    .pos-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: var(--pos-sidebar-open);
        transform: translateX(-105%);
        transition: transform .22s ease;
        z-index: 60;
    }

    .pos-sidebar-toggle:checked ~ .pos-shell .pos-sidebar {
        width: var(--pos-sidebar-open);
        transform: translateX(0);
    }

    .pos-sidebar-toggle:checked ~ .pos-shell .pos-brand-text,
    .pos-sidebar-toggle:checked ~ .pos-shell .pos-nav-text,
    .pos-sidebar-toggle:checked ~ .pos-shell .pos-nav-section,
    .pos-sidebar-toggle:checked ~ .pos-shell .pos-sidebar-card-text {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .pos-sidebar-toggle:checked ~ .pos-shell .pos-sidebar-brand {
        justify-content: flex-start;
        padding-left: 8px;
        padding-right: 8px;
    }

    .pos-sidebar-toggle:checked ~ .pos-shell .pos-nav-link {
        justify-content: flex-start;
        padding-left: 11px;
        padding-right: 11px;
    }

    .pos-sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .38);
        z-index: 55;
    }

    .pos-sidebar-toggle:checked ~ .pos-shell .pos-sidebar-backdrop {
        display: block;
    }

    .pos-topbar {
        padding: 0 16px;
    }

    .pos-content {
        padding: 18px;
    }
}

@media (max-width: 640px) {
    .pos-topbar {
        min-height: 64px;
        padding: 0 12px;
    }

    .pos-topbar-subtitle {
        display: none;
    }

    .pos-user-pill {
        display: none;
    }

    .pos-logout-button span {
        display: none;
    }

    .pos-logout-button {
        width: 36px;
        padding: 0;
    }

    .pos-content {
        padding: 14px;
    }
}
/* ===============================
   POS UI Refresh - Cleaner Shell
   Add at bottom of app.css
   =============================== */

:root {
    --pos-bg: #f6f7f9;
    --pos-panel: #ffffff;
    --pos-panel-soft: #fafafa;
    --pos-line: #e8eaef;
    --pos-line-soft: #f1f2f5;
    --pos-text: #1f2933;
    --pos-heading: #111827;
    --pos-soft: #667085;
    --pos-muted: #98a2b3;
    --pos-blue: #252525;
    --pos-blue-soft: #f3f4f6;
    --pos-green: #8FA6A1;
    --pos-green-soft: #f2f6f5;
    --pos-red: #d92d20;
    --pos-amber: #b7791f;
    --pos-sidebar-open: 268px;
    --pos-sidebar-closed: 76px;
}

html,
body {
    background: var(--pos-bg);
    color: var(--pos-text);
    font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.pos-shell {
    min-height: 100vh;
    display: flex;
    background: radial-gradient(circle at 18% 0%, rgba(143, 166, 161, .16), transparent 28%), linear-gradient(180deg, #ffffff 0%, #f6f7f9 42%, #f3f4f6 100%);
}

/* Sidebar refresh */

.pos-sidebar {
    width: var(--pos-sidebar-open);
    min-height: 100vh;
    padding: 18px 14px;
    background: rgba(255, 255, 255, .92);
    border-right: 1px solid var(--pos-line);
    box-shadow: 8px 0 30px rgba(17, 24, 39, .035);
    backdrop-filter: blur(18px);
}

.pos-sidebar-brand {
    min-height: 58px;
    padding: 5px 8px 18px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--pos-line-soft);
}

.pos-brand-logo {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 15px;
    background: #252525;
    color: #ffffff;
    font-weight: 750;
    box-shadow: 0 14px 26px rgba(17, 24, 39, .14);
}

.pos-brand-title {
    color: var(--pos-heading);
    font-size: .92rem;
    font-weight: 680;
    letter-spacing: -.02em;
}

.pos-brand-subtitle {
    color: var(--pos-muted);
    font-size: .7rem;
}

.pos-nav-section {
    margin: 18px 10px 8px;
    color: var(--pos-muted);
    font-size: .63rem;
    font-weight: 760;
    letter-spacing: .08em;
}

.pos-sidebar-nav {
    gap: 3px;
}

.pos-nav-link {
    height: 41px;
    gap: 12px;
    padding: 0 12px;
    border-radius: 14px;
    color: #667085;
    font-size: .82rem;
    font-weight: 580;
}

    .pos-nav-link:hover {
        background: #f7f7f8;
        color: #252525;
        transform: translateX(0);
    }

    .pos-nav-link.active {
        background: #f2f4f7;
        color: #252525;
        font-weight: 680;
    }

        .pos-nav-link.active::before {
            display: none;
        }

.pos-nav-icon {
    width: 26px;
    min-width: 26px;
    height: 26px;
    border-radius: 10px;
    align-items: center;
    background: transparent;
    color: #98a2b3;
    font-size: .95rem;
}

.pos-nav-link.active .pos-nav-icon {
    background: #ffffff;
    color: #252525;
    box-shadow: 0 8px 16px rgba(17, 24, 39, .055);
}

.pos-nav-link:hover .pos-nav-icon {
    color: #252525;
}

.pos-sidebar-card {
    margin-top: 22px;
    padding: 12px;
    border-radius: 18px;
    background: #f8faf9;
    border: 1px solid #e7eeeb;
    box-shadow: none;
}

.pos-sidebar-card-icon {
    background: #ffffff;
    color: var(--pos-green);
    box-shadow: 0 8px 18px rgba(17, 24, 39, .04);
}

.pos-sidebar-card-text strong {
    font-size: .8rem;
    font-weight: 680;
}

.pos-sidebar-card-text span {
    color: var(--pos-muted);
}

/* Topbar refresh */

.pos-main {
    flex: 1;
    min-width: 0;
}

.pos-topbar {
    min-height: 72px;
    padding: 0 28px;
    background: rgba(255, 255, 255, .78);
    border-bottom: 1px solid var(--pos-line);
    backdrop-filter: blur(18px);
}

.pos-topbar-left {
    gap: 14px;
}

.pos-menu-button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 14px;
    border: 1px solid var(--pos-line);
    background: #ffffff;
    color: #344054;
    box-shadow: 0 8px 20px rgba(17, 24, 39, .04);
}

    .pos-menu-button:hover {
        color: #252525;
        background: #f9fafb;
        transform: translateY(-1px);
    }

.pos-topbar-eyebrow {
    margin-bottom: 2px;
    color: var(--pos-muted);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pos-topbar-title {
    color: var(--pos-heading);
    font-size: .98rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.pos-topbar-subtitle {
    color: var(--pos-muted);
}

.pos-topbar-actions {
    gap: 10px;
}

.pos-topbar-date {
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid var(--pos-line);
    background: #ffffff;
    color: #667085;
    font-size: .76rem;
    font-weight: 650;
}

    .pos-topbar-date i {
        color: var(--pos-green);
    }

.pos-icon-button,
.pos-logout-button {
    height: 38px;
    border-radius: 13px;
    border: 1px solid var(--pos-line);
    background: #ffffff;
    color: #344054;
}

.pos-icon-button {
    width: 38px;
}

    .pos-icon-button:hover,
    .pos-logout-button:hover {
        background: #f9fafb;
        color: #252525;
        transform: translateY(-1px);
    }

.pos-user-pill {
    height: 40px;
    padding: 4px 10px 4px 4px;
    background: #ffffff;
    border: 1px solid var(--pos-line);
    box-shadow: 0 8px 20px rgba(17, 24, 39, .035);
}

.pos-user-avatar {
    width: 31px;
    height: 31px;
    background: #f2f6f5;
    color: var(--pos-green);
    font-weight: 760;
}

.pos-user-text strong {
    color: var(--pos-heading);
    font-size: .73rem;
    font-weight: 700;
}

.pos-user-text span {
    color: var(--pos-muted);
    font-size: .66rem;
}

.pos-logout-button {
    padding: 0 12px;
    font-size: .76rem;
    font-weight: 650;
}

/* Content spacing */

.pos-content {
    max-width: 1480px;
    margin: 0 auto;
    padding: 24px 28px 38px;
}

/* Collapsed sidebar polish */

.pos-sidebar-toggle:checked ~ .pos-shell .pos-sidebar {
    width: var(--pos-sidebar-closed);
}

.pos-sidebar-toggle:checked ~ .pos-shell .pos-nav-link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.pos-sidebar-toggle:checked ~ .pos-shell .pos-nav-icon {
    width: 32px;
    min-width: 32px;
    height: 32px;
}

/* Universal page polish helpers */

.dash-panel,
.dash-summary-card,
.transfer-panel,
.transfer-history-panel,
.transfer-items-card,
.variants-table-card,
.variants-summary-grid div,
.sales-panel,
.products-card,
.catalog-card {
    border-color: var(--pos-line) !important;
    box-shadow: 0 14px 32px rgba(17, 24, 39, .045) !important;
}

.dash-primary-action,
.transfer-primary-btn,
.variants-primary-btn,
.sales-primary-btn,
.products-primary-btn,
.catalog-primary-btn {
    background: #252525 !important;
    color: #ffffff !important;
}

.dash-secondary-action,
.transfer-secondary-btn,
.variants-secondary-btn,
.sales-secondary-btn,
.products-secondary-btn,
.catalog-secondary-btn,
.dash-small-link {
    background: #ffffff !important;
    color: var(--pos-green) !important;
    border: 1px solid var(--pos-line) !important;
}

input,
select,
textarea,
.form-control,
.form-select,
.transfer-input,
.variants-form-grid input,
.variants-form-grid select,
.dash-branch-select {
    font-size: 16px;
}

    input:focus,
    select:focus,
    textarea:focus,
    .form-control:focus,
    .form-select:focus,
    .transfer-input:focus,
    .variants-form-grid input:focus,
    .variants-form-grid select:focus {
        outline: none !important;
        box-shadow: none !important;
        border-color: #d0d5dd !important;
    }

/* Mobile */

@media (max-width: 991px) {
    .pos-sidebar {
        width: var(--pos-sidebar-open);
        border-right: 1px solid var(--pos-line);
    }

    .pos-sidebar-backdrop {
        background: rgba(17, 24, 39, .34);
        backdrop-filter: blur(2px);
    }

    .pos-topbar {
        padding: 0 16px;
    }

    .pos-content {
        padding: 18px;
    }

    .pos-topbar-date {
        display: none;
    }
}

@media (max-width: 640px) {
    .pos-topbar {
        min-height: 66px;
        padding: 0 12px;
    }

    .pos-topbar-eyebrow {
        display: none;
    }

    .pos-topbar-title {
        font-size: .9rem;
    }

    .pos-user-pill {
        display: none;
    }

    .pos-content {
        padding: 14px;
    }
}
/* ===============================
   Independent sidebar + page scroll
   =============================== */

/* Stop the browser window from being the main scroll area */
html,
body {
    height: 100%;
    overflow: hidden;
}

/* The app shell fills the screen and does not scroll as one big page */
.pos-shell {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
}

/* Sidebar gets its own fixed-height scroll area */
.pos-sidebar {
    height: 100dvh;
    min-height: 0;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: sticky;
    top: 0;
}

/* Keep logo/brand fixed at the top of the sidebar */
.pos-sidebar-brand {
    flex: 0 0 auto;
}

/* Only the menu links scroll */
.pos-sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    overscroll-behavior: contain;
}

/* Keep the bottom role/access card separate from the scrolling menu */
.pos-sidebar-card {
    flex: 0 0 auto;
    margin-top: 12px;
}

/* Main area scrolls by itself */
.pos-main {
    height: 100dvh;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

/* Keep the topbar stuck inside the main scroll area */
.pos-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
}

/* Smoother sidebar scrollbar */
.pos-sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

    .pos-sidebar-nav::-webkit-scrollbar {
        width: 6px;
    }

    .pos-sidebar-nav::-webkit-scrollbar-track {
        background: transparent;
    }

    .pos-sidebar-nav::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 999px;
    }

        .pos-sidebar-nav::-webkit-scrollbar-thumb:hover {
            background: #98a2b3;
        }

/* Collapsed sidebar must still scroll independently */
.pos-sidebar-toggle:checked ~ .pos-shell .pos-sidebar {
    height: 100dvh;
    max-height: 100dvh;
}

.pos-sidebar-toggle:checked ~ .pos-shell .pos-sidebar-nav {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Mobile drawer also scrolls separately */
@media (max-width: 991px) {
    html,
    body {
        height: 100%;
        overflow: hidden;
    }

    .pos-shell {
        height: 100dvh;
        min-height: 100dvh;
        overflow: hidden;
        display: block;
    }

    .pos-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }

    .pos-sidebar-nav {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
    }

    .pos-main {
        height: 100dvh;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
    }
}

/* ===============================
   JMingle Business Card Theme
   Navy + Gold + White
   Add at the VERY BOTTOM of app.css
   =============================== */

:root {
    --pos-bg: #f7f8fb;
    --pos-panel: #ffffff;
    --pos-panel-soft: #fbfcfe;
    --pos-line: #e2e6ec;
    --pos-line-soft: #eef1f5;
    --pos-text: #263445;
    --pos-heading: #1e395c;
    --pos-soft: #66717f;
    --pos-muted: #8f959f;
    --pos-navy: #1e395c;
    --pos-navy-dark: #142c49;
    --pos-navy-soft: #29476c;
    --pos-gold: #c3a340;
    --pos-gold-dark: #9b7a1b;
    --pos-gold-soft: rgba(195, 163, 64, .13);
    --pos-blue: #1e395c;
    --pos-blue-soft: rgba(30, 57, 92, .07);
    --pos-green: #c3a340;
    --pos-green-soft: rgba(195, 163, 64, .13);
    --pos-red: #d92d20;
    --pos-amber: #b7791f;
    --pos-sidebar-open: 268px;
    --pos-sidebar-closed: 76px;
}

html,
body {
    background: var(--pos-bg);
    color: var(--pos-text);
    font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Main app background */

.pos-shell {
    min-height: 100vh;
    display: flex;
    background: radial-gradient(circle at 12% 0%, rgba(195, 163, 64, .13), transparent 28%), radial-gradient(circle at 90% 18%, rgba(30, 57, 92, .12), transparent 32%), linear-gradient(180deg, #ffffff 0%, #f7f8fb 42%, #e8eef6 100%);
}

/* Sidebar */

.pos-sidebar {
    width: var(--pos-sidebar-open);
    min-height: 100vh;
    padding: 18px 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,253,.94));
    border-right: 1px solid var(--pos-line);
    box-shadow: 10px 0 30px rgba(30, 57, 92, .08);
    backdrop-filter: blur(18px);
}

.pos-sidebar-brand {
    min-height: 58px;
    padding: 5px 8px 18px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--pos-line-soft);
}

.pos-brand-logo {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--pos-navy);
    border: 3px solid var(--pos-gold);
    font-weight: 850;
    box-shadow: 0 14px 26px rgba(30, 57, 92, .16);
}

.pos-brand-title {
    color: var(--pos-heading);
    font-size: .92rem;
    font-weight: 760;
    letter-spacing: -.02em;
}

.pos-brand-subtitle {
    color: var(--pos-gold-dark);
    font-size: .7rem;
    font-weight: 700;
}

/* Sidebar sections */

.pos-nav-section {
    margin: 18px 10px 8px;
    color: var(--pos-gold-dark);
    font-size: .63rem;
    font-weight: 820;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pos-sidebar-nav {
    gap: 3px;
}

/* Sidebar links */

.pos-nav-link {
    height: 41px;
    gap: 12px;
    padding: 0 12px;
    border-radius: 14px;
    color: var(--pos-soft);
    font-size: .82rem;
    font-weight: 620;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

    .pos-nav-link:hover {
        background: rgba(30, 57, 92, .06);
        color: var(--pos-navy);
        transform: translateX(2px);
    }

    .pos-nav-link.active {
        background: linear-gradient(135deg, rgba(30, 57, 92, .10), rgba(195, 163, 64, .13));
        color: var(--pos-navy);
        font-weight: 760;
        border: 1px solid rgba(195, 163, 64, .20);
    }

        .pos-nav-link.active::before {
            content: "";
            position: absolute;
            left: 0;
            width: 3px;
            height: 21px;
            border-radius: 999px;
            background: var(--pos-gold);
        }

.pos-nav-icon {
    width: 26px;
    min-width: 26px;
    height: 26px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    color: #9aa3af;
    font-size: .95rem;
}

.pos-nav-link:hover .pos-nav-icon {
    color: var(--pos-gold-dark);
}

.pos-nav-link.active .pos-nav-icon {
    background: #ffffff;
    color: var(--pos-gold-dark);
    box-shadow: 0 8px 16px rgba(30, 57, 92, .08);
}

/* Sidebar bottom card */

.pos-sidebar-card {
    margin-top: 22px;
    padding: 12px;
    border-radius: 18px;
    background: radial-gradient(circle at top right, rgba(195, 163, 64, .14), transparent 36%), rgba(30, 57, 92, .06);
    border: 1px solid rgba(30, 57, 92, .10);
    box-shadow: none;
}

.pos-sidebar-card-icon {
    background: #ffffff;
    color: var(--pos-gold-dark);
    border: 1px solid rgba(195, 163, 64, .26);
    box-shadow: 0 8px 18px rgba(30, 57, 92, .06);
}

.pos-sidebar-card-text strong {
    color: var(--pos-navy);
    font-size: .8rem;
    font-weight: 760;
}

.pos-sidebar-card-text span {
    color: var(--pos-soft);
}

/* Topbar */

.pos-topbar {
    min-height: 72px;
    padding: 0 28px;
    background: rgba(255, 255, 255, .84);
    border-bottom: 1px solid var(--pos-line);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 28px rgba(30, 57, 92, .035);
}

.pos-topbar-left {
    gap: 14px;
}

.pos-menu-button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 14px;
    border: 1px solid var(--pos-line);
    background: #ffffff;
    color: var(--pos-navy);
    box-shadow: 0 8px 20px rgba(30, 57, 92, .06);
}

    .pos-menu-button:hover {
        color: var(--pos-gold-dark);
        border-color: rgba(195, 163, 64, .45);
        background: #ffffff;
        transform: translateY(-1px);
    }

.pos-topbar-eyebrow {
    margin-bottom: 2px;
    color: var(--pos-gold-dark);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pos-topbar-title {
    color: var(--pos-navy);
    font-size: .98rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.pos-topbar-subtitle {
    color: var(--pos-muted);
}

.pos-topbar-actions {
    gap: 10px;
}

.pos-topbar-date {
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid var(--pos-line);
    background: #ffffff;
    color: var(--pos-soft);
    font-size: .76rem;
    font-weight: 700;
}

    .pos-topbar-date i {
        color: var(--pos-gold-dark);
    }

/* Topbar buttons */

.pos-icon-button,
.pos-logout-button {
    height: 38px;
    border-radius: 13px;
    border: 1px solid var(--pos-line);
    background: #ffffff;
    color: var(--pos-navy);
}

.pos-icon-button {
    width: 38px;
}

    .pos-icon-button:hover,
    .pos-logout-button:hover {
        background: rgba(195, 163, 64, .10);
        border-color: rgba(195, 163, 64, .38);
        color: var(--pos-gold-dark);
        transform: translateY(-1px);
    }

/* User pill */

.pos-user-pill {
    height: 40px;
    padding: 4px 10px 4px 4px;
    background: #ffffff;
    border: 1px solid var(--pos-line);
    box-shadow: 0 8px 20px rgba(30, 57, 92, .05);
}

.pos-user-avatar {
    width: 31px;
    height: 31px;
    background: rgba(195, 163, 64, .13);
    color: var(--pos-gold-dark);
    border: 1px solid rgba(195, 163, 64, .24);
    font-weight: 800;
}

.pos-user-text strong {
    color: var(--pos-navy);
    font-size: .73rem;
    font-weight: 760;
}

.pos-user-text span {
    color: var(--pos-muted);
    font-size: .66rem;
}

.pos-logout-button {
    padding: 0 12px;
    font-size: .76rem;
    font-weight: 700;
}

/* Main content */

.pos-content {
    max-width: 1480px;
    margin: 0 auto;
    padding: 24px 28px 38px;
}

/* Collapsed sidebar */

.pos-sidebar-toggle:checked ~ .pos-shell .pos-sidebar {
    width: var(--pos-sidebar-closed);
}

.pos-sidebar-toggle:checked ~ .pos-shell .pos-nav-link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.pos-sidebar-toggle:checked ~ .pos-shell .pos-nav-icon {
    width: 32px;
    min-width: 32px;
    height: 32px;
}

.pos-sidebar-toggle:checked ~ .pos-shell .pos-nav-link.active::before {
    left: -5px;
}

/* Page component helpers */

.dash-panel,
.dash-summary-card,
.transfer-panel,
.transfer-history-panel,
.transfer-items-card,
.variants-table-card,
.variants-summary-grid div,
.sales-panel,
.products-card,
.catalog-card {
    border-color: var(--pos-line) !important;
    box-shadow: 0 14px 32px rgba(30, 57, 92, .06) !important;
}

.dash-primary-action,
.transfer-primary-btn,
.variants-primary-btn,
.sales-primary-btn,
.products-primary-btn,
.catalog-primary-btn {
    background: linear-gradient(135deg, var(--pos-navy-dark), var(--pos-navy)) !important;
    color: #ffffff !important;
    border-color: var(--pos-navy) !important;
    box-shadow: 0 14px 28px rgba(30, 57, 92, .20) !important;
}

    .dash-primary-action:hover,
    .transfer-primary-btn:hover,
    .variants-primary-btn:hover,
    .sales-primary-btn:hover,
    .products-primary-btn:hover,
    .catalog-primary-btn:hover {
        box-shadow: 0 18px 34px rgba(30, 57, 92, .24) !important;
    }

.dash-secondary-action,
.transfer-secondary-btn,
.variants-secondary-btn,
.sales-secondary-btn,
.products-secondary-btn,
.catalog-secondary-btn,
.dash-small-link {
    background: #ffffff !important;
    color: var(--pos-navy) !important;
    border: 1px solid var(--pos-line) !important;
}

    .dash-secondary-action:hover,
    .transfer-secondary-btn:hover,
    .variants-secondary-btn:hover,
    .sales-secondary-btn:hover,
    .products-secondary-btn:hover,
    .catalog-secondary-btn:hover,
    .dash-small-link:hover {
        color: var(--pos-gold-dark) !important;
        border-color: rgba(195, 163, 64, .45) !important;
    }

/* Inputs */

input,
select,
textarea,
.form-control,
.form-select,
.transfer-input,
.variants-form-grid input,
.variants-form-grid select,
.dash-branch-select {
    font-size: 16px;
}

    input:focus,
    select:focus,
    textarea:focus,
    .form-control:focus,
    .form-select:focus,
    .transfer-input:focus,
    .variants-form-grid input:focus,
    .variants-form-grid select:focus,
    .dash-branch-select:focus {
        outline: none !important;
        box-shadow: 0 0 0 4px rgba(195, 163, 64, .13) !important;
        border-color: rgba(195, 163, 64, .65) !important;
    }

/* Sidebar scrollbar */

.pos-sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(195, 163, 64, .55) transparent;
}

    .pos-sidebar-nav::-webkit-scrollbar {
        width: 6px;
    }

    .pos-sidebar-nav::-webkit-scrollbar-track {
        background: transparent;
    }

    .pos-sidebar-nav::-webkit-scrollbar-thumb {
        background: rgba(195, 163, 64, .55);
        border-radius: 999px;
    }

        .pos-sidebar-nav::-webkit-scrollbar-thumb:hover {
            background: var(--pos-gold-dark);
        }

/* Mobile */

@media (max-width: 991px) {
    .pos-sidebar {
        width: var(--pos-sidebar-open);
        border-right: 1px solid var(--pos-line);
    }

    .pos-sidebar-backdrop {
        background: rgba(20, 44, 73, .42);
        backdrop-filter: blur(2px);
    }

    .pos-topbar {
        padding: 0 16px;
    }

    .pos-content {
        padding: 18px;
    }

    .pos-topbar-date {
        display: none;
    }
}

@media (max-width: 640px) {
    .pos-topbar {
        min-height: 66px;
        padding: 0 12px;
    }

    .pos-topbar-eyebrow {
        display: none;
    }

    .pos-topbar-title {
        font-size: .9rem;
    }

    .pos-user-pill {
        display: none;
    }

    .pos-content {
        padding: 14px;
    }
}