/* Guía Raíz – formulario de reserva y ficha */
.gr-guest-box { margin: 12px 0; padding: 14px; border: 1px solid #e3e3df; border-radius: 8px; background: #fafaf8; }
.gr-guest-title { font-weight: 600; margin-bottom: 10px; font-size: 15px; }
.gr-row { display: flex; gap: 8px; }
.gr-row > .gr-field { flex: 1 1 0; min-width: 0; }
.gr-field { margin-bottom: 10px; }
.gr-field label, .gr-field .gr-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.gr-field .gr-opt { font-weight: 400; color: #888; }
.gr-field .form-control { height: 40px; }
.gr-field .gr-radio { display: inline-block; font-weight: 400; margin-right: 16px; }
.gr-invalid .form-control { border-color: #c0392b !important; }
.gr-invalid label, .gr-invalid .gr-label { color: #c0392b; }
.gr-errors { color: #c0392b; font-size: 13px; }
.gr-errors:empty { display: none; }
.gr-note { font-size: 12px; color: #666; margin: 6px 0 0; }
@media (max-width: 380px) { .gr-row { display: block; } }

/* Ficha en el panel */
.gr-ficha-section .block-body { display: block; }
.gr-ficha-head { margin-bottom: 8px; }
.gr-badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 13px; font-weight: 600; background: #eee; color: #333; }
.gr-st-under_review { background: #fff4d6; color: #7a5a00; }
.gr-st-available { background: #e3efff; color: #1d4f91; }
.gr-st-waiting_host_payment_verification, .gr-st-under_payment_review { background: #efe6ff; color: #5a2d91; }
.gr-st-booked { background: #ddf3e4; color: #1e6b3a; }
.gr-st-declined, .gr-st-cancelled { background: #f6dddd; color: #8a1f1f; }
.gr-box { margin: 12px 0; padding: 14px; border: 1px solid #e3e3df; border-radius: 8px; background: #fafaf8; }
.gr-box h3 { margin: 0 0 6px; font-size: 16px; }
.gr-pay-data { background: #fff; border: 1px dashed #ccc; border-radius: 6px; padding: 10px 12px; margin-top: 8px; font-family: monospace; font-size: 14px; }
.gr-receipt-form input[type=file] { margin: 8px 0; }
.gr-receipt-msg { margin-top: 8px; font-size: 14px; }
.gr-receipt-msg.gr-ok { color: #1e6b3a; }
.gr-receipt-msg.gr-err { color: #c0392b; }
.gr-actions { margin: 14px 0 6px; }
.gr-actions .btn { margin: 0 6px 6px 0; }
.gr-hint { font-size: 13px; color: #555; }
.gr-log { margin-top: 10px; font-size: 13px; color: #555; }
.gr-log summary { cursor: pointer; }
@media print { .gr-receipt-form, .gr-actions, .gr-log { display: none; } }

/* Gestión interna (solo administradores) */
.gr-admin-box { background: #f3f6f4; }
.gr-mini { border-collapse: collapse; font-size: 14px; }
.gr-mini th { text-align: left; padding: 3px 16px 3px 0; color: #555; font-weight: 600; }
.gr-mini td { padding: 3px 0; }
.gr-muted { color: #888; }

/* ---------- Panel Guía Raíz (dentro del panel de Homey) ---------- */
.gr-panel .gr-tabs { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid #e5e5e5; }
.gr-panel .gr-tabs li a { display: block; padding: 10px 16px; color: #555; border-bottom: 3px solid transparent; font-weight: 600; text-decoration: none; }
.gr-panel .gr-tabs li.active a, .gr-panel .gr-tabs li a:hover { color: #222; border-bottom-color: currentColor; }
.gr-block { margin-bottom: 24px; }
.gr-block .block-body { padding: 20px 30px; }
.gr-stats .block-col h3 { margin-top: 0; }
.gr-quick .btn { margin: 0 4px 6px 0; }
.gr-quick .btn.gr-active { box-shadow: inset 0 0 0 2px rgba(0,0,0,.25); filter: brightness(.88); }
.gr-stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gr-stage { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 8px; text-decoration: none !important; }
.gr-stage-num { font-size: 30px; font-weight: 700; line-height: 1.1; }
.gr-stage-name { font-weight: 600; }
.gr-stage-hint { font-size: 12px; opacity: .8; }
@media (max-width: 767px) { .gr-stages { grid-template-columns: repeat(2, 1fr); } }
.gr-filters { margin-bottom: 18px; }
.gr-filter-row { display: flex; flex-wrap: wrap; gap: 10px; }
.gr-filter { flex: 1 1 150px; min-width: 140px; }
.gr-filter-q { flex: 2 1 220px; }
.gr-filter-date { flex: 0 1 160px; }
.gr-filter label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 3px; color: #555; }
.gr-filter-actions { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gr-check-inline { font-weight: 400; margin: 0 12px 0 0; }
.gr-res-table td { vertical-align: middle !important; }
.gr-actions-cell .btn { margin: 2px 0; }
.gr-nowrap { white-space: nowrap; }
.gr-small { font-size: 12px; }
.gr-empty { padding: 20px 0; color: #777; }
.gr-kv th { font-weight: 400; color: #555; width: 60%; }
.gr-upcoming td { vertical-align: middle !important; }
.gr-pagination { margin-top: 10px; }
.gr-front .gr-toolbar .form-control { display: inline-block; width: auto; }
.gr-front .gr-search { min-width: 240px; }
.gr-front .gr-pct-input { display: inline-block; width: 80px; }
.gr-front .gr-form-actions { margin-top: 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.gr-front .gr-link { font-size: 13px; }
.gr-front td .btn { margin: 0 2px 4px 0; }
.gr-checks-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); max-height: 160px; }
.gr-user-form .form-group label { font-weight: 600; }
.gr-panel .table-block { overflow-x: auto; }
.gr-res-table .gr-badge { white-space: nowrap; }
.gr-actions-cell { display: flex; flex-direction: column; gap: 4px; min-width: 120px; }
.gr-actions-cell .btn { margin: 0; }

/* Propietario */
.gr-switcher { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.gr-switcher .form-control { width: auto; min-width: 220px; }
.gr-title-actions { float: right; margin-top: -32px; }
.gr-h3 { font-size: 15px; font-weight: 600; margin: 16px 0 8px; }
.gr-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 18px; }
.gr-gallery img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; }
.gr-chips { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.gr-chips li { background: #f2f4f3; border-radius: 14px; padding: 4px 10px; font-size: 13px; }
.gr-desc { font-size: 14px; color: #444; }
.gr-total-row td { background: #fafaf8; }
.gr-cal-nav { display: flex; gap: 6px; margin-bottom: 12px; }
.gr-cal-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 767px) { .gr-cal-wrap { grid-template-columns: 1fr; } }
.gr-cal-title { font-weight: 700; margin-bottom: 8px; text-transform: capitalize; }
.gr-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.gr-cal-w { text-align: center; font-size: 12px; color: #888; font-weight: 600; }
.gr-day { text-align: center; padding: 8px 0; border-radius: 6px; background: #f3f5f4; font-size: 13px; }
.gr-day.booked { background: #2f5d50; color: #fff; }
.gr-day.pending { background: #ffe9b0; }
.gr-day.blocked { background: #c9c9c9; color: #555; text-decoration: line-through; }
.gr-day.today { outline: 2px solid #222; }
.gr-legend { margin-top: 14px; font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gr-legend .gr-day { display: inline-block; width: 18px; height: 18px; padding: 0; margin-left: 10px; }
.gr-stats .admin-top-banner-btn { position: static; display: inline-block; margin-top: 10px; }
.gr-review-box { background: #fff8e6; border-color: #f0dca8; }
.gr-review-box h3 { margin: 0 0 4px; font-size: 16px; }
.board-panel-menu .gr-menu-group.gr-open > ul { display: block !important; }
