/* @import "./node_modules/font-awesome/css/font-awesome.min.css"; */
@import "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css";

/*
  Global Styles
*/

:root {
  --gray: #DCDCDC;
  --gray-secondary: #d1d1d1;
  --obscure-gray: rgb(95, 95, 95);
  --white-semitransparent: rgba(255, 255, 255, .8);
  --opaque: rgba(0, 0, 0, .05);
  --brand-primary: #267f82;
  --blue-help: #3465A4;
  --blue-nantic: #337ab7;
  --turtoise: rgb(53, 161, 186);
  --night: #2d2d2d;
}

.schedule {
  font-size: small;
  text-align: center;

  margin: 10px 8px;
  border-radius: 7px;

  background-color: var(--gray);

  height: 100%;
}

/* Source: https://codepen.io/flesler/pen/kdJmbw */
[contenteditable=true]:empty:before {
  content: attr(placeholder);
  display: block;
  pointer-events: none;
  color: var(--obscure-gray);
}

/*
  Surfly
*/

#cobrowsingPopupContainer .container-box {
  position: fixed;
  top: 30%;
  left: 0;

  display: inline-block;

  padding: 10px;
  border: 1px solid white;

  background: var(--white-semitransparent);
}

#cobrowsingPopupContainer .modal.fade .modal-dialog {
  /*controles the height of the popup position*/
  transform: translate(0, 35%);
}

#titles {
  margin-top: 15px;
}

#buttons {
  margin-top: 10px;
  text-align: center;
}

#conditions {
  font-size: 12px;
  text-align: justify;
}

#remote {
  margin-top: 15px;
  text-align: justify;
}

/*
  Navigation Bar
*/

/*
    Main Navigation Bar (Top)
  */


/* Tutorial Overlay */
#tutorial-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 900;
background: rgba(255, 255, 255, 0.01);
pointer-events: none;
display: flex;
flex-direction: column;
opacity: 1;
transition: opacity 0.3s ease;
overflow: hidden;
}

#tutorial-overlay .arrow-group,
#tutorial-overlay .arrow-group-inner {
display: flex;
align-items: center;
}

#tutorial-overlay .arrow-group {
position: absolute;
top: 5px;
flex-direction: column;
opacity: 0.8;
pointer-events: auto;
z-index: 1000;
}

#tutorial-overlay.hide-arrows .arrow-group {
display: none;
}

#tutorial-overlay .arrow-group-inner {
justify-content: center;
}

#tutorial-overlay .arrow-label {
margin-top: 8px;
color: #6b7280;
font-size: 0.9em;
font-weight: 600;
white-space: nowrap;
pointer-events: none;
user-select: none;
letter-spacing: 0.3px;
text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
position: relative;
}

/* Arrow Positioning */
#tutorial-overlay .arrow-menu { left: 45px; }
#tutorial-overlay .arrow-help { left: 65px; }
#tutorial-overlay .arrow-help .arrow-label { left: 50px; }
#tutorial-overlay .arrow-favorites { left: 287px; }
#tutorial-overlay .arrow-profile { right: 130px; }
#tutorial-overlay .arrow-profile .arrow-label { right: 15px; }
#tutorial-overlay .arrow-logout { right: -5px; }
#tutorial-overlay .arrow-logout .arrow-label { right: 10px; }
#tutorial-overlay .arrow-resize {
bottom: -20px;
top: auto;
left: 10px;
transform: none;
display: none;
flex-direction: row;
align-items: center;
gap: 25px;
}
#tutorial-overlay .arrow-resize .arrow-label {
left: -7px;
margin-bottom: 60px;
}

/* Avoid flicker: hide left tips as soon as the menu is visible */
#menu:not(.hidden) ~ #tabs #tutorial-overlay .arrow-left {
display: none;
}
/* Hide left tips when the help panel is visible */
#help:not(.hidden) ~ #tabs #tutorial-overlay .arrow-left {
display: none;
}

/* Resize tip visibility based on menu state */
#menu.hidden ~ #tabs #tutorial-overlay .arrow-resize {
display: none !important;
}
#menu:not(.hidden) ~ #tabs #tutorial-overlay .arrow-resize {
display: flex !important;
}
/* Also show resize tip when help panel is visible */
#help:not(.hidden) ~ #tabs #tutorial-overlay .arrow-resize {
display: flex !important;
}

/* Arrow Rotations */
#tutorial-overlay .arrow-help .arrow-group-inner { transform: rotate(-15deg); }
#tutorial-overlay .arrow-profile .arrow-group-inner { transform: rotate(15deg); }
#tutorial-overlay .arrow-logout .arrow-group-inner { transform: rotate(10deg); }
#tutorial-overlay .arrow-resize .arrow-group-inner { transform: rotate(-115deg); }

