/* Service Desk operational index — Archetype A queue polish */

.service-desk-type-pivot {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--nucleus-surface-radius, 6px);
    padding: 4px;
    background: var(--mud-palette-surface);
}

.service-desk-type-pivot .mud-button-root {
    text-transform: none;
    font-weight: 600;
}

.service-desk-queue-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem 1rem;
    padding: 0.25rem 0;
    background: transparent;
    border: none;
}

.service-desk-queue-toolbar__chips {
    flex: 1 1 20rem;
    min-width: 0;
}

.service-desk-queue-toolbar__filters {
    flex: 1 1 16rem;
    min-width: min(100%, 18rem);
    max-width: 100%;
}

@media (min-width: 960px) {
    .service-desk-queue-toolbar__filters {
        flex: 0 1 22rem;
        max-width: 28rem;
        margin-left: auto;
    }
}

.service-desk-queue-chip {
    text-transform: none;
    font-weight: 500;
    gap: 0.35rem;
}

.service-desk-queue-chip__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    padding: 0 0.35rem;
    margin-left: 0.35rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25rem;
    background: var(--mud-palette-background-grey);
    color: var(--mud-palette-text-secondary);
}

.service-desk-queue-chip__count--selected {
    background: rgba(255, 255, 255, 0.22);
    color: inherit;
}

.service-desk-grid .work-item-ticket-cell {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    max-width: 22rem;
}

.service-desk-grid .work-item-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mud-palette-text-secondary);
    letter-spacing: 0.01em;
}

.service-desk-grid .work-item-title {
    font-weight: 600;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-desk-grid .work-item-truncate {
    display: inline-block;
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.service-desk-grid .work-item-status {
    color: var(--mud-palette-text-secondary);
    font-size: 0.875rem;
}

.service-desk-grid .work-item-priority {
    font-weight: 600;
}

.service-desk-grid .work-item-unassigned {
    font-style: italic;
    color: var(--mud-palette-text-secondary);
}

.service-desk-grid .work-item-sla-relative,
.service-desk-grid .work-item-updated {
    color: var(--mud-palette-text-secondary);
    font-size: 0.8125rem;
}

.service-desk-grid .work-item-empty {
    color: var(--mud-palette-text-disabled);
}
