/* =========================================================
   SupportCandy - vlastní úpravy vzhledu
   ========================================================= */

/* Seznam ticketů: tabulka přes celou šířku a přirozené šířky sloupců */
.wpsc-ticket-list table,
.wpsc-tickets-list table,
table.wpsc-ticket-list {
    width: 100% !important;
    table-layout: auto !important;
}

/* Nezalamovat obsah buněk a hlaviček */
.wpsc-ticket-list th,
.wpsc-ticket-list td,
.wpsc-tickets-list th,
.wpsc-tickets-list td {
    white-space: nowrap;
}

/* Pokud se tabulka nevejde, raději horizontální scroll než lámání */
.wpsc-ticket-list,
.wpsc-tickets-list {
    overflow-x: auto;
}

/* Sloupec seznamu s checkboxem */
.wpsc-ticket-list th:nth-child(1),
.wpsc-ticket-list td:nth-child(1),
.wpsc-tickets-list th:nth-child(1),
.wpsc-tickets-list td:nth-child(1) {
    max-width: 30px !important;
    min-width: 30px !important;
}

/* Sloupec seznamu se špendlíkem */
.wpsc-ticket-list th:nth-child(2),
.wpsc-ticket-list td:nth-child(2),
.wpsc-tickets-list th:nth-child(2),
.wpsc-tickets-list td:nth-child(2) {
    max-width: 30px !important;
    min-width: 30px !important;
}
/* Sloupec seznamu s ID */
.wpsc-ticket-list th:nth-child(3),
.wpsc-ticket-list td:nth-child(3),
.wpsc-tickets-list th:nth-child(3),
.wpsc-tickets-list td:nth-child(3) {
    max-width: 50px !important;
    min-width: 60px !important;
}
/* Sloupec seznamu se subjektem (Usergroups) */
.wpsc-ticket-list th:nth-child(5),
.wpsc-ticket-list td:nth-child(5),
.wpsc-tickets-list th:nth-child(5),
.wpsc-tickets-list td:nth-child(5) {
    font-weight: bold;
}
/* Sloupec seznamu Předmět */
.wpsc-ticket-list th:nth-child(4),
.wpsc-ticket-list td:nth-child(4),
.wpsc-tickets-list th:nth-child(4),
.wpsc-tickets-list td:nth-child(4) {
    font-weight: bold;
}
/* Uzavřené tickety – světlejší texttestuje barvu */
.wpsc-ticket-list tr:has(.wpsc-tag[style*="#c1ffcf"]) td {
    font-weight: 100;
}
/* Utlumení logů */
.wpsc-thread.log {
    opacity: 0.65;
    font-size: 0.9em;
}