html {
    box-sizing: border-box;  
}

*, *:before, *:after {
    box-sizing: inherit;
}

:root {
    --verde: #006241;
    --verde-claro: #008458;
    --blanco: #FFF;
} 

body {
    font-family: 'Roboto', sans-serif;
}

#fondo-secundario {
    background-image: url(../img/square_bg.png);
}

.text-verde {
  color: var(--verde);
}

.btn-verde {
    background: var(--verde);
    color: #FFF !important;
    transition: all 1s ease-in-out;
}

.btn-verde:hover {
    background-color: var(--verde-claro);
    color: #FFF;
}

.back-color {
    background-color: var(--verde); 
}

.titulo {
    font-weight: 400;
}

th {
    text-align: center;
}

textarea {
    resize: none;
}

.page-item.active .page-link {
    color: #fff !important;
    background-color: var(--verde) !important;
    border-color: var(--verde) !important; 
}

.page-link {
    color: #000 !important;
    background-color: #fff !important;
    border: 1px solid #dee2e6 !important; 
}

.page-link:hover {
    color: #fff !important;
    background-color: var(--verde-claro) !important;
}

nav .navbar-nav li .nav-link {
    color: #fff !important;
}

/* LINEA MENU HOVER */
.nav-linea {
    text-decoration: none;
    background-image: linear-gradient(var(--blanco), var(--blanco));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size .3s ease-in-out;
    padding-bottom: 5px;
}

.nav-linea:hover {
    background-size: calc(100% - 16px) 2px;
}
/* LINEA MENU HOVER */

.sub-titulo-form {
    font-weight: 500;
}

.btn-warning {
    color: #fff !important;
}

.btn-warning:hover {
    color: #fff;
}

#mapid {
	height: 450px;
	width: 100%;
}

#mapaPaciente {
	height: 450px;
	width: 100%;
}

#mapaMarcar {
	height: 300px;
	width: 100%;
}

#mapaMarca{
	height: 300px;
	width: 100%;
}

.img-center {
    display: block;
    margin: auto;
}

.input-border {
    border: #C82333 2px solid;
    box-shadow: #C82333 2px solid;
}

.seleccionada {
    border: var(--verde-claro) 2px solid;
}

.seleccionModal {
    background: #e9ecef;
}

.input-group > .select2-container--bootstrap {
    width: auto;
    flex: 1 1 auto;
}

.input-group > .select2-container--bootstrap .select2-selection--single {
    height: 100%;
    line-height: inherit;
    padding: 0.5rem 1rem;
}

.select2-container--bootstrap .select2-results__option[aria-selected=true] {
    background-color: var(--verde) !important;
    color: #fff;
}

.select2-container--bootstrap .select2-results__option--highlighted[aria-selected] {
    background-color: var(--verde-claro) !important;
    color: #fff;
}

.select2-container--bootstrap .select2-selection--single {
    height: calc(1.5em + .5rem + 2px)!important;
}

/*---- IR ARRIBA ----*/
.go-top-container {
    position: fixed;
    bottom: 30px; /* 4rem */
    right: 44px;
    width: 3.2rem; /* 6.6 rem */
    height: 3.2rem;
    z-index: -1;
}

