/* /Pages/Custom/NewStockItem.razor.rz.scp.css */
/* NEW STOCK ITEM: same card style as Stock Update and the dashboard */
.ns[b-ykdp52ylf5] {
    --ns-border: var(--mud-palette-lines-default);
    --ns-muted: var(--mud-palette-text-secondary);
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 1400px;
}

.ns-header[b-ykdp52ylf5] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.ns-title[b-ykdp52ylf5] {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}

.ns-subtitle[b-ykdp52ylf5] {
    font-size: 0.85rem;
    color: var(--ns-muted);
    margin-top: 2px;
}

.ns[b-ykdp52ylf5]  .ns-btn {
    text-transform: none;
    font-weight: 600;
    border-radius: 8px;
}

.ns[b-ykdp52ylf5]  .ns-create {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    min-width: 220px;
    padding: 8px 20px;
}

.ns-card[b-ykdp52ylf5] {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--mud-palette-surface);
    border: 1px solid var(--ns-border);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 2px 8px rgba(16, 24, 40, 0.05);
}

.ns-card.ok[b-ykdp52ylf5] {
    border-left: 4px solid var(--mud-palette-success);
}

.ns-card.warn[b-ykdp52ylf5] {
    border-left: 4px solid var(--mud-palette-warning);
}

.ns-card-head[b-ykdp52ylf5] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ns-card-title[b-ykdp52ylf5] {
    font-weight: 700;
    font-size: 1rem;
    margin-right: auto;
}

.ns-muted[b-ykdp52ylf5] {
    color: var(--ns-muted);
    font-size: 0.85rem;
}

.ns-small[b-ykdp52ylf5] {
    font-size: 0.75rem;
    margin-top: 4px;
}

/* THE FORM: five columns on a wide screen, fewer as it narrows */
.ns-grid[b-ykdp52ylf5] {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px 14px;
    align-items: start;
}

.ns-row1[b-ykdp52ylf5] {
    grid-template-columns: 1fr 2fr 1.2fr 1.4fr 1.4fr;
}

/* THE SUPPLIER NAMES ARE LONG: its column is the widest */
.ns-row2[b-ykdp52ylf5] {
    grid-template-columns: 2.4fr 1fr 1fr 1fr 1fr;
}

.ns-row3[b-ykdp52ylf5] {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ns-lists-age[b-ykdp52ylf5] {
    font-size: 0.75rem;
}

@media (max-width: 1200px) {
    .ns-grid[b-ykdp52ylf5], .ns-row1[b-ykdp52ylf5], .ns-row2[b-ykdp52ylf5], .ns-row3[b-ykdp52ylf5] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .ns-grid[b-ykdp52ylf5], .ns-row1[b-ykdp52ylf5], .ns-row2[b-ykdp52ylf5], .ns-row3[b-ykdp52ylf5] {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ns-margin[b-ykdp52ylf5] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6px 4px;
}

.ns-margin-value[b-ykdp52ylf5] {
    font-size: 1.3rem;
    font-weight: 700;
}

/* THE STORES: one chip per store with its tick and its state */
.ns-stores[b-ykdp52ylf5] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ns-store-chip[b-ykdp52ylf5] {
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--ns-border);
    border-radius: 10px;
    padding: 2px 10px 2px 2px;
    background: var(--mud-palette-background);
    transition: border-color 0.15s, background-color 0.15s;
}

.ns-store-chip.on[b-ykdp52ylf5] {
    border-color: var(--mud-palette-primary);
    background: rgba(var(--mud-palette-primary-rgb), 0.08);
}

.ns-store-chip.off[b-ykdp52ylf5] {
    opacity: 0.6;
}

.ns-badge[b-ykdp52ylf5] {
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 1px 8px;
    white-space: nowrap;
}

.ns-badge.good[b-ykdp52ylf5] {
    color: var(--mud-palette-success);
    background: rgba(var(--mud-palette-success-rgb), 0.12);
}

.ns-badge.bad[b-ykdp52ylf5] {
    color: var(--mud-palette-error);
    background: rgba(var(--mud-palette-error-rgb), 0.12);
}

/* THE STATUS LIST */
.ns-status[b-ykdp52ylf5] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px dashed var(--ns-border);
    padding-top: 10px;
}

.ns-status > div[b-ykdp52ylf5] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ns-good[b-ykdp52ylf5] {
    color: var(--mud-palette-success);
    font-weight: 600;
}

.ns-bad[b-ykdp52ylf5] {
    color: var(--mud-palette-error);
}

.ns-warn[b-ykdp52ylf5] {
    color: var(--mud-palette-warning-darken);
}

.ns-actions[b-ykdp52ylf5] {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

/* THE RESULT PER STORE */
.ns-table[b-ykdp52ylf5] {
    width: 100%;
    border-collapse: collapse;
}

.ns-table td[b-ykdp52ylf5] {
    padding: 6px 8px;
    border-bottom: 1px solid var(--ns-border);
    vertical-align: middle;
}

.ns-table .ns-good[b-ykdp52ylf5], .ns-table .ns-bad[b-ykdp52ylf5] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ns-store[b-ykdp52ylf5] {
    font-weight: 600;
    width: 220px;
}
/* /Pages/Custom/StockUpdateAllStores.razor.rz.scp.css */
/* STOCK UPDATE: header, search card and the grid in the same card style as the dashboard */
.su[b-wtbtpcpthn] {
    --su-border: var(--mud-palette-lines-default);
    --su-muted: var(--mud-palette-text-secondary);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.su-header[b-wtbtpcpthn] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.su-title[b-wtbtpcpthn] {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}

.su-subtitle[b-wtbtpcpthn] {
    font-size: 0.85rem;
    color: var(--su-muted);
    margin-top: 2px;
}

.su-actions[b-wtbtpcpthn] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.su-running[b-wtbtpcpthn] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--mud-palette-warning);
}

.su[b-wtbtpcpthn]  .su-btn {
    text-transform: none;
    font-weight: 600;
    border-radius: 8px;
}

.su-search-card[b-wtbtpcpthn] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    background: var(--mud-palette-surface);
    border: 1px solid var(--su-border);
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 2px 8px rgba(16, 24, 40, 0.05);
}

.su[b-wtbtpcpthn]  .su-search {
    flex: 1 1 420px;
    max-width: 560px;
    margin: 0;
}

    .su[b-wtbtpcpthn]  .su-search .mud-input-outlined-border {
        border-radius: 10px;
    }

.su[b-wtbtpcpthn]  .su-fields .mud-chip {
    margin: 0 6px 0 0;
}

    .su[b-wtbtpcpthn]  .su-fields .su-field-on {
        font-weight: 600;
        box-shadow: 0 1px 3px rgba(30, 99, 214, 0.35);
    }

    .su[b-wtbtpcpthn]  .su-fields .su-field {
        color: var(--su-muted);
        border-color: var(--su-border);
    }