#tutorial-overlay svg.tutorial-arrow {
width: 60px;
height: 100px;
color: #9ca3af;
stroke: currentColor;
stroke-width: 2.5;
stroke-linecap: round;
stroke-linejoin: round;
fill: currentColor;
pointer-events: none;
filter: drop-shadow(0 2px 6px rgba(156, 163, 175, 0.4));
transition: all 0.3s ease;
}

/* Tutorial Message */


/* Tutorial Center Box */
#tutorial-center-box {
position: absolute;
left: 50%;
top: 20%;
transform: translateX(-50%);
display: flex;
flex-direction: column;
align-items: center;
z-index: 990;
pointer-events: auto;
max-height: 600px;
overflow: hidden;
}
#tutorial-center-box.hidden { display: flex !important; }

/* Hide tutorial when a real tab view is active (tabcontent gets a view type) */
#tabcontent[data-view-type] #tutorial-center-box,
#tabcontent[data-view-type] #tutorial-overlay {
display: none !important;
}

/* Always show tutorial when there are no tabs, even if view type lingers */
#tabcontent.no-tabs #tutorial-center-box,
#tabcontent.no-tabs #tutorial-overlay {
display: flex !important;
}

/* Mobile: hide tips overlay, keep center box visible */
@media (max-width: 991px) {
  #tabs.hidden-xs #tutorial-center-box {
    display: flex !important;
  }
  #tutorial-center-box {
    width: auto;
    max-width: none;
    padding: 0;
    box-sizing: border-box;
    left: 12px;
    right: 12px;
    margin: 0;
    transform: none;
    align-items: stretch;
    overflow: visible;
  }
  #tutorial-center-box .tutorial-title {
    font-size: 2.2em;
    line-height: 1.15;
    white-space: normal;
    word-break: break-word;
  }
  #tutorial-center-box .tutorial-search-input {
    font-size: 1.15em;
    padding: 10px 14px;
  }
  #tutorial-center-box .tutorial-search-box,
  #tutorial-center-box .tutorial-search-input {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
  }
}

body.navbar-open #tutorial-overlay {
  display: none !important;
}

/* Bootstrap xs breakpoint: keep center box visible even when tabs are hidden */
@media (max-width: 767px) {
  #tutorial-overlay {
    display: none !important;
  }
  #tabcontent.no-tabs #tutorial-overlay {
    display: none !important;
  }
  #tabs.hidden-xs {
    display: block !important;
  }
  #tabs.hidden-xs #tabcontent > :not(#tutorial-center-box) {
    display: none !important;
  }
  #tutorial-center-box {
    top: 15vh;
  }
}

@media (max-width: 767px) {
  #main_navbar,
  #main_navbar .navbar-header,
  #main_navbar .navbar-collapse {
    overflow: visible;
  }
  #main_navbar .navbar-collapse {
    max-height: none;
  }
}


#tutorial-center-box .tutorial-title {
font-size: 3.5em;
color: var(--blue-nantic);
font-weight: 500;
margin-bottom: 25px;
text-align: center;
flex-shrink: 0;
}

#tutorial-center-box .tutorial-search-box {
display: flex;
align-items: center;
background: #fff;
border-radius: 8px;
border: 1px solid #e0e6f2;
box-shadow: 0 4px 12px rgba(52, 101, 164, 0.15);
transition: box-shadow 0.3s ease;
flex-shrink: 0;
}
#tutorial-center-box .tutorial-search-box:focus-within {
box-shadow: 0 6px 16px rgba(52, 101, 164, 0.25);
}

#tutorial-center-box .tutorial-search-input {
border: none;
outline: none;
font-size: 1.3em;
padding: 12px 20px;
min-width: 480px;
border-radius: 8px;
flex-grow: 1;
color: #333;
background-color: #fff;
}
#tutorial-center-box .tutorial-search-input::placeholder { color: #999; }

/* Contenedor de favoritos con scroll */
#tutorial-center-box .favorites-list-wrapper {
overflow-y: auto;
overflow-x: hidden;
margin: 30px 0 12px;
max-height: 600px;
}

#tutorial-center-box .favorites-list-wrapper .dropdown-menu {
position: static;
display: block;
float: none;
min-width: 160px;
margin: 0;
padding: 5px 0;
font-size: 14px;
text-align: left;
list-style: none;
background: transparent;
border: 0;
border-radius: 0;
box-shadow: none;
}

#tutorial-center-box .favorites-list-wrapper .dropdown-menu li > a {
display: flex;
align-items: center;
padding: 3px 20px;
font-weight: 400;
line-height: 1.42857143;
color: #333;
white-space: normal;
cursor: pointer;
text-decoration: none;
}

#tutorial-center-box .favorites-list-wrapper .dropdown-menu li > a:hover,
#tutorial-center-box .favorites-list-wrapper .dropdown-menu li > a:focus-visible {
background: #f5f5f5;
}
#tutorial-center-box .favorites-list-wrapper .dropdown-menu li > a:focus-visible {
outline: 2px solid rgba(52, 101, 164, 0.25);
outline-offset: 2px;
}

