/*
  uc-system.css
  업체관리시스템 프론트엔드 전용 CSS입니다.
  ui_codex의 site.css + admin.css + admin-vendors.css + admin-statements.css를 통합했습니다.
  .zyss-system-shell 하위 범위로 제한합니다.
*/

/* ── CSS 변수 ── */
.zyss-system-shell {
  --uc-font-size: 15px;
  --uc-font-family: "Malgun Gothic", "Nanum Gothic", Tahoma, Verdana, sans-serif;
  --uc-bg: #000000;
  --uc-surface: #0b0b0b;
  --uc-surface-strong: #161616;
  --uc-text: #ffffff;
  --uc-muted: rgba(255, 255, 255, 0.62);
  --uc-border: #303030;
  --uc-border-strong: #484848;
  --uc-primary: #ffffff;
  --uc-primary-soft: rgba(255, 255, 255, 0.08);
  --uc-accent: #ffffff;
  --uc-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  --uc-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --uc-shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.35);
  --uc-radius: 8px;
  --uc-radius-sm: 6px;
}

/* [한글 주석] 라이트모드: 업체관리/거래명세서/색상시스템 독립 팔레트 */
:root[data-zyss-color-mode="light"] .zyss-system-shell.uc-admin {
  --uc-bg: #f4f6fb;
  --uc-surface: #ffffff;
  --uc-surface-strong: #f8fafc;
  --uc-border: rgba(20, 28, 45, 0.12);
  --uc-border-strong: rgba(20, 28, 45, 0.22);
  --uc-text: #162033;
  --uc-muted: #5e687a;
  color: var(--uc-text);
  background: var(--uc-bg);
}

:root[data-zyss-color-mode="light"] .zyss-system-shell.uc-admin input,
:root[data-zyss-color-mode="light"] .zyss-system-shell.uc-admin select,
:root[data-zyss-color-mode="light"] .zyss-system-shell.uc-admin textarea {
  background: #ffffff;
  color: #162033;
  border-color: rgba(20, 28, 45, 0.16);
}

:root[data-zyss-color-mode="light"] .zyss-system-shell.uc-admin input::placeholder,
:root[data-zyss-color-mode="light"] .zyss-system-shell.uc-admin textarea::placeholder {
  color: rgba(22, 32, 51, 0.45);
}

/* ── 기본 리셋 ── */
.zyss-system-shell * {
  box-sizing: border-box;
}

.zyss-system-shell {
  min-height: 100vh;
  background: var(--uc-bg);
  color: var(--uc-text);
  font-family: var(--uc-font-family);
  font-size: var(--uc-font-size);
  line-height: 1.6;
}

.zyss-system-shell a {
  color: inherit;
  text-decoration: none;
}

.zyss-system-shell button,
.zyss-system-shell input,
.zyss-system-shell select,
.zyss-system-shell textarea {
  font: inherit;
}

.zyss-system-shell button {
  cursor: pointer;
}

.zyss-system-shell :focus-visible {
  outline: 3px solid var(--uc-primary);
  outline-offset: 3px;
}

/* ── 공통 컴포넌트 ── */
.zyss-system-shell .uc-section__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--uc-accent);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.zyss-system-shell .uc-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 0.28rem 0.72rem;
  border: 1px solid var(--uc-border);
  border-radius: 8px;
  background: var(--uc-surface-strong);
  font-size: 0.82rem;
  letter-spacing: 0.025em;
}

.zyss-system-shell .uc-brand__panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
}

.zyss-system-shell .uc-brand__mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--uc-border);
  border-radius: 8px;
  background: var(--uc-surface-strong);
  color: var(--uc-text);
  font-size: 0.88rem;
}

.zyss-system-shell .uc-brand__mark--home {
  font-size: 1.25rem;
  line-height: 1;
}

.zyss-system-shell .uc-font-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.zyss-system-shell .uc-icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--uc-border);
  border-radius: 8px;
  background: var(--uc-surface);
  color: var(--uc-text);
}

.zyss-system-shell .uc-icon-button:hover {
  border-color: var(--uc-primary);
  color: var(--uc-primary);
}

.zyss-system-shell [data-sidebar-toggle] {
  transition: transform 0.22s ease;
  font-size: 1.1rem;
  font-weight: 700;
}

.zyss-system-shell [data-sidebar-toggle][aria-expanded="false"] {
  transform: scaleX(-1);
}

.zyss-system-shell .uc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.zyss-system-shell .uc-button--primary {
  border-color: var(--uc-border);
  background: var(--uc-surface-strong);
  color: var(--uc-text);
}

.zyss-system-shell .uc-button--primary:hover {
  border-color: var(--uc-primary);
  background: var(--uc-surface);
}

.zyss-system-shell .uc-button--secondary {
  border-color: var(--uc-border);
  background: var(--uc-surface);
  color: var(--uc-text);
}

.zyss-system-shell .uc-button--secondary:hover {
  border-color: var(--uc-primary);
}

.zyss-system-shell .uc-button.is-active {
  border-color: var(--uc-primary);
  background: var(--uc-primary-soft);
  color: var(--uc-primary);
}

.zyss-system-shell .uc-field {
  display: grid;
  gap: 0.35rem;
}

.zyss-system-shell .uc-field__label {
  color: var(--uc-muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.zyss-system-shell .uc-field__control {
  width: 100%;
  min-height: 38px;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--uc-border);
  border-radius: 8px;
  background: var(--uc-surface);
  color: var(--uc-text);
}

.zyss-system-shell textarea.uc-field__control {
  min-height: 90px;
  resize: vertical;
}

.zyss-system-shell select.uc-field__control {
  appearance: auto;
}

.zyss-system-shell .uc-check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.zyss-system-shell .uc-check__input {
  width: 18px;
  height: 18px;
  accent-color: var(--uc-primary);
}

/* ── 관리자 레이아웃 (admin.css) ── */
.zyss-system-shell.uc-admin .uc-admin__topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 0 1rem;
  border-bottom: 1px solid var(--uc-border);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
}

.zyss-system-shell.uc-admin .uc-admin__brand-tools {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.zyss-system-shell.uc-admin .uc-admin__layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: calc(100vh - 56px);
}

.zyss-system-shell.uc-admin .uc-admin__layout.is-sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}

.zyss-system-shell.uc-admin.zyss-system-shell--single-panel .uc-admin__layout {
  grid-template-columns: 230px minmax(0, 1fr);
}

.zyss-system-shell.uc-admin.zyss-system-shell--no-sidebar .uc-admin__layout {
  grid-template-columns: minmax(0, 1fr);
}

.zyss-system-shell.uc-admin.zyss-system-shell--single-panel .uc-admin__layout.is-sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}

.zyss-system-shell.uc-admin .uc-admin__sidebar {
  overflow-x: hidden;
  overflow-y: auto;
  border-right: 1px solid var(--uc-border);
  background: var(--uc-surface);
}

.zyss-system-shell.uc-admin.zyss-system-shell--single-panel .uc-admin__sidebar {
  display: block;
}

.zyss-system-shell.uc-admin.zyss-system-shell--no-sidebar .uc-admin__sidebar,
.zyss-system-shell.uc-admin.zyss-system-shell--no-sidebar [data-sidebar-toggle] {
  display: none !important;
}

.zyss-system-shell.uc-admin .uc-admin__layout.is-sidebar-collapsed .uc-admin__sidebar {
  border-right: 0;
}

.zyss-system-shell.uc-admin .uc-admin-menu {
  position: sticky;
  top: 56px;
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 1rem;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
}

.zyss-system-shell.uc-admin .uc-admin-menu__item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0.65rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--uc-muted);
  text-align: left;
  text-decoration: none;
}

.zyss-system-shell.uc-admin .uc-admin-menu__item--child {
  min-height: 36px;
  padding-left: 1.25rem;
  font-size: 0.92rem;
}

.zyss-system-shell.uc-admin .uc-admin-menu__item:hover,
.zyss-system-shell.uc-admin .uc-admin-menu__item.is-active {
  border-color: var(--uc-border);
  background: var(--uc-surface-strong);
  color: var(--uc-text);
}

.zyss-system-shell.uc-admin .uc-admin__main {
  padding: 1.25rem;
  min-width: 0;
}

.zyss-system-shell.uc-admin.zyss-system-shell--single-panel .uc-admin__main {
  width: 100%;
}

