/* ----- 반응형 작업 시작 ----- */

/**************************** 공통 레이아웃 관련 ****************************/
/* 대형 데스크톱 (1920px 이상) */
@media (min-width: 1900px) {

	.total_fixed .bb_container,
	.bb_breadcrumb ul,
	#bb_wrapper,
	.bb_header .bb_notice ul {
		padding: 0 6.4rem;
	}

	header .bb_container {
		padding: 0 3.6rem;
	}
}

@media (max-width: 1900px) {

	#bb_wrapper,
	.bb_breadcrumb ul,
	.bb_header .bb_container,
	.total_fixed .bb_container {
		padding: 0 4.8rem;
	}
}

@media (max-width: 1500px) {
	#bb_wrapper {
		padding-bottom: 4rem !important;
	}
}

@media screen and (max-width:1240px) {
	#bb_wrapper {
		display: flex;
		flex-direction: column;
		padding: 0 2.4rem;
	}

	.bb_sec_tabtitle .bb_inner {
		flex-direction: column-reverse;
	}

	.bb_sec_form.bb_sec_top {
		flex-wrap: wrap;
		justify-content: center;
		margin-bottom: 1.6rem !important;
	}
}

/* 1200px 이하 - 태블릿 및 작은 데스크톱 */
@media screen and (max-width: 1200px) {
	body {
		word-break: keep-all;
	}

	/* header*/
	.bb_header .bb_container,
	.total_fixed .bb_container,
	.bb_breadcrumb ul,
	.bb_notice {
		padding: 0 2.4rem;
	}

	.bb_table {
		min-width: auto;
	}

	.total_fixed {
		padding: 0 4.8rem;
	}
}

/* 작은 데스크톱 (1024px ~ 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
	#bb_wrapper,
	.bb_breadcrumb ul,
	.bb_header .bb_container,
	.bb_notice {
		padding: 0 2.4rem;
	}
}

/* 태블릿 (768px ~ 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
	.bb_sec_tabs ul.bb_tabs .bb_tab {
		width: 18rem;
	}

	#bb_wrapper,
	.bb_breadcrumb ul,
	.bb_header .bb_container {
		padding: 0 2.4rem;
	}
}

/* 992px 이하 - 태블릿 (세로 모드) */
@media screen and (max-width: 992px) {
	.bb_table {
		overflow-x: auto;
	}

	.bb_table th,
	.bb_table td {
		font-size: 1.3rem;
	}

	.bb_btn {
		font-size: 1.3rem;
	}
}


/* 768px 이하 - 모바일 (가로 모드) */
@media screen and (max-width: 1200px) {

	/* header */
	.logo {
		font-size: 1.8rem;
		order: 1;
	}

	.bb_ham_menu {
		order: 0;
	}

	.bb_header .bb_sec_menu ul li a {
		color: #222 !important;
	}

	.bb_gnb_right .user .user_name,
	.pc_m,
	.bb_header .bb_gnb_right>ul .user ul::after {
		display: none !important;
	}

	.bb_sec_tabs ul.bb_tabs {
		width: 100%;
	}

	.bb_sec_tabs ul.bb_tabs .bb_tab {
		flex-grow: 1;
		flex-basis: 0;
	}

	.bb_sec_tabs {
		width: 100%;
		margin-top: 1rem;
	}

	.bb_sec_btn_last {
		padding: 0;
		margin-top: 2.4rem;
	}

	.bb_table th,
	.bb_table td {
		font-size: 1.2rem;
		padding: 0.8rem;
	}

	.bb_btn {
		font-size: 1.2rem;
		padding: 0.6rem 1.6rem;
	}
}

@media (max-width: 640px) {
	.bb_sec_pgtitle:not(.r_con) .bb_text_pgtitle {
		width: calc(100% - 2.4rem);
		display: -webkit-box !important;
		word-break: keep-all;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 1;
		white-space: unset !important;
		line-height: 160%;
	}

	.sec_con {
		flex-direction: column;
	}
	/*기성관리 검색바 / 타이틀 정렬*/
	.bb_sec_pgtitle {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		flex-direction: column;
		max-width: 100%;
		gap: 1.6rem;
		height: unset;
		line-height: unset;
	}

	.bb_sec_search {
		width: 100%;
		flex-direction: column;
		gap: 1rem;
	}

	.bb_sec_search .bb_select,
	.bb_sec_search .bb_select.searchMain,
	.bb_sec_search .bb_input.search,
	.bb_sec_search .bb_input.searchMain,
	.bb_sec_search .bb_btn.search,
	.bb_sec_search .bb_btn.searchMain,
	.bb_sec_search.bb_label_left label,
	.bb_sec_search .bb_btn {
		width: 100%;
	}

	.bb_sec_search .bb_select.searchMain,
	.bb_sec_search .bb_input.searchMain,
	.bb_sec_search .bb_btn.searchMain {
		height: 4.8rem;
	}
}

