/* main {
  display: flex;
  justify-content: center;
  align-items: center;
} */
* {
    --color-background: #ffffff;
}
.login-form {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    box-shadow: 0px 6px 18px 0px #39ccb533;
    width: 100%;
    max-width: 540px;
    height: fit-content;
    padding: 65px 90px;
    color: #999999;
    font-size: 16px;
}
@media screen and (max-width: 540px) {
    .login-form {
        max-width: unset;
        padding: 50px clamp(1rem, 5vw, 90px);
        border: 0;
        border-radius: unset;
        box-shadow: none;
    }
}
.login-form .login-input {
    width: 100%;
    display: flex;
    gap: 10px;
}
@media screen and (max-width: 540px) {
    .login-form .login-input {
        flex-direction: column;
    }
}
.login-form .login-input > .left {
    flex: 1 1 0;
    height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
}
.login-form .login-input > .right {
    width: 90px;
    height: 90px;
}
@media screen and (max-width: 540px) {
    .login-form .login-input > .left {
        gap: 10px;
        height: auto;
    }
    .login-form .login-input > .right {
        width: 100%;
        height: 50px;
    }
}

.login-form .input-box {
    width: 100%;
    height: 40px;
    display: block;
    position: relative;
}
@media screen and (max-width: 540px) {
    .login-form .input-box {
        height: 50px;
    }
}

.login-form .input-box input {
    width: 100%;
    height: 100%;
    padding: 5px 16px;
    border-radius: 5px;
    border: 1px solid #dddddd;
    outline-color: var(--color-green);
    font-size: 1rem;
}
.login-form .input-box input::placeholder {
    color: #aaaaaa;
    font-size: 16px;
}

.login-form .login-input .right > button {
    width: 100%;
    height: 100%;
    background-color: var(--color-green);
    color: white;
    border-radius: 8px;
    border: 0;
}

.login-form .link-bar {
    color: #666666;
}

.login-form .link-bar span {
    color: #dddddd;
    font-size: 12px;
    padding-inline: 10px;
}

.login-form .link-bar .clear-button:hover {
    color: var(--color-green);
}

.login-form .checkbox-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}
@media screen and (max-width: 540px) {
    .login-form .checkbox-bar {
        height: 50px;
    }
}

@media screen and (max-width: 540px) {
    .login-form .link-bar {
        width: 100%;
        text-align: center;
        word-break: keep-all;
    }
}
/* ============================= */
.agree-all-box {
    width: 100%;
    border: 1px solid #dddddd;
    padding: 10px;
}
.agree-input-box {
    width: 100%;
    padding: 60px 10px 20px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dddddd;
}
.agree-all-box > p,
.agree-input-box > p {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}
.agree-all-box > p > .custom-checkbox,
.agree-input-box > p > .custom-checkbox {
    width: 24px;
    height: 24px;
}
.agree-text-box {
    width: 100%;
    height: 320px;
    border-bottom: 1px solid #dddddd;
    background-color: #f3fefd;
    /* padding: 1rem; */
    overflow-y: auto;
}
.agree-text-box > h1 {
    padding: 0;
    font-size: 20px;
    color: black;
    margin-top: 20px;
}
.agree-text-box > h2 {
    padding: 0;
    font-size: 16px;
    color: black;
    margin-top: 20px;
}
.agree-text-box > p {
    font-size: 16px;
}