.zyss-system-shell.uc-admin .uc-admin-panel {
  display: none;
}

.zyss-system-shell.uc-admin .uc-admin-panel.is-active {
  display: block;
}

.zyss-system-shell.uc-admin .uc-admin-heading {
  margin-bottom: 1rem;
}

.zyss-system-shell.uc-admin .uc-admin-heading__title {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  letter-spacing: 0;
}

.zyss-system-shell.uc-admin .uc-admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.zyss-system-shell.uc-admin .uc-admin-stat {
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem;
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius);
  background: var(--uc-surface);
}

.zyss-system-shell.uc-admin .uc-admin-stat span {
  color: var(--uc-muted);
}

.zyss-system-shell.uc-admin .uc-admin-stat strong {
  font-size: 1.75rem;
}

.zyss-system-shell.uc-admin .uc-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius);
  background: var(--uc-surface);
}

.zyss-system-shell.uc-admin .uc-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.zyss-system-shell.uc-admin .uc-table th,
.zyss-system-shell.uc-admin .uc-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--uc-border);
  text-align: left;
}

.zyss-system-shell.uc-admin .uc-table th {
  background: var(--uc-surface-strong);
  color: var(--uc-muted);
}

/* ── 업체관리 시스템 (admin-vendors.css) ── */
.zyss-system-shell.uc-admin .uc-vendor-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.zyss-system-shell.uc-admin .uc-vendor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.zyss-system-shell.uc-admin .uc-vendor-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 0.9rem;
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-sm);
  background: var(--uc-surface);
  color: var(--uc-text);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.zyss-system-shell.uc-admin .uc-vendor-tab.is-active {
  border-color: var(--uc-primary);
  background: var(--uc-primary-soft);
  color: var(--uc-primary);
}

.zyss-system-shell.uc-admin .uc-vendor-view {
  display: none;
}

.zyss-system-shell.uc-admin .uc-vendor-view.is-active {
  display: block;
}

.zyss-system-shell.uc-admin .uc-vendor-register-grid {
  display: grid;
  grid-template-columns: minmax(480px, 1fr) minmax(280px, 380px);
  gap: 1rem;
}

.zyss-system-shell.uc-admin .uc-vendor-doc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 210px;
  gap: 1rem;
  align-items: start;
}

.zyss-system-shell.uc-admin .uc-vendor-card {
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius);
  background: var(--uc-surface);
  padding: 1rem;
  box-shadow: var(--uc-shadow-sm);
}

.zyss-system-shell.uc-admin .uc-vendor-card__head,
.zyss-system-shell.uc-admin .uc-vendor-repeat-head,
.zyss-system-shell.uc-admin .uc-vendor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.zyss-system-shell.uc-admin .uc-vendor-doc-type-row {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  min-width: 0;
}

.zyss-system-shell.uc-admin .uc-vendor-doc-type-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  min-width: 0;
}

.zyss-system-shell.uc-admin .uc-vendor-doc-type-actions input {
  flex: 1 1 180px;
  max-width: 240px;
}

.zyss-system-shell.uc-admin .uc-vendor-doc-type-list {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.zyss-system-shell.uc-admin .uc-vendor-doc-type-list[hidden] {
  display: none;
}

.zyss-system-shell.uc-admin .uc-vendor-doc-type-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 0.45rem;
}

.zyss-system-shell.uc-admin .uc-vendor-doc-type-item button {
  width: 30px;
  height: 34px;
  border: 1px solid var(--uc-border);
  border-radius: 6px;
  background: var(--uc-surface-strong);
  color: var(--uc-text);
}

.zyss-system-shell.uc-admin .uc-vendor-file-dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 78px;
  padding: 0.8rem;
  border: 1px dashed var(--uc-border);
  border-radius: 8px;
  background: var(--uc-surface);
  color: var(--uc-muted);
  text-align: center;
}

.zyss-system-shell.uc-admin .uc-vendor-file-dropzone.is-dragover {
  border-color: var(--uc-primary);
  background: var(--uc-surface-strong);
}

.zyss-system-shell.uc-admin .uc-vendor-file-dropzone__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.zyss-system-shell.uc-admin .uc-vendor-file-dropzone__label {
  pointer-events: none;
}

.zyss-system-shell.uc-admin .uc-vendor-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.zyss-system-shell.uc-admin .uc-vendor-file-list span {
  padding: 0.25rem 0.45rem;
  border: 1px solid var(--uc-border);
  border-radius: 6px;
  color: var(--uc-muted);
}

.zyss-system-shell.uc-admin .uc-vendor-card__head h3,
.zyss-system-shell.uc-admin .uc-vendor-repeat-head h4 {
  margin: 0;
}

.zyss-system-shell.uc-admin .uc-vendor-doc-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
}

.zyss-system-shell.uc-admin .uc-vendor-doc-type-new {
  max-width: 180px;
}

.zyss-system-shell.uc-admin .uc-vendor-doc-collapse {
  width: 38px;
  padding-inline: 0;
  font-size: 1rem;
}

.zyss-system-shell.uc-admin .uc-vendor-doc-form-body[hidden] {
  display: none;
}

.zyss-system-shell.uc-admin .uc-vendor-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.zyss-system-shell.uc-admin .uc-vendor-doc-form .uc-vendor-form-grid {
  grid-template-columns: 1fr 1fr;
}

.zyss-system-shell.uc-admin .uc-vendor-doc-form .uc-field {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
}

.zyss-system-shell.uc-admin .uc-vendor-doc-form .uc-field__label {
  text-align: left;
  white-space: nowrap;
}

.zyss-system-shell.uc-admin .uc-vendor-doc-form .uc-vendor-wide {
  align-items: start;
}

.zyss-system-shell.uc-admin .uc-vendor-doc-form .uc-vendor-doc-type-list,
.zyss-system-shell.uc-admin .uc-vendor-doc-form .uc-vendor-file-list {
  grid-column: 2;
}

.zyss-system-shell.uc-admin .uc-vendor-doc-form .uc-vendor-doc-type-field {
  grid-column: 1 / -1;
  grid-template-columns: 96px minmax(0, 1fr);
}

.zyss-system-shell.uc-admin .uc-vendor-wide {
  grid-column: 1 / -1;
}

.zyss-system-shell.uc-admin .uc-vendor-repeat {
  display: grid;
  gap: 0.55rem;
}

.zyss-system-shell.uc-admin .uc-vendor-repeat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px 38px;
  gap: 0.45rem;
  align-items: center;
}

.zyss-system-shell.uc-admin .uc-vendor-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--uc-primary);
  font-weight: 800;
}

.zyss-system-shell.uc-admin .uc-vendor-card-upload {
  display: grid;
  gap: 0.85rem;
}

.zyss-system-shell.uc-admin .uc-vendor-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.zyss-system-shell.uc-admin .uc-vendor-image-item img {
  width: 100%;
  aspect-ratio: 1.58;
  object-fit: cover;
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-sm);
}

.zyss-system-shell.uc-admin .uc-vendor-toolbar {
  justify-content: start;
}

.zyss-system-shell.uc-admin .uc-vendor-toolbar input[type="search"] {
  min-width: min(100%, 330px);
}

.zyss-system-shell.uc-admin .uc-vendor-results--cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.zyss-system-shell.uc-admin .uc-vendor-company-card,
.zyss-system-shell.uc-admin .uc-vendor-doc-row {
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-sm);
  background: var(--uc-surface-strong);
  padding: 0.9rem;
}

.zyss-system-shell.uc-admin .uc-vendor-doc-row {
  position: relative;
  padding-right: 2.8rem;
}

.zyss-system-shell.uc-admin .uc-vendor-company-card h4,
.zyss-system-shell.uc-admin .uc-vendor-doc-row h4 {
  margin: 0 0 0.35rem;
}

.zyss-system-shell.uc-admin .uc-vendor-doc-delete {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 30px;
  height: 30px;
  border: 1px solid var(--uc-border);
  border-radius: 6px;
  background: var(--uc-surface);
  color: var(--uc-text);
  font-size: 1rem;
  line-height: 1;
}

.zyss-system-shell.uc-admin .uc-vendor-muted {
  color: var(--uc-muted);
  font-size: 0.9rem;
}

