﻿/*overrides*/
.profile-img img.img-circle {
  width: 76px;
  height: 76px;
}

.profile-img-sm {
    border-radius: 50%;
    width: 25px;
    height: 25px;
    background-color: slategrey;
    font-size: 18px;
    color:white;
    text-align:center;
    padding-top: 2px;
}

.animated {
  -webkit-animation-duration: 0.5s;
  animation-duration: 0.5s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

.dx-datagrid-rowsview .dx-row > .dx-master-detail-cell {
    padding: 0 0 0 0;
}


.dx-treeview .dx-treeview-item {
    /* padding: 4px 6px; */
    min-height: 16px !important;
    padding-top: 1px !important;
    padding-bottom: 1px !important;
    padding-left: 6px !important;
}

/* 
    This was added bcs .dx-treeview .dx-treeview-item above was causeing the checkbox in the pivot table
    field chooser to fields area to bi displayed over the label.
*/ 
span.dx-area-field {
    padding-left: 27px;
}
.dx-treeview .dx-treeview-toggle-item-visibility:before,
.dx-treeview .dx-treeview-toggle-item-visibility.dx-treeview-toggle-item-visibility-opened:before {
    margin-top: -12px !important;
}

.dx-datagrid-nodata {
    margin-top: 0px !important;
    font-size: 12px;
}


.btn.disabled, .btn[disabled], fieldset[disabled] .btn {
    cursor: pointer;
}

.tooltip {
z-index: 9999999 !important;
position: fixed;
}

.fixed-small-header .small-header {
  z-index: 999;
}

.navigation_footer {
    position: absolute;
    bottom: 10px;
    left: 0;
    font-weight: bold;
    width: 100%;
    margin: 0 0 0 0;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: green;
    color: white;
    z-index:999999;
}
 /*li.dropdown {
        min-width: 30px;
        display: inline-block;
    }

.label-success {
        padding-top:40px;
        text-align: center;

}

.pe-7s-speaker {
        width: 72px;
        height: 55px;
        text-align: center;
        right: 30px;
        position: center;
        font-size: 25px;
        padding-top: 15px;

}*/



/*Account summary household-grid*/
#dgHouseholds .grL1 td, #dgHouseholds .grL1 td div,
#dgInsuranceAccounts .grL1 td, #dgInsuranceAccounts .grL1 td div {
    background-color: white;
    color:black;
    font-weight: bold;
    /*font-size: 10pt;*/
}
#dgHouseholds .grL2 td, #dgHouseholds .grL2 td div {
    /*background-color: white;*/
    color:black;
    font-weight: bold;
}
#dgHouseholds .grL3 td, #dgHouseholds .grL3 td div {
    background-color: white;
    color:black;
    font-weight: normal;
}
/*
#dgHouseholds .dx-datagrid-grouprow-hide td {
    display: none
}
*/

#dgHouseholds .grL4 td, #dgHouseholds .grL4 td div {
    padding-left: 10px;
}

#dgHouseholds .dx-data-row td {
    /*background-color:#f5f5f5 !important;*/
    font-weight: normal;
}

/*Error Account - Managed account in HH group*/
    #dgHouseholds .grL1Err td, #dgHouseholds .grL1Err td div {
    background-color: orangered !important;        
    color:white;
    font-weight: bold;
    font-size: 10pt;
}
#dgHouseholds .grL2Err td, #dgHouseholds .grL2Err td div {
    background-color: orangered !important;        
    color:white;
    font-weight: bold;
}
#dgHouseholds .grL3Err td, #dgHouseholds .grL3Err td div {
    background-color: orangered !important;        
    color:white;
    font-weight: normal;
}

/*selected row*/
#dgHouseholds tr.acsrow td, #dgHouseholds tr.acsrow td div {    
    background-color:  lightblue !important;
    /*font-weight: bold;*/
}
#dgHouseholds tr.acsrow.grL1Err td, #dgHouseholds tr.acsrow.grL1Err td div,
#dgHouseholds tr.acsrow.grL2Err td, #dgHouseholds tr.acsrow.grL2Err td div,
#dgHouseholds tr.acsrow.grL3Err td, #dgHouseholds tr.acsrow.grL3Err td div {    
    background-color: brown !important;
    /*font-weight: bold;*/
}