#tutorial-center-box .favorites-list-wrapper .dropdown-menu img.favorite-icon {
width: 16px;
height: 16px;
display: inline-block;
margin-right: 8px;
vertical-align: middle;
object-fit: cover;
border-radius: 2px;
}

@media (max-width: 505px) {
  #tutorial-center-box .tutorial-title {
    font-size: 1.8em;
  }
  #tutorial-center-box .tutorial-search-input {
    font-size: 1em;
    padding: 8px 12px;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }
}

.global-search-container > .dropdown-menu {
  z-index: 1010;
  border: 1px solid var(--blue-nantic) !important;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15)!important;
}

nav > .container-fluid > .navbar-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: left;

  height: 50px;
}

nav>.container-fluid>.navbar-header>.navbar-toggle {
  margin-left: auto;
}

#title {
  display: flex;
  justify-content: center;
  align-items: center;

  padding: 0 8px;

  height: 30px;
}

.logo {
  padding-left: 10px;
  width: 100%;
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
  flex-shrink: 0;
}

/*
  Toast Seasonal Logos
*/

/* Seasonal toast container (top center) */
#nantic-toast-seasonal-container {
  position: fixed;
  top: 80px;
  left: 50%;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  pointer-events: none;
}

/* Seasonal toast styling with gradient background */
.nantic-toast-seasonal {
  max-width: 90vw;
  padding: 18px 26px;
  background: linear-gradient(135deg, #9DC183 0%, #35A1BA 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(157, 193, 131, 0.25), 0 0 1px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
  letter-spacing: 0.3px;
  opacity: 0;
  pointer-events: auto;
  transform: translateY(-30px) scale(0.95);
  transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Show state for seasonal toast */
.nantic-toast-seasonal.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Hide animation for seasonal toast */
.nantic-toast-seasonal.hide {
  animation: toastOut 0.4s cubic-bezier(0.36, 0, 0.66, -0.56) forwards;
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-60px) scale(0.95);
  }
}

/*
    Buttons
  */

#user-preferences,
#user-logout,
.container-fluid>.navbar-header>.navbar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;

  transition: background-color .1s cubic-bezier(.22, .61, .36, 1);
}

.container-fluid>.navbar-header>.navbar-brand,
#user-logout {
  background-color: none;

  padding: 0;
  aspect-ratio: 1/1;
}

.container-fluid>.navbar-header>.navbar-brand:hover,
#user-logout:hover,
#user-preferences:hover {
  background-color: var(--opaque);
}

/* Favorites button drop shadow and add border to stylize */
#user-favorites button {
  box-shadow: none;
  border-bottom: 1px solid var(--gray);
}

/*
  Change Filter button from the label to an icon
*/
.btn.btn-link[title="Filters"],
.btn.btn-link[title="Filtres"],
.btn.btn-link[title="Filtros"] {
  font-size: 0;
  width: 40px;
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 4px;
  background: #fff;
  padding: 5px 10px;
  line-height: 1.5;
  border-radius: 3px;
  border: none;
  -webkit-box-shadow: -2px -2px 2px rgba(0,0,0,0.07), 1 2px 2px rgba(0,0,0,0.10);
  box-shadow: -1px -2px 2px rgba(0,0,0,0.07), 0 2px 2px rgba(0,0,0,0.10);
}

.btn.btn-link[title="Filters"]::before,
.btn.btn-link[title="Filtres"]::before,
.btn.btn-link[title="Filtros"]::before {
  content: "\f0b0";
  font-family: "FontAwesome";
  font-size: 15px;
  color: #31888b;
}
.btn.btn-link[title="Filters"]:hover,
.btn.btn-link[title="Filtres"]:hover,
.btn.btn-link[title="Filtros"]:hover {
  color: #333;
  background-color: #e6e6e6;
  border-color: #adadad;
}

  /*
    Pages
  */

@media (min-width: 768px) {
  #main_navbar {
    height: 50px !important;
  }

  #tablist {
    height: 50px;
  }
}

#tablist {
  padding: 0;
  overflow-y: hidden;
}

#tablist span {
  overflow: hidden;
}

#main_navbar>ul:nth-child(2) {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 0 0 10px;

  height: 50px;
}

#tablist>li>a {
  height: 100%;
}

/*
    User preferences & logout
  */

#user-preferences a,
#user-logout a {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  width: 100%;
  height: 100%;
}

#user-logout {
  height: 100%;
  aspect-ratio: 1/1;
}

/* Logout button icon hover effect */
#user-logout a:hover svg {
color: #ff8a8a;
fill: #ff8a8a;
filter: drop-shadow(0 0 2px rgba(255, 138, 138, 0.4));
transition: all 0.2s ease-in-out;
}

#user-preferences {
  height: 100%;
}

#user-preferences>a {
  padding: 0 1vw 0 .5vw;
}

/*
  Original Menu
*/

#menu {
  padding: 0;
}

#menu .content-box {
  padding: 0 15px;
}

