/* 레이아웃 최종수정 */
/* 2022.11.25 수정 */
body { width: 100%; height: 100%; min-height: 100%; color: #000; font-size: 14px; line-height: 1.3; font-family: 'Pretendard', '맑은 고딕'; word-break: keep-all; overflow: hidden; overflow-y: auto;}
.main#wrap { padding-top:0;}
#wrap { overflow: hidden; position: relative;}
/* HEADER */
.main #header { visibility: hidden;}
.main #header.on { background-color: transparent; border-bottom: 1px solid #888;}
.main #header.on .logo > a { background: url(../img/logo_w.png);}
.main #header.on .gnb > li > a { color:#fff;}
.main #header.on .gnb > li:hover > a,
.main #header.on .gnb > li.active > a { color:#ffffff;}
.main #header.on .gnb > li > a::before,
.main #header.on .gnb > li > a::before {  background-color: #154194;}
.main #header.on .menu a.btn2.ani { background-color: transparent; border:1px solid #fff;}
.main #header.on .menu > a { color:#fff; }
.main #header.on .menu > a > i { background-position-y:-89px;}

#m-hader { height: 72px; position: relative;  border-bottom: 1px solid #e5e5e5;}
#m-hader h1 { height: 70px; display: flex; justify-content: center; align-items: center; margin:0;}
#m-hader h1 a { display: block; background:url(../img/logo.png)no-repeat center center / contain; width: 150px; height: 43px; }
#m-hader > a { display: flex; position: absolute; left:0; top:0; width: 70px; height: 70px; justify-content: center; align-items: center; border-right:1px solid #e5e5e5;}

#m-hdr-div { width: 100%; height: 72px; background-color: #3677FE; position: fixed; z-index: 100;}
#m-hdr-div > div { width: 100%; background-color: #3677FE; height: 72px; display: flex; align-items: center; justify-content: right; gap: 20px; padding: 5px 10px;}

#hdr_txt { color: #fff; text-align: right; font-size: 1rem; font-weight: 600;}

#header { height: 100px; padding:0 3.75rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e5e5e5; position: fixed; top:0; left:0; width: 100%; background-color: #fff; z-index: 3000;}
#header .logo { }
#header .logo > a { text-indent: -99999px; display: block; background: url(../img/logo.png)no-repeat center center; width: 175px; height: 50px; }
#header .gnb { max-width: 800px; width: 100%; display: flex; justify-content: space-between; align-items: center; margin:0 1.25rem; height:100%}
#header .gnb > li {height:100%;}
#header .gnb > li > a { font-size: 1.25rem; font-weight: bold; color:#212225; position: relative; z-index: 1; padding:0 5px; display: block; height: 100%; padding-top: 38px; overflow: hidden; max-width: 130px; text-overflow: ellipsis; white-space: nowrap;}
#header .gnb > li:hover > a,
#header .gnb > li.active > a { color:#39b27c;}
#header .gnb > li > a::before,
#header .gnb > li > a::before { content: ''; display: block; width: 0%; z-index: -1; background-color: #d8f5e8; height:13px; border-radius: 0 0 5px 0; left:50%; transform: translateX(-50%); bottom: 32px; position: absolute;}
#header .gnb > li:hover > a::before,
#header .gnb > li.active > a::before { width: 100%; transition-duration: .4s;}
#header .menu {min-width: 245px;display: flex;justify-content: space-between;align-items: center;}
#header .menu > a { font-size: 1rem; color:#3b3a3f; font-weight: 500; margin-right: 20px; display: flex; align-items: center;}
#header .menu > a > i { margin-right: 8px; }
#header .gnb_bg{width: 100%; position: absolute; left: 0; background-color: #fff; /*display: block;*/ display: none; border-bottom: 1px solid rgba(0,0,0,0.1);}
#header .gnb-wrap{width: 100%; max-width: 1520px; padding: 50px 0 ;margin: 0 auto; display: flex; flex-direction: row;}
#header .gnb-wrap > .gnb_title{width: 300px;}
#header .gnb-wrap > .gnb_title > h2{color:var(--text-color-1);  font-weight: 900; overflow-wrap: break-word; word-break: break-all; /*font-size: var(--font-size-32);*/}
#header .gnb-wrap > .gnb_title > p{width: 200px; font-size: var(--font-size-16); color: var(--text-color-2); margin-top: 30px;}
#header .gnb-wrap > ul.dep-flex{width: calc(100% - 200px); height: 100%; padding: 0 40px; display: flex; flex-wrap: wrap;}
#header .gnb-wrap > ul.dep-flex > li{ margin: 0 40px 10px 0;}
#header .gnb-wrap > ul.dep-flex > li > a{width: 250px; /*height: 100%;*/display: block; color: var(--text-color-1);border: 1px solid var(--border-color); border-radius: 8px; line-height: 50px; padding-left:20px; font-size: var(--font-size-16); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
#header .gnb-wrap > ul.dep-flex > li > a:hover{border-color: var(--primary-color);}
#header .gnb-wrap > ul.dep-flex > li > ul {/*margin-top: 10px;*/}
#header .gnb-wrap > ul.dep-flex > li > ul > li{font-size: var(--font-size-15); color: var(--text-color-2); padding: 10px 30px 0; position: relative;}
#header .gnb-wrap > ul.dep-flex > li > ul > li::before{content: ''; display: inline-block; position: absolute; top: 20px; left: 10px; width: 5px; height: 1px;background-color: var(--text-color-2);}
#header .dep-flex.licus span {display: block; color: var(--primary-color); margin-bottom: 20px;}

/* NAV */
#nav { position: fixed; left:-100%; top:0; background-color: #fff; width: 260px; height: 100vh; z-index: 9999; flex-flow: column; justify-content: space-between; display: flex; transition-duration: .4s; box-shadow: 4px 0px 8px 0px rgba(87, 141, 255, 0.15);}
#nav.active { left:0; }
#nav .top .logo-area { background-color: #3677FE;}
#nav .top .logo-area h1 { height: 72px; margin-bottom: 60px; display: flex; align-items: center; justify-content: center;}
#nav .top .logo-area h1 > a { background: url(../img/aquafarm_logo.png)no-repeat center center / contain; width: 185px; height: 48px; display: block; }
#nav .top .logo-area > a { position: absolute; right:20px; top:60px; display: block; width: 20px; height: 20px;}
#nav .top .logo-area .btn-box { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;}
#nav .top .logo-area .btn-box a { width: 49%; height: 50px; line-height: 50px; font-size: 1rem;}
#nav .top .logo-area .btn-box a:first-child { border-radius: 15px 0 0 0;}
#nav .top .logo-area .btn-box a:last-child { border-radius: 0 0 15px 0;}
#nav .top .menu-area {}
#nav .top .menu-area .dep1 { font-weight: 500; font-size: 1.125rem; position: relative; }
#nav .top .menu-area .dep1 > a { display: block; height: 60px; width:80%; line-height: 60px; padding:0 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: 15px;}
#nav .top .menu-area .dep1 > i { position: absolute; right: 27px; top: 22px;}
#nav .top .menu-area .dep1.active > i { background-position: -77px -42px !important; transform: rotate(270deg) !important;}
#nav .top .menu-area .dep1 > ul.dep2 { padding: 20px 0 20px 48px; height: auto; width: 100%; background-color: #002F91; color: #fff; display: none;}
#nav .top .menu-area .dep1.active > ul.dep2 {display: block; border-bottom:1px solid var(--border-color);}
#nav .top .menu-area .dep1 > ul.dep2 > li { height: auto; line-height: 2.5; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
#nav .top .menu-area .dep1 > ul.dep2 > li > a { position: relative; padding-left:20px;}
/* #nav .top .menu-area .dep1 > ul.dep2 > li > a::before {content: ''; display: block; background-color: #234ba1; width: 8px; height: 3px; position: absolute; left:0; top:50%; transform:translateY(-50%);} */
#nav .top .menu-area .dep1 > ul.dep2 > li  > ul{padding:10px 0 0 20px; line-height: 2; color: #888f9b;}
#nav .top .menu-area .dep1 > ul.dep2 > li  > ul > li {overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
#nav .top .user-login { background-color: #154194; display: none;}
#nav .top .user-login.login { display: block;}
#nav .top .user-login a { display: flex; align-items: center; height: 65px; width: 100%; color:#fff; padding:20px; font-size: 1.25rem;}
#nav .top .user-login a i { margin-right: 10px;}
#nav .top .user-login a b { margin-right: 5px;}
#nav .top .user-login a span { margin-right: 10px;}


/*
#nav .bottom { background-color: #f3f4f5; border-top:1px solid #e5e5e5; padding:0 20px; display: flex; justify-content: flex-end; align-items: center; height: 50px; }
#nav .bottom a { font-size: 1rem; color:#888f9b;}
#nav .bottom a i { margin-right: 5px;}
*/


/* CONTENTS */
#contents { }
/*#contents.map { min-height: calc(100vh - 320px);}*/
/* CONTAINER */
#container { padding:0 15px; margin-bottom: 50px;}
/* SUB-PAGE */
.sub-wrap { padding: 2.8125rem 4rem !important; margin-left: 260px; width: calc(100% - 260px);}
.sub-wrap02 { padding:2.8125rem 0 !important; max-width: 1400px; margin:0 auto; width: 100%;}
/* FOOTER */
#footer { background-color: #1e2e4e; min-height: 230px; display: flex; justify-content: space-between; align-items: center; padding:0 1.25rem 2.5rem 1.25rem;}
#footer .box {  max-width: 1400px; width: 100%; margin:0 auto; display: flex; justify-content: space-between; position: relative;}
#footer .box .info { display: flex; align-items: center;}
#footer .box .info .fot-logo { background: url(../img/fot_logo.png)no-repeat center center; width: 175px; min-width: 175px; height: 50px; display: block; margin-right: 50px; background-size:contain;}
#footer .box .info .copy { }
#footer .box .info .copy ul { display: flex; color:#fff; font-size: 1rem; font-weight: 600; margin-bottom: 10px;}
#footer .box .info .copy ul li { }
#footer .box .info .copy ul li:nth-of-type(2) { margin:0 5px;}
#footer .box .info .copy ul li a {  }
#footer .box .info .copy p { color:#fff; font-size: 0.875rem; opacity: 0.4; text-transform: uppercase; font-weight: 300;}
#footer .box .site { position: relative; position: absolute; right:0; top:60px;}
#footer .box .site span { width: 240px; height: 50px; border:1px solid #091428; border-radius: 0 0 15px 0; display: flex; justify-content: space-between; align-items: center; color:#ced8ec; font-size: 1rem; padding:1.25rem; cursor: pointer; background-color: #101c34;}
#footer .box .site ul { border:1px solid #091428; position: absolute; bottom:50px; width: 100%; background-color: #fff; padding:5px 0; display: none; z-index: 9999;}
#footer .box .site ul li { padding:0 10px; }
#footer .box .site ul li a {  display: block; width: 100%;  border-top:1px solid #e5e5e5; padding:10px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
#footer .box .site ul li:first-child a { border-top:none; }
#footer .box .manager {display: flex; align-items: center; }
#footer .box .manager > span {color:#fff; font-weight: bold; margin-right:15px; margin-bottom:10px;}
#footer .box .manager > ul > li {color:#ddd; font-weight: 400;}
#footer .box .manager > ul > li:nth-child(2) {opacity: 0.4;}
#footer .box .bukgu_logo {text-indent: -9999px; width:181px; height:46px; background:url("../img/bukgu_logo.png") no-repeat center; margin-right:30px;}

/* 콘텐츠 담당자 및 공공누리 */
.charger_wrap { border: 1px solid #DDDDDF; padding: 30px 25px; overflow: hidden; margin: auto; margin-bottom: 100px; border-radius: 8px; width: 1000px;}

.modal-wrap { position: fixed; z-index: 9998; justify-content: center; align-items: center; width: 100vw; height: 100vh; display: none; top:0; left:0;}
.modal-wrap.active { display: flex;}
.modal-wrap.active .modal { width: 95%; max-width: 400px; border:1px solid #212225; box-shadow: 0px 0px 10px rgba(0,0,0,0.25); background-color: #fff; animation: over-ani .4s ease-out; }
.modal-wrap .modal .modal-cont { display: flex; flex-flow: column; justify-content: center; align-items: center; padding:1.5625rem;}
.modal-wrap .modal .modal-cont p { text-align: center; color:#252c39; font-size: 1.25rem;}
.modal-wrap .modal .modal-btn {}
.modal-wrap .modal .modal-btn a { height: 50px; line-height: 50px;}
.modal-wrap .modal .modal-btn a:hover { border-radius: 0;}
.modal-wrap .modal .modal-btn02 {display: flex; justify-content: space-around;}

.m-bar { display: none;}

/* scroll */
body::-webkit-scrollbar { width: 13px;}
body::-webkit-scrollbar-thumb { background-color: #1e2e4e; background-clip: padding-box; border: 2px solid transparent; }
body::-webkit-scrollbar-track { background-color: #f5f6f7; overflow: hidden; }

/* ----------------------------------
    추가 코드
---------------------------------- */

.txt_blue {
    color: #1C5ADC;
}

.tit_blue {
    color: #1C5ADC; font-size: 1.5rem; font-weight: 700;
}

/* ---------------------
    fm 메인 페이지
--------------------- */

.fm_div {
    width: calc(100% - 260px); height: 100%; display: flex; gap: 16px; background-color: #F5F6FF; padding: 1rem; margin-left: 260px;
}

.fm_main_box {
    border-radius: 8px; background-color: #fff; padding: 24px; box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.05), 0px 4px 8px 0px rgba(0, 0, 0, 0.08); display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none;
}

.fm_main_box::-webkit-scrollbar {
    display: none;
}

.fm_main_box #farmSelect {
    border: none; font-size: 18px; font-weight: 500; padding-right: 36px;
}

/* ---------------------
    fm 생육 시뮬레이터
--------------------- */

.simuBox {
    background-color: #fff; border: 1px solid #B6B9CA; border-radius: 10px; padding: 20px 30px; position: relative;
}

.simuBox#top {
    width: 100%; height: 74px; display: flex; flex-direction: column; gap: 40px; padding: 0;
}

.simuBox #topSimuBox {
    width: 100%; height: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 16px; justify-content: space-between;
}

.simuBox #topSimuBox #typeBox {
    width: 150px; height: 50px; border: 1px solid #CDD1D5; border-radius: 8px; display: flex; padding: 8px;
}

.simuBox #topSimuBox #typeBox .typeBtn {
    width: 50%; height: 100%; display: flex; align-items: center; justify-content: center; border-radius: 4px; color: #8A949E;
}

.simuBox #topSimuBox #typeBox .typeBtn.active {
    background-color: #256EF4; color: #fff;
}

