/* nav */
.m-menu__link .svg-icon {
    margin-right: 10px;
    color: #ccc !important
}

.m-aside-menu.m-aside-menu--skin-dark .m-menu__nav>.m-menu__item:not(.m-menu__item--parent):not(.m-menu__item--open):not(.m-menu__item--expanded):not(.m-menu__item--active):hover>.m-menu__heading svg,
.m-aside-menu.m-aside-menu--skin-dark .m-menu__nav>.m-menu__item:not(.m-menu__item--parent):not(.m-menu__item--open):not(.m-menu__item--expanded):not(.m-menu__item--active):hover>.m-menu__link svg {
    color: #404040 !important;
}

.m-aside-menu.m-aside-menu--skin-dark .m-menu__nav>.m-menu__item.m-menu__item--active>.m-menu__heading svg,
.m-aside-menu.m-aside-menu--skin-dark .m-menu__nav>.m-menu__item.m-menu__item--active>.m-menu__link svg {
    color: #59e770 !important;
}

.m-aside-menu .m-menu__nav .m-menu__item>.m-menu__heading .m-menu__link-title,
.m-aside-menu .m-menu__nav .m-menu__item>.m-menu__link .m-menu__link-title {
    display: inline-block !important;
}

.m-menu__toggle .m-menu__link-text {
    padding-left: 26px !important;
    padding-bottom: 3px !important;
}

/* painel */
.panel {
    border: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .18);
    border-radius: 4px;
    margin-bottom: 20px;
    background-color: #fff;
    box-sizing: border-box;
    display: block;
}

.panel .panel-heading {
    color: #333;
    background-color: #f5f5f5;
    border-color: #ddd;
    background: #eee;
    padding: 10px 15px;
    border-bottom: 1px solid transparent;
    border-top-right-radius: 3px;
    border-top-left-radius: 3px;
}

.panel .panel-body {
    font-size: 13px;
    padding: 15px;
}

/* user-pin */
.user-pin .panel {
    border-radius: 10px;
    border-color: #e3e7ef;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.user-pin .panel-heading {
    background: #f7f9fc;
    border-bottom: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #7b7e8a;
    padding: 10px 12px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-pin .panel-body {
    font-size: 13px;
    color: #3f4254;
    padding: 8px 12px 12px;
}

.user-pin-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
    font-weight: 600;
    white-space: nowrap;
}

.user-pin-status-actions {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    white-space: nowrap;
    flex: 0 0 auto;
}

.user-pin-status-badge {
    min-width: 0;
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
}

.user-pin-status .m-badge {
    font-size: 10px;
    padding: 4px 10px;
    line-height: 1.1;
    white-space: nowrap;
}

.user-pin-status-actions .btn {
    width: 26px;
    height: 26px;
    padding: 0;
}

.user-pin-desc {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-pin-desc-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-pin-desc-badge {
    font-size: 10px;
}

/* filtros */
#filtros {
    border-bottom: 2px double #5867dd;
    margin-bottom: 15px;
}

#filtros .avancado {
    display: none;
}

.select2-container--open {
    z-index: 10050;
}

/* abas */
.btn-aba {
    margin-top: 10px !important;
    padding-left: 5px;
}

.m-tabs-line .m-tabs__link,
.m-tabs-line .nav-link {
    font-size: 12px;
    line-height: 1.2;
}

.contract-qr {
    float: none;
    margin: 0 auto;
}

.contract-qr .panel {
    max-width: 360px;
    margin: 0 auto;
}

/* grids de contrato */
.contract-grid {
    font-size: 12px;
}

.contract-grid th,
.contract-grid td {
    padding: 0.55rem 0.6rem;
    vertical-align: top;
}

.contract-grid .grid-subtext {
    display: inline-block;
    color: #8b8fa7;
    font-size: 11px;
    line-height: 1.2;
}

.contract-grid .grid-line {
    display: block;
    line-height: 1.2;
}

.contract-grid .m-badge {
    margin: 1px 3px 1px 0;
}

.grid-actions {
    text-align: center;
    white-space: normal;
    padding: 0;
}

