body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #111827;
    color: #e5e7eb;
    overflow: hidden;
}

.sidebar {
    width: 240px;
    height: 100vh;
    background: #1f2937;
    position: fixed;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.4);
    box-sizing: border-box;
}

.brand {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.brand .icon {
    width: 35px;
    margin-right: 10px;
}

.brand span {
    font-size: 20px;
    font-weight: bold;
}

button {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    background: #2563eb;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #1d4ed8;
}

.logout-btn {
    margin-top: 18px;
    background: #ef4444;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    font-weight: 700;
}

.content {
    margin-left: 260px;
    padding: 40px;
    height: 100vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.background-logo {
    position: fixed;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.08;
    pointer-events: none;
}

.logo1 {
    width: 500px;
    height: 300px;
    top: 10%;
    right: 5%;
    background-image: url('../assets/logo-horizontal.png');
}

.logo2 {
    width: 400px;
    height: 400px;
    bottom: 10%;
    left: 30%;
    background-image: url('../assets/logo-vertical.png');
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th,
.table td {
    padding: 10px;
    border-bottom: 1px solid #374151;
    text-align: left;
}

.table th {
    background: #1f2937;
    color: #ffffff !important;
}

.table td {
    color: #111827 !important;
    font-weight: 500;
}

.table tr {
    background-color: #ffffff;
}

.action-btn {
    background: #16a34a;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 14px;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1f2937;
    padding: 30px;
    border-radius: 10px;
    width: 400px;
    display: none;
    box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

.modal input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: none;
    border-radius: 4px;
    box-sizing: border-box;
}

.modal button {
    width: 100%;
}

/* PUBLIC LANDING */
.public-page {
    min-height: 100vh;
    background: radial-gradient(circle at top left, #1d4ed8 0, #0f172a 32%, #020617 100%);
    color: white;
    overflow-x: hidden;
}

.public-wrap {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 26px 0 60px;
}

.public-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 70px;
}

.public-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.public-brand img {
    width: 34px;
    height: 34px;
}

.public-brand span {
    font-size: 30px;
    font-weight: 900;
}

.public-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #cbd5e1;
    font-weight: 700;
}

.public-menu span,
.public-mobile-menu span {
    cursor: pointer;
}

.public-login-btn,
.public-primary-btn,
.public-secondary-btn {
    width: auto;
    margin: 0;
    border-radius: 999px;
    font-weight: 900;
}

.public-login-btn {
    padding: 11px 22px;
    background: #38bdf8;
    color: #020617;
}

.public-hamburger {
    display: none;
    width: auto;
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.24);
    background: rgba(255,255,255,.08);
}

.public-hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: white;
    border-radius: 99px;
    margin: 4px 0;
}

.public-mobile-menu {
    display: none;
    margin-top: -44px;
    margin-bottom: 38px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(15,23,42,.96);
    border: 1px solid rgba(255,255,255,.18);
    color: #cbd5e1;
    font-weight: 800;
}

.public-mobile-menu.active {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.public-mobile-menu .public-login-btn {
    width: 100%;
}

.public-hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 45px;
    align-items: center;
}

.public-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(56,189,248,.14);
    color: #7dd3fc;
    font-weight: 800;
    margin-bottom: 20px;
}

.public-title {
    font-size: 60px;
    line-height: 1.02;
    margin: 0 0 22px;
    letter-spacing: -2px;
}

.public-text {
    font-size: 21px;
    color: #cbd5e1;
    line-height: 1.65;
    max-width: 720px;
}

.public-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.public-primary-btn {
    padding: 16px 30px;
    border-radius: 14px;
    background: #22c55e;
    color: white;
    font-size: 17px;
    box-shadow: 0 12px 30px rgba(34,197,94,.28);
}

.public-secondary-btn {
    padding: 16px 30px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08);
    color: white;
    font-size: 17px;
}

.public-demo-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.public-demo-inner {
    background: #020617;
    border-radius: 20px;
    padding: 22px;
}

.public-demo-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.public-online {
    color: #22c55e;
    font-weight: 900;
}

.public-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.public-stat {
    color: #0f172a;
    padding: 16px;
    border-radius: 16px;
}

.public-stat strong {
    font-size: 28px;
}

.stat-blue {
    background: #dbeafe;
}

.stat-green {
    background: #dcfce7;
}

.stat-yellow {
    background: #fef3c7;
}

.public-chart {
    height: 150px;
    margin-top: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(37,99,235,.8), rgba(34,197,94,.55));
    display: flex;
    align-items: end;
    gap: 8px;
    padding: 18px;
    box-sizing: border-box;
}

.public-chart span {
    width: 12%;
    background: white;
    border-radius: 8px;
}

.public-features {
    margin-top: 80px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.public-feature-card {
    background: rgba(255,255,255,.08);
    padding: 24px;
    border-radius: 20px;
}

.public-feature-icon {
    font-size: 32px;
}

.public-feature-card p {
    color: #cbd5e1;
}

.public-benefits {
    margin-top: 70px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 26px;
    padding: 36px;
}

.public-benefits h2,
.public-cta h2 {
    font-size: 38px;
    margin-top: 0;
}

.public-benefits p,
.public-cta p {
    color: #cbd5e1;
    font-size: 19px;
    line-height: 1.7;
}

.public-benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 25px;
}

