.junsung-sales {
    color: #fff;
}

.junsung-sales__header {
    margin-bottom: 42px;
}

.junsung-sales__eyebrow {
    margin: 0 0 12px;
    color: #1693f4;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .12em;
}

.junsung-sales__header h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.junsung-sales__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 26px;
}

.junsung-sales__year {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: #d7d7d7;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.junsung-sales__year:hover,
.junsung-sales__year:focus-visible,
.junsung-sales__year.is-active {
    border-color: #1693f4;
    background: #1693f4;
    color: #fff;
}

.junsung-sales__table-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background: #202020;
    -webkit-overflow-scrolling: touch;
}

.junsung-sales-table {
    width: 100%;
    min-width: 760px;
    border-spacing: 0;
    border-collapse: collapse;
    color: #e7e7e7;
    table-layout: fixed;
}

.junsung-sales-table caption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

.junsung-sales-table__year {
    width: 11%;
}

.junsung-sales-table__client {
    width: 21%;
}

.junsung-sales-table__site {
    width: 29%;
}

.junsung-sales-table__item {
    width: 22%;
}

.junsung-sales-table__note {
    width: 17%;
}

.junsung-sales-table th,
.junsung-sales-table td {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    line-height: 1.55;
    text-align: left;
    overflow-wrap: anywhere;
}

.junsung-sales-table th {
    border-bottom-color: rgba(22, 147, 244, .55);
    background: rgba(22, 147, 244, .1);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.junsung-sales-table tbody tr {
    transition: background-color .2s ease;
}

.junsung-sales-table tbody tr:hover {
    background: rgba(255, 255, 255, .035);
}

.junsung-sales-table tbody tr:last-child td {
    border-bottom: 0;
}

.junsung-sales-table td:first-child {
    color: #1693f4;
    font-weight: 700;
}

.junsung-sales-table__admin {
    display: flex;
    gap: 10px;
    margin-top: 9px;
    font-size: 13px;
}

.junsung-sales-table__admin a {
    color: #8dcaff;
    text-decoration: none;
}

.junsung-sales-table__admin .junsung-sales-table__delete {
    color: #ffb1b1;
}

.junsung-sales-table__admin a:hover,
.junsung-sales-table__admin a:focus-visible {
    text-decoration: underline;
}

.junsung-sales-table td.junsung-sales-table__empty {
    padding: 52px 24px;
    color: #a7a7a7;
    text-align: center;
}

.junsung-sales__tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 34px;
}

.junsung-sales-search {
    display: flex;
    max-width: 520px;
    flex: 1 1 520px;
}

.junsung-sales-search input,
.junsung-sales-search button,
.junsung-sales-form input[type="text"] {
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: #202020;
    color: #fff;
    font: inherit;
}

.junsung-sales-search input {
    min-width: 0;
    flex: 1;
    padding: 0 16px;
    border-radius: 10px 0 0 10px;
}

.junsung-sales-search button {
    padding: 0 20px;
    border-left: 0;
    border-radius: 0 10px 10px 0;
    background: #1693f4;
    font-weight: 700;
    cursor: pointer;
}

.junsung-sales-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.junsung-sales-button:hover,
.junsung-sales-button:focus-visible {
    border-color: #1693f4;
}

.junsung-sales-button--primary {
    border-color: #1693f4;
    background: #1693f4;
}

.junsung-sales-button--danger {
    border-color: rgba(255, 103, 103, .6);
    color: #ffb1b1;
}

.junsung-sales-view__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 38px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.junsung-sales__year:focus-visible,
.junsung-sales__table-scroll:focus-visible,
.junsung-sales-search input:focus-visible,
.junsung-sales-search button:focus-visible,
.junsung-sales-button:focus-visible,
.junsung-sales-form input:focus-visible {
    outline: 2px solid #1693f4;
    outline-offset: 3px;
}

.junsung-sales-pagination {
    margin-top: 46px;
    text-align: center;
}

.junsung-sales-pagination a,
.junsung-sales-pagination strong {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    margin: 0 3px;
    border-radius: 50%;
    color: #d6d6d6;
    text-decoration: none;
}

.junsung-sales-pagination strong {
    background: #1693f4;
    color: #fff;
}

.junsung-sales-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    background: #202020;
}

.junsung-sales-form__field label {
    display: block;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 700;
}