.su[b-wtbtpcpthn]  .su-grid {
    border: 1px solid var(--su-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 2px 8px rgba(16, 24, 40, 0.05);
}

    .su[b-wtbtpcpthn]  .su-grid .mud-table-head th {
        font-size: 0.72rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        color: var(--su-muted);
        background: var(--mud-palette-background-gray);
    }

    .su[b-wtbtpcpthn]  .su-grid .su-num {
        text-align: right;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }

.su[b-wtbtpcpthn]  .su-code {
    font-weight: 700;
}

.su[b-wtbtpcpthn]  .su-muted {
    color: var(--su-muted);
}

.su[b-wtbtpcpthn]  .su-neg {
    color: #c62828;
    font-weight: 600;
}

.su[b-wtbtpcpthn]  .su-warn {
    color: #ef6c00;
    font-weight: 600;
}

/* the search text in the results */
.su[b-wtbtpcpthn]  mark,
.su[b-wtbtpcpthn]  .su-mark {
    background: #fff3a0;
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
}

.su-empty[b-wtbtpcpthn] {
    padding: 24px;
    color: var(--su-muted);
}

/* TABS: All / Favourites */
.su-tabs[b-wtbtpcpthn] {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--su-border);
    padding: 0 2px;
}

.su-tab[b-wtbtpcpthn] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--su-muted);
    font: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 8px 14px 7px;
    cursor: pointer;
}

    .su-tab:hover[b-wtbtpcpthn] {
        color: var(--mud-palette-text-primary);
    }

    .su-tab.active[b-wtbtpcpthn] {
        color: var(--mud-palette-primary);
        border-bottom-color: var(--mud-palette-primary);
    }

    .su-tab:focus-visible[b-wtbtpcpthn] {
        outline: 2px solid var(--mud-palette-primary);
        outline-offset: 2px;
    }

.su[b-wtbtpcpthn]  .su-tab-star {
    font-size: 1.1rem;
    color: #e8a800;
}

/* THE STAR NEXT TO EACH ITEM: grey outline, gold when it is a favourite */
.su[b-wtbtpcpthn]  .su-star-col {
    width: 40px;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.su[b-wtbtpcpthn]  .su-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--mud-palette-text-disabled);
    cursor: pointer;
    transition: color .15s, background .15s, transform .15s;
}

    .su[b-wtbtpcpthn]  .su-star:hover {
        color: #e8a800;
        background: rgba(232, 168, 0, 0.1);
    }

    .su[b-wtbtpcpthn]  .su-star.on {
        color: #f5b301;
    }

    .su[b-wtbtpcpthn]  .su-star.on:hover {
        transform: scale(1.1);
    }

    .su[b-wtbtpcpthn]  .su-star:focus-visible {
        outline: 2px solid #e8a800;
        outline-offset: 1px;
    }