.public-benefit-grid span {
    color: #cbd5e1;
}

.public-cta {
    text-align: center;
    margin-top: 70px;
    padding-bottom: 40px;
}

.public-cta .public-login-btn {
    margin-top: 18px;
    padding: 16px 38px;
    border-radius: 14px;
    font-size: 18px;
}

/* LOGIN */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 20px;
    box-sizing: border-box;
}

.login-card {
    width: min(380px, 100%);
    background: white;
    color: #0f172a;
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    box-sizing: border-box;
}

.login-card h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.login-card p {
    margin-top: 0;
    color: #64748b;
}

.login-card input {
    width: 100%;
    padding: 13px;
    margin-bottom: 12px;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
}

.login-card button {
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    font-weight: 800;
}

.back-home-btn {
    margin-top: 10px;
    padding: 11px;
    border: none;
    background: transparent;
    color: #2563eb;
    font-weight: 700;
}

/* RESPONSIVE PUBLIC */
@media (max-width: 1024px) {
    .public-hero {
        grid-template-columns: 1fr;
    }

    .public-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .public-benefit-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body.public-mode {
        height: auto;
        overflow: auto;
    }

    .public-wrap {
        width: min(100% - 32px, 1180px);
        padding-top: 20px;
    }

    .public-nav {
        margin-bottom: 64px;
    }

    .public-menu {
        display: none;
    }

    .public-hamburger {
        display: block;
    }

    .public-title {
        font-size: 38px;
        line-height: 1.08;
        letter-spacing: -1px;
    }

    .public-text {
        font-size: 16px;
        line-height: 1.55;
    }

    .public-actions {
        flex-direction: column;
    }

    .public-actions button {
        width: 100%;
    }

    .public-stats {
        grid-template-columns: 1fr;
    }

    .public-benefits {
        padding: 24px;
    }

    .public-benefits h2,
    .public-cta h2 {
        font-size: 30px;
    }

    .public-benefits p,
    .public-cta p {
        font-size: 16px;
    }
}

@media (max-width: 520px) {
    .public-features {
        grid-template-columns: 1fr;
    }

    .public-brand span {
        font-size: 24px;
    }

    .public-brand img {
        width: 30px;
        height: 30px;
    }

    .public-title {
        font-size: 32px;
    }

    .public-demo-card {
        padding: 14px;
        border-radius: 22px;
    }

    .public-demo-inner {
        padding: 16px;
    }
}

/* FIX GLOBAL: public landing scroll after logout */
body.public-mode {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 100vh !important;
}

/* ===== INVENTRA PUBLIC LANDING PRO VISUAL PACK ===== */
html, body {
    min-height: 100%;
}

body.public-mode {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 100vh !important;
}

.public-page {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 10%, rgba(56,189,248,.25), transparent 28%),
        radial-gradient(circle at 85% 20%, rgba(34,197,94,.18), transparent 26%),
        linear-gradient(135deg, #020617 0%, #0f172a 42%, #111827 100%) !important;
}





.public-wrap {
    position: relative;
    z-index: 2;
}

.public-nav {
    padding-top: 10px;
}

.public-brand {
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    background: rgba(15,23,42,.42);
    backdrop-filter: blur(10px);
}

.public-menu {
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(15,23,42,.52);
    backdrop-filter: blur(10px);
}

.public-menu span {
    transition: transform .18s ease, color .18s ease;
}

.public-menu span:hover {
    color: #7dd3fc;
    transform: translateY(-1px);
}

.public-hero {
    position: relative;
    padding: 42px;
    border-radius: 34px;
    background:
        linear-gradient(120deg, rgba(2,6,23,.88), rgba(15,23,42,.72)),
        radial-gradient(circle at 85% 20%, rgba(56,189,248,.28), transparent 36%),
        radial-gradient(circle at 70% 80%, rgba(34,197,94,.20), transparent 35%);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 34px 100px rgba(0,0,0,.42);
    overflow: hidden;
}

.public-hero::before {
    content: "WAREHOUSE  •  INVENTORY  •  SALES  •  STOCK CONTROL";
    position: absolute;
    right: -135px;
    top: 50px;
    transform: rotate(38deg);
    font-size: 13px;
    letter-spacing: 4px;
    font-weight: 900;
    color: rgba(255,255,255,.12);
    white-space: nowrap;
}

.public-hero::after {
    content: "";
    position: absolute;
    right: 30px;
    bottom: 30px;
    width: 330px;
    height: 150px;
    opacity: .18;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 10px, transparent 10px 28px),
        linear-gradient(135deg, rgba(56,189,248,.8), rgba(34,197,94,.55));
    clip-path: polygon(0 30%, 70% 30%, 82% 0, 100% 0, 88% 48%, 100% 100%, 82% 100%, 70% 68%, 0 68%);
}

.public-badge {
    border: 1px solid rgba(125,211,252,.22);
    box-shadow: 0 0 34px rgba(56,189,248,.18);
}

.public-title {
    max-width: 780px;
    text-shadow: 0 16px 42px rgba(0,0,0,.48);
}

.public-primary-btn,
.public-secondary-btn,
.public-login-btn {
    box-shadow: 0 18px 45px rgba(0,0,0,.25);
}

