body {
    overflow-x: hidden;
}
#loader{width: 100vw;height: 100vh;position: fixed;top: 0;left: 0;background: rgba(0,0,0,0.7);z-index: 11111;}
#loader > .spinner{left: calc(50% - 22px);position: relative;top: calc(50% - 22px);color: #fff;}
#loader > .spinner.message {
    display: none;
    left: calc(50% - 40px);
}

.notify{box-sizing:border-box;left:10px;position:fixed;top:200px;width:350px}
.notify-top-center{left:calc(50% - 175px);z-index: 1111112 !important;}
.notify button, button.close {
    float: right;
    outline: 0 none;
    border: 0 none;
    background: transparent;
    margin-top: -3px;
    font-size: 18px;
}

.form-control.error {width: 100%;border-color: #f42121;font-size: inherit;}
label.error {color: #f42121 !important;font-size: 13px !important;position: relative;top: 4px;margin: 0;width: 100%;}

.avsight-btn {
    color: #fff;
    background-color: rgb(81, 178, 224) !important;
    border-color: rgb(81, 178, 224) !important;
	padding: 7px 15px;
}
.avsight-btn.shrink {
    padding: 2px 10px;
}

.jumbotron {
    padding-top: 30px;
    padding-bottom: 30px;
    margin-bottom: 0px !important;
    color: inherit;
    background-color: rgb(8,21,80) !important;
}
.jumbotron h1 {
    font-size: 63px;
	color: white !important;
}

/* make dialog full width */
.mw-570 {
    margin: 0 auto;
    max-width: 570px;
}

/* Email Page CSS */

.main-container {
    max-width: 570px;
    margin: 0 auto;
}
.main-container.full-width {
    max-width: 1280px;
    margin: 0 auto;
}
.message-box {
    height: 60vh;
    margin: 40vh auto 0;
    text-align: center;
    width: 90%;
}
.support-container {
    padding: 10px;
    position: fixed;
    bottom: 0;
    background: #fff;
    max-width: 570px;
}
.support-container .expand-icon {
    font-size: 12px;
}
.support-container .expand-icon.rotate:before {
    content: "\f078";
}
.support-container .merge-icons {
    position: relative;
    width: 20px;
    display: inline-block;
}
.support-container .merge-icons svg {
    width: 12px;
    position: absolute;
    left: 7px;
    top: 12px;
    background: #fff;
}

/* CoPilot Page */

.chat-container {
}
.search-section {
    padding: 5px 15px 15px;
    border-radius: 5px 5px 0 0;
}
.search-container .btn-container {
    padding: 1rem;
    width: 100%;
}
.search-container .btn-container.full-width-btn button {
    width: 100%;
}
.search-container .btn-container button {
    width: 49%;
}
.search-container .btn-container span {
    display: inline-block;
    width: 2%;
}
.search-container .btn-container img {
    position: relative;
    top: -2px;
}
.answer-text {
    white-space: pre-wrap;
    white-space: -moz-pre-wrap;
    white-space: -pre-wrap;
    white-space: -o-pre-wrap;
    word-wrap: break-word;
    font-family: arial;
    font-size: 12px;
}
.recent-section {
    padding: 5px 15px 15px;
    margin-bottom: 140px;
}
.history-item .collapse:not(.show), .history-item.collapse:not(.show) {
    display: block;
    overflow: hidden;
}
.history-item .collapse.text-truncate {
    max-height: 25px;
}
.search-section .history-item.collapse.text-truncate {
    max-height: 80px;
}
.history-item.collapse.text-truncate .answer-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.history-item .chat-time {
    text-align: right;
    font-size: 11px;
    margin: 0;
}
.history-item .kb-links {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 0;
}
.history-item .kb-links li {
    padding-top: 5px;
}
.history-item .answer-text a {
    word-break: break-word;
    overflow-wrap: break-word;
}
.support-container {
    padding: 15px;
    position: fixed;
    bottom: 0;
    background: #fff;
    max-width: 570px;
}
.support-container .expand-icon {
    font-size: 12px;
}
.support-container .expand-icon.rotate:before {
    content: "\f078";
}
.support-container .merge-icons {
    position: relative;
    width: 20px;
    display: inline-block;
}
.support-container .merge-icons svg {
    width: 12px;
    position: absolute;
    left: 7px;
    top: 12px;
    background: #fff;
}

.screen-title {
    font-size: 15px;
}
.search-container {
    border: 1px solid #dfdfdf;
    border-radius: 5px;
}
.search-container textarea, .search-container textarea:focus {
    border: 0 none;
    outline: 0 none;
    resize: none;
    box-shadow: none;
}

.chat-input-container {
    bottom: 0;
}
.chat {
    list-style: none;
    margin: 0;
    padding: 0;
}
.chat li {
    list-style: none;
    margin: 15px 0;
}
.chat li.question, .chat li.answer {
    display: block;
    width: 100%;
    position: relative;
}
.chat li.answer {
    text-align: right;
}
.chat li.question p:before, .chat li.answer p:before {
    display: block;
    clear: both;
    content: '';
    position: absolute;
    top: -6px;
    left: -7px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 12px 15px 12px;
    border-color: transparent transparent #f5f5f5 transparent;
    -webkit-transform: rotate(-37deg);
    -ms-transform: rotate(-37deg);
    transform: rotate(-37deg);
}
.chat li.answer p:before {
    top: auto;
    bottom: -3px;
    right: -7px;
    left: auto;
    border-color: transparent transparent #4b7bec transparent;
    -webkit-transform: rotate(37deg);
    -ms-transform: rotate(37deg);
    transform: rotate(37deg);
}
.chat li.question p, .chat li.answer p {
    color: #000;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    padding: 15px;
    background: #f5f5f5;
    display: inline-block;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    margin-bottom: 0;
    white-space: pre-line;
    position: relative;
}
.chat li.answer p {
    text-align: left;
    color: #fff;
    background: #4b7bec;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 0px;
}
.chat li.answer p a {
    color: #fff !important;
}
.chat li .time {
    display: block;
    color: #707070;
    font-size: 12px;
    font-weight: 400;
}
.chat li.answer .time {
    margin-right: 10px;
}
.btn-container {
    width: 140px;
    text-align: right;
}
.input-group .input-box, .input-group .input-box:focus {
    border-radius: 4px !important;
    outline: 0 none;
    box-shadow: none;
    height: 90px;
    resize: none;
}
.btn-container .btn {
    width: calc(100% - 5px);
}
.stat-info {
    font-size: 8pt;
    margin-top: 5px;
}
.max-height {
    max-height: 600px;
    overflow: auto;
}
.bottom-container .btn {
    width: 49%;
}
.bottom-container span {
    display: inline-block;
    width: 2%;
}
.message-box {
    height: 50vh;
    margin: 35vh auto 0;
    text-align: center;
    width: 90%;
}
.feature-preview-details p {
    margin-bottom: 0;
}
.position-initial {
    position: initial;
}

/* Release Notes Page */

.background {
    background-color: #efefef;
}
.note-item .idea-title {
    font-size: 15px;
    font-weight: bold;
    color: #4b6ee4;
    background: #ebebeb;
}
.note-item .idea-subtitle {
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    color: #000;
}
.note-item .idea-desc {
    white-space: pre-wrap;
    white-space: -moz-pre-wrap;
    white-space: -pre-wrap;
    white-space: -o-pre-wrap;
    word-wrap: break-word;
}
.note-item .idea-subtitle span {
    display: inline-block;
    border: 3px solid #000;
    border-radius: 50%;
    margin: 0 10px 2px;
}
.filter-container label {
    font-size: 12px;
}
.text-brown {
    color: #eb6b00 !important;
}
.text-red {
    color: red !important;
}

/* Features Request Page */

.background {
    background-color: #efefef;
}
.feature-item {
}
.feature-item .idea-title {
    font-size: 15px;
    font-weight: 700;
}
.feature-item .idea-subtitle {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.feature-item .idea-desc {
    white-space: pre-wrap;
    white-space: -moz-pre-wrap;
    white-space: -pre-wrap;
    white-space: -o-pre-wrap;
    word-wrap: break-word;
    font-size: 13px;
    color: var(--bs-secondary-color, #6c757d);
}
.feature-item .idea-subtitle span {
    display: inline-block;
    border: 3px solid currentColor;
    border-radius: 50%;
    margin: 0 4px;
    opacity: 0.5;
}
.feature-item .vote-container {
    border: 1px solid #dfdfdf;
    padding-top: 5px;
    margin: 0;
    float: right;
    border-radius: 4px;
    text-align: center;
    width: 100%;
}
.feature-item .vote-container > span {
    padding: 10px 0;
    display: inline-block;
}
.feature-item .vote-container .upvote-btn {
    background: #4b6ee4;
    color: #fff;
    padding: 7px 20px;
    margin-top: 5px;
    cursor: pointer;
    font-size: 12px;
}
.feature-item .vote-container .upvote-btn.status {
    background: #efefef;
    color: #000;
}
.feature-item .requester-container {
    text-align: center;
}
.feature-item .item-status {
    text-align: center;
    float: left;
    padding-top: 15px;
    margin-left: 5px;
    width: 70px;
}
.fr-list .truncate {
    max-width: 0%;
}
.fr-list tr:hover td {
    background-color: #e9e9e9;
}
.btn.shrink {
    padding: 2px 10px;
}
.remaining-votes {
    padding: 0px 15px 5px;
    position: fixed;
    bottom: 0;
    background: #fff;
    max-width: 570px;
    text-align: center;
}
.filter-container label {
    font-size: 12px;
}
.nav-tabs .nav-link.active{
    color: var(--bs-nav-link-color);
    border-color: transparent;
    background-color: unset;
}
.nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover{
    border-color: transparent;
}
.nav-link:focus-visible{
    box-shadow: none;
}
.nav-tabs .nav-link.active {
    border-bottom: 1px solid blue; 
    font-weight: 600;
}

/* Dark mode overrides */
[data-bs-theme="dark"] body {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}
[data-bs-theme="dark"] .support-container {
    background: var(--bs-body-bg);
}
[data-bs-theme="dark"] .support-container .merge-icons svg {
    background: var(--bs-body-bg);
}
[data-bs-theme="dark"] .search-container {
    border-color: var(--bs-border-color);
}
[data-bs-theme="dark"] .chat li.question p {
    background: #2b2b2b;
    color: #e0e0e0;
}
[data-bs-theme="dark"] .chat li.question p:before {
    border-color: transparent transparent #2b2b2b transparent;
}
[data-bs-theme="dark"] .bg-white {
    background-color: var(--bs-body-bg) !important;
}
[data-bs-theme="dark"] .note-item .idea-title {
    background: #2b2b2b;
    color: #7fa0f0;
}
[data-bs-theme="dark"] .background {
    background-color: #1a1a2e;
}
[data-bs-theme="dark"] .remaining-votes {
    background: var(--bs-body-bg);
}
[data-bs-theme="dark"] .modal-content {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}
[data-bs-theme="dark"] .form-control {
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
    border-color: var(--bs-border-color);
}
[data-bs-theme="dark"] .jumbotron {
    background-color: #0a1440 !important;
}
[data-bs-theme="dark"] .bg-light {
    background-color: var(--bs-tertiary-bg) !important;
}
[data-bs-theme="dark"] .form-select {
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
    border-color: var(--bs-border-color);
}
[data-bs-theme="dark"] .form-label {
    color: var(--bs-body-color);
}
[data-bs-theme="dark"] .text-dark {
    color: var(--bs-body-color) !important;
}
[data-bs-theme="dark"] .text-muted {
    color: var(--bs-secondary-color) !important;
}
[data-bs-theme="dark"] .shadow, [data-bs-theme="dark"] .shadow-lg {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.4) !important;
}
[data-bs-theme="dark"] .border {
    border-color: var(--bs-border-color) !important;
}
[data-bs-theme="dark"] .border-bottom {
    border-color: var(--bs-border-color) !important;
}
[data-bs-theme="dark"] .border-top {
    border-color: var(--bs-border-color) !important;
}
[data-bs-theme="dark"] .feature-item .idea-subtitle {
    color: var(--bs-secondary-color);
}
[data-bs-theme="dark"] .feature-item .vote-container {
    border-color: var(--bs-border-color);
}
[data-bs-theme="dark"] .feature-item .vote-container .upvote-btn.status {
    background: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
}
[data-bs-theme="dark"] .filter-container label {
    color: var(--bs-body-color);
}
[data-bs-theme="dark"] .form-check-label {
    color: var(--bs-body-color);
}
[data-bs-theme="dark"] .form-text {
    color: var(--bs-secondary-color) !important;
}
[data-bs-theme="dark"] .input-group-text {
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
    border-color: var(--bs-border-color);
}
[data-bs-theme="dark"] .card {
    background-color: var(--bs-body-bg);
    border-color: var(--bs-border-color);
}
[data-bs-theme="dark"] .close {
    color: var(--bs-body-color);
}

/* App Header (popup/embedded navigation) */
.app-header {
    background: var(--bs-body-bg, #fff);
    border-color: var(--bs-border-color, #dee2e6) !important;
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* Compact filter sidebar for Tickets / Change Requests */
.filter-sidebar { font-size: 0.8rem; padding: 0.6rem !important; }
.filter-sidebar .form-label { font-size: 0.75rem; margin-bottom: 0.15rem; }
.filter-sidebar .form-control,
.filter-sidebar .form-select { font-size: 0.78rem; padding: 0.25rem 0.5rem; }
.filter-sidebar .mb-3 { margin-bottom: 0.5rem !important; }
.filter-sidebar .mb-2 { margin-bottom: 0.35rem !important; }
.filter-sidebar .btn { font-size: 0.78rem; padding: 0.3rem 0.6rem; }
.filter-sidebar h2 { font-size: 0.85rem !important; margin-bottom: 0.5rem !important; }