@font-face {
  font-family: "Inter var";
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
  font-named-instance: "Regular";
  src: url("fonts/Inter-roman.var.woff2?v=3.19") format("woff2");
}

:root {
  --highlight-bg1: rgba(62, 149, 205, 0.36);
  --clicked-elem: darkgoldenrod;
}

instruct, datahidden, callback { display: none;}

#chat-header-div {
  right: 2rem;
  left: 1rem;
  #chat-title { display: inline;}
  #chat-date { text-align: right; font-size: smaller;}
  padding-bottom: 5px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--surface-300);
  display: none;
}

#toc {
  li.h2 { display: none; }
}


body.notoc {
  #toc-container { 
    display: none; 
  }
}

body.print { 

}

@media print {  
  .layout-topbar, #mySidenav, .mainpage-action-items, .noprint, #right-panel-toolbar { 
    display: none; 
  }
  
  #sel-rep-actions { display: none; }
  table.reportTable, .ai-chart-container {
    max-width: 650px !important;
  }  

  #main { 
    margin: 0 !important;
    top: 0;
    
  #toc-container { 
      #toc {
        display: block; 
        background-color: var(--surface-50);
        border: 1px solid var(--surface-300);
        z-index: 2;
        top: 130px;
        right: 30px;
        width: 300px;
        left: auto;
        font-size: smaller;
        position: absolute;

        li.h2, li.h3 { display: none; }
      }
    }

    .chat-container { 
      position: unset;
      border: none;
      #chat-header-div { display: block; }
      width: 100%;
      margin: 0px;
      #m_0_a { width: 55% !important; float: none; }
      
      .answers-bar {display: none;}
      .rz-message-container, .sect-title { color: black;}
      table {border-collapse: collapse;}
      th { font-weight: 600;}
      table, thead, tbody, tr, td, th { color: #333 !important; border: 1px solid #999 !important;}
      .user-message-container { border: 1px solid #777;}

      .input-area { display: none; } 
    }
  }
}

.topbar-logo-image {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-bottom:-3px;
  background-image: url("../images/logo_white_off.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;  
}

.theme-light .topbar-logo-image {
  background-image: url("../images/logo_dark.png");
}

.toplogo span {
  color: #77d42a;
}

.weather-ico {height: 16px;}
.is-invalid, .invalid-feedback {
  font-size: 70%;
  margin-top: -10px;
  margin-left: 15px;
  font-style: italic;
  margin-bottom: 20px;
  color: var(--orange-300)
}

footer {
  position: absolute;
  bottom: 0px;
  left: 0px; 
  right: 0px;
  padding: 10px;
  background-color: rgb(9 9 9);
}

footer a {
  color:#a1a1aa;
  text-decoration: none;
  font-size: .775rem;
}

footer a:hover {
  color: #fff;
}

footer address {
  margin-top: 0px;
  font-style: normal;
  font-size: .775rem;
  color:#a1a1aa;
}

ul.ui-menu {
  border-radius: 12px;
  padding: 10px;
  color: var(--text-color-secondary);
  background-color: var(--surface-overlay);
  font-size: 85%;
}

label.error {
  color: var(--orange-300);
  font-size: 80%;
  margin-left: 15px;
  font-style: italic;
}

.accept_tos label.error {
  position: absolute;
  margin-top: 24px;
  margin-left: -18px;
}

.rz-error-message {
  color: orange;
}

.rz-error-message a {
  color: orange;
  text-decoration: underline;
}


        /* --- menu */
        ul.rz-menu {
          text-align: left;
          display: inline;
          margin: 0;
          padding: 15px 4px 17px 0;
          list-style: none;
      }
      ul.rz-menu li {
          float: left;
          margin: 0px 10px 0px 10px;
      }
      ul.rz-menu li.ui-state-hover {
          border-radius: 6px;
          background: var(--surface-50);
          border: none;
      }
      ul.rz-menu li.ui-state-hover a {
        color: var(--text-color-secondary);
      }
      .rz-menu li a {
          display: block;
          padding: 8px;
          color: var(--text-color-secondary);
      }
      .rz-menu li ul li  {
        margin: 0px;
      }
      .rz-menu li ul li a {
          color: var(--text-color-secondary);
          width: 100%;
          padding: 5px 20px;
          cursor: pointer;
      }
      .rz-menu li ul {
          padding: 3px 2px;
          display: none;
          position: absolute;
          right: 45px;
          top: 45px;
          border-radius: 6px;
          border: 1px solid var(--surface-200);
          box-shadow: 2px 2px 5px 0px var(--surface-100);
          background: var(--surface-ground);
      }

      .rz-menu li ul li {
          display: block;
          float:none;
      }
      li.ui-rz-menu-item.ui-state-hover {
          background: var(--primary-color);
      }

      /* --- section titles */
      sect {
        color: red;
      }
      
/* --- Company Page-- */
label { color: var(--surface-500);}
select, textarea { color: var(--surface-600);}
#next_duedate { color: var(--surface-300); margin-left: 20px; font-size: small;}
.wizard {
    width: 70%;
    margin: 0px auto;
}
.ui-menu { 
    border-radius: 12px;
    padding: 10px;
    color: var(--text-color-secondary);
    background-color: var(--surface-overlay);
}

.buttons {
    display: flex;
    justify-content: space-between;
}
table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
}
table, th, td {
    border: 1px solid var(--surface-border);
}

