:root {
    --tblr-font-sans-serif: Inter, "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
    --bm-sidebar-start: #f5f7fa;
    --bm-sidebar-end: #eef2f6;
    --bm-brand-accent: #0f5cab;
    --bm-shell-border: #e5e7eb;
    --bm-shell-border-strong: #d5dbe3;
    --bm-shell-bg: #ffffff;
    --bm-panel-bg: #f7f8fa;
    --bm-panel-muted: #f2f4f7;
    --bm-text: #1f2d3d;
    --bm-text-muted: #637487;
    --bm-title: #142435;
    --bm-accent-soft: #e8f0fa;
    --bm-control-height: calc(1.4285714em + 0.62rem + 2px);
    --bm-control-padding-y: 0.34rem;
    --bm-control-padding-x: 0.58rem;
    --bm-control-font-size: 0.82rem;
    --bm-table-head-bg: #f6f7f9;
    --bm-table-row-hover: #f7f9fb;
    --bm-table-row-border: #e6eaf0;
    --bm-table-row-zebra: #fafbfc;
}

.bm-admin-body,
body {
    background: var(--bm-shell-bg);
    color: var(--bm-text);
    overflow-x: hidden;
}

.bm-shell-page,
.page {
    min-height: 100vh;
}

.bm-sidebar {
    background: linear-gradient(180deg, var(--bm-sidebar-start), var(--bm-sidebar-end));
    border-right: 1px solid var(--bm-shell-border);
}

.bm-sidebar .container-fluid {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding-top: 0.5rem;
    padding-bottom: 0.75rem;
}

.bm-sidebar .navbar-collapse {
    min-height: 0;
}

.bm-page-wrapper {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
}

.bm-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: inherit;
    text-decoration: none;
}

.bm-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.25rem;
    background: var(--bm-brand-accent);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.bm-brand-copy {
    display: grid;
    gap: 0.05rem;
}

.bm-brand-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #708093;
}

.bm-brand-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bm-title);
}

.bm-nav-section {
    margin-top: 0.5rem;
}

.bm-nav-section:first-child {
    margin-top: 0;
}

.bm-nav-section-label {
    padding-inline: 0;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: #8190a2 !important;
}

.bm-sidebar .nav-link {
    display: block;
    padding: 0.45rem 0.625rem;
    border-radius: 0.25rem;
    margin-bottom: 0.1rem;
    border: 1px solid transparent;
}

.bm-icon {
    display: inline-block;
    flex: 0 0 auto;
    vertical-align: middle;
}

.bm-nav-link-main {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.bm-nav-icon {
    color: #708093;
}

.bm-sidebar .nav-link.active .bm-nav-icon {
    color: var(--bm-brand-accent);
}

.bm-sidebar .nav-link.active {
    background: #fff;
    border-color: var(--bm-shell-border-strong);
    box-shadow: none;
}

.bm-sidebar .nav-link-description {
    display: block;
    margin-top: 0.08rem;
    color: #748496;
    font-size: 0.7rem;
    line-height: 1.25;
}

.bm-sidebar .nav-link-title {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--bm-title);
}

.bm-sidebar-footer {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid var(--bm-shell-border);
    color: var(--bm-title);
}

.bm-sidebar-footer-label {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7a899a;
    margin-bottom: 0.25rem;
}

.bm-sidebar-footer-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bm-title);
}

.bm-sidebar-footer-copy {
    margin-top: 0.2rem;
    color: var(--bm-text-muted);
    font-size: 0.72rem;
    line-height: 1.35;
}

.bm-topbar {
    min-height: 3rem;
    background: #fff;
    border-bottom: 1px solid var(--bm-shell-border);
}

.bm-topbar > .container-xl,
.bm-page-header > .container-xl,
.bm-page-body > .container-xl {
    width: 100%;
}

.bm-topbar > .container-xl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.bm-avatar {
    background: var(--bm-brand-accent);
    color: #fff;
    font-weight: 700;
}

.bm-topbar-kicker {
    padding-left: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #78889a;
}

.bm-topbar-copy {
    font-size: 0.82rem;
    color: var(--bm-text-muted);
}

.bm-topbar-badge {
    border-radius: 0.2rem;
    background: #edf2f7;
    color: #4d6278;
    border: 1px solid var(--bm-shell-border);
    font-weight: 600;
}

.bm-topbar-badge-demo {
    background: #fff4d6;
    border-color: #ebd18a;
    color: #7a5800;
}

.bm-topbar-profile {
    padding: 0.125rem 0 !important;
}

.bm-topbar-language-form {
    margin: 0;
}

.bm-topbar-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.bm-help-modal-dialog {
    max-width: min(1480px, calc(100vw - 2rem));
}

.bm-inline-icon {
    color: #708093;
}

.bm-button-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.bm-button-icon {
    margin-inline-start: -0.05rem;
    color: inherit;
}

.bm-card-title-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.bm-card-title-icon {
    color: #5f7389;
}

.bm-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.bm-summary-icon {
    color: #5f7389;
}

.bm-summary-icon.text-danger {
    color: var(--tblr-danger);
}

.bm-summary-icon.text-warning {
    color: var(--tblr-warning);
}

.bm-summary-icon.text-primary {
    color: var(--tblr-primary);
}

.bm-summary-icon.text-success {
    color: var(--tblr-success);
}

