/* Data tables: .tbl (tracker lists) and .pms-tbl, plus sortable column headers. */

.pms-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-xs);
}

.pms-tbl th {
    padding: 9px 10px;
    text-align: left;
    color: var(--muted);
    font-weight: 600;
}

.pms-tbl tbody tr {
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.pms-tbl thead tr {
    border-bottom: 2px solid var(--border);
}

.pms-tbl td {
    padding: 9px 10px;
    font-size: var(--fs-2xs);
    color: #040921;
    font-weight: 700;
}

th.sortable-header {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

th.sortable-header:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

th.sortable-header .sort-icon {
    display: inline-block;
    margin-left: 6px;
    font-size: var(--fs-2xs);
    vertical-align: middle;
    line-height: 1;
}

.card table.pms-tbl {
    min-width: 800px;
}

.tbl {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
    overflow-x: auto;
    margin-bottom: 16px;
}

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

.tbl th {
    text-align: start;
    font-size: var(--fs-2xs);
    font-weight: 600;
    color: var(--muted-ink);
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 10px 14px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.tbl td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    font-size: var(--fs-sm);
    vertical-align: top;
}

.tbl tr:last-child td {
    border-bottom: 0;
}

.tbl tr:hover td {
    background: var(--surface-2);
}

.isum {
    font-weight: 500;
    cursor: pointer;
}

.isum:hover {
    color: var(--primary);
}

.tbl table {
    min-width: 0;
}

/* Sort arrow of a column that is not sorted (pages/employees.php and sorting.js). */
.sort-icon .sort-idle {
    opacity: .25;
}

/* Fixed column widths for the generated tracker tables (blockers, coordination, issues). */
th.col-w-40 {
    width: 40px;
}

th.col-w-44 {
    width: 44px;
}

th.col-w-52 {
    width: 52px;
}

th.col-w-60 {
    width: 60px;
}

th.col-w-70 {
    width: 70px;
}

th.col-w-80 {
    width: 80px;
}

th.col-w-86 {
    width: 86px;
}

th.col-w-90 {
    width: 90px;
}

th.col-w-92 {
    width: 92px;
}

th.col-w-96 {
    width: 96px;
}

th.col-w-108 {
    width: 108px;
}

th.col-w-110 {
    width: 110px;
}

th.col-w-112 {
    width: 112px;
}

th.col-w-130 {
    width: 130px;
}

th.col-w-135 {
    width: 135px;
}

th.col-w-150 {
    width: 150px;
}

th.col-w-160 {
    width: 160px;
}

th.col-w-165 {
    width: 165px;
}

th.col-w-180 {
    width: 180px;
}

th.col-w-200 {
    width: 200px;
}

th.col-w-210 {
    width: 210px;
}

th.col-w-300 {
    width: 300px;
}

/* Names are the longest thing in a row: a wider column keeps most on two lines, and the avatar stays at
   the first line instead of floating beside the middle of a three-line name. */
th.col-w-165 {
    width: 210px;
}

.tbl td {
    line-height: var(--lh-snug);
}

.tbl .av-label {
    align-items: flex-start;
}

.tbl .av-label .av {
    flex: none;
    margin-top: 1px;
}
