.helpdesk-posting-panel,
.helpdesk-topic-panel {
    margin-top: 12px;
}

.helpdesk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 16px;
}

.helpdesk-grid dl {
    margin: 0;
}

.helpdesk-posting-panel .helpdesk-grid-stack {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    align-items: start;
}

.helpdesk-posting-panel .helpdesk-grid-stack .helpdesk-field {
    display: block;
    min-width: 0;
}

.helpdesk-posting-panel .helpdesk-grid-stack .helpdesk-field dt,
.helpdesk-posting-panel .helpdesk-grid-stack .helpdesk-field dd {
    display: block;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

.helpdesk-posting-panel .helpdesk-grid-stack .helpdesk-field dd {
    margin-top: 6px !important;
}

.helpdesk-posting-panel .helpdesk-grid-stack .helpdesk-field select {
    display: block;
    width: 100% !important;
    max-width: 100%;
    min-height: 36px;
    box-sizing: border-box;
}

.helpdesk-grid dt,
.helpdesk-grid dd {
    float: none;
    width: 100%;
    margin: 0;
}

.helpdesk-grid label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.helpdesk-grid select,
.helpdesk-grid input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}

.helpdesk-note {
    margin: 0 0 10px;
    opacity: 0.88;
}

.helpdesk-topic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 4px;
}

.helpdesk-topic-meta-row {
    margin-top: 6px;
}

.helpdesk-forum-context {
    margin: 0 0 14px;
}

.helpdesk-forum-context .inner {
    padding: 14px 16px;
}

.helpdesk-forum-context-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
}

.helpdesk-forum-context-copy h3 {
    margin: 0 0 6px;
}

.helpdesk-forum-context-copy .helpdesk-note {
    margin: 0;
}

.helpdesk-forum-context-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.helpdesk-badge,
.helpdesk-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.helpdesk-tag {
    background: #f5f7fa;
    color: #4f5d6b;
    border-color: #d9e0e7;
}

.helpdesk-tag-muted {
    background: #fafbfc;
    color: #697887;
    border-color: #e2e7ed;
}

.helpdesk-manage-box,
.helpdesk-history-box {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.helpdesk-manage-box h4,
.helpdesk-history-box h4 {
    margin: 0 0 8px;
    font-size: 1em;
}

.helpdesk-manage-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
}

.helpdesk-manage-field {
    min-width: 220px;
    flex: 1 1 240px;
}

.helpdesk-manage-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.helpdesk-manage-field select {
    width: 100%;
    min-height: 34px;
    box-sizing: border-box;
}

.helpdesk-manage-actions {
    flex: 0 0 auto;
}

.helpdesk-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.helpdesk-history-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 5px 0;
    border-top: 1px dotted rgba(0, 0, 0, 0.08);
}

.helpdesk-history-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.helpdesk-history-status {
    font-weight: 700;
}

.helpdesk-history-meta {
    opacity: 0.8;
}

.helpdesk-status-open,
.helpdesk-priority-normal {
    background: #edf6fd;
    color: #1d628d;
    border-color: #c9e0f1;
}

.helpdesk-status-progress,
.helpdesk-priority-high {
    background: #fff6df;
    color: #8c6400;
    border-color: #f0d99e;
}

.helpdesk-status-waiting,
.helpdesk-priority-critical {
    background: #fff0f0;
    color: #9a3a3a;
    border-color: #edc5c5;
}

.helpdesk-status-resolved {
    background: #ebf8ef;
    color: #29714a;
    border-color: #c8e3d2;
}

.helpdesk-status-closed,
.helpdesk-priority-low {
    background: #f4f6f8;
    color: #5d6d7d;
    border-color: #d9e2ea;
}

@media (max-width: 1000px) {
    .helpdesk-posting-panel .helpdesk-grid-stack {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

@media (max-width: 700px) {
    .helpdesk-grid,
    .helpdesk-posting-panel .helpdesk-grid-stack {
        grid-template-columns: 1fr;
    }

    .helpdesk-manage-row,
    .helpdesk-manage-grid {
        display: block;
    }

    .helpdesk-manage-actions {
        margin-top: 8px;
    }
}


.helpdesk-tag-assigned {
    background: #eef3ff;
    color: #425f9a;
    border-color: #d5def4;
}

.helpdesk-manage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 12px;
    align-items: end;
}

.helpdesk-manage-field input[type="text"] {
    width: 100%;
    min-height: 34px;
    box-sizing: border-box;
}

.helpdesk-manage-actions {
    align-self: end;
}


.helpdesk-filter-panel,
.helpdesk-filter-empty {
    margin-bottom: 12px;
}

.helpdesk-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px 12px;
}

.helpdesk-filter-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.helpdesk-filter-field select,
.helpdesk-filter-field input[type="text"] {
    width: 100%;
    min-height: 34px;
    box-sizing: border-box;
}

.helpdesk-filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.helpdesk-filter-summary {
    opacity: 0.82;
    font-size: 0.92em;
}

.helpdesk-tag-prefix {
    opacity: 0.84;
}


.helpdesk-bulk-check-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 2px;
}

.helpdesk-bulk-check {
    width: 14px;
    height: 14px;
    margin: 0;
}

.helpdesk-bulk-panel,
.helpdesk-filter-panel {
    margin: 12px 0;
}

.helpdesk-filter-grid,
.helpdesk-bulk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 16px;
    align-items: end;
}

.helpdesk-filter-field {
    min-width: 0;
}

.helpdesk-filter-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.helpdesk-filter-field select,
.helpdesk-filter-field input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}

.helpdesk-filter-actions,
.helpdesk-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.helpdesk-bulk-summary,
.helpdesk-filter-summary {
    margin-top: 8px;
    opacity: 0.85;
    font-size: 0.92em;
}

.helpdesk-filter-empty {
    margin: 12px 0;
}


.helpdesk-queue-panel {
    margin: 12px 0;
}

.helpdesk-queue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.helpdesk-queue-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 12px 14px;
    text-align: left;
    border: 1px solid #d9e2ea;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.helpdesk-queue-card:hover,
.helpdesk-queue-card:focus {
    border-color: #b9c8d6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.helpdesk-queue-card.is-active {
    border-color: #5c7ea7;
    box-shadow: 0 0 0 2px rgba(92, 126, 167, 0.10);
}

.helpdesk-queue-count {
    font-size: 1.8em;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
    color: #304a67;
}

.helpdesk-queue-label {
    font-size: 0.95em;
    font-weight: 700;
    margin-bottom: 4px;
    color: #22384f;
}

.helpdesk-queue-note {
    font-size: 0.85em;
    line-height: 1.35;
    color: #647688;
}

.helpdesk-tag-alert {
    background: #fff0f0;
    color: #9a3a3a;
    border-color: #edc5c5;
}

.helpdesk-tag-warning {
    background: #fff7e6;
    color: #8c6400;
    border-color: #f0d99e;
}

.helpdesk-queue-card[data-helpdesk-queue="overdue"] .helpdesk-queue-count {
    color: #933737;
}

.helpdesk-queue-card[data-helpdesk-queue="stale"] .helpdesk-queue-count {
    color: #8c6400;
}

.helpdesk-queue-card[data-helpdesk-queue="within_sla"] .helpdesk-queue-count {
    color: #2d6f49;
}


.helpdesk-tag-first-reply {
    background: #fff6df;
    color: #8c6400;
    border-color: #f0d99e;
}

.helpdesk-tag-old {
    background: #fff0f0;
    color: #9a3a3a;
    border-color: #edc5c5;
}

.helpdesk-assignee-panel {
    margin: 12px 0;
}

.helpdesk-assignee-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.helpdesk-assignee-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #d9e2ea;
    background: #f8fafc;
    color: #425466;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}

.helpdesk-assignee-chip:hover {
    background: #eef4f8;
}

.helpdesk-assignee-chip.is-active {
    background: #edf6fd;
    border-color: #c9e0f1;
    color: #1d628d;
}

.helpdesk-assignee-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    min-height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    font-size: 10px;
    line-height: 1;
}


.helpdesk-tag-staff {
    background: #fff5e8;
    color: #8b5d16;
    border-color: #f0d3a1;
}

.helpdesk-tag-reopened {
    background: #f3ecff;
    color: #6b45a4;
    border-color: #dccaf8;
}

.helpdesk-tag-criticality-critical {
    background: #ffe8e8;
    color: #a13333;
    border-color: #efbdbd;
}

.helpdesk-tag-criticality-attention {
    background: #fff6df;
    color: #8c6400;
    border-color: #f0d99e;
}

.helpdesk-tag-criticality-normal {
    background: #edf6fd;
    color: #1d628d;
    border-color: #c9e0f1;
}


.helpdesk-tag-sla-overdue {
    background: #ffe8e8;
    color: #a13333;
    border-color: #efbdbd;
}

.helpdesk-tag-sla-due-today {
    background: #fff6df;
    color: #8c6400;
    border-color: #f0d99e;
}

.helpdesk-tag-sla-within {
    background: #edf6fd;
    color: #1d628d;
    border-color: #c9e0f1;
}

.helpdesk-tag-sla-stale {
    background: #f8efe2;
    color: #80531a;
    border-color: #e9cfaa;
}

.helpdesk-topic-link,
.helpdesk-team-link-wrap {
    margin-top: 8px;
}

.helpdesk-team-summary,
.helpdesk-team-filter-box,
.helpdesk-team-alerts-box,
.helpdesk-team-table-box {
    margin: 12px 0;
}

.helpdesk-team-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.helpdesk-team-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border: 1px solid #d9e2ea;
    border-radius: 8px;
    background: #f8fafc;
    text-decoration: none;
    color: inherit;
}

.helpdesk-team-card:hover {
    background: #eef4f8;
    text-decoration: none;
}

.helpdesk-team-card strong {
    font-size: 18px;
    line-height: 1.1;
}

.helpdesk-team-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.helpdesk-team-filter-actions {
    margin-top: 12px;
}

.helpdesk-team-alert-list {
    margin: 0;
    padding-left: 18px;
}

.helpdesk-team-alert-list li {
    margin-bottom: 8px;
}

.helpdesk-team-alert-list a {
    font-weight: 700;
}

.helpdesk-team-table-wrap {
    overflow-x: auto;
}

.helpdesk-team-table td,
.helpdesk-team-table th {
    vertical-align: top;
}


.helpdesk-manage-field textarea {
    width: 100%;
    min-height: 56px;
    box-sizing: border-box;
    resize: vertical;
}

.helpdesk-manage-field-wide {
    grid-column: 1 / -1;
}

.helpdesk-history-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.helpdesk-history-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.helpdesk-history-type-status {
    background: #edf6fd;
    color: #1d628d;
    border-color: #c9e0f1;
}

.helpdesk-history-type-assignment {
    background: #eef3ff;
    color: #425f9a;
    border-color: #d5def4;
}

.helpdesk-history-type-department {
    background: #f5f7fa;
    color: #4f5d6b;
    border-color: #d9e0e7;
}

.helpdesk-history-type-priority {
    background: #fff5ea;
    color: #9a5b16;
    border-color: #f0d8b8;
}

.helpdesk-history-type-note {
    background: #eefaf3;
    color: #2a6b48;
    border-color: #cfe7d8;
}

.helpdesk-history-reason {
    font-size: 0.92em;
    opacity: 0.9;
}

.helpdesk-team-history-cards {
    margin-bottom: 12px;
}

.helpdesk-team-history-list {
    padding-left: 0;
    list-style: none;
}

.helpdesk-team-history-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px dotted rgba(0, 0, 0, 0.08);
    margin-bottom: 0;
}

.helpdesk-team-history-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.helpdesk-team-summary-secondary {
    margin-top: 12px;
}

.helpdesk-team-cards-my .helpdesk-team-card strong {
    color: #425466;
}


.helpdesk-team-report-box {
    margin: 12px 0;
}

.helpdesk-team-cards-report {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    margin-bottom: 12px;
}

.helpdesk-report-card strong {
    font-size: 1.25em;
    line-height: 1.1;
}

.helpdesk-report-card-link {
    position: relative;
}

.helpdesk-report-card-link::after {
    content: '\203A';
    position: absolute;
    right: 12px;
    top: 12px;
    font-size: 18px;
    line-height: 1;
    opacity: 0.35;
}

.helpdesk-report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.helpdesk-report-panel {
    border: 1px solid #d9e2ea;
    border-radius: 8px;
    background: #ffffff;
    padding: 12px;
}

.helpdesk-report-panel h4 {
    margin: 0 0 10px;
}

.helpdesk-report-section {
    padding: 0;
    overflow: hidden;
}

.helpdesk-report-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.helpdesk-report-summary::-webkit-details-marker {
    display: none;
}

.helpdesk-report-summary::after {
    content: '\203A';
    font-size: 18px;
    line-height: 1;
    opacity: 0.45;
    transition: transform 0.2s ease;
}

.helpdesk-report-section[open] > .helpdesk-report-summary::after {
    transform: rotate(90deg);
}

.helpdesk-report-summary-hint {
    font-weight: 400;
    font-size: 0.92em;
    opacity: 0.72;
}

.helpdesk-report-section-body {
    padding: 0 12px 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.helpdesk-report-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.helpdesk-report-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px dotted rgba(0, 0, 0, 0.08);
}

.helpdesk-report-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.helpdesk-report-main {
    min-width: 0;
    font-weight: 700;
}

.helpdesk-report-link {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.helpdesk-report-link:hover {
    text-decoration: none;
}

.helpdesk-alert-ticket-list li {
    display: block;
}

.helpdesk-alert-ticket-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.helpdesk-alert-ticket-link {
    align-items: flex-start;
}

.helpdesk-alert-ticket-meta,
.helpdesk-alert-ticket-note {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.helpdesk-alert-ticket-note {
    opacity: 0.88;
    font-size: 0.92em;
}

.helpdesk-alert-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.helpdesk-alert-action-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.helpdesk-alert-action-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.helpdesk-alert-action-top h4 {
    margin: 0 0 4px;
}

.helpdesk-alert-action-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.helpdesk-alert-action-bottom strong {
    font-size: 1.2em;
}

.helpdesk-alert-ticket-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.helpdesk-report-meta {
    text-align: right;
    opacity: 0.82;
    white-space: nowrap;
    font-size: 0.92em;
}

@media (max-width: 700px) {
    .helpdesk-report-list li {
        display: block;
    }

    .helpdesk-alert-action-top,
    .helpdesk-alert-action-bottom {
        display: block;
    }

    .helpdesk-alert-action-bottom .button {
        margin-top: 8px;
    }

    .helpdesk-report-meta {
        display: block;
        text-align: left;
        white-space: normal;
        margin-top: 4px;
    }
}


.helpdesk-tabs-panel {
    margin-bottom: 12px;
}

.helpdesk-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.helpdesk-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border: 1px solid #cfd8e3;
    border-bottom-width: 2px;
    border-radius: 8px 8px 0 0;
    background: #eef3f8;
    color: #25557a;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.helpdesk-tab:hover,
.helpdesk-tab:focus {
    background: #ffffff;
    border-color: #9fb3c8;
    color: #1e445f;
    text-decoration: none;
}

.helpdesk-tab.is-active {
    background: #ffffff;
    border-color: #88a3bf;
    border-bottom-color: #ffffff;
    color: #1e445f;
    position: relative;
    top: 1px;
}

.helpdesk-tabs-secondary .helpdesk-tab {
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f5f8fb;
}

.helpdesk-tabs-secondary .helpdesk-tab.is-active {
    border-bottom-color: #88a3bf;
    top: 0;
}

.helpdesk-tabs-panel + .helpdesk-team-summary,
.helpdesk-tabs-panel + .helpdesk-team-filter-box,
.helpdesk-tabs-panel + .helpdesk-team-report-box,
.helpdesk-tabs-panel + .helpdesk-team-alerts-box {
    margin-top: 0;
}

.helpdesk-team-layout-tools-box {
    margin-top: -6px;
    margin-bottom: 12px;
}

.helpdesk-team-layout-tools-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.helpdesk-team-layout-tools-head h3 {
    margin-bottom: 4px;
}

.helpdesk-team-layout-tools-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.helpdesk-team-layout-tools-feedback {
    margin-top: 10px;
}

.helpdesk-team-section-jump {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.helpdesk-team-section-jump h4 {
    margin-bottom: 4px;
}

.helpdesk-team-section-jump-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.helpdesk-team-section-jump-extra {
    margin-top: 10px;
}

.helpdesk-team-section-jump-link {
    max-width: 100%;
}


.helpdesk-team-load-box .inner {
    display: block;
}

.helpdesk-team-load-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.helpdesk-team-load-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.45);
}

.helpdesk-team-load-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.helpdesk-team-load-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.9em;
    color: #555;
}


.helpdesk-team-load-card-actionable {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.helpdesk-team-load-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.helpdesk-team-load-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.helpdesk-team-load-inline-form {
    margin: 0;
}

.helpdesk-team-card-workload strong {
    display: block;
}

.helpdesk-workload-idle { background: #d9dde3; color: #2f3d4a; }
.helpdesk-workload-low { background: #d7f0e2; color: #24543c; }
.helpdesk-workload-medium { background: #fff1c7; color: #6b4b00; }
.helpdesk-workload-high { background: #ffd9b3; color: #7a3400; }
.helpdesk-workload-overload { background: #ffd6d6; color: #8a1f1f; }

.helpdesk-redistribution-card .helpdesk-team-load-head a {
    text-decoration: none;
}

.helpdesk-redistribution-card .helpdesk-team-load-meta {
    gap: 6px 12px;
}


.helpdesk-team-notice-box {
    margin-bottom: 10px;
}

.helpdesk-note-strong {
    font-weight: 600;
}

.helpdesk-redistribution-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.helpdesk-redistribution-form {
    margin: 0;
}

.helpdesk-redistribution-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
}


.helpdesk-redistribution-bulk-form {
    margin: 0 0 10px 0;
}

.helpdesk-redistribution-bulk-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding: 8px 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.35);
}

.helpdesk-redistribution-bulk-bar-bottom {
    margin-top: 10px;
    justify-content: flex-end;
    padding: 0;
    border: 0;
    background: transparent;
}

.helpdesk-redistribution-head-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.helpdesk-redistribution-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85em;
    color: #666;
}

.helpdesk-redistribution-check input {
    margin: 0;
}


.helpdesk-redistribution-bulk-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.helpdesk-smart-pick-badge {
    background: #d7f0e2;
    color: #24543c;
}

.helpdesk-redistribution-smart-note {
    font-weight: 600;
    color: #24543c;
}


.helpdesk-balanced-pick-badge {
    font-size: 0.72em;
    padding: 1px 6px;
}



.helpdesk-preview-summary-cards {
    margin-top: 10px;
}

.helpdesk-preview-summary-card {
    position: relative;
}

.helpdesk-preview-summary-card em {
    display: block;
    margin-top: 4px;
    font-style: normal;
    color: #666;
    font-size: 0.85em;
}

.helpdesk-preview-compare-box {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.32);
}

.helpdesk-preview-distribution-list {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.helpdesk-preview-distribution-row {
    display: grid;
    gap: 6px;
}

.helpdesk-preview-distribution-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.helpdesk-preview-distribution-bars {
    display: grid;
    gap: 6px;
}

.helpdesk-preview-distribution-track,
.helpdesk-preview-impact-track {
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    min-height: 20px;
}

.helpdesk-preview-distribution-fill,
.helpdesk-preview-impact-fill {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 999px;
}

.helpdesk-preview-distribution-track em {
    position: relative;
    z-index: 2;
    display: block;
    padding: 2px 8px;
    font-style: normal;
    font-size: 0.82em;
    color: #2f3d4a;
}

.helpdesk-preview-distribution-before,
.helpdesk-preview-impact-before {
    background: rgba(122, 143, 167, 0.45);
}

.helpdesk-preview-distribution-after,
.helpdesk-preview-impact-after {
    background: rgba(118, 197, 143, 0.55);
}

.helpdesk-preview-impact-grid {
    margin-top: 12px;
}

.helpdesk-preview-impact-bars {
    display: grid;
    gap: 6px;
    margin-bottom: 8px;
}

.helpdesk-preview-impact-row {
    display: grid;
    grid-template-columns: 54px 1fr 42px;
    align-items: center;
    gap: 8px;
}

.helpdesk-preview-impact-label,
.helpdesk-preview-impact-value {
    font-size: 0.82em;
    color: #5b6975;
}

.helpdesk-preview-impact-value {
    text-align: right;
}

.helpdesk-preview-delta-down {
    background: #d7f0e2;
    color: #24543c;
}

.helpdesk-preview-delta-up {
    background: #ffd6d6;
    color: #8a1f1f;
}

.helpdesk-preview-delta-stable {
    background: #e5ebf2;
    color: #405261;
}


.helpdesk-preview-rank {
    display: inline-block;
    min-width: 28px;
    padding: 1px 6px;
    margin-right: 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    color: #405261;
    font-size: 0.82em;
    text-align: center;
}


.helpdesk-team-bulk-form {
    margin: 0 0 12px;
}

.helpdesk-team-bulk-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: #f8fafc;
    margin-bottom: 12px;
}

.helpdesk-team-bulk-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.helpdesk-team-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.helpdesk-team-bulk-grid {
    margin-bottom: 12px;
}

.helpdesk-team-bulk-submit {
    margin-top: 0;
}

.helpdesk-team-table-check {
    width: 36px;
    text-align: center;
    white-space: nowrap;
}

.helpdesk-team-table-check input[type="checkbox"] {
    margin: 0;
}

.helpdesk-team-triage-link-box .inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.helpdesk-team-triage-link-box h3,
.helpdesk-team-triage-link-box p {
	margin: 0;
}

.helpdesk-team-triage-link-box .helpdesk-note {
	flex: 1 1 320px;
}


.helpdesk-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.helpdesk-team-overview-box .button {
    margin: 0;
}

.helpdesk-overview-next-grid,
.helpdesk-overview-focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.helpdesk-overview-next-card,
.helpdesk-overview-focus-box {
    padding: 12px;
    border: 1px solid #d9e2ea;
    border-radius: 8px;
    background: #fff;
}

.helpdesk-overview-next-card.is-primary {
    background: #f8fafc;
}

.helpdesk-overview-next-card strong,
.helpdesk-overview-focus-box h4 {
    display: block;
    margin-bottom: 6px;
}

.helpdesk-overview-next-card p,
.helpdesk-overview-focus-box p {
    margin: 0;
}

.helpdesk-overview-next-badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef4ff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.helpdesk-overview-next-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.helpdesk-overview-next-count,
.helpdesk-inline-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #eef2f6;
    font-size: 11px;
    font-weight: 700;
}

