.active {
    background-color: #f3f3f4;
}

$fontcolor: #676a6c;

.content {
    width: 100%;
    display: flex;
    padding-right: 0px !important;

    .grid-container {
        overflow: auto;
    }

    .filter-panel {
        .crud-table {
            margin-bottom: 0px;
            width: 100%;
        }
    }

    .filter-panel {
        margin-bottom: 10px;
    }

    .toolbar-option {
        margin-left: 10px;
        margin-right: -10px;
    }
}

.grid-ibox-content {
    width: 100%;
}

.grid-ibox-content-options {
    width: calc(100% - 35px);
}

.btn-actions {
    .btn {
        font-size: 10px;
        white-space: nowrap;
    }
}

.spinner-container {
    height: 100%;
    width: 100%;
    padding-top: 50px;
}

.spinner-container mat-spinner {
    margin: -10px auto 0 auto;
}

th.mat-column-actions {
    width: 1px !important;
    padding-right: 0px !important;
}

td.mat-column-actions {
    padding-right: 20px !important;
    cursor: default !important;
}

.popover-btn {
    width: auto;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    padding: 2px 10px 2px 10px;
}

td {
    vertical-align: middle !important;
    color: $fontcolor;
    font-size: 12px;
    overflow: hidden;
    width: auto;
    text-overflow: ellipsis;
    white-space: nowrap;
}

th {
    vertical-align: middle !important;
}

tr.mat-header-row {
    height: 50px !important;
}

tr.mat-footer-row,
tr.mat-row:not(.inner-detail-row) {
    height: 40px;
}

.table-toolbar {
    right: 10px;
    top: 10px;

    button {
        font-size: 12px;
    }
}

.status-button-bar {
    button {
        font-size: 16px;
    }

    padding-top: 8px;
    padding-left: 15px;
}

.mat-raised-button {
    padding: 0px 10px;
}

.icon-centered-button span.mat-button-wrapper {
    display: flex;
}


.icon-centered-button mat-icon {
    font-size: 15px;
    padding-top: 2px;
}

.mat-sort-header-arrow {
    visibility: hidden;
}

.mat-sort-header-button {
    .mat-icon {
        padding-left: 10px;
        font-size: 12px;
        padding-top: 5px;
    }
}

@media (min-width: 576px) {
    .d-sm-block {
        display: table-cell !important;
    }
}

@media (max-width: 576px) {
    .mat-paginator-page-size-label {
        display: none !important;
    }
}

tr.inner-detail-row {
    height: 0;

    .mat-column-expandedDetail {
        padding: 0 10px;
    }
}

.inner-element-detail {
    overflow: hidden;
    display: flex;
}

tr.inner-detail-row {
    td {
        border-bottom: 1px solid #dee2e6;
        border-top: 0px;
    }
}

tr.inner-element-row.odd,
tr.inner-detail-row.odd {
    background-color: rgba(0, 0, 0, 0.05);
}

tr.mat-row-auth:not(.inner-expanded-row):hover {
    background-color: #f8f9fa;
    cursor: pointer !important;
}

tr.mat-row-auth.inner-expanded-row:hover {
    cursor: pointer !important;
}

.mat-row:hover {
    cursor: pointer;
    background-color: #f8f9fa;
}

tr.inner-element-row.odd:hover,
tr.inner-detail-row.odd:hover {
    cursor: pointer;
    background-color: #f8f9fa;
}

tr.inner-element-row-expanded td {
    border-top: 0px;
    border-bottom: 0px;
}

.additional-options-section {
    padding: 0;
    width: 100%;
    display: inline-grid;

    button {
        margin: 1px 0;
        color: inherit;
        font-size: inherit;
        border-radius: 0px;
        padding: 0 16px;
    }
}

:host::ng-deep .mat-menu-item {
    padding: 0 10px;
}

@media (min-width: 992px) {
    .d-t-lg-block {
        display: table-cell !important;
    }
}

.grid {
    padding: 10px 20px 20px;
}

.icon {
    line-height: 0;
}

.content-vertical-bar {
    button {
        margin-left: 10px;
        width: 35px;
        height: 35px;
        margin-bottom: 5px;
        display: block;

        .mat-button-wrapper {
            padding: 0px !important;
        }

        i {
            margin-top: -6px;
            font-size: 14px;
            color: $fontcolor;
        }

        i:hover {
            color: #1c84c6;
        }
    }
}

.grid-columns-section {
    padding: 10px 0 0 0;
    width: 100%;
    display: inline-grid;
    color: inherit;
    font-size: inherit;

    button {
        margin: 5px 0 0;
        border-radius: 0px;
    }

    .mat-checkbox {
        padding: 0 10px 2px 15px;
    }
}

.partyType-radio-button {
    margin-top: 20px;
    margin-left: 20px;
}

.new {
    :hover {
        color: #2186c6;
    }
}

.btn-new {
    color: #676a6c;
}

.text-overflow {
    max-width: 400px;
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

@media (max-width: 1500px) {
    .text-overflow {
        max-width: 350px;
        font-size: 12px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }
}

@media (max-width: 1000px) {
    .text-overflow {
        max-width: 70px;
        font-size: 12px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }
}