#help {
  padding: 0;
}
.grid-help-layout {
  display: grid;
  grid-template-columns: 30% 1fr;
  grid-template-rows: auto 1fr auto;
  align-items: stretch;
  overflow: hidden;
  height: 100%;
  max-height: 100%;
  min-height: 400px;
  width: 100%;
}

.grid-help-layout > #wizard-help_updates{
  grid-column: 1;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  width: 100%;
  box-sizing: border-box;
}

#wizard-help_updates .panel-body {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  height:100%;
}

#wizard-help_updates .panel-heading {
  flex: 0 0 auto;
}

#wizard-help_updates .panel-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

#wizard-help_updates .panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

#wizard-help_updates .updates-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
}

#updates-container,
#wizard-updates-container {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  position: relative;
  max-height: 400px;
  padding: 12px;
}

.grid-help-layout .modal-content {
  grid-column: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
}

.grid-help-layout .modal-content > .modal-header,
.grid-help-layout .modal-content > .modal-body,
.grid-help-layout .modal-content > .modal-footer {
  grid-column: 1;
}

.grid-help-layout > .modal-header {
  grid-row: 1;
}

.grid-help-layout > .modal-body {
  grid-row: 2;
  min-height: 0;
  overflow: auto;
}

.grid-help-layout > .modal-footer {
  grid-row: 3;
}

.grid-help-full {
  grid-template-columns: 1fr;
}

.wizard-with-help .modal-content {
  height: 100%;
  max-height: 100%;
}

.grid-help-full > .modal-header,
.grid-help-full > .modal-body,
.grid-help-full > .modal-footer {
  display: none;
}

.wizard-with-help.is-help-hidden > #wizard-help_updates {
  display: none;
}

@media (min-width: 992px) {
  #help {
    width: 35rem;
    min-width: 20ch;
    max-width: 100vw;
  }
}

@media (max-width: 991px) {
  #help {
    width: 100%;
  }
}


/*
  Help Menu
*/

#accordion {
  flex: 1;

  margin: 0;

  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

#accordion > .panel {
  flex: 0 0 auto;
}

#accordion > .assistant-panel,
#coll-assistant {
  flex: 1 1 auto;
  min-height: 0;
}

#accordion > .assistant-panel,
#accordion > .assistant-panel > .panel-collapse,
#coll-assistant {
  display: flex;
  flex-direction: column;
}

#coll-assistant.in {
  display: flex;
  flex-direction: column;
}

#accordion > .assistant-panel > .panel-collapse > .panel-body,
#coll-assistant > .panel-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/*
 Help Button
 */
.btn:focus, .btn:active{
  outline: none !important;
}

.help-menu-group img,
.help-menu-group .icon,
.wizard-help-toggle img,
.wizard-help-toggle .icon {
  width: 68%;
  height: 68%;
  max-width: 68%;
  max-height: 68%;
  display: block;
}

.help-menu-group button,
.wizard-help-toggle {
  margin: 0;
  padding: 0;
  width: 42px;
  height: 42px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary) !important;
}
.wizard-dialog .modal-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-left: 0;
}

@media (max-width: 767px) {
  .help-menu-group {
    margin-left: 6px;
  }
}


/*
    Accordion body
  */

#accordion>.panel>div>.panel-body {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;

  padding: 5px 0;

  transition: opacity .25s ease-in-out;
}

.panel>div>.panel-body>* {
  width: 95%;
}

.panel>div>.panel-body p,
.panel>div>.panel-body .schedule {
  margin: 5px 0;
}

.panel>div>.panel-body>a,
.panel>div>.panel-body button {
  width: fit-content;
}

/*
    Accordion buttons & divs
  */

/* To make the accordion button's content more aesthetic and aligned */
.panel-title>a {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}

/* To put a space between the image and text in the accordion button's content */
.panel-title>a>img {
  margin: 0 10px 0 0;
  width: 24px;
  height: 24px;
}

/*
    Virtual Assistant
  */

/*
      Title
    */

#help_assistant {
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  flex: 1 1 auto;
}

#help_assistant>div>.btn-group>.dropdown>.dropdown-menu {
  /* In order to show the dropdown menu inside of the menu (and not outside, making it overflow), we need to override the 'left' attribute and put 'right' to 0 */
  right: 0;
  left: auto;
  text-align: right;
}

/* Favorites empty list message */
ul.dropdown-menu:empty::before {
  content: var(--fav-empty-msg, "");
  display: block;
  text-align: center;
  padding: 6px 10px;
  font-style: normal;
  font-size: 13px;
  color: var(--bs-secondary-color, #6c757d);
}

#conversations {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

#conversations {
  margin: 0;
}

#help_assistant_heading .panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#help_assistant_heading .panel-title > a {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

#help_assistant_heading .btn-group {
  display: flex;
  flex-direction: row;
  padding: 0;
  margin-left: auto;
}

#help_assistant_heading .btn-group > * {
  margin: 0;
}