tr.btn-clicked {
    color: var(--clicked-elem);
}

th, td {
    padding: 5px;
    text-align: left;
}
th {
    background-color: var(--surface-100);
}

.ai-message th, table.reportTable th { 
  cursor: pointer;
  padding-right: 20px;  /*sorting icon*/
  position: relative;
 }

.ai-message th:hover { color: var(--surface-600); opacity: .7; }
table.reportTable th:hover { color: var(--surface-600); }

.ai-message th.order-asc::after, .ai-message th.order-desc::after, 
table.reportTable th.order-asc::after, table.reportTable th.order-desc::after {
  position: absolute;
  right: 5px;
  top: 2px;
  font-size: 0.6em;
  z-index: 3;
  text-shadow: -1px 1px 1px black
}
.ai-message th.order-asc::after, table.reportTable th.order-asc::after {
  content: '▲';
}

.ai-message th.order-desc::after, table.reportTable th.order-desc::after {
  content: '▼';
}

.loading-block {
  color: var(--text-color-secondary);
}

.loading-message {
  span {
    background:
    linear-gradient(var(--surface-300),var(--surface-800)) left no-repeat var(--surface-300);
    background-size:0% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: loading 5s forwards linear infinite;
  }
}
@keyframes loading {
  to {
    background-size:100% 100%;
  }
}

.loading-line span {
  display: inline-block;
  opacity: .8;
  font-style: normal;
  animation: blink 2s infinite;
}
@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}


table.copy-class {
  background-color: transparent;
  border-collapse: collapse;
  width: 800px;
  border-radius: 5px;
  margin-left: 20px;
  line-height: normal !important;
}

table.copy-class th, table.copy-class tbody td {
  border: 1px solid #888;
  background-color: transparent;
  padding: 4px !important;
  line-height: normal !important;
  margin: 0px !important;
}

table.copy-class tr {
  margin: 0 !important;
  padding: 0 !important;
}

#bank-info span {
    padding-left: 10px;
    color: var(--text-color-secondary);
}

#competitors_table span {
    padding-left: 10px;
    padding-right: 10px;
    color: var(--text-color);
    font-size: 60%;
    margin-bottom: 8px;
}

.text-info-section div {margin-top: 5px;}

/*--- Main Page --*/
.chat-container {
  position: absolute;
  top: 70px;
  bottom: 10px;
  left:20%;
  right: 20%;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px;
  border-bottom1: 1px solid var(--surface-500);
  
  scrollbar-width: thin;
  scrollbar-color: var(--surface-300) var(--surface-100);
  scrollbar-gutter: stable;

  font-weight: 200;
  line-height: 1.4;
  outline: none;

  img {
    max-width: 80%;
    height: auto;
  }
}

.theme-light {
  .chat-container {
    background: #fcfcfc;

    .chat-messages {
      font-weight: 450;
      color: var(--surface-900);

      .sect-title {
        color: var(--surface-700);
      }  

      th, td {
        color: var(--surface-700);
      }
      
    }

  }
}

.chat-messages strong {
  font-weight: 500;
}

.chat-messages p {
  margin: 5px 0px 5px 0px;
}


.ai-message {
  .sect-title {
    cursor: pointer;
  }

  .arrow {
    border: solid var(--surface-500);
    border-width: 0 1px 1px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg); /* Down arrow */
    transition: transform 0.3s ease;
    margin-right: 10px;
    margin-bottom: 4px;
  }
}

.sect-title.open .arrow {
  margin-bottom: 2px;
  transform: rotate(-45deg); /* Right arrow */
}