@media (prefers-reduced-motion: reduce) {
    .su[b-wtbtpcpthn]  .su-star { transition: none; }
}
/* /Pages/Custom/StoreHealthAllTenants.razor.rz.scp.css */
/* ===== Layout ===== */
.store-health-page[b-4wg9131gep] {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sh-header[b-4wg9131gep] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.sh-title[b-4wg9131gep] {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.sh-subtitle[b-4wg9131gep] {
    color: #6b6b6b;
    font-size: 0.875rem;
}

/* ===== Dots, tab labels, pills ===== */
.sh-dot[b-4wg9131gep] {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

    .sh-dot.online[b-4wg9131gep] {
        background-color: #2e7d32;
        box-shadow: 0 0 6px rgba(46, 125, 50, 0.7);
    }

    .sh-dot.slow[b-4wg9131gep] {
        background-color: #ef8f00;
        box-shadow: 0 0 6px rgba(239, 143, 0, 0.7);
    }

    .sh-dot.down[b-4wg9131gep] {
        background-color: #c62828;
        box-shadow: 0 0 6px rgba(198, 40, 40, 0.7);
    }

.sh-tab[b-4wg9131gep] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

    .sh-tab.online[b-4wg9131gep] {
        color: #2e7d32;
    }

    .sh-tab.slow[b-4wg9131gep] {
        color: #c77700;
    }

    .sh-tab.down[b-4wg9131gep] {
        color: #c62828;
    }

.sh-tab-count[b-4wg9131gep] {
    min-width: 22px;
    padding: 0 7px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.75rem;
    line-height: 20px;
    text-align: center;
}

    .sh-tab-count.online[b-4wg9131gep] {
        background-color: #2e7d32;
    }

    .sh-tab-count.slow[b-4wg9131gep] {
        background-color: #ef8f00;
    }

    .sh-tab-count.down[b-4wg9131gep] {
        background-color: #c62828;
    }

.sh-tab-bar[b-4wg9131gep] {
    height: 4px;
}

    .sh-tab-bar.online[b-4wg9131gep] {
        background-color: #2e7d32;
    }

    .sh-tab-bar.slow[b-4wg9131gep] {
        background-color: #ef8f00;
    }

    .sh-tab-bar.down[b-4wg9131gep] {
        background-color: #c62828;
    }

.sh-pill[b-4wg9131gep] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

    .sh-pill.online[b-4wg9131gep] {
        background-color: #2e7d32;
    }

    .sh-pill.slow[b-4wg9131gep] {
        background-color: #ef8f00;
    }

    .sh-pill.down[b-4wg9131gep] {
        background-color: #c62828;
    }

.sh-pill-dot[b-4wg9131gep] {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ffffff;
}

/* ===== Filters ===== */
.sh-filters[b-4wg9131gep] {
    display: flex;
    gap: 12px;
    padding: 12px;
    flex-wrap: wrap;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background-color: #ffffff;
}

.sh-tenant-select[b-4wg9131gep] {
    flex: 0 1 300px;
}

.sh-search[b-4wg9131gep] {
    flex: 1 1 240px;
}

.sh-checking[b-4wg9131gep] {
    display: flex;
    align-items: center;
    color: #6b6b6b;
    font-size: 0.875rem;
}

/* ===== Table ===== */
.sh-tabs-card[b-4wg9131gep] {
    border-radius: 10px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.sh-table th[b-4wg9131gep] {
    color: #6b6b6b !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 0.72rem !important;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.sh-table td[b-4wg9131gep] {
    vertical-align: top;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.sh-store[b-4wg9131gep] {
    font-weight: 600;
    white-space: nowrap;
}

.sh-tenant[b-4wg9131gep] {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 6px;
    background-color: #eef1f5;
    color: #44505e;
    font-size: 0.8rem;
    white-space: nowrap;
}

.sh-nowrap[b-4wg9131gep] {
    white-space: nowrap;
}

.sh-problem[b-4wg9131gep] {
    min-width: 260px;
    max-width: 520px;
}

.sh-problem-label[b-4wg9131gep] {
    font-weight: 600;
}

.sh-problem-detail[b-4wg9131gep] {
    color: #6b6b6b;
    font-size: 0.8rem;
    line-height: 1.35;
    margin-top: 2px;
}

.sh-empty[b-4wg9131gep] {
    padding: 28px 16px;
    text-align: center;
    color: #6b6b6b;
}
/* /Shared/Components/Custom/Banners/BannerPicker.razor.rz.scp.css */
.bp-head[b-fb03pq0asd] {
	display: flex;
	align-items: baseline;
	margin: 16px 0 8px;
}

.bp-grid[b-fb03pq0asd] {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 10px;
}

.bp-card[b-fb03pq0asd] {
	border: 2px solid transparent;
	border-radius: 8px;
	padding: 4px;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}

.bp-card:hover[b-fb03pq0asd] {
	background: var(--mud-palette-action-default-hover);
}

.bp-card.selected[b-fb03pq0asd] {
	border-color: var(--mud-palette-primary);
}

.bp-name[b-fb03pq0asd] {
	display: flex;
	align-items: center;
	font-size: 13px;
	font-weight: 500;
	padding: 6px 4px 2px;
}
/* /Shared/Components/Custom/Banners/BannerPreview.razor.rz.scp.css */
.bn-bar[b-f0rnn1aqir] {
	display: flex;
	align-items: center;
	height: 64px;
	padding: 0 16px 0 24px;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,.25);
	color: #fff;
}

.bn-logo[b-f0rnn1aqir] {
	flex: 0 0 auto;
	max-width: 60%;
	height: 100%;
	display: flex;
	align-items: center;
	overflow: hidden;
}

.bn-logo img[b-f0rnn1aqir] {
	max-height: 60px;
}

.bn-nologo[b-f0rnn1aqir] {
	font-size: 13px;
	opacity: .8;
	font-style: italic;
}

.bn-right[b-f0rnn1aqir] {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 6px;
}

.bn-chip[b-f0rnn1aqir] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: rgba(255,255,255,.88);
	color: #333;
	border-radius: 14px;
	padding: 3px 10px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.bn-chip i[b-f0rnn1aqir] {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	display: inline-block;
}

.bn-avatar[b-f0rnn1aqir] {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #1e63d6;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 600;
	margin-left: 4px;
}

/* SMALL: in the pickers (the logo keeps its own style, the bar is scaled down) */
.bn-bar.small[b-f0rnn1aqir] {
	height: 48px;
	padding: 0 10px 0 14px;
}

.bn-bar.small .bn-logo img[b-f0rnn1aqir] {
	max-height: 42px;
}

.bn-bar.small .bn-chip[b-f0rnn1aqir] {
	display: none;
}

.bn-bar.small .bn-avatar[b-f0rnn1aqir] {
	width: 26px;
	height: 26px;
	font-size: 11px;
}
/* /Shared/Components/Custom/DailySalesComparison.razor.rz.scp.css */
.dsc[b-ccs1hoo9v0] {
    --dsc-border: var(--mud-palette-lines-default);
    --dsc-muted: var(--mud-palette-text-secondary);
    --dsc-current: rgba(30, 99, 214, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dsc-toolbar[b-ccs1hoo9v0] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.dsc-month[b-ccs1hoo9v0] {
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--dsc-border);
    border-radius: 10px;
    padding: 2px 4px;
    background: var(--mud-palette-surface);
}

.dsc-month-label[b-ccs1hoo9v0] {
    min-width: 84px;
    text-align: center;
    font-weight: 600;
}

.dsc[b-ccs1hoo9v0]  .dsc-store {
    max-width: 240px;
    flex: 0 0 240px;
    margin: 0;
}

.dsc[b-ccs1hoo9v0]  .dsc-metrics {
    margin-left: auto;
}

.dsc-empty[b-ccs1hoo9v0] {
    padding: 24px;
    color: var(--dsc-muted);
}

/* MONTH-TO-DATE CARDS */
.dsc-cards[b-ccs1hoo9v0] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dsc-card[b-ccs1hoo9v0] {
    background: var(--mud-palette-surface);
    border: 1px solid var(--dsc-border);
    border-left: 4px solid var(--mud-palette-lines-inputs);
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 2px 8px rgba(16, 24, 40, 0.05);
}

    .dsc-card.current[b-ccs1hoo9v0] {
        border-left-color: #1e63d6;
    }

.dsc-card-title[b-ccs1hoo9v0] {
    font-size: 0.8rem;
    color: var(--dsc-muted);
}

.dsc-card-value[b-ccs1hoo9v0] {
    font-size: 1.35rem;
    font-weight: 700;
}

.dsc-card-sub[b-ccs1hoo9v0] {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
}

.dsc-card-change[b-ccs1hoo9v0] {
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 2px;
}

    .dsc-card-change.up[b-ccs1hoo9v0] {
        color: #2e7d32;
    }

    .dsc-card-change.down[b-ccs1hoo9v0] {
        color: #c62828;
    }

.dsc-card-foot[b-ccs1hoo9v0] {
    font-size: 0.75rem;
    color: var(--dsc-muted);
    margin-top: 2px;
}

/* DAY TABLE */
.dsc-table-wrap[b-ccs1hoo9v0] {
    background: var(--mud-palette-surface);
    border: 1px solid var(--dsc-border);
    border-radius: 12px;
    overflow: auto;
    max-height: calc(100vh - 380px);
    min-height: 260px;
}

.dsc-table[b-ccs1hoo9v0] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

    .dsc-table th[b-ccs1hoo9v0],
    .dsc-table td[b-ccs1hoo9v0] {
        padding: 3px 8px;
        border-bottom: 1px solid var(--dsc-border);
        white-space: nowrap;
    }

    .dsc-table thead th[b-ccs1hoo9v0] {
        position: sticky;
        top: 0;
        background: var(--mud-palette-background-gray);
        font-weight: 600;
        text-align: right;
        z-index: 1;
    }

    .dsc-table thead tr:nth-child(2) th[b-ccs1hoo9v0] {
        top: 25px;
    }

    .dsc-table thead tr.group th.metric[b-ccs1hoo9v0] {
        text-align: center;
        border-left: 2px solid var(--dsc-border);
    }

    .dsc-table th.day[b-ccs1hoo9v0],
    .dsc-table td.day[b-ccs1hoo9v0] {
        text-align: left;
        font-weight: 600;
        width: 48px;
    }

    .dsc-table td.num[b-ccs1hoo9v0] {
        text-align: right;
    }

    .dsc-table .current[b-ccs1hoo9v0] {
        background: var(--dsc-current);
        font-weight: 600;
    }

    .dsc-table thead th.current[b-ccs1hoo9v0] {
        color: #1e63d6;
    }

    /* each metric group starts with the current month: a divider on its left */
    .dsc-table tbody td.current[b-ccs1hoo9v0],
    .dsc-table tfoot td.current[b-ccs1hoo9v0],
    .dsc-table thead tr:nth-child(2) th.current[b-ccs1hoo9v0] {
        border-left: 2px solid var(--dsc-border);
    }

    .dsc-table td.sun[b-ccs1hoo9v0] {
        color: var(--dsc-muted);
        background: rgba(0, 0, 0, 0.025);
    }

    .dsc-table td.na[b-ccs1hoo9v0] {
        background: repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(0, 0, 0, 0.03) 4px, rgba(0, 0, 0, 0.03) 8px);
    }

    .dsc-table td.low[b-ccs1hoo9v0] {
        color: #ef6c00;
    }

    .dsc-table td.neg[b-ccs1hoo9v0] {
        color: #c62828;
    }

    .dsc-table tr.latest td.day[b-ccs1hoo9v0] {
        color: #1e63d6;
    }

    .dsc-table tbody tr:hover td[b-ccs1hoo9v0] {
        background: rgba(30, 99, 214, 0.08);
    }

    .dsc-table tfoot td[b-ccs1hoo9v0] {
        position: sticky;
        bottom: 0;
        background: var(--mud-palette-background-gray);
        font-weight: 700;
        border-top: 2px solid var(--dsc-border);
    }

.dsc-note[b-ccs1hoo9v0] {
    font-size: 0.75rem;
    color: var(--dsc-muted);
}

@media (max-width: 900px) {
    .dsc-cards[b-ccs1hoo9v0] {
        grid-template-columns: 1fr;
    }

    .dsc[b-ccs1hoo9v0]  .dsc-metrics {
        margin-left: 0;
    }
}

/* ISSUE #13: A DAY WITHOUT FIGURES IS NEVER R 0 */
.dsc-table td.closed[b-ccs1hoo9v0] {
    color: var(--dsc-muted);
    background: rgba(0, 0, 0, 0.05);
    font-style: italic;
    font-size: 0.72rem;
}

.dsc-table td.nodata[b-ccs1hoo9v0] {
    color: #8d6e63;
    font-size: 0.72rem;
    background: repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(239, 108, 0, 0.10) 4px, rgba(239, 108, 0, 0.10) 8px);
}

.dsc-part[b-ccs1hoo9v0] {
    color: #ef6c00;
    font-weight: 700;
    margin-left: 1px;
}

.dsc-card-nodata[b-ccs1hoo9v0] {
    font-size: 0.72rem;
    color: #ef6c00;
    margin-top: 2px;
}

.dsc-note-left[b-ccs1hoo9v0] {
    color: #ef6c00;
    margin-bottom: 2px;
}

.dsc-key[b-ccs1hoo9v0] {
    display: inline-block;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin: 0 2px;
}

    .dsc-key.closed[b-ccs1hoo9v0] {
        background: rgba(0, 0, 0, 0.07);
        font-style: italic;
    }

    .dsc-key.nodata[b-ccs1hoo9v0] {
        background: repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(239, 108, 0, 0.18) 4px, rgba(239, 108, 0, 0.18) 8px);
        color: #8d6e63;
    }
/* /Shared/Components/Custom/DashboardTabPlaceholder.razor.rz.scp.css */
.dash-placeholder[b-rm9qt5gtgo] {
    background: var(--mud-palette-surface);
    border: 1px dashed var(--mud-palette-lines-inputs);
    border-radius: 12px;
    padding: 20px 24px;
    max-width: 860px;
}

.dash-placeholder-head[b-rm9qt5gtgo] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.dash-placeholder ul[b-rm9qt5gtgo] {
    margin: 0 0 10px 20px;
    padding: 0;
    list-style: disc;
}

.dash-placeholder li[b-rm9qt5gtgo] {
    margin: 4px 0;
}

.dash-placeholder-source[b-rm9qt5gtgo] {
    font-size: 0.8rem;
    color: var(--mud-palette-text-secondary);
}
/* /Shared/Components/Custom/DashboardTabs.razor.rz.scp.css */
/* Tab bar above the dashboard: compact, so the Overview tab still fits the screen at 100% */
.dash[b-sfpwkwuw9p]  .dash-tabs .mud-tabs-tabbar {
    border-bottom: 1px solid var(--mud-palette-lines-default);
    background: transparent;
}

.dash[b-sfpwkwuw9p]  .dash-tabs .mud-tab {
    min-height: 40px;
    padding: 6px 14px;
    text-transform: none;
    font-weight: 500;
}

    .dash[b-sfpwkwuw9p]  .dash-tabs .mud-tab .mud-icon-root {
        font-size: 1.1rem;
        margin-right: 6px;
    }

.dash[b-sfpwkwuw9p]  .dash-tabs .mud-tab-active {
    color: var(--mud-palette-primary);
    font-weight: 600;
}
/* /Shared/Components/Custom/RiskTransactions.razor.rz.scp.css */
.rk[b-cqrh116s0g] {
    --rk-border: var(--mud-palette-lines-default);
    --rk-muted: var(--mud-palette-text-secondary);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rk-toolbar[b-cqrh116s0g] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.rk-label[b-cqrh116s0g] {
    font-weight: 600;
    color: var(--rk-muted);
}

.rk[b-cqrh116s0g]  .rk-date {
    max-width: 210px;
    flex: 0 0 210px;
    margin: 0;
}

.rk[b-cqrh116s0g]  .rk-store {
    max-width: 240px;
    flex: 0 0 240px;
    margin: 0;
}

.rk-period[b-cqrh116s0g] {
    font-size: 0.8rem;
    color: var(--rk-muted);
}

.rk-empty[b-cqrh116s0g] {
    padding: 24px;
    color: var(--rk-muted);
}

.rk-groups[b-cqrh116s0g] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rk-card[b-cqrh116s0g] {
    background: var(--mud-palette-surface);
    border: 1px solid var(--rk-border);
    border-left: 4px solid var(--mud-palette-lines-inputs);
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 2px 8px rgba(16, 24, 40, 0.05);
    min-width: 0;
}

    .rk-card.price[b-cqrh116s0g] {
        border-left-color: #ef6c00;
    }

    .rk-card.belowcost[b-cqrh116s0g] {
        border-left-color: #c62828;
    }

    .rk-card.lines[b-cqrh116s0g] {
        border-left-color: #1e63d6;
    }

.rk-card-head[b-cqrh116s0g] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin-bottom: 8px;
}

.rk-card-title[b-cqrh116s0g] {
    font-weight: 700;
}

.rk-card-sub[b-cqrh116s0g] {
    font-size: 0.78rem;
    color: var(--rk-muted);
    flex-basis: 100%;
}

.rk-none[b-cqrh116s0g] {
    color: var(--rk-muted);
    font-size: 0.85rem;
    padding: 6px 0;
}

.rk-table[b-cqrh116s0g] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

    .rk-table th[b-cqrh116s0g],
    .rk-table td[b-cqrh116s0g] {
        padding: 3px 6px;
        border-bottom: 1px solid var(--rk-border);
        text-align: right;
        white-space: nowrap;
    }

    .rk-table th[b-cqrh116s0g] {
        font-weight: 600;
        background: var(--mud-palette-background-gray);
    }

    .rk-table tr.period th[b-cqrh116s0g] {
        text-align: center;
    }

    .rk-table .name[b-cqrh116s0g] {
        text-align: left;
    }

    .rk-table .day[b-cqrh116s0g],
    .rk-table .mtd[b-cqrh116s0g] {
        border-left: 2px solid var(--rk-border);
    }

    .rk-table td.muted[b-cqrh116s0g] {
        color: var(--rk-muted);
        text-align: center;
    }

    .rk-table td.down[b-cqrh116s0g] {
        color: #c62828;
    }

    .rk-table td.up[b-cqrh116s0g] {
        color: #2e7d32;
    }

    .rk-table tbody tr[b-cqrh116s0g] {
        cursor: pointer;
    }

        .rk-table tbody tr:hover td[b-cqrh116s0g] {
            background: rgba(30, 99, 214, 0.06);
        }

        .rk-table tbody tr.picked td[b-cqrh116s0g] {
            background: rgba(30, 99, 214, 0.12);
        }

    .rk-table tfoot td[b-cqrh116s0g] {
        font-weight: 700;
        border-top: 2px solid var(--rk-border);
    }

.rk-lines-wrap[b-cqrh116s0g] {
    overflow: auto;
    max-height: 420px;
}

.rk-lines thead th[b-cqrh116s0g] {
    position: sticky;
    top: 0;
    z-index: 1;
}

.rk-lines tbody tr[b-cqrh116s0g] {
    cursor: default;
}

.rk-lines td.item[b-cqrh116s0g] {
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rk-badge[b-cqrh116s0g] {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 10px;
    padding: 1px 8px;
    margin-left: 4px;
}

    .rk-badge.price[b-cqrh116s0g] {
        background: rgba(239, 108, 0, 0.12);
        color: #ef6c00;
    }

    .rk-badge.below[b-cqrh116s0g] {
        background: rgba(198, 40, 40, 0.12);
        color: #c62828;
    }

.rk-note[b-cqrh116s0g] {
    font-size: 0.75rem;
    color: var(--rk-muted);
}

@media (max-width: 1200px) {
    .rk-groups[b-cqrh116s0g] {
        grid-template-columns: 1fr;
    }
}
/* /Shared/Components/Custom/SalesDashboard.razor.rz.scp.css */
/* ===== Sales dashboard (D1 / D3 / D4 / D5) ===== */
.sd[b-ppy4bgz6mu] {
    --sd-green: #2e7d32;
    --sd-red: #c62828;
    --sd-orange: #ef6c00;
    --sd-blue: #1e63d6;
    --sd-purple: #7b3fd1;
    --sd-muted: var(--mud-palette-text-secondary);
    --sd-border: var(--mud-palette-lines-default);
    --sd-radius: 12px;
    --sd-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 2px 8px rgba(16, 24, 40, 0.05);
    padding: 0 4px 8px 4px;
}

/* Header */
.sd-header[b-ppy4bgz6mu] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.sd-header-actions[b-ppy4bgz6mu] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.sd-date-label[b-ppy4bgz6mu] {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sd-muted);
    white-space: nowrap;
}

[b-ppy4bgz6mu] .sd-date {
    width: 190px;
    flex: 0 0 190px;
    margin-top: 0 !important;
}

[b-ppy4bgz6mu] .sd-date .mud-input-slot {
    font-size: 0.85rem;
}

.sd-greeting[b-ppy4bgz6mu] {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--mud-palette-text-primary);
}

.sd-subtitle[b-ppy4bgz6mu] {
    font-size: 0.82rem;
    color: var(--sd-muted);
    margin-top: 2px;
}

/* Info / stale bars */
.sd-bar[b-ppy4bgz6mu] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    border-radius: 10px;
    padding: 5px 12px;
    margin-bottom: 10px;
}

    .sd-bar.info[b-ppy4bgz6mu] {
        color: var(--sd-blue);
        background-color: rgba(30, 99, 214, 0.08);
        border: 1px solid rgba(30, 99, 214, 0.22);
    }

    .sd-bar.stale[b-ppy4bgz6mu] {
        color: var(--sd-red);
        background-color: rgba(198, 40, 40, 0.08);
        border: 1px solid rgba(198, 40, 40, 0.3);
    }

