﻿/* 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;
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh !important;
    margin: 0;
    overflow-y: auto; /* Mantenemos tu scroll vertical */
}
header {
    flex: 0 0 auto;
    z-index: 1030; /* Asegura que esté por encima */
}
.footer {
    position: sticky !important;
    bottom: 0;
    z-index: 1020;
    background-color: #495057;
    color: white !important;
    height: 40px;
    width: 100%;
    margin-top: auto; /* Empuja el footer si hay poco contenido */
}
#footerContainer {
    color: white;
    padding-top: 15px;
}
header, footer {
    flex: 0 0 auto;
}
/* El main crece */
main#MainContent {
    flex: 1 0 auto;
    min-height: 0; /* evita empujes extra */
    position: relative;
    z-index: auto; 
}

/* Ajuste para que el container no limite el ancho si la tabla es grande */
.container {
    max-width: 100% !important;
    width: 100%;
}

/* Si por herencia quedó el sticky footer viejo, desactívalo explícitamente */
body {
    margin-bottom: 0 !important;
}
body > .container > *:first-child {
    margin-top: 0 !important;
}


@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;
}


.dynamicTable {
    width: 100%;
}


/* Menú =================================*/

#IrisHeader {
    background-image: linear-gradient(#ff0000, rgba(105, 91, 91, 0.62) 140%, #ff0000);
    background-repeat: no-repeat;
    border: 0;
    min-height: 68px; /* opcional */
    height: auto; /* ✅ necesario */
    padding-top: 10px; /* o lo que necesites */
    padding-bottom: 0;
    display: block;
}


/* Reducir altura efectiva del navbar dentro del encabezado */
#IrisHeader .navbar {
    padding-block: .25rem; /* por defecto Bootstrap ~.5rem o más */
    min-height: 0; /* deja que mande el padding/line-height */
    margin-bottom: 0 !important;
}



/* Evita sumar píxeles extra */
#IrisHeader {
    border-width: 0; /* si no necesitas el borde, elimínalo */
}

/* Si mantienes el borde, considera integrarlo sin provocar solapamientos */
#IrisHeader.with-border {
    border-top: 0;
    border-bottom: 1px solid rgba(0,0,0,.15);
}

/* La sombra no suma layout, pero puede causar scroll “visual” en combinación con absolute footer.
Si te pasa, prueba a quitarla o recortar overflow en el contenedor superior. */
#IrisHeader .shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
}



body > .container {
    padding-top: 0; 
}

body > .container > *:first-child {
    margin-top: 0 !important;
}




/* Formularios ========================*/
.count-message {
    background-color: pink;
    padding: 2px 6px;
    margin-top: -32px;
    margin-right: 8px;
    position: relative;
    z-index: 5;
    font-size: 0.835rem;
}

/*.was-validated .form-check-input:valid, .form-check-input.is-valid {
    border-color: #495057;
}
.was-validated .form-check-input:valid:checked, .form-check-input.is-valid:checked {
    background-color: #495057;
}*/

/* Oculta el contador cuando el textarea está deshabilitado */
textarea:disabled + .count-message {
    display: none !important;
}

#FormDocumentNumber{
    margin-bottom: 8px;
}
