/* =========================================================================
   TIKET LAPORAN — MODERN HELP DESK THEME
   File: css/tiket_laporan.css
   ========================================================================= */

.area-tiket-laporan { padding: 4px 0 24px; color: #1f2a44; }

/* ---------- Hero ---------- */
.tl-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 24px 28px;
    margin-bottom: 18px;
    border-radius: 20px;
    background: radial-gradient(120% 170% at 0% 0%, #3b82f6 0%, #1d4ed8 48%, #16379b 100%);
    box-shadow: 0 18px 40px rgba(29, 78, 216, .28);
    overflow: hidden;
}
.tl-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.24), transparent 70%);
    pointer-events: none;
}
.tl-hero-left { position: relative; z-index: 1; }
.tl-hero-badge {
    display: inline-block;
    padding: 4px 11px;
    margin-bottom: 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    color: #eaf1ff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}
.tl-hero h2 {
    margin: 0 0 6px;
    font-size: 25px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .2px;
}
.tl-hero p { margin: 0; color: rgba(255,255,255,.82); font-size: 13.5px; }
.tl-hero p.tl-hero-note {
    display: inline-block;
    max-width: 100%;
    margin: 10px 0 0;
    padding: 5px 11px;
    border-radius: 10px;
    background: rgba(255,255,255,.14);
    color: rgba(255,255,255,.92);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}
.tl-hero p.tl-hero-note i { margin-right: 4px; }
.tl-hero p.tl-hero-note.is-closed {
    background: rgba(185, 28, 28, .45);
    color: #ffe4e4;
}
.tl-hero-actions { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Statistik ---------- */
.tl-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.tl-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e8eef8;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(31, 50, 92, .06);
    transition: transform .18s ease, box-shadow .18s ease;
}
.tl-stat:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(31, 50, 92, .1); }
.tl-stat-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.tl-stat-body { min-width: 0; }
.tl-stat-label {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .9px;
    text-transform: uppercase;
    color: #8a97ad;
}
.tl-stat-value { font-size: 27px; font-weight: 800; line-height: 1.15; color: #1f2a44; }
.tl-stat.is-open   .tl-stat-icon { background: #fff3e6; color: #e67e22; }
.tl-stat.is-proses .tl-stat-icon { background: #e9f1ff; color: #2f6fed; }
.tl-stat.is-closed .tl-stat-icon { background: #e7f8ee; color: #16a34a; }
.tl-stat.is-total  .tl-stat-icon { background: #f1ecff; color: #7c5cf0; }

/* ---------- Panel ---------- */
.tl-panel {
    background: #fff;
    border: 1px solid #e8eef8;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(31, 50, 92, .07);
    overflow: hidden;
}
.tl-panel .tl-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid #eef2f8;
    background: linear-gradient(180deg, #fff, #fbfdff);
}
.tl-panel .tl-head .tl-title {
    font-size: 15px;
    font-weight: 800;
    color: #1f2a44;
    margin-right: auto;
    letter-spacing: .2px;
}
.tl-panel .tl-head .form-control {
    height: 38px;
    width: auto;
    min-width: 150px;
    border-radius: 11px;
    border: 1px solid #e2e9f5;
    background: #f8faff;
    color: #33415c;
    font-size: 13px;
    box-shadow: none;
}
.tl-panel .tl-head .form-control:focus {
    border-color: #9dc0ff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, .12);
}

/* ---------- Tabel ---------- */
.tl-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.tl-table thead th {
    background: #f5f8ff;
    color: #6b7a93;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    text-align: left;
    padding: 13px 18px;
    border-bottom: 1px solid #e8eef8;
    white-space: nowrap;
}
.tl-table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5fb;
    font-size: 13px;
    color: #37455e;
    vertical-align: middle;
}
.tl-table tbody tr { transition: background .15s ease; }
.tl-table tbody tr:nth-child(even) td { background: #fbfdff; }
.tl-table tbody tr:hover td { background: #f5f9ff; }
.tl-table tbody tr:last-child td { border-bottom: none; }
.tl-table td .tl-btn + .tl-btn { margin-left: 6px; }
.tl-table .tl-empty { text-align: center; color: #9aa8bd; padding: 30px 10px; }

/* ---------- Badge status / dampak ---------- */
.tl-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2px;
    white-space: nowrap;
}
.tl-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .85;
}
.tl-badge.s1 { background: #fff4e5; color: #b45309; }
.tl-badge.s2 { background: #e8f1ff; color: #1d4ed8; }
.tl-badge.s3 { background: #e7f8ee; color: #15803d; }
.tl-badge.s4 { background: #fdeaea; color: #b91c1c; }
.tl-badge.d1 { background: #e7f8ee; color: #15803d; }
.tl-badge.d2 { background: #fff7e6; color: #b45309; }
.tl-badge.d3 { background: #fdeaea; color: #b91c1c; }

/* ---------- Tombol ---------- */
.tl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: all .16s ease;
}
.tl-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    box-shadow: 0 8px 18px rgba(29, 78, 216, .28);
}
.tl-btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 11px 22px rgba(29, 78, 216, .36); }
.tl-btn-light { background: #eef4ff; color: #1d4ed8; }
.tl-btn-light:hover { background: #e0ebff; color: #1d4ed8; }
.tl-btn-danger { background: #fdecec; color: #b91c1c; }
.tl-btn-danger:hover { background: #fbdada; color: #b91c1c; }
.tl-btn-ghost {
    background: rgba(255,255,255,.14);
    color: #fff;
    border: 1px solid rgba(255,255,255,.3);
}
.tl-btn-ghost:hover { background: rgba(255,255,255,.24); color: #fff; }
.tl-btn-excel {
    background: linear-gradient(135deg, #22c55e, #15803d);
    color: #fff;
    box-shadow: 0 8px 18px rgba(21, 128, 61, .26);
}
.tl-btn-excel:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 11px 22px rgba(21, 128, 61, .34); }
.tl-panel .tl-head .tl-btn-excel { height: 38px; white-space: nowrap; }
.tl-btn:disabled,
.tl-btn.is-disabled {
    cursor: not-allowed;
    opacity: .55;
    transform: none !important;
    box-shadow: none !important;
}
.tl-hero-actions .tl-btn { height: 40px; }
.tl-hero-actions .tl-btn-primary { background: #fff; color: #1d4ed8; box-shadow: 0 8px 18px rgba(8, 30, 90, .22); }
.tl-hero-actions .tl-btn-primary:hover { background: #f3f7ff; color: #1d4ed8; }

/* ---------- Dropdown aksi ---------- */
.tl-action-toggle {
    white-space: nowrap;
    background: linear-gradient(135deg, #f0f6ff, #e2edff);
    color: #1d4ed8;
    border: 1px solid #d3e2fb;
    box-shadow: 0 3px 10px rgba(47, 111, 237, .12);
}
.tl-action-toggle:hover {
    background: linear-gradient(135deg, #e3eeff, #d5e5ff);
    color: #16379b;
    transform: translateY(-1px);
}
.tl-action-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    font-size: 10.5px;
    box-shadow: 0 3px 8px rgba(29, 78, 216, .28);
}
.tl-action-ico i { color: #ffffff; }
.tl-action-caret { font-size: 11px; margin-left: 2px; opacity: .85; }
.tl-action-menu {
    position: fixed;
    z-index: 10600;
    min-width: 150px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid #e3eaf6;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(10, 25, 50, .18);
    display: none;
}
.tl-action-menu.show { display: block; }
.tl-action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: #37455e;
    font-size: 12.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.tl-action-item:hover { background: #eef4ff; color: #1d4ed8; }
.tl-action-item i { width: 14px; text-align: center; color: #1d4ed8; }
#tlActDetail i { color: #2f6fed; }
#tlActChat i { color: #16a34a; }
#tlActSetPic i { color: #e67e22; }

/* ---------- User chip ---------- */
.tl-user { display: inline-flex; align-items: center; gap: 8px; }
.tl-avatar {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #e8f1ff;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
}

/* ---------- Lampiran (ikon berwarna) ---------- */
.tl-lampiran {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 9px;
    background: #eef4ff;
    color: #1d4ed8 !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    vertical-align: middle;
}
.tl-lampiran:hover { background: #dfeaff; color: #1d4ed8 !important; text-decoration: none; }
.tl-lampiran i { color: #1d4ed8; }

/* ---------- Loading ---------- */
.tl-loading { text-align: center; padding: 38px 20px; color: #8a97ad; font-size: 13px; }
.tl-loading .tl-spin {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
    border: 3px solid #e3ecff;
    border-top-color: #2f6fed;
    border-radius: 50%;
    animation: tlSpin .75s linear infinite;
}
@keyframes tlSpin { to { transform: rotate(360deg); } }

/* ---------- Modal ---------- */
.tl-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    z-index: 10500;
    display: none;
}
.tl-modal-mask.show { display: block; }
.tl-modal {
    position: fixed;
    z-index: 10501;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 740px;
    max-width: calc(100% - 30px);
    max-height: calc(100vh - 48px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 28px 70px rgba(10, 25, 50, .34);
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.tl-modal.show { display: flex; }
.tl-modal.tl-modal-sm { width: 540px; }
.tl-modal.tl-modal-center {
    width: 820px;
    max-width: calc(100% - 40px);
    top: 50%;
    transform: translate(-50%, -50%);
}
.tl-modal.tl-modal-setpic {
    width: 560px;
    max-width: calc(100% - 40px);
    top: 50%;
    transform: translate(-50%, -50%);
}
.tl-modal .tl-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: none;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8 60%, #16379b);
    color: #fff;
    flex: 0 0 auto;
}
.tl-modal .tl-modal-head .tl-modal-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15.5px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .2px;
}
.tl-modal .tl-modal-head .tl-modal-title i { opacity: .9; }
.tl-modal .tl-modal-close {
    border: none;
    background: rgba(255,255,255,.18);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    transition: all .16s ease;
}
.tl-modal .tl-modal-close:hover { background: rgba(255,255,255,.32); color: #fff; }
.tl-modal .tl-modal-body {
    padding: 20px 22px;
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
.tl-modal .tl-modal-foot {
    padding: 15px 22px;
    border-top: 1px solid #eef2f8;
    text-align: right;
    background: #fbfdff;
    flex: 0 0 auto;
}

/* ---------- Field / form ---------- */
.tl-field { margin-bottom: 15px; }
.tl-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #55647d;
    margin-bottom: 6px;
}
.tl-field label .req { color: #e02424; }
.tl-field .form-control {
    height: 40px;
    border-radius: 11px;
    border: 1px solid #e2e9f5;
    background: #f8faff;
    color: #33415c;
    font-size: 13.5px;
    box-shadow: none;
}
textarea.tl-field .form-control,
.tl-field textarea.form-control { height: auto; min-height: 84px; }
.tl-field .form-control:focus {
    border-color: #9dc0ff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, .12);
}
.tl-field .tl-help { font-size: 11.5px; color: #9aa8bd; margin-top: 5px; }

/* ---------- Alert ---------- */
.tl-alert { display: none; margin-bottom: 14px; padding: 11px 14px; border-radius: 10px; font-size: 13px; }
.tl-alert.err { display: block; background: #fdecec; color: #b91c1c; border: 1px solid #f8d2d2; }
.tl-alert.ok  { display: block; background: #e7f8ee; color: #15803d; border: 1px solid #c9efd9; }

/* ---------- Riwayat / tanya jawab ---------- */
.tl-riwayat { margin-top: 6px; }
.tl-riwayat .tl-item {
    border-left: 3px solid #3b82f6;
    background: #f7faff;
    border-radius: 0 10px 10px 0;
    padding: 11px 15px;
    margin-bottom: 10px;
}
.tl-riwayat .tl-item .tl-meta { font-size: 11.5px; color: #9aa8bd; margin-bottom: 4px; }
.tl-riwayat .tl-item .tl-meta b { color: #55647d; }
.tl-riwayat .tl-item .tl-isi { color: #37455e; white-space: pre-wrap; font-size: 13px; word-break: break-word; }

/* ---------- Info grid ---------- */
.tl-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #e7eefa;
}
.tl-info-grid .tl-info { min-width: 140px; }
.tl-info-grid .tl-info .lbl {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #9aa8bd;
    font-weight: 800;
}
.tl-info-grid .tl-info .val { font-size: 13.5px; color: #1f2a44; font-weight: 600; word-break: break-word; }

/* ---------- Chat / Tanya Jawab (ticket style) ---------- */
.tl-modal-chat {
    width: 860px;
    max-width: calc(100% - 40px);
    height: 80vh;
    max-height: calc(100vh - 48px);
    min-height: 420px;
    border-radius: 22px;
    /* layout grid: header - body (scroll) - template - input/kirim */
    overflow: hidden;
    background: #edf3fb;
}
.tl-modal-chat.show {
    display: block;
}
/* Header tetap di atas */
.tl-modal-chat .tl-modal-head {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    z-index: 2;
}
/* Body mengisi antara header & footer (top/bottom diatur JS) */
.tl-modal-chat .tl-modal-body {
    position: absolute;
    top: 54px;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: none;
    overflow: hidden;
}
/* Footer absolute: selalu menempel di bawah */
.tl-chat-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    background: #ffffff;
}
.tl-chat-info {
    padding: 13px 20px;
    background: #f5f8ff;
    border-bottom: 1px solid #eef2f8;
    font-size: 12.5px;
    color: #55647d;
    flex: 0 0 auto;
}
.tl-chat-info b { color: #1f2a44; }
.tl-chat-list {
    flex: 1 1 auto;
    min-height: 0;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background-color: #edf3fb;
    background-image: radial-gradient(rgba(47, 111, 237, .06) 1px, transparent 1px);
    background-size: 18px 18px;
}
.tl-chat-item { display: flex; gap: 9px; align-items: flex-end; max-width: 84%; }
.tl-chat-item.is-me { margin-left: auto; flex-direction: row-reverse; }
.tl-chat-avatar {
    width: 30px; height: 30px; flex: 0 0 auto;
    border-radius: 50%;
    background: #e8f1ff; color: #1d4ed8;
    display: flex; align-items: center; justify-content: center;
    font-size: 10.5px; font-weight: 800; text-transform: uppercase;
}
.tl-chat-item.is-me .tl-chat-avatar { background: #1d4ed8; color: #fff; }
.tl-chat-main { min-width: 0; }
.tl-chat-meta { font-size: 10.5px; color: #9aa8bd; margin-bottom: 4px; }
.tl-chat-item.is-me .tl-chat-meta { text-align: right; }
.tl-chat-bubble {
    padding: 10px 13px;
    background: #ffffff;
    border: 1px solid #cfcfd1;
    border-radius: 15px 15px 15px 4px;
    color: #37455e;
    font-size: 13px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    box-shadow: 0 6px 16px rgba(31, 50, 92, .10);
}
.tl-chat-item.is-me .tl-chat-bubble {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    color: #fff;
    border-radius: 15px 15px 4px 15px;
    box-shadow: 0 8px 18px rgba(29,78,216,.22);
}
.tl-chat-empty { text-align: center; color: #9aa8bd; font-size: 13px; padding: 26px 10px; }
.tl-chat-compose {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 13px 16px;
    border-top: 1px solid #eef2f8;
    background: #f7faff;
}
.tl-chat-compose textarea {
    flex: 1 1 auto;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    padding: 10px 13px;
    border: 1px solid #e2e9f5;
    border-radius: 12px;
    background: #f8faff;
    color: #33415c;
    font-size: 13px;
    resize: none;
}
.tl-chat-compose textarea:focus {
    outline: none;
    border-color: #9dc0ff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(47,111,237,.12);
}
.tl-chat-compose .tl-btn { height: 42px; flex: 0 0 auto; }

/* template balasan (admin & user) — tampil semua, wrap ke bawah */
.tl-chat-templates {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 16px;
    background: #ffffff;
    border-top: 2px dashed #dbe6f7;
}
.tl-chat-templates::before,
.tl-chat-templates::after {
    content: "";
    position: absolute;
    top: -17px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(15, 23, 42, .65);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .6);
    z-index: 3;
    pointer-events: none;
}
.tl-chat-templates::before { left: -17px; }
.tl-chat-templates::after  { right: -17px; }
.tl-chat-template {
    flex: 0 0 auto;
    display: inline-block;
    padding: 6px 11px;
    border-radius: 999px;
    background: #eef4ff;
    border: 1px solid #dbe7fb;
    color: #1d4ed8;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: all .16s ease;
}
.tl-chat-template:hover { background: #dfeaff; color: #1d4ed8; }

/* ---------- Dashboard PIC ---------- */
.tl-pic-dash {
    background: #fff;
    border: 1px solid #e8eef8;
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(31, 50, 92, .06);
    padding: 16px 20px;
    margin-bottom: 18px;
}
.tl-pic-dash-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 800;
    color: #1f2a44;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.tl-pic-dash-title i { color: #2f6fed; }
.tl-pic-cards { display: flex; flex-wrap: wrap; gap: 12px; }
.tl-pic-card {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 220px;
    max-width: 330px;
    min-width: 200px;
    padding: 12px 14px;
    background: #f8faff;
    border: 1px solid #e2e9f5;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: all .16s ease;
}
.tl-pic-card:hover {
    background: #eef4ff;
    border-color: #bcd4fb;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(47, 111, 237, .12);
}
.tl-pic-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #e8f1ff;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.tl-pic-info { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.tl-pic-name { font-size: 13px; font-weight: 800; color: #1f2a44; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-pic-jab { font-size: 11px; color: #8a97ad; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-pic-count {
    flex: 0 0 auto;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(29, 78, 216, .25);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .tl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .tl-hero { padding: 20px; }
    .tl-hero h2 { font-size: 21px; }
    .tl-modal-chat { width: calc(100% - 20px); height: 88vh; min-height: 0; }
    .tl-panel .tl-head .tl-title { width: 100%; }
    .tl-panel .tl-head .form-control { flex: 1 1 calc(50% - 6px); width: auto; min-width: 0; }
    .tl-panel .tl-head .tl-btn-excel { width: 100%; }

    /* Tabel menjadi kartu bertumpuk agar kolom tidak terpotong */
    .tl-table thead { display: none; }
    .tl-table,
    .tl-table tbody,
    .tl-table tr,
    .tl-table td { display: block; width: 100%; }

    .tl-table tbody tr {
        border: 1px solid #e8eef8;
        border-radius: 12px;
        margin: 10px 12px;
        padding: 6px 12px;
        background: #fff;
        box-shadow: 0 6px 16px rgba(31, 50, 92, .05);
    }
    .tl-table tbody tr:nth-child(even) td,
    .tl-table tbody tr:hover td { background: transparent; }

    .tl-table tbody td {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        padding: 7px 0;
        border-bottom: 1px dashed #eef2f8;
        font-size: 13px;
        word-break: break-word;
    }
    .tl-table tbody tr td:last-child { border-bottom: none; }

    .tl-table tbody td::before {
        content: attr(data-label);
        flex: 0 0 38%;
        min-width: 96px;
        padding-top: 2px;
        color: #8a97ad;
        font-size: 10.5px;
        font-weight: 800;
        letter-spacing: .5px;
        text-transform: uppercase;
    }
}
