.inventory-md-shell,
.inventory-md-page-header,
.inventory-md-action,
.inventory-md-icon-btn,
.inventory-md-page-btn,
.inventory-md-state,
.inventory-md-toolbar,
.inventory-md-field,
.inventory-md-warehouse,
.inventory-md-pagination,
.inventory-md-kpi,
.inventory-md-dropdown,
.inventory-md-modal,
.inventory-md-detail,
.inventory-md-surface,
#inventoryList,
#pendingPurchaseList,
#reservedStockList,
#bevetelez-list,
#szallitas-list,
#history-list,
#transfer-detail,
#transfer-list-container,
#targyi-eszkozok {
    --inventory-md-primary: #1b7f5a;
    --inventory-md-primary-strong: #126746;
    --inventory-md-on-primary: #ffffff;
    --inventory-md-surface: #ffffff;
    --inventory-md-surface-muted: #f8fafc;
    --inventory-md-surface-hover: #f1f8f5;
    --inventory-md-outline: #d7dee8;
    --inventory-md-outline-strong: #c5cedb;
    --inventory-md-row-outline: #c6d3e1;
    --inventory-md-column-outline: #d7dee8;
    --inventory-md-text: #17202a;
    --inventory-md-text-muted: #64748b;
    --inventory-md-blue: #1d4ed8;
    --inventory-md-red: #b42318;
    --inventory-md-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.05);
}

.inventory-md-shell {
    --inventory-md-primary: #1b7f5a;
    --inventory-md-primary-strong: #126746;
    --inventory-md-on-primary: #ffffff;
    --inventory-md-surface: #ffffff;
    --inventory-md-surface-muted: #f8fafc;
    --inventory-md-surface-hover: #f1f8f5;
    --inventory-md-outline: #d7dee8;
    --inventory-md-outline-strong: #c5cedb;
    --inventory-md-row-outline: #c6d3e1;
    --inventory-md-column-outline: #d7dee8;
    --inventory-md-text: #17202a;
    --inventory-md-text-muted: #64748b;
    --inventory-md-blue: #1d4ed8;
    --inventory-md-red: #b42318;
    --inventory-md-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.inventory-md-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) minmax(180px, 0.75fr) minmax(180px, 0.75fr) auto auto;
    gap: 0.85rem;
    align-items: end;
    background: var(--inventory-md-surface);
    border: 1px solid var(--inventory-md-outline);
    border-radius: 8px;
    box-shadow: var(--inventory-md-shadow);
    padding: 1rem;
}

.inventory-md-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.inventory-md-field > span:not(.inventory-md-input-wrap) {
    color: var(--inventory-md-text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.inventory-md-input-wrap {
    display: block;
    position: relative;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: normal;
    text-transform: none;
}

.inventory-md-input-wrap i {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    color: var(--inventory-md-text-muted);
    pointer-events: none;
    text-align: center;
    transform: translateY(-50%);
    width: 1rem;
}

.inventory-md-field input,
.inventory-md-field select {
    width: 100%;
    height: 44px;
    border: 1px solid var(--inventory-md-outline);
    border-radius: 6px;
    background: var(--inventory-md-surface);
    color: var(--inventory-md-text);
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.inventory-md-field input {
    padding: 0 0.85rem;
}

.inventory-md-input-wrap input {
    padding-left: 2.75rem !important;
}

.app-md-shell.app-md-page-keszlet .main-content #inventoryList .inventory-md-input-wrap input#inventorySearch {
    padding-left: 3rem !important;
}

.inventory-md-field select {
    padding: 0 0.85rem;
}

.inventory-md-field input:focus,
.inventory-md-field select:focus {
    border-color: var(--inventory-md-primary);
    box-shadow: 0 0 0 3px rgba(27, 127, 90, 0.14);
}

.inventory-md-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0 0.15rem;
    color: var(--inventory-md-text);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 650;
    white-space: nowrap;
}

.inventory-md-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.inventory-md-switch-track {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background-color 0.16s ease;
}

.inventory-md-switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
    transition: transform 0.16s ease;
}

.inventory-md-switch input:checked + .inventory-md-switch-track {
    background: var(--inventory-md-primary);
}

.inventory-md-switch input:checked + .inventory-md-switch-track::after {
    transform: translateX(18px);
}

.inventory-md-switch input:focus-visible + .inventory-md-switch-track {
    box-shadow: 0 0 0 3px rgba(27, 127, 90, 0.18);
}

.inventory-md-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
}

.inventory-md-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 0 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.inventory-md-action:disabled {
    cursor: wait;
}

.inventory-md-action-primary {
    background: var(--inventory-md-primary);
    color: var(--inventory-md-on-primary);
}

.inventory-md-action-primary:hover {
    background: var(--inventory-md-primary-strong);
}

.inventory-md-action-secondary {
    background: var(--inventory-md-surface);
    border-color: var(--inventory-md-primary);
    color: var(--inventory-md-primary);
}

.inventory-md-action-secondary:hover {
    background: rgba(27, 127, 90, 0.08);
}

.inventory-md-action-danger {
    background: #fff7f7;
    border-color: #fecaca;
    color: var(--inventory-md-red);
}

.inventory-md-action-danger:hover {
    background: #fee2e2;
}

.inventory-md-action:focus-visible,
.inventory-md-page-btn:focus-visible,
.inventory-md-row:focus-visible,
.inventory-md-icon-btn:focus-visible,
.inventory-md-dropdown-trigger:focus-visible {
    outline: 3px solid rgba(29, 78, 216, 0.22);
    outline-offset: 2px;
}

.inventory-md-inline-toolbar {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.inventory-md-inline-toolbar .inventory-md-field {
    min-width: 220px;
}

.inventory-md-inline-toolbar .inventory-md-field--wide {
    min-width: 280px;
}

.inventory-md-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.inventory-md-page-header h1,
.inventory-md-page-header h2 {
    margin: 0;
    color: var(--inventory-md-text);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0;
}

.inventory-md-page-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.inventory-md-page-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.inventory-md-toolbar-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    align-items: end;
}

.inventory-md-toolbar-auto .inventory-md-field--wide {
    grid-column: span 2;
}

.inventory-md-filter-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.inventory-md-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.inventory-md-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--inventory-md-surface);
    border: 1px solid var(--inventory-md-outline);
    border-radius: 8px;
    box-shadow: var(--inventory-md-shadow);
    padding: 1rem 1.15rem;
}

.inventory-md-summary-label {
    color: var(--inventory-md-text);
    font-size: 0.9rem;
    font-weight: 750;
}

.inventory-md-summary-sub {
    color: var(--inventory-md-text-muted);
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.inventory-md-summary-value {
    color: var(--inventory-md-primary-strong);
    font-size: 1.35rem;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.inventory-md-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.inventory-md-kpi {
    background: var(--inventory-md-surface);
    border: 1px solid var(--inventory-md-outline);
    border-left: 4px solid var(--inventory-md-primary);
    border-radius: 8px;
    box-shadow: var(--inventory-md-shadow);
    padding: 0.9rem 1rem;
}

.inventory-md-kpi-label {
    color: var(--inventory-md-text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.inventory-md-kpi-value {
    color: var(--inventory-md-text);
    font-size: 1.22rem;
    font-weight: 850;
    margin-top: 0.25rem;
}

.inventory-md-kpi-sub {
    color: var(--inventory-md-text-muted);
    font-size: 0.78rem;
    font-weight: 650;
    margin-top: 0.15rem;
}

.inventory-md-warehouse {
    overflow: hidden;
    background: var(--inventory-md-surface);
    border: 1px solid var(--inventory-md-outline);
    border-radius: 8px;
    box-shadow: var(--inventory-md-shadow);
}

.inventory-md-warehouse-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 52px;
    padding: 0.8rem 1rem;
    background: var(--inventory-md-surface-muted);
    border-bottom: 1px solid var(--inventory-md-outline);
}

.inventory-md-warehouse-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    color: var(--inventory-md-text);
}

.inventory-md-warehouse-title i {
    color: var(--inventory-md-primary);
}

.inventory-md-warehouse-title h3 {
    overflow: hidden;
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inventory-md-warehouse-count {
    flex: 0 0 auto;
    border: 1px solid var(--inventory-md-outline);
    border-radius: 999px;
    background: #ffffff;
    color: var(--inventory-md-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.22rem 0.6rem;
}

.inventory-md-table-wrap {
    width: 100%;
    overflow-x: hidden;
}

.app-md-shell.app-md-page-keszlet .main-content .inventory-md-table-wrap,
.app-md-shell.app-md-page-keszlet .main-content .customer-table-container {
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
}

.inventory-md-table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    color: var(--inventory-md-text);
    font-size: 0.84rem;
}

.inventory-md-table th,
.inventory-md-table td {
    overflow: hidden;
    border-right: 1px solid var(--inventory-md-column-outline);
    border-bottom: 1px solid var(--inventory-md-row-outline);
    padding: 0.52rem 0.48rem;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.inventory-md-table th:last-child,
.inventory-md-table td:last-child {
    border-right: 0;
}

.inventory-md-table tbody tr:last-child td {
    border-bottom: 0;
}

.inventory-md-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #eef3f7;
    color: #475569;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    text-align: left;
    text-transform: uppercase;
    overflow-wrap: normal;
    white-space: normal;
    word-break: normal;
    hyphens: none;
}

.inventory-md-label-short {
    display: none;
}

#inventoryList .inventory-md-label-full,
#inventoryList .inventory-md-label-short {
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: keep-all;
}

.inventory-md-table td {
    background: #ffffff;
    line-height: 1.25;
}

.inventory-md-table--sm,
.inventory-md-table--md,
.inventory-md-table--lg,
.inventory-md-table-all-warehouses {
    min-width: 0;
}

.app-md-shell.app-md-page-keszlet .main-content .inventory-md-table,
.app-md-shell.app-md-page-keszlet .main-content .customer-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
}

.app-md-shell.app-md-page-keszlet .main-content .inventory-md-table th,
.app-md-shell.app-md-page-keszlet .main-content .inventory-md-table td,
.app-md-shell.app-md-page-keszlet .main-content .customer-table th,
.app-md-shell.app-md-page-keszlet .main-content .customer-table td {
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
}

.app-md-shell.app-md-page-keszlet .main-content .inventory-md-table th,
.app-md-shell.app-md-page-keszlet .main-content .customer-table th,
.app-md-shell.app-md-page-keszlet .main-content .inventory-md-number,
.app-md-shell.app-md-page-keszlet .main-content .inventory-md-money,
.app-md-shell.app-md-page-keszlet .main-content .inventory-md-cell-date,
.app-md-shell.app-md-page-keszlet .main-content .inventory-md-cell-status,
.app-md-shell.app-md-page-keszlet .main-content .inventory-md-cell-actions,
.app-md-shell.app-md-page-keszlet .main-content .inventory-md-badge,
.app-md-shell.app-md-page-keszlet .main-content .inventory-md-change,
.app-md-shell.app-md-page-keszlet .main-content .inventory-md-warehouse-count {
    white-space: nowrap !important;
}

.app-md-shell.app-md-page-keszlet .main-content .inventory-md-cell-product,
.app-md-shell.app-md-page-keszlet .main-content .inventory-md-cell-wrap,
.app-md-shell.app-md-page-keszlet .main-content .inventory-md-product-name {
    white-space: normal !important;
    overflow-wrap: break-word !important;
}

#inventoryList .inventory-md-table,
#pendingPurchaseList .inventory-md-table,
#history-list .inventory-md-table {
    min-width: 0 !important;
}

