
/* Supplier order partial receipt dialog */
html body .vario-supplier-receipt-table-wrap,
html[data-vario-theme] body .vario-supplier-receipt-table-wrap {
    max-height: min(390px, calc(100vh - 330px)) !important;
    overflow: auto !important;
    border: 1px solid #cbd8e8 !important;
    border-radius: 5px !important;
    background: #ffffff !important;
}

html body .vario-supplier-receipt-table,
html[data-vario-theme] body .vario-supplier-receipt-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: fixed !important;
}

html body .vario-supplier-receipt-table thead th,
html[data-vario-theme] body .vario-supplier-receipt-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
    height: 28px !important;
    padding: 4px 8px !important;
    border-bottom: 1px solid #b9c9dc !important;
    background: #edf3fa !important;
    color: #082d62 !important;
    font: 800 10px/14px Inter, "Segoe UI", Arial, sans-serif !important;
}

html body .vario-supplier-receipt-table tbody td,
html[data-vario-theme] body .vario-supplier-receipt-table tbody td {
    height: 32px !important;
    padding: 3px 8px !important;
    border-bottom: 1px solid #e0e7f0 !important;
    color: #10294f !important;
    font: 700 10px/14px Inter, "Segoe UI", Arial, sans-serif !important;
    vertical-align: middle !important;
}

html body .vario-supplier-receipt-table th:nth-child(1),
html body .vario-supplier-receipt-table th:nth-child(3),
html body .vario-supplier-receipt-table th:nth-child(4),
html body .vario-supplier-receipt-table th:nth-child(5),
html body .vario-supplier-receipt-table th:nth-child(6),
html[data-vario-theme] body .vario-supplier-receipt-table th:nth-child(1),
html[data-vario-theme] body .vario-supplier-receipt-table th:nth-child(3),
html[data-vario-theme] body .vario-supplier-receipt-table th:nth-child(4),
html[data-vario-theme] body .vario-supplier-receipt-table th:nth-child(5),
html[data-vario-theme] body .vario-supplier-receipt-table th:nth-child(6) {
    width: 128px !important;
}

html body .vario-supplier-receipt-table input,
html[data-vario-theme] body .vario-supplier-receipt-table input {
    min-height: 24px !important;
    height: 24px !important;
    padding: 2px 6px !important;
    color: #08224f !important;
    font: 800 10px/14px Inter, "Segoe UI", Arial, sans-serif !important;
}

html body .modal-dialog.vario-erp-modal-dialog.vario-supplier-receipt-dialog,
html[data-vario-theme] body .modal-dialog.vario-erp-modal-dialog.vario-supplier-receipt-dialog {
    width: min(920px, calc(100vw - 32px)) !important;
    max-width: 920px !important;
    height: auto !important;
    max-height: calc(100vh - 40px) !important;
    margin: 20px auto !important;
}

html body .vario-supplier-receipt-dialog>.modal-content.vario-erp-modal-content,
html[data-vario-theme] body .vario-supplier-receipt-dialog>.modal-content.vario-erp-modal-content {
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 40px) !important;
}

html body .vario-supplier-receipt-dialog .vario-erp-modal-body,
html[data-vario-theme] body .vario-supplier-receipt-dialog .vario-erp-modal-body {
    flex: 0 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 154px) !important;
    padding: 10px !important;
    overflow: hidden !important;
}

html body .vario-supplier-receipt-dialog .alert-info,
html[data-vario-theme] body .vario-supplier-receipt-dialog .alert-info {
    min-height: 34px !important;
    padding: 7px 10px !important;
    border: 1px solid #bed0e6 !important;
    border-radius: 5px !important;
    background: #eef5fc !important;
    color: #17365f !important;
    font: 700 11px/16px Inter, "Segoe UI", Arial, sans-serif !important;
}

html body .vario-purchase-receipt-quantity-dialog,
html[data-vario-theme] body .vario-purchase-receipt-quantity-dialog {
    width: min(1080px, calc(100vw - 32px)) !important;
    max-width: 1080px !important;
}

