﻿.assistance-table {
    border-collapse: collapse;
    width: 100%;
    max-width: 1200px;
    margin-left: .5rem; 
}

    .assistance-table caption {
        font-weight: bold;
        font-size: 1.2em;
        margin-bottom: 10px;
        text-align: left;
    }

    .assistance-table thead tr {
        background-color: #ffffff;
        text-align: center;
    }

    .assistance-table thead th.activity-column {
        width: 750px;
        text-align: left;
    }

    .assistance-table thead th:not(.activity-column) {
        width: 22px;
    }

   /* .assistance-table tbody td {
        padding: 5px 8px;
    }*/
    .assistance-table tbody td {
        padding: 5px 39px 1px 1px;
    }

        .assistance-table tbody td:nth-child(2) {
            text-align: left;
        }

        .assistance-table tbody td:not(:nth-child(2)) {
            text-align: left;
        }
.shadeit-withcolor {
    background-color: #eeefe1;
    font-weight: bold;
}

.shadeit-withoutcolor {
    background-color: #ffffff;
    font-weight: bold;
}
.fs-6 {
    font-size: 1rem !important;
    font-weight: bold;
}
.form-check {
    min-height: 1.5rem;
    padding-left: 2.5rem;
}

table {
    caption-side: bottom;
    border-collapse: collapse;
    margin-bottom: 1.5rem !important;
    padding-left: 2.5rem;
}

.fws-bold {
    font-weight: 750 !important;
    text-align: center;
}

.mt-4 {
    margin-top: 0rem !important;
}

.survey-page {
    display: none;
}
hr {
    position: relative;
    top: 17px;
}

.material-id-text {
    color: black !important;
    text-align: right;
    font-weight: 650 !important;
    font-size: 14px !important;
}

@media (min-width: 300px) and (max-width: 480px) {
    body{
        padding:1rem;
    }
    .container {
        width: 94%;
    }

    .container {
        max-width: 95%;
        border-radius: 0.75rem !important;
    }

    input[type="radio" i] {
        margin: 5px 3px 0px 5px;
    }

    .btn-group,
    .btn-group-desktop {
        display: none !important;
    }

    .btn-group-mobile {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: left;
        gap: 30px;
        padding: 2px;
        row-gap: 10px;
    }

        .btn-group-mobile > button {
            flex: 1 1 calc(50% - 22px);
            max-width: calc(50% - 22px);
        }

    body .btnFormat {
        width: 60px;
        height: 25px;
    }

    .custom-popup-box {
        max-width:300px;
    }

    .mobile-logo {
        max-width: 89px;
        margin-top: -71px;
        margin-right: -18px;
    }

    .align-items-center {
        align-items: center !important;
        margin-bottom: 8px !important;
    }

    .logo-mobile {
        max-width: 73px;
        height: auto;
        margin-left: 265px;
        margin-top: -109px;
    }
 
    .custom-footer {
        display: flex;
        justify-content: center;
        gap: 10px;
        border-top: none;
        padding-top: 10px;
        margin-left: -38px;
        margin-bottom: -18px;
    }

    /* Stay Button */

    .stay-btn {
        background-color: #6c757d;
        color: white;
        font-family: Arial, sans-serif;
        font-size: 13px;
        padding: 8px 15px;
        border: none;
        border-radius: 5px;
        margin-right: 82px;
    }

    /* Continue Button */

    .continue-btn {
        background-color: #007bff;
        color: white;
        font-family: Arial, sans-serif;
        font-size: 13px;
        padding: 6px 15px;
        border: none;
        border-radius: 5px;
        margin-left: 188px;
        margin-top: -55px;
    }

    .stay-btn:hover {
        background-color: #6c757d;
        color: white;
        cursor: default;
    }

    .continue-btn:hover {
        background-color: #007bff;
        color: white;
        cursor: pointer;
    }

    .scantron-footer {
        margin-left: 85px;
    }

    .modal-static .modal-dialog {
        animation: none !important;
        transform: none !important;
    }
    .assistance-table {
        display: block;
        border: none;
        background: transparent;
        width: 100%;
    }

    .assistance-table {
        border-collapse: collapse;
        width: 100%;
        max-width: 1200px;
        margin-left: -2rem;
    }

        .assistance-table thead {
            display: none;
        }

        .assistance-table tbody,
        .assistance-table tr {
            display: block;
            width: 100%;
        }
        .assistance-table tr {
            margin-bottom: 1.5rem;
            padding: 1.25rem;
            background: #ffffff; 
            border-radius: 1rem;
            border: 1px solid #d0d0d0;
            position: relative;
            width: 108%;
        }

        .assistance-table td:first-child {
            background-color: #ffffff;
            color: #000;
            font-weight: bold;
            font-size: 1rem;
            padding: 1.2rem 2rem;
            border-radius: 2rem;
            border: 2px solid #426ca8;
            box-shadow: 2px 2px 5px rgb(71, 75, 98);
            display: inline-flex;
            align-items: center;
            justify-content: flex-start;
            width: 279px !important;
            margin-bottom: 0;
            margin-top: -1.8rem;
            position: relative;
            left: -24px;
            right: 0;
        }

            .assistance-table td:first-child::after {
                content: "\FE3E";
                font-size: 1.1rem;
                color: #333;
                position: absolute;
                right: 1rem;
                top: 35%;
                transform: scaleX(0.6);
                pointer-events: none;
                width: 12px;
            }
        /* Radio Options */

        .assistance-table td:not(:first-child) {
            display: flex;
            align-items: center;
            padding-left: 2rem;
            margin: 0.5rem 0;
            min-height: 1.2rem;
            font-size: 0.95rem;
            position: relative;
            word-break: break-word;
            color: #000;
        }
        .assistance-table tbody tr:nth-child(odd) {
            background-color: #ffffff;
            font-weight: bold;
        }
        .assistance-table tbody tr:nth-child(even) {
            background-color: #ffffff;
            font-weight: bold;
        }
        /* Radio Circle */

        .assistance-table input[type="radio"] {
            position: absolute;
            left: -7px;
            top: 50%;
            transform: translateY(-50%);
            width: 0.8rem;
            height: 1.2rem;
            margin: 0;
            cursor: pointer;
        }

        /* Label Text from Data Attribute */

        .assistance-table td:not(:first-child)::after {
            content: attr(data-label);
            display: inline-block;
            font-weight: 350 !important;
            text-align: left;
            margin-left: -13px;
        }

    /* Accessibility Helper */

    .visually-hidden {
        position: absolute !important;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        height: 1px;
        width: 1px;
        overflow: hidden;
        white-space: nowrap;
    }
    .assistance-table tr.selected {
        background: #ffffff !important;
    }
    .mbl-btn-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
        padding: 10px;
    }
    .mblbtnFormat {
        background-color: #006fa1 !important;
        color: #ffffff !important;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 8pt;
        font-weight: bold;
        border: 2px solid black;
        width: 100%;
        cursor: pointer;
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 35px;
    }

        .mblbtnFormat:hover,
        .mblbtnFormat:focus {
            background-color: #3086e3 !important;
            box-shadow: 0 0 0 0.2rem rgba(0, 111, 161, 0.3);
            outline: none;
        }

        .mblbtnFormat:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            pointer-events: none;
            display: none !important;
        }

    .fws-bold {
        font-weight: 650 !important;
        text-align: left;
    }
}

