::-webkit-input-placeholder {
    font-style: italic;
}

:-moz-placeholder {
    font-style: italic;
}

::-moz-placeholder {
    font-style: italic;
}

:-ms-input-placeholder {
    font-style: italic;
}

th {
    font-size: 12px;
    font-weight: normal;
    padding-bottom: 10px;
    border-bottom: 1px solid rgb(205, 208, 212);
}

td:not(:first-child) {
    padding-left: 10px;
}

th:not(:first-child) {
    padding-left: 10px;
}

td {
    font-size: 14px;
    padding-bottom: 10px;
}

td .hidden-menu {
    visibility: hidden;
}

td:hover .hidden-menu {
    visibility: visible;
}

tr {
    padding-bottom: 10px;
}

.swal2-confirm {
    line-height: 5px;
    font-size: 12px !important;
    background-color: #0078d4 !important;
    border-radius: 0 !important;
}

.swal2-cancel {
    line-height: 5px;
    font-size: 12px !important;
}

tbody>tr:hover {
    background-color: var(--da-row-hover);
}

th:hover {
    border-right: 1px solid var(--da-border-strong);
    background-color: var(--da-row-hover);
}

.tablerow:hover {
    background-color: red !important;
}

.rounded-checkbox {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    vertical-align: middle;
    border: 1px solid black;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    margin-right: 5px;
}

.rounded-checkbox:checked {
    appearance: auto;
    clip-path: circle(50% at 50% 50%);
    background-color: #0078d4;
}

.textBox {
    border-radius: 0;
    background-color: var(--da-surface-alt);
    color: var(--da-text);
    font-size: 14px;
    outline: none;
    width: 100%;
    border: 0;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 10px;
}

.caret-off::after {
    display: none;
}

.swal2-popup {
    border-radius: 0 !important;
}

.swal2-cancel {
    line-height: 5px;
    font-size: 12px !important;
    border-radius: 0;
}

.swal2-html-container {
    font-size: 14px !important;
    padding-top: 5% !important;
}

.back-button:hover {
    background-color: var(--da-row-hover) !important;
}

.popup-btn {
    position: fixed;
    width: 120px;
    height: 30px;
    left: 100%;
    top: 80%;
    background-color: #0078d4;
    padding: 1%;
    transform-origin: 0% 0%;
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg) translateX(-50%);
}

a {
    all: unset;
    cursor: pointer;
}

.panel-card {
    min-height: 85vh;
    height: auto;
    display: flex;
    flex-direction: column;
    border: none;
}


.action-col {
    align-items: center;
    justify-content: center;
    height: 100%;
}

.toolbar .form-select,
.toolbar .form-control {
    min-width: 220px;
}

.list-group-item {
    cursor: pointer;
    background-color: var(--da-surface-alt);
    color: var(--da-text);
}

/* Make related/generated items look identical to suggestions & accepted */
#list-related .list-group-item {
    display: flex;
    align-items: flex-start;
    padding: 8px 12px;
    border: 0 !important;
    background-clip: padding-box;
    gap: 0;
}

#list-related .list-group-item>div {
    flex: 1;
    min-width: 0;
}

#list-related .list-group-item img {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    margin-left: 6px !important;
    margin-right: 11px !important;
    flex-shrink: 0;
    display: block;
}


/* Suggestions selection */
#list-suggestions .list-group-item.active,
#list-accepted .list-group-item.active,
#suggestions-history-list .list-group-item.active {
    background-color: var(--da-row-selected) !important;
    border-left: 3px solid var(--da-primary) !important;
    color: var(--da-text) !important;
    padding-left: 9px !important;
}

/* Keep the "Create / Update" button pinned at bottom of right card */
.card-body-flex {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.grow {
    flex: 1 1 auto;
}

.bg-gray {
    background: var(--da-surface-alt);
}

/* Sits inside .bg-gray - keep the textarea flush with its container. */
#suggestion_input {
    background-color: var(--da-surface-alt);
    color: var(--da-text);
}

.border-none {
    border: none;
}

.action-btn {
    width: 60%;
    border-radius: 15%;
}

.startRecording {
    font-size: x-large;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.stopRecording {
    font-size: x-large;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

#list-suggestions .list-group-item,
#list-accepted .list-group-item,
#suggestions-history-list .list-group-item {
    display: flex;
    align-items: flex-start;
    padding: 8px 12px;
    border: 0 !important;
    background-clip: padding-box;
    gap: 0;
}

#list-suggestions .list-group-item>div,
#list-accepted .list-group-item>div,
#suggestions-history-list .list-group-item>div {
    flex: 1;
    min-width: 0;
}