#history-list .inventory-md-table--lg {
    min-width: 0 !important;
}

.inventory-md-table .inventory-md-cell-actions {
    overflow: visible;
    text-align: center;
    white-space: nowrap;
}

.inventory-md-table .inventory-md-cell-date,
.inventory-md-table .inventory-md-cell-status {
    white-space: nowrap;
}

.inventory-md-table .inventory-md-cell-muted {
    color: var(--inventory-md-text-muted);
    font-size: 0.76rem;
}

.inventory-md-table .inventory-md-cell-wrap {
    overflow: visible;
    white-space: normal;
}

.inventory-md-row {
    cursor: pointer;
    transition: background-color 0.14s ease, box-shadow 0.14s ease;
}

.inventory-md-row:hover td,
.inventory-md-row:focus-visible td {
    background: var(--inventory-md-surface-hover);
}

.inventory-md-cell-product {
    white-space: normal;
}

.inventory-md-product-name {
    color: var(--inventory-md-text);
    font-weight: 800;
    overflow-wrap: break-word;
}

.inventory-md-product-meta {
    overflow: hidden;
    color: var(--inventory-md-text-muted);
    font-size: 0.75rem;
    margin-top: 0.15rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inventory-md-mobile-meta {
    display: none;
}

.inventory-md-mobile-meta-line {
    display: block;
    color: var(--inventory-md-text-muted);
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 1.25;
    margin-top: 0.15rem;
    overflow-wrap: anywhere;
}

.inventory-md-mobile-meta-line strong {
    color: var(--inventory-md-text);
    font-weight: 800;
}

.inventory-md-number {
    text-align: right;
    white-space: nowrap;
}

.inventory-md-quantity {
    font-weight: 800;
}

.inventory-md-money {
    color: #334155;
    font-variant-numeric: tabular-nums;
}

.inventory-md-value {
    display: inline-flex;
    justify-content: flex-end;
    min-width: 1.35rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.inventory-md-value-free {
    color: #0f766e;
}

.inventory-md-value-needed {
    color: #17202a;
}

.inventory-md-value-reserved {
    color: var(--inventory-md-primary-strong);
}

.inventory-md-value-balance-positive {
    color: #0f766e;
}

.inventory-md-value-balance-neutral {
    color: #64748b;
}

.inventory-md-value-balance-negative {
    color: var(--inventory-md-red);
}

.inventory-md-value-shortage {
    color: var(--inventory-md-red);
}

.inventory-md-value-muted {
    color: #94a3b8;
    font-weight: 650;
}

.inventory-md-col-product {
    width: 30%;
}

.inventory-md-col-warehouse {
    width: 7.5rem;
}

.inventory-md-col-category {
    width: 8.5rem;
}

.inventory-md-col-number {
    width: 5rem;
}

.inventory-md-col-number-wide {
    width: 6.25rem;
}

.inventory-md-col-money {
    width: 7.75rem;
}

.inventory-md-col-id {
    width: 5.25rem;
}

.inventory-md-col-date {
    width: 7rem;
}

.inventory-md-col-status {
    width: 7rem;
}

.inventory-md-col-actions {
    width: 5rem;
}

.inventory-md-col-user {
    width: 8rem;
}

.inventory-md-col-description {
    width: auto;
}

#aktualis > .section-header {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 1rem 0 !important;
}

#aktualis #inventoryList,
#inventoryList .inventory-md-shell,
#inventoryList .inventory-md-toolbar,
#inventoryList .inventory-md-results,
#inventoryList .inventory-md-summary,
#inventoryList .inventory-md-warehouse {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
}

#inventoryList .inventory-md-table {
    table-layout: fixed;
}

#inventoryList .inventory-md-table th {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

#inventoryList .inventory-md-table td {
    overflow-wrap: normal;
    word-break: normal;
}

#inventoryList .inventory-md-table .inventory-md-cell-product {
    white-space: normal;
}

#inventoryList .inventory-md-table .inventory-md-number,
#inventoryList .inventory-md-table .inventory-md-money {
    overflow: hidden;
    text-align: right;
    text-overflow: clip;
    white-space: nowrap;
}

#inventoryList .inventory-md-table tbody td.inventory-md-number {
    font-size: 0.88rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
}

#inventoryList .inventory-md-table tbody td.inventory-md-number .inventory-md-cell-button {
    color: inherit;
    font: inherit;
    line-height: inherit;
}

#inventoryList .inventory-md-table tbody td.inventory-md-number .inventory-md-value {
    font-size: inherit;
    font-weight: inherit;
    font-variant-numeric: inherit;
    line-height: inherit;
}

#inventoryList .inventory-md-table tbody td.inventory-md-number .inventory-md-value-muted {
    font-weight: inherit;
}

#inventoryList .inventory-md-col-product {
    width: 28%;
}

#inventoryList .inventory-md-col-category {
    width: 12%;
}

.app-md-shell.app-md-page-keszlet .main-content #szallitas-list .traceability-table-container,
#szallitas-list .traceability-table-container {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
}

.app-md-shell.app-md-page-keszlet .main-content #szallitas-list .traceability-table,
#szallitas-list .traceability-table {
    min-width: 1180px !important;
    max-width: none !important;
    table-layout: fixed !important;
}

#szallitas-list .traceability-table .traceability-col-product {
    width: 23%;
}

#szallitas-list .traceability-table .traceability-col-sku {
    width: 16%;
}

#szallitas-list .traceability-table .traceability-col-category {
    width: 11%;
}

#szallitas-list .traceability-table .traceability-col-delivered {
    width: 7%;
}

#szallitas-list .traceability-table .traceability-col-supplier {
    width: 15%;
}

#szallitas-list .traceability-table .traceability-col-date {
    width: 12%;
}

#szallitas-list .traceability-table .traceability-col-allocated {
    width: 8%;
}

#szallitas-list .traceability-table .traceability-col-id {
    width: 8%;
}

.app-md-shell.app-md-page-keszlet .main-content #szallitas-list .traceability-table th,
.app-md-shell.app-md-page-keszlet .main-content #szallitas-list .traceability-table td,
#szallitas-list .traceability-table th,
#szallitas-list .traceability-table td {
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
}

.app-md-shell.app-md-page-keszlet .main-content #szallitas-list .traceability-table th:nth-child(1),
.app-md-shell.app-md-page-keszlet .main-content #szallitas-list .traceability-table td:nth-child(1),
#szallitas-list .traceability-table th:nth-child(1),
#szallitas-list .traceability-table td:nth-child(1) {
    width: auto !important;
    min-width: 0 !important;
}

#szallitas-list .traceability-table th:nth-child(4),
#szallitas-list .traceability-table th:nth-child(7) {
    text-align: right !important;
    white-space: normal !important;
}