.simuBox #topSimuBox #selectOptions {
    display: flex; gap: 25px;
}

.simuBox #topSimuBox #selectOptions #simulateBtn {
    width: 100px; height: 40px; background-color: #256EF4; color: #fff; border-radius: 8px;
}

.simuBox #topSimuBox #selectOptions div {
    display: flex; align-items: center; justify-content: center; gap: 16px;
}

.simuBox #topSimuBox #selectOptions div p {
    font-size: 15px; color: #8A949E;
}

.simuBox #topSimuBox #selectOptions div input {
    height: 40px; border-radius: 6px; border: 1px solid #CDD1D5; padding: 0 16px;
}

.simuBox #topSimuBox #selectOptions div input[type="text"] {
    width: 150px;
}

#simuTable {
    border-collapse: collapse; border-spacing: 0;
}

#simuTable th, #simuTable td {
    padding: 10px;
}

#simuTable th {
    background-color: #083891; border: 1px solid #E6E8EA; color: #fff;
}

.simu_select {
    height: 40px; padding: 8px 12px; border-radius: 6px; border: 1px solid #CDD1D5; color: #000;
}

.news_list {
    flex: 1; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none;
}

.news_list::-webkit-scrollbar {
    display: none;
}

.news_list p.txt_blue {
    font-size: 1rem; font-weight: 600; line-height: 1.6;
}

