﻿
/*
    tabulator
*/
.tabulator {
    position: relative;
    border: 1px solid #dee2e6;
    font-size: .8em;
    padding: 0 !important;
}
/**
    Table in Accordion
*/
.accordion-body .tabulator {
    border-bottom: none;
}

.tabulator.show-bottom-border {
    border-bottom: 1px solid #dee2e6;
}

.tabulator .tabulator-header .tabulator-col {
    border-right: 1px solid #dee2e6;
}

.tabulator-cell .bi-search {
    color: var(--auth-blue);
}

.tabulator-cell .bi-pencil-square,
.tabulator-cell .bi-box-arrow-up-left {
    color: var(--auth-logo-orange)
}

.tabulator-cell .bi-chat-square-text-fill {
    color: var(--auth-blue)
}
/*
    components drop
*/
.tabulator-cell .bi-file-minus-fill {
    color: var(--auth-red);
}

.tabulator-cell .bi-file-plus-fill {
    color: var(--auth-blue);
}

.tabulator .tabulator-header .tabulator-col {
    background-color: #dee2e6;
    height: 64px !important;
    vertical-align: top;
}

.tabulator-row > .subItem:not(.ignore-style).tabulator {
    padding: 0 !important;
}

.subItem {
    font-size: 13px;
}

.subItem:not(.ignore-style).tabulator .tabulator-header .tabulator-col {
    background-color: #fff;
    border-color: #fff;
    height: 38px !important;
    vertical-align: top;
}

.no-header-filters.tabulator .tabulator-header .tabulator-header-contents .tabulator-headers,
.subItem.tabulator .tabulator-header .tabulator-header-contents .tabulator-headers {
    height: 38px !important;
}

.subItem:not(.ignore-style).tabulator .tabulator-row {
    background-color: #fff;
}

.subItem.tabulator .tabulator-header .tabulator-col .tabulator-col-content {
    padding: 11px 12px;
}

.narrowColumns.tabulator .tabulator-header .tabulator-col .tabulator-col-content {
    padding: 11px 2px;
}

.tabulator .tabulator-header .tabulator-header-contents .tabulator-headers {
    height: 64px !important;
}

.noFilters.tabulator .tabulator-header .tabulator-header-contents .tabulator-headers {
    height: 38px !important;
}

.tabulator-row > .tabulator {
    display: none;
    padding: 0px 36px !important;
    background: #f5f5f5;
}

.tabulator-row .bi-caret-up-fill {
    color: var(--auth-blue);
}

.tabulator-row .bi-caret-down-fill {
    color: #68717a;
}

.tabulator-row.open > .tabulator {
    display: block;
}

.tabulator-row.open .tabulator-col-title {
    font-size: 13px;
}

.tabulator-cell .bi, .tabulator-cell i[class*="bi"],
.subItem .bi[role="button"] {
    font-size: 1.75em;
    line-height: 1;
}

.tabulator-cell button.button-cell .bi,
.tabulator-cell button.button-cell i[class*="bi"] {
    font-size: 1em;
    display: inline-block;
}

.tabulator-cell > svg {
    width: 100%;
    margin-top: 7px;
}

.tabulator-row .tabulator-cell {
    font-size: 13px;
    line-height: 1.5;
    padding: 12px 12px;
}

.inactive-row .tabulator-cell {
    color: var(--auth-gray-4);
    text-decoration: line-through;
    text-decoration-color: var(--auth-gray-1);
}

.narrowColumns .tabulator-row .tabulator-cell {
    font-size: 13px;
    line-height: 1.5;
    padding: 12px 2px;
}

.tabulator-row.editing .tabulator-editable::after,
.tabulator-edit-input {
    display: block;
    content: '';
    border: 1px solid #a5a5a5;
    position: absolute;
    bottom: 7px;
    /* width: 97%; */
    top: 5px;
    left: 4px;
    right: 12px;
    margin: auto;
    border-radius: .25rem;
}

.tabulator-row.editing .tabulator-editable.tabulator-editing::after {
    display: none;
}

.tabulator-row:not(.editing) .display-edit-only {
    display: none;
}

.tabulator-row.editing .tabulator-editable.tabulator-editing input,
.tabulator-row.edit-active .tabulator-editable.tabulator-editing input {
    border: 1px solid #a5a5a5;
}

.tabulator .tabulator-header .tabulator-col .tabulator-header-filter {
    text-align: left;
}

.tabulator .tabulator-header .tabulator-col .tabulator-header-filter input {
    font-size: 1.15em;
}

.tabulator-edit-list.tabulator-popup-container .tabulator-edit-list-item {
    font-size: .8em;
}

.tabulator .tabulator-header .tabulator-col .tabulator-header-filter input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.tabulator-row.editing .tabulator-cell {
    position: relative;
    padding: 15px 14px 0 5px;
}

.tabulator-row .tabulator-cell.tabulator-editable {
    padding: 12px 14px 8px 12px;
}