@media (min-width: 384px) and (max-width: 390px) {
    .assistance-table td:first-child {
        width: 319px !important;
    }
}

@media (min-width: 390px) and (max-width: 412px) {
    .assistance-table td:first-child {
        width: 314px !important;
    }
}
/* 412px devices */
@media (min-width: 410px) and (max-width: 414px) {
    .assistance-table td:first-child {
        width: 334px !important;
    }
}
/* 414px devices */
@media (min-width: 414px) and (max-width: 416px) {
    .assistance-table td:first-child {
        width: 337px !important;
    }
}
/* 320px devices */
@media (min-width: 318px) and (max-width: 322px) {
    .assistance-table td:first-child {
        width: 236px !important;
    }
}
@media (min-width: 373px) and (max-width: 377px) {
    .assistance-table td:first-child {
        width: 295px !important;
    }
}
@media (min-width: 426px) and (max-width: 430px) {
    .assistance-table td:first-child {
        width: 350px !important;
    }
}
@media (min-width: 1400px) {
    .container {
        max-width: 1420px;
    }
}

/* ======================================================
   BELOW 300px – SINGLE COLUMN MOBILE BUTTONS
   ====================================================== */
@media (max-width: 300px) {
    .btn-group,
    .btn-group-desktop {
        display: none !important;
    }
    .btn-group-mobile {
        display: flex !important;
        flex-direction: column !important; 
        width: 100% !important;
        gap: 10px !important;
        padding: 5px !important;
    }
        .btn-group-mobile > button,
        .mblbtnFormat {
            width: 100% !important;
            height: 35px !important; 
            line-height: normal !important; 
            text-align: center !important;
            white-space: normal !important;
            overflow: hidden !important;
            overflow-wrap: break-word !important;
            word-break: break-word !important;
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
        }
    #btnBack:disabled,
    #btnSubmit:disabled {
        display: none !important;
    }
    .last-page #btnSubmit {
        display: block !important;
    }
}
