:root {
    --color-primary: #8b1a1a;
    --color-primary-hover: #a02020;
    --color-accent: #c9a84c;
    --color-accent-soft: rgba(201, 168, 76, 0.14);
    --color-bg: #efe3d2;
    --color-bg-soft: #f7efe3;
    --color-surface: #ffffff;
    --color-surface-alt: #f5ebdc;
    --color-surface-hover: rgba(201, 168, 76, 0.12);
    --color-text: #3b2222;
    --color-muted: #7f6666;
    --color-border: rgba(139, 26, 26, 0.14);
    --color-border-strong: rgba(201, 168, 76, 0.48);
    --color-danger: #b33b3b;
    --shadow-lg: 0 18px 40px rgba(94, 58, 33, 0.08);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(201, 168, 76, 0.18), transparent 26%),
        radial-gradient(circle at left center, rgba(139, 26, 26, 0.08), transparent 28%),
        linear-gradient(180deg, #fbf6ef 0%, var(--color-bg) 100%);
    color: var(--color-text);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition:
        color 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

button,
input,
select,
textarea {
    font: inherit;
    color: var(--color-text);
}

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

.shell-topnav {
    position: sticky;
    top: 0;
    z-index: 30;
    background:
        linear-gradient(180deg, rgba(24, 22, 20, 0.99), rgba(44, 39, 35, 0.97)),
        linear-gradient(90deg, rgba(201, 168, 76, 0.10), transparent 38%);
    border-bottom: 1px solid rgba(201, 168, 76, 0.24);
    box-shadow: 0 10px 24px rgba(33, 24, 19, 0.18);
}

.shell-nav-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 8px 18px;
}

.brand-link {
    display: inline-flex;
    flex: 0 0 auto;
}

.brand-card {
    padding: 8px 14px;
    border: 1px solid rgba(201, 168, 76, 0.34);
    border-radius: 14px;
    background: linear-gradient(145deg, #7e1717 0%, #a11f1f 100%);
    box-shadow: 0 10px 20px rgba(139, 26, 26, 0.18);
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.brand-mark,
.brand-subtitle,
h1,
h2 {
    font-family: Georgia, "Times New Roman", serif;
}

.brand-mark {
    font-size: 1.1rem;
    color: #f5deb0;
    text-align: center;
    line-height: 1;
}

.brand-subtitle {
    margin-top: 2px;
    text-align: center;
    letter-spacing: 0.22rem;
    font-size: 0.56rem;
    color: #f7ebca;
}

.top-nav {
    display: flex;
    align-items: center;
    align-content: center;
    flex-wrap: nowrap;
    gap: 5px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    scrollbar-width: none;
    row-gap: 0;
    padding-bottom: 0;
}

.nav-link {
    padding: 7px 9px;
    border: 1px solid rgba(255, 228, 139, 0.06);
    border-radius: 12px;
    color: rgba(255, 250, 243, 0.78);
    transition: 160ms ease;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 210px;
    position: relative;
    font-size: 0.81rem;
    background: rgba(255, 255, 255, 0.02);
}

.nav-link[href$="/logout"] {
    display: none;
}

.nav-link span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    flex: 0 0 auto;
}

.nav-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-link:hover,
.nav-link.active {
    color: #ffe48b;
    border-color: rgba(255, 228, 139, 0.30);
    background: rgba(255, 228, 139, 0.14);
}

.nav-link.active {
    box-shadow: inset 0 -2px 0 #ffe48b, 0 8px 16px rgba(255, 228, 139, 0.10);
}

.nav-link.active::before {
    content: "";
    position: absolute;
    inset: 6px auto 6px 6px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffe48b, #c9a84c);
}

.user-menu {
    position: relative;
    flex: 0 0 auto;
}

.user-menu summary {
    list-style: none;
}

.user-menu summary::-webkit-details-marker {
    display: none;
}

.user-menu-trigger {
    height: 34px;
    max-width: 132px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 228, 139, 0.14);
    border-radius: 10px;
    color: rgba(255, 250, 243, 0.92);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    white-space: nowrap;
}

.user-avatar {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(255, 228, 139, 0.18);
    color: #ffe48b;
    font-size: 0.72rem;
    font-weight: 800;
}

.user-name {
    max-width: 74px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8rem;
    font-weight: 700;
}

.user-caret {
    flex: 0 0 auto;
    color: #ffe48b;
    font-size: 0.82rem;
}

.user-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 190px;
    display: none;
    padding: 6px;
    border: 1px solid rgba(201, 168, 76, 0.28);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 32px rgba(33, 24, 19, 0.16);
    z-index: 80;
}

.user-menu[open] .user-menu-panel {
    display: grid;
}

.user-menu-panel a,
.user-menu-panel button {
    width: 100%;
    display: block;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text);
    text-align: left;
    font-size: 0.86rem;
    cursor: pointer;
}

.user-menu-panel a:hover,
.user-menu-panel button:hover {
    color: var(--color-primary);
    background: rgba(201, 168, 76, 0.12);
}

.main-content {
    padding: 18px 24px 30px;
    background:
        linear-gradient(180deg, rgba(255, 250, 243, 0.52), rgba(239, 227, 210, 0.28));
}

.auth-page {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(24, 22, 20, 0.96), rgba(66, 36, 31, 0.84)),
        linear-gradient(135deg, rgba(201, 168, 76, 0.20), rgba(139, 26, 26, 0.22));
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: min(430px, 100%);
    padding: 28px;
    border: 1px solid rgba(201, 168, 76, 0.28);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 235, 220, 0.96));
    box-shadow: 0 24px 60px rgba(24, 18, 16, 0.26);
}

.auth-brand {
    display: flex;
    margin-bottom: 18px;
}

.auth-card h1 {
    margin: 8px 0 22px;
    font-size: 2rem;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-form label {
    display: grid;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 700;
}

.auth-form .primary-button {
    width: 100%;
    justify-content: center;
}

.auth-messages {
    display: grid;
    gap: 6px;
}

.account-panel {
    max-width: 520px;
}

.account-form {
    display: grid;
    gap: 16px;
}

.account-form label {
    display: grid;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 700;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px 18px;
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(245, 235, 220, 0.76));
    box-shadow: 0 10px 24px rgba(94, 58, 33, 0.06);
}

.page-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar h1 {
    margin: 2px 0 0;
    font-size: 2.05rem;
}

.topbar-actions,
.form-actions,
.print-actions {
    display: flex;
    gap: 10px;
}

.table-export-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

.eyebrow {
    margin: 0;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.18rem;
    font-size: 0.78rem;
}

.panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, var(--color-surface-alt) 100%);
    border: 1px solid rgba(201, 168, 76, 0.22);
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 22px;
    transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.panel:hover,
.brand-card:hover {
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.15);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 20px;
}

.pos-grid {
    grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.85fr);
}

.pos-main-stack {
    display: grid;
    gap: 20px;
}

.pos-customer-panel,
.pos-payment-panel {
    height: fit-content;
}

.metric-card h2 {
    margin: 12px 0 0;
    font-size: 2rem;
}

.profit-metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.profit-metrics-grid .metric-card {
    padding: 16px 18px;
}

.profit-metrics-grid .metric-card h2 {
    margin-top: 8px;
    font-size: 1.35rem;
}

.profit-report-table {
    width: 100%;
}