.tabulator-row.editing .tabulator-cell.tabulator-editing,
.tabulator-row .tabulator-cell.tabulator-editable.tabulator-editing {
    padding: 1px 16px 0 0;
    border: 0px solid transparent;
}

.tabulator-row input[type="search"]::-webkit-search-decoration, .tabulator-row input[type="search"]::-webkit-search-cancel-button, .tabulator-row input[type="search"]::-webkit-search-results-button, .tabulator-row input[type="search"]::-webkit-search-results-decoration {
    display: none;
}

.tabulator-row .tabulator-cell.tabulator-editing input {
    background-color: #fff !important;
    padding: 0 4px 0 9px !important;
    margin: 4px 0 4px 4px;
    height: 32px !important;
    border-radius: .25em;
}

.tabulator-row .tabulator-cell.tabulator-editable ~ .tabulator-cell:not(.tabulator-editable) {
    padding: 11px 11px 8px 10px;
}

/*.tabulator-row.editing .bi.bi-pencil-square:before {
    content: '\F271';
    color: var(--auth-green);
}*/

.vert-scroll .tabulator .tabulator-tableholder {
    overflow-y: auto;
    overflow-x: inherit;
}

@media screen and (min-width:800px) {
    .hide-x.tabulator .tabulator-tableholder, .hide-x .tabulator .tabulator-tableholder {
        overflow-x: hidden;
    }
}

@media screen and (min-width:1200px) { /* similar to hide-x but for larger grids */
    .no-horiz-scroll.tabulator .tabulator-tableholder, .no-horiz-scroll .tabulator .tabulator-tableholder {
        overflow-x: hidden;
    }
}

.tbl-full {
    width: 100%;
}

.tabulator .tabulator-tableholder::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    margin: 5px;
    /*background:var(--auth-gray-lt);*/
}

.tabulator .tabulator-footer.tabulator-footer-white,
.tabulator .tabulator-footer { /* set white color as default and no border */
    border: none;
    background-color: white;
    border-top: 1px solid #dee2e6;
}


.tabulator .tabulator-tableholder::-webkit-scrollbar-thumb {
    /*background:var(--auth-muted-blue);*/
    border-radius: 10px;
    width: 8px;
}

.tabulator .tabulator-tableholder::-webkit-scrollbar-thumb:hover {
    /*background:var(--auth-blue);*/
}


.tabulator .tabulator-tableholder::-webkit-scrollbar-corner {
    background-color: var(--auth-gray-lt);
}

.tabulator .tabulator-tableholder::-webkit-scrollbar-thumb {
    box-shadow: inset 0 0 10px 10px var(--auth-muted-blue);
    border: solid 2px transparent;
}

.tabulator .tabulator-tableholder::-webkit-scrollbar-track {
    box-shadow: inset 0 0 10px 10px var(--auth-gray-lt);
    border: solid 2px transparent;
}

.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row {
    background: white !important;
    border-top: 1px solid var(--auth-gray);
    border-bottom: 1px solid var(--auth-gray);
}


.tabulator .tabulator-header .tabulator-col.reverse .tabulator-header-filter input[type="checkbox"]:indeterminate,
.tabulator .tabulator-header .tabulator-col.regular .tabulator-header-filter input[type="checkbox"]:indeterminate {
    appearance: none;
    background: var(--auth-green);
    background-image: url(../img/icons/dash-wt.svg);
    width: 20px;
    height: 25px;
    /*accent-color: aqua;*/
}

.tabulator .tabulator-header .tabulator-col.reverse .tabulator-header-filter input[type="checkbox"],
.tabulator .tabulator-header .tabulator-col.regular .tabulator-header-filter input[type="checkbox"]:checked {
    appearance: none;
    /*accent-color: #fff;*/
    background: var(--auth-blue);
    background-image: url(../img/icons/check-wt.svg);
    width: 20px;
    height: 25px;
}

