﻿/******************************************************************
      ** media query
      *******************************************************************/
/* 여기부터 모바일 스타일로 변경 */
@media all and (max-width: 1023px) {
    .edms-m-submit {
        flex-direction: column;
        background-color: #fcf8fc;
        border-radius: 0;
        width: 100%;
        height: fit-content;
    }

    .edms-list-container {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        height: 641px;
        /*height:100%;*/
        overflow-y: scroll;
    }

    .edms-title {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 21px 10px;
    }

    .edms-list-subtitle {
        justify-items: left;
    }

    .edms-unit-state {
        display: flex; /* Flexbox 활성화 */
        justify-content: space-between; /* 자식 요소들 사이에 균등한 간격 */
        font-size: var(--xsm-font); /* 기존 폰트 크기 */
        gap: 1rem;
    }

        .edms-unit-state span {
            flex: 1; /* 자식 요소들이 동일한 너비를 가지도록 설정 */
            text-align: center; /* 텍스트를 중앙 정렬 */
        }

    .edms-list-wrapper {
        padding: 20px 0 0 0;
    }

    .edms-list-sub-wrapper-col {
        display: flex;
        padding: 10px 15px 0;
        background-color: transparent;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .edms-list-item-row-title {
        border: 1px solid #5c5fc033;
        background-color: #5c5fc0;
        color: white;
        box-shadow: 0px 3px 6px var(--edms-list-item-box-shodow-color);
        border-top-left-radius: 10px; /* 왼쪽 위 */
        border-top-right-radius: 10px; /* 오른쪽 위 */
        border-bottom-left-radius: 0; /* 왼쪽 아래 */
        border-bottom-right-radius: 0; /* 오른쪽 아래 */
        padding: 15px 10px 15px 15px;
        gap: 10px;
        height: 25px;
        width: 100px;
        justify-content: center;
        align-items: center;
        display: flex;
    }

    .edms-list-item-row-date {
        border: 1px solid white;
        background-color: #ffffff;
        color: #4c4c4c;
        box-shadow: 0px 3px 6px #5c5fc033;
        border-top-left-radius: 0; /* 왼쪽 위 */
        border-top-right-radius: 0; /* 오른쪽 위 */
        border-bottom-left-radius: 10px; /* 왼쪽 아래 */
        border-bottom-right-radius: 10px; /* 오른쪽 아래 */
        padding: 15px 10px 15px 15px;
        gap: 10px;
        height: 11px;
        width: 100px;
        justify-content: center;
        align-items: center;
        display: flex;
    }

    .edms-list-item-col-title {
        border: 1px solid #5c5fc033;
        background-color: #5c5fc0;
        color: white;
        box-shadow: 0px 3px 6px var(--edms-list-item-box-shodow-color);
        border-top-left-radius: 10px; /* 왼쪽 위 */
        border-top-right-radius: 10px; /* 오른쪽 위 */
        border-bottom-left-radius: 0; /* 왼쪽 아래 */
        border-bottom-right-radius: 0; /* 오른쪽 아래 */
        padding: 15px 10px 15px 15px;
        height: 30px;
        width: 100%;
        justify-items: center;
        align-items: center;
        display: flex;
    }

    .edms-list-title {
        flex-direction: row-reverse;
        align-items: initial;
        gap: 1rem;
        padding: 0 35px 10px 15px;
        background-color: transparent;
        justify-content: space-between;
    }

    .edms-title-area {
        padding: 0 0 0 15px;
    }

    .edms-table-area {
        padding-bottom: 10px;
    }

    .edms-table-wrapper {
        background-color: white;
        border: 1px solid white;
        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;
    }

    .base-ground {
        padding: 0 10px 62px;
    }

        .base-ground tr td:first-child {
            font-size: var(--xsm-font);
            text-align: center;
        }

        .base-ground tr td:last-child {
            font-size: var(--xxsm-font);
        }

        .base-ground tr:nth-child(1) th:nth-child(2) {
            text-align: right;
            padding-right: 5px;
            font-size: var(--xsm-font);
        }

        .base-ground tr:nth-child(1) th:nth-child(3) {
            text-align: left;
            padding-right: 5px;
            font-size: var(--xsm-font);
        }

        .base-ground tr th:first-child {
            text-align: right;
            padding-right: 5px;
            font-size: var(--xsm-font);
        }

        .base-ground tr th:last-child {
            text-align: left;
            padding-left: 5px;
            font-size: var(--xsm-font);
        }

    .base-ground {
        width: 100%;
        border-collapse: collapse;
        margin-top: 0px;
    }

        .base-ground th {
            font-weight: var(--xxsm-font);
            background-color: white;
        }

    ::-webkit-scrollbar {
        display: none;
    }

    .base-color {
        color: #5c5fc0;
    }

    /** floating btn **************************************************/
    .write-floating-btn {
        position: fixed;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #5c5fc0;
        padding: 10px;
        border-radius: 50%;
        width: 3rem;
        height: 3rem;
        box-shadow: 0px 3px 6px var(--default-box-shadow-color);
        z-index: 14000;
        bottom: 58px;
        right: 20px;
    }

        .write-floating-btn span {
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: var(--xlg-font);
            line-height: var(--sm-height);
            color: #fff;
        }

    .float-letter {
        color: white;
    }

    /*************** SCROLLBAR BASE CSS ***************/

    .scroll-wrapper {
        overflow: hidden !important;
        padding: 0 !important;
        position: relative;
    }

        .scroll-wrapper > .scroll-content {
            border: none !important;
            box-sizing: content-box !important;
            height: auto;
            left: 0;
            margin: 0;
            max-height: none;
            max-width: none !important;
            overflow: scroll !important;
            padding: 0;
            position: relative !important;
            top: 0;
            width: auto !important;
        }

            .scroll-wrapper > .scroll-content::-webkit-scrollbar {
                height: 0;
                width: 0;
            }

    .scroll-element {
        display: none;
    }

        .scroll-element,
        .scroll-element div {
            box-sizing: content-box;
        }

            .scroll-element.scroll-x.scroll-scrollx_visible,
            .scroll-element.scroll-y.scroll-scrolly_visible {
                display: block;
            }

            .scroll-element .scroll-bar,
            .scroll-element .scroll-arrow {
                cursor: default;
            }

    .scroll-textarea {
        border: 1px solid #cccccc;
        border-top-color: #999999;
    }

        .scroll-textarea > .scroll-content {
            overflow: hidden !important;
        }

            .scroll-textarea > .scroll-content > textarea {
                border: none !important;
                box-sizing: border-box;
                height: 100% !important;
                margin: 0;
                max-height: none !important;
                max-width: none !important;
                overflow: scroll !important;
                outline: none;
                padding: 2px;
                position: relative !important;
                top: 0;
                width: 100% !important;
            }

                .scroll-textarea > .scroll-content > textarea::-webkit-scrollbar {
                    height: 0;
                    width: 0;
                }

    /*************** SIMPLE INNER SCROLLBAR ***************/

    .inner-scroll > .scroll-element,
    .inner-scroll > .scroll-element div {
        border: none;
        margin: 0;
        padding: 0;
        position: absolute;
        z-index: 10;
    }

        .inner-scroll > .scroll-element div {
            display: block;
            height: 100%;
            left: 0;
            top: 0;
            width: 100%;
        }

        .inner-scroll > .scroll-element.scroll-x {
            bottom: 5px;
            height: 3px;
            left: 50%;
            transform: translateX(-50%);
            width: calc(100% - 30px);
        }

        .inner-scroll > .scroll-element.scroll-y {
            height: calc(100% - 30px);
            right: 5px;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
        }

        .inner-scroll > .scroll-element .scroll-element_outer {
            overflow: hidden;
        }

        .inner-scroll > .scroll-element .scroll-element_outer,
        .inner-scroll > .scroll-element .scroll-element_track,
        .inner-scroll > .scroll-element .scroll-bar {
            -webkit-border-radius: 8px;
            -moz-border-radius: 8px;
            border-radius: 8px;
        }

        .inner-scroll > .scroll-element .scroll-element_track,
        .inner-scroll > .scroll-element .scroll-bar {
            -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
            filter: alpha(opacity=40);
            opacity: 0.4;
        }

        .inner-scroll > .scroll-element .scroll-element_track {
            background-color: #e0e0e0;
        }

        .inner-scroll > .scroll-element .scroll-bar {
            background-color: #c2c2c2;
        }

        .inner-scroll > .scroll-element:hover .scroll-bar {
            background-color: #919191;
        }

        .inner-scroll > .scroll-element.scroll-draggable .scroll-bar {
            background-color: #919191;
        }


        /* update scrollbar offset if both scrolls are visible */

        .inner-scroll > .scroll-element.scroll-x.scroll-scrolly_visible .scroll-element_track {
            left: -12px;
        }

        .inner-scroll > .scroll-element.scroll-y.scroll-scrollx_visible .scroll-element_track {
            top: -12px;
        }


        .inner-scroll > .scroll-element.scroll-x.scroll-scrolly_visible .scroll-element_size {
            left: -12px;
        }

        .inner-scroll > .scroll-element.scroll-y.scroll-scrollx_visible .scrollscroll-xelement_size {
            top: -12px;
        }

    /** custom inner-scroll design **/

    /*.inner-scroll {
        border-radius: 15px;
        box-shadow: 0px 3px 6px #00000029;
    }

        .inner-scroll .expense-table {
            width: fit-content;
        }

        .inner-scroll tr.sum-row {
            height: 50px;
        }*/

    .inner-scroll.hide-scroll .scroll-x {
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

    .inner-scroll.hide-scroll .scroll-y {
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }
}
