/**
 * GENERAL
 * ICON
 * LAYOUT MODE
 * FORMS
 * TABLE
 * BREADCRUMB
 * CONTENT HEADER
 * LOGIN
 * DROPDOWN
 * TAB
 * BORDER
 * LIST GROUP
 * BUTTON
 * MAP
 * IMAGE
 * AUTOCOMPLETE
 * BS STEPPER
 * CHART
 * POPOVER
 * MENU TREE VIEW
 */

/* ***************************
     * GENERAL
 */

.cursor-pointer {
    cursor: pointer;
}

.no-padding {
    padding: 0 !important;
}

.content-m-0>* {
    margin: 0 !important;
}

.h-min-100vh {
    min-height: 100vh !important;
}


/* ***************************
     * NAVBAR
 */
.gap-0 {
    gap: 0 !important
}

.gap-1 {
    gap: .25rem !important
}

.gap-2 {
    gap: .5rem !important
}

.gap-3 {
    gap: 1rem !important
}

.gap-4 {
    gap: 1.5rem !important
}

.gap-5 {
    gap: 3rem !important
}

.gap-b-0 {
    gap: 0 0 !important
}

.gap-b-1 {
    gap: .25rem 0 !important
}

.gap-b-2 {
    gap: .5rem 0 !important
}

.gap-b-3 {
    gap: 1rem 0 !important
}

.gap-b-4 {
    gap: 1.5rem 0 !important
}

.gap-b-5 {
    gap: 3rem 0 !important
}

.text-inherit {
    color: inherit !important;
}


/* ***************************
    * ICON
*/
.main-header .navbar-nav li .dropdown-menu .dropdown-item i,
.dropdown-menu .dropdown-item i {
    width: 20px;
    text-align: center;
}


/* ***************************
    * LAYOUT MODE
*/
.btn-change-layout-mode>i::before {
    content: "\f186";
}

body.dark-mode .btn-change-layout-mode>i::before {
    content: "\f185";
}

@media (max-width: 576px) {
    .dropdown-layout-fs {
        width: 80vh;
        left: -10vh;
    }
}


/* ***************************
    * FORMS
*/
.input-checkbox label,
.input.checkbox label {
    margin: 0;
    margin-bottom: .25rem;
    margin-left: .5rem;
}

.error-message {
    color: var(--red);
}

.custom-file-label::after {
    content: "Arquivo";
}

.mceEditor td.mceIframeContainer iframe {
    max-width: 100% !important;
}

.mceEditor table {
    max-width: 100% !important;
}

/* ***************************
    * TABLE
*/

.table-bordered.table-unbordered-nth th:first-of-type,
.table-bordered.table-unbordered-nth td:first-of-type {
    border-left: none;
}

.table-bordered.table-unbordered-nth th:last-of-type,
.table-bordered.table-unbordered-nth td:last-of-type {
    border-right: none;
}

.table thead th a {
    display: -ms-flexbox !important;
    display: flex !important;
    -ms-flex-align: center !important;
    align-items: center !important;
}

.card table.table,
.card table.table tr th,
.card table.table tr td {
    border-color: rgba(0, 0, 0, .125);
}

.table-nowrap th,
.table-nowrap td {
    white-space: nowrap;
}

/* ***************************
    * BREADCRUMB
*/

.breadcrumb .breadcrumb-item>a {
    color: rgba(255, 255, 255, 0.75);
}

.breadcrumb .breadcrumb-item.active>a {
    color: inherit;
}


/* ***************************
    * CONTENT HEADER
*/

.content-header>div:last-of-type {
    padding-bottom: 95px;
}

.content-header~div {
    margin-top: -95px;
}