html body .vario-purchase-receipt-create-toolbar,
html[data-vario-theme] body .vario-purchase-receipt-create-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    margin-bottom: 8px !important;
}

html body .vario-purchase-receipt-create-toolbar>span,
html[data-vario-theme] body .vario-purchase-receipt-create-toolbar>span {
    margin-right: auto !important;
    color: #405773 !important;
    font: 800 10.5px/15px Inter, "Segoe UI", Arial, sans-serif !important;
}

html body .vario-purchase-receipt-quantity-dialog .vario-supplier-receipt-table th:nth-child(1),
html[data-vario-theme] body .vario-purchase-receipt-quantity-dialog .vario-supplier-receipt-table th:nth-child(1) {
    width: 64px !important;
    text-align: center !important;
}

html body .vario-purchase-receipt-quantity-dialog .vario-supplier-receipt-table th:nth-child(2),
html[data-vario-theme] body .vario-purchase-receipt-quantity-dialog .vario-supplier-receipt-table th:nth-child(2) {
    width: 52px !important;
}

html body .vario-purchase-receipt-quantity-dialog .vario-supplier-receipt-table th:nth-child(3),
html[data-vario-theme] body .vario-purchase-receipt-quantity-dialog .vario-supplier-receipt-table th:nth-child(3) {
    width: 138px !important;
}

html body .vario-purchase-receipt-quantity-dialog .vario-supplier-receipt-table th:nth-child(4),
html[data-vario-theme] body .vario-purchase-receipt-quantity-dialog .vario-supplier-receipt-table th:nth-child(4) {
    width: auto !important;
}

html body .vario-purchase-receipt-quantity-dialog .vario-supplier-receipt-table th:nth-child(5),
html body .vario-purchase-receipt-quantity-dialog .vario-supplier-receipt-table th:nth-child(6),
html body .vario-purchase-receipt-quantity-dialog .vario-supplier-receipt-table th:nth-child(7),
html body .vario-purchase-receipt-quantity-dialog .vario-supplier-receipt-table th:nth-child(8),
html[data-vario-theme] body .vario-purchase-receipt-quantity-dialog .vario-supplier-receipt-table th:nth-child(5),
html[data-vario-theme] body .vario-purchase-receipt-quantity-dialog .vario-supplier-receipt-table th:nth-child(6),
html[data-vario-theme] body .vario-purchase-receipt-quantity-dialog .vario-supplier-receipt-table th:nth-child(7),
html[data-vario-theme] body .vario-purchase-receipt-quantity-dialog .vario-supplier-receipt-table th:nth-child(8) {
    width: 132px !important;
}

@media (max-width: 720px) {
    html body .vario-purchase-receipt-create-toolbar,
    html[data-vario-theme] body .vario-purchase-receipt-create-toolbar {
        align-items: stretch !important;
        flex-wrap: wrap !important;
    }

    html body .vario-purchase-receipt-create-toolbar>span,
    html[data-vario-theme] body .vario-purchase-receipt-create-toolbar>span {
        flex: 0 0 100% !important;
    }
}

html body .vario-erp-document-details-modal .vario-purchase-price-impact-grid,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-purchase-price-impact-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

html body .vario-erp-document-details-modal .vario-purchase-price-impact-grid>div,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-purchase-price-impact-grid>div {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 8px 10px !important;
    border: 1px solid #d5e0ef !important;
    border-left-width: 4px !important;
    border-radius: 6px !important;
    background: #f8fafc !important;
}

html body .vario-erp-document-details-modal .vario-purchase-price-impact-grid>.inventory,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-purchase-price-impact-grid>.inventory {
    border-left-color: #1263f1 !important;
}

html body .vario-erp-document-details-modal .vario-purchase-price-impact-grid>.issued,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-purchase-price-impact-grid>.issued {
    border-left-color: #d97706 !important;
}