.public-demo-card {
    transform: translateY(0);
    transition: transform .25s ease, box-shadow .25s ease;
    background:
        linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.04)) !important;
}

.public-demo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 38px 110px rgba(56,189,248,.18);
}

.public-demo-inner {
    position: relative;
    overflow: hidden;
}

.public-demo-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent);
    transform: translateX(-100%);
    animation: inventraShine 4.5s infinite;
}

@keyframes inventraShine {
    0% { transform: translateX(-100%); }
    45%, 100% { transform: translateX(100%); }
}

.public-features {
    position: relative;
}

.public-feature-card {
    min-height: 190px;
    border: 1px solid rgba(255,255,255,.13);
    background:
        linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.045)) !important;
    box-shadow: 0 18px 55px rgba(0,0,0,.22);
    transition: transform .22s ease, border-color .22s ease;
}

.public-feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56,189,248,.38);
}

.public-feature-card:nth-child(1)::after,
.public-feature-card:nth-child(2)::after,
.public-feature-card:nth-child(3)::after,
.public-feature-card:nth-child(4)::after {
    display: block;
    margin-top: 16px;
    font-size: 12px;
    letter-spacing: 2px;
    color: rgba(203,213,225,.72);
    font-weight: 900;
}

.public-feature-card:nth-child(1)::after { content: "WAREHOUSE READY"; }
.public-feature-card:nth-child(2)::after { content: "POINT OF SALE"; }
.public-feature-card:nth-child(3)::after { content: "LIVE REPORTS"; }
.public-feature-card:nth-child(4)::after { content: "MULTI BUSINESS"; }

.public-benefits {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(15,23,42,.82), rgba(30,41,59,.62)),
        repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 2px, transparent 2px 24px) !important;
}

.public-benefits::before {
    content: "STOCK • SALES • RECEIPTS • REPORTS";
    position: absolute;
    right: 24px;
    top: 24px;
    color: rgba(255,255,255,.12);
    font-weight: 900;
    letter-spacing: 3px;
}

.public-cta {
    padding: 70px 24px 90px !important;
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 0%, rgba(56,189,248,.22), transparent 42%),
        linear-gradient(135deg, rgba(34,197,94,.14), rgba(56,189,248,.12));
    border: 1px solid rgba(255,255,255,.12);
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .public-hero {
        padding: 24px;
        border-radius: 24px;
    }

    .public-menu {
        border-radius: 18px;
    }

    .public-hero::before,
    .public-hero::after,
    .public-benefits::before {
        display: none;
    }
}


.public-feature-card:nth-child(1) {
    background:
        linear-gradient(145deg, rgba(15,23,42,.38), rgba(15,23,42,.24)),
        url("../assets/public-inventory.svg") center/cover no-repeat !important;
}

.public-feature-card:nth-child(2) {
    background:
        linear-gradient(145deg, rgba(15,23,42,.38), rgba(15,23,42,.24)),
        url("../assets/public-cashier.svg") center/cover no-repeat !important;
}

.public-feature-card:nth-child(3) {
    background:
        linear-gradient(145deg, rgba(15,23,42,.38), rgba(15,23,42,.24)),
        url("../assets/public-grocery.svg") center/cover no-repeat !important;
}

.public-feature-card:nth-child(4) {
    background:
        linear-gradient(145deg, rgba(15,23,42,.38), rgba(15,23,42,.24)),
        url("../assets/public-warehouse.svg") center/cover no-repeat !important;
}

.public-benefits {
    background:
        linear-gradient(120deg, rgba(15,23,42,.42), rgba(30,41,59,.32)),
        url("../assets/public-grocery.svg") center/cover no-repeat !important;
}

.public-cta {
    background:
        linear-gradient(135deg, rgba(2,6,23,.22), rgba(15,23,42,.15)),
        url("../assets/public-cashier.svg") center/cover no-repeat !important;
}


.public-feature-card:nth-child(1) {
    background-image:
        linear-gradient(145deg, rgba(2,6,23,.28), rgba(15,23,42,.18)),
        url("/assets/public-inventory.svg") !important;
    background-size: cover !important;
    background-position: center !important;
}

.public-feature-card:nth-child(2) {
    background-image:
        linear-gradient(145deg, rgba(2,6,23,.28), rgba(15,23,42,.18)),
        url("/assets/public-cashier.svg") !important;
    background-size: cover !important;
    background-position: center !important;
}

.public-feature-card:nth-child(3) {
    background-image:
        linear-gradient(145deg, rgba(2,6,23,.28), rgba(15,23,42,.18)),
        url("/assets/public-grocery.svg") !important;
    background-size: cover !important;
    background-position: center !important;
}

.public-feature-card:nth-child(4) {
    background-image:
        linear-gradient(145deg, rgba(2,6,23,.28), rgba(15,23,42,.18)),
        url("/assets/public-warehouse.svg") !important;
    background-size: cover !important;
    background-position: center !important;
}

.public-benefits {
    background-image:
        linear-gradient(120deg, rgba(2,6,23,.35), rgba(15,23,42,.20)),
        url("/assets/public-grocery.svg") !important;
    background-size: cover !important;
    background-position: center !important;
}

.public-cta {
    background-image:
        linear-gradient(135deg, rgba(2,6,23,.35), rgba(15,23,42,.20)),
        url("/assets/public-cashier.svg") !important;
    background-size: cover !important;
    background-position: center !important;
}


