/* ================================================================
   TABEL — standalone CSS, reusable untuk semua halaman tabel
   Warna mengikuti CSS variable tema dari head.php
   ================================================================ */

/* ─── BREADCRUMB ─────────────────────────────────────────────── */
.tbl-bc-bar {
    background: #fff;
    border-bottom: 1px solid #e8ede9;
    padding: 10px 0;
}
.tbl-bc {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: #7a9487;
}
.tbl-bc li + li::before { content: '/'; margin-right: 6px; color: #b0c4ba; }
.tbl-bc li a { color: var(--green-main); text-decoration: none; }
.tbl-bc li a:hover { text-decoration: underline; }
.tbl-bc li.active { color: #4a6358; }
.tbl-bc li i { margin-right: 4px; }

/* ─── WRAPPER ────────────────────────────────────────────────── */
.tbl-wrap {
    background: #f0f2f0;
    padding: 32px 0 52px;
    min-height: 60vh;
    overflow-x: hidden;
}

/* ─── HEADER BAR ─────────────────────────────────────────────── */
.tbl-header-bar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    padding: 16px 22px;
    margin-bottom: 24px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
}
.tbl-header-bar h2 {
    font-size: 16px; font-weight: 700; color: var(--green-dark);
    margin: 0; display: flex; align-items: center; gap: 10px;
}
.tbl-header-bar h2::before {
    content: ''; display: block;
    width: 4px; height: 20px; border-radius: 2px;
    background: var(--green-main); flex-shrink: 0;
}
.tbl-header-bar h2 i { color: var(--green-main); font-size: 18px; }
.tbl-count {
    font-size: 13px; color: #7a9487; font-weight: 500;
}
.tbl-count strong { color: var(--green-main); }

/* ─── TABLE CARD ─────────────────────────────────────────────── */
.tbl-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    overflow: hidden;
}

.tbl-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table.tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #1a2b1f;
}

table.tbl thead tr {
    background: linear-gradient(135deg, var(--green-dark), var(--green-main));
}
table.tbl thead th {
    padding: 14px 18px;
    font-size: 13px; font-weight: 600;
    color: #fff; text-align: left;
    white-space: nowrap;
    border: none;
}
table.tbl thead th.center { text-align: center; }

table.tbl tbody tr {
    border-bottom: 1px solid #edf2ee;
    transition: background .15s;
}
table.tbl tbody tr:last-child { border-bottom: none; }
table.tbl tbody tr:hover { background: #f4f9f5; }
table.tbl tbody tr:nth-child(even) { background: #f8faf8; }
table.tbl tbody tr:nth-child(even):hover { background: #f0f6f1; }

table.tbl tbody td {
    padding: 13px 18px;
    vertical-align: middle;
    border: none;
    line-height: 1.5;
}
table.tbl tbody td.center { text-align: center; }
table.tbl tbody td.no {
    width: 48px; text-align: center;
    font-weight: 600; color: #7a9487; font-size: 13px;
}

/* Badge tahun */
.tbl-badge {
    display: inline-flex; align-items: center;
    background: rgba(var(--primary-mid-rgb), .1);
    color: var(--green-main);
    font-size: 12px; font-weight: 700;
    padding: 3px 10px; border-radius: 20px;
}

/* ─── EMPTY STATE ────────────────────────────────────────────── */
.tbl-empty {
    text-align: center; padding: 60px 20px; color: #7a9487;
    background: #fff; border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.tbl-empty i { font-size: 48px; display: block; margin-bottom: 14px; }
.tbl-empty p { font-size: 15px; margin: 0; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 767px) {
    .tbl-wrap { padding: 20px 0 36px; }
    table.tbl thead th,
    table.tbl tbody td { padding: 11px 12px; font-size: 13px; }
}
