/* ============================================
   TABLEAUX HISTORIQUE - Style professionnel
   ============================================ */

/* Désactiver TOUS les autres styles pour les tableaux d'historique */
#historyMachineTable,
#historyMachineTable *,
#historyMachineTable::before,
#historyMachineTable::after,
#historyMachineTable *::before,
#historyMachineTable *::after,
#historyOFTable,
#historyOFTable *,
#historyOFTable::before,
#historyOFTable::after,
#historyOFTable *::before,
#historyOFTable *::after {
    all: unset !important;
    display: revert !important;
    box-sizing: border-box !important;
}

/* Container pour les tableaux d'historique avec scroll */
.history-table-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    box-sizing: border-box !important;
}

/* Tableau Machine */
#historyMachineTable {
    width: 100% !important;
    min-width: 1200px !important;
    border-collapse: collapse !important;
    table-layout: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #D1D5DB !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

#historyMachineTable thead {
    display: table-header-group !important;
    background-color: #F3F4F6 !important;
}

#historyMachineTable thead tr {
    display: table-row !important;
}

#historyMachineTable thead th {
    display: table-cell !important;
    padding: 12px 10px !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    background-color: #F3F4F6 !important;
    border: 1px solid #D1D5DB !important;
    color: #374151 !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    line-height: 1.3 !important;
    text-align: left !important;
}

#historyMachineTable tbody {
    display: table-row-group !important;
}

#historyMachineTable tbody tr {
    display: table-row !important;
}

#historyMachineTable tbody td {
    display: table-cell !important;
    padding: 10px 10px !important;
    border: 1px solid #D1D5DB !important;
    vertical-align: middle !important;
    font-size: 13px !important;
    color: #1F2937 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#historyMachineTable tbody tr:hover {
    background-color: #F9FAFB !important;
}

/* Largeurs des colonnes - Tableau Machine */
#historyMachineTable th:nth-child(1),
#historyMachineTable td:nth-child(1) {
    min-width: 150px !important;
    width: auto !important;
}

#historyMachineTable th:nth-child(2),
#historyMachineTable td:nth-child(2) {
    min-width: 120px !important;
    width: auto !important;
}

#historyMachineTable th:nth-child(3),
#historyMachineTable td:nth-child(3),
#historyMachineTable th:nth-child(4),
#historyMachineTable td:nth-child(4),
#historyMachineTable th:nth-child(5),
#historyMachineTable td:nth-child(5),
#historyMachineTable th:nth-child(6),
#historyMachineTable td:nth-child(6) {
    min-width: 120px !important;
    width: auto !important;
}

#historyMachineTable th:nth-child(7),
#historyMachineTable td:nth-child(7) {
    min-width: 100px !important;
    width: auto !important;
}

#historyMachineTable th:nth-child(8),
#historyMachineTable td:nth-child(8) {
    min-width: 120px !important;
    width: auto !important;
}

#historyMachineTable th:nth-child(9),
#historyMachineTable td:nth-child(9) {
    min-width: 120px !important;
    width: auto !important;
}

/* Tableau OF */
#historyOFTable {
    width: 100% !important;
    min-width: 1400px !important;
    border-collapse: collapse !important;
    table-layout: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #D1D5DB !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

#historyOFTable thead {
    display: table-header-group !important;
    background-color: #F3F4F6 !important;
}

#historyOFTable thead tr {
    display: table-row !important;
}

#historyOFTable thead th {
    display: table-cell !important;
    padding: 12px 10px !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    background-color: #F3F4F6 !important;
    border: 1px solid #D1D5DB !important;
    color: #374151 !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    line-height: 1.3 !important;
    text-align: left !important;
}

#historyOFTable tbody {
    display: table-row-group !important;
}

#historyOFTable tbody tr {
    display: table-row !important;
}

#historyOFTable tbody td {
    display: table-cell !important;
    padding: 10px 10px !important;
    border: 1px solid #D1D5DB !important;
    vertical-align: middle !important;
    font-size: 13px !important;
    color: #1F2937 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#historyOFTable tbody tr:hover {
    background-color: #F9FAFB !important;
}

/* Largeurs des colonnes - Tableau OF */
#historyOFTable th:nth-child(1),
#historyOFTable td:nth-child(1) {
    min-width: 120px !important;
    width: auto !important;
}

