.fi-topbar nav , .fi-sidebar header {
    height: 6rem;
}

/* Order listing: highlight rows where status is Delivered but payment is Unpaid */
/* Table layout: row is a <tr> */
.fi-ta-table tbody tr.order-row-unpaid-fulfilled,
.fi-ta tr.order-row-unpaid-fulfilled {
    background-color: #fee2e2 !important;
    border-left: 4px solid #dc2626 !important;
}

.dark .fi-ta-table tbody tr.order-row-unpaid-fulfilled,
.dark .fi-ta tr.order-row-unpaid-fulfilled {
    background-color: rgba(127, 29, 29, 0.4) !important;
    border-left: 4px solid #ef4444 !important;
}

/* Content grid layout: row is a div with fi-ta-record */
.fi-ta-record.order-row-unpaid-fulfilled {
    background-color: #fee2e2 !important;
    border-left: 4px solid #dc2626 !important;
}

.dark .fi-ta-record.order-row-unpaid-fulfilled {
    background-color: rgba(127, 29, 29, 0.4) !important;
    border-left-color: #ef4444 !important;
}

/* Product table repeater — compact rows like a real table */
.product-table-repeater .fi-fo-repeater-item {
    border: none !important;
    border-bottom: 1px solid rgba(156, 163, 175, 0.2) !important;
    border-radius: 0 !important;
    padding: 0.25rem 0.5rem !important;
    background: transparent !important;
    box-shadow: none !important;
}
.product-table-repeater .fi-fo-repeater-item:hover {
    background: rgba(156, 163, 175, 0.05) !important;
}
.dark .product-table-repeater .fi-fo-repeater-item:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}
.product-table-repeater .fi-fo-repeater-item .fi-fo-field-wrp {
    gap: 0 !important;
}
.product-table-repeater .fi-fo-repeater-item .fi-fo-placeholder p {
    font-size: 0.8125rem;
    line-height: 1.25rem;
    padding-top: 0.25rem;
}
.product-table-repeater .fi-fo-repeater-item .fi-input {
    font-size: 0.8125rem;
}
/* Price and Total columns — readable width (no truncation) */
.product-table-repeater .product-table-price-input {
    min-width: 5.5rem !important;
    box-sizing: content-box;
}
/* Header grid aligned with form grid (Product 3, Qty 1, Code 1, Unit 1, Max 1, Image 1, Price 2, Total 2) */
.product-table-header-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(5.5rem, 2fr) minmax(5.5rem, 2fr) !important;
}
/* Compress repeater item header (product name label row) */
.product-table-repeater .fi-fo-repeater-item > div:first-child {
    padding-top: 0.125rem !important;
    padding-bottom: 0.125rem !important;
    min-height: 0 !important;
}
.product-table-repeater .fi-fo-repeater-item [data-slot="repeater.itemHeader"] {
    padding: 0.125rem 0 !important;
}