.public-wrap {
    position: relative;
    z-index: 2;
}


    25%, 47% {
        background-image:
            linear-gradient(120deg, rgba(2,6,23,.88), rgba(15,23,42,.78)),
            url("/assets/bg-grocery.jpg");
    }
    50%, 72% {
        background-image:
            linear-gradient(120deg, rgba(2,6,23,.88), rgba(15,23,42,.78)),
            url("/assets/bg-cashier.jpg");
    }
    75%, 100% {
        background-image:
            linear-gradient(120deg, rgba(2,6,23,.88), rgba(15,23,42,.78)),
            url("/assets/bg-inventory.jpg");
    }
}




/* Mantener contenido encima */
.public-wrap {
    position: relative;
    z-index: 2;
}

/* Animación de cambio de fondos */

    25%, 47% {
        background:
            linear-gradient(120deg, rgba(2,6,23,.22), rgba(15,23,42,.15)),
            url("/assets/bg-grocery.png") center/cover no-repeat;
    }
    50%, 72% {
        background:
            linear-gradient(120deg, rgba(2,6,23,.22), rgba(15,23,42,.15)),
            url("/assets/bg-cashier.png") center/cover no-repeat;
    }
    75%, 100% {
        background:
            linear-gradient(120deg, rgba(2,6,23,.22), rgba(15,23,42,.15)),
            url("/assets/bg-inventory.png") center/cover no-repeat;
    }
}


/* ===== INVENTRA CINEMATIC BACKGROUND EFFECT ===== */




.public-wrap {
    position: relative;
    z-index: 3;
}

@keyframes inventraCinematicMove {
    0% {
        transform: scale(1.06) translate3d(-10px, -6px, 0);
    }
    100% {
        transform: scale(1.12) translate3d(14px, 8px, 0);
    }
}

/* ===== INVENTRA STRONG CINEMATIC BACKGROUND EFFECT ===== */




.public-wrap {
    position: relative;
    z-index: 3;
}

@keyframes inventraStrongCinemaMove {
    0% {
        transform: scale(1.18) translate3d(-35px, -18px, 0);
    }
    100% {
        transform: scale(1.30) translate3d(35px, 18px, 0);
    }
}

/* ===== INVENTRA FADE BACKGROUND SYSTEM ===== */
.bg-layer {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1.8s ease-in-out;
    z-index: 0;
}

.bg-layer-1 { opacity: 1; }
.bg-layer-2 { opacity: 0; }

.bg-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(120deg, rgba(2,6,23,.35), rgba(15,23,42,.25));
    z-index: 1;
}

.public-wrap {
    position: relative;
    z-index: 2;
}


/* ===== ULTRA CINEMATIC BACKGROUND ===== */
.bg-layer {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1.6s ease-in-out, filter 1.6s ease-in-out, transform 8s ease-in-out;
    z-index: 0;
}

.bg-layer-1 { opacity: 1; }
.bg-layer-2 { opacity: 0; }

.bg-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 30%, rgba(56,189,248,.12), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(34,197,94,.10), transparent 35%),
        linear-gradient(to bottom, rgba(2,6,23,.25), rgba(2,6,23,.55));
}

.bg-particles {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.bg-particles span {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    animation: floatParticles linear infinite;
}

@keyframes floatParticles {
    from { transform: translateY(0); }
    to { transform: translateY(-120vh); }
}

.public-wrap {
    position: relative;
    z-index: 3;
}


/* LOGIN MUST STAY ABOVE CINEMATIC BACKGROUND */
.login-page {
    position: relative !important;
    z-index: 9999 !important;
}

.login-card {
    position: relative !important;
    z-index: 10000 !important;
}

/* INVENTRA RESPONSIVE APP MENU */
@media (max-width: 768px) {
    body:not(.public-mode) {
        overflow: auto;
    }

    body:not(.public-mode) .sidebar {
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        min-height: auto;
        padding: 10px;
        display: flex;
        align-items: center;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        box-shadow: 0 4px 16px rgba(0,0,0,0.35);
        z-index: 999;
    }

    body:not(.public-mode) .brand {
        flex: 0 0 auto;
        margin: 0 8px 0 0;
    }

    body:not(.public-mode) .brand .icon {
        width: 28px;
        margin-right: 6px;
    }

    body:not(.public-mode) .brand span {
        font-size: 16px;
    }

    body:not(.public-mode) .sidebar button {
        flex: 0 0 auto;
        width: auto;
        min-width: 105px;
        margin: 0;
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 14px;
    }

    body:not(.public-mode) .logout-btn {
        min-width: 95px;
        margin: 0;
        padding: 10px 12px;
    }

    body:not(.public-mode) .content {
        margin-left: 0;
        padding: 14px;
        height: auto;
        min-height: calc(100vh - 74px);
        overflow-y: visible;
    }

    body:not(.public-mode) #moduleArea {
        min-height: calc(100vh - 100px) !important;
        border-radius: 12px !important;
        padding: 12px !important;
        overflow-x: auto !important;
    }

    body:not(.public-mode) .table {
        min-width: 680px;
    }
}

