
:root {
    --bg-1: #edf6fb;
    --bg-2: #d7eaf5;
    --panel: rgba(255, 252, 246, 0.88);
    --panel-strong: rgba(255, 255, 255, 0.94);
    --border: rgba(19, 67, 98, 0.14);
    --border-strong: rgba(19, 67, 98, 0.22);
    --text: #17344a;
    --muted: #587388;
    --navy: #0f3f61;
    --ocean: #156b8a;
    --ocean-strong: #0f5e82;
    --ocean-soft: #dcedf6;
    --sand: #f3eadb;
    --success-bg: #dbefe3;
    --success-text: #1e6b47;
    --warning-bg: #fae6c9;
    --warning-text: #9a5b15;
    --danger-bg: #f8ddda;
    --danger-text: #9f2f2f;
    --shadow: 0 20px 45px rgba(18, 63, 92, 0.12);
    --shadow-soft: 0 10px 28px rgba(18, 63, 92, 0.08);
}

html,
body {
    height: 100%;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 35%),
        linear-gradient(160deg, var(--bg-1), var(--bg-2));
}

.boot-splash {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 35%),
        linear-gradient(160deg, var(--bg-1), var(--bg-2));
}

.boot-card {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    border-radius: 1.4rem;
    background: var(--panel-strong);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.boot-title {
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--navy);
}

.boot-spinner {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 3px solid rgba(21, 107, 138, 0.18);
    border-top-color: rgba(21, 107, 138, 0.82);
    animation: bootspin 0.9s linear infinite;
}

@keyframes bootspin {
    to {
        transform: rotate(360deg);
    }
}

html[lang="my"] body,
html[lang="my"] button,
html[lang="my"] input,
html[lang="my"] select,
html[lang="my"] textarea {
    font-family: "Noto Sans Myanmar", "Myanmar Text", Inter, Arial, sans-serif;
}

html[lang="my"] .brand-label,
html[lang="my"] .credential-label,
html[lang="my"] .hero-title,
html[lang="my"] .hero-subtitle,
html[lang="my"] .nav-button span,
html[lang="my"] .footer-button span,
html[lang="my"] .sidebar-user-role {
    letter-spacing: 0;
}

html[lang="my"] .hero-title,
html[lang="my"] .hero-subtitle,
html[lang="my"] .nav-button span,
html[lang="my"] .footer-button span {
    line-height: 1.45;
}

html[lang="my"] .field-input {
    padding: 0.7rem 0.95rem;
}

html[lang="my"] .primary-btn,
html[lang="my"] .secondary-btn,
html[lang="my"] .ghost-btn {
    padding: 0.7rem 1rem;
}

html[lang="my"] .lang-button {
    padding: 0 0.7rem;
}

html[lang="my"] .lang-button,
html[lang="my"] .ghost-btn {
    line-height: 1;
}

button,
input,
select {
    font: inherit;
}

.theme-body {
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 90;
    max-width: 320px;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--ocean), var(--navy));
    box-shadow: var(--shadow);
}

.notification.error {
    background: linear-gradient(135deg, #c55252, #8e2d2d);
}

.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-shell {
    width: min(1100px, 100%);
    display: grid;
    gap: 1.5rem;
}

.login-head,
.sidebar-head,
.topbar,
.section-heading.row,
.summary-row,
.account-row,
.credential-row,
.button-pair {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.login-grid,
.two-column-grid,
.user-grid,
.account-grid {
    display: grid;
    gap: 1.5rem;
}

.login-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 420px);
}

.surface-panel,
.surface-card,
.modal-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 1.6rem;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
    min-width: 0;
}

.surface-panel {
    padding: 1.4rem;
}

.hero-panel {
    padding: 2rem;
    background:
        linear-gradient(180deg, rgba(12, 72, 102, 0.9), rgba(19, 103, 138, 0.82)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
    color: #f6fbff;
    border-color: rgba(255, 255, 255, 0.15);
}

.hero-badge,
.brand-lockup,
.lang-switch,
.metric-icon,
.footer-button,
.nav-button,
.icon-btn,
.primary-btn,
.secondary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 1.2rem;
    background: linear-gradient(145deg, var(--ocean), var(--navy));
    color: #fff;
    font-weight: 800;
    display: grid;
    place-items: center;
    letter-spacing: 0.08em;
    box-shadow: var(--shadow-soft);
}

.brand-mark.small {
    width: 44px;
    height: 44px;
    border-radius: 1rem;
    font-size: 0.8rem;
}

