﻿/******************************************************************
      ** media query
      *******************************************************************/
/* 여기부터 모바일 스타일로 변경 */
@media all and (max-width: 1023px) {
    .EDMS_M_draft_category {
        flex-direction: column;
        background-color: #fcf8fc;
        border-radius: 0;
        width: 100%;
        height: fit-content;
    }

    .EDMS-title {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 21px 10px;
    }

    .EDMS-category-wrapper {
        padding: 0 15px;
    }

    .EDMS-list-subwrapper {
        padding-bottom: 20px;
    }

    .EDMS-first-category {
        border: 1px solid #ffffff;
        background-color: #ffffff;
        color: #242424;
        box-shadow: 0px 3px 6px #5c5fc033;
        border-radius: 10px;
        padding: 15px 10px 15px 20px;
        height: 45px;
        width: 100%;
        justify-items: center;
        align-items: center;
        display: flex;
        justify-content: space-between;
        cursor: pointer;
    }

    .EDMS-second-category {
        border: 1px solid #ffffff;
        background-color: #ffffff;
        color: #242424;
        box-shadow: 0px 3px 6px #5c5fc033;
        border-radius: 10px; /* 왼쪽 위 */
        padding: 15px 10px 15px 20px;
        height: 45px;
        width: 100%;
        justify-items: center;
        align-items: center;
        display: flex;
        justify-content: space-between;
        cursor: pointer;
    }

    .EDMS-draft-write {
        border: 1px solid #5c5fc033;
        background-color: #5c5fc0;
        color: white;
        box-shadow: 0px 3px 6px #5c5fc033;
        border-radius: 10px; /* 왼쪽 위 */
        padding: 10px; /* padding 값을 조정하여 가운데 정렬 유지 */
        height: 45px;
        width: 100%;
        display: flex; /* Flexbox 활성화 */
        justify-content: center; /* 수평 중앙 정렬 */
        align-items: center; /* 수직 중앙 정렬 */
        text-align: center; /* 텍스트 정렬 */
    }

    /* Toggle-Menu */
    .first-toggle-down {
        position: relative;
    }

    .first-toggle-content {
        max-height: 0; /* 기본적으로 높이를 0으로 설정 */
        overflow: hidden; /* 콘텐츠가 넘어가지 않도록 설정 */
        transition: max-height 0.3s ease, padding 0.3s ease; /* 부드러운 애니메이션 효과 */
        background-color: #ffffff; /* 배경색 */
        padding: 0 20px; /* 초기 패딩 제거 */
        box-sizing: border-box;
        border-top-left-radius: 0; /* 왼쪽 위 */
        border-top-right-radius: 0; /* 오른쪽 위 */
        border-bottom-left-radius: 10px; /* 왼쪽 아래 */
        border-bottom-right-radius: 10px; /* 오른쪽 아래 */
        box-shadow: 0px 3px 6px #5c5fc033;
    }

        .first-toggle-content.open {
            max-height: 426px; /* 펼쳐진 상태의 높이 */
            padding: 6px 0; /* 펼쳐졌을 때 패딩 추가 */
        }

        .first-toggle-content > ul > li {
            list-style-type: none;
            font-size: var(--md-font);
            font-weight: var(--normal-font);
            color: #4c4c4c;
            padding-bottom: 10px;
        }

    .second-toggle-down {
        position: relative;
    }

    .second-toggle-content {
        max-height: 0; /* 기본적으로 높이를 0으로 설정 */
        overflow: hidden; /* 콘텐츠가 넘어가지 않도록 설정 */
        transition: max-height 0.3s ease, padding 0.3s ease; /* 부드러운 애니메이션 효과 */
        background-color: #ffffff; /* 배경색 */
        padding: 0 20px; /* 초기 패딩 제거 */
        box-sizing: border-box;
        border-top-left-radius: 0; /* 왼쪽 위 */
        border-top-right-radius: 0; /* 오른쪽 위 */
        border-bottom-left-radius: 10px; /* 왼쪽 아래 */
        border-bottom-right-radius: 10px; /* 오른쪽 아래 */
        box-shadow: 0px 3px 6px #5c5fc033;
    }

        .second-toggle-content.open {
            max-height: 426px; /* 펼쳐진 상태의 높이 */
            padding: 6px 0px; /* 펼쳐졌을 때 패딩 추가 */
        }

    .EDMS-first-category.open {
        border-top-left-radius: 10px; /* 왼쪽 위 */
        border-top-right-radius: 10px; /* 오른쪽 위 */
        border-bottom-left-radius: 0; /* 왼쪽 아래 */
        border-bottom-right-radius: 0; /* 오른쪽 아래 */
    }

    .EDMS-second-category.open {
        border-top-left-radius: 10px; /* 왼쪽 위 */
        border-top-right-radius: 10px; /* 오른쪽 위 */
        border-bottom-left-radius: 0; /* 왼쪽 아래 */
        border-bottom-right-radius: 0; /* 오른쪽 아래 */
    }

    .second-toggle-content > ul > li {
        list-style-type: none;
        font-size: var(--md-font);
        font-weight: var(--normal-font);
        color: #4c4c4c;
        padding-bottom: 10px;
    }
    .side-list-M {
        padding: 0 20px;
        color: #4c4c4c;
        transition: color 0.2s, font-weight 0.2s;
    }
}
