@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-ext-variable.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-variable.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Figtree";
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("../fonts/figtree-latin-ext-variable.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Figtree";
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("../fonts/figtree-latin-variable.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 1. Global variables and design tokens */
:root {
    color-scheme: light;
    --color-brand: #c62828;
    --color-brand-hover: #a91f1f;
    --color-ink: #172033;
    --color-muted: #68758a;
    --color-border: #e3e8f0;
    --color-page: #f4f7fb;
    --color-surface: #ffffff;
    --color-danger: #b42318;
    --color-success: #137547;
    --color-warning: #965900;
    --font-family-base: "Figtree", "Inter", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --font-family-display: "Figtree", "Inter", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --radius-small: 0.5rem;
    --radius-medium: 0.75rem;
    --radius-large: 1rem;
    --shadow-card: 0 10px 30px rgba(20, 35, 65, 0.055);
    --inv-ink: var(--color-ink);
    --inv-muted: var(--color-muted);
    --inv-border: var(--color-border);
    --inv-bg: var(--color-page);
    --inv-primary: var(--color-brand);
    --inv-primary-hover: var(--color-brand-hover);
    --inv-red: var(--color-danger);
    --inv-green: var(--color-success);
    --inv-radius: var(--radius-large);
    --inv-shadow: var(--shadow-card);
    --shop-red: var(--color-brand);
    --shop-ink: var(--color-ink);
    --shop-muted: var(--color-muted);
    --shop-line: var(--color-border);
}

/* Storefront base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-kerning: normal;
    line-height: 1.55;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-display);
    text-wrap: pretty;
}

button,
input,
select,
textarea {
    font: inherit;
}



.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: #f5f5f5;
    gap: 30px;
}

.logo {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.logo span {
    color: red;
}

.logo .pp {
    font-size: 12px;
    color: gray;
}

.header .imge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.header .imge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}




.search {
    display: flex;
    width: 40%;
    max-width: 500px;
}

.search input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    outline: none;
}

.search button {
    padding: 10px 18px;
    background: red;
    color: white;
    border: none;
    cursor: pointer;
}

.cart {
    font-size: 18px;
    white-space: nowrap;
}




.navbar {
    background: red;
    padding: 18px;
}

.navbar ul {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 20px;
}

.navbar ul a {
    color: white;
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
}

.navbar ul i {
    font-size: 20px;
    color: white;
}




.hero {
    display: flex;
    align-items: center;
    padding: 70px;
    background-image: url("../image/WhatsApp Image 2026-08-13 at 12.13.18 (24).jpeg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 300px;
}

.text {
    font-size: 20px;
}

.hero span {
    color: red;
}

.hero .text p {
    margin-top: 10px;
}

.hero .text button {
    padding: 10px 20px;
    background: red;
    color: white;
    border: none;
    margin-top: 15px;
    border-radius: 5px;
    cursor: pointer;
}

.hero .text button a {
    text-decoration: none;
    color: white;
    font-size: 13px;
}




.product {
    text-align: center;
    padding: 40px 30px;
}

.product h2 {
    font-size: 30px;
    margin-bottom: 25px;
}



.pro-cont {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}




.cat {
    border: 1px solid #ddd;
    border-radius: 10px;
    transition: 0.3s;
    padding: 15px;
    font-size: 13px;
    background: white;
    overflow: hidden;
}

.cat:hover {
    transform: scale(1.03);
}

.cat img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.cat h3 {
    margin-top: 12px;
    font-size: 18px;
}

.cat p {
    margin: 8px 0;
    color: #666;
    line-height: 1.4;
}

.cat h4 {
    color: red;
    font-size: 16px;
    margin: 10px 0;
}

.cat button {
    padding: 10px;
    color: white;
    background: red;
    border: none;
    width: 80%;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.cat button i {
    margin-right: 5px;
}




.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 30px;
    background: #eee;
    justify-content: center;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.features .image {
    font-size: 25px;
}

.feature-item h5 {
    font-size: 15px;
}

.feature-item p {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}




.foo {
    background: black;
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.foo p {
    font-size: 14px;
}

.foo .media {
    display: flex;
    gap: 25px;
    justify-content: center;
    font-size: 25px;
}

.foo .media .image {
    cursor: pointer;
}




@media (max-width: 900px) {

    .header {
        padding: 15px 20px;
        gap: 15px;
    }

    .search {
        width: 35%;
    }

    .cart {
        font-size: 14px;
    }

    .pro-cont {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }

}




@media (max-width: 768px) {

    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .logo {
        justify-content: center;
    }

    .search {
        width: 100%;
        max-width: 500px;
    }

    .cart {
        font-size: 16px;
    }




    .navbar {
        padding: 15px;
    }

    .navbar ul {
        gap: 15px;
    }




    .hero {
        justify-content: center;
        text-align: center;
        padding: 50px 20px;
        min-height: 280px;
    }

    .text {
        font-size: 16px;
    }




    .product {
        padding: 30px 15px;
    }

    .product h2 {
        font-size: 25px;
    }

    .pro-cont {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .cat {
        padding: 10px;
    }

    .cat img {
        height: 160px;
    }

}




@media (max-width: 480px) {

    .logo h2 {
        font-size: 18px;
    }

    .logo .pp {
        font-size: 10px;
    }

    .header .imge {
        width: 50px;
        height: 50px;
    }


    .navbar ul {
        flex-direction: column;
        gap: 12px;
    }


    .hero {
        min-height: 250px;
        padding: 30px 15px;
    }

    .hero .text h1 {
        font-size: 22px;
    }

    .hero .text p {
        font-size: 14px;
    }




    .pro-cont {
        grid-template-columns: 1fr;
        max-width: 350px;
    }

    .cat img {
        height: 200px;
    }




    .features {
        grid-template-columns: 1fr;
        padding: 25px 15px;
    }

    .feature-item {
        justify-content: flex-start;
        max-width: 300px;
        margin: auto;
        width: 100%;
    }




    .foo {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }

    .foo p {
        font-size: 12px;
        line-height: 1.6;
    }

    .foo .media {
        margin: 0;
        font-size: 24px;
    }

}


/* Storefront components and responsive layout */
.inventory-shortcuts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 16px 24px;
    background: #fff4f4;
    border-bottom: 1px solid #ffdada;
}
.inventory-shortcuts div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-right: 12px;
}
.inventory-shortcuts strong {
    font-size: 15px;
    color: #242424;
}
.inventory-shortcuts span {
    font-size: 12px;
    color: #666;
}
.inventory-shortcuts>a,.home-inventory-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: #fff;
    color: #d60000;
    border: 1px solid #f2bcbc;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
}
.inventory-shortcuts>a:hover,.home-inventory-cta:hover {
    background: #d60000;
    color: #fff;
}
.home-inventory-cta {
    margin-top: 15px;
}
@media(max-width:700px) {
    .header {
        padding: 15px;
        flex-wrap: wrap;
    }
    .search {
        width: 100%;
        max-width: none;
    }
    .cart {
        font-size: 14px;
    }
    .hero {
        padding: 35px 22px;
    }
    .pro-cont {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .inventory-shortcuts {
        align-items: stretch;
        flex-direction: column;
    }
    .inventory-shortcuts>a {
        justify-content: center;
    }
}
@media(max-width:420px) {
    .pro-cont {
        grid-template-columns: 1fr;
    }
}

/* Responsive storefront shortcuts and navigation */
@media (max-width: 700px) {
    .navbar {
        padding: 14px 10px;
    }
    .navbar ul {
        gap: 12px;
    }
    .navbar ul a {
        font-size: 14px;
    }
}

/* SmartShop storefront refresh â€” external CSS */
body:not(.inventory-page) {
    color:var(--shop-ink);
    background:#fff;
    font-family:var(--font-family-base);
    line-height:1.5;
}
.header {
    padding:16px clamp(16px,4vw,56px);
    gap:24px;
    background:#fff;
    border-bottom:1px solid var(--shop-line);
}
.logo h2 {
    letter-spacing:-.8px;
    font-weight:850;
}
.logo span {
    color:var(--shop-red);
}
.logo .pp {
    margin-top:2px;
}
.header .imge {
    border-radius:14px;
    box-shadow:0 5px 14px #17203312;
}
.search input {
    border:1px solid #dce3ec;
    border-radius:11px 0 0 11px;
    padding:13px 15px;
}
.search button {
    border-radius:0 11px 11px 0;
    background:var(--shop-red);
}
.cart {
    border:1px solid var(--shop-line);
    border-radius:11px;
    padding:11px 14px;
    color:#344054;
    font-size:14px;
}
.navbar {
    background:#a91f1f;
    padding:13px 20px;
}
.navbar ul {
    gap:8px;
}
.navbar ul a {
    display:inline-flex;
    padding:9px 13px;
    border-radius:9px;
    font-weight:650;
}
.navbar ul a:hover {
    background:#ffffff20;
}
.inventory-shortcuts {
    padding:20px clamp(16px,4vw,56px);
    background:#fff7f7;
    border-color:#f3dddd;
}
.inventory-shortcuts>a,.home-inventory-cta {
    border-radius:10px;
    color:#a91f1f;
    border-color:#efcccc;
}
.hero {
    min-height:360px;
    padding:clamp(32px,6vw,80px);
    background-color:#fff6f6;
}
.hero .text {
    max-width:600px;
}
.hero .text h1 {
    font-size:clamp(32px,4.5vw,54px);
    line-height:1.08;
    letter-spacing:-1.6px;
    font-weight:850;
}
.hero .text p {
    color:#5c6678;
    font-size:17px;
}
.hero span {
    color:var(--shop-red);
}
.hero .text button,.cat button {
    border-radius:10px;
    background:var(--shop-red);
    font-weight:750;
    transition:transform .18s,box-shadow .18s;
}
.hero .text button:hover,.cat button:hover {
    transform:translateY(-1px);
    box-shadow:0 7px 18px #c6282829;
}
.product {
    padding:54px clamp(16px,4vw,56px);
    background:#fbfcfe;
}
.product h2 {
    font-size:clamp(25px,3vw,34px);
    letter-spacing:-.9px;
}
.pro-cont {
    gap:18px;
}
.cat {
    border:1px solid var(--shop-line);
    border-radius:16px;
    padding:16px;
    box-shadow:0 5px 18px #17203306;
}
.cat:hover {
    transform:translateY(-3px);
    box-shadow:0 12px 28px #17203312;
}
.cat img {
    background:#f6f7f9;
}
.cat h4 {
    color:var(--shop-red);
    font-size:17px;
}
.cat button {
    width:100%;
}
.features {
    padding:26px clamp(16px,4vw,56px);
    background:#fff;
    gap:22px;
}
.features .image {
    border-radius:14px;
}
.foo {
    padding:22px clamp(16px,4vw,56px);
    background:#151b28;
    color:#e6eaf0;
}
.foo .media .image {
    border-radius:50%;
}
@media (max-width: 850px) {
    .header {
        flex-wrap: wrap;
    }

    .search {
        order: 3;
        width: 100%;
        max-width: none;
    }

    .cart {
        margin-left: auto;
    }

    .features {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .navbar ul {
        justify-content: flex-start;
        gap: 4px;
    }

    .navbar ul a {
        padding: 8px 9px;
        font-size: 12px;
    }

    .hero {
        min-height: 300px;
    }

    .hero .text p {
        font-size: 15px;
    }

    .product {
        padding-top: 36px;
        padding-bottom: 36px;
    }
}

/* SmartShop landing page */
.storefront-page {
    min-width: 320px;
    background: var(--color-surface);
}

.storefront-page .header {
    min-height: 82px;
    padding: 12px clamp(20px, 6vw, 88px);
}

.storefront-page .logo {
    gap: 13px;
    color: var(--color-ink);
    text-decoration: none;
}

.storefront-page .logo .imge {
    display: block;
    width: 52px;
    height: 52px;
}

.storefront-page .storefront-wordmark {
    display: block;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.8px;
}

.storefront-page .storefront-wordmark span,
.storefront-page .storefront-footer-brand span {
    color: var(--color-brand);
}

.storefront-page .logo .pp {
    display: block;
    color: var(--color-muted);
    font-size: 12px;
}

.storefront-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.storefront-login:hover {
    border-color: var(--color-brand);
    color: var(--color-brand);
    background: #fff7f7;
}

.storefront-page .navbar {
    padding: 0 clamp(20px, 6vw, 88px);
    background: #fff;
    border-top: 1px solid #f0f1f4;
    border-bottom: 1px solid var(--color-border);
}

.storefront-page .navbar ul {
    min-height: 54px;
    justify-content: flex-start;
    gap: 8px;
}

.storefront-page .navbar ul a {
    min-height: 40px;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    color: #475467;
    font-size: 13px;
    font-weight: 650;
}

.storefront-page .navbar ul a[aria-current="page"],
.storefront-page .navbar ul a:hover {
    color: var(--color-brand);
    background: #fff3f3;
}

.storefront-page .navbar ul i {
    color: inherit;
    font-size: 13px;
}

.storefront-page .storefront-hero {
    position: relative;
    min-height: 490px;
    align-items: center;
    padding: clamp(44px, 7vw, 92px) clamp(24px, 9vw, 132px);
    overflow: hidden;
    background-color: #171d2b;
    background-image:
        linear-gradient(90deg, rgba(17, 23, 36, 0.96) 0%, rgba(17, 23, 36, 0.87) 46%, rgba(17, 23, 36, 0.22) 100%),
        url("../image/WhatsApp Image 2026-08-13 at 12.13.18 (24).jpeg");
    background-position: center;
    background-size: cover;
    color: #fff;
}

.storefront-hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.storefront-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    color: var(--color-brand);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.storefront-hero .storefront-eyebrow {
    color: #ffd1d1;
}

.storefront-hero .storefront-eyebrow span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f45b5b;
}

.storefront-hero h1 {
    max-width: 650px;
    color: #fff;
    font-size: clamp(40px, 6vw, 70px);
    font-weight: 800;
    letter-spacing: -2.7px;
    line-height: 1.04;
}

.storefront-hero h1 span {
    color: #ff7777;
}

.storefront-hero-copy {
    max-width: 520px;
    margin-top: 20px;
    color: #e0e4eb;
    font-size: clamp(15px, 1.7vw, 18px);
    line-height: 1.7;
}

.storefront-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 27px;
}

.storefront-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.storefront-button:hover {
    transform: translateY(-2px);
}

.storefront-button-primary {
    background: var(--color-brand);
    color: #fff;
}

.storefront-button-primary:hover {
    background: var(--color-brand-hover);
}

.storefront-button-light {
    border-color: #ffffff70;
    color: #fff;
}

.storefront-button-light:hover {
    border-color: #fff;
    background: #ffffff14;
}

.storefront-hero-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 19px;
    color: #d3d8e1;
    font-size: 12px;
}

.storefront-hero-note i {
    color: #ffaaaa;
}

.storefront-hero-mark {
    position: absolute;
    right: clamp(28px, 10vw, 150px);
    bottom: -62px;
    color: #ffffff12;
    font-size: clamp(190px, 28vw, 360px);
    transform: rotate(-12deg);
}

.storefront-page .storefront-products {
    padding: 72px clamp(20px, 7vw, 100px) 78px;
    background: #f8fafc;
    text-align: left;
}

.storefront-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    max-width: 1240px;
    margin: 0 auto 30px;
}

.storefront-section-heading .storefront-eyebrow,
.storefront-platform .storefront-eyebrow {
    margin-bottom: 8px;
}

.storefront-section-heading h2,
.storefront-platform-heading h2 {
    margin: 0;
    color: var(--color-ink);
    font-size: clamp(27px, 3.5vw, 38px);
    letter-spacing: -1.3px;
}

.storefront-section-heading > p {
    max-width: 360px;
    margin-bottom: 4px;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.6;
}

.storefront-page .pro-cont {
    max-width: 1240px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.storefront-page .cat {
    padding: 0;
    border-color: #e8ebf0;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 7px 22px #17203308;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.storefront-page .cat:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px #17203312;
}

.storefront-product-image {
    position: relative;
    overflow: hidden;
    background: #f1f3f6;
}

.storefront-page .storefront-product-image img {
    display: block;
    width: 100%;
    height: 205px;
    border-radius: 0;
    object-fit: cover;
    transition: transform 250ms ease;
}

.storefront-page .cat:hover .storefront-product-image img {
    transform: scale(1.035);
}

.storefront-product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 9px;
    border: 1px solid #ffffffb8;
    border-radius: 20px;
    background: #ffffffed;
    color: #475467;
    font-size: 10px;
    font-weight: 750;
}

.storefront-product-copy {
    padding: 17px;
}

.storefront-page .cat h3 {
    margin: 0;
    color: var(--color-ink);
    font-size: 17px;
}

.storefront-page .cat p {
    min-height: 40px;
    margin: 7px 0 15px;
    color: var(--color-muted);
    font-size: 13px;
}

.storefront-product-price {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #eef0f3;
}

.storefront-product-price span {
    color: var(--color-muted);
    font-size: 10px;
}

.storefront-product-price strong {
    color: var(--color-brand);
    font-size: 15px;
}

.storefront-platform {
    padding: 76px clamp(20px, 7vw, 100px) 82px;
    background: #fff;
}

.storefront-platform-heading {
    max-width: 1240px;
    margin: 0 auto 30px;
}

.storefront-platform-heading > p:last-child {
    margin-top: 9px;
    color: var(--color-muted);
    font-size: 14px;
}

.storefront-feature-grid {
    display: grid;
    max-width: 1240px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0 auto;
}

.storefront-feature {
    padding: 22px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: #fff;
}

.storefront-feature-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: #fff1f1;
    color: var(--color-brand);
}

.storefront-feature h3 {
    margin-top: 16px;
    color: var(--color-ink);
    font-size: 15px;
}

.storefront-feature p {
    margin-top: 7px;
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.6;
}

.storefront-workspace-link {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    margin: 28px auto 0;
    color: var(--color-brand);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.storefront-workspace-link:hover {
    color: var(--color-brand-hover);
}

.storefront-page .storefront-footer {
    min-height: 100px;
    padding: 24px clamp(20px, 7vw, 100px);
    background: #171d2b;
}

.storefront-footer-brand {
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.6px;
    text-decoration: none;
}

.storefront-page .storefront-footer-brand span {
    color: #ff7777;
}

.storefront-page .storefront-footer p {
    color: #c4cad4;
    font-size: 12px;
}

.storefront-footer p span {
    display: block;
    margin-top: 3px;
    color: #929bab;
}

.storefront-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.storefront-contact a {
    color: #e0e4eb;
    font-size: 12px;
    text-decoration: none;
}

.storefront-contact a:hover {
    color: #ffaaaa;
}

@media (max-width: 900px) {
    .storefront-page .pro-cont,
    .storefront-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .storefront-page .storefront-hero {
        min-height: 440px;
        background-position: 60% center;
    }

    .storefront-page .storefront-footer {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .storefront-page .header {
        min-height: 70px;
        padding: 10px 16px;
        flex-direction: row;
        text-align: left;
    }

    .storefront-page .logo {
        justify-content: flex-start;
    }

    .storefront-page .logo .imge {
        width: 44px;
        height: 44px;
    }

    .storefront-page .storefront-wordmark {
        font-size: 19px;
    }

    .storefront-login {
        min-height: 38px;
        padding: 0 11px;
        font-size: 12px;
    }

    .storefront-page .navbar {
        padding: 0 10px;
    }

    .storefront-page .navbar ul {
        min-height: 48px;
        flex-direction: row;
        justify-content: center;
        gap: 2px;
    }

    .storefront-page .navbar ul a {
        min-height: 36px;
        padding: 7px 8px;
        font-size: 11px;
    }

    .storefront-page .storefront-hero {
        min-height: 430px;
        justify-content: flex-start;
        padding: 50px 22px;
        background-image:
            linear-gradient(90deg, rgba(17, 23, 36, 0.94), rgba(17, 23, 36, 0.7)),
            url("../image/WhatsApp Image 2026-08-13 at 12.13.18 (24).jpeg");
        background-position: 58% center;
        text-align: left;
    }

    .storefront-hero h1 {
        font-size: clamp(42px, 11vw, 60px);
        letter-spacing: -2px;
    }

    .storefront-hero-copy {
        font-size: 15px;
    }

    .storefront-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .storefront-button {
        width: 100%;
    }

    .storefront-hero-note {
        align-items: flex-start;
        line-height: 1.5;
    }

    .storefront-page .storefront-products,
    .storefront-platform {
        padding: 48px 18px;
    }

    .storefront-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
        margin-bottom: 22px;
    }

    .storefront-section-heading > p {
        font-size: 13px;
    }

    .storefront-page .pro-cont {
        gap: 12px;
    }

    .storefront-page .storefront-product-image img {
        height: 145px;
    }

    .storefront-product-copy {
        padding: 12px;
    }

    .storefront-page .cat h3 {
        font-size: 14px;
    }

    .storefront-page .cat p {
        min-height: 54px;
        font-size: 11px;
    }

    .storefront-product-price {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .storefront-product-price strong {
        font-size: 13px;
    }

    .storefront-feature-grid {
        gap: 10px;
    }

    .storefront-feature {
        padding: 15px;
    }

    .storefront-feature h3 {
        font-size: 13px;
    }

    .storefront-feature p {
        font-size: 11px;
    }

    .storefront-page .storefront-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}


/* Inventory layout and shared components */
.inventory-page {
    margin: 0;
    background: var(--inv-bg);
    color: var(--inv-ink);
    font-family: var(--font-family-base);
    min-height: 100vh;
}
.inv-topbar {
    height: 68px;
    background: #fff;
    border-bottom: 1px solid var(--inv-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(18px,5vw,64px);
    gap: 20px;
}
.inv-brand {
    font-weight: 800;
    font-size: 20px;
    color: var(--inv-ink);
    text-decoration: none;
    letter-spacing: -.5px;
}
.inv-brand span {
    font-weight: 500;
    color: var(--inv-muted);
    font-size: 14px;
    margin-left: 5px;
}
.inv-topbar nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.inv-topbar nav a {
    padding: 10px 13px;
    border-radius: 9px;
    color: var(--inv-muted);
    font-size: 14px;
    text-decoration: none;
}
.inv-topbar nav a.active,.inv-topbar nav a:hover {
    background: #edf2ff;
    color: var(--inv-primary);
}
.nav-count {
    font-size: 11px;
    border-radius: 20px;
    background: #fee4e2;
    color: var(--inv-red);
    padding: 2px 6px;
    margin-left: 4px;
}
.inv-container {
    width: min(1240px,92%);
    margin: 38px auto 60px;
}
.inv-form-container {
    max-width: 940px;
}
.inv-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}
.inv-heading h1 {
    font-size: clamp(28px,3vw,36px);
    letter-spacing: -1px;
    margin: 3px 0 8px;
}
.eyebrow {
    font-size: 11px;
    letter-spacing: 1.5px;
    font-weight: 800;
    color: var(--inv-primary);
    margin: 0;
}
.muted {
    color: var(--inv-muted);
    font-size: 14px;
    margin: 0;
}
.inv-card {
    background: #fff;
    border: 1px solid var(--inv-border);
    border-radius: 16px;
    box-shadow: 0 4px 18px #1e293b08;
    overflow: hidden;
}
.filter-row {
    display: flex;
    gap: 10px;
    padding: 18px;
    border-bottom: 1px solid var(--inv-border);
    align-items: center;
}
.search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--inv-border);
    border-radius: 9px;
    padding: 0 12px;
    flex: 1;
    min-width: 180px;
}
.search-field span {
    font-size: 22px;
    color: var(--inv-muted);
}
.search-field input {
    border: 0!important;
    outline: 0!important;
    padding-left: 0!important;
}
.filter-row input,.filter-row select,.product-form input,.product-form select {
    font: inherit;
    color: var(--inv-ink);
    background: #fff;
    border: 1px solid #dce2eb;
    border-radius: 9px;
    padding: 11px 12px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}
.filter-row select {
    width: auto;
    min-width: 150px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 9px;
    padding: 11px 15px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
.btn-primary {
    background: var(--inv-primary);
    color: #fff;
}
.btn-primary:hover {
    background: #1d46b1;
}
.btn-secondary {
    background: #eaf0ff;
    color: var(--inv-primary);
}
.btn-plain {
    background: #fff;
    border: 1px solid var(--inv-border);
    color: var(--inv-ink);
}
.table-wrap {
    width: 100%;
    overflow-x: auto;
}
table {
    border-collapse: collapse;
    width: 100%;
    white-space: nowrap;
    font-size: 13px;
}
th {
    text-align: left;
    background: #fafbfd;
    color: var(--inv-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 800;
}
th,td {
    padding: 15px 17px;
    border-bottom: 1px solid #edf0f4;
}
tbody tr:last-child td {
    border-bottom: 0;
}
tbody tr:hover {
    background: #fbfcff;
}
td strong {
    display: block;
    font-size: 13px;
}
td small {
    display: block;
    color: var(--inv-muted);
    font-size: 11px;
    margin-top: 4px;
}
.stock-pill,.status-pill {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
}
.stock-ok,.status-active {
    background: #e7f7ee;
    color: var(--inv-green);
}
.stock-low {
    background: #fff0d6;
    color: #965900;
}
.stock-zero {
    background: #fee4e2;
    color: var(--inv-red);
}
.status-inactive {
    background: #edf0f5;
    color: #5e6878;
}
.low-note {
    color: var(--inv-red)!important;
}
.actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.actions a:not(.btn),.text-action,td a:not(.btn) {
    font: inherit;
    font-weight: 700;
    color: var(--inv-primary);
    text-decoration: none;
}
.actions form {
    margin: 0;
}
.text-action {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.table-footer {
    padding: 13px 18px;
    border-top: 1px solid var(--inv-border);
    font-size: 12px;
    color: var(--inv-muted);
}
.empty-state {
    text-align: center;
    padding: 42px 18px;
    color: var(--inv-muted);
}
.alert {
    padding: 13px 16px;
    border-radius: 10px;
    margin: 0 0 18px;
    font-size: 14px;
}
.alert.success {
    background: #e7f7ee;
    color: #12683e;
}
.alert.error {
    background: #fee4e2;
    color: #912018;
}
.alert.warning {
    background: #fff0d6;
    color: #875000;
}
.product-form {
    padding: 25px;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px;
}
.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
}
.form-grid small {
    font-weight: 400;
    font-size: 11px;
    line-height: 1.5;
    color: var(--inv-muted);
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--inv-border);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
    margin-bottom: 22px;
}
.stat-card {
    background: #fff;
    border: 1px solid var(--inv-border);
    border-radius: 14px;
    padding: 20px;
}
.stat-card span {
    display: block;
    font-size: 13px;
    color: var(--inv-muted);
}
.stat-card strong {
    display: block;
    font-size: 30px;
    margin-top: 7px;
}
.stat-danger strong {
    color: var(--inv-red);
}
.card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--inv-border);
    gap: 12px;
}
.card-title h2 {
    font-size: 17px;
    margin: 0;
}
.card-title .muted {
    font-size: 12px;
}
@media(max-width:760px) {
    .inv-topbar {
        padding: 0 4%;
        height: auto;
        min-height: 65px;
        flex-wrap: wrap;
    }
    .inv-topbar nav {
        width: 100%;
        padding-bottom: 8px;
    }
    .inv-topbar nav a {
        padding: 8px;
    }
    .inv-container {
        margin-top: 25px;
    }
    .inv-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .filter-row {
        flex-wrap: wrap;
    }
    .search-field {
        flex-basis: 100%;
    }
    .filter-row select {
        flex: 1;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .product-form {
        padding: 18px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .card-title {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Shared enterprise polish and externalized layout utilities */
.user-identity {
    font-size: 12px;
    margin-left: 10px;
}
.logout-form {
    display: inline;
    margin-left: 8px;
}
.section-heading {
    margin-top: 0;
}
.user-count {
    font-weight: 400;
}
.user-form-intro {
    margin-bottom: 18px;
}
.user-footnote {
    margin-top: 16px;
    font-size: 12px;
}
.date-filter--spaced {
    margin-bottom: 20px;
}
.report-range-meta {
    margin-left: auto;
}
.sale-product-heading {
    min-width: 190px;
}
.sale-fields--spaced {
    margin-top: 18px;
}
.sale-date-field {
    flex: 1;
}
/* "From" / "To" are words, not the search icon: normal size, one line. */
.search-field.sale-date-field > span {
    flex: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}
.search-field.sale-date-field > input {
    flex: 1 1 auto;
    min-width: 0;
}
.sale-page .sale-toolbar > .btn {
    flex-shrink: 0;
    white-space: nowrap;
}
/* Recent sales filter: the dates wrap instead of squeezing each other. */
.filter-row.sale-filter {
    flex-wrap: wrap;
}
.filter-row.sale-filter > .sale-date-field {
    flex: 1 1 210px;
    min-width: 0;
}
.filter-row.sale-filter > select,
.filter-row.sale-filter > .btn {
    flex: 0 1 auto;
}
@media (max-width: 600px) {
    .filter-row.sale-filter > .sale-date-field,
    .filter-row.sale-filter > select,
    .filter-row.sale-filter > .btn {
        flex: 1 1 100%;
        width: 100%;
    }
}
.receipt-brand-accent {
    color: var(--inv-primary);
}
.receipt-reference {
    text-align: right;
}
.receipt-notes {
    margin-top: 20px;
}
.login-account-note {
    margin-top: 18px;
    font-size: 13px;
}

:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid rgba(36, 87, 214, .28);
    outline-offset: 2px;
}
.btn {
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:active {
    transform: translateY(1px);
}
.table-wrap {
    scrollbar-width: thin;
}
.inv-topbar nav {
    flex-wrap: wrap;
}
@media (max-width: 900px) {
    .inv-topbar {
        height: auto;
        min-height: 68px;
        padding-top: 14px;
        padding-bottom: 14px;
        flex-wrap: wrap;
    }
    .inv-topbar nav {
        width: 100%;
        gap: 5px;
    }
    .inv-topbar nav a {
        padding: 9px 10px;
    }
    .user-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 640px) {
    .inv-container {
        width: min(100% - 24px, 1240px);
        margin-top: 22px;
    }
    .inv-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .filter-row {
        flex-wrap: wrap;
        padding: 12px;
    }
    .search-field {
        min-width: 100%;
    }
    .btn {
        min-height: 40px;
    }
}


/* Authentication */
.login-wrap {
    min-height:75vh;
    display:grid;
    place-items:center;
    padding:28px 16px;
}
    .login-card {
        width:min(440px,100%);
        background:#fff;
        border:1px solid var(--inv-border,#e5e7eb);
        border-radius:16px;
        padding:28px;
        box-shadow:0 12px 32px rgba(15,23,42,.06);
    }
    .login-card label {
        display:block;
        margin:16px 0 6px;
        font-weight:600;
    }
    .login-card input {
        width:100%;
        box-sizing:border-box;
        padding:12px;
        border:1px solid #cbd5e1;
        border-radius:8px;
    }
    .login-card button {
        width:100%;
        margin-top:20px;
    }

.login-card h1 {
    margin: 8px 0;
    letter-spacing: -.04em;
}
.login-card input:focus {
    border-color: var(--inv-primary);
    outline: 3px solid rgba(36,87,214,.12);
}


/* Sales and point of sale */
.sale-layout {
    display: grid;
    grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr);
    gap: 20px;
    align-items: start;
}
.sale-panel {
    padding: 20px;
}
.sale-lines {
    width: 100%;
    border-collapse: collapse;
}
.sale-lines th,.sale-lines td {
    padding: 9px 7px;
    border-bottom: 1px solid #edf0f4;
    text-align: left;
}
.sale-lines select,.sale-lines input,.sale-fields select,.sale-fields input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dce2eb;
    border-radius: 8px;
    padding: 10px;
    font: inherit;
    background: #fff;
}
.sale-lines .qty {
    min-width: 75px;
}
.sale-lines .remove {
    border: 0;
    background: #fee4e2;
    color: #b42318;
    border-radius: 7px;
    padding: 8px;
    cursor: pointer;
}
.sale-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.sale-fields {
    display: grid;
    gap: 14px;
}
.sale-fields label {
    display: grid;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
}
.sale-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f4;
}
.sale-total.final {
    font-size: 18px;
    font-weight: 800;
    border-bottom: 0;
}
.sale-total.final strong {
    color: #2457d6;
}
.sale-note {
    font-size: 12px;
    color: #697386;
    line-height: 1.5;
}
.sale-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}
.sale-actions button {
    font: inherit;
}
.sale-table-total {
    font-weight: 800;
}
.sale-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.sale-head h2 {
    margin: 0;
    font-size: 17px;
}
@media(max-width:900px) {
    .sale-layout {
        grid-template-columns: 1fr;
    }
}
@media(max-width:560px) {
    .sale-panel {
        padding: 12px;
    }
    .sale-lines th,.sale-lines td {
        padding: 7px 4px;
    }
    .sale-lines select,.sale-lines input {
        padding: 8px;
    }
    .sale-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 800px) {
    .sale-layout {
        grid-template-columns: 1fr;
    }
}


/* Reports and analytics */
.report-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.report-stat {
    background: #fff;
    border: 1px solid var(--inv-border);
    border-radius: 14px;
    padding: 18px;
    min-width: 0;
}
.report-stat .label {
    color: var(--inv-muted);
    font-size: 12px;
    display: block;
}
.report-stat strong {
    display: block;
    font-size: clamp(19px,2vw,26px);
    letter-spacing: -.5px;
    margin-top: 8px;
    overflow-wrap: anywhere;
}
.report-stat small {
    display: block;
    font-size: 11px;
    color: var(--inv-muted);
    margin-top: 7px;
}
.report-panels {
    display: grid;
    grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr);
    gap: 18px;
    margin-bottom: 18px;
}
.report-panel {
    background: #fff;
    border: 1px solid var(--inv-border);
    border-radius: 15px;
    overflow: hidden;
    min-width: 0;
}
.report-panel-head {
    padding: 18px 20px;
    border-bottom: 1px solid var(--inv-border);
}
.report-panel-head h2 {
    margin: 0;
    font-size: 16px;
}
.report-panel-head p {
    margin: 5px 0 0;
    color: var(--inv-muted);
    font-size: 12px;
}
.date-filter {
    display: flex;
    gap: 10px;
    align-items: end;
    flex-wrap: wrap;
}
.date-filter label {
    display: grid;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--inv-muted);
}
.date-filter input {
    font: inherit;
    border: 1px solid #dce2eb;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    color: var(--inv-ink);
}
.date-filter .btn {
    height: 38px;
}
.chart {
    display: grid;
    grid-template-columns: repeat(7,minmax(0,1fr));
    gap: 10px;
    align-items: end;
    padding: 24px 18px 14px;
    min-height: 180px;
}
.chart-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    gap: 8px;
    height: 150px;
    min-width: 0;
}
.chart-value {
    font-size: 10px;
    color: var(--inv-muted);
    text-align: center;
    overflow-wrap: anywhere;
}
.chart-track {
    height: 105px;
    width: min(28px,100%);
    display: flex;
    align-items: end;
    background: #f0f3f9;
    border-radius: 7px;
    overflow: hidden;
}
.chart-bar {
    width: 100%;
    min-height: 2px;
    background: #315edb;
    border-radius: 7px 7px 0 0;
}
.chart-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--inv-muted);
}
.chart-caption {
    padding: 0 18px 18px;
    color: var(--inv-muted);
    font-size: 11px;
}
.profit-list {
    padding: 8px 20px 16px;
}
.profit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f4;
    font-size: 13px;
}
.profit-row:last-child {
    border-bottom: 0;
}
.profit-row span {
    color: var(--inv-muted);
}
.profit-row strong {
    text-align: right;
}
.profit-row.total {
    font-weight: 800;
    font-size: 15px;
}
.profit-row.total strong {
    color: var(--inv-primary);
}
.report-bottom {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 18px;
}
.report-note {
    font-size: 11px;
    color: var(--inv-muted);
    line-height: 1.5;
    padding: 0 20px 18px;
}
.report-tools {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.report-tools .btn {
    padding: 9px 12px;
}
@media(max-width:950px) {
    .report-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .report-panels,.report-bottom {
        grid-template-columns: 1fr;
    }
}
@media(max-width:560px) {
    .report-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }
    .report-stat {
        padding: 13px;
    }
    .report-stat strong {
        font-size: 18px;
    }
    .date-filter label {
        flex: 1;
        min-width: 130px;
    }
    .chart {
        gap: 5px;
        padding-inline: 9px;
    }
    .chart-value {
        font-size: 9px;
    }
}
@media print {
    body.reporting-page .inv-topbar,
    body.reporting-page .date-filter,
    body.reporting-page .report-tools,
    body.reporting-page .no-print {
        display: none!important;
    }
    body.reporting-page {
        background: #fff;
    }
    body.reporting-page .inv-container {
        width: 100%;
        margin: 0;
    }
    body.reporting-page .report-stat,
    body.reporting-page .report-panel {
        box-shadow: none;
        break-inside: avoid;
    }
    body.reporting-page .report-grid {
        grid-template-columns: repeat(4,1fr);
    }
}