/* Cards */
.sd-card[b-ppy4bgz6mu] {
    position: relative;
    background-color: var(--mud-palette-surface);
    border: 1px solid var(--sd-border);
    border-radius: var(--sd-radius);
    box-shadow: var(--sd-shadow);
    padding: 16px;
    overflow: hidden;
}

/* KPI cards: coloured accent on the left */
.sd-kpis[b-ppy4bgz6mu] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.sd-kpi[b-ppy4bgz6mu] {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-height: 96px;
    padding: 12px 14px;
    border-left-width: 4px;
}

    .sd-kpi.accent-green[b-ppy4bgz6mu] {
        border-left-color: var(--sd-green);
    }

    .sd-kpi.accent-blue[b-ppy4bgz6mu] {
        border-left-color: var(--sd-blue);
    }

    .sd-kpi.accent-purple[b-ppy4bgz6mu] {
        border-left-color: var(--sd-purple);
    }

    .sd-kpi.accent-orange[b-ppy4bgz6mu] {
        border-left-color: var(--sd-orange);
    }

.sd-kpi-body[b-ppy4bgz6mu] {
    min-width: 0;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.sd-icon[b-ppy4bgz6mu] {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .sd-icon.green[b-ppy4bgz6mu] {
        color: var(--sd-green);
        background-color: rgba(46, 125, 50, 0.12);
    }

    .sd-icon.blue[b-ppy4bgz6mu] {
        color: var(--sd-blue);
        background-color: rgba(30, 99, 214, 0.12);
    }

    .sd-icon.purple[b-ppy4bgz6mu] {
        color: var(--sd-purple);
        background-color: rgba(123, 63, 209, 0.12);
    }

    .sd-icon.orange[b-ppy4bgz6mu] {
        color: var(--sd-orange);
        background-color: rgba(239, 108, 0, 0.12);
    }

/* Pictures on the right of the KPI cards */
.sd-spark[b-ppy4bgz6mu] {
    position: absolute;
    right: 14px;
    top: 16px;
    width: 120px;
    height: 44px;
    color: var(--sd-green);
    opacity: 0.9;
}

.sd-spark-line[b-ppy4bgz6mu] {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.sd-spark-area[b-ppy4bgz6mu] {
    fill: currentColor;
    opacity: 0.12;
}

.sd-ring[b-ppy4bgz6mu] {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    color: var(--sd-blue);
}

    .sd-ring.up[b-ppy4bgz6mu] {
        color: var(--sd-green);
    }

    .sd-ring.warn[b-ppy4bgz6mu] {
        color: var(--sd-orange);
    }

.sd-ring-track[b-ppy4bgz6mu] {
    fill: none;
    stroke: var(--mud-palette-lines-default);
    stroke-width: 7;
}

.sd-ring-value[b-ppy4bgz6mu] {
    fill: none;
    stroke: currentColor;
    stroke-width: 7;
    stroke-linecap: round;
}

.sd-ring-text[b-ppy4bgz6mu] {
    font-size: 13px;
    font-weight: 700;
    fill: var(--mud-palette-text-primary);
}

[b-ppy4bgz6mu] .sd-kpi-art {
    flex-shrink: 0;
    font-size: 3rem !important;
    width: 3rem;
    height: 3rem;
    opacity: 0.35;
    align-self: center;
}

    [b-ppy4bgz6mu] .sd-kpi-art.art-purple {
        color: var(--sd-purple);
    }

    [b-ppy4bgz6mu] .sd-kpi-art.art-orange {
        color: var(--sd-orange);
    }

.sd-label[b-ppy4bgz6mu] {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--sd-muted);
}

.sd-value[b-ppy4bgz6mu] {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--mud-palette-text-primary);
    white-space: nowrap;
}

    .sd-value.small[b-ppy4bgz6mu] {
        font-size: 1.35rem;
    }

.sd-sub[b-ppy4bgz6mu] {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.76rem;
    margin-top: 2px;
}

[b-ppy4bgz6mu] .sd-arrow {
    font-size: 0.95rem !important;
    width: 0.95rem;
    height: 0.95rem;
}

.up[b-ppy4bgz6mu] {
    color: var(--sd-green);
}

.down[b-ppy4bgz6mu] {
    color: var(--sd-red);
}

.warn[b-ppy4bgz6mu],
.sd-value.warn[b-ppy4bgz6mu] {
    color: var(--sd-orange);
}

/* CASH: over = blue, short = red */
.over[b-ppy4bgz6mu],
.sd-value.over[b-ppy4bgz6mu] {
    color: var(--sd-blue);
}

.sd-value.down[b-ppy4bgz6mu] {
    color: var(--sd-red);
}

.muted[b-ppy4bgz6mu] {
    color: var(--sd-muted);
}

.sd-asat[b-ppy4bgz6mu] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    color: var(--sd-muted);
    margin-top: 4px;
    min-height: 1em;
}