.grid-actions--compact {
    display: grid !important;
    grid-auto-rows: 28px;
    grid-template-columns: repeat(var(--action-columns, 2), 28px);
    grid-auto-flow: row;
    gap: 4px;
    justify-content: center;
    align-content: start;
    justify-items: center;
    box-sizing: content-box;
    padding-left: 3px;
    padding-right: 3px;
}

.grid-actions--compact .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
}

/* grids de parametros */
.param-grid-summary {
    font-size: 11px;
    color: #6f7281;
    line-height: 1.3;
    word-break: break-word;
}

.param-grid-summary .param-grid-line {
    display: block;
    margin-bottom: 2px;
}

.param-grid-summary .param-grid-line:last-child {
    margin-bottom: 0;
}

.param-grid-summary .param-grid-label {
    display: inline-block;
    min-width: 72px;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.03em;
    color: #9aa0b1;
}

.param-grid-summary .param-grid-value {
    color: #3f4254;
}

.param-grid-summary .m-badge {
    vertical-align: middle;
}

.param-grid-muted {
    font-size: 11px;
    color: #9aa0b1;
}

/* mapas */
#map {
    width: 100%;
    height: 400px;
    background-color: grey;
}

/* dependencia */
.dependencia {
    border: 1px solid #f7f7fa;
    margin-bottom: 20px;
}

.dependencia .m-demo {
    margin-bottom: 0;
}

.dependencia .m-demo .m-demo__preview {
    border-left: 2.2rem solid #f7f7fa;
}

/* tooltip */
/* .tooltip-inner {
    max-width: 450px; width: 400px; } */
.m-tooltip {
    opacity: 1 !important;
}

/* popover */
.popover {
    z-index: 100060 !important;
}

.m-popover {
    z-index: 100060 !important;
    opacity: 1 !important;
}

.m-popover.popover .popover-body {
    width: 330px;
    background: #fff;
}

/* crud */
#ajaxCrudModal {
    opacity: 1 !important;
    z-index: 99999;
    /* display: block; */
}

.bootstrap-dialog-footer-buttons .btn-default {
    margin-right: 5px;
}

/* modal */
.modal-backdrop {
    background-color: transparent !important;
    z-index: 100040 !important;
}

.modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65% !important;
    max-width: 85% !important;
    top: 5%;
    margin-bottom: 5%;
    border: 2px solid #eee;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(40, 40, 40, 0.7);
}

.modal {
    overflow-y: auto;
    z-index: 100050 !important;
}

.modal.show .modal-dialog,
.modal.in .modal-dialog {
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
}

.modal.fade.in,
.modal.fade.show {
    opacity: 1 !important;
}

#ajax.modal {
    z-index: 100050 !important;
}

#ajax.modal .modal-content {
    background: #fff;
}

#ajax .modal-body-scroll {
    max-height: 70vh;
    overflow-y: auto;
}

/* modal grande com rolagem interna (padrao atividade) */
.param-modal {
    overflow: hidden;
}

.param-modal .modal-dialog {
    width: 95vw !important;
    max-width: 95vw !important;
    margin: 20px auto !important;
}

.param-modal .modal-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.param-modal .modal-content > form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.param-modal .modal-header,
.param-modal .modal-footer {
    flex: 0 0 auto;
}