.bm-action-center-button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.bm-action-center-jump {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.bm-launcher-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.bm-topbar-language-select {
    min-width: 5.75rem;
    border-color: var(--bm-shell-border);
    background-color: #f8fafc;
    color: var(--bm-title);
    font-weight: 600;
}

.bm-topbar-language-select:focus {
    border-color: var(--bm-shell-border-strong);
    box-shadow: none;
}

.bm-language-switch-form {
    max-width: 100%;
}

.bm-app-sidebar {
    background: linear-gradient(180deg, #f8fafc, #eef3f7);
}

.bm-app-sidebar .bm-nav-section-label {
    letter-spacing: 0.14em;
}

.bm-app-sidebar .bm-nav-section-active {
    color: #2f4053;
}

.bm-help-modal-link {
    justify-content: flex-start;
}

.bm-app-sidebar .bm-nav-sub .nav-link {
    padding-left: 2.1rem;
}

.bm-app-sidebar .bm-nav-sub .nav-link-title {
    font-size: 0.78rem;
}

.bm-app-sidebar .bm-nav-sub .nav-link-description {
    font-size: 0.64rem;
    color: #7b8da0;
}

.bm-demo-banner {
    background: #fff9e8;
    border: 1px solid #ead9a4;
    border-left: 4px solid #d6a600;
    border-radius: 0.25rem;
    padding: 0.75rem 0.9rem;
    color: #4e4320;
}

.bm-demo-banner-title {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a5800;
    margin-bottom: 0.2rem;
}

.bm-demo-banner-copy {
    font-size: 0.82rem;
    line-height: 1.4;
}

.bm-demo-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: rgba(214, 166, 0, 0.12);
    border: 1px solid rgba(214, 166, 0, 0.25);
    color: #7a5800;
    font-size: 0.72rem;
    font-weight: 600;
}

.bm-demo-guide .card-body {
    background: linear-gradient(180deg, #fffdf7, #fff9ea);
}

.bm-demo-step {
    height: 100%;
    padding: 0.2rem 0.1rem;
}

.bm-demo-step-kicker {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8b6b12;
    margin-bottom: 0.2rem;
}

.bm-demo-step-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--bm-title);
    margin-bottom: 0.2rem;
}

.bm-demo-step-copy {
    font-size: 0.78rem;
    color: var(--bm-text-muted);
    line-height: 1.4;
}

.bm-demo-flow-card {
    background: linear-gradient(180deg, #fffef9, #fff9ec);
    border-color: #ead9a4;
}

.bm-validation-summary {
    border-left: 4px solid #c43c32;
}

.bm-validation-summary ul {
    font-size: 0.82rem;
    line-height: 1.45;
}

.bm-module-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.bm-module-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border: 1px solid var(--bm-shell-border);
    border-radius: 0.2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--bm-text);
    background: #fff;
}

.bm-kiosk-stat .card-body {
    padding: 1rem 1rem 0.9rem;
}

.bm-kiosk-panel .card-body {
    padding: 1rem;
}

.bm-kiosk-input {
    min-height: 2.85rem;
    font-size: 0.98rem;
}

.bm-kiosk-button {
    min-height: 2.85rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.bm-kiosk-queue {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.bm-kiosk-queue-item {
    display: block;
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--bm-shell-border);
    border-radius: 0.3rem;
    background: var(--bm-panel-muted);
    color: var(--bm-text);
    text-decoration: none;
}

.bm-kiosk-queue-item.active {
    background: #fff;
    border-color: var(--bm-brand-accent);
    box-shadow: inset 0 0 0 1px rgba(15, 92, 171, 0.08);
}

.bm-kiosk-queue-title,
.bm-kiosk-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bm-title);
}

.bm-kiosk-queue-copy,
.bm-kiosk-queue-meta,
.bm-kiosk-mini-meta {
    font-size: 0.82rem;
    color: var(--bm-text-muted);
}

.bm-kiosk-mini-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.bm-kiosk-info,
.bm-kiosk-section {
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--bm-shell-border);
    border-radius: 0.28rem;
    background: #fff;
}

.bm-kiosk-section-title {
    margin-bottom: 0.8rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #66788b;
}

.bm-kiosk-report-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.bm-kiosk-report-item {
    padding: 0.75rem 0.8rem;
    border: 1px solid var(--bm-shell-border);
    border-radius: 0.28rem;
    background: var(--bm-panel-muted);
    font-size: 0.88rem;
}

.bm-work-queue-table .btn {
    min-width: 5.2rem;
}

.bm-module-tab.active {
    border-color: var(--bm-brand-accent);
    color: var(--bm-brand-accent);
    background: #f7fbff;
}

.bm-app-topbar .bm-topbar-kicker {
    color: #557089;
}

.bm-login-body {
    background: #eef2f6;
}

.bm-login-page {
    min-height: 100vh;
}

.bm-login-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.bm-login-card {
    border: 1px solid var(--bm-shell-border);
    box-shadow: none;
}

.bm-login-copy {
    font-size: 0.78rem;
}

.bm-page-copy {
    max-width: 48rem;
    font-size: 0.78rem;
    line-height: 1.26;
}

.bm-breadcrumbs {
    opacity: 1;
    font-size: 0.65rem;
    color: #8b99a8;
}

.bm-header-actions {
    gap: 0.28rem;
}

