/* Showing log (portal /portal/visitas) + owner report (/propietario/visitas/:token) + owner safety page. */
.print-only { display: none; }
.sh-intro { margin-bottom: 14px; }
.sh-owner .sh-link { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 6px; }
.sh-owner .sh-link input { flex: 1 1 320px; min-width: 0; font-family: ui-monospace, monospace; font-size: 0.85rem; padding: 7px 9px; }
.sh-table td { vertical-align: top; }
.sh-actions form { display: flex; flex-direction: column; gap: 6px; min-width: 230px; }
.sh-actions label { display: flex; flex-direction: column; gap: 3px; }
.sh-actions input[type=datetime-local] { padding: 5px 6px; font-size: 0.85rem; }
.sh-btns { display: flex; flex-wrap: wrap; gap: 4px; }
.dash-showings { border-left: 4px solid var(--accent, #c9a84c); }
@media print {
  .pnav, .no-print, .admin-nav, .lang-toggle-float, .alert, footer, main > p.small.muted.center { display: none !important; }
  .print-only { display: block !important; }
  body, .portal-body, .admin-main { background: #fff !important; color: #000 !important; padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .sh-print-head { border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 12px; font-size: 12px; line-height: 1.5; }
  .table-wrap { overflow: visible !important; }
  .sh-table { font-size: 11px; width: 100%; border-collapse: collapse; }
  .sh-table th, .sh-table td { border: 1px solid #999 !important; padding: 4px 6px !important; color: #000 !important; }
  .sh-table a { color: #000 !important; text-decoration: none; }
  .badge { border: 1px solid #666; background: none !important; color: #000 !important; }
  tr { page-break-inside: avoid; }
  .admin-header h1 { font-size: 18px; }
}

/* ---- owner report (standalone page) ---- */
.owr { font-family: Inter, system-ui, sans-serif; color: #1a1a1a; background: #f6f4ee; margin: 0; line-height: 1.55; }
.owr-toolbar { position: sticky; top: 0; z-index: 2; display: flex; gap: 8px; justify-content: flex-end; padding: 8px 16px; background: #0a0a0a; }
.owr-toolbar a, .owr-toolbar button { background: #c9a84c; color: #111; border: 0; border-radius: 6px; padding: 7px 12px; font: 600 0.85rem Inter, sans-serif; cursor: pointer; text-decoration: none; }
.owr-page { max-width: 880px; margin: 0 auto; padding: 24px 16px 40px; }
.owr-card { background: #fff; border: 1px solid #e6e0cf; border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; }
.owr-brand { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.owr-brand img.logo { height: 38px; }
.owr-agent { display: flex; gap: 12px; align-items: center; }
.owr-agent img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.owr h1 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.7rem; margin: 6px 0 2px; }
.owr .tag { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; font-weight: 700; color: #8a6d1f; }
.owr .muted { color: #6b6b6b; } .owr .small { font-size: 0.86rem; }
.owr-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.owr-stats div { flex: 1 1 140px; background: #faf8f2; border: 1px solid #eee6cf; border-radius: 8px; padding: 10px 12px; }
.owr-stats b { display: block; font-size: 1.5rem; }
.owr-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.owr-table th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #6b6b6b; border-bottom: 1px solid #e6e0cf; padding: 8px 6px; }
.owr-table td { border-bottom: 1px solid #f0ebdc; padding: 10px 6px; vertical-align: top; }
.owr-ok { display: inline-block; background: #e7f5ec; color: #1f6b3d; border-radius: 999px; padding: 2px 10px; font-weight: 600; font-size: 0.82rem; white-space: nowrap; }
.owr-warn { display: inline-block; background: #fdf1e6; color: #8a4b14; border-radius: 999px; padding: 2px 10px; font-weight: 600; font-size: 0.82rem; }
.owr-why { border-left: 4px solid #c9a84c; }
.owr-why ul { padding-left: 18px; margin: 8px 0; }
@media (max-width: 640px) {
  .owr-table thead { display: none; }
  .owr-table tr { display: block; border-bottom: 1px solid #e6e0cf; padding: 8px 0; }
  .owr-table td { display: block; border: 0; padding: 2px 0; }
}
@media print {
  .owr { background: #fff; } .owr-toolbar { display: none; } .owr-card { border: 1px solid #bbb; break-inside: avoid; }
}

/* ---- owner safety page ---- */
.owner-safety .os-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 18px 0 28px; }
.owner-safety .os-grid h3 { margin-top: 0; }
.home-safety { padding: 36px 0; }
.home-safety .hs-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.home-safety .hs-inner ul { margin: 10px 0 0; padding-left: 18px; }
@media (max-width: 760px) { .home-safety .hs-inner { grid-template-columns: 1fr; } }
.tour-opts input[type=datetime-local] { display: block; width: 100%; max-width: 320px; margin-bottom: 6px; }
.sched-opts li { padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