.post-result-info-box {
    width: 100%;
    border-top: 2px solid black;
    padding: 60px 60px 30px 60px;
    background-color: #f3fefd;
}
.post-result-info-box h2 {
    width: 100%;
    text-align: center;
    font-size: 30px;
    color: black;
    padding-bottom: 40px;
}
.post-result-info-box p {
    font-size: clamp(18px, 3vw, 20px);
    word-break: keep-all;
    padding-bottom: 40px;
}
.post-result-info-box p img {
    display: inline-block;
    width: 1em;
    height: 1.35em;
    object-fit: contain;
    margin-right: 0.5em;
}
.post-result-box {
    width: 100%;
    border-top: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;
    padding: 60px 60px 30px 60px;
}
@media screen and (max-width: 768px) {
    .post-result-box {
        padding: 60px 20px 30px 20px;
    }
}
.post-result-box h2 {
    width: 100%;
    text-align: center;
    font-size: 30px;
    color: black;
    padding-bottom: 40px;
}
.post-result-box > div {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.post-result-box > div > p {
    font-size: 20px;
    width: 280px;
    padding: 15px 0;
    text-align: left;
}
.post-result-box > div > p:first-child {
    width: 140px;
}
@media screen and (max-width: 768px) {
    .post-result-box > div > p {
        width: unset;
        flex: 1 1 0;
    }
    .post-result-box > div > p:first-child {
        width: 9ch;
        flex: unset;
    }
}
.center-button-bar {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 60px;
}
.post-table-row-box {
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    border-bottom: 1px solid #dddddd;
}
.post-table-row-box > p {
    font-size: 30px;
    color: black;
}
@media screen and (max-width: 1200px) {
    .post-table-column > p {
        font-size: clamp(14px, 1.67vw, 20px);
    }
}
@media screen and (max-width: 856px) {
    .post-table-row {
        grid-template-columns: 1fr;
        border-bottom: none;
    }
    .post-table-row.full {
        padding-left: 0;
    }
    .post-table-column {
        border-bottom: 1px solid #dddddd;
    }
}
@media screen and (max-width: 600px) {
    #floatToTopBtn {
        right: -200%;
    }
}
@media screen and (max-width: 519px) {
    label {
        font-size: clamp(0.825rem, 0.03vw, 20px);
    }
    .agree-input-box {
        padding: 20px 10px;
    }
    /* .post-table-column > p.titled {
    width: 100px;
  } */
    .post-table-column > p:nth-child(2) {
        /* width: calc(100% - 100px); */
    }
    .post-table-column > p.green {
        font-size: 1rem;
    }
    .button-bar {
        padding-top: 0;
        gap: 10px;
    }
    .sub-body .button-bar {
        flex-direction: column;
    }
    .sub-body .button-bar > .button {
        width: 100%;
    }
    .post-result-info-box {
        padding: 2rem;
    }
    .post-result-info-box h2 {
        font-size: clamp(1.5rem, 5.7vw, 30px);
        word-break: keep-all;
    }
}
/* ==== mypage ==== */
.mypage a.small,
.mypage button.small {
    font-size: 0.7em;
    padding: 0.5em 1em;
    border-radius: 2em;
    border-width: 1px;
    border-style: solid;
    border-color: transparent;
    background-color: transparent;
    color: inherit;
}
.mypage a.small:hover,
.mypage button.small:hover {
    color: white;
    background-color: #565f6f;
}
.mypage a.small.black,
.mypage button.small.black {
    color: #565f6f;
    background-color: transparent;
    border-color: #565f6f;
}
.mypage a.small.black:hover,
.mypage button.small.black:hover {    
    color: white;
    background-color: #565f6f;    
}
.mypage a.small.green,
.mypage button.small.green {
    color: white;
    background-color: var(--color-green);
    border-color: var(--color-green);
}
.mypage a.small.green:hover,
.mypage button.small.green:hover {
    color: var(--color-green);
    background-color: transparent;
}
.mypage a.small.red,
.mypage button.small.red {
    color: white;
    background-color: var(--color-red);
    border-color: var(--color-red);
}
.mypage a.small.red:hover,
.mypage button.small.red:hover {
    color: var(--color-red);
    background-color: transparent;
}
.mypage.a.small.black.clear,
.mypage.button.small.black.clear {
    background-color: transparent;
    color: #565f6f;
}
.mypage.a.small.black.clear:hover,
.mypage.button.small.black.clear:hover {
    background-color: #565f6f;
    color: white;
}
.mypage a.small.green.clear,
.mypage button.small.green.clear {
    background-color: transparent;
    color: var(--color-green);
}
.mypage a.small.green.clear:hover,
.mypage button.small.green.clear:hover {
    background-color: var(--color-green);
    color: white;
}
.mypage a.small.red.clear,
.mypage button.small.red.clear {
    background-color: transparent;
    color: var(--color-red);
}
.mypage a.small.red.clear:hover,
.mypage button.small.red.clear:hover {
    background-color: var(--color-red);
    color: white;
}
.mypage-table {
    width: 100%;
    max-width: 1200px;
    border-top: 2px solid black;
    margin-top: 140px;
}
@media screen and (max-width: 599px) {
    .mypage-table {
        margin-top: 50px;
        margin-bottom: 50px;
    }
}
.mypage-table-row {
    padding: 40px 20px;
    border-bottom: 1px solid #dddddd;
}
.mypage-table-row:last-child {
    border-bottom: 2px solid black;
}
.mypage-table-row > .circle-progress-bar {
    padding-block: 0;
}
.mypage-table-member-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: auto;
}
@media screen and (max-width: 845px) {
    .mypage-table-member-info {
        flex-direction: column;
        row-gap: 0.5rem;
    }
}
.mypage-table-member-info > p {
    font-size: clamp(0.625rem, 3.33vw, 20px);
}
.mypage-table-member-info > p:first-child {
    /* font-size: clamp(20px, 28px, 28px); */
    font-size: 28px;
}
@media screen and (max-width: 845px) {
    .mypage-table-member-info > p {
        align-self: flex-end;
    }
    .mypage-table-member-info > p:first-child {
        align-self: flex-start;
        font-size: 18px;
    }
}

