/* Tennis Control V2.4.5 - busca, lista sempre acessivel e grade rolavel. */
#view .schedule-shell {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(295px,355px) !important;
  align-items:start !important;
  gap:18px !important;
  overflow:visible !important;
}
#view .schedule-shell .schedule-scroller {
  width:100%;min-width:0;max-width:100%;min-height:390px;
  max-height:calc(100vh - 175px);overflow:auto !important;
  overscroll-behavior:contain;
  border:1px solid #dce2eb;border-radius:12px;
  scrollbar-gutter:stable;
}
#view .schedule-grid {border-collapse:separate;border-spacing:0;}
#view .schedule-grid thead th {position:sticky;top:0;z-index:3;background:#eaf0f9;}
#view .schedule-grid thead th:first-child{left:0;z-index:5;}
#view .schedule-grid tbody th{position:sticky;left:0;z-index:2;background:#f8fafc;}
#view .schedule-shell .unassigned-list {
  position:sticky !important;top:16px !important;
  width:auto !important;min-width:0;max-width:none !important;
  max-height:calc(100vh - 32px);
  display:flex !important;flex-direction:column;overflow:hidden;
}
#view .quadras-busca-head {padding:14px 14px 10px;flex-shrink:0;background:#fff;border-bottom:1px solid #e7eaf1;}
#view .quadras-list-title{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:0 0 10px;}
#view .quadras-list-title h3{margin:0;font-size:1rem;}
#view .quadras-filter-label{display:block;font-weight:700;font-size:.8rem;margin:0 0 6px;}
#view #quadras-busca{box-sizing:border-box;width:100%;padding:11px 12px;border:1px solid #c5d0e0;border-radius:9px;background:#fff;font:inherit;}
#view #quadras-busca:focus{outline:2px solid #186cb2;outline-offset:1px;}
#view .quadras-filter-row{display:flex;align-items:end;gap:12px;margin-top:10px;flex-wrap:wrap;}
#view .quadras-filter-row>label:first-child{flex:1;min-width:115px;font-size:.78rem;font-weight:700;}
#view #quadras-grupo{box-sizing:border-box;display:block;width:100%;padding:8px;border-radius:8px;border:1px solid #c5d0e0;background:white;margin-top:3px;font:inherit;}
#view .quadras-checkbox{display:flex;align-items:center;gap:6px;font-size:.78rem;cursor:pointer;padding-bottom:8px;}
#view .quadras-checkbox input{width:16px;height:16px;accent-color:#144d87;}
#view .quadras-status{display:flex;justify-content:space-between;gap:6px;margin-top:9px;font-size:.74rem;color:#536179;flex-wrap:wrap;}
#view .quadras-drag-hint{margin:8px 0 0;line-height:1.35;}
#view .quadras-candidatos{min-height:90px;overflow-y:auto;overflow-x:hidden;flex:1;padding:8px 12px 14px;overscroll-behavior:contain;scrollbar-gutter:stable;}
#view .quadras-candidatos .unassigned{margin:8px 0;}
#view .quadras-candidatos [hidden],#view #quadras-sem-resultados[hidden]{display:none !important;}
#view .quadras-posicionado{font-weight:700;color:#225d8e;}
#view .partida-movivel{cursor:grab;touch-action:pan-y;}
#view .partida-movivel:active{cursor:grabbing;}
#view .schedule-grid .drop-target {background:#d6f4e6 !important;box-shadow:inset 0 0 0 2px #218f62;}
#view .dragging{opacity:.45;}
@media(max-width:950px){
 #view .schedule-shell{grid-template-columns:minmax(0,1fr) !important;gap:12px !important;}
 #view .schedule-shell .unassigned-list{order:-1;position:static !important;max-height:none;}
 #view .quadras-candidatos{max-height:220px;}
 #view .schedule-shell .schedule-scroller{min-height:350px;max-height:65vh;}
}
@media print {
 #view .schedule-shell .unassigned-list{position:static !important;}
 #view .schedule-shell .schedule-scroller{overflow:visible !important;max-height:none !important;}
}