/* Stock alerts */
/* User management */
.user-grid {
    display:grid;
    grid-template-columns:minmax(280px,.8fr) minmax(0,1.5fr);
    gap:20px;
    align-items:start;
}
        .user-panel {
            background:#fff;
            border:1px solid var(--inv-border);
            border-radius:16px;
            padding:22px;
        }
        .user-form {
            display:grid;
            gap:14px;
        }
        .user-form label {
            display:grid;
            gap:7px;
            font-size:13px;
            font-weight:700;
        }
        .user-form input,.user-form select {
            width:100%;
            box-sizing:border-box;
            border:1px solid #dce2eb;
            border-radius:9px;
            padding:11px 12px;
            font:inherit;
            background:#fff;
        }
        .user-table {
            width:100%;
            border-collapse:collapse;
        }
        .user-table form {
            margin:0;
        }
        .role-pill {
            display:inline-block;
            border-radius:20px;
            padding:5px 9px;
            background:#edf2ff;
            color:#2457d6;
            font-size:11px;
            font-weight:800;
            text-transform:capitalize;
        }
        .status-pill {
            display:inline-block;
            border-radius:20px;
            padding:5px 9px;
            font-size:11px;
            font-weight:800;
        }
        .status-pill.active {
            background:#e7f7ee;
            color:#167647;
        }
        .status-pill.inactive {
            background:#edf0f5;
            color:#5e6878;
        }
        .inline-actions {
            display:flex;
            align-items:center;
            gap:8px;
        }
        .inline-actions button {
            padding:8px 10px;
        }
        @media (max-width: 900px) {
            .user-grid {
                grid-template-columns: 1fr;
            }
        }

@media (max-width: 760px) {
    .user-grid {
        grid-template-columns: 1fr;
    }
    .user-panel {
        padding: 16px;
    }
}


/* Receipts and printing */
body.receipt-page {
    background: #f6f8fb;
}
.receipt {
    width: min(720px,92%);
    margin: 35px auto;
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 16px;
    padding: 32px;
    box-sizing: border-box;
}
.receipt-head {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: flex-start;
    border-bottom: 2px dashed #e6eaf0;
    padding-bottom: 20px;
}
.receipt h1 {
    margin: 0 0 6px;
}
.receipt p {
    margin: 5px 0;
    color: #697386;
    font-size: 13px;
}
.receipt-meta {
    margin: 22px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.receipt-meta div {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
}
.receipt-meta span {
    display: block;
    font-size: 11px;
    color: #697386;
    margin-bottom: 4px;
}
.receipt-totals {
    max-width: 330px;
    margin: 20px 0 0 auto;
}
.receipt-totals div {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}
.receipt-totals .grand {
    font-weight: 800;
    font-size: 18px;
    border-top: 1px solid #e6eaf0;
    margin-top: 5px;
    padding-top: 14px;
}
.receipt-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 24px;
}
@media print {
    body.receipt-page {
        background: #fff;
    }
    .receipt {
        border: 0;
        box-shadow: none;
        margin: 0 auto;
        width: 100%;
        padding: 0;
    }
    .receipt-actions {
        display: none;
    }
    .receipt-meta div {
        background: #fff;
        border: 1px solid #eee;
    }
}
@media(max-width:480px) {
    .receipt {
        padding: 18px;
    }
    .receipt-head {
        flex-direction: column;
    }
    .receipt-meta {
        grid-template-columns: 1fr;
    }
}


/* Chart utilities */

/* Chart bar heights are generated from validated numeric data in reporting.php. */
.chart-bar--height-0 {
    height: 0px;
}
.chart-bar--height-1 {
    height: 1px;
}
.chart-bar--height-2 {
    height: 2px;
}
.chart-bar--height-3 {
    height: 3px;
}
.chart-bar--height-4 {
    height: 4px;
}
.chart-bar--height-5 {
    height: 5px;
}
.chart-bar--height-6 {
    height: 6px;
}
.chart-bar--height-7 {
    height: 7px;
}
.chart-bar--height-8 {
    height: 8px;
}
.chart-bar--height-9 {
    height: 9px;
}
.chart-bar--height-10 {
    height: 10px;
}
.chart-bar--height-11 {
    height: 11px;
}
.chart-bar--height-12 {
    height: 12px;
}
.chart-bar--height-13 {
    height: 13px;
}
.chart-bar--height-14 {
    height: 14px;
}
.chart-bar--height-15 {
    height: 15px;
}
.chart-bar--height-16 {
    height: 16px;
}
.chart-bar--height-17 {
    height: 17px;
}
.chart-bar--height-18 {
    height: 18px;
}
.chart-bar--height-19 {
    height: 19px;
}
.chart-bar--height-20 {
    height: 20px;
}
.chart-bar--height-21 {
    height: 21px;
}
.chart-bar--height-22 {
    height: 22px;
}
.chart-bar--height-23 {
    height: 23px;
}
.chart-bar--height-24 {
    height: 24px;
}
.chart-bar--height-25 {
    height: 25px;
}
.chart-bar--height-26 {
    height: 26px;
}
.chart-bar--height-27 {
    height: 27px;
}
.chart-bar--height-28 {
    height: 28px;
}
.chart-bar--height-29 {
    height: 29px;
}
.chart-bar--height-30 {
    height: 30px;
}
.chart-bar--height-31 {
    height: 31px;
}
.chart-bar--height-32 {
    height: 32px;
}
.chart-bar--height-33 {
    height: 33px;
}
.chart-bar--height-34 {
    height: 34px;
}
.chart-bar--height-35 {
    height: 35px;
}
.chart-bar--height-36 {
    height: 36px;
}
.chart-bar--height-37 {
    height: 37px;
}
.chart-bar--height-38 {
    height: 38px;
}
.chart-bar--height-39 {
    height: 39px;
}
.chart-bar--height-40 {
    height: 40px;
}
.chart-bar--height-41 {
    height: 41px;
}
.chart-bar--height-42 {
    height: 42px;
}
.chart-bar--height-43 {
    height: 43px;
}
.chart-bar--height-44 {
    height: 44px;
}
.chart-bar--height-45 {
    height: 45px;
}
.chart-bar--height-46 {
    height: 46px;
}
.chart-bar--height-47 {
    height: 47px;
}
.chart-bar--height-48 {
    height: 48px;
}
.chart-bar--height-49 {
    height: 49px;
}
.chart-bar--height-50 {
    height: 50px;
}
.chart-bar--height-51 {
    height: 51px;
}
.chart-bar--height-52 {
    height: 52px;
}
.chart-bar--height-53 {
    height: 53px;
}
.chart-bar--height-54 {
    height: 54px;
}
.chart-bar--height-55 {
    height: 55px;
}
.chart-bar--height-56 {
    height: 56px;
}
.chart-bar--height-57 {
    height: 57px;
}
.chart-bar--height-58 {
    height: 58px;
}
.chart-bar--height-59 {
    height: 59px;
}
.chart-bar--height-60 {
    height: 60px;
}
.chart-bar--height-61 {
    height: 61px;
}
.chart-bar--height-62 {
    height: 62px;
}
.chart-bar--height-63 {
    height: 63px;
}
.chart-bar--height-64 {
    height: 64px;
}
.chart-bar--height-65 {
    height: 65px;
}
.chart-bar--height-66 {
    height: 66px;
}
.chart-bar--height-67 {
    height: 67px;
}
.chart-bar--height-68 {
    height: 68px;
}
.chart-bar--height-69 {
    height: 69px;
}
.chart-bar--height-70 {
    height: 70px;
}
.chart-bar--height-71 {
    height: 71px;
}
.chart-bar--height-72 {
    height: 72px;
}
.chart-bar--height-73 {
    height: 73px;
}
.chart-bar--height-74 {
    height: 74px;
}
.chart-bar--height-75 {
    height: 75px;
}
.chart-bar--height-76 {
    height: 76px;
}
.chart-bar--height-77 {
    height: 77px;
}
.chart-bar--height-78 {
    height: 78px;
}
.chart-bar--height-79 {
    height: 79px;
}
.chart-bar--height-80 {
    height: 80px;
}
.chart-bar--height-81 {
    height: 81px;
}
.chart-bar--height-82 {
    height: 82px;
}
.chart-bar--height-83 {
    height: 83px;
}
.chart-bar--height-84 {
    height: 84px;
}
.chart-bar--height-85 {
    height: 85px;
}
.chart-bar--height-86 {
    height: 86px;
}
.chart-bar--height-87 {
    height: 87px;
}
.chart-bar--height-88 {
    height: 88px;
}
.chart-bar--height-89 {
    height: 89px;
}
.chart-bar--height-90 {
    height: 90px;
}
.chart-bar--height-91 {
    height: 91px;
}
.chart-bar--height-92 {
    height: 92px;
}
.chart-bar--height-93 {
    height: 93px;
}
.chart-bar--height-94 {
    height: 94px;
}
.chart-bar--height-95 {
    height: 95px;
}
.chart-bar--height-96 {
    height: 96px;
}
.chart-bar--height-97 {
    height: 97px;
}
.chart-bar--height-98 {
    height: 98px;
}
.chart-bar--height-99 {
    height: 99px;
}
.chart-bar--height-100 {
    height: 100px;
}
.chart-bar--height-101 {
    height: 101px;
}
.chart-bar--height-102 {
    height: 102px;
}
.chart-bar--height-103 {
    height: 103px;
}
.chart-bar--height-104 {
    height: 104px;
}
.chart-bar--height-105 {
    height: 105px;
}


/* Shared refinements and responsive overrides */
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body.inventory-page {
    background: var(--inv-bg);
    color: var(--inv-ink);
    font-family: var(--font-family-base);
    line-height: 1.5;
}
.inventory-page a {
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.inv-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 72px;
    height: auto;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--inv-border);
    box-shadow: 0 3px 14px rgba(20,35,65,.025);
    padding: 12px clamp(16px, 3vw, 42px);
}
.inv-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    flex-shrink: 0;
    font-size: 21px;
    font-weight: 850;
    letter-spacing: -.7px;
}
.inv-brand::before {
    content: "S";
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(145deg, #e53935, #a71919);
    font-size: 18px;
    letter-spacing: 0;
    box-shadow: 0 5px 12px rgba(198,40,40,.2);
}
.inv-brand span {
    color: var(--inv-muted);
    font-size: 13px;
    letter-spacing: 0;
}
.inv-topbar nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: wrap;
}
.inv-topbar nav a {
    padding: 9px 11px;
    border-radius: 10px;
    color: #596579;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}
.inv-topbar nav a.active, .inv-topbar nav a:hover {
    background: #fff0f0;
    color: var(--inv-primary);
}
.inv-topbar .user-identity {
    padding: 0 8px;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}
.logout-form {
    margin: 0;
}
.inv-container {
    width: min(1440px, calc(100% - 48px));
    margin: var(--space-8) auto var(--space-16);
}
.inv-heading {
    margin-bottom: 26px;
}
.inv-heading h1 {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.18;
}
.eyebrow {
    color: var(--inv-primary);
    font-size: 10px;
    letter-spacing: 1.7px;
}
.muted {
    color: var(--inv-muted);
    line-height: 1.55;
}
.inv-card, .user-panel, .login-card, .dashboard-panel {
    border: 1px solid var(--inv-border);
    border-radius: var(--inv-radius);
    background: var(--color-surface);
    box-shadow: var(--inv-shadow);
}
.inv-card {
    overflow: hidden;
}
.card-title {
    padding: 20px 22px;
    border-bottom: 1px solid #edf0f5;
}
.card-title h2, .user-panel h2, .dashboard-panel h2 {
    font-size: 16px;
    font-weight: 760;
    letter-spacing: -.25px;
}
.btn {
    min-height: 40px;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 750;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover {
    transform: translateY(-1px);
}
.btn-primary {
    background: var(--inv-primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(198,40,40,.12);
}
.btn-primary:hover {
    background: var(--inv-primary-hover);
    box-shadow: 0 6px 15px rgba(198,40,40,.18);
}
.btn-secondary {
    background: #fff0f0;
    color: #a91f1f;
}
.btn-plain {
    background: #fff;
    border: 1px solid var(--inv-border);
    color: #354155;
}
input, select, textarea {
    font: inherit;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
    outline: 3px solid rgba(198,40,40,.2);
    outline-offset: 2px;
}
.filter-row {
    gap: 12px;
    padding: 18px 20px;
    background: #fff;
}
.filter-row input,
.filter-row select,
.product-form input,
.product-form select,
.product-form textarea,
.user-form input,
.user-form select,
.sale-fields input,
.sale-fields select,
.login-card input {
    min-height: 43px;
    border: 1px solid #dce3ec;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
    transition: border-color .18s, box-shadow .18s;
}
.filter-row input:focus,
.filter-row select:focus,
.product-form input:focus,
.product-form select:focus,
.product-form textarea:focus,
.user-form input:focus,
.user-form select:focus,
.sale-fields input:focus,
.sale-fields select:focus,
.login-card input:focus {
    border-color: #d45a5a;
    box-shadow: 0 0 0 3px rgba(198,40,40,.08);
    outline: none;
}
.table-wrap {
    border-radius: 0 0 var(--inv-radius) var(--inv-radius);
}
table {
    font-size: 13px;
}
th {
    background: #f8f9fc;
    color: #69758a;
    font-size: 10px;
    letter-spacing: .8px;
    padding-top: 15px;
    padding-bottom: 15px;
}
th, td {
    padding-left: 20px;
    padding-right: 20px;
}
td {
    color: #344054;
}
tbody tr:hover {
    background: #fffafa;
}
.alert {
    border-radius: 12px;
    padding: 13px 16px;
    margin: 0 0 18px;
    font-size: 13px;
}
.stats-grid {
    gap: 16px;
    margin-bottom: 22px;
}
.stat-card {
    position: relative;
    min-height: 124px;
    border: 1px solid var(--inv-border);
    border-radius: 15px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(20,35,65,.035);
    overflow: hidden;
}
.stat-card::after {
    content: "";
    position: absolute;
    top: -24px;
    right: -24px;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: rgba(198,40,40,.055);
}
.stat-card > span {
    color: var(--inv-muted);
    font-size: 12px;
    font-weight: 650;
}
.stat-card > strong {
    display: block;
    margin-top: 12px;
    color: var(--inv-ink);
    font-size: clamp(24px, 2.3vw, 31px);
    letter-spacing: -1px;
    font-weight: 820;
}
.stat-card strong small {
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0;
    color: var(--inv-muted);
}
.stat-danger {
    border-color: #f3d2d2;
}
.stat-danger > strong {
    color: var(--inv-red);
}
.stock-pill, .status-pill, .role-pill {
    border-radius: 7px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 800;
}
.user-grid {
    gap: 22px;
}
.user-panel {
    padding: 22px;
    min-width: 0;
}
.user-panel h2 {
    margin-bottom: 8px;
}
.user-form {
    gap: 15px;
}
.user-form label, .product-form label {
    color: #3c4759;
    font-size: 12px;
    font-weight: 750;
}
.user-form input, .user-form select {
    display: block;
    width: 100%;
    margin-top: 6px;
}
.empty-state {
    padding: 35px 20px;
    text-align: center;
    color: var(--inv-muted);
}
/* Dashboard components */
.dashboard-welcome {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:26px;
}
.dashboard-welcome h1 {
    margin:5px 0 8px;
    font-size:clamp(28px,3vw,38px);
    letter-spacing:-1.2px;
    line-height:1.15;
}
.dashboard-actions {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}
.dashboard-grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
    margin-bottom:22px;
}
.dashboard-stat {
    min-height:142px;
    padding:21px;
    border:1px solid var(--inv-border);
    border-radius:16px;
    background:#fff;
    box-shadow:var(--inv-shadow);
}
.dashboard-stat .stat-top {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    color:var(--inv-muted);
    font-size:12px;
    font-weight:700;
}
.stat-icon {
    display:grid;
    place-items:center;
    width:38px;
    height:38px;
    border-radius:12px;
    background:#fff0f0;
    color:var(--inv-primary);
    font-size:16px;
}
.dashboard-stat strong {
    display:block;
    margin-top:14px;
    font-size:clamp(23px,2.4vw,31px);
    letter-spacing:-.9px;
    line-height:1.15;
}
.dashboard-stat small {
    display:block;
    margin-top:8px;
    color:var(--inv-muted);
    font-size:11px;
}
.dashboard-columns {
    display:grid;
    grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);
    gap:20px;
    align-items:start;
}
.dashboard-panel {
    overflow:hidden;
    margin-bottom:20px;
}
.dashboard-panel-head {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:20px 22px;
    border-bottom:1px solid #edf0f5;
}
.dashboard-panel-head p {
    color:var(--inv-muted);
    font-size:12px;
    margin-top:4px;
}
.dashboard-panel-head a {
    font-size:12px;
    font-weight:750;
    color:var(--inv-primary);
    text-decoration:none;
}
.quick-links {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    padding:18px;
}
.quick-link {
    display:flex;
    align-items:center;
    gap:12px;
    min-height:76px;
    padding:14px;
    border:1px solid var(--inv-border);
    border-radius:13px;
    color:var(--inv-ink);
    text-decoration:none;
    background:#fff;
}
.quick-link:hover {
    border-color:#e7aaaa;
    background:#fffafa;
    transform:translateY(-1px);
}
.quick-link .stat-icon {
    flex-shrink:0;
}
.quick-link strong {
    display:block;
    font-size:12px;
}
.quick-link small {
    display:block;
    margin-top:3px;
    color:var(--inv-muted);
    font-size:11px;
}
.dashboard-list {
    list-style:none;
    padding:0;
    margin:0;
}
.dashboard-list li {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:15px 21px;
    border-bottom:1px solid #f0f2f6;
    font-size:12px;
}
.dashboard-list li:last-child {
    border-bottom:0;
}
.dashboard-list .item-main strong {
    display:block;
    font-size:12px;
}
.dashboard-list .item-main small {
    display:block;
    color:var(--inv-muted);
    margin-top:3px;
}
.dashboard-list .item-value {
    font-weight:800;
    white-space:nowrap;
}
.dashboard-empty {
    padding:28px 20px;
    color:var(--inv-muted);
    font-size:13px;
    text-align:center;
}
/* Stock movement page */
.movement-filter {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    align-items:center;
    padding:16px 20px;
    border-bottom:1px solid var(--inv-border);
}
.movement-filter input, .movement-filter select {
    min-height:40px;
    border:1px solid #dce3ec;
    border-radius:9px;
    padding:8px 11px;
    background:#fff;
}
.movement-type {
    display:inline-flex;
    border-radius:7px;
    padding:5px 8px;
    font-size:10px;
    font-weight:800;
    text-transform:uppercase;
    background:#eef2f7;
    color:#455166;
}
.movement-type.sale, .movement-type.adjustment_out, .movement-type.return_out {
    background:#fff0ef;
    color:#b42318;
}
.movement-type.purchase, .movement-type.opening, .movement-type.adjustment_in, .movement-type.return_in {
    background:#e9f8ef;
    color:#137547;
}
@media (max-width: 1100px) {
  .inv-topbar {
      align-items:flex-start;
      flex-direction:column;
      gap:10px;
  }
  .inv-topbar nav {
      justify-content:flex-start;
  }
  .dashboard-grid {
      grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 760px) {
  .inv-container {
      width:calc(100% - 28px);
      margin:22px auto 42px;
  }
  .inv-topbar {
      position:relative;
      padding:13px 16px;
  }
  .inv-topbar nav {
      gap:3px;
  }
  .inv-topbar nav a {
      padding:8px 9px;
      font-size:12px;
  }
  .inv-heading, .dashboard-welcome {
      align-items:flex-start;
      flex-direction:column;
  }
  .dashboard-columns {
      grid-template-columns:1fr;
  }
  .dashboard-grid {
      gap:11px;
  }
  .dashboard-stat {
      padding:16px;
      min-height:128px;
  }
  .stat-card {
      padding:17px;
  }
  .filter-row {
      flex-wrap:wrap;
  }
  .filter-row select {
      width:100%;
  }
  .user-grid {
      grid-template-columns:1fr;
  }
  .user-panel {
      padding:17px;
  }
  .quick-links {
      grid-template-columns:1fr;
  }
  .card-title, .dashboard-panel-head {
      padding:17px;
  }
}
@media (max-width: 430px) {
  .dashboard-grid {
      grid-template-columns:1fr 1fr;
  }
  .dashboard-stat .stat-top {
      align-items:flex-start;
      flex-direction:column-reverse;
      gap:8px;
  }
  .dashboard-stat strong {
      font-size:23px;
  }
  .dashboard-actions {
      width:100%;
  }
  .dashboard-actions .btn {
      flex:1;
  }
  .inv-brand {
      font-size:19px;
  }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    width: fit-content;
    padding: 4px;
    border: 1px solid #e4e8ef;
    border-radius: 999px;
    background: #f5f6f8;
    box-shadow: inset 0 1px 2px rgba(27, 39, 57, 0.035);
    color: #586477;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.language-switcher a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 999px;
    color: inherit;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.language-switcher a:hover {
    background: #fff;
    color: var(--color-brand, #c62828);
}

.language-switcher a[aria-current="true"] {
    background: #fff;
    box-shadow: 0 1px 4px rgba(27, 39, 57, 0.12);
    color: var(--color-brand, #c62828);
}

.language-switcher a:focus-visible {
    outline: 3px solid rgba(198, 40, 40, 0.24);
    outline-offset: 2px;
}

.language-switcher > span {
    display: none;
}

.landing-navigation .language-switcher {
    flex: 0 0 auto;
    margin-left: 0;
}

.login-card > .language-switcher {
    margin-top: 24px;
}

@media (max-width: 860px) {
    .landing-nav-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .landing-navigation .language-switcher {
        align-self: flex-start;
        margin-top: 4px;
    }
}

@media (max-width: 420px) {
    .login-card > .language-switcher {
        margin-top: 20px;
    }

    .login-card > .language-switcher a {
        min-height: 38px;
        padding: 0 14px;
    }
}

.sale-page .sale-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.sale-page .sale-entry-form {
    display: grid;
    gap: 22px;
    padding: 22px 24px 24px;
}

.sale-page .sale-toolbar {
    margin: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8ebf1;
}

.sale-page .sale-toolbar-copy {
    display: grid;
    gap: 3px;
}

.sale-page .sale-toolbar-copy > strong {
    color: #202b3e;
    font-size: 15px;
}

.sale-page .sale-item-count {
    color: var(--inv-muted);
    font-size: 11px;
}

.sale-page #addLine {
    background: #fff1f0;
    color: #a91f1f;
}

.sale-page .sale-entry-form > .table-wrap {
    overflow-x: auto;
    border: 1px solid #e8ebf1;
    border-radius: 12px;
}

.sale-page .sale-lines {
    min-width: 690px;
    table-layout: fixed;
}

.sale-page .sale-lines th {
    padding: 12px 14px;
    background: #f8f9fb;
    color: #727d8f;
    font-size: 10px;
}

.sale-page .sale-lines th:first-child {
    width: 49%;
}

.sale-page .sale-lines th:nth-child(2) {
    width: 13%;
}

.sale-page .sale-lines th:nth-child(3) {
    width: 17%;
}

.sale-page .sale-lines th:nth-child(4) {
    width: 16%;
}

.sale-page .sale-lines th:last-child {
    width: 5%;
}

.sale-page .sale-lines td {
    padding: 12px 14px;
    vertical-align: middle;
}

.sale-page .sale-lines select,
.sale-page .sale-lines input {
    min-height: 44px;
    border-color: #dce2eb;
    border-radius: 9px;
}

.sale-page .sale-lines .qty {
    min-width: 0;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.sale-page .sale-lines .stock-cell {
    color: #667286;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.sale-page .sale-lines .line-total-cell {
    color: #253147;
    font-size: 12px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sale-page .sale-lines .remove {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #f1d5d5;
    border-radius: 9px;
    background: #fff5f4;
    color: #a91f1f;
    font-size: 19px;
    line-height: 1;
}

.sale-page .sale-form-section {
    display: grid;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e8ebf1;
}

.sale-page .sale-section-heading h3 {
    margin: 0;
    color: #202b3e;
    font-size: 15px;
}

.sale-page .sale-section-heading .sale-note {
    margin-top: 4px;
}

.sale-page .sale-payment-fields,
.sale-page .sale-customer-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin: 0;
}

.sale-page .sale-payment-fields > label,
.sale-page .sale-payment-methods > label,
.sale-page .sale-payment-references > label,
.sale-page .sale-customer-fields > label {
    min-width: 0;
    color: #39465b;
    font-size: 12px;
}

.sale-page .sale-payment-fields > label:first-child {
    grid-column: 1 / -1;
    max-width: 320px;
}

.sale-page .sale-payment-fields input,
.sale-page .sale-customer-fields input {
    min-height: 44px;
    border-radius: 9px;
}

.sale-page .sale-payment-guidance {
    grid-column: 1 / -1;
    padding: 12px 14px;
    border: 1px solid #f0dfc5;
    border-radius: 10px;
    background: #fffaf1;
    color: #725322;
}

.sale-page .sale-payment-guidance a {
    color: #a91f1f;
    font-weight: 700;
}

.sale-page .sale-payment-methods,
.sale-page .sale-payment-references {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sale-page .sale-payment-methods {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sale-page .sale-customer-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sale-page .sale-total {
    margin: 0;
    padding: 13px 15px;
    border: 1px solid #e8ebf1;
    border-radius: 10px;
    color: #596579;
    font-size: 13px;
}

.sale-page .sale-total.final {
    border-color: #f0d7d7;
    background: #fff6f5;
    color: #293448;
    font-size: 15px;
}

.sale-page .sale-total.final strong {
    color: var(--inv-primary);
    font-size: 22px;
    font-variant-numeric: tabular-nums;
}

.sale-page .sale-entry-form > .sale-note {
    margin-top: -13px;
}

.sale-page .sale-actions {
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid #e8ebf1;
}

.sale-page .sale-actions .btn {
    min-width: 190px;
    min-height: 46px;
}

@media (max-width: 760px) {
    .sale-page .sale-entry-form {
        gap: 18px;
        padding: 17px;
    }

    .sale-page .sale-entry-form > .table-wrap {
        overflow: visible;
        border: 0;
    }

    .sale-page .sale-lines {
        min-width: 0;
    }

    .sale-page .sale-lines thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        clip-path: inset(50%);
    }

    .sale-page .sale-lines tbody {
        display: grid;
        gap: 10px;
    }

    .sale-page .sale-lines tr.sale-line {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
        padding: 13px;
        border: 1px solid #e5e9f0;
        border-radius: 11px;
        background: #fbfcfe;
    }

    .sale-page .sale-lines tr.sale-line td {
        display: flex;
        min-width: 0;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding: 0;
        border: 0;
        white-space: normal;
    }

    .sale-page .sale-lines tr.sale-line td:first-child {
        grid-column: 1 / -1;
    }

    .sale-page .sale-lines tr.sale-line td:nth-child(2)::before {
        color: #727d8f;
        content: attr(data-label);
        font-size: 10px;
        font-weight: 700;
    }

    .sale-page .sale-lines tr.sale-line td:nth-child(3)::before {
        color: #727d8f;
        content: attr(data-label);
        font-size: 10px;
        font-weight: 700;
    }

    .sale-page .sale-lines tr.sale-line td:nth-child(4)::before {
        color: #727d8f;
        content: attr(data-label);
        font-size: 10px;
        font-weight: 700;
    }

    .sale-page .sale-lines tr.sale-line td:last-child {
        align-items: flex-end;
    }

    .sale-page .sale-payment-fields,
    .sale-page .sale-payment-methods,
    .sale-page .sale-payment-references,
    .sale-page .sale-customer-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sale-page .sale-customer-fields > .sale-note {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .sale-page .sale-entry-form {
        padding: 14px;
    }

    /* Phones: the "Add product" button gets its own full-width row. */
    .sale-page .sale-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .sale-page .sale-toolbar > .btn {
        width: 100%;
        min-height: 44px;
        padding: 10px 14px;
        font-size: 14px;
    }

    .sale-page .sale-payment-fields,
    .sale-page .sale-payment-methods,
    .sale-page .sale-payment-references,
    .sale-page .sale-customer-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .sale-page .sale-payment-fields > label:first-child,
    .sale-page .sale-payment-guidance,
    .sale-page .sale-payment-methods,
    .sale-page .sale-payment-references,
    .sale-page .sale-customer-fields > .sale-note {
        grid-column: 1;
        max-width: none;
    }

    .sale-page .sale-actions .btn {
        width: 100%;
    }
}

.inquiry-panel {
    overflow: hidden;
}

.inquiry-panel-head {
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.inquiry-filter,
.inquiry-status-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inquiry-filter label {
    color: var(--inv-muted);
    font-size: 12px;
    font-weight: 700;
}

.inquiry-filter select,
.inquiry-status-form select {
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid var(--inv-border);
    border-radius: 9px;
    background: #fff;
    color: var(--inv-ink);
    font: inherit;
}

.inquiry-table {
    min-width: 1000px;
    white-space: normal;
}

.inquiry-table th,
.inquiry-table td {
    vertical-align: top;
}

.inquiry-contact,
.inquiry-content {
    white-space: normal;
}

.inquiry-contact small {
    overflow-wrap: anywhere;
}

.inquiry-message {
    max-width: 440px;
    margin-top: 7px;
    color: var(--inv-muted);
    font-size: 12px;
    line-height: 1.6;
}

.inquiry-message summary {
    color: var(--inv-primary);
    cursor: pointer;
    font-weight: 700;
}

.inquiry-message p {
    margin: 8px 0 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

.status-pill.status-new {
    background: #fff0d6;
    color: #875000;
}

.inquiry-status-form {
    min-width: 190px;
}

.inquiry-status-form select {
    min-width: 88px;
}

.inquiry-status-form .btn,
.inquiry-filter .btn,
.inquiry-pagination .btn {
    min-height: 36px;
    padding: 8px 11px;
    font-size: 12px;
}

.inquiry-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    border-top: 1px solid var(--inv-border);
    color: var(--inv-muted);
    font-size: 12px;
}

.inquiry-pagination > div {
    display: flex;
    gap: 8px;
}

.inquiry-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 20px;
}

.inquiry-stat-card {
    min-width: 0;
    padding: 17px 18px;
    border: 1px solid #e8ebf1;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(25, 38, 59, .035);
}

.inquiry-stat-card span,
.inquiry-stat-card small {
    display: block;
}

.inquiry-stat-card span {
    color: #647086;
    font-size: 11px;
    font-weight: 700;
}

.inquiry-stat-card strong {
    display: block;
    margin: 8px 0 4px;
    color: #29364b;
    font-size: 25px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.inquiry-stat-card small {
    color: #8993a3;
    font-size: 10px;
}

.inquiry-stat-card--new strong {
    color: #a96300;
}

.inquiry-stat-card--progress strong {
    color: #315eb7;
}

.inquiry-stat-card--replied strong {
    color: #258052;
}

.inquiry-stat-card--closed strong {
    color: #69758a;
}

.inquiry-list-card {
    overflow: hidden;
}

.inquiry-list-heading {
    padding: 21px 24px 4px;
}

.inquiry-list-heading h2 {
    margin: 0 0 5px;
    color: #2b3649;
    font-size: 17px;
}

.inquiry-list-heading p {
    margin: 0;
}

.inquiry-search-form {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(135px, .85fr)) auto;
    align-items: end;
    gap: 12px;
    padding: 18px 24px;
    border-bottom: 1px solid #edf0f4;
}

.inquiry-search-form label,
.inquiry-action-form label {
    display: grid;
    min-width: 0;
    gap: 7px;
    color: #39465b;
    font-size: 11px;
    font-weight: 700;
}

.inquiry-search-form input,
.inquiry-search-form select,
.inquiry-action-form input,
.inquiry-action-form select,
.inquiry-action-form textarea {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #dfe4ec;
    border-radius: 9px;
    background: #fff;
    color: #253147;
    font: inherit;
    font-size: 12px;
}

.inquiry-search-form input:focus,
.inquiry-search-form select:focus,
.inquiry-action-form input:focus,
.inquiry-action-form select:focus,
.inquiry-action-form textarea:focus {
    border-color: #d45a5a;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, .08);
    outline: none;
}

.inquiry-search-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inquiry-search-actions .btn {
    min-height: 42px;
}

.inquiry-table {
    min-width: 1160px;
}

.inquiry-table td small {
    display: block;
    margin-top: 4px;
    color: #818b9b;
    font-size: 11px;
}

.inquiry-table .btn {
    min-height: 35px;
    padding: 8px 11px;
    font-size: 11px;
}

.inquiry-detail-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.inquiry-detail-top h1 {
    margin: 6px 0;
    color: #273449;
    font-size: clamp(24px, 3vw, 32px);
    overflow-wrap: anywhere;
}

.inquiry-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 17px;
    color: #a91f1f;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.inquiry-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, .9fr);
    align-items: start;
    gap: 18px;
}

.inquiry-detail-main,
.inquiry-detail-aside {
    display: grid;
    min-width: 0;
    gap: 18px;
}

.inquiry-detail-card {
    min-width: 0;
    padding-bottom: 18px;
}

.inquiry-detail-card > .card-title {
    padding: 19px 21px 0;
}

.inquiry-detail-card > .card-title h2 {
    margin: 0 0 5px;
    color: #2b3649;
    font-size: 15px;
}

.inquiry-detail-card > .card-title .muted {
    font-size: 11px;
}

.inquiry-message-body {
    padding: 17px 21px 3px;
    color: #3c485d;
    font-size: 13px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.inquiry-reply-list {
    display: grid;
    gap: 10px;
    padding: 15px 21px 0;
}

.inquiry-reply-item {
    padding: 13px 14px;
    border: 1px solid #e8ebf1;
    border-radius: 10px;
    background: #fafbfc;
}

.inquiry-history-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #344158;
    font-size: 12px;
}

.inquiry-reply-item > p {
    margin: 10px 0;
    color: #536176;
    font-size: 12px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.inquiry-reply-item > small {
    display: block;
    color: #818b9b;
    font-size: 10px;
}

.inquiry-reply-item .inquiry-delivery-error {
    margin-top: 5px;
    color: #a12828;
}

.inquiry-delivery {
    padding: 4px 8px;
    border-radius: 20px;
    background: #fff0d6;
    color: #875000;
    font-size: 10px;
    font-weight: 750;
    text-transform: capitalize;
}

.inquiry-delivery--sent {
    background: #e7f7ee;
    color: #12683e;
}

.inquiry-delivery--failed {
    background: #fee4e2;
    color: #912018;
}

.inquiry-action-form {
    display: grid;
    gap: 10px;
    margin: 15px 21px 0;
}

.inquiry-action-form textarea {
    min-height: 90px;
    resize: vertical;
    line-height: 1.6;
}

.inquiry-action-form > small {
    color: #818b9b;
    font-size: 10px;
    overflow-wrap: anywhere;
}

.inquiry-action-form > .btn {
    justify-self: start;
}

.inquiry-reply-form {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #edf0f4;
}

.inquiry-contact-details {
    display: grid;
    gap: 13px;
    margin: 17px 21px 0;
}

.inquiry-contact-details > div {
    min-width: 0;
}

.inquiry-contact-details dt {
    margin-bottom: 4px;
    color: #818b9b;
    font-size: 10px;
}

.inquiry-contact-details dd {
    margin: 0;
    color: #344158;
    font-size: 12px;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.inquiry-contact-details a {
    color: #a91f1f;
}

.inquiry-assign-form {
    padding-top: 14px;
    border-top: 1px solid #edf0f4;
}

.inquiry-activity-list {
    display: grid;
    gap: 0;
    margin: 17px 21px 0;
    padding: 0;
    list-style: none;
}

.inquiry-activity-list li {
    position: relative;
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 16px;
}

.inquiry-activity-list li:not(:last-child)::after {
    position: absolute;
    top: 12px;
    bottom: 0;
    left: 5px;
    width: 1px;
    background: #e5e9f0;
    content: "";
}

.inquiry-activity-dot {
    z-index: 1;
    width: 11px;
    height: 11px;
    margin-top: 2px;
    border: 2px solid #f3d9d9;
    border-radius: 50%;
    background: #c62828;
}

.inquiry-activity-list strong,
.inquiry-activity-list small {
    display: block;
}

.inquiry-activity-list strong {
    color: #344158;
    font-size: 11px;
}

.inquiry-activity-list small,
.inquiry-activity-list p {
    margin: 4px 0 0;
    color: #818b9b;
    font-size: 10px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.inquiry-activity-list p {
    color: #59667b;
    white-space: pre-wrap;
}

.inquiry-empty-note {
    margin: 0;
    color: #818b9b;
    font-size: 12px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 600px) {
    .inquiry-panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .inquiry-filter {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .inquiry-filter label {
        flex-basis: 100%;
    }

    .inquiry-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .inquiry-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inquiry-stat-card:first-child {
        grid-column: 1 / -1;
    }

    .inquiry-search-form {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px;
    }

    .inquiry-search-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inquiry-search-actions .btn {
        width: 100%;
    }

    .inquiry-detail-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .inquiry-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.valuation-content {
    padding: 22px;
}
.valuation-value {
    display:block;
    font-size:25px;
    letter-spacing:-.8px;
}
.valuation-note {
    margin-top:8px;
    font-size:12px;
}
.dashboard-footnote {
    margin-top:18px;
    font-size:11px;
}

/* Supplier and purchasing workflows */
.supplier-layout {
    display:grid;
    grid-template-columns:minmax(260px,.72fr) minmax(0,1.6fr);
    gap:20px;
    align-items:start;
}
.supplier-form-card {
    overflow:hidden;
}
.supplier-form {
    display:grid;
    gap:14px;
    padding:20px;
}
.supplier-form label, .purchase-form label {
    display:grid;
    gap:6px;
    color:#3c4759;
    font-size:12px;
    font-weight:750;
}
.supplier-form input, .purchase-form input, .purchase-form select {
    width:100%;
    min-width:0;
    min-height:42px;
    padding:10px 11px;
    border:1px solid #dce3ec;
    border-radius:9px;
    background:#fff;
    color:var(--inv-ink);
}
.supplier-form small, .purchase-form label small {
    color:var(--inv-muted);
    font-size:11px;
    font-weight:500;
}
.inline-form {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
    margin:8px 0;
}
.inline-form select,
.inline-form input {
    min-width:110px;
    min-height:38px;
    padding:8px 10px;
    border:1px solid #dce3ec;
    border-radius:8px;
    background:#fff;
    color:var(--inv-ink);
}
details {
    margin-top:8px;
}
details summary {
    color:var(--inv-primary);
    cursor:pointer;
    font-weight:700;
}
.purchase-entry {
    margin-bottom:22px;
}
.purchase-form {
    padding:20px;
}
.purchase-meta {
    display:grid;
    grid-template-columns:1fr 1.5fr;
    gap:16px;
    margin-bottom:22px;
}
.purchase-lines-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin-bottom:12px;
}
.purchase-lines-head h3 {
    font-size:14px;
}
.purchase-lines td {
    vertical-align:middle;
}
.purchase-lines select {
    min-width:240px;
}
.purchase-lines input {
    min-width:115px;
}
.remove-purchase-line {
    width:34px;
    height:34px;
    border:1px solid #f0cccc;
    border-radius:9px;
    background:#fff5f5;
    color:#b42318;
    font-size:21px;
    cursor:pointer;
}
.purchase-submit {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    padding-top:18px;
    margin-top:10px;
    border-top:1px solid var(--inv-border);
}
.purchase-history {
    overflow:hidden;
}
@media (max-width: 900px) {
    .supplier-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .purchase-meta {
        grid-template-columns: 1fr;
    }

    .purchase-submit {
        align-items: stretch;
        flex-direction: column;
    }

    .purchase-submit .btn {
        width: 100%;
    }
}

.purchase-total {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
    padding:14px 16px;
    margin-top:18px;
    border-radius:12px;
    background:#f8f9fc;
    color:var(--inv-muted);
    font-size:13px;
}
.purchase-total strong {
    color:var(--inv-ink);
    font-size:20px;
    letter-spacing:-.4px;
}
@media (max-width: 520px) {
    .purchase-total {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Professional staff sign-in */
.login-page {
    background:
        radial-gradient(ellipse at 12% 18%, #e8edf8 0, transparent 34%),
        #f4f7fb;
}

.login-wrap {
    min-height: 100vh;
    grid-template-rows: 1fr auto;
    gap: 20px;
    padding: 48px 24px 20px;
}

.login-layout {
    display: grid;
    width: min(100%, 1000px);
    min-height: 580px;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.88fr);
    overflow: hidden;
    border: 1px solid #e3e8f0;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(23, 32, 51, 0.12);
}

.login-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 38px 42px 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 100%, rgba(198, 40, 40, 0.24), transparent 37%),
        linear-gradient(145deg, #202a3c 0%, #131a28 100%);
    color: #fff;
}

.login-intro::after {
    position: absolute;
    right: -100px;
    bottom: 76px;
    width: 270px;
    height: 270px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    content: "";
}

.login-brand {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 11px;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.login-brand > span:last-child > span,
.login-mobile-brand span {
    color: #ff7777;
}

.login-brand-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.08);
    color: #ff8888;
}

.login-intro-copy {
    position: relative;
    z-index: 1;
    max-width: 430px;
    margin: auto 0;
    padding: 62px 0 50px;
}

.login-intro-eyebrow,
.login-form-eyebrow {
    color: #ffaaaa;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.login-intro-copy h1 {
    margin-top: 16px;
    color: #fff;
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 780;
    letter-spacing: -1.8px;
    line-height: 1.1;
}

.login-intro-copy > p:last-child {
    max-width: 390px;
    margin-top: 17px;
    color: #c4cad4;
    font-size: 14px;
    line-height: 1.75;
}

.login-capabilities {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
}

.login-capabilities > div {
    display: flex;
    align-items: center;
    gap: 13px;
}

.login-capability-icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.09);
    color: #ffaaaa;
}

.login-capabilities strong,
.login-capabilities small {
    display: block;
}

.login-capabilities strong {
    color: #f6f7f9;
    font-size: 12px;
}

.login-capabilities small {
    margin-top: 4px;
    color: #aeb7c5;
    font-size: 11px;
}

.login-intro-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    color: #aeb7c5;
    font-size: 11px;
}

.login-intro-footer i {
    color: #ffaaaa;
}

.login-card {
    align-self: center;
    width: 100%;
    padding: 48px clamp(28px, 4vw, 54px);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.login-mobile-brand {
    display: none;
}

.login-form-eyebrow {
    color: var(--color-brand);
}

.login-card h2 {
    margin: 10px 0 0;
    color: var(--color-ink);
    font-size: clamp(24px, 3vw, 29px);
    font-weight: 780;
    letter-spacing: -0.9px;
    line-height: 1.2;
}

.login-form-description {
    margin-top: 9px;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.6;
}

.login-message {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 22px;
    margin-bottom: 0;
    line-height: 1.5;
}

.login-message i {
    margin-top: 2px;
}

.login-form {
    display: grid;
    gap: 19px;
    margin-top: 29px;
}

.login-field {
    display: grid;
    gap: 8px;
}

.login-field label {
    color: #344054;
    font-size: 12px;
    font-weight: 750;
}

.login-field > small {
    color: var(--color-muted);
    font-size: 10px;
    line-height: 1.5;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap > i {
    position: absolute;
    top: 50%;
    left: 14px;
    color: #8993a3;
    font-size: 13px;
    pointer-events: none;
    transform: translateY(-50%);
}

.login-card .login-input-wrap input {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px 11px 41px;
    border: 1px solid #dce2eb;
    border-radius: 10px;
    background: #fff;
    color: var(--color-ink);
    font-size: 13px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-card .login-input-wrap input::placeholder {
    color: #98a1af;
}

.login-card .login-input-wrap input:focus {
    border-color: var(--color-brand);
    box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.1);
    outline: none;
}

.login-submit {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 3px;
    border: 0;
    cursor: pointer;
    font-size: 13px;
}

.login-submit i {
    font-size: 12px;
    transition: transform 160ms ease;
}

.login-submit:hover i {
    transform: translateX(3px);
}

.login-account-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 23px;
    color: var(--color-muted);
    font-size: 11px;
    line-height: 1.6;
}

.login-account-note i {
    margin-top: 2px;
    color: #7d8797;
}

.login-home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    color: #596579;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.login-home-link:hover {
    color: var(--color-brand);
}

.login-copyright {
    color: #778194;
    font-size: 10px;
    text-align: center;
}

@media (max-width: 760px) {
    .login-wrap {
        padding: 24px 16px 16px;
    }

    .login-layout {
        width: min(100%, 480px);
        min-height: auto;
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .login-intro {
        display: none;
    }

    .login-card {
        padding: 36px clamp(24px, 7vw, 38px);
    }

    .login-mobile-brand {
        display: inline-block;
        margin-bottom: 34px;
        color: var(--color-ink);
        font-size: 18px;
        font-weight: 800;
        letter-spacing: -0.5px;
        text-decoration: none;
    }
}

@media (max-width: 420px) {
    .login-wrap {
        padding: 14px 12px;
    }

    .login-card {
        padding: 29px 21px;
    }

    .login-mobile-brand {
        margin-bottom: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-page *,
    .login-page *::before,
    .login-page *::after {
        transition-duration: 0.01ms !important;
    }
}

/* Premium public landing page */
.landing-page {
    --landing-ink: #172033;
    --landing-muted: #657187;
    --landing-line: #e5e9f0;
    --landing-surface: #fff;
    --landing-tint: #f5f7fb;
    --landing-red: #c62828;
    --landing-red-dark: #a91f1f;
    background: var(--landing-surface);
    color: var(--landing-ink);
    font-family: var(--font-family-base);
    line-height: 1.55;
}

.landing-page :where(a, button, input, textarea):focus-visible {
    outline: 3px solid rgba(198, 40, 40, 0.28);
    outline-offset: 3px;
}

.landing-shell {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
}

.landing-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid rgba(226, 231, 239, 0.88);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}

.landing-header-inner {
    display: flex;
    width: min(1240px, calc(100% - 48px));
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto;
}

.landing-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    color: var(--landing-ink);
    text-decoration: none;
}

.landing-brand img {
    width: 43px;
    height: 43px;
    border-radius: 12px;
    object-fit: cover;
}

.landing-brand strong,
.landing-brand small {
    display: block;
}

.landing-brand strong {
    font-size: 17px;
    font-weight: 850;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.landing-brand strong span {
    color: var(--landing-red);
}

.landing-brand small {
    margin-top: 3px;
    color: var(--landing-muted);
    font-size: 10px;
    letter-spacing: 0.3px;
}

.landing-navigation {
    display: flex;
    align-items: center;
    gap: clamp(13px, 2.1vw, 27px);
}

.landing-navigation > a,
.landing-login-link {
    color: #485368;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
    transition: color 150ms ease;
}

.landing-navigation > a:hover,
.landing-login-link:hover {
    color: var(--landing-red);
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: 4px;
}

.landing-nav-cta {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border-radius: 9px;
    background: var(--landing-red);
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    transition: background 150ms ease, transform 150ms ease;
}

.landing-nav-cta:hover {
    transform: translateY(-1px);
    background: var(--landing-red-dark);
}

.landing-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--landing-line);
    border-radius: 10px;
    background: #fff;
    color: var(--landing-ink);
    cursor: pointer;
    font-size: 16px;
}

.landing-hero {
    position: relative;
    overflow: hidden;
    padding: 78px 0 74px;
    background:
        radial-gradient(ellipse at 92% 18%, rgba(212, 222, 243, 0.55), transparent 28%),
        linear-gradient(180deg, #f8faff 0%, #fff 100%);
}

.landing-hero::before {
    position: absolute;
    top: -240px;
    right: -170px;
    width: 530px;
    height: 530px;
    border: 1px solid rgba(198, 40, 40, 0.08);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.landing-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
    align-items: center;
    gap: 56px;
}

.landing-hero-copy {
    position: relative;
    z-index: 1;
}

.landing-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--landing-red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.55px;
}

.landing-hero .landing-eyebrow > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--landing-red);
    box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.1);
}

.landing-hero h1 {
    color: var(--landing-ink);
    font-family: var(--font-family-display);
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 800;
    letter-spacing: -2.7px;
    line-height: 1.06;
}

.landing-hero h1 span {
    color: var(--landing-red);
}

.landing-hero-description {
    max-width: 470px;
    margin-top: 20px;
    color: var(--landing-muted);
    font-size: 15px;
    line-height: 1.8;
}

.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 27px;
}

.landing-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.landing-button:hover {
    transform: translateY(-2px);
}

.landing-button-primary {
    background: var(--landing-red);
    color: #fff;
}

.landing-button-primary:hover {
    background: var(--landing-red-dark);
}

.landing-button-secondary {
    border-color: #d7dce5;
    background: #fff;
    color: #344054;
}

.landing-button-secondary:hover {
    border-color: #c7ced9;
    background: #f9fafb;
}

.landing-hero-footnote {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 20px;
    color: #68758a;
    font-size: 11px;
    line-height: 1.5;
}

.landing-hero-footnote i {
    margin-top: 2px;
    color: #23804d;
}

.landing-dashboard-preview {
    min-width: 0;
    transform: perspective(1200px) rotateY(-2deg);
}

.landing-preview-window {
    overflow: hidden;
    border: 1px solid #dfe4ec;
    border-radius: 13px;
    background: #fff;
    box-shadow:
        0 28px 65px rgba(32, 45, 70, 0.15),
        0 3px 8px rgba(32, 45, 70, 0.05);
}

.landing-preview-topbar {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    border-bottom: 1px solid #edf0f4;
}

.landing-preview-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #253149;
    font-size: 11px;
}

.landing-preview-mark {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 7px;
    background: #fff0f0;
    color: var(--landing-red);
    font-size: 11px;
}

.landing-preview-account {
    color: #68758a;
    font-size: 9px;
}

.landing-preview-account i {
    margin-right: 4px;
}

.landing-preview-body {
    display: grid;
    min-height: 335px;
    grid-template-columns: 132px minmax(0, 1fr);
    background: #f7f8fb;
}

.landing-preview-sidebar {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 10px;
    border-right: 1px solid #e8ebf1;
    background: #fff;
}

.landing-preview-sidebar span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 8px;
    border-radius: 6px;
    color: #68758a;
    font-size: 9px;
}

