﻿.calculator-table-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
}

.calculator-table-scroll {
    --scrollbar-thumb: #a3a3a3;
    --scrollbar-thumb-hover: #737373;
    --scrollbar-track: #f3f4f6;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    padding-bottom: 0.5rem;
}

@supports selector(::-webkit-scrollbar) {
    .calculator-table-scroll {
        scrollbar-width: auto;
        scrollbar-color: auto;
    }

        .calculator-table-scroll::-webkit-scrollbar {
            height: 10px;
        }

        .calculator-table-scroll::-webkit-scrollbar-track {
            background: var(--scrollbar-track);
            border-radius: 999px;
        }

        .calculator-table-scroll::-webkit-scrollbar-thumb {
            background: var(--scrollbar-thumb);
            border: 2px solid var(--scrollbar-track);
            border-radius: 999px;
        }

            .calculator-table-scroll::-webkit-scrollbar-thumb:hover {
                background: var(--scrollbar-thumb-hover);
            }
}

@media (forced-colors: active) {
    .calculator-table-scroll {
        scrollbar-color: auto;
        scrollbar-width: auto;
    }
}

.calculator-table {
    width: 100%;
    min-width: 56rem;
    table-layout: fixed;
    margin-bottom: 0;
}

    .calculator-table .column-quantity {
        width: 7rem;
    }

    .calculator-table .column-description {
        width: auto;
    }

    .calculator-table .column-start {
        width: 15rem;
    }

    .calculator-table .column-end {
        width: 10rem;
    }

    .calculator-table col {
        width: 25%;
    }

    .calculator-table th,
    .calculator-table td {
        padding: 1rem;
        vertical-align: middle;
        overflow-wrap: break-word;
    }

        .calculator-table td:nth-child(3),
        .calculator-table td:nth-child(4) {
            white-space: nowrap;
        }

    .calculator-table fluent-text-input,
    .calculator-table fluent-date-picker {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

.calculator-table-scroll:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
