/** =======================
 * GPU REEL ID MAIN
 ===========================*/
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
.modal-backdrop {
  z-index: auto !important;
}
.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  background-clip: padding-box;
  border: 0 solid rgba(0, 0, 0, 0.2);
  border-radius: 10px !important;
  outline: 0;
}
.modal-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 !important;
  color: #000 !important;
  border-bottom: 0 solid #e9ecef;
  border-top-left-radius: 10px !important;
  border-top-right-radius: 10px !important;
}
.modal-title {
  margin-bottom: 0;
  line-height: 1.5;
  color: #000 !important;
}
.btn-light-cerrar {
  font-size: 20px !important;
  font-family: Microsoft Sans Serif !important;
  font-weight: 200 !important;
  /*transform: scaleX(3) !important;*/
  font-stretch: ultra-expanded !important;
  text-align: center !important;
  line-height: 0 !important;
  color: #888d92 !important;
  border-color: none !important;
  margin: -10px 0px 0px 0px;
  width: 45px !important;
  height: 30px !important;
  border-radius: 0px !important;
  border-top-right-radius: 6px !important;
}
.btn-light-cerrar:hover {
  color: #fff !important;
  background-color: #ef5350 !important;
  border-color: none !important;
}
.btn-light-alert {
  color: #fff !important;
  background-color: #ef5350 !important;
  border-color: none !important;
  margin: 5px 5px 5px 5px !important;
}
.btn-light-alert:hover {
  color: #fff !important;
  background-color: #6c3c3c !important;
  border-color: none !important;
}
.btn-light-alert-succes {
  color: #fff !important;
  background-color: #0acc95 !important;
  border-color: none !important;
  margin: 5px 5px 5px 5px !important;
}
.btn-light-alert-succes:hover {
  color: #fff !important;
  background-color: #3c6c5f !important;
  border-color: none !important;
}
.btn-light-alert-restart {
  color: #fff !important;
  background-color: #545b62 !important;
  border-color: none !important;
  margin: 5px 5px 5px 5px !important;
}
.btn-light-alert-restart:hover {
  color: #fff !important;
  background-color: #454a4f !important;
  border-color: none !important;
}
.btn-light-alert-continuar {
  color: #fff !important;
  background-color: #fb8c00 !important;
  border-color: none !important;
  margin: 5px 5px 5px 5px !important;
}
.btn-light-alert-continuar:hover {
  color: #fff !important;
  background-color: #4a25d6 !important;
  border-color: none !important;
}
.btn-datatble-imprimir {
  color: #fff !important;
  background: url(https://mbvc.com.mx/public/img/dashboard/imprimir.png)
    no-repeat;
  background-size: 30px 30px;
  background-position: center;
  width: 40px;
  height: 40px;
  background-color: transparent !important;
  border-color: none !important;
  border-radius: 5px !important;
  border: none !important;
}
.btn-datatble-imprimir:hover {
  color: #fff !important;
  border-color: none !important;
  background-color: rgba(98, 215, 253, 0.3) !important;
  border-radius: 5px !important;
  border: none !important;
}
.btn-datatble-pdf {
  color: #fff !important;
  background: url(https://mbvc.com.mx/public/img/dashboard/pdf3.png) no-repeat;
  background-size: 30px 30px;
  background-position: center;
  width: 40px;
  height: 40px;
  background-color: transparent !important;
  border-color: none !important;
  border-radius: 5px !important;
  border: none !important;
}
.btn-datatble-pdf:hover {
  color: #fff !important;
  border-color: none !important;
  background-color: rgba(98, 215, 253, 0.3) !important;
  border-radius: 5px !important;
  border: none !important;
}
.btn-datatble-excel {
  color: #fff !important;
  background: url(https://mbvc.com.mx/public/img/dashboard/excel.png) no-repeat;
  background-size: 30px 30px;
  background-position: center;
  width: 40px;
  height: 40px;
  background-color: transparent !important;
  border-color: none !important;
  border-radius: 5px !important;
  border: none !important;
}
.btn-datatble-excel:hover {
  color: #fff !important;
  border-color: none !important;
  background-color: rgba(98, 215, 253, 0.3) !important;
  border-radius: 5px !important;
  border: none !important;
}
.btn-datatble-copiar {
  color: #fff !important;
  background: url(https://mbvc.com.mx/public/img/dashboard/copiar.png) no-repeat;
  background-size: 30px 30px;
  background-position: center;
  width: 40px;
  height: 40px;
  background-color: transparent !important;
  border-color: none !important;
  border-radius: 5px !important;
  border: none !important;
}
.btn-datatble-copiar:hover {
  color: #fff !important;
  border-color: none !important;
  background-color: rgba(98, 215, 253, 0.3) !important;
  border-radius: 5px !important;
  border: none !important;
}
.btn-datatble-nomeclatura {
  color: #fff !important;
  background: url(https://mbvc.com.mx/public/img/dashboard/ayuda.png) no-repeat;
  background-size: 30px 30px;
  background-position: center;
  width: 40px;
  height: 40px;
  background-color: transparent !important;
  border-color: none !important;
  border-radius: 5px !important;
  border: none !important;
}
.btn-datatble-nomeclatura:hover {
  color: #fff !important;
  border-color: none !important;
  background-color: rgba(98, 215, 253, 0.3) !important;
  border-radius: 5px !important;
  border: none !important;
}
.btn-datatble-mostrar {
  background: url(https://mbvc.com.mx/public/img/dashboard/flechaa1.png)
    no-repeat;
  background-size: 10px 10px;
  background-position: right;
  font-size: 12px !important;
  margin-left: -15px;
  width: 160px;
  height: 40px;
  margin-right: 20px !important;
  background-color: transparent !important;
  border-color: none !important;
  color: #000 !important;
  border-radius: 5px !important;
  border: none !important;
}
.btn-datatble-mostrar:hover {
  color: #515151 !important;
  background-color: #e5e5e5 !important;
  border-color: none !important;
  background-color: transparent !important;
  border-radius: 5px !important;
  border: none !important;
}
.btn-datatble-resultados1 {
  color: #fff !important;
  background: url(https://mbvc.com.mx/public/img/dashboard/resultados1.png)
    no-repeat;
  background-size: 30px 30px;
  background-position: center;
  width: 40px;
  height: 40px;
  background-color: transparent !important;
  border-color: none !important;
  border-radius: 5px !important;
  border: none !important;
}
.btn-datatble-resultados1:hover {
  color: #fff !important;
  border-color: none !important;
  background-color: rgba(98, 215, 253, 0.3) !important;
  border-radius: 5px !important;
  border: none !important;
}
.btn-datatble-refrescar {
  color: #fff !important;
  background: url(https://mbvc.com.mx/public/img/dashboard/actualizarpaswd01.png)
    no-repeat;
  background-size: 30px 30px;
  background-position: center;
  width: 40px;
  height: 40px;
  background-color: transparent !important;
  border-color: none !important;
  border-radius: 5px !important;
  border: none !important;
}
.btn-datatble-refrescar:hover {
  color: #fff !important;
  border-color: none !important;
  background-color: rgba(98, 215, 253, 0.3) !important;
  border-radius: 5px !important;
  border: none !important;
}

.movi {
  margin: 5px 5px 5px 25px;
  width: 30px !important;
}
.movi2 {
  margin: 2px 5px 5px 10px;
  width: 25px !important;
}
.movi3 {
  margin: 0px 5px 0px 0px;
  width: 20px !important;
}
.movi4 {
  margin: 0px 5px 0px 0px;
  width: 25px !important;
}
.movi5 {
  margin: -5px 0px 0px 0px;
  width: 25px !important;
}
.movi6 {
  margin: 0px 2px 0px 0px;
  width: 15px !important;
}
.movi7 {
  margin: 0px 2px 0px 0px;
  width: 40px !important;
  height: 40px !important;
}
.movi8 {
  margin: -4px 4px 0px 5px;
  width: 20px !important;
}
.movi9 {
  margin: -5px 4px 0px 5px;
  width: 40px !important;
}
.movi10 {
  margin: 0px 0px 0px 2px;
  width: 30px !important;
}
.movi11 {
  margin: -5px 4px 0px 5px;
  width: 100px !important;
}
.logoclienteimp {
  margin: 0px 0px 10px 0px;
  width: 200px !important;
}
.logoclientenombre {
  margin: 0px 0px 10px 0px !important;
  width: 300px !important;
  font-size: 12px !important;
}
.principalchart {
  max-width: 90% !important;
  width: 100%;
  height: 320px;
  padding: 0px 20px 0px 20px !important;
}
.secondchart {
  max-width: 90% !important;
  width: 100% !important;
  height: 220px;
}
.thirdchart {
  max-width: 90% !important;
  width: 100% !important;
  height: 220px;
}
.plecaN {
  width: 100%;
  margin-top: 0px !important;
  font-size: 14px !important;
  color: #000 !important;
  background: linear-gradient(
    to right,
    rgba(199, 217, 228, 1),
    rgba(199, 217, 228, 0)
  );
  padding: 7px 4px 7px 20px !important;
  margin-left: 0px !important;
  margin-right: 10px !important;
}
.cuerpoclientegr3 {
  margin: 20px 10px 10px 10px !important;
  width: 100% !important;
  font-size: 12px !important;
}
.title {
  margin: 0px 0px 0px 20px;
  font-size: 14px !important;
  font-weight: bold !important;
}
.dictamen {
  margin: 0px 0px 0px 20px;
  font-size: 12px !important;
  font-weight: normal !important;
}
.indice {
  margin: 0px 20px 0px 20px;
  font-size: 12px !important;
  text-align: justify !important;
  max-width: 90% !important;
  font-weight: normal !important;
}
.no-print {
  visibility: visible;
}
.print {
  visibility: hidden;
  display: none;
}
.alert {
  margin: 5px 5px 5px 5px;
  text-align: center;
}
.form-control-lg {
  min-height: calc(1.5em + 1rem + 2px);
  padding: 0.5rem 1rem;
  font-size: 1em !important;
  border-radius: 4px;
  border: 1px solid #cbe2ff !important;
}
.form-select-lg {
  min-height: calc(1.5em + 1rem + 2px);
  padding: 0.5rem 1rem;
  font-size: 1em !important;
  border-radius: 4px;
  border: 1px solid #cbe2ff !important;
}
.dt-button-collection {
  display: flex;
  flex-flow: row wrap;
  position: absolute !important;
  padding: 2px;
  width: 130px;
  align-items: start;
  justify-content: start;
}
.button-page-length {
  color: #000 !important;
  font-size: 12px !important;
  background-color: #fff !important;
  background: url(https://mbvc.com.mx/public/img/dashboard/flechad.png)
    no-repeat;
  background-size: 10px 10px;
  background-position: 5px 10px !important;
  width: 130px;
  height: 30px;
  border-radius: 0px !important;
  border-bottom: 1px solid #000 !important;
  margin: 0px 5px 0px 5px !important;
  border: none !important;
  z-index: 1200 !important;
}
.button-page-length:hover {
  color: #000 !important;
  background-color: #dadada !important;
  width: 130px;
  height: 30px;
  border-radius: 0px !important;
  border-bottom: 1px solid #000 !important;
  margin: 0px 5px 0px 5px !important;
  border: none !important;
  z-index: 1200 !important;
}
.box {
  display: flex;
  width: 100%;
  height: 50vh;
  flex-wrap: nowrap;
}
.box1 {
  height: 600px;
  /* Or whatever */
}
.box2 {
  width: 100%;
  height: 110px;
  /* Or whatever */
}
.box3 {
  display: flex;
  flex-flow: row wrap;
  height: 110px;
  margin-left: 2%;
  /* Or whatever */
}
hr {
  margin: 6px 0 !important;
  color: inherit;
  background-color: currentColor;
  border: 0;
  opacity: 0.25;
}
.flex-container {
  display: flex;
  flex-flow: row wrap;
  padding: 2px;
  align-items: start;
  justify-content: start;
}
.flex-container div {
  width: 30%;
  margin: 1%;
}
.flex-container-quest {
  display: flex;
  flex-flow: row wrap;
  padding: 2px;
  align-items: start;
  justify-content: start;
}
.flex-container-quest div {
  width: 98%;
  margin-bottom: 2em;
}

.charts {
  display: flex;
  flex-flow: row nowrap;
}
.charts div {
  flex-grow: 1;
  margin: 0 !important;
  width: auto;
}
.charts2 {
  display: flex;
  flex-flow: row wrap;
  /*background-color: #003366;*/
  align-items: center;
  justify-content: center;
}
.charts2 div {
  flex-basis: 49%;
  /*border: 1px solid #ddd !important;*/
  width: auto;
  margin: 0%;
}
.dictamenf {
  display: flex;
  flex-flow: row wrap;
  width: 100%;
  /*background-color: #003366;*/
}
.dictamenf div {
  flex-grow: 1;
  margin: 0 !important;
  width: 100%;
  text-align: center;
  /*border: 1px solid #ddd !important;*/
  font-size: 24px;
}
.dictamenf div img {
  width: 70%;
}
.dictamenC {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  /*background-color: #003366;*/
}
.dictamenC div {
  flex-grow: 1;
  margin: 0 !important;
  width: 100%;
  text-align: center;
  /*border: 1px solid #ddd !important;*/
  font-size: 12px;
}
.dictamenC div img {
  width: 200px;
}
.boxmenup {
  display: flex;
  flex-wrap: wrap;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  height: 90px;
  /* Or whatever */
}
.boxtareas {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;

  /* Or whatever */
}
.contenedort {
  width: 40px;
  height: 40px;
  margin-top: 20px !important;
}
.contenedort a {
  background-color: none;
  transition: background-color 0.5s;
  border: none !important;
  border-radius: 5px !important;
  text-align: center;
  padding: 10px 5px 10px 5px;
  margin: -10px 5px -10px 5px;
}
.contenedort a:hover {
  background-color: rgba(255, 255, 255, 0.6) !important;
  border-radius: 5px !important;
  border: none !important;
}
.contenedort img {
  width: 30px !important;
  height: 30px !important;
}
.contenedort img :hover {
  width: 30px !important;
  height: 30px !important;
}

.contenedort:nth-of-type(5) {
  width: 72px;
  height: 40px;
  font-size: x-small;
  margin-top: 20px !important;
  position: absolute;
  right: 0;
  padding: 3px 1px 1px 1px;
  margin-right: 1px !important;
}
#campana {
  width: 20px !important;
  height: 20px !important;
}
#punto {
  width: 8px !important;
  height: 8px !important;
  position: absolute;
  margin-top: -4px !important;
  margin-left: -8px !important;
}
.boxlogout {
  display: flex;
  flex-wrap: wrap;
  flex-flow: row wrap;
  align-items: flex-start;
  justify-content: space-between;
  height: 40px;
  /* Or whatever */
}
.boxlogout1 {
  margin: 0 5% !important;
  height: 40px;
  margin-top: 10px !important;
}
.boxlogout1 img {
  width: 30px !important;
  height: 30px !important;
}
.boxlogout1 a {
  background-color: none;
  transition: background-color 0.5s;
  border: none !important;
  border-radius: 5px !important;
  text-align: center;
  padding: 10px 5px 10px 5px;
  margin: -10px 5px -10px 5px;
}
.boxlogout1 a:hover {
  background-color: rgba(255, 255, 255, 0.4) !important;
  border-radius: 5px !important;
  border: none !important;
}
.boxlogout2 {
  margin-left: auto !important;
  margin-right: 5% !important;
  height: 40px;
  margin-top: 10px !important;
}
.boxlogout2 img {
  width: 30px !important;
  height: 30px !important;
}
.boxlogout2 a {
  background-color: none;
  transition: background-color 0.5s;
  border: none !important;
  border-radius: 5px !important;
  text-align: center;
  padding: 10px 5px 10px 5px;
  margin: -10px 5px -10px 5px;
}
.boxlogout2 a:hover {
  background-color: rgba(255, 255, 255, 0.4) !important;
  border-radius: 5px !important;
  border: none !important;
}
html {
  padding: 0;
  margin: 0;
  height: 99.9%;
  background-color: #2a3447 !important;
  background: #2a3447 !important;
  /*background: #0e65a8;*/
  min-height: 0% !important;
  color: #000;
  font-family: "Open Sans", Arial, Helvetica, Sans-serif, Verdana, Tahoma;
}
body[data-theme="dark"] {
  color: #b2b9bf !important;
}
body {
  padding: 0;
  margin: 0;
  height: 100% !important;
  font-family: "Open Sans", Arial, Helvetica, Sans-serif, Verdana, Tahoma !important;
}
@media screen and (max-width: 375px) {
  html {
    padding: 0;
    margin: 0;
    height: 100%;
    background: url(https://mbvc.com.mx/public/img/fondom.jpg) no-repeat;
    background-size: 100% 100%;
    /*background: #0e65a8;*/
    color: #000;
    font-family: "Open Sans", Arial, Helvetica, Sans-serif, Verdana, Tahoma;
  }
}
.header {
  color: #818282;
  font-size: 14px;
  font-weight: 600;
}
.imghead {
  box-shadow: 0 0 40px -12px #000;
  border-radius: 5px;
  margin-right: 50px;
  margin-left: 5px;
  margin-top: 4px;
  margin-bottom: 7px;
  vertical-align: middle;
}
/*.header_left_box {}*/
.header_right_box {
  float: right;
}
.header a {
  text-decoration: none;
}
.header li.active a,
.header li.active:hover a {
  color: #fff;
  background-color: #fff;
}
.header li:hover a {
  color: #fff;
}
.tableconect {
  color: #1c1c1c;
  font-weight: normal;
  float: left;
  color: #fff;
  border: none !important;
  background-color: transparent !important;
}
/* ------------------------------------------------------------------------------------------*/
.content {
  position: absolute;
  display: inline-block;
  padding: 0px 0px;
  width: 99.9%;
  margin-left: auto;
  margin-right: auto;
  /*float: left;*/
  transition-property: opacity, left, top, right;
}
/* ------------------------------------------------------------------------------------------*/
/* ------------------------------------------------------------------------------------------*/
.confirm {
  box-shadow: 0 0 40px -12px #000;
  margin: calc(250vh - 220px) auto;
  color: #000;
  position: absolute;
  margin: 0 auto;
  left: 0;
  right: 0;
  margin-top: 6% !important;
  width: 20%;
  font-family: Arial !important;
  font-size: 12px !important;
  background-color: #fff !important;
  margin-top: 60px !important;
  border: 1px solid #ddd !important;
}
.download {
  text-align: center !important;
  cursor: pointer !important;
  text-decoration: none !important;
  background: #418bca;
  color: #f89a14;
  font-family: "Arial";
  font-size: 12px !important;
  width: 130px !important;
  height: 22px !important;
  float: right !important;
  margin: 0px 0px 15px 15px !important;
  padding: 4px 4px 4px 4px !important;
}
.dt-center {
  text-align: center !important;
}
#grey_color {
  color: #000 !important;
  font-size: 14px;
}
/* ------------------------------------------------------------------------------------------*/
@media screen and (min-width: 480px) {
  .head {
    background: transparent;
    background-size: 100% 100%;
    font-family: Arial;
    font-size: 21px;
    color: #fff;
    padding: 0;
    /*height: 80px;*/
    opacity: 0.9 !important;
  }
}
/* ------------------------------------------------------------------------------------------*/
.userp {
  width: 100%;
  height: 70px !important;
  color: #000 !important;
  margin-left: 0px;
  white-space: nowrap;
  border-radius: 5px !important;
  font-size: 12px !important;
  text-align: left !important;
  z-index: 1;
  display: flex;
  margin-bottom: 5px !important;
  max-height: calc(100vh - 210px);
  overflow-y: auto;
  align-items: center;
}
.userp:hover {
  background-color: rgba(104, 104, 104, 0.26) !important;
  cursor: pointer !important;
}
.userp .vi {
  width: 45px;
  opacity: 0.9;
  float: left;
  font-size: 14px;
}
/* ------------------------------------------------------------------------------------------*/
.CabezalForm {
  width: 100%;
  height: 50px !important;
  color: #000 !important;
  left: 0px;
  font-family: "Montserrat", sans-serif !important;
  font-size: 20px !important;
  text-align: left !important;
  /*background: #C3C6D1;*/
  margin-bottom: 5px !important;
  padding: 15px 20px 30px 55px !important;
  z-index: 1009;
}
/* ------------------------------------------------------------------------------------------*/
.CabezalFormResp {
  width: 100%;
  height: 30px !important;
  color: #000 !important;
  font-family: Arial !important;
  border: 1px #ebebeb solid !important;
  padding: 5px 5px 5px 5px;
  margin-bottom: 5px;
  font-size: 12px !important;
  text-align: left !important;
  background: #f7f7f7;
  z-index: 1009;
}
.CabezalForm .vi {
  position: absolute;
  top: 19px;
  left: 19px;
  right: 10px;
  opacity: 0.9;
  color: #198c94;
  float: left;
  font-size: 14px;
}

.Cabezalpersonal {
  width: 100%;
  position: absolute;
  height: 20px !important;
  color: #000 !important;
  margin-top: -30px !important;
  font-weight: 50;
  line-height: 1.5;
  font-size: 12px !important;
  text-align: left !important;
  /*font-family: 'Montserrat', sans-serif !important;
	  background: #C3C6D1;*/
  z-index: 1009;
}

.pconect {
  padding: 2px 5px 2px 5px !important;
  font-size: 10px !important;
  border: none !important;
  background-color: #141518 !important;
}
/* ------------------------------------------------------------------------------------------*/
/* ------------------------------------------------------------------------------------------*/
.details {
  position: absolute;
  margin: 0 auto;
  left: 0;
  right: 0;
  margin-top: 0 !important;
  width: 350px;
  border-radius: 0px !important;
  text-align: center;
  font-family: Arial !important;
  font-size: 12px !important;
}
/* ------------------------------------------------------------------------------------------*/
/* ------------------------------------------------------------------------------------------*/
.detailsnext {
  font-family: Arial !important;
  font-size: 14px !important;
  margin-top: 2% !important;
  margin-bottom: 4% !important;
}
/* ------------------------------------------------------------------------------------------*/
/* ------------------------------------------------------------------------------------------*/
.detailsin {
  font-family: Arial !important;
  font-size: 26px !important;
  margin-top: 50px !important;
  margin-bottom: 25% !important;
}
.respcon {
  margin-left: 2% !important;
}

div.dataTables_wrapper div.dataTables_filter input {
  margin-top: 15px !important;
  display: inline-block;
  width: 100% !important;
  margin-left: -40px !important;
}
div.dataTables_wrapper div.dataTables_filter input::placeholder {
  color: rgb(51, 51, 51) !important;
  text-align: left;
}

div.dataTables_wrapper div.dataTables_filter label {
  display: flex;
  justify-content: center;
  color: transparent !important;
}

/* Accordion styles */
.tabs {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 4px -2px rgba(0, 0, 0, 0.5);
}

.tab {
  width: 100%;
  color: rgb(0, 0, 0);
  overflow: hidden;
}

.tab-label {
  display: -webkit-box;
  display: flex;
  -webkit-box-pack: justify;
  justify-content: space-between;
  padding: 1em;
  background: #f0f0f0;
  font-weight: light;
  cursor: pointer;
  /* Icon */
}
.tab-label:hover {
  background: #cccccc;
}
.tab-label::after {
  content: "\276F";
  width: 1em;
  height: 1em;
  text-align: center;
  -webkit-transition: all 0.35s;
  transition: all 0.35s;
}
.tab-content {
  max-height: 0;
  padding: 0 1em;
  color: #2c3e50;
  background: white;
  -webkit-transition: all 0.35s;
  transition: all 0.35s;
}
.tab-close {
  display: -webkit-box;
  display: flex;
  -webkit-box-pack: end;
  justify-content: flex-end;
  padding: 1em;
  font-size: 0.75em;
  background: #2c3e50;
  cursor: pointer;
}
.tab-close:hover {
  background: #cccccc;
}
.tab input {
  position: absolute !important;
  opacity: 0 !important;
  z-index: -1 !important;
}

.tab input:checked + .tab-label {
  background: #cccccc;
}
.tab input:checked + .tab-label::after {
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
}
.tab input:checked ~ .tab-content {
  max-height: 100vh;
  padding: 1em;
}

.flex-container-tab {
  display: flex;
  flex-flow: row wrap;
  padding: 2px;
  align-items: start;
  justify-content: start;
}
.flex-container-tab div {
}

.flex-container-tab-content {
  display: flex;
  flex-flow: row wrap;
  padding: 2px;
  align-items: start;
  justify-content: start;
}
.flex-container-tab-content div {
  width: 48%;
  margin: 1%;
}

.flex-container-tab-content-tree {
  display: flex;
  flex-flow: row wrap;
  padding: 2px;
  align-items: start;
  justify-content: start;
}

.item {
  width: 1rem;
}

.item-1 {
  text-align: center;
  width: 12%;
  flex-grow: 1;
}

.item-2 {
  padding: 10px 0px 0px 0px;
  width: 65%;
  flex-grow: 5;
}

.item-3 {
  text-align: right;
  padding: 10px 0px 0px 10px;
  width: 23%;
  flex-grow: 1;
}

.slider {
  position: absolute;

  margin-left: 14% !important;
  margin-right: 14% !important;
  margin-top: -100px !important;
  display: flex;
  width: 70%; /* just for this demo */
  margin: 0 auto; /* just for this demo */
  overflow-x: scroll;
  border: 1px #ebebeb solid !important;
  padding: 7px 10px;
  background-color: rgba(98, 215, 253, 0.1) !important;
  border-radius: 10px !important;
  z-index: 1007 !important;
}
.slider::-webkit-scrollbar {
  -webkit-appearance: none;
}

.item {
  height: 50px;
  flex: 1 0 10%;
  cursor: pointer;
}

.item:hover {
  position: relative !important;
  width: 30px;

  background-color: rgba(98, 215, 253, 0.1) !important;
  color: #fff !important;
  float: center !important;
}

.item .imgn {
  object-fit: cover;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
}

.flex-container-logo {
  display: flex;
  flex-flow: row wrap;
  padding: 2px;
  align-items: start;
  justify-content: start;
}
.flex-container-logo div {
  text-align: center;
}
.flex-container-logo img {
  width: 50%;
}

.flex-container-admin {
  display: flex;
  flex-flow: row wrap;
  padding: 2px;
  align-items: start;
  justify-content: start;
}
.flex-container-admin div {
  margin: 1%;
}

.flex-container-admin:nth-of-type(2) {
  width: 20px !important ;
  margin: 1%;
}

table.dataTable.dataTable_width_auto {
  width: 100% !important;
}

/* Dialog principal */
.ui-dialog {
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 30px rgba(0, 0, 0, 0.1) !important;
  background: white !important;
  overflow: hidden !important;
  font-family: "Segoe UI", "Calibri", "Helvetica Neue", Arial, sans-serif !important;
}

/* Titlebar moderno */
.ui-dialog-titlebar {
  background: linear-gradient(
    135deg,
    #4a90e2 0%,
    #204672 50%,
    #0e243d 100%
  ) !important;
  border: none !important;
  border-radius: 12px 12px 0 0 !important;
  color: white !important;
  padding: 15px 20px !important;
  text-align: left !important;
  position: relative !important;
  min-height: 50px !important;
}

/* Título del dialog */
.ui-dialog-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: white !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
  letter-spacing: 0.3px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
}

/* Botones del titlebar */
.ui-dialog-titlebar-button {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 6px !important;
  width: 32px !important;
  height: 32px !important;
  margin-left: 5px !important;
  transition: all 0.2s ease !important;
  position: relative !important;
}
/* Estilos modernos para dialog */

/* === CLASES CSS WINDOWS DIALOG SYSTEM === */
/* Extraídas para sistema APIL similar a Foro PBIP */

/* === CONTAINER PRINCIPAL === */
.dialogP {
  /* Clase principal del modal - agregar estilos base si necesario */
}

.win-dialog-container {
  display: flex;
  height: 100%;
  min-height: 700px;
  font-family: "Segoe UI", "Segoe UI Historic", "Segoe UI Emoji", system-ui,
    sans-serif;
  background: #ffffff;
  border-radius: 0;
  overflow: hidden;

  /* MÓVIL - SCROLL HORIZONTAL */
  position: relative;
}

/* SIDEBAR ESTILO WINDOWS EXPLORER */
.win-sidebar {
  width: 320px;
  min-width: 320px;
  background: #f3f3f3;
  border-right: 1px solid #e1e1e1;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* SOLO EN MÓVIL */
@media (max-width: 768px) {
  .win-dialog-container {
    width: 200vw !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }

  .win-sidebar,
  .win-main-area {
    min-width: 100vw;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  /* INDICADOR VISUAL - SWIPE */
  .win-sidebar::after {
    content: "👈 Desliza para ver opciones";
    position: absolute;
    bottom: 500px;
    right: 20px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 1000;
  }
}

/* === NAVEGACIÓN === */
.win-nav-list {
  list-style: none;
  margin: 0;
  height: 700px;
  padding: 0px 0;
  flex: 1;
  overflow-y: auto;
}

.win-nav-list::-webkit-scrollbar {
  width: 16px;
}

.win-nav-list::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.win-nav-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border: 3px solid #f1f1f1;
  border-radius: 10px;
}

.win-nav-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* === ITEMS DE NAVEGACIÓN === */
.win-nav-item {
  margin: 0;
  padding: 0;
}

.win-nav-link {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  color: #323130;
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
  transition: background-color 0.1s ease;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  min-height: 40px;
}

.win-nav-link:hover {
  background: linear-gradient(
    90deg,
    rgba(118, 191, 252, 0.219) 0%,
    rgba(255, 255, 255, 0.678) 100%
  );
  color: #e0e0e0;
  text-shadow: 0 0 5px rgb(255, 255, 255);
  border-left: 3px solid #89bde6a6;
}

.win-nav-link:active {
  background: linear-gradient(
    90deg,
    rgba(118, 191, 252, 0.219) 0%,
    rgba(255, 255, 255, 0.678) 100%
  );
}

.win-nav-link.win-selected,
.win-nav-link.current {
  background: linear-gradient(
    90deg,
    rgba(118, 191, 252, 0.219) 0%,
    rgba(255, 255, 255, 0.678) 100%
  );
  color: #0078d4;
  border-left: 3px solid #0078d4;
  padding-left: 13px;
  font-weight: 500;
  box-shadow: inset 0 0 10px rgba(106, 185, 250, 0.219);
}

/* === SEPARADOR === */
.win-separator {
  height: 1px;
  background-color: #e1e1e1;
  margin: 8px 16px;
  border: none;
}

/* === DROPDOWN === */
.win-dropdown-toggle {
  position: relative;
}

.win-chevron {
  font-size: 10px;
  margin-right: 8px;
  transition: transform 0.15s ease;
  opacity: 0.6;
}

.win-dropdown-expanded .win-chevron {
  transform: rotate(90deg);
}

.win-dropdown-content {
  display: none;
  background: #fafafa;
  border-top: 1px solid #e1e1e1;
  border-bottom: 1px solid #e1e1e1;
}

.win-dropdown-expanded .win-dropdown-content {
  display: block;
}

.win-dropdown-item {
  display: flex;
  align-items: center;
  padding: 8px 16px 8px 40px;
  color: #605e5c;
  text-decoration: none;
  font-size: 13px;
  transition: background-color 0.1s ease;
  min-height: 32px;
}

.win-dropdown-item:hover {
  background-color: #f0f0f0;
  color: #323130;
}

/* === ÁREA PRINCIPAL === */
.win-main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow: hidden;
}

/* === BREADCRUMB === */
.win-breadcrumb {
  background: #fafafa;
  border-bottom: 1px solid #e1e1e1;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #323130;
  min-height: 48px;
}

.win-breadcrumb-separator {
  margin: 0 8px;
  color: #605e5c;
  font-size: 10px;
}

.win-breadcrumb-link {
  color: #0078d4;
  text-decoration: none;
  font-weight: 400;
}

.win-breadcrumb-link:hover {
  text-decoration: underline;
}

/* === ÁREA DE CONTENIDO === */
.win-content-area {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: transparent;
}

.win-content-area::-webkit-scrollbar {
  width: 16px;
}

.win-content-area::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.win-content-area::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border: 3px solid #f1f1f1;
  border-radius: 10px;
}

.win-content-area::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* === ICONOS ESTILO DESKTOP === */

.win-icons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 20px; /* Más espacio en desktop */
  padding: 12px;
  justify-items: center;
}

.win-icon-card {
  background: transparent;
  border: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: visible;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
  width: 120px;
  height: 120px;
}

.win-icon-card:hover {
  background: rgba(24, 24, 24, 0.1);
  transform: none;
}

.win-icon-card:active {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0.95);
}

.win-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  background: transparent;
  text-decoration: none;
  color: #e0e0e0;
  height: 100%;
  width: 100%;
  min-height: auto;
  transition: color 0.2s ease;
}

.win-icon-link:hover {
  color: #ffffff;
  text-decoration: none;
}

/* Iconos más grandes y centrados */
.win-icon-link img {
  width: 62px !important;
  height: 62px !important;
  margin-bottom: 4px !important;
  transition: all 0.2s ease;
  filter: brightness(1) contrast(1);
  display: block;
}

.win-icon-card:hover .win-icon-link img {
  transform: scale(1.05);
  filter: brightness(1.1) contrast(1.1)
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.win-icon-text {
  font-size: 10px;
  line-height: 11px;
  text-align: center;
  margin: 0;
  font-weight: 400;
  word-wrap: break-word;
  max-width: 100%;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* === RESPONSIVE PARA MÓVIL === */
@media (max-width: 768px) {
  .win-icons-grid {
    grid-template-columns: repeat(4, 1fr); /* Forzar 4 columnas siempre */
    gap: 4px; /* Gap mínimo */
    padding: 8px;
    max-width: 100%;
  }

  .win-icon-card {
    width: 85px; /* Más pequeñas para que quepan 4 */
    height: 85px;
    min-width: 60px;
  }

  .win-icon-link {
    padding: 4px 2px;
  }

  .win-icon-link img {
    width: 36px !important;
    height: 36px !important;
    margin-bottom: 3px !important;
  }

  .win-icon-text {
    font-size: 8px;
    line-height: 9px;
  }
}

@media (max-width: 480px) {
  .win-icons-grid {
    grid-template-columns: repeat(
      4,
      1fr
    ); /* Mantener 4 columnas también aquí */
    gap: 3px;
    padding: 8px;
  }

  .win-icon-card {
    width: 60px; /* Aún más pequeñas */
    height: 60px;
  }

  .win-icon-link img {
    width: 42px !important;
    height: 42px !important;
  }

  .win-icon-text {
    font-size: 10px;
    line-height: 8px;
  }
}
/* === CLASES ADICIONALES QUE ESTABAN EN FORCE.CSS PERO NO EN DARK === */
/* Agregando versiones dark de las que faltaban */

/* Breadcrumb icon que faltaba en dark */
.win-breadcrumb-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  filter: brightness(0.8) contrast(1.2);
}

/* === RESPONSIVE DARK MODE === */
/* SOLO EN MÓVIL */
@media (max-width: 768px) {
  .win-dialog-container {
    width: 200vw !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }

  .win-sidebar,
  .win-main-area {
    min-width: 100vw;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  /* INDICADOR VISUAL - SWIPE */
  .win-sidebar::after {
    content: "👈 Desliza para ver opciones";
    position: absolute;
    bottom: 500px;
    right: 20px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 1000;
  }
}
/* ///////////////////////////////////////////////////////////////////////////////////////////////////////////// */
/*////////////////////////////////////////////APIL CSS INTELLIGENT////////////////////////////////////// */
/* ///////////////////////////////////////////////////////////////////////////////////////////////////////////// */
:root {
  --ubuntu-orange: #e95420;
  --ubuntu-gray-100: #f6f6f6;
  --ubuntu-gray-200: #e1e5e9;
  --ubuntu-gray-300: #cdcdcd;
  --ubuntu-gray-700: #3d3d3d;
  --ubuntu-gray-800: #2e2e2e;
  --ubuntu-gray-900: #0e1419;
  --ubuntu-blue: #06c;
  --ubuntu-green: #0e8420;
  --ubuntu-red: #c7162b;
  --ubuntu-white: #ffffff;
}

.flex-container-logo,
.info-header {
  background: #fafafa;
  border-radius: 6px !important;
  border-left: 4px solid #b8c0c6 !important;
  padding: 0.5rem 1rem !important; /* ✅ PADDING COMPACTO */
  margin-bottom: 2rem !important; /* ✅ MARGIN REDUCIDO */
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  gap: 1rem !important; /* ✅ GAP OPTIMIZADO */
  align-items: center !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.45) !important; /* Sombra base depth */
  /* OPCIONAL: Efecto hover si quieres */
  transition: box-shadow 0.3s ease !important;
}

.metodo {
  color: var(--ubuntu-gray-700);
  font-size: 0.875rem;
  line-height: 1.6; /* ✅ LINE-HEIGHT COMPACTO */
  margin: 0; /* ✅ SIN MARGIN BROWSER */
}

.metodo strong,
.metodo b {
  color: var(--ubuntu-gray-900);
}
/* ///////////////////////////////////////////////////////////////////////////////////////////////////////////// */
/*////////////////////////////////////////////bs-example-modal-xlg- css -////////////////////////////////////// */
/* ///////////////////////////////////////////////////////////////////////////////////////////////////////////// */
#bs-example-modal-xlg .modal-content {
  border: none;
  border-radius: 8px;
  background: var(--ubuntu-white);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  font-family: "Ubuntu", -apple-system, BlinkMacSystemFont, sans-serif;
}

#bs-example-modal-xlg .nav-tabs {
  border-bottom: 0px solid var(--ubuntu-gray-200) !important;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

#bs-example-modal-xlg .nav-tabs .nav-link {
  /* TABS INACTIVOS - ENTERPRISE STYLE */
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%) !important;
  border-radius: 6px 6px 0 0 !important;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  color: #616161 !important;
  font-weight: 400 !important;
  padding: 0.5rem 0.75rem !important; /* ✅ Reducir padding */
  font-size: 0.8rem !important; /* ✅ Font más compacto */
  margin-right: 1px !important; /* ✅ Menos gap */
  transition: all 0.3s ease !important;
  font-family: "Ubuntu", sans-serif !important;
}

