/* list-tools.css — the shared search / filter / sort / paging toolbar and
   the compact data table used for long lists across the admin and employee
   portals (see /assets/js/list-tools.js). Dark theme, matching both portals. */

/* Hidden list items must stay hidden even when a page styles its cards with
   display:flex/grid (which would otherwise override the hidden attribute). */
[data-item][hidden], [data-detail][hidden], .lt-pager[hidden], .lt-empty[hidden], .lt-clear[hidden], [data-lt-hide-empty][hidden] { display: none !important; }

.lt-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    background: #1C1C1C; border: 1px solid #333333; padding: 12px 14px; margin-bottom: 12px;
}
.lt-toolbar .lt-search {
    flex: 1 1 260px; min-width: 0;
    font-family: 'Barlow', sans-serif; font-size: 15px;
    padding: 10px 12px 10px 36px; color: #F0F0F0;
    background: #141414 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A8A8A' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 11px center;
    border: 1px solid #3D3D3D; outline: none; -webkit-appearance: none; appearance: none;
}
.lt-toolbar select {
    font-family: 'Barlow', sans-serif; font-size: 14px;
    padding: 10px 30px 10px 12px; color: #F0F0F0; max-width: 220px;
    background: #141414 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A8A8A' stroke-width='3' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
    border: 1px solid #3D3D3D; outline: none; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.lt-toolbar .lt-search:focus, .lt-toolbar select:focus { border-color: #F5C209; }
.lt-toolbar .lt-clear {
    font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
    background: none; border: none; color: #F5C209; cursor: pointer; padding: 6px 4px;
}
.lt-toolbar .lt-count {
    margin-left: auto; white-space: nowrap;
    font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #8A8A8A;
}

.lt-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 12px 0 32px; }
.lt-pager-info { font-size: 13px; color: #8A8A8A; }
.lt-pager-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.lt-pager button {
    min-width: 36px; padding: 7px 10px; cursor: pointer;
    font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 700;
    background: #1C1C1C; color: #C8C8C8; border: 1px solid #333333;
}
.lt-pager button:hover:not(:disabled) { border-color: #F5C209; color: #F5C209; }
.lt-pager button.is-current { background: #F5C209; border-color: #F5C209; color: #111; }
.lt-pager button:disabled { opacity: .35; cursor: default; }
.lt-gap { color: #707070; padding: 0 4px; }
.lt-empty { padding: 28px; text-align: center; color: #8A8A8A; border: 1px dashed #333333; margin-bottom: 24px; font-size: 14px; }

/* ── Compact data table ── */
.lt-table-wrap { border: 1px solid #333333; background: #1C1C1C; overflow-x: auto; }
.lt-table { width: 100%; border-collapse: collapse; font-size: 14px; color: #E6E6E6; }
.lt-table th {
    text-align: left; white-space: nowrap; padding: 10px 14px; background: #181818; border-bottom: 1px solid #333333;
    font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: #707070;
}
.lt-table td { padding: 11px 14px; border-bottom: 1px solid #2A2A2A; vertical-align: middle; }
.lt-table tr[data-item]:hover > td { background: #222222; }
.lt-table tr[data-lt-toggle] { cursor: pointer; }
.lt-table tr.lt-open > td { background: #232323; border-bottom-color: transparent; }
.lt-table tr[data-detail] > td { background: #161616; padding: 0; }
.lt-table .lt-main { font-weight: 600; color: #F0F0F0; }
.lt-table .lt-sub { display: block; font-size: 12px; color: #8A8A8A; margin-top: 2px; font-weight: 400; }
.lt-table .lt-num { text-align: right; font-variant-numeric: tabular-nums; }
.lt-expander { display: inline-block; width: 14px; color: #707070; transition: transform .15s; }
.lt-open .lt-expander { transform: rotate(90deg); color: #F5C209; }
.lt-tag {
    display: inline-block; white-space: nowrap; padding: 2px 8px; border: 1px solid;
    font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.lt-tag--ok   { color: #4ADE80; border-color: rgba(74,222,128,.4);  background: rgba(74,222,128,.08); }
.lt-tag--todo { color: #F5C209; border-color: rgba(245,194,9,.45);  background: rgba(245,194,9,.08); }
.lt-tag--bad  { color: #F87171; border-color: rgba(248,113,113,.45); background: rgba(248,113,113,.08); }
.lt-tag--mute { color: #A0A0A0; border-color: #3D3D3D; }

@media (max-width: 760px) {
    .lt-toolbar select { flex: 1 1 140px; max-width: none; }
    .lt-toolbar .lt-count { margin-left: 0; width: 100%; }
    /* Tables collapse to stacked cards on phones. */
    .lt-table thead { display: none; }
    .lt-table, .lt-table tbody, .lt-table tr, .lt-table td { display: block; width: 100%; }
    .lt-table tr[data-item] { border-bottom: 1px solid #2A2A2A; padding: 8px 0; }
    .lt-table td { border: none; padding: 4px 14px; }
    .lt-table td[data-l]::before { content: attr(data-l) ': '; color: #8A8A8A; font-size: 12px; }
    .lt-table .lt-num { text-align: left; }
}