.zyss-system-shell.uc-admin .uc-vendor-badge {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 0.25rem;
  border-radius: 999px;
  background: var(--uc-primary);
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
}

.zyss-system-shell.uc-admin .uc-vendor-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.zyss-system-shell.uc-admin .uc-vendor-table th,
.zyss-system-shell.uc-admin .uc-vendor-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--uc-border);
  text-align: left;
  vertical-align: top;
}

.zyss-system-shell.uc-admin .uc-vendor-table-wrap {
  overflow-x: auto;
}

.zyss-system-shell.uc-admin .uc-vendor-memo-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 1rem;
  max-width: 100%;
  overflow: hidden;
}

.zyss-system-shell.uc-admin .uc-vendor-memo-side {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding-right: 1rem;
  border-right: 1px solid var(--uc-border);
  min-width: 0;
}

.zyss-system-shell.uc-admin .uc-vendor-memos {
  display: grid;
  min-width: 0;
  max-width: 100%;
}

.zyss-system-shell.uc-admin .uc-vendor-memo-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.55fr) minmax(0, 2.45fr) minmax(92px, 112px);
  gap: 0.6rem;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--uc-border-strong);
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

.zyss-system-shell.uc-admin .uc-vendor-memo-row--new {
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
}

.zyss-system-shell.uc-admin .uc-vendor-memo-meta {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.zyss-system-shell.uc-admin .uc-vendor-memo-meta span {
  color: var(--uc-muted);
}

.zyss-system-shell.uc-admin .uc-vendor-memo-meta strong,
.zyss-system-shell.uc-admin .uc-vendor-memo-meta span,
.zyss-system-shell.uc-admin .uc-vendor-memo-editor,
.zyss-system-shell.uc-admin .uc-vendor-memo-time {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.zyss-system-shell.uc-admin .uc-vendor-memo-editor {
  min-height: 34px;
  min-width: 0;
  padding: 0.25rem 0.1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--uc-text);
  line-height: 1.55;
  outline: none;
  white-space: pre-wrap;
}

.zyss-system-shell.uc-admin .uc-vendor-memo-editor:focus {
  background: var(--uc-surface);
}

.zyss-system-shell.uc-admin .uc-vendor-memo-editor:empty::before {
  color: var(--uc-muted);
  content: attr(data-placeholder);
}

.zyss-system-shell.uc-admin .uc-vendor-memo-new-body {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.zyss-system-shell.uc-admin .uc-vendor-memo-save-hint {
  font-size: 0.78rem;
}

.zyss-system-shell.uc-admin .uc-vendor-memo-time {
  white-space: pre-line;
}

.zyss-system-shell.uc-admin .uc-vendor-memo-side-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 0.45rem;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

.zyss-system-shell.uc-admin .uc-vendor-memo-side-actions button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--uc-border);
  border-radius: 6px;
  background: var(--uc-surface-strong);
  color: var(--uc-text);
  font-size: 1rem;
  line-height: 1;
}

.zyss-system-shell.uc-admin .uc-vendor-docs {
  display: grid;
  gap: 0.7rem;
}

.zyss-system-shell.uc-admin .uc-vendor-home-list {
  margin-top: 1rem;
}

.zyss-system-shell.uc-admin .uc-vendor-dropzone {
  position: relative;
  min-height: 118px;
  display: grid;
  place-items: center;
  padding: 1rem;
  border: 1px dashed var(--uc-border);
  border-radius: var(--uc-radius);
  background: var(--uc-surface-strong);
  color: var(--uc-text);
  text-align: center;
  outline: none;
}

.zyss-system-shell.uc-admin .uc-vendor-dropzone.is-dragover,
.zyss-system-shell.uc-admin .uc-vendor-dropzone:focus-visible {
  border-color: var(--uc-primary);
  background: var(--uc-primary-soft);
}

.zyss-system-shell.uc-admin .uc-vendor-dropzone__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.zyss-system-shell.uc-admin .uc-vendor-dropzone__label {
  display: grid;
  gap: 0.35rem;
  pointer-events: none;
}

.zyss-system-shell.uc-admin .uc-vendor-dropzone__label span {
  color: var(--uc-muted);
  font-size: 0.9rem;
}

.zyss-system-shell.uc-admin .uc-vendor-card-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0.35rem 0;
}

.zyss-system-shell.uc-admin .uc-vendor-card-thumbs img {
  width: 100%;
  aspect-ratio: 1.58;
  object-fit: cover;
  border: 1px solid var(--uc-border);
  border-radius: 8px;
}

.uc-vendor-confirm {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.58);
}

