#currentSituation {
    min-height: 480px;
}

.current-situation-panel {
    /*background: #f1f3f8;*/
    /*border: 1px solid #e6eaf4;*/
    border-radius: 18px;
    padding: 14px;
    background:#f7f9fc;

    border:1px solid #dfe8f4;

    box-shadow:0 8px 20px rgba(20,40,80,.05);
}

.current-situation-panel.is-expand-animate {
    transform-origin: top center;
    animation: currentSituationExpand .45s ease-out both;
}

@keyframes currentSituationExpand {
    0% {
        opacity: 0;
        transform: scaleY(.86) translateY(-6px);
    }
    100% {
        opacity: 1;
        transform: scaleY(1) translateY(0);
    }
}

.current-situation-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.current-situation-tabs-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    padding-bottom: 7px;
    margin-bottom: 7px;

    border-bottom: 1px solid #dbe4ef;
}

.cs-tab-btn {
    border: 1px solid #d5e3d8;
    background: #fff;
    color: #3a4b42;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: all .2s ease;
}

.cs-tab-btn:hover {
    border-color: var(--theme);
    color: var(--theme);
}

.cs-tab-btn.is-active {
    background: var(--theme);
    border-color: var(--theme);
    color: #fff;
    font-weight: 600;
}

.current-situation-status-select-wrapper {
}


.current-situation-grid-container {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;

    background:#edf2f8;

    border-radius:16px;

    padding:14px;
}

.current-situation-grid-section {
    background:#fff;
    border:1px solid #e5edf7;
    border-radius:16px;
    padding:14px;
}

.cs-section-title {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;

    margin:0;

    text-align:center;

    padding:10px 16px;

    background:#eef5ff;

    color:#184c94;

    border-radius:10px;

    font-size:1.15rem;

    font-weight:700;

    letter-spacing:.02em;
}

.cs-section-title::before,
.cs-section-title::after{
    content:"";
    flex:1;
    height:1px;
    background:#d7e3f0;
}
.current-situation-grid {
    padding: 5px 0;
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 10px;
    overflow-y: auto;
    overflow-x: auto;
    max-height: 550px;
    scrollbar-width: thin;
    scrollbar-color: var(--theme) rgb(184 210 255 / 0.2);
}


.current-situation-card {
    background: #fff;
    border: 1px solid #e5eee7;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .04);
    min-width: 0;
}

.current-situation-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.current-situation-name {
    margin: 0;
    color: #1f2d26;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.35;
    word-break: keep-all;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.current-situation-address {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #6a7c71;
    font-size: 1.1rem;
    line-height: 1.45;
    max-width: 100%;
    min-width: 0;
    /*overflow: hidden;*/
    cursor: pointer;
}

.address-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.cs-status-btn {
    border: 0;
    border-radius: 999px;
    min-width: 74px;
    padding: 7px 10px;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1;
}

.cs-status-btn.is-open {
    background: rgb(0 79 183 / 0.16);
    color: #002569;
    transition: all .2s ease;
}

.cs-status-btn.is-closed {
    background: #eceff2;
    color: #747e87;
    /*cursor: not-allowed !important;*/
}

/*.cs-status-btn.is-closed:hover {*/
/*    background: #eceff2;*/
/*    color: #747e87;*/
/*}*/
.cs-status-btn.is-open:hover {
    background: rgb(0 79 183 / 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 79, 183, 0.2);
}


@media (max-width: 850px) {
    .current-situation-grid-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .current-situation-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

.current-situation {
    width: 100%;
}

/*.address-icon {*/
/*    margin-right: 3px;*/
/*}*/

.receivable-result {
    margin-top: 12px;
    background: #fff;
    border: 1px solid #e5eee7;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .04);
}

.receivable-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef2f0;
}

.receivable-result-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #1f2d26;
    font-size: 1.25rem;
    font-weight: 600;
}

.receivable-result-label {
    color: #6a7c71;
    font-size: 1.05rem;
    font-weight: 500;
}

.receivable-result-count {
    color: #4a5b51;
    font-size: 1.1rem;
}

.receivable-result-count strong {
    color: var(--theme);
    font-weight: 700;
}

.receivable-result-table {
    margin-top: 10px;
    overflow-x: auto;
}

.receivable-result-row {
    display: grid;
    grid-template-columns: minmax(40px, 40px) minmax(160px, 1.4fr) minmax(160px, 1.1fr) minmax(120px, 1fr) minmax(110px, .9fr) minmax(110px, .9fr) minmax(110px, .9fr);
    align-items: center;
    gap: 8px;
    padding: 10px;
    min-width: 950px;
    background: #fff;
    transition: background-color .2s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.receivable-result-row:not(.is-grouped) {
    border-radius: 10px;
    border-top: 1px solid #eef2f0;
    border-bottom: 1px solid #eef2f0;
    margin-top: 1px;
    margin-bottom: 1px;
}

.receivable-result-row:hover {
    background: #f9fbfd;
}

.receivable-result-row.is-selected {
    background: rgba(var(--theme-rgb, 0, 102, 204), 0.28);
}

.receivable-checkbox-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    height: 100%;
    min-height: 44px;
}