@media (max-width: 420px) {
    body:not(.public-mode) .brand span {
        display: none;
    }

    body:not(.public-mode) .sidebar button {
        min-width: 92px;
        font-size: 13px;
        padding: 9px 10px;
    }

    body:not(.public-mode) .content {
        padding: 10px;
    }
}

/* INVENTRA MOBILE MODERN TEXT NAV */
@media (max-width: 768px) {
    body:not(.public-mode) .sidebar {
        position: sticky !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        padding: 10px 12px !important;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px 10px !important;
        background: rgba(15, 23, 42, 0.98) !important;
        box-shadow: 0 4px 18px rgba(0,0,0,0.35) !important;
        box-sizing: border-box !important;
        z-index: 999 !important;
    }

    body:not(.public-mode) .brand {
        grid-column: 1 / -1 !important;
        justify-content: center !important;
        margin: 0 0 6px 0 !important;
    }

    body:not(.public-mode) .sidebar button {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        color: #e5e7eb !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 7px 4px !important;
        border-radius: 0 !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        text-align: center !important;
        line-height: 1.2 !important;
        border-bottom: 2px solid transparent !important;
    }

    body:not(.public-mode) .sidebar button:hover,
    body:not(.public-mode) .sidebar button:focus {
        background: transparent !important;
        color: #38bdf8 !important;
        border-bottom-color: #38bdf8 !important;
    }

    body:not(.public-mode) .logout-btn {
        color: #fca5a5 !important;
    }

    body:not(.public-mode) .content {
        margin-left: 0 !important;
        padding: 12px !important;
        height: auto !important;
        min-height: calc(100vh - 108px) !important;
        overflow-y: visible !important;
    }
}

@media (max-width: 420px) {
    body:not(.public-mode) .sidebar {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 5px 6px !important;
        padding: 9px 8px !important;
    }

    body:not(.public-mode) .sidebar button {
        font-size: 12px !important;
        padding: 6px 2px !important;
    }
}

/* INVENTRA MOBILE NAV ICONS */
@media (max-width: 768px) {
    body:not(.public-mode) .sidebar button::before {
        display: block;
        font-size: 18px;
        line-height: 1;
        margin-bottom: 3px;
    }

    body:not(.public-mode) .sidebar button:nth-of-type(1)::before { content: "🏠"; }
    body:not(.public-mode) .sidebar button:nth-of-type(2)::before { content: "📦"; }
    body:not(.public-mode) .sidebar button:nth-of-type(3)::before { content: "📥"; }
    body:not(.public-mode) .sidebar button:nth-of-type(4)::before { content: "💰"; }
    body:not(.public-mode) .sidebar button:nth-of-type(5)::before { content: "⚙️"; }
    body:not(.public-mode) .sidebar button:nth-of-type(6)::before { content: "📊"; }
    body:not(.public-mode) .sidebar button:nth-of-type(7)::before { content: "🚪"; }
}

/* INVENTRA ACTIVE MENU */
body:not(.public-mode) .sidebar button.active-menu {
    background: #38bdf8 !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    box-shadow: 0 0 0 2px rgba(56,189,248,0.35), 0 10px 20px rgba(56,189,248,0.18) !important;
}

@media (max-width: 768px) {
    body:not(.public-mode) .sidebar button.active-menu {
        background: transparent !important;
        color: #38bdf8 !important;
        border-bottom-color: #38bdf8 !important;
        box-shadow: none !important;
    }

    body:not(.public-mode) .sidebar button.active-menu::before {
        transform: scale(1.12);
    }
}

/* INVENTRA DASHBOARD RESPONSIVE */
@media (max-width: 768px) {
    body:not(.public-mode) #dashboardContent {
        width: 100%;
        overflow-x: hidden;
    }

    body:not(.public-mode) #dashboardContent > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    body:not(.public-mode) #dashboardContent > div:first-child > div {
        padding: 16px !important;
        border-radius: 14px !important;
    }

    body:not(.public-mode) #dashboardContent h3 {
        font-size: 17px !important;
        margin-top: 18px !important;
        margin-bottom: 10px !important;
    }

    body:not(.public-mode) #dashboardContent table {
        min-width: 620px !important;
    }

    body:not(.public-mode) #dashboardContent canvas {
        width: 100% !important;
        max-width: 100% !important;
        background: #ffffff;
        border-radius: 14px;
        padding: 8px;
        box-sizing: border-box;
    }

    body:not(.public-mode) #moduleArea {
        overflow-x: auto !important;
    }
}

@media (max-width: 420px) {
    body:not(.public-mode) #dashboardContent > div:first-child > div div:last-child {
        font-size: 26px !important;
    }

    body:not(.public-mode) #dashboardContent table {
        min-width: 560px !important;
    }
}

/* INVENTRA PRODUCT DETAIL MODAL */
.inventra-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 5000;
}

.inventra-modal-card {
    width: min(520px, 100%);
    background: #0f172a;
    color: #f8fafc;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.45);
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid rgba(56,189,248,0.25);
}

.inventra-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.inventra-modal-head h2 {
    margin: 0;
    color: #38bdf8;
    font-size: 22px;
}

.inventra-modal-x {
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 999px !important;
    background: rgba(239,68,68,0.95) !important;
    color: #fff !important;
    font-size: 24px !important;
    line-height: 1 !important;
}

.inventra-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.inventra-detail-grid div {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148,163,184,0.25);
    border-radius: 14px;
    padding: 13px;
}

