html,
body {
    height: 600px;
    margin: 0;
    overflow: hidden;
    font-family: Segoe UI, sans-serif;
}

.quick-access-root {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--da-surface);
    border-radius: 3px;
    border: 1px solid var(--da-border-strong);
}

.qa-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 999;
}

.qa-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--da-surface);
    padding: 16px 18px;
    width: 360px;
    /* reduced */
    border-radius: 6px;
    z-index: 1000;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    font-size: 13px;
    /* smaller overall text */
}

.qa-modal h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    /* smaller heading */
    font-weight: 600;
}

.qa-modal-row {
    display: grid;
    grid-template-columns: 135px 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.qa-modal-row label {
    font-weight: 500;
    font-size: 12px;
    color: var(--da-text);
}

.qa-modal-row span {
    font-size: 12px;
}

.qa-modal-row input {
    height: 28px;
    padding: 4px 6px;
    font-size: 12px;
}

.qa-modal-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.quick-access-tabs {
    display: flex;
    justify-content: space-around;
    padding: 6px 0 4px 0;
    border-bottom: 1px solid var(--da-border-strong);
}

.qa-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    cursor: pointer;
    color: var(--da-text-secondary);
    font-weight: 400;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.qa-tab img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.qa-tab.active span {
    font-weight: 600;
}

.qa-tab-disabled {
    cursor: not-allowed;
}

.quick-access-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.qa-tab span {
    font-size: 11px;
    line-height: 1;
}

.qa-tab:hover {
    color: var(--da-text);
}

/* ACTIVE tab */
.qa-tab.active {
    color: var(--da-text);
    /* black */
    font-weight: 600;
    /* bold */
}

.qa-tab.active span {
    font-weight: 600;
}

.qa-primary-btn {
    background-color: #0078d4;
    color: #ffffff;
    border: none;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.qa-primary-btn:hover {
    background-color: #005a9e;
}

.qa-primary-btn:disabled {
    background-color: #c8c6c4;
    cursor: not-allowed;
}

.qa-primary-small-btn {
    background-color: #0078d4;
    color: #ffffff;
    border: none;
    padding: 0px 8px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.qa-primary-small-btn:hover {
    background-color: #005a9e;
}

.qa-primary-small-btn:disabled {
    background-color: #c8c6c4;
    cursor: not-allowed;
}

/* ===============================
   SUMMARY SCREEN
================================ */

.qa-summary-root {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--da-text);
}

/* Header row */
.qa-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Meta text */
.qa-summary-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qa-summary-label {
    font-weight: 600;
    font-size: 13px;
}

.qa-summary-updated {
    font-size: 11px;
    color: var(--da-text-secondary);
}

/* Divider */
.qa-summary-divider {
    height: 1px;
    background-color: var(--da-surface-alt);
    margin: 4px 0;
}

/* Loading state */
.qa-summary-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    gap: 6px;
    color: var(--da-text-secondary);
    font-size: 12px;
}

.qa-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--da-border-strong);
    border-top: 2px solid #0078d4;
    border-radius: 50%;
    animation: qa-spin 0.8s linear infinite;
}

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

/* Summary content */
.qa-summary-content {
    font-size: 13px;
    line-height: 1.5;
    padding: 5px;
}

/* Markdown tuning */
.qa-summary-content h1,
.qa-summary-content h2,
.qa-summary-content h3 {
    font-size: 13px;
    margin: 8px 0 4px;
}

.qa-summary-content ul {
    padding-left: 18px;
    margin: 6px 0;
}

.qa-summary-content li {
    margin-bottom: 4px;
}

/* Empty + error */
.qa-summary-empty {
    font-size: 12px;
    color: var(--da-text-secondary);
    padding: 8px 0;
}

.qa-summary-error {
    font-size: 12px;
    color: #a4262c;
    padding: 8px 0;
}

/* Utility */
.hidden {
    display: none;
}

/* ===============================
   EVOLVE SCREEN
================================ */

.qa-evolve-root {
    display: flex;
    flex-direction: column;
    height: 100%;
    font-size: 13px;
    color: var(--da-text);
}