.profit-report-table th,
.profit-report-table td {
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.profit-report-table .profit-product-column {
    width: 220px;
    min-width: 160px;
    white-space: normal;
}

.profit-report-table .profit-qty-column {
    width: 104px;
    min-width: 92px;
}

.profit-report-table .profit-money-wide-column {
    width: 160px;
    min-width: 132px;
}

.profit-report-table .profit-money-column {
    width: 126px;
    min-width: 108px;
}

.profit-report-table .profit-rate-column {
    width: 112px;
    min-width: 96px;
}

.profit-report-table .profit-rate-wide-column {
    width: 134px;
    min-width: 112px;
}

.profit-report-table .sortable-column {
    min-width: 0;
    padding-right: 52px;
}

.profit-report-table .table-header-label {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.metric-label,
.muted,
.empty-state,
.helper-text,
.input-hint {
    color: var(--color-muted);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.table-wrap {
    overflow-x: auto;
    min-height: 260px;
    border: 1px solid rgba(201, 168, 76, 0.34);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
}

table {
    width: 100%;
    border-collapse: collapse;
    color: var(--color-text);
    background: transparent;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(139, 26, 26, 0.08);
    text-align: left;
    vertical-align: middle;
}

.table-wrap th,
.table-wrap td {
    border-right: 1px solid rgba(201, 168, 76, 0.18);
}

.table-wrap th:last-child,
.table-wrap td:last-child {
    border-right: 0;
}

th {
    position: relative;
    color: var(--color-primary);
    white-space: nowrap;
    background: rgba(255, 250, 240, 0.98);
    border-bottom-color: rgba(201, 168, 76, 0.34);
}

.low-stock-row,
.stock-status-low {
    background: rgba(196, 45, 45, 0.34);
}

.low-stock-row td,
.stock-status-low td {
    border-bottom-color: rgba(196, 45, 45, 0.48);
}

.stock-status-critical {
    background: rgba(214, 171, 38, 0.30);
}

.stock-status-critical td {
    border-bottom-color: rgba(214, 171, 38, 0.46);
}

.stock-status-healthy {
    background: rgba(47, 150, 81, 0.24);
}

.stock-status-healthy td {
    border-bottom-color: rgba(47, 150, 81, 0.38);
}

tbody tr {
    transition: background-color 160ms ease, color 160ms ease;
}

tbody tr:hover {
    background: rgba(201, 168, 76, 0.08);
    color: var(--color-text);
}

tbody tr:hover td,
tbody tr:hover .muted,
tbody tr:hover a {
    color: var(--color-text);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(201, 168, 76, 0.34);
    background: rgba(201, 168, 76, 0.12);
    color: var(--color-primary);
}

.warning {
    background: rgba(201, 168, 76, 0.16);
}

.stock-palette-info {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
}

.stock-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.stock-legend-swatch {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 1px solid rgba(139, 26, 26, 0.12);
}

.stock-legend-healthy {
    background: rgba(47, 150, 81, 0.9);
}

.stock-legend-critical {
    background: rgba(214, 171, 38, 0.92);
}

.stock-legend-low {
    background: rgba(196, 45, 45, 0.94);
}

.flash-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.flash-message {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(201, 168, 76, 0.32);
}

.flash-message.success {
    background: rgba(201, 168, 76, 0.14);
}

.flash-message.error {
    background: rgba(179, 59, 59, 0.10);
    border-color: rgba(179, 59, 59, 0.20);
}

.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1300;
    display: grid;
    gap: 12px;
    width: min(360px, calc(100vw - 32px));
}

.toast {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--color-border-strong);
    background: rgba(255, 255, 255, 0.98);
    color: var(--color-text);
    box-shadow: 0 16px 30px rgba(58, 37, 24, 0.12);
}

.toast.success {
    border-color: rgba(201, 168, 76, 0.45);
}

.toast.error {
    border-color: rgba(179, 59, 59, 0.32);
}

.busy-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(247, 243, 237, 0.72);
    backdrop-filter: blur(8px);
    z-index: 1500;
}

.busy-overlay.is-visible {
    display: flex;
}

.busy-card {
    min-width: 220px;
    padding: 24px 28px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(201, 168, 76, 0.35);
    box-shadow: 0 18px 40px rgba(58, 37, 24, 0.12);
    text-align: center;
}

.busy-cube {
    width: 46px;
    height: 46px;
    margin: 0 auto 16px;
    position: relative;
    animation: busy-spin 1.6s linear infinite;
}

.busy-cube span {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: linear-gradient(145deg, var(--color-accent), var(--color-primary));
    box-shadow: 0 6px 14px rgba(139, 26, 26, 0.18);
}

.busy-cube span:nth-child(1) { top: 0; left: 0; }
.busy-cube span:nth-child(2) { top: 0; right: 0; }
.busy-cube span:nth-child(3) { bottom: 0; left: 0; }
.busy-cube span:nth-child(4) { bottom: 0; right: 0; }

@keyframes busy-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid var(--color-border);
    cursor: pointer;
    text-decoration: none;
    transition:
        background-color 160ms ease,
        color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.primary-button {
    background: var(--color-primary);
    color: #ffffff;
    font-weight: 700;
    border-color: rgba(201, 168, 76, 0.38);
}

.ghost-button {
    background: rgba(201, 168, 76, 0.05);
    color: var(--color-text);
    border-color: rgba(201, 168, 76, 0.28);
}

.primary-button:hover,
.primary-button:focus-visible {
    background: var(--color-primary-hover);
    color: #ffffff;
    border-color: rgba(201, 168, 76, 0.55);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.15);
}

.ghost-button:hover,
.ghost-button:focus-visible {
    background: rgba(201, 168, 76, 0.15);
    color: var(--color-primary);
    border-color: rgba(201, 168, 76, 0.4);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.15);
}

.danger-button {
    background: var(--color-danger);
}

.danger-button:hover,
.danger-button:focus-visible {
    background: #c34a4a;
}

.danger-outline {
    color: var(--color-danger);
    border-color: rgba(179, 59, 59, 0.24);
    background: rgba(179, 59, 59, 0.05);
}

.danger-outline:hover,
.danger-outline:focus-visible {
    color: #ffffff;
    background: var(--color-danger);
    border-color: var(--color-danger);
}

.filter-bar,
.compact-form,
.form-grid {
    display: grid;
    gap: 14px;
}

.filter-bar {
    grid-template-columns: 2fr 1fr 1fr auto;
}

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

.returns-launch-form {
    margin-left: auto;
    min-width: min(420px, 100%);
}

.returns-launch-form input {
    min-width: 180px;
}

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

.form-grid .full-span {
    grid-column: 1 / -1;
}

.form-page-header {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-primary);
    font-weight: 700;
}

.required-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.required-label::after {
    content: "*";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(179, 59, 59, 0.12);
    color: var(--color-danger);
    font-size: 0.85rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    color: var(--color-text);
    background: #ffffff;
    border: 1px solid rgba(139, 26, 26, 0.14);
    border-radius: 14px;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease,
        color 160ms ease;
}

