@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #eef3f0;
    --bg-strong: #102a2a;
    --panel: rgba(255, 255, 255, 0.88);
    --panel-strong: #ffffff;
    --line: rgba(15, 23, 42, 0.08);
    --text: #162224;
    --muted: #617076;
    --brand: #0f766e;
    --brand-dark: #0a5852;
    --brand-soft: rgba(15, 118, 110, 0.12);
    --danger-soft: rgba(220, 38, 38, 0.12);
    --shadow: 0 24px 60px rgba(23, 43, 40, 0.12);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.16), transparent 28%),
        radial-gradient(circle at right center, rgba(245, 158, 11, 0.14), transparent 24%),
        linear-gradient(180deg, #f4f7f5 0%, #e9efed 100%);
}

.auth-shell,
.app-shell {
    min-height: 100vh;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.btn-brand {
    background: linear-gradient(135deg, var(--brand) 0%, #14b8a6 100%);
    border: 0;
    color: #fff;
    box-shadow: 0 18px 36px rgba(15, 118, 110, 0.22);
}

.btn-brand:hover,
.btn-brand:focus {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #0d9488 100%);
    color: #fff;
}

.btn-danger-soft {
    background: var(--danger-soft);
    color: #b91c1c;
    border: 0;
}

.btn-danger-soft:hover {
    background: rgba(220, 38, 38, 0.18);
    color: #991b1b;
}

.form-control {
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.95rem 1rem;
}

.form-control:focus {
    border-color: rgba(15, 118, 110, 0.35);
    box-shadow: 0 0 0 0.25rem rgba(15, 118, 110, 0.12);
}

.auth-page {
    position: relative;
    overflow: hidden;
}

.auth-page__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.16), transparent 18%),
        radial-gradient(circle at 80% 30%, rgba(245, 158, 11, 0.14), transparent 18%),
        radial-gradient(circle at 70% 80%, rgba(59, 130, 246, 0.12), transparent 18%);
    pointer-events: none;
}

.auth-copy {
    position: relative;
    z-index: 1;
}

.auth-copy__eyebrow {
    display: inline-flex;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--brand);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
}

.auth-copy__title {
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 1rem;
}

.auth-copy__text {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 42rem;
}

.auth-copy__feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.feature-card i {
    font-size: 1.25rem;
    color: var(--brand);
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 800;
    margin: 1rem 0 0.5rem;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--muted);
    margin: 0;
}

.auth-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.demo-box {
    border-radius: 18px;
    padding: 1rem 1.15rem;
    background: rgba(15, 118, 110, 0.06);
    border: 1px dashed rgba(15, 118, 110, 0.18);
}

.btn-spinner {
    margin-left: 0.5rem;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar-panel {
    width: 300px;
    flex: 0 0 300px;
    padding: 1.5rem;
    background: linear-gradient(180deg, #112a2b 0%, #081516 100%);
    color: #fff;
}

.sidebar-mobile {
    background: #0e1f21;
    color: #fff;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    gap: 1.5rem;
    padding: 1.5rem;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-brand__badge {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, #14b8a6 0%, #f59e0b 100%);
    color: #fff;
    font-size: 1.25rem;
}

.sidebar-brand__title {
    font-size: 1rem;
    font-weight: 800;
}

.sidebar-brand__meta {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.85rem;
}

.sidebar-company {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 20px;
    padding: 1rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: all 0.18s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(2px);
}

.sidebar-link__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
    color: rgba(255, 255, 255, 0.75);
}

.main-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 1.8rem 0;
}

.page-title {
    margin: 0;
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 800;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    padding: 0.45rem 0.55rem 0.45rem 0.45rem;
    box-shadow: 0 12px 28px rgba(23, 43, 40, 0.08);
}

.user-chip__avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: #fff;
    font-weight: 800;
}

.user-chip__name {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.1;
}

.user-chip__role {
    font-size: 0.75rem;
    color: var(--muted);
}

.content-panel {
    padding: 1.8rem;
}

.hero-card,
.panel-card,
.module-hero,
.mini-stat,
.payment-card,
.empty-screen__box {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero-card,
.panel-card,
.module-hero {
    border-radius: var(--radius-xl);
}

.hero-card {
    padding: 1.8rem;
}

.hero-card__title {
    font-weight: 800;
    font-size: clamp(1.6rem, 2.4vw, 2.6rem);
    margin-bottom: 0.85rem;
}

.hero-card__text {
    color: var(--muted);
    margin-bottom: 0;
    max-width: 48rem;
}

.hero-card__metric {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.12) 0%, rgba(20, 184, 166, 0.05) 100%);
    border-radius: 24px;
    padding: 1.4rem;
}

.hero-card__metric-label {
    display: block;
    color: var(--muted);
    margin-bottom: 0.65rem;
}

.hero-card__metric strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
}

.hero-card__metric small {
    display: block;
    margin-top: 0.65rem;
    color: var(--muted);
}

.stat-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    padding: 1.45rem;
    border-radius: 24px;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow);
}

.stat-card__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.85);
}

.stat-card__label {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 0.5rem;
}

.stat-card__value {
    font-weight: 800;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.55rem;
}

.stat-card__meta {
    color: var(--muted);
    font-size: 0.85rem;
}

.accent-emerald {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.16) 0%, rgba(255, 255, 255, 0.92) 68%);
}

.accent-amber {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.18) 0%, rgba(255, 255, 255, 0.92) 68%);
}

.accent-sky {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.16) 0%, rgba(255, 255, 255, 0.92) 68%);
}

.accent-rose {
    background: linear-gradient(180deg, rgba(244, 63, 94, 0.16) 0%, rgba(255, 255, 255, 0.92) 68%);
}

.accent-slate {
    background: linear-gradient(180deg, rgba(100, 116, 139, 0.16) 0%, rgba(255, 255, 255, 0.92) 68%);
}

.accent-violet {
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.14) 0%, rgba(255, 255, 255, 0.92) 68%);
}

.accent-teal {
    background: linear-gradient(180deg, rgba(13, 148, 136, 0.16) 0%, rgba(255, 255, 255, 0.92) 68%);
}

.accent-orange {
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.16) 0%, rgba(255, 255, 255, 0.92) 68%);
}

.panel-card {
    padding: 1.5rem;
}

.panel-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.panel-card__title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
}

.panel-card__subtitle {
    color: var(--muted);
    margin: 0.25rem 0 0;
}

.app-table thead th {
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
    padding-bottom: 0.9rem;
}

.app-table tbody td {
    border-color: var(--line);
    padding: 1rem 0.5rem;
}

.order-stack {
    display: grid;
    gap: 1rem;
}

.order-item {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.order-item__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.14);
    color: #a16207;
    font-size: 0.78rem;
    font-weight: 700;
}

.payment-card,
.mini-stat {
    border-radius: 22px;
    padding: 1.25rem;
}

.payment-card__label,
.mini-stat__label {
    color: var(--muted);
    font-size: 0.86rem;
    margin-bottom: 0.5rem;
}

.payment-card__value,
.mini-stat__value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.payment-card__meta {
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.module-hero {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.6rem;
    margin-bottom: 1.5rem;
}

.module-hero__icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    font-size: 1.8rem;
}

.module-hero__title {
    margin: 0 0 0.35rem;
    font-size: 1.8rem;
    font-weight: 800;
}

.module-hero__subtitle {
    margin: 0;
    color: var(--muted);
}

.empty-state {
    display: grid;
    place-items: center;
    min-height: 180px;
    border: 1px dashed rgba(15, 23, 42, 0.1);
    border-radius: 20px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.45);
}

.empty-screen {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.empty-screen__box {
    max-width: 560px;
    width: 100%;
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-xl);
}

.alert {
    border-radius: 18px;
}

code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    background: rgba(15, 118, 110, 0.08);
    color: var(--brand-dark);
    padding: 0.15rem 0.35rem;
    border-radius: 8px;
}

@media (max-width: 991.98px) {
    .auth-copy__feature-grid {
        grid-template-columns: 1fr;
    }

    .content-panel,
    .topbar {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .topbar {
        flex-wrap: wrap;
    }
}

@media (max-width: 767.98px) {
    .auth-card {
        padding: 1.5rem;
    }

    .user-chip {
        width: 100%;
        justify-content: center;
    }

    .topbar {
        align-items: stretch;
    }

    .module-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}

.pos-shell {
    display: grid;
    gap: 1.5rem;
}

.pos-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
    align-items: stretch;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.14) 0%, rgba(255, 255, 255, 0.9) 60%, rgba(245, 158, 11, 0.14) 100%);
    border-radius: var(--radius-xl);
    padding: 1.6rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.78);
}

.pos-hero__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.55rem, 2.5vw, 2.4rem);
    font-weight: 800;
}

.pos-hero__subtitle {
    margin: 0;
    max-width: 48rem;
    color: var(--muted);
}

.pos-hero__ticket {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 24px;
    padding: 1.2rem 1.3rem;
    background: rgba(255, 255, 255, 0.82);
}

.pos-hero__ticket span,
.pos-hero__ticket small {
    color: var(--muted);
}

.pos-hero__ticket strong {
    font-size: 1.9rem;
    line-height: 1.1;
    margin: 0.3rem 0 0.45rem;
}

.pos-panel,
.pos-cart-panel {
    border-radius: var(--radius-xl);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.07);
}

.product-card__code {
    display: inline-flex;
    width: fit-content;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--brand-dark);
    font-size: 0.75rem;
    font-weight: 800;
}

.product-card h4 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
}

.product-card__meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.82rem;
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.selected-customer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 58px;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: rgba(15, 118, 110, 0.07);
    border: 1px dashed rgba(15, 118, 110, 0.22);
}

.selected-customer strong {
    font-weight: 800;
}

.selected-customer small {
    color: var(--muted);
}

.autocomplete-list {
    position: relative;
    z-index: 8;
    display: grid;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.autocomplete-item {
    text-align: left;
    border: 1px solid rgba(15, 23, 42, 0.07);
    background: rgba(255, 255, 255, 0.88);
    border-radius: 16px;
    padding: 0.75rem 0.9rem;
}

.autocomplete-item strong,
.autocomplete-item small {
    display: block;
}

.autocomplete-item small {
    color: var(--muted);
}

.cart-lines {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}

.cart-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.cart-line__main strong,
.cart-line__main small {
    display: block;
}

.cart-line__main small {
    color: var(--muted);
}

.cart-line__actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.cart-line__actions .form-control {
    width: 102px;
    min-width: 102px;
}

.cart-line__subtotal {
    min-width: 96px;
    text-align: right;
    font-weight: 800;
}

.summary-box {
    display: grid;
    gap: 0.7rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.04);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.summary-line--total {
    font-size: 1.15rem;
    font-weight: 800;
}

.history-stack {
    display: grid;
    gap: 0.85rem;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.history-item__main strong,
.history-item__main small {
    display: block;
}

.history-item__main small {
    color: var(--muted);
}

.history-item__side {
    display: grid;
    gap: 0.5rem;
    justify-items: end;
}

.history-item__actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: end;
}

@media (max-width: 1199.98px) {
    .pos-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .cart-line,
    .history-item {
        grid-template-columns: 1fr;
    }

    .cart-line__actions,
    .history-item__side,
    .history-item__actions {
        width: 100%;
        justify-content: space-between;
        justify-items: stretch;
    }

    .cart-line__actions .form-control,
    .history-item__actions .btn {
        width: 100%;
    }
}

.order-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 1.5rem;
    align-items: start;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(255, 255, 255, 0.92) 55%, rgba(15, 118, 110, 0.12) 100%);
    border-radius: var(--radius-xl);
    padding: 1.6rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.78);
}

.order-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.order-card {
    display: grid;
    gap: 0.95rem;
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.order-card__header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.order-card__header strong,
.order-card__header small {
    display: block;
}

.order-card__header small {
    color: var(--muted);
}

.order-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.order-card__actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.order-card__actions .form-select {
    max-width: 180px;
}

.products-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 1.5rem;
    align-items: start;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(255, 255, 255, 0.92) 52%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: var(--radius-xl);
    padding: 1.6rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.78);
}

.table-code {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    font-weight: 700;
}

.document-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
}

.type-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.type-pill--venta {
    background: rgba(15, 118, 110, 0.12);
    color: #0f766e;
}