/*
      Output messages
    */

#output {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;

  padding: 5px 0;
  gap: 5px;

  text-align: left;
  -webkit-user-select: text;
  user-select: text;

  scroll-behavior: smooth;
  scrollbar-width: thin;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  min-height: 0;
}

#output:empty {
  padding: 0;
}

#output>div *,
#output>div {
  overflow-wrap: anywhere;
}

.ai-question {
  background-color: var(--blue-nantic);
  border-radius: 15px;
  padding: 5px 14px;

  margin-right: 3px;

  color: white;
  width: fit-content;
  max-width: calc(100% - 40px);
  white-space: pre-line;
}

#output>.ai-question:not(:first-child) {
  margin-top: 10px;
}

.ai-answer {
  padding: 0 5px;
  width: 100%;
}

.ai-answer .choice-group {
  display: flex;
  flex-direction: row;
  padding: 5px 0;
  gap: 5px;
  width: 100%;
}

.ai-answer .choice-button {
  border: none;
  border-radius: 5px;
  padding: 4px 15px !important;

  color: var(--night);
}

#output p {
  margin: 0;
}

#output img {
  max-width: 100%;
}

#output hr {
  border-top: 1px solid var(--gray-secondary);
}

#output code {
  padding: .5px 4px;
}

#output pre code {
  padding: 0;
}

#output ol,
#output ul {
  padding: 0 0 0 25px;
}

#output blockquote {
  background-color: var(--opaque);
  border-left: 5px solid var(--gray-secondary);
  margin: 0;
  font-size: 14px;
}

#output .table-scrollable {
  background-color: var(--opaque);
  border-radius: 5px;

  margin: 0 0 10px 0;

  overflow-x: scroll;
  width: fit-content;
  max-width: 100%;
}

#output table {
  width: max-content;
}

#output th,
#output td {
  padding: 0 10px;
}

#output table td,
#output table th {
  border: 2px solid white;
}

#output table th {
  background-color: var(--gray-secondary);
  border-top: none;
  padding-top: 5px;
}

#output table td:first-child,
#output table th:first-child {
  border-left: none;
}

#output table td:last-child,
#output table th:last-child {
  border-right: none;
}

/* *:last-child is used for select 'tbody' or 'tfoot' */
#output table *:last-child tr:last-child td {
  border-bottom: none;
  padding-bottom: 5px;
}

#output .ai-answer>*:first-child {
  margin-top: 0;
}

/* In order to avoid a space mismatch between top and bottom... */
#output .ai-answer>*:last-child {
  margin-bottom: 0;
}

#output details.chat-details {
  margin: 8px 0 0;
}

#output details.chat-details>summary {
  cursor: pointer;
  display: list-item;
  font-weight: 600;
}

#output details.chat-details[open]>summary {
  margin-bottom: 6px;
}

#output details.chat-details>.chat-details-body {
  margin-left: 18px;
}

#output details.chat-details>.chat-details-body>*+* {
  margin-top: 8px;
}

@keyframes loading-assistant {
  to {
    transform: scale(.6);
    background-color: var(--gray);
  }
}

#output .loading {
  animation: .5s ease-in-out infinite alternate loading-assistant;

  border-radius: 100px;
  background-color: var(--blue-nantic);

  margin-left: 5px;
  margin-right: auto;

  width: 30px;
  aspect-ratio: 1/1;
}

/*
        User input messages
      */

#help_assistant>div:last-child {
  position: relative;

  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: stretch;
  flex: 0 0 auto;

  border-top: solid 2px rgb(225, 225, 225);

  transition: border .5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    background-color .5s ease-in-out;

  width: 100%;
  min-height: 64px;
  overflow: hidden;
  margin-top: auto;
}

#help_assistant>div:last-child:focus-within {
  border-top: solid 2px rgb(200, 200, 200);
}

#message {
  flex: 1;

  padding: 2px 5px;
  outline: none;

  resize: none;
  background: none;
  box-shadow: none;

  min-height: 52px;
  max-height: 160px;
  overflow-y: auto;
  overflow-x: hidden;

  transition: background-color .25s ease-in;
}

#message.dragging,
#message.entering {
  margin: 2px 0;
  /* In order to be able to see the outline */
}

#message.dragging {
  background-color: var(--gray);
  outline: 2px dashed black;
}

#message.entering {
  background-color: var(--gray-secondary);
  outline: 2px solid black;
}

#help_assistant>div:last-child>div:last-child {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
}

#help_assistant>div:last-child>div:last-child,
#help_assistant>div:last-child>button {
  width: 8%;
  min-width: 30px;
  max-width: 30px;
  height: 30px;
  flex: 0 0 auto;
  align-self: flex-end;
}

#help_assistant>div:last-child>div:last-child>button + button {
  margin-top: 6px;
}


#voice-to-text,
#upload-record {
  align-items: center;
}

#help_assistant>div:last-child>div:last-child>button {
  width: 100%;
}

