@charset "UTF-8";

/* =========================================================
   ORYX ART
   공통 홈페이지 / 계약고객 작품등록
========================================================= */


/* =========================================================
   01. HEADER / NAVIGATION
========================================================= */

.art-nav {
    gap: 18px;
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 14px;
}

.art-nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.art-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;

    border: 1px solid #d8c7b8;
    border-radius: 5px;
    background: #fff;

    color: #a84200 !important;
    font: 15px/1.5 Arial, "Malgun Gothic", sans-serif;
    text-decoration: none;
    cursor: pointer;
}


/* =========================================================
   02. CUSTOMER ACCESS
========================================================= */

.art-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding-top: 35px;
    padding-bottom: 35px;

    background: #fff5e9;
    border-top: 1px solid #f3dcc5;
    border-bottom: 1px solid #f3dcc5;
}

.art-entry h2 {
    margin: 10px 0;
    font-size: 27px;
}

.art-entry p {
    margin-bottom: 0;
    color: #666;
}


/* =========================================================
   03. SERVICES
========================================================= */

.art-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.art-services article {
    padding: 25px 0;
    border-top: 1px solid #ddd;
}

.art-services h3 {
    margin: 20px 0 12px;
    font-size: 22px;
}

.art-services p {
    color: #666;
    line-height: 1.8;
    word-break: keep-all;
}


/* =========================================================
   04. ORYX ART WEBSITE
========================================================= */

.staff .oryx-site-title {
    color: #ff3c00;
    font-weight: 800;
}


/* =========================================================
   05. FOOTER
========================================================= */

.art-footer {
    padding-top: 30px;
    padding-bottom: 35px;

    border-top: 1px solid #ddd;

    color: #666;
    font-size: 14px;
}

.art-footer strong {
    color: #292929;
    font-size: 18px;
}


/* =========================================================
   06. CUSTOMER PAGE
========================================================= */

.art-customer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 45px 24px 80px;
}

.art-narrow {
    max-width: 640px;
}

.art-customer h1 {
    margin: 12px 0;
    font-size: 30px;
}

.art-customer > p {
    color: #666;
}


/* =========================================================
   07. PAGE HEADING
========================================================= */

.art-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.art-heading p {
    color: #666;
}


/* =========================================================
   08. STEPS
========================================================= */

.art-steps {
    display: flex;
    gap: 20px;

    margin: 24px 0;
    padding: 0;

    border-bottom: 1px solid #ddd;
    list-style: none;
}

.art-steps li {
    padding: 12px 0;

    color: #777;
    font-size: 14px;
}

.art-steps .on {
    color: #a84200;
    border-bottom: 3px solid #c65308;
    font-weight: bold;
}


/* =========================================================
   09. NOTICE
========================================================= */

.art-notice {
    margin-bottom: 25px;
    padding: 14px 16px;

    background: #fff5e9;
    border: 1px solid #f0d9c4;
    border-radius: 6px;

    font-size: 14px;
}


/* =========================================================
   10. FORM FIELD
========================================================= */

.art-field {
    min-width: 0;
    margin-bottom: 18px;
}

.art-field label {
    display: block;

    font-size: 15px;
    font-weight: bold;
}

.art-field input,
.art-field select,
.art-field textarea {
    display: block;

    width: 100%;
    min-width: 0;
    min-height: 48px;

    margin-top: 8px;
    padding: 11px 12px;

    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;

    color: #292929;
    font: 16px/1.5 Arial, "Malgun Gothic", sans-serif;
}

.art-field input:focus-visible,
.art-field select:focus-visible,
.art-field textarea:focus-visible {
    outline: 2px solid #c65308;
    outline-offset: 2px;
}

.art-field small {
    display: block;

    margin-top: 7px;

    color: #777;
    font-size: 14px;
}

.art-field span {
    color: #a84200;
}

.art-full {
    width: 100%;
}


/* =========================================================
   11. DEMO / HELP
========================================================= */

.art-demo {
    margin-top: 30px;
    padding-top: 24px;

    border-top: 1px solid #ddd;
}

.art-demo p,
.art-help {
    color: #777;
    font-size: 14px;
}


/* =========================================================
   12. CARD
========================================================= */

.art-card {
    overflow: hidden;

    margin: 24px 0;

    border: 1px solid #ddd;
    border-radius: 8px;
}

.art-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;

    padding: 15px 20px;

    background: #faf7f3;
}

.art-card-head h2,
.art-card-head h3 {
    margin: 0;
    font-size: 20px;
}

.art-card-body {
    padding: 22px;
}


/* =========================================================
   13. FORM GRID
========================================================= */

.art-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}

.art-wide {
    grid-column: 1 / -1;
}


/* =========================================================
   14. ARTWORK CARD
========================================================= */

.art-work {
    margin: 20px 0;
    padding-top: 10px;

    border-top: 1px solid #ddd;
}