#historyOFTable th:nth-child(2),
#historyOFTable td:nth-child(2) {
    min-width: 120px !important;
    width: auto !important;
}

#historyOFTable th:nth-child(3),
#historyOFTable td:nth-child(3) {
    min-width: 150px !important;
    width: auto !important;
}

#historyOFTable th:nth-child(4),
#historyOFTable td:nth-child(4) {
    min-width: 110px !important;
    width: auto !important;
}

#historyOFTable th:nth-child(5),
#historyOFTable td:nth-child(5),
#historyOFTable th:nth-child(6),
#historyOFTable td:nth-child(6),
#historyOFTable th:nth-child(7),
#historyOFTable td:nth-child(7),
#historyOFTable th:nth-child(8),
#historyOFTable td:nth-child(8),
#historyOFTable th:nth-child(9),
#historyOFTable td:nth-child(9),
#historyOFTable th:nth-child(10),
#historyOFTable td:nth-child(10),
#historyOFTable th:nth-child(11),
#historyOFTable td:nth-child(11) {
    min-width: 120px !important;
    width: auto !important;
}

#historyOFTable th:nth-child(12),
#historyOFTable td:nth-child(12) {
    min-width: 120px !important;
    width: auto !important;
}

/* Tableaux Statistiques Journalières et Mensuelles */
#historyDailyStatsTable,
#historyDailyStatsTable *,
#historyDailyStatsTable::before,
#historyDailyStatsTable::after,
#historyDailyStatsTable *::before,
#historyDailyStatsTable *::after,
#historyMonthlyStatsTable,
#historyMonthlyStatsTable *,
#historyMonthlyStatsTable::before,
#historyMonthlyStatsTable::after,
#historyMonthlyStatsTable *::before,
#historyMonthlyStatsTable *::after {
    all: unset !important;
    display: revert !important;
    box-sizing: border-box !important;
}

#historyDailyStatsTable,
#historyMonthlyStatsTable {
    width: 100% !important;
    min-width: 1300px !important;
    border-collapse: collapse !important;
    table-layout: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #D1D5DB !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

#historyDailyStatsTable thead,
#historyMonthlyStatsTable thead {
    display: table-header-group !important;
    background-color: #F3F4F6 !important;
}

#historyDailyStatsTable thead tr,
#historyMonthlyStatsTable thead tr {
    display: table-row !important;
}

#historyDailyStatsTable thead th,
#historyMonthlyStatsTable thead th {
    display: table-cell !important;
    padding: 12px 10px !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    background-color: #F3F4F6 !important;
    border: 1px solid #D1D5DB !important;
    color: #374151 !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    line-height: 1.3 !important;
    text-align: left !important;
}

#historyDailyStatsTable tbody,
#historyMonthlyStatsTable tbody {
    display: table-row-group !important;
}

#historyDailyStatsTable tbody tr,
#historyMonthlyStatsTable tbody tr {
    display: table-row !important;
}

#historyDailyStatsTable tbody td,
#historyMonthlyStatsTable tbody td {
    display: table-cell !important;
    padding: 10px 10px !important;
    border: 1px solid #D1D5DB !important;
    vertical-align: middle !important;
    font-size: 13px !important;
    color: #1F2937 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#historyDailyStatsTable tbody tr:hover,
#historyMonthlyStatsTable tbody tr:hover {
    background-color: #F9FAFB !important;
}

/* Largeurs des colonnes */
#historyDailyStatsTable th:nth-child(1),
#historyDailyStatsTable td:nth-child(1),
#historyMonthlyStatsTable th:nth-child(1),
#historyMonthlyStatsTable td:nth-child(1) {
    min-width: 110px !important;
    width: auto !important;
}

#historyDailyStatsTable th:nth-child(2),
#historyDailyStatsTable td:nth-child(2),
#historyMonthlyStatsTable th:nth-child(2),
#historyMonthlyStatsTable td:nth-child(2) {
    min-width: 150px !important;
    width: auto !important;
}

#historyDailyStatsTable th:nth-child(3),
#historyDailyStatsTable td:nth-child(3),
#historyMonthlyStatsTable th:nth-child(3),
#historyMonthlyStatsTable td:nth-child(3) {
    min-width: 120px !important;
    width: auto !important;
}