#szallitas-list .traceability-table td:nth-child(4),
#szallitas-list .traceability-table td:nth-child(7) {
    text-align: right !important;
    white-space: nowrap !important;
}

#inventoryList .inventory-md-col-number {
    width: 5.5%;
}

#inventoryList .inventory-md-col-number-wide {
    width: 7%;
}

#inventoryList .inventory-md-col-money {
    width: 12%;
}

#inventoryList .inventory-md-table-all-warehouses .inventory-md-col-product {
    width: 24%;
}

#inventoryList .inventory-md-table-all-warehouses .inventory-md-col-warehouse {
    width: 8%;
}

#inventoryList .inventory-md-table-all-warehouses .inventory-md-col-category {
    width: 10%;
}

#inventoryList .inventory-md-table-all-warehouses .inventory-md-col-number {
    width: 5%;
}

#inventoryList .inventory-md-table-all-warehouses .inventory-md-col-number-wide {
    width: 6.5%;
}

#inventoryList .inventory-md-table-all-warehouses .inventory-md-col-money {
    width: 10.5%;
}

#pendingPurchaseList .pending-planner-table .inventory-md-col-product {
    width: 34%;
}

#pendingPurchaseList .pending-planner-table .inventory-md-col-warehouse {
    width: 6.5rem;
}

#pendingPurchaseList .pending-planner-table .inventory-md-col-date {
    width: 7rem;
}

#pendingPurchaseList .pending-planner-table .inventory-md-col-number-wide {
    width: 5.75rem;
}

#pendingPurchaseList .pending-planner-table .inventory-md-col-money {
    width: 7rem;
}

#pendingPurchaseList .pending-planner-table .inventory-md-col-description {
    width: 23%;
}

#pendingPurchaseList .pending-planner-table .inventory-md-col-status {
    width: 5.5rem;
}

#pendingPurchaseList .pending-planner-table .inventory-md-col-actions {
    width: 4.25rem;
}

#pendingPurchaseList .pending-planner-table .inventory-md-cell-actions {
    white-space: nowrap;
}

#pendingPurchaseList .pending-planner-table th,
#targyi-eszkozok .inventory-md-table--assets th {
    text-overflow: clip;
}

#reservedStockList .inventory-md-table--md .inventory-md-col-product {
    width: 38%;
}

#reservedStockList .inventory-md-table--md .inventory-md-col-category {
    width: 18%;
}

#reservedStockList .inventory-md-table--md .inventory-md-col-number-wide {
    width: 8rem;
}

#bevetelez-list .inventory-md-table--lg:not(.inventory-md-table--bevetelez-items):not(.inventory-md-table--bevetelez-costs) col:nth-child(1),
#szallitas-list .inventory-md-table--md col:nth-child(1),
#transfer-list-container .inventory-md-table--md col:nth-child(1) {
    width: 5.25rem;
}

#bevetelez-list .inventory-md-table--lg:not(.inventory-md-table--bevetelez-items):not(.inventory-md-table--bevetelez-costs) col:nth-child(2),
#szallitas-list .inventory-md-table--md col:nth-child(2),
#transfer-list-container .inventory-md-table--md col:nth-child(2) {
    width: 7rem;
}

#bevetelez-list .inventory-md-table--lg:not(.inventory-md-table--bevetelez-items):not(.inventory-md-table--bevetelez-costs) col:nth-child(3) {
    width: 13%;
}

#bevetelez-list .inventory-md-table--lg:not(.inventory-md-table--bevetelez-items):not(.inventory-md-table--bevetelez-costs) col:nth-child(4) {
    width: 16%;
}

#bevetelez-list .inventory-md-table--lg:not(.inventory-md-table--bevetelez-items):not(.inventory-md-table--bevetelez-costs) col:nth-child(5),
#bevetelez-list .inventory-md-table--lg:not(.inventory-md-table--bevetelez-items):not(.inventory-md-table--bevetelez-costs) col:nth-child(9),
#szallitas-list .inventory-md-table--md col:nth-child(5),
#szallitas-list .inventory-md-table--md col:nth-child(7),
#transfer-list-container .inventory-md-table--md col:nth-child(3),
#transfer-list-container .inventory-md-table--md col:nth-child(4),
#transfer-list-container .inventory-md-table--md col:nth-child(8) {
    width: 8rem;
}

#bevetelez-list .inventory-md-table--lg:not(.inventory-md-table--bevetelez-items):not(.inventory-md-table--bevetelez-costs) col:nth-child(6) {
    width: 14%;
}

#bevetelez-list .inventory-md-table--lg:not(.inventory-md-table--bevetelez-items):not(.inventory-md-table--bevetelez-costs) col:nth-child(7) {
    width: 8rem;
}

#bevetelez-list .inventory-md-table--lg:not(.inventory-md-table--bevetelez-items):not(.inventory-md-table--bevetelez-costs) col:nth-child(8),
#szallitas-list .inventory-md-table--md col:nth-child(6),
#transfer-list-container .inventory-md-table--md col:nth-child(7) {
    width: 7rem;
}

#bevetelez-list .inventory-md-table--lg:not(.inventory-md-table--bevetelez-items):not(.inventory-md-table--bevetelez-costs) col:nth-child(10),
#szallitas-list .inventory-md-table--md col:nth-child(8),
#transfer-list-container .inventory-md-table--md col:nth-child(9) {
    width: 5.5rem;
}

#bevetelez-list .inventory-md-table--bevetelez-list {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
}

#bevetelez-list .inventory-md-table--bevetelez-list col:nth-child(1) { width: 6%; }
#bevetelez-list .inventory-md-table--bevetelez-list col:nth-child(2) { width: 8%; }
#bevetelez-list .inventory-md-table--bevetelez-list col:nth-child(3) { width: 11%; }
#bevetelez-list .inventory-md-table--bevetelez-list col:nth-child(4) { width: 17%; }
#bevetelez-list .inventory-md-table--bevetelez-list col:nth-child(5) { width: 8%; }
#bevetelez-list .inventory-md-table--bevetelez-list col:nth-child(6) { width: 14%; }
#bevetelez-list .inventory-md-table--bevetelez-list col:nth-child(7) { width: 9%; }
#bevetelez-list .inventory-md-table--bevetelez-list col:nth-child(8) { width: 8%; }
#bevetelez-list .inventory-md-table--bevetelez-list col:nth-child(9) { width: 11%; }
#bevetelez-list .inventory-md-table--bevetelez-list col:nth-child(10) { width: 8%; }

#bevetelez-list .inventory-md-table--bevetelez-list th:last-child,
#bevetelez-list .inventory-md-table--bevetelez-list td:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
    overflow: visible;
    background: #ffffff;
    box-shadow: -1px 0 0 var(--inventory-md-column-outline);
    text-align: center;
}

#bevetelez-list .inventory-md-table--bevetelez-list th:last-child {
    z-index: 3;
    background: #eef3f7;
}

#bevetelez-list .inventory-md-table--bevetelez-list .inventory-md-row:hover td:last-child,
#bevetelez-list .inventory-md-table--bevetelez-list .inventory-md-row:focus-visible td:last-child {
    background: var(--inventory-md-surface-hover);
}

#szallitas-list .inventory-md-table--md col:nth-child(3) {
    width: 22%;
}

#szallitas-list .inventory-md-table--md col:nth-child(4) {
    width: 18%;
}

#transfer-list-container .inventory-md-table--md col:nth-child(5) {
    width: 5.5rem;
}

#transfer-list-container .inventory-md-table--md col:nth-child(6) {
    width: 7rem;
}

#history-list .inventory-md-table--lg col:nth-child(1) {
    width: 8rem;
}

#history-list .inventory-md-table--lg col:nth-child(2) {
    width: 24%;
}

#history-list .inventory-md-table--lg col:nth-child(3),
#history-list .inventory-md-table--lg col:nth-child(8),
#history-list .inventory-md-table--lg col:nth-child(10) {
    width: 8rem;
}

#history-list .inventory-md-table--lg col:nth-child(4),
#history-list .inventory-md-table--lg col:nth-child(5),
#history-list .inventory-md-table--lg col:nth-child(6),
#history-list .inventory-md-table--lg col:nth-child(7) {
    width: 7rem;
}

#history-list .inventory-md-table--lg col:nth-child(9) {
    width: auto;
}

#history-list .inventory-md-table--history {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
}

#history-list .inventory-md-table--history col:nth-child(1) { width: 10%; }
#history-list .inventory-md-table--history col:nth-child(2) { width: 22%; }
#history-list .inventory-md-table--history col:nth-child(3) { width: 10%; }
#history-list .inventory-md-table--history col:nth-child(4) { width: 9%; }
#history-list .inventory-md-table--history col:nth-child(5) { width: 9%; }
#history-list .inventory-md-table--history col:nth-child(6) { width: 9%; }
#history-list .inventory-md-table--history col:nth-child(7) { width: 10%; }
#history-list .inventory-md-table--history col:nth-child(8) { width: 10%; }
#history-list .inventory-md-table--history col:nth-child(9) { width: 0; }
#history-list .inventory-md-table--history col:nth-child(10) { width: 11%; }