[b-ppy4bgz6mu] .sd-asat-icon {
    font-size: 0.8rem !important;
    width: 0.8rem;
    height: 0.8rem;
}

/* Section title */
.sd-section[b-ppy4bgz6mu] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mud-palette-text-primary);
    margin: 0 0 8px 2px;
}

/* Store cards: left border shows the store status */
.sd-stores[b-ppy4bgz6mu] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.sd-store[b-ppy4bgz6mu] {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-left-width: 4px;
    padding: 12px 14px;
    border-left-color: #bdbdbd;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

    .sd-store.status-online[b-ppy4bgz6mu] {
        border-left-color: var(--sd-green);
    }

    .sd-store.status-slow[b-ppy4bgz6mu] {
        border-left-color: #f9a825;
    }

    .sd-store.status-down[b-ppy4bgz6mu],
    .sd-store.is-stale[b-ppy4bgz6mu] {
        border-left-color: var(--sd-red);
    }

    .sd-store:hover[b-ppy4bgz6mu] {
        box-shadow: 0 6px 18px rgba(16, 24, 40, 0.12);
        transform: translateY(-1px);
    }

.sd-store-head[b-ppy4bgz6mu] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.sd-store-name[b-ppy4bgz6mu] {
    font-weight: 800;
    color: var(--mud-palette-text-primary);
    flex-grow: 1;
}

.sd-store-icon[b-ppy4bgz6mu] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    color: var(--sd-green);
    background-color: rgba(46, 125, 50, 0.1);
}