.uc-vendor-confirm__box {
  width: min(360px, calc(100vw - 2rem));
  padding: 1.1rem;
  border: 1px solid var(--uc-border, #303030);
  border-radius: 10px;
  background: var(--uc-surface, #0b0b0b);
  color: var(--uc-text, #fff);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.uc-vendor-confirm__box p {
  margin: 0 0 1rem;
  font-weight: 700;
}

.uc-vendor-confirm__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.uc-vendor-confirm__actions button {
  min-height: 36px;
  padding: 0 0.85rem;
  border: 1px solid var(--uc-border, #303030);
  border-radius: 8px;
  background: var(--uc-surface-strong, #161616);
  color: var(--uc-text, #fff);
}

.uc-vendor-confirm__actions [data-confirm-ok] {
  border-color: #b94a48;
  color: #ffb4ad;
}

/* ── 거래명세서 (admin-statements.css) ── */
.zyss-system-shell.uc-admin .uc-statement-heading,
.zyss-system-shell.uc-admin .uc-statement-actions,
.zyss-system-shell.uc-admin .uc-statement-tabs,
.zyss-system-shell.uc-admin .uc-statement-supplier-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.zyss-system-shell.uc-admin .uc-statement-tabs {
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.zyss-system-shell.uc-admin .uc-statement-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.zyss-system-shell.uc-admin .uc-statement-supplier-footer {
  margin-top: 1rem;
  justify-content: center;
}

.zyss-system-shell.uc-admin .uc-statement-supplier-manager {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1rem;
}

.zyss-system-shell.uc-admin .uc-statement-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 0.9rem;
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-sm);
  background: var(--uc-surface);
  color: var(--uc-text);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.zyss-system-shell.uc-admin .uc-statement-tab.is-active {
  border-color: var(--uc-primary);
  background: var(--uc-primary-soft);
  color: var(--uc-primary);
}

.zyss-system-shell.uc-admin .uc-statement-view {
  display: none;
}

.zyss-system-shell.uc-admin .uc-statement-view.is-active {
  display: block;
}

.zyss-system-shell.uc-admin [data-statement-admin] {
  --uc-statement-page-width: 718px;
  --uc-statement-action-gutter: 78px;
}

.zyss-system-shell.uc-admin .uc-statement-layout {
  display: grid;
  grid-template-columns: minmax(0, calc(var(--uc-statement-page-width) + var(--uc-statement-action-gutter) + 2rem + 2px));
  gap: 1rem;
  align-items: start;
}

.zyss-system-shell.uc-admin .uc-statement-sheet,
.zyss-system-shell.uc-admin .uc-statement-summary,
.zyss-system-shell.uc-admin .uc-statement-supplier-form {
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius);
  background: var(--uc-surface);
  padding: 1rem;
}

.zyss-system-shell.uc-admin .uc-statement-sheet {
  box-sizing: border-box;
  width: calc(var(--uc-statement-page-width) + var(--uc-statement-action-gutter) + 2rem + 2px);
  max-width: 100%;
  background: var(--uc-surface);
  color: var(--uc-text);
  overflow-x: auto;
}

.zyss-system-shell.uc-admin .uc-statement-title-row {
  display: grid;
  grid-template-columns: 1fr 250px;
  width: var(--uc-statement-page-width);
  box-sizing: border-box;
  border: 2px solid #2f4aa0;
  border-bottom: 0;
}

.zyss-system-shell.uc-admin .uc-statement-title-row h3 {
  margin: 0;
  padding: 0.65rem 1rem;
  font-size: 2rem;
  letter-spacing: 0.35em;
}

.zyss-system-shell.uc-admin .uc-statement-title-row h3 small {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0;
  vertical-align: middle;
}

.zyss-system-shell.uc-admin .uc-statement-datebox {
  display: grid;
  border-left: 1px solid #2f4aa0;
}

.zyss-system-shell.uc-admin .uc-statement-datebox label {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  min-height: 40px;
  border-bottom: 1px solid #2f4aa0;
  padding: 0 0.5rem;
  color: var(--uc-text);
}

.zyss-system-shell.uc-admin .uc-statement-datebox label:last-child {
  border-bottom: 0;
}

.zyss-system-shell.uc-admin .uc-statement-datebox input,
.zyss-system-shell.uc-admin .uc-statement-buyer input,
.zyss-system-shell.uc-admin .uc-statement-table input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--uc-text);
}

.zyss-system-shell.uc-admin .uc-statement-parties {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  width: var(--uc-statement-page-width);
  box-sizing: border-box;
  border: 2px solid #2f4aa0;
  border-bottom: 0;
}

.zyss-system-shell.uc-admin .uc-statement-buyer {
  padding: 0.75rem;
  border-right: 1px solid #2f4aa0;
}

.zyss-system-shell.uc-admin .uc-statement-buyer label {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  min-height: 34px;
  color: var(--uc-text);
}

.zyss-system-shell.uc-admin .uc-statement-buyer .uc-statement-buyer-company {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0.5rem;
}

.zyss-system-shell.uc-admin .uc-statement-grand-total {
  margin-top: 1.5rem;
  color: var(--uc-text);
}

.zyss-system-shell.uc-admin .uc-statement-grand-total strong {
  margin-left: 1rem;
  font-size: 1.15rem;
  font-weight: 400;
}

.zyss-system-shell.uc-admin .uc-statement-supplier {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zyss-system-shell.uc-admin .uc-statement-supplier-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  min-height: 34px;
  border-bottom: 1px solid #2f4aa0;
  border-right: 1px solid #2f4aa0;
  align-items: center;
}

.zyss-system-shell.uc-admin .uc-statement-supplier-row.uc-statement-wide,
.zyss-system-shell.uc-admin .uc-statement-supplier-row:nth-of-type(3),
.zyss-system-shell.uc-admin .uc-statement-supplier-row:nth-of-type(6),
.zyss-system-shell.uc-admin .uc-statement-supplier-row:nth-of-type(8) {
  border-right: 0;
}

.zyss-system-shell.uc-admin .uc-statement-supplier-row span {
  height: 100%;
  display: grid;
  place-items: center;
  border-right: 1px solid #2f4aa0;
  background: transparent;
  color: var(--uc-text);
}

.zyss-system-shell.uc-admin .uc-statement-supplier-row strong {
  padding: 0 0.55rem;
  color: var(--uc-text);
  font-weight: 400;
}

.zyss-system-shell.uc-admin .uc-statement-supplier-row.uc-statement-wide {
  grid-column: 1 / -1;
}

.zyss-system-shell.uc-admin .uc-statement-supplier-row:nth-of-type(7),
.zyss-system-shell.uc-admin .uc-statement-supplier-row:nth-of-type(8) {
  border-bottom: 0;
}

.zyss-system-shell.uc-admin .uc-statement-stamp {
  position: absolute;
  right: 1.4rem;
  top: 1.35rem;
  width: 72px;
  height: 72px;
  object-fit: contain;
  opacity: 0.78;
  display: none;
}

.zyss-system-shell.uc-admin .uc-statement-table-wrap {
  overflow-x: auto;
  box-sizing: border-box;
  width: calc(var(--uc-statement-page-width) + var(--uc-statement-action-gutter));
  padding-right: var(--uc-statement-action-gutter);
}

.zyss-system-shell.uc-admin .uc-statement-table {
  width: var(--uc-statement-page-width);
  min-width: var(--uc-statement-page-width);
  border-collapse: collapse;
  border: 2px solid #2f4aa0;
  table-layout: fixed;
}

.zyss-system-shell.uc-admin .uc-statement-table tbody tr {
  position: relative;
}

.zyss-system-shell.uc-admin .uc-statement-table th:nth-child(1),
.zyss-system-shell.uc-admin .uc-statement-table td:nth-child(1) { width: 8%; }
.zyss-system-shell.uc-admin .uc-statement-table th:nth-child(2),
.zyss-system-shell.uc-admin .uc-statement-table td:nth-child(2) { width: 38%; }
.zyss-system-shell.uc-admin .uc-statement-table th:nth-child(3),
.zyss-system-shell.uc-admin .uc-statement-table td:nth-child(3),
.zyss-system-shell.uc-admin .uc-statement-table th:nth-child(4),
.zyss-system-shell.uc-admin .uc-statement-table td:nth-child(4) { width: 8%; }
.zyss-system-shell.uc-admin .uc-statement-table th:nth-child(5),
.zyss-system-shell.uc-admin .uc-statement-table td:nth-child(5),
.zyss-system-shell.uc-admin .uc-statement-table th:nth-child(6),
.zyss-system-shell.uc-admin .uc-statement-table td:nth-child(6) { width: 13.33%; }
.zyss-system-shell.uc-admin .uc-statement-table th:nth-child(7),
.zyss-system-shell.uc-admin .uc-statement-table td:nth-child(7) { width: 11.33%; }

.zyss-system-shell.uc-admin .uc-statement-table th,
.zyss-system-shell.uc-admin .uc-statement-table td {
  border: 1px solid #2f4aa0;
  padding: 0.35rem;
  text-align: center;
  color: var(--uc-text);
}

.zyss-system-shell.uc-admin .uc-statement-table th {
  color: var(--uc-text);
  font-weight: 500;
}

.zyss-system-shell.uc-admin .uc-statement-table input {
  min-height: 28px;
  text-align: center;
}

.zyss-system-shell.uc-admin .uc-statement-table .uc-statement-product {
  min-width: 0;
  text-align: left;
}

.zyss-system-shell.uc-admin .uc-statement-signature {
  min-height: 34px;
  color: rgba(156, 163, 175, 0.45) !important;
  font-size: 0.9rem;
  white-space: nowrap;
}

.zyss-system-shell.uc-admin .uc-statement-amount-summary {
  width: var(--uc-statement-page-width);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 2px solid #2f4aa0;
  border-top: 0;
  background: var(--uc-surface-strong);
}

.zyss-system-shell.uc-admin .uc-statement-amount-cell {
  display: grid;
  grid-template-columns: minmax(88px, 0.6fr) minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  border-right: 1px solid #2f4aa0;
}

.zyss-system-shell.uc-admin .uc-statement-amount-cell:last-child {
  border-right: 0;
}

.zyss-system-shell.uc-admin .uc-statement-amount-cell span,
.zyss-system-shell.uc-admin .uc-statement-amount-cell strong {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0.35rem 0.5rem;
  color: var(--uc-text);
}

.zyss-system-shell.uc-admin .uc-statement-amount-cell span {
  border-right: 1px solid #2f4aa0;
  font-weight: 700;
}

.zyss-system-shell.uc-admin .uc-statement-amount-cell strong {
  min-width: 0;
  background: rgba(47, 74, 160, 0.08);
  font-size: 1.05rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.zyss-system-shell.uc-admin .uc-statement-amount-cell--total strong {
  font-size: 1.15rem;
}

.zyss-system-shell.uc-admin .uc-statement-footer-info {
  width: var(--uc-statement-page-width);
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.45rem 0 0;
  font-size: 0.9rem;
  text-align: center;
}

.zyss-system-shell.uc-admin .uc-statement-footer-info div {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.zyss-system-shell.uc-admin .uc-statement-footer-info strong {
  font-weight: 400;
}

.zyss-system-shell.uc-admin .uc-statement-inline-row-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  min-height: 28px;
  min-width: 30px;
  border: 1px solid #6b7280;
  border-radius: 6px;
  background: #4b5563;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
}

.zyss-system-shell.uc-admin .uc-statement-add-row-inline { right: -36px; }
.zyss-system-shell.uc-admin .uc-statement-remove-row { right: -70px; }

.zyss-system-shell.uc-admin .uc-statement-add-row-inline:hover,
.zyss-system-shell.uc-admin .uc-statement-remove-row:hover {
  background: #6b7280;
}

.zyss-system-shell.uc-admin .uc-statement-summary {
  display: none;
  gap: 0.75rem;
}

.zyss-system-shell.uc-admin .uc-statement-summary-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem;
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-sm);
  background: var(--uc-surface-strong);
}

.zyss-system-shell.uc-admin .uc-statement-summary-card strong {
  font-size: 1.35rem;
}

.zyss-system-shell.uc-admin .uc-statement-summary-card--total strong {
  color: var(--uc-primary);
}

.zyss-system-shell.uc-admin .uc-statement-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.zyss-system-shell.uc-admin .uc-statement-wide {
  grid-column: 1 / -1;
}

.zyss-system-shell.uc-admin .uc-statement-stamp-preview {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-sm);
  background: var(--uc-surface-strong);
  display: none;
}

.zyss-system-shell.uc-admin .uc-statement-stamp-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 0.8rem;
  align-items: end;
}

