/* 변수 설정 */
:root {
    --main-color: #0098E0;
    --bg-color: #F9F9F9;
    --white-color: #FFFFFF;
    --black-color: #000000;
    --border-color: #DEDEDE;
    --text-color: #3B3B3B;
    --main-width: 1320px;
    --border-style: 1px solid var(--border-color);
    --error-color: #F82E2E;
}

/* 폰트 적용 */
@font-face {
    font-family: 'NotoSansKR';
    font-style: normal;
    font-weight: 400;
    src: url(./fonts/NotoSansKR-Regular.woff) format('woff');
}
@font-face {
    font-family: 'NotoSansKR';
    font-style: normal;
    font-weight: 500;
    src: url(./fonts/NotoSansKR-Medium.woff) format('woff');
}
@font-face {
    font-family: 'NotoSansKR';
    font-style: normal;
    font-weight: 600;
    src: url(./fonts/NotoSansKR-SemiBold.woff) format('woff');
}
@font-face {
    font-family: 'NotoSansKR';
    font-style: normal;
    font-weight: 700;
    src: url(./fonts/NotoSansKR-Bold.woff) format('woff');
}

/* 스크롤바 스타일링*/
::-webkit-scrollbar{
    width: 4px;
    height: 4px;
}
::-webkit-scrollbar-thumb {
    background: #666666;
    border-radius: 4px;
}
::-webkit-scrollbar-track {
    background: var(--white-color);
}

/* 공통*/
body {
    font-family: 'NotoSansKR', sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.4;
    color: #1A1A1A;
}
a {
    text-decoration: none;
}
.flex-align {
    display: flex;
    align-items: center;
}
.flex-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* 241114 */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.max-width {
    max-width: var(--main-width);
    margin: 0 auto;
    padding: 0 20px;
}
button {
    display: inline-block;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
}
.button-lg {
    height: 38px;
    padding: 0px 24px;
    border: none;
    font-weight: 600;
}
.button-md {
    display: inline-block;
    height: 38px;
    min-width: 83px;
    font-weight: 600;
    text-align: center;
    background-color: var(--white-color);
    border: var(--border-style);
}
.button-sm {
    display: inline-block;
    padding: 10px 12px;
    min-width: 70px;
    border-radius: 2px;
    border: var(--border-style);
    background-color: var(--white-color);
}
.button-md.primary {
    color: var(--main-color);
    border-color: var(--main-color);
}
.gap-md {
    gap: 12px;
}
/* 241113 추가 */
.gap-xl {
    gap: 24px;
}
h2 {
    color: var(--main-color);
    font-weight: 600;
    font-size: 15px;
}

/* 최상위 wrapper */
.wrapper {
    min-width: 1120px;
}

/* 헤더 */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.08);
}
header > h1 {
    width: 100%;
    max-width: var(--main-width);
    padding: 0 20px;
    text-align: center; 
}
header > h1 > a {
    color: var(--main-color);
    font-weight: 700;
    font-size: 24px;
}
/* 메인 */
.main {
    padding-top: 4px;
}
/* api-입력 */
.search-sec {
    padding: 20px 0;
    background-color: var(--bg-color);
    margin-bottom: 20px;
}
/* 24113 수정 */
.search-row-2 {
    padding-top: 10px;
    margin-bottom: 16px;
}
/* 셀렉트 박스  */
.select-wrap {
    position: relative;
    flex-basis: 180px;
}
.select-wrap.topic {
    flex-grow: 1;
}
.select-box {
    color: var(--text-color);
    padding: 0 12px;
    border: var(--border-style);
    background-color: var(--white-color);
    height: 38px;
    cursor: pointer;
}
.select-box::after {
    content: "";
    position: absolute;
    right: 20px;
    display: inline-block;
    width: 10px;
    height: 10px;
    background: url(./img/arrow.png) no-repeat right center / 10px auto;
}
.select-box:focus {
    outline: var(--main-color) auto 1px;
}
/* **241106 수정** .disabled 처리*/
.select-box.disabled {
    pointer-events: none;
    background-color: var(--border-color);
    color: #9b9b9b;
}
/* 셀렉트박스 옵션 리스트  */
.select-wrap.active > ul {
    display: block;
    box-shadow: 0 8px 15px -5px rgba(0, 0, 0, 0.4);
}
.select-wrap > .option-list {
    display: none;
    width: calc(100% - 1px);
    max-height: 300px;
    overflow-y: auto;
    position: absolute;
    top: 40px;
    left: 0;
    border: var(--border-style);
    background-color: var(--white-color);
    padding: 8px 0;
    z-index: 10;
    margin: 0;
}
.select-wrap .option-item {
    cursor: pointer;
    padding: 10px 12px;
    background-color: var(--white-color);
}
.select-wrap .option-item:hover {
    background-color: rgba(0,152,244,0.2);
}

