html,
body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}
.app {
    display:flex; 
    flex-flow: column; 
    height:100%
}

/* ----------------------------------------------------- */
/* ---------------- Header Section --------------------- */
/* ----------------------------------------------------- */
.header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
}
.header_kerv_theme {
    min-height: 50px;
}
.header_genesys_theme {
    min-height: 40px;
}

.header-left {
    display: flex;
    align-items: center;
}
.tablinks {
    display: flex;
    background-color: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    transition: 0.3s;
}
.tablinks:hover {
    background-color: #ddd;
}
.tablinks.active-tab {
    background-color: #ccc;
}
.tablinks_kerv_theme {
    padding: 5px;
}
.tablinks_genesys_theme {
    padding: 0px 5px;
}

.header-right {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    margin-right: 10px;
}
.brand-component {
    display: flex;
    margin-top: 5px;
    align-items: baseline;
}
.interaction-info{
    display: flex;
    flex-direction: column;
    align-items: end;
    font-size: 10px;
    margin-right: 10px;
}
#kerv-logo{ 
    margin-left: 10px;
}

/* ----------------------------------------------------- */
/* ----------------- Main Section ---------------------- */
/* ----------------------------------------------------- */
.main {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    overflow: hidden;
}
        
/* Tab content */
.tabcontent {
    display: none;
    flex-direction: column;
    overflow: auto;
    height: 100%;
    padding: 0px 5px;
    animation: fadeEffect 1s; /* Fading effect takes 1 second */
}
.settings-tabcontent {
    padding: 0px 10px;
}

/* Go from zero to full opacity */
@keyframes fadeEffect {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.display {
    display: block;
}

.customer-language {
    position: absolute;
    top: 56px;
    right: 32px;
    z-index: 1;
    padding: 5px 10px;
    margin-left: 5px;
    background: #f1f1f1;
    border-radius: 10px;
    box-shadow: 0 0 6px #B2B2B2;
}
.customer-language-review-tab {
    display: flex;
    align-items: center;
    min-width: fit-content;
    padding: 5px 10px;
    margin-left: 5px;
    background: #f1f1f1;
    border-radius: 10px;
    box-shadow: 0 0 6px #B2B2B2;
}
.customer-language-draft-tab {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: max-content;
    padding: 5px 10px;
    background: #f1f1f1;
    border-radius: 10px;
    box-shadow: 0 0 6px #B2B2B2;
}
#customer-language span {
    margin-right: 5px;
}
.customer-language-select {
    border-radius: 5px;
    padding: 2px 5px;
    background: #f1f1f1;
}

#agent-assist {
    width: 100%;
    margin: 40px 0px 20px 0px;
}


.notification-message {
    background-color: #F2F2F2;
    border-radius: 5px;
    box-shadow: 0 0 6px #B2B2B2;
    display: inline-block;
    padding: 0px 10px;
    margin: 10px 5px;
}

.chat-message-container {
    background-color: #F2F2F2;
    border-radius: 10px;
    box-shadow: 0 0 6px #B2B2B2;
    display: flex;
    flex-direction: column;
    padding: 15px 20px 15px 15px;
    margin: 10px 20px 10px 20px;
    position: relative;
    vertical-align: top;
    max-width: 60%;
    min-width: 35%;
}