/**************************** 하단 고정 바 ****************************/
@media screen and (max-width:1240px) {

	/*bottom_bar*/
	.total_fixed {
		/*order: 1;*/
		position: unset;
		height: unset;
		z-index: unset;
		box-shadow: unset;
		border:none;
		margin-bottom: 2.4rem;
		border-radius: 6px;
		padding: 0;
	}

	.total_fixed .total_info {
		height: unset;
		margin-bottom: 2.4rem;
	}

	.total_list {
		width: 100%;
	}

	.total_list ul {
		display: flex;
		flex-direction: row;
		align-items: center;
		flex-wrap: wrap;
		gap: 1.6rem 0.8rem;
	}

	.total_list ul li.title_amt {
		width: fit-content;
		display: block;
		float: left;
	}

	.total_list ul li.title_amt:not(:first-child) {
		margin-left: unset;
	}

	.bb_sec_btn_last {
		width: fit-content;
	}

	.total_list ul li:not(.title_amt) {
		margin-left: unset;
		width: calc(100% - 120px);
	}
}

/* 768px 이하 - 모바일 (가로 모드) */
@media screen and (max-width:768px) {
	.total_fixed .list_01 {
		position: relative;
		flex-direction: column;
		padding: 2.4rem 0 !important;
	}

	.total_list {
		width: 100% !important;
	}

	.total_list ul {
		flex-direction: column;
		gap: 8px;
	}

	.total_list ul li.title_amt {
		float: unset;
		color: #0080FF;
		background: transparent;
		border-radius: 300px;
		font-weight: 600;
		padding: 0;
		font-size: 1.4rem;
		width: 100% !important;
	}

	.total_list ul li:not(.title_amt) {
		width: 100% !important;
		margin-bottom: 1rem;
		margin-left: 0;
	}

	.total_list ul li.title_amt:not(:first-child)::before {
		display: block;
		clear: both;
		content: "";
		width: 100%;
		height: 1px;
		background: #ddd;
		margin: 0rem 0 1.6rem;
	}
}

/* 초소형 모바일 (320px ~ 479px) */
@media (max-width: 479px) {

	.total_fixed .total_info {
		flex-direction: column;
	}

	.total_list ul li:nth-child(2) {
		flex-direction: column;
	}
}

/**************************** 기타 레이아웃 관련 ****************************/

@media (max-width: 1240px) {
	.search_level {
		align-items: flex-start;
		flex-direction: column;
		gap: 1rem;
	}

	.search_level .bb_select_box {
		width: 100%;
	}

}

@media screen and (max-width: 1240px) {
	.search_level .bb_select_box {
		width: 100%;
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 1rem 0.8rem;
	}

	.bb_select_box label:not(:first-child) {
		margin-left: 0;
	}

	.bb_select_box label {
		margin-right: 0;
	}

	.bb_select_box .bb_select {
		margin-left: 0.4rem !important;
	}

	.search_level .bb_select_box {
		gap: 0.4rem;
	}
}

/* 1200px 이하 - 태블릿 및 작은 데스크톱 */
@media screen and (max-width: 1200px) {
	.bb_dialog {
		width: 90%;
		max-width: 900px;
	}

	.bb_dialog .dialog_inner {
		padding: 2rem;
	}

	.upload_file_box {
		padding: 3rem 4rem;
	}
}

/* 992px 이하 - 태블릿 (세로 모드) */
@media screen and (max-width: 992px) {
	.bb_dialog {
		width: 95%;
		max-width: 800px;
		max-height: fit-content;
		top: 0;
		left: 50%;
		transform: translate(-50%, 2%);
		position: absolute;
	}

	.bb_dialog .dialog_inner {
		padding: 2rem;
	}

	.upload_file_box {
		padding: 2rem 3rem;
	}
}