.inventra-detail-grid span {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.inventra-detail-grid strong {
    display: block;
    color: #ffffff;
    font-size: 17px;
    word-break: break-word;
}

.inventra-modal-close {
    margin-top: 18px !important;
    width: 100% !important;
    background: #38bdf8 !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
}

@media (max-width: 520px) {
    .inventra-modal-card {
        padding: 16px;
        border-radius: 16px;
    }

    .inventra-detail-grid {
        grid-template-columns: 1fr;
    }

    .inventra-modal-head h2 {
        font-size: 19px;
    }
}

/* INVENTRA MOBILE PRODUCT TABLE AS CARDS */
@media (max-width: 768px) {
    body:not(.public-mode) #moduleArea table.table {
        min-width: 0 !important;
        width: 100% !important;
        border-collapse: separate !important;
        border-spacing: 0 10px !important;
    }

    body:not(.public-mode) #moduleArea table.table tr:first-child {
        display: none !important;
    }

    body:not(.public-mode) #moduleArea table.table tr {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 14px !important;
        padding: 12px !important;
        margin-bottom: 10px !important;
        box-shadow: 0 8px 22px rgba(15,23,42,0.08) !important;
    }

    body:not(.public-mode) #moduleArea table.table td {
        display: block !important;
        border: none !important;
        padding: 4px !important;
        font-size: 14px !important;
        line-height: 1.25 !important;
        color: #0f172a !important;
        word-break: break-word !important;
    }

    body:not(.public-mode) #moduleArea table.table td::before {
        display: block;
        font-size: 10px;
        font-weight: 800;
        color: #64748b;
        text-transform: uppercase;
        margin-bottom: 2px;
        letter-spacing: .04em;
    }

    body:not(.public-mode) #moduleArea table.table td:nth-child(1)::before { content: "ID"; }
    body:not(.public-mode) #moduleArea table.table td:nth-child(2)::before { content: "Producto"; }
    body:not(.public-mode) #moduleArea table.table td:nth-child(3)::before { content: "SKU"; }
    body:not(.public-mode) #moduleArea table.table td:nth-child(4)::before { content: "Unidad"; }
    body:not(.public-mode) #moduleArea table.table td:nth-child(5)::before { content: "Stock"; }
    body:not(.public-mode) #moduleArea table.table td:nth-child(6)::before { content: "Precio"; }
    body:not(.public-mode) #moduleArea table.table td:nth-child(7)::before { content: "Acción"; }

    body:not(.public-mode) #moduleArea table.table td:nth-child(2) {
        grid-column: 1 / -1 !important;
        font-size: 17px !important;
        font-weight: 800 !important;
    }

    body:not(.public-mode) #moduleArea table.table td:nth-child(7) {
        grid-column: 1 / -1 !important;
    }

    body:not(.public-mode) #moduleArea table.table td button {
        width: 100% !important;
        margin: 4px 0 0 0 !important;
        padding: 10px !important;
        border-radius: 10px !important;
    }
}

/* INVENTRA MOBILE ENTRIES RESPONSIVE */
@media (max-width: 768px) {
    body:not(.public-mode) #invoice,
    body:not(.public-mode) #entrySupplierSearch,
    body:not(.public-mode) #entryProductSearch,
    body:not(.public-mode) #entryUnitDisplay,
    body:not(.public-mode) #entryQuantityInput,
    body:not(.public-mode) #entryCostInput {
        width: 100% !important;
        height: 46px !important;
        font-size: 15px !important;
        box-sizing: border-box !important;
    }

    body:not(.public-mode) #invoice,
    body:not(.public-mode) #entrySupplierSearch {
        margin-bottom: 0 !important;
    }

    body:not(.public-mode) #moduleArea div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    body:not(.public-mode) #moduleArea div[style*="grid-template-columns:1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    body:not(.public-mode) #entryList {
        max-height: none !important;
        overflow: visible !important;
        margin-top: 14px !important;
    }

    body:not(.public-mode) #entryList table {
        width: 100% !important;
        min-width: 0 !important;
        border-collapse: separate !important;
        border-spacing: 0 10px !important;
    }

    body:not(.public-mode) #entryList tr:first-child {
        display: none !important;
    }

    body:not(.public-mode) #entryList tr {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 14px !important;
        padding: 12px !important;
        margin-bottom: 10px !important;
        box-shadow: 0 8px 22px rgba(15,23,42,0.08) !important;
        text-align: left !important;
    }

    body:not(.public-mode) #entryList td {
        display: block !important;
        border: none !important;
        padding: 4px !important;
        font-size: 14px !important;
        line-height: 1.25 !important;
        color: #0f172a !important;
        word-break: break-word !important;
        text-align: left !important;
    }

    body:not(.public-mode) #entryList td::before {
        display: block;
        font-size: 10px;
        font-weight: 800;
        color: #64748b;
        text-transform: uppercase;
        margin-bottom: 2px;
        letter-spacing: .04em;
    }

    body:not(.public-mode) #entryList td:nth-child(1) {
        grid-column: 1 / -1 !important;
        font-size: 16px !important;
        font-weight: 800 !important;
    }

    body:not(.public-mode) #entryList td:nth-child(1)::before { content: "Producto"; }
    body:not(.public-mode) #entryList td:nth-child(2)::before { content: "Cantidad"; }
    body:not(.public-mode) #entryList td:nth-child(3)::before { content: "Costo"; }
    body:not(.public-mode) #entryList td:nth-child(4)::before { content: "Total"; }
    body:not(.public-mode) #entryList td:nth-child(5)::before { content: "Acción"; }

    body:not(.public-mode) #entryList td:nth-child(5) {
        grid-column: 1 / -1 !important;
    }

    body:not(.public-mode) #entryList td button {
        width: 100% !important;
        margin: 4px 0 0 0 !important;
        padding: 10px !important;
        border-radius: 10px !important;
        font-weight: 800 !important;
    }

    body:not(.public-mode) button[onclick="applyEntry()"] {
        border-radius: 12px !important;
        padding: 14px !important;
        font-size: 15px !important;
    }
}

