/* ==================== 长期休假 / 断卡预警 ==================== */
/* 风格对齐合同台账：白卡 + 细边框 + 单一蓝色强调，克制不花哨 */

.lt-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.03);
    margin-bottom: 16px;
}

.lt-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 14px;
}
.lt-title-hint {
    font-size: 12px;
    font-weight: 400;
    color: #94a3b8;
    margin-left: 8px;
}
.lt-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.lt-export-btn {
    font-size: 13px;
    padding: 7px 16px;
    flex: none;
}

/* ---------- 统计卡 ---------- */
.lt-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.lt-stat {
    flex: 1;
    min-width: 150px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: border-color .15s;
    background: #fafafa;
}
.lt-stat:hover { border-color: #94a3b8; }
.lt-stat-on { border-color: #94a3b8; background: #fff; box-shadow: inset 0 0 0 1px #e2e8f0; }
.lt-stat-n { font-size: 26px; font-weight: 700; color: #1e293b; line-height: 1.2; }
.lt-stat-label { font-size: 12px; color: #64748b; margin-top: 2px; }
.lt-st-long .lt-stat-n { color: #b91c1c; }
.lt-st-upcoming .lt-stat-n { color: #1d4ed8; }
.lt-st-punch .lt-stat-n { color: #b45309; }

/* ---------- 过滤条 / chips ---------- */
.lt-filter { margin-bottom: 12px; }
.lt-filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lt-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.lt-chip {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #475569;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all .15s;
}
.lt-chip:hover { border-color: #94a3b8; }
.lt-chip.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.lt-input {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
    color: #1e293b;
    outline: none;
    background: #fff;
}
.lt-input:focus { border-color: #3b82f6; }
.lt-select { cursor: pointer; }

/* ---------- 表格 ---------- */
.lt-table-wrap { overflow-x: auto; }
.lt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lt-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}
.lt-table td {
    padding: 10px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}
.lt-table tr:hover td { background: #f8fafc; }
.lt-row-long td:first-child { box-shadow: inset 3px 0 0 #b91c1c; }

.lt-emp { font-weight: 600; }
.lt-sub { font-size: 11px; color: #94a3b8; margin-top: 1px; }
.lt-dept { color: #475569; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lt-seg {
    display: inline-block;
    background: #f1f5f9;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 12px;
    color: #334155;
    margin: 1px 4px 1px 0;
    white-space: nowrap;
}

.lt-ret-soon { color: #b45309; font-weight: 600; }
.lt-ret-hint { color: #b45309; }
.lt-num-hot { color: #b91c1c; font-size: 15px; }

.lt-badge {
    display: inline-block;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 12px;
    white-space: nowrap;
}
.lt-bg-long { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.lt-bg-normal { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }
.lt-bg-upcoming { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

.lt-btn-ghost {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #64748b;
    border-radius: 7px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all .15s;
}
.lt-btn-ghost:hover { border-color: #b91c1c; color: #b91c1c; }
.lt-btn-primary {
    background: #3b82f6;
    border: 1px solid #3b82f6;
    color: #fff;
    border-radius: 8px;
    padding: 7px 20px;
    font-size: 13px;
    cursor: pointer;
}
.lt-btn-primary:hover { background: #2563eb; }

.lt-count {
    padding: 10px 4px 0;
    font-size: 12px;
    color: #94a3b8;
}

.lt-empty { text-align: center; padding: 32px 0; color: #94a3b8; font-size: 13px; }
.lt-empty-ok { color: #16a34a; }

/* ---------- 配置区 ---------- */
.lt-config-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    user-select: none;
}
.lt-config-head:hover { color: #1e293b; }
.lt-arrow { color: #94a3b8; }

.lt-cfg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px 24px;
    padding: 14px 0 4px;
}
.lt-cfg-field { display: flex; align-items: center; gap: 8px; }
.lt-cfg-field label { font-size: 13px; color: #334155; white-space: nowrap; }
.lt-cfg-hint { font-size: 11px; color: #94a3b8; }

.lt-cfg-section { padding: 12px 0 2px; border-top: 1px dashed #f1f5f9; margin-top: 12px; }
.lt-cfg-label { font-size: 13px; color: #334155; margin-bottom: 8px; }
.lt-cfg-thr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px 16px;
}
.lt-cfg-thr {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #475569;
}
.lt-cfg-actions { padding: 14px 0 4px; display: flex; align-items: center; gap: 12px; }

.lt-ignore-list { display: flex; flex-wrap: wrap; gap: 6px; }
.lt-ignore-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
    color: #475569;
}
.lt-ignore-item a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    line-height: 1;
}
.lt-ignore-item a:hover { color: #b91c1c; }

@media (max-width: 768px) {
    .lt-stat { min-width: 120px; }
    .lt-table th, .lt-table td { padding: 8px 6px; }
}
