/* ========================================
   Tabs Underline - Material Design Style
   Aplica a todos los tabs del sistema
   ======================================== */

#content .tabs {
  overflow: hidden;
  block-size: auto;
  padding-block-end: 4px;
  margin-block-end: 0.3em;
}

#content .tabs ul {
  position: static;
  min-inline-size: auto;
  inline-size: auto;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: auto;
  scrollbar-color: #c8b8d6 #f5f5f5;
  border-bottom: 1px solid #e0e0e0 !important;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-inline: 8px;
  gap: 2px;
  margin: 0;
}

#content .tabs ul::-webkit-scrollbar {
  height: 6px;
}

#content .tabs ul::-webkit-scrollbar-thumb {
  background: #c8b8d6;
  border-radius: 6px;
}

#content .tabs ul::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 6px;
}

#content .tabs ul li {
  float: none;
  flex-shrink: 0;
  scroll-snap-align: start;
}

#content .tabs ul li a.selected {
  scroll-margin: 0 16px;
}

#content .tabs ul li a {
  border: none !important;
  background: transparent !important;
  color: #888 !important;
  font-weight: 500 !important;
  padding: 8px 16px !important;
  position: relative;
  transition: color 0.3s ease;
  border-radius: 0 !important;
}

#content .tabs ul li a:hover {
  color: #333 !important;
  border: none !important;
  background: transparent !important;
}

#content .tabs ul li a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #2A0062;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

#content .tabs ul li a:hover::after {
  transform: scaleX(1);
}

#content .tabs ul li a.selected {
  color: #2A0062 !important;
  border: none !important;
  border-bottom: none !important;
  background: transparent !important;
}

#content .tabs ul li a.selected::after {
  transform: scaleX(1);
}

/* ========================================
   Submenu Pills - Segmented Toolbar Style
   ======================================== */

.submenu-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
  margin: 0 0 8px 0;
  background: #f0f0f0;
  border-radius: 8px;
}

.submenu-pills a {
  display: inline-block;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.submenu-pills a:hover {
  color: #2A0062;
  background: #e0e0e0;
}

.submenu-pills a.selected {
  color: #2A0062;
  background: #fff;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

@media screen and (max-width: 600px) {
  .submenu-pills {
    padding: 6px;
    gap: 4px;
  }

  .submenu-pills a {
    padding: 7px 16px;
    font-size: 13px;
  }
}

@media screen and (max-width: 480px) {
  #content .tabs {
    overflow: visible;
    padding-block-end: 0;
  }

  #content .tabs ul {
    flex-direction: column;
    overflow-x: visible;
    overflow-y: visible;
    scroll-snap-type: none;
    scrollbar-width: none;
    border-bottom: none !important;
    padding-inline: 0;
    gap: 0;
  }

  #content .tabs ul::-webkit-scrollbar {
    display: none;
  }

  #content .tabs ul li {
    scroll-snap-align: none;
    float: none;
    width: 100%;
  }

  #content .tabs ul li a {
    display: block !important;
    width: 100%;
    padding: 10px 16px !important;
    border-bottom: 1px solid #e0e0e0 !important;
    border-radius: 0 !important;
  }

  #content .tabs ul li a::after {
    display: none;
  }

  #content .tabs ul li a.selected {
    border-left: 3px solid #2A0062 !important;
    background: #f8f6fc !important;
    color: #2A0062 !important;
  }
}