/* 캘린더 */
.calendar {
    width: 240px;
    padding: 0 12px;
    border: var(--border-style);
    height: 38px;
    cursor: pointer;
    background: var(--white-color) url(./img/calendar.png) no-repeat right 16px center / auto 20px;
}
.calendar:focus {
    outline: var(--main-color) auto 1px;
}

/* 검색 버튼 */
.search-btn {
    background-color: var(--main-color);
    color: var(--white-color);
}
.subscriber-title::before {
    display: block;
    content: "";
    width: 100%;
    height: 1.5px;
    background-color: transparent;
    border-top: 0.8px solid #ccc;
    margin: 12px 0 12px;
}
/* **241106 수정** 검색 선택 값  */
.search-row-3 {
    padding-bottom: 12px;
}
/* topic부분 하단으로 이동 시 아래 ::before (line처리)부분 삭제필요 */
.search-row-3::before {
    display: block;
    content: "";
    width: 100%;
    height: 1.5px;
    background-color: transparent;
    border-top: 0.8px solid #ccc;
    margin: 8px 0 12px;
}
.search-row-3 > .selected-values {
    /* topic부분 하단으로 이동 시 주석 처리된 거 풀고 기존 배경색상은  주석처리*/
    /* background-color: var(--bg-color); */
    background-color: var(--white-color);
    margin-top: 10px;
    height: 40px;
    padding: 0 12px;
    border-radius: 4px;
    gap: 4px;
}


/* api 출력 */
/* url & message */
.result-layout {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    row-gap: 8px;
}

/* url */
.list-sytle {
    gap: 40px;
    background-color: var(--bg-color);
    padding: 10px 24px;
}
.list-sytle:hover {
    background-color: rgba(0,0,0,0.1);
}
.list-sytle > p {
    white-space: normal;
    word-break: break-all;
}

/* message */
.total-count > strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    padding-left: 4px;
}

/* message - 테이블 */
.table-wrap {
    margin-top: 12px;
    box-shadow: 0px 2px 10px rgba(0,0,0,0.05);
    width: 100%;
}
.table-wrap table {
    border-collapse: collapse;
    font-weight: 300;
    font-size: 14px;
}
.table-wrap thead {
    background-color: var(--main-color);
    color: var(--white-color);
    font-weight: 700;
}
/* 241113 테이블 넓이 고정 (가로 스크롤 x ) */
.table-wrap tbody {
    display: block;
    max-height: 907px;
    width: 1320px;
    overflow-y: auto;
    padding: 12px 0;
}
/* 241113 테이블 넓이 고정 (가로 스크롤 x ) */
.table-wrap table tr {
    height: 45px;
    border-bottom: var(--border-style);
    display: table;
    width: 100%;
    table-layout: fixed;
    overflow-x: visible;
}
.table-wrap table tr:hover {
    background-color: rgba(0,0,0,0.1);
}
/* 241113 수정 */
.table-wrap table tr.active {
    background-color: rgba(0,152,224,0.1)
}
.table-wrap table tr:last-child {
    border: none;
}
/* 241113 테이블 열 넓이 고정  */
.table-width-sm {
    width: 2%;
}
.table-width-md {
    width: 12%;
}
table-width-lg {
    width: 26.67%;
}
.table-wrap table th, td {
    text-align: left;
    padding: 0 16px;
    vertical-align: middle;
}
/* 241113 테이블 한줄 말줄임표 */
.table-wrap table td .table-text {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.table-wrap table th:first-child, td:first-child {
    text-align: center;
}
/* message - 테이블 - 체크박스*/
table input[type="checkbox"] {
    display: none;
}
/*24114 checkbox 보더 색상 수정  */
table input[type="checkbox"] + label {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid var(--text-color);
    background-color: var(--white-color);
    position: relative;
    cursor: pointer;
    vertical-align: middle;
}
table input[type="checkbox"]:checked + label {
    border-color: var(--black-color);
}
table input[type="checkbox"]:checked + label::after {
    content: ' \2714';
    font-size: 12px;
    color: var(--white-color);
    background-color: var(--text-color);
    width: 16px;
    height: 16px;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
}

/* 페이지네이션 */
.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.pagination {
    display: flex;
    gap: 4px;
}
.pagination > .page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: var(--border-style);
    cursor: pointer;
}
.pagination > .page.current {
    color: var(--main-color);
    border-color: var(--main-color);
    font-weight: 800;
}

.pagination > .page.firstlast {
    width: 60px;
}
/* **241114 수정** .disabled 처리*/
.pagination > .page.disabled {
    background: var(--border-color);
    pointer-events: none;
}
.pagination > .page > img {
    width: 20px;
}
.pagination > .page.prev > img {
    transform: rotate(180deg);
}