.landing-preview-sidebar span i {
    width: 13px;
    font-size: 9px;
    text-align: center;
}

.landing-preview-sidebar span.is-current {
    background: #fff1f1;
    color: var(--landing-red);
    font-weight: 750;
}

.landing-preview-content {
    min-width: 0;
    padding: 19px 17px;
}

.landing-preview-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.landing-preview-heading small,
.landing-preview-heading strong {
    display: block;
}

.landing-preview-heading small {
    color: #8993a3;
    font-size: 7px;
    letter-spacing: 1px;
}

.landing-preview-heading strong {
    margin-top: 5px;
    color: #253149;
    font-size: 13px;
}

.landing-preview-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 7px;
    border: 1px solid #e7ebf1;
    border-radius: 15px;
    background: #fff;
    color: #68758a;
    font-size: 8px;
}

.landing-preview-live span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d19b35;
}

.landing-preview-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 15px;
}

.landing-preview-metrics > div {
    min-width: 0;
    padding: 10px 9px;
    border: 1px solid #e8ebf1;
    border-radius: 8px;
    background: #fff;
}

.landing-preview-metrics span,
.landing-preview-metrics strong,
.landing-preview-metrics small {
    display: block;
}

.landing-preview-metrics span {
    color: #68758a;
    font-size: 8px;
}

.landing-preview-metrics strong {
    margin-top: 8px;
    color: #303d53;
    font-size: 11px;
}

.landing-preview-metrics small {
    margin-top: 3px;
    color: #939cab;
    font-size: 7px;
}

.landing-preview-panels {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr;
    gap: 8px;
    margin-top: 10px;
}

.landing-preview-panel {
    min-width: 0;
    min-height: 139px;
    padding: 10px;
    border: 1px solid #e8ebf1;
    border-radius: 8px;
    background: #fff;
}

.landing-preview-panel-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
}

.landing-preview-panel-title strong {
    color: #344054;
    font-size: 9px;
}

.landing-preview-panel-title > span {
    color: #98a1af;
    font-size: 7px;
    text-align: right;
}

.landing-preview-table {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.7fr;
    gap: 9px;
    margin-top: 14px;
    padding-top: 8px;
    border-top: 1px solid #eef0f4;
    color: #8993a3;
    font-size: 7px;
}

.landing-preview-empty {
    grid-column: 1 / -1;
    padding: 15px 3px;
    color: #98a1af;
    font-size: 8px;
    text-align: center;
}

.landing-preview-stock-state {
    display: grid;
    min-height: 82px;
    place-content: center;
    justify-items: center;
    gap: 8px;
    color: #788396;
    font-size: 8px;
    text-align: center;
}

.landing-preview-stock-state i {
    color: var(--landing-red);
    font-size: 19px;
}

.landing-preview-caption {
    margin-top: 10px;
    color: #7a8597;
    font-size: 9px;
    text-align: right;
}

.landing-trust-strip {
    border-top: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
    background: #fff;
}

.landing-trust-items {
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: center;
    gap: clamp(25px, 7vw, 92px);
}

.landing-trust-items span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #556176;
    font-size: 11px;
    font-weight: 700;
}

.landing-trust-items i {
    color: var(--landing-red);
    font-size: 13px;
}

.landing-section {
    padding: 82px 0;
    scroll-margin-top: 82px;
}

.landing-about-grid {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    align-items: center;
    gap: 80px;
}

.landing-section-intro h2,
.landing-centered-heading h2,
.landing-benefits-copy h2,
.landing-contact-copy h2 {
    color: var(--landing-ink);
    font-family: var(--font-family-display);
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 780;
    letter-spacing: -1.5px;
    line-height: 1.15;
}

.landing-section-intro > p:not(.landing-eyebrow),
.landing-benefits-copy > p:not(.landing-eyebrow),
.landing-contact-copy > p:not(.landing-eyebrow) {
    margin-top: 15px;
    color: var(--landing-muted);
    font-size: 13px;
    line-height: 1.8;
}

.landing-text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
    color: var(--landing-red);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.landing-text-link:hover {
    color: var(--landing-red-dark);
}

.landing-problem-list {
    display: grid;
    gap: 11px;
}

.landing-problem-list article {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px;
    border: 1px solid var(--landing-line);
    border-radius: 12px;
    background: #fff;
}

.landing-problem-list article > span,
.landing-feature-card > span,
.landing-role-grid article > span {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 11px;
    background: #fff1f1;
    color: var(--landing-red);
    font-size: 14px;
}

.landing-problem-list h3 {
    color: #29364b;
    font-size: 13px;
    font-weight: 750;
}

.landing-problem-list p {
    margin-top: 5px;
    color: var(--landing-muted);
    font-size: 11px;
    line-height: 1.65;
}

.landing-features {
    background: #f7f8fb;
}

.landing-centered-heading {
    max-width: 650px;
    margin: 0 auto 34px;
    text-align: center;
}

.landing-centered-heading .landing-eyebrow {
    justify-content: center;
}

.landing-centered-heading > p:last-child {
    margin-top: 11px;
    color: var(--landing-muted);
    font-size: 13px;
    line-height: 1.7;
}

.landing-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.landing-feature-card {
    min-height: 190px;
    padding: 20px;
    border: 1px solid #e7eaf0;
    border-radius: 13px;
    background: #fff;
    transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.landing-feature-card:hover {
    transform: translateY(-3px);
    border-color: #f0caca;
    box-shadow: 0 12px 26px rgba(31, 44, 66, 0.06);
}

.landing-feature-card > span {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 13px;
}

.landing-feature-card h3 {
    margin-top: 17px;
    color: #2b374b;
    font-size: 13px;
    font-weight: 760;
}

.landing-feature-card p {
    margin-top: 7px;
    color: var(--landing-muted);
    font-size: 11px;
    line-height: 1.7;
}

.landing-process {
    background: #fff;
}

.landing-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.landing-steps li {
    position: relative;
    padding: 0 22px;
}

.landing-steps li:first-child {
    padding-left: 0;
}

.landing-steps li:last-child {
    padding-right: 0;
}

.landing-steps li:not(:last-child)::after {
    position: absolute;
    top: 24px;
    right: -13px;
    width: 26px;
    height: 1px;
    background: #dce1e9;
    content: "";
}

.landing-step-number {
    display: block;
    margin-bottom: 11px;
    color: #a0a9b7;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.landing-step-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid #f0d4d4;
    border-radius: 13px;
    background: #fff7f7;
    color: var(--landing-red);
    font-size: 16px;
}

.landing-steps h3 {
    margin-top: 16px;
    color: #2b374b;
    font-size: 13px;
    font-weight: 760;
}

.landing-steps p {
    margin-top: 7px;
    color: var(--landing-muted);
    font-size: 11px;
    line-height: 1.7;
}

.landing-benefits {
    background: #f7f8fb;
}

.landing-benefits-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 90px;
}

.landing-benefits-copy .landing-button {
    margin-top: 24px;
}

.landing-benefit-list {
    display: grid;
    gap: 16px;
}

.landing-benefit-list > div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #465268;
    font-size: 12px;
    line-height: 1.65;
}

.landing-benefit-list i {
    display: grid;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    place-items: center;
    border-radius: 50%;
    background: #e7f5ec;
    color: #23804d;
    font-size: 9px;
}

.landing-preview-section {
    background: #fff;
}

.landing-preview-section-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 80px;
}

.landing-preview-section .landing-button {
    margin-top: 24px;
}

.landing-module-preview {
    padding: 21px;
    border: 1px solid var(--landing-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(32, 45, 70, 0.08);
}

.landing-module-preview-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid #edf0f4;
}

.landing-module-preview-head .landing-preview-mark {
    width: 39px;
    height: 39px;
    font-size: 15px;
}

.landing-module-preview-head strong,
.landing-module-preview-head small {
    display: block;
}

.landing-module-preview-head strong {
    color: #2b374b;
    font-size: 13px;
}

.landing-module-preview-head small {
    margin-top: 4px;
    color: var(--landing-muted);
    font-size: 10px;
}

.landing-module-preview > a {
    display: flex;
    min-height: 47px;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f0f2f5;
    color: #49566b;
    font-size: 11px;
    font-weight: 650;
    text-decoration: none;
}

.landing-module-preview > a:last-child {
    border-bottom: 0;
}

.landing-module-preview > a > i:first-child {
    width: 16px;
    color: var(--landing-red);
    text-align: center;
}

.landing-module-preview > a > span {
    flex: 1;
}

.landing-module-preview > a > i:last-child {
    color: #98a1af;
    font-size: 9px;
}

.landing-module-preview > a:hover {
    color: var(--landing-red);
}

.landing-roles {
    background: #f7f8fb;
}

.landing-role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.landing-role-grid article {
    padding: 23px;
    border: 1px solid #e5e9f0;
    border-radius: 13px;
    background: #fff;
}

.landing-role-grid h3 {
    margin-top: 16px;
    color: #29364b;
    font-size: 14px;
    font-weight: 760;
}

.landing-role-grid p {
    margin-top: 7px;
    color: var(--landing-muted);
    font-size: 11px;
    line-height: 1.75;
}

.landing-cta {
    padding: 44px 0;
    background:
        radial-gradient(circle at 85% 50%, rgba(255, 255, 255, 0.12), transparent 25%),
        #202a3c;
}

.landing-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.landing-cta .landing-eyebrow {
    color: #ffbaba;
}

.landing-cta h2 {
    max-width: 620px;
    color: #fff;
    font-family: var(--font-family-display);
    font-size: clamp(24px, 3.2vw, 35px);
    letter-spacing: -1px;
    line-height: 1.2;
}

.landing-cta-inner > div:first-child > p:last-child {
    margin-top: 9px;
    color: #c3cad5;
    font-size: 12px;
}

.landing-cta-actions {
    display: grid;
    justify-items: start;
    gap: 10px;
    flex: 0 0 auto;
}

.landing-button-white {
    background: #fff;
    color: #243047;
}

.landing-button-white:hover {
    background: #f0f2f6;
}

.landing-cta-login {
    color: #d4d9e2;
    font-size: 10px;
    text-decoration: none;
}

.landing-cta-login:hover {
    color: #fff;
}

.landing-contact {
    background: #fff;
}

.landing-contact-grid {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    align-items: start;
    gap: 72px;
}

.landing-contact-copy {
    padding-top: 12px;
}

.landing-contact-details {
    display: grid;
    gap: 14px;
    margin-top: 26px;
}

.landing-contact-details > a,
.landing-contact-details > div {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4a566a;
    text-decoration: none;
}

.landing-contact-details > a:hover {
    color: var(--landing-red);
}

.landing-contact-details > a > i,
.landing-contact-details > div > i {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 10px;
    background: #fff2f2;
    color: var(--landing-red);
    font-size: 13px;
}

.landing-contact-details small,
.landing-contact-details strong {
    display: block;
}

.landing-contact-details small {
    color: #8993a3;
    font-size: 9px;
}

.landing-contact-details strong {
    margin-top: 3px;
    color: #344054;
    font-size: 11px;
    font-weight: 700;
}

.landing-contact-config-note {
    color: var(--landing-muted);
    font-size: 11px;
}

.landing-policy-note {
    margin-top: 20px;
    border-top: 1px solid #edf0f4;
    color: #68758a;
    font-size: 10px;
}

.landing-policy-note + .landing-policy-note {
    margin-top: 0;
}

.landing-policy-note summary {
    padding: 11px 0;
    color: #465268;
    cursor: pointer;
    font-weight: 700;
}

.landing-policy-note p {
    padding: 0 0 12px;
    line-height: 1.7;
}

.landing-contact-card {
    padding: 27px;
    border: 1px solid #e4e8ef;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(32, 45, 70, 0.07);
}

.landing-contact-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.landing-contact-card-heading .landing-eyebrow {
    margin-bottom: 0;
}

.landing-contact-card-heading > p {
    color: #8993a3;
    font-size: 9px;
}

.landing-contact-card-heading > p span,
.landing-contact-form label > span {
    color: var(--landing-red);
}

.landing-form-alert {
    padding: 11px 13px;
    margin-top: 17px;
    border: 1px solid #cce9d8;
    border-radius: 9px;
    background: #f0faf4;
    color: #216a43;
    font-size: 11px;
    line-height: 1.55;
}

.landing-form-alert.error {
    border-color: #f0cccc;
    background: #fff4f3;
    color: #a62b24;
}

.landing-form-alert.warning {
    border-color: #f0dfb8;
    background: #fff9eb;
    color: #78540e;
}

.landing-contact-form {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.landing-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.landing-contact-form label {
    display: grid;
    gap: 7px;
    color: #39465b;
    font-size: 10px;
    font-weight: 750;
}

.landing-contact-form input,
.landing-contact-form select,
.landing-contact-form textarea {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 10px 11px;
    border: 1px solid #dce2eb;
    border-radius: 8px;
    background: #fff;
    color: var(--landing-ink);
    font-size: 12px;
    font-weight: 450;
    line-height: 1.5;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.landing-contact-form textarea {
    min-height: 112px;
    resize: vertical;
}

.landing-contact-form input:focus,
.landing-contact-form select:focus,
.landing-contact-form textarea:focus {
    border-color: var(--landing-red);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.09);
    outline: none;
}

.landing-contact-form label > small {
    color: #8993a3;
    font-size: 9px;
    font-weight: 450;
    text-align: right;
}

.landing-contact-form > .landing-button {
    width: 100%;
    border: 0;
}

.landing-form-footnote {
    color: #8993a3;
    font-size: 9px;
    line-height: 1.6;
    text-align: center;
}

.landing-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    border: 0;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.landing-footer {
    padding: 44px 0 18px;
    background: #171f2e;
    color: #c6cdd8;
}

.landing-footer-main {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 32px;
}

.landing-footer .landing-brand {
    color: #fff;
}

.landing-footer .landing-brand small {
    color: #aab3c1;
}

.landing-footer .landing-brand strong span {
    color: #ff8888;
}

.landing-footer-brand > p {
    max-width: 250px;
    margin-top: 13px;
    color: #aab3c1;
    font-size: 10px;
    line-height: 1.7;
}

.landing-footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    gap: 34px;
}

.landing-footer-links > div {
    display: grid;
    align-content: start;
    gap: 9px;
}

.landing-footer-links strong {
    margin-bottom: 3px;
    color: #fff;
    font-size: 10px;
}

.landing-footer-links a {
    color: #aab3c1;
    font-size: 10px;
    text-decoration: none;
}

.landing-footer-links a:hover {
    color: #fff;
}

.landing-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 15px;
    border-top: 1px solid #30394a;
    color: #929dad;
    font-size: 9px;
}

@media (max-width: 1000px) {
    .landing-navigation {
        gap: 13px;
    }

    .landing-navigation > a,
    .landing-login-link {
        font-size: 11px;
    }

    .landing-hero-grid {
        gap: 32px;
    }

    .landing-preview-body {
        grid-template-columns: 105px minmax(0, 1fr);
    }

    .landing-about-grid,
    .landing-benefits-grid,
    .landing-preview-section-grid {
        gap: 48px;
    }

    .landing-contact-grid {
        gap: 42px;
    }
}

@media (max-width: 860px) {
    .landing-header-inner {
        min-height: 68px;
    }

    .landing-menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .landing-navigation {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 10px 24px 18px;
        border-bottom: 1px solid var(--landing-line);
        background: #fff;
        box-shadow: 0 16px 24px rgba(23, 32, 51, 0.08);
    }

    .landing-navigation.is-open {
        display: flex;
    }

    .landing-navigation > a {
        padding: 11px 4px;
        border-bottom: 1px solid #f0f2f5;
        font-size: 13px;
    }

    .landing-nav-actions {
        justify-content: space-between;
        gap: 16px;
        margin: 13px 0 0;
    }

    .landing-hero {
        padding: 58px 0;
    }

    .landing-hero-grid {
        grid-template-columns: 1fr;
    }

    .landing-hero-copy {
        max-width: 640px;
    }

    .landing-dashboard-preview {
        width: min(100%, 680px);
        margin: 0 auto;
        transform: none;
    }

    .landing-about-grid,
    .landing-benefits-grid,
    .landing-preview-section-grid,
    .landing-contact-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .landing-about-grid,
    .landing-benefits-grid,
    .landing-preview-section-grid,
    .landing-contact-grid {
        width: min(720px, calc(100% - 48px));
    }

    .landing-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 30px;
    }

    .landing-steps li:nth-child(2) {
        padding-right: 0;
    }

    .landing-steps li:nth-child(2)::after {
        display: none;
    }

    .landing-steps li:nth-child(3) {
        padding-left: 0;
    }

    .landing-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .landing-shell,
    .landing-header-inner {
        width: calc(100% - 36px);
    }

    .landing-hero {
        padding: 46px 0 40px;
    }

    .landing-hero h1 {
        font-size: clamp(38px, 11vw, 54px);
        letter-spacing: -1.9px;
    }

    .landing-hero-description {
        font-size: 13px;
    }

    .landing-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .landing-hero-actions .landing-button {
        width: 100%;
    }

    .landing-preview-body {
        min-height: 280px;
        grid-template-columns: 1fr;
    }

    .landing-preview-sidebar {
        display: none;
    }

    .landing-preview-content {
        padding: 14px 12px;
    }

    .landing-preview-metrics {
        gap: 5px;
    }

    .landing-preview-metrics > div {
        padding: 8px 6px;
    }

    .landing-preview-metrics span {
        font-size: 7px;
    }

    .landing-preview-metrics strong {
        font-size: 9px;
    }

    .landing-preview-metrics small {
        font-size: 6px;
    }

    .landing-preview-panels {
        grid-template-columns: 1fr;
    }

    .landing-preview-stock {
        display: none;
    }

    .landing-preview-account {
        font-size: 0;
    }

    .landing-preview-account i {
        font-size: 13px;
    }

    .landing-preview-caption {
        font-size: 8px;
        text-align: left;
    }

    .landing-trust-items {
        min-height: 76px;
        justify-content: space-between;
        gap: 9px;
    }

    .landing-trust-items span {
        flex-direction: column;
        gap: 5px;
        font-size: 8px;
    }

    .landing-section {
        padding: 58px 0;
    }

    .landing-about-grid,
    .landing-benefits-grid,
    .landing-preview-section-grid,
    .landing-contact-grid {
        width: calc(100% - 36px);
    }

    .landing-section-intro h2,
    .landing-centered-heading h2,
    .landing-benefits-copy h2,
    .landing-contact-copy h2 {
        font-size: 30px;
        letter-spacing: -1px;
    }

    .landing-feature-grid {
        gap: 9px;
    }

    .landing-feature-card {
        min-height: 181px;
        padding: 14px;
    }

    .landing-feature-card h3 {
        font-size: 12px;
    }

    .landing-feature-card p {
        font-size: 10px;
    }

    .landing-steps {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }

    .landing-steps li {
        padding: 0;
    }

    .landing-steps li::after {
        display: none;
    }

    .landing-steps h3 {
        font-size: 12px;
    }

    .landing-steps p {
        font-size: 10px;
    }

    .landing-role-grid {
        grid-template-columns: 1fr;
    }

    .landing-role-grid article {
        padding: 19px;
    }

    .landing-cta {
        padding: 36px 0;
    }

    .landing-cta-inner {
        gap: 20px;
    }

    .landing-contact-card {
        padding: 19px 15px;
    }

    .landing-contact-card-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .landing-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .landing-footer-main {
        flex-direction: column;
        gap: 28px;
    }

    .landing-footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 18px;
    }

    .landing-footer-bottom {
        flex-direction: column;
        gap: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-page *,
    .landing-page *::before,
    .landing-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Staff workspace polish */
body.inventory-page {
    background:
        radial-gradient(ellipse at 50% -18rem, rgba(198, 40, 40, 0.055), transparent 44rem),
        #f4f6fa;
}

.inventory-page .inv-topbar {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 30px);
    padding: 11px clamp(20px, 3.2vw, 48px);
    border-bottom-color: #e8ebf1;
    box-shadow: 0 5px 20px rgba(24, 35, 54, 0.045);
}