#historyDailyStatsTable th:nth-child(n+4):nth-child(-n+7),
#historyDailyStatsTable td:nth-child(n+4):nth-child(-n+7),
#historyMonthlyStatsTable th:nth-child(n+4):nth-child(-n+7),
#historyMonthlyStatsTable td:nth-child(n+4):nth-child(-n+7) {
    min-width: 120px !important;
    width: auto !important;
}

#historyDailyStatsTable th:nth-child(8),
#historyDailyStatsTable td:nth-child(8),
#historyMonthlyStatsTable th:nth-child(8),
#historyMonthlyStatsTable td:nth-child(8) {
    min-width: 100px !important;
    width: auto !important;
}

#historyDailyStatsTable th:nth-child(9),
#historyDailyStatsTable td:nth-child(9),
#historyMonthlyStatsTable th:nth-child(9),
#historyMonthlyStatsTable td:nth-child(9) {
    min-width: 120px !important;
    width: auto !important;
}

#historyDailyStatsTable th:nth-child(10),
#historyDailyStatsTable td:nth-child(10),
#historyMonthlyStatsTable th:nth-child(10),
#historyMonthlyStatsTable td:nth-child(10) {
    min-width: 120px !important;
    width: auto !important;
}

/* Tableaux Analyse des Temps d'Arrêts */
#arretsAnalysisDepartementTable,
#arretsAnalysisDepartementTable *,
#arretsAnalysisDepartementTable::before,
#arretsAnalysisDepartementTable::after,
#arretsAnalysisDepartementTable *::before,
#arretsAnalysisDepartementTable *::after,
#arretsAnalysisTypeTable,
#arretsAnalysisTypeTable *,
#arretsAnalysisTypeTable::before,
#arretsAnalysisTypeTable::after,
#arretsAnalysisTypeTable *::before,
#arretsAnalysisTypeTable *::after,
#arretsAnalysisMachineTable,
#arretsAnalysisMachineTable *,
#arretsAnalysisMachineTable::before,
#arretsAnalysisMachineTable::after,
#arretsAnalysisMachineTable *::before,
#arretsAnalysisMachineTable *::after,
#arretsAnalysisDetailsTable,
#arretsAnalysisDetailsTable *,
#arretsAnalysisDetailsTable::before,
#arretsAnalysisDetailsTable::after,
#arretsAnalysisDetailsTable *::before,
#arretsAnalysisDetailsTable *::after {
    all: unset !important;
    display: revert !important;
    box-sizing: border-box !important;
}

#arretsAnalysisDepartementTable,
#arretsAnalysisTypeTable,
#arretsAnalysisMachineTable,
#arretsAnalysisDetailsTable {
    width: 100% !important;
    min-width: 1000px !important;
    border-collapse: collapse !important;
    table-layout: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #D1D5DB !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

#arretsAnalysisDepartementTable thead,
#arretsAnalysisTypeTable thead,
#arretsAnalysisMachineTable thead,
#arretsAnalysisDetailsTable thead {
    display: table-header-group !important;
    background-color: #F3F4F6 !important;
}

#arretsAnalysisDepartementTable thead tr,
#arretsAnalysisTypeTable thead tr,
#arretsAnalysisMachineTable thead tr,
#arretsAnalysisDetailsTable thead tr {
    display: table-row !important;
}

#arretsAnalysisDepartementTable thead th,
#arretsAnalysisTypeTable thead th,
#arretsAnalysisMachineTable thead th,
#arretsAnalysisDetailsTable thead th {
    display: table-cell !important;
    padding: 12px 10px !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    background-color: #F3F4F6 !important;
    border: 1px solid #D1D5DB !important;
    color: #374151 !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    line-height: 1.3 !important;
    text-align: left !important;
}

#arretsAnalysisDepartementTable tbody,
#arretsAnalysisTypeTable tbody,
#arretsAnalysisMachineTable tbody,
#arretsAnalysisDetailsTable tbody {
    display: table-row-group !important;
}

#arretsAnalysisDepartementTable tbody tr,
#arretsAnalysisTypeTable tbody tr,
#arretsAnalysisMachineTable tbody tr,
#arretsAnalysisDetailsTable tbody tr {
    display: table-row !important;
    position: relative !important;
}

