html,
body {
  min-height: 100vh;
  min-height: 100dvh;            
  display: flex;
  flex-direction: column;
}
#wrap {
  flex: 1 0 auto;
  min-height: 0;                  
  margin: 0 auto; 
}
p.metaTerm {background:#fff8bf 13px 50% no-repeat;border:2px solid #ffd324;color:#eb830c;font-size:120%;padding:5px 11px 5px 20px;}
h1.metaTerm,a.metaTerm{color:#616161;}
h1.metaTerm:before,a.metaTerm:before{content:'<'}
h1.metaTerm:after,a.metaTerm:after{content:'>'}
h2.TThtml{	font-size: 20px;}
.listTE{font-size: 14px;padding-top:4px;}

.check_label {  width: 90%;  float: right;  text-align: left;  margin-top: 4px;}

.thesacronym{padding-right:2px;}
#TE{margin-left:5mm;padding:4px;}
#TG{margin-left:3mm;padding:4px;}
#TR{margin-left:2mm;padding:4px;}
#UP{font-style:italic;margin-left:1mm;padding:4px;}
.NoTerm{color:#7288B5;}
#EQ{margin-left:8mm;padding:4px;}

#main{border-left:1px solid #F70;border-right:1px solid #F70;background:#fff;}
#notas{clear:both;background-color:#f0fcff;margin-bottom:0.5em;border-color:#f0f0f0 #D6D6D6 #D6D6D6 #f0f0f0;border-style:solid;border-width:1px;padding:0.5em;}
#notas > dd{padding-top:6px;padding-bottom:6px;border-top:1px dotted #d85d5d;visibility:inherit;text-align:justify;margin:1%;}
#notas > dt{font-weight:700;}
.justify-text{text-align: justify;}

dfn{
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-style: normal;
font-size: 24px;
font-weight: 500;
line-height: 26.4px;
margin-bottom: 10px;
margin-top: 20px;
display:block;}

.clear{clear:both;}

.error{background:#ffe1da url('../images/icon_error.png') 13px 50% no-repeat;border:2px solid #f34f4f;border-bottom:2px solid #f34f4f;color:#be0b0b;font-size:120%;padding:10px 11px 8px 36px;}
.errorNoImage{background:#ffe1da 13px 50% no-repeat;border:2px solid #f34f4f;color:#be0b0b;font-size:120%;padding:10px 11px 8px 36px;}
.information{background:#dedfff url('../images/icon_information.png') 13px 50% no-repeat;border:2px solid #9bb8d9;color:#406299;font-size:120%;padding:10px 11px 8px 36px;}
.success{background:#e2f9e3 url('../images/icon_success.png') 13px 50% no-repeat;border:2px solid #9c9;color:#080;font-size:120%;padding:10px 11px 8px 38px;}
.warning{background:#fff8bf url('../images/icon_warning.png') 13px 50% no-repeat;border:2px solid #ffd324;color:#eb830c;font-size:120%;padding:10px 11px 8px 38px;}
.warningNoImage{background:#fff8bf 13px 50% no-repeat;border:2px solid #ffd324;color:#eb830c;font-size:120%;padding:10px 11px 8px 38px;}
.successNoImage{background:#e2f9e3;color:#080;padding:1px 5px;}
.help{background:#dedfff url('../images/icon_information.png') 13px 50% no-repeat;border:1px solid #9bb8d9;color:#406299;width:500px;font-size:90%;padding:10px 0 8px 36px;}
.estado_termino12{background:#dedfff;color:#406299;display:block;padding:0 5px;}
.estado_termino13{color:#080;display:block;}
.estado_termino14{background:#ffe1da;color:#be0b0b;display:block;padding:0 5px;}

.editable_textarea{padding-left:5px;padding-right:5px;display:inline;float:none;color:#d85d5d;text-decoration: none;
border-bottom: 1px dashed #08C;}
.code_tema{float:none;display:inline;}
.code_tema:before{content:" >> ";}
.edit_area_term,.editable_selectTE,.editable_select2,.editable_select3,.editable_select4{color:#d85d5d;text-decoration: none;
border-bottom: 1px dashed #08C;}

.eliminar,.button {
  -moz-border-radius:6px;
  -webkit-border-radius:6px;
  border-radius:6px;
  background-color:#000000;
  border:0;
  height:17px;
  line-height:18px;
  padding:1px 6px 1px 6px;
  position:relative;
  font-family:Helvetica, Arial, sans-serif;
  font-size:11px;
  font-weight:bold;
  color:#FFFFFF;
  cursor: pointer;
  cursor: hand;
}

a.button:hover   {
  color:#FFFFFF;
}

a.eliminar:hover   {
  color:#FF0000;
}

a.eliminar   {
  color:#FF0000;
}

.eliminar {
  margin:5px;
}



.form-signin {
  max-width: 330px;
  padding: 15px;
  margin: 0 auto;
}
.form-signin .form-signin-heading,
.form-signin .checkbox {
  margin-bottom: 10px;
}
.form-signin .checkbox {
  font-weight: normal;
}
.form-signin .form-control {
  position: relative;
  height: auto;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 10px;
  font-size: 16px;
}
.form-signin .form-control:focus {
  z-index: 2;
}
.form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}
.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.forgot-password {
  text-decoration: underline;
  color: #888;
}
.forgot-password:hover,
.forgot-password:focus {
  text-decoration: underline;
  color: #666;
}


#footer {
  background-color: #f5f5f5;
  height: auto;      
  flex-shrink: 0;    
}

.push {
  display: none;     
}

#footer {
  background-color: #f5f5f5;
}


/* checkbox css  http://bootsnipp.com/snippets/featured/fancy-bootstrap-checkboxes*/
.form-group-chk input[type="checkbox"] {
    display: none;
}

.form-group-chk input[type="checkbox"] + .btn-group > label span {
    width: 20px;
}

.form-group-chk input[type="checkbox"] + .btn-group > label span:first-child {
    display: none;
}
.form-group-chk input[type="checkbox"] + .btn-group > label span:last-child {
    display: inline-block;
}

.form-group-chk input[type="checkbox"]:checked + .btn-group > label span:first-child {
    display: inline-block;
}
.form-group-chk input[type="checkbox"]:checked + .btn-group > label span:last-child {
    display: none;
}


#setLang { color: #fff; background-color: #5bc0de; border-color: #46b8da; }
#setLang:hover { background-color: #31b0d5; border-color: #269abc; }

/*Custom secondary button*/
.btn-second {
  color: #ffffff;
  background-color: #1E5D94;
  border-color: #0D033D;
  --bs-btn-active-bg: #49247A;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-border-color: #0D033D;
}

.btn-second:hover,
.btn-second:focus,
.btn-second:active,
.btn-second.active,
.open .dropdown-toggle.btn-second {
  color: #ffffff;
  background-color: #49247A;
  border-color: #0D033D;
}

.btn-second:active,
.btn-second.active,
.open .dropdown-toggle.btn-second {
  background-image: none;
}

.btn-second.disabled,
.btn-second[disabled],
fieldset[disabled] .btn-second,
.btn-second.disabled:hover,
.btn-second[disabled]:hover,
fieldset[disabled] .btn-second:hover,
.btn-second.disabled:focus,
.btn-second[disabled]:focus,
fieldset[disabled] .btn-second:focus,
.btn-second.disabled:active,
.btn-second[disabled]:active,
fieldset[disabled] .btn-second:active,
.btn-second.disabled.active,
.btn-second[disabled].active,
fieldset[disabled] .btn-second.active {
  background-color: #1E5D94;
  border-color: #0D033D;
}

.btn-second .badge {
  color: #1E5D94;
  background-color: #ffffff;
}



/* Lastly, apply responsive CSS fixes as necessary */
@media (max-width: 767px) {
  #footer {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

.hidden {
     display:none;
}



.btn-second .badge {
  color: #1E5D94;
  background-color: #ffffff;
}

/* Submenus inside dropdowns (Bootstrap 5 has none) and menus that open on mouse hover */
.dropdown-submenu {
    position: relative;
}
.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -.5rem;
    border-radius: 0 6px 6px 6px;
}
.dropdown-submenu > a {
    position: relative;
    padding-right: 2rem;
}
.dropdown-submenu > a:after {
    border-color: transparent transparent transparent #333;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    content: " ";
    position: absolute;
    top: 50%;
    right: .75rem;
    height: 0;
    margin-top: -5px;
    width: 0;
}
.dropdown-menu > li > .btn {
    display: block;
}
.dropdown-submenu:hover > a:after {
    border-left-color: #555;
}
.dropdown-menu > li > a:hover {
    text-decoration: underline;
}
.dropdown-submenu > .dropdown-menu {
    display: none;
}
.dropdown-submenu.show > .dropdown-menu {
    display: block;
}

@media (max-width: 767.98px) {
  .dropdown-submenu > .dropdown-menu {
      position: static;
      border: 0;
      padding-left: 1rem;
  }
  .navbar-dark .navbar-nav .dropdown-menu {
      background-color: transparent;
      border: 0;
  }
  .navbar-dark .navbar-nav .dropdown-item {
      color: var(--bs-navbar-color);
  }
  .navbar-dark .navbar-nav .dropdown-item:hover,
  .navbar-dark .navbar-nav .dropdown-item:focus {
      color: var(--bs-navbar-hover-color);
      background-color: transparent;
  }
}

@media (min-width: 768px) {
  .navbar .dropdown:hover > .dropdown-menu,
  .nav-tabs .dropdown:hover > .dropdown-menu,
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }
}
/* end on mouse hover menu */

/* Markup from Bootstrap 3 that Bootstrap 5 no longer has */
/* Bootstrap 3 typography: 14px Helvetica, heading sizes and margins */
:root {
    --bs-body-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --bs-body-font-size: .875rem;
    --bs-body-line-height: 1.42857143;
}
h1, .h1 { font-size: 36px; }
h2, .h2 { font-size: 30px; }
h3, .h3 { font-size: 24px; }
h4, .h4 { font-size: 18px; }
h5, .h5 { font-size: 14px; }
h6, .h6 { font-size: 12px; }
h1, h2, h3, .row > :where(h1, h2, h3) { margin-top: 20px; margin-bottom: 10px; }
h4, h5, h6, .row > :where(h4, h5, h6) { margin-top: 10px; margin-bottom: 10px; }
h1, h2, h3, h4, h5, h6 { line-height: 1.1; }
.btn { --bs-btn-font-size: .875rem; }
.btn-sm { --bs-btn-padding-y: 5px; --bs-btn-padding-x: 10px; --bs-btn-font-size: 12px; --bs-btn-border-radius: 3px; }
.btn-xs { --bs-btn-padding-y: 1px; --bs-btn-padding-x: 5px; --bs-btn-font-size: 12px; --bs-btn-border-radius: 3px; }
.btn-lg { --bs-btn-padding-y: 10px; --bs-btn-padding-x: 16px; --bs-btn-font-size: 18px; --bs-btn-border-radius: 6px; }
.badge.rounded-pill { --bs-badge-font-size: 12px; }
.form-control, .form-select { font-size: .875rem; }
.form-text { display: block; margin-bottom: 10px; font-size: inherit; color: #737373; }
.dropdown-menu { --bs-dropdown-font-size: .875rem; }
.pagination { --bs-pagination-font-size: .875rem; }
.pagination-sm { --bs-pagination-font-size: 12px; --bs-pagination-padding-x: 10px; --bs-pagination-padding-y: 5px; }
label { display: inline-block; max-width: 100%; margin-bottom: 5px; font-weight: 700; }
label.btn { margin-bottom: 0; }
legend { width: 100%; margin-bottom: 20px; font-size: 21px; line-height: inherit; border-bottom: 1px solid #e5e5e5; }
/* Bootstrap 3 container widths: full width below 768px, then 750, 970 and 1170px */
@media (max-width: 767.98px) { .container { max-width: none; } }
@media (min-width: 768px) { .container { max-width: 750px; } }
@media (min-width: 992px) { .container { max-width: 970px; } }
@media (min-width: 1200px) { .container { max-width: 1170px; } }
/* Bootstrap 3 gave every column its padding, also outside a .row, and no padding to the other children of a .row */
:where([class^="col-"], [class*=" col-"]) { padding-left: .75rem; padding-right: .75rem; }
.row > :not([class*="col-"]):not(.row) { --bs-gutter-x: 0; }
.row > .row { padding-left: 0; padding-right: 0; }
@media (min-width: 768px) {
    .navbar-text { margin-left: 15px; margin-right: 15px; }
}
.card { margin-bottom: 20px; }
@media (max-width: 767.98px) {
    .table-responsive { margin-bottom: 15px; border: 1px solid #ddd; }
    .table-responsive > .table { margin-bottom: 0; }
}
/* the summary next to the user forms floated beside the form in Bootstrap 3, without column padding */
#cajaAncha { padding-left: 0; }
.panel-group .card { margin-bottom: 0; }
.panel-group .card + .card { margin-top: 5px; }
.well { min-height: 20px; padding: 19px; margin-bottom: 20px; background-color: #f5f5f5; border: 1px solid #e3e3e3; border-radius: 4px; }

@media (min-width: 768px) {
    .dl-horizontal dt { float: left; clear: left; width: 10rem; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .dl-horizontal dd { margin-left: 11rem; }
}
.list-inline > li { display: inline-block; padding-left: .25rem; padding-right: .25rem; }
.pagination { flex-wrap: wrap; margin: 20px 0; }
.pagination > li { display: inline-block; }
.pagination > li > a:not(.page-link), .pagination > li > span { padding: 5px 10px; font-size: 12px; border: 1px solid var(--bs-border-color); margin-left: -1px; text-decoration: none; }
.breadcrumb { padding: 8px 15px; background-color: #f5f5f5; border-radius: 4px; }
.breadcrumb > li { display: inline-block; }
.was-validated .with-errors, .was-validated .row:has(:invalid) label { color: var(--bs-form-invalid-color); }
/* Bootstrap 3 marked only the fields with errors, not the valid ones */
.was-validated :is(.form-control, .form-select):valid { border-color: var(--bs-border-color); }
.was-validated .form-control:valid, .was-validated textarea.form-control:valid { padding-right: .75rem; background-image: none; }
.was-validated .form-select:valid:not([multiple]):not([size]) { --bs-form-select-bg-icon: none; padding-right: 2.25rem; }
.was-validated :is(.form-control, .form-select):valid:focus { border-color: #86b7fe; box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .25); }


/*   PÁGINA DEL VOC: BOX PRINCIPAL: TREE  */

#treeTerm {
    padding-top: 20px;
    padding-left: 20px;
}

#fetchterm #treeTerm {
    padding: 0px;
}

.jqtree-element {
    padding-bottom: 4px;
    padding-top: 4px;
}

/* si buttonLeft = false */
#treeTerm span[role="treeitem"] {
    margin-left: 0px;
}

.TT{
  font-size: 20px;
}


.popover{
    background-color: rgba(0,0,0,0.85);
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.4);
    max-width: 60%; /* // Max Width of the popover (depending on the container!) */
    font-family: 'Helvetica',sans-serif;
    color:white;
    box-shadow: 0 0 5px rgba(0,0,0,0.4);
    font-family: 'Helvetica',sans-serif;
    left: -5px;
    padding: 7px 10px;
    position: absolute;
}

/* Glossarized Content */
.glossarizer_replaced{
border-bottom: 1px #333 dotted;
cursor: help;
display: inline;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/*aporte de BNM */
.sobre {
    border-bottom: 1px solid ;
    padding: 10px 0px 10px 0px;
    align-items: stretch;
}

.sobre dt,
.sobre dd {
    padding: 0px 10px;
}

.sobre dt {
    width: 30%;
    background-color: white;
    text-align: right;
}

.sobre dd {
    width: 70%;
    flex-grow: 1;
    text-align: left;
}

.sobre {
    font-size: 14px;
    font-weight: lighter;
}

@media (max-width: 425px) {
    .sobre .flex {
        display: block;
    }
    .sobre dt,
    .sobre .flex dd {
        width: 100%;
    }
    .sobre dt {
        text-align: left;
        margin-bottom: 10px;
    }

}

.breadcrumb > li + li::before {
    padding: 0 5px;
    color: #000;
    content: "\2192";
}

.right_separator:before {
  color: #ccc;
  padding: 5px,15px,5px,15px;
  content: "| ";
}

.card-header .card-title {
    margin: 0;
    font-size: 16px;
}
.card-header .accordion-toggle {
    color: inherit;
}
.card-header .accordion-toggle:after {
    /* symbol for "opening" panels (chevron-down) */
    content: "";
    float: right;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath stroke='%23000' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath stroke='%23000' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E") no-repeat center / contain;
}
.card-header .accordion-toggle.collapsed:after {
    /* symbol for "collapsed" panels (chevron-right) */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath stroke='%23000' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath stroke='%23000' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E");
}
.panel-group {
    padding: 20px;
    margin-bottom: 20px;
}
.copy-clipboard {
    border-radius: 0;
    vertical-align: inherit;
    font-size: 14px;
    margin-right: 5px;
    border: 0;
  }
.contag { margin: 30px auto; }
.contag a {
    text-decoration: none;
    color: white;
    display: inline-block;
    padding: 5px;
    margin: 0 7px 7px 0;
    border-radius: 5px;
}
.tooltip-inner {
    text-align: left;
}

.nobullet{
  list-style-type: none;
}

.ct-hubs  {
  height: 400px;
  width: 100%;
}

/* Bootstrap 5 underlines links; Bootstrap 3 did not */
a { text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
.btn, .nav-link, .navbar-brand, .dropdown-item, .page-link, .badge,
.btn:hover, .nav-link:hover, .navbar-brand:hover, .page-link:hover, .badge:hover,
.btn:focus, .nav-link:focus, .navbar-brand:focus, .page-link:focus, .badge:focus { text-decoration: none; }
.navbar { margin-bottom: 20px; }
/* the browser focus ring of Bootstrap 3; the faint blue Bootstrap 5 shadow is hard to see on the dark navbar */
.navbar .nav-link:focus-visible {
    box-shadow: none;
    outline: 5px auto Highlight;
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
}

.tab-content { min-height: 14rem; }

.navbar form .form-control { min-width: 0; }
.ui-autocomplete { max-width: 100vw; max-height: 50vh; overflow-y: auto; }

/* Botón de opciones: peso tipográfico y contraste */
.term-options .btn,
.btn-group > .btn-primary {
  font-weight: 600;
  letter-spacing: .01em;
}

/* Menú más ancho para que "Subordinar a un término" no parta en 2 líneas */
#dd-opciones + .dropdown-menu,
.dropdown-menu[aria-labelledby="dd-opciones"] {
  min-width: 18rem;
}

/* Íconos del menú: alineados con el texto */
#dd-opciones + .dropdown-menu .dropdown-item,
.dropdown-menu[aria-labelledby="dd-opciones"] .dropdown-item {
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* Foco visible para teclado (importante en acciones destructivas) */
#dd-opciones:focus-visible,
.dropdown-menu[aria-labelledby="dd-opciones"] .dropdown-item:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

.external-search-card {
  color: inherit;
  border: 1px solid var(--bs-border-color);
  transition: box-shadow .15s ease, transform .15s ease,
              border-color .15s ease;
}
.external-search-card:hover,
.external-search-card:focus-visible {
  border-color: var(--bs-primary);
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .08);
  transform: translateY(-1px);
  text-decoration: none;
}
.external-search-card:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}
.external-search-card img {
  flex-shrink: 0;
  object-fit: contain;
}

.opts-chevron { transition: transform .2s ease; }
[data-bs-toggle="collapse"][aria-expanded="true"] .opts-chevron { transform: rotate(180deg); }