.full-height-accordion {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    padding: 10px;
    overflow-y: hidden; /* No scrolling by default */
}

.full-height-accordion .table-responsive {
    height: calc(100vh - 150px); /* Adjust for header and metadata */
    overflow-y: auto; /* Scroll only if content overflows this height */
}

.full-height-accordion table {
    font-size: 0.9rem;
    width: 100%;
}

.full-height-accordion th, .full-height-accordion td {
    padding: 4px 8px;
}

.full-height-accordion tbody {
    line-height: 1.3;
}


.sticky-thead {
    position: sticky;
    top: 0;
    background-color: #343a40;
    color: white;
    z-index: 10;
}

/* Ensure the parent container supports sticky positioning */
.table-responsive.temp {
    position: relative;
    overflow-y: auto;
    min-height: 1900px;
}

/* Prevent interference from intermediate parents */
.card-body, .collapse {
    overflow: visible;
}

td {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

/* Badge/Pill style for active color method */
.form-check-inline.badge-simple {
    background-color: transparent;
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 6px 7px;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.form-check-inline.badge-simple.active-method {
    background-color: #28a745;
    border-color: #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.form-check-inline.badge-simple.active-method label {
    font-weight: 700;
    color: #ffffff;
}

.form-check-inline.badge-percent {
    background-color: transparent;
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 6px 7px;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.form-check-inline.badge-percent.active-method {
    background-color: #007bff;
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.form-check-inline.badge-percent.active-method label {
    font-weight: 700;
    color: #ffffff;
}

.form-check-inline.badge-step {
    background-color: transparent;
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 6px 7px;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.form-check-inline.badge-step.active-method {
    background-color: #6f42c1;
    border-color: #6f42c1;
    box-shadow: 0 0 10px rgba(111, 66, 193, 0.5);
}

.form-check-inline.badge-step.active-method label {
    font-weight: 700;
    color: #ffffff;
}

/* Pulse animation for badges */
@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    }
}

.form-check-inline.active-method.pulsing {
    animation: badge-pulse 2s ease-in-out;
}
