/*
 * 업무 사용자 — 화면 전용 예외만. 공통 와이어프레임은 /shared/static/wireframe.css
 * 규칙은 body.ter-shell / body.ter-code-form / body.ter-emp-form / body.ter-worker-form / body.ter-res-form / body.ter-owner-form / body.ter-reg-form / body.ter-defects / body.ter-defect-form / body.ter-status 로 스코프.
 * 배색: 보라색 톤 (상자·선 구성은 유지).
 */
body.wf-shell.ter-shell {
  --ter-ink: #3a1d6e;
  --ter-line: #6a3d9a;
  --ter-bg: #f4eef9;
  --ter-panel: #fcf9ff;
  --ter-head: #5b2c8a;
  --ter-head-text: #f7f2fc;
  --ter-fill: #5b2c8a;
  --ter-hover: #ede4f7;
  --ter-muted: #7a6494;
  --ter-th: #eee4f8;
  --ter-label-col: 9em;
  background: var(--ter-bg);
  color: var(--ter-ink);
}
body.wf-shell.ter-shell .wf-top {
  background: var(--ter-head);
  border-bottom-color: var(--ter-line);
  color: var(--ter-head-text);
}
body.wf-shell.ter-shell .wf-brand {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  border-right-color: rgba(255, 255, 255, 0.35);
  padding: 6px 14px;
}
body.wf-shell.ter-shell .wf-brand-kicker,
body.wf-shell.ter-shell .wf-brand-py {
  color: #d7c6ee;
}
body.wf-shell.ter-shell .wf-brand-title {
  color: var(--ter-head-text);
}
body.wf-shell.ter-shell .ter-brand-logo {
  display: block;
  height: 48px;
  width: auto;
}
body.wf-shell.ter-shell .wf-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
body.wf-shell.ter-shell .wf-top {
  overflow: visible;
  align-items: center;
}
body.wf-shell.ter-shell .wf-nav > a {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin-left: 0;
  padding: 6px 10px;
  white-space: nowrap;
  color: var(--ter-head);
  background: var(--ter-panel);
  border: 1px solid #c9b3e6;
  border-radius: 8px;
  touch-action: manipulation;
  flex: 0 0 auto;
  text-decoration: none;
  box-sizing: border-box;
  line-height: 1.2;
}
body.wf-shell.ter-shell .wf-nav .ter-nav-inquiry-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
}
body.wf-shell.ter-shell .wf-nav .wf-nav-inquiry-menu__trigger {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 10px;
  white-space: nowrap;
  cursor: pointer;
  color: var(--ter-head);
  background: var(--ter-panel);
  border: 1px solid #c9b3e6;
  border-radius: 8px;
  box-sizing: border-box;
  touch-action: manipulation;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
}
body.wf-shell.ter-shell .wf-nav .wf-nav-inquiry-menu__trigger span,
body.wf-shell.ter-shell .wf-nav .wf-nav-inquiry-menu__trigger .ter-ico {
  color: inherit;
  pointer-events: none;
}
body.wf-shell.ter-shell .wf-nav .ter-nav-inquiry-menu.is-active .wf-nav-inquiry-menu__trigger,
body.wf-shell.ter-shell .wf-nav .ter-nav-inquiry-menu.is-open .wf-nav-inquiry-menu__trigger {
  background: var(--ter-fill);
  color: var(--ter-head-text);
  border-color: var(--ter-fill);
}
body.wf-shell.ter-shell .wf-nav .ter-nav-inquiry-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  min-width: 10.5rem;
  padding: 6px;
  border: 1px solid #c9b3e6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(45, 25, 75, 0.12);
}
body.wf-shell.ter-shell .wf-nav .ter-nav-inquiry-menu__panel a {
  display: block;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ter-ink);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  box-sizing: border-box;
}
body.wf-shell.ter-shell .wf-nav .ter-nav-inquiry-menu__panel a[aria-current="page"] {
  background: #f3eaf8;
  color: #5b2c8a;
}
body.wf-shell.ter-shell .wf-nav .ter-ico {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: miter;
  stroke-linecap: square;
}
@media (hover: hover) and (pointer: fine) {
  body.wf-shell.ter-shell .wf-nav > a:hover {
    background: var(--ter-hover);
    color: var(--ter-head);
  }
  body.wf-shell.ter-shell .wf-nav .ter-nav-inquiry-menu .wf-nav-inquiry-menu__trigger:hover {
    background: #6d38a8;
    border-color: #6d38a8;
    color: #fff;
  }
  body.wf-shell.ter-shell .wf-nav .ter-nav-inquiry-menu__panel a:hover {
    background: #f8f2fc;
    color: var(--ter-ink);
  }
}
body.wf-shell.ter-shell .wf-nav > a span {
  white-space: nowrap;
  pointer-events: none;
}
body.wf-shell.ter-shell .wf-nav > a .ter-ico {
  pointer-events: none;
}
@media (max-width: 720px) {
  body.wf-shell.ter-shell .wf-brand {
    min-width: 0;
  }
  body.wf-shell.ter-shell .wf-nav {
    padding: 0 8px;
  }
  body.wf-shell.ter-shell .wf-nav > a {
    padding: 6px 8px;
  }
  body.wf-shell.ter-shell .wf-nav .ter-nav-inquiry-menu {
    margin-right: 8px;
  }
  body.wf-shell.ter-shell .wf-nav .wf-nav-inquiry-menu__trigger {
    padding: 6px 8px;
  }
}
body.wf-shell.ter-shell h1 {
  border-bottom-color: var(--ter-line);
  color: var(--ter-ink);
}
body.wf-shell.ter-shell .wf-page-head {
  border-bottom-color: var(--ter-line);
}
body.wf-shell.ter-shell .wf-muted {
  color: var(--ter-muted);
}
body.wf-shell.ter-shell .wf-req {
  color: #7b2cbf;
}
body.wf-shell.ter-shell .wf-error-msg {
  border-color: var(--ter-line);
  color: var(--ter-ink);
  background:
    repeating-linear-gradient(
      -45deg,
      var(--ter-panel),
      var(--ter-panel) 6px,
      var(--ter-hover) 6px,
      var(--ter-hover) 12px
    );
}
body.wf-shell.ter-shell .wf-box,
body.wf-shell.ter-shell .wf-tile {
  background: var(--ter-panel);
  border-color: var(--ter-line);
  color: var(--ter-ink);
}
body.wf-shell.ter-shell .wf-box-label {
  color: var(--ter-muted);
  border-bottom-color: #c9b3e6;
}
body.wf-shell.ter-shell .wf-main {
  max-width: 100%;
  box-sizing: border-box;
}
body.wf-shell.ter-shell .wf-form input,
body.wf-shell.ter-shell .wf-form select,
body.wf-shell.ter-shell .wf-form textarea {
  border-color: var(--ter-line);
  background: #fff;
  color: var(--ter-ink);
  max-width: 100%;
  box-sizing: border-box;
}
body.wf-shell.ter-shell .wf-form input[readonly] {
  background:
    repeating-linear-gradient(
      45deg,
      #fff,
      #fff 8px,
      var(--ter-th) 8px,
      var(--ter-th) 16px
    );
}
body.wf-shell.ter-shell .wf-form-inline {
  border-color: var(--ter-line);
}
body.wf-shell.ter-shell .wf-btn {
  border-color: var(--ter-line);
  background: var(--ter-panel);
  color: var(--ter-ink);
}
body.wf-shell.ter-shell .wf-btn:hover {
  background: var(--ter-hover);
}
body.wf-shell.ter-shell .wf-btn-fill {
  background: var(--ter-fill);
  border-color: var(--ter-fill);
  color: #fff;
}
body.wf-shell.ter-shell .wf-btn-fill:hover {
  background: #6d3aa8;
}
body.wf-shell.ter-shell .wf-link-danger {
  border-color: var(--ter-line);
  color: var(--ter-ink);
}
body.wf-shell.ter-shell .wf-table {
  background: var(--ter-panel);
  border-color: var(--ter-line);
}
body.wf-shell.ter-shell .wf-table th,
body.wf-shell.ter-shell .wf-table td {
  border-color: var(--ter-line);
}
body.wf-shell.ter-shell .wf-table th {
  background: var(--ter-th);
  color: var(--ter-ink);
}
body.wf-shell.ter-shell .wf-actions a {
  color: var(--ter-fill);
}
body.ter-employees .wf-actions,
body.ter-workers .wf-actions,
body.ter-regulations .wf-actions {
  vertical-align: middle;
}
body.wf-shell.ter-shell .wf-actions a.ter-row-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  margin: 0 8px 0 0;
  padding: 2px 12px;
  border: 1px solid var(--ter-fill);
  border-radius: 6px;
  background: var(--ter-fill);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
