﻿
html {
    /* Removed, cause scroll in modal */
    /*overflow-y: scroll !important;*/
}

.modal-header {
    cursor: grab !important;
}

    .modal-header:active {
        cursor: grabbing !important;
    }

body.easteregg {
    -webkit-transform: scaleX(-1);
    -moz-transform: scaleX(-1);
    -ms-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    transform: scaleX(-1);
}

.spinner-grow {
    width: 32px !important;
    height: 32px !important;
}

table.dataTable tfoot th, table.dataTable tfoot td {
    border-top: 0px !important;
}

.dataTables_scrollBody {
    overflow: visible !important;
}

.text-task-done {
    text-decoration: line-through;
}

.sidebar-nav ul .sidebar-item .sidebar-link i {
    font-size: initial !important;
}

.col-form-label {
    font-weight: 500;
    padding-bottom: 0px !important;
}

input::placeholder {
    color: lightgray !important;
}

textarea::placeholder {
    color: lightgray !important;
}

.blink_me {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.fade-colors {
    animation: colorfade 2s infinite alternate;
}

@keyframes colorfade {
    0% {
        color: white;
    }
    /* amarelo */
    50% {
        color: #ffc128;
    }
}

/* Remove <li> do validation sumary */
.validation-summary-errors ul, .validation-summary-errors li {
    list-style: none !important;
    display: block !important;
    padding: 0 !important;
}

.badge-warning {
    color: white !important;
}

.badge-orange {
    color: white !important;
}

td.details-control::after {
    content: '\f301';
    font-family: 'FontAwesome';
    cursor: pointer;
    font-size: 24px;
    font-weight: 400;
    color: #28A745;
}

tr.shown td.details-control::after {
    content: '\f308';
    color: #DC3545;
}

.dataTables_scrollHeadInner {
    width: 100% !important;
}

    .dataTables_scrollHeadInner table {
        width: 100% !important;
    }

.dataTables_length select {
    padding: 7px !important;
}

table.dataTable thead th {
    border-bottom: none !important;
}

table.dataTable.no-footer {
    border-bottom: none !important;
}

table.dataTable thead th, table.dataTable tfoot th {
    font-weight: 500 !important;
}

table.dataTable thead th, table.dataTable tfoot {
    border-bottom: 1px solid #e8eef3 !important;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: 0px solid #e8eef3 !important;
}

.modal-dialog-full-width {
    width: 80% !important;
    max-width: none !important;
}

.modal-content-full-width {
    height: auto !important;
    border-radius: 0 !important;
    background-color: #ececec !important
}

.modal-header-full-width {
    border-bottom: 1px solid #9ea2a2 !important;
}

.modal-footer-full-width {
    border-top: 1px solid #9ea2a2 !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

.control-label.required:after {
    content: " * ";
    color: red;
}

div.dtsp-searchPanes {
    justify-content: space-evenly !important;
}

div.dtsp-panesContainer {
    margin-bottom: 20px !important;
}

.dt-search {
    margin-bottom: 5px !important;
}

.vertical-timeline {
    width: 100%;
    position: relative;
    padding: 1.5rem 0 1rem
}

    .vertical-timeline::before {
        content: '';
        position: absolute;
        top: 0;
        left: 67px;
        height: 100%;
        width: 4px;
        background: #e9ecef;
        border-radius: .25rem
    }

.vertical-timeline-element {
    position: relative;
    margin: 0 0 1rem
}

.vertical-timeline--animate .vertical-timeline-element-icon.bounce-in {
    visibility: visible;
    animation: cd-bounce-1 .8s
}

.vertical-timeline-element-icon {
    position: absolute;
    top: 0;
    left: 60px
}

    .vertical-timeline-element-icon .badge-dot-xl {
        box-shadow: 0 0 0 5px #fff
    }

.badge-dot-xl {
    width: 18px;
    height: 18px;
    position: relative
}

.badge:empty {
    display: none
}

.badge-dot-xl::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: .25rem;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -5px 0 0 -5px;
    background: #fff
}

.vertical-timeline-element-content {
    position: relative;
    margin-left: 90px;
    font-size: .8rem
}

    .vertical-timeline-element-content .timeline-title {
        font-size: .8rem;
        text-transform: uppercase;
        margin: 0 0 .5rem;
        padding: 2px 0 0;
        font-weight: bold
    }

    .vertical-timeline-element-content .vertical-timeline-element-date {
        display: block;
        position: absolute;
        left: -90px;
        top: 0;
        padding-right: 10px;
        text-align: right;
        color: #adb5bd;
        font-size: .7619rem;
        white-space: nowrap
    }

    .vertical-timeline-element-content:after {
        content: "";
        display: table;
        clear: both
    }

.card {
    border-radius: 0.8rem !important;
}

.dl {
    /*margin-top: 0;
    margin-bottom: 20px;*/
    display: grid;
    grid-template-columns: 160px 1fr;
    row-gap: .6rem;
    column-gap: 1rem;
    margin: 0;
}

.dt {
    /*line-height: 1.42857143;*/
    /*font-weight: bold;*/
    font-weight: 600;
    color: #4a5568;
    font-size: .9rem;
    text-align: right;
}

.dd {
    /*line-height: 1.42857143;*/
    /*margin-left: 0;*/
    margin: 0;
    color: #2d3748;
    font-size: .95rem;
}

.dl-horizontal {
    margin-left: 1rem !important;
}

@media (min-width: 768px) {
    .dl-horizontal dt {
        float: left;
        width: 160px;
        overflow: hidden;
        clear: left;
        text-align: right;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 14px;
    }

    .dl-horizontal dd {
        margin-left: 180px;
    }
}

.form-control {
    border: 1px solid lightgray !important;
}

.select2-container {
    width: 100% !important;
}

    .select2-container .select2-selection--single {
        border: 1px solid lightgray !important;
        height: calc(1.5em + 0.75rem + 2px) !important;
    }

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: calc(1.5em + 0.75rem + 2px) !important;
}