.sd-store-row[b-ppy4bgz6mu] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.8rem;
    margin-top: 6px;
}

.sd-store-foot[b-ppy4bgz6mu] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
}

    .sd-store-foot .sd-asat[b-ppy4bgz6mu],
    .sd-store-foot .sd-view[b-ppy4bgz6mu] {
        margin-top: 0;
    }

.sd-store-nodata[b-ppy4bgz6mu] {
    font-size: 0.8rem;
    color: var(--sd-muted);
    flex-grow: 1;
    padding: 8px 0;
}

.sd-view[b-ppy4bgz6mu] {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mud-palette-primary);
    margin-top: 8px;
}

/* Status dot (same colours as the header status bar) */
.sd-dot[b-ppy4bgz6mu] {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background-color: #bdbdbd;
}

    .sd-dot.online[b-ppy4bgz6mu] {
        background-color: #2e7d32;
        box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.18);
    }

    .sd-dot.slow[b-ppy4bgz6mu] {
        background-color: #f9a825;
        box-shadow: 0 0 0 3px rgba(249, 168, 37, 0.2);
    }

    .sd-dot.down[b-ppy4bgz6mu] {
        background-color: #d32f2f;
        box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2);
    }

/* Red flags */
.sd-flags[b-ppy4bgz6mu] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 10px;
    white-space: nowrap;
}

    .sd-flags.none[b-ppy4bgz6mu] {
        color: var(--sd-muted);
        background-color: var(--mud-palette-background-gray);
    }

    .sd-flags.some[b-ppy4bgz6mu] {
        color: var(--sd-orange);
        background-color: rgba(239, 108, 0, 0.12);
    }

    .sd-flags.high[b-ppy4bgz6mu] {
        color: #ffffff;
        background-color: var(--sd-red);
    }

[b-ppy4bgz6mu] .sd-flag-icon {
    font-size: 0.8rem !important;
    width: 0.8rem;
    height: 0.8rem;
}

/* D4: STALE - grey the figures, red pill */
.is-stale .sd-value[b-ppy4bgz6mu],
.is-stale .sd-sub[b-ppy4bgz6mu] {
    color: #9e9e9e !important;
}

.sd-stale-pill[b-ppy4bgz6mu] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--sd-red);
    background-color: rgba(198, 40, 40, 0.1);
    border-radius: 10px;
    padding: 2px 10px;
    margin-top: 8px;
}

/* Drill-down bar */
.sd-drill[b-ppy4bgz6mu] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.sd-drill-name[b-ppy4bgz6mu] {
    font-weight: 800;
    font-size: 1.05rem;
}

/* Trend */
.sd-trend[b-ppy4bgz6mu] {
    padding: 12px 16px 10px 16px;
}

.sd-trend-head[b-ppy4bgz6mu] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 4px;
}

.sd-trend-title[b-ppy4bgz6mu] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 800;
}

.sd-range[b-ppy4bgz6mu] {
    display: flex;
    gap: 6px;
}

.sd-range-btn[b-ppy4bgz6mu] {
    font: inherit;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--sd-border);
    background: var(--mud-palette-surface);
    color: var(--mud-palette-primary);
    cursor: pointer;
}

    .sd-range-btn.active[b-ppy4bgz6mu] {
        color: #ffffff;
        background: var(--mud-palette-primary);
        border-color: var(--mud-palette-primary);
    }