.sect-title, .chat-messages h2, .chat-messages h3, .chat-messages h3, .chat-messages h5 {
  margin: 10px 0px 5px 0px;
} 
.chat-messages h2, .sect-title.h2 { 
  font-weight: 600;
  font-size: 16px;
}
.chat-messages h3, .sect-title.h3 { 
  font-weight: 500;
  font-size: 16px;
}
.chat-messages h5, .sect-title.h5 { 
  font-weight: 400;
  font-size: 14px;
}

.chat-messages ul, .chat-messages ol {
  margin: 0px 0px 5px 0px;
  line-height: 1.1;
}


.chat-messages ul {
  margin-left: 20px;
  margin-bottom: 12px;
}
.chat-messages ul ul {
  margin-left: -5px;
  margin-bottom: 5px;
}
.chat-messages ul ul li {
  list-style-type: '-  ';
  margin-bottom: 8px;
}


.chat-messages table, table.reportTable {
  border: solid 1px var(--surface-200);
  margin-bottom: 1.25rem;
  margin-left: 1.25rem;
  table-layout: auto;
  border-radius: 2px;
  color: var(--text-color-secondary);
  font-size: 0.9rem;
  max-width: 90%;
  min-width: 50%;
  width: auto;
}
.chat-messages thead {
  background: var(--surface-100);
  color: var(--text-color-secondary);
}
.chat-messages thead tr th, table.reportTable thead tr th {
  font-weight: bold;
  padding: 0.5rem 0.625rem 0.625rem;
}

.chat-messages table tr.even, table tr.alt, table tr:nth-of-type(even) {
  background: var(--surface-50);
}

.chat-messages .ai-message tbody tr:hover, table.reportTable tbody tr:hover {
  background: var(--highlight-bg1);
  cursor: pointer;
}

.chat-messages tbody tr td, table.reportTable tbody tr td {
  display: table-cell;
  line-height: 1.125rem;
  padding: 0.5625rem 0.625rem;
  text-align: left;
}

.message {
  padding: 10px;
  border-radius: 5px;
}

.message pre {
  text-wrap: pretty;
  color: var(--text-color-secondary) !important;
}

.delayed-spinner {
  vertical-align: middle; 
  text-align: center; 
  color: var(--surface-500);
  visibility: hidden;
  opacity: 0;
  animation: showDelayedSpinner 0s .5s forwards; /* Delay for 500ms, then make it visible */
}

@keyframes showDelayedSpinner {
  to {
      visibility: visible;
      opacity: .5;
  }
}

.user-message-container {
  background-color: var(--surface-100); 
  padding: 10px;
  overflow: hidden;
  border-radius:10px;
  vertical-align:top;
  margin-top: 3px;
  white-space: pre-wrap;

  table { 
    margin: 0px 0px 10px;
    th, td {
      border-color: var(--surface-300);
      background: var(--surface-100);
    }
  };

}

.mode-compact .chat-messages .user-message-container, .mode-compact1 .chat-messages .user-message-container{
  p {    
    margin: 1px 0px 2px 0px;
  }
  table {
    margin-top: -15px;
  }
}

.user-message {
  background-color: var(--surface-100);
  margin: 0px;
  margin-left: 40px;
  margin-top: -2px;
  padding: 5px;
}

.user-message pre {
  background-color: var(--surface-200);
}

.ai-message {
  padding: 0px 0px 0px 10px;
  border-color: 1px solid var(--surface-500);
}
.input-area {
  padding: 20px;
}

.textareaElement:empty::before {
  content: attr(data-placeholder);
  color: var(--surface-200);
  pointer-events: none;
  font-style: italic;
}

.textareaElement, .textareaElement pre {
  color: var(--text-color-primary) !important;
  text-wrap: pretty;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-300) var(--surface-100);
  scrollbar-gutter: stable;
}

.textareaElement pre {
  color: var(--text-color-secondary) !important;
}

.textareaElement:focus {
  outline: 1px solid var(--p-focus-ring-color);
  outline-offset: -1px;
  box-shadow: none;
  border-color: #52525b;
}

.textareaElement table {
  font-size: 0.9rem;
  color: var(--text-color-secondary);
}

  /* CHAT suggestions*/
  .citations.citations-closed .citation-list {
      display: none;
  }

  .citation-title {
      cursor: pointer;
  }

  .citation-title:hover {
      color: var(--surface-600);
  }

.citations,
.citation-list {
  font-size: 0.85em;
  color: var(--surface-300);
  background: var(--surface-50);
  border-radius: 4px;
  padding: 6px 10px;
  margin: 8px 0;
  box-shadow: none;
}

.citation-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 20px;
 }