.type-pill--confeccion {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.type-pill--cotizacion {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

.type-pill--pedido {
    background: rgba(99, 102, 241, 0.14);
    color: #4338ca;
}

.status-pill--activo {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.status-pill--inactivo {
    background: rgba(148, 163, 184, 0.18);
    color: #475569;
}

.customers-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 1.5rem;
    align-items: start;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(255, 255, 255, 0.92) 55%, rgba(249, 115, 22, 0.1) 100%);
    border-radius: var(--radius-xl);
    padding: 1.6rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.78);
}

.history-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 1.5rem;
    align-items: start;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(255, 255, 255, 0.92) 55%, rgba(15, 118, 110, 0.1) 100%);
    border-radius: var(--radius-xl);
    padding: 1.6rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.78);
}

.reports-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 1.5rem;
    align-items: start;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(255, 255, 255, 0.92) 55%, rgba(14, 165, 233, 0.1) 100%);
    border-radius: var(--radius-xl);
    padding: 1.6rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.78);
}

.settings-shell {
    display: grid;
    gap: 1.5rem;
}

.settings-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 1.5rem;
    align-items: start;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.14) 0%, rgba(255, 255, 255, 0.92) 56%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: var(--radius-xl);
    padding: 1.6rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.78);
}

.logo-preview {
    min-height: 190px;
    display: grid;
    place-items: center;
    padding: 1rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(226, 232, 240, 0.7) 100%);
    border: 1px dashed rgba(15, 118, 110, 0.2);
}

.logo-preview__image {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
}

.pos-lite-shell {
    display: grid;
    gap: 1.5rem;
}

.pos-lite-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.25rem;
    align-items: start;
    padding: 1.55rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.14) 0%, rgba(255, 255, 255, 0.94) 55%, rgba(245, 158, 11, 0.12) 100%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
}

.pos-lite-nextdoc {
    display: grid;
    gap: 0.45rem;
    padding: 1.1rem 1.2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
}

.pos-lite-nextdoc span {
    color: var(--muted);
}

.pos-lite-nextdoc strong {
    font-size: 1.5rem;
    line-height: 1.1;
}

.pos-lite-customer {
    display: grid;
    gap: 1rem;
}

.pos-lite-customer-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.8rem;
    align-items: center;
}

.pos-lite-customer-card {
    display: grid;
    gap: 0.15rem;
    min-height: 72px;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(15, 118, 110, 0.06);
    border: 1px dashed rgba(15, 118, 110, 0.22);
}

.pos-lite-customer-card strong {
    font-size: 1rem;
    font-weight: 800;
}

.pos-lite-customer-card small {
    color: var(--muted);
}

.pos-lite-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 430px;
    gap: 1.5rem;
    align-items: start;
}

.pos-lite-products,
.pos-lite-checkout {
    height: 100%;
}

.pos-lite-searchbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.pos-lite-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.pos-lite-product-card {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.pos-lite-product-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.pos-lite-product-card__code {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--brand-dark);
    font-size: 0.75rem;
    font-weight: 800;
}

.pos-lite-product-card h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.pos-lite-product-card__meta {
    color: var(--muted);
    font-size: 0.84rem;
}

.pos-lite-cart-lines {
    max-height: 380px;
    overflow: auto;
    padding-right: 0.15rem;
}

.pos-lite-summary {
    display: grid;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.03) 0%, rgba(15, 118, 110, 0.05) 100%);
}

.pos-lite-discount {
    display: grid;
    gap: 0.4rem;
}

.pos-lite-total {
    display: grid;
    gap: 0.25rem;
    padding-top: 0.35rem;
    border-top: 1px dashed rgba(15, 23, 42, 0.12);
}

.pos-lite-total span {
    color: var(--muted);
    font-weight: 700;
}

.pos-lite-total strong {
    font-size: clamp(2rem, 3vw, 2.75rem);
    line-height: 1;
    font-weight: 800;
}

.pos-lite-chargebox {
    display: grid;
    gap: 1rem;
    padding-top: 1rem;
}

.pos-lite-cash {
    display: grid;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px dashed rgba(245, 158, 11, 0.24);
}

.pos-lite-change {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pos-lite-change span {
    color: var(--muted);
    font-weight: 700;
}

.pos-lite-change strong {
    font-size: 1.5rem;
    font-weight: 800;
}

@media (max-width: 1199.98px) {
    .order-hero {
        grid-template-columns: 1fr;
    }

    .products-hero {
        grid-template-columns: 1fr;
    }

    .customers-hero {
        grid-template-columns: 1fr;
    }

    .history-hero {
        grid-template-columns: 1fr;
    }

    .reports-hero {
        grid-template-columns: 1fr;
    }

    .settings-hero {
        grid-template-columns: 1fr;
    }

    .pos-lite-topbar,
    .pos-lite-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .pos-lite-customer-row,
    .pos-lite-searchbar,
    .pos-lite-product-grid {
        grid-template-columns: 1fr;
    }

    .order-card__actions .form-select,
    .order-card__actions .btn {
        width: 100%;
        max-width: none;
    }
}

.trade-shell {
    display: grid;
    gap: 1.5rem;
}

.trade-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 1.5rem;
    align-items: start;
    padding: 1.7rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.82);
}

.trade-hero--sales {
    background:
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.18), transparent 32%),
        linear-gradient(135deg, rgba(15, 118, 110, 0.14) 0%, rgba(255, 255, 255, 0.94) 52%, rgba(245, 158, 11, 0.12) 100%);
}

.trade-hero--orders {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 32%),
        linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(255, 255, 255, 0.95) 54%, rgba(15, 118, 110, 0.1) 100%);
}

.trade-hero__copy {
    max-width: 52rem;
}

.trade-hero__title {
    margin: 0 0 0.8rem;
    font-size: clamp(1.7rem, 2.8vw, 2.7rem);
    font-weight: 800;
    line-height: 1.04;
}

.trade-hero__subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.trade-hero__rail {
    display: grid;
    gap: 1rem;
}

.trade-metric-card,
.trade-mini-stat {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.trade-metric-card {
    display: grid;
    gap: 0.45rem;
    padding: 1.2rem 1.25rem;
    border-radius: 24px;
}

.trade-metric-card span,
.trade-metric-card small,
.trade-mini-stat span {
    color: var(--muted);
}

.trade-metric-card strong {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.1;
}

.trade-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.trade-mini-grid--wide {
    gap: 1rem;
}

.trade-mini-stat {
    display: grid;
    gap: 0.45rem;
    padding: 1rem 1.05rem;
    border-radius: 22px;
}

.trade-mini-stat strong {
    font-size: 1.25rem;
    line-height: 1.1;
}

.trade-panel-header {
    align-items: start;
}

.trade-panel-header--tight {
    margin-bottom: 0.15rem;
}

.trade-panel-header__actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.trade-soft-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.08);
    color: var(--brand-dark);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.trade-flow-panel,
.trade-customer-panel,
.trade-products-panel,
.trade-cart-panel,
.trade-history-panel {
    overflow: hidden;
}

.trade-flow-panel,
.trade-products-panel,
.trade-cart-panel {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.trade-flow-panel {
    gap: 1.35rem;
}

.trade-flow-block {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.trade-flow-divider {
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.08) 0%, rgba(148, 163, 184, 0.28) 50%, rgba(245, 158, 11, 0.1) 100%);
}

.trade-customer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    gap: 1rem;
    align-items: start;
}

.trade-customer-search {
    display: grid;
    gap: 1rem;
}

.trade-inline-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.8rem;
    align-items: center;
}

.trade-secondary-search {
    display: grid;
    gap: 0.5rem;
}

.trade-customer-highlight {
    display: grid;
    gap: 0.3rem;
    min-height: 120px;
    padding: 1.15rem 1.2rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 247, 245, 0.92) 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.trade-customer-highlight strong {
    font-size: 1.05rem;
    font-weight: 800;
}

.trade-customer-highlight small {
    color: var(--muted);
}

.trade-workspace {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.trade-workspace--orders {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trade-searchbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
}

.trade-order-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.03) 0%, rgba(15, 118, 110, 0.04) 100%);
}

.trade-order-toolbar__notice {
    display: grid;
    grid-column: 1 / -1;
    gap: 0.25rem;
    min-height: 100%;
    align-content: center;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px dashed rgba(15, 118, 110, 0.18);
}

.trade-order-toolbar__notice strong {
    font-weight: 800;
}

.trade-order-toolbar__notice small {
    color: var(--muted);
}

.trade-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.trade-product-card {
    appearance: none;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 251, 250, 0.96) 100%);
    border-radius: 26px;
    padding: 1rem;
    display: grid;
    gap: 0.95rem;
    text-align: left;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    cursor: pointer;
}

.trade-product-card:hover,
.trade-product-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, 0.18);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.1);
    outline: none;
}

.trade-product-card__top,
.trade-product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.trade-product-card__code {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--brand-dark);
    font-size: 0.74rem;
    font-weight: 800;
}

.trade-product-card__body {
    display: grid;
    gap: 0.35rem;
}

.trade-product-card__body h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.trade-product-card__body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.trade-product-card__footer {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.trade-product-card__footer span:last-child {
    color: var(--brand);
}

.trade-cart-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.03) 0%, rgba(15, 118, 110, 0.05) 100%);
}

.trade-cart-controls--stack {
    padding-top: 0;
    background: transparent;
}

.trade-cart-list {
    display: grid;
    gap: 0.85rem;
    max-height: 500px;
    overflow: auto;
    padding-right: 0.15rem;
}

.trade-cart-item {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.trade-cart-item__main {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.trade-cart-item__main strong,
.trade-cart-item__main small {
    display: block;
}

.trade-cart-item__main small {
    color: var(--muted);
}

.trade-cart-item__price {
    font-weight: 800;
    white-space: nowrap;
}

.trade-cart-item__footer {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: end;
}

.trade-qty-box {
    display: grid;
    gap: 0.35rem;
}

.trade-qty-box span,
.trade-cart-item__subtotal small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.trade-cart-item__subtotal {
    display: grid;
    gap: 0.18rem;
    justify-items: end;
}

.trade-cart-item__subtotal strong {
    font-size: 1rem;
}

.trade-summary {
    display: grid;
    gap: 0.8rem;
    padding: 1.15rem 1.2rem;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.03) 0%, rgba(15, 118, 110, 0.06) 100%);
}

.trade-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.trade-summary__row--input {
    display: grid;
    gap: 0.45rem;
}

.trade-summary__row--input .form-control {
    width: 100%;
}

.trade-summary__total {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.7rem;
    border-top: 1px dashed rgba(15, 23, 42, 0.12);
}

.trade-summary__total span {
    color: var(--muted);
    font-weight: 700;
}

.trade-summary__total strong {
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1;
    font-weight: 800;
}

.trade-cash-box,
.trade-note-card {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 1.05rem;
    border-radius: 24px;
}

.trade-cash-box {
    background: rgba(245, 158, 11, 0.08);
    border: 1px dashed rgba(245, 158, 11, 0.24);
}

.trade-note-card {
    background: rgba(15, 23, 42, 0.03);
}