/* the chart takes what's left of the screen, so the whole dashboard fits at 100% zoom (never smaller than 170px) */
.sd-chart[b-ppy4bgz6mu] {
    height: clamp(170px, calc(100vh - 720px), 320px);
    padding: 10px 28px 26px 64px;
    color: var(--mud-palette-primary);
}

.sd-plot[b-ppy4bgz6mu] {
    position: relative;
    width: 100%;
    height: 100%;
}

.sd-plot-svg[b-ppy4bgz6mu] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    display: block;
}

.sd-grid[b-ppy4bgz6mu] {
    stroke: var(--mud-palette-lines-default);
    stroke-width: 1;
    stroke-dasharray: 3 4;
    vector-effect: non-scaling-stroke;
}

.sd-ylabel[b-ppy4bgz6mu],
.sd-xlabel[b-ppy4bgz6mu] {
    position: absolute;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    color: var(--sd-muted);
    pointer-events: none;
}

.sd-ylabel[b-ppy4bgz6mu] {
    left: -10px;
    transform: translate(-100%, -50%);
}

.sd-xlabel[b-ppy4bgz6mu] {
    top: calc(100% + 10px);
    transform: translateX(-50%);
}

.sd-chart-area[b-ppy4bgz6mu] {
    fill: url(#sdAreaFill);
}

.sd-chart-line[b-ppy4bgz6mu] {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.sd-chart-point[b-ppy4bgz6mu] {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-sizing: border-box;
    background: var(--mud-palette-surface);
    border: 2px solid currentColor;
    transform: translate(-50%, -50%);
    cursor: default;
}

    .sd-chart-point.small[b-ppy4bgz6mu] {
        width: 6px;
        height: 6px;
        border-width: 1.5px;
    }

    .sd-chart-point:hover[b-ppy4bgz6mu] {
        background: currentColor;
        width: 13px;
        height: 13px;
    }

.sd-trend.is-stale .sd-chart[b-ppy4bgz6mu] {
    filter: grayscale(1);
    opacity: 0.6;
}

.sd-trend-foot[b-ppy4bgz6mu] {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.68rem;
    color: var(--sd-muted);
    margin-top: 4px;
}

.sd-legend[b-ppy4bgz6mu] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--mud-palette-text-primary);
}

.sd-legend-dot[b-ppy4bgz6mu] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--mud-palette-primary);
}

/* Empty / error */
.sd-empty[b-ppy4bgz6mu] {
    background-color: var(--mud-palette-surface);
    border: 1px dashed var(--sd-border);
    border-radius: var(--sd-radius);
    padding: 24px;
    color: var(--sd-muted);
    margin-bottom: 16px;
}

.sd-empty-title[b-ppy4bgz6mu] {
    font-weight: 800;
    color: var(--mud-palette-text-primary);
    margin-bottom: 4px;
}

@media (max-width: 599.98px) {
    .sd-header[b-ppy4bgz6mu] {
        flex-direction: column;
    }

    .sd-value[b-ppy4bgz6mu] {
        font-size: 1.4rem;
    }

    .sd-spark[b-ppy4bgz6mu] {
        display: none;
    }
}

/* Cash over / under card opens the cash-up per till */
.sd-clickable[b-ppy4bgz6mu] {
    cursor: pointer;
    transition: box-shadow 0.15s ease;
}

    .sd-clickable:hover[b-ppy4bgz6mu],
    .sd-clickable.is-open[b-ppy4bgz6mu] {
        box-shadow: 0 6px 18px rgba(16, 24, 40, 0.12);
    }

.sd-details[b-ppy4bgz6mu] {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    margin-left: auto;
    padding-left: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--mud-palette-primary);
}

.sd-cashup[b-ppy4bgz6mu] {
    padding: 12px 16px 10px 16px;
    margin-bottom: 14px;
}

.sd-table-wrap[b-ppy4bgz6mu] {
    overflow-x: auto;
}

.sd-table[b-ppy4bgz6mu] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

    .sd-table th[b-ppy4bgz6mu],
    .sd-table td[b-ppy4bgz6mu] {
        padding: 5px 10px;
        text-align: right;
        white-space: nowrap;
        border-bottom: 1px solid var(--sd-border);
    }

    .sd-table th[b-ppy4bgz6mu] {
        font-size: 0.66rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: var(--sd-muted);
    }

    .sd-table .left[b-ppy4bgz6mu] {
        text-align: left;
    }

    .sd-table .sd-dot[b-ppy4bgz6mu] {
        margin-right: 6px;
    }

    .sd-table .sd-stale-pill[b-ppy4bgz6mu] {
        margin: 0 0 0 8px;
    }

.sd-table-group td[b-ppy4bgz6mu] {
    background-color: var(--mud-palette-background-gray);
    padding-top: 7px;
    padding-bottom: 7px;
}

.sd-till[b-ppy4bgz6mu] {
    padding-left: 30px !important;
    color: var(--sd-muted);
}

/* Red-flag lines */
.sd-clickable-chip[b-ppy4bgz6mu] {
    cursor: pointer;
}

    .sd-clickable-chip:hover[b-ppy4bgz6mu] {
        filter: brightness(1.08);
        box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.18);
    }

.sd-range-gap[b-ppy4bgz6mu] {
    width: 10px;
}

.sd-flag-summary[b-ppy4bgz6mu] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    font-size: 0.8rem;
    margin: 2px 0 8px 0;
}

.sd-badge[b-ppy4bgz6mu] {
    display: inline-block;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 1px 7px;
    border-radius: 8px;
    margin-right: 4px;
    white-space: nowrap;
}

    .sd-badge.override[b-ppy4bgz6mu] {
        color: var(--sd-orange);
        background-color: rgba(239, 108, 0, 0.12);
    }

    .sd-badge.below[b-ppy4bgz6mu] {
        color: #ffffff;
        background-color: var(--sd-red);
    }

.sd-flag-table[b-ppy4bgz6mu] {
    max-height: 420px;
    overflow-y: auto;
}

    .sd-flag-table thead th[b-ppy4bgz6mu] {
        position: sticky;
        top: 0;
        background-color: var(--mud-palette-surface);
        z-index: 1;
    }

.sd-item[b-ppy4bgz6mu] {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Store selector in the chart header, same look as the day buttons */
.sd-range[b-ppy4bgz6mu] {
    align-items: center;
}

.sd-store-btn[b-ppy4bgz6mu] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding-right: 4px;
}

[b-ppy4bgz6mu] .sd-store-btn-icon {
    font-size: 1rem !important;
    width: 1rem;
    height: 1rem;
}

/* ECHARTS TREND: the chart draws its own axes, so less padding */
.sd-echart[b-ppy4bgz6mu] {
    padding: 4px 8px 2px 4px;
}

/* CASH-UP (issue #29): warnings under a store, the "changed since first read" pill, the Other-as-cash note */
.sd-cash-warning td[b-ppy4bgz6mu] {
    color: var(--sd-orange);
    font-size: 0.78rem;
    padding-top: 4px;
    padding-bottom: 4px;
}