#bs-example-modal-xlg .nav-tabs .nav-link:hover {
  /* HOVER PARA INACTIVOS */
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
  border: 1px solid #fafafa !important;
  border-bottom: none !important;
  color: #424242 !important;
}
#bs-example-modal-xlg .nav-tabs .nav-link.active {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;

  font-weight: 500 !important;
}

/* Tab Content */
#bs-example-modal-xlg .tab-content {
  background: #f4f4f4 !important;
  border-radius: 0 6px 6px 6px !important;
  padding: 20px !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.45) !important; /* Sombra base depth */
  border: none;
  min-height: 450px;
  max-height: 45vh;
  overflow-y: auto;
}

#bs-example-modal-xlg .tab-pane {
  padding: 0;
  overflow: visible;
}

/* Ubuntu Buttons */

#bs-example-modal-xlg .btn-primary,
.ubuntu-btn-primary {
  background: var(--ubuntu-blue);
  color: var(--ubuntu-white);
  border-color: var(--ubuntu-blue);
}

#bs-example-modal-xlg .btn-primary:hover,
.ubuntu-btn-primary:hover {
  background: #0056b3;
  border-color: #0056b3;
  color: var(--ubuntu-white);
}

#bs-example-modal-xlg .btn-success,
.ubuntu-btn-success {
  background: var(--ubuntu-green);
  color: var(--ubuntu-white);
  border-color: var(--ubuntu-green);
}