.zyss-system-shell.uc-admin .uc-statement-stamp-field label {
  display: grid;
  gap: 0.35rem;
}

.zyss-system-shell.uc-admin .uc-statement-memo-panel {
  display: grid;
  gap: 1rem;
  max-width: 100%;
  padding: 1rem;
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius);
  background: var(--uc-surface);
  box-shadow: var(--uc-shadow-sm);
}

.zyss-system-shell.uc-admin .uc-statement-memo-layout {
  width: 100%;
}

.zyss-system-shell.uc-admin .uc-statement-memos {
  min-height: 180px;
}

.zyss-system-shell.uc-admin .uc-statement-tax-input {
  width: 92px;
  min-height: 28px;
  display: block;
  margin: 0 auto;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--uc-text);
}

.zyss-system-shell.uc-admin .uc-statement-tax-input:focus {
  border-color: var(--uc-primary);
  background: var(--uc-surface-strong);
  outline: none;
}

/* ── 반응형 ── */
@media (max-width: 980px) {
  .zyss-system-shell.uc-admin .uc-vendor-register-grid,
  .zyss-system-shell.uc-admin .uc-vendor-doc-grid,
  .zyss-system-shell.uc-admin .uc-vendor-form-grid,
  .zyss-system-shell.uc-admin .uc-vendor-memo-layout,
  .zyss-system-shell.uc-admin .uc-vendor-doc-type-row,
  .zyss-system-shell.uc-admin .uc-vendor-memo-row {
    grid-template-columns: 1fr;
  }

  .zyss-system-shell.uc-admin .uc-vendor-doc-form .uc-field {
    grid-template-columns: 1fr;
  }

  .zyss-system-shell.uc-admin .uc-vendor-doc-form .uc-vendor-doc-type-field {
    grid-template-columns: 1fr;
  }

  .zyss-system-shell.uc-admin .uc-vendor-doc-form .uc-vendor-doc-type-list,
  .zyss-system-shell.uc-admin .uc-vendor-doc-form .uc-vendor-file-list {
    grid-column: auto;
  }

  .zyss-system-shell.uc-admin .uc-vendor-doc-type-actions {
    justify-content: flex-start;
  }

  .zyss-system-shell.uc-admin .uc-vendor-memo-side {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--uc-border);
    padding-bottom: 1rem;
  }
}

@media (max-width: 920px) {
  .zyss-system-shell.uc-admin .uc-admin__layout {
    grid-template-columns: 1fr;
  }

  .zyss-system-shell.uc-admin .uc-admin__layout.is-sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .zyss-system-shell.uc-admin .uc-admin__layout.is-sidebar-collapsed .uc-admin__sidebar {
    display: none;
  }

  .zyss-system-shell.uc-admin .uc-admin__sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--uc-border);
  }

  .zyss-system-shell.uc-admin .uc-admin-menu {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zyss-system-shell.uc-admin .uc-admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .zyss-system-shell.uc-admin .uc-statement-layout,
  .zyss-system-shell.uc-admin .uc-statement-title-row,
  .zyss-system-shell.uc-admin .uc-statement-parties,
  .zyss-system-shell.uc-admin .uc-statement-supplier-manager,
  .zyss-system-shell.uc-admin .uc-statement-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .zyss-system-shell.uc-admin .uc-admin__topbar {
    flex-wrap: wrap;
    padding: 0.75rem;
  }

  .zyss-system-shell.uc-admin .uc-admin__brand-tools {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .zyss-system-shell .uc-brand {
    gap: 0.5rem;
  }

  .zyss-system-shell .uc-brand__panel-icon {
    font-size: 1.05rem;
  }

  .zyss-system-shell.uc-admin .uc-admin-menu,
  .zyss-system-shell.uc-admin .uc-admin-stats {
    grid-template-columns: 1fr;
  }

  .zyss-system-shell.uc-admin .uc-admin__main {
    padding: 0.75rem;
  }
}

/* 인쇄 스타일 */
@media print {
  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  .zyss-system-shell .uc-admin__topbar,
  .zyss-system-shell .uc-admin__sidebar,
  .zyss-system-shell .uc-statement-heading,
  .zyss-system-shell .uc-statement-tabs,
  .zyss-system-shell .uc-statement-actions,
  .zyss-system-shell .uc-statement-summary,
  .zyss-system-shell .uc-statement-inline-row-button,
  .zyss-system-shell .uc-statement-remove-row {
    display: none !important;
  }

  .zyss-system-shell .uc-statement-table-wrap {
    width: 190mm;
    padding-right: 0;
  }

  .zyss-system-shell .uc-statement-title-row,
  .zyss-system-shell .uc-statement-parties,
  .zyss-system-shell .uc-statement-footer-info {
    width: 190mm;
  }

  .zyss-system-shell .uc-statement-sheet {
    width: 190mm;
    background: #fff !important;
    color: #14358e !important;
    overflow: visible;
  }

  .zyss-system-shell .uc-statement-table {
    width: 190mm;
    min-width: 190mm;
  }
}

/* ═══════════════════════════════════════════════════
   RAL 컬러 시스템
   ═══════════════════════════════════════════════════ */
#ral-color-picker-app * { margin: 0; padding: 0; box-sizing: border-box; }

#ral-color-picker-app {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f5f5f5;
  padding: 20px;
}

#ral-color-picker-app .container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
  overflow: hidden;
}

#ral-color-picker-app .header {
  background: #fff;
  color: #333;
  padding: 30px;
  text-align: center;
  border-bottom: 2px solid #e0e0e0;
}

#ral-color-picker-app h1 { font-size: 2em; margin-bottom: 10px; }
#ral-color-picker-app .subtitle { opacity: .9; font-size: .9em; }

#ral-color-picker-app .warning {
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 10px;
  padding: 15px;
  margin: 20px;
  color: #856404;
}

#ral-color-picker-app .warning-title {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 1.1em;
  text-align: left;
  margin-left: 20px;
}

#ral-color-picker-app .warning ul { margin-left: 20px; margin-top: 8px; }
#ral-color-picker-app .warning li { margin: 5px 0; }
#ral-color-picker-app .content { padding: 30px; }
#ral-color-picker-app .category-section { margin-bottom: 30px; }

#ral-color-picker-app .section-title {
  font-size: 1.1em;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

#ral-color-picker-app .color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

#ral-color-picker-app .color-button {
  aspect-ratio: 1;
  border: 2px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  transition: all .3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: white !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
  font-size: .9em;
  padding: 10px;
}

#ral-color-picker-app .color-button > div { color: inherit !important; }
#ral-color-picker-app .color-button-code { font-size: .75em; font-weight: 400; margin-top: 4px; opacity: .9; color: inherit !important; }
#ral-color-picker-app .color-button:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,.15); border-color: #999; }
#ral-color-picker-app .color-button.selected { border: 3px solid #333; box-shadow: 0 0 0 2px rgba(0,0,0,.1); }

#ral-color-picker-app .main-display {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

#ral-color-picker-app .color-preview {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  border: 3px solid white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

#ral-color-picker-app .color-preview-label { font-size: 2em; font-weight: 700; color: rgba(0,0,0,.7); text-shadow: 0 2px 4px rgba(255,255,255,.8); }
#ral-color-picker-app .color-info { background: white; border-radius: 10px; overflow: hidden; border: 1px solid #ddd; }

#ral-color-picker-app .info-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  border-bottom: 1px solid #eee;
  min-height: 50px;
}

#ral-color-picker-app .info-row:last-child { border-bottom: none; }
#ral-color-picker-app .info-label { font-weight: 400; color: #333 !important; background: #f8f9fa; padding: 15px 20px; border-right: 1px solid #eee; height: 100%; display: flex; align-items: center; }
#ral-color-picker-app .info-value { font-family: 'Courier New', monospace; font-weight: 400; color: #333 !important; font-size: 1em; padding: 15px 20px; }

