/* Livescore 17.86 — regole necessarie migrate da site-legacy.css;
   mantenere le regole per ambito e unificarle gradualmente con le classi comuni. */
/* === Modal blur per caricamento DataTable === */
:where(html.live-app-shell) #datatable-loading-modal{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
}

:where(html.live-app-shell) #datatable-loading-modal.active{
    display: flex;
    animation: fadeIn 0.3s ease-in-out forwards;
}

/* Spinner + testo */
:where(html.live-app-shell) #datatable-loading-modal .modal-content{
    background: rgba(255, 255, 255, 0.75);
    border-radius: 0.75rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

:where(html.live-app-shell) #datatable-loading-modal .spinner-border{
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
}

:where(html.live-app-shell) #datatable-loading-modal .modal-text{
    font-size: 1rem;
    font-weight: 600;
    color: #0d6efd;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}



/* Livescore design system esistente */
/* Stato di caricamento DataTables: tre punti, con quello centrale arancione. */
html body .dataTables_wrapper {position:relative;}
html body :is(.dataTables_wrapper,.dt-container) .live-dt-loading[hidden] {display:none!important;}
html body :is(.dataTables_wrapper,.dt-container) .live-dt-loading {
  position:absolute;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;
  background:rgba(249,251,255,.93);border-radius:12px;min-height:115px;
}
html body :is(.dataTables_wrapper,.dt-container) .live-dt-loading__panel {
  display:flex;flex-direction:column;align-items:center;gap:10px;
  border:1px solid #dfe8f7;background:#fff;border-radius:14px;
  box-shadow:0 10px 28px rgba(22,53,109,.13);padding:20px 26px;
  color:#21409a;font:700 12px/1.4 Inter,system-ui,sans-serif;
}
html body :is(.dataTables_wrapper,.dt-container) .live-dt-loading__dots {display:flex;gap:7px;align-items:center;height:26px;}
html body :is(.dataTables_wrapper,.dt-container) .live-dt-loading__dots > i {
  width:10px;height:10px;background:#f37021;border-radius:50%;animation:live-loader-bounce .9s ease-in-out infinite;
}
html body :is(.dataTables_wrapper,.dt-container) .live-dt-loading__dots > i:nth-child(2){background:#ffac61;animation-delay:.14s;}
html body :is(.dataTables_wrapper,.dt-container) .live-dt-loading__dots > i:nth-child(3){animation-delay:.28s;}
@media(prefers-reduced-motion:reduce){html body :is(.dataTables_wrapper,.dt-container) .live-dt-loading__dots > i{animation:none;}}

/* Il loader standard di DataTables non deve sovrapporsi al componente condiviso. */
html body :is(.dataTables_wrapper,.dt-container) .dataTables_processing, html body .dt-container .dt-processing{display:none!important}
html body :is(.dataTables_wrapper,.dt-container){position:relative}