/* Désactiver les pseudo-éléments qui pourraient créer des colonnes invisibles */
#arretsAnalysisDepartementTable tbody tr::before,
#arretsAnalysisDepartementTable tbody tr::after,
#arretsAnalysisTypeTable tbody tr::before,
#arretsAnalysisTypeTable tbody tr::after,
#arretsAnalysisMachineTable tbody tr::before,
#arretsAnalysisMachineTable tbody tr::after,
#arretsAnalysisDetailsTable tbody tr::before,
#arretsAnalysisDetailsTable tbody tr::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Largeurs spécifiques pour chaque colonne - Tableau Département */
#arretsAnalysisDepartementTable th:nth-child(1),
#arretsAnalysisDepartementTable td:nth-child(1) {
    min-width: 120px !important;
    width: auto !important;
}

#arretsAnalysisDepartementTable th:nth-child(2),
#arretsAnalysisDepartementTable td:nth-child(2),
#arretsAnalysisDepartementTable th:nth-child(3),
#arretsAnalysisDepartementTable td:nth-child(3),
#arretsAnalysisDepartementTable th:nth-child(4),
#arretsAnalysisDepartementTable td:nth-child(4),
#arretsAnalysisDepartementTable th:nth-child(5),
#arretsAnalysisDepartementTable td:nth-child(5) {
    min-width: 100px !important;
    width: auto !important;
}

#arretsAnalysisDepartementTable tbody td,
#arretsAnalysisTypeTable tbody td,
#arretsAnalysisMachineTable tbody td,
#arretsAnalysisDetailsTable tbody td {
    display: table-cell !important;
    padding: 10px 10px !important;
    border: 1px solid #D1D5DB !important;
    vertical-align: middle !important;
    font-size: 13px !important;
    color: #1F2937 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#arretsAnalysisDepartementTable tbody tr:hover,
#arretsAnalysisTypeTable tbody tr:hover,
#arretsAnalysisMachineTable tbody tr:hover,
#arretsAnalysisDetailsTable tbody tr:hover {
    background-color: #F9FAFB !important;
}

/* Largeurs spécifiques pour chaque colonne - Tableau Type */
#arretsAnalysisTypeTable th:nth-child(1),
#arretsAnalysisTypeTable td:nth-child(1) {
    min-width: 120px !important;
    width: auto !important;
}

#arretsAnalysisTypeTable th:nth-child(2),
#arretsAnalysisTypeTable td:nth-child(2),
#arretsAnalysisTypeTable th:nth-child(3),
#arretsAnalysisTypeTable td:nth-child(3),
#arretsAnalysisTypeTable th:nth-child(4),
#arretsAnalysisTypeTable td:nth-child(4),
#arretsAnalysisTypeTable th:nth-child(5),
#arretsAnalysisTypeTable td:nth-child(5) {
    min-width: 100px !important;
    width: auto !important;
}

/* Largeurs spécifiques pour chaque colonne - Tableau Machine */
#arretsAnalysisMachineTable th:nth-child(1),
#arretsAnalysisMachineTable td:nth-child(1) {
    min-width: 150px !important;
    width: auto !important;
}

#arretsAnalysisMachineTable th:nth-child(2),
#arretsAnalysisMachineTable td:nth-child(2) {
    min-width: 120px !important;
    width: auto !important;
}

#arretsAnalysisMachineTable th:nth-child(3),
#arretsAnalysisMachineTable td:nth-child(3),
#arretsAnalysisMachineTable th:nth-child(4),
#arretsAnalysisMachineTable td:nth-child(4),
#arretsAnalysisMachineTable th:nth-child(5),
#arretsAnalysisMachineTable td:nth-child(5),
#arretsAnalysisMachineTable th:nth-child(6),
#arretsAnalysisMachineTable td:nth-child(6) {
    min-width: 100px !important;
    width: auto !important;
}

/* Largeurs spécifiques pour chaque colonne - Tableau Détails */
#arretsAnalysisDetailsTable {
    min-width: 1200px !important;
}

#arretsAnalysisDetailsTable th:nth-child(1),
#arretsAnalysisDetailsTable td:nth-child(1) {
    min-width: 110px !important;
    width: auto !important;
}

#arretsAnalysisDetailsTable th:nth-child(2),
#arretsAnalysisDetailsTable td:nth-child(2),
#arretsAnalysisDetailsTable th:nth-child(3),
#arretsAnalysisDetailsTable td:nth-child(3) {
    min-width: 100px !important;
    width: auto !important;
}