.tabulator .tabulator-header .tabulator-col.reverse .tabulator-header-filter input[type="checkbox"]:checked,
.tabulator .tabulator-header .tabulator-col.regular .tabulator-header-filter input[type="checkbox"] {
    appearance: none;
    /*accent-color: black;*/
    background: #fff;
    width: 20px;
    height: 25px;
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-content {
    padding: 4px 12px;
}

.tabulator .tabulator-header {
    background: #dee2e6;
}

.tabulator-row.tabulator-group {
    background: var(--add-gray) !important;
    cursor: default !important;
}

.tabulator-row.tabulator-group .tabulator-group-toggle {
    display: none !important;
}

.table-group-header,
.table-group-header span {
    font-size: 14px;
    color: white !important;
    font-weight: 600;
    margin-left: 0px !important;
}

.table-group-footer,
.table-group-footer span {
    font-size: 12px;
    color: #555 !important;
    font-weight: 700;
}

.group-header-container {
    background: var(--add-gray) !important;
}

.group-header-link {
    color: var(--auth-white) !important;
}

.group-header-link:hover {
    color: var(--auth-gray-lt) !important;
}

.required:after {
    content: "*";
    display: inline-block;
    margin-right: 10px;
    color: var(--auth-red);
    font-size: 1.25em;
    line-height: 1;
}

.field-validation-error {
    display: block;
}

div.modal .tabulator {
    margin: unset;
}

.contactPhoneTable.tabulator, .addressesTable.tabulator {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

button.edit-row {
    padding: 0;
}


.tabulator-row.tabulator-selected {
    background-color: inherit;
}

.tabulator-row.tabulator-row-even {
    background-color: var(--auth-lt-gray);
}


.tabulator-row.tabulator-row-even.tabulator-selected:not(.open),
.tabulator-row.tabulator-row-odd.tabulator-selected:not(.open) {
    background-color: var(--auth-selected);
}

.tabulator-row.tabulator-row-even.tabulator-selected:hover,
.tabulator-row.tabulator-row-odd.tabulator-selected:hover, .tabulator-row.tabulator-selectable:hover {
    background-color: var(--auth-hover) !important;
}


.subItem.tabulator .tabulator-header,
.subItem.tabulator .tabulator-row {
    border-top: 0px solid transparent;
    border-bottom: 0px solid transparent;
    color: inherit;
}

.subItem.tabulator .tabulator-header,
.subItem.tabulator .tabulator-tableholder {
    max-width: 100% !important;
}

.tabulator-cell a {
    display: inline-block;
    padding: 3px 2px;
}

.tabulator-cell span.badge {
    display: inline-block;
    min-width: 24px;
}

.tabulator-cell span.text-badge {
    display: inline-block;
    min-width: 24px;
    font-size: 1em;
    font-weight: normal;
    line-height: .5;
    margin-top: -5px;
}

@media (hover: hover) and (pointer: fine) { /* Hover state color-profile tabulator rows */
    .tabulator-row.tabulator-selectable:hover {
        background-color: #ced4da;
        cursor: default;
    }
}

.tabulator-cell.disabled {
    pointer-events: none;
}

.form-row button:disabled,
.inEdit .tabulator-row:not(.editing) {
    opacity: .5;
    pointer-events: none;
}

.inEdit .hide-in-edit {
    display: none;
}

.tabulator-cell.text-clip {
    text-overflow: clip;
}

/*table with white background*/
.simple-grid {
    position: relative;
    border: none;
    font-size: .8em;
    padding: 0 !important;
}

.simple-grid .tabulator-header {
    background: #fff;
    color: #000;
    border-top: none;
}

.simple-grid:not(.ignore-style).tabulator .tabulator-header .tabulator-col {
    background-color: #fff;
    border: none;
    height: 38px !important;
    vertical-align: top;
}

.simple-grid .tabulator-row {
    background-color: #fff;
    color: inherit;
}

.simple-grid .tabulator-footer {
    border: none;
    background-color: #fff;
}

/*table with gray background*/
.simple-gray-grid {
    position: relative;
    border: none;
    font-size: .8em;
    padding: 0 !important;
}

.simple-gray-grid .tabulator-header{
    background: var(--auth-lt-gray);
    color: #000;
    border-top: none;
}

.simple-gray-grid:not(.ignore-style).tabulator .tabulator-header .tabulator-col {
    background-color: var(--auth-lt-gray);
    border: none;
    height: 38px !important;
    vertical-align: top;
}

.simple-gray-grid .tabulator-row, 
.simple-gray-grid .tabulator-tableholder {
    background-color: var(--auth-lt-gray);
    color: inherit;
}

.simple-gray-grid .tabulator-footer {
    border: none;
    background-color: var(--auth-lt-gray);
}

.simple-gray-grid .tabulator-footer .tabulator-calcs-holder {
    background: var(--auth-lt-gray) !important;
    border-bottom: none !important;
}

.simple-gray-grid .tabulator-footer .tabulator-calcs-holder .tabulator-row {
    background: var(--auth-lt-gray) !important;
    border: none !important;
}

.simple-gray-grid .tabulator-footer .tabulator-cell {
    font-size: 1em;
}

.noHover .tabulator-row.tabulator-selectable.tabulator-row-odd:hover {
    background-color: #fff !important;
}

.noHover .tabulator-row.tabulator-selectable.tabulator-row-even:hover {
    background-color: var(--auth-lt-gray) !important;
}

.tabulator-header-title {
    font-weight: bold;
    padding: 5px;
    background-color: #dee2e6;
    font-size: .85rem;
}

.tabulator-cell.column-separator {
    position: relative;
}

.tabulator-cell.column-separator::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 12px;
    width: 2px;
    background-color: #dee2e6;
}

.tabulator .tabulator-cell.paid-checkbox-cell {
    padding: 0;
}

.tabulator-paid-checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.tabulator-paid-checkbox {
    margin: 0;
    position: static;
    float: none;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

    .tabulator-paid-checkbox:disabled {
        cursor: not-allowed;
        opacity: 0.5;
    }

.tabulator .tabulator-col[tabulator-field="Paid"] .tabulator-header-filter {
    display: flex;
    justify-content: center;
}