/* D.M Store / Premium Retail Workspace. All shared design tokens live here. */
@font-face {
    font-family: Inter;
    src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: Inter;
    src: url("fonts/inter-latin-500-normal.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: Inter;
    src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: Inter;
    src: url("fonts/inter-latin-700-normal.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: Cormorant;
    src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: Cormorant;
    src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}
:root {
    --accent: #947345;
    --accent-dark: #203e34;
    --accent-soft: #e5d7bd;
    --accent-rgb: 148, 115, 69;
    --background: #f7f6f2;
    --surface: #fff;
    --surface-soft: #faf9f6;
    --text: #23342d;
    --muted: #687369;
    --line: #e8e8e0;
    --line-strong: #d9dcd3;
    --white: #fff;
    --danger: #b44340;
    --danger-soft: #fbeceb;
    --warning: #ae740a;
    --warning-soft: #fff5dd;
    --success: #247b51;
    --success-soft: #eaf5ef;
    --conflict: #8c365f;
    --conflict-soft: #f7eaf0;
    --sidebar-text: #bac9c1;
    --sidebar-active: #fff;
    --overlay: #142c266b;
    --receipt-ink: #19261f;
    --receipt-muted: #626e65;
    --receipt-line: #d8ddd7;
    --font: "Inter", system-ui, sans-serif;
    --display: "Cormorant", Georgia, serif;
    --font-size: 13px;
    --font-small: 11px;
    --font-tiny: 10px;
    --font-medium: 14px;
    --font-large: 18px;
    --font-title: 42px;
    --weight: 400;
    --medium: 500;
    --semibold: 600;
    --bold: 700;
    --radius: 0;
    --avatar-radius: 50%;
    --pill-radius: 20px;
    --border-width: 1px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 28px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --page-padding: 32px;
    --header-height: 86px;
    --rail-width: 96px;
    --shadow: 0 8px 28px #20382c07;
    --shadow-hover: 0 12px 30px #20382c0e;
    --shadow-popover: 0 18px 58px #172d2624;
    --transition: 160ms ease;
    --icon-size: 20px;
    --receipt-width: 80mm;
    --chart-height: 270px;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: var(--font);
    font-size: var(--font-size);
    font-weight: var(--weight);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
p {
    margin: 0;
}
h1,
h2 {
    font-family: var(--display);
    font-weight: var(--semibold);
    line-height: 1.1;
    letter-spacing: -0.025em;
}
h1 {
    font-size: var(--font-title);
}
h2 {
    font-size: 34px;
}
h3 {
    font-size: var(--font-large);
    font-weight: var(--semibold);
    letter-spacing: -0.02em;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    color: var(--accent);
}
button,
input,
select {
    font: inherit;
    border-radius: var(--radius);
}
button,
.button {
    border: var(--border-width) solid var(--line-strong);
    padding: var(--space-3) var(--space-5);
    color: var(--text);
    background: var(--surface);
    cursor: pointer;
    transition:
        color var(--transition),
        border-color var(--transition),
        background var(--transition),
        transform var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-weight: var(--medium);
    line-height: 1.4;
}
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
button:not(:disabled):hover {
    border-color: var(--accent);
    color: var(--accent);
}
.primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    font-weight: var(--semibold);
}
.primary:not(:disabled):hover {
    color: var(--white);
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}
.secondary {
    background: var(--surface-soft);
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
input:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.08);
}
input,
select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: var(--border-width) solid var(--line-strong);
    background: var(--surface);
    color: var(--text);
    min-height: 44px;
    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}
input::placeholder {
    color: var(--muted);
    font-size: 12px;
}
label {
    display: block;
    font-size: 12px;
    font-weight: var(--medium);
    margin: 0;
}
label > input,
label > select {
    margin-top: var(--space-2);
}
label > span {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}
label i {
    color: var(--accent);
}
small,
.muted {
    color: var(--muted);
}
small {
    font-size: var(--font-small);
}
strong {
    font-weight: var(--semibold);
}
.eyebrow {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 9px;
    letter-spacing: 0.18em;
    font-weight: var(--semibold);
    color: var(--accent);
    margin-bottom: var(--space-2);
}
.eyebrow-line {
    width: 20px;
    height: 1px;
    background: var(--accent);
    display: inline-block;
}
.heading-dot {
    color: var(--accent);
}
.icon-button {
    border: 0;
    background: transparent;
    padding: var(--space-2);
    color: var(--muted);
    font-size: var(--icon-size);
    min-width: 36px;
    min-height: 36px;
    flex-shrink: 0;
}
.icon-button:not(:disabled):hover {
    background: transparent;
    color: var(--accent);
    border: 0;
}
.icon-button.danger:hover {
    color: var(--danger);
}
.chevron {
    font-size: 9px;
    color: var(--muted);
}
.code-cell {
    font-family: var(--font);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.danger {
    color: var(--danger);
}
[hidden] {
    display: none !important;
}
/* Frontend: rail and an independent retail header. */
.seller-shell {
    display: grid;
    grid-template-columns: var(--rail-width) minmax(0, 1fr);
    min-height: 100vh;
}
.seller-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--accent-dark);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-7) var(--space-2);
    z-index: 25;
}
.rail-logo {
    font-family: var(--display);
    font-size: 30px;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.06em;
    text-align: center;
}
.rail-logo span {
    display: block;
    font: 8px var(--font);
    letter-spacing: 0.25em;
    margin-top: var(--space-2);
    color: var(--accent-soft);
}
.rail-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-12);
    width: 100%;
}
.rail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: var(--space-3) var(--space-1);
    border: 0;
    background: transparent;
    width: 100%;
    position: relative;
    color: var(--sidebar-text);
    font-size: 9px;
    font-weight: var(--medium);
    min-height: 70px;
}
.rail-item i {
    font-size: 24px;
}
.rail-item:hover,
.rail-item.active,
.rail-item:not(:disabled):hover {
    color: var(--white);
    background: #ffffff0b;
    border: 0;
}
.rail-item.active::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    background: var(--accent-soft);
}
.rail-item.active i {
    color: var(--accent-soft);
}
.rail-bottom {
    margin-top: auto;
    text-align: center;
    font-size: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}
.rail-status {
    width: 6px;
    height: 6px;
    background: #8fbba2;
    display: inline-block;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #8fbba214;
}
.rail-bottom small {
    font-size: 8px;
    color: var(--sidebar-text);
}
.seller-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.seller-header {
    min-height: var(--header-height);
    padding: var(--space-4) var(--page-padding);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    position: relative;
    z-index: 20;
}
.seller-header-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}
.brand-emblem {
    border: 1px solid var(--accent-soft);
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: 18px;
}
.wordmark {
    font-family: var(--display);
    font-size: 28px;
    font-weight: var(--semibold);
    letter-spacing: -0.05em;
    line-height: 1;
}
.wordmark span {
    font-weight: var(--medium);
}
.seller-header-brand small {
    display: block;
    font-size: 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 5px;
}
.seller-header-tools,
.admin-header-tools {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}
.sync-group {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}
.sync {
    font-size: 9px;
    color: var(--muted);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sync::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}
