﻿/* 자연가 관리자: 공개 홈페이지의 녹색 계열을 유지합니다. */
* { box-sizing: border-box; }
body { margin: 0; background: #f3f5f1; color: #243b2d; font: 14px "Malgun Gothic", sans-serif; }
a { color: #24543e; text-decoration: none; }
header { background: #183f32; color: white; padding: 20px 5%; display: flex; gap: 30px; align-items: center; }
header a { color: white; }
header nav { display: flex; gap: 24px; flex: 1; }
header form { margin: 0; }
.brand { font-size: 26px; font-weight: bold; }
.brand small { font-size: 12px; margin-left: 10px; }
main { max-width: 1240px; margin: 40px auto; padding: 0 28px; }
h1 { font-size: 28px; margin: 0 0 24px; }
h2 { font-size: 20px; border-bottom: 1px solid #ced8ca; padding-bottom: 15px; margin: 20px 0; }
h3 { font-size: 17px; margin: 0 0 10px; }
p { line-height: 1.8; color: #637360; }
label { display: block; font-weight: bold; margin: 12px 0 8px; }
input, textarea { width: 100%; padding: 12px; border: 1px solid #c7d1c2; background: white; border-radius: 4px; font: inherit; }
input:disabled { background: #edf1ea; }
button, .button { padding: 12px 23px; background: #24543e; color: white; border: 0; border-radius: 4px; font: inherit; cursor: pointer; }
button:hover, .button:hover { background: #326d51; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #7ca96b; outline-offset: 3px; }
.secondary { background: #365f4b; }
.auth { min-height: 100vh; display: grid; place-items: center; }
.auth-card { width: calc(100% - 32px); max-width: 470px; padding: 42px; margin: 30px auto; background: white; border-radius: 12px; }
.auth-card button { width: 100%; margin-top: 26px; }
.eyebrow { font-size: 11px; letter-spacing: 4px; color: #7a9270; }
.back, .setup-link { display: block; text-align: center; margin-top: 22px; }
.validation { color: #a42d28; }
.validation-summary-valid { display: none; }
.dashboard { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.tile { display: flex; min-height: 150px; align-items: center; margin: 20px 0; background: white; border: 1px solid #d9e1d5; }
.tile .icon { align-self: stretch; display: grid; place-items: center; width: 120px; flex-shrink: 0; font-size: 28px; background: #e8eee2; color: #729264; }
.tile > div { padding: 22px; }
.tile p { margin: 0; font-size: 13px; }
.pending { color: #768172; }
.pending small { font-size: 11px; color: #819078; }
.notice { padding: 20px; background: #e8eee2; border-radius: 5px; }
.panel { background: white; padding: 30px; border: 1px solid #d9e1d5; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 35px; }
.actions { display: flex; gap: 25px; align-items: center; margin-top: 25px; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.search { display: flex; gap: 14px; align-items: center; margin: 25px 0; }
.search label { white-space: nowrap; margin: 0; }
.search input { max-width: 400px; }
.table-wrap { overflow-x: auto; background: white; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid #e1e7dc; }
th { background: #e8eee2; }
.empty { text-align: center; padding: 50px; color: #74816e; }
/* 모바일에서도 메뉴와 입력 폼을 사용할 수 있도록 한 열로 전환합니다. */
@media (max-width: 750px) {
    header { flex-wrap: wrap; gap: 15px; }
    header nav { flex-basis: 100%; order: 3; gap: 18px; }
    main { padding: 0 16px; }
    .dashboard, .fields { grid-template-columns: 1fr; }
    .tile .icon { width: 70px; }
    .panel { padding: 22px; }
    .auth-card { padding: 30px; }
}
.check input { width:auto; margin-right:10px; } header nav { flex-wrap:wrap; }/* 참고 화면의 좌우 구성: 기본/가격/배송 정보와 이미지/상세설명을 분리합니다. */
.product-editor { display:grid; grid-template-columns:1.15fr 1fr; gap:20px; }
.product-editor .panel { margin-bottom:18px; padding:20px; }
.product-editor h2 { margin:0 0 15px; }
.product-editor input,.product-editor textarea { padding:9px; }
.product-editor .fields { gap:7px 22px; }
.image-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.image-preview { aspect-ratio:1; border:1px solid #ced8ca; background:#f3f6ef; display:grid; place-items:center; color:#7b8f71; text-align:center; }
.image-preview img { width:100%; height:100%; object-fit:contain; }
.image-grid input { max-width:100%; font-size:12px; }
.editor-actions { position:sticky; bottom:0; display:flex; justify-content:flex-end; align-items:center; gap:25px; padding:15px; background:#f3f5f1; border-top:1px solid #d9e1d5; }
.sr-only { position:absolute; left:-10000px; }
@media(max-width:950px) { .product-editor { grid-template-columns:1fr; } }
/* 폼 간격과 표 너비를 통일해 버튼·입력란 및 좁은 화면의 겹침을 방지합니다. */
.panel > label, fieldset > label { display:block; margin:16px 0; }
select { min-height:42px; padding:10px 12px; border:1px solid #c7d1c2; border-radius:4px; font:inherit; max-width:100%; }
button,.button { margin:4px 0; }
.table-wrap { width:100%; min-width:0; overflow-x:auto; margin:18px 0; }
th,td { vertical-align:middle; }
th { white-space:nowrap; }
.entry-grid { align-items:start; }
.entry-grid .table-wrap table { min-width:700px; }
.entry-grid td:first-child { min-width:170px; max-width:230px; white-space:normal; overflow-wrap:anywhere; }
.entry-grid td { white-space:nowrap; }
.entry-grid #add-product,.entry-grid #open-payment { margin:14px 0 0; }
.entry-grid #product-quantity { max-width:140px; display:block; }
dialog#payment-dialog { width:820px; max-height:90vh; overflow:auto; }
#payment-editor { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 24px; }
#payment-editor h2,#payment-editor p { grid-column:1/-1; margin:6px 0; }
#payment-editor label { display:grid; gap:8px; margin:0; align-content:start; }
.check input[type=checkbox] { width:auto; }
fieldset { margin:20px 0; border:1px solid #c7d1c2; padding:16px; }
@media(max-width:700px){ #payment-editor{grid-template-columns:1fr;} header nav{gap:12px;} main{padding:20px 14px;} }

.entry-grid > .panel { min-width:0; width:100%; }

/* 고객지원 공통 레이아웃: 긴 문의와 모바일 입력란이 영역을 넘지 않게 합니다. */
.community-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.community-text{white-space:pre-wrap;overflow-wrap:anywhere}.community-detail{padding:16px 0;border-bottom:1px solid #d6dfd2}.community-detail summary{cursor:pointer;font-weight:600}.community-cards .panel{min-width:0}.panel form button{margin:12px 0}.table-wrap{max-width:100%;overflow-x:auto}header nav{min-width:0;flex-wrap:wrap}textarea{max-width:100%;box-sizing:border-box}@media(max-width:700px){.community-cards{grid-template-columns:1fr}}

/* 정산·기초데이터 화면: 구역 경계와 입력 간격을 일정하게 유지합니다. */
main > .panel, main > form > .panel { margin-bottom:20px; }
.panel form > label:not(.check) { display:block; margin:16px 0; }

/* 검색 항목은 각각 독립된 폭을 가지며 좁은 화면에서는 다음 줄로 배치합니다. */
.search { flex-wrap:wrap; align-items:flex-end; gap:16px; }
.search > label { display:flex; flex-direction:column; gap:8px; flex:0 1 220px; min-width:0; white-space:normal; }
.search input,.search select { display:block; width:100%; max-width:100%; min-width:0; }
.search > button,.search > a { flex:0 0 auto; margin:0; }
.date-search { padding:18px; border:1px solid #ced8ca; border-radius:6px; background:white; }
.date-search > label { flex-basis:180px; }
@media(max-width:600px){.search > label{flex:1 1 100%;}.search > button{width:100%;}.heading{flex-wrap:wrap;gap:14px;}}

#payout-list input[type=checkbox]{width:20px;height:20px;min-width:20px;cursor:pointer;}
#payout-bulk .actions{display:flex;flex-wrap:wrap;gap:12px;}
#payout-bulk [hidden]{display:none;}

.shipping-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.shipping-metrics strong{display:block;font-size:24px;margin-top:10px}.shipping-table{min-width:1000px}.shipping-table td{vertical-align:top;min-width:110px}.shipping-table td:last-child{min-width:240px;max-width:300px}.shipping-table input{margin:6px 0}.shipping-table details p{max-width:260px;overflow-wrap:anywhere}@media(max-width:600px){.shipping-metrics{grid-template-columns:1fr}.shipping-metrics .panel{padding:16px}}

/* 출고 표의 입력칸은 셀 너비 안에서 세로로 배치하고 버튼 간격을 고정합니다. */
.shipping-table { table-layout:fixed; width:100%; min-width:1080px; white-space:normal; line-height:1.6; }
.shipping-table th,.shipping-table td { min-width:0; max-width:none; padding:16px; overflow-wrap:anywhere; }
.shipping-table th:nth-child(1) { width:16%; }
.shipping-table th:nth-child(2) { width:17%; }
.shipping-table th:nth-child(3) { width:9%; }
.shipping-table th:nth-child(4) { width:15%; }
.shipping-table th:nth-child(5) { width:18%; }
.shipping-table th:nth-child(6) { width:25%; }
.shipping-table td:last-child { min-width:0; max-width:none; }
.shipping-form { display:grid; gap:14px; margin:0; min-width:0; }
.shipping-form label { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; margin:0; white-space:normal; }
.shipping-form input:not([type=hidden]) { display:block; width:100%; min-width:0; max-width:100%; height:44px; margin:0; }
.shipping-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.shipping-form button { margin:0; padding:11px 16px; min-height:44px; }
.shipping-table details[open] > summary { margin-bottom:14px; }
.shipping-table summary { cursor:pointer; }
.shipping-metrics .panel { display:flex; flex-direction:column; gap:8px; margin:0; padding:24px; }
.shipping-metrics strong { margin:0; line-height:1.4; }
.evidence-form .fields { align-items:start; gap:18px 24px; }
.evidence-form .fields > label { display:grid; gap:8px; margin:0; min-width:0; }
.evidence-form select,.evidence-form input { width:100%; min-width:0; min-height:44px; }
.evidence-form .check { display:flex; align-items:center; gap:10px; }
.evidence-form .check input { width:20px; min-height:20px; margin:0; }
.evidence-form .actions { flex-wrap:wrap; gap:12px; }
.evidence-previews { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin:24px 0; }
.evidence-previews .panel { min-width:0; }
button:disabled { opacity:.5; cursor:not-allowed; }
@media(max-width:700px) { .evidence-previews {grid-template-columns:1fr;} }
.evidence-form > label:not(.check) { display:grid; gap:8px; max-width:560px; }
/* 증빙 목록: 검색줄과 행 안의 버튼을 텍스트 중앙에 맞춥니다. */
.evidence-search > button,.evidence-search > a { display:inline-flex; align-items:center; justify-content:center; min-height:44px; box-sizing:border-box; line-height:20px; margin:0; }
.evidence-search input { height:44px; margin:0; box-sizing:border-box; }
.evidence-targets-table th,.evidence-targets-table td { vertical-align:middle; }
.evidence-targets-table .evidence-row-actions { display:flex; align-items:center; gap:12px; margin:0; }
.evidence-row-actions > a { display:inline-flex; align-items:center; justify-content:center; min-height:44px; box-sizing:border-box; line-height:20px; margin:0; white-space:nowrap; }
@media(max-width:600px){.evidence-search > a{justify-content:flex-start;}.evidence-targets-table .evidence-row-actions{flex-wrap:wrap;min-width:170px;gap:8px;}}

/* 공통 검색 체크박스는 글자와 수평 정렬 */
.search > label.check { flex:0 0 auto; flex-direction:row; align-items:center; justify-content:flex-start; gap:8px; min-height:44px; margin:0; }
.search > label.check input[type=checkbox] { width:16px; height:16px; max-width:16px; flex:0 0 16px; margin:0; }

/* 공개 사업 문의·가입 요청: 전용 여백과 타이포그래피 */
.ng-prospect .prospect-main { max-width: 808px; margin: 40px auto 64px; padding: 0 24px; }
.ng-prospect .prospect-home { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; margin-bottom: 28px; font-size: 14px; font-weight: 600; color: #526f60; }
.ng-prospect .prospect-home:hover { color: #173f32; text-decoration: underline; text-underline-offset: 5px; }
.ng-prospect .prospect-eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: 1.2px; color: #607f6d; }
.ng-prospect .prospect-intro h1 { margin: 0; font-size: 32px; line-height: 1.35; letter-spacing: -.8px; font-weight: 700; color: #183f32; }
.ng-prospect .prospect-description { margin: 18px 0 0; line-height: 1.9; word-break: keep-all; }
.ng-prospect .prospect-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 24px; }
.ng-prospect .prospect-nav a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 8px; font-weight: 600; line-height: 1.5; }
.ng-prospect .prospect-nav a:hover { background: #e8eee5; }
.ng-prospect .prospect-nav a[aria-current="page"] { background: #24543e; border-color: #24543e; color: #fff; }
.ng-prospect .prospect-form { display: grid; gap: 26px; margin: 0; padding: 36px; border-radius: 12px; box-shadow: 0 6px 24px rgba(24,63,50,.035); }
.ng-prospect .prospect-field { display: grid; gap: 10px; margin: 0; min-width: 0; }
.ng-prospect .prospect-label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; font-size: 15px; line-height: 1.6; font-weight: 700; color: #244d3a; }
.ng-prospect .prospect-label small { font-size: 12px; font-weight: 400; color: #69766d; }
.ng-prospect .prospect-field input, .ng-prospect .prospect-field textarea { margin: 0; border-radius: 7px; padding: 13px 14px; font-weight: 400; line-height: 1.5; }
.ng-prospect .prospect-field input { min-height: 48px; }
.ng-prospect .prospect-field textarea { resize: vertical; min-height: 144px; }
.ng-prospect .prospect-privacy { margin: 2px 0 0; padding: 20px; background: #f5f7f3; border-radius: 8px; }
.ng-prospect .prospect-privacy h2 { margin: 0 0 12px; padding: 0; border: 0; font-size: 14px; line-height: 1.6; }
.ng-prospect .prospect-privacy p { margin: 0; font-size: 13px; line-height: 1.9; word-break: keep-all; }
.ng-prospect .prospect-consent { display: flex; align-items: flex-start; gap: 10px; margin: 0; line-height: 1.7; font-size: 14px; }
.ng-prospect .prospect-consent input[type="checkbox"] { width: 17px; height: 17px; margin: 3px 0 0; flex: 0 0 17px; accent-color: #24543e; }
.ng-prospect .prospect-submit { margin: 0; padding-top: 2px; }
.ng-prospect .prospect-submit button { min-height: 48px; min-width: 160px; border-radius: 7px; font-weight: 600; }
.ng-prospect .validation { margin: 0; }
@media(max-width:600px) {
 .ng-prospect .prospect-main { margin: 24px auto 40px; padding: 0 20px; }
 .ng-prospect .prospect-home { margin-bottom: 22px; }
 .ng-prospect .prospect-intro h1 { font-size: 28px; }
 .ng-prospect .prospect-description { margin-top: 14px; }
 .ng-prospect .prospect-nav { gap: 4px; margin: 24px 0 20px; }
 .ng-prospect .prospect-nav a { padding: 10px 11px; font-size: 13px; }
 .ng-prospect .prospect-form { padding: 24px 20px; gap: 24px; }
 .ng-prospect .prospect-privacy { padding: 16px; }
 .ng-prospect .prospect-submit button { width: 100%; }
}

.member-registration-details .fields>label { display:flex;flex-direction:column;gap:8px;min-width:0; }
.member-registration-details .check { gap:10px;line-height:1.7; }

/* Member profile forms: consistent label/control spacing. */
.member-profile-form .fields > label{display:flex;flex-direction:column;gap:8px;min-width:0;}
.member-profile-form > label:not(.check){display:flex;flex-direction:column;gap:8px;margin:18px 0;}
.member-profile-form small{font-weight:400;line-height:1.6;}
.member-profile-form .fields > label > button{align-self:flex-start;}

.member-profile-form > fieldset > label:not(.check){display:flex;flex-direction:column;gap:8px;margin:18px 0;}