#history-list .inventory-md-table--history th:nth-child(9),
#history-list .inventory-md-table--history td:nth-child(9) {
    display: none;
}

#history-list .inventory-md-table--history th,
#history-list .inventory-md-table--history td {
    white-space: normal !important;
}

#history-list .inventory-md-table--history .inventory-md-cell-date,
#history-list .inventory-md-table--history .inventory-md-cell-muted,
#history-list .inventory-md-table--history .inventory-md-change {
    white-space: nowrap !important;
}

#history-list .inventory-md-table--history .inventory-md-cell-actions {
    overflow: hidden;
    white-space: normal !important;
}

#history-list .inventory-md-table--history .inventory-md-badge {
    max-width: 100%;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: anywhere;
}

#history-list .inventory-md-table--history .inventory-md-link {
    overflow-wrap: anywhere;
    white-space: normal;
}

#targyi-eszkozok .inventory-md-table--assets {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
}

#targyi-eszkozok .inventory-md-table--assets col:nth-child(1) { width: 10%; }
#targyi-eszkozok .inventory-md-table--assets col:nth-child(2) { width: 33%; }
#targyi-eszkozok .inventory-md-table--assets col:nth-child(3) { width: 12%; }
#targyi-eszkozok .inventory-md-table--assets col:nth-child(4) { width: 7%; }
#targyi-eszkozok .inventory-md-table--assets col:nth-child(5) { width: 6%; }
#targyi-eszkozok .inventory-md-table--assets col:nth-child(6) { width: 9%; }
#targyi-eszkozok .inventory-md-table--assets col:nth-child(7) { width: 8%; }
#targyi-eszkozok .inventory-md-table--assets col:nth-child(8) { width: 9%; }
#targyi-eszkozok .inventory-md-table--assets col:nth-child(9) { width: 6%; }

#targyi-eszkozok .inventory-md-table--assets th:last-child,
#targyi-eszkozok .inventory-md-table--assets td:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
    overflow: visible;
    background: #ffffff;
    box-shadow: -1px 0 0 var(--inventory-md-column-outline);
    text-align: center;
}

#targyi-eszkozok .inventory-md-table--assets th:last-child {
    z-index: 3;
    background: #eef3f7;
}

#targyi-eszkozok .inventory-md-table--assets tr:hover td:last-child,
#targyi-eszkozok .inventory-md-table--assets tr:focus-visible td:last-child {
    background: var(--inventory-md-surface-hover);
}

#targyi-eszkozok .inventory-md-table--assets td.inventory-md-cell-actions {
    overflow: visible;
    padding-left: 0.3rem;
    padding-right: 0.3rem;
    white-space: nowrap;
}

#targyi-eszkozok .inventory-md-table--assets td.inventory-md-cell-actions .inventory-md-icon-btn + .inventory-md-icon-btn {
    margin-left: 0.2rem;
}

.inventory-md-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.1;
    padding: 0.22rem 0.58rem;
    vertical-align: middle;
    white-space: nowrap;
}

.inventory-md-badge-success {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #087443;
}

.inventory-md-badge-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.inventory-md-badge-danger {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

.inventory-md-badge-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.inventory-md-badge-secondary {
    background: #f1f5f9;
    border-color: #dbe3ed;
    color: #475569;
}

.inventory-md-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--inventory-md-outline);
    border-radius: 6px;
    background: var(--inventory-md-surface);
    color: var(--inventory-md-text-muted);
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.inventory-md-icon-btn:hover {
    border-color: var(--inventory-md-primary);
    background: rgba(27, 127, 90, 0.08);
    color: var(--inventory-md-primary);
}

.inventory-md-icon-btn-danger:hover {
    border-color: #fecaca;
    background: #fff1f2;
    color: var(--inventory-md-red);
}

.inventory-md-link {
    color: var(--inventory-md-primary);
    font-weight: 800;
    text-decoration: none;
}

.inventory-md-link:hover {
    color: var(--inventory-md-primary-strong);
    text-decoration: underline;
}

.inventory-md-change {
    display: inline-flex;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

.inventory-md-change-positive {
    color: #087443;
}

.inventory-md-change-negative {
    color: #b42318;
}

.inventory-md-change-muted {
    color: #94a3b8;
}

.inventory-md-dropdown {
    position: relative;
}

.inventory-md-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    width: 100%;
    height: 44px;
    border: 1px solid var(--inventory-md-outline);
    border-radius: 6px;
    background: var(--inventory-md-surface);
    color: var(--inventory-md-text);
    cursor: pointer;
    font-size: 0.92rem;
    padding: 0 0.85rem;
    text-align: left;
}

.inventory-md-dropdown-trigger span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inventory-md-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1000;
    overflow: hidden;
    background: var(--inventory-md-surface);
    border: 1px solid var(--inventory-md-outline);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.inventory-md-dropdown-search {
    border-bottom: 1px solid var(--inventory-md-outline);
    padding: 0.65rem;
}

.inventory-md-dropdown-search input {
    width: 100%;
    height: 40px;
    border: 1px solid var(--inventory-md-outline);
    border-radius: 6px;
    color: var(--inventory-md-text);
    padding: 0 0.75rem;
}

.inventory-md-dropdown-search input:focus {
    border-color: var(--inventory-md-primary);
    box-shadow: 0 0 0 3px rgba(27, 127, 90, 0.14);
    outline: none;
}

.inventory-md-dropdown-options {
    max-height: 260px;
    overflow-y: auto;
}

.inventory-md-dropdown-option {
    border-bottom: 1px solid var(--inventory-md-outline);
    color: var(--inventory-md-text);
    cursor: pointer;
    padding: 0.58rem 0.75rem;
}

.inventory-md-dropdown-option:hover,
.inventory-md-dropdown-option.is-selected {
    background: var(--inventory-md-surface-hover);
}

.inventory-md-dropdown-option.is-selected {
    color: var(--inventory-md-primary-strong);
    font-weight: 800;
}

.inventory-md-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    padding: 0.25rem 0 0.5rem;
}

.inventory-md-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 38px;
    min-height: 36px;
    border: 1px solid var(--inventory-md-outline);
    border-radius: 6px;
    background: var(--inventory-md-surface);
    color: var(--inventory-md-text);
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 750;
    padding: 0 0.7rem;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.inventory-md-page-btn:hover:not(:disabled),
.inventory-md-page-btn.is-active {
    border-color: var(--inventory-md-primary);
    background: var(--inventory-md-primary);
    color: var(--inventory-md-on-primary);
}

.inventory-md-page-btn:disabled {
    color: #aab4c2;
    cursor: not-allowed;
}

.inventory-md-page-status {
    color: var(--inventory-md-text-muted);
    font-size: 0.84rem;
    font-weight: 650;
    padding: 0 0.35rem;
}

.inventory-md-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 150px;
    border: 1px dashed var(--inventory-md-outline-strong);
    border-radius: 8px;
    background: var(--inventory-md-surface);
    color: var(--inventory-md-text-muted);
    font-weight: 700;
}

.inventory-md-state i {
    color: var(--inventory-md-primary);
    font-size: 1.15rem;
}

.inventory-md-state-error {
    border-color: #fecaca;
    background: #fff8f8;
    color: var(--inventory-md-red);
}

.inventory-md-state-error i {
    color: var(--inventory-md-red);
}

.inventory-md-surface,
.inventory-md-detail,
#inventoryList .detail-content,
#pendingPurchaseList .pending-planner-drawer,
#reservedStockList .detail-content,
#bevetelez-list .detail-content,
#szallitas-list .detail-content,
#transfer-detail .detail-content,
#targyi-eszkozok .modal-form {
    background: var(--inventory-md-surface);
    border: 1px solid var(--inventory-md-outline);
    border-radius: 8px;
    box-shadow: var(--inventory-md-shadow);
}

#inventoryList .detail-content,
#reservedStockList .detail-content,
#bevetelez-list .detail-content,
#szallitas-list .detail-content,
#transfer-detail .detail-content {
    padding: 1rem;
}

#bevetelez-list .detail-view {
    overflow: visible;
    padding: 1rem;
}

#bevetelez-list .detail-content {
    padding: 0.85rem;
}

#inventoryList .detail-header-simple,
#reservedStockList .detail-header-simple,
#bevetelez-list .detail-header-simple,
#szallitas-list .detail-header-simple,
#transfer-detail .detail-header-simple {
    margin-bottom: 1rem;
}

#inventoryList .detail-title-bar,
#reservedStockList .detail-title-bar,
#bevetelez-list .detail-title-bar,
#szallitas-list .detail-title-bar,
#transfer-detail .detail-title-bar {
    align-items: flex-start;
    background: var(--inventory-md-surface-muted);
    border: 1px solid var(--inventory-md-outline);
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
}

#inventoryList .detail-title-bar h1,
#inventoryList .detail-title-bar h2,
#reservedStockList .detail-title-bar h1,
#reservedStockList .detail-title-bar h2,
#bevetelez-list .detail-title-bar h1,
#bevetelez-list .detail-title-bar h2,
#szallitas-list .detail-title-bar h1,
#szallitas-list .detail-title-bar h2,
#transfer-detail .detail-title-bar h1,
#transfer-detail .detail-title-bar h2 {
    color: var(--inventory-md-text);
    font-size: 1.25rem;
    font-weight: 850;
    letter-spacing: 0;
    margin: 0;
}