#ral-color-picker-app .palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

#ral-color-picker-app .palette-item { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.1); cursor: pointer; transition: all .3s; }
#ral-color-picker-app .palette-item:hover { transform: translateY(-5px); box-shadow: 0 5px 20px rgba(0,0,0,.2); }
#ral-color-picker-app .palette-color { height: 80px; border-bottom: 2px solid #eee; }
#ral-color-picker-app .palette-info { padding: 10px; text-align: center; }
#ral-color-picker-app .palette-ral { font-weight: 700; color: #000 !important; margin-bottom: 4px; font-size: 12px; }
#ral-color-picker-app .palette-name { font-size: .75em; color: #666 !important; margin-bottom: 4px; }
#ral-color-picker-app .palette-hex { font-size: .7em; color: #999 !important; font-family: 'Courier New', monospace; }

#ral-color-picker-app .modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.7);
  z-index: 999999;
  align-items: center;
  justify-content: center;
}

#ral-color-picker-app .modal-overlay.active { display: flex; }

#ral-color-picker-app .modal-content {
  background: white;
  border-radius: 15px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
  position: relative;
}

#ral-color-picker-app .modal-close {
  position: absolute;
  top: 15px; right: 15px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all .3s;
}

#ral-color-picker-app .modal-close:hover { background: white; transform: rotate(90deg); }
#ral-color-picker-app .modal-color-display { width: 100%; height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-bottom: 1px solid #eee; }
#ral-color-picker-app .modal-color-label { font-size: 2.5em; font-weight: 700; color: rgba(0,0,0,.7); text-shadow: 0 2px 4px rgba(255,255,255,.8); }
#ral-color-picker-app .modal-color-info { padding: 30px; }

#ral-color-picker-app .modal-info-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  border-bottom: 1px solid #eee;
  min-height: 50px;
}

#ral-color-picker-app .modal-info-row:last-child { border-bottom: none; }
#ral-color-picker-app .modal-info-label { font-weight: 400; color: #333 !important; background: #f8f9fa; padding: 15px 20px; border-right: 1px solid #eee; height: 100%; display: flex; align-items: center; }
#ral-color-picker-app .modal-info-value { font-family: 'Courier New', monospace; font-weight: 400; color: #333 !important; font-size: 1em; padding: 15px 20px; }

@media (max-width: 768px) {
  #ral-color-picker-app .color-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
  #ral-color-picker-app .palette-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  #ral-color-picker-app .main-display { grid-template-columns: 1fr; }
  #ral-color-picker-app .color-preview { height: 200px; }
}

/* ═══════════════════════════════════════════════════
   먼셀 컬러 시스템
   ═══════════════════════════════════════════════════ */
#munsell-color-picker-app * { margin: 0; padding: 0; box-sizing: border-box; }

#munsell-color-picker-app {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
  background: #f5f5f5;
  padding: 20px;
}

#munsell-color-picker-app div { color: inherit; }

#munsell-color-picker-app .container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}

#munsell-color-picker-app h1 { text-align: center; color: #333; margin-bottom: 10px; font-size: 28px; }
#munsell-color-picker-app .subtitle { text-align: center; color: #666; margin-bottom: 30px; font-size: 14px; }
#munsell-color-picker-app .section { margin-bottom: 30px; }
#munsell-color-picker-app .section-title { font-size: 16px; font-weight: 600; color: #444; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid #e0e0e0; }

#munsell-color-picker-app .hue-major-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

#munsell-color-picker-app .hue-major-button {
  padding: 25px 15px;
  border: 3px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  transition: all .2s;
  color: white !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,.4);
}

#munsell-color-picker-app .hue-major-button div { color: white !important; }
#munsell-color-picker-app .hue-major-button:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,.2); }
#munsell-color-picker-app .hue-major-button.active { border-color: #333; box-shadow: 0 4px 12px rgba(0,0,0,.3); transform: scale(1.05); }

#munsell-color-picker-app .hue-minor-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

#munsell-color-picker-app .hue-minor-button {
  padding: 20px 10px;
  border: 3px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
  color: white !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,.3);
}

#munsell-color-picker-app .hue-minor-button:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,.2); }
#munsell-color-picker-app .hue-minor-button.active { border-color: #333; box-shadow: 0 4px 12px rgba(0,0,0,.3); }

#munsell-color-picker-app .controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

#munsell-color-picker-app .control-group { background: #f9f9f9; padding: 20px; border-radius: 8px; }
#munsell-color-picker-app .control-group label { display: block; font-size: 14px; font-weight: 600; color: #555; margin-bottom: 10px; }
#munsell-color-picker-app .control-group input[type="range"] { width: 100%; height: 8px; border-radius: 4px; outline: none; -webkit-appearance: none; background: #ddd; }
#munsell-color-picker-app .control-group input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #333; cursor: pointer; }
#munsell-color-picker-app .control-group input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #333; cursor: pointer; border: none; }
#munsell-color-picker-app .control-value { display: inline-block; margin-left: 10px; font-weight: 600; color: #333; }

#munsell-color-picker-app .preview-section { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

#munsell-color-picker-app .color-preview {
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#munsell-color-picker-app .color-info { background: white; border-radius: 8px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.1); }

#munsell-color-picker-app .info-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
}

#munsell-color-picker-app .info-row:last-child { border-bottom: none; }
#munsell-color-picker-app .info-label { font-weight: 600; color: #555; }
#munsell-color-picker-app .info-value { font-family: 'Courier New', monospace; color: #333; background: #f5f5f5; padding: 4px 8px; border-radius: 4px; }

#munsell-color-picker-app .palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

#munsell-color-picker-app .palette-item { border-radius: 6px; cursor: pointer; transition: transform .2s; box-shadow: 0 2px 4px rgba(0,0,0,.1); overflow: hidden; }
#munsell-color-picker-app .palette-item:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,.2); }
#munsell-color-picker-app .palette-color { width: 100%; height: 80px; }
#munsell-color-picker-app .palette-info { background: white; padding: 8px; font-size: 10px; line-height: 1.4; }
#munsell-color-picker-app .palette-code { font-family: 'Courier New', monospace; color: #333; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#munsell-color-picker-app .palette-munsell { font-weight: 700; color: #000 !important; margin-bottom: 4px; font-size: 12px; }

#munsell-color-picker-app .modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.7);
  z-index: 999999;
  align-items: center;
  justify-content: center;
}

#munsell-color-picker-app .modal-overlay.active { display: flex; }

#munsell-color-picker-app .modal-content {
  background: white;
  border-radius: 15px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
  position: relative;
}

#munsell-color-picker-app .modal-close {
  position: absolute;
  top: 15px; right: 15px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all .3s;
}

#munsell-color-picker-app .modal-close:hover { background: white; transform: rotate(90deg); }
#munsell-color-picker-app .modal-color-display { width: 100%; height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-bottom: 1px solid #eee; }
#munsell-color-picker-app .modal-color-label { font-size: 2.5em; font-weight: 700; color: rgba(0,0,0,.7); text-shadow: 0 2px 4px rgba(255,255,255,.8); }
#munsell-color-picker-app .modal-color-info { padding: 30px; }

#munsell-color-picker-app .modal-info-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  border-bottom: 1px solid #eee;
  min-height: 50px;
}

#munsell-color-picker-app .modal-info-row:last-child { border-bottom: none; }
#munsell-color-picker-app .modal-info-label { font-weight: 400; color: #333; background: #f8f9fa; padding: 15px 20px; border-right: 1px solid #eee; height: 100%; display: flex; align-items: center; }
#munsell-color-picker-app .modal-info-value { font-family: 'Courier New', monospace; font-weight: 400; color: #333; font-size: 1em; padding: 15px 20px; }