/* 768px 이하 - 모바일 (가로 모드) */
@media screen and (max-width: 768px) {
	.bb_dialog {
		width: 90%;
		max-width: 90%;
	}

	.bb_dialog .dialog_inner {
		padding: 1.5rem;
	}

	.upload_file_box {
		padding: 2rem;
	}

	.file_drag h1,
	.file_drag p {
		display: none;
	}

	.error_header {
		flex-direction: column;
		align-items: flex-start;
	}

	.error_header .toggle-btn {
		margin-top: 0.8rem;
	}

	.bottom_button {
		flex-wrap: wrap;
	}

	.error_header span {
		display: block;
		margin-top: 0.6rem;
	}

	.error_header .toggle-btn {
		margin-top: 0.8rem;
		margin: 2rem 0 0;
		background: #fff;
		padding: 0.6rem 1.6rem 0.6rem 1.8rem;
		border-radius: 300px;
		box-shadow: 1px 1px 8px #ff475a24;
		width: 100%;
	}

	.bb_dialog .bb_box_title {
		display: flex;
		align-items: flex-start;
		justify-content: flex-start;
		margin-bottom: 2rem;
		flex-direction: column;
	}

	.bb_dialog .bb_box_title span {
		margin-left: 0;
	}
}

/* 576px 이하 - 모바일 (세로 모드) */
@media screen and (max-width: 576px) {

	html,
	body {
		width: 100%;
	}

	.bb_dialog {
		width: 100%;
		max-width: 80%;
	}

	.dialog_down_table.dialog_up_table tbody td span::before {
		display: none;
	}

	.container,
	.container-sm {
		max-width: 100%;
	}

	.file_drag::before {
		width: 6.4rem;
		height: 6.4rem;
		background-size: 6.4rem;
		margin: 0 auto 1rem;
	}

	.upload-btn {
		margin: 1.2rem auto;
		width: 100%;
	}

	.file_box {
		display: flex;
		justify-content: center;
		align-items: center;
		position: relative;
		gap: 0;
		flex-direction: column;
	}

	.file-info span {
		position: unset;
		display: block;
		margin-top: 0.8rem;
	}

	.progress-container {
		margin-top: 0.8rem;
	}

	#progressText {
		position: unset;
	}

}