body.wf-shell.ter-shell .wf-actions a.ter-row-edit:hover {
  background: #6d3aa8;
  border-color: #6d3aa8;
  color: #fff;
}
body.ter-regulations .ter-reg-file {
  display: inline;
  margin: 0 8px 0 0;
  white-space: nowrap;
}
body.ter-codes .ter-codes-table th,
body.ter-codes .ter-codes-table td,
body.ter-regulations .wf-table th,
body.ter-regulations .wf-table td {
  white-space: nowrap;
}
body.ter-regulations .wf-main {
  overflow-x: auto;
}
body.ter-regulations .wf-actions form {
  display: inline;
  margin: 0 8px 0 0;
}
body.ter-regulations .wf-actions button {
  background: none;
  border: 1px solid var(--ter-line);
  color: var(--ter-fill);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 2px 8px;
}
@media (hover: hover) and (pointer: fine) {
  body.wf-shell.ter-shell .wf-tile:hover {
    background: var(--ter-hover);
  }
}
body.wf-shell.ter-shell .wf-section {
  border-color: var(--ter-line);
}
body.wf-shell.ter-shell .wf-nav-back a {
  color: var(--ter-ink);
  border-color: var(--ter-line);
  background: var(--ter-panel);
}
body.wf-shell.ter-shell .wf-modal-backdrop {
  background: rgba(91, 44, 138, 0.18);
}
body.wf-shell.ter-shell .wf-modal-panel {
  background: var(--ter-panel);
  border-color: var(--ter-line);
  color: var(--ter-ink);
}
body.ter-shell .wf-brand-title::after {
  content: "";
}

/* 기본코드·직원정보 CRUD: 제목과 입력란 한 줄, 화면 폭을 넘지 않음 */
body.ter-code-form .wf-form.wf-box,
body.ter-emp-form .wf-form.wf-box,
body.ter-worker-form .wf-form.wf-box,
body.ter-res-form .wf-form.wf-box,
body.ter-owner-form .wf-form.wf-box,
body.ter-reg-form .wf-form.wf-box,
body.ter-pledge-form .wf-form.wf-box {
  width: 100%;
  max-width: 36rem;
  box-sizing: border-box;
}
body.wf-shell.ter-shell.ter-code-form .wf-main,
body.wf-shell.ter-shell.ter-emp-form .wf-main,
body.wf-shell.ter-shell.ter-worker-form .wf-main,
body.wf-shell.ter-shell.ter-res-form .wf-main,
body.wf-shell.ter-shell.ter-owner-form .wf-main,
body.wf-shell.ter-shell.ter-reg-form .wf-main,
body.wf-shell.ter-shell.ter-pledge-form .wf-main {
  width: 100%;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
body.wf-shell.ter-shell.ter-defect-form .wf-main {
  margin-left: auto;
  margin-right: auto;
}
body.ter-code-form .wf-form > label,
body.ter-emp-form .wf-form > label,
body.ter-worker-form .wf-form > label,
body.ter-res-form .wf-form > label,
body.ter-owner-form .wf-form > label,
body.ter-reg-form .wf-form > label {
  display: grid;
  grid-template-columns: var(--ter-label-col) minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 13px;
  min-width: 0;
}
body.ter-code-form .wf-form > .wf-muted,
body.ter-emp-form .wf-form > .wf-muted,
body.ter-worker-form .wf-form > .wf-muted,
body.ter-res-form .wf-form > .wf-muted,
body.ter-owner-form .wf-form > .wf-muted,
body.ter-reg-form .wf-form > .wf-muted {
  max-width: 100%;
}
body.ter-reg-form .ter-reg-files {
  margin: 0 0 12px;
}
body.ter-reg-form .ter-reg-files ul {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
body.ter-reg-form .ter-reg-files li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
}
body.ter-reg-form .ter-reg-remove {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
}
body.wf-shell.ter-shell.ter-reg-form .wf-form .ter-reg-remove input[type="checkbox"] {
  display: inline-block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  border-radius: 3px;
}
body.ter-code-form .wf-form > label > .ter-field-name,
body.ter-emp-form .wf-form > label > .ter-field-name,
body.ter-worker-form .wf-form > label > .ter-field-name,
body.ter-res-form .wf-form > label > .ter-field-name,
body.ter-owner-form .wf-form > label > .ter-field-name,
body.ter-reg-form .wf-form > label > .ter-field-name {
  white-space: nowrap;
}
body.ter-code-form .wf-form > label > input,
body.ter-code-form .wf-form > label > select,
body.ter-emp-form .wf-form > label > input,
body.ter-emp-form .wf-form > label > select,
body.ter-worker-form .wf-form > label > input,
body.ter-worker-form .wf-form > label > select,
body.ter-res-form .wf-form > label > input,
body.ter-res-form .wf-form > label > select,
body.ter-owner-form .wf-form > label > input,
body.ter-owner-form .wf-form > label > select,
body.ter-reg-form .wf-form > label > input,
body.ter-reg-form .wf-form > label > select,
body.ter-reg-form .wf-form > label > textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  box-sizing: border-box;
}
body.ter-reg-form .wf-form > label.ter-reg-content {
  align-items: start;
}
body.ter-reg-form .wf-form > label > textarea {
  min-height: 8rem;
  resize: vertical;
  border: 1px solid var(--ter-line);
  background: #fff;
  color: var(--ter-ink);
  font: inherit;
}
body.ter-reg-form.ter-pledge-form .wf-form > label {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
}
body.ter-reg-form.ter-pledge-form .wf-form > label > .ter-field-name {
  width: fit-content;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3eafb;
  color: #3a1d6e;
}
body.ter-reg-form.ter-pledge-form .wf-form > label.ter-reg-content {
  grid-template-columns: minmax(0, 1fr);
  row-gap: 6px;
  align-items: stretch;
}
body.ter-pledge-form .wf-form > label > textarea {
  display: block;
  width: 100%;
  min-height: 22rem;
  margin-top: 0;
  box-sizing: border-box;
}
body.ter-worker-form .wf-form > .ter-role {
  display: grid;
  grid-template-columns: var(--ter-label-col) minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  min-width: 0;
}
body.ter-worker-form .wf-form > .ter-role > .ter-field-name {
  white-space: nowrap;
}
body.ter-worker-form .ter-role-opts {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
body.ter-worker-form .ter-role-opts label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-weight: 700;
  white-space: nowrap;
}
body.ter-worker-form .ter-role-opts input {
  display: inline-block;
  width: auto;
  margin: 0;
}
body.ter-worker-form .ter-ceo-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  column-gap: 6px;
  min-width: 0;
}
body.ter-worker-form .ter-ceo-inputs input {
  width: 100%;
  min-width: 0;
  margin: 0;
}
body.ter-worker-form .ter-addr-wrap {
  margin-bottom: 8px;
}
body.ter-worker-form .ter-addr-wrap > label {
  display: grid;
  grid-template-columns: var(--ter-label-col) minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 13px;
  min-width: 0;
}
body.ter-worker-form .ter-addr-wrap > label > .ter-field-name {
  white-space: nowrap;
}
body.ter-worker-form .wf-addr-row {
  display: flex;
  gap: 6px;
  min-width: 0;
  align-items: center;
}
body.ter-worker-form .wf-addr-row > input {
  margin-top: 0;
  min-width: 0;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}