/* INVENTRA MOBILE SALES RESPONSIVE */
@media (max-width: 768px) {
    body:not(.public-mode) #saleCustomer,
    body:not(.public-mode) #saleProductSearch,
    body:not(.public-mode) #saleQuantityInput,
    body:not(.public-mode) #salePriceInput {
        width: 100% !important;
        height: 46px !important;
        padding: 12px !important;
        font-size: 15px !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        color: #0f172a !important;
    }

    body:not(.public-mode) #saleCustomerDropdown,
    body:not(.public-mode) #saleProductDropdown {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 0 0 12px 12px !important;
        box-shadow: 0 12px 26px rgba(15,23,42,0.18) !important;
    }

    body:not(.public-mode) #moduleArea div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    body:not(.public-mode) #saleList {
        max-height: none !important;
        overflow: visible !important;
        margin-top: 14px !important;
    }

    body:not(.public-mode) #saleList table {
        width: 100% !important;
        min-width: 0 !important;
        border-collapse: separate !important;
        border-spacing: 0 10px !important;
    }

    body:not(.public-mode) #saleList tr:first-child {
        display: none !important;
    }

    body:not(.public-mode) #saleList tr {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 14px !important;
        padding: 12px !important;
        margin-bottom: 10px !important;
        box-shadow: 0 8px 22px rgba(15,23,42,0.08) !important;
        text-align: left !important;
    }

    body:not(.public-mode) #saleList td {
        display: block !important;
        border: none !important;
        padding: 4px !important;
        font-size: 14px !important;
        line-height: 1.25 !important;
        color: #0f172a !important;
        word-break: break-word !important;
        text-align: left !important;
    }

    body:not(.public-mode) #saleList td::before {
        display: block;
        font-size: 10px;
        font-weight: 800;
        color: #64748b;
        text-transform: uppercase;
        margin-bottom: 2px;
        letter-spacing: .04em;
    }

    body:not(.public-mode) #saleList td:nth-child(1) {
        grid-column: 1 / -1 !important;
        font-size: 16px !important;
        font-weight: 800 !important;
    }

    body:not(.public-mode) #saleList td:nth-child(1)::before { content: "Producto"; }
    body:not(.public-mode) #saleList td:nth-child(2)::before { content: "Cantidad"; }
    body:not(.public-mode) #saleList td:nth-child(3)::before { content: "Precio"; }
    body:not(.public-mode) #saleList td:nth-child(4)::before { content: "Total"; }
    body:not(.public-mode) #saleList td:nth-child(5)::before { content: "Acción"; }

    body:not(.public-mode) #saleList td:nth-child(5) {
        grid-column: 1 / -1 !important;
    }

    body:not(.public-mode) #saleList td button {
        width: 100% !important;
        margin: 4px 0 0 0 !important;
        padding: 10px !important;
        border-radius: 10px !important;
        font-weight: 800 !important;
    }

    body:not(.public-mode) button[onclick="addSaleItem()"],
    body:not(.public-mode) button[onclick="applySale()"] {
        border-radius: 12px !important;
        padding: 14px !important;
        font-size: 15px !important;
        font-weight: 800 !important;
    }
}

/* INVENTRA DASHBOARD MANUAL REFRESH */
.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

.dashboard-topbar h2 {
    margin: 0;
    color: #ffffff;
}

.dashboard-refresh-btn {
    width: auto !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    background: #38bdf8 !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    box-shadow: 0 8px 18px rgba(56,189,248,0.20) !important;
}

.dashboard-refresh-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .dashboard-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-refresh-btn {
        width: 100% !important;
        padding: 12px !important;
    }
}

/* INVENTRA DASHBOARD LOW STOCK MOBILE CARDS */
@media (max-width: 768px) {
    body:not(.public-mode) #dashboardContent > table:first-of-type {
        min-width: 0 !important;
        width: 100% !important;
        border-collapse: separate !important;
        border-spacing: 0 10px !important;
    }

    body:not(.public-mode) #dashboardContent > table:first-of-type tr:first-child {
        display: none !important;
    }

    body:not(.public-mode) #dashboardContent > table:first-of-type tr {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        gap: 8px !important;
        align-items: center !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 14px !important;
        padding: 12px !important;
        margin-bottom: 10px !important;
        box-shadow: 0 8px 22px rgba(15,23,42,0.08) !important;
    }

    body:not(.public-mode) #dashboardContent > table:first-of-type td {
        display: block !important;
        border: none !important;
        padding: 4px !important;
        color: #0f172a !important;
        font-size: 14px !important;
    }

    body:not(.public-mode) #dashboardContent > table:first-of-type td:first-child::before {
        content: "Producto";
        display: block;
        font-size: 10px;
        font-weight: 800;
        color: #64748b;
        text-transform: uppercase;
        margin-bottom: 2px;
    }

    body:not(.public-mode) #dashboardContent > table:first-of-type td:last-child::before {
        content: "Stock";
        display: block;
        font-size: 10px;
        font-weight: 800;
        color: #64748b;
        text-transform: uppercase;
        margin-bottom: 2px;
        text-align: center;
    }
}