#inventoryList .btn-back,
#reservedStockList .btn-back,
#bevetelez-list .btn-back,
#szallitas-list .btn-back,
#transfer-detail .btn-back {
    align-items: center;
    background: var(--inventory-md-surface);
    border: 1px solid var(--inventory-md-outline);
    border-radius: 6px;
    color: var(--inventory-md-primary);
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    gap: 0.45rem;
    min-height: 38px;
    padding: 0 0.8rem;
}

.inventory-md-modal .modal-content {
    background: var(--inventory-md-surface);
    border: 1px solid var(--inventory-md-outline);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.inventory-md-modal .modal-content.inventory-md-leltar-modal {
    max-height: none;
    overflow: visible;
}

.inventory-md-modal .modal-content.inventory-md-purchase-modal {
    display: flex;
    flex-direction: column;
    height: min(760px, calc(100vh - 64px));
    overflow: hidden;
}

.inventory-md-modal .inventory-md-purchase-modal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.inventory-md-modal .inventory-md-purchase-modal .inventory-md-searchable-results {
    max-height: 360px;
}

@media (max-height: 720px) {
    .inventory-md-modal .inventory-md-purchase-modal .inventory-md-searchable-results {
        max-height: 280px;
    }
}

@media (max-height: 600px), (max-width: 720px) {
    .inventory-md-modal .modal-content.inventory-md-purchase-modal {
        height: min(680px, calc(100vh - 32px));
    }

    .inventory-md-modal .inventory-md-purchase-modal .inventory-md-searchable-results {
        max-height: 220px;
    }
}

.swal2-popup.inventory-md-modal {
    border: 1px solid var(--inventory-md-outline);
    border-radius: 8px;
    color: var(--inventory-md-text);
    padding: 0;
}

.swal2-popup.inventory-md-modal .swal2-title {
    background: var(--inventory-md-surface-muted);
    border-bottom: 1px solid var(--inventory-md-outline);
    color: var(--inventory-md-text);
    font-size: 1.15rem;
    font-weight: 850;
    margin: 0;
    padding: 1rem;
}

.swal2-popup.inventory-md-modal .swal2-html-container {
    margin: 0;
    padding: 1rem;
}

.swal2-popup.inventory-md-modal .swal2-actions {
    border-top: 1px solid var(--inventory-md-outline);
    margin: 0;
    padding: 0.9rem 1rem;
    width: 100%;
}

.inventory-md-modal .modal-header {
    align-items: center;
    background: var(--inventory-md-surface-muted);
    border-bottom: 1px solid var(--inventory-md-outline);
    display: flex;
    justify-content: space-between;
    padding: 0.95rem 1rem;
}

.inventory-md-modal .modal-header h2,
.inventory-md-modal .modal-header h3 {
    color: var(--inventory-md-text);
    font-size: 1.15rem;
    font-weight: 850;
    margin: 0;
}

.inventory-md-modal .modal-body {
    padding: 1rem;
}

.inventory-md-image-preview {
    align-items: center;
    background: rgba(15, 23, 42, 0.84);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1.5rem;
    position: fixed;
    z-index: 99999;
}

.inventory-md-image-preview-content {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    max-height: 90vh;
    max-width: 90vw;
    padding: 0.5rem;
    position: relative;
}

.inventory-md-image-preview-close {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--inventory-md-outline);
    border-radius: 999px;
    color: #0f172a;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.25rem;
    height: 32px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: -12px;
    top: -12px;
    width: 32px;
}

.inventory-md-image-preview img {
    border-radius: 6px;
    display: block;
    max-height: 86vh;
    max-width: 88vw;
    object-fit: contain;
}

.inventory-md-modal .modal-footer,
.inventory-md-modal .form-actions {
    align-items: center;
    border-top: 1px solid var(--inventory-md-outline);
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
    padding: 0.9rem 1rem;
}

.inventory-md-modal .close-btn,
.inventory-md-modal .close-modal {
    align-items: center;
    background: var(--inventory-md-surface);
    border: 1px solid var(--inventory-md-outline);
    border-radius: 6px;
    color: var(--inventory-md-text-muted);
    cursor: pointer;
    display: inline-flex;
    font-size: 1.2rem;
    height: 34px;
    justify-content: center;
    line-height: 1;
    width: 34px;
}

.inventory-md-modal .form-group,
#szallitas-list .form-group,
#targyi-eszkozok .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
}

.inventory-md-modal .row,
.swal2-popup.inventory-md-modal .row {
    display: grid !important;
    gap: 0.85rem !important;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin-bottom: 0 !important;
}

.swal2-popup.inventory-md-modal .modal-form {
    background: var(--inventory-md-surface);
    border: 0;
    box-shadow: none;
    padding: 0;
}

.inventory-md-modal .form-group label,
#szallitas-list .form-group label,
#targyi-eszkozok .form-group label {
    color: var(--inventory-md-text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.inventory-md-modal input:not([type="checkbox"]):not([type="radio"]),
.inventory-md-modal select,
.inventory-md-modal textarea,
#szallitas-list input:not([type="checkbox"]):not([type="radio"]),
#szallitas-list select,
#szallitas-list textarea,
#targyi-eszkozok input:not([type="checkbox"]):not([type="radio"]),
#targyi-eszkozok select,
#targyi-eszkozok textarea {
    border: 1px solid var(--inventory-md-outline);
    border-radius: 6px;
    color: var(--inventory-md-text);
    font: inherit;
    min-height: 40px;
    padding: 0.55rem 0.65rem;
    width: 100%;
}

#targyi-eszkozok .inventory-md-input-wrap input#targyiEszkozokSearch {
    height: 44px;
    padding: 0 0.85rem 0 2.35rem;
}

#targyi-eszkozok .inventory-md-input-wrap i {
    top: 50%;
    left: 0.85rem;
    pointer-events: none;
    transform: translateY(-50%);
}

.inventory-md-modal input:focus,
.inventory-md-modal select:focus,
.inventory-md-modal textarea:focus,
#szallitas-list input:focus,
#szallitas-list select:focus,
#szallitas-list textarea:focus,
#targyi-eszkozok input:focus,
#targyi-eszkozok select:focus,
#targyi-eszkozok textarea:focus {
    border-color: var(--inventory-md-primary);
    box-shadow: 0 0 0 3px rgba(27, 127, 90, 0.14);
    outline: none;
}

.inventory-md-searchable-select {
    position: relative;
}

.inventory-md-native-select-hidden {
    display: none !important;
}

.inventory-md-searchable-results {
    background: var(--inventory-md-surface);
    border: 1px solid var(--inventory-md-outline);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
    display: none;
    left: 0;
    max-height: 320px;
    overflow-y: auto;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 10020;
}

.inventory-md-searchable-option {
    background: var(--inventory-md-surface);
    border: 0;
    border-bottom: 1px solid var(--inventory-md-outline);
    color: var(--inventory-md-text);
    cursor: pointer;
    display: block;
    padding: 0.65rem 0.75rem;
    text-align: left;
    width: 100%;
}

.inventory-md-searchable-option:last-child {
    border-bottom: 0;
}

.inventory-md-searchable-option:hover,
.inventory-md-searchable-option:focus-visible {
    background: var(--inventory-md-surface-hover);
    outline: none;
}

.inventory-md-searchable-option span {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.25;
}

.inventory-md-searchable-option small {
    color: var(--inventory-md-text-muted);
    display: block;
    font-size: 0.74rem;
    font-weight: 650;
    line-height: 1.25;
    margin-top: 0.15rem;
}

.inventory-md-searchable-option.is-empty {
    color: var(--inventory-md-text-muted);
    cursor: default;
    font-weight: 700;
}

.inventory-md-modal .btn,
#inventoryList .btn,
#pendingPurchaseList .btn,
#reservedStockList .btn,
#bevetelez-list .btn,
#szallitas-list .btn,
#transfer-detail .btn,
#targyi-eszkozok .btn {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    font-weight: 800;
    gap: 0.45rem;
    min-height: 36px;
    padding: 0.45rem 0.75rem;
}

.inventory-md-modal .btn-primary,
#inventoryList .btn-primary,
#pendingPurchaseList .btn-primary,
#reservedStockList .btn-primary,
#bevetelez-list .btn-primary,
#szallitas-list .btn-primary,
#transfer-detail .btn-primary,
#targyi-eszkozok .btn-primary {
    background: var(--inventory-md-primary);
    border-color: var(--inventory-md-primary);
    color: var(--inventory-md-on-primary);
}

.inventory-md-modal .btn-secondary,
#inventoryList .btn-secondary,
#pendingPurchaseList .btn-secondary,
#reservedStockList .btn-secondary,
#bevetelez-list .btn-secondary,
#szallitas-list .btn-secondary,
#transfer-detail .btn-secondary,
#targyi-eszkozok .btn-secondary {
    background: var(--inventory-md-surface);
    border-color: var(--inventory-md-outline);
    color: var(--inventory-md-text);
}