html body .vario-erp-document-details-modal .vario-purchase-price-impact-grid>.total,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-purchase-price-impact-grid>.total {
    border-color: #9db8d7 !important;
    border-left-color: #134f8c !important;
    background: #eef5fc !important;
}

html body .vario-erp-document-details-modal .vario-purchase-price-impact-grid span,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-purchase-price-impact-grid span {
    color: #53657d !important;
    font: 800 10.5px/14px Inter, "Segoe UI", Arial, sans-serif !important;
}

html body .vario-erp-document-details-modal .vario-purchase-price-impact-grid strong,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-purchase-price-impact-grid strong {
    flex: 0 0 auto !important;
    margin-left: 12px !important;
    color: #08224f !important;
    font: 900 13px/17px Inter, "Segoe UI", Arial, sans-serif !important;
}

html body .vario-erp-document-details-modal .vario-purchase-price-impact-pending,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-purchase-price-impact-pending {
    padding: 9px 10px !important;
    border: 1px dashed #b9c9dd !important;
    border-radius: 6px !important;
    background: #f8fafc !important;
    color: #53657d !important;
    font: 700 11px/16px Inter, "Segoe UI", Arial, sans-serif !important;
}

@media (max-width: 900px) {

    html body .vario-erp-document-details-modal .vario-purchase-price-impact-grid,
    html[data-vario-theme] body .vario-erp-document-details-modal .vario-purchase-price-impact-grid {
        grid-template-columns: 1fr !important;
    }
}

html body .vario-purchase-receipt-progress,
html[data-vario-theme] body .vario-purchase-receipt-progress {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    max-width: 100% !important;
    white-space: nowrap !important;
}

html body .vario-purchase-receipt-progress > span:last-child,
html[data-vario-theme] body .vario-purchase-receipt-progress > span:last-child {
    color: #526783 !important;
    font: 800 10px/14px Inter, "Segoe UI", Arial, sans-serif !important;
}

html body .vario-erp-document-details-modal .vario-purchase-invoice-receipt-summary,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-purchase-invoice-receipt-summary {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 7px !important;
    border-bottom: 1px solid #d5e0ef !important;
    background: #f5f8fc !important;
}

html body .vario-erp-document-details-modal .vario-purchase-invoice-receipt-summary > div,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-purchase-invoice-receipt-summary > div {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-width: 0 !important;
    min-height: 30px !important;
    padding: 4px 8px !important;
    border: 1px solid #d3deeb !important;
    border-radius: 5px !important;
    background: #fff !important;
}

html body .vario-erp-document-details-modal .vario-purchase-invoice-receipt-summary > div > span:first-child,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-purchase-invoice-receipt-summary > div > span:first-child {
    overflow: hidden !important;
    color: #586d88 !important;
    font: 800 10px/14px Inter, "Segoe UI", Arial, sans-serif !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body .vario-erp-document-details-modal .vario-purchase-invoice-receipt-summary strong,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-purchase-invoice-receipt-summary strong {
    flex: 0 0 auto !important;
    color: #092654 !important;
    font: 900 11px/15px Inter, "Segoe UI", Arial, sans-serif !important;
}

html body .vario-erp-document-details-modal .vario-purchase-price-difference-notice,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-purchase-price-difference-notice {
    display: grid;
    gap: 6px;
    min-height: 28px;
    padding: 5px 8px;
    border: 1px solid var(--vario-status-warning-border);
    border-radius: 6px;
    background: var(--vario-status-warning-bg);
    color: var(--vario-status-warning-text);
    font-size: 11px;
    line-height: 16px;
}

html body .vario-erp-document-details-modal .vario-purchase-price-difference-notice-header,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-purchase-price-difference-notice-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
}

html body .vario-erp-document-details-modal .vario-purchase-price-difference-notice-header strong,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-purchase-price-difference-notice-header strong {
    color: inherit;
    font: 900 11px/16px Inter, "Segoe UI", Arial, sans-serif;
}

