﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Sticky footer styles-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}
/*----------------------------------------------------------------------------------------------------*/
:root {
    --color_fondo: #FDFDFD;
    --color_fondo_claro: #FFFFFF;
    --color_titulo: #222222;
    --color_texto: #333333;
    --color_complementario: #2EA9E2;
    --color_borde: #CECECE;
}

[data-tema='dark'] {
    --color_fondo: #111111;
    --color_fondo_claro: #222222;
    --color_titulo: #FFFFFF;
    --color_texto: #F7F7F7;
    --color_borde: #333333;
    --color_complementario: #CBECFF;
}

*:focus, *:active {
    outline: 0 !important;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    padding-bottom: 60px;
    background-color: var(--color_fondo);
    color: var(--color_texto);
    min-height: 100vh;
}

.container {
    max-width: 90% !important;
}

@media (max-width: 1024px) {
    .container {
        max-width: 100% !important;
    }
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

#cabecera a {
    color: var(--color_texto);
}

    #cabecera a:hover {
        color: var(--color_complementario);
    }

#cabecera #logo img {
    width: 200px;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

a, a:hover {
    color: var(--color_complementario);
}

input[type="text"], input[type="number"], input[type="datetime-local"], input[type="password"], textarea, select {
    height: 30px;
    color: var(--color_texto) !important;
    background-color: var(--color_fondo_claro) !important;
    border: 1px solid var(--color_borde) !important;
}

.border {
    border: 1px solid var(--color_borde) !important;
}

h1 {
    color: var(--color_titulo);
    font-weight: 800;
}

p {
    color: var(--color_texto);
}

.table {
    color: var(--color_texto);
}

    [data-tema='dark'] .table td, .table th {
        border-top: 1px solid var(--color_borde)
    }

[data-tema='dark'] .table-striped tbody tr:nth-of-type(odd), [data-tema='dark'] .table-secondary th {
    background-color: var(--color_fondo_claro);
}

.table th:last-of-type, .table td:last-of-type {
    white-space: nowrap;
    width: 1%;
}

button, .btn {
    border-radius: 50px;
    border: 0;
}

.boton {
    display: inline-block;
    padding: 0.5em 1em;
    border: 2px solid transparent;
}

    .boton:hover {
        border: 2px solid rgba(0, 0, 0, 0.3);
    }

.btn-complementario {
    background-color: var(--color_complementario);
    color: white;
}

[data-tema='dark'] .btn-complementario {
    background-color: var(--color_complementario);
    color: black;
}

.iconos_listado {
    color: var(--color_texto);
    border: 0;
    background-color: transparent;
    padding: 0 0.75em 0 0;
}

    .iconos_listado i {
        font-size: 1.5em;
    }

    .iconos_listado:hover {
        color: var(--color_texto);
    }

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Estilos para el switch del tema claro/oscuro */

.menu_switch_tema {
    display: flex;
    align-items: center;
}

.switch_tema {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 36px;
}

    .switch_tema input {
        display: none;
    }

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: 0.4s;
}

    .slider:before {
        content: "";
        background-color: #FFFFFF;
        bottom: 4px;
        left: 4px;
        width: 16px;
        height: 16px;
        position: absolute;
        transition: 0.4s;
    }

input:checked + .slider {
    background-color: var(--color_complementario);
}

    input:checked + .slider:before {
        transform: translateX(12px);
    }

.slider.round {
    border-radius: 30px;
}

    .slider.round:before {
        border-radius: 50%;
    }


/* --- Lista de registros de un animal --- */

#lista_registros {
    border-top: 1px solid var(--color_borde);
    width: 100%;
}

.linea_registro {
    border-bottom: 1px solid var(--color_borde);
    border-right: 1px solid var(--color_borde);
    border-left: 1px solid var(--color_borde);
    max-height: 0;
    transition: max-height 0.6s ease;
    overflow: hidden;
    background-color: var(--color_fondo);
}

#lista_registros th {
    background-color: var(--color_complementario);
    color: var(--color_fondo);
    font-weight: bold;
    padding: 0.75em;
}

[data-tema='dark'] #lista_registros th {
    background-color: var(--color_fondo_claro);
    color: var(--color_texto);
}

#lista_registros td {
    padding: 0.75em;
}

#lista_registros > .linea_registro:first-child {
}

#lista_registros > .linea_registro:nth-child(odd):not(:first-child) {
    background-color: var(--color_fondo_claro);
}

#lista_registros > .linea_registro:not(:first-child):hover {
    background-color: var(--color_fondo_claro);
}

#lista_basculas, #registro_logs {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-size: 0.875em;
}

    #lista_basculas .peso_lector, #registro_logs > li {
        display: flex;
        justify-content: space-between;
        padding: 0.25em 0.5em;
        line-height: 1.25em;
    }

        #lista_basculas .peso_lector:hover, #registro_logs > li:hover {
            background-color: var(--color_fondo_claro);
        }

#registro_logs {
    max-height: 500px;
    overflow-y: auto;
}

#detalle_registro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#contenido_detalle_registro {
    position: relative;
    padding: 3em 4em;
    background-color: var(--color_fondo_claro);
    display: flex;
    flex-direction: column;
    min-width: 400px;
    border-radius: 8px;
}

#cerrar_detalle_registro {
    position: absolute;
    top: 1em;
    right: 1em;
    cursor: pointer;
}