.chat-message-text {
    margin: 5px 0px 0px 0px;
    line-height: 1.4;
}
.chat-message-timestamp {
    color: #b8b8b8;
    margin: 0px;
    font-size: 12px;
}
.attachment-message-container {
    overflow: auto;
    padding: 8px;
    margin-top: 8px;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid grey;
    max-width: fit-content;
}
.attachment-message-container .attachment-detail {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.attachment-message-container .info {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.attachment-message-container .info .attachment-name{
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    word-break: break-all;
    color: #000;
}
.attachment-message-container .attachment-size {
    color: grey;
}
.attachment-message-container .attachment-image {
    object-fit: contain;
    max-width: 150px;
    border-radius: 8px;
    display: none;
}
.attachment-message-container .attachment-icons {
    display: flex;
    margin-left: 16px;
}
.attachment-message-container .attachment-show-icon {
    width: 16px;
}

.customer {
    background-color: white;
    color: #23395D;
    align-self: flex-start;
    border-top-left-radius: 0px;
}
.customer_genesys_theme {
    background-color: #faebd7;
    color: #000;
    align-self: flex-start;
    border-top-left-radius: 0px;
}

.agent {
    background-color: #7215C9;
    color: white;
    align-self: flex-end;
    border-top-right-radius: 0px;
}
.agent_genesys_theme {
    background-color: #f0f8ff;
    color: #000;
    align-self: flex-end;
    border-top-right-radius: 0px;
}

.workflow {
    background-color: #FF2B6E;
    color: white;
    align-self: flex-end;
    border-top-right-radius: 0px;
}
.workflow_genesys_theme {
    background-color: #FF2B6E;
    color: white;
    align-self: flex-end;
    border-top-right-radius: 0px;
}

.chat-conversation {
    display: flex;
    flex: 1 1 100%;
    flex-direction: column;
}

.message-pane {
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.link-container {
    margin: 10px;
}

#responses {
    padding: 0px;
}
#libraries-container {
    margin: 16px;
}

#canned-response-container {
    height: 100%;
    flex: 1 1 0;
}

.collapsible {
    border: 1px solid #23395D;
    border-radius: 25px;
    color: #23395D;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    text-align: left;
    outline: none;
    font-size: 15px;
    margin: 5px 0px;
}

    .active, .collapsible:hover {
        background-color: #23395D;
        border: 1px solid #23395D;
        color: white;
    }

.content {
    display: none;
    overflow: hidden;
    padding-left: 15px;
    padding-right: 5px;
}

#search-container {
    margin: 16px;
    margin-bottom: 0px;
    position: relative;
    display: flex;
    border: 1px solid grey;
    border-radius: 8px;
    padding: 4px 8px;
    align-items: center;
}
#search-container input {
    border: none;
    outline: none;
    padding: 0px;
    margin: 0px;
    width: 100%;
    height: 100%;
    font-size: 14px;
}
#search-container img {
    width: 20px;
    height: 20px;
    border-radius: 50px;
    padding: 2px 6px;
    cursor: pointer;
    border: 1px solid transparent;
}
#search-container img:hover {
    border-color: grey;
}
#search-container #clear-search-icon {
    display: none;
}

#search-result-container {
    display: none;
    margin: 16px;
}
#search-result-container #toggle-search {
    border: 1px solid grey;
    border-radius: 16px;
    padding: 4px 8px;
    cursor: pointer;
    width: fit-content;
}
#search-result-container .empty-result {
    margin: 0px auto;
    width: fit-content;
    margin-top: 30px;
    font-size: 16px;
    color: red;
}

.search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.tooltip {
    position: relative;
}
    /* Tooltip text */
    .tooltip .tooltiptext {
        visibility: hidden;
        width: max-content;
        word-break: break-word;
        max-width: 200px;
        background-color: black;
        color: #fff;
        text-align: center;
        padding: 5px 5px;
        border-radius: 6px;
        /* Position the tooltip text - see examples below! */
        position: absolute;
        z-index: 2;
        opacity: 0;
        transition: opacity 1s;
    }
    .tooltip .tooltiptext::after {
        content: "";
        position: absolute;
        margin-left: -5px;
        margin-top: -5px;
        border-width: 5px;
        border-style: solid;
    }
    /* Show the tooltip text when you mouse over the tooltip container */
    .tooltip:hover .tooltiptext {
        visibility: visible;
        opacity: 1;
    }

.tooltip .left {
    top: 50%;
    left: 100%;
    transform: translate(0%, -50%);
}
.tooltip .left::after {
    top: 50%;
    right: 100%;
    border-color: transparent #000 transparent transparent;
}