.qa-evolve-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Prompt */
.qa-evolve-prompt {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qa-label {
    font-weight: 600;
}

.qa-textarea {
    resize: vertical;
    min-height: 60px;
    font-size: 13px;
    padding: 6px 8px;
    border: 1px solid var(--da-border-strong);
    border-radius: 2px;
}

.qa-textarea:focus {
    outline: none;
    border-color: #605e5c;
}

/* Generate button */
.qa-evolve-generate {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1px;
}

/* Anchor for dropdown */
.qa-evolve-type-filter {
    position: relative;
}

/* Dropdown panel */
#evolve-type-panel {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;

    width: 220px;
    max-height: 360px;
    overflow-y: auto;

    background: var(--da-surface);
    border: 1px solid var(--da-border-strong);
    border-radius: 4px;
    padding: 6px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

/* Checkbox rows */
#evolve-type-panel .qa-checkbox {
    padding: 4px;
    cursor: pointer;
}

#evolve-type-panel .qa-checkbox:hover {
    background: var(--da-surface-alt);
    border-radius: 2px;
}

#evolve-type-panel .qa-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qa-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

/* Suggestions list */
.qa-evolve-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qa-divider {
    margin-bottom: 6px;
}

.qa-suggestion-item {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    align-items: stretch;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--da-border-strong);
    border-radius: 2px;
    background: var(--da-surface-alt);
    width: 100%;
}

.qa-suggestion-icon {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.qa-suggestion-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qa-suggestion-title {
    font-weight: 600;
}

.qa-suggestion-meta {
    font-size: 11px;
    color: var(--da-text-secondary);
}

.qa-suggestion-description {
    font-size: 12px;
    color: var(--da-text);
}

/* Footer */
.qa-evolve-footer {
    background: var(--da-surface);
    padding: 4px 0;
    display: flex;
    justify-content: flex-end;
}


.qa-inline-error {
    color: #a4262c;
    font-size: 12px;
}

.qa-input-error {
    border-color: #a4262c;
}

/* Initial empty state */
.qa-evolve--empty .qa-evolve-scroll,
.qa-evolve--empty .qa-evolve-footer {
    display: none;
}

.qa-evolve--empty .qa-textarea {
    min-height: 140px;
}

/* After suggestions are generated */
.qa-evolve--has-results .qa-evolve-scroll {
    display: block;
}

.qa-evolve--has-results .qa-evolve-footer {
    display: flex;
}

.qa-evolve--has-results .qa-textarea {
    min-height: 60px;
}

.qa-evolve-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 4px;

    border-top: 1px solid var(--da-border-strong);
    background: var(--da-surface);
}

.qa-evolve-footer.hidden {
    display: none;
}

.qa-evolve-footer .btn-group {
    display: flex;
}

.qa-evolve-footer .btn-group .qa-primary-btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.qa-evolve-footer .btn-group .dropdown-toggle {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding-left: 8px;
    padding-right: 8px;
    min-width: auto;
}

.qa-evolve-footer .btn-group .dropdown-toggle::after {
    content: "";
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.qa-evolve-footer .dropdown-menu {
    font-size: 13px;
    min-width: 200px;
}

.qa-evolve-footer .dropdown-item {
    padding: 8px 12px;
    font-size: 13px;
}

.qa-evolve-footer .dropdown-item:hover {
    background-color: var(--da-surface-alt);
}

.qa-evolve-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qa-evolve-title {
    flex: 1;
    font-weight: 600;
    cursor: pointer;
}

.qa-evolve-description {
    margin-left: 28px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--da-text-secondary);
}

.qa-evolve-description.hidden {
    display: none;
}

.qa-evolve-arrow {
    font-size: 12px;
    cursor: pointer;
}

/* ===============================
   RELEASE SCREEN
================================ */

.qa-release-root {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--da-text);
}

.qa-release-add-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.qa-release-item {
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
}

.qa-release-item a {
    color: var(--da-text);
    text-decoration: none;
}

