.month-search-result {
    margin-top: 12px;
    background: #f9fafb;
    border: 1px dashed #e9f1fa;
    border-radius: 10px;
    padding: 12px;
    color: #5e676f;
    font-size: 1.25rem;
    /* min-height: 300px; */
}

#searchContent.is-open {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    max-height: none;
    overflow: visible;
}

.month-search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}
.month-search-sub {
    margin: 0;
    color: #6c7e73;
    font-size: 1.25rem;
}
.month-search-head h4 {
    margin: 0;
    font-size: 1.55rem;
    color: #22332a;
}
.month-search-form {
    display: grid;
    grid-template-columns: minmax(110px, 132px) minmax(0, 1fr) 112px;
    grid-template-areas: "area keyword button";
    align-items: center;
    gap: 10px;
}
.month-search-form select, .month-search-form input {
    width: 100%;
    height: 42px;
    border: 1px solid #d7e2db;
    border-radius: 10px;
    padding: 0 12px;
    background: #fff;
    color: #2f3f36;
}
.month-search-form select {
    grid-area: area;
    font-weight: 600;
    min-width: 0;
}
.month-search-form input {
    grid-area: keyword;
    min-width: 0;
}
.month-search-form button {
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: var(--theme);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
    grid-area: button;
}
.month-search-form select:focus, .month-search-form input:focus {
    outline: 0;
    border-color: var(--theme);
    box-shadow: 0 0 0 2px rgba(115, 183, 0, .14);
}


#searchContent {
    margin-top: 18px;
}

.month-table-wrap {
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.08),
            0 2px 8px rgba(0, 0, 0, 0.04);
}

.month-table-head {
    display: grid;
    grid-template-columns: 70px 1.6fr 1fr 1fr 1fr 1fr 1fr;
    gap: 0;
    background: color-mix(in srgb, var(--theme) 10%, white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-weight: 700;
    font-size: 14px;
    color: #333;
}

.month-row {
    display: grid;
    grid-template-columns: 70px 1.6fr 1fr 1fr 1fr 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.month-row:last-child {
    border-bottom: 0;
}



/* 홀수 번째 행 배경색 */
.month-row:not(.month-result-head):nth-child(odd) {
    /*background-color: #ffffff;*/

}

/* 짝수 번째 행 배경색 */
.month-row:not(.month-result-head):nth-child(even) {
    background-color: color-mix(in srgb, var(--theme) 8%, white); /* 연한 회색 계열 */
}

.month-row:hover:not(.month-result-head) {
    background-color: color-mix(in srgb, var(--theme) 30%, white);
}




.month-table-head .col,
.month-row .col {
    padding: 16px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 58px;
    word-break: keep-all;
}

.month-table-head .col {
    font-size: 13px;
}

.month-row .col {
    font-size: 14px;
    color: #2c2c2c;
}

.col-no {
    font-weight: 700;
    color: var(--theme);
}

.col-name {
    justify-content: flex-start !important;
    text-align: left !important;
    position: relative;
}
.space-name-addr {
    /*display: flex;*/
    flex-direction: column;
    /*justify-content: flex-start;*/
    align-items: flex-start !important;
    min-width: 0;

}
.month-space-name {
    font-weight: 600;
    line-height: 1.4;
}
.month-space-address {
    font-size: 11px;
    display: block;          /* 또는 inline-block */
    width: 100%;
    white-space: nowrap;     /* 줄바꿈 금지 */
    overflow: hidden;        /* 넘치는 내용 숨김 */
    text-overflow: ellipsis; /* ... 표시 */
}

.col-latest .competition-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    min-width: 72px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--theme) 12%, white);
    color: var(--theme);
    font-weight: 800;
    letter-spacing: -0.02em;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme) 25%, white);
}

.month-empty-state {
    padding: 28px 18px;
    text-align: center;
    border-radius: 18px;
    background: rgba(255,255,255,.95);
    color: #666;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.month-apply-btn {
    width: 100%;
    height: 38px;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    transition: transform .2s ease, opacity .2s ease;
}
.month-apply-btn.is-applied {
    background: #d52d59;
    border-color: #d6e0d9;
    color: #d5d5d5;
}
.month-apply-btn.is-active {
    cursor: pointer;
    background: var(--theme);
    color: #fff;
}

.month-apply-btn.is-active:hover {
    transform: translateY(-1px);
    opacity: .92;
}

.month-apply-disabled {
    color: #aaa;
    font-size: 14px;
}




/* 기본 뱃지 스타일 */
.term-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px; /* 아이콘과 텍스트 사이 간격 */
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    line-height: 1.2;
    position: absolute;
    left: -22px;
    top: -5px;
}

/* 주간 (주황/노랑 계열) */
.term-type-badge.badge-day {
    background-color: #fff3e0;
    color: #e65100;
    border: 1px solid #ffe0b2;
}

/* 야간 (남색/보라 계열) */
.term-type-badge.badge-night {
    background-color: #e8eaf6;
    color: #1a237e;
    border: 1px solid #c5cae9;
}

/* 전일 (초록/민트 계열) */
.term-type-badge.badge-allday {
    background-color: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}

/* 기본/예외 처리용 */
.term-type-badge.badge-default {
    background-color: #f5f5f5;
    color: #616161;
    border: 1px solid #e0e0e0;
}



.space-name-wrap {
    display: flex;
    gap: 5px;
}



/* 모바일 */
@media (max-width: 768px) {
    .term-type-badge {
        left: auto;
        right: 0;
    }
    .month-row .col.col-action {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .month-apply-btn {
        margin-top: 6px;
        width: 100%;
    }
    .month-table-wrap {
        border-radius: 18px;
    }

    .month-table-head {
        display: none;
    }

    .month-row {
        display: block;
        padding: 14px 14px 12px;
    }

    .month-row .col {
        display: grid;
        grid-template-columns: 110px 1fr;
        justify-content: start;
        align-items: center;
        text-align: left;
        min-height: auto;
        padding: 8px 0;
        border-bottom: 1px dashed rgba(0,0,0,.08);
        font-size: 14px;
    }

    .month-row .col:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .month-row .col::before {
        content: attr(data-label);
        font-weight: 700;
        color: #666;
        font-size: 13px;
        white-space: nowrap;
    }

    .col-no {
        display: none !important;
    }

    .col-name {
        justify-content: start !important;
    }

    .col-name .month-space-name {
        font-size: 15px;
    }
    .col-name .month-space-address {
        font-size: 11px;
    }

    .col-latest .competition-badge {
        width: fit-content;
        margin-left: 0;
    }
}
@media (max-width: 535px) {
    #monthSearchKeyword::placeholder {
        opacity: 0;
    }
}


.notice-card > .bl03 > li {
    text-indent: 0;
    padding-left: 0;
    display: flex;
    gap: 5px;
    align-items: center;
}
.notice-card > .bl03 > li > i {
    border-radius: 50%;
    background: transparent;
    color: #b8bec7;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

/* 레이아웃 정렬 */
/*.notice-chart-box {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: space-between;*/
/*    gap: 16px;*/
/*}*/

/*.notice-chart-box ul {*/
/*    margin: 0;*/
/*}*/

/* 버튼 기본 스타일 */
.btn-chart-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1px solid var(--orange);
    border-radius: 20px;
    background-color: var(--orange);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);

    align-self: center;
    width: 100%;
    max-width: 500px;
}

/* 아이콘 트랜지션 */
.btn-chart-view i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

/* 호버 & 클릭 효과 */
.btn-chart-view:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-chart-view:hover i {
    transform: scale(1.15);
}

.btn-chart-view:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