.select2-container .select2-search--inline .select2-search__field {
    vertical-align: top !important;
    height: 26px !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: 1px solid lightgray !important;
}

.bootstrap-select {
    height: calc(1.5em + 0.75rem + 2px) !important;
}

    .bootstrap-select.show-tick .dropdown-menu .selected span.check-mark {
        top: 10px !important;
    }

.toast-top-right {
    top: 80px !important;
    right: 12px !important;
}

.panel-fullscreen {
    display: block !important;
    z-index: 9999 !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    overflow: auto !important;
}

.select2-container--open {
    z-index: 9999999;
}

a[aria-expanded=true] .fa-arrows-from-line {
    display: none !important;
}

a[aria-expanded=false] .fa-arrows-to-line {
    display: none !important;
}

.bootstrap-touchspin .input-group-btn-vertical {
    position: absolute;
    right: 0;
    height: 100%;
    z-index: 11;
}

    .bootstrap-touchspin .input-group-btn-vertical > .btn {
        position: absolute;
        right: 0;
        height: 50%;
        padding: 0;
        width: 2em;
        text-align: center;
        line-height: 1;
    }

    .bootstrap-touchspin .input-group-btn-vertical .bootstrap-touchspin-up {
        border-radius: 0 4px 0 0;
        top: 0;
    }

    .bootstrap-touchspin .input-group-btn-vertical .bootstrap-touchspin-down {
        border-radius: 0 0 4px 0;
        bottom: 0;
    }

.card-box {
    position: relative;
    color: #fff;
    padding: 20px 10px 40px;
    margin: 20px 0px;
}

    .card-box:hover {
        text-decoration: none;
        color: #f1f1f1;
    }

        .card-box:hover .icon i {
            font-size: 100px;
            transition: 1s;
            -webkit-transition: 1s;
        }

    .card-box .inner {
        padding: 5px 10px 0 10px;
    }

    .card-box h3 {
        font-size: 27px;
        font-weight: bold;
        margin: 0 0 8px 0;
        white-space: nowrap;
        padding: 0;
        text-align: left;
    }

    .card-box p {
        font-size: 15px;
    }

    .card-box .icon {
        position: absolute;
        top: auto;
        bottom: 5px;
        right: 10px;
        z-index: 0;
        font-size: 72px;
        color: rgba(0, 0, 0, 0.15);
    }

    .card-box .card-box-footer {
        position: absolute;
        left: 0px;
        bottom: 0px;
        text-align: center;
        padding: 3px 0;
        color: rgba(255, 255, 255, 0.8);
        background: rgba(0, 0, 0, 0.1);
        width: 100%;
        text-decoration: none;
    }

    .card-box:hover .card-box-footer {
        background: rgba(0, 0, 0, 0.3);
    }