.sync[data-state="pending"]::before {
    background: var(--warning);
}
.sync[data-state="error"]::before {
    background: var(--danger);
}
.sync-group .icon-button {
    font-size: 14px;
    min-width: 28px;
    padding: 5px;
}
.workspace-date {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
}
.workspace-date > i {
    color: var(--accent);
    font-size: 17px;
}
.content {
    padding: var(--page-padding);
    min-width: 0;
    flex: 1;
}
.seller-content {
    padding-top: var(--space-7);
}
.page-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-5);
    margin-bottom: var(--space-7);
}
.page-title .muted {
    margin-top: var(--space-2);
    font-size: 12px;
}
.seller-footer {
    padding: var(--space-4) var(--page-padding);
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 9px;
}
.seller-footer span:last-child {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.seller-footer i {
    font-size: 14px;
    color: var(--accent);
}
/* Colour and profile dropdowns. */
.theme-picker,
.profile {
    position: relative;
}
summary {
    cursor: pointer;
    list-style: none;
}
summary::-webkit-details-marker {
    display: none;
}
.theme-summary {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    border: 1px solid var(--line);
    padding: 9px 12px;
    min-height: 38px;
    font-size: 10px;
    background: var(--surface);
    color: var(--text);
}
.theme-summary > i:first-child {
    font-size: 13px;
    color: var(--accent);
}
.selected-theme-dot {
    display: block;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
}
.theme-dropdown,
.profile-dropdown {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    z-index: 80;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-popover);
    width: 320px;
    padding: var(--space-4);
    animation: popoverIn 0.15s ease;
}
.popover-heading {
    border-bottom: 1px solid var(--line);
    padding-bottom: var(--space-3);
    margin-bottom: var(--space-3);
}
.popover-heading strong {
    display: block;
    font-size: 12px;
}
.popover-heading small {
    display: block;
    margin-top: 2px;
    font-size: 10px;
}
.theme-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    max-height: min(390px, 65vh);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.theme-option {
    border: 1px solid transparent;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    font-size: 11px;
    min-height: 36px;
    background: var(--surface);
}
.theme-option:hover {
    background: var(--surface-soft);
}
.theme-option[aria-pressed="true"] {
    border-color: var(--accent-soft);
    background: rgba(var(--accent-rgb), 0.05);
    color: var(--accent);
}
.palette-swatches {
    display: flex;
    flex-shrink: 0;
}
.palette-swatches > span {
    display: block;
    width: 14px;
    height: 20px;
}
.theme-check {
    margin-left: auto;
    font-size: 10px;
    visibility: hidden;
}
.theme-option[aria-pressed="true"] .theme-check {
    visibility: visible;
}
.profile-trigger {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}
.avatar-image {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--surface);
    box-shadow: 0 0 0 1px var(--line-strong);
    object-fit: cover;
}
.profile-name {
    font-size: 11px;
    font-weight: var(--semibold);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-name small {
    display: block;
    font-size: 9px;
    font-weight: var(--weight);
    margin-top: 2px;
}
.profile-dropdown {
    width: 275px;
    padding: var(--space-2);
}
.profile-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-bottom: 1px solid var(--line);
    margin-bottom: var(--space-2);
}
.profile-card img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}
.profile-card strong {
    font-size: 11px;
    display: block;
}
.profile-card small {
    font-size: 9px;
    display: block;
    overflow-wrap: anywhere;
}
.profile-dropdown a,
.profile-dropdown button {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    width: 100%;
    padding: var(--space-3);
    border: 0;
    background: var(--surface);
    font-size: 11px;
    justify-content: flex-start;
}
.profile-dropdown a:hover,
.profile-dropdown button:hover {
    background: var(--surface-soft);
    color: var(--accent);
}
.profile-dropdown i {
    font-size: 17px;
}
.profile-dropdown button {
    color: var(--danger);
}
@keyframes popoverIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Catalog and checkout. */
.pos-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: var(--space-7);
    align-items: start;
}
.catalog-panel {
    min-width: 0;
}
.catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 185px;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}
.search-field,
.category-field {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    min-height: 48px;
    padding: 0 var(--space-4);
    gap: var(--space-2);
}
.search-field:focus-within,
.category-field:focus-within {
    border-color: var(--accent);
}
.search-field > i,
.category-field > i {
    font-size: 18px;
    color: var(--accent);
}
.search-field input,
.category-field select {
    padding: var(--space-3) 0;
    margin: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    min-width: 0;
    font-size: 11px;
}
.search-field kbd {
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 9px;
    font-family: var(--font);
    padding: 3px 5px;
    border: 1px solid var(--line);
}
.catalog-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    font-size: 10px;
    color: var(--muted);
}
.catalog-summary > span {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.catalog-summary i {
    font-size: 14px;
    color: var(--accent);
}
.catalog-summary strong {
    color: var(--text);
}
.catalog-summary small {
    font-size: 9px;
}
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: var(--space-4);
}
.product {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
    background: var(--surface);
    padding: var(--space-5);
    border: 1px solid var(--line);
    min-height: 145px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.product:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: var(--text);
}
.product-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}
.initials {
    width: 54px;
    height: 54px;
    background: rgba(var(--accent-rgb), 0.06);
    border: 1px solid rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    font-family: var(--display);
    font-weight: var(--semibold);
    font-size: 24px;
    display: grid;
    place-items: center;
    letter-spacing: -0.02em;
}
.product-add {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    color: var(--accent);
    font-size: 16px;
}
.product-category {
    text-transform: uppercase;
    color: var(--accent);
    font-size: 8px;
    letter-spacing: 0.12em;
    margin-bottom: 5px;
}
.product strong {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text);
    min-height: 36px;
}
.product-code {
    font-size: 9px;
    color: var(--muted);
    margin-top: 4px;
    letter-spacing: 0.03em;
}
.product-bottom {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: auto;
    padding-top: var(--space-4);
}
.price {
    font-size: 14px;
    color: var(--text);
    font-weight: var(--semibold);
}
.product-bottom small {
    font-size: 8px;
}
.product-stock {
    display: flex;
    align-items: center;
    gap: 5px;
    border-top: 1px solid var(--line);
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    color: var(--muted);
    font-size: 8px;
    white-space: nowrap;
}
.stock-dot {
    height: 4px;
    width: 4px;
    display: inline-block;
    border-radius: 50%;
    background: var(--success);
}
.stock-dot.low {
    background: var(--warning);
}
.stock-dot.out {
    background: var(--danger);
}
.product-step {
    margin-left: auto;
    font-size: 8px;
}
.product-unavailable {
    opacity: 0.6;
}
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    min-width: 0;
}
.cart {
    padding: 0;
    position: sticky;
    top: var(--space-5);
    border-top: 2px solid var(--accent);
    min-width: 0;
}
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6);
    border-bottom: 1px solid var(--line);
}
.cart-header .eyebrow {
    font-size: 8px;
}
.cart-header h3 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 18px;
}
.count-pill {
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    color: var(--accent);
    font-size: 10px;
    font-weight: var(--medium);
}
#cart {
    min-height: 260px;
    max-height: 420px;
    overflow-y: auto;
    padding: 0 var(--space-6);
}
.cart-line {
    border-bottom: 1px solid var(--line);
    padding: var(--space-5) 0;
}
.cart-line:last-child {
    border-bottom: 0;
}
.cart-line-top {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}
.cart-item-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    color: var(--accent);
    font-size: 17px;
    flex-shrink: 0;
}
.cart-line-top > div {
    flex: 1;
    min-width: 0;
}
.cart-line-top strong {
    font-size: 11px;
    display: block;
    overflow-wrap: anywhere;
}
.cart-line-top small {
    font-size: 9px;
    display: block;
    margin-top: 2px;
}
.cart-line-top .icon-button {
    font-size: 17px;
    min-width: 24px;
    padding: var(--space-1);
    color: var(--muted);
}
.cart-line-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    margin-top: var(--space-3);
}
.cart-line-bottom > strong {
    font-size: 12px;
    white-space: nowrap;
}
.cart-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--line-strong);
    height: 30px;
}
.cart-qty button {
    width: 28px;
    height: 28px;
    min-height: 0;
    padding: 0;
    border: 0;
    background: var(--surface);
    font-size: 12px;
}
.cart-qty input {
    width: 56px;
    height: 28px;
    min-height: 0;
    text-align: center;
    padding: 0;
    border: 0;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    font-size: 10px;
    margin: 0;
    -moz-appearance: textfield;
}
.cart-qty input::-webkit-inner-spin-button {
    appearance: none;
}
.cart-summary {
    padding: var(--space-6);
    background: var(--surface-soft);
    border-top: 1px solid var(--line);
}
.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
}
.summary-line strong {
    color: var(--text);
}
.total-line {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: var(--space-3);
    margin: var(--space-5) 0 var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px dashed var(--line-strong);
}
.total-line small {
    display: block;
    font-size: 7px;
    color: var(--accent);
    letter-spacing: 0.15em;
    font-weight: var(--semibold);
    margin-bottom: 3px;
}
.total-line span {
    font-size: 16px;
    font-family: var(--display);
    font-weight: var(--semibold);
}
.total-line > strong {
    font-size: 23px;
    line-height: 1.2;
    letter-spacing: -0.04em;
}
.checkout {
    width: 100%;
    min-height: 49px;
    font-size: 11px;
    padding: var(--space-4);
}
.checkout i {
    font-size: 15px;
}
.checkout kbd {
    background: #ffffff16;
    color: var(--white);
    font-size: 8px;
    padding: 3px 5px;
    font-family: var(--font);
    margin-left: auto;
}
.checkout span {
    flex: 1;
    text-align: left;
}
.checkout-note {
    margin-top: var(--space-3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 8px;
    color: var(--muted);
}
.checkout-note i {
    font-size: 12px;
    color: var(--accent);
}
.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-8) var(--space-4);
    color: var(--muted);
    gap: var(--space-2);
}
.empty strong {
    color: var(--text);
    font-size: 12px;
}
.empty p {
    font-size: 10px;
    line-height: 1.8;
}
.cart-empty {
    min-height: 260px;
}
.cart-empty > span {
    width: 65px;
    height: 65px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    margin-bottom: var(--space-3);
}
.cart-empty i {
    font-size: 30px;
    color: var(--accent);
}
.catalog-empty {
    grid-column: 1/-1;
    min-height: 270px;
    border: 1px solid var(--line);
    background: var(--surface);
}
.catalog-empty > i {
    font-size: 34px;
    color: var(--accent);
    margin-bottom: var(--space-2);
}
/* Backend navigation and professional header. */
.layout {
    display: grid;
    grid-template-columns: 25% minmax(0, 75%);
    min-height: 100vh;
}
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--accent-dark);
    color: var(--sidebar-text);
    padding: var(--space-8) var(--space-6);
    display: flex;
    flex-direction: column;
    z-index: 30;
    overflow-y: auto;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid #ffffff12;
    margin-bottom: var(--space-7);
    color: var(--white);
}
.sidebar-monogram {
    width: 42px;
    height: 42px;
    border: 1px solid #ffffff2a;
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-size: 25px;
    color: var(--accent-soft);
    flex-shrink: 0;
}
.sidebar-brand > span:last-child {
    font-family: var(--display);
    font-size: 25px;
    letter-spacing: -0.04em;
}
.sidebar-brand small {
    display: block;
    font-family: var(--font);
    font-size: 7px;
    letter-spacing: 0.19em;
    color: var(--sidebar-text);
    margin-top: 3px;
}
.nav-caption {
    display: block;
    font-size: 8px;
    font-weight: var(--medium);
    letter-spacing: 0.15em;
    color: var(--sidebar-text);
    opacity: 0.65;
    padding: 0 var(--space-3);
    margin-bottom: var(--space-3);
}
.admin-nav .nav-caption {
    margin-top: var(--space-7);
}
.admin-nav > .nav-link,
.catalog-group > .nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 13px var(--space-3);
    color: var(--sidebar-text);
    font-size: 12px;
    line-height: 1.5;
    position: relative;
    margin-bottom: 4px;
    border-radius: 0;
}
.nav-link > i:first-child {
    font-size: 20px;
    width: 23px;
    flex-shrink: 0;
}
.nav-link span {
    flex: 1;
}
.admin-nav > .nav-link:hover,
.catalog-group > .nav-link:hover {
    background: #ffffff09;
    color: var(--white);
}
.admin-nav .nav-link.active {
    color: var(--white);
    background: #ffffff0d;
    border-left: 2px solid var(--accent-soft);
    padding-left: 10px;
}
.admin-nav .nav-link.active > i,
.active-parent > i:first-child {
    color: var(--accent-soft);
}
.nav-chevron {
    font-size: 9px;
    opacity: 0.6;
    transition: transform var(--transition);
}
.catalog-group[open] .nav-chevron {
    transform: rotate(180deg);
}
.active-parent {
    color: var(--white) !important;
}
.submenu {
    margin: 4px 0 10px 24px;
    border-left: 1px solid #ffffff20;
    padding-left: var(--space-3);
}
.submenu a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 10px 8px;
    font-size: 10px;
    color: var(--sidebar-text);
    position: relative;
}
.submenu a.active {
    color: var(--white);
    background: #ffffff08;
}
.submenu a.active::before {
    content: "";
    position: absolute;
    left: -13px;
    top: 50%;
    width: 5px;
    height: 5px;
    background: var(--accent-soft);
}
.submenu-number {
    font-size: 8px;
    color: var(--accent-soft);
    opacity: 0.65;
}
.submenu a:hover {
    color: var(--white);
}
.sidebar-bottom {
    margin-top: auto;
    padding-top: var(--space-8);
}
.sidebar-bottom > a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border: 1px solid #ffffff20;
    font-size: 11px;
    color: var(--white);
}
.sidebar-bottom > a i {
    font-size: 18px;
    color: var(--accent-soft);
}
.sidebar-bottom > a i:last-child {
    margin-left: auto;
    transform: rotate(180deg);
}
.sidebar-note {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 8px;
    margin-top: var(--space-5);
}
.sidebar-bottom > small {
    display: block;
    color: var(--sidebar-text);
    font-size: 8px;
    margin-top: var(--space-3);
    opacity: 0.7;
}
.workspace {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.admin-header {
    min-height: var(--header-height);
    padding: var(--space-4) var(--page-padding);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    position: relative;
    z-index: 20;
}
.admin-header-start {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 0;
}
.header-breadcrumb {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    font-size: 10px;
    white-space: nowrap;
}
.header-breadcrumb > span {
    color: var(--muted);
}
.header-breadcrumb > i {
    font-size: 7px;
    color: var(--line-strong);
}
.header-breadcrumb strong {
    font-size: 10px;
    font-weight: var(--medium);
}
.header-divider {
    height: 18px;
    width: 1px;
    background: var(--line);
}
.admin-header .theme-picker > summary {
    color: var(--muted);
    font-size: 16px;
}
.admin-header .theme-picker > summary:hover {
    color: var(--accent);
}
#menu,
#closeDrawer {
    display: none;
}
.drawer-overlay {
    display: none;
}
.workspace > footer {
    font-size: 9px;
    color: var(--muted);
    padding: var(--space-4) var(--page-padding);
    border-top: 1px solid var(--line);
}
.widgets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}
.widget {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: var(--space-6);
    box-shadow: var(--shadow);
    position: relative;
    min-height: 130px;
    border-top: 2px solid rgba(var(--accent-rgb), 0.3);
}
.widget > i {
    position: absolute;
    right: var(--space-5);
    top: var(--space-5);
    color: var(--accent);
    font-size: 22px;
}
.widget small {
    display: block;
    font-size: 10px;
    padding-right: var(--space-6);
}
.widget .value {
    display: block;
    font-size: 23px;
    letter-spacing: -0.035em;
    font-weight: var(--semibold);
    margin-top: var(--space-4);
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.widget-note {
    display: block;
    font-size: 8px;
    color: var(--muted);
    margin-top: var(--space-2);
}
.charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}
.chart-wrap {
    height: var(--chart-height);
    position: relative;
    margin-top: var(--space-5);
}
.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--line);
    margin-bottom: var(--space-5);
}
.panel-heading > div {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.panel-heading i {
    font-size: 19px;
    color: var(--accent);
}
.panel-heading h3 {
    font-size: 14px;
}
.section-tag {
    font-size: 8px;
    letter-spacing: 0.12em;
    color: var(--muted);
}
.toolbar {
    display: flex;
    align-items: end;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-6);
}
.toolbar label {
    min-width: 150px;
    max-width: 240px;
    flex: 1;
}
.toolbar button {
    min-height: 44px;
    font-size: 11px;
}
.toolbar > small {
    font-size: 9px;
    align-self: center;
    max-width: 320px;
}
.report-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}
.report-metric {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    background: var(--surface);
    padding: var(--space-5);
    border: 1px solid var(--line);
}
.report-metric > i {
    color: var(--accent);
    font-size: 25px;
}
.report-metric small {
    display: block;
    font-size: 10px;
}
.report-metric strong {
    display: block;
    font-size: 20px;
    letter-spacing: -0.02em;
    margin-top: 5px;
}
.report-panel {
    padding-bottom: var(--space-4);
}
.report-filter {
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--line);
    margin-bottom: var(--space-4);
}
/* Premium tables: matching header/body widths, explicit numbers and financial alignment. */
.table-wrap {
    overflow: auto;
    max-width: 100%;
    min-width: 0;
}
table {
    border-collapse: collapse;
    width: 100%;
    font-size: 11px;
    color: var(--text);
}
.premium-table {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    width: 100%;
    margin: 0 !important;
    border-bottom: 1px solid var(--line) !important;
}
.premium-table thead th {
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 9px;
    font-weight: var(--semibold);
    letter-spacing: 0.045em;
    text-transform: uppercase;
    padding: 15px 18px !important;
    border-bottom: 1px solid var(--line-strong) !important;
    border-top: 1px solid var(--line);
    white-space: nowrap;
    vertical-align: middle;
    text-align: left;
    box-sizing: border-box;
}
.premium-table tbody td {
    padding: 16px 18px !important;
    border-bottom: 1px solid var(--line);
    background: var(--surface) !important;
    vertical-align: middle;
    font-size: 11px;
    white-space: nowrap;
    box-sizing: border-box;
}
.premium-table tbody tr:hover td {
    background: var(--surface-soft) !important;
}
.premium-table .row-number {
    text-align: center !important;
    color: var(--muted);
    font-size: 10px;
    min-width: 48px;
    width: 48px;
    font-variant-numeric: tabular-nums;
}
.premium-table .numeric-col {
    text-align: right !important;
    font-variant-numeric: tabular-nums;
}
.premium-table th.numeric-col {
    padding-right: 28px !important;
}
.premium-table .actions-col {
    text-align: center !important;
}
.premium-table tbody td.actions-col {
    white-space: nowrap;
}
.premium-table thead .sorting,
.premium-table thead .sorting_asc,
.premium-table thead .sorting_desc {
    background-image: none !important;
    position: relative;
}
.premium-table thead .sorting::after,
.premium-table thead .sorting_asc::after,
.premium-table thead .sorting_desc::after {
    content: "↕";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: var(--line-strong);
}
.premium-table thead .sorting_asc::after {
    content: "↑";
    color: var(--accent);
}
.premium-table thead .sorting_desc::after {
    content: "↓";
    color: var(--accent);
}
.dataTables_wrapper {
    width: 100%;
    font-family: var(--font);
    font-size: 11px;
}
.table-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-2) 0 var(--space-5);
}
.table-controls-left,
.table-controls-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    min-width: 0;
}
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dt-buttons {
    float: none !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}