.content-header .content-header-action .btn {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* ***************************
    * LOGIN
*/
.login-box,
.register-box {
    width: 342px;
}

/* ***************************
    * DROPDOWN
*/

[data-toggle="collapse"].animate-caret i.fa-caret-down {
    transition-duration: 250ms;
}

[data-toggle="collapse"].animate-caret:not(.collapsed) i.fa-caret-down {
    transform: rotate(90deg);
}


/* ***************************
    * TAB
*/

.content-nav-tabs .nav-link {
    border-top-width: 3px;
}

.nav-tabs {
    border-bottom: 1px solid #0d6efd;
}

.nav-tabs .nav-link:focus,
.nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #0d6efd;
}

.nav-tabs .nav-link.active {
    border-color: #0d6efd #0d6efd #fff;
}

/* ***************************
    * BORDER
*/

.border,
.border-top,
.border-left,
.border-right,
.border-bottom {
    border-color: rgba(0, 0, 0, .125) !important;
}

@media (min-width: 1200px) {
    .border-xl-left {
        border-left: 1px solid rgba(0, 0, 0, .125) !important;
    }

    .border-xl-top-none {
        border-top: none !important;
    }

    .border-right-xl {
        border-right: 1px solid rgba(0, 0, 0, .125) !important;
    }

    .border-bottom-xl-0 {
        border-bottom: none !important;
    }
}

@media (min-width: 992px) {
    .border-lg-left {
        border-left: 1px solid rgba(0, 0, 0, .125) !important;
    }
}


/* ***************************
    * LIST GROUP
*/

.list-group-sm .list-group-item {
    padding: .5rem;
}

.content-lg-group-list .list-group~.list-group .list-group-item {
    border-top: none;
}

.content-lg-group-list .list-group .list-group-item {
    border-radius: 0;
}

@media (min-width: 992px) {
    .content-lg-group-list .list-group:first-of-type .list-group-item:first-of-type {
        border-top-left-radius: .25rem;
    }

    .content-lg-group-list .list-group:first-of-type .list-group-item:last-of-type {
        border-top-right-radius: .25rem;
    }

    .content-lg-group-list .list-group:last-of-type .list-group-item:first-of-type {
        border-bottom-left-radius: .25rem;
    }

    .content-lg-group-list .list-group:last-of-type .list-group-item:last-of-type {
        border-bottom-right-radius: .25rem;
    }
}

@media (max-width: 991px) {
    .content-lg-group-list .list-group:first-of-type .list-group-item:first-of-type {
        border-top-left-radius: .25rem;
        border-top-right-radius: .25rem;
    }

    .content-lg-group-list .list-group:last-of-type .list-group-item:last-of-type {
        border-bottom-left-radius: .25rem;
        border-bottom-right-radius: .25rem;
    }
}

/* ***************************
    * BUTTON
*/

.btn-olive {
    color: #fff;
    background-color: #3d9970;
    border-color: #3d9970;
    box-shadow: none;
}

.btn-olive:hover,
.btn-olive:focus,
.btn-olive.focus {
    color: #fff;
    background-color: #2e7555;
    border-color: #2b6b4f;
}

.btn-olive:focus,
.btn-olive.focus {
    box-shadow: 0 0 0 0 rgba(46, 117, 85, 0.5);
}

.dark-mode .btn-olive {
    color: #fff;
    background-color: #189a73;
    border-color: #189a73;
    box-shadow: none;
}

.dark-mode .btn-olive:hover,
.dark-mode .btn-olive:focus,
.dark-mode .btn-olive.focus {
    color: #fff;
    background-color: #158463;
    border-color: #116e52;
}

.dark-mode .btn-olive:focus,
.dark-mode .btn-olive.focus {
    box-shadow: 0 0 0 0 rgba(21, 132, 99, 0.5);
}

.btn-teal {
    color: #fff;
    background-color: #20c997;
    border-color: #20c997;
    box-shadow: none;
}

.btn-teal:hover,
.btn-teal:focus,
.btn-teal.focus {
    color: #fff;
    background-color: #199d76;
    border-color: #17926e;
}

.btn-teal:focus,
.btn-teal.focus {
    box-shadow: 0 0 0 0 rgba(425, 157, 118, 0.5);
}