#bs-example-modal-xlg .btn-success:hover,
.ubuntu-btn-success:hover {
  background: #0c6d1a;
  border-color: #0c6d1a;
  color: var(--ubuntu-white);
}

#bs-example-modal-xlg .btn-info,
.ubuntu-btn-info {
  background: var(--ubuntu-blue);
  color: var(--ubuntu-white);
  border-color: var(--ubuntu-blue);
}

#bs-example-modal-xlg .btn-info:hover,
.ubuntu-btn-info:hover {
  background: #0056b3;
  border-color: #0056b3;
  color: var(--ubuntu-white);
}

#bs-example-modal-xlg .btn-warning,
.ubuntu-btn-warning {
  background: var(--ubuntu-orange);
  color: var(--ubuntu-white);
  border-color: var(--ubuntu-orange);
}

#bs-example-modal-xlg .btn-warning:hover,
.ubuntu-btn-warning:hover {
  background: #c7401a;
  border-color: #c7401a;
  color: var(--ubuntu-white);
}

#bs-example-modal-xlg .btn-secondary,
.ubuntu-btn-secondary {
  background: var(--ubuntu-white);
  color: var(--ubuntu-gray-700);
  border-color: var(--ubuntu-gray-300);
}

#bs-example-modal-xlg .btn-secondary:hover,
.ubuntu-btn-secondary:hover {
  background: var(--ubuntu-gray-100);
  color: var(--ubuntu-gray-900);
  border-color: var(--ubuntu-gray-300);
}

