/* 레이어 팝업 */
.layer-wrap {
    border: 1px solid var(--color-modal-border); background: var(--color-bg-surface);
    padding: 20px; border-radius: 6px; /* width: 100%; */ min-width: 600px; max-width: 1100px; max-height: 96dvh;
    box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.12); 
	display:none; position:fixed; z-index:9999;
}
.layer-wrap:has(.join__form){
	min-width: 400px;
}
.layer-wrap:has(.join__form){
    width: auto;
}

.layer-wrap:has(.b2b-order-layer),
.layer-wrap:has(.intranet-purchase-order-layer){
	min-width: 1000px;
}
.layer-wrap:has(.intranet-cancel-fail-layer) {
	min-width: 800px;
}
.layer-content {
    width: 100%; height: 100%;
}

.layer-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px;
}
.layer-header .title-bullet {
    font-size: 16px;
}

.layer-body {
    width: 100%; max-height: calc(100dvh - 110px); overflow-y: auto; overflow-x: hidden;
}
.layer-body .layer-info {
    font-size: 13px; font-weight: 400; color: var(--color-text-default); margin-bottom: 6px;
}
.layer-body .layer-info::before{
    content: "*"; color: var(--color-bg-danger);
    margin-right: 3px;
}
.layer-body .layer-tbl {
    height: 100%; 
}

.layer-wrap-modify {
    border: 1px solid var(--color-modal-border); background: var(--color-bg-surface);
    padding: 20px; border-radius: 6px; width: 100%; max-width: 1100px; max-height: 96dvh;
    box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.12); 
	display:none; position:fixed; z-index:9999;
	
}

/*.layer-body .layer-tbl-wrap {*/
/*    height: 300px;*/
/*}*/

.layer-body .layer-btn {
    width: 100%; display: flex; justify-content: end; column-gap: 5px; margin-top: 15px;
}

.dim {
    background: var(--color-bg-surface); width: 100%; height: 100%; position: absolute;
    top: 0; z-index: 50; opacity: 0;
}

/* 첨부파일 관련 모달 */
.layer-body .file-attachment {
	display: flex; flex-direction: column; gap: 5px;
}

.layer-body .file-attachment .file-total {
	display: flex; gap: 5px; font-size: 14px; font-weight: 500;
	color: var(--color-text-default);
}
.layer-body .file-attachment .file-total .total-size {
	color: var(--color-text-placeholder);
}

.layer-body .file-attachment .file-wrap {
	display: flex; flex-direction: column;
}
.layer-body .file-attachment .file-wrap .file-list {
	font-size: 13px; font-weight: 500; color: var(--color-text-default);
	border: 1px solid var(--color-border-default); border-top: 0; padding: 8px 10px;
	display: flex; justify-content: space-between; line-height: 26px;
}
.layer-body .file-attachment .file-wrap .file-list > div {
	display: flex; gap: 5px; overflow: hidden;
}
.layer-body .file-attachment .file-wrap .file-list .download{
	flex-shrink: 0;
}
.layer-body .file-attachment .file-wrap .file-list:first-child {
	border-top: 1px solid var(--color-border-strong);
}
.layer-body .file-attachment .file-wrap .file-list .fileName {
	/*max-width: 400px; */overflow: hidden; flex-grow: 1;
	text-overflow: ellipsis; white-space: nowrap;
}
.layer-body .file-attachment .file-wrap .file-list .viewer{
	flex-shrink: 0;
}

.layer-body .file-attachment .file-wrap .file-list .btn-icon {
	width: 26px; height: 26px;
}
.layer-body .file-attachment .file-wrap .file-list .icon {
	background-color: var(--color-text-placeholder);
}






/* alert */
.modal{
	width: 100dvw; height: 100dvh; z-index: 10001;
	position: fixed; left: 0; top: 0;
}
.modal-overlay{
	width: 100%; height: 100%; background: rgba(0, 0, 0, 0.3);
	position: absolute; left: 0; top: 0; z-index: 10002;
}
.modal-alert,
.modal-confirm{
	min-width: 280px; max-width: 360px; background: var(--color-bg-surface); border-radius: var(--radius-surface);
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 10003;
	text-align: center;
	display: flex; flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; align-items: stretch;
	gap: 15px; padding: 15px; overflow: hidden;
}
.modal-alert > p,
.modal-confirm > p{
	min-height: 80px; max-height: 200px;
	padding: 20px; flex-grow: 1;
	display: flex; flex-direction: column; flex-wrap: nowrap; justify-content: center; align-items: stretch;
	font-size: 14px; overflow: hidden;
}
.modal-alert .modal-btns{
	flex-shrink: 0;
}
.modal-alert .modal-btns .btn,
.modal-confirm .modal-btns .btn{
	width: 100%; height: 40px; justify-content: center;
}

.modal-confirm .modal-btns{
	display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: space-between; align-items: flex-start;
	gap: 10px;
}

