/* ===================================================================
   Data Matrix 2.0 — кастомные стили поверх Bootstrap 5.3
   =================================================================== */

:root {
    /* Brand */
    --bs-primary: #5B5FC7;
    --bs-primary-rgb: 91, 95, 199;
    --color-primary-hover: #4F46E5;
    --color-primary-soft: #EEF0FF;

    /* Surface */
    --color-bg: #F5F6F9;
    --color-surface: #FFFFFF;
    --color-sidebar: #FFFFFF;
    --color-border: #E5E7EB;

    /* Text */
    --color-text: #0F172A;
    --color-text-muted: #6B7280;

    /* Type */
    --bs-body-font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --bs-body-font-size: 0.875rem;
    --bs-body-color: var(--color-text);
    --bs-body-bg: var(--color-bg);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);

    /* Sidebar widths */
    --sidebar-width: 240px;
    --sidebar-width-collapsed: 64px;
    --topbar-height: 64px;
}

body {
    font-family: var(--bs-body-font-family);
    background: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    min-height: 100vh;
}

/* === Bootstrap override === */
.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--color-primary-hover);
    --bs-btn-hover-border-color: var(--color-primary-hover);
    --bs-btn-active-bg: var(--color-primary-hover);
    --bs-btn-active-border-color: var(--color-primary-hover);
}

a {
    color: var(--bs-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary-hover);
}

/* === App Shell === */
.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
    transition: grid-template-columns 0.2s ease;
}

.app-shell.sidebar-collapsed {
    grid-template-columns: var(--sidebar-width-collapsed) 1fr;
}

/* === Sidebar === */
.app-sidebar {
    background: var(--color-sidebar);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    height: var(--topbar-height);
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--color-text);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.sidebar-logo:hover { color: var(--color-text); }

.sidebar-logo-mark {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: block;
}

.sidebar-collapsed .sidebar-logo-text { display: none; }

.sidebar-toggle {
    background: none;
    border: 0;
    color: var(--color-text-muted);
    padding: 0.25rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
}
.sidebar-toggle:hover { color: var(--color-text); background: var(--color-bg); }

.sidebar-collapsed .sidebar-toggle i { transform: rotate(180deg); }

.sidebar-nav {
    padding: 1rem 0.75rem;
    overflow-y: auto;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    margin-bottom: 0.25rem;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
}