input:hover,
select:hover,
textarea:hover {
    background: rgba(201, 168, 76, 0.05);
    border-color: rgba(201, 168, 76, 0.4);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: rgba(201, 168, 76, 0.55);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.is-disabled-field,
input:disabled,
select:disabled,
textarea:disabled {
    background: rgba(201, 168, 76, 0.10);
    color: rgba(59, 34, 34, 0.54);
    border-color: rgba(139, 26, 26, 0.12);
    cursor: not-allowed;
}

select option,
datalist option {
    background: #ffffff;
    color: var(--color-text);
}

.form-error {
    color: var(--color-danger);
    margin: 8px 0 0;
    font-size: 0.9rem;
}

.input-hint {
    margin: 8px 0 0;
    font-size: 0.9rem;
}

.inline-stock-editor {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.compact-actions {
    flex-wrap: nowrap;
}

.admin-action-form {
    display: inline-flex;
    margin: 0;
}

.inline-action-form {
    display: inline-flex;
    margin: 0;
}

.icon-action-button {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(201, 168, 76, 0.28);
    background: rgba(201, 168, 76, 0.06);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.icon-action-button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-action-button:hover,
.icon-action-button:focus-visible {
    background: rgba(201, 168, 76, 0.18);
    border-color: rgba(201, 168, 76, 0.42);
    color: var(--color-primary);
    transform: translateY(-1px);
}

.icon-action-danger {
    color: var(--color-danger);
    border-color: rgba(179, 59, 59, 0.22);
    background: rgba(179, 59, 59, 0.06);
}

.icon-action-danger:hover,
.icon-action-danger:focus-visible {
    color: #ffffff;
    background: var(--color-danger);
    border-color: var(--color-danger);
}

.icon-action-button[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    font-size: 0.78rem;
    color: #ffffff;
    background: rgba(59, 34, 34, 0.92);
    padding: 6px 8px;
    border-radius: 8px;
    transition: opacity 140ms ease, transform 140ms ease;
}

.icon-action-button:hover::after,
.icon-action-button:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.inline-stock-editor input {
    min-width: 82px;
    width: 92px;
    margin: 0;
}

.inline-stock-editor .ghost-button {
    min-height: 42px;
    white-space: nowrap;
}

.inline-stock-editor .icon-action-button {
    flex: 0 0 auto;
}

.stock-cell {
    vertical-align: middle;
}

.summary-box {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.customer-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.customer-form-grid .full-span {
    grid-column: 1 / -1;
}

.customer-lookup-box,
.customer-recent-box {
    margin-bottom: 16px;
}

.customer-lookup-box {
    position: relative;
}

.customer-recent-box {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(201, 168, 76, 0.18);
    background: rgba(201, 168, 76, 0.04);
}

.customer-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 8;
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(201, 168, 76, 0.32);
    box-shadow: 0 18px 34px rgba(58, 37, 24, 0.14);
}

.customer-search-results[hidden] {
    display: none !important;
}

.customer-search-results:empty {
    display: none !important;
}

.customer-search-results.is-hidden {
    display: none !important;
}

.customer-search-item,
.customer-recent-chip {
    width: 100%;
    display: grid;
    gap: 4px;
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(201, 168, 76, 0.18);
    background: rgba(201, 168, 76, 0.05);
    color: var(--color-text);
}

.customer-search-item strong,
.customer-recent-chip strong {
    color: var(--color-primary);
}

.customer-search-item span,
.customer-recent-chip span {
    color: var(--color-muted);
    font-size: 0.92rem;
}

.customer-search-item:hover,
.customer-search-item:focus-visible,
.customer-recent-chip:hover,
.customer-recent-chip:focus-visible {
    background: rgba(201, 168, 76, 0.14);
    border-color: rgba(201, 168, 76, 0.36);
}

.customer-search-empty {
    padding: 8px 4px;
    color: var(--color-muted);
}

.customer-recent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.customer-recent-list {
    display: grid;
    gap: 8px;
}

.customer-recent-header .ghost-button,
.compact-ghost-button {
    min-height: 36px;
    padding: 0 14px;
}

.customer-bottom-field textarea {
    min-height: 112px;
    resize: vertical;
}

.summary-readonly {
    background: rgba(201, 168, 76, 0.08);
    color: var(--color-primary);
    font-weight: 700;
    cursor: default;
}

.section-heading-spaced {
    margin-top: 24px;
}

.detail-list {
    display: grid;
    gap: 10px;
}

.detail-list-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(139, 26, 26, 0.08);
}

.detail-list-row span {
    color: var(--color-muted);
}

.detail-list-row strong {
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.summary-input-wrap {
    width: 146px;
}

.summary-input {
    text-align: right;
    font-weight: 700;
}

.grand-total {
    padding-top: 12px;
    border-top: 1px solid rgba(139, 26, 26, 0.10);
}

.sale-breakdown {
    margin-top: 0;
}

.wide-button {
    width: 100%;
    margin-top: 16px;
}

.empty-state a:hover {
    color: var(--color-accent);
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    position: relative;
    flex-wrap: wrap;
}

.table-toolbar-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.table-toolbar-chooser {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.inline-threshold-form {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.inline-threshold-form input {
    width: 120px;
    min-width: 120px;
}

.table-pagination-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.table-page-size-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-muted);
    font-size: 0.88rem;
}

.table-page-size-select {
    width: auto;
    min-width: 88px;
    padding: 8px 34px 8px 12px;
}

.table-page-button {
    min-width: 38px;
    padding-inline: 0;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1;
}

.table-page-info {
    color: var(--color-muted);
    font-size: 0.88rem;
    min-width: 170px;
    text-align: right;
}

@media (max-width: 900px) {
    .products-summary-bar {
        flex-direction: column;
    }

    .products-summary-section {
        padding-left: 0;
        padding-top: 12px;
        border-left: 0;
        border-top: 1px dashed rgba(201, 168, 76, 0.34);
    }
}

.table-footer-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.products-summary-bar {
    flex: 1 1 460px;
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(201, 168, 76, 0.28);
    background:
        linear-gradient(135deg, rgba(201, 168, 76, 0.12), rgba(255, 255, 255, 0.96)),
        rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(58, 37, 24, 0.08);
}

.products-summary-title {
    min-width: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    color: var(--color-primary);
}

.products-summary-title strong {
    font-size: 1rem;
}

.products-summary-eyebrow {
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--color-accent);
}

.products-summary-content {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.products-summary-section {
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 14px;
    border-left: 1px dashed rgba(201, 168, 76, 0.34);
}

.products-summary-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-muted);
}

.products-summary-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.products-summary-chip {
    min-width: 112px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(201, 168, 76, 0.24);
}

.products-summary-chip-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted);
}

.products-summary-chip strong {
    color: var(--color-primary);
    font-size: 0.95rem;
    line-height: 1.2;
}

.products-summary-bar {
    flex: 1 1 520px;
    padding: 6px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.products-summary-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid rgba(201, 168, 76, 0.32);
    color: var(--color-text);
    font-size: 0.95rem;
}

.products-summary-inline-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}

.products-summary-inline-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
}

.products-summary-inline-item {
    color: var(--color-text);
    white-space: nowrap;
}

.products-summary-inline-item strong {
    color: var(--color-primary);
}

.products-table-footer td {
    padding: 14px 12px;
    border-top: 2px solid rgba(201, 168, 76, 0.34);
    background: rgba(255, 250, 240, 0.96);
    color: var(--color-text);
    font-size: 0.94rem;
    font-weight: 700;
}

.products-table-footer .products-table-footer-label {
    color: var(--color-primary);
    white-space: nowrap;
}

.products-table-footer td[data-summary-key] {
    color: var(--color-primary);
}

.products-table-footer.is-empty td[data-summary-key] {
    color: var(--color-muted);
}

.table-group-zone {
    min-width: 280px;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px dashed rgba(201, 168, 76, 0.45);
    border-radius: 12px;
    background: rgba(201, 168, 76, 0.06);
    color: var(--color-muted);
}

