/* CSS bleeds out. Be careful with specificity. */

pfe-collapse-toggle h3 {
    position: relative;
    background-color: #f0f0f0;
    padding: 5px;
}

pfe-collapse-toggle h3:after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    right: 10px;
    top: 10px;
    display: block;
    background-color: black;
    color: white;
    border: 1px solid black;
}

pfe-collapse-toggle[aria-expanded='true'] h3:after {
    background-color: white;
    color: black;
    border: 1px solid black;
}

button,
.pf-v6-c-button,
.btn.btn-app {
    font-size: 14px;
}

.archived-clusters-checkbox {
    grid-gap: 0px;
}

.case-details-tabs .pf-v6-c-tabs__item.pf-m-current {
    border-bottom: var(--pf-v6-c-tabs__item--m-current__link--after--BorderWidth) solid
        var(--pf-v6-c-tabs__item--m-current__link--after--BorderColor);
    background-color: var(--pf-v6-c-tabs__item--m-current--BackgroundColor);
}

.case-details-tabs .case-details-tabs-content {
    background-color: #f0f0f0;
    margin-left: -1.8rem;
    padding-left: 1.8rem;
    margin-right: -1.8rem;
    padding-right: 1.8rem;
    margin-bottom: -1rem;
    padding-bottom: 8rem;
    min-height: 300px;
}

.case-details-tabs-content {
    border-radius: 0 0 0 16px !important;
}

.support-comment {
    display: block;
    margin-bottom: 1rem;
    padding: 1.4rem 1.3rem 0.8rem 1.5rem;
    background-color: #fff;
    color: #252525;
    border: 1px solid #d2d2d2;
    border-left: 4px solid #ee0000;
}

.discussion-elements:last-child support-comment {
    margin-bottom: 0;
}

.support-comment.selected-case-comment {
    outline: 2px solid #0066cc;
    outline-offset: -2px;
    animation: selected-comment-fade 3s ease-out forwards;
}

@keyframes selected-comment-fade {
    0% {
        outline-color: #0066cc;
        background-color: #e7f1fa;
    }
    100% {
        outline-color: transparent;
        background-color: #fff;
    }
}

.support-comment.comment-associate {
    border-left: 4px solid #ee0000;
}

.support-comment.comment-customer {
    border-left: 4px solid #316dc1;
}

.support-comment.comment-partner {
    border-left: 4px solid #316dc1;
}

.support-comment.comment-automated {
    border-left: 4px solid #006d8c;
    padding: 24px;
}

.support-comment.comment-automated header {
    align-items: center;
}

.support-comment.comment-automated header h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
}

.asa-comment-author {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.asa-comment-author-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: block;
    margin-right: 8px;
}

.support-comment.comment-automated .asa-comment-alert.pf-v6-c-alert {
    margin-top: 16px;
    padding: 16px;
    background-color: #fff;
    border: 2px solid #5e40be;
    border-radius: 16px;
    box-shadow: none;
}

.support-comment.comment-automated .asa-comment-alert.pf-v6-c-alert::before {
    display: none;
}

.support-comment.comment-automated .asa-comment-alert .pf-v6-c-alert__icon {
    color: #5e40be;
}

.support-comment.comment-automated .asa-comment-alert .pf-v6-c-alert__title {
    font-weight: 600;
}

.asa-discussion-alert.pf-v6-c-alert {
    margin: 0 0 16px;
    padding: 16px;
    background-color: #fff;
    border: 2px solid #5e40be;
    border-radius: 16px;
    box-shadow: none;
}

.asa-discussion-alert.pf-v6-c-alert::before {
    display: none;
}

.asa-discussion-alert .pf-v6-c-alert__icon {
    color: #5e40be;
}

.asa-discussion-alert .pf-v6-c-alert__title {
    font-weight: 600;
}

.asa-discussion-alert .pf-v6-c-alert__description a {
    text-decoration: underline;
}

.asa-send-feedback-link,
.asa-send-feedback-link.pf-v6-c-button,
.asa-send-feedback-link.pf-v6-c-button.pf-m-link,
.asa-send-feedback-link .pf-v6-c-button__text {
    text-decoration: none;
}

.asa-send-feedback-link:hover,
.asa-send-feedback-link:focus,
.asa-send-feedback-link.pf-v6-c-button:hover,
.asa-send-feedback-link.pf-v6-c-button:focus,
.asa-send-feedback-link:hover .pf-v6-c-button__text,
.asa-send-feedback-link:focus .pf-v6-c-button__text {
    text-decoration: none;
}

.asa-comment-feedback-modal,
#asa-comment-feedback-modal {
    font-size: 14px;
}