.nav-item i {
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.nav-item:hover:not(.disabled) {
    background: var(--color-bg);
    color: var(--color-text);
}

.nav-item.active {
    background: var(--bs-primary);
    color: white;
}

.nav-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.sidebar-collapsed .nav-item span { display: none; }
.sidebar-collapsed .nav-item { justify-content: center; padding: 0.625rem; }

/* === Topbar === */
.app-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-topbar {
    height: var(--topbar-height);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.topbar-left { display: flex; align-items: center; gap: 1rem; }

.btn-user-menu {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

/* === Avatar === */
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    background: var(--bs-primary);
    flex-shrink: 0;
}
.avatar-sm { width: 32px; height: 32px; font-size: 0.75rem; }
.avatar-lg { width: 40px; height: 40px; font-size: 0.875rem; }

/* === Subscription banner === */
.subscription-banner {
    margin: 0;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-bottom: 1px solid;
}

.subscription-banner--warning {
    background: #FEF3C7;
    color: #92400E;
    border-bottom-color: #FDE68A;
}

.subscription-banner--danger {
    background: #FEE2E2;
    color: #991B1B;
    border-bottom-color: #FECACA;
}

.subscription-banner i { font-size: 1.1rem; }

.subscription-banner a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

/* === Content === */
.app-content {
    flex: 1;
    padding: 1.5rem;
    overflow-x: auto;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1.25rem;
}

/* === Card === */
.card {
    border-radius: var(--radius-lg);
    border-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.card-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* === Table === */
.table {
    --bs-table-color: var(--color-text);
    --bs-table-bg: var(--color-surface);
    --bs-table-border-color: var(--color-border);
    margin-bottom: 0;
}

.table thead th {
    background: #F3F4F6;
    color: #374151;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-top: 1px solid var(--color-border);
}

/* === Action buttons in tables === */
.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 0;
    background: var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
}

.btn-icon-edit {
    background: var(--color-primary-soft);
    color: var(--bs-primary);
}
.btn-icon-edit:hover { background: var(--bs-primary); color: white; }

.btn-icon-delete {
    background: #FEE2E2;
    color: #DC2626;
}
.btn-icon-delete:hover { background: #DC2626; color: white; }

.btn-icon-print {
    background: #FEF3C7;
    color: #D97706;
}
.btn-icon-print:hover { background: #D97706; color: white; }

/* === Soft badges === */
.badge-success-soft { background: #DCFCE7; color: #16A34A; }
.badge-warning-soft { background: #FEF3C7; color: #D97706; }
.badge-danger-soft  { background: #FEE2E2; color: #DC2626; }
.badge-info-soft    { background: #DBEAFE; color: #3B82F6; }
.badge-secondary-soft { background: #F1F5F9; color: #64748B; }
.badge-primary-soft { background: var(--color-primary-soft); color: var(--bs-primary); }

.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

/* === Forms === */
.form-control, .form-select {
    height: 2.5rem;
    border-color: var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(91, 95, 199, 0.15);
}

.form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
}

/* === Login page === */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    padding: 1.5rem;
}

.auth-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.auth-logo {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-logo img { width: 100%; height: 100%; }

.auth-title {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.75rem;
}

/* === Subscription expired modal === */
.expired-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 9999;
}

.expired-modal {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 540px;
    width: 100%;
    box-shadow: var(--shadow-md);
}

.expired-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #FEE2E2;
    color: #DC2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.expired-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.expired-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 1.75rem;
}

.contact-block {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--color-text);
}

.contact-line i {
    width: 24px;
    color: var(--bs-primary);
    font-size: 1.1rem;
}

.contact-line a {
    color: var(--color-text);
    font-weight: 500;
}

/* === Empty state === */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-muted);
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-border);
}

/* === Pagination === */
.page-link {
    color: var(--color-text);
    border-color: var(--color-border);
    border-radius: 50% !important;
    margin: 0 2px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-item.active .page-link {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* === Responsive === */
@media (max-width: 768px) {
    .app-shell { grid-template-columns: 1fr; }
    .app-sidebar { display: none; }
}

/* === Card toolbar (заголовок + поиск + кнопка) === */
.card-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    gap: 1rem;
    flex-wrap: wrap;
}

.card-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-search {
    position: relative;
    display: flex;
    align-items: center;
}

.card-search i {
    position: absolute;
    left: 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    z-index: 1;
}

.card-search input {
    padding-left: 2.25rem;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--color-bg);
    border: 1px solid transparent;
    transition: all 0.15s;
}

.card-search input:focus {
    background: white;
    border-color: var(--bs-primary);
}

/* === Stat card === */
.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--color-bg);
    color: var(--color-text-muted);
}

.stat-card-color-primary .stat-value { color: var(--bs-primary); }
.stat-card-color-primary .stat-icon { background: var(--color-primary-soft); color: var(--bs-primary); }

