
/* 기본 테이블 */
.default-table {
	width: 100%; position: relative;
	&.scroll {
		&::-webkit-scrollbar {
			width: 4px;
			height: 4px;
		}
		&::-webkit-scrollbar-track {
			background-color: transparent;
		}
		&::-webkit-scrollbar-thumb {
			border-radius: 10px; background-color: #dcdcdc;
		} max-height: 960px; overflow-y: auto; overflow-x: auto;
		table {
			min-width: 720px;
		}
	}
	&.type-02 {
		.check-area {
			padding: 10px 0;
		}
		table {
			tr {
				th {
					background: #fffaef;
				}
			}
		}
	}
	table {
		table-layout: fixed; width: 100%; border-top: 1px solid #8D8D8D; text-align: center; 
		colgroup {
			.tit {
				width: 120px;
			}
			.w-170px {
				width: 170px; 
			}
			.w-100px {
				width: 105px !important; 
			}
			.w-120px {
				width: 120px; 
			}
		}
		tr {
			th {
				position: relative; padding: 10px 3px; font-size: 1.5rem; font-weight: 800; word-break: break-all; background: #ebebeb; word-break: break-all; border-bottom: 1px solid var(--line); vertical-align: middle; text-align: center;
			}
			td {
				position: relative; height: 45px; padding: 10px 3px; font-size: 1.5rem; line-height: 1.5; word-break: break-all; border-bottom: 1px solid var(--line); color: #555; background-color: #fff;
				&.right {
					text-align: right; padding-right: 25px;
				}
				&.bd-left {
					border-left: 1px solid var(--line);
				}
				.mo {
					display: none
				}
				.new {
					font-size: 1.1rem; background: #f05050; padding: 2px 6px; color: #fff; border-radius: 3px; margin-right: 5px;
				}
				.pop-link {
					font-weight: 600; color: #508deb; text-decoration: underline;
				}
								&.bold {
					font-weight: 600;
					&.red {
						color: var(--red);
					}
					&.blue {
						color: #508deb;
					}
				}
			}
		}
		.a-link {
			overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #508deb; text-align: left; display: block;
			&:hover {
				text-decoration: underline;
			}
		}
		strong {
			font-weight: 900;
		}
		.block {
			display: block;
		}
		.input-radio {
			&.box-radio {
				margin: 0;
				input[type=radio] + label {
					padding: 4px 8px; min-width: 60px;
				}
			}
		}
		.input-text {
			padding-top: 5px;
			&:first-child {
				padding-top: 0;
			}
			input {
				height: 38px;
				
			}
		}
	}
	&.td-left {
		table {
			tr {
				td {
					text-align: left; padding: 5px 10px;
					&:nth-child(n+2) {
						border-left: 1px solid var(--line);
					}
				}
			}
		}
	}
	&.bd-table {
		table {
			border-right: 1px solid var(--line);
			tr {
				th:nth-child(1) {
					border-left: 1px solid var(--line);
				}
				td {
					border-left: 1px solid var(--line);
				}
			}
		}
	}
}