.dataTables_length label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 10px;
    color: var(--muted);
    white-space: nowrap;
}
.dataTables_wrapper .dataTables_length select {
    width: 65px;
    min-height: 34px;
    padding: 6px 8px;
    border: 1px solid var(--line-strong);
    margin: 0;
    background: var(--surface);
    color: var(--text);
    font-size: 10px;
}
.dataTables_filter label {
    position: relative;
}
.dataTables_filter label::before {
    content: "\ebf7";
    font-family: boxicons;
    font-size: 16px;
    position: absolute;
    top: 9px;
    left: 10px;
    color: var(--muted);
}
.dataTables_wrapper .dataTables_filter input {
    margin: 0;
    min-height: 34px;
    width: 190px;
    padding: 8px 12px 8px 32px;
    border: 1px solid var(--line-strong);
    font-size: 10px;
    background: var(--surface);
}
.dt-buttons {
    display: flex !important;
    gap: 5px;
    flex-wrap: wrap;
}
.dt-button {
    background: var(--surface) !important;
    background-image: none !important;
    border: 1px solid var(--line-strong) !important;
    color: var(--muted) !important;
    padding: 8px 10px !important;
    margin: 0 !important;
    font-size: 9px !important;
    line-height: 1.5 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center;
    gap: var(--space-2);
}
.dt-button span {
    display: flex;
    gap: 6px;
    align-items: center;
}
.dt-button i {
    font-size: 10px;
}
.dt-button:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    background: var(--surface-soft) !important;
}
.dataTables_scroll {
    border: 0;
}
.dataTables_scrollHead {
    border-bottom: 0 !important;
}
.dataTables_scrollHeadInner {
    box-sizing: content-box !important;
    padding: 0 !important;
}
.dataTables_scrollHeadInner table {
    margin: 0 !important;
}
.dataTables_scrollBody {
    border-bottom: 0 !important;
}
.dataTables_scrollBody thead th {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    line-height: 0 !important;
}
.dataTables_scrollBody thead th::after {
    display: none !important;
}
.table-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5) 0 var(--space-1);
}
.dataTables_wrapper .dataTables_info {
    float: none;
    padding: 0;
    font-size: 9px;
    color: var(--muted);
}
.dataTables_wrapper .dataTables_paginate {
    float: none;
    padding: 0;
    font-size: 10px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: 1px solid var(--line) !important;
    background: var(--surface) !important;
    padding: 5px 9px !important;
    margin: 0 0 0 4px !important;
    color: var(--muted) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--white) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.4;
    cursor: default;
}
.table-action {
    width: 29px;
    height: 29px;
    padding: 0;
    margin: 0 3px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    background: var(--surface);
    vertical-align: middle;
}
.table-action:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.table-action.danger:hover {
    border-color: var(--danger);
    color: var(--danger);
}
.table-product {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 170px;
}
.table-product-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    font-size: 16px;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.06);
    border: 1px solid rgba(var(--accent-rgb), 0.1);
}
.table-product small {
    display: block;
    font-size: 8px;
    font-weight: var(--weight);
    letter-spacing: 0.04em;
    margin-top: 2px;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 9px;
    font-size: 9px;
    line-height: 1.4;
    font-weight: var(--semibold);
    letter-spacing: 0.015em;
    white-space: nowrap;
}
.status-badge i {
    font-size: 10px;
}
.status-success {
    color: var(--success);
    background: var(--success-soft);
}
.status-warning {
    color: var(--warning);
    background: var(--warning-soft);
}
.status-danger {
    color: var(--danger);
    background: var(--danger-soft);
}
.status-conflict {
    color: var(--conflict);
    background: var(--conflict-soft);
}
.status-inactive {
    background: var(--surface-soft);
    color: var(--muted);
}
.stock-value {
    font-size: 20px;
    font-weight: var(--bold);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.025em;
}
.stock-good {
    color: var(--success);
}
.stock-low {
    color: var(--warning);
}
.stock-out {
    color: var(--danger);
}
.stock-conflict {
    color: var(--conflict);
}
.stock-status {
    font-weight: var(--bold);
    font-size: 10px;
    padding: 8px 10px;
}
.stock-low .stock-dot {
    animation: stockPulse 1.8s infinite;
}
@keyframes stockPulse {
    50% {
        opacity: 0.25;
    }
}
.sync-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    color: var(--success);
}
.sync-badge i {
    font-size: 14px;
}
.sync-badge.pending {
    color: var(--warning);
}
.topup-button {
    font-size: 10px;
    color: var(--accent);
    border-color: var(--accent-soft);
    padding: 8px 10px;
    background: rgba(var(--accent-rgb), 0.03);
}
/* Centered dialogs, calculator and forms. */
dialog {
    padding: 0;
    border: 1px solid var(--accent-soft);
    border-top: 3px solid var(--accent);
    width: min(640px, 94vw);
    max-height: 90dvh;
    margin: auto;
    color: var(--text);
    background: var(--surface);
    box-shadow: var(--shadow-popover);
    border-radius: 0;
    overflow: auto;
}
dialog::backdrop {
    background: var(--overlay);
    backdrop-filter: blur(5px);
}
.dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--line);
    background: var(--surface-soft);
}
.dialog-head .eyebrow {
    font-size: 7px;
    margin-bottom: 3px;
}
.dialog-head h3 {
    font-family: var(--display);
    font-size: 25px;
    font-weight: var(--semibold);
}
.dialog-head .icon-button {
    font-size: 24px;
}
.dialog-body {
    padding: var(--space-6);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}