.stat-card-color-success .stat-value { color: #16A34A; }
.stat-card-color-success .stat-icon { background: #DCFCE7; color: #16A34A; }

.stat-card-color-warning .stat-value { color: #D97706; }
.stat-card-color-warning .stat-icon { background: #FEF3C7; color: #D97706; }

.stat-card-color-danger .stat-value { color: #DC2626; }
.stat-card-color-danger .stat-icon { background: #FEE2E2; color: #DC2626; }

/* === Filter pills === */
.filter-pills {
    display: inline-flex;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 4px;
    gap: 2px;
}

.filter-pill {
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}

.filter-pill:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.5);
}

.filter-pill.active {
    background: var(--bs-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.filter-pill.active:hover {
    color: white;
    background: var(--color-primary-hover);
}

/* === Counterparty list specifics === */
.counterparty-row-name {
    display: flex;
    flex-direction: column;
}
.counterparty-row-name strong {
    font-weight: 500;
    color: var(--color-text);
}
.counterparty-row-name .small {
    color: var(--color-text-muted);
    margin-top: 0.125rem;
    display: flex;
    gap: 0.75rem;
}
.counterparty-row-name .small span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* === Progress with label inside cell === */
.progress-with-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.progress-label-text {
    font-size: 0.875rem;
    color: var(--color-text);
    font-weight: 500;
}
.progress {
    background: var(--color-bg);
    border-radius: 999px;
}

/* === Monospace fragments === */
.font-monospace {
    font-family: 'SF Mono', 'Cascadia Code', Consolas, 'Courier New', monospace;
}

/* === Size list (right column on edit page) === */
.size-list {
    padding: 0.5rem;
}
.size-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.375rem;
    background: var(--color-bg);
    transition: background 0.15s;
}
.size-row:hover {
    background: var(--color-primary-soft);
}
.size-row-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.size-row-name {
    font-weight: 600;
    color: var(--color-text);
}
.size-row-gtin {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* === Config list === */
.config-list {
    padding: 0.5rem;
}
.config-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
}
.config-row-content {
    flex: 1;
}
.config-row-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.config-row-detail {
    color: var(--color-text-muted);
}
.config-row-detail div {
    margin-bottom: 0.125rem;
}
.config-row-detail strong {
    color: var(--color-text);
    margin-right: 0.25rem;
    font-weight: 600;
}

/* === Eye-icon button (for GTIN preview) === */
.btn-icon-view {
    background: var(--color-primary-soft);
    color: var(--bs-primary);
    border: 0;
    height: 32px;
    padding: 0 0.625rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
}
.btn-icon-view:hover {
    background: var(--bs-primary);
    color: white;
}

/* === Popover content for GTIN list === */
.size-popover-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.size-popover-item {
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--color-border);
}
.size-popover-item:last-child {
    border-bottom: 0;
}
.size-popover-item strong {
    min-width: 40px;
    color: var(--color-text);
}
.size-popover-item .font-monospace {
    color: var(--color-text-muted);
}

/* === GTIN preview popup (Sprint 4 hotfix) === */
.gtin-cell {
    position: relative;
    overflow: visible;
}

.gtin-popover-panel {
    position: fixed;
    z-index: 1080;
    top: 0;
    left: 0;
    min-width: 300px;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
    padding: 0.75rem;
}

.gtin-popover-panel::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 18px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
    transform: rotate(45deg);
}

.gtin-popover-header {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.gtin-popover-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.gtin-popover-row {
    display: grid;
    grid-template-columns: minmax(44px, auto) 1fr 32px;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.25rem;
    border-radius: var(--radius-sm);
}

.gtin-popover-row:hover {
    background: var(--color-bg);
}

.gtin-popover-size {
    font-weight: 600;
    color: var(--color-text);
}

.gtin-popover-code {
    user-select: text;
    color: var(--color-text-muted);
    background: transparent;
    padding: 0;
    white-space: nowrap;
}

.gtin-copy-btn {
    border: 0;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-soft);
    color: var(--bs-primary);
}

.gtin-copy-btn:hover,
.gtin-copy-btn.is-copied {
    background: var(--bs-primary);
    color: #fff;
}

/* === Nomenclature edit/create balanced full-width layout === */
.nomenclature-page-head {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nomenclature-page-title {
    font-size: 1.125rem;
    line-height: 1.4;
    font-weight: 600;
    color: #374151;
    margin: 0;
    display: flex;
    align-items: center;
}

.nomenclature-form-grid {
    align-items: stretch;
}

.nomenclature-main-card,
.nomenclature-size-card,
.nomenclature-codes-card,
.nomenclature-config-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.nomenclature-main-card,
.nomenclature-size-card {
    min-height: 304px;
}

.nomenclature-codes-card,
.nomenclature-config-card {
    min-height: 380px;
}

.nomenclature-main-card .card-header,
.nomenclature-size-card .card-header,
.nomenclature-codes-card .card-header,
.nomenclature-config-card .card-header {
    flex-shrink: 0;
}

.nomenclature-main-card .card-body,
.nomenclature-size-card .size-list,
.nomenclature-size-card .empty-state,
.nomenclature-codes-card .empty-state,
.nomenclature-codes-card .table-responsive,
.nomenclature-config-card .config-list,
.nomenclature-config-card .empty-state {
    flex: 1;
}

.nomenclature-size-card .size-list,
.nomenclature-config-card .config-list,
.nomenclature-codes-card .table-responsive {
    overflow-y: auto;
}

.nomenclature-size-card .size-list {
    max-height: 242px;
}

.nomenclature-config-card .config-list {
    max-height: 318px;
}

.nomenclature-size-card .empty-state,
.nomenclature-codes-card .empty-state,
.nomenclature-config-card .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1199.98px) {
    .nomenclature-main-card,
    .nomenclature-size-card,
    .nomenclature-codes-card,
    .nomenclature-config-card {
        min-height: auto;
    }
}

/* === Sprint 5: Aggregation === */
.badge-pack-soft { background: #FED7AA; color: #C2410C; }
.badge-pallet-soft { background: #E0E7FF; color: #4338CA; }

.aggregation-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1rem;
    align-items: start;
}

.aggregation-card,
.aggregation-history-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.aggregation-card > .card-header,
.aggregation-history-card > .card-header {
    min-height: 64px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.aggregation-pack-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.aggregation-pack-label {
    font-weight: 600;
    color: var(--color-text);
}

.scanner-panel {
    border: 1px dashed rgba(var(--bs-primary-rgb), .45);
    background: #FAFAFB;
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.scanner-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}

.scanner-title {
    font-weight: 600;
    color: var(--color-text);
}

.scanner-progress {
    font-size: .85rem;
}

.scanner-input-wrap {
    position: relative;
}

.scanner-input-wrap > i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bs-primary);
    font-size: 1.25rem;
    pointer-events: none;
}

.scanner-input-wrap .scanner-input {
    height: 64px;
    border: 2px dashed var(--bs-primary);
    background: white;
    text-align: center;
    font-size: 1rem;
    padding-right: 3rem;
}

.scanner-input-wrap .scanner-input:focus {
    background: var(--color-primary-soft);
    box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .12);
}

.scanner-progressbar {
    height: 6px;
    margin-top: .75rem;
    border-radius: 999px;
    background: #E5E7EB;
}

.scanner-progressbar .progress-bar {
    background: var(--bs-primary);
    border-radius: 999px;
}

.aggregation-message {
    border-radius: var(--radius-md);
    padding: .75rem 1rem;
    font-weight: 500;
}

.aggregation-message--success {
    background: #DCFCE7;
    color: #166534;
}

.aggregation-message--danger {
    background: #FEE2E2;
    color: #991B1B;
}

.aggregation-message--info {
    background: #DBEAFE;
    color: #1D4ED8;
}

.aggregation-table-wrap {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.aggregation-scan-table code {
    color: var(--bs-primary);
    font-weight: 600;
}

.aggregation-uid-row td {
    border-top: 0;
}

.aggregation-history-card {
    position: sticky;
    top: 1rem;
}

.aggregation-session-list {
    max-height: 520px;
    overflow-y: auto;
    padding: .75rem;
}

.aggregation-session-item {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #F9FAFB;
    color: var(--color-text);
    display: grid;
    gap: .35rem;
    text-align: left;
    padding: .75rem;
    margin-bottom: .5rem;
    transition: all .15s ease;
}

.aggregation-session-item:hover,
.aggregation-session-item.active {
    border-color: rgba(var(--bs-primary-rgb), .45);
    background: var(--color-primary-soft);
}

.aggregation-session-item strong {
    font-size: .8rem;
    word-break: break-all;
}

.aggregation-session-item small {
    color: var(--color-text-muted);
}


.label-preview.position-ready {
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 8px;
    padding: 10px;
}

.label-preview.position-ready .label-preview__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
}

.label-preview__ready-top {
    display: flex;
    gap: 10px;
    min-height: 0;
    flex: 1 1 60%;
}

.label-preview__ready-left {
    width: 62%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3px;
}

.label-preview__ready-top .label-preview__code-wrap {
    width: 38%;
    flex: 0 0 38%;
}

.label-preview__ready-top .label-preview__code {
    width: 92px;
    height: 92px;
    border-width: 6px;
}

.label-preview__ready-bottom {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3px;
    min-height: 0;
}

@media (max-width: 1200px) {
    .aggregation-workspace {
        grid-template-columns: 1fr;
    }
    .aggregation-history-card {
        position: static;
    }
}

/* === Sprint 5 part 2: Disaggregation + Print templates === */
.disaggregation-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1rem;
    align-items: start;
}

.disaggregation-card,
.disaggregation-help-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.disaggregation-card > .card-header,
.disaggregation-help-card > .card-header {
    min-height: 64px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.disaggregation-help-card {
    position: sticky;
    top: 1rem;
}

.disaggregation-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr) 180px 130px;
    gap: .75rem;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #F9FAFB;
}

