    /* Tabs Navigation Styling */
    .nav-tabs {
        border-bottom: 2px solid #e0e0e0;
        background-color: #fafafa;
        border-radius: 4px 4px 0 0;
        margin-bottom: 0;
        display: flex;
        flex-direction: row;
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-tabs .nav-link {
        color: #005068;
        border: 1px solid #ddd;
        border-bottom: none;
        border-radius: 4px 4px 0 0;
        margin-right: 2px;
        padding: 10px 20px;
        font-weight: 500;
        font-size: 14px;
        transition: all 0.3s ease;
        background-color: #f0f0f0;
    }

    .nav-item {
        display: flex;
    }

    .nav-tabs .nav-link:hover {
        background-color: #e8f0f5;
        border-color: #b0c4de;
    }

    .nav-tabs .nav-link.active {
        color: #fff;
        background-color: #005068;
        border-color: #005068;
        border-bottom-color: #005068;
    }

    /* Tab Content Styling */
    body:has(#trialTabsContent) {
        height: 100vh;
        min-height: 0;
        overflow: hidden;
    }

    main.main-content:has(#trialTabsContent) {
        display: flex;
        flex: 1;
        flex-direction: column;
        min-height: 0;
    }

    main.main-content:has(#trialTabsContent) > .container {
        display: flex;
        flex: 1;
        flex-direction: column;
        min-height: 0;
    }

    .tab-content {
        background-color: #fff;
        border: 1px solid #e0e0e0;
        border-top: 2px solid #005068;
        border-radius: 0 0 4px 4px;
        padding: 0;
        display: flex;
        flex: 1;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
    }

    .tab-pane {
        animation: fadeIn 0.3s ease-in-out;
        display: none;
        flex: 1;
        min-height: 0;
        overflow: hidden;
        width: 100%;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .tab-pane.fade {
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

    .tab-pane.fade.show {
        opacity: 1;
    }

    .tab-pane.fade.show.active {
        opacity: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        min-width: 0;
        width: 100%;
    }

    /* Dynamic Table in Tabs */
    .tab-pane .dynamic-table-wrapper {
        margin: 0;
        padding: 20px;
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        min-width: 0;
        overflow: hidden;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    #trialTabsContent .tab-pane .table-container {
        flex: 1;
        height: auto;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        box-sizing: border-box;
    }

    .tab-pane .dynamic-table-wrapper .search-box {
        width: 100%;
        box-sizing: border-box;
    }

    .tab-pane .dynamic-table {
        background-color: #fff;
    }

    .tab-pane .dynamic-table thead {
        position: sticky;
        top: 0;
        z-index: 10;
        background-color: #005068;
        color: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), inset 0 -2px 0 rgba(0, 61, 92, 1);
    }

    .tab-pane .dynamic-table th {
        padding: 5px;
        text-align: left;
        font-weight: 600;
        cursor: pointer;
        user-select: none;
        transition: background-color 0.2s ease;
        position: relative;
        color: white;
    }

    .tab-pane .dynamic-table th:hover {
        background-color: #003d52;
    }

    .tab-pane .dynamic-table tbody tr {
        border-bottom: 1px solid #eee;
        transition: background-color 0.2s;
    }

    .tab-pane .dynamic-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .trial-info-box {
        position: absolute;
        top: 100px;
        right: 265px;
        background:  rgba(0, 0, 0, 0.5);
        color: white;
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 13px;
        display: flex;
        flex-direction: column;
        z-index: 10;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .trial-info-box span {
        margin: 0;
    }

    /* Boîte des répliques (REP) à gauche de trial-info-box */
    .trial-reps-box {
        position: absolute;
        top: 100px;
        right: 265px;
        transform: translateX(calc(-100% - 20px));
        background: rgba(0, 0, 0, 0.5);
        color: white;
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 13px;
        z-index: 10;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .trial-reps-title {
        font-weight: 600;
        margin-bottom: 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }

    .trial-reps-table {
        border-collapse: collapse;
    }

    .trial-reps-table th,
    .trial-reps-table td {
        padding: 0px 10px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .trial-reps-table th {
        font-weight: 600;
        font-style: italic;
        color: #ffd54f;
    }

    .trial-reps-table .rep-modality-select {
        height: 20px;
        padding: 0 3px;
        font-size: 12px;
    }

    /* Responsive Tabs */
    @media (max-width: 768px) {
        .nav-tabs .nav-link {
            padding: 8px 12px;
            font-size: 12px;
        }

        .tab-content {
            padding: 0;
        }

        .tab-pane .dynamic-table-wrapper {
            padding: 15px;
        }
    }

    /* Tab content container sizing */
    #trialTabsContent {
        display: flex;
        flex: 1;
        min-height: 0;
        max-height: none;
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
    }
