/*
 * XTERION 공통 와이어프레임 UI.
 * 모든 프로그램(수퍼관리자·관리자·업무)은 body.wf-shell 을 쓴다.
 * 색 강조·그림자·둥근 모서리를 쓰지 않고, 상자·선·그리드로만 구성한다.
 */
body.wf-shell {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  color: #111;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  line-height: 1.45;
}
body.wf-shell * { box-sizing: border-box; }

body.wf-shell .wf-top {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  border-bottom: 2px solid #111;
  background: #fff;
}
body.wf-shell .wf-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 10px 16px;
  border-right: 1px solid #111;
  min-width: 0;
}
body.wf-shell a.wf-brand {
  color: inherit;
  text-decoration: none;
}
body.wf-shell .wf-brand-kicker {
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
}
body.wf-shell .wf-brand-title { font-weight: 700; font-size: 16px; }
body.wf-shell .wf-brand-py {
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  color: #555;
}
body.wf-shell .wf-nav {
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 0;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
body.wf-shell .wf-nav a {
  color: #111;
  text-decoration: none;
  border: 1px solid #111;
  margin-left: -1px;
  padding: 6px 12px;
  background: #fff;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  body.wf-shell .wf-nav a:hover { background: #f0f0f0; }
}

body.wf-shell .wf-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}
body.wf-shell h1 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  border-bottom: 1px solid #111;
  padding-bottom: 8px;
}
body.wf-shell h2 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body.wf-shell .wf-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
  border-bottom: 1px dashed #111;
  padding-bottom: 8px;
}
body.wf-shell .wf-page-head h1 {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}
body.wf-shell .wf-muted { color: #555; font-size: 13px; }
body.wf-shell .wf-req { color: #111; font-weight: 700; }
body.wf-shell .wf-error-msg {
  border: 2px solid #111;
  padding: 10px 12px;
  font-weight: 700;
  background:
    repeating-linear-gradient(
      -45deg,
      #fff,
      #fff 6px,
      #f2f2f2 6px,
      #f2f2f2 12px
    );
}

body.wf-shell .wf-box {
  background: #fff;
  border: 2px solid #111;
  border-radius: 0;
  padding: 14px;
  margin-bottom: 14px;
}
body.wf-shell .wf-box-narrow { max-width: 440px; margin: 28px auto; }
body.wf-shell .wf-box-label {
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #555;
  border-bottom: 1px dashed #888;
  margin: -6px -6px 12px;
  padding: 0 6px 6px;
}

body.wf-shell .wf-form label { display: block; margin-bottom: 12px; font-weight: 700; font-size: 13px; }
body.wf-shell .wf-form input,
body.wf-shell .wf-form select {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 7px 8px;
  border: 1px solid #111;
  border-radius: 0;
  background: #fff;
  font: inherit;
}
body.wf-shell .wf-form input[readonly] {
  background:
    repeating-linear-gradient(
      45deg,
      #fff,
      #fff 8px,
      #f4f4f4 8px,
      #f4f4f4 16px
    );
}
body.wf-shell .wf-form-inline {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px dashed #111;
}
body.wf-shell .wf-form-inline label { margin-bottom: 0; }
body.wf-shell .wf-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin-top: 16px;
}
body.wf-shell .wf-form-actions > .wf-btn,
body.wf-shell .wf-form-actions > form,
body.wf-shell .wf-form-actions > form > .wf-btn {
  margin: 0;
}
body.wf-shell .wf-form-actions > .wf-btn,
body.wf-shell .wf-form-actions > form > .wf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  box-sizing: border-box;
}

body.wf-shell .wf-btn {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #111;
  border-radius: 0;
  background: #fff;
  color: #111;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
body.wf-shell .wf-btn-fill {
  background: #111;
  color: #fff;
}
body.wf-shell .wf-link-danger {
  background: none;
  border: 1px solid #111;
  color: #111;
  cursor: pointer;
  font: inherit;
  padding: 2px 8px;
}

body.wf-shell .wf-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #111;
}
body.wf-shell .wf-table th,
body.wf-shell .wf-table td {
  border: 1px solid #111;
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}
body.wf-shell .wf-table th {
  background: #f4f4f4;
  font-size: 12px;
  font-weight: 700;
}
body.wf-shell .wf-actions { white-space: nowrap; }
body.wf-shell .wf-actions a { margin-right: 8px; color: #111; }
body.wf-shell .wf-inline { display: inline; }

body.wf-shell .wf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
body.wf-shell .wf-tile {
  display: block;
  background: #fff;
  border: 2px solid #111;
  border-radius: 0;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  min-height: 110px;
}
@media (hover: hover) and (pointer: fine) {
  body.wf-shell .wf-tile:hover { background: #f7f7f7; }
}
body.wf-shell .wf-tile-stat { cursor: default; }
body.wf-shell .wf-stat {
  font-size: 28px;
  font-weight: 700;
  margin: 4px 0;
  font-family: Consolas, "Courier New", monospace;
}
body.wf-shell .wf-stat span { font-size: 14px; margin-left: 4px; }
body.wf-shell .wf-section {
  margin-top: 24px;
  border: 1px dashed #111;
  padding: 12px;
}
body.wf-shell .wf-list-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0 0;
}
body.wf-shell .wf-list-pager {
  display: flex;
  gap: 8px;
  margin: 0 0 0 auto;
}
body.wf-shell .wf-nav-back {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin-top: 16px;
}
body.wf-shell .wf-nav-back a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 14px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-weight: 700;
  box-sizing: border-box;
}

body.wf-shell .wf-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.wf-shell .wf-modal[hidden] { display: none !important; }
body.wf-shell .wf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
}
body.wf-shell .wf-modal-panel {
  position: relative;
  background: #fff;
  padding: 16px;
  min-width: 260px;
  text-align: center;
  border: 2px solid #111;
}
body.wf-shell .wf-modal-msg { margin: 0 0 12px; }
body.wf-shell .wf-modal-msg--error { font-weight: 700; }

body.wf-shell.wf-login .wf-main {
  display: flex;
  justify-content: center;
}

body.wf-shell .wf-addr-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
body.wf-shell .wf-addr-row input { flex: 1; min-width: 0; }
body.wf-shell .wf-juso-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.12);
  padding: 16px;
}
body.wf-shell .wf-juso-overlay[hidden] { display: none !important; }
body.wf-shell .wf-juso-panel {
  width: min(560px, 96vw);
  height: min(580px, 92vh);
  border: 2px solid #111;
  background: #fff;
  display: flex;
  flex-direction: column;
}
body.wf-shell .wf-juso-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #111;
}
body.wf-shell .wf-juso-head .wf-box-label { margin: 0; border-bottom: 0; }
body.wf-shell .wf-juso-embed { flex: 1; min-height: 420px; }

@media (max-width: 640px) {
  body.wf-shell .wf-form-actions > .wf-btn,
  body.wf-shell .wf-form-actions > form > .wf-btn,
  body.wf-shell .wf-nav-back a {
    min-height: 44px;
  }
}
