body {
    font-size: 0.95rem;
}

.app-brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
}

.app-brand-logo {
    width: 1.9rem;
    height: 1.9rem;
    display: block;
}

.app-content-header {
    padding: 1rem 0;
}

.page-header-shell {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.scan-mode-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 2rem;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
}

.scan-mode-toggle-track {
    position: relative;
    display: block;
    width: 3rem;
    height: 1.65rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    background: var(--bs-secondary-bg);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.scan-mode-toggle-thumb {
    position: absolute;
    top: 0.18rem;
    left: 0.18rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: var(--bs-body-color);
    box-shadow: 0 0.1rem 0.2rem rgba(15, 23, 42, 0.28);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.scan-mode-toggle[aria-checked="true"] .scan-mode-toggle-track {
    border-color: var(--bs-primary);
    background: var(--bs-primary);
}

.scan-mode-toggle[aria-checked="true"] .scan-mode-toggle-thumb {
    background: #fff;
    transform: translateX(1.32rem);
}

.scan-mode-toggle:focus-visible {
    outline: 0.2rem solid rgba(var(--bs-primary-rgb), 0.3);
    outline-offset: 0.15rem;
}

.card-title {
    font-weight: 600;
}

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

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

.brand-text {
    font-weight: 600;
}

.nav-link p {
    margin: 0;
}

.app-header [data-account-menu] {
    position: relative;
}

.app-header [data-account-menu-items] {
    left: auto;
    right: 0;
    min-width: 11rem;
    max-width: min(18rem, calc(100vw - 1rem));
}

.app-sidebar-toggle {
    display: none;
}

.app-sidebar-toggle-bars,
.app-sidebar-toggle-bars::before,
.app-sidebar-toggle-bars::after {
    display: block;
    width: 1.25rem;
    height: 0.125rem;
    background: currentColor;
    border-radius: 0.125rem;
}

.app-sidebar-toggle-bars {
    position: relative;
}

.app-sidebar-toggle-bars::before,
.app-sidebar-toggle-bars::after {
    position: absolute;
    left: 0;
    content: "";
}

.app-sidebar-toggle-bars::before {
    top: -0.4rem;
}

.app-sidebar-toggle-bars::after {
    top: 0.4rem;
}

.app-sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(0, 0, 0, 0.45);
}

.app-sidebar-scrim[hidden] {
    display: none !important;
}

.help-popover {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}

.help-popover-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    padding: 0;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
}

.help-popover-content {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1085;
    width: min(18rem, calc(100vw - 2rem));
    max-width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
    overflow-y: auto;
    padding: 0.75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
    white-space: normal;
    overflow-wrap: anywhere;
}

.help-popover-content[hidden] {
    display: none !important;
}

.help-doc-layout {
    align-items: flex-start;
}

.help-doc-sidebar {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.help-doc-nav-card {
    overflow: hidden;
}

.help-doc-nav-description {
    margin-top: 0.2rem;
    color: var(--bs-secondary-color);
    line-height: 1.25;
}

.help-doc-nav-card .list-group-item.active .help-doc-nav-description {
    color: rgba(255, 255, 255, 0.78);
}

.help-doc-card {
    border: 0;
}

.help-markdown {
    max-width: 980px;
    padding: clamp(1.25rem, 2.5vw, 2.5rem);
    font-size: 1rem;
    line-height: 1.65;
}

.help-markdown h1 {
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--bs-border-color);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.help-markdown h2 {
    margin-top: 2rem;
    margin-bottom: 0.85rem;
    font-size: 1.65rem;
}

.help-markdown h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.65rem;
    font-size: 1.2rem;
}

.help-markdown p,
.help-markdown ul,
.help-markdown ol,
.help-markdown figure,
.help-markdown pre {
    margin-bottom: 1rem;
}

.help-markdown ul,
.help-markdown ol {
    padding-left: 1.5rem;
}

.help-markdown code {
    padding: 0.1rem 0.3rem;
    border-radius: 0.25rem;
    color: var(--bs-emphasis-color);
    background: var(--bs-tertiary-bg);
}

.help-markdown pre {
    padding: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    background: var(--bs-tertiary-bg);
    overflow-x: auto;
}

.help-markdown pre code {
    padding: 0;
    background: transparent;
}

.help-markdown img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    background: var(--bs-body-bg);
}

.help-markdown figcaption {
    margin-top: 0.45rem;
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
}

