/* Admin PQL queue and NPS survey (extracted from main.css) */

/* --- UOS v0 - PQL queue (admin) --- */
.pql-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.pql-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
}

.pql-table th,
.pql-table td {
    padding: 0.5rem 0.55rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.pql-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.pql-table th:nth-child(1),
.pql-table td:nth-child(1) {
    width: 14%;
}

.pql-table th:nth-child(2),
.pql-table td:nth-child(2) {
    width: 6%;
}

.pql-table th:nth-child(3),
.pql-table td:nth-child(3),
.pql-table th:nth-child(4),
.pql-table td:nth-child(4),
.pql-table th:nth-child(5),
.pql-table td:nth-child(5) {
    width: 7%;
}

.pql-table th:nth-child(6),
.pql-table td:nth-child(6) {
    width: 10%;
}

.pql-table th:nth-child(7),
.pql-table td:nth-child(7),
.pql-table th:nth-child(8),
.pql-table td:nth-child(8),
.pql-table th:nth-child(9),
.pql-table td:nth-child(9) {
    width: 11%;
}

.pql-table th.pql-col-action,
.pql-table td.pql-col-action {
    width: 7.5%;
    white-space: nowrap;
    vertical-align: middle;
}

.pql-user {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.pql-user strong {
    overflow-wrap: anywhere;
}

.pql-user .muted {
    color: var(--text-muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.pql-intent {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.pql-input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 0.3rem 0.4rem;
    font: inherit;
    font-size: 13px;
}

.pql-select {
    appearance: auto;
    cursor: pointer;
}

/* Keep flex layout on an inner wrapper — never on <td>, or table columns collapse. */
.pql-save {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    min-width: 0;
}

.pql-action-btn {
    height: 30px;
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
}

.pql-save-status {
    font-size: 12px;
    line-height: 1.2;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.pql-detail-row td {
    background: var(--bg-secondary);
    padding: 0.85rem 1rem;
}

.pql-detail {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pql-detail-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
}

.pql-profile,
.pql-cost {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.pql-cost {
    text-align: right;
    min-width: 180px;
}

.pql-project-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pql-project-detail {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.7rem;
    background: var(--bg-primary);
}

.pql-project-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.pql-project-head > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.pql-project-links,
.pql-project-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pql-project-links {
    justify-content: flex-end;
}

.pql-project-metrics {
    margin-top: 0.55rem;
    color: var(--text-muted);
}

.pql-message-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.pql-message {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding-top: 0.45rem;
    border-top: 1px solid var(--border);
}

/* --- UOS v0 - NPS survey --- */
.nps-card {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 50;
    width: 340px;
    max-width: calc(100vw - 2.5rem);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.nps-close {
    position: absolute;
    top: 0.5rem;
    right: 0.6rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
}

.nps-q {
    font-weight: 600;
    margin: 0 0 0.6rem;
    padding-right: 1rem;
}

.nps-scale {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.25rem;
}

.nps-num {
    min-width: 0;
    padding: 0.35rem 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
}

.nps-num:hover {
    background: var(--bg-hover);
}

.nps-ends {
    display: flex;
    justify-content: space-between;
    margin-top: 0.3rem;
    font-size: 14px;
    color: var(--text-muted);
}

.nps-comment {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 0.4rem 0.5rem;
    margin: 0.3rem 0;
}

.nps-share {
    margin: 0.35rem 0 0.45rem;
}

.nps-copy {
    width: 100%;
    justify-content: center;
}

.nps-comment {
    min-height: 56px;
    resize: vertical;
}

.nps-consent {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 14px;
    color: var(--text-muted);
}

.nps-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