.citation-image {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  opacity: 0.8;
  border-radius: 10px;
  object-fit: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.citation-report {
  width: 12px;
  height: 12px;
  background: #4242FA;
}

.citation-list li,
.citations li {
  font-size: 1em;
  max-width: 150px;
  color: #666;
  margin-bottom: 2px;
  list-style-type: none;
  display: inline-block;
  padding-left: 0px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.citations li:hover {
  transform: scale(1.2);
  transition: transform 0.2s ease-in-out;
}

    /* --- CHAT - recommendations */
      suggest, .rec-section {
          text-align: center;
          display: block;
      }

      suggest btn, suggest lnk, tbtn, .rec-section button, .mybutton, .mybutton1, mylinks lnk {
          display: inline-block;
          margin: 5px;
          margin-bottom: 15px;
          padding: 5px 10px;
          border-radius: 6px;
          background-color: transparent;
          color: var(--blue-300);
          cursor: pointer;
          border: none;

          &.btn-clicked {
            border-color: var(--clicked-elem);
            color: var(--clicked-elem);
          }
      }

      mylinks {
        font-size: smaller;
        text-align: center;
        margin-top: 24px;
        display: block;
        width: 100%;
        font-style: italic;

        lnk {
          margin-top: 0px;
          margin-bottom: 0px;
          padding: 0px 5px;
          color: var(--blue-300);
          opacity: 0.5;

          &:hover {
            opacity: 0.9;
            text-decoration: underline;
          }
        }
      }

      suggest.last_suggest btn, .mybutton1 {
        border: 1px solid var(--blue-300);
        &:hover {
          background-color: var(--highlight-bg);
        }
      }
      
      .mybutton {
        border: 1px solid var(--blue-300);
        background-color: var(--blue-300);

        color: var(--surface-0);
      }

      .rec-section button:hover {
          background-color: var(--highlight-bg);
      }

      #m_0_a btn { padding-top: 3px; padding-bottom: 3px;}

      .theme-light suggest btn, .theme-light .rec-section button {
          color: var(--blue-700);
          border: 1px solid var(--blue-700);
          font-weight: 400;
      }
      
/* --- CHAT - Command Buttons -- */
tbtn {
  border: 1px solid #4a90e2;
  
}

/* --- CHAT - Charts -- */
.chart-title {
  color: var(--surface-400);
  font-size: 12px;
  padding: 0px;
  margin-left: 20px;
}

#menu-i-dark, #menu-i-compact { padding-left: 31px; padding-top: 5px; }
.theme-dark #menu-i-dark::before {  content: "✔"; }
.theme-dark #menu-i-dark {  padding-left: 20px; padding-top: 4px; }
.mode-compact, .mode-compact1 {
   #menu-i-compact::before {  content: "✔"; }
   #menu-i-compact {  padding-left: 20px; padding-top: 4px;}
  .mainpage-abar-tools { right: 16%; margin-top: -10px; z-index: 2;}
}

.chat-messages {
  h4 {
    font-size: 16px;
    font-weight: 400;
  }
}

.mode-compact, .mode-compact1 {
  .chat-container { top: 10px; bottom: 10px; padding: 10px; margin-bottom: 0px; }
  .input-area {padding: 10px; }
  li { padding-top: 2px; padding-bottom: 2px;}
  ul ul li { margin-bottom: 0px;}
  .chat-messages, .report-section {
    font-family: Inter var, Roboto, Verdana, Geneva, Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--surface-500);
    
    .chart-title { margin-bottom: 0px; }
    .message { white-space: normal; }
    .user-message { padding: 0px;}
    .user-message-container { padding: 0px; margin-top: 0px; font-size: 14px;}

    h1, h2, h3, h3, h4, h5, .sect-title
    {
      margin: 10px 0px 4px 0px;
      font-size: 16px;
      color: var(--surface-500);
    }
    .sect-title { margin: 0px 0 0 0; padding: 3px 0px;}
    .sect-title.div { padding: 3px 3px 3px 38px;}
    .user-message-container .sect-title { font-size: 15px;}

    h1, .sect-title.h1 {
      color: var(--surface-900); 
    }
    h2, .sect-title.h2 {
      color: var(--surface-800); 
    }
    h3, .sect-title.h3 {
      font-size: 14px;
      color: var(--surface-500); 
    }
    h4, .sect-title.h4  {
      font-size: 14px;
    }
    
    p {
        margin: 8px 0px 2px 0px;
        line-height: normal;
    }

    table { margin-top: 10px; }
    thead tr th {
      padding: 0.3rem 0.4rem 0.4rem;
    }
    tbody tr td {
      padding: 0.3rem 0.4rem;
    }
  }
}

.conversation-active {
  #icon-chat-command { margin-top: 2px;}
  #loading-progress {
    display: block;
  }
}

