@media screen {
    :is(.content, .management-dialog-body) table {
        --table-header: var(--ma-group-blue-soft, #edf5fc);
        --table-line: var(--ma-group-line, #dce5ea);
        --table-stripe: var(--ma-group-gray, #f5f6f7);
        --table-hover: var(--ma-group-teal-soft, #e7f6f3);
        font-variant-numeric: tabular-nums;
    }

    :is(.content, .management-dialog-body) :is(.finance-table, .data-table, .enterprise-table, .statement-table-view, .table-panel table, .erp-accounts-list table) {
        display: table;
        width: 100%;
        table-layout: auto;
        border-collapse: collapse;
    }

    :is(.content, .management-dialog-body) table > thead { display: table-header-group; width: auto; }
    :is(.content, .management-dialog-body) table > tbody { display: table-row-group; width: auto; }
    :is(.content, .management-dialog-body) table > tfoot { display: table-footer-group; width: auto; }

    :is(.content, .management-dialog-body) table > :is(thead, tbody, tfoot) > tr > :is(th, td) {
        padding: 11px clamp(10px, 1.05vw, 16px);
        border-block: 0;
        border-block-end: 1px solid var(--table-line);
        vertical-align: middle;
        line-height: 1.55;
    }

    :is(.content, .management-dialog-body) table > thead > tr > th {
        background: var(--table-header);
        color: var(--ma-group-blue-text, #213b53);
        font-size: 13px;
        text-align: start;
        font-weight: 750;
        letter-spacing: normal;
        text-transform: none;
        white-space: nowrap;
    }

    :is(.content, .management-dialog-body) table > tbody > tr > :is(th, td) {
        font-size: 14px;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    :is(.content, .management-dialog-body) table > tbody > tr:nth-child(even) { background: var(--table-stripe); }
    :is(.content, .management-dialog-body) table > tbody > tr:is(:hover, :focus-within) { background: var(--table-hover); }
    :is(.content, .management-dialog-body) table > tbody > tr:last-child > :is(th, td) { border-block-end: 0; }

    :is(.content, .management-dialog-body) table :is(.num-col, .date-cell, .document-number, .erp-table-value, [data-table-value], time, .status-tag, .badge, .btn-soft, .btn-danger-soft, .primary-button) {
        white-space: nowrap;
        overflow-wrap: normal;
        word-break: normal;
    }

    :is(.content, .management-dialog-body) table :is(.date-cell, .document-number, [data-table-value], time) {
        direction: ltr;
        unicode-bidi: isolate;
    }

    :is(.content, .management-dialog-body) table :is(.num-col, [data-table-value="number"]:is(td, th)) { text-align: end; }

    :is(.content, .management-dialog-body) table :is(td, th)[data-table-value="reference"]:dir(rtl) { text-align: right; }
    :is(.content, .management-dialog-body) table :is(td, th)[data-table-value="number"]:dir(rtl) { text-align: left; }

    :is(.content, .management-dialog-body) :is(
        .erp-table-scroll,
        .table-responsive,
        .table-scroll,
        .table-wrapper,
        :not(.table-panel, .content, .management-dialog-body):has(> :is(.finance-table, .data-table, .statement-table-view, .erp-accounts-list table))
    ) {
        min-inline-size: 0;
        max-inline-size: 100%;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
    }

    :is(.content, .management-dialog-body) :is(.erp-table-scroll, .table-responsive, .table-scroll, .table-wrapper, .customer-table-scroll):focus-visible {
        outline: 2px solid var(--ma-group-teal-dark, #096964);
        outline-offset: -2px;
    }

    .content .enterprise-table .person :is(b, small) {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .content .customer-directory-table .customer-finance-cell { flex-wrap: wrap; }

    .content .vendor-bills-table .bill-reference { color: var(--ma-group-blue-dark, #254c6b); font-weight: 750; }
    .content .vendor-bills-table .bill-vendor { min-inline-size: 12ch; }
    .content .vendor-bills-table .bill-vendor strong { display: block; color: var(--ma-group-ink, #1c303f); }
    .content .vendor-bills-table .bill-vendor-reference {
        display: block;
        margin-block-start: 3px;
        color: var(--ma-group-muted, #526570);
        font-size: 12px;
    }

    .content .vendor-bills-table .bill-actions {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .content .vendor-bills-table .bill-actions > button {
        min-block-size: 36px;
        padding: 5px 10px;
        border-width: 1px;
        border-radius: 6px;
        font-size: 12px;
    }

    .content .vendor-bills-table .bill-actions .btn-danger-soft { min-inline-size: 36px; }
    .content .vendor-bills-table .bill-actions-column { text-align: end; }
}