.inventory-md-modal .btn-danger,
#inventoryList .btn-danger,
#pendingPurchaseList .btn-danger,
#reservedStockList .btn-danger,
#bevetelez-list .btn-danger,
#szallitas-list .btn-danger,
#transfer-detail .btn-danger,
#targyi-eszkozok .btn-danger {
    background: #fff1f2;
    border-color: #fecdd3;
    color: var(--inventory-md-red);
}

#bevetelez-list .tabs-header,
#szallitas-list .tabs-header {
    align-items: center;
    background: var(--inventory-md-surface-muted);
    border: 1px solid var(--inventory-md-outline);
    border-radius: 8px;
    display: flex;
    gap: 0.35rem;
    margin: 1rem 0;
    padding: 0.35rem;
}

#bevetelez-list .inventory-md-tabs,
#szallitas-list .inventory-md-tabs {
    margin-top: 1rem;
}

#bevetelez-list .tab-btn,
#szallitas-list .tab-btn {
    align-items: center;
    background: transparent;
    border: 0;
    border-bottom: 0 !important;
    border-radius: 6px;
    color: var(--inventory-md-text-muted);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto !important;
    font-weight: 800;
    gap: 0.45rem;
    margin-bottom: 0 !important;
    min-height: 38px;
    padding: 0 0.85rem;
    white-space: nowrap;
}

#bevetelez-list .tab-btn.active,
#szallitas-list .tab-btn.active {
    background: var(--inventory-md-surface);
    box-shadow: var(--inventory-md-shadow);
    color: var(--inventory-md-primary);
}

#bevetelez-list .tabs-content,
#szallitas-list .tabs-content {
    padding: 0 !important;
}

#bevetelez-list .tab-pane,
#szallitas-list .tab-pane {
    background: var(--inventory-md-surface);
    border: 1px solid var(--inventory-md-outline);
    border-radius: 8px;
    padding: 1rem;
}

#bevetelez-list .tab-pane {
    padding: 0.75rem;
}

#bevetelez-list .tab-pane:not(.active),
#szallitas-list .tab-pane:not(.active) {
    display: none;
}

#bevetelez-list .tab-pane.active,
#szallitas-list .tab-pane.active {
    display: block;
}

#bevetelez-list .inventory-md-tab-section {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

#bevetelez-list .inventory-md-tab-section-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

#bevetelez-list .inventory-md-tab-section-header h4 {
    color: var(--inventory-md-text);
    font-size: 1.05rem;
    font-weight: 850;
    letter-spacing: 0;
    margin: 0;
}

#bevetelez-list .inventory-md-tab-section-header p {
    color: var(--inventory-md-text-muted);
    font-size: 0.78rem;
    font-weight: 650;
    margin: 0.15rem 0 0;
}

#bevetelez-list .inventory-md-tab-total {
    align-items: center;
    background: var(--inventory-md-surface-muted);
    border: 1px solid var(--inventory-md-outline);
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 0.8rem;
    padding: 0.75rem 0.9rem;
}

#bevetelez-list .inventory-md-tab-total span {
    color: var(--inventory-md-text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

#bevetelez-list .inventory-md-tab-total strong {
    color: var(--inventory-md-text);
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
    font-weight: 850;
}

#bevetelez-list .inventory-md-table--bevetelez-items,
#bevetelez-list .inventory-md-table--bevetelez-costs {
    table-layout: fixed;
}

#bevetelez-list .inventory-md-table--bevetelez-items col:nth-child(1) { width: 21%; }
#bevetelez-list .inventory-md-table--bevetelez-items col:nth-child(2) { width: 9%; }
#bevetelez-list .inventory-md-table--bevetelez-items col:nth-child(3) { width: 9%; }
#bevetelez-list .inventory-md-table--bevetelez-items col:nth-child(4) { width: 5.5%; }
#bevetelez-list .inventory-md-table--bevetelez-items col:nth-child(5) { width: 8%; }
#bevetelez-list .inventory-md-table--bevetelez-items col:nth-child(6) { width: 5%; }
#bevetelez-list .inventory-md-table--bevetelez-items col:nth-child(7) { width: 6%; }
#bevetelez-list .inventory-md-table--bevetelez-items col:nth-child(8) { width: 8%; }
#bevetelez-list .inventory-md-table--bevetelez-items col:nth-child(9) { width: 9%; }
#bevetelez-list .inventory-md-table--bevetelez-items col:nth-child(10) { width: 7%; }
#bevetelez-list .inventory-md-table--bevetelez-items col:nth-child(11) { width: 6.75rem; }

#bevetelez-list .inventory-md-table--bevetelez-costs col:nth-child(1) { width: 24%; }
#bevetelez-list .inventory-md-table--bevetelez-costs col:nth-child(2) { width: 12%; }
#bevetelez-list .inventory-md-table--bevetelez-costs col:nth-child(3) { width: 6%; }
#bevetelez-list .inventory-md-table--bevetelez-costs col:nth-child(4) { width: 8%; }
#bevetelez-list .inventory-md-table--bevetelez-costs col:nth-child(5) { width: 12%; }
#bevetelez-list .inventory-md-table--bevetelez-costs col:nth-child(6) { width: 9%; }
#bevetelez-list .inventory-md-table--bevetelez-costs col:nth-child(7) { width: 18%; }
#bevetelez-list .inventory-md-table--bevetelez-costs col:nth-child(8) { width: 6.75rem; }

#bevetelez-list .inventory-md-table td.inventory-md-cell-actions {
    overflow: visible;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    white-space: nowrap;
}

#bevetelez-list .inventory-md-table td.inventory-md-cell-actions .inventory-md-icon-btn + .inventory-md-icon-btn {
    margin-left: 0.25rem;
}

#bevetelez-list .inventory-md-table--bevetelez-items .inventory-md-icon-btn,
#bevetelez-list .inventory-md-table--bevetelez-costs .inventory-md-icon-btn {
    height: 30px;
    width: 30px;
}

#bevetelez-list .inventory-md-link-badge,
#bevetelez-list .inventory-md-link-text {
    cursor: pointer;
}

#bevetelez-list .inventory-md-link-badge {
    gap: 0.35rem;
}

#bevetelez-list .inventory-md-link-text:hover {
    color: var(--inventory-md-primary);
    text-decoration: underline;
}

#bevetelez-list .documents-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#bevetelez-list .documents-upload-section {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

#bevetelez-list .upload-card,
#bevetelez-list .comment-card,
#bevetelez-list .documents-files-section,
#bevetelez-list .documents-comments-section,
#bevetelez-list .document-category-group {
    background: var(--inventory-md-surface);
    border: 1px solid var(--inventory-md-outline);
    border-radius: 8px;
    box-shadow: var(--inventory-md-shadow);
    padding: 1rem;
}

#bevetelez-list .upload-card h3,
#bevetelez-list .comment-card h3,
#bevetelez-list .documents-files-section h3,
#bevetelez-list .documents-comments-section h3 {
    color: var(--inventory-md-text);
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: 0;
    margin: 0 0 0.5rem;
}

#bevetelez-list .upload-card p,
#bevetelez-list .empty-state {
    color: var(--inventory-md-text-muted);
    font-size: 0.82rem;
    font-weight: 650;
    margin: 0.25rem 0 0;
}

#bevetelez-list .upload-icon,
#bevetelez-list .comment-icon {
    color: var(--inventory-md-primary);
    font-size: 1.35rem;
    line-height: 1;
    margin-bottom: 0.45rem;
}

#bevetelez-list .comment-card textarea {
    border: 1px solid var(--inventory-md-outline);
    border-radius: 6px;
    color: var(--inventory-md-text);
    font: inherit;
    margin: 0.5rem 0;
    min-height: 86px;
    padding: 0.65rem;
    resize: vertical;
    width: 100%;
}

#bevetelez-list .comment-card textarea:focus {
    border-color: var(--inventory-md-primary);
    box-shadow: 0 0 0 3px rgba(27, 127, 90, 0.14);
    outline: none;
}

#bevetelez-list .documents-grid,
#bevetelez-list .comments-list {
    display: grid;
    gap: 0.75rem;
}

#bevetelez-list .document-card {
    align-items: center;
    background: var(--inventory-md-surface-muted);
    border: 1px solid var(--inventory-md-outline);
    border-radius: 8px;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    padding: 0.7rem;
}

#bevetelez-list .document-preview,
#bevetelez-list .document-icon {
    align-items: center;
    background-color: #eef3f7;
    background-position: center;
    background-size: cover;
    border: 1px solid var(--inventory-md-outline);
    border-radius: 6px;
    display: flex;
    height: 58px;
    justify-content: center;
    width: 72px;
}

#bevetelez-list .document-info {
    min-width: 0;
}

#bevetelez-list .document-info h4 {
    color: var(--inventory-md-text);
    font-size: 0.9rem;
    font-weight: 850;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#bevetelez-list .document-description,
#bevetelez-list .document-meta {
    color: var(--inventory-md-text-muted);
    font-size: 0.75rem;
    font-weight: 650;
    margin: 0.2rem 0 0;
}

#bevetelez-list .document-actions {
    display: flex;
    gap: 0.35rem;
}

