@charset "utf-8";

/* 자료실 카드 목록 — .sub_wrap.product .prd_list (common.css) 와 함께 사용 */

.gy-dataroom-list { width: 100%; }

.gy-dataroom-admin {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 20px;
}

.gy-dataroom-admin .btn_bo_user {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    float: none !important;
    width: auto !important;
    height: 40px !important;
}

/* 관리자 선택관리 — basic 스킨 보조 스타일 (dataroom 전용) */
.gy-dataroom-list .selec_chk {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    opacity: 0;
    outline: 0;
    z-index: -1;
    overflow: hidden;
}

.gy-dataroom-list .chk_box {
    position: relative;
}

.gy-dataroom-list .chk_box input[type="checkbox"] + label {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.gy-dataroom-list .chk_box input[type="checkbox"] + label span {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 1px solid #d0d4df;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
}

.gy-dataroom-list .chk_box input[type="checkbox"]:checked + label span {
    background: #3a8afd;
    border-color: #1471f6;
}

.gy-dataroom-list .chk_box input[type="checkbox"]:checked + label span::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 48%;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -55%) rotate(45deg);
    box-sizing: border-box;
}

.gy-dataroom-sel-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 16px;
    padding: 0;
}

.gy-dataroom-sel-bar .gy-dataroom-allchk {
    margin-bottom: 0;
}

.gy-sel-manage-wrap {
    position: relative;
    margin-left: auto;
}

.gy-dataroom-allchk {
    margin-bottom: 12px;
}

.gy-dataroom-chk {
    position: absolute;
    top: 0;
    left: 10px;
    z-index: 5;
    display: flex;
    align-items: center;
    height: 28px;
}

.gy-dataroom-admin .btn_bo_user > li {
    position: relative !important;
    float: none !important;
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    list-style: none;
}

.gy-dataroom-admin .btn_bo_user > li > .btn,
.gy-dataroom-admin .btn_bo_user > li > button {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #e4e8ef;
    border-radius: 12px;
    background: #fff;
    color: #667085;
    cursor: pointer;
}

