/**
 * SMK Smart Library - Recommendation & Mobile Responsive Stylesheet
 * Integrasi Sistem Rekomendasi Buku & Optimasi Tampilan Smartphone
 * Tema: SMK Negeri 3 Surakarta (Cartoon / Academic Modern)
 */

/* ==========================================================================
   1. Rekomendasi Buku Serupa (Detail Page & Home)
   ========================================================================== */

.smk-rec-container {
  margin-top: 36px;
  margin-bottom: 24px;
  padding-top: 24px;
  border-top: 1px dashed #dce8ff;
}

.smk-rec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.smk-rec-header-copy {
  display: flex;
  flex-direction: column;
}

.smk-rec-badge-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 6px;
}

.smk-rec-title {
  font-size: 1.35rem;
  font-weight: 850;
  color: #173568;
  margin: 0;
  line-height: 1.3;
}

.smk-rec-subtitle {
  font-size: 0.88rem;
  color: #557099;
  margin: 4px 0 0 0;
}

.smk-rec-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 750;
  color: #2563eb;
  background: #eff6ff;
  padding: 8px 14px;
  border-radius: 12px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  border: 1px solid #dbeafe;
}

.smk-rec-view-all:hover {
  background: #2563eb;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Grid Kartu Rekomendasi */
.smk-rec-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

@media (max-width: 1200px) {
  .smk-rec-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 991.98px) {
  .smk-rec-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (max-width: 575.98px) {
  .smk-rec-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Kartu Buku */
.smk-rec-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e0ebff;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 6px 18px rgba(28, 70, 137, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  text-decoration: none !important;
  color: inherit !important;
  height: 100%;
  overflow: hidden;
}

.smk-rec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
  border-color: #bad3ff;
}

.smk-rec-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 2.9;
  background: #f1f6ff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.smk-rec-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.smk-rec-card:hover .smk-rec-cover {
  transform: scale(1.04);
}

.smk-rec-badge-score {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
  letter-spacing: 0.02em;
}

.smk-rec-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px 4px 4px 4px;
}

.smk-rec-book-title {
  font-size: 13.5px;
  font-weight: 750;
  color: #173568;
  line-height: 1.35;
  margin: 0 0 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 36px;
}

.smk-rec-book-author {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.3;
  margin: 0 0 8px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.smk-rec-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}

.smk-rec-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
  background: #f0fdf4;
  padding: 2px 7px;
  border-radius: 6px;
}

.smk-rec-empty {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}


/* ==========================================================================
   2. Mobile Bottom Navigation Bar (Handphone Native UX)
   ========================================================================== */

.smk-mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body.smkn3-academic-theme {
    padding-bottom: 74px !important;
  }

  .smk-mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1300;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(15, 55, 100, 0.08);
    justify-content: space-around;
    align-items: center;
    padding: 0 8px calc(env(safe-area-inset-bottom, 0px));
  }

  .smk-bnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: #64748b;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 600;
    transition: color 0.18s ease;
    gap: 3px;
  }

  .smk-bnav-item svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: transform 0.18s ease, stroke 0.18s ease;
  }

  .smk-bnav-item.active {
    color: #2563eb;
    font-weight: 800;
  }

  .smk-bnav-item.active svg {
    stroke: #2563eb;
    transform: translateY(-2px);
  }

  .smk-bnav-item:active {
    transform: scale(0.94);
  }
}


/* ==========================================================================
   3. Optimasi Responsif Layar Handphone (Detail Buku & Beranda)
   ========================================================================== */

@media (max-width: 768px) {
  /* Detail Buku di Smartphone */
  .academic-detail-row {
    margin: 0 !important;
  }

  .academic-detail-row > [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .academic-detail-cover-card {
    padding: 16px !important;
    margin-bottom: 16px !important;
    border-radius: 20px !important;
    background: linear-gradient(180deg, #ffffff, #f6f9fe) !important;
    border: 1px solid #dce8ff !important;
  }

  .academic-book-cover.academic-detail-cover {
    max-width: 175px !important;
    margin: 0 auto;
  }

  .academic-book-cover.academic-detail-cover img {
    border-radius: 14px !important;
    box-shadow: 0 10px 24px rgba(28, 65, 126, 0.18) !important;
    max-height: 250px;
    object-fit: cover;
  }

  .academic-detail-loan-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }

  .academic-detail-basket-button,
  .academic-detail-read-button {
    width: 100% !important;
    min-height: 48px !important;
    padding: 12px 16px !important;
    border-radius: 14px !important;
    justify-content: center !important;
    font-size: 14px !important;
  }

  /* Metadata dl.row di Handphone */
  .academic-detail-row dl.row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 !important;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e0ebff;
    border-radius: 18px;
  }

  .academic-detail-row dl.row dt {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 2px;
  }

  .academic-detail-row dl.row dd {
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #f1f5f9;
  }

  .academic-detail-row dl.row dd:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  /* Judul Buku Detail */
  .academic-detail-row h4.font-weight-bold {
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
    margin-top: 8px;
  }

  /* Layanan Cepat di Beranda */
  .academic-quick-services {
    padding-left: 12px !important;
    padding-right: 12px !important;
    gap: 10px !important;
  }

  .academic-service-item {
    padding: 12px !important;
    border-radius: 16px !important;
  }
}