@media (max-width: 768px) {
  #munsell-color-picker-app .controls { grid-template-columns: 1fr; }
  #munsell-color-picker-app .preview-section { grid-template-columns: 1fr; }
  #munsell-color-picker-app .hue-major-container { grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); }
  #munsell-color-picker-app .hue-minor-container { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════
 * RAL / 먼셀 컬러 시스템 — 시스템 다크모드 외형 통일
 * 실제 색상칩/팔레트 색은 유지하고, 주변 UI만 다크 톤으로 덮습니다.
 * ═══════════════════════════════════════════════════════════════ */
.zyss-system-shell.uc-admin #ral-color-picker-app,
.zyss-system-shell.uc-admin #munsell-color-picker-app {
  background: transparent;
  padding: 0;
  color: rgba(255, 255, 255, 0.88);
}

.zyss-system-shell.uc-admin #ral-color-picker-app .container,
.zyss-system-shell.uc-admin #munsell-color-picker-app .container {
  background: var(--uc-surface, #0b0b0b);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.zyss-system-shell.uc-admin #ral-color-picker-app .header,
.zyss-system-shell.uc-admin #munsell-color-picker-app .header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  color: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.zyss-system-shell.uc-admin #ral-color-picker-app h1,
.zyss-system-shell.uc-admin #munsell-color-picker-app h1,
.zyss-system-shell.uc-admin #ral-color-picker-app .subtitle,
.zyss-system-shell.uc-admin #munsell-color-picker-app .subtitle,
.zyss-system-shell.uc-admin #ral-color-picker-app .section-title,
.zyss-system-shell.uc-admin #munsell-color-picker-app .section-title,
.zyss-system-shell.uc-admin #munsell-color-picker-app .control-group label,
.zyss-system-shell.uc-admin #munsell-color-picker-app .control-value,
.zyss-system-shell.uc-admin #ral-color-picker-app .warning-title,
.zyss-system-shell.uc-admin #munsell-color-picker-app .uc-color-notice__title,
.zyss-system-shell.uc-admin #munsell-color-picker-app .uc-color-preview-code {
  color: rgba(255, 255, 255, 0.92) !important;
}

.zyss-system-shell.uc-admin #ral-color-picker-app .content,
.zyss-system-shell.uc-admin #munsell-color-picker-app .content,
.zyss-system-shell.uc-admin #munsell-color-picker-app .section {
  color: rgba(255, 255, 255, 0.82);
}

.zyss-system-shell.uc-admin #ral-color-picker-app .warning,
.zyss-system-shell.uc-admin #munsell-color-picker-app .uc-color-notice {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}

.zyss-system-shell.uc-admin .uc-color-notice__title {
  display: block;
  margin-left: 20px;
}

.zyss-system-shell.uc-admin .uc-color-notice__list {
  margin: 8px 0 0;
  padding-left: 20px;
  text-align: left;
  color: rgba(255, 255, 255, 0.76);
  line-height: 2.1;
}

.zyss-system-shell.uc-admin .uc-color-subsection {
  margin-bottom: 15px;
}

.zyss-system-shell.uc-admin .uc-color-subsection__label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.76);
}

.zyss-system-shell.uc-admin .uc-color-helper-text {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.56);
}

.zyss-system-shell.uc-admin .uc-color-preview-dot {
  margin-bottom: 10px;
  font-size: 48px;
  color: rgba(255, 255, 255, 0.92);
}

.zyss-system-shell.uc-admin #ral-color-picker-app .main-display,
.zyss-system-shell.uc-admin #munsell-color-picker-app .control-group,
.zyss-system-shell.uc-admin #munsell-color-picker-app .color-info,
.zyss-system-shell.uc-admin #munsell-color-picker-app .palette-info,
.zyss-system-shell.uc-admin #ral-color-picker-app .color-info,
.zyss-system-shell.uc-admin #ral-color-picker-app .palette-item,
.zyss-system-shell.uc-admin #munsell-color-picker-app .palette-item {
  background: var(--uc-surface-strong, #161616);
}

.zyss-system-shell.uc-admin #ral-color-picker-app .section-title,
.zyss-system-shell.uc-admin #munsell-color-picker-app .section-title,
.zyss-system-shell.uc-admin #ral-color-picker-app .info-row,
.zyss-system-shell.uc-admin #munsell-color-picker-app .info-row,
.zyss-system-shell.uc-admin #ral-color-picker-app .modal-info-row,
.zyss-system-shell.uc-admin #munsell-color-picker-app .modal-info-row,
.zyss-system-shell.uc-admin #ral-color-picker-app .color-preview,
.zyss-system-shell.uc-admin #munsell-color-picker-app .color-preview,
.zyss-system-shell.uc-admin #ral-color-picker-app .palette-color,
.zyss-system-shell.uc-admin #munsell-color-picker-app .palette-color,
.zyss-system-shell.uc-admin #ral-color-picker-app .modal-color-display,
.zyss-system-shell.uc-admin #munsell-color-picker-app .modal-color-display {
  border-color: rgba(255, 255, 255, 0.08);
}

.zyss-system-shell.uc-admin #ral-color-picker-app .info-label,
.zyss-system-shell.uc-admin #munsell-color-picker-app .info-label,
.zyss-system-shell.uc-admin #ral-color-picker-app .modal-info-label,
.zyss-system-shell.uc-admin #munsell-color-picker-app .modal-info-label {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72) !important;
  border-right-color: rgba(255, 255, 255, 0.08);
}

.zyss-system-shell.uc-admin #ral-color-picker-app .info-value,
.zyss-system-shell.uc-admin #munsell-color-picker-app .info-value,
.zyss-system-shell.uc-admin #ral-color-picker-app .modal-info-value,
.zyss-system-shell.uc-admin #munsell-color-picker-app .modal-info-value,
.zyss-system-shell.uc-admin #ral-color-picker-app .palette-name,
.zyss-system-shell.uc-admin #ral-color-picker-app .palette-hex,
.zyss-system-shell.uc-admin #munsell-color-picker-app .palette-code {
  color: rgba(255, 255, 255, 0.88) !important;
}

.zyss-system-shell.uc-admin #ral-color-picker-app .palette-item,
.zyss-system-shell.uc-admin #munsell-color-picker-app .palette-item,
.zyss-system-shell.uc-admin #ral-color-picker-app .color-button,
.zyss-system-shell.uc-admin #munsell-color-picker-app .hue-major-button,
.zyss-system-shell.uc-admin #munsell-color-picker-app .hue-minor-button {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.zyss-system-shell.uc-admin #munsell-color-picker-app .control-group input[type="range"] {
  background: rgba(255, 255, 255, 0.16);
}

.zyss-system-shell.uc-admin #munsell-color-picker-app .control-group input[type="range"]::-webkit-slider-thumb,
.zyss-system-shell.uc-admin #munsell-color-picker-app .control-group input[type="range"]::-moz-range-thumb {
  background: rgba(255, 255, 255, 0.92);
}

.zyss-system-shell.uc-admin #ral-color-picker-app .modal-overlay,
.zyss-system-shell.uc-admin #munsell-color-picker-app .modal-overlay {
  background: rgba(0, 0, 0, 0.82);
}

.zyss-system-shell.uc-admin #ral-color-picker-app .modal-content,
.zyss-system-shell.uc-admin #munsell-color-picker-app .modal-content {
  background: var(--uc-surface, #0b0b0b);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.zyss-system-shell.uc-admin #ral-color-picker-app .modal-close,
.zyss-system-shell.uc-admin #munsell-color-picker-app .modal-close {
  background: rgba(17, 17, 17, 0.92);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.zyss-system-shell.uc-admin #ral-color-picker-app .modal-close:hover,
.zyss-system-shell.uc-admin #munsell-color-picker-app .modal-close:hover {
  background: rgba(0, 0, 0, 0.96);
}

