Files
Pier_v1/src/style.css
T
ypshimandClaude Haiku 5.5 b06bf368b6 feat(abut-rebar): ③ 교대 화면 틀과 확대기초 배근 카드
- ③에서 교대를 고르면 부재 · 교대 목록(받침블럭 → 벽체 → 흉벽·브라켓 → 확대기초 → 날개벽 → 접속슬래브)과 카드를 보여 줌.
  확대기초만 규칙이 있고 나머지는 '다음 단계'. 선택한 교대만 3D에 그림
- 확대기초 카드: 보기 탭 3개(교대축 직각 단면 · 교대축 단면 · 상면 평면)와 번호 풍선 강조, 범례,
  기본간격 · 배근 방향 ① / ② · 피복 · 여유 · B9 배수 입력, 자동 값(cycle 간격 · B10 위 여유 · l_s · 옆붙임),
  철근표(묶음별 실간격 수정 · 수정됨 · 되돌리기, 비고 펼치기), 근거 줄, RB-AF 알림
- 입력은 AbutRecord.rebar.footing에 바꾼 값만 저장 · 프로젝트 파일 검증. fck는 공통 설정의 기초부 값

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-04 11:12:43 +09:00

967 lines
37 KiB
CSS

/* Tokens from 시안 (RAG/Pierzainer UI 시안 (1).html): background, primary action, dimension colour. */
:root {
--bg: #faf9f5;
--panel: #ffffff;
--text: #1d2733;
--muted: #5b6878;
--line: #d9d6cc;
--primary: #1f5fa8;
--dim: #4a5868;
--warn: #8a5300;
--error: #9b2c2c;
--focus: 2px solid #1f5fa8;
color-scheme: light;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
background: var(--bg);
color: var(--text);
font: 14px/1.5 system-ui, 'Noto Sans KR', sans-serif;
}
h2 {
font-size: 16px;
margin: 0 0 10px;
}
h3 {
font-size: 14px;
margin: 0 0 6px;
}
h4 {
font-size: 13px;
margin: 12px 0 6px;
color: var(--muted);
}
.muted {
color: var(--muted);
}
.small {
font-size: 12px;
}
button,
select,
input {
font: inherit;
min-height: 44px;
}
button:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible {
outline: var(--focus);
outline-offset: 2px;
}
.btn {
border: 1px solid var(--line);
border-radius: 6px;
background: var(--panel);
color: var(--text);
padding: 0 14px;
cursor: pointer;
}
.btn.small {
min-height: 44px;
padding: 0 10px;
}
.btn.primary {
background: var(--primary);
border-color: var(--primary);
color: #fff;
}
.btn:disabled {
opacity: 0.45;
cursor: not-allowed;
}
.btn[aria-pressed='true'] {
border-color: var(--primary);
color: var(--primary);
font-weight: 600;
}
/* --- header ------------------------------------------------------------- */
.app {
min-height: 100vh;
display: flex;
flex-direction: column;
}
.top {
display: flex;
flex-wrap: wrap;
gap: 12px;
align-items: center;
justify-content: space-between;
padding: 10px 16px;
background: var(--panel);
border-bottom: 1px solid var(--line);
}
.brand {
display: flex;
gap: 10px;
align-items: baseline;
}
.brand strong {
font-size: 16px;
}
.steps {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.step {
padding: 8px 12px;
border: 1px solid var(--line);
border-radius: 6px;
color: var(--muted);
}
.step.current {
border-color: var(--primary);
color: var(--text);
font-weight: 600;
}
.step em {
font-style: normal;
font-weight: 400;
color: var(--muted);
margin-left: 4px;
}
.actions {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.status-line {
margin: 0;
padding: 8px 16px;
color: var(--muted);
font-size: 13px;
}
/* --- layout ------------------------------------------------------------- */
.grid {
display: grid;
grid-template-columns: 260px minmax(0, 1fr) 320px;
gap: 12px;
padding: 0 16px 12px;
flex: 1;
}
.panel {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 8px;
padding: 12px;
min-width: 0;
}
.inputs {
margin: 0 16px 16px;
}
/* --- pier list ---------------------------------------------------------- */
.pier-tools {
display: flex;
gap: 8px;
align-items: center;
margin-bottom: 8px;
flex-wrap: wrap;
}
.pier-tools label {
display: flex;
gap: 6px;
align-items: center;
}
select {
padding: 4px 8px;
border: 1px solid var(--line);
border-radius: 6px;
background: var(--panel);
color: var(--text);
}
.pier-items {
list-style: none;
padding: 0;
margin: 0;
max-height: 300px;
overflow-y: auto;
/* The side panel is a flex column; without this the list shrinks to 0 height and shows no rows. */
flex-shrink: 0;
}
/* Rows: name + badge (2 columns). Rows with a checkbox get a 28 px first column. */
.pier-items li {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: center;
gap: 8px;
border-bottom: 1px solid var(--line);
border-radius: 6px;
padding: 2px 6px 2px 0;
}
.pier-items li:has(> input[type='checkbox']) {
grid-template-columns: 28px minmax(0, 1fr) auto;
gap: 6px;
}
.pier-items input[type='checkbox'] {
width: 28px;
height: 28px;
margin: 8px;
}
.pier-name {
border: 0;
background: none;
text-align: left;
color: var(--text);
cursor: pointer;
padding: 0 4px;
}
.pier-name[aria-pressed='true'] {
color: var(--primary);
font-weight: 700;
}
.badge {
font-size: 12px;
color: var(--muted);
}
.badge.error {
color: var(--error);
font-weight: 600;
}
/* --- viewer ------------------------------------------------------------- */
.viewer-head {
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
margin-bottom: 8px;
}
.viewer-head h2 {
margin: 0;
}
.views {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.views .btn {
min-width: 64px;
}
#origin {
margin-left: auto;
font-size: 12px;
}
.canvas {
width: 100%;
height: 62vh;
min-height: 420px;
border-radius: 6px;
overflow: hidden;
background: #e9eef4;
}
.rebar-table tbody tr { cursor: pointer; }
.rebar-table tr.hl td { background: #fff3cc; }
.rebar-table .bar-no { font-weight: 700; }
.parts {
border: 1px solid var(--line);
border-radius: 6px;
margin: 10px 0 0;
padding: 6px 10px;
}
.parts legend {
color: var(--muted);
font-size: 12px;
padding: 0 4px;
}
.parts-row {
display: flex;
gap: 4px;
flex-wrap: wrap;
}
.parts-row label {
display: flex;
align-items: center;
gap: 6px;
min-height: 44px;
padding: 0 8px;
}
.parts-row input {
width: 22px;
height: 22px;
}
/* --- results ------------------------------------------------------------ */
.results section {
border-bottom: 1px solid var(--line);
padding-bottom: 8px;
margin-bottom: 8px;
}
.kv {
display: grid;
grid-template-columns: 1fr;
gap: 2px 8px;
margin: 0;
}
.kv.wide {
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.kv div {
display: flex;
justify-content: space-between;
gap: 8px;
border-bottom: 1px dotted var(--line);
padding: 2px 0;
}
.kv dt {
color: var(--muted);
}
.kv dd {
margin: 0;
text-align: right;
}
.issues {
padding-left: 18px;
margin: 0;
}
.issues li {
margin-bottom: 6px;
}
.issues .code {
font-weight: 700;
color: var(--warn);
}
.issues .code.E {
color: var(--error);
}
details {
margin-top: 8px;
}
summary {
cursor: pointer;
min-height: 44px;
display: flex;
align-items: center;
}
/* --- import dialog (④) --------------------------------------------------- */
#import-dialog {
width: min(1140px, 96vw);
max-height: 92vh;
padding: 0;
border: 1px solid var(--line);
border-radius: 10px;
background: var(--panel);
color: var(--text);
}
#import-dialog::backdrop {
background: rgba(20, 28, 38, 0.35);
}
.dlg-head {
display: flex;
flex-wrap: wrap;
gap: 12px;
align-items: center;
padding: 12px 16px;
border-bottom: 1px solid var(--line);
}
.dlg-head h2 {
margin: 0;
}
.dlg-steps {
display: flex;
gap: 8px;
list-style: none;
padding: 0;
margin: 0;
flex: 1;
color: var(--muted);
font-size: 13px;
}
.dlg-steps li {
padding: 4px 10px;
border-radius: 999px;
background: #f0eee6;
}
.dlg-body {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: 16px;
padding: 16px;
overflow: auto;
max-height: 70vh;
}
.dlg-col section {
margin-bottom: 16px;
}
.field {
display: grid;
gap: 4px;
margin-bottom: 8px;
font-size: 13px;
}
.field input {
border: 1px solid var(--line);
border-radius: 6px;
padding: 4px 8px;
background: var(--panel);
color: var(--text);
}
.drop {
border: 2px dashed var(--line);
border-radius: 8px;
padding: 16px;
text-align: center;
}
.drop.over {
border-color: var(--primary);
}
.drop p {
margin: 0 0 8px;
}
.drop-actions {
display: flex;
gap: 8px;
justify-content: center;
flex-wrap: wrap;
}
.sheet-list {
list-style: none;
padding: 0;
margin: 0;
}
.sheet-list > li {
border: 1px solid var(--line);
border-radius: 6px;
padding: 8px;
margin-bottom: 8px;
}
.sheet-list .ok {
color: var(--primary);
font-weight: 600;
}
.sheet-list .bad {
color: var(--error);
font-weight: 600;
}
.sheet-pier {
display: flex;
align-items: center;
gap: 8px;
min-height: 44px;
}
.sheet-pier input {
width: 24px;
height: 24px;
}
.rules {
margin: 0;
padding-left: 18px;
font-size: 13px;
}
table {
border-collapse: collapse;
width: 100%;
font-size: 13px;
}
.terms th {
text-align: left;
width: 40%;
color: var(--muted);
font-weight: 400;
padding: 4px 6px;
border-bottom: 1px solid var(--line);
}
.terms td {
padding: 4px 6px;
border-bottom: 1px solid var(--line);
}
.grid-table th,
.grid-table td {
border-bottom: 1px solid var(--line);
padding: 4px 6px;
text-align: right;
white-space: nowrap;
}
.grid-table th {
color: var(--muted);
font-weight: 400;
}
.dlg-foot {
display: flex;
gap: 8px;
align-items: center;
justify-content: flex-end;
padding: 12px 16px;
border-top: 1px solid var(--line);
flex-wrap: wrap;
}
#dlg-selected {
margin-right: auto;
}
@media (max-width: 1100px) {
.grid {
grid-template-columns: 1fr;
}
.dlg-body {
grid-template-columns: 1fr;
}
.canvas {
height: 60vh;
}
}
/* Input cards (2단계 C2): changed values are outlined in orange, with the imported default beside them. */
.edit-card { margin-top: 12px; border-top: 1px solid #d5dde6; padding-top: 10px; }
.edit-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; flex-wrap: wrap; }
.edit-row label { min-width: 150px; }
.edit-row input { width: 110px; padding: 4px 6px; border: 1px solid #b9c4d0; border-radius: 4px; }
.edit-row.changed input { border: 2px solid #e8833a; background: #fff6ee; }
.edit-row.changed label { color: #a4530e; }
/* ---- 시안 ① 디자인 반영 (RAG/Pierzainer UI 시안 (1).html) ---- */
body { background: #eef1f4; font-family: 'Noto Sans KR', system-ui, sans-serif; }
.top { background: #18212b; color: #ffffff; padding: 10px 24px; }
.top .brand strong { font-size: 18px; letter-spacing: 0.01em; }
.top .brand > span:not(.proj) { font-size: 12px; color: #b8c2ce; }
.proj { padding-left: 14px; border-left: 1px solid #33404f; color: #ffffff; font-size: 13px; font-weight: 700; }
.steps .step { color: #dce3ea; min-height: 44px; padding: 4px 14px; border-radius: 6px; background: transparent; border: 0; }
.steps .step.current { background: #ffffff; color: #18212b; }
.steps .step em { font-style: normal; color: #b8c2ce; font-size: 12px; }
.steps .step.current em { color: #55606e; }
.steps .step[aria-disabled='true'] em { color: #b8c2ce; }
.savest { color: #f2c48d; font-size: 12px; }
.actions { color: #ffffff; }
.btn-s, .btn-p, .btn-o { display: inline-flex; align-items: center; font-family: inherit; font-size: 13px; min-height: 44px; border-radius: 6px; cursor: pointer; box-sizing: border-box; text-decoration: none; }
.btn-s { padding: 0 14px; border: 1px solid #8c99a8; background: transparent; color: #ffffff; }
.btn-s:hover { border-color: #c3cbd4; }
.btn-s:disabled { opacity: 0.45; cursor: default; }
.btn-p { padding: 0 16px; border: 0; background: #1f5fa8; color: #ffffff; font-weight: 700; font-size: 14px; }
.btn-p:hover:not(:disabled) { background: #174c88; }
.btn-p:disabled { opacity: 0.45; cursor: default; }
.btn-o { padding: 0 12px; min-height: 40px; border: 1px solid #1f5fa8; background: #ffffff; color: #1f5fa8; }
.btn-o:hover:not(:disabled) { background: #f2f7fc; color: #123e70; }
.btn-o:disabled { opacity: 0.45; cursor: default; }
.lnk { font-size: 12px; color: #1f5fa8; background: none; border: 0; min-height: 36px; padding: 0 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lbl { font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: #55606e; margin: 0 0 8px; }
.panel { background: #ffffff; border: 1px solid #d5dbe2; border-radius: 8px; padding: 16px; }
.piers { display: flex; flex-direction: column; gap: 6px; }
.pier-tools { display: flex; align-items: center; gap: 8px; padding: 0 4px 8px; }
.pier-tools select { border: 1px solid #c3cbd4; border-radius: 6px; background: #ffffff; min-height: 36px; }
.phead { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 0 10px 6px; font-size: 12px; color: #55606e; border-bottom: 1px solid #d5dbe2; }
.pier-items li:has(.pier-name[aria-pressed='true']) { background: #e3edf8; }
.pier-name { width: 100%; border: 0; background: transparent; color: #18212b; text-align: left; font-size: 13px; min-height: 44px; padding: 0 6px; }
.pier-name[aria-pressed='true'] { color: #123e70; font-weight: 700; }
.badge { font-size: 12px; border-radius: 10px; padding: 2px 8px; background: #e2f2e7; color: #1d6b3a; white-space: nowrap; }
.badge.error { background: #fde2e2; color: #9b2c2c; }
.pnote { font-size: 12px; color: #55606e; margin: 8px 4px 0; line-height: 1.6; }
.bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 10px; border-radius: 6px; background: #f2f7fc; font-size: 13px; color: #123e70; }
.bulk .grow { flex: 1 1 auto; }
.pier-input { margin-top: 14px; border-top: 1px solid #d5dbe2; padding-top: 12px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #e6eaef; font-size: 13px; }
.kv dt { color: #55606e; }
.kv dd { margin: 0; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; text-align: right; }
.views { display: flex; gap: 2px; background: #eef1f4; border-radius: 6px; padding: 2px; }
.views .btn { min-height: 40px; padding: 0 14px; border: 0; border-radius: 4px; background: transparent; color: #18212b; }
.views .btn[aria-pressed='true'] { background: #1f5fa8; color: #ffffff; font-weight: 700; }
.viewer-head { gap: 8px; }
.edit-card h3 { font-size: 12px; color: #55606e; }
/* 속성 복사 (시안 ⑥) */
.cp-items li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 6px 0; border-bottom: 1px solid #e6eaef; }
.cp-group { min-width: 110px; font-size: 12px; font-weight: 700; color: #55606e; }
.cp-targets { list-style: none; padding: 0; margin: 6px 0; max-height: 240px; overflow-y: auto; }
.cp-targets li { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.chk.disabled { opacity: 0.5; }
#cp-preview td, #cp-preview th { font-size: 12px; }
/* 형상계획 ② (plan.md C1) */
[hidden] { display: none !important; }
.members { list-style: none; padding: 0; margin: 0; }
.members li { margin: 2px 0; }
.members-title { margin-top: 14px; }
.member { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: #18212b; font-size: 13px; text-align: left; cursor: pointer; }
.member[aria-pressed='true'] { background: #e3edf8; color: #123e70; font-weight: 700; }
#member-fields { margin-top: 10px; }
#member-summary { color: #55606e; margin: 4px 0 8px; }
.plan .results { flex: 1 1 300px; max-width: 360px; }
/* 형상 선택칩 (C5) and the scrolling pier list (C6) */
.shape-options { display: grid; gap: 6px; margin: 6px 0 10px; }
.shape-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.shape-row .lbl { min-width: 84px; margin: 0; }
.chip-opt { min-height: 36px; padding: 0 10px; border: 1px solid #c3cbd4; border-radius: 16px; background: #ffffff; color: #18212b; font-size: 13px; cursor: pointer; }
.chip-opt[aria-pressed='true'] { background: #1f5fa8; border-color: #1f5fa8; color: #ffffff; font-weight: 700; }
.chip-opt:disabled { color: #8a95a3; background: #f2f4f7; border-style: dashed; cursor: default; }
/* 열별 본수 (C4) */
.pile-rows { margin-top: 10px; display: grid; gap: 6px; }
.pile-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pile-row .btn.small { min-width: 40px; }
.pile-row.warn { color: #8a4b00; }
.warn-text { color: #8a4b00; font-size: 12px; }
/* 철근표 (③): text columns read left to right, numbers right; the table scrolls sideways inside its panel. */
#rebar-table { overflow-x: auto; }
.rebar-table td,
.rebar-table th { text-align: left; }
.rebar-table td:nth-child(9),
.rebar-table td:nth-child(10),
.rebar-table th:nth-child(9),
.rebar-table th:nth-child(10) { text-align: right; }
.rebar-table td:nth-child(12) { white-space: normal; min-width: 240px; }
/* 3D viewer shared by ①, ②, ③: the slot takes the full width above the other columns */
.viewer-slot { flex: none; width: 100%; min-width: 0; }
.viewer-slot > .viewer { width: 100%; }
/* ② and ③ use the ① layout: list | model above the table | results */
.center-col { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.center-col > .viewer { flex: none; }
/* ③ 3D 색 기준 (spec §6.7): 조작 요소 44px */
.rebar-color { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.rebar-color button { min-height: 44px; min-width: 56px; padding: 0 12px; border: 1px solid #b9c4d0; border-radius: 6px; background: #fff; cursor: pointer; }
.rebar-color button[aria-pressed='true'] { background: #1f5fa8; border-color: #1f5fa8; color: #fff; }
.rebar-legend { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; font-size: 13px; }
.rebar-legend-item { display: flex; align-items: center; gap: 6px; }
.rebar-legend .swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; }
.rebar-color[hidden] { display: none; }
.viewer-head .rebar-color { margin: 0 auto; }
.rebar-select { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.rebar-select .btn { min-height: 44px; }
/* ④ 재료표 (승인 2026-10-23) */
.grid.quantity { grid-template-columns: 260px minmax(0, 1fr); }
.quantity .subtotal td { font-weight: 700; background: #f3f6fa; }
.quantity h3 { margin: 14px 0 4px; font-size: 15px; }
@media print {
@page { size: A4 landscape; margin: 10mm; }
body * { visibility: hidden; }
#view-quantity, #view-quantity * { visibility: visible; }
#view-quantity { position: absolute; left: 0; top: 0; width: 100%; padding: 0; }
#view-quantity .piers, #quantity-export, #quantity-print { display: none !important; }
.quantity .rebar-table { font-size: 10px; }
}
/* 상단: 상태 줄과 백업 배너를 한 줄에 (승인 2026-10-23) */
.status-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: 4px 16px; }
.status-row .status-line { padding: 0; margin: 0; }
.backup-inline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.backup-inline .btn.small { min-height: 44px; }
/* 알림 토스트: 일반 메시지는 4초 뒤 사라지고, 오류는 닫을 때까지 남음 */
.toast-host { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 50; max-width: min(360px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: 10px; background: #1b2733; color: #ffffff; padding: 10px 14px; border-radius: 6px; font-size: 13px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); }
.toast.error { background: #8a1c1c; }
.toast .btn { min-height: 44px; }
/* --- 고정 프레임 (승인 2026-10-23): 좌측 창 · 중앙 상단(모델) · 중앙 하단 · 우측 창, 각각 독립 스크롤 --- */
@media (min-width: 1101px) {
.app { height: 100vh; overflow: hidden; }
.top, .status-row { flex: none; }
.grid { flex: 1 1 auto; min-height: 0; height: auto; grid-template-rows: minmax(0, 1fr); padding-bottom: 12px; }
.grid > .panel, .grid > .center-col { min-height: 0; overflow: auto; }
.grid > #viewer-block { display: flex; flex-direction: column; }
.grid > #viewer-block .canvas { flex: 1 1 auto; height: auto; min-height: 240px; }
/* ②–④: the model keeps a fixed band at the top; the table scrolls below it. */
.center-col { display: grid; grid-template-rows: clamp(280px, 48vh, 560px) minmax(0, 1fr); gap: 12px; }
.viewer-slot { min-height: 0; height: 100%; display: flex; flex-direction: column; }
.viewer-slot > .viewer { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.viewer-slot .canvas { flex: 1 1 auto; height: auto; min-height: 180px; }
.center-col > .viewer { min-height: 0; overflow: auto; }
.rebar-table thead th, .quantity .rebar-table thead th { position: sticky; top: 0; background: #ffffff; z-index: 1; }
}
@media (max-width: 1100px) {
.app { min-height: 100vh; }
.grid { height: auto; }
.grid > .panel, .grid > .center-col { max-height: 60vh; overflow: auto; }
.center-col { display: flex; flex-direction: column; gap: 16px; }
.viewer-slot .canvas { height: 60vh; min-height: 420px; flex: none; }
.rebar-table thead th { position: sticky; top: 0; background: #ffffff; z-index: 1; }
}
/* 3D 영역 (승인 2026-10-23): 제목은 교각 목록으로. 좌측 스택(부재 표시 · 시점), 우측 스택(색 기준 · 원점)을 캔버스 위에 둠. */
#viewer-block { position: relative; }
#viewer-block .canvas { position: relative; }
#viewer-block .coordinate-axis { position: absolute; left: 14px; bottom: 14px; z-index: 4; width: 144px; padding: 8px; border: 1px solid rgba(148, 163, 184, 0.45); border-radius: 10px; background: rgba(255, 255, 255, 0.88); pointer-events: none; }
#viewer-block .coordinate-axis svg { display: block; width: 128px; height: 128px; margin: 0; overflow: visible; filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.95)); }
#viewer-block .coordinate-axis line { stroke-width: 1.8; stroke-linecap: round; opacity: 0.92; }
#viewer-block .coordinate-axis text { font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; font-size: 15px; font-weight: 500; letter-spacing: 0; paint-order: stroke; stroke: rgba(255, 255, 255, 0.96); stroke-width: 3.5px; stroke-linejoin: round; dominant-baseline: middle; }
#viewer-block .coordinate-axis .axis-e { stroke: #c9463a; fill: #c9463a; }
#viewer-block .coordinate-axis .axis-n { stroke: #316bb8; fill: #316bb8; }
#viewer-block .coordinate-axis .axis-el { stroke: #238a50; fill: #238a50; }
#viewer-block .coordinate-axis .axis-origin { fill: #ffffff; stroke: #596774; stroke-width: 2; }
#viewer-block .coordinate-axis-title { display: block; text-align: center; color: #475569; font-size: 11px; white-space: nowrap; }
#viewer-block .viewer-head { display: none; }
.viewer-stack { display: flex; flex-direction: column; gap: 8px; width: 168px; z-index: 5; pointer-events: none; }
.viewer-stack > * { pointer-events: auto; }
#viewer-block .viewer-stack-right { position: absolute; top: 8px; right: 8px; width: 180px; align-items: stretch; }
#viewer-block .info-panel { background: rgba(255, 255, 255, 0.92); border: 1px solid #d5dde6; border-radius: 6px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); padding: 0 8px 8px; font-size: 13px; }
#viewer-block .info-panel > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; color: #18212b; list-style-position: outside; }
#viewer-block .ground-map-options { display: flex; flex-direction: column; gap: 4px; }
#viewer-block .ground-map-options label { display: flex; align-items: center; gap: 8px; min-height: 36px; }
#viewer-block .ground-map-options input { width: 18px; height: 18px; }
#viewer-block .ground-map-info p { margin: 4px 0 0; }
#viewer-block .parts-info #parts label { display: flex; align-items: center; gap: 8px; min-height: 44px; }
#viewer-block .parts-info .parts-row { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
#viewer-block .color-info .rebar-color { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
#viewer-block .color-info .rebar-color button { width: 100%; }
#viewer-block .color-info .rebar-legend { flex-direction: column; gap: 4px; padding: 6px 0 0; }
#viewer-block .views-menu { position: relative; }
#viewer-block .views-toggle { width: 100%; min-height: 44px; font-weight: 700; background: #eef3f8; border: 1px solid #c3cbd4; border-radius: 6px; }
#viewer-block #views.views-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 10; display: flex; flex-direction: column; gap: 0; padding: 4px; margin-top: 4px; background: #ffffff; border: 1px solid #c3cbd4; border-radius: 6px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15); }
#viewer-block #views.views-list .btn { min-height: 44px; justify-content: flex-start; text-align: left; border: 0; background: transparent; }
#viewer-block #views.views-list .btn[aria-pressed='true'] { background: #1f5fa8; color: #ffffff; }
#viewer-block .origin-wrap { position: relative; align-self: flex-end; }
#viewer-block .info-btn { min-width: 44px; min-height: 44px; border: 1px solid #c3cbd4; border-radius: 6px; background: #ffffff; font-size: 16px; cursor: pointer; }
#viewer-block .origin-pop { position: absolute; top: 100%; right: 0; z-index: 10; margin-top: 4px; padding: 6px 10px; background: #ffffff; border: 1px solid #c3cbd4; border-radius: 6px; font-size: 12px; white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); }
#viewer-block .panel-state { font-weight: 400; color: #55606e; margin-left: 6px; font-size: 12px; }
@media (max-width: 600px) {
#viewer-block .viewer-head { display: flex; height: auto; margin: 0 0 8px; }
#viewer-block .viewer-stack { position: static; width: auto; margin-top: 8px; pointer-events: auto; }
#viewer-block .origin-wrap { align-self: flex-start; }
#viewer-block .viewer-stack-right { position: static; width: auto; }
}
/* ② 교량받침 reference tables (읽기 전용) */
.bearing-ref .table-scroll { overflow-x: auto; margin-bottom: 8px; }
.bearing-ref table { font-size: 12px; }
.bearing-ref input.changed-input { border: 2px solid #e8833a; background: #fff6ee; }
/* ② 확대기초·말뚝 그림 (2단계) */
.footing-drawings { display: grid; gap: 10px; margin-top: 12px; }
.footing-fig { margin: 0; }
.footing-fig svg { width: 100%; height: auto; max-height: 260px; background: #ffffff; border: 1px solid #d5dde6; border-radius: 6px; }
/* ② 말뚝 배치: 열별 본수 카드 · 평면도 · 정면을 한 줄에 (같은 축척). 1100px 이하는 정면을 아래 줄로, 800px 이하는 한 열로. */
.footing-grid { display: grid; grid-template-columns: minmax(220px, 280px) auto auto; gap: 12px; align-items: start; margin-top: 12px; }
.footing-grid .footing-fig svg { display: block; max-width: none; }
@media (max-width: 1100px) {
.footing-grid { grid-template-columns: minmax(220px, 280px) auto; }
.footing-grid .footing-fig:last-of-type { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
.footing-grid { grid-template-columns: 1fr; }
}
/* 교량받침 삽도: the plan on the left, the section on its right. Narrow screens stack both. */
.bearing-sketch { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr); gap: 12px; align-items: start; margin-top: 12px; }
.bearing-sketch figure { margin: 0; }
.bearing-sketch svg { display: block; width: 100%; max-width: none !important; height: auto; background: #ffffff; border: 1px solid #d5dde6; border-radius: 6px; }
@media (max-width: 800px) {
.bearing-sketch { grid-template-columns: 1fr; }
}
/* 입력값: one row per pier; the table scrolls sideways in the narrow left panel. */
.pier-table-wrap { overflow-x: auto; margin-bottom: 8px; }
#inputs-all { font-size: 12px; width: 100%; }
#inputs-all th, #inputs-all td { white-space: nowrap; padding: 4px 6px; }
#inputs-all tbody tr { cursor: pointer; }
#inputs-all tbody tr.active td { background: #e3edf8; font-weight: 700; }
/* Import preview: all piers' 받침·IP rows scroll inside the dialog. */
.pv-scroll { max-height: 240px; overflow: auto; }
/* 속성 복사: one line per target in the change summary. */
.copy-panel .cp-line { margin: 2px 0; font-size: 12px; }
/* 속성 복사: an inline panel at the bottom of the 부재별 편집창 (was a modal dialog). */
.copy-panel { margin-top: 12px; border-top: 1px solid #d5dde6; padding-top: 10px; }
.copy-panel .copy-head h3 { margin: 0 0 4px; font-size: 13px; }
.copy-panel .dlg-body { display: block; }
.copy-panel .dlg-col + .dlg-col { margin-top: 10px; }
.copy-panel .grid-table { font-size: 12px; display: block; overflow-x: auto; }
.copy-panel .copy-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-top: 10px; }
.copy-panel .cp-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.copy-panel .cp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.copy-panel .cp-chips .chk { border: 1px solid #d5dde6; border-radius: 6px; padding: 4px 8px; background: #fff; }
.copy-panel .cp-chips .chk:has(input:checked) { border-color: #1f5fa8; background: #e3edf8; }
.copy-panel .cp-chips .chk:has(input:disabled) { color: #8a94a3; background: #f4f6f9; }
.quantity-total { margin-bottom: 16px; }
/* 교대 삽도 (벽체·흉벽 개략 단면): fills the panel width; the labels follow the card's values. */
/* ② 형상계획: with an abutment selected, only the abutment card shows; the pier cards are hidden (2026-11-03). */
#view-plan.abut-selected .members-title,
#view-plan.abut-selected #members,
#view-plan.abut-selected section[aria-labelledby="member-title"],
#view-plan.abut-selected #copy-panel { display: none; }
/* ② 부재 · 교대 list: shown only while an abutment is selected (2026-11-03). */
.abut-members-title,
#abut-members { display: none; }
#view-plan.abut-selected .abut-members-title,
#view-plan.abut-selected #abut-members { display: block; }
#abut-members .pier-name span:first-child { display: block; }
/* 교대 형상 입력: a 3-column grid of input · default (시안 ②), the 확인 필요 notes at the end (2026-11-03). */
#abut-panel-plan-shape, #abut-panel-shape { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px 10px; align-items: center; }
#abut-panel-plan-shape > .abut-qa { grid-column: 1 / -1; }
.abut-qa { border-top: 1px solid #d5dbe2; padding-top: 8px; }
.abut-qa p { margin: 3px 0; }
/* 교대 구간 표 (시안 하단) and the 형상 card shown outside the collapsed editor (2026-11-03). */
#abut-panel-plan-shape.abut-shape-view { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px 10px; align-items: center; }
#abut-panel-plan-shape > .abut-seg { grid-column: 1 / -1; width: 100%; border-collapse: collapse; font-size: 12px; }
#abut-panel-plan-shape > .abut-seg th, #abut-panel-plan-shape > .abut-seg td { border-bottom: 1px solid #e6eaef; padding: 4px 6px; text-align: right; font-family: 'JetBrains Mono', ui-monospace, monospace; }
#abut-panel-plan-shape > .abut-seg th { color: #55606e; font-weight: 500; font-family: inherit; }
/* ② 교량받침 카드 (2026-11-03): tables and notes span the card; rule inputs use the 3-column grid; wide tables scroll sideways. */
#abut-panel-plan-bearings { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px 10px; align-items: center; }
#abut-panel-plan-bearings > p, #abut-panel-plan-bearings > table { grid-column: 1 / -1; }
#abut-panel-plan-bearings > .abut-seg { display: block; overflow-x: auto; border-collapse: collapse; font-size: 12px; }
#abut-panel-plan-bearings > .abut-seg th, #abut-panel-plan-bearings > .abut-seg td { border-bottom: 1px solid #e6eaef; padding: 4px 6px; text-align: right; white-space: nowrap; font-family: 'JetBrains Mono', ui-monospace, monospace; }
#abut-panel-plan-bearings > .abut-seg th { color: #55606e; font-weight: 500; font-family: inherit; }
/* ② 교대 카드 under the 3D view (2026-11-03): pickers, the three 받침 삽도 side by side, full-width rows. */
#abut-panel-plan .abut-bearing-figs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#abut-panel-plan .abut-fig { margin: 0; background: #f6f8fa; border: 1px solid #d5dbe2; border-radius: 6px; padding: 6px; }
#abut-panel-plan .abut-fig svg { display: block; width: 100%; height: auto; }
#abut-panel-plan > .edit-row { padding: 0 12px 10px; }
@media (max-width: 900px) { #abut-panel-plan .abut-bearing-figs { grid-template-columns: minmax(0, 1fr); } }
/* ② 벽체·흉벽 / 확대기초·말뚝 카드 (2026-11-03): the two 삽도 side by side, notes and tables across the card. */
#abut-panel-plan-footing.abut-shape-view { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px 10px; align-items: center; }
#abut-panel-plan .abut-wall-figs { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 10px; }
#abut-panel-plan-shape > p, #abut-panel-plan-shape > .abut-wall-figs { grid-column: 1 / -1; }
#abut-panel-plan .abut-note-warn { color: #8a5a00; }
#abut-panel-plan .abut-memo { background: #f6f8fa; border: 1px solid #d5dbe2; border-radius: 6px; padding: 8px; }
@media (max-width: 900px) { #abut-panel-plan .abut-wall-figs { grid-template-columns: minmax(0, 1fr); } }
/* ② 확대기초 · 말뚝 카드 (2026-11-04): the plan drawing, notes and the 열별 본수 table span the card. */
#abut-panel-plan-footing > figure, #abut-panel-plan-footing > p, #abut-panel-plan-footing > table { grid-column: 1 / -1; }
#abut-panel-plan-footing > .abut-seg { border-collapse: collapse; font-size: 12px; width: 100%; }
#abut-panel-plan-footing > .abut-seg th, #abut-panel-plan-footing > .abut-seg td { border-bottom: 1px solid #e6eaef; padding: 4px 6px; text-align: left; font-family: 'JetBrains Mono', ui-monospace, monospace; }
#abut-panel-plan-footing > .abut-seg th { color: #55606e; font-weight: 500; font-family: inherit; }
#abut-panel-plan .abut-footing-fig { max-width: 760px; }
/* 시안 선택 줄 (.grp · .opts · .opt / .optt, 2026-11-04): icon tiles and text tiles, the 기본 badge, dashed when not selectable. */
#abut-panel-plan .abut-grp { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; margin: 4px 0; }
.abut-grp-title { font-size: 12px; color: #55606e; }
.abut-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.abut-opt { position: relative; font: inherit; font-size: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 84px; min-height: 56px; padding: 6px 4px; border: 1px solid #c3cbd4; border-radius: 6px; background: #ffffff; color: #18212b; cursor: pointer; }
.abut-optt { position: relative; font: inherit; font-size: 13px; min-width: 64px; min-height: 44px; padding: 0 12px; border: 1px solid #c3cbd4; border-radius: 6px; background: #ffffff; color: #18212b; cursor: pointer; }
.abut-opt.on, .abut-optt.on { border: 2px solid #1f5fa8; background: #f2f7fc; color: #123e70; font-weight: 700; }
.abut-opt:disabled, .abut-optt:disabled { cursor: not-allowed; border-style: dashed; color: #5f6a76; background: #f6f8fa; }
.abut-def { position: absolute; top: -9px; right: 4px; font-size: 11px; font-weight: 600; line-height: 1; padding: 3px 6px; border-radius: 8px; background: #4a5868; color: #ffffff; }
.abut-tbdn { display: block; font-size: 12px; color: #55606e; }
/* ② 날개벽 카드 (2026-11-04): tiles and the three 삽도 across the card, then the per-side inputs in the 3-column grid. */
#abut-panel-plan-wing { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px 10px; align-items: center; }
#abut-panel-plan-wing > p, #abut-panel-plan-wing > .abut-wall-figs { grid-column: 1 / -1; }
#abut-panel-plan .abut-wing-figs { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr); }
@media (max-width: 1100px) { #abut-panel-plan .abut-wing-figs { grid-template-columns: minmax(0, 1fr); } }
/* ② 날개벽 형식 1행 (2026-11-04): 좌 · 우 묶음을 나란히, 작은 타일, 편집 중인 측은 진한 테두리. */
#abut-panel-plan .abut-wing-forms { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 18px; }
#abut-panel-plan .abut-wing-forms > .abut-grp-title { flex-basis: 100%; }
#abut-panel-plan .abut-wing-forms .abut-grp { margin: 0; padding: 6px 8px 8px; border: 1px solid transparent; border-radius: 8px; }
#abut-panel-plan .abut-wing-forms .abut-grp.editing { border-color: #1f5fa8; background: #f8fbfe; }
#abut-panel-plan .abut-wing-forms .abut-grp .abut-grp-title { cursor: pointer; font-weight: 600; color: #18212b; }
#abut-panel-plan .abut-grp.compact .abut-opt { width: 64px; min-height: 48px; padding: 4px 2px; }
#abut-panel-plan-slab > p, #abut-panel-plan-slab > .abut-wall-figs { grid-column: 1 / -1; }
#abut-panel-plan-ground > p, #abut-panel-plan-ground > .table-scroll, #abut-panel-plan-ground > figure { grid-column: 1 / -1; }
#abut-panel-plan-ground > figure { margin: 4px 0; max-width: 560px; }
/* ③ 교대 배근 (2026-11-04) */
#rebar-table .abut-rebar-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0; }
#rebar-table .abut-rebar-head .abut-optt { border: 1px solid #c9d2dc; border-radius: 8px; background: #fff; padding: 4px 10px; font-size: 12px; cursor: pointer; }
#rebar-table .abut-rebar-head .abut-optt.on { border-color: #1f5fa8; background: #f0f6fd; font-weight: 600; }
#rebar-table .abut-rebar-fig { margin: 4px 0; }
#rebar-table .abut-rebar-inputs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 12px; margin: 8px 0; }
#rebar-table .abut-rebar-inputs > .lbl { grid-column: 1 / -1; margin: 0; }
#rebar-table .abut-rebar-inputs label { display: block; font-size: 12px; color: #55606e; }
#rebar-table .abut-rebar-inputs input { width: 100%; }
#rebar-table .abut-rebar-auto { display: flex; flex-direction: column; gap: 2px; padding: 4px 6px; background: #f5f7f9; border-radius: 6px; }
#rebar-table .abut-rebar-tablehead { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 4px; }
#rebar-table .abut-grp { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
#rebar-table .abut-opts { display: flex; flex-wrap: wrap; gap: 8px; }