@charset "utf-8";
@import url(https://fonts.googleapis.com/earlyaccess/notosanskr.css);

html, body, h1, h2, h3, h4, h5 {
    font-family: 'Noto Sans KR', sans-serif !important;
    /*font-weight: 400;*/

    --ck-z-default: 100 !important;
    --ck-z-modal: calc( var(--ck-z-default) + 999 ) !important;
}

/* 공통 관리자 콘텐츠 영역: 흰색에 가까운 soming 연핑크로 화면의 온도를 통일한다. */
.soming-admin-main {
    background-color: #fffcfd !important;
}

/* 관리자 사이드바: soming 브랜드 색상과 큰 글자·명확한 상태 대비를 함께 사용한다. */
.soming-admin-sidebar {
    background: #f8edf1 !important;
    border-right: 1px solid #f0dce3 !important;
    box-shadow: 10px 0 30px rgba(52, 32, 43, 0.06) !important;
}

.soming-admin-sidebar .app-sidebar-logo {
    border-bottom: 1px solid #f0dce3 !important;
}

.soming-admin-sidebar .app-sidebar-wrapper {
    scrollbar-color: #e8b8c8 transparent !important;
}

.soming-admin-sidebar .app-sidebar-wrapper::-webkit-scrollbar-thumb,
.soming-admin-sidebar .app-sidebar-wrapper:hover::-webkit-scrollbar-thumb {
    background-color: #e8b8c8 !important;
}

.soming-sidebar-menu > .menu-item {
    margin: 0 !important;
}

.soming-sidebar-menu .menu-item > .menu-link {
    min-height: 52px;
    margin: 3px 0;
    padding: 10px 14px;
    border-radius: 12px;
    color: #4b5675 !important;
    transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.soming-sidebar-menu .menu-item > .menu-link .menu-title {
    min-width: 0;
    color: #252f4a !important;
    font-size: 16px;
    font-weight: 700 !important;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
}

.soming-sidebar-menu .menu-item > .menu-link .menu-icon {
    width: 30px;
    min-width: 30px;
    margin-right: 10px;
}

.soming-sidebar-menu .menu-item > .menu-link .menu-icon,
.soming-sidebar-menu .menu-item > .menu-link .menu-icon i {
    color: #667085 !important;
}

.soming-sidebar-menu .menu-item > .menu-link .menu-arrow::after {
    background-color: #667085;
}

.soming-sidebar-menu .soming-sidebar-dashboard {
    padding-bottom: 10px;
    margin-bottom: 7px !important;
    border-bottom: 1px solid #f0dce3;
}

.soming-sidebar-menu .soming-sidebar-group {
    padding-top: 7px;
    margin-top: 7px !important;
    border-top: 1px solid #f5e8ed;
}

.soming-sidebar-menu .soming-sidebar-dashboard + .soming-sidebar-group {
    padding-top: 0;
    border-top: 0;
}

.soming-sidebar-menu .menu-item:not(.here) > .menu-link:not(.active):hover,
.soming-sidebar-menu .menu-item.hover:not(.here) > .menu-link {
    color: #9f2047 !important;
    background: #fff0f5 !important;
}

.soming-sidebar-menu .menu-item:not(.here) > .menu-link:not(.active):hover .menu-title,
.soming-sidebar-menu .menu-item.hover:not(.here) > .menu-link .menu-title,
.soming-sidebar-menu .menu-item:not(.here) > .menu-link:not(.active):hover .menu-icon,
.soming-sidebar-menu .menu-item:not(.here) > .menu-link:not(.active):hover .menu-icon i,
.soming-sidebar-menu .menu-item.hover:not(.here) > .menu-link .menu-icon,
.soming-sidebar-menu .menu-item.hover:not(.here) > .menu-link .menu-icon i {
    color: #9f2047 !important;
}

.soming-sidebar-menu .menu-item:not(.here) > .menu-link:not(.active):hover .menu-arrow::after,
.soming-sidebar-menu .menu-item.hover:not(.here) > .menu-link .menu-arrow::after {
    background-color: #e63368 !important;
}

.soming-sidebar-menu .soming-sidebar-group.here > .menu-link,
.soming-sidebar-menu .soming-sidebar-group.show > .menu-link {
    color: #8f1d43 !important;
    background: #fff0f5 !important;
}

.soming-sidebar-menu .soming-sidebar-group.here > .menu-link .menu-title,
.soming-sidebar-menu .soming-sidebar-group.show > .menu-link .menu-title,
.soming-sidebar-menu .soming-sidebar-group.here > .menu-link .menu-icon,
.soming-sidebar-menu .soming-sidebar-group.here > .menu-link .menu-icon i,
.soming-sidebar-menu .soming-sidebar-group.show > .menu-link .menu-icon,
.soming-sidebar-menu .soming-sidebar-group.show > .menu-link .menu-icon i {
    color: #8f1d43 !important;
}

.soming-sidebar-menu .soming-sidebar-group.here > .menu-link .menu-arrow::after,
.soming-sidebar-menu .soming-sidebar-group.show > .menu-link .menu-arrow::after {
    background-color: #e63368 !important;
}

.soming-sidebar-menu .soming-sidebar-submenu {
    margin: 4px 0 8px 16px;
    padding: 2px 0 2px 10px;
    border-left: 2px solid #f3c5d3;
}

.soming-sidebar-menu .soming-sidebar-subitem > .menu-link {
    min-height: 46px;
    margin: 2px 0;
    padding: 9px 12px;
}

.soming-sidebar-menu .soming-sidebar-subitem > .menu-link .menu-title {
    color: #4b5675 !important;
    font-size: 15px;
    font-weight: 600 !important;
}

.soming-sidebar-menu .soming-sidebar-subitem > .menu-link .menu-bullet {
    width: 18px;
    min-width: 18px;
    margin-right: 7px;
}

.soming-sidebar-menu .soming-sidebar-subitem > .menu-link .menu-bullet .bullet {
    width: 7px;
    height: 7px;
    background-color: #a7afc2 !important;
}

.soming-sidebar-menu .menu-item > .menu-link.active {
    color: #6f213b !important;
    background: #e7c5d0 !important;
    box-shadow: 0 7px 16px rgba(111, 33, 59, 0.16);
}

.soming-sidebar-menu .menu-item > .menu-link.active .menu-title,
.soming-sidebar-menu .menu-item > .menu-link.active .menu-icon,
.soming-sidebar-menu .menu-item > .menu-link.active .menu-icon i {
    color: #6f213b !important;
}

.soming-sidebar-menu .menu-item > .menu-link.active .menu-bullet .bullet,
.soming-sidebar-menu .menu-item > .menu-link.active .menu-arrow::after {
    background-color: #6f213b !important;
}

.soming-sidebar-menu .menu-item > .menu-link:focus-visible {
    outline: 3px solid rgba(230, 51, 104, 0.42);
    outline-offset: 2px;
}

.soming-admin-sidebar .app-sidebar-toggle {
    color: #9f2047 !important;
    background: #fff !important;
    border: 1px solid #f0dce3;
}

.soming-admin-sidebar .app-sidebar-toggle:hover,
.soming-admin-sidebar .app-sidebar-toggle:focus-visible {
    color: #6f213b !important;
    background: #e7c5d0 !important;
}

@media (min-width: 992px) {
    :root {
        --bs-app-sidebar-width: 292px;
        --bs-app-sidebar-width-actual: 292px;
    }

    [data-kt-app-sidebar-minimize=on] {
        --bs-app-sidebar-width: 75px;
    }
}

@media (max-width: 991.98px) {
    :root {
        --bs-app-sidebar-width: min(300px, 88vw);
        --bs-app-sidebar-width-actual: min(300px, 88vw);
    }

    .soming-sidebar-menu .menu-item > .menu-link .menu-title {
        font-size: 16px;
    }
}

div.form-control-feedback {
    color: #f4516c;
}

table.dataTable td, table.dataTable th {
    white-space: nowrap !important;
}

table.wowTable td, table.wowTable th {
    white-space: nowrap !important;
}

div.dataTables_scrollHeadInner table.table-bordered tr th:first-child {
    /*border-left: 1px solid #F4F4F4!important;*/
}

.table_wix thead tr {
    background-color: #f9f9f9 !important;
}

.table_wix thead th {
    border-bottom: 1px solid #e1e3ea;
}

/* 관리자 목록은 데이터 유형과 관계없이 왼쪽 정렬을 공통 기준으로 사용한다. */
.table_wix th,
.table_wix td {
    text-align: left !important;
}

.table_wix tfoot tr {
    background-color: #f9f9f9 !important;
}

.admin-search-actions .btn {
    min-height: 44px;
}

button[aria-busy="true"] {
    cursor: wait;
    opacity: 0.72;
}

/* datatables 안에 버튼 있을때 사용*/
.tbody_wix tbody td {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

label.col-form-label {
    text-align: right;
}

@media (max-width: 768px) {
    label.col-form-label {
        text-align: left;
    }
}

.mw-1200px {
    max-width: 1200px !important
}

.mw-1100px {
    width: calc(100% - 2rem);
    max-width: 1100px !important;
}

.mw-1400px {
    max-width: 1400px !important
}

.tax-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tax-detail-field {
    display: grid;
    grid-template-columns: minmax(116px, 34%) minmax(0, 1fr);
    align-items: start;
    min-height: 58px;
    padding: 14px 4px;
    border-bottom: 1px solid #eef0f4;
}

.tax-detail-field-wide {
    grid-column: 1 / -1;
    grid-template-columns: 150px minmax(0, 1fr);
}

.tax-detail-label {
    padding-right: 14px;
    color: #4b5675;
    font-weight: 700;
}

.tax-detail-value {
    min-width: 0;
    color: #252f4a;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tax-detail-history-table {
    min-width: 880px;
}

.tax-detail-history-table th,
.tax-detail-history-table td {
    white-space: normal !important;
    overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
    .mw-1100px {
        width: calc(100% - 1rem);
    }

    .tax-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .tax-detail-field,
    .tax-detail-field-wide {
        grid-column: auto;
        grid-template-columns: minmax(104px, 38%) minmax(0, 1fr);
        padding: 12px 2px;
    }
}

/*
 * 관리자 모달 공통 UI
 * - 입력 요소에만 테두리를 사용하고 상세 정보는 라벨/값과 구분선으로 표현한다.
 * - 모든 모달은 헤더 X와 푸터 닫기 버튼을 동일한 모양으로 제공한다.
 */
.modal:not(.note-modal) .modal-content {
    overflow: hidden;
    max-height: calc(100dvh - 2rem);
    border: 0;
    background: #fff;
    box-shadow: 0 18px 48px rgba(37, 47, 74, 0.16);
}

/* 중첩 모달에서는 뒤쪽 화면을 비활성화하고 시각적 우선순위를 분명히 한다. */
.modal.admin-modal-suspended {
    pointer-events: none;
    user-select: none;
}

.modal.admin-modal-suspended .modal-dialog {
    opacity: 0.42;
    filter: grayscale(0.15) brightness(0.78);
    transform: scale(0.985);
    transition: opacity 0.15s ease, filter 0.15s ease, transform 0.15s ease;
}

.modal:not(.note-modal) .modal-content > form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.modal:not(.note-modal) .modal-header {
    min-height: 72px;
    padding: 20px 24px;
    border-bottom: 1px solid #eef0f4;
    background: #fff;
}

.modal:not(.note-modal) .modal-header .modal-title {
    min-width: 0;
    color: #181c32;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
}

.modal:not(.note-modal) .modal-header .modal-title small {
    margin-left: 4px;
    color: #98a2b3 !important;
    font-size: 0.82em;
    font-weight: 600;
}

/* 기존 ×, Bootstrap btn-close, KI 아이콘 방식을 하나의 확실한 X로 덮어쓴다. */
.modal:not(.note-modal) .modal-header [data-bs-dismiss="modal"] {
    display: inline-flex !important;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px !important;
    height: 38px !important;
    margin: 0 0 0 16px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #667085 !important;
    font-size: 0 !important;
    line-height: 1 !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

.modal:not(.note-modal) .modal-header [data-bs-dismiss="modal"] > * {
    display: none !important;
}

.modal:not(.note-modal) .modal-header [data-bs-dismiss="modal"]::before {
    content: "\00d7";
    display: block;
    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
}

.modal:not(.note-modal) .modal-header [data-bs-dismiss="modal"]:hover,
.modal:not(.note-modal) .modal-header [data-bs-dismiss="modal"]:focus-visible {
    background: #f5f6f8 !important;
    color: #181c32 !important;
}

.modal:not(.note-modal) .modal-body {
    min-height: 0;
    padding: 24px !important;
    overflow-y: auto;
    background: #fff;
}

.modal:not(.note-modal) .modal-body > h3,
.modal:not(.note-modal) .modal-body > h4,
.modal:not(.note-modal) .modal-body form > h3,
.modal:not(.note-modal) .modal-body form > h4 {
    color: #252f4a;
    font-weight: 700;
}

.modal:not(.note-modal) .modal-body .form-control,
.modal:not(.note-modal) .modal-body .form-select,
.modal:not(.note-modal) .modal-body .select2-selection,
.modal:not(.note-modal) .modal-body textarea {
    border-color: #dfe3eb;
    background-color: #fff;
}

.modal:not(.note-modal) .modal-body .form-control:focus,
.modal:not(.note-modal) .modal-body .form-select:focus,
.modal:not(.note-modal) .modal-body textarea:focus {
    border-color: #f06287;
    box-shadow: 0 0 0 3px rgba(240, 98, 135, 0.12);
}

.modal:not(.note-modal) .modal-footer {
    min-height: 72px;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid #eef0f4;
    background: #fff;
}

.modal:not(.note-modal) .modal-footer > * {
    margin: 0 !important;
}

.modal:not(.note-modal) .modal-footer [data-bs-dismiss="modal"] {
    min-width: 82px;
    border: 1px solid #dfe3eb;
    background: #fff;
    color: #4b5675;
}

.modal:not(.note-modal) .modal-footer [data-bs-dismiss="modal"]:hover,
.modal:not(.note-modal) .modal-footer [data-bs-dismiss="modal"]:focus-visible {
    border-color: #cfd5df;
    background: #f5f6f8;
    color: #252f4a;
}

/* 상세 모달: 값마다 상자를 만들지 않고 행 구분만 유지한다. */
.admin-modal-detail .admin-detail-grid-table {
    width: 100%;
    table-layout: fixed;
    border: 0 !important;
}

.admin-modal-detail .admin-detail-grid-table > tbody > tr > th,
.admin-modal-detail .admin-detail-grid-table > tbody > tr > td {
    padding: 14px 12px;
    border: 0 !important;
    border-bottom: 1px solid #eef0f4 !important;
    background: transparent !important;
    text-align: left !important;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.admin-modal-detail .admin-detail-grid-table > tbody > tr > th {
    color: #4b5675;
    font-weight: 700;
}

.admin-modal-detail .admin-detail-grid-table > tbody > tr:last-child > th,
.admin-modal-detail .admin-detail-grid-table > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}

@media (max-width: 767.98px) {
    .modal:not(.note-modal) .modal-header {
        min-height: 64px;
        padding: 16px 18px;
    }

    .modal:not(.note-modal) .modal-header .modal-title {
        font-size: 1.2rem;
    }

    .modal:not(.note-modal) .modal-body {
        padding: 20px 18px !important;
    }

    .modal:not(.note-modal) .modal-footer {
        min-height: 64px;
        flex-wrap: wrap;
        padding: 14px 18px;
    }

    .admin-modal-detail .admin-detail-grid-table,
    .admin-modal-detail .admin-detail-grid-table tbody,
    .admin-modal-detail .admin-detail-grid-table tr,
    .admin-modal-detail .admin-detail-grid-table th,
    .admin-modal-detail .admin-detail-grid-table td {
        display: block;
        width: 100% !important;
    }

    .admin-modal-detail .admin-detail-grid-table > tbody > tr {
        padding: 8px 0;
        border-bottom: 1px solid #eef0f4;
    }

    .admin-modal-detail .admin-detail-grid-table > tbody > tr > th,
    .admin-modal-detail .admin-detail-grid-table > tbody > tr > td {
        padding: 5px 0;
        border-bottom: 0 !important;
    }
}

.modal-header-sm {
    padding: 1rem 1rem !important;
}

.modal-footer-sm {
    padding: 1rem 1rem !important;
}

.btn-ssm {
    padding: calc(0.25rem + 1px) calc(1rem + 1px) !important;
}

.ck-body-wrapper{ z-index: 9999 !important;}

.select2-container--bootstrap5 .select2-dropdown .select2-results__options {
     max-height: 600px !important;
}

.fancybox-caption-wrap {
    text-align: center;
}
.w-30 {
    width: 30% !important;
}

.w-40 {
    width: 40% !important;
}

/* soming 브랜드 로고는 승인된 원본 비율을 유지한다. */
.soming-logo {
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.soming-logo-login {
    display: block;
    width: 220px;
    height: auto;
}

.soming-logo-sidebar {
    display: block;
    width: 148px;
    height: auto;
}

.soming-symbol-sidebar {
    width: 28px;
    height: 28px;
}

.soming-logo-mobile {
    display: block;
    width: 120px;
    height: auto;
}

.soming-logo-error {
    display: block;
    width: 176px;
    height: auto;
    margin: 0 auto 1.5rem;
}

/* 관리자 달력 공통 UI */
.admin-date-input {
    min-height: 46px;
    padding-right: 3.25rem !important;
    color: #4b5675;
    font-weight: 500;
    cursor: pointer;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2399A1B7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3Cpath d='m9 15 2 2 4-4'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 20px 20px !important;
}

.admin-date-group .admin-date-input {
    padding-right: 1rem !important;
    background-image: none !important;
}

.admin-date-trigger {
    display: inline-flex;
    flex: 0 0 46px;
    width: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: #99a1b7;
    background: #fff;
    border-color: #dbdfe9;
    cursor: pointer;
}

.admin-date-trigger i {
    font-size: 1.35rem !important;
    line-height: 1;
}

.admin-date-trigger:hover,
.admin-date-trigger:focus-visible {
    color: #f1416c;
    background: #fff5f8;
}

.flatpickr-calendar,
.datepicker.datepicker-dropdown {
    border: 1px solid #f1d8e1 !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 36px rgba(38, 45, 71, 0.16) !important;
    font-family: 'Noto Sans KR', sans-serif !important;
    overflow: hidden;
}

.flatpickr-calendar {
    width: 332px;
    padding: 10px;
}

.flatpickr-months {
    align-items: center;
    padding: 2px 4px 8px;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month,
.flatpickr-current-month input.cur-year,
.flatpickr-current-month .flatpickr-monthDropdown-months {
    color: #252f4a;
    font-size: 16px;
    font-weight: 700;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:hover,
.flatpickr-current-month input.cur-year:hover {
    background: #fff5f8;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    top: 10px;
    color: #78829d;
    fill: #78829d;
    border-radius: 8px;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    color: #f1416c;
    fill: #f1416c;
    background: #fff5f8;
}

.flatpickr-weekdays {
    margin-top: 4px;
}

span.flatpickr-weekday {
    color: #4b5675;
    font-size: 13px;
    font-weight: 700;
}

.flatpickr-days,
.dayContainer {
    width: 312px;
    min-width: 312px;
    max-width: 312px;
}

.flatpickr-day {
    flex: 0 0 40px;
    width: 40px;
    max-width: 40px;
    height: 40px;
    margin: 1px 2px;
    line-height: 38px;
    color: #78829d;
    box-sizing: border-box;
    border-radius: 50%;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
    color: #f1416c;
    background: #fff0f5;
    border-color: #fff0f5;
}

.flatpickr-day.today {
    color: #f1416c;
    font-weight: 700;
    background: #fff0f5;
    border-color: transparent;
}

.flatpickr-day.today:hover,
.flatpickr-day.today:focus {
    color: #e63e68;
    background: #ffe3ec;
    border-color: transparent;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    color: #fff;
    background: #f1416c;
    border-color: #f1416c;
    box-shadow: none;
}

.flatpickr-day.inRange {
    color: #e63e68;
    background: #fff0f5;
    border-color: #fff0f5;
    box-shadow: -5px 0 0 #fff0f5, 5px 0 0 #fff0f5;
}

.flatpickr-time {
    margin-top: 8px;
    border-top-color: #f1d8e1;
}

.admin-calendar-clear {
    width: calc(100% - 20px);
    margin: 8px 10px 2px;
    padding: 8px 12px;
    color: #78829d;
    font-size: 13px;
    font-weight: 600;
    background: #f9f9f9;
    border: 0;
    border-radius: 8px;
}

.admin-calendar-clear:hover,
.admin-calendar-clear:focus-visible {
    color: #f1416c;
    background: #fff0f5;
}

.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td span.active,
.datepicker table tr td span.active:hover {
    color: #fff !important;
    background: #f1416c !important;
}

.datepicker table tr td.today,
.datepicker table tr td.today:hover {
    color: #f1416c !important;
    background: #fff0f5 !important;
}