.disaggregation-summary code {
    color: var(--bs-primary);
    font-weight: 600;
    word-break: break-all;
}


.label-preview.position-ready {
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 8px;
    padding: 10px;
}

.label-preview.position-ready .label-preview__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
}

.label-preview__ready-top {
    display: flex;
    gap: 10px;
    min-height: 0;
    flex: 1 1 60%;
}

.label-preview__ready-left {
    width: 62%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3px;
}

.label-preview__ready-top .label-preview__code-wrap {
    width: 38%;
    flex: 0 0 38%;
}

.label-preview__ready-top .label-preview__code {
    width: 92px;
    height: 92px;
    border-width: 6px;
}

.label-preview__ready-bottom {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3px;
    min-height: 0;
}

@media (max-width: 1200px) {
    .disaggregation-workspace { grid-template-columns: 1fr; }
    .disaggregation-help-card { position: static; }
    .disaggregation-summary { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .disaggregation-summary { grid-template-columns: 1fr; }
}

/* === Sprint 5 part 3: visual print template editor === */
.page-header-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.page-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.page-fill-card {
    min-height: calc(100vh - 230px);
}

.template-field-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 88px;
    gap: .75rem;
    align-items: end;
    margin-bottom: .75rem;
}

.template-field-row:last-child {
    margin-bottom: 0;
}