body.ter-worker-form .wf-form input[readonly] {
  background: var(--ter-bg);
  color: var(--ter-muted);
}

/* Excel 업로드: 처리 화면 왼쪽, 미처리 목록 오른쪽 */
body.ter-owner-form .ter-upload-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
body.ter-owner-form .ter-upload-unprocessed {
  min-width: 0;
}
body.ter-owner-form .ter-upload-unprocessed h2 {
  margin: 0 0 8px;
  font-size: 16px;
  border-bottom: none;
}
body.ter-owner-form .ter-upload-unprocessed .wf-table {
  width: 100%;
  font-size: 12px;
}
body.ter-owner-form .ter-block-picks,
body.ter-residents .ter-block-picks,
body.ter-workers .ter-block-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0 6px;
}
body.ter-owner-form .ter-block-pick,
body.ter-residents .ter-block-pick,
body.ter-workers .ter-block-pick {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--ter-line);
  background: var(--ter-panel);
  color: var(--ter-ink);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.3;
}
body.ter-owner-form .ter-block-pick:hover,
body.ter-residents .ter-block-pick:hover,
body.ter-workers .ter-block-pick:hover {
  background: var(--ter-hover);
}
body.ter-owner-form .ter-block-pick.is-on,
body.ter-residents .ter-block-pick.is-on,
body.ter-workers .ter-block-pick.is-on {
  background: var(--ter-fill);
  border-color: var(--ter-fill);
  color: #fff;
}
body.ter-workers .ter-block-picks {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 14px;
}
body.ter-workers .ter-block-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 7.4rem;
  height: 36px;
  padding: 0 16px;
  border: 1px solid #c9b3e4;
  border-radius: 999px;
  background: #fff;
  color: #5b2c8a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}
body.ter-workers .ter-block-pick:hover {
  background: #f6f0fb;
  border-color: #5b2c8a;
}
body.ter-workers .ter-block-pick.is-on {
  background: #5b2c8a;
  border-color: #5b2c8a;
  color: #fff;
}
@media (max-width: 720px) {
  body.ter-workers .ter-block-picks {
    display: flex;
    width: 100%;
    gap: 6px;
  }
  body.ter-workers .ter-block-pick {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 6px;
    font-size: 13px;
    white-space: nowrap;
  }
}
body.ter-owner-form .ter-dense-table,
body.ter-residents .ter-dense-table,
body.ter-workers .ter-dense-table {
  width: 100%;
  font-size: 12px;
  border-collapse: collapse;
}
body.ter-workers .ter-workers-scroll {
  overflow-x: auto;
  max-width: 100%;
}
body.ter-workers .ter-dense-table {
  width: max-content;
  min-width: 100%;
}
body.ter-owner-form .ter-dense-table th,
body.ter-owner-form .ter-dense-table td,
body.ter-residents .ter-dense-table th,
body.ter-residents .ter-dense-table td,
body.ter-workers .ter-dense-table th,
body.ter-workers .ter-dense-table td {
  padding: 2px 6px;
  line-height: 1.25;
}
body.ter-workers .ter-dense-table th,
body.ter-workers .ter-dense-table td {
  white-space: nowrap;
  vertical-align: middle;
}
body.ter-workers .ter-workers-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0 0;
}
body.ter-workers .ter-workers-pager {
  display: flex;
  gap: 8px;
  margin: 0 0 0 auto;
}
@media (min-width: 720px) {
  body.wf-shell.ter-shell.ter-workers .wf-main {
    width: 100%;
    max-width: 1100px;
  }
}
@media (max-width: 960px) {
  body.ter-owner-form .ter-upload-split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  body.ter-code-form .wf-form-actions,
  body.ter-emp-form .wf-form-actions,
  body.ter-worker-form .wf-form-actions,
  body.ter-res-form .wf-form-actions,
  body.ter-owner-form .wf-form-actions,
  body.ter-reg-form .wf-form-actions {
    flex-wrap: wrap;
  }
  body.ter-worker-form .ter-role-opts {
    flex-wrap: wrap;
  }
}

