:root {
  --sidebar: #222d32;
  --sidebar-deep: #181f23;
  --sidebar-text: #6c8c9b;
  --sidebar-active: #ffffff;
  --ink: #242424;
  --muted: #999999;
  --line: #e9e6df;
  --canvas: #f6f3ec;
  --card: #ffffff;
  --teal: #4e73df;
  --teal-soft: #edf1ff;
  --gold: #c9c2a3;
  --shadow: 0 2px 12px rgba(36, 36, 36, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button, input { font: inherit; }
button { cursor: pointer; }

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 264px;
  display: flex;
  flex-direction: column;
  color: var(--sidebar-text);
  background: var(--sidebar);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 0 28px;
  color: #f4fafb;
  background: #222d32;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
}

.brand-title { font-size: 21px; letter-spacing: .04em; }
.brand-subtitle { margin-top: 4px; color: #6c8c9b; font-size: 9px; letter-spacing: .18em; }

.workspace-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 28px 16px;
  color: #ffffff;
  background: #1a2226;
  font-size: 14px;
  font-weight: 600;
}

.switcher-dot, .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7fc2ca;
  box-shadow: 0 0 0 4px rgba(127,194,202,.12);
}

.chevron { margin-left: auto; font-size: 22px; line-height: 12px; }
.nav-list { max-height: calc(100vh - 190px); overflow-y: auto; padding: 6px 14px 18px; scrollbar-width: thin; }

.nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 14px;
  padding: 15px 14px;
  border: 0;
  border-radius: 10px;
  color: var(--sidebar-text);
  background: transparent;
  text-align: left;
  font-size: 15px;
  transition: .2s ease;
}