.junsung-sales-form__field label span {
    color: #1693f4;
    font-size: 13px;
}

.junsung-sales-form input[type="text"] {
    width: 100%;
    padding: 0 16px;
    border-radius: 10px;
}

.junsung-sales-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 38px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.junsung-sales-form__actions button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

@media (max-width: 640px) {
    .junsung-sales__header {
        margin-bottom: 28px;
    }

    .junsung-sales__filters {
        gap: 7px;
        margin-bottom: 20px;
    }

    .junsung-sales__year {
        min-height: 38px;
        padding: 0 14px;
        font-size: 13px;
    }

    .junsung-sales__table-scroll {
        border-radius: 12px;
    }

    .junsung-sales-table th,
    .junsung-sales-table td {
        padding: 17px 18px;
    }

    .junsung-sales__tools {
        display: block;
        margin-top: 26px;
    }

    .junsung-sales-search {
        max-width: none;
    }

    .junsung-sales__tools > .junsung-sales-button {
        width: 100%;
        margin-top: 12px;
    }

    .junsung-sales-form {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 22px;
    }

    .junsung-sales-form__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 30px;
    }

    .junsung-sales-view__actions {
        flex-wrap: wrap;
        margin-top: 30px;
    }
}

/* 밝은 게시판 화면 */
.junsung-sales { color: #20242a; }
.junsung-sales__header h1,
.junsung-sales-view__header h1 { color: #20242a; }
.junsung-sales__year {
    border-color: #cfd8df;
    color: #4f5b66;
}
.junsung-sales__table-scroll {
    border-color: #dce3e8;
    background: #fff;
}
.junsung-sales-table { color: #303840; }
.junsung-sales-table th,
.junsung-sales-table td { border-bottom-color: #e3e8ec; }
.junsung-sales-table th {
    background: #edf7ff;
    color: #20242a;
}
.junsung-sales-table tbody tr:hover { background: #f5faff; }
.junsung-sales-table td.junsung-sales-table__empty { color: #69747d; }
.junsung-sales-search input,
.junsung-sales-form input[type="text"],
.junsung-sales-form textarea,
.junsung-sales-form select {
    border-color: #cfd8df;
    background: #fff;
    color: #20242a;
}
.junsung-sales-button {
    border-color: #c4d0d8;
    background: #fff;
    color: #20242a;
}
.junsung-sales-button--primary,
.junsung-sales-search button {
    border-color: #1693f4;
    background: #1693f4;
    color: #fff;
}
.junsung-sales-button--danger { color: #ad3f3f; }
.junsung-sales-form__field label { color: #20242a; }

.junsung-sales-form {
    border-color: #dce3e8;
    background: #fff;
}

.junsung-sales-form__actions {
    border-top-color: #e3e8ec;
}

.junsung-sales__eyebrow {
    margin: 0 0 26px;
    color: #20242a;
    font-family: steb, "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.4;
}

.junsung-sales-write .junsung-sales__header h1,
.junsung-sales-view .junsung-sales__header h1 {
    font-family: stm, "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .junsung-sales__eyebrow {
        margin-bottom: 18px;
        font-size: 28px;
    }

    .junsung-sales-write .junsung-sales__header h1,
    .junsung-sales-view .junsung-sales__header h1 {
        font-size: 22px;
    }
}

/* 원본 웹의 #sub3_2 .pad > .title 규칙 */
.junsung-sales {
    font-family: stm, "Noto Sans KR", "Malgun Gothic", sans-serif;
}

@media (min-width: 901px) {
    .junsung-sales__header {
        position: relative;
        padding-top: 36px;
        margin-bottom: 80px;
    }

    .junsung-sales__header h1 {
        color: #20242a;
        font-family: steb, "Noto Sans KR", "Malgun Gothic", sans-serif;
        font-size: 36px;
        font-weight: 400;
        line-height: 1.4;
    }

    .junsung-sales__path {
        position: absolute;
        right: 0;
        bottom: 4px;
        margin: 0;
        color: #666;
        font-size: 14px;
    }

    .junsung-sales__path span { color: #1693f4; }
}

@media (prefers-reduced-motion: reduce) {
    .junsung-sales__year,
    .junsung-sales-table tbody tr {
        transition: none;
    }
}

/* Small white labels need a darker brand-blue surface for WCAG contrast. */
.junsung-sales-search button {
    border-color: #1373c7;
    background: #1373c7;
}