/* Form Controls Ubuntu Style */
#bs-example-modal-xlg .form-control,
#bs-example-modal-xlg .form-select {
  border: 1px solid var(--ubuntu-gray-300);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  transition: border-color 0.15s ease;
  background: var(--ubuntu-white);
  font-family: "Ubuntu", sans-serif;
  color: var(--ubuntu-gray-900);
}

#bs-example-modal-xlg .form-control:focus,
#bs-example-modal-xlg .form-select:focus {
  border-color: var(--ubuntu-orange);
  box-shadow: 0 0 0 2px rgba(233, 84, 32, 0.2);
  outline: none;
}

#bs-example-modal-xlg .form-label {
  color: var(--ubuntu-gray-800);
  font-weight: 400;
  margin-bottom: 0.25rem;
  font-family: "Ubuntu", sans-serif;
  font-size: 0.875rem;
}
/* //////////////////////////////////////////////////////////////////////////////////////////*/
/* ///////////////////////////nuevo header para los procedimientos //////////////////////////*/
/* //////////////////////////////////////////////////////////////////////////////////////////*/
.flex-container-procedimientos {
  display: flex;
  padding: 0.5rem 0.7rem;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: #ffffff;
  border-radius: 6px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.45) !important;
  transition: box-shadow 0.3s ease !important;

  overflow: hidden;
  min-height: 60px;
}
.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.logo-principal {
  height: 45px;
  max-width: 120px;
  object-fit: contain;
}

