
/* 
  Estilos para renderización de documentos
*/


@media screen and (max-width: 767px) {

  .module-grid .module:nth-child(1) {	
    grid-column: span 2;
  }
  
}

#item-root > * {
  font-weight: 400;
}

#item-root > .list-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.item-sons > .list-group {
  display: flex;
  flex-direction: column;
  gap: 0.10rem;
  margin-top: 0.10rem;
}

.item {
  display: flex;
  gap: 0.5rem;
}

.evodoc-main {
  max-width: 96vw;
  margin: auto;
  width: 100%;
  font-size: var(--14px);
  font-weight: normal;
}

.markdown-content {
  font-size: var(--15px) !important;
}

.markdown-content p {
  font-size: var(--15px) !important;
}

.evodoc-container > nav {
  position: sticky;
  top: 16vh; /* Mínimo 16vh desde el top */
  height: calc(100vh - 16vh); /* Altura disponible después del offset */
  max-height: calc(100vh - 16vh);
  overflow-y: auto; /* Scroll propio */
  overflow-x: hidden;
  flex: 0 0 25%; /* Mantiene el ancho fijo (equivalente a col-lg-3) */
  padding: 1rem;
  
  /* Estilos opcionales para el scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 #f7fafc;
}

.evodoc-container > main {
  flex: 1; /* Toma el resto del espacio */
  padding: 1rem 0 1rem 2rem;
  min-height: 100vh;
}

@media (max-width: 768px) {
  .evodoc-container {
    flex-direction: column;
  }
  
  .evodoc-container > nav {
    position: relative;
    top: auto;
    height: auto;
    max-height: none;
    flex: none;
    overflow-y: visible;
  }
  
  .evodoc-container > main {
    padding-left: 1rem;
  }
}

@media (min-height: 800px) {
  .evodoc-container > nav {
    min-height: 400px;
  }
}
		

.doc-icon     { width: 50px !important; }
.doc-logo     { width: 150px !important; }

.doc-w50px    { width: 50px !important; }
.doc-w100px   { width: 100px !important; }
.doc-w150px   { width: 150px !important; }
.doc-w200px   { width: 200px !important; }
.doc-w250px   { width: 250px !important; }
.doc-w300px   { width: 300px !important; }
.doc-w350px   { width: 350px !important; }
.doc-w400px   { width: 400px !important; }

.doc-w10      { max-width: 10%; height: auto; }
.doc-w20      { max-width: 20%; height: auto; }
.doc-w30      { max-width: 30%; height: auto; }
.doc-w40      { max-width: 40%; height: auto; }
.doc-w50      { max-width: 50%; height: auto; }
.doc-w60      { max-width: 60%; height: auto; }
.doc-w70      { max-width: 70%; height: auto; }
.doc-w80      { max-width: 80%; height: auto; }
.doc-w90      { max-width: 90%; height: auto; }
.doc-w100     { max-width: 100%; height: auto; }