/* INVENTRA PRODUCT SEARCH + PRO SCANNER FINAL */
.product-search-bar {
    position: relative !important;
    width: 100% !important;
    max-width: 620px !important;
    margin: 10px 0 12px 0 !important;
    display: block !important;
}

.product-search-bar input#productsSearch {
    width: 100% !important;
    height: 54px !important;
    padding: 12px 58px 12px 16px !important;
    font-size: 17px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    text-transform: uppercase !important;
    background: #ffffff !important;
    color: #0f172a !important;
}

.scan-product-btn {
    position: absolute !important;
    right: 9px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #0f172a !important;
    border: none !important;
    font-size: 28px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
}

.scan-product-btn:hover {
    background: #e5e7eb !important;
}

/* FULLSCREEN SCANNER */
.scanner-pro-overlay,
.scanner-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    padding: 0 !important;
    background: #000 !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: center !important;
}

.scanner-pro-card {
    width: min(560px, 100vw) !important;
    height: 100vh !important;
    background: #000 !important;
    color: #fff !important;
    overflow: hidden !important;
    position: relative !important;
    border-radius: 0 !important;
}

.scanner-pro-head {
    height: 62px !important;
    background: #0b5fe8 !important;
    display: grid !important;
    grid-template-columns: 56px 1fr 56px !important;
    align-items: center !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
}

.scanner-pro-title {
    text-align: center !important;
    font-size: 22px !important;
    font-weight: 900 !important;
}

.scanner-pro-x,
.scanner-pro-help {
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: #fff !important;
    border: none !important;
    font-size: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.scanner-pro-help {
    font-size: 24px !important;
    font-weight: 900 !important;
    border: 2px solid rgba(255,255,255,.9) !important;
    border-radius: 999px !important;
}

.scanner-video-wrap {
    position: relative !important;
    height: calc(100vh - 132px) !important;
    background: #020617 !important;
    overflow: hidden !important;
}

#productScannerVideo {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    background: #000 !important;
}

.scanner-target {
    position: absolute !important;
    left: 50% !important;
    top: 52% !important;
    width: min(72vw, 330px) !important;
    height: min(30vh, 210px) !important;
    transform: translate(-50%, -50%) !important;
    pointer-events: none !important;
}

.scanner-target .corner {
    position: absolute !important;
    width: 46px !important;
    height: 46px !important;
    border-color: #ffffff !important;
    border-style: solid !important;
}

.scanner-target .tl { left: 0 !important; top: 0 !important; border-width: 4px 0 0 4px !important; }
.scanner-target .tr { right: 0 !important; top: 0 !important; border-width: 4px 4px 0 0 !important; }
.scanner-target .bl { left: 0 !important; bottom: 0 !important; border-width: 0 0 4px 4px !important; }
.scanner-target .br { right: 0 !important; bottom: 0 !important; border-width: 0 4px 4px 0 !important; }

.scanner-cross {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 46px !important;
    font-weight: 300 !important;
    color: #ffffff !important;
}

.scanner-yellow-search {
    position: absolute !important;
    left: 8% !important;
    top: 50% !important;
    width: 84% !important;
    height: 46px !important;
    transform: translateY(-50%) !important;
    border: 4px solid #facc15 !important;
    border-radius: 12px !important;
    box-shadow: 0 0 24px rgba(250,204,21,.9) !important;
    animation: scannerHunt 1.25s ease-in-out infinite !important;
}

.scanner-target.scanner-found .scanner-yellow-search {
    border-color: #22c55e !important;
    box-shadow: 0 0 26px rgba(34,197,94,1) !important;
    animation: none !important;
}

.scanner-target.scanner-found .corner {
    border-color: #22c55e !important;
}

.scanner-tip {
    position: absolute !important;
    top: 28px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-weight: 900 !important;
    font-size: 18px !important;
    padding: 10px 22px !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,.28) !important;
    white-space: nowrap !important;
}

.scanner-pro-card .scanner-close-btn {
    height: 70px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: #0b5fe8 !important;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 900 !important;
}

@keyframes scannerHunt {
    0% { transform: translateY(-88px) scaleX(.82); opacity: .55; }
    50% { transform: translateY(44px) scaleX(1); opacity: 1; }
    100% { transform: translateY(-88px) scaleX(.82); opacity: .55; }
}

@media (max-width: 768px) {
    .product-search-bar {
        max-width: 100% !important;
    }

    .product-search-bar input#productsSearch {
        height: 54px !important;
        font-size: 16px !important;
        padding-right: 56px !important;
    }

    .scan-product-btn {
        right: 8px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 28px !important;
    }
}