@media (max-width: 991.98px) {
    .help-doc-sidebar {
        position: static;
        max-height: none;
    }
}

.container-fluid {
    max-width: 1400px;
}

.form-label {
    font-weight: 600;
}

.text-danger {
    font-size: 0.875rem;
}

#productNameSuggestions,
#manufacturerNameSuggestions,
#manufacturerSuggestions {
    max-height: 260px;
    overflow-y: auto;
}

.manifest-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.manifest-table-responsive .table {
    min-width: 760px;
}

.scanner-video-shell {
    position: relative;
    min-height: 280px;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #111827;
}

.scanner-sdk-host,
.scanner-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.scanner-sdk-host {
    z-index: 1;
}

.scanner-sdk-host > * {
    width: 100%;
    height: 100%;
}

.scanner-video {
    display: block;
    object-fit: cover;
    z-index: 0;
}

.scanner-video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
    color: #d1d5db;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    z-index: 0;
}

.scanner-video-placeholder-text {
    display: block;
    width: min(72%, 26rem);
    max-width: calc(100% - 2rem);
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}

.scanner-guide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.scanner-guide-frame {
    width: min(78%, 420px);
    height: 36%;
    border: 3px solid rgba(255, 255, 255, 0.92);
    border-radius: 1rem;
    box-shadow: 0 0 0 9999px rgba(17, 24, 39, 0.28);
    position: relative;
}

.scanner-guide-frame::before,
.scanner-guide-frame::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
}

.scanner-guide-frame::before {
    top: 22%;
}

.scanner-guide-frame::after {
    bottom: 22%;
}

.scanner-input {
    font-variant-numeric: tabular-nums;
}

.scan-settings {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 0.9rem;
}

.scan-settings-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.scan-settings-summary::-webkit-details-marker {
    display: none;
}

.scan-settings-summary::after {
    content: "";
    width: 0.7rem;
    height: 0.7rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    flex: 0 0 auto;
    margin-right: 0.15rem;
    transition: transform 0.15s ease;
}

.scan-settings[open] .scan-settings-summary::after {
    transform: rotate(225deg);
}

.scan-settings-body {
    margin-top: 1rem;
}

.scan-product-summary,
.scan-panel,
.scan-unmatched-header {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    background: var(--bs-body-bg);
}

.scan-product-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 1fr);
    gap: 1rem;
    padding: 1rem;
}

.scan-product-main {
    min-width: 0;
}

