/* mt-screens.css — 서버 연결 화면(mt-screens.js)에서 새로 생긴 작은 요소만. 기존 디자인 클래스를 그대로 쓰고 부족한 곳만 채운다. */
.mt-loading, .mt-error { display:flex; align-items:center; gap:10px; margin:24px 0; padding:18px; border:1px solid var(--line, #e5e7eb); border-radius:12px; background:var(--white, #fff); color:var(--sub, #555); font-size:13px; }
.mt-loading svg, .mt-error svg { width:18px; height:18px; flex:none; }
.mt-error { border-color:#f3c7c7; background:#fff7f7; color:#9f1d1d; }
.mt-error b, .mt-error small { display:block; }
.mt-error small { margin-top:3px; color:var(--muted, #888); font-size:11px; }
.mt-notice { margin:0 0 16px; padding:14px 16px; border-radius:10px; background:var(--soft, #f6f7f9); color:var(--sub, #444); font-size:13px; line-height:1.55; }
.mt-notice b { display:block; margin-bottom:4px; color:var(--ink, #111); }
.mt-notice p { margin:0; }
.mt-notice small { display:block; margin-top:6px; color:var(--muted, #888); }
.mt-notice.warning { background:#fff8eb; border:1px solid #f4dfb5; }
.mt-notice .button { margin-top:10px; }
.mt-muted { color:var(--muted, #888); font-size:12px; line-height:1.5; }
.mt-guard-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.mt-verify-summary { display:grid; gap:6px; max-width:420px; margin:16px auto; text-align:left; font-size:13px; }
.mt-verify-summary > div { display:grid; grid-template-columns:110px 1fr; gap:10px; padding:8px 0; border-bottom:1px solid var(--line, #eee); }
.mt-verify-summary dt { color:var(--muted, #888); }
.mt-verify-summary dd { margin:0; color:var(--ink, #111); word-break:break-all; }
.mt-doc-status { max-width:420px; margin:0 auto 18px; padding:0; list-style:none; text-align:left; font-size:12px; display:grid; gap:6px; }
.mt-pager { display:flex; align-items:center; justify-content:center; gap:12px; margin:16px 0; font-size:13px; }
.mt-pager button { height:34px; padding:0 14px; border:1px solid var(--line, #ddd); border-radius:8px; background:var(--white, #fff); cursor:pointer; }
.mt-history { margin:0; padding:0; list-style:none; display:grid; gap:10px; }
.mt-history li { padding:10px 12px; border:1px solid var(--line, #eee); border-radius:9px; font-size:12px; }
.mt-history b { display:block; font-size:12px; }
.mt-history span { color:var(--muted, #888); font-size:11px; }
.mt-history p { margin:6px 0 0; color:var(--sub, #555); }
.mt-fieldset { margin:13px 0 0; padding:10px 12px; border:1px solid var(--line, #e5e7eb); border-radius:9px; }
.mt-fieldset legend { padding:0 4px; color:var(--sub, #555); font-size:12px; font-weight:700; }
.mt-fieldset .admin-confirm { margin:6px 0; }
.mt-subform { margin-top:18px; padding-top:18px; border-top:1px solid var(--line, #e5e7eb); }
.mt-settings { display:grid; gap:10px; }
.mt-setting { padding:12px 14px; border:1px solid var(--line, #e5e7eb); border-radius:10px; }
.mt-setting-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.mt-setting-head b, .mt-setting-head small { display:block; }
.mt-setting-head small { margin-top:2px; color:var(--muted, #888); font-size:11px; font-family:ui-monospace, SFMono-Regular, Menlo, monospace; }
.mt-setting-head strong { white-space:nowrap; font-size:16px; }
.mt-setting-head em { font-style:normal; color:var(--muted, #888); font-size:12px; }
.mt-setting p { margin:6px 0 0; }
.mt-setting-actions { display:flex; gap:6px; margin-top:8px; }
.mt-setting-actions .button { height:32px; padding:0 12px; font-size:12px; }
.mt-setting-form { display:grid; grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)); gap:0 12px; align-items:end; margin-top:6px; }
.mt-setting-form .button { height:42px; margin-top:13px; }
.mt-table { width:100%; margin-top:10px; border-collapse:collapse; font-size:12px; }
.mt-table th, .mt-table td { padding:7px 8px; border-bottom:1px solid var(--line, #eee); text-align:left; vertical-align:top; }
.mt-table th { color:var(--muted, #888); font-weight:600; }
.mt-brand-admin-list { display:grid; gap:8px; }
.mt-brand-admin-row { display:grid; grid-template-columns:72px 1fr auto auto auto; gap:12px; align-items:center; padding:10px 12px; border:1px solid var(--line, #e5e7eb); border-radius:10px; font-size:12px; }
.mt-brand-admin-row b, .mt-brand-admin-row small { display:block; }
.mt-brand-admin-row small { color:var(--muted, #888); }
.mt-brand-admin-row button { height:32px; padding:0 12px; border:1px solid var(--line, #ddd); border-radius:8px; background:var(--white, #fff); cursor:pointer; }
.mt-brand-logo { display:grid; place-items:center; width:72px; height:40px; overflow:hidden; border-radius:8px; background:var(--soft, #f6f7f9); font-size:11px; font-weight:800; text-align:center; }
.mt-brand-logo img { max-width:100%; max-height:100%; object-fit:contain; }
.mt-brand-logo.large { width:100%; height:110px; margin:10px 0; font-size:18px; }
.mt-brand-image img { max-width:100%; max-height:56px; object-fit:contain; }
.mt-brand-image.large img { max-height:96px; }
.mt-textarea { width:100%; padding:10px; border:1px solid var(--line, #ddd); border-radius:8px; font:inherit; font-size:13px; line-height:1.6; }
.mt-supplier-link { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.mt-supplier-link .admin-confirm { flex:1; margin:5px 0; }
.mt-inline { display:flex; align-items:center; gap:4px; font-size:11px; color:var(--sub, #555); white-space:nowrap; }
.mt-file-button { position:relative; height:29px; padding:0 10px; font-size:11px; display:inline-flex; align-items:center; cursor:pointer; }
.mt-json { font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-size:10px; word-break:break-all; }
@media (max-width: 760px) {
  .mt-brand-admin-row { grid-template-columns:56px 1fr; }
  .mt-verify-summary > div { grid-template-columns:90px 1fr; }
}

/* #verify 세금계산서 수신 정보 (E-019) — 인증 결과 카드 아래에 붙는다 */
.mt-invoice-profile { max-width:720px; margin:28px auto 0; padding-top:24px; border-top:1px solid var(--line, #e5e7eb); }
.mt-invoice-profile .form-heading { text-align:left; }
.mt-invoice-profile input[readonly], .mt-invoice-profile input:disabled { background:var(--soft, #f6f7f9); color:var(--sub, #555); }

/* 공급사 정보 변경 요청 (E-185·E-326) */
.mt-change-list { margin:8px 0 0; padding:0; list-style:none; display:grid; gap:4px; }
.mt-change-list li { display:flex; flex-wrap:wrap; gap:4px 10px; font-size:13px; }
.mt-change-list li b { display:inline; margin:0; min-width:96px; color:var(--ink, #111); }
.mt-change-list li span { color:var(--sub, #444); overflow-wrap:anywhere; }
.mt-change-queue { display:grid; gap:14px; }
.mt-change-decision { display:grid; gap:10px; margin-top:12px; }

/* 2단계 상품 (B2): 관심상품 하트·상세 사진·배송 권역 수준·검색 더 보기 */
.product-card { position:relative; }
.heart-btn { cursor:pointer; }
.heart-btn.selected svg { fill:currentColor; }
.heart-btn:disabled { opacity:.6; }
.detail-thumbs img { width:100%; height:100%; object-fit:cover; }
.admin-region-grid .mt-region-level { margin-top:4px; width:100%; height:26px; padding:0 4px; border:1px solid var(--line, #e5e7eb); border-radius:6px; background:var(--white, #fff); color:var(--sub, #555); font-size:11px; }
.catalog-more { display:flex; justify-content:center; margin:22px 0 8px; }
.supplier-pricing-row small.wf-error { display:block; margin-top:3px; color:var(--cta, #c62828); }
/* 3단계 구매자 화면 (mt-buyer.js) — 장바구니·주문서 편집칸, 공급사별 주문 금액, 결제창(MOCK PG) */
.mt-line-input { width:84px; min-height:34px; padding:4px 8px; border:1px solid var(--line, #ddd); border-radius:8px; font:inherit; background:var(--white, #fff); }
.mt-line-input[type="date"] { width:auto; }
.dm-project-table select, .dm-project-table input { max-width:100%; }
.mt-cart-edit { display:flex; flex-wrap:wrap; gap:6px 14px; margin-top:8px; font-size:12px; color:var(--sub, #555); }
.mt-cart-edit label { display:inline-flex; align-items:center; gap:6px; }
.mt-cart-edit svg { width:14px; height:14px; }
.mt-cart-edit input[type="date"], .mt-cart-edit select { min-height:30px; padding:2px 6px; border:1px solid var(--line, #ddd); border-radius:6px; font:inherit; max-width:180px; }
.mt-cart-warning { display:block; margin-top:6px; color:#a1531a; font-size:12px; }
.cart-qty .mt-line-input { width:72px; }
.mt-supplier-order { margin-bottom:14px; padding-bottom:10px; border-bottom:1px dashed var(--line, #e5e7eb); }
.mt-supplier-order:last-child { border-bottom:0; }
.mt-order-costs { display:grid; gap:4px; margin:8px 0 0; font-size:13px; }
.mt-order-costs > div { display:flex; justify-content:space-between; gap:12px; }
.mt-order-costs dt { color:var(--muted, #777); }
.mt-order-costs dd { margin:0; text-align:right; }
.mt-order-costs .total { font-weight:700; color:var(--ink, #111); }
.mt-order-project { min-height:40px; padding:0 10px; border:1px solid var(--line, #ddd); border-radius:8px; font:inherit; background:var(--white, #fff); }
.mt-shipment-list { margin:14px 0 0; padding:0; list-style:none; display:grid; gap:6px; font-size:13px; color:var(--sub, #555); }
.mt-negotiation { border:1px solid #f4dfb5; background:#fffaf0; margin-bottom:16px; }
.mt-negotiation .mt-guard-actions { justify-content:flex-start; margin-top:12px; }
.mt-change-form { margin-top:12px; font-size:13px; }
.mt-change-form summary { cursor:pointer; font-weight:700; color:var(--brand, #1f5fbf); }
.mt-change-form form { margin-top:10px; display:grid; gap:10px; }
.mt-pay-window { width:min(440px, calc(100vw - 24px)); }
.mt-pay-window .catalog-dialog-head h2 { display:flex; align-items:center; gap:8px; }
.mt-pay-window .catalog-dialog-head h2 svg { width:18px; height:18px; }
.mt-pay-test { margin:0 0 12px; padding:8px 12px; border-radius:8px; background:#fff3d6; color:#8a5a00; font-size:12px; font-weight:700; }
.mt-pay-summary { display:grid; gap:6px; margin:0 0 14px; font-size:13px; }
.mt-pay-summary > div { display:grid; grid-template-columns:80px 1fr; gap:10px; }
.mt-pay-summary dt { color:var(--muted, #888); }
.mt-pay-summary dd { margin:0; word-break:break-all; }
.mt-pay-amount { display:flex; justify-content:space-between; align-items:baseline; padding:14px 0; border-top:1px solid var(--line, #eee); border-bottom:1px solid var(--line, #eee); margin-bottom:14px; }
.mt-pay-amount strong { font-size:22px; }
.mt-pay-field { display:grid; gap:6px; margin-bottom:10px; font-size:13px; color:var(--sub, #555); }
.mt-pay-field select { min-height:40px; padding:0 10px; border:1px solid var(--line, #ddd); border-radius:8px; font:inherit; }
.cart-summary .button.wide { white-space:normal; height:auto; min-height:48px; margin-top:8px; }
.mt-cart-edit label, .dm-project-table .numeric, .dm-project-table button { white-space:nowrap; }
@media (max-width: 820px) {
  /* 모바일 고정 결제 버튼: .button.wide(width:100%)가 calc 폭을 덮어 화면 밖으로 나가던 것 + 현장이 여럿이면 두 번째부터는 목록 안에 */
  .cart-summary .button.wide { width:calc(100% - 32px); }
  .cart-summary .button.wide ~ .button.wide { position:static; width:100%; box-shadow:none; }
}

/* 3단계 B4: 공급사 주문확인·출고 화면의 품목별 수량 표(재고확정·분할출고 공용) */
.mt-confirm-items { width:100%; margin-top:14px; border-collapse:collapse; font-size:12px; }
.mt-confirm-items th, .mt-confirm-items td { padding:9px 8px; border-bottom:1px solid var(--line, #eee); text-align:left; vertical-align:middle; }
.mt-confirm-items th { color:var(--muted, #888); font-weight:600; font-size:11px; }
.mt-confirm-items input[type="number"], .mt-confirm-items input[type="text"] { width:100%; min-width:80px; height:34px; padding:0 8px; border:1px solid var(--line, #ddd); border-radius:7px; font:inherit; }
.mt-confirm-items input[disabled] { background:var(--soft, #f6f7f9); color:var(--muted, #888); }
.supplier-shipment-actions { margin-top:14px; padding-top:14px; border-top:1px solid var(--line, #eee); display:grid; gap:12px; }

/* 4단계 견적요청: 관리자 운영상세 보조 제목 · 인라인 입력칸 (기존 admin-center.css 규칙 재사용, 없는 것만 보탠다) */
.admin-panel-subhead { margin:22px 0 12px; padding-top:18px; border-top:1px solid var(--line, #e5e7eb); font-size:15px; letter-spacing:-.4px; }
.mt-pay-field input[type="text"], .mt-pay-field input:not([type]) { min-height:40px; padding:0 10px; border:1px solid var(--line, #ddd); border-radius:8px; font:inherit; }
.mt-rfq-accept .supplier-fields { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.mt-rfq-accept .supplier-fields label { display:grid; gap:6px; font-size:12px; color:var(--sub, #555); }
.mt-rfq-accept .supplier-fields input, .mt-rfq-accept .supplier-fields select { min-height:40px; padding:0 10px; border:1px solid var(--line, #ddd); border-radius:8px; font:inherit; }
.mt-rfq-accept .supplier-note-field { display:grid; gap:6px; margin-top:12px; font-size:12px; color:var(--sub, #555); }
.mt-rfq-accept .supplier-note-field textarea { padding:9px 10px; border:1px solid var(--line, #ddd); border-radius:8px; font:inherit; }
@media (max-width: 720px) {
  .mt-rfq-accept .supplier-fields { grid-template-columns:1fr; }
}