.template-field-bold {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: .35rem;
}

.print-preview-card .card-body {
    min-height: 430px;
    background: #fff;
}

.label-preview {
    width: 325px;
    height: 224px;
    max-width: 100%;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: .5rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.label-preview.position-left {
    flex-direction: row-reverse;
}

.label-preview.position-right {
    flex-direction: row;
}

.label-preview.position-center {
    flex-direction: column-reverse;
    gap: 10px;
}

.label-preview__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    color: #4b5563;
}

.label-preview.position-center .label-preview__content {
    align-items: center;
    gap: 4px;
}

.label-preview__caption {
    display: block;
    font-size: 8px;
    font-weight: 400;
    color: #111827;
    line-height: 1.05;
}

.label-preview__value {
    display: block;
    color: #111827;
    line-height: 1.08;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.label-preview__line {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.08;
}

.label-preview__code-wrap {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.label-preview__code {
    width: 128px;
    height: 128px;
    flex: 0 0 auto;
    background-color: #fff;
    border: 8px solid #111;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    font-weight: 800;
    letter-spacing: .05em;
    overflow: hidden;
}

.label-preview__code::before,
.label-preview__code::after {
    content: '';
    position: absolute;
    inset: 12px;
    background:
        linear-gradient(90deg, #111 12px, transparent 12px) 0 0 / 24px 24px,
        linear-gradient(#111 12px, transparent 12px) 0 0 / 24px 24px;
    opacity: .16;
}

.label-preview__code span {
    position: relative;
    z-index: 1;
    background: #fff;
    padding: .15rem .35rem;
    border-radius: .25rem;
}

.label-preview__short {
    font-size: 12px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}


.label-preview.position-ready {
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 8px;
    padding: 10px;
}

.label-preview.position-ready .label-preview__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
}

.label-preview__ready-top {
    display: flex;
    gap: 10px;
    min-height: 0;
    flex: 1 1 60%;
}

.label-preview__ready-left {
    width: 62%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3px;
}

.label-preview__ready-top .label-preview__code-wrap {
    width: 38%;
    flex: 0 0 38%;
}

.label-preview__ready-top .label-preview__code {
    width: 92px;
    height: 92px;
    border-width: 6px;
}

.label-preview__ready-bottom {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3px;
    min-height: 0;
}

@media (max-width: 1200px) {
    .print-preview-card .card-body { min-height: 300px; }
}

@media (max-width: 768px) {
    .page-header-card { align-items: stretch; flex-direction: column; }
    .template-field-row { grid-template-columns: 1fr; }
    .template-field-bold { min-height: auto; }
}


/* Ready template preview tuned to match the printed fixed layout */
.label-preview.position-ready {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 108px;
    grid-template-rows: auto 1fr;
    align-items: start;
    column-gap: 10px;
    row-gap: 6px;
    padding: 10px 12px;
}

.label-preview.position-ready .label-preview__content {
    display: contents;
}

.label-preview__ready-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.label-preview__ready-side {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.label-preview__ready-side .label-preview__code-wrap {
    width: 100%;
    gap: 4px;
}

.label-preview__ready-side .label-preview__code {
    width: 96px;
    height: 96px;
    border-width: 6px;
}

.label-preview__ready-bottom {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.label-preview.position-ready .label-preview__line {
    line-height: 1.08;
    white-space: normal;
}

.label-preview.position-ready .label-preview__caption {
    display: inline;
    margin-right: 0;
}

.label-preview.position-ready .label-preview__value {
    display: inline;
}

.label-preview.position-ready .label-preview__line--article .label-preview__caption,
.label-preview.position-ready .label-preview__line--country .label-preview__caption,
.label-preview.position-ready .label-preview__line--custom_text .label-preview__caption {
    display: none;
}

/* Orders module */
.order-stepper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.order-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    color: #64748B;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}
.order-step span {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F1F5F9;
    color: #64748B;
    font-weight: 700;
    flex: 0 0 auto;
}
.order-step.active {
    border-color: rgba(91, 95, 199, .35);
    color: #111827;
}
.order-step.active span,
.order-step.done span {
    background: var(--bs-primary);
    color: #fff;
}
.order-step.done {
    color: #111827;
}
.order-add-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px 160px;
    gap: 12px;
    align-items: end;
}
.order-product-hint {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px dashed rgba(91, 95, 199, .45);
    background: rgba(91, 95, 199, .06);
    border-radius: 14px;
}
.order-product-hint i {
    color: var(--bs-primary);
    margin-top: 2px;
}
.order-plan-table td,
.order-plan-table th {
    vertical-align: middle;
}
.order-scanner-card {
    border-color: rgba(91, 95, 199, .18);
}
.scanner-box-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}
.scanner-input-wrap {
    position: relative;
}
.scanner-input-wrap .scanner-input {
    min-height: 66px;
    padding: 18px 56px 18px 18px;
    border: 2px dashed rgba(91, 95, 199, .7);
    border-radius: 16px;
    background: rgba(91, 95, 199, .08);
    font-size: 18px;
    font-weight: 600;
}
.scanner-input-wrap .scanner-input:focus {
    box-shadow: 0 0 0 .25rem rgba(91, 95, 199, .16);
}
.scanner-input-wrap > i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bs-primary);
    font-size: 24px;
}
.order-item-progress {
    padding: 12px;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    background: #fff;
    margin-bottom: 10px;
}
.order-item-progress.completed {
    border-color: rgba(22, 163, 74, .25);
    background: rgba(22, 163, 74, .04);
}
@media (max-width: 992px) {
    .order-stepper { grid-template-columns: 1fr 1fr; }
    .order-add-line { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
    .order-stepper { grid-template-columns: 1fr; }
}

/* Orders wizard refinement */
.btn-danger-soft {
    color: #DC2626;
    background: #FEE2E2;
    border-color: #FEE2E2;
}
.btn-danger-soft:hover {
    color: #fff;
    background: #DC2626;
    border-color: #DC2626;
}
.order-wizard-card {
    box-shadow: 0 6px 20px rgba(15, 23, 42, .06);
}
.order-analytics-card {
    height: 100%;
    padding: 22px;
    border-radius: 16px;
    border: 1px solid transparent;
}
.order-analytics-card--danger {
    background: #FEE2E2;
    border-color: #FECACA;
    color: #EF4444;
}
.order-analytics-card--warning {
    background: #FEF3C7;
    border-color: #FDE68A;
    color: #D97706;
}
.order-analytics-card--success {
    background: #DCFCE7;
    border-color: #BBF7D0;
    color: #16A34A;
}
.order-progress-bar--danger {
    background: #EF4444 !important;
}
.order-progress-bar--warning {
    background: #F59E0B !important;
}
.order-progress-bar--success {
    background: #22C55E !important;
}
.order-analytics-title,
.order-analytics-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}
.order-analytics-number {
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
}
.order-analytics-number span {
    font-size: 13px;
    font-weight: 700;
}
.order-analytics-percent {
    font-size: 30px;
    font-weight: 800;
}
.order-counterparty-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid #EEF2F7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}
.order-counterparty-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #292542;
    flex: 0 0 auto;
}
.order-add-search {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 120px 150px;
    align-items: stretch;
}
.order-add-search > * {
    border-radius: 0 !important;
}
.order-add-search > :first-child {
    border-radius: 10px 0 0 10px !important;
}
.order-add-search > :last-child {
    border-radius: 0 10px 10px 0 !important;
}
.order-add-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #CED4DA;
    border-right: 0;
    background: #fff;
    color: #475569;
}
.order-composition-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid #EEF2F7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
    margin-bottom: 12px;
}
.order-qty-input {
    width: 84px;
}
.order-item-progress {
    cursor: pointer;
    text-align: left;
}
.order-item-progress.active {
    border-color: rgba(91, 95, 199, .45);
    background: rgba(91, 95, 199, .10);
}
.order-scanned-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.order-scanned-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    background: #fff;
}
.order-final-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
@media (max-width: 992px) {
    .order-add-search { grid-template-columns: 48px minmax(0, 1fr); }
    .order-add-search #qtyInput,
    .order-add-search #addItemBtn { grid-column: span 1; }
    .order-scanned-grid { grid-template-columns: 1fr; }
    .order-final-card { align-items: stretch; flex-direction: column; }
}
@media (max-width: 576px) {
    .order-composition-row { align-items: stretch; flex-direction: column; }
    .order-add-search { grid-template-columns: 1fr; }
    .order-add-search > * { border-radius: 10px !important; margin-bottom: 8px; }
}