.sd-changed-pill[b-ppy4bgz6mu] {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--sd-orange);
    background-color: rgba(239, 108, 0, 0.12);
    border-radius: 10px;
    padding: 1px 8px;
}

.sd-cash-note[b-ppy4bgz6mu] {
    margin-left: 8px;
    font-size: 0.7rem;
    color: var(--sd-muted);
}

.sd-nowrap[b-ppy4bgz6mu] {
    white-space: nowrap;
}
/* /Shared/Components/Custom/StockKpis.razor.rz.scp.css */
.sk[b-qtdt78vkwa] {
    --sk-border: var(--mud-palette-lines-default);
    --sk-muted: var(--mud-palette-text-secondary);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sk-toolbar[b-qtdt78vkwa] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.sk-label[b-qtdt78vkwa] {
    font-weight: 600;
    color: var(--sk-muted);
}

.sk[b-qtdt78vkwa]  .sk-date {
    max-width: 210px;
    flex: 0 0 210px;
    margin: 0;
}

.sk[b-qtdt78vkwa]  .sk-store {
    max-width: 240px;
    flex: 0 0 240px;
    margin: 0;
}

.sk-empty[b-qtdt78vkwa] {
    padding: 24px;
    color: var(--sk-muted);
}

.sk-card[b-qtdt78vkwa] {
    background: var(--mud-palette-surface);
    border: 1px solid var(--sk-border);
    border-left: 4px solid #c62828;
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 2px 8px rgba(16, 24, 40, 0.05);
}

    .sk-card.top[b-qtdt78vkwa] {
        border-left-color: #1e63d6;
    }

    .sk-card.out[b-qtdt78vkwa] {
        border-left-color: #ef6c00;
    }

    .sk-card.taken[b-qtdt78vkwa] {
        border-left-color: #7b3fd1;
    }

    .sk-card.wait[b-qtdt78vkwa] {
        border-left-color: var(--mud-palette-lines-inputs);
    }

.sk-card-head[b-qtdt78vkwa] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin-bottom: 8px;
}

.sk-card-title[b-qtdt78vkwa] {
    font-weight: 700;
}

.sk-count[b-qtdt78vkwa] {
    font-size: 0.8rem;
    font-weight: 600;
    color: #c62828;
}

.sk-card-sub[b-qtdt78vkwa] {
    font-size: 0.78rem;
    color: var(--sk-muted);
    flex-basis: 100%;
}

.sk-none[b-qtdt78vkwa] {
    color: var(--sk-muted);
    font-size: 0.85rem;
    padding: 6px 0;
}

.sk-wrap[b-qtdt78vkwa] {
    overflow: auto;
    max-height: 420px;
}

.sk-table[b-qtdt78vkwa] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

    .sk-table th[b-qtdt78vkwa],
    .sk-table td[b-qtdt78vkwa] {
        padding: 3px 6px;
        border-bottom: 1px solid var(--sk-border);
        text-align: right;
        white-space: nowrap;
    }

    .sk-table th[b-qtdt78vkwa] {
        font-weight: 600;
        background: var(--mud-palette-background-gray);
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .sk-table .name[b-qtdt78vkwa] {
        text-align: left;
    }

    .sk-table td.desc[b-qtdt78vkwa] {
        max-width: 360px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sk-table td.down[b-qtdt78vkwa] {
        color: #c62828;
        font-weight: 600;
    }

    .sk-table tbody tr:hover td[b-qtdt78vkwa] {
        background: rgba(30, 99, 214, 0.06);
    }

/* ISSUE #5: TOP 20 SELLERS - the ranking switch, export buttons and the column it is ranked by (bold) */
.sk-actions[b-qtdt78vkwa] {
    display: inline-flex;
    gap: 6px;
    margin-left: auto;
}

.sk-table th.rank[b-qtdt78vkwa],
.sk-table td.rank[b-qtdt78vkwa] {
    font-weight: 700;
}
/* /Shared/Components/Custom/StoreStatusBar.razor.rz.scp.css */
/* ===== Header chips ===== */
.store-status-bar[b-o238aw179i] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 12px;
}

.store-chip[b-o238aw179i] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    cursor: default;
    user-select: none;
}

    .store-chip.online[b-o238aw179i] {
        color: #1b5e20;
    }

    .store-chip.slow[b-o238aw179i] {
        color: #8a5300;
    }

    .store-chip.down[b-o238aw179i] {
        color: #8b1a1a;
    }

    .store-chip.checking[b-o238aw179i] {
        color: #555555;
        background-color: rgba(255, 255, 255, 0.6);
        font-style: italic;
        animation: store-chip-pulse-b-o238aw179i 1.6s ease-in-out infinite;
    }

@keyframes store-chip-pulse-b-o238aw179i {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.45;
    }
}

.store-dot[b-o238aw179i] {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

    .store-dot.online[b-o238aw179i] {
        background-color: #2e7d32;
        box-shadow: 0 0 6px rgba(46, 125, 50, 0.8);
    }

    .store-dot.slow[b-o238aw179i] {
        background-color: #f9a825;
        box-shadow: 0 0 6px rgba(249, 168, 37, 0.8);
    }

    .store-dot.down[b-o238aw179i] {
        background-color: #d32f2f;
        box-shadow: 0 0 6px rgba(211, 47, 47, 0.8);
    }

/* Xs: dot + number only */
@media (max-width: 599.98px) {
    .store-status-bar[b-o238aw179i] {
        gap: 4px;
        margin-right: 4px;
    }

    .store-chip[b-o238aw179i] {
        padding: 3px 8px;
    }

    .store-chip-label[b-o238aw179i] {
        display: none;
    }
}

/* ===== Hover panel ===== */
.store-panel[b-o238aw179i] {
    background-color: #2b2b2b;
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    padding: 12px 14px;
    min-width: 320px;
}

.store-panel-header[b-o238aw179i] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 8px;
}

.store-panel-empty[b-o238aw179i] {
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 0;
}

.store-panel th[b-o238aw179i] {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    white-space: nowrap;
}

.store-panel td[b-o238aw179i] {
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    white-space: nowrap;
}

.store-panel td.store-issue[b-o238aw179i] {
    white-space: normal;
    min-width: 200px;
    max-width: 340px;
}

.store-issue-label[b-o238aw179i] {
    font-weight: 500;
}

.store-issue-detail[b-o238aw179i] {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    line-height: 1.3;
    margin-top: 2px;
}

.store-state-pill[b-o238aw179i] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 1px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
}

    .store-state-pill.online[b-o238aw179i] {
        background-color: #2e7d32;
    }

    .store-state-pill.slow[b-o238aw179i] {
        background-color: #e09100;
    }

    .store-state-pill.down[b-o238aw179i] {
        background-color: #c62828;
    }

.store-state-pill-dot[b-o238aw179i] {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ffffff;
}