/* 캘린더 스타일링 */
.xdsoft_datetimepicker {
    padding: 8px;
}
.xdsoft_datetimepicker * {
    padding-top: 4px !important;
}
/* 날짜 선택 */
.xdsoft_datetimepicker .xdsoft_datepicker {
    width: auto !important;
}
.xdsoft_datetimepicker .xdsoft_timepicker {
    width: 68px;
}
.xdsoft_datetimepicker .xdsoft_calendar td, .xdsoft_datetimepicker .xdsoft_calendar th {
    padding: 8px !important;
    color: #1A1A1A !important;
}
.xdsoft_datetimepicker .xdsoft_calendar th {
    background-color: rgba(0,152,224,0.3) !important;
}
/* 시간선택 */
.xdsoft_datetimepicker .xdsoft_datepicker.active+.xdsoft_timepicker {
    margin-top: 17px !important;
}
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box {
    height: 201px !important;
}
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div {
    height: 32px !important;
    color: #1A1A1A !important;
}

/* 24114 툴팁 */
.ui-tooltip, .arrow:after {
    background: var(--text-color);
  }
  .ui-tooltip {
    padding: 4px;
    border-radius: 8px;
    box-shadow: 0 0 7px var(--black-color);
    background-color: var(--error-color);
    word-wrap: break-word;
  }
  .arrow {
    width: 70px;
    height: 16px;
    overflow: hidden;
    position: absolute;
    left: 50%;
    margin-left: -35px;
    bottom: -16px;
  }
  .arrow.top {
    top: -16px;
    bottom: auto;
  }
  .arrow.left {
    left: 20%;
  }
  .arrow:after {
    content: "";
    position: absolute;
    left: 20px;
    top: -20px;
    width: 25px;
    height: 25px;
    box-shadow: 6px 5px 9px -9px black;
    transform: rotate(45deg);
}
  .arrow.top:after {
    bottom: -20px;
    top: auto;
}
  .ui-tooltip.ui-widget.ui-widget-content {
    background-color: var(--text-color);
    border: none !important;
    color: var(--white-color);
}
  .ui-tooltip.ui-widget-shadow {
    box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);
}

/* 241114  퍼블리시 프로그레스 바 다이얼로그 */
.ui-dialog-titlebar.ui-widget-header {
    background-color: rgba(0,152,224,0.2);
}
.ui-dialog-content.ui-widget-content {
    background-color: var(--white-color) !important;
    padding: 20px !important;
}
.ui-dialog.ui-widget.ui-widget-content {
    width:500px !important;
}
.progressbar {
    margin-top: 20px;
}
.progressbar .ui-progressbar-value {
    background-color: var(--main-color);
}
.progress-label {
    font-weight: bold;
}
.progress-total {
    padding-right: 6px;
}
.ui-dialog-titlebar-close {
    display: none !important;
}
.outcome-count {
    justify-content: end;
    margin-top: 12px;
    padding-right: 8px;
}
.outcome-count .fail {
    color: var(--error-color);
}
.ui-widget-overlay {
    background-color: var(--black-color) !important;
}
.ui-dialog .ui-dialog-buttonpane button {
    height: 38px;
    min-width: 80px;
    font-weight: 600;
    text-align: center;
    background-color: var(--white-color);
    border: 1px solid var(--main-color);
    color: var(--main-color);
}
.ui-button {
    background-color: var(--white-color) !important;
    color: var(--main-color) !important;
    border-color: var(--main-color) !important;
    border-radius: 0px !important;
    font-weight: bold !important;
}

/* 241114 로딩스피너 다이얼로그 */
.loading-ui {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 100;
}
.loading-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.loading {
	height: 120px;
	width: 120px;
    border: 4px solid var(--bg-color);
    border-right-color: var(--main-color);
    border-top-color: var(--main-color);
    border-radius: 100%;
    animation: spin 1200ms infinite linear;
}
.loading-text {
    -moz-animation: loading-text-animation 2s linear 0s infinite normal;
    -o-animation: loading-text-animation 2s linear 0s infinite normal;
    -webkit-animation: loading-text-animation 2s linear 0s infinite normal;
    animation: loading-text-animation 2s linear 0s infinite normal;
    opacity: 0;
    color: var(--white-color);
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    text-align: center;
    width: 100px;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(359deg); }
}

@keyframes loading-text-animation {
    0%  {opacity: 0}
    50% {opacity: 1}
    100%{opacity: 0}
}

@-moz-keyframes loading-text-animation {
    0%  {opacity: 0}
    50% {opacity: 1}
    100%{opacity: 0}
}

@-webkit-keyframes loading-text-animation {
    0%  {opacity: 0}
    50% {opacity: 1}
    100%{opacity: 0}
}

@-o-keyframes loading-text-animation {
    0%  {opacity: 0}
    50% {opacity: 1}
    100%{opacity: 0}
}

/* 프로그래스 새 페이지 */
.progress-page {
    padding-top: 48px;
}
.progress-page .contents {
    border: var(--border-style);
    padding: 32px 24px;
    width: 100%;
}
.progress-page  .progress-wrap {
    padding-top: 24px;
    width: 100%;
}