.news_cont {
    width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 10px; cursor: pointer; border-bottom: 1px solid gray; flex: 1;
}

.news_cont > div {
    width: calc(100% - 70px); height: 100%; display: flex; flex-direction: column; justify-content: space-between;
}

.news_cont #news_cate {
    display: inline; font-size: 11px; padding: 4px 0px; background-color: #3677FE; color: #fff; border-radius: 4px; width: 30px; text-align: center; line-height: 1.0;
}

.news_cont #news_tit {
    font-size: 14px; line-height: 1.6; font-weight: 500;
}

.news_cont #news_content {
    font-size: 12px; font-weight: 300; color: #63676A;
}

.news_cont #news_img {
    width: 64px; height: 64px; border-radius: 8px; border: 1px solid #B6B9CA;
}

.custom-radio {
    flex-grow: 1; /* 남은 공간을 균등 분배 */
    flex-shrink: 1; /* 공간이 부족하면 줄어듦 */
    flex-basis: 0%; /* 초기 크기를 0으로 설정하여 동일한 비율로 나눔 */
    min-width: 80px; /* 최소 너비 지정 (선택 사항) */
    max-width: 100px; /* 최대 너비 제한 */
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #D3D2D2;
    border-radius: 7px;
    background-color: #fff;
    transition: background-color 0.3s, border-color 0.3s;
    text-align: center;
}