.bm-page-header,
.page-header {
    padding-top: 0.48rem;
    padding-bottom: 0.22rem;
    background: #fff;
    border-bottom: 1px solid var(--bm-shell-border);
    position: relative;
    z-index: 1;
}

.bm-page-body,
.page-body {
    padding-top: 0.48rem;
    padding-bottom: 0.72rem;
    position: relative;
    z-index: 0;
}

.bm-shell-container {
    max-width: 1520px;
}

.bm-page-header-inner {
    min-height: 2.95rem;
}

.page-pretitle {
    margin-bottom: 0.06rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #6f8195;
}

.page-title {
    letter-spacing: -0.03em;
    font-weight: 700;
    color: var(--bm-title);
    font-size: 1.34rem;
}

.bm-page-toolbar .btn,
.bm-toolbar-actions .btn {
    border-radius: 0.2rem;
    box-shadow: none;
    font-weight: 600;
}

.btn {
    border-radius: 0.2rem;
    min-height: calc(1.4285714em + 0.5rem + 2px);
    padding: 0.26rem 0.66rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.34rem;
    box-shadow: none;
    transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.btn-primary {
    background: var(--bm-brand-accent);
    border-color: var(--bm-brand-accent);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-primary:hover,
.btn-primary:focus {
    background: #0c4f94;
    border-color: #0c4f94;
    color: #fff;
}

.btn-outline-primary {
    background: #fff;
    border-color: #cdd9e7;
    color: #184a79;
}

.btn-sm {
    min-height: calc(1.4285714em + 0.42rem + 2px);
    padding: 0.22rem 0.56rem;
    font-size: 0.76rem;
}

.btn-list {
    gap: 0.28rem;
}

.btn-list > * {
    margin: 0 !important;
}

.bm-admin-body .btn-primary,
.bm-admin-body .btn-success,
.bm-admin-body .btn-outline-primary,
.bm-admin-body .btn-outline-secondary,
.bm-admin-body .btn-outline-warning,
.bm-admin-body .btn-outline-danger {
    border-width: 1px;
}

.bm-admin-body .btn-outline-secondary {
    color: #4e6276;
    border-color: #cfd9e3;
    background: #fff;
}

.bm-admin-body .btn-outline-secondary:hover,
.bm-admin-body .btn-outline-secondary:focus {
    color: #213547;
    border-color: #b8c4d0;
    background: #f4f6f8;
}

.bm-admin-body .btn-outline-primary:hover,
.bm-admin-body .btn-outline-primary:focus,
.bm-admin-body .btn-outline-warning:hover,
.bm-admin-body .btn-outline-warning:focus,
.bm-admin-body .btn-outline-danger:hover,
.bm-admin-body .btn-outline-danger:focus {
    box-shadow: none;
}

.bm-admin-body .btn-outline-primary:hover,
.bm-admin-body .btn-outline-primary:focus {
    background: #f3f7fb;
    border-color: #b8cbe0;
    color: #123f69;
}

.bm-admin-body .btn-link,
.bm-admin-body .btn-ghost-secondary {
    border-color: transparent;
    background: transparent;
    color: #55687b;
}

.bm-admin-body .btn-link:hover,
.bm-admin-body .btn-link:focus,
.bm-admin-body .btn-ghost-secondary:hover,
.bm-admin-body .btn-ghost-secondary:focus {
    background: #f3f5f7;
    color: #203447;
    text-decoration: none;
}

.bm-stat-card {
    background: var(--bm-panel-bg);
}

.bm-list-summary-row {
    margin-bottom: 0.22rem !important;
}

.bm-list-summary-card {
    border-color: #dbe2ea;
}

.bm-list-summary-card .card-body {
    padding: 0.52rem 0.68rem !important;
}

.bm-list-summary-card .text-uppercase {
    font-size: 0.62rem !important;
    letter-spacing: 0.1em;
}

.bm-list-summary-card .h2 {
    margin-bottom: 0.1rem !important;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.bm-list-summary-card .text-secondary:last-child {
    font-size: 0.72rem;
    line-height: 1.25;
}

.bm-customer-command-grid .card-body {
    padding: 0.72rem 0.8rem;
}

.bm-customer-command-card .fs-5 {
    letter-spacing: -0.02em;
}

.bm-customer-command-actions .card-body {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.bm-customer-contact-list .list-group-item + .list-group-item {
    border-top: 1px solid #e3e9f0;
}

.bm-item-price-stack {
    display: grid;
    gap: 0.16rem;
    min-width: 10.5rem;
}

.bm-item-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.38rem;
    line-height: 1.2;
}

.bm-item-price-label {
    min-width: 3.7rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.bm-item-price-value {
    font-variant-numeric: tabular-nums;
}

.bm-item-price-currency,
.bm-item-price-empty {
    color: #6b7a8c;
}

.bm-item-price-row-standard .bm-item-price-label,
.bm-item-price-row-standard .bm-item-price-value {
    color: #132238;
    font-weight: 700;
}

.bm-item-price-row-purchase .bm-item-price-label,
.bm-item-price-row-purchase .bm-item-price-value {
    color: #5f6f82;
}

.bm-item-price-row-sales .bm-item-price-label,
.bm-item-price-row-sales .bm-item-price-value {
    color: #1e7a46;
}

.bm-crud-toolbar .card-body {
    padding: 0.42rem 0.62rem;
}

.bm-toolbar-panel {
    border-color: #dbe2ea;
}

.bm-toolbar-panel .row {
    --tblr-gutter-x: 0.42rem;
    --tblr-gutter-y: 0.42rem;
}

.bm-toolbar-panel .form-control,
.bm-toolbar-panel .form-select {
    min-height: calc(1.4285714em + 0.42rem + 2px);
    padding: 0.22rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 0.2rem;
}

.bm-toolbar-panel .btn {
    min-height: calc(1.4285714em + 0.42rem + 2px);
    padding: 0.22rem 0.58rem;
    font-size: 0.78rem;
}

.bm-filter-bar {
    padding: 0.44rem 0.6rem;
    border: 1px solid var(--bm-shell-border);
    border-radius: 0.24rem;
    background: linear-gradient(180deg, #fbfcfe 0%, #f5f8fb 100%);
}

.bm-filter-bar .row {
    --tblr-gutter-x: 0.42rem;
    --tblr-gutter-y: 0.36rem;
}

.bm-filter-bar .form-label {
    margin-bottom: 0.12rem;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #4e6277;
}

.bm-filter-bar .form-control,
.bm-filter-bar .form-select,
.bm-filter-bar .btn {
    min-height: calc(1.4285714em + 0.42rem + 2px);
    padding: 0.22rem 0.5rem;
    font-size: 0.78rem;
}

.bm-action-center .card-body {
    padding: 0.58rem 0.7rem;
}

.bm-action-center-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.bm-action-center-copy {
    min-width: 0;
    flex: 1 1 18rem;
}

.bm-action-center-head {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.08rem;
}

.bm-action-center-icon {
    color: #5f7389;
}

.bm-action-center-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--bm-title);
    line-height: 1.15;
}

.bm-action-center-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.36rem;
    flex-wrap: wrap;
}

.bm-action-center-actions > .btn,
.bm-action-center-actions > form > .btn {
    min-width: 9.5rem;
}

.bm-action-center-secondary {
    justify-content: flex-end;
}

.bm-action-center-jumps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.48rem;
    padding-top: 0.48rem;
    border-top: 1px solid #e2e9f0;
}

.bm-order-command-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.bm-order-command-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--bm-title);
    line-height: 1.15;
}