#help_assistant>div:last-child button {
  display: flex;
  justify-content: center;

  background: none;
  box-shadow: none;

  transition: background-color .15s cubic-bezier(.22, .61, .36, 1);
  padding: 0;

  color: black;
  aspect-ratio: 1/1;
}

#help_assistant>div:last-child button:hover {
  background-color: var(--gray);
}

#help_assistant>div:last-child button:active {
  background-color: var(--blue-nantic);
}

#help_assistant>div:last-child button * {
  pointer-events: none;
  transition: color .15s cubic-bezier(.22, .61, .36, 1),
    filter .15s cubic-bezier(.22, .61, .36, 1),
    rotate .2s cubic-bezier(0.215, 0.610, 0.355, 1);
  width: 90%;
  aspect-ratio: 1/1;
}

#help_assistant>div:last-child button:active * {
  filter: invert(1);
}

#more-options {
  align-items: flex-end;
}

#more-options.active>img {
  rotate: -45deg;
}

#more-options-container {
  position: relative;
  top: 10%;

  display: flex;
  justify-content: space-around;
  align-items: center;

  opacity: 0;

  transition: top .4s cubic-bezier(.65, .05, .36, 1),
    opacity .3s linear,
    max-height .5s steps(1),
    visibility .5s steps(1);

  width: 100%;
  max-height: 0;
  visibility: collapse;
}

#more-options-container.active {
  top: 0;
  opacity: 1;
  transition: top .4s cubic-bezier(.65, .05, .36, 1),
    opacity .3s linear;
  max-height: 100%;
  visibility: visible;
}

#more-options-container>button {
  padding: 1%;

  width: 10%;
  max-width: 30px;
  aspect-ratio: 1/1;
}

#uploaded-files {
  display: flex;
  align-items: center;

  padding: 1%;
  gap: 1%;

  width: 100%;
}

#uploaded-files:empty {
  display: none;
  padding: 0;
  width: 0;
  height: 0;
  visibility: collapse;
}

#uploaded-files>div {
  position: relative;

  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;

  border-radius: 7px;
  background-color: var(--gray);

  width: 15%;
}

#uploaded-files>div>button {
  border: none;
  border-radius: 0 0 7px 7px;
  background-color: var(--obscure-gray) !important;

  width: 100%;
  aspect-ratio: auto !important;
}

#uploaded-files>div>button:hover {
  background-color: var(--gray) !important;
}

#uploaded-files>div>button:active {
  background-color: var(--blue-nantic) !important;
}

#uploaded-files>div>button:hover>img {
  filter: invert(0);
}

#uploaded-files>div>button>img {
  transition: filter .15s ease-in-out;
  filter: invert(1);
  rotate: 45deg;
  width: 18px !important;
  aspect-ratio: 1/1;
}

#uploaded-files>div>img {
  cursor: pointer;
  transition: filter .15s ease-in-out;
  width: 50%;
  min-width: 30px;
}

#uploaded-files>div>img:hover {
  filter: invert(.5);
}

#uploaded-files>div>img:active {
  filter: invert(1);
}

#uploaded-files>div>p {
  margin: 0;
  white-space: nowrap;
}

#uploaded-files>div:hover::after {
  content: attr(data-after);
  position: absolute;
  top: 105%;

  font-size: .75em;
  text-align: center;
  word-break: break-word;

  border-radius: 2.5px;
  background-color: var(--gray-secondary);

  width: 125%;
  z-index: 100;
}

/*
    eLearning
  */

#coll-elearning>div>a {
  text-align: left;
  cursor: pointer;
  padding: 0 8px 8px 8px;
  width: 100%;
}

@keyframes loading-elearning {
  0% {
    background-color: var(--gray-secondary);
  }

  100% {
    background-color: transparent;
  }
}

#coll-elearning.loading {
  animation: .5s infinite normal loading-elearning cubic-bezier(.55, .09, .68, .53);
}

#coll-elearning>div {
  opacity: 1;
}

#coll-elearning.loading>div {
  opacity: 0;
}

#tutorials {
  padding-left: 15px;
}

#tutorials:empty {
  margin: 0;
}

#shortcuts-tryton {
  font-size: small;
}

/*
  Monaco Code-Editor
*/

[id*=code-] {
  height: 400px;
  border: 1px solid black;
}

#help_updates, #help_assistant_heading {
  position: relative;
  padding-right: 88px;
}
#help_updates .panel-title {
  margin: 0;
}