.art-work .art-card-head {
    padding: 10px 0 18px;
    background: #fff;
}

.art-remove {
    min-height: 44px;
    padding: 9px 12px;

    border: 1px solid #e2c4c4;
    border-radius: 5px;
    background: #fff;

    color: #a44444;
    font-size: 14px;
    cursor: pointer;
}


/* =========================================================
   15. PHOTO PREVIEW
========================================================= */

.art-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.art-previews img {
    width: 90px;
    height: 90px;

    object-fit: cover;

    border: 1px solid #ddd;
    border-radius: 5px;
}

.photo-message {
    color: #777;
    font-size: 14px;
}


/* =========================================================
   16. FORM ACTIONS
========================================================= */

.art-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    margin-top: 30px;
    padding-top: 20px;

    border-top: 1px solid #ddd;
}

.art-actions span {
    font-size: 15px;
}

#formMessage,
#verifyMessage {
    color: #a84200;
    font-size: 15px;
}


/* =========================================================
   17. 작품 목록 / 한 점씩 입력하는 편집창
========================================================= */

.item-heading,
.item-section-title,
.item-finish,
.item-row-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.item-heading p {
    color: #666;
}


/* 작품 등록 현황 */

.item-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;

    margin: 26px 0;
}

.item-summary > div {
    padding: 17px;

    border: 1px solid #ddd;
    border-radius: 7px;
}

.item-summary span {
    display: block;

    color: #666;
    font-size: 14px;
}

.item-summary strong {
    font-size: 23px;
}


/* 작품 섹션 제목 */

.item-section-title h2 {
    font-size: 22px;
}


/* 작가 등록폼 */

.item-artist-form {
    margin: 20px 0;
    padding: 20px;

    background: #fff8f0;
    border: 1px solid #ecd5bc;
    border-radius: 7px;
}


/* 행 버튼 */

.item-row-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}


/* 등록된 데이터 없음 */

.item-empty {
    padding: 45px 20px;

    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 7px;

    text-align: center;
}

.item-empty p {
    color: #777;
}


/* =========================================================
   18. ARTIST
========================================================= */

.item-artist {
    overflow: hidden;

    margin: 18px 0;

    border: 1px solid #ddd;
    border-radius: 8px;
}

.item-artist-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    padding: 18px 20px;

    background: #faf7f3;
}

.item-artist-head h3 {
    margin: 0;
    font-size: 20px;
}

.item-artist-head p {
    margin: 4px 0 0;

    color: #666;
    font-size: 14px;
}

.item-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.item-small {
    min-height: 40px;
    padding: 8px 12px;

    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;

    color: #555;
    font: 14px/1.5 Arial, "Malgun Gothic", sans-serif;
    cursor: pointer;
}

.item-small.danger {
    color: #a33;
}


/* =========================================================
   19. ARTWORK LIST ROW
========================================================= */

.item-work-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;

    padding: 18px 20px;

    border-top: 1px solid #eee;
}

.item-thumb {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 72px;
    height: 72px;

    background: #f5f5f5;
    border-radius: 5px;

    color: #888;
    font-size: 12px;

    object-fit: cover;
}

.item-work-row h4 {
    margin: 0 0 6px;

    font-size: 17px;
    overflow-wrap: anywhere;
}

.item-work-row p {
    margin: 3px 0;

    color: #666;
    font-size: 14px;
}

.item-state {
    display: inline-block;

    padding: 3px 7px;

    background: #fff1d9;
    border-radius: 4px;

    color: #996010;
    font-size: 12px;
}

.item-add-work {
    margin: 16px 20px;
}

.item-no-work {
    padding: 16px 20px;

    color: #777;
    font-size: 15px;
}


/* =========================================================
   20. FINISH
========================================================= */

.item-finish {
    margin-top: 30px;
    padding-top: 24px;

    border-top: 1px solid #ddd;
}

.item-finish p {
    margin: 5px 0;

    color: #666;
    font-size: 14px;
}

.item-message {
    min-height: 1em;

    color: #a84200;
    font-size: 14px;
    overflow-wrap: anywhere;
}


/* =========================================================
   21. MODAL / OVERLAY
========================================================= */

.item-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background: rgba(0, 0, 0, 0.6);
}

.item-dialog {
    width: 100%;
    max-width: 850px;

    max-height: 90vh;
    max-height: 90dvh;

    overflow-y: auto;
    overscroll-behavior: contain;

    background: #fff;
    border-radius: 10px;
}


/* Modal header */

.item-dialog-head {
    position: sticky;
    top: 0;
    z-index: 2;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;

    padding: 20px 24px;

    background: #fff;
    border-bottom: 1px solid #ddd;
}

.item-dialog-head span {
    color: #777;
    font-size: 14px;
}

