body {
  background-color: #fbfbfb;
}
@media (min-width: 991.98px) {
  main {
    padding-left: 240px;
  }
.div-login {
    padding-right: 240px;
}
}

.bg-santa_cruz {
    background-color: #242c4f;
}

.card-footer-recursos {
    position: absolute;
    bottom: 0px;
    right: 0px;
    left: 0px;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  padding: 58px 0 0; /* Height of navbar */
  box-shadow: 0 2px 5px 0 rgb(0 0 0 / 5%), 0 2px 10px 0 rgb(0 0 0 / 5%);
  width: 240px;
  z-index: 600;
}

.subse-subtitle {
  font-size: 0.8em;
  background-color: #f2f2f2;
  border-top: solid 1px grey;
  border-bottom: solid 1px grey;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.subse-data-title {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9em;
}

.subse-help-title {
  font-size: 0.9em;
  font-weight: 600;
  color: #242c4f;
}

@media (max-width: 991.98px) {
  .sidebar {
    width: 100%;
  }
}
.sidebar .active {
  border-radius: 5px;
  box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
}

.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 48px);
  padding-top: 0.5rem;
  overflow-x: hidden;
  overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
  display: flex;
  flex-direction: column;
}
.navbar {
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
}

/*------------------------------------------------ LOADER --------------------------------------------------- */
.loader {
    color: var(--color-santa_cruz, #00AFD9);
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: white;
    opacity: .9;
    display: table;
}

.loader-modal {
    color: var(--color-santa_cruz, #00AFD9);
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.spinner.text-center {
    display: table-cell;
    vertical-align: middle;
}
/*--------------------------------------------------- NOTIFICATIONS -------------------------------------------- */
.notification-item {
    width: 350px;
    margin: 5px;
    border-radius: 8px;
}
.notification-unread {
    font-weight: bold;
    background-color: #f0f0f0;
}

.notification-read {
    font-weight: normal;
}
.notification {

}
.notification-title {
}
.notification-message {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 30ch;
}

/*--------------------------------------------------- TAGS -------------------------------------------- */
.tag-bubble {
    display: inline-block;
    background-color: #12910e;
    color: white;
    padding: 2px 10px;
    border-radius: 8px;
    margin-right: 5px;
    margin-top: 5px;
}

.close-icon {
    font-size: 0.8em;
    margin-left: 5px;
    cursor: pointer;
}

/*------------------------ COLOR TEXTO ----------------------------*/

.text-azul {
  color: #242c4f;
}

.text-verde {
  color: #2e7d33;
}

.text-rojo {
  color: #c62828;
}

.text-amarillo {
  color: #e7ba61;
}

.text-celeste {
  color: #3e5a7e;
}

.text-fucsia {
  color: #ec407a;
}

.text-arandano {
  color: #c2185b;
}

.text-uva {
  color: #6a1b99;
}

.text-cielo {
  color: #039be5;
}

.text-verdin {
  color: #6ea100;
}

.text-lima {
  color: #cddc39;
}

.text-maiz {
  color: #ffce00;
}

.text-tomate {
  color: #ef5350;
}

.text-naranja {
  color: #EF6C00;
}

.text-escarapela {
  color: #2cb9ee;
}

.text-lavanda {
  color: #9284be;
}

.text-uva {
  color: #6a1b99;
}

.text-mandarina {
  color: #f79525;
}

.text-palta {
  color: #50b7b2;
}

.text-cereza {
  color: #ed3d8f;
}

.text-limon {
  color: #d7df23;
}

.text-verde-jade {
  color: #066;
}

.text-verde-aloe {
  color: #4fbb73;
}

.text-verde-cemento {
  color: #b4beba;
}

.text-verde-azulado {
  color: #008388;
}


/*------------------------ BOTONES ----------------------------*/
.icon-xl {
  font-size: 3rem;
  padding-top: 0.6em;
  padding-bottom: 0.6em;
  text-align: center;
}

.btn-azul {
  border: solid 2px #242c4f;
  border-bottom: solid 15px #242c4f;
}

.btn-azul i {
  color: #242c4f;
}

.btn-verde {
  border: solid 2px #2e7d33;
  border-bottom: solid 15px #2e7d33;
}

.btn-verde i {
  color: #2e7d33;
}

.btn-rojo {
  border: solid 2px #c62828;
  border-bottom: solid 15px #c62828;
}

.btn-rojo i {
  color: #c62828;
}

.btn-amarillo {
  border: solid 2px #e7ba61;
  border-bottom: solid 15px #e7ba61;
}

.btn-amarillo i {
  color: #e7ba61;
}

.btn-celeste {
  border: solid 2px #3e5a7e;
  border-bottom: solid 15px #3e5a7e;
}

.btn-celeste i {
  color: #3e5a7e;
}

.btn-fucsia {
  border: solid 2px #ec407a;
  border-bottom: solid 15px #ec407a;
}

.btn-fucsia i {
  color: #ec407a;
}

.btn-arandano {
  border: solid 2px #c2185b;
  border-bottom: solid 15px #c2185b;
}

.btn-arandano i {
  color: #c2185b;
}

.btn-uva {
  border: solid 2px #6a1b99;
  border-bottom: solid 15px #6a1b99;
}

.btn-uva i {
  color: #6a1b99;
}

.btn-cielo {
  border: solid 2px #039be5;
  border-bottom: solid 15px #039be5;
}

.btn-cielo i {
  color: #039be5;
}

.btn-verdin {
  border: solid 2px #6ea100;
  border-bottom: solid 15px #6ea100;
}

.btn-verdin i {
  color: #6ea100;
}

.btn-lima {
  border: solid 2px #cddc39;
  border-bottom: solid 15px #cddc39;
}

.btn-lima i {
  color: #cddc39;
}

.btn-maiz {
  border: solid 2px #ffce00;
  border-bottom: solid 15px #ffce00;
}

.btn-maiz i {
  color: #ffce00;
}

.btn-tomate {
  border: solid 2px #ef5350;
  border-bottom: solid 15px #ef5350;
}

.btn-tomate i {
  color: #ef5350;
}

.btn-naranja {
  border: solid 2px #EF6C00;
  border-bottom: solid 15px #EF6C00;
}

.btn-naranja i {
  color: #EF6C00;
}

.btn-escarapela {
  border: solid 2px #2cb9ee;
  border-bottom: solid 15px #2cb9ee;
}

.btn-escarapela i {
  color: #2cb9ee;
}

.btn-lavanda {
  border: solid 2px #9284be;
  border-bottom: solid 15px #9284be;
}

.btn-lavanda i {
  color: #9284be;
}

.btn-mandarina {
  border: solid 2px #f79525;
  border-bottom: solid 15px #f79525;
}

.btn-mandarina i {
color: #f79525;
}

.btn-palta {
  border: solid 2px #50b7b2;
  border-bottom: solid 15px #50b7b2;
}

.btn-palta i {
  color: #50b7b2;
}

.btn-cereza {
  border: solid 2px #ed3d8f;
  border-bottom: solid 15px #ed3d8f;
}

.btn-cereza i {
  color: #ed3d8f;
}

.btn-limon {
  border: solid 2px #d7df23;
  border-bottom: solid 15px #d7df23;
}

.btn-limon i {
  color: #d7df23;
}

.btn-verde-jade {
  border: solid 2px #066;
  border-bottom: solid 15px #066;
}

.btn-verde-jade i {
  color: #066;
}

.btn-verde-aloe {
  border: solid 2px #4fbb73;
  border-bottom: solid 15px #4fbb73;
}

.btn-verde-aloe i {
  color: #4fbb73;
}

.btn-verde-cemento {
  border: solid 2px #b4beba;
  border-bottom: solid 15px #b4beba;
}

.btn-verde-cemeneto i {
  color: #b4beba;
}

.btn-verde-azulado {
  border: solid 2px #008388;
  border-bottom: solid 15px #008388;
}

.btn-verde-azulado i {
  color: #008388;
}

.btn-inicio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3em;
  font-size: 18px;
  color: black;
  background-color: white;
}

.btn-inicio:hover {
color: #252c61;
background-color: aliceblue;
border: solid 2px #252c61;
border-bottom: solid 15px #252c61;
}
.btn-inicio:hover i {
  color: #252c61;
}

.btn-inicio button i {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.btn-wrapper {
    height: 100%;
    display: flex;
    align-items: stretch;
}

/*--------------------------- CUSTOM ICONS ---------------------------------*/
.combined-icon .fas {
  font-size: 1rem;
}
.combined-icon .fa-plus {
  font-size: 0.6rem;
  position: relative;
  top: -0.4rem;
  left: 0;
}
.combined-icon .fa-pen {
  font-size: 0.6rem;
  position: relative;
  top: -0.4rem;
  left: 0;
}

/*--------------------------- BUTTON LOADING STATES ---------------------------------*/
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.btn-loading:disabled {
  cursor: not-allowed;
}

.btn-loading .fa-spinner {
  margin-right: 0.5rem;
}

/* ------------------------------------------------ VERSION DISPLAY ------------------------------------------------ */
.sidebar-version {
  margin-top: auto;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: #6c757d;
  border-top: 1px solid #dee2e6;
  background-color: #e9ecef;
  flex-shrink: 0;
}

.sidebar-version .version-label {
  font-weight: 500;
  margin-right: 0.25rem;
}

.sidebar-version .version-number {
  font-weight: 600;
  color: #495057;
}

/* ------------------------------------------------ EXTERNAL DOCUMENTATION LINK ------------------------------------------------ */
.external-link {
  /* Inherits all styling from .list-group-item and .list-group-item-action */
  /* No special background or border - looks like other menu items */
}

.external-link .fa-external-link-alt {
  color: #6c757d;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.external-link:hover .fa-external-link-alt {
  opacity: 1;
}

/* ================================================ HELP SECTION REDESIGN ================================================ */

/* Support Card */
.help-support-card {
  border-left: 4px solid #242c4f;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Section Icons */
.help-section-icon {
  font-size: 1.5rem;
  color: #242c4f;
}

/* FAQ Search */
.faq-search-box {
  max-width: 500px;
}

#faqSearch {
  border: 2px solid #e0e0e0;
  transition: border-color 0.2s;
}

#faqSearch:focus {
  border-color: #242c4f;
  box-shadow: 0 0 0 0.2rem rgba(36, 44, 79, 0.15);
}

/* FAQ Accordion Enhancements */
.faq-accordion .accordion-button:not(.collapsed) {
  background-color: #f0f8ff;
  color: #242c4f;
  font-weight: 500;
  border-left: 3px solid #242c4f;
}

.faq-accordion .accordion-button {
  padding: 1rem 1.25rem;
  transition: all 0.2s;
}

.faq-accordion .accordion-button:hover {
  background-color: #f8f9fa;
}

.faq-accordion .accordion-body {
  padding: 1.25rem;
  background-color: #fafafa;
  border-left: 3px solid #e0e0e0;
}

.faq-accordion .badge {
  font-size: 0.7rem;
  padding: 0.35em 0.65em;
}

/* Role Cards */
.role-card {
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
  border: 1px solid #dee2e6;
}

.role-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.current-user-role {
  background-color: #f0f8ff;
  border-color: #242c4f !important;
  border-width: 2px !important;
}

.role-card .card-title {
  color: #242c4f;
  font-size: 1.1rem;
}

.role-card ul {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

/* Quick Links */
.quick-link-card {
  transition: transform 0.2s, background-color 0.2s;
  border-left: 3px solid transparent;
}

.quick-link-card:hover {
  transform: translateX(5px);
  background-color: #f8f9fa;
  border-left-color: #242c4f;
}

/* Copy Buttons */
.copy-button {
  cursor: pointer;
  transition: all 0.2s;
}

.copy-button:hover {
  transform: scale(1.1);
}

button[onclick*="copyToClipboard"] {
  cursor: pointer;
  transition: all 0.2s;
}

button[onclick*="copyToClipboard"]:hover {
  transform: scale(1.05);
}

/* System Info Card */
.card.bg-light {
  border: 1px solid #e0e0e0;
}

/* Troubleshooting Accordion */
#troubleshootingAccordion .accordion-button {
  font-weight: 500;
}

#troubleshootingAccordion .accordion-button:not(.collapsed) {
  background-color: #fff8dc;
  color: #856404;
}

/* FAQ Controls */
#expandAllFAQ,
#collapseAllFAQ {
  transition: all 0.2s;
}

#expandAllFAQ:hover,
#collapseAllFAQ:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .help-sidebar {
    margin-top: 2rem;
  }

  .faq-search-box {
    max-width: 100%;
  }

  .role-card {
    margin-bottom: 1rem;
  }

  .help-support-card .col-md-4 {
    margin-bottom: 1rem;
  }
}

@media (max-width: 767.98px) {
  .help-support-card .alert {
    margin-bottom: 1rem;
  }

  .quick-link-card:hover {
    transform: none;
  }
}

/* Alert Heights in Support Card */
.help-support-card .alert {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}