.trade-cash-box__change {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.trade-cash-box__change span {
    color: var(--muted);
    font-weight: 700;
}

.trade-cash-box__change strong {
    font-size: 1.45rem;
    font-weight: 800;
}

.trade-primary-action {
    min-height: 58px;
    border-radius: 20px;
}

.trade-history-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

.trade-record-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.trade-record-card {
    display: grid;
    gap: 0.95rem;
    padding: 1rem 1.05rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.trade-record-card__top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.trade-record-card__top strong,
.trade-record-card__top small {
    display: block;
}

.trade-record-card__top small {
    color: var(--muted);
}

.trade-record-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.trade-record-card__actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

@media (max-width: 1399.98px) {
    .trade-workspace,
    .trade-workspace--orders {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trade-record-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1199.98px) {
    .trade-hero,
    .trade-workspace,
    .trade-workspace--orders,
    .trade-history-layout {
        grid-template-columns: 1fr;
    }

    .trade-customer-grid,
    .trade-order-toolbar {
        grid-template-columns: 1fr;
    }

    .trade-customer-highlight {
        min-height: 88px;
    }
}

@media (max-width: 991.98px) {
    .trade-product-grid,
    .trade-mini-grid {
        grid-template-columns: 1fr;
    }

    .trade-panel-header__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .trade-inline-form,
    .trade-searchbar,
    .trade-cart-controls,
    .trade-cart-item__footer {
        grid-template-columns: 1fr;
    }

    .trade-cart-item__subtotal {
        justify-items: start;
    }

    .trade-record-card__actions .btn,
    .trade-inline-form .btn {
        width: 100%;
    }
}

:root {
    --bg: #f5f7fb;
    --bg-strong: #0f172a;
    --panel: #ffffff;
    --panel-strong: #ffffff;
    --line: #e7ecf4;
    --text: #172033;
    --muted: #7b889b;
    --brand: #18b66e;
    --brand-dark: #129157;
    --brand-soft: rgba(24, 182, 110, 0.12);
    --danger-soft: rgba(255, 90, 90, 0.12);
    --shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
}

body {
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 24%),
        linear-gradient(180deg, #f8fafc 0%, #f3f6fb 100%);
}

.customers-shell,
.products-shell,
.cash-shell,
.history-shell,
.reports-shell,
.settings-shell,
.trade-shell,
.dashboard-shell {
    display: grid;
    gap: 1.5rem;
}

.app-shell {
    background: transparent;
}

.sidebar-panel {
    width: 292px;
    flex: 0 0 292px;
    padding: 1.1rem 1rem 1.25rem;
    background: #ffffff;
    color: var(--text);
    border-right: 1px solid var(--line);
    box-shadow: inset -1px 0 0 rgba(15, 23, 42, 0.02);
}

.sidebar-mobile {
    background: #ffffff;
    color: var(--text);
}

.sidebar-mobile .offcanvas-header {
    border-bottom-color: var(--line) !important;
}

.sidebar-inner {
    gap: 1rem;
    padding: 0;
}

.sidebar-brand {
    padding: 0.55rem 0.45rem 1rem;
    border-bottom: 1px solid var(--line);
}

.sidebar-brand__copy {
    display: grid;
    gap: 0.15rem;
}

.sidebar-brand__badge {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.sidebar-brand__title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.sidebar-brand__meta {
    color: #8a96a8;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.sidebar-company,
.sidebar-support {
    display: grid;
    gap: 0.28rem;
    padding: 1rem 1.05rem;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: none;
}

.sidebar-company strong,
.sidebar-support strong {
    font-size: 0.96rem;
    font-weight: 800;
    color: #0f172a;
}

.sidebar-company small,
.sidebar-support small {
    color: var(--muted);
}

.cash-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cash-hero__note {
    max-width: 420px;
    display: grid;
    gap: 0.3rem;
    padding: 1rem 1.15rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 253, 245, 0.96));
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
}

.cash-hero__note small,
.cash-stat-meta,
.cash-filter-note {
    color: var(--muted);
}

.cash-panel-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sidebar-company__label,
.sidebar-support__label {
    color: #9aa5b5;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.sidebar-company {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.sidebar-nav {
    gap: 0.4rem;
}

.sidebar-link {
    gap: 0.85rem;
    padding: 0.88rem 0.95rem;
    border-radius: 18px;
    color: #6f7d91;
    font-weight: 700;
    border: 1px solid transparent;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.sidebar-link__icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: #f3f6fb;
    color: #7b8798;
}

.sidebar-link:hover {
    color: var(--text);
    background: #f8fafc;
    border-color: #eef2f7;
    transform: none;
}

.sidebar-link.active {
    color: #148a55;
    background: linear-gradient(135deg, rgba(24, 182, 110, 0.14) 0%, rgba(16, 185, 129, 0.08) 100%);
    border-color: rgba(24, 182, 110, 0.12);
    box-shadow: inset 3px 0 0 var(--brand);
}

.sidebar-link.active .sidebar-link__icon {
    background: rgba(24, 182, 110, 0.14);
    color: var(--brand-dark);
}

.sidebar-footer {
    margin-top: 0;
    border-top: 0;
    padding-top: 0;
}

.sidebar-logout {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: #677489;
    font-weight: 800;
    transition: all 0.18s ease;
}

.sidebar-logout:hover {
    background: #f8fafc;
    color: var(--text);
}

.main-panel {
    background: transparent;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem 1.5rem 0;
    padding: 0.95rem 1.2rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.topbar__start,
.topbar__actions,
.topbar__quick-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.topbar__actions {
    margin-left: auto;
}

.topbar__heading {
    display: grid;
    gap: 0.2rem;
}

.topbar__date {
    color: #9aa5b5;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.topbar__menu,
.topbar__icon-link {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    border: 1px solid var(--line);
    background: #f8fafc;
    color: #6f7d91;
    text-decoration: none;
}

.topbar__icon-link:hover,
.topbar__menu:hover {
    color: var(--text);
    background: #ffffff;
}

.topbar-action {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.82rem 1.15rem;
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.topbar-action--green {
    background: linear-gradient(135deg, #14b868 0%, #22c55e 100%);
}

.topbar-action--blue {
    background: linear-gradient(135deg, #2a8fff 0%, #35b4ff 100%);
}

.topbar-action--amber {
    background: linear-gradient(135deg, #ff980f 0%, #ffb347 100%);
}

.page-title {
    margin: 0;
    font-size: clamp(1.55rem, 2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.user-chip {
    gap: 0.8rem;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 0.4rem 0.55rem 0.4rem 0.4rem;
    box-shadow: none;
}

.user-chip__avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
}

.user-chip__content {
    display: grid;
    gap: 0.08rem;
}

.user-chip__name {
    font-size: 0.92rem;
    font-weight: 800;
}

.user-chip__role {
    color: var(--brand);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.content-panel {
    padding: 1.5rem;
}

.btn,
.form-control,
.form-select {
    transition: all 0.18s ease;
}

.btn-brand {
    background: linear-gradient(135deg, #14b868 0%, #22c55e 100%);
    box-shadow: 0 14px 28px rgba(20, 184, 104, 0.2);
    border-radius: 18px;
    font-weight: 800;
    padding: 0.82rem 1.2rem;
}

.btn-brand:hover,
.btn-brand:focus {
    background: linear-gradient(135deg, #129157 0%, #17b85e 100%);
    box-shadow: 0 16px 30px rgba(18, 145, 87, 0.22);
}

.btn-outline-secondary {
    background: #ffffff;
    border-color: var(--line);
    color: #465267;
    border-radius: 18px;
    font-weight: 700;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background: #f8fafc;
    border-color: #dbe3ee;
    color: var(--text);
}

.btn-danger-soft {
    border-radius: 18px;
    font-weight: 800;
}

.form-label {
    margin-bottom: 0.5rem;
    color: #8c98a9;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.form-control,
.form-select {
    min-height: 52px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fcfdff;
    color: var(--text);
    padding: 0.92rem 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(42, 143, 255, 0.26);
    box-shadow: 0 0 0 0.25rem rgba(42, 143, 255, 0.1);
}

textarea.form-control {
    min-height: auto;
}

code {
    background: rgba(42, 143, 255, 0.08);
    color: #2172d6;
    border-radius: 10px;
}

.hero-card,
.panel-card,
.module-hero,
.mini-stat,
.payment-card,
.empty-screen__box,
.customers-hero,
.products-hero,
.history-hero,
.reports-hero,
.settings-hero,
.trade-hero {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: none;
}

.hero-card,
.panel-card,
.module-hero,
.customers-hero,
.products-hero,
.history-hero,
.reports-hero,
.settings-hero,
.trade-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.hero-card::after,
.module-hero::after,
.customers-hero::after,
.products-hero::after,
.history-hero::after,
.reports-hero::after,
.settings-hero::after,
.trade-hero::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    top: -90px;
    right: -70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(42, 143, 255, 0.12) 0%, rgba(42, 143, 255, 0) 70%);
    pointer-events: none;
}

.hero-card,
.customers-hero,
.products-hero,
.history-hero,
.reports-hero,
.settings-hero,
.trade-hero {
    padding: 1.75rem;
}

.trade-hero--sales {
    background:
        radial-gradient(circle at top right, rgba(24, 182, 110, 0.12), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #fbfffd 100%);
}

.trade-hero--orders {
    background:
        radial-gradient(circle at top right, rgba(255, 152, 15, 0.12), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
}

.hero-card__title,
.module-hero__title,
.pos-hero__title,
.trade-hero__title {
    letter-spacing: -0.03em;
}

.hero-card__text,
.pos-hero__subtitle,
.panel-card__subtitle,
.module-hero__subtitle,
.trade-hero__subtitle {
    color: #8793a4;
}

.panel-card {
    padding: 1.55rem;
}

.panel-card__title {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.mini-stat,
.payment-card {
    border-radius: 24px;
    padding: 1.15rem;
    box-shadow: none;
    background: #f8fafc;
}

.mini-stat__label,
.payment-card__label {
    color: #93a0b0;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.mini-stat__value,
.payment-card__value {
    font-size: clamp(1.45rem, 2vw, 1.95rem);
    letter-spacing: -0.03em;
}

.module-hero__icon {
    background: #f8fafc;
    border: 1px solid var(--line);
}

.empty-state {
    min-height: 170px;
    background: #f8fafc;
    border: 1px dashed #dfe6f0;
    color: #95a1b1;
}

.table-responsive {
    border: 1px solid rgba(231, 236, 244, 0.9);
    border-radius: 26px;
    overflow: hidden;
    background: #ffffff;
}

.app-table {
    margin-bottom: 0;
}

.app-table thead th {
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
    color: #93a0b0;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    padding: 1rem 0.85rem;
}

.app-table tbody td {
    padding: 1rem 0.85rem;
    border-color: #eef2f7;
    background: #ffffff;
}

.app-table tbody tr:hover td {
    background: #fbfcff;
}

.table-code,
.document-pill,
.type-pill,
.status-pill {
    border-radius: 999px;
    padding: 0.42rem 0.88rem;
    font-size: 0.74rem;
    font-weight: 800;
}

.table-code,
.document-pill {
    background: #f4f7fb;
    border: 1px solid #e6edf7;
}

.status-pill {
    background: #f7f1df;
    color: #ae7a12;
}

.history-item,
.order-item,
.payment-card,
.trade-record-card,
.trade-cart-item,
.trade-product-card,
.dashboard-order-card,
.dashboard-payment-card {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.autocomplete-item {
    border-color: var(--line);
    border-radius: 18px;
    background: #ffffff;
}

.logo-preview,
.demo-box,
.trade-order-toolbar,
.trade-cart-controls,
.trade-summary,
.trade-note-card {
    background: #f8fafc;
    border: 1px solid var(--line);
}

.modal-content {
    border-radius: 30px !important;
    border: 1px solid var(--line) !important;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
}

.modal-backdrop.show {
    opacity: 0.16;
}

.dashboard-shell {
    display: grid;
    gap: 1.5rem;
}

.dashboard-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) 360px;
    gap: 1.35rem;
    padding: 1.85rem;
    border-radius: 32px;
    background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.dashboard-hero::after {
    content: '';
    position: absolute;
    inset: auto auto -40px 54%;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(42, 143, 255, 0.12) 0%, rgba(42, 143, 255, 0) 70%);
    pointer-events: none;
}

.dashboard-hero__copy,
.dashboard-hero__focus {
    position: relative;
    z-index: 1;
}

.dashboard-hero__title {
    margin: 0 0 0.85rem;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.dashboard-hero__text {
    margin: 0;
    max-width: 48rem;
    color: #8793a4;
    font-size: 1rem;
}

.dashboard-hero__actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.4rem;
}

.dashboard-hero__focus {
    display: grid;
    gap: 0.5rem;
    align-content: start;
    padding: 1.35rem;
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.18);
}

.dashboard-hero__focus-label {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.dashboard-hero__focus strong {
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.dashboard-hero__focus small {
    color: rgba(255, 255, 255, 0.7);
}

.dashboard-hero__mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 0.9rem;
}

.dashboard-hero__mini-grid article {
    display: grid;
    gap: 0.18rem;
    padding: 0.9rem 0.95rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-hero__mini-grid span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.dashboard-hero__mini-grid strong {
    font-size: 1.1rem;
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-kpi-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 0.4rem;
    min-height: 140px;
    padding: 1.15rem 1.2rem;
    border-radius: 28px;
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
}

.dashboard-kpi-card::after {
    content: '';
    position: absolute;
    width: 114px;
    height: 114px;
    top: -28px;
    right: -24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.dashboard-kpi-card__label,
.dashboard-kpi-card__meta {
    position: relative;
    z-index: 1;
}

.dashboard-kpi-card__label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.72);
}

.dashboard-kpi-card__value {
    position: relative;
    z-index: 1;
    font-size: clamp(1.75rem, 2.4vw, 2.2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.dashboard-kpi-card__meta {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

.dashboard-kpi-card--violet {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.dashboard-kpi-card--sky {
    background: linear-gradient(135deg, #1d9bf0 0%, #0ea5e9 100%);
}

.dashboard-kpi-card--emerald {
    background: linear-gradient(135deg, #10b981 0%, #22c55e 100%);
}

.dashboard-kpi-card--rose {
    background: linear-gradient(135deg, #ff2460 0%, #ff2d7d 100%);
}

.dashboard-kpi-card--amber {
    background: linear-gradient(135deg, #ff980f 0%, #ffae2e 100%);
}

.dashboard-kpi-card--slate {
    background: linear-gradient(135deg, #334155 0%, #0f172a 100%);
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.dashboard-support-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 1.5rem;
    align-items: start;
}

.dashboard-section-header {
    align-items: start;
}

.dashboard-section-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: #f4f7fb;
    color: #748195;
    font-size: 0.76rem;
    font-weight: 800;
}

.dashboard-performance {
    display: grid;
    gap: 1rem;
}

.dashboard-chart-panel,
.dashboard-activity {
    display: grid;
    gap: 1rem;
}

.dashboard-chart-panel {
    gap: 0.72rem;
}

.dashboard-chart-panel .dashboard-section-header {
    margin-bottom: 0;
}

.dashboard-split-panel {
    min-height: 100%;
}

.dashboard-cash-panel {
    display: grid;
    gap: 1rem;
}

.dashboard-cash-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-cash-card {
    display: grid;
    gap: 0.32rem;
    padding: 1rem 1.05rem;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid var(--line);
}

.dashboard-cash-card__label {
    color: #7c889a;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-cash-card__value {
    font-size: 1.45rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.dashboard-cash-card__meta {
    color: #8a96a8;
}

.dashboard-chart__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.dashboard-chart__summary-card {
    display: grid;
    gap: 0.2rem;
    min-width: 180px;
    padding: 0.9rem 1rem;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid var(--line);
}

.dashboard-chart__summary-card span {
    color: #8a96a8;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-chart__summary-card strong {
    font-size: 1.15rem;
    letter-spacing: -0.03em;
}

.dashboard-chart__legend {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-chart__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #7c889a;
    font-size: 0.82rem;
    font-weight: 800;
}

.dashboard-chart__legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.dashboard-chart__legend-dot--sales {
    background: linear-gradient(180deg, #6366f1 0%, #3b82f6 100%);
}

.dashboard-chart__legend-dot--orders {
    background: linear-gradient(180deg, #f59e0b 0%, #10b981 100%);
}

.dashboard-chart {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.dashboard-chart__scale {
    display: grid;
    align-content: space-between;
    padding: 0.4rem 0 1.85rem;
    color: #94a0b0;
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-chart__plot {
    min-height: 340px;
    padding: 1.15rem 1rem 1.25rem;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(15, 118, 110, 0.06) 0%, rgba(15, 118, 110, 0.015) 100%),
        repeating-linear-gradient(180deg, transparent 0, transparent 71px, rgba(226, 232, 240, 0.9) 72px);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.dashboard-chart__groups {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: end;
}

.dashboard-chart__group {
    display: grid;
    gap: 0.7rem;
    align-items: end;
}

.dashboard-chart__columns {
    min-height: 250px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.28rem;
    align-items: end;
}

.dashboard-chart__bar {
    display: block;
    border-radius: 14px 14px 6px 6px;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
}

.dashboard-chart__bar--sales {
    background: linear-gradient(180deg, #6366f1 0%, #3b82f6 100%);
}

.dashboard-chart__bar--orders {
    background: linear-gradient(180deg, #f59e0b 0%, #10b981 100%);
}

.dashboard-chart__month {
    text-align: center;
    color: #8a96a8;
    font-size: 0.74rem;
    font-weight: 800;
}

.dashboard-performance__surface {
    position: relative;
    overflow: hidden;
    min-height: 200px;
    padding: 1.15rem;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(20, 184, 104, 0.08) 0%, rgba(20, 184, 104, 0.02) 100%),
        repeating-linear-gradient(180deg, transparent 0, transparent 39px, rgba(255, 255, 255, 0.72) 40px);
}

.dashboard-performance__curve {
    position: absolute;
    inset: 18px 18px 22px 18px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 75% 10%, rgba(20, 184, 104, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 100%);
}

.dashboard-performance__points {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.8rem;
    align-items: end;
    min-height: 168px;
}

.dashboard-performance__point {
    display: grid;
    gap: 0.2rem;
    padding: 0.88rem 0.92rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.05);
}

.dashboard-performance__point span,
.dashboard-performance__point small {
    color: #8a96a8;
}

.dashboard-performance__point strong {
    font-size: 1rem;
    letter-spacing: -0.03em;
}

.dashboard-spotlight {
    display: grid;
    gap: 1rem;
}

.dashboard-order-list {
    display: grid;
    gap: 0.85rem;
}

.dashboard-agenda-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.dashboard-agenda-stat {
    display: grid;
    gap: 0.18rem;
    padding: 0.72rem 0.9rem;
    border-radius: 20px;
    border: 1px solid var(--line);
}

.dashboard-agenda-stat span {
    color: #7c889a;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-agenda-stat strong {
    font-size: 1.28rem;
    line-height: 1;
}

.dashboard-agenda-stat--late {
    background: rgba(239, 68, 68, 0.08);
}

.dashboard-agenda-stat--today {
    background: rgba(59, 130, 246, 0.08);
}

.dashboard-agenda-stat--tomorrow {
    background: rgba(16, 185, 129, 0.08);
}

.dashboard-agenda-stat--week {
    background: rgba(99, 102, 241, 0.08);
}

.dashboard-agenda-insights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid var(--line);
}

.dashboard-agenda-insight {
    display: grid;
    gap: 0.18rem;
}

.dashboard-agenda-insight span {
    color: #7c889a;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-agenda-insight strong {
    font-size: 1rem;
}

.dashboard-agenda-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-agenda-badge--late {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.dashboard-agenda-badge--today {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.dashboard-agenda-badge--tomorrow {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.dashboard-agenda-badge--upcoming,
.dashboard-agenda-badge--neutral {
    background: rgba(148, 163, 184, 0.14);
    color: #475569;
}

.dashboard-priority-panel {
    display: grid;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 24px;
    border: 1px solid var(--line);
}

.dashboard-priority-panel--alert {
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(254, 242, 242, 0.98));
}

.dashboard-priority-panel--calm {
    background: linear-gradient(135deg, rgba(240, 249, 255, 0.96), rgba(236, 253, 245, 0.96));
}

.dashboard-priority-panel__top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-priority-panel__eyebrow {
    display: inline-block;
    margin-bottom: 0.4rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.dashboard-priority-panel__lead {
    margin: 0;
    color: #526074;
    font-size: 0.95rem;
    line-height: 1.55;
}

.dashboard-priority-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.dashboard-priority-card {
    display: grid;
    gap: 0.28rem;
    padding: 0.9rem 0.95rem;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.dashboard-priority-card span {
    color: #7c889a;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-priority-card strong {
    font-size: 1.35rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.dashboard-priority-card small {
    color: #64748b;
    line-height: 1.45;
}

.dashboard-priority-card--alert {
    background: rgba(254, 242, 242, 0.9);
}

.dashboard-priority-card--neutral {
    background: rgba(248, 250, 252, 0.9);
}

.dashboard-priority-card--finance {
    background: rgba(239, 246, 255, 0.9);
}

.dashboard-delivery-list {
    display: grid;
    gap: 0.58rem;
}

.dashboard-delivery-row,
.dashboard-delivery-empty {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.dashboard-delivery-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    min-height: 4rem;
    padding: 0.72rem 0.85rem;
}

.dashboard-delivery-row__main,
.dashboard-delivery-row__side {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.dashboard-delivery-row__main strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 0.92rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-delivery-row__main small,
.dashboard-delivery-row__side small {
    color: #64748b;
    font-size: 0.78rem;
}

.dashboard-delivery-row__side {
    justify-items: end;
}

.dashboard-delivery-row__side span {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-delivery-empty {
    padding: 1rem;
    color: #64748b;
}

.dashboard-priority-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.dashboard-order-card {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 1.05rem;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 24px;
}

.dashboard-order-card__top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-order-card__top strong,
.dashboard-order-card__top small {
    display: block;
}

.dashboard-order-card__top small,
.dashboard-order-card__footer {
    color: #8a96a8;
}

.dashboard-order-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    color: #6b778a;
    font-size: 0.88rem;
}

.dashboard-order-card__schedule {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.62rem 0.8rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

.dashboard-order-card__progress {
    display: grid;
    gap: 0.4rem;
}

.dashboard-order-card__progress small {
    color: #8a96a8;
}

.dashboard-order-card__progress-bar {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
}

.dashboard-order-card__progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
}

.dashboard-payments {
    display: grid;
    gap: 1rem;
}

.dashboard-activity-list {
    display: grid;
    gap: 0.85rem;
}

.dashboard-activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.05rem;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 24px;
}

.dashboard-activity-item__main,
.dashboard-activity-item__side {
    display: grid;
    gap: 0.2rem;
}

.dashboard-activity-item__main strong,
.dashboard-activity-item__main small,
.dashboard-activity-item__side strong,
.dashboard-activity-item__side small {
    display: block;
}

.dashboard-activity-item__main small,
.dashboard-activity-item__side small {
    color: #8a96a8;
}

.dashboard-activity-item__side {
    justify-items: end;
    text-align: right;
}

.dashboard-activity-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    padding: 0.32rem 0.62rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dashboard-activity-badge--sale {
    background: rgba(79, 70, 229, 0.12);
    color: #4338ca;
}

.dashboard-activity-badge--payment {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}

.dashboard-payment-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-payment-card {
    display: grid;
    gap: 0.7rem;
    padding: 1rem 1.05rem;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 24px;
}

.dashboard-payment-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-payment-card__header span {
    color: #7c889a;
    font-weight: 800;
}

.dashboard-payment-card__header strong {
    font-size: 1.05rem;
    letter-spacing: -0.03em;
}

.dashboard-payment-card small {
    color: #94a0b0;
}

.dashboard-payment-card__meter {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: #e9eef5;
}

.dashboard-payment-card__meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, #18b66e 0%, #2a8fff 100%);
}

.customers-hero,
.products-hero,
.history-hero,
.reports-hero,
.settings-hero,
.trade-hero {
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    align-items: start;
}

.customers-hero::after,
.products-hero::after,
.history-hero::after,
.reports-hero::after,
.settings-hero::after,
.trade-hero::after {
    width: 160px;
    height: 160px;
    top: -68px;
    right: -54px;
    opacity: 0.75;
}

.customers-hero .eyebrow,
.products-hero .eyebrow,
.history-hero .eyebrow,
.reports-hero .eyebrow,
.settings-hero .eyebrow,
.trade-hero .eyebrow {
    margin-bottom: 0.28rem;
}

.pos-hero__title,
.trade-hero__title {
    margin: 0 0 0.18rem;
    font-size: clamp(1.05rem, 1.45vw, 1.32rem);
    line-height: 1.15;
    max-width: 28rem;
}

.pos-hero__subtitle,
.trade-hero__subtitle {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.4;
    max-width: 30rem;
}

.order-metric-grid,
.trade-mini-grid {
    gap: 0.55rem;
}

.customers-hero .mini-stat,
.products-hero .mini-stat,
.history-hero .mini-stat,
.reports-hero .mini-stat,
.settings-hero .mini-stat,
.trade-mini-stat,
.trade-metric-card {
    padding: 0.68rem 0.8rem;
    border-radius: 18px;
}

.customers-hero .mini-stat__label,
.products-hero .mini-stat__label,
.history-hero .mini-stat__label,
.reports-hero .mini-stat__label,
.settings-hero .mini-stat__label,
.trade-mini-stat span,
.trade-metric-card span {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
}

.customers-hero .mini-stat__value,
.products-hero .mini-stat__value,
.history-hero .mini-stat__value,
.reports-hero .mini-stat__value,
.settings-hero .mini-stat__value,
.trade-mini-stat strong,
.trade-metric-card strong {
    font-size: clamp(0.96rem, 1.3vw, 1.18rem);
    line-height: 1.08;
}

.trade-hero__copy {
    max-width: 32rem;
}

.trade-hero__rail {
    display: grid;
    grid-template-columns: minmax(210px, 1.2fr) minmax(200px, 1fr);
    gap: 0.55rem;
    align-items: stretch;
}

.trade-metric-card {
    gap: 0.18rem;
    min-height: 76px;
}

.trade-metric-card small {
    font-size: 0.7rem;
    line-height: 1.3;
}

.trade-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trade-mini-stat {
    min-height: 76px;
    align-content: center;
}

.customers-hero,
.products-hero,
.history-hero,
.reports-hero,
.settings-hero {
    grid-template-columns: 1fr;
}

.customers-hero .order-metric-grid,
.products-hero .order-metric-grid,
.history-hero .order-metric-grid,
.reports-hero .order-metric-grid,
.settings-hero .order-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trade-hero {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
}

@media (max-width: 1399.98px) {
    .dashboard-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .topbar {
        flex-wrap: wrap;
    }

    .topbar__actions {
        width: 100%;
        justify-content: space-between;
    }

    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .dashboard-payment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-chart__groups {
        gap: 0.55rem;
    }

    .dashboard-main-grid,
    .dashboard-support-grid,
    .dashboard-cash-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero__focus {
        order: -1;
    }

    .customers-hero,
    .products-hero,
    .history-hero,
    .reports-hero,
    .settings-hero,
    .trade-hero {
        grid-template-columns: 1fr;
    }

    .trade-hero__rail {
        grid-template-columns: 1fr;
    }

    .customers-hero .order-metric-grid,
    .products-hero .order-metric-grid,
    .history-hero .order-metric-grid,
    .reports-hero .order-metric-grid,
    .settings-hero .order-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .sidebar-panel {
        width: 100%;
        flex: 0 0 auto;
    }

    .dashboard-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-payment-grid,
    .dashboard-performance__points,
    .dashboard-agenda-stats,
    .dashboard-agenda-insights {
        grid-template-columns: 1fr;
    }

    .dashboard-chart {
        grid-template-columns: 1fr;
    }

    .dashboard-chart__scale {
        display: none;
    }

    .dashboard-chart__groups {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .trade-mini-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .topbar {
        margin: 0.9rem 0.9rem 0;
        padding: 0.9rem;
    }

    .content-panel {
        padding: 1rem;
    }

    .topbar__actions {
        flex-wrap: wrap;
    }

    .topbar__icon-link,
    .user-chip {
        width: 100%;
    }

    .dashboard-kpi-grid,
    .dashboard-performance__points,
    .dashboard-hero__mini-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-chart__summary {
        display: grid;
    }

    .dashboard-chart__groups {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dashboard-activity-item {
        flex-direction: column;
        align-items: start;
    }

    .dashboard-activity-item__side {
        justify-items: start;
        text-align: left;
    }

    .dashboard-order-card__schedule {
        flex-direction: column;
        align-items: start;
    }

    .dashboard-priority-panel__top {
        flex-direction: column;
        align-items: start;
    }
}

:root {
    --shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

body {
    font-size: 0.94rem;
}

.btn,
.form-control,
.form-select,
.sidebar-panel,
.main-panel,
.sidebar-brand__copy,
.sidebar-link__label,
.sidebar-company,
.sidebar-logout span {
    transition: all 0.22s ease;
}

.eyebrow,
.auth-copy__eyebrow {
    margin-bottom: 0.35rem;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
}

.auth-copy__title {
    max-width: 30rem;
    margin-bottom: 0.7rem;
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.auth-copy__text {
    max-width: 26rem;
    margin-bottom: 0;
    font-size: 0.92rem;
}

.auth-card {
    padding: 1.55rem;
}

.demo-box {
    padding: 0.8rem 0.95rem;
    border-radius: 16px;
}

.sidebar-panel {
    width: 254px;
    flex: 0 0 254px;
    padding: 0.85rem 0.8rem 1rem;
}

.sidebar-inner {
    gap: 0.75rem;
}

.sidebar-brand {
    padding: 0.4rem 0.25rem 0.85rem;
}

.sidebar-brand__badge {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 1rem;
}

.sidebar-brand__copy {
    display: grid;
    gap: 0.1rem;
    max-width: 170px;
}

.sidebar-brand__title {
    font-size: 0.92rem;
}

.sidebar-brand__meta {
    font-size: 0.64rem;
}

.sidebar-company {
    max-height: 88px;
    padding: 0.8rem 0.9rem;
    border-radius: 18px;
    overflow: hidden;
}

.sidebar-nav {
    gap: 0.35rem;
}

.sidebar-link {
    gap: 0.75rem;
    padding: 0.72rem 0.78rem;
    border-radius: 15px;
    font-size: 0.83rem;
}

.sidebar-link__icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 12px;
    font-size: 0.92rem;
}

.sidebar-link__label,
.sidebar-logout span {
    display: inline-block;
    max-width: 132px;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar-logout {
    padding: 0.78rem 0.9rem;
    border-radius: 16px;
    font-size: 0.82rem;
}

.app-shell--sidebar-collapsed .sidebar-panel {
    width: 90px;
    flex: 0 0 90px;
    display: flex;
    justify-content: center;
    padding: 0.85rem 0;
}

.app-shell--sidebar-collapsed .sidebar-inner {
    width: 100%;
    align-items: center;
    padding: 0;
}

.app-shell--sidebar-collapsed .sidebar-brand {
    width: 100%;
    display: grid;
    place-items: center;
    justify-content: center;
    padding: 0.2rem 0 0.55rem;
    border-bottom: 0;
}

.app-shell--sidebar-collapsed .sidebar-brand__badge {
    margin: 0 auto;
}

.app-shell--sidebar-collapsed .sidebar-brand__copy,
.app-shell--sidebar-collapsed .sidebar-link__label,
.app-shell--sidebar-collapsed .sidebar-logout span {
    display: none;
}

.app-shell--sidebar-collapsed .sidebar-company {
    display: none;
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-color: transparent;
}

.app-shell--sidebar-collapsed .sidebar-link {
    display: grid;
    place-items: center;
    gap: 0;
    width: 46px;
    min-width: 46px;
    height: 46px;
    padding: 0;
    margin: 0 auto;
}

.app-shell--sidebar-collapsed .sidebar-link.active {
    background: rgba(24, 182, 110, 0.08);
    border-color: rgba(24, 182, 110, 0.18);
    box-shadow: none;
}

.app-shell--sidebar-collapsed .sidebar-link.active .sidebar-link__icon {
    background: linear-gradient(135deg, rgba(24, 182, 110, 0.16) 0%, rgba(16, 185, 129, 0.08) 100%);
    color: var(--brand-dark);
    box-shadow: none;
}

.app-shell--sidebar-collapsed .sidebar-nav,
.app-shell--sidebar-collapsed .sidebar-footer {
    width: 100%;
}

.app-shell--sidebar-collapsed .sidebar-nav {
    align-items: center;
    gap: 0.45rem;
}

.app-shell--sidebar-collapsed .sidebar-footer form {
    display: flex;
    justify-content: center;
}

.app-shell--sidebar-collapsed .sidebar-logout {
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 16px;
}

.topbar {
    margin: 0.75rem 1rem 0;
    padding: 0.75rem 0.9rem;
    gap: 0.75rem;
    border-radius: 22px;
}

.topbar__start,
.topbar__actions,
.topbar__quick-actions {
    gap: 0.65rem;
}

.topbar__menu,
.topbar__icon-link {
    width: 40px;
    height: 40px;
    border-radius: 13px;
}

.topbar-action {
    gap: 0.45rem;
    padding: 0.66rem 0.95rem;
    font-size: 0.78rem;
}

.page-title {
    font-size: clamp(1.1rem, 1.45vw, 1.35rem);
    line-height: 1.1;
}

.user-chip {
    gap: 0.65rem;
    padding: 0.28rem 0.45rem 0.28rem 0.28rem;
    border-radius: 18px;
}

.user-chip__avatar {
    width: 36px;
    height: 36px;
}

.user-chip__name {
    font-size: 0.84rem;
}

.user-chip__role {
    font-size: 0.62rem;
}

.content-panel {
    padding: 1rem;
}

.btn {
    --bs-btn-padding-y: 0.58rem;
    --bs-btn-padding-x: 0.95rem;
    --bs-btn-font-size: 0.85rem;
    border-radius: 14px;
}

.btn-sm {
    --bs-btn-padding-y: 0.38rem;
    --bs-btn-padding-x: 0.7rem;
    --bs-btn-font-size: 0.75rem;
    border-radius: 12px;
}

.btn-lg {
    --bs-btn-padding-y: 0.7rem;
    --bs-btn-padding-x: 1rem;
    --bs-btn-font-size: 0.92rem;
}

.btn-brand {
    padding: 0.68rem 1rem;
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(20, 184, 104, 0.16);
}

.btn-outline-secondary,
.btn-danger-soft {
    border-radius: 14px;
}

.form-label {
    margin-bottom: 0.35rem;
    font-size: 0.65rem;
}

.form-control,
.form-select {
    min-height: 44px;
    padding: 0.7rem 0.85rem;
    font-size: 0.88rem;
    border-radius: 14px;
}

.table-responsive {
    border-radius: 20px;
}

.app-table thead th {
    padding: 0.75rem 0.7rem;
    font-size: 0.66rem;
}

.app-table tbody td {
    padding: 0.75rem 0.7rem;
    font-size: 0.84rem;
}

.table-code,
.document-pill,
.type-pill,
.status-pill {
    padding: 0.32rem 0.68rem;
    font-size: 0.68rem;
}

.alert {
    padding: 0.7rem 0.9rem;
    font-size: 0.84rem;
    border-radius: 14px;
}

.panel-card,
.hero-card,
.module-hero,
.customers-hero,
.products-hero,
.history-hero,
.reports-hero,
.settings-hero,
.trade-hero {
    border-radius: 22px;
}

.panel-card {
    padding: 1.05rem;
}

.panel-card__header {
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.panel-card__title {
    font-size: 1rem;
}

.panel-card__subtitle {
    margin-top: 0.15rem;
    font-size: 0.78rem;
}

.pos-hero__title,
.trade-hero__title {
    max-width: 24rem;
    margin: 0 0 0.12rem;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
}

.pos-hero__subtitle,
.trade-hero__subtitle {
    max-width: 22rem;
    font-size: 0.78rem;
}

.dashboard-hero {
    padding: 1.2rem;
    gap: 1rem;
    border-radius: 26px;
}

.dashboard-hero__title {
    margin-bottom: 0.4rem;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.dashboard-hero__text {
    font-size: 0.86rem;
}

.dashboard-hero__actions {
    margin-top: 1rem;
    gap: 0.55rem;
}

.dashboard-hero__focus {
    gap: 0.4rem;
    padding: 1rem;
    border-radius: 22px;
}

.dashboard-hero__focus strong {
    font-size: clamp(1.55rem, 2vw, 2.1rem);
}

.dashboard-hero__mini-grid article {
    padding: 0.75rem 0.8rem;
    border-radius: 18px;
}

.dashboard-kpi-grid {
    gap: 0.75rem;
}

.dashboard-kpi-card {
    min-height: 108px;
    padding: 0.9rem 1rem;
    border-radius: 22px;
}

.dashboard-kpi-card__label {
    font-size: 0.62rem;
}

.dashboard-kpi-card__value {
    font-size: clamp(1.35rem, 1.8vw, 1.7rem);
}

.dashboard-performance__surface {
    min-height: 150px;
    padding: 0.85rem;
    border-radius: 22px;
}

.dashboard-performance__points {
    min-height: 128px;
    gap: 0.65rem;
}

.dashboard-performance__point {
    padding: 0.7rem 0.75rem;
    border-radius: 16px;
}

.customers-hero,
.products-hero,
.history-hero,
.reports-hero,
.settings-hero,
.trade-hero {
    gap: 0.7rem;
    padding: 0.9rem 1rem;
}

.customers-hero .mini-stat,
.products-hero .mini-stat,
.history-hero .mini-stat,
.reports-hero .mini-stat,
.settings-hero .mini-stat,
.trade-mini-stat,
.trade-metric-card,
.mini-stat {
    padding: 0.65rem 0.75rem;
    border-radius: 16px;
}

.mini-stat__label,
.payment-card__label {
    font-size: 0.64rem;
}

.mini-stat__value,
.payment-card__value,
.trade-mini-stat strong,
.trade-metric-card strong {
    font-size: clamp(0.92rem, 1.2vw, 1.1rem);
}

.trade-hero__rail {
    gap: 0.45rem;
}

.trade-soft-badge {
    padding: 0.28rem 0.55rem;
    font-size: 0.68rem;
}

.trade-workspace,
.trade-workspace--orders,
.dashboard-main-grid,
.trade-history-layout {
    gap: 1rem;
}

.trade-product-grid,
.trade-record-grid,
.dashboard-payment-grid,
.dashboard-order-list,
.history-stack {
    gap: 0.75rem;
}

.trade-product-card,
.trade-cart-item,
.trade-record-card,
.dashboard-order-card,
.dashboard-payment-card,
.history-item {
    padding: 0.85rem 0.9rem;
    border-radius: 20px;
}

.trade-product-card {
    gap: 0.7rem;
}

.trade-product-card__body h4 {
    font-size: 0.92rem;
}

.trade-product-card__body p,
.trade-record-card__meta,
.dashboard-order-card__meta {
    font-size: 0.8rem;
}

.trade-cart-list {
    gap: 0.65rem;
    max-height: 420px;
}

.trade-cart-item__footer {
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 0.55rem;
}

.trade-summary,
.trade-order-toolbar,
.trade-cart-controls,
.trade-note-card,
.trade-cash-box,
.logo-preview {
    padding: 0.8rem 0.85rem;
    border-radius: 18px;
}

.trade-summary {
    gap: 0.6rem;
}

.trade-summary__total strong {
    font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.trade-primary-action {
    min-height: 48px;
    border-radius: 16px;
}

.dashboard-payment-card__meter {
    height: 8px;
}

.empty-state {
    min-height: 108px;
    padding: 0.85rem;
    border-radius: 16px;
    font-size: 0.84rem;
}

.logo-preview {
    min-height: 140px;
}

.modal-content {
    border-radius: 24px !important;
}

.modal-body {
    padding: 1.15rem !important;
}

@media (max-width: 1199.98px) {
    .topbar {
        margin: 0.75rem 0.75rem 0;
    }

    .content-panel {
        padding: 0.9rem;
    }
}

@media (max-width: 767.98px) {
    .topbar {
        padding: 0.75rem;
    }

    .content-panel {
        padding: 0.85rem;
    }

    .panel-card,
    .dashboard-hero,
    .customers-hero,
    .products-hero,
    .history-hero,
    .reports-hero,
    .settings-hero,
    .trade-hero {
        padding: 0.9rem;
    }

    .app-table thead th,
    .app-table tbody td {
        padding: 0.7rem 0.6rem;
    }
}

/* Streamlined trade flows */
.topbar {
    position: static;
    top: auto;
    z-index: auto;
}

.trade-hero--stream {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0.75rem;
    padding: 0.65rem 0.8rem;
    border-radius: 20px;
}

.trade-hero--stream .trade-hero__copy {
    display: grid;
    gap: 0.15rem;
}

.trade-inline-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

.trade-inline-stat {
    display: grid;
    gap: 0.12rem;
    min-width: 92px;
    padding: 0.45rem 0.6rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.04);
}

.trade-inline-stat--wide {
    min-width: 220px;
}

.trade-inline-stat span {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.trade-inline-stat strong {
    font-size: 0.86rem;
    font-weight: 800;
}

.trade-flow-panel--stream,
.trade-cart-panel--stream {
    gap: 0.8rem;
}

.trade-flow-panel--stream .trade-flow-block {
    gap: 0.75rem;
}

.trade-flow-panel--stream .trade-flow-divider {
    height: 1px;
    margin: 0.05rem 0;
    background: rgba(148, 163, 184, 0.18);
}

.trade-panel-header--compact {
    margin-bottom: 0;
    align-items: center;
    gap: 0.5rem;
}

.trade-panel-header--compact .panel-card__title {
    font-size: 0.86rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.trade-panel-header--compact .trade-panel-header__actions .btn {
    min-height: 36px;
    padding: 0.42rem 0.78rem;
}

.trade-flow-panel--stream .trade-customer-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 0.75rem;
}

.trade-customer-stack {
    display: grid;
    gap: 0.55rem;
}

.trade-inline-form,
.trade-searchbar {
    gap: 0.55rem;
}

.trade-inline-form--customer {
    grid-template-columns: minmax(0, 1fr) 112px 164px;
    align-items: stretch;
}

.trade-inline-form .form-control,
.trade-searchbar .form-control {
    min-height: 42px;
}

.trade-inline-form .btn,
.trade-searchbar .btn {
    min-height: 42px;
    padding: 0.5rem 0.8rem;
}

.trade-secondary-search {
    margin-top: 0.45rem;
}

.trade-customer-results {
    margin-top: 0;
}

.trade-customer-inline {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    min-height: 0;
    padding: 0.65rem 0.8rem;
    border: 1px dashed rgba(148, 163, 184, 0.55);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.82);
}

.trade-customer-inline strong {
    font-size: 0.92rem;
}

.trade-customer-inline small {
    font-size: 0.76rem;
    color: var(--muted);
}

.trade-order-toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0.7rem 0.75rem;
    border-radius: 16px;
}

.trade-order-toolbar__notice {
    grid-column: auto;
    min-height: 0;
    justify-content: center;
    gap: 0.08rem;
    padding: 0.55rem 0.7rem;
    border-radius: 14px;
}

.trade-order-toolbar__notice small {
    font-size: 0.72rem;
}

.trade-shell--sales .trade-product-grid,
.trade-shell--orders .trade-product-grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
}

.trade-product-row {
    appearance: none;
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.62rem 0.72rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    text-align: left;
    box-shadow: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.trade-product-row:hover,
.trade-product-row:focus-visible {
    border-color: rgba(15, 118, 110, 0.26);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    outline: none;
}

.trade-product-row__code {
    display: inline-flex;
    align-items: center;
    padding: 0.24rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.08);
    color: var(--brand-dark);
    font-size: 0.68rem;
    font-weight: 800;
}

.trade-product-row__name {
    min-width: 0;
    font-size: 0.88rem;
    font-weight: 800;
}

.trade-product-row__meta {
    font-size: 0.74rem;
    color: var(--muted);
    white-space: nowrap;
}

.trade-product-row__price {
    font-size: 0.84rem;
    white-space: nowrap;
}

.trade-product-row__action {
    width: 1.8rem;
    height: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--brand-dark);
}

.trade-cart-panel--stream .trade-cart-list {
    gap: 0;
    max-height: 360px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.trade-cart-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px 96px auto auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.58rem 0.7rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.trade-cart-row:last-child {
    border-bottom: 0;
}

.trade-cart-row__main {
    min-width: 0;
}

.trade-cart-row__main strong,
.trade-cart-row__main small {
    display: block;
}

.trade-cart-row__main strong {
    font-size: 0.87rem;
}

.trade-cart-row__main small {
    font-size: 0.74rem;
    color: var(--muted);
}

.trade-cart-row__qty input {
    min-height: 35px;
    padding-inline: 0.35rem;
    text-align: center;
}

.trade-cart-row__price input {
    min-height: 35px;
    padding-inline: 0.35rem;
    text-align: right;
}

.trade-cart-row__total {
    font-size: 0.84rem;
    white-space: nowrap;
}

.trade-cart-row__remove {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 12px;
}

.trade-cart-panel--stream .trade-cart-controls,
.trade-cart-panel--stream .trade-summary,
.trade-cart-panel--stream .trade-note-card,
.trade-cart-panel--stream .trade-cash-box {
    padding: 0.68rem 0.75rem;
    border-radius: 16px;
    box-shadow: none;
}

.trade-cart-panel--stream .trade-summary__row span,
.trade-cart-panel--stream .trade-summary__row label {
    font-size: 0.76rem;
}

.trade-cart-panel--stream .trade-summary__row strong {
    font-size: 0.88rem;
}

.trade-cart-panel--stream .trade-summary__total strong {
    font-size: clamp(1.22rem, 1.8vw, 1.55rem);
}

.trade-cart-panel--stream .trade-primary-action {
    min-height: 44px;
}

.trade-shell--sales .empty-state,
.trade-shell--orders .empty-state {
    min-height: 72px;
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
    font-size: 0.78rem;
}

.trade-shell--sales .trade-record-grid,
.trade-shell--orders .trade-record-grid {
    grid-template-columns: 1fr;
}

.trade-shell--sales .trade-record-card,
.trade-shell--orders .trade-record-card,
.trade-shell--orders .history-item {
    gap: 0.55rem;
    padding: 0.72rem 0.8rem;
    border-radius: 16px;
    box-shadow: none;
}

.trade-shell--sales .trade-record-card__meta,
.trade-shell--orders .trade-record-card__meta,
.trade-shell--orders .history-item__main small {
    font-size: 0.76rem;
}

.trade-shell--sales .trade-record-card__actions,
.trade-shell--orders .trade-record-card__actions {
    gap: 0.45rem;
}

.trade-shell--sales .trade-record-card__actions .btn,
.trade-shell--orders .trade-record-card__actions .btn {
    min-height: 34px;
    padding: 0.38rem 0.72rem;
}

@media (max-width: 1199.98px) {
    .trade-order-toolbar {
        grid-template-columns: 1fr;
    }

    .trade-inline-stats {
        justify-content: flex-start;
    }

    .trade-inline-form--customer {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }
}

@media (max-width: 767.98px) {
    .trade-hero--stream {
        grid-template-columns: 1fr;
    }

    .trade-inline-stat,
    .trade-inline-stat--wide {
        min-width: 0;
        flex: 1 1 100%;
    }

    .trade-inline-form--customer {
        grid-template-columns: 1fr;
    }

    .trade-product-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: start;
    }

    .trade-product-row__meta {
        grid-column: 2;
        white-space: normal;
    }

    .trade-product-row__price {
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .trade-product-row__action {
        display: none;
    }

    .trade-cart-row {
        grid-template-columns: minmax(0, 1fr) 82px 92px auto;
    }

    .trade-cart-row__remove {
        grid-column: 4;
        grid-row: 1 / span 2;
        align-self: center;
    }
}

/* POS refinements */
.trade-shell--sales {
    display: grid;
    gap: 0.5rem;
    margin-top: -0.55rem;
}

.trade-shell--sales .trade-workspace {
    gap: 0.55rem;
}

.trade-shell--sales .trade-inline-form--customer {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.45rem;
    align-items: stretch;
}

.trade-shell--sales .trade-inline-form--customer > *,
.trade-shell--sales .trade-searchbar > *,
.trade-shell--sales .trade-product-row > * {
    min-width: 0;
}

.trade-shell--sales #documentNumber {
    min-width: 0;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

.trade-shell--sales .trade-inline-form--customer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    flex-shrink: 0;
    white-space: nowrap;
    padding-inline: 0.9rem;
}

.trade-shell--sales #lookupDocumentButton {
    min-width: 112px;
}

.trade-shell--sales #openQuickClientModalButton {
    min-width: 164px;
}

.trade-shell--sales .trade-searchbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
    align-items: stretch;
}

.trade-shell--sales .trade-searchbar .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    flex-shrink: 0;
    min-width: 122px;
    white-space: nowrap;
    padding-inline: 0.95rem;
}

.trade-shell--sales .trade-customer-inline--inline {
    min-height: 42px;
    padding: 0.45rem 0.65rem;
    border-style: solid;
    border-color: rgba(59, 130, 246, 0.16);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.92) 0%, rgba(248, 250, 252, 0.96) 100%);
}

.trade-shell--sales .trade-customer-inline--inline strong {
    font-size: 0.84rem;
    line-height: 1.1;
}

.trade-shell--sales .trade-customer-inline--inline small {
    font-size: 0.71rem;
    line-height: 1.1;
}

.trade-shell--sales .trade-product-grid {
    gap: 0.38rem;
}

.trade-shell--sales .trade-product-row {
    grid-template-columns: auto minmax(0, 1.35fr) auto auto auto auto;
    gap: 0.55rem;
    padding: 0.52rem 0.65rem;
    border-left: 4px solid #38bdf8;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(224, 242, 254, 0.96) 0%, rgba(248, 250, 252, 0.98) 72%);
    border-color: rgba(56, 189, 248, 0.2);
}

.trade-shell--sales .trade-product-row:hover,
.trade-shell--sales .trade-product-row:focus-visible {
    border-color: rgba(14, 165, 233, 0.36);
    background: linear-gradient(90deg, rgba(224, 242, 254, 1) 0%, rgba(255, 255, 255, 1) 76%);
}

.trade-shell--sales .trade-product-row__code {
    background: rgba(14, 165, 233, 0.12);
    color: #075985;
}

.trade-shell--sales .trade-product-row__name {
    font-size: 0.84rem;
    min-width: 0;
}

.trade-shell--sales .trade-product-row__stock,
.trade-shell--sales .trade-product-row__meta {
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
}

.trade-shell--sales .trade-product-row__price {
    color: #0f172a;
    font-size: 0.82rem;
}

.trade-shell--sales .trade-product-row__action {
    width: 1.65rem;
    height: 1.65rem;
    background: rgba(14, 165, 233, 0.14);
    color: #0369a1;
}

.trade-shell--sales .trade-cart-panel--stream .trade-cart-list {
    border-color: rgba(245, 158, 11, 0.18);
    background: rgba(255, 251, 235, 0.8);
}

.trade-shell--sales .trade-cart-row {
    grid-template-columns: auto minmax(0, 1fr) 74px 92px auto auto;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    background: rgba(255, 255, 255, 0.65);
}

.trade-shell--sales .trade-cart-row__code {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.48rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    color: #92400e;
    font-size: 0.67rem;
    font-weight: 800;
}

.trade-shell--sales .trade-cart-row__main strong {
    font-size: 0.82rem;
}

.trade-shell--sales .trade-cart-row__main small {
    font-size: 0.7rem;
}

.trade-shell--sales .trade-cart-row__qty input,
.trade-shell--sales .trade-cart-row__price input {
    min-height: 32px;
}

.trade-shell--sales .trade-cart-row__total {
    font-size: 0.8rem;
    color: #7c2d12;
}

.trade-shell--sales .trade-cart-row__remove {
    width: 30px;
    height: 30px;
    border-radius: 10px;
}

.trade-shell--sales .trade-cart-controls {
    padding-bottom: 0.35rem;
}

.trade-shell--sales .trade-summary {
    gap: 0.42rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 251, 235, 0.96) 100%);
}

.trade-shell--sales .trade-summary__inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.trade-shell--sales .trade-summary__input {
    display: grid;
    gap: 0.22rem;
}

.trade-shell--sales .trade-summary__input--disabled {
    opacity: 0.58;
}

.trade-shell--sales .trade-summary__input .form-control {
    min-height: 40px;
}

.trade-shell--sales .trade-summary__duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.trade-shell--sales .trade-summary__tile {
    display: grid;
    gap: 0.14rem;
    padding: 0.68rem 0.72rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.trade-shell--sales .trade-summary__tile span {
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--muted);
}

.trade-shell--sales .trade-summary__tile strong {
    font-size: 1rem;
    font-weight: 800;
}

.trade-shell--sales .trade-summary__tile--muted {
    background: rgba(241, 245, 249, 0.9);
}

.trade-shell--sales .trade-summary__tile--accent {
    background: rgba(255, 237, 213, 0.9);
}

.trade-shell--sales .trade-summary__tile--accent strong {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    line-height: 1;
}

.trade-shell--sales #cashBlock {
    margin: 0;
}

#posMessageModal .modal-dialog,
#orderMessageModal .modal-dialog {
    max-width: 360px;
}

#posMessageModal .modal-body,
#orderMessageModal .modal-body {
    padding: 1.25rem !important;
}

.lookup-success-modal .modal-dialog {
    max-width: 380px;
}

.lookup-success {
    display: grid;
    gap: 0.9rem;
    text-align: center;
}

.lookup-success__meta {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.lookup-success__action {
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    width: 100%;
    padding: 1.15rem 1rem;
    border: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(14, 165, 233, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.lookup-success__action:hover,
.lookup-success__action:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 22px 38px rgba(14, 165, 233, 0.28);
}

.lookup-success__action i {
    font-size: 3rem;
    line-height: 1;
}

.lookup-success__action span {
    font-size: 1rem;
    font-weight: 800;
}

.lookup-success__action small {
    color: rgba(255, 255, 255, 0.84);
    font-weight: 600;
}

@media (max-width: 1199.98px) {
    .trade-shell--sales .trade-inline-form--customer {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .trade-shell--sales .trade-product-row {
        grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    }

    .trade-shell--sales .trade-product-row__meta {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .trade-shell--sales {
        margin-top: -0.15rem;
    }

    .trade-shell--sales .trade-inline-form--customer {
        grid-template-columns: 1fr;
    }

    .trade-shell--sales .trade-customer-inline--inline {
        order: 2;
    }

    .trade-shell--sales .trade-product-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .trade-shell--sales .trade-product-row__stock,
    .trade-shell--sales .trade-product-row__meta,
    .trade-shell--sales .trade-product-row__action {
        display: none;
    }

    .trade-shell--sales .trade-cart-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .trade-shell--sales .trade-cart-row__remove {
        grid-column: 3;
        grid-row: 1;
    }

    .trade-shell--sales .trade-cart-row__qty {
        grid-column: 2;
        grid-row: 2;
        max-width: 78px;
    }

    .trade-shell--sales .trade-cart-row__price {
        grid-column: 2;
        grid-row: 3;
        max-width: 92px;
    }

    .trade-shell--sales .trade-cart-row__total {
        grid-column: 3;
        grid-row: 2 / span 2;
        align-self: center;
    }

    .trade-shell--sales .trade-summary__duo {
        grid-template-columns: 1fr;
    }

    .trade-shell--sales .trade-summary__inputs {
        grid-template-columns: 1fr;
    }
}

.trade-order-toolbar__field--delivery.is-hidden {
    display: none;
}

.trade-delivery-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 0.45rem;
}

.trade-shell--orders .trade-product-grid {
    gap: 0.38rem;
}

.trade-shell--orders .trade-product-row {
    grid-template-columns: auto minmax(0, 1.35fr) auto auto auto auto;
    gap: 0.55rem;
    padding: 0.52rem 0.65rem;
    border-left: 4px solid #38bdf8;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(224, 242, 254, 0.96) 0%, rgba(248, 250, 252, 0.98) 72%);
    border-color: rgba(56, 189, 248, 0.2);
}

.trade-shell--orders .trade-product-row:hover,
.trade-shell--orders .trade-product-row:focus-visible {
    border-color: rgba(14, 165, 233, 0.36);
    background: linear-gradient(90deg, rgba(224, 242, 254, 1) 0%, rgba(255, 255, 255, 1) 76%);
}

.trade-shell--orders .trade-product-row__code {
    background: rgba(14, 165, 233, 0.12);
    color: #075985;
}

.trade-shell--orders .trade-product-row__name {
    font-size: 0.84rem;
    min-width: 0;
}

.trade-shell--orders .trade-product-row__stock,
.trade-shell--orders .trade-product-row__meta {
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
}

.trade-shell--orders .trade-product-row__price {
    color: #0f172a;
    font-size: 0.82rem;
}

.trade-shell--orders .trade-product-row__action {
    width: 1.65rem;
    height: 1.65rem;
    background: rgba(14, 165, 233, 0.14);
    color: #0369a1;
}

.trade-shell--orders .trade-cart-panel--stream .trade-cart-list {
    border-color: rgba(245, 158, 11, 0.18);
    background: rgba(255, 251, 235, 0.8);
}

.trade-shell--orders .trade-cart-row {
    grid-template-columns: auto minmax(0, 1fr) 74px 92px auto auto;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    background: rgba(255, 255, 255, 0.65);
}

.trade-shell--orders .trade-cart-row__code {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.48rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    color: #92400e;
    font-size: 0.67rem;
    font-weight: 800;
}

.trade-shell--orders .trade-cart-row__main strong {
    font-size: 0.82rem;
}

.trade-shell--orders .trade-cart-row__main small {
    font-size: 0.7rem;
}

.trade-shell--orders .trade-cart-row__qty input,
.trade-shell--orders .trade-cart-row__price input {
    min-height: 32px;
}

.trade-shell--orders .trade-cart-row__total {
    font-size: 0.8rem;
    color: #7c2d12;
}

.trade-shell--orders .trade-cart-row__remove {
    width: 30px;
    height: 30px;
    border-radius: 10px;
}

@media (max-width: 1199.98px) {
    .trade-shell--orders .trade-product-row {
        grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    }

    .trade-shell--orders .trade-product-row__meta {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .trade-shell--orders .trade-product-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .trade-shell--orders .trade-product-row__stock,
    .trade-shell--orders .trade-product-row__meta,
    .trade-shell--orders .trade-product-row__action {
        display: none;
    }

    .trade-shell--orders .trade-cart-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .trade-shell--orders .trade-cart-row__remove {
        grid-column: 3;
        grid-row: 1;
    }

    .trade-shell--orders .trade-cart-row__qty {
        grid-column: 2;
        grid-row: 2;
        max-width: 78px;
    }

    .trade-shell--orders .trade-cart-row__price {
        grid-column: 2;
        grid-row: 3;
        max-width: 92px;
    }

    .trade-shell--orders .trade-cart-row__total {
        grid-column: 3;
        grid-row: 2 / span 2;
        align-self: center;
    }
}

.products-shell {
    gap: 0.85rem;
}

.products-shell #productsAlert:empty {
    display: none;
}

.products-shell .mt-4 {
    margin-top: 0 !important;
}

.products-shell > .panel-card,
.products-shell > .products-hero {
    margin: 0;
}

.products-hero {
    padding: 1.15rem 1.2rem;
}

.products-hero__stats {
    gap: 0.7rem;
}

.products-hero .mini-stat {
    position: relative;
    overflow: hidden;
    min-height: 84px;
    padding: 0.7rem 0.8rem;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
}

.products-hero .mini-stat::after {
    content: '';
    position: absolute;
    inset: auto -18px -18px auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    pointer-events: none;
}

.products-hero .mini-stat__label,
.products-hero .mini-stat__value {
    position: relative;
    z-index: 1;
}

.products-hero .mini-stat__label {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0.3rem;
}

.products-hero .mini-stat__value {
    color: #ffffff;
    font-size: clamp(0.98rem, 1.35vw, 1.2rem);
}

.products-hero .mini-stat--emerald {
    background: linear-gradient(135deg, #12b76a 0%, #059669 100%);
}

.products-hero .mini-stat--blue {
    background: linear-gradient(135deg, #2a8fff 0%, #2563eb 100%);
}

.products-hero .mini-stat--amber {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
}

.products-hero .mini-stat--slate {
    background: linear-gradient(135deg, #334155 0%, #0f172a 100%);
}

.products-shell .panel-card {
    padding: 1rem 1.05rem;
}

.products-shell .panel-card__header {
    margin-bottom: 0.85rem;
}

.product-category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.product-category-card {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.45rem 0.35rem 0.7rem;
    min-height: 42px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e6edf7;
}

.product-category-card__main {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.product-category-card__main strong {
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
}

.product-category-card__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: #eef4fb;
    color: #59708f;
    font-size: 0.72rem;
    font-weight: 800;
}

.product-category-card__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.product-category-card__actions .btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
}

.product-category-card__actions .btn i {
    font-size: 0.78rem;
}

.products-inline-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
}

.products-inline-field__action {
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .products-inline-field {
        grid-template-columns: 1fr;
    }

    .products-inline-field__action {
        width: 100%;
    }
}

.customers-shell {
    gap: 0.85rem;
}

.customers-shell #customersAlert:empty {
    display: none;
}

.customers-shell .mt-4 {
    margin-top: 0 !important;
}

.customers-shell > .panel-card,
.customers-shell > .customers-hero {
    margin: 0;
}

.customers-hero {
    padding: 1.15rem 1.2rem;
}

.customers-hero__stats {
    gap: 0.7rem;
}

.customers-hero .mini-stat {
    position: relative;
    overflow: hidden;
    min-height: 84px;
    padding: 0.7rem 0.8rem;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
}

.customers-hero .mini-stat::after {
    content: '';
    position: absolute;
    inset: auto -18px -18px auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    pointer-events: none;
}

.customers-hero .mini-stat__label,
.customers-hero .mini-stat__value {
    position: relative;
    z-index: 1;
}

.customers-hero .mini-stat__label {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0.3rem;
}

.customers-hero .mini-stat__value {
    color: #ffffff;
    font-size: clamp(0.98rem, 1.35vw, 1.2rem);
}

.customers-hero .mini-stat--emerald {
    background: linear-gradient(135deg, #12b76a 0%, #059669 100%);
}

.customers-hero .mini-stat--blue {
    background: linear-gradient(135deg, #2a8fff 0%, #2563eb 100%);
}

.customers-hero .mini-stat--amber {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
}

.customers-hero .mini-stat--slate {
    background: linear-gradient(135deg, #334155 0%, #0f172a 100%);
}

.customers-shell .panel-card {
    padding: 1rem 1.05rem;
}

.customers-shell .panel-card__header {
    margin-bottom: 0.85rem;
}

.history-shell,
.reports-shell,
.settings-shell,
.module-shell {
    display: grid;
    gap: 0.85rem;
}

.history-shell .mt-4,
.reports-shell .mt-4,
.reports-shell .mt-1,
.settings-shell .mt-1,
.module-shell .mb-4 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.history-shell > .panel-card,
.history-shell > .history-hero,
.reports-shell > .panel-card,
.reports-shell > .reports-hero,
.reports-shell > .reports-grid,
.settings-shell > .settings-hero,
.settings-shell > .settings-grid,
.module-shell > .module-hero,
.module-shell > .panel-card {
    margin: 0;
}

.settings-shell .alert {
    margin: 0;
}

.history-hero,
.reports-hero,
.settings-hero,
.module-shell .module-hero {
    padding: 1.15rem 1.2rem;
}

.history-hero__stats,
.reports-hero__stats,
.settings-hero__stats,
.module-hero__stats {
    gap: 0.7rem;
}

.reports-shell .reports-hero {
    grid-template-columns: 1fr;
}

.reports-shell .reports-hero__copy {
    display: grid;
    gap: 0.35rem;
    max-width: 760px;
}

.reports-shell .reports-hero__summary {
    margin: 0;
    color: var(--muted);
    max-width: 58rem;
    line-height: 1.55;
}

.reports-shell .reports-hero__stats {
    display: grid;
    gap: 0.95rem;
    grid-template-columns: 1fr;
}

.reports-shell .reports-channel-block {
    display: grid;
    gap: 0.7rem;
    padding: 0.8rem;
    border-radius: 24px;
    background: rgba(241, 245, 249, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.reports-shell .reports-channel-block__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.reports-shell .reports-channel-block__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.reports-shell .reports-channel-block__subtitle {
    margin: 0.18rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.reports-shell .reports-channel-block__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reports-grid,
.settings-grid,
.module-hero__stats {
    --bs-gutter-x: 0.85rem;
    --bs-gutter-y: 0.85rem;
}

.history-shell .panel-card,
.reports-shell .panel-card,
.settings-shell .panel-card,
.module-shell .panel-card {
    padding: 1rem 1.05rem;
}

.history-shell .panel-card__header,
.reports-shell .panel-card__header,
.settings-shell .panel-card__header,
.module-shell .panel-card__header {
    margin-bottom: 0.85rem;
}

.cash-shell .mini-stat,
.history-hero .mini-stat,
.reports-hero .mini-stat,
.settings-hero .mini-stat,
.module-shell .mini-stat {
    position: relative;
    overflow: hidden;
    min-height: 84px;
    padding: 0.7rem 0.8rem;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
}

.cash-shell .mini-stat::after,
.history-hero .mini-stat::after,
.reports-hero .mini-stat::after,
.settings-hero .mini-stat::after,
.module-shell .mini-stat::after {
    content: '';
    position: absolute;
    inset: auto -18px -18px auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    pointer-events: none;
}

.cash-shell .mini-stat__label,
.cash-shell .mini-stat__value,
.history-hero .mini-stat__label,
.history-hero .mini-stat__value,
.reports-hero .mini-stat__label,
.reports-hero .mini-stat__value,
.settings-hero .mini-stat__label,
.settings-hero .mini-stat__value,
.module-shell .mini-stat__label,
.module-shell .mini-stat__value {
    position: relative;
    z-index: 1;
}

.cash-shell .mini-stat__label,
.history-hero .mini-stat__label,
.reports-hero .mini-stat__label,
.settings-hero .mini-stat__label,
.module-shell .mini-stat__label {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0.3rem;
}

.cash-shell .mini-stat__value,
.history-hero .mini-stat__value,
.reports-hero .mini-stat__value,
.settings-hero .mini-stat__value,
.module-shell .mini-stat__value {
    color: #ffffff;
    font-size: clamp(0.98rem, 1.35vw, 1.2rem);
    line-height: 1.15;
}

.cash-shell .cash-stat-meta {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.82);
}

.settings-hero .mini-stat__value {
    font-size: clamp(0.82rem, 1.05vw, 0.98rem);
    word-break: break-word;
}

.cash-shell .mini-stat--violet,
.history-shell .mini-stat--violet,
.reports-shell .mini-stat--violet,
.settings-shell .mini-stat--violet,
.module-shell .mini-stat--violet {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.cash-shell .mini-stat--sky,
.history-shell .mini-stat--sky,
.reports-shell .mini-stat--sky,
.settings-shell .mini-stat--sky,
.module-shell .mini-stat--sky {
    background: linear-gradient(135deg, #1d9bf0 0%, #0ea5e9 100%);
}

.cash-shell .mini-stat--emerald,
.history-shell .mini-stat--emerald,
.reports-shell .mini-stat--emerald,
.settings-shell .mini-stat--emerald,
.module-shell .mini-stat--emerald {
    background: linear-gradient(135deg, #10b981 0%, #22c55e 100%);
}

.cash-shell .mini-stat--rose,
.history-shell .mini-stat--rose,
.reports-shell .mini-stat--rose,
.settings-shell .mini-stat--rose,
.module-shell .mini-stat--rose {
    background: linear-gradient(135deg, #ff2460 0%, #ff2d7d 100%);
}

.cash-shell .mini-stat--slate,
.history-shell .mini-stat--slate,
.reports-shell .mini-stat--slate,
.settings-shell .mini-stat--slate,
.module-shell .mini-stat--slate {
    background: linear-gradient(135deg, #334155 0%, #0f172a 100%);
}

.cash-shell .mini-stat--amber,
.history-shell .mini-stat--amber,
.reports-shell .mini-stat--amber,
.settings-shell .mini-stat--amber,
.module-shell .mini-stat--amber {
    background: linear-gradient(135deg, #ff980f 0%, #ffae2e 100%);
}

@media (max-width: 1399.98px) {
    .reports-shell .reports-channel-block__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .reports-shell .reports-channel-block__stats {
        grid-template-columns: 1fr;
    }
}

.module-shell .module-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    gap: 0.85rem;
    align-items: start;
}

.module-shell .module-hero__copy {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.module-shell .module-hero__title {
    margin: 0;
}

@media (max-width: 1399.98px) {
    .module-shell .module-hero {
        grid-template-columns: 1fr;
    }
}

.barcode-label-card {
    width: min(100%, 340px);
    margin: 0 auto;
    display: grid;
    gap: 0.7rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #d9e4f2;
    border-radius: 26px;
    padding: 1rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.barcode-label-card__eyebrow {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.68rem;
    font-weight: 800;
    color: #64748b;
}

.barcode-label-card__name {
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
}

.barcode-label-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.76rem;
    color: #475569;
    font-weight: 700;
}

.barcode-label-card__price {
    color: #0f172a;
    font-size: 0.9rem;
}

.barcode-label-card__canvas {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 92px;
    padding: 0.9rem 0.6rem;
    border: 1px dashed #d6e1ef;
    border-radius: 20px;
    background: #ffffff;
}

.barcode-label-card__canvas svg {
    width: 100%;
    height: auto;
    max-height: 86px;
}

.barcode-label-card__number {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #0f172a;
    word-break: break-all;
}

.auth-shell {
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.16) 0%, transparent 34%),
        linear-gradient(315deg, rgba(245, 158, 11, 0.15) 0%, transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, #eef5f2 100%);
}

.auth-page--brand {
    min-height: 100vh;
}

.auth-page--brand .auth-page__backdrop {
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.05) 0%, transparent 42%),
        linear-gradient(180deg, rgba(20, 184, 166, 0.12) 0%, transparent 50%);
}

.auth-page__container {
    position: relative;
    z-index: 1;
}

.auth-brand-panel {
    position: relative;
    display: grid;
    align-content: center;
    gap: 1.15rem;
    overflow: hidden;
    min-height: 620px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.86) 58%, rgba(20, 184, 166, 0.1) 100%);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 8px;
    background: linear-gradient(90deg, var(--brand) 0%, #14b8a6 48%, #f59e0b 100%);
}

.auth-logo-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 380px);
    min-height: 220px;
    padding: 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.auth-logo-showcase__image {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.auth-logo-showcase__fallback {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--brand) 0%, #14b8a6 100%);
    color: #ffffff;
    font-size: 2.5rem;
    box-shadow: 0 18px 34px rgba(15, 118, 110, 0.2);
}

.auth-brand-panel .auth-copy__title {
    max-width: 34rem;
    margin-bottom: 0.75rem;
    color: #102224;
    font-size: 2.5rem;
    line-height: 1.05;
}

.auth-brand-panel .auth-copy__text {
    max-width: 34rem;
    color: #617076;
    font-size: 1rem;
    line-height: 1.65;
}

.auth-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.auth-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(15, 118, 110, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #334155;
    font-size: 0.84rem;
    font-weight: 800;
}

.auth-highlight i {
    color: var(--brand);
}

.auth-company-pill {
    display: inline-grid;
    width: fit-content;
    gap: 0.2rem;
    margin-top: 0.25rem;
    padding: 0.7rem 0.95rem;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.82);
}

.auth-company-pill span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.auth-company-pill strong {
    font-size: 0.98rem;
}

.auth-card--login {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 620px;
    padding: 1.85rem;
    border-color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.94);
}

.auth-card__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.45rem;
}

.auth-card__logo {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    width: 76px;
    height: 76px;
    padding: 0.45rem;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 22px;
    background: #ffffff;
    color: var(--brand);
    font-size: 2rem;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.auth-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-field__control {
    position: relative;
}

.auth-field__control i {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 1rem;
    color: var(--muted);
    transform: translateY(-50%);
}

.auth-field__control .form-control {
    padding-left: 2.9rem;
    background: rgba(248, 250, 252, 0.86);
}

.auth-card--login .btn-brand {
    min-height: 54px;
    font-weight: 800;
}

.demo-box__grid {
    display: grid;
    gap: 0.25rem;
}

@media (max-width: 991.98px) {
    .auth-brand-panel,
    .auth-card--login {
        min-height: auto;
    }

    .auth-brand-panel {
        padding: 1.6rem;
    }

    .auth-logo-showcase {
        min-height: 180px;
    }

    .auth-brand-panel .auth-copy__title {
        font-size: 2.1rem;
    }
}

@media (max-width: 767.98px) {
    .auth-brand-panel,
    .auth-card--login {
        padding: 1.25rem;
        border-radius: 22px;
    }

    .auth-card__brand {
        align-items: flex-start;
        gap: 0.85rem;
    }

    .auth-card__logo {
        width: 62px;
        height: 62px;
        border-radius: 18px;
    }

    .auth-logo-showcase {
        min-height: 150px;
        padding: 0.9rem;
        border-radius: 20px;
    }

    .auth-logo-showcase__image {
        max-height: 128px;
    }

    .auth-brand-panel .auth-copy__title {
        font-size: 1.75rem;
    }
}