.scan-summary-label {
    margin-bottom: 0.25rem;
    color: var(--bs-secondary-color);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.scan-product-name {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.scan-product-manufacturer {
    margin-top: 0.25rem;
    color: var(--bs-secondary-color);
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

.scan-summary-facts {
    display: grid;
    gap: 0.6rem;
}

.scan-summary-facts div {
    min-width: 0;
}

.scan-summary-facts dt {
    color: var(--bs-secondary-color);
    font-size: 0.82rem;
    font-weight: 700;
}

.scan-summary-facts dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.scan-panel,
.scan-unmatched-header {
    padding: 1rem;
}

.scan-workspace-actions .btn {
    min-height: 2.75rem;
}

.recent-scans {
    min-width: 0;
    margin-bottom: 1rem;
}

.recent-scans-header {
    display: flex;
    align-items: center;
    min-height: 2rem;
    margin-bottom: 0.35rem;
}

.recent-scans-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(13rem, 16rem);
    gap: 0.5rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    padding-bottom: 0.3rem;
}

.recent-scan-item {
    min-width: 0;
    height: 5.3rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    background: var(--bs-body-bg);
    scroll-snap-align: start;
}

.recent-scan-name {
    overflow: hidden;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-scan-classification {
    overflow: hidden;
    margin-top: 0.2rem;
    color: var(--bs-secondary-color);
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-scan-amount {
    margin-top: 0.2rem;
    font-size: 1.05rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.recent-scans-empty {
    min-height: 3.25rem;
    padding: 0.85rem 0;
    border-top: 1px solid var(--bs-border-color);
}

.generic-entry-card {
    overflow: visible;
}

.generic-entry-definitions {
    border-top: 1px solid var(--bs-border-color);
}

.generic-entry-definitions-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.85rem 1rem 0;
}

.generic-definition-list {
    border: 0;
    padding: 0;
    margin: 0;
}

.generic-definition-option {
    display: grid;
    grid-template-columns: 1.25rem minmax(0, 1.65fr) minmax(0, 1fr) 10rem;
    align-items: center;
    gap: 0.85rem;
    min-height: 3.4rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--bs-border-color);
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.generic-definition-option:hover {
    background: var(--bs-tertiary-bg);
}

.generic-definition-option.is-selected {
    background: rgba(var(--bs-primary-rgb), 0.08);
    box-shadow: inset 0.25rem 0 0 var(--bs-primary);
}

.generic-definition-option[hidden] {
    display: none;
}

.generic-definition-option .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin: 0;
}

.generic-definition-primary {
    min-width: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.generic-definition-secondary,
.generic-definition-barcode {
    min-width: 0;
    color: var(--bs-secondary-color);
    overflow-wrap: anywhere;
}

.generic-definition-barcode {
    font-variant-numeric: tabular-nums;
}

.generic-entry-save-bar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--bs-border-color);
    background: rgba(var(--bs-body-bg-rgb), 0.96);
    box-shadow: 0 -0.35rem 0.8rem rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(0.4rem);
}

@media (pointer: coarse) and (max-width: 1366px) {
    body.scan-workflow-page .app-wrapper {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "lte-app-header"
            "lte-app-main" !important;
    }

    body.scan-workflow-page .app-header,
    body.scan-workflow-page .app-main {
        margin-left: 0 !important;
        width: 100% !important;
    }

    body.scan-workflow-page .app-header {
        left: 0 !important;
        right: 0 !important;
    }

    body.scan-workflow-page .app-header .container-fluid {
        max-width: none;
    }

    body.scan-workflow-page .app-sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 2.75rem;
        height: 2.75rem;
        margin-right: 0.75rem;
    }

    body.scan-workflow-page .app-sidebar {
        position: fixed !important;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1050 !important;
        width: min(17rem, 86vw);
        min-width: min(17rem, 86vw) !important;
        max-width: 86vw;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.2s ease;
    }

    body.scan-workflow-page.app-sidebar-mobile-open {
        overflow: hidden;
    }

    body.scan-workflow-page.app-sidebar-mobile-open .app-sidebar {
        transform: translateX(0) !important;
    }

    body.scan-workflow-page .app-content {
        padding: 0 0.75rem 1rem;
    }

    body.scan-workflow-page .page-header-shell {
        flex-wrap: nowrap;
        align-items: center;
    }

    .scan-mode-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .scan-primary-column {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .scan-barcode-column {
        display: none;
    }

    .scan-page[data-scan-input-mode="manual"] .scan-camera-column {
        display: none;
    }

    .scan-page[data-scan-input-mode="manual"] .scan-barcode-column {
        display: block;
    }

    .scan-page .card-title {
        font-size: 1.1rem;
    }

    .scan-page .card-body,
    .scan-page .form-label,
    .scan-page .form-text,
    .scan-page .text-body-secondary,
    .scan-page .scan-hint-list {
        font-size: 1rem;
    }

    .scan-page .btn,
    .scan-page .form-select,
    .scan-page .form-control {
        font-size: 1rem;
    }

    .scan-page .scanner-input {
        font-size: 1.15rem;
    }

    .scan-page .scanner-video-shell {
        height: clamp(13rem, calc(100dvh - 23rem), 26.25rem);
        min-height: 0;
    }

    .scan-product-summary {
        grid-template-columns: 1fr;
    }

    .recent-scans-track {
        grid-auto-columns: minmax(12.5rem, calc(82vw - 1.5rem));
    }
}

.decision-card {
    border: 1px solid rgba(13, 110, 253, 0.15);
    border-radius: 0.75rem;
    padding: 1rem;
    height: 100%;
    background: rgba(248, 250, 252, 0.9);
}

.catalogue-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 30rem;
}

.catalogue-table {
    min-width: 1120px;
}

.catalogue-table th {
    white-space: nowrap;
}

.catalogue-filter-menu {
    position: relative;
    flex: 1 1 auto;
}

.catalogue-header-shell {
    display: flex;
    align-items: flex-start;
    gap: 0.1rem;
}

.analytics-card .card-body {
    min-height: 22rem;
    min-width: 0;
    overflow-x: hidden;
}

.analytics-chart-shell {
    position: relative;
    min-height: 19rem;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.analytics-chart-canvas {
    display: block;
    width: 100% !important;
    max-width: 100%;
}

.analytics-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.analytics-table-responsive .table {
    width: 100%;
    min-width: 0;
}

@media (max-width: 768px) {
    .analytics-chart-shell {
        min-height: 16rem;
    }
}

.catalogue-sort-button {
    flex: 0 0 auto;
    width: 1.2rem;
    height: 1.2rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #334155;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
    margin-top: 0.02rem;
}

.catalogue-sort-button::before {
    content: "";
    width: 1.05rem;
    height: 1.05rem;
    background-color: currentColor;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
}

.catalogue-sort-button[data-sort-state="none"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M8 1l3 3H9v8h2l-3 3-3-3h2V4H5l3-3z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M8 1l3 3H9v8h2l-3 3-3-3h2V4H5l3-3z'/%3E%3C/svg%3E");
}

.catalogue-sort-button[data-sort-state="asc"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M8 2l4 4H9v8H7V6H4l4-4z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M8 2l4 4H9v8H7V6H4l4-4z'/%3E%3C/svg%3E");
}

.catalogue-sort-button[data-sort-state="desc"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M8 14l-4-4h3V2h2v8h3l-4 4z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M8 14l-4-4h3V2h2v8h3l-4 4z'/%3E%3C/svg%3E");
}

.catalogue-sort-button:hover {
    color: #0d6efd;
}

.catalogue-filter-summary {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    list-style: none;
    cursor: pointer;
    user-select: none;
    min-height: 1.4rem;
    padding: 0.05rem 0;
    line-height: 1.1;
}

.catalogue-filter-summary::-webkit-details-marker {
    display: none;
}

.catalogue-filter-heading {
    display: inline-flex;
    align-items: center;
    min-height: 1.2rem;
}

.catalogue-filter-title {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    line-height: 1;
}

.catalogue-filter-title::after {
    content: "";
    width: 0.82rem;
    height: 0.82rem;
    background-color: #64748b;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M3 6l5 5 5-5H3z'/%3E%3C/svg%3E");
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M3 6l5 5 5-5H3z'/%3E%3C/svg%3E");
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    flex: 0 0 auto;
}

.catalogue-filter-summary small {
    color: #0d6efd;
    font-weight: 500;
    white-space: nowrap;
}

.catalogue-filter-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    z-index: 10;
    width: min(18rem, 70vw);
    padding: 0.9rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.12);
}