.vdivider {
    height: 44px;
    margin: auto;
    width: 2px;
    border-right: 1px solid #ffffff;
    border-left: 1px solid #E4E5E7;
}

/*STEP WIZARD*/

ul.nav-wizard {
  background-color: #f1f1f1;
  border: 1px solid #d4d4d4;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
ul.nav-wizard:before {
  position: absolute;
}
ul.nav-wizard:after {
  display: block;
  position: absolute;
  left: 0px;
  right: 0px;
  top: 138px;
  height: 47px;
  border-top: 1px solid #d4d4d4;
  border-bottom: 1px solid #d4d4d4;
  z-index: 11;
  content: " ";
}
ul.nav-wizard li {
  position: relative;
  float: left;
  height: 46px;
  display: inline-block;
  text-align: center;
  padding: 0 20px 0 30px;
  margin: 0;
  font-size: 16px;
  line-height: 46px;
}
ul.nav-wizard li a {
  color: #428bca;
  padding: 0;
}
ul.nav-wizard li a:hover {
  background-color: transparent;
}
ul.nav-wizard li:before {
  position: absolute;
  display: block;
  border: 24px solid transparent;
  border-left: 16px solid #d4d4d4;
  border-right: 0;
  top: -1px;
  z-index: 10;
  content: '';
  right: -16px;
}
ul.nav-wizard li:after {
  position: absolute;
  display: block;
  border: 24px solid transparent;
  border-left: 16px solid #f1f1f1;
  border-right: 0;
  top: -1px;
  z-index: 10;
  content: '';
  right: -15px;
}
ul.nav-wizard li.active {
  color: #3a87ad;
  background: #3698db;
}
ul.nav-wizard li.active:after {
  border-left: 16px solid #3698db;
}
ul.nav-wizard li.active a,
ul.nav-wizard li.active a:active,
ul.nav-wizard li.active a:visited,
ul.nav-wizard li.active a:focus {
  color: #ffffff;
  background: #3698db;
}
ul.nav-wizard .active ~ li {
  color: #999999;
  background: #f9f9f9;
}
ul.nav-wizard .active ~ li:after {
  border-left: 16px solid #f9f9f9;
}
ul.nav-wizard .active ~ li a,
ul.nav-wizard .active ~ li a:active,
ul.nav-wizard .active ~ li a:visited,
ul.nav-wizard .active ~ li a:focus {
  color: #999999;
  background: #f9f9f9;
}
ul.nav-wizard.nav-wizard-backnav li:hover {
  color: #468847;
  background: #f6fbfd;
}
ul.nav-wizard.nav-wizard-backnav li:hover:after {
  border-left: 16px solid #f6fbfd;
}
ul.nav-wizard.nav-wizard-backnav li:hover a,
ul.nav-wizard.nav-wizard-backnav li:hover a:active,
ul.nav-wizard.nav-wizard-backnav li:hover a:visited,
ul.nav-wizard.nav-wizard-backnav li:hover a:focus {
  color: #468847;
  background: #f6fbfd;
}
ul.nav-wizard.nav-wizard-backnav .active ~ li {
  color: #999999;
  background: #ededed;
}
ul.nav-wizard.nav-wizard-backnav .active ~ li:after {
  border-left: 16px solid #ededed;
}
ul.nav-wizard.nav-wizard-backnav .active ~ li a,
ul.nav-wizard.nav-wizard-backnav .active ~ li a:active,
ul.nav-wizard.nav-wizard-backnav .active ~ li a:visited,
ul.nav-wizard.nav-wizard-backnav .active ~ li a:focus {
  color: #999999;
  background: #ededed;
}
ul.nav-wizard li.disabled a {
    pointer-events: none;
    cursor: default;
}

ul.nav-wizard li.completed,
ul.nav-wizard li.completed a {
    background: #cae8ca;
}

ul.nav-wizard li.completed:before {
    z-index: 40;
    right: -14px;
    border-left: 16px solid #cae8ca;
}

.btn-group {  
    white-space: nowrap;              
}
.btn-group .btn {  
    float: none;
    display: inline-block;
}
.btn + .dropdown-toggle { 
    margin-left: -4px;
}

.dx-datagrid-rowsview {
    overflow: inherit !important;
}

.tblOverflow {
    overflow: inherit !important;
}

.costumdxTemplate {
    float: left; 
}

.dx-datagrid-manual-account-transactions-caption {
    padding: 5px 30px 10px 30px;
    font-weight: bold;
}

.dx-datagrid-manual-account-transactions {
    padding: 0px 30px 10px 30px;
}

.dx-datagrid-account-list-internal-grid {
    padding: 5px 0 20px
}

.dx-datagrid-perf-detail-caption {
    padding: 10px 0 5px 0;
    font-weight: bold;
}

.dx-datagrid-perf-detail-indent-caption {
    padding: 5px 30px 10px 30px;
    font-weight: bold;
}

    .dx-datagrid-perf-internal-grid {
    padding-bottom: 5px !important;
    padding-left: 30px !important;
}

/*we wish less padding inside dx grids*/
.dx-datagrid .dx-row > td {
    padding: 1px;
    vertical-align: middle;
}

.top-header {
    vertical-align: top !important;
}

.advisorop-gridcol {
    vertical-align: middle !important;
}

.advisorop-panel {
    overflow: hidden;
}

.panel-body{
    overflow: auto;
}

.grL4Col {
    background-color: lightyellow;
    font-style: italic;
}

.grL4ColPad {
    padding-left: 12px !important;
}

.grL4ColPad30 {
    padding-left: 30px !important;
    padding-right: 30px !important;
}

.dx-datagrid-headers .dx-datagrid-table .dx-row > td {
    vertical-align: bottom;
}
/*classes for validating inputs firstname, lastname, middlename*/
.form-control.errors {
    border-color: #d62c1a !important;
}

.form-control.errors {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}
label.errors,
label span.errors {
    color: #e74c3c;
    margin: 5px 0 0 0;
    font-weight: 400;
    font-size: 10px;
}
label span.errors {
    margin-left: 5px;
}
label.errors:before {
    content: "\f071";
    font-family: 'FontAwesome';
    margin: 0 4px;
}
.label-bottom-buffer {
    margin-bottom: 5px;
}
.label-black {
    color: black;
}
.label-blue {
    color: blue;
}
.logolabel {
    color: #175b82;
    vertical-align: bottom;
    font-size: 16px;
    font-weight: normal;
}
.subheadertext {
    color: #175b82;
    font-size: 14px;
}

/* flexbox classes */
.vertical-align {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

.vertical-align-top {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: row;
}

.vertical-align-between {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: row;
}

.vertical-align-top .vertical-center {
    align-self: center;
}

#scrollable-dropdown-menu .dropdown-menu {
    max-height: 250px;
    overflow-y: auto;
}

.flex-container {
    display: flex;
    flex-flow: row nowrap;
}

.flex-item {
    margin: 2px;
}

.flex-container-vertical {
    display: flex;
    flex-flow: column nowrap;
}

.mobile-navbar .navbar-nav > li {
    height:40px !important;
    /*padding: 15px 15px !important;*/
}


@media (max-width: 991px) {
    .navbar-right {
        display: none;
    }
}

.bg-light-gray {
    background-color: #d4d4d4;
}

.right-space {
    margin-right: 80px
}

.top-space {
    margin-top: 50px
}

/* advisorop-typeahead css */
.advisorop-typeahead {
    padding: 0px;
    max-width: 100%;
}

.advisorop-typeahead ul.tags {
    list-style: none;
    border-bottom: 1px solid #aaa;
    width: 100%;
    padding: 5px;
    margin-bottom: 0;
    cursor: text;
}

.advisorop-typeahead ul.tags.focused {
    border-bottom: 1px solid #26a69a;
    box-shadow: 0 1px 0 0 #26a69a;
}

.advisorop-typeahead ul li.tag {
    display: inline;
    padding: 2px 2px 2px 5px;
    border: 1px solid #aaa;
    background-color: #eee;
    border-radius: 5px;
    margin-right: 5px;
    color: #333;
    cursor: pointer;
}

.advisorop-typeahead ul li.inputtag {
    display: inline;
    margin-right: 5px;
    color: #333;
}

.advisorop-typeahead ul li.inputtag input {
    border: none;
    display: inline;
    height: initial;
    width: initial;
    margin: initial;
}

.advisorop-typeahead ul li.inputtag input:focus {
    border: none;
    display: inline;
    height: initial;
    width: initial;
    margin: initial;
    border-bottom: none;
    box-shadow: none;
}

.advisorop-typeahead ul li.inputtag input:focus {
    outline: none;
}

.advisorop-typeahead ul.list {
    list-style: none;
    border: 1px solid #aaa;
    border-top: none;
    width: 400px;
    padding: 0;
    margin: 0;
}

.advisorop-typeahead ul.list li {
    padding: 5px;
    cursor: pointer;
}

.advisorop-typeahead ul.list li.active {
    background-color: #aaa;
}


.advisorop-typeahead ul li span {
    padding-left: 5px;
    padding-right: 2px;
    font-weight: bold;
    font-family: sans-serif;
    color: rgba(0,0,0,0.5);
    text-transform: lowercase;
    font-height: 10px;
}

.master-detail-caption {
    padding: 0 0 5px 10px;
    font-size: 14px;
    font-weight: bold;
}

.meeting-list-dx-master-detail-cell {
    padding: 15px 15px 15px 15px;
}

.meeting-iframe-wrap {
    overflow: hidden;
    resize: both;
    position: relative;
    height: 616px;
    width: 975px;
}

.meeting-iframe-pull-tab {
    height: 0px;
    width: 0px;
    border-top: 15px solid grey;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    transform: rotate(-45deg);
    position: absolute;
    bottom: 0;
    right: -9px;
    pointer-events: none;
    z-index: 2;
}

.meeting-iframe {
    height: 100%;
    width: 100%;
    border: 2px solid black;
    z-index: 1;
}

.tooltip.customClass {
    max-width: 500px;
}

.modal-open {
    overflow: initial;
}

/* ---------------------------------------------------------------------------
   Two-factor reminder bar

   A thin strip below the fixed header, shown on every signed-in page while the
   user has no second factor. The bar itself is fixed so it stays visible while
   the page scrolls; because the header (62px) and the small-header band are
   both position:fixed, the bar sits at 62px and everything below it is pushed
   down by the bar height.

   The push is scoped to body.has-2fa-bar, which the component adds only when
   the bar is actually rendered, so nothing moves for a user who already has
   two-factor authentication switched on.
   --------------------------------------------------------------------------- */

.twofa-bar {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    /* Clear the sidebar. The bar belongs over the main content only - spanning the full width
       covers the user name and timestamp at the top of the nav. 181px is the same offset
       .small-header uses, and the state rules below mirror its behaviour when the sidebar is
       collapsed or the page is in small mode. */
    margin-left: 181px;
    height: 28px;
    line-height: 28px;
    z-index: 1002;
    padding: 0 16px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #6b4a00;
    background-color: #fff3cd;
    border-bottom: 1px solid #e6c86e;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Everything the header opens downward - the search typeahead, the user menu - is inside
   #header, and .fixed-navbar gives that position:fixed with z-index:1000. That is a stacking
   context, so a menu inside it cannot rise above the bar at 1002 no matter what z-index the
   menu itself carries: the first result of a search and the top of the user menu were being
   painted underneath the bar. Lift the header over the bar while the bar is on screen. 1003
   keeps it below #right-sidebar (1009) and the modal layer. */
body.has-2fa-bar #header {
    z-index: 1003;
}

.twofa-bar > .fa-shield {
    margin-right: 6px;
}

.twofa-bar-text {
    font-weight: 600;
}

.twofa-bar-detail {
    font-weight: 400;
    opacity: 0.85;
}

.twofa-bar-action {
    float: right;
    font-weight: 600;
    color: #6b4a00;
    text-decoration: underline;
}

.twofa-bar-action:hover,
.twofa-bar-action:focus {
    color: #3f2c00;
    text-decoration: underline;
}

.hide-sidebar .twofa-bar,
.page-small .twofa-bar {
    margin-left: 0;
}

.page-small.show-sidebar .twofa-bar {
    margin-left: 181px;
    overflow: hidden;
}

/* The profile page renders this panel after change-password-form has already closed its own
   .content wrapper. Re-using .content would re-apply the fixed-header top clearance as a large
   gap, so this carries the horizontal and bottom padding only. */
.twofa-section {
    padding: 0 40px 40px 40px;
    min-width: 320px;
}

/* Make room for the bar. 62 + 28 = 90. */
body.has-2fa-bar.fixed-small-header .small-header {
    top: 90px;
}

/* The small-header band normally reserves 80px; add the bar height. */
body.has-2fa-bar.fixed-small-header .content {
    padding-top: 108px;
}

body.has-2fa-bar.fixed-small-header.page-small .content {
    padding-top: 148px;
}

/* Pages without the small-header band still need clearance. */
body.has-2fa-bar #wrapper {
    padding-top: 28px;
}