.nav-item:hover { color: #f4fbfc; background: rgba(255,255,255,.06); }
.nav-item.active { color: var(--sidebar-active); background: #1e282c; box-shadow: inset 3px 0 0 #4e73df; }
.nav-icon { width: 20px; color: #6c8c9b; font-size: 18px; text-align: center; }
.nav-item.active .nav-icon { color: #ffffff; }

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 18px 28px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: #6e8993;
  font-size: 11px;
}

.nav-list::-webkit-scrollbar { width: 5px; }
.nav-list::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(184,199,206,.25); }

.main-content { position: relative; width: calc(100% - 264px); margin-left: 264px; background: var(--canvas); transition: width .22s ease, margin-left .22s ease; }
.sidebar-toggle { position: absolute; top: 28px; left: -18px; z-index: 3; display: grid; width: 36px; height: 72px; place-items: center; border: 1px solid #e5e0d8; border-radius: 0 8px 8px 0; color: #6a8289; background: #fff; box-shadow: 0 3px 12px rgba(36,36,36,.08); font-size: 25px; line-height: 1; }
.sidebar-toggle:hover { color: #4e73df; border-color: #b9c8ec; }
body.sidebar-collapsed .sidebar { width: 72px; }
body.sidebar-collapsed .main-content { width: calc(100% - 72px); margin-left: 72px; }
body.sidebar-collapsed .brand { justify-content: center; padding: 0; }
body.sidebar-collapsed .brand > div:last-child, body.sidebar-collapsed .workspace-switcher > span:not(.switcher-dot), body.sidebar-collapsed .nav-item > span:last-child, body.sidebar-collapsed .sidebar-footer > span:last-child { display: none; }
body.sidebar-collapsed .workspace-switcher { justify-content: center; padding: 22px 0 16px; }
body.sidebar-collapsed .chevron { display: none; }
body.sidebar-collapsed .nav-list { padding-left: 9px; padding-right: 9px; }
body.sidebar-collapsed .nav-item { justify-content: center; padding-left: 0; padding-right: 0; }
body.sidebar-collapsed .nav-icon { width: auto; font-size: 19px; }
body.sidebar-collapsed .sidebar-footer { justify-content: center; padding-left: 0; padding-right: 0; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; padding: 32px 46px 26px; background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumb { color: #93a6ac; font-size: 12px; }
.breadcrumb span { padding: 0 8px; color: #c5d0d3; }
.breadcrumb strong { color: #4e73df; font-weight: 600; }
h1 { margin: 10px 0 0; font-size: 28px; letter-spacing: -.03em; color: #242424; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.ghost-button { border: 1px solid var(--line); border-radius: 9px; padding: 9px 14px; color: #5e777f; background: #fff; }
.ghost-button:hover { border-color: #a8cdd1; color: var(--teal); }
.user-chip { display: flex; align-items: center; gap: 9px; color: #49636b; font-size: 13px; }
.avatar { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #fff; background: var(--teal); font-weight: 700; }

.content { padding: 32px 46px 50px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.metric-card, .panel { border: 1px solid var(--line); border-radius: 10px; background: var(--card); box-shadow: var(--shadow); }
.metric-card { padding: 20px; }
.metric-label { color: var(--muted); font-size: 12px; }
.metric-value { margin-top: 12px; font-size: 28px; font-weight: 700; letter-spacing: -.04em; }
.metric-note { margin-top: 7px; color: #9aabb0; font-size: 11px; }
.metric-note em { color: var(--teal); font-style: normal; }

.panel { overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.panel-title { font-size: 16px; font-weight: 700; }
.panel-subtitle { margin-top: 5px; color: var(--muted); font-size: 12px; }
.toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.bulk-toolbar { display: flex; align-items: center; gap: 7px; padding-right: 4px; border-right: 1px solid var(--line); flex-wrap: wrap; }
.selection-count { color: #8ca0a5; font-size: 11px; white-space: nowrap; }
.compact-button { padding: 9px 12px; font-size: 12px; }
.primary-button { border: 0; border-radius: 4px; padding: 10px 14px; color: #fff; background: #4e73df; font-size: 12px; }
.primary-button:hover { background: #3d5fbd; }
.ghost-button:disabled, .primary-button:disabled { cursor: not-allowed; opacity: .45; }
.danger-button { border: 0; border-radius: 4px; padding: 10px 14px; color: #fff; background: #c45b5b; font-size: 12px; }
.danger-button:hover { background: #a94444; }
.filter-row { display: flex; gap: 10px; padding: 16px 22px; background: #faf9f6; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.search-input, .select-input { min-width: 170px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; outline: none; color: #415a62; background: #fff; font-size: 12px; }
.search-input:focus, .select-input:focus { border-color: #91a9e8; box-shadow: 0 0 0 3px rgba(78,115,223,.1); }
.filter-searchable { position: relative; min-width: 170px; }
.filter-searchable > .search-input { width: 100%; padding-right: 30px; }
.filter-searchable-toggle { position: absolute; top: 1px; right: 1px; bottom: 1px; width: 30px; border: 0; border-radius: 0 7px 7px 0; color: #58727a; background: transparent; }
.filter-searchable-menu { position: absolute; top: calc(100% + 5px); right: 0; left: 0; z-index: 25; max-height: 230px; overflow-y: auto; padding: 5px; border: 1px solid #dce4e6; border-radius: 8px; background: #fff; box-shadow: 0 10px 24px rgba(20, 29, 33, .16); }
.filter-searchable-option { display: block; width: 100%; border: 0; border-radius: 5px; padding: 9px 10px; color: #4e676f; background: transparent; font-size: 12px; text-align: left; }
.filter-searchable-option:hover, .filter-searchable-option:focus { outline: none; color: #3d5fbd; background: #eef3ff; }
.filter-searchable-empty { padding: 9px 10px; color: #9aabb0; font-size: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 13px 22px; color: #999999; background: #faf9f6; font-weight: 600; text-align: left; white-space: nowrap; }
td { padding: 15px 22px; border-top: 1px solid #eff3f4; color: #4e676f; white-space: nowrap; }
.table-sort { display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 0; color: inherit; background: transparent; font: inherit; font-weight: inherit; white-space: nowrap; }
.table-sort:hover, .table-sort.active { color: #4e73df; }
.sort-indicator { color: #b5c0c3; font-size: 11px; }
.table-sort.active .sort-indicator { color: #4e73df; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 22px; border-top: 1px solid var(--line); color: #8ca0a5; background: #faf9f6; font-size: 12px; }
.pagination-controls { display: flex; align-items: center; gap: 5px; }
.pagination-button, .pagination-number { min-width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 6px; color: #5e777f; background: #fff; font-size: 12px; }
.pagination-button { padding: 0 9px; }
.pagination-number { padding: 0 7px; }
.pagination-button:hover:not(:disabled), .pagination-number:hover { border-color: #a8cdd1; color: var(--teal); }
.pagination-number.active { border-color: #4e73df; color: #fff; background: #4e73df; }
.pagination-button:disabled { cursor: not-allowed; opacity: .4; }
.pagination-ellipsis { min-width: 20px; color: #9aabb0; text-align: center; }
.pagination-current { margin-left: 5px; color: #718388; white-space: nowrap; }
.selection-col { width: 42px; padding-left: 16px; padding-right: 6px; text-align: center; }
.selection-col input { width: 15px; height: 15px; accent-color: #4e73df; vertical-align: middle; }
tbody tr:hover { background: #fbfdfd; }
.code { color: #4e73df; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; }
.code-link { padding: 0; font-family: inherit; font-weight: 600; }
.subtle { color: #8ca0a5; }
.tag { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: 11px; }
.tag.teal { color: #3d5fbd; background: var(--teal-soft); }
.tag.gold { color: #8f835d; background: #f6f1db; }
.tag.gray { color: #718388; background: #eef2f3; }
.priority { display: inline-flex; border-radius: 999px; padding: 4px 8px; font-size: 11px; }
.priority-一级 { color: #a03d3d; background: #fde8e8; }
.priority-二级 { color: #9a6a21; background: #fff2d9; }
.priority-三级 { color: #3a7b73; background: #e4f4f0; }
.ellipsis-cell { display: inline-block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; white-space: nowrap; }
.asset-mark { color: #4e73df; font-size: 11px; }
.image-preview { display: inline-grid; width: 34px; height: 34px; overflow: hidden; place-items: center; border: 1px solid var(--line); border-radius: 5px; padding: 0; background: #faf9f6; vertical-align: middle; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.row-action { border: 0; color: #4e73df; background: transparent; font-size: 12px; }
.row-action + .row-action { margin-left: 10px; }
.actions-cell { min-width: 260px; }
.danger-action { color: #c45b5b; }
.process-detail-action { white-space: nowrap; }
.current-process { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.current-process strong { color: #ff525b; font-weight: 600; }
.current-process small { color: #8ea1a6; font-size: 11px; }
.current-process.not-started strong { color: #a1afb2; font-weight: 400; }
.empty-state { padding: 58px 20px; color: #8ca0a5; text-align: center; }
.empty-state strong { display: block; margin-bottom: 8px; color: #5b747b; font-size: 16px; }

.technology-document-page { overflow: hidden; border: 1px solid #dce3e6; background: #fff; box-shadow: 0 2px 10px rgba(36, 36, 36, .08); }
.technology-document-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 16px; color: #fff; background: #283b56; }
.technology-document-titlebar strong { display: block; font-size: 14px; font-weight: 600; }
.technology-document-titlebar span { display: block; margin-top: 4px; color: #b8c6d5; font-size: 11px; }
.document-actions { display: flex; gap: 8px; }
.document-actions .ghost-button { color: #506674; background: #fff; }
.technology-document-tabs { display: flex; gap: 5px; padding: 17px 18px 0; background: #e9eef2; }
.document-tab { border: 0; border-radius: 3px 3px 0 0; padding: 12px 25px; color: #84939c; background: #dce4e9; font-size: 13px; }
.document-tab.active { color: #55646d; background: #fff; }
.technology-document-body { min-height: 670px; padding: 20px 18px 32px; background: #fff; }
.document-tab-panel { display: none; }
.document-tab-panel.active { display: block; }
.document-section-title { margin: 8px 0 16px; color: #353d42; font-size: 15px; font-weight: 600; }
.document-section-title.compact { margin-top: 26px; padding: 12px 0; border-top: 1px solid #e5eaec; border-bottom: 1px solid #e5eaec; text-align: center; }
.document-meta-grid { display: grid; grid-template-columns: repeat(8, minmax(92px, 1fr)); border-top: 1px solid #e2e7e9; border-left: 1px solid #e2e7e9; }
.document-meta-cell { display: grid; grid-template-columns: auto minmax(0, 1fr); min-height: 59px; border-right: 1px solid #e2e7e9; border-bottom: 1px solid #e2e7e9; background: #fff; }
.document-meta-label { display: flex; align-items: center; justify-content: center; padding: 8px 9px; color: #30383d; font-size: 12px; font-weight: 600; line-height: 1.6; }
.document-meta-cell:first-child .document-meta-label, .document-meta-cell:nth-child(2) .document-meta-label, .document-meta-cell:nth-child(3) .document-meta-label { color: #39444a; }
.document-meta-value { display: flex; align-items: center; min-width: 0; padding: 8px 10px; color: #4d5a60; background: #f0f1f2; font-size: 12px; overflow-wrap: anywhere; }
.document-hero-grid { display: grid; grid-template-columns: minmax(330px, 1fr) minmax(370px, 1fr); margin-top: 18px; border: 1px solid #e2e7e9; }
.document-image-cell { display: grid; min-height: 360px; place-items: center; padding: 26px; border-right: 1px solid #e2e7e9; background: #fff; }
.document-image-button { display: grid; width: 100%; height: 310px; min-height: 310px; place-items: center; overflow: hidden; border: 0; background: #fff; cursor: zoom-in; }
.document-image-button img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.document-image-placeholder { display: grid; min-height: 310px; place-items: center; color: #a1abad; font-size: 12px; }
.document-image-placeholder svg { width: min(290px, 100%); height: 270px; }
.document-image-placeholder span { margin-top: -28px; }
.document-measure-card { min-width: 0; padding: 0 0 18px; }
.document-inline-field { display: flex; align-items: center; gap: 7px; padding: 16px 22px 9px; color: #4b5559; font-size: 13px; }
.document-inline-field strong { min-width: 76px; padding: 8px 11px; color: #4c585d; background: #eceeef; font-weight: 400; }
.document-table { width: 100%; border-collapse: collapse; color: #434c50; font-size: 12px; }
.document-table th, .document-table td { padding: 11px 12px; border: 1px solid #e2e7e9; white-space: normal; }
.document-table th { color: #30383d; background: #f7f8f8; font-weight: 600; text-align: center; }
.document-table td { color: #59676b; background: #fff; text-align: center; }
.document-inline-image-list { display: flex; min-height: 60px; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px; }
.document-inline-image { display: grid; flex: 0 0 58px; width: 58px; height: 58px; place-items: center; overflow: hidden; padding: 2px; border: 1px solid #dfe6e8; border-radius: 6px; background: #fff; cursor: zoom-in; }
.document-inline-image:hover { border-color: #4e73df; box-shadow: 0 0 0 2px rgba(78,115,223,.1); }
.document-inline-image img { width: 100%; height: 100%; object-fit: contain; }
.measure-table { border-top: 1px solid #e2e7e9; }
.document-text-title { margin: 16px 22px 8px; color: #4b5559; font-size: 13px; }
.document-text-box { min-height: 94px; margin: 0 22px; padding: 14px; border: 1px solid #e2e7e9; color: #647277; background: #f0f1f2; font-size: 12px; line-height: 1.7; white-space: pre-wrap; }
.document-material-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 18px; }
.document-material-card, .document-accessory-card { border: 1px solid #e2e7e9; background: #fff; }
.document-material-image { display: grid; min-height: 120px; place-items: center; padding: 12px; border-bottom: 1px solid #e2e7e9; background: #fff; }
.document-material-image .document-image-placeholder { min-height: 120px; }
.document-material-image .document-image-placeholder svg { width: 130px; height: 100px; }
.document-material-image .document-image-placeholder span { margin-top: -13px; }
.document-material-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.document-material-cell { display: grid; grid-template-columns: 38px minmax(0, 1fr); min-height: 59px; border-right: 1px solid #e2e7e9; border-bottom: 1px solid #e2e7e9; }
.document-material-cell.wide { grid-column: span 2; }
.document-material-cell span { display: flex; align-items: center; justify-content: center; padding: 8px 5px; color: #384247; font-weight: 600; writing-mode: vertical-rl; }
.document-material-cell strong { display: flex; align-items: center; min-width: 0; padding: 8px; color: #6b767a; background: #f0f1f2; font-weight: 400; overflow-wrap: anywhere; }
.document-subsection-title { padding: 14px; color: #3e484d; font-size: 14px; font-weight: 600; }
.document-accessory-card .document-table { border-top: 1px solid #e2e7e9; }
.size-table th, .size-table td { min-width: 57px; }
.document-size-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 18px; align-items: start; }
.document-description { min-height: 120px; margin: 0; }
.composition-table { width: min(100%, 390px); }

.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 24px; background: rgba(20, 29, 33, .58); }
.modal-card { width: min(620px, 100%); max-height: min(86vh, 820px); overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(20, 29, 33, .25); }
.wide-modal { width: min(900px, 100%); }
.image-modal { width: min(760px, 100%); }
.image-preview-body { display: grid; min-height: 260px; place-items: center; padding: 24px; background: #faf9f6; }
.image-preview-body img { max-width: 100%; max-height: 60vh; object-fit: contain; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.modal-close { border: 0; color: #8ca0a5; background: transparent; font-size: 26px; line-height: 1; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 22px 24px; }
.repeater-block { margin: 18px 24px 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.repeater-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; border-bottom: 1px solid var(--line); background: #faf9f6; }
.repeater-head strong { display: block; color: #425d64; font-size: 13px; }
.repeater-head span { display: block; margin-top: 4px; color: #9aabb0; font-size: 11px; }
.repeater-list { overflow-x: auto; padding: 12px; }
.repeater-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) auto; align-items: end; gap: 9px; min-width: 680px; margin-bottom: 10px; padding: 10px; border: 1px solid #edf0ef; border-radius: 7px; background: #fcfdfc; }
.repeater-row:last-child { margin-bottom: 0; }
.repeater-field { display: flex; min-width: 90px; flex-direction: column; gap: 5px; color: #6d7f84; font-size: 11px; }
.repeater-field input { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 8px; outline: none; color: #3f555b; background: #fff; font-size: 12px; }
.repeater-field input:focus { border-color: #91a9e8; box-shadow: 0 0 0 3px rgba(78,115,223,.1); }
.repeater-library-control { position: relative; min-width: 0; }
.repeater-library-control > input { padding-right: 30px; }
.repeater-library-control[data-library-large="1"] > input { padding-right: 8px; }
.repeater-library-toggle { position: absolute; top: 1px; right: 1px; bottom: 1px; width: 28px; border: 0; border-radius: 0 6px 6px 0; color: #58727a; background: transparent; font-size: 13px; }
.repeater-library-toggle:hover { color: #4e73df; background: #f4f7ff; }
.repeater-library-menu { position: fixed; z-index: 100; max-height: 220px; overflow-y: auto; padding: 5px; border: 1px solid #dce4e6; border-radius: 7px; background: #fff; box-shadow: 0 10px 24px rgba(20, 29, 33, .18); }
.repeater-library-option { display: block; width: 100%; border: 0; border-radius: 5px; padding: 8px 9px; color: #4e676f; background: transparent; font: inherit; font-size: 11px; text-align: left; }
.repeater-library-option:hover, .repeater-library-option:focus { outline: none; color: #3d5fbd; background: #eef3ff; }
.repeater-library-more { display: block; width: 100%; border: 0; border-top: 1px solid #edf0ef; padding: 9px; color: #4e73df; background: #fff; font: inherit; font-size: 11px; text-align: center; cursor: pointer; }
.repeater-library-more:hover, .repeater-library-more:focus { outline: none; background: #f3f6ff; }
.repeater-library-empty { padding: 8px 9px; color: #9aabb0; font-size: 11px; line-height: 1.5; }
.repeater-row[data-repeater-row="fabricRows"], .repeater-row[data-repeater-row="accessoryRows"] { min-width: 1500px; }
.repeater-row[data-repeater-row="printingFrontRows"], .repeater-row[data-repeater-row="printingBackRows"] { min-width: 1020px; grid-template-columns: repeat(5, minmax(110px, 1fr)) minmax(190px, 1.35fr) auto; }
.repeater-row[data-repeater-row="partsRows"] { min-width: 430px; grid-template-columns: minmax(160px, 1fr) minmax(120px, 1fr) auto; }
.repeater-row[data-repeater-row="revisionRows"] { min-width: 860px; grid-template-columns: minmax(90px, .5fr) minmax(150px, .8fr) minmax(220px, 1.4fr) minmax(220px, 1.4fr) auto; }
.repeater-row[data-repeater-row="fabricRows"] { min-width: 1650px; grid-template-columns: repeat(12, minmax(95px, 1fr)) minmax(190px, 1.4fr) minmax(110px, 1fr) auto; }
.repeater-row[data-repeater-row="accessoryRows"] { min-width: 1750px; grid-template-columns: repeat(10, minmax(95px, 1fr)) repeat(2, minmax(190px, 1.4fr)) minmax(110px, 1fr) auto; }
.repeater-row[data-repeater-row="washLabelRows"] { min-width: 900px; grid-template-columns: minmax(210px, 1.4fr) minmax(150px, 1fr) minmax(110px, .75fr) minmax(140px, .9fr) minmax(180px, 1.15fr) auto; }
.repeater-row[data-repeater-row="compositionRows"] { min-width: 520px; grid-template-columns: minmax(160px, 1fr) minmax(220px, 1.5fr) auto; }
.repeater-row-with-images { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.repeater-image-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 420px)); align-items: start; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #edf0ef; }
.repeater-fields-row { display: grid; align-items: end; gap: 9px; min-width: 0; }
.repeater-fields-row[data-repeater-row="printingFrontRows"], .repeater-fields-row[data-repeater-row="printingBackRows"] { grid-template-columns: repeat(5, minmax(110px, 1fr)) auto; }
.repeater-fields-row[data-repeater-row="washLabelRows"] { grid-template-columns: minmax(150px, 1fr) minmax(110px, .75fr) minmax(140px, .9fr) minmax(180px, 1.15fr) auto; }
.repeater-fields-row[data-repeater-row="fabricRows"] { grid-template-columns: repeat(12, minmax(95px, 1fr)) minmax(110px, 1fr) auto; }
.repeater-fields-row[data-repeater-row="accessoryRows"] { grid-template-columns: repeat(10, minmax(95px, 1fr)) minmax(110px, 1fr) auto; }
.repeater-field > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repeater-field input { min-width: 0; }
.repeater-image-upload { display: grid; grid-template-columns: minmax(0, 1fr) 190px; grid-template-rows: auto auto; gap: 6px 8px; width: 100%; min-width: 0; align-items: start; }
.repeater-image-upload .repeater-image-dropzone { grid-column: 2; grid-row: 1; min-height: 64px; height: auto; }
.repeater-image-upload .upload-preview-list { grid-column: 1; grid-row: 1; align-items: flex-start; justify-content: flex-start; min-height: 64px; margin: 0; gap: 6px; }
.repeater-image-upload .upload-preview-item { flex: 0 0 56px; width: 56px; height: 56px; }
.repeater-image-upload .upload-preview-item span { font-size: 8px; }
.repeater-image-upload .upload-remove { width: 17px; height: 17px; font-size: 13px; }
.repeater-image-empty { display: grid; width: 56px; height: 56px; place-items: center; border: 1px dashed #d6dfe2; border-radius: 6px; color: #a1afb3; background: #fafbfb; font-size: 9px; text-align: center; }
.repeater-image-clear { grid-column: 1; grid-row: 2; justify-self: start; margin: 0; padding: 0; border: 0; color: #c45b5b; background: transparent; font-size: 10px; line-height: 16px; cursor: pointer; }
.repeater-image-readonly { display: flex; min-height: 56px; align-items: flex-start; justify-content: flex-start; }
.repeater-remove { align-self: center; border: 0; color: #c45b5b; background: transparent; font-size: 11px; white-space: nowrap; }
.repeater-empty { padding: 18px; color: #8ca0a5; text-align: center; font-size: 12px; }
.modal-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 12px 24px 0; border-bottom: 1px solid var(--line); }
.modal-tab { border: 0; border-bottom: 2px solid transparent; padding: 10px 12px; color: #7b8f95; background: transparent; font-size: 12px; white-space: nowrap; }
.modal-tab.active { border-bottom-color: #4e73df; color: #3d5fbd; font-weight: 600; }
.modal-tab-panel { display: none; }
.modal-tab-panel.active { display: block; }
.form-field { display: flex; flex-direction: column; gap: 7px; color: #6d7f84; font-size: 12px; }
.field-hint { margin-left: 7px; color: #91a9e8; font-size: 10px; font-weight: 400; }
.form-field.full { grid-column: 1 / -1; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 10px 11px; outline: none; color: #3f555b; background: #fff; font-size: 13px; }
.searchable-control { position: relative; }
.searchable-control > input { padding-right: 36px; }
.searchable-toggle { position: absolute; top: 1px; right: 1px; bottom: 1px; width: 34px; border: 0; border-radius: 0 6px 6px 0; color: #58727a; background: transparent; font-size: 15px; }
.searchable-toggle:hover { color: #4e73df; background: #f4f7ff; }
.searchable-menu { position: absolute; top: calc(100% + 5px); right: 0; left: 0; z-index: 20; max-height: 230px; overflow-y: auto; padding: 5px; border: 1px solid #dce4e6; border-radius: 8px; background: #fff; box-shadow: 0 10px 24px rgba(20, 29, 33, .16); }
.searchable-option { display: block; width: 100%; border: 0; border-radius: 5px; padding: 9px 10px; color: #4e676f; background: transparent; font: inherit; font-size: 13px; text-align: left; }
.searchable-option:hover, .searchable-option:focus { outline: none; color: #3d5fbd; background: #eef3ff; }
.searchable-empty { padding: 9px 10px; color: #9aabb0; font-size: 12px; }
.form-field textarea { min-height: 76px; resize: vertical; line-height: 1.6; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #91a9e8; box-shadow: 0 0 0 3px rgba(78,115,223,.1); }
.bottom-printing-form { padding-bottom: 2px; }
.bottom-printing-top-grid, .bottom-printing-base-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 14px; padding: 18px 24px; border-bottom: 1px solid var(--line); background: #faf9f6; }
.bottom-printing-base-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); background: #fff; }
.bottom-printing-info-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(270px, .8fr); gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.bottom-printing-info-images { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; }
.bottom-printing-info-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfb; }
.bottom-printing-info-fields .form-field.full { grid-column: 1 / -1; }
.bottom-printing-artwork { margin: 18px 24px 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.bottom-printing-section-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #faf9f6; }
.bottom-printing-section-head strong { display: block; color: #425d64; font-size: 14px; }
.bottom-printing-section-head span { display: block; margin-top: 4px; color: #9aabb0; font-size: 11px; }
.bottom-printing-side-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 16px; }
.bottom-printing-side { min-width: 0; overflow: hidden; border: 1px solid #edf0ef; border-radius: 8px; background: #fcfdfc; }
.bottom-printing-side-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #edf0ef; }
.bottom-printing-side-head strong { color: #425d64; font-size: 13px; }
.bottom-printing-image { padding: 14px; border-bottom: 1px solid #edf0ef; }
.bottom-printing-image .upload-dropzone { min-height: 150px; }
.bottom-printing-side-list { padding: 12px; }
.bottom-printing-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 9px; margin-bottom: 10px; padding: 10px; border: 1px solid #edf0ef; border-radius: 7px; background: #fff; }
.bottom-printing-row:last-child { margin-bottom: 0; }
.bottom-color-bar { display: flex; align-items: end; gap: 10px; padding: 0 12px 14px; }
.bottom-color-bar .form-field { flex: 1; }
.bottom-color-manage { margin-bottom: 1px; white-space: nowrap; }
.image-upload-field { min-width: 0; }
.upload-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.upload-dropzone { display: grid; min-height: 112px; place-items: center; align-content: center; gap: 5px; border: 1px dashed #b9c9cf; border-radius: 9px; color: #6c858c; background: #fbfcfc; outline: none; cursor: pointer; transition: .2s ease; }
.upload-dropzone:hover, .upload-dropzone:focus, .upload-dropzone.dragging { border-color: #4e73df; color: #3d5fbd; background: #f3f6ff; box-shadow: 0 0 0 3px rgba(78,115,223,.1); }
.upload-icon { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 22px; font-weight: 300; line-height: 1; }
.upload-dropzone strong { font-size: 13px; font-weight: 600; }
.upload-dropzone small, .upload-footer small { color: #94a5aa; font-size: 11px; }
.upload-preview-list { display: flex; min-width: 0; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 9px; }
.upload-preview-item { position: relative; display: grid; flex: 0 0 76px; width: 76px; height: 76px; overflow: hidden; place-items: center; border: 1px solid #dfe6e8; border-radius: 7px; background: #f7f9f9; }
.upload-preview-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.upload-preview-item span { position: absolute; right: 0; bottom: 0; left: 0; padding: 3px 4px; overflow: hidden; color: #fff; background: rgba(24, 34, 38, .62); font-size: 9px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.upload-preview-item .upload-remove { position: absolute; top: 3px; right: 3px; z-index: 1; display: grid; width: 20px; height: 20px; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgba(24, 34, 38, .72); font-size: 16px; line-height: 1; cursor: pointer; }
.upload-preview-item .upload-remove:hover, .upload-preview-item .upload-remove:focus { color: #fff; background: #e45757; outline: 2px solid rgba(255,255,255,.85); }
.upload-empty { padding: 6px 2px; color: #9babad; font-size: 11px; }
.upload-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.upload-footer .ghost-button { padding: 5px 8px; font-size: 11px; }
.readonly-upload { min-height: 80px; margin-top: 0; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: #fafbfb; }
.repeater-image-upload .repeater-image-dropzone { display: grid; width: 100%; min-height: 64px; height: auto; place-items: center; align-content: center; gap: 2px; padding: 6px; border-radius: 6px; }
.repeater-image-upload .repeater-image-dropzone strong { color: #4e73df; font-size: 10px; font-weight: 600; white-space: nowrap; }
.repeater-image-upload .repeater-image-dropzone small { color: #94a5aa; font-size: 8px; white-space: nowrap; }
.repeater-image-upload .upload-preview-list { align-items: flex-start; justify-content: flex-start; margin: 0; }
.repeater-image-upload .upload-preview-item { flex: 0 0 56px; width: 56px; height: 56px; }
.repeater-image-upload .upload-preview-item span { font-size: 8px; }
.repeater-image-upload .upload-preview-item .upload-remove { width: 17px; height: 17px; font-size: 13px; }
.confirm-copy { margin: 0; padding: 22px 24px; color: #60767c; font-size: 13px; line-height: 1.7; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 0 24px 22px; }
.column-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 22px 24px; }
.column-option { display: flex; align-items: center; gap: 8px; color: #526a71; font-size: 13px; }
.column-option input { accent-color: #4e73df; }
.timeline { padding: 22px 28px 8px; }
.timeline-item { position: relative; display: flex; gap: 12px; min-height: 42px; border-left: 1px solid #dce4e6; padding: 0 0 16px 18px; color: #526a71; font-size: 13px; }
.timeline-item span { position: absolute; left: -5px; top: 3px; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: #4e73df; box-shadow: 0 0 0 1px #91a9e8; }
.timeline-item p { margin: 0; line-height: 1.5; }
.process-summary { display: flex; align-items: baseline; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); background: #faf9f6; }
.process-summary span { color: #7c8e93; font-size: 13px; }
.process-summary strong { color: #ff525b; font-size: 20px; }
.process-summary small { color: #91a1a5; font-size: 12px; }
.process-detail-table { overflow-x: auto; padding: 20px 24px 8px; }
.process-detail-table table { min-width: 620px; }
.process-quality { margin: 10px 24px 20px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #faf9f6; }
.process-quality strong { display: block; margin-bottom: 8px; color: #586f75; font-size: 13px; }
.process-quality p { min-height: 42px; margin: 0; color: #78888d; font-size: 12px; line-height: 1.7; white-space: pre-wrap; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 5; transform: translateY(20px); opacity: 0; border-radius: 10px; padding: 12px 16px; color: #fff; background: #21363d; box-shadow: var(--shadow); font-size: 12px; pointer-events: none; transition: .25s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 900px) {
  .sidebar { width: 220px; }
  .main-content { width: calc(100% - 220px); margin-left: 220px; }
  .topbar, .content { padding-left: 24px; padding-right: 24px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .document-meta-grid { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
  .document-hero-grid, .document-material-layout, .document-size-layout { grid-template-columns: 1fr; }
  .document-image-cell { border-right: 0; border-bottom: 1px solid #e2e7e9; }
  .bottom-printing-base-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bottom-printing-info-grid, .bottom-printing-side-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .sidebar { position: static; width: 100%; min-height: auto; }
  .app-shell { display: block; }
  .main-content { width: 100%; margin-left: 0; }
  .nav-list { display: grid; grid-template-columns: repeat(2, 1fr); }
  .sidebar-footer { display: none; }
  .sidebar-toggle { display: none; }
  .topbar { align-items: flex-start; gap: 16px; flex-direction: column; }
  .content { padding: 20px 14px 30px; }
  .metrics { gap: 10px; }
  .metric-card { padding: 15px; }
  .metric-value { font-size: 22px; }
  .filter-row { flex-wrap: wrap; padding: 13px; }
  .search-input, .select-input { min-width: 0; flex: 1; }
  .form-grid { grid-template-columns: 1fr; padding: 18px; }
  .bottom-printing-top-grid, .bottom-printing-base-grid, .bottom-printing-info-fields { grid-template-columns: 1fr; }
  .bottom-printing-top-grid, .bottom-printing-base-grid, .bottom-printing-info-grid { padding: 16px; }
  .bottom-printing-info-images { grid-template-columns: 1fr; }
  .bottom-printing-artwork { margin: 16px; }
  .bottom-printing-side-grid { padding: 10px; }
  .bottom-printing-row { grid-template-columns: 1fr; }
  .bottom-color-bar { align-items: stretch; flex-direction: column; }
  .form-field.full { grid-column: auto; }
  .column-options { grid-template-columns: 1fr; padding: 18px; }
  .modal-actions { padding: 0 18px 18px; }
  .technology-document-titlebar { align-items: flex-start; flex-direction: column; }
  .technology-document-tabs { overflow-x: auto; padding-left: 10px; }
  .technology-document-body { padding: 14px 10px 22px; }
  .document-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .document-material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .document-material-cell.wide { grid-column: span 2; }
  .document-table { min-width: 620px; }
  .document-table + .document-table { min-width: 0; }
}
