/* Keep invoice products table-repeater as a real table on smaller screens,
   with horizontal scroll instead of stacking each field on its own line. */
.invoice-products-table-repeater {
    overflow-x: auto;
    max-width: 100%;
}

.invoice-products-table-repeater > table {
    display: table !important;
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.invoice-products-table-repeater > table > thead {
    display: table-header-group !important;
    white-space: nowrap;
}

.invoice-products-table-repeater > table > tbody {
    display: table-row-group !important;
}

.invoice-products-table-repeater > table > tbody > tr {
    display: table-row !important;
    padding: 0 !important;
    gap: 0 !important;
}

.invoice-products-table-repeater > table > tbody > tr > td {
    display: table-cell !important;
    vertical-align: middle;
    padding: 0.25rem 0.35rem !important;
    white-space: nowrap;
}

.invoice-products-table-repeater > table > tbody > tr > td.fi-hidden {
    display: none !important;
}

.invoice-products-table-repeater .fi-fo-field {
    gap: 0 !important;
}

.invoice-products-table-repeater .fi-fo-field-label-content {
    display: none !important;
}

.invoice-products-table-repeater > table > thead > tr > th {
    white-space: nowrap;
}

/* Produkto pavadinimas / Sandėlis — keep readable width on narrow screens */
.invoice-products-table-repeater > table > thead > tr > th[style*="240px"] {
    min-width: 240px;
}

.invoice-products-table-repeater > table > thead > tr > th[style*="180px"] {
    min-width: 180px;
}

.invoice-products-table-repeater .fi-input-wrp,
.invoice-products-table-repeater .fi-select-input {
    min-width: 100%;
}

.invoice-products-table-repeater.fi-compact > table > tbody > tr > td {
    border-color: rgb(229 231 235);
}

.invoice-products-table-repeater.fi-compact > table > tbody > tr > td:not(:first-of-type) {
    border-inline-start-width: 1px;
    border-inline-start-style: solid;
}

.invoice-products-table-repeater.fi-compact .fi-input-wrp {
    background-color: transparent !important;
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000 !important;
}