/**************************** Card UI ****************************/
@media screen and (max-width: 1560px) {
	.bb_sec_card {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 1560px) {
	.bb_card .card_img {
		width: 170px;
	}
}

@media screen and (max-width: 992px) {
	.bb_sec_card {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 860px) {
	.bb_sec_card {
		grid-template-columns: repeat(1, 1fr);
	}
}

@media screen and (max-width: 768px) {
	.bb_sec_card {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 540px) {
	.bb_card {
		flex-direction: column;
	}

	.bb_card .card_img {
		width: 100%;
		height: 200px;
	}
}

/**************************** Table 반응형 스크롤 ****************************/

/* fixed */
@media screen and (min-width: 1240px) {
	body.scroll_bottom:has(.wrap_box) {
		overflow-y: hidden;
	}
	body.scroll_bottom:has(.wrap_box) .wrap_box {
		overflow-y: auto;
		/* padding-bottom: 4.8rem; */
	}
}

@media screen and (max-width: 1240px) {
	body.scroll_bottom:has(.wrap_box) {
		overflow-y: auto;
	}
}

@media screen and (max-width:720px) {
	.table_scroll {
		position: relative;
	}

	.table_scroll:before {
		content: "좌우로 터치해서 보세요.";
		font-size: 13px;
		width: 168px;
		margin: 10px auto 0;
		box-sizing: border-box;
		padding: 0 0 0 25px;
		line-height: 25px;
		color: #00589b;
		display: block;
		background: url(../../static-app/images/header/Hand-OneFinger-Scroll-Horizontal.svg) no-repeat left top;
		height: 22px;
		background-size: auto 100%;
	}

	.table_scroll .move {
		overflow: auto;
		margin-top: 10px;
	}

	.table_scroll .move {
		height: 100%;
	}

	.bb_sec_table {
		padding-bottom: 0 !important;
	}
}

/**************************** 기성 작성 그리드 ****************************/

@media screen and (max-width: 1240px) {
	.bb_sec_pgtitle:not(.r_con) {
		justify-content: space-between;
		align-items: flex-start;
		flex-direction: column;
		gap: 1.6rem;
		height: unset;
		line-height: unset;
		border-bottom: #ddd 1px solid;
		padding-bottom: 2.4rem;
	}

	.bb_sec_pgtitle:not(.r_con) .bb_text_pgtitle {
		width: 90%;
	}

	.bb_text_pgtitle::before {
		display: none !important;
	}

	.bb_sec_pgtitle>div {
		width: 100%;
	}

	.bb_align_spr {
		flex-direction: column;
	}

	.bb_align_spr>div {
		width: 100%;
	}

	#curr_cntr_info {
		width: 100% !important;
	}
}

@media screen and (max-width: 760px) {
	.bb_sec_pgtitle:not(.r_con) {
		border-bottom: 0;
		padding-bottom: 0;
	}

	.bb_sec_pgtitle:not(.r_con) .bb_text_pgtitle {
		margin-bottom: 1rem;
	}
	
	.title_right_info {
		flex-direction: column;
		gap: 1rem;
		align-items: flex-start;
	}

	.project_info {
		flex-direction: column;
		width: 100%;
		align-items: flex-start;
		gap: 0rem;
		border: 1px solid #EBEBEB;
		padding: 1.6rem;
		border-radius: 1rem;
	}
	
	.project_info div {
		width: 100%;
		
	}

	.project_info > .info_count{
		margin-bottom: 2rem;
	}

	.project_info .info_count> div {
		width: calc(100% / 3);
	}
	.project_info .info_prgpydate {
        align-items: center;
	}

	/*금액 card ui*/
.bb_sec_contents> .bb_align_spr> .expct_list .bb_box_white .text01 .text01_price .bb_title_round.secondary {
	display: none;
}

.bb_sec_contents> .bb_align_spr> .expct_list .bb_box_white .text01 {
	gap: 0 !important;
	margin-bottom: 0 !important;
}

.bb_sec_contents> .bb_align_spr> .expct_list .bb_box_white .text01 .text01_title h1 {
	font-size: 1.8rem !important;
}

.bb_sec_contents> .bb_align_spr> .expct_list .bb_box_white .text01 .text01_price p{
	font-size: 1.4rem;
	color: #757C81;
	font-weight: 500;
}

.bb_sec_contents> .bb_align_spr> .expct_list .bb_box_white .text01 .text01_price p span {
	font-weight: 600;
}


	.bb_box_white .text01 {
		flex-direction: column-reverse;
		gap: 1.4rem;
		width: 100%;
		align-items: center;
		font-size: 1.6rem;
	}

	.bb_box_white .text01 .text01_box {
		flex-direction: column;
		align-items: center;
		gap: 1.2rem;
	}

	.text01 .text01_title h1 {
		justify-content: center;
	}

	.expct_chart .bb_box_white .text01 {
		align-items: flex-start;
	}

	.expct_chart .bb_box_white .text01_chart {
		flex-direction: column;
		gap: 1rem;
	}
	.bb_box_white .text01 .bb_sec_btn_write {
		display: flex;
		width: 100%;
		margin-top: 2.4rem;
		gap: 0.8rem;
	}

	.bb_box_white .text01 .bb_sec_btn_write .bb_btn {
		flex-grow: 1;
		flex-basis: 0;
		height: 4.4rem;
		padding: 0 !important;
		line-height: 4.4rem;
	}

}

@media screen and (max-width: 640px) {
	.bb_box_white .text02 .text02_box p:not(:first-child) {
		display: none;
	}

	.bb_box_gray .text01 {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media screen and (max-width: 580px) {

	.bb_box_white,
	.bb_box_gray {
		padding: 3.2rem;
	}

	.text01 .text01_title h1 {
		font-size: 1.6rem;
	}

	.bb_box_white .text01 .bb_sec_btn_write {
		flex-direction: column;
		margin-top: 1.6rem !important;
	}

	.bb_box_white .text01 .bb_sec_btn_write .bb_btn {
		width: 100% !important;
	}

	.bb_box_white .bb_sec_btn_write .bb_btn:not(:first-child) {
		margin-left: 0;
		margin-top: 1rem;
	}

	.total_chart {
		margin-bottom: 1rem;
	}
}



/*footer*/

/* Desktop */
@media (min-width: 1200px) {

}

/* Tablet (가로) */
@media (max-width: 1199px) {
	.site-footer .footer-top {
		    align-items: flex-start;
    flex-direction: column;
	}

	.site-footer .footer-title {
		font-size: 16px;
		margin-bottom: 24px;
	}
}

/* Tablet (세로) */
@media (max-width: 1024px) {}
/* Mobile */
@media (max-width: 768px) {}

/* Small Mobile */
@media (max-width: 480px) {}