.tooltip .top-left {
    bottom: calc(100% + 10px);
    left: 0%;
}
.tooltip .top-left::after {
    bottom: calc(0% - 10px);
    left: 24px;
    border-color: #000 transparent transparent transparent;
}

.tooltip .bottom {
    top: 100%;
    left: 50%;
    transform: translate(-50%, 0%);
}
.tooltip .bottom::after {
    bottom: 100%;
    left: 50%;
    border-color: transparent transparent #000 transparent;
}

.tooltip .bottom-left {
  top: calc(100% + 4px);
  left: 0%;
}
.tooltip .bottom-left::after {
  top: calc(0% - 5.5px);
  left: 24px;
  border-color: transparent transparent #000 transparent;
}

.draft-attachments {
    display: flex;
    flex-direction: column;
    padding: 16px;
}
.draft-attachments .draft-attachments-header {
    display: flex;
    justify-content: space-between;
    padding: 5px 5px 0px;
}
.attachments {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}
.attachment-container{
    border: 1px solid #2a60c8;
    padding: 3px;
    margin: 5px 0px;
    width: 70%;
}
.attachment-container-inside {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.attachment-info{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-overflow: ellipsis;
    overflow: hidden;
    word-wrap: break-word;
    margin-left: 5px;
}
.attachment-name{
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    font-weight: 700;
    width: -webkit-fill-available;
}
.message-body p {
    margin: 0px;
    padding: 0px;
    line-height: 1.42857143;
}

.card:hover {
    box-shadow: -1px -1px 5px #dbdbdb !important;
}

.contact-card {
    display: flex;
    padding: 10px;
    justify-content: space-between;
    align-items: center;
}
.contact-card-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.contact-card-left-bottom {
    color: grey;
}
.contact-card:hover {
    background: #2a60c8;
    color: #fff;
}
.contact-card:hover .contact-card-left-bottom {
    color: #fff;
}
.contact-card-right {
    position: relative;
}
.fa-ellipsis-custom {
    font-size: 18px;
    background: #e3ebfb;
    padding: 5px 10px;
    color: #2a60c8;
    border-radius: 5px;
}
.multiple-addresses {
    display: none;
    position: absolute;
    top: 100%;
    right: 0%;
    background: white;
    color: #000;
    border-radius: 5px;
    border: 1px solid grey;
    z-index: 1;
}
.multiple-addresses-item {
    display: flex;
    flex-direction: column;
    padding: 10px 20px;
}
.multiple-addresses-item:hover {
    background: #2a60c8;
    color: #fff;
}

.response-top-container {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    padding-bottom: 0px;
}
.response-top-right-container {
    display: flex;
    align-items: center;
}
.resposne-address-link {
    padding: 5px 20px;
    background: #eff4ff;
    color: #2a60c8;
    cursor: pointer;
    border: 1px solid #2a60c8;
    min-width: 25px;
    text-align: center;
    transition: background-color .4s;
}
.resposne-address-link:hover {
    background: #e5edff;
}

.response-header {
    display: flex;
    flex-direction: column;
    margin: 0px 10px;
    margin-top: 16px;
    padding: 0px 10px 20px 0px;
    background-color: #fff;
}
.response-header-subject, .response-header-to, .response-header-cc {
    display: flex;
    align-items: center;
    padding: 15px 0px 0px 0px;
    width: 100%;
}
.response-header-label {
    display: flex;
    flex: 0 0 60px;
    justify-content: center;
    margin-right: 10px;
}
.response-header-input-container {
    display: flex;
    flex: auto;
    border-bottom: 1px solid black;
    padding: 5px 0px;
}
.response-header input {
    flex: auto;
    border: 0px;
    padding: 0px;
}
.response-header input:focus {
    outline: none;
    border-bottom: 0px;
}

.response-header-button {
    border: 0px;
    background-color: #fff;
}

.response-editor {
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
    margin: 0px 10px;
    margin-top: 16px;
    margin-bottom: 85px;
    -webkit-box-shadow: 0 0 5px 0 #999;
    -moz-box-shadow: 0 0 5px 0 #999;
    box-shadow: 0 0 5px 0 #999;
    border-radius: 5px;
}

.response-footer {
    display: flex;
    align-items: center;
    padding: 10px 0px 0px 10px;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 1;
    width: -webkit-fill-available;
    background-image: -webkit-linear-gradient(bottom, rgb(255, 255, 255), rgba(0, 255, 255, 0) 400%);
}
.response-action {
    display: flex;
    flex: 1;
    justify-content: flex-end;
}

.toggle-container {
    display: flex;
    align-items: center;
    border: 1px solid #777474;
    border-radius: 10px;
    padding: 5px 15px;
    color: #777474;
    cursor: pointer;
    transition: background-color .4s;
}
.toggle-container:hover {
    color: #777474;
    border-color: #777474;
    background-color: #f1f1f1;
}
.toggle-button {
    width: 30px;
    border: 1px solid #777474;
    border-radius: 20px;
    padding: 1px;
    margin-left: 5px;
}
.toggle-circle {
    width: 15px;
    height: 15px;
    background-color: #777474;
    border-radius: 20px;
    transition: .2s;
    transform: translateX(0%);
}
.toggle-active {
    border-color: #2a60c8;
    color: #2a60c8;
}
.toggle-active:hover {
    border-color: #2a60c8;
    color: #2a60c8;
    background-color: #eff4ff;
}
.toggle-active .toggle-circle {
    transform: translateX(100%);
    border-color: #2a60c8;
    background-color: #2a60c8;
}
.toggle-active .toggle-button {
    border-color: #2a60c8;
}

.address-container {
    display: flex;
    flex: auto;
    flex-direction: column;   
}
.address-text-list {
    display: flex;
    flex-wrap: wrap;
}
.address-text {
    display: flex;
    background: rgb(226, 230, 238);
    padding: 3px 5px;
    border-radius: 5px;
    width: max-content;
    align-items: center;
    margin-right: 5px;
    cursor: pointer;
    transition: background-color .4s;
}
.address-text:hover {
    background: rgb(215, 220, 229);
}
.invalid-address-text {
    background: #ffefef;
    border: 1px solid #ff8d8d;
}
.invalid-address-text:hover {
    background: #ffdada;
}

.draft-tab {
    display: flex;
    flex-direction: column;
    padding: 0px;
}
/* ----------------------------------------------------- */
/* ----------------- ChatBox Section ------------------- */
/* ----------------------------------------------------- */
.chat-box {
    display: none;
    padding: 2px 10px 10px 10px;
    border-top: 1px solid #ccc;
    background-color: #f1f1f1;
    width: 100%;
}
.top-chat-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    height: 20px;
    min-height: 15px;
    max-height: 15px;
    padding-top: 2px;
    color: #999999;
}
.bottom-chat-box {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 11px;
    height: 20px;
    min-height: 20px;
    max-height: 20px;
    padding-top: 2px;
    color: #999999;
}
.chat-text {
    width: 100%;
    max-height: 130px;
    overflow-y: auto;
    color: #000000;
    -moz-appearance: textfield-multiline;
    -webkit-appearance: textarea;
    border: 1px solid #ccc;
    height: 75px;
    overflow: auto;
    padding: 2px;
    resize: both;
    background-color: white;
    box-sizing: border-box;
}
.chat-text:focus {
    border-color: #75a8ff;
    box-shadow: 0 0 2px rgba(117,168,255,.72);
    outline: 0;
}
.chat-button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 4px 16px 4px 8px;
    transition: 0.3s;
}
.chat-button:hover {
    background-color: #ddd;
}

