/* Ajustes globais do sistema */

body {
    font-size: 0.85em;
}


/* Ajustes padrão do templante inicial do YII */
main>.container {
    padding: 70px 15px 20px;
}

.footer {
    font-size: .7em;
    height: 40px;
}

.footer>.container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}


a.asc:after,
a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

/*.grid-view th,
.grid-view td:last-child {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}*/

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

.nav li>form>button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}



.nav>li>form>button.logout:focus,
.nav>li>form>button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav>li>form>button.logout:focus {
    outline: none;
}

/*
    Alterações para o template da IOTresolve
*/

/*.navbar-default-color {
    background-color: #151515;
}*/

.navbar-brand {
    padding-top: 0.20rem;
    padding-bottom: 0.20rem;
    margin-right: 1rem;
    font-size: 1.25rem;
    text-decoration: none;
    white-space: nowrap;
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.4em;
    height: 1.4em;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

.navbar-nav .dropdown-menu {
    position: absolute;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    justify-content: space-evenly;
}

.navbar-toggler {
    padding: 0.15rem 0.65rem;
}

.container-fluid-content {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 0;
    margin-top: -10px;
}

/* .dropdown-menu[data-bs-popper] {
    left: -11rem;
    margin-top: 0.125rem;
}
.dropdown-submenu[data-bs-popper] {
    margin-top: 1.5rem;
    margin-right: -2rem;
    margin-left: -10rem;    
} */
.center-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
}

.dropdown-menu {
    font-size: 0.80rem;
}

.dropdown-item {
    padding-left: 15px;
    border-radius: 2px;
}

ul .dropdown-menu {
    background-color: #343a40;
    color: #000000;
}

ul .dropdown-item {
    color: #dee2e6;
}


/* Ajustes de cores para ser utilizados no modo dark/light */


@media screen and (max-width: 480px) {
    .kv-table-wrap tr>td:first-child {
        border-top: 0 double #ccc;
        margin-top: 0;
        font-size: 1.1em;
    }

    .table thead th {
        padding: 0;
    }
}

@media screen and (max-width: 480px) {

    .kv-table-wrap td,
    .kv-table-wrap th {
        display: table-cell;
        width: 0 !important;
        text-align: left;
    }

    .table thead th {
        padding: 0;
    }
}

@media screen and (max-width:767px) {
    .nav li>form>button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }

    .table thead th {
        padding: 0;
    }
}

@media screen and (max-width:900px) {
    .table thead th {
        padding: 0;
    }
}

/* Atributos de ajuste do formulário MODAL */
.modal-header {
    font-size: 1.5em;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
    white-space: normal;
}

.center-pdf {
    margin: auto;
    width: 98%;
    border: 2px solid gray;
    padding: 5px;
}




/* HTML marker styles */
.marcador-tag {
    background-color: #4285F4;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 14px;
    padding: 10px 15px;
    position: relative;
}

.marcador-tag::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translate(-50%, 0);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #4285F4;
}

.zoomed-out {
    transform: scale(0.8);
    transform-origin: top left;
}

.table-truck-container {
    border: 1px solid #dee2e6;
}

.table-truck-container {
    max-height: 480px; /* altura máxima com rolagem */
    overflow-y: hidden;;
}

/* Estilo fixo para o cabeçalho */
.table-truck-header {
    overflow: hidden;
    background-color: #ffffff;
}

/* Corpo da tabela com rolagem */
.table-truck-body {
    max-height: 480px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Tabelas sem margem entre elas */
.table-truck-header table,
.table-truck-body table {
    margin: 0;
}


/* container total do marcador */
.pulse-marker {
    position: relative;
    width: 32px;
    height: 32px;
}

/* pulso de 16×16 centralizado */
.pulse-marker .pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    background: rgba(255, 0, 0, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-out infinite;
    z-index: 1;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}


.zoom-smaller {
    transform: scale(0.9);
    /* transform-origin: top left; */
}

/* Evita que o elemento "encolhido" deixe um espaço visual estranho */
.zoom-smaller-wrapper {
    overflow: hidden;
    display: flex;
    align-items: flex-start;
}