.form-grid .wide {
    grid-column: 1/-1;
}
.form-grid button.wide {
    margin-top: var(--space-2);
    min-height: 44px;
    font-size: 11px;
}
.form-grid label {
    font-size: 11px;
}
.form-grid label > span {
    color: var(--muted);
}
.form-grid label i {
    font-size: 15px;
}
.form-grid input,
.form-grid select {
    font-size: 12px;
}
.record-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
    margin: 0;
}
.record-details > div {
    border-bottom: 1px solid var(--line);
    padding-bottom: var(--space-3);
}
.record-details dt {
    font-size: 9px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-2);
    font-weight: var(--medium);
}
.record-details dd {
    font-size: 12px;
    margin: 0;
    overflow-wrap: anywhere;
}
.confirmation {
    text-align: center;
    padding: var(--space-4);
}
.confirmation-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-5);
    font-size: 26px;
    background: var(--danger-soft);
    color: var(--danger);
}
.confirmation h4 {
    font-size: 16px;
    margin-bottom: var(--space-3);
}
.confirmation p {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: var(--space-6);
}
.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
}
.danger-button {
    background: var(--danger);
    border-color: var(--danger);
    color: var(--white);
}
.danger-button:not(:disabled):hover {
    background: var(--danger);
    color: var(--white);
    opacity: 0.9;
}
.stock-topup-summary {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--surface-soft);
    border: 1px solid var(--line);
}
.stock-topup-summary i {
    color: var(--accent);
    font-size: 28px;
}
.stock-topup-summary strong {
    display: block;
    font-size: 14px;
}
.stock-topup-summary small {
    display: block;
    margin-top: 4px;
}
dialog[data-kind="calculator"] {
    width: min(390px, 94vw);
}
.calculator-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 0.15em;
}
.calculator-caption i {
    font-size: 19px;
    color: var(--accent);
}
.calc-display {
    margin: var(--space-3) 0 var(--space-5);
    background: var(--accent-dark);
    color: var(--white);
    text-align: right;
    border: 0;
    font-size: 30px;
    
    letter-spacing: -0.03em;
    padding: var(--space-5);
}
.calc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2);
}
.calc-key {
    font-size: 18px;
    min-height: 54px;
    padding: var(--space-3);
    background: var(--surface-soft);
    border-color: var(--line);
}
.calc-operator {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.06);
    font-size: 22px;
}
.calc-equal {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.calc-equal:not(:disabled):hover {
    background: var(--accent-dark);
    color: var(--white);
}
.calculator-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 9px;
    color: var(--muted);
    margin-top: var(--space-5);
}
.calculator-note i {
    font-size: 14px;
}
/* Screen receipt and 80mm printing. */
dialog[data-kind="receipt"] {
    width: min(600px, 96vw);
}
.receipt {
    max-width: 470px;
    margin: 0 auto;
    background: var(--surface);
    color: var(--receipt-ink);
    font-size: 11px;
    line-height: 1.5;
    padding: var(--space-3);
}
.receipt-brand {
    text-align: center;
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--receipt-line);
}
.receipt-emblem {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-soft);
    color: var(--accent);
    font-size: 18px;
    margin-bottom: var(--space-3);
}
.receipt-brand h2 {
    font-size: 38px;
    line-height: 1;
    letter-spacing: -0.04em;
}
.receipt-brand h2 span {
    font-weight: var(--medium);
}
.receipt-brand p {
    font-size: 7px;
    color: var(--receipt-muted);
    letter-spacing: 0.2em;
    margin-top: var(--space-2);
}
.receipt-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    font-size: 9px;
    letter-spacing: 0.1em;
    font-weight: var(--semibold);
    padding: var(--space-5) 0;
}
.receipt-paid {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--success);
    font-size: 8px;
    letter-spacing: 0.08em;
}
.receipt-meta {
    display: grid;
    gap: var(--space-2);
    font-size: 9px;
    margin-bottom: var(--space-5);
}
.receipt-meta > div {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
}
.receipt-meta span {
    color: var(--receipt-muted);
    flex-shrink: 0;
}
.receipt-meta strong {
    text-align: right;
    font-size: 9px;
    overflow-wrap: anywhere;
    min-width: 0;
    max-width: 68%;
}
.receipt-table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}
.receipt-item-col {
    width: 40%;
}
.receipt-qty-col {
    width: 12%;
}
.receipt-price-col {
    width: 23%;
}
.receipt-total-col {
    width: 25%;
}
.receipt-table th {
    background: var(--surface-soft);
    font-size: 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 10px 5px;
    border-top: 1px solid var(--receipt-line);
    border-bottom: 1px solid var(--receipt-line);
    text-align: right;
    white-space: normal;
}
.receipt-table th:first-child {
    text-align: left;
}
.receipt-table td {
    padding: 12px 5px;
    border-bottom: 1px solid var(--receipt-line);
    font-size: 9px;
    text-align: right;
    overflow-wrap: anywhere;
    white-space: normal;
    vertical-align: top;
    font-variant-numeric: tabular-nums;
}
.receipt-table td:first-child {
    text-align: left;
}
.receipt-table td:last-child {
    font-weight: var(--semibold);
}
.receipt-total {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: var(--space-3);
    border-top: 2px solid var(--receipt-ink);
    margin-top: var(--space-5);
    padding-top: var(--space-4);
}
.receipt-total small {
    display: block;
    font-size: 7px;
    letter-spacing: 0.09em;
    color: var(--receipt-muted);
    margin-bottom: 4px;
}
.receipt-total > div > strong {
    font-size: 16px;
}
.receipt-total > strong {
    font-size: 24px;
    letter-spacing: -0.035em;
}
.receipt-footer {
    text-align: center;
    margin-top: var(--space-7);
    padding-top: var(--space-5);
    border-top: 1px dashed var(--receipt-line);
}
.receipt-footer > i {
    display: block;
    font-size: 19px;
    color: var(--accent);
    margin-bottom: var(--space-2);
}
.receipt-footer strong {
    display: block;
    font-size: 11px;
}
.receipt-footer p {
    font-size: 9px;
    color: var(--receipt-muted);
    margin-top: var(--space-2);
}
.receipt-footer span {
    display: block;
    font-size: 7px;
    letter-spacing: 0.07em;
    color: var(--receipt-muted);
    margin-top: var(--space-4);
}
.receipt-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    margin-top: var(--space-6);
    padding-top: var(--space-5);
    border-top: 1px solid var(--line);
}
.receipt-actions button {
    font-size: 11px;
}
/* Login pages use the palette belonging to their workspace. */
.login {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
}
.login-story {
    background: var(--accent-dark);
    color: var(--white);
    padding: 8vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.login-story::after {
    content: "";
    position: absolute;
    right: -200px;
    bottom: -220px;
    width: 550px;
    height: 550px;
    border: 1px solid #ffffff16;
    border-radius: 50%;
    pointer-events: none;
}
.brand {
    font-family: var(--display);
    font-weight: var(--semibold);
    font-size: 30px;
    letter-spacing: -0.035em;
}
.brand b {
    font-weight: var(--medium);
    color: var(--accent);
}
.login-story .brand {
    margin-bottom: var(--space-12);
}
.login-story .brand b {
    color: var(--accent-soft);
}
.login-story .eyebrow {
    color: var(--accent-soft);
    margin-bottom: var(--space-5);
}
.login-story h1 {
    font-size: 64px;
    font-weight: var(--medium);
    line-height: 1.05;
}
.login-story > p {
    max-width: 340px;
    color: var(--sidebar-text);
    font-size: 12px;
    line-height: 1.9;
    margin-top: var(--space-6);
}
.story-stats {
    display: flex;
    gap: var(--space-7);
    border-top: 1px solid #ffffff20;
    margin-top: var(--space-12);
    padding-top: var(--space-6);
}
.story-stats strong {
    display: block;
    color: var(--accent-soft);
    font-family: var(--display);
    font-size: 24px;
}
.story-stats small {
    display: block;
    color: var(--sidebar-text);
    font-size: 9px;
}
.login-form {
    padding: var(--space-12);
    width: 100%;
    max-width: 470px;
    align-self: center;
    justify-self: center;
    animation: popoverIn 0.4s ease;
}
.login-form .brand {
    margin-bottom: var(--space-12);
}
.login-form h2 {
    font-size: 42px;
    margin-bottom: var(--space-3);
}
.login-form form {
    margin: var(--space-7) 0;
}
.login-form label {
    margin-bottom: var(--space-5);
    font-size: 11px;
}
.login-form label i {
    color: var(--accent);
    margin-right: 4px;
}
.login-form button {
    width: 100%;
    min-height: 48px;
    font-size: 12px;
}
.login-form > small {
    font-size: 9px;
}
#toast {
    position: fixed;
    right: var(--space-6);
    top: var(--space-6);
    padding: var(--space-4) var(--space-5);
    max-width: 380px;
    background: var(--accent-dark);
    color: var(--white);
    box-shadow: var(--shadow-popover);
    z-index: 150;
    display: none;
}
#toast.show {
    display: block;
}
#toast.error {
    background: var(--danger);
}
/* Responsive layouts. */
@media (min-width: 1700px) {
    :root {
        --page-padding: 40px;
    }
    .pos-layout {
        grid-template-columns: minmax(0, 1fr) 390px;
    }
    .products {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    }
    .product {
        min-height: 260px;
    }
}
@media (max-width: 1200px) {
    :root {
        --page-padding: 24px;
    }
    .seller-header-tools,
    .admin-header-tools {
        gap: 12px;
    }
    .seller-header .profile-name {
        display: none;
    }
    .pos-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 20px;
    }
    .products {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    .product {
        padding: 16px;
    }
    .sidebar {
        padding: 24px 18px;
    }
    .admin-header .sync {
        display: none;
    }
    .charts {
        grid-template-columns: 1fr;
    }
    .table-controls {
        flex-wrap: wrap;
    }
    .table-controls-right {
        margin-left: auto;
    }
    .header-breadcrumb > span,
    .header-breadcrumb > i {
        display: none;
    }
    .catalog-summary small {
        display: none;
    }
}
@media (max-width: 960px) {
    .seller-header-brand .brand-emblem {
        display: none;
    }
    .seller-header .sync {
        display: none;
    }
    .pos-layout {
        grid-template-columns: minmax(0, 1fr) 295px;
        gap: 16px;
    }
    .catalog-toolbar {
        grid-template-columns: 1fr;
    }
    .product {
        min-height: 230px;
    }
    .product-stock {
        flex-wrap: wrap;
    }
    .product-step {
        margin-left: 0;
        width: 100%;
        padding-left: 9px;
    }
    .cart-header,
    .cart-summary {
        padding: 20px;
    }
    #cart {
        padding: 0 20px;
    }
    .profile-name {
        display: none;
    }
    .widgets {
        gap: 12px;
    }
    .widget {
        padding: 18px;
    }
    .widget .value {
        font-size: 19px;
    }
    .layout {
        grid-template-columns: 25% minmax(0, 75%);
    }
    .sidebar-brand > span:last-child {
        font-size: 22px;
    }
    .sidebar-monogram {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    .admin-nav > .nav-link,
    .catalog-group > .nav-link {
        font-size: 11px;
        padding: 12px 8px;
        gap: 8px;
    }
    .submenu {
        margin-left: 18px;
        padding-left: 8px;
    }
    .submenu a {
        font-size: 9px;
        padding: 9px 5px;
    }
    .report-metric {
        padding: 16px;
        gap: 12px;
    }
    .report-metric strong {
        font-size: 17px;
    }
    .workspace-date {
        font-size: 9px;
    }
}
@media (max-width: 760px) {
    :root {
        --rail-width: 70px;
        --page-padding: 16px;
        --font-title: 34px;
        --header-height: 74px;
    }
    .seller-sidebar {
        padding: 24px 5px;
    }
    .rail-logo {
        font-size: 25px;
    }
    .rail-logo span {
        font-size: 6px;
    }
    .rail-nav {
        margin-top: 32px;
        gap: 8px;
    }
    .rail-item {
        font-size: 8px;
        min-height: 62px;
    }
    .rail-item i {
        font-size: 23px;
    }
    .rail-item.active::before {
        left: -5px;
    }
    .rail-bottom {
        font-size: 7px;
    }
    .rail-bottom small {
        font-size: 7px;
    }
    .seller-header {
        padding: 12px 16px;
        gap: 8px;
        flex-wrap: wrap;
    }
    .wordmark {
        font-size: 24px;
    }
    .seller-header-brand small {
        font-size: 7px;
    }
    .seller-header-tools {
        gap: 6px;
    }
    .seller-header #fullscreen {
        display: none;
    }
    .theme-summary {
        padding: 7px 8px;
        font-size: 9px;
        gap: 6px;
        min-height: 34px;
    }
    .theme-summary .theme-label {
        display: none;
    }
    .seller-header .sync-group .icon-button {
        font-size: 12px;
    }
    .seller-header .profile-trigger > .chevron {
        display: none;
    }
    .avatar-image {
        width: 32px;
        height: 32px;
    }
    .page-title {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 24px;
        flex-direction: column;
    }
    .page-title .muted {
        font-size: 10px;
    }
    .eyebrow {
        font-size: 7px;
        letter-spacing: 0.14em;
    }
    .workspace-date {
        font-size: 9px;
    }
    .pos-layout {
        grid-template-columns: 1fr;
    }
    .catalog-toolbar {
        grid-template-columns: 1fr;
    }
    .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .product {
        padding: 12px;
        min-height: 218px;
    }
    .initials {
        width: 43px;
        height: 43px;
        font-size: 21px;
    }
    .product-top {
        margin-bottom: 12px;
    }
    .product-category {
        font-size: 7px;
    }
    .product strong {
        font-size: 11px;
        min-height: 34px;
    }
    .product-code {
        font-size: 8px;
    }
    .price {
        font-size: 12px;
    }
    .product-bottom {
        gap: 3px;
        flex-wrap: wrap;
    }
    .product-bottom small {
        font-size: 7px;
    }
    .product-stock {
        font-size: 7px;
        gap: 4px;
        margin-top: 8px;
        padding-top: 8px;
    }
    .product-step {
        font-size: 7px;
    }
    .cart {
        position: static;
        margin-top: 8px;
    }
    .cart-header {
        padding: 20px;
    }
    #cart {
        min-height: 170px;
        max-height: 400px;
    }
    .cart-empty {
        min-height: 200px;
    }
    .seller-footer {
        flex-direction: column;
        gap: 4px;
        font-size: 8px;
    }
    .seller-footer span:last-child {
        font-size: 8px;
    }
    .theme-dropdown {
        position: fixed;
        top: 76px;
        right: 12px;
        width: min(300px, calc(100vw - 24px));
    }
    .profile-dropdown {
        position: fixed;
        top: 76px;
        right: 12px;
        width: min(280px, calc(100vw - 24px));
    }
    .layout {
        display: block;
    }
    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 280px;
        height: 100dvh;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        padding: 28px 24px;
        z-index: 60;
    }
    .drawer-open .sidebar {
        transform: translateX(0);
    }
    .drawer-open .drawer-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: var(--overlay);
        backdrop-filter: blur(3px);
        z-index: 55;
    }
    #menu,
    #closeDrawer {
        display: inline-flex;
    }
    .drawer-close {
        position: absolute;
        right: 8px;
        top: 10px;
        color: var(--sidebar-text);
    }
    .admin-header {
        padding: 12px 16px;
        gap: 8px;
        min-height: 70px;
    }
    .admin-header-tools {
        gap: 5px;
    }
    .admin-header .header-divider {
        margin: 0 3px;
    }
    .admin-header .icon-button {
        font-size: 17px;
        min-width: 28px;
        padding: 5px;
    }
    .admin-header .sync-group {
        display: none;
    }
    .header-breadcrumb strong {
        font-size: 9px;
    }
    .admin-header .profile-trigger {
        gap: 5px;
    }
    .admin-header .profile-trigger > .chevron {
        display: none;
    }
    .widgets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .widget {
        padding: 16px;
        min-height: 115px;
    }
    .widget small {
        font-size: 9px;
        max-width: 100px;
        padding-right: 18px;
    }
    .widget > i {
        right: 12px;
        top: 15px;
        font-size: 18px;
    }
    .widget .value {
        font-size: 18px;
    }
    .panel {
        padding: 18px;
        margin-bottom: 18px;
    }
    .panel-heading h3 {
        font-size: 12px;
    }
    .section-tag {
        display: none;
    }
    .charts {
        display: block;
    }
    .toolbar {
        gap: 12px;
    }
    .toolbar label {
        min-width: 130px;
        max-width: none;
    }
    .toolbar > small {
        font-size: 8px;
    }
    .toolbar button {
        font-size: 10px;
    }
    .table-controls {
        align-items: start;
        gap: 12px;
    }
    .table-controls-left {
        flex-wrap: wrap;
        gap: 10px;
        flex: 1;
    }
    .table-controls-right {
        width: 100%;
        margin-left: 0;
    }
    .dataTables_filter {
        width: 100% !important;
    }
    .dataTables_filter label {
        display: block;
    }
    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
    }
    .dt-button {
        padding: 7px 8px !important;
        font-size: 8px !important;
    }
    .table-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .premium-table thead th {
        font-size: 8px;
        padding: 12px 14px !important;
    }
    .premium-table tbody td {
        font-size: 10px;
        padding: 13px 14px !important;
    }
    .report-summary {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .report-metric {
        padding: 14px;
    }
    .report-metric > i {
        font-size: 22px;
    }
    .report-metric strong {
        font-size: 20px;
    }
    .chart-wrap {
        height: 240px;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .record-details {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .dialog-head {
        padding: 16px 20px;
    }
    .dialog-body {
        padding: 20px;
    }
    dialog {
        max-height: 92dvh;
    }
    .receipt {
        padding: 0;
    }
    .receipt-brand h2 {
        font-size: 34px;
    }
    .receipt-meta strong {
        font-size: 8px;
    }
    .receipt-table th,
    .receipt-table td {
        font-size: 8px;
        padding: 10px 3px;
    }
    .receipt-total > strong {
        font-size: 21px;
    }
    .login {
        display: block;
    }
    .login-story {
        display: none;
    }
    .login-form {
        min-height: 100vh;
        padding: 32px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .login-form .brand {
        margin-bottom: 40px;
    }
}
@media (max-width: 380px) {
    :root {
        --rail-width: 60px;
        --page-padding: 12px;
    }
    .seller-header-brand {
        width: 100%;
        padding-bottom: 6px;
        border-bottom: 1px solid var(--line);
    }
    .seller-header-tools {
        justify-content: flex-end;
        width: 100%;
    }
    .theme-dropdown,
    .profile-dropdown {
        top: 116px;
    }
    .product {
        padding: 10px;
    }
    .product-stock {
        font-size: 6px;
    }
    .product-step {
        font-size: 6px;
    }
    .checkout-note {
        font-size: 7px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
@media print {
    body {
        background: #fff !important;
        margin: 0 !important;
    }
    body > * {
        display: none !important;
    }
    body > #printReceipt {
        display: block !important;
        width: calc(var(--receipt-width) - 4mm);
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    #printReceipt .receipt {
        font-family: Arial, sans-serif;
        width: 100%;
        max-width: none;
        padding: 0;
        color: #000;
        background: #fff;
    }
    #printReceipt .receipt-brand {
        padding-bottom: 3mm;
    }
    #printReceipt .receipt-emblem {
        display: none;
    }
    #printReceipt .receipt-brand h2 {
        font-family: Georgia, serif;
        font-size: 25px;
    }
    #printReceipt .receipt-brand p {
        font-size: 6px;
        color: #000;
    }
    #printReceipt .receipt-title {
        padding: 3mm 0;
        font-size: 8px;
    }
    #printReceipt .receipt-paid {
        color: #000;
        font-size: 7px;
    }
    #printReceipt .receipt-meta {
        gap: 1mm;
        margin-bottom: 3mm;
        font-size: 7px;
    }
    #printReceipt .receipt-meta strong,
    #printReceipt .receipt-meta span {
        font-size: 8px;
        color: #000;
    }
    #printReceipt .receipt-table th,
    #printReceipt .receipt-table td {
        font-size: 9px;
        padding: 2mm 0.7mm;
        background: #fff !important;
        color: #000;
    }
    #printReceipt .receipt-table tr {
        break-inside: avoid;
    }
    #printReceipt .receipt-total {
        margin-top: 3mm;
        padding-top: 3mm;
        break-inside: avoid;
        border-color: #000;
    }
    #printReceipt .receipt-total small {
        font-size: 6px;
        color: #000;
    }
    #printReceipt .receipt-total > strong {
        font-size: 18px;
    }
    #printReceipt .receipt-total > div > strong {
        font-size: 13px;
    }
    #printReceipt .receipt-footer {
        margin-top: 5mm;
        padding-top: 3mm;
        break-inside: avoid;
    }
    #printReceipt .receipt-footer > i {
        display: none;
    }
    #printReceipt .receipt-footer strong {
        font-size: 9px;
    }
    #printReceipt .receipt-footer p {
        font-size: 7px;
        color: #000;
    }
    #printReceipt .receipt-footer span {
        font-size: 6px;
        color: #000;
    }
    .no-print {
        display: none !important;
    }
    @page {
        size: auto;
        margin: 2mm;
    }
}