#help_updates .updates-actions, #help_assistant_heading .btn-group {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: inline-flex;
  gap: 0;
}
#help_updates .updates-actions.is-hidden {
  display: none;
}
#updates-pending:hover,#updates-latest:hover,#updates-all:hover,
#help_assistant_heading .btn-group .btn.navbar-btn:hover {
  background-color: var(--gray);
}
.updates-actions .btn.navbar-btn,
#help_assistant_heading .btn-group .btn.navbar-btn {
  height: 40px;
  width:40px;
  padding: 2px 6px;
  margin: 0;
  border-radius: 4px;
}
#help_assistant_heading .btn-group .btn.nan-toggle {
  width: 18px;
  min-width: 18px;
  padding: 2px 3px;
  border-left: 0;
}
#help_assistant_heading .btn-group .btn.nan-toggle .nan-toggle-icon {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  color: var(--text-color, #333);
  transform: translateY(-1px);
}
#help_assistant_heading .btn-group #new-conversation {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
#help_assistant_heading .btn-group #new-conversation-nan {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
#help_assistant_heading .btn-group #conversations,
#help_assistant_heading .btn-group #agents {
  margin-left: 6px;
}
.updates-actions .btn.navbar-btn.active,
.updates-actions .btn.navbar-btn:active,
#help_assistant_heading .btn-group .btn.navbar-btn.active,
#help_assistant_heading .btn-group .btn.navbar-btn:active {
  height: 40px;
  width: 40px;
  padding: 2px 6px;
}
#help_assistant_heading .btn-group .btn.nan-toggle.active,
#help_assistant_heading .btn-group .btn.nan-toggle:active {
  width: 18px;
  min-width: 18px;
  padding: 2px 3px;
}
.updates-actions .btn.navbar-btn.active img,
.updates-actions .btn.navbar-btn:active img,
.updates-actions .btn.navbar-btn.activeFilter img {
  filter: brightness(0) invert(1);
}
.nan-conversation-pill {
  align-self: center;
  background: var(--gray-secondary, #f3f4f6);
  border-radius: 999px;
  border: 0;
  color: var(--text-color, #333);
  cursor: default;
  font-size: 12px;
  line-height: 1.25;
  margin: 4px auto 8px;
  max-width: 80%;
  padding: 6px 12px;
  text-align: center;
}
.nan-conversation-link {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.nan-conversation-link:hover {
  text-decoration: underline;
}
.activeFilter {
  background-color: var(--blue-nantic) !important;
  border-color: var(--blue-nantic) !important;
}
.text-muted{
  color: var(--obscure-gray)!important;
}
.updates-list, .update-content {
  flex: 1 1 auto;
  min-height: 0;
  margin-bottom: 5px;
}
.update-item {
  padding: 12px 14px;
  border-bottom: 1px solid var(--gray);
  cursor: pointer;
  border-radius: 10px;
}

.update-item:hover {
  background-color: var(--opaque);
}

.update-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom:8px;
}

.update-date {
  font-size: 11px;
  color: var(--obscure-gray);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.update-tickets {
  font-size: 0.8em;
  color: #6c757d;
  white-space: nowrap;
}
.high{
  background-color:#ef4444;
}
.medium{
  background-color:#f59e0b;
}
.low{
  background-color:#10b981;
}

.update-subject {
  font-size: 14px;
  margin-bottom: 8px;
}
.unread{
  font-weight: 600;
}
.update-back {
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    margin-bottom: 5px;
}

#btn-back {
    min-width: 24px;
    height: 24px;
    border: none;
    border-radius: 5px;
    background-color: var(--gray-secondary);
    background-image: url('help_popup/img/arrow-back.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left center;
    padding-left: 30px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
}

#btn-text {
    transition: opacity 0.3s ease;
    opacity: 1;
}

#btn-text.hidden {
    opacity: 0;
}


#btn-back:hover {
  background-color: var(--gray);
}

.update-content h1 {
    font-size: 2rem;
}

.update-content h2 {
    font-size: 1.75rem;
}

.update-content h3 {
    font-size: 1.5rem;
}


.update-content p {
    font-size: 1.25rem;
}

.update-content * {
    max-width: 100%;
    overflow-wrap: break-word;
}
#update-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.highlight-overlay-target {
    position: relative;
}

.highlight-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 230, 0, 0.550);
  pointer-events: none;
  z-index: 999;
}

.lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  cursor: not-allowed !important;
}
.update-accept{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 0;
  width: 100%;
  cursor: not-allowed;
}
.update-accept > button{
  background-image: url('images/tryton-ok.svg');
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-position: 10px center;
  padding-left: 32px;
}

.disabled {
  pointer-events: none;
  opacity: 0.6 ;
}
.highlight-container{
  background-color: #fff;
}
.highlight-container * {
  cursor: not-allowed;
}
.highlight-container .update-accept > button{
  pointer-events: all;
  cursor: pointer !important;
}
/*Chip assistant on input*/
.global-search-container .input-group {
  position: relative;
}

.global-search-container {
  position: relative;
}

.global-search-assistant-hint {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-55%);
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #3f464c;
  background: rgba(75, 82, 88, 0.08);
  border: 1px solid rgba(75, 82, 88, 0.18);
  border-radius: 4px;
  padding: 3px 5px;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  z-index: 4;
  line-height: 1.2;
  padding-top: 2px;
  box-shadow: none;
  outline: none;
  appearance: none;
}

