@media (min-width:1200px) {
    .for-fixed {
        position: relative;
        height: 100vh;
    }

    .for-fixed-bottom {
        position: absolute;
    }
}

@media (max-width:1399px) {
    .show-pic div {
        height: 180px;
    }

    #upload-documents .card div:first-of-type {
        height: 125px;
    }
}

@media (max-width:1199px) {
    .show-pic div {
        height: 150px;
    }
}

@media (max-width:992px) {
    .for-table thead {
        display: none;
    }

    .for-table tbody tr {
        display: block;
        margin: 10px 0;
        background-color: #fff;
    }

    .for-table tbody tr:not(.table-list tr) {
        border: 1px solid #1fb3c8;
        margin-top: 1.5rem;
    }

    .for-table tbody th {
        display: block;
        text-align: left;
        color: #0C2C40;
        border: none;
    }

    .for-table td:nth-of-type(n)::before {
        content: attr(m-show);
        color: #01977a;
        display: block;
        white-space: nowrap !important;
    }

    .for-table td:nth-of-type(n) {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        flex: 0 0 50%;
        width: 50%;
    }

    .for-table tbody td {
        display: inline-block;
        text-align: left;
        color: #0C2C40;
    }

    .for-table tbody tr {
        display: flex;
        align-items: start;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .for-table tbody th {
        flex: 0 0 auto;
        width: 100%;
        background-color: #f2f2f2;
    }

    .for-table td {
        border: none !important;
    }

    #upload-documents .card div:first-of-type {
        height: 100px;
    }

    .bg-md-white {
        background-color: #fff !important;
    }

    .bg-md-gray-f5 {
        background-color: #F5F5F5 !important;
    }

    .modal.upload-documents #upload-documents .card .d-inline-block {
        height: 67px;
    }

    #upload-documents.upload-file .card div:first-of-type {
        height: 170px;
        width: auto;
    }
}

@media (max-width:900px) {
    #upload-documents .card div:first-of-type {
        height: 100px;
    }
}

@media (max-width:767px) {
    #main-menu .container>div.d-flex {
        overflow-x: auto;
        overflow-y: hidden;
    }

    #menu.collapse {
        height: 50px;
        align-items: center;
        transition: all 0.3s ease;
    }

    #main-menu button {
        box-shadow: -4px 0 3px #DDDDDD;
    }

    #menu.collapse.show {
        height: 510px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 1rem 0;
    }

    #menu.collapse.show .dropdown-menu {
        display: block;
        width: 100%;
    }

    #menu .dropdown-toggle::after {
        display: none;
    }

    #main-menu .navbar button+ul>li>a {
        border: none !important
    }

    .show-pic div {
        height: 245px;
    }

    #upload-documents .card div:first-of-type {
        height: 230px;
    }
    
/* --------------------20240119 無障礙測 修 */
    header .position-fixed {
        position: static !important;
        height: 100%;
    }

    #main-menu {
        position: absolute;
        left: 0;
        right: 0;
        top: 150px;
        height: 100%;
    }

    #main-menu .navbar {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .banner {
        padding-top: 48px;
    }

    main {
        position: relative
    }
}

@media (max-width:576px) {
    .fixed-right {
        bottom: 53px;
    }

    .icon-left::before {
        left: 0;
    }

    .for-table td:nth-of-type(n) {
        flex: 0 0 100%;
        width: 100%;
    }

    .dropdown-toggle::after {
        display: none
    }

    #upload-documents .card div:first-of-type {
        height: 165px;
    }

    .show-pic div {
        height: 185px;
    }

    .bg-sm-white {
        background-color: #fff !important;
    }

    .bg-sm-gray-f5 {
        background-color: #F5F5F5 !important;
    }

    #upload-documents.upload-file .card div:first-of-type {
        height: 175px;
        width: auto;
    }

    .modal.upload-documents #upload-documents .card .d-inline-block {
        height: 140px;
    }

    #menu.collapse:not(.collapse.show) .dropdown-menu {
        top: -23px;
        left: 80%;
        text-align: start !important;
        background-color: transparent;
        display: flex;
        align-items: center;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-shadow: none !important;
        z-index: 1;
        width: 100% !important;
    }

    #menu.collapse:not(.collapse.show) .dropdown-menu>li {
        display: flex;
        align-items: center;
        margin-bottom: 0 !important;
        width: 100% !important;
        background-color: rgba(255, 255, 255, 0.4);
    }

    #menu.collapse:not(.collapse.show) .dropdown-menu ol {
        display: flex;

    }

    #menu.collapse:not(.collapse.show) .fa-angle-down {
        transform: rotate(270deg);
    }

    #menu.collapse:not(.collapse.show) .dropdown-toggle .fa-angle-down {
        display: inline-block !important;
    }

    #search-practice-registration #code-button .col-lg.col-md-4.pe-2.text-center.mb-md-0.mb-3 {
        flex: 0 0 auto;
        width: 66.66666667%;
    }

}

@media (max-width:413px) {

    #detail-preview .for-373-ch,
    #detail-preview .for-373-en {
        display: block;
    }
}

@media (max-width:373px) {

    .for-373-ch,
    .for-373-en {
        display: block;
    }
}