.item-dialog-head h2 {
    margin: 4px 0 0;
    font-size: 24px;
}


/* Modal body */

.item-dialog-body {
    padding: 24px;
}


/* Modal footer */

.item-dialog-foot {
    position: sticky;
    bottom: 0;
    z-index: 2;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;

    padding: 16px 24px;

    background: #fff;
    border-top: 1px solid #ddd;
}

.item-dialog-foot small {
    color: #777;
    font-size: 13px;
}


/* =========================================================
   22. PHOTO UPLOAD
========================================================= */

.item-photo-section {
    margin: 0 0 24px;
    padding: 18px 0;

    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.item-photo-section h3 {
    margin: 0 0 8px;
}

.item-photo-section p {
    color: #666;
    font-size: 14px;
}

.item-photo-picker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;

    margin: 16px 0;
}

.item-photo-picker input {
    max-width: 100%;
    font-size: 14px;
}

.item-photo-picker span {
    font-size: 14px;
}

.item-photo-picker label {
    cursor: pointer;
}


/* 업로드 사진 한 행 */

.item-photo {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;

    padding: 12px 0;

    border-bottom: 1px solid #eee;
}

.item-photo img,
.item-photo-placeholder {
    width: 58px;
    height: 58px;

    background: #f3f3f3;
    border-radius: 4px;

    object-fit: cover;
}

.item-photo-title {
    font-size: 14px;
    overflow-wrap: anywhere;
}

.item-photo-meta {
    display: block;

    margin-top: 4px;

    color: #777;
    font-size: 13px;
}

.item-photo-status {
    color: #92600a;
    font-size: 13px;
}

.item-photo-status.error {
    color: #b22;
}

.item-photo-status.ready {
    color: #287743;
}

.item-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;

    max-width: 150px;
}

.item-photo-hint {
    line-height: 1.7;
}


/* =========================================================
   23. DIALOG FORM
========================================================= */

.item-dialog button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.item-dialog .art-field input,
.item-dialog .art-field textarea,
.item-dialog .art-field select {
    font-size: 16px;
}


/* =========================================================
   24. TABLET / MOBILE
========================================================= */

@media (max-width: 767px) {

    /* Header */

    .art-nav-actions {
        gap: 8px;
    }

    .art-nav-actions .button,
    .art-nav-actions .art-secondary {
        padding: 10px;
        font-size: 14px;
    }


    /* Customer access */

    .art-entry {
        flex-direction: column;
        align-items: flex-start;
    }

    .art-entry h2 {
        font-size: 23px;
    }


    /* Services */

    .art-services {
        grid-template-columns: 1fr;
        gap: 8px;
    }


    /* Customer page */

    .art-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .art-customer {
        padding: 28px 16px 55px;
    }

    .art-customer h1 {
        font-size: 26px;
    }


    /* Form */

    .art-grid {
        grid-template-columns: 1fr;
    }

    .art-card-body {
        padding: 16px;
    }

    .art-card-head {
        padding: 14px 16px;
    }

    .art-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .art-steps {
        gap: 14px;
    }

    .route {
        letter-spacing: 0;
        font-size: 11px;
    }


    /* Item heading */

    .item-heading,
    .item-finish {
        flex-direction: column;
        align-items: stretch;
    }

    .item-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    /* Artwork row */

    .item-work-row {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 12px;

        padding: 15px;
    }

    .item-thumb {
        width: 58px;
        height: 58px;
    }

    .item-work-row > .item-tools {
        grid-column: 2;
    }


    /* Modal - PWA / mobile full screen */

    .item-overlay {
        align-items: stretch;
        padding: 0;
    }

    .item-dialog {
        max-height: 100vh;
        max-height: 100dvh;

        border-radius: 0;
    }

    .item-dialog-head {
        padding: 14px 16px;
    }

    .item-dialog-body {
        padding: 18px 16px;
    }

    .item-dialog-foot {
        flex-wrap: wrap;

        padding: 12px 16px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    .item-dialog-foot .item-row-actions {
        width: 100%;
    }

    .item-dialog-foot .button {
        flex: 1;
    }


    /* Photo */

    .item-photo {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .item-photo img,
    .item-photo-placeholder {
        width: 48px;
        height: 48px;
    }

    .item-photo-actions {
        grid-column: 2;
        max-width: none;
    }


    /* Artist */

    .item-artist-head {
        padding: 15px;
    }

    .item-section-title {
        flex-wrap: wrap;
    }
}


/* =========================================================
   25. SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .art-nav {
        gap: 10px;
    }

    .art-nav-actions {
        width: 100%;
    }

    .art-nav-actions .button,
    .art-nav-actions .art-secondary {
        flex: 1;
        min-width: 0;
    }

    .item-summary {
        gap: 8px;
    }

    .item-summary > div {
        padding: 14px;
    }

    .item-summary strong {
        font-size: 20px;
    }
}