.certificados-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  opacity: 0.9;
}

.cert-number {
  color: #4caf50;
  font-weight: bold;
  font-size: 16px;
}

.info-section {
  flex: 1;
  text-align: right;
}

.info-row {
  margin-bottom: 4px;
  font-size: 13px;
}

.info-row span:first-child {
  opacity: 0.85;
  font-size: 12px;
}

@media (max-width: 768px) {
  .flex-container-procedimientos {
    padding: 0.8rem;
  }

  .logo-principal {
    height: 35px;
  }

  .info-row {
    font-size: 11px;
  }
}
.flex-container-procedimientos > div {
  flex-shrink: 1;
  min-width: 0;
}

.flex-container-procedimientos > div:first-child {
  text-align: left;
  flex: 0 1 auto;
}

.flex-container-procedimientos > div:last-child {
  text-align: right;
  flex: 1 1 auto;
}

.flex-container-procedimientos img {
  height: 80px;
  max-width: 100px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Hacer el certificado icon blanco en el fondo azul */
.flex-container-procedimientos .movi8 {
  filter: brightness(0) invert(1);
  height: 20px;
  vertical-align: middle;
  margin-right: 5px;
}

/* Ajuste para el método */
.flex-container-procedimientos .metodo {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

/* Mobile específico */
@media (max-width: 768px) {
  .flex-container-procedimientos {
    padding: 0.8rem;
    font-size: 12px;
  }

  .flex-container-procedimientos > div:first-child {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .flex-container-procedimientos > div:first-child img:first-of-type {
    height: 60px;
    max-width: 80px;
  }

  .flex-container-procedimientos > div:first-child br {
    display: none;
  }

  .flex-container-procedimientos > div:last-child {
    flex: 1 1 auto;
  }

  .flex-container-procedimientos .metodo {
    text-align: right !important;
    font-size: 11px;
    line-height: 1.3;
  }

  .flex-container-procedimientos > div:first-child {
    font-size: 0;
  }

  .flex-container-procedimientos > div:first-child img,
  .flex-container-procedimientos > div:first-child font {
    font-size: 12px;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .flex-container-procedimientos {
    gap: 20px;
  }
}

/* FIX PARA SCROLL MÓVIL */
@media (max-width: 768px) {
  /* Eliminar el ::after del sidebar en móvil */
  .win-sidebar::after {
    display: none !important;
    content: none !important;
  }

  /* Container principal con scroll habilitado */
  .win-dialog-container {
    display: flex !important;
    flex-direction: column !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow: hidden !important; /* Container principal sin scroll */
  }

  .win-sidebar {
    display: none !important;
  }

  /* Área principal scrolleable */
  .win-main-area {
    width: 100% !important;
    margin: 0 !important;
    flex: 1 !important;
    overflow-y: auto !important; /* IMPORTANTE: scroll vertical habilitado */
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important; /* Scroll suave en iOS */
    position: relative !important;
  }

  /* Content area scrolleable */
  .win-content-area {
    min-height: 100% !important;
    padding: 16px !important;
    overflow: visible !important;
  }

  /* Eliminar todos los indicadores de swipe */
  .win-sidebar::after,
  #mobile-swipe-indicator,
  .swipe-indicator-custom {
    display: none !important;
  }

  /* Para modals/acordeones también */
  .mbvc-config-body {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-height: calc(100vh - 120px) !important;
  }
}
/* ///////////////////////////////////////////////////////////////////////////////////////////////////////////// */
/*////////////////////////////////////////////APIL CSS INFO////////////////////////////////////// */
/* ///////////////////////////////////////////////////////////////////////////////////////////////////////////// */

.styled-version-tag {
  position: absolute;
  right: 10px;
  top: 39px;
  color: #808080;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.styled-version-tag::after {
  content: "APIL IA Assistant STARDUST 1.0";
}

.apil-styled-menu {
  margin-top: 5px;
  background: transparent;
  backdrop-filter: blur(0px);
  border: 0px solid #555;
  border-radius: 12px;
  padding: 15px 8px;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.styled-capture-option-btn {
  background: #f4f4f4;
  border: 1px solid #e1e1e1;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15) !important; /* Sombra base depth */
  color: #4b4b4b;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.styled-capture-option-btn:hover {
  background: #f4f4f4;
  border: 1px solid #a3a3a3;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15) !important; /* Sombra base depth */
  color: #4b4b4b;
  transform: translateY(-2px);
}

.styled-btn-secondary {
  background: #f4f4f4;
  border: 1px solid #e1e1e1;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15) !important; /* Sombra base depth */
  color: #4b4b4b;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.styled-btn-secondary:hover {
  background: #f4f4f4;
  border: 1px solid #a3a3a3;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15) !important; /* Sombra base depth */
  color: #4b4b4b;
}

.apil-help-dropdown {
  position: fixed !important;
  top: 54px !important;
  right: 50px !important;
  background: #f4f4f4;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15) !important; /* Sombra base depth */
  color: #4b4b4b !important;
  width: 350px;
  max-height: 450px;
  overflow-y: auto;
  z-index: 9999 !important;
  animation: helpDropdownAppear 0.3s ease;
  pointer-events: auto;
  overflow-y: hidden; /* Quitar scroll default */
}

.help-section-title {
  color: #4b4b4b !important;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #555;
}

.help-question {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid #a3a3a3;
  color: #4b4b4b !important;
  padding: 10px 15px;
  margin-bottom: 8px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
  transition: all 0.3s ease;
}

.help-question:hover {
  background: #d6d6d6;
  border-color: #a3a3a3;
  transform: translateY(-1px);
  color: #4b4b4b;
}

.help-sections {
  padding: 15px;
  max-height: 380px;
  overflow-y: auto;
  /* Custom scrollbar aquí */
  scrollbar-width: thin;
  scrollbar-color: #0078d4 #dfdfdf;
}

.help-header {
  background: linear-gradient(
    135deg,
    #4a90e2 0%,
    #204672 50%,
    #0e243d 100%
  ) !important;
  color: white;
  padding: 5px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px 12px 0 0;
  font-size: 14px;
  font-weight: 600;
}
.pregunta-card {
  background: #f4f4f4 !important;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.45) !important;
  transition: all 0.2s ease;
}

.pregunta-card:hover {
  border-color: #2196f3;
  box-shadow: 0 2px 8px rgba(50, 80, 179, 0.486);
}

.thinking-phase {
  margin-left: 28px;
  text-align: left;
  font-size: 12px;
  color: #363636;
}

.ai-response-header {
  /* TABS INACTIVOS - ENTERPRISE STYLE */
  background: #f4f4f4 !important;
  border-radius: 6px 6px 0 0 !important;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  color: #616161 !important;
  width: fit-content;
  font-weight: 400 !important;
  margin-top: 20px !important;
  padding: 0.5rem 0.75rem !important; /* ✅ Reducir padding */
  font-size: 0.8rem !important; /* ✅ Font más compacto */
  margin-right: 1px !important; /* ✅ Menos gap */
  transition: all 0.3s ease !important;
  font-family: "Ubuntu", sans-serif !important;
}
.ai-response-footer {
  background: transparent !important;
  border: none;
  padding: 8px 0;
  margin-top: 15px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

/* 🎯 MBVC - Prompt Container FLEXBOX INTELIGENTE | Metodología IA APIL */
/* Solución para modal pequeño + responsividad total */

/* ✅ SISTEMA FLEXBOX INTELIGENTE - REEMPLAZA WIDTH FIJO */

.prompt-container {
  background: #f4f4f4;
  border-radius: 12px;
  padding: 5px;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.45) !important; /* Sombra base depth */
  height: fit-content;
  padding-bottom: 10px !important; /* Reducir padding inferior */
  /* 🚀 FLEXBOX MAGIC - Se adapta al espacio disponible */
  margin: 0 auto;
  min-width: 300px; /* Nunca más pequeño que esto */
  max-width: 800px; /* Nunca más grande que esto */
  width: min(65vw, 800px); /* 65% del viewport PERO máximo 800px */

  /* 📱 Fallback para navegadores antiguos */
  width: 65%;
  width: min(65vw, 800px);

  transition: all 0.3s ease;
  box-sizing: border-box;
}

/* 🔧 CONTAINER PADRE FLEXBOX (para centrado perfecto) */
#main-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 750px;
  width: 100%;
  box-sizing: border-box;
}
.prompt-input {
  width: 100%;
  background: transparent;
  border: none;
  color: #808080;
  font-size: 20px;
  padding: 10px 10px;
  outline: none;

  transition: border-color 0.3s ease;
}

.prompt-input:focus {
  color: #808080;
}

.prompt-input::placeholder {
  color: #808080;
}
/* 🎯 ADAPTACIÓN INTELIGENTE SEGÚN ESPACIO DISPONIBLE */
/* Cuando el modal/container padre es pequeño */
@media screen and (max-width: 1200px) {
  .prompt-container {
    width: min(75vw, 700px);
    max-width: 700px;
  }
}

@media screen and (max-width: 1024px) {
  .prompt-container {
    width: min(80vw, 600px);
    max-width: 600px;
    padding: 35px;
  }
}

/* 📱 TABLETS */
@media screen and (max-width: 768px) {
  .prompt-container {
    width: min(90vw, 500px);
    max-width: 500px;
    min-width: 280px;
    padding: 30px;
    border-radius: 10px;
  }
}

/* 📱 MÓVILES GRANDES */
@media screen and (max-width: 640px) {
  .prompt-container {
    width: min(95vw, 400px);
    max-width: 400px;
    min-width: 260px;
    padding: 25px;
    border-radius: 8px;
  }
}

/* 📱 MÓVILES ESTÁNDAR */
@media screen and (max-width: 480px) {
  .prompt-container {
    width: min(98vw, 350px);
    max-width: 350px;
    min-width: 240px;
    padding: 20px;
    margin: 10px auto;
  }
}

/* 📱 MÓVILES PEQUEÑOS */
@media screen and (max-width: 375px) {
  .prompt-container {
    width: min(99vw, 300px);
    max-width: 300px;
    min-width: 220px;
    padding: 15px;
    margin: 8px auto;
    border-radius: 6px;
  }
}

/* 🔥 SOLUCIÓN ESPECIAL PARA MODALES PEQUEÑOS */
/* Detecta cuando el container padre es muy pequeño */
@container (max-width: 600px) {
  .prompt-container {
    width: 90% !important;
    min-width: 200px !important;
    max-width: none !important;
    padding: 20px !important;
  }
}

/* 🎯 FALLBACK SIN CONTAINER QUERIES (navegadores antiguos) */
.win-main-area:has(.prompt-container) {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0; /* Permite shrinking */
}

/* 🌟 RESPONSIVE PARA ALTURA LIMITADA */
@media screen and (max-height: 600px) {
  .prompt-container {
    padding: 15px;
    margin: 5px auto;
    min-height: auto;
  }
}

/* 🔧 CONTENIDO INTERNO ADAPTATIVO */
@media screen and (max-width: 640px) {
  .prompt-container input[type="text"],
  .prompt-container textarea,
  .prompt-container select {
    width: 100% !important;
    box-sizing: border-box;
    font-size: 16px; /* Evita zoom en iOS */
    min-width: 0; /* Permite shrinking */
  }

  .prompt-container .input-wrapper {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .prompt-container .styled-btn-secondary {
    min-height: 44px;
    min-width: 44px;
  }
}

/* 🎨 MEJORAS PARA UX EN ESPACIOS PEQUEÑOS */
@media screen and (max-width: 480px) {
  .prompt-container h1,
  .prompt-container .apil-title {
    font-size: 1.3em;
    margin-bottom: 15px;
    line-height: 1.3;
  }

  .prompt-container p,
  .prompt-container .apil-subtitle {
    font-size: 0.95em;
    line-height: 1.4;
  }

  .apil-styled-menu {
    margin-top: 20px;
    padding: 12px 20px;
  }
}

/* 🔥 HACK PARA DETECTAR CONTAINER PEQUEÑO VIA CSS */
/* Usa CSS Grid para detectar espacio disponible */
.win-content-area {
  display: grid;
  grid-template-columns: 1fr;
  min-width: 0;
}

.apil-container {
  display: flex;
  align-items: end;
  gap: 5px;
  min-width: 0;
  justify-content: end;
  flex-direction: column; /* Para mantener elementos en vertical */
  flex-wrap: wrap;
  width: 100%;
}

/* 🎯 LANDSCAPE MÓVIL */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .prompt-container {
    width: min(80vw, 600px);
    padding: 20px;
    margin: 5px auto;
  }
}

/* 🌟 ULTRA-WIDE SCREENS */
@media screen and (min-width: 1400px) {
  .prompt-container {
    width: min(50vw, 900px);
    max-width: 900px;
  }
}

/* 🔧 DEBUG MODE (descomenta para testing) */
/*
.prompt-container::before {
    content: "W: " attr(data-computed-width) " | MW: " attr(data-max-width);
    position: absolute;
    top: -25px;
    left: 0;
    background: #ff6b6b;
    color: white;
    padding: 2px 8px;
    font-size: 10px;
    border-radius: 3px;
    z-index: 1000;
}
*/

/* 🚀 CLASE HELPER PARA JS (opcional) */
.prompt-container.auto-resize {
  width: clamp(300px, 90%, 800px) !important;
}

.prompt-container.force-small {
  width: 95% !important;
  min-width: 200px !important;
  max-width: 400px !important;
  padding: 15px !important;
}
/* 🚀 CONVERSATION HISTORY - SOLUCIÓN FINAL DEFINITIVA */
/* Elimina todas las reglas anteriores de #conversation-history y usa solo esto */

#conversation-history {
  /* 🎯 BASE - RESPETA EL PANEL PADRE PERO CON MÍNIMOS */
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #cecece transparent;
  /* 🔧 SCROLL OPTIMIZADO */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  /* 🎨 PADDING BASE */
  padding: 10px;
}

/* 🎯 RESPONSIVE BREAKPOINTS - SOLO MIN-WIDTH, NO CONTRADICCIONES */

/* MÓVILES PEQUEÑOS */
@media screen and (max-width: 480px) {
  #conversation-history {
    min-width: min(280px, 100%);
    padding: 8px;
    font-size: 14px;
    line-height: 1.4;
  }
}

/* MÓVILES GRANDES */
@media screen and (min-width: 481px) and (max-width: 768px) {
  #conversation-history {
    min-width: min(350px, 100%);
    padding: 10px;
  }
}

/* TABLETS */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  #conversation-history {
    min-width: min(500px, 100%);
    padding: 12px 15px;
  }
}