body.has-2fa-bar.fixed-small-header #wrapper {
    padding-top: 0;
}

@media (max-width: 768px) {
    .twofa-bar-detail {
        display: none;
    }
}

/* ---------------------------------------------------------------------------
   AI assistant: the chat button bottom right on advisor and servicer pages,
   and the window it opens (spa/shared/common/ai-chat-widget.*).

   Above the fixed footer (1001), the 2FA bar (1002) and the header (1003);
   below Bootstrap's modal layer (1040+), so dialogs still cover it.
   --------------------------------------------------------------------------- */

.ai-chat-launcher {
    position: fixed;
    right: 20px;
    bottom: 52px;
    z-index: 1020;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    background-color: #34495e;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ai-chat-launcher:hover,
.ai-chat-launcher:focus {
    background-color: #2c3e50;
    outline: none;
}

.ai-chat-launcher .ai-chat-robot {
    width: 28px;
    height: 28px;
}

.ai-chat-robot {
    fill: currentColor;
    vertical-align: middle;
}

.ai-chat-panel {
    position: fixed;
    right: 20px;
    bottom: 114px;
    z-index: 1020;
    display: flex;
    flex-direction: column;
    width: 400px;
    max-width: calc(100vw - 40px);
    height: 580px;
    max-height: calc(100vh - 190px);
    background-color: #ffffff;
    border: 1px solid #e4e5e7;
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    color: #ffffff;
    background-color: #34495e;
}

.ai-chat-title {
    font-weight: 600;
    font-size: 14px;
}

.ai-chat-title .ai-chat-robot {
    width: 20px;
    height: 20px;
    margin-right: 6px;
}

.ai-chat-icon-button {
    margin-left: 4px;
    padding: 2px 6px;
    border: none;
    color: #ffffff;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.85;
}

.ai-chat-icon-button:hover {
    opacity: 1;
}

.ai-chat-icon-button[disabled] {
    opacity: 0.4;
    cursor: default;
}

.ai-chat-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 12px;
    background-color: #f7f9fa;
}