.qa-release-item-main {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.qa-icon-btn {
    background: transparent;
    border: none;
    color: var(--da-text-secondary);
    padding: 4px;
    cursor: pointer;
}

.qa-icon-btn:hover {
    color: #0078d4;
}

.qa-del-icon-btn {
    background: transparent;
    border: none;
    color: var(--da-text-secondary);
    padding: 4px;
    cursor: pointer;
}

.qa-del-icon-btn:hover {
    color: #a4262c;
}

.qa-release-link {
    font-weight: 600;
    color: #0078d4;
    text-decoration: none;
}

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

.qa-release-related .qa-suggestion-item {
    align-self: stretch;
}

.qa-select {
    font-size: 12px;
    padding: 4px 6px;
    border: 1px solid var(--da-border-strong);
    border-radius: 2px;
    background: var(--da-surface);
    width: 100%;
}

.evolve-existing-chat-dropdown {
    max-width: 260px;
    border: 1px solid var(--da-border-strong);
    padding: 1px;
    cursor: pointer;
}

.qa-prev-header {
    cursor: pointer;
    font-weight: 600;
    padding: 10px;
    border-radius: 3px;
    border: 1px solid var(--da-border-strong);
    background: var(--da-surface-alt);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.qa-prev-batch {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--da-border-strong);
    border-radius: 3px;
    padding: 10px;
    margin-top: 10px;
    background: var(--da-surface);
}

.qa-prev-item {
    padding: 6px 0;
    border-bottom: 1px solid var(--da-border-strong);
}

.qa-prev-item:last-child {
    border-bottom: none;
}

.qa-evolve-empty-state {
    text-align: center;
    padding: 24px 16px;
    color: var(--da-text-secondary);
}

.qa-evolve-empty-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.qa-evolve-empty-text {
    font-size: 13px;
}


/* ===============================
   GROOM SCREEN 
================================ */

.qa-groom-root {
    display: flex;
    flex-direction: column;
    height: 100%;
    font-size: 13px;
    color: var(--da-text);
}

/* Scroll area */
.qa-groom-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Prompt section */
.qa-groom-prompt {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qa-groom-prompt label.qa-label {
    font-weight: 600;
}

.qa-groom-prompt textarea.qa-textarea {
    resize: vertical;
    min-height: 60px;
    font-size: 13px;
    padding: 6px 8px;
    border: 1px solid var(--da-border-strong);
    border-radius: 2px;
}

.qa-groom-prompt textarea.qa-textarea:focus {
    outline: none;
    border-color: #605e5c;
}

/* Generate button */
.qa-groom-generate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.qa-groom-generate .qa-field-dropdown {
    position: relative;
    flex: 0 1 auto;
    min-width: 160px;
    max-width: 55%;
}

.qa-groom-generate .qa-field-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 4px 8px;
    font-size: 12px;
    font-family: inherit;
    text-align: left;
    border: 1px solid var(--da-border-strong);
    border-radius: 2px;
    background-color: var(--da-surface);
    color: var(--da-text);
    cursor: pointer;
}

.qa-groom-generate .qa-field-toggle:focus {
    outline: none;
    border-color: #0078d4;
}

.qa-groom-generate .qa-field-toggle[disabled] {
    background-color: var(--da-surface-alt);
    cursor: not-allowed;
}

.qa-groom-generate .qa-field-toggle-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qa-groom-generate .qa-field-toggle-caret {
    flex: 0 0 auto;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #605e5c;
}

.qa-groom-generate .qa-field-menu {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    width: 100%;
    max-height: 180px;
    overflow-y: auto;
    margin: 0;
    padding: 2px 0;
    list-style: none;
    background-color: var(--da-surface);
    border: 1px solid var(--da-border-strong);
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.qa-groom-generate .qa-field-menu.hidden {
    display: none;
}

.qa-groom-generate .qa-field-menu li {
    padding: 5px 8px;
    font-size: 12px;
    color: var(--da-text);
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qa-groom-generate .qa-field-menu li:hover {
    background-color: var(--da-surface-alt);
}

.qa-groom-generate .qa-field-menu li[aria-selected="true"] {
    background-color: #0078d4;
    color: #ffffff;
}

.qa-groom-generate button.qa-primary-btn {
    background-color: #0078d4;
    color: #ffffff;
    border: none;
    border-radius: 2px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.qa-groom-generate button.qa-primary-btn:hover {
    background-color: #005a9e;
}

.qa-groom-generate button.qa-primary-btn:disabled {
    background-color: #c8c6c4;
    cursor: not-allowed;
}


.qa-groom-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 0;
    color: var(--da-text-secondary);
    font-size: 12px;
}

.qa-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--da-border-strong);
    border-top: 2px solid #0078d4;
    border-radius: 50%;
    animation: qa-spin 0.8s linear infinite;
}

.qa-loading-text {
    white-space: nowrap;
    /* ensure custom loader text stays inline */
}

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


.qa-groom-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}


.qa-groom-suggestion-item {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--da-border-strong);
    border-radius: 2px;
    background: var(--da-surface-alt);
    width: 100%;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.qa-groom-suggestion-item:hover {
    background: var(--da-surface);
    border-color: var(--da-border-strong);
}

