﻿@charset "UTF-8";

.cardpop {
    transition: transform 0.2s cubic-bezier(.4,2,.6,1), box-shadow 0.2s cubic-bezier(.4,2,.6,1);
}

    .cardpop:hover {
        transform: translateY(-8px) scale(1.03);
        box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 1.5px 6px rgba(0,0,0,0.12);
        z-index: 2;
    }

.fs-7 {
    font-size: 0.6rem !important;
    font-weight: bold;
}

.intakePopover {
    --ct-popover-body-color: red;
    --ct-popover-border-width: 2px;
}

.navbar-custom {
    box-shadow: none;
}

.credit-callout {
    position: absolute;
    top: calc(100% - 8px);
    left: 50%;
    width: 190px;
    margin-left: -95px;
    padding: 26px 14px;
    border: 1px solid #b6dcfb;
    border-radius: 16px;
    background: #eaf5ff;
    color: #185a91;
    box-shadow: 0 5px 18px rgba(38, 117, 181, 0.14);
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    z-index: 1;
    animation: credit-callout-bounce 1.5s ease-in-out infinite;
}

    .credit-callout::before {
        content: "";
        position: absolute;
        top: -7px;
        left: calc(50% - 7px);
        width: 13px;
        height: 13px;
        background: #eaf5ff;
        border-top: 1px solid #b6dcfb;
        border-left: 1px solid #b6dcfb;
        transform: rotate(45deg);
    }

    .credit-callout:hover,
    .credit-callout:focus-within {
        animation-play-state: paused;
    }

    .credit-callout .credit-callout-close {
        position: absolute;
        top: 4px;
        right: 4px;
        padding: 7px;
        font-size: 10px;
    }

.credit-callout-low {
    background: #fff0f0;
    border-color: #f3c4c4;
    color: #a33434;
    box-shadow: 0 5px 18px rgba(163, 52, 52, 0.12);
}

    .credit-callout-low::before {
        background: #fff0f0;
        border-color: #f3c4c4;
    }

@keyframes credit-callout-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
    .credit-callout { animation: none; }
}

.credit-manage-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: var(--ct-tertiary-bg);
}

    .credit-manage-nav .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        border: 1px solid var(--ct-border-color);
        background: var(--ct-body-bg);
    }

    .credit-manage-nav .nav-link:hover,
    .credit-manage-nav .nav-link:focus-visible,
    .credit-manage-nav .nav-link.active {
        border-color: var(--ct-primary);
    }

