.vario-warehouse-location-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    min-height: 32px;
    padding: 2px 6px;
    border: 1px solid var(--vario-color-border-soft);
    border-bottom: 0;
    background: var(--vario-color-surface-muted);
}

.vario-warehouse-location-register-area {
    grid-area: list;
    z-index: 1;
    display: grid;
    grid-template-areas:
        "location-toolbar"
        "location-register";
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

html body .vario-list-standard[data-vario-layout-mode="bottom-panel"] .vario-warehouse-location-register-area > .vario-warehouse-location-toolbar,
html[data-vario-theme] body .vario-list-standard[data-vario-layout-mode="bottom-panel"] .vario-warehouse-location-register-area > .vario-warehouse-location-toolbar {
    grid-area: location-toolbar !important;
}

html body .vario-list-standard[data-vario-layout-mode="bottom-panel"] .vario-warehouse-location-register-area > [data-vario-component="VarioListGrid"].vario-warehouse-location-register,
html[data-vario-theme] body .vario-list-standard[data-vario-layout-mode="bottom-panel"] .vario-warehouse-location-register-area > [data-vario-component="VarioListGrid"].vario-warehouse-location-register {
    grid-area: location-register !important;
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.vario-warehouse-location-context,
.vario-warehouse-location-toolbar-actions,
.vario-warehouse-location-preview-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.vario-warehouse-location-context {
    color: var(--vario-color-text-strong);
    font-size: 11px;
}

.vario-warehouse-location-context .nav-icon {
    width: 14px;
    height: 14px;
}

.vario-warehouse-location-preview-actions .nav-icon {
    width: 13px;
    height: 13px;
}

.vario-warehouse-location-register {
    min-height: 0;
}

.vario-warehouse-location-register tbody tr {
    cursor: default;
}

.vario-warehouse-location-preview {
    height: 100%;
    min-height: 0;
}

.vario-warehouse-location-preview .vario-list-preview-pane-body,
.vario-warehouse-location-preview .vario-list-preview-viewport {
    min-height: 0;
    overflow: auto;
}

.vario-warehouse-location-data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vario-warehouse-location-dialog,
.vario-warehouse-location-operation-dialog,
.vario-warehouse-location-label-dialog {
    width: min(720px, calc(100vw - 24px));
    max-width: 720px;
}

.vario-warehouse-location-operation-dialog {
    max-width: 660px;
}

.vario-warehouse-location-label-dialog {
    max-width: 620px;
}

.vario-warehouse-location-scan-flow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.vario-warehouse-location-scan-flow label {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.vario-warehouse-location-scan-flow label > span {
    color: var(--vario-color-text-muted);
    font-size: 10.5px;
    font-weight: 800;
}

.vario-warehouse-location-scan-flow label > small {
    min-height: 16px;
    color: var(--vario-color-text-muted);
    font-size: 10px;
}

.vario-warehouse-location-operation-note,
.vario-warehouse-location-label-note {
    margin: 10px 0 0;
    color: var(--vario-color-text-muted);
    font-size: 10.5px;
}

.vario-warehouse-location-label-sheet {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 8px;
    width: min(100%, 520px);
    min-height: 270px;
    margin: 0 auto;
    padding: 14px;
    border: 1px solid var(--vario-color-border-soft);
    border-radius: 6px;
    color: var(--vario-print-ink);
    background: var(--vario-print-paper-bg);
    text-align: center;
}

.vario-warehouse-location-label-sheet > header {
    display: grid;
    gap: 2px;
}

.vario-warehouse-location-label-sheet > header span,
.vario-warehouse-location-label-sheet > header small {
    font-size: 11px;
}

.vario-warehouse-location-label-sheet > header strong {
    font-size: 26px;
    line-height: 1.1;
}

.vario-warehouse-location-label-codes {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

.vario-warehouse-location-label-codes .qr {
    width: 142px;
    height: 142px;
}

.vario-warehouse-location-label-codes .code128 {
    width: 100%;
    height: 96px;
    object-fit: fill;
}

.vario-warehouse-location-label-sheet > code {
    color: var(--vario-print-ink);
    font-size: 10px;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .vario-warehouse-location-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .vario-warehouse-location-toolbar-actions {
        flex-wrap: wrap;
    }

    .vario-warehouse-location-scan-flow,
    .vario-warehouse-location-data-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (max-width: 760px) {
    .vario-warehouse-location-preview-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .vario-warehouse-location-label-codes {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
    }
}