.topbar .mailbox {
    width: 350px !important;
}

.btn-selectFile {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.hrdivider {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
    text-align: left;
}

    .hrdivider span {
        position: absolute;
        top: -11px;
        background: #fff;
        padding-right: 10px;
        font-weight: bold;
    }

.btn-link {
    padding: 0px !important;
}

    .btn-link:hover {
        text-decoration: none !important;
    }

    .btn-link.focus, .btn-link:focus {
        text-decoration: none !important;
    }

#feedback_button {
    display: block !important;
    position: fixed;
    cursor: pointer;
    transition: none !important;
    border-radius: 4px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom: none
}

    #feedback_button:hover {
        text-decoration: none
    }

    #feedback_button span {
        border-radius: 4px;
        display: inline-block;
        border-width: 2px;
        border-style: solid;
        padding: 4px 10px;
        font-size: 13px;
        font-family: Arial,Helvetica,sans-serif;
        text-decoration: none;
        text-align: center;
        line-height: 1.3em;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
        border-bottom: none
    }

    #feedback_button.bm_label {
        bottom: 15%;
    }

        #feedback_button.bm_label.bm_right {
            -ms-transform: rotate(270deg);
            -webkit-transform: rotate(270deg);
            -moz-transform: rotate(270deg);
            transform: rotate(270deg);
            -ms-transform-origin: right bottom;
            -webkit-transform-origin: right bottom;
            -moz-transform-origin: right bottom;
            transform-origin: right bottom;
            right: 0
        }

        #feedback_button.bm_label.bm_left {
            -ms-transform: rotate(90deg);
            -webkit-transform: rotate(90deg);
            -moz-transform: rotate(90deg);
            transform: rotate(90deg);
            -ms-transform-origin: left bottom;
            -webkit-transform-origin: left bottom;
            -moz-transform-origin: left bottom;
            transform-origin: left bottom;
            left: 0
        }

        #feedback_button.bm_label span {
            letter-spacing: .04em
        }

            #feedback_button.bm_label span:hover {
                padding-bottom: 8px
            }

    #feedback_button.bm_tab {
        bottom: 0
    }

        #feedback_button.bm_tab.bm_left {
            left: 2%
        }

        #feedback_button.bm_tab.bm_right {
            right: 2%
        }

        #feedback_button.bm_tab span {
            margin-bottom: 0
        }

            #feedback_button.bm_tab span:hover {
                padding-bottom: 8px
            }