.normal-table {
	position: relative; width: 100%;

	.table-tit {
		padding: 5px 0; border-bottom: 2px solid #D80C24; display: inline-block;
		.tit {
			font-size: 2.1rem; font-weight: 700;
		}
		&.pd-30 {
			padding-top: 30px;
		}
	}
	&.pd-50 {
		padding-top: 50px;
	}
	table {
		width:100%; font-size:1.5rem; border-top:1px solid #aaa; table-layout: fixed; line-height: 1.4;
		thead {
		tr {
			background:#f4f4f4;
			th { 
				position:relative; font-weight:600; vertical-align: middle; padding:5px; text-align: center; height:50px; 
				&:after {content:''; display:block; position:absolute; top:0; left:-1px; width:1px; height: 100%; background:#E1E1E1;}
				&:nth-child(1):after { width:0; height: 0;}
				&.border-bot {
					border-bottom: 1px solid #E1E1E1;
				}
				&.border-left {
					border-left: 1px solid #E1E1E1;;
				}
			}
		}
		}
		tbody {
		tr {
			th {
				font-weight: 600;
				&.body-header {
					text-align: center; background: #f4f4f4; border: 1px solid #E1E1E1; border-left: 0; padding: 5px 3px;
				}
			}
			td {
				padding: 6px; text-align: left; height:50px; border:1px solid #d7dbe3; color: #333; word-break:break-all;
				&.text-center {
					text-align: center;
				}
				&.td-bold {
					font-weight: 600;
				}
				&:first-child {
					border-left:0;
				}
				&:last-child {
					border-right:0;
				}
				&.ellipsis {
					overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
				}
				span {
					font-weight: 500;
					&.sub-text {
						font-weight: 400; color: #8d0303;
					}
				}
			}
		}
		}
	}
}

@media (max-width: 1024px) {
	.normal-table {
		&.pc {
			display: none;
		}
	}
}


@media (max-width: 768px) {
	.normal-table {
		.table-tit {
			.tit {
				font-size: 1.5rem;
			}
		}
		table {
		font-size: 1.3rem;
		}
	}
}

// 필수값 표시
.ess { 
	display: inline-block; height: 4px; width: 4px; border-radius: 50%; margin: 0 0 8px 3px; background: #f05050; 
}

.inner-table {
	padding-bottom: 0 !important;
	&.full {
		table {
			width: 100%;
		}
	}
	table {
		width: 700px; max-width: 100%; border-left: 1px solid var(--line);
		tbody {
			tr {
				th {
					background: #fff;
				}
			}
		}
		tr {
			th {
				padding: 5px; font-size: 1.3rem;
				&.bd-right {
					border-right: 1px solid var(--line);
				}
			}
			td {
				padding: 5px; font-size: 1.4rem; text-align: center; border-right: 1px solid var(--line);
			}
		}
	}
}

.list-table {
    &.mo {
		display: none;
		.list-tit {
            position: relative; display: flex; align-items: center; gap: 10px; padding: 15px 0 15px 25px; background: #e3e3e3;
            &::before {
                content: ""; width: 5px; height: 5px; background: var(--theme); position: absolute; left: 10px; top: 25px;
            }
            p {
                font-size: 1.6rem; font-weight: 800; 
            }
        }
        ul {
			li {
				border-bottom: 1px solid var(--line); padding: 15px 10px;
				.top-area {
					display: flex; align-items: center; padding-bottom: 7px;
					.tit {
						font-size: 1.7rem; font-weight: 700;
					}
				}
				.bot-area {
					display: flex; flex-wrap: wrap; align-items: center;
					dl {
						display: flex; font-size: 1.5rem; padding-right: 20px;
						&:last-child {
							padding-right: 0;
						}
						dt {
							width: 70px; color: #9C9C9C; font-weight: 600;
						}
						dd {
							width: calc(100% - 70px); color: #333;
						}
					}
				}
			}
		}
    }
	.input-text {
		input {
			height: 35px;
		}
	}
	.input-radio {
		&.box-radio {
			margin: 0;
			input[type=radio] + label {
				padding: 4px 8px; min-width: 60px;
			}
		}
	}
	.selectbox {
		&::after {
			top: 15px;
		}
		select {
			line-height: 35px; padding: 0 35px 0 15px;
		}
	}
}

.link {
	font-weight: 600; color: #508deb;
	&:hover {
		text-decoration: underline;
	}
}

@media (max-width: 2030px) {
	.default-table {
		table {
			colgroup {
				.bid-tit {
					width: 350px;
				}
				.rsut-tit {
					width: 280px;
				}
				.bidder-tit {
					width: 350px;
				}
			}
		}
	}
}

@media (max-width: 1200px) {
    .list-table {
        &.pc {
            display: none;
        }
        &.mo {
            display: block;
			&.pd-top {
				padding-top: 7px;
			}
        }
    }
}
@media (max-width: 1070px) {
	.m-scroll {
		overflow-x: auto;
		table {
			width: 1070px;
			colgroup {
				.w-170px {
					width: 100px;
				}
				.w-100px {
					width: 75px !important;
				}
			}
		}
	}
	.s-table {
		table {
			width: fit-content;
		}
	}
}

@media(max-width: 890px) {
	.default-table {
		table {
			colgroup {
				.w-170px {
					width: 70px;
				}
				.w-100px {
					width: 70px !important;
				}
			}
			tr {
				th {
					font-size: 1.4rem; padding: 7px;
				}

				td {
					font-size: 1.4rem; padding: 7px 7px 7px 10px;
				}
			}
		}
		&.mo-ui {
			table {
				colgroup {
					display: none;
				}
				thead {
					display: none;
				}
				tr {
					display: flex; flex-wrap: wrap; grid-gap: 0 5px; gap: 0 5px; align-items: center; position: relative; padding: 15px 10px; border-bottom: 1px solid var(--line);
					td {
						display: inline-block; height: auto; padding: 3px 0; text-align: left; border: none; margin-right: 8px;
						&:last-child {
							margin-right: 0;
						}
						&.num {
							display: none;
						}
						&.mo-tit {
							display: block; width: 100%; padding-bottom: 5px; font-size: 1.5rem; font-weight: 500; color: #000;
						}
						.a-link {
							font-size: 1.5rem; font-weight: 500; color: #000;
						}
						.mo {
							display: inline-block; font-weight: 600; margin-right: 5px;
						}
						.colr-blue {
							display: inline-block; margin-left: 5px;
						}
					}
					&.fixed {
						.noti-label {
							display: none;
							&.mo-label {
								display: inline-block;
							}
						}
					}
				}
			}
		}
	}
	.inner-table {
		table {
			tr {
				th {
					font-size: 1.15rem;
				}

				td {
					font-size: 1.15rem;
				}
			}
		}
	}
}

@media (max-width: 575px) {
    .list-table {
        &.mo {
            display: block;
			ul {
				li {
					.top-area {
						align-items: flex-start;
					}
				}
			}
            .box {
                .info {
                    gap: 8px;
                    dl {
                        width: 100%;
                    }
                    .btn-wrap {
                        margin-top: 7px;
                    }
                }
            }
        }
    }
}

@media(max-width: 475px) {
	.default-table {
		table {
			colgroup {
				.tit {
					width: 100px;
				}
			}
		}
	}
	.inner-table {
		table {
			width: 100%;
		}
	}
	.list-table {
		&.mo {
			ul {
				li {
					.top-area {
						.tit {
							font-size: 1.6rem;
						}
					}
				}
			}
		}
	}
}