.bm-order-command-metrics .bm-meta-value {
    font-size: 0.96rem;
}

.bm-production-command-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.bm-production-command-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--bm-title);
    line-height: 1.15;
}

.bm-production-command-metrics .bm-meta-value {
    font-size: 0.96rem;
}

.bm-production-progress-rail {
    padding: 0.82rem 0.9rem;
    border: 1px solid #dbe5ee;
    border-radius: 0.7rem;
    background: linear-gradient(180deg, #fbfcfe 0%, #f5f8fb 100%);
}

.bm-production-overview-grid .card-body,
.bm-production-overview-card .card-body {
    padding: 0.82rem 0.88rem;
}

.bm-production-overview-card .fs-4 {
    font-size: 1.12rem !important;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.bm-production-summary-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.3rem;
}

.bm-procurement-command-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.bm-procurement-command-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--bm-title);
    line-height: 1.15;
}

.bm-procurement-command-metrics .bm-meta-value {
    font-size: 0.96rem;
}

.bm-availability-table td {
    vertical-align: top;
}

.bm-availability-qty {
    font-weight: 600;
    color: var(--bm-title);
}

.bm-availability-row-shortage {
    background: #fff7f4;
}

.bm-availability-row-partial {
    background: #fffcef;
}

.bm-work-order-row-current {
    background: #f5f9ff;
}

.bm-work-order-row-done {
    background: #f8fcf9;
}

.bm-work-order-progress {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.05rem;
}

.bm-work-order-actions {
    min-width: 16rem;
}

.bm-po-lines-table td {
    vertical-align: top;
}

.bm-po-line-qty {
    font-weight: 600;
    color: var(--bm-title);
}

.bm-po-line-actions {
    min-width: 11rem;
}

.bm-po-line-row-open {
    background: #fffdf5;
}

.bm-po-line-row-partial {
    background: #fff8f0;
}

.bm-po-line-row-done {
    background: #f8fcf9;
}

.bm-supply-demand-shell .card-body {
    padding-top: 0.85rem;
}

.bm-supply-summary .card-body {
    padding: 0.7rem 0.8rem;
}

.bm-supply-table td {
    vertical-align: top;
}

.bm-supply-qty {
    font-weight: 600;
    color: var(--bm-title);
}

.bm-supply-actions {
    min-width: 11rem;
}

.bm-supply-row-shortage {
    background: #fff4f1;
}

.bm-supply-row-blocked {
    background: #fff0ee;
}

.bm-supply-row-incoming {
    background: #fffaf0;
}

.bm-supply-row-excess {
    background: #f5faff;
}

.bm-supply-row-balanced {
    background: #fbfcfd;
}

.bm-order-lines-table td {
    vertical-align: top;
}

.bm-order-line-qty-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 0.75rem;
    min-width: 10rem;
}

.bm-order-line-qty-grid > div {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: baseline;
}

.bm-order-line-qty {
    font-weight: 600;
    color: var(--bm-title);
}

.bm-order-line-actions {
    min-width: 20rem;
}

.bm-order-line-row-shortage {
    background: #fff8f5;
}

.bm-order-line-row-done {
    background: #f8fcf9;
}

.bm-index-panel > .card-header {
    padding: 0.52rem 0.74rem;
}