/* Orders list final layout */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.orders-list-toolbar {
    align-items: center;
    padding: 1rem 1.25rem;
}
.orders-search-input {
    min-width: 210px;
}
.orders-table thead th {
    background: #F3F4F6;
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.orders-table tbody td {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.orders-empty-state {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.btn-icon-disabled {
    background: #F8FAFC;
    color: #94A3B8;
    cursor: not-allowed;
}
.order-review-card {
    border-color: rgba(91, 95, 199, .18);
    box-shadow: 0 6px 20px rgba(15, 23, 42, .05);
}
.order-review-table-wrap {
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    overflow: hidden;
}
.order-review-table code {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #0F172A;
}
.order-step:not(.active):not(.done) {
    color: #64748B;
}
@media (max-width: 992px) {
    .stats-grid { grid-template-columns: 1fr; }
    .orders-list-toolbar { align-items: stretch; }
    .orders-list-toolbar .card-toolbar-actions { width: 100%; justify-content: space-between; }
    .orders-search-input { min-width: 0; width: 100%; }
}


.order-scanned-table-wrap {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}
.order-scanned-table thead th {
    background: #F8FAFC;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: #64748B;
    font-weight: 700;
    white-space: nowrap;
}
.order-scanned-table td {
    vertical-align: middle;
}
.order-scanned-table code {
    color: #D63384;
    font-size: 12px;
    word-break: break-all;
}
.order-scanned-table .text-break {
    word-break: break-all;
}


/* DataMatrix codes registry */
.datamatrix-codes-table code {
    color: #D63384;
    font-size: 12px;
    word-break: break-all;
}
.dm-code-main {
    max-width: 420px;
}
.datamatrix-codes-table .text-break {
    word-break: break-all;
}

/* DataMatrix lookup page */
.datamatrix-lookup-workspace .card {
    min-height: 100%;
}

.datamatrix-lookup-card,
.datamatrix-lookup-list-card {
    border-radius: 14px;
}

.datamatrix-lookup-scanner-panel {
    border-color: rgba(91, 95, 199, .45);
    background: #FAFAFB;
}

.datamatrix-lookup-scanner-panel .scanner-input-wrap .scanner-input {
    min-height: 66px;
    border: 2px dashed rgba(91, 95, 199, .75);
    border-radius: 16px;
    background: rgba(91, 95, 199, .08);
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    padding-right: 58px;
}

.datamatrix-lookup-scanner-panel .scanner-input-wrap .scanner-input:focus {
    background: rgba(91, 95, 199, .10);
    box-shadow: 0 0 0 .25rem rgba(91, 95, 199, .16);
}

.datamatrix-lookup-scanner-panel .scanner-input-wrap > i {
    right: 18px;
    font-size: 24px;
    color: var(--bs-primary);
}

.datamatrix-lookup-message {
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 13px;
}

.datamatrix-lookup-message--success {
    color: #047857;
    background: #D1FAE5;
}

.datamatrix-lookup-message--danger {
    color: #B91C1C;
    background: #FEE2E2;
}

.datamatrix-lookup-message--info {
    color: #3730A3;
    background: #E0E7FF;
}

.datamatrix-lookup-found-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.lookup-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.lookup-detail-grid > div,
.lookup-relation-row {
    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 9px 10px;
    min-width: 0;
}

.lookup-detail-grid span,
.lookup-relation-row span {
    display: block;
    color: #64748B;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 3px;
}

.lookup-detail-grid strong,
.lookup-relation-row strong,
.lookup-relation-row code,
.lookup-relation-row a {
    word-break: break-word;
}

.lookup-relation-block {
    display: grid;
    gap: 8px;
}

.datamatrix-lookup-table thead th {
    background: #F3F4F6;
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .02em;
    font-weight: 700;
}

.datamatrix-lookup-table code {
    color: #64748B;
    font-size: 13px;
}

.table-primary-soft td {
    background: #EEF2FF !important;
}

@media (max-width: 991.98px) {
    .lookup-detail-grid {
        grid-template-columns: 1fr;
    }
}

.order-step[href],
.order-step-button {
    width: 100%;
    text-align: left;
    font: inherit;
    text-decoration: none !important;
}
.order-step-button {
    border: 1px solid #E5E7EB;
    cursor: pointer;
}
.order-step[href]:hover,
.order-step-button:hover {
    border-color: rgba(91, 95, 199, .45);
    color: #111827;
}
.order-composition-row-readonly {
    background: #fff;
}
.order-composition-row-readonly .order-qty-input {
    background: #F8FAFC;
    color: #0F172A;
    opacity: 1;
}

