/* Vertical center on bootstrap from: https://stackoverflow.com/questions/22196587/how-to-vertically-center-a-container-in-bootstrap */
.vertical-center {
    min-height: 100%;  /* Fallback for browsers do NOT support vh unit */
    min-height: 100vh; /* These two lines are counted as one :-)       */
  
    display: flex;
    align-items: center;
  }

  .context-menu {
    background-color: #FFFFFF;
  }

  /* Colores de las acciones */
  .acborrar { color: tomato; }
  .acrestaurar { color: lightskyblue; }
  .acdesactivado { color: grey; }

  /* Colores de los menús */
  .menuPrincipal { color: black; }
  .fondoDropdown { 
    /* background-color: rgba(230, 230, 255, 0.9); */
    border: solid 1px rgba(128,128,128,0.9);
    box-shadow: 2px 2px 2px 1px rgba(0,0,0,0.2);
  }
  .separadorDropdown { color: black;}

  /* Estilos edición */
  .bordederecho { padding-right: 1em; border-right: solid 1px grey; }
  .bordeizquierdo { padding-left: 1em; border-left: solid 1px grey;}


  /* 
     Cuadros modales de consulta
  */
  .modal-dialog .modal-content {
    box-shadow: 0 27px 24px 0 rgba(0, 0, 0, .2), 0 40px 77px 0 rgba(0, 0, 0, .22);
    border-radius: 6px;
    border: none;
  }
  .modal-header { border: none; }
  .modal-body { border: none; }
  .modal-dialog .modal-footer {
    border: none;
    padding: 24px;
  }
  
  /*
    Formatos de texto del documento del IHM
  */

  /* Formato de texto por defecto */
  .textoBaseIHM { 
    font-family: "Gill Sans", "Gill Sans MT"; font-size: 9pt; font-style: normal; 
    text-align: justify !important;
    text-indent: 6em;
  }
  /* Formato de texto de capítulos */
  .capitulosIHM { font-family: "Gill Sans", "Gill Sans MT"; font-size: 12pt; font-style: normal; text-align: center; }
  .capitulosIHMTexto { font-family: "Gill Sans", "Gill Sans MT"; font-size: 11pt; font-weight: bold; text-align: center; }
  .apartadosIHM_1 { font-family: "Gill Sans", "Gill Sans MT"; font-size: 9pt; font-style: normal; text-align: center;  }
  /* Encabezados y pies */
  .encabezadoIHM { font-family: "Gill Sans", "Gill Sans MT"; font-size: 8pt; font-style: normal; text-align: left; }
  .pieIHM { font-family: "Gill Sans", "Gill Sans MT"; font-size: 8pt; font-style: normal; text-align: center; }
  /* Epigrafes de figuras */
  .epigrafeFigurasIHM { font-family: "Gill Sans", "Gill Sans MT"; font-size: 9pt; font-style: normal; text-align: center; }
  /* Tablas */
  .tablaIHM { font-family: "Gill Sans", "Gill Sans MT"; font-size: 6pt; font-style: bold; text-align: center; border: black 1px solid; } 
  .tablaIHMth { font-family: "Gill Sans", "Gill Sans MT"; font-size: 6pt; font-style: bold; text-align: center; border: black 1px solid; }
  .tablaIHMtr { font-family: "Gill Sans", "Gill Sans MT"; font-size: 7pt; font-style: bold; text-align: center; }
  .tablaIHMtd { font-family: "Gill Sans", "Gill Sans MT"; font-size: 7pt; font-style: normal; text-align: center; border-left: black 1px solid; border-right: black 1px solid;}
  
  /* Índices */
.conpuntosR{}
.conpuntosR::after {
    content: " .......................................................................................................................................... ";
    position: absolute;
    padding-left: 5px;
    }

table.sinbordes { border: 0px; }
table.sinbordes td, tr { border: 0px;}

/* Espacio */
.presentacion { width: calc(297/210 * 9/16 * 100%); margin-left: auto; margin-right: auto; }

/* Rellenos con padding. Adaptado de: https://markentier.tech/posts/2021/03/responsive-toc-leader-lines-with-css/ */
.entry {
  display: grid;
  grid-template-columns: auto max-content;
  align-items: end;
  gap: 0 .25rem;
}
.chapter {
  grid-area: 1;
  position: relative;
  overflow: hidden;
}
.chapter::after {
  position: absolute;
  padding-left: .25ch;
  content: " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "
  ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "
  ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ";
  text-align: right;
}
.page {
  grid-area: 1 / 3;
}