.bm-index-panel .bm-section-title {
    font-size: 0.84rem;
}

.bm-index-panel .bm-section-copy {
    font-size: 0.73rem;
}

.bm-index-panel .btn-list {
    gap: 0.35rem;
}

.bm-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.bm-section-copy-wrap {
    min-width: 0;
}

.bm-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--bm-title);
}

.bm-section-copy {
    margin-top: 0.12rem;
    font-size: 0.7rem;
    line-height: 1.22;
    color: var(--bm-text-muted);
}

.bm-section-actions {
    flex-shrink: 0;
}

.bm-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    border-radius: 0.2rem;
    letter-spacing: 0.03em;
    font-weight: 700;
    border: 1px solid rgba(48, 72, 97, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    padding: 0.2rem 0.44rem;
    font-size: 0.68rem;
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
    min-height: calc(1.1em + 0.42rem);
}

.bm-status-badge::before {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    flex: 0 0 0.42rem;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.92;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.72);
}

.bm-status-badge[data-signal="shortage"] {
    background: #fff0ee !important;
    color: #b42318 !important;
    border-color: rgba(180, 35, 24, 0.22);
}

.bm-status-badge[data-signal="ready"] {
    background: #eef5ff !important;
    color: #175cd3 !important;
    border-color: rgba(23, 92, 211, 0.2);
}

.bm-status-badge[data-signal="blocked"] {
    background: #fef3f2 !important;
    color: #b42318 !important;
    border-color: rgba(145, 32, 24, 0.24);
    box-shadow: inset 0 0 0 1px rgba(180, 35, 24, 0.08);
}

.bm-status-badge[data-signal="completed"] {
    background: #ecfdf3 !important;
    color: #027a48 !important;
    border-color: rgba(2, 122, 72, 0.18);
}

.bm-data-table tbody tr.table-danger td .bm-status-badge[data-signal="shortage"],
.bm-data-table tbody tr.table-danger td .bm-status-badge[data-signal="blocked"] {
    box-shadow: inset 0 0 0 1px rgba(180, 35, 24, 0.12);
}

.bm-data-table tbody tr.table-warning td .bm-status-badge[data-signal="ready"] {
    box-shadow: inset 0 0 0 1px rgba(23, 92, 211, 0.1);
}

.bm-empty-state {
    padding: 1.05rem 0.85rem;
    text-align: center;
}

.bm-empty-state-title {
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--bm-title);
}

.bm-empty-state-copy {
    max-width: 28rem;
    margin: 0.4rem auto 0;
    color: var(--bm-text-muted);
    font-size: 0.78rem;
    line-height: 1.32;
}

.bm-form-actions {
    border-style: solid;
}

.bm-data-table td,
.bm-data-table th {
    vertical-align: middle;
}

.bm-data-table thead th {
    background: var(--bm-panel-muted);
    color: #4f6377;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    border-bottom: 1px solid #d9e1ea;
    padding: 0.46rem 0.68rem;
    white-space: nowrap;
}

.bm-data-table tbody td {
    padding: 0.42rem 0.68rem;
    border-bottom-color: #e2e9f0;
    font-size: 0.8rem;
    line-height: 1.18;
}

.bm-table-wrap {
    border-top: 1px solid var(--bm-shell-border);
}

.bm-data-table tbody tr:hover {
    background: #f8fafc;
}

.bm-data-table .btn.btn-sm {
    padding: 0.22rem 0.55rem;
    font-size: 0.76rem;
}

.bm-data-table .text-secondary.small,
.bm-data-table .small.text-secondary {
    font-size: 0.72rem !important;
}

.bm-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.bm-inline-card {
    background: var(--bm-panel-muted);
}

.form-hint {
    margin-top: 0.18rem;
    font-size: 0.69rem;
    color: #76879a;
}

.bm-meta-label {
    margin-bottom: 0.12rem;
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #77889b;
}

.bm-meta-value {
    color: var(--bm-title);
    font-weight: 600;
    line-height: 1.2;
}

.bm-meta-stack {
    display: grid;
    gap: 0.42rem;
}

.bm-form-grid .form-label {
    margin-bottom: 0.18rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--bm-title);
}

.bm-form-grid .form-control,
.bm-form-grid .form-select {
    min-height: var(--bm-control-height);
    padding: var(--bm-control-padding-y) var(--bm-control-padding-x);
    border-radius: 0.2rem;
    font-size: var(--bm-control-font-size);
    border-color: #cfd8e3;
    background: #fff;
}

.bm-form-grid textarea.form-control {
    min-height: 5.4rem;
}