body.ter-menu .wf-main {
  max-width: 36rem;
}
body.ter-menu .ter-menu-complex {
  margin: 0 0 0 auto;
  padding: 0;
  min-width: 0;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ter-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.ter-menu .ter-menu-complex strong {
  font-weight: 700;
  color: var(--ter-ink);
}
body.ter-menu .ter-menu-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 0;
}
body.ter-menu .ter-menu-counts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
}
body.ter-menu .ter-menu-counts a {
  color: #3a1d6e;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}
body.ter-menu .ter-menu-counts strong {
  font-size: 18px;
  font-weight: 800;
}
body.ter-menu .ter-menu-user {
  margin: 0 0 0 8px;
  text-align: right;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ter-muted);
}
body.ter-menu .ter-menu-group {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
}
body.ter-menu .ter-menu-group-title {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  color: var(--ter-muted);
}
body.ter-menu .ter-menu-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}
body.ter-menu .ter-menu-tile {
  display: flex;
  min-height: 0;
  padding: 0;
  border: 1px solid #e6d9f3;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(91, 44, 138, 0.18);
  position: relative;
  z-index: 1;
}
body.ter-menu .ter-menu-face {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  width: 100%;
  padding: 14px 8px 12px;
  min-height: 84px;
  pointer-events: none;
}
body.ter-menu .ter-menu-emoji {
  display: block;
  font-size: 22px;
  line-height: 1;
}
body.ter-menu .ter-menu-label {
  display: block;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  word-break: keep-all;
}
body.ter-menu .ter-menu-label-multiline {
  white-space: normal;
}
@media (hover: hover) and (pointer: fine) {
  body.ter-menu .ter-menu-tile:hover {
    border-color: var(--ter-line);
    background: #fff;
  }
}
@media (min-width: 720px) {
  body.ter-menu .wf-main {
    width: 36rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
  }
  body.ter-menu .ter-menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    gap: 10px;
  }
  body.ter-menu .ter-menu-emoji {
    font-size: 22px;
  }
  body.ter-menu .ter-menu-face {
    gap: 8px;
    padding: 16px 8px 14px;
    min-height: 92px;
  }
}
@media (min-width: 720px) {
  body.ter-employees .wf-main,
  body.ter-workers .wf-main,
  body.ter-households .wf-main,
  body.ter-residents .wf-main,
  body.ter-regulations .wf-main,
  body.ter-consents .wf-main,
  body.ter-complete .wf-main {
    width: 550px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: auto;
  }
}
body.ter-vehicles .ter-vehicles-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}
body.ter-vehicles .ter-vehicles-filter label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}
body.ter-vehicles .ter-vehicles-filter select {
  width: 7.5rem;
  margin: 0;
  padding: 8px 10px;
}
body.ter-vehicles .ter-vehicles-scroll {
  overflow-x: auto;
}
body.ter-vehicles .ter-vehicles-table th,
body.ter-vehicles .ter-vehicles-table td {
  white-space: nowrap;
}
@media (min-width: 720px) {
  body.ter-vehicles .wf-main {
    width: 40rem;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
  }
}
body.ter-consents .ter-consents-filter {
  position: relative;
  z-index: 30;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  overflow: visible;
  white-space: nowrap;
}
body.ter-consents .ter-consents-range-name {
  font-weight: 700;
  font-size: 13px;
  color: #3a1d6e;
}
body.ter-consents .ter-consents-range {
  position: relative;
  z-index: 31;
  display: inline-flex;
}
body.ter-consents .ter-consents-range-btn {
  min-height: 34px;
  padding: 4px 12px;
  border: 1px solid #d5c8ea;
  border-radius: 10px;
  background: #fff;
  color: #3a1d6e;
  font-weight: 700;
  cursor: pointer;
}
body.ter-consents .ter-consents-range-pop {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  width: 16.5rem;
  padding: 10px;
  border: 1px solid #e0d4f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(58, 29, 110, 0.14);
  white-space: normal;
}
body.ter-consents .ter-consents-range-year {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #3a1d6e;
  font-weight: 700;
}
body.ter-consents .ter-consents-range-year button,
body.ter-consents .ter-consents-range-months button {
  min-height: 32px;
  border: 1px solid #eadff5;
  border-radius: 8px;
  background: #fff;
  color: #3a1d6e;
  cursor: pointer;
}
body.ter-consents .ter-consents-range-year button {
  width: 32px;
  padding: 0;
}
body.ter-consents .ter-consents-range-months {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
body.ter-consents .ter-consents-range-months button.is-in {
  background: #f3eafb;
}
body.ter-consents .ter-consents-range-months button.is-end {
  border-color: #3a1d6e;
  background: #3a1d6e;
  color: #fff;
}
body.ter-consents .ter-consents-range-picked {
  margin: 8px 0;
  font-size: 12px;
  color: #5b2c8a;
}
body.ter-consents .ter-consents-range-pop .wf-btn {
  width: 100%;
}
body.ter-consents .ter-consents-filter label {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  white-space: nowrap;
}
body.ter-consents .ter-consents-filter input[type="month"] {
  display: inline-block;
  width: auto;
  min-width: 9.5em;
  margin: 0;
  flex: 0 0 auto;
}
body.ter-consents .ter-consents-filter .wf-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
body.ter-consents .ter-consents-scroll {
  overflow-x: auto;
  max-width: 100%;
}
body.ter-consents .ter-consents-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
body.ter-consents .ter-consents-table th,
body.ter-consents .ter-consents-table td {
  padding: 6px 6px;
  font-size: 12px;
  line-height: 1.3;
  vertical-align: middle;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
body.ter-consents .ter-consents-col-date { width: 5.4rem; }
body.ter-consents .ter-consents-col-house { width: 5.8rem; }
body.ter-consents .ter-consents-col-content { width: auto; }
body.ter-consents .ter-consents-col-worker { width: 7.2rem; }
body.ter-consents .ter-consents-col-applicant { width: 8.2rem; }
body.ter-consents .ter-consents-col-count { width: 2.6rem; }
body.ter-consents .ter-consents-col-actions { width: 7.6rem; }
body.ter-consents .ter-consents-date,
body.ter-consents .ter-consents-house,
body.ter-consents .ter-consents-count {
  white-space: nowrap;
  text-align: center;
}
body.ter-consents .ter-consents-content,
body.ter-consents .ter-consents-worker,
body.ter-consents .ter-consents-applicant {
  white-space: normal;
}
@media (max-width: 720px) {
  body.ter-consents .ter-consents-filter {
    flex-wrap: wrap;
    white-space: normal;
  }
  body.ter-consents .wf-page-head h1 {
    line-height: 1.35;
    white-space: normal;
  }
  body.ter-consents .ter-consents-table {
    width: max-content;
    min-width: 48rem;
  }
  body.ter-consents .ter-consents-table th {
    white-space: nowrap;
  }
}
@media (min-width: 720px) {
  body.wf-shell.ter-shell.ter-consents .wf-main {
    width: min(64rem, calc(100% - 24px));
    max-width: 64rem;
    overflow: visible;
  }
}
body.ter-consents .ter-consents-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0 0;
}
body.ter-consents .ter-consents-pager {
  display: flex;
  gap: 8px;
  margin: 0 0 0 auto;
}
body.ter-consents .ter-consents-table th.ter-consents-actions,
body.ter-consents .ter-consents-table td.ter-consents-actions {
  white-space: nowrap;
  vertical-align: middle;
}
body.ter-consents .ter-consents-table th.ter-consents-actions {
  text-align: center;
}
body.ter-consents .ter-consents-actions-row,
body.ter-consent-doc .ter-consent-doc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
body.ter-consents .ter-consents-actions-row form,
body.ter-consent-doc .ter-consent-doc-toolbar form {
  display: inline-flex;
  margin: 0;
}
body.ter-consents .ter-consents-actions-row {
  flex-wrap: nowrap;
  gap: 4px;
}
body.ter-consents .ter-consents-actions-row .wf-btn {
  min-height: 28px;
  padding: 3px 8px;
  font-size: 12px;
  white-space: nowrap;
}
body.wf-shell.ter-shell.ter-consent-doc {
  background: #e7eee9;
}
body.ter-consent-doc .ter-consent-doc-toolbar .wf-btn {
  min-height: 36px;
  padding: 6px 16px;
  border: 1px solid #cfe0d6;
  border-radius: 999px;
  background: #fff;
  color: #245c40;
}
body.ter-consent-doc .ter-consent-doc-toolbar .wf-btn-fill {
  border-color: #163828;
  background: #163828;
  color: #fff;
}
body.wf-shell.ter-shell.ter-consent-doc .wf-main {
  max-width: none;
  overflow-x: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
body.ter-consent-doc .ter-consent-doc-toolbar {
  width: 210mm;
  margin: 0 0 12px;
}
body.ter-consent-doc .wf-main > p.wf-muted {
  display: none;
}
body.ter-consent-doc .ter-consent-title-row {
  margin: 0 0 8mm;
  text-align: center;
}
body.ter-consent-doc .ter-consent-title-row h1 {
  margin: 0;
  padding: 0;
  border: 0;
  color: #163828;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.62em;
  text-indent: 0.62em;
  line-height: 1.3;
}
body.ter-consent-doc .ter-consent-title-row h1::after {
  content: "";
  display: block;
  width: 46%;
  height: 0;
  margin: 8px auto 0;
  border-top: 2px solid #1f6b45;
  border-bottom: 1px solid #b7d4c4;
}
body.ter-consent-doc .ter-consent-print-date {
  margin: 5mm 0 0;
  color: #5d7368;
  text-align: right;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}
body.ter-consent-doc .ter-consent-paper {
  width: 210mm;
  min-height: 297mm;
  box-sizing: border-box;
  margin: 0 auto 14px;
  padding: 0;
  border: 1px solid #d5e4db;
  border-radius: 2px;
  box-shadow: 0 16px 40px rgba(22, 56, 40, 0.08);
  background: #fff;
  color: #1c2b24;
}
body.ter-consent-doc .ter-consent-sheet {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 297mm;
  padding: 12mm 13mm 14mm;
  border: 0;
  background: #fff;
  color: #1c2b24;
}
body.ter-consent-doc .ter-consent-meta {
  width: 100%;
  margin: 0 0 7mm;
  border-collapse: collapse;
  color: #111;
}
body.ter-consent-doc .ter-consent-meta th,
body.ter-consent-doc .ter-consent-meta td {
  border: 1px solid #d5e4db;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  vertical-align: middle;
  color: #1c2b24;
  background: #fff;
}
body.ter-consent-doc .ter-consent-meta th {
  width: 7.4em;
  font-weight: 700;
  text-align: left;
  color: #245c40;
  background: #f4faf6;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
body.ter-consent-doc .ter-consent-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px 16px;
  margin-top: auto;
  padding-top: 8mm;
  border-top: 1px solid #d5e4db;
}
body.ter-consent-doc .ter-consent-printer {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #5d7368;
}
body.ter-consent-doc .ter-consent-addressee {
  margin: 0 0 0 auto;
  text-align: right;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #163828;
}
body.ter-consent-doc .ter-consent-dl {
  margin: 0;
}
body.ter-consent-doc .ter-consent-dl > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 13px;
}
body.ter-consent-doc .ter-consent-dl > div:last-child {
  border-bottom: 0;
}
body.ter-consent-doc .ter-consent-dl dt {
  flex: 0 0 auto;
  font-weight: 800;
  color: #111;
}
body.ter-consent-doc .ter-consent-dl dt::after {
  content: ":";
}
body.ter-consent-doc .ter-consent-dl dd {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-weight: 400;
  color: #555;
}
body.ter-consent-doc .ter-consent-dl > div.ter-consent-full-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  width: 100%;
  gap: 0;
  padding: 8px 0;
}
body.ter-consent-doc .ter-consent-dl > div.ter-consent-full-row dd {
  white-space: normal;
  overflow: visible;
  word-break: keep-all;
}
body.ter-consent-doc .ter-consent-dl > div.ter-consent-manager {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
}
body.ter-consent-doc .ter-consent-manager dt,
body.ter-consent-doc .ter-consent-manager dd {
  flex: 0 1 auto;
  width: auto;
  white-space: nowrap;
}
body.ter-consent-doc .ter-consent-dl > div.ter-consent-split-block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  row-gap: 0;
  padding: 0;
}
body.ter-consent-doc .ter-consent-split-block > div {
  display: contents;
}
body.ter-consent-doc .ter-consent-split-block dt,
body.ter-consent-doc .ter-consent-split-block dd {
  padding: 8px 0;
}
body.ter-consent-doc .ter-consent-split-block dt:nth-of-type(n+2),
body.ter-consent-doc .ter-consent-split-block dd:nth-of-type(n+2) {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
body.ter-consent-doc .ter-consent-clause {
  margin: 0 0 6mm;
  padding: 1mm 2mm;
  line-height: 1.9;
  font-size: 14px;
  white-space: normal;
  text-align: center;
  color: #111;
}
body.ter-consent-doc .ter-consent-clause p {
  margin: 0;
  text-align: center;
  text-indent: 0;
}
body.ter-consent-doc .ter-consent-clause-ask {
  margin-top: 3mm;
  text-align: center;
  text-indent: 0;
  letter-spacing: 0.12em;
  color: #163828;
}
body.ter-consent-doc .ter-consent-clause strong {
  font-weight: 700;
}
body.ter-consent-doc .ter-consent-ledger-label {
  margin: 0 0 2mm;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #245c40;
}
body.ter-consent-doc .ter-consent-scroll {
  overflow-x: auto;
}
body.ter-consent-doc .ter-consent-doc-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 12px;
  color: #111;
  background: #fff;
}
body.ter-consent-doc .ter-consent-doc-table th,
body.ter-consent-doc .ter-consent-doc-table td {
  border: 1px solid #d5e4db;
  white-space: nowrap;
  padding: 5px 6px;
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  color: #1c2b24;
  background: #fff;
}
body.ter-consent-doc .ter-consent-doc-table th {
  font-weight: 700;
  color: #163828;
  background: #e7f3ec;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
body.ter-consent-doc .ter-consent-doc-table th.is-split,
body.ter-consent-doc .ter-consent-doc-table td.is-split {
  border-left: 2px solid #8fbfa4;
}
body.ter-consent-doc .ter-consent-doc-table td.is-no {
  color: #9a3412;
  font-weight: 700;
}
body.ter-consent-doc .ter-consent-sign {
  display: block;
  height: 28px;
  width: auto;
  max-width: 72px;
  margin: 0 auto;
  background: #fff;
}
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }
  body.wf-shell.ter-shell.ter-consent-doc {
    background: #fff;
  }
  body.ter-consent-doc .ter-consent-dl > div {
    width: 100%;
  }
  body.ter-consent-doc .ter-consent-dl > div.ter-consent-manager {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
  }
  body.ter-consent-doc .ter-consent-manager dt,
  body.ter-consent-doc .ter-consent-manager dd {
    flex: 0 1 auto;
    width: auto;
    white-space: nowrap;
  }
  body.ter-consent-doc .ter-consent-dl > div.ter-consent-split-block {
    grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
  }
  body.ter-consent-doc .ter-consent-split-block dt:nth-of-type(n+2),
  body.ter-consent-doc .ter-consent-split-block dd:nth-of-type(n+2) {
    border-top: none;
  }
  body.ter-consent-doc .ter-consent-split-block dt:nth-of-type(n+3),
  body.ter-consent-doc .ter-consent-split-block dd:nth-of-type(n+3) {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }
  body.ter-consent-doc .ter-consent-split-block dt:nth-of-type(even) {
    justify-self: center;
  }
  body.ter-consent-doc .ter-consent-clause {
    white-space: normal;
  }
  body.ter-consent-doc .wf-top,
  body.ter-consent-doc .ter-consent-doc-toolbar,
  body.ter-consent-doc .wf-modal {
    display: none !important;
  }
  body.ter-consent-doc .wf-main {
    max-width: none;
    padding: 0;
    display: block;
  }
  body.ter-consent-doc .ter-consent-paper {
    width: auto;
    min-height: calc(297mm - 24mm);
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    color: #1c2b24;
  }
  body.ter-consent-doc .ter-consent-sheet {
    min-height: calc(297mm - 24mm);
    padding: 0;
  }
  body.ter-consent-doc .ter-consent-meta th,
  body.ter-consent-doc .ter-consent-doc-table th {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body.ter-consent-doc .ter-consent-footer {
    margin-top: auto;
  }
}

