@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600&display=swap');

/* Voice provisioning card — user & team edit forms */
.voice-card__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9e9e9e;
    margin-bottom: 6px;
}
.voice-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
    background: #fff;
}
.voice-card__status-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #212121;
    margin: 0 0 2px;
}
.voice-card__status-sub {
    font-size: 0.82rem;
    color: #757575;
    margin: 0;
}
.btn-voice-outline {
    background: var(--secondary-color, #622695) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-voice-outline:hover {
    background: var(--secondary-color, #622695) !important;
    opacity: 0.9;
}

.add-comment-btn:focus,
.post-comment-btn:focus,
.cancel-comment-btn:focus {
    background-color: var(--secondary-color, #622695) !important;
}

.hover-link:hover {
    text-decoration: underline;
}

.secondary-color-text {
    color: var(--secondary-color) !important;
}

/* Comment text alignment (matches TinyMCE behavior) */
.comment-align-left { text-align: left; }
.comment-align-center { text-align: center; }
.comment-align-right { text-align: right; direction: rtl; }
.comment-align-justify { text-align: justify; }

ul.comment-align-right,
ol.comment-align-right,
.comment-align-right ul,
.comment-align-right ol {
    direction: rtl;
    box-sizing: border-box;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-right: 24px;
    padding-left: 0;
    list-style-position: inside;
}

li.comment-align-right,
.comment-align-right li {
    direction: rtl;
    text-align: right;
}
.primary-color-text {
    color: var(--primary-color) !important;
}

.secondary-bg {
    background-color: var(--secondary-color) !important;
}

/* ===== COMMENTS SECTION STYLES ===== */
.comments-section {
    background: #ffffff;    
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin: 16px 0;
}

.comment-input-container {
    position: relative;
}

.comments-section h6 {
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.comment-item {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.comment-header {
    display: flex;
    align-items: flex-start;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    margin-right: 12px;
    flex-shrink: 0;
}

.comment-content {
    flex-grow: 1;
    min-width: 0;
}

.comment-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.comment-hover-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.comment-item-managed:hover .comment-hover-actions,
.comment-item-managed:focus-within .comment-hover-actions {
    opacity: 1;
    pointer-events: auto;
}

.comment-ghost-action {
    border: none;
    background: transparent;
    color: #7c8490;
    padding: 2px;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1;
}

.comment-ghost-action .material-icons {
    font-size: 18px;
}

.comment-ghost-action:hover {
    background: #f3f4f6;
    color: #3b3f45;
}

.comment-ghost-action:focus,
.comment-ghost-action:focus-visible,
.comment-ghost-action:active {
    background: transparent;
    color: #7c8490;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.comment-ghost-action.danger:hover {
    color: var(--secondary-color);
    background: #fdeeed;
}

.comment-ghost-action.danger:focus,
.comment-ghost-action.danger:focus-visible,
.comment-ghost-action.danger:active {
    color: var(--secondary-color);
    background: #fdeeed;
}

.comment-author {
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

.comment-date {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
}

.comment-edited-label {
    margin-left: 6px;
    color: #8f98a3;
}

.comment-history-toggle {
    margin-left: 8px;
    color: #8f98a3;
    text-decoration: none;
    font-size: 12px;
}

.comment-history-toggle:hover {
    text-decoration: underline;
}

.comment-text {
    color: #333;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
    font-weight: 400;
    font-synthesis: weight style;
}

.comment-text-collapsed {
    max-height: 7.6em;
    overflow: hidden;
    position: relative;
}

.comment-text-collapsed::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.2em;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff 80%);
}

.comment-read-more-toggle {
    display: inline-block;
    margin-top: 6px;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.comment-read-more-toggle:hover,
.comment-read-more-toggle:focus {
    text-decoration: underline;
}

.comment-text[ng-bind-html],
.comment-history-text[ng-bind-html] {
    white-space: normal; /* HTML handles its own spacing */
}

.comment-text .comment-align-left,
.comment-history-text .comment-align-left { text-align: left !important; }

.comment-text .comment-align-center,
.comment-history-text .comment-align-center,
.comment-text .comment-align-center li,
.comment-history-text .comment-align-center li,
.comment-text li.comment-align-center,
.comment-history-text li.comment-align-center { text-align: center !important; }

.comment-text ul.comment-align-center,
.comment-history-text ul.comment-align-center,
.comment-text ol.comment-align-center,
.comment-history-text ol.comment-align-center,
.comment-text li.comment-align-center,
.comment-history-text li.comment-align-center,
.comment-text .comment-align-center ul,
.comment-history-text .comment-align-center ul,
.comment-text .comment-align-center ol,
.comment-history-text .comment-align-center ol,
.comment-text .comment-align-center li,
.comment-history-text .comment-align-center li { 
    list-style-position: inside !important; 
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.comment-text ul.comment-align-left,
.comment-history-text ul.comment-align-left,
.comment-text ol.comment-align-left,
.comment-history-text ol.comment-align-left,
.comment-text li.comment-align-left,
.comment-history-text li.comment-align-left,
.comment-text .comment-align-left ul,
.comment-history-text .comment-align-left ul,
.comment-text .comment-align-left ol,
.comment-history-text .comment-align-left ol,
.comment-text .comment-align-left li,
.comment-history-text .comment-align-left li { 
    list-style-position: outside !important; 
    padding-left: 35px !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.comment-text .comment-align-right,
.comment-history-text .comment-align-right { text-align: right !important; }

.comment-text ul.comment-align-right,
.comment-history-text ul.comment-align-right,
.comment-text ol.comment-align-right,
.comment-history-text ol.comment-align-right,
.comment-text .comment-align-right ul,
.comment-history-text .comment-align-right ul,
.comment-text .comment-align-right ol,
.comment-history-text .comment-align-right ol { 
    direction: rtl !important;
    list-style-position: outside !important; 
    padding-right: 35px !important; 
    padding-left: 0 !important; 
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.comment-text li.comment-align-right,
.comment-history-text li.comment-align-right,
.comment-text .comment-align-right li,
.comment-history-text .comment-align-right li { 
    text-align: right !important;
}

.comment-text .comment-align-justify,
.comment-history-text .comment-align-justify { text-align: justify !important; }

/* Ensure rich text formatting is visible */
.comment-text strong, .comment-text b,
.comment-history-text strong, .comment-history-text b {
    font-weight: 900 !important;
    color: #111;
}
.comment-text em, .comment-text i,
.comment-history-text em, .comment-history-text i {
    font-style: italic !important;
    font-weight: 400;
}
.comment-text em strong,
.comment-text strong em,
.comment-text i b,
.comment-text b i,
.comment-history-text em strong,
.comment-history-text strong em,
.comment-history-text i b,
.comment-history-text b i {
    font-weight: 900 !important;
    font-style: italic !important;
    color: #111;
}
.comment-text u,
.comment-history-text u { text-decoration: underline; }

.comment-text ul,
.comment-history-text ul {
    margin: 10px 0;
    padding-left: 24px !important;
    list-style: disc outside !important;
}

.comment-text ol,
.comment-history-text ol {
    margin: 10px 0;
    padding-left: 24px !important;
    list-style: decimal outside !important;
}

.comment-text ul li,
.comment-history-text ul li {
    list-style-type: disc !important;
}

.comment-text ol li,
.comment-history-text ol li {
    list-style-type: decimal !important;
}

.comment-text ul[style*="text-align: right"],
.comment-history-text ul[style*="text-align: right"],
.comment-text ol[style*="text-align: right"],
.comment-history-text ol[style*="text-align: right"],
.comment-text [style*="text-align: right"] ul,
.comment-history-text [style*="text-align: right"] ul,
.comment-text [style*="text-align: right"] ol,
.comment-history-text [style*="text-align: right"] ol {
    direction: rtl;
    box-sizing: border-box;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-right: 35px !important;
    padding-left: 0 !important;
    list-style-position: outside;
}

.comment-text li[style*="text-align: right"],
.comment-history-text li[style*="text-align: right"],
.comment-text [style*="text-align: right"] li,
.comment-history-text [style*="text-align: right"] li {
    text-align: right;
}

.comment-text li,
.comment-history-text li { 
    margin-bottom: 5px;
margin-right: 20px;
}

/* Force <p> inside <li> to be inline so ::marker and text stay on the same line */
.comment-text li > p,
.comment-history-text li > p {
    display: inline !important;
    margin: 0 !important;
}

.comment-text p,
.comment-history-text p { margin: 10px 0; }

.comment-text p:first-child,
.comment-history-text p:first-child { margin-top: 0; }

.comment-text p:last-child,
.comment-history-text p:last-child { margin-bottom: 0; }

.comment-text h1, .comment-history-text h1 { font-size: 2rem; margin: 14px 0 10px; font-weight: 700; }
.comment-text h2, .comment-history-text h2 { font-size: 1.75rem; margin: 14px 0 10px; font-weight: 700; }
.comment-text h3, .comment-history-text h3 { font-size: 1.5rem; margin: 12px 0 8px; font-weight: 700; }
.comment-text h4, .comment-history-text h4 { font-size: 1.25rem; margin: 12px 0 8px; font-weight: 700; }
.comment-text h5, .comment-history-text h5 { font-size: 1.1rem; margin: 10px 0 8px; font-weight: 700; }
.comment-text h6, .comment-history-text h6 { font-size: 1rem; margin: 10px 0 8px; font-weight: 700; }

.comment-text.deleted {
    color: #8f98a3;
    font-style: italic;
}

.comment-inline-edit {
    margin-top: 4px;
    position: relative;
}

.comment-inline-textarea {
    width: 100%;
    min-height: 72px;
    border: 1px solid #d6dce3;
    border-radius: 6px;
    padding: 10px;
    font-family: inherit;
    resize: vertical;
}

.comment-inline-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}

.comment-delete-confirm {
    margin-top: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #5f6671;
    font-size: 13px;
}

.comment-delete-confirm > span {
    line-height: 1.35;
    margin-right: 2px;
}

.comment-link-btn {
    border: none;
    background: transparent;
    color: #46607d;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    line-height: 1.35;
    font-size: 13px;
    text-decoration: underline;
}

.comment-link-btn.danger {
    color: #c23b2a;
}

.comment-history-panel {
    margin-top: 10px;
    border: 1px solid #eceff3;
    border-radius: 6px;
    background: #fafbfc;
    padding: 10px;
}

.comment-history-entry {
    padding: 8px 0;
    border-top: 1px dashed #e4e9ef;
}

.comment-history-entry:first-child {
    border-top: none;
    padding-top: 0;
}

.comment-history-date {
    font-size: 11px;
    color: #8f98a3;
    margin-bottom: 3px;
}

.comment-history-text {
    font-size: 13px;
    white-space: pre-line;
    word-break: break-word;
}

.comment-history-text,
.comment-history-text * {
    color: #7b8591 !important;
}

.comment-history-loading,
.comment-history-empty {
    font-size: 12px;
    color: #8f98a3;
}

/* User mention styling - Facebook-like blue mentions */
.comment-text .user-mention {
    color: #1877f2;              /* Facebook blue */
    background-color: #e7f3ff;   /* Light blue background */
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-text .user-mention:hover {
    text-decoration: none;
    background-color: #d0e7ff;   /* Slightly darker on hover */
}

.no-comments {
    color: #6c757d;
    font-style: italic;
    margin-bottom: 15px;
}

.add-comment-btn {
    background: var(--primary-color);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.add-comment-btn:hover {
    background: #4e1e77;
}

.add-comment-btn:active {
    background: #3b1659;
}

.post-comment-btn {
    background: var(--secondary-color) !important;
    border: none !important;
    padding: 6px 18px !important;
    border-radius: 6px !important;
    color: white !important;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: none !important;
}

.post-comment-btn:hover,
.post-comment-btn:focus,
.post-comment-btn:active,
.post-comment-btn:focus-visible {
    opacity: 0.9;
    outline: none !important;
    box-shadow: none !important;
}

.cancel-comment-btn {
    background: transparent !important;
    border: 0.5px solid rgba(0, 0, 0, 0.12) !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    color: #6c757d !important;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

.cancel-comment-btn:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

.cancel-comment-btn:active {
    background: rgba(0, 0, 0, 0.08) !important;
}

/* Auto-resize textarea styles */
.auto-resize {
    resize: none !important;
    overflow: hidden !important;
    min-height: 60px !important;
    max-height: 500px !important;
}

.comment-length-info {
    margin-top: 0;
    margin-left: 2px;
    font-size: 12px;
    color: #6c757d;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.comment-length-info.over-limit {
    color: #c0392b;
}

.comment-length-warning {
    font-weight: 600;
}

.add-comment-form {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    margin-top: 12px;
}

.add-comment-form label {
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}

.add-comment-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    resize: none;
    font-family: inherit;
    overflow: auto;
}

/* Loading overlay shown when a comment is being submitted / saved */
.comment-submitting-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px 15px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.comment-submitting-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e4e9ef;
    border-top-color: var(--secondary-color, #622695);
    border-radius: 50%;
    animation: comment-spin 0.7s linear infinite;
}

@keyframes comment-spin {
    to { transform: rotate(360deg); }
}

/* Loading placeholder shown while TinyMCE editor is initializing */
.comment-editor-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    color: #6c757d;
}

/* Loading overlay shown when a comment is being submitted / saved */
.comment-submitting-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px 15px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.comment-submitting-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e4e9ef;
    border-top-color: var(--secondary-color, #622695);
    border-radius: 50%;
    animation: comment-spin 0.7s linear infinite;
}

@keyframes comment-spin {
    to { transform: rotate(360deg); }
}

/* Loading placeholder shown while TinyMCE editor is initializing */
.comment-editor-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    color: #6c757d;
}

.comment-actions {
    margin-top: 8px;
}

.comment-actions .btn {
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    margin-right: 8px;
}

.always-open-comment-form {
    margin-top: 0;
}

.fixed-comment-input-container {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-right: 2px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: visible; /* Must be visible for the absolute dropdown to float outside */
    box-shadow: none !important;
}


.fixed-comment-input-container .tox.tox-tinymce,
.fixed-comment-input-container .mce-tinymce {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.fixed-comment-input-container .tox-editor-header,
.fixed-comment-input-container .mce-top-part {
    background: #f9f9f9 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
    border-radius: 8px 8px 0 0 !important; /* Mimic clipping */
}

.fixed-comment-input-container .tox-toolbar__primary {
    background: transparent !important;
}

.fixed-comment-input-container .tox-statusbar {
    display: none !important;
}

.fixed-comment-textarea {
    width: 100%;
    min-height: 74px;
    max-height: 74px;
    height: 74px;
    resize: none;
    padding: 12px !important;
    border: none !important;
}

.inside-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
    padding: 8px 14px;
    background: #f9f9f9;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: none !important;
    border-radius: 0 0 8px 8px; /* Mimic clipping */
}

.inside-edit-actions button {
    margin: 0;
}

.post-comment-btn.disabled,
.post-comment-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.always-open-comment-form {
    margin-top: 0;
}

.fixed-comment-input-container {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-right: 2px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: visible; /* Must be visible for the absolute dropdown to float outside */
    box-shadow: none !important;
}


.fixed-comment-input-container .tox.tox-tinymce,
.fixed-comment-input-container .mce-tinymce {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.fixed-comment-input-container .tox-editor-header,
.fixed-comment-input-container .mce-top-part {
    background: #f9f9f9 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
    border-radius: 8px 8px 0 0 !important; /* Mimic clipping */
}

.fixed-comment-input-container .tox-toolbar__primary {
    background: transparent !important;
}

.fixed-comment-input-container .tox-statusbar {
    display: none !important;
}

.fixed-comment-textarea {
    width: 100%;
    min-height: 90px;
    max-height: 90px;
    height: 74px;
    resize: none;
    padding: 12px !important;
    border: none !important;
}

.inside-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
    padding: 8px 14px;
    background: #f9f9f9;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: none !important;
    border-radius: 0 0 8px 8px; /* Mimic clipping */
}

.inside-edit-actions button {
    margin: 0;
}

.post-comment-btn.disabled,
.post-comment-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.always-open-comment-form {
    margin-top: 0;
}

.fixed-comment-input-container {
    position: relative;
}

.fixed-comment-textarea {
    width: 100%;
    min-height: 90px;
    max-height: 90px;
    height: 74px;
    resize: none;
    padding-right: 128px !important;
}

.inside-post-btn {
    position: absolute;
    right: 22px;
    bottom: 8px;
    z-index: 2;
    margin: 0;
    min-width: 90px;
}

.inside-post-btn.disabled,
.inside-post-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.decline-length-info {
    margin-top: 6px;
    font-size: 12px;
    color: #6c757d;
}

.decline-length-info.over-limit {
    color: #c0392b;
    font-weight: 600;
}

/* ===== @MENTION FUNCTIONALITY STYLES ===== */
.mention-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: -1px;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    z-index: 1000;
}

.mention-option {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.mention-option:hover {
    background-color: #fce8e4 !important;
}

.mention-option:last-child {
    border-bottom: none;
}

.mention-option-content {
    display: flex;
    align-items: center;
}

.mention-option-info {
    flex: 1;
}

.mention-option-name {
    font-weight: bold;
    color: #333;
}

.mention-option-email {
    font-size: 12px;
    color: #666;
}

.mention-no-users {
    padding: 8px 12px;
    color: #666;
    font-style: italic;
}

/* ===== CHAT HEADER LABELS DROPDOWN STYLES ===== */

/* Thin scrollbar for labels bar */
.chat-header-labels-inline::-webkit-scrollbar {
    height: 3px;
}
.chat-header-labels-inline::-webkit-scrollbar-track {
    background: transparent;
}
.chat-header-labels-inline::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.chat-header-labels-inline::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Thin scrollbar for labels extra dropdown */
#labels-extra-dropdown::-webkit-scrollbar {
    width: 4px;
}
#labels-extra-dropdown::-webkit-scrollbar-track {
    background: transparent;
}
#labels-extra-dropdown::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
#labels-extra-dropdown::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.chat-header-label-more-container {
    flex-shrink: 0;
    position: relative;
}

.chat-header-label-more {
    background: #e0e0e0;
    color: #666;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

#labels-extra-dropdown {
    width: auto !important;
    min-width: 120px !important;
    max-width: 200px !important;
    max-height: 150px !important;
    overflow-y: auto !important;
    padding: 6px !important;
    background: #fff;
}

#labels-extra-dropdown li {
    min-height: auto !important;
    line-height: normal !important;
    padding: 3px 0 !important;
    margin: 0 !important;
    width: auto !important;
}

#labels-extra-dropdown li > a {
    padding: 0 !important;
    display: flex;
    justify-content: center;
    background: transparent !important;
}

#labels-extra-dropdown .chat-header-label {
    margin: 0 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

#labels-extra-dropdown .chat-header-label span {
    overflow: hidden;
    text-overflow: ellipsis;
}

#labels-extra-dropdown .chat-header-label .closed {
    cursor: pointer;
    margin-left: 4px;
    font-size: 14px;
}

/* ===== DRAFT COMMENTS STYLES ===== */
.draft-comments-section {
    background: #f8f9fa;
    border: 1px solid #a2a7ac;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

.draft-comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.draft-comments-title {
    color: #333;
    font-weight: 600;
    margin: 0;
    font-size: 14px;
}

.clear-all-drafts-btn {
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.draft-comment-item {
    background: white;
    border: 1px solid #6c757d;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    position: relative;
}

.draft-comment-item.comment-sending {
    border-left: 4px solid var(--primary-color);
    background: #fef5f3;
}

.draft-comment-item.comment-failed {
    border-left: 4px solid var(--primary-color);
    background: #ffffff;
}

.draft-comment-content {
    margin-bottom: 8px;
}

.draft-comment-text {
    color: #333;
    line-height: 1.4;
    margin-bottom: 8px;
}

.draft-comment-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.restored-indicator {
    color: #333;
    font-size: 11px;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 4px;
}

.draft-comment-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.retry-btn {
    background: #00bcd4;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.retry-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.delete-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.navbar-main,
.navbar-wrapper,
.navbar,
.nav {
    height: 52px;
    line-height: 49px;
}
.navbar-main {
    background: var(--navbar-gradient) !important;
}
.sidenav {
    top: 52px;
}

.navbar .brand-logo img {
    margin-top: 0.15em;
    margin-left: 0.5em;
    height: 46px;
    width: 46px;
}

/* Keep fixed header above any Materialize dropdown while scrolling */
.page-topbar,
.page-topbar .navbar-fixed,
.page-topbar .navbar-fixed nav,
.page-topbar nav.navbar-main {
    z-index: 10001 !important;
}

.account {
    background-color: #fff;
    text-align: center;
    position: fixed;
    bottom: 0;
    padding: 0.4em 0 2.2em 0;
    z-index: 999;
    width: 260px;
    margin-top: 50px;
    height: 24px;
}

@media screen and (max-width: 992px) {
    .account {
        display: none;
    }
}

.sideNav ul {
    height: 95%;
}

/* aside #slide-out {
    padding-top: 2em;
} */


/*----------------------------------------
    Login Page
   ------------------------------------------*/

#card-msg {
    height: 74vh !important;
}

#fb {
    margin-top: 2%;
    margin-bottom: 0.5rem;
}

#rolesSubmitBtn {
    margin: 15%;
}

.login-bg {
    background-color: var(--primary-color);
    /* background-image: url("../img/flat-bg.jpg"); */
    background-repeat: no-repeat;
    -webkit-background-size: cover;
    background-size: cover;
}

.button-padding {
    padding: 0 10px !important;
}

.modal-larg {
    width: 80%;
    max-height: 85%;
}

.modal-md {
    width: 65%;
    max-height: 85%;
}

.modal-small {
    width: 40%;
    height: 30% !important;
    top: 50% !important;
    left: 50%;
    transform: translate(-50%, -50%) !important;
}

.height-90 {
    height: 90vh !important;
}

.height-50 {
    height: 50vh !important;
}

.height-45 {
    height: 48vh !important;

}

.customAttachStyle {
    height: 42vh;
    max-width: fit-content;
    position: relative;
    max-height: 300px !important;
    scale: .7;
    top: 3rem;
    right: 0rem;
}

.loginPage #login-page {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    min-height: 100vh;
    height: auto;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.user-img {
    height: 45px !important;
    width: 45px;
    max-width: 45px !important;
    margin-right: 30px;
}

.text-center {
    text-align: center !important;
}

.width-auto {
    width: auto !important;
}

.loginPage #login-page .card-panel.border-radius-6.login-card {
    margin-left: 0 !important;
}

.sticky-possition {
    position: sticky;
    top: 64px;
    z-index: 99;
}




/*----------------------------------------
  Chat App
------------------------------------------*/

body {
    background-color: #eceff1;
}

.chat-application .chat-content-head {
    position: relative;
    top: 35px;
    height: 65px;
}

.sidebar-left {
    z-index: 1;
}


.chat-application .chat-content-head .header-details .app-header-icon {
    font-size: 2rem;
    vertical-align: bottom;
}

.chat-application .sidenav-trigger {
    display: none;
}

.chat-application .small-icons {
    font-size: 1.25rem;
    line-height: 1.65rem;
}

.m-auto {
    margin: auto;
}

.text-extra-small {
    font-size: 0.9em;
}

.chat-application .truncate {
    overflow: hidden;
    width: 175px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.chat-application .app-chat .chat-content {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    height: 71vh;
    height: 85vh;
}

.sec-dropdown {
    left: -130px !important;
}

.dropdown-content li>a:hover,
.dropdown-content li>a.active,
.dropdown-content li>span:hover,
.dropdown-content li>span.active {
    background-color: unset;
}

.chat-application .app-chat .chat-content .sidebar {
    width: 360px;
    height: 100%;
}

.chat-application .app-chat .chat-content .sidebar .sidebar-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    height: 65px;
    border-right: 1px solid rgb(238, 238, 238);
}

.chat-application .app-chat .chat-content .sidebar .sidebar-header .option-icon i.material-icons {
    font-size: 1.85rem;
    cursor: pointer;
    color: #9e9e9e;
}

.chat-application .app-chat .chat-content .sidebar .active-shadow .info-text {
    font-weight: bold;
    font-weight: 900;
    color: #383737;
}

.chat-application .app-chat .chat-content .sidebar .info-text {
    font-size: 0.85rem;
    overflow: hidden;
    width: 175px;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #616161;
}

.chat-application .app-chat .chat-content .sidebar .chat-title-text {
    overflow: hidden;
    width: 195px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.chat-application .app-chat .chat-content .sidebar .active-shadow .chat-title-text {
    font-weight: 900 !important;
    color: #000 !important;
    font-size: 16px !important;
}

.chat-application .app-chat .chat-content .sidebar .sidebar-search {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    padding: 1rem;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.chat-application .app-chat .chat-content .sidebar .sidebar-search .search-area {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    width: -webkit- 100%;
    width: -moz- 100%;
    width: 100%;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.chat-application .app-chat .chat-content .sidebar .sidebar-search .search-area .search-icon {
    font-size: 1.45rem;
    height: 41px;
    margin-right: 0 !important;
    padding: 0.75rem 0.25rem 0.35rem 0.75rem;
    color: #9e9e9e;
    border-radius: 2rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    background-color: #eceff1;
}

.chat-application .app-chat .chat-content .sidebar .sidebar-search .search-area .app-filter {
    height: 35px;
    margin-bottom: 0;
    padding: 0.2rem;
    color: #9e9e9e;
    border: none;
    border: none;
    border-radius: 2rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background-color: #eceff1;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -moz-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.chat-application .app-chat .chat-content .sidebar .sidebar-search .search-area .app-filter:focus {
    border-bottom: none !important;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.chat-application .app-chat .chat-content .sidebar .sidebar-search .search-area .app-filter::-webkit-input-placeholder {
    opacity: 1;
    /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #9e9e9e;
    /* Firefox */
}

.chat-application .app-chat .chat-content .sidebar .sidebar-search .search-area .app-filter::-moz-placeholder {
    opacity: 1;
    /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #9e9e9e;
    /* Firefox */
}

.chat-application .app-chat .chat-content .sidebar .sidebar-search .search-area .app-filter::placeholder {
    opacity: 1;
    /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #9e9e9e;
    /* Firefox */
}

.chat-application .app-chat .chat-content .sidebar .sidebar-search .search-area .app-filter:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: #9e9e9e;
}

.chat-application .app-chat .chat-content .sidebar .sidebar-search .search-area .app-filter::-ms-input-placeholder {
    /* Microsoft Edge */
    color: #9e9e9e;
}

.chat-application .app-chat .chat-content .sidebar .sidebar-search .add-user i.add-user-icon {
    font-size: 1.45rem;
    padding: 0.6rem;
    color: #fff;
    border-radius: 50%;
    background: #212121;
}

.chat-application .app-chat .chat-content .sidebar .sidebar-chat {
    position: relative;
    overflow-y: auto;
    height: 98%
}

.chat-application .app-chat .chat-content .sidebar .sidebar-chat .chat-list .chat-user {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 1px;
    padding: .5rem;
    cursor: pointer;
    border-right: 3px solid transparent;
    border-left: 3px solid transparent;
    position: relative;
}

.chat-application .app-chat .chat-content .sidebar .sidebar-chat .chat-list .chat-user.active,
.chat-application .app-chat .chat-content .sidebar .sidebar-chat .chat-list .chat-user:hover {
    border-left: 3px solid #aaa;
    background-color: #eceff1;
}

.chat-application .app-chat .chat-content .sidebar .sidebar-chat .chat-list .arabic.chat-user.active,
.chat-application .app-chat .chat-content .sidebar .sidebar-chat .chat-list .arabic.chat-user:hover {
    border-right: 3px solid #aaa;
    background-color: #eceff1;
    border-left: none;
}

.chat-application .app-chat .chat-content .sidebar .sidebar-chat .chat-list .chat-user .info-section {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    -webkit-box-align: end;
    -webkit-align-items: flex-end;
    -moz-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
}

.chat-application .app-chat .chat-content .sidebar .sidebar-chat .chat-list .chat-user .info-section .star-timing {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    width: 75px;
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    -moz-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.chat-application .app-chat .chat-content .sidebar .sidebar-chat .chat-list .chat-user .info-section .star-timing .favorite {
    line-height: 0;
    /* margin-right: 0.35rem; */
    margin: 0.2rem 0.35rem 0 0;
}

.chat-application .app-chat .chat-content .sidebar .sidebar-chat .chat-list .chat-user .status-label {
    font-size: 0.75rem;
    display: inline-block;
    min-width: 25%;
}

.chat-application .app-chat .chat-content .sidebar .sidebar-chat .chat-list .chat-user .favorite i {
    font-size: 1.3rem;
}

.chat-application .app-chat .chat-content .sidebar .sidebar-chat .chat-list .chat-user .info-section .star-timing .time {
    font-size: 0.6rem;
    color: #616161;
}

.chat-application .app-chat .chat-content .sidebar .sidebar-chat .chat-list .chat-user .info-section .badge {
    font-size: 0.75rem;
    width: 20px;
    margin-top: 0.25rem;
}

.chat-application .app-chat .chat-content .media-image.online,
.chat-application .app-chat .chat-content .media-image.away,
.chat-application .app-chat .chat-content .media-image.offline {
    display: block;
    flex-direction: column;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    -webkit-box-align: end;
    -webkit-align-items: flex-end;
    -moz-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
}

.chat-application .app-chat .chat-content .media-image.online:after,
.chat-application .app-chat .chat-content .media-image.away:after,
.chat-application .app-chat .chat-content .media-image.offline:after {
    width: 12px;
    height: 12px;
    margin-top: -10px;
    content: "";
    border-radius: 50%;
    -webkit-box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.chat-application .app-chat .chat-content .media-image.online.online:after,
.chat-application .app-chat .chat-content .media-image.away.online:after,
.chat-application .app-chat .chat-content .media-image.offline.online:after {
    background-color: #4caf50;
}

.chat-application .app-chat .chat-content .media-image.online.away:after,
.chat-application .app-chat .chat-content .media-image.away.away:after,
.chat-application .app-chat .chat-content .media-image.offline.away:after {
    background-color: #ff9800;
}

.chat-application .app-chat .chat-content .media-image.online.offline:after,
.chat-application .app-chat .chat-content .media-image.away.offline:after,
.chat-application .app-chat .chat-content .media-image.offline.offline:after {
    background-color: #f44336;
}

.chat-application .app-chat .chat-content .chat-content-area {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    padding: 1rem;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #eee;
    /* border-left: 1px solid #eee; */
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-left: 14px;
    /* border-left: 3px solid #c1c2c1; */
    min-height: 50px;
}

.chat-border-left {
    border-left: 1px solid #eee;
}

.chat-border-right {
    border-right: 1px solid #eee;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-header .media-image img {
    max-width: 49px;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-header .chat-text {
    font-size: 0.85rem;
    color: #616161;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-header .option-icon {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    /* width: 125px; */
    -webkit-justify-content: space-around;
    -ms-flex-pack: distribute;
    justify-content: space-around;
}
.option-icon{
    align-items: center;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-header .option-icon i {
    cursor: pointer;
    color: #9e9e9e;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area {
    position: relative;
    overflow: auto;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    padding-bottom: 0;
    background: url("../img/chat-bg.jpg") repeat scroll 0 0;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats {
    padding: 0;
    margin-bottom: 1.5rem;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    margin: 0.5rem 1rem;
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    -moz-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-right {
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    -moz-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-right .chat-avatar {
    -webkit-box-ordinal-group: 3;
    -webkit-order: 2;
    -moz-box-ordinal-group: 3;
    -ms-flex-order: 2;
    order: 2;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-right .chat-body {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    -webkit-box-align: end;
    -webkit-align-items: flex-end;
    -moz-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    max-width: 75%;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-right .chat-body .chat-content {
    text-align: right;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-right .chat-body .chat-text {
    flex-direction: row-reverse;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    -webkit-flex-direction: row-reverse;
    -moz-box-orient: horizontal;
    -moz-box-direction: reverse;
    -ms-flex-direction: row-reverse;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-right .chat-body .chat-text p {
    color: black;
    background-color: #FFF8DE;
    font-size: 16px;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-right .chat-body .chat-text:first-child:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
    -webkit-transform-origin: 3px -5px;
    -moz-transform-origin: 3px -5px;
    -ms-transform-origin: 3px -5px;
    -o-transform-origin: 3px -5px;
    transform-origin: 3px -5px;
    border-top-color: #fef5f3 !important;
    border-right-color: #fef5f3 !important;
    border-bottom-color: transparent;
    border-left-color: transparent;
    -webkit-box-shadow: 2px -2px 4px -3px rgba(0, 0, 0, 0.4);
    box-shadow: 2px -2px 4px -3px rgba(0, 0, 0, 0.4);
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-right .chat-body .chat-text:not(:first-child) {
    margin-right: 2rem;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat .chat-avatar .avatar img {
    width: 40px;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat .chat-body {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    -moz-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat .chat-body .chat-text {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    margin: 0px 0rem 0.5rem;
    ;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat .chat-body .chat-text p {
    max-width: 100%;
    padding: 0.5rem 1rem;
    color: #757575;
    border-radius: 5px;
    background-color: #fff;
    -webkit-box-shadow: 1px 1px 10px 0 rgba(0, 0, 0, 0.14);
    box-shadow: 1px 1px 10px 0 rgba(0, 0, 0, 0.14);
}


/* .chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat .chat-body .chat-text:first-child:before {
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        width: 0;
        height: 0;
        margin-top: 10px;
        content: "";
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        transform: rotate(45deg);
        -webkit-transform-origin: 12px 18px;
        -moz-transform-origin: 12px 18px;
        -ms-transform-origin: 12px 18px;
        -o-transform-origin: 12px 18px;
        transform-origin: 12px 18px;
        border: 7px solid transparent;
        border-bottom-color: #fff;
        border-left-color: #fff;
        -webkit-box-shadow: -2px 3px 4px -3px rgba(0, 0, 0, 0.4);
        box-shadow: -2px 3px 4px -3px rgba(0, 0, 0, 0.4);
    } */

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat .chat-body .chat-text:not(:first-child) {
    margin-left: 2rem;
}

.popup-chat {
    height: 100% !important;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-footer {
    padding: 0.5rem;
    width: 100%;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-footer .chat-input {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-footer .chat-input .message {
    margin-right: 1.5rem;
    padding: 0 1.5rem;
    color: #9e9e9e;
    border-bottom: 0;
    border-radius: 5px;
    background-color: #eceff1;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-footer .chat-input .message:focus {
    border-bottom: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-footer .chat-input .message::-webkit-input-placeholder {
    opacity: 1;
    /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #9e9e9e;
    /* Firefox */
}

.chat-application .app-chat .chat-content .chat-content-area .chat-footer .chat-input .message::-moz-placeholder {
    opacity: 1;
    /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #9e9e9e;
    /* Firefox */
}

.chat-application .app-chat .chat-content .chat-content-area .chat-footer .chat-input .message::placeholder {
    opacity: 1;
    /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #9e9e9e;
    /* Firefox */
}

.chat-application .app-chat .chat-content .chat-content-area .chat-footer .chat-input .message:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: #9e9e9e;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-footer .chat-input .message::-ms-input-placeholder {
    /* Microsoft Edge */
    color: #9e9e9e;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-footer .chat-input .send {
    height: 42px;
    padding: 0.3rem 3rem 0.3rem 3rem;
    border-radius: 0.25rem;
    overflow: visible;
}

.chat-application .app-chat .sidenav-trigger {
    position: absolute;
    top: 102px;
    display: none;
}

.page-header-dark .chat-application .chat-content-head .header-details .sidebar-title {
    color: #fff;
}

.page-header-dark .chat-application .chat-content-head .header-details .sidebar-title .app-header-icon {
    color: #fff;
}

.page-header-dark .chat-application .app-chat .sidenav-trigger i {
    color: #fff;
}


/*  */


/*  */

@media screen and (max-width: 899px) {
    .horizontal-layout .app-chat .sidebar .sidebar-content .sidebar-menu #sidebar-list {
        height: auto;
    }
}

@media only screen and (max-width: 992px) {
    .menu-logo {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .chat-application .app-sidebar {
        -webkit-transform: none !important;
        -moz-transform: none !important;
        -ms-transform: none !important;
        -o-transform: none !important;
        transform: none !important;
    }

    /* .sidenav-overlay
    {
        display: block !important;

        opacity: 0 !important;
    } */
}

@media (min-width: 900px) {
    .chat-application .app-sidebar {
        -webkit-transform: none !important;
        -moz-transform: none !important;
        -ms-transform: none !important;
        -o-transform: none !important;
        transform: none !important;
    }

    /* .sidenav-overlay
    {
        display: block !important;
        
        opacity: 0 !important;
    } */
}

@media (max-width: 900px) {
    .chat-application .app-sidebar {
        width: 330px;
        -webkit-transform: translateX(-105%);
        -moz-transform: translateX(-105%);
        -ms-transform: translateX(-105%);
        -o-transform: translateX(-105%);
        transform: translateX(-105%);
    }

    .chat-application .chat-content-head .header-details {
        margin-left: 3rem;
    }

    .chat-application .app-chat .sidenav-trigger {
        display: block !important;
    }

    .chat-application .app-chat .chat-content {
        display: inline-flex;
    }

    .chat-application .app-chat .chat-content .sidebar .sidebar-chat {
        height: 98%
    }

    .chat-application .app-chat .chat-content .sidebar #sidebar-list.sidebar-show {
        z-index: 996;
    }
}

@media (max-width: 600px) {
    .sidebar .sidebar-content .sidenav {
        top: 0px !important;
    }

    .chat-application .app-chat .sidenav-trigger {
        top: 93px;
    }
}

@media only screen and (min-device-width: 1024px) and (max-device-width: 1366px) {
    .chat-application .app-chat .chat-content .sidebar {
        width: 365px;
    }
}

@media screen and (max-width: 540px) {
    .chat-application .app-chat .chat-content .chat-content-area .chat-footer .chat-input .send {
        padding-left: 1.8rem;
    }
}

@media screen and (-ms-high-contrast: active),
(-ms-high-contrast: none) {
    .chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat .chat-body :first-child.chat-text::before {
        content: none;
    }

    .chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat .chat-body :not(:first-child).chat-text {
        margin-left: 1rem;
    }

    .chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat-right.chat .chat-body :not(:first-child).chat-text {
        margin-right: 1rem;
    }
}

footer {
    bottom: 0;
    /* position: fixed; */
    left: 0;
    right: 0;
}

@media (max-width: 900px) {
    .card-default {
        width: 100%;
    }
}

@media (min-width: 760px) {
    .chat-content-area {
        display: block !important;
        width: 100%;
    }
}


/* 
@media (max-width: 760px) {
    .chat-content-area {
        display: none !important;
    }
    .chat-application .app-chat .chat-content .sidebar {
        width: calc(100vw - 40px);
    }
    .chat-application .app-sidebar {
        width: 100%;
    }
} */

.horizontal-menu.app-page #main .content-wrapper-before {
    top: 0px !important;
}

#main {
    transition: all 0s;
}

.chat-application .app-sidebar {
    top: 0px;
    box-shadow: none;
    width: 100%;
    overflow: visible;
}

.chat-text {
    word-break: break-word;
}

.time-message {
    font-size: 11px;
    color: #616161b8;
}

.fa-whatsapp {
    font-size: 14px;
    color: darkgreen;
}

.fa-facebook {
    font-size: 14px;
    color: #3a559f;
}

.fa-viber {
    font-size: 14px;
    color: #609;
}

.current-page {
    height: 100%;
    padding-top: 15px;
    padding-bottom: 60px;
}
.noScroll-page {
    height: 110%;
    padding-top: 0px;
    padding-bottom: 0px;
    margin: 0px
}
.cursor-pointer {
    cursor: pointer;
}

.users-options {
    position: absolute;
}

.users-options-icons {
    right: 10px;
    display: inline-flex;
}

.custom-user-image {
    top: 21px !important;
}

.p-right-10 {
    padding-right: 10px;
}

.container-fluid {
    padding-right: 15%;
    padding-left: 15%;
}

.user-truncate {
    width: calc(100% - 84px - 70px);
}

.z-index-0 {
    z-index: 0 !important;
}

.link {
    color: darkmagenta;
}

.swich-button {
    float: right;
    padding-top: 1vh;
}


/*-------------------------------------------------
  Dashboard common file for Analytics & eCommmerce
--------------------------------------------------*/

#revenue-chart span i.material-icons {
    position: relative;
    top: 5px;
}

#revenue-chart .yearly-revenue-chart {
    position: relative;
}

#revenue-chart .yearly-revenue-chart canvas {
    width: 100% !important;
    height: 350px !important;
}

#revenue-chart .yearly-revenue-chart canvas.firstShadow {
    position: absolute;
    top: 0;
    left: 0;
}

#weekly-earning h3.header {
    margin: 2.4rem 0 2.3rem 0;
}

#weekly-earning canvas {
    width: 100% !important;
    height: 110 !important;
    margin: 10px 0 10px -18px;
}

#weekly-earning .center-align p {
    margin-bottom: 1rem;
}


/*  */

.page-footer-index {
    z-index: 997;
}

.float-right {
    float: right !important;
    margin-left: 15px;
}

.float-left {
    float: left !important;
    margin-right: 10px;
}

.failMsg p {
    background: red !important;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-right .chat-body .chat-text.failMsg:first-child:before {
    background: red;
    border-top-color: red !important;
    border-right-color: red !important;
}

.chat {
    opacity: 1;
}

.chat.chat-animate.ng-enter.ng-enter-active,
.chat.chat-animate.ng-leave {
    opacity: 1;
    -webkit-transition: opacity 500ms linear;
    -moz-transition: opacity 500ms linear;
    transition: opacity 500ms linear;
}

.chat.chat-animate.ng-leave.ng-leave-active,
.chat.chat-animate.ng-enter {
    opacity: 0;
    -webkit-transition: opacity 500ms linear;
    -moz-transition: opacity 500ms linear;
    transition: opacity 500ms linear;
}

.chat-media {
    max-width: 400px;
    max-height: 250px;
}

.whatsapp-icon {
    color: #04f804;
}

.text-greenyellow {
    color: greenyellow;
}

.top-0 {
    top: 0 !important;
}

.brand {
    display: flex !important;
    align-items: center !important;
}

.menu-logo {
    height: 80px !important;
}


/* timeline */

* {
    box-sizing: border-box;
}


/* The actual timeline (the vertical ruler) */

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
}


/* The actual timeline (the vertical ruler) */

.timeline::after {
    content: "";
    position: absolute;
    width: 3px;
    background-color: white;
    top: 10px;
    bottom: 70px;
    left: 18px;
    margin-left: -3px;
}


/* Container around content */

.timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 100%;
}


/* The circles on the timeline */

.timeline-container::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    right: -17px;
    background-color: #7024a2;
    border: 1px solid #7024a2;
    top: 11px;
    border-radius: 50%;
    z-index: 1;
    font-family: "Material Icons";
    font-size: 25px;
    line-height: 1.9;
    padding-left: 7px;
}
.large-icon {
    font-size: 1000px;
}

.timeline-container.create::after {
    color: #f23f81;
    content: "create";
}

.timeline-container.comment::after {
    color: #fff;
    content: "comment";
    font-size: medium;
}

.timeline-container.chat::after {
    color: #609;
    content: "chat_bubble_outline";
}

.timeline-container.close::after {
    color: var(--primary-color);
    content: "close";
}

.timeline-container.attachement::after {
    color: #f36421;
    content: "attach_file";
}

.timeline-container.acquire::after {
    color: #47349f;
    content: "headset";
}

.timeline-container.leave::after {
    color: #f44336;
    content: "priority_high";
}


/* Place the container to the left */

.timeline-container .left {
    left: 0;
}


/* Place the container to the right */

.timeline .right {
    left: 10px;
    margin-left: 0;
}


/* Add arrows to the left container (pointing right) */

.timeline .left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}


/* Add arrows to the right container (pointing left) */

.timeline .right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 16px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}


/* Fix the circle for containers on the right side */

.timeline .right::after {
    left: -9px;
}


/* The actual content */

.timeline .content {
    padding: 1px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
}


/* Media queries - Responsive timeline on screens less than 600px wide */

@media screen and (max-width: 600px) {

    /* Place the timelime to the left */
    .timeline::after {
        left: 31px;
    }

    /* Full-width containers */
    .timeline-container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    /* Make sure that all arrows are pointing leftwards */
    .timeline-container::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    /* Make sure all circles are at the same spot */
    .timeline .left::after,
    .right::after {
        left: 15px;
    }

    /* Make all right containers behave like the left ones */
    .timeline .right {
        left: 0%;
    }
}

.flex-row {
    display: flex;
    vertical-align: middle;
    align-items: center;
}

.d-inline-flex {
    display: inline-flex;
}

.overflow-visible {
    overflow: visible !important;
}
.conv-options-dropdown{
    max-height: 500px !important;
overflow-y: auto !important;
overflow-x: hidden !important;
z-index: 100000 !important;
}

.break-word {
    word-break: break-word;
}

.loadingDv {
    position: fixed;
    display: flex;
    width: 100%;
    height: 100%;
    z-index: 9999999;
    background-color: #000000a8;
    align-items: center;
    justify-content: center;
}

.imgLoader {
    max-height: 100%;
    z-index: 9999999;
    position: absolute;
    width: 300px;
}

.z-index-99 {
    z-index: 9999999;
}

.sad-sentiment {
    font-size: 20px;
    color: red;
}

.natural-sentiment {
    font-size: 20px;
    color: #aaa;
}

.happy-sentiment {
    font-size: 20px;
    color: green;
}

.menu-header {
    height: 140px !important;
}

.menu-header-contant {
    display: block !important;
    width: 260px;
    text-align: center;
}

.select-label {
    font-size: 13px;
    font-weight: 500;
    line-height: 32px;
    display: inline-block;
    height: 32px;
    margin-right: 5px;
    margin-bottom: 5px;
    padding: 0 12px;
    border-radius: 16px;
}

.option-btn {
    width: 20px;
}

.chip .closed {
    font-size: 16px;
    line-height: 32px;
    float: right;
    padding-left: 8px;
    cursor: pointer;
}
.chip.small-chip {
    font-size: 10px;
    font-weight: 500; /* Medium */
    height: 20px;
    line-height: 20px;
    padding: 0 8px;
    margin: 0 2px;
}

.font-less {
    font-size: 1.5em;
}

.toast {
    -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.5em;
    display: -moz-box;
    width: auto;
    max-width: 100%;
    height: auto;
    padding: 10px 25px;
    cursor: default;
    color: #fff;
    background-color: #f48fb1;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    z-index: 1051 !important;
}

#toast-container {
    position: fixed;
    z-index: 10000;
    display: block;
    top: auto;
    bottom: 10%;
    right: 10px;
}

.bell {
    display: block;
    width: 21px;
    height: 21px;
    font-size: 22px;
    -webkit-animation: ring 4s 0.7s ease-in-out infinite;
    -webkit-transform-origin: 50% 4px;
    -moz-animation: ring 4s 0.7s ease-in-out infinite;
    -moz-transform-origin: 50% 4px;
    animation: ring 12s 1s ease-in-out infinite;
    transform-origin: 50% 4px;
}

@-webkit-keyframes ring {
    0% {
        -webkit-transform: rotateZ(0);
    }

    1% {
        -webkit-transform: rotateZ(30deg);
    }

    3% {
        -webkit-transform: rotateZ(-28deg);
    }

    5% {
        -webkit-transform: rotateZ(34deg);
    }

    7% {
        -webkit-transform: rotateZ(-32deg);
    }

    9% {
        -webkit-transform: rotateZ(30deg);
    }

    11% {
        -webkit-transform: rotateZ(-28deg);
    }

    13% {
        -webkit-transform: rotateZ(26deg);
    }

    15% {
        -webkit-transform: rotateZ(-24deg);
    }

    17% {
        -webkit-transform: rotateZ(22deg);
    }

    19% {
        -webkit-transform: rotateZ(-20deg);
    }

    21% {
        -webkit-transform: rotateZ(18deg);
    }

    23% {
        -webkit-transform: rotateZ(-16deg);
    }

    25% {
        -webkit-transform: rotateZ(14deg);
    }

    27% {
        -webkit-transform: rotateZ(-12deg);
    }

    29% {
        -webkit-transform: rotateZ(10deg);
    }

    31% {
        -webkit-transform: rotateZ(-8deg);
    }

    33% {
        -webkit-transform: rotateZ(6deg);
    }

    35% {
        -webkit-transform: rotateZ(-4deg);
    }

    37% {
        -webkit-transform: rotateZ(2deg);
    }

    39% {
        -webkit-transform: rotateZ(-1deg);
    }

    41% {
        -webkit-transform: rotateZ(1deg);
    }

    43% {
        -webkit-transform: rotateZ(0);
    }

    100% {
        -webkit-transform: rotateZ(0);
    }
}

@-moz-keyframes ring {
    0% {
        -moz-transform: rotate(0);
    }

    1% {
        -moz-transform: rotate(30deg);
    }

    3% {
        -moz-transform: rotate(-28deg);
    }

    5% {
        -moz-transform: rotate(34deg);
    }

    7% {
        -moz-transform: rotate(-32deg);
    }

    9% {
        -moz-transform: rotate(30deg);
    }

    11% {
        -moz-transform: rotate(-28deg);
    }

    13% {
        -moz-transform: rotate(26deg);
    }

    15% {
        -moz-transform: rotate(-24deg);
    }

    17% {
        -moz-transform: rotate(22deg);
    }

    19% {
        -moz-transform: rotate(-20deg);
    }

    21% {
        -moz-transform: rotate(18deg);
    }

    23% {
        -moz-transform: rotate(-16deg);
    }

    25% {
        -moz-transform: rotate(14deg);
    }

    27% {
        -moz-transform: rotate(-12deg);
    }

    29% {
        -moz-transform: rotate(10deg);
    }

    31% {
        -moz-transform: rotate(-8deg);
    }

    33% {
        -moz-transform: rotate(6deg);
    }

    35% {
        -moz-transform: rotate(-4deg);
    }

    37% {
        -moz-transform: rotate(2deg);
    }

    39% {
        -moz-transform: rotate(-1deg);
    }

    41% {
        -moz-transform: rotate(1deg);
    }

    43% {
        -moz-transform: rotate(0);
    }

    100% {
        -moz-transform: rotate(0);
    }
}

@keyframes ring {
    0% {
        transform: rotate(0);
    }

    1% {
        transform: rotate(30deg);
    }

    3% {
        transform: rotate(-28deg);
    }

    5% {
        transform: rotate(34deg);
    }

    7% {
        transform: rotate(-32deg);
    }

    9% {
        transform: rotate(30deg);
    }

    11% {
        transform: rotate(-28deg);
    }

    13% {
        transform: rotate(26deg);
    }

    15% {
        transform: rotate(-24deg);
    }

    17% {
        transform: rotate(22deg);
    }

    19% {
        transform: rotate(-20deg);
    }

    21% {
        transform: rotate(18deg);
    }

    23% {
        transform: rotate(-16deg);
    }

    25% {
        transform: rotate(14deg);
    }

    27% {
        transform: rotate(-12deg);
    }

    29% {
        transform: rotate(10deg);
    }

    31% {
        transform: rotate(-8deg);
    }

    33% {
        transform: rotate(6deg);
    }

    35% {
        transform: rotate(-4deg);
    }

    37% {
        transform: rotate(2deg);
    }

    39% {
        transform: rotate(-1deg);
    }

    41% {
        transform: rotate(1deg);
    }

    43% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(0);
    }
}

.font-18 {
    font-size: 18px;
}

.font-22 {
    font-size: 22px !important;
}

#font-20 {
    font-size: 20px !important;
}

#ml-16 {
    margin-left: -16px !important;
}

.height-2rem {
    height: 2rem !important;
}

.height-100 {
    height: 100%;
}

.nofication {
    position: absolute;
    left: 0;
    top: 50%;
    bottom: 50%;
}

.nofication-td {
    position: relative;
}

.default-icon {
    color: #6b6f82;
    font-size: 20px;
}

.whatsapp-active {
    color: darkgreen;
}

.angry-active {
    color: red;
}

.dizzy-active {
    color: orange;
}

.linkedin-active {
    color: #3a559f;
}

.messenger-active {
    color: var(--primary-color);
}

.envelope-active {
    color: #3a559f;
}

.twitter-active {
    color: var(--primary-color);
}

.instagram-active {
    color: #d62976;
}

.active-sms {
    color: #82c91e;
}

.viber-active {
    color: #609;
}

.facebook-active {
    color: #3a559f;
}

.grin-active {
    color: darkmagenta;
}

.hearts-active {
    color: green;
}

.beam-active {
    color: greenyellow;
}

.frown-active {
    color: yellow;
}

.orange-active {
    color: #FFC100;
}

.card.darken-1.center {
    overflow: visible;
    padding-bottom: 10px;
}

.text-code {
    height: auto;
}


/* start arabic */

.arabic {
    direction: rtl !important;
}

.arabic i.right,
.arabic .secondary-content,

/* .arabic span.badge, */

.arabic .chip .close,
.arabic .select-dropdown li img {
    float: left;
}

.arabic i.left,
.arabic .breadcrumb i,
.arabic .breadcrumb [class^="mdi-"],
.arabic .breadcrumb [class*="mdi-"],
.arabic .breadcrumb i.material-icons,
.arabic table.responsive-table thead,
.arabic .row .col,
.arabic span.badge,
.arabic nav .sidenav-trigger,
.arabic nav ul li,
.arabic nav ul.left,
.arabic .dropdown-content li>a>i,
.arabic .chip>img,
.arabic .file-field .btn,
.arabic .file-field .btn-large,
.arabic .file-field .btn-small,
.arabic .sidenav li>a>i,
.arabic .sidenav li>a>[class^="mdi-"],
.arabic .sidenav li>a li>a>[class*="mdi-"],
.arabic .sidenav li>a>i.material-icons {
    float: right !important;
}

.arabic #dropdown7 {
    margin: 120px !important;
}

.arabic .sidenav li>a>i.material-icons {
    margin: 0 10px 0 10px !important;
}

/* .arabic .sidenav-active-square.nav-collapsed li>a — removed: empty ruleset */

.arabic .sidenav-active-square.nav-collapsed li>a>i.material-icons {
    margin: 0 10px 0 20px !important;
}

.arabic .sidenav-active-square .sidenav .collapsible-header:after {
    right: 195px;
}

.arabic .sidenav-active-square .sidenav li>a.active {
    color: #fff;
    border-radius: 5px 0 0 5px;
}


/* .sidenav-active-square .sidenav li:not(.active)>a:hover {
        margin-right: 2px !important;
        margin-left: 15px !important;
        border-radius: 5px 0 0 5px;
    } */


/* checkboxes  */

.arabic [type='checkbox']+span:not(.lever) {
    /* float: right; */
    /* text-align: left; */
    padding-right: 35px;
}

.arabic [type='checkbox']+span:not(.lever):before,
[type='checkbox']:not(.filled-in)+span:not(.lever):after {
    float: right;
    text-align: left;
    right: 0;
}

.arabic [type='checkbox']:not(.filled-in)+span:not(.lever):after {
    text-align: left;
    float: right;
}

.arabic .caret {
    left: 0;
    right: auto
}


/* .arabic td, */


/* .arabic th, */

.arabic table.responsive-table th,
.arabic table.responsive-table td,
.arabic .left-align,
.arabic .fixed-action-btn.direction-right ul,
.arabic .dropdown-content li,
.arabic li {
    text-align: right;
}

.arabic table.responsive-table th,
.arabic .right-align .arabic .fixed-action-btn.direction-left ul,
.arabic .fixed-action-btn.direction-right ul,
.arabic .modal .modal-footer {
    text-align: left;
}

.arabic .sidenav-main {
    right: 0;
    left: auto;
}

.arabic .brand-logo {
    float: right !important;
}

.arabic .searchDiv {
    float: right !important;
    text-align: right;
}

.arabic #quickSearch {
    text-align: right !important;
}
.arabic #quickSearch360 {
    text-align: right !important;
}

.arabic .brand-logo {
    float: right !important;
}

.arabic .sidenav.sidenav-fixed {
    right: 0;
    left: auto;
    padding-right: 0;
}

@media only screen and (min-width: 993px) {
    .arabic #main {
        padding-right: 50px;
        padding-left: 0;
    }

    .searchDiv {
        margin-left: 0.7em;
    }
}

@media only screen and (min-width: 993px) {
    .arabic #main.main-full {
        padding-right: 64px;
        padding-left: 0;
    }
}

@media only screen and (min-width: 993px) {
    .arabic footer {
        padding-right: 50px;
        padding-left: 0;
    }
}

.arabic .navbar-list.right {
    float: left !important;
}

.arabic .navbar .nav-collapsed .header-search-wrapper {
    margin-right: 100px !important;
    margin-left: 0;
}

.arabic .header-search-wrapper {
    margin-right: 275px !important;
    margin-top: 0 !important;
    float: right;
    margin-left: 0;
}

.arabic .navbar .switch {
    float: right;
}

.arabic .switch label .lever:before {
    left: auto;
    right: 0;
}

.arabic .switch label .lever:after {
    left: auto !important;
    right: 0px !important;
}

.arabic .switch label input[type="checkbox"]:checked+.lever:before,
.arabic .switch label input[type="checkbox"]:checked+.lever:after {
    left: auto !important;
    right: 18px !important;
}

.arabic .menu-title {
    padding: 0 10px;
}

.arabic .left-button {
    float: left !important;
}

.arabic .chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat .chat-body .chat-text:first-child:before {
    display: none;
}

.arabic .users-options-icons {
    left: 10px !important;
    display: inline-flex;
    right: auto;
}

.align-left {
    float: left !important;
}

.align-right {
    float: left !important;
}

.arabic .annotaion-right {
    text-align: right;
    padding-right: 35px;
}

.arabic ul {
    padding-right: 0;
}

.arabic #color {
    float: left !important;
    margin-left: 250px !important;
}

.arabic .fixed-action-btn.direction-left ul,
.fixed-action-btn.direction-right ul {
    top: 50%;
    right: auto;
    left: 115px;
    height: 100%;
    width: unset;
    transform: translateY(-50%);
}


/* timeline arabic */

.arabic .timeline::after {
    content: "";
    position: absolute;
    width: 6px;
    background-color: white;
    top: 10px;
    bottom: 70px;
    right: 18px;
    margin-right: -3px;
}

.arabic .timeline .right::before {
    right: 30px;
}

.arabic .timeline .right {
    right: 18px;
    margin-right: 0;
}

.arabic .timeline .right::after {
    right: -16px;
}

.arabic .timeline-container::after {
    padding-right: 8px;
}

.arabic .timeline .right::before {
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

.arabic .right {
    float: left !important;
}

.arabic .float-right.right {
    float: left !important;
}

.arabic .ml-1 {
    margin-right: 1% !important;
}

.arabic .ml-2 {
    margin-right: 2% !important;
}

.arabic .arabic-padding-5 {
    padding-right: 5% !important;
}

.arabic .arabic-d-none {
    display: none;
}

.arabic .arabic-left {
    float: left !important;
}

.arabic .ml-auto {
    margin-right: auto !important;
    margin-left: 15px !important;
}

.arabic .collapsible-header i {
    margin-left: 1rem !important;
}


/* .arabic .float-right {
    float: left !important;
} */


/* end timeline arabic */


/* end arabic */

.page-insights {
    margin-bottom: 51px;
}

.page-insights td,
.page-insights th {
    text-align: center;
}

.page-insights .custom-pie-chart {
    height: 250px;
}

.page-insights .custom-pie-chart .apexcharts-canvas {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.apexcharts-legend.position-bottom.left,
.apexcharts-legend.position-top.left,
.apexcharts-legend.position-right,
.apexcharts-legend.position-left {
    justify-content: center;
    text-align: initial;
}

.light-black-text {
    color: #373d3f;
}

.err-msgs {
    padding-left: 45px;
    padding-right: 45px;
}

.dropdown-content {
    border-radius: 10px;

}

.select-dropdown {
    top: 0 !important;
}

.scroll-card {
    height: 12rem;
    overflow: auto;
}

.fixed-possition {
    justify-content: center;
    display: flex;
}

.date-range {
    background: #fff;
    cursor: pointer;
    padding: 5px 10px;
    border: 1px solid #ccc;
    width: 100%;
}

.daterangepicker .ranges li.active {
    background-color: var(--primary-color) !important;
}

.daterangepicker td.active,
.daterangepicker td.active:hover {
    background-color: var(--primary-color) !important;
}

.daterangepicker td.in-range {
    background-color: var(--primary-color) !important;
}

.flipped-transform-front {
    -webkit-transform: rotateY(0deg);
    -moz-transform: rotateY(0deg);
    -o-transform: rotateY(0deg);
    -ms-transform: rotateY(0deg);
    transform: rotateY(0deg);
}

.flip-container {
    display: block;
    margin: 0 auto;
    height: 24em;
}

.flipToFront {
    -webkit-transform: rotateY(0deg);
    -moz-transform: rotateY(0deg);
    -o-transform: rotateY(0deg);
    -ms-transform: rotateY(0deg);
    transform: rotateY(0deg);
}

.flipToBack {
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

.flipper {
    -webkit-perspective: 1000;
    -moz-perspective: 1000;
    -ms-perspective: 1000;
    -o-perspective: 1000;
    perspective: 1000;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -o-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transition: 0.4s;
    -moz-transition: 0.4s;
    -o-transition: 0.4s;
    -ms-transition: 0.4s;
    transition: 0.4s;
    width: 100%;
    height: 100%;
    position: relative;
}

.flip-container,
.front,
.back {
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
    text-align: center;
    color: #333333;
}

.front,
.back {
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-border-radius: 0.5em;
    -moz-border-radius: 0.5em;
    border-radius: 0.5em;
    width: 100%;
    height: 100%;
}

.front {
    text-align: center;
    z-index: 2;
    background-color: #fefefe;
    -webkit-transform: rotateY(0deg);
    -moz-transform: rotateY(0deg);
    -o-transform: rotateY(0deg);
    -ms-transform: rotateY(0deg);
    transform: rotateY(0deg);
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border: 0.5em solid #fefefe;
}

.front img {
    width: 100%;
    margin: 0 auto;
    height: auto;
    -webkit-border-radius: 0.5em;
    -moz-border-radius: 0.5em;
    border-radius: 0.5em;
}

.back {
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
    transform: rotateY(180deg);
    background-position: center;
    background-repeat: repeat;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    /* border: 1em solid #FEFEFE; */
}

.ellipsis {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.ellipsis:hover {
    overflow: visible;
    white-space: normal;
    transition: all 0.4s ease-in-out;
    word-break: break-all;
}

.flow-table-cell-truncate {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    position: relative;
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.table-responsive table td .input-field {
    min-width: 150px;
}

.table-responsive table td .input-field textarea.materialize-textarea {
    min-width: 180px;
}

.table-responsive table td .custom-data-edit {
    min-width: 280px;
}

.table-responsive table td .edit-image-flow {
    min-width: 120px;
}

.custom-data-preview {
    margin-top: 5px;
}

.flow-data-chip {
    background-color: #e4e4e4;
    color: rgba(0,0,0,0.6);
    border-radius: 16px;
    height: 32px;
    line-height: 32px;
    padding: 0 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    max-width: 250px;
    cursor: default;
    width: fit-content;
}

.flow-data-key {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
}

.flow-data-separator {
    margin: 0 4px;
    font-weight: bold;
    flex-shrink: 0;
}

.flow-data-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
}
.custom-data-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
    align-items: center;
}
.edit-image-flow{
    display: flex;
    gap: 10px;
    align-items: center;
}

.width-15 {
    width: 15% !important;
}

.fa-1x {
    font-size: 1em;
    padding-top: 3px;
    padding-left: 5px;
    padding-right: 3px;
}

[type="checkbox"].filled-in:not(:checked)+span:not(.lever):after {
    margin-top: 10px;
}

[type="checkbox"].filled-in+span:not(.lever):before,
[type="checkbox"].filled-in+span:not(.lever):after {
    margin-top: 10px;
}

[type="checkbox"].filled-in:checked+span:not(.lever):before {
    top: 2px !important;
}

#set-refresh-window [type="checkbox"].filled-in+span:not(.lever):before,
#set-refresh-window [type="checkbox"].filled-in+span:not(.lever):after,
#add-article-deep-crawl [type="checkbox"].filled-in+span:not(.lever):before,
#add-article-deep-crawl [type="checkbox"].filled-in+span:not(.lever):after {
    margin-top: 0;
}

#set-refresh-window [type="checkbox"].filled-in:checked+span:not(.lever):before,
#add-article-deep-crawl [type="checkbox"].filled-in:checked+span:not(.lever):before {
    top: 0 !important;
}

/* Website source whole site / single page switch (US #2226) - deep crawl and From URL modals. */
.website-mode-switch {
    display: inline-flex;
    margin: 0 0 12px 0.75rem;
    padding: 2px;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
}

.website-mode-option {
    padding: 4px 14px;
    border-radius: 999px;
    color: inherit;
    font-size: 13px;
    cursor: pointer;
}

.website-mode-option.is-on {
    cursor: default;
}

/* Website source Auto-Refresh Period (US #2226) - deep crawl form and Window & refresh settings. */
.refresh-period-field {
    margin-bottom: 16px;
}

.refresh-period-label {
    display: block;
    margin-bottom: 4px;
    color: #9e9e9e;
    font-size: 0.8rem;
}

.refresh-period-select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fff;
}

/* Single-page Website source: the days of a weekly period. */
.refresh-day-chip {
    display: inline-block;
    margin: 0 4px 4px 0;
    padding: 6px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.d-flex {
    display: flex;
}

.d-flex-center {
    display: flex;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
}

.d-block {
    display: block;
}

.ml-auto {
    margin-left: auto;
}

.m-05rm {
    margin: 0.5rem;
}

.fixed-width {
    overflow-x: auto !important;
}


/* select:focus {
  outline: 1px solid #bdbdbd !important;
} */

.width-20ch {
    width: 20ch;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #d64425;
    margin: auto;
}
.width-30ch {
    padding: 0px 10px 0px 10px;
    width: 30ch;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: auto;
}
.table-wrapper {
    overflow: auto; /* Enable scrolling */
    scrollbar-width: thin;
    overflow-x: visible;
    overflow-y: hidden;
    white-space: nowrap;
}

/* Apply sticky positioning to the fixed column */
.sticky-column {
    position: sticky;
    left: -17px;
    z-index: 2;
}
/* Apply matching background to sticky column for striped effect */
table.striped tbody tr:nth-child(odd) .sticky-column {
    background-color: #f2f2f2;
}

table.striped tbody tr:nth-child(even) .sticky-column {
    background-color: #fff;
}


.line-height-0 {
    line-height: 0;
}

.line-height-1 {
    line-height: 1;
}

.line-height-2 {
    line-height: 2;
}

.line-height-4 {
    line-height: 4;
}

.position-relative {
    position: relative !important;
}

.r-0 {
    right: 0;
}

.r-30 {
    right: 30px;
}

.l-0 {
    left: 5px;
}

.custom-chip {
    height: 26px;
    line-height: 26px;
    display: flex;
}

.custom-chip .closed {
    line-height: 26px;
}

.chat-header .row.valign-wrapper {
    align-items: center;
    vertical-align: middle;
    width: 100%;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left !important;
}

.flex-wrap {
    flex-wrap: wrap;
}

.w-auto {
    width: auto !important;
}

.chat-application .app-chat .chat-content .chat-content-area {
    display: flex !important;
    flex-direction: column;
    height: 100%;
}

.chat-application .app-chat .chat-content {
    display: flex;
}

.h-auto {
    height: auto !important;
}

.custom-margin {
    margin-bottom: 60px !important;
}

.small-chip {
    height: 20px;
    line-height: 20px;
    font-size: 12px;
    padding: 0 10px;
}

.dropdown-chat {
    min-height: 40px;
    min-width: 40px !important;
    line-height: 40px;
}

.multiple-select-dropdown {
    max-height: 200px !important;
    overflow: auto;
}

span.spnNoData {
    font-size: 13px;
    color: #757575;
}

.searchDiv {
    height: 100%;
    min-width: 13vw;
}

@media only screen and (max-width: 992px) {
    .navbar .header-search-wrapper {
        margin-left: 75px;
        width: auto;
    }

    .searchDiv {
        margin-left: 0.8em;
    }
}

.arabic #list-conv {
    direction: ltr !important;
}

.arabic #ss {
    direction: ltr !important;
}

.dropdown-content-up {
    bottom: 64px !important;
    top: auto !important;
}

.gallery-cell {
    width: 28%;
    margin-right: 10px;
}

.gallery-cell.is-selected {
    transform: scale(1.2);
    z-index: 9999;
}

.carousel {
    height: 505px !important;
}

.carousel .carousel-item {
    width: 400px !important;
    top: 0;
    height: 100%;
}

.carousel .card {
    overflow: visible;
}


/* carousel-item */

.carousel-item .btn-attachement-list {
    width: 20%;
    right: 0;
    left: auto;
    top: 93px !important;
}

.carousel .card-header .text-nowrap {
    overflow: hidden;
    max-width: 85%;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: inline-block;
}

.carousel .chip {
    line-height: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 6px;
}

.carousel .chip i {
    line-height: 20px;
}

.carousel .chat-content-area {
    height: 33vh;
}

.carousel .chat-content-area .chat-area {
    height: 100% !important;
}

.carousel .chat-content {
    height: 100% !important;
}

.carousel .dropdown-chat {
    min-height: auto !important;
    line-height: unset !important;
}

.carousel-quick-reply {
    max-height: 35vh;
}

.edit-intent-btn-position {
    top: 18%;
    right: 2%;
}

.chip-close {
    font-size: 16px;
    line-height: 32px;
    float: right;
    padding-left: 8px;
    cursor: pointer;
}

.annotation-card {
    min-width: 25vw;
}

.annotation-card .card-content .chip {
    cursor: pointer;
}

#Summary .wedgit-container {
    display: flex;
    width: 100%;
    /* max-height: 50vh; */
}

#Summary .wedgit-container .wedgit-card {
    flex: 1;
    margin: 15px;
}

#procedures .wedgit-container {
    display: flex;
    width: 100%;
    max-height: 50vh;
}

#procedures .wedgit-container .wedgit-card {
    flex: 1;
    margin: 15px;
}

#Performance .wedgit-container {
    display: flex;
    width: 100%;
    max-height: 50vh;
}

#Performance .wedgit-container .wedgit-card {
    flex: 1;
    margin: 15px;
}

#Performance .card {
    overflow: visible;
}

@media (min-width: 600px) {
    #Performance .counters {
        display: flex;
    }
}

#Performance .counters h5 {
    font-size: 1.2rem;
}

#Performance .counters p {
    font-size: 0.8rem;
}

.mh-20 {
    max-height: 200px;
    overflow: auto !important;
}

.modal-annoations textarea {
    height: auto;
    overflow: auto;
}

.atricle-list-page.modal-annoations textarea {
    height: 43px;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat .chat-body .chat-text p {
    max-width: 450px;
}

.medium-large {
    font-size: 2.5rem;
}

.modal-xlarge {
    width: 90%;
    max-height: initial;
    height: 90% !important;
    top: 50% !important;
    bottom: 50%;
}

.truncate-td {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 1px;
}

.table-header {
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .12), 0 1px 5px 0 rgba(0, 0, 0, .2);
}

.table-cell-truncate {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#announcementsID table td,
#announcementsID table th {
    padding: 8px 10px;
}

/* Tag/Category popover tooltip */
.tag-popover-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.tag-popover-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 6px;
    border-radius: 12px;
    background: #e0e0e0;
    color: #555;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.tag-popover-content {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.4s, opacity 0.4s linear;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 6px;
    min-width: 140px;
    max-height: 150px;
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 100;
    padding: 8px 0;
    cursor: default;
}

.tag-popover-trigger:hover .tag-popover-content {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s linear;
}

.tag-popover-item {
    padding: 6px 16px;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    text-align: left;
}

.tag-popover-item:hover {
    background: #f5f5f5;
}

select:focus {
    outline: none;
}

select.start-select ul.dropdown-content {
    max-height: 100px !important;
}

.system-color-text {
    color: #7422a2 !important;
}

.align-item-center {
    align-items: center !important;
}

.callArrow {
    position: relative;
    animation: mymove 1s infinite;
    animation-timing-function: ease;
}

.callArrow2 {
    position: relative;
    animation: mymove2 1s infinite;
    animation-timing-function: ease;
}

@keyframes mymove {
    from {
        left: 0px;
    }

    to {
        left: 30px;
    }
}


/* #div1 {animation-timing-function: linear;} */

.custom-tabs .tab a {
    color: #9E9E9E;
}

.custom-tabs .tab a.active {
    outline: none;
    background-color: rgba(114, 128, 206, .2);
    border-radius: 6px 6px 0px 0px;
    color: #f8f8f8;
}

.custom-tabs .tab a:hover {
    color: #f8f8f8;
}

.table.striped th {
    border-bottom: 1px solid #cfd8dc;
}

.task-cat {
    font-size: .8rem;
    padding: 2px 4px;
    border-radius: 2px;
    background-clip: padding-box;
    font-weight: 300;
    color: #fff;
}

.validation-msg {
    font-size: 0.8em;
}

.rotateY-180 {
    transform: rotateY(180deg);
}

@keyframes mymove2 {
    from {
        left: -30px;
    }

    to {
        left: 0px;
    }
}

td i {
    vertical-align: middle;
}

@keyframes active-error {
    0% {
        box-shadow: inset 0px 0px 7px 0px rgba(233, 30, 99, 0.5);
    }

    50% {
        box-shadow: inset 0px 0px 1px 0px rgba(233, 30, 99, 0.5);
    }

    100% {
        box-shadow: inset 0px 0px 7px 0px rgba(233, 30, 99, 0.5);
    }
}

@-webkit-keyframes active-error {
    0% {
        box-shadow: inset 0px 0px 7px 0px rgba(233, 30, 99, 0.5);
    }

    50% {
        box-shadow: inset 0px 0px 1px 0px rgba(233, 30, 99, 0.5);
    }

    100% {
        box-shadow: inset 0px 0px 7px 0px rgba(233, 30, 99, 0.5);
    }
}

.active-error {
    -webkit-animation: active-error 2.0s ease-in-out infinite !important;
    -moz-animation: active-error 2.0s ease-in-out infinite !important;
    -ms-animation: active-error 2.0s ease-in-out infinite !important;
    -o-animation: active-error 2.0s ease-in-out infinite !important;
    animation: active-error 2.0s ease-in-out infinite !important;
}

.active-shadow {
    box-shadow: inset 0px 0px 0px 2px #7a1fa23d;
    /* box-shadow: inset 0px 0px 2px 1px #dad9d9; */
}

@keyframes active-shadow {
    0% {
        box-shadow: inset 0px 0px 7px 0px #7a1fa28a;
    }

    50% {
        box-shadow: none;
    }

    100% {
        box-shadow: inset 0px 0px 7px 0px #7a1fa28a;
    }
}

@-webkit-keyframes active-shadow {
    0% {
        box-shadow: inset 0px 0px 7px 0px #7a1fa28a;
    }

    50% {
        box-shadow: 0 0 0;
    }

    100% {
        box-shadow: inset 0px 0px 7px 0px #7a1fa28a;
    }
}

.chat-animate.active-shadow {
    -webkit-animation: active-shadow 2.0s ease-in-out infinite !important;
    -moz-animation: active-shadow 2.0s ease-in-out infinite !important;
    -ms-animation: active-shadow 2.0s ease-in-out infinite !important;
    -o-animation: active-shadow 2.0s ease-in-out infinite !important;
    animation: active-shadow 2.0s ease-in-out infinite !important;
}

.text-bolder {
    -webkit-text-stroke: medium;
}

.dark-grey-text {
    color: #6d7184 !important;
}

.dark-text {
    color: #000 !important;
}

.collapsible .chip-alignement {
    min-width: 5rem;
    text-align: center;
}

.pt-less-2 {
    padding-top: 1.90% !important;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, .14);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, .12);
    outline: 1px solid transparent;
    border-radius: 8px;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-footer .chat-input i {
    line-height: 2;
}

.border-right-1 {
    border-right: 1px solid #e6e6e6;
}

.font-13 {
    font-size: 13px;
}

[scroll-glue-top],
[scroll-glue-bottom],
[scroll-glue] {
    height: calc(100vh - 220px);
    /* 100vh - 273px */
    overflow-y: scroll;
}


/* .select-wrapper input.select-dropdown {
    margin: 0;
} */

.overflow-x-scroll {
    overflow-x: scroll;
}

.overflow-y-scroll {
    overflow-y: scroll;
}

/* ---------------------------------------------------
  pagination
----------------------------------------------------- */

.pagination .imgDisabled {
    opacity: .5;
}

.pagination .notshow {
    display: none;
}

pre {
    white-space: break-spaces;
}

.border-top-1 {
    border-top: 1px solid #dadada;
}

.small-font {
    font-size: 15px !important;
}

.fixed-height-chart {
    height: 150px;
}

.rounded-10 {
    border-radius: 10px;
}

.sidebar-small {
    width: 330px !important;
}

.card-contact-info {
    /* display: flex; */
    height: 71vh;
    height: 85vh;
}

.overflow-scroll {
    overflow: scroll;
}

.border-bottom-2 {
    border-bottom: 1px solid rgb(151, 147, 147);
}

.shadow-bottom {
    box-shadow: 0 8px 6px -6px #cecece;
}

.ellipsis,
.ellipsis:hover {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.ellipsis-div {
    width: 99%;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-width: 5px 5px 0 5px;
    margin-left: -4px;
}

.select2-container--default .select2-selection--single {
    background-color: transparent;
}

.rounded-button,
.rounded-button:hover {
    border-radius: 50px 50px;
    box-shadow: none;
    background-color: #3e18634f;
}

.custom-ul {
    top: 50px !important;
    border-radius: 10px !important;
}

.custom-ul li {
    white-space: nowrap !important;
    display: inline !important;
}

.disabled {
    pointer-events: none !important;
    cursor: no-drop !important;
    opacity: 0.6;
}

.light-black {
    color: rgb(55, 61, 63);
}

.small-badge-font {
    font-size: 0.75rem !important;
}

.chat-user-msg,
.chat-system-msg {
    text-align: center;
}

.chat-ai-assistant {
    text-align: center;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-user-msg,
.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-system-msg {
    justify-content: center;
    position: relative;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-ai-assistant {
    justify-content: center;
    position: relative;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-user-msg .channel-dv,
.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-system-msg .channel-dv {
    vertical-align: middle;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-ai-assistant .channel-dv {
    position: absolute;
    top: 10px;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-user-msg .chat-text-dv,
.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-system-msg .chat-text-dv {
    margin-left: 5px;
    vertical-align: middle;
}

/* Arabic: the same gap on the reading side */
.arabic .chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-user-msg .chat-text-dv,
.arabic .chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-system-msg .chat-text-dv {
    margin-left: 0;
    margin-right: 5px;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-ai-assistant .chat-text-dv {
    margin-left: 25px;
    margin-right: 25px;
}

/* inline-block, so the margin that leaves room for the channel icon holds for every line: on
   an inline span it only indents the first, and a short text that wraps ("client
   disconnected") ran its second line under the icon. */
.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-user-msg .chat-text-dv,
.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-system-msg .chat-text-dv,
.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-ai-assistant .chat-text-dv {
    display: inline-block;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-user-msg .chat-body,
.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-system-msg .chat-body {
    max-width: 90%;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-ai-assistant .chat-body {
    max-width: 90%;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-user-msg .chat-body .chat-text {
    position: relative;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-user-msg .chat-body .chat-text .delete-note {
    transform: none !important;
    position: absolute;
    right: 0px;
    top: 0px;
    cursor: pointer;
    width: 25px;
    height: 25px;
    background: #fff5c4f2;
    border-radius: 5px;
    opacity: 0;
    transition: all .2s ease-in-out;
    font-family: "Material Icons";
    color: #616161f2;
    content: "clear";
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-user-msg .chat-body .chat-text:hover .delete-note {
    opacity: 1;
    transition: all .2s ease-in-out;
}

.delete-note i {
    font-size: 20px;
    line-height: 25px;
}

.delete-msg {
    margin-left: -7px;
    opacity: 0;
}

.dismiss {
    top: 0;
    right: 0;
}

.delete-msg i {
    font-size: 20px !important;
}

.chat-body .chat-text:hover .delete-msg {
    opacity: 1;
    transition: all .2s ease-in-out;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-user-msg .chat-body .chat-text:first-child:before,
.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-system-msg .chat-body .chat-text:first-child:before {
    border: none !important;
    box-shadow: none !important
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-ai-assistant .chat-body .chat-text:first-child:before {
    border: none !important;
    box-shadow: none !important
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-user-msg .chat-body .chat-text p,
.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-system-msg .chat-body .chat-text p {
    background: #fff5c4f2;
    color: #504e4e;
    max-width: 100%;
    width: 100%;
    font-size: 12.5px;
    padding: 1.5% !important;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-ai-assistant .chat-body .chat-text p {
    background: #fceefbf2;
    color: #131212;
    max-width: 100%;
    width: 100%;
    font-size: 12.5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.flagged-msg {
    border: #f44336 2px solid;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-system-msg .chat-body .chat-text p {
    background: #fef5f3eb;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-ai-assistant .chat-body .chat-text p {
    background: #f0ddeff2;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-user-msg .chat-body .chat-text p .time-message,
.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-system-msg .chat-body .chat-text p .time-message {
    text-align: center !important;
    color: #616161b8 !important;
}

.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-ai-assistant .chat-body .chat-text p .time-message {
    text-align: right !important;
    color: #292727b8 !important;
}

.font-bold {
    font-weight: bold !important;
}

.uniNum-font {
    font-family: cursive !important;
}
.contact{
    font-size:0.9rem !important;
}

.user-content i {
    display: inline-flex !important;
    vertical-align: top !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    margin-right: 5px;
}

.secondary-content {
    color: var(--primary-color) !important;
    top: 1.2rem !important;
}

.offline {
    color: #ef5350;
}

.online {
    color: #69f0ae;
}

.collection .collection-item.avatar {
    min-height: 55px !important;
}

#messages .collection ul.collection li {
    padding-top: 10px !important;
}

#messages .collection ul.collection li:hover {
    background-color: #ffffff !important;
}

.special-span {
    font-size: 10px;
    text-align: right;
    font-weight: 700;
    color: black;
    clear: both;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    position: absolute;
    bottom: 10px;
    right: 6px;
    width: 35%;
    text-overflow: ellipsis;
}

.special-label {
    width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-button {
    margin-right: 10px;
    margin-left: 10px;
    text-align: center;
}

.is-ready-status {
    position: absolute;
    right: 50px;
    font-size: 21px;
    top: 1.2rem !important;
}

.d-inline {
    display: inline !important;
}

.customeFieldCard {
    display: block;
    width: 275px;
    right: 0;
    left: auto;
    top: 40px;
    padding: 15px;
    height: 267.118px;
    transform-origin: 0px 0px;
    opacity: 1;
    transform: scaleX(1) scaleY(1);
    border-radius: 10px;
    position: absolute;
    z-index: 9999;
    overflow-y: auto;
    min-width: 100px;
    margin: 0;
    background-color: #fff;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .12), 0 1px 5px 0 rgba(0, 0, 0, .2);
    box-sizing: border-box;
}

.customeFieldCard.arabic {
    left: 0;
    right: auto;
    top: 40px;
}

.chat-customeFieldCard {
    display: block;
    width: 275px;
    left: 5%;
    height: 267.118px;
    transform-origin: 0px 0px;
    opacity: 1;
    transform: scaleX(1) scaleY(1);
    border-radius: 10px;
    position: absolute;
    z-index: 9999;
    overflow-y: auto;
    min-width: 100px;
    margin: 0;
    background-color: #fff;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .12), 0 1px 5px 0 rgba(0, 0, 0, .2);
    box-sizing: border-box;
}

.page-procedure hr,
.decorate-hr {
    border-top: 1px dashed var(--primary-color);
    color: var(--primary-color);
    margin-bottom: 20px;
    margin-top: 30px;
}

.page-procedure textarea.custom {
    height: 80px;
    max-height: 80px;
    overflow: auto;
}

.message-box {
    word-wrap: break-word;
    /* Allow words to wrap naturally */
    white-space: normal;
    margin-right: 70px;
    /* Adjust to leave space for the time */
}

.btn-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.template_body_style {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
    white-space: pre-wrap;
}

.page-procedure .btn-floating i {
    line-height: 40px !important;
}

@media only screen and (min-width: 993px) {
    .row .col.l2-5 {
        right: auto;
        left: auto;
        width: 20%;
        margin-left: auto;
    }
}

.padding-less-2 {
    padding: 1.5% !important;
}

.textarea-height {
    max-height: 12rem;
    min-height: 3rem;
    overflow-y: auto !important;
}

.pt-17 {
    padding-top: 17% !important;
}

.alarm {
    color: #ffc107;
    width: 21px;
    height: 21px;
    font-size: 22px;
    -webkit-animation: ring 4s 0.7s ease-in-out infinite;
    -webkit-transform-origin: 50% 4px;
    -moz-animation: ring 4s 0.7s ease-in-out infinite;
    -moz-transform-origin: 50% 4px;
    animation: ring 12s 1s ease-in-out infinite;
    transform-origin: 50% 4px;
}
.ticket-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ticket-duration-alert {
    color: #f44336;
}

@-webkit-keyframes ring {
    0% {
        -webkit-transform: rotateZ(0);
    }

    1% {
        -webkit-transform: rotateZ(30deg);
    }

    3% {
        -webkit-transform: rotateZ(-28deg);
    }

    5% {
        -webkit-transform: rotateZ(34deg);
    }

    7% {
        -webkit-transform: rotateZ(-32deg);
    }

    9% {
        -webkit-transform: rotateZ(30deg);
    }

    11% {
        -webkit-transform: rotateZ(-28deg);
    }

    13% {
        -webkit-transform: rotateZ(26deg);
    }

    15% {
        -webkit-transform: rotateZ(-24deg);
    }

    17% {
        -webkit-transform: rotateZ(22deg);
    }

    19% {
        -webkit-transform: rotateZ(-20deg);
    }

    21% {
        -webkit-transform: rotateZ(18deg);
    }

    23% {
        -webkit-transform: rotateZ(-16deg);
    }

    25% {
        -webkit-transform: rotateZ(14deg);
    }

    27% {
        -webkit-transform: rotateZ(-12deg);
    }

    29% {
        -webkit-transform: rotateZ(10deg);
    }

    31% {
        -webkit-transform: rotateZ(-8deg);
    }

    33% {
        -webkit-transform: rotateZ(6deg);
    }

    35% {
        -webkit-transform: rotateZ(-4deg);
    }

    37% {
        -webkit-transform: rotateZ(2deg);
    }

    39% {
        -webkit-transform: rotateZ(-1deg);
    }

    41% {
        -webkit-transform: rotateZ(1deg);
    }

    43% {
        -webkit-transform: rotateZ(0);
    }

    100% {
        -webkit-transform: rotateZ(0);
    }
}

@-moz-keyframes ring {
    0% {
        -moz-transform: rotate(0);
    }

    1% {
        -moz-transform: rotate(30deg);
    }

    3% {
        -moz-transform: rotate(-28deg);
    }

    5% {
        -moz-transform: rotate(34deg);
    }

    7% {
        -moz-transform: rotate(-32deg);
    }

    9% {
        -moz-transform: rotate(30deg);
    }

    11% {
        -moz-transform: rotate(-28deg);
    }

    13% {
        -moz-transform: rotate(26deg);
    }

    15% {
        -moz-transform: rotate(-24deg);
    }

    17% {
        -moz-transform: rotate(22deg);
    }

    19% {
        -moz-transform: rotate(-20deg);
    }

    21% {
        -moz-transform: rotate(18deg);
    }

    23% {
        -moz-transform: rotate(-16deg);
    }

    25% {
        -moz-transform: rotate(14deg);
    }

    27% {
        -moz-transform: rotate(-12deg);
    }

    29% {
        -moz-transform: rotate(10deg);
    }

    31% {
        -moz-transform: rotate(-8deg);
    }

    33% {
        -moz-transform: rotate(6deg);
    }

    35% {
        -moz-transform: rotate(-4deg);
    }

    37% {
        -moz-transform: rotate(2deg);
    }

    39% {
        -moz-transform: rotate(-1deg);
    }

    41% {
        -moz-transform: rotate(1deg);
    }

    43% {
        -moz-transform: rotate(0);
    }

    100% {
        -moz-transform: rotate(0);
    }
}

@keyframes ring {
    0% {
        transform: rotate(0);
    }

    1% {
        transform: rotate(30deg);
    }

    3% {
        transform: rotate(-28deg);
    }

    5% {
        transform: rotate(34deg);
    }

    7% {
        transform: rotate(-32deg);
    }

    9% {
        transform: rotate(30deg);
    }

    11% {
        transform: rotate(-28deg);
    }

    13% {
        transform: rotate(26deg);
    }

    15% {
        transform: rotate(-24deg);
    }

    17% {
        transform: rotate(22deg);
    }

    19% {
        transform: rotate(-20deg);
    }

    21% {
        transform: rotate(18deg);
    }

    23% {
        transform: rotate(-16deg);
    }

    25% {
        transform: rotate(14deg);
    }

    27% {
        transform: rotate(-12deg);
    }

    29% {
        transform: rotate(10deg);
    }

    31% {
        transform: rotate(-8deg);
    }

    33% {
        transform: rotate(6deg);
    }

    35% {
        transform: rotate(-4deg);
    }

    37% {
        transform: rotate(2deg);
    }

    39% {
        transform: rotate(-1deg);
    }

    41% {
        transform: rotate(1deg);
    }

    43% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(0);
    }
}

.angerAlarm {
    color: #ef5350;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    animation-name: shake;
    animation-duration: 5s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes shake {

    2%,
    18% {
        transform: translate3d(-5px, 0, 0);
    }

    4%,
    16% {
        transform: translate3d(5px, 0, 0);
    }

    6%,
    10%,
    14% {
        transform: translate3d(-5px, 0, 0);
    }

    8%,
    12% {
        transform: translate3d(5px, 0, 0);
    }

    18.1% {
        transform: translate3d(0px, 0, 0);
    }
}

.info-dev span {
    font-size: 0.6rem;
}

.active-shadow .info-dev {
    font-weight: bold;
    font-weight: 900;
    color: #383737;
}

.sticky {
    background-color: transparent;
    position: sticky !important;
    top: 0;
    z-index: 999 !important;
}

.sticky p {
    box-shadow: none !important;
    /* border: 1px solid #ddd; */
}

.monospace {
    font-family: monospace;
    font-size: x-small;
    padding: 0px 8px;
}

.chat-icons-col {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* justify-content: space-between; */
    justify-content: flex-start;
}

.closed-text {
    /* color: gold !important; */
    color: #607D8B !important;
}

.font-12 {
    font-size: 12px;
}

.font-status {
    font-size: 0.80rem;
    padding: 4px 6px !important;
}

.small-icon {
    font-size: 1.6rem !important;
}

.split-btn {
    display: flex;
    /* justify-content: center; */
}

.split-btn .btn {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

.split-btn .dropdown-trigger.btn {
    padding: 0 2px;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    border-bottom-right-radius: 4px;
    border-top-right-radius: 4px;
}

@media only screen and (max-width: 992px) {
    .sidenav-main .sidenav {
        width: auto;
    }
}

.pt-per-4 {
    padding-top: 4% !important;
}

.chip .closed.closed-small {
    font-size: 14px;
    line-height: 20px;
    float: right;
    padding-left: 8px;
    cursor: pointer;
    margin-right: -5px;
}

.rounded-5 {
    border-radius: 5px;
}

.chip {
    border-radius: 5px;
}

@media only screen and (max-width: 992px) {

    .nav-expanded .sidenav.sidenav-fixed,
    .nav-lock .sidenav.sidenav-fixed {
        height: 100vh;
        /* scroll-behavior: smooth; */
    }

    .arabic .nav-expanded .sidenav.sidenav-fixed,
    .arabic .nav-lock .sidenav.sidenav-fixed {
        height: 100vh;
        transform: translateX(105%) !important;
        /* scroll-behavior: smooth; */
    }

    .arabic .nav-expanded.slidedOut .sidenav.sidenav-fixed,
    .arabic .nav-lock.slidedOut .sidenav.sidenav-fixed {
        height: 100vh;
        transform: translateX(0%) !important;
        /* scroll-behavior: smooth; */
    }
}

.date-picker-wrapper {
    z-index: 999999 !important;
}

.delete-insights {
    position: absolute;
    right: 5px;
    top: 10px;
    z-index: 994;
}

.d-none {
    display: none !important;
}

.sentiment-icon-size {
    font-size: 0.85rem !important; /* Reduced size */
}

.tableContainer {
    overflow-x: auto;
}

.tableContainer table td,
.tableContainer table th {
    width: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
}

.tableContainer table th {
    text-transform: capitalize !important;
}

#customExport h6 {
    text-transform: capitalize !important;
}

h6.custom-insights {
    font-size: 0.9rem;
}

.lh4 {
    line-height: 4;
}

.default-color {
    color: #5d5e63;
}

.bolder {
    font-weight: bolder;
}

.fixed-button {
    display: flex;
    justify-content: flex-end;
}

#customExport {
    display: flex;
    flex-wrap: wrap;
}

.m20 {
    margin: 20px 0;
}

.bt-none {
    border-top: none !important;
}

.light-grey-bg {
    background-color: #eceff1 !important;
}

.min-h-50 {
    min-height: 50px;
}

.ph-1rm {
    padding-right: 1rem;
    padding-left: 1rem;
}

.font-15 {
    font-size: 15px !important;
}

.msg-read {
    color: #1c01ff;
    padding-left: 3px;
    padding-right: 3px;
}

.dir-left {
    direction: ltr !important;
}

.pt-20 {
    padding-top: 20px !important;
}

.dir-right {
    direction: rtl !important;
}

.conv-check {
    position: absolute;
    display: flex;
    align-items: center;
    padding: 10px;
    transform: none !important;
    opacity: 0;
    transition: all 0s ease-in-out;
    content: "clear";
}

.conv-check.all {
    background-image: linear-gradient(to left, rgb(242 241 247 / 0.8), rgb(242 241 247));
    background: white;
    height: 100%;
    width: 75%;
    left: 5px;
    right: 5px;
    top: -3px;
}

.conv-check.one {
    /* Checkbox positioning */
    align-items: center;
    justify-content: center;
}

.chat-application .app-chat .sidebar-header .main-title:hover .conv-check.all,
.chat-application .app-chat .chat-user:hover .conv-check.one,
.show-check {
    opacity: 1 !important;
    transition: all 0s ease-in-out;
}

.arabic .conv-check.all {
    right: 12px !important;
    left: auto;
}

.arabic .conv-check.one {
    right: auto !important;
    left: 50% !important;
}

/* Make chat-icons-col relative so checkbox can position absolutely within it */
.chat-icons-col {
    position: relative !important;
}

/* Checkbox positioning - hidden by default */
.chat-user .conv-check.one {
    display: none !important;
    position: static !important;
    transform: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    opacity: 1 !important;
}

/* On hover: show checkbox */
.chat-user:hover .conv-check.one {
    display: flex !important;
}

/* Keep checkbox visible when it's checked */
.chat-user .conv-check.one:has(input:checked),
.chat-user:has(.conv-check.one input:checked) .conv-check.one {
    display: flex !important;
}

/* On hover: hide channel icon and closed icon ONLY if checkbox is present */
.chat-user.is-selectable:hover .chat-icons-col > div[ng-repeat*="channel"] {
    display: none !important;
}

.chat-user.is-selectable:hover .chat-icons-col .default-icon {
    display: none !important;
}

.chat-user.is-selectable:hover .chat-icons-col > div[ng-show*="closed"] {
    display: none !important;
}

/* Hide channel icon when checkbox is checked */
.chat-user.is-selected .chat-icons-col > div[ng-repeat*="channel"] {
    display: none !important;
}

.chat-user.is-selected .chat-icons-col .default-icon {
    display: none !important;
}

.chat-user.is-selected .chat-icons-col > div[ng-show*="closed"] {
    display: none !important;
}

/* Hide delete button by default, show on hover */
.chat-user .material-icons[ng-click*="showDeleteConvConfirm"] {
    display: none;
}

.chat-user:hover .material-icons[ng-click*="showDeleteConvConfirm"] {
    display: inline-block;
}

/* Hide outbound icon from header - now only in three-dots menu */
#ANC_StartOutbound {
    display: none !important;
}

.user-history-page .card-width .card .card-content {
    height: 120px;
}

#slide-out-right.sidenav {
    width: 1000px !important;
}

#slide-out-right.sidenav .collection .collection-item.avatar {
    min-height: 40px !important;
}

#slide-out-right.sidenav .collection .collection-item.avatar .secondary-content,
#slide-out-right.sidenav .collection .collection-item.avatar .red-text,
#slide-out-right.sidenav .collection .collection-item.avatar .green-text {
    font-size: 14px;
    position: initial;
}

.cursor-default {
    cursor: default !important;
}

.list-loader {
    height: 80px !important;
    position: fixed;
    right: 0px;
    top: -15px;
}

.azure-bg-graph {
    background: azure;
    display: flex;
    justify-content: space-between;
}

.flex-table {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}

.flex-table .col {
    flex: 1;
    padding: 16px;
}

nav ul a:hover {
    background-color: transparent;
}

.select2-container--default .select2-selection--multiple {
    background-color: transparent;
}


/* ===== Summarize-on-statuses : enhanced layout ===== */
/* Header: title + description on the left, unsaved indicator + Save button on the right */
.summary-status-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}
.summary-status-titles h3 { margin: 0 0 4px; }
.summary-status-sub {
    margin: 0;
    font-size: 13px;
    color: #6B6577;
    max-width: 60ch;
}
.summary-status-save {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.summary-unsaved {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6B6577;
    white-space: nowrap;
}
.summary-unsaved .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #E0A106;
    box-shadow: 0 0 0 3px #FBEFCB;
}
.summary-status-save .btn {
    background-color: var(--secondary-color, #622695) !important;
    color: #fff !important;
    opacity: 1;
    cursor: pointer;
    transition: opacity .15s ease;
}
.summary-status-save .btn.disabled {
    background-color: #CFC7DA !important;
    box-shadow: none;
    pointer-events: none;
}

/* Field — two-column row: label on the left, search box + chips tray on the right */
.summary-status-field {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
}
.summary-field-label {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 11px; /* nudge the label down to line up with the input's text */
}
.summary-field-label label {
    font-size: 13px;
    font-weight: 600;
    color: #424242;
}
.summary-status-field .closure-status-chips-wrapper {
    flex: 1;
    min-width: 0; /* allow the field to shrink instead of overflowing the row */
}
.summary-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary-color, #622695);
    background: rgba(98, 38, 149, 0.08);
    padding: 1px 8px;
    border-radius: 20px;
}

/* Search-only Select2 box — chips are hidden here and shown in the tray below */
.closure-status-chips-wrapper .select2-container,
.closure-status-chips-wrapper .select2-container--default {
    width: 100% !important;
    border-bottom: none !important;
    box-shadow: none !important;
}
.closure-status-chips-wrapper .select2-container--default .select2-selection--multiple {
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
    border: 1px solid #D6CFE0 !important;
    border-radius: 9px;
    padding: 0 34px 0 38px;
    background: #fff;
}
.closure-status-chips-wrapper .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--secondary-color, #622695) !important;
    box-shadow: 0 0 0 3px rgba(98, 38, 149, 0.12);
}
/* leading search icon */
.closure-status-chips-wrapper .select2-selection--multiple::before {
    content: "search";
    font-family: "Material Icons";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #9891A3;
    font-size: 20px;
    line-height: 1;
}
/* trailing caret */
.closure-status-chips-wrapper .select2-selection--multiple::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid #9891A3;
    border-bottom: 2px solid #9891A3;
    transform: translateY(-70%) rotate(45deg);
}
.closure-status-chips-wrapper .select2-selection__choice { display: none !important; }
/* The in-box chip list is a flex sibling of the search field and was eating half the box's
   width, pushing the cursor to the center. Chips render in the external tray, so collapse it
   entirely and let the search field own the full row from the left. */
.closure-status-chips-wrapper .select2-selection__rendered {
    display: none !important;
}
.closure-status-chips-wrapper .select2-search.select2-search--inline {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    text-align: left !important;
}
.closure-status-chips-wrapper .select2-search__field,
.closure-status-chips-wrapper .select2-search__field:focus {
    width: 100% !important;
    height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 24px !important;
    font-size: 14px;
    /* input inherits text-align:center from an ancestor — force cursor/placeholder to the left */
    text-align: left !important;
    direction: ltr !important;
    /* Materialize adds a bottom underline + focus box-shadow to type=search inputs — kill it here */
    border: 0 none !important;
    border-bottom: 0 none !important;
    box-shadow: none !important;
    outline: none !important;
    background-color: transparent !important;
    -webkit-box-shadow: none !important;
    box-sizing: border-box !important;
}
/* placeholder select2 renders as a span when nothing is selected — keep it left too */
.closure-status-chips-wrapper .select2-search__field::placeholder { text-align: left !important; }
.closure-status-chips-wrapper .select2-selection__placeholder { text-align: left !important; }

/* Tray holding the selected statuses, below the search box */
.selected-closure-statuses {
    margin-top: 12px;
    border: 1px dashed #D6CFE0;
    border-radius: 10px;
    background: #FCFBFE;
    padding: 12px;
    min-height: 58px;
    max-height: 168px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
    text-align: left;
}
.selected-closure-statuses::-webkit-scrollbar { width: 8px; }
.selected-closure-statuses::-webkit-scrollbar-thumb {
    background: #DBD5E4;
    border-radius: 6px;
}
.selected-closure-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    background: var(--secondary-color, #622695);
    color: #fff;
    border-radius: 8px;
    padding: 6px 6px 6px 11px;
    font-size: 13px;
    line-height: 20px;
}
.selected-closure-status-chip .chip-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 320px;
}
.selected-closure-status-chip .chip-remove {
    font-size: 16px;
    cursor: pointer;
    color: #fff;
    border-radius: 5px;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
}
.selected-closure-status-chip .chip-remove:hover { background: rgba(255, 255, 255, 0.22); }
.selected-closure-statuses .chips-empty {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9891A3;
    font-size: 13px;
    font-style: italic;
    text-align: center;
}

.revisitingTxt {
    font-style: italic;
}

.chatArea-2 {
    overflow: hidden !important;
    transition: height 0.1s ease-out 0s;
}

.closeRevisiting {
    top: 4px;
    position: absolute;
}

.revisitingCol1 {
    margin-left: -28px !important;
    position: relative;
    top: -4px;
}

.revisitingCol2 {
    margin-left: 20px !important;
}

.revisitWidth {
    width: 280px !important;
}

.revisitingInfo {
    min-width: 300px;
    max-width: 350px;
    margin-right: 50px;
}

.col .row2 {
    /* margin-right: -.75rem; */
    margin-left: -.75rem;
    /* margin-right: -28px; */
}

.scroll-list {
    overflow-y: auto;
    height: 95vh;
    padding: 30px 0px;
}

.brightnessNotify {
    position: absolute;
    right: 74%;
    font-size: 21px;
}

.checkNotify {
    position: absolute;
    right: 74%;
}

.notificationsIcon {
    position: absolute;
    left: 19px;
    margin-right: 5px;
    font-size: 20px;
}

.unReadCountIcon {
    text-align: center;
    font-size: medium;
    width: max-content;
    margin-left: 15px;
    padding-left: 20px;
    height: 36%;
}

.note {
    background: #fff5c4f2 !important;
}

.closureNote {
    background: rgb(221, 156, 156) !important;
    color: white !important;

}

.closureNote span.time-message * {
    color: black !important;
}

.page-content-auto-scroll-83 {
    max-height: 83vh;
    overflow: auto;
}

.revisitingInfo {
    min-width: 300px;
    max-width: 350px;
    margin-right: 50px;
}

.white-space-normal {
    white-space: normal;
}

.fixed-alert-right {
    position: fixed;
    right: 10px;
    z-index: 999;
}

.text-red {
    color: #ff5252 !important;
}

.centeral-alert {
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0 20px;
    box-shadow: rgb(0 0 0 / 35%) 0px 5px 15px;
    width: 38vw;
    margin: auto;
    position: fixed;
    left: 0;
    z-index: 99999;
    right: 0;
}

.floating-div {
    position: sticky;
    top: 10px;
    left: 10px;
    width: 175px;
    z-index: 99999 !important;
    opacity: 65%;
}

.floating-div:hover {
    opacity: 100%;
}

.floating-div a {
    margin-top: 10px !important;
    min-width: 175px !important;
}

.floating-div a.disabled {
    background-color: #ccc;
    opacity: 0.7;
}

.phone-call-actions-box {
    display: flex;
    width: 100%;
    min-height: 12.5rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #adb5bd;
    opacity: 100%;
    border-radius: 1rem;
    padding-bottom: 0.625rem;
}

.phone-call-action-row {
    width: 95%;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.phone-call-action-row .action-button {
    background: white;
    border: none;
    border-radius: 50%;
    width: 4.0625rem;
    height: 4.0625rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.125rem 0.3125rem rgba(0,0,0,0.1);
    cursor: pointer;
}

.phone-call-action-row .action-button .button-icon {
    font-size: 1.875rem;
    margin-bottom: 0.3125rem;
}

.phone-call-action-row .action-button .button-label {
    font-size: 0.625rem;
    color: #333;
}

.phone-call-action-row .action-button.decline {
    background: #f44336;
    color: white;
}

.phone-call-action-row .action-button.answer {
    background: #4CAF50;
    color: white;
}

/* Make primary call actions readable on colored buttons */
.phone-call-action-row .action-button.decline .button-label,
.phone-call-action-row .action-button.answer .button-label {
    color: #fff;
    font-weight: 600;
}

/* Keypad styles */
.keypad-container {
    width: 100%;
    margin-bottom: 0.3125rem;
    background-color: #dee2e6;
    padding: 0.5rem;
    border-radius: 1rem;
}

.keypad-readout:focus {
    outline: 2px solid #8e44ad;
    outline-offset: 2px;
}

.keypad-readout {
    min-height: 1.5rem;
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
    font-size: 1.1rem;
    font-family: monospace;
    letter-spacing: 0.0625rem;
    text-align: center;
    color: #333;
    word-break: break-all;
}

.keypad-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.keypad-button {
    width: 3.125rem;
    height: 3.125rem;
    border-radius: 50%;
    border: none;
    background: white;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0.125rem 0.1875rem rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.keypad-button:hover {
    background: #e0e0e0;
}

.keypad-button:active {
    transform: scale(0.95);
}

#dialerModal .keypad-button.active {
    background-color: var(--secondary-color, #622695);
    color: #fff;
    transform: scale(0.95);
}

/* Dial pad icon in the interaction list header (templates/dialer_icon.html) */
.dialer-open-icon {
    height: 36px;
}

.modal.dialer-modal {
    width: 320px;
    max-width: 90%;
}

#dialerModal .modal-content h5 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

#dialerModal .input-field {
    margin-top: 0;
}

#dialerModal .modal-content {
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    position: relative;
}

#dialerModal .dialer-close-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dialerModal .dialer-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-radius: 0.75rem;
    border: 0.125rem solid transparent;
}

#dialerModal .dialer-input-wrap.has-value {
    border-color: var(--secondary-color, #622695);
    background-color: #f4ebfb;
}

#dialerModal .dialer-input-wrap input#dialerNumber {
    box-sizing: border-box;
    width: 100%;
    height: 2.75rem;
    line-height: 2.75rem;
    margin: 0;
    font-weight: 700;
    padding-left: 0.75rem;
    padding-right: 2rem;
    border: none !important;
    box-shadow: none !important;
    background: transparent;
}

#dialerModal .dialer-backspace-inline {
    position: absolute;
    right: 0.375rem;
    top: 50%;
    transform: translateY(-50%);
    box-sizing: border-box;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    margin: 0;
    line-height: 1;
    border: none;
    border-radius: 0.25rem;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
}

#dialerModal .dialer-backspace-inline .material-icons {
    font-size: 1.25rem;
    line-height: 1;
    margin: 0;
}

#dialerModal .modal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* The route menu opens upward from the call button: below it the modal ends
   and its overflow would clip the menu. */
#dialerModal .dialer-route-menu {
    right: auto;
    left: 50%;
    bottom: 100%;
    margin-top: 0;
    transform: translateX(-50%);
}

.clear-button {
    width: 100%;
    border-radius: 1.5625rem;
    background: #f5f5f5;
    color: #333;
}

/* Materialize's generic `button:focus` rule (background: #ff548e) otherwise
   wins over the plain .keypad-button class once a click leaves the button
   focused, making the click-flash color look "stuck" instead of transient. */
#dialerModal .keypad-button:focus {
    outline: none;
}

#dialerModal .keypad-button:focus:not(.active) {
    background-color: white;
}

.justify-text-left {
    text-align: justify;
    text-align-last: left;
}

.arabic .justify-text-left {
    text-align: justify;
    text-align-last: right;
}

.record-player-container audio::-webkit-media-controls-panel {
    padding: 0;
}

.record-player-container audio::-webkit-media-controls-timeline {
    padding: 0;
}

.record-player-container audio::-webkit-media-controls-enclosure {
    background: none;
}

.convesration-status>.green {
    background-color: #009688 !important;
}

.convesration-status>.red {
    background-color: #FF5252 !important;
}

/* #shift {
    height: 50% !important;
}

*/

.mw-100 {
    max-width: 100% !important;
}

.mh-100 {
    max-height: 100% !important;
}

.automation-tabs {
    display: flex !important;
    justify-content: space-between !important;
}

.automation-tabs .tab {
    text-transform: none !important;
}

.edit-icon {
    cursor: pointer !important;
}

.overflow-y-hidden {
    overflow-x: hidden !important;
}

#searchBar {
    position: sticky;
    top: 0;
    background-color: #fff;
    padding: 0 14px;
    color: var(--primary-color) !important;
}

.textarea-proced {
    height: 0 !important;
    max-height: 0 !important;
}

.option-procedure {
    display: inline-block !important;
}

.mouse-click-pointer {
    cursor: pointer !important;
}

.mouse-click-pointer-img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
}

/************************* Start Voice Note *******************************/
.recording-contorl-buttons-container {
    margin-right: auto;
    display: none;
    justify-content: space-between;
    align-items: center;
    transition: all 0.8s;
}

#chatInput {
    overflow-y: auto !important;
    transition: width 0.8s;
    width: 100%;
    max-height: 12rem;
}

#recordBtn {
    margin: 0 0 0 4px !important; /* Reduced margin to be closer to text box */
    cursor: pointer;
}

.chat-input {
    overflow: visible !important; /* Allow dropdowns/overlays to show outside */
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.chat-box-cont {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto !important; /* Override fixed width */
    flex: 1 !important; /* Fill available space to push up against icons */
}

.chat-application .app-chat .chat-content .chat-content-area .chat-footer {
    width: calc(100% + 2rem) !important; /* Force width to cover both sides' padding */
    margin-left: -1rem !important; /* Shift left to cover left padding */
    margin-right: -1rem !important; /* Pull right to cover right padding */
    padding: 0 !important;
    padding-left: 1rem !important; /* Keep content aligned with the rest of the chat */
    padding-top: 0.625rem !important;
    padding-right: 1rem !important; /* Keep content aligned with the rest of the chat */
    position: sticky !important;
    bottom: 0;
    z-index: 99999 !important;
    margin-top: auto; /* Push to bottom when chat content is short */
    background: inherit  !important; /* Block messages from showing through when scrolling behind */
    border-top: 0.5px solid #e0e0e0; /* FIX 1: visual separation from message list */
    box-shadow: 0 -1px 7px rgba(0, 0, 0, 0.04); /* Subtle external shadow for elevation */
}

.chat-ai-assistant-overlay {
    position: relative; /* Sit in flow, above input */
    margin-bottom: 15px; /* Increased space between overlay and chat box */
    padding-left: 10px; /* Align with text start */
    padding-right: 10px;
    text-align: left !important; /* Prevent justification spacing issues */
    word-spacing: normal !important;
    letter-spacing: normal !important; /* Reset letter spacing */
}

/* Button Pills — mutually exclusive Quick Reply / AI Co-Pilot toggle */
.btn-pill {
    border-radius: 50px !important;
    padding: 5px 15px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    cursor: pointer !important; /* always clickable */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease-in-out !important;
    height: 30px !important;
    line-height: normal !important;
    white-space: nowrap !important;
    min-width: 120px !important;
}

/* ACTIVE state — primary bg, white text, full opacity */
.btn-pill.btn-pill-active {
    background: var(--primary-color) !important;
    color: #fff !important;
    border: 1.5px solid var(--primary-color) !important;
    opacity: 1 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15) !important;
}

/* DIMMED state — white bg, grey text, light border, half opacity */
.btn-pill.btn-pill-dimmed {
    background: #fff !important;
    color: #7f7f7f !important;
    border: 1.5px solid #e0e0e0 !important;
    opacity: 0.5 !important;
    box-shadow: none !important;
}




#dropdown2 li > a, 
#dropdown2 li > span {
    color: #333 !important; /* RoboDesk dark grey */
    font-size: 14px !important;
    padding: 10px 16px !important;
}

#dropdown2 li > a:hover, 
#dropdown2 li > span:hover {
     /* RoboDesk Blue on hover */

    background-color: #f5f5f5 !important;
}

/* Quick Reply Search Bar Specifics */
#dropdown2 .modern-chat-box-dropdown {
    background-color: #f5f5f5;
    border-radius: 20px;
    padding: 6px 14px;
    margin: 10px 12px !important;
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    max-height: 50px;
}

#dropdown2 .modern-chat-box-dropdown:focus-within {
    border-color: var(--primary-color);
}

#dropdown2 input#searchBar {
    height: 28px !important;
    min-height: 28px !important;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 13px !important;
    color: #333 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
}

#dropdown2 input#searchBar:focus {
    color: #333 !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

#dropdown2 input#searchBar::placeholder {
    color: #aaa !important;
    font-size: 13px;
}

.chat-input i {
    font-size: 2.2rem !important;
}

.elapsed-time {
    font-size: 1.5rem !important;
}

.audio-element {
    margin-right: .625rem;
}


/************************* End Voice Note *******************************/

.modern-chat-box {
    background-color: #fff !important;
    border: 1.5px solid #c4aff0 !important; /* FIX 4: soft purple border for branded input field */
    border-radius: 24px !important;
    padding: 0px 6px !important;
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 8px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    min-height: 32px !important;
    transition: border-color 0.2s, box-shadow 0.2s; /* FIX 4: smooth focus glow transition */
    position: relative !important;
}

.chat-input-row {
    display: flex;
    align-items: flex-end;
    width: 100%;
    padding-bottom: 4px;
}

.chat-reply-preview {
    width: 100%;
    padding: 6px 6px 6px 6px;
}

.chat-reply-preview .message-reply-on i.material-icons {
    font-size: 18px !important;
    color: #888;
    flex-shrink: 0;
}

.modern-chat-box:focus-within {
    border-color: #5b1fcc !important; /* FIX 4: deep purple border on focus */
    box-shadow: 0 0 0 3px rgba(91, 31, 204, 0.12) !important; /* FIX 4: purple glow ring on focus */
}

.modern-chat-box textarea,
.modern-chat-box input {
    border-bottom: none !important; /* Remove underline for inputs too */
    background: transparent !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 10px 8px 4px 8px !important; /* increased top padding to push text down */
    flex-grow: 1 !important;
    /* Removed height: auto !important to allow JS resize */
    min-height: 20px !important;
    resize: none !important;
    line-height: 1.4 !important;
    overflow-y: hidden !important; /* Hide scrollbar for smooth auto-expand */
}

.modern-chat-box .favorite, 
.modern-chat-box .emoji-picker-container-trigger {
    display: flex !important;
    align-items: center !important;
}

.modern-chat-box i.material-icons {
    font-size: 1.8rem !important;
    color: #757575 !important;
    margin: 0 5px !important;
}

.blue-send-btn {
    margin: 0 0 0 4px !important; /* Reduced margin to be closer to text box */
}

.modern-chat-box .blue-send-btn i,
.blue-send-btn i {
    color: var(--primary-color) !important; /* Dark blue by default, visible immediately */
    font-size: 1.8rem !important; /* Match other icons size */
    cursor: pointer;
}

.blue-send-btn:hover i {
    color: #1565c0 !important; /* Even darker on hover */
}

.flip-rtl {
    transform: scaleX(-1);
    display: inline-block;
}

.mic-btn-modern {
    color: #757575 !important;
}

.mic-btn-modern i {
    font-size: 2.4rem !important;
}

/************************* category page *******************************/
.category-page-height {
    /*52 pixel represents the toolbar heoght*/
    height: calc(100vh - 52px);
}

.category-page-list-wrapper {
    height: 100%;
}

/*always take 80% from the available height*/


.category-page-list-container-content {
    width: 100%;
}

/*container scroll style <smooth> */
.category-page-height ::-webkit-scrollbar {
    width: 4px;
    overflow-y: auto;
    background-color: transparent;
    display: none;
    /* box-shadow: inset 0 0 4px #707070; */
}



/*container scroll style <smooth> */
.category-page-height ::-webkit-scrollbar-thumb {
    background-color: #47349f;
    border-radius: 10px;
}

/************************* End category page *******************************/

/************************* Article pages *******************************/

.article-view-page-list-wrapper {
    min-height: calc(100vh - 152px);
    background-color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 0.8rem;
}

.article-view-page-list-wrapper img {
    border-radius: 0.4rem;
    box-shadow: 1px 6px 13px 0px rgba(0, 0, 0, 0.75);
    -webkit-box-shadow: 1px 6px 13px 0px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 1px 6px 13px 0px rgba(0, 0, 0, 0.75);
    transition: all 0.2s ease-in-out;
}

.article-view-page-list-wrapper img:hover {
    transform: scale(1.01);
    cursor: pointer;
}


/* 
[class^="mce"] {
    min-width: 300px !important;   
} */

.rich-content-wrapper {
    background-color: #fff;
    border-radius: 0.6rem;
    padding: 0.8rem;
}


.chips.invalid {
    border-bottom: 1px solid #f44336 !important;
    -webkit-box-shadow: 0 1px 0 0 #f44336 !important;
    box-shadow: 0 1px 0 0 #f44336 !important;
}

.chips.valid {
    border-bottom: 1px solid #26a69a !important;
    -webkit-box-shadow: 0 1px 0 0 #26a69a !important;
    box-shadow: 0 1px 0 0 #26a69a !important;
}

/************************* Article edit and create *******************************/
/*Warning don't remove this style, as it's fix for TinyMCE conflict with MaterializeCss*/
input.mce-textbox {
    width: auto;
    background: #fff;
    border: 1px solid #c5c5c5;
    display: inline-block;
    -webkit-transition: border linear .2s, box-shadow linear .2s;
    transition: border linear .2s, box-shadow linear .2s;
    height: 28px;
    resize: none;
    padding: 0 4px 0 4px;
    white-space: pre-wrap;
    white-space: pre;
    color: #333;
}

.select2-container--default .select2-selection--multiple,
.select2-container--default .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    height: 46px;
    border: none;
    border-bottom: unset;
    border-radius: 0;
    outline: 0;
}

.select2-container--default.valid {
    height: 46px;
    border: none;
    border-bottom: 1px solid #26a69a !important;
    -webkit-box-shadow: 0 1px 0 0 #26a69a !important;
    box-shadow: 0 1px 0 0 #26a69a !important;
    border-radius: 0;
    outline: 0;
}

.select2-container--default {
    height: auto;
    border: none;
    border-bottom: 1px solid #9e9e9e !important;
    border-radius: 0;
    outline: 0;
}

.select2-container--default.invalid {
    height: 46px;
    border: none;
    border-bottom: 1px solid #f44336 !important;
    -webkit-box-shadow: 0 1px 0 0 #f44336 !important;
    box-shadow: 0 1px 0 0 #f44336 !important;
    border-radius: 0;
    outline: 0;
}

.filter-collapsible i {
    font-size: 1.6rem;
    display: inline-block;
    width: 2rem;
    margin-right: unset;
    text-align: center;
}

.filter-collapsible a {
    margin: 0 0.5rem;
}

.collapse-article-list-body,
.collapse-article-list-header {
    background-color: #fff !important;
}

.article-add-verticle-align {
    margin: 0.8rem 0 0 0;
}

.LTRStyle {
    display: none;
}

/************************* End Article page *******************************/
/************************* Realtime page *******************************/
.customSelectBorder {
    margin: -14px 0px;
}

.customSelectBorder .select-wrapper .select-dropdown {
    border-bottom: 1px solid transparent;
    margin-top: 5px;
}

.customSelectBorder .select-wrapper .caret {
    display: none;
}

.customSelectBorder.addBottomBorder .select-wrapper .select-dropdown {
    border-bottom: 1px solid #9e9e9e;
    margin-top: 5px;
}

.customSelectBorder.addBottomBorder .select-wrapper .caret {
    display: block;
}

/************************* End Realtime page *******************************/
.page-knowledge .multiple-select-dropdown {
    z-index: 1000000;
    position: relative;
}

.custom-font .mce-panel {
    border: none !important;
}

.custom-font .attachments-container {
    border-top: 1px dashed var(--primary-color);
}

.custom-font textarea {
    border: none;
    resize: none;
}

.h5 {
    font-size: 1.64rem;
}


.page-knowledge .dropdown-content.select-dropdown {
    z-index: 1000000;
    position: relative;
    /* height: 200px; */
}

#replaceModel .dropdown-content.select-dropdown {
    position: absolute;
}

.page-automation .autocomplete-content.dropdown-content li img {
    display: none;
}

.page-automation .autocomplete-content.dropdown-content {
    position: relative;
}


.page-automation #addAction textarea.materialize-textarea.auto-resize {
    min-height: 3rem;
    overflow-y: hidden;
}

.article-page .fixed-action-btn {
    bottom: 40px;
}

.step-error {
    box-shadow: 0px 0px 6px 0px #ff1493d4 !important;
    border: 1px solid #ff1493 !important;
}

.shifts-page .custom-border-bottom-4 {
    border-bottom: 4px solid #eceff1;
}

.shifts-page .custom-icon-size {
    font-size: 1.8rem;
}

div.col span.conv-contact-blur,
div.col.s7 p.conv-contact-blur,
div.row.m-0.width-100 div.col.s7 p.conv-contact-blur,
span.col.s3.truncate span span.conv-contact-blur {
    color: transparent !important;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5) !important;
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    -o-user-select: none !important;
    user-select: none !important;
    pointer-events: none;
}

.spacer {
    flex-grow: 1;
}

.width-fit-content {
    width: fit-content !important;
}

.eye-icon-fix {
    margin: 0 0 8px 10px;
}

.unread-conversation {
    background-color: rgb(236, 236, 236);
}

.attachment-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    overflow-x: auto;
    white-space: nowrap;
    background-color: #838383d1;
    padding: 7px;
}

.attachment {
    margin-top: 8px;
    margin-bottom: 8px;
    display: inline-block;
    margin-right: 10px;
    width: 50px;
    height: 50px;
    overflow: hidden;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.attachment img,
.attachment iframe,
.attachment audio,
.attachment video {
    width: 100%;
    max-height: 240px !important;
    margin-right: 10px;
}

.displayedAttachment iframe,
.attachment iframe,
.displayedAttachment audio,
.attachment audio,
.displayedAttachment video,
.attachment video {
    height: 100%;
}

.smallDiv img,
.smallDiv iframe,
.smallDiv audio,
.smallDiv video {
    height: 100% !important;
    margin: auto !important;
}

.audioHandle {
    margin-top: 50px;
    margin-bottom: 50px;
}

.videoHandle {
    max-height: 240px !important;
    margin-top: -3rem;
    margin-bottom: -0.5rem;
}

.attach-footer {
    margin: auto;
    width: 97%;
}

.displayedAttachment {
    min-height: 260px;
    width: 100%;
    bottom: 10rem;
    text-align: center;
    background-color: rgba(0, 0, 0, 0);
    padding: 10px;
    column-rule-width: thin;
    height: 100%;
}

.displayedAttachment img {
    margin-top: -2rem;
    margin-bottom: -2rem;
    max-height: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

.close-button {
    font-size: 14px;
    position: absolute;
    top: 3%;
    right: 19%;
    width: 12%;
    height: 10%;
    cursor: pointer;
    color: #ff0101;
    text-align: center;
    z-index: 999;
}

.close-button:hover {
    color: #010000;
}

.createManualTicket {
    overflow: visible !important;
}

.createManualTicket .render-wrap-container {
    background-color: #f3f3f3;
    border: 1px solid #eeeeee !important;
    border-radius: 8px;
    padding: 16px 20px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 24px !important;
    animation: workflow-slide-down 0.2s ease forwards;
}

@keyframes workflow-slide-down {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.createManualTicket .workflow-selection-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-end;
}

.createManualTicket .workflow-selection-row > .input-field {
    margin: 0;
}

.createManualTicket .workflow-selection-row > .btn-wrap {
    flex-shrink: 0;
}

.createManualTicket .loaded-workflow-metadata label {
    font-size: 0.85rem;
    color: #9e9e9e;
}

.createManualTicket .loaded-workflow-metadata .muted-text {
    color: #616161;
    font-size: 1rem;
    margin-top: 4px;
    line-height: 1.5;
}

.testclass {
    height: calc(100% - 147px) !important;
}


#qrCodeModal {
    text-align: center;
    width: max-content;
    padding: 0 3rem;
}

#qrcodeRenderDiv {
    display: flex;
    justify-content: center;
}

#doughnutChart {
    margin-bottom: 0.8rem;
    margin-top: 0.8rem;
}

.agent_score_wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 180px;
    margin: 1rem;
    padding-right: 2rem;
    border-radius: 0.5rem;
}

.agent_score_wrapper>* {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.agent_score_center {
    flex-direction: column;
}

.agent_score_center .agent_total_issues {
    height: 200px;
    width: 200px;
    background-color: #40389F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent_score_center .agent_total_issues>* {
    font-weight: bold;
    /* Make the text bold if desired */
    color: #FC6585;
    /* Set the text color */
    padding: 10px 20px;
    /* Add padding for better visual appearance */
    border-radius: 8px;
    /* Optional: Add rounded corners */
    font-size: 5rem;
}


.qc-form-title-container,
.ticket-form-title-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.qc-form-title-container .qc-form-close {
    height: 30px;
    width: 30px;
    background-color: grey;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.qc-form-title-container .qc-form-close>* {
    color: #fff;

}

.qc-form-navigate-to {
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: start;
}

.row.unset-margin .col.s6 {
    margin: unset;
}

.h-5rem {
    height: 5rem;
}

.flex-dir-col {
    flex-direction: column;
}

.flex-1 {
    flex: 1;
}

.select2-selection--multiple {
    overflow: hidden !important;
    height: auto !important;
}

#responsiveAgentSelect>.select2 {
    height: auto !important;
}

.atricle-list-page .select2 {
    height: auto !important;
}

.disclaimer-header-flex {
    grid-column-gap: 0.7rem;
    align-items: center
}

.modal-center-custom {
    top: 33% !important
}

.fontSize-1_2 {
    font-size: 1.1rem;
}

.selected-reactions {
    user-select: none;
    bottom: -10px;
}

.emoji-picker {
    position: absolute;
    bottom: 62px;
    z-index: 999;
    left: 0px;
}

.picker {
    z-index: 999;
}

.show-emoji-icon {
    font-family: 'Noto Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'sans-serif';
}

.border-shadow {
    border: 1px solid rgb(235, 235, 235);
    height: fit-content;
    padding: 2rem;

}

.template-editor .toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px dashed #d1d1d1;
}

.counter-class {
    position: absolute;
    bottom: 2px;
    right: 15px;
}

.btn-body,
.btn-toolbar {
    flex: 0 1 auto;
    min-width: 50px;
    padding: 8px 12px;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #d3d3d3;
    border-radius: 6px;
    background-color: #c0ccda;
    color: #f9fafc;
    height: 40px;
}

.btn-body {
    pointer-events: none;
}

.btn-toolbar {
    background-color: #fafafa;
    color: #333;
    cursor: pointer;
}

.btn-toolbar:focus,
.btn-toolbar:active {
    background-color: #eff2f7;
    color: #333;
    outline: none;
    box-shadow: none;
}

.toolbar {
    display: flex;
    gap: 35px;
    margin-bottom: 10px;
}

.template-editor {
    border-radius: 5px;
    border: 2px dashed #d1d1d1;
    border-bottom: 2px dashed #d1d1d1;
    width: 100%;
    max-width: 100%;
}

.status-synced {
    background-color: rgba(32, 175, 90, 0.2);
    color: rgba(32, 171, 90, 1);
    padding: 5px;
    border-radius: 3px;
}

.status-default {
    background-color: red;
    color: white;
    padding: 5px;
    border-radius: 3px;
}

.lang-default {
    background-color: rgba(32, 175, 90, 1);
    color: white;
    border-radius: 16px;
    width: auto;
    padding: 0.4rem 1rem;
}

.lang-error {
    background-color: red;
    color: white;
    border-radius: 16px;
    width: auto;
    padding: 0.4rem 1rem;
}

.tooltip {
    position: absolute;
    background-color: #333;
    color: white;
    padding: 10px;
    border-radius: 5px;
    width: 300px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-size: 14px;
    right: 0;
}

.tooltip a {
    color: #ef6d4e;
    text-decoration: underline;
}

.tooltip p {
    margin: 0 0 10px 0;
}

.status-default {
    cursor: pointer;
    position: relative;
}

.tooltip::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 20px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
}

.template_body_style strong {
    font-weight: bold !important;
    font-size: 21px;
}

.template_body_style em {
    font-style: italic !important;
}

.template_body_style del {
    text-decoration: line-through !important;
}

.template_body_style small code {
    font-size: 1.2em;
    /* Smaller font size for inline code */
    color: #666;
}

.preview-view-contact{
    background-color: #67228A;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-timeline-container {
    position: relative;
    margin: 50px;
    width: 70%;

}

/* Vertical white line */
.preview-timeline-container .timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #fff;
    z-index: 1;
}
/* Vertical white line */
.preview-timeline-container.timeline-position .timeline-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #ffffff;
    z-index: 1;
}
/* Circle Icon */
.preview-timeline-container.timeline-position .timeline-icon {
    position: absolute;
    left: 0;
    top: -16px;
    transform: translateX(-50%);
    z-index: 2;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.preview-timeline-container.timeline-position .timeline-content-new-style {
   width: 100%;
}
.preview-timeline-container.timeline-position .timeline-content-new-style > p {
   margin: 0 0 0 30px;
}
.preview-timeline-container .timeline-content {
    max-height: 11.7rem;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-left: 30px;
    width: 30rem;
    padding: 15px;
    border-radius: 6px;
    background-color: white;
}
/* Timeline event wrapper */
.preview-timeline-container .timeline-event {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

/* Circle Icon */
.preview-timeline-container .timeline-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-timeline-container .timeline-icon>i {
    overflow: hidden;
    border-radius: 50%;
    padding: 5px;
}

.preview-timeline-container .timeline-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 5px;
}

.preview-timeline-container .timeline-time {
    font-size: 0.9rem;
    color: rgb(0, 0, 0);
}
/* Triangle on the Top-Left Border */
.preview-timeline-container .timeline-content .triangle {
    position: absolute;
    top: -5px;
    left: -17px;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-bottom: 25px solid rgb(255, 255, 255);
    transform: rotate(290deg);
}
/* Triangle on the Top-Left Border */
.mini-crm-timeline-container .timeline-content .triangle {
    position: absolute;
    top: -5px;
    left: -17px;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-bottom: 25px solid rgb(239, 239, 239);
    transform: rotate(300deg);
}
.message-box-head.d-flex.gapping{
    gap: 2px;
}
.input-field.gapping {
    gap: 15px;
}
.message-box-head.d-flex, .message-box-footer.d-flex {
  align-items: center; /* Vertically align the status and labels */
  justify-content: space-between;
  gap: 10px; /* Add spacing between the status and labels */
}
.input-field.flex-row.interactions-new-style {
    justify-content: space-evenly;
}
.preview-timeline-container.timeline-position .timeline-agent{
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    display: inline-block;
    vertical-align: middle;
}
.preview-timeline-container.timeline-position .timeline-unique{
    font-size: 14px;
}
.preview-timeline-container.timeline-position .timeline-status{
    font-size: 14px;
    font-weight: bold;
    margin: 0 5px 0 0;
    text-align: left;
    width: 100%;
}
.preview-timeline-container.timeline-position .timeline-label{
  font-size: 14px;
  max-width: fit-content; /* Limit the width to the container */
  text-overflow: ellipsis; /* Apply ellipsis to each chip */
  overflow: hidden; /* Hide overflow content in the chip */
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
}

/* If you want the content to still be scrollable but without showing the scrollbar */
.hide-scroll-bar-scrollable {
  overflow: auto; /* Allow scrolling */
  scrollbar-width: none; /* Firefox */
}

/* Chrome, Edge, Safari */
.hide-scroll-bar-scrollable::-webkit-scrollbar {
  display: none; /* Hide the scrollbar */
}

.mini-crm-toggle-collapse {
    padding: 0 20px 0;
    margin: 0;
}
.mini-crm-toggle-collapse i {
    font-size: 2rem !important;
}
.width-5 {
    width: 5% !important;
}
.clickable-icon {
  cursor: pointer;
  transition: color 0.3s ease; /* Optional: Smooth hover effect */
}
.overflow-hidden {
  overflow: hidden;
}
.preview-timeline-container .labels {
  display: flex; /* Align the labels horizontally */
  flex-wrap: wrap; /* Prevent wrapping to the next line */
  overflow: hidden; /* Hide overflow content */
  white-space: nowrap; /* Prevent text from wrapping */
  text-overflow: ellipsis; /* Add ellipsis when overflow occurs */
  width: 100%;
  justify-content: end;
  align-items: center;
}
.mini-crm-timeline-container .labels {
  display: flex; /* Align the labels horizontally */
}
.mini-crm-timeline-container {
    position: relative;
    margin: 50px auto;
    width: 70%;
}

.labels .chip {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px; /* Adjust based on your design */
  display: inline-block; /* Ensures proper ellipsis rendering */
  vertical-align: middle; /* Align with other elements if necessary */
}

/* Vertical white line */
.mini-crm-timeline-container .timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #fff;
    z-index: 1;
}
/* Vertical white line */
.mini-crm-timeline-container.timeline-position .timeline-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #e4e4e4;
    z-index: 1;
}

/* Timeline event wrapper */
.mini-crm-timeline-container .timeline-event {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

/* Circle Icon */
.mini-crm-timeline-container .timeline-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
/* Circle Icon */
.mini-crm-timeline-container.timeline-position .timeline-icon {
    position: absolute;
    left: 0;
    top: -16px;
    transform: translateX(-50%);
    z-index: 2;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.mini-crm-timeline-container.timeline-position .timeline-content-new-style {
   width: 100%;
}
.mini-crm-timeline-container.timeline-position .timeline-content-new-style > p {
   margin: 0 0 0 30px;
}

.mini-crm-timeline-container .timeline-icon>i {
    overflow: hidden;
    border-radius: 50%;
    padding: 5px;
}
/* Left-aligned content */
.mini-crm-timeline-container.timeline-position .timeline-content {
    background-color: rgb(239, 239, 239);
    border-radius: 6px;
    padding: 15px;
    width: 16rem;
    margin-left: 30px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: right;
}

.mini-crm-timeline-container .timeline-right .timeline-content .change-style {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    box-shadow: none;
    gap: 10px;
    width: 100%;
}

.mini-crm-timeline-container .timeline-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 5px;
}

.mini-crm-timeline-container .timeline-time {
    font-size: 0.9rem;
    color: gray;
}
.mini-crm-timeline-container.timeline-position .timeline-agent{
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    display: inline-block;
    vertical-align: middle;
}
.mini-crm-timeline-container.timeline-position .timeline-unique{
    font-size: 14px;
}
.mini-crm-timeline-container.timeline-position .timeline-status{
    font-size: 14px;
    font-weight: bold;
    margin: 0 5px 0 0;
    text-align: left;
    width: 100%;
}
.mini-crm-timeline-container.timeline-position .timeline-label{
  font-size: 14px;
  max-width: fit-content; /* Limit the width to the container */
  text-overflow: ellipsis; /* Apply ellipsis to each chip */
  overflow: hidden; /* Hide overflow content in the chip */
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
}

/* AI Summary Collapsible Section */
.ai-summary-section {
    margin-bottom: 16px;
}

.ai-summary-header {
    cursor: pointer;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: #fafafa;
    transition: background-color 0.2s ease;
}

.ai-summary-header:hover {
    background-color: #f0f0f0;
}

.ai-summary-header-text {
    font-weight: 500;
    color: #424242;
    font-size: 13px;
    display: flex;
    align-items: center;
}


.ai-summary-chevron {
    transition: transform 0.3s ease;
    color: #757575;
    font-size: 18px;
}

.ai-summary-content {
    padding: 12px;
    margin-bottom: 12px;
    border-left: 3px solid var(--primary-color);
    background-color: #ffffff;
    border-radius: 4px;
}

.ai-summary-text {
    white-space: pre-wrap;
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #616161;
}

.ai-summary-no-data {
    margin: 0;
    font-size: 13px;
    font-style: italic;
    color: #9e9e9e;
}

.ai-summary-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #757575;
    font-size: 13px;
}

.ai-summary-loading .preloader-wrapper {
    width: 20px;
    height: 20px;
}

/**** Aside Collapsed ****/
.sideNav.collapsed {
  width: 60px; /* Adjust this to the desired collapsed width */
  overflow: hidden;
}

.sideNav.collapsed ul.sidenav li a span {
  display: none; /* Hide all text elements */
}

/* .sideNav.collapsed ul.sidenav li a {
  display: flex;
  justify-content: center;
} */

.aside-collapsed-btn{
    margin: 15px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sideNav.collapsed ul.sidenav li i.material-icons {
  display: inline-block; /* Ensure icons are visible */
  /* font-size: 24px; Adjust icon size if necessary */
}

.sideNav ul.sidenav li a span {
  display: inline-block; /* Default to showing text */
}

.sideNav ul.sidenav li a i.material-icons {
  margin-right: 10px; /* Add spacing for expanded state */
}

.sidenav-trigger {
  position: absolute;
  top: 10px;
  right: 10px;
}
.sideNav.collapsed {
  width: 60px;
  overflow: hidden;
}

.sideNav.collapsed ul li .menu-title {
  display: none; /* Hide menu titles */
}
.sideNav.collapsed .collapsible-header::after {
  display: none; /* Hide menu header */
}

.sideNav.collapsed ul li a {
  justify-content: center; /* Center the icons */
}

/* .sideNav.collapsed ul li i.material-icons — removed: empty ruleset */
.main-menu-container{
    justify-content: space-between;
    align-items: center;
}
.folder-icon{
    font-size: 3rem !important;
}
ul.preview-view-contact {
    display: flex;
    flex-direction: column;
}

ul.preview-view-contact li {
    transition: all .5s linear;
    width: 100%;
    cursor: pointer;
    padding: 0 10px;
}

ul.preview-view-contact li:hover {
    background-color: ghostwhite;
    color: black !important;
}

.no-data-text {
    display: flex;
    justify-content: center;
    align-items: center;
}

p.show-more-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: underline;
    cursor: pointer;
    color: palevioletred;
}

p.show-more-btn:hover {
    text-decoration: none;
    color: black;
}


.atricle-list-page .select2-selection--multiple .select2-selection__choice {
    background-color: var(--secondary-color);
    /* Change background color of selected items */
    color: white;
    /* Change text color */
    border: 1px solid var(--secondary-color);
    /* Change border color */
}

.atricle-list-page .select2-selection--multiple .select2-selection__choice__remove {
    color: white;
    /* Change the color of the remove "x" button */
    border-right: 1px solid transparent !important
}

.articlecreatepage .select2-selection--multiple .select2-selection__choice__remove {
    color: white;
    /* Change the color of the remove "x" button */
    border-right: 1px solid transparent !important
}

.atricle-list-page .select2-selection__choice__remove:hover {
    background-color: transparent !important;
}

.articlecreatepage .select2-selection__choice__remove:hover {
    background-color: transparent !important;
}

.atricle-list-page .select2-selection__choice {
    padding-left: 15px !important;
}

.articlecreatepage .select2-selection__choice {
    padding-left: 15px !important;
}

.atricle-list-page .tag-list {
    margin-top: 10px;
}

.atricle-list-page .tag {
    display: inline-block;
    background-color: #ef6d4e;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.atricle-list-page .tag a {
    margin-left: 5px;
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.atricle-list-page .bulk-upload__hint {
    margin: 0 0 10px;
    color: #757575;
    font-size: 13px;
}

.atricle-list-page .bulk-upload__empty {
    padding: 18px;
    text-align: center;
    color: #757575;
    border: 1px dashed #bdbdbd;
    border-radius: 4px;
}

.atricle-list-page .bulk-upload__list {
    max-height: 260px;
    overflow-y: auto;
}

.atricle-list-page .bulk-upload__row {
    display: flex;
    /* the error span is flex: 0 0 100%, so without wrapping it would squeeze the
       title/description inputs on the same line down to zero width */
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 6px;
}

.atricle-list-page .bulk-upload__fields {
    display: flex;
    flex: 1;
    gap: 10px;
    min-width: 0;
}

.atricle-list-page .bulk-upload__fields input {
    width: 100%;
    margin: 0;
    height: 2rem;
}

.atricle-list-page .bulk-upload__status {
    flex: 0 0 90px;
    text-align: center;
    font-size: 12px;
    color: #757575;
}

.atricle-list-page .bulk-upload__row--done .bulk-upload__status {
    color: #2e7d32;
}

.atricle-list-page .bulk-upload__row--failed {
    border-color: #c62828;
}

.atricle-list-page .bulk-upload__error {
    flex: 0 0 100%;
    font-size: 12px;
    color: #c62828;
}

.atricle-list-page .bulk-upload__remove {
    flex: 0 0 20px;
    text-align: center;
    cursor: pointer;
    color: #757575;
}

.atricle-list-page .bulk-upload__head {
    border: 0;
    padding-bottom: 0;
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 600;
    color: #757575;
    text-transform: uppercase;
}

/* flex-basis 0 so the two labels split the row the same way the two inputs
   below them do, keeping the header aligned with its columns */
.atricle-list-page .bulk-upload__head .bulk-upload__fields > span {
    flex: 1 1 0;
    min-width: 0;
}

.atricle-list-page .bulk-upload__progress {
    float: left;
    margin-left: 20px;
    line-height: 56px;
    color: #757575;
}

.atricle-list-page .article-form {
    width: 100%;
}

.atricle-list-page .align-inputs {
    display: flex;
    justify-content: center;
    align-items: end;
}

.atricle-list-page .file-field .btn {
    background-color: var(--primary-color);
    /* Customize button color */
}

.atricle-list-page .file-field .file-path-wrapper input {
    border-bottom: 2px solid #ec407a;
    /* Customize underline */
}

.atricle-list-page .file-field .file-path-wrapper input:focus {
    border-bottom: 2px solid #ec407a;
    /* Focus color */
}

.atricle-list-page .error-message {
    color: red;
    font-size: 0.9em;
}

.atricle-list-page .card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.atricle-list-page .card-info>h6 {
    font-size: 14px;
}

.atricle-list-page .card-info>p,
.article-category,
.atricle-list-page .article-tag {
    font-size: 12px;
}

.atricle-list-page .card-content .card-title {
    font-size: 16px;
    font-weight: 900 !important;
}

.atricle-list-page .card-content em {
    background-color: #fbff00;
}

.atricle-list-page .file-field.input-field {
    display: flex;
    gap: 10px;
}
.aienabled{
    background-color: #e9e963;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
}
/** Start -> Summary ( Mini CRM + Hanlding 360 View Contact ) **/
.account.collapsed {
    background-color: #fff;
    text-align: center;
    position: fixed;
    bottom: 0;
    padding: 0.4em 0 2.2em 0;
    z-index: 999;
    width: 50px;
    margin-top: 50px;
    height: 24px;
}
.aside #slide-out > .btn {
border-radius: unset;
   display: flex;
   align-items: center;
   width: 100%;
}
aside #slide-out > .btn.collapsed {
   justify-content: center;
}
aside #slide-out > .btn.open {
justify-content: end;
}
.main-container-rtl {
    padding-left: 260px !important;
}
.main-container-ltr {
    padding-right: 260px !important;
}

.sideNav ul {
    height: 95%;
}

.force-style{
    display: block !important; width: 288.359px !important; left: 13.8281px !important; top: 118.094px !important; height: 176.125px !important; transform-origin: 0px 0px !important; opacity: 1 !important; transform: scaleX(1) scaleY(1) !important;
}

/** End -> Summary ( Mini CRM + Hanlding 360 View Contact ) **/
.rating {
    color: #a9a9a9;
    margin: 0;
    padding: 0;
}

ul.rating {
    display: inline-block;
}

.rating li {
    list-style-type: none;
    display: inline-block;
    padding: 1px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    font-size: 30px;
}

.rating .filled {
    color: red;
}

.star-rating-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    /* font-size: 30px; */
}

.message-reply-on{
    color: black;
    background-color: #543a3a38;
    border-radius: 14px;
    padding: 7px;
    width: -webkit-fill-available;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid #602aa1 !important;
}
.realtime-insights ul.dropdown-content {
    text-align: center;
    padding: 10px;
}

.realtime-insights ul.dropdown-content li {
    display: flex;
    flex-direction: column;
    margin: 5px 0;
}

.realtime-insights ul.dropdown-content input[type="text"] {
    width: 100%;
    text-align: center;
    margin-top: 5px;
    padding: 5px;
    border: 1px solid #ccc; 
    border-radius: 4px; 
    white-space: normal; 
    word-wrap: break-word; 
    word-break: break-word; 
}
.realtime-insights .settingsicon {
    gap: 10px;  /* Adjust space between icons */
    padding-top: 15px;
}

.realtime-insights .noArrows {
  appearance: none!important;
  -moz-appearance: textfield !important; /* Firefox */
  -webkit-appearance: none !important; /* Safari and Chrome */
}


.realtime-insights .noArrows::-webkit-inner-spin-button,
.realtime-insights .noArrows::-webkit-outer-spin-button {
  -webkit-appearance: none; /* Remove buttons in WebKit-based browsers */
  margin: 0;
}

#pictureModal{
    width: 95%;
    height: 95%;
}
/* Modal Image Container Styling */
.image-container {
    overflow: auto; /* Enable scrolling when the image is zoomed in */
    width: 100%; /* Full width of the modal */
    height: calc(100vh - 220px); /* Adjust for modal footer and header */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#zoomImage {
    transition: transform 0.3s ease; /* Smooth zoom transition */
    transform-origin: top left; /* Ensure zoom starts from the top-left */
    max-width: min-content;
    max-height: -webkit-fill-available;
    width : -webkit-fill-available;
    width: -moz-available;
}
.zoom-controls {
    position: absolute;
    top: 10px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.zoom-btn {
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.zoom-btn i {
    font-size: 20px;
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 11;
}

.modal-nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-nav-btn.nav-prev {
    left: 10px;
}

.modal-nav-btn.nav-next {
    right: 10px;
}

.modal-nav-btn i {
    margin: 0;
}


#dropdownCompleteStatus, #dropdownRejectedStatus {
    max-height: 20vh;
}
.actions-dropdown .dropdown-content.select-dropdown {
    top: 100% !important;
    z-index: 9 !important;
}

.loginPage #login-page{
    min-height: calc(100vh - 56.75px);
}
.page-footer {
    background-color: #25293c;
}
.footer-copyright {
    justify-content: center !important;
    align-items: center !important;
    gap: 5px;
    font-size: 16px;
    line-height: 1;
}
.ticket-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ticket-name {
    margin: 0;
    font-weight: bold;
}

#MiniCRMTicketModal {
    right: 0 !important;
    left: auto !important;
    width: 17% !important;
    height: 85vh !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-right: 3.5% !important;
    max-height: 85vh !important;
    margin-top: 1.5% !important ;
   }
#MiniCRMTicketModal + .modal-overlay {
    display: none !important;
}

.unpin {
    transform: rotate(45deg);
    color: blue;
}
.unique-style-with-unique-and-post_url{
    display: flex;
    justify-content: center;
    gap:10px;
}
.web-dropdown-menu {
    position: relative;
    display: inline-block;
}
.web-dropdown-toggle {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}
.web-dropdown-list {
    position: absolute;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}
.web-dropdown-list li {
    padding: 8px 16px;
}
.web-dropdown-list li button, .web-dropdown-list li a {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    padding: 0;
    width: 100%;
    text-align: left;
}
.web-dropdown-list li button:hover, .web-dropdown-list li a:hover  {
    text-decoration: underline;
}
.padding-widget {
    padding: 1px 17px;
}
.widget-padding-zero {
    padding: 0 !important;
}
.copy-success {
    margin: 8px;
}
.alert>.start-icon {
    margin-right: 0;
    min-width: 20px;
    text-align: center;
}

.alert>.start-icon {
    margin-right: 5px;
}

.alert-simple.alert-warning
{
  border: 1px solid #FFC107;
  background-color: #FFC107;
  color: #fff;
  transition:0.5s;
}

.warning
{
    font-size: 18px;
    color: #ffb40b;
}
.alert {
    padding: 0.5rem;
}
.alert-simple.alert-danger
{
  border: 1px solid rgba(241, 6, 6, 0.81);
  background-color: rgb(244, 67, 54);
  color: #fff;
  transition:0.5s;
}
.white-icon {
    color: white !important;
}


.danger
{
    font-size: 18px;
    color: #ff0303;
}

.alert:before {
    content: '';
    position: absolute;
    width: 0;
    height: calc(100% - 44px);
    border-left: 1px solid;
    border-right: 2px solid;
    border-bottom-right-radius: 3px;
    border-top-right-radius: 3px;
    left: 0;
    top: 50%;
    transform: translate(0,-50%);
    height: 20px;
}

.fa-times, .fa-exclamation-triangle
{
-webkit-animation: blink-1 2s infinite both;
animation: blink-1 2s infinite both;
}

.sidenav.sidenav-fixed.billing-alerts {
  margin-top: 1.5rem;
}
.alert-sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
}

@media screen and (-webkit-min-device-pixel-ratio:0) {
    .sidenav-main {
        z-index: 1 !important;
    }
}

/**
 * ----------------------------------------
 * animation blink-1
 * ----------------------------------------
 */
@-webkit-keyframes blink-1 {
  0%,
  50%,
  100% {
    opacity: 1;
  }
  25%,
  75% {
    opacity: 0;
  }
}
@keyframes blink-1 {
  0%,
  50%,
  100% {
    opacity: 1;
  }
  25%,
  75% {
    opacity: 0;
  }
}

.label-wrapper {
  flex-shrink: 0;
  min-height: 0px;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
}

.labels-container {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  min-width: 18;
  overflow: visible;
}

.labels-flex-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  width: 100%;
  min-width: 0;
}

.status-split-btn {
  display: inline-block;
}

.status-dropdown-btn {
  font-size: 10px;
  padding: 4px 8px;
  height: 26px;
  line-height: 20px; 
  min-width: 150px;
  max-width: 350px;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  cursor: default !important;
}
#dropdownCombinedStatus {
  min-width: 100px;
  max-height: 350px;
  max-width: 120px;
  overflow-y: auto;
}

#dropdownCombinedStatus .procedure-header {
  font-weight: 700;
  color: #1976d2;
  padding: 12px 16px 8px 16px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

#dropdownCombinedStatus .dropdown-subheader {
  font-weight: 600;
  color: #666;
  padding: 6px 16px 4px 24px;
  background-color: #f8f9fa;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-left: 3px solid #ddd;
}

#dropdownCombinedStatus .dropdown-header {
  font-weight: 600;
  color: #666;
  padding: 8px 16px;
  background-color: #fafafa;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#dropdownCombinedStatus .dropdown-option a {
  padding: 8px 16px 8px 32px;
  color: #333;
  display: block;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  font-size: 13px;
}

#dropdownCombinedStatus .dropdown-option:hover {
  background-color: #f0f7ff;
}

#dropdownCombinedStatus .dropdown-option:hover a {
  color: #1976d2;
  border-left-color: #1976d2;
}

#dropdownCombinedStatus li:not(.dropdown-header):not(.dropdown-subheader):not(.procedure-header):not(.dropdown-option):not(.divider) a {
  padding: 8px 16px;
  color: #333;
  display: block;
  transition: background-color 0.2s ease;
}

#dropdownCombinedStatus li:not(.dropdown-header):not(.dropdown-subheader):not(.procedure-header):not(.dropdown-option):not(.divider):hover {
  background-color: #f5f5f5;
}

#dropdownCombinedStatus .procedure-divider {
  height: 1px;
  margin: 8px 0;
}

#dropdownCombinedStatus .dropdown-no-options {
  padding: 12px 16px;
  color: #999;
  font-style: italic;
  text-align: center;
}

.dropdown-arrow-icon {
  font-size: 18px;
  margin-left: 4px;
}
.add-btn{
    font-size: 19px;
}
.template-messages-icon{
    font-size: 21px;
    margin-left: 15px;
    margin-right:13px;
}
.lastreply-timer{
    font-size: 12px;
    margin-right:13px;
    color: gray;
   
}
.duration-timer{
    font-size: 12px;
    margin-right:8px;
    color: gray;
}
.dot{
    margin-left:8px;
}

.flex-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
}

.header-col-left {
    flex: 0 1 auto;
    white-space: nowrap;
}

.header-col-right {
    flex: 1 1 auto;
    min-width: 0;
}

.status-text-truncate {
    display: inline-block;
    max-width: 150px;
    vertical-align: bottom;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.bulk-select-checkbox {
  margin-right: 10px;
}

.bulk-checkbox{
    display: inline;
}

.header-col-left {
    flex: 0 1 auto;
    white-space: nowrap;
}

.header-col-right {
    flex: 1 1 auto;
    min-width: 0;
}

.status-text-truncate {
    display: inline-block;
    max-width: 150px;
    vertical-align: bottom;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}


.article-filters-row .action-toolbar{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.article-filters-row .filter-btn,
.article-filters-row .bulk-delete-btn{
    margin-bottom: 0;
}

.article-filters-row .select-all-toggle{
    display: inline-flex;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    margin: 0;
    padding-left: 0;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0;
}

.article-filters-row .select-all-toggle input[type='checkbox']{
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary-color);
    border-radius: 3px;
    position: relative;
    background: #fff;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.article-filters-row .add-dropdown{
    display: flex;
    align-items: center;
}

.article-filters-row .select-all-toggle input[type='checkbox']:focus{
    box-shadow: 0 0 0 3px rgba(233,30,99,0.2);
    outline: none;
}

.article-filters-row .select-all-toggle input[type='checkbox']:checked{
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.article-filters-row .select-all-toggle input[type='checkbox']:checked::after{
    content: "\2713";
    color: #fff;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -56%);
    font-weight: bold;
}

.article-filters-row .select-all-toggle input[type='checkbox']:indeterminate{
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.article-filters-row .select-all-toggle input[type='checkbox']:indeterminate::after{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    background: #fff;
    transform: translate(-50%, -50%);
    border-radius: 2px;
}

.article-filters-row .select-all-toggle input[type='checkbox'] + .select-all-label:before,
.article-filters-row .select-all-toggle input[type='checkbox'] + .select-all-label:after{
    content: none !important;
    display: none !important;
}

.article-filters-row .select-all-label{
    margin: 0;
    margin-left: 10x;
    padding: 0;
    line-height: 18px;
    font-size: 15px;
    color: #000;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    height: 18px;
}

/* Override Materialize default checkbox label padding just for select-all */
.article-filters-row .select-all-toggle [type='checkbox'] + .select-all-label{
    padding-left: 4px !important;
    margin-left: 10px !important;
    height: 18px !important;
    line-height: 18px !important;
    display: inline-flex;
    align-items: center;
}

.bulk-checkbox input[type='checkbox']{
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary-color);
    border-radius: 3px;
    position: relative;
    background: #fff;
    transition: all 0.15s ease;
}

.bulk-checkbox input[type='checkbox']:checked{
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.bulk-checkbox input[type='checkbox']:checked::after{
    content: "\2713";
    color: #fff;
    font-size: 11px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -56%);
    font-weight: bold;
}



.article-filters-row .filter-btn,
.article-filters-row .bulk-delete-btn{
    margin-bottom: 0;
}

.article-filters-row .select-all-toggle{
    display: inline-flex;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    margin: 0;
    padding-left: 0;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0;
}

.article-filters-row .select-all-toggle input[type='checkbox']{
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary-color);
    border-radius: 3px;
    position: relative;
    background: #fff;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.article-filters-row .add-dropdown{
    display: flex;
    align-items: center;
}

.article-filters-row .select-all-toggle input[type='checkbox']:focus{
    box-shadow: 0 0 0 3px rgba(233,30,99,0.2);
    outline: none;
}

.article-filters-row .select-all-toggle input[type='checkbox']:checked{
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.article-filters-row .select-all-toggle input[type='checkbox']:checked::after{
    content: "\2713";
    color: #fff;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -56%);
    font-weight: bold;
}

.article-filters-row .select-all-toggle input[type='checkbox']:indeterminate{
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.article-filters-row .select-all-toggle input[type='checkbox']:indeterminate::after{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    background: #fff;
    transform: translate(-50%, -50%);
    border-radius: 2px;
}

.article-filters-row .select-all-toggle input[type='checkbox'] + .select-all-label:before,
.article-filters-row .select-all-toggle input[type='checkbox'] + .select-all-label:after{
    content: none !important;
    display: none !important;
}

.article-filters-row .select-all-label{
    margin: 0;
    margin-left: 10x;
    padding: 0;
    line-height: 18px;
    font-size: 15px;
    color: #000;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    height: 18px;
}

/* Override Materialize default checkbox label padding just for select-all */
.article-filters-row .select-all-toggle [type='checkbox'] + .select-all-label{
    padding-left: 4px !important;
    margin-left: 10px !important;
    height: 18px !important;
    line-height: 18px !important;
    display: inline-flex;
    align-items: center;
}

.bulk-checkbox input[type='checkbox']{
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary-color);
    border-radius: 3px;
    position: relative;
    background: #fff;
    transition: all 0.15s ease;
}

.bulk-checkbox input[type='checkbox']:checked{
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.bulk-checkbox input[type='checkbox']:checked::after{
    content: "\2713";
    color: #fff;
    font-size: 11px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -56%);
    font-weight: bold;
}

.bulk-checkbox input[type='checkbox']:focus{
    box-shadow: 0 0 0 3px rgba(233,30,99,0.2);
    outline: none;
}
/* Ticket dedicated view */
.ticket-view-page {
    padding: 16px 0 32px;
}

.ticket-view-page .ticket-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.ticket-view-page .ticket-title-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-left: 18px;
    padding-right: 18px;
}

.ticket-view-page .ticket-action-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.ticket-view-page .ticket-title-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticket-view-page .ticket-priority-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.15px;
    text-transform: capitalize;
    line-height: 1;
    background: #eaf5ec;
    color: #256c33;
}

.ticket-view-page .ticket-control-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}

.control-select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 280px;
    flex: 1 1 280px;
}

/* Workflow-specific overrides */
.workflow-control-bar {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    padding: 0 !important;
}

.workflow-select-wrapper {
    margin-bottom: 0;
    min-width: unset !important;
    flex: 0 1 320px;
}

.workflow-select-wrapper .control-select-label {
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
}

.workflow-actions-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 2px;
}

.control-select-label {
    font-size: 0.96rem;
    font-weight: 500;
    color: #3a3a3a;
    margin: 0;
}

.control-select {
    width: 100%;
    min-width: 280px;
    padding: 12px 44px 12px 18px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid #d5dbe5;
    font-size: 0.92rem;
    color: #393939;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 5.5L11 1.5' stroke='%23202938' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 12px 7px;
    box-shadow: 0 1px 2px rgba(23, 30, 43, 0.05);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.workflow-select {
    min-width: unset !important;
    height: 40px !important;
    padding: 0 15px !important;
    border-radius: 8px !important;
}

.workflow-select option {
    color: #393939;
}

.btn-workflow-action {
    height: 34px !important;
    line-height: 34px !important;
}

.control-select:focus {
    outline: none;
    border-color: grey;
    box-shadow: 0 0 0 3px rgba(92, 42, 165, 0.12);
}

.control-select:disabled {
    background: #f4f6fb;
    color: #a0aec0;
    border-color: #e0e5ed;
    box-shadow: none;
}

.control-select--placeholder {
    color: #9da6b5;
}

.ticket-view-page .ticket-action-toolbar.footer {
    margin-top: 32px;
    justify-content: flex-end;
}

.ticket-view-page .ticket-action-btn {
    min-width: 128px;
    font-weight: 500;
    letter-spacing: 0.2px;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    text-transform: capitalize;
}

.ticket-view-page .ticket-action-btn--transfer {
    background-color: #25a75a;
    color: #fff;
}

.ticket-view-page .ticket-action-btn--transfer:hover,
.ticket-view-page .ticket-action-btn--transfer:focus {
    background-color: #1f8a4b;
}

.ticket-view-page .ticket-action-btn--save {
    background-color: #1f80d1;
    color: #fff;
}

.ticket-view-page .ticket-action-btn--save:hover,
.ticket-view-page .ticket-action-btn--save:focus {
    background-color: #1867a6;
}

.ticket-view-page .ticket-action-btn--submit {
    background-color: #5c2aa5;
    color: #fff;
}

.ticket-view-page .ticket-action-btn--submit:hover,
.ticket-view-page .ticket-action-btn--submit:focus {
    background-color: #4a2185;
}

.ticket-view-page .ticket-action-btn--reject {
    background-color: #d73c2c;
    color: #fff;
}

.ticket-view-page .ticket-action-btn--reject:hover,
.ticket-view-page .ticket-action-btn--reject:focus {
    background-color: #b63124;
}

.ticket-view-page .ticket-title {
    margin: 0;
    font-size: 1.55rem;
    color: #1d1d1d;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.ticket-view-page .ticket-id {
    margin: 2px 0 0;
    font-size: 0.95rem;
    color: #636f7b;
    font-weight: 500;
}

.ticket-view-page .ticket-body {
    row-gap: 12px;
}

.ticket-view-page .ticket-card {
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    margin-bottom: 1px;
    overflow: visible !important;
}

.ticket-view-page .ticket-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    text-transform: capitalize;
}

.ticket-view-page .ticket-card-header h6 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1f2633;
}

/* Attachment Upload Status Bar */
.ticket-view-page .attachment-upload-status {
    background: #fce8e4;
    border-bottom: 2px solid var(--primary-color);
    padding: 12px 16px;
    margin: 0 -18px 16px -18px;
}

.ticket-view-page .upload-status-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ticket-view-page .upload-status-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(33, 150, 243, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ticket-view-page .upload-status-text {
    color: #1976d2;
    font-size: 13px;
    font-weight: 500;
}

.ticket-view-page .ticket-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.ticket-view-page .ticket-info-grid .info-item,
.ticket-view-page .user-info-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 4px 10px;
}

.ticket-view-page .ticket-info-grid .info-item .info-icon,
.ticket-view-page .user-info-item .info-icon {
    grid-row: 1 / span 2;
    grid-column: 1;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eef2f8;
}

.ticket-view-page .info-label {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.88rem;
    font-weight: 600;
    color: #2d3645;
    letter-spacing: 0.15px;
    text-align: left;
    text-transform: capitalize;
    margin-bottom: 2px;
}

.ticket-view-page .info-value {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.8rem;
    font-weight: 400;
    color: #707b8a;
    letter-spacing: 0.1px;
    word-break: break-word;
    margin-top: 0;
}

.ticket-view-page .ticket-labels-section {
    margin-top: 14px;
    position: relative;
}


.ticket-view-page .ticket-labels-divider {
    border-top: 1px solid #e8edf5;
    margin-bottom: 12px;
}

.ticket-view-page .ticket-labels-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.ticket-view-page .ticket-labels-title-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #2d3645;
    font-weight: 600;
}

.ticket-view-page .ticket-labels-title-row .info-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #e6f8f4;
    color: #1c9c7c;
    font-size: 18px;
}

.ticket-view-page .ticket-labels-title {
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.3;
}

.ticket-view-page .ticket-add-label-btn {
    border: 1px dashed #2f76ff;
    border-radius: 999px;
    background: #edf4ff;
    color: #1f5fd1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
}

.ticket-view-page .ticket-add-label-btn:hover,
.ticket-view-page .ticket-add-label-btn:focus {
    background: #e0ecff;
}

.ticket-view-page .ticket-add-label-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ticket-view-page .ticket-add-label-btn .material-icons {
    font-size: 16px;
}

.ticket-view-page .ticket-labels-pills {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ticket-view-page .ticket-label-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #3b82f6;
    background: #e8f1ff;
    color: #1e40af;
    border-radius: 999px;
    padding: 3px 4px 3px 10px;
}

.ticket-view-page .ticket-label-pill-name {
    font-size: 0.79rem;
    line-height: 1.2;
}

.ticket-view-page .ticket-label-pill-remove {
    border: 0;
    background: transparent;
    color: #1e40af;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.ticket-view-page .ticket-label-pill-remove:hover,
.ticket-view-page .ticket-label-pill-remove:focus {
    background: rgba(30, 64, 175, 0.15);
}

.ticket-view-page .ticket-label-pill-remove .material-icons {
    font-size: 14px;
}

.ticket-view-page .ticket-label-more-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #a0aec0;
    background: #f8fafb;
    color: #4a5568;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.79rem;
    cursor: default;
}

.ticket-view-page .ticket-label-more-pill:hover .ticket-label-tooltip {
    display: flex;
}

.ticket-view-page .ticket-label-tooltip {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: #ffffff;
    border: 1px solid #e8edf5;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.15);
    padding: 12px;
    z-index: 100;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 200px;
    max-width: 350px;
}

.ticket-view-page .ticket-label-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}

.ticket-view-page .ticket-labels-empty {
    margin: 10px 0 0;
    color: black;
    font-size: 0.8rem;
}

.ticket-view-page .ticket-labels-dropdown {
    margin-top: 10px;
    border: 1px solid #d9e4f5;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.ticket-view-page .ticket-labels-search-row {
    display: grid;
    grid-template-columns: 26px 1fr;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-bottom: 1px solid #e8edf5;
}

.ticket-view-page .ticket-labels-search-row .material-icons {
    color: #7a8699;
    font-size: 18px;
}
.ticket-view-page .upload-status-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(33, 150, 243, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.ticket-view-page .ticket-labels-search-row input {
    border: 0;
    box-shadow: none;
    height: 28px;
    margin: 0;
    font-size: 0.84rem;
}

.ticket-view-page .ticket-labels-search-row input:focus {
    border: 0;
    box-shadow: none;
}

.ticket-view-page .ticket-labels-options {
    max-height: 220px;
    overflow-y: auto;
}

.ticket-view-page .ticket-label-option {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    cursor: pointer;
    color: #2d3645;
}

.ticket-view-page .ticket-label-option:hover,
.ticket-view-page .ticket-label-option:focus {
    background: #f5f9ff;
}

.ticket-view-page .ticket-label-option:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ticket-view-page .ticket-label-option .material-icons {
    color: #1f5fd1;
    font-size: 18px;
}

.ticket-view-page .ticket-label-option-name {
    font-size: 0.84rem;
    text-align: left;
}
.ticket-view-page .ticket-info-grid .info-item,
.ticket-view-page .user-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticket-view-page .ticket-info-grid .info-item .info-icon,
.ticket-view-page .user-info-item .info-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #eef2f8;
}

.ticket-view-page .info-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: black;
    letter-spacing: 0.15px;
    text-align: left;
    text-transform: capitalize;
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

.ticket-view-page .info-label {
    font-size: 0.8rem;
    font-weight: 400;
    color: #707b8a;
    letter-spacing: 0.1px;
    word-break: break-word;
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

/* ===== Rejection Reason Card ===== */
.ticket-view-page .rejection-card {
    background: #F5D7D7;
    border: none;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.ticket-view-page .rejection-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticket-view-page .rejection-label {
    font-size: 0.95rem;
    color: #333333;
    font-weight: 600;
    margin-bottom: 4px;
}

.ticket-view-page .rejection-reason-text {
    font-size: 0.9rem;
    color: #333333;
    line-height: 1.6;
    margin: 0 0 12px 0;
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.ticket-view-page .rejection-metadata {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.ticket-view-page .rejection-meta-item {
    font-size: 0.8rem;
    color: #666666;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.ticket-view-page .rejection-meta-item strong {
    font-weight: 500;
    color: #333333;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ===== Transfer Ticket Modal ===== */
.transfer-ticket-modal {
    max-width: 640px;
    overflow: visible;
}

.transfer-ticket-modal .modal-content {
    padding: 28px 32px 12px;
    overflow: visible;
}

.transfer-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.transfer-modal-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: #1f2633;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.transfer-unassign-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.transfer-unassign-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: #4a5568;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.transfer-modal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.transfer-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.transfer-user-field {
    margin: 0;
}

.transfer-field-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #2d3645;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    margin: 0 0 6px;
}

.transfer-select,
.transfer-input {
    height: 48px;
    border: 1px solid #d5dbe5;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 0.94rem;
    color: #1f2633;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(23, 30, 43, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.transfer-ticket-modal ul.select-dropdown {
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    padding: 8px 0;
}

.transfer-ticket-modal ul.select-dropdown li > span,
.transfer-ticket-modal ul.select-dropdown li > a {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 0.94rem;
    color: #1f2633;
}

.transfer-ticket-modal ul.select-dropdown li:hover,
.transfer-ticket-modal ul.select-dropdown li.selected {
    background-color: rgba(92, 42, 165, 0.08);
}

.transfer-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 5.5L11 1.5' stroke='%23202938' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 7px;
    padding-right: 40px;
}

.transfer-ticket-modal .select-wrapper {
    position: relative;
    border: 1px solid #d5dbe5;
    border-radius: 14px;
    height: 48px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(23, 30, 43, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.transfer-ticket-modal .select-wrapper input.select-dropdown {
    border: none !important;
    box-shadow: none !important;
    height: 100%;
    margin: 0;
    padding: 0 40px 0 16px;
    font-size: 0.94rem;
    color: #1f2633;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    line-height: 48px;
}

.transfer-ticket-modal .select-wrapper .caret {
    right: 16px;
    border: none;
    width: 12px;
    height: 7px;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 5.5L11 1.5' stroke='%23202938' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transform: none;
}

.transfer-ticket-modal .select-wrapper .caret:after {
    display: none;
}

.transfer-ticket-modal .select-wrapper:hover,
.transfer-ticket-modal .select-wrapper input.select-dropdown:focus {
    border-color: #5c2aa5;
    box-shadow: 0 0 0 3px rgba(92, 42, 165, 0.12);
}

.transfer-select:focus,
.transfer-input:focus {
    outline: none;
    border-color: #5c2aa5;
    box-shadow: 0 0 0 3px rgba(92, 42, 165, 0.12);
}

.transfer-input::placeholder {
    color: #9da6b5;
    opacity: 1;
}

.transfer-select:disabled,
.transfer-input:disabled {
    background: #f4f6fb;
    color: #a0aec0;
    border-color: #e0e5ed;
    box-shadow: none;
}

.transfer-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 32px 24px;
    border-top: none;
}

.transfer-modal-btn {
    min-width: 124px;
    height: 44px;
    border-radius: 12px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.transfer-modal-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(92, 42, 165, 0.12);
}

.transfer-modal-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.transfer-modal-btn--secondary {
    background-color: #7a8699;
    color: #ffffff;
}

.transfer-modal-btn--secondary:hover:not(:disabled) {
    background-color: #616e80;
}

.transfer-modal-btn--primary {
    background-color: #5c2aa5;
    color: #ffffff;
}

.transfer-modal-btn--primary:hover:not(:disabled) {
    background-color: #4a2185;
}

/* ===== Ticket Confirm Modal ===== */
.ticket-confirm-modal {
    max-width: 520px;
}

.ticket-confirm-modal .modal-content {
    padding: 28px 32px 18px;
}

.ticket-confirm-title {
    margin: 0 0 12px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1f2633;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.ticket-confirm-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #4a5568;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.ticket-confirm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 32px 24px;
    border-top: none;
}

.ticket-confirm-btn {
    min-width: 120px;
    height: 44px;
    border-radius: 12px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ticket-confirm-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(92, 42, 165, 0.12);
}

.ticket-confirm-btn--secondary {
    background-color: #7a8699;
    color: #ffffff;
}

.ticket-confirm-btn--secondary:hover {
    background-color: #616e80;
}

.ticket-confirm-btn--primary {
    background-color: #5c2aa5;
    color: #ffffff;
}

.ticket-confirm-btn--primary:hover {
    background-color: #4a2185;
}

.ticket-confirm-btn--danger {
    background-color: var(--secondary-color, #622695);
    color: #ffffff;
}

.ticket-confirm-btn--danger:hover {
    opacity: 0.9;
}

.ticket-confirm-btn--danger:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

@media (max-width: 600px) {
    .transfer-ticket-modal .modal-content {
        padding: 24px 20px 12px;
    }

    .transfer-modal-footer {
        padding: 16px 20px 24px;
    }
}

.ticket-view-page .ticket-form-renderer .rendered-form {
    display: grid;
    gap: 12px;
}

.ticket-view-page .ticket-form-renderer .form-group,
.ticket-view-page .ticket-form-renderer .formbuilder-text-label {
    margin-bottom: 12px;
}

.ticket-view-page .ticket-form-renderer input:disabled,
.ticket-view-page .ticket-form-renderer textarea:disabled,
.ticket-view-page .ticket-form-renderer select:disabled,
.ticket-view-page .ticket-form-renderer textarea[readonly],
.ticket-view-page .ticket-form-renderer .form-control[disabled] {
    color: #263238 !important;
    -webkit-text-fill-color: #263238 !important;
    opacity: 1 !important;
    border-bottom: 1px dotted #cfd8dc !important;
}

.ticket-view-page .ticket-form-renderer textarea[readonly] {
    resize: vertical !important;
    cursor: default;
    word-break: break-all !important;
    overflow: hidden !important;
}

/* Fix autocomplete input border alignment inside Description card */
.ticket-view-page .ticket-form-renderer .formbuilder-autocomplete,
.ticket-view-page .ticket-form-renderer .form-group {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
}

.ticket-view-page .ticket-form-renderer .form-control {
    width: 100% !important;
    box-sizing: border-box;
    margin-left: 0;
}

.ticket-view-page .ticket-view-content .ticket-card-body p {
    margin: 0;
}

.ticket-view-page .ticket-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.ticket-badge.priority {
    background: #f5f5f5;
    color: #546e7a;
}

.priority-high {
    color: #d84315 !important;
}

.priority-medium {
    color: #ff8f00 !important;
}

.priority-low {
    color: #2e7d32 !important;
}

.ticket-badge.status {
    margin-left: 8px;
    background: #eceff1;
    color: #455a64;
}

.status-active {
    background: #e8f5e9 !important;
    color: #1b5e20 !important;
}

.status-solved {
    background: #e6f4ea !important;
    color: #2e7d32 !important;
}

.status-pending {
    background: #fff3e0 !important;
    color: #ef6c00 !important;
}

.status-inprogress {
    background: #fce8e4 !important;
    color: #1e88e5 !important;
}

.status-hold {
    background: #fff8e1 !important;
    color: #ef6c00 !important;
}

.status-drafted {
    background: #ede7f6 !important;
    color: #5c2aa5 !important;
}

.status-closed {
    background: #eceff1 !important;
    color: #607d8b !important;
}

.status-completed {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
}

.status-rejected {
    background: #fdecea !important;
    color: #c62828 !important;
}

.status-escalated {
    background: #f3e5f5 !important;
    color: #d64425 !important;
}

.ticket-view-page .attachment-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    border: 1px solid #eef2f8;
    border-radius: 12px;
    padding: 12px;
    background: #ffffff;
}

.ticket-view-page .attachment-preview {
    flex: 0 0 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f7fb;
    border: 1px solid #e2e8f0;
}

.ticket-view-page .attachment-preview img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.ticket-view-page .attachment-preview video {
    width: 100%;
    height: 160px;
    background: #000;
}

.ticket-view-page .attachment-preview iframe {
    width: 100%;
    height: 160px;
    border: none;
    background: #fff;
}

.ticket-view-page .attachment-generic-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 12px;
    text-align: center;
}

.ticket-view-page .attachment-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #4338ca;
    font-family: 'Material Icons', 'Material Icons Outlined';
    font-feature-settings: 'liga';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 24px;
}

.attachment-icon.attachment-image::before {
    content: 'image';
}

.attachment-icon.attachment-video::before {
    content: 'smart_display';
}

.attachment-icon.attachment-pdf::before {
    content: 'picture_as_pdf';
}

.attachment-icon.attachment-generic::before {
    content: 'attach_file';
}

.ticket-view-page .attachment-name {
    font-weight: 700;
    color: #1f2933;
    margin: 0;
}

.ticket-view-page .attachment-details {
    flex: 1 1 160px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
}

.ticket-view-page .attachment-meta {
    font-size: 0.8rem;
    color: #90a4ae;
}

.ticket-view-page .attachment-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.ticket-view-page .attachment-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 8px;
    text-transform: none;
}

.ticket-view-page .attachment-action-btn i {
    font-size: 18px;
    line-height: 1;
}

.ticket-view-page .attachment-preview.empty {
    background: #f5f7fb;
    border: 1px dashed #d2dae5;
}

.ticket-view-page .ticket-attachment-hidden-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    left: -9999px;
}

.ticket-view-page .attachment-open-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1b6ca8;
}

.ticket-view-page .attachment-open-link:hover {
    text-decoration: underline;
}

.ticket-view-page .card.border-radius-12.ticket-card .attachment-item + .attachment-item {
    margin-top: 12px;
}

.ticket-view-page .attachment-meta {
    font-size: 0.8rem;
    color: #90a4ae;
}

/* Timeline-style working log item */
.ticket-view-page .working-log-item.timeline-style,
.working-logs-modal .working-log-item.timeline-style {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e8edf3;
    background: transparent;
    transition: background-color 0.2s ease;
}

.ticket-view-page .working-log-item.timeline-style:hover,
.working-logs-modal .working-log-item.timeline-style:hover {
    background-color: #f8fafb;
}

.ticket-view-page .working-log-item.timeline-style:last-child,
.working-logs-modal .working-log-item.timeline-style:last-child {
    border-bottom: none;
}

/* Bullet point for timeline entries */
.ticket-view-page .working-log-item .log-bullet,
.working-logs-modal .working-log-item .log-bullet {
    display: inline-block;
    width: 8px;
    height: 8px;
    min-width: 8px;
    background: #26a69a;
    border-radius: 50%;
    margin-top: 6px;
    position: relative;
}

.ticket-view-page .working-log-item .log-bullet::before,
.working-logs-modal .working-log-item .log-bullet::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(38, 166, 154, 0.2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ticket-view-page .working-log-item:hover .log-bullet,
.working-logs-modal .working-log-item:hover .log-bullet {
    background: #00897b;
}

.ticket-view-page .working-log-item:hover .log-bullet::before,
.working-logs-modal .working-log-item:hover .log-bullet::before {
    border-color: rgba(0, 137, 123, 0.3);
}

/* Timeline content container - vertical stacked layout */
.ticket-view-page .working-log-item .log-timeline-content,
.working-logs-modal .working-log-item .log-timeline-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.875rem;
    line-height: 1.6;
    padding: 0px 0;
}

/* Individual log fields */
.ticket-view-page .working-log-item .log-field,
.working-logs-modal .working-log-item .log-field {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.ticket-view-page .working-log-item .log-field .log-value,
.working-logs-modal .working-log-item .log-field .log-value {
    color: #37474f;
    word-break: break-word;
}

/* Labels styling */
.ticket-view-page .working-log-item .log-label,
.working-logs-modal .working-log-item .log-label {
    font-weight: 600;
    color: #546e7a;
    font-size: 0.85rem;
}

/* Pipe separators */
.ticket-view-page .working-log-item .log-separator,
.working-logs-modal .working-log-item .log-separator {
    color: #cfd8dc;
    font-weight: 300;
    margin: 0 4px;
}

/* Date field - emphasize chronological order */
.ticket-view-page .working-log-item .log-date,
.working-logs-modal .working-log-item .log-date {
    color: #37474f;
    font-weight: 500;
}

/* Action field */
.ticket-view-page .working-log-item .log-action,
.working-logs-modal .working-log-item .log-action {
    color: #263238;
}

/* Mentions inline display */
.ticket-view-page .working-log-item .log-mentions,
.working-logs-modal .working-log-item .log-mentions {
    font-size: 0.8rem;
    color: #78909c;
    font-style: italic;
    margin-left: 4px;
}

/* User field */
.ticket-view-page .working-log-item .log-user,
.working-logs-modal .working-log-item .log-user {
    color: #263238;
    font-weight: 500;
}

/* Email field - subtle */
.ticket-view-page .working-log-item .log-email,
.working-logs-modal .working-log-item .log-email {
    color: #607d8b;
    font-size: 0.85rem;
}

/* Duration badge - right-aligned pill */
.ticket-view-page .working-log-item .log-duration-badge,
.working-logs-modal .working-log-item .log-duration-badge {
    margin-left: auto;
    padding: 4px 10px;
    background: #fce8e4;
    color: #1976d2;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ticket-view-page .assigned-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f5;
    background: transparent;
    transition: background-color 0.2s ease;
}

.ticket-view-page .assigned-item:hover {
    background-color: #f8fafb;
}

.ticket-view-page .assigned-item:last-child {
    border-bottom: none;
}

.ticket-view-page .assigned-name {
    font-weight: 600;
    color: #263238;
    font-size: 0.95rem;
}

.ticket-view-page .assigned-email {
    font-size: 0.85rem;
    font-weight: 400;
}

.ticket-view-page .assigned-role {
    font-size: 0.85rem;
    color: #90a4ae;
}

.ticket-view-page .ticket-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticket-view-page .ticket-card-body p {
    color: #546e7a;
}

.ticket-view-page .ticket-card-body .grey-text {
    margin: 0;
}

@media (max-width: 992px) {
    .ticket-view-page .ticket-view-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ticket-view-page .ticket-title-block {
        flex-direction: column;
        align-items: flex-start;
    }
}

.text-capitalize {
    text-transform: capitalize;
}
/* Ticket view visual refresh */
.ticket-view-page .ticket-card {
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
    border: 1px solid #eef1f6;
}



.ticket-view-page .info-item[class*="icon-"]:hover,
.ticket-view-page .user-info-item[class*="icon-"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.ticket-view-page .info-item .info-icon,
.ticket-view-page .user-info-item .info-icon {
    flex: 0 0 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Material Icons', 'Material Icons Outlined';
    font-feature-settings: 'liga';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 18px;
    line-height: 1;
    color: #4338ca;
    background: #eef2ff;
}

.ticket-view-page .info-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
}

.ticket-view-page .working-log-actions {
    margin-top: 5px;
}

.ticket-view-page .working-log-actions .btn-flat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.ticket-view-page .working-log-actions .btn-flat i {
    font-size: 18px;
    line-height: 1;
}

.ticket-view-page .working-log-actions .btn-flat span {
    font-size: 0.9rem;
    line-height: 1.2;
}

.ticket-view-page .working-log-actions .btn-flat:hover,
.ticket-view-page .working-log-actions .btn-flat:focus {
    background: rgba(38, 166, 154, 0.08);
}

.ticket-view-page .modal-working-logs {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ticket-view-page .modal-working-logs .working-log-item {
    margin-bottom: 0;
}

.ticket-view-page .working-log-card .ticket-card-body {
    padding: 0px 0;
}

.ticket-view-page .working-log-card .working-log-item {
    padding: 10px 10px;
}

.ticket-view-page .working-logs-modal {
    width: 480px;
    max-height: 70vh;
}

.ticket-view-page .working-logs-modal .modal-content {
    padding: 20px 26px 18px;
}

.ticket-view-page .working-logs-modal .modal-subtitle {
    margin-top: -6px;
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.ticket-view-page .working-logs-modal h4 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.ticket-view-page .working-logs-modal .modal-footer {
    padding: 12px 26px;
}

.ticket-view-page .working-logs-modal .modal-footer .btn-flat {
    font-weight: 600;
}



.ticket-view-page .theme-amber .info-icon { background: #fff7e1; color: #f59e0b; padding: 0px;margin: 0px;}
.ticket-view-page .theme-violet .info-icon { background: #f2ecff; color: #7c5cff; padding: 0px;margin: 0px;}
.ticket-view-page .theme-indigo .info-icon { background: #e8f0ff; color: #2851e3;padding: 0px;margin: 0px; }
.ticket-view-page .theme-blue .info-icon { background: #e7f3ff; color: #2f76ff;padding: 0px;margin: 0px; }
.ticket-view-page .theme-mint .info-icon { background: #e6f8f4; color: #1c9c7c; padding: 0px;margin: 0px;}
.ticket-view-page .theme-orange .info-icon { background: #fff3e6; color: #f97316;padding: 0px;margin: 0px; }
.ticket-view-page .theme-emerald .info-icon { background: #e9fdf1; color: #16a34a;padding: 0px;margin: 0px; }
.ticket-view-page .theme-pink .info-icon { background: #ffecf4; color: #ec4899; padding: 0px;margin: 0px;}
.ticket-view-page .theme-red .info-icon { background: #fde8ea; color: #dc3545; padding: 0px;margin: 0px;}
.ticket-view-page .theme-sky .info-icon { background: #e6f4ff; color: #0284c7;padding: 0px;margin: 0px; }
.ticket-view-page .theme-purple .info-icon { background: #f3e8ff; color: #7c3aed; padding: 0px;margin: 0px;}

.ticket-view-page .workflow-step-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 60px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: #f4f6fb;
    font-weight: 500;
}

.ticket-view-page .workflow-step-row::before {
    content: 'account_tree';
    font-family: 'Material Icons', 'Material Icons Outlined';
    font-feature-settings: 'liga';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 20px;
    color: #2563eb;
    background: #e7efff;
    border-radius: 12px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.ticket-view-page .workflow-step-index {
    font-weight: 600;
    color: #111827;
}

.ticket-view-page .workflow-step-meta {
    color: #64748b;
    font-size: 0.8rem;
}

/* Removed - replaced with timeline-style */

.ticket-view-page .assigned-item {
    border-radius: 12px;
    padding: 10px 10px;
}












.transfer-unassign-toggle.switch label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #4a5568;
}

.transfer-unassign-toggle.switch label .lever {
    margin: 0;
    background-color: #d5dbe5;
}

.transfer-unassign-toggle.switch label .lever:after {
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(79, 114, 205, 0.25);
}

.transfer-unassign-toggle.switch input[type="checkbox"]:checked + .lever {
    background-color: rgba(92, 42, 165, 0.35);
}

.transfer-unassign-toggle.switch input[type="checkbox"]:checked + .lever:after {
    background-color: #5c2aa5;
}
.reject-ticket-modal .modal-content {
    padding: 28px 32px 16px;
}

.reject-modal-title {
    margin: 0 0 12px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2633;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.reject-modal-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #4a5568;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.reject-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 32px 24px;
    border-top: none;
}

.reject-modal-btn {
    min-width: 120px;
    height: 44px;
    border-radius: 12px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.reject-modal-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(92, 42, 165, 0.12);
}

.reject-modal-btn--secondary {
    background-color: #1f80d1;
    color: #ffffff;
}

.reject-modal-btn--secondary:hover {
    background-color: #1867a6;
}

/* Closure modal: neutral grey cancel button */
#closeTicket .reject-modal-btn--secondary {
    background-color: #e0e0e0;
    color: #424242;
}

#closeTicket .reject-modal-btn--secondary:hover {
    background-color: #d5d5d5;
}

.reject-modal-btn--primary {
    background-color: #5c2aa5;
    color: #ffffff;
}

.reject-modal-btn--primary:hover {
    background-color: #4a2185;
}

.reject-modal-btn--primary:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    opacity: 0.6;
}

.reject-modal-btn--primary:disabled:hover {
    background-color: #cccccc;
}

/* Close ticket modal */
.close-modal-warning {
    color: #666;
    margin: 8px 0 0 0;
}

.close-modal-field {
    margin-top: 16px;
}

.close-modal-label {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 8px;
    display: block;
}

.close-modal-textarea {
    display: block;
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    resize: vertical;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.close-modal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.close-modal-meta-hint,
.close-modal-meta-count {
    font-size: 0.85rem;
}

.close-modal-meta-count {
    color: #666;
}

.ticket-closure-reason-inline {
    overflow-wrap: anywhere;
}

/* ========================================
   Media Gallery Styles
   ======================================== */

.media-gallery-section,
.document-list-section {
    margin-bottom: 24px;
}

.media-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #424242;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Media Gallery Grid */
.media-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.media-gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #f5f5f5;
}

.media-gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.media-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
}

.media-thumbnail img,
.media-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Media Delete Button */
.media-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(244, 67, 54, 0.9);
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    padding: 0;
}

.media-gallery-item:hover .media-delete-btn {
    opacity: 1;
}

.media-delete-btn:hover {
    background-color: rgba(211, 47, 47, 1);
}

.media-delete-btn .material-icons {
    font-size: 18px;
}

.media-delete-btn:disabled {
    opacity: 1;
    cursor: not-allowed;
    background-color: rgba(158, 158, 158, 0.9);
}

.media-delete-btn:disabled:hover {
    background-color: rgba(158, 158, 158, 0.9);
}

.media-delete-btn.deleting {
    opacity: 1;
}

/* Media Download Button */
.media-download-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(33, 150, 243, 0.9);
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    padding: 0;
}

.media-gallery-item:hover .media-download-btn {
    opacity: 1;
}

.media-download-btn:hover {
    background-color: rgba(25, 118, 210, 1);
}

.media-download-btn .material-icons {
    font-size: 18px;
}

/* Delete Spinner for Media Gallery */
.delete-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Delete Spinner for Document List */
.delete-spinner-small {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(244, 67, 54, 0.3);
    border-top-color: #f44336;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}

.document-delete-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.document-delete-btn.deleting {
    pointer-events: none;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.video-play-overlay .material-icons {
    color: #ffffff;
    font-size: 36px;
}

/* Upload Spinner Indicator */
.media-upload-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.upload-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.upload-text {
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
}

/* +N More Overlay */
.media-gallery-more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    z-index: 5;
}

.media-gallery-more-overlay:hover {
    background-color: rgba(0, 0, 0, 0.75);
}

.media-gallery-more-text {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Document List */
.document-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fafafa;
    transition: background-color 0.2s ease;
}

.document-item:hover {
    background-color: #f5f5f5;
}

.document-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fce8e4;
    border-radius: 6px;
}

.document-icon .material-icons {
    color: #1976d2;
    font-size: 24px;
}

.document-details {
    flex-grow: 1;
    min-width: 0;
}

.document-name {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 500;
    color: #212121;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.document-type {
    font-size: 12px;
    color: #757575;
    text-transform: uppercase;
}

.document-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.document-action-btn {
    display: flex !important;
    align-items: center;
    gap: 4px;
    padding: 6px 12px !important;
    font-size: 13px !important;
    height: auto !important;
    line-height: normal !important;
}

.document-action-btn .material-icons {
    font-size: 18px;
}

/* Attachment Placeholder */
.attachment-placeholder {
    padding: 16px;
    text-align: center;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    margin-top: 16px;
}

.attachment-add-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    color: #5c2aa5 !important;
}

.attachment-add-btn .material-icons {
    font-size: 24px;
}

/* ========================================
   Gallery Lightbox Styles
   ======================================== */

.gallery-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.gallery-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 64px;
}

.gallery-top-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 12px;
    z-index: 10001;
}

.gallery-control-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.55);
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.gallery-control-btn:hover {
    background-color: rgba(0, 0, 0, 0.75);
    transform: scale(1.05);
}

.gallery-control-btn .material-icons {
    font-size: 22px;
}

.gallery-delete-btn {
    background-color: rgba(0, 0, 0, 0.55);
}

.gallery-delete-btn:hover:not(:disabled) {
    background-color: rgba(0, 0, 0, 0.75);
}

.gallery-delete-btn.deleting {
    pointer-events: none;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    color: #ec4899;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    z-index: 10001;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.gallery-nav-btn:hover {
    background-color: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.gallery-nav-btn .material-icons {
    font-size: 36px;
}

.gallery-prev-btn {
    left: 20px;
}

.gallery-next-btn {
    right: 20px;
}

.gallery-media-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.gallery-full-media {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.gallery-media-name {
    color: #ffffff;
    font-size: 14px;
    text-align: center;
    margin: 0;
    padding: 8px 16px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .media-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }

    .document-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .document-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .gallery-nav-btn {
        padding: 8px;
    }

    .gallery-nav-btn .material-icons {
        font-size: 28px;
    }

    .gallery-prev-btn {
        left: 10px;
    }

    .gallery-next-btn {
        right: 10px;
    }
}
.float-none,
.arabic table.responsive-table thead {
  float: none !important;
}
.arabic table.responsive-table  thead th,.arabic table.responsive-table  tbody td
{
    text-align: right !important;
}

.column-select-button {
    margin-top: 0.5rem;
}

.column-selector-modal .modal-content {
    padding-bottom: 80px;
    position: relative;
}

/* Fix long words stretching Select2 dropdown in the modal */
.column-selector-modal .select2-container .select2-selection__rendered,
.column-selector-modal .select2-results__option,
.select2-container--default .select2-results__option {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

.column-selector-modal .column-group-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.column-selector-modal .column-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0;
}

.column-selector-modal .column-option label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    flex: 1;
}

.column-selector-modal .column-field-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.column-selector-modal .column-option-empty {
    color: #9e9e9e;
    font-style: italic;
    padding: 0.5rem 0;
}

.column-selector-modal .column-field-form {
    color: #9e9e9e;
    margin-inline-start: 0.25rem;
    white-space: nowrap;
}

.column-selector-modal[dir="rtl"] #ticket-column-search {
    text-align: right;
}

.column-selector-modal[dir="rtl"] #ticket-column-search::placeholder {
    text-align: right;
    direction: rtl;
}

.column-selector-modal[dir="rtl"] .input-field i.prefix {
    left: auto;
    right: 0;
}

.column-selector-modal[dir="rtl"] .input-field input[type="text"]#ticket-column-search {
    padding-right: 3rem;
    padding-left: 0;
    direction: rtl;
}

.column-selector-modal[dir="rtl"] .input-field label[for="ticket-column-search"] {
    left: auto;
    right: 3rem;
    text-align: right;
    transform-origin: right top;
}

.column-selector-modal[dir="rtl"] .input-field label[for="ticket-column-search"].active {
    transform: translateY(-14px) scale(0.8);
}

.column-selector-modal .chip-small {
    font-size: 0.7rem;
    height: auto;
    line-height: 1.4;
    padding: 0 8px;
}

.column-selector-modal .modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.column-selector-modal .modal-footer__left,
.column-selector-modal .modal-footer__right {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.column-selector-modal .modal-footer__left {
    margin-right: auto;
}

.column-selector-modal .modal-footer .btn,
.column-selector-modal .modal-footer .btn-flat {
    margin: 0;
}

.ticket-table-scroll {
    overflow-x: auto;
}

.ticket-column-label {
    font-weight: 600;
}

.ticket-column-meta {
    color: #757575;
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

.ticket-cell-date {
    display: block;
}

.ticket-cell-time {
    display: block;
    font-size: 0.8rem;
    color: #757575;
}

.ticket-cell-text {
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.ticket-table-empty {
    text-align: center;
    padding: 2rem 0;
    color: #757575;
}

.ticket-cell--restricted .ticket-cell-text,
.ticket-cell--restricted span {
    color: #757575;
}

.ticket-cell--empty .ticket-cell-text {
    display: block;
    text-align: center;
}

.arabic .table-action-buttons {
    text-align: left;
}

.ticket-cell-text {
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.ticket-table-scroll table {
    table-layout: auto;
}

/* ========================================
   Ticket Filter Enhancements
   ======================================== */
#ticketSearchForm .col { margin-bottom: 20px; }
#ticketSearchForm label { 
    font-weight: 600 !important; 
    color: #333 !important; 
    font-size: 14px !important; 
    margin-bottom: 10px !important;
    display: block !important;
    position: static !important;
    transform: none !important;
}
#ticketSearchForm input[type=text], 
#ticketSearchForm input[type=date],
#ticketSearchForm select.browser-default,
#ticketSearchForm .select-wrapper input.select-dropdown {
    border: 1px solid #E0E0E0 !important;
    border-radius: 8px !important;
    height: 48px !important;
    box-shadow: none !important;
    background-color: #FFFFFF !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}
#ticketSearchForm .input-field { margin: 0 !important; }
#ticketSearchForm .btn-filter-container {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}
#ticketSearchForm .btn-filter-container .btn {
    height: 48px !important;
    line-height: 48px !important;
    border-radius: 8px !important;
    text-transform: none !important;
    box-shadow: none !important;
    font-weight: 600 !important;
    padding: 0 35px !important;
}
/* Materialize Select adjustment — ensure dropdown arrow is visible */
#ticketSearchForm .select-wrapper .caret {
    top: 50% !important;
    right: 12px !important;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
    fill: #757575;
}
#ticketSearchForm .select-wrapper input.select-dropdown {
    padding-right: 36px !important;
    color: #9e9e9e !important;
}
#ticketSearchForm .select-wrapper.has-selection input.select-dropdown {
    color: #000 !important;
}

/* Consistent placeholder color across all filter inputs */
#ticketSearchForm input[type=text]::placeholder {
    color: #9e9e9e !important;
}

/* Browser-default select: black when a value is selected, gray for placeholder */
#ticketSearchForm select.browser-default.filter-select--placeholder {
    color: #9e9e9e !important;
}

/* Ticket filters: keep labels dropdown width stable and wrap long label names */
#labels-filter-container .dropdown-content.select-dropdown {
        max-width: 100%;
        overflow-x: hidden;
}

/* Ensure all filter dropdowns have a consistent maximum height */
#ticketSearchForm .dropdown-content.select-dropdown {
    max-height: 250px !important;
}

#labels-filter-container .dropdown-content.select-dropdown li > span,
#labels-filter-container .dropdown-content.select-dropdown li > a {
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
        line-height: 1.35;
}

.bulk-select-checkbox {
  margin-right: 10px;
}

.bulk-checkbox{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.atricle-list-page [type='checkbox']:not(.filled-in) {
    pointer-events: auto !important;
    opacity: 1 !important;
    width: 18px;
    height: 18px;
    margin: 0 auto;
    vertical-align: middle;
    cursor: pointer;
}

.bulk-delete-btn {
    min-width: 120px;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    box-sizing: border-box;
    font-size: 1rem;
    text-align: center;     
    line-height: normal;     
    height: auto;           
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-filters-row .action-toolbar{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.article-filters-row .filter-btn,
.article-filters-row .bulk-delete-btn{
    margin-bottom: 0;
}

.article-filters-row .select-all-toggle{
    display: inline-flex;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    margin: 0;
    padding-left: 0;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0;
}

.article-filters-row .select-all-toggle input[type='checkbox']{
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary-color);
    border-radius: 3px;
    position: relative;
    background: #fff;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.article-filters-row .add-dropdown{
    display: flex;
    align-items: center;
}

.article-filters-row .select-all-toggle input[type='checkbox']:focus{
    box-shadow: 0 0 0 3px rgba(233,30,99,0.2);
    outline: none;
}

.article-filters-row .select-all-toggle input[type='checkbox']:checked{
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.article-filters-row .select-all-toggle input[type='checkbox']:checked::after{
    content: "\2713";
    color: #fff;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -56%);
    font-weight: bold;
}

.article-filters-row .select-all-toggle input[type='checkbox']:indeterminate{
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.article-filters-row .select-all-toggle input[type='checkbox']:indeterminate::after{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    background: #fff;
    transform: translate(-50%, -50%);
    border-radius: 2px;
}

.article-filters-row .select-all-toggle input[type='checkbox'] + .select-all-label:before,
.article-filters-row .select-all-toggle input[type='checkbox'] + .select-all-label:after{
    content: none !important;
    display: none !important;
}

.article-filters-row .select-all-label{
    margin: 0;
    margin-left: 10x;
    padding: 0;
    line-height: 18px;
    font-size: 15px;
    color: #000;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    height: 18px;
}

/* Override Materialize default checkbox label padding just for select-all */
.article-filters-row .select-all-toggle [type='checkbox'] + .select-all-label{
    padding-left: 4px !important;
    margin-left: 10px !important;
    height: 18px !important;
    line-height: 18px !important;
    display: inline-flex;
    align-items: center;
}

.bulk-checkbox input[type='checkbox']{
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary-color);
    border-radius: 3px;
    position: relative;
    background: #fff;
    transition: all 0.15s ease;
}

.bulk-checkbox input[type='checkbox']:checked{
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.bulk-checkbox input[type='checkbox']:checked::after{
    content: "\2713";
    color: #fff;
    font-size: 11px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -56%);
    font-weight: bold;
}

.bulk-checkbox input[type='checkbox']:indeterminate{
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.bulk-checkbox input[type='checkbox']:indeterminate::after{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 2px;
    background: #fff;
    transform: translate(-50%, -50%);
    border-radius: 2px;
}

.bulk-checkbox input[type='checkbox']:focus{
    box-shadow: 0 0 0 3px rgba(233,30,99,0.2);
    outline: none;
}

.bulk-checkbox input[type='checkbox']{
    cursor: pointer;
    margin: 0;
}

.bulk-checkbox input[type='checkbox']:disabled{
    cursor: not-allowed;
    opacity: 0.45;
}
.interaction-toolbar-close-icon{
    font-size: 1.4rem;
    margin-left: 2px;
}

/* Container (optional, wrap around widget+button) */
.floating-find-replace-container {
    position: fixed;
    top: 7.5rem;
    right: 1.875rem;
    z-index: 10000;
    width: clamp(25rem, 35vw, 40rem);
    max-width: 90vw;
}

/* Floating button */
.floating-find-replace-btn {
    position: fixed;
    top: 7.5rem;
    right: 1.875rem;
    z-index: 10001;
}
.floating-find-replace-btn .btn-floating {
    box-shadow: 0 0.5rem 2rem rgba(233, 30, 99, 0.3);
    display: flex; align-items: center; justify-content: center;
}
.floating-find-replace-btn .btn-floating i {
    margin: 0; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}
.floating-find-replace-btn .btn-floating:hover {
    transform: scale(1.1);
    box-shadow: 0 0.75rem 2.5rem rgba(233, 30, 99, 0.4);
}

/* Widget */
.floating-find-replace-widget {
    position: fixed;
    top: 7.5rem;
    right: 1.875rem;
    width: 50rem;
    max-height: 80vh;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
    border: 0.0625rem solid #e0e0e0;
    z-index: 10002;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Ensure toast/error messages appear above find and replace widget */
#toast-container {
    z-index: 10003 !important;
}

.swal2-container {
    z-index: 10004 !important;
}

/* Brand-color override for SweetAlert2 confirm (OK) buttons */
.swal2-styled.swal2-confirm {
    background-color: var(--secondary-color, #622695) !important;
}

.swal2-styled.swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(98, 38, 149, 0.35) !important;
}

/* Dynamic tab the user cannot open because they exceed the configured limit (US #2136) */
.tab-link--blocked {
    opacity: 0.5;
}

/* Header */
.find-replace-widget__header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    color: #fff;
    border-radius: 0.5rem 0.5rem 0 0;
}
.find-replace-widget__title {
    display: flex; align-items: center; gap: 0.5rem;
    font-weight: 500; font-size: 0.875rem;
}
.find-replace-widget__title i { font-size: 1.125rem; }
.find-replace-widget__controls { display: flex; gap: 0.25rem; }
.find-replace-widget__controls .btn-flat {
    min-width: 2rem; height: 2rem; padding: 0; color: #fff; border-radius: 0.25rem;
    display: flex; align-items: center; justify-content: center;
}
.find-replace-widget__controls .btn-flat:hover { background-color: rgba(255,255,255,0.1); }
.find-replace-widget__controls .btn-flat i { font-size: 1.125rem; line-height: 1; }

/* Content */
.find-replace-widget__content {
    padding: 1rem;
    height: auto;
    max-height: calc(80vh - 3.25rem);
    overflow-y: auto;
}
.compact-find-row, .compact-replace-row {
    display: flex; gap: 0.75rem; margin-bottom: 0.75rem; align-items: center;
}
.find-input-group {
    flex: 1; display: flex; align-items: center; position: relative;
    background: #f8f9fa; border: 0.0625rem solid #e0e0e0;
    border-radius: 0.25rem; padding: 0.5rem 0.75rem;
}
.find-input-group .prefix { font-size: 1.125rem; color: #666; margin-right: 0.5rem; }
.floating-find-replace-widget .compact-input {
    border: none; background: transparent; outline: none;
    font-size: 0.875rem; flex: 1; margin: 0;
}
.floating-find-replace-widget .compact-input::placeholder { color: #999; }
.floating-find-replace-widget .compact-controls { display: flex; align-items: center; gap: 0.25rem; }
.floating-find-replace-widget .results-count {
    font-size: 0.75rem; color: #666; min-width: 3.75rem; text-align: center;
}
.floating-find-replace-widget .compact-btn {
    min-width: 2rem; height: 2rem; padding: 0; border-radius: 0.25rem;
    display: flex; align-items: center; justify-content: center;
}
.floating-find-replace-widget .compact-btn i { font-size: 1rem; line-height: 1; }
.floating-find-replace-widget .compact-btn:hover { background-color: #f0f0f0; }

/* Expanded options */
.search-options-container, .compact-replace-row {
    border-top: 0.0625rem solid #e0e0e0;
    padding-top: 1rem; margin-top: 0.5rem;
}
.compact-options-row {
    display: flex; gap: 1rem; margin-bottom: 0.75rem; align-items: center; flex-wrap: wrap;
}
.floating-find-replace-widget .compact-scope { display: flex; gap: 1rem; }
.floating-find-replace-widget .compact-label, .floating-find-replace-widget .compact-checkbox {
    display: flex; align-items: center; gap: 0.375rem;
    font-size: 0.8125rem; color: #666; cursor: pointer;
}
.floating-find-replace-widget .compact-label input[type="radio"],
.floating-find-replace-widget .compact-checkbox input[type="checkbox"] { margin: 0; }

/* Matches */
.compact-matches { border-top: 0.0625rem solid #e0e0e0; padding-top: 0.75rem; margin-top: 0.75rem; }
.compact-matches-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.5rem; font-size: 0.75rem; color: #666;
}
.compact-matches-list {
    max-height: 12.5rem; overflow-y: auto;
    border: 0.0625rem solid #e0e0e0; border-radius: 0.25rem;
}
.compact-match-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.5rem 0.75rem; border-bottom: 0.0625rem solid #f0f0f0;
    cursor: pointer; transition: background-color 0.2s ease;
}
.compact-match-item:hover { background-color: #f8f9fa; }
.compact-match-item.active { background-color: #fce8e4; border-left: 0.1875rem solid var(--primary-color); }
.compact-match-item:last-child { border-bottom: none; }
.compact-match-content { flex: 1; overflow: hidden; }
.compact-match-text {
    font-size: 0.8125rem; color: #333; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; margin-bottom: 0.125rem;
}
.compact-match-location {
    font-size: 0.6875rem; color: #666; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.compact-match-actions { display: flex; gap: 0.25rem; margin-left: 0.5rem; }
.tiny-btn {
    min-width: 1.5rem; height: 1.5rem; padding: 0; border-radius: 0.1875rem;
    opacity: 0.7; display: flex; align-items: center; justify-content: center;
}
.tiny-btn:hover { opacity: 1; background-color: #f0f0f0; }
.tiny-btn i { font-size: 0.875rem; line-height: 1; }

/* Highlight */
.search-highlight {
    background-color: #ffeb3b; color: #333;
    padding: 0.125rem 0.25rem; border-radius: 0.1875rem;
    font-weight: 600;
}

/* Filter Section Header */
.filter-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.filter-section-header:hover {
    background-color: #f5f5f5;
}

.filter-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    color: #666;
}

.filter-trigger i {
    transition: transform 0.2s ease;
}

.filter-trigger i.rotated {
    transform: rotate(180deg);
}

/* Filter Options Panel */
.filter-options-panel {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-top: 8px;
    overflow-y: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Only show scrollbar when needed */
.filter-options-panel::-webkit-scrollbar {
    width: 6px;
}

.filter-options-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.filter-options-panel::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.filter-options-panel::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.filter-option {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.filter-option:last-child {
    border-bottom: none;
}

.filter-option:hover {
    background-color: #f8f9fa;
}

.filter-option .checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.filter-option .checkbox-item input[type="checkbox"] {
    margin: 0;
}

/* Disabled checkbox state */
.filter-option .checkbox-item.disabled-checkbox {
    cursor: not-allowed;
    opacity: 0.6;
}

.filter-option .checkbox-item.disabled-checkbox input[type="checkbox"] {
    cursor: not-allowed;
}

.filter-option .checkbox-item .text-muted {
    color: #999 !important;
}

/* Widget Layout - Two Column */
.widget-layout {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.widget-filter-column {
    flex: 0 0 200px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    min-height: -webkit-fill-available;
    align-items: self-start;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow: visible;
}

.widget-find-replace-column {
    flex: 1;
    min-width: 0;
}

/* Filter Section - Vertical Layout */
.filter-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 5px;
}

.filter-header h6 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 110%;
    font-weight: 500;
    color: #666666;
    border-bottom: 2px solid #9e9e9e;
    padding-bottom: 5px;
    flex: 1;
}

.filter-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: #666;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-toggle-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.filter-toggle-btn i {
    font-size: 18px;
}

/* Collapsed state toggle button */
.filter-toggle-collapsed {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
}

.filter-toggle-btn.collapsed {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 0 8px 8px 0;
    padding: 12px 8px;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 40px;
}

.filter-toggle-btn.collapsed span {
    font-size: 12px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.widget-layout.filter-collapsed .widget-find-replace-column {
    margin-left: 0;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: visible;
}

.filter-label {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
}

.filter-clear-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.filter-clear-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.filter-clear-btn i {
    font-size: 16px;
}

.dropdown-item {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-item input[type="checkbox"] {
    margin: 0;
}

.noStepsFound {
    color:  var(--primary-color);
    font-size: 1.2rem;
}
/* ===== FILTER PANEL COMPONENT ===== */
.filter-panel {
    overflow: hidden;
    max-height: 0;
    width: 100%;
    transition: max-height 0.35s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
    border-radius: 4px;
    margin-bottom: 0;
    background: transparent;
}

.filter-panel.filter-panel--open {
    max-height: 1200px;
    margin-bottom: 16px;
    background: #fff;
    border-color: #e0e0e0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    overflow: visible;
}

.filter-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.filter-panel__title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #546e7a;
}

.filter-panel__title .material-icons {
    font-size: 18px;
    color: #546e7a;
}

.filter-panel__close {
    cursor: pointer;
    color: #90a4ae;
    line-height: 1;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
}

.filter-panel__close:hover {
    color: #78909c;
}

.filter-panel__close .material-icons {
    font-size: 20px;
}

.filter-panel__body {
    padding: 16px;
    overflow: visible;
}

/* Fix for Materialize modal scrollbar twitching/flickering on dynamic form load */
.createManualTicket.modal-fixed-footer .modal-content {
    overscroll-behavior-y: contain;
    transform: translateZ(0);
    will-change: transform, scroll-position;
}

/* ===== FLOW BUILDER FILTER INPUTS ===== */
.filter-panel__body label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #546e7a;
}

.fb-filter-input.browser-default,
.fb-filter-select.browser-default {
    font-family: inherit;
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    padding: 5px 12px !important;
    height: 38px !important;
    background-color: #fff !important;
    box-sizing: border-box;
    width: 100%;
    color: #495057;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fb-filter-input.browser-default:focus,
.fb-filter-select.browser-default:focus {
    border-color: #80bdff !important;
    outline: 0 !important;
    box-shadow: 0 0 0 2px rgba(128, 189, 255, 0.25) !important;
}

.fb-filter-input.browser-default::placeholder {
    color: #adb5bd;
    font-size: 13px;
}

.fb-table-flow-id {
    font-family: inherit !important;
    font-size: 14px !important;
    color: #495057 !important;
}

.fb-table-flow-name {
    max-width: 16ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
}

/* ===== FLOW BUILDER FILTER — RESPONSIVE ===== */
@media only screen and (max-width: 1100px) {
    .filter-panel__body .row > .col.m3 {
        width: 50% !important;
    }
}

@media only screen and (max-width: 700px) {
    .filter-panel__body .row > .col.m3 {
        width: 100% !important;
    }
}

.filter-panel__body .row > .col {
    min-width: 0;
}

.fb-filter-input.browser-default,
.fb-filter-select.browser-default {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fb-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.fb-table-wrapper table {
    min-width: 800px; /* Ensures the table doesn't shrink too much, preserving columns */
}


.navbar-main .brand-logo img {
    filter: brightness(0) invert(1) drop-shadow(0 0 0.5px white) !important;
    -webkit-filter: brightness(0) invert(1) drop-shadow(0 0 0.5px white) !important;
}

.navbar-main .notification-badge {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    font-weight: bold;
}

#BTN_headerChangeStatus.status-button {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* 5. Chat Messages: Agent (Outbound) */
.chat-right .chat-text p {
    background-color: var(--primary-brand-tint) !important;
    color: #000;
}


.repliedTo {
    border: none !important;
    border-left: 4px solid #ef4d29  !important;
    border-radius: 4px 8px 8px 4px !important;
    padding: 10px 14px !important;
    margin-bottom: 8px !important;
    background-color: var(--primary-light) !important;
    color: var(--text-main, inherit) !important;
    font-size: 0.9em !important;
    line-height: 1.4 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
    position: relative !important;
    opacity: 0.9 !important;
}


#quickSearch {
    color: #fff !important;
    border-bottom: 2px solid rgba(255,255,255,0.7) !important;
}
#quickSearch360 {
    color: #90a4ae !important;
    border-bottom: 2px solid #b0bec5 !important;
}
#quickSearch::placeholder {
    color: rgba(255,255,255,0.8) !important;
    padding-left: 5px;
}
#quickSearch:focus {
    border-bottom: 2px solid #fff !important;
    box-shadow: 0 1px 0 0 #fff !important;
}

#quickSearch.invalid,
#quickSearch:focus.invalid {
    border-bottom: 2px solid rgba(255,255,255,0.7) !important;
    -webkit-box-shadow: 0 1px 0 0 rgba(255,255,255,0.7) !important;
    box-shadow: 0 1px 0 0 rgba(255,255,255,0.7) !important;
    color: #fff !important;
}

#quickSearch360::placeholder {
    color: #b0bec5 !important;
    padding-left: 5px;
}
#quickSearch360:focus {
    color: #78909c !important;
    border-bottom: 2px solid #90a4ae !important;
    box-shadow: 0 1px 0 0 #90a4ae !important;
}
#ITAG_advancedSearch_01.material-icons {
    color: rgba(255,255,255,0.9) !important;
}

#slide-out li a:not(.collapsible-header).active,
#slide-out li.active > a:not(.collapsible-header),
#slide-out li a:not(.collapsible-header):hover,
#slide-out li a:not(.collapsible-header):focus {
    background-color: var(--primary-light) !important;
    box-shadow: inset 5px 0 0 #ef4d29 !important; /* Uses shadow to avoid layout jump */
    border-left: none !important; /* Remove physical border */
    color: #000 !important;
    border-right: none !important;
}
.custom-tabs .tab a {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.custom-tabs .tab a.active,
.custom-tabs .tab a:hover,
.custom-tabs .tab a:focus {
    background-color: var(--primary-light) !important; /* light version active */
    color: #000 !important; /* Dark text on light bg */
}

#slide-out li a:not(.collapsible-header).active i,
#slide-out li.active > a:not(.collapsible-header) i,
#slide-out li a:not(.collapsible-header):hover i,
#slide-out li a:not(.collapsible-header):focus i {
    color: #000 !important;
}
.theme-secondary, .btn.theme-secondary {
    background-color: var(--secondary-color) !important;
}

.theme-secondary-text {
    background-color: transparent !important;
    color: var(--secondary-color) !important;
}

.btn-floating.theme-secondary {
    background-color: var(--secondary-color) !important;
}

/* Semantic Muted Action Buttons (Form Designer) */
.btn-save-primary {
    background-color: var(--secondary-color) !important;
    color: #fff !important;
}

.btn-cancel-muted {
    background-color: #6B7280 !important;
    color: #fff !important;
}

.btn-clear-muted {
    background-color: #6B7280 !important;
    color: #fff !important;
}

.btn-next-muted {
    background-color: #6B7280 !important;
    color: #F9FAFB !important;
}

.gradient-45deg-theme-secondary-light-green {
    background: linear-gradient(45deg, var(--secondary-color), #81c784) !important;
}

.gradient-45deg-theme-secondary-theme-secondary {
    background: linear-gradient(45deg, var(--secondary-color), var(--secondary-color)) !important;
}

.custom-tabs {
    background-color: transparent !important;
}

.custom-tabs .tab a {
    color: var(--secondary-color) !important;
    background-color: transparent !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.custom-tabs .tab a.active,
.custom-tabs .tab a:hover,
.custom-tabs .tab a:focus {
    color: var(--primary-color) !important;
    background-color: var(--primary-semi-light) !important;
}

/* Ensure the indicator line matches or is hidden if full bg style is preferred */

/* 11. Chat User List Item Style (User Request: Match Sidebar) */
.chat-user.active,
.chat-user:hover {
    background-color: var(--primary-light) !important;
    box-shadow: inset 3px 0 0 #ef4d29 !important;
    border-left: none !important;
    color: #000 !important;
}


/* ===== CHAT HEADER STYLING ===== */
#chat-header {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 6px 12px;
    height: 65px;
    min-height: 65px;
    box-sizing: border-box;
}


/* Main Row */
.chat-header-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px; 
    height: 32px; /* Fixed height for main row stability */
}

/* Container stability */
#chat-header .header-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px; /* Gap between main row and labels */
    height: 100%;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0; /* Allow flex children to shrink */
}

.chat-header-channel-icon {
    font-size: 20px !important;
    color: #616161;
    flex-shrink: 0;
    margin-top: 2px;
}

.chat-header-channel-icon i {
    font-size: 28px !important;
}

.chat-header-customer-name {
    font-size: 16px;
    font-weight: 600;
    color: #212121;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    max-width: 12ch;
    transition: color 0.2s ease;
}

.chat-header-customer-name > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 12ch;
    display: inline-block;
}

.chat-header-customer-name:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.chat-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    padding-left: 12px;
}

.chat-header-agent-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #616161;
}

.chat-header-agent-name {
    font-weight: 600;
    color: #212121;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 12ch;
    display: inline-block;
}

.chat-header-time-ago {
    color: #757575;
}

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-header-close-btn {
    font-size: 28px !important;
    padding: 4px;
    cursor: pointer;
    color: #333 !important;
}



.chat-header-labels-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    min-height: 20px; /* Reserve space for labels or at least align correctly */
    line-height: 1;
}

/* Small Chips for Header */
.chat-header-labels-row .small-chip {
    height: 20px;
    line-height: 20px;
    padding: 0 8px;
    margin: 0;
    border-radius: 10px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
}

.chat-header-labels-row .small-chip i.material-icons {
    font-size: 14px;
    line-height: 20px;
    margin-left: 4px;
    cursor: pointer;
    float: none; /* Override default float */
}

.chat-header-label {
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 120px;
    font-size: 10px;
}

.chat-header-label > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.chat-header-label .closed {
    flex-shrink: 0;
}

.chat-header-label-more {
    font-size: 11px;
    color: #757575;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #f5f5f5;
    transition: background 0.2s ease;
    height: 20px;
    line-height: 18px; /* account for border */
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
}

.chat-header-label-more:hover {
    background: #eeeeee;
}

/* Labels Overflow Dropdown Container */
.chat-header-label-more-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.chat-header-labels-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    padding: 8px;
    min-width: 150px;
    max-width: 280px;
    margin-top: 4px;
}

.chat-header-labels-dropdown .chat-header-label {
    margin: 3px 0;
    max-width: 100%;
    display: inline-flex;
    padding: 4px 8px;
}

.chat-header-labels-dropdown .chat-header-label .closed {
    opacity: 0.7;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.chat-header-labels-dropdown .chat-header-label .closed:hover {
    opacity: 1;
    color: #c62828;
}

/* Customer dropdown positioning */
.chat-header-customer-dropdown {
    position: relative;
}

/* US #2112: Page | Business badge beside the customer name (ported from staging #3594/#3914). */
.chat-header-page-badge {
    color: #666;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.2;
    min-width: 0;
    max-width: 100%;
    margin-inline-start: 8px;
    flex: 0 1 auto;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    overflow: hidden;
    white-space: nowrap;
}

.chat-header-badge-name,
.chat-header-badge-bus {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 0 1 auto;
    max-width: 175px;
    unicode-bidi: isolate;
}

.chat-header-badge-name {
    font-weight: 600;
}

.chat-header-badge-sep {
    white-space: pre;
    flex-shrink: 0;
    padding: 0 2px;
}

/* US #2112: the channel by name beside its icon. No text-transform: it is a tenant-authored
   adapter name and must read exactly as configured. */
.chat-header-channel-name {
    font-size: 12px;
    font-weight: 600;
    color: #616161;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    margin-inline-start: 4px;
    flex-shrink: 0;
    unicode-bidi: isolate;
}

.chat-header-customer-dropdown .dropdown-content {
    min-width: 250px;
}

/* Customer popup */
.chat-header-customer-popup {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    min-width: 250px;
    z-index: 1000;
}

.chat-header-popup-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.chat-header-popup-item-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.chat-header-popup-link-item {
    padding: 8px 16px;
}

.chat-header-popup-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 13px;
    text-decoration: none;
}

.chat-header-popup-link i {
    font-size: 16px;
}

.chat-header-popup-icon {
    font-size: 16px;
    color: #666;
}

.chat-header-popup-toggle {
    border-top: 1px solid #f0f0f0;
    padding-top: 4px;
}

/* MiniCRM Toggle Button */
.chat-header-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 5px;
    background: #f5f5f5;
    color: #424242 !important;
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.2px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

.chat-header-toggle-btn:hover {
    background: #e8e8e8;
    border-color: #bdbdbd;
    color: #212121 !important;
}

.chat-header-toggle-btn--active {
    background: var(--primary-lighter) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.chat-header-toggle-btn--active:hover {
    background: var(--primary-lighter) !important;
    opacity: 0.9;
    border-color: var(--primary-hover) !important;
    color: var(--primary-active) !important;
}

.chat-header-toggle-btn .chat-header-toggle-icon {
    font-size: 16px;
    line-height: 1;
}

.chat-header-toggle-btn--active .chat-header-toggle-icon {
    color: var(--primary-color) !important;
}

/* Interaction Summary Collapsible */
.interaction-summary-wrapper {
    padding: 0 8px;
}

.interaction-summary-collapsible {
    border: none;
    box-shadow: none;
    margin: 0;
}

.interaction-summary-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.interaction-summary-header {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    background: #f5f5f5;
    border-bottom: none;
    color: #424242;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
}

.interaction-summary-body {
    padding: 10px 12px;
    border-top: 1px solid #e0e0e0;
    background: #fff;
}

/* AI Customer Context (Customer Profile) panel */
.customer-profile-attr {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
}

.customer-profile-empty {
    margin: 0;
    font-size: 12px;
}

/* Compact History Button */
.chat-header-history-btn:hover {
    background: #e0e0e0 !important;
    border-color: #bdbdbd !important;
    color: #212121 !important;
}

/* Disable animation for MiniCRM to prevent lag */
.card-contact-info.ng-animate {
    transition: none !important;
    animation: none !important;
}

.icon-extra-small {
    font-size: 12px !important;
}
.view-contact-btn {
    background: #6f42c1;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.view-contact-btn:hover {
    background: #5a32a3;}
/* Modern Chat Input Box */
.modern-chat-box {
    background: white;
    border: 2px solid #ddd;
    border-radius: 20px;
    padding: 2px 12px;
    display: flex;
    align-items: center;
    width: 100% !important;
    transition: border-color 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.modern-chat-box:focus-within {
    border-color: var(--primary-color) !important;
}

.modern-chat-input-wrapper {
    overflow: visible !important; /* Allow emoji picker and dropdowns to show */
    position: relative;
    display: block !important;
    padding: 10px;
}

/* btn-pill / btn-ai-copilot duplicate block removed — consolidated above at ~line 5512 */

.blue-send-btn {
    color: var(--primary-color) !important;
    cursor: pointer;
    margin-left: 8px;
    display: flex;
    align-items: center;
}

.blue-send-btn i {
    font-size: 24px !important;
}

.mic-btn-modern {
    color: #757575;
    cursor: pointer;
    margin-left: 8px;
}

.mic-btn-modern i {
    font-size: 24px !important;
}

.emoji-picker-container {
    position: absolute;
    bottom: 65px;
    left: 20px;
    z-index: 10000;
}

.emoji-picker-container emoji-picker {
    --num-columns: 8;
    --category-emoji-size: 1.5rem;
}

.modern-chat-box-dropdown {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 0 10px;
}

.chat-footer-buttons {
    display: flex;
    gap: 10px;
    margin-left: 10px;
}

.ai-copilot-suggestion-text {
    display: inline-block;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    color: #5b1fcc !important; /* FIX 3: purple text for clickable suggestion */
    text-decoration: underline; /* FIX 3: underline to indicate interactivity */
    font-size: 13px !important;
    align-self: center;
    line-height: 30px !important;
    height: 30px !important;
    cursor: pointer; /* FIX 3: pointer cursor for click affordance */
    transition: opacity 0.2s ease; /* FIX 3: smooth hover transition */
}

.ai-copilot-suggestion-text:hover {
    opacity: 0.7; /* FIX 3: dim on hover for interactivity feedback */
}

/* ===== AI Co-Pilot Toggle Switch ===== */
.ai-copilot-toggle-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    vertical-align: middle;
    height: 30px;
}

.ai-copilot-toggle-label {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    transition: opacity 0.3s ease, color 0.3s ease;
    user-select: none;
}

.ai-copilot-toggle-label--dimmed {
    opacity: 0.45;
    color: #999;
}

.ai-copilot-toggle-switch {
    position: relative;
    width: 40px;
    height: 22px;
    border-radius: 11px;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.ai-copilot-toggle-switch--active {
    background-color: var(--primary-color);
}

.ai-copilot-toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.ai-copilot-toggle-switch--active .ai-copilot-toggle-knob {
    transform: translateX(18px);
}

/* Quick Reply Dropdown Fix */
#dropdown2 {
    z-index: 10001 !important;
    position: absolute !important;
    width: 350px !important;
}

/* Disabled state for buttons and links */
.disabled {
    pointer-events: none !important;
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.primary-bg {
    background-color: var(--primary-color) !important;
}

.secondary-bg {
    background-color: var(--secondary-color) !important;
}
.atricle-list-page table tbody tr {
    height: 60px;
}

.atricle-list-page table tbody tr td {
    vertical-align: middle !important;
}

.atricle-list-page table thead tr th {
    vertical-align: middle;
}

.atricle-list-page table tbody tr td:first-child,
.atricle-list-page table thead tr th:first-child {
    min-width: 50px;
    text-align: center;
    vertical-align: middle;
}

.article-category-badge {
    margin: 2px;
    border-radius: 12px;
    background-color: var(--secondary-color);
    color: #fff;
}

.article-tag-badge {
    margin: 2px;
    border-radius: 12px;
    background-color: var(--secondary-color);
    color: #fff;
}

/* ===== THREE-DOTS MENU COLUMN — compact width ===== */
/* Make the dropdown-trigger button compact inside table cells */
table th > a.dropdown-trigger.btn-flat,
table td > a.dropdown-trigger.btn-flat {
    padding: 0 !important;
    min-width: 36px !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
}

.table-actions-col {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    white-space: nowrap;
    text-align: center;
}

.table-actions-cell {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center;
}

.table-actions-col-double {
    width: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    white-space: nowrap;
    text-align: center;
}

.table-actions-cell-double {
    width: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    white-space: nowrap;
    text-align: center;
}

.table-actions-cell-double .p-right-10 {
    padding-right: 4px !important;
}

/* ===== COPILOT PANEL STYLES ===== */

/* Wrapper */
.copilot-panel-wrapper {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
}

/* Floating Action Button */
.copilot-panel-fab {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #303f9f 0%, #7b1fa2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(123, 31, 162, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.copilot-panel-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(123, 31, 162, 0.5);
}

.copilot-panel-fab i {
    color: #fff;
    font-size: 22px;
}

/* Panel */
.copilot-panel {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 360px;
    height: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.copilot-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, #303f9f 0%, #7b1fa2 100%);
    color: #fff;
    flex-shrink: 0;
}

.copilot-panel-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.copilot-panel-header-left i {
    font-size: 22px;
}

.copilot-panel-header-left span {
    font-size: 15px;
    font-weight: 600;
}

.copilot-panel-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.copilot-panel-header-right i {
    font-size: 20px;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.copilot-panel-header-right i:hover {
    opacity: 1;
}

/* Messages Area */
.copilot-panel-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #f5f6fa;
}

/* Empty State */
.copilot-panel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 20px;
}

.copilot-panel-empty-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(48, 63, 159, 0.15) 0%, rgba(123, 31, 162, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.copilot-panel-empty-icon i {
    font-size: 32px;
    color: #7b1fa2;
}

.copilot-panel-empty-title {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.copilot-panel-empty-hint {
    margin: 0;
    font-size: 13px;
    color: #888;
}

/* ===== Notifications UI Cleanup ===== */

.notification-mark-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    max-width: 100%;
    padding: 5px 10px;
    border: 1px solid #cfd8dc;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    color: #455a64 !important;
    background: #fff;
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    transition: all 0.18s ease;
}

.notification-mark-all-link:hover,
.notification-mark-all-link:focus {
    color: #1e88e5 !important;
    border-color: #bbdefb;
    background: #f5f9ff;
    text-decoration: none;
}

.notification-mark-all-icon {
    font-size: 16px;
    line-height: 1;
    color: currentColor;
    margin: 0 0 0 0 !important;
}

#notification-dropdown {
    width: 320px !important;
    min-width: 280px;
}

.notification-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap !important;
    gap: 10px;
    padding: 8px 14px;
    min-height: auto;
    cursor: default !important;
}

#notification-dropdown > li.notification-dropdown-header > span,
#notification-dropdown > li.notification-dropdown-header > a {

    display: inline-flex;
    align-items: center;
}

#notification-dropdown > li.notification-dropdown-header > span {
    padding: 0;
}
.notification-dropdown-title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #424242;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.notification-page-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #424242;
    white-space: nowrap;
}

.flex-nowrap {
    flex-wrap: nowrap !important;
}

.text-nowrap {
    white-space: nowrap !important;
}

#notification-dropdown > li.notification-dropdown-header:hover {
    background-color: transparent !important;
}

#notification-dropdown > li.notification-dropdown-header > span {
    cursor: default;
}

.notification-dropdown-header .notification-mark-all-link {
    margin-left: auto;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    gap: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.notification-dropdown-header .notification-mark-all-link .notification-mark-all-icon {
    font-size: 14px;
}

.notifications-page-header-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Notifications page only: clear read/unread distinction */
#list-notifications .notification-item-card {
    border: 1px solid #eceff1;
    box-shadow: none;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}



#list-notifications .notification-item-unread {
    background-color: #f5f0fa;
    border-left: 4px solid var(--secondary-color);
}

#list-notifications .notification-item-unread .notification-item-title {
    color: #1f2933;
    font-weight: 600;
}

#list-notifications .notification-item-read {
    background-color: #ffffff;
    border-left: 4px solid transparent;
}

#list-notifications .notification-item-read .notification-item-title {
    color: #5f6c7b;
    font-weight: 400;
}

#list-notifications .notification-item-date {
    color: #7b8794;
}

#list-notifications .notification-state-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

#list-notifications .notification-state-dot.is-unread {
    background-color: var(--secondary-color);
}

#list-notifications .notification-state-dot.is-read {
    background-color: #cfd8dc;
}

/* Messages */
.copilot-panel-message {
    display: flex;
    gap: 10px;
    max-width: 88%;
}

.copilot-panel-message.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.copilot-panel-message.assistant-message {
    align-self: flex-start;
}

.copilot-panel-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.copilot-panel-message.user-message .copilot-panel-avatar {
    background: #e8eaf6;
}

.copilot-panel-message.user-message .copilot-panel-avatar i {
    color: #303f9f;
    font-size: 16px;
}

.copilot-panel-message.assistant-message .copilot-panel-avatar {
    background: linear-gradient(135deg, #303f9f 0%, #7b1fa2 100%);
}

.copilot-panel-message.assistant-message .copilot-panel-avatar i {
    color: #fff;
    font-size: 16px;
}

.copilot-panel-bubble {
    padding: 10px 14px;
    border-radius: 14px;
}

.copilot-panel-message.user-message .copilot-panel-bubble {
    background: linear-gradient(135deg, #303f9f 0%, #5c6bc0 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.copilot-panel-message.assistant-message .copilot-panel-bubble {
    background: #fff;
    color: #333;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border-bottom-left-radius: 4px;
}

.copilot-panel-text {
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
}

.copilot-panel-text a {
    color: inherit;
    text-decoration: underline;
}

.copilot-panel-time {
    font-size: 10px;
    margin-top: 4px;
    opacity: 0.6;
}

.copilot-panel-message.user-message .copilot-panel-time {
    text-align: right;
}

/* Typing Indicator */
.copilot-panel-typing {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.copilot-panel-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7b1fa2;
    animation: copilotTyping 1.4s infinite ease-in-out both;
}

.copilot-panel-typing span:nth-child(1) { animation-delay: -0.32s; }
.copilot-panel-typing span:nth-child(2) { animation-delay: -0.16s; }
.copilot-panel-typing span:nth-child(3) { animation-delay: 0s; }

@keyframes copilotTyping {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Error */
.copilot-panel-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #ffebee;
    border-radius: 8px;
    color: #c62828;
    font-size: 13px;
}

.copilot-panel-error i {
    font-size: 18px;
}

/* Input Area */
.copilot-panel-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.copilot-panel-input input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.copilot-panel-input input:focus {
    border-color: #7b1fa2;
}

.copilot-panel-input input::placeholder {
    color: #999;
}

.copilot-panel-send {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #303f9f 0%, #7b1fa2 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.copilot-panel-send:hover:not(:disabled) {
    transform: scale(1.05);
}

.copilot-panel-send:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.copilot-panel-send i {
    color: #fff;
    font-size: 18px;
}

/* RTL Support */
.arabic .copilot-panel-wrapper {
    right: auto;
    left: 16px;
}

.arabic .copilot-panel {
    right: auto;
    left: 0;
}

.arabic .copilot-panel-message.user-message {
    flex-direction: row;
}

.arabic .copilot-panel-message.assistant-message {
    flex-direction: row-reverse;
}

.arabic .copilot-panel-message.user-message .copilot-panel-bubble {
    border-bottom-right-radius: 14px;
    border-bottom-left-radius: 4px;
}

.arabic .copilot-panel-message.assistant-message .copilot-panel-bubble {
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 4px;
}

.arabic .copilot-panel-message.user-message .copilot-panel-time {
    text-align: left;
}

/* Responsive */
@media (max-width: 480px) {
    .copilot-panel {
        width: calc(100vw - 32px);
        height: 65vh;
        max-height: 480px;
    }
}

/* Conversation Chat Message Delete Icon Overlap Fix */
/* 1. Rigidly anchor the absolute icon to the right bounds of its line */
.delete-msg.position-absolute {
    margin-left: 0.8px;
    right: 5px; 
    /* No top/bottom values are intentionally set so it flows strictly matching its line's origin */
}

/* Thicken the delete icon */
.delete-msg i {
    font-weight: 600 !important;
    font-size: 21px !important;
}

/* 2. Dynamically apply padding blocking overlap only when an active icon precedes the text */
.time-message:has(.delete-msg:not(.ng-hide)) ~ .show-emoji-icon {
    display: block; 
    padding-right: 25px; 
}

/* 3. Media Messages Overlap Fix: Relocate delete icon inline horizontally with existing action icons */
.time-message:has(a) {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
}
.time-message:has(a) .delete-msg.position-absolute {
    position: static !important; 
    display: flex;
    align-items: center;
}
.time-message:has(a) a {
    display: flex;
    align-items: center;
}

/* 4. Only show the delete icon on hover of the entire message bubble */
.chat-text .delete-msg {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.chat-text:hover .delete-msg {
    opacity: 1;
    pointer-events: auto;
}

/* 5. Ticket List Table Headers: Force single-line headers with ellipsis */
#ticket-table th:not(.table-actions-col) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px; /* Safe bounds to trigger the ellipsis */
}

#ticket-table th .ticket-column-label {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.ticket-list-header {
    position: sticky;
    top: 64px;
    z-index: 995;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 15px 15px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

/* ========================================
   Unified Sticky Header (Ticket View Page)
   ======================================== */
.ticket-view-page .ticket-sticky-header {
    position: sticky;
    top: 64px;
    z-index: 995;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 15px 15px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
    margin: 0px 15px;
}

.ticket-view-page .ticket-sticky-header__left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ticket-view-page .ticket-sticky-header__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Breadcrumb */
.ticket-view-page .ticket-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    line-height: 1.4;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0;
    margin: 0;
    height: auto;
    color: inherit;
}

.ticket-view-page .ticket-breadcrumb__link {
    color: #5c2aa5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
    cursor: pointer;
}

.ticket-view-page .ticket-breadcrumb__link:hover {
    color: #4a2185;
    text-decoration: underline;
}

.ticket-view-page .ticket-breadcrumb__separator {
    color: #b0b8c9;
    font-size: 1.1rem;
    line-height: 1;
    user-select: none;
    margin: 0 2px;
}

.ticket-view-page .ticket-breadcrumb__current {
    color: #5c2aa5;
    font-weight: 500;
}

/* Sticky Title */
.ticket-view-page .ticket-sticky-title {
    margin: 5px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1d1d1d;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 500px;
}

/* Sticky Priority Selector */
.ticket-view-page .sticky-priority-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-view-page .sticky-priority-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #636f7b;
    white-space: nowrap;
}

.ticket-view-page .sticky-priority-select {
    min-width: 130px;
    padding: 8px 36px 8px 14px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #d5dbe5;
    font-size: 0.88rem;
    color: #1f2633;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 5.5L11 1.5' stroke='%23202938' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 6px;
    box-shadow: 0 1px 2px rgba(23, 30, 43, 0.05);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.ticket-view-page .sticky-priority-select:focus {
    outline: none;
    border-color: #5c2aa5;
    box-shadow: 0 0 0 3px rgba(92, 42, 165, 0.12);
}

.ticket-view-page .sticky-priority-select:disabled {
    background-color: #f4f6fb;
    color: #a0aec0;
    border-color: #e0e5ed;
    box-shadow: none;
    cursor: not-allowed;
}

.ticket-view-page .sticky-priority-select.control-select--placeholder {
    color: #9da6b5;
}

/* Split Button Group */
.ticket-view-page .sticky-split-btn-group {
    display: inline-flex;
    align-items: stretch;
    position: relative;
}

.ticket-view-page .sticky-split-btn__main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    height: 40px;
    min-width: 100px;
    background: #5c2aa5;
    color: #ffffff;
    border: none;
    border-radius: 10px 0 0 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-transform: capitalize;
    letter-spacing: 0.2px;
}

.ticket-view-page .sticky-split-btn__main.single-action-btn {
    border-radius: 10px;
}

.ticket-view-page .sticky-split-btn__main:hover {
    background: #4a2185;
}

.ticket-view-page .sticky-split-btn__main:disabled {
    background: #b0a3c5;
    cursor: not-allowed;
}

.ticket-view-page .sticky-split-btn__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 40px;
    background: #5c2aa5;
    color: #ffffff;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    padding: 0;
}

.ticket-view-page .sticky-split-btn__arrow:hover {
    background: #4a2185;
}

.ticket-view-page .sticky-split-btn__arrow i {
    font-size: 22px;
    line-height: 1;
}

/* Split-button dropdown menu */
.ticket-view-page .sticky-actions-menu {
    min-width: 200px !important;
    margin-top: 4px;
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
    border: 1px solid #eef1f6;
    padding: 6px 0 !important;
}

.ticket-view-page .sticky-actions-menu li a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 18px !important;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1f2633;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    transition: background-color 0.15s ease;
}

.ticket-view-page .sticky-actions-menu li a:hover {
    background-color: #f4f6fb !important;
}

/* Neutralize Materialize's default grey li:hover so only the inner <a> highlights
   (otherwise #eee shows behind the bluish anchor and reads as a grey shadow) */
.ticket-view-page .sticky-actions-menu li:hover,
.ticket-view-page .sticky-actions-menu li.active {
    background-color: transparent !important;
}

.ticket-view-page .sticky-actions-menu li a i {
    font-size: 20px;
    color: #546e7a;
}

.ticket-view-page .sticky-actions-menu li a.red-text i {
    color: #c62828;
}

.ticket-view-page .sticky-actions-menu li.divider {
    margin: 4px 0;
    background-color: #eef1f6;
}

.ticket-view-page .sticky-actions-menu li.disabled a {
    opacity: 0.45;
    pointer-events: none;
}

/* Non-mytickets actions */
.ticket-view-page .sticky-acquire-btn {
    background-color: #5c2aa5 !important;
    border-radius: 10px;
    height: 40px;
    line-height: 40px;
    text-transform: capitalize;
    font-weight: 600;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    padding: 0 18px;
}

.ticket-view-page .sticky-acquire-btn:hover {
    background-color: #4a2185 !important;
}

.ticket-view-page .sticky-transfer-btn {
    color: #5c2aa5 !important;
    border-radius: 10px;
    height: 40px;
    line-height: 40px;
    text-transform: capitalize;
    font-weight: 600;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.ticket-view-page .sticky-transfer-btn:hover {
    background-color: rgba(92, 42, 165, 0.08) !important;
}

/* Responsive sticky header */
@media (max-width: 768px) {
    .ticket-view-page .ticket-sticky-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 14px;
    }

    .ticket-view-page .ticket-sticky-header__right {
        width: 100%;
        justify-content: flex-end;
    }

    .ticket-view-page .ticket-sticky-title {
        font-size: 1.15rem;
        max-width: 100%;
    }

    .ticket-view-page .sticky-priority-label {
        display: none;
    }
}

/* RTL support */
.ticket-view-page.arabic .ticket-sticky-header {
    flex-direction: row-reverse;
}

.ticket-view-page.arabic .ticket-sticky-header__right {
    flex-direction: row-reverse;
}

.ticket-view-page.arabic .ticket-breadcrumb {
    direction: rtl;
}

.ticket-view-page.arabic .sticky-split-btn__main {
    border-radius: 0 10px 10px 0;
}

.ticket-view-page.arabic .sticky-split-btn__arrow {
    border-radius: 10px 0 0 10px;
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
}

/* ========================================
   Ticket List Consolidated Actions Header
   ======================================== */
.ticket-list-header {
    position: sticky;
    top: 64px;
    z-index: 995;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 15px 15px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.ticket-list-header__left {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
}

.ticket-list-header__left .ticket-breadcrumb__link,
.ticket-list-header__left .ticket-breadcrumb__current {
    color: #5c2aa5;
}

.ticket-list-header__left .ticket-breadcrumb__separator {
    color: #636f7b;
    margin: 0 8px;
}

.ticket-list-actions-btn {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    color: #374151;
    border-radius: 6px;
    padding: 0 12px;
    height: 36px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: capitalize;
}

.ticket-list-actions-btn i.right {
    margin-left: 6px;
}

.ticket-list-actions-btn:hover {
    background-color: #f9fafb;
}

/* Dropdown Menu Styling */
.ticket-list-actions-menu {
    min-width: 200px;
}

.ticket-list-actions-menu li > a {
    color: #5c2aa5 !important;
    font-weight: 600;
    font-size: 13px !important;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 16px 24px !important;
    display: flex;
    align-items: center;
}

.ticket-list-actions-menu li > a > i.material-icons {
    color: #5c2aa5 !important;
    margin-right: 15px;
    font-size: 1.2rem;
}

.ticket-list-actions-menu li:hover {
    background-color: #f3f0f9;
}

/* ========================================
   Create Manual Ticket Dropdowns
   ======================================== */
.createManualTicket select.browser-default {
    display: block;
    width: 100%;
    height: 42px;
    padding: 0 14px;
    font-size: 0.95rem;
    color: #4a5568;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23718096' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ticket-list-header__left {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
}

.ticket-list-header__left .ticket-breadcrumb__link,
.ticket-list-header__left .ticket-breadcrumb__current {
    color: #5c2aa5;
}

.ticket-list-header__left .ticket-breadcrumb__separator {
    color: #636f7b;
    margin: 0 8px;
}

.ticket-list-actions-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    color: #374151;
    border-radius: 6px;
    padding: 0;
    width: 36px;
    height: 36px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: capitalize;
}

.ticket-list-actions-btn i.material-icons {
    margin: 0;
}

.ticket-list-actions-btn:focus {
    background-color: #ffffff;
}

.ticket-list-actions-btn:hover {
    background-color: #f9fafb;
}

/* Dropdown Menu Styling */
.ticket-list-actions-menu {
    min-width: 200px;
}

.ticket-list-actions-menu li > a {
    color: #5c2aa5 !important;
    font-weight: 600;
    font-size: 13px !important;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 16px 24px !important;
    display: flex;
    align-items: center;
}

.ticket-list-actions-menu li > a > i.material-icons {
    color: #5c2aa5 !important;
    margin-right: 15px;
    font-size: 1.2rem;
}

.ticket-list-actions-menu li:hover {
    background-color: #f3f0f9;
}

.bg-selected-prompt-version {
    background-color: #f3e5f5 !important; /* using a light purple/secondary theme background */
}


.hide-selected-options .select2-results__option[aria-selected=true] { display: none !important; }

.select2-container--default .select2-results__option[aria-selected=true],
.select2-container--default .select2-results__option--selected {
    background-color: #f8f9fa !important;
    color: #333 !important;
}


/* ═══════════════════════════════════════════════════════ */
/* QC TEMPLATES EDITOR - REDESIGN (No Animations/Gradients) */
/* ═══════════════════════════════════════════════════════ */

.qct-page { position: relative; padding: 10px 16px; min-height: 100vh; background: #f4f7f9; font-family: 'Inter', Roboto, sans-serif; }

/* Loading */
.qct-loading { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: center; gap: 12px; background: #f4f7f9; color: #78909c; }
.qct-loading__spinner { width: 28px; height: 28px; border: 3px solid #e0e0e0; border-top-color: var(--primary-color, #303f9f); border-radius: 50%; animation: qct-spin 1s linear infinite; }
@keyframes qct-spin { to { transform: rotate(360deg); } }

/* QC List pages (Score Cards / My Score Sheet) loading overlay */
.qcl-table-wrap { position: relative; min-height: 320px; }
.qcl-loading { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 12px; background: transparent; color: #78909c; }
.qcl-loading--lower { align-items: flex-start; padding-top: 140px; }
.qcl-loading__spinner { width: 28px; height: 28px; border: 3px solid #e0e0e0; border-top-color: var(--primary-color, #303f9f); border-radius: 50%; animation: qct-spin 1s linear infinite; }

/* Top Bar */
.qct-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding: 10px 16px; background: #ffffff; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border-left: 4px solid var(--primary-color, #303f9f); }
.qct-topbar__left { display: flex; align-items: center; gap: 10px; }
.qct-topbar__icon-wrap { background: rgba(48, 63, 159, 0.1); padding: 7px; border-radius: 8px; display: flex; }
.qct-topbar__icon { font-size: 20px; color: var(--primary-color, #303f9f); }
.qct-topbar__title-group { display: flex; flex-direction: column; }
.qct-topbar__title { margin: 0; font-weight: 700; font-size: 1rem; color: #1e293b; letter-spacing: -0.01em; }
.qct-topbar__breadcrumb { display: flex; align-items: center; gap: 4px; font-size: 0.78rem; color: #64748b; margin-top: 1px; }
.qct-topbar__breadcrumb i { font-size: 14px; }
.qct-topbar__breadcrumb-ver { background: #e2e8f0; color: #475569; padding: 1px 5px; border-radius: 4px; font-weight: 600; font-size: 0.68rem; }
.qct-btn--create { background: var(--primary-color, #303f9f) !important; text-transform: none; font-weight: 600; border-radius: 6px; letter-spacing: 0.02em; box-shadow: 0 2px 6px rgba(48, 63, 159, 0.25) !important; height: 32px !important; line-height: 32px !important; padding: 0 12px !important; font-size: 0.82rem !important; }
.qct-btn--save { background: var(--primary-color, #303f9f) !important; text-transform: none; font-weight: 600; border-radius: 6px; box-shadow: 0 2px 6px rgba(48, 63, 159, 0.25) !important; height: 32px !important; line-height: 32px !important; padding: 0 12px !important; font-size: 0.82rem !important; }
.qct-btn--cancel { background: #94a3b8 !important; color: #fff !important; text-transform: none; font-weight: 600; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important; height: 32px !important; line-height: 32px !important; padding: 0 12px !important; font-size: 0.82rem !important; }
.qct-btn--cancel:hover { background: #64748b !important; }

/* Layout: Sidebar + Editor */
.qct-layout { display: flex; gap: 16px; height: calc(100vh - 130px); min-height: 500px; }

/* Sidebar */
.qct-sidebar { width: 260px; min-width: 260px; background: #fff; border-radius: 10px; border: 1px solid #e2e8f0; overflow-y: hidden; height: 100%; box-shadow: 0 4px 15px rgba(0,0,0,0.02); display: flex; flex-direction: column; }
.qct-sidebar__header { padding: 10px 14px; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: space-between; }
.qct-sidebar__header--sub { background: #f8fafc; padding: 12px 20px; }
.qct-sidebar__label { font-weight: 700; font-size: 0.75rem;  letter-spacing: 0.08em; color: #64748b; }
.qct-sidebar__count { background: #f1f5f9; color: #475569; font-size: 0.75rem; padding: 2px 8px; border-radius: 12px; font-weight: 700; }
.qct-sidebar__count--sub { background: #e2e8f0; }
.qct-sidebar__filters { padding: 8px 10px; border-bottom: 1px solid #f1f5f9; position: relative; background: #fff; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.qct-search-wrapper { position: relative; display: flex; align-items: center; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.qct-search-wrapper:focus-within { background: #fff; border-color: var(--primary-color, #303f9f); box-shadow: 0 0 0 4px rgba(48, 63, 159, 0.1); }
.qct-search-icon { position: absolute; left: 12px; color: #94a3b8; font-size: 20px; transition: color 0.3s ease; pointer-events: none; }
.qct-search-wrapper:focus-within .qct-search-icon, .qct-search-icon--active { color: var(--primary-color, #303f9f); }
.qct-search-input { width: 100%; border: none !important; background: transparent !important; padding: 7px 30px 7px 34px !important; font-size: 0.82rem !important; color: #1e293b !important; height: 34px !important; box-shadow: none !important; box-sizing: border-box !important; margin: 0 !important; font-weight: 500; }
.qct-search-input::placeholder { color: #94a3b8; font-weight: 400; }
.qct-search-input:focus { outline: none; }
.qct-search-clear { position: absolute; right: 8px; background: #e2e8f0; border: none; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #64748b; transition: all 0.2s ease; padding: 0; outline: none; }
.qct-search-clear:hover { background: #cbd5e1; color: #1e293b; transform: scale(1.1); }
.qct-search-clear i { font-size: 16px; }
.qct-sidebar__empty { padding: 40px 20px; text-align: center; color: #94a3b8; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.qct-sidebar__empty--compact { padding: 24px 20px; }
.qct-sidebar__empty-icon-wrap { background: #f1f5f9; width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.qct-sidebar__empty-icon-wrap i { font-size: 32px; color: #cbd5e1; }
.qct-sidebar__empty-title { margin: 0 0 4px 0; font-size: 0.95rem; font-weight: 600; color: #475569; }
.qct-sidebar__empty-sub { margin: 0; font-size: 0.8rem; }
.qct-sidebar__list { padding: 8px 0; flex: 1; overflow-y: auto; min-height: 0; }
.qct-sidebar__item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; cursor: pointer; border-left: 3px solid transparent; position: relative; }
.qct-sidebar__item:hover { background: #f8fafc; }
.qct-sidebar__item--active { background: #f8fafc !important; border-left-color: var(--primary-color, #303f9f); }
.qct-sidebar__item-icon i { font-size: 22px; color: #94a3b8; }
.qct-sidebar__item--active .qct-sidebar__item-icon i { color: var(--primary-color, #303f9f); }
.qct-sidebar__item-info { overflow: hidden; flex: 1; z-index: 1; }
.qct-sidebar__item-name { display: block; font-weight: 600; font-size: 0.8rem; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qct-sidebar__item-meta { font-size: 0.75rem; color: #64748b; margin-top: 2px; display: block; }
.qct-sidebar__versions { background: #f8fafc; border-top: 1px solid #f1f5f9; max-height: 280px; overflow-y: auto; }
.qct-sidebar__version-item { display: flex; align-items: center; gap: 10px; padding: 10px 20px 10px 44px; cursor: pointer; position: relative; }
.qct-sidebar__version-item:hover { background: #f1f5f9; }
.qct-sidebar__version-item--active { background: #e0e7ff !important; }
.qct-sidebar__version-tree { position: absolute; left: 24px; top: 0; bottom: 0; width: 2px; background: #e2e8f0; }
.qct-sidebar__version-item:last-child .qct-sidebar__version-tree { bottom: 50%; }
.qct-sidebar__version-tree::after { content: ''; position: absolute; left: 0; top: 50%; width: 10px; height: 2px; background: #e2e8f0; }
.qct-sidebar__version-num { font-weight: 700; font-size: 0.85rem; color: #475569; z-index: 1; background: inherit; padding-right: 4px; }
.qct-version-badge { font-size: 0.65rem; padding: 2px 6px; border-radius: 4px; font-weight: 800;  letter-spacing: 0.06em; z-index: 1; }
.qct-version-badge--production { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.qct-version-badge--latest { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }
.qct-version-badge--draft { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.qct-btn--set-live { margin-left: auto; min-width: 28px !important; height: 28px !important; padding: 0 !important; line-height: 28px; color: #94a3b8 !important; border-radius: 6px !important; z-index: 1; }
.qct-btn--set-live:hover { color: #166534 !important; background: #dcfce7 !important; }

/* Draft Banner */
.qct-draft-banner { display: flex; align-items: center; gap: 16px; background: #fffbeb; border-bottom: 1px solid #fde68a; padding: 12px 24px; }
.qct-draft-banner__icon i { color: #d97706; font-size: 24px; }
.qct-draft-banner__text { flex: 1; color: #92400e; font-size: 0.9rem; }
.qct-draft-banner__actions { display: flex; gap: 8px; }
.qct-btn-flat--action { color: #92400e !important; font-weight: 600 !important; text-transform: none !important; border-radius: 6px !important; padding: 0 12px !important; height: 32px !important; line-height: 32px !important; font-size: 0.95rem !important; }
.qct-btn-flat--action:hover { background: rgba(146, 64, 14, 0.08) !important; }
.qct-btn-flat--approve { color: #15803d !important; }
.qct-btn-flat--approve:hover { background: rgba(21, 128, 61, 0.08) !important; }
.qct-btn-flat--action .material-icons.left { margin-right: 4px !important; font-size: 16px !important; line-height: 32px !important; }



/* Editor */
.qct-editor { position: relative; flex: 1; background: #fff; border-radius: 10px; border: 1px solid #e2e8f0; display: flex; flex-direction: column; overflow: hidden; height: 100%; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.qct-editor-loading { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: center; gap: 12px; background: #fff; color: #78909c; border-radius: 10px; }
.qct-editor--empty { align-items: center; justify-content: center; background: transparent; border: 2px dashed #cbd5e1; box-shadow: none; }
.qct-editor__header { display: flex; justify-content: space-between; align-items: center; padding: 16px 11px; border-bottom: 1px solid #f1f5f9; background: #fff; }
.qct-editor__header-left { display: flex; align-items: center; gap: 16px; }
.qct-editor__header-icon { background: #f8fafc; color: #64748b; width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.qct-editor__header-icon i { font-size: 24px; }
.qct-editor__name { margin: 0 0 4px 0; font-weight: 700; font-size: 1.15rem; color: #1e293b; }
.qct-editor__version-tag { font-size: 0.8rem; color: #64748b; display: flex; align-items: center; gap: 8px; font-weight: 500; }

/* Tabs */
.qct-tabs-container { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid #e2e8f0; background: #f8fafc; padding: 0 16px; padding-top: 6px; }
.qct-tabs { display: flex; border-bottom: none; padding: 0; background: transparent; gap: 4px; padding-top: 0; }
.qct-tabs-actions { padding-bottom: 6px; display: flex; align-items: center; }
.qct-tabs__tab { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border: none; background: transparent; cursor: pointer; font-size: 0.82rem; font-weight: 600; color: #64748b; border-bottom: 3px solid transparent; border-radius: 6px 6px 0 0; height: 40px; }
.qct-tabs__tab i { font-size: 16px; }
.qct-tabs__tab--active i { color: var(--primary-color, #303f9f); }
.qct-tabs__count { font-size: 0.75rem; background: #e2e8f0; padding: 2px 6px; border-radius: 10px; color: #475569; }
.qct-tabs__tab--active .qct-tabs__count { background: #e0e7ff; color: #3730a3; }

/* Panel */
.qct-panel { flex: 1; overflow-y: auto; padding: 24px; background: #fff; }
.qct-panel__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.qct-panel__title { font-weight: 700; font-size: 0.8rem; color: #1e293b; display: flex; align-items: center; gap: 10px; }
.qct-panel__title-icon { color: #94a3b8; font-size: 18px; }
.qct-panel__actions { display: flex; align-items: center; gap: 16px; }
.qct-btn--add-row { color: var(--primary-color, #303f9f) !important; font-weight: 600 !important; text-transform: none !important; display: flex !important; align-items: center !important; gap: 4px !important; font-size: 0.75rem !important; background: #f8fafc !important; border-radius: 6px !important; padding: 0 12px !important; border: 1px solid #e2e8f0 !important; height: 30px !important; line-height: 28px !important; }
.qct-btn--add-row i { font-size: 16px !important; }
.qct-btn--add-row:hover { background: #f1f5f9 !important; border-color: #cbd5e1 !important; }

/* Weight total */
.qct-weight-total { font-size: 0.75rem; font-weight: 700; color: #475569; padding: 4px 10px; background: #f1f5f9; border-radius: 6px; border: 1px solid #e2e8f0; display: flex; align-items: center; gap: 4px; }
.qct-weight-total--warn { color: #b45309; background: #fef3c7; border-color: #fde68a; }
.qct-weight-total--perfect { color: #15803d; background: #dcfce7; border-color: #bbf7d0; }
.qct-weight-total__icon { font-size: 16px; }

/* Scorecard Table */
.qct-scorecard-table-wrap { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
.qct-scorecard-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; table-layout: fixed; }
.qct-scorecard-table thead th { background: #f8fafc; padding: 8px 8px; text-align: center; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.04em; color: #64748b; border-bottom: 2px solid #e2e8f0; white-space: nowrap; vertical-align: middle; }
.qct-scorecard-table tbody tr:nth-child(even) { background: #fafafa; }
.qct-scorecard-table tbody tr:hover { background: #f1f5f9; }
.qct-scorecard-table tbody td { padding: 6px 8px; vertical-align: middle; border-bottom: 1px solid #f1f5f9; text-align: center; }
.qct-scorecard-table tbody tr:last-child td { border-bottom: none; }
.qct-row--fatal { background: #fef2f2 !important; }
.qct-row--fatal:hover { background: #fee2e2 !important; }
.qct-row--fatal td:first-child { box-shadow: inset 4px 0 0 #ef4444; }
.qct-row--critical td:first-child { box-shadow: inset 4px 0 0 #f59e0b; }
.qct-col-num { width: 36px; text-align: center; color: #94a3b8; font-weight: 600; font-size: 0.8rem; }
.qct-col-category { width: 130px; }
.qct-col-attr { width: 160px; }
.qct-col-check { width: auto; }
.qct-col-crit { width: 130px; }
.qct-col-weight { width: 90px; }
.qct-col-actions { width: 44px; text-align: center; }
.qct-row-num { background: #f1f5f9; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 0.75rem; }
.qct-row--fatal .qct-row-num { background: #fecaca; color: #b91c1c; }

/* Inputs */
.qct-input { width: 100%; border: 1px solid #e2e8f0; border-radius: 6px; padding: 6px 10px; font-size: 1.01rem; font-family: inherit; color: #1e293b; background: #fff; box-sizing: border-box; margin: 0; height: auto; box-shadow: inset 0 1px 2px rgba(0,0,0,0.02); }
.qct-input:focus { border-color: var(--primary-color, #303f9f); outline: none; box-shadow: 0 0 0 3px rgba(48, 63, 159, 0.1); }
.qct-input--category { font-weight: 600; }
.qct-input--check { resize: vertical; min-height: 44px; line-height: 1.4; }
.qct-input--weight { width: 64px; text-align: right; padding-right: 6px; }
.qct-input--conversation { font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace; font-size: 0.85rem; min-height: 140px; resize: vertical; line-height: 1.6; background: #1e293b; color: #f8fafc; border-color: #0f172a; border-radius: 8px; }
.qct-input--conversation:focus { box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.2); border-color: #334155; }
.qct-input--rules { font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace; font-size: 0.85rem; resize: vertical; line-height: 1.6; min-height: 120px; background: #f8fafc; }
.qct-select { width: 100%; border: 1px solid #e2e8f0; border-radius: 6px; padding: 6px 8px; font-size: 0.83rem; background: #fff; color: #1e293b; height: auto; box-shadow: inset 0 1px 2px rgba(0,0,0,0.02); display: block; }
.qct-select:focus { border-color: var(--primary-color, #303f9f); outline: none; box-shadow: 0 0 0 3px rgba(48, 63, 159, 0.1); }
.qct-weight-input-wrap { display: flex; align-items: center; gap: 4px; }
.qct-weight-suffix { font-size: 0.83rem; color: #64748b; font-weight: 600; }

/* Delete row button */
.qct-btn--delete-row { min-width: 34px !important; height: 34px !important; padding: 0 !important; color: #ef4444 !important; border-radius: 6px !important; }
.qct-btn--delete-row:hover { color: #b91c1c !important; background: #fee2e2 !important; }

/* Category Cards */
.qct-categories-list { display: flex; flex-direction: column; gap: 16px; }
.qct-category-card { border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.01); }
.qct-categories-list { display: flex; flex-direction: column; gap: 12px; }
.qct-category-card { border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.qct-category-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.04); border-color: #cbd5e1; }
.qct-category-card__header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.qct-category-card__header-left { display: flex; align-items: center; gap: 8px; cursor: pointer; flex-shrink: 0; }
.qct-category-card__chevron { font-size: 18px; color: #94a3b8; transition: transform 0.2s; }
.qct-category-card__chevron--open { transform: rotate(90deg); color: #64748b; }
.qct-category-card__num { background: var(--primary-color, #303f9f); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; flex-shrink: 0; }
.qct-category-card__name-input { max-width: 300px; font-weight: 700 !important; border: 1px solid #e2e8f0 !important; background: #fff !important; padding: 4px 8px !important; font-size: 0.9rem !important; box-shadow: none !important; color: #1e293b !important; border-radius: 6px; height: auto !important; margin: 0 !important; }
.qct-category-card__name-input:hover { background: #fff !important; border-color: #cbd5e1 !important; }
.qct-category-card__name-input:focus { background: #fff !important; border: 1px solid #cbd5e1 !important; box-shadow: 0 0 0 3px rgba(48, 63, 159, 0.1) !important; }
.qct-category-card__header-right { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.qct-category-card__attr-count { font-size: 0.75rem; color: #64748b; font-weight: 600; background: #e2e8f0; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.qct-category-card__body { padding: 0; background: #fff; }
.qct-category-card__body .qct-scorecard-table { margin: 0; border-radius: 0; }
.qct-category-card__body .qct-scorecard-table thead th:first-child { border-top-left-radius: 0; }
.qct-category-card__body .qct-scorecard-table thead th:last-child { border-top-right-radius: 0; }
.qct-category-card__add-attr { padding: 10px 16px; border-top: 1px solid #f1f5f9; background: #f8fafc; }
/* Empty States */
.qct-empty-state { text-align: center; padding: 48px 24px; color: #64748b; background: #f8fafc; border: 2px dashed #e2e8f0; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.qct-empty-state__icon-wrap { background: #fff; width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.qct-empty-state__icon-wrap i { font-size: 32px; color: #94a3b8; }
.qct-empty-state__icon-wrap--lg { width: 64px; height: 64px; margin-bottom: 16px; }
.qct-empty-state__icon-wrap--lg i { font-size: 32px; }
.qct-empty-state h6 { color: #1e293b; font-weight: 700; font-size: 0.95rem; margin: 0 0 8px 0; }
.qct-empty-state p { font-size: 0.85rem; margin: 0 0 20px 0; max-width: 400px; }
.qct-empty-state--lg { padding: 40px 24px; border: none; background: transparent; }
.qct-empty-state--sm { padding: 20px; border-radius: 8px; }
.qct-btn--create-cta { margin-top: 16px; padding: 0 16px !important; height: 34px !important; line-height: 34px !important; font-size: 0.85rem !important; }

/* Example Cards */
.qct-examples-list { display: flex; flex-direction: column; gap: 12px; }
.qct-example-card { border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.qct-example-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.04); border-color: #cbd5e1; }
.qct-example-card__header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #f8fafc; cursor: pointer; border-bottom: 1px solid transparent; }
.qct-example-card__header:hover { background: #f1f5f9; }
.qct-example-card[open] .qct-example-card__header { border-bottom-color: #e2e8f0; }
.qct-example-card__title-wrap { display: flex; align-items: center; gap: 10px; flex: 1; }
.qct-example-card__chevron { font-size: 18px; color: #94a3b8; transition: transform 0.2s; }
.qct-example-card__chevron--open { transform: rotate(90deg); color: #64748b; }
.qct-example-card__num { background: var(--primary-color, #303f9f); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; flex-shrink: 0; }
.qct-example-card__title-input { max-width: 300px; font-weight: 600; border: 1px solid transparent !important; background: transparent !important; padding: 4px 8px !important; font-size: 0.9rem !important; box-shadow: none !important; color: #1e293b !important; border-radius: 6px; height: auto !important; margin: 0 !important; }
.qct-example-card__title-input:hover { background: rgba(255,255,255,0.7) !important; border-color: #cbd5e1 !important; }
.qct-example-card__title-input:focus { background: #fff !important; border: 1px solid #cbd5e1 !important; box-shadow: 0 0 0 3px rgba(48, 63, 159, 0.1) !important; }
.qct-example-card__actions { display: flex; align-items: center; gap: 12px; }
.qct-example-card__failure-count { font-size: 0.8rem; color: #64748b; font-weight: 600; display: flex; align-items: center; gap: 4px; background: #e2e8f0; padding: 4px 10px; border-radius: 12px; }
.qct-example-card__body { padding: 20px; border-top: 1px solid #e2e8f0; background: #fff; }
.qct-example-field { margin-bottom: 20px; }
.qct-example-field:last-child { margin-bottom: 0; }
.qct-example-field__label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.8rem;  letter-spacing: 0.06em; color: #475569; margin-bottom: 10px; }

/* Failure Chips */
.qct-failure-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qct-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; background: #f1f5f9; border: 1px solid #e2e8f0; color: #475569; cursor: pointer; user-select: none; font-weight: 500; }
.qct-chip:hover { background: #e2e8f0; border-color: #cbd5e1; }
.qct-chip--active { background: #dcfce7 !important; border-color: #86efac !important; color: #166534 !important; font-weight: 600; box-shadow: 0 2px 5px rgba(22, 101, 52, 0.1); }
.qct-chip--active.qct-chip--fatal { background: #fee2e2 !important; border-color: #fca5a5 !important; color: #991b1b !important; box-shadow: 0 2px 5px rgba(153, 27, 27, 0.1); }
.qct-chip--active.qct-chip--critical { background: #fef3c7 !important; border-color: #fcd34d !important; color: #92400e !important; box-shadow: 0 2px 5px rgba(146, 64, 14, 0.1); }
.qct-chip__category { font-weight: 700; }
.qct-chip__sep { color: #94a3b8; font-weight: 400; }
.qct-chip__weight { color: inherit; opacity: 0.7; font-size: 0.75rem; }
.qct-chip--readonly { cursor: not-allowed !important; opacity: 0.6; pointer-events: auto; }

/* Rules Sections */
.qct-rules-sections { display: flex; flex-direction: column; gap: 16px; }
.qct-rules-section { border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.01); }
.qct-rules-section:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.qct-rules-section__header { padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; background: #f8fafc; }
.qct-rules-section__header:hover { background: #f1f5f9; }
.qct-rules-section__header-left { display: flex; align-items: center; gap: 12px; }
.qct-rules-section__num { background: #e2e8f0; color: #475569; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; }
.qct-rules-section__icon { font-size: 20px; color: #64748b; }
.qct-rules-section__label-text { font-weight: 700; font-size: 0.95rem; color: #1e293b; }
.qct-rules-section__chevron { color: #94a3b8; }
.qct-rules-section__chevron--open { transform: rotate(180deg); color: #64748b; }
.qct-rules-section__body { padding: 20px; border-top: 1px solid #e2e8f0; }
.qct-rules-section__hint { font-size: 0.85rem; color: #64748b; margin: 0 0 16px 0; line-height: 1.5; }

/* Colored accents for rules sections */
.qct-rules-section--blue { border-left: 4px solid #3b82f6; }
.qct-rules-section--blue .qct-rules-section__num { background: #eff6ff; color: #1d4ed8; }
.qct-rules-section--blue .qct-rules-section__icon { color: #3b82f6; }
.qct-rules-section--purple { border-left: 4px solid var(--secondary-color); }
.qct-rules-section--purple .qct-rules-section__num { background: #f5f3ff; color: var(--secondary-color); }
.qct-rules-section--purple .qct-rules-section__icon { color: var(--secondary-color); }
.qct-rules-section--orange { border-left: 4px solid #f97316; }
.qct-rules-section--orange .qct-rules-section__num { background: #fff7ed; color: #c2410c; }
.qct-rules-section--orange .qct-rules-section__icon { color: #f97316; }
.qct-rules-section--green { border-left: 4px solid #10b981; }
.qct-rules-section--green .qct-rules-section__num { background: #ecfdf5; color: #047857; }
.qct-rules-section--green .qct-rules-section__icon { color: #10b981; }

/* Modal */
.qct-modal { max-width: 550px; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.qct-modal__header { padding: 24px; background: #f8fafc; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid #e2e8f0; }
.qct-modal__header-icon { background: #fff; width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); color: var(--primary-color, #303f9f); }
.qct-modal__header-icon i { font-size: 28px; }
.qct-modal h5 { margin: 0; font-weight: 700; font-size: 1.25rem; color: #1e293b; }
.qct-modal__body { padding: 24px !important; }
.qct-modal__desc { font-size: 0.95rem; color: #64748b; line-height: 1.5; margin: 0 0 24px 0; }
.qct-modal__desc code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; color: #334155; font-family: monospace; font-size: 0.85rem; }
.qct-modal__field { margin-bottom: 16px; }
.qct-modal__field-label { display: block; font-weight: 600; font-size: 0.85rem; color: #475569; margin-bottom: 8px; }
.qct-modal__input { width: 100% !important; border: 2px solid #e2e8f0 !important; border-radius: 8px !important; padding: 12px 16px !important; font-size: 1rem !important; color: #1e293b !important; box-shadow: none !important; height: auto !important; box-sizing: border-box !important; margin: 0 0 8px 0 !important; }
.qct-modal__input:focus { border-color: var(--primary-color, #303f9f) !important; box-shadow: 0 0 0 4px rgba(48, 63, 159, 0.1) !important; outline: none; }
.qct-modal__hint { font-size: 0.8rem; color: #94a3b8; }
.qct-modal__hint--error { color: #ef4444; font-weight: 600; display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.qct-modal__hint-icon { font-size: 14px; }
.qct-modal__footer {  border-top: 1px solid #f1f5f9 !important; display: flex !important; justify-content: flex-end !important; gap: 12px !important; background: #f8fafc !important; }
.qct-modal__cancel { color: #64748b !important; font-weight: 600 !important; border-radius: 8px !important; text-transform: none !important; }

/* --- QC Templates Utilities --- */
.qct-mr-sm { margin-right: 4px; }
.qct-mb-0 { margin-bottom: 0 !important; }
.qct-mt-3 { margin-top: 12px; }
.qct-icon-14 { font-size: 14px !important; }
.qct-icon-16 { font-size: 16px !important; }
.qct-icon-32 { font-size: 32px !important; }

.qct-config-section { padding: 16px 24px 0 24px; }

.qct-advanced-summary {
  cursor: pointer;
  color: #64748b;
  font-weight: 600;
  font-size: 0.85rem;
  user-select: none;
  outline: none;
}

.qct-advanced-icon {
  font-size: 14px;
  vertical-align: middle;
  margin-right: 4px;
}

.qct-editor-scrollable {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  display: block;
}

.qct-fieldset-reset {
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.qct-panel-fixed {
  overflow-y: visible !important;
  flex: none !important;
}


/* Quality Control Manual validation error font size */
#CreateQC span[name*="spnError"] {
    font-size: 14px;
}
.qcd-striped-table .table-header-cell {
  background-color: #fff !important;
  color: #111827 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 14px 5px !important;
}
.qcd-striped-table .table-cell {
  padding: 12px 5px !important;
  font-weight: 400;
  color: #0f172a; 
  line-height: 1.12;
  white-space: normal;
  word-break: break-word;
  font-family: "Inter", "SF Pro Display", system-ui, -apple-system, "Segoe UI", "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.qcd-striped-table .table-header{
    box-shadow: none !important;
}
.qcd-striped-table tbody:nth-of-type(odd) tr {
    background-color: #F8F9FA !important;
    border-bottom: 0 !important;
}

.qcd-striped-table tbody:nth-of-type(even) tr {
    background-color: #fff !important;
    border-bottom: 0 !important;
}
.qcd-filter-panel{
    padding: 16px 16px 0 !important;
}
.qcd-filter-panel label {
    margin: 12px 0 0 !important;
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 14px !important;
    margin-bottom: 10px !important;
    display: block !important;
    position: static !important;
    transform: none !important;
}
/*overwrite on filter-panel__body without conflict */
.qcd-filter-panel input[type="date"].ng-empty::-webkit-datetime-edit {
    color: #000 !important;
}
.qcd-filter-panel input[type="date"].ng-empty::before {
    content: attr(placeholder);
    position: relative !important;
    color: #000 !important;
}


.qcd-filter{
    width: 100%;
}
.qcd-filter .select2-container {
    width: 100% !important;
}

.qcd-filter .select2-selection--multiple {
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 0 1px !important;
}

.qcd-filter .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: auto !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    padding: 0 0 1px !important;
}

.qcd-filter .select2-selection--multiple .select2-selection__choice {
    width: auto !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    margin-top: 2px !important;
}

.qcd-filter .select2-selection--multiple .select2-selection__choice__remove {
    position: static !important;
    order: 2 !important;
    margin: 0 !important;
}
 .qcd-filter .select2-selection__rendered::-webkit-scrollbar {
    height:4px !important;
}

.qcd-filter .select2-selection__rendered::-webkit-scrollbar-track {
    background: transparent !important;
}

.qcd-filter .select2-selection__rendered::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
}

.qcd-filter .select2-selection__rendered::-webkit-scrollbar-thumb:hover {
    background: #777;
}
.qcd-adjustment{
    padding: 0 0.75rem !important;
}
.disable-field input[disabled]{
  color: #c5c5c5 !important;
  font-size: 14px !important;
}

#CreateQC input[disabled],
#CreateQC input[readonly] {
  border-bottom: 1px solid rgba(0, 0, 0, .42) !important;
}

#CreateQC .select-wrapper input.select-dropdown,
#CreateQC .select-wrapper.disabled input.select-dropdown,
#CreateQC .select-wrapper input.select-dropdown:disabled {
  border-bottom: 1px solid #9e9e9e !important;
  font-size: 1rem !important;
  font-family: inherit !important;
  font-weight: 400 !important;
}


.qcd-page {
  --qcd-txt2:         #56585e;
  --qcd-purple:       #622695;
  --qcd-purple-lt:    #ede9ff;
  --qcd-teal:         #EF4D29;
  --qcd-teal-lt:      #ffedd5;
  --qcd-green:        #16a34a;
  --qcd-amber:        #d97706;
  --qcd-red:          #dc2626;
  --qcd-orange:       #ea580c;

  background: #f0f2f5;
  padding: 20px 28px 40px;
  font-family: inherit;
  color: #000;
  min-height: calc(100vh - 60px);
}


/* ── Loading ────────────────────────────────────────────────── */
.qcd-loading {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; padding: 60px 0;
  color: var(--qcd-txt2); font-size: 13px;
}
.qcd-loading__spinner {
  width: 32px; height: 32px;
  border: 3px solid #e8e8e8;
  border-top-color: var(--qcd-purple);
  border-radius: 50%;
  animation: qcd-spin .7s linear infinite;
}
@keyframes qcd-spin { to { transform: rotate(360deg); } }

/* ── Card ───────────────────────────────────────────────────── */
.qcd-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
  margin-bottom: 18px;
  overflow: hidden;
}
.qcd-card__header {
  padding: 13px 20px;
  border-bottom: 1px solid #f0f0f0;
}
.qcd-card__title {
  font-size: 13px;
  letter-spacing: .7px; 
  color: var(--qcd-txt2);
  font-weight: 700;
}

/* ── Interaction Details ────────────────────────────────────── */
.qcd-interaction-details__row {
  display: flex;
  align-items: center;
}
.qcd__row{
  display: flex;    
  justify-content: space-between;
  flex-wrap: wrap;
}

/* [1] Total Score side panel */
.qcd-total-score {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px 28px; gap: 8px;
  border-right: 2px solid #e8e8e8;
  min-width: 148px;
}
.qcd-total-score__ring {
  width: 100px; height: 100px; border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border: 5px solid var(--qcd-purple);
}
.qcd-total-score__num {
  font-size: 22px; font-weight: 800; color: var(--qcd-purple);
}

.qcd-total-score__label {
  font-size: 11px; font-weight: 600; color: var(--qcd-txt2); text-align: center;
}

/* Detail tiles grid */
.qcd-interaction-details__grid {
  display: grid; 
  grid-template-columns: repeat(3, 1fr);
   flex: 1;
}
.qcd-detail-tile {
  padding: 14px 18px;
  border-right: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}
.qcd-detail-tile:nth-child(3n) { border-right: none; }
.qcd-detail-tile:nth-last-child(-n+3) { border-bottom: none; }
.qcd-detail-tile__label {
  display: block; font-size: 11px; color: var(--qcd-txt2);
  margin-bottom: 5px; font-weight: 500;
}
.qcd-detail-tile__value { font-size: 14px; color: #000; }
.qcd-detail-tile__value--bold { font-size: 15px; font-weight: 700; }
.qcd-detail-tile__value--channel {
  display: flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 700; 
}
.qcd-detail-tile__value--channel i { font-size: 18px; }

/* ── Status pill ────────────────────────────────────────────── */
.qcd-status-pill {
  display: inline-block; border-radius: 50px;
  padding: 3px 12px; font-size: 12px; font-weight: 600;
  background: #f0f0f0; color: var(--qcd-txt2);
}

/* ── Tabs ───────────────────────────────────────────────────── */
.qcd-tabs {
  display: flex; align-items: flex-end;
  border-bottom: 2px solid #e8e8e8; margin-bottom: 18px;
}
.qcd-tabs__tab {
  background: none; border: none;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  padding: 10px 20px; font-size: 14px; font-weight: 500;
  color: var(--qcd-txt2); cursor: pointer;
  transition: color .15s, border-color .15s; font-family: inherit;
}
.qcd-tabs__tab--active {
  color: var(--qcd-purple);
  border-bottom-color: var(--qcd-purple);
  background-color: transparent !important;
}
.qcd-tabs__tab:active{
  background-color: transparent !important;
}
.qcd-tabs__count { font-size: 12px; color: var(--qcd-purple); }


/* ── [3][4] Score cards grid ────────────────────────────────── */
.qcd-scorecards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.qcd-scorecard-item {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
  overflow: hidden;
  transition: box-shadow .15s;
  padding: 5px;
  display: flex;
  flex-direction: column;
}

.qcd-scorecard-item__header {
  display: flex; align-items: center;
  justify-content: space-between ;
  gap: 10px; 
  flex-wrap: wrap;
  padding: 8px 16px 4px;
  border-bottom: 1px solid #f0f0f0;
}
.qcd-scorecard-item__num {
  min-width: 35px; height: 35px; border-radius: 999px;
  padding: 0 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
  line-height: 1; white-space: nowrap;
}
.qcd-scorecard-item__num--agent    { background: var(--qcd-purple-lt); color: var(--qcd-purple); }
.qcd-scorecard-item__num--ai { background: var(--qcd-teal-lt);   color: var(--qcd-teal); }

.qcd-scorecard-item__meta {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0 10px;
  flex-wrap: wrap;
}

/* [4] Type badge */
.qcd-scorecard-item__date { 
    font-size: 13px; 
    color: var(--qcd-txt2);
}
.qcd-scorecard-item__agent {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.qcd-scorecard-item__agent__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qcd-scorecard-item__agent__id {
  font-size: 11px;
  background: var(--qcd-purple-lt); color: var(--qcd-purple);
  border-radius: 20px;
  padding: 2px 10px;
}
.qcd-msg-link {
  font-size: 16px; color: var(--qcd-purple); cursor: pointer;
  display: inline-flex; align-items: center; gap: 2px; margin-top: 2px;
}

.qcd-scorecard-item__divider {
  width: 0.5px;
  height: 28px;
  background: #e0ddd6;
  flex-shrink: 0;
  margin: 0 7px;
}

.qcd-scorecard-item__evaluator {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.qcd-scorecard-item__evaluator__label {
    font-size: 14px;
    font-weight: 900;
    margin-right: 5px;
    color: #1d9e75;
}
.qcd-scorecard-item__evaluator__label i,
.qcd-scorecard-item__date i{
    font-size: 12px;
}
.qcd-scorecard-item__evaluator__name,
.qcd-scorecard-item__agent__name {
    font-size: 14px;
    font-weight: 700;
}
.qcd-tag.qcd-tag--neutral {
    display: block;
    text-align: start;
}
.qcd-tag.qcd-tag--neutral span[ng-if] {
    word-break: break-all;
}
.qcd-tag.qcd-tag--neutral .qcd-see-more-btn {
    word-break: keep-all;    
}
.qcd-go-conv{
    padding: 5px !important;
    font-size: 11px !important;
}
.qcd-scorecard-item__score-wrap { display: flex; align-items: flex-start; }
.qcd-scorecard-item__score      { font-size: 22px; font-weight: 800; color: #e60000; }

/* Tags */
.qcd-scorecard-item__tags {
  padding: 0 8px 8px;
  flex: 1;
}
.qcd-tag-group { 
    display: grid;
    grid-template-columns: 20% minmax(0, max-content);
    align-items: center;
    gap: 15px;
}

.qcd-tag-label, .qcd-scorecard-item__agent__label {
  font-size: 12px; 
  color: var(--qcd-txt2); letter-spacing: .5px;
}
.qcd-tag {
  display: inline; border-radius: 10px;
  padding: 3px 9px; font-size: 14px;
  border: 1px solid;
  margin: 5px 0;
  font-weight: 900;
}
.qcd-tag--neutral   { background: #f3f4f6; color: #2E3745; border-color: #d1d5db; }

.qcd-tag.qcd-tag--dispute {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}

.qcd-tag.qcd-tag--dispute .material-icons {
  font-size: 16px;
  position: relative;
  top: -1px;
}

/* Truncation utility for tags (e.g. resolution comments) */
.qcd-tag--truncate {
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: bottom;
}

.qcd-comment-text {
  white-space: pre-wrap;
  word-break: break-word;
}
.qcd-supervisor-comment-detail {
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.5;
}

.qcd-see-more-btn {
  margin-inline-start: 8px;
  cursor: pointer;
  color: var(--qcd-purple);
  font-weight: 700;
  text-decoration: none;
  font-size: 12px;
  display: inline-block;
}

.qcd-see-more-btn:hover {
  text-decoration: underline;
}

/* [6] Action buttons */
.qcd-scorecard-item__footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 7px;
}
.qcd-scorecard-item__actions {
  display: flex; align-items: center; gap: 5px;
  margin-left: auto;
}
.qcd-scorecard-item__confirm-group { display: flex; gap: 6px; flex: 1;}
.qcd-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: 6px;
  font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid;
}
.qcd-btn i { font-size: 22px; }
.qcd-btn--confirm { background-color: var(--qcd-purple); color: white;}
.qcd-btn--reject  { background-color: gray; color: white;}
.qcd-btn--delete  { background-color: var(--qcd-red); color: white; }

.qcd-btn--view    { background: #e0f2fe; color: #0369a1; border-color: #7dd3fc; padding: 5px 10px; }
.qcd-btn--dispute {
    background-color: #6D298F !important;
    color: white;
}
.qcd-btn--dispute:hover, .qcd-btn--dispute:focus {
    background-color: #974ccc !important;
}
.qcd-btn--dispute i { font-size: 16px; }
.qcd-btn--modal-secondary {
  background: #ffffff !important;
  color: var(--qcd-txt2);
  border-color: #d1d5db;
}
.qcd-btn--dispute-submit {
  background: linear-gradient(135deg, var(--qcd-purple), #4f46e5) !important;
  color: #ffffff;
  border-color: #63358C;
  box-shadow: 0 12px 24px rgba(108, 99, 255, 0.25);
}
.qcd-btn--dispute-submit[disabled] {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

.qcd-scorecard-item__dispute-state {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.qcd-dispute-modal {
  --qcd-border-light: #f0f0f0;
  --qcd-txt: #1a1a2e;
  --qcd-txt2: #6b7280;
  --qcd-txth: #9ca3af;
  --qcd-purple: #6c63ff;
  width: min(640px, 92%) !important;
  overflow: hidden;
}

.qcd-dispute-modal__content {
  padding: 0 !important;
}

.qcd-dispute-modal__header {
  padding: 24px 28px 12px;
  border-bottom: 1px solid var(--qcd-border-light);
}

.qcd-dispute-modal__eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--qcd-purple);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}
.qcd-dispute-modal__subtitle{
    word-break: break-all;      
    overflow-wrap: break-word;  
    margin-top: 8px;            
    color: var(--grey-text);
}
.qcd-dispute-modal__header h4 {
  margin: 0;
  color: var(--qcd-txt);
  font-size: 24px;
  font-weight: 700;
}

.qcd-dispute-modal__subtitle {
  margin: 8px 0 0;
  color: var(--qcd-txt2);
  font-size: 13px;
  line-height: 1.5;
}

.qcd-dispute-modal__field {
  padding: 22px 28px 8px;
}

.qcd-dispute-modal__label {
  display: block;
  margin-bottom: 10px;
  color: var(--qcd-txt);
  font-size: 13px;
  font-weight: 700;
}

.qcd-dispute-modal__textarea {
  width: 100%;
  min-height: 144px;
  max-height: 144px;
  padding: 14px 16px;
  border: 1px solid #d7def0;
  border-radius: 4px;
  background: #f8fafc;
  color: var(--qcd-txt);
  font: inherit;
  resize: none;
  box-sizing: border-box;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  overflow-y: auto !important;
}

.qcd-dispute-modal__textarea:focus {
  border-color: var(--qcd-purple);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.12);
}

.qcd-dispute-modal__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--qcd-txth);
  font-size: 12px;
  width: 100%;
}

.qcd-dispute-modal__hint {
  color: var(--qcd-txt2);
}

.qcd-dispute-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 28px 24px;
  border-top: 1px solid var(--qcd-border-light);
  background: #ffffff;
}

/* ── Timeline ───────────────────────────────────────────────── */
.qcd-timeline-panel__body { padding: 20px; }
.qcd-timeline { position: relative; padding-inline-start: 24px; }
.qcd-timeline__item {
  position: relative; display: flex; gap: 14px; padding-bottom: 20px;
}
.qcd-timeline__item::before {
  content: ''; position: absolute; inset-inline-start: -18px; top: 22px;
  bottom: 0; width: 1px; background: #e8e8e8;
}
.qcd-timeline__item:last-child::before { display: none; }
.qcd-timeline__dot {
  position: absolute; inset-inline-start: -24px; top: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #e8e8e8; background: #ffffff;
}
.qcd-timeline__dot--agent { border-color: var(--qcd-purple); background: var(--qcd-purple-lt); }
.qcd-timeline__dot--ai  { border-color: var(--qcd-teal);   background: var(--qcd-teal-lt); }
.qcd-timeline__content { display: flex; flex-direction: column; gap: 2px; }
.qcd-timeline__action { font-size: 13px; font-weight: 500; color: #000; }
.qcd-timeline__time   { font-size: 11px; color: var(--qcd-txt2); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1160px) {
  .qcd-scorecard-item__date { font-size: 12px; margin: 0 5px;}
  .qcd-scorecard-item__evaluator { 
    flex-direction: column;
    align-items: flex-start;
  }
  .qcd-scorecard-item__divider {
    display: none;
  }
}
@media (max-width: 1090px) {
  .qcd-interaction-details__grid { grid-template-columns: repeat(2, 1fr); }
  .qcd-detail-tile:nth-child(2n) { border-right: none; }
  .qcd-detail-tile:nth-last-child(-n+2) { border-bottom: none; }
  .qcd-scorecards-grid { grid-template-columns: 1fr; }
  .qcd-score-summary__body { flex-direction: column; }
/* .qcd-scorecard-item__confirm-group { flex-direction: row; } */
}
@media (max-width: 600px) {
  .qcd-page { padding: 12px 14px 30px; }
  .qcd-interaction-details__row { flex-direction: column; }
  .qcd-total-score { border-right: none; border-bottom: 2px solid var(--qcd-border); flex-direction: row; padding: 16px 20px; }
  .qcd-scorecard-item__dispute-state { align-items: flex-start; }
  .qcd-dispute-modal__header,
  .qcd-dispute-modal__field,
  .qcd-dispute-modal__footer { padding-left: 18px; padding-right: 18px; }
  .qcd-dispute-modal__footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .qcd-dispute-modal__footer .qcd-btn {
    width: 100%;
    justify-content: center;
  }
  .qcd-total-score { border-right: none; border-bottom: 2px solid #e8e8e8; flex-direction: row; padding: 16px 20px; }
}

/* =========================================
   Dispute Management Core Styles (ported from itr-240-qc-module-ui-revamp-dispute-management @43adc7a)
   ========================================= */
/*Dispute Management */


.dispute-management-wrapper .filter-panel.filter-panel--open,
.dispute-management-wrapper .filter-panel__body,
.dispute-management-wrapper #dispute-status-filter-container,
.dispute-management-wrapper #dispute-status-filter-container .select-wrapper,
.dispute-management-wrapper #dispute-agent-filter-container,
.dispute-management-wrapper #dispute-agent-filter-container .dispute-filter-agent-wrapper {
    overflow: visible !important;
}

.dispute-management-wrapper #dispute-agent-filter-container {
    position: relative;
    z-index: 999;
}

.dispute-management-wrapper #dispute-status-filter-container {
    position: relative;
    z-index: 1000;
}

.dispute-management-wrapper #dispute-status-filter-container .select-wrapper {
    position: relative !important;
}
.dispute-management-wrapper #dispute-status-filter-container .select-wrapper .dropdown-content {
    top: 45px !important;
}
.dispute-management-wrapper #dispute-status-filter-container .select-wrapper .dropdown-content li.disabled {
    display: none !important;
}
.dispute-management-wrapper #dispute-status-filter-container:not(.is-placeholder) .select-wrapper input.select-dropdown {
    color: transparent !important; 
}
.dispute-management-wrapper .status-chips-overlay {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - 1.5rem);
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 10px;
    pointer-events: none; 
    z-index: 10;
    overflow: hidden;
}

/* ── Chip-input box ─────────────────────────────────────────── */
.dispute-management-wrapper .dispute-filter-agent-wrapper { margin-top: 0; position: relative; }
.dispute-management-wrapper .agent-filter-box {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 5px;
    height: 44px;
    padding: 0 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    cursor: text;
    box-sizing: border-box;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.dispute-management-wrapper .agent-filter-box:hover { border-color: #adb5bd; }
.dispute-management-wrapper .agent-filter-box--open {
    border-color: #80bdff !important;
    box-shadow: 0 0 0 2px rgba(128,189,255,0.25) !important;
}

/* ── Selected chips ─────────────────────────────────────────── */
.dispute-management-wrapper .agent-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #ede7f6;
    color: #4a1f8c;
    border-radius: 20px;
    padding: 2px 6px 2px 9px;
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
    max-width: 115px;
    flex-shrink: 0;
    transition: background 0.14s ease;
}
.dispute-management-wrapper .agent-filter-chip.ng-leave { display: none !important; }
.dispute-management-wrapper .agent-filter-chip:hover { background: #d8c8f5; }
.dispute-management-wrapper .agent-filter-chip-text {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 85px;
}
.dispute-management-wrapper .agent-filter-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(74,31,140,0.15);
    color: #4a1f8c;
    font-size: 9px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.14s ease, color 0.14s ease;
}
.dispute-management-wrapper .agent-filter-chip-remove:hover { background: #7442A1; color: #fff; }

/* ── +N overflow badge ──────────────────────────────────────── */
.dispute-management-wrapper .agent-filter-more-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 7px;
    border-radius: 20px;
    background: #7442A1;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    user-select: none;
    transition: background 0.14s ease;
}
.dispute-management-wrapper .agent-filter-more-badge.ng-leave { display: none !important; }
.dispute-management-wrapper .agent-filter-more-badge:hover { background: #5e3283; }

/* ── Inline search input ────────────────────────────────────── */
.dispute-management-wrapper .agent-filter-input {
    flex: 1 1 50px;
    min-width: 40px;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    height: 26px !important;
    line-height: 26px !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 13px !important;
    background: transparent !important;
    color: #333;
}
.dispute-management-wrapper .agent-filter-input::placeholder { color: #aaa !important; }

/* ── Overflow popup ─────────────────────────────────────────── */
.dispute-management-wrapper .agent-filter-overflow-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 9999;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.10);
    min-width: 230px;
    max-width: 200px;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
}
.dispute-management-wrapper .agent-filter-overflow-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    background: #f8f5fc;
    border-bottom: 1px solid #ede7f6;
    font-size: 12px;
    font-weight: 600;
    color: #4a1f8c;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 2;
}
.dispute-management-wrapper .agent-filter-overflow-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #7442A1;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
.dispute-management-wrapper .agent-filter-overflow-scroll {
    
}
.dispute-management-wrapper .agent-filter-overflow-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-bottom: 1px solid #f5f0fb;
    transition: background 0.12s ease;
}
.dispute-management-wrapper .agent-filter-overflow-item:last-child { border-bottom: none; }
.dispute-management-wrapper .agent-filter-overflow-item:hover { background: #faf7fe; }
.dispute-management-wrapper .agent-filter-overflow-name {
    flex: 1;
    font-size: 13px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 10px;
}
.dispute-management-wrapper .agent-filter-overflow-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(74,31,140,0.10);
    color: #7442A1;
    font-size: 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.14s ease, color 0.14s ease;
}
.dispute-management-wrapper .agent-filter-overflow-remove:hover { background: #7442A1; color: #fff; }


  
.dispute-trigger-btn {
    padding: 0 5px !important;
}

.dispute-trigger-icon {
    font-size: 24px !important;
}

.dispute-dropdown-item {
    font-size: 16px !important;
    padding: 8px 12px !important;
}

.dispute-management-wrapper .dispute-actions-col,
.dispute-management-wrapper .dispute-actions-cell {
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    overflow: visible !important;
    height: 56px;
}

.dispute-management-wrapper .dispute-actions-inline {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.dispute-management-wrapper .dispute-action-btn {
    width: 32px;
    height: 32px;
    min-width: unset;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background-color: transparent !important;
    box-shadow: none !important;
    line-height: 1;
    transition: background-color 0.18s ease, opacity 0.18s ease;
}

.dispute-management-wrapper .dispute-action-btn .material-icons {
    font-size: 18px;
    line-height: 1;
    display: flex;
}

.dispute-management-wrapper .dispute-action-btn:hover,
.dispute-management-wrapper .dispute-action-btn:focus {
    text-transform: none;
}

.dispute-management-wrapper .dispute-action-btn-approve {
    background-color: transparent !important;
    color: #2e7d32 !important;
    border: 2px solid #2e7d32 !important;
    box-shadow: none !important;
}

.dispute-management-wrapper .dispute-action-btn-approve:hover,
.dispute-management-wrapper .dispute-action-btn-approve:focus {
    background-color: rgba(43, 135, 48, 0.356) !important;
    color: #2e7d32 !important;
    border-color: #2e7d32 !important;
}

.dispute-management-wrapper .dispute-action-btn-reject {
    background-color: transparent !important;
    color: #c62828 !important;
    border: 2px solid #c62828 !important;
    box-shadow: none !important;
    margin-right: 20px;
}

.dispute-management-wrapper .dispute-action-btn-reject:hover,
.dispute-management-wrapper .dispute-action-btn-reject:focus {
    background-color: rgba(202, 32, 32, 0.314) !important;
    color: #c62828 !important;
    border-color: #c62828 !important;
}

.dispute-management-wrapper.modal .modal-footer .dispute-action-btn {
    float: none !important;
    height: 32px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.dispute-management-wrapper.modal .modal-footer .dispute-action-btn-approve {
    margin-right: 20px !important;
}


.dispute-management-wrapper {
    overflow-x: visible;
}

.dispute-management-wrapper #dispute-table {
    margin-bottom: 0;
}

.dispute-management-wrapper .dispute-table-card {
    box-shadow: none !important;
}

.dispute-management-wrapper .dispute-table-card-content {
    padding: 0 !important;
}

.dispute-management-wrapper .dispute-name-cell {
    width: 170px;
    max-width: 170px;
     white-space: nowrap;

}


.dispute-management-wrapper .dispute-date-cell {
    min-width: 180px;
}

.dispute-management-wrapper .dispute-comment-cell {
    width: 210px;
    max-width: 220px;
    min-width: 215px;
    text-align: left;
}

.dispute-management-wrapper .dispute-comment-trigger {
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
    min-height: 0;
    height: auto;
    line-height: 1.5;
    font-size: inherit;
    font-weight: inherit;
    color: inherit !important;
    text-align: left;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dispute-management-wrapper .dispute-comment-trigger:hover,
.dispute-management-wrapper .dispute-comment-trigger:focus {
    background: transparent !important;
    text-decoration: underline;
}

.dispute-comment-full {
   
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.6;
    color: black;
}

.dispute-management-meta {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.dispute-resolve-input-container {
    margin-top: 15px;
    margin-bottom: 0px;
}

.dispute-resolve-label {
    font-size: 14px;
    color: #333;
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.dispute-resolve-textarea {
    display: block !important;
    width: 100% !important;
    height: 180px !important;
    overflow-y: auto !important;
    padding: 10px !important;
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    resize: none !important;
    font-size: 14px !important;
    background-color: #fff !important;
    color: #333 !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.18s ease-in-out, box-shadow 0.18s ease-in-out !important;
    margin-bottom: 0 !important;
}

.dispute-resolve-textarea:focus {
    border-color: #80bdff !important;
    box-shadow: 0 0 0 2px rgba(128, 189, 255, 0.25) !important;
}

.dispute-management-wrapper .dispute-pagination-row {
    display: flex;
    align-items: center;
    margin-top: 24px;
    margin-bottom: 0;
    padding-top: 4px;
}

.dispute-management-wrapper .dispute-pagination-summary {
    font-weight: 500;
    color: #536171;
    line-height: 40px;
    font-size: 16px;
}

.dispute-management-wrapper .dispute-pagination {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: bold;
}

.dispute-management-wrapper .dispute-pagination li {
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 4px;
    background: transparent;
}

.dispute-management-wrapper .dispute-pagination li a {
    color: #4b5563;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 10px;
    font-weight: 900;
}

.dispute-management-wrapper .dispute-pagination li a i.material-icons {
    font-size: 24px;
    line-height: 1;
}

.dispute-management-wrapper .dispute-pagination li.active {
    background-color: #621e9e;
}

.dispute-management-wrapper .dispute-pagination li.active a {
    color: #ffffff;
    font-weight: 500;
}

.dispute-management-wrapper .dispute-pagination li:not(.active):not(.disabled) a:hover {
    color: #ffffff;
    background:#974CCC;
    border-radius: 4px;
}

.dispute-management-wrapper .dispute-pagination li.disabled a,
.dispute-management-wrapper .dispute-pagination li.disabled a i.material-icons {
    pointer-events: none;
    color: #d9d2de;
}

.dispute-management-wrapper .dispute-pagination-left,
.dispute-management-wrapper .dispute-pagination-center
 {
    display: flex;
    align-items: center;
}

.dispute-management-wrapper .dispute-pagination-center {
    justify-content: center;
}

.dispute-management-wrapper .dispute-pagination-right {
    justify-content: flex-end;
}



/* Dispute Status Badges */
.dispute-management-wrapper .dispute-status-inline {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    text-transform: none;
    width: 110px;
    text-align: left;
}
.qcd-striped-table .dispute-status-inline {
    display: flex;
    width: 80px;
    justify-content: flex-start;
    margin: 0 auto;
}

.arabic.dispute-management-wrapper .dispute-status-inline {
    text-align: right;
}

.dispute-management-wrapper .dispute-status-inline .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 8px;
}

.dispute-management-wrapper .dispute-status-inline.status-pending {
    background-color: transparent !important;
    color: #f59e0b;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.dispute-management-wrapper .dispute-status-inline.status-approved {
    background-color: transparent !important;
    color: #10b981;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.dispute-management-wrapper .dispute-status-inline.status-rejected {
    background-color: transparent !important;
    color: #ef4444;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.dispute-management-wrapper .dispute-status-inline.status-expired {
    color: #6b7280;
    font-weight: 600 !important;
    font-size: 14px !important;
}

/* Modal Footer Layout */
.modal-footer-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
}

/* Uniform action buttons */
.btn-uniform {
    width: 120px;
    height: 36px;
    line-height: 36px; /* Matches height for perfect vertical centering */
    padding: 0;
    font-size: 14px;
    text-align: center;
    letter-spacing: 0.5px;
    border-radius: 2px;
}

/* Approve button */
.btn-approve {
    background-color: #621e9e !important;
    color: #ffffff !important;
}

.btn-approve:hover {
    background-color: #974ccc !important;
}
.dispute-management-wrapper .dispute-evaluation-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}
.dispute-management-wrapper .dispute-evaluation-footer .btn {
    margin: 0;
}


/* ========================================
   Dispute Management Filter Borders
   ======================================== */
.dispute-management-wrapper .filter-panel__body .input-field input[type="text"],
.dispute-management-wrapper .filter-panel__body .select-wrapper input.select-dropdown {
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    padding: 0 12px !important;
    height: 44px !important;
    box-sizing: border-box;
    background-color: #fff !important;
    font-size: 14px;
    margin-bottom: 0 !important;
}
/* Remove underline and apply border box for Agent Name select2 filter to perfectly match Status filter */
.dispute-management-wrapper .filter-panel__body .qcd-filter .select2-container--default {
    border-bottom: none !important;
}

.dispute-management-wrapper .filter-panel__body .qcd-filter .select2-container--default .select2-selection--multiple {
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    height: 44px !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
}

.dispute-management-wrapper .filter-panel__body .qcd-filter .select2-search__field {
    margin: 0 !important;
    height: 42px !important;
    line-height: 42px !important;
}

.dispute-management-wrapper .filter-panel__body .select-wrapper input.select-dropdown {
    padding-right: 34px !important;
    cursor: pointer !important;
}

.dispute-management-wrapper .filter-panel__body .select-wrapper .caret {
    display: block !important;
    top: 50% !important;
    right: 12px !important;
    transform: translateY(-50%) !important;
    z-index: 2 !important;
    pointer-events: none !important;
    fill: #757575 !important;
}

.dispute-management-wrapper .filter-panel__body .input-field input[type="text"]:focus,
.dispute-management-wrapper .filter-panel__body .select-wrapper input.select-dropdown:focus {
    border-color: #80bdff !important;
    box-shadow: 0 0 0 2px rgba(128, 189, 255, 0.25) !important;
}

.dispute-management-wrapper .filter-panel__body label {
    color: #000 !important;
    font-weight: bold !important;
}

.dispute-management-wrapper .filter-panel__body .input-field input[type="text"]::placeholder,
.dispute-management-wrapper .filter-panel__body .select-wrapper input.select-dropdown::placeholder {
    color: gray !important;
    opacity: 1 !important;
}

.dispute-management-wrapper .filter-panel__body .is-placeholder .select-wrapper input.select-dropdown {
    color: gray !important;
}

/* Dispute Filter — action buttons inline beside the filter fields */
.dispute-management-wrapper .filter-panel__body .dispute-filter-buttons-inline {
    display: flex;
    flex-direction: column;
}
/* Invisible spacer keeps the buttons aligned to the input line (matches field label height) */
.dispute-management-wrapper .filter-panel__body .dispute-filter-buttons-spacer {
    visibility: hidden;
}
.dispute-management-wrapper .filter-panel__body .dispute-filter-buttons-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-height: 44px;
}
.dispute-management-wrapper .filter-panel__body .dispute-filter-buttons-row .btn {
    margin: 0;
}

/* Dispute Management — compact breadcrumb bar */
.dispute-management-wrapper .ticket-list-header {
    padding: 8px 15px;
}

/* Dispute Management — compact filter panel (trim excess vertical whitespace) */
.dispute-management-wrapper .filter-panel__header {
    padding: 6px 16px;
}
.dispute-management-wrapper .filter-panel__body {
    padding: 10px 16px 12px;
}
/* The form uses percentage-based mt-1 (~9px) and pt-2 (~18px) which add large top gaps */
.dispute-management-wrapper .filter-panel__body form.mt-1 {
    margin-top: 0 !important;
}
.dispute-management-wrapper .filter-panel__body .row.pt-2 {
    padding-top: 4px !important;
}
/* Drop the default 20px row bottom margin so fields sit tight to the panel edge */
.dispute-management-wrapper .filter-panel__body .row {
    margin-bottom: 0;
}
/* Tighten the gap between field labels and their inputs */
.dispute-management-wrapper .filter-panel__body label {
    margin-bottom: 4px;
}

.dispute-management-wrapper .ticket-list-header { z-index: 1002 !important; }
.dispute-evaluation-modal { z-index: 10005 !important; }
.dispute-evaluation-details-row { margin-top: 20px; }
.dispute-evaluation-details-row strong { font-weight: 800; color: #000; }
.dispute-evaluation-details-col { margin-bottom: 15px; }
.dispute-comment-row { margin-top: 15px; }
.dispute-evaluation-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
}
.dispute-evaluation-actions {
    margin: 0;
    background: transparent;
    padding: 0;
}
.dispute-evaluation-close-btn { margin: 0; }

/* =========================================
   Dispute Comment Styling
   ========================================= */
.dispute-comment-box {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 14px 16px 10px;
    margin-top: 8px;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #5c2aa5;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}


/* Text content inside comment box — carries pre-wrap so the box itself is whitespace-neutral */
.dcb-text {
    white-space: pre-wrap;
    word-break: break-word;
}

.dcb-text--clamped {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* Toggle row below the text */
.dcb-toggle {
    margin-top: 8px;
    padding-top: 6px;
}

/* Professional pill-style toggle button */
.dispute-msg-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    font-weight: 600;
    color: #5c2aa5;
    cursor: pointer;
    text-decoration: none;
    padding: 2px 8px 2px 4px;
    border-radius: 20px;
    background: rgba(92, 42, 165, 0.07);
    transition: background 0.15s;
}
.dispute-msg-toggle-btn:hover {
    background: rgba(92, 42, 165, 0.14);
    text-decoration: none;
}
.dcb-toggle-icon {
    font-size: 16px !important;
    vertical-align: middle;
}


.dispute-comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    font-weight: 600;
    color: #424242;
}

.dispute-comment-header i {
    margin-right: 6px;
    font-size: 18px;
    color: #757575;
}
/* Dispute Agent Search Dropdown */
.dispute-agent-dropdown {
    display: block;
    opacity: 1;
    position: absolute;
    top: 45px !important;
    left: 0;
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
}
.dispute-agent-label {
    width: 100%;
    display: block;
    cursor: pointer;
    padding: 14px 16px;
    pointer-events: none;
}
.dispute-agent-highlight {
    color: #7442A1;
    font-weight: bold;
}
.dispute-agent-empty {
    padding: 14px 16px;
    display: block;
}
.dispute-comment-modal-row {
    margin-top: 10px;
    margin-bottom: 0;
}
.supervisor-comment-author {
    font-weight: normal;
    opacity: 0.8;
    font-size: 0.9em;
}

/* Quality Control and Agent Scores filter placeholders - Browser compatible */
#txtSeverity1::placeholder,
#uniqueNumQc::placeholder {
    font-family: 'Muli', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}
#txtSeverity1::-webkit-input-placeholder,
#uniqueNumQc::-webkit-input-placeholder {
    font-family: 'Muli', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}
#txtSeverity1::-moz-placeholder,
#uniqueNumQc::-moz-placeholder {
    font-family: 'Muli', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

.qcd-filter-panel .select2-search__field::placeholder {
    font-family: 'Muli', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}
.qcd-filter-panel .select2-search__field::-webkit-input-placeholder {
    font-family: 'Muli', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}
.qcd-filter-panel .select2-search__field::-moz-placeholder {
    font-family: 'Muli', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

.qcd-filter-panel .select2-selection__placeholder {
    font-family: 'Muli', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

.qcd-filter-panel .select-wrapper input.select-dropdown::placeholder {
    font-family: 'Muli', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}
.qcd-filter-panel .select-wrapper input.select-dropdown::-webkit-input-placeholder {
    font-family: 'Muli', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}
.qcd-filter-panel .select-wrapper input.select-dropdown::-moz-placeholder {
    font-family: 'Muli', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

/* Align Select2 placeholders to the left edge of the bounding box line in Quality Control and Agent Scores filter panel */
.qcd-filter-panel .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding-left: 0 !important;
}
.qcd-filter-panel .select2-container--default .select2-selection--multiple .select2-search--inline {
    margin-left: 0 !important;
    padding-left: 0 !important;
}
.qcd-filter-panel .select2-container--default .select2-selection--multiple .select2-search__field {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* ── QC text-helper utilities (moved from qcDetails.html inline style) ── */
.qcd-text-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
}
.qcd-text-full {
  white-space: pre-wrap;
  word-break: break-word;
}

/* Show only the first two select2 selection choice chips in Quality Control filter panel */
.qcd-filter-panel .select2-container--default .select2-selection--multiple .select2-selection__choice:nth-child(n+3) {
    display: none !important;
}

/* Trim select2 display choices to show ~5 characters with ellipsis */
.qcd-filter-panel .select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    max-width: 80px !important;
    display: inline-block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    vertical-align: bottom !important;
}

.qcd-filter-panel .select2-container--default .select2-selection--multiple .select2-selection__choice {
    max-width: none !important;
    overflow: visible !important;
}

.qcd-filter-select-wrapper {
    position: relative;
    width: 100%;
}
.qc-select2-more-container {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    line-height: 1;
}

.qc-select2-more-container .chat-header-label-more {
    margin: 0;
}
.qcd-dropdown-content li{
    min-height: fit-content !important;
}
.qcd-dropdown-content li > a{
    padding: 7px !important;
}
.qcd-dropdown-content li > a span{
    font-size: 12px !important;
}
.qcd-dropdown-content .qcd-chip {
    background-color: var(--secondary-color);
}

/* QC MANUAL CREATION MODAL STYLES */
#CreateQC .modal-content::-webkit-scrollbar {
    width:12px !important;
    height:6px !important;
}

#CreateQC .modal-content::-webkit-scrollbar-track {
    background: transparent !important;
}

#CreateQC .modal-content::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
}

#CreateQC .modal-content::-webkit-scrollbar-thumb:hover {
    background: #777;
}
.qcd-create-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}
#CreateQC input,
#CreateQC select,
#CreateQC textarea,
#CreateQC .select-Agent {
    border-bottom: none !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px ;
    padding: 0 14px !important;
    box-sizing: border-box;
    margin-bottom: 15px ;
}
#CreateQC input:focus,
#CreateQC select:focus,
#CreateQC textarea:focus,
#CreateQC .select-Agent:focus {
    border-bottom: none !important;
    border: 1px solid var(--secondary-color) !important;
}
#CreateQC .qc-modal-header-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
#CreateQC .qc-modal-header-container h5 {
    font-weight: 900 !important;
}
#CreateQC .qc-modal-header-container i {
    color: #622695;
    font-size: 24px;
}
#CreateQC .qc-modal-description {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 24px 0 !important;
    line-height: 1.4;
}
.qcd-msg-field {
    position: relative;
}

.qcd-msg-field .char-counter {
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 0.75rem;
    color: #94a3b8;
    pointer-events: none;
}

#CreateQC .qcd-msg-field textarea {
    min-height: 140px;
    padding-top: 7px !important;
    padding-bottom: 24px !important; /* room for the counter */
    resize: none;
}

#CreateQC .select2-container {
    width: 100% !important;
    margin-bottom: 15px;
}

#CreateQC .select2-container--default {
    border-bottom: none !important;
}
#CreateQC .select2-container--default .select2-selection--single {
    height: 48px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23718096' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 12px;
    outline: none;
    transition: all 0.2s ease;
}
.createManualTicket select.browser-default:focus {
    border-color: #a0aec0;
    box-shadow: 0 0 0 1px #a0aec0;
}

.createManualTicket select.browser-default:disabled {
    background-color: #f7fafc;
    cursor: not-allowed;
}

/* Placeholder color for browser-default selects when no value is chosen */
.createManualTicket select.browser-default.select--placeholder-active {
    color: #9e9e9e !important;
}

/* Materialize Select (Labels) styling to match browser-default */
.createManualTicket .select-wrapper input.select-dropdown {
    height: 42px !important;
    padding: 0 14px !important;
    font-size: 0.95rem;
    color: #9e9e9e;
    background-color: #ffffff;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px;
    box-sizing: border-box;
    margin-bottom: 0;
}

.createManualTicket .select-wrapper.has-selection input.select-dropdown {
    color: #4a5568;
}

.createManualTicket .select-wrapper input.select-dropdown:focus {
    border: 1px solid #a0aec0 !important;
    box-shadow: 0 0 0 1px #a0aec0 !important;
}

/* Select2 specific styling */
/* .createManualTicket .select2-container {
  width: 100% ;
} */

.createManualTicket .select2-container--default .select2-selection--single {
    height: 42px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23718096' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 12px;
    outline: none;
    transition: all 0.2s ease;
}

.createManualTicket .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #4a5568;
    font-size: 0.95rem;
    padding-left: 14px;
    padding-right: 34px;
    line-height: 40px;
}

.createManualTicket .select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none !important;
}

.createManualTicket .select2-container--default.select2-container--focus .select2-selection--single,
.createManualTicket .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #a0aec0;
    box-shadow: 0 0 0 1px #a0aec0;
}

/* ========================================
   Date Picker Placeholder Fix
   ======================================== */
.filter-panel__body input[type="date"] {
    position: relative;
}

.filter-panel__body input[type="date"].ng-empty::-webkit-datetime-edit {
    color: transparent;
}

.filter-panel__body input[type="date"].ng-empty::before {
    content: attr(placeholder);
    position: absolute;
    color: #9e9e9e;
    pointer-events: none;
    font-family: inherit;
    font-size: 0.95rem;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* ========================================
   Scrollable Comments Area
   ======================================== */
.ticket-view-page .comments-section {
    display: flex;
    flex-direction: column;
}

.ticket-view-page .comments-scroll-area {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom scrollbar styling */
.ticket-view-page .comments-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.ticket-view-page .comments-scroll-area::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.ticket-view-page .comments-scroll-area::-webkit-scrollbar-thumb {
    background: #c4c4c4;
    border-radius: 3px;
}

.ticket-view-page .comments-scroll-area::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* ========================================
   Workflow Select Row (Create Ticket Modal)
   ======================================== */
.createManualTicket .workflow-select-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-top: 16px;
}

.createManualTicket .workflow-select-field {
    width: 50%;
    flex-shrink: 0;
    min-width: 0;
}

.createManualTicket .workflow-select-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.875rem;
    color: #616161;
}

.createManualTicket .workflow-load-btn {
    background-color: var(--secondary-color) !important;
    padding: 0 30px;
    height: 42px;
    line-height: 42px;
    white-space: nowrap;
    flex-shrink: 0;
}

.select2-results__option[aria-disabled=true] { display: none !important; }
.createManualTicket .select2-container--default .select2-selection--multiple {
    border: 1px solid #d3d3d3 !important;
    border-radius: 4px !important;
    min-height: 42px !important;
    height: auto !important;
    background-color: #fff !important;
    padding: 0 4px !important;
    display: flex;
    align-items: center;
}
.createManualTicket .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #a0aec0 !important;
    box-shadow: 0 0 0 1px #a0aec0 !important;
}
.createManualTicket .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    margin-bottom: 0;
}
.createManualTicket .select2-container--default .select2-selection--multiple .select2-search--inline {
    margin-top: 0;
}
.createManualTicket .select2-container--default .select2-selection--multiple .select2-search__field {
    border: none !important;
    box-shadow: none !important;
    height: 32px !important;
    line-height: 32px !important;
    margin-top: 4px !important;
    margin-bottom: 4px !important;
    font-family: inherit;
    color: #495057 !important;
}
.createManualTicket .select2-container--default .select2-selection--multiple .select2-search__field::placeholder {
    color: #a0aec0;
}
.createManualTicket .select2-selection__choice {
    margin-top: 4px !important;
    margin-bottom: 4px !important;
    background-color: #f1f3f5 !important;
    border: 1px solid #ced4da !important;
    color: #495057 !important;
    border-radius: 3px !important;
    padding: 2px 6px !important;
}

/* ========================================
   Labels Dropdown: Comma-separated text display
   ======================================== */
/* Container styling */
#createTicket .select2-container--default .select2-selection--multiple {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0 14px !important;
    min-height: 42px !important;
    overflow: hidden;
}
#createTicket .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
    width: 100% !important;
    flex-grow: 1 !important;
    text-align: left !important;
}

/* Remove tag pill appearance — show as plain inline text */
#createTicket .select2-selection__choice {
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #4a5568 !important;
    font-size: 0.95rem;
    line-height: 40px;
    display: inline !important;
    float: none !important;
}
/* Add comma separator between labels */
#createTicket .select2-selection__choice + .select2-selection__choice::before {
    content: ",\00a0";
}
/* Hide the × remove button on each tag */
#createTicket .select2-selection__choice__remove {
    display: none !important;
}

/* Hide inline search input (search is in the dropdown via DropdownSearch adapter)
   Only hide it when there are selections so the placeholder remains visible when empty */
#createTicket .select2-container--default .select2-selection--multiple:has(.select2-selection__choice) .select2-search--inline {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Disable pointer events on the inline search so it acts as a click-through to open the dropdown.
   Force flex-grow so it spans the remaining space, ensuring the placeholder stays left-aligned. */
#createTicket .select2-container--default .select2-selection--multiple .select2-search--inline {
    pointer-events: none !important;
    flex-grow: 1 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    position: static !important;
    opacity: 1 !important;
}

#createTicket .select2-container--default .select2-selection--multiple .select2-search__field {
    font-family: 'Poppins', 'Segoe UI', sans-serif !important;
    font-size: 0.95rem !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 40px !important;
    line-height: 40px !important;
    width: 100% !important;
    color: #4a5568 !important;
}

#createTicket .select2-container--default .select2-selection--multiple .select2-search__field::placeholder {
    font-family: 'Poppins', 'Segoe UI', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    color: #a0aec0 !important;
    text-align: left !important;
}

/* Labels dropdown results: match font to other modal dropdowns */
#createTicket .select2-results__option {
    font-size: 0.95rem;
    color: #4a5568;
    font-family: inherit;
}
#createTicket .select2-results__option label span {
    font-size: 0.95rem !important;
    color: #4a5568 !important;
}

/* ========================================
   Loaded Workflow Form: Textarea sizing
   ======================================== */
#createTicket .render-wrap textarea,
.createManualTicket .render-wrap textarea {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    min-height: 80px !important;
    box-sizing: border-box !important;
    display: block !important;
}
#createTicket .render-wrap .rendered-form > div,
.createManualTicket .render-wrap .rendered-form > div,
#createTicket .render-wrap .form-group,
.createManualTicket .render-wrap .form-group {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* Standardize Select2 dropdown placeholders in Create Ticket modal */
#createTicket .select2-container--default .select2-selection__placeholder,
#createTicket .select2-container--default .select2-search--inline .select2-search__field::placeholder {
    color: #9e9e9e !important;
    font-weight: 400 !important;
    font-family: inherit !important;
}

/* Fix Labels multiple select placeholder alignment */
#createTicket .select2-container--default .select2-selection--multiple .select2-search--inline {
    float: left !important;
    pointer-events: none !important;
    flex-grow: 1 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    position: static !important;
    opacity: 1 !important;
}

#createTicket .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
    text-align: left !important;
    color: #9e9e9e !important;
    font-weight: 400 !important;
    font-family: inherit !important;
    margin-top: 0 !important;
    padding-left: 0 !important;
    width: 100% !important;
}

#createTicket .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding-left: 0 !important;
    width: auto !important;
    flex: 0 1 auto !important;
}

/* ===== DROPDOWN HIGHLIGHT COLOR — THEME CONSISTENCY =====
   Override the default blue highlight on dropdown options to light gray,
   matching the filter highlight color (#f8f9fa) across the application.
   Affects: Select2 dropdowns (Create Ticket modal), Materialize custom
   select-dropdown components, and native browser-default selects
   (Create Workflow role select).
   ========================================================= */

/* Select2 highlighted option override (was #42A5F5 blue) */
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option[aria-selected] {
    background-color: #f8f9fa !important;
    color: #333 !important;
}

/* Select2 selected (already chosen) option */
.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #f8f9fa !important;
    color: #333 !important;
}

/* Materialize custom select-dropdown highlight override */
.select-dropdown.dropdown-content li.active,
.select-dropdown.dropdown-content li.selected,
.select-dropdown.dropdown-content li:hover {
    background-color: #f8f9fa !important;
}

.select-dropdown.dropdown-content li.active > span,
.select-dropdown.dropdown-content li.selected > span,
.select-dropdown.dropdown-content li:hover > span {
    color: #333 !important;
}

/* Native browser-default <select> option highlight override */
select.browser-default option:checked,
select.browser-default option:hover,
.control-select option:checked,
.control-select option:hover {
    background: #f8f9fa linear-gradient(0deg, #f8f9fa 0%, #f8f9fa 100%) !important;
    color: #333 !important;
}

.bg-selected-prompt-version {
    background-color: #f3e5f5 !important; /* using a light purple/secondary theme background */
}

/* text matches the Unique Number input: 1rem, weight 400, inherited color */
#CreateQC .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: black;
    font-size: 1rem;
    font-weight: 400;
    padding-left: 14px;
    padding-right: 34px;
    line-height: 46px;
}
#CreateQC .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9e9e9e;
}
#CreateQC .select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none !important;
}
#CreateQC .select2-container--default.select2-container--focus .select2-selection--single,
#CreateQC .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--secondary-color);
    box-shadow: none;
}

/* ---- Choose Procedure (Materialize select) – matched to Choose Agent ---- */
#CreateQC .procedure-list .select-wrapper {
    margin-bottom: 15px;
}
#CreateQC .procedure-list .select-wrapper input.select-dropdown {
    height: 48px !important;
    line-height: 46px !important;
    padding: 0 34px 0 14px !important;
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    color: black !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23718096' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 12px;
}
#CreateQC .procedure-list .select-wrapper input.select-dropdown:focus {
    border: 1px solid var(--secondary-color) !important;
    box-shadow: none !important;
}
/* hide Materialize's default caret – the chevron background replaces it */
#CreateQC .procedure-list .select-wrapper .caret {
    display: none !important;
}
/* grey placeholder while nothing is chosen (Angular adds .ng-empty), to match
   the agent placeholder – turns to inherited color once a procedure is picked */
#CreateQC .procedure-list .select-wrapper:has(select.ng-empty) input.select-dropdown {
    color: #9e9e9e !important;
}

/* QC agent Select2 dropdown – scoped via dropdownCssClass: 'qc-agent-dropdown' */
.qc-agent-dropdown .select2-search--dropdown {
    padding: 8px !important;
}
.qc-agent-dropdown .select2-search--dropdown .select2-search__field {
    padding: 6px 10px !important;
    box-sizing: border-box !important;
    font-size: 0.9rem !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
}
.qc-agent-dropdown .select2-search--dropdown .select2-search__field:focus {
    box-shadow: none !important;
    outline: none !important;
}

.bg-selected-prompt-version {
    background-color: #f3e5f5 !important; /* using a light purple/secondary theme background */
}
/* ═══════════════════════════════════════════════════════ */
/* QC TEMPLATES - ASSIGNMENT RULES TAB                    */
/* ═══════════════════════════════════════════════════════ */

.qct-assignment-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 16px; }
.qct-assignment-header__left { display: flex; align-items: center; gap: 10px; }
.qct-assignment-header__right { display: flex; align-items: center; gap: 10px; }
.qct-assignment-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.qct-assignment-toggle input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary-color, #303f9f); cursor: pointer; }
.qct-assignment-toggle__label { font-weight: 600; font-size: 0.85rem; color: #1e293b; }
.qct-assignment-priority { display: flex; align-items: center; gap: 8px; }
.qct-assignment-priority__label { font-weight: 600; font-size: 0.85rem; color: #64748b; }

.qct-assignment-rules { display: flex; flex-direction: column; gap: 12px; }
.qct-assignment-rule { border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.qct-assignment-rule:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.04); border-color: #cbd5e1; }
.qct-assignment-rule__header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.qct-assignment-rule__num { font-weight: 700; font-size: 0.85rem; color: #475569; display: flex; align-items: center; gap: 6px; }
.qct-assignment-rule__num::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--primary-color, #303f9f); }
.qct-btn--remove-sm { min-width: 32px !important; height: 32px !important; padding: 0 !important; color: #ef4444 !important; border-radius: 6px !important; }
.qct-btn--remove-sm:hover { color: #b91c1c !important; background: #fee2e2 !important; }
.qct-btn--remove-sm i { font-size: 18px; }

.qct-assignment-rule__body { padding: 14px; }
.qct-assignment-rule__row { display: flex; gap: 12px; margin-bottom: 12px; }
.qct-assignment-rule__row:last-child { margin-bottom: 0; }
.qct-assignment-rule__row--labels { flex-direction: column; }
.qct-assignment-rule__field { flex: 1; min-width: 0; }
.qct-assignment-rule__field--full { flex: none; width: 100%; }
.qct-assignment-rule__field--time { flex: 1; }
.qct-assignment-rule__label { display: block; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.04em; color: #64748b; margin-bottom: 4px; }
.qct-input--select { height: 34px; padding: 4px 8px; font-size: 0.83rem; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; color: #1e293b; width: 100%; box-sizing: border-box; }
.qct-input--select:focus { border-color: var(--primary-color, #303f9f); outline: none; box-shadow: 0 0 0 3px rgba(48, 63, 159, 0.1); }
.qct-input--sm { height: 30px; padding: 2px 6px; font-size: 0.82rem; }
.qct-input--time { height: 34px; padding: 4px 8px; font-size: 0.82rem; width: 100%; }
.qct-assignment-rule__time-row { display: flex; align-items: center; gap: 8px; }
.qct-assignment-rule__time-sep { font-size: 0.82rem; color: #94a3b8; font-weight: 600; flex-shrink: 0; }

.qct-assignment-rule__labels-wrap { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 4px; }
.qct-chip--sm { padding: 4px 10px; font-size: 0.75rem; border-radius: 16px; }
.qct-assignment-rule__labels-hint { font-size: 0.82rem; color: #94a3b8; font-style: italic; }

.qct-assignment-actions { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 0; margin-top: 16px; border-top: 1px solid #f1f5f9; }

/* ═══════════════════════════════════════════════════════ */
/* QC TEMPLATES - ASSIGNMENT RULES TAB                    */
/* ═══════════════════════════════════════════════════════ */

.qct-assignment-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 16px; }
.qct-assignment-header__left { display: flex; align-items: center; gap: 10px; }
.qct-assignment-header__right { display: flex; align-items: center; gap: 10px; }
.qct-assignment-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.qct-assignment-toggle input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary-color, #303f9f); cursor: pointer; }
.qct-assignment-toggle__label { font-weight: 600; font-size: 0.85rem; color: #1e293b; }
.qct-assignment-priority { display: flex; align-items: center; gap: 8px; }
.qct-assignment-priority__label { font-weight: 600; font-size: 0.85rem; color: #64748b; }

.qct-assignment-rules { display: flex; flex-direction: column; gap: 12px; }
.qct-assignment-rule { border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.qct-assignment-rule:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.04); border-color: #cbd5e1; }
.qct-assignment-rule__header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.qct-assignment-rule__num { font-weight: 700; font-size: 0.85rem; color: #475569; display: flex; align-items: center; gap: 6px; }
.qct-assignment-rule__num::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--primary-color, #303f9f); }
.qct-btn--remove-sm { min-width: 32px !important; height: 32px !important; padding: 0 !important; color: #ef4444 !important; border-radius: 6px !important; }
.qct-btn--remove-sm:hover { color: #b91c1c !important; background: #fee2e2 !important; }
.qct-btn--remove-sm i { font-size: 18px; }

.qct-assignment-rule__body { padding: 14px; }
.qct-assignment-rule__row { display: flex; gap: 12px; margin-bottom: 12px; }
.qct-assignment-rule__row:last-child { margin-bottom: 0; }
.qct-assignment-rule__row--labels { flex-direction: column; }
.qct-assignment-rule__field { flex: 1; min-width: 0; }
.qct-assignment-rule__field--full { flex: none; width: 100%; }
.qct-assignment-rule__field--time { flex: 1; }
.qct-assignment-rule__label { display: block; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.04em; color: #64748b; margin-bottom: 4px; }
.qct-input--select { height: 34px; padding: 4px 8px; font-size: 0.83rem; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; color: #1e293b; width: 100%; box-sizing: border-box; }
.qct-input--select:focus { border-color: var(--primary-color, #303f9f); outline: none; box-shadow: 0 0 0 3px rgba(48, 63, 159, 0.1); }
.qct-input--sm { height: 30px; padding: 2px 6px; font-size: 0.82rem; }
.qct-input--time { height: 34px; padding: 4px 8px; font-size: 0.82rem; width: 100%; }
.qct-assignment-rule__time-row { display: flex; align-items: center; gap: 8px; }
.qct-assignment-rule__time-sep { font-size: 0.82rem; color: #94a3b8; font-weight: 600; flex-shrink: 0; }

.qct-assignment-rule__labels-wrap { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 4px; }
.qct-chip--sm { padding: 4px 10px; font-size: 0.75rem; border-radius: 16px; }
.qct-assignment-rule__labels-hint { font-size: 0.82rem; color: #94a3b8; font-style: italic; }

.qct-assignment-actions { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 0; margin-top: 16px; border-top: 1px solid #f1f5f9; }

/* ═══════════════════════════════════════════════════════ */
/* REAL-TIME QC GUIDANCE PANEL                            */
/* ═══════════════════════════════════════════════════════ */

/* Panel Container */
.qc-guidance-panel {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    /* Match the chat row / mini-CRM (.card-contact-info is 85vh). The panel's flex
       parent (.d-flex) has no height, so it grows past 85vh with the chat card's
       margins — using 100% here made the panel taller than the conversation. */
    height: 85vh;
    align-self: flex-start;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8ecf1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-left: 16px;
    /* Align the panel top with the chat-header: the Materialize card wrapping the
       chat has a 0.5rem top margin, and the mini-CRM card matches it. */
    margin-top: 13px;
}

/* Show/hide instantly. ngAnimate is active in this app (see .card-contact-info.ng-animate);
   without this it keeps the panel in the layout while it fades out, so the mini-CRM that
   replaces it opens at partial width first, then snaps to full. */
.qc-guidance-panel.ng-hide {
    display: none !important;
}

.qc-guidance-panel.ng-animate,
.qc-guidance-panel.ng-hide-add,
.qc-guidance-panel.ng-hide-remove {
    transition: none !important;
    animation: none !important;
}

.qc-panel-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* ─── Header ─── */
.qc-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #eef1f6;
    flex-shrink: 0;
}

.qc-panel-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qc-panel-header-icon {
    font-size: 18px;
    color: var(--secondary-color, #622695);
}

.qc-panel-header-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.01em;
}

.qc-panel-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Status dot */
.qc-panel-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.qc-status-active {
    background: var(--secondary-color, #622695);
    box-shadow: 0 0 0 3px rgba(98, 38, 149, 0.2);
    animation: qc-pulse-green 2s infinite;
}

.qc-status-paused {
    background: #9e9e9e;
    box-shadow: 0 0 0 3px rgba(158, 158, 158, 0.2);
}

.qc-status-final {
    background: var(--secondary-color, #622695);
    box-shadow: 0 0 0 3px rgba(98, 38, 149, 0.2);
}

@keyframes qc-pulse-green {
    0%, 100% { box-shadow: 0 0 0 3px rgba(98, 38, 149, 0.2); }
    50% { box-shadow: 0 0 0 6px rgba(98, 38, 149, 0.1); }
}

/* Status label */
.qc-panel-status-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.qc-label-active { color: var(--secondary-color, #622695); }
.qc-label-paused { color: #6b7280; }
.qc-label-final { color: var(--secondary-color, #622695); }

.qc-panel-close-btn {
    font-size: 18px;
    color: #9e9e9e;
    margin-left: 4px;
    transition: color 0.2s;
}

.qc-panel-close-btn:hover {
    color: #424242;
}

/* ─── Template Badge ─── */
.qc-panel-template-badge {
    padding: 8px 14px;
    flex-shrink: 0;
}

.qc-template-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: #f2e9fa;
    color: var(--secondary-color, #622695);
}

.qc-chip-final {
    background: #f2e9fa;
    color: var(--secondary-color, #622695);
}

/* ─── Paused Banner ─── */
.qc-paused-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f1f3f5;
    border-bottom: 1px solid #e2e6ea;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.qc-paused-banner i {
    font-size: 18px;
    color: #9e9e9e;
}

/* ─── Body ─── */
.qc-panel-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0;
}

.qc-panel-body::-webkit-scrollbar {
    width: 4px;
}

.qc-panel-body::-webkit-scrollbar-track {
    background: transparent;
}

.qc-panel-body::-webkit-scrollbar-thumb {
    background: #d0d5dd;
    border-radius: 4px;
}

.qc-body-dimmed {
    opacity: 0.45;
    pointer-events: none;
}

/* ─── Empty State ─── */
.qc-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.qc-empty-icon {
    font-size: 40px;
    color: #b0bec5;
    margin-bottom: 12px;
    animation: qc-empty-pulse 2s ease-in-out infinite;
}

@keyframes qc-empty-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Terminal "no criteria" state: steady icon (no pulse), reserve the pulse for loading. */
.qc-empty-icon.qc-empty-icon-static {
    animation: none;
    opacity: 0.7;
}

.qc-empty-text {
    font-size: 12px;
    color: #90a4ae;
    line-height: 1.5;
    max-width: 220px;
    margin: 0;
}

/* ─── Progress Ring ─── */
.qc-progress-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 14px 10px;
}

.qc-progress-ring-container {
    position: relative;
    width: 80px;
    height: 80px;
}

.qc-progress-ring {
    width: 80px;
    height: 80px;
    transform: rotate(-90deg);
}

.qc-progress-ring-bg {
    fill: none;
    stroke: #d0d7e2;
    stroke-width: 6;
}

.qc-progress-ring-fill {
    fill: none;
    stroke: var(--secondary-color, #622695);
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}

.qc-progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    line-height: 1;
}

.qc-progress-count {
    font-size: 20px;
    font-weight: 800;
    color: var(--secondary-color, #622695);
}

.qc-progress-separator {
    font-size: 14px;
    color: #9e9e9e;
    margin: 0 1px;
}

.qc-progress-total {
    font-size: 14px;
    font-weight: 600;
    color: #9e9e9e;
}

.qc-progress-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #78909c;
    letter-spacing: 0.02em;
    margin-top: 0.375rem;
}

/* ─── Filter Section ─── */
.qc-filter-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.875rem;
    margin-top: 0.5rem;
    border-top: 0.0625rem solid #eef1f6;
    border-bottom: 0.0625rem solid #eef1f6;
}

.qc-filter-section .qc-filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.01em;
    flex-shrink: 0;
}

.qc-filter-section .qc-filter-pill-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.qc-filter-section .qc-filter-dropdown {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-sizing: border-box;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0.375rem 1.75rem 0.375rem 0.875rem;
    border-radius: 999rem;
    border: 0.0625rem solid #e0d4f0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    background-color: #ffffff;
    color: var(--secondary-color, #622695);
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qc-filter-section .qc-filter-dropdown:hover {
    background-color: #f7f2fb;
    border-color: var(--secondary-color, #622695);
}

.qc-filter-section .qc-filter-dropdown:focus {
    outline: none;
    box-shadow: 0 0 0 0.125rem rgba(98, 38, 149, 0.25);
}

.qc-filter-section .qc-filter-dropdown option {
    background-color: #ffffff;
    color: #1e293b;
    font-weight: 500;
}

.qc-filter-section .qc-filter-pill-arrow {
    position: absolute;
    right: 0.375rem;
    font-size: 1rem;
    color: var(--secondary-color, #622695);
    pointer-events: none;
}

/* ─── Criteria List ─── */
.qc-criteria-list {
    padding: 0.25rem 0;
}

.qc-criteria-group {
    margin-bottom: 0.125rem;
}

.qc-criteria-category-header {
    padding: 8px 14px 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #78909c;
}

.qc-criteria-item {
    padding: 10px 14px;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s;
}

.qc-criteria-item:hover {
    background: #fafbfc;
}

.qc-criteria-item:last-child {
    border-bottom: none;
}

.qc-criteria-item-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.qc-criteria-icon-wrapper {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.qc-criteria-icon {
    font-size: 18px;
}

.qc-item-completed .qc-criteria-icon { color: var(--secondary-color, #622695); }
.qc-item-failure .qc-criteria-icon { color: #ef4444; }
.qc-item-pending .qc-criteria-icon { color: #BDBDBD; }

/* Evaluating dot animation */
.qc-evaluating-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary-color, #622695);
    display: inline-block;
    animation: qc-pulse-amber 1.5s ease-in-out infinite;
}

@keyframes qc-pulse-amber {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.qc-criteria-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qc-criteria-name {
    font-size: 12.5px;
    font-weight: 600;
    color: #37474f;
    line-height: 1.3;
}

.qc-criteria-criticality {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 1px 6px;
    border-radius: 3px;
    display: inline-block;
    width: fit-content;
}

.qc-crit-fatal { background: #fde3e3; color: #dc2626; }
.qc-crit-critical { background: #fef3c7; color: #b45309; }
.qc-crit-noncritical { background: #f1f3f5; color: #6b7280; }

.qc-criteria-weight {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    color: #78909c;
    margin-top: 2px;
}

/* Tips */
.qc-criteria-tip {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    margin-top: 6px;
    padding-left: 28px;
}

.qc-tip-icon {
    font-size: 14px;
    color: var(--secondary-color, #622695);
    flex-shrink: 0;
    margin-top: 1px;
}

.qc-criteria-tip span {
    font-size: 11px;
    color: #90a4ae;
    line-height: 1.4;
    font-style: italic;
}

/* Reason (for completed/failed items) */
.qc-criteria-reason {
    margin-top: 4px;
    padding-left: 28px;
}

.qc-criteria-reason span {
    font-size: 11px;
    color: #78909c;
    line-height: 1.4;
}

/* ─── Scorecard Section ─── */
.qc-score-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 14px 14px;
}

.qc-score-gauge-container {
    position: relative;
    width: 100px;
    height: 100px;
}

.qc-score-gauge {
    width: 100px;
    height: 100px;
    transform: rotate(-90deg);
}

.qc-score-gauge-bg {
    fill: none;
    stroke: #d0d7e2;
    stroke-width: 7;
}

.qc-score-gauge-fill {
    fill: none;
    stroke-width: 7;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.qc-gauge-excellent { stroke: var(--secondary-color, #622695); }
.qc-gauge-good { stroke: var(--primary-color, #7442a1); }
.qc-gauge-needs-improvement { stroke: #9e9e9e; }
.qc-gauge-poor { stroke: #ef4444; }

.qc-score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.qc-score-value {
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
}

.qc-score-max {
    font-size: 13px;
    color: #9e9e9e;
    font-weight: 600;
}

.qc-score-rating {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-top: 8px;
}

.qc-rating-excellent { color: var(--secondary-color, #622695); }
.qc-rating-good { color: var(--primary-color, #7442a1); }
.qc-rating-needs-improvement { color: #6b7280; }
.qc-rating-poor { color: #ef4444; }

/* Scorecard items */
.qc-scorecard-item {
    padding: 10px 14px;
    border-bottom: 1px solid #f5f5f5;
}

.qc-scorecard-item:last-child {
    border-bottom: none;
}

.qc-scorecard-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.qc-scorecard-attr-name {
    font-size: 12px;
    font-weight: 600;
    color: #37474f;
}

.qc-scorecard-status {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 2px 8px;
    border-radius: 10px;
}

.qc-score-pass { background: #f2e9fa; color: var(--secondary-color, #622695); }
.qc-score-fail { background: #fdeeee; color: #ef4444; }
.qc-score-na { background: #f1f3f5; color: #6b7280; }

.qc-scorecard-bar-container {
    height: 4px;
    background: #eef1f6;
    border-radius: 2px;
    overflow: hidden;
}

.qc-scorecard-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s ease;
}

.qc-bar-pass { background: var(--secondary-color, #622695); }
.qc-bar-fail { background: #ef4444; }
.qc-bar-na { background: #BDBDBD; }

.qc-scorecard-reason {
    margin-top: 4px;
}

.qc-scorecard-reason span {
    font-size: 10.5px;
    color: #90a4ae;
    line-height: 1.4;
}

/* ─── Footer ─── */
.qc-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-top: 1px solid #eef1f6;
    flex-shrink: 0;
    background: #fafbfc;
}

.qc-footer-updated {
    font-size: 10px;
    color: #9e9e9e;
}

.qc-footer-ai {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: #b0bec5;
    font-weight: 600;
}

.qc-ai-icon {
    font-size: 13px;
    color: #b0bec5;
}

/* ─── Toggle Button in Chat Header ─── */
.qc-toggle-btn {
    cursor: pointer;
    transition: color 0.2s;
    color: #78909c;
    font-size: 20px;
}

.qc-toggle-btn:hover {
    color: var(--secondary-color, #622695);
}

.qc-toggle-btn.qc-toggle-active {
    color: var(--secondary-color, #622695);
}

/* Icon stays present but reads as "available, nothing to show yet" when no criteria are loaded. */
.qc-toggle-btn.qc-toggle-empty {
    opacity: 0.45;
    color: #90a4ae;
}

.qc-toggle-btn.qc-toggle-empty:hover {
    opacity: 0.7;
    color: var(--secondary-color, #622695);
}

/* Vertically center the QC icon with the agent name / other header controls. */
.chat-header-qc-col {
    display: flex;
    align-items: center;
}

.chat-header-qc-col .qc-toggle-btn {
    display: flex;
    align-items: center;
    line-height: 1;
}

/* When the QC panel is open the mini-CRM (30%) is hidden; let the chat grow to fill
   the row so the fixed-width panel sits flush right with no trailing gap. Overrides the
   width-70/width-100 utilities (which aren't applied in this state anyway). */
.chat-application.qc-chat-fill {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0;
}

/* ─── RTL Support ─── */
.arabic .qc-guidance-panel {
    margin-left: 0;
    margin-right: 16px;
}

.arabic .qc-criteria-tip,
.arabic .qc-criteria-reason {
    padding-left: 0;
    padding-right: 28px;
}

.arabic .qc-panel-close-btn {
    margin-left: 0;
    margin-right: 4px;
}
/* --- Articles Table Redesign --- */
.article-category-badge {
    border: none !important;
    background-color: rgba(107, 63, 160, 0.1) !important;
    color: #6b3fa0 !important;
    border-radius: 12px !important;
    font-weight: 500;
    white-space: nowrap !important;
    display: inline-block !important;
    height: 22px;
    line-height: 22px;
}
.article-tag-badge {
    background-color: rgba(107, 63, 160, 0.1) !important;
    color: #6b3fa0 !important;
    border-radius: 12px !important;
    font-weight: 500;
    white-space: nowrap !important;
    display: inline-block !important;
    height: 22px;
    line-height: 22px;
}
.muted-subtitle {
    font-size: 12px;
    color: #9e9e9e;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
    margin-top: 4px;
}
.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    text-transform: capitalize;
}
.status-synced {
    background-color: #e8f5e9;
    color: #2e7d32;
}
.status-pending {
    background-color: #fff8e1;
    color: #f57f17;
}
.status-failed {
    background-color: #ffebee;
    color: #c62828;
}
.status-refreshing {
    background-color: #e3f2fd;
    color: #1565c0;
}
.status-paused {
    background-color: #f5f5f5;
    color: #757575;
}
.dropdown-content.row-actions-dropdown {
    width: max-content !important;
    min-width: 180px;
}
.dropdown-content.row-actions-dropdown li > a {
    color: #616161;
    display: flex;
    align-items: center;
    padding: 10px 16px;
}
.dropdown-content.row-actions-dropdown li > a > i {
    margin-right: 12px;
    margin-left: 0;
    color: #6b3fa0;
}
.dropdown-content.row-actions-dropdown li > a.red-text {
    color: #f44336 !important;
}
.dropdown-content.row-actions-dropdown li > a.red-text > i {
    color: #f44336 !important;
}
/* ---------------------------------------------------------------------------
   AI summary (Moonshot): centered purple AI message above the interaction messages
   --------------------------------------------------------------------------- */
.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat.chat-ai-summary,
.chat.chat-ai-summary {
    display: flex;
    justify-content: center;
    position: relative;
    width: 100%;
    margin: 6px 0 14px 0;
}

.ai-summary-bubble {
    max-width: 78%;
    min-width: 260px;
    background: linear-gradient(135deg, #f3e8ff 0%, #ede7f6 100%);
    border: 1px solid #ce93d8;
    border-left: 4px solid #7e57c2;
    border-radius: 12px;
    padding: 10px 14px 12px 14px;
    color: #311b92;
    box-shadow: 0 2px 6px rgba(126, 87, 194, 0.18);
    text-align: start;
}

.ai-summary-bubble[dir="rtl"] {
    border-left: 1px solid #ce93d8;
    border-right: 4px solid #7e57c2;
}

.ai-summary-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #6a1b9a;
    margin-bottom: 6px;
}

.ai-summary-header .material-icons {
    font-size: 18px;
    color: #7e57c2;
}

.ai-summary-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    color: #311b92;
}

.ai-summary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.ai-summary-tag {
    display: inline-block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #7e57c2;
    color: #ffffff;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 11px;
    line-height: 18px;
}

/* Contact AI summary block in the contact side bar */
.contact-ai-summary-icon {
    vertical-align: middle;
    margin-right: 6px;
    color: #7e57c2;
}

.contact-ai-summary-text {
    white-space: pre-wrap;
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
}

.contact-ai-summary-empty {
    margin: 0;
    font-size: 12px;
}

.contact-ai-tags .ai-summary-tag {
    background: #ede7f6;
    color: #4527a0;
    border: 1px solid #d1c4e9;
}

.contact-ai-bio {
    margin-top: 10px;
    border-top: 1px dashed #d1c4e9;
    padding-top: 8px;
}

.contact-ai-bio-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    line-height: 1.7;
}

.contact-ai-bio-label {
    color: #757575;
}

.contact-ai-bio-value {
    color: #311b92;
    font-weight: 500;
    text-transform: capitalize;
    text-align: end;
}

.routing-mode-option {
    display: block;
    margin-bottom: 12px;
}
/* Routing Mode and the three rule destinations are radios, and they are drawn as radios.

   An earlier revision restyled them to look like the checkboxes used by the rest of the
   Routing screen, reasoning that a round control two rows under a square one reads as a
   different kind of setting. It does - and that is the point. A checkbox means "this
   setting is on or off, independently of the others"; these options are one-of-N, and the
   story is explicit that the two modes are MUTUALLY EXCLUSIVE. Drawn as checkboxes they
   read as two switches an admin could tick together, and the selected one cannot be
   un-ticked - a checkbox that refuses to clear is a worse surprise than a circle that does
   not match the row above it.

   So the vendor radio styling is left alone. Only the spacing below is ours; the control
   itself is materialize's, which is what every other radio group in the product uses. */
.routing-mode-option label {
    /* Line the control up with the checkbox rows above, so the column still reads straight
       even though the control is round. */
    line-height: 24px;
}
/* Used beside the destination radios in the rule modal and inside the routing-mode table
   row, so it is scoped to neither. */
.routing-mode-hint {
    display: block;
    margin: 2px 0 0 35px;
    font-size: 12px;
    color: #78909c;
}
/* The rules live inside the routing card, directly beneath the switch that enables them,
   so they need a rule-off from the settings table above rather than a card of their own. */
.handover-rules-section {
    border-top: 1px solid #eceff1;
    margin-top: 20px;
    padding-top: 6px;
}
.handover-rules-table thead tr {
    height: 56px;
}
.handover-rules-hint {
    font-size: 12px;
    color: #78909c;
    margin: 0 0 8px;
}
.handover-rule-order {
    white-space: nowrap;
    width: 84px;
}
.handover-rule-order .material-icons {
    font-size: 18px;
    cursor: pointer;
    vertical-align: middle;
    color: #78909c;
}
.handover-rule-order .material-icons.disabled {
    opacity: .3;
    cursor: default;
}
.handover-rule-position {
    display: inline-block;
    min-width: 18px;
    text-align: center;
    font-size: 12px;
    color: #78909c;
}
.handover-rule-disabled td {
    opacity: .55;
}
.handover-rule-empty {
    text-align: center;
    color: #78909c;
    padding: 18px 0;
}
.handover-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 6px;
}
.handover-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eceff1;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 12px;
    line-height: 20px;
}
.handover-chip .material-icons {
    font-size: 14px;
    cursor: pointer;
}
.handover-chip-suggest {
    background: transparent;
    border: 1px solid #cfd8dc;
    cursor: pointer;
}
/* Matches the select styling already used by the ticket filters, so the rule builder reads
   as part of the product rather than as its own thing. browser-default is deliberate:
   a Materialize select rendered inside ng-repeat/ng-if is not initialised by formSelect(). */
.handover-select {
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    height: 42px;
    background-color: #FFFFFF;
    padding: 0 12px;
    box-sizing: border-box;
    width: 100%;
    margin: 4px 0 0;
    font-family: inherit;
    font-size: 13px;
    color: #37474f;
}
.handover-select:focus {
    outline: none;
    border-color: #b0bec5;
}
.handover-inline-add {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.handover-inline-add input {
    margin: 0;
    flex: 1 1 auto;
}
.handover-inline-add input[type="number"] {
    flex: 0 0 80px;
}
/* The preset that is currently in force, so the age chips do not all look alike. */
.handover-chip-active {
    border-color: #7e57c2;
    color: #5e35b1;
    font-weight: 600;
}
.handover-summary {
    background: #eceff1;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 13px;
    margin-top: 14px;
}

/* ---- Routing Mode group (US #1927) ----
   Lifted out of the settings table so the control that decides how every interaction is
   placed reads as its own group rather than as the thirteenth toggle in a striped list. */
/* The one settings row whose value is a control plus an explanation rather than a bare
   value, so it has to wrap where its neighbours deliberately truncate. */
.routing-mode-cell {
    white-space: normal;
    overflow: visible;
    text-align: left;
}
.handover-rules-warning {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    color: #ef6c00;
    background: #fff8e1;
    border-radius: 4px;
    padding: 8px 10px;
    margin: 8px 0;
}
.handover-rules-warning .material-icons {
    font-size: 16px;
    line-height: 18px;
}
/* Handed over vs general queue. A stat line, not a sentence: the two figures are what
   management reads, so each is a number over its own label and the pair is ruled off from the
   mode radios above rather than trailing straight after them. */
.handover-report {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 32px;
    margin: 14px 0 4px;
    padding: 12px 16px;
    border: 1px solid #eceff1;
    border-radius: 4px;
    background: #fafbfc;
}
.handover-report-figure {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.handover-report-figure strong {
    font-size: 22px;
    font-weight: 600;
    color: #37474f;
}
.handover-report-figure span {
    font-size: 12px;
    color: #78909c;
    margin-top: 2px;
}

/* ---- Rule builder modal (US #1927) ----
   The modal's content is taller than Materialize's default 70vh cap allows for, so the six
   conditions, the whole THEN half and the live preview sat below the fold on open while the
   pinned Save button stayed clickable - a rule could be saved with a destination its author
   never saw. Two changes: more of the viewport, and the six conditions in two columns so the
   THEN block is reachable without scrolling on a normal desktop. */
#handoverRuleModal {
    /* vh, not %. A percentage resolves against the containing block, and this modal is
       position:fixed inside the routed settings view - so the moment any ancestor carries a
       transform (ngAnimate puts one on a view while it animates), the containing block stops
       being the viewport and becomes that ancestor. Measured: inside a transformed 2400px
       ancestor the modal sized itself to 1321px on a 900px screen, far taller than the window
       it is supposed to sit inside. vh always means the viewport. */
    max-height: 88vh;
    width: 70%;
}
/* Materialize gives .modal-fixed-footer a fixed height of 70%, and a fixed height beats a
   max-height - so the modal sat at 638px on a 912px screen with 165px of its own allowance
   unused, which was the last 20px keeping the destination radios below the fold. height:auto
   lets it size to its content up to the 88% cap; on a short viewport it hits the cap and the
   flex column below makes the content area, not the footer, give way. */
#handoverRuleModal.modal-fixed-footer {
    height: auto;
    /* The form inside scrolls; the modal around it never does. Materialize's .modal sets
       overflow-y: auto, which is what put a second scrollbar outside the first. */
    overflow: hidden;
}
/* One criterion per row and one destination per row, as the panel had them. The three
   columns and the destination row fitted more on a screen, but the product owner reads this
   form top to bottom, one choice at a time. The modal's own height:auto above, and the live
   preview pinned in the footer below, are what keep the THEN half and the preview reachable
   now that the IF half is tall again. */
.handover-conditions-grid {
    display: block;
}
@media only screen and (max-width: 992px) {
    #handoverRuleModal {
        width: 92%;
    }
}

/* The live preview now lives in the rule modal's fixed footer, beside Save, so it is readable
   at the moment the rule is saved rather than at the bottom of a scrolling form.

   Materialize's modal-fixed-footer is absolutely positioned at a hard 56px, and it sizes the
   content with calc(100% - 56px). A preview line long enough to wrap makes the footer taller
   than that, and the bottom of the form then sits underneath it - measured at 72px of footer
   against a content box that still believed it had 56. Laying the modal out as a flex column
   instead lets the two size against each other, whatever the preview turns out to be.  */
#handoverRuleModal.modal-fixed-footer.open {
    /* Scoped to .open, which Materialize adds only while the modal is shown.
       !important is needed because Materialize opens a modal by writing display:block
       inline - but WITHOUT .open it also beat the framework's own ".modal { display:none }",
       so the modal never hid and its footer sat on every settings tab as a stray bar
       reading "Matches: every customer -> Last Agent  Save  Close". */
    display: flex !important;
    flex-direction: column;
}
#handoverRuleModal.modal-fixed-footer .modal-content {
    /* Materialize absolutely positions this so the fixed footer can sit under it; in a flex
       column that takes it out of flow and the footer rides up over the form. relative, not
       static: Materialize draws a radio as a position:absolute input behind a styled label,
       and with a static content box those inputs resolve against the modal instead - so the
       radios in this form laid themselves out down to y=1132 in a modal ending at 707 and
       stretched its scrollable area to 1060 against a 635 client box. The modal was then
       silently scrollable by 425px, and the first focus scroll dragged the form and the
       footer up out of it, leaving 425px of the modal's own white background below them.
       relative keeps the box in flex flow and puts the radios back inside the scrolling
       form, which takes the modal's own overflow back to zero. */
    position: relative;
    flex: 1 1 auto;
    max-height: none;
    overflow-y: auto;
    /* A flex item defaults to min-height:auto, which refuses to shrink below its content. The
       form then pushed the modal past its own max-height and BOTH scrolled - the form on the
       inside and, through Materialize's .modal { overflow-y: auto }, the modal around it. Two
       scrollbars side by side. This lets the form give way, so only it scrolls. */
    min-height: 0;
}
#handoverRuleModal.modal-fixed-footer .modal-footer {
    position: static;
    flex: 0 0 auto;
    height: auto;
    min-height: 56px;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
#handoverRuleModal.modal-fixed-footer .modal-footer .handover-summary {
    flex: 1 1 auto;
    margin-top: 0;
    text-align: start;
    line-height: 1.35;
    /* A rule using all six criteria produces a long line; three lines is the most the footer
       may take from the form above it. */
    max-height: 4.05em;
    overflow-y: auto;
}
@media only screen and (max-width: 992px) {
    /* Stacked, the summary would eat the modal on a phone; the buttons keep their own row. */
    #handoverRuleModal.modal-fixed-footer .modal-footer {
        flex-wrap: wrap;
    }
}

/* Six columns do not fit a phone. Measured at 375px the rules table was 437px wide and pushed
   the whole settings page into a horizontal scroll, so every other panel moved with it. It
   scrolls inside its own box instead; the page does not. */
@media only screen and (max-width: 600px) {
    .handover-rules-table {
        display: block;
        overflow-x: auto;
        width: 100%;
    }
}

/* ---- RoboDesk Space (US #2264 / #2265) ---------------------------------------------- */

/* The seeded support-space channel carries icon "chat" (a V2 icon name). V1 renders an
   adapter's icon as CSS classes on an empty <i>, so without this the channel shows no icon
   anywhere in V1. One rule instead of a branch in every channel list. The conversation header's
   <i> has no .default-icon, so it is named by its container; size and colour stay the header's. */
i.default-icon.chat::before,
.chat-header-channel-icon i.chat::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-style: normal;
    content: "\f086";
}

/* "chat" is also the message-row class, and the row rule (.chats .chat: flex + 0.5rem 1rem margin)
   matched the icon too, pushing it over the text of system messages and notes. */
.chat-application .app-chat .chat-content .chat-content-area .chat-area .chats .chat .channel-dv i.default-icon.chat {
    display: inline-block;
    margin: 0;
}

/* Composer: "Send Space link", beside Quick Reply */
.btn-pill.btn-space-link {
    background: #fff !important;
    color: var(--primary-color) !important;
    border: 1.5px solid var(--primary-color) !important;
    margin-inline-start: 8px;
    gap: 4px;
}

.btn-pill.btn-space-link .material-icons {
    font-size: 16px;
}

.btn-pill.btn-space-link.btn-space-link--disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Settings page */
.page-support-space .space-section-heading {
    font-size: 15px;
    font-weight: 700;
    margin: 24px 0 12px;
}

.page-support-space .space-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px 24px;
}

.page-support-space .space-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.page-support-space .space-field--wide {
    grid-column: 1 / -1;
}

.page-support-space .space-field__label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.page-support-space .space-field__row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-support-space .space-field__row input[type="text"] {
    flex: 1;
    margin: 0;
}

.page-support-space .space-field__swatch {
    width: 40px;
    height: 32px;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: none;
    cursor: pointer;
}

.page-support-space .space-field__logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: contain;
    border: 1px solid #e0e0e0;
    flex: none;
}

.page-support-space .space-field__logo--empty {
    display: inline-block;
    background: #f5f5f5;
}

/* The native file control is kept (it opens the picker and is what assistive tech operates)
   but visually replaced by the themed button around it. */
.page-support-space .space-field__upload {
    position: relative;
    overflow: hidden;
}

.page-support-space .space-field__upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.page-support-space .space-field__hint {
    font-size: 12px;
    color: #7f7f7f;
}

.page-support-space .space-field__hint--error {
    color: #d32f2f;
}

.page-support-space .space-field__hint--warn {
    color: #b26a00;
}

.page-support-space .space-savebar {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 24px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 6px 6px;
}

.page-support-space .space-savebar__actions {
    display: flex;
    gap: 8px;
}

/* WhatsApp Calls channel settings (US #2051): weekly call hours editor in V1 settings */
.wa-calls-field .wa-week {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin: 6px 0 4px;
}
.wa-calls-field .wa-day {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 16px;
    padding: 8px 12px;
    border-bottom: 1px solid #eeeeee;
}
.wa-calls-field .wa-day:last-child {
    border-bottom: 0;
}
.wa-calls-field .wa-day__name {
    min-width: 140px;
    padding-top: 6px;
}
.wa-calls-field .wa-day__ranges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}
.wa-calls-field .wa-range {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
/* Materialize stretches every input to 100% and draws an underline; keep the time boxes compact
   and wide enough for "05:00 PM" in a 12-hour locale. */
.wa-calls-field .wa-range input[type="time"] {
    width: 9.5em;
    height: 2.2rem;
    margin: 0;
    padding: 0 6px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    box-sizing: border-box;
}
.wa-calls-field .wa-range__remove,
.wa-calls-field .wa-range__add {
    cursor: pointer;
}
.wa-calls-field .wa-range__remove {
    font-size: 18px;
    line-height: 1;
    padding: 0 4px;
}
.wa-calls-field .wa-week > p {
    margin: 6px 12px 8px;
}

/* SIP / WhatsApp choice under the outbound call icon (US #2051) */
.call-route-menu {
    position: absolute;
    right: 0;
    z-index: 30;
    min-width: 170px;
    margin-top: 6px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    text-align: start;
}
.call-route-menu__item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
}
.call-route-menu__item:hover,
.call-route-menu__item:focus {
    background: #f3eef8;
}
.call-route-menu__item i {
    font-size: 18px;
}

/* Knowledge Sources registry (US #2225) - templates/knowledge_sources.html */
.ks-page .ks-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 16px 0 12px;
}
.ks-page .ks-title {
    margin: 0;
    font-weight: 600;
}
.ks-page .ks-subtitle {
    margin: 4px 0 0;
    color: #757575;
    font-size: 13px;
}
.ks-page .ks-health {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}
.ks-page .ks-health-card {
    display: flex;
    flex-direction: column;
    min-width: 130px;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: inherit;
    cursor: pointer;
}
.ks-page .ks-health-card--selected {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 1px var(--secondary-color);
}
.ks-page .ks-health-count {
    font-size: 22px;
    font-weight: 600;
}
.ks-page .ks-health-label {
    font-size: 12px;
    color: #757575;
}
.ks-page .ks-health-card--active .ks-health-count {
    color: #2e7d32;
}
.ks-page .ks-health-card--syncing .ks-health-count {
    color: #1565c0;
}
.ks-page .ks-health-card--error .ks-health-count {
    color: #c62828;
}
.ks-page .ks-health-card--paused .ks-health-count {
    color: #757575;
}
.ks-page .ks-type-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #616161;
}
.ks-page .ks-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.ks-page .ks-filter {
    width: auto;
    min-width: 160px;
    height: 36px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
}
.ks-page .ks-filter--search {
    display: flex;
    align-items: center;
    flex: 1 1 240px;
    padding: 0 8px;
}
.ks-page .ks-filter--search i {
    color: #9e9e9e;
    margin-right: 6px;
}
.ks-page .ks-filter--search input {
    height: 34px;
    margin: 0;
    border-bottom: none;
    box-shadow: none;
}
.ks-page .ks-table td {
    vertical-align: top;
}
.ks-page .ks-name {
    font-weight: 500;
}
.ks-page .ks-muted {
    display: block;
    font-size: 12px;
    color: #9e9e9e;
}
.ks-page .ks-url {
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ks-page .ks-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    background: #eceff1;
    color: #37474f;
}
.ks-page .ks-type-badge--website {
    background: #e3f2fd;
    color: #1565c0;
}
.ks-page .ks-type-badge--file {
    background: #f3e5f5;
    color: #6a1b9a;
}
.ks-page .ks-type-badge--api {
    background: #e0f2f1;
    color: #00695c;
}
.ks-page .ks-status-reason {
    max-width: 260px;
    margin-top: 4px;
    font-size: 12px;
    color: #c62828;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ks-page .ks-reconnect {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 12px;
    cursor: pointer;
}
.ks-page .ks-actions-col {
    width: 48px;
}
.ks-page .row-actions-dropdown li > a.disabled-action {
    opacity: 0.5;
    cursor: not-allowed;
}
.ks-page .ks-empty {
    padding: 48px 16px;
    text-align: center;
    color: #757575;
}
.ks-page .ks-empty > i {
    font-size: 48px;
    color: #bdbdbd;
}
.ks-modal .ks-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.ks-modal .ks-option {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: inherit;
    cursor: pointer;
}
.ks-modal .ks-option:hover {
    border-color: var(--secondary-color);
}
.ks-modal .ks-option--upcoming {
    cursor: default;
    opacity: 0.55;
}
.ks-modal .ks-option--upcoming:hover {
    border-color: #e0e0e0;
}
.ks-modal .ks-option-icon {
    color: var(--secondary-color);
}
.ks-modal .ks-option-text {
    display: flex;
    flex-direction: column;
}
.ks-modal .ks-option-type {
    font-size: 11px;
    text-transform: uppercase;
    color: #9e9e9e;
}
.ks-modal .ks-option-label {
    font-weight: 600;
}
.ks-modal .ks-option-desc {
    font-size: 12px;
    color: #757575;
}
.ks-modal .ks-option-soon {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 11px;
    color: #f57f17;
}
.ks-modal .ks-field {
    margin-bottom: 16px;
}
.ks-modal .ks-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0;
}

/* Articles page: where each article came from (US #2225) */
.article-origin {
    margin-top: 4px;
}
.article-origin-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    background: #f5f5f5;
    color: #616161;
}
.article-origin-badge--website,
.article-origin-badge--deep_crawl {
    background: #e3f2fd;
    color: #1565c0;
}
.article-origin-badge--file {
    background: #f3e5f5;
    color: #6a1b9a;
}
.article-origin-badge--api,
.article-origin-badge--api_item {
    background: #e0f2f1;
    color: #00695c;
}
.article-origin-badge--meta_catalog,
.article-origin-badge--meta_item {
    background: #e8eaf6;
    color: #283593;
}

/* ==== Prompt Management (Automation > Prompts) ==== */
/* Prompt Management modal (#promptManagementModal) — automation.html */

/* Prompt-details view title — gives the icon+name heading breathing room from the card edges */
.prompt-details-title-wrap {
    padding: 1.5rem 1.5rem 0;
}

/* The icon beside the prompt name (two classes, so it wins over .material-icons) */
.prompt-details-title-wrap .prompt-details-title-icon {
    font-size: 2rem;
    vertical-align: middle;
}

/* Prompts list table header (#promptsTable) — matches the ticket list table's header style */
#promptsTable thead .table-header {
    box-shadow: none;
}

#promptsTable thead th {
    padding: 0.75rem 1rem;

    font-family: "Inter", "SF Pro Display", system-ui, -apple-system, "Segoe UI", "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #000;
    -webkit-font-smoothing: antialiased;
}

/* Prompt content viewer (prompt-details view — Text Prompt panel) */
.prompt-text-content {
    white-space: pre-wrap;
    width: 100%;
    overflow-wrap: break-word;
    max-height: calc(100vh - 18.75rem);
    overflow-y: auto;
}

.prompt-versions-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

/* Prompt version list (prompt-details view — Versions sidebar) */
.prompt-version-list {
    max-height: calc(100vh - 16.25rem);
    margin-top: 1rem;
    overflow-y: auto;
}

.prompt-version-row {
    padding: 0.5rem;
    margin-bottom: 0.5rem;

    border: 1px solid #e0e0e0;
    transition: background-color .15s ease;
}

.prompt-version-row:last-child {
    margin-bottom: 0;
}

.prompt-version-title {
    color: #212121;
}

.prompt-version-row:hover {
    background-color: #f5f5f5;
}

.prompt-version-row .prompt-version-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;

    margin-top: 0.5rem;
}

.prompt-version-row .prompt-version-actions .btn-flat {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;

    flex-shrink: 0;
    margin: 0;
    padding: 0 0.5rem;
    white-space: nowrap;
}

#promptManagementModal textarea.materialize-textarea {
    overflow: hidden;
}

#promptContentTextArea,
#promptConfigTextArea {
    box-sizing: border-box;
    padding: 0.625rem 0.75rem;

    border: 1px solid #d6d6d6;
    border-radius: 0.25rem;
    background-color: #fff;
}

#promptContentTextArea:focus:not([readonly]),
#promptConfigTextArea:focus:not([readonly]) {
    border-color: var(--secondary-color, #622695);
    box-shadow: 0 0 0 1px var(--secondary-color, #622695);
}

#promptManagementModal .prompt-modal-title,
#compareVersionsModal .prompt-modal-title {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;

    border-bottom: 1px solid #e0e0e0;

    font-weight: 500;
}

#promptManagementModal .section-label {
    display: block;
    margin-bottom: 0.375rem;

    color: #757575 !important;
    font-size: .85rem !important;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.btn-secondary-light {
    background-color: #e0e0e0 !important;
    color: #424242 !important;
    border: 1px solid #c7c7c7 !important;
}

.btn-secondary-light:hover {
    background-color: #d5d5d5 !important;
}

/* ==== Prompt version comparison ==== */
/* Prompt version comparison (#compareVersionsModal) — automation.html / PromptCompareController */

#compareVersionsModal {
    width: 90%;
    max-width: 87.5rem;
}

#compareVersionsModalTitle {
    font-weight: 700;
}

#compareVersionsHeader .font-weight-600 {
    font-weight: 700 !important;
    color: #000;
}

/* Plain clickable element styled as a checkbox — deliberately not a real
   <input type="checkbox">. Materialize hides real checkboxes via
   position:absolute + opacity:0, and clicking the fake CSS checkbox still
   focuses that invisible, absolutely-positioned input as part of the
   browser's native label-activation behavior. Inside a scrollable list,
   that could make Chrome scroll the whole page trying to bring the
   invisible focus target into view. Using a plain div/span here removes
   every part of that mechanism. */
.prompt-version-compare-check {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;

    cursor: pointer;
    color: #616161;
    font-size: 0.75rem;
}

.prompt-version-compare-check--disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.prompt-compare-checkbox-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;

    border: 2px solid #5a5a5a;
    border-radius: 0.0625rem;
}

.prompt-compare-checkbox-icon--checked {
    border-color: var(--secondary-color, #622695);
    background-color: var(--secondary-color, #622695);
}

.prompt-compare-checkbox-icon i {
    font-size: 0.875rem;
    color: #fff;
}

#compareVersionsModal .prompt-compare-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;

    border-bottom: 1px solid #e0e0e0;
}

#compareVersionsModal .prompt-compare-header > div {
    flex: 1;
}

#compareVersionsModal .prompt-compare-loading {
    padding: 2rem 0;
}

#compareVersionsModal .prompt-compare-spinner {
    border-color: var(--primary-color, #7442a1) !important;
}

#compareVersionsModal .prompt-compare-section-title {
    margin: 1.25rem 0 0.5rem;

    font-weight: 700;
    color: #000;
}

#compareVersionsModal .prompt-compare-panes {
    display: flex;
    gap: 1rem;
}

#compareVersionsModal .prompt-compare-pane {
    flex: 1;
    margin: 0;
    padding: 0.625rem 0.75rem;

    white-space: pre-wrap;
    overflow-wrap: break-word;
    font-weight: 500;
    color: #424242;

    border: 1px solid #d6d6d6;
    border-radius: 0.25rem;
    background-color: #fff;

    /* The stored text, not the page, decides direction: in the Arabic UI an English prompt
       inherited rtl and rendered mirrored. Each paragraph takes the direction of its first
       strong character, and aligns to it. */
    unicode-bidi: plaintext;
    text-align: start;
}

/* Config is JSON: always left to right. */
#compareVersionsModal .prompt-compare-pane--code {
    direction: ltr;
    unicode-bidi: isolate;
    text-align: left;
}

#compareVersionsModal .prompt-compare-word--added {
    background-color: #c8ead3;
}

#compareVersionsModal .prompt-compare-word--removed {
    background-color: #f6c9c4;
    text-decoration: line-through;
}