/* 선택된 상태 스타일, 호버 상태 */
input[type="radio"]:checked + .custom-radio,
.custom-radio:hover {
    background-color: #1C5ADC; border-color: #1C5ADC; color: white; width: 49%;
}

/* 라벨 스타일 */
.custom-checkbox {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    user-select: none; /* 텍스트 선택 방지 */
}

/* 체크된 상태, 호버 상태 */
input[type="checkbox"]:checked + .custom-checkbox,
.custom-checkbox:hover {
    background-color: #1C5ADC; border-color: #1C5ADC; color: white;
}

#map {
    width: 100%; height: 350px; margin-top: 10px;
}

/* 토글 */
.toggle-container {
    position: relative; display: inline-block; width: 90px; height: 40px;
}

/* 숨겨진 체크박스 */
.toggle-container input {
    display: none;
}

/* 토글 배경 */
.toggle-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #4CAF50;
    border-radius: 20px;
    transition: 0.4s;
}

/* 텍스트 표시 영역 */
.toggle-text {
    position: absolute;
    width: 100%;
    padding-left: 15px;
    line-height: 40px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    pointer-events: none;
    z-index: 1;
}

/* 토글 버튼 */
.toggle-circle {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 32px;
    height: 32px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

/* 체크 상태 */
input:checked + .toggle-bg {
    background-color: #1C5ADC;
}

input:checked + .toggle-bg .toggle-circle {
    transform: translateX(50px);
}