.mypage-table-step-message {
    width: 100%;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.mypage-table-row.col-2 {
    display: grid;
    grid-template-columns: 260px 1fr;
}
@media screen and (max-width: 599px) {
    .mypage-table-row.col-2 {
        grid-template-columns: 1fr;
    }
    .mypage-table-row {
        padding: 1rem 0px;
    }
}
.mypage-table-col {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: clamp(0.75rem, 3.3vw, 18px);
    flex-wrap: wrap;
    position: relative;
    padding-right: 24px;
}
.mypage-table-col.titled {
    font-size: clamp(1rem, 4.4vw, 24px);
    color: black;
}
@media screen and (max-width: 599px) {
    .mypage-table-col.titled {
        padding-bottom: 0.5rem;
    }
}

.mypage-table-col .col-end {
    position: absolute;
    right: 0;
}
.mypage-table-col .custom-checkbox.bigbox {
    width: 24px;
    height: 24px;
    margin-right: 5px;
}

.mypage-table-row.text-box {
    width: 100%;
    height: fit-content;
    max-height: 100vh;
    overflow: hidden;
    transition: max-height 200ms ease;
    transform-origin: top;
    padding: 0;
}
.mypage-table-row.text-box.folded {
    max-height: 0px;
    border-bottom: none;
}
.mypage-table-text-box {
    padding: 40px 40px;
    background-color: #f3fefd;
    color: #666666;
    height: fit-content;
    width: 100%;
}
.mypage-table-text-box p {
    font-size: clamp(0.825rem, 2.67vw, 1rem);
    line-height: 2rem;
    color: inherit;
}
.mypage-table-text-box p.heading {
    font-size: clamp(1rem, 3.2vw, 20px);
    line-height: 40px;
    color: black;
    margin-top: 1rem;
}
@media screen and (max-width: 599px) {
    .mypage-table-text-box {
        padding: 20px;
    }
    .mypage-table-text-box p {
        line-height: 1.5rem;
    }
}
.mypage-table-text-box p.heading:first-child {
    margin-top: 0;
}

.mypage .mypage-search-bar {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    width: 100%;
    height: auto;
    margin-top: 60px;
    padding-right: 60px;
}
.mypage .mypage-search-bar > input {
    width: calc(100% - 110px);
    max-width: 350px;
    height: 50px;
    border: 1px solid #dddddd;
    background-color: transparent;
    border-right: none;
    outline: none;
    padding: 0 1rem;
    font-size: 1rem;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
.mypage .mypage-search-bar.no-filter {
    padding-right: 0;
    padding-bottom: 10px;
}
.mypage .mypage-search-bar.no-filter > input {
    width: calc(100% - 50px);
}
@media screen and (max-width: 599px) {
    .mypage .mypage-search-bar > input {
        max-width: unset;
        flex: 1 1 0;
    }
}
.mypage .mypage-search-bar > input:focus-visible {
    border-width: 2px;
    border-color: var(--color-green);
}
.mypage .mypage-search-bar > button.search-button {
    width: 50px;
    height: 50px;
    border: none;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background-color: var(--color-green);
    background-image: url(../images/icon_search.png);
    background-repeat: no-repeat;
    background-position: center center;
}
.mypage .mypage-search-bar .search-filter-radio-bar {
    position: absolute;
    width: fit-content;
    max-width: 0px;
    height: 100%;
    top: 0;
    right: 50px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--color-background);
    border: 1px solid #dddddd;
    border-right: none;
    transition: max-width 200ms ease;
}
.mypage .mypage-search-bar .search-filter-radio-bar.show {
    max-width: 300px;
}
.mypage .mypage-search-bar button.search-filter-button {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--color-green);
    background-image: url(../images/icon_filter.png);
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 4px;
}
.mypage .mypage-search-bar .search-filter-radio-bar > input[type="radio"] {
    display: none;
}
.mypage .mypage-search-bar .search-filter-radio-bar > .filter-radio-label {
    font-size: 1rem;
    width: 90px;
    height: 18px;
    border-right: 1px solid #dddddd;
    text-align: center;
}
.mypage
    .mypage-search-bar
    .search-filter-radio-bar
    > .filter-radio-label.checked {
    color: var(--color-green);
}
.mypage
    .mypage-search-bar
    .search-filter-radio-bar
    > .filter-radio-label:last-of-type {
    border-right: none;
}

