html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}
.header-bar {
    display: flex;
    align-items: center;
    gap: 12px; /* space between logo and actions */
    min-height: 80px; /* optional: set header height */
    height:auto;
}

/* Push the links group to the right (logical property — flips in RTL) */
.header-actions {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Logo sizing (left) */
.nav-logo {
    max-height: 60px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Maestro icon sizing (right) */
.nav-icon {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi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uMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/* ── Phone dial link (PBX-01) ────────────────────────────────────────────────────────────────────────────── */

/* Shared base — applied to both <a> and plain-text <span> wrappers */
.phone-link {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Plain-text fallback when number is null/empty */
.phone-link--empty {
    color: inherit;
    cursor: default;
}

/* MudBlazor Deskphone + Softphone button/link wrapper */
.phone-dial-link {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
/* ─────────────────────────────────────────────────────────────────────────────────────── */

/* ── WMS Touch Targets — #812 ───────────────────────────────────────────────────────────
 * Warehouse floor tablets (rugged, IP65+) require 48 px minimum touch targets per
 * WCAG 2.5.5. Applied by adding the .wms-touch class to each WMS page root container.
 */
.wms-touch .mud-button-root:not(.mud-chip-root) {
    min-height: 48px;
}
.wms-touch .mud-icon-button {
    min-width: 48px;
    min-height: 48px;
}
.wms-touch .mud-input-slot,
.wms-touch .mud-input-control {
    min-height: 48px;
}
.wms-touch .mud-tab {
    min-height: 48px;
}
/* Slightly larger text for barcode/SKU entry in warehouse lighting */
.wms-touch .mud-input-root input {
    font-size: 1.1rem;
}
/* ─────────────────────────────────────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────────────────────────────────── */
/* UI-audit #2987 / #2646 — tab-strip overflow fallback.
 *
 * 156 pages in the 2026-04-19 audit had MudTabs clip 1 000+ px of labels with no
 * scroll affordance when <MudTabs> was authored without ScrollableTabs="true".
 * Rather than hunt every razor file, force horizontal scrolling at the CSS level —
 * user gets native trackpad / keyboard scroll. MudBlazor's own ScrollableTabs
 * arrows still layer on top when the component was properly configured.
 */
.mud-tabs-tabbar-content,
.mud-tabs-toolbar-inner,
.mud-tabs-toolbar,
[role="tablist"] {
    /* !important to beat MudBlazor's own overflow:hidden rule loaded later */
    overflow-x: auto !important;
    scrollbar-width: thin;
}
.mud-tabs-tabbar-content::-webkit-scrollbar,
.mud-tabs-toolbar-inner::-webkit-scrollbar,
[role="tablist"]::-webkit-scrollbar {
    height: 6px;
}
/* ─────────────────────────────────────────────────────────────────────────────────────── */

/* ── RTL support (#2402) ────────────────────────────────────────────────────────────────
 *
 * Basic dir="rtl" pass for Farsi (fa) + future Arabic / Hebrew.
 * Full logical-property audit is deferred (#2402) pending Phase 2/3 traffic data.
 *
 * Layout: Bootstrap RTL CSS is swapped in by App.razor when dir=rtl.
 * The rules below patch the small number of hard-coded physical properties
 * in our own stylesheet and provide reusable RTL utilities.
 */

/* ── Icon mirroring ─────────────────────────────────────────────────────────
 * Apply .icon-flip-rtl to directional arrow/chevron/caret icons that should
 * mirror in RTL. Do NOT apply to brand logos, check marks, or warning icons.
 */
[dir="rtl"] .icon-flip-rtl {
    transform: scaleX(-1);
}

/* ── Error boundary — fix background-image origin ──────────────────────────
 * The .blazor-error-boundary uses a hard-coded background-position of "1rem"
 * (left edge) and padding-left of 3.7rem.  In RTL the icon should sit on the
 * right and padding should be on the right side.
 */
[dir="rtl"] .blazor-error-boundary {
    background-position: right 1rem center;
    padding: 1rem 3.7rem 1rem 1rem;
}

/* ── Monetary / numeric values — keep LTR inside RTL pages ─────────────────
 * USD prices ($624.00) contain ASCII digits and a leading $ sign; they must
 * always render LTR regardless of page direction.  Add .numeric-ltr to any
 * price, quantity, or phone-number span that must not reverse.
 */
.numeric-ltr {
    unicode-bidi: embed;
    direction: ltr;
}

/* ── Cart / checkout order summary ─────────────────────────────────────────
 * Right-align totals column so numbers flush to the edge in both LTR and RTL.
 */
[dir="rtl"] .order-summary-amount {
    text-align: start; /* "start" = left in LTR, right in RTL */
}
/* ─────────────────────────────────────────────────────────────────────────────────────── */