.receivable-checkbox {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    cursor: pointer;
    accent-color: var(--theme);
}

.receivable-result-row.is-grouped {
    background: #fafbfc;
}

.receivable-result-row.is-grouped:hover {
    background: #f5f8fa;
}

.receivable-result-row.is-grouped.is-selected {
    background: rgba(var(--theme-rgb, 0, 102, 204), 0.28);
}

.receivable-result-row.is-grouped.group-start {
    border-radius: 10px 10px 0 0;
    border-top: 1px solid #e5eee7;
    padding: 10px;
    margin-top: 2px;
}

.receivable-result-row.is-grouped:not(.group-start):not(.group-end) {
    border-top: 0;
    border-bottom: 0;
    padding: 10px;
    margin: 0;
}

.receivable-result-row.is-grouped.group-end {
    border-radius: 0 0 10px 10px;
    border-top: 0;
    border-bottom: 1px solid #e5eee7;
    padding: 10px;
    /*margin: 0 0 12px 0;*/
    margin-bottom: 2px;
}

.receivable-result-header {
    border-top: 0;
    font-weight: 600;
    color: #2f3d35;
    background: #f7faf8;
    padding: 10px;
    border-radius: 10px;
    grid-template-columns: minmax(40px, 40px) minmax(160px, 1.4fr) minmax(160px, 1.1fr) minmax(120px, 1fr) minmax(110px, .9fr) minmax(110px, .9fr) minmax(110px, .9fr);
}

.receivable-result-body .receivable-result-row:last-child {
    border-bottom: 0;
}

.receivable-result-row .total {
    color: var(--theme);
    font-weight: 700;
}

.receivable-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.receivable-payment-wrap {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eef2f0;
    height: 50px;
}

.select-all-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #d5e3d8;
    border-radius: 8px;
    background: #fff;
    transition: all .2s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.select-all-wrapper:hover {
    border-color: var(--theme);
    background: rgba(var(--theme-rgb, 0, 102, 204), 0.05);
}

.select-all-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--theme);
    margin: 0;
}

.select-all-wrapper label {
    cursor: pointer;
    color: #3a4b42;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    user-select: none;
}

.payment-summary {
    display: flex;
    align-items: center;
    gap: 20px;

}

.payment-info {
    color: #4a5b51;
    font-size: 1.1rem;
}

.payment-info strong {
    color: var(--theme);
    font-weight: 700;
    font-size: 1.15rem;
}

.receivable-payment-btn {
    border: 0;
    border-radius: 8px;
    background: var(--theme);
    color: #fff;
    padding: 10px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}

.receivable-payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.receivable-payment-btn:active {
    transform: translateY(0);
}

.receivable-page-btn {
    border: 1px solid #d5e3d8;
    background: #fff;
    color: #3a4b42;
    border-radius: 8px;
    padding: 6px 10px;
    min-width: 36px;
    font-size: 1.05rem;
    line-height: 1.1;
    cursor: pointer;
    transition: all .2s ease;
}

.receivable-page-btn:hover {
    border-color: var(--theme);
    color: var(--theme);
}

.receivable-page-btn.is-active {
    background: var(--theme);
    border-color: var(--theme);
    color: #fff;
    font-weight: 600;
}

.receivable-page-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pretty-line-break {
    word-break: keep-all;
    overflow-wrap: break-word;
}

.text-number {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 800px) {

}

@media (max-width: 900px) {
    .receivable-result-head {
        flex-direction: column;
        align-items: flex-start;
    }
}


.receivable-result-header > div:nth-child(5),
.receivable-result-header > div:nth-child(6),
.receivable-result-header > div:nth-child(7) {
    text-align: right;
}

.payment-btn {
    text-align: center;
}

.current-situation-wrap::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 6px;

    background: linear-gradient(
            90deg,
            var(--theme),
            color-mix(in srgb, var(--theme) 60%, white)
    );
}
.my-search-wrap{

    padding:18px 22px;

    border-radius:18px;

    background:
            color-mix(in srgb,var(--theme) 4%,white);

    border:1px solid
    color-mix(in srgb,var(--theme) 10%,white);
}

