/* ══ Blok "Tabel Spreadsheet (Live)" (page builder) ══
   Markup dirender server-side oleh App\Helpers\SheetTableRenderer.
   Gaya header tabel (latar gelap, teks putih) berasal dari aturan tabel umum
   di show_page.css / show_post.css. */

/* Warna link sel "URL||Label" — custom property diset inline per tabel.
   !important untuk mengalahkan .pg-body a / .sp-body a. */
.bk-sheet-table td a,
.bk-sheet-table td a:visited {
    color: var(--bk-sheet-link, #0d6efd) !important;
    text-decoration: underline;
    word-break: break-word;
}
.bk-sheet-table td a:hover,
.bk-sheet-table td a:focus {
    color: var(--bk-sheet-link-hover, #0a58ca) !important;
}

/* Pencarian */
.bk-sheet-table .bk-sheet-search input[type="search"] {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 15px;
    max-width: 380px;
}

.bk-sheet-table thead th { vertical-align: middle; }
.bk-sheet-table table { margin-top: 0; }

/* Paginasi — tombol minimal 40×40px, teks 15px. Link pager bukan link konten:
   reset warna/underline dari .pg-body a / .sp-body a. */
.bk-sheet-table .bk-sheet-pagination .page-link {
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-decoration: none;
}
.bk-sheet-table .bk-sheet-pagination .page-item:not(.active):not(.disabled) .page-link {
    color: var(--bk-sheet-link, #0d6efd);
}
.bk-sheet-table .bk-sheet-pagination .page-item.active .page-link {
    color: #fff;
    background-color: var(--bk-sheet-link, #0d6efd);
    border-color: var(--bk-sheet-link, #0d6efd);
}

/* ── Spreadsheet Embed: bingkai kartu (opsi frame 'card') ── */
.bk-ssheet { border: 1px solid #eaecf0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .05), 0 16px 36px -22px rgba(16, 24, 40, .25); }
.bk-ssheet-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #eaecf0; background: #f9fafb; }
.bk-ssheet-ic { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: #e7f6ec; color: #0f9d58; font-size: 17px; flex: 0 0 auto; }
.bk-ssheet-title { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; color: #101828; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-ssheet a.bk-ssheet-open { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; font-size: 13px; font-weight: 650; color: #344054 !important; text-decoration: none !important; white-space: nowrap; }
.bk-ssheet a.bk-ssheet-open:hover { border-color: #0f9d58; color: #0f9d58 !important; }
.bk-ssheet-body iframe { display: block; }
@media (max-width: 575.98px) { .bk-ssheet a.bk-ssheet-open span, .bk-ssheet a.bk-ssheet-open { font-size: 0; padding: 8px; } .bk-ssheet a.bk-ssheet-open i { font-size: 15px; } }