.helpdesk-quick-actions-compact .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}


.helpdesk-team-context-box {
    margin-bottom: 12px;
}

.helpdesk-team-context-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.helpdesk-team-context-head h3 {
    margin-bottom: 4px;
}

.helpdesk-team-context-buttons {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.helpdesk-team-context-buttons .button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.helpdesk-team-context-copy-feedback {
    margin: 0 0 10px;
    color: #1d628d;
}

.helpdesk-team-context-copy-feedback.is-error {
    color: #a94442;
}

.helpdesk-team-context-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.helpdesk-context-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #d9e2ea;
    background: #f8fafc;
    color: #425466;
    font-size: 11px;
    line-height: 1.4;
}

.helpdesk-context-pill strong {
    color: #243647;
}

.helpdesk-context-pill.is-primary {
    background: #edf6fd;
    border-color: #c9e0f1;
    color: #1d628d;
}

.helpdesk-context-pill.is-muted {
    background: #f5f7fa;
    color: #5b6b7b;
}

.helpdesk-team-context-note {
    margin-top: 10px;
}

.helpdesk-team-context-actions {
    margin-top: 10px;
}

.helpdesk-team-context-actions-note {
    margin-bottom: 8px;
}

.helpdesk-team-context-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.helpdesk-context-pill-action {
    text-decoration: none;
    cursor: pointer;
}

.helpdesk-context-pill-action:hover,
.helpdesk-context-pill-action:focus {
    border-color: #9fb8cc;
    text-decoration: none;
}

.helpdesk-context-pill-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: rgba(36, 54, 71, 0.08);
    font-size: 12px;
    line-height: 1;
}


.helpdesk-overview-health-box {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #d9e2ea;
    border-radius: 8px;
    background: #fff;
}

.helpdesk-overview-health-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.helpdesk-overview-health-head h3 {
    margin: 0 0 4px;
}

.helpdesk-overview-health-head .helpdesk-note,
.helpdesk-overview-health-summary {
    margin: 0;
}

.helpdesk-overview-health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.helpdesk-overview-health-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border: 1px solid #d9e2ea;
    border-radius: 8px;
    background: #f8fafc;
    color: inherit;
    text-decoration: none;
}

.helpdesk-overview-health-card:hover {
    border-color: #b8c7d6;
    text-decoration: none;
}

.helpdesk-overview-health-card strong {
    display: block;
}

.helpdesk-overview-health-count {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.helpdesk-health-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef2f6;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.helpdesk-health-pill.is-stable {
    background: #e8f7ee;
}

.helpdesk-health-pill.is-attention {
    background: #fff3db;
}

.helpdesk-health-pill.is-critical {
    background: #ffe5e5;
}

.helpdesk-filter-section {
    padding: 0;
}

.helpdesk-filter-section-body {
    padding-bottom: 14px;
}

.helpdesk-filter-section .helpdesk-note {
    margin: 0 0 12px;
}


.helpdesk-team-display-box {
    margin-top: 12px;
}

.helpdesk-team-display-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.helpdesk-display-current-page {
    margin-bottom: 12px;
}


.helpdesk-team-saved-views {
    margin: 12px 0 0;
}

.helpdesk-team-saved-views-note {
    margin-bottom: 8px;
}


.helpdesk-team-saved-views-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
}

.helpdesk-team-saved-views-filter-label,
.helpdesk-team-saved-views-sort-label {
    font-weight: 600;
}

.helpdesk-team-saved-views-filter {
    min-width: min(280px, 100%);
}

.helpdesk-team-saved-views-sort {
    min-width: 180px;
}

.helpdesk-team-saved-views-empty {
    margin: 6px 0 10px;
}

.helpdesk-team-saved-views-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
}

.helpdesk-team-saved-views-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.82em;
    color: #4b5563;
    background: rgba(0, 0, 0, 0.045);
}

.helpdesk-team-saved-views-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.helpdesk-saved-view-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 100%;
}

.helpdesk-saved-view-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 100%;
}

.helpdesk-saved-view-link {
    flex: 1 1 auto;
    max-width: 100%;
}

.helpdesk-saved-view-item.is-favorite .helpdesk-saved-view-link {
    border-color: #e5c46d;
}

.helpdesk-saved-view-favorite,
.helpdesk-saved-view-current {
    flex: 0 0 auto;
    font-size: 0.78em;
    font-weight: 600;
}

.helpdesk-saved-view-favorite {
    color: #8a5a00;
}

.helpdesk-saved-view-current {
    color: #1f6feb;
}

.helpdesk-saved-view-favorite-toggle,
.helpdesk-saved-view-edit,
.helpdesk-saved-view-move,
.helpdesk-saved-view-open,
.helpdesk-saved-view-copy,
.helpdesk-saved-view-update,
.helpdesk-saved-view-reset-usage,
.helpdesk-saved-view-remove {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    border-radius: 999px;
}

.helpdesk-saved-view-favorite-toggle.is-active {
    color: #8a5a00;
}

.helpdesk-saved-view-favorite-toggle:hover,
.helpdesk-saved-view-favorite-toggle:focus,
.helpdesk-saved-view-edit:hover,
.helpdesk-saved-view-edit:focus,
.helpdesk-saved-view-move:hover,
.helpdesk-saved-view-move:focus,
.helpdesk-saved-view-open:hover,
.helpdesk-saved-view-open:focus,
.helpdesk-saved-view-copy:hover,
.helpdesk-saved-view-copy:focus,
.helpdesk-saved-view-update:hover,
.helpdesk-saved-view-update:focus,
.helpdesk-saved-view-reset-usage:hover,
.helpdesk-saved-view-reset-usage:focus,
.helpdesk-saved-view-remove:hover,
.helpdesk-saved-view-remove:focus {
    background: rgba(0, 0, 0, 0.08);
}

.helpdesk-saved-view-reset-usage:disabled,
.helpdesk-saved-view-update:disabled {
    opacity: 0.45;
    cursor: default;
}


.helpdesk-saved-views-group {
    width: 100%;
}

.helpdesk-saved-views-group-title {
    margin: 0 0 6px;
    font-weight: 600;
}

.helpdesk-saved-views-group-other {
    margin-top: 6px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.015);
}

.helpdesk-saved-views-group-summary {
    cursor: pointer;
    font-weight: 600;
}

.helpdesk-saved-views-group-hint {
    margin: 8px 0;
}

.helpdesk-saved-view-view {
    flex: 0 0 auto;
    font-size: 0.78em;
    font-weight: 600;
    color: #6b7280;
}

.helpdesk-saved-view-meta {
    flex: 0 0 auto;
    font-size: 0.75em;
    color: #6b7280;
    white-space: nowrap;
}

.helpdesk-saved-view-meta.is-date {
    opacity: 0.9;
}

.helpdesk-saved-view-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-left: 10px;
}

.helpdesk-saved-view-summary-item {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.78em;
    color: #4b5563;
    background: rgba(0, 0, 0, 0.045);
}


.helpdesk-team-saved-views-favorites-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92em;
    white-space: nowrap;
}

.helpdesk-team-saved-views-favorites-toggle input {
    margin: 0;
}

.helpdesk-team-saved-views.is-compact .helpdesk-saved-view-item {
    padding: 8px 10px;
}

.helpdesk-team-saved-views.is-compact .helpdesk-saved-view-main {
    gap: 6px;
}

.helpdesk-team-saved-views.is-compact .helpdesk-saved-view-meta,
.helpdesk-team-saved-views.is-compact .helpdesk-saved-view-summary,
.helpdesk-team-saved-views.is-compact .helpdesk-saved-views-group-hint {
    display: none;
}

.helpdesk-team-saved-views.is-compact .helpdesk-saved-view-link {
    max-width: 100%;
}


.helpdesk-back-to-top-wrap {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 30;
    pointer-events: none;
}