@media (max-width: 480px) {
  /* Layar HP Sempit (< 480px) */
  .smk-cartoon-hero-inner {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .smk-cartoon-copy h1 {
    font-size: 1.65rem !important;
    line-height: 1.25 !important;
  }

  .smk-cartoon-copy p {
    font-size: 13.5px !important;
  }

  .smk-rec-book-title {
    font-size: 12.5px;
    min-height: 32px;
  }

  .smk-rec-card {
    padding: 8px;
    border-radius: 14px;
  }
}

/* ==========================================================================
   4. Redesign Halaman Profil Anggota (Laptop & Smartphone)
   Sesuai permintaan: Hanya area profil anggota, menu lain tidak diubah.
   ========================================================================== */

/* --- Tampilan Desktop / Laptop (min-width: 992px) --- */
@media (min-width: 992px) {
  body.is-member-page .academic-member-content > .d-flex {
    display: flex !important;
    flex-direction: row !important;
    background: #ffffff !important;
    border: 1px solid #dce8ff !important;
    border-radius: 24px !important;
    box-shadow: 0 12px 36px rgba(18, 54, 95, 0.07) !important;
    overflow: hidden !important;
    margin-top: 24px;
    margin-bottom: 24px;
  }

  body.is-member-page #member_sidebar {
    width: 260px !important;
    flex: 0 0 260px !important;
    background: linear-gradient(180deg, #f0f6ff 0%, #f8faff 100%) !important;
    border-right: 1px solid #e0ebff !important;
    padding: 32px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  body.is-member-page #member_sidebar .p-4 {
    padding: 0 !important;
    margin-bottom: 24px !important;
  }

  body.is-member-page #member_sidebar img {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 4px solid #ffffff !important;
    box-shadow: 0 8px 24px rgba(23, 98, 199, 0.16) !important;
  }

  body.is-member-page #member_sidebar a.btn-danger {
    margin-top: auto !important;
    width: 100% !important;
    border-radius: 12px !important;
    font-weight: 750 !important;
    padding: 11px 16px !important;
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
    transition: all 0.2s ease !important;
  }

  body.is-member-page #member_sidebar a.btn-danger:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25) !important;
  }

  body.is-member-page #member_content {
    padding: 32px 36px !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }

  body.is-member-page #member_content .text-sm.text-grey-dark {
    display: inline-flex !important;
    align-items: center !important;
    background: #e0f2fe !important;
    color: #0284c7 !important;
    padding: 4px 12px !important;
    border-radius: 999px !important;
    font-weight: 750 !important;
    font-size: 12px !important;
    margin-bottom: 10px !important;
  }

  body.is-member-page #member_content h1 {
    font-size: 1.85rem !important;
    font-weight: 850 !important;
    color: #173568 !important;
    margin-bottom: 6px !important;
  }

  body.is-member-page #member_content #info {
    width: 100% !important;
    max-width: 100% !important;
    color: #557099 !important;
    font-size: 14.5px !important;
    line-height: 1.5 !important;
  }

  body.is-member-page #member_content .nav.nav-tabs {
    border-bottom: 2px solid #e2e8f0 !important;
    gap: 8px !important;
  }

  body.is-member-page #member_content .nav.nav-tabs .nav-item {
    margin-bottom: -2px !important;
  }

  body.is-member-page #member_content .nav.nav-tabs .nav-link {
    border: none !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 10px 18px !important;
    font-weight: 650 !important;
    color: #64748b !important;
    background: transparent !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    transition: all 0.2s ease !important;
  }

  body.is-member-page #member_content .nav.nav-tabs .nav-link:not(.active) {
    background: transparent !important;
    color: #475569 !important;
    border-bottom: 3px solid transparent !important;
    box-shadow: none !important;
  }

  body.is-member-page #member_content .nav.nav-tabs .nav-link:hover {
    color: #2563eb !important;
    background: #f8fafc !important;
  }

  body.is-member-page #member_content .nav.nav-tabs .nav-link.active {
    background: #eff6ff !important;
    color: #2563eb !important;
    border-bottom: 3px solid #2563eb !important;
    font-weight: 800 !important;
  }

  body.is-member-page #member_content .nav.nav-tabs + div {
    border: 1px solid #e2e8f0 !important;
    border-top: none !important;
    border-radius: 0 0 16px 16px !important;
    padding: 24px !important;
    background: #ffffff !important;
  }
}