.table-group-zone.is-drag-over {
    background: rgba(201, 168, 76, 0.14);
    border-color: rgba(201, 168, 76, 0.75);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.table-group-zone-text {
    font-size: 0.88rem;
}

.table-group-clear.is-hidden {
    display: none;
}

.xlsx-action-button {
    gap: 10px;
}

.xlsx-action-button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.table-toolbar-toggle::after {
    content: "▾";
    margin-left: 8px;
    font-size: 0.78rem;
}

.column-chooser-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: auto;
    z-index: 20;
    min-width: 220px;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(201, 168, 76, 0.35);
    box-shadow: 0 16px 32px rgba(58, 37, 24, 0.12);
}

.column-chooser-menu.is-open {
    display: grid;
}

.column-chooser-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
}

.column-chooser-item input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--color-accent);
}

.table-filter-row th {
    padding: 8px 10px 12px;
    background: rgba(201, 168, 76, 0.05);
}

.table-filter-cell {
    min-width: 120px;
}

.table-filter-select {
    width: 100%;
    min-width: 110px;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.table-filter-disabled {
    background: transparent;
}

.is-filtered-out {
    display: none;
}

.is-paged-out {
    display: none;
}

.table-group-row td {
    padding: 10px 12px;
    background: rgba(139, 26, 26, 0.06);
    border-bottom: 1px solid rgba(201, 168, 76, 0.18);
}

.table-group-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(201, 168, 76, 0.16);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.84rem;
}

.sortable-column {
    cursor: pointer;
    user-select: none;
    position: relative;
    min-width: max-content;
    padding-right: 64px;
}

.table-header-shell {
    display: inline-flex;
    align-items: center;
    max-width: none;
}

.table-header-label {
    display: inline-block;
    max-width: none;
    line-height: 1.2;
    vertical-align: middle;
    white-space: nowrap;
    overflow-wrap: normal;
}

.sortable-column::after {
    content: "⇅";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(127, 102, 102, 0.75);
    font-size: 0.74rem;
}

.sortable-column.sort-asc::after {
    content: "↑";
    color: var(--color-primary);
}

.sortable-column.sort-desc::after {
    content: "↓";
    color: var(--color-primary);
}

.table-column-filter {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.table-column-filter-trigger {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
    border: 1px solid rgba(160, 171, 187, 0.34);
    background: rgba(255, 255, 255, 0.96);
    color: #7d8898;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(36, 44, 58, 0.06);
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.table-column-filter-trigger:hover,
.table-column-filter-trigger:focus-visible,
.table-column-filter-trigger.is-active {
    border-color: rgba(149, 63, 49, 0.38);
    color: var(--color-primary);
    background: rgba(149, 63, 49, 0.08);
    box-shadow: 0 4px 10px rgba(149, 63, 49, 0.14);
}

.table-column-filter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    line-height: 1;
}

.table-column-filter-icon svg {
    width: 12px;
    height: 12px;
    display: block;
    fill: currentColor;
}

.table-column-filter-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: auto;
    width: 308px;
    max-width: min(308px, calc(100vw - 24px));
    display: none;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(201, 168, 76, 0.34);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 32px rgba(58, 37, 24, 0.16);
    color: var(--color-text);
    z-index: 80;
}

.table-column-resize-handle {
    position: absolute;
    top: 0;
    right: -4px;
    width: 10px;
    height: 100%;
    cursor: col-resize;
    z-index: 7;
}

.table-column-resize-handle::after {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(201, 168, 76, 0.22);
    transition: background 160ms ease;
}

th:hover .table-column-resize-handle::after,
.table-column-resize-handle:hover::after {
    background: rgba(149, 63, 49, 0.42);
}

.table-column-filter-menu.is-open {
    display: grid;
}

.table-column-filter-menu-head,
.table-column-filter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.table-column-filter-menu-title {
    font-size: 0.92rem;
    color: var(--color-primary);
}

.table-column-filter-clear,
.table-column-filter-select-all,
.table-column-filter-deselect-all {
    border: 0;
    background: transparent;
    color: var(--color-accent);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.table-column-filter-search-wrap {
    display: block;
}

.table-column-filter-mode-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.table-column-filter-mode-toggle {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(201, 168, 76, 0.34);
    background: rgba(255, 255, 255, 0.98);
    color: var(--color-text);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}

.table-column-filter-mode-current {
    font-size: 0.8rem;
    color: var(--color-muted);
    white-space: nowrap;
}

.table-column-filter-mode-menu {
    position: absolute;
    top: 38px;
    left: 0;
    min-width: 132px;
    display: none;
    padding: 8px 0;
    border-radius: 12px;
    border: 1px solid rgba(201, 168, 76, 0.26);
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 12px 22px rgba(58, 37, 24, 0.14);
    z-index: 3;
}

.inventory-count-detail-heading {
    justify-content: flex-start;
    align-items: flex-start;
    gap: 16px;
}

.inventory-count-detail-heading .topbar-actions {
    margin: 0;
}

.inventory-count-overview-panel {
    display: grid;
    grid-template-columns: minmax(300px, 1.05fr) minmax(420px, 1.25fr);
    gap: 16px;
    align-items: start;
    padding: 18px 22px;
}

.inventory-count-overview-main {
    display: grid;
    gap: 8px;
    align-content: start;
    min-width: 0;
}

.inventory-count-overview-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.inventory-count-overview-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.inventory-count-overview-copy h2 {
    margin: 0;
    font-size: clamp(1.3rem, 1.9vw, 1.85rem);
    line-height: 1.05;
}

.inventory-count-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(201, 168, 76, 0.22);
    background: rgba(201, 168, 76, 0.08);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.inventory-count-status-pill.is-approved {
    color: #0f7a43;
    background: rgba(15, 122, 67, 0.10);
    border-color: rgba(15, 122, 67, 0.18);
}

.inventory-count-status-pill.is-draft {
    color: #9b5d00;
    background: rgba(201, 168, 76, 0.12);
    border-color: rgba(201, 168, 76, 0.24);
}

.inventory-count-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inventory-count-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 5px 10px;
    border-radius: 10px;
    border: 1px solid rgba(201, 168, 76, 0.22);
    background: rgba(201, 168, 76, 0.07);
    color: var(--color-text);
    font-size: 0.9rem;
}

.inventory-count-meta-item strong {
    color: var(--color-primary);
    font-weight: 700;
}

.inventory-count-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-content: start;
}

.inventory-count-metrics-grid .metric-card {
    min-width: 0;
    padding: 14px 15px;
    border-radius: 14px;
    min-height: 0;
}

.inventory-count-metrics-grid .metric-card strong {
    font-size: 1.55rem;
    line-height: 1;
}

.inventory-count-metrics-grid .metric-card span {
    margin-top: 4px;
    font-size: 0.9rem;
}

@media (max-width: 1080px) {
    .inventory-count-overview-panel {
        grid-template-columns: 1fr;
    }

    .inventory-count-overview-topline {
        flex-wrap: wrap;
    }

    .inventory-count-metrics-grid {
        grid-template-columns: 1fr;
    }
}

.count-detail-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 18px;
}

.count-detail-actions form {
    margin: 0;
}

.table-column-filter-mode-menu.is-open {
    display: grid;
}

.table-column-filter-mode-option {
    border: 0;
    background: transparent;
    text-align: left;
    padding: 9px 12px;
    cursor: pointer;
    color: var(--color-text);
    font-size: 0.84rem;
}

.table-column-filter-mode-option:hover,
.table-column-filter-mode-option.is-active {
    background: rgba(201, 168, 76, 0.12);
    color: var(--color-primary);
}

.table-column-filter-criteria-wrap {
    display: block;
}

.table-column-filter-criteria {
    width: 100%;
    min-width: 0;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 0.88rem;
}