.font-small-normal{
    font-size: small;
    font-weight: 100;
}
.font-small-bold{
    font-size: small;
    font-weight: bold;
}
.font-medium-normal{
    font-size: medium;
    font-weight: 100;
}
.font-medium-bold{
    font-size: medium;
    font-weight: bold;
}
.font-large-normal{
    font-size: large;
    font-weight: 100;
}
.font-large-bold{
    font-size: large;
    font-weight: bold;
}
.button{
    background: #2a60c8;
    color: white;
    border-radius: 10px;
    border : 0px;
    padding: 10px 20px;
    cursor: pointer;
    margin: 10px;
    box-shadow: 0 0 0;
    transition: box-shadow .4s;
}
.button:hover{
    box-shadow: 0 0 6px #8d8989;
}
.button:disabled {
    background: #88a8e5;
}

/* Loading Icon */
.overlay, .modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 4;
}
.modal-container {
    z-index: 2;
}
.centered-svg, .modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}
.modal {
    z-index: 3;
}
/* ----------------------------------------------------- */
/* ----------------- Html Tag Section ------------------ */
/* ----------------------------------------------------- */

iframe {
    height: 350px;
}

hr {
    padding: 0px !important;
    margin: 0px !important;
}

a {
    color: #23395D;
}

a:hover {
    text-decoration: underline;
}