.gy-dataroom-sel-bar .btn_sel_manage {
    box-sizing: border-box;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto !important;
    min-width: 118px !important;
    max-width: none !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 12px !important;
    border: 1px solid #d0d4df;
    border-radius: 4px;
    background: #fff !important;
    font-size: 14px;
    font-weight: 600;
    color: #333 !important;
    line-height: 1 !important;
    overflow: visible !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.gy-dataroom-sel-bar .btn_sel_manage .fa-list-alt {
    font-size: 15px;
    color: #333;
}

.gy-dataroom-sel-bar .btn_sel_manage .btn_sel_manage_txt {
    display: inline !important;
    line-height: 1;
    letter-spacing: -0.02em;
    overflow: visible !important;
}

.gy-dataroom-sel-bar .btn_sel_manage .btn_sel_manage_arr {
    font-size: 11px;
    margin-left: 2px;
    color: #666;
}

.gy-dataroom-sel-bar .more_opt {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: auto;
    min-width: 130px;
}

.gy-dataroom-sel-bar .more_opt.gy-open {
    display: block;
}

.gy-dataroom-list .more_opt {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #b8bfc4;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.gy-dataroom-list .more_opt.gy-open {
    display: block;
}

.gy-dataroom-list .more_opt:before {
    content: "";
    position: absolute;
    top: -8px;
    right: 13px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 6px 8px 6px;
    border-color: transparent transparent #b8bfc4 transparent;
}

.gy-dataroom-list .more_opt:after {
    content: "";
    position: absolute;
    top: -6px;
    right: 13px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 6px 8px 6px;
    border-color: transparent transparent #fff transparent;
}

.gy-dataroom-list .more_opt li,
.gy-dataroom-sel-bar .more_opt li {
    border-bottom: 1px solid #f1f1f1;
    padding: 10px 12px;
    width: auto;
    min-width: 120px;
    margin: 0;
    color: #6b757c;
    text-align: left;
    list-style: none;
}

.gy-dataroom-list .more_opt li:last-child {
    border-bottom: 0;
}

.gy-dataroom-list .more_opt li button {
    width: 100%;
    border: 0;
    background: #fff;
    color: #6b757c;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
}

.gy-dataroom-list .more_opt li:hover button {
    color: #000;
}

.gy-dataroom-list .more_opt li i {
    float: right;
    line-height: 20px;
}

.product .prd_list .gy-dataroom-list > ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.prd_list > .gy-dataroom-list {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.product .prd_list .gy-dataroom-list > ul > li {
    display: flex;
    flex-direction: column;
    position: relative;
    list-style: none;
    overflow: visible;
    padding: 0 0 14px !important;
}

.product .prd_list .gy-dataroom-list > ul:not(.gy-dataroom-ul--admin) > li {
    padding-top: 0 !important;
}

.product .prd_list .gy-dataroom-list > ul.gy-dataroom-ul--admin > li {
    padding-top: 28px !important;
}

.product .prd_list .gy-dataroom-list li .prd_name {
    flex: 0 0 auto;
    padding: 10px 8px 20px;
    white-space: normal;
}

.product .prd_list .gy-dataroom-list li .prd_name strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product .prd_list .gy-dataroom-list li a.prd_more {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 200px !important;
    margin: 8px auto 8px !important;
    padding: 10px 18px !important;
    font-size: 16px;
    line-height: 1.2;
    z-index: 2;
    background: #fff;
    box-sizing: border-box;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid #111;
    border-radius: 50px;
    text-align: center;
    color: #111;
    isolation: isolate;
}
.product .prd_list .gy-dataroom-list li a.prd_more span {
    position: relative;
    z-index: 2;
}
.product .prd_list .gy-dataroom-list li a.prd_more::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    background: #3650ef;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.35s ease;
    z-index: 1;
    pointer-events: none;
}
.product .prd_list .gy-dataroom-list li:hover a.prd_more {
    border-color: #3650ef !important;
}
.product .prd_list .gy-dataroom-list li:hover a.prd_more::after {
    transform: scaleX(1);
    transform-origin: left center;
}
.product .prd_list .gy-dataroom-list li:hover a.prd_more span {
    color: #fff !important;
}

.product .prd_list li .prd_thumb {
    display: block;
    overflow: hidden;
    background: #f3f3f3;
}

.product .prd_list .gy-dataroom-list li .prd_thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 5;
    object-fit: cover;
}

.product .prd_list .gy-dataroom-list li .prd_thumb--empty {
    display: block;
    aspect-ratio: 8 / 5;
    background: #575757 url('/images/board/dataroom_no_thumb.png') center center / cover no-repeat;
    position: relative;
}

.product .prd_list .gy-dataroom-list li .prd_thumb--empty::before,
.product .prd_list .gy-dataroom-list li .prd_thumb--empty::after {
    display: none;
}

.product .prd_list li.gy-dataroom-empty {
    width: 100% !important;
    margin-right: 0 !important;
    border: none;
    padding: 60px 20px;
    text-align: center;
    color: #666;
    font-size: 16px;
}

.product .prd_list li.gy-dataroom-empty .prd_more,
.product .prd_list li.gy-dataroom-empty .prd_name {
    display: none;
}

/* 모바일에서도 2열 유지 (참고 스크린샷) */
@media screen and (max-width: 480px) {
    .product .prd_list .gy-dataroom-list > ul > li {
        width: 48%;
        margin-right: 4%;
        padding: 0 0 12px !important;
    }

    .product .prd_list .gy-dataroom-list > ul:not(.gy-dataroom-ul--admin) > li {
        padding-top: 0 !important;
    }

    .product .prd_list .gy-dataroom-list > ul.gy-dataroom-ul--admin > li {
        padding-top: 28px !important;
    }

    .product .prd_list .gy-dataroom-list li .prd_name {
        padding: 8px 6px 14px;
    }

    .product .prd_list .gy-dataroom-list li .prd_name strong {
        font-size: 15px;
    }

    .product .prd_list .gy-dataroom-list li a.prd_more {
        font-size: 13px;
        padding: 6px 12px !important;
        max-width: 158px !important;
        width: 72% !important;
        margin: 6px auto 6px !important;
    }

    .product .prd_list .gy-dataroom-list > ul > li:nth-child(2n) {
        margin-right: 0;
    }
}