.table-column-filter-search {
    width: 100%;
    min-width: 0;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.table-column-filter-options {
    max-height: 240px;
    display: grid;
    gap: 4px;
    overflow: auto;
    padding-right: 4px;
    overflow-x: hidden;
}

.table-column-filter-option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    padding: 7px 8px;
    border-radius: 10px;
    color: var(--color-text);
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.table-column-filter-option:hover {
    background: rgba(201, 168, 76, 0.12);
}

.table-column-filter-option input {
    margin: 0;
    accent-color: var(--color-accent);
    justify-self: center;
}

.table-column-filter-option-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.35;
}

.table-column-filter-option:has(input:checked) {
    background: rgba(149, 63, 49, 0.10);
    color: var(--color-primary);
    font-weight: 700;
}

.table-column-filter-empty,
.table-column-filter-status {
    font-size: 0.8rem;
    color: var(--color-muted);
}

.table-column-filter-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 4px;
}

.table-column-filter-apply,
.table-column-filter-cancel {
    min-width: 84px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.table-column-filter-apply {
    border: 1px solid rgba(149, 63, 49, 0.16);
    background: var(--color-primary);
    color: #ffffff;
}

.table-column-filter-cancel {
    border: 1px solid rgba(201, 168, 76, 0.4);
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-text);
}

.modal-copy-stack {
    display: grid;
    gap: 18px;
}

.is-hidden-column {
    display: none;
}

.drag-over-column {
    box-shadow: inset -3px 0 0 rgba(201, 168, 76, 0.55);
}

.is-dragging-column {
    opacity: 0.45;
}

.modal-shell {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    padding: 24px;
}

.modal-shell.is-open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(59, 34, 34, 0.24);
    backdrop-filter: blur(5px);
}

.modal-dialog {
    position: relative;
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(201, 168, 76, 0.4);
    box-shadow: 0 28px 70px rgba(59, 34, 34, 0.18);
}

.modal-compact .modal-dialog {
    width: min(480px, calc(100vw - 32px));
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 22px 0;
}

.modal-body {
    padding: 22px;
}

.modal-close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.3);
    background: rgba(201, 168, 76, 0.08);
    color: var(--color-text);
    font-size: 1.4rem;
}

.modal-close:hover {
    background: rgba(201, 168, 76, 0.15);
    color: var(--color-primary);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.confirm-modal-details[hidden] {
    display: none !important;
}

.confirm-modal-details {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(201, 168, 76, 0.22);
    background: rgba(201, 168, 76, 0.06);
    max-height: 260px;
    overflow: auto;
}

.confirm-record-list {
    display: grid;
    gap: 10px;
}

.confirm-record-item {
    display: grid;
    gap: 3px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(139, 26, 26, 0.08);
}

.confirm-record-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.confirm-record-code {
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.86rem;
    color: var(--color-primary);
}

.confirm-record-name {
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.25;
}

.confirm-record-list.is-compact .confirm-record-code {
    font-size: 0.78rem;
}

.confirm-record-list.is-compact .confirm-record-name {
    font-size: 0.84rem;
}

.modal-loading {
    padding: 32px 0;
    text-align: center;
    color: var(--color-muted);
}

.modal-inline-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 18px;
}

.upload-result-panel {
    margin-top: 20px;
    margin-bottom: 0;
}


.result-list {
    display: grid;
    gap: 8px;
}

.tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-shortcuts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.admin-shortcut-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(201, 168, 76, 0.24);
    background: linear-gradient(180deg, rgba(255, 253, 247, 0.94) 0%, rgba(244, 234, 213, 0.88) 100%);
    color: var(--color-text);
    box-shadow: 0 10px 22px rgba(68, 41, 22, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-shortcut-card:hover,
.admin-shortcut-card.active {
    transform: translateY(-1px);
    border-color: rgba(201, 168, 76, 0.48);
    box-shadow: 0 14px 26px rgba(122, 78, 35, 0.14);
}

.admin-shortcut-card.active {
    background: linear-gradient(180deg, rgba(255, 246, 216, 0.96) 0%, rgba(246, 224, 168, 0.92) 100%);
}

.admin-shortcut-label {
    font-weight: 600;
    line-height: 1.35;
}

.admin-shortcut-count {
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(139, 26, 26, 0.08);
    color: var(--color-primary);
}

.tab-link {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(201, 168, 76, 0.24);
    background: rgba(201, 168, 76, 0.04);
    color: var(--color-text);
}

.tab-link:hover,
.tab-link.active {
    background: rgba(201, 168, 76, 0.15);
    color: var(--color-primary);
    border-color: rgba(201, 168, 76, 0.4);
}

.multiplier-chip {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.22);
    line-height: 1.2;
}

.multiplier-chip strong {
    font-size: 0.88rem;
}

.multiplier-chip span {
    font-size: 0.8rem;
    color: var(--color-primary);
}

.checkbox-field {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--color-text);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent);
}

.back-button {
    min-width: 86px;
}

.print-page {
    background: #f6f2eb;
    padding: 24px;
}

.table-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--color-muted);
}

.bulk-selection-info {
    margin-bottom: 10px;
}

.bulk-compact-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bulk-action-select {
    min-width: 170px;
}

.bulk-label-sheet {
    width: min(100%, 56mm);
    display: grid;
    grid-template-columns: repeat(auto-fill, 56mm);
    gap: 4mm;
    justify-content: center;
    align-content: start;
    margin: 0 auto;
}

.bulk-label-item {
    width: 56mm;
    break-inside: avoid;
    page-break-inside: avoid;
}

.compact-fashion-label-sheet {
    width: 56mm;
}

.compact-label-print-page:not(.bulk-label-print-page) .compact-fashion-label-sheet,
.bulk-label-sheet {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.compact-label-print-page:not(.bulk-label-print-page) .compact-fashion-label-sheet {
    width: min(92vw, 56mm);
}

.compact-label-print-page:not(.bulk-label-print-page) .compact-fashion-label {
    transform: none;
    transform-origin: top center;
}

.compact-fashion-label {
    width: 56mm;
    height: 40mm;
    min-height: 40mm;
    padding: 2.2mm 2.6mm 1.8mm;
    border-radius: 1.4mm;
    border: 0.25mm solid #111111;
    background: #ffffff;
    display: block;
    position: relative;
    box-shadow: none;
    overflow: hidden;
    box-sizing: border-box;
    page-break-inside: avoid;
    break-inside: avoid;
}

.compact-fashion-label-tier {
    position: absolute;
    top: 1.6mm;
    right: 1.6mm;
    width: 5.2mm;
    height: 5.2mm;
    border: 0.25mm solid #111111;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3mm;
    line-height: 1;
    font-weight: 900;
    color: #111111;
    background: #ffffff;
    z-index: 2;
}

.compact-fashion-label-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.8mm;
    position: absolute;
    top: 2.7mm;
    left: 2.8mm;
    right: 8.4mm;
}

.compact-fashion-label-brand {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.7mm;
    line-height: 0.96;
    font-weight: 800;
    color: #121212;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.05mm;
}

.compact-fashion-label-brand span {
    display: block;
    white-space: nowrap;
}

.compact-fashion-label-name {
    position: absolute;
    top: 11.2mm;
    left: 2.8mm;
    right: 2.8mm;
    font-size: 3.35mm;
    line-height: 1.08;
    font-weight: 800;
    color: #121212;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: center;
}

.compact-fashion-label-meta {
    display: flex;
    justify-content: space-between;
    gap: 1.6mm;
    align-items: baseline;
    position: absolute;
    top: 18.9mm;
    left: 2.8mm;
    right: 2.8mm;
    font-size: 3.15mm;
    color: #111111;
    font-weight: 800;
}

