﻿/* Move down content because we have a fixed navbar that is 50px tall */
body {
    padding-top: 50px;
    padding-bottom: 20px;
}

/* Wrapping element */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior */
.dl-horizontal dt {
    white-space: normal;
}

/* Set widths on the form inputs */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="select"] {
    max-width: 280px;
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width:768px) {

    .jumbotron {
        margin-top: 20px;
    }

    .body-content {
        padding: 0;
    }

}

.pagina-captura {
    width: 100%;
    padding-bottom: 20px;
}

.encabezado-pagina {
    margin-bottom: 20px;
}

.encabezado-pagina h2 {
    margin-bottom: 5px;
}

.texto-secundario {
    color: #6b7280;
    font-size: 16px;
}

.panel-captura,
.panel-resultado {
    background-color: #ffffff;
    border: 1px solid #d9dee3;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
}

.contenedor-imagen {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: 0 auto 20px auto;
    overflow: hidden;
    background-color: #111111;
    border-radius: 8px;
}

.video-camara,
.imagen-previa {
    display: block;
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.guia-etiqueta {
    position: absolute;
    left: 8%;
    top: 12%;
    width: 84%;
    height: 76%;
    border: 3px dashed rgba(255,255,255,.85);
    border-radius: 8px;
    pointer-events: none;
}

.botones-captura {
    text-align: center;
}

.boton-principal {
    min-width: 155px;
    margin: 5px;
}

.mensaje-estado {
    min-height: 24px;
    margin-top: 15px;
    color: #4b5563;
    text-align: center;
    font-size: 15px;
}

.panel-resultado h3 {
    margin-top: 0;
}

.caja-interpretacion {
    width: 100%;
    height: 260px;
    padding: 12px;
    resize: vertical;
    border: 1px solid #aab2ba;
    border-radius: 5px;
    font-family: Consolas, monospace;
    font-size: 15px;
}

/* ---------------------------- */
/* Responsive                   */
/* ---------------------------- */

@media (max-width:767px) {

    .panel-captura,
    .panel-resultado {
        padding: 12px;
    }

    .boton-principal {
        display: block;
        width: 100%;
        margin: 8px 0;
    }

    .caja-interpretacion {
        height: 220px;
    }

}

/* ---------------------------- */
/* VPGrid                       */
/* ---------------------------- */

.contenedor-grid {
    width: 100%;
    overflow-x: auto;
}

.tabla-datos {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 15px;
}

.panel-resultado .tabla-datos thead th {

    background-color: #89724B !important;
    color: #ffffff !important;
    border: 1px solid #7a6542;
    padding: 10px 12px;
    text-align: left;
    font-weight: bold;

}

.tabla-datos tbody td {

    border: 1px solid #d6d6d6;
    padding: 8px 12px;
    vertical-align: middle;

}

.tabla-datos tbody tr:nth-child(even) {

    background: #f8f8f8;

}

.tabla-datos tbody tr:hover {

    background: #eef6ff;

}

.tabla-datos td:first-child {

    width: 260px;
    background: #fafafa;
    font-weight: 600;

}

.tabla-datos td[contenteditable="true"] {

    cursor: text;

}

.tabla-datos td[contenteditable="true"]:focus {

    outline: 2px solid #5bc0de;
    outline-offset: -2px;
    background: #fffef0;

}