#arretsAnalysisDetailsTable th:nth-child(4),
#arretsAnalysisDetailsTable td:nth-child(4) {
    min-width: 150px !important;
    width: auto !important;
}

#arretsAnalysisDetailsTable th:nth-child(5),
#arretsAnalysisDetailsTable td:nth-child(5) {
    min-width: 120px !important;
    width: auto !important;
}

#arretsAnalysisDetailsTable th:nth-child(6),
#arretsAnalysisDetailsTable td:nth-child(6),
#arretsAnalysisDetailsTable th:nth-child(7),
#arretsAnalysisDetailsTable td:nth-child(7),
#arretsAnalysisDetailsTable th:nth-child(8),
#arretsAnalysisDetailsTable td:nth-child(8) {
    min-width: 100px !important;
    width: auto !important;
}

#arretsAnalysisDetailsTable th:nth-child(9),
#arretsAnalysisDetailsTable td:nth-child(9) {
    min-width: 200px !important;
    width: auto !important;
}

/* Tableaux Top Arrêts par Type */
[id^="topArretsTable_"],
[id^="topArretsTable_"] *,
[id^="topArretsTable_"]::before,
[id^="topArretsTable_"]::after,
[id^="topArretsTable_"] *::before,
[id^="topArretsTable_"] *::after {
    all: unset !important;
    display: revert !important;
    box-sizing: border-box !important;
}

[id^="topArretsTable_"] {
    width: 100% !important;
    min-width: 1200px !important;
    border-collapse: collapse !important;
    table-layout: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #D1D5DB !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

[id^="topArretsTable_"] thead {
    display: table-header-group !important;
    background-color: #F3F4F6 !important;
}

[id^="topArretsTable_"] thead tr {
    display: table-row !important;
}

[id^="topArretsTable_"] thead th {
    display: table-cell !important;
    padding: 12px 10px !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    background-color: #F3F4F6 !important;
    border: 1px solid #D1D5DB !important;
    color: #374151 !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    line-height: 1.3 !important;
    text-align: left !important;
}

[id^="topArretsTable_"] tbody {
    display: table-row-group !important;
}

[id^="topArretsTable_"] tbody tr {
    display: table-row !important;
    position: relative !important;
}

[id^="topArretsTable_"] tbody tr::before,
[id^="topArretsTable_"] tbody tr::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

[id^="topArretsTable_"] tbody td {
    display: table-cell !important;
    padding: 10px 10px !important;
    border: 1px solid #D1D5DB !important;
    vertical-align: middle !important;
    font-size: 13px !important;
    color: #1F2937 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

[id^="topArretsTable_"] tbody tr:hover {
    background-color: #F9FAFB !important;
}

/* Largeurs spécifiques pour chaque colonne - Top Arrêts */
[id^="topArretsTable_"] th:nth-child(1),
[id^="topArretsTable_"] td:nth-child(1) {
    min-width: 60px !important;
    width: auto !important;
}

[id^="topArretsTable_"] th:nth-child(2),
[id^="topArretsTable_"] td:nth-child(2) {
    min-width: 100px !important;
    width: auto !important;
}

[id^="topArretsTable_"] th:nth-child(3),
[id^="topArretsTable_"] td:nth-child(3) {
    min-width: 200px !important;
    width: auto !important;
}

[id^="topArretsTable_"] th:nth-child(4),
[id^="topArretsTable_"] td:nth-child(4) {
    min-width: 100px !important;
    width: auto !important;
}

[id^="topArretsTable_"] th:nth-child(5),
[id^="topArretsTable_"] td:nth-child(5),
[id^="topArretsTable_"] th:nth-child(6),
[id^="topArretsTable_"] td:nth-child(6),
[id^="topArretsTable_"] th:nth-child(7),
[id^="topArretsTable_"] td:nth-child(7),
[id^="topArretsTable_"] th:nth-child(8),
[id^="topArretsTable_"] td:nth-child(8),
[id^="topArretsTable_"] th:nth-child(9),
[id^="topArretsTable_"] td:nth-child(9) {
    min-width: 100px !important;
    width: auto !important;
}

[id^="topArretsTable_"] th:nth-child(10),
[id^="topArretsTable_"] td:nth-child(10),
[id^="topArretsTable_"] th:nth-child(11),
[id^="topArretsTable_"] td:nth-child(11) {
    min-width: 100px !important;
    width: auto !important;
}

