﻿/******************************************************************
        ** media query
        *******************************************************************/
/* 여기부터 모바일 스타일로 변경 */
@media all and (max-width: 1023px) {
    .no-scroll {
        overflow: hidden !important;
    }

    .edms-m-complete {
        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: 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;
        justify-content: space-between;
    }

    .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-complete {
        flex: 1;
    }

    .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;
            color: #4c4c4c;
        }

        .base-ground tr td:last-child {
            font-size: var(--xxsm-font);
            color: #4c4c4c;
        }

        .base-ground tr:nth-child(1) th:nth-child(2) {
            text-align: right;
            padding-right: 5px;
            font-size: var(--xsm-font);
            color: #4c4c4c;
        }

        .base-ground tr:nth-child(1) th:nth-child(3) {
            text-align: left;
            padding-right: 5px;
            font-size: var(--xsm-font);
            color: #4c4c4c;
        }

        .base-ground tr th:first-child {
            text-align: right;
            padding-right: 5px;
            font-size: var(--xsm-font);
            color: #4c4c4c;
        }

        .base-ground tr th:last-child {
            text-align: left;
            padding-left: 5px;
            font-size: var(--xsm-font);
            color: #4c4c4c;
        }

    .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;
    }

    .top-area {
        display: flex;
        justify-content: space-between; /* 양쪽 끝으로 요소 정렬 */
        align-items: center; /* 수직 가운데 정렬 */
        padding: 0 15px;
    }

    .icon-area {
        display: flex;
        gap: 12px;
    }

    .base-color {
        color: #5c5fc0;
    }

    .base-font-color {
        color: #4c4c4c;
    }

    .fill-in-default {
        color: white;
    }

    .fill-in-red {
        color: #ff5a81;
    }

    .fill-in-blue {
        color: #3376d0;
    }

    .fill-in-yellow {
        color: #ffde00;
    }

    /** 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;
    }

    /*팝업 커스터마이징*/
    .edms-pop {
        padding: 16px 12px 14px;
        background-color: #ffffff;
        border-radius: 10px;
        width: 290px;
        height: 355px;
        background-color: #ffffff;
    }

    .edms-pop-wrap {
        padding-top: 14px;
    }

    .edms-pop-list-area {
        display: flex;
        padding: 0 0 12px 10px;
        align-items: center;
    }

    .edms-pop-list {
        font-size: var(--xsm-font);
        font-weight: var(--normal-font);
        color: #777777;
    }

    .edms-pop-input {
        border: 1px solid #5c5fc0 !important;
        border-radius: 5px !important;
        width: 217px;
        height: 32px;
        text-align: left;
        color: #242424 !important;
        font-weight: var(--normal-font) !important;
        padding-left: 5px !important;
    }

    .edms-pop-calendar {
        border: 1px solid #5c5fc0 !important;
        width: 75px;
        height: 32px;
        border-right: none;
        border-radius: 5px 0 0 5px !important;
        color: #242424 !important;
        font-weight: var(--normal-font) !important;
        padding-left: 5px !important;
    }

    .edms-pop-icon-area {
        display: flex;
        width: 30px;
        border: 1px solid #5c5fc0;
        height: 32px;
        border-left: none;
        color: #5c5fc0 !important;
        border-radius: 0 5px 5px 0;
        align-items: center;
        font-size: var(--lg-font);
    }

    .edms-pop-from-date {
        display: flex;
        align-items: center;
    }

    .edms-pop-to-date {
        display: flex;
        align-items: center;
    }

    .edms-pop-submit {
        width: 100%;
        height: 37px;
        border: 1px solid #5c5fc0;
        border-radius: 5px;
        background-color: #5c5fc0;
        color: white;
        text-align: center;
        align-content: center;
    }

    input:focus {
        outline: 0px solid #5c5fc0;
    }

    input[type="text"] {
        font-size: var(--xsm-font);
        font-weight: var(--normal-font);
    }

    /*달력 디자인*/
    /*.popover-inner {
        width: 100%;
    }*/
    .calendar {
        width: 100%;
    }

    .calendar-header {
        background-color: #5c5fc0;
        color: white;
        text-align: center;
        padding-top: 15px;
    }

    .icon-prev {
        color: #5c5fc0;
    }

    .icon-next {
        color: #5c5fc0;
    }

    .toolbar a {
        color: #5c5fc0;
    }

    .calendar-day {
        text-align: center;
        cursor: pointer;
        border-radius: 5px;
        background-color: #fff;
        /*border: 1px solid #5c5fc0;*/
        color: #5c5fc0;
    }

    .reddot {
        position: absolute;
        background-color: white;
        color: #ff5a81;
        padding: 3px 7px;
        font-size: var(--sm-font) !important;
        border-radius: 5px;
        box-shadow: 0px 3px 6px #00000029;
        white-space: nowrap;
        display: none;
        z-index: 1000;
    }

    .yellowdot {
        position: absolute;
        background-color: white;
        color: #e68a00;
        padding: 3px 7px;
        font-size: var(--sm-font) !important;
        border-radius: 5px;
        box-shadow: 0px 3px 6px #00000029;
        white-space: nowrap;
        display: none;
        z-index: 1000;
    }

    .bluedot {
        position: absolute;
        background-color: white;
        color: #3376d0;
        padding: 3px 7px;
        font-size: var(--sm-font) !important;
        border-radius: 5px;
        box-shadow: 0px 3px 6px #00000029;
        white-space: nowrap;
        display: none;
        z-index: 1000;
    }

    .tooltip {
        position: absolute;
        background-color: #333;
        color: #fff;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 14px;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        z-index: 9999;
    }

        /* 화살표 추가 (아래 방향 기준) */
        .tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 20px; /* 화살표 위치 조정 */
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #333 transparent transparent transparent;
        }
}