.global-search-assistant-hint:hover {
  background: rgba(75, 82, 88, 0.12);
}

.global-search-assistant-hint:active {
  background: rgba(75, 82, 88, 0.16);
}

.global-search-assistant-hint:focus-visible {
  box-shadow: 0 0 0 2px rgba(51, 122, 183, 0.25);
}

.global-search-container.has-assistant-hint .global-search-assistant-hint {
  display: inline-flex;
}

.global-search-assistant-hint .assistant-hint-icon {
  width: 14px;
  height: 14px;
  opacity: 0.75;
  display: block;
  transform: translateY(-1px);
}

.global-search-assistant-hint .assistant-hint-key {
  font-size: 10px;
  min-width: 18px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  padding: 0 4px;
  border-radius: 3px;
  border: 1px solid rgba(75, 82, 88, 0.25);
  background: rgba(255, 255, 255, 0.5);
}

.global-search-assistant-hint .assistant-hint-label {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  transform: translateY(2px);
  margin-right: 2px;
  padding-top: 1px;
  padding-bottom: 3px;
}

.global-search-container.has-assistant-hint #global-search-entry {
  padding-right: 125px;
}


.global-search-container .global-search-no-results > a {
  color: #6b7280;
  cursor: default;
}


@media (max-width: 768px) {
  .global-search-assistant-hint {
    font-size: 10px;
    padding: 2px 6px;
  }

  .global-search-assistant-hint .assistant-hint-icon {
    width: 12px;
    height: 12px;
  }

  .global-search-assistant-hint .assistant-hint-key {
    font-size: 9px;
    min-width: 16px;
    height: 14px;
    line-height: 14px;
  }

  .global-search-container.has-assistant-hint #global-search-entry {
    padding-right: 115px;
  }
}

/* Firefox fine-tuning for vertical alignment */
@-moz-document url-prefix() {
  .global-search-assistant-hint {
    transform: translateY(-52%);
  }
  .global-search-assistant-hint .assistant-hint-label {
    transform: translateY(2px);
  }
  .global-search-assistant-hint .assistant-hint-icon {
    transform: translateY(1px);
  }
  .global-search-assistant-hint .assistant-hint-key {
    transform: translateY(2px);
  }
}

/* Style only the caret next to the left tab title */
.navbar-inverse .navbar-left .navbar-brand.dropdown-toggle {
    display: inline-flex;
    align-items: center;
}

.navbar-inverse .navbar-left .navbar-brand.dropdown-toggle > .caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: -1;
    margin-right: 6px;
    min-width: 36px;
    height: 30px;
    padding: 1px 3px 4px;
    position: relative;
    top: -1px;
    background-color: #ffffff !important;
    border: 0 !important;
    border-radius: 3px !important;
    box-shadow: -1px -2px 2px rgba(0, 0, 0, 0.07), 0 2px 2px rgba(0, 0, 0, 0.10) !important;
    cursor: pointer;
}

.navbar-inverse .navbar-left .navbar-brand.dropdown-toggle > .caret::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #31888b;
    transform: translate(-50%, -40%) rotate(-90deg);
    transform-origin: 50% 50%;
}

.navbar-inverse .navbar-left .navbar-brand.dropdown-toggle[aria-expanded="true"] > .caret::after {
    transform: translate(-50%, -40%) rotate(0deg);
}

.navbar-inverse .navbar-left .navbar-brand.dropdown-toggle > .caret:focus {
    outline: none;
}

.navbar-inverse .navbar-left .navbar-brand.dropdown-toggle > .caret:hover,
.navbar-inverse .navbar-left .navbar-brand.dropdown-toggle > .caret:active,
.navbar-inverse .navbar-left .navbar-brand.dropdown-toggle > .caret.active {
    background-color: #e6e6e6 !important;
}
#coll-assistant .panel-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}
#accordion > .panel {
  flex: 0 0 auto;
}

#accordion > .assistant-panel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#accordion > .assistant-panel > .panel-collapse {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#accordion > .assistant-panel > .panel-collapse > .panel-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Responsive modal for version changes */
#modal-version-changes {
  text-align: center;
}

#modal-version-changes .modal-dialog {
  display: inline-block;
  width: fit-content;
  max-width: min(90vw, 720px);
  min-width: 320px;
  margin: 16px auto;
  text-align: left;
}

#modal-version-changes .modal-content {
  max-height: calc(100vh - 64px);
  overflow: hidden;
}

#modal-version-changes .modal-body {
  max-height: calc(100vh - 170px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 480px) {
  #modal-version-changes .modal-dialog {
    width: calc(100% - 16px);
    max-width: none;
    min-width: 0;
    margin: 8px auto;
  }

  #modal-version-changes .modal-body {
    max-height: calc(100vh - 150px);
  }
}

@media (min-width: 1440px) {
  #modal-version-changes .modal-dialog {
    max-width: 980px;
  }
}
