@font-face {
    font-family: 'Roboto-Regular';
    src: url('/fonts/Roboto-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto-Medium';
    src: url('/fonts/Roboto-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

.divTable {
    display: table;
    width: 100%;
}

.divTableRow {
    display: table-row;
}

.divTableHeading {
    background-color: #EEE;
    display: table-header-group;
}

.divTableCell, .divTableHead {
    border: 0px solid #999999;
    display: table-cell;
    vertical-align: top;
}

.divTableHeading {
    background-color: #EEE;
    display: table-header-group;
    font-weight: bold;
}

.divTableFoot {
    background-color: #EEE;
    display: table-footer-group;
    font-weight: bold;
}

.divTableBody {
    display: table-row-group;
}

.ast-grid-qta {
    min-width: 120px;
}

/*parte legata dialog calendario ajax section incluso nella griglia*/

.CalendarNoWR {
    background-color: #fff;
    border: 1px solid #646464;
    color: #000;
}

    .CalendarNoWR td {
        display: inline-block !important;
        padding-left: 0 !important;
        background-color: #fff;
        border-color: #fff;
        cursor: default;
        border-bottom: none;
    }

    .CalendarNoWR .ajax__calendar_container .ajax__calendar_invalid .ajax__calendar_day {
        background-color: #fff;
        border-color: #fff;
        color: #646464;
        cursor: default;
        text-decoration: line-through !important;
        border-bottom: none;
    }

    .CalendarNoWR .ajax__calendar_dayname {
        width: 20px;
        border-bottom: none;
    }

    .CalendarNoWR .ajax__calendar_day {
        border-bottom: none;
        width: 20px;
    }

:root {
    --ast-table-bg: #FFFFFF;
    --ast-table-text: #333333;
    --ast-table-text-muted: #555555;
    --ast-table-border: #E0E0E0;
    --ast-table-header-bg: #06060A;
    --ast-table-header-text: #FFFFFF;
    --ast-table-zebra: #F7F7F7;
    --ast-table-hover: #E6F7FD;
    --ast-table-radius: 0;
    --ast-table-header-border: rgba(255,255,255,.07);
    --font-name: Roboto-Regular;
    --font-name-medium: Roboto-Medium;
}

.ast-grid-table {
    width: 100%;
    margin-bottom: 0;
    background-color: var(--ast-table-bg);
    border: 1px solid var(--ast-table-border);
    border-radius: var(--ast-table-radius);
    border-collapse: collapse;
    border-spacing: 0;
    color: var(--ast-table-text);
    font-family: var(--font-name);
    font-size: 16px;
    font-weight: 400;
}

    .ast-grid-table > tbody > tr > th {
        /*padding: 1rem 1rem !important;*/
        background-color: var(--ast-table-header-bg);
        color: var(--ast-table-header-text) !important;
        border-right: 1px solid var(--ast-table-header-border);
        border-bottom: 1px solid var(--ast-table-border);
        font-family: var(--font-name);
        font-size: 16px;
        font-weight: 400;
        letter-spacing: .16em;
        line-height: 1.2;
        text-align: left;
        text-transform: uppercase;
        white-space: nowrap;
        border-radius: 0;
        height: 40px;
        align-content: center;
    }

        .ast-grid-table > tbody > tr > th:last-child {
            border-right: none;
        }

        .ast-grid-table > tbody > tr > th a,
        .ast-grid-table > tbody > tr > th a:visited,
        .ast-grid-table > tbody > tr > th a:hover,
        .ast-grid-table > tbody > tr > th a:focus {
            color: var(--ast-table-header-text) !important;
            text-decoration: none;
        }

    .ast-grid-table > tbody > tr > td:not(.pager):not(.GridPager) {
        padding: 0.5rem 0.5rem !important;
        color: var(--ast-table-text);
        border-right: 1px solid var(--ast-table-border);
        border-bottom: 1px solid var(--ast-table-border);
        background-color: transparent;
        vertical-align: middle;
        border-radius: 0;
    }

        .ast-grid-table > tbody > tr > td:not(.pager):not(.GridPager):last-child {
            border-right: none;
        }

@media screen and (min-width: 991px) {
    .ast-grid-table > tbody > tr:hover > td:not(.pager):not(.GridPager) {
        background-color: var(--ast-table-hover);
    }
}

@media screen and (max-width: 990px) {
    .ast-grid-table > tbody > tr:hover > td:not(.pager):not(.GridPager) {
        background-color: transparent;
    }
}

    .ast-grid-table th.num,
    .ast-grid-table td.num,
    .ast-grid-table th.numeric,
    .ast-grid-table td.numeric,
    .ast-grid-table th.text-end,
    .ast-grid-table td.text-end,
    .ast-grid-table th[align="right"],
    .ast-grid-table td[align="right"] {
        text-align: right;
        font-variant-numeric: tabular-nums;
    }

.header-uppercase {
    text-transform: uppercase;
}

/* Tables - No More Tables technique (991px is the bootstrap SM max-width) */

.OrderTotalFooter {
    display: none;
}

@media only screen and (max-width: 991px) {
    .OrderTotalFooter {
        display: block;
    }

    .OrderTotalGridFooter td {
        display: none !important;
    }

    .table.table-no-more th {
        display: none !important;
    }

    .pager td table tbody tr,
    .pager td,
    .pager tr td {
        display: flex !important;
        padding-left: 0% !important;
    }

    .table.table-no-more,
    .table.table-no-more thead,
    .table.table-no-more tbody,
    .table.table-no-more tr,
    .table.table-no-more th,
    .table.table-no-more td {
        display: block;
    }
        .table.table-no-more > tbody > tr:not(.pager):not(.GridPager):not(.header-uppercase):not(.OrderTotalGridFooter) {
            margin-bottom: 12px;
            border: 1px solid #D8D8D4;
            border-top: 3px solid var(--ast-table-header-bg);
        }


        .table.table-no-more thead tr {
            left: -9999px;
            position: absolute;
            top: -9999px;
        }

        .table.table-no-more th {
            display: none;
        }

        .table.table-no-more td {
            border: none;
            position: relative;
            padding-left: 50%;
            text-align: left;
            white-space: normal;
        }

            .table.table-no-more td:before {
                font-family: var(--font-name) !important;
                content: attr(data-title);
                position: relative;
                text-align: left;
                white-space: nowrap;
            }

        .table.table-no-more.table-bordered td {
            border-bottom: none;
            width: 100% !important;
            font-family: var(--font-name);
            color: #000000;
        }

        .table.table-no-more.table-condensed td:before {
            top: 5px;
        }

    html.dark .table.table-no-more tr,
    html.dark .table.table-no-more.table-bordered td {
        border-bottom-color: #262b33;
    }

    .dataTables_wrapper .dataTables_length {
        margin-bottom: 15px;
    }

        .dataTables_wrapper .dataTables_length label {
            float: none;
            width: 100%;
        }

    .dataTables_wrapper .dataTables_filter label {
        width: 100%;
    }

    .dataTables_wrapper .datatables-footer .dataTables_info {
        margin-bottom: 15px;
        text-align: center;
    }

    .dataTables_wrapper .datatables-footer .dataTables_paginate {
        float: none;
        text-align: center;
    }

        .dataTables_wrapper .datatables-footer .dataTables_paginate .pagination {
            display: inline-block;
        }

    .GridPager td {
        display: flex;
    }

    .ast-grid-table.table.table-no-more {
        border: 1px solid var(--ast-table-border);
        border-radius: var(--ast-table-radius);
        background-color: var(--ast-table-bg);
    }

        .ast-grid-table.table.table-no-more > tbody > tr:not(.pager):not(.GridPager) > td {
            position: relative;
            padding: 13px 16px 13px 50%;
            white-space: normal;
            width: 100% !important;
            border: none;
            border-bottom: 1px solid var(--ast-table-border);
            background-color: transparent;
            color: var(--ast-table-text);
            font-family: var(--font-name-medium);
            text-align: end;
            min-height: 56px;
        }

        /*.ast-grid-table.table.table-no-more > tbody > tr:not(.pager):not(.GridPager):hover > td:not(.pager):not(.GridPager) {
            background-color: var(--ast-table-hover);
        }*/

        .ast-grid-table.table.table-no-more > tbody > tr:not(.pager):not(.GridPager) > td:before {
            display: flex;
            flex-direction: column;
            content: attr(data-title);
            position: relative;
            text-align: left;
            white-space: nowrap;
            color: var(--ast-table-text-muted);
        }
}

.pager a,
.pager td table tbody tr td {
    display: inline-table !important;
    padding: 0px 10px;
    margin-right: 4px;
    border-radius: 3px;
    /*min-width: 10px;
    min-height: 10px;*/
    /*border: solid 1px #c0c0c0;*/
    /*background: #e9e9e9;*/
    /*box-shadow: inset 0px 1px 0px rgba(255,255,255, .8), 0px 1px 3px rgba(0,0,0, .1);*/
    font-size: .875em;
    font-weight: bold;
    text-decoration: none;
    color: #717171;
    text-shadow: 0px 1px 0px rgba(255,255,255, 1);
    align-self:center;
}

.pager a {
    /*background-color: #f5f5f5;*/
    color: #1C3865;
    min-width: 15px;
    max-width: 15px;
    padding: 8px;
    text-align: center;
    border-collapse: separate;
    font-family: var(--font-name);
    /*min-width:10px;
    min-height:10px;*/
    /*border: 1px solid #969696;*/
}

.pager span {
    display: inline-block !important;
    padding: 8px;
    border-collapse: separate;
    color: #ffffff;
    font-family: var(--font-name);
    background-color: #222222;
}

.pager input {
    color: #969696;
    padding: 8px;
    text-align: center;
    border-collapse: separate;
}

.ast-grid-qta {
    display: inline !important;
}