.helpdesk-back-to-top {
    pointer-events: auto;
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(0.35rem);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.helpdesk-back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 700px) {
    .helpdesk-back-to-top-wrap {
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .helpdesk-back-to-top {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}


.helpdesk-section-target-flash {
    animation: helpdeskSectionTargetFlash 1.6s ease;
}

@keyframes helpdeskSectionTargetFlash {
    0% {
        box-shadow: 0 0 0 0 rgba(66, 139, 202, 0.30);
    }

    25% {
        box-shadow: 0 0 0 4px rgba(66, 139, 202, 0.18);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(66, 139, 202, 0);
    }
}


.helpdesk-subject-prefix-note {
    margin: 0 0 10px;
}

.helpdesk-subject-prefix-label {
    font-weight: 600;
}

.helpdesk-subject-prefix-value {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    font-weight: 600;
}

/* 4.9.61 visual refinement: compact badges, lighter cards, cleaner overall density */
.helpdesk-topic-meta {
    gap: 4px;
    margin: 6px 0 2px;
}

.helpdesk-topic-meta-row {
    margin-top: 4px;
}

.helpdesk-badge,
.helpdesk-tag {
    min-height: 18px;
    padding: 1px 6px;
    font-size: 9px;
    line-height: 1;
    letter-spacing: 0.01em;
}

.helpdesk-topic-meta-row .helpdesk-badge,
.helpdesk-topic-meta-row .helpdesk-tag {
    min-height: 17px;
    padding: 1px 5px;
    font-size: 9px;
}

.helpdesk-bulk-check-wrap {
    margin-right: 0;
}

.helpdesk-bulk-check {
    width: 13px;
    height: 13px;
}

.helpdesk-history-type,
.helpdesk-health-pill,
.helpdesk-overview-next-badge,
.helpdesk-assignee-count,
.helpdesk-overview-next-count,
.helpdesk-inline-count,
.helpdesk-preview-rank {
    min-height: 18px;
    height: auto;
    padding: 1px 6px;
    font-size: 10px;
}

.helpdesk-assignee-chip,
.helpdesk-context-pill {
    gap: 6px;
    padding: 5px 8px;
    font-size: 10px;
}

.helpdesk-team-cards {
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
    gap: 8px;
}

.helpdesk-team-card {
    gap: 3px;
    padding: 10px;
    border-radius: 7px;
}

.helpdesk-team-card strong {
    font-size: 16px;
}

.helpdesk-team-cards-report {
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    gap: 8px;
}

.helpdesk-report-card strong {
    font-size: 1.15em;
}

.helpdesk-queue-grid {
    gap: 10px;
}

.helpdesk-queue-card {
    padding: 10px 12px;
    border-radius: 7px;
}

.helpdesk-queue-count {
    font-size: 1.55em;
    margin-bottom: 4px;
}

.helpdesk-queue-label {
    font-size: 0.92em;
    margin-bottom: 3px;
}

.helpdesk-queue-note,
.helpdesk-filter-summary,
.helpdesk-bulk-summary,
.helpdesk-report-meta,
.helpdesk-alert-ticket-note,
.helpdesk-note {
    font-size: 0.88em;
}

.helpdesk-tabs {
    gap: 6px;
}

.helpdesk-tab {
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 7px 7px 0 0;
    font-size: 0.92em;
}

.helpdesk-tabs-secondary .helpdesk-tab {
    min-height: 28px;
    padding: 5px 10px;
}

.helpdesk-overview-next-grid,
.helpdesk-overview-focus-grid,
.helpdesk-overview-health-grid,
.helpdesk-report-grid,
.helpdesk-team-load-grid,
.helpdesk-manage-grid,
.helpdesk-filter-grid,
.helpdesk-bulk-grid,
.helpdesk-team-filter-grid {
    gap: 10px;
}

.helpdesk-overview-next-card,
.helpdesk-overview-focus-box,
.helpdesk-overview-health-box,
.helpdesk-report-panel,
.helpdesk-team-load-card,
.helpdesk-preview-compare-box,
.helpdesk-team-bulk-bar,
.helpdesk-redistribution-bulk-bar,
.helpdesk-saved-views-group-other {
    padding: 10px 11px;
    border-radius: 7px;
}

.helpdesk-overview-health-box {
    margin-top: 10px;
}

.helpdesk-overview-health-card {
    gap: 6px;
    padding: 10px;
    border-radius: 7px;
}

.helpdesk-overview-health-count {
    font-size: 19px;
}

.helpdesk-overview-next-card strong,
.helpdesk-overview-focus-box h4,
.helpdesk-report-panel h4,
.helpdesk-manage-box h4,
.helpdesk-history-box h4 {
    margin-bottom: 5px;
}

.helpdesk-quick-actions,
.helpdesk-team-context-buttons,
.helpdesk-team-layout-tools-actions,
.helpdesk-team-section-jump-links,
.helpdesk-redistribution-actions,
.helpdesk-team-load-actions,
.helpdesk-filter-actions,
.helpdesk-bulk-actions {
    gap: 6px;
}

.helpdesk-report-summary {
    gap: 8px;
    padding: 10px 11px;
}

.helpdesk-report-section-body {
    padding: 0 11px 11px;
}

.helpdesk-report-list li,
.helpdesk-history-list li,
.helpdesk-team-history-list li {
    padding: 7px 0;
}

.helpdesk-team-summary,
.helpdesk-team-filter-box,
.helpdesk-team-alerts-box,
.helpdesk-team-table-box,
.helpdesk-team-report-box,
.helpdesk-queue-panel,
.helpdesk-bulk-panel,
.helpdesk-filter-panel,
.helpdesk-team-context-box,
.helpdesk-team-display-box,
.helpdesk-posting-panel,
.helpdesk-topic-panel {
    margin: 10px 0;
}

.helpdesk-posting-panel .helpdesk-grid-stack .helpdesk-field dd {
    margin-top: 4px !important;
}

.helpdesk-posting-panel .helpdesk-grid-stack .helpdesk-field select,
.helpdesk-manage-field select,
.helpdesk-filter-field select,
.helpdesk-filter-field input[type="text"],
.helpdesk-manage-field input[type="text"] {
    min-height: 32px;
}

.helpdesk-manage-field textarea {
    min-height: 52px;
}

@media (max-width: 700px) {
    .helpdesk-team-card strong,
    .helpdesk-overview-health-count {
        font-size: 16px;
    }

    .helpdesk-queue-count {
        font-size: 1.35em;
    }

    .helpdesk-tab {
        min-height: 30px;
        padding: 5px 10px;
    }
}


/* 4.9.62 visual pass: remove redundant viewforum bulk selection and make queue list closer to prosilver */
.helpdesk-team-table-wrap {
    border: 1px solid #c8d3dc;
    border-radius: 4px;
    background: #ffffff;
}

.helpdesk-team-table {
    width: 100%;
    border-collapse: collapse;
}

.helpdesk-team-table thead th {
    padding: 8px 10px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #4c5d77;
    background: linear-gradient(to bottom, #f9fbfc 0%, #e8eef3 100%);
    border-bottom: 1px solid #c8d3dc;
}

.helpdesk-team-table tbody td {
    padding: 8px 10px;
    border-top: 1px solid #e4ebf0;
    background: #ffffff;
}

.helpdesk-team-table tbody tr:nth-child(even) td {
    background: #fbfcfd;
}

.helpdesk-team-table tbody tr:hover td {
    background: #f2f7fb;
}

.helpdesk-team-topic-cell,
.helpdesk-team-forum-cell,
.helpdesk-team-department-cell,
.helpdesk-team-assignee-cell,
.helpdesk-team-alerts-cell,
.helpdesk-team-updated-cell {
    font-size: 11px;
    line-height: 1.35;
}

.helpdesk-team-topic-link {
    font-weight: 700;
    font-size: 1em;
}

.helpdesk-team-topic-subline {
    margin-top: 4px;
    font-size: 10px;
    color: #5f6b78;
    gap: 4px;
}

.helpdesk-team-assignee-name {
    font-weight: 700;
}

.helpdesk-team-forum-cell,
.helpdesk-team-updated-cell {
    color: #5f6b78;
}

.helpdesk-team-alerts-cell {
    color: #8a4f08;
}

.helpdesk-team-status-cell .helpdesk-badge,
.helpdesk-team-priority-cell .helpdesk-badge,
.helpdesk-team-assignee-cell .helpdesk-badge {
    min-height: 16px;
    padding: 1px 5px;
    font-size: 8px;
}

.helpdesk-team-table-check {
    width: 28px;
}

.helpdesk-team-table-check input[type="checkbox"] {
    width: 13px;
    height: 13px;
}

/* 4.9.63 visual pass: queue list closer to prosilver topic list */
.helpdesk-team-table-wrap {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow-x: auto;
}

.helpdesk-team-table {
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

.helpdesk-team-table thead th {
    padding: 7px 9px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #ffffff;
    background: linear-gradient(to bottom, #5b8fb6 0%, #3e6e93 100%);
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.helpdesk-team-table thead th:first-child {
    border-top-left-radius: 4px;
}

.helpdesk-team-table thead th:last-child {
    border-top-right-radius: 4px;
    border-right: 0;
}

.helpdesk-team-table tbody td {
    padding: 8px 9px;
    border-top: 1px solid #dbe5ee;
    background: #fefefe;
}

.helpdesk-team-table tbody tr:first-child td {
    border-top-color: #c7d7e5;
}

.helpdesk-team-table tbody tr:nth-child(even) td {
    background: #f6f9fc;
}

.helpdesk-team-table tbody tr:hover td {
    background: #edf4fa;
}

.helpdesk-team-topic-link {
    color: #105289;
    font-weight: 700;
    font-size: 1.04em;
    text-decoration: none;
}

.helpdesk-team-topic-link:hover,
.helpdesk-team-topic-link:focus {
    color: #bc2a4d;
    text-decoration: underline;
}

.helpdesk-team-topic-subline {
    margin-top: 3px;
    font-size: 10px;
    line-height: 1.35;
    color: #536482;
}

.helpdesk-team-topic-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.helpdesk-team-topic-badges .helpdesk-badge {
    min-height: 15px;
    padding: 1px 5px;
    font-size: 8px;
    border-radius: 10px;
}

.helpdesk-team-topic-deadline {
    font-size: 10px;
    color: #536482;
}

.helpdesk-team-topic-cell,
.helpdesk-team-forum-cell,
.helpdesk-team-department-cell,
.helpdesk-team-assignee-cell,
.helpdesk-team-alerts-cell,
.helpdesk-team-updated-cell {
    font-size: 11px;
    line-height: 1.35;
    color: #333333;
}

.helpdesk-team-forum-cell,
.helpdesk-team-department-cell,
.helpdesk-team-updated-cell {
    color: #536482;
}

.helpdesk-team-alerts-cell {
    color: #7b5b21;
    font-size: 10px;
}

.helpdesk-team-assignee-name {
    color: #105289;
}

.helpdesk-team-status-cell .helpdesk-badge,
.helpdesk-team-priority-cell .helpdesk-badge,
.helpdesk-team-assignee-cell .helpdesk-badge {
    min-height: 15px;
    padding: 1px 5px;
    font-size: 8px;
    border-radius: 10px;
}

.helpdesk-team-table-check {
    width: 30px;
}

.helpdesk-team-table-check input[type="checkbox"] {
    width: 12px;
    height: 12px;
}

.helpdesk-team-card.is-active {
    border-color: #4c6a92;
    box-shadow: inset 0 0 0 1px rgba(76, 106, 146, 0.18);
    background: linear-gradient(180deg, #f9fbfd 0%, #eef3f8 100%);
}

.helpdesk-my-tickets-list .topiclist .row-item dd.posts,
.helpdesk-my-tickets-list .topiclist .row-item dd.views,
.helpdesk-my-tickets-list .topiclist .row-item dd.lastpost {
    text-align: center;
}

.helpdesk-my-tickets-list .topictitle {
    display: inline-block;
    margin-bottom: 4px;
}

.helpdesk-my-ticket-filter-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.helpdesk-my-ticket-filter-summary {
    margin: 10px 0 0;
}

.helpdesk-my-ticket-scope-cards {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.helpdesk-my-ticket-badges {
    margin-top: 6px;
}

.helpdesk-my-ticket-actions {
    margin-top: 8px;
    gap: 6px;
}

.helpdesk-my-ticket-actions .button {
    min-height: 28px;
    padding: 4px 10px;
}

.helpdesk-my-ticket-status-cell,
.helpdesk-my-ticket-priority-cell {
    vertical-align: top;
}

.helpdesk-my-tickets-list .list-inner {
    padding-right: 10px;
}

.helpdesk-my-tickets-list .helpdesk-team-topic-subline {
    word-break: break-word;
}


.helpdesk-assignee-select {
    width: 100%;
    min-height: 34px;
    box-sizing: border-box;
}

html[data-theme="dark"] .helpdesk-topic-panel,
body[data-theme="dark"] .helpdesk-topic-panel,
.dark-theme .helpdesk-topic-panel,
body.dark .helpdesk-topic-panel,
body.phpbb-dark .helpdesk-topic-panel {
    background: #1f252d;
    border-color: rgba(255, 255, 255, 0.08);
    color: #edf2f7;
}

html[data-theme="dark"] .helpdesk-topic-panel h3,
html[data-theme="dark"] .helpdesk-topic-panel h4,
html[data-theme="dark"] .helpdesk-topic-panel label,
html[data-theme="dark"] .helpdesk-topic-panel .helpdesk-note,
body[data-theme="dark"] .helpdesk-topic-panel h3,
body[data-theme="dark"] .helpdesk-topic-panel h4,
body[data-theme="dark"] .helpdesk-topic-panel label,
body[data-theme="dark"] .helpdesk-topic-panel .helpdesk-note,
.dark-theme .helpdesk-topic-panel h3,
.dark-theme .helpdesk-topic-panel h4,
.dark-theme .helpdesk-topic-panel label,
.dark-theme .helpdesk-topic-panel .helpdesk-note,
body.dark .helpdesk-topic-panel h3,
body.dark .helpdesk-topic-panel h4,
body.dark .helpdesk-topic-panel label,
body.dark .helpdesk-topic-panel .helpdesk-note,
body.phpbb-dark .helpdesk-topic-panel h3,
body.phpbb-dark .helpdesk-topic-panel h4,
body.phpbb-dark .helpdesk-topic-panel label,
body.phpbb-dark .helpdesk-topic-panel .helpdesk-note {
    color: #edf2f7;
}

html[data-theme="dark"] .helpdesk-manage-field select,
html[data-theme="dark"] .helpdesk-manage-field input[type="text"],
html[data-theme="dark"] .helpdesk-manage-field textarea,
html[data-theme="dark"] .helpdesk-filter-field select,
html[data-theme="dark"] .helpdesk-filter-field input[type="text"],
body[data-theme="dark"] .helpdesk-manage-field select,
body[data-theme="dark"] .helpdesk-manage-field input[type="text"],
body[data-theme="dark"] .helpdesk-manage-field textarea,
body[data-theme="dark"] .helpdesk-filter-field select,
body[data-theme="dark"] .helpdesk-filter-field input[type="text"],
.dark-theme .helpdesk-manage-field select,
.dark-theme .helpdesk-manage-field input[type="text"],
.dark-theme .helpdesk-manage-field textarea,
.dark-theme .helpdesk-filter-field select,
.dark-theme .helpdesk-filter-field input[type="text"],
body.dark .helpdesk-manage-field select,
body.dark .helpdesk-manage-field input[type="text"],
body.dark .helpdesk-manage-field textarea,
body.dark .helpdesk-filter-field select,
body.dark .helpdesk-filter-field input[type="text"],
body.phpbb-dark .helpdesk-manage-field select,
body.phpbb-dark .helpdesk-manage-field input[type="text"],
body.phpbb-dark .helpdesk-manage-field textarea,
body.phpbb-dark .helpdesk-filter-field select,
body.phpbb-dark .helpdesk-filter-field input[type="text"] {
    background: #141a21;
    color: #edf2f7;
    border: 1px solid #435166;
}

html[data-theme="dark"] .helpdesk-manage-field select option,
html[data-theme="dark"] .helpdesk-filter-field select option,
body[data-theme="dark"] .helpdesk-manage-field select option,
body[data-theme="dark"] .helpdesk-filter-field select option,
.dark-theme .helpdesk-manage-field select option,
.dark-theme .helpdesk-filter-field select option,
body.dark .helpdesk-manage-field select option,
body.dark .helpdesk-filter-field select option,
body.phpbb-dark .helpdesk-manage-field select option,
body.phpbb-dark .helpdesk-filter-field select option {
    background: #141a21;
    color: #edf2f7;
}

html[data-theme="dark"] .helpdesk-history-box,
body[data-theme="dark"] .helpdesk-history-box,
.dark-theme .helpdesk-history-box,
body.dark .helpdesk-history-box,
body.phpbb-dark .helpdesk-history-box {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* 4.9.72 alerts by forum: avoid forum/category labels collapsing vertically */
.helpdesk-team-alerts-box [data-helpdesk-collapse="alerts-forum"] .helpdesk-report-link {
    align-items: flex-start;
    flex-wrap: wrap;
}

.helpdesk-team-alerts-box [data-helpdesk-collapse="alerts-forum"] .helpdesk-report-main {
    flex: 1 1 220px;
    min-width: 180px;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

.helpdesk-team-alerts-box [data-helpdesk-collapse="alerts-forum"] .helpdesk-report-meta {
    flex: 0 1 100%;
    text-align: left;
    white-space: normal;
}


html[data-theme="dark"] .helpdesk-team-topic-deadline,
body[data-theme="dark"] .helpdesk-team-topic-deadline,
.dark-theme .helpdesk-team-topic-deadline,
body.dark .helpdesk-team-topic-deadline,
body.phpbb-dark .helpdesk-team-topic-deadline {
    color: #c4ced8;
}


/* 4.9.75 queue emphasis: highlight urgent SLA rows in team table */
.helpdesk-team-table tbody tr.helpdesk-team-row {
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.helpdesk-team-table tbody tr.helpdesk-team-row.is-overdue td,
.helpdesk-team-table tbody tr.helpdesk-team-row.is-due-today td,
.helpdesk-team-table tbody tr.helpdesk-team-row.is-stale td {
    position: relative;
}

.helpdesk-team-table tbody tr.helpdesk-team-row.is-overdue td:first-child,
.helpdesk-team-table tbody tr.helpdesk-team-row.is-due-today td:first-child,
.helpdesk-team-table tbody tr.helpdesk-team-row.is-stale td:first-child {
    box-shadow: inset 4px 0 0 0 transparent;
}

.helpdesk-team-table tbody tr.helpdesk-team-row.is-overdue td {
    background: #fff2f2;
}

.helpdesk-team-table tbody tr.helpdesk-team-row.is-overdue td:first-child {
    box-shadow: inset 4px 0 0 0 #c53b3b;
}

.helpdesk-team-table tbody tr.helpdesk-team-row.is-overdue:hover td {
    background: #fde7e7;
}

.helpdesk-team-table tbody tr.helpdesk-team-row.is-due-today td {
    background: #fff8ea;
}

.helpdesk-team-table tbody tr.helpdesk-team-row.is-due-today td:first-child {
    box-shadow: inset 4px 0 0 0 #c88410;
}

.helpdesk-team-table tbody tr.helpdesk-team-row.is-due-today:hover td {
    background: #fff1d5;
}

.helpdesk-team-table tbody tr.helpdesk-team-row.is-stale td {
    background: #f7f3ff;
}

.helpdesk-team-table tbody tr.helpdesk-team-row.is-stale td:first-child {
    box-shadow: inset 4px 0 0 0 #7150b8;
}

.helpdesk-team-table tbody tr.helpdesk-team-row.is-stale:hover td {
    background: #efe8ff;
}

html[data-theme="dark"] .helpdesk-team-table tbody tr.helpdesk-team-row.is-overdue td,
body[data-theme="dark"] .helpdesk-team-table tbody tr.helpdesk-team-row.is-overdue td,
.dark-theme .helpdesk-team-table tbody tr.helpdesk-team-row.is-overdue td,
body.dark .helpdesk-team-table tbody tr.helpdesk-team-row.is-overdue td,
body.phpbb-dark .helpdesk-team-table tbody tr.helpdesk-team-row.is-overdue td {
    background: #3a1f24;
    border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .helpdesk-team-table tbody tr.helpdesk-team-row.is-overdue:hover td,
body[data-theme="dark"] .helpdesk-team-table tbody tr.helpdesk-team-row.is-overdue:hover td,
.dark-theme .helpdesk-team-table tbody tr.helpdesk-team-row.is-overdue:hover td,
body.dark .helpdesk-team-table tbody tr.helpdesk-team-row.is-overdue:hover td,
body.phpbb-dark .helpdesk-team-table tbody tr.helpdesk-team-row.is-overdue:hover td {
    background: #48252b;
}

html[data-theme="dark"] .helpdesk-team-table tbody tr.helpdesk-team-row.is-overdue td:first-child,
body[data-theme="dark"] .helpdesk-team-table tbody tr.helpdesk-team-row.is-overdue td:first-child,
.dark-theme .helpdesk-team-table tbody tr.helpdesk-team-row.is-overdue td:first-child,
body.dark .helpdesk-team-table tbody tr.helpdesk-team-row.is-overdue td:first-child,
body.phpbb-dark .helpdesk-team-table tbody tr.helpdesk-team-row.is-overdue td:first-child {
    box-shadow: inset 4px 0 0 0 #ff7b86;
}

html[data-theme="dark"] .helpdesk-team-table tbody tr.helpdesk-team-row.is-due-today td,
body[data-theme="dark"] .helpdesk-team-table tbody tr.helpdesk-team-row.is-due-today td,
.dark-theme .helpdesk-team-table tbody tr.helpdesk-team-row.is-due-today td,
body.dark .helpdesk-team-table tbody tr.helpdesk-team-row.is-due-today td,
body.phpbb-dark .helpdesk-team-table tbody tr.helpdesk-team-row.is-due-today td {
    background: #3b3020;
    border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .helpdesk-team-table tbody tr.helpdesk-team-row.is-due-today:hover td,
body[data-theme="dark"] .helpdesk-team-table tbody tr.helpdesk-team-row.is-due-today:hover td,
.dark-theme .helpdesk-team-table tbody tr.helpdesk-team-row.is-due-today:hover td,
body.dark .helpdesk-team-table tbody tr.helpdesk-team-row.is-due-today:hover td,
body.phpbb-dark .helpdesk-team-table tbody tr.helpdesk-team-row.is-due-today:hover td {
    background: #473924;
}

html[data-theme="dark"] .helpdesk-team-table tbody tr.helpdesk-team-row.is-due-today td:first-child,
body[data-theme="dark"] .helpdesk-team-table tbody tr.helpdesk-team-row.is-due-today td:first-child,
.dark-theme .helpdesk-team-table tbody tr.helpdesk-team-row.is-due-today td:first-child,
body.dark .helpdesk-team-table tbody tr.helpdesk-team-row.is-due-today td:first-child,
body.phpbb-dark .helpdesk-team-table tbody tr.helpdesk-team-row.is-due-today td:first-child {
    box-shadow: inset 4px 0 0 0 #f0b14a;
}

html[data-theme="dark"] .helpdesk-team-table tbody tr.helpdesk-team-row.is-stale td,
body[data-theme="dark"] .helpdesk-team-table tbody tr.helpdesk-team-row.is-stale td,
.dark-theme .helpdesk-team-table tbody tr.helpdesk-team-row.is-stale td,
body.dark .helpdesk-team-table tbody tr.helpdesk-team-row.is-stale td,
body.phpbb-dark .helpdesk-team-table tbody tr.helpdesk-team-row.is-stale td {
    background: #2f283e;
    border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .helpdesk-team-table tbody tr.helpdesk-team-row.is-stale:hover td,
body[data-theme="dark"] .helpdesk-team-table tbody tr.helpdesk-team-row.is-stale:hover td,
.dark-theme .helpdesk-team-table tbody tr.helpdesk-team-row.is-stale:hover td,
body.dark .helpdesk-team-table tbody tr.helpdesk-team-row.is-stale:hover td,
body.phpbb-dark .helpdesk-team-table tbody tr.helpdesk-team-row.is-stale:hover td {
    background: #382f49;
}

html[data-theme="dark"] .helpdesk-team-table tbody tr.helpdesk-team-row.is-stale td:first-child,
body[data-theme="dark"] .helpdesk-team-table tbody tr.helpdesk-team-row.is-stale td:first-child,
.dark-theme .helpdesk-team-table tbody tr.helpdesk-team-row.is-stale td:first-child,
body.dark .helpdesk-team-table tbody tr.helpdesk-team-row.is-stale td:first-child,
body.phpbb-dark .helpdesk-team-table tbody tr.helpdesk-team-row.is-stale td:first-child {
    box-shadow: inset 4px 0 0 0 #b59cff;
}

/* 4.9.93 neutral ticket badges */
.helpdesk-badge-neutral {
    color: #3f4d63;
    background: #eef2f7;
    border: 1px solid #cfd8e3;
}

html[data-theme="dark"] .helpdesk-badge-neutral,
body[data-theme="dark"] .helpdesk-badge-neutral,
.dark-theme .helpdesk-badge-neutral,
body.dark .helpdesk-badge-neutral,
body.phpbb-dark .helpdesk-badge-neutral {
    color: #e8edf5;
    background: #2a3340;
    border-color: #546274;
}

/* 4.9.94 unassigned emphasis: make intake tickets stand out without competing with SLA states */
.helpdesk-badge-unassigned {
    color: #0f4d83;
    background: #e8f2ff;
    border: 1px solid #b5cff0;
}

.helpdesk-team-assignee-cell.is-unassigned {
    color: #0f4d83;
    font-weight: 700;
}

.helpdesk-team-topic-cell.is-unassigned .helpdesk-team-topic-link {
    color: #0b4f8a;
}

.helpdesk-team-table tbody tr.helpdesk-team-row.is-unassigned:not(.is-overdue):not(.is-due-today):not(.is-stale) td {
    background: #f3f7ff;
}

.helpdesk-team-table tbody tr.helpdesk-team-row.is-unassigned:not(.is-overdue):not(.is-due-today):not(.is-stale) td:first-child {
    box-shadow: inset 4px 0 0 0 #5a8ec8;
}

.helpdesk-team-table tbody tr.helpdesk-team-row.is-unassigned:not(.is-overdue):not(.is-due-today):not(.is-stale):hover td {
    background: #e9f1fe;
}

.helpdesk-team-triage-meta .helpdesk-badge-unassigned {
    margin-left: 4px;
    vertical-align: middle;
}

html[data-theme="dark"] .helpdesk-badge-unassigned,
body[data-theme="dark"] .helpdesk-badge-unassigned,
.dark-theme .helpdesk-badge-unassigned,
body.dark .helpdesk-badge-unassigned,
body.phpbb-dark .helpdesk-badge-unassigned {
    color: #d9e9ff;
    background: #223247;
    border-color: #4f6f96;
}

html[data-theme="dark"] .helpdesk-team-assignee-cell.is-unassigned,
body[data-theme="dark"] .helpdesk-team-assignee-cell.is-unassigned,
.dark-theme .helpdesk-team-assignee-cell.is-unassigned,
body.dark .helpdesk-team-assignee-cell.is-unassigned,
body.phpbb-dark .helpdesk-team-assignee-cell.is-unassigned,
html[data-theme="dark"] .helpdesk-team-topic-cell.is-unassigned .helpdesk-team-topic-link,
body[data-theme="dark"] .helpdesk-team-topic-cell.is-unassigned .helpdesk-team-topic-link,
.dark-theme .helpdesk-team-topic-cell.is-unassigned .helpdesk-team-topic-link,
body.dark .helpdesk-team-topic-cell.is-unassigned .helpdesk-team-topic-link,
body.phpbb-dark .helpdesk-team-topic-cell.is-unassigned .helpdesk-team-topic-link {
    color: #d8e8ff;
}

html[data-theme="dark"] .helpdesk-team-table tbody tr.helpdesk-team-row.is-unassigned:not(.is-overdue):not(.is-due-today):not(.is-stale) td,
body[data-theme="dark"] .helpdesk-team-table tbody tr.helpdesk-team-row.is-unassigned:not(.is-overdue):not(.is-due-today):not(.is-stale) td,
.dark-theme .helpdesk-team-table tbody tr.helpdesk-team-row.is-unassigned:not(.is-overdue):not(.is-due-today):not(.is-stale) td,
body.dark .helpdesk-team-table tbody tr.helpdesk-team-row.is-unassigned:not(.is-overdue):not(.is-due-today):not(.is-stale) td,
body.phpbb-dark .helpdesk-team-table tbody tr.helpdesk-team-row.is-unassigned:not(.is-overdue):not(.is-due-today):not(.is-stale) td {
    background: #203144;
    border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .helpdesk-team-table tbody tr.helpdesk-team-row.is-unassigned:not(.is-overdue):not(.is-due-today):not(.is-stale):hover td,
body[data-theme="dark"] .helpdesk-team-table tbody tr.helpdesk-team-row.is-unassigned:not(.is-overdue):not(.is-due-today):not(.is-stale):hover td,
.dark-theme .helpdesk-team-table tbody tr.helpdesk-team-row.is-unassigned:not(.is-overdue):not(.is-due-today):not(.is-stale):hover td,
body.dark .helpdesk-team-table tbody tr.helpdesk-team-row.is-unassigned:not(.is-overdue):not(.is-due-today):not(.is-stale):hover td,
body.phpbb-dark .helpdesk-team-table tbody tr.helpdesk-team-row.is-unassigned:not(.is-overdue):not(.is-due-today):not(.is-stale):hover td {
    background: #27394d;
}

html[data-theme="dark"] .helpdesk-team-table tbody tr.helpdesk-team-row.is-unassigned:not(.is-overdue):not(.is-due-today):not(.is-stale) td:first-child,
body[data-theme="dark"] .helpdesk-team-table tbody tr.helpdesk-team-row.is-unassigned:not(.is-overdue):not(.is-due-today):not(.is-stale) td:first-child,
.dark-theme .helpdesk-team-table tbody tr.helpdesk-team-row.is-unassigned:not(.is-overdue):not(.is-due-today):not(.is-stale) td:first-child,
body.dark .helpdesk-team-table tbody tr.helpdesk-team-row.is-unassigned:not(.is-overdue):not(.is-due-today):not(.is-stale) td:first-child,
body.phpbb-dark .helpdesk-team-table tbody tr.helpdesk-team-row.is-unassigned:not(.is-overdue):not(.is-due-today):not(.is-stale) td:first-child {
    box-shadow: inset 4px 0 0 0 #7fb2ea;
}


.helpdesk-queue-focus-strip-box {
    margin: 12px 0;
}

.helpdesk-queue-focus-strip-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.helpdesk-queue-focus-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.helpdesk-team-card-mini {
    min-height: 74px;
}

.helpdesk-queue-focus-card {
    position: relative;
}

.helpdesk-queue-focus-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 8px 0 0 8px;
    background: rgba(76, 106, 146, 0.22);
}

.helpdesk-queue-focus-card.is-overdue {
    background: #fff5f5;
    border-color: #e6b9b9;
}

.helpdesk-queue-focus-card.is-overdue::before {
    background: #c95353;
}

.helpdesk-queue-focus-card.is-due-today {
    background: #fff8e8;
    border-color: #ead39a;
}

.helpdesk-queue-focus-card.is-due-today::before {
    background: #c08a1d;
}

.helpdesk-queue-focus-card.is-stale {
    background: #f7f2ff;
    border-color: #d5c5f0;
}

.helpdesk-queue-focus-card.is-stale::before {
    background: #7a58a5;
}

.helpdesk-queue-focus-card.is-active {
    box-shadow: inset 0 0 0 1px rgba(76, 106, 146, 0.22), 0 0 0 1px rgba(76, 106, 146, 0.08);
}

html[data-theme="dark"] .helpdesk-queue-focus-strip-box,
body[data-theme="dark"] .helpdesk-queue-focus-strip-box,
.dark-theme .helpdesk-queue-focus-strip-box,
body.dark .helpdesk-queue-focus-strip-box,
body.phpbb-dark .helpdesk-queue-focus-strip-box {
    background: #1f252d;
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .helpdesk-queue-focus-card,
body[data-theme="dark"] .helpdesk-queue-focus-card,
.dark-theme .helpdesk-queue-focus-card,
body.dark .helpdesk-queue-focus-card,
body.phpbb-dark .helpdesk-queue-focus-card {
    color: #edf2f7;
}

html[data-theme="dark"] .helpdesk-queue-focus-card.is-overdue,
body[data-theme="dark"] .helpdesk-queue-focus-card.is-overdue,
.dark-theme .helpdesk-queue-focus-card.is-overdue,
body.dark .helpdesk-queue-focus-card.is-overdue,
body.phpbb-dark .helpdesk-queue-focus-card.is-overdue {
    background: rgba(137, 43, 43, 0.24);
    border-color: rgba(201, 83, 83, 0.38);
}

html[data-theme="dark"] .helpdesk-queue-focus-card.is-due-today,
body[data-theme="dark"] .helpdesk-queue-focus-card.is-due-today,
.dark-theme .helpdesk-queue-focus-card.is-due-today,
body.dark .helpdesk-queue-focus-card.is-due-today,
body.phpbb-dark .helpdesk-queue-focus-card.is-due-today {
    background: rgba(120, 87, 17, 0.28);
    border-color: rgba(192, 138, 29, 0.42);
}

html[data-theme="dark"] .helpdesk-queue-focus-card.is-stale,
body[data-theme="dark"] .helpdesk-queue-focus-card.is-stale,
.dark-theme .helpdesk-queue-focus-card.is-stale,
body.dark .helpdesk-queue-focus-card.is-stale,
body.phpbb-dark .helpdesk-queue-focus-card.is-stale {
    background: rgba(80, 52, 124, 0.3);
    border-color: rgba(122, 88, 165, 0.45);
}


.helpdesk-queue-presets-box {
    margin-top: 12px;
}

.helpdesk-queue-presets-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.helpdesk-queue-presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.helpdesk-queue-preset-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #ffffff;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.helpdesk-queue-preset-card:hover,
.helpdesk-queue-preset-card:focus {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.helpdesk-queue-preset-card strong {
    font-size: 1.02em;
}

.helpdesk-queue-preset-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.08);
    font-weight: 700;
}

.helpdesk-queue-preset-meta {
    color: #5b6472;
    line-height: 1.4;
}

.helpdesk-queue-preset-open {
    margin-top: auto;
    font-size: 0.92em;
    font-weight: 600;
}

.helpdesk-queue-preset-card.is-stable {
    border-color: rgba(22, 101, 52, 0.16);
}

.helpdesk-queue-preset-card.is-attention {
    border-color: rgba(180, 83, 9, 0.22);
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.helpdesk-queue-preset-card.is-critical {
    border-color: rgba(185, 28, 28, 0.24);
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.helpdesk-queue-preset-card.is-active {
    box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.25), 0 6px 16px rgba(37, 99, 235, 0.10);
    border-color: rgba(37, 99, 235, 0.35);
}

html[data-theme="dark"] .helpdesk-queue-presets-box,
body[data-theme="dark"] .helpdesk-queue-presets-box,
.dark-theme .helpdesk-queue-presets-box,
body.dark .helpdesk-queue-presets-box,
body.phpbb-dark .helpdesk-queue-presets-box {
    background: #1c1f26;
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .helpdesk-queue-preset-card,
body[data-theme="dark"] .helpdesk-queue-preset-card,
.dark-theme .helpdesk-queue-preset-card,
body.dark .helpdesk-queue-preset-card,
body.phpbb-dark .helpdesk-queue-preset-card {
    background: #232834;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

html[data-theme="dark"] .helpdesk-queue-preset-card:hover,
html[data-theme="dark"] .helpdesk-queue-preset-card:focus,
body[data-theme="dark"] .helpdesk-queue-preset-card:hover,
body[data-theme="dark"] .helpdesk-queue-preset-card:focus,
.dark-theme .helpdesk-queue-preset-card:hover,
.dark-theme .helpdesk-queue-preset-card:focus,
body.dark .helpdesk-queue-preset-card:hover,
body.dark .helpdesk-queue-preset-card:focus,
body.phpbb-dark .helpdesk-queue-preset-card:hover,
body.phpbb-dark .helpdesk-queue-preset-card:focus {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .helpdesk-queue-preset-count,
body[data-theme="dark"] .helpdesk-queue-preset-count,
.dark-theme .helpdesk-queue-preset-count,
body.dark .helpdesk-queue-preset-count,
body.phpbb-dark .helpdesk-queue-preset-count {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .helpdesk-queue-preset-meta,
body[data-theme="dark"] .helpdesk-queue-preset-meta,
.dark-theme .helpdesk-queue-preset-meta,
body.dark .helpdesk-queue-preset-meta,
body.phpbb-dark .helpdesk-queue-preset-meta {
    color: #b8c0cc;
}

html[data-theme="dark"] .helpdesk-queue-preset-card.is-attention,
body[data-theme="dark"] .helpdesk-queue-preset-card.is-attention,
.dark-theme .helpdesk-queue-preset-card.is-attention,
body.dark .helpdesk-queue-preset-card.is-attention,
body.phpbb-dark .helpdesk-queue-preset-card.is-attention {
    background: linear-gradient(180deg, rgba(89, 58, 16, 0.55) 0%, rgba(35, 40, 52, 0.98) 100%);
    border-color: rgba(245, 158, 11, 0.32);
}

html[data-theme="dark"] .helpdesk-queue-preset-card.is-critical,
body[data-theme="dark"] .helpdesk-queue-preset-card.is-critical,
.dark-theme .helpdesk-queue-preset-card.is-critical,
body.dark .helpdesk-queue-preset-card.is-critical,
body.phpbb-dark .helpdesk-queue-preset-card.is-critical {
    background: linear-gradient(180deg, rgba(91, 33, 33, 0.60) 0%, rgba(35, 40, 52, 0.98) 100%);
    border-color: rgba(248, 113, 113, 0.30);
}


.helpdesk-screen-reader {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.helpdesk-team-actions-head,
.helpdesk-team-actions-cell {
    min-width: 230px;
}

.helpdesk-team-row-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.helpdesk-team-row-action-form {
    margin: 0;
}

.helpdesk-team-row-action-inline {
    display: flex;
}

.helpdesk-team-row-action-group {
    display: flex;
    gap: 6px;
    align-items: center;
}

.helpdesk-team-row-action-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.helpdesk-team-row-action-group select {
    min-width: 0;
    flex: 1 1 auto;
}

.helpdesk-team-row-reason {
    width: 100%;
    box-sizing: border-box;
    min-height: 28px;
}

.helpdesk-team-row-actions .button {
    white-space: nowrap;
}

.helpdesk-team-row-action-group-buttons {
    flex-wrap: wrap;
}

.helpdesk-team-row-unassign {
    border-style: dashed;
}

.helpdesk-team-row-claim {
    border-color: #7aa6d6;
    background: #e8f2ff;
    color: #0b4f8a;
    font-weight: 700;
}

.helpdesk-team-row-claim:hover,
.helpdesk-team-row-claim:focus {
    background: #dbeafc;
    border-color: #5f8dbf;
    color: #083f6d;
}

html[data-theme="dark"] .helpdesk-team-row-claim,
body[data-theme="dark"] .helpdesk-team-row-claim,
.dark-theme .helpdesk-team-row-claim,
body.dark .helpdesk-team-row-claim,
body.phpbb-dark .helpdesk-team-row-claim {
    background: #23364a;
    border-color: #4f6f96;
    color: #d9e9ff;
}

html[data-theme="dark"] .helpdesk-team-row-claim:hover,
body[data-theme="dark"] .helpdesk-team-row-claim:hover,
.dark-theme .helpdesk-team-row-claim:hover,
body.dark .helpdesk-team-row-claim:hover,
body.phpbb-dark .helpdesk-team-row-claim:hover,
html[data-theme="dark"] .helpdesk-team-row-claim:focus,
body[data-theme="dark"] .helpdesk-team-row-claim:focus,
.dark-theme .helpdesk-team-row-claim:focus,
body.dark .helpdesk-team-row-claim:focus,
body.phpbb-dark .helpdesk-team-row-claim:focus {
    background: #294158;
    border-color: #6d94c0;
    color: #ffffff;
}

.helpdesk-team-row-open,
.helpdesk-team-row-reply {
    align-self: flex-start;
}

html[data-theme="dark"] .helpdesk-team-row-action-group select,
body[data-theme="dark"] .helpdesk-team-row-action-group select,
.dark-theme .helpdesk-team-row-action-group select,
body.dark .helpdesk-team-row-action-group select,
body.phpbb-dark .helpdesk-team-row-action-group select,
html[data-theme="dark"] .helpdesk-team-row-reason,
body[data-theme="dark"] .helpdesk-team-row-reason,
.dark-theme .helpdesk-team-row-reason,
body.dark .helpdesk-team-row-reason,
body.phpbb-dark .helpdesk-team-row-reason {
    background: #1f2430;
    color: #edf2f7;
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .helpdesk-team-row-actions .button,
body[data-theme="dark"] .helpdesk-team-row-actions .button,
.dark-theme .helpdesk-team-row-actions .button,
body.dark .helpdesk-team-row-actions .button,
body.phpbb-dark .helpdesk-team-row-actions .button {
    border-color: rgba(255, 255, 255, 0.14);
}

@media (max-width: 700px) {
    .helpdesk-queue-presets-grid {
        grid-template-columns: 1fr;
    }
}

/* 4.9.86 UX pass: improve spacing, table readability, and row actions in team queue */
.helpdesk-queue-focus-strip-box,
.helpdesk-queue-presets-box,
.helpdesk-team-table-box {
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.helpdesk-queue-focus-strip-box .inner,
.helpdesk-queue-presets-box .inner,
.helpdesk-team-table-box .inner {
    padding-top: 16px;
    padding-bottom: 16px;
}

.helpdesk-team-table-box > .inner > h3,
.helpdesk-queue-presets-head h3,
.helpdesk-queue-focus-strip-head h3 {
    margin-bottom: 4px;
}

.helpdesk-team-table-box > .inner > .helpdesk-note,
.helpdesk-queue-presets-head .helpdesk-note,
.helpdesk-queue-focus-strip-head .helpdesk-note {
    margin-bottom: 12px;
}

.helpdesk-team-card-mini,
.helpdesk-queue-preset-card {
    min-height: 96px;
}

.helpdesk-team-table-wrap {
    border: 1px solid #d7e2ec;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.helpdesk-team-table {
    min-width: 1260px;
}

.helpdesk-team-table thead th,
.helpdesk-team-table tbody td {
    vertical-align: top;
}

.helpdesk-team-topic-cell {
    min-width: 320px;
}

.helpdesk-team-forum-cell {
    min-width: 160px;
}

.helpdesk-team-department-cell,
.helpdesk-team-assignee-cell,
.helpdesk-team-alerts-cell,
.helpdesk-team-updated-cell {
    min-width: 130px;
}

.helpdesk-team-status-cell,
.helpdesk-team-priority-cell {
    min-width: 92px;
}

.helpdesk-team-topic-link {
    display: inline-block;
    margin-bottom: 2px;
}

.helpdesk-team-topic-subline,
.helpdesk-team-topic-badges {
    max-width: 100%;
}

.helpdesk-team-actions-head,
.helpdesk-team-actions-cell {
    min-width: 300px;
}

.helpdesk-team-row-actions {
    gap: 10px;
}

.helpdesk-team-row-action-form {
    padding: 9px 10px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.88);
}

.helpdesk-team-row-action-stack {
    gap: 8px;
}

.helpdesk-team-row-action-group {
    gap: 8px;
}

.helpdesk-team-row-action-group select {
    min-height: 30px;
}

.helpdesk-team-row-reason {
    min-height: 30px;
    padding: 4px 8px;
}

.helpdesk-team-row-open,
.helpdesk-team-row-reply {
    min-width: 120px;
}

html[data-theme="dark"] .helpdesk-queue-focus-strip-box,
html[data-theme="dark"] .helpdesk-queue-presets-box,
html[data-theme="dark"] .helpdesk-team-table-box,
body[data-theme="dark"] .helpdesk-queue-focus-strip-box,
body[data-theme="dark"] .helpdesk-queue-presets-box,
body[data-theme="dark"] .helpdesk-team-table-box,
.dark-theme .helpdesk-queue-focus-strip-box,
.dark-theme .helpdesk-queue-presets-box,
.dark-theme .helpdesk-team-table-box,
body.dark .helpdesk-queue-focus-strip-box,
body.dark .helpdesk-queue-presets-box,
body.dark .helpdesk-team-table-box,
body.phpbb-dark .helpdesk-queue-focus-strip-box,
body.phpbb-dark .helpdesk-queue-presets-box,
body.phpbb-dark .helpdesk-team-table-box {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .helpdesk-team-table-wrap,
body[data-theme="dark"] .helpdesk-team-table-wrap,
.dark-theme .helpdesk-team-table-wrap,
body.dark .helpdesk-team-table-wrap,
body.phpbb-dark .helpdesk-team-table-wrap {
    border-color: rgba(255, 255, 255, 0.1);
    background: #151a21;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .helpdesk-team-row-action-form,
body[data-theme="dark"] .helpdesk-team-row-action-form,
.dark-theme .helpdesk-team-row-action-form,
body.dark .helpdesk-team-row-action-form,
body.phpbb-dark .helpdesk-team-row-action-form {
    background: rgba(31, 36, 48, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
    .helpdesk-queue-focus-strip {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    }

    .helpdesk-queue-presets-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .helpdesk-team-table {
        min-width: 1160px;
    }
}

@media (max-width: 700px) {
    .helpdesk-queue-focus-strip-box .inner,
    .helpdesk-queue-presets-box .inner,
    .helpdesk-team-table-box .inner {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .helpdesk-team-row-action-form {
        padding: 8px;
    }

    .helpdesk-team-row-action-group {
        flex-direction: column;
        align-items: stretch;
    }

    .helpdesk-team-row-actions .button,
    .helpdesk-team-row-open,
    .helpdesk-team-row-reply {
        width: 100%;
        text-align: center;
    }

    .helpdesk-team-row-open,
    .helpdesk-team-row-reply {
        align-self: stretch;
    }
}


/* 4.9.87 triage overflow fix: keep the triage table inside the viewport and compact the actions column */
.helpdesk-team-table-box,
.helpdesk-team-table-box .inner {
    min-width: 0;
}

.helpdesk-team-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.helpdesk-team-table-wrap.is-triage-view {
    contain: inline-size;
}

.helpdesk-team-table.is-triage-view {
    min-width: 1120px;
}

.helpdesk-team-table-box.is-triage-view .helpdesk-team-topic-cell {
    min-width: 260px;
}

.helpdesk-team-table-box.is-triage-view .helpdesk-team-forum-cell {
    min-width: 140px;
}

.helpdesk-team-table-box.is-triage-view .helpdesk-team-department-cell,
.helpdesk-team-table-box.is-triage-view .helpdesk-team-assignee-cell,
.helpdesk-team-table-box.is-triage-view .helpdesk-team-alerts-cell,
.helpdesk-team-table-box.is-triage-view .helpdesk-team-updated-cell {
    min-width: 116px;
}

.helpdesk-team-table-box.is-triage-view .helpdesk-team-actions-head,
.helpdesk-team-table-box.is-triage-view .helpdesk-team-actions-cell {
    min-width: 250px;
}

.helpdesk-team-table-box.is-triage-view .helpdesk-team-row-action-form {
    padding: 8px;
}

.helpdesk-team-table-box.is-triage-view .helpdesk-team-row-action-group {
    flex-wrap: wrap;
}

.helpdesk-team-table-box.is-triage-view .helpdesk-team-row-actions .button {
    white-space: normal;
}

.helpdesk-team-table-box.is-triage-view .helpdesk-team-row-open,
.helpdesk-team-table-box.is-triage-view .helpdesk-team-row-reply {
    min-width: 0;
}

@media (max-width: 900px) {
    .helpdesk-team-table.is-triage-view {
        min-width: 980px;
    }

    .helpdesk-team-table-box.is-triage-view .helpdesk-team-actions-head,
    .helpdesk-team-table-box.is-triage-view .helpdesk-team-actions-cell {
        min-width: 220px;
    }
}

/* 4.9.88 triage fit refinement: make the triage table fit the available width without forcing horizontal overflow */
.helpdesk-team-table-wrap.is-triage-view {
    overflow-x: hidden;
}

.helpdesk-team-table.is-triage-view {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.helpdesk-team-table.is-triage-view thead th,
.helpdesk-team-table.is-triage-view tbody td {
    padding: 6px 6px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.helpdesk-team-table.is-triage-view .helpdesk-team-table-check {
    width: 32px;
}

.helpdesk-team-table.is-triage-view .helpdesk-team-topic-head,
.helpdesk-team-table.is-triage-view .helpdesk-team-topic-cell {
    width: 23%;
    min-width: 0;
}

.helpdesk-team-table.is-triage-view .helpdesk-team-forum-head,
.helpdesk-team-table.is-triage-view .helpdesk-team-forum-cell {
    width: 9%;
    min-width: 0;
}

.helpdesk-team-table.is-triage-view .helpdesk-team-status-head,
.helpdesk-team-table.is-triage-view .helpdesk-team-status-cell,
.helpdesk-team-table.is-triage-view .helpdesk-team-priority-head,
.helpdesk-team-table.is-triage-view .helpdesk-team-priority-cell {
    width: 8%;
    min-width: 0;
}

.helpdesk-team-table.is-triage-view .helpdesk-team-department-head,
.helpdesk-team-table.is-triage-view .helpdesk-team-department-cell,
.helpdesk-team-table.is-triage-view .helpdesk-team-assignee-head,
.helpdesk-team-table.is-triage-view .helpdesk-team-assignee-cell {
    width: 10%;
    min-width: 0;
}

.helpdesk-team-table.is-triage-view .helpdesk-team-alerts-head,
.helpdesk-team-table.is-triage-view .helpdesk-team-alerts-cell {
    width: 12%;
    min-width: 0;
}

.helpdesk-team-table.is-triage-view .helpdesk-team-updated-head,
.helpdesk-team-table.is-triage-view .helpdesk-team-updated-cell {
    width: 8%;
    min-width: 0;
}

.helpdesk-team-table.is-triage-view .helpdesk-team-actions-head,
.helpdesk-team-table.is-triage-view .helpdesk-team-actions-cell {
    width: 12%;
    min-width: 0;
}

.helpdesk-team-table-box.is-triage-view .helpdesk-team-topic-link {
    display: block;
    margin-bottom: 4px;
}

.helpdesk-team-table-box.is-triage-view .helpdesk-team-topic-badges,
.helpdesk-team-table-box.is-triage-view .helpdesk-team-topic-subline,
.helpdesk-team-table-box.is-triage-view .helpdesk-topic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    max-width: 100%;
}

.helpdesk-team-table-box.is-triage-view .helpdesk-team-alerts-cell,
.helpdesk-team-table-box.is-triage-view .helpdesk-team-updated-cell,
.helpdesk-team-table-box.is-triage-view .helpdesk-team-department-cell,
.helpdesk-team-table-box.is-triage-view .helpdesk-team-assignee-cell {
    font-size: 0.92em;
}

.helpdesk-team-table-box.is-triage-view .helpdesk-team-row-actions {
    gap: 6px;
}

.helpdesk-team-table-box.is-triage-view .helpdesk-team-row-action-form {
    padding: 6px;
}

.helpdesk-team-table-box.is-triage-view .helpdesk-team-row-action-group,
.helpdesk-team-table-box.is-triage-view .helpdesk-team-row-action-group-buttons {
    flex-direction: column;
    align-items: stretch;
}

.helpdesk-team-table-box.is-triage-view .helpdesk-team-row-action-group select,
.helpdesk-team-table-box.is-triage-view .helpdesk-team-row-reason,
.helpdesk-team-table-box.is-triage-view .helpdesk-team-row-actions .button,
.helpdesk-team-table-box.is-triage-view .helpdesk-team-row-open,
.helpdesk-team-table-box.is-triage-view .helpdesk-team-row-reply {
    width: 100%;
    min-width: 0;
}

.helpdesk-team-table-box.is-triage-view .helpdesk-team-row-actions .button {
    padding-left: 6px;
    padding-right: 6px;
}

@media (max-width: 1180px) {
    .helpdesk-team-table.is-triage-view {
        font-size: 0.95em;
    }

    .helpdesk-team-table.is-triage-view thead th,
    .helpdesk-team-table.is-triage-view tbody td {
        padding: 5px 5px;
    }
}

/* 4.9.89 triage actions in line: reduce row height by keeping quick actions on a compact horizontal flow */
.helpdesk-team-table.is-triage-view .helpdesk-team-topic-head,
.helpdesk-team-table.is-triage-view .helpdesk-team-topic-cell {
    width: 20%;
}

.helpdesk-team-table.is-triage-view .helpdesk-team-forum-head,
.helpdesk-team-table.is-triage-view .helpdesk-team-forum-cell {
    width: 8%;
}

.helpdesk-team-table.is-triage-view .helpdesk-team-status-head,
.helpdesk-team-table.is-triage-view .helpdesk-team-status-cell,
.helpdesk-team-table.is-triage-view .helpdesk-team-priority-head,
.helpdesk-team-table.is-triage-view .helpdesk-team-priority-cell {
    width: 7%;
}

.helpdesk-team-table.is-triage-view .helpdesk-team-department-head,
.helpdesk-team-table.is-triage-view .helpdesk-team-department-cell,
.helpdesk-team-table.is-triage-view .helpdesk-team-assignee-head,
.helpdesk-team-table.is-triage-view .helpdesk-team-assignee-cell {
    width: 8%;
}

.helpdesk-team-table.is-triage-view .helpdesk-team-alerts-head,
.helpdesk-team-table.is-triage-view .helpdesk-team-alerts-cell {
    width: 10%;
}

.helpdesk-team-table.is-triage-view .helpdesk-team-updated-head,
.helpdesk-team-table.is-triage-view .helpdesk-team-updated-cell {
    width: 6%;
}

.helpdesk-team-table.is-triage-view .helpdesk-team-actions-head,
.helpdesk-team-table.is-triage-view .helpdesk-team-actions-cell {
    width: 18%;
}

.helpdesk-team-table-box.is-triage-view .helpdesk-team-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    align-items: flex-start;
}

.helpdesk-team-table-box.is-triage-view .helpdesk-team-row-action-form {
    display: inline-flex;
    align-items: center;
    padding: 4px 6px;
    min-width: 0;
}

.helpdesk-team-table-box.is-triage-view .helpdesk-team-row-action-stack {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    min-width: 0;
}

.helpdesk-team-table-box.is-triage-view .helpdesk-team-row-action-group,
.helpdesk-team-table-box.is-triage-view .helpdesk-team-row-action-group-buttons {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.helpdesk-team-table-box.is-triage-view .helpdesk-team-row-action-group select {
    width: auto;
    min-width: 0;
    max-width: 92px;
}

.helpdesk-team-table-box.is-triage-view .helpdesk-team-row-reason {
    width: auto;
    min-width: 92px;
    max-width: 145px;
    flex: 1 1 120px;
    min-height: 26px;
    margin: 0;
}

.helpdesk-team-table-box.is-triage-view .helpdesk-team-row-actions .button,
.helpdesk-team-table-box.is-triage-view .helpdesk-team-row-open,
.helpdesk-team-table-box.is-triage-view .helpdesk-team-row-reply {
    width: auto;
    min-width: 0;
    white-space: nowrap;
    padding: 3px 7px;
}

.helpdesk-team-table-box.is-triage-view .helpdesk-team-row-open,
.helpdesk-team-table-box.is-triage-view .helpdesk-team-row-reply {
    align-self: auto;
}

@media (max-width: 1180px) {
    .helpdesk-team-table.is-triage-view .helpdesk-team-actions-head,
    .helpdesk-team-table.is-triage-view .helpdesk-team-actions-cell {
        width: 20%;
    }

    .helpdesk-team-table-box.is-triage-view .helpdesk-team-row-action-form {
        display: flex;
    }

    .helpdesk-team-table-box.is-triage-view .helpdesk-team-row-action-stack,
    .helpdesk-team-table-box.is-triage-view .helpdesk-team-row-action-group,
    .helpdesk-team-table-box.is-triage-view .helpdesk-team-row-action-group-buttons {
        flex-wrap: wrap;
    }
}



/* 4.9.90 triage inline actions under topic title */
.helpdesk-team-table-box.is-triage-view .helpdesk-team-triage-inline-actions {
    display: none;
}

.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-actions-head,
.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-actions-cell {
    display: none;
}

.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-triage-inline-actions {
    display: block;
    margin-top: 8px;
}

.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-topic-head,
.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-topic-cell {
    width: 34%;
}

.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-forum-head,
.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-forum-cell {
    width: 9%;
}

.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-alerts-head,
.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-alerts-cell {
    width: 11%;
}

.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-updated-head,
.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-updated-cell {
    width: 7%;
}

.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-triage-inline-actions .helpdesk-team-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
}

.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-triage-inline-actions .helpdesk-team-row-action-form {
    display: inline-flex;
    align-items: center;
    padding: 4px 6px;
    min-width: 0;
    margin: 0;
}

.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-triage-inline-actions .helpdesk-team-row-action-stack {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    min-width: 0;
}

.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-triage-inline-actions .helpdesk-team-row-action-group,
.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-triage-inline-actions .helpdesk-team-row-action-group-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-triage-inline-actions .helpdesk-team-row-action-group select {
    width: auto;
    min-width: 0;
    max-width: 120px;
}

.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-triage-inline-actions .helpdesk-team-row-reason {
    width: auto;
    min-width: 100px;
    max-width: 180px;
    flex: 1 1 140px;
    min-height: 26px;
    margin: 0;
}

.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-triage-inline-actions .helpdesk-team-row-actions .button,
.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-triage-inline-actions .helpdesk-team-row-open,
.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-triage-inline-actions .helpdesk-team-row-reply {
    width: auto;
    min-width: 0;
    white-space: nowrap;
    padding: 3px 7px;
}

@media (max-width: 1180px) {
    .helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-topic-head,
    .helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-topic-cell {
        width: 36%;
    }

    .helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-triage-inline-actions .helpdesk-team-row-action-form {
        display: flex;
        width: 100%;
    }

    .helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-triage-inline-actions .helpdesk-team-row-action-stack,
    .helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-triage-inline-actions .helpdesk-team-row-action-group,
    .helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-triage-inline-actions .helpdesk-team-row-action-group-buttons {
        flex-wrap: wrap;
    }
}

/* 4.9.91 triage compact actions: keep only short actions visible under the topic title and collapse larger controls under More actions */
.helpdesk-team-row-action-inline-compact {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.helpdesk-team-triage-quick-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.helpdesk-team-triage-quick-bar .helpdesk-team-row-action-group-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.helpdesk-team-triage-quick-bar .helpdesk-team-row-action-inline-compact .button,
.helpdesk-team-triage-quick-bar .helpdesk-team-row-open,
.helpdesk-team-triage-quick-bar .helpdesk-team-row-reply,
.helpdesk-team-triage-more-actions > summary {
    min-height: 30px;
    padding: 4px 9px;
    line-height: 1.25;
}

.helpdesk-team-triage-more-actions {
    display: inline-block;
    margin: 0;
}

.helpdesk-team-triage-more-actions > summary {
    list-style: none;
    cursor: pointer;
}

.helpdesk-team-triage-more-actions > summary::-webkit-details-marker {
    display: none;
}

.helpdesk-team-triage-more-actions[open] > summary {
    margin-bottom: 8px;
}

.helpdesk-team-triage-more-panel {
    display: grid;
    gap: 8px;
    width: min(100%, 460px);
    padding: 10px;
    border: 1px solid rgba(127, 127, 127, 0.22);
    border-radius: 10px;
    background: rgba(127, 127, 127, 0.06);
    box-sizing: border-box;
}

.helpdesk-team-triage-more-panel .helpdesk-team-row-action-form {
    margin: 0;
}

.helpdesk-team-triage-more-panel .helpdesk-team-row-action-stack {
    gap: 6px;
}

.helpdesk-team-triage-more-panel .helpdesk-team-row-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.helpdesk-team-triage-more-panel .helpdesk-team-row-action-group select {
    min-width: 150px;
    flex: 1 1 180px;
}

.helpdesk-team-triage-more-panel .helpdesk-team-row-reason {
    width: 100%;
    max-width: 100%;
}

.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-triage-inline-actions .helpdesk-team-row-actions {
    display: block;
}

.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-triage-inline-actions .helpdesk-team-row-action-form:not(.helpdesk-team-row-action-inline-compact):not(.helpdesk-team-row-action-form-advanced) {
    margin-top: 8px;
}

html[data-theme="dark"] .helpdesk-team-triage-more-panel,
body[data-theme="dark"] .helpdesk-team-triage-more-panel,
.dark-theme .helpdesk-team-triage-more-panel,
body.dark .helpdesk-team-triage-more-panel,
body.phpbb-dark .helpdesk-team-triage-more-panel {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {
    .helpdesk-team-triage-quick-bar {
        gap: 5px;
    }

    .helpdesk-team-triage-more-panel {
        width: 100%;
    }
}


/* 4.9.92 triage compact metadata under topic title */
.helpdesk-team-triage-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 6px;
    font-size: 0.84em;
    line-height: 1.35;
    color: #5b6472;
}

.helpdesk-team-triage-meta-item {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.045);
    max-width: 100%;
}

.helpdesk-team-triage-meta-item strong {
    white-space: nowrap;
}

.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-forum-head,
.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-forum-cell,
.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-department-head,
.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-department-cell,
.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-assignee-head,
.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-assignee-cell,
.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-updated-head,
.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-updated-cell {
    display: none;
}

.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-topic-head,
.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-topic-cell {
    width: 58%;
}

.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-status-head,
.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-status-cell {
    width: 9%;
}

.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-priority-head,
.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-priority-cell {
    width: 8%;
}

.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-alerts-head,
.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-alerts-cell {
    width: 15%;
}

html[data-theme="dark"] .helpdesk-team-triage-meta,
body[data-theme="dark"] .helpdesk-team-triage-meta,
.dark-theme .helpdesk-team-triage-meta,
body.dark .helpdesk-team-triage-meta,
body.phpbb-dark .helpdesk-team-triage-meta {
    color: #b6becb;
}

html[data-theme="dark"] .helpdesk-team-triage-meta-item,
body[data-theme="dark"] .helpdesk-team-triage-meta-item,
.dark-theme .helpdesk-team-triage-meta-item,
body.dark .helpdesk-team-triage-meta-item,
body.phpbb-dark .helpdesk-team-triage-meta-item {
    background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 1180px) {
    .helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-topic-head,
    .helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-topic-cell {
        width: 56%;
    }

    .helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-alerts-head,
    .helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-alerts-cell {
        width: 17%;
    }
}

@media (max-width: 900px) {
    .helpdesk-team-triage-meta {
        gap: 4px 6px;
        font-size: 0.8em;
    }

    .helpdesk-team-triage-meta-item {
        width: 100%;
        border-radius: 8px;
    }
}

/* 4.9.93 triage alert compaction + team panel wide visual pass */
.helpdesk-team-alerts-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    line-height: 1.4;
    word-break: break-word;
}

.helpdesk-team-triage-alerts {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px;
}

.helpdesk-team-triage-alerts-label {
    flex: 0 0 auto;
}

.helpdesk-team-triage-alerts-text {
    flex: 1 1 260px;
    min-width: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(176, 98, 0, 0.08);
    color: #805400;
}

.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-alerts-head,
.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-alerts-cell {
    display: none;
}

.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-topic-head,
.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-topic-cell {
    width: 70%;
}

.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-status-head,
.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-status-cell {
    width: 11%;
}

.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-priority-head,
.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-priority-cell {
    width: 10%;
}

.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-triage-meta-item,
.helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-triage-alerts-text {
    max-width: 100%;
    overflow: hidden;
}

.helpdesk-queue-focus-strip,
.helpdesk-queue-presets-grid,
.helpdesk-overview-health-grid {
    align-items: stretch;
}

.helpdesk-queue-focus-card,
.helpdesk-queue-preset-card,
.helpdesk-overview-health-card {
    height: 100%;
    box-sizing: border-box;
}

.helpdesk-queue-focus-card strong,
.helpdesk-queue-preset-card strong,
.helpdesk-overview-health-card strong {
    line-height: 1.3;
}

.helpdesk-queue-preset-meta,
.helpdesk-overview-health-card .helpdesk-report-meta,
.helpdesk-overview-health-summary,
.helpdesk-team-card span,
.helpdesk-team-card-mini span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.helpdesk-report-summary {
    gap: 12px;
    padding: 11px 12px;
}

.helpdesk-report-summary > span:first-child {
    min-width: 0;
}

.helpdesk-report-summary-hint {
    white-space: nowrap;
}

.helpdesk-team-saved-views-tools,
.helpdesk-filter-actions,
.helpdesk-quick-actions,
.helpdesk-team-layout-tools-actions,
.helpdesk-team-section-jump-actions {
    align-items: center;
    row-gap: 8px;
}

.helpdesk-team-saved-views-tools .button,
.helpdesk-filter-actions .button,
.helpdesk-quick-actions .button,
.helpdesk-team-layout-tools-actions .button,
.helpdesk-team-section-jump-actions .button {
    min-height: 32px;
}

.helpdesk-overview-health-head,
.helpdesk-queue-focus-strip-head,
.helpdesk-queue-presets-head {
    gap: 10px 14px;
}

.helpdesk-overview-health-box,
.helpdesk-queue-focus-strip-box,
.helpdesk-queue-presets-box,
.helpdesk-team-saved-views,
.helpdesk-report-panel {
    border-radius: 12px;
}

html[data-theme="dark"] .helpdesk-team-triage-alerts-text,
body[data-theme="dark"] .helpdesk-team-triage-alerts-text,
.dark-theme .helpdesk-team-triage-alerts-text,
body.dark .helpdesk-team-triage-alerts-text,
body.phpbb-dark .helpdesk-team-triage-alerts-text {
    background: rgba(245, 158, 11, 0.16);
    color: #f7d38a;
}

@media (max-width: 1180px) {
    .helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-topic-head,
    .helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-topic-cell {
        width: 68%;
    }

    .helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-status-head,
    .helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-status-cell,
    .helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-priority-head,
    .helpdesk-team-table-wrap.is-triage-view.has-inline-triage-actions .helpdesk-team-priority-cell {
        width: 11%;
    }
}

@media (max-width: 900px) {
    .helpdesk-team-triage-alerts {
        flex-direction: column;
        align-items: stretch;
    }

    .helpdesk-team-triage-alerts-text {
        border-radius: 10px;
    }

    .helpdesk-queue-focus-strip,
    .helpdesk-queue-presets-grid,
    .helpdesk-overview-health-grid {
        grid-template-columns: 1fr;
    }

    .helpdesk-report-summary {
        align-items: flex-start;
    }

    .helpdesk-report-summary-hint {
        white-space: normal;
    }
}

/* 4.9.96 inline topic layout for queue/personal/balance: move row actions below the topic title to prevent horizontal overflow */
.helpdesk-team-inline-actions-target {
    min-width: 0;
}

.helpdesk-team-table-wrap.is-inline-topic-view {
    overflow-x: hidden;
}

.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-actions-head,
.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-actions-cell {
    display: none;
}

.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-table.is-inline-topic-view {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-table.is-inline-topic-view thead th,
.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-table.is-inline-topic-view tbody td {
    padding: 6px 6px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-topic-head,
.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-topic-cell {
    width: 34%;
    min-width: 0;
}

.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-forum-head,
.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-forum-cell {
    width: 13%;
    min-width: 0;
}

.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-status-head,
.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-status-cell,
.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-priority-head,
.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-priority-cell {
    width: 8%;
    min-width: 0;
}

.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-department-head,
.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-department-cell,
.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-assignee-head,
.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-assignee-cell {
    width: 11%;
    min-width: 0;
}

.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-alerts-head,
.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-alerts-cell {
    width: 10%;
    min-width: 0;
}

.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-updated-head,
.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-updated-cell {
    width: 5%;
    min-width: 0;
}

.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-topic-link {
    display: block;
}

.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-topic-subline,
.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-topic-badges,
.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-topic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    max-width: 100%;
}

.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-inline-actions-target {
    margin-top: 8px;
}

.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-inline-actions-target .helpdesk-team-row-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}

.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-inline-actions-target .helpdesk-team-row-action-form,
.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-inline-actions-target .helpdesk-team-row-open,
.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-inline-actions-target .helpdesk-team-row-reply {
    min-width: 0;
}

.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-inline-actions-target .helpdesk-team-row-action-form {
    padding: 8px;
}

.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-inline-actions-target .helpdesk-team-row-action-stack {
    gap: 6px;
}

.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-inline-actions-target .helpdesk-team-row-action-group {
    gap: 6px;
}

.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-inline-actions-target .helpdesk-team-row-open,
.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-inline-actions-target .helpdesk-team-row-reply,
.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-inline-actions-target .helpdesk-team-row-actions .button {
    white-space: normal;
    text-align: center;
}

.helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-alerts-text {
    -webkit-line-clamp: 2;
}

@media (max-width: 1180px) {
    .helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-table.is-inline-topic-view {
        font-size: 0.95em;
    }

    .helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-topic-head,
    .helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-topic-cell {
        width: 32%;
    }

    .helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-forum-head,
    .helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-forum-cell,
    .helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-department-head,
    .helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-department-cell,
    .helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-assignee-head,
    .helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-assignee-cell,
    .helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-alerts-head,
    .helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-alerts-cell {
        width: 12%;
    }

    .helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-updated-head,
    .helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-updated-cell {
        width: 7%;
    }
}

@media (max-width: 980px) {
    .helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-table.is-inline-topic-view {
        font-size: 0.92em;
    }

    .helpdesk-team-table-wrap.is-inline-topic-view.has-inline-row-actions .helpdesk-team-inline-actions-target .helpdesk-team-row-actions {
        grid-template-columns: 1fr;
    }
}

/* 4.9.97 queue compact topic layout: make Queue use the same topic treatment as Triage */
.helpdesk-team-table-box.is-topic-compact-view .helpdesk-team-topic-compact-inline-actions {
    display: none;
}

.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions {
    overflow-x: hidden;
}

.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-actions-head,
.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-actions-cell,
.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-forum-head,
.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-forum-cell,
.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-department-head,
.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-department-cell,
.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-assignee-head,
.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-assignee-cell,
.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-updated-head,
.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-updated-cell,
.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-alerts-head,
.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-alerts-cell {
    display: none;
}

.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-topic-compact-inline-actions {
    display: block;
    margin-top: 8px;
}

.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-table.is-topic-compact-view {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-table.is-topic-compact-view thead th,
.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-table.is-topic-compact-view tbody td {
    padding: 6px 6px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-topic-head,
.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-topic-cell {
    width: 70%;
}

.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-status-head,
.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-status-cell {
    width: 11%;
}

.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-priority-head,
.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-priority-cell {
    width: 10%;
}

.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-topic-link {
    display: block;
}

.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-topic-subline,
.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-topic-badges,
.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-topic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    max-width: 100%;
}

.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-triage-meta-item,
.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-triage-alerts-text {
    max-width: 100%;
    overflow: hidden;
}

.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-topic-compact-inline-actions .helpdesk-team-row-actions {
    display: block;
}

.helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-topic-compact-inline-actions .helpdesk-team-row-action-form:not(.helpdesk-team-row-action-inline-compact):not(.helpdesk-team-row-action-form-advanced) {
    margin-top: 8px;
}

@media (max-width: 1180px) {
    .helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-topic-head,
    .helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-topic-cell {
        width: 68%;
    }

    .helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-status-head,
    .helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-status-cell,
    .helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-priority-head,
    .helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-priority-cell {
        width: 11%;
    }
}

@media (max-width: 900px) {
    .helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-topic-head,
    .helpdesk-team-table-wrap.is-topic-compact-view.has-inline-compact-actions .helpdesk-team-topic-cell {
        width: 66%;
    }
}

/* 4.9.100 clearer operational timeline on topic view */
.helpdesk-history-box-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.helpdesk-history-box-note {
    margin-top: 6px;
}

.helpdesk-history-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 12px 0 14px;
}

.helpdesk-history-summary-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.helpdesk-history-summary-card.is-count {
    background: #f1f7fc;
    border-color: #d7e6f3;
}

.helpdesk-history-summary-label {
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #697887;
}

.helpdesk-history-summary-value {
    font-size: 1.05em;
    line-height: 1.3;
    color: #25364a;
    overflow-wrap: anywhere;
}

.helpdesk-history-summary-meta {
    font-size: 0.9em;
    color: #697887;
    overflow-wrap: anywhere;
}

.helpdesk-history-list {
    position: relative;
}

.helpdesk-history-item {
    position: relative;
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    margin: 0;
    border-top: 1px dotted rgba(0, 0, 0, 0.08);
}

.helpdesk-history-item:first-child {
    padding-top: 2px;
}

.helpdesk-history-item::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(0, 0, 0, 0.08);
}

.helpdesk-history-item:first-child::before {
    top: 10px;
}

.helpdesk-history-item:last-child::before {
    bottom: calc(100% - 18px);
}

.helpdesk-history-marker {
    position: relative;
    z-index: 1;
    width: 14px;
    height: 14px;
    margin-top: 4px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #c9d5e0;
    box-sizing: border-box;
}

.helpdesk-history-item.helpdesk-history-type-status .helpdesk-history-marker {
    border-color: #5d9fd0;
}

.helpdesk-history-item.helpdesk-history-type-assignment .helpdesk-history-marker {
    border-color: #7892ca;
}

.helpdesk-history-item.helpdesk-history-type-department .helpdesk-history-marker {
    border-color: #9aa8b6;
}

.helpdesk-history-item.helpdesk-history-type-priority .helpdesk-history-marker {
    border-color: #d49750;
}

.helpdesk-history-item.helpdesk-history-type-note .helpdesk-history-marker {
    border-color: #6eb089;
}

.helpdesk-history-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.helpdesk-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.helpdesk-history-head-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.helpdesk-history-sequence {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef3f8;
    color: #5d6d7e;
    font-size: 0.82em;
    font-weight: 700;
}

.helpdesk-history-main {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
    min-width: 0;
}

.helpdesk-history-actor {
    font-weight: 700;
    color: #25364a;
}

.helpdesk-history-status {
    font-weight: 600;
    color: #425466;
}

.helpdesk-history-meta {
    font-size: 0.9em;
    opacity: 0.8;
    white-space: nowrap;
}

.helpdesk-history-change-pair {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.helpdesk-history-change {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.92em;
    font-weight: 700;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f5f7fa;
    color: #425466;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.helpdesk-history-change.from {
    background: #fafbfc;
    color: #697887;
    border-color: #e2e7ed;
}

.helpdesk-history-change.to {
    background: #edf6fd;
    color: #1d628d;
    border-color: #c9e0f1;
}

.helpdesk-history-change-arrow {
    font-weight: 700;
    opacity: 0.55;
}

.helpdesk-history-reason {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.helpdesk-history-reason-label {
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #697887;
}

.helpdesk-history-reason-text {
    line-height: 1.45;
    color: #425466;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: normal;
}

.helpdesk-history-reason.helpdesk-history-detail-note {
    background: #f2faf5;
    border-color: #d4eadc;
}

@media (max-width: 700px) {
    .helpdesk-history-summary-grid {
        grid-template-columns: 1fr;
    }

    .helpdesk-history-item {
        grid-template-columns: 12px minmax(0, 1fr);
        gap: 10px;
    }

    .helpdesk-history-head {
        align-items: flex-start;
    }

    .helpdesk-history-meta {
        white-space: normal;
    }
}

html[data-theme="dark"] .helpdesk-history-summary-card,
body[data-theme="dark"] .helpdesk-history-summary-card,
.dark-theme .helpdesk-history-summary-card,
body.dark .helpdesk-history-summary-card,
body.phpbb-dark .helpdesk-history-summary-card {
    background: #161d26;
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .helpdesk-history-summary-card.is-count,
body[data-theme="dark"] .helpdesk-history-summary-card.is-count,
.dark-theme .helpdesk-history-summary-card.is-count,
body.dark .helpdesk-history-summary-card.is-count,
body.phpbb-dark .helpdesk-history-summary-card.is-count {
    background: #152536;
    border-color: #31597d;
}

html[data-theme="dark"] .helpdesk-history-summary-label,
body[data-theme="dark"] .helpdesk-history-summary-label,
.dark-theme .helpdesk-history-summary-label,
body.dark .helpdesk-history-summary-label,
body.phpbb-dark .helpdesk-history-summary-label,
html[data-theme="dark"] .helpdesk-history-summary-meta,
body[data-theme="dark"] .helpdesk-history-summary-meta,
.dark-theme .helpdesk-history-summary-meta,
body.dark .helpdesk-history-summary-meta,
body.phpbb-dark .helpdesk-history-summary-meta {
    color: #98a9b9;
}

html[data-theme="dark"] .helpdesk-history-summary-value,
body[data-theme="dark"] .helpdesk-history-summary-value,
.dark-theme .helpdesk-history-summary-value,
body.dark .helpdesk-history-summary-value,
body.phpbb-dark .helpdesk-history-summary-value,
html[data-theme="dark"] .helpdesk-history-sequence,
body[data-theme="dark"] .helpdesk-history-sequence,
.dark-theme .helpdesk-history-sequence,
body.dark .helpdesk-history-sequence,
body.phpbb-dark .helpdesk-history-sequence {
    color: #edf2f7;
}

html[data-theme="dark"] .helpdesk-history-sequence,
body[data-theme="dark"] .helpdesk-history-sequence,
.dark-theme .helpdesk-history-sequence,
body.dark .helpdesk-history-sequence,
body.phpbb-dark .helpdesk-history-sequence {
    background: #1b2430;
}

html[data-theme="dark"] .helpdesk-history-item,
body[data-theme="dark"] .helpdesk-history-item,
.dark-theme .helpdesk-history-item,
body.dark .helpdesk-history-item,
body.phpbb-dark .helpdesk-history-item {
    border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .helpdesk-history-item::before,
body[data-theme="dark"] .helpdesk-history-item::before,
.dark-theme .helpdesk-history-item::before,
body.dark .helpdesk-history-item::before,
body.phpbb-dark .helpdesk-history-item::before {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .helpdesk-history-marker,
body[data-theme="dark"] .helpdesk-history-marker,
.dark-theme .helpdesk-history-marker,
body.dark .helpdesk-history-marker,
body.phpbb-dark .helpdesk-history-marker {
    background: #141a21;
}

html[data-theme="dark"] .helpdesk-history-actor,
body[data-theme="dark"] .helpdesk-history-actor,
.dark-theme .helpdesk-history-actor,
body.dark .helpdesk-history-actor,
body.phpbb-dark .helpdesk-history-actor {
    color: #edf2f7;
}

html[data-theme="dark"] .helpdesk-history-status,
body[data-theme="dark"] .helpdesk-history-status,
.dark-theme .helpdesk-history-status,
body.dark .helpdesk-history-status,
body.phpbb-dark .helpdesk-history-status {
    color: #d7e0e8;
}

html[data-theme="dark"] .helpdesk-history-change,
body[data-theme="dark"] .helpdesk-history-change,
.dark-theme .helpdesk-history-change,
body.dark .helpdesk-history-change,
body.phpbb-dark .helpdesk-history-change {
    background: #1b2430;
    color: #dbe6f0;
    border-color: #3a4a5c;
}

html[data-theme="dark"] .helpdesk-history-change.from,
body[data-theme="dark"] .helpdesk-history-change.from,
.dark-theme .helpdesk-history-change.from,
body.dark .helpdesk-history-change.from,
body.phpbb-dark .helpdesk-history-change.from {
    background: #1a2028;
    color: #bac7d3;
    border-color: #334153;
}

html[data-theme="dark"] .helpdesk-history-change.to,
body[data-theme="dark"] .helpdesk-history-change.to,
.dark-theme .helpdesk-history-change.to,
body.dark .helpdesk-history-change.to,
body.phpbb-dark .helpdesk-history-change.to {
    background: #152536;
    color: #9fd3ff;
    border-color: #31597d;
}

html[data-theme="dark"] .helpdesk-history-reason,
body[data-theme="dark"] .helpdesk-history-reason,
.dark-theme .helpdesk-history-reason,
body.dark .helpdesk-history-reason,
body.phpbb-dark .helpdesk-history-reason {
    background: #161d26;
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .helpdesk-history-reason.helpdesk-history-detail-note,
body[data-theme="dark"] .helpdesk-history-reason.helpdesk-history-detail-note,
.dark-theme .helpdesk-history-reason.helpdesk-history-detail-note,
body.dark .helpdesk-history-reason.helpdesk-history-detail-note,
body.phpbb-dark .helpdesk-history-reason.helpdesk-history-detail-note {
    background: #173025;
    border-color: #2d5b47;
}

html[data-theme="dark"] .helpdesk-history-reason-label,
body[data-theme="dark"] .helpdesk-history-reason-label,
.dark-theme .helpdesk-history-reason-label,
body.dark .helpdesk-history-reason-label,
body.phpbb-dark .helpdesk-history-reason-label {
    color: #98a9b9;
}

html[data-theme="dark"] .helpdesk-history-reason-text,
body[data-theme="dark"] .helpdesk-history-reason-text,
.dark-theme .helpdesk-history-reason-text,
body.dark .helpdesk-history-reason-text,
body.phpbb-dark .helpdesk-history-reason-text {
    color: #e2e8ef;
}


.helpdesk-reply-templates-box {
    margin: 14px 0 18px;
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.02);
}

.helpdesk-reply-templates-box h4 {
    margin: 0 0 10px;
}

.helpdesk-reply-templates-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 10px;
}

.helpdesk-reply-templates-search-field {
    margin: 0;
}

.helpdesk-reply-templates-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    font-size: 0.85em;
    font-weight: 700;
}

.helpdesk-reply-templates-field .inputbox {
    width: 100%;
}

.helpdesk-reply-templates-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.helpdesk-reply-templates-field label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.helpdesk-reply-templates-field select {
    width: 100%;
}

.helpdesk-reply-templates-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.helpdesk-reply-templates-feedback {
    min-height: 18px;
    margin-top: 8px;
    font-size: 0.9em;
    color: #2c5f2d;
}

.helpdesk-reply-templates-preview {
    margin-top: 8px;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px dashed rgba(0, 0, 0, 0.12);
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: normal;
    font-size: 0.92em;
    line-height: 1.55;
}

@media (max-width: 700px) {
    .helpdesk-reply-templates-toolbar,
    .helpdesk-reply-templates-grid {
        grid-template-columns: 1fr;
    }
}

html[data-theme="dark"] .helpdesk-reply-templates-box,
body[data-theme="dark"] .helpdesk-reply-templates-box,
.dark-theme .helpdesk-reply-templates-box,
body.dark .helpdesk-reply-templates-box,
body.phpbb-dark .helpdesk-reply-templates-box {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .helpdesk-reply-templates-count,
body[data-theme="dark"] .helpdesk-reply-templates-count,
.dark-theme .helpdesk-reply-templates-count,
body.dark .helpdesk-reply-templates-count,
body.phpbb-dark .helpdesk-reply-templates-count {
    background: rgba(255, 255, 255, 0.08);
    color: #e8edf3;
}

html[data-theme="dark"] .helpdesk-reply-templates-preview,
body[data-theme="dark"] .helpdesk-reply-templates-preview,
.dark-theme .helpdesk-reply-templates-preview,
body.dark .helpdesk-reply-templates-preview,
body.phpbb-dark .helpdesk-reply-templates-preview {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .helpdesk-reply-templates-feedback,
body[data-theme="dark"] .helpdesk-reply-templates-feedback,
.dark-theme .helpdesk-reply-templates-feedback,
body.dark .helpdesk-reply-templates-feedback,
body.phpbb-dark .helpdesk-reply-templates-feedback {
    color: #9fd49f;
}

html[data-theme="dark"] .helpdesk-internal-note-item,
body[data-theme="dark"] .helpdesk-internal-note-item,
.dark-theme .helpdesk-internal-note-item,
body.dark .helpdesk-internal-note-item,
body.phpbb-dark .helpdesk-internal-note-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .helpdesk-internal-note-head,
body[data-theme="dark"] .helpdesk-internal-note-head,
.dark-theme .helpdesk-internal-note-head,
body.dark .helpdesk-internal-note-head,
body.phpbb-dark .helpdesk-internal-note-head {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}


.helpdesk-report-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 10px 0 14px;
}

.helpdesk-report-actions-note {
    margin: 0;
}

.helpdesk-report-actions-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}


/* 4.9.106 reports layout pass: keep long forum/department names horizontal in reports */
.helpdesk-team-report-box .helpdesk-report-list li {
    align-items: flex-start;
}

.helpdesk-team-report-box .helpdesk-report-link {
    align-items: flex-start;
}

.helpdesk-team-report-box .helpdesk-report-main {
    flex: 1 1 260px;
    min-width: 220px;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

.helpdesk-team-report-box .helpdesk-report-meta {
    flex: 0 1 58%;
    min-width: 240px;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.helpdesk-team-report-box [data-helpdesk-collapse="reports-forum-backlog"] .helpdesk-report-list li,
.helpdesk-team-report-box [data-helpdesk-collapse="reports-forum-department-hotspots"] .helpdesk-report-list li {
    flex-wrap: wrap;
}

.helpdesk-team-report-box [data-helpdesk-collapse="reports-forum-backlog"] .helpdesk-report-link,
.helpdesk-team-report-box [data-helpdesk-collapse="reports-forum-department-hotspots"] .helpdesk-report-link {
    flex-wrap: wrap;
}

.helpdesk-team-report-box [data-helpdesk-collapse="reports-forum-backlog"] .helpdesk-report-main,
.helpdesk-team-report-box [data-helpdesk-collapse="reports-forum-department-hotspots"] .helpdesk-report-main {
    flex: 1 1 280px;
    min-width: 260px;
}

.helpdesk-team-report-box [data-helpdesk-collapse="reports-forum-backlog"] .helpdesk-report-meta,
.helpdesk-team-report-box [data-helpdesk-collapse="reports-forum-department-hotspots"] .helpdesk-report-meta {
    flex: 1 1 100%;
    min-width: 0;
    text-align: left;
}

@media (max-width: 900px) {
    .helpdesk-team-report-box .helpdesk-report-link {
        flex-wrap: wrap;
    }

    .helpdesk-team-report-box .helpdesk-report-main,
    .helpdesk-team-report-box .helpdesk-report-meta {
        flex: 1 1 100%;
        min-width: 0;
        text-align: left;
    }
}


.helpdesk-empty-state {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px 18px;
    margin-top: 10px;
    padding: 16px 18px;
    border: 1px dashed rgba(0, 0, 0, 0.14);
    border-radius: 12px;
    background: #fafbfd;
}

.helpdesk-empty-state-copy {
    flex: 1 1 320px;
    min-width: 0;
}

.helpdesk-empty-state-copy h4 {
    margin: 0 0 8px;
    font-size: 1.05em;
}

.helpdesk-empty-state-pills {
    margin-top: 8px;
}

.helpdesk-empty-state-actions {
    display: flex;
    flex: 0 1 420px;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    justify-content: flex-end;
}

.helpdesk-empty-state-actions .button {
    margin: 0;
}

.helpdesk-empty-state-report,
.helpdesk-empty-state-alerts,
.helpdesk-empty-state-history {
    margin-top: 12px;
}

@media (max-width: 700px) {
    .helpdesk-empty-state {
        display: block;
    }

    .helpdesk-empty-state-actions {
        margin-top: 10px;
        justify-content: flex-start;
    }
}


.helpdesk-team-page-search-box {
    margin-bottom: 16px;
}

.helpdesk-team-page-search-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.helpdesk-team-page-search-summary {
    margin: 4px 0 0;
}

.helpdesk-team-page-search-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.helpdesk-team-page-search-controls label {
    font-weight: 600;
}

.helpdesk-team-page-search-input {
    min-width: 280px;
    flex: 1 1 320px;
}

.helpdesk-team-page-search-count {
    white-space: nowrap;
}

.helpdesk-team-page-search-empty {
    margin-top: 10px;
}

@media (max-width: 700px) {
    .helpdesk-team-page-search-controls {
        align-items: stretch;
    }

    .helpdesk-team-page-search-input {
        min-width: 100%;
        flex-basis: 100%;
    }
}


/* 4.9.110 quick-search i18n + softer history badges */
.helpdesk-team-history-list .helpdesk-history-type {
    align-self: start;
    min-height: 16px;
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 9px;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.helpdesk-team-history-list li {
    align-items: start;
    gap: 8px;
}


.helpdesk-internal-notes-box {
    clear: both;
    margin: 16px 0;
    padding: 16px 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.018), rgba(0, 0, 0, 0.01));
}

.helpdesk-internal-notes-form {
    margin: 14px 0 16px;
}

.helpdesk-internal-notes-form-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.helpdesk-internal-notes-form textarea {
    min-height: 110px;
    width: 100%;
    max-width: 100%;
    resize: vertical;
    box-sizing: border-box;
}

.helpdesk-internal-notes-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.helpdesk-internal-note-item {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.helpdesk-internal-note-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
}

.helpdesk-internal-note-author {
    font-weight: 700;
}

.helpdesk-internal-note-time {
    font-size: 0.9em;
    opacity: 0.78;
}

.helpdesk-internal-note-body {
    display: block;
    clear: both;
    width: 100%;
    min-width: 0;
    max-width: none;
    overflow: visible;
}

.helpdesk-internal-note-text {
    display: block;
    width: 100%;
    min-width: 0;
    white-space: pre-wrap;
    line-height: 1.65;
    overflow-wrap: break-word;
    word-break: normal;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    direction: ltr;
}

/* 4.9.110 timeline filters on topic view */
.helpdesk-history-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 14px 0 16px;
}

.helpdesk-history-filters-label {
    font-weight: 600;
    color: #4a5568;
}

.helpdesk-history-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.helpdesk-history-filter-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: #ffffff;
    border-radius: 999px;
    padding: 7px 12px;
    cursor: pointer;
    font-size: 0.92rem;
    line-height: 1.2;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.helpdesk-history-filter-button:hover,
.helpdesk-history-filter-button:focus {
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    outline: none;
}

.helpdesk-history-filter-button.is-active {
    background: #eff6ff;
    border-color: rgba(59, 130, 246, 0.55);
    color: #1d4ed8;
}

.helpdesk-history-filter-name {
    font-weight: 600;
}

.helpdesk-history-filter-count {
    min-width: 1.6em;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
}

.helpdesk-history-filter-button.is-active .helpdesk-history-filter-count {
    background: rgba(59, 130, 246, 0.14);
}

.helpdesk-history-empty-filter {
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.92);
    color: #475569;
}

html[data-theme="dark"] .helpdesk-history-filters-label,
body[data-theme="dark"] .helpdesk-history-filters-label,
.dark-theme .helpdesk-history-filters-label,
body.dark .helpdesk-history-filters-label,
body.phpbb-dark .helpdesk-history-filters-label {
    color: #cbd5e1;
}

html[data-theme="dark"] .helpdesk-history-filter-button,
body[data-theme="dark"] .helpdesk-history-filter-button,
.dark-theme .helpdesk-history-filter-button,
body.dark .helpdesk-history-filter-button,
body.phpbb-dark .helpdesk-history-filter-button {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(148, 163, 184, 0.3);
    color: #e2e8f0;
}

html[data-theme="dark"] .helpdesk-history-filter-button.is-active,
body[data-theme="dark"] .helpdesk-history-filter-button.is-active,
.dark-theme .helpdesk-history-filter-button.is-active,
body.dark .helpdesk-history-filter-button.is-active,
body.phpbb-dark .helpdesk-history-filter-button.is-active {
    background: rgba(30, 64, 175, 0.22);
    border-color: rgba(96, 165, 250, 0.48);
    color: #bfdbfe;
}

html[data-theme="dark"] .helpdesk-history-filter-count,
body[data-theme="dark"] .helpdesk-history-filter-count,
.dark-theme .helpdesk-history-filter-count,
body.dark .helpdesk-history-filter-count,
body.phpbb-dark .helpdesk-history-filter-count {
    background: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .helpdesk-history-empty-filter,
body[data-theme="dark"] .helpdesk-history-empty-filter,
.dark-theme .helpdesk-history-empty-filter,
body.dark .helpdesk-history-empty-filter,
body.phpbb-dark .helpdesk-history-empty-filter {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(148, 163, 184, 0.24);
    color: #cbd5e1;
}


/* 4.9.112 notes cleanup + timeline search */
.helpdesk-internal-notes-timeline-hint {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 0.92em;
    opacity: 0.82;
}

.helpdesk-history-type {
    min-height: 17px;
    padding: 1px 6px;
    font-size: 9px;
    line-height: 1;
    letter-spacing: 0.01em;
}

.helpdesk-history-sequence {
    min-height: 18px;
    padding: 1px 6px;
    font-size: 0.76em;
}

.helpdesk-history-filter-button {
    gap: 6px;
    padding: 5px 10px;
    font-size: 0.84rem;
}

.helpdesk-history-filter-count {
    min-width: 1.45em;
    padding: 1px 6px;
    font-size: 0.74rem;
}

.helpdesk-history-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
}

.helpdesk-history-search-label {
    font-weight: 600;
    color: #4a5568;
}

.helpdesk-history-search-input {
    flex: 1 1 260px;
    min-width: 220px;
    max-width: 460px;
}

html[data-theme="dark"] .helpdesk-history-search-label,
body[data-theme="dark"] .helpdesk-history-search-label,
.dark-theme .helpdesk-history-search-label,
body.dark .helpdesk-history-search-label,
body.phpbb-dark .helpdesk-history-search-label {
    color: #cbd5e1;
}


.helpdesk-team-display-preferences {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(127, 127, 127, 0.18);
}

.helpdesk-team-display-preferences-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.helpdesk-team-display-preferences-head h4 {
    margin: 0 0 4px;
}

.helpdesk-team-display-mode-bar {
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid rgba(127, 127, 127, 0.16);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(246, 249, 252, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.helpdesk-team-display-mode-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    margin-bottom: 10px;
}

.helpdesk-team-display-mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.helpdesk-team-display-mode-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-height: 78px;
    padding: 12px 14px;
    border: 1px solid rgba(17, 24, 39, 0.10);
    border-radius: 10px;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.helpdesk-team-display-mode-card:hover,
.helpdesk-team-display-mode-card:focus {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08);
}

.helpdesk-team-display-mode-card strong {
    font-size: 0.98em;
}

.helpdesk-team-display-mode-card span {
    color: #5b6472;
    line-height: 1.4;
}

.helpdesk-team-display-mode-card.is-active {
    border-color: rgba(37, 99, 235, 0.38);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18), 0 8px 18px rgba(37, 99, 235, 0.10);
}

.helpdesk-team-display-mode-current {
    margin-top: 10px;
}

.helpdesk-team-display-preferences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px 14px;
}

.helpdesk-team-display-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(127, 127, 127, 0.06);
}

.helpdesk-team-display-toggle input[type="checkbox"] {
    margin: 0;
}

.helpdesk-team-display-preferences-note,
.helpdesk-team-display-preferences-feedback {
    margin-top: 10px;
}

html[data-theme="dark"] .helpdesk-team-display-mode-bar,
body[data-theme="dark"] .helpdesk-team-display-mode-bar,
.dark-theme .helpdesk-team-display-mode-bar,
body.dark .helpdesk-team-display-mode-bar,
body.phpbb-dark .helpdesk-team-display-mode-bar {
    background: #1f252d;
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .helpdesk-team-display-mode-card,
body[data-theme="dark"] .helpdesk-team-display-mode-card,
.dark-theme .helpdesk-team-display-mode-card,
body.dark .helpdesk-team-display-mode-card,
body.phpbb-dark .helpdesk-team-display-mode-card {
    background: #262d39;
    border-color: rgba(255, 255, 255, 0.08);
    color: #edf2f7;
}

html[data-theme="dark"] .helpdesk-team-display-mode-card span,
body[data-theme="dark"] .helpdesk-team-display-mode-card span,
.dark-theme .helpdesk-team-display-mode-card span,
body.dark .helpdesk-team-display-mode-card span,
body.phpbb-dark .helpdesk-team-display-mode-card span {
    color: #b8c0cc;
}

html[data-theme="dark"] .helpdesk-team-display-mode-card.is-active,
body[data-theme="dark"] .helpdesk-team-display-mode-card.is-active,
.dark-theme .helpdesk-team-display-mode-card.is-active,
body.dark .helpdesk-team-display-mode-card.is-active,
body.phpbb-dark .helpdesk-team-display-mode-card.is-active {
    background: linear-gradient(180deg, rgba(30, 58, 95, 0.78) 0%, rgba(38, 45, 57, 0.98) 100%);
    border-color: rgba(96, 165, 250, 0.36);
}

.helpdesk-team-table-box.is-pref-hide-forum .helpdesk-team-forum-head,
.helpdesk-team-table-box.is-pref-hide-forum .helpdesk-team-forum-cell,
.helpdesk-team-table-box.is-pref-hide-department .helpdesk-team-department-head,
.helpdesk-team-table-box.is-pref-hide-department .helpdesk-team-department-cell,
.helpdesk-team-table-box.is-pref-hide-assignee .helpdesk-team-assignee-head,
.helpdesk-team-table-box.is-pref-hide-assignee .helpdesk-team-assignee-cell,
.helpdesk-team-table-box.is-pref-hide-alerts .helpdesk-team-alerts-head,
.helpdesk-team-table-box.is-pref-hide-alerts .helpdesk-team-alerts-cell,
.helpdesk-team-table-box.is-pref-hide-updated .helpdesk-team-updated-head,
.helpdesk-team-table-box.is-pref-hide-updated .helpdesk-team-updated-cell {
    display: none;
}

.helpdesk-team-table-box.is-pref-compact .helpdesk-team-table thead th,
.helpdesk-team-table-box.is-pref-compact .helpdesk-team-table tbody td,
.helpdesk-team-table-wrap.is-pref-compact .helpdesk-team-table thead th,
.helpdesk-team-table-wrap.is-pref-compact .helpdesk-team-table tbody td,
.helpdesk-team-table.is-pref-compact thead th,
.helpdesk-team-table.is-pref-compact tbody td {
    padding-top: 3px;
    padding-bottom: 3px;
    line-height: 1.2;
}

.helpdesk-team-table-box.is-pref-compact .helpdesk-team-table thead th,
.helpdesk-team-table-wrap.is-pref-compact .helpdesk-team-table thead th,
.helpdesk-team-table.is-pref-compact thead th {
    font-size: 9px;
}

.helpdesk-team-table-box.is-pref-compact .helpdesk-team-topic-link,
.helpdesk-team-table-wrap.is-pref-compact .helpdesk-team-topic-link,
.helpdesk-team-table.is-pref-compact .helpdesk-team-topic-link {
    font-size: 0.94em;
}

.helpdesk-team-table-box.is-pref-compact .helpdesk-team-topic-subline,
.helpdesk-team-table-box.is-pref-compact .helpdesk-team-triage-meta,
.helpdesk-team-table-box.is-pref-compact .helpdesk-topic-meta,
.helpdesk-team-table-wrap.is-pref-compact .helpdesk-team-topic-subline,
.helpdesk-team-table-wrap.is-pref-compact .helpdesk-team-triage-meta,
.helpdesk-team-table-wrap.is-pref-compact .helpdesk-topic-meta,
.helpdesk-team-table.is-pref-compact .helpdesk-team-topic-subline,
.helpdesk-team-table.is-pref-compact .helpdesk-team-triage-meta,
.helpdesk-team-table.is-pref-compact .helpdesk-topic-meta {
    margin-top: 2px;
    gap: 2px 5px;
    font-size: 9px;
}

.helpdesk-team-table-box.is-pref-compact .helpdesk-team-topic-subline,
.helpdesk-team-table-wrap.is-pref-compact .helpdesk-team-topic-subline,
.helpdesk-team-table.is-pref-compact .helpdesk-team-topic-subline {
    display: none;
}

.helpdesk-team-table-box.is-pref-compact .helpdesk-team-topic-badges .helpdesk-badge,
.helpdesk-team-table-box.is-pref-compact .helpdesk-team-status-cell .helpdesk-badge,
.helpdesk-team-table-box.is-pref-compact .helpdesk-team-priority-cell .helpdesk-badge,
.helpdesk-team-table-box.is-pref-compact .helpdesk-team-assignee-cell .helpdesk-badge,
.helpdesk-team-table-wrap.is-pref-compact .helpdesk-team-topic-badges .helpdesk-badge,
.helpdesk-team-table-wrap.is-pref-compact .helpdesk-team-status-cell .helpdesk-badge,
.helpdesk-team-table-wrap.is-pref-compact .helpdesk-team-priority-cell .helpdesk-badge,
.helpdesk-team-table-wrap.is-pref-compact .helpdesk-team-assignee-cell .helpdesk-badge,
.helpdesk-team-table.is-pref-compact .helpdesk-team-topic-badges .helpdesk-badge,
.helpdesk-team-table.is-pref-compact .helpdesk-team-status-cell .helpdesk-badge,
.helpdesk-team-table.is-pref-compact .helpdesk-team-priority-cell .helpdesk-badge,
.helpdesk-team-table.is-pref-compact .helpdesk-team-assignee-cell .helpdesk-badge {
    padding: 0 4px;
    font-size: 7px;
}

.helpdesk-team-table-box.is-pref-compact .helpdesk-team-row-actions,
.helpdesk-team-table-box.is-pref-compact .helpdesk-team-triage-quick-bar,
.helpdesk-team-table-wrap.is-pref-compact .helpdesk-team-row-actions,
.helpdesk-team-table-wrap.is-pref-compact .helpdesk-team-triage-quick-bar,
.helpdesk-team-table.is-pref-compact .helpdesk-team-row-actions,
.helpdesk-team-table.is-pref-compact .helpdesk-team-triage-quick-bar {
    gap: 4px;
}

.helpdesk-team-table-box.is-pref-compact .helpdesk-team-row-action-form,
.helpdesk-team-table-wrap.is-pref-compact .helpdesk-team-row-action-form,
.helpdesk-team-table.is-pref-compact .helpdesk-team-row-action-form {
    padding: 4px 6px;
}

.helpdesk-team-table-box.is-pref-compact .helpdesk-team-row-actions .button,
.helpdesk-team-table-box.is-pref-compact .helpdesk-team-triage-more-actions > summary,
.helpdesk-team-table-box.is-pref-compact .helpdesk-team-row-reply-template-picker,
.helpdesk-team-table-wrap.is-pref-compact .helpdesk-team-row-actions .button,
.helpdesk-team-table-wrap.is-pref-compact .helpdesk-team-triage-more-actions > summary,
.helpdesk-team-table-wrap.is-pref-compact .helpdesk-team-row-reply-template-picker,
.helpdesk-team-table.is-pref-compact .helpdesk-team-row-actions .button,
.helpdesk-team-table.is-pref-compact .helpdesk-team-triage-more-actions > summary,
.helpdesk-team-table.is-pref-compact .helpdesk-team-row-reply-template-picker {
    padding-top: 2px;
    padding-bottom: 2px;
    font-size: 10px;
}

.helpdesk-team-table-box[data-helpdesk-queue-mode="sla"] .helpdesk-team-table-wrap {
    border-color: #e8d3aa;
    box-shadow: 0 0 0 1px rgba(200, 132, 16, 0.08);
}

.helpdesk-team-table-box[data-helpdesk-queue-mode="sla"] .helpdesk-team-status-cell,
.helpdesk-team-table-box[data-helpdesk-queue-mode="sla"] .helpdesk-team-priority-cell,
.helpdesk-team-table-box[data-helpdesk-queue-mode="sla"] .helpdesk-team-updated-cell {
    background-image: linear-gradient(180deg, rgba(255, 248, 234, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.helpdesk-team-table-box[data-helpdesk-queue-mode="sla"] .helpdesk-team-topic-deadline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 2px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #fff1d5;
    color: #8b5d00;
    font-weight: 700;
}

.helpdesk-team-table-box[data-helpdesk-queue-mode="assignee"] .helpdesk-team-table-wrap {
    border-color: #bcd1e8;
    box-shadow: 0 0 0 1px rgba(90, 142, 200, 0.08);
}

.helpdesk-team-table-box[data-helpdesk-queue-mode="assignee"] .helpdesk-team-assignee-cell {
    background-image: linear-gradient(180deg, rgba(243, 247, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.helpdesk-team-table-box[data-helpdesk-queue-mode="assignee"] .helpdesk-team-assignee-name {
    font-size: 1.02em;
}

.helpdesk-team-table-box[data-helpdesk-queue-mode="assignee"] .helpdesk-team-assignee-cell.is-unassigned {
    font-size: 1.02em;
}

.helpdesk-team-table-box[data-helpdesk-queue-mode="assignee"] .helpdesk-team-row-claim {
    box-shadow: inset 0 0 0 1px rgba(90, 142, 200, 0.14);
}

@media (max-width: 700px) {
    .helpdesk-team-display-preferences-head {
        flex-direction: column;
        align-items: stretch;
    }

    .helpdesk-team-display-mode-grid,
    .helpdesk-team-display-preferences-grid {
        grid-template-columns: 1fr;
    }
}


html[data-theme="dark"] .helpdesk-team-table-box[data-helpdesk-queue-mode="sla"] .helpdesk-team-status-cell,
html[data-theme="dark"] .helpdesk-team-table-box[data-helpdesk-queue-mode="sla"] .helpdesk-team-priority-cell,
html[data-theme="dark"] .helpdesk-team-table-box[data-helpdesk-queue-mode="sla"] .helpdesk-team-updated-cell,
body[data-theme="dark"] .helpdesk-team-table-box[data-helpdesk-queue-mode="sla"] .helpdesk-team-status-cell,
body[data-theme="dark"] .helpdesk-team-table-box[data-helpdesk-queue-mode="sla"] .helpdesk-team-priority-cell,
body[data-theme="dark"] .helpdesk-team-table-box[data-helpdesk-queue-mode="sla"] .helpdesk-team-updated-cell,
.dark-theme .helpdesk-team-table-box[data-helpdesk-queue-mode="sla"] .helpdesk-team-status-cell,
.dark-theme .helpdesk-team-table-box[data-helpdesk-queue-mode="sla"] .helpdesk-team-priority-cell,
.dark-theme .helpdesk-team-table-box[data-helpdesk-queue-mode="sla"] .helpdesk-team-updated-cell,
body.dark .helpdesk-team-table-box[data-helpdesk-queue-mode="sla"] .helpdesk-team-status-cell,
body.dark .helpdesk-team-table-box[data-helpdesk-queue-mode="sla"] .helpdesk-team-priority-cell,
body.dark .helpdesk-team-table-box[data-helpdesk-queue-mode="sla"] .helpdesk-team-updated-cell,
body.phpbb-dark .helpdesk-team-table-box[data-helpdesk-queue-mode="sla"] .helpdesk-team-status-cell,
body.phpbb-dark .helpdesk-team-table-box[data-helpdesk-queue-mode="sla"] .helpdesk-team-priority-cell,
body.phpbb-dark .helpdesk-team-table-box[data-helpdesk-queue-mode="sla"] .helpdesk-team-updated-cell {
    background-image: linear-gradient(180deg, rgba(59, 48, 32, 0.78) 0%, rgba(33, 39, 49, 0.98) 100%);
}

html[data-theme="dark"] .helpdesk-team-table-box[data-helpdesk-queue-mode="sla"] .helpdesk-team-topic-deadline,
body[data-theme="dark"] .helpdesk-team-table-box[data-helpdesk-queue-mode="sla"] .helpdesk-team-topic-deadline,
.dark-theme .helpdesk-team-table-box[data-helpdesk-queue-mode="sla"] .helpdesk-team-topic-deadline,
body.dark .helpdesk-team-table-box[data-helpdesk-queue-mode="sla"] .helpdesk-team-topic-deadline,
body.phpbb-dark .helpdesk-team-table-box[data-helpdesk-queue-mode="sla"] .helpdesk-team-topic-deadline {
    background: #4a3c22;
    color: #ffd98d;
}

html[data-theme="dark"] .helpdesk-team-table-box[data-helpdesk-queue-mode="assignee"] .helpdesk-team-assignee-cell,
body[data-theme="dark"] .helpdesk-team-table-box[data-helpdesk-queue-mode="assignee"] .helpdesk-team-assignee-cell,
.dark-theme .helpdesk-team-table-box[data-helpdesk-queue-mode="assignee"] .helpdesk-team-assignee-cell,
body.dark .helpdesk-team-table-box[data-helpdesk-queue-mode="assignee"] .helpdesk-team-assignee-cell,
body.phpbb-dark .helpdesk-team-table-box[data-helpdesk-queue-mode="assignee"] .helpdesk-team-assignee-cell {
    background-image: linear-gradient(180deg, rgba(32, 49, 68, 0.78) 0%, rgba(33, 39, 49, 0.98) 100%);
}


.helpdesk-feedback-box {
    margin: 16px 0;
    padding: 16px;
    border: 1px solid rgba(82, 104, 144, 0.18);
    border-radius: 12px;
    background: rgba(241, 245, 255, 0.72);
}

.helpdesk-feedback-box h4 {
    margin-bottom: 10px;
}

.helpdesk-feedback-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(82, 104, 144, 0.14);
}

.helpdesk-feedback-summary-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.helpdesk-feedback-stars,
.helpdesk-feedback-rating-stars {
    letter-spacing: 1px;
    font-size: 1.05em;
}

.helpdesk-feedback-rating {
    font-size: 1.05em;
}

.helpdesk-feedback-meta {
    color: #5c6475;
    font-size: 0.9em;
}

.helpdesk-feedback-comment {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.helpdesk-feedback-comment-label {
    font-weight: 700;
    color: #38435a;
}

.helpdesk-feedback-comment-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.45;
}

.helpdesk-feedback-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.helpdesk-feedback-rating-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}

.helpdesk-feedback-rating-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid rgba(82, 104, 144, 0.16);
    background: rgba(255, 255, 255, 0.82);
    cursor: pointer;
}

.helpdesk-feedback-rating-option input {
    margin: 0;
}

.helpdesk-feedback-rating-label {
    color: #344054;
    line-height: 1.3;
}

.helpdesk-history-item.helpdesk-history-type-feedback .helpdesk-history-marker {
    background: #f59e0b;
}

.helpdesk-history-type-feedback {
    background: rgba(245, 158, 11, 0.12);
    color: #92400e;
}

.helpdesk-history-reason.helpdesk-history-detail-feedback {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(245, 158, 11, 0.16);
}

html[data-theme="dark"] .helpdesk-feedback-box,
body[data-theme="dark"] .helpdesk-feedback-box,
.dark-theme .helpdesk-feedback-box,
body.dark .helpdesk-feedback-box,
body.phpbb-dark .helpdesk-feedback-box {
    background: rgba(29, 37, 55, 0.92);
    border-color: rgba(148, 163, 184, 0.22);
}

html[data-theme="dark"] .helpdesk-feedback-summary,
body[data-theme="dark"] .helpdesk-feedback-summary,
.dark-theme .helpdesk-feedback-summary,
body.dark .helpdesk-feedback-summary,
body.phpbb-dark .helpdesk-feedback-summary,
html[data-theme="dark"] .helpdesk-feedback-rating-option,
body[data-theme="dark"] .helpdesk-feedback-rating-option,
.dark-theme .helpdesk-feedback-rating-option,
body.dark .helpdesk-feedback-rating-option,
body.phpbb-dark .helpdesk-feedback-rating-option {
    background: rgba(17, 24, 39, 0.88);
    border-color: rgba(148, 163, 184, 0.2);
}

html[data-theme="dark"] .helpdesk-feedback-meta,
body[data-theme="dark"] .helpdesk-feedback-meta,
.dark-theme .helpdesk-feedback-meta,
body.dark .helpdesk-feedback-meta,
body.phpbb-dark .helpdesk-feedback-meta,
html[data-theme="dark"] .helpdesk-feedback-rating-label,
body[data-theme="dark"] .helpdesk-feedback-rating-label,
.dark-theme .helpdesk-feedback-rating-label,
body.dark .helpdesk-feedback-rating-label,
body.phpbb-dark .helpdesk-feedback-rating-label,
html[data-theme="dark"] .helpdesk-feedback-comment-label,
body[data-theme="dark"] .helpdesk-feedback-comment-label,
.dark-theme .helpdesk-feedback-comment-label,
body.dark .helpdesk-feedback-comment-label,
body.phpbb-dark .helpdesk-feedback-comment-label,
html[data-theme="dark"] .helpdesk-history-type-feedback,
body[data-theme="dark"] .helpdesk-history-type-feedback,
.dark-theme .helpdesk-history-type-feedback,
body.dark .helpdesk-history-type-feedback,
body.phpbb-dark .helpdesk-history-type-feedback {
    color: #f8fafc;
}

@media (max-width: 700px) {
    .helpdesk-feedback-rating-options {
        grid-template-columns: 1fr;
    }
}


/* ========================================================================
   Flatboots visual layer for Help Desk pages
   ======================================================================== */
.helpdesk-flatboots-page {
    --helpdesk-fb-bg: #f7f9fc;
    --helpdesk-fb-surface: #ffffff;
    --helpdesk-fb-border: #dce6f2;
    --helpdesk-fb-border-strong: #c8d6e7;
    --helpdesk-fb-text: #304055;
    --helpdesk-fb-muted: #6b7c93;
    --helpdesk-fb-accent: #3f6ea5;
    --helpdesk-fb-accent-soft: #eef4fb;
    --helpdesk-fb-shadow: 0 10px 28px rgba(31, 56, 88, 0.07);
}

.helpdesk-flatboots-page > h2 {
    margin: 0 0 6px;
    color: #213247;
    font-size: 2em;
    font-weight: 700;
}

.helpdesk-flatboots-page > p {
    margin: 0 0 18px;
    color: var(--helpdesk-fb-muted);
    font-size: 1em;
}

.helpdesk-flatboots-page .panel,
.helpdesk-flatboots-page .forumbg,
.helpdesk-flatboots-page .helpdesk-tabs-panel,
.helpdesk-flatboots-page .action-bar,
.helpdesk-flatboots-page .helpdesk-team-table-box,
.helpdesk-flatboots-page .helpdesk-team-overview-box,
.helpdesk-flatboots-page .helpdesk-report-panel,
.helpdesk-flatboots-page .helpdesk-team-display-box,
.helpdesk-flatboots-page .helpdesk-team-context-box,
.helpdesk-flatboots-page .helpdesk-team-layout-tools-box,
.helpdesk-flatboots-page .helpdesk-team-page-search-box,
.helpdesk-flatboots-page .helpdesk-team-load-box,
.helpdesk-flatboots-page .helpdesk-queue-presets-box,
.helpdesk-flatboots-page .helpdesk-queue-preview-box,
.helpdesk-flatboots-page .helpdesk-preview-compare-box,
.helpdesk-flatboots-page .helpdesk-overview-sla-box,
.helpdesk-flatboots-page .helpdesk-overview-health-box,
.helpdesk-flatboots-page .helpdesk-overview-focus-box,
.helpdesk-flatboots-page .helpdesk-report-section,
.helpdesk-flatboots-page .helpdesk-empty-state,
.helpdesk-flatboots-page .helpdesk-bulk-section {
    background: var(--helpdesk-fb-surface);
    border: 1px solid var(--helpdesk-fb-border);
    border-radius: 16px;
    box-shadow: var(--helpdesk-fb-shadow);
    margin-bottom: 16px;
}

.helpdesk-flatboots-page .panel .inner,
.helpdesk-flatboots-page .forumbg .inner,
.helpdesk-flatboots-page .helpdesk-team-table-box .inner,
.helpdesk-flatboots-page .helpdesk-report-panel .inner,
.helpdesk-flatboots-page .helpdesk-tabs-panel .inner {
    padding: 18px 20px;
}

.helpdesk-flatboots-page .forumbg .topiclist,
.helpdesk-flatboots-page .forumbg .topics {
    margin: 0;
}

.helpdesk-flatboots-page .topiclist li.header {
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    border: 1px solid var(--helpdesk-fb-border);
    margin-bottom: 10px;
}

.helpdesk-flatboots-page .topiclist li.row,
.helpdesk-flatboots-page .helpdesk-report-list > li,
.helpdesk-flatboots-page .helpdesk-alert-ticket-list > li,
.helpdesk-flatboots-page .helpdesk-team-history-list > li,
.helpdesk-flatboots-page .helpdesk-team-alert-list > li {
    border: 1px solid #e6edf5;
    border-radius: 14px;
    background: #fff;
    margin-bottom: 10px;
    box-shadow: 0 4px 16px rgba(31, 56, 88, 0.04);
}

.helpdesk-flatboots-page .topiclist.topics > li:last-child,
.helpdesk-flatboots-page .helpdesk-report-list > li:last-child,
.helpdesk-flatboots-page .helpdesk-alert-ticket-list > li:last-child {
    margin-bottom: 0;
}

.helpdesk-flatboots-page .row-item,
.helpdesk-flatboots-page .row-item dt,
.helpdesk-flatboots-page .row-item dd {
    border-color: transparent;
}

.helpdesk-flatboots-page .row-item dt .list-inner,
.helpdesk-flatboots-page .row-item .list-inner {
    padding-top: 16px;
    padding-bottom: 16px;
}

.helpdesk-flatboots-page .topictitle,
.helpdesk-flatboots-page .helpdesk-team-topic-link,
.helpdesk-flatboots-page .helpdesk-alert-ticket-link,
.helpdesk-flatboots-page .helpdesk-report-card-link,
.helpdesk-flatboots-page .helpdesk-report-link {
    font-size: 1.04em;
    font-weight: 700;
    color: #244568;
}

.helpdesk-flatboots-page .topictitle:hover,
.helpdesk-flatboots-page .helpdesk-team-topic-link:hover,
.helpdesk-flatboots-page .helpdesk-alert-ticket-link:hover,
.helpdesk-flatboots-page .helpdesk-report-card-link:hover,
.helpdesk-flatboots-page .helpdesk-report-link:hover {
    color: #18324d;
    text-decoration: none;
}

.helpdesk-flatboots-page .helpdesk-team-topic-subline,
.helpdesk-flatboots-page .helpdesk-note,
.helpdesk-flatboots-page .helpdesk-topic-meta,
.helpdesk-flatboots-page .helpdesk-alert-ticket-meta,
.helpdesk-flatboots-page .helpdesk-report-meta,
.helpdesk-flatboots-page .helpdesk-team-triage-meta,
.helpdesk-flatboots-page .helpdesk-team-row-reason-note {
    color: var(--helpdesk-fb-muted);
}

.helpdesk-flatboots-page .helpdesk-team-cards,
.helpdesk-flatboots-page .helpdesk-overview-health-grid,
.helpdesk-flatboots-page .helpdesk-overview-next-grid,
.helpdesk-flatboots-page .helpdesk-queue-presets-grid,
.helpdesk-flatboots-page .helpdesk-preview-summary-cards,
.helpdesk-flatboots-page .helpdesk-report-grid,
.helpdesk-flatboots-page .helpdesk-alert-action-grid,
.helpdesk-flatboots-page .helpdesk-team-display-grid,
.helpdesk-flatboots-page .helpdesk-team-load-grid,
.helpdesk-flatboots-page .helpdesk-team-bulk-grid,
.helpdesk-flatboots-page .helpdesk-team-display-mode-grid,
.helpdesk-flatboots-page .helpdesk-team-display-preferences-grid {
    gap: 14px;
}

.helpdesk-flatboots-page .helpdesk-team-card,
.helpdesk-flatboots-page .helpdesk-overview-health-card,
.helpdesk-flatboots-page .helpdesk-overview-next-card,
.helpdesk-flatboots-page .helpdesk-queue-preset-card,
.helpdesk-flatboots-page .helpdesk-preview-summary-card,
.helpdesk-flatboots-page .helpdesk-alert-action-card,
.helpdesk-flatboots-page .helpdesk-report-card,
.helpdesk-flatboots-page .helpdesk-team-load-card,
.helpdesk-flatboots-page .helpdesk-team-display-mode-card,
.helpdesk-flatboots-page .helpdesk-team-redistribution-box,
.helpdesk-flatboots-page .helpdesk-empty-state,
.helpdesk-flatboots-page .helpdesk-redistribution-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--helpdesk-fb-border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(31, 56, 88, 0.05);
}

.helpdesk-flatboots-page .helpdesk-team-card {
    padding: 16px 14px;
}

.helpdesk-flatboots-page .helpdesk-team-card strong,
.helpdesk-flatboots-page .helpdesk-overview-health-count,
.helpdesk-flatboots-page .helpdesk-overview-next-count,
.helpdesk-flatboots-page .helpdesk-queue-preset-count,
.helpdesk-flatboots-page .helpdesk-inline-count {
    color: #203246;
}

.helpdesk-flatboots-page .helpdesk-team-card.is-active,
.helpdesk-flatboots-page .helpdesk-tab.is-active,
.helpdesk-flatboots-page .helpdesk-queue-preset-open:hover,
.helpdesk-flatboots-page .helpdesk-team-card:hover {
    border-color: #98b7db;
    background: linear-gradient(180deg, #ffffff 0%, #eef5fd 100%);
    box-shadow: 0 12px 30px rgba(36, 69, 104, 0.09);
}

.helpdesk-flatboots-page .helpdesk-tabs {
    gap: 10px;
}

.helpdesk-flatboots-page .helpdesk-tab {
    border-radius: 999px;
    border: 1px solid var(--helpdesk-fb-border);
    background: #f8fbff;
    color: #3d536f;
    padding: 10px 14px;
    font-weight: 700;
}

.helpdesk-flatboots-page .helpdesk-tab.is-active {
    color: #204469;
}

.helpdesk-flatboots-page .helpdesk-team-filter-grid,
.helpdesk-flatboots-page .helpdesk-manage-row,
.helpdesk-flatboots-page .helpdesk-redistribution-form,
.helpdesk-flatboots-page .helpdesk-team-load-inline-form,
.helpdesk-flatboots-page .helpdesk-team-bulk-form,
.helpdesk-flatboots-page .helpdesk-team-row-action-form,
.helpdesk-flatboots-page .helpdesk-team-row-action-form-advanced {
    gap: 14px;
}

.helpdesk-flatboots-page .helpdesk-team-filter-grid label > span,
.helpdesk-flatboots-page .helpdesk-manage-field label,
.helpdesk-flatboots-page .helpdesk-filter-field label {
    display: block;
    margin-bottom: 7px;
    color: #3b4f69;
    font-weight: 700;
}

.helpdesk-flatboots-page input.inputbox,
.helpdesk-flatboots-page input[type="search"],
.helpdesk-flatboots-page input[type="text"],
.helpdesk-flatboots-page select,
.helpdesk-flatboots-page textarea {
    border-radius: 12px;
    border: 1px solid var(--helpdesk-fb-border-strong);
    min-height: 42px;
    padding: 8px 12px;
    background: #fff;
    color: var(--helpdesk-fb-text);
    box-shadow: inset 0 1px 2px rgba(31, 56, 88, 0.03);
}

.helpdesk-flatboots-page textarea {
    min-height: 96px;
}

.helpdesk-flatboots-page input.inputbox:focus,
.helpdesk-flatboots-page input[type="search"]:focus,
.helpdesk-flatboots-page input[type="text"]:focus,
.helpdesk-flatboots-page select:focus,
.helpdesk-flatboots-page textarea:focus {
    border-color: #8eb1d9;
    box-shadow: 0 0 0 3px rgba(98, 143, 197, 0.14);
    outline: none;
}

.helpdesk-flatboots-page .button,
.helpdesk-flatboots-page .button1,
.helpdesk-flatboots-page .button2,
.helpdesk-flatboots-page a.button,
.helpdesk-flatboots-page a.button1,
.helpdesk-flatboots-page a.button2 {
    border-radius: 999px;
    border: 1px solid #c6d8ea;
    min-height: 38px;
    padding: 8px 14px;
    background: linear-gradient(180deg, #ffffff 0%, #edf4fb 100%);
    color: #244568;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(36, 69, 104, 0.06);
}

.helpdesk-flatboots-page .button.button-primary,
.helpdesk-flatboots-page .button1,
.helpdesk-flatboots-page .helpdesk-team-bulk-submit,
.helpdesk-flatboots-page button[type="submit"].button,
.helpdesk-flatboots-page button[type="submit"].button1 {
    background: linear-gradient(180deg, #5c88bc 0%, #476f9e 100%);
    border-color: #40668f;
    color: #fff;
}

.helpdesk-flatboots-page .button:hover,
.helpdesk-flatboots-page .button1:hover,
.helpdesk-flatboots-page .button2:hover,
.helpdesk-flatboots-page a.button:hover,
.helpdesk-flatboots-page a.button1:hover,
.helpdesk-flatboots-page a.button2:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.helpdesk-flatboots-page .helpdesk-badge,
.helpdesk-flatboots-page .helpdesk-tag,
.helpdesk-flatboots-page .helpdesk-context-pill,
.helpdesk-flatboots-page .helpdesk-health-pill,
.helpdesk-flatboots-page .helpdesk-balanced-pick-badge,
.helpdesk-flatboots-page .helpdesk-smart-pick-badge {
    border-radius: 999px;
    padding: 4px 10px;
    min-height: 24px;
    font-size: 10px;
    letter-spacing: 0.03em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.helpdesk-flatboots-page .action-bar,
.helpdesk-flatboots-page .helpdesk-pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.helpdesk-flatboots-page .pagination {
    color: var(--helpdesk-fb-muted);
}

.helpdesk-flatboots-page .helpdesk-team-row-actions,
.helpdesk-flatboots-page .helpdesk-quick-actions,
.helpdesk-flatboots-page .helpdesk-quick-actions-compact,
.helpdesk-flatboots-page .helpdesk-alert-action-top,
.helpdesk-flatboots-page .helpdesk-alert-action-bottom,
.helpdesk-flatboots-page .helpdesk-report-actions-buttons,
.helpdesk-flatboots-page .helpdesk-team-context-buttons {
    gap: 8px;
}

.helpdesk-flatboots-page .helpdesk-empty-state-copy,
.helpdesk-flatboots-page .helpdesk-report-summary,
.helpdesk-flatboots-page .helpdesk-team-display-preferences-note,
.helpdesk-flatboots-page .helpdesk-team-context-note,
.helpdesk-flatboots-page .helpdesk-team-layout-tools-feedback,
.helpdesk-flatboots-page .helpdesk-team-page-search-summary {
    color: var(--helpdesk-fb-muted);
}

.helpdesk-flatboots-page .helpdesk-team-topic-badges,
.helpdesk-flatboots-page .helpdesk-topic-meta,
.helpdesk-flatboots-page .helpdesk-team-context-chips,
.helpdesk-flatboots-page .helpdesk-empty-state-pills {
    gap: 8px;
}

.helpdesk-flatboots-page .helpdesk-report-section-body,
.helpdesk-flatboots-page .helpdesk-filter-section-body,
.helpdesk-flatboots-page .helpdesk-saved-views-body,
.helpdesk-flatboots-page .helpdesk-history-body {
    border-top: 1px solid #ebf1f7;
}

.helpdesk-flatboots-page .helpdesk-back-to-top-wrap {
    margin-top: 16px;
}

@media (max-width: 900px) {
    .helpdesk-flatboots-page .action-bar,
    .helpdesk-flatboots-page .helpdesk-pagination-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 700px) {
    .helpdesk-flatboots-page .panel .inner,
    .helpdesk-flatboots-page .forumbg .inner,
    .helpdesk-flatboots-page .helpdesk-tabs-panel .inner {
        padding: 16px;
    }

    .helpdesk-flatboots-page .topiclist li.header {
        display: none;
    }

    .helpdesk-flatboots-page .row-item dt,
    .helpdesk-flatboots-page .row-item dd,
    .helpdesk-flatboots-page .topiclist.topics dl.row-item dd {
        float: none;
        width: 100%;
        padding: 0 16px 12px;
        margin: 0;
        min-height: 0;
        text-align: left;
    }

    .helpdesk-flatboots-page .row-item dt .list-inner,
    .helpdesk-flatboots-page .row-item .list-inner {
        padding-bottom: 10px;
    }

    .helpdesk-flatboots-page .helpdesk-team-row-actions,
    .helpdesk-flatboots-page .helpdesk-quick-actions,
    .helpdesk-flatboots-page .helpdesk-team-filter-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .helpdesk-flatboots-page .button,
    .helpdesk-flatboots-page .button1,
    .helpdesk-flatboots-page .button2,
    .helpdesk-flatboots-page a.button,
    .helpdesk-flatboots-page a.button1,
    .helpdesk-flatboots-page a.button2 {
        width: 100%;
        text-align: center;
    }
}

html[data-theme="dark"] .helpdesk-flatboots-page,
body[data-theme="dark"] .helpdesk-flatboots-page,
.dark-theme .helpdesk-flatboots-page,
body.dark .helpdesk-flatboots-page,
body.phpbb-dark .helpdesk-flatboots-page {
    --helpdesk-fb-surface: #1c2634;
    --helpdesk-fb-border: rgba(148, 163, 184, 0.18);
    --helpdesk-fb-border-strong: rgba(148, 163, 184, 0.28);
    --helpdesk-fb-text: #edf2f7;
    --helpdesk-fb-muted: #b7c4d4;
    --helpdesk-fb-accent-soft: rgba(71, 111, 158, 0.18);
    --helpdesk-fb-shadow: 0 12px 32px rgba(2, 8, 23, 0.34);
}

html[data-theme="dark"] .helpdesk-flatboots-page .panel,
body[data-theme="dark"] .helpdesk-flatboots-page .panel,
.dark-theme .helpdesk-flatboots-page .panel,
body.dark .helpdesk-flatboots-page .panel,
body.phpbb-dark .helpdesk-flatboots-page .panel,
html[data-theme="dark"] .helpdesk-flatboots-page .forumbg,
body[data-theme="dark"] .helpdesk-flatboots-page .forumbg,
.dark-theme .helpdesk-flatboots-page .forumbg,
body.dark .helpdesk-flatboots-page .forumbg,
body.phpbb-dark .helpdesk-flatboots-page .forumbg,
html[data-theme="dark"] .helpdesk-flatboots-page .action-bar,
body[data-theme="dark"] .helpdesk-flatboots-page .action-bar,
.dark-theme .helpdesk-flatboots-page .action-bar,
body.dark .helpdesk-flatboots-page .action-bar,
body.phpbb-dark .helpdesk-flatboots-page .action-bar,
html[data-theme="dark"] .helpdesk-flatboots-page .helpdesk-team-card,
body[data-theme="dark"] .helpdesk-flatboots-page .helpdesk-team-card,
.dark-theme .helpdesk-flatboots-page .helpdesk-team-card,
body.dark .helpdesk-flatboots-page .helpdesk-team-card,
body.phpbb-dark .helpdesk-flatboots-page .helpdesk-team-card,
html[data-theme="dark"] .helpdesk-flatboots-page .topiclist li.row,
body[data-theme="dark"] .helpdesk-flatboots-page .topiclist li.row,
.dark-theme .helpdesk-flatboots-page .topiclist li.row,
body.dark .helpdesk-flatboots-page .topiclist li.row,
body.phpbb-dark .helpdesk-flatboots-page .topiclist li.row {
    background: #1c2634;
}

html[data-theme="dark"] .helpdesk-flatboots-page .topiclist li.header,
body[data-theme="dark"] .helpdesk-flatboots-page .topiclist li.header,
.dark-theme .helpdesk-flatboots-page .topiclist li.header,
body.dark .helpdesk-flatboots-page .topiclist li.header,
body.phpbb-dark .helpdesk-flatboots-page .topiclist li.header {
    background: linear-gradient(180deg, #223043 0%, #1d2836 100%);
}

html[data-theme="dark"] .helpdesk-flatboots-page .button,
body[data-theme="dark"] .helpdesk-flatboots-page .button,
.dark-theme .helpdesk-flatboots-page .button,
body.dark .helpdesk-flatboots-page .button,
body.phpbb-dark .helpdesk-flatboots-page .button,
html[data-theme="dark"] .helpdesk-flatboots-page .button2,
body[data-theme="dark"] .helpdesk-flatboots-page .button2,
.dark-theme .helpdesk-flatboots-page .button2,
body.dark .helpdesk-flatboots-page .button2,
body.phpbb-dark .helpdesk-flatboots-page .button2 {
    background: linear-gradient(180deg, #243447 0%, #1d2a39 100%);
    color: #e7eef7;
}