#bevetelez-list .category-title {
    align-items: center;
    display: flex;
    gap: 0.45rem;
    margin: 0 0 0.75rem;
}

#bevetelez-list .category-badge,
#bevetelez-list .category-count {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 850;
    min-height: 24px;
    padding: 0.18rem 0.55rem;
}

#bevetelez-list .category-badge {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #087443;
}

#bevetelez-list .category-count {
    background: var(--inventory-md-surface-muted);
    border: 1px solid var(--inventory-md-outline);
    color: var(--inventory-md-text-muted);
}

.inventory-md-modal .customer-table-container,
#inventoryList .customer-table-container,
#pendingPurchaseList .customer-table-container,
#reservedStockList .customer-table-container,
#bevetelez-list .customer-table-container,
#szallitas-list .customer-table-container,
#history-list .customer-table-container,
#transfer-detail .customer-table-container,
#transfer-list-container .customer-table-container,
#targyi-eszkozok .customer-table-container {
    background: var(--inventory-md-surface);
    border: 1px solid var(--inventory-md-outline);
    border-radius: 8px;
    box-shadow: var(--inventory-md-shadow);
    overflow-x: hidden !important;
    width: 100%;
}

.inventory-md-modal .customer-table,
#inventoryList .customer-table,
#pendingPurchaseList .customer-table,
#reservedStockList .customer-table,
#bevetelez-list .customer-table,
#szallitas-list .customer-table,
#history-list .customer-table,
#transfer-detail .customer-table,
#transfer-list-container .customer-table,
#targyi-eszkozok .customer-table {
    border-collapse: separate;
    border-spacing: 0;
    color: var(--inventory-md-text);
    font-size: 0.84rem;
    max-width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
    width: 100%;
}

.inventory-md-modal .customer-table th,
.inventory-md-modal .customer-table td,
#inventoryList .customer-table th,
#inventoryList .customer-table td,
#pendingPurchaseList .customer-table th,
#pendingPurchaseList .customer-table td,
#reservedStockList .customer-table th,
#reservedStockList .customer-table td,
#bevetelez-list .customer-table th,
#bevetelez-list .customer-table td,
#szallitas-list .customer-table th,
#szallitas-list .customer-table td,
#history-list .customer-table th,
#history-list .customer-table td,
#transfer-detail .customer-table th,
#transfer-detail .customer-table td,
#transfer-list-container .customer-table th,
#transfer-list-container .customer-table td,
#targyi-eszkozok .customer-table th,
#targyi-eszkozok .customer-table td {
    border-bottom: 1px solid var(--inventory-md-row-outline);
    border-right: 1px solid var(--inventory-md-column-outline);
    overflow: hidden;
    padding: 0.52rem 0.48rem !important;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.inventory-md-modal .customer-table th:last-child,
.inventory-md-modal .customer-table td:last-child,
#inventoryList .customer-table th:last-child,
#inventoryList .customer-table td:last-child,
#pendingPurchaseList .customer-table th:last-child,
#pendingPurchaseList .customer-table td:last-child,
#reservedStockList .customer-table th:last-child,
#reservedStockList .customer-table td:last-child,
#bevetelez-list .customer-table th:last-child,
#bevetelez-list .customer-table td:last-child,
#szallitas-list .customer-table th:last-child,
#szallitas-list .customer-table td:last-child,
#history-list .customer-table th:last-child,
#history-list .customer-table td:last-child,
#transfer-detail .customer-table th:last-child,
#transfer-detail .customer-table td:last-child,
#transfer-list-container .customer-table th:last-child,
#transfer-list-container .customer-table td:last-child,
#targyi-eszkozok .customer-table th:last-child,
#targyi-eszkozok .customer-table td:last-child {
    border-right: 0;
}

.inventory-md-modal .customer-table th,
#inventoryList .customer-table th,
#pendingPurchaseList .customer-table th,
#reservedStockList .customer-table th,
#bevetelez-list .customer-table th,
#szallitas-list .customer-table th,
#history-list .customer-table th,
#transfer-detail .customer-table th,
#transfer-list-container .customer-table th,
#targyi-eszkozok .customer-table th {
    background: #eef3f7;
    color: #475569;
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
    overflow-wrap: normal;
    white-space: normal;
    word-break: normal;
    hyphens: none;
}

.inventory-md-modal .customer-table td,
#inventoryList .customer-table td,
#pendingPurchaseList .customer-table td,
#reservedStockList .customer-table td,
#bevetelez-list .customer-table td,
#szallitas-list .customer-table td,
#history-list .customer-table td,
#transfer-detail .customer-table td,
#transfer-list-container .customer-table td,
#targyi-eszkozok .customer-table td {
    background: var(--inventory-md-surface);
}

#inventoryList .inventory-product-history-container {
    overflow-x: auto !important;
}

#inventoryList .inventory-product-history-table {
    min-width: 1180px !important;
    table-layout: fixed !important;
}

#inventoryList .inventory-product-history-col-date {
    width: 10rem;
}

#inventoryList .inventory-product-history-col-action {
    width: 10rem;
}

#inventoryList .inventory-product-history-col-quantity {
    width: 9rem;
}

#inventoryList .inventory-product-history-col-change {
    width: 7.5rem;
}

#inventoryList .inventory-product-history-col-source,
#inventoryList .inventory-product-history-col-supplier {
    width: 11rem;
}

#inventoryList .inventory-product-history-col-user {
    width: 10.5rem;
}

#inventoryList .inventory-product-history-col-notes {
    width: auto;
}

#inventoryList .inventory-product-history-table th:nth-child(1),
#inventoryList .inventory-product-history-table td:nth-child(1),
#inventoryList .inventory-product-history-table th:nth-child(3),
#inventoryList .inventory-product-history-table td:nth-child(3),
#inventoryList .inventory-product-history-table th:nth-child(4),
#inventoryList .inventory-product-history-table td:nth-child(4),
#inventoryList .inventory-product-history-table th:nth-child(5),
#inventoryList .inventory-product-history-table td:nth-child(5) {
    white-space: nowrap;
}

#inventoryList .inventory-product-history-table th:nth-child(1),
#inventoryList .inventory-product-history-table th:nth-child(2),
#inventoryList .inventory-product-history-table th:nth-child(3),
#inventoryList .inventory-product-history-table th:nth-child(4),
#inventoryList .inventory-product-history-table th:nth-child(5),
#inventoryList .inventory-product-history-table th:nth-child(6),
#inventoryList .inventory-product-history-table th:nth-child(7),
#inventoryList .inventory-product-history-table th:nth-child(8),
#inventoryList .inventory-product-history-table th:nth-child(9) {
    width: auto;
    min-width: 0;
}

.inventory-md-modal .card,
#reservedStockList .card,
#bevetelez-list .card,
#szallitas-list .card,
#transfer-detail .card {
    background: var(--inventory-md-surface);
    border: 1px solid var(--inventory-md-outline);
    border-radius: 8px;
    box-shadow: var(--inventory-md-shadow);
    padding: 1rem;
}

@media (max-width: 1180px) {
    .inventory-md-toolbar {
        grid-template-columns: minmax(240px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr);
    }

    .inventory-md-switch,
    .inventory-md-actions {
        justify-content: flex-start;
    }

    .inventory-md-actions {
        grid-column: span 2;
    }
}

@media (max-width: 980px) {
    .inventory-md-priority-secondary {
        display: none;
    }

    col.inventory-md-priority-secondary {
        visibility: collapse;
    }

    .inventory-md-mobile-meta {
        display: block;
        margin-top: 0.25rem;
    }

    .inventory-md-table th,
    .inventory-md-table td {
        padding: 0.48rem 0.38rem;
    }

    .inventory-md-table th {
        font-size: 0.62rem;
    }

    .inventory-md-label-full {
        display: none;
    }

    .inventory-md-label-short {
        display: inline;
    }

    #inventoryList .inventory-md-col-product,
    #inventoryList .inventory-md-table-all-warehouses .inventory-md-col-product {
        width: 40%;
    }

    #inventoryList .inventory-md-col-number,
    #inventoryList .inventory-md-table-all-warehouses .inventory-md-col-number {
        width: 8%;
    }

    #inventoryList .inventory-md-col-number-wide,
    #inventoryList .inventory-md-table-all-warehouses .inventory-md-col-number-wide {
        width: 10%;
    }

    #bevetelez-list .inventory-md-table--bevetelez-items col:nth-child(1) { width: 44%; }
    #bevetelez-list .inventory-md-table--bevetelez-items col:nth-child(4) { width: 10%; }
    #bevetelez-list .inventory-md-table--bevetelez-items col:nth-child(5) { width: 15%; }
    #bevetelez-list .inventory-md-table--bevetelez-items col:nth-child(9) { width: 17%; }
    #bevetelez-list .inventory-md-table--bevetelez-items col:nth-child(11) { width: 5.25rem; }

    #bevetelez-list .inventory-md-table--bevetelez-costs col:nth-child(1) { width: 42%; }
    #bevetelez-list .inventory-md-table--bevetelez-costs col:nth-child(2) { width: 20%; }
    #bevetelez-list .inventory-md-table--bevetelez-costs col:nth-child(5) { width: 26%; }
    #bevetelez-list .inventory-md-table--bevetelez-costs col:nth-child(8) { width: 5.25rem; }
}