.brand-label,
.topbar-label,
.credential-label,
.field-label,
.metric-label,
.muted,
.sidebar-user-role {
    color: var(--muted);
    font-size: 0.84rem;
}

.credential-label {
    font-weight: 700;
}

.brand-label {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(21, 107, 138, 0.12);
    color: var(--ocean-strong);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.app-sidebar .brand-label {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.96);
}

.brand-name {
    margin: 0.1rem 0 0;
    font-size: 1.45rem;
    font-weight: 800;
}

.brand-name.small {
    font-size: 1rem;
}

.store-lockup {
    min-width: 0;
}

.store-title {
    margin: 0;
    padding: 0.8rem 1rem;
    border-radius: 1.1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.01em;
    white-space: nowrap;
    box-shadow: 0 12px 24px rgba(4, 24, 38, 0.16);
}

.hero-badge {
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    width: fit-content;
}

.hero-title {
    margin: 1rem 0 0.5rem;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.12;
}

.hero-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    max-width: 36rem;
}

.credential-card {
    margin-top: 1.6rem;
    padding: 1rem 1.15rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-panel .credential-label {
    color: rgba(255, 255, 255, 0.88);
}

.form-panel {
    padding: 2rem;
}

.section-heading {
    margin-bottom: 1rem;
}

.section-heading h2,
.section-heading h3 {
    margin: 0;
    font-size: 1.2rem;
}

.field-input {
    width: 100%;
    height: 48px;
    padding: 0.82rem 0.95rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.84);
    color: var(--text);
    outline: none;
    transition: 0.2s ease;
}

.field-input:focus {
    border-color: rgba(21, 107, 138, 0.55);
    box-shadow: 0 0 0 4px rgba(21, 107, 138, 0.12);
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.icon-btn,
.lang-button {
    border: 0;
    cursor: pointer;
    transition: 0.2s ease;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
    min-height: 46px;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.primary-btn {
    color: #fff;
    background: linear-gradient(135deg, var(--ocean), var(--navy));
    box-shadow: var(--shadow-soft);
}

.add-icon-btn {
    min-width: 46px;
    width: 46px;
    height: 46px;
    padding: 0;
}

.primary-btn:hover {
    transform: translateY(-1px);
}

.secondary-btn {
    color: var(--navy);
    background: rgba(220, 237, 246, 0.82);
    border: 1px solid var(--border-strong);
}

.ghost-btn {
    color: var(--navy);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--border);
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 1rem;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--border);
}

.lang-switch {
    padding: 0.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--border);
}

.lang-switch.compact {
    background: rgba(245, 249, 252, 0.94);
    min-height: 46px;
}

.lang-button {
    min-width: 44px;
    height: 38px;
    padding: 0 0.8rem;
    border-radius: 999px;
    color: var(--navy);
    background: transparent;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
}

.lang-button.active {
    background: linear-gradient(135deg, var(--ocean), var(--navy));
    color: #fff;
}

.full-width {
    width: 100%;
}

.app-shell {
    height: 100vh;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    overflow: hidden;
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background:
        linear-gradient(180deg, rgba(9, 48, 76, 0.96), rgba(19, 103, 138, 0.92)),
        linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent);
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-stack {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.4rem;
    flex: 1;
}

.nav-button {
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    color: rgba(255, 255, 255, 0.84);
    background: transparent;
    border: 1px solid transparent;
}

.nav-button span {
    line-height: 1.25;
}

.nav-button:hover,
.footer-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-button-active,
.footer-button-active {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.sidebar-user {
    margin-top: auto;
    padding: 1rem 1.05rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.09));
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 30px rgba(4, 24, 38, 0.22);
}

.sidebar-user-name {
    margin: 0;
    font-weight: 700;
    color: #fff;
}