.bm-admin-body .bm-panel,
.bm-admin-body .card {
    background: var(--bm-panel-bg);
    border: 1px solid var(--bm-shell-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    border-radius: 0.25rem;
}

.bm-admin-body .card-header {
    min-height: auto;
    padding: 0.48rem 0.72rem;
    background: linear-gradient(180deg, #fafbfc 0%, #f3f5f7 100%);
    border-bottom: 1px solid var(--bm-shell-border);
}

.bm-admin-body .card-body {
    padding: 0.62rem 0.72rem;
}

.bm-admin-body .card-title {
    letter-spacing: -0.02em;
    color: var(--bm-title);
    font-size: 0.86rem;
    font-weight: 700;
}

.bm-admin-body .text-secondary {
    color: var(--bm-text-muted) !important;
}

.bm-admin-body .list-group-item {
    padding: 0.5rem 0.72rem;
    border-color: #e3e9f0;
}

.bm-system-alert {
    border-radius: 0.2rem;
    border-color: #b7dfc0;
    padding: 0.48rem 0.62rem;
    font-size: 0.8rem;
}

.bm-form-actions-copy {
    font-size: 0.76rem;
}

.bm-list-pagination .card-body {
    padding: 0.42rem 0.8rem !important;
}

.bm-list-pagination .pagination .page-link {
    padding: 0.28rem 0.6rem;
    font-size: 0.78rem;
    border-radius: 0.2rem;
}

.bm-permission-module-table {
    display: grid;
    gap: 0.85rem;
}

.bm-permission-entity-block {
    border: 1px solid #e0e6ee;
    border-radius: 0.2rem;
    overflow: hidden;
    background: #fff;
}

.bm-permission-entity-label {
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid #e0e6ee;
    background: #f7f9fb;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #607285;
}

.bm-side-detail-panel .card-body {
    min-height: 6.5rem;
}

.bm-admin-body .form-label {
    margin-bottom: 0.16rem;
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--bm-title);
}

.bm-admin-body .form-control,
.bm-admin-body .form-select,
.bm-admin-body .input-group-text {
    min-height: calc(1.4285714em + 0.46rem + 2px);
    padding: 0.22rem 0.52rem;
    font-size: 0.8rem;
    border-radius: 0.2rem;
    box-shadow: none;
    border-color: #d7dde5;
    background: #fff;
}

.bm-admin-body .input-group-text {
    color: #5c6f83;
    background: #f3f5f7;
}

.bm-admin-body .form-control:focus,
.bm-admin-body .form-select:focus {
    border-color: #91abc6;
    box-shadow: 0 0 0 0.08rem rgba(15, 92, 171, 0.08);
    background: #fff;
}

.bm-admin-body .form-control.is-invalid,
.bm-admin-body .form-select.is-invalid {
    border-color: #d92d20;
    background-image: none;
}

.bm-admin-body textarea.form-control {
    min-height: 5.3rem;
}

.bm-admin-body .form-control::placeholder {
    color: #93a1b2;
    opacity: 1;
}

.bm-admin-body .form-hint,
.bm-admin-body .invalid-feedback,
.bm-admin-body .form-text {
    font-size: 0.69rem;
    line-height: 1.22;
}

.bm-admin-body .row.g-3,
.bm-admin-body .row.g-2 {
    --tblr-gutter-y: 0.6rem;
}

.bm-admin-body .btn {
    box-shadow: none;
}

.bm-admin-body .btn-sm,
.bm-header-actions .btn,
.bm-header-actions .btn-sm {
    padding: 0.24rem 0.56rem;
    font-size: 0.76rem;
    font-weight: 600;
}

.bm-header-actions {
    gap: 0.22rem;
}

.bm-admin-body .table-responsive {
    border-radius: 0.24rem;
    border: 1px solid var(--bm-shell-border);
    background: #fff;
}

.bm-admin-body .bm-table,
.bm-admin-body .bm-data-table {
    margin-bottom: 0;
    table-layout: auto;
}

.bm-admin-body .bm-table thead th,
.bm-admin-body .bm-data-table thead th {
    background: var(--bm-table-head-bg);
    color: #4f6275;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    border-bottom: 1px solid #dfe4ea;
    padding: 0.38rem 0.54rem;
    vertical-align: middle;
    white-space: nowrap;
}

.bm-admin-body .bm-table tbody td,
.bm-admin-body .bm-data-table tbody td {
    padding: 0.34rem 0.54rem;
    border-bottom-color: var(--bm-table-row-border);
    font-size: 0.79rem;
    line-height: 1.16;
    vertical-align: middle;
}

.bm-admin-body .bm-table tbody tr:nth-child(even),
.bm-admin-body .bm-data-table tbody tr:nth-child(even) {
    background: var(--bm-table-row-zebra);
}

.bm-admin-body .bm-table tbody td .btn-list,
.bm-admin-body .bm-data-table tbody td .btn-list {
    justify-content: flex-end;
}

.bm-admin-body .bm-table tbody tr:last-child td,
.bm-admin-body .bm-data-table tbody tr:last-child td {
    border-bottom-width: 0;
}

.bm-admin-body .bm-table.table-sm thead th,
.bm-admin-body .bm-table.table-sm tbody td,
.bm-admin-body .bm-data-table.table-sm thead th,
.bm-admin-body .bm-data-table.table-sm tbody td {
    padding-top: 0.26rem;
    padding-bottom: 0.26rem;
}

.bm-admin-body .bm-table tbody tr:hover,
.bm-admin-body .bm-data-table tbody tr:hover {
    background: var(--bm-table-row-hover);
}

.bm-admin-body .bm-table .text-secondary.small,
.bm-admin-body .bm-table .small.text-secondary,
.bm-admin-body .bm-data-table .text-secondary.small,
.bm-admin-body .bm-data-table .small.text-secondary {
    font-size: 0.67rem !important;
    line-height: 1.16;
}

.bm-admin-body .table > :not(caption) > * > * {
    box-shadow: none;
}

.bm-admin-body .row.row-cards,
.bm-admin-body .row.row-deck {
    --tblr-gutter-x: 0.72rem;
    --tblr-gutter-y: 0.72rem;
}

.bm-admin-body .row.g-3,
.bm-admin-body .g-3 {
    --tblr-gutter-x: 0.72rem;
    --tblr-gutter-y: 0.72rem;
}

.bm-admin-body .row.g-2,
.bm-admin-body .g-2 {
    --tblr-gutter-x: 0.5rem;
    --tblr-gutter-y: 0.5rem;
}

.bm-admin-body .progress {
    height: 0.42rem;
}

@media (max-width: 991.98px) {
    .bm-topbar > .container-xl {
        flex-wrap: wrap;
    }

    .bm-help-modal-dialog {
        max-width: calc(100vw - 1rem);
        margin: 0.5rem auto;
    }

    .page-header {
        padding-top: 0.75rem;
    }

    .bm-section-header {
        flex-direction: column;
    }

    .bm-sidebar .container-fluid {
        min-height: auto;
    }
}

@media (min-width: 992px) {
    .bm-sidebar .navbar-collapse {
        display: flex !important;
        flex: 1 1 auto;
        flex-direction: column;
    }
}

.bm-onboarding-card .card-header {
    align-items: flex-start;
}

.bm-onboarding-step {
    height: 100%;
    border: 1px solid var(--tblr-border-color, #dce3ea);
    background: #fbfcfe;
    padding: 0.85rem 0.9rem;
    border-radius: 0.5rem;
}

.bm-onboarding-step.is-complete {
    background: #f6fbf8;
    border-color: #cfe8d8;
}

.bm-onboarding-step-kicker {
    color: #7b8a9a;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bm-onboarding-step-title {
    margin-top: 0.15rem;
    font-size: 0.96rem;
    font-weight: 600;
    color: #1e2936;
}

.bm-onboarding-step-copy {
    color: #43566b;
    font-size: 0.8rem;
    line-height: 1.35;
}

.bm-onboarding-step-meta {
    display: flex;
    gap: 0.35rem;
    align-items: baseline;
}

.bm-start-launcher-grid {
    align-items: stretch;
}

.bm-start-launcher-card {
    overflow: hidden;
}

.bm-start-launcher-card .card-header {
    padding: 0.8rem 0.9rem 0.45rem;
    border-bottom: 0;
    background: linear-gradient(180deg, #fbfcfe 0%, #f8fafc 100%);
}

.bm-start-launcher-body {
    padding: 0.15rem 0.9rem 0.9rem;
}

.bm-start-launcher-title-wrap {
    display: grid;
    gap: 0.32rem;
    width: 100%;
}

.bm-start-launcher-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.bm-start-launcher-copy {
    color: #55687b;
    font-size: 0.77rem;
    line-height: 1.35;
    max-width: 34rem;
}

.bm-start-launcher-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.42rem;
}

.bm-start-launcher-action {
    justify-content: flex-start;
    width: 100%;
    min-height: calc(1.4285714em + 0.52rem + 2px);
    padding: 0.34rem 0.58rem;
    font-size: 0.76rem;
    text-align: left;
    white-space: normal;
    line-height: 1.2;
}

.bm-start-launcher-card-disabled .bm-start-launcher-copy {
    color: #708093;
}

.bm-guided-help-card .card-header {
    align-items: flex-start;
}

.bm-guided-help-toggle {
    min-width: 7rem;
    justify-content: center;
}

.bm-guided-help-toggle-icon {
    transition: transform 0.18s ease;
}

.bm-guided-help-card.is-collapsed .bm-guided-help-toggle-icon {
    transform: rotate(180deg);
}

.bm-guided-help-option {
    height: 100%;
    border: 1px solid var(--tblr-border-color, #dce3ea);
    background: #fbfcfe;
    border-radius: 0.5rem;
    padding: 0.9rem;
}

.bm-guided-help-copy {
    margin-top: 0.2rem;
    color: #55687b;
    font-size: 0.8rem;
    line-height: 1.4;
}

.bm-guided-tour-open {
    overflow-x: clip;
}

.bm-guided-tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 1040;
    pointer-events: none;
}

.bm-guided-tour-shade {
    position: fixed;
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    pointer-events: none;
}

.bm-guided-tour-highlight {
    position: fixed;
    z-index: 1041;
    border-radius: 0.75rem;
    border: 2px solid rgba(37, 99, 235, 0.5);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
    pointer-events: none;
    transition: top 0.18s ease, left 0.18s ease, width 0.18s ease, height 0.18s ease;
}

.bm-guided-tour-target-active {
    position: relative;
    z-index: 1041;
    border-radius: 0.85rem;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.26), 0 1rem 2.5rem rgba(15, 23, 42, 0.18);
    transition: box-shadow 0.18s ease;
}

.bm-guided-tour-popover {
    position: fixed;
    z-index: 1042;
    width: min(24rem, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border: 1px solid #dce3ea;
    border-radius: 0.85rem;
    box-shadow: 0 1.25rem 3rem rgba(15, 23, 42, 0.18);
    padding: 1rem 1rem 0.95rem;
}

.bm-guided-tour-kicker {
    color: #2563eb;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bm-guided-tour-progress {
    margin-top: 0.35rem;
    color: #708093;
    font-size: 0.74rem;
    font-weight: 600;
}

.bm-guided-tour-title {
    margin: 0.55rem 0 0.35rem;
    font-size: 1rem;
    line-height: 1.3;
    color: #17212b;
}

.bm-guided-tour-copy {
    margin: 0;
    color: #4a5b6c;
    font-size: 0.84rem;
    line-height: 1.5;
}

.bm-guided-tour-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.9rem;
    color: #425466;
    font-size: 0.78rem;
}

.bm-guided-tour-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    position: sticky;
    bottom: -0.95rem;
    padding-top: 0.75rem;
    padding-bottom: 0.1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 24%);
    border-top: 1px solid #e4ebf2;
}

