.invoice-draft-spacious-cell .fi-ta-text {
    padding-top: 20px;
    padding-bottom: 20px;
}

.fulfillment-milestones-preview table tbody td {
    padding-top: 16px;
    padding-bottom: 16px;
    line-height: 1.6;
}

@media (min-width: 1024px) {
    .sales-document-header > .fi-sc {
        align-items: stretch;
    }

    .sales-document-header > .fi-sc > div {
        height: 100%;
    }

    .sales-document-header > .fi-sc > div > .fi-sc-component,
    .sales-document-header > .fi-sc > div > .fi-sc-component > .fi-sc-section,
    .sales-document-header > .fi-sc > div > .fi-sc-component > .fi-sc-section > .fi-section {
        height: 100%;
    }
}

.assortment-preview {
    --preview-border-color: #e5e7eb;
}

.dark .assortment-preview {
    --preview-border-color: #3f3f46;
}

.assortment-preview-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.assortment-preview-heading {
    background-color: #d1d5db;
}

.assortment-preview-table thead {
    background-color: #e5e7eb;
}

.assortment-preview-notes {
    border-top: 1px solid var(--preview-border-color);
    transition: background-color 120ms ease;
}

.assortment-preview-notes:hover {
    background-color: rgb(128 128 128 / 13%);
}

.dark .assortment-preview-heading {
    background-color: #3f3f46;
}

.dark .assortment-preview-table thead {
    background-color: #27272a;
}

.dark .assortment-preview-notes:hover {
    background-color: rgb(255 255 255 / 9%);
}

.assortment-preview-table tbody tr {
    transition: background-color 120ms ease;
}

.assortment-preview-table tbody tr:nth-child(even) {
    background-color: rgb(128 128 128 / 6%);
}

.assortment-preview-table tbody tr:hover {
    background-color: rgb(128 128 128 / 13%);
}

.dark .assortment-preview-table tbody tr:nth-child(even) {
    background-color: rgb(255 255 255 / 4%);
}

.dark .assortment-preview-table tbody tr:hover {
    background-color: rgb(255 255 255 / 9%);
}

.document-compact-description .fi-ta-text-description {
    font-size: 12px;
    line-height: 1.5;
    font-weight: 400;
}

.document-compact-description .fi-ta-text {
    color: #09090b;
}

.dark .document-compact-description .fi-ta-text {
    color: #fff;
}


.fi-ta-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.fi-ta-table .fi-ta-header-cell,
.fi-ta-table .fi-ta-cell {
    width: auto;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.fi-ta-table .fi-ta-header-cell-sort-btn,
.fi-ta-table .fi-ta-text,
.fi-ta-table .fi-ta-text-item,
.fi-ta-table .fi-ta-text-description,
.fi-ta-table .fi-ta-placeholder {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.fi-ta-table .fi-ta-actions {
    flex-wrap: wrap;
    white-space: normal;
}

.assortments-table .fi-ta-table .fi-ta-actions,
.order-invoice-documents-table .fi-ta-table .fi-ta-actions {
    flex-wrap: nowrap;
    white-space: nowrap;
}

.orders-table .fi-ta-table .fi-ta-actions {
    display: grid;
    grid-template-columns: repeat(3, 32px);
    justify-content: end;
    justify-items: center;
    align-items: center;
    gap: 8px;
}

@media (min-width: 640px) {
    .fi-ta-table .fi-ta-actions-header-cell:last-child,
    .fi-ta-table td:last-child:has(> .fi-ta-actions) {
        width: 116px;
    }

    .orders-table .fi-ta-table .fi-ta-actions-header-cell:last-child,
    .orders-table .fi-ta-table td:last-child:has(> .fi-ta-actions) {
        width: 148px;
    }
}

.mast-variants-table .fi-ta-table .fi-ta-header-cell {
    padding-inline: 12px;
}

.mast-variants-table .fi-ta-table .fi-ta-cell {
    padding-inline: 0;
}

.orders-table .fi-ta-table {
    table-layout: auto;
}

.orders-table .fi-ta-table :is(
    .fi-ta-header-cell,
    .fi-ta-cell,
    .fi-ta-header-cell-sort-btn,
    .fi-ta-text,
    .fi-ta-text-item,
    .fi-ta-text-description,
    .fi-ta-placeholder
) {
    overflow-wrap: break-word;
}