.sidebar-user-role {
    margin: 0.55rem 0 0;
    width: fit-content;
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.96);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-main {
    min-width: 0;
    min-height: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
    background: rgba(237, 246, 251, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.topbar-left,
.topbar-heading {
    min-width: 0;
}

.topbar-kicker {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.22rem;
}

.topbar-title {
    margin: 0;
    line-height: 1.15;
    font-size: clamp(1.2rem, 2.4vw, 1.7rem);
}

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.7rem;
    padding: 0.45rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(19, 67, 98, 0.1);
    box-shadow: 0 10px 24px rgba(18, 63, 92, 0.07);
}

.content-scroll {
    flex: 1;
    min-height: 0;
    padding: 1.25rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.section-stack {
    display: grid;
    gap: 1.25rem;
    align-content: start;
}

.metric-grid,
.alert-grid {
    display: grid;
    gap: 1rem;
}

.metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.metric-card {
    padding: 1.2rem;
    border-radius: 1.4rem;
    background: var(--panel-strong);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.metric-value {
    font-size: 1.9rem;
    font-weight: 800;
    margin-top: 0.35rem;
}

.metric-icon {
    width: 56px;
    height: 56px;
    border-radius: 1.2rem;
    background: linear-gradient(145deg, rgba(21, 107, 138, 0.14), rgba(15, 63, 97, 0.16));
    color: var(--ocean-strong);
}

.two-column-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    align-items: start;
}

.toolbar-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: minmax(0, 1fr) 180px;
}

.toolbar-grid.compact {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.wrap {
    flex-wrap: wrap;
}

.product-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-card {
    padding: 1rem;
    border-radius: 1.4rem;
    background: var(--panel-strong);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 0.8rem;
}

.product-card.disabled {
    opacity: 0.58;
}

.product-top,
.product-bottom,
.cart-line-top,
.cart-line-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.product-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.product-meta,
.table-sub,
.receipt-meta {
    color: var(--muted);
    font-size: 0.88rem;
}

.pill,
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    font-size: 0.74rem;
    font-weight: 700;
}

.pill {
    background: var(--ocean-soft);
    color: var(--navy);
}

.status-good {
    background: var(--success-bg);
    color: var(--success-text);
}

.status-low {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.status-expired {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.cart-panel {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    max-height: min(500px, calc(100vh - 12.5rem));
    min-height: 0;
}

.cart-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-height: 0;
    padding-right: 0.2rem;
}

.cart-summary {
    display: grid;
    gap: 0.9rem;
    margin-top: 0.8rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border);
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, rgba(237, 246, 251, 0.65), rgba(237, 246, 251, 0.92));
    backdrop-filter: blur(12px);
    padding-bottom: 0.9rem;
}

.summary-row.total {
    font-size: 1.12rem;
}

.summary-row.total strong {
    color: var(--ocean-strong);
}

.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.16rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border);
}

.qty-button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: rgba(220, 237, 246, 0.9);
    color: var(--navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-input {
    width: 42px;
    height: 30px;
    text-align: center;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.84);
    color: var(--text);
    font-weight: 700;
    border-radius: 0.5rem;
    padding: 0.2rem;
}

.table-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 0;
    table-layout: fixed;
}

.data-table.compact {
    min-width: 0;
}

.data-table th,
.data-table td {
    padding: 0.92rem 0.85rem;
    border-top: 1px solid rgba(19, 67, 98, 0.08);
    text-align: left;
    vertical-align: middle;
    line-height: 1.2;
}

.data-table thead th {
    border-top: 0;
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.inventory-table {
    table-layout: auto;
}

.inventory-table th,
.inventory-table td {
    padding: 0.52rem 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal;
    line-height: 1.05;
}

.inventory-table .table-actions {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.4rem;
}

.inventory-table .mini-btn,
.inventory-table .danger-btn {
    min-width: 58px;
    min-height: 30px;
    padding: 0.34rem 0.56rem;
    border-radius: 0.72rem;
    font-size: 0.79rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.inventory-table .status-pill {
    padding: 0.22rem 0.56rem;
    font-size: 0.7rem;
}

.text-right {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

.empty-state {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--muted);
}

.table-actions,
.button-pair {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.mini-btn,
.danger-btn {
    min-height: 38px;
    padding: 0.58rem 0.8rem;
    border-radius: 0.9rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.8);
    color: var(--navy);
    cursor: pointer;
    font-weight: 600;
}

.danger-btn {
    color: var(--danger-text);
    background: rgba(248, 221, 218, 0.75);
}

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

.span-2 {
    grid-column: span 2;
}

.user-grid,
.account-grid {
    grid-template-columns: 360px minmax(0, 1fr);
}

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

.account-card {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--border);
}

.summary-strip {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 0 0 1rem;
}

.summary-chip {
    padding: 0.9rem 1rem;
    border-radius: 1.1rem;
    background: rgba(220, 237, 246, 0.52);
    border: 1px solid var(--border);
}

.summary-chip .metric-label {
    margin-bottom: 0.25rem;
}

.alert-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.modal-shell {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(14, 47, 70, 0.42);
    backdrop-filter: blur(8px);
}

.modal-card {
    width: min(920px, 100%);
    padding: 1.4rem;
}

.receipt-modal-card {
    width: min(760px, 100%);
}

.receipt-preview {
    padding: 1rem;
    border-radius: 1.2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 249, 252, 0.92));
    border: 1px dashed var(--border-strong);
    max-height: 60vh;
    overflow: auto;
}

