.page-row {
    margin-top: 10px;
    margin-bottom: 10px;
}

.cursor-pointer {
    cursor: pointer;
}

.add-new-material {
    display: none;
}

.materials-wrapper .material-item:last-child .add-new-material{
    display: block;
}

.materials-parent {
    margin-top: 40px;
}

.table thead,
.page-item.active .page-link,
.table tfoot {
    background-color: #4e73df !important;
    color: white;
}

.select2,
.select2 .selection,
.select2 .select2-selection,
.select2 .select2-selection__arrow,
.select2 .select2-selection__rendered {
    width: 100%;
    max-width: 100%;
    height: 48px !important;
}

.select2 .select2-selection {
    border-radius: .5rem !important;
}

.select2 .select2-selection__rendered {
    align-items: center !important;
    display: flex !important;
    padding: 0.625rem 1rem !important;
    line-height: 1.5 !important;
}

.select2-container .select2-selection--single {
    height: 48px !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    line-height: 48px !important;
}

.select2-container--default .select2-selection--multiple {
    padding: 0.375rem 1rem !important;
    min-height: 48px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 0 !important;
}

label {
    margin-bottom: 0;
}
#newSaleForm .add-to-list {
    display: none;
}
#newSaleForm .delete-from-list {
    display: block;
}
#newSaleForm > :nth-last-child(3) .add-to-list {
    display: block !important;
}
#newSaleForm > :nth-last-child(3) .delete-from-list {
    display: none !important;
}
.navbar-nav.toggled .sidebar-heading,
.navbar-nav#accordionSidebar .sidebar-heading {
    display: none;
}
.navbar-nav.toggled .sidebar-divider,
.navbar-nav#accordionSidebar .sidebar-divider {
    margin: 0;
}
.navbar-nav.toggled #sidebarToggle,
.navbar-nav#accordionSidebar #sidebarToggle {
    margin-top: 10px;
}
/*#accordionSidebar {*/
/*    width: 0;*/
/*}*/
.select2-container--default .select2-selection--single {
    border-color: rgb(209 213 219 / var(--tw-border-opacity, 1)) !important;
    color: rgb(209 213 219 / var(--tw-border-opacity, 1)) !important;
}
.select2-container--open .select2-dropdown {
    top: 100% !important;
    bottom: auto !important;
}

#invoiceModal iframe,
#invoiceModal object {
    width: 100%;
    height: 750px;
}

.date-filter {
    max-width: 250px;
    min-width: 245px;
}
.clear-date-filter {
    min-width: 120px;
}

.template-item img {
    height: 250px;
    object-fit: contain;
}

/* DataTables Pagination Button Spacing */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    margin: 0 2px !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 0.375rem !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #e2e8f0 !important;
    border: 1px solid #cbd5e0 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #4f46e5 !important;
    border: 1px solid #4f46e5 !important;
    color: white !important;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 0.5rem !important;
}

.template-item .template-selected {
    top: 10px;
    right: 10px;
}

.bg-login-image {
    min-height: 100px;
}

.min-w-170px {
    min-width: 170px !important;
}

@media screen and (max-width: 767px) {
    .bg-login-image {
        margin-top: 50px;
    }
    .dataTables_wrapper > .row {
        display: flex;
        flex-wrap: wrap;
    }

    .dataTables_wrapper > .row:first-child > div:last-child,
    .dataTables_wrapper > .row:last-child > div:last-child {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 0.5rem;
    }

    .dataTables_length,
    .dataTables_filter {
        text-align: left !important;
        margin-bottom: 10px;
    }

    .dataTables_paginate {
        margin-left: 0 !important;
    }
    .datatables-top-features,
    .datatables-bottom-features {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
}
@media screen and (max-width: 576px) {
    #app .date-filter__wrapper {
        justify-content: flex-start !important;
    }
}