.inventory-page .inv-brand {
    color: #172033;
    font-size: 19px;
    letter-spacing: -0.65px;
}

.inventory-page .inv-brand::before {
    width: 36px;
    height: 36px;
    border-radius: 12px;
}

.inventory-page .inv-topbar nav {
    flex: 1;
    gap: 3px;
}

.inventory-page .inv-topbar nav > a {
    padding: 9px 10px;
    border-radius: 9px;
    color: #596579;
    font-size: 12px;
    font-weight: 650;
    transition: background-color 150ms ease, color 150ms ease;
}

.inventory-page .inv-topbar nav > a.active,
.inventory-page .inv-topbar nav > a:hover {
    background: #fff1f0;
    color: #ae2020;
}

.inventory-page .inv-topbar .user-identity {
    max-width: 180px;
    padding: 8px 11px;
    border: 1px solid #e8ebf1;
    border-radius: 999px;
    background: #f7f8fa;
    color: #465166;
    font-size: 11px;
    font-weight: 700;
}

.inventory-page .logout-form .btn {
    min-height: 36px;
    padding: 7px 10px;
    border-color: transparent;
    background: transparent;
    color: #586477;
    font-size: 12px;
}

.inventory-page .logout-form .btn:hover {
    border-color: #f1d2d2;
    background: #fff4f3;
    color: #a91f1f;
}

.inventory-page .inv-topbar nav .language-switcher {
    flex: 0 0 auto;
    gap: 2px;
    padding: 3px;
    border-color: #e6e9ef;
    background: #f4f5f7;
}

.inventory-page .inv-topbar nav .language-switcher a {
    min-height: 30px;
    padding: 0 9px;
    border-radius: 999px;
    color: #596579;
    font-size: 10px;
}

.inventory-page .inv-topbar nav .language-switcher a:hover,
.inventory-page .inv-topbar nav .language-switcher a[aria-current="true"] {
    background: #fff;
    color: #ae2020;
}

.inventory-page .inv-topbar nav .language-switcher a[aria-current="true"] {
    box-shadow: 0 1px 4px rgba(27, 39, 57, 0.12);
}

.inventory-page .inv-container {
    width: min(1380px, calc(100% - 64px));
    margin-top: 38px;
    margin-bottom: 64px;
}

.inventory-page .dashboard-welcome {
    position: relative;
    align-items: center;
    min-height: 170px;
    margin-bottom: 22px;
    padding: 28px 32px;
    overflow: hidden;
    border: 1px solid #e9eaf0;
    border-radius: 20px;
    background:
        radial-gradient(circle at 93% 5%, rgba(198, 40, 40, 0.1), transparent 17rem),
        linear-gradient(110deg, #fff 0%, #fff 70%, #fffafa 100%);
    box-shadow: 0 10px 32px rgba(25, 38, 59, 0.045);
}

.inventory-page .dashboard-welcome::after {
    position: absolute;
    right: -44px;
    bottom: -96px;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(198, 40, 40, 0.08);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.inventory-page .dashboard-welcome > div,
.inventory-page .dashboard-actions {
    position: relative;
    z-index: 1;
}

.inventory-page .dashboard-welcome .eyebrow {
    margin-bottom: 7px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.65px;
}

.inventory-page .dashboard-welcome h1 {
    margin: 0;
    color: #172033;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 780;
    letter-spacing: -1.2px;
}

.inventory-page .dashboard-welcome .muted {
    margin-top: 9px;
    font-size: 13px;
}

.inventory-page .dashboard-actions {
    align-items: center;
    gap: 9px;
}

.inventory-page .dashboard-actions .btn {
    min-height: 42px;
    box-shadow: none;
}

.inventory-page .dashboard-grid {
    gap: 15px;
    margin-bottom: 20px;
}

.inventory-page .dashboard-stat {
    position: relative;
    min-height: 148px;
    padding: 21px 22px;
    overflow: hidden;
    border-color: #e8ebf1;
    border-radius: 16px;
    box-shadow: 0 7px 22px rgba(25, 38, 59, 0.04);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.inventory-page .dashboard-stat:hover {
    transform: translateY(-2px);
    border-color: #dfe3eb;
    box-shadow: 0 12px 26px rgba(25, 38, 59, 0.075);
}

.inventory-page .dashboard-stat .stat-top {
    color: #6a7588;
    font-size: 12px;
    font-weight: 700;
}

.inventory-page .dashboard-stat .stat-icon {
    width: 39px;
    height: 39px;
    border: 1px solid #f4dddd;
    border-radius: 12px;
    background: #fff5f4;
    color: #c62828;
}

.inventory-page .dashboard-stat:nth-child(2) .stat-icon {
    border-color: #dce8f8;
    background: #f1f6fd;
    color: #3970b8;
}

.inventory-page .dashboard-stat:nth-child(3) .stat-icon {
    border-color: #dceee6;
    background: #f0f8f4;
    color: #25815a;
}

.inventory-page .dashboard-stat:nth-child(4) .stat-icon {
    border-color: #f2e7d0;
    background: #fff9ed;
    color: #ad7417;
}

.inventory-page .dashboard-stat > strong {
    margin-top: 16px;
    color: #1b2638;
    font-size: clamp(24px, 2.2vw, 31px);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.9px;
}

.inventory-page .dashboard-stat > small {
    margin-top: 7px;
    color: #8791a1;
    font-size: 11px;
}

.inventory-page .dashboard-columns {
    gap: 18px;
}

.inventory-page .dashboard-panel {
    margin-bottom: 18px;
    border-color: #e8ebf1;
    border-radius: 16px;
    box-shadow: 0 7px 24px rgba(25, 38, 59, 0.04);
}

.inventory-page .dashboard-panel-head {
    padding: 19px 21px;
    border-bottom-color: #eef0f4;
}

.inventory-page .dashboard-panel-head h2 {
    color: #202b3e;
    font-size: 15px;
    font-weight: 760;
    letter-spacing: -0.2px;
}

.inventory-page .dashboard-panel-head p {
    margin-top: 5px;
    color: #818b9b;
    font-size: 11px;
}

.inventory-page .dashboard-panel-head a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #b12222;
    font-size: 11px;
}

.inventory-page .dashboard-panel table {
    min-width: 620px;
}

.inventory-page .dashboard-panel th {
    background: #f8f9fb;
    color: #798496;
    font-size: 9px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.inventory-page .dashboard-panel td {
    padding-top: 13px;
    padding-bottom: 13px;
    color: #465166;
    font-size: 12px;
}

.inventory-page .dashboard-panel tbody tr:hover {
    background: #fffafa;
}

.inventory-page .quick-links {
    gap: 9px;
    padding: 16px;
}

.inventory-page .quick-link {
    min-height: 72px;
    padding: 12px;
    border-color: #eaedf2;
    border-radius: 12px;
    background: #fff;
    transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.inventory-page .quick-link:hover {
    transform: translateY(-1px);
    border-color: #e7c2c2;
    background: #fffafa;
}

.inventory-page .quick-link .stat-icon {
    width: 36px;
    height: 36px;
}

.inventory-page .quick-link strong {
    color: #283449;
    font-size: 11px;
    font-weight: 750;
}

.inventory-page .quick-link small {
    color: #838d9c;
    font-size: 10px;
}

.inventory-page .dashboard-list li {
    padding: 14px 20px;
    border-bottom-color: #eef0f4;
}

.inventory-page .dashboard-list .item-main strong {
    color: #2b3649;
}

.inventory-page .dashboard-list .item-main small {
    color: #818b9b;
}

.inventory-page .dashboard-list .item-value {
    color: #303b4f;
    font-variant-numeric: tabular-nums;
}

.inventory-page .dashboard-empty {
    padding: 30px 22px;
    color: #798496;
    font-size: 12px;
}

.inventory-page .dashboard-footnote {
    margin-top: 22px;
    color: #8a94a3;
    font-size: 10px;
    text-align: center;
}

.inventory-page .alert {
    border: 1px solid transparent;
    box-shadow: 0 4px 14px rgba(25, 38, 59, 0.035);
}

.inventory-page .alert.success {
    border-color: #cce8d8;
    background: #f1faf4;
    color: #216b45;
}

.inventory-page .alert.error {
    border-color: #f0d1d1;
    background: #fff5f4;
    color: #a12828;
}

.inventory-page .inv-card,
.inventory-page .user-panel {
    border-color: #e8ebf1;
    border-radius: 16px;
    box-shadow: 0 7px 24px rgba(25, 38, 59, 0.04);
}

.inventory-page .filter-row,
.inventory-page .movement-filter {
    gap: 10px;
    background: #fff;
}

.inventory-page input:not([type="checkbox"]):not([type="radio"]),
.inventory-page select,
.inventory-page textarea {
    border-color: #dfe4ec;
    border-radius: 9px;
    background-color: #fff;
    color: #253147;
}

.inventory-page input:focus,
.inventory-page select:focus,
.inventory-page textarea:focus {
    border-color: #cf7474;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.08);
    outline: none;
}

.finance-page .inv-card > h2 {
    margin: 0;
    padding: 22px 24px 0;
    font-size: 17px;
    line-height: 1.4;
}

.finance-page .inv-card > h2 + .muted {
    margin: 8px 24px 0;
}

.finance-page .inv-card > h2 + .table-wrap,
.finance-page .inv-card > .muted + .table-wrap {
    margin-top: 14px;
}

.finance-page .inv-card > h3 {
    margin: 24px 24px 8px;
    font-size: 15px;
    line-height: 1.4;
}

.finance-page .inv-card > ul {
    margin: 0 24px 22px;
    padding-left: 20px;
    line-height: 1.65;
}

.finance-page .inv-card > .supplier-form + .muted {
    margin: 0;
    padding: 0 24px 20px;
}

.finance-page .inv-card > .form-grid {
    padding: 20px 24px 24px;
}

.finance-page .inv-card > .filter-row {
    flex-wrap: wrap;
    padding: 20px 24px;
}

.finance-page .inv-card > .filter-row > input[type="search"] {
    flex: 1 1 240px;
    min-width: 0;
}

.finance-page .inv-card > .filter-row > label {
    flex: 1 1 135px;
    min-width: 0;
}

.finance-page .inv-card > .filter-row > label input {
    width: 100%;
    min-width: 0;
}

.finance-page .inv-card > .stats-grid {
    margin: 0;
    padding: 20px 24px 0;
}

.finance-page .table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.finance-page .form-actions {
    flex-wrap: wrap;
}

.expense-entry-card {
    overflow: hidden;
}

.expense-entry-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 23px 26px 19px;
    border-bottom: 1px solid #edf0f4;
}

.expense-entry-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border: 1px solid #f0d7d7;
    border-radius: 13px;
    background: #fff6f5;
    color: #b4232b;
    font-size: 17px;
}

.expense-entry-heading .eyebrow {
    margin: 0 0 5px;
    color: #b4232b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.expense-entry-heading h2 {
    margin: 0;
    color: #263248;
    font-size: 18px;
    line-height: 1.4;
}

.expense-entry-heading .muted {
    max-width: 700px;
    margin: 5px 0 0;
    line-height: 1.55;
}

.expense-entry-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
    padding: 22px 26px 24px;
}

.expense-entry-form label {
    align-content: start;
    gap: 7px;
    min-width: 0;
    font-size: 12px;
}

.expense-entry-form input,
.expense-entry-form select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #dfe4ec;
    border-radius: 10px;
    background: #fff;
    color: #253147;
    font: inherit;
    font-size: 13px;
    transition: border-color .18s, box-shadow .18s;
}

.expense-entry-form input:focus,
.expense-entry-form select:focus {
    border-color: #d45a5a;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, .08);
    outline: none;
}

.expense-entry-form .expense-title-field,
.expense-entry-form .expense-description-field,
.expense-entry-form .form-actions,
.expense-entry-form > .muted {
    grid-column: 1 / -1;
}

.inventory-page .expense-entry-form .expense-amount-field input {
    border-color: #e7bcbc;
    background: #fffafa;
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.expense-entry-form .expense-payment-method-field small {
    color: #7a8595;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.45;
}

.expense-entry-form .form-actions {
    justify-content: flex-start;
    margin: 1px 0 0;
    padding: 16px 0 0;
}

.expense-category-alert {
    margin: 18px 26px 22px;
}

.expense-filter-form {
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, .7fr) auto;
    align-items: end;
}

.expense-filter-form label {
    min-width: 0;
}

.expense-filter-form .expense-status-filter {
    max-width: 220px;
}

.expense-filter-form .expense-status-filter select {
    max-width: 220px;
}

.expense-filter-form input,
.expense-filter-form select {
    width: 100%;
    min-width: 0;
}

.expense-filter-form .btn {
    min-height: 43px;
}

.expense-pay-form {
    display: grid;
    grid-template-columns: minmax(130px, .7fr) minmax(145px, 1fr) auto;
    margin: 9px 0;
}

.expense-pay-form select,
.expense-pay-form input {
    width: 100%;
    min-width: 0;
}

.expense-cancel-form {
    padding: 12px;
    border: 1px solid #edf0f4;
    border-radius: 10px;
    background: #fafbfc;
}

.expense-entry-card + .inv-card {
    margin-top: 20px;
}

.debt-entry-card {
    overflow: hidden;
}

.debt-entry-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 26px 20px;
    border-bottom: 1px solid #edf0f4;
}

.debt-entry-mark {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border: 1px solid #f0d7d7;
    border-radius: 14px;
    background: #fff6f5;
    color: #b4232b;
    font-size: 13px;
    font-weight: 800;
}

.debt-entry-heading .eyebrow {
    margin: 0 0 5px;
    color: #b4232b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.debt-entry-heading h2 {
    margin: 0;
    color: #263248;
    font-size: 19px;
    line-height: 1.35;
}

.debt-entry-heading .muted {
    max-width: 720px;
    margin: 6px 0 0;
    line-height: 1.55;
}

.debt-entry-form {
    display: grid;
    gap: 0;
    padding: 0 26px;
}

.debt-entry-section {
    display: grid;
    grid-template-columns: minmax(175px, 0.72fr) minmax(0, 2fr);
    gap: 24px;
    padding: 23px 0;
    border-bottom: 1px solid #edf0f4;
}

.debt-entry-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.debt-entry-step {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 10px;
    background: #f4f6f9;
    color: #667287;
    font-size: 10px;
    font-weight: 800;
}

.debt-entry-section-heading h3 {
    margin: 1px 0 5px;
    color: #29364b;
    font-size: 13px;
    line-height: 1.4;
}

.debt-entry-section-heading p {
    max-width: 190px;
    margin: 0;
    color: #828d9d;
    font-size: 11px;
    line-height: 1.55;
}

.debt-entry-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 18px;
    min-width: 0;
}

.debt-entry-fields label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
    color: #39465b;
    font-size: 12px;
    font-weight: 700;
}

.debt-entry-fields input {
    width: 100%;
    min-width: 0;
    min-height: 43px;
    padding: 10px 12px;
    font-size: 13px;
}

.debt-amount-field input {
    border-color: #e7bcbc !important;
    background: #fffafa !important;
    font-variant-numeric: tabular-nums;
}

.debt-entry-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0 23px;
}

.debt-entry-footer p {
    max-width: 520px;
    margin: 0;
    color: #778397;
    font-size: 11px;
    line-height: 1.6;
}

.debt-entry-footer .btn {
    display: inline-flex;
    min-height: 44px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.debt-payment-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 2px;
    padding: 14px;
    border: 1px solid #e8ebf1;
    border-radius: 12px;
    background: #f8f9fc;
}

.debt-payment-form label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
    color: #39465b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.debt-payment-form input,
.debt-payment-form select {
    width: 100%;
    min-width: 0;
    min-height: 41px;
    padding: 9px 10px;
    font-size: 12px;
}

.debt-payment-form .btn {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 42px;
}

.finance-page .table-wrap details > p {
    margin: 10px 0;
    color: #536176;
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .expense-entry-heading {
        padding: 20px 18px 17px;
    }

    .expense-entry-form {
        padding: 19px 18px 21px;
    }

    .expense-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 18px;
    }

    .expense-pay-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .debt-entry-heading {
        gap: 12px;
        padding: 20px 18px 17px;
    }

    .debt-entry-mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 12px;
    }

    .debt-entry-heading h2 {
        font-size: 17px;
    }

    .debt-entry-form {
        padding: 0 18px;
    }

    .debt-entry-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 19px 0;
    }

    .debt-entry-section-heading p {
        max-width: none;
    }

    .debt-entry-footer {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
        padding: 18px 0 20px;
    }

    .debt-entry-footer .btn {
        width: 100%;
    }

    .debt-payment-form {
        grid-template-columns: minmax(0, 1fr);
        padding: 12px;
    }

    .debt-payment-form .btn {
        grid-column: auto;
    }
}

@media (max-width: 430px) {
    .expense-entry-form,
    .expense-filter-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .expense-entry-form .form-actions {
        flex-direction: column;
    }

    .expense-entry-form .form-actions .btn {
        width: 100%;
    }

    .debt-entry-fields {
        grid-template-columns: minmax(0, 1fr);
        gap: 13px;
    }
}

@media (max-width: 1100px) {
    .inventory-page .inv-topbar {
        align-items: flex-start;
    }

    .inventory-page .inv-topbar nav {
        flex: 0 1 auto;
    }

    .inventory-page .dashboard-welcome {
        align-items: flex-start;
    }
}

@media (max-width: 760px) {
    .inventory-page .inv-topbar {
        gap: 9px;
        padding: 12px 16px;
    }

    .inventory-page .inv-topbar nav {
        gap: 4px;
    }

    .inventory-page .inv-topbar .user-identity {
        max-width: 150px;
    }

    .inventory-page .inv-container {
        width: calc(100% - 32px);
        margin-top: 23px;
        margin-bottom: 42px;
    }

    .finance-page .inv-card > h2 {
        padding: 19px 18px 0;
    }

    .finance-page .inv-card > h2 + .muted {
        margin-right: 18px;
        margin-left: 18px;
    }

    .finance-page .inv-card > h3 {
        margin-right: 18px;
        margin-left: 18px;
    }

    .finance-page .inv-card > ul {
        margin-right: 18px;
        margin-left: 18px;
    }

    .finance-page .inv-card > .supplier-form + .muted {
        padding-right: 18px;
        padding-left: 18px;
    }

    .finance-page .inv-card > .form-grid,
    .finance-page .inv-card > .filter-row {
        padding-right: 18px;
        padding-left: 18px;
    }

    .finance-page .inv-card > .stats-grid {
        padding-right: 18px;
        padding-left: 18px;
    }

    .inventory-page .dashboard-welcome {
        min-height: unset;
        padding: 23px;
    }

    .inventory-page .dashboard-columns {
        gap: 0;
    }
}

@media (max-width: 430px) {
    .inventory-page .dashboard-welcome {
        padding: 20px 18px;
        border-radius: 16px;
    }

    .inventory-page .dashboard-actions {
        gap: 8px;
    }

    .inventory-page .dashboard-actions .btn {
        min-height: 40px;
        padding: 9px 11px;
        font-size: 11px;
    }

    .inventory-page .dashboard-stat {
        min-height: 132px;
        padding: 15px;
        border-radius: 14px;
    }

    .inventory-page .dashboard-stat .stat-top {
        font-size: 10px;
    }

    .inventory-page .dashboard-stat > strong {
        font-size: 21px;
    }

    .inventory-page .dashboard-stat > small {
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .inventory-page *,
    .inventory-page *::before,
    .inventory-page *::after {
        transition-duration: 0.01ms !important;
    }
}

/* Workspace shell inspired by the compact reference dashboard. */
.inventory-page .inv-topbar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    width: 258px;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding: 22px 14px 14px;
    overflow: hidden;
    border: 0;
    border-right: 1px solid #343943;
    border-radius: 0;
    background: #20242c;
    box-shadow: 8px 0 30px rgba(20, 27, 38, .08);
    backdrop-filter: none;
}

.inventory-page .inv-brand {
    flex: 0 0 auto;
    gap: 9px;
    margin: 0 4px;
    padding: 0 3px 19px;
    border-bottom: 1px solid #363b45;
    color: #fff;
    font-size: 19px;
}

.inventory-page .inv-brand span {
    color: #a7afbd;
    font-size: 12px;
}

.inventory-page .workspace-nav {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 19px;
    width: 100%;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-color: #4a505b transparent;
    scrollbar-width: thin;
}

.inventory-page .inv-topbar nav.workspace-nav {
    align-items: stretch;
    justify-content: flex-start;
    gap: 19px;
}

.inventory-page .workspace-nav .nav-section {
    position: relative;
    display: grid;
    gap: 0;
    margin: 0;
}

.inventory-page .workspace-nav .nav-section-title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 31px;
    padding: 0 10px;
    border-radius: 7px;
    color: #a7afbd;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.45px;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
    transition: background-color 150ms ease, color 150ms ease;
}

.inventory-page .workspace-nav .nav-section-title::-webkit-details-marker {
    display: none;
}

.inventory-page .workspace-nav .nav-section-title::after {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    content: "";
    transform: rotate(45deg) translateY(-2px);
    transition: transform 150ms ease;
}

.inventory-page .workspace-nav .nav-section[open] > .nav-section-title {
    color: #e4e7ed;
}

.inventory-page .workspace-nav .nav-section[open] > .nav-section-title::after {
    transform: rotate(225deg) translate(-2px, -1px);
}

.inventory-page .workspace-nav .nav-section-title:hover {
    background: #2b3039;
    color: #fff;
}

.inventory-page .workspace-nav .nav-section-links {
    display: grid;
    gap: 4px;
    padding-top: 4px;
}

.inventory-page .workspace-nav .nav-section:not([open]) > .nav-section-links {
    display: none;
}

.inventory-page .workspace-nav .nav-section-links > a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 39px;
    padding: 9px 11px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #c4cad4;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.inventory-page .workspace-nav .nav-section-links > a::before {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border: 1px solid #8e97a6;
    border-radius: 2px;
    content: "";
    transform: rotate(45deg);
}

.inventory-page .workspace-nav .nav-section-links > a:hover {
    border-color: #414650;
    background: #2b3039;
    color: #fff;
}

.inventory-page .workspace-nav .nav-section-links > a.active {
    border-color: rgba(239, 93, 93, .2);
    background: rgba(198, 40, 40, .18);
    color: #fff;
}

.inventory-page .workspace-nav .nav-section-links > a.active::before {
    border-color: #f27b76;
    background: #c62828;
}

.inventory-page .workspace-nav-footer {
    display: grid;
    flex: 0 0 auto;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #363b45;
}

.inventory-page .workspace-nav-footer .user-identity {
    max-width: 100%;
    padding: 11px 12px;
    overflow: hidden;
    border: 1px solid #3b414c;
    border-radius: 9px;
    background: #292e37;
    color: #eef0f4;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inventory-page .workspace-nav-footer .language-switcher {
    display: flex;
    justify-content: flex-start;
    gap: 5px;
    padding: 4px;
    border: 1px solid #3b414c;
    border-radius: 9px;
    background: #292e37;
}

.inventory-page .workspace-nav-footer .language-switcher > span {
    display: none;
}

.inventory-page .workspace-nav-footer .language-switcher a {
    display: inline-flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    min-height: 30px;
    padding: 4px 8px;
    border-radius: 6px;
    color: #c4cad4;
    font-size: 10px;
    text-decoration: none;
}

.inventory-page .workspace-nav-footer .language-switcher a[aria-current="true"] {
    background: #3a404a;
    color: #fff;
}

.inventory-page .workspace-nav-footer .logout-form {
    margin: 0;
}

.inventory-page .workspace-nav-footer .logout-form .btn {
    width: 100%;
    justify-content: flex-start;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #c4cad4;
}

.inventory-page .workspace-nav-footer .logout-form .btn:hover {
    border-color: rgba(239, 93, 93, .2);
    background: rgba(198, 40, 40, .16);
    color: #fff;
}

.inventory-page .inv-topbar ~ .inv-container {
    width: min(1440px, calc(100% - 322px));
    margin: 32px 32px 56px 290px;
}

.inventory-page.dashboard-page {
    background: #f2f4f7;
}

.dashboard-page .dashboard-welcome {
    min-height: 0;
    margin-bottom: 21px;
    padding: 8px 2px 19px;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid #dfe3e9;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.dashboard-page .dashboard-welcome::after {
    display: none;
}

.dashboard-page .dashboard-welcome h1 {
    font-size: clamp(25px, 2.5vw, 32px);
}

.dashboard-page .dashboard-welcome .muted {
    max-width: 680px;
}

.dashboard-page .dashboard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.dashboard-page .dashboard-stat {
    min-height: 132px;
    border-radius: 13px;
}

.dashboard-page .dashboard-columns {
    grid-template-columns: minmax(0, 1.55fr) minmax(290px, .95fr);
    gap: 14px;
}

.dashboard-page .dashboard-panel {
    border-radius: 13px;
}

@media (max-width: 1050px) {
    .inventory-page .inv-topbar {
        position: sticky;
        inset: auto;
        width: 100%;
        height: auto;
        min-height: 0;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px 18px;
        padding: 12px 18px;
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid #343943;
    }

    .inventory-page .inv-brand {
        margin: 0;
        padding: 0;
        border: 0;
    }

    .inventory-page .workspace-nav {
        flex: 1 0 100%;
        align-content: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0;
        overflow: visible;
        padding-bottom: 3px;
    }

    .inventory-page .inv-topbar nav.workspace-nav {
        flex: 1 0 100%;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
    }

    .inventory-page .workspace-nav .nav-section {
        display: block;
        flex: 0 0 auto;
        margin: 0;
    }

    .inventory-page .workspace-nav .nav-section[open] {
        flex: 1 0 100%;
        width: 100%;
    }

    .inventory-page .workspace-nav .nav-section-title {
        min-height: 36px;
        padding: 8px 10px;
        border: 1px solid #3b414c;
        background: #292e37;
        color: #c4cad4;
        font-size: 10px;
        white-space: nowrap;
    }

    .inventory-page .workspace-nav .nav-section[open] > .nav-section-title {
        border-color: rgba(239, 93, 93, .3);
        background: rgba(198, 40, 40, .18);
        color: #fff;
    }

    .inventory-page .workspace-nav .nav-section-links {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
        width: 100%;
        margin-top: 5px;
        padding: 8px;
        border: 1px solid #3b414c;
        border-radius: 10px;
        background: #20242c;
        box-shadow: 0 12px 30px rgba(14, 18, 25, .24);
    }

    .inventory-page .workspace-nav .nav-section-links > a {
        min-height: 36px;
        padding: 8px;
        white-space: normal;
    }

    .inventory-page .workspace-nav-footer {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding-top: 8px;
        border-top: 1px solid #363b45;
    }

    .inventory-page .workspace-nav-footer .user-identity {
        flex: 1;
        width: auto;
        padding: 7px 10px;
    }

    .inventory-page .workspace-nav-footer .language-switcher {
        flex: 0 0 auto;
    }

    .inventory-page .workspace-nav-footer .logout-form {
        flex: 0 0 auto;
    }

    .inventory-page .workspace-nav-footer .logout-form .btn {
        width: auto;
        min-height: 34px;
    }

    .inventory-page .inv-topbar ~ .inv-container {
        width: min(100% - 36px, 1440px);
        margin: 27px auto 44px;
    }
}

@media (max-width: 700px) {
    .inventory-page .inv-topbar {
        gap: 9px 12px;
        padding: 11px 13px;
    }

    .inventory-page .workspace-nav .nav-section-links > a {
        min-height: 34px;
        padding: 7px 9px;
        font-size: 11px;
    }

    .inventory-page .workspace-nav .nav-section-links > a::before {
        width: 6px;
        height: 6px;
        flex-basis: 6px;
    }

    .inventory-page .workspace-nav-footer {
        flex-wrap: wrap;
    }

    .inventory-page .workspace-nav-footer .user-identity {
        flex-basis: calc(100% - 120px);
    }

    .inventory-page .workspace-nav-footer .language-switcher {
        margin-left: auto;
    }

    .inventory-page .inv-topbar ~ .inv-container {
        width: calc(100% - 26px);
        margin-top: 21px;
    }

    .dashboard-page .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-page .dashboard-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 420px) {
    .inventory-page .inv-brand {
        font-size: 17px;
    }

    .inventory-page .inv-brand span {
        font-size: 11px;
    }

    .inventory-page .workspace-nav-footer .user-identity {
        font-size: 11px;
    }

    .dashboard-page .dashboard-grid {
        gap: 9px;
    }

    .dashboard-page .dashboard-stat {
        min-height: 124px;
        padding: 14px;
    }
}

.landing-whatsapp-contact {
    display: flex;
    min-height: 72px;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    border: 1px solid #ccebd8;
    border-radius: 12px;
    background: #f0fbf4;
    color: #14532d;
    text-decoration: none;
    transition: background 150ms ease, border-color 150ms ease;
}

.landing-whatsapp-contact:hover {
    border-color: #9fdbb5;
    background: #e6f8ed;
}

.landing-contact-details > .landing-whatsapp-contact {
    color: #14532d;
}

.landing-contact-details > .landing-whatsapp-contact:hover {
    color: #14532d;
}

.landing-whatsapp-contact > i {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 23px;
}

.landing-contact-details > .landing-whatsapp-contact > i {
    background: #25d366;
    color: #fff;
}

.landing-whatsapp-contact > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.landing-whatsapp-contact small {
    color: #4b6b57;
    font-size: 10px;
}

.landing-whatsapp-contact strong {
    overflow-wrap: anywhere;
    font-size: 12px;
    font-weight: 750;
}

.landing-contact-details > .landing-whatsapp-contact strong {
    color: #14532d;
}

.landing-whatsapp-action {
    margin-left: auto;
    padding: 8px 11px;
    border-radius: 8px;
    background: #168a48;
    color: #fff;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}

.whatsapp-floating-button {
    position: fixed;
    z-index: 19;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 5px 20px rgba(20, 83, 45, 0.28);
    color: #fff;
    font-size: 31px;
    text-decoration: none;
    transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.whatsapp-floating-button:hover {
    transform: translateY(-2px);
    background: #1fb95a;
    box-shadow: 0 8px 24px rgba(20, 83, 45, 0.32);
}

.whatsapp-floating-button:focus-visible {
    outline: 3px solid #14532d;
    outline-offset: 3px;
}

.whatsapp-floating-button::before {
    position: absolute;
    right: calc(100% + 10px);
    width: max-content;
    max-width: min(250px, calc(100vw - 110px));
    padding: 8px 11px;
    border-radius: 8px;
    background: #172033;
    color: #fff;
    content: attr(data-tooltip);
    font-family: var(--font-family-base);
    font-size: 11px;
    font-weight: 650;
    opacity: 0;
    pointer-events: none;
    transform: translateX(4px);
    transition: opacity 150ms ease, transform 150ms ease;
}

.whatsapp-floating-button:hover::before,
.whatsapp-floating-button:focus-visible::before {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.whatsapp-settings-welcome {
    margin-bottom: 20px;
}

.whatsapp-settings-card {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(18px, 3vw, 28px);
}

.whatsapp-settings-card .card-title h2 {
    display: flex;
    align-items: center;
    gap: 9px;
}

.whatsapp-settings-card .card-title h2 i {
    color: #168a48;
    font-size: 24px;
}

.whatsapp-settings-card .card-title p {
    max-width: 620px;
    margin-top: 6px;
}

.whatsapp-settings-form {
    display: grid;
    gap: 20px;
    margin-top: 22px;
}

.whatsapp-settings-form > label {
    display: grid;
    gap: 7px;
    color: var(--inv-ink);
    font-size: 13px;
    font-weight: 700;
}

.whatsapp-settings-form input[type="tel"],
.whatsapp-settings-form input[type="text"],
.whatsapp-settings-form input[type="password"],
.whatsapp-settings-form input[type="number"],
.whatsapp-settings-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--inv-border);
    border-radius: 9px;
    background: var(--color-surface);
    color: var(--inv-ink);
    font: inherit;
}

.whatsapp-settings-form textarea {
    min-height: 110px;
    resize: vertical;
}

.whatsapp-settings-form input[type="tel"]:focus,
.whatsapp-settings-form input[type="text"]:focus,
.whatsapp-settings-form input[type="password"]:focus,
.whatsapp-settings-form input[type="number"]:focus,
.whatsapp-settings-form textarea:focus {
    border-color: #168a48;
    outline: 3px solid rgba(37, 211, 102, 0.16);
}

.whatsapp-settings-form > label > small,
.whatsapp-toggle small {
    color: var(--text-muted, #69758a);
    font-size: 11px;
    font-weight: 450;
    line-height: 1.55;
}

.whatsapp-settings-toggles {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--inv-border);
    border-radius: 11px;
}

.whatsapp-settings-toggles legend {
    padding: 0 6px;
    color: var(--inv-ink);
    font-size: 13px;
    font-weight: 750;
}

.whatsapp-toggle {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 9px 2px;
    cursor: pointer;
}

.whatsapp-toggle input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 1px 0 0;
    accent-color: #168a48;
}

.whatsapp-toggle span {
    display: grid;
    gap: 3px;
}

.whatsapp-toggle strong {
    color: var(--inv-ink);
    font-size: 12px;
}

.whatsapp-settings-form > .btn {
    justify-self: start;
}

.whatsapp-settings-form > label.whatsapp-toggle {
    display: flex;
}

.sms-settings-card .whatsapp-settings-form > p {
    margin: 0;
    font-size: 13px;
}