.panel-heading h3 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.inventory-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-5);
    font-size: 10px;
    margin: -6px 0 var(--space-6);
}
.inventory-legend span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: var(--medium);
}
.inventory-legend span:nth-child(1) {
    color: var(--success);
}
.inventory-legend span:nth-child(2) {
    color: var(--warning);
}
.inventory-legend span:nth-child(3) {
    color: var(--danger);
}
.inventory-legend span:nth-child(4) {
    color: var(--conflict);
}
.inventory-legend i {
    font-size: 14px;
}
.form-note {
    align-self: center;
    font-size: 10px;
    line-height: 1.7;
}
.form-note i {
    color: var(--accent);
    margin-right: 4px;
}

.installer-card {
    width: min(560px, 94vw);
    margin: 10vh auto;
    padding: var(--space-10);
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    box-shadow: var(--shadow);
}
.installer-card h1 {
    font-size: 38px;
    margin-bottom: var(--space-4);
}
.installer-card > .muted {
    font-size: 12px;
    margin-bottom: var(--space-5);
}
.installer-database {
    padding: var(--space-4);
    background: var(--surface-soft);
    border: 1px solid var(--line);
    margin: var(--space-6) 0;
    overflow-wrap: anywhere;
}
.installer-database strong {
    font-size: 11px;
}
.installer-database p {
    font-size: 11px;
    margin: var(--space-2) 0;
}
.installer-database small {
    font-size: 10px;
    display: block;
}
.installer-card form button {
    width: 100%;
    margin-bottom: var(--space-5);
}