/* 관리자 로그인 — 신고인 로그인 구성, 보라색 톤 */
body.wf-shell.ter-shell.ter-login {
  background: #efeae4 url("/terior/static/login-office.jpg?v=20261117a") center / cover no-repeat;
}
body.ter-login .wf-main {
  position: relative;
  z-index: 1;
  align-items: center;
  min-height: calc(100dvh - 52px);
  padding-top: 28px;
  padding-bottom: 32px;
  background: transparent;
}
body.wf-shell.ter-shell.ter-login .ter-login-card {
  border: none;
  padding: 0 22px 22px;
  overflow: hidden;
  box-shadow: none;
  background: transparent;
}
body.ter-login .ter-login-logo-link {
  display: block;
  line-height: 0;
  text-decoration: none;
}
body.ter-login .ter-login-logo {
  display: block;
  width: calc(100% + 44px);
  max-width: none;
  height: auto;
  margin: 0 -22px 4px;
  padding: 8px 28px 0;
  box-sizing: border-box;
  background: transparent;
}
body.ter-login .ter-login-slogan {
  margin: 0 0 12px;
  padding: 6px 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: #3a1d6e;
  background: transparent;
  border-left: 3px solid rgba(58, 29, 110, 0.55);
  border-right: 3px solid rgba(58, 29, 110, 0.55);
}
body.ter-login .wf-form {
  width: 100%;
  max-width: 100%;
}
body.ter-login .wf-form > label {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 8px;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 13px;
}
body.ter-login .wf-form > label > .ter-field-name {
  grid-column: 1;
  justify-self: end;
  display: block;
  line-height: 1.2;
}
body.ter-login .ter-login-field {
  grid-column: 2;
  width: min(220px, 62vw);
  position: relative;
  display: block;
  min-width: 0;
}
body.ter-login .ter-login-field .ter-ico {
  position: absolute;
  left: 8px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  color: #8a6aad;
  pointer-events: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: miter;
  stroke-linecap: square;
}
body.ter-login .ter-login-id {
  display: flex;
  align-items: center;
  gap: 0;
  box-sizing: border-box;
  border: 1px solid #c9b3e6;
  background: #fff;
  padding-left: 26px;
}
body.ter-login .wf-form input {
  border-color: #c9b3e6;
  background: #fff;
  padding: 8px 10px 8px 26px;
  margin-top: 0;
}
body.wf-shell.ter-shell.ter-login .ter-login-id input[name="login_digits"] {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 8px 10px 8px 8px;
  margin: 0;
  letter-spacing: 0;
}
body.ter-login .ter-login-id:focus-within {
  outline: 2px solid rgba(91, 44, 138, 0.28);
  outline-offset: 1px;
  border-color: #5b2c8a;
}
body.ter-login .ter-login-id input:focus {
  outline: none;
  border-color: transparent;
}
body.ter-login .wf-form input:focus {
  outline: 2px solid rgba(91, 44, 138, 0.28);
  outline-offset: 1px;
  border-color: #5b2c8a;
}
body.ter-login .ter-login-group {
  margin: 0;
  padding: 14px 14px 16px;
  background: transparent;
  border: none;
  border-radius: 0;
}
body.ter-login .ter-login-group .wf-form {
  margin: 0;
}
body.ter-login .ter-login-card h1 {
  display: block;
  margin: 0 0 14px;
  padding: 0 0 10px;
  font-size: 16px;
  text-align: center;
  color: #3a1d6e;
  border-bottom: none;
}
body.ter-login .ter-login-card h1 span {
  display: block;
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
  color: #3a1d6e;
  letter-spacing: -0.03em;
}
body.ter-login .ter-login-actions {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  column-gap: 8px;
  margin-top: 14px;
  font-size: 13px;
}
body.ter-login .ter-login-action-row {
  grid-column: 2;
  width: min(220px, 62vw);
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}
body.ter-login .ter-login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1 1 0;
  box-sizing: border-box;
  margin: 0;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(58, 29, 110, 0.12);
  background: var(--ter-fill);
  border: 1px solid var(--ter-fill);
  color: #fff;
}
body.ter-login .ter-login-submit .ter-ico {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
body.ter-login .ter-login-submit:hover {
  background: #4a2473;
  border-color: #4a2473;
}
body.ter-login .ter-login-submit:active {
  background: #3d1d61;
  border-color: #3d1d61;
}
body.ter-login .ter-login-submit:focus-visible {
  outline: 2px solid var(--ter-line);
  outline-offset: 2px;
}

/* 관리자 업무 화면 — 하자점검 상세와 같은 카드 */
body.wf-shell.ter-shell:not(.ter-login):not(.ter-consent-doc):not(.ter-notice-doc):not(.ter-complete-doc):not(.ter-def-work) .wf-main {
  width: min(32rem, calc(100% - 24px));
  max-width: 32rem;
  margin: 16px auto 28px;
  padding: 0 14px 16px;
  background: #fff;
  border: 1px solid #e0d4f0;
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(58, 29, 110, 0.08);
}
body.wf-shell.ter-shell.ter-workers:not(.ter-login):not(.ter-consent-doc):not(.ter-notice-doc):not(.ter-complete-doc):not(.ter-def-work) .wf-main,
body.wf-shell.ter-shell.ter-residents:not(.ter-login):not(.ter-consent-doc):not(.ter-notice-doc):not(.ter-complete-doc):not(.ter-def-work) .wf-main,
body.wf-shell.ter-shell.ter-status:not(.ter-status-view):not(.ter-login):not(.ter-consent-doc):not(.ter-notice-doc):not(.ter-complete-doc):not(.ter-def-work) .wf-main,
body.wf-shell.ter-shell.ter-notice:not(.ter-notice-doc):not(.ter-login):not(.ter-consent-doc):not(.ter-complete-doc):not(.ter-def-work) .wf-main,
body.wf-shell.ter-shell.ter-complete:not(.ter-complete-doc):not(.ter-login):not(.ter-consent-doc):not(.ter-notice-doc):not(.ter-def-work) .wf-main,
body.wf-shell.ter-shell.ter-owner-form:not(.ter-login):not(.ter-consent-doc):not(.ter-notice-doc):not(.ter-complete-doc):not(.ter-def-work) .wf-main {
  width: min(56rem, calc(100% - 24px));
  max-width: 56rem;
}
body.wf-shell.ter-shell.ter-codes:not(.ter-login):not(.ter-consent-doc):not(.ter-notice-doc):not(.ter-complete-doc):not(.ter-def-work) .wf-main {
  width: min(56rem, calc(100% - 24px));
  max-width: 56rem;
  overflow-x: visible;
}
body.ter-codes .ter-codes-table {
  width: 100%;
  table-layout: fixed;
}
@media (min-width: 960px) {
  body.wf-shell.ter-shell.ter-consents:not(.ter-login):not(.ter-consent-doc):not(.ter-notice-doc):not(.ter-complete-doc):not(.ter-def-work) .wf-main {
    width: min(64rem, calc(100% - 48px));
    max-width: 64rem;
  }
  body.ter-consents .ter-consents-scroll {
    overflow: visible;
  }
  body.ter-consents .ter-consents-col-date { width: 8.4375%; }
  body.ter-consents .ter-consents-col-house { width: 9.0625%; }
  body.ter-consents .ter-consents-col-content { width: 32%; }
  body.ter-consents .ter-consents-col-worker { width: 11.25%; }
  body.ter-consents .ter-consents-col-applicant { width: 12.8125%; }
  body.ter-consents .ter-consents-col-count { width: 6.0625%; }
  body.ter-consents .ter-consents-col-actions { width: 20.375%; }
  body.ter-consents .ter-consents-table th.ter-consents-count {
    white-space: nowrap;
  }
}
body.wf-shell.ter-shell:not(.ter-login):not(.ter-consent-doc):not(.ter-notice-doc):not(.ter-complete-doc):not(.ter-def-work) .wf-main > h1,
body.wf-shell.ter-shell:not(.ter-login):not(.ter-consent-doc):not(.ter-notice-doc):not(.ter-complete-doc):not(.ter-def-work) .wf-page-head,
body.ter-menu .ter-menu-head {
  margin: 0 -14px 14px;
  padding: 12px 14px;
  border: 0;
  border-radius: 17px 17px 0 0;
  background: #f3eafb;
}
body.wf-shell.ter-shell:not(.ter-login):not(.ter-consent-doc):not(.ter-notice-doc):not(.ter-complete-doc):not(.ter-def-work) .wf-page-head h1,
body.ter-menu .ter-menu-head h1 {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3a1d6e;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
body.wf-shell.ter-shell:not(.ter-login):not(.ter-consent-doc):not(.ter-notice-doc):not(.ter-complete-doc):not(.ter-def-work) .wf-main > h1 {
  border-bottom: 1px solid #e0d4f0;
  color: #3a1d6e;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
body.ter-menu {
  position: relative;
  min-height: 100dvh;
}
body.ter-menu::before,
body.ter-menu::after {
  display: none;
}
body.ter-menu .wf-frame {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body.wf-shell.ter-shell.ter-menu:not(.ter-login):not(.ter-consent-doc):not(.ter-notice-doc):not(.ter-complete-doc):not(.ter-def-work) .wf-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0 10px 10px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
body.ter-menu .ter-menu-head {
  flex: 0 0 auto;
  margin: 0 -10px 6px;
  padding: 8px 12px;
}
body.ter-menu .ter-menu-user {
  margin: 0 0 0 8px;
  font-size: 13px;
}
body.ter-menu .ter-menu-group {
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0 0 8px;
}
body.ter-menu .ter-menu-group:nth-of-type(1),
body.ter-menu .ter-menu-group:nth-of-type(2) {
  flex: 1 1 0;
}
body.ter-menu .ter-menu-group:nth-of-type(3) {
  flex: 3.2 1 0;
  margin-bottom: 0;
}
body.ter-menu .ter-menu-group-title {
  flex: 0 0 auto;
  margin: 0 0 4px;
  padding: 0 0 3px;
  font-size: 13px;
  letter-spacing: 0.08em;
}
body.ter-menu .ter-menu-grid {
  flex: 1 1 auto;
  align-content: stretch;
  grid-auto-rows: 1fr;
  gap: 8px;
}
body.ter-menu .ter-menu-tile {
  height: 100%;
  min-height: 0;
}
body.ter-menu .ter-menu-face {
  gap: 6px;
  padding: 8px 6px;
  min-height: 0;
  height: 100%;
}
body.ter-menu .ter-menu-emoji {
  font-size: 26px;
}
body.ter-menu .ter-menu-label {
  font-size: 14px;
  line-height: 1.25;
}
@media (min-width: 960px) {
  body.ter-menu {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    --ter-tile: min(9.25rem, calc((100vw - 96px) / 3), calc((100dvh - 248px) / 5));
  }
  body.ter-menu::before {
    display: block;
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.07;
    background-color: transparent;
    background-image:
      url("/terior/static/menu-bg-apt.webp?v=ter-20261208b"),
      url("/terior/static/menu-bg-home.webp?v=ter-20261208b");
    background-repeat: no-repeat;
    background-position: 10% center, 90% center;
    background-size: min(40vw, 640px) auto, min(40vw, 640px) auto;
  }
  body.ter-menu .wf-frame {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
  body.wf-shell.ter-shell.ter-menu:not(.ter-login):not(.ter-consent-doc):not(.ter-notice-doc):not(.ter-complete-doc):not(.ter-def-work) .wf-main {
    flex: 1 1 auto;
    min-height: 0;
    width: min(72rem, calc(100% - 32px));
    max-width: 72rem;
    margin: 6px auto 8px;
    padding: 0 8px 4px;
    overflow: hidden;
  }
  body.ter-menu .ter-menu-head {
    margin-bottom: 4px;
    padding: 6px 12px;
  }
  body.ter-menu .ter-menu-group,
  body.ter-menu .ter-menu-group:nth-of-type(1),
  body.ter-menu .ter-menu-group:nth-of-type(2),
  body.ter-menu .ter-menu-group:nth-of-type(3) {
    flex: 0 0 auto;
    margin-bottom: 6px;
  }
  body.ter-menu .ter-menu-group-title {
    margin: 0 0 3px;
    font-size: 12px;
  }
  body.ter-menu .ter-menu-grid {
    flex: 0 0 auto;
    width: max-content;
    margin-inline: auto;
    grid-template-columns: repeat(3, var(--ter-tile));
    grid-auto-rows: var(--ter-tile);
    justify-content: center;
    gap: 8px;
  }
  body.ter-menu .ter-menu-tile {
    width: var(--ter-tile);
    height: var(--ter-tile);
    aspect-ratio: 1;
  }
  body.ter-menu .ter-menu-face {
    height: 100%;
    min-height: 0;
    padding: 8px 6px;
    gap: 4px;
  }
  body.ter-menu .ter-menu-emoji {
    font-size: 18px;
  }
  body.ter-menu .ter-menu-label {
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    white-space: nowrap;
  }
  body.ter-menu .ter-menu-label-multiline {
    white-space: normal;
  }
}
body.wf-shell.ter-shell .wf-btn {
  min-height: 34px;
  padding: 5px 14px;
  border: 1px solid #d5c8ea;
  border-radius: 999px;
  background: #fff;
  color: #5b2c8a;
}
body.wf-shell.ter-shell .wf-btn-fill {
  border-color: #3a1d6e;
  background: #3a1d6e;
  color: #fff;
}
body.wf-shell.ter-shell .wf-btn-fill:hover {
  background: #4a2473;
  border-color: #4a2473;
}
body.wf-shell.ter-shell .wf-list-foot a.ter-list-back {
  flex: 0 0 auto;
  min-width: 5.5rem;
  text-align: center;
  background: #3a1d6e;
  border-color: #3a1d6e;
  color: #fff;
}
body.wf-shell.ter-shell .wf-list-foot a.ter-list-back:hover {
  background: #4a2473;
  border-color: #4a2473;
  color: #fff;
}
body.wf-shell.ter-shell:not(.ter-consent-doc):not(.ter-notice-doc):not(.ter-complete-doc):not(.ter-login) .wf-table {
  border: 1px solid #eadff5;
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
}
body.wf-shell.ter-shell:not(.ter-consent-doc):not(.ter-notice-doc):not(.ter-complete-doc):not(.ter-login) .wf-table th,
body.wf-shell.ter-shell:not(.ter-consent-doc):not(.ter-notice-doc):not(.ter-complete-doc):not(.ter-login) .wf-table td {
  border-color: #f0e8f7;
  padding: 7px 8px;
  font-size: 13px;
}
body.wf-shell.ter-shell:not(.ter-status):not(.ter-consent-doc):not(.ter-notice-doc):not(.ter-complete-doc):not(.ter-login) .wf-table th {
  background: #faf7fd;
  color: #5b2c8a;
}
body.wf-shell.ter-shell:not(.ter-login):not(.ter-consent-doc):not(.ter-notice-doc):not(.ter-complete-doc) .wf-form.wf-box {
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  box-shadow: none;
}
body.wf-shell.ter-shell .wf-form input,
body.wf-shell.ter-shell .wf-form select,
body.wf-shell.ter-shell .wf-form textarea {
  border: 1px solid #d5c8ea;
  border-radius: 10px;
}
body.ter-emp-form .wf-form > label > .ter-pwd-wrap {
  grid-column: 2;
  min-width: 0;
}
body.ter-emp-form .ter-pwd-wrap > input {
  display: block;
  width: 100%;
  margin-top: 0;
  box-sizing: border-box;
}
body.ter-emp-form .ter-pwd-hint {
  display: block;
  min-height: 1.2em;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
}
body.ter-emp-form .ter-pwd-hint.is-ok {
  color: #1f6b42;
}
body.ter-emp-form .ter-pwd-hint.is-bad {
  color: #a33b3b;
}
body.ter-emp-form .ter-pwd-wrap > input.is-ok {
  border-color: #2f7a52;
}
body.ter-emp-form .ter-pwd-wrap > input.is-bad {
  border-color: #a33b3b;
  background: #fff6f6;
}
body.wf-shell.ter-shell .wf-form-inline {
  border: 0;
  padding: 0;
  margin-bottom: 12px;
}
body.wf-shell.ter-shell .wf-tile {
  border: 1px solid #e0d4f0;
  border-radius: 14px;
  background: #fff;
}
body.wf-shell.ter-shell .wf-nav-back a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid #e0d4f0;
  border-radius: 999px;
  background: #fff;
  color: #5b2c8a;
  text-decoration: none;
}