@media (max-width: 520px) {
    .landing-whatsapp-contact {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .landing-whatsapp-contact > span:nth-child(2) {
        flex: 1 1 calc(100% - 60px);
        align-self: center;
    }

    .landing-whatsapp-action {
        margin-left: 53px;
    }

    .whatsapp-floating-button {
        right: max(14px, env(safe-area-inset-right));
        bottom: max(16px, env(safe-area-inset-bottom));
        width: 54px;
        height: 54px;
        font-size: 29px;
    }

    .whatsapp-settings-form > .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Theme toggle (light/dark). Dark palette: Assets/css/theme-dark.css (generated). */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 2.25rem;
    padding: 0 var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface);
    color: var(--color-ink);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.theme-toggle:hover {
    border-color: var(--color-brand);
    color: var(--color-brand);
}

.theme-toggle:focus-visible {
    outline: 3px solid var(--color-brand);
    outline-offset: 2px;
}

.theme-toggle .theme-icon {
    flex: none;
}

.theme-toggle .theme-icon-sun {
    display: none;
}

/* Icon-only placements keep the label for screen readers. */
.landing-nav-actions .theme-toggle,
.login-theme-toggle,
.workspace-preferences .theme-toggle {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
}

.landing-nav-actions .theme-toggle {
    width: 2.25rem;
    height: 2.25rem;
}

.landing-nav-actions .theme-toggle .theme-toggle-text,
.login-theme-toggle .theme-toggle-text,
.workspace-preferences .theme-toggle .theme-toggle-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Login: top-right corner of the sign-in card. */
.login-card {
    position: relative;
}

.login-card button.login-theme-toggle {
    /* Beats the older ".login-card button { width: 100% }" rule. */
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 1;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
}

@media (max-width: 520px) {
    .login-card button.login-theme-toggle {
        top: 0.875rem;
        right: 0.875rem;
    }
}

/* Staff workspace: same row as the language switcher in the sidebar footer.
   The sidebar is dark in both themes, so the button uses the sidebar palette. */
.inventory-page .workspace-preferences {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.inventory-page .workspace-preferences .language-switcher {
    flex: 1 1 auto;
    min-width: 0;
}

.inventory-page .workspace-preferences .theme-toggle {
    flex: 0 0 auto;
    width: 40px;
    height: auto;
    min-height: 40px;
    border: 1px solid #3b414c;
    border-radius: 9px;
    background: #292e37;
    color: #eef0f4;
}

.inventory-page .workspace-preferences .theme-toggle:hover {
    border-color: #f27b76;
    background: #333944;
    color: #ffffff;
}

@media (max-width: 1050px) {
    .inventory-page .workspace-preferences {
        flex: 0 0 auto;
    }

    .inventory-page .workspace-preferences .theme-toggle {
        min-height: 36px;
        width: 36px;
    }
}

@media (max-width: 700px) {
    .inventory-page .workspace-preferences {
        margin-left: auto;
    }

    .inventory-page .workspace-preferences .language-switcher {
        margin-left: 0;
    }
}

@media print {
    .theme-toggle {
        display: none !important;
    }
}

/* ------------------------------------------------------------------
   Barcode scanning (sales + product form)
   ------------------------------------------------------------------ */
.scan-bar {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px dashed var(--inv-border);
    border-radius: 12px;
    background: var(--color-page);
}

.scan-field {
    font-size: 13px;
    font-weight: 700;
    color: var(--inv-ink);
}

.scan-input-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
    width: 100%;
}

.scan-input-group input {
    flex: 1 1 auto;
    min-width: 0;
}

.scan-bar .scan-input-group input,
.receipt-whatsapp-row input {
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--inv-border);
    border-radius: 9px;
    background: var(--color-surface);
    color: var(--inv-ink);
    font: inherit;
    font-size: 15px;
    box-shadow: none;
}

.scan-bar .scan-input-group input {
    letter-spacing: 0.02em;
}

.scan-bar .scan-input-group input:focus,
.receipt-whatsapp-row input:focus {
    outline: 2px solid var(--inv-primary);
    outline-offset: 1px;
    border-color: transparent;
}

.scan-bar .scan-status:empty {
    display: none;
}

.scan-camera-button {
    flex: 0 0 auto;
}

.scan-status {
    min-height: 1.2em;
    margin: 0;
    font-size: 13px;
    color: var(--inv-muted);
}

.scan-status.is-success {
    color: var(--color-success);
    font-weight: 700;
}

.scan-status.is-error {
    color: var(--color-danger);
    font-weight: 700;
}

@keyframes sale-line-flash {
    from { background-color: rgba(19, 117, 71, 0.2); }
    to { background-color: transparent; }
}

.sale-line.sale-line-flash > td {
    animation: sale-line-flash 1.2s ease-out;
}

.scan-dialog {
    width: min(520px, calc(100vw - 32px));
    padding: 0;
    border: 1px solid var(--inv-border);
    border-radius: 16px;
    background: var(--color-surface);
    color: var(--inv-ink);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.scan-dialog::backdrop {
    background: rgba(15, 23, 42, 0.6);
}

.scan-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
}

.scan-viewport {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #0b0f17;
    overflow: hidden;
}

.scan-viewport video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scan-guide {
    position: absolute;
    inset: 30% 12%;
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.28);
    pointer-events: none;
}

.scan-dialog-status {
    min-height: 1.4em;
    margin: 0;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-success);
}

.scan-dialog-status.is-error {
    color: var(--color-danger);
}

/* ------------------------------------------------------------------
   WhatsApp actions (debt reminders, receipts, supplier orders)
   ------------------------------------------------------------------ */
.btn-whatsapp {
    background: #1d8a4b;
    color: #ffffff;
}

.btn-whatsapp:hover {
    background: #17733e;
    color: #ffffff;
}

.btn.btn-small {
    padding: 7px 10px;
    font-size: 12px;
}

td .debt-reminder {
    margin-top: 8px;
}

td a.btn-whatsapp,
td a.btn-whatsapp:hover {
    color: #ffffff;
    text-decoration: none;
}

.debt-reminder-note {
    color: var(--color-warning) !important;
}

.whatsapp-icon {
    flex: 0 0 auto;
}

.receipt-whatsapp {
    display: grid;
    gap: 6px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--inv-border);
    font-size: 13px;
    font-weight: 700;
}

.receipt-whatsapp-row {
    display: flex;
    gap: 8px;
}

.receipt-whatsapp-row input {
    flex: 1 1 auto;
    min-width: 0;
}

.receipt-whatsapp-error {
    margin: 0;
    color: var(--color-danger);
    font-weight: 600;
}

/* ------------------------------------------------------------------
   Smart reorder page
   ------------------------------------------------------------------ */
.insights-filters {
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 0;
    border: 0;
    background: none;
}

.insights-filters label {
    display: grid;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--inv-muted);
}

.insights-page .inv-card + .inv-card {
    margin-top: 18px;
}

.insights-page .inv-card .alert {
    margin: 14px;
}

.supplier-orders {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    padding: 0 16px 16px;
}

.supplier-order {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--inv-border);
    border-radius: 12px;
    background: var(--color-page);
}

.supplier-order header {
    display: grid;
    gap: 2px;
}

.supplier-order h3 {
    margin: 0;
    font-size: 15px;
}

.supplier-order ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
}

.supplier-order li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.supplier-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.supplier-order-note {
    margin: 0;
    font-size: 12px;
}

@media (max-width: 520px) {
    .scan-camera-button span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .supplier-orders {
        grid-template-columns: 1fr;
        padding: 0 12px 12px;
    }
}

@media print {
    .receipt-whatsapp,
    .scan-bar {
        display: none !important;
    }
}

/* ------------------------------------------------------------------
   SMS reminders (Beem Africa)
   ------------------------------------------------------------------ */
.debt-sms-form {
    margin-top: 6px;
}

.debt-sms-form .btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.debt-overdue-alert {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.debt-overdue-alert form {
    margin: 0;
}

.sms-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    padding: 16px 20px 0;
}

.sms-status > div {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--inv-border);
    border-radius: 12px;
    background: var(--color-page);
}

.sms-status span {
    font-size: 12px;
    color: var(--inv-muted);
}

.sms-status strong {
    font-size: 16px;
}

.sms-status-ok {
    color: var(--color-success);
}

.sms-status-off {
    color: var(--color-warning);
}

.sms-inline-alert,
.sms-env-note {
    margin: 14px 20px 0;
}

.sms-test-form {
    border-top: 1px solid var(--inv-border);
}

.sms-settings-card .table-wrap {
    border-top: 1px solid var(--inv-border);
}

.sms-provider-details {
    border: 1px solid var(--inv-border);
    border-radius: 11px;
    padding: 0 16px;
}

.sms-provider-details > summary {
    padding: 14px 0;
    color: var(--inv-ink);
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.sms-provider-details > .sms-provider-fields {
    margin-bottom: 16px;
    border: 0;
    padding: 0;
}

.sms-provider-fields > label {
    display: grid;
    gap: 7px;
    color: var(--inv-ink);
    font-size: 13px;
    font-weight: 700;
}

.sms-provider-fields > label > small,
.sms-provider-choice > small {
    color: var(--inv-muted);
    font-size: 11px;
    font-weight: 450;
}

.sms-provider-fields input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--inv-border);
    border-radius: 9px;
    background: var(--color-surface);
    color: var(--inv-ink);
    font: inherit;
}

.sms-provider-fields > p,
.sms-keys-note {
    margin: 0;
    font-size: 12px;
}

/* Daily report to managers */
.daily-report-preview {
    display: grid;
    gap: 6px;
    margin: 16px 0 0;
    padding: 14px;
    border: 1px solid var(--inv-border);
    border-radius: 12px;
    background: var(--color-page);
}

.daily-report-preview > span {
    font-size: 12px;
    font-weight: 700;
    color: var(--inv-muted);
}

.daily-report-preview pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font: 600 14px/1.55 var(--font-family-base);
    color: var(--inv-ink);
}

.daily-report-preview small,
.daily-report-schedule p {
    font-size: 12px;
    color: var(--inv-muted);
}

.daily-report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--inv-border);
}

.daily-report-actions form,
.daily-report-actions p {
    margin: 0;
}

.daily-report-schedule {
    display: grid;
    gap: 6px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--inv-border);
    font-size: 13px;
}

.daily-report-schedule p {
    margin: 0;
}

.daily-report-schedule code {
    display: block;
    padding: 10px 12px;
    border-radius: 9px;
    background: var(--color-page);
    border: 1px solid var(--inv-border);
    color: var(--inv-ink);
    font-size: 12px;
    overflow-wrap: anywhere;
}

/* In-page confirmation dialog (replaces the browser's confirm box) */
.confirm-dialog {
    width: min(420px, calc(100vw - 32px));
    padding: 22px;
    border: 1px solid var(--inv-border);
    border-radius: 16px;
    background: var(--color-surface);
    color: var(--inv-ink);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.confirm-dialog::backdrop {
    background: rgba(15, 23, 42, 0.55);
}

.confirm-dialog h2 {
    margin: 0 0 8px;
    font-size: 17px;
}

.confirm-dialog p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--inv-muted);
}

.confirm-dialog-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

/* The global reset removes the browser's dialog centring; restore it. */
dialog.confirm-dialog[open],
dialog.scan-dialog[open] {
    position: fixed;
    inset: 0;
    margin: auto;
    height: fit-content;
    max-height: calc(100vh - 32px);
    overflow: auto;
}

/* ==================================================================
   Landing page redesign (lp-*)
   ================================================================== */
.lp .landing-section {
    padding: 88px 0;
}

.lp-heading {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}

.lp-heading h2 {
    margin: 10px 0 14px;
    font-family: var(--font-family-display);
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--landing-ink);
}

.lp-heading p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--landing-muted);
}

.lp-heading-left {
    margin: 0 0 28px;
    text-align: left;
}

.lp-heading-left .landing-button {
    margin-top: 22px;
}

/* Hero */
.lp-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 64px;
    background:
        radial-gradient(circle at 85% 10%, rgba(198, 40, 40, 0.10), transparent 42%),
        radial-gradient(circle at 10% 90%, rgba(19, 117, 71, 0.08), transparent 40%),
        var(--landing-tint);
}

.lp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: center;
}

.lp-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 7px 14px;
    border: 1px solid rgba(198, 40, 40, 0.22);
    border-radius: 999px;
    background: var(--landing-surface);
    color: var(--landing-red);
    font-size: 13px;
    font-weight: 750;
}

.lp-hero h1 {
    margin: 0;
    font-family: var(--font-family-display);
    font-size: clamp(2.4rem, 5.4vw, 4.1rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: var(--landing-ink);
}

.lp-hero h1 span {
    display: block;
    color: var(--landing-red);
}

.lp-lead {
    max-width: 560px;
    margin: 22px 0 0;
    font-size: 1.15rem;
    line-height: 1.65;
    color: var(--landing-muted);
}

.lp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.lp-button-whatsapp {
    background: #1d8a4b;
    color: #ffffff;
}

.lp-button-whatsapp:hover {
    background: #17733e;
    color: #ffffff;
}

.lp-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    font-weight: 650;
    color: var(--landing-ink);
}

.lp-trust i {
    margin-right: 6px;
    color: var(--color-success);
}

.lp-hero-visual {
    position: relative;
    display: grid;
    gap: 16px;
    justify-items: center;
}

.lp-pos {
    width: min(100%, 400px);
    padding: 20px;
    border: 1px solid var(--landing-line);
    border-radius: 22px;
    background: var(--landing-surface);
    box-shadow: 0 30px 70px rgba(23, 32, 51, 0.16);
    transform: rotate(-1.2deg);
}

.lp-pos-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-weight: 800;
    color: var(--landing-ink);
}

.lp-pos-head i {
    margin-right: 6px;
    color: var(--landing-red);
}

.lp-pos-scan {
    padding: 4px 10px;
    border-radius: 999px;
    background: #e7f7ee;
    color: var(--color-success);
    font-size: 12px;
}

.lp-pos-lines {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0 0 14px;
    border-bottom: 1px dashed var(--landing-line);
    list-style: none;
    font-size: 14px;
}

.lp-pos-lines li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--landing-ink);
}

.lp-pos-lines small {
    color: var(--landing-muted);
}

.lp-pos-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 14px 0;
    color: var(--landing-ink);
}

.lp-pos-total strong {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.lp-pos-pay {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.lp-pos-pay span {
    padding: 10px;
    border: 1px solid var(--landing-line);
    border-radius: 12px;
    background: var(--landing-tint);
    font-size: 13px;
    font-weight: 700;
    color: var(--landing-ink);
}

.lp-pos-pay i {
    margin-right: 4px;
    color: var(--color-success);
}

.lp-pos-button {
    display: block;
    padding: 12px;
    border-radius: 12px;
    background: var(--landing-red);
    color: #ffffff;
    font-weight: 800;
    text-align: center;
}

.lp-outcomes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: min(100%, 440px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-outcomes li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--landing-line);
    border-radius: 12px;
    background: var(--landing-surface);
    font-size: 13px;
    font-weight: 700;
    color: var(--landing-ink);
    box-shadow: 0 8px 20px rgba(23, 32, 51, 0.06);
}

.lp-outcomes i {
    color: var(--color-success);
}

.lp-outcomes li > span {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.lp-outcomes small {
    font-size: 11px;
    font-weight: 600;
    color: var(--landing-muted);
}

/* Animated sale (landing.js adds .is-demo; the plain markup is the finished sale) */
.lp-demo-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(100%, 440px);
}

.lp-demo-bar[hidden],
.lp-demo-caption[hidden] {
    display: none;
}

.lp-demo-steps {
    display: flex;
    flex: 1;
    gap: 4px;
    margin: 0;
    padding: 4px;
    border: 1px solid var(--landing-line);
    border-radius: 999px;
    background: var(--landing-surface);
    list-style: none;
}

.lp-demo-steps li {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    padding: 6px 4px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    color: var(--landing-muted);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.lp-demo-steps li span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-demo-steps li.is-done {
    color: var(--color-success);
}

.lp-demo-steps li.is-active {
    background: var(--landing-red);
    color: #ffffff;
}

.lp-demo-toggle {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--landing-line);
    border-radius: 50%;
    background: var(--landing-surface);
    color: var(--landing-ink);
    font-size: 12px;
    cursor: pointer;
}

.lp-demo-toggle:hover {
    border-color: var(--landing-red);
    color: var(--landing-red);
}

.lp-demo-toggle:focus-visible {
    outline: 3px solid rgba(198, 40, 40, 0.35);
    outline-offset: 2px;
}

.lp-demo-caption {
    min-height: 1.4em;
    margin: -4px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--landing-ink);
    text-align: center;
}

.lp-demo-caption.is-changing {
    animation: lp-demo-fade 0.45s ease;
}

.lp-hero-visual.is-demo .lp-pos {
    position: relative;
    overflow: hidden;
}

.lp-hero-visual.is-demo [data-demo-line] {
    opacity: 0;
    transform: translateX(-14px);
    transition: opacity 0.35s ease, transform 0.35s ease, background-color 0.6s ease;
}

.lp-hero-visual.is-demo [data-demo-line].is-on {
    opacity: 1;
    transform: none;
    animation: lp-demo-flash 0.9s ease;
}

.lp-hero-visual.is-demo .lp-pos-scan {
    opacity: 0.35;
    transition: opacity 0.3s ease;
}

.lp-hero-visual.is-demo .lp-pos.is-scanning .lp-pos-scan {
    opacity: 1;
}

.lp-pos-beam {
    display: none;
}

.lp-hero-visual.is-demo .lp-pos-beam {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: block;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--landing-red), transparent);
    box-shadow: 0 0 14px rgba(198, 40, 40, 0.6);
    opacity: 0;
    pointer-events: none;
}

.lp-hero-visual.is-demo .lp-pos.is-scanning .lp-pos-beam {
    animation: lp-demo-beam 0.7s ease-in-out;
}

.lp-hero-visual.is-demo [data-demo-pay] {
    opacity: 0.4;
    transition: opacity 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.lp-hero-visual.is-demo [data-demo-pay].is-on {
    opacity: 1;
    border-color: var(--color-success);
    transform: translateY(-2px);
}

.lp-pos-button {
    position: relative;
    transition: transform 0.15s ease, background-color 0.3s ease;
}

.lp-pos-button-done {
    display: none;
}

.lp-hero-visual.is-demo .lp-pos-button.is-pressed {
    transform: scale(0.96);
}

.lp-hero-visual.is-demo .lp-pos-button.is-done {
    background: var(--color-success);
}

.lp-hero-visual.is-demo .lp-pos-button.is-done .lp-pos-button-idle {
    display: none;
}

.lp-hero-visual.is-demo .lp-pos-button.is-done .lp-pos-button-done {
    display: inline;
}

.lp-demo-cursor {
    display: none;
}

.lp-hero-visual.is-demo .lp-demo-cursor {
    position: absolute;
    right: 18%;
    bottom: -30px;
    display: block;
    font-size: 26px;
    color: var(--landing-ink);
    filter: drop-shadow(0 4px 6px rgba(23, 32, 51, 0.25));
    opacity: 0;
    transition: bottom 0.7s ease, opacity 0.4s ease;
    pointer-events: none;
}

.lp-hero-visual.is-demo .lp-pos.is-pointing .lp-demo-cursor {
    bottom: 14px;
    opacity: 1;
}

.lp-hero-visual.is-demo [data-demo-outcome] {
    opacity: 0.35;
    filter: grayscale(1);
    transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease, border-color 0.4s ease;
}

.lp-hero-visual.is-demo [data-demo-outcome].is-on {
    opacity: 1;
    filter: none;
    border-color: var(--color-success);
    animation: lp-demo-pop 0.5s ease;
}

.lp-demo-toast {
    display: none;
}

.lp-hero-visual.is-demo .lp-demo-toast {
    position: absolute;
    top: 104px;
    right: -6px;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: min(250px, 80%);
    padding: 12px 14px;
    border: 1px solid var(--landing-line);
    border-left: 4px solid #25d366;
    border-radius: 14px;
    background: var(--landing-surface);
    box-shadow: 0 18px 40px rgba(23, 32, 51, 0.18);
    font-size: 12px;
    color: var(--landing-muted);
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.lp-hero-visual.is-demo .lp-demo-toast.is-on {
    opacity: 1;
    transform: none;
}

.lp-demo-toast i {
    font-size: 20px;
    color: #25d366;
}

.lp-demo-toast span {
    display: grid;
    gap: 2px;
}

.lp-demo-toast strong {
    font-size: 13px;
    color: var(--landing-ink);
}

.lp-hero-visual.is-paused *,
.lp-hero-visual.is-paused *::before {
    animation-play-state: paused !important;
}

@keyframes lp-demo-beam {
    0% { top: 0; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes lp-demo-flash {
    0% { background-color: rgba(31, 143, 79, 0.18); }
    100% { background-color: transparent; }
}

@keyframes lp-demo-pop {
    0% { transform: scale(0.94); }
    60% { transform: scale(1.04); }
    100% { transform: none; }
}

@keyframes lp-demo-fade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 520px) {
    .lp-demo-steps li span {
        display: none;
    }

    .lp-hero-visual.is-demo .lp-demo-toast {
        right: 0;
    }
}

.lp-visual-note,
.lp-phone-note {
    margin: 0;
    font-size: 11px;
    color: var(--landing-muted);
}

/* Devices strip */
.lp-devices {
    border-top: 1px solid var(--landing-line);
    border-bottom: 1px solid var(--landing-line);
    background: var(--landing-surface);
}

.lp-devices-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.lp-devices-grid > div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 12px;
    align-items: center;
    padding: 22px 18px;
}

.lp-devices-grid > div + div {
    border-left: 1px solid var(--landing-line);
}

.lp-devices-grid i {
    grid-row: span 2;
    font-size: 22px;
    color: var(--landing-red);
}

.lp-devices-grid strong {
    color: var(--landing-ink);
}

.lp-devices-grid span {
    font-size: 13px;
    color: var(--landing-muted);
}

/* Cards */
.lp-problem-grid,
.lp-type-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.lp-type-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lp-problem-grid article,
.lp-type-grid article,
.lp-smart-cards article {
    padding: 24px;
    border: 1px solid var(--landing-line);
    border-radius: 18px;
    background: var(--landing-surface);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lp-problem-grid article:hover,
.lp-type-grid article:hover,
.lp-smart-cards article:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(23, 32, 51, 0.08);
}

.lp-problem-grid h3,
.lp-type-grid h3,
.lp-smart-cards h3,
.lp-steps h3,
.lp-start-grid h3 {
    margin: 14px 0 8px;
    font-size: 1.05rem;
    color: var(--landing-ink);
}

.lp-problem-grid p,
.lp-type-grid p,
.lp-smart-cards p,
.lp-steps p,
.lp-start-grid p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--landing-muted);
}

.lp-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 19px;
}

.lp-icon-red { background: #fde8e8; color: #c62828; }
.lp-icon-amber { background: #fff1d6; color: #965900; }
.lp-icon-green { background: #e3f6ec; color: #137547; }
.lp-icon-blue { background: #e6eefc; color: #2350b8; }

/* Steps */
.lp-flow {
    background: var(--landing-tint);
}

.lp-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-steps li {
    position: relative;
    padding: 24px 20px;
    border: 1px solid var(--landing-line);
    border-radius: 18px;
    background: var(--landing-surface);
}

.lp-steps li > i {
    display: block;
    margin-top: 14px;
    font-size: 24px;
    color: var(--landing-red);
}

.lp-step-number {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--landing-red);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

/* Two-column sections */
.lp-smart-grid,
.lp-control-grid,
.lp-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: start;
}

.lp-smart-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.lp-smart-cards i {
    font-size: 22px;
    color: var(--landing-red);
}

/* Control */
.lp-control {
    background: var(--landing-tint);
}

.lp-control-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
}

.lp-control-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-control-list li {
    display: flex;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--landing-line);
    border-radius: 16px;
    background: var(--landing-surface);
}

.lp-control-list i {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #fde8e8;
    color: var(--landing-red);
    font-size: 18px;
}

.lp-control-list div {
    display: grid;
    gap: 4px;
}

.lp-control-list strong {
    color: var(--landing-ink);
}

.lp-control-list span {
    font-size: 14px;
    line-height: 1.55;
    color: var(--landing-muted);
}

.lp-phone {
    justify-self: center;
    width: min(100%, 320px);
    padding: 12px;
    border-radius: 40px;
    background: #172033;
    box-shadow: 0 30px 70px rgba(23, 32, 51, 0.28);
}

.lp-phone-screen {
    display: grid;
    gap: 14px;
    min-height: 460px;
    padding: 18px 16px;
    border-radius: 30px;
    background: #eef1f6;
    align-content: start;
}

.lp-phone-top {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    color: #172033;
}

.lp-phone-top small {
    color: #657187;
}

.lp-sms {
    display: grid;
    gap: 5px;
    padding: 14px;
    border-radius: 18px 18px 18px 4px;
    background: #ffffff;
    color: #172033;
    font-size: 13.5px;
    line-height: 1.4;
    box-shadow: 0 6px 16px rgba(23, 32, 51, 0.08);
}

.lp-phone-screen .lp-phone-note {
    text-align: center;
    color: #657187;
}

/* Getting started */
.lp-start-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-start-grid li {
    padding: 28px 24px;
    border: 1px solid var(--landing-line);
    border-radius: 18px;
    background: var(--landing-surface);
}

.lp-start-grid span {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--landing-red);
}

.lp-type-grid i {
    font-size: 24px;
    color: var(--landing-red);
}

/* Pricing */
.lp-hero-offer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin: 16px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--landing-ink);
}

.lp-hero-offer i {
    color: var(--landing-red);
}

.lp-hero-offer a {
    color: var(--landing-red);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lp-pricing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: 40px;
    align-items: center;
}

.lp-pricing-steps {
    display: grid;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-pricing-steps li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.lp-pricing-number {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--landing-red);
    color: #fff;
    font-weight: 900;
}

.lp-pricing-steps h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: var(--landing-ink);
}

.lp-pricing-steps p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--landing-muted);
}

.lp-price-card {
    padding: 30px 28px;
    border: 2px solid var(--landing-red);
    border-radius: 22px;
    background: var(--landing-surface);
    box-shadow: 0 18px 40px rgba(23, 32, 51, 0.08);
}

.lp-price-badge {
    display: inline-block;
    margin: 0 0 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--landing-red);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.lp-price-card h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--landing-ink);
}

.lp-price-amount {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin: 8px 0 20px;
    color: var(--landing-ink);
}

.lp-price-amount small {
    font-size: 1rem;
    font-weight: 800;
}

.lp-price-amount strong {
    font-size: clamp(2.5rem, 7vw, 3.1rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.lp-price-amount span {
    font-size: 15px;
    color: var(--landing-muted);
}

.lp-price-features {
    display: grid;
    gap: 10px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--landing-ink);
}

.lp-price-features li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.lp-price-features i {
    margin-top: 3px;
    color: var(--landing-red);
}

.lp-price-card .landing-button {
    box-sizing: border-box;
    width: 100%;
    justify-content: center;
}

.lp-price-periods {
    margin-top: 44px;
}

.lp-price-periods h3 {
    margin: 0 0 14px;
    font-size: 1.05rem;
    text-align: center;
    color: var(--landing-ink);
}

.lp-price-periods ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-price-periods li {
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--landing-line);
    border-radius: 14px;
    background: var(--landing-tint);
    text-align: center;
}

.lp-price-periods span {
    font-size: 13px;
    color: var(--landing-muted);
}

.lp-price-periods strong {
    font-size: 1.05rem;
    color: var(--landing-ink);
}

@media (max-width: 900px) {
    .lp-pricing-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .lp-price-periods ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Privacy Policy and Terms of Use */
.lp-legal-bar {
    border-bottom: 1px solid var(--landing-line);
    background: var(--landing-surface);
}

.lp-legal-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: min(820px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0;
}

.lp-legal-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lp-legal {
    box-sizing: border-box;
    width: min(820px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0 56px;
    color: var(--landing-ink);
    overflow-wrap: anywhere;
}

.lp-legal h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 2.8rem);
    line-height: 1.1;
    color: var(--landing-ink);
}

.lp-legal-date {
    margin: 10px 0 20px;
    font-size: 14px;
    color: var(--landing-muted);
}

.lp-legal-intro {
    margin: 0 0 12px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.lp-legal h2 {
    margin: 30px 0 10px;
    font-size: 1.2rem;
    color: var(--landing-ink);
}

.lp-legal section p,
.lp-legal section li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--landing-muted);
}

.lp-legal section p {
    margin: 0 0 10px;
}

.lp-legal section ul {
    display: grid;
    gap: 6px;
    margin: 0 0 10px;
    padding-left: 20px;
}

.lp-legal-contact {
    margin: 36px 0 0;
    padding: 16px 18px;
    border: 1px solid var(--landing-line);
    border-radius: 14px;
    background: var(--landing-tint);
    font-size: 15px;
}

.lp-legal-contact a,
.lp-faq-list details p a,
.landing-policy-note p a {
    color: var(--landing-red);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lp-legal-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
    padding: 22px 16px;
    border-top: 1px solid var(--landing-line);
    font-size: 14px;
}

.lp-legal-footer a {
    color: var(--landing-muted);
    font-weight: 600;
}

.lp-legal-footer a[aria-current="page"] {
    color: var(--landing-red);
}

.register-terms {
    margin: 2px 0 6px;
}

.register-terms label {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-ink);
    font-size: 13px;
    font-weight: 500;
    line-height: 22px;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.register-terms label:hover,
.register-terms label:has(input:checked) {
    border-color: var(--color-brand);
}

.register-terms label:has(input:checked) {
    background: rgba(198, 40, 40, 0.05);
}

/* .login-card input stretches every field, so the box needs its own size here. */
.login-card .register-terms input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    display: block;
    width: 22px;
    height: 22px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1.5px solid var(--color-muted);
    border-radius: 6px;
    background: var(--color-surface) center / 16px 16px no-repeat;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.login-card .register-terms input[type="checkbox"]:checked {
    border-color: var(--color-brand);
    background-color: var(--color-brand);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E");
}

.login-card .register-terms input[type="checkbox"]:focus-visible {
    border-color: var(--color-brand);
    box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.14);
    outline: none;
}

.register-terms a {
    color: var(--color-brand);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.register-terms.has-error label {
    border-color: var(--color-danger);
}

.register-terms .register-error {
    display: block;
    margin: 6px 0 0 2px;
    color: var(--color-danger);
    font-size: 12px;
    line-height: 1.5;
}

/* FAQ */
.lp-faq {
    background: var(--landing-tint);
}

.lp-faq-list {
    display: grid;
    gap: 12px;
}

.lp-faq-list details {
    border: 1px solid var(--landing-line);
    border-radius: 14px;
    background: var(--landing-surface);
}

.lp-faq-list summary {
    position: relative;
    padding: 18px 52px 18px 20px;
    font-weight: 750;
    color: var(--landing-ink);
    cursor: pointer;
    list-style: none;
}

.lp-faq-list summary::-webkit-details-marker {
    display: none;
}

.lp-faq-list summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 500;
    color: var(--landing-red);
}

.lp-faq-list details[open] summary::after {
    content: "\2212";
}

.lp-faq-list details p {
    margin: 0;
    padding: 0 20px 18px;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--landing-muted);
}