#list-suggestions.list-group-flush>.list-group-item,
#list-accepted.list-group-flush>.list-group-item {
    border: 0 !important;
}

#list-suggestions .list-group-item img,
#list-accepted .list-group-item img,
#suggestions-history-list .list-group-item img {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    margin-left: 6px !important;
    margin-right: 11px !important;
    flex-shrink: 0;
    display: block;
}

/* Suggestions History Styles */
#suggestions-history-container.history-container {
    display: none;
    border-top: 1px solid #dee2e6;
    padding: 10px;
}

#suggestions-history-toggle.history-toggle {
    cursor: pointer;
    padding: 8px;
    text-align: center;
    background-color: var(--da-surface-alt);
    border-radius: 4px;
    margin-bottom: 10px;
}

#suggestions-history-toggle.history-toggle:hover {
    background-color: var(--da-row-hover);
}

#suggestions-history-content.history-content {
    display: none;
}

.collapsed {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
}

.collapsed .list-group-item {
    padding: 4px 8px !important;
    justify-content: flex-start;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-start;
    min-height: 48px;
    border: 0 !important;
    background-clip: padding-box;
}

.collapsed .list-group-item span {
    display: none !important;
}

.collapsed .list-group-item {
    text-indent: -9999px;
    overflow: hidden;
}

.collapsed .list-group-item img {
    text-indent: 0;
}

.collapsed .list-group-item:hover::after {
    display: none !important;
}

.collapsed .list-group-item:hover::before {
    display: none !important;
}

.collapsed .list-group-item img {
    margin: 0;
    padding: 0;
    width: 16px !important;
    height: 16px !important;
    display: block;
    align-self: flex-start;
}

.collapsed .card-header strong {
    font-size: 18px;
    font-weight: bold;
}

.collapsed .right-footer {
    display: none !important;
}

.suggestions-collapsed .action-panel {
    margin-left: 0;
}

.card-footer {
    padding: 8px;
    border-top: 1px solid #dee2e6;
}

.card-footer .btn {
    border: none;
    background: none;
    color: #87ceeb;
    font-size: 18px;
    font-weight: normal;
    padding: 4px 8px;
    border-radius: 0;
    transition: color 0.2s ease;
    font-family: monospace;
    letter-spacing: -1px;
}

.card-footer .btn:hover {
    color: #5dade2;
    background: none;
    border: none;
}

.card-footer .btn:focus {
    box-shadow: none;
    outline: none;
}

.right-footer {
    padding-top: 0.5rem;
}

.panel-collapsed {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
}

.panel-collapsed .card-body {
    padding: 0 !important;
}

.panel-collapsed .list-group-item {
    padding: 8px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 40px !important;
    border: 0 !important;
    background-clip: padding-box;
}

.panel-collapsed .list-group-item span,
.panel-collapsed .list-group-item div,
.panel-collapsed .list-group-item p,
.panel-collapsed .list-group-item strong,
.panel-collapsed .list-group-item em,
.panel-collapsed .list-group-item *:not(img) {
    display: none !important;
}

.panel-collapsed .list-group-item {
    text-indent: -9999px !important;
    overflow: hidden !important;
}

.panel-collapsed .list-group-item img {
    margin: 0 !important;
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    text-indent: 0 !important;
}

.panel-collapsed .card-header {
    padding: 8px !important;
    justify-content: center !important;
}

.panel-collapsed .card-header strong {
    display: none !important;
}

.panel-collapsed .card-header::before {
    content: attr(data-abbrev);
    font-weight: bold;
    font-size: 14px;
}

.panel-collapsed .right-footer {
    display: none !important;
}

.panel-collapsed .card-footer {
    display: block !important;
    padding: 4px !important;
}

.panel-collapsed img.tooltip-custom {
    position: relative;
    cursor: pointer;
}

.tooltip-text {
    width: 350px;
    background-color: var(--da-surface-raised);
    color: var(--da-text);
    text-align: left;
    border-radius: 3px;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    pointer-events: none;
    display: none;
}

.panel-collapsed .tooltip-text {
    display: block !important;
}

#taskSuggestions {
    border-radius: 2px !important;
}


.menu-component {
    position: relative;
    display: inline-block;
    font-family: Arial, sans-serif;
}

.menu-list {
    display: none;
    position: absolute;
    right: 0;
    margin-top: 6px;
    list-style: none;
    padding: 6px 0;
    background: var(--da-surface-raised);
    border: 1px solid var(--da-border-strong);
    border-radius: 6px;
    min-width: 140px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    top: 40px;
}


.menu-list li {
    padding: 8px 14px;
}

