/* Geral */

*{
	font-family: 'Inter', sans-serif;
}

body{	
	color: #555555;
	font-size: 12px;
}

br {
	clear: left;
}

img{
	border: 0px;
}

select[readonly] {
  background: #eee;
  pointer-events: none;
  touch-action: none;
}

/* Estilização padrão para todos os browsers */
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='gray' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 6px;
  padding: 6px 10px;
  padding-right: 40px; /* Aumentado para evitar sobreposição */
  border: 0.7px solid rgb(214, 222, 233);
  border-radius: 10px;
  font-size: 12px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
  transition: all 0.3s ease;
  max-width: 400px;
  margin: 0;
}

/* Safari-specific hack para garantir que aplique */
@media not all and (min-resolution: 0.001dpcm) {
  @supports (-webkit-appearance: none) {
    select.form-control {
      appearance: none;
      -webkit-appearance: none;
    }
  }
}

.ak-modal-overlay {
    background: rgba(0, 0, 0, 0.4);
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ak-modal-overlay.ak-modal-fade-in {
    opacity: 1;
}

.ak-modal {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 90%;
    width: fit-content;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.ak-modal.ak-modal-fade-in {
    transform: translateY(0);
}

.ak-modal-content {
    max-height: 80vh;
    overflow: auto;
}

.ak-modal iframe .panel-heading {
    display: none !important;
}

/*
 * Ajustes para o bootstrap
 */

.glyphicon-2x {
	font-size: 16px;	
}

.glyphicon-3x {
	font-size: 20px;	
}

a:not([class*="btn-"]) .fa:not([class*="text-"]) {
  color: #6c757d;
  transition: color 0.2s ease;
}

a:not([class*="btn-"]):hover .fa:not([class*="text-"]) {
  color: #0b5ed7;
}

.required {
	background-color: #fff3cd;
}

.required:not([readonly]):not([disabled]):focus,
.required:not([readonly]):not([disabled]):hover {
  background-color: #fff3cd;
}

/* Se estiver dentro da div select2-container-disabled, remove o background */
.select2-container-disabled .required:focus,
.select2-container-disabled .required:hover {
  background-color: inherit; /* ou a cor padrão, se quiser */
}

.swal2-container {
	z-index: 9999;
}

.form-control-full {
	width: 100%;
}

table, th {
	align: center;
}

.input-group {
  position: relative;
  display: table;
  border-collapse: separate;
  width: 350px;
}

.input-group .form-control {
  position: relative;
  z-index: 2;
  float: left;
  margin-bottom: 0;
  width: 100%;
}

.input-group-addon:last-child {
/*  border: 1px solid #ccc;*/
  width: 10px;
}

.form-control[readonly] {
  background: #eee;
  pointer-events: none;
  touch-action: none;
}

.fade.in {
  opacity: 1 !important;
}

/*
 * Janela. Utilizando em JanelaFiltro, JanelaResultados, JanelaEntrada
 */

.window {
  width: 100%;
  background-color: #ffffff;
  padding: 0.8rem;
  margin-bottom: 1rem;
}

.resultWindow {
	background-color: #ffffff;
	overflow: hidden;
	padding: 0.8rem;
}

/*
 * Utilizados em PanelGrids que sao tabelas de entrada de dados.
 */

.propertyColumn  {
  text-align: left;
}

/**
 * Detalhe
 */
 
.detailBlock {
	background-color: white;
}

.selectedRow {
	background-color: #d1e7dd;
	color: #000000;
	text-decoration: none;
	font-weight: bold;
}

.mouseOnRow {
	background-color: #e9f7f1;
}

.listagemHeader {
	background-color: #565a5c;
	color: #FFFFFF;
}

/*
 * Utilizados para fazer o botao de spin rotacionar
 */


.fa-spin-custom, .glyphicon-spin {
    -webkit-animation: spin 2000ms infinite linear;
    animation: spin 2000ms infinite linear;
}
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}
@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

/* ESTILOS UTILIZADOS NA FUNCIONALIDADE DO QUADRO DE MENSAGENS */
.icon_msgs {
	color: #808080;
}

.icon_msgs:hover {
	cursor: pointer;
}

.qtdeNovasMensagens {
	top: -12px;
    left: -10px;
    position: relative;
    background-color: red;
    font-size: 10px !important;
}

div.nao-lida {
	background-color: #fff !important;
}

div.nao-lida a {
	font-weight: bold;
}

div.lida {
	background-color: #f5f5f5 !important;
}

div.lida a {
	font-weight: normal;
}

.ellipsis {
	position: relative;
	top: 5px;
}

.fa-1_4x {
	font-size: 1.4em;
}

.loadersmall {
  border: 5px solid #c6c6c6;
  -webkit-animation: spin 1s linear infinite;
  animation: spin 1s linear infinite;
  border-top: 5px solid #555;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -25px 0 0 -25px;
}

.tablesorter-header {
    background-image: url(data:image/gif;base64,R0lGODlhFQAJAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==);
    background-position: center right;
    background-repeat: no-repeat;
    cursor: pointer;
    white-space: normal;
    padding: 4px 20px 4px 4px;
}
.tablesorter-headerAsc {
    background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7);
}
.tablesorter-headerDesc {
    background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7);
}
.tablesorter .sorter-false {
    background-image: none;
    cursor: default;
    padding: 4px;
}


.img-wrap {
    position: relative;
    display: inline-block;
    width: 100px;
    padding: 3px;
}
.img-wrap .close {
    position: absolute;
    top: 2px;
    z-index: 100;
    background-color: #FFF;
    padding: 10px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    opacity: .5;
    text-align: center;
    font-size: 20px;
    line-height: 10px;
    border-radius: 50%;
}
.img-wrap:hover .close {
    opacity: 1;
}
.card-group {
    width: 100%;
    display: inline-flex;
    justify-content: space-evenly;
    align-items: center;
}
/*****************************/
.content-wrapper{
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  height: 100vh;
  overflow: hidden;
}
main {
	padding: 1rem;
	overflow: auto;
}
.navbar-wrapper {
  grid-column: 1/-1;
  border-bottom: 1px solid #f8f9fa;
  margin-bottom: 0;
  height: 60px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0 , 0.1), 0 1px 2px -1px rgba(0, 0, 0 , 0.1);
  z-index: 999;
}
#menu-table img{
	max-height: 60px;
	width: auto;
}