.po-items-table.fi-fo-table-repeater {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.po-items-table.fi-fo-table-repeater > table {
    display: table !important;
    width: 100%;
    min-width: 72rem;
    table-layout: fixed;
}

.po-items-table.fi-fo-table-repeater > table > thead {
    display: table-header-group !important;
}

.po-items-table.fi-fo-table-repeater > table > tbody {
    display: table-row-group !important;
}

.po-items-table.fi-fo-table-repeater > table > thead > tr,
.po-items-table.fi-fo-table-repeater > table > tbody > tr {
    display: table-row !important;
    padding: 0 !important;
}

.po-items-table.fi-fo-table-repeater > table > thead > tr > th {
    padding: 0.5rem 0.6rem;
    font-size: 0.75rem;
}

.po-items-table.fi-fo-table-repeater > table > tbody > tr > td {
    display: table-cell !important;
    padding: 0.35rem 0.4rem !important;
    vertical-align: middle;
}

.po-items-table.fi-fo-table-repeater .fi-fo-field,
.po-items-table.fi-fo-table-repeater .fi-in-entry {
    row-gap: 0 !important;
}

.po-items-table.fi-fo-table-repeater .fi-fo-field-label-content,
.po-items-table.fi-fo-table-repeater .fi-in-entry-label {
    display: none !important;
}

.po-items-table.fi-fo-table-repeater .fi-fo-table-repeater-actions {
    min-width: 2rem;
    justify-content: center;
    gap: 0.25rem;
}

.po-items-table.fi-fo-table-repeater > table > tbody > tr > td:last-child {
    vertical-align: top;
    padding-top: 1.85rem !important;
}

.po-items-table.fi-fo-table-repeater .fi-fo-table-repeater-add {
    width: 100%;
    justify-content: flex-start;
    padding-top: 0.25rem;
}

.po-items-table.fi-fo-table-repeater .po-item-grid .fi-fo-field-label-content {
    display: flex !important;
}

.po-items-table.fi-fo-table-repeater.po-main-items-table > table > thead {
    display: none !important;
}

.po-order-summary {
    margin-top: 1rem;
}

.po-order-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.quote-order-summary-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.invoice-order-summary-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.po-order-summary-item {
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.5rem;
    background: rgb(255 255 255);
}

.po-order-summary-item dt {
    color: rgb(107 114 128);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1rem;
}

.po-order-summary-item dd {
    margin-top: 0.25rem;
    color: rgb(17 24 39);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5rem;
    overflow-wrap: anywhere;
}

.po-order-summary-total {
    border-color: rgb(254 202 202);
    background: rgb(254 242 242);
}

.po-order-summary-total dt,
.po-order-summary-total dd {
    color: rgb(185 28 28);
}

.po-order-summary-total dd {
    font-size: 1.125rem;
    font-weight: 700;
}

.po-line-total-preview {
    background: rgb(254 242 242);
    box-shadow: 0 0 0 1px rgb(254 202 202);
}

.po-line-total-preview .fi-input,
.po-line-total-preview .fi-input-wrp-label {
    color: rgb(185 28 28);
    font-weight: 700;
}

.dark .po-order-summary-item {
    border-color: rgb(255 255 255 / 0.1);
    background: rgb(17 24 39);
}

.dark .po-order-summary-item dt {
    color: rgb(156 163 175);
}

.dark .po-order-summary-item dd {
    color: rgb(255 255 255);
}

.dark .po-order-summary-total {
    border-color: rgb(239 68 68 / 0.35);
    background: rgb(239 68 68 / 0.1);
}

.dark .po-order-summary-total dt,
.dark .po-order-summary-total dd {
    color: rgb(252 165 165);
}

.dark .po-line-total-preview {
    background: rgb(239 68 68 / 0.1);
    box-shadow: 0 0 0 1px rgb(239 68 68 / 0.35);
}

.dark .po-line-total-preview .fi-input,
.dark .po-line-total-preview .fi-input-wrp-label {
    color: rgb(252 165 165);
}

@media (max-width: 1100px) {
    .quote-order-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1300px) {
    .invoice-order-summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

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

@media (max-width: 520px) {
    .po-order-summary-grid {
        grid-template-columns: 1fr;
    }
}
