<style>
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    .tab__btn--active {
        opacity: 1;
    }

    .tab__btn:hover {
        opacity: 1;
    }


    .tab__item {
        position: absolute;

        display: none;
        width: 100%;
        padding: 20px;

        font-family: 'Arial', sans-serif;
        font-size: 14px;
        color: black;
        line-height: 1.4em;


        background: white;

        animation: fadeEffect 0.6s ease;
    }

    .tab__item--active {
        display: block;
    }

    @keyframes fadeEffect {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

        to {
            opacity: 1;
            transform: translateY(0px);
        }
    }

    .btn.active {
        background-color: #337ab7;
        color: #fff;
    }


 .table-container {
        height: 400px; /* Set the desired height for the table container */
        overflow-y: auto; /* Enable vertical scrolling */
    }

    .table thead th {
        position: sticky;
        top: 0;
        background-color: #343a40; /* Set the desired background color for the header */
    }
</style>


<div class="tabs">
    <div class="tab__btns">
        <button type="button" class="btn btn-default tab__btn active" data-item="item-1">
            <span>System Details</span>
        </button>
        <button type="button" class="btn btn-default tab__btn" data-item="item-2">
            <span>Apache Details</span>
        </button>
        <button type="button" class="btn btn-default tab__btn" data-item="item-3">
            <span>Mongo Details</span>
        </button>
        <button type="button" class="btn btn-default tab__btn" data-item="item-4">
            <span>Tomcat Details</span>
        </button>
        <button type="button" class="btn btn-default tab__btn" data-item="item-5">
            <span>More Details</span>
        </button>
    </div>

    <div class="tab__items modal-content">
        <div id="item-1" class="tab__item tab__item--active">
            <div style="display:grid; grid-template-columns: 1fr 1fr;">
                <div style="width:100%; margin:0 auto;">
                    
                    <div class="table-responsive">
                        <div>
                            <table class="table align-items-center table-dark">
                                <thead class="thead-dark">
                                    <tr>
                                        <th scope="col">
                                            System Details
                                        </th>
                                        <th scope="col">

                                        </th>

                                    </tr>
                                </thead>
                                <tbody class="list">
                                    {% for key, value in employeelist.items() %}
                                    <tr>
                                        <td class="budget">
                                            {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            {% endif %}
                                        </td>
                                        {% endfor %}
                                        {% for key, value in physical.items() %}
                                    <tr>
                                        {% if key == "Disk Space" or key =="Disk Free" %}
                                        <td class="budget">
                                            / {{key}}  
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0] | lstrip_zero}}
                                            </span>
                                            {% endif %}
                                        </td>
                                        {% elif key == "Disk Used" %}
                                        <td class="budget">
                                            / {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}  ({{value[1]|round(2)}}%)
                                            </span>
                                            
                                            {% endif %}
                                        </td>
                                        {% elif key == "Available for Application" %}
                                        <td class="budget">
                                            {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0] | bytes_to_gb}}  ({{value[1]|round(2)}}%)
                                            </span>
                                            
                                            {% endif %}
                                        </td>
                                        {% elif key == "Mongo Rate Limit" %}
                                        <td class="budget">
                                            {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            
                                            {% endif %}
                                        </td>


                                        {% elif key == "Pool Thread Count" %}
                                        <td class="budget">
                                            {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            
                                            {% endif %}
                                        </td>

                                        {% else %}
                                        <td class="budget">
                                            {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span style="color: {{value[1]}};">
                                                <i class="bg-warning"></i>{{value[0] | bytes_to_gb}}
                                            </span>
                                            
                                            {% endif %}
                                        </td>
                                        
                                        {% endif %}
                                        {% endfor %}
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div id="item-2" class="tab__item">
            <div style="display:grid; grid-template-columns: 1fr 1fr;">
                <div style="width:80%; margin:0 auto;">
                    <div class="table-responsive">
                        <div>
                            <table class="table align-items-center table-dark">
                                <thead class="thead-dark">
                                    <tr>
                                        <th scope="col">
                                            System Details
                                        </th>
                                        <th scope="col">

                                        </th>

                                    </tr>
                                </thead>
                                <tbody class="list">
                                    {% for key, value in employeelist.items() %}
                                    <tr>
                                        <td class="budget">
                                            {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            {% endif %}
                                        </td>
                                        {% endfor %}
                                        {% for key, value in physical.items() %}
                                    <tr>
                                        {% if key == "Disk Space" or key =="Disk Free" %}
                                        <td class="budget">
                                            / {{key}}  
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0] | lstrip_zero}}
                                            </span>
                                            {% endif %}
                                        </td>
                                        {% elif key == "Disk Used" %}
                                        <td class="budget">
                                            / {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}  ({{value[1]|round(2)}}%)
                                            </span>
                                            
                                            {% endif %}
                                        </td>
                                        {% elif key == "Available for Application" %}
                                        <td class="budget">
                                            {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0] | bytes_to_gb}}  ({{value[1]|round(2)}}%)
                                            </span>
                                            
                                            {% endif %}
                                        </td>

                                        {% elif key == "Mongo Rate Limit" %}
                                        <td class="budget">
                                            {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            
                                            {% endif %}
                                        </td>

                                        {% elif key == "Pool Thread Count" %}
                                        <td class="budget">
                                            {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            
                                            {% endif %}
                                        </td>

                                        {% else %}
                                        <td class="budget">
                                            {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span style="color: {{value[1]}};">
                                                <i class="bg-warning"></i>{{value[0] | bytes_to_gb}}
                                            </span>
                                            
                                            {% endif %}
                                        </td>
                                        
                                        {% endif %}
                                        {% endfor %}
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div style="width:80%; margin:0 auto;">
                    <div class="table-responsive">
                        <div>
                            <table class="table align-items-center table-dark">
                                <thead class="thead-dark">
                                    <tr>
                                        <th scope="col">
                                            Apache Details
                                        </th>
                                        <th scope="col">

                                        </th>

                                    </tr>
                                </thead>
                                <tbody class="list">
                                    {% for key, value in apach.items() %}
                                    <tr>
                                        <td class="budget">
                                            {{key}}
                                        </td>

                                        {% if key == "Apache2 Uptime" %}
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            {% endif %}
                                        </td>
                                        {% else %}
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            {% endif %}
                                            
                                        </td>
                                        {% endif %}
                                        {% endfor %}
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div id="item-3" class="tab__item">
            <div style="display:grid; grid-template-columns: 1fr 1fr;">
                <div style="width:80%; margin:0 auto;">

                    <div class="table-responsive">
                        <div>
                            <table class="table align-items-center table-dark">
                                <thead class="thead-dark">
                                    <tr>
                                        <th scope="col">
                                            System Details
                                        </th>
                                        <th scope="col">

                                        </th>

                                    </tr>
                                </thead>
                                <tbody class="list">
                                    {% for key, value in employeelist.items() %}
                                    <tr>
                                        <td class="budget">
                                            {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            {% endif %}
                                        </td>
                                        {% endfor %}
                                        {% for key, value in physical.items() %}
                                    <tr>
                                        {% if key == "Disk Space" or key =="Disk Free" %}
                                        <td class="budget">
                                            / {{key}}  
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0] | lstrip_zero}}
                                            </span>
                                            {% endif %}
                                        </td>
                                        {% elif key == "Disk Used" %}
                                        <td class="budget">
                                            / {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}  ({{value[1]|round(2)}}%)
                                            </span>
                                            
                                            {% endif %}
                                        </td>
                                        {% elif key == "Available for Application" %}
                                        <td class="budget">
                                            {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0] | bytes_to_gb}}  ({{value[1]|round(2)}}%)
                                            </span>
                                            
                                            {% endif %}
                                        </td>

                                        {% elif key == "Mongo Rate Limit" %}
                                        <td class="budget">
                                            {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            
                                            {% endif %}
                                        </td>

                                        {% elif key == "Pool Thread Count" %}
                                        <td class="budget">
                                            {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            
                                            {% endif %}
                                        </td>

                                        {% else %}
                                        <td class="budget">
                                            {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span style="color: {{value[1]}};">
                                                <i class="bg-warning"></i>{{value[0] | bytes_to_gb}}
                                            </span>
                                            
                                            {% endif %}
                                        </td>
                                        
                                        {% endif %}
                                        {% endfor %}
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div style="width:80%; margin:0 auto;">
                    <div class="table-responsive">
                        <div>
                            <table class="table align-items-center table-dark">
                                <thead class="thead-dark">
                                    <tr>
                                        <th scope="col">
                                            Mongo Details
                                        </th>
                                        <th scope="col">

                                        </th>

                                    </tr>
                                </thead>
                                <tbody class="list">
                                    {% for key, value in mong.items() %}
                                    <tr>
                                        <td class="budget">
                                            {{key}}
                                        </td>
                                        {% if key == "WiredTiger cache space" %}
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span style="color: {{value[1]}};">
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            {% endif %}
                                            
                                        </td>
                                        

                                        {% elif key == "Mongo Backup Folder Size" %}
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            {% endif %}
                                            
                                        </td>
                                        
                                        {% elif key == "Mongo DB Storage" %}
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            {% endif %}
                                           
                                        </td>
                                        

                                        {% elif key == "Mongo Last Backup" %}
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span style="color: {{value[1]}};">
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            
                                            {% endif %}
                                            
                                        </td>
                                        {% else %}
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            {% endif %}                         
                                        </td>
                                        {% endif %}
                                        {% endfor %}
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>

            </div>
        </div>
        <div id="item-4" class="tab__item">
            <div style="display:grid; grid-template-columns: 1fr 1fr;">
                <div style="width:80%; margin:0 auto;">

                    <div class="table-responsive">
                        <div>
                            <table class="table align-items-center table-dark">
                                <thead class="thead-dark">
                                    <tr>
                                        <th scope="col">
                                            System Details
                                        </th>
                                        <th scope="col">

                                        </th>

                                    </tr>
                                </thead>
                                <tbody class="list">
                                    {% for key, value in employeelist.items() %}
                                    <tr>
                                        <td class="budget">
                                            {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            {% endif %}
                                        </td>
                                        {% endfor %}
                                        {% for key, value in physical.items() %}
                                    <tr>
                                        {% if key == "Disk Space" or key =="Disk Free" %}
                                        <td class="budget">
                                            / {{key}}  
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0] | lstrip_zero}}
                                            </span>
                                            {% endif %}
                                        </td>
                                        {% elif key == "Disk Used" %}
                                        <td class="budget">
                                            / {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}  ({{value[1]|round(2)}}%)
                                            </span>
                                            
                                            {% endif %}
                                        </td>
                                        {% elif key == "Available for Application" %}
                                        <td class="budget">
                                            {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0] | bytes_to_gb}}  ({{value[1]|round(2)}}%)
                                            </span>
                                            
                                            {% endif %}
                                        </td>

                                        {% elif key == "Mongo Rate Limit" %}
                                        <td class="budget">
                                            {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            
                                            {% endif %}
                                        </td>

                                        {% elif key == "Pool Thread Count" %}
                                        <td class="budget">
                                            {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            
                                            {% endif %}
                                        </td>

                                        {% else %}
                                        <td class="budget">
                                            {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span style="color: {{value[1]}};">
                                                <i class="bg-warning"></i>{{value[0] | bytes_to_gb}}
                                            </span>
                                            
                                            {% endif %}
                                        </td>
                                        
                                        {% endif %}
                                        {% endfor %}
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div style="width:80%; margin:0 auto;">

                    <div class="table-responsive">
                        <div>
                            <table class="table align-items-center table-dark">
                                <thead class="thead-dark">
                                    <tr>
                                        <th scope="col">
                                            Tomcat Details
                                        </th>
                                        <th scope="col">

                                        </th>

                                    </tr>
                                </thead>
                                <tbody class="list">
                                    {% for key, value in tom.items() %}
                                    <tr>
                                        <td class="budget">
                                            {{key}}
                                        </td>

                                        
                                        {% if key == "Memory Partition Tomcat JOB1" %}
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            {% endif %} 
                                            
                                        </td>
                                        {% elif key == "Memory Partition Tomcat PCB1" %}
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            {% endif %} 
                                            
                                        </td>
                                        {% elif key == "Tomcat JOB 1 Uptime" %}
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            {% endif %}
                                            
                                        </td>
                                        {% elif key == "Tomcat PCB 1 Uptime" %}
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            {% endif %}
                                            
                                        </td>
                                        {% else %}
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>0
                                            </span>
                                            {% else %}
                                            <span style="color: {{value[1]}};">
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            {% endif %}
                                            
                                        </td>
                                        {% endif %}
                                        {% endfor %}
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div id="item-5" class="tab__item">
            <div style="display:grid; grid-template-columns: 1fr 1fr;">
                <div style="width:80%; margin:0 auto;">
                    <div class="table-responsive">
                        <div>
                            <table class="table align-items-center table-dark">
                                <thead class="thead-dark">
                                    <tr>
                                        <th scope="col">
                                            System Details
                                        </th>
                                        <th scope="col">

                                        </th>

                                    </tr>
                                </thead>
                                <tbody class="list">
                                    {% for key, value in employeelist.items() %}
                                    <tr>
                                        <td class="budget">
                                            {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            {% endif %}
                                        </td>
                                        {% endfor %}
                                        {% for key, value in physical.items() %}
                                    <tr>
                                        {% if key == "Disk Space" or key =="Disk Free" %}
                                        <td class="budget">
                                            / {{key}}  
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0] | lstrip_zero}}
                                            </span>
                                            {% endif %}
                                        </td>
                                        {% elif key == "Disk Used" %}
                                        <td class="budget">
                                            / {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}  ({{value[1]|round(2)}}%)
                                            </span>
                                            
                                            {% endif %}
                                        </td>
                                        {% elif key == "Available for Application" %}
                                        <td class="budget">
                                            {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0] | bytes_to_gb}}  ({{value[1]|round(2)}}%)
                                            </span>
                                            
                                            {% endif %}
                                        </td>

                                        {% elif key == "Mongo Rate Limit" %}
                                        <td class="budget">
                                            {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            
                                            {% endif %}
                                        </td>

                                        {% elif key == "Pool Thread Count" %}
                                        <td class="budget">
                                            {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            
                                            {% endif %}
                                        </td>

                                        {% else %}
                                        <td class="budget">
                                            {{key}}
                                        </td>
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span style="color: {{value[1]}};">
                                                <i class="bg-warning"></i>{{value[0] | bytes_to_gb}}
                                            </span>
                                            
                                            {% endif %}
                                        </td>
                                        
                                        {% endif %}
                                        {% endfor %}
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div style="width:80%; margin:0 auto;">
                
                    <div class="table-responsive">
                        <div>
                            <table class="table align-items-center table-dark">
                                <thead class="thead-dark">
                                    <tr>
                                        <th scope="col">
                                            More Details
                                        </th>
                                        <th scope="col">
                                        </th>
                                    </tr>
                                </thead>
                                <tbody class="list">
                              
                                    {% for key, value in moreDet.items() %}
                                    <tr>
                                        <td class="budget">
                                            {{key}}
                                        </td>
                                        {% if key == "/parablu" %}
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span>
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            {% endif %}
                                        </td>
                                        
                                        {% elif key == "/parablu/tmp-chunk" %}
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span style="color: {{value[1]}};">
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            {% endif %}
                                            
                                        </td>

                                        
                                        

                                        {% elif key == "/installables/patch" %}
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span style="color: {{value[1]}};">
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            {% endif %}
                                            
                                        </td>
                                        
                                        

                                        {% elif key == "Dedup Backup Policy" %}
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span>
                                                <i class="bg-warning"></i>N/A
                                            </span>
                                            {% else %}
                                            <span style="color: {{value[1]}};">
                                                <i class="bg-warning"></i>{{value[0] | capitalize_first_letter}}
                                            </span>
                                            {% endif %}
                                        </td>

                                        {% else %}
                                        <td class="status">
                                            {% if value[0] == "0" %}
                                            <span style="color: {{value[1]}};">
                                                <i class="bg-warning"></i>N/A
                                            </span>

                                            
                                            {% else %}
                                            <span style="color: {{value[1]}};">
                                                <i class="bg-warning"></i>{{value[0]}}
                                            </span>
                                            {% endif %}
                                            
                                        </td>
                                        {% endif %}
                                        {% endfor %}
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>


    <script>
        let tabBtn1 = document.querySelectorAll(".tab__btn");
        const tabContents = document.querySelectorAll(".tab__item");

        tabBtn1.forEach(function (element) {
            element.addEventListener("click", openTabs);
        });

        function openTabs(evt) {
            const btnTarget = evt.currentTarget;
            const item = btnTarget.dataset.item;

            tabContents.forEach(function (item) {
                item.classList.remove("tab__item--active");
            });

            tabBtn1.forEach(function (item) {
                item.classList.remove("tab__btn--active");
            });

            document.querySelector(`#${item}`).classList.add("tab__item--active");

            btnTarget.classList.add("tab__btn--active");
        }

        $('.tab__btn').click(function () {
            $('.tab__btn').removeClass('active');
            $(this).addClass('active');
        });


    </script>