.error {
    filter: drop-shadow(0px 0px 2px red);
}

.error + .error-info {
    display: block;
    color: black !important;
    font-size: 0.8em;
    margin-top: -4px;
    margin-bottom: 4px;
    font-style: italic;
}

.error-info {
    display: none;
}

button:active,
input[type=button]:active {
    -webkit-animation: jello-horizontal 0.9s both;
    animation: jello-horizontal 0.9s both;
}


/* ----------------------------------------------
 * Generated by Animista on 2021-6-5 8:8:29
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */


/**
 * ----------------------------------------
 * animation jello-horizontal
 * ----------------------------------------
 */

@-webkit-keyframes jello-horizontal {
    0% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }

    30% {
        -webkit-transform: scale3d(1.25, 0.75, 1);
        transform: scale3d(1.25, 0.75, 1);
    }

    40% {
        -webkit-transform: scale3d(0.75, 1.25, 1);
        transform: scale3d(0.75, 1.25, 1);
    }

    50% {
        -webkit-transform: scale3d(1.15, 0.85, 1);
        transform: scale3d(1.15, 0.85, 1);
    }

    65% {
        -webkit-transform: scale3d(0.95, 1.05, 1);
        transform: scale3d(0.95, 1.05, 1);
    }

    75% {
        -webkit-transform: scale3d(1.05, 0.95, 1);
        transform: scale3d(1.05, 0.95, 1);
    }

    100% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
}

@keyframes jello-horizontal {
    0% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }

    30% {
        -webkit-transform: scale3d(1.25, 0.75, 1);
        transform: scale3d(1.25, 0.75, 1);
    }

    40% {
        -webkit-transform: scale3d(0.75, 1.25, 1);
        transform: scale3d(0.75, 1.25, 1);
    }

    50% {
        -webkit-transform: scale3d(1.15, 0.85, 1);
        transform: scale3d(1.15, 0.85, 1);
    }

    65% {
        -webkit-transform: scale3d(0.95, 1.05, 1);
        transform: scale3d(0.95, 1.05, 1);
    }

    75% {
        -webkit-transform: scale3d(1.05, 0.95, 1);
        transform: scale3d(1.05, 0.95, 1);
    }

    100% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
}


body {
    height: 100vh;
    overflow-y: hidden;
}

body.cached {
    border: 4px dashed goldenrod;
}

body.failed {
    border: 4px dashed rgb(192, 28, 28);
}

.circle {
    border-radius: 100%;
    background-color: black;
    width: 1.5em;
    aspect-ratio: 1;
    display: inline-block;
    text-align: center;
}

.square {
    border-radius: 4px;
    background-color: black;
    border: 1px dotted;
    display: inline-block;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    opacity: 1;
    position: absolute;
    right: -4px;
    top: -4px;
    margin: 2px;
    padding: 0px 4px;
    font-weight: bold;
}

input[type="file"] {
    display: none;
}


.adjuntos {
    display: inline-flex;
}

.adjuntos>div {
    margin: 4px;
    width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

.adjuntos>div>label {
    width: 100%;
    text-align: center;
    margin: 0px;
    /* border-bottom-left-radius: 5px 10px ;
    border-bottom-right-radius: 5px 10px ; */
    border-bottom-left-radius: 10%;
    border-bottom-right-radius: 10%;
    background-color: #f6f6f688;
    margin-top: 2px;
}

/* 
.adjuntos>div>[data-anexo]+label.otro {
    background-color: #f6f60055;
}

.adjuntos>div>[data-anexo]+label.bascula {
    background-color: #00f60055
}

.adjuntos>div>[data-anexo]+label.desifeccion {
    background-color: #f600f655;
} */

.adjuntos>div>[data-anexo].editable+.icon-locked {
    display: none;
}

.adjuntos>div>[data-anexo].no-editable+.icon-locked {
    width: 14px;
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: silver;
    padding: 2px
}


.adjuntos>div>img {
    width: 60px;
    aspect-ratio: 1;
    border-radius: 10% 10% 0% 0%;
}

.adjuntos>.add>img {
    width: 80%;
}

@media screen and (min-width: 768px) and (max-width: 991px)
/*and (orientation: vertical)*/
    {
    header {
        font-size: 0.75em;
    }
}


@media screen and (max-width: 767px)
/*and (orientation: vertical)*/
    {
    header {
        font-size: 0.65em;
    }
}

#main {
    user-select: none;
}

#main>div {
    height: -webkit-fill-available;
    height: -moz-available;
    height: fill-available;
}

#signature-pad>div.signature-pad--body {
    max-width: 400px;
    aspect-ratio: 1;
    align-self: center;
    border: 2px solid black;
}

#signature-pad {
    background-color: #f6f6f688;
}


.adjuntos>img {
    border: 1px dashed black;
    border-radius: 5px;
    margin: auto;
    margin: auto 2px;
    aspect-ratio: 1;
    object-fit: scale-down;
    width: 48px
}

.adjuntos {
    overflow-x: auto;
}



.fs-7 {
    font-size: 0.8rem !important
}


@media (min-width: 768px) {
    .overflow-md-hidden {
        overflow-x: hidden !important;
    }

    /* .fs-7 {
        font-size: 1rem !important;
    } */
}

