/* PRISME 2D CAD — 주석 축척 dialogs (cad2d_annoscale.js, spec 027 WP-20). Shell classes (cads-*) do the rest. */

.cada-dialog { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cada-body { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.cada-listwrap { display: flex; flex: 1 1 auto; flex-direction: column; gap: 4px; min-width: 0; }
.cada-buttons { display: flex; flex: none; flex-direction: column; gap: 6px; min-width: 104px; }
.cada-list {
  height: 230px;
  overflow: auto;
  border: 1px solid var(--cad-border-soft);
  background: var(--cad-bg-input);
  outline: none;
}
.cada-list:focus-visible { border-color: var(--cad-accent); }
.cada-row { display: flex; align-items: center; gap: 4px; min-height: 22px; padding: 0 6px; cursor: default; user-select: none; }
.cada-row[aria-selected="true"] { background: var(--cad-bg-hover); }
.cada-mark { flex: none; width: 14px; color: var(--cad-accent); font-size: 10px; }
.cada-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cada-info { min-height: 1.4em; margin: 0; color: var(--cad-text-muted); }
.cada-error { min-height: 1.4em; margin: 0; color: var(--cad-danger); }
.cada-units { display: flex; gap: 16px; }
.cada-field { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 6px; align-items: center; }
.cada-field input { width: 100%; min-width: 0; }
.cada-name-input { width: 100%; }

@media (max-width: 520px) {
  .cada-body { flex-direction: column; align-items: stretch; }
  .cada-buttons { flex-direction: row; flex-wrap: wrap; }
  .cada-field { grid-template-columns: minmax(0, 1fr); }
}

/* P2: 주석 객체 축척 (OBJECTSCALE) and the overlays of cad2d_annotative.js. */
.cada-list-short { height: 170px; }
.cada-units-column { flex-direction: column; gap: 4px; }
.cad-overlay > .cada-reps { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cada-rep { fill: none; stroke: var(--cad-text-muted); stroke-width: 1; stroke-dasharray: 4 3; opacity: 0.75; }
.cada-alert path { fill: #f5c400; stroke: #6b5200; stroke-width: 1; stroke-linejoin: round; }
.cada-alert .cada-alert-mark { fill: none; stroke: #1f1f1f; stroke-width: 1.4; stroke-linecap: round; }

/* P4: xref scales in 도면 축척 편집 (the references' temporary scales are read only). */
.cada-tag { flex: none; padding: 0 4px; border: 1px solid var(--cad-border-soft); border-radius: 3px; color: var(--cad-text-muted); font-size: 11px; line-height: 16px; }
.cada-row-xref { color: var(--cad-text-muted); }
