/* pub CSS: 프로젝트에 없는 선택자 및 반응형 스타일 보완 */
.contents.mypage,
.contents.member {
    padding-bottom: 80px;
}

.page-location {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 18px 0 10px;
}

.page-location li {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.page-location li + li::before {
    content: '\f105';
    font-family: 'Font Awesome 7 Free';
    font-weight: 900;
    font-size: 11px;
    color: #aaa;
    margin: 0 9px;
}

.page-location li:first-child a {
    width: 13px;
    height: 13px;
    background: url(../images/common/home.svg) no-repeat center / cover;
    display: block;
    text-indent: -99999px;
}

.page-location li:last-child {
    color: #294d89;
    font-weight: 500;
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 10px 0 24px;
}

.page-title h4 {
    font-weight: 800;
}

.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 38px;
    padding: 0 18px;
    border-radius: 5px;
    border: 1px solid #294d89;
    background: #294d89;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-sm:hover {
    background: #1f3c6d;
}

.btn-sm.line {
    background: #fff;
    color: #294d89;
}

.btn-sm.line:hover {
    background: #eef2fa;
}

.btn-sm.gray {
    background: #8a8f99;
    border-color: #8a8f99;
}

.btn-sm.gray:hover {
    background: #737882;
}

.btn-tbl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    height: 28px;
    padding: 0 12px;
    border-radius: 4px;
    border: none;
    background: #7b8089;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
}

.btn-tbl:hover {
    background: #5f646d;
}

.btn-tbl.navy {
    background: #294d89;
}

.btn-tbl.navy:hover {
    background: #1f3c6d;
}

.btn-tbl:disabled,
.btn-tbl.is-disabled {
    background: #d5d8de;
    color: #fff;
    cursor: default;
    pointer-events: none;
}

.btn-area {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
}

.btn-area .btn-sm {
    min-width: 100px;
    height: 44px;
}

.guide-box {
    background: #f6f7f9;
    border-radius: 8px;
    padding: 18px 24px;
    font-size: 0.875rem;
    color: #555;
    margin-bottom: 24px;
}

.guide-box > p {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-box > p i {
    color: #888;
}

.guide-box.line {
    background: #fff;
    border: 1px solid #e1e4ea;
}

.dot-list > li {
    position: relative;
    padding-left: 12px;
    line-height: 1.9;
}

.dot-list > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.9em;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #555;
}

.dot-list > li b {
    color: #222;
    margin-right: 6px;
}

.txt-point {
    color: #e78d22;
}

.txt-red {
    color: #e53935;
}

.req-guide {
    text-align: right;
    font-size: 0.813rem;
    color: #555;
    margin: -8px 0 8px;
}

.req-guide::before,
.req-mark {
    content: '*';
    color: #e53935;
    margin-right: 3px;
}

.tab-line {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    border-bottom: 1px solid #e4e8f0;
    margin-bottom: 20px;
}

.tab-line a {
    position: relative;
    padding: 6px 2px 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #777;
}

.tab-line a em {
    font-style: normal;
    font-weight: 500;
    color: #999;
    margin-left: 4px;
}

.tab-line a.on {
    color: #222;
}

.tab-line a.on::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: #294d89;
}

.tab-line a:hover {
    color: #294d89;
}

.list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.list-toolbar .left,
.list-toolbar .right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 280px;
    height: 36px;
    padding: 0 40px 0 14px;
    border: 1px solid #ccd4e8;
    border-radius: 5px;
    font-size: 0.875rem;
}

.search-box input:focus {
    outline: none;
    border-color: #294d89;
}

.search-box button {
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 36px;
    border: none;
    background: none;
    color: #333;
}

.list-infobar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 40px;
    font-size: 0.875rem;
    color: #555;
}

.list-infobar div.left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.list-infobar em {
    font-style: normal;
    font-weight: 600;
    color: #294d89;
}

.chk-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.chk-label input,
.frm-chk input {
    width: 16px;
    height: 16px;
    accent-color: #294d89;
    cursor: pointer;
}

.btn-txt-del {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: none;
    background: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: #222;
}

.btn-txt-del i {
    color: #888;
}

.empty-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 200px;
    background: #f6f7f9;
    border-top: 1px solid #e4e8f0;
    border-bottom: 1px solid #e4e8f0;
    font-size: 0.938rem;
    color: #666;
}

.empty-box i {
    color: #999;
}

.tbl-wrap {
    width: 100%;
    overflow-x: auto;
}

.tbl-list {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid #294d89;
    font-size: 0.875rem;
    text-align: center;
}