#loading-progress { 
  display: none;
  z-index: 3;
  position: absolute; 
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left-color: #777;
  margin:2rem 3rem;
  border-radius: 50%;
  width: 33px;
  height: 33px;
  animation: donut-spin 2s linear infinite; 
}

@keyframes donut-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* -- settings */
table.table-settings{
  tbody td:first-child {
      text-align: left;
      padding-left: 15px;
  }

  tfoot {
      td{
          div.settings-warning {
              display: inline-block;
              margin-top: 10px;
              margin-right: 10px;
              width: 240px;
          }

          button {
              float: right;
              padding: 4px 15px;
              margin: 5px 10px;
          }
      }
  }
}


/* Landing page*/
.tbtn-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-around;
  text-align: center;
  margin: 20px;
  
  .tbtn-section {
    font-style: italic; width: 100%; text-align: left; color: var(--surface-400);
    line {
      display: inline-block; 
      border-bottom: 1px solid var(--blue-300);
      background1: linear-gradient(to right, #4a90e2, transparent);
      height: 1px;
      margin-left: 15px; margin-bottom:3px;
      width: 30%; opacity:.2;
    }
  }

  tbn {
    width: 230px;
    text-align: left;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
    &.disabled {
      border: 1px solid var(--surface-300);
      cursor: unset;
      .tbtn-title {
        color: var(--surface-300) !important
      }
    }

    &:not(.disabled):hover {
      transform: scale(1.05);
      border-color: var(--blue-300);
    }
  
    i {
      margin-right: 10px;
      color: #4a90e2;
    }
    .tbtn-title {
      font-size: 14px;
      font-weight: bold;
      margin-bottom: 5px;
      color: var(--surface-500);
    }
    .tbtn-description {
      font-size: 14px;
      color: var(--surface-400);
    }
  }
}

.message-tip {
  margin: 0px 20px;
  border: 1px solid var(--surface-400);
  padding: 2px 10px;
  border-radius: 5px;
  font-size: small;
  color: var(--surface-400);
}

@media not print {
 
  body.leftpanel-style {
    .mainpage-action-items {
      display: none;
    }
      
    #toc-container {
      display: none;
    }

    #left-panel {
      position: absolute;
      left: 0px;
      top: 10px;
      padding-left: 16px;
      bottom: 10px;
      overflow: hidden;
      width: 65%;
      scrollbar-width: thin;
      scrollbar-color: var(--surface-300) var(--surface-100);
      scrollbar-gutter: stable;

      .arrow-next {
        display: inline-block;
        position: relative;
        color: var(--surface-300);
        top: 5px;
        left: -15px;
        font-size: 14px;
        cursor: pointer;
        user-select: none;
          &:hover {
            color: var(--surface-500);
          }
        }       
    }

    .chat-container {
      right: 10px;
      left: 65%;
      margin-right: 0px;
      margin-left: 0px;
      position: absolute;
      padding-top: 55px;
    }
  }

  /* for right panel of form pages */
  #right-panel-toolbar {
    position: absolute;
    left: 25px;
    top: 10px;
    right: 20px;

    #sel-rep-actions {
        color: var(--surface-500);
        font-size: smaller;
        width: 80%;
        max-width: 300px;
        background-color: var(--surface-0);
        padding: 5px 10px;
        border-radius: 5px;

        option[disabled] {
            font-style: italic;
        }
    }

    #main-action-newfinreport { 
        float:right; 
        margin-top: 7px; 
        cursor: pointer;
    }
  }

  .input-area.no-ideas {
    
    #ideas-container {
      height: 0px;
      overflow: hidden;
      transition: all 1.2s ease-in-out;
    }  
  }

  #ideas-block {
    color: var(--surface-400);
    
    #ideas-container {
      transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;

      max-height: 60px;
      opacity: 1;
      visibility: visible;
      margin: 0 auto;
      display: flex;
      width: 780px;
      justify-content: center;
      align-items: center;
      &.ideas-closed {
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
      }

      div.slick-slide {
        padding-top: 1rem;
        padding-bottom: 1rem;
        text-align: center;
        font-size: 14px;
        margin-left: 20px;
        &:hover {
          color: var(--surface-500);
          cursor: pointer;
        }
      }
    }

    .slick-arrow {
      &::before{
        color: var(--surface-500);
      }
      opacity: 0;
      transition: opacity 0.6s;
    }

    &:hover .slick-arrow {
      display: block !important;
      opacity: .5;
    }

  }
}