i {
    color: #b8b8b8;
}

p {
    word-wrap: break-word;
}



/* RichText */
/* page */
.page-wrapper {
    display: flex;
    max-width: 100%;
    height: 100%;
}
textarea {
    background-color:#FAFAFA;
    border:#EFEFEF solid 1px;
    color:#333;
    height:150px;
    width:100%;
}
/* richtext custom style */
.richText {
    display: flex;
    flex-direction: column;
}
.richText .richText-editor {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: clip !important;
    height: max-content !important;
}
.richText-editor:focus {
    border-left: 0px !important;
}
.richText .richText-editor p {
    margin: 0px;
    line-height: 1.42;
}
.richText-editor-container {
    flex: 1;
    overflow-y: scroll;
    background-color: #fff;
}
.richText-readonly-container {
    display: none;
    padding: 20px;
    background-color: #f2f4f9;
    border-radius: 5px;
}
.richText .richText-toolbar:last-child {
    display: none;
}

@media only screen and (max-width: 550px) {
  .customer-language-review-tab {
    flex-direction: column;
  }
}
@media only screen and (max-width: 450px) {
    .customer-language-draft-tab {
      flex-direction: column;
    }
}
@media only screen and (max-width: 400px) {  
  .toggle-container {
    flex-direction: column;
  }
  .response-footer {
    margin-bottom: 10px;
  }
}
@media only screen and (max-width: 345px) {
  .response-footer {
    margin: 10px 0px;
    flex-direction: column;
  }
  .response-editor {
    margin-bottom: 150px;
  }
}
@media only screen and (max-width: 325px) {
  .response-top-right-container {
    flex-direction: column;
  }
}

.attachment {
    border: 1px solid #2a60c8;
    display: flex;
    padding: 5px;
    align-items: center;
    margin: 5px;
    cursor: pointer;
}


#notifications-container {
    position: fixed;
    z-index: 10;
    top: 20px;
    right: 10px;
    width: 60%;
}
.error-notification {
    background: rgb(243 194 190);
    border: 2px solid rgba(255,88,74,1);
    border-radius: 20px;
}
.success-notification {
    background: rgb(160 229 195);
    border: 2px solid rgba(58,178,119,1);
    border-radius: 20px;
}
.notification-text {
    display: flex;
    padding: 8px 16px;
    align-items: center;
    margin-bottom: 5px;
    justify-content: space-between;
}
.notification-text img {
    cursor: pointer;
    margin-left: 10px;
}

/* styling to match genesys pre tags in chat */
pre {
    font-family: monospace;
    font-size: 1em;
    border: 1px solid;
    border-radius: 4px;
    padding: 9px;
    white-space: pre-wrap;
    display: block;
    margin: 1em 0px;
}

html ::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
html ::-webkit-scrollbar-thumb {
    background-color: grey;
    border-radius: 8px;
}