/* DESKTOP ESTÁNDAR - BASE 750px CON EXPANSION */
@media screen and (min-width: 1025px) and (max-width: 1399px) {
  #conversation-history {
    min-width: min(750px, 100%); /* TU PREFERENCIA: 750px base */
    max-width: 96%; /* Expansion cuando hay contenido */
    padding: 15px 20px;
  }

  /* 🌟 EXPANSION AUTOMÁTICA CUANDO HAY MUCHO CONTENIDO */
  #conversation-history:has(.message:nth-child(3)),
  #conversation-history.has-content {
    width: 90%; /* Se expande cuando tiene varias respuestas */
    max-width: 96%;
  }
}

/* DESKTOP GRANDE - MÁS ELEGANTE */
@media screen and (min-width: 1400px) {
  #conversation-history {
    min-width: min(750px, 100%); /* Mantener tu preferencia */
    max-width: 75%; /* Más espacio en pantallas grandes */
    padding: 5px 15px;
    align-self: anchor-center; /* Centrado elegante */
  }

  /* 🎨 EXPANSION ELEGANTE EN PANTALLAS GRANDES */
  #conversation-history:has(.message:nth-child(3)),
  #conversation-history.has-content {
    width: 85%;
    max-width: 90%;
  }
}

/* 🔧 CONTENIDO INTERNO ADAPTABLE */
#conversation-history .message,
#conversation-history .chat-bubble,
#conversation-history .response-item {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-bottom: 10px;
}

/* 🎨 MEJORAS VISUALES */
#conversation-history img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 4px;
}

#conversation-history pre,
#conversation-history code {
  max-width: 100%;
  overflow-x: auto;
  word-wrap: break-word;
}

/* 🎯 LANDSCAPE MÓVIL */
@media screen and (max-width: 768px) and (orientation: landscape) {
  #conversation-history {
    padding: 8px 12px;
    max-height: 70vh;
  }
}