.qa-groom-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--da-text);
    line-height: 1.4;
}


.qa-groom-suggestion-description {
    font-size: 12px;
    color: var(--da-text);
}


.qa-inline-error {
    color: #a4262c;
    font-size: 12px;
}

.qa-input-error {
    border-color: #a4262c;
}


.qa-groom--empty .qa-groom-scroll {
    display: none;
}

.qa-groom--empty .qa-textarea {
    min-height: 140px;
}

.qa-groom--has-results .qa-groom-scroll {
    display: block;
}

.qa-groom--has-results .qa-textarea {
    min-height: 60px;
}

.qa-groom-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    margin-top: 4px;
    border-top: 1px solid var(--da-border-strong);
    background: var(--da-surface);
}

.qa-groom-footer.hidden {
    display: none;
}

.qa-groom-header {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.qa-accordion-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.qa-arrow {
    font-size: 12px;
}

.qa-groom-title {
    flex: 1;
    /* important */
    font-weight: 600;
    cursor: pointer;
}

.qa-groom-description {
    margin-left: 28px;
    margin-top: 6px;
    color: var(--da-text-secondary);
}

.hidden {
    display: none;
}

.qa-history-batch-wrapper {
    border: 1px solid var(--da-border-strong);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 12px;
    background: var(--da-surface-alt);
}

.qa-history-batch-header {
    font-size: 12px;
    font-weight: 600;
    color: var(--da-text-secondary);
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--da-border-strong);
}

.qa-history-batch {
    border: 1px solid var(--da-border-strong);
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 12px;
    background: var(--da-surface-alt);
    display: flex;
    /* 🔥 */
    flex-direction: column;
    /* 🔥 */
    gap: 8px;
}

/* ===============================
   GROOM HISTORY — Aligned with main suggestions
================================ */

/* History header (Previous 1/N or Suggestions) */
.qa-history-header {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 8px;
    margin-top: 12px;
    margin-bottom: 8px;

    border: 1px solid var(--da-border-strong);
    border-radius: 2px;
    background: var(--da-surface-alt);

    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.qa-history-title {
    flex: 1;
    font-weight: 600;
    color: var(--da-text);
}

.qa-history-arrow {
    font-size: 12px;
}

.qa-history-header:hover {
    background-color: var(--da-surface-alt);
}

/* Collapsed style alternative */
.qa-history-collapsed {
    margin: 12px 0;
    padding: 8px;
    cursor: pointer;
    background: var(--da-surface-alt);
    border: 1px dashed var(--da-border-strong);
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    color: var(--da-text);
    transition: background 0.15s ease;
}

.qa-history-collapsed:hover {
    background: var(--da-surface-alt);
}

/* Container for history suggestions */
.qa-history-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 15px;
}

.qa-history-container.hidden {
    display: none;
    max-height: 0;
    overflow: hidden;
}

/* Batch indicator (1/n, 2/n, etc.) */
.qa-batch-indicator {
    color: var(--da-text);
    font-weight: 600;
    padding: 10px 0;
    margin-top: 10px;
}

/* Clickable batch headers */
.qa-history-batch-header {
    background-color: #e8f4ff;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 600;
    color: #0066cc;
    border-radius: 4px;
    margin: 8px 0;
    border-left: 4px solid #0066cc;
    transition: all 0.2s;
    user-select: none;
}

.qa-history-batch-header:hover {
    background-color: #d9ebff;
}

/* History item tile — match main suggestion style */
.qa-history-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    border: 1px solid var(--da-border-strong);
    border-bottom: 1px solid var(--da-border-strong);
    border-radius: 2px;
    background: var(--da-surface-alt);
    width: 100%;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

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

.qa-history-item:hover {
    background: var(--da-surface);
    border-color: var(--da-border-strong);
}

/* Header inside history item */
.qa-history-item .qa-groom-header {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Arrow for accordion */
.qa-history-item .qa-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}

/* History title */
.qa-history-item .qa-groom-title {
    flex: 1;
    font-weight: 600;
    font-size: 13px;
    color: var(--da-text);
    cursor: pointer;
}

/* History description */
.qa-history-item .qa-groom-description {
    margin-left: 28px;
    margin-top: 6px;
    color: var(--da-text-secondary);
    font-size: 12px;
}