.tbl-list th {
    background: #f5f7fb;
    font-weight: 600;
    color: #333;
    padding: 12px 10px;
    border-bottom: 1px solid #dfe3ec;
    border-left: 1px solid #e8ebf1;
    white-space: nowrap;
}

.tbl-list td {
    padding: 11px 10px;
    border-bottom: 1px solid #e8ebf1;
    border-left: 1px solid #f0f2f6;
    color: #444;
}

.tbl-list th:first-child,
.tbl-list td:first-child {
    border-left: none;
}

.tbl-list td.ta-l {
    text-align: left;
}

.tbl-list tbody tr:hover td {
    background: #f9fbfe;
}

.tbl-list td a:not([class]):hover {
    color: #294d89;
    text-decoration: underline;
}

.tbl-list .ico-file {
    color: #294d89;
}

.btn-row-del {
    width: 28px;
    height: 28px;
    border: 1px solid #dfe3ec;
    border-radius: 4px;
    background: #fff;
    color: #666;
}

.btn-row-del:hover {
    border-color: #e53935;
    color: #e53935;
}

.state-badge {
    display: inline-block;
    min-width: 48px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #eef1f6;
    color: #666;
}

.state-badge.is-ok {
    background: #e2f6f0;
    color: #1d9b7c;
}

.state-badge.is-wait {
    background: #fff2e2;
    color: #d17a12;
}

.state-badge.is-reject {
    background: #fde8e8;
    color: #d93636;
}

.tbl-view {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid #294d89;
    font-size: 0.875rem;
}

.tbl-view th {
    width: 160px;
    background: #f5f7fb;
    font-weight: 600;
    color: #333;
    text-align: left;
    padding: 11px 16px;
    border-bottom: 1px solid #e4e8f0;
}

.tbl-view td {
    padding: 11px 16px;
    border-bottom: 1px solid #e4e8f0;
    color: #555;
    word-break: break-all;
}

.tbl-view td a {
    color: #294d89;
    text-decoration: underline;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal[hidden] {
    display: none;
}

.modal__dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal__box {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.modal__box.lg {
    max-width: 860px;
}

.modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    background: #294d89;
    color: #fff;
}

.modal__head h5 {
    font-size: 1.1rem;
    font-weight: 700;
}

.modal__close {
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    color: #fff;
    font-size: 1.2rem;
}

.modal__body {
    padding: 22px;
    overflow-y: auto;
}

.modal__foot {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 22px 22px;
}

.modal__foot .btn-sm {
    min-width: 100px;
    height: 42px;
}

body.is-modal-open {
    overflow: hidden;
}

.frm.label-lg .frm__label {
    width: 170px;
}

.frm__label.align-top {
    display: block;
}

.frm-chk {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 18px;
    font-size: 0.875rem;
    color: #333;
    cursor: pointer;
}

.frm-chk input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #294d89;
}

.chk-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 0;
}

.chk-grid .frm-chk {
    min-width: 150px;
}

.frm-textarea-wrap {
    width: 100%;
}

.frm-textarea-wrap .frm-textarea {
    width: 100%;
}

.frm-help {
    width: 100%;
    font-size: 0.8rem;
    color: #2a78b5;
}

.frm-help.gray {
    color: #777;
}

.frm-file-single {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    flex-wrap: wrap;
}

.terms-box {
    height: 200px;
    overflow-y: auto;
    padding: 20px 24px;
    border: 1px solid #e1e4ea;
    border-radius: 6px;
    background: #fafbfc;
    font-size: 0.875rem;
    color: #555;
    line-height: 1.8;
}

.terms-box strong {
    display: block;
    color: #222;
    margin-top: 12px;
}

.terms-box strong:first-child {
    margin-top: 0;
}

.terms-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 24px 0 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #222;
}

.agree-row {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 14px 0 30px;
    font-size: 0.938rem;
    font-weight: 500;
}

@media (max-width: 768px) {

    .list-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .list-toolbar .right .search-box,
.list-toolbar .right .search-box input {
        width: 100%;
    }

    .frm.label-lg .frm__label {
        width: 100%;
    }

    .tbl-view th {
        width: 110px;
        padding: 10px 12px;
    }

    .tbl-view td {
        padding: 10px 12px;
    }

    .tbl-list {
        min-width: 720px;
    }
}

@media (max-width: 640px) {

    .list-infobar {
        flex-direction: column;
        align-items: flex-start;
        padding: 6px 0;
    }

    .page-title {
        flex-wrap: wrap;
    }

    .tab-line {
        gap: 20px;
    }

    .chk-grid .frm-chk {
        min-width: 50%;
        margin-right: 0;
    }

    .modal__body {
        padding: 16px;
    }

    .agree-row {
        justify-content: flex-start;
        flex-direction: column;
    }
}