.asa-comment-feedback-modal .pf-v6-c-modal-box__close,
#asa-comment-feedback-modal .pf-v6-c-modal-box__close {
    display: none;
}

.asa-comment-feedback-modal-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.asa-comment-feedback-modal-close.pf-v6-c-button,
.asa-comment-feedback-modal-close.pf-v6-c-button.pf-m-plain,
.asa-comment-feedback-modal-close.pf-v6-c-button:hover,
.asa-comment-feedback-modal-close.pf-v6-c-button:focus,
.asa-comment-feedback-modal-close.pf-v6-c-button:active {
    background: transparent;
    background-color: transparent;
    box-shadow: none;
}

.asa-comment-feedback-modal .asa-comment-feedback-modal-title,
#asa-comment-feedback-modal .asa-comment-feedback-modal-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.asa-comment-feedback-modal .asa-comment-feedback-modal-description,
.asa-comment-feedback-modal .pf-v6-c-form__label,
.asa-comment-feedback-modal .pf-v6-c-form__label-text,
.asa-comment-feedback-modal .asa-feedback-rating-option,
.asa-comment-feedback-modal .pf-v6-c-form-control,
.asa-comment-feedback-modal textarea,
.asa-comment-feedback-modal .asa-feedback-privacy,
.asa-comment-feedback-modal .pf-v6-c-button,
#asa-comment-feedback-modal .asa-comment-feedback-modal-description,
#asa-comment-feedback-modal .pf-v6-c-form__label,
#asa-comment-feedback-modal .pf-v6-c-form__label-text,
#asa-comment-feedback-modal .asa-feedback-rating-option,
#asa-comment-feedback-modal .pf-v6-c-form-control,
#asa-comment-feedback-modal textarea,
#asa-comment-feedback-modal .asa-feedback-privacy,
#asa-comment-feedback-modal .pf-v6-c-button {
    font-size: 14px;
}

.asa-comment-feedback-modal .asa-comment-feedback-modal-description,
#asa-comment-feedback-modal .asa-comment-feedback-modal-description {
    margin-bottom: 1rem;
}

.asa-comment-feedback-modal .asa-feedback-privacy {
    color: #151515;
    line-height: 21px;
}

.asa-comment-feedback-modal .asa-feedback-rating-option {
    background-color: #fff;
    color: #151515;
}

.asa-comment-feedback-modal .asa-feedback-rating-option .pf-v6-c-icon,
.asa-comment-feedback-modal .asa-feedback-rating-option svg {
    color: #151515;
    fill: currentColor;
    background: transparent;
}

.support-comment.comment-automated .comment-body {
    margin-top: 16px;
}

.support-comment.comment-automated .comment-body > .push-top-narrow {
    margin-top: 0;
}

.asa-feedback-rating-options {
    display: flex;
    gap: 16px;
    width: 100%;
}

.asa-feedback-rating-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--pf-t--global--border--color--default, #e0e0e0);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    color: inherit;
}