@media (orientation: landscape) and (max-height: 512px) {
  .mt-2 {
    margin-top: 0.1rem !important; /* Ejemplo: ajusta el margen superior */
  }
}

/* 
#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: transparent;
    border: 3px solid #3c3c3c;
    border-radius: 50%;
    text-align: center;
    line-height: 150px;
    font-family: sans-serif;
    font-size: 20px;
    color: #c0ff00;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 10px #c0ff00;
    box-shadow: 0 0 20px rgba(0, 0, 0, .5);
}

#loading:before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid #c0ff00;
    border-right: 3px solid #c0ff00;
    border-radius: 50%;
    animation: animateC 2s linear infinite;
}

#loading>span {
    display: block;
    position: absolute;
    top: calc(50% - 2px);
    left: 50%;
    width: 50%;
    height: 4px;
    background: transparent;
    transform-origin: left;
    animation: animate 2s linear infinite;
}

#loading>span:before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #c0ff00;
    top: -6px;
    right: -8px;
    box-shadow: 0 0 20px #c0ff00;
}

@keyframes animateC {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes animate {
    0% {
        transform: rotate(45deg);
    }

    100% {
        transform: rotate(405deg);
    }
} */

#progress.visible {
    display: flex;
}

#progress {
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
}

#progress #backbar {
    height: 10px;
    width: 90vw;
    max-width: 300px;
    background-color: black;
    border: 1px solid white;
    position: relative;
}

#progress #frontbar {
    position: absolute;
    height: 100%;
    width: 0%;
    background-color: rgb(255, 255, 255);
}


#loading {
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    background: #f0f8ffdb;
    opacity: 0;
    transition: opacity 0.5s;
}

#loading.visible {
    display: flex;
    opacity: 1;
    transition: opacity 0.5s;
}

#loading .loader {
    max-width: 15rem;
    width: 100%;
    height: auto;
    stroke-linecap: round;
}

#loading circle {
    fill: none;
    stroke-width: 3.5;
    animation-name: preloader;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    transform-origin: 170px 170px;
    will-change: transform;
}


#loading circle:nth-of-type(1) {
    stroke-dasharray: 550px;
}

#loading circle:nth-of-type(2) {
    stroke-dasharray: 500px;
}

#loading circle:nth-of-type(3) {
    stroke-dasharray: 450px;
}

#loading circle:nth-of-type(4) {
    stroke-dasharray: 300px;
}

#loading circle:nth-of-type(1) {
    animation-delay: -0.15s;
}

#loading circle:nth-of-type(2) {
    animation-delay: -0.3s;
}

#loading circle:nth-of-type(3) {
    animation-delay: -0.45s;
}

#loading circle:nth-of-type(4) {
    animation-delay: -0.6s;
}

@keyframes preloader {
    50% {
        transform: rotate(360deg);
    }
}

#previsualizar {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    max-width: 90vw;
    max-height: 80vh;
    position: absolute;
    width: 90vw;
    /* height: calc(100vh - 220px); */
    left: 5vw;
}

#previsualizar img {
    width: 100%;
    height: 100%;
    position: relative;
    object-fit: scale-down;
    max-height: 70vh;
}

.previsualizar--footer {
    padding: 10px;
    /* position: absolute;
    top: calc(100vh - 220px); */
}

.previsualizar--footer .categorias {
    display: none;
}

.previsualizar--body {
    margin: auto;
    width: 100%;
    height: 100%;
    overflow: auto;
}

a:not([class]) {
    text-decoration: none;
}

a:not([class]):hover {
    text-decoration: underline;
}

.integrado .hidden-for-integrado,
.transportista .hidden-for-transportista,
.visitador .hidden-for-visitador,
.veterinario .hidden-for-veterinario,
.usuario .hidden-for-usuario,
.usuario .visible-for-supervisor,
.usuario .visible-for-coordinator {
    display: none !important;
}

.visible-for-supervisor,
.visible-for-coordinator,
.hidden-for-usuario {
    color: deepskyblue;
}

.visible-for-pienso,
.visible-for-transportista,
.visible-for-veterinario,
.visible-for-visitador,
.visible-for-integrado,
.visible-for-egg,
.visible-for-coordinador,
.visible-for-supervisor {
    display: none;
}

.pienso .visible-for-pienso,
.transportista .visible-for-transportista,
.visitador .visible-for-visitador,
.integrado .visible-for-integrado,
.egg .visible-for-egg,
.veterinario .visible-for-veterinario,
.coordinador .visible-for-coordinador,
.supervisor .visible-for-supervisor {
    display: block !important;
}

.links img {
    width: 40px;
    height: 40px;
}

@media (min-width: 577px) and (max-width: 768px) {
    .links img {
        width: 50px;
        height: 50px;
    }
}

@media (min-width: 769px) {
    .links img {
        width: 64px;
        height: 64px;
    }
}


.d-contents {
    display: contents;
}

.deleted {
    color: red !important;
}

.deleted img {
    filter: brightness(0) saturate(100%) invert(21%) sepia(100%) saturate(7500%) hue-rotate(-10deg);
}

.border-dotted {
    border-style: dotted !important ;
}

.border-dashed {
    border-style: dashed !important ;
}