.catalog-more {
    margin-top: var(--space-5);
    width: 100%;
    border-color: var(--line);
    font-size: 11px;
    color: var(--accent);
    background: var(--surface);
}

@media screen {
    #printReceipt {
        display: none !important;
    }
}
/* D.M edition: clearer typography, compact catalog and professional payment flow. */
body {
    font-size: 14px;
}
.wordmark,
.sidebar-brand > span,
.receipt-brand h2 {
    font-family: Inter, sans-serif;
    font-weight: 800;
    letter-spacing: -1.5px;
}
.wordmark {
    font-size: 34px;
}
.sidebar-brand {
    padding-top: 34px;
    padding-bottom: 32px;
}
.sidebar-brand > span {
    font-size: 36px;
}
.sidebar-brand small {
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 9px;
}
.products {
    gap: 7px !important;
}
.product {
    padding: 15px;
}
.product strong {
    font-size: 14px;
    line-height: 1.5;
}
.product-stock {
    flex-wrap: wrap;
    gap: 4px;
}
.product-step {
    margin-left: auto;
}
.product-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px 8px;
    flex-wrap: wrap;
}
.product-pagination[hidden] {
    display: none;
}
.product-pagination button {
    min-width: 38px;
    height: 38px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
    font-weight: 700;
}
.product-pagination button.active {
    background: var(--accent-dark);
    color: #fff;
    border-color: var(--accent-dark);
}
.product-pagination button:disabled {
    opacity: 0.35;
}
.product-pagination small {
    margin-left: 10px;
    color: var(--muted);
}
.unit-description {
    font-weight: 500;
    color: var(--muted);
    font-size: 12px;
}
.cart-line-top {
    grid-template-columns: 1fr auto;
    display: grid;
}
.cart-line-bottom {
    gap: 6px;
}
.cart-unit-price {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
}
.cart-qty {
    flex-shrink: 0;
}
.cart-qty input {
    width: 42px;
}
.cart-line-bottom > strong {
    font-size: 12px;
}
.internet-status {
    display: flex;
    gap: 5px;
    align-items: center;
    font-size: 11px;
    color: #236344;
    white-space: nowrap;
}
.internet-status.offline {
    color: #9d542c;
}
.internet-status i {
    font-size: 17px;
}
.report-filters {
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.report-filters input {
    height: 42px;
    min-width: 160px;
}
.filter-description {
    font-size: 13px;
    color: var(--accent-dark);
    font-weight: 600;
    margin-bottom: 24px;
}
.seller-sale-list > div,
.seller-sale-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.seller-sale-total {
    font-size: 19px;
    margin-top: 12px;
}
.seller-sale-list time {
    font-size: 13px;
}
.calc-expression {
    text-align: right;
    min-height: 36px;
    color: var(--muted);
    overflow-wrap: anywhere;
    padding: 8px 0;
}
.calc-memory {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 10px 0;
}
.calc-memory button {
    border: 1px solid var(--line);
    padding: 8px;
    background: var(--accent-soft);
}
.calc-equal {
    grid-column: 1/-1;
}
.calc-grid .calc-key {
    font-size: 18px;
}
.payment-modal {
    padding: 8px 4px 12px;
}
.payment-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}
.payment-tabs button {
    height: 62px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 19px;
}
.payment-tabs button[aria-pressed="true"] {
    background: var(--accent-dark);
    color: white;
}
.payment-input-label {
    display: block;
}
.payment-input-label input {
    width: 100%;
    height: 74px;
    font-size: 28px;
    padding: 15px 20px;
    border: 1px solid var(--line);
}
.payment-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 21px;
    margin: 15px 0;
    color: #53625a;
}
.payment-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 22px;
}
.payment-actions button {
    height: 64px;
    font-size: 19px;
}
.payment-error {
    color: #a23232;
    min-height: 18px;
    font-size: 13px;
    margin: 10px 0;
}
#dialog[data-kind="payment"] {
    width: min(560px, calc(100vw - 24px));
    max-width: 560px;
}
#dialog[data-kind="payment"] .dialog-head h3 {
    font-size: 30px;
    font-family: Inter, sans-serif;
    letter-spacing: -1px;
    font-weight: 700;
}
#dialog[data-kind="payment"] .dialog-head .eyebrow {
    font-size: 16px;
}
#dialog[data-kind="payment"] .dialog-head .eyebrow:before {
    content: "CHECKOUT";
    font-size: 16px;
}
#dialog[data-kind="payment"] .dialog-head .eyebrow {
    font-size: 0;
}
.receipt-brand h2 {
    font-size: 32px;
}
.receipt {
    margin-left: auto;
    margin-right: auto;
}
.receipt-table {
    font-size: 12px;
}
.receipt-meta {
    font-size: 11px;
}
@media (max-width: 720px) {
    .internet-status span {
        display: none;
    }
    .payment-tabs {
        gap: 6px;
    }
    .payment-tabs button {
        height: 48px;
        font-size: 15px;
    }
    .payment-line {
        font-size: 18px;
    }
    .payment-actions button {
        font-size: 16px;
        height: 54px;
    }
    .cart-unit-price {
        font-size: 12px;
    }
    .product strong {
        font-size: 14px;
    }
}
@media print {
    #printReceipt {
        margin: 0 auto !important;
        width: 76mm !important;
        max-width: 100% !important;
        padding: 0 !important;
        float: none !important;
    }
    .receipt {
        margin: 0 auto !important;
        width: 100%;
        font-family: Arial, sans-serif;
    }
    .receipt-brand h2 {
        font-size: 24px;
    }
    .receipt-table {
        font-size: 9px;
    }
    .receipt-meta {
        font-size: 8px;
    }
    @page {
        size: auto;
        margin: 5mm;
    }
}

.sidebar-brand > span:last-child {
    font-family: var(--font);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1.6px;
}
.rail-logo {
    font-family: var(--font);
    font-size: 25px;
    letter-spacing: -1.2px;
    font-weight: 800;
}
.login .brand {
    font-family: var(--font);
    font-weight: 800;
    letter-spacing: -1.5px;
}
.payment-actions .primary {
    background: var(--accent-dark);
}
.product-bottom small,
.product-stock,
.product-step {
    font-size: 11px;
}
.cart-line-top strong {
    font-size: 14px;
}
.product-top {
    margin-bottom: 4px;
}
.product-bottom {
    padding-top: 4px;
    margin-top: 2px;
}
.product strong {
    font-size: 12px;
    line-height: 1;
    min-height: 3px;
}
.cart-header {
    padding: 10px 15px;
}
.cart-summary {
    padding: 10px 15px;
}
.cart-line {
    padding: 6px 8px;
}

#cart {
    padding: 0 12px;
}
.total-line {
    margin: 10px 0 var(--space-6);
}
.dialog-head {
    padding: 10px 15px;
}
.dialog-body {
    padding: 10px 20px 10px 20px;
}
.receipt-footer {
    margin-top: 8px;
}
.calc-display{
    padding: 10px;
}
