/* Desktop only: Delete button positioning */
@media (min-width: 641px) {
    .invoice-items-repeater .fi-fo-repeater-item {
        background: transparent;
        position: relative !important;
        align-items: center !important;
    }

    .invoice-items-repeater .fi-fo-repeater-item>div:first-child {
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
    }

    .invoice-items-repeater .fi-fo-repeater-item .fi-fo-grid {
        flex: 1 !important;
    }

    .invoice-items-repeater .fi-fo-repeater-item-actions {
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0.5rem !important;
        margin-left: auto !important;
        position: static !important;
        transform: none !important;
    }

    .invoice-items-repeater button {
        display: inline-flex !important;
        opacity: 1 !important;
        visibility: visible !important;

    }

    #invoice-item-delete-btn {
        float: right !important;
        position: absolute !important;
        right: 0 !important;
        margin-right: 50px !important;
        margin-top: 0px;
    }

    /* .invoice-items-repeater [data-action="delete"],
    .invoice-items-repeater button[title*="Delete"],
    .invoice-items-repeater [aria-label*="Delete"] {
        color: #ef4444 !important;
    }

    .invoice-items-repeater [data-action="delete"]:hover,
    .invoice-items-repeater button[title*="Delete"]:hover,
    .invoice-items-repeater [aria-label*="Delete"]:hover {
        color: #dc2626 !important;
    } */

    .invoice-items-table .fi-fo-repeater-item {
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        margin-bottom: 1rem;
    }

    .invoice-items-table .fi-fo-repeater-item-header {
        background-color: #1e293b !important;
        color: white !important;
        padding: 0.75rem 1rem;
        border-radius: 0.5rem 0.5rem 0 0;
    }

    .invoice-items-table .fi-fo-repeater-item-header * {
        color: white !important;
    }

    .fi-fo-repeater .fi-fo-repeater-item-content {
        padding: 0px;
    }

    .fi-fo-repeater-item-header {
        padding: 0px;
    }

    .invoice-items-table .fi-fo-repeater-grid>div[data-field-label] {
        background-color: #1e293b;
        color: white;
        font-weight: 500;
        padding: 0.75rem;
    }

    .invoice-items-repeater,
    .invoice-items-repeater .fi-fo-repeater,
    .invoice-items-repeater .fi-fo-repeater-container,
    .invoice-items-repeater .fi-section,
    .invoice-items-repeater .fi-section-content,
    .invoice-items-repeater .fi-section-content-ctn,
    .invoice-items-repeater .fi-fo-repeater-item,
    .invoice-items-repeater .fi-fo-repeater-item-content {
        border: none !important;
        border-top: none !important;
        padding-top: 0 !important;
        background-color: transparent !important;
        box-shadow: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .invoice-items-repeater [data-field-wrapper*="product_id"] .fi-fo-field-wrp-label {
        margin-bottom: 0.375rem !important;
    }

    .invoice-items-repeater [data-field-wrapper*="product_id"] {
        gap: 0.375rem !important;
    }

    .fi-fo-repeater-item-content {
        border-top-width: 0px;
    }
}