:root {
    --h-header: 64px;
    --h-footer: 40px;
}
/* HEADER */
.header {
    background-color: #E5001C;
    height: var(--h-header);
}

.mwidth70{
    min-width: 70px;
}

.mwidth125{
    min-width: 125px;
}
.mwidth40{
    min-width: 40px;
}

.mwidth150{
    min-width: 150px;
}
.mwidth250{
    min-width: 250px;
}
.mwidth350{
    min-width: 350px;
}

.groupsidebar a{
    margin-left:10px
}

.mr-22{
margin-right: 22px !important;
}
.list-group-item{
    background-color: #f5f6fa !important;
    border: none !important;
    border-radius: 5px !important;
    margin-bottom: 2px !important;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.maxw-1500{
    max-width: 1500px;
    /*margin:0 auto !important;*/
}
.form-group{
    margin-bottom: 12px !important;
}

.page-aside-left .page-aside + .page-main {
    margin-left: 280px !important;
}


@media (max-width: 767.98px) {
    .page-aside-left .page-aside + .page-main {
        margin-left: 0 !important;
    }
}
@media (max-width: 767.98px) {
    .page-aside-left .page-aside {
        left: -280px !important;
    }
}

.colortitle{
    background-color: #3c93be !important;
    color:#fff !important;
    margin: 0px !important;
    margin-bottom: 6px !important;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(60, 147, 190, 0.2);
}

.page-aside .list-group-item{
    display: flex;
    white-space: inherit !important;
    padding: 6px 12px !important;
    align-items: center;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.page-aside .list-group-item:hover,
.page-aside .list-group-item:focus {
    background-color: #dceef8 !important;
    box-shadow: inset 3px 0 0 #3c93be;
}

.page-aside .list-group-item.active {
    background-color: #c8e4f4 !important;
    color: #1a5f8a !important;
    font-weight: 600;
    box-shadow: inset 3px 0 0 #2d7fb8;
}

.page-aside .list-group{
    margin-left: 5px !important;
}

.page-aside-section::after{
    margin:10px !important
}


.border-info-custom{
    border: 1px solid #3c93be !important;
}
.page-aside{
    border-right: 1px solid rgba(60, 147, 190, 0.3) !important;
    scrollbar-width: thin;
    scrollbar-color: #c8d6e0 transparent;
    width: 280px !important;
    min-width: 280px !important;
}
.page-aside::-webkit-scrollbar { width: 4px; }
.page-aside::-webkit-scrollbar-track { background: transparent; }
.page-aside::-webkit-scrollbar-thumb { background: #c8d6e0; border-radius: 4px; }

/* ── Seguimiento de Expediente / Monitoreo: subsecciones de FASE 1 ── */
a[href="#collapsExpedienteConvenio"] .colortitle,
a[href="#collapsExpedienteMonitoreo"] .colortitle {
    background-color: #3c93be !important;
    font-size: 0.9em;
    margin-left: 10px !important;
    margin-right: 0px !important;
    border-left: 4px solid #2d7fb8 !important;
    border-radius: 0 5px 5px 0;
    box-shadow: none;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    opacity: 1;
}

#collapsExpedienteConvenio,
#collapsExpedienteMonitoreo {
    margin-left: 10px;
    border-left: 2px solid rgba(60, 147, 190, 0.25);
}

/* ── FASE 2 Modalidad: separador visual de "siguiente nivel" ── */
.colortitle:has(a[href*="modalidad_app"]) {
    background: linear-gradient(135deg, #1a5276 0%, #1f618d 100%) !important;
    margin-top: 14px !important;
    border-top: 3px solid #f39c12 !important;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 -2px 0 #f39c12, 0 3px 8px rgba(26, 82, 118, 0.4) !important;
    position: relative;
}

/* Badge "SIGUIENTE ETAPA" encima del título de FASE 2 */
.colortitle:has(a[href*="modalidad_app"])::before {
    
    display: block;
    background-color: #f39c12;
    color: #fff;
    font-size: 0.65em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    padding: 1px 4px;
    border-radius: 3px 3px 0 0;
    margin: -8px -8px 6px -8px;
}


.site-menu > .site-menu-item > a .site-menu-title {
    font-size: 16px;
    max-width: none !important;
}

.Com_info{
    width: 182px;white-space: pre-line !important;word-break: break-word;line-height: 21px;
}
#files-area {
    width: 100%;
    margin: 0 auto;
  }
  
  .file-block {
    border-radius: 10px;
    background-color: rgba(144, 163, 203, 0.2);
    margin: 5px;
    color: initial;
    display: inline-flex;
  }
  .file-block > span.name {
    padding-right: 10px;
    width: max-content;
    display: inline-flex;
  }
  
  .file-delete {
    display: flex;
    width: 24px;
    color: initial;
    background-color: #6eb4ff00;
    font-size: large;
    justify-content: center;
    margin-right: 3px;
    cursor: pointer;
  }
  .file-delete:hover {
    background-color: rgba(144, 163, 203, 0.2);
    border-radius: 10px;
  }
  .file-delete > span {
    transform: rotate(45deg);
  }

.borderarea{
    border: 1px solid #6c757d63;
    padding: 50px 24px;
    border-radius: 3px;
    box-shadow: 0 .1rem 0.6rem rgba(0,0,0,.15)!important;
  
}
.borderarea_collapse{
  border: 1px solid #6c757d63;
  padding: 24px 24px;
  border-radius: 3px;
  border-top: 0px;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
}

.form-horizontal{
  z-index: 99999999 !important;
}



  /*
 CSS for the main interaction
*/
.multiswitch input {
    position: absolute;
    left: -200vw;
  }
  
  .multiswitch .slide-container {
    position: relative;
    display: flex;
    max-width: 100%;
    line-height: 2em;
    /* don't allow highlighting the text inside the toggle */
    user-select: none; 
    
  }
  
  .multiswitch .slide-container label {
    /* Even though we're using "flex" to display, we have to assign widths so that we know exactly where to position the slide */
    width: 50%;
    text-align: center; 
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2px;
  }
  
  .multiswitch .slide-container a {
    position: absolute;
    left: 50%;
    z-index: 1;
    height: 100%;
    width: 50%;
    transition: left 0.1s ease-out;
    box-shadow: none;
    outline-color: transparent;
  }
  
  /*
    Auto adjusting widths
  */
  .multiswitch label:nth-last-child(6),
  .multiswitch label:nth-last-child(6) ~ label,
  .multiswitch label:nth-last-child(6) ~ a {
    width: 33.3334%;
  }
  
  .multiswitch label:nth-last-child(8),
  .multiswitch label:nth-last-child(8) ~ label,
  .multiswitch label:nth-last-child(8) ~ a {
    width: 25%;
  }
  
  .multiswitch label:nth-last-child(10),
  .multiswitch label:nth-last-child(10) ~ label,
  .multiswitch label:nth-last-child(10) ~ a {
    width: 20%;
  }
  
  .multiswitch label:nth-last-child(12),
  .multiswitch label:nth-last-child(12) ~ label,
  .multiswitch label:nth-last-child(12) ~ a {
    width: 16.6667%;
  }
  
  /*
   Slider
  */
  
  /* all options, first selected */
  .multiswitch input:checked ~ a {
    left: 0;
    box-shadow: none
  }
  /* 2 options, 2nd selected */
  .multiswitch label:nth-last-child(4) ~ input:nth-child(3):checked ~ a {
    left: 50%;
  }
  /* 3 options, 2nd selected */
  .multiswitch label:nth-last-child(6) ~ input:nth-child(3):checked ~ a {
    left: 33.3334%;
  }
  /* 3 options, 3rd selected */
  .multiswitch label:nth-last-child(6) ~ input:nth-child(5):checked ~ a {
    left: 66.6667%;
  }
  /* 4 options, 2nd selected */
  .multiswitch label:nth-last-child(8) ~ input:nth-child(3):checked ~ a {
    left: 25%;
  }
  /* 4 options, 3rd selected */
  .multiswitch label:nth-last-child(8) ~ input:nth-child(5):checked ~ a {
    left: 50%;
  }
  /* 4 options, 4th selected */
  .multiswitch label:nth-last-child(8) ~ input:nth-child(7):checked ~ a {
    left: 75%;
  }
  /* 5 options, 2nd selected */
  .multiswitch label:nth-last-child(10) ~ input:nth-child(3):checked ~ a {
    left: 20%;
  }
  /* 5 options, 3rd selected */
  .multiswitch label:nth-last-child(10) ~ input:nth-child(5):checked ~ a {
    left: 40%;
  }
  /* 5 options, 4th selected */
  .multiswitch label:nth-last-child(10) ~ input:nth-child(7):checked ~ a {
    left: 60%;
  }
  /* 5 options, 5th selected */
  .multiswitch label:nth-last-child(10) ~ input:nth-child(9):checked ~ a {
    left: 80%;
  }
  /* 6 options, 2nd selected */
  .multiswitch label:nth-last-child(12) ~ input:nth-child(3):checked ~ a {
    left: 16.6667%;
  }
  /* 6 options, 3rd selected */
  .multiswitch label:nth-last-child(12) ~ input:nth-child(5):checked ~ a {
    left: 33.3334%;
  }
  /* 6 options, 4th selected */
  .multiswitch label:nth-last-child(12) ~ input:nth-child(7):checked ~ a {
    left: 50%;
  }
  /* 6 options, 5th selected */
  .multiswitch label:nth-last-child(12) ~ input:nth-child(9):checked ~ a {
    left: 66.6667%;
  }
  /* 6 options, 6th selected */
  .multiswitch label:nth-last-child(12) ~ input:nth-child(11):checked ~ a {
    left: 83.3334%;
  }
  
  /*
    Slider shadows
  */
  /* middle spots */
  .multiswitch input:not(:first-child):checked ~ a {
    box-shadow: none;
  }
  /* last spots */
  .multiswitch label:nth-last-child(4) ~ input:nth-child(3):checked ~ a,
  .multiswitch label:nth-last-child(6) ~ input:nth-child(5):checked ~ a,
  .multiswitch label:nth-last-child(8) ~ input:nth-child(7):checked ~ a,
  .multiswitch label:nth-last-child(10) ~ input:nth-child(9):checked ~ a,
  .multiswitch label:nth-last-child(12) ~ input:nth-child(11):checked ~ a {
    box-shadow: none;
  }
  
  
  /*
   RH Brand Styling
  */ 
 
  fieldset {
    border: 0;
    padding: 0;
  }
  
  fieldset legend {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
  }
  
  .multiswitch .slide-container {
    background: #6c757d;
    color: #fff;
    transition: background 0.1s ease-out;
    box-shadow: none;
    border-radius: 4px;
    border:2px solid #6c757d;
    font-size: 13px;
  }
  
  .multiswitch .slide-container label {
    cursor: pointer;
    text-shadow: none;
  }
  
  .multiswitch .slide-container a {
    background: #3c93be;
    border: 1px solid #3c93be;
    border-radius: 4px;
  }
  
  /* Stoplight theme */
  .multiswitch[data-theme="stoplight"] .slide-container > a {
    background: #c00;
    border-color: #8a0000;
  }
  
  .multiswitch[data-theme="stoplight"] input:not(:first-child):checked ~ a {
    background: #ec7a08;
    border-color: #bc6106;
  }
  
  .multiswitch[data-theme="stoplight"] label:nth-last-child(4) ~ input:nth-child(3):checked ~ a,
  .multiswitch[data-theme="stoplight"] label:nth-last-child(6) ~ input:nth-child(5):checked ~ a,
  .multiswitch[data-theme="stoplight"] label:nth-last-child(8) ~ input:nth-child(7):checked ~ a,
  .multiswitch[data-theme="stoplight"] label:nth-last-child(10) ~ input:nth-child(9):checked ~ a,
  .multiswitch[data-theme="stoplight"] label:nth-last-child(12) ~ input:nth-child(11):checked ~ a {
    background: #3f9c35;
    border-color: #307628;
  }
  
  /*
   Horizontal layout
  */
  .switch {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
  }
  
  /*
   Because a11y
  */
  .multiswitch input:focus ~ a {
    outline: 2px solid #0088ce;
  }
  
   
  fieldset {
    margin-bottom: 3em;
  }

  .visitedpage{
    COLOR: #fff;
    FONT-SIZE: 16PX;
    font-weight: 500;
    position: absolute;
    top: 0;
    right: 0; 
    background: #ba091e;
    padding: 15px;
    border-radius: 25px; 
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    border-top-left-radius: 0px;
    text-align: center;    
    min-width: 50%;
    border: 1px solid #ba091e;

  }

  .disabledFase{
    pointer-events: none;
    opacity: 0.5;
  }

  .sublink{
    background-color: grey  !important;
    color: white  !important;
    border: 1px solid white !important;
  }

  .sublink.active{
    background-color: #0088ce !important;
    color: white  !important;
  }

  .subfase2{
    font-size: 12px;
    font-weight: 500;
    color: #000;           
    padding: 10px;
    text-align: justify;
    text-decoration: underline;
    margin-bottom: 8px;
  }