/* */

.qa-list-box {
    width: 100%;
    height: auto;
    border-top: 2px solid black;
}
.qa-item {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #dddddd;
    color: black;
    font-size: 18px;
}
.qa-q-line {
    cursor: pointer;
    display: grid;
    grid-template-columns: 80px 1fr 50px;
}
.qa-q-line > div {
    width: 100%;
    padding: 18px;
}
@media screen and (max-width: 599px) {
    .qa-q-line {
        grid-template-columns: 30px 1fr 20px;
        font-size: 1rem;
    }
    .qa-q-line > div {
        padding: 14px 0;
    }
    .qa-q-line > div:nth-child(1) {
        padding: 14px 8px;
    }
}
.qa-q-line > div.qa-q-line-title {
    display: grid;
    grid-template-columns: 1fr 180px;
}
.qa-q-line > div.qa-q-line-title > div:nth-child(2) {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
}
@media screen and (max-width: 599px) {
    .qa-q-line > div.qa-q-line-title {
        display: block;
    }
    .qa-q-line > div.qa-q-line-title > div:nth-child(2) {
        font-size: 0.625rem;
        justify-content: flex-start;
        padding-top: 1em;
    }
}
.qa-q-line > div.icon-box {
    width: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    background-image: url(../images/icon_arrow_down.png);
}
@media screen and (max-width: 599px) {
    .qa-q-line > div.icon-box {
        background-size: 14px 7.7px;
    }
}
.qa-q-line > div:nth-child(1) {
    text-align: center;
}
.qa-q-line:hover > div:nth-child(2) {
    color: var(--color-green);
}
.qa-a-box {
    width: 100%;
    height: auto;
    max-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 80px 1fr;
    background-color: #f8f8f8;
    transition: max-height 300ms ease;
}
.qa-a-box hr {
    margin-block: 1rem;
}

.qa-a-box > div {
    width: 100%;
    padding: 18px;
}
@media screen and (max-width: 599px) {
    .qa-a-box {
        grid-template-columns: 30px 1fr 20px;
        font-size: 1rem;
    }
    .qa-a-box > div {
        padding: 14px 0;
    }
    .qa-a-box > div:nth-child(1) {
        padding: 14px 8px;
    }
}
.qa-a-box > div:nth-child(1) {
    text-align: center;
}
.qa-q-line.opened + .qa-a-box {
    max-height: 400px;
    overflow: auto;
}
.qa-q-line.opened > div.icon-box {
    background-image: url(../images/icon_arrow_up.png);
}
.qa-q-line.opened > div:nth-child(2) {
    color: var(--color-green);
}