.current-situation-wrap {
    gap: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 25px;
    /*background: color-mix(in srgb, var(--theme) 10%, white);*/
    background: #fff;
    /*box-shadow: 0 4px 10px rgba(0, 0, 0, .05);*/
    /*box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.15);*/
    /*border: 1px solid color-mix(in srgb, var(--theme) 8%, white);*/

    box-shadow: 0 4px 12px rgba(0, 0, 0, .05),
    0 16px 35px rgba(20, 124, 246, .08);
    padding: 30px 40px;
    position: relative;
    overflow: hidden;

    /*margin-top:-20px;*/
    /*background:*/
    /*        linear-gradient(*/
    /*                to bottom,*/
    /*                rgba(255,255,255,.94),*/
    /*                #fff 25%*/
    /*        );*/

    /*border-radius:35px 35px 25px 25px;*/

    /*box-shadow:*/
    /*        0 0 30px rgba(0,0,0,.08),*/
    /*        0 15px 35px rgba(0,0,0,.12);*/

    /*border:1px solid rgba(255,255,255,.7);*/
}

/*.current-situation-wrap.before::before{*/
/*    content:"";*/
/*    position:absolute;*/
/*    left:0;*/
/*    right:0;*/
/*    top:-30px;*/
/*    height:60px;*/

/*    background:rgba(255,255,255,.6);*/
/*    filter:blur(12px);*/
/*    z-index:-1;*/
/*}*/
.current-situation-wrap > h3 {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    flex-wrap: wrap;
}

/*.current-situation-wrap > h3::before {*/
/*    content: "";*/
/*    width: 6px;*/
/*    height: 32px;*/
/*    border-radius: 999px;*/
/*    background: var(--theme);*/
/*}*/

.current-situation-wrap > h3 > strong {
    font-weight: 900;
}

@media (max-width: 720px) {
    .current-situation-wrap {
        padding: 24px 10px;
    }

    .receivable-result-table {
        overflow-x: visible;
    }

    .receivable-result-header {
        display: none;
    }

    .receivable-result-row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 12px;
        border: 1px solid #eef2f0;
        border-radius: 12px;
        background: #fff;
        min-width: 0;
        box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
    }

    .receivable-result-row.is-grouped {
        background: #fafbfc;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 10px 12px;
    }

    .receivable-result-row.is-grouped.group-start {
        border-radius: 12px 12px 0 0;
        border: 1px solid #e5eee7;
        border-bottom: 0;
    }

    .receivable-result-row.is-grouped:not(.group-start):not(.group-end) {
        border: 1px solid #e5eee7;
        border-top: 0;
        border-bottom: 0;
        border-radius: 0;
    }

    .receivable-result-row.is-grouped.group-end {
        border: 1px solid #e5eee7;
        border-top: 0;
        border-radius: 0 0 12px 12px;
    }

    .receivable-result-body {
        display: grid;
        /*gap: 10px;*/
    }


    .receivable-result-row > div:not(.receivable-checkbox-cell) {
        display: grid;
        grid-template-columns: 92px 1fr;
        align-items: start;
        gap: 8px;
        text-align: left;
    }

    .receivable-result-row > div:not(.receivable-checkbox-cell)::before {
        color: #6a7c71;
        font-size: 1.05rem;
        font-weight: 600;
    }

    .receivable-result-row > div:nth-child(2)::before {
        content: "주차장명";
    }

    .receivable-result-row > div:nth-child(3)::before {
        content: "입/출차";
    }

    .receivable-result-row > div:nth-child(4)::before {
        content: "할인유형";
    }

    .receivable-result-row > div:nth-child(5)::before {
        content: "미납";
    }

    .receivable-result-row > div:nth-child(6)::before {
        content: "가산";
    }

    .receivable-result-row > div:nth-child(7)::before {
        content: "총금액";
    }

    .receivable-result-row .text-number {
        text-align: left;
    }

    .receivable-checkbox-cell {
        grid-column: 1 / -1;
        justify-self: flex-start;
        padding: 0;
        margin-bottom: 8px;
        height: auto;
        min-height: auto;
    }

    .payment-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }

    .receivable-payment-wrap {
        flex-direction: column;
        justify-content: flex-start;
        gap: 12px;
        height: auto;
    }


    .receivable-payment-btn {
        width: 100%;
    }

    .select-all-wrapper {
        margin-left: auto;
    }
}

#receivableWrap {
    margin-top: 10px;
}

/*TODo메인 바탕색*/
.main-content, body {
    background: color-mix(in srgb, var(--theme) 5%, white);
}

/*월정기유형 뱃지*/
/* 제목과 뱃지를 한 줄에 깔끔하게 정렬 */
.current-situation-name {
    display: flex;
    align-items: center;
    gap: 8px; /* 이름과 뱃지 사이 간격 */
    margin: 0;
}

/* 기본 뱃지 스타일 */
.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;
}

/* 주간 (주황/노랑 계열) */
.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;
}