/* Final CTA */
.lp-final-cta {
    padding: 72px 0;
    background: linear-gradient(135deg, #b71c1c, #e53935);
    color: #ffffff;
}

.lp-final-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.lp-final-cta h2 {
    margin: 0 0 8px;
    font-family: var(--font-family-display);
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    letter-spacing: -0.02em;
    color: #ffffff;
}

.lp-final-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

.lp-final-cta .lp-actions {
    margin-top: 0;
}

/* Scroll reveal: only after landing.js marks the page ready */
.lp.lp-reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.lp.lp-reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .lp.lp-reveal-ready [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media print {
    .lp [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Responsive */
@media (max-width: 1080px) {
    .lp-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lp-problem-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .lp-hero-grid,
    .lp-smart-grid,
    .lp-control-grid,
    .lp-faq-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .lp-devices-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lp-devices-grid > div:nth-child(3) {
        border-left: 0;
    }

    .lp-devices-grid > div:nth-child(n + 3) {
        border-top: 1px solid var(--landing-line);
    }

    .lp-type-grid,
    .lp-start-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lp-heading-left {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .lp .landing-section {
        padding: 64px 0;
    }

    .lp-hero {
        padding: 44px 0 48px;
    }

    .lp-steps,
    .lp-problem-grid,
    .lp-type-grid,
    .lp-start-grid,
    .lp-smart-cards,
    .lp-devices-grid {
        grid-template-columns: 1fr;
    }

    .lp-devices-grid > div + div {
        border-left: 0;
        border-top: 1px solid var(--landing-line);
    }

    .lp-pos {
        transform: none;
    }

    .lp-actions .landing-button {
        flex: 1 1 100%;
        justify-content: center;
    }
}

/* ------------------------------------------------------------------
   Forgot / change password
   ------------------------------------------------------------------ */
.login-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.login-forgot-link {
    color: var(--color-brand);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.login-forgot-link:hover,
.login-forgot-link:focus-visible {
    text-decoration: underline;
}

.login-layout.login-layout-single {
    width: min(100%, 480px);
    min-height: 0;
    grid-template-columns: 1fr;
}

.login-layout-single .login-single-brand {
    display: inline-block;
    margin-bottom: 26px;
    color: var(--color-ink);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.login-home-link-form {
    margin-top: 22px;
}

.nav-change-password {
    display: block;
    margin: 2px 0 8px 10px;
    color: inherit;
    font-size: 12px;
    opacity: 0.8;
    text-decoration: none;
}

.nav-change-password:hover,
.nav-change-password:focus-visible {
    opacity: 1;
    text-decoration: underline;
}

.nav-badge {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    margin-left: 8px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e53935;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
}

.workspace-nav a .nav-badge {
    margin-left: auto;
}

.temp-password-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding: 20px 22px;
    border: 2px solid var(--color-success);
    border-radius: 16px;
    background: var(--color-surface);
}

.temp-password-card h2 {
    margin: 4px 0 6px;
    font-size: 18px;
}

.temp-password-card h2 small {
    color: var(--inv-muted);
    font-weight: 600;
}

.temp-password-card p {
    margin: 0;
    max-width: 560px;
}

.temp-password-value {
    display: flex;
    align-items: center;
    gap: 10px;
}

.temp-password-value code {
    padding: 12px 16px;
    border: 1px dashed var(--inv-border);
    border-radius: 10px;
    background: var(--color-page);
    color: var(--inv-ink);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.06em;
    user-select: all;
}

.reset-requests-panel {
    margin-bottom: 20px;
    border-color: #f2b8b5;
}

.reset-requests-panel > p {
    margin: -4px 0 12px;
}

@media print {
    .temp-password-card {
        display: none !important;
    }
}

/* Sidebar "Change password" link and wrapping user actions */
.inventory-page .workspace-nav-footer .nav-change-password {
    margin: -2px 0 0;
    padding: 0 12px;
    color: #c9cfd9;
    font-size: 12px;
    font-weight: 650;
    opacity: 1;
}

.inventory-page .workspace-nav-footer .nav-change-password:hover,
.inventory-page .workspace-nav-footer .nav-change-password:focus-visible {
    color: #ffffff;
}

@media (max-width: 1050px) {
    .inventory-page .workspace-nav-footer .nav-change-password {
        padding: 0 4px;
        white-space: nowrap;
    }
}

.user-table .actions {
    flex-wrap: wrap;
    gap: 8px;
}

/* Show / hide password button (Assets/js/password-toggle.js) */
.password-field {
    position: relative;
    display: block;
}

.password-field > input {
    width: 100%;
}

.has-password-toggle > input {
    padding-right: 48px !important;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6b7588;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle:hover {
    background: rgba(23, 32, 51, 0.06);
    color: var(--color-ink);
}

.password-toggle:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 1px;
}

.password-toggle[aria-pressed="true"] {
    color: var(--color-brand);
}

/* Hide the browser's own reveal button (Edge) so there is only one eye. */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

/* Beats ".login-card button" (full width) so the eye sits inside the field. */
.login-card .login-input-wrap button.password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    left: auto;
    width: 36px;
    min-width: 0;
    height: 36px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #8993a3;
    transform: translateY(-50%);
}

.login-card .login-input-wrap button.password-toggle:hover {
    background: rgba(23, 32, 51, 0.06);
    color: var(--color-ink);
}

.login-card .login-input-wrap button.password-toggle[aria-pressed="true"] {
    color: var(--color-brand);
}

/* ==================================================================
   Sidebar layout refresh: icons, spacing, user card
   ================================================================== */
.inventory-page .inv-topbar {
    gap: 16px;
}

/* An old ".inv-topbar nav { flex-wrap: wrap }" split the menu into two
   columns on short screens; keep one column and scroll instead. */
.inventory-page .workspace-nav,
.inventory-page .inv-topbar nav.workspace-nav {
    flex-wrap: nowrap;
    gap: 4px;
    margin: 0 -4px;
    padding: 0 4px;
}

.inventory-page .workspace-nav .nav-section {
    flex: 0 0 auto;
}

.inventory-page .workspace-nav .nav-section-title {
    justify-content: flex-start;
    gap: 10px;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    color: #9aa3b2;
    font-size: 10.5px;
    letter-spacing: 1.2px;
}

.inventory-page .workspace-nav .nav-section-title::after {
    flex: 0 0 auto;
    margin-left: 4px;
}

.inventory-page .workspace-nav .nav-section-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inventory-page .workspace-nav .nav-section-icon {
    flex: 0 0 18px;
    width: 18px;
    color: #7f8898;
    font-size: 13px;
    text-align: center;
    transition: color 150ms ease;
}

.inventory-page .workspace-nav .nav-section[open] > .nav-section-title {
    color: #ffffff;
}

.inventory-page .workspace-nav .nav-section[open] .nav-section-icon,
.inventory-page .workspace-nav .nav-section-title:hover .nav-section-icon {
    color: #f27b76;
}

.inventory-page .workspace-nav .nav-section-title .nav-badge {
    margin-left: 0;
}

.inventory-page .workspace-nav .nav-section-links {
    gap: 2px;
    margin: 2px 0 8px 18px;
    padding: 2px 0 2px 10px;
    border-left: 1px solid #353b45;
}

.inventory-page .workspace-nav .nav-section-links > a {
    gap: 10px;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
}

.inventory-page .workspace-nav .nav-section-links > a::before {
    display: none;
}

.inventory-page .workspace-nav .nav-link-icon {
    flex: 0 0 18px;
    width: 18px;
    color: #8a93a3;
    font-size: 13px;
    text-align: center;
    transition: color 150ms ease;
}

.inventory-page .workspace-nav .nav-section-links > a:hover .nav-link-icon {
    color: #ffffff;
}

.inventory-page .workspace-nav .nav-section-links > a.active {
    border-color: rgba(239, 93, 93, 0.25);
    background: linear-gradient(90deg, rgba(198, 40, 40, 0.32), rgba(198, 40, 40, 0.12));
    color: #ffffff;
}

.inventory-page .workspace-nav .nav-section-links > a.active .nav-link-icon {
    color: #ff8a84;
}

.inventory-page .workspace-nav .nav-link-label {
    flex: 1 1 auto;
    min-width: 0;
}

/* Footer */
.inventory-page .workspace-nav-footer {
    gap: 10px;
    padding-top: 14px;
}

.inventory-page .workspace-nav-footer .nav-user-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #3b414c;
    border-radius: 12px;
    background: #292e37;
}

.inventory-page .workspace-nav-footer .nav-avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #c62828;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.inventory-page .workspace-nav-footer .nav-user-text {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.inventory-page .workspace-nav-footer .nav-user-card .nav-user-name {
    display: block;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: none;
    color: #eef0f4;
    font-size: 12.5px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inventory-page .workspace-nav-footer .nav-user-text small {
    color: #9aa3b2;
    font-size: 11px;
}

.inventory-page .workspace-nav-footer .nav-change-password {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border-radius: 9px;
    color: #c4cad4;
    font-size: 13px;
    opacity: 1;
    text-decoration: none;
}

.inventory-page .workspace-nav-footer .nav-change-password:hover,
.inventory-page .workspace-nav-footer .nav-change-password:focus-visible {
    background: #3a404a;
    color: #ffffff;
    text-decoration: none;
}

.inventory-page .workspace-nav-footer .nav-change-password-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.inventory-page .workspace-nav-footer .logout-form .btn {
    gap: 10px;
    font-size: 13px;
}

.inventory-page .workspace-nav-footer .logout-form .btn i {
    width: 18px;
    text-align: center;
}

/* Tablet / phone: the sidebar becomes a top bar */
@media (max-width: 1050px) {
    .inventory-page .workspace-nav,
    .inventory-page .inv-topbar nav.workspace-nav {
        flex-wrap: wrap;
        gap: 6px;
        margin: 0;
        padding: 0 0 3px;
    }

    .inventory-page .workspace-nav .nav-section-title {
        min-height: 36px;
        padding: 0 10px;
    }

    .inventory-page .workspace-nav .nav-section-links {
        margin: 5px 0 0;
        padding: 8px;
        border-left: 1px solid #3b414c;
    }

    .inventory-page .workspace-nav-footer {
        align-items: center;
    }

    .inventory-page .workspace-nav-footer .nav-user-card {
        flex: 1 1 auto;
        min-width: 0;
        padding: 6px 8px;
    }

    .inventory-page .workspace-nav-footer .nav-avatar {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    .inventory-page .workspace-nav-footer .nav-user-card {
        grid-template-columns: 30px minmax(0, 1fr) auto;
    }
}

@media (max-width: 700px) {
    .inventory-page .workspace-nav-footer .nav-user-card {
        flex: 1 1 100%;
    }

    .inventory-page .workspace-nav-footer .workspace-preferences {
        margin-left: 0;
    }

    .inventory-page .workspace-nav-footer .logout-form {
        margin-left: auto;
    }
}

/* ==================================================================
   Loss control: stock count + losses report
   ================================================================== */
.status-pill.status-open {
    background: #fff0d6;
    color: #965900;
}

.status-pill.status-completed {
    background: #e7f7ee;
    color: #137547;
}

.status-pill.status-cancelled {
    background: #eef1f5;
    color: #68758a;
}

.count-short {
    color: #b42318;
    font-weight: 700;
}

.count-over {
    color: #137547;
    font-weight: 700;
}

.stat-card .count-number {
    font-size: 17px;
    letter-spacing: 0;
    word-break: break-all;
}

.stat-card small {
    display: block;
    margin-top: 4px;
    color: #68758a;
    font-size: 12px;
}

.count-start-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(220px, 2fr) auto;
    align-items: end;
    gap: 14px;
}

.count-start-form label {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

.count-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.count-toolbar .count-search {
    flex: 1 1 260px;
}

.count-toolbar .count-search input,
.count-toolbar .count-filter select {
    width: 100%;
    min-height: 42px;
}

.count-toolbar .count-filter {
    flex: 0 0 210px;
}

.count-scan-status {
    min-height: 20px;
    margin: 0 0 8px;
    font-size: 13px;
}

.count-scan-status.is-error {
    color: #b42318;
    font-weight: 600;
}

.count-table td {
    vertical-align: middle;
}

.count-table td:nth-child(3) {
    white-space: nowrap;
}

.count-input {
    width: 110px;
    min-height: 40px;
    padding: 6px 10px;
    border: 1px solid #cfd6e1;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    font-size: 15px;
    font-weight: 700;
    text-align: right;
}

.count-input:focus {
    border-color: #c62828;
    outline: 2px solid rgba(198, 40, 40, 0.18);
}

.count-input.is-invalid {
    border-color: #b42318;
    background: #fff4f2;
}

.count-clear {
    width: 28px;
    height: 28px;
    margin-left: 4px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #68758a;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.count-clear:hover {
    background: #fee4e2;
    color: #b42318;
}

.count-table tr.is-counted td:first-child {
    box-shadow: inset 3px 0 0 #137547;
}

.count-table tr.is-short td:first-child,
.count-table tr.has-diff.is-short td:first-child {
    box-shadow: inset 3px 0 0 #b42318;
}

.count-table tr.is-short .count-diff,
.count-table tr.is-short .count-value {
    color: #b42318;
    font-weight: 700;
}

.count-table tr.is-over .count-diff,
.count-table tr.is-over .count-value {
    color: #137547;
    font-weight: 700;
}

.count-table tr.is-flash td {
    animation: count-flash 1.2s ease-out;
}

@keyframes count-flash {
    from { background: rgba(198, 40, 40, 0.16); }
    to { background: rgba(198, 40, 40, 0); }
}

.count-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 0;
    border-top: 1px solid #e3e8f0;
    background: #ffffff;
}

.count-cancel {
    display: flex;
    justify-content: flex-start;
    margin-top: 4px;
}

.loss-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.loss-grid > .inv-card {
    min-width: 0;
}

@media (max-width: 1100px) {
    .loss-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .count-start-form {
        grid-template-columns: 1fr;
    }

    .count-toolbar .count-filter {
        flex: 1 1 100%;
    }

    .count-input {
        width: 86px;
    }

    .count-actions .btn {
        flex: 1 1 auto;
    }
}

.count-toolbar .count-search input {
    padding: 8px 14px;
    border: 1px solid #cfd6e1;
    border-radius: 10px;
    background: #ffffff;
    color: #172033;
    font-size: 14px;
}

.count-toolbar .count-search input:focus {
    border-color: #c62828;
    outline: 2px solid rgba(198, 40, 40, 0.18);
}

.loss-grid {
    margin: 20px 0;
}

@media (max-width: 1500px) {
    .loss-grid {
        grid-template-columns: 1fr;
    }
}

/* Phone: each product becomes a small card so the quantity box is always visible. */
@media (max-width: 700px) {
    .count-table thead {
        display: none;
    }

    .count-table,
    .count-table tbody {
        display: block;
        min-width: 0;
    }

    .count-table tr[data-count-row] {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "name input"
            "system diff";
        gap: 4px 12px;
        align-items: center;
        padding: 12px 14px;
        border-bottom: 1px solid #e3e8f0;
    }

    .count-table tr[data-count-row] td {
        padding: 0;
        border: 0;
    }

    .count-table tr[data-count-row] td:nth-child(1) { grid-area: name; }
    .count-table tr[data-count-row] td:nth-child(2) { grid-area: system; color: #68758a; font-size: 12px; }
    .count-table tr[data-count-row] td:nth-child(3) { grid-area: input; justify-self: end; }
    .count-table tr[data-count-row] td:nth-child(4) { display: none; }
    .count-table tr[data-count-row] td:nth-child(5) { grid-area: diff; justify-self: end; font-size: 12px; }

    .count-table tr.is-counted td:first-child,
    .count-table tr.is-short td:first-child {
        box-shadow: none;
    }

    .count-table tr.is-counted {
        box-shadow: inset 3px 0 0 #137547;
    }

    .count-table tr.is-short {
        box-shadow: inset 3px 0 0 #b42318;
    }

    .count-table tr[data-count-row] td:nth-child(2)::before {
        content: attr(data-label) " ";
    }
}

@media (max-width: 700px) {
    .count-table tr.has-diff.is-short td:first-child {
        box-shadow: none;
    }
}

/* Percent box (Admin Settings → Loss control) */
.percent-input {
    position: relative;
    display: block;
    max-width: 240px;
}

.whatsapp-settings-form .percent-input input[type="number"] {
    padding-right: 40px;
    font-size: 15px;
    font-weight: 700;
    -moz-appearance: textfield;
    appearance: textfield;
}

.percent-input input::-webkit-outer-spin-button,
.percent-input input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.whatsapp-settings-form .percent-input input::placeholder {
    color: #8a94a6;
    font-weight: 500;
}

.percent-input-suffix {
    position: absolute;
    top: 50%;
    right: 14px;
    color: #68758a;
    font-size: 15px;
    font-weight: 800;
    pointer-events: none;
    transform: translateY(-50%);
}

/* Stock count quantity box: [−][ 12 piece ][+] with a status colour */
.count-field {
    display: inline-flex;
    align-items: stretch;
    height: 44px;
    overflow: hidden;
    border: 1.5px solid #cfd6e1;
    border-radius: 11px;
    background: #ffffff;
    vertical-align: middle;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.count-field:focus-within {
    border-color: #c62828;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.14);
}

.count-field.is-match {
    border-color: #2f9e64;
    background: #f1fbf5;
}

.count-field.is-short {
    border-color: #d64545;
    background: #fff5f4;
}

.count-field.is-over {
    border-color: #d99a1e;
    background: #fffaf0;
}

.count-field.is-invalid {
    border-color: #b42318;
    background: #fff0ee;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.14);
}

.count-step {
    flex: 0 0 36px;
    width: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #4a5568;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease;
}

.count-step:hover {
    background: rgba(23, 32, 51, 0.06);
    color: #172033;
}

.count-step:active {
    background: rgba(198, 40, 40, 0.12);
    color: #c62828;
}

.count-box {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0 8px;
    border-right: 1px solid rgba(23, 32, 51, 0.1);
    border-left: 1px solid rgba(23, 32, 51, 0.1);
    cursor: text;
}

.count-field .count-input {
    width: 58px;
    min-height: 0;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: #172033;
    font-size: 17px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.count-field .count-input:focus {
    border: 0;
    outline: 0;
}

.count-field .count-input::placeholder {
    color: #a6afbd;
    font-weight: 600;
}

.count-unit {
    min-width: 30px;
    color: #68758a;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.count-table .count-clear {
    width: 30px;
    height: 30px;
    margin-left: 6px;
    border-radius: 50%;
    vertical-align: middle;
    font-size: 17px;
}

@media (max-width: 700px) {
    .count-field {
        height: 46px;
    }

    .count-step {
        flex-basis: 40px;
        width: 40px;
        font-size: 21px;
    }

    .count-field .count-input {
        width: 46px;
    }

    .count-unit {
        min-width: 0;
    }

    .count-table .count-clear {
        margin-left: 2px;
    }
}

/* Same width for every quantity box, whatever the unit name. */
.count-unit {
    width: 46px;
    min-width: 46px;
    padding-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 700px) {
    .count-unit {
        width: 40px;
        min-width: 40px;
    }
}

/* Stock count: "Start a new count" form */
.stock-count-page .inv-card + .inv-card,
.stock-count-page .alert + .inv-card {
    margin-top: 20px;
}

.stock-count-page .count-start-form {
    grid-template-columns: minmax(200px, 1fr) minmax(240px, 1.6fr) auto;
    gap: 16px;
    padding: 22px 24px 26px;
}

.count-start-label {
    display: grid;
    gap: 8px;
    margin: 0;
}

.count-start-label > span:first-child {
    color: #172033;
    font-size: 13px;
    font-weight: 700;
}

.count-start-control {
    position: relative;
    display: block;
}

.count-start-control > i {
    position: absolute;
    top: 50%;
    left: 14px;
    color: #8a94a6;
    font-size: 14px;
    pointer-events: none;
    transform: translateY(-50%);
    transition: color 150ms ease;
}

.count-start-control:focus-within > i {
    color: #c62828;
}

.stock-count-page .count-start-control select,
.stock-count-page .count-start-control input {
    width: 100%;
    height: 46px;
    min-height: 46px;
    margin: 0;
    padding: 0 14px 0 40px;
    border: 1.5px solid #d5dbe5;
    border-radius: 11px;
    background-color: #ffffff;
    color: #172033;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.stock-count-page .count-start-control select {
    padding-right: 40px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%238a94a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 12px 8px;
}

.stock-count-page .count-start-control input::placeholder {
    color: #9aa3b2;
    font-weight: 500;
}

.stock-count-page .count-start-control select:hover,
.stock-count-page .count-start-control input:hover {
    border-color: #b9c2d0;
}

.stock-count-page .count-start-control select:focus,
.stock-count-page .count-start-control input:focus {
    border-color: #c62828;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.14);
}

.stock-count-page .count-start-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 22px;
    white-space: nowrap;
}

@media (max-width: 860px) {
    .stock-count-page .count-start-form {
        grid-template-columns: 1fr;
        padding: 18px 16px 20px;
    }

    .stock-count-page .count-start-button {
        width: 100%;
    }
}

/* ==================================================================
   Responsive: collapsible menu on tablets and phones
   ================================================================== */
.workspace-menu {
    display: contents;
}

.nav-toggle {
    display: none;
}

@media (max-width: 1050px) {
    .inventory-page .inv-topbar {
        align-items: center;
    }

    .inventory-page .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        height: 42px;
        margin-left: auto;
        padding: 0 16px;
        border: 1px solid #3b414c;
        border-radius: 11px;
        background: #292e37;
        color: #eef0f4;
        font: inherit;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
    }

    .inventory-page .nav-toggle:hover,
    .inventory-page .nav-toggle:focus-visible {
        background: #343a45;
    }

    .inventory-page .nav-toggle i {
        width: 16px;
        font-size: 16px;
        text-align: center;
    }

    .inventory-page .inv-topbar.nav-open .nav-toggle {
        border-color: rgba(239, 93, 93, 0.45);
        background: rgba(198, 40, 40, 0.28);
    }

    /* Hidden until the button is pressed (only when JavaScript runs). */
    .nav-js .inventory-page .inv-topbar:not(.nav-open) .workspace-menu {
        display: none;
    }

    .nav-js .inventory-page .inv-topbar.nav-open {
        max-height: 100vh;
        max-height: 100dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .nav-js .inventory-page .inv-topbar.nav-open .workspace-menu {
        display: flex;
        flex: 1 0 100%;
        flex-direction: column;
        gap: 12px;
        padding-top: 4px;
    }
}

/* ==================================================================
   Responsive tables: rows become cards on phones
   (labels come from Assets/js/responsive-tables.js)
   ================================================================== */
@media screen and (max-width: 960px) {
    .table-wrap:has(> .stack-table) {
        overflow-x: visible;
    }

    table.stack-table {
        display: block;
        width: 100%;
        min-width: 0 !important;
        white-space: normal;
    }

    .stack-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .stack-table tbody,
    .stack-table tfoot {
        display: block;
    }

    .stack-table tr {
        display: block;
        padding: 12px 16px;
        border-bottom: 1px solid #edf0f4;
    }

    .stack-table tbody tr:last-child {
        border-bottom: 0;
    }

    .stack-table td,
    .stack-table tfoot th {
        position: relative;
        display: block;
        min-height: 28px;
        padding: 5px 0 5px 44%;
        border: 0;
        overflow-wrap: anywhere;
        text-align: left;
    }

    .stack-table td::before {
        content: attr(data-label);
        position: absolute;
        top: 6px;
        left: 0;
        width: 41%;
        color: #69758a;
        font-size: 10.5px;
        font-weight: 700;
        letter-spacing: 0.4px;
        line-height: 1.5;
        text-transform: uppercase;
    }

    .stack-table td:not([data-label])::before,
    .stack-table td[data-label=""]::before {
        content: none;
    }

    .stack-table td:not([data-label]),
    .stack-table td[data-label=""] {
        padding-left: 0;
    }

    /* First column is the row title (product, sale number, name...). */
    .stack-table td:first-child {
        padding: 0 0 8px;
        font-size: 14px;
    }

    .stack-table td:first-child::before {
        content: none;
    }

    .stack-table td.stack-full {
        padding: 18px 0;
        text-align: center;
    }

    .stack-table td.stack-full::before {
        content: none;
    }

    /* Buttons and small forms in a cell wrap instead of squeezing. */
    .stack-table td .actions,
    .stack-table td form {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .stack-table td .btn {
        min-height: 38px;
    }

    .stack-table td input:not([type="checkbox"]):not([type="radio"]),
    .stack-table td select {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .stack-table td:last-child:has(.btn, button, form) {
        padding-top: 10px;
        padding-left: 0;
    }

    .stack-table td:last-child:has(.btn, button, form)::before {
        content: none;
    }
}

@media screen and (max-width: 960px) {
    /* Text links / text buttons in a card's action cell become tap-sized buttons. */
    .stack-table td .actions {
        align-items: center;
    }

    .stack-table td .actions > a:not(.btn),
    .stack-table td .actions .text-action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        padding: 0 16px;
        border: 1px solid #d5dbe5;
        border-radius: 10px;
        background: #ffffff;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
    }

    .stack-table td .actions form {
        margin: 0;
    }
}

/* Dashboard: one column on tablets and small laptops so tables are not squeezed. */
@media (max-width: 1180px) {
    .dashboard-page .dashboard-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Phones: summary cards two per row, compact, so the page is not endless. */
@media (max-width: 700px) {
    .inventory-page .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 16px;
    }

    .inventory-page .stat-card {
        min-height: 0;
        padding: 14px;
        border-radius: 13px;
    }

    .inventory-page .stat-card span {
        font-size: 12px;
        line-height: 1.35;
    }

    .inventory-page .stat-card strong {
        margin-top: 6px;
        font-size: clamp(17px, 5.2vw, 22px);
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .inventory-page .stat-card small {
        font-size: 11px;
    }

    .inventory-page .stat-card::after {
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 340px) {
    .inventory-page .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Phones: comfortable form controls everywhere. 16px text stops iPhone
   Safari from zooming in when a field is tapped. */
@media (max-width: 700px) {
    .inventory-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.count-input),
    .inventory-page select,
    .inventory-page textarea {
        min-height: 44px;
        font-size: 16px;
    }

    .inventory-page input[type="date"],
    .inventory-page input[type="month"] {
        width: 100%;
        min-width: 0;
    }

    .inventory-page .filter-row {
        gap: 10px;
    }

    .inventory-page .filter-row > label,
    .inventory-page .filter-row > input,
    .inventory-page .filter-row > select {
        min-width: 0;
    }

    .inventory-page .filter-row .btn {
        min-height: 44px;
    }
}

/* Laptops: tighter cells and wrapping helper text so wide tables fit
   without sideways scrolling. */
@media screen and (min-width: 961px) and (max-width: 1500px) {
    .inventory-page .table-wrap th,
    .inventory-page .table-wrap td {
        padding-right: 12px;
        padding-left: 12px;
    }

    .inventory-page .table-wrap th:first-child,
    .inventory-page .table-wrap td:first-child {
        padding-left: 20px;
    }

    .inventory-page .table-wrap td small {
        max-width: 190px;
        white-space: normal;
    }
}

@media screen and (min-width: 961px) and (max-width: 1500px) {
    .inventory-page .table-wrap td {
        white-space: normal;
    }

    .inventory-page .table-wrap td .status-pill,
    .inventory-page .table-wrap td .stock-pill,
    .inventory-page .table-wrap td .role-pill,
    .inventory-page .table-wrap td .btn,
    .inventory-page .table-wrap td button {
        white-space: nowrap;
    }
}

@media screen and (min-width: 961px) and (max-width: 1500px) {
    .inventory-page .dashboard-panel table,
    .inventory-page table.inquiry-table {
        min-width: 0;
    }

    .sale-page .sale-lines th,
    .sale-page .sale-lines td {
        padding-right: 10px;
        padding-left: 10px;
    }
}

@media screen and (min-width: 961px) and (max-width: 1500px) {
    .sale-page .sale-entry-form .sale-lines {
        min-width: 0;
    }
}

/* Room for the 36px remove button: fixed last column instead of 5%. */
.sale-page .sale-lines th:last-child {
    width: 60px;
}

@media screen and (min-width: 961px) and (max-width: 1280px) {
    .inventory-page .table-wrap th,
    .inventory-page .table-wrap td {
        padding-right: 9px;
        padding-left: 9px;
    }

    .inventory-page .table-wrap th:first-child,
    .inventory-page .table-wrap td:first-child {
        padding-left: 16px;
    }
}

/* Small laptops (1051-1280px): slimmer sidebar so tables have room. */
@media screen and (min-width: 1051px) and (max-width: 1280px) {
    .inventory-page .inv-topbar {
        width: 226px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .inventory-page .inv-topbar ~ .inv-container {
        width: calc(100% - 266px);
        margin: 26px 20px 48px 246px;
    }

    .inventory-page .workspace-nav .nav-section-links {
        margin-left: 14px;
        padding-left: 8px;
    }

    .inventory-page .workspace-nav .nav-section-links > a {
        gap: 8px;
        padding-right: 8px;
        padding-left: 8px;
    }
}

@media screen and (min-width: 961px) and (max-width: 1500px) {
    .inventory-page .table-wrap th {
        white-space: normal;
        line-height: 1.35;
        vertical-align: bottom;
    }
}

/* An old 1100px rule stopped the sidebar menu from filling its column,
   so it floated in the middle between 1051px and 1100px. */
@media screen and (min-width: 1051px) {
    .inventory-page .inv-topbar {
        align-items: stretch;
    }

    .inventory-page .inv-topbar nav.workspace-nav {
        flex: 1 1 0%;
    }
}

/* ==================================================================
   Spacing between page blocks: cards, forms, filters and summary
   grids that sit one under another in <main> never touch.
   ================================================================== */
.inventory-page .inv-container > .inv-card,
.inventory-page .inv-container > section,
.inventory-page .inv-container > form,
.inventory-page .inv-container > .stats-grid,
.inventory-page .inv-container > .loss-grid {
    margin-bottom: 22px;
}

.inventory-page .inv-container > .alert {
    margin-bottom: 18px;
}

.inventory-page .inv-container > :last-child {
    margin-bottom: 0;
}

/* Summary cards on phones: a little more air between them. */
@media (max-width: 700px) {
    .inventory-page .inv-container > .inv-card,
    .inventory-page .inv-container > section,
    .inventory-page .inv-container > form,
    .inventory-page .inv-container > .stats-grid,
    .inventory-page .inv-container > .loss-grid {
        margin-bottom: 16px;
    }

    .inventory-page .stats-grid,
    .dashboard-page .dashboard-grid,
    .reporting-page .report-grid {
        gap: 12px;
    }
}

/* Selects in simple card forms look like the text fields next to them. */
.supplier-form select {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 10px 36px 10px 11px;
    border: 1px solid #dce3ec;
    border-radius: 9px;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%238a94a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
    background-position: right 13px center;
    background-repeat: no-repeat;
    background-size: 12px 8px;
    color: var(--inv-ink);
    font: inherit;
    font-size: 14px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

/* Cash register: two separate forms in one card. */
.register-form-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 2px;
    color: #172033;
    font-size: 15px;
    font-weight: 800;
}

.register-form-title i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #fdecec;
    color: #c62828;
    font-size: 13px;
}

.register-form + .register-form {
    margin-top: 6px;
    border-top: 1px dashed #d9dfe8;
    padding-top: 24px;
}

/* Stock alerts: header buttons with icons, row link as a small button. */
.inv-heading .actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.inv-heading .actions .btn i {
    font-size: 13px;
}

td a.alert-row-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid #f1d5d5;
    border-radius: 9px;
    background: #fff5f4;
    color: #b42318;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    transition: background 150ms ease, border-color 150ms ease;
}

td a.alert-row-link:hover,
td a.alert-row-link:focus-visible {
    border-color: #e8a9a4;
    background: #fde8e6;
    color: #912018;
}

td a.alert-row-link i {
    font-size: 12px;
}

@media (max-width: 700px) {
    .inv-heading .actions {
        flex-wrap: wrap;
        width: 100%;
    }

    .inv-heading .actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    td a.alert-row-link {
        min-height: 40px;
    }
}

/* Smart reorder: filter bar as a tidy card */
.inventory-page .insights-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(170px, 1fr)) auto;
    align-items: end;
    gap: 16px;
    margin-bottom: 22px;
    padding: 18px 22px 20px;
    border: 1px solid #e3e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 6px 22px rgba(20, 35, 65, 0.035);
}

.insights-filters .insight-filter {
    display: grid;
    gap: 8px;
    min-width: 0;
    margin: 0;
}

.insight-filter-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #344054;
    font-size: 12.5px;
    font-weight: 700;
}

.insight-filter-label i {
    color: #c62828;
    font-size: 12px;
}

.inventory-page .insights-filters select {
    width: 100%;
    height: 46px;
    min-height: 46px;
    margin: 0;
    padding: 0 40px 0 14px;
    border: 1.5px solid #d5dbe5;
    border-radius: 11px;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%238a94a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 12px 8px;
    color: #172033;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.inventory-page .insights-filters select:hover {
    border-color: #b9c2d0;
}

.inventory-page .insights-filters select:focus {
    border-color: #c62828;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.14);
}

.insights-filters .insight-filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 24px;
    white-space: nowrap;
}

@media (max-width: 960px) {
    .inventory-page .insights-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 16px;
    }

    .insights-filters .insight-filter-button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .inventory-page .insights-filters {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* ==================================================================
   Reports: 7-day sales trend (area chart, Assets/js/sales-trend.js)
   Series colour validated: #c62828 on white, #e85a52 on dark surface.
   ================================================================== */
.trend-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid #edf0f4;
}

.trend-metric {
    display: grid;
    align-content: start;
    gap: 3px;
    min-width: 0;
    padding: 16px 20px;
}

.trend-metric + .trend-metric {
    border-left: 1px solid #edf0f4;
}

.trend-metric > span {
    color: #68758a;
    font-size: 12px;
    font-weight: 600;
}

.trend-metric > strong {
    color: #172033;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.3px;
    font-variant-numeric: tabular-nums;
}

.trend-metric > small {
    color: #68758a;
    font-size: 11.5px;
    line-height: 1.4;
}

.trend-change {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    font-weight: 700;
}

.trend-change.is-up { color: #137547; }
.trend-change.is-down { color: #b42318; }
.trend-change.is-flat { color: #68758a; }

.trend-chart {
    padding: 22px 20px 6px;
}

.trend-plot {
    position: relative;
    height: 230px;
}

.trend-grid {
    position: absolute;
    inset: 0;
}

.trend-gridline {
    position: absolute;
    right: 0;
    left: 0;
    height: 0;
}

.trend-gridline::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 50px;
    border-top: 1px dashed #e6eaf0;
}

.trend-gridline:last-child::after {
    border-top: 1px solid #d5dbe5;
}

.trend-gridline span {
    position: absolute;
    top: 0;
    left: 0;
    width: 42px;
    color: #8a94a6;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    text-align: right;
    transform: translateY(-50%);
}

.trend-canvas {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 50px;
}

.trend-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.trend-fill-top { stop-color: rgba(198, 40, 40, 0.24); }
.trend-fill-bottom { stop-color: rgba(198, 40, 40, 0); }

.trend-area {
    fill: url(#trendFill);
}

.trend-line {
    fill: none;
    stroke: #c62828;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.trend-crosshair {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 1px dashed #9aa3b2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 120ms ease;
}

.trend-crosshair.is-visible {
    opacity: 1;
}

.trend-dot {
    position: absolute;
    z-index: 1;
    width: 11px;
    height: 11px;
    border: 2.5px solid #c62828;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 2px #ffffff;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 140ms ease;
}

.trend-dot.is-today {
    background: #c62828;
}

.trend-dot.is-zero {
    border-color: #b9c2d0;
}

.trend-dot.is-active {
    transform: translate(-50%, -50%) scale(1.45);
}

.trend-hits {
    position: absolute;
    inset: -10px 0;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.trend-hit {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.trend-hit:focus-visible {
    outline: 2px solid #c62828;
    outline-offset: -2px;
}

.trend-tooltip {
    position: absolute;
    z-index: 3;
    display: grid;
    gap: 2px;
    min-width: 150px;
    padding: 9px 12px;
    border-radius: 10px;
    background: #172033;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
    color: #ffffff;
    pointer-events: none;
    white-space: nowrap;
}

.trend-tooltip[hidden] {
    display: none;
}

.trend-tooltip-title {
    color: #b8c1cf;
    font-size: 11px;
}

.trend-tooltip-value {
    font-size: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.trend-tooltip-sales {
    color: #d5dbe5;
    font-size: 11.5px;
}

.trend-axis {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin: 10px 0 0 50px;
}

.trend-axis span {
    display: grid;
    justify-items: center;
    gap: 1px;
    padding: 4px 0;
    border-radius: 8px;
    text-align: center;
}

.trend-axis strong {
    color: #344054;
    font-size: 12px;
    font-weight: 700;
}

.trend-axis small {
    color: #8a94a6;
    font-size: 10.5px;
}

.trend-axis span.is-today strong {
    color: #c62828;
}

.trend-axis span.is-active {
    background: #f4f6f9;
}

.trend-table {
    padding: 4px 20px 16px;
}

.trend-table summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    color: #c62828;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}

.trend-table .table-wrap {
    margin-top: 8px;
    border: 1px solid #edf0f4;
    border-radius: 10px;
}

@media (max-width: 700px) {
    .trend-summary {
        grid-template-columns: 1fr 1fr;
    }

    .trend-metric:first-child {
        grid-column: 1 / -1;
    }

    .trend-metric + .trend-metric {
        border-left: 0;
    }

    .trend-metric:nth-child(3) {
        border-left: 1px solid #edf0f4;
    }

    .trend-metric:nth-child(n + 2) {
        border-top: 1px solid #edf0f4;
    }

    .trend-chart {
        padding: 18px 12px 4px;
    }

    .trend-plot {
        height: 200px;
    }

    .trend-gridline::after,
    .trend-canvas {
        left: 38px;
    }

    .trend-gridline span {
        width: 32px;
        font-size: 10px;
    }

    .trend-axis {
        margin-left: 38px;
    }

    .trend-axis strong {
        font-size: 10.5px;
    }

    .trend-axis small {
        font-size: 9.5px;
    }

    .trend-table {
        padding: 4px 12px 14px;
    }
}

/* Trend change line: arrow sits inline with its text. */
.trend-change {
    display: block;
    line-height: 1.45;
}

.trend-change i {
    margin-right: 3px;
}

/* Reports date filter on phones: two dates side by side, buttons below. */
@media (max-width: 700px) {
    .reporting-page .date-filter {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: end;
        gap: 12px;
    }

    .reporting-page .date-filter label {
        min-width: 0;
        font-size: 12px;
    }

    .reporting-page .date-filter input {
        width: 100%;
        min-width: 0;
    }

    .reporting-page .date-filter .btn {
        width: 100%;
        height: 44px;
        justify-content: center;
    }

    .reporting-page .date-filter .report-range-meta {
        grid-column: 1 / -1;
        margin: 0;
        text-align: center;
    }
}

/* ==================================================================
   Expenses: staff spending + manager approval (migration 013)
   ================================================================== */
.pending-expenses {
    border-color: #f3d19c;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.08);
}

.pending-expenses .card-title h2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.pending-expenses .card-title h2 > i {
    color: #b45309;
}

.pending-expenses .card-title h2 .nav-badge {
    margin-left: 0;
    background: #b45309;
}

.pending-expense-list {
    display: grid;
    gap: 12px;
    padding: 0 20px 20px;
}

.pending-expense {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 18px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid #edf0f4;
    border-radius: 12px;
    background: #fffdf8;
}

.pending-expense-main {
    min-width: 0;
}

.pending-expense-amount {
    display: block;
    color: #172033;
    font-size: 20px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.pending-expense h3 {
    margin: 2px 0 0;
    color: #263248;
    font-size: 15px;
}

.pending-expense p {
    margin: 3px 0 0;
    color: #5b6678;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.pending-expense-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 10px 0 0;
    padding: 0;
    color: #68758a;
    font-size: 12px;
    list-style: none;
}

.pending-expense-meta li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pending-expense-meta i {
    color: #98a2b3;
}

.pending-expense-actions {
    display: grid;
    gap: 10px;
}

.pending-expense-actions label {
    display: grid;
    gap: 6px;
    color: #5b6678;
    font-size: 12px;
    font-weight: 600;
}

.pending-expense-actions input {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #dfe4ec;
    border-radius: 10px;
    background: #ffffff;
    color: #253147;
    font: inherit;
    font-size: 13px;
}

.pending-expense-actions input:focus {
    border-color: #d45a5a;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.08);
    outline: none;
}

.pending-expense-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pending-expense-buttons .btn {
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    margin: 0;
}

.pending-expense-buttons .btn-reject {
    border-color: #f1c4c4;
    color: #b42318;
}

.pending-expense-buttons .btn-reject:hover {
    background: #fff1f0;
}

.approval-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.approval-badge.is-pending {
    background: #fff4e0;
    color: #92400e;
}

.approval-badge.is-rejected {
    background: #fdecea;
    color: #b42318;
}

/* Staff form: "Where did the money come from?" */
.staff-expense-source {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.staff-expense-source legend {
    margin-bottom: 7px;
    padding: 0;
    color: inherit;
    font-size: 12px;
    font-weight: 600;
}

.inventory-page .expense-entry-form .staff-source-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.inventory-page .expense-entry-form .staff-source-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    opacity: 0;
}

.staff-source-option > span {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 2px 10px;
    align-items: center;
    height: 100%;
    padding: 12px 14px;
    border: 1px solid #dfe4ec;
    border-radius: 12px;
    background: #ffffff;
    transition: border-color .18s, box-shadow .18s, background .18s;
}

.staff-source-option > span > i {
    display: grid;
    grid-row: span 2;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: #f4f6f9;
    color: #5b6678;
}

.staff-source-option strong {
    color: #263248;
    font-size: 13px;
}

.staff-source-option small {
    color: #7a8595;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.4;
}

.staff-source-option input:checked + span {
    border-color: #c62828;
    background: #fff8f7;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.08);
}

.staff-source-option input:checked + span > i {
    background: #c62828;
    color: #ffffff;
}

.staff-source-option input:focus-visible + span {
    outline: 2px solid #c62828;
    outline-offset: 2px;
}

.staff-source-option input:disabled + span {
    cursor: not-allowed;
    opacity: 0.55;
}

.staff-expense-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff4e0;
    color: #92400e;
    font-size: 12.5px;
}

.staff-expense-note a {
    color: #92400e;
    font-weight: 700;
}

@media (max-width: 900px) {
    .pending-expense {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .pending-expense-list {
        padding: 0 12px 14px;
    }

    .pending-expense {
        padding: 14px;
    }

    .staff-expense-source {
        grid-template-columns: 1fr;
    }
}

/* Landing contact form: demo requests go straight to the developer. */
.landing-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.landing-contact-actions .landing-button {
    flex: 1 1 200px;
    justify-content: center;
}

.landing-form-alert .landing-alert-whatsapp {
    display: inline-flex;
    margin-top: 12px;
    min-height: 42px;
    padding: 10px 18px;
}

/* Shop checkboxes inside staff forms (user_management.php, user_shops.php). */
.user-form .whatsapp-toggle {
    display: flex;
}

.user-form .whatsapp-toggle input[type="checkbox"] {
    display: block;
    width: 18px;
    height: 18px;
    min-height: 0;
    margin: 1px 0 0;
    padding: 0;
}

/* ==================================================================
   Shop switcher (multi-shop). The staff sidebar is dark in both themes,
   so it uses the same palette as the user card in the sidebar footer.
   ================================================================== */
.inventory-page .shop-switcher {
    display: grid;
    flex: 0 0 auto;
    gap: 7px;
    padding: 10px;
    border: 1px solid #3b414c;
    border-radius: 12px;
    background: #292e37;
}

.inventory-page .shop-switcher-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9aa3b2;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.inventory-page .shop-switcher-label i {
    color: #f27b76;
    font-size: 12px;
}

.inventory-page .shop-switcher select {
    width: 100%;
    min-height: 38px;
    padding: 6px 10px;
    border: 1px solid #3b414c;
    border-radius: 9px;
    background-color: #1f232a;
    color: #eef0f4;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.inventory-page .shop-switcher select:focus-visible {
    border-color: #f27b76;
    outline: none;
}

.inventory-page .shop-switcher-single {
    overflow: hidden;
    color: #eef0f4;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-shop-badge {
    display: none;
}

@media (max-width: 1050px) {
    .inventory-page .topbar-shop-badge {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        max-width: 42vw;
        height: 42px;
        margin-left: auto;
        padding: 0 12px;
        border: 1px solid #3b414c;
        border-radius: 11px;
        background: #292e37;
        color: #eef0f4;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
    }

    .inventory-page .topbar-shop-badge i {
        color: #f27b76;
    }

    .inventory-page .topbar-shop-badge span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .inventory-page .topbar-shop-badge + .nav-toggle {
        margin-left: 8px;
    }
}

/* Choose-a-shop page */
.shop-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.shop-choice-grid form {
    margin: 0;
}

.shop-choice {
    display: grid;
    justify-items: start;
    gap: 4px;
    width: 100%;
    height: 100%;
    padding: 18px;
    border: 1px solid var(--inv-border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--inv-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.shop-choice i {
    margin-bottom: 6px;
    color: #c62828;
    font-size: 20px;
}

.shop-choice strong {
    font-size: 15px;
}

.shop-choice small {
    color: #69758a;
    font-size: 12px;
}

.shop-choice:hover,
.shop-choice:focus-visible,
.shop-choice.is-current {
    border-color: #c62828;
}

.shop-choice.is-current {
    box-shadow: inset 0 0 0 1px #c62828;
}

.shop-choice .shop-choice-current {
    color: #c62828;
    font-weight: 700;
}

/* Which shop a row belongs to (shown under "All shops") and the shop line on forms. */
.shop-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #69758a;
    font-size: 12px;
    font-weight: 600;
}

.shop-tag i {
    color: #c62828;
    font-size: 11px;
}

td small.shop-tag,
.supplier-order small.shop-tag {
    display: flex;
    margin-top: 3px;
}

.shop-choose-notice a {
    margin-left: 4px;
    font-weight: 700;
}

/* Owner dashboard: shops compared side by side ("All shops"). */
.dashboard-shop-scope {
    margin-top: 10px;
}

.shop-comparison {
    margin-bottom: 22px;
}

.shop-comparison-table td {
    white-space: nowrap;
}

/* <progress> bar: this month's sales relative to the best shop. */
.shop-bar {
    display: block;
    width: 140px;
    max-width: 100%;
    height: 6px;
    margin-top: 6px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #e9edf3;
    color: #c62828;
    appearance: none;
    -webkit-appearance: none;
}

.shop-bar::-webkit-progress-bar {
    border-radius: 999px;
    background: #e9edf3;
}

.shop-bar::-webkit-progress-value {
    border-radius: 999px;
    background: #c62828;
}

.shop-bar::-moz-progress-bar {
    border-radius: 999px;
    background: #c62828;
}

.amount-negative {
    color: #b42318;
}

/* "Add product" pressed in a shop with no stock: draw the eye to the notice. */
.sale-empty-notice:focus {
    outline: none;
}

.sale-empty-notice.is-attention {
    animation: notice-attention 0.9s ease-in-out 2;
}

@keyframes notice-attention {
    0%, 100% { box-shadow: 0 0 0 0 rgba(198, 40, 40, 0); }
    50% { box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.35); }
}

@media (prefers-reduced-motion: reduce) {
    .sale-empty-notice.is-attention {
        animation: none;
        box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.35);
    }
}

/* Cancelling a sale (receipt page, migration 018). */
.btn-danger {
    border-color: #b42318;
    background: #b42318;
    color: #ffffff;
}

.btn-danger:hover,
.btn-danger:focus-visible {
    border-color: #912018;
    background: #912018;
    color: #ffffff;
}

.receipt-cancelled {
    display: grid;
    gap: 4px;
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 2px solid #b42318;
    border-radius: 10px;
    background: #fef3f2;
    color: #7a271a;
}

.receipt-cancelled strong {
    font-size: 16px;
    letter-spacing: 2px;
}

.receipt-cancel {
    margin-top: 18px;
    border: 1px solid var(--inv-border);
    border-radius: 12px;
    background: var(--color-surface);
    overflow: hidden;
}

.receipt-cancel[open] {
    border-color: #f4b4ae;
}

.receipt-cancel summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #b42318;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.receipt-cancel summary::-webkit-details-marker {
    display: none;
}

.receipt-cancel summary::after {
    content: "\25BE";
    margin-left: auto;
    transition: transform 0.15s ease;
}

.receipt-cancel[open] summary::after {
    transform: rotate(180deg);
}

.receipt-cancel[open] summary {
    border-bottom: 1px solid #f4b4ae;
    background: #fef3f2;
}

.receipt-cancel summary:focus-visible {
    outline: 2px solid var(--inv-primary);
    outline-offset: -2px;
}

.receipt-cancel-intro {
    margin: 0;
    padding: 12px 16px 0;
    color: var(--inv-muted);
    font-size: 13px;
    line-height: 1.5;
}

.receipt-cancel form {
    display: grid;
    gap: 14px;
    padding: 14px 16px 16px;
}

.receipt-cancel-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.receipt-cancel-field label {
    color: var(--inv-ink);
    font-size: 13px;
    font-weight: 600;
}

.receipt-cancel-required {
    color: #b42318;
}

.receipt-cancel-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.receipt-cancel textarea,
.receipt-cancel select,
.receipt-cancel input[type="text"] {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--inv-border);
    border-radius: 9px;
    background-color: var(--color-surface);
    color: var(--inv-ink);
    font: inherit;
    font-size: 15px;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.receipt-cancel textarea {
    min-height: 84px;
    line-height: 1.45;
    resize: vertical;
}

.receipt-cancel select {
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.receipt-cancel textarea::placeholder,
.receipt-cancel input::placeholder {
    color: var(--inv-muted);
    opacity: 0.8;
}

.receipt-cancel textarea:hover,
.receipt-cancel select:hover,
.receipt-cancel input[type="text"]:hover {
    border-color: var(--inv-muted);
}

.receipt-cancel textarea:focus,
.receipt-cancel select:focus,
.receipt-cancel input[type="text"]:focus {
    outline: none;
    border-color: #b42318;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.15);
}

.receipt-cancel-amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #f4b4ae;
    border-radius: 10px;
    background: #fef3f2;
    color: #7a271a;
    font-size: 13px;
    font-weight: 600;
}

.receipt-cancel-amount strong {
    font-size: 18px;
    white-space: nowrap;
}

.receipt-cancel-hint {
    margin: -4px 0 0;
    color: var(--inv-muted);
    font-size: 12px;
}

.receipt-cancel .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    justify-self: start;
    min-height: 44px;
    padding: 10px 18px;
}

@media (max-width: 480px) {
    .receipt-cancel .btn {
        justify-self: stretch;
    }
}

@media print {
    .receipt-cancel,
    .receipt-cancel-note,
    .receipt-flash {
        display: none !important;
    }
}

/* ------------------------------------------------------------------
   Business sign-up (register*.php) - builds on the sign-in layout
   ------------------------------------------------------------------ */
.register-page .login-layout {
    width: min(100%, 1080px);
    grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1fr);
}

.register-card {
    position: relative;
}

.register-card-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 18px;
}

.register-card-tools .language-switcher,
.register-card-tools .login-theme-toggle {
    position: static;
    margin: 0;
}

.register-steps {
    display: grid;
    gap: 14px;
    margin: 34px 0 auto;
    padding: 0;
    list-style: none;
}

.register-step {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    font-weight: 650;
}

.register-step-number {
    display: inline-grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
}

.register-step-current {
    color: #ffffff;
}

.register-step-current .register-step-number {
    border-color: #ef5350;
    background: #c62828;
    color: #ffffff;
}

.register-step-done {
    color: rgba(255, 255, 255, 0.85);
}

.register-step-done .register-step-number {
    border-color: #2e7d32;
    background: #2e7d32;
    color: #ffffff;
}

.register-section {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    border: 0;
}

.register-section + .register-section {
    padding-top: 18px;
    border-top: 1px solid #e8ecf2;
}

.register-section legend {
    margin-bottom: 14px;
    padding: 0;
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.register-slug-wrap {
    display: flex;
    align-items: stretch;
}

.login-card .register-slug-wrap input {
    flex: 1 1 auto;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.register-slug-suffix {
    display: inline-flex;
    max-width: 55%;
    align-items: center;
    padding: 0 12px;
    overflow: hidden;
    border: 1px solid #dce2eb;
    border-left: 0;
    border-radius: 0 10px 10px 0;
    background: #f5f7fa;
    color: #475467;
    font-size: 13px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.register-slug-status {
    min-height: 0;
    font-size: 11px;
    font-weight: 700;
}

.register-slug-status:empty {
    display: none;
}

.register-slug-status.is-available {
    color: #2e7d32;
}

.register-slug-status.is-taken,
.register-slug-status.is-invalid {
    color: #b42318;
}

.register-slug-status.is-checking {
    color: var(--color-muted);
}

.login-field > small.register-error {
    color: #b42318;
    font-size: 11px;
    font-weight: 650;
}

.login-card .login-field.has-error .login-input-wrap input {
    border-color: #f04438;
}

.register-code-input {
    font-size: 22px !important;
    font-weight: 800;
    letter-spacing: 0.45em;
    font-variant-numeric: tabular-nums;
}

.register-dev-code {
    font-weight: 700;
}

.register-secondary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e8ecf2;
}

.register-secondary form {
    margin: 0;
}

.register-secondary .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
}

.register-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--color-brand);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.register-link:hover,
.register-link:focus-visible {
    text-decoration: underline;
}

.register-status {
    text-align: center;
}

.register-status .login-submit {
    margin-top: 22px;
}

.register-status-icon {
    display: inline-grid;
    width: 64px;
    height: 64px;
    margin: 6px auto 10px;
    place-items: center;
    border-radius: 50%;
    background: #eef2f7;
    color: #475467;
    font-size: 28px;
}

.register-status-ok {
    background: #ecfdf3;
    color: #2e7d32;
}

.register-status-wait {
    background: #fffaeb;
    color: #b54708;
}

.register-status-bad {
    background: #fef3f2;
    color: #b42318;
}

.register-address {
    margin: 18px 0 0;
    overflow-wrap: anywhere;
}

.register-address code {
    display: inline-block;
    padding: 8px 12px;
    border: 1px dashed #d0d5dd;
    border-radius: 8px;
    background: #f9fafb;
    color: var(--color-ink);
    font-size: 13px;
}

@media (max-width: 760px) {
    .register-page .login-layout {
        width: min(100%, 520px);
        grid-template-columns: 1fr;
    }

    .register-card-tools {
        margin-bottom: 8px;
    }

    .register-slug-suffix {
        max-width: 50%;
        font-size: 12px;
    }

    .register-secondary {
        flex-direction: column;
        align-items: stretch;
    }

    .register-secondary .btn {
        justify-content: center;
        width: 100%;
    }
}

/* ------------------------------------------------------------------
   Platform administration (platform_*.php)
   ------------------------------------------------------------------ */

.platform-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin: 0 0 22px;
}

.platform-stat {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid var(--inv-border);
    border-radius: 14px;
    background: var(--color-surface);
    color: var(--inv-ink);
    text-decoration: none;
}

a.platform-stat:hover,
a.platform-stat:focus-visible {
    border-color: var(--inv-primary);
}

.platform-stat-label {
    color: var(--inv-muted);
    font-size: 12px;
    font-weight: 700;
}

.platform-stat strong {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.platform-stat small {
    color: #b42318;
    font-size: 12px;
    font-weight: 650;
}

.platform-stat-alert {
    border-color: #fdb022;
    background: #fffaeb;
}

.platform-section {
    margin-bottom: 22px;
}

.platform-section-note {
    margin: -4px 0 14px;
    font-size: 13px;
}

.platform-sub {
    display: block;
    margin-top: 3px;
    color: var(--inv-muted);
    font-size: 12px;
    font-weight: 500;
}

.platform-link {
    color: var(--inv-primary);
    text-decoration: none;
}

.platform-link:hover,
.platform-link:focus-visible {
    text-decoration: underline;
}

.platform-inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
}

.platform-inline-form:last-child {
    margin-bottom: 0;
}

.platform-inline-form input[type="text"],
.platform-filter input[type="search"],
.platform-filter select {
    box-sizing: border-box;
    min-width: 0;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--inv-border);
    border-radius: 9px;
    background: var(--color-surface);
    color: var(--inv-ink);
    font: inherit;
    font-size: 14px;
}

.platform-inline-form input[type="text"] {
    flex: 1 1 160px;
}

.platform-inline-form .btn,
.platform-filter .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    white-space: nowrap;
}

.platform-inline-form input:focus,
.platform-filter input:focus,
.platform-filter select:focus {
    outline: 2px solid var(--inv-primary);
    outline-offset: 1px;
    border-color: transparent;
}

.platform-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.platform-filter input[type="search"] {
    flex: 1 1 260px;
}

.platform-table td {
    vertical-align: top;
}

@media (max-width: 760px) {
    .platform-inline-form .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

.register-already {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid #e8ecf2;
    color: var(--color-muted);
    font-size: 13px;
}

/* ------------------------------------------------------------------
   Landing header: sign-in menu, sign-up button, tools (2026-11 layout)
   ------------------------------------------------------------------ */
.landing-header-inner {
    gap: 20px;
}

.landing-navigation {
    gap: clamp(12px, 1.6vw, 24px);
}

.landing-navigation > a {
    white-space: nowrap;
}

.landing-nav-actions {
    gap: 10px;
    margin-left: 6px;
}

.landing-nav-actions .landing-login-link {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid var(--landing-line);
    border-radius: 9px;
    background: #ffffff;
    color: var(--landing-ink);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.landing-nav-actions .landing-login-link:hover,
.landing-nav-actions .landing-login-link:focus-visible,
.landing-login-menu[open] > .landing-login-link {
    border-color: #f2b8b5;
    background: #fff7f6;
    color: var(--landing-red);
}

.landing-nav-actions .landing-login-link:focus-visible,
.landing-nav-cta:focus-visible,
.landing-login-panel a:focus-visible {
    outline: 3px solid rgba(198, 40, 40, 0.28);
    outline-offset: 2px;
}

.landing-nav-cta {
    gap: 7px;
    white-space: nowrap;
}

.landing-nav-cta i {
    font-size: 11px;
}

.landing-login-menu {
    position: relative;
}

.landing-login-menu > summary {
    list-style: none;
}

.landing-login-menu > summary::-webkit-details-marker {
    display: none;
}

.landing-login-chevron {
    font-size: 9px;
    transition: transform 150ms ease;
}

.landing-login-menu[open] .landing-login-chevron {
    transform: rotate(180deg);
}

.landing-login-panel {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    gap: 4px;
    width: 300px;
    padding: 8px;
    border: 1px solid var(--landing-line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(23, 32, 51, 0.14);
}

.landing-login-panel a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--landing-ink);
    text-decoration: none;
    transition: background 150ms ease;
}

.landing-login-panel a:hover {
    background: #f6f7f9;
}

.landing-login-panel strong,
.landing-login-panel small {
    display: block;
}

.landing-login-panel strong {
    font-size: 13px;
    font-weight: 750;
    line-height: 1.3;
}

.landing-login-panel small {
    margin-top: 2px;
    color: var(--landing-muted);
    font-size: 11px;
    line-height: 1.4;
}

.landing-login-icon {
    display: inline-grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 9px;
    background: #fdecec;
    color: var(--landing-red);
    font-size: 14px;
}

.landing-nav-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 10px;
    border-left: 1px solid var(--landing-line);
}

.landing-nav-tools .language-switcher {
    margin: 0;
}

.landing-nav-tools .language-switcher a {
    min-height: 30px;
    padding: 0 10px;
}

/* Menu button below 1280px: the header holds more now (Swahili labels are long). */
@media (max-width: 1279px) {
    .landing-header-inner {
        position: relative;
        min-height: 68px;
    }

    .landing-menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .landing-navigation {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        padding: 10px 24px 18px;
        border-bottom: 1px solid var(--landing-line);
        background: #ffffff;
        box-shadow: 0 16px 24px rgba(23, 32, 51, 0.08);
    }

    .landing-navigation.is-open {
        display: flex;
    }

    .landing-navigation > a {
        padding: 12px 4px;
        border-bottom: 1px solid #f0f2f5;
        font-size: 13px;
    }

    .landing-nav-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 14px 0 0;
    }

    .landing-nav-actions .landing-login-link,
    .landing-nav-cta {
        justify-content: center;
        width: 100%;
        min-height: 46px;
        font-size: 14px;
    }

    .landing-login-panel {
        position: static;
        width: auto;
        margin-top: 8px;
        box-shadow: none;
    }

    .landing-nav-tools {
        justify-content: space-between;
        padding: 12px 0 0;
        border-top: 1px solid var(--landing-line);
        border-left: 0;
    }
}

/* ------------------------------------------------------------------
   Sign in to your shop (find_shop.php)
   ------------------------------------------------------------------ */
.find-shop-steps {
    display: grid;
    gap: 16px;
    margin: 34px 0 auto;
    padding: 0;
    list-style: none;
    counter-reset: find-step;
}

.find-shop-steps li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: start;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.5;
}

.find-shop-steps li::before {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    content: counter(find-step);
    counter-increment: find-step;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.find-shop-steps strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
}

.find-shop-card .login-form {
    margin-top: 24px;
}

.login-card .find-shop-input-wrap input {
    font-size: 16px;
    font-weight: 650;
}

.find-shop-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 12px;
    overflow: hidden;
    border: 1px dashed #d0d5dd;
    border-radius: 10px;
    background: #f9fafb;
    color: var(--color-muted);
    font-size: 12px;
    white-space: nowrap;
}

