body.bg-background {
    background-color: #f3f3f1;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-size: 20px;
    line-height: 1;
}

.fill-icon {
    font-variation-settings: 'FILL' 1;
}

.nav-link {
    align-items: center;
    color: #7d8497;
    display: flex;
    font-size: 12px;
    font-weight: 600;
    gap: 16px;
    letter-spacing: 0.02em;
    padding: 8px 16px;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-link:hover {
    background: #3a3f48;
    color: #ffffff;
}

.nav-link:active {
    transform: scale(0.98);
}

.nav-link-active {
    background: #316bf3;
    border-left: 4px solid #0051d5;
    color: #fefcff;
}

.top-nav-link {
    border-radius: 4px;
    color: #45474b;
    font-size: 18px;
    font-weight: 500;
    padding-inline: 8px;
    transition: background-color 160ms ease;
}

.top-nav-link:hover {
    background: #f6f3f3;
}

.icon-button {
    align-items: center;
    border-radius: 9999px;
    color: #45474b;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    transition: background-color 160ms ease;
    width: 40px;
}

.icon-button:hover {
    background: #f6f3f3;
}

.period-button,
.period-button-active {
    border-right: 1px solid #c6c6cb;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
    transition: background-color 160ms ease;
}

.period-button:hover {
    background: #f6f3f3;
}

.period-button-active {
    background: #0051d5;
    color: #ffffff;
}

.period-button:last-child,
.period-button-active:last-child {
    border-right: 0;
}

.panel,
.kpi-card {
    background: #ffffff;
    border: 1px solid #c6c6cb;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(20, 27, 43, 0.06);
    padding: 16px;
}

.chart-area {
    border-radius: 9999px 9999px 0 0;
    bottom: -30%;
    filter: blur(22px);
    height: 72%;
    opacity: 0.18;
    position: absolute;
    width: 62%;
}

.chart-area-blue {
    background: #0051d5;
    left: 2%;
}

.chart-area-dark {
    background: #000000;
    right: 4%;
}

.chart-bar {
    background: linear-gradient(180deg, #0051d5 0%, #141b2b 100%);
    border-radius: 4px 4px 0 0;
    opacity: 0.88;
}

.sales-chart-labels span {
    background: rgba(20, 27, 43, 0.72);
    border-radius: 4px;
    padding: 3px 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.legend {
    align-items: center;
    display: flex;
    gap: 6px;
}

.legend i {
    border-radius: 9999px;
    display: block;
    height: 8px;
    width: 8px;
}

.status-pill {
    background: #e5e2e2;
    border-radius: 3px;
    color: #000000;
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 8px;
    text-transform: uppercase;
    white-space: nowrap;
}

.table-row-hover {
    border-bottom: 1px solid #c6c6cb;
    transition: background-color 160ms ease;
}

.table-row-hover:hover {
    background: #f6f3f3;
}

.status-dot {
    align-items: center;
    display: inline-flex;
    gap: 6px;
}

.status-dot::before {
    background: #0051d5;
    border-radius: 9999px;
    content: '';
    display: block;
    height: 6px;
    width: 6px;
}

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

body.sidebar-open #sidebarOverlay {
    display: block;
}

.scrollbar-hide {
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.pos-subnav {
    align-items: center;
    border-bottom: 1px solid rgba(194, 198, 215, 0.65);
    display: flex;
    gap: 6px;
    min-height: 46px;
    overflow-x: auto;
    padding: 0 2px 8px;
    width: 100%;
}

.pos-subnav-link {
    align-items: center;
    border-bottom: 2px solid transparent;
    border-radius: 6px 6px 0 0;
    color: #5d5e63;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    justify-content: center;
    letter-spacing: 0.04em;
    line-height: 1;
    min-height: 38px;
    padding: 0 14px;
    text-transform: uppercase;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
    white-space: nowrap;
}

.pos-subnav-link:hover {
    background: #eff4ff;
    color: #0056c8;
    transform: translateY(-1px);
}

.pos-subnav-link:focus-visible {
    outline: 2px solid rgba(20, 110, 245, 0.35);
    outline-offset: 2px;
}

.pos-subnav-link-active {
    background: #ffffff;
    border-bottom-color: #0056c8;
    color: #0056c8;
}

.pos-subnav-link-active:hover {
    background: #e9f1ff;
}

.chart-legend,
.dot-label {
    align-items: center;
    display: inline-flex;
    gap: 6px;
}

.chart-legend {
    color: #5d5e63;
    font-size: 11px;
    font-weight: 500;
}

.chart-legend::before,
.dot-label::before {
    background: var(--dot, currentColor);
    border-radius: 9999px;
    content: '';
    display: block;
    height: 8px;
    width: 8px;
}

.status-badge {
    border-radius: 4px;
    display: inline-flex;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 8px;
    white-space: nowrap;
}

.status-green {
    background: #dcfce7;
    color: #16a34a;
}

.status-amber {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
}

.status-red {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.status-gray {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.avatar-dot {
    align-items: center;
    border-radius: 9999px;
    box-shadow: 0 0 0 2px #ffffff;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.pos-kpi,
.pos-panel {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.pos-kpi {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.pos-panel-header {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #e5eaf1;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    justify-content: space-between;
    padding: 16px;
}

.pos-label {
    color: #424655;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 12px;
    text-transform: uppercase;
}

.pos-btn-primary,
.pos-btn-secondary {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    font-size: 13px;
    font-weight: 500;
    gap: 8px;
    padding: 8px 16px;
    transition: background-color 160ms ease, opacity 160ms ease;
}

.pos-btn-primary {
    background: #146ef5;
    color: #ffffff;
}

.pos-btn-primary:hover {
    opacity: 0.9;
}

.pos-btn-secondary {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    color: #0f172a;
}

.pos-btn-secondary:hover {
    background: #f8fafc;
}

.pos-btn-sm {
    font-size: 12px;
    min-height: 28px;
    padding: 4px 12px;
}

.pos-segment-active {
    background: #146ef5;
    color: #ffffff;
}

.pos-segment-inactive {
    color: #0b1c30;
}

.pos-segment-inactive:hover {
    background: #eff4ff;
    color: #0056c8;
}

.product-subnav {
    align-items: center;
    border-bottom: 1px solid rgba(194, 198, 215, 0.65);
    display: flex;
    gap: 28px;
    min-height: 46px;
    overflow-x: auto;
    width: 100%;
}

.product-subnav-link {
    align-items: center;
    border-bottom: 2px solid transparent;
    color: #5d5e63;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    gap: 4px;
    height: 46px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
    white-space: nowrap;
}

.product-subnav-link:hover {
    color: #0056c8;
    transform: translateY(-1px);
}

.product-subnav-link-active {
    border-bottom-color: #0056c8;
    color: #0056c8;
}

.product-subnav-link-disabled {
    cursor: default;
}

.product-subnav-link-disabled:hover {
    color: #5d5e63;
    transform: none;
}

.product-label {
    color: #727786;
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.product-kpi-card,
.product-table-panel {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
}

.product-kpi-card {
    min-height: 92px;
    padding: 16px;
}

.product-kpi-value {
    color: #0b1c30;
    display: block;
    font-size: 22px;
    font-weight: 600;
    line-height: 28px;
}

.product-btn-primary,
.product-btn-secondary {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    font-size: 13px;
    font-weight: 500;
    gap: 8px;
    min-height: 36px;
    padding: 8px 14px;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.product-btn-primary {
    background: #146ef5;
    color: #ffffff;
}

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

.product-btn-secondary {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    color: #0b1c30;
}

.product-btn-secondary:hover {
    background: #f8fafc;
    border-color: #c2c6d7;
}

.product-table-panel {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    overflow: clip;
}

.product-table-toolbar {
    align-items: center;
    background: #f8f9ff;
    border-bottom: 1px solid #e5eaf1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: space-between;
    padding: 8px;
}

@media (min-width: 1024px) {
    .product-table-toolbar {
        flex-direction: row;
    }
}

.product-filter-button,
.product-filter-icon {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 4px;
    color: #424655;
    display: inline-flex;
    font-size: 12px;
    gap: 4px;
    height: 32px;
    padding: 0 8px;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.product-filter-button:hover,
.product-filter-icon:hover {
    background: #eff4ff;
    border-color: #c2c6d7;
    color: #0056c8;
}

.product-filter-icon {
    justify-content: center;
    width: 32px;
}

.product-table-scroll {
    overflow-x: auto;
    width: 100%;
}

.product-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1220px;
    table-layout: auto;
    text-align: left;
    width: 100%;
}

.product-table th {
    background: #f8fafc;
    border-bottom: 1px solid #e5eaf1;
    color: #727786;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 10px 12px;
    text-transform: uppercase;
    white-space: nowrap;
}

.product-table tbody {
    color: #0b1c30;
    font-size: 13px;
}

.product-table-row {
    border-bottom: 1px solid rgba(229, 234, 241, 0.75);
    transition: background-color 160ms ease;
}

.product-table-row:hover {
    background: #f1f5f9;
}

.product-table th:first-child,
.product-table td:first-child {
    left: 0;
    min-width: 40px;
    position: sticky;
    width: 40px;
    z-index: 4;
}

.product-table th:nth-child(2),
.product-table td:nth-child(2) {
    left: 40px;
    min-width: 48px;
    position: sticky;
    width: 48px;
    z-index: 4;
}

.product-table tbody td:first-child,
.product-table tbody td:nth-child(2) {
    background: #ffffff;
}

.product-table-row:hover td:first-child,
.product-table-row:hover td:nth-child(2) {
    background: #f1f5f9;
}

.product-cell {
    padding: 10px 12px;
    vertical-align: middle;
    white-space: nowrap;
}

.product-name-header,
.product-name-cell {
    background: inherit;
    left: 88px;
    min-width: 240px;
    position: sticky;
    z-index: 3;
}

.product-name-cell {
    background: #ffffff;
}

.product-table-row:hover .product-name-cell {
    background: #f1f5f9;
}

.product-link {
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}

.product-link:hover {
    color: #0056c8;
    text-decoration: underline;
}

.product-thumb {
    align-items: center;
    background: #d3e4fe;
    border: 1px solid rgba(194, 198, 215, 0.4);
    border-radius: 6px;
    color: #424655;
    display: flex;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.product-thumb img {
    display: block;
}

.product-thumb-empty {
    background: #eff4ff;
    border-style: dashed;
    color: #727786;
}

.product-badge {
    border-radius: 999px;
    border: 1px solid transparent;
    display: inline-flex;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    white-space: nowrap;
}

.product-badge-success {
    background: #dcfce7;
    border-color: rgba(22, 163, 74, 0.2);
    color: #16a34a;
}

.product-badge-warning {
    background: #fef08a;
    border-color: rgba(133, 77, 14, 0.2);
    color: #854d0e;
}

.product-badge-danger {
    background: #fee2e2;
    border-color: rgba(185, 28, 28, 0.2);
    color: #b91c1c;
}

.product-badge-neutral {
    background: #eff4ff;
    border-color: rgba(194, 198, 215, 0.6);
    color: #424655;
}

.product-action-menu {
    display: inline-flex;
    position: relative;
}

.product-action-menu summary {
    align-items: center;
    border-radius: 6px;
    color: #424655;
    cursor: pointer;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    list-style: none;
    width: 28px;
}

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

.product-action-menu summary:hover {
    background: #eff4ff;
    color: #0056c8;
}

.product-action-list {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(11, 28, 48, 0.14);
    min-width: 210px;
    padding: 6px;
    position: absolute;
    right: 0;
    top: 32px;
    z-index: 20;
}

.product-action-list {
    max-width: calc(100vw - 16px);
}

.product-action-list a,
.product-action-list button {
    align-items: center;
    background: transparent;
    border-radius: 6px;
    color: #0b1c30;
    display: flex;
    font-size: 13px;
    gap: 8px;
    padding: 8px 10px;
    text-align: left;
    width: 100%;
}

.product-action-list a:hover,
.product-action-list button:hover {
    background: #eff4ff;
    color: #0056c8;
}

.product-table-footer {
    align-items: center;
    background: #f8f9ff;
    border-top: 1px solid #e5eaf1;
    color: #424655;
    display: flex;
    font-size: 12px;
    justify-content: space-between;
    padding: 8px 12px;
}

.product-page-button,
.product-page-button-active {
    align-items: center;
    border-radius: 4px;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    min-width: 28px;
}

.product-page-button:hover {
    background: #eff4ff;
}

.product-page-button-active {
    background: #146ef5;
    color: #ffffff;
}

.sales-panel {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    padding: 16px;
}

.sales-panel-alert {
    border-color: rgba(185, 28, 28, 0.26);
}

.sales-section-title {
    color: #0b1c30;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 18px;
    text-transform: uppercase;
}

.sales-pipeline {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(8, minmax(128px, 1fr));
    overflow-x: auto;
}

.sales-pipeline-step {
    align-items: center;
    background: #f8f9ff;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    min-height: 82px;
    padding: 12px;
    text-align: center;
}

.sales-pipeline-step span {
    color: #5d5e63;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 14px;
    text-transform: uppercase;
}

.sales-pipeline-step strong {
    color: #0b1c30;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
}

.sales-pipeline-danger {
    background: #fef2f2;
    border-color: rgba(185, 28, 28, 0.2);
}

.sales-pipeline-danger span,
.sales-pipeline-danger strong {
    color: #b91c1c;
}

.sales-channel-row,
.sales-attention-row,
.sales-mini-stat {
    align-items: center;
    border-bottom: 1px solid #e5eaf1;
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
}

.sales-channel-row:last-child,
.sales-attention-row:last-child,
.sales-mini-stat:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.sales-channel-row strong,
.sales-attention-row strong,
.sales-mini-stat strong {
    color: #0b1c30;
    display: block;
    font-size: 13px;
    font-weight: 700;
}

.sales-channel-row small {
    color: #727786;
    display: block;
    font-size: 11px;
    line-height: 16px;
}

.sales-attention-row {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 6px;
    color: #0b1c30;
    padding: 10px;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.sales-attention-row:hover {
    background: #eff4ff;
    border-color: #c2c6d7;
    color: #0056c8;
    transform: translateY(-1px);
}

.sales-attention-row span {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    font-weight: 700;
}

.sales-mini-stat {
    color: #5d5e63;
    font-size: 13px;
    padding: 8px 0;
}

.sales-order-table {
    min-width: 1480px;
}

.product-form-section {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    padding: 24px;
    position: relative;
}

.product-form-section:focus-within::before {
    background: #0056c8;
    border-radius: 8px 0 0 8px;
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    top: 0;
    width: 2px;
}

.product-form-section-title {
    align-items: center;
    border-bottom: 1px solid rgba(229, 234, 241, 0.85);
    color: #0b1c30;
    display: flex;
    font-size: 18px;
    font-weight: 600;
    gap: 8px;
    line-height: 24px;
    margin-bottom: 16px;
    padding-bottom: 8px;
}

.product-form-label {
    color: #5d5e63;
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 12px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.product-form-input {
    background: #f8f9ff;
    border: 1px solid #c2c6d7;
    border-radius: 8px;
    color: #0b1c30;
    font-size: 14px;
    line-height: 20px;
    outline: none;
    padding: 9px 12px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    width: 100%;
}

.product-form-input:focus {
    border-color: #0056c8;
    box-shadow: 0 0 0 2px rgba(0, 86, 200, 0.16);
}

.product-rte {
    background: #f8f9ff;
    border: 1px solid #c2c6d7;
    border-radius: 8px;
    overflow: hidden;
}

.product-rte:focus-within {
    border-color: #0056c8;
    box-shadow: 0 0 0 2px rgba(0, 86, 200, 0.16);
}

.product-rte-toolbar {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #e5eaf1;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
}

.product-rte-toolbar button {
    align-items: center;
    border-radius: 4px;
    color: #0b1c30;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.product-rte-toolbar button:hover {
    background: #e5eeff;
}

.product-image-dropzone {
    align-items: center;
    aspect-ratio: 1;
    border: 2px dashed #c2c6d7;
    border-radius: 8px;
    color: #5d5e63;
    display: flex;
    flex-direction: column;
    font-size: 11px;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.product-image-dropzone:hover {
    background: #eff4ff;
    border-color: #0056c8;
    color: #0056c8;
}

.product-toggle {
    background: #c2c6d7;
    border-radius: 999px;
    display: inline-block;
    height: 22px;
    position: relative;
    transition: background-color 160ms ease;
    width: 40px;
}

.product-toggle::after {
    background: #ffffff;
    border-radius: 999px;
    content: "";
    height: 18px;
    left: 2px;
    position: absolute;
    top: 2px;
    transition: transform 160ms ease;
    width: 18px;
}

.peer:checked + .product-toggle {
    background: #0056c8;
}

.peer:checked + .product-toggle::after {
    transform: translateX(18px);
}

.product-chip,
.product-chip-add {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 13px;
    gap: 4px;
    min-height: 30px;
    padding: 4px 12px;
}

.product-chip {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    color: #0b1c30;
}

.product-chip-add {
    border: 1px dashed #727786;
    color: #5d5e63;
}

.product-chip-add:hover {
    border-color: #0056c8;
    color: #0056c8;
}

.product-radio-card {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 12px;
    padding: 8px;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.product-radio-card:hover {
    background: #f8f9ff;
}

.product-radio-card-active {
    background: rgba(0, 86, 200, 0.05);
    border-color: #0056c8;
}

.variant-context-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
}

@media (min-width: 768px) {
    .variant-context-card {
        flex-direction: row;
    }
}

.variant-product-thumb {
    align-items: center;
    background: #d3e4fe;
    border: 1px solid rgba(194, 198, 215, 0.55);
    border-radius: 8px;
    color: #0b1c30;
    display: flex;
    flex: 0 0 auto;
    height: 58px;
    justify-content: center;
    width: 58px;
}

.variant-chip {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 999px;
    color: #0b1c30;
    display: inline-flex;
    font-size: 13px;
    font-weight: 600;
    gap: 8px;
    min-height: 32px;
    padding: 5px 12px;
}

.variant-color-dot {
    background: var(--variant-color);
    border: 1px solid rgba(11, 28, 48, 0.16);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
    display: inline-block;
    height: 12px;
    width: 12px;
}

.variant-matrix-toolbar,
.variant-bulk-toolbar {
    align-items: flex-start;
    border-bottom: 1px solid #e5eaf1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
    padding: 14px;
}

.variant-matrix-toolbar {
    background: #ffffff;
}

.variant-bulk-toolbar {
    background: #f8f9ff;
}

@media (min-width: 768px) {
    .variant-matrix-toolbar,
    .variant-bulk-toolbar {
        align-items: center;
        flex-direction: row;
    }
}

.variant-table {
    min-width: 1260px;
}

.variant-name,
.variant-sku-edit {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.variant-sku-edit {
    border: 1px solid transparent;
    border-radius: 4px;
    margin-inline: -4px;
    padding: 2px 4px;
}

.product-table-row:hover .variant-sku-edit {
    background: #ffffff;
    border-color: #e5eaf1;
}

.barcode-toolbar {
    align-items: stretch;
    background: #f8f9ff;
    border-bottom: 1px solid #e5eaf1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
    padding: 16px;
}

@media (min-width: 1024px) {
    .barcode-toolbar {
        align-items: center;
        flex-direction: row;
    }
}

.barcode-table {
    min-width: 1460px;
}

.barcode-mono-token {
    background: #e5eeff;
    border: 1px solid rgba(194, 198, 215, 0.45);
    border-radius: 4px;
    display: inline-flex;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    padding: 2px 8px;
}

.barcode-preview-card {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    padding: 18px;
}

.barcode-label {
    align-items: center;
    background: #ffffff;
    border: 1px dashed #c2c6d7;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    margin-inline: auto;
    padding: 12px;
    width: 192px;
}

.barcode-lines {
    align-items: stretch;
    display: flex;
    gap: 2px;
    height: 42px;
    justify-content: center;
    margin-block: 10px 4px;
    width: 100%;
}

.barcode-lines span {
    background: #000000;
    display: block;
    height: 100%;
}

.inventory-toolbar {
    align-items: stretch;
    background: #f8f9ff;
    border-bottom: 1px solid #e5eaf1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
    padding: 16px;
}

@media (min-width: 1024px) {
    .inventory-toolbar {
        align-items: center;
        flex-direction: row;
    }
}

.inventory-filter-control {
    background: #ffffff;
    border-color: #e5eaf1;
    border-radius: 6px;
    color: #0b1c30;
    font-size: 13px;
    height: 36px;
    min-width: 132px;
    padding-block: 0;
}

.inventory-filter-control:focus {
    border-color: #0056c8;
    box-shadow: 0 0 0 2px rgba(0, 86, 200, 0.16);
}

.inventory-table {
    min-width: 1360px;
}

.collection-toolbar {
    align-items: stretch;
    background: #f8f9ff;
    border-bottom: 1px solid #e5eaf1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
    padding: 16px;
}

@media (min-width: 768px) {
    .collection-toolbar {
        align-items: center;
        flex-direction: row;
    }
}

.collection-table {
    min-width: 1040px;
}

.collection-thumb {
    align-items: center;
    background: #e5eeff;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    color: #0056c8;
    display: flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.collection-thumb-muted {
    background: #f1f5f9;
    border-style: dashed;
    color: #94a3b8;
}

.collection-dot {
    align-items: center;
    display: inline-flex;
    gap: 5px;
}

.collection-dot::before {
    border-radius: 999px;
    content: "";
    display: block;
    height: 8px;
    width: 8px;
}

.collection-dot-green::before {
    background: #16a34a;
}

.collection-dot-amber::before {
    background: #f59e0b;
}

.collection-dot-gray::before {
    background: #94a3b8;
}

.collection-drawer {
    background: #ffffff;
    border-left: 1px solid #c2c6d7;
    box-shadow: 0 14px 30px rgba(11, 28, 48, 0.14);
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: min(440px, 100vw);
    width: 440px;
}

.collection-drawer-header,
.collection-drawer-footer {
    align-items: center;
    background: #f8f9ff;
    border-color: #e5eaf1;
    display: flex;
    flex: 0 0 auto;
    padding: 16px 24px;
}

.collection-drawer-header {
    border-bottom-width: 1px;
    justify-content: space-between;
}

.collection-drawer-footer {
    border-top-width: 1px;
    gap: 8px;
    justify-content: flex-end;
}

.collection-drawer-body {
    background: #f8f9ff;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    overflow-y: auto;
    padding: 24px;
}

.collection-drawer-body::-webkit-scrollbar {
    width: 6px;
}

.collection-drawer-body::-webkit-scrollbar-thumb {
    background: #c2c6d7;
    border-radius: 999px;
}

.collection-drawer-close {
    align-items: center;
    border-radius: 999px;
    color: #424655;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    transition: background-color 160ms ease, color 160ms ease;
    width: 32px;
}

.collection-drawer-close:hover {
    background: #e5eeff;
    color: #0b1c30;
}

.collection-cover-dropzone {
    align-items: center;
    background: #f8f9ff;
    border: 2px dashed #c2c6d7;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    min-height: 154px;
    padding: 18px;
    text-align: center;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.collection-cover-dropzone:hover {
    background: #e5eeff;
    border-color: #0056c8;
}

.collection-cover-dropzone-active {
    background: #e5eeff;
    border-color: #0056c8;
    box-shadow: 0 0 0 3px rgba(0, 86, 200, 0.12);
}

.collection-cover-icon {
    align-items: center;
    background: #d3e4fe;
    border-radius: 999px;
    color: #424655;
    display: flex;
    height: 40px;
    justify-content: center;
    transition: background-color 160ms ease, color 160ms ease;
    width: 40px;
}

.collection-cover-dropzone:hover .collection-cover-icon {
    background: rgba(0, 86, 200, 0.1);
    color: #0056c8;
}

.collection-products-summary {
    align-items: center;
    background: #eff4ff;
    border: 1px solid #c2c6d7;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
}

.collection-products-count {
    background: #d3e4fe;
    border: 0;
    border-radius: 999px;
    color: #0b1c30;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    font-weight: 600;
    height: 24px;
    padding: 0 8px;
    text-align: center;
    width: 48px;
}

.category-toolbar {
    align-items: stretch;
    background: #f8f9ff;
    border-bottom: 1px solid #e5eaf1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
    padding: 16px;
}

@media (min-width: 768px) {
    .category-toolbar {
        align-items: center;
        flex-direction: row;
    }
}

.category-table {
    min-width: 940px;
}

.category-group-pill {
    align-items: center;
    background: rgba(226, 226, 232, 0.55);
    border-radius: 6px;
    color: #424655;
    display: inline-flex;
    font-size: 12px;
    gap: 6px;
    padding: 4px 8px;
}

.category-side-panel {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    padding: 20px;
}

.category-group-card {
    align-items: flex-start;
    background: #f8f9ff;
    border: 1px solid rgba(229, 234, 241, 0.85);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    padding: 12px;
}

.category-group-icon {
    align-items: center;
    background: rgba(226, 226, 232, 0.55);
    border-radius: 8px;
    color: #424655;
    display: flex;
    flex: 0 0 auto;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.product-detail-tabs {
    border-bottom: 1px solid #c2c6d7;
    display: flex;
    overflow-x: auto;
}

.product-detail-tab {
    align-items: center;
    border-bottom: 2px solid transparent;
    color: #5d5e63;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    gap: 6px;
    padding: 10px 16px;
    transition: color 160ms ease, border-color 160ms ease;
    white-space: nowrap;
}

.product-detail-tab:hover,
.product-detail-tab-active {
    border-bottom-color: #0056c8;
    color: #0056c8;
}

.product-detail-tab-count {
    background: #dce9ff;
    border-radius: 999px;
    color: #0b1c30;
    font-size: 10px;
    padding: 1px 6px;
}

.product-detail-card {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    padding: 20px;
}

.product-gallery-main {
    aspect-ratio: 1;
    border: 1px solid rgba(194, 198, 215, 0.5);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.product-gallery-zoom {
    align-items: center;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid #c2c6d7;
    border-radius: 6px;
    color: #424655;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    position: absolute;
    right: 8px;
    top: 8px;
    width: 30px;
}

.product-gallery-thumb {
    border: 1px solid #c2c6d7;
    border-radius: 6px;
    flex: 0 0 auto;
    height: 64px;
    opacity: 0.72;
    overflow: hidden;
    transition: opacity 160ms ease, border-color 160ms ease;
    width: 64px;
}

.product-gallery-thumb:hover,
.product-gallery-thumb-active {
    border-color: #0056c8;
    opacity: 1;
}

.product-gallery-add {
    align-items: center;
    background: #dce9ff;
    color: #5d5e63;
    display: inline-flex;
    justify-content: center;
}

.product-detail-panel-header {
    align-items: center;
    background: #f8f9ff;
    border-bottom: 1px solid #e5eaf1;
    display: flex;
    justify-content: space-between;
    padding: 16px;
}

.product-detail-variant-table {
    min-width: 760px;
}

.product-stock-card {
    background: linear-gradient(135deg, #213145 0%, #0f172a 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
    overflow: hidden;
    padding: 20px;
    position: relative;
}

.product-stock-card::after {
    background: rgba(20, 110, 245, 0.2);
    border-radius: 999px;
    content: "";
    filter: blur(22px);
    height: 128px;
    position: absolute;
    right: -32px;
    top: -32px;
    width: 128px;
}

.product-stock-card > * {
    position: relative;
    z-index: 1;
}

.product-sparkline {
    align-items: end;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    height: 32px;
    overflow: hidden;
    width: 64px;
}

.product-sparkline span {
    background: #d9e2ff;
    display: block;
    width: 20%;
}

.product-sparkline span:nth-child(1) { height: 30%; }
.product-sparkline span:nth-child(2) { height: 50%; }
.product-sparkline span:nth-child(3) { height: 40%; }
.product-sparkline span:nth-child(4) { height: 70%; }
.product-sparkline span:nth-child(5) { height: 60%; }

.product-attention-card {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    padding: 20px;
}

.bulk-action-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    display: flex;
    gap: 16px;
    min-height: 88px;
    padding: 16px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.bulk-action-card:hover {
    border-color: #b0c6ff;
    box-shadow: 0 4px 12px rgba(11, 28, 48, 0.06);
    transform: translateY(-1px);
}

.bulk-action-icon {
    align-items: center;
    background: #eff4ff;
    border-radius: 8px;
    color: #0056c8;
    display: flex;
    flex: 0 0 auto;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.bulk-pending-badge {
    background: rgba(186, 26, 26, 0.08);
    border: 1px solid rgba(186, 26, 26, 0.18);
    border-radius: 6px;
    color: #ba1a1a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
}

.bulk-toolbar {
    align-items: flex-start;
    background: rgba(248, 249, 255, 0.7);
    border-bottom: 1px solid #e5eaf1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
    padding: 12px;
}

@media (min-width: 1024px) {
    .bulk-toolbar {
        align-items: center;
        flex-direction: row;
    }
}

.bulk-table {
    min-width: 1040px;
}

.bulk-history-table {
    min-width: 820px;
}

.bulk-product-thumb {
    align-items: center;
    background: #eff4ff;
    border: 1px solid #c2c6d7;
    border-radius: 6px;
    color: #727786;
    display: inline-flex;
    flex: 0 0 auto;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.bulk-channel-dot {
    background: #0b1c30;
    border-radius: 999px;
    display: inline-block;
    height: 16px;
    width: 16px;
}

.bulk-channel-dot:nth-child(2) {
    background: #c2c6d7;
}

.bulk-floating-bar {
    align-items: center;
    background: #0b1c30;
    border: 1px solid rgba(194, 198, 215, 0.3);
    border-radius: 999px;
    bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    left: calc(260px + (100vw - 260px) / 2);
    max-width: calc(100vw - 300px);
    padding: 8px 16px;
    position: fixed;
    transform: translateX(-50%);
    z-index: 45;
}

.bulk-floating-bar button,
.bulk-selected-count {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 13px;
    font-weight: 500;
    gap: 4px;
    min-height: 30px;
    padding: 5px 10px;
}

.bulk-floating-bar button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bulk-selected-count {
    border-right: 1px solid rgba(194, 198, 215, 0.3);
    border-radius: 0;
    padding-right: 16px;
}

.bulk-selected-count span {
    background: #146ef5;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    padding: 2px 6px;
}

.bulk-danger-action {
    color: #ffdad6;
}

.bulk-close-action {
    justify-content: center;
    min-width: 30px;
    padding-inline: 6px;
}

@media (max-width: 1023px) {
    .bulk-floating-bar {
        border-radius: 12px;
        bottom: 12px;
        left: 12px;
        max-width: calc(100vw - 24px);
        right: 12px;
        transform: none;
    }
}

.customer-tabs {
    border-bottom: 1px solid #c2c6d7;
    display: flex;
    gap: 24px;
    overflow-x: auto;
}

.customer-tab {
    border-bottom: 2px solid transparent;
    color: #424655;
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 8px;
    transition: color 160ms ease, border-color 160ms ease;
    white-space: nowrap;
}

.customer-tab:hover,
.customer-tab-active {
    border-bottom-color: #0056c8;
    color: #0056c8;
}

.customer-attention-panel {
    background: #eff4ff;
    border: 1px solid #c2c6d7;
    border-radius: 8px;
    padding: 16px;
}

.customer-attention-item {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 6px;
    color: #424655;
    display: flex;
    font-size: 13px;
    justify-content: space-between;
    padding: 10px 12px;
    transition: background-color 160ms ease;
}

.customer-attention-item:hover {
    background: #e5eeff;
}

.customer-attention-item strong {
    color: #0b1c30;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.customer-attention-danger {
    border-color: #ffdad6;
}

.customer-attention-danger strong {
    color: #ba1a1a;
}

.customer-filter-bar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.customer-table {
    min-width: 1320px;
}

.customer-avatar,
.customer-walkin-avatar {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.customer-avatar {
    background: #d3e4fe;
    color: #0056c8;
}

.customer-walkin-avatar {
    background: #e2e2e8;
    color: #727786;
}

.customer-segment-pill {
    background: #e5eeff;
    border-radius: 999px;
    color: #424655;
    display: inline-flex;
    font-size: 11px;
    padding: 2px 8px;
    white-space: nowrap;
}

.customer-segment-warning {
    background: #fef3c7;
    color: #d97706;
}

.customer-segment-vip {
    background: #e9ddff;
    color: #5516be;
}

.customer-walkin-row {
    border-top: 2px dashed #c2c6d7;
    opacity: 0.72;
    transition: opacity 160ms ease;
}

.customer-walkin-row:hover {
    opacity: 1;
}

.customer-duplicate-alert {
    background: #fff4f3;
    border: 1px solid rgba(186, 26, 26, 0.22);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    display: flex;
    gap: 12px;
    padding: 16px;
}

.customer-type-option {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #424655;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    min-height: 34px;
    min-width: 112px;
    padding: 6px 16px;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.customer-type-option:hover {
    background: rgba(255, 255, 255, 0.62);
    color: #0b1c30;
}

.customer-type-option-active {
    background: #ffffff;
    border-color: rgba(194, 198, 215, 0.6);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    color: #0b1c30;
}

.customer-profile-card {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    padding: 20px;
}

.customer-profile-avatar {
    align-items: center;
    background: #d3e4fe;
    border-radius: 999px;
    color: #0056c8;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 24px;
    font-weight: 700;
    height: 64px;
    justify-content: center;
    width: 64px;
}

.customer-profile-avatar-muted {
    background: #e2e2e8;
    color: #5d5e63;
}

.customer-section-header {
    align-items: center;
    background: #f8f9ff;
    border-bottom: 1px solid #e5eaf1;
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
}

.customer-section-header h3 {
    align-items: center;
    color: #0b1c30;
    display: flex;
    font-size: 15px;
    font-weight: 600;
    gap: 8px;
}

.customer-section-header a {
    color: #0056c8;
    font-size: 12px;
    font-weight: 600;
}

.customer-product-thumb {
    background:
        linear-gradient(135deg, transparent 0 48%, rgba(255, 255, 255, 0.92) 49% 51%, transparent 52%),
        radial-gradient(circle at 52% 42%, #1f2937 0 18%, transparent 19%),
        linear-gradient(160deg, #111827 0%, #030712 100%);
    border-radius: 6px;
    display: inline-flex;
    flex: 0 0 auto;
    height: 48px;
    width: 48px;
}

.customer-side-title {
    align-items: center;
    color: #727786;
    display: flex;
    font-size: 11px;
    font-weight: 700;
    gap: 8px;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.customer-activity-list {
    border-left: 1px solid #e5eaf1;
    margin-left: 6px;
    padding-left: 18px;
}

.customer-activity-item {
    padding-bottom: 22px;
    position: relative;
}

.customer-activity-item:last-child {
    padding-bottom: 0;
}

.customer-activity-item::before {
    background: #e5eaf1;
    border: 4px solid #ffffff;
    border-radius: 999px;
    content: '';
    height: 14px;
    left: -25px;
    position: absolute;
    top: 2px;
    width: 14px;
}

.customer-activity-primary::before {
    background: #0056c8;
}

.customer-activity-danger::before {
    background: #ba1a1a;
}

.customer-activity-tertiary::before {
    background: #6c39d5;
}

.customer-pinned-note {
    background: #f5f0ff;
    border: 1px solid rgba(108, 57, 213, 0.18);
    border-left: 3px solid #6c39d5;
    border-radius: 8px;
    padding: 12px;
}

.customer-activity-timeline {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    padding: 20px;
}

.customer-activity-group {
    border-left: 2px solid #e5eaf1;
    margin-left: 12px;
    padding-bottom: 18px;
    padding-left: 24px;
    position: relative;
}

.customer-activity-group:last-child {
    padding-bottom: 0;
}

.customer-activity-group h3 {
    background: #ffffff;
    color: #727786;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin: 0 0 16px -36px;
    padding-right: 10px;
    text-transform: uppercase;
}

.customer-activity-group h3::before {
    background: #ffffff;
    border: 2px solid #c2c6d7;
    border-radius: 999px;
    content: '';
    height: 14px;
    margin-right: 14px;
    width: 14px;
}

.customer-timeline-item {
    margin-bottom: 16px;
    position: relative;
}

.customer-timeline-item:last-child {
    margin-bottom: 4px;
}

.customer-timeline-icon {
    align-items: center;
    background: #e2e2e8;
    border: 4px solid #ffffff;
    border-radius: 999px;
    color: #424655;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    left: -39px;
    position: absolute;
    top: 12px;
    width: 28px;
}

.customer-timeline-card {
    background: #f8f9ff;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    padding: 14px;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.customer-timeline-card:hover {
    background: #ffffff;
    border-color: #c2c6d7;
    transform: translateY(-1px);
}

.customer-timeline-card h4 {
    color: #0b1c30;
    font-size: 14px;
    font-weight: 700;
}

.customer-timeline-card p {
    color: #424655;
    font-size: 13px;
    line-height: 18px;
    margin-top: 6px;
}

.customer-activity-record {
    background: #e2e2e8;
    border-radius: 4px;
    color: #424655;
    display: inline-flex;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
}

.customer-timeline-primary .customer-timeline-icon {
    background: #0056c8;
    color: #ffffff;
}

.customer-timeline-warning .customer-timeline-icon {
    background: #eab308;
    color: #ffffff;
}

.customer-timeline-tertiary .customer-timeline-icon {
    background: #6c39d5;
    color: #ffffff;
}

.customer-timeline-danger .customer-timeline-icon {
    background: #ba1a1a;
    color: #ffffff;
}

.customer-timeline-dark .customer-timeline-icon {
    background: #1f2937;
    color: #ffffff;
}

.customer-order-controls {
    align-items: center;
    border-bottom: 1px solid #e5eaf1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
}

.customer-order-table {
    min-width: 1120px;
}

.customer-order-channel {
    border-radius: 4px;
    display: inline-flex;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 2px 7px;
}

.customer-order-channel-pos {
    background: #0b1c30;
    color: #ffffff;
}

.customer-order-channel-online {
    background: #146ef5;
    color: #ffffff;
}

.customer-order-channel-custom {
    background: #8556f0;
    color: #ffffff;
}

.customer-order-status {
    align-items: center;
    color: #424655;
    display: inline-flex;
    font-size: 12px;
    gap: 6px;
    white-space: nowrap;
}

.customer-order-status::before {
    background: #727786;
    border-radius: 999px;
    content: '';
    height: 6px;
    width: 6px;
}

.customer-order-status-primary::before {
    background: #0056c8;
}

.customer-order-status-warning::before {
    background: #d97706;
}

.customer-order-status-tertiary::before {
    background: #6c39d5;
}

.customer-order-status-muted::before {
    background: #5d5e63;
}

.customer-address-card {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    padding: 18px;
    position: relative;
}

.customer-address-card-default::before {
    background: #146ef5;
    bottom: 0;
    content: '';
    left: 0;
    position: absolute;
    top: 0;
    width: 4px;
}

.customer-address-default-pill {
    background: #dce9ff;
    border-radius: 4px;
    color: #00429c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 2px 7px;
    text-transform: uppercase;
}

.customer-address-action,
.customer-address-icon-action {
    align-items: center;
    background: #f8f9ff;
    border: 1px solid #e5eaf1;
    border-radius: 6px;
    color: #0b1c30;
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    justify-content: center;
    min-height: 32px;
    padding: 7px 10px;
    transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.customer-address-action {
    flex: 1 1 120px;
}

.customer-address-icon-action {
    width: 34px;
}

.customer-address-action:hover,
.customer-address-icon-action:hover {
    background: #eff4ff;
    border-color: rgba(0, 86, 200, 0.45);
    color: #0056c8;
}

.customer-delivery-attention {
    background: #fff4f3;
    border: 1px solid rgba(186, 26, 26, 0.18);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    padding: 16px;
}

.customer-delivery-table {
    min-width: 900px;
}

.customer-segment-table {
    min-width: 980px;
}

.customer-segment-type {
    border-radius: 4px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
}

.customer-segment-type-system {
    background: #dce9ff;
    border: 1px solid rgba(0, 86, 200, 0.18);
    color: #00429c;
}

.customer-segment-type-custom {
    background: #e2e2e8;
    border: 1px solid rgba(114, 119, 134, 0.25);
    color: #0b1c30;
}

.customer-segment-action-disabled {
    align-items: center;
    color: #727786;
    cursor: default;
    display: flex;
    font-size: 13px;
    gap: 8px;
    padding: 8px 10px;
}

.customer-segment-rule-row {
    align-items: center;
    background: #f8f9ff;
    border: 1px solid #e5eaf1;
    border-radius: 6px;
    display: grid;
    font-size: 12px;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    padding: 10px;
}

.customer-tag-table {
    min-width: 1040px;
}

.customer-tag-pill {
    align-items: center;
    background: #eff4ff;
    border: 1px solid rgba(194, 198, 215, 0.55);
    border-radius: 5px;
    color: #0b1c30;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    gap: 7px;
    padding: 3px 8px;
    white-space: nowrap;
}

.customer-tag-pill i,
.customer-tag-color {
    border-radius: 999px;
    display: inline-flex;
    height: 8px;
    width: 8px;
}

.customer-tag-pill i {
    background: var(--tag-color, #0056c8);
}

.customer-tag-pill-primary i,
.customer-tag-color-primary {
    background: #0056c8;
}

.customer-tag-pill-tertiary i,
.customer-tag-color-tertiary {
    background: #6c39d5;
}

.customer-tag-pill-danger i,
.customer-tag-color-danger {
    background: #ba1a1a;
}

.customer-tag-pill-warning i,
.customer-tag-color-warning {
    background: #d97706;
}

.customer-tag-pill-muted i,
.customer-tag-color-muted {
    background: #727786;
}

.customer-tag-pill-dark i,
.customer-tag-color-dark {
    background: #213145;
}

.customer-tag-color {
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #c2c6d7;
    height: 28px;
    transition: transform 160ms ease, box-shadow 160ms ease;
    width: 100%;
}

.customer-tag-color:hover {
    box-shadow: 0 0 0 2px #0056c8;
    transform: translateY(-1px);
}

.customer-import-action-card {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 20px;
    position: relative;
}

.customer-import-action-card h3 {
    color: #0b1c30;
    font-size: 15px;
    font-weight: 800;
    margin-top: 14px;
    text-transform: uppercase;
}

.customer-import-action-card p {
    color: #5d5e63;
    flex: 1;
    font-size: 13px;
    line-height: 19px;
    margin: 10px 0 20px;
}

.customer-import-action-attention {
    border-color: rgba(186, 26, 26, 0.32);
}

.customer-import-action-icon {
    align-items: center;
    background: #e2e2e8;
    border-radius: 8px;
    color: #424655;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.customer-import-action-primary {
    background: #d9e2ff;
    color: #0056c8;
}

.customer-import-action-danger {
    background: #ffdad6;
    color: #ba1a1a;
}

.customer-import-action-count {
    background: #ba1a1a;
    border-radius: 0 8px 0 8px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 5px 10px;
    position: absolute;
    right: 0;
    top: 0;
}

.customer-quality-link {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #0b1c30;
    display: flex;
    font-size: 14px;
    justify-content: space-between;
    padding: 12px;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.customer-quality-link:hover {
    background: #f8f9ff;
    border-color: #e5eaf1;
    color: #0056c8;
}

.customer-export-chip {
    background: #e2e2e8;
    border-radius: 999px;
    color: #424655;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 12px;
    transition: background-color 160ms ease, color 160ms ease;
}

.customer-export-chip:hover,
.customer-export-chip-active {
    background: #0056c8;
    color: #ffffff;
}

.customer-duplicate-card {
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    padding: 16px;
}

.customer-import-table {
    min-width: 1100px;
}

.customer-import-stepper {
    align-items: flex-start;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: relative;
}

.customer-import-stepper::before {
    background: #c2c6d7;
    content: '';
    height: 2px;
    left: 8%;
    position: absolute;
    right: 8%;
    top: 15px;
    z-index: 0;
}

.customer-import-step {
    align-items: center;
    color: #727786;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    position: relative;
    text-align: center;
    z-index: 1;
}

.customer-import-step span {
    align-items: center;
    background: #ffffff;
    border: 1px solid #c2c6d7;
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.customer-import-step strong {
    background: #f8f9ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 0 4px;
    text-transform: uppercase;
}

.customer-import-step-done,
.customer-import-step-active {
    color: #0056c8;
}

.customer-import-step-done span {
    background: #0056c8;
    border-color: #0056c8;
    color: #ffffff;
}

.customer-import-step-active span {
    border: 2px solid #0056c8;
    color: #0056c8;
}

.customer-import-file-icon {
    align-items: center;
    background: #d9e2ff;
    border-radius: 8px;
    color: #0056c8;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.customer-import-mapping-table {
    min-width: 860px;
}

.customer-normalization-preview {
    background: #213145;
    border-radius: 8px;
    color: #eaf1ff;
    display: grid;
    gap: 1px;
    overflow: hidden;
}

.customer-normalization-preview div {
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
}

.customer-normalization-preview span {
    color: #b0c6ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.customer-normalization-preview strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
}

.customer-import-safety {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    padding: 16px;
}

.customer-import-safety p {
    color: #5d5e63;
    font-size: 12px;
    line-height: 18px;
}

.customer-import-safety strong {
    color: #0b1c30;
}

.customer-import-issues-table {
    min-width: 1020px;
}

.customer-import-row-action {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 5px;
    color: #0b1c30;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 8px;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.customer-import-row-action:hover {
    background: #eff4ff;
    border-color: rgba(0, 86, 200, 0.45);
    color: #0056c8;
}

.customer-duplicate-queue-item {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    cursor: pointer;
    padding: 12px;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.customer-duplicate-queue-item:hover,
.customer-duplicate-queue-active {
    background: #eff4ff;
    border-color: rgba(0, 86, 200, 0.55);
    box-shadow: inset 3px 0 0 #0056c8;
}

.customer-match-banner {
    background: rgba(0, 86, 200, 0.06);
    border: 1px solid rgba(0, 86, 200, 0.18);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    padding: 14px;
}

.customer-match-banner h3 {
    color: #0056c8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.customer-match-banner p {
    color: #424655;
    font-size: 13px;
    line-height: 18px;
}

.customer-compare-card {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.customer-compare-header {
    align-items: center;
    background: #f8f9ff;
    border-bottom: 1px solid #e5eaf1;
    display: flex;
    font-size: 11px;
    font-weight: 800;
    justify-content: space-between;
    letter-spacing: 0.05em;
    padding: 12px;
    text-transform: uppercase;
}

.customer-compare-card span + div span {
    color: #5d5e63;
    display: block;
    font-size: 10px;
    margin-top: 2px;
}

.customer-merge-review-table {
    min-width: 920px;
}

.customer-duplicate-actions {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    padding: 16px;
}

@media (max-width: 768px) {
    .customer-import-stepper {
        grid-template-columns: 1fr;
    }

    .customer-import-stepper::before {
        display: none;
    }

    .customer-import-step {
        align-items: flex-start;
        flex-direction: row;
        text-align: left;
    }
}

.pos-detail-row {
    align-items: center;
    border-bottom: 1px solid #e5eaf1;
    display: flex;
    font-size: 13px;
    justify-content: space-between;
    padding-bottom: 8px;
}

.pos-detail-row span {
    color: #5d5e63;
}

.pos-detail-row b {
    font-weight: 500;
}

.pos-chart {
    align-items: flex-end;
    border-bottom: 1px solid #c2c6d7;
    border-left: 1px solid #c2c6d7;
    display: flex;
    gap: 8px;
    height: 150px;
    padding: 20px 0 8px 8px;
    position: relative;
}

.pos-chart::before,
.pos-chart::after {
    background: rgba(194, 198, 215, 0.35);
    content: '';
    height: 1px;
    left: 0;
    position: absolute;
    right: 0;
}

.pos-chart::before {
    top: 25%;
}

.pos-chart::after {
    top: 55%;
}

.pos-chart-bar {
    background: #b0c6ff;
    border-radius: 4px 4px 0 0;
    flex: 1;
    min-width: 18px;
    position: relative;
}

.pos-chart-bar.peak {
    background: #146ef5;
}

.pos-table {
    border-collapse: collapse;
    width: 100%;
}

.pos-table th {
    background: #f8fafc;
    border-bottom: 1px solid #e5eaf1;
    color: #424655;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 10px 16px;
    text-align: left;
    text-transform: uppercase;
}

.pos-table td {
    border-bottom: 1px solid #e5eaf1;
    color: #0b1c30;
    font-size: 13px;
    padding: 10px 16px;
}

.pos-table tr:hover td {
    background: #f1f5f9;
}

.pos-badge-success,
.pos-badge-warning {
    align-items: center;
    border-radius: 9999px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    white-space: nowrap;
}

.pos-badge-success {
    background: #dcfce7;
    color: #16a34a;
}

.pos-badge-warning {
    background: #fef08a;
    color: #854d0e;
}

.terminal-product-card {
    background: #ffffff;
    border: 1px solid #dde3ec;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

/* The terminal is a staff-facing selling surface, so it uses a compact layout
   and keeps the business navigation available in the DOM without competing
   with the sale workflow. */
.pos-terminal-page #sidebar,
.pos-terminal-page #sidebarOverlay {
    display: none;
}

.pos-terminal-topbar {
    background: #0D1117;
    border-bottom: 1px solid #1F2937;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .04);
}

.pos-terminal-brand {
    align-items: center;
    display: flex;
    gap: 9px;
    min-width: max-content;
}

.pos-terminal-brand-mark {
    align-items: center;
    background: #146EF5;
    color: #fff;
    display: flex;
    font-size: 11px;
    font-weight: 800;
    height: 30px;
    justify-content: center;
    border-radius: 4px;
    width: 30px;
}

.pos-terminal-brand strong,
.pos-terminal-brand small {
    display: block;
}

.pos-terminal-brand strong {
    font-size: 12px;
    letter-spacing: .04em;
    line-height: 1;
}

.pos-terminal-brand small {
    color: rgba(255, 255, 255, .72);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .16em;
    margin-top: 4px;
}

.pos-terminal-mode {
    border-left: 1px solid #1F2937;
    color: rgba(255, 255, 255, .86);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    padding-left: 14px;
}

.pos-terminal-search input {
    border-radius: 6px;
}

.pos-topbar-action {
    align-items: center;
    border-radius: 6px;
    color: rgba(255, 255, 255, .9);
    display: inline-flex;
    font-size: 12px;
    gap: 5px;
    min-height: 34px;
    padding: 0 10px;
}

.pos-topbar-action:hover {
    background: rgba(0, 0, 0, .12);
    color: #fff;
}

.pos-topbar-action .material-symbols-outlined {
    font-size: 19px;
}

.pos-product-workspace {
    background: #ffffff;
}

.pos-category-tabs {
    box-shadow: 0 -2px 8px rgba(15, 23, 42, .04);
    scrollbar-width: thin;
}

.pos-category-tab {
    align-items: center;
    color: #5d5e63;
    display: inline-flex;
    flex-direction: column;
    font-size: 10px;
    font-weight: 700;
    gap: 4px;
    justify-content: center;
    min-height: 54px;
    min-width: 88px;
    padding: 6px 10px;
    text-transform: uppercase;
    transition: background-color 160ms ease, color 160ms ease;
}

.pos-category-tab:hover,
.pos-category-tab-active {
    background: #e7f4e8;
    color: #23752d;
}

.pos-ticket {
    box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
}

.pos-charge-button {
    background: #146ef5;
    color: #fff;
    padding-left: 18px;
    padding-right: 18px;
}

.pos-charge-button:not(:disabled):hover {
    background: #0056c8;
}

.pos-charge-button:disabled {
    background: #cad3c8;
    color: #5d665b;
}

@media (max-width: 1279px) {
    .pos-terminal-page .pos-ticket {
        min-height: 360px;
        max-height: 70vh;
    }
}

@media (max-width: 639px) {
    .pos-terminal-mode {
        display: none;
    }

    .pos-terminal-brand strong {
        font-size: 10px;
    }

    .pos-terminal-search {
        order: 3;
        max-width: none;
        width: 100%;
    }

    .pos-terminal-topbar {
        padding-bottom: 8px;
    }

    .pos-terminal-app {
        min-height: 100dvh;
    }

    .pos-terminal-main {
        padding: 8px;
    }

    .pos-product-workspace {
        min-height: 420px;
    }

    .pos-ticket {
        max-height: none !important;
    }

    .pos-category-tab {
        min-width: 74px;
    }
}

.terminal-product-card:hover {
    border-color: rgba(0, 86, 200, 0.5);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.terminal-product-card:active {
    transform: scale(0.98);
}

.product-swatch-moto,
.product-swatch-vintage,
.product-swatch-cargo,
.product-swatch-hoodie,
.product-swatch-cap,
.product-swatch-keychain {
    background-position: center;
    background-size: cover;
}

.product-swatch-tee-white {
    background:
        radial-gradient(circle at 50% 33%, #f8fafc 0 18%, transparent 19%),
        linear-gradient(135deg, #ffffff 0%, #e5e7eb 100%);
}

.product-swatch-hoodie-dark {
    background:
        radial-gradient(circle at 50% 28%, #374151 0 18%, transparent 19%),
        linear-gradient(135deg, #1f2937 0%, #020617 100%);
}

.product-swatch-jersey {
    background:
        linear-gradient(135deg, transparent 0 34%, rgba(255,255,255,0.9) 35% 39%, transparent 40%),
        linear-gradient(45deg, #dc2626 0%, #111827 52%, #2563eb 100%);
}

.terminal-empty-slot {
    align-items: center;
    aspect-ratio: 3 / 4;
    background: #f8f9ff;
    border: 1px dashed #c2c6d7;
    border-radius: 8px;
    display: flex;
    justify-content: center;
}

.terminal-filter-simple {
    align-items: center;
    border-radius: 4px;
    color: #0b1c30;
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    text-align: left;
    transition: background-color 160ms ease;
    width: 100%;
}

.terminal-filter-simple:hover {
    background: #dce9ff;
}

.product-swatch-moto {
    background:
        linear-gradient(135deg, transparent 0 48%, rgba(255,255,255,0.9) 49% 51%, transparent 52%),
        radial-gradient(circle at 52% 42%, #1f2937 0 18%, transparent 19%),
        linear-gradient(160deg, #111827 0%, #030712 100%);
}

.product-swatch-vintage {
    background:
        radial-gradient(circle at 45% 38%, rgba(255,255,255,0.28) 0 12%, transparent 13%),
        linear-gradient(140deg, #404040 0%, #18181b 55%, #09090b 100%);
}

.product-swatch-cargo {
    background:
        linear-gradient(90deg, rgba(255,255,255,0.08) 0 4%, transparent 5% 47%, rgba(255,255,255,0.08) 48% 52%, transparent 53%),
        linear-gradient(145deg, #334155 0%, #111827 100%);
}

.product-swatch-hoodie {
    background:
        radial-gradient(circle at 50% 28%, #e5e7eb 0 16%, transparent 17%),
        linear-gradient(135deg, #ffffff 0%, #e5e7eb 100%);
}

.product-swatch-cap {
    background:
        radial-gradient(ellipse at 50% 45%, #111827 0 34%, transparent 35%),
        radial-gradient(ellipse at 50% 65%, #030712 0 28%, transparent 29%),
        #e5eeff;
}

.product-swatch-keychain {
    background:
        radial-gradient(circle at 50% 48%, #111827 0 24%, transparent 25%),
        radial-gradient(circle at 50% 48%, transparent 0 10%, #ffffff 11% 14%, transparent 15%),
        #eff4ff;
}

.terminal-action {
    align-items: center;
    background: #ffffff;
    color: #424655;
    display: flex;
    font-size: 13px;
    gap: 8px;
    justify-content: center;
    padding: 10px 8px;
    transition: background-color 160ms ease, color 160ms ease;
}

.terminal-action:hover {
    background: #eff4ff;
    color: #0b1c30;
}

.terminal-pay-option {
    align-items: center;
    background: #ffffff;
    border: 1px solid #c2c6d7;
    border-radius: 8px;
    color: #0b1c30;
    display: flex;
    font-weight: 500;
    gap: 8px;
    justify-content: center;
    padding: 12px;
    transition: background-color 160ms ease;
}

.terminal-pay-option:hover {
    background: #eff4ff;
}

.terminal-pay-option-active {
    background: #e5eeff;
    border-color: #146ef5;
    color: #0056c8;
    box-shadow: 0 0 0 2px rgba(20, 110, 245, 0.14);
}

.terminal-pay-option-active:hover {
    background: #dce9ff;
}

.terminal-product-card.is-selected {
    border-color: #146ef5;
    box-shadow: 0 0 0 2px rgba(20, 110, 245, 0.2);
}

@media (hover: none) {
    .terminal-product-card button,
    .terminal-cart-item > button {
        opacity: 1;
    }
}

.payment-quick-amount,
.payment-quick-amount-active {
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    padding: 8px;
    transition: background-color 160ms ease;
}

.payment-quick-amount {
    background: #ffffff;
    border: 1px solid #c2c6d7;
    color: #0b1c30;
}

.payment-quick-amount:hover {
    background: rgba(211, 228, 254, 0.45);
}

.payment-quick-amount-active {
    background: rgba(20, 110, 245, 0.1);
    border: 1px solid #0056c8;
    color: #0056c8;
    font-weight: 700;
}

.thermal-receipt {
    background-color: #ffffff;
    border: 1px solid #e5eaf1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', ui-monospace, monospace;
    position: relative;
}

.thermal-receipt::before,
.thermal-receipt::after {
    background-size: 20px 20px;
    content: '';
    height: 10px;
    left: 0;
    position: absolute;
    right: 0;
}

.thermal-receipt::before {
    background-image: radial-gradient(circle at 10px 0, transparent 10px, #ffffff 11px);
    top: -5px;
}

.thermal-receipt::after {
    background-image: radial-gradient(circle at 10px 10px, transparent 10px, #ffffff 11px);
    bottom: -5px;
}

.success-pulse {
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
        transform: scale(0.95);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(22, 163, 74, 0);
        transform: scale(1);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
        transform: scale(0.95);
    }
}

/* Step 19 shared shell baseline: keep pages inside the viewport at narrow widths. */
html {
    overflow-x: hidden;
}

main,
main > section,
main > div {
    min-width: 0;
}

#sidebar nav a:not(.bg-primary) {
    color: #e5e7eb;
}

#sidebar nav a:not(.bg-primary):hover {
    color: #ffffff;
}

/* Keep the selected module unmistakably blue across the shared and legacy shells. */
#sidebar nav a.bg-primary {
    background-color: #146ef5 !important;
    color: #ffffff !important;
}

#sidebar nav a.bg-primary:hover {
    background-color: #0b5ed7 !important;
}

#sidebar nav a.bg-primary .material-symbols-outlined {
    color: #ffffff !important;
}

[data-responsive-table] {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0056c8;
    outline-offset: 2px;
}

/* Shared shell navigation: stable rows, readable inactive states, and a quiet scrollbar. */
html,
body {
    background-color: #f3f3f1;
}

.sidebar-nav {
    scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
    scrollbar-width: thin;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.45);
    border-radius: 999px;
}

.sidebar-link {
    min-height: 36px;
    transition: background-color 160ms ease, color 160ms ease;
}

.sidebar-link-inactive:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.sidebar-link-active:hover {
    background-color: #0b5ed7;
    color: #ffffff;
}

@media (max-width: 1023px) {
    body.sidebar-open {
        overflow: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar-link,
    #sidebar {
        scroll-behavior: auto;
        transition: none;
    }
}

/* Legacy views retain their page-specific content, but only the shared shell is visible. */
#legacySidebar,
#legacySidebarOverlay {
    display: none !important;
}

.theme-toggle {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 6px;
    color: #0b1c30;
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    gap: 6px;
    min-height: 36px;
    padding: 8px 10px;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.theme-toggle:hover {
    background: #f8fafc;
    border-color: #c2c6d7;
    transform: translateY(-1px);
}

.theme-toggle .material-symbols-outlined {
    font-size: 18px;
}

html.theme-dark,
html.theme-dark body {
    background-color: #0f141b !important;
    color: #e5e7eb;
    color-scheme: dark;
}

html.theme-dark .bg-white,
html.theme-dark .panel,
html.theme-dark .kpi-card,
html.theme-dark .product-kpi-card,
html.theme-dark .product-table-panel,
html.theme-dark .sales-panel,
html.theme-dark .product-form-section {
    background-color: #171e28 !important;
    border-color: #2d3948 !important;
}

html.theme-dark .bg-background,
html.theme-dark .bg-gray-50,
html.theme-dark [class~="bg-[#f8f9ff]"],
html.theme-dark .product-table-toolbar,
html.theme-dark .inventory-toolbar,
html.theme-dark .collection-toolbar,
html.theme-dark .product-table-footer {
    background-color: #121922 !important;
}

html.theme-dark header {
    background-color: #171e28 !important;
    border-color: #2d3948 !important;
}

html.theme-dark .border-surface-line,
html.theme-dark .border-gray-200,
html.theme-dark .border-blue-100,
html.theme-dark .product-table-row,
html.theme-dark .product-form-section-title,
html.theme-dark .product-rte-toolbar {
    border-color: #2d3948 !important;
}

html.theme-dark .text-on-surface,
html.theme-dark .text-gray-700,
html.theme-dark .text-gray-800,
html.theme-dark .product-kpi-value,
html.theme-dark .sales-section-title,
html.theme-dark .product-table tbody,
html.theme-dark .product-action-list a,
html.theme-dark .product-action-list button {
    color: #e5e7eb !important;
}

html.theme-dark .text-secondary,
html.theme-dark .text-gray-400,
html.theme-dark .text-gray-500,
html.theme-dark .text-gray-600,
html.theme-dark .product-label,
html.theme-dark .product-form-label,
html.theme-dark .product-table th,
html.theme-dark .product-table-footer {
    color: #aab5c4 !important;
}

html.theme-dark main input,
html.theme-dark main select,
html.theme-dark main textarea,
html.theme-dark .inventory-filter-control,
html.theme-dark .product-form-input,
html.theme-dark .product-rte {
    background-color: #111821 !important;
    border-color: #465467 !important;
    color: #e5e7eb !important;
}

html.theme-dark main input::placeholder,
html.theme-dark main textarea::placeholder {
    color: #8290a3 !important;
}

html.theme-dark .product-btn-secondary,
html.theme-dark .product-filter-button,
html.theme-dark .product-filter-icon,
html.theme-dark .theme-toggle {
    background-color: #1b2430 !important;
    border-color: #3b4859 !important;
    color: #e5e7eb !important;
}

html.theme-dark .product-btn-secondary:hover,
html.theme-dark .product-filter-button:hover,
html.theme-dark .product-filter-icon:hover,
html.theme-dark .theme-toggle:hover,
html.theme-dark .product-action-menu summary:hover,
html.theme-dark .product-action-list a:hover,
html.theme-dark .product-action-list button:hover {
    background-color: #263447 !important;
    border-color: #5b6b80 !important;
    color: #ffffff !important;
}

html.theme-dark .product-table th {
    background-color: #121922 !important;
    border-color: #2d3948 !important;
}

html.theme-dark .product-table tbody td:first-child,
html.theme-dark .product-table tbody td:nth-child(2),
html.theme-dark .product-name-cell {
    background-color: #171e28 !important;
}

html.theme-dark .product-table-row:hover,
html.theme-dark .product-table-row:hover td:first-child,
html.theme-dark .product-table-row:hover td:nth-child(2),
html.theme-dark .product-table-row:hover .product-name-cell {
    background-color: #202b39 !important;
}

html.theme-dark .product-action-list {
    background-color: #171e28 !important;
    border-color: #3b4859 !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

html.theme-dark .bg-blue-50 {
    background-color: #102444 !important;
}

html.theme-dark .bg-green-50 {
    background-color: #10291d !important;
}

html.theme-dark .bg-red-50 {
    background-color: #32191d !important;
}

html.theme-dark .bg-amber-50,
html.theme-dark .bg-yellow-50 {
    background-color: #332a12 !important;
}

html.theme-dark .text-blue-950,
html.theme-dark .text-blue-900,
html.theme-dark .text-green-950,
html.theme-dark .text-green-900,
html.theme-dark .text-red-900,
html.theme-dark .text-amber-900,
html.theme-dark .text-yellow-900 {
    color: #e5e7eb !important;
}

html.theme-dark .border-blue-200,
html.theme-dark .border-green-200,
html.theme-dark .border-red-200,
html.theme-dark .border-amber-200,
html.theme-dark .border-yellow-200 {
    border-color: #3b526e !important;
}

html.theme-dark #sidebar {
    background-color: #0b1016 !important;
}

html.theme-dark #sidebar .text-gray-500 {
    color: #7f8b9c !important;
}

html.theme-dark .theme-toggle {
    color: #f8d568 !important;
}

@media (prefers-reduced-motion: reduce) {
    .theme-toggle {
        transition: none;
    }
}

/* Client-ready UI refresh: shared Business OS surface tokens and global polish. */
:root {
    --nr-bg: #f6f7f9;
    --nr-surface: #ffffff;
    --nr-surface-soft: #f9fafb;
    --nr-surface-muted: #f1f5f9;
    --nr-line: #dde3ea;
    --nr-line-strong: #c7d0dc;
    --nr-ink: #0b1220;
    --nr-text: #1f2937;
    --nr-muted: #64748b;
    --nr-muted-strong: #475569;
    --nr-primary: #115fd4;
    --nr-primary-strong: #0b4eb3;
    --nr-primary-soft: #e8f1ff;
    --nr-success: #16803c;
    --nr-success-soft: #eaf8ef;
    --nr-warning: #a16207;
    --nr-warning-soft: #fff7df;
    --nr-danger: #b42318;
    --nr-danger-soft: #fff0ee;
    --nr-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 24px rgba(15, 23, 42, 0.04);
    --nr-shadow-strong: 0 18px 42px rgba(15, 23, 42, 0.12);
    --nr-radius: 8px;
    --nr-radius-sm: 6px;
    --nr-focus: 0 0 0 3px rgba(17, 95, 212, 0.18);
}

html {
    background: var(--nr-bg);
}

body,
body.bg-background {
    background:
        linear-gradient(180deg, #fbfcfe 0, var(--nr-bg) 220px),
        var(--nr-bg);
    color: var(--nr-text);
}

a,
button,
input,
select,
textarea,
summary {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    box-shadow: var(--nr-focus);
    outline: 2px solid transparent;
    outline-offset: 2px;
}

#sidebarOverlay {
    backdrop-filter: blur(2px);
}

#sidebar {
    background: #0c111d !important;
    border-right-color: rgba(148, 163, 184, 0.24) !important;
    box-shadow: 18px 0 42px rgba(2, 6, 23, 0.16);
}

#sidebar .bg-primary:first-child {
    background: #ffffff !important;
    color: #0c111d !important;
}

.sidebar-nav {
    scrollbar-color: rgba(148, 163, 184, 0.38) transparent;
}

.sidebar-section-heading {
    color: #8a94a6 !important;
    font-size: 10px !important;
    letter-spacing: 0.08em !important;
}

.sidebar-link {
    border: 1px solid transparent;
    border-radius: var(--nr-radius-sm) !important;
    font-weight: 600;
    min-height: 36px;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.sidebar-link .material-symbols-outlined {
    color: currentColor;
    font-size: 19px;
    opacity: 0.86;
}

.sidebar-link-inactive:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
}

.sidebar-link-active {
    background: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.12);
    color: #0c111d !important;
}

header.sticky {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(14px);
    border-bottom-color: var(--nr-line) !important;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

main {
    max-width: 1760px;
    width: 100%;
}

main > section:first-child h2 {
    color: var(--nr-ink);
    font-size: 26px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

.panel,
.kpi-card,
.pos-kpi,
.pos-panel,
.product-kpi-card,
.product-table-panel,
.sales-panel,
.product-form-section,
.variant-context-card,
.barcode-preview-card,
.category-side-panel,
.product-detail-card,
.product-attention-card,
.bulk-action-card,
.customer-profile-card,
.customer-attention-panel,
.customer-duplicate-alert {
    background: var(--nr-surface);
    border-color: var(--nr-line);
    border-radius: var(--nr-radius);
    box-shadow: var(--nr-shadow);
}

.product-table-panel,
.pos-panel,
.sales-panel,
.customer-profile-card,
.product-detail-card {
    overflow: clip;
}

.product-table-toolbar,
.variant-bulk-toolbar,
.variant-matrix-toolbar,
.barcode-toolbar,
.inventory-toolbar,
.collection-toolbar,
.category-toolbar,
.customer-section-header,
.product-detail-panel-header,
.pos-panel-header,
.bulk-toolbar {
    background: var(--nr-surface-soft);
    border-color: var(--nr-line);
    padding: 14px 16px;
}

.product-form-section {
    padding: 20px;
}

.product-form-section-title {
    border-bottom-color: var(--nr-line);
    color: var(--nr-ink);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
}

.product-label,
.product-form-label,
.pos-label,
.sales-section-title,
.product-table th {
    color: var(--nr-muted-strong);
    letter-spacing: 0.04em;
}

.product-form-input,
.inventory-filter-control,
.filter-bar input,
.filter-bar select,
.checkout-form input,
.checkout-form select,
.purchase-form input,
.purchase-form select {
    background: var(--nr-surface);
    border-color: var(--nr-line-strong);
    border-radius: var(--nr-radius-sm);
    color: var(--nr-ink);
}

.product-form-input:focus,
.inventory-filter-control:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.checkout-form input:focus,
.checkout-form select:focus,
.purchase-form input:focus,
.purchase-form select:focus {
    border-color: var(--nr-primary);
    box-shadow: var(--nr-focus);
}

.product-btn-primary,
.pos-btn-primary,
.button-dark,
.product-page-button-active,
.period-button-active,
.pos-segment-active {
    background: var(--nr-primary);
    color: #ffffff;
}

.product-btn-primary:hover,
.pos-btn-primary:hover,
.button-dark:hover {
    background: var(--nr-primary-strong);
    opacity: 1;
}

.product-btn-secondary,
.pos-btn-secondary,
.product-filter-button,
.product-filter-icon {
    background: var(--nr-surface);
    border-color: var(--nr-line);
    color: var(--nr-text);
}

.product-btn-secondary:hover,
.pos-btn-secondary:hover,
.product-filter-button:hover,
.product-filter-icon:hover,
.sales-attention-row:hover {
    background: var(--nr-primary-soft);
    border-color: #b9cdf4;
    color: var(--nr-primary);
}

.product-btn-primary,
.product-btn-secondary,
.pos-btn-primary,
.pos-btn-secondary,
.product-filter-button,
.product-filter-icon,
.button {
    border-radius: var(--nr-radius-sm);
    box-shadow: none;
    font-weight: 700;
    letter-spacing: 0;
}

.product-table th {
    background: var(--nr-surface-soft);
    border-bottom-color: var(--nr-line);
    font-size: 10px;
}

.product-table tbody {
    color: var(--nr-text);
}

.product-table-row {
    border-bottom-color: rgba(221, 227, 234, 0.9);
}

.product-table-row:hover,
.product-table-row:hover td:first-child,
.product-table-row:hover td:nth-child(2),
.product-table-row:hover .product-name-cell {
    background: #f8fbff;
}

.product-cell {
    padding: 11px 12px;
}

.product-thumb,
.collection-thumb,
.bulk-product-thumb,
.customer-avatar,
.variant-product-thumb,
.bulk-action-icon {
    background: var(--nr-primary-soft);
    border-color: rgba(17, 95, 212, 0.16);
    color: var(--nr-primary);
}

.status-badge,
.status-pill,
.product-badge,
.bulk-pending-badge,
.customer-segment-pill,
.category-group-pill,
.barcode-mono-token {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0;
}

.product-badge-success,
.status-green {
    background: var(--nr-success-soft);
    border-color: rgba(22, 128, 60, 0.18);
    color: var(--nr-success);
}

.product-badge-warning,
.status-amber {
    background: var(--nr-warning-soft);
    border-color: rgba(161, 98, 7, 0.2);
    color: var(--nr-warning);
}

.product-badge-danger,
.status-red,
.bulk-pending-badge {
    background: var(--nr-danger-soft);
    border-color: rgba(180, 35, 24, 0.18);
    color: var(--nr-danger);
}

.product-badge-neutral,
.status-gray,
.barcode-mono-token,
.category-group-pill {
    background: var(--nr-surface-muted);
    border-color: var(--nr-line);
    color: var(--nr-muted-strong);
}

.product-subnav,
.pos-subnav,
.customer-tabs,
.product-detail-tabs {
    border-bottom-color: var(--nr-line);
    gap: 10px;
}

.product-subnav-link,
.pos-subnav-link,
.customer-tab,
.product-detail-tab {
    border-radius: var(--nr-radius-sm) var(--nr-radius-sm) 0 0;
    color: var(--nr-muted-strong);
    letter-spacing: 0.03em;
}

.product-subnav-link:hover,
.product-subnav-link-active,
.pos-subnav-link:hover,
.pos-subnav-link-active,
.customer-tab:hover,
.customer-tab-active,
.product-detail-tab:hover,
.product-detail-tab-active {
    border-bottom-color: var(--nr-primary);
    color: var(--nr-primary);
}

.product-radio-card,
.sales-pipeline-step,
.sales-attention-row,
.category-group-card,
.collection-products-summary,
.collection-cover-dropzone {
    border-color: var(--nr-line);
    border-radius: var(--nr-radius);
}

.product-radio-card-active {
    background: var(--nr-primary-soft);
    border-color: var(--nr-primary);
}

.product-stock-card {
    background: #101827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--nr-radius);
    box-shadow: var(--nr-shadow);
}

.product-stock-card::after {
    display: none;
}

.bulk-floating-bar {
    background: #101827;
    border-radius: var(--nr-radius);
    box-shadow: var(--nr-shadow-strong);
}

.collection-drawer {
    border-left-color: var(--nr-line);
    box-shadow: var(--nr-shadow-strong);
}

@media (max-width: 767px) {
    main {
        padding: 16px !important;
    }

    main > section:first-child h2 {
        font-size: 22px !important;
        line-height: 1.2 !important;
    }

    .product-form-section,
    .sales-panel,
    .product-kpi-card,
    .product-table-toolbar,
    .inventory-toolbar,
    .barcode-toolbar,
    .collection-toolbar,
    .category-toolbar {
        padding: 14px;
    }

    .product-btn-primary,
    .product-btn-secondary,
    .pos-btn-primary,
    .pos-btn-secondary {
        justify-content: center;
        min-width: 0;
    }
}

/* Demo polish: consistent command-center rhythm across high-traffic modules. */
main > section:first-child {
    margin-bottom: 20px;
}

main > section:first-child > div {
    gap: 16px;
}

main > section:first-child h2 {
    color: var(--nr-ink);
    letter-spacing: 0;
}

main > section:first-child p {
    color: var(--nr-muted);
}

x-slot\:actions > div,
main > section:first-child .flex.flex-wrap,
.product-table-toolbar,
.inventory-toolbar,
.barcode-toolbar,
.collection-toolbar,
.category-toolbar,
.filter-bar {
    align-items: center;
}

.product-table-panel + .product-table-panel,
.sales-panel + .sales-panel,
.product-form-section + .product-form-section {
    margin-top: 20px;
}

.product-table td[colspan],
.product-cell[colspan] {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.product-table td[colspan] .material-symbols-outlined,
.product-cell[colspan] .material-symbols-outlined {
    color: var(--nr-muted);
}

.empty-state,
.notice,
.summary-box,
.checkout-form {
    border-radius: var(--nr-radius);
}

@media (max-width: 767px) {
    main > section:first-child > div,
    .product-table-toolbar,
    .inventory-toolbar,
    .barcode-toolbar,
    .collection-toolbar,
    .category-toolbar {
        align-items: stretch;
    }

    main > section:first-child .flex.flex-wrap,
    .product-table-toolbar > div + a,
    .product-table-toolbar > a,
    .inventory-toolbar > a,
    .barcode-toolbar > a,
    .collection-toolbar > a,
    .category-toolbar > a {
        width: 100%;
    }
}