.asa-feedback-rating-option:hover,
.asa-feedback-rating-option:focus {
    border-color: var(--pf-t--global--border--color--hover, #0066cc);
}

.asa-feedback-rating-option.is-selected {
    border-color: var(--pf-t--global--border--color--clicked, #0066cc);
    box-shadow: inset 0 0 0 1px var(--pf-t--global--border--color--clicked, #0066cc);
}

.support-comment.comment-external-tracker {
    border-left: 4px solid #000000;
}

.support-comment.comment-attachment {
    border-left: 4px solid #286869;
}

.support-comment.private {
    background-color: rgba(250, 234, 232, 0.7);
}

.support-comment header {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-align: baseline;
    align-items: baseline;
    font-size: 15px;
}

.support-comment header h4 {
    font-weight: 600;
}

.support-comment header time {
    color: #4d4d4d;
    font-size: 13px;
}

.support-comment .comment-body {
    word-break: break-word;
    font-size: 1.12rem;
    line-height: 1.5em;
}

.support-comment .comment-body ul,
.support-comment .comment-body ol,
.support-comment .comment-richtext ul,
.support-comment .comment-richtext ol {
    margin: 0;
    margin-bottom: 1rem;
    padding: 0;
}

.support-comment .comment-body ul,
.support-comment .comment-richtext ul {
    margin-left: 1.5rem;
    list-style: disc outside;
}

.support-comment .comment-body ul ul,
.support-comment .comment-richtext ul ul {
    list-style: circle outside;
}

.support-comment .comment-body ul ul ul,
.support-comment .comment-richtext ul ul ul {
    list-style: square outside;
}

.support-comment .comment-body ol,
.support-comment .comment-richtext ol {
    margin-left: 1.5rem;
    list-style: decimal outside;
}

.support-comment .comment-body ol ol,
.support-comment .comment-richtext ol ol {
    list-style: lower-alpha outside;
}

#case-description ul {
    list-style: '-';
    padding-left: 1rem;
    line-height: 1rem;
}

.support-comment footer {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-align: center;
    align-items: center;
    margin-top: 0.5rem;
}

.support-comment footer .comment-note {
    color: #a30000;
    font-size: 15px;
    font-weight: 600;
}

.support-comment footer .text-danger {
    color: #a30000;
    margin-left: auto;
}

.support-comment footer .text-danger:hover,
.support-comment footer .text-danger:focus {
    color: #660000;
}

.support-comment.comment-attachment {
    overflow: hidden;
    transition: all 0.5s ease-in;
    height: 0;
    opacity: 0;
}

.support-comment.comment-attachment .comment-body {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.support-comment.comment-attachment.showcard {
    height: 100%;
    opacity: 1;
}

.clipboard-wrapper {
    display: flex;
    position: relative;
}

.clipboard-wrapper svg {
    color: var(--pf-t--global--text--color--link--default);
}

.clipboard-wrapper :first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.helper-text-size {
    font-size: var(--pf-t--global--font--size--100);
}

.label-text-size {
    font-size: var(--pf-t--global--font--size--300);
}

.request-collaboration-input {
    background-color: var(--pf-t--global--background--color--200);
    border: var(--pf-t--global--border--width--box--default) solid var(--pf-t--global--border--color--100);
}

.copy-button {
    display: flex;
    align-items: center;
}

.clip-code-raw-btn {
    position: absolute;
    background-color: #fff;
    right: 0px;
    top: 0px;
    bottom: 0px;
    padding: 5px 10px;
    border: 1px solid #ededed;
    color: #0076e0;
}

.clip-content-wrapper code {
    padding: 0px;
    white-space: nowrap;
}

.comment-feedback-buttons {
    margin-left: auto;
    margin-right: 1rem;
}

.support-comment footer .comment-feedback-buttons button {
    font-size: 20px !important;
    padding: 0.375rem 0.5rem !important;
}

.comment-body .attachment-download-btn {
    --pf-v6-c-button--m-link--m-inline--TextDecorationLine: none;
    --pf-v6-c-button--m-link--m-inline--hover--TextDecorationLine: none;
    --pf-v6-c-button--TextDecorationLine: none;
    --pf-v6-c-button--hover--TextDecorationLine: none;
    padding: 0px 3px;
    white-space: nowrap;
    text-decoration: none;
}

.downshift input[disabled] + label {
    opacity: 0.2;
}

.reset-pre-text {
    padding: 0;
    margin: 0;
    border: none;
    background: none;
}

.rbt-input.rbt-input-multi {
    height: auto !important; /* for IE */
}

.rbt .rbt-input-wrapper .rbt-input-hint-container,
.rbt .rbt-input-wrapper .rbt-input-hint-container > * {
    display: inline !important;
}

.rbt .rbt-input-main {
    width: 100% !important;
}

.rbt .rbt-token {
    margin: 2px 10px 2px 0;
}

.rbt .rbt-token button {
    background: none;
    padding: 7px;
}

.rbt .rbt-input.rbt-input-multi.is-invalid {
    border-bottom: 2px solid #c9190b !important;
}

.rbt .rbt-input.rbt-input-multi .rbt-input-wrapper::-webkit-scrollbar {
    display: none;
    scrollbar-width: none;
}

.rbt .rbt-input.rbt-input-multi .rbt-input-wrapper > * {
    display: inline-block !important;
}

.rbt .rbt-input.rbt-input-multi .rbt-input-wrapper > *:not(.rbt-token) {
    width: -webkit-fill-available;
}

.post-comment-btn-group {
    display: flex;
}

.post-comment-btn-group .upload-another-file {
    margin-right: 0.5rem;
}

.post-comment-btn-group .post-comment-checkbox {
    margin-left: auto;
}

.post-comment-btn-group .post-comment-checkbox input[type='checkbox'] {
    margin: 0 2px 0 0;
}

.support-comment mark,
.mark {
    padding: 0;
}

.case-comment-input-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.case-comment-input-container .case-comment-search-input-wrapper {
    position: relative;
    flex: 1;
}

.case-comment-input-container .case-comment-search-input-wrapper input {
    padding-right: 2rem;
}

.case-comment-input-container .clear-btn {
    position: absolute;
    top: 50%;
    right: 0.25rem;
    transform: translateY(-50%);
    font-size: 14px;
    background-color: transparent;
    padding: 0 0.5rem;
}

.ReactVirtualized__List:focus {
    outline: none;
}

input[aria-invalid='true'].pf-v6-c-form-control {
    border-bottom-width: 2px !important;
}

.comment-body ul,
.comment-body ol,
.comment-richtext ul,
.comment-richtext ol,
.markdown-preview ul,
.markdown-preview ol {
    margin: 0;
    margin-bottom: 1rem;
    padding: 0;
}

.comment-body ul,
.comment-richtext ul,
.markdown-preview ul {
    margin-left: 1.5rem;
    list-style: disc outside;
}

.comment-body ul ul,
.comment-richtext ul ul,
.markdown-preview ul ul {
    list-style: circle outside;
}

.comment-body ul ul ul,
.comment-richtext ul ul ul,
.markdown-preview ul ul ul {
    list-style: square outside;
}

.comment-body ol,
.comment-richtext ol,
.markdown-preview ol {
    margin-left: 1.5rem;
    list-style: decimal outside;
}

.comment-body ol ol,
.comment-richtext ol ol,
.markdown-preview ol ol {
    list-style: lower-alpha outside;
}

.comment-body .ql-align-center {
    text-align: center;
}

.comment-body .ql-align-right {
    text-align: right;
}

.comment-body .ql-align-justify {
    text-align: justify;
}

.comment-body .ql-indent-1 {
    padding-left: 3em;
}

.comment-body .ql-indent-2 {
    padding-left: 6em;
}

.comment-body .ql-indent-3 {
    padding-left: 9em;
}

.comment-body .ql-indent-4 {
    padding-left: 12em;
}

.comment-body .ql-indent-5 {
    padding-left: 15em;
}

.comment-body p,
.comment-richtext p {
    margin-bottom: 0;
    margin-top: 0;
}

.comment-richtext table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0 1rem;
}

.comment-richtext th,
.comment-richtext td {
    border: 1px solid #d2d2d2;
    padding: 0.5rem 0.75rem;
    vertical-align: top;
    text-align: left;
    word-break: normal;
    overflow-wrap: normal;
}

.comment-richtext th {
    font-weight: 600;
    background-color: #f5f5f5;
}

.comment-body ul ul,
.comment-body ol ol,
.comment-body ul ol,
.comment-body ol ul {
    margin-left: 1.5rem;
}

.tab-title-with-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-label {
    border: 1px solid transparent; /* Needed for border space */
    border-radius: 18px;
    background: linear-gradient(to right, #f56e6e, #5e40be); /* Border gradient */
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: none;

    /* Inner white background */
    background-image: linear-gradient(white, white), /* inner bg */ linear-gradient(to right, #f56e6e, #5e40be);
}

.preview-label .pf-v6-c-label__text {
    max-height: 1rem;
    display: flex;
    align-items: center;
}

.preview-label .pf-v6-c-label__content {
    font-weight: var(--pf-t--global--font--weight--body--bold);
}

/* Improves the sidebar loading */
@media (min-width: 1450px) and (max-width: 2000px) {
    #rh-support-case .card.card-support {
        min-width: 502px;
    }
}

@media (min-width: 2000px) {
    #rh-support-case .card.card-support {
        min-width: 552px;
    }
}

#reopen-case-description {
    resize: none !important;
}

.add-watcher-button {
    max-width: 15rem;
}

.remove-watcher-button {
    max-width: 15rem;
}

.load-more-skeleton {
    display: block;
    margin-bottom: 1rem;
    padding: 1.4rem 1.3rem 0.8rem 1.5rem;
    background-color: #fff;
    border: 1px solid #d2d2d2;
    border-left: 4px solid #6a6e73;
    overflow: hidden;
}

.load-more-skeleton__header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.load-more-skeleton__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e0e0e0;
    flex-shrink: 0;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.load-more-skeleton__name {
    width: 120px;
    height: 14px;
    border-radius: 4px;
    background-color: #e0e0e0;
    margin-left: 12px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.load-more-skeleton__timestamp {
    width: 140px;
    height: 12px;
    border-radius: 4px;
    background-color: #e0e0e0;
    margin-left: auto;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.load-more-skeleton__body {
    padding-left: 44px;
}

.load-more-skeleton__line {
    height: 14px;
    border-radius: 4px;
    background-color: #e0e0e0;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.load-more-skeleton__line + .load-more-skeleton__line {
    margin-top: 10px;
}

@keyframes skeleton-pulse {
    0%,
    100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.infinite-scroll-footer-message {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
}

.infinite-scroll-end-status {
    text-align: center;
    margin-top: 16px;
    color: var(--pf-t--global--color--status--danger--default, #c9190b);
}
