/* ============================================================
   BUMI SURABAYA — PRINT CSS v6.0
   Styling cetak stiker meja, QR tent card, dan print massal
   ============================================================ */

@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }

  /* Sembunyikan elemen non-cetak dari tampilan tamu & admin */
  .no-print, 
  .bs-top-bar, .bs-hero, .bs-review-section, .bs-promos-section,
  .bs-wa-section, .bs-social-section, .bs-footer, .bs-mobile-action-bar,
  .adm-sidebar, .adm-topbar, .adm-card-header, .adm-login-screen,
  .adm-toast, .adm-modal-overlay, nav, header, aside {
    display: none !important;
  }

  .adm-main {
    margin-left: 0 !important;
    padding: 0 !important;
  }
  .adm-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  /* ── KARTU STIKER MEJA (85 x 54 mm) ── */
  .print-card, .adm-print-card-sample {
    page-break-inside: avoid;
    break-inside: avoid;
    width: 85mm;
    height: 54mm;
    margin: 4mm auto;
    border: 1.5px solid #c9a96e !important;
    border-radius: 4mm;
    padding: 4mm;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', Georgia, serif;
    background: #fff !important;
    color: #1a3c2a !important;
    box-shadow: none !important;
  }

  .print-card-logo, .adm-pc-logo {
    margin-bottom: 2mm;
  }
  .print-card-logo img, .adm-pc-logo img {
    max-height: 8mm;
    width: auto;
  }

  .print-card-name, .adm-pc-title {
    font-size: 9.5pt;
    font-weight: bold;
    color: #1a3c2a !important;
    margin-bottom: 1.5mm;
    line-height: 1.1;
    text-align: center;
  }

  .print-card-qr, .adm-pc-qr {
    width: 24mm;
    height: 24mm;
    margin-bottom: 2mm;
    border: none !important;
    padding: 0 !important;
  }
  .print-card-qr img,
  .print-card-qr canvas,
  .adm-pc-qr img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
  }

  .print-card-sub, .adm-pc-sub {
    font-size: 7.5pt;
    color: #8b6d34 !important;
    font-style: italic;
    margin-bottom: 1.5mm;
  }

  .print-card-url, .adm-pc-inst {
    font-size: 6pt;
    color: #4a4a4a !important;
    text-align: center;
    line-height: 1.2;
  }

  /* ── GRID MULTI-KARTU PER HALAMAN ── */
  .print-cards-grid, .adm-bulk-preview-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 85mm) !important;
    gap: 6mm !important;
    justify-content: center !important;
    padding: 4mm !important;
  }

  /* ── TABLE TENT LIPAT (100 x 70 mm) ── */
  .print-tent-card {
    page-break-inside: avoid;
    break-inside: avoid;
    width: 100mm;
    height: 70mm;
    margin: 5mm auto;
    border: 1.5px solid #c9a96e !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 4mm;
    position: relative;
    background: #fff !important;
  }
  .print-tent-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    border-top: 1px dashed #c9a96e;
  }
  .print-tent-half {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 50%;
    width: 100%;
  }
  .print-tent-half.flip { 
    transform: rotate(180deg); 
  }
}
