.cancha-stack { display: grid; gap: 14px; }
.cancha-form { max-width: 820px; }
.cancha-span { grid-column: 1 / -1; }
.cancha-table { overflow-x: auto; }
.cancha-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.cancha-top-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cancha-muted { color: var(--muted); font-size: 13px; }
.cancha-filtro { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.cancha-filtro .filter-bar, .cancha-filtro .cancha-actions, .panel-title .cancha-actions { margin: 0; }
.cancha-grilla th:first-child[scope="row"], .cancha-grilla thead th:first-child { position: sticky; left: 0; z-index: 1; background: #eff4fb; }
.cancha-grilla thead th:not(:first-child) { min-width: 145px; white-space: normal; }
.cancha-grilla th small { color: var(--muted); }
.cancha-grilla td { min-width: 140px; height: 36px; padding: 3px 7px; white-space: normal; }
.cancha-grilla td.cancha-slot { border: 2px solid white; border-radius: 9px; padding: 0; }
.cancha-slot a { display: flex; height: 100%; min-height: 34px; flex-direction: column; justify-content: center; gap: 2px; padding: 5px 8px; overflow-wrap: anywhere; text-decoration: none; color: inherit; }
.cancha-slot.reservada { background: #dbeafe; color: #1e40af; }
.cancha-slot.finalizada { background: #e0f2fe; color: #0369a1; }
.cancha-slot.bloqueo { background: #fef3c7; color: #92400e; }
.cancha-slot-meta { font-size: 11px; opacity: .88; }
.cancha-disponible { display: block; color: var(--forest); font-weight: 650; padding: 4px 6px; border-radius: 6px; text-decoration: none; }
.cancha-disponible:hover { background: #e8eeff; }
.cancha-closed { color: var(--muted); font-size: 12px; background: #f8fafc; }
.cancha-total { text-align: right; font-size: 18px; font-weight: 700; color: #1d4ed8; }
.cancha-estado, .cancha-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 650; background: #dbeafe; color: #1d4ed8; white-space: nowrap; }
.cancha-estado.finalizada, .cancha-pill.ok { background: #e0f2fe; color: #0369a1; }
.cancha-estado.cancelada, .cancha-pill.alerta { background: #fee2e2; color: #b91c1c; }
.cancha-pill.warn { background: #fef3c7; color: #92400e; }
.cancha-pill.online { background: #e0e7ff; color: #3730a3; }
.cancha-wa { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; background: #e8eeff; color: #1d4ed8; font-size: 12.5px; font-weight: 650; text-decoration: none; border: 1px solid #bfdbfe; white-space: nowrap; }
.cancha-wa:hover { background: #dbeafe; }
.cancha-balance { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 12px 0 18px; }
.cancha-balance dt, .cancha-facts dt { color: var(--muted); font-size: 12.5px; }
.cancha-balance dd, .cancha-facts dd { margin: 3px 0 0; font-weight: 680; overflow-wrap: anywhere; }
.cancha-split { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #f0f6ff; border: 1px solid #bfdbfe; align-items: center; font-size: 13px; }
.cancha-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.cancha-bar { width: 100%; max-width: 110px; height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; display: inline-block; vertical-align: middle; }
.cancha-bar > span { display: block; height: 100%; background: #2563eb; border-radius: 999px; }
.cancha-public { max-width: 960px; margin: 0 auto; padding: 18px 14px 40px; }
.cancha-hero { display: grid; grid-template-columns: 1fr minmax(0, .8fr); gap: 18px; align-items: center; margin-bottom: 18px; background: #e8eeff; border: 1px solid #bfdbfe; border-radius: 14px; overflow: hidden; }
.cancha-hero > div { padding: 20px; }
.cancha-hero h1 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 8px; }
.cancha-hero img { width: 100%; height: 100%; max-height: 240px; object-fit: cover; display: block; }
.cancha-slots-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cancha-slot-btn { border: 1px solid #93c5fd; background: #f8faff; color: #1e3a8a; border-radius: 9px; padding: 8px 11px; font-size: 13px; font-weight: 650; cursor: pointer; display: grid; gap: 2px; text-align: left; }
.cancha-slot-btn:hover, .cancha-slot-btn.selected { background: #2563eb; color: #fff; border-color: #1d4ed8; }
.cancha-slot-btn small { font-weight: 500; opacity: .88; font-size: 11.5px; }
.cancha-cancelar { margin-top: 12px; }
.cancha-confirmar { align-self: end; }
.cancha-confirmar input { width: auto; display: inline; }
.cancha-form summary { font-weight: 700; cursor: pointer; }
.cancha-print main { max-width: 740px; margin: auto; padding: 20px; }
.cancha-print-nav { margin-bottom: 16px; }
@media (max-width: 760px) {
    .cancha-grid-2, .cancha-hero { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .panel-title, .page-head { flex-wrap: wrap; }
    .cancha-cards table, .cancha-cards tbody { display: block; }
    .cancha-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .cancha-cards tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .cancha-cards tbody tr:last-child { border-bottom: 0; }
    .cancha-cards td { display: block; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
    .cancha-cards td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); }
    .cancha-card-name { grid-column: 1 / -1; font-weight: 700; }
    .cancha-card-action { text-align: right; }
}
@media print {
    .cancha-print main { max-width: none; padding: 0; }
    body.cancha-print { background: white; color: #000; }
    .cancha-print .panel { border: 0; box-shadow: none; padding: 0; }
    .cancha-print-nav { display: none; }
}