.receipt-sheet {
    padding: 1rem;
    background: #fff;
    color: #102e45;
}

.receipt-sheet h3,
.receipt-sheet h4,
.receipt-sheet p {
    margin: 0;
}

.receipt-sheet table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.9rem;
}

.receipt-sheet th,
.receipt-sheet td {
    padding: 0.55rem 0;
    border-bottom: 1px dashed rgba(16, 46, 69, 0.16);
    text-align: left;
    font-size: 0.92rem;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(14, 47, 70, 0.34);
    backdrop-filter: blur(2px);
}

.mobile-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: none;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0.75rem 0.8rem calc(0.75rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: rgba(237, 246, 251, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: 0 -16px 32px rgba(18, 63, 92, 0.14);
}

.footer-button {
    flex-direction: column;
    min-height: 62px;
    padding: 0.55rem 0.35rem;
    border-radius: 1.15rem;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(19, 67, 98, 0.08);
    font-size: 0.69rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(18, 63, 92, 0.05);
}

.footer-button-active {
    background: linear-gradient(135deg, rgba(21, 107, 138, 0.16), rgba(15, 63, 97, 0.18));
    border-color: rgba(21, 107, 138, 0.2);
    color: var(--navy);
}

.desktop-only-inline {
    display: inline-flex;
}

.mobile-only-inline {
    display: none;
}

.search-field {
    max-width: 320px;
}

.mt-6 {
    margin-top: 1.5rem;
}

.cart-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px auto 110px 36px;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(19, 67, 98, 0.08);
}

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

.cart-item-name {
    min-width: 0;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-price-input {
    width: 110px;
}

.cart-line-total {
    text-align: right;
    font-size: 0.92rem;
    white-space: nowrap;
}

.cart-remove-btn {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    color: var(--danger-text);
    background: rgba(248, 221, 218, 0.68);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#cart-items .field-input {
    height: 34px;
    padding: 0.4rem 0.65rem;
    border-radius: 0.75rem;
}

#cart-items [data-cart-price]::-webkit-outer-spin-button,
#cart-items [data-cart-price]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-price-input {
    appearance: textfield;
    -moz-appearance: textfield;
}

.pager {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.pager-track {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.pager-button,
.pager-arrow {
    min-width: 38px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.8);
    color: var(--navy);
    font-weight: 700;
    cursor: pointer;
}

.pager-button-active {
    background: linear-gradient(135deg, var(--ocean), var(--navy));
    border-color: transparent;
    color: #fff;
}

.pager-arrow:disabled {
    opacity: 0.45;
    cursor: default;
}

.pager-gap {
    color: var(--muted);
    font-weight: 700;
}

::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.7);
}

::-webkit-scrollbar-thumb {
    background: rgba(21, 107, 138, 0.4);
    border-radius: 999px;
}

@media (max-width: 1100px) {
    .two-column-grid,
    .user-grid,
    .account-grid {
        grid-template-columns: 1fr;
    }

    .cart-panel {
        position: static;
        max-height: none;
    }
}

@media (max-width: 900px) {
    .login-grid,
    .toolbar-grid {
        grid-template-columns: 1fr;
    }

    .app-shell {
        height: auto;
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .app-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        height: auto;
        width: min(82vw, 310px);
        z-index: 40;
        transform: translateX(-110%);
        transition: transform 0.22s ease;
    }

    .app-sidebar.open {
        transform: translateX(0);
    }

    .mobile-only-inline {
        display: inline-flex;
    }

    .desktop-only-inline {
        display: none;
    }

    .mobile-footer {
        display: grid;
    }

    .content-scroll {
        padding-bottom: 6.6rem;
    }

    .topbar {
        gap: 0.8rem;
    }

    .topbar-left {
        flex: 1;
    }
}

@media (max-width: 700px) {
    .login-screen,
    .content-scroll,
    .topbar {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .topbar-actions .lang-switch {
        display: none;
    }

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

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

    .hero-panel,
    .form-panel,
    .surface-panel,
    .modal-card {
        padding: 1rem;
    }

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

    .span-2 {
        grid-column: span 1;
    }

    .search-field {
        max-width: none;
    }

    .cart-row {
        grid-template-columns: minmax(0, 1fr) 88px auto 90px 32px;
    }
}