@media (min-width: 1200px) {
    .credit-manage-nav { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .credit-manage-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.nav-tabs {
    border-bottom: none !important;
}

.btn-circle {
    width: 30px;
    height: 30px;
    padding: 6px 0px;
    border-radius: 15px;
    text-align: center;
    font-size: 12px;
    line-height: 1.42857;
}

/*.modal-body {
    max-height: calc(100vh - 155px);
    overflow: auto;
}*/

.modal-timeline {
    overflow: auto;
}

.twitter-typeahead, .tt-hint, .tt-input, .tt-menu {
    width: 100%;
    font-size: 12px;
}

.no-wrap {
    white-space: nowrap;
}

/*CASEGRADE COLORING*/
/* Base casegrade styles: only apply color */
.casegrade-0 {
    color: #ff0000 !important;
    font-weight: bold;
}

    .casegrade-0.bar {
        background-color: #ff0000 !important;
        width: 2.5% !important;
    }

.casegrade-5 {
    color: #ff3300 !important;
    font-weight: bold;
}

    .casegrade-5.bar {
        background-color: #ff3300 !important;
        width: 5% !important;
    }

.casegrade-10 {
    color: #ff6600 !important;
    font-weight: bold;
}

    .casegrade-10.bar {
        background-color: #ff6600 !important;
        width: 10% !important;
    }

.casegrade-15 {
    color: #ff8000 !important;
    font-weight: bold;
}

    .casegrade-15.bar {
        background-color: #ff8000 !important;
        width: 15% !important;
    }

.casegrade-20 {
    color: #ff9900 !important;
    font-weight: bold;
}

    .casegrade-20.bar {
        background-color: #ff9900 !important;
        width: 20% !important;
    }

.casegrade-25 {
    color: #ffb200 !important;
    font-weight: bold;
}

    .casegrade-25.bar {
        background-color: #ffb200 !important;
        width: 25% !important;
    }

.casegrade-30 {
    color: #ffcc00 !important;
    font-weight: bold;
}

    .casegrade-30.bar {
        background-color: #ffcc00 !important;
        width: 30% !important;
    }

.casegrade-35 {
    color: #ffe000 !important;
    font-weight: bold;
}

    .casegrade-35.bar {
        background-color: #ffe000 !important;
        width: 35% !important;
    }

.casegrade-40 {
    color: #fff000 !important;
    font-weight: bold;
}

    .casegrade-40.bar {
        background-color: #fff000 !important;
        width: 40% !important;
    }

.casegrade-45 {
    color: #ffff00 !important;
    font-weight: bold;
}

    .casegrade-45.bar {
        background-color: #ffff00 !important;
        width: 45% !important;
    }

.casegrade-50 {
    color: #e5ff00 !important;
    font-weight: bold;
}

    .casegrade-50.bar {
        background-color: #e5ff00 !important;
        width: 50% !important;
    }

.casegrade-55 {
    color: #ccff00 !important;
    font-weight: bold;
}

    .casegrade-55.bar {
        background-color: #ccff00 !important;
        width: 55% !important;
    }

.casegrade-60 {
    color: #b2ff00 !important;
    font-weight: bold;
}

    .casegrade-60.bar {
        background-color: #b2ff00 !important;
        width: 60% !important;
    }

.casegrade-65 {
    color: #99ff00 !important;
    font-weight: bold;
}

    .casegrade-65.bar {
        background-color: #99ff00 !important;
        width: 65% !important;
    }

.casegrade-70 {
    color: #80ff00 !important;
    font-weight: bold;
}

    .casegrade-70.bar {
        background-color: #80ff00 !important;
        width: 70% !important;
    }

.casegrade-75 {
    color: #66ff00 !important;
    font-weight: bold;
}

    .casegrade-75.bar {
        background-color: #66ff00 !important;
        width: 75% !important;
    }

.casegrade-80 {
    color: #4dff00 !important;
    font-weight: bold;
}

    .casegrade-80.bar {
        background-color: #4dff00 !important;
        width: 80% !important;
    }

.casegrade-85 {
    color: #33ff00 !important;
    font-weight: bold;
}

    .casegrade-85.bar {
        background-color: #33ff00 !important;
        width: 85% !important;
    }

.casegrade-90 {
    color: #1aff00 !important;
    font-weight: bold;
}

    .casegrade-90.bar {
        background-color: #1aff00 !important;
        width: 90% !important;
    }

.casegrade-95 {
    color: #00ff00 !important;
    font-weight: bold;
}

    .casegrade-95.bar {
        background-color: #00ff00 !important;
        width: 95% !important;
    }

.casegrade-100 {
    color: #00ff33 !important;
    font-weight: bold;
}

    .casegrade-100.bar {
        background-color: #00ff33 !important;
        width: 100% !important;
    }

[class^="casegrade-"],
[class*=" casegrade-"] {
    color: #000;
    text-align: center;
    vertical-align: middle;
    min-height: 7px; /* Minimum height to make sure it's visible */
    min-width: 2.5%; /* Minimum width to maintain visibility */
}

/* Container for the progress bar and dashed lines */
.progress-container {
    display: flex;
    align-items: center;
    /*width: 100%;*/
    height: 20px;
    position: relative;
}

/* The div showing the 5% progress */
/*.progressy {
    width: 100%;
    height: 8px;
    background-color: #4caf50;*/ /* Green color for the progress */
/*}*/

/* The div with the dashed lines */
.dashed-lines {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    /*border-left: 1px dashed #c5c5c5;*/
    /*border-right: 1px dashed #cccccc;*/
}

/* Dashed lines inside the container */
.dashed-line {
    height: 100%;
    width: 1px;
    border-left: 1px dashed #a7a7a7;
}

.chat-container {
    height: calc(100vh - 228px); /* Adjust for header if needed */
    display: flex;
    flex-direction: column;
}

.transcript-copy-action {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    z-index: 3;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f8f9fa;
}

.chat-message {
    margin-bottom: 1rem;
}

.chat-form {
    padding: 1rem;
    /*background-color: white;*/
    /*border-top: 1px solid #dee2e6;*/
}

.chat-user-message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    max-width: 90%;
}

.chat-bubble-user {
    width: fit-content;
    max-width: 100%;
    padding: 0.65rem 0.9rem;
    border-radius: 14px;
    background-color: var(--ct-primary-bg-subtle) !important;
    border: 1px solid var(--ct-primary-border-subtle);
    color: var(--ct-primary-text-emphasis) !important;
    white-space: normal;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

.chat-bubble-user .chat-message-text {
    white-space: pre-wrap;
}

.chat-bubble-bot {
    background-color: #e2e3e5;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    max-width: 90%;
    align-self: flex-start;
    overflow-wrap: anywhere;
}

.chat-bubble-bot pre {
    max-width: 100%;
    overflow-x: auto;
}

.chat-prompt {
    min-height: 40px;
    max-height: 180px;
    resize: none;
    overflow-y: auto;
}

.conversation-attachments {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 0.75rem;
    background-color: #f8f9fa;
}

.conversation-attachment {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 148px !important;
    min-width: 148px;
    max-width: 148px;
    height: 128px !important;
    min-height: 128px;
    max-height: 128px;
    flex: 0 0 148px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #fff;
    color: #495057;
    box-sizing: border-box;
}

.conversation-attachment-wrapper {
    position: relative;
    width: 148px !important;
    min-width: 148px;
    max-width: 148px;
    flex: 0 0 148px;
    white-space: normal;
}

.conversation-attachment-wrapper.selected-for-context .conversation-attachment {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

.conversation-attachment-use {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    display: inline-flex;
    width: 26px;
    height: 26px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid #ced4da;
    border-radius: 50%;
    line-height: 1.2;
    background-color: rgba(255, 255, 255, 0.94);
    color: #495057;
    box-shadow: 0 1px 4px rgba(33, 37, 41, 0.2);
}

.conversation-attachment-wrapper.selected-for-context .conversation-attachment-use {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.conversation-attachment-preview {
    display: flex;
    width: 100%;
    height: 94px;
    flex: 0 0 94px;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background-color: #fff;
    box-sizing: border-box;
}

.conversation-attachment-preview img {
    display: block !important;
    width: auto !important;
    min-width: 0;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0;
    max-height: 100% !important;
    object-fit: contain !important;
}

.conversation-attachment-icon {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.conversation-attachment-name {
    display: block;
    width: 100%;
    overflow: hidden;
    padding: 0.45rem 0.55rem;
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
    color: #495057;
    font-size: 0.72rem;
    line-height: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
}

:host audio {
    padding-top: 10px;
}

pre, code {
    white-space: pre-wrap;
    word-break: break-word;
}

/* Inline search-highlight mark (used by DataTable and transcript search) */
mark.search-highlight {
    background-color: #ffe066;
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}

/*Highlighting for DataTables search results*/
table.dataTable span.highlight {
    background-color: #FFFF88;
    border-radius: 0.28571429rem;
}

table.dataTable span.column_highlight {
    background-color: #ffcc99;
    border-radius: 0.28571429rem;
}

/* Compact Docs Accordion Styles */
.docsAccordion {
    font-size: 0.8rem;
}

    .docsAccordion .accordion-header {
        height: 35px;
    }

    .docsAccordion .accordion-button {
        font-size: 0.8rem;
        font-weight: bold;
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
        height: 35px;
        line-height: 1.2;
    }

    .docsAccordion .refresh-doc-btn {
        padding-top: 0;
        padding-bottom: 0;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        height: 28px;
        line-height: 1;
    }

    .docsAccordion .list-group-item {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
        height: 35px;
        line-height: 1.2;
    }

        .docsAccordion .list-group-item .btn-danger {
            margin-left: 0.25rem;
            margin-right: 0.25rem;
            padding-top: 0;
            padding-bottom: 0;
            padding-left: 0.5rem;
            padding-right: 0.5rem;
            height: 28px;
            line-height: 1;
        }

    .docsAccordion .accordion-body .p-2 {
        height: 35px;
        line-height: 1.2;
        display: flex;
        align-items: center;
    }

    /* Equal Height Case Cards with Flexbox - WhosWho page only */
    #rightWindow .scrollable-cards-container .row {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
    }

    #rightWindow .scrollable-cards-container .col-sm-6 {
        display: flex;
        /*margin-bottom: 1rem;*/
    }

    #rightWindow .scrollable-cards-container .card {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    #rightWindow .scrollable-cards-container .card-body {
        display: flex;
        flex-direction: column;
    }

    #rightWindow .scrollable-cards-container .card-body .badge {
        align-self: flex-start;
    }

    /* Push contact info (h6 elements with mt-3 class) to bottom */
    #rightWindow .scrollable-cards-container .card-body h6.mt-3 {
        margin-top: auto !important;
    }
}