.compact-fashion-label-chip {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 800;
}

.compact-fashion-label-size {
    flex: 0 1 auto;
    font-size: 3.15mm;
}

.compact-fashion-label-code {
    flex: 0 0 auto;
    max-width: 59%;
    font-size: 2.9mm;
    font-weight: 900;
    text-align: right;
    letter-spacing: 0.01em;
}

.compact-fashion-label-price {
    font-weight: 800;
    font-size: 4mm;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: right;
}

.compact-fashion-label-barcode-wrap {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: absolute;
    left: 0.35mm;
    right: 0.35mm;
    top: 23.0mm;
    bottom: 0.8mm;
    align-items: center;
    overflow: hidden;
}

.compact-fashion-label-barcode {
    margin-top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.compact-fashion-label-barcode svg {
    width: 100%;
    height: 15.2mm;
    display: block;
}

.compact-fashion-label .barcode-human {
    font-size: 2.45mm;
    line-height: 1.05;
    letter-spacing: 0.01em;
    text-align: center;
    color: #111111;
    white-space: nowrap;
    font-weight: 800;
    margin-bottom: 0.2mm;
}

.label-sheet,
.receipt-card {
    margin: 0 auto;
}

.label-sheet {
    width: 90mm;
}

.label-card {
    width: 72mm;
    min-height: 42mm;
    background: #ffffff;
    border: 1px solid rgba(201, 168, 76, 0.42);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(58, 37, 24, 0.10);
    padding: 10mm 7mm 8mm;
}

.label-brand {
    color: var(--color-primary);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.label-name {
    margin-top: 4px;
    font-size: 1rem;
    font-weight: 700;
}

.label-meta {
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.label-price {
    margin-top: 8px;
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.barcode-visual {
    margin-top: 8px;
}

.barcode-visual svg {
    display: block;
    max-width: 100%;
    height: auto;
}

.barcode-human {
    margin-top: 4px;
    letter-spacing: 0.18rem;
    font-size: 0.82rem;
    text-align: center;
}

.fashion-label-sheet {
    width: 116mm;
}

.fashion-label-card {
    width: 108mm;
    min-height: 66mm;
    padding: 7mm 8mm 0;
    border-radius: 0;
    border: 1.6px solid #121212;
    box-shadow: none;
    background:
        radial-gradient(circle at center, rgba(214, 196, 152, 0.12), transparent 58%),
        linear-gradient(180deg, #fbf8f1 0%, #f6f1e6 100%);
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 5mm;
    overflow: hidden;
}

.fashion-label-ornament {
    position: relative;
    height: 10mm;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fashion-label-ornament::before {
    content: "";
    position: absolute;
    left: -8mm;
    right: -8mm;
    top: 50%;
    border-top: 1.4px solid #121212;
    transform: translateY(-50%);
}

.fashion-label-ornament-dot {
    position: relative;
    z-index: 1;
    width: 8mm;
    height: 8mm;
    border-radius: 999px;
    border: 1.4px solid #121212;
    background: #f8f3e8;
}

.fashion-label-top {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 8mm;
    align-items: start;
}

.fashion-label-brand-block {
    color: #111111;
    text-shadow: 0.6px 0.6px 0 #000000;
}

.fashion-label-brand {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 800;
    font-size: 18pt;
    line-height: 0.92;
    letter-spacing: -0.03em;
}

.fashion-label-brand-second {
    margin-top: 2mm;
}

.fashion-label-copy {
    display: grid;
    gap: 3mm;
    padding-top: 1mm;
    color: #111111;
    text-align: right;
}

.fashion-label-copy-title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 10.5pt;
    font-style: italic;
    line-height: 1.2;
}

.fashion-label-copy-text {
    margin: 0;
    font-size: 10pt;
    line-height: 1.2;
}

.fashion-label-size-band {
    border: 1.4px solid #151515;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 4mm;
    padding: 3.5mm 4mm;
    min-height: 15mm;
}

.fashion-label-size-title {
    font-size: 10.5pt;
    letter-spacing: 0.02em;
    color: #111111;
}

.fashion-label-sizes {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2mm;
    align-items: center;
}

.fashion-label-size-chip {
    min-height: 9mm;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111111;
    font-size: 10pt;
    border: 1px solid transparent;
}

.fashion-label-size-chip.is-active {
    background: #111111;
    color: #ffffff;
}

.fashion-label-bottom {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 6mm;
    align-items: end;
    padding-bottom: 3mm;
}

.fashion-label-barcode-wrap {
    display: grid;
    gap: 1.4mm;
}

.fashion-label-barcode {
    margin-top: 0;
}

.fashion-label-barcode svg {
    width: 100%;
    height: auto;
}

.fashion-label-price-block {
    display: grid;
    justify-items: end;
    align-content: center;
    gap: 1.5mm;
    color: #111111;
}

.fashion-label-price-caption {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11.5pt;
    font-style: italic;
}

.fashion-label-price-value {
    font-size: 18pt;
    line-height: 1;
    letter-spacing: -0.03em;
}

.fashion-label-footer {
    margin: 0 -8mm;
    height: 9mm;
    background: #050505;
}

.receipt-card {
    max-width: 880px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(201, 168, 76, 0.42);
    box-shadow: 0 12px 28px rgba(58, 37, 24, 0.10);
    padding: 28px;
}

.receipt-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.receipt-header h1 {
    margin: 6px 0;
}

.receipt-meta {
    display: grid;
    gap: 8px;
    min-width: 240px;
}

.receipt-summary {
    max-width: 360px;
    margin-left: auto;
}

.thermal-receipt-page {
    background: #f3eee6;
}

.thermal-slip {
    width: 72.1mm;
    max-width: calc(100vw - 24px);
    margin: 0 auto;
    background: #ffffff;
    color: #000000;
    padding: 8px 8px 10px;
    box-shadow: 0 18px 30px rgba(33, 22, 14, 0.12);
    border-radius: 10px;
    box-sizing: border-box;
    overflow: hidden;
    font-family: "Courier New", Courier, monospace;
    font-size: 11.9px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-rendering: geometricPrecision;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.thermal-slip div,
.thermal-slip span {
    color: #000000;
    font-weight: 600;
}

.thermal-slip *,
.thermal-slip *::before,
.thermal-slip *::after {
    box-sizing: border-box;
}

.thermal-line,
.thermal-brand,
.thermal-policy-title,
.thermal-thanks {
    text-align: center;
}

.thermal-brand {
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 12.4px;
}

.thermal-block,
.thermal-policy {
    display: grid;
    gap: 3px;
    margin: 5px 0;
}

.thermal-justified,
.thermal-total-row,
.thermal-table-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.thermal-justified,
.thermal-total-row {
    align-items: flex-start;
}

.thermal-table-head {
    font-weight: 800;
    font-size: 12px;
}

.thermal-item-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px 32px 64px;
    gap: 4px;
    align-items: start;
    margin: 5px 0;
}

.thermal-item-name {
    min-width: 0;
    word-break: break-word;
    padding-right: 2px;
}

.thermal-item-qty,
.thermal-item-vat {
    text-align: center;
}

.thermal-item-total {
    text-align: right;
    white-space: nowrap;
}

.thermal-line {
    overflow: hidden;
    white-space: nowrap;
}

.thermal-total-row {
    font-size: 12px;
}

.thermal-total-row strong,
.thermal-grand-total strong {
    text-align: right;
    white-space: nowrap;
    font-weight: 800;
}

.thermal-grand-total {
    font-size: 12.8px;
    font-weight: 800;
}

.thermal-qr-wrap {
    display: grid;
    justify-items: center;
    gap: 4px;
    margin: 6px 0;
    text-align: center;
}

.thermal-qr-image {
    width: 86px;
    height: 86px;
    object-fit: contain;
    image-rendering: pixelated;
}

.lobby-page {
    display: grid;
    gap: 10px;
}

.lobby-page .panel {
    padding: 12px 14px;
    border-radius: 14px;
}

.lobby-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background:
        linear-gradient(145deg, rgba(8, 17, 26, 0.98), rgba(20, 30, 40, 0.96)),
        radial-gradient(circle at top right, rgba(126, 250, 255, 0.12), transparent 35%);
    border: 1px solid rgba(126, 250, 255, 0.14);
    color: #e8f7ff;
}

.lobby-kicker,
.cockpit-label {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.14rem;
    font-size: 0.78rem;
    color: #7efaff;
}

.lobby-hero h2,
.cockpit-card h2,
.cockpit-chart-card h2,
.cockpit-table-card h2,
.cockpit-gauge-card h2 {
    color: #f4f7fb;
    margin-top: 4px;
    margin-bottom: 0;
    font-size: 1.2rem;
}

.lobby-hero .helper-text,
.cockpit-card .helper-text,
.cockpit-chart-card .helper-text {
    color: rgba(232, 247, 255, 0.68);
}

.lobby-hero .helper-text {
    margin: 4px 0 0;
    font-size: 0.85rem;
    max-width: 720px;
}

.lobby-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.lobby-meta-chip {
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(126, 250, 255, 0.18);
    color: #7efaff;
    background: rgba(126, 250, 255, 0.08);
    font-size: 0.72rem;
}

.lobby-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.lobby-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.lobby-command-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.9fr);
    gap: 10px;
    align-items: stretch;
}

.lobby-status-panel {
    min-height: 160px;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.lobby-link-card {
    display: grid;
    gap: 8px;
    min-height: 96px;
    text-decoration: none;
    color: #f4f7fb;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.lobby-link-card:hover,
.lobby-link-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(3, 10, 18, 0.28);
    border-color: rgba(126, 250, 255, 0.28);
    color: #f4f7fb;
}

.lobby-link-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.lobby-link-arrow {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #f4f7fb;
    font-size: 0.95rem;
}

.lobby-link-note {
    margin: 0;
    color: rgba(232, 247, 255, 0.70);
    font-size: 0.78rem;
}

.lobby-status-alert {
    background: linear-gradient(145deg, rgba(96, 96, 104, 0.96), rgba(76, 76, 84, 0.96));
    border-color: rgba(255, 255, 255, 0.08);
}

.lobby-status-success {
    background: linear-gradient(145deg, rgba(74, 163, 94, 0.94), rgba(59, 136, 78, 0.96));
    border-color: rgba(133, 231, 162, 0.24);
}

.lobby-status-info {
    background: linear-gradient(145deg, rgba(49, 136, 179, 0.95), rgba(34, 108, 145, 0.96));
    border-color: rgba(126, 250, 255, 0.24);
}

.lobby-status-neutral {
    background: linear-gradient(145deg, rgba(63, 69, 77, 0.96), rgba(48, 53, 61, 0.96));
    border-color: rgba(255, 255, 255, 0.08);
}

.lobby-status-panel .cockpit-label,
.lobby-status-panel .cockpit-subgrid,
.lobby-status-panel .helper-text {
    color: rgba(245, 248, 252, 0.82);
}

.lobby-chart-main,
.lobby-monitoring-card {
    min-height: 100%;
}

.lobby-command-grid > .cockpit-chart-card,
.lobby-command-grid > .lobby-monitoring-card {
    grid-column: auto;
}

.lobby-monitoring-card {
    border-radius: 12px;
    width: 100%;
    background:
        linear-gradient(145deg, rgba(12, 20, 29, 0.98), rgba(22, 33, 44, 0.96)),
        linear-gradient(135deg, rgba(126, 250, 255, 0.06), transparent);
    border: 1px solid rgba(126, 250, 255, 0.12);
    color: #ecf5fb;
    box-shadow: 0 18px 32px rgba(3, 10, 18, 0.18);
    position: relative;
    overflow: hidden;
}

.lobby-monitoring-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(126, 250, 255, 0.04), transparent);
    pointer-events: none;
}

.lobby-monitoring-body {
    display: grid;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.monitoring-alarm {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(126, 250, 255, 0.10);
}

.monitoring-alarm-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    display: inline-flex;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.03);
}