/* # region Modal effect */
.modal.fade .modal-content {
    transform: translateY(-100px) rotate(-10deg);
    filter: blur(8px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.modal.fade.show .modal-content {
    filter: blur(0);
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.modal.fade:not(.show) .modal-content {
    transform: translateY(200px) rotate(15deg);
    filter: blur(10px);
    opacity: 0;
}
/* #endregion */

/* #region Loading formatFunction() effect */
.loading {
    position: relative;
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    color: #666;
    font-size: 14px;
    margin: 10px 0;
    background: rgba(240, 240, 240, 0.6);
    border-radius: 8px;
    overflow: hidden;
    animation: fadeInUp 0.6s ease forwards;
}

.loading-container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%; /* largura da "faixa" que passa */
    height: 100%;
    background: linear-gradient( 120deg, transparent, rgba(255, 255, 255, 0.6), transparent );
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% {
        left: -50%;
    }

    100% {
        left: 100%;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        filter: blur(6px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}
/* #endregion */

/* Datatable load bar */
div.dataTables_processing,
.dt-processing {
    position: relative;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 4px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    text-align: center;
}

    div.dataTables_processing .bar,
    .dt-processing .bar,
    tbody td.dataTables_empty .bar {
        position: absolute;
        top: 0;
        left: -40%;
        width: 40%;
        height: 100%;
        background-color: #FFC128;
        animation: progressBar 1.2s linear infinite;
    }

@keyframes progressBar {
    0% {
        left: -40%;
    }

    50% {
        left: 20%;
    }

    100% {
        left: 100%;
    }
}

/* Esconde scroll até a tabela terminar o carregamento */
.dataTable-loading table,
.dataTable-loading .dataTables_scrollBody {
    visibility: hidden !important;
}

/* Remove spinner padrão da v2 para sua barra aparecer */
.dt-processing .dt-processing-spinner {
    display: none !important;
}

/* Remove fundo/sombra padrão da v2 */
.dt-processing,
.dt-processing .dt-processing-row {
    background: transparent !important;
    box-shadow: none !important;
}

/* Desfoque opcional usado em alguns layouts */
.table-blur {
    filter: blur(2px);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    user-select: none;
}

.dt-blur-active tbody {
    filter: blur(2px);
    opacity: 0.6;
    transition: 0.2s;
}

/* #endregion */

/* field-validation-error */
.field-validation-error {
    color: #e74c3c;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.input-validation-error {
    animation: shake 0.25s;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-3px);
    }

    50% {
        transform: translateX(3px);
    }

    75% {
        transform: translateX(-3px);
    }

    100% {
        transform: translateX(0);
    }
}

input.input-validation-error,
select.input-validation-error,
textarea.input-validation-error {
    border: 1px solid #e74c3c !important; /* borda vermelha */
    background-color: #fdecea !important; /* fundo vermelho suave */
    color: #e74c3c;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

    select.input-validation-error + .dropdown-toggle,
    select.input-validation-error + .dropdown-toggle.btn {
        border: 1px solid #e74c3c !important;
        background-color: #fdecea !important;
        color: #e74c3c !important;
        transition: all 0.3s ease;
    }

    select.input-validation-error + .select2-container .select2-selection {
        border: 1px solid #e74c3c !important;
        background-color: #fdecea !important;
        border-radius: 4px;
        color: #e74c3c;
        transition: all 0.3s ease;
    }

.input-validation-error[type="file"] ~ .bootstrap-filestyle {
    border: 1px solid #e74c3c !important;
    background-color: #fdecea !important;
    border-radius: 4px;
    color: #e74c3c;
    transition: all 0.3s ease;
}
/* #endregion */

/* input-validation-required /  */
input.input-validation-required,
select.input-validation-required,
textarea.input-validation-required {
    border: 1px solid #5dade2 !important; /* borda vermelha */
    border-radius: 4px;
    position: relative;
    box-shadow: 0 0 2px rgba(93, 173, 226, 0.4); /* glow sutil */
}

    select.input-validation-required + .dropdown-toggle,
    select.input-validation-required + .dropdown-toggle.btn {
        border: 1px solid #5dade2 !important;
        box-shadow: 0 0 2px rgba(93, 173, 226, 0.4); /* glow sutil */
    }

    select.input-validation-required + .select2-container .select2-selection {
        border: 1px solid #5dade2 !important;
        box-shadow: 0 0 2px rgba(93, 173, 226, 0.4); /* glow sutil */
    }

.input-validation-required[type="file"] ~ .bootstrap-filestyle {
    border: 1px solid #5dade2 !important;
    border-radius: 4px;
    box-shadow: 0 0 2px rgba(93, 173, 226, 0.4); /* glow sutil */
}

.datatable-container {
    width: 100%;
    /*overflow: hidden;*/
    overflow-x: auto !important;
}

/* Tornar a borda do foooter mais suave */
div.dt-container.dt-empty-footer tbody > tr:last-child > * {
    border-bottom: 1px solid #e8eef3 !important;
}

/* container do menu do ColVis / Buttons */
.dt-button-collection,
.dt-container .dt-button-collection {
    position: absolute !important;
    z-index: 99999 !important;
}

/* garantir que o scroll da tabela não capture o menu */
.dt-container,
.dt-scroll,
.dt-scroll-body {
    overflow: visible !important;
}
