@charset "UTF-8";

.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--slate-100-rgb), .7);
    z-index: 9990;
    transition: all 0.2s ease-in-out;
}
.modal-backdrop.is-open,
.modal.is-open {
    display: flex;
}
.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
	width: 100%;
	height: 100%;
	padding: 12px;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 0;
    z-index: 9991;
    overflow: hidden;
    outline: 0;
    transition: all 0.2s ease-in-out;
}
.modal .modal-content {
    display: flex;
    flex-direction: column;
    outline: none;
    overflow: hidden;
    max-width: calc(100vw - 120px);
	max-height: calc(100vh - 80px);
    border: 1px solid var(--slate-400);
    border-radius: var(--l-radius);
    box-shadow: var(--p-shadow);
}
.modal .modal-content .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid var(--slate-300);
    background-color: var(--slate-100);
}
/* 닫기 아이콘은 <i> 였다가 <button> 이 됐다(Tab 으로 도달 가능하게).
   UA 기본 배경·테두리·여백을 지워 <i> 때와 같은 모양으로 맞춘다. */
.modal .modal-content .header .icon {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    line-height: 1;
}
.modal .modal-content .header .icon::before {
    font-size: var(--i-small);
    transition: all 0.2s ease;
}
.modal .modal-content .header .icon:hover::before {
    color: var(--slate-500);
}
.modal .modal-content .body {
    position: relative;
    display: flex;
    flex-direction: column;
	height: 100%;
    max-height: calc(100vh - 120px);
    color: var(--slate-700);
    background-color: var(--white);
    overflow: hidden;
}
.modal .modal-content .body .contents-wrap {
	position: relative;
    display: flex;
    flex-direction: column;
    overflow: auto;
	gap: 12px;
    padding: 12px;
    width: 100%;
    height: 100%;
    flex: 1;
}
.modal .modal-content .body .search-form {
    box-shadow: none;
    flex-grow: 0;
	border-radius: var(--c-radius);
    border: 1px solid var(--slate-400);
}
/*
.modal .modal-content .body .search-form,
.modal .modal-content .body .contents-wrap,
.modal .modal-content .body .table-wrap {
    border-color: var(--slate-400);
    box-shadow: none;
    flex-grow: 0;
    border-radius: var(--c-radius);
}
*/
.modal .modal-content .body .page-list {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	padding: 0;
    border: none;
	box-shadow: none;
}
/*
  요약 카드(SummaryCard).

  layout.css 의 원본 규칙은 `.wrap .container .content ...` 로 잠겨 있는데
  팝업은 OverlayProvider 가 앱 최상단에서 그리므로 .content 밖이다 → 규칙이 하나도 안 먹어
  라벨/값이 세로로 줄줄이 흐르고 카드 테두리도 사라진다. 팝업용으로 다시 정의한다.
  (.page-list · .contents-wrap 이 이미 같은 이유로 여기에 정의돼 있다)
*/
.modal .modal-content .body .sub-statistic-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 12px;
    border-radius: var(--l-radius);
    border: 1px solid var(--slate-300);
    background-color: var(--white);
}
.modal .modal-content .body .sub-statistic-wrap .title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 32px;
    padding-left: 4px;
    padding-bottom: 4px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--slate-200);
}
.modal .modal-content .body .sub-statistic-wrap .title .date {
    font-weight: 500;
    color: var(--slate-500);
}
.modal .modal-content .body .sub-statistic-wrap .statistic-list {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 24px;
}
.modal .modal-content .body .sub-statistic-wrap .statistic-list > div {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* 팝업은 항목 수가 많다(활동 요약 7개) → 고정폭 대신 균등 분배 */
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}
.modal .modal-content .body .sub-statistic-wrap .statistic-list > div::before {
    position: absolute;
    left: -12px;
    top: 0;
    bottom: 0;
    content: "";
    width: 1px;
    background-color: var(--slate-200);
}
.modal .modal-content .body .sub-statistic-wrap .statistic-list > div:first-child::before {
    display: none;
}
.modal .modal-content .body .sub-statistic-wrap .text {
    font-weight: 500;
    color: var(--slate-500);
}
.modal .modal-content .body .sub-statistic-wrap .total {
    display: flex;
    gap: 4px;
    align-items: center;
}
.modal .modal-content .body .sub-statistic-wrap .total span {
    font-size: 22px;
    font-weight: 700;
    color: var(--slate-600);
}
.modal .modal-content .body .sub-statistic-wrap .total em {
    font-size: 16px;
    color: var(--slate-500);
}

.modal .modal-content .body .table-foot.popup-is-layer {
    position: sticky;
    bottom: 0;
    width: 100%;
    padding: 8px 0;
    border-radius: 0 0 var(--l-radius) var(--l-radius);
    border-top: 1px solid var(--slate-400);
    background-color: var(--slate-100);
    box-shadow: var(--p-shadow);
	z-index: 2;
}