.monitoring-alarm-dot.is-alert {
    background: #ff4d4d;
    box-shadow: 0 0 0 10px rgba(255, 77, 77, 0.12);
}

.monitoring-alarm-dot.is-safe {
    background: #63d987;
    box-shadow: 0 0 0 10px rgba(99, 217, 135, 0.12);
}

.monitoring-alarm strong {
    display: block;
    color: #f4f7fb;
    letter-spacing: 0.08em;
    font-size: 0.88rem;
}

.monitoring-alarm p {
    margin: 4px 0 0;
    color: rgba(232, 247, 255, 0.84);
    font-size: 0.8rem;
}

.monitoring-list {
    display: grid;
    gap: 8px;
}

.monitoring-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(126, 250, 255, 0.10);
    color: rgba(232, 247, 255, 0.72);
    font-size: 0.82rem;
}

.monitoring-row strong {
    color: #f4f7fb;
}

.monitoring-row span {
    color: rgba(232, 247, 255, 0.82);
}

.monitoring-links {
    display: grid;
    gap: 8px;
}

.monitoring-links a {
    color: #eaf9ff;
    padding: 7px 9px;
    border-radius: 10px;
    border: 1px solid rgba(126, 250, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.8rem;
}

.monitoring-links a:hover {
    color: #7efaff;
    background: rgba(126, 250, 255, 0.08);
}

.lobby-monitoring-card,
.lobby-monitoring-card h2,
.lobby-monitoring-card .cockpit-label,
.lobby-monitoring-card .section-heading,
.lobby-monitoring-card .section-heading * {
    color: #eef8ff;
}

.cockpit-card,
.cockpit-chart-card,
.cockpit-table-card,
.cockpit-gauge-card {
    background:
        linear-gradient(145deg, rgba(12, 20, 29, 0.98), rgba(22, 33, 44, 0.96)),
        linear-gradient(135deg, rgba(126, 250, 255, 0.06), transparent);
    border: 1px solid rgba(126, 250, 255, 0.12);
    color: #ecf5fb;
    position: relative;
    overflow: hidden;
}

.cockpit-card::before,
.cockpit-chart-card::before,
.cockpit-table-card::before,
.cockpit-gauge-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(126, 250, 255, 0.04), transparent);
    pointer-events: none;
}

.cockpit-card {
    min-height: 132px;
    grid-column: span 3;
}

.cockpit-chart-card {
    grid-column: span 7;
}

.cockpit-gauge-card {
    grid-column: span 5;
}

.cockpit-table-card {
    grid-column: span 6;
}

.lobby-page .section-heading {
    margin-bottom: 12px;
}

.lobby-page .section-heading .cockpit-label {
    font-size: 0.7rem;
}

.cockpit-value {
    margin-top: 4px;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
}

.cockpit-value-text {
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    line-height: 1.12;
}

.cockpit-subgrid {
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: rgba(232, 247, 255, 0.66);
    font-size: 0.76rem;
}

