@charset "utf-8";
/* 견적문의(상담 신청) 스킨 — 색은 테마(site.css) 변수를 따른다 */
.gw-es {
    --es-text: var(--ink, #14201e);
    --es-muted: var(--muted, #6b7674);
    --es-line: var(--line, #e3e8e7);
    --es-bg: var(--bg, #ffffff);
    --es-soft: var(--soft, #f5f7f7);
    --es-accent: var(--brand, #0f8a7a);
    --es-accent-text: #ffffff;
    --es-wait: #9a6700;
    --es-doing: #0969da;
    --es-done: #1a7f37;
    color: var(--es-text);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 auto 40px;
}
.gw-es *, .gw-es *::before, .gw-es *::after { box-sizing: border-box; }
.gw-es a { color: inherit; }

.gw-es-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; font-weight: 600; border: 1px solid var(--es-line); border-radius: 6px; background: var(--es-bg); color: var(--es-text); font-size: 14px; text-decoration: none; cursor: pointer; }
.gw-es-btn:hover { border-color: var(--es-text); }
.gw-es-btn-primary { background: var(--es-accent); border-color: var(--es-accent); color: var(--es-accent-text); }
.gw-es-req { color: #b42318; }
.gw-es-muted { color: var(--es-muted); }
.gw-es-state { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 13px; background: var(--es-soft); }
.gw-es-state.s0 { color: var(--es-wait); }
.gw-es-state.s1 { color: var(--es-doing); }
.gw-es-state.s2 { color: var(--es-done); }

/* 상담 신청서 */
.gw-es-head { margin-bottom: 18px; }
.gw-es-head h2 { margin: 0; font-size: 22px; }
.gw-es-head p { margin: 6px 0 0; color: var(--es-muted); }
.gw-es-form { max-width: 640px; }
.gw-es-row { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; padding: 0; border: 0; }
.gw-es-row label, .gw-es-row legend { font-weight: 600; font-size: 14px; padding: 0; }
.gw-es-form input[type=text], .gw-es-form input[type=tel], .gw-es-form input[type=email], .gw-es-form select, .gw-es-form textarea { width: 100%; height: 48px; font-family: inherit; padding: 0 12px; border: 1px solid var(--es-line); border-radius: 6px; font-size: 15px; color: var(--es-text); background: var(--es-bg); }
.gw-es-form textarea { height: auto; min-height: 140px; padding: 10px 12px; resize: vertical; }
.gw-es-form input[readonly] { background: var(--es-soft); }
.gw-es-types { display: flex; flex-wrap: wrap; gap: 8px; }
.gw-es-types label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--es-line); border-radius: 999px; font-weight: 400; cursor: pointer; }
.gw-es-types label:has(input:checked) { border-color: var(--es-accent); background: var(--brand-tint, #e8f4f2); color: var(--brand-dark, #0b5f55); font-weight: 600; }
.gw-es-agree { margin: 6px 0 16px; padding: 14px; background: var(--es-soft); border-radius: 8px; font-size: 14px; }
.gw-es-agree summary { cursor: pointer; font-weight: 600; }
.gw-es-agree ul { margin: 8px 0; padding-left: 18px; }
.gw-es-agree p { margin: 0 0 10px; color: var(--es-muted); }
.gw-es-agree > label { display: flex; align-items: center; gap: 6px; margin-top: 8px; cursor: pointer; }
.gw-es-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* 관리자 목록 */
.gw-es-status { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.gw-es-status a { padding: 6px 14px; border: 1px solid var(--es-line); border-radius: 999px; font-size: 14px; text-decoration: none; }
.gw-es-status a.is-on { background: var(--es-accent); border-color: var(--es-accent); color: var(--es-accent-text); }
.gw-es-search { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.gw-es-search select, .gw-es-search input { height: 38px; padding: 0 10px; border: 1px solid var(--es-line); border-radius: 6px; }
.gw-es-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.gw-es-bar p { margin: 0; color: var(--es-muted); }
.gw-es-bar div { display: flex; gap: 6px; }
.gw-es-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--es-text); font-size: 14px; }
.gw-es-table th, .gw-es-table td { padding: 10px 8px; border-bottom: 1px solid var(--es-line); text-align: center; }
.gw-es-table th { color: var(--es-muted); font-weight: 600; font-size: 13px; }
.gw-es-table .t-left { text-align: left; font-weight: 600; }
.gw-es-table a { text-decoration: none; }
.gw-es-empty { padding: 40px 0; color: var(--es-muted); }

/* 관리자 상세 */
.gw-es-dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--es-line); border-left: 1px solid var(--es-line); }
.gw-es-dl > div { padding: 10px 12px; border-right: 1px solid var(--es-line); border-bottom: 1px solid var(--es-line); }
.gw-es-dl dt { font-size: 13px; color: var(--es-muted); }
.gw-es-dl dd { margin: 2px 0 0; font-weight: 600; word-break: break-all; }
.gw-es-sec { margin-top: 24px; }
.gw-es-sec h3 { margin: 0 0 8px; font-size: 16px; }
.gw-es-content { padding: 16px; border: 1px solid var(--es-line); border-radius: 8px; white-space: normal; }
.gw-es-content.is-memo { background: var(--es-soft); }

@media (max-width: 768px) {
    .gw-es-dl { grid-template-columns: 1fr 1fr; }
    .gw-es-table thead { display: none; }
    .gw-es-table tr { display: grid; grid-template-columns: 1fr 1fr; padding: 10px 0; border-bottom: 1px solid var(--es-line); }
    .gw-es-table td { border: 0; padding: 2px 4px; text-align: left; }
}

/* 테마 안에서 : 제목은 테마 제목 띠가 맡는다 */
.board-page .gw-es-head h2 { display: none; }
.board-page .gw-es-form { max-width: 720px; }
.gw-es-row legend { float: left; width: 100%; margin-bottom: 6px; }
.gw-es-form input:focus, .gw-es-form textarea:focus, .gw-es-form select:focus { outline: 2px solid var(--es-accent); outline-offset: -1px; }