.dark-mode .btn-teal {
    color: #fff;
    background-color: #00bc8c;
    border-color: #00bc8c;
    box-shadow: none;
}

.dark-mode .btn-teal:hover,
.dark-mode .btn-teal:focus,
.dark-mode .btn-teal.focus {
    color: #fff;
    background-color: #009973;
    border-color: #008060;
}

.dark-mode .btn-teal:focus,
.dark-mode .btn-teal.focus {
    box-shadow: 0 0 0 0 rgba(0, 153, 115, 0.5);
}


/* ***************************
    * MAP
*/
.map-iframe {
    width: 100%;
    max-width: 100%;
    height: 500px;
}


/* ***************************
    * IMAGE
*/
.content-img-fluid img {
    max-width: 100%;
}


/* ***************************
    * AUTOCOMPLETE
*/
.ui-autocomplete {
    max-height: 300px;
    border-color: rgba(0, 0, 0, .125) !important;
    overflow: scroll;
    overflow-x: hidden;
    font-size: 1rem !important;
}

.ui-autocomplete li>div {
    padding: 1px 12px !important;
}

.ui-autocomplete>li:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, .05);
}

/* ***************************
    * BS STEPPER
*/
@media (max-width: 400px) {
    .bs-stepper-header {
        align-items: flex-start;
        margin-left: 10px;
    }

    .bs-stepper .step-trigger {
        flex-direction: unset;
    }

    .bs-stepper .line,
    .bs-stepper-line {
        display: none;
    }
}

@media (min-width: 401px) and (max-width: 768px) {

    .bs-stepper-header,
    .bs-stepper-header.flexcolumn {
        flex-wrap: wrap;
        flex-direction: unset !important;
    }
}

/* ***************************
    * CHART
*/

.content-chart-pie canvas {
    max-height: 400px !important;
}

.content-chart-legend.columns>ul {
    gap: 0.25rem 0 !important;
    flex-wrap: wrap !important;
    -ms-flex-wrap: wrap !important;
}

.content-chart-legend.columns>ul>li {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
}

.content-chart-legend.columns>ul>li>p {
    overflow: hidden;
    white-space: nowrap;
    width: calc(100% - 20px);
}

@media (max-width: 1200px) {
    .content-chart-legend.columns>ul>li {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (max-width: 991px) {
    .content-chart-legend.columns>ul>li {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 671px) {
    .content-chart-legend.columns>ul>li {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* ***************************
    * POPOVER
*/
.popover-lg {
    max-width: 600px;
}

@media (max-width: 600px) {
    .popover-lg {
        max-width: 100%;
    }
}

.popover {
    max-width: 70vw;
}

.popover .popover-body {
    max-height: 50vh;
    overflow-y: auto;
}


/* ***************************
    * MENU TREE VIEW
*/
.content-menu-treeview .list-group-item {
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: 0;
    margin-bottom: 5px;
    padding: .25rem 5px;
}

.content-menu-treeview .list-group-item.has-children:hover {
    cursor: pointer;
}

.content-menu-treeview .list-group-item:hover {
    border: 1px solid rgba(0, 0, 0, .225);
}

.content-menu-treeview .list-group-item:focus,
.content-menu-treeview .list-group-item:hover,
.content-menu-treeview .list-group-item.has-children:not(.collapsed) {
    color: #495057;
    text-decoration: none;
    background-color: #f8f9fa;
}

.content-menu-treeview .item-collapse {
    margin-left: 2rem;
}

.content-menu-treeview .item-label i {
    width: 25px;
    line-height: 1.5;
    text-align: center;
    margin-left: -5px;
    transition: -webkit-transform ease-in-out .3s;
    transition: transform ease-in-out .3s;
    transition: transform ease-in-out .3s, -webkit-transform ease-in-out .3s;
}

.content-menu-treeview .list-group-item.has-children[aria-expanded="true"] .item-label i {
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
}

.content-menu-treeview .list-group-item span.badge {
    margin-right: 0.25rem;
}