.param-modal .modal-body,
.param-modal .m-portlet__body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(90vh - 160px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* swal */
body.swal2-height-auto {
    height: 100% !important;
}

.swal2-container {
    z-index: 99999 !important;
}

/* dropdown */
.kv-clear {
    top: 13px !important;
    font-size: 16px !important;
    color: #000;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    opacity: 0.4;
}

.kv-grid-toolbar .dropdown-menu {
    z-index: 9999 !important;
}

.m-topbar__shortcuts.m-dropdown {
    z-index: 100200;
}

.m-topbar__shortcuts .m-dropdown__wrapper {
    z-index: 100200 !important;
    width: 400px !important;
    max-width: 94vw;
}

.m-topbar__shortcuts .m-dropdown__inner,
.m-topbar__shortcuts .m-dropdown__content {
    position: relative;
    z-index: 100200;
}

.m-topbar__shortcuts .m-dropdown__inner {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(44, 53, 110, 0.18);
}

.shortcuts-dropdown__header {
    background: linear-gradient(135deg, #3f4f9f, #5f6ee6);
    color: #fff;
    padding: 18px 18px 14px;
}

.shortcuts-dropdown__title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shortcuts-dropdown__title-texts {
    min-width: 0;
}

.shortcuts-dropdown__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shortcuts-dropdown__icon i {
    color: #fff;
    font-size: 20px;
    line-height: 1;
}

.shortcuts-dropdown__title-text {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.shortcuts-dropdown__subtitle {
    font-size: 12px;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shortcuts-dropdown__meta {
    margin-top: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    font-size: 12px;
    opacity: 0.9;
}

.shortcuts-dropdown__meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shortcuts-dropdown__meta-label {
    font-size: 11px;
    opacity: 0.8;
}

.shortcuts-dropdown__meta-value {
    font-weight: 600;
    opacity: 1;
}

.shortcuts-dropdown__body {
    max-height: 520px;
}

.shortcuts-dropdown__body .m-dropdown__content {
    padding: 10px 10px 14px;
}

.shortcuts-dropdown__hint {
    font-size: 12px;
    color: #8b8fa7;
    text-align: center;
    margin: 6px 6px 10px;
}

.shortcuts-dropdown__empty {
    font-size: 13px;
    color: #8b8fa7;
    text-align: center;
    padding: 14px 10px 10px;
}

.shortcuts-dropdown__list {
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    -webkit-overflow-scrolling: touch;
}

.shortcuts-dropdown__list .m-nav__item {
    margin: 6px 0;
}

.shortcuts-dropdown__list .m-nav__item .m-nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    width: 100%;
}

.shortcuts-dropdown__list .m-nav__link:hover {
    background: #f4f6ff;
    transform: translateY(-1px);
}

.shortcuts-dropdown__list .m-nav__item .m-nav__link .m-nav__link-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 10px;
    background: #eef1ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    text-align: center;
}

.shortcuts-dropdown__list .m-nav__item .m-nav__link .m-nav__link-icon i {
    display: inline-block;
    line-height: 1;
}

.shortcuts-dropdown__list .m-nav__item .m-nav__link .m-nav__link-title,
.shortcuts-dropdown__content {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding-left: 8px;
}

.shortcuts-dropdown__link-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.shortcuts-dropdown__list .m-nav__link-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    max-height: calc(2 * 1.2em);
    overflow-wrap: anywhere;
}

.shortcuts-dropdown__meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 10px;
    color: #b1b5c5;
}

.shortcuts-dropdown__session {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.shortcuts-dropdown__session.is-empty {
    color: #c9ccd8;
}

.shortcuts-dropdown__last-access {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #f2f3f7;
    color: #a0a6b8;
    font-size: 10px;
    line-height: 1.1;
    white-space: nowrap;
}

.shortcuts-dropdown__last-access i {
    font-size: 11px;
    line-height: 1;
}

.shortcuts-dropdown__last-access-text {
    line-height: 1;
}

.shortcuts-dropdown__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef1ff;
    color: #5867dd;
    font-size: 11px;
    font-weight: 600;
    margin-left: auto;
    padding-left: 12px;
    padding-right: 12px;
}

.shortcuts-dropdown__count.is-empty {
    background: #f2f3f7;
    color: #b1b5c5;
}

.shortcuts-dropdown__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.shortcuts-dropdown__actions .btn {
    width: 100%;
    max-width: 220px;
    border-radius: 999px;
}

.shortcuts-dropdown__buttons {
    display: inline-flex;
    width: 100%;
    max-width: 240px;
}

.shortcuts-dropdown__buttons .btn {
    flex: 1 1 0;
    width: auto;
    max-width: none;
    border-radius: 0;
}

.shortcuts-dropdown__buttons .btn:first-child {
    border-top-left-radius: 999px;
    border-bottom-left-radius: 999px;
}

.shortcuts-dropdown__buttons .btn:last-child {
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;
}

.shortcuts-dropdown__buttons .btn + .btn {
    margin-left: -1px;
}

.shortcuts-dropdown__footer {
    text-align: center;
    margin-top: 6px;
}

.shortcuts-dropdown__toggle {
    font-size: 12px;
    color: #5867dd;
    text-decoration: none;
}

/* arq_instrucao */
.arq_instrucao {
    position: relative;
    background: #f2f3f8;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 8px;
    height: 410px;
    display: flex;
    text-align: center;
    width: 500px;
}