.menu-list li a {
    text-decoration: none;
    color: var(--da-text);
    display: block;
}

.menu-list li:hover {
    background-color: var(--da-row-hover);
}


.menu-component.active .menu-list {
    display: block;
}

/* Chat Widget Styles  */

#chat-widget-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    backdrop-filter: blur(3px);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat Modal Dialog */
.chat-modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    background: var(--da-surface-raised);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-modal-header {
    background: #0d6efd;
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.chat-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header-icon {
    font-size: 24px;
}

.chat-header-title {
    font-size: 18px;
    font-weight: 600;
}

.chat-header-subtitle {
    font-size: 12px;
    opacity: 0.9;
}

#close-chat-widget {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#close-chat-widget:hover {
    background: rgba(255, 255, 255, 0.3);
}

#chat-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: linear-gradient(to bottom, var(--da-surface-alt) 0%, var(--da-surface) 100%);
    min-height: 300px;
    max-height: calc(85vh - 200px);
    scrollbar-width: thin;
    scrollbar-color: var(--da-border-strong) var(--da-surface-alt);
}

#chat-messages-container::-webkit-scrollbar {
    width: 8px;
}

#chat-messages-container::-webkit-scrollbar-track {
    background: var(--da-surface-alt);
    border-radius: 4px;
}

#chat-messages-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

#chat-messages-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Input Area */
.chat-input-area {
    padding: 20px 24px;
    background: var(--da-surface-raised);
    border-top: 1px solid var(--da-border-strong);
    border-radius: 0 0 12px 12px;
}

.chat-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

#chat-widget-input {
    flex: 1;
    resize: none;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    padding: 12px 16px;
    line-height: 1.5;
    transition: border-color 0.2s;
    font-family: inherit;
}

#chat-widget-input:focus {
    border-color: #0d6efd;
    outline: none;
}

#chat-widget-send {
    padding: 0;
    width: 40px;
    height: 40px;
    background: #0d6efd;
    border: none;
    border-radius: 50%;
    color: white;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

#chat-widget-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.5);
}

#chat-widget-send:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.chat-help-text {
    margin-top: 8px;
    font-size: 12px;
    color: var(--da-text-secondary);
    text-align: center;
}

.related-items-list {
    font-size: 14px;
}

.related-item a {
    color: #0078d4;
}

.related-item a:hover {
    text-decoration: underline;
}

.related-item .text-muted {
    font-size: 12px;
}

/* Row padding */
.form-row {
    padding-top: none !important;
    align-items: center;
}

/* White Box */
.white-box {
    background-color: var(--da-surface);
    border: 1px solid var(--da-border-strong);
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0;
    width: 70%;
}

/* Scope text container */
.scope-container {
    flex: 0 0 auto;
    padding: 0 15px;
}

.scope-text {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
    padding: 8px 0;
}

/* Search container */
.search-container {
    flex: 1;
    padding: 0 15px;
    position: relative;
}

.search-input {
    width: 100%;
    border: none;
    padding: 8px 4px;
    font-size: 14px;
    background-color: var(--da-surface);
    outline: none;
    color: var(--da-text);
    border-top: none !important;
    border-bottom: none !important;
    border-left: 1px solid #dee2e6 !important;
    border-right: 1px solid #dee2e6 !important;

}

/* Task suggestions dropdown */
.task-suggestions {
    z-index: 1000;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: none;
}

/* Dropdown container */
.dropdown-container {
    flex: 0 0 auto;
    padding: 0;
    border-right: 1px solid #dee2e6;
}

/* Dropdown button */
.dropdown-btn {
    border-radius: 0;
    height: 100%;
    background-color: var(--da-surface);
    color: var(--da-text-secondary);
    border: 0;
    font-size: 14px;
    padding: 8px 15px;
    width: 100%;
}

/* Remove hover effect */
.dropdown-btn:hover,
.dropdown-btn:focus,
.dropdown-btn:active {
    background-color: var(--da-surface) !important;
    color: var(--da-text-secondary) !important;
    box-shadow: none !important;
}

/* Plus icon button for filter types */
.plus-icon-btn {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin-bottom: 4px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    font-weight: 200;
    line-height: 1;
    background-color: transparent !important;
    color: var(--da-text-secondary) !important;
    border: none !important;
    border-radius: 0 !important;
    flex-shrink: 0;
    cursor: pointer !important;
}

.plus-icon-btn:hover {
    background-color: transparent !important;
    color: var(--da-text) !important;
    cursor: pointer !important;
}

