Spaces:
Sleeping
Sleeping
| @import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap'); | |
| body { | |
| margin: 0; | |
| padding: 0; | |
| background-color: rgba(5,5,15,255); | |
| color: #ffffff; | |
| font-family: 'Lato', sans-serif; | |
| font-weight: 500; | |
| animation: fadeIn 0.8s ease-in-out; | |
| } | |
| @keyframes fadeIn { | |
| from { opacity: 0; } | |
| to { opacity: 1; } | |
| } | |
| /* RESPONSIVE DESIGN PARA EL NUEVO LAYOUT */ | |
| /* Dise帽o responsive para la secci贸n de filtros y tabla */ | |
| @media (max-width: 1024px) { | |
| /* Filtros y tabla se vuelven verticales en tablets */ | |
| .filters-table-container { | |
| flex-direction: column ; | |
| } | |
| .filters-table-container > div { | |
| min-width: 100% ; | |
| max-width: 100% ; | |
| } | |
| } | |
| @media (max-width: 768px) { | |
| /* Contenedor principal con menos padding en m贸vil */ | |
| .main-container { | |
| padding: 10px 3vw ; | |
| } | |
| /* Grid de gr谩ficos adicionales en una sola columna */ | |
| .additional-charts-grid { | |
| grid-template-columns: 1fr ; | |
| } | |
| /* Ajustar t铆tulos para m贸vil */ | |
| h1 { | |
| font-size: clamp(28px, 8vw, 36px) ; | |
| } | |
| h3 { | |
| font-size: clamp(16px, 4vw, 20px) ; | |
| } | |
| /* Botones m谩s peque帽os en m贸vil */ | |
| .dashboard-type-button { | |
| width: 70px ; | |
| font-size: 10px ; | |
| padding: 6px 4px ; | |
| } | |
| /* KPIs overlay m谩s peque帽o en m贸vil */ | |
| .kpi-overlay { | |
| width: 95% ; | |
| top: 10px ; | |
| } | |
| } | |
| @media (max-width: 480px) { | |
| /* Contenedor muy compacto para m贸viles peque帽os */ | |
| .main-container { | |
| padding: 5px 2vw ; | |
| gap: 15px ; | |
| } | |
| /* Secciones con menos padding */ | |
| .section-container { | |
| padding: 10px ; | |
| } | |
| /* Filtros en columna 煤nica */ | |
| .filters-row { | |
| flex-direction: column ; | |
| gap: 10px ; | |
| } | |
| } | |
| /* ESTILOS PARA LOS BOTONES DEL TIPO DE TABLERO */ | |
| .dashboard-type-button { | |
| background-color: rgba(18,18,26,.5); | |
| color: white; | |
| border: 1px solid #4A4A4A; | |
| padding: 8px 12px; | |
| border-radius: 5px; | |
| cursor: pointer; | |
| font-weight: bold; | |
| width: 100px; | |
| text-align: center; | |
| transition: background-color 0.2s, border-color 0.2s; | |
| } | |
| .dashboard-type-button:hover { | |
| background-color: rgba(0, 111, 255, 0.3); | |
| border-color: rgb(0, 111, 255); | |
| } | |
| /* ESTILOS PARA DROPDOWNS ACTIVOS */ | |
| .iracing-dropdown.active-filter .Select-control { | |
| background-color: rgba(0, 111, 255, 0.25) ; | |
| border: 1px solid rgba(0, 111, 255, 0.7) ; | |
| box-shadow: 0 0 10px rgba(0, 111, 255, 0.3) ; | |
| } | |
| .iracing-dropdown.active-filter .Select-placeholder, | |
| .iracing-dropdown.active-filter .Select-value-label { | |
| color: #FFFFFF ; | |
| } | |
| .iracing-dropdown.active-filter .Select-arrow { | |
| border-top-color: #FFFFFF ; | |
| } | |
| /* ESTILOS PARA LA TABLA INTERACTIVA */ | |
| #datatable-interactiva .dash-cell { | |
| font-size: clamp(8px, 0.6vw, 12px) ; | |
| padding: 1px 1px ; | |
| } | |
| #datatable-interactiva .dash-header { | |
| font-size: clamp(9px, 0.7vw, 10px) ; | |
| padding: 2px 1px ; | |
| } | |
| /* ESTILOS ESPEC脥FICOS POR COLUMNA */ | |
| #datatable-interactiva .dash-cell[data-dash-column="REGION"] { | |
| font-size: 10px ; | |
| } | |
| #datatable-interactiva .dash-cell[data-dash-column="DRIVER"] { | |
| font-size: 10px ; | |
| } | |
| #datatable-interactiva .dash-cell[data-dash-column="CLASS"] { | |
| font-size: 12px ; | |
| } | |
| #datatable-interactiva .dash-cell[data-dash-column="IRATING"] { | |
| font-size: 10px ; | |
| } | |
| #datatable-interactiva .dash-cell[data-dash-column="STARTS"] { | |
| font-size: 10px ; | |
| } | |
| #datatable-interactiva .dash-cell[data-dash-column="WINS"] { | |
| font-size: 10px ; | |
| } | |
| /* ESTILOS PARA DROPDOWNS Y LABELS */ | |
| .iracing-dropdown, | |
| .iracing-dropdown .Select-value-label, | |
| .iracing-dropdown .Select-placeholder { | |
| font-size: clamp(10px, 0.8vw, 14px) ; | |
| } | |
| label { | |
| font-size: clamp(11px, 0.8vw, 14px) ; | |
| } | |
| /* ESTILOS PARA LAS TABLAS DE COMPETITIVIDAD */ | |
| #competitiveness-tables-container .pagination { | |
| justify-content: center; | |
| margin-top: 5px; | |
| margin-bottom: 0; | |
| } | |
| #competitiveness-tables-container .page-item .page-link { | |
| background-color: rgba(11,11,19,1); | |
| color: rgb(255, 255, 255, .8); | |
| border: 1px solid #4A4A4A; | |
| font-size: 12px; | |
| padding: 4px 10px; | |
| margin: 0 2px; | |
| border-radius: 4px; | |
| } | |
| #competitiveness-tables-container .page-item:not(.active) .page-link:hover { | |
| background-color: #323232; | |
| color: white; | |
| } | |
| #competitiveness-tables-container .page-item.active .page-link { | |
| background-color: rgba(0, 111, 255, 0.5); | |
| border-color: rgb(0, 111, 255); | |
| color: white; | |
| font-weight: bold; | |
| } | |
| #competitiveness-tables-container .page-item.disabled .page-link { | |
| background-color: rgba(11,11,19,1); | |
| color: #4A4A4A; | |
| border-color: #323232; | |
| } | |
| /* ESTILOS ESPEC脥FICOS PARA LAS TABLAS DE COMPETITIVIDAD */ | |
| #competitiveness-tables-container .dash-table-container { | |
| border-radius: 10px ; | |
| overflow: hidden ; | |
| max-width: 100% ; | |
| } | |
| #competitiveness-tables-container .dash-spreadsheet-container { | |
| max-height: 350px ; | |
| overflow-y: auto ; | |
| overflow-x: hidden ; | |
| } | |
| #competitiveness-tables-container .dash-cell { | |
| font-size: 12px ; | |
| padding: 6px 8px ; | |
| white-space: nowrap ; | |
| text-overflow: ellipsis ; | |
| overflow: hidden ; | |
| } | |
| #competitiveness-tables-container .dash-header { | |
| font-size: 13px ; | |
| font-weight: bold ; | |
| padding: 8px 6px ; | |
| position: sticky ; | |
| top: 0 ; | |
| z-index: 10 ; | |
| } | |
| /* SCROLL PERSONALIZADO PARA LAS TABLAS DE COMPETITIVIDAD */ | |
| #competitiveness-tables-container .dash-spreadsheet-container::-webkit-scrollbar { | |
| width: 6px; | |
| } | |
| #competitiveness-tables-container .dash-spreadsheet-container::-webkit-scrollbar-track { | |
| background: rgba(30,30,38,1); | |
| border-radius: 3px; | |
| } | |
| #competitiveness-tables-container .dash-spreadsheet-container::-webkit-scrollbar-thumb { | |
| background: #4A4A4A; | |
| border-radius: 3px; | |
| } | |
| #competitiveness-tables-container .dash-spreadsheet-container::-webkit-scrollbar-thumb:hover { | |
| background: #6c6c6c; | |
| } | |
| /* RESPONSIVE: En m贸vil las tablas se vuelven verticales */ | |
| @media (max-width: 768px) { | |
| #competitiveness-tables-container > div { | |
| grid-template-columns: 1fr ; | |
| gap: 15px ; | |
| } | |
| #competitiveness-tables-container .dash-spreadsheet-container { | |
| max-height: 300px ; | |
| } | |
| } | |
| /* ASEGURAR QUE LOS CONTENEDORES NO SE SALGAN */ | |
| .chart-card { | |
| box-sizing: border-box ; | |
| overflow: hidden ; | |
| } | |
| .chart-card > div { | |
| max-width: 100% ; | |
| overflow: hidden ; | |
| } | |
| /* UTILIDADES RESPONSIVE */ | |
| .container-fluid { | |
| max-width: 100%; | |
| padding: 0; | |
| } | |
| .no-gutters { | |
| margin: 0; | |
| padding: 0; | |
| } | |
| /* SCROLLBAR PERSONALIZADO */ | |
| ::-webkit-scrollbar { | |
| width: 8px; | |
| } | |
| ::-webkit-scrollbar-track { | |
| background: rgba(18,18,26,.5); | |
| border-radius: 4px; | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| background: #4A4A4A; | |
| border-radius: 4px; | |
| } | |
| ::-webkit-scrollbar-thumb:hover { | |
| background: #6c6c6c; | |
| } | |
| /* ESTILOS MEJORADOS PARA LA TABLA CON SCROLL */ | |
| #datatable-interactiva .dash-table-container { | |
| border-radius: 15px ; | |
| overflow: hidden ; | |
| max-height: 450px ; | |
| } | |
| #datatable-interactiva .dash-spreadsheet-container { | |
| max-height: 450px ; | |
| overflow-y: auto ; | |
| overflow-x: auto ; | |
| } | |
| /* SCROLL PERSONALIZADO PARA LA TABLA PRINCIPAL */ | |
| #datatable-interactiva .dash-spreadsheet-container::-webkit-scrollbar { | |
| width: 8px; | |
| height: 8px; | |
| } | |
| #datatable-interactiva .dash-spreadsheet-container::-webkit-scrollbar-track { | |
| background: rgba(30,30,38,1); | |
| border-radius: 4px; | |
| } | |
| #datatable-interactiva .dash-spreadsheet-container::-webkit-scrollbar-thumb { | |
| background: #4A4A4A; | |
| border-radius: 4px; | |
| } | |
| #datatable-interactiva .dash-spreadsheet-container::-webkit-scrollbar-thumb:hover { | |
| background: #6c6c6c; | |
| } | |
| #datatable-interactiva .dash-spreadsheet-container::-webkit-scrollbar-corner { | |
| background: rgba(30,30,38,1); | |
| } | |
| /* ASEGURAR QUE EL HEADER PERMANEZCA VISIBLE */ | |
| #datatable-interactiva .dash-header { | |
| position: sticky ; | |
| top: 0 ; | |
| z-index: 10 ; | |
| background-color: rgba(30,30,38,1) ; | |
| } | |
| /* ESTILOS MEJORADOS PARA LOS KPIs VERTICALES DEL PILOTO */ | |
| #kpi-pilot .main-svg { | |
| background: rgba(0,0,0,0) ; | |
| } | |
| #kpi-pilot .indicator { | |
| text-align: center ; | |
| } | |
| /* RESPONSIVE: Ajustar en m贸vil */ | |
| @media (max-width: 768px) { | |
| #datatable-interactiva .dash-spreadsheet-container { | |
| max-height: 400px ; | |
| } | |
| /* KPIs del piloto m谩s compactos en m贸vil */ | |
| #kpi-pilot { | |
| height: 220px ; | |
| } | |
| } | |
| /* ESTILOS PARA LA TABLA KPI DEL PILOTO */ | |
| #kpi-pilot .dash-table-container { | |
| background: transparent ; | |
| border: none ; | |
| } | |
| #kpi-pilot .dash-spreadsheet-container { | |
| background: transparent ; | |
| border: none ; | |
| } | |
| #kpi-pilot .dash-cell { | |
| background: transparent ; | |
| border: none ; | |
| font-family: 'Lato, sans-serif' ; | |
| } | |
| #kpi-pilot .dash-header { | |
| display: none ; | |
| } | |
| /* Hover effect sutil para las filas de KPI */ | |
| #kpi-pilot tr:hover { | |
| background-color: rgba(255, 255, 255, 0.05) ; | |
| border-radius: 8px; | |
| transition: background-color 0.2s ease; | |
| } | |
| /* Responsive para la tabla KPI */ | |
| @media (max-width: 768px) { | |
| #kpi-pilot { | |
| height: 220px ; | |
| } | |
| #kpi-pilot .dash-cell { | |
| padding: 8px 4px ; | |
| font-size: 12px ; | |
| } | |
| #kpi-pilot .dash-cell[data-dash-column="value"] { | |
| font-size: 18px ; | |
| } | |
| } | |
| #pilot-search-dropdown .Select-input > input, | |
| #pilot-search-dropdown .Select-input input { | |
| color: #FFFFFF ; | |
| background-color: transparent ; | |
| border: none ; | |
| outline: none ; | |
| font-family: 'Lato', sans-serif ; | |
| caret-color: #FFFFFF ; /* Color del cursor de texto */ | |
| } | |
| #pilot-search-dropdown .Select-input > input::placeholder { | |
| color: #A0A0A0 ; | |
| opacity: 1 ; | |
| } | |
| #pilot-search-dropdown .Select-placeholder { | |
| color: #A0A0A0 ; | |
| } | |
| #pilot-search-dropdown .Select-input > input:focus { | |
| color: #FFFFFF ; | |
| background-color: rgba(11,11,19,1) ; | |
| } |