.qa-history-item .qa-groom-description.hidden {
    display: none;
}

/* Checkbox inside history item */
.qa-history-item input[type="checkbox"] {
    pointer-events: auto;
    opacity: 1;
    cursor: pointer;
}

/* Accepted badge */
.qa-added-badge {
    font-size: 0.8em;
    color: #28a745;
    font-weight: bold;
    margin-left: 8px;
    font-style: italic;
}

/* Completed message */
.qa-history-complete {
    text-align: center;
    padding: 10px;
    color: var(--da-text-secondary);
    font-style: italic;
    font-size: 0.9em;
    background-color: var(--da-surface-alt);
    border-radius: 4px;
    margin-top: 10px;
}



/* Disabled checkboxes */
.qa-history-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Batch container with border */
.qa-history-batch-container {
    border: 2px solid var(--da-border-strong);
    border-radius: 4px;
    margin: 12px 0;
    padding: 8px;
    position: relative;
}

/* Subtle batch label in corner */
.qa-batch-label {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #f0f7ff;
    color: #005a9e;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid #c7e0f4;
}

.qa-empty-state-card {
    border-radius: 6px;
    padding: 24px;
    background: var(--da-surface);
}

.qa-no-suggestions {
    text-align: center;
    color: var(--da-text-secondary);
    font-size: 14px;
}

/* ===============================
   Timesheet Screen 
================================ */

.table-container {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;

    border-radius: 4px;
    background: var(--da-surface);
}

.table-container {
    max-height: 600px;
    overflow-y: auto;
    margin-top: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 8px;
    border: 1px solid var(--da-border-strong);
    text-align: left;
}

.pagination {
    margin-top: 10px;
    display: none;
}

.pagination button {
    padding: 5px 10px;
    margin-right: 5px;
    cursor: pointer;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


.table-container td.start-date-time {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;

}


.table-container th,
.table-container td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--da-border-strong);
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: anywhere;
}

.table-container th {
    background: var(--da-surface-alt);
    color: var(--da-text);
    font-weight: 600;
    font-size: 12px;
}

.table-container td a {
    color: #0078d4;
    text-decoration: none;
    font-weight: 600;
}

.table-container td a:hover {
    text-decoration: underline;
}

.action-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;

}

.action-icons {
    cursor: pointer;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
}

.pagination {
    margin-top: 8px;
    text-align: center;
    font-size: 12px;
}

.pagination span {
    margin: 0 4px;
    cursor: pointer;
    font-weight: 600;
    color: var(--da-text);
}

.pagination span:hover {
    color: #0078d4;
}

.workitem-pill {
    background: var(--da-surface);
    border: 1px solid var(--da-border-strong);
    padding: 1px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;


}

#workItemId {
    color: #0078d7;
    font-weight: 600;
}


.timesheet-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.timesheet-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.timesheet-right {
    font-size: 13px;
    color: var(--da-text);
}

.timesheet-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid var(--da-border-strong);
    background: var(--da-surface);
    border-radius: 2px;
    cursor: pointer;
}

.timesheet-action-btn:hover {
    background: var(--da-surface-alt);
}

.timesheet-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.timesheet-left.license-disabled .timesheet-action-btn,
.timesheet-quicklog-row.license-disabled .timesheet-action-btn {
    background: var(--da-surface-alt);
    color: var(--da-text-secondary);
    cursor: not-allowed;
}

.timesheet-left.license-disabled .timesheet-action-btn:hover,
.timesheet-quicklog-row.license-disabled .timesheet-action-btn:hover {
    background: var(--da-surface-alt);
}

.timesheet-quicklog-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.timesheet-quicklog-row .timesheet-action-btn {
    flex: 1 1 60px;
    justify-content: center;
}


.pagination button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid var(--da-border-strong);
    background: var(--da-surface);
    border-radius: 2px;
    cursor: pointer;
    font-weight: 600;
    color: var(--da-text);
}

.pagination button:hover:not(:disabled) {
    background: var(--da-surface-alt);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button+button {
    margin-left: 6px;
}

.timesheet-tooltip {
    position: absolute;
    background-color: var(--da-surface);
    border: 1px solid var(--da-border-strong);
    padding: 5px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    font-size: 11px;
    line-height: 1.3;
    max-width: 180px;
    word-wrap: break-word;
    z-index: 9999;
}

.action-icons.info {
    cursor: pointer;

}

.user-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0078d4;
    color: white;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}