html body .vario-erp-document-details-modal .vario-purchase-price-difference-notice-header span,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-purchase-price-difference-notice-header span {
    color: inherit;
    font: 700 10px/14px Inter, "Segoe UI", Arial, sans-serif;
}

html body .vario-erp-document-details-modal .vario-purchase-price-difference-grid-wrap,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-purchase-price-difference-grid-wrap {
    min-width: 0;
    overflow: auto;
    border: 1px solid var(--vario-border-subtle, #d4dfed);
    border-radius: 4px;
    background: var(--vario-surface, #fff);
}

html body .vario-erp-document-details-modal .vario-purchase-price-difference-grid,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-purchase-price-difference-grid {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    color: var(--vario-text-primary, #092b53);
    font: 700 10px/14px Inter, "Segoe UI", Arial, sans-serif;
}

html body .vario-erp-document-details-modal .vario-purchase-price-difference-grid th,
html body .vario-erp-document-details-modal .vario-purchase-price-difference-grid td,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-purchase-price-difference-grid th,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-purchase-price-difference-grid td {
    padding: 3px 6px;
    border-bottom: 1px solid var(--vario-border-subtle, #d4dfed);
    vertical-align: middle;
}

html body .vario-erp-document-details-modal .vario-purchase-price-difference-grid tr:last-child td,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-purchase-price-difference-grid tr:last-child td {
    border-bottom: 0;
}

html body .vario-erp-document-details-modal .vario-purchase-price-difference-grid th,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-purchase-price-difference-grid th {
    background: var(--vario-surface-muted, #f7f9fc);
    color: var(--vario-text-secondary, #58708d);
    font-weight: 900;
    white-space: nowrap;
}

html body .vario-erp-document-details-modal .vario-purchase-price-difference-notice.compact,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-purchase-price-difference-notice.compact {
    margin: 0 0 6px;
}

html body .vario-erp-document-details-modal .vario-purchase-price-difference-notice.success,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-purchase-price-difference-notice.success {
    border-color: var(--vario-status-success-border);
    background: var(--vario-status-success-bg);
    color: var(--vario-status-success-text);
}

@media (max-width: 760px) {
    html body .vario-erp-document-details-modal .vario-purchase-invoice-receipt-summary,
    html[data-vario-theme] body .vario-erp-document-details-modal .vario-purchase-invoice-receipt-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

html body .vario-erp-document-details-modal .vario-document-lines-edit tbody tr.vario-purchase-correction-before-row td,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-document-lines-edit tbody tr.vario-purchase-correction-before-row td {
    border-bottom-color: #d7e0eb !important;
    background: #f5f7fa !important;
    color: #50647e !important;
}

html body .vario-erp-document-details-modal .vario-document-lines-edit tbody tr.vario-purchase-correction-after-row td,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-document-lines-edit tbody tr.vario-purchase-correction-after-row td {
    border-top: 1px solid #b9c9dc !important;
    background: #ffffff !important;
}

html body .vario-erp-document-details-modal .vario-purchase-correction-row-label,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-purchase-correction-row-label {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 17px !important;
    margin-right: 6px !important;
    padding: 1px 6px !important;
    border: 1px solid #c7d3e2 !important;
    border-radius: 5px !important;
    background: #e9eef5 !important;
    color: #435873 !important;
    font: 800 9.5px/13px Inter, "Segoe UI", Arial, sans-serif !important;
    white-space: nowrap !important;
}

html body .vario-erp-document-details-modal .vario-purchase-correction-row-label.after,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-purchase-correction-row-label.after {
    border-color: #9fd2b5 !important;
    background: #e9f8ef !important;
    color: #116b3b !important;
}

html body .vario-erp-document-details-modal .vario-purchase-correction-changed,
html[data-vario-theme] body .vario-erp-document-details-modal .vario-purchase-correction-changed {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    min-height: 19px !important;
    padding: 1px 6px !important;
    border: 1px solid #97d3af !important;
    border-radius: 5px !important;
    background: #e7f8ed !important;
    color: #087238 !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}