/* --- Tampilan Smartphone / Handphone (max-width: 991.98px) --- */
@media (max-width: 991.98px) {
  body.is-member-page .academic-member-content > .d-flex {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #dce8ff !important;
    border-radius: 20px !important;
    box-shadow: 0 6px 20px rgba(18, 54, 95, 0.06) !important;
    overflow: hidden !important;
    margin: 16px 0 24px 0 !important;
  }

  /* Header Foto & Logout Siswa di HP (Bebas Potong) */
  body.is-member-page #member_sidebar {
    width: 100% !important;
    background: linear-gradient(135deg, #eef6ff 0%, #f8faff 100%) !important;
    border-right: none !important;
    border-bottom: 1px solid #e0ebff !important;
    padding: 16px 18px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    box-sizing: border-box !important;
  }

  body.is-member-page #member_sidebar .p-4 {
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  body.is-member-page #member_sidebar img {
    width: 58px !important;
    height: 58px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 4px 14px rgba(23, 98, 199, 0.16) !important;
    display: block !important;
  }

  body.is-member-page #member_sidebar a.btn-danger {
    width: auto !important;
    min-width: 96px !important;
    margin: 0 !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    border-radius: 12px !important;
    font-weight: 750 !important;
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
  }

  /* Area Konten Profil HP */
  body.is-member-page #member_content {
    width: 100% !important;
    padding: 18px 14px !important;
    min-width: 0 !important;
  }

  body.is-member-page #member_content .text-sm.text-grey-dark {
    display: inline-flex !important;
    align-items: center !important;
    background: #e0f2fe !important;
    color: #0284c7 !important;
    padding: 3px 10px !important;
    border-radius: 999px !important;
    font-weight: 750 !important;
    font-size: 11px !important;
    margin-bottom: 8px !important;
  }

  body.is-member-page #member_content h1 {
    font-size: 1.45rem !important;
    line-height: 1.25 !important;
    font-weight: 850 !important;
    color: #173568 !important;
    margin-bottom: 6px !important;
  }

  body.is-member-page #member_content #info,
  body.is-member-page #member_content p.w-75 {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: #557099 !important;
    margin-bottom: 18px !important;
  }

  /* =========================================================================
     TAB NAVIGASI GRID RESPONSIF (100% TAMPIL SEMUA - BEBAS GESER)
     Mengatasi masalah "tidak bisa digeser / tidak bisa diakses" pada HP.
     ========================================================================= */
  body.is-member-page #member_content .nav.nav-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 16px !important;
    width: 100% !important;
  }

  /* Menu navigasi tab (6 tab tersusun rapi 2 kolom x 3 baris) */
  body.is-member-page #member_content .nav.nav-tabs .nav-item {
    width: 100% !important;
    margin: 0 !important;
    flex: none !important;
    grid-column: span 1 !important;
  }

  body.is-member-page #member_content .nav.nav-tabs .nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 10px 8px !important;
    font-size: 12.5px !important;
    font-weight: 750 !important;
    border-radius: 12px !important;
    border: 1px solid #dce8ff !important;
    background: #f8faff !important;
    color: #334155 !important;
    white-space: normal !important;
    line-height: 1.25 !important;
    box-shadow: 0 2px 6px rgba(18, 54, 95, 0.04) !important;
    transition: all 0.2s ease !important;
  }

  body.is-member-page #member_content .nav.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28) !important;
  }

  /* Wadah Konten di Bawah Tab */
  body.is-member-page #member_content .nav.nav-tabs + div {
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 16px 12px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(18, 54, 95, 0.03) !important;
  }

  body.is-member-page #member_content .memberInfoHead {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #173568 !important;
    margin-bottom: 14px !important;
    border-left: 4px solid #2563eb !important;
    padding-left: 10px !important;
  }

  /* Tombol Aksi di Keranjang Judul */
  body.is-member-page .memberBasketAction {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin: 16px 0 !important;
  }

  body.is-member-page .memberBasketAction a.btn {
    width: 100% !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    padding: 10px 14px !important;
  }

  /* =========================================================================
     PERBAIKAN TOTAL TABEL & DATA KOSONG PROFIL ANGGOTA (MOBILE & DESKTOP)
     ========================================================================= */

  /* 1. Pembungkus Tabel Aman dari Terpotong */
  body.is-member-page .academic-table-scroll,
  body.is-member-page .table-responsive,
  body.is-member-page form[name="memberBasketListForm"] {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 12px 0 18px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }

  /* 2. Format Tabel */
  body.is-member-page table,
  body.is-member-page table.memberBasketList,
  body.is-member-page table.memberLoanList,
  body.is-member-page table.loanList,
  body.is-member-page table.reserveList,
  body.is-member-page .academic-table-scroll > table {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #dce8ff !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  /* 3. Nonaktifkan overflow-wrap: anywhere yang memecah kata jadi huruf */
  body.is-member-page th,
  body.is-member-page td,
  body.is-member-page .dataListHeader {
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }

  /* 4. Table Header (TH) */
  body.is-member-page th,
  body.is-member-page .dataListHeader {
    background: #f1f6ff !important;
    color: #173568 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    padding: 12px 14px !important;
    white-space: nowrap !important;
    border: none !important;
    border-bottom: 2px solid #dce8ff !important;
    vertical-align: middle !important;
  }

  /* 5. Kolom Pertama (Checkbox Hapus) - JANGAN PERNAH DIJADIKAN 5% ATAU TERPOTONG */
  body.is-member-page th:first-child,
  body.is-member-page td:first-child,
  body.is-member-page th[width],
  body.is-member-page td[width],
  body.is-member-page th[width="5%"],
  body.is-member-page td[width="5%"],
  body.is-member-page th[style*="5%"],
  body.is-member-page td[style*="5%"] {
    width: 75px !important;
    min-width: 75px !important;
    max-width: 85px !important;
    text-align: center !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    padding: 12px 8px !important;
  }

  /* Checkbox di dalam kolom hapus */
  body.is-member-page td:first-child input[type="checkbox"],
  body.is-member-page .basketItem {
    width: 18px !important;
    height: 18px !important;
    accent-color: #2563eb !important;
    margin: 0 auto !important;
    cursor: pointer !important;
    display: block !important;
  }

  /* 6. Kolom Konten Judul Buku */
  body.is-member-page td {
    padding: 14px 14px !important;
    font-size: 13px !important;
    color: #334155 !important;
    border-top: 1px solid #f1f5f9 !important;
    vertical-align: middle !important;
    line-height: 1.45 !important;
  }

  body.is-member-page td a {
    color: #1d4ed8 !important;
    font-weight: 750 !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    display: block !important;
  }

  body.is-member-page td a:hover {
    color: #2563eb !important;
    text-decoration: underline !important;
  }

  /* 7. Perbaikan Saat DATA KOSONG (No Data) - Bebas Terpotong */
  body.is-member-page .s-table__no-data,
  body.is-member-page td.s-table__no-data,
  body.is-member-page tr:only-child td {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    padding: 32px 16px !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    background: #f8fafc !important;
    border: none !important;
    white-space: normal !important;
    display: table-cell !important;
  }

  /* 8. Bar Informasi & Tombol Unduh / Keranjang */
  body.is-member-page .memberLoanListInfo {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    background: #eff6ff !important;
    border: 1px solid #dbeafe !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    margin: 12px 0 16px !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    color: #1e40af !important;
    white-space: normal !important;
  }

  body.is-member-page .memberLoanListInfo a.btn {
    width: 100% !important;
    justify-content: center !important;
    display: inline-flex !important;
    align-items: center !important;
    border-radius: 10px !important;
    font-weight: 750 !important;
    min-height: 40px !important;
  }
}

/* ==========================================================================
   Pembatasan Koleksi Bacaan PDF Maksimal 3 Baris di Mode Laptop
   ========================================================================== */

/* Laptop Resolusi Lebar (>= 1201px): 6 kolom x 3 baris = Maksimal 18 kartu */
@media (min-width: 1201px) {
  #buku-digital-pdf .smk-rec-grid .smk-pdf-card:nth-child(n+19) {
    display: none !important;
  }
}

/* Laptop Standar / Layar Sedang (992px s/d 1200px): 4 kolom x 3 baris = Maksimal 12 kartu */
@media (min-width: 992px) and (max-width: 1200px) {
  #buku-digital-pdf .smk-rec-grid .smk-pdf-card:nth-child(n+13) {
    display: none !important;
  }
}

/* Di mode laptop (>= 992px), judul buku bacaan dibatasi maksimal 3 baris teks */
@media (min-width: 992px) {
  #buku-digital-pdf .smk-rec-book-title {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: 52px !important;
  }
}


