/* --- Extracted from inline <style> block #1 in player_on_field_query.php --- */
/* Filter rail + content layout (mirrors index.php) */
.wrap.snap-layout{max-width:1400px;margin:0 auto;padding:0 16px 40px;}
.snap-layout{display:flex;gap:18px;align-items:flex-start;}
.pf-snap-gen-filters-panel{flex:0 0 320px;max-width:320px;}
.snap-content-panel{flex:1;min-width:0;}


/* Active filter chips */
.pf-active-filters{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  margin:12px 0 18px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:16px;
  background:rgba(0,0,0,.18);
}
.pf-active-filters__title{
  font-size:12px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  opacity:.85;
}
.pf-active-filters__chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}
.pf-filter-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.08);
  font-size:13px;
  line-height:1;
}
.pf-filter-chip__k{opacity:.78;font-weight:700;}
.pf-filter-chip__v{font-weight:800;}
.pf-active-filter-remove{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  border-radius:999px;
  border:0;
  background:rgba(0,0,0,.28);
  color:inherit;
  cursor:pointer;
  line-height:1;
}
.pf-active-filter-remove:hover{background:rgba(0,0,0,.45);}
.pf-active-filters__clear{
  white-space:nowrap;
  align-self:flex-start;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.22);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  font-size:13px;
}
.pf-active-filters__clear:hover{background:rgba(0,0,0,.34);}
.pf-active-filters__empty{margin-top:6px;opacity:.75;font-size:13px;}
@media (max-width: 980px){
  .pf-active-filters{flex-direction:column;align-items:stretch;}
  .pf-active-filters__clear{width:fit-content;}
}


/* On-field row controls inside the Filters panel */
#filters .rowline{display:flex;gap:10px;align-items:center;margin:10px 0;}
#filters .rowline select{flex:1;min-width:0;}
#filters .btn-remove{line-height:1;padding:6px 10px;}

/* Mobile off-canvas filters */
@media (max-width: 980px){
  .snap-layout{display:block;}
  .pf-snap-gen-filters-panel{
    position:fixed;
    inset:0 auto 0 0;
    width:min(360px, 92vw);
    max-width:none;
    transform:translateX(-110%);
    transition:transform .22s ease;
    z-index:10000;
    overflow:auto;
  }
  .pf-snap-gen-filters-panel.is-open{transform:translateX(0);}
}
/* Loading overlay (matches index.php) */
#loading-overlay{
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  background:rgba(0,0,0,.55) !important;
  display:none !important;
  align-items:center !important;
  justify-content:center !important;
  z-index:9999999 !important;
}
#loading-overlay.is-visible{
  display:flex !important;
}
.loading-content{
  background:rgba(20,20,20,.9) !important;
  border:1px solid rgba(255,255,255,.12) !important;
  padding:18px 20px !important;
  border-radius:14px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  gap:10px !important;
  box-shadow:0 10px 30px rgba(0,0,0,.35) !important;
}
.loading-spinner{
  width:42px !important;
  height:42px !important;
  border-radius:50% !important;
  border:4px solid rgba(255,255,255,.25) !important;
  border-top-color:rgba(255,255,255,.85) !important;
  animation:pfspin .9s linear infinite !important;
}
.loading-text{
  font-size:14px !important;
  letter-spacing:.2px !important;
  color:#fff !important;
  opacity:.95 !important;
}
@keyframes pfspin{to{transform:rotate(360deg);}}


/* --- Extracted from inline <style> block #2 in player_on_field_query.php --- */
body{font-family:system-ui,sans-serif;background:#0b0f17;color:#e8eefc;line-height:1.5;}
  .card{background:#111a2b;border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:20px;margin-bottom:20px;}
  .grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(100px, 1fr));gap:5px;margin-top:15px;}
  .stat-box{background:#0c1424;padding:15px;border-radius:8px;border:1px solid rgba(255,255,255,.05);text-align:center;}
  .stat-val{font-size:18px;font-weight:bold;display:block;color:#4f86f7;}
  .stat-label{font-size:12px;opacity:.7;text-transform:uppercase;letter-spacing:0.5px;}
  table{width:100%;border-collapse:collapse;margin-top:10px;}
  th,td{text-align:right;padding:12px;border-bottom:1px solid rgba(255,255,255,.05);}
  th:first-child,td:first-child{text-align:left;}
  th{color:#94a3b8;font-weight:600;font-size:13px;background:#0a1018;}
  thead tr{background:#0a1018;}
  input,select,button{padding:10px;border-radius:6px;border:1px solid #333;background:#0c1424;color:#fff;}
  .rowline{display:flex;gap:10px;margin-bottom:10px;}
  .btn-remove{background:#4a1212; border:none; color:white; cursor:pointer; font-weight:bold; padding:0 12px;}
  h3{border-bottom: 2px solid #2b5bbd; padding-bottom: 8px; margin-top: 0; font-weight: 500;}
  .flex-tables{display:block;}
  .flex-tables > div{min-width:0; margin-bottom:20px;}
  .flex-tables > div:last-child{margin-bottom:0;}
  
  /* Sortable table styles */
  .sortable th[data-sort]{cursor:pointer;user-select:none;white-space:nowrap;}
  .sortable th[data-sort]:hover{background:#1a2744;}
  .sortable th[data-sort] .sort-icon{margin-left:4px;opacity:0.4;font-size:12px;}
  .sortable th[data-sort].asc .sort-icon{opacity:1;color:#4f86f7;}
  .sortable th[data-sort].asc .sort-icon::before{content:'▲';}
  .sortable th[data-sort].desc .sort-icon{opacity:1;color:#4f86f7;}
  .sortable th[data-sort].desc .sort-icon::before{content:'▼';}
  .sortable th[data-sort]:not(.asc):not(.desc) .sort-icon::before{content:'⇅';}
	
@media (max-width: 980px){
	.card { padding-left:0; padding-right:0; border-radius:0 !important; overflow:auto;}
	.snap-content-panel { padding:0; margin:0; }
}