/* [한글 주석] 모바일 반응형 보강: 업체관리/거래명세서/색상시스템 독립 처리 */
@media (max-width: 640px) {
  .zyss-system-shell.uc-admin {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .zyss-system-shell.uc-admin * {
    box-sizing: border-box;
    min-width: 0;
  }

  .zyss-system-shell.uc-admin .uc-admin__topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 54px;
    padding: 8px 10px;
  }

  .zyss-system-shell.uc-admin .uc-admin__brand-tools,
  .zyss-system-shell.uc-admin .uc-brand {
    width: 100%;
    min-width: 0;
  }

  .zyss-system-shell.uc-admin .uc-brand__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
  }

  .zyss-system-shell.uc-admin .uc-admin__main,
  .zyss-system-shell.uc-admin .uc-panel,
  .zyss-system-shell.uc-admin .uc-card,
  .zyss-system-shell.uc-admin .uc-section {
    width: 100%;
    max-width: 100%;
    padding-right: 10px;
    padding-left: 10px;
  }

  .zyss-system-shell.uc-admin .uc-form-grid,
  .zyss-system-shell.uc-admin .uc-grid,
  .zyss-system-shell.uc-admin .supplier-grid,
  .zyss-system-shell.uc-admin .vendor-grid,
  .zyss-system-shell.uc-admin .uc-vendor-register-grid,
  .zyss-system-shell.uc-admin .uc-vendor-doc-grid,
  .zyss-system-shell.uc-admin .uc-vendor-form-grid,
  .zyss-system-shell.uc-admin .uc-vendor-memo-layout,
  .zyss-system-shell.uc-admin .uc-vendor-doc-type-row,
  .zyss-system-shell.uc-admin .uc-vendor-memo-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .zyss-system-shell.uc-admin .uc-actions,
  .zyss-system-shell.uc-admin .uc-button-row,
  .zyss-system-shell.uc-admin .vendor-actions,
  .zyss-system-shell.uc-admin .uc-vendor-toolbar,
  .zyss-system-shell.uc-admin .uc-vendor-doc-type-actions,
  .zyss-system-shell.uc-admin .uc-vendor-doc-form-actions,
  .zyss-system-shell.uc-admin .uc-vendor-memo-side-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .zyss-system-shell.uc-admin .uc-button,
  .zyss-system-shell.uc-admin button,
  .zyss-system-shell.uc-admin input,
  .zyss-system-shell.uc-admin select,
  .zyss-system-shell.uc-admin textarea {
    max-width: 100%;
  }

  .zyss-system-shell.uc-admin .uc-button:not(.uc-icon-button),
  .zyss-system-shell.uc-admin .button:not(.uc-icon-button) {
    width: 100%;
  }

  .zyss-system-shell.uc-admin .uc-vendor-heading,
  .zyss-system-shell.uc-admin .uc-vendor-card__head,
  .zyss-system-shell.uc-admin .uc-vendor-repeat-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .zyss-system-shell.uc-admin .uc-vendor-tabs {
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .zyss-system-shell.uc-admin .uc-vendor-tab {
    width: auto;
    flex: 0 0 auto;
    justify-content: center;
    white-space: nowrap;
  }

  .zyss-system-shell.uc-admin .uc-vendor-card,
  .zyss-system-shell.uc-admin .uc-vendor-company-card,
  .zyss-system-shell.uc-admin .uc-vendor-doc-row,
  .zyss-system-shell.uc-admin .uc-vendor-memos,
  .zyss-system-shell.uc-admin .uc-vendor-memo-side,
  .zyss-system-shell.uc-admin .uc-vendor-current {
    width: 100%;
    max-width: 100%;
  }

  .zyss-system-shell.uc-admin .uc-vendor-memo-side {
    border-right: 0;
    border-bottom: 1px solid var(--uc-border);
    padding-right: 0;
    padding-bottom: 12px;
  }

  .zyss-system-shell.uc-admin .uc-vendor-memo-editor {
    width: 100%;
    max-width: 100%;
    min-height: 120px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .zyss-system-shell.uc-admin .uc-vendor-images,
  .zyss-system-shell.uc-admin .uc-vendor-card-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zyss-system-shell.uc-admin table:not(.uc-statement-table) {
    width: 100%;
    min-width: 0;
    table-layout: auto;
  }

  .zyss-system-shell.uc-admin .uc-vendor-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
  }

  .zyss-system-shell.uc-admin .uc-vendor-table th,
  .zyss-system-shell.uc-admin .uc-vendor-table td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .zyss-system-shell.uc-admin .uc-table-wrap,
  .zyss-system-shell.uc-admin .table-wrap,
  .zyss-system-shell.uc-admin .uc-vendor-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .zyss-system-shell.uc-admin .uc-statement-view[data-statement-content="write"] {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .zyss-system-shell.uc-admin .uc-statement-sheet {
    width: calc(var(--uc-statement-page-width) + var(--uc-statement-action-gutter) + 2rem + 2px) !important;
    max-width: none !important;
    overflow: visible;
  }

  .zyss-system-shell.uc-admin .uc-statement-title-row,
  .zyss-system-shell.uc-admin .uc-statement-parties,
  .zyss-system-shell.uc-admin .uc-statement-table,
  .zyss-system-shell.uc-admin .uc-statement-amount-summary,
  .zyss-system-shell.uc-admin .uc-statement-footer-info {
    width: var(--uc-statement-page-width) !important;
    min-width: var(--uc-statement-page-width) !important;
  }

  .zyss-system-shell.uc-admin .uc-statement-table-wrap {
    width: calc(var(--uc-statement-page-width) + var(--uc-statement-action-gutter)) !important;
    max-width: none !important;
    overflow: visible !important;
    padding-right: var(--uc-statement-action-gutter) !important;
  }
}

/* [한글 주석] 모바일 패널 버튼: 좌측 패널을 가로 스크롤 메뉴로 열고 닫습니다. */
@media (max-width: 640px) {
  .zyss-system-shell.uc-admin .uc-admin__layout,
  .zyss-system-shell.uc-admin.zyss-system-shell--single-panel .uc-admin__layout,
  .zyss-system-shell.uc-admin .uc-admin__layout.is-sidebar-collapsed,
  .zyss-system-shell.uc-admin.zyss-system-shell--single-panel .uc-admin__layout.is-sidebar-collapsed {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px;
  }

  .zyss-system-shell.uc-admin .uc-admin__layout.is-sidebar-collapsed .uc-admin__sidebar {
    display: none !important;
  }

  .zyss-system-shell.uc-admin .uc-admin__sidebar {
    display: block !important;
    width: 100%;
    max-width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--uc-border);
    background: var(--uc-surface);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .zyss-system-shell.uc-admin .uc-admin-menu {
    position: static;
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: max-content;
    min-width: 100%;
    max-height: none;
    padding: 8px;
    overflow: visible;
  }

  .zyss-system-shell.uc-admin .uc-admin-menu__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-width: 78px;
    max-width: 72vw;
    min-height: 38px;
    padding: 8px 12px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* [한글 주석] 라이트모드 보강: 뒤쪽 다크 고정값을 최종 보정합니다. */
:root[data-zyss-color-mode="light"] .zyss-system-shell.uc-admin .uc-admin__topbar,
:root[data-zyss-color-mode="light"] .zyss-system-shell.uc-admin .uc-admin__sidebar,
:root[data-zyss-color-mode="light"] .zyss-system-shell.uc-admin .uc-card,
:root[data-zyss-color-mode="light"] .zyss-system-shell.uc-admin .uc-panel,
:root[data-zyss-color-mode="light"] .zyss-system-shell.uc-admin .uc-section,
:root[data-zyss-color-mode="light"] .zyss-system-shell.uc-admin .uc-statement-memo-panel,
:root[data-zyss-color-mode="light"] .zyss-system-shell.uc-admin .uc-vendor-card,
:root[data-zyss-color-mode="light"] .zyss-system-shell.uc-admin .uc-vendor-company-card,
:root[data-zyss-color-mode="light"] .zyss-system-shell.uc-admin .uc-vendor-doc-row,
:root[data-zyss-color-mode="light"] .zyss-system-shell.uc-admin .uc-vendor-current {
  background: #ffffff !important;
  color: #162033 !important;
  border-color: rgba(20, 28, 45, 0.12) !important;
}

:root[data-zyss-color-mode="light"] .zyss-system-shell.uc-admin .uc-admin-menu__item:not(.is-active),
:root[data-zyss-color-mode="light"] .zyss-system-shell.uc-admin .uc-button:not(.uc-button--primary),
:root[data-zyss-color-mode="light"] .zyss-system-shell.uc-admin .button:not(.button-primary) {
  background: #f8fafc !important;
  color: #162033 !important;
  border-color: rgba(20, 28, 45, 0.14) !important;
}

:root[data-zyss-color-mode="light"] .zyss-system-shell.uc-admin .uc-muted,
:root[data-zyss-color-mode="light"] .zyss-system-shell.uc-admin .uc-help,
:root[data-zyss-color-mode="light"] .zyss-system-shell.uc-admin .uc-note {
  color: #5e687a !important;
}