.doc-sc       { border: 15px solid #333; border-radius: 15px; max-width: 100%; height: auto; }
.doc-sc40     { border: 15px solid #333; border-radius: 15px; max-width: 40%; height: auto; }
.doc-sc50     { border: 15px solid #333; border-radius: 15px; max-width: 50%; height: auto; }
.doc-sc60     { border: 15px solid #333; border-radius: 15px; max-width: 60%; height: auto; }
.doc-sc70     { border: 15px solid #333; border-radius: 15px; max-width: 70%; height: auto; }
.doc-sc80     { border: 15px solid #333; border-radius: 15px; max-width: 80%; height: auto; }
.doc-sc90     { border: 15px solid #333; border-radius: 15px; max-width: 90%; height: auto; }
.doc-sc100    { border: 15px solid #333; border-radius: 15px; max-width: 100%; height: auto; }

/* CSS completo para el renderizado de Markdown sin Bootstrap */

/* Font weights */
.fw-semibold {
    font-weight: 600;
}

.fw-bold {
    font-weight: 700;
}

.fw-medium {
    font-weight: 500;
}

/* Padding y margin */
.px-3 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.pt-2 {
    padding-top: 0.5rem;
}

.p-1 {
    padding: 0.25rem;
}

.p-3 {
    padding: 1rem;
}

.p-4 {
    padding: 1.5rem;
}

.my-2 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.my-4 {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.ms-4 {
    margin-left: 1.5rem;
}

/* Border radius */
.rounded {
    border-radius: 0.375rem;
}

/* Font style */
.fst-italic {
    font-style: italic;
}

/* Text decoration */
.text-decoration-line-through {
    text-decoration: line-through;
}

/* Colors */
.text-muted {
    color: #6c757d;
}

.bg-light {
    background-color: #f8f9fa;
}

/* Border */
.border-top {
    border-top: 1px solid #dee2e6;
}

/* Max width */
.mw-100 {
    max-width: 100%;
}

/* Clases personalizadas */
.custom-list {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.k-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
    background: white;
}

.k-table th {
  font-weight: 700;
  background: #ccc;
  color: black;
}

.k-table th,
.k-table td {
    border: 1px solid #dee2e6;
}

.shadow-panel {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.bg-quote {
    background-color: #f8f9fa;
    border-left: 4px solid var(--color-blue-700);
}

.text-base {
    font-size: 1rem;
    line-height: 1.5;
}

/* Estilos base para elementos HTML */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 1.6em;
}

h2 {
  font-size: 1.2em;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

ol, ul {
    margin-top: 0;
    margin-bottom: 1rem;
}

blockquote {
    margin: 0;
}

table {
    border-spacing: 0;
}

img {
    vertical-align: middle;
    height: auto;
}

code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.875em;
}

pre {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.875em;
    margin-top: 0;
    margin-bottom: 1rem;
    overflow: auto;
}

hr {
    margin: 1rem 0;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

dl {
    margin-top: 0;
    margin-bottom: 1rem;
}

dt {
    margin-bottom: 0.25rem;
}

dd {
    margin-bottom: 0.5rem;
    margin-left: 0;
}

.evodoc-nav-button {
  display: flex;
  gap: 0.5rem;
}

.evodoc-nav {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 0;
}

.evodoc-nav > li {
  list-style-type: none;
  display: flex;
  align-items: center;
}

/* Estilos para el menú de navegación del documento */
.list-none-imp {
  list-style: none !important;
}

.md-link {
  display: block;
  margin-top: 1rem;
  margin-bottom: 1rem;
  width: fit-content;
}

.pl0 {
  padding-left: 0 !important;
}

.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.gap-0 {
  gap: 0rem;
}

.gap-2 {
  gap: 0.5rem;
}

.w100 {
  width: 100%;
}

/* Hacer el panel del menú sticky */
.nav-menu {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border: 1px solid #dee2e6;
  position: fixed;
  top: 16vh;
  margin-left: 0.5rem;
  width: 16%;
  z-index: 10;
}

#menu, #menu li {
  margin: 0;
  padding: 0;
}

.nav-menu-heading {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #495057;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: all 0.15s ease-in-out;
  font-size: 0.9rem;
  line-height: 1.4;
}

.nav-menu-heading:hover {
  background-color: #e9ecef;
  color: var(--color-blue-700);
  text-decoration: none;
}

.nav-menu-heading:focus {
  outline: 2px solid var(--color-blue-700);
  outline-offset: 2px;
}

.nav-menu-heading.active {
  background-color: var(--color-blue-700);
  color: white;
}

/* Ocultar el menú de navegación en dispositivos móviles */
@media (max-width: 768px) {
  .shadow-panel {
    display: none !important;
  }
}

.doc-current {
  color: black;
  background: #a4d9e1;
  border-radius: 5px;
}