.cockpit-alert .cockpit-value { color: #ff7070; }
.cockpit-profit .cockpit-value { color: #7efaff; }
.cockpit-messages .cockpit-value { color: #ffd166; }
.cockpit-neutral .cockpit-value { color: #e7f0f6; }

.cockpit-chart-card canvas {
    display: block;
    width: 100%;
}

.gauge-cluster {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: center;
    justify-items: center;
    padding-top: 2px;
}

.gauge-ring {
    --gauge-value: 0;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(10, 18, 28, 1) 56%, transparent 57%),
        conic-gradient(#7efaff calc(var(--gauge-value) * 1%), rgba(126, 250, 255, 0.10) 0);
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 1px rgba(126, 250, 255, 0.1);
}

.gauge-ring-secondary {
    background:
        radial-gradient(circle at center, rgba(10, 18, 28, 1) 56%, transparent 57%),
        conic-gradient(#ffd166 calc(var(--gauge-value) * 1%), rgba(255, 209, 102, 0.10) 0);
}

.gauge-ring-inner {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(16, 24, 34, 0.96);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #eef8ff;
}

.gauge-ring-inner strong {
    font-size: 1.05rem;
    line-height: 1;
}

.gauge-ring-inner span {
    margin-top: 3px;
    font-size: 0.58rem;
    color: rgba(232, 247, 255, 0.68);
}

.cockpit-table-card table,
.cockpit-chart-card table,
.cockpit-gauge-card table,
.cockpit-card table {
    color: #ecf5fb;
}

.cockpit-table-card th,
.cockpit-table-card td {
    border-bottom-color: rgba(126, 250, 255, 0.10);
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 0.82rem;
}

.cockpit-table-card th {
    color: #7efaff;
}

.cockpit-table-card tbody tr:hover {
    background: rgba(126, 250, 255, 0.08);
}

.cockpit-table-card td,
.cockpit-table-card .empty-state {
    color: #eef8ff;
}

.lobby-grid > .cockpit-gauge-card,
.lobby-grid > .cockpit-table-card {
    grid-column: auto;
    min-height: 280px;
}

.lobby-command-grid > .cockpit-chart-card,
.lobby-command-grid > .lobby-monitoring-card {
    min-height: 248px;
}

.dashboard-table-wrap {
    max-height: 208px;
    overflow: auto;
    border-radius: 14px;
    border: 1px solid rgba(126, 250, 255, 0.16);
    background: rgba(8, 15, 24, 0.88);
    box-shadow: inset 0 0 0 1px rgba(126, 250, 255, 0.04);
}

.dashboard-table-wrap table {
    margin-bottom: 0;
    background: transparent;
    color: #eef8ff;
}

.dashboard-table-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(15, 23, 34, 0.98);
    color: #7efaff;
}

.dashboard-table-wrap tbody tr {
    background: transparent;
}

.dashboard-table-wrap tbody td,
.dashboard-table-wrap .empty-state {
    color: #eef8ff;
}

.dashboard-table-wrap tbody tr:hover {
    background: rgba(126, 250, 255, 0.08);
}

.cockpit-table-card .table-toolbar,
.cockpit-table-card .table-footer-bar,
.cockpit-table-card .table-group-zone {
    color: #eef8ff;
}

.cockpit-table-card .table-page-info,
.cockpit-table-card .table-group-zone-text {
    color: rgba(232, 247, 255, 0.82);
}

.cockpit-table-card .table-column-filter-trigger,
.cockpit-table-card .table-header-sort-indicator {
    color: #dff7ff;
}

.cockpit-table-card .ghost-button,
.lobby-ghost-button {
    color: #eef8ff;
    background: rgba(126, 250, 255, 0.10);
    border-color: rgba(126, 250, 255, 0.28);
}

.cockpit-table-card .ghost-button:hover,
.lobby-ghost-button:hover,
.cockpit-table-card .ghost-button:focus-visible,
.lobby-ghost-button:focus-visible {
    color: #7efaff;
    background: rgba(126, 250, 255, 0.18);
    border-color: rgba(126, 250, 255, 0.4);
}

@media print {
    @page {
        size: 80mm 297mm;
        margin: 1mm 0.5mm 1.5mm;
    }

    @page thermal-receipt-roll {
        size: 80mm 297mm;
        margin: 1mm 0.5mm 1.5mm;
    }

    @page compact-label {
        size: 56mm 40mm;
        margin: 0;
    }

    html:has(.compact-label-print-page),
    body.compact-label-print-page:not(.bulk-label-print-page) {
        width: 56mm;
        height: 40mm;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .no-print {
        display: none !important;
    }

    body,
    .print-page {
        background: #ffffff;
        padding: 0;
    }

    .thermal-receipt-page {
        page: thermal-receipt-roll;
        width: auto;
        min-width: 0;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .label-card,
    .receipt-card {
        box-shadow: none;
        margin: 0 auto;
    }

    .thermal-slip {
        width: 72.1mm;
        max-width: 72.1mm;
        margin: 0 auto;
        padding: 1.2mm 1mm 3mm;
        box-shadow: none;
        border-radius: 0;
        overflow: visible;
    }

    .label-card {
        border-color: rgba(0, 0, 0, 0.2);
    }

    .compact-label-print-page {
        page: compact-label;
        width: 56mm;
        min-width: 56mm;
        height: 40mm;
        min-height: 40mm;
        margin: 0;
    }

    .compact-label-print-page .label-sheet,
    .compact-label-print-page .compact-fashion-label-sheet,
    .compact-label-print-page .bulk-label-sheet,
    .compact-label-print-page .bulk-label-item,
    .compact-label-print-page .compact-fashion-label {
        width: 56mm;
        max-width: 56mm;
        height: 40mm;
        min-height: 40mm;
        margin: 0;
        transform: none;
        box-shadow: none;
        border-radius: 1.4mm;
    }

    .bulk-label-print-page .bulk-label-sheet {
        width: 56mm;
        display: block;
        justify-content: start;
        gap: 0;
    }

    .bulk-label-print-page .bulk-label-item {
        width: 56mm;
        height: 40mm;
        min-height: 40mm;
        display: block;
        break-after: page;
        page-break-after: always;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .bulk-label-print-page .bulk-label-item:last-child {
        break-after: auto;
        page-break-after: auto;
    }
}

@media (max-width: 1100px) {
    .app-shell,
    .metrics-grid,
    .content-grid,
    .pos-grid,
    .filter-bar,
    .compact-form,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .shell-nav-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 16px;
    }

    .brand-link {
        align-self: flex-start;
    }

    .top-nav {
        width: 100%;
        padding-bottom: 6px;
    }

    .topbar,
    .section-heading,
    .receipt-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .summary-input-wrap {
        width: 100%;
    }

    .table-toolbar {
        justify-content: flex-start;
    }

    .table-group-zone,
    .table-footer-bar,
    .table-pagination-group {
        width: 100%;
    }

    .table-footer-bar {
        justify-content: flex-start;
    }

    .table-page-info {
        text-align: left;
        min-width: auto;
    }

    .lobby-grid,
    .lobby-command-grid,
    .lobby-summary-grid {
        grid-template-columns: 1fr;
    }

    .pos-main-stack {
        grid-template-columns: 1fr;
    }

    .cockpit-card,
    .cockpit-chart-card,
    .cockpit-table-card,
    .cockpit-gauge-card {
        grid-column: auto;
    }

    .gauge-cluster {
        grid-template-columns: 1fr;
    }

    .dashboard-table-wrap {
        max-height: none;
        overflow: visible;
    }
}