.ai-chat-welcome {
    color: #6a6c6f;
    font-size: 13px;
}

.ai-chat-suggestion {
    display: block;
    margin: 6px 0;
    padding: 6px 10px;
    border: 1px solid #d9dbdd;
    border-radius: 14px;
    color: #34495e;
    background-color: #ffffff;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.ai-chat-suggestion:hover {
    border-color: #34495e;
}

.ai-chat-message {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.ai-chat-user {
    align-items: flex-end;
}

.ai-chat-assistant {
    align-items: flex-start;
}

.ai-chat-bubble {
    max-width: 90%;
    padding: 8px 11px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.ai-chat-user .ai-chat-bubble {
    color: #ffffff;
    background-color: #34495e;
    border-bottom-right-radius: 2px;
}

.ai-chat-assistant .ai-chat-bubble {
    color: #34495e;
    background-color: #ffffff;
    border: 1px solid #e4e5e7;
    border-bottom-left-radius: 2px;
}

.ai-chat-error .ai-chat-bubble {
    color: #8a4b00;
    background-color: #fff3cd;
    border-color: #e6c86e;
}

.ai-chat-bubble p {
    margin: 0 0 6px 0;
}

.ai-chat-bubble p:last-child,
.ai-chat-bubble ul:last-child,
.ai-chat-bubble ol:last-child {
    margin-bottom: 0;
}

.ai-chat-bubble ul,
.ai-chat-bubble ol {
    margin: 0 0 6px 0;
    padding-left: 20px;
}

.ai-chat-bubble h5 {
    margin: 6px 0 4px 0;
    font-size: 13px;
    font-weight: 600;
}

.ai-chat-bubble code {
    padding: 1px 4px;
    color: #34495e;
    background-color: #f1f3f6;
    border-radius: 3px;
    font-size: 12px;
}

.ai-chat-bubble pre {
    margin: 0 0 6px 0;
    padding: 6px 8px;
    background-color: #f1f3f6;
    border: none;
    font-size: 12px;
    white-space: pre-wrap;
}

.ai-chat-bubble pre code {
    padding: 0;
    background: transparent;
}

.ai-chat-bubble table {
    display: block;
    max-width: 100%;
    margin: 4px 0 6px 0;
    overflow-x: auto;
    font-size: 12px;
}

.ai-chat-bubble th,
.ai-chat-bubble td {
    padding: 3px 6px !important;
    white-space: nowrap;
}

.ai-chat-sources {
    margin-top: 3px;
    color: #9d9fa2;
    font-size: 11px;
}

/* Links in answers look like links: blue and underlined. The theme draws every link in the text
   colour without an underline (style.css), so they could not be told from the text around them. */
.ai-chat-bubble a,
.ai-chat-bubble a:hover,
.ai-chat-bubble a:focus,
.ai-chat-sources a,
.ai-chat-sources a:hover,
.ai-chat-sources a:focus {
    color: #007bff;
    text-decoration: underline;
}

.ai-chat-bubble a:hover,
.ai-chat-bubble a:focus,
.ai-chat-sources a:hover,
.ai-chat-sources a:focus {
    color: #0056b3;
}

/* An answer is drawn in parts: text, and each table with its Excel button above it. */
.ai-chat-part + .ai-chat-part {
    margin-top: 6px;
}

.ai-chat-table-tools {
    text-align: right;
}

.ai-chat-export {
    padding: 1px 7px;
    border: 1px solid #d9dbdd;
    border-radius: 3px;
    color: #1d6f42;
    background-color: #ffffff;
    font-size: 11px;
    cursor: pointer;
}

.ai-chat-export:hover,
.ai-chat-export:focus {
    border-color: #1d6f42;
}

.ai-chat-export[disabled] {
    color: #9d9fa2;
    cursor: default;
}

.ai-chat-export-error {
    margin-right: 6px;
    color: #8a4b00;
    font-size: 11px;
}

.ai-chat-typing span {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 2px;
    border-radius: 50%;
    background-color: #9d9fa2;
    animation: ai-chat-blink 1.2s infinite ease-in-out;
}

.ai-chat-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-chat-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes ai-chat-blink {
    0%, 80%, 100% { opacity: 0.25; }
    40% { opacity: 1; }
}

.ai-chat-footer {
    padding: 8px 10px 6px 10px;
    border-top: 1px solid #e4e5e7;
    background-color: #ffffff;
}

.ai-chat-compose {
    display: flex;
    align-items: flex-end;
}

.ai-chat-input {
    flex: 1 1 auto;
    resize: none;
    padding: 6px 8px;
    border: 1px solid #d9dbdd;
    border-radius: 4px;
    font-size: 13px;
}

.ai-chat-input:focus {
    border-color: #34495e;
    outline: none;
}

.ai-chat-send {
    margin-left: 6px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    background-color: #34495e;
    cursor: pointer;
}

.ai-chat-send[disabled] {
    background-color: #b8c2cc;
    cursor: default;
}

/* In place of Send while a question is being answered. */
.ai-chat-send.ai-chat-stop {
    background-color: #c0392b;
}

.ai-chat-disclaimer {
    margin-top: 4px;
    color: #9d9fa2;
    font-size: 10px;
    text-align: center;
}

/* The chat window made larger (the expand button in its header): wide enough for tables, and as
   tall as the page allows between the header and the launcher button. */
.ai-chat-panel.ai-chat-panel-expanded {
    width: 960px;
    height: calc(100vh - 200px);
    max-height: none;
}

.ai-chat-panel-expanded .ai-chat-bubble {
    max-width: 80%;
    font-size: 14px;
}

.ai-chat-panel-expanded .ai-chat-bubble table {
    font-size: 13px;
}

/* Impersonation buttons the assistant offers under an answer. */
.ai-chat-confirm {
    margin-top: 5px;
}

/* Yes / No under the question whether Orion or Salesforce may be read. */
.ai-chat-source-confirm .btn + .btn {
    margin-left: 6px;
}

/* Numbered options the assistant offers when a request matches several households, clients or
   advisors: click one, or type its number. */
.ai-chat-choices {
    margin-top: 6px;
    max-width: 90%;
}

.ai-chat-choice {
    display: block;
    width: 100%;
    margin: 0 0 4px 0;
    padding: 5px 8px;
    border: 1px solid #d9dbdd;
    border-radius: 4px;
    color: #34495e;
    background-color: #ffffff;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.ai-chat-choice:hover {
    border-color: #34495e;
}

.ai-chat-choice[disabled] {
    color: #9d9fa2;
    cursor: default;
}

.ai-chat-choice-number {
    display: inline-block;
    min-width: 18px;
    margin-right: 6px;
    padding: 0 4px;
    border-radius: 3px;
    color: #ffffff;
    background-color: #34495e;
    font-weight: 600;
    text-align: center;
}

.ai-chat-choice[disabled] .ai-chat-choice-number {
    background-color: #b8c2cc;
}

/* The History list (the clock button in the header): earlier conversations, named by their first
   question, in place of the messages; picking one reopens it. */
.ai-chat-icon-button.ai-chat-icon-button-active {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.ai-chat-history {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 10px 12px 12px 12px;
    background-color: #f7f9fa;
}

.ai-chat-history-heading {
    margin: 0 0 8px 0;
    color: #6a6c6f;
    font-size: 12px;
    font-weight: 600;
}

.ai-chat-history-item {
    display: flex;
    align-items: baseline;
    width: 100%;
    margin: 0 0 4px 0;
    padding: 6px 8px;
    border: 1px solid #e4e5e7;
    border-radius: 4px;
    color: #34495e;
    background-color: #ffffff;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.ai-chat-history-item:hover {
    border-color: #34495e;
}

/* A History line: the conversation, and its delete button beside it. */
.ai-chat-history-row {
    display: flex;
    align-items: stretch;
    margin: 0 0 4px 0;
}

.ai-chat-history-row .ai-chat-history-item {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    margin: 0;
}

.ai-chat-history-delete {
    flex: 0 0 auto;
    margin-left: 4px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #9d9fa2;
    background: transparent;
    font-size: 13px;
    cursor: pointer;
}

.ai-chat-history-delete:hover {
    border-color: #e4e5e7;
    color: #c0392b;
    background-color: #ffffff;
}

.ai-chat-history-delete[disabled] {
    opacity: 0.4;
    cursor: default;
}

.ai-chat-history-current {
    border-left: 3px solid #34495e;
}

.ai-chat-history-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ai-chat-history-date {
    flex: 0 0 auto;
    margin-left: 8px;
    color: #9d9fa2;
    font-size: 11px;
}