/* 상세 — 상단 툴바 */
.srboardView.gy-dataroom-view .gy-dataroom-view-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 0 14px;
    border-bottom: 1px solid #111;
    box-sizing: border-box;
}
.srboardView.gy-dataroom-view .gy-dataroom-view-toolbar__group {
    display: flex;
    align-items: center;
    gap: 20px;
}
.srboardView.gy-dataroom-view .gy-dataroom-view-toolbar__group--right {
    margin-left: auto;
}
.srboardView.gy-dataroom-view .gy-dataroom-tb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 22px;
    text-decoration: none;
}
.srboardView.gy-dataroom-view .gy-dataroom-tb-btn:hover,
.srboardView.gy-dataroom-view .gy-dataroom-tb-btn:focus {
    color: #9c2033;
}

/* 상세 — 첨부파일 카드 (board.css와 동일) */
.srboardView.gy-dataroom-view .viewArea .gy-dataroom-files {
    display: block;
    width: 100%;
    margin: 0;
    padding: 28px 0 20px;
    border-top: 1px solid #e8e8e8;
    box-sizing: border-box;
}
.srboardView.gy-dataroom-view .gy-dataroom-files__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.srboardView.gy-dataroom-view .gy-file-card {
    margin: 0 0 16px;
    list-style: none;
}
.srboardView.gy-dataroom-view .gy-file-card__link {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 26px;
    background: #fff;
    border: 1px solid #d4e3f2;
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(30, 80, 140, 0.1);
    text-decoration: none;
    box-sizing: border-box;
}
.srboardView.gy-dataroom-view .gy-file-card__icon {
    flex: 0 0 auto;
    width: 36px;
    font-size: 28px;
    color: #5a9fd4;
    text-align: center;
}
.srboardView.gy-dataroom-view .gy-file-card__body {
    flex: 1;
    min-width: 0;
    text-align: center;
}
.srboardView.gy-dataroom-view .gy-file-card__name {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #2f7fd4;
    line-height: 1.45;
    word-break: break-all;
}
.srboardView.gy-dataroom-view .gy-file-card__size {
    font-weight: 400;
    font-size: 15px;
    color: #9aa3ad;
}
.srboardView.gy-dataroom-view .gy-file-card__meta {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #7eb3e8;
}
.srboardView.gy-dataroom-view .gy-dataroom-files__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 18px;
}
.srboardView.gy-dataroom-view .gy-dataroom-files__action {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
}

@media screen and (max-width: 480px) {
    .srboardView.gy-dataroom-view .viewArea .gy-dataroom-files {
        padding: 14px 0 10px;
    }
    .srboardView.gy-dataroom-view .gy-file-card {
        margin-bottom: 10px;
    }
    .srboardView.gy-dataroom-view .gy-file-card__link {
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 10px 12px;
        border-radius: 4px;
        box-shadow: 0 2px 10px rgba(30, 80, 140, 0.08);
    }
    .srboardView.gy-dataroom-view .gy-file-card__icon {
        width: 22px;
        font-size: 20px;
    }
    .srboardView.gy-dataroom-view .gy-file-card__body {
        text-align: left;
    }
    .srboardView.gy-dataroom-view .gy-file-card__name {
        font-size: 14px;
        line-height: 1.25;
    }
    .srboardView.gy-dataroom-view .gy-file-card__size {
        font-size: 12px;
    }
    .srboardView.gy-dataroom-view .gy-file-card__meta {
        margin-top: 3px;
        font-size: 12px;
        line-height: 1.2;
    }
}

/* 상세·검색 등 기본 스킨 보조 */
#bo_v { max-width: 100%; }

.gy-dataroom-list .bo_sch_wrap {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.gy-dataroom-list .bo_sch_wrap.gy-open {
    display: block;
}

.gy-dataroom-list .bo_sch {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 24px;
    z-index: 2;
    min-width: 280px;
}

.gy-dataroom-list .bo_sch_bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
}