.find-shop-preview i {
    color: #2e7d32;
}

.find-shop-preview code {
    overflow: hidden;
    color: var(--color-ink);
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
}

.find-shop-recent {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 18px 0 0;
    color: var(--color-muted);
    font-size: 12px;
}

.find-shop-recent[hidden] {
    display: none;
}

.find-shop-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #dce2eb;
    border-radius: 999px;
    background: #ffffff;
    color: var(--color-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.find-shop-chip:hover,
.find-shop-chip:focus-visible {
    border-color: var(--color-brand);
    color: var(--color-brand);
}

.find-shop-links {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e8ecf2;
}

.find-shop-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e8ecf2;
    border-radius: 12px;
    color: var(--color-ink);
    text-decoration: none;
    transition: border-color 150ms ease, background 150ms ease;
}

.find-shop-links a:hover,
.find-shop-links a:focus-visible {
    border-color: #f2b8b5;
    background: #fff7f6;
}

.find-shop-links strong,
.find-shop-links small {
    display: block;
}

.find-shop-links strong {
    font-size: 13px;
}

.find-shop-links small {
    color: var(--color-muted);
    font-size: 11px;
}

.find-shop-links .fa-arrow-right {
    margin-left: auto;
    color: var(--color-muted);
    font-size: 12px;
}

/* Toolbar of the sign-up / sign-in cards: "Home page" left, language + theme right. */
.register-card-tools {
    justify-content: space-between;
}

.register-card-tools-end {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

.register-back-link {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    padding: 0 12px 0 10px;
    border: 1px solid #e4e8ef;
    border-radius: 999px;
    background: #f5f6f8;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.register-back-link:hover,
.register-back-link:focus-visible {
    border-color: #f2b8b5;
    background: #fff7f6;
    color: var(--color-brand);
}

.register-back-link:focus-visible {
    outline: 3px solid rgba(198, 40, 40, 0.24);
    outline-offset: 2px;
}

.platform-account-panel.login-card {
    max-width: 560px;
    padding: 24px clamp(18px, 4vw, 32px);
    border: 1px solid var(--inv-border);
    border-radius: 16px;
}

.platform-account .alert i {
    margin-right: 6px;
}

/* ------------------------------------------------------------------
   Platform pages with the sidebar (platform_admin / _signups / _businesses / _account)
   ------------------------------------------------------------------ */
.platform-page .inv-heading h1 {
    letter-spacing: -0.6px;
}

.platform-callout {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 20px;
    padding: 16px 18px;
    border: 1px solid #fedf89;
    border-radius: 14px;
    background: #fffaeb;
    color: #7a2e0e;
    text-decoration: none;
    transition: border-color 150ms ease, transform 150ms ease;
}

.platform-callout:hover,
.platform-callout:focus-visible {
    border-color: #fdb022;
    transform: translateY(-1px);
}

.platform-callout strong,
.platform-callout small {
    display: block;
}

.platform-callout strong {
    font-size: 15px;
}

.platform-callout small {
    margin-top: 2px;
    color: #93370d;
    font-size: 12px;
}

.platform-callout-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: #fef0c7;
    color: #b54708;
    font-size: 18px;
}

.platform-callout-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
}

.platform-stats {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.platform-stat {
    position: relative;
    gap: 4px;
    padding: 18px 18px 16px;
    overflow: hidden;
    transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

a.platform-stat:hover,
a.platform-stat:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(23, 32, 51, 0.08);
}

.platform-stat-icon {
    display: inline-grid;
    width: 38px;
    height: 38px;
    margin-bottom: 8px;
    place-items: center;
    border-radius: 11px;
    background: #eef2f7;
    color: #475467;
    font-size: 16px;
}

.platform-stat-green .platform-stat-icon {
    background: #ecfdf3;
    color: #2e7d32;
}

.platform-stat-red .platform-stat-icon {
    background: #fef3f2;
    color: #b42318;
}

.platform-stat-amber .platform-stat-icon {
    background: #fffaeb;
    color: #b54708;
}

.platform-stat-blue .platform-stat-icon {
    background: #eff8ff;
    color: #175cd3;
}

.platform-stat .platform-stat-note {
    color: var(--inv-muted);
    font-size: 12px;
    font-weight: 600;
}

.platform-stat .platform-stat-note.is-bad {
    color: #b42318;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.platform-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.platform-section-head .section-heading {
    margin: 0;
}

.platform-section-head .platform-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
}

.platform-list {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.platform-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    border-bottom: 1px solid var(--inv-border);
}

.platform-list li:last-child {
    border-bottom: 0;
}

.platform-list-avatar {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 11px;
    background: #fdecec;
    color: #c62828;
    font-size: 15px;
    font-weight: 800;
}

.platform-list-text {
    min-width: 0;
    flex: 1 1 auto;
}

.platform-list-text strong,
.platform-list-text small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.platform-list-text small,
.platform-list-meta small {
    color: var(--inv-muted);
    font-size: 12px;
}

.platform-list-meta {
    display: grid;
    flex: 0 0 auto;
    justify-items: end;
    gap: 4px;
}

.platform-timeline {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0 0 0 18px;
    list-style: none;
    border-left: 2px solid var(--inv-border);
}

.platform-timeline li {
    position: relative;
    display: grid;
    gap: 2px;
    padding: 0 0 14px 14px;
}

.platform-timeline li::before {
    position: absolute;
    top: 4px;
    left: -25px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--color-surface);
    border-radius: 50%;
    background: #98a2b3;
    content: "";
}

.platform-timeline-good::before {
    background: #2e7d32 !important;
}

.platform-timeline-bad::before {
    background: #b42318 !important;
}

.platform-timeline strong {
    font-size: 13px;
}

.platform-timeline span {
    font-size: 13px;
}

.platform-timeline small {
    color: var(--inv-muted);
    font-size: 11px;
}

.platform-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px;
    border: 1px dashed var(--inv-border);
    border-radius: 12px;
    color: var(--inv-muted);
}

.platform-empty i {
    color: #2e7d32;
    font-size: 18px;
}

.platform-empty p {
    margin: 0;
}

.platform-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.platform-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--inv-border);
    border-radius: 14px;
    background: var(--color-surface);
}

.platform-card header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.platform-card h3 {
    margin: 0;
    font-size: 16px;
}

.platform-card header small {
    color: var(--inv-muted);
    font-size: 12px;
}

.platform-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin: 0;
}

.platform-facts dt {
    color: var(--inv-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.platform-facts dd {
    margin: 2px 0 0;
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.platform-card-actions {
    display: grid;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--inv-border);
}

.platform-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.platform-toolbar .platform-filter {
    margin: 0;
}

.platform-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--inv-border);
    border-radius: 12px;
    background: #f5f6f8;
}

.platform-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 9px;
    color: var(--inv-muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.platform-tab span {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    place-items: center;
    border-radius: 999px;
    background: #e4e7ec;
    color: #344054;
    font-size: 11px;
}

.platform-tab:hover {
    color: var(--inv-ink);
}

.platform-tab.is-active {
    background: var(--color-surface);
    box-shadow: 0 1px 4px rgba(27, 39, 57, 0.12);
    color: var(--inv-ink);
}

.platform-search {
    position: relative;
    display: flex;
    flex: 1 1 260px;
}

.platform-search i {
    position: absolute;
    top: 50%;
    left: 12px;
    color: var(--inv-muted);
    font-size: 13px;
    transform: translateY(-50%);
    pointer-events: none;
}

.platform-filter .platform-search input[type="search"] {
    width: 100%;
    padding-left: 34px;
}

.platform-cell-business {
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-cell-business strong {
    display: block;
}

.status-pill.platform-pill-pending {
    background: #fffaeb;
    color: #b54708;
}

.status-pill.platform-pill-active {
    background: #ecfdf3;
    color: #2e7d32;
}

.status-pill.platform-pill-inactive {
    background: #f2f4f7;
    color: #475467;
}

.platform-page .alert i {
    margin-right: 6px;
}

@media (max-width: 1100px) {
    .platform-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .platform-callout {
        flex-wrap: wrap;
    }

    .platform-callout-action {
        margin-left: 56px;
    }

    .platform-facts {
        grid-template-columns: 1fr;
    }

    .platform-toolbar,
    .platform-tabs {
        width: 100%;
    }

    .platform-tab {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* Platform: one-time temporary owner password */
.platform-temp-password {
    display: flex;
    gap: 14px;
    margin: 0 0 20px;
    padding: 16px 18px;
    border: 1px solid #abefc6;
    border-radius: 14px;
    background: #ecfdf3;
    color: #054f31;
}

.platform-temp-password > i {
    margin-top: 2px;
    font-size: 18px;
}

.platform-temp-password p {
    margin: 4px 0 10px;
    font-size: 13px;
}

.platform-temp-password dl {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin: 0;
}

.platform-temp-password dt {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.platform-temp-password code {
    font-size: 15px;
    font-weight: 700;
}

.platform-temp-code {
    padding: 4px 8px;
    border-radius: 6px;
    background: #ffffff;
    letter-spacing: 0.06em;
    user-select: all;
}

/* Platform: two-step sign-in */
.platform-callout-danger {
    border-color: #fecdca;
    background: #fef3f2;
    color: #7a271a;
}

.platform-callout-danger:hover,
.platform-callout-danger:focus-visible {
    border-color: #f97066;
}

.platform-callout-danger small {
    color: #912018;
}

.platform-callout-danger .platform-callout-icon {
    background: #fee4e2;
    color: #b42318;
}

.platform-two-step {
    margin-top: 20px;
}

.platform-two-step-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.platform-two-step-head .platform-stat-icon {
    margin: 0;
    background: #eff8ff;
    color: #175cd3;
}

.platform-two-step-head .section-heading {
    margin: 0 0 4px;
}

.platform-two-step-off {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--inv-border);
}

.platform-two-step-off .login-input-wrap {
    flex: 1 1 220px;
}

.platform-two-step-danger {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--inv-border);
}

.platform-two-step-danger > summary {
    color: var(--inv-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.platform-two-step-danger .platform-two-step-off {
    margin-top: 10px;
    padding-top: 0;
    border-top: 0;
}

/* ------------------------------------------------------------------
   Brand inside the app: TZ icon + Inven<span class="inv-brand-accent">TZ</span>
   ------------------------------------------------------------------ */
.inv-brand::before,
.inventory-page .inv-brand::before {
    content: "";
    align-self: center;
    flex: 0 0 auto;
    background: url("../favicon/favicon.svg?v=icon-20261111") center / cover no-repeat;
}

.inv-brand .inv-brand-accent,
.inventory-page .inv-brand .inv-brand-accent {
    margin: 0;
    color: #e53935;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
}

/* Sign-in pages: the TZ icon fills its square (was a shopping-bag glyph). */
.login-brand-icon-img {
    overflow: hidden;
    padding: 0;
    border: 0;
    background: none;
}

.login-brand-icon-img img {
    display: block;
    width: 100%;
    height: 100%;
}

/* Landing: "Sign in" button on the platform address, with who it is for */
.landing-nav-actions .landing-login-link .landing-login-hint {
    padding: 2px 7px;
    border-radius: 999px;
    background: #f2f4f7;
    color: var(--landing-muted);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

/* "Sign in to your shop": who types what */
.find-shop-who {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #e4e8ef;
    border-radius: 12px;
    background: #f9fafb;
    font-size: 13px;
    line-height: 1.5;
}

.find-shop-who > div {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 8px;
    align-items: start;
}

.find-shop-who i {
    margin-top: 3px;
    color: var(--color-brand);
    text-align: center;
}

.find-shop-who strong {
    color: var(--color-ink);
}

.find-shop-who span {
    color: var(--color-muted);
}

/* ------------------------------------------------------------------
   SMS through the platform: monthly limit (business) and SMS settings (platform)
   ------------------------------------------------------------------ */
.sms-quota {
    display: grid;
    gap: 8px;
    margin: 14px 20px 0;
    padding: 14px 16px;
    border: 1px solid var(--inv-border);
    border-radius: 12px;
    background: var(--color-page);
}

.sms-quota-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 13px;
    color: var(--inv-muted);
}

.sms-quota-head strong {
    font-size: 16px;
    color: var(--inv-ink);
    font-variant-numeric: tabular-nums;
}

.sms-quota small {
    font-size: 12px;
    color: var(--inv-muted);
}

.sms-quota-bar {
    display: block;
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: var(--inv-border);
}

.sms-quota-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--color-success);
}

.sms-quota-bar.is-full > span {
    background: var(--color-danger);
}

.sms-quota-note {
    display: block;
    font-size: 12px;
    color: var(--inv-muted);
}

.debt-overdue-alert .sms-quota-note {
    flex-basis: 100%;
}

.daily-report-auto {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--inv-border);
    border-radius: 12px;
    background: var(--color-page);
}

.daily-report-auto i {
    margin-top: 2px;
    color: var(--color-success);
}

.daily-report-auto span {
    display: grid;
    gap: 2px;
}

.daily-report-auto small {
    color: var(--inv-muted);
}

.platform-sms-cell {
    display: grid;
    gap: 6px;
    min-width: 140px;
}

.platform-sms-cell .status-pill {
    justify-self: start;
}

.platform-sms-cell strong {
    font-variant-numeric: tabular-nums;
}

.platform-sms-details {
    margin-top: 8px;
}

.platform-sms-details summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid var(--inv-border);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    color: var(--inv-ink);
    cursor: pointer;
    list-style: none;
}

.platform-sms-details summary::-webkit-details-marker {
    display: none;
}

.platform-sms-details summary:hover,
.platform-sms-details[open] summary {
    border-color: var(--color-brand);
    color: var(--color-brand);
}

.platform-sms-form {
    display: grid;
    gap: 10px;
    max-width: 320px;
    margin-top: 10px;
    padding: 14px;
    border: 1px solid var(--inv-border);
    border-radius: 12px;
    background: var(--color-page);
}

.platform-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--inv-ink);
    cursor: pointer;
}

.platform-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-brand);
}

.platform-sms-limit {
    display: grid;
    gap: 4px;
    font-size: 13px;
    color: var(--inv-muted);
}

.platform-sms-limit input {
    box-sizing: border-box;
    width: 140px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--inv-border);
    border-radius: 9px;
    background: var(--color-surface);
    color: var(--inv-ink);
}

.platform-sms-form .btn {
    justify-self: start;
}

.platform-stat strong.platform-stat-text {
    font-size: 20px;
}

.platform-sms-notes {
    display: grid;
    gap: 6px;
    margin: 16px 0 0;
    padding-left: 18px;
    font-size: 13px;
    color: var(--inv-muted);
}