@media (max-width: 720px) {
    .inventory-md-toolbar {
        grid-template-columns: 1fr;
        padding: 0.85rem;
    }

    .inventory-md-actions {
        grid-column: auto;
        justify-content: stretch;
    }

    .inventory-md-action {
        flex: 1 1 0;
        padding: 0 0.7rem;
    }

    .inventory-md-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .inventory-md-summary-value {
        text-align: left;
    }

    .inventory-md-warehouse-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }

    .inventory-md-table {
        font-size: 0.78rem;
    }

    .inventory-md-table th,
    .inventory-md-table td {
        padding: 0.44rem 0.34rem;
    }

    .inventory-md-table th {
        font-size: 0.6rem;
    }

    .inventory-md-product-meta {
        white-space: normal;
    }

    .inventory-md-badge {
        max-width: 100%;
        padding: 0.18rem 0.42rem;
    }

    .inventory-md-icon-btn {
        width: 30px;
        height: 30px;
    }

    .inventory-md-kpi-grid {
        grid-template-columns: 1fr;
    }

    .inventory-md-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    #bevetelez-list .tabs-header,
    #szallitas-list .tabs-header {
        align-items: stretch;
        overflow: visible;
    }

    #bevetelez-list .tab-btn,
    #szallitas-list .tab-btn {
        flex: 1 1 0 !important;
        justify-content: center;
        min-width: 0;
        padding: 0 0.55rem;
    }

    #bevetelez-list .inventory-md-tab-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    #bevetelez-list .inventory-md-tab-section-header .inventory-md-action {
        width: 100%;
    }

    #bevetelez-list .inventory-md-table--bevetelez-items,
    #bevetelez-list .inventory-md-table--bevetelez-costs {
        font-size: 0.74rem;
    }

    #bevetelez-list .inventory-md-table--bevetelez-items th,
    #bevetelez-list .inventory-md-table--bevetelez-items td,
    #bevetelez-list .inventory-md-table--bevetelez-costs th,
    #bevetelez-list .inventory-md-table--bevetelez-costs td {
        padding-left: 0.28rem;
        padding-right: 0.28rem;
    }

    #bevetelez-list .document-card {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    #bevetelez-list .document-preview,
    #bevetelez-list .document-icon {
        height: 48px;
        width: 54px;
    }

    #bevetelez-list .document-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .inventory-md-page-actions,
    .inventory-md-inline-toolbar,
    .inventory-md-filter-actions {
        width: 100%;
    }

    .inventory-md-inline-toolbar .inventory-md-field,
    .inventory-md-inline-toolbar .inventory-md-field--wide,
    .inventory-md-toolbar-auto .inventory-md-field--wide {
        grid-column: auto;
        min-width: 100%;
    }
}

.pending-planner-loading {
    text-align: center;
    color: #64748b;
    padding: 1.25rem 0;
}

.pending-planner-root {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pending-planner-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

.pending-planner-kpi {
    border-radius: 10px;
    padding: 0.85rem 1rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.pending-planner-kpi-week {
    background: linear-gradient(135deg, #0f766e 0%, #0f766e 35%, #115e59 100%);
}

.pending-planner-kpi-month {
    background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 100%);
}

.pending-planner-kpi-risk {
    background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
}

.pending-planner-kpi-label {
    font-size: 0.8rem;
    opacity: 0.95;
    margin-bottom: 0.25rem;
}

.pending-planner-kpi-qty {
    font-size: 1.2rem;
    font-weight: 700;
}

.pending-planner-kpi-value {
    font-size: 0.9rem;
    opacity: 0.95;
}

.pending-planner-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
}

.pending-planner-filter-info {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #1e293b;
    font-size: 0.9rem;
}

.pending-planner-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.9rem;
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.06);
}

.pending-planner-section-title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.7rem;
}

.pending-planner-bucket-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.55rem;
}

.pending-planner-month-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.pending-planner-bucket {
    border: 1px solid #dbeafe;
    background: #f8fbff;
    border-radius: 8px;
    padding: 0.6rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.pending-planner-bucket:hover {
    border-color: #38bdf8;
    background: #ecfeff;
}

.pending-planner-bucket.is-active {
    border-color: #0284c7;
    background: #dff6ff;
    transform: translateY(-1px);
}

.pending-planner-bucket-title {
    font-size: 0.75rem;
    color: #0f172a;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.pending-planner-bucket-qty {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.pending-planner-bucket-value {
    font-size: 0.8rem;
    color: #334155;
}

.pending-planner-alerts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0.75rem;
}

.pending-planner-no-date {
    border: 1px solid #fecaca;
    background: #fff5f5;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    display: grid;
    grid-template-columns: 1.4fr auto auto;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
    cursor: pointer;
}

.pending-planner-no-date.is-active {
    border-color: #ef4444;
    background: #fee2e2;
}

.pending-planner-no-date-title {
    font-weight: 700;
    color: #7f1d1d;
}

.pending-planner-no-date-metric {
    font-weight: 700;
    color: #991b1b;
}

.pending-planner-no-date-value {
    font-weight: 700;
    color: #7f1d1d;
}

.pending-planner-unpriced {
    border: 1px solid #fde68a;
    background: #fffbeb;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    display: grid;
    gap: 0.2rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.pending-planner-unpriced:hover {
    border-color: #f59e0b;
    background: #fef3c7;
}

.pending-planner-unpriced.is-active {
    border-color: #d97706;
    background: #fde68a;
}

.pending-planner-unpriced:focus-visible {
    outline: 2px solid #d97706;
    outline-offset: 2px;
}

.pending-planner-unpriced-title {
    font-weight: 700;
    color: #92400e;
}

.pending-planner-unpriced-metric {
    color: #78350f;
    font-weight: 700;
}

.pending-planner-unpriced-sub {
    color: #92400e;
    font-size: 0.82rem;
}

.pending-planner-table-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.pending-planner-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
}

.pending-planner-table {
    min-width: 0;
}

.pending-planner-row {
    cursor: pointer;
}

.pending-planner-row:hover {
    background: #f8fbff;
}

.pending-planner-product-name {
    font-weight: 700;
    color: #0f172a;
}

.pending-planner-product-sku {
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 0.1rem;
}

.pending-planner-source-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.76rem;
    font-weight: 700;
    margin: 0 0.14rem;
}

.pending-planner-source-badge.project {
    background: #e0f2fe;
    color: #075985;
}

.pending-planner-source-badge.sales {
    background: #dcfce7;
    color: #166534;
}

.pending-planner-risk-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.74rem;
    font-weight: 700;
}

.pending-planner-risk-badge.risk-urgent {
    background: #fee2e2;
    color: #991b1b;
}

.pending-planner-risk-badge.risk-soon {
    background: #dbeafe;
    color: #1d4ed8;
}

.pending-planner-risk-badge.risk-later {
    background: #e2e8f0;
    color: #334155;
}

.pending-planner-risk-badge.risk-missing {
    background: #fecaca;
    color: #7f1d1d;
}

.pending-planner-missing-date {
    color: #b91c1c;
    font-weight: 700;
}

.pending-planner-table-empty {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
    color: #334155;
}

.pending-planner-table-empty-sub {
    margin-top: 0.3rem;
    color: #64748b;
    font-size: 0.85rem;
}

.pending-planner-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.34);
    z-index: 1100;
}

.pending-planner-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(980px, 94vw);
    height: 100vh;
    background: #fff;
    z-index: 1110;
    display: flex;
    flex-direction: column;
    box-shadow: -6px 0 24px rgba(15, 23, 42, 0.24);
}

.pending-planner-drawer-header {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.7rem;
}

.pending-planner-drawer-title {
    font-weight: 800;
    color: #0f172a;
    font-size: 1.05rem;
}

.pending-planner-drawer-sub {
    color: #64748b;
    margin-top: 0.18rem;
}

.pending-planner-drawer-metrics {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.pending-planner-drawer-metric-label {
    color: #64748b;
    font-size: 0.82rem;
    margin-bottom: 0.2rem;
}

.pending-planner-drawer-metric-value {
    color: #0f172a;
    font-weight: 800;
}

.pending-planner-drawer-table-wrap {
    padding: 0.9rem 1rem 1rem;
    overflow: auto;
    flex: 1;
}

.pending-planner-detail-table {
    min-width: 0;
}

.pending-planner-detail-row-clickable {
    cursor: pointer;
}

.pending-planner-detail-row-clickable:hover td {
    background: #f8fafc;
}

.pending-planner-detail-row-clickable:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: -2px;
}

.pending-planner-source-link {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 600;
}

.pending-planner-source-link:hover {
    text-decoration: underline;
}

@media (max-width: 1400px) {
    .pending-planner-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pending-planner-bucket-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .pending-planner-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pending-planner-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .pending-planner-bucket-strip,
    .pending-planner-month-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pending-planner-alerts {
        grid-template-columns: 1fr;
    }

    .pending-planner-no-date {
        grid-template-columns: 1fr;
    }

    .pending-planner-drawer {
        width: 100vw;
    }
}