.bm-guided-tour-actions-main {
    display: inline-flex;
    gap: 0.5rem;
}

.bm-guided-tour-close {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    border: 0;
    background: transparent;
    color: #7b8a9a;
    font-size: 1.3rem;
    line-height: 1;
    padding: 0.15rem 0.3rem;
}

.bm-guided-tour-close:hover {
    color: #1f2937;
}

@media (max-width: 767.98px) {
    .bm-start-launcher-actions {
        grid-template-columns: 1fr;
    }

    .bm-start-launcher-card .card-header {
        padding: 0.78rem 0.82rem 0.42rem;
    }

    .bm-start-launcher-body {
        padding: 0.12rem 0.82rem 0.82rem;
    }

    .bm-guided-tour-popover {
        position: fixed;
        left: 1rem !important;
        right: 1rem;
        top: auto !important;
        bottom: 1rem;
        width: auto;
    }

    .bm-guided-tour-highlight {
        display: none !important;
    }

    .bm-guided-tour-shade {
        backdrop-filter: blur(1px);
    }

    .bm-guided-tour-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .bm-guided-tour-actions-main {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 9mm;
    }

    html,
    body,
    .bm-admin-body,
    .bm-page-wrapper,
    .page-wrapper,
    .bm-page-body,
    .page-body {
        background: #fff !important;
    }

    .bm-shell-container {
        max-width: none !important;
        padding-inline: 0 !important;
    }

    .bm-quality-report-page {
        display: none !important;
    }

    .bm-quality-report-print-sheet {
        display: block !important;
        color: #0f172a;
        font-size: 9.1pt;
        line-height: 1.25;
    }

    .bm-quality-report-print-sheet-head {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 0.55rem;
        padding-bottom: 0.45rem;
        border-bottom: 2px solid #cbd5e1;
    }

    .bm-quality-report-print-kicker {
        color: #475569;
        font-size: 7.8pt;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .bm-quality-report-print-title {
        margin: 0.08rem 0 0;
        color: #0f172a;
        font-size: 15.5pt;
        font-weight: 700;
        line-height: 1.15;
    }

    .bm-quality-report-print-subtitle {
        margin-top: 0.18rem;
        color: #475569;
        font-size: 8.4pt;
        line-height: 1.35;
    }

    .bm-quality-report-print-status {
        min-width: 8.5rem;
        padding: 0.45rem 0.55rem;
        border: 1px solid #cbd5e1;
        background: #f8fafc;
        text-align: right;
    }

    .bm-quality-report-print-status-label {
        color: #64748b;
        font-size: 7.6pt;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .bm-quality-report-print-status-value {
        margin-top: 0.15rem;
        color: #0f172a;
        font-size: 12.2pt;
        font-weight: 700;
        text-transform: uppercase;
    }

    .bm-quality-report-print-grid {
        display: grid;
        grid-template-columns: 1.2fr 0.9fr;
        gap: 0.5rem;
        margin-bottom: 0.45rem;
    }

    .bm-quality-report-print-card {
        border: 1px solid #cbd5e1;
        background: #fff;
        padding: 0.5rem 0.6rem;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .bm-quality-report-print-card h2 {
        margin: 0 0 0.35rem;
        color: #0f172a;
        font-size: 8.5pt;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .bm-quality-report-print-facts {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.28rem 0.6rem;
    }

    .bm-quality-report-print-facts div {
        min-width: 0;
    }

    .bm-quality-report-print-facts span,
    .bm-quality-report-print-metric span {
        display: block;
        color: #64748b;
        font-size: 7.2pt;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .bm-quality-report-print-facts strong,
    .bm-quality-report-print-metric strong {
        display: block;
        margin-top: 0.08rem;
        color: #0f172a;
        font-size: 8.6pt;
        font-weight: 600;
        word-break: break-word;
    }

    .bm-quality-report-print-table {
        width: 100%;
        border-collapse: collapse;
    }

    .bm-quality-report-print-table th,
    .bm-quality-report-print-table td {
        padding: 0.24rem 0.2rem;
        border-bottom: 1px solid #e2e8f0;
        font-size: 8.3pt;
    }

    .bm-quality-report-print-table th {
        width: 58%;
        color: #334155;
        font-weight: 600;
        text-align: left;
    }

    .bm-quality-report-print-table td {
        color: #0f172a;
        text-align: right;
    }

    .bm-quality-report-print-metrics {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.35rem;
        margin-bottom: 0.45rem;
    }

    .bm-quality-report-print-metric {
        border: 1px solid #cbd5e1;
        background: #f8fafc;
        padding: 0.35rem 0.45rem;
    }

    .bm-quality-report-print-notes p {
        margin: 0;
        color: #0f172a;
        font-size: 8.5pt;
        line-height: 1.35;
        white-space: pre-wrap;
        max-height: 5.4em;
        overflow: hidden;
    }

    .bm-quality-report-print-sheet,
    .bm-quality-report-print-sheet * {
        box-shadow: none !important;
    }
}