.arq_instrucao img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.arq_instrucao a {
    float: left;
    position: absolute !important;
    top: 5px;
    right: 5px;
    background-color: #ffffff;
}

.arq_instrucao a:hover {
    background-color: #f4516c !important;
}

.arq_instrucao span {
    clear: both;
    position: absolute;
    bottom: 10px;
    width: 100%;
    padding: 0px 15px 10px 15px;
    background: #f2f3f8;
    font-weight: bold;
    font-size: 10px;
    left: 0;
    height: auto;
}

/* Tags */
.tags-look .tagify__dropdown__item {
    display: inline-block;
    vertical-align: middle;
    border-radius: 3px;
    padding: .3em .5em;
    border: 1px solid #CCC;
    background: #F3F3F3;
    margin: .2em;
    font-size: .85em;
    color: black;
    transition: 0s;
}

.tags-look .tagify__dropdown__item--active {
    border-color: black;
}

.tags-look .tagify__dropdown__item:hover {
    background: lightyellow;
    border-color: gold;
}

.tags-look .tagify__dropdown__item--hidden {
    max-width: 0;
    max-height: initial;
    padding: .3em 0;
    margin: .2em 0;
    white-space: nowrap;
    text-indent: -20px;
    border: 0;
}

/* Genéricos */
.center {
    text-align: center !important;
}

.m-portlet.m-portlet--tabs .m-portlet__head .m-portlet__head-tools .m-tabs-line .m-tabs__link {
    border: 0;
}

.lista_blocos .m-portlet {
    margin-bottom: 7px !important;
}

span.progress {
    background-color: #3399ff !important;
    color: #ffffff;
    text-align: center;
    height: 1.5rem;
    padding: 3px;
}

.chave {
    padding-left: 10px;
    font-size: 12px;
    color: #f19e72;
}

.conteudo_certo {
    color: #34bfa3 !important;
}

.conteudo_errado {
    color: #ff0505 !important;
}

.bloco_pendente>div:first-child>span:first-child {
    color: #ff0505 !important;
}

.pergunta {
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #404040;
}

.pergunta-title span.btn {
    white-space: normal;
    text-align: justify;
}

.input_foto {
    display: none;
}

.alteracoes:hover {
    text-decoration: none;
}

.acoes_opcao a {
    padding: 0 2px;
    text-decoration: none;
    color: #afb0c7;
}

a.remocao,
a.remocao i,
a.remocao span {
    color: #f4516c !important;
}

a.edicao,
a.edicao i,
a.edicao span {
    color: #3399ff !important;
}

a.lista_acoes i,
.info {
    color: #5867dd !important;
}

.info-alerta-destaque {
    display: inline-block;
    animation: blink 3s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* SVGs */
.svg-icon {
    display: inline-block;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    width: 16px;
    height: 24px;
    transition: stroke 0.3s ease, transform 0.3s ease;
}

button:hover .svg-icon,
a:hover .svg-icon {
    stroke: currentColor;
    transform: scale(1.1);
}

.svg-icon.small {
    width: 16px;
    height: 16px;
}

.svg-icon.medium {
    width: 20px;
    height: 20px;
}

.svg-icon.large {
    width: 24px;
    height: 24px;
}


/* select */
.bootstrap-select .dropdown-menu.inner {
    white-space: normal !important;
    word-wrap: break-word;
    max-width: 100%;
}

.bootstrap-select .dropdown-item {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.select2-container {
    z-index: 9999 !important;
}

.card h5 {
    border-left: 4px solid #5867dd;
    padding-left: 10px;
}

.card h5 i {
    color: #5867dd;
    margin-right: 6px;
}

.identidade_card {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    padding: 15px;
}

.identidade_instrucao_dark {
    background-color: #404040 !important;
}

.identidade_card img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.box-paleta {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 6px;
    background: #fff;
    min-height: 75px;
}

.box-paleta label {
    font-size: 0.85rem;
    margin-bottom: 4px;
    font-weight: 500;
}

.box-paleta input[type=color] {
    width: 45px;
    height: 30px;
    padding: 0;
    border: none;
    cursor: pointer;
}

.secao-paleta h6 {
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #444;
}