.plus-icon-btn:active,
.plus-icon-btn:focus {
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Hide dropdown arrow for plus button */
.plus-icon-btn::after {
    display: none !important;
}

/* Dropdown menu */
.dropdown-menu-custom {
    padding-left: 8px;
    width: 250%;
}

/* Generate button */
.btn-generate {
    display: inline-block;
    height: auto;
    width: auto;
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
}

.filter-hidden {
    display: none !important;
}

.filter-visible {
    display: flex !important;
}

#filterBar *:not(input[type="checkbox"]) {
    border: none !important;
}

.header-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-title {
    font-size: 18px;
    font-weight: 300;
}

.header-back {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: normal;
}

.header-back:hover {
    background-color: var(--da-row-hover) !important;
}


.kebab-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 6px 8px;
    display: flex;
    align-items: center;
}

.kebab-btn i {
    font-size: 15px;
    color: var(--da-text);
}

.kebab-btn:hover {
    background: transparent !important;
}

.kebab-btn:focus {
    outline: none;
    box-shadow: none;
}

.header-kebab .dropdown-menu {
    min-width: 150px;
}

.header-kebab .dropdown-item:disabled,
.header-kebab .dropdown-item.disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
}

.header-kebab .dropdown-item:disabled:hover,
.header-kebab .dropdown-item.disabled:hover {
    background-color: transparent !important;
}

.header-sep-icon {
    font-size: 21px;
    color: var(--da-text-secondary);
    margin: 0 10px;
}

.header-separator {
    display: inline-block;
    width: 1px;
    height: 18px;
    background-color: #999;
    margin: 0 12px;
    transform: scaleY(1.5);
}

.collapsible-panel .card {
    height: 780px;
    display: flex;
    flex-direction: column;
}

.collapsible-panel .card-header {
    flex-shrink: 0;
}

.collapsible-panel .card-body {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.collapsible-panel .card-body ul {
    overflow-y: visible;
    max-height: none;
}

.collapsible-panel .card-body::-webkit-scrollbar {
    width: 8px;
}

.collapsible-panel .card-body::-webkit-scrollbar-track {
    background: var(--da-surface-alt);
}

.collapsible-panel .card-body::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
}

.collapsible-panel .card-body::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.collapsible-panel-generated-work .card {
    height: 734px;
}

.collapsible-panel-generated-work .card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    overflow: hidden;
}

.collapsible-panel-generated-work #relatedWorkContent {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
}

.collapsible-panel-generated-work #list-related {
    overflow: visible;
    max-height: none;
}

.avatar-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0078d4;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: normal;
    flex-shrink: 0;
}

.related-work-title {
    pointer-events: auto;
}

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

.state-text {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    white-space: nowrap;
    position: relative;
}

.state-text::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgb(178, 178, 178);
    background: var(--state-color, rgb(178, 178, 178));
    display: inline-block;
    margin-right: 4px;
    flex-shrink: 0;
}

.collapsible-panel-generated-work #relatedWorkContent::-webkit-scrollbar {
    width: 8px;
}

.collapsible-panel-generated-work #relatedWorkContent::-webkit-scrollbar-track {
    background: var(--da-surface-alt);
}

.collapsible-panel-generated-work #relatedWorkContent::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
}

.collapsible-panel-generated-work #relatedWorkContent::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.collapsible-panel-generated-work .card-body {
    padding-right: 0;
}

.generated-related-panel {
    height: 80vh;
    min-height: 80vh;
    max-height: 80vh;
}

.suggestion-btn-wrapper {
    display: inline-flex;
    align-items: center;
    height: 36px;
}


#generate_suggestions_btn {
    background-color: #0d6efd;
    color: white;
    border: 1px solid #0d6efd;
    padding: 0.3rem 0.65rem;

    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    cursor: pointer;
    border-right: 2px solid #0056b3;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}

#dropdownSuggestionWorkItemTypeFilter {
    background-color: #0d6efd;
    color: white;
    border: 1px solid #0d6efd;
    padding: 0 0.6rem;

    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
    cursor: pointer;
    font-size: 1.2rem;

    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}


#ddlSuggestionWorkItemTypeFilter {
    min-width: 50px;
    width: auto;
    padding: 0.2rem 1.1em;

    text-align: left;
}

body {
    margin-left: 8px;
}

.dropdown-menu {
    border-radius: 8px;
}

.dropdown-item {
    font-size: 14px;
    padding: 8px 12px;
}

.dropdown-item i {
    width: 18px;
}

.dropdown-item:focus,
.dropdown-item:hover {
    background-color: var(--da-row-hover);
    width: auto;
}

#licenseExpired,
#unauthorized {
    font-size: 12px !important;
}