﻿.progress-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.progress-table thead {
    background: #f3d100;
    color: white;
}

.progress-table th,
.progress-table td {
    padding: 12px;
    text-align: left;
}

.progress-table tbody tr:nth-child(odd) {
    background: #d9dde0;
}

.progress-table tbody tr:nth-child(even) {
    background: #eef1f3;
}


.progress-wrapper {
    background: #cfd6db;
    height: 36px;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    background: #155f7f;
    height: 100%;
    width: 0;
    position: relative;
    transition: width 0.8s ease, background 0.4s ease;
}

.progress-bar span {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
}

.progress-red {
    background: #d9534f; /* red */
}

.progress-orange {
    background: #f0ad4e; /* orange */
}

.progress-green {
    background: #5cb85c; /* green */
}

.tooltip-cell {
    position: relative;
    cursor: help;
}

/* Tooltip box */
.tooltip-cell::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

/* Tooltip arrow */
.tooltip-cell::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Show on hover */
.tooltip-cell:hover::after,
.tooltip-cell:hover::before {
    opacity: 1;
}

@media (max-width: 768px) {
    .progress-table thead {
        display: none;
    }

    .progress-table,
    .progress-table tbody,
    .progress-table tr,
    .progress-table td {
        display: block;
        width: 100%;
    }

    .progress-table tr {
        margin-bottom: 15px;
        border-radius: 6px;
        overflow: hidden;
    }

    .progress-table td {
        text-align: left;
        padding: 10px;
    }

    .progress-table td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        margin-bottom: 4px;
        color: #155f7f;
    }
}