.catalogue-filter-end .catalogue-filter-panel {
    left: auto;
    right: 0;
}

.catalogue-filter-menu[open] .catalogue-filter-summary {
    color: #0d6efd;
}

.catalogue-filter-menu[open] .catalogue-filter-title::after {
    background-color: #0d6efd;
}

.catalogue-cell-truncate {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalogue-cell-product {
    max-width: 18rem;
}

.catalogue-cell-manufacturer {
    max-width: 13rem;
}

.catalogue-cell-category,
.catalogue-cell-dg {
    max-width: 14rem;
}

@media (max-width: 991.98px) {
    .app-wrapper {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "lte-app-header"
            "lte-app-main" !important;
    }

    .app-header,
    .app-main {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .app-header {
        left: 0 !important;
        right: 0 !important;
    }

    .app-header .container-fluid {
        max-width: none;
    }

    .app-sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 2.5rem;
        height: 2.5rem;
        margin-right: 0.75rem;
    }

    .app-sidebar {
        position: fixed !important;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1050 !important;
        width: min(17rem, 86vw);
        min-width: min(17rem, 86vw) !important;
        max-width: 86vw;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.2s ease;
    }

    body.app-sidebar-mobile-open {
        overflow: hidden;
    }

    body.app-sidebar-mobile-open .app-sidebar {
        transform: translateX(0) !important;
    }
}

@media (max-width: 767.98px) {
    .generic-definition-option {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.25rem 0.75rem;
        min-height: 4rem;
    }

    .generic-definition-option .form-check-input {
        grid-row: 1 / span 2;
    }

    .generic-definition-secondary {
        grid-column: 2;
        font-size: 0.9rem;
    }

    .generic-definition-barcode {
        display: none;
    }

    .generic-entry-save-bar .btn {
        flex: 1 1 0;
    }

    .generic-choice-table {
        min-width: 0 !important;
    }

    .generic-choice-secondary {
        display: none;
    }

    .generic-choice-table th:last-child,
    .generic-choice-table td:last-child {
        width: 1%;
        white-space: nowrap;
    }

    .page-header-actions {
        width: 100%;
        align-items: stretch;
    }

    .page-header-actions .btn {
        width: 100%;
    }

    .catalogue-filter-panel {
        width: min(16rem, 84vw);
    }
}