.platform-sms-usage {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.platform-sms-usage li {
    display: grid;
    gap: 6px;
}

.platform-sms-usage-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.platform-sms-test {
    max-width: 360px;
}

/* Products sold by measure (kg, litre, metre): unit after the quantity,
   quick ¼ ½ ¾ 1, and sell by amount (main.js decorateQuantity). */
.sale-lines .qty-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sale-lines .qty-unit:empty {
    display: none;
}

.sale-lines .qty-unit {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--inv-muted);
}

.sale-lines .qty-measure {
    display: grid;
    gap: 6px;
    margin-top: 6px;
}

.sale-lines .qty-measure[hidden] {
    display: none;
}

.sale-lines .qty-quick {
    display: flex;
    gap: 4px;
}

.sale-lines .qty-chip {
    flex: 1 1 0;
    min-width: 32px;
    min-height: 32px;
    padding: 0 6px;
    border: 1px solid var(--inv-border);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--inv-ink);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.sale-lines .qty-chip:hover {
    border-color: var(--color-brand);
    color: var(--color-brand);
}

.sale-lines .qty-chip.is-active {
    border-color: var(--color-brand);
    background: var(--color-brand);
    color: #ffffff;
}

.sale-lines .qty-chip:focus-visible {
    outline: 3px solid rgba(198, 40, 40, 0.3);
    outline-offset: 1px;
}

.sale-lines .qty-amount {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    min-height: 38px;
    border: 1px solid var(--inv-border);
    border-radius: 9px;
    background: var(--color-surface);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sale-lines .qty-amount:focus-within {
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.14);
}

.sale-lines .qty-amount-prefix {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 9px;
    border-right: 1px solid var(--inv-border);
    background: var(--color-page);
    font-size: 12px;
    font-weight: 800;
    color: var(--inv-muted);
    white-space: nowrap;
}

.sale-lines .qty-amount-prefix i {
    color: var(--color-success);
}

.sale-lines .qty-amount input,
.sale-page .sale-lines .qty-amount input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 6px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    color: var(--inv-ink);
    outline: none;
}

.sale-lines .qty-amount input::placeholder {
    font-weight: 500;
    color: var(--inv-muted);
}

.sale-lines .qty-amount-hint {
    font-size: 11px;
    color: var(--inv-muted);
}

.sale-lines td.is-measured {
    min-width: 170px;
}

/* Sale page: products hidden because their stock is 0 */
.sale-out-of-stock {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid #f3d9a4;
    border-left: 4px solid var(--color-warning);
    border-radius: 12px;
    background: #fff8e8;
    color: var(--inv-ink);
}

.sale-out-of-stock > i {
    flex: 0 0 auto;
    font-size: 20px;
    color: var(--color-warning);
}

.sale-out-of-stock > div {
    display: grid;
    flex: 1 1 auto;
    gap: 2px;
    min-width: 0;
    font-size: 13px;
}

.sale-out-of-stock span {
    color: var(--inv-muted);
}

.sale-out-of-stock .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .sale-out-of-stock {
        flex-wrap: wrap;
    }

    .sale-out-of-stock .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ------------------------------------------------------------------
   Platform sign-in (platform_login.php): control-centre panel + form
   ------------------------------------------------------------------ */
.platform-login-layout {
    width: min(100%, 1040px);
    min-height: 620px;
}

.platform-login-intro {
    background:
        radial-gradient(circle at 0% 0%, rgba(198, 40, 40, 0.28), transparent 42%),
        radial-gradient(circle at 100% 100%, rgba(198, 40, 40, 0.18), transparent 38%),
        linear-gradient(160deg, #1b2333 0%, #0f1520 100%);
}

.platform-login-intro::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 75%);
    content: "";
    pointer-events: none;
}

.platform-login-intro .login-intro-copy {
    padding: 44px 0 30px;
}

.platform-login-intro .login-intro-copy h1 {
    font-size: clamp(28px, 3.4vw, 38px);
    letter-spacing: -1.2px;
}

.platform-login-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border: 1px solid rgba(255, 170, 170, 0.45);
    border-radius: 999px;
    background: rgba(198, 40, 40, 0.18);
    color: #ffc2c2;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.platform-login-capabilities {
    gap: 12px;
}

.platform-login-capabilities > div {
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.035);
}

.platform-login-card {
    padding-top: 36px;
    padding-bottom: 36px;
}

.platform-login-card .platform-login-brand {
    align-items: center;
    gap: 8px;
}

.platform-login-card .platform-login-brand .platform-login-badge {
    border-color: rgba(198, 40, 40, 0.3);
    background: rgba(198, 40, 40, 0.08);
    color: var(--color-brand);
}

.platform-login-steps {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 26px;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.platform-login-steps li {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    gap: 9px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 700;
}

.platform-login-steps li + li::before {
    flex: 0 0 26px;
    height: 2px;
    margin-right: 2px;
    border-radius: 2px;
    background: var(--color-border);
    content: "";
}

.platform-login-step-dot {
    display: inline-grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-surface);
    font-size: 12px;
    font-weight: 800;
}

.platform-login-steps li.is-current {
    color: var(--color-ink);
}

.platform-login-steps li.is-current .platform-login-step-dot {
    border-color: var(--color-brand);
    background: var(--color-brand);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.12);
}

.platform-login-steps li.is-done {
    color: var(--color-success);
}

.platform-login-steps li.is-done .platform-login-step-dot {
    border-color: var(--color-success);
    background: var(--color-success);
    color: #ffffff;
}

.platform-login-steps li.is-done + li::before {
    background: var(--color-success);
}

.platform-login-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.platform-login-icon {
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    place-items: center;
    border: 1px solid rgba(198, 40, 40, 0.18);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(198, 40, 40, 0.12), rgba(198, 40, 40, 0.04));
    color: var(--color-brand);
    font-size: 21px;
}

.platform-login-head .login-form-eyebrow {
    margin: 0;
}

.platform-login-head h2 {
    margin-top: 4px;
}

.platform-login-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 3px 10px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-page);
    color: var(--color-ink);
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.platform-caps-warning {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-warning);
    font-size: 11px;
    font-weight: 700;
}

.platform-caps-warning[hidden] {
    display: none;
}

.login-card .platform-code-input {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.login-submit.is-loading {
    cursor: progress;
    opacity: 0.85;
}

.platform-login-secondary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
}

.platform-login-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin: 26px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--color-border);
    list-style: none;
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 650;
}

.platform-login-trust li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.platform-login-trust i {
    color: var(--color-success);
}

@media (max-width: 760px) {
    .platform-login-layout {
        min-height: auto;
    }

    .platform-login-card .login-mobile-brand {
        display: inline-flex;
        margin-bottom: 22px;
    }
}

/* ------------------------------------------------------------------
   Quotations / proforma invoices (quotations.php, quotation.php,
   quotation_form.php, the "Selling quotation" notice on sales.php)
   ------------------------------------------------------------------ */
.alert.info {
    background: #e8f1fd;
    color: #174a8b;
}

.status-converted {
    background: #e8f1fd;
    color: #174a8b;
}

.status-warning {
    background: #fff0d6;
    color: #875000;
}

.text-danger,
.text-action.text-danger {
    color: var(--color-danger);
}

.quote-sale-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.quote-sale-notice > i {
    margin-top: 3px;
    font-size: 18px;
}

.quote-sale-notice > div {
    display: grid;
    gap: 4px;
}

.quote-sale-notice a {
    color: inherit;
    font-weight: 700;
}

.quote-sale-warning {
    color: #875000;
    font-weight: 700;
}

.quotation-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
}

.quotation-customer {
    display: grid;
    gap: 2px;
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid var(--inv-border);
    border-radius: 10px;
    background: var(--inv-bg);
}

.quotation-customer span {
    color: var(--inv-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quotation-customer strong {
    font-size: 16px;
}

.quotation-customer small {
    color: var(--inv-muted);
}

.quotation-state {
    display: grid;
    gap: 4px;
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 2px solid #5e6878;
    border-radius: 10px;
    background: #edf0f5;
    color: #33404f;
}

.quotation-state strong {
    font-size: 16px;
    letter-spacing: 2px;
}

.quotation-state a {
    color: inherit;
    font-weight: 700;
}

.quotation-state--converted {
    border-color: #174a8b;
    background: #e8f1fd;
    color: #174a8b;
}

.quotation-state--expired {
    border-color: #b77800;
    background: #fff6e5;
    color: #6f4100;
}

.quotation-state--cancelled {
    border-color: #b42318;
    background: #fef3f2;
    color: #7a271a;
}

.quotation-terms {
    margin: 16px 0 0;
    color: var(--inv-muted);
    font-size: 12.5px;
}

.quotation-doc .receipt-actions {
    flex-wrap: wrap;
}

.quotation-cancel {
    margin-top: 14px;
}

.quotation-cancel .text-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.receipt-quotation a {
    font-weight: 700;
}

@media print {
    .quotation-cancel,
    .quotation-doc .receipt-whatsapp {
        display: none !important;
    }

    .quotation-customer {
        background: #fff;
    }
}

/* ------------------------------------------------------------------
   Supplier debts (supplier_debts.php, payment part of purchases.php)
   ------------------------------------------------------------------ */
.status-overdue {
    background: #fee4e2;
    color: #912018;
}

.stat-card.stat-card--alert {
    border-color: #f4b4ae;
    background: #fef3f2;
}

.stat-card.stat-card--alert strong {
    color: #912018;
}

.purchase-payment {
    margin: 18px 0 0;
    padding: 16px;
    border: 1px solid var(--inv-border);
    border-radius: 12px;
}

.purchase-payment legend {
    padding: 0 6px;
    font-weight: 800;
}

.purchase-payment-modes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

/* Payment choice cards. ".purchase-payment" in front beats the general
   ".purchase-form label / input" rules (grid label, full-width input). */
.purchase-payment .purchase-payment-mode {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1.5px solid #e3e8f0;
    border-radius: 12px;
    background: #ffffff;
    color: #172033;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.purchase-payment .purchase-payment-mode:hover {
    border-color: #c9d2df;
    box-shadow: 0 4px 14px rgba(23, 32, 51, 0.06);
    transform: translateY(-1px);
}

/* The real radio stays in place for keyboards and screen readers, unseen. */
.purchase-payment .purchase-payment-mode input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.purchase-payment .purchase-payment-mode:focus-within {
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.15);
}

.purchase-payment-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    font-size: 18px;
}

.purchase-payment-mode--full .purchase-payment-icon {
    background: #e4f5ea;
    color: #137547;
}

.purchase-payment-mode--part .purchase-payment-icon {
    background: #fff3dc;
    color: #965900;
}

.purchase-payment-mode--credit .purchase-payment-icon {
    background: #fdecec;
    color: #b42318;
}

.purchase-payment .purchase-payment-copy {
    display: grid;
    flex: 1;
    gap: 3px;
    min-width: 0;
}

.purchase-payment .purchase-payment-copy strong {
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.3;
}

.purchase-payment .purchase-payment-copy small {
    color: #68758a;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

/* Round check on the right: empty ring, filled when chosen. */
.purchase-payment-radio {
    flex: none;
    width: 20px;
    height: 20px;
    border: 2px solid #c9d2df;
    border-radius: 50%;
    background: #ffffff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.purchase-payment .purchase-payment-mode.is-selected,
.purchase-payment .purchase-payment-mode:has(input:checked) {
    border-color: #c62828;
    background: #fff6f6;
    box-shadow: 0 6px 18px rgba(198, 40, 40, 0.10);
}

.purchase-payment-mode.is-selected .purchase-payment-radio,
.purchase-payment-mode:has(input:checked) .purchase-payment-radio {
    border-color: #c62828;
    box-shadow: inset 0 0 0 4px #ffffff;
    background: #c62828;
}

.purchase-payment-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.purchase-payment-fields label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
}

.purchase-payment-fields [hidden] {
    display: none;
}

.purchase-payment-note {
    margin: 12px 0 0;
    font-size: 12.5px;
}

td small.purchase-owed {
    color: #912018;
    font-weight: 700;
}

.supplier-pay summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.supplier-pay summary::-webkit-details-marker {
    display: none;
}

.supplier-pay-form {
    display: grid;
    gap: 10px;
    min-width: 240px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--inv-border);
    border-radius: 10px;
    background: var(--color-surface);
}

.supplier-pay-form label {
    display: grid;
    gap: 4px;
    font-size: 12.5px;
    font-weight: 700;
}

.supplier-pay-hint {
    margin: 0;
    font-size: 12px;
}

@media (max-width: 700px) {
    .purchase-payment-modes {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------------
   Wholesale (quantity) prices: product form, product list, sale lines
   ------------------------------------------------------------------ */
.price-tiers {
    margin: 22px 0 0;
    padding: 16px;
    border: 1px solid var(--inv-border);
    border-radius: 12px;
}

.price-tiers legend {
    padding: 0 6px;
    font-weight: 800;
}

.price-tiers > p {
    margin: 0 0 12px;
    font-size: 13px;
}

.price-tier-rows {
    display: grid;
    gap: 10px;
}

.price-tier-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 220px));
    gap: 14px;
}

.price-tier-row label {
    display: grid;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
}

small.price-tier-summary,
.line-total-cell small.line-wholesale {
    display: block;
    margin-top: 3px;
    color: var(--color-success);
    font-size: 11.5px;
    font-weight: 700;
}

@media (max-width: 560px) {
    .price-tier-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ------------------------------------------------------------------
   Partial returns on the receipt (migration 022)
   ------------------------------------------------------------------ */
td small.receipt-returned {
    color: #965900;
    font-weight: 700;
}

.receipt-returns {
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid #f3d9a4;
    border-radius: 10px;
    background: #fff8eb;
}

.receipt-returns h2 {
    margin: 0 0 8px;
    font-size: 15px;
}

.receipt-return {
    display: grid;
    gap: 2px;
    padding: 8px 0;
    border-top: 1px dashed #f0d08f;
    font-size: 13px;
}

.receipt-return:first-of-type {
    border-top: 0;
}

.receipt-return-lines {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.receipt-return-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid var(--inv-border);
    border-radius: 10px;
    background: var(--color-surface);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.receipt-return-line.is-active {
    border-color: #e9b65c;
    background: #fff8eb;
}

.receipt-return-name {
    display: grid;
    gap: 2px;
    min-width: 0;
    cursor: pointer;
}

.receipt-return-name strong {
    overflow-wrap: anywhere;
}

.receipt-return-name small {
    color: var(--inv-muted);
    font-size: 12px;
}

/* − [ 2 ] +  All */
.return-stepper {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
}

.return-stepper input[type="number"] {
    box-sizing: border-box;
    width: 72px;
    height: 40px;
    padding: 0 6px;
    border: 1px solid var(--inv-border);
    border-radius: 9px;
    background: var(--color-surface);
    color: var(--inv-ink);
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.return-stepper input[type="number"]::-webkit-inner-spin-button,
.return-stepper input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.return-stepper input[type="number"]:focus {
    border-color: #d18a12;
    outline: none;
    box-shadow: 0 0 0 3px rgba(209, 138, 18, 0.18);
}

.return-stepper-btn,
.return-stepper-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border: 1px solid var(--inv-border);
    border-radius: 9px;
    background: var(--inv-bg);
    color: var(--inv-ink);
    font: inherit;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.return-stepper-btn {
    width: 40px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.return-stepper-all {
    padding: 0 12px;
    font-size: 13px;
    font-weight: 700;
}

.return-stepper-btn:hover:not(:disabled),
.return-stepper-all:hover {
    border-color: #e9b65c;
    background: #fff3dc;
}

.return-stepper-btn:focus-visible,
.return-stepper-all:focus-visible {
    outline: 2px solid #d18a12;
    outline-offset: 1px;
}

.return-stepper-btn:disabled {
    cursor: default;
    opacity: 0.4;
}

/* The return form uses amber so it is not mistaken for "Cancel this sale". */
.receipt-return-form summary {
    color: #965900;
}

.receipt-return-form[open] {
    border-color: #f3d9a4;
}

.receipt-return-form[open] summary {
    border-bottom-color: #f3d9a4;
    background: #fff8eb;
}

@media (max-width: 520px) {
    .receipt-return-line {
        flex-direction: column;
        align-items: stretch;
    }

    .return-stepper {
        justify-content: space-between;
    }

    .return-stepper input[type="number"] {
        flex: 1 1 auto;
        width: auto;
    }
}

@media print {
    .receipt-return-form {
        display: none !important;
    }
}

/* ------------------------------------------------------------------
   Product import from Excel (import_products.php)
   ------------------------------------------------------------------ */
.import-steps ol {
    display: grid;
    gap: 18px;
    margin: 0 0 16px;
    padding-left: 22px;
}

.import-steps li {
    display: grid;
    gap: 6px;
    justify-items: start;
}

.import-steps li > span {
    color: var(--inv-muted);
    font-size: 13.5px;
}

.import-form {
    display: grid;
    gap: 12px;
    justify-items: start;
}

.import-form fieldset {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--inv-border);
    border-radius: 10px;
    font-size: 13.5px;
}

.import-form legend {
    padding: 0 4px;
    font-weight: 700;
}

/* File picker: the real input covers the whole box (click and drag-drop both
   work natively) and is invisible; the box shows the icon, name and button. */
.import-file {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 620px;
    padding: 16px 18px;
    border: 2px dashed #d5dbe5;
    border-radius: 14px;
    background: #fafbfd;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.import-file:hover,
.import-file.is-dragging {
    border-color: #d77a7a;
    background: #fff7f7;
}

.import-file:focus-within {
    border-color: #c62828;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}

.import-file.has-file {
    border-style: solid;
    border-color: #8fd1aa;
    background: #f1faf4;
}

.import-file-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff0f0;
    color: #c62828;
    font-size: 22px;
}

.import-file.has-file .import-file-icon {
    background: #ddf3e5;
    color: #137547;
}

.import-file-text {
    display: grid;
    flex: 1;
    gap: 3px;
    min-width: 0;
}

.import-file-text strong {
    overflow: hidden;
    color: #172033;
    font-size: 14.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.import-file-text small {
    color: #68758a;
    font-size: 12.5px;
    line-height: 1.4;
}

.import-file-button {
    flex: none;
    pointer-events: none;
}

.inventory-page .import-file .import-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
}

@media (max-width: 560px) {
    .import-file {
        flex-wrap: wrap;
    }

    .import-file-text {
        flex-basis: calc(100% - 62px);
    }

    .import-file-button {
        width: 100%;
    }
}

/* ------------------------------------------------------------------
   Overview: "Waiting for you" (includes/approvals.php)
   ------------------------------------------------------------------ */
.approvals-card {
    position: relative;
    overflow: hidden;
    margin: 0 0 24px;
    padding: 20px 22px 18px;
    border: 1px solid #f3d6d6;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff8f6 0%, #ffffff 55%);
    box-shadow: 0 10px 30px rgba(23, 32, 51, 0.06);
}

/* Red accent strip on the left edge. */
.approvals-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #c62828, #e2735f);
}

.approvals-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.approvals-bell {
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #c62828;
    color: #ffffff;
    font-size: 23px;
    box-shadow: 0 8px 20px rgba(198, 40, 40, 0.28);
}

.approvals-bell i {
    animation: approvals-ring 2.6s ease-in-out infinite;
    transform-origin: 50% 10%;
}

.approvals-bell-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #172033;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
}

@keyframes approvals-ring {
    0%, 70%, 100% { transform: rotate(0); }
    75% { transform: rotate(14deg); }
    80% { transform: rotate(-12deg); }
    85% { transform: rotate(8deg); }
    90% { transform: rotate(-5deg); }
}

@media (prefers-reduced-motion: reduce) {
    .approvals-bell i {
        animation: none;
    }
}

.approvals-head-text {
    min-width: 0;
}

.approvals-head-text .eyebrow {
    margin: 0 0 2px;
    color: #c62828;
}

.approvals-head-text h2 {
    margin: 0 0 3px;
    color: #172033;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.approvals-head-text .muted {
    margin: 0;
    font-size: 13px;
}

.approvals-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.approvals-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 14px;
    border: 1px solid #e8ecf2;
    border-radius: 14px;
    background: #ffffff;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.approvals-item:hover {
    border-color: #d5dbe5;
    box-shadow: 0 6px 16px rgba(23, 32, 51, 0.07);
    transform: translateY(-1px);
}

.approvals-item-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 18px;
}

.approvals-item--danger .approvals-item-icon {
    background: #fdecec;
    color: #b42318;
}

.approvals-item--warning .approvals-item-icon {
    background: #fff3dc;
    color: #965900;
}

.approvals-item--info .approvals-item-icon {
    background: #e8f0ff;
    color: #2457c5;
}

.approvals-item--danger {
    border-left: 4px solid #e05a4f;
}

.approvals-item--warning {
    border-left: 4px solid #e9a23b;
}

.approvals-item--info {
    border-left: 4px solid #5b8def;
}

.approvals-item-text {
    display: grid;
    flex: 1;
    gap: 3px;
    min-width: 0;
}

.approvals-item-text strong {
    color: #172033;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.approvals-item-text small {
    color: #68758a;
    font-size: 12.5px;
    line-height: 1.4;
}

.approvals-item-action {
    flex: none;
}

.approvals-item-action i {
    transition: transform .15s ease;
}

.approvals-item:hover .approvals-item-action i {
    transform: translateX(3px);
}

/* Nothing waiting: a calm green line instead of the card. */
.approvals-clear {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
    padding: 12px 16px;
    border: 1px solid #cfe9d9;
    border-radius: 14px;
    background: #f2faf5;
    color: #24553a;
    font-size: 13.5px;
}

.approvals-clear-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #dcf2e4;
    color: #137547;
    font-size: 16px;
}

@media (max-width: 640px) {
    .approvals-card {
        padding: 16px 14px 14px 18px;
    }

    .approvals-item {
        flex-wrap: wrap;
    }

    .approvals-item-text {
        flex-basis: calc(100% - 56px);
    }

    .approvals-item-action {
        width: 100%;
    }
}

.import-errors ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.import-errors li {
    margin: 2px 0;
}

/* ------------------------------------------------------------------
   Platform administration: layout and look of the sidebar pages
   ------------------------------------------------------------------ */
.platform-page {
    --platform-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 26px rgba(16, 24, 40, 0.05);
}

.platform-page .inv-heading {
    margin-bottom: 18px;
}

.platform-page .inv-heading h1 {
    font-size: clamp(1.7rem, 3vw, 2.15rem);
}

.platform-nowrap {
    white-space: nowrap;
}

/* Sidebar */
.platform-page .inv-brand {
    align-items: center;
    gap: 10px;
}

.platform-page .inv-brand .platform-brand-name {
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.platform-page .inv-brand .platform-brand-tag {
    padding: 2px 7px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

/* Welcome banner */
.platform-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 28px;
    margin-bottom: 18px;
    padding: 24px 26px;
    border-radius: 16px;
    background: linear-gradient(115deg, #172033 0%, #1f2a44 58%, #5a1d24 100%);
    box-shadow: var(--platform-shadow);
    color: #fff;
}

.platform-hero h1 {
    margin: 0 0 4px;
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    letter-spacing: -0.5px;
}

.platform-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.platform-hero .platform-hero-date {
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.platform-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.platform-hero-actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.platform-hero-actions a:hover,
.platform-hero-actions a:focus-visible {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.17);
}

/* Notices */
.platform-page .platform-callout {
    margin-bottom: 12px;
    padding: 11px 16px;
    border-radius: 12px;
}

.platform-page .platform-callout-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
}

.platform-page .platform-callout-action {
    flex: 0 0 auto;
    margin-left: auto;
    white-space: nowrap;
}

/* Summary cards */
.platform-page .platform-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.platform-page .platform-stat {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "label icon"
        "value icon"
        "note note";
    align-content: start;
    column-gap: 10px;
    min-height: 118px;
    padding: 16px 16px 14px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-surface);
    box-shadow: var(--platform-shadow);
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.platform-page .platform-stat::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--color-border);
    content: "";
}

.platform-page .platform-stat-green::before { background: #12a150; }
.platform-page .platform-stat-red::before { background: var(--color-brand); }
.platform-page .platform-stat-amber::before { background: #e8a317; }
.platform-page .platform-stat-blue::before { background: #2f6fed; }

.platform-page a.platform-stat:hover,
.platform-page a.platform-stat:focus-visible {
    transform: translateY(-2px);
    border-color: var(--color-brand);
}

.platform-page .platform-stat-icon {
    grid-area: icon;
    align-self: start;
    width: 38px;
    height: 38px;
    margin: 0;
    border-radius: 11px;
}

.platform-page .platform-stat-label {
    grid-area: label;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.platform-page .platform-stat strong {
    grid-area: value;
    margin: 6px 0 0;
    color: var(--color-ink);
    font-size: 1.85rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.platform-page .platform-stat strong.platform-stat-text {
    font-size: 1.25rem;
    line-height: 1.5;
}

.platform-page .platform-stat .platform-stat-note {
    grid-area: note;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.4;
}

/* Panels and tables */
.platform-page .user-panel.platform-section {
    margin-bottom: 18px;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-surface);
    box-shadow: var(--platform-shadow);
}

.platform-page .platform-section-head {
    margin-bottom: 14px;
}

.platform-page .platform-section-head h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--color-ink);
    font-size: 1.05rem;
    letter-spacing: -0.1px;
}

.platform-page .platform-section-head h2 > i {
    color: var(--color-brand);
    font-size: 15px;
}

.platform-page .platform-grid {
    align-items: start;
    gap: 18px;
}

.platform-page .platform-table th {
    padding: 10px 14px;
    font-size: 11px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.platform-page .platform-table td {
    padding: 14px;
    vertical-align: top;
    font-size: 13px;
}

.platform-page .platform-table tbody tr {
    transition: background-color 120ms ease;
}

.platform-page .platform-table tbody tr:hover {
    background: rgba(127, 137, 153, 0.07);
}

.platform-page .platform-table strong {
    color: var(--color-ink);
}

.platform-page .platform-cell-business {
    min-width: 200px;
    align-items: flex-start;
}

.platform-page .platform-cell-business > span:last-child {
    min-width: 0;
}

.platform-page .platform-list-avatar {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.platform-url {
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 230px;
}

.platform-url span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.platform-url i {
    flex: 0 0 auto;
    font-size: 10px;
}

.platform-page .platform-sms-cell {
    min-width: 170px;
}

.status-pill.platform-pill-late {
    background: rgba(198, 40, 40, 0.12);
    color: var(--color-danger);
}

/* Search bar above a table */
.platform-page .platform-toolbar {
    align-items: center;
    margin-bottom: 14px;
}

.platform-page .platform-filter {
    flex-wrap: nowrap;
    align-items: center;
}

.platform-page .platform-search {
    flex: 1 1 280px;
    min-width: 220px;
}

.platform-page .platform-filter .btn {
    flex: 0 0 auto;
}

/* Compact row actions: a panel opens only when it is needed */
.platform-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 230px;
    max-width: 330px;
}

.platform-actions > form {
    margin: 0;
}

.platform-action[open] {
    flex: 1 0 100%;
}

.platform-action > summary {
    list-style: none;
}

.platform-action > summary::-webkit-details-marker {
    display: none;
}

.platform-action-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-ink);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

.platform-action-btn:hover,
.platform-action-btn:focus-visible,
.platform-action[open] > .platform-action-btn {
    border-color: var(--color-brand);
    color: var(--color-brand);
}

.platform-action-btn.is-danger {
    color: var(--color-danger);
}

.platform-action-btn.is-primary {
    border-color: var(--color-brand);
    background: var(--color-brand);
    color: #fff;
}

.platform-action-btn.is-primary:hover,
.platform-action-btn.is-primary:focus-visible,
.platform-action[open] > .platform-action-btn.is-primary {
    background: var(--color-brand-hover, var(--color-brand));
    color: #fff;
}

.platform-action-panel,
.platform-page .platform-action-panel.platform-sms-form {
    display: grid;
    gap: 10px;
    max-width: none;
    margin: 8px 0 2px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-page);
}

.platform-action-panel input[type="text"] {
    box-sizing: border-box;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-ink);
}

.platform-action-panel .btn {
    justify-self: start;
}

/* Tables keep text on one line (table { white-space: nowrap }); forms, notes
   and long Swahili labels inside platform tables must wrap instead of
   running out of their box. */
.platform-page td .platform-sub,
.platform-page .platform-sms-cell,
.platform-action-panel,
.platform-action-panel label,
.platform-action-panel small {
    white-space: normal;
    overflow-wrap: break-word;
}

.platform-action-panel {
    min-width: 0;
    max-width: 100%;
}

/* Overview: from visitor to customer (four steps, three periods). */
.platform-funnel > .platform-sub {
    margin: -6px 0 12px;
}

.platform-funnel-wrap {
    overflow-x: auto;
}

.platform-funnel-table {
    width: 100%;
    border-collapse: collapse;
    white-space: normal;
    font-variant-numeric: tabular-nums;
}

.platform-funnel-table th,
.platform-funnel-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
    text-align: right;
}

.platform-funnel-table thead th {
    color: var(--inv-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.platform-funnel-table th:first-child {
    text-align: left;
}

.platform-funnel-table tbody th {
    color: var(--color-ink);
    font-size: 14px;
    font-weight: 650;
}

.platform-funnel-table tbody th i {
    width: 18px;
    margin-right: 6px;
    color: var(--color-brand);
    text-align: center;
}

.platform-funnel-table td {
    color: var(--color-ink);
    font-size: 16px;
    font-weight: 800;
}

.platform-funnel-table tbody tr:last-child th,
.platform-funnel-table tbody tr:last-child td {
    border-bottom: 0;
}

.platform-funnel-table tbody tr:last-child td {
    color: var(--color-success, #15803d);
}

@media (max-width: 480px) {
    .platform-funnel-table th,
    .platform-funnel-table td {
        padding: 9px 6px;
    }

    .platform-funnel-table tbody th {
        font-size: 13px;
    }

    .platform-funnel-table tbody th i {
        display: none;
    }

    .platform-funnel-table td {
        font-size: 15px;
    }
}

/* A long label beside a tick box: the box keeps its size and sits on the first line. */
.platform-check {
    align-items: flex-start;
    line-height: 1.4;
}

.platform-check input {
    flex: 0 0 18px;
    margin: 1px 0 0;
}

.platform-check span {
    min-width: 0;
}

.platform-sms-limit input {
    max-width: 100%;
}

@media (max-width: 640px) {
    .platform-actions {
        min-width: 0;
        max-width: none;
    }

    /* All / Active / Suspended: a tab that does not fit moves to a second line. */
    .platform-tabs {
        display: flex;
        flex-wrap: wrap;
        box-sizing: border-box;
    }

    .platform-tab {
        padding: 0 10px;
        font-size: 12.5px;
    }
}

/* Sign-ups waiting for approval */
.platform-page .platform-cards {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 14px;
}

.platform-page .platform-card {
    border-radius: 14px;
}

.platform-page .platform-card-actions .platform-inline-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 8px;
}

.platform-page .platform-card-actions .platform-inline-form input[type="text"] {
    width: 100%;
    min-width: 0;
}

.platform-page .platform-card-actions .btn {
    width: 100%;
    justify-content: center;
}

/* My account: two panels side by side */
.platform-page .platform-account {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.platform-page .platform-account > :not(.platform-account-panel) {
    grid-column: 1 / -1;
}

.platform-page .platform-account .platform-account-panel.login-card {
    max-width: none;
    margin: 0;
    box-shadow: var(--platform-shadow);
}

.platform-page .platform-two-step-head .section-heading {
    font-size: 1.15rem;
    letter-spacing: -0.1px;
}

@media (max-width: 1180px) {
    .platform-page .platform-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .platform-page .platform-account {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .platform-hero {
        padding: 20px 18px;
    }

    .platform-hero-actions,
    .platform-hero-actions a {
        width: 100%;
    }

    .platform-hero-actions a {
        box-sizing: border-box;
        justify-content: center;
    }

    .platform-page .platform-callout {
        flex-wrap: wrap;
    }

    .platform-page .platform-callout > span:nth-child(2) {
        flex: 1 1 calc(100% - 60px);
        min-width: 0;
    }

    .platform-page .platform-callout-action {
        margin-left: 48px;
    }

    .platform-page .user-panel.platform-section {
        padding: 14px;
    }

    .platform-page .platform-filter {
        flex-wrap: wrap;
        width: 100%;
    }

    .platform-page .platform-search {
        flex-basis: 100%;
        min-width: 0;
    }

    .platform-page .platform-filter .btn {
        flex: 1 1 auto;
    }

    /* The list of new businesses fits the phone: status goes under the name. */
    .platform-page .platform-list li {
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 6px 12px;
    }

    .platform-page .platform-list-meta {
        grid-column: 2;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        text-align: left;
    }

    .platform-actions {
        min-width: 0;
        max-width: none;
        width: 100%;
    }

    .platform-page .platform-cell-business {
        min-width: 0;
    }

    .platform-url {
        max-width: 100%;
    }

    .platform-page .platform-sms-cell {
        min-width: 0;
    }
}

@media (max-width: 460px) {
    .platform-page .platform-stats {
        gap: 10px;
    }

    .platform-page .platform-stat {
        min-height: 104px;
        padding: 13px 12px 12px;
    }

    .platform-page .platform-stat-icon {
        width: 30px;
        height: 30px;
        border-radius: 9px;
        font-size: 13px;
    }

    .platform-page .platform-stat strong {
        font-size: 1.5rem;
    }

    .platform-page .platform-stat strong.platform-stat-text {
        font-size: 1rem;
    }
}

/* Platform: details that depend on the rules above */
.platform-page .platform-account .platform-account-panel.login-card {
    align-self: start;
}

.platform-page .platform-two-step {
    margin-top: 0;
}

@media (max-width: 960px) {
    .platform-page .platform-table td[data-label]::before {
        display: block;
        margin-bottom: 6px;
    }

    .platform-page .platform-list li .platform-list-meta {
        display: flex;
        width: 100%;
    }
}

/* Businesses table: keep every column inside the panel */
.platform-page .platform-businesses-table th,
.platform-page .platform-businesses-table td {
    padding-right: 10px;
    padding-left: 10px;
}

.platform-page .platform-businesses-table .platform-cell-business {
    min-width: 170px;
}

.platform-page .platform-businesses-table .platform-url {
    max-width: 175px;
}

.platform-page .platform-businesses-table .platform-sms-cell {
    min-width: 130px;
}

.platform-page .platform-businesses-table .platform-actions {
    min-width: 180px;
    max-width: 250px;
}

@media (min-width: 961px) and (max-width: 1500px) {
    .platform-page .platform-businesses-table th:nth-child(5),
    .platform-page .platform-businesses-table td:nth-child(5) {
        display: none;
    }
}

/* SMS details stay one click away under "SMS settings". */
@media (min-width: 961px) and (max-width: 1240px) {
    .platform-page .platform-businesses-table th:nth-child(4),
    .platform-page .platform-businesses-table td:nth-child(4) {
        display: none;
    }
}

/* Row actions line up, and an open panel stays inside its column */
.platform-actions {
    align-items: flex-start;
}

.platform-action {
    min-width: 0;
    max-width: 100%;
    margin: 0;
}

.platform-action > summary.platform-action-btn {
    display: inline-flex;
    width: fit-content;
    margin: 0;
}

.platform-action-panel,
.platform-page .platform-action-panel.platform-sms-form {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

/* Platform tables on phones and tablets: each heading sits above its value */
@media screen and (max-width: 960px) {
    .platform-page .platform-table.stack-table td {
        min-height: 0;
        padding: 8px 0;
    }

    .platform-page .platform-table.stack-table td::before {
        position: static;
        display: block;
        width: auto;
        margin-bottom: 5px;
    }

    .platform-page .platform-table.stack-table td:first-child::before {
        content: none;
    }
}