.paging-bar {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
    font-size: 1rem;
}
.paging-bar .clear-button {
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.page-input {
    width: 62px;
    height: 40px;
    text-align: center;
    color: var(--color-green);
    border: 1px solid var(--color-green);
    border-radius: 5px;
    background-color: transparent;
    font-size: 1rem;
}

.quit-dialog-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
}
.quit-dialog-wrapper.show {
    display: flex;
}
.quit-result-dialog,
.quit-dialog {
    display: none;
    position: relative;
    width: calc(100% - 2rem);
    max-width: 500px;
    height: auto;
    min-height: 200px;
    max-height: 80vh;
    background-image: url(../images/quit-popup-header-bg.png);
    background-color: var(--color-background);
    background-repeat: no-repeat;
    background-position: top left;
    background-size: 100% auto;
}
.quit-result-dialog.show,
.quit-dialog.show {
    display: block;
}

.quit-dialog-header {
    width: 100%;
    aspect-ratio: 500/123;
    background-image: url(../images/logo-white.png);
    background-repeat: no-repeat;
    background-position: left 10% center;
    background-size: auto 60%;
}
.quit-dialog-body {
    padding-top: clamp(1rem, 12vw, 60px);
    padding-bottom: clamp(3rem, 36vw, 150px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}
.quit-dialog-body h1 {
    font-size: clamp(1.1rem, 5vw, 24px);
    margin-bottom: 1rem;
}
.quit-dialog-body p {
    font-size: clamp(0.75rem, 3.2vw, 1rem);
}
.quit-dialog-button-bar {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding-bottom: clamp(1rem, 8vw, 40px);
}
@media screen and (max-width: 490px) {
    .quit-dialog-button-bar {
        flex-direction: column;
        padding-inline: 1rem;
    }
    .quit-dialog-button-bar .button {
        width: 100%;
        max-width: unset;
        height: 40px;
        font-size: 1rem;
        border-radius: 5px;
    }
}

/* 지원금 지급신청 및 결과보고서 */
.device-report-table {
    width: 100%;
    border-top: 2px solid black;
    color: #666666;
}
.device-report-table-row,
.device-report-table-header {
    width: 100%;
    display: grid;
    grid-template-columns: 80px 80px 220px 1fr 240px;
    border-bottom: 1px solid #dddddd;
    padding-block: 1rem;
    font-size: 1rem;
}
.device-report-table-header {
    background-color: #f8f8f8;
    color: black;
}
.device-report-table-row .device-report-table-opt,
.device-report-table-header .device-report-table-opt {
    display: grid;
    grid-template-columns: 140px 100px;
}
.device-report-table-row p,
.device-report-table-header p {
    width: 100%;
    text-align: center;
}
.device-report-table-row p.align-left {
    text-align: left;
    font-size: 20px;
    padding-inline: 1rem;
    color: #000;
}
.device-report-table-row {
    color: #999999;
    background-color: var(--color-background);
    cursor: pointer;
}
.device-report-table-row:hover {
    background-color: #f3fefd;
}
.device-report-table-row:hover p.align-left {
    color: var(--color-green);
}
@media screen and (max-width: 599px) {
    .device-report-table-header {
        display: none;
    }
    .device-report-table-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .device-report-table-row p {
        font-size: clamp(14px, 2.7vw, 1rem);
        text-align: left;
    }
    .device-report-table-row p.align-left {
        text-align: left;
        font-size: clamp(1rem, 3.3vw, 20px);
        padding-inline: 0;
    }
    .device-report-table-row .device-report-table-opt {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 1rem;
    }
    .device-report-table-row .device-report-table-opt p {
        width: fit-content;
    }
    .device-report-table-row .device-report-table-opt p::before {
        content: attr(data-cell);
        margin-inline-end: 5px;
    }
    .device-report-table-row .cell::before {
        content: attr(data-cell);
        margin-inline-end: 5px;
        color: #999999;
    }
    .device-report-table-row > p:first-child  {
        display: none;
    }
    .device-report-table .device-report-table-total {
        display: grid;
        grid-template-columns: 1fr;        
        text-align: right;
        gap: 0.5rem;
    }
    .button-bar {
        padding-top: 50px;
        /* gap: 10px; */
    }
    
}