.go-top-button {
    width: 0rem;
    height: 0rem;
    background: var(--blanco);
    cursor: pointer;
    top: 50%;
    left: 50%;
    transform: translate(62%, 15%); /* -50%, -50% | -125%, 45%*/
    z-index: -1;
    transition: .3s;
    box-shadow: 0px 4px 8px 0 rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.go-top-button i {
    position: absolute;
    font-size: 18px; /* 1.8rem */
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: var(--verde);
    transition: .3s;
}

.showTop {
    z-index: 10;
}

.showTop .go-top-button {
    animation: popup .3s ease-in-out;
    width: 36px; /* 3.2rem*/
    height: 36px;
    z-index: 11;
}

.showTop i {
    transform: translate(-50%, -50%) scale(1);
}

@keyframes popup {
    0% {
        width: 0px;
        height: 0px;
    }

    50% {
        width: 72px;
        height: 72px;
    }

    100% {
        width: 36px;
        height: 36px;
    }
}
/*---- IR ARRIBA ----*/

/*---- ALINEAR BOTON DE AGREGAR DATATABLE ----*/
table > tbody > tr > td {
    vertical-align: middle !important;
    /* text-align: center; */
}

.btn-group, .btn-group-vertical {
    position: absolute;
}

@media (max-width: 768px) {
    .btn-group, .btn-group-vertical {
        position: relative;
    }
}

.dataTables_info {
    padding: 0px !important;
}
/*---- ALINEAR BOTON DE AGREGAR DATATABLE ----*/

.border-left-primary {
    border-left: .25rem solid #005e3c!important;
}

trix-editor {
    min-height: 64px;
}

.contenedor-firma {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.firma {
    flex-basis: calc(50% - 20px);
}

@media (max-width: 768px) {
    .firma {
        flex-basis: 100%;
    }
}

.signature-pad-canvas {
    width: 100%;
    height: 250px;
}

.signature-pad {
    background-color: #f2f2f2;
}

.canvas-blocked{
    pointer-events: none;
}

.canvas-blocked:hover{
    cursor: not-allowed;    
}

.nav-linea[data-count]{
    position:relative;
}

.nav-linea[data-count]:after {
    position: absolute;
    right: -0.1em;
    top: -0.45em;
    content: attr(data-count);
    padding: .4em;
    border-radius: 10em;
    line-height: .9em;
    color: white;
    background: #dc3545;
    text-align: center;
    min-width: 2em;
    font: bold 0.7em sans-serif;
    font-weight: bold;
}

.contador[data-count] {
    position:relative;
}

.contador[data-count]:after {
    position: absolute;
    right: 0em;
    top: -0.45em;
    content: attr(data-count);
    padding: .4em;
    border-radius: 10em;
    line-height: .9em;
    color: white;
    background: #dc3545;
    text-align: center;
    min-width: 2em;
    font: bold 0.5em sans-serif;
    font-weight: bold;
}

.input-invisible {
    border: 0;
    background-color: transparent;
    text-align: center;
    outline: none;
}

#map {
    width: 100%;
    height: 320px;
}

.btn-marca {
    color: #FFF;
    font-family: 500;
}

.btn-marca:hover {
    color: #FFF;
    font-family: 700;
}

.reloj {
    /* font-size: 26px; */
    font-family: 'Roboto', sans-serif;;
    letter-spacing: 1px;
    text-align: center;
    /* font-weight: 500; */
}

.padding-marca {
    padding: 7px;
}

.margin-top {
    margin-top: 32px;
}

.form-control{
    background-color: #fafafa!important;
}

.select2-container--bootstrap .select2-selection{
    background-color: #fafafa!important;
}
.select2-container--disabled .select2-selection{
    background-color: #dadada!important;
}

.form-control:disabled, .form-control[readonly]{
    background-color: #dadada!important;
}

/* .modal-dialog,
.modal-content {
    height: 80%;
} */

.modal-body {
    max-height: calc(100% - 120px);
    overflow-y: scroll;
}

.checkbox-menu li label {
    display: block;
    padding: 3px 10px;
    clear: both;
    font-weight: normal;
    line-height: 1.42857143;
    color: #333;
    white-space: nowrap;
    margin:0;
    transition: background-color .4s ease;
}
.checkbox-menu li input {
    margin: 0px 5px;
    top: 2px;
    position: relative;
}

.checkbox-menu li.active label {
    background-color: #cbcbff;
    font-weight:bold;
}

.checkbox-menu li label:hover,
.checkbox-menu li label:focus {
    background-color: #f5f5f5;
}

.checkbox-menu li.active label:hover,
.checkbox-menu li.active label:focus {
    background-color: #b8b8ff;
}

.disabled{
    cursor: not-allowed!important;
    pointer-events: none!important;
}