/* Presentación nueva; datos, colores de estado y acciones de Canchas. */
.grilla-operativa-live .daily-timeline{padding:18px 20px 16px;border-radius:20px;background:#08121b}
.grilla-operativa-live .timeline-title h2{font-size:24px}
.grilla-operativa-live .timeline-title small{font-size:11px;background:none;border:0;padding:0}
.grilla-operativa-live .timeline-grid{gap:8px;min-width:1120px}
.grilla-operativa-live .timeline-head,.grilla-operativa-live .timeline-row{grid-template-columns:150px minmax(0,1fr);gap:10px}
.grilla-operativa-live .timeline-hours{border-radius:12px;background:#091a26}
.grilla-operativa-live .timeline-hours:not(.is-weekend),
.grilla-operativa-live .timeline-gridlines:not(.is-weekend){grid-template-columns:repeat(10,1.15fr) repeat(4,1.5fr)}
.grilla-operativa-live .timeline-hours span{height:40px;font-size:11px;color:#a8c1cf}
.grilla-operativa-live .timeline-court-label{padding:0 8px;gap:7px;font-size:15px;white-space:nowrap;background:linear-gradient(145deg,#0c2430,#091a24);border-radius:14px}
.grilla-operativa-live .timeline-court-label:before{width:34px;height:38px;flex-basis:34px;font-size:22px;border-radius:10px}
.grilla-operativa-live .timeline-track{min-height:116px;border:0;border-radius:0;background:transparent}
.grilla-operativa-live .timeline-gridlines{opacity:.1}
.grilla-operativa-live .timeline-free-slot{top:4px;bottom:4px;border-radius:10px;background:#0b1722;border-color:#263849;border-style:dashed}
.grilla-operativa-live .timeline-free-slot>span{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;margin:auto;background:transparent;color:#8ea8bf;font-size:19px}
.grilla-operativa-live .timeline-free-slot:hover{background:#0d2a38;border-color:#4ca7d8}
.grilla-operativa-live .timeline-free-slot:hover::after{content:'Agregar';position:absolute;bottom:16px;left:0;right:0;color:#b7d1df;font-size:10px}
.grilla-operativa-live .operative-slot-card{position:absolute;height:108px;z-index:2}
.grilla-operativa-live .operative-afterhours{grid-column:1/-1;padding-top:12px;border-top:1px solid #263849}
.grilla-operativa-live .operative-afterhours h3{margin:0 0 9px;color:#c1cedb;font-size:13px}
.grilla-operativa-live .operative-afterhours-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,220px));gap:10px}
.grilla-operativa-live .operative-late-item>small{display:block;margin-bottom:4px;color:#c1cedb;font-size:10px}
.grilla-operativa-live .operative-afterhours .operative-slot-card{position:relative}
.grilla-operativa-live .operative-afterhours .timeline-block{inset:0;top:0!important;transform:none!important;width:100%;height:100%}
/* Más específico que el centrado de la agenda anterior (top:50%!important).
   La ficha ocupa su contenedor, no la mitad inferior de la fila. También
   mantiene la altura de cada carril cuando hay turnos superpuestos. */
.grilla-operativa-live .timeline-track .operative-slot-card .timeline-block{inset:0;top:0!important;width:100%;height:100%;transform:none!important}
.grilla-operativa-live .operative-slot-card:hover,.grilla-operativa-live .operative-slot-card:focus-within{z-index:4}
.grilla-operativa-live .operative-slot-card .timeline-block:hover{filter:brightness(1.1);box-shadow:0 5px 14px #0005}
.grilla-operativa-live .timeline-block.timeline-court-identity{animation:none!important}
/* Identidad limpia: azul Francia + azul neutro para canchas programadas. */
.grilla-operativa-live .timeline-block.timeline-court-identity.status-scheduled{border:2px solid #4f7cd0!important;border-left:5px solid #5b8df0!important;border-right:2px solid #3d5977!important;background:linear-gradient(135deg,#244cac,#1c2939)!important;box-shadow:inset 0 1px #ffffff0c,0 3px 9px #0003!important}
/* Las clases programadas usan fondo neutro y un acento del profesor.
   En juego prevalece el verde; cerradas quedan grises con candado. */
.grilla-operativa-live .timeline-block.timeline-court-identity.clase.status-scheduled:not(.operative-closed-class){border:2px solid #35495d!important;border-left:5px solid var(--timeline-professor,#76818a)!important;border-right:2px solid #35495d!important;background:#152335!important;box-shadow:inset 0 1px #ffffff0c,0 3px 9px #0003!important}
/* También neutraliza el borde derecho de profesor de la agenda anterior. */
.grilla-operativa-live .timeline-block.timeline-court-identity.status-open{border:2px solid #52bd7c!important;border-left:5px solid #28e66b!important;border-right:2px solid #52bd7c!important;background:linear-gradient(135deg,rgba(40,230,107,.38),rgba(7,39,25,.96))!important;box-shadow:inset 0 1px #ffffff29,0 0 0 1px #28e66b2e,0 0 15px #28e66b33!important}
.grilla-operativa-live .operative-confirmed-check{position:absolute;top:5px;right:5px;display:grid;place-items:center;width:15px;height:15px;border-radius:50%;background:#154d37;border:1px solid #75e6a8;color:#9df2c2;font:800 10px/1 Inter;pointer-events:none}
.grilla-operativa-live .operative-confirm-action{position:absolute;right:5px;bottom:5px;z-index:5;width:25px;height:25px;display:grid;place-items:center;border:1px solid #7ddca5;border-radius:8px;background:#164730;color:#c6ffdc;font:800 15px/1 Inter;cursor:pointer;opacity:0;visibility:hidden;transition:opacity .12s}
.grilla-operativa-live .operative-slot-card:hover .operative-confirm-action,
.grilla-operativa-live .operative-slot-card:focus-within .operative-confirm-action{opacity:1;visibility:visible}
.grilla-operativa-live .operative-confirm-action:disabled{opacity:.5;cursor:wait}
.grilla-operativa-live .operative-confirm-action:focus-visible{outline:2px solid #e1ffef;outline-offset:2px}
@media(hover:none){.grilla-operativa-live .operative-confirm-action{opacity:1;visibility:visible}}
.grilla-operativa-live .timeline-block,
.grilla-operativa-live .timeline-track.has-overlap .timeline-block,
.grilla-operativa-live .timeline-block.timeline-short-class{height:108px;padding:6px 5px!important;border-radius:10px;font:600 10px/1.3 Inter,sans-serif;align-items:flex-start;justify-content:flex-start;text-align:left;gap:2px;white-space:normal}
.grilla-operativa-live .timeline-block strong,
.grilla-operativa-live .timeline-block.timeline-short-class strong{order:2;font-size:9px!important;font-weight:600;line-height:1.3;letter-spacing:0;width:100%;white-space:nowrap;color:#c1cedb}
.grilla-operativa-live .timeline-block .timeline-block-detail,
.grilla-operativa-live .timeline-track.has-overlap .timeline-block-detail,
.grilla-operativa-live .timeline-block.timeline-short-class .timeline-block-detail{order:1;display:block;width:100%;font-size:11px;font-weight:700;line-height:1.3;color:#f2f7fc;white-space:nowrap}
/* Sólo el título del abono identifica la cancha; horarios y estados no cambian. */
.grilla-operativa-live .timeline-block.abonado strong,
.grilla-operativa-live .timeline-block.abonado .timeline-block-detail{color:var(--timeline-court)}
.grilla-operativa-live .operative-slot-time{order:0;font-size:9px;color:#d9e7ee;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.grilla-operativa-live .operative-participants{order:3;font-size:9px;color:#c1cedb;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.grilla-operativa-live .operative-slot-status{order:5;display:block;width:100%;max-width:100%;margin-top:auto;padding-top:4px;border-top:1px solid #ffffff24;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#d9e7ee}
.grilla-operativa-live .operative-slot-status i{display:inline-block;width:6px;height:6px;background:#39aaff;border-radius:50%;margin-right:4px}
.grilla-operativa-live .status-open .operative-slot-status i{background:#28e66b}
.grilla-operativa-live .status-scheduled .operative-slot-status i{background:#5b8df0}
.grilla-operativa-live .status-finish .operative-slot-status i{background:#ff7a18}
.grilla-operativa-live .status-collection .operative-slot-status i,
.grilla-operativa-live .status-review .operative-slot-status i{background:#ff3d3d}
.grilla-operativa-live .status-closed .operative-slot-status i{background:#76818a}
/* Cerradas en gris, sin cambiar la presentación de pendientes ni en juego.
   Las clases conservan además su candado y disposición específica. */
.grilla-operativa-live .timeline-block.timeline-court-identity.status-closed,
.grilla-operativa-live .timeline-block.timeline-court-identity.operative-closed-class{background:linear-gradient(145deg,#30383e,#1d242a)!important;border-color:#59636b!important;border-left-color:#76818a!important;border-right-color:#59636b!important;color:#ced5da!important;box-shadow:inset 0 1px #ffffff08!important;filter:none!important}
.grilla-operativa-live .operative-closed-class .operative-slot-time{position:absolute;top:8px;left:6px;right:6px;color:#aeb8c0}
.grilla-operativa-live .timeline-block.operative-closed-class strong{position:absolute;top:24px;left:6px;right:6px;width:auto;color:#ced5da}
.grilla-operativa-live .operative-closed-class .timeline-block-detail{position:absolute;bottom:25px;left:6px;right:6px;width:auto;color:#b4bfc7}
.grilla-operativa-live .operative-closed-class .operative-participants{position:absolute;bottom:9px;left:6px;right:6px;color:#97a3ad}
.grilla-operativa-live .operative-closed-class .operative-slot-status,
.grilla-operativa-live .operative-closed-class .operative-professor-chip{display:none}
.grilla-operativa-live .operative-closed-class-lock{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;color:#d1d9df;pointer-events:none}
.grilla-operativa-live .operative-professor-chip{order:4;display:block;max-width:100%;padding:2px 4px;border-radius:6px;border-left:3px solid var(--timeline-professor);background:color-mix(in srgb,var(--timeline-professor) 18%,#142230);color:color-mix(in srgb,var(--timeline-professor) 65%,#fff);font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.grilla-operativa-live .timeline-status-strip{display:flex;align-items:center;flex-wrap:nowrap;gap:14px;overflow-x:auto;padding:12px;border:1px solid #1e4050;border-radius:14px;background:#081923;scrollbar-width:thin}
.grilla-operativa-live .timeline-legend,
.grilla-operativa-live .timeline-professor-legend,
.grilla-operativa-live .timeline-pending-list{display:flex;flex:0 0 auto;align-items:center;flex-wrap:nowrap;gap:9px;white-space:nowrap}
.grilla-operativa-live .timeline-legend span,
.grilla-operativa-live .timeline-professor-legend span{font-size:9px;white-space:nowrap}
.grilla-operativa-live .timeline-legend strong,
.grilla-operativa-live .timeline-professor-legend strong{font-size:10px}
.grilla-operativa-live .timeline-legend .open{background:#28e66b;box-shadow:none}
.grilla-operativa-live .timeline-legend .scheduled{background:#5b8df0;box-shadow:none}
.grilla-operativa-live .timeline-legend .pending{background:#ff7a18;box-shadow:none}
.grilla-operativa-live .timeline-legend .collection{background:#ff3d3d;box-shadow:none}
.grilla-operativa-live .timeline-legend .closed{background:#76818a;box-shadow:none}
.grilla-operativa-live .timeline-legend .closed-class{background:#76818a;box-shadow:none}
.grilla-operativa-live .timeline-professor-legend{border-left:1px solid #234657;padding-left:12px}
.grilla-operativa-live .timeline-pending-list{margin-left:auto}
.grilla-operativa-live .timeline-pending-trigger{min-height:30px;padding:5px 10px;font-size:10px}
.grilla-operativa-live .operative-grid-error{padding:24px;border:1px solid #914952;border-radius:12px;background:#341b2480;color:#ffd1d5;line-height:1.6}
.grilla-operativa-live .operative-grid-error p{font-size:13px;color:#bdcbd2;margin:8px 0 16px}
.grilla-operativa-live .operative-grid-error button{padding:10px 16px;border:1px solid #638d9e;border-radius:9px;background:#152733;color:#d7edf6;cursor:pointer}
.grilla-operativa-live .timeline-block:focus-visible,
.grilla-operativa-live .timeline-free-slot:focus-visible{outline:2px solid #e1ffef;outline-offset:-3px}
@media(max-width:900px){.grilla-operativa-live .daily-timeline{padding:16px 12px}.grilla-operativa-live .timeline-title{align-items:flex-start;flex-direction:column}.grilla-operativa-live .timeline-grid{min-width:1120px}}
/* Pendientes unificados: dos líneas por cuenta, sin tarjetas de actividad. */
.grilla-operativa-live .court-accounts-panel{padding:8px 12px;margin-bottom:14px;border-color:rgba(164,205,225,.2);background:linear-gradient(115deg,rgba(171,211,230,.085),rgba(26,48,62,.22) 55%,rgba(104,163,175,.055));backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:inset 0 1px 0 rgba(222,245,255,.09),0 6px 20px rgba(0,0,0,.12)}
.grilla-operativa-live .court-accounts-panel-head{justify-content:flex-start;flex-wrap:wrap;gap:8px 12px;background:transparent}
.grilla-operativa-live .court-accounts-panel-head h2{font-size:21px}
.grilla-operativa-live .court-pending-filters{display:flex;align-items:center;flex-wrap:wrap;gap:5px}
.grilla-operativa-live .court-pending-filters button{min-height:27px;padding:5px 9px;border:1px solid #2c4355;border-radius:8px;background:#102030;color:#b6c9d8;font:600 10px Inter,sans-serif;cursor:pointer;white-space:nowrap}
.grilla-operativa-live .court-pending-filters button span{margin-left:4px;color:#dae7ef}
.grilla-operativa-live .court-pending-filters button.selected{border-color:#5d9b77;background:#1c3b2a;color:#baf3ca}
.grilla-operativa-live .court-pending-summary{margin-left:auto;white-space:nowrap;color:#a8bfcc;font-size:10px}
.grilla-operativa-live .court-pending-summary b{color:#ffd18a;font-size:13px;margin-left:3px}
.grilla-operativa-live .court-accounts-panel-list{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-top:6px}
.grilla-operativa-live .court-accounts-panel .court-account-row{grid-template-columns:minmax(0,1fr) auto 26px 26px;gap:5px;min-width:0;min-height:44px;padding:5px 7px;border:1px solid rgba(163,205,227,.22);border-radius:8px;background:linear-gradient(125deg,rgba(192,221,239,.11),rgba(77,123,153,.065) 55%,rgba(172,209,225,.035));backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:inset 0 1px 0 rgba(227,246,255,.1),0 3px 10px rgba(0,0,0,.1)}
.grilla-operativa-live .court-accounts-panel .court-account-row:has(.court-account-delete){grid-template-columns:minmax(0,1fr) auto 26px 26px 26px}
.grilla-operativa-live .court-accounts-panel .court-session-pending{grid-template-columns:minmax(0,1fr) auto 26px;border-left:3px solid var(--pending-court)}
.grilla-operativa-live .court-accounts-panel .court-account-row b{font-size:11px}
.grilla-operativa-live .court-accounts-panel .court-account-row small{font-size:9px;margin-top:2px;color:#b0c4d0}
.grilla-operativa-live .court-accounts-panel .court-account-row strong{font-size:16px;white-space:nowrap;color:#ffd18a}
.grilla-operativa-live .court-accounts-panel .court-session-pending.is-close strong{font-size:11px;color:#ffb576}
.grilla-operativa-live .court-accounts-panel .court-account-row button{grid-column:auto;width:26px;min-height:26px}
.grilla-operativa-live .court-accounts-panel .court-account-row .court-account-name{width:auto;background:transparent;color:#e0edf5;text-align:left;border:0;padding:0;min-width:0}
.grilla-operativa-live .court-accounts-panel .court-account-row .court-account-name:hover b{color:#b5e7ff}
.grilla-operativa-live .court-accounts-panel .court-account-row .court-account-view{background:#172d40;color:#bed9ec;border:1px solid #37566c}
.grilla-operativa-live .court-accounts-panel button:focus-visible{outline:2px solid #bae5d4;outline-offset:2px}
.grilla-operativa-live .court-accounts-warning{color:#ffcb95}
.grilla-operativa-live .court-accounts-panel-list>.court-accounts-empty{grid-column:1/-1}
/* Las pocas cuentas no se estiran. Mantener 5–6 posiciones en escritorio. */
@media(min-width:1800px){.grilla-operativa-live .court-accounts-panel-list{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1349px){.grilla-operativa-live .court-accounts-panel-list{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1099px){.grilla-operativa-live .court-accounts-panel-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:799px){.grilla-operativa-live .court-accounts-panel-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:559px){.grilla-operativa-live .court-accounts-panel-list{grid-template-columns:minmax(0,1fr)}}
@media(max-width:560px){.grilla-operativa-live .court-accounts-panel-head h2{width:100%}.grilla-operativa-live .court-pending-filters{width:100%}.grilla-operativa-live .court-pending-summary{margin-left:0}.grilla-operativa-live .court-accounts-refresh{margin-left:auto}}
