:root {
  --navy-950: #021f42;
  --navy-900: #032b5d;
  --navy-800: #073b7d;
  --blue-700: #0b57c7;
  --blue-600: #1463df;
  --line: #dbe3ef;
  --soft-line: #eef2f7;
  --text: #071a3d;
  --muted: #6f7d95;
  --bg: #f7f9fc;
  --white: #fff;
  --sidebar-width: 230px;
  --sidebar-bg: #032b5d;
  --sidebar-active: #0d57c8;
  --table-header-bg: #063f84;
  --button-radius: 5px;
  --card-radius: 7px;
  --login-panel-rgb: 2, 31, 66;
  --login-panel-opacity: 0.8;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: clamp(24px, 3.5vw, 52px);
  background: url("assets/login-building.png") center / cover no-repeat;
}

.login-panel {
  width: min(520px, calc(100vw - 48px));
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 52px);
  color: #fff;
  background: rgba(var(--login-panel-rgb), var(--login-panel-opacity));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 80px rgba(0, 20, 58, 0.35);
  backdrop-filter: blur(5px);
}

.brand-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 18px;
  margin-bottom: 54px;
  font-size: 34px;
  font-weight: 800;
}

.brand-mark,
.sidebar-logo {
  letter-spacing: 0;
  font-weight: 900;
}

.brand-mark span,
.sidebar-logo span {
  color: #2d83ff;
}

.login-form {
  display: grid;
  gap: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  min-height: 38px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

textarea {
  padding-block: 10px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #7fb0ff;
  box-shadow: 0 0 0 3px rgba(20, 99, 223, 0.14);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 54px;
}

.password-field button {
  position: absolute;
  right: 0;
  top: 0;
  width: 52px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #64748b;
}

.login-button,
.primary-action,
.dark-action {
  min-height: 38px;
  border: 0;
  border-radius: 5px;
  border-radius: var(--button-radius);
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: #fff;
  padding: 0 18px;
  font-weight: 800;
}

.login-button {
  min-height: 56px;
  font-size: 17px;
}

.login-hint {
  margin: -6px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  text-align: center;
}

.erp-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  background: linear-gradient(180deg, var(--sidebar-bg), #02264e 45%, #021f42) 0 0 / var(--sidebar-width) 100% no-repeat;
  transition: grid-template-columns 180ms ease, background-size 180ms ease;
}

.erp-view.sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
  background-size: 0 100%;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--sidebar-bg), #02264e 45%, #021f42);
  color: #fff;
  transition: width 180ms ease;
}

.sidebar.collapsed {
  width: 0;
  overflow: hidden;
}

.sidebar-logo {
  height: var(--topbar-height, 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-size: 31px;
  background: rgba(0, 0, 0, 0.12);
  border: 0;
  color: #fff;
  width: 100%;
  text-align: center;
  cursor: pointer;
}

.menu-list {
  padding: 14px 6px 28px;
}

.menu-parent,
.menu-item {
  width: 100%;
  min-height: var(--menu-item-height, 38px);
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
}

.menu-parent {
  gap: 12px;
  padding: 0 16px;
  font-weight: 800;
}

.menu-parent span {
  width: 18px;
  text-align: center;
}

.menu-parent b {
  margin-left: auto;
  font-size: 12px;
}

.submenu {
  display: none;
  padding: 4px 8px 10px 48px;
}

.menu-group.is-open .submenu {
  display: grid;
  gap: 2px;
}

.menu-item {
  min-height: max(30px, calc(var(--menu-item-height, 38px) - 6px));
  padding: 0 10px;
  font-size: 13px;
  white-space: nowrap;
}

.menu-parent.active,
.menu-parent:hover,
.menu-item.active,
.menu-item:hover {
  background: var(--sidebar-active);
  color: #fff;
}

.main-area {
  min-width: 0;
}

.topbar {
  height: var(--topbar-height, 70px);
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.topbar-left,
.topbar-right,
.page-actions,
.action-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-right {
  flex-shrink: 0;
  gap: 12px;
  white-space: nowrap;
}

.topbar h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.icon-button {
  min-width: 38px;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 24px;
}

.top-icon {
  position: relative;
  min-width: 34px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f5f8ff;
  color: var(--text);
  font-weight: 800;
  line-height: 34px;
  padding: 0;
  text-align: center;
}

.top-icon:first-child::after {
  content: "5";
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #ee3434;
  color: #fff;
  font-size: 10px;
  line-height: 15px;
}

.account-box {
  display: grid;
  gap: 2px;
  min-width: 78px;
  padding-left: 0;
  border-left: 0;
  font-size: 12px;
}

.account-box strong {
  font-size: 14px;
}

.account-box span {
  color: var(--muted);
}

.avatar {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #fff 0 20%, #9ec2ff 21% 100%);
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 3px #e8f0ff;
}

.avatar.has-image {
  background-color: #fff;
  background-image: var(--profile-image);
}


.topbar-notification {
  position: relative;
  flex: 0 0 auto;
}

.notification-button {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #d7e0ec;
  border-radius: 11px;
  background: #f8faff;
  color: #52657d;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.notification-button:hover,
.notification-button[aria-expanded="true"] {
  border-color: #9ebee7;
  background: #edf5ff;
  color: #0d57c8;
}

.notification-button.has-unread svg {
  animation: notification-bell-ring 1.3s ease-in-out 1;
}

.notification-button svg {
  width: 20px;
  height: 20px;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 13px);
  right: -48px;
  z-index: 80;
  width: min(380px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(8, 35, 70, 0.2);
}

.notification-panel[hidden],
.notification-badge[hidden] {
  display: none !important;
}

.notification-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 17px 13px;
  border-bottom: 1px solid #e8eef6;
  background: linear-gradient(135deg, #f7faff, #eef5ff);
}

.notification-panel > header > div {
  display: grid;
  gap: 3px;
}

.notification-panel > header .notification-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.notification-panel > header strong {
  color: #092d59;
  font-size: 15px;
}

.notification-panel > header span {
  color: #79889a;
  font-size: 10px;
  font-weight: 700;
}

.notification-panel > header button {
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid #cbd9ea;
  border-radius: 8px;
  background: #fff;
  color: #315e91;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.notification-panel > header button:disabled {
  opacity: 0.45;
  cursor: default;
}

.notification-panel > header #notificationDeleteAll {
  border-color: #f2c9cd;
  color: #c5323d;
}

.notification-list {
  max-height: min(480px, calc(100dvh - 120px));
  overflow-y: auto;
}

.notification-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: stretch;
  border-bottom: 1px solid #edf1f6;
  background: #fff;
}

.notification-entry.is-unread {
  background: linear-gradient(90deg, #edf5ff, #f9fbff 72%);
}

.notification-item {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 11px;
  padding: 13px 16px;
  border: 0;
  border-bottom: 0;
  background: transparent;
  color: #153759;
  text-align: left;
  cursor: pointer;
}

.notification-item:hover {
  background: #f7faff;
}

.notification-item.is-unread {
  background: linear-gradient(90deg, #edf5ff, #f9fbff 72%);
}

.notification-item > i {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 999px;
  background: #c5ceda;
}

.notification-item.is-unread > i {
  background: #1971dc;
  box-shadow: 0 0 0 4px rgba(25, 113, 220, 0.11);
}

.notification-item > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.notification-item strong,
.notification-item b,
.notification-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-item strong {
  color: #0d57c8;
  font-size: 10px;
}

.notification-item b {
  color: #183957;
  font-size: 12px;
}

.notification-item small {
  color: #8a98a8;
  font-size: 10px;
}

.notification-delete {
  align-self: stretch;
  min-width: 42px;
  border: 0;
  border-left: 1px solid #edf1f6;
  background: transparent;
  color: #a4afbc;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.notification-delete:hover,
.notification-delete:focus-visible {
  outline: none;
  background: #fff1f2;
  color: #d23843;
}

.notification-empty {
  margin: 0;
  padding: 38px 16px;
  color: #8a98a8;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.header-notification-toast {
  position: fixed;
  top: calc(var(--topbar-height, 70px) + 14px);
  right: 22px;
  z-index: 2000;
  width: min(360px, calc(100vw - 24px));
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid #cbdcf2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(8, 35, 70, 0.22);
  color: #173a5f;
  text-align: left;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 200ms ease, transform 200ms ease;
  cursor: pointer;
}

.header-notification-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.header-notification-toast > i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #eaf3ff;
  color: #0d57c8;
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
}

.header-notification-toast > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.header-notification-toast strong,
.header-notification-toast small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-notification-toast strong { font-size: 12px; }
.header-notification-toast small { color: #7f8fa2; font-size: 10px; }

@keyframes notification-bell-ring {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(13deg); }
  40% { transform: rotate(-11deg); }
  60% { transform: rotate(8deg); }
  80% { transform: rotate(-5deg); }
}

.logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid #cfd8e8;
  border-radius: 5px;
  background: #fff;
  color: var(--navy-900);
  padding: 0 12px;
  font-weight: 800;
}

.content {
  padding: 20px 22px 34px;
}

.page-actions {
  justify-content: space-between;
  min-height: 42px;
  margin-bottom: 12px;
}

.breadcrumb {
  display: none !important;
  color: var(--muted);
  font-size: 13px;
}

.page-actions:not(:has(.action-buttons button:not([hidden]))) {
  display: none;
}

.page-actions:has(.action-buttons button:not([hidden])) {
  justify-content: flex-end;
}

.secondary-action,
.row-action,
.danger-action {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  padding: 0 14px;
  font-weight: 800;
}

.danger-action {
  color: #d32727;
  border-color: #ffc4c4;
}

.dashboard-view,
.module-view {
  display: grid;
  gap: 16px;
}

.design-studio-body {
  min-height: 100vh;
  margin: 0;
  background: #eef3fa;
  overflow-y: auto;
  overflow-x: hidden;
}

.design-studio-app {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr);
}

.design-studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.design-studio-topbar strong {
  display: block;
  color: var(--navy-900);
  font-size: 22px;
}

.design-studio-topbar span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.design-studio-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.design-studio-layout {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  gap: 12px;
  padding: 12px;
  align-items: stretch;
}

.design-studio-panel,
.design-studio-stage {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.design-studio-panel {
  padding: 14px;
  overflow: auto;
  max-height: calc(100vh - 92px);
}

.design-studio-panel h2 {
  margin: 0 0 12px;
  color: var(--navy-900);
  font-size: 16px;
}

.studio-frame-button {
  width: 100%;
  min-height: 42px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-weight: 900;
  text-align: left;
  padding: 0 12px;
}

.studio-frame-button.is-active {
  border-color: var(--blue-700);
  background: #e8f2ff;
  color: var(--blue-700);
}

.studio-help-box,
.studio-note {
  margin-top: 14px;
  padding: 12px;
  border-radius: 7px;
  background: #f4f8ff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.design-studio-stage {
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr);
  overflow: hidden;
  max-height: calc(100vh - 92px);
}

.design-studio-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.design-studio-stage-head label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 340px;
}

.design-studio-stage-head select {
  width: 220px;
}

.design-studio-stage-head span:last-child {
  color: var(--blue-700);
  font-weight: 900;
}

.design-studio-preview {
  min-height: 0;
  padding: 14px;
  overflow: auto;
  max-height: calc(100vh - 150px);
  background: var(--studio-bg, #f7f9fc);
}

.studio-shell {
  min-width: 980px;
  height: auto;
  min-height: 980px;
  display: grid;
  grid-template-columns: var(--studio-menu-width, 230px) minmax(0, 1fr);
  border: 1px solid #d7e0ef;
  background: #fff;
}

.studio-sidebar {
  background: linear-gradient(180deg, var(--studio-sidebar, #032b5d), #021f42);
  padding: 14px 8px;
  color: #fff;
}

.studio-logo {
  height: var(--studio-topbar-height, 70px);
  display: grid;
  place-items: center;
  margin: -14px -8px 12px;
  background: rgba(0, 0, 0, 0.12);
  font-size: 28px;
  font-weight: 1000;
}

.studio-sidebar button {
  width: 100%;
  min-height: var(--studio-menu-item-height, 38px);
  margin-bottom: 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  text-align: left;
  padding: 0 14px;
  font-weight: 900;
}

.studio-sidebar button.active {
  background: var(--studio-active, #0d57c8);
}

.studio-main {
  min-width: 0;
  display: grid;
  grid-template-rows: var(--studio-topbar-height, 70px) auto;
}

.studio-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid #d7e0ef;
}

.studio-top strong {
  color: var(--navy-900);
  font-size: 22px;
}

.studio-content {
  min-height: 0;
  padding: 16px;
  overflow: visible;
}

.studio-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(460px, var(--studio-dashboard-calendar, 62%)) minmax(260px, 1fr);
  gap: var(--studio-card-gap, 16px);
}

.studio-card {
  position: relative;
  border: 1px solid #d7e0ef;
  border-radius: var(--studio-card-radius, 7px);
  background: #fff;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(2, 31, 66, 0.04);
}

.studio-card + .studio-card {
  margin-top: var(--studio-card-gap, 16px);
}

.studio-card-title {
  color: var(--navy-900);
  font-weight: 1000;
  margin-bottom: 10px;
}

.studio-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid #d7e0ef;
  border-left: 1px solid #d7e0ef;
}

.studio-calendar div {
  min-height: 76px;
  padding: 7px;
  border-right: 1px solid #d7e0ef;
  border-bottom: 1px solid #d7e0ef;
}

.studio-calendar b {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}

.studio-calendar span {
  display: block;
  border-radius: 5px;
  background: #e8f2ff;
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 900;
  padding: 4px 6px;
}

.studio-calendar span.schedule {
  background: #f1ebff;
  color: #7355e7;
}

.studio-dashboard-side {
  display: grid;
  align-content: start;
  gap: var(--studio-card-gap, 16px);
}

.studio-inspector-title {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbff;
}

.studio-inspector-title b {
  display: block;
  color: var(--navy-900);
  font-size: 17px;
}

.studio-inspector-title span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.studio-search-card {
  min-height: var(--studio-search-height, 96px);
  display: grid;
  grid-template-columns: repeat(var(--studio-search-columns, 4), minmax(130px, 1fr));
  gap: var(--studio-search-gap, 12px);
  align-items: end;
  margin-bottom: var(--studio-card-gap, 16px);
}

.studio-search-control {
  min-width: 0;
  min-height: var(--studio-control-height, auto);
  border-radius: 7px;
  outline: 2px solid transparent;
  cursor: grab;
}

.studio-search-control.is-active {
  outline-color: #1b66d2;
  box-shadow: 0 0 0 4px rgba(27, 102, 210, 0.12);
}

.studio-search-control.is-dragging {
  opacity: 0.45;
}

.studio-search-control[data-control-width="2"] {
  grid-column: span 2;
}

.studio-search-control[data-control-width="3"] {
  grid-column: span 3;
}

.studio-search-control[data-control-width="4"] {
  grid-column: 1 / -1;
}

.studio-search-card label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
}

.studio-search-card input,
.studio-search-card select,
.studio-search-card button {
  width: 100%;
  min-height: var(--studio-control-input-height, var(--studio-search-input-height, 38px));
}

.studio-search-card button {
  border: 0;
  border-radius: var(--studio-button-radius, 5px);
  background: var(--studio-active, #0d57c8);
  color: #fff;
  font-weight: 900;
}

.studio-search-card button.secondary {
  border: 1px solid #d7e0ef;
  background: #fff;
  color: var(--navy-900);
}

.studio-summary-grid {
  display: grid;
  grid-template-columns: repeat(var(--studio-summary-columns, 5), minmax(120px, 1fr));
  gap: var(--studio-card-gap, 16px);
  margin-bottom: var(--studio-card-gap, 16px);
}

.studio-summary-grid .studio-card {
  min-height: var(--studio-summary-card-height, 104px);
  display: grid;
  align-content: center;
  gap: 4px;
}

.studio-summary-grid .studio-card span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e6efff;
}

.studio-summary-grid .studio-card b {
  color: var(--navy-900);
  font-size: 24px;
}

.studio-summary-grid .studio-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.studio-search-row {
  display: grid;
  grid-template-columns: 180px 220px 90px;
  gap: 10px;
  margin-bottom: 12px;
}

.studio-search-row button,
.studio-top button {
  border-radius: var(--studio-button-radius, 5px);
}

.studio-table-wrap {
  max-height: var(--studio-list-height, 420px);
  overflow: auto;
  border: 1px solid #d7e0ef;
  border-radius: 6px;
}

.studio-table-wrap table {
  min-width: var(--studio-table-min-width, 980px);
  width: 100%;
  border-collapse: collapse;
  font-size: var(--studio-font-size, 12px);
}

.studio-table-wrap th {
  height: 36px;
  position: sticky;
  top: 0;
  background: var(--studio-header, #063f84);
  color: #fff;
}

.studio-table-wrap td {
  height: var(--studio-row-height, 35px);
  border: 1px solid #e5ecf5;
  text-align: center;
  padding-left: var(--studio-cell-padding, 8px);
  padding-right: var(--studio-cell-padding, 8px);
}

.studio-dialog-sample {
  width: min(var(--studio-popup-width, 1080px), 100%);
  max-width: 100%;
  height: var(--studio-popup-height, 720px);
  min-height: 90px;
  margin-top: 16px;
  padding: var(--studio-popup-padding, 18px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.studio-detail-preview {
  min-height: var(--studio-detail-height, 260px);
  margin-top: var(--studio-card-gap, 16px);
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-content: start;
  gap: 0;
}

.studio-detail-preview .studio-card-title {
  grid-column: 1 / -1;
}

.studio-detail-preview div:not(.studio-card-title) {
  display: contents;
}

.studio-detail-preview b,
.studio-detail-preview span {
  min-height: 38px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e5ecf5;
}

.studio-detail-preview b {
  color: var(--navy-900);
}

.studio-detail-preview span {
  font-weight: 900;
}

.studio-frame {
  outline: 2px solid transparent;
  cursor: pointer;
}

.studio-frame.is-selected {
  outline-color: #ffb020;
  box-shadow: 0 0 0 4px rgba(255, 176, 32, 0.16);
}

.studio-resize-handle {
  position: absolute;
  right: -6px;
  top: 50%;
  width: 12px;
  height: 86px;
  transform: translateY(-50%);
  border-radius: 8px;
  background: var(--blue-700);
  cursor: ew-resize;
}

.studio-resize-handle.vertical {
  top: auto;
  right: 18px;
  bottom: -6px;
  width: 86px;
  height: 12px;
  transform: none;
  cursor: ns-resize;
}

.studio-field {
  margin-bottom: 14px;
}

.studio-field span {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 900;
}

.studio-field b {
  color: var(--blue-700);
}

.studio-color-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
}

.studio-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 900;
}

.studio-toggle input {
  width: 18px;
  min-height: 18px;
}

.studio-control-editor {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.studio-control-editor-head {
  display: grid;
  gap: 4px;
}

.studio-control-editor-head b {
  color: var(--navy-900);
}

.studio-control-editor-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.studio-control-order-list {
  display: grid;
  gap: 8px;
}

.studio-control-order-item {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #d7e0ef;
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  padding: 0 12px;
  cursor: grab;
}

.studio-control-order-item.is-active {
  border-color: var(--blue-700);
  background: #edf5ff;
}

.studio-control-order-item span {
  font-weight: 900;
}

.studio-control-order-item small {
  color: var(--muted);
  font-weight: 800;
}

.studio-control-detail {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d7e0ef;
  border-radius: 8px;
  background: #f8fbff;
}

.studio-control-detail h3 {
  margin: 0;
  color: var(--navy-900);
  font-size: 14px;
}

.studio-resizing,
.studio-resizing * {
  cursor: ew-resize !important;
  user-select: none;
}

.studio-resizing-y,
.studio-resizing-y * {
  cursor: ns-resize !important;
  user-select: none;
}

.design-settings-launch {
  min-height: 260px;
}

.design-settings-launch-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 24px;
}

.design-settings-launch-body h4 {
  margin: 0 0 10px;
  color: var(--navy-900);
  font-size: 22px;
}

.design-settings-launch-body p {
  margin: 6px 0;
  color: var(--muted);
  font-weight: 800;
}

.design-settings-launch-actions {
  display: grid;
  gap: 10px;
  min-width: 240px;
}

.user-info-page {
  display: grid;
  gap: 18px;
}

.user-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.user-page-head h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.user-page-head p {
  margin: 0;
  color: var(--muted);
}

.user-info-grid {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) minmax(320px, 0.52fr);
  gap: 16px;
}

.user-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 22px 26px;
  box-shadow: 0 2px 12px rgba(8, 28, 64, 0.03);
}

.user-card h3 {
  margin: 0 0 20px;
  color: var(--navy-900);
  font-size: 18px;
}

.basic-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  column-gap: 28px;
}

.basic-card h3 {
  grid-column: 1 / -1;
}

.profile-left {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 18px;
  padding-top: 16px;
}

.profile-photo-circle {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, #7fa9f7 0 14%, transparent 15%),
    radial-gradient(ellipse at 50% 70%, #7fa9f7 0 30%, transparent 31%),
    #edf3ff;
  background-size: cover;
  background-position: center;
}

.profile-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 126px;
  border: 1px solid var(--blue-700);
  border-radius: 6px;
  color: var(--blue-700);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.profile-table {
  display: grid;
  grid-template-columns: 130px 1fr;
  margin: 0;
}

.profile-table dt,
.profile-table dd {
  min-height: 48px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--soft-line);
}

.profile-table dt {
  font-weight: 900;
}

.profile-table dd {
  margin: 0;
  font-weight: 800;
}

.profile-table.compact {
  grid-template-columns: 120px 1fr;
}

.user-side {
  display: grid;
  gap: 16px;
}

.password-form {
  display: grid;
  gap: 10px;
}

.password-form .dark-action {
  min-height: 48px;
  margin-top: 6px;
}

.wide-card {
  grid-column: 1 / -1;
}

.permission-table {
  grid-template-columns: 150px 1fr;
}

.permission-tags {
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
}

.permission-tags span,
.soft-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 7px;
  padding: 0 14px;
  background: #eaf2ff;
  color: var(--blue-700);
  font-weight: 900;
}

.empty-note {
  margin: 0;
  color: var(--muted);
}

.user-register-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 2px 12px rgba(8, 28, 64, 0.03);
}

.employee-form {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(320px, 0.44fr);
  gap: 18px;
  padding: 18px;
}

.employee-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.temp-password-box {
  align-self: start;
  display: grid;
  gap: 10px;
  min-height: 168px;
  padding: 18px;
  border-radius: 7px;
  background: #eef5ff;
  border: 1px solid #d7e6ff;
  color: var(--navy-900);
}

.temp-password-box p {
  margin: 0;
  color: #344054;
  line-height: 1.55;
}

.temp-password-box code {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 5px;
  background: #fff;
  color: #d32727;
  font-size: 18px;
  font-weight: 900;
}

.temp-password-box.issued {
  background: #ecfff2;
  border-color: #bce9c8;
}

.employee-field-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.employee-quick-add {
  min-height: 25px;
  border: 1px solid #9db9df;
  border-radius: 6px;
  padding: 0 8px;
  color: #0c56a0;
  background: #edf5ff;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.employee-quick-add:hover {
  border-color: #0c56a0;
  background: #e1efff;
}

.optional-label {
  margin-left: 5px;
  color: #7b8ba1;
  font-size: 11px;
  font-weight: 700;
}

.issued-password-line {
  display: grid;
  gap: 7px;
}

.temp-password-box .rs-copy-issued-credential {
  justify-self: start;
}

.employee-credential-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid #cbd9ea;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(4, 28, 61, 0.28);
}

.employee-credential-dialog::backdrop {
  background: rgba(4, 23, 49, 0.58);
  backdrop-filter: blur(3px);
}

.employee-credential-dialog .dialog-head,
.employee-credential-dialog .dialog-actions {
  padding: 17px 20px;
}

.employee-credential-dialog .dialog-head small,
.employee-credential-dialog .dialog-head h3 {
  display: block;
}

.employee-credential-dialog .dialog-head small {
  margin-bottom: 3px;
  color: #3470b5;
  font-weight: 900;
}

.credential-result {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0 20px;
  padding: 18px;
  border: 1px solid #b9dfc5;
  border-radius: 10px;
  background: #effcf3;
}

.credential-result span {
  color: #5e7188;
  font-size: 12px;
  font-weight: 800;
}

.credential-result strong,
.credential-result code {
  overflow-wrap: anywhere;
  color: #0b335f;
  font-size: 18px;
  font-weight: 900;
}

.credential-result code {
  color: #c52031;
}

.credential-warning {
  margin: 12px 20px 0;
  color: #8b4a1e;
  font-size: 12px;
  line-height: 1.55;
}

.employee-form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.customer-layout {
  display: grid;
  grid-template-columns: minmax(480px, 1fr) minmax(320px, 0.42fr);
  gap: 16px;
}

.customer-product-layout {
  display: grid;
  grid-template-columns: minmax(640px, 1fr) minmax(340px, 0.42fr);
  gap: 16px;
}

.customer-product-search {
  grid-column: 1 / -1;
  grid-template-columns: minmax(260px, 360px) auto;
  justify-content: start;
}

.customer-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.product-form {
  grid-template-columns: 1fr;
}

.customer-form .employee-form-actions {
  grid-column: auto;
}

.search-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr)) auto auto;
  align-items: end;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  box-shadow: 0 2px 12px rgba(8, 28, 64, 0.03);
}

.search-panel label {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.work-order-search {
  grid-template-columns: minmax(210px, 1fr) minmax(170px, 0.8fr) minmax(180px, 1fr) minmax(180px, 1fr) minmax(220px, 1.2fr) auto auto;
}

.product-match-search {
  grid-template-columns: minmax(210px, 1fr) minmax(170px, 0.8fr) minmax(180px, 1fr) minmax(220px, 1.2fr) minmax(180px, 1fr) auto auto;
}

.process-progress-search {
  grid-template-columns: minmax(210px, 1fr) minmax(170px, 0.8fr) minmax(180px, 1fr) minmax(220px, 1.2fr) minmax(180px, 1fr) auto auto;
}

.production-result-search {
  grid-template-columns:
    minmax(190px, 1fr) minmax(32px, 0.2fr) minmax(160px, 0.8fr)
    minmax(160px, 0.9fr) minmax(190px, 1fr) minmax(190px, 1fr)
    minmax(170px, 0.9fr) minmax(150px, 0.75fr);
  align-items: center;
}

.production-result-search label:nth-of-type(1) {
  grid-column: 1 / span 2;
  grid-row: 1;
}

.production-result-search label:nth-of-type(2) {
  grid-column: 3;
  grid-row: 1;
}

.production-result-search label:nth-of-type(3) {
  grid-column: 4;
  grid-row: 1;
}

.production-result-search label:nth-of-type(4) {
  grid-column: 5 / span 2;
  grid-row: 1;
}

.production-result-search label:nth-of-type(5) {
  grid-column: 7;
  grid-row: 1;
}

.production-result-search label:nth-of-type(6) {
  grid-column: 8;
  grid-row: 1;
}

.production-result-search label:nth-of-type(7) {
  grid-column: 1;
  grid-row: 2;
}

.production-result-search label:nth-of-type(8) {
  grid-column: 2 / span 2;
  grid-row: 2;
}

.production-result-search label:nth-of-type(9) {
  grid-column: 4 / span 3;
  grid-row: 2;
}

.production-result-search #resultSearchButton {
  grid-column: 7;
  grid-row: 2;
}

.production-result-search #resultResetButton {
  grid-column: 8;
  grid-row: 2;
}

.daily-production-search {
  grid-template-columns: minmax(180px, 0.9fr) 28px minmax(180px, 0.9fr) minmax(220px, 1.1fr) minmax(220px, 1.1fr) 92px;
  align-items: end;
}

.daily-production-search .date-end-label {
  grid-template-columns: 18px 1fr;
}

.daily-production-search select,
.daily-production-search input {
  min-height: 38px;
  border: 1px solid #d7e0ef;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 0 12px;
  font-weight: 800;
}

.daily-production-metrics .metric-card em {
  margin-top: 4px;
  color: #d71920;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.daily-matrix-card {
  overflow: hidden;
}

.daily-matrix-card.is-expanded {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 560px;
}

.daily-matrix-head {
  align-items: center;
}

.daily-matrix-card.is-expanded .daily-matrix-head {
  min-height: 44px;
}

.daily-context-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: #66758f;
  font-size: 14px;
  font-weight: 800;
}

.daily-context-line strong {
  color: var(--navy-900);
  font-size: 15px;
  font-weight: 900;
}

.daily-plan-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.daily-view-check {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid #d7e0ef;
  border-radius: 6px;
  background: #fff;
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 900;
}

.daily-view-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--blue-700);
}

.daily-plan-actions button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.daily-matrix-max-button {
  min-width: 86px;
  white-space: nowrap;
}

.daily-matrix-scroll {
  height: clamp(460px, 58vh, 760px);
  min-height: 380px;
  max-height: none;
  overflow: auto;
}

.daily-matrix-card.is-expanded .daily-matrix-scroll {
  height: 100%;
  min-height: 0;
}

.daily-matrix-card.is-expanded .daily-matrix-resizer {
  display: none;
}

.daily-matrix-resizer {
  display: none;
  align-items: center;
  justify-content: center;
  height: 20px;
  border-top: 1px solid #d8e1ef;
  background: #f8fbff;
  cursor: ns-resize;
  touch-action: none;
  user-select: none;
}

.daily-matrix-resizer span {
  width: 54px;
  height: 4px;
  border-radius: 999px;
  background: #9aa8bc;
}

.daily-matrix-resizer:hover span,
.daily-matrix-is-resizing .daily-matrix-resizer span {
  background: #0b3b78;
}

.daily-matrix-is-resizing {
  cursor: ns-resize !important;
  user-select: none !important;
}

.daily-matrix-table {
  min-width: 1180px;
  table-layout: fixed;
}

.daily-matrix-table th,
.daily-matrix-table td {
  height: 30px;
  white-space: nowrap;
  vertical-align: middle;
  padding: 6px 8px;
}

.daily-matrix-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
}

.daily-sticky {
  position: sticky;
  z-index: 2;
  background: #fff;
}

.daily-matrix-table thead .daily-sticky {
  z-index: 4;
  background: var(--brand);
}

.daily-col-process {
  left: 0;
  width: 150px;
}

.daily-col-item {
  left: 150px;
  width: 86px;
}

.daily-day-col {
  width: 56px;
  text-align: center;
}

.daily-total-col {
  width: 78px;
  text-align: center;
}

.daily-process-cell {
  text-align: center;
}

.daily-process-cell strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
}

.daily-process-cell span {
  display: block;
  margin-top: 2px;
  color: #63738d;
  font-size: 11px;
  font-weight: 700;
}

.daily-lot-cell,
.daily-item-cell {
  font-weight: 900;
}

.daily-metric-good .daily-item-cell,
.daily-metric-good .daily-day-col,
.daily-metric-good .daily-total-col {
  color: #13863d;
}

.daily-metric-bad .daily-item-cell,
.daily-metric-bad .daily-day-col,
.daily-metric-bad .daily-total-col {
  color: #d71920;
}

.daily-metric-rate .daily-item-cell,
.daily-metric-rate .daily-total-col {
  color: #215ec8;
}

.daily-process-start > td {
  border-top: 2px solid #111827;
}

.daily-process-end > td {
  border-bottom: 2px solid #111827;
}

.daily-plan-edit-cell {
  padding: 4px;
}

.daily-plan-cell {
  width: 52px;
  min-height: 28px;
  border: 1px solid #cfd9ea;
  border-radius: 6px;
  text-align: center;
  font-weight: 900;
  -moz-appearance: textfield;
  appearance: textfield;
}

.daily-plan-cell::-webkit-outer-spin-button,
.daily-plan-cell::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.daily-note-card {
  margin-top: 14px;
  border-color: #f0d79f;
}

.daily-note-card .card-head h3 {
  color: #c26b00;
}

.daily-note-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #66758f;
  font-size: 12px;
  font-weight: 800;
}

.daily-note-actions button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.daily-note-form {
  display: grid;
  grid-template-columns: 160px minmax(320px, 1fr) 90px 90px;
  gap: 10px;
  align-items: end;
  padding: 12px 16px;
  border-top: 1px solid var(--soft-line);
  background: #fffaf1;
}

.daily-note-form label {
  display: grid;
  gap: 6px;
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 900;
}

.daily-note-form input,
.daily-note-form select {
  min-height: 38px;
  border: 1px solid #d7e0ef;
  border-radius: 6px;
  padding: 0 12px;
  font-weight: 800;
}

.daily-note-scroll {
  max-height: 220px;
  overflow: auto;
}

.daily-note-table {
  min-width: 820px;
}

.daily-note-table th,
.daily-note-table td {
  height: 34px;
}

.daily-note-table th:nth-child(1),
.daily-note-table td:nth-child(1) {
  width: 90px;
  text-align: center;
}

.daily-note-table th:nth-child(3),
.daily-note-table td:nth-child(3),
.daily-note-table th:nth-child(4),
.daily-note-table td:nth-child(4),
.daily-note-table th:nth-child(5),
.daily-note-table td:nth-child(5) {
  width: 120px;
  text-align: center;
}

.daily-note-text {
  text-align: left;
}

.daily-note-badge {
  display: inline-flex;
  min-width: 48px;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef3fb;
  color: var(--navy-900);
  font-weight: 900;
}

.work-order-search .date-end-label {
  grid-template-columns: 18px 1fr;
}

.product-match-search .date-end-label,
.process-progress-search .date-end-label,
.production-result-search .date-end-label {
  grid-template-columns: 18px 1fr;
}

.work-order-search select,
.work-order-search input,
.product-match-search select,
.product-match-search input,
.process-progress-search select,
.process-progress-search input,
.production-result-search select,
.production-result-search input {
  min-height: 38px;
  border: 1px solid #d7e0ef;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 0 12px;
  font-weight: 800;
}

.work-order-card table {
  min-width: 1240px;
}

.product-match-card table {
  min-width: 920px;
}

.product-match-card .table-scroll {
  max-height: 560px;
  overflow: auto;
}

.product-match-card thead th,
.assembly-detail-card thead th,
.assembly-table-card thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--table-header-bg);
}

.production-result-card table {
  min-width: 1480px;
}

.production-result-card .table-scroll {
  max-height: 420px;
  overflow: auto;
}

.production-result-card thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.production-result-card tr.is-selected td {
  background: #eaf2ff;
}

.production-result-metrics .metric-card:nth-child(3) span {
  background: #ffe0e0;
}

.production-result-metrics .metric-card:nth-child(4) span {
  background: #eee4ff;
}

.result-detail-grid {
  grid-template-columns: minmax(380px, 0.85fr) minmax(620px, 1.35fr);
}

.result-info-list {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0;
  padding: 18px;
}

.result-info-list dt,
.result-info-list dd {
  min-height: 38px;
  display: flex;
  align-items: center;
  margin: 0;
  border-bottom: 1px solid var(--soft-line);
  font-weight: 800;
}

.result-info-list dt {
  color: var(--navy-900);
}

.result-info-list dd {
  justify-content: flex-start;
  color: var(--text);
}

.result-edit-form {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  padding: 0 18px 18px;
}

.result-edit-form label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

.result-edit-form textarea,
.result-edit-form select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d7e0ef;
  border-radius: 6px;
  padding: 9px 12px;
  font: inherit;
  font-weight: 800;
}

.result-edit-form textarea {
  resize: vertical;
}

.result-edit-form .employee-form-actions {
  grid-column: 1 / -1;
}

.result-history-card table {
  min-width: 760px;
}

.text-left {
  text-align: left;
}

.danger-mini {
  min-height: 28px;
  border: 1px solid #ffd2d2;
  border-radius: 6px;
  background: #fff;
  color: #e32020;
  font-weight: 900;
  cursor: pointer;
}

.match-edit-card {
  margin-top: 16px;
}

.progress-metric-grid .metric-card small {
  display: none;
}

.progress-metric-card .metric-icon {
  display: grid;
  place-items: center;
  color: #0d57c8;
  font-size: 24px;
  font-weight: 900;
}

.progress-metric-card.green .metric-icon { color: #25a85a; }
.progress-metric-card.purple .metric-icon { color: #7355e7; }
.progress-metric-card.orange .metric-icon { color: #ee9b21; }
.progress-metric-card.red .metric-icon { color: #e84747; }

.metric-icon.clipboard::before { content: "▣"; }
.metric-icon.play::before { content: "▷"; }
.metric-icon.gauge::before { content: "%"; }
.metric-icon.check::before { content: "✓"; }
.metric-icon.alert::before { content: "△"; }

.process-flow-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 2px 12px rgba(8, 28, 64, 0.03);
  overflow: hidden;
}

.process-flow-scroll {
  overflow: auto;
}

.process-flow-table {
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.process-flow-table .flow-col-work {
  width: 120px;
}

.process-flow-table .flow-col-product {
  width: 140px;
}

.process-flow-table .flow-col-rate {
  width: 100px;
}

.process-flow-table .flow-col-process {
  width: 172px;
}

.process-flow-table .flow-col-chain {
  width: 1000px;
}

.process-flow-table th,
.process-flow-table td {
  height: 68px;
  white-space: nowrap;
}

.process-flow-table th {
  height: 56px;
  border-right: 1px solid #d6e0ee;
  border-bottom: 1px solid #d6e0ee;
  background: linear-gradient(180deg, #185fa8, #064486);
  color: #fff;
  font-size: 13px;
  text-align: center;
}

.process-flow-table td {
  border-right: 1px solid #e3e9f2;
  border-bottom: 1px solid #e3e9f2;
  background: #fff;
  text-align: center;
}

.process-flow-table th:nth-child(-n + 3),
.process-flow-table td:nth-child(-n + 3) {
  position: sticky;
  z-index: 1;
  background: #fff;
  color: var(--text);
}

.process-flow-table th:first-child,
.process-flow-table td:first-child {
  left: 0;
}

.process-flow-table th:nth-child(2),
.process-flow-table td:nth-child(2) {
  left: 140px;
}

.process-flow-table th:nth-child(3),
.process-flow-table td:nth-child(3) {
  left: 260px;
}

.process-flow-chain-table th:nth-child(4) {
  background: linear-gradient(180deg, #185fa8, #064486);
  color: #fff;
}

.process-flow-chain-table td:nth-child(4) {
  min-width: 900px;
  text-align: left;
}

.process-flow-table th:nth-child(-n + 3) {
  z-index: 3;
  background: #f8fbff;
  color: var(--navy-900);
}

.process-flow-table th:nth-child(3),
.process-flow-table td:nth-child(3) {
  border-right: 2px solid #d7e0ef;
}

.mini-progress {
  display: inline-flex;
  width: 48px;
  height: 10px;
  margin-right: 8px;
  overflow: hidden;
  vertical-align: middle;
  background: #e9edf3;
  border-radius: 999px;
}

.process-flow-table td:first-child,
.process-flow-table td:nth-child(2) {
  overflow: hidden;
  max-width: 140px;
  text-overflow: ellipsis;
}

.mini-progress span {
  display: block;
  background: linear-gradient(90deg, #2f7fe8, #37b45f);
  border-radius: inherit;
}

.process-flow-arrow {
  color: #7c8ca5;
  font-weight: 900;
  text-align: center;
}

.process-flow-step {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 148px;
  padding: 7px 12px;
  border: 0;
  border-radius: 7px;
  text-align: center;
  cursor: pointer;
}

.process-flow-step::before,
.process-flow-step::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 15px;
  height: 3px;
  transform: translateY(-50%);
  background: #d9e2ee;
}

.process-flow-step::before {
  left: -15px;
}

.process-flow-step::after {
  right: -15px;
}

.process-flow-step b {
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
}

.process-flow-step small {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  opacity: 1;
}

.process-flow-step small span,
.process-flow-step small em {
  font-style: normal;
}

.process-flow-step small em {
  margin-left: 5px;
  color: #e32020;
  font-weight: 900;
}

.process-flow-step.done {
  color: #138a37;
  background: #dff5e5;
}

.process-flow-step.active {
  color: #075fc7;
  background: #dcecff;
}

.process-flow-step.fail-active {
  color: #075fc7;
  background: #fff1f1;
  box-shadow: inset 0 0 0 1px #ffc9c9;
}

.process-flow-step.wait {
  color: #687386;
  background: #edf0f4;
}

.process-chain-cell {
  padding: 8px 14px;
}

.process-flow-chain {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  min-width: max-content;
}

.process-flow-chain .process-flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -22px;
  width: 22px;
  height: 2px;
  transform: translateY(-50%);
  background: #d9e2ee;
}

.process-flow-chain .process-flow-step::before {
  display: none;
}

.process-flow-chain .process-flow-step::after {
  left: auto;
}

.process-empty {
  color: var(--muted);
  font-weight: 800;
}

.process-flow-footer {
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 12px 18px;
  border-top: 1px solid var(--soft-line);
  background: #fff;
}

.process-flow-footer > strong {
  color: var(--navy-900);
  font-size: 14px;
}

.pager {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pager button,
.pager select {
  min-width: 34px;
  height: 34px;
  border: 1px solid #d7e0ef;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-weight: 900;
}

.pager button.is-current {
  color: #0d57c8;
  border-color: #75a8ff;
  box-shadow: 0 0 0 2px #e8f1ff;
}

.pager select {
  min-width: 112px;
  padding: 0 10px;
}

.process-legend {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 10px 16px;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font-weight: 900;
}

.process-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.process-legend i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.process-legend .done { background: #35b85b; }
.process-legend .active { background: #1f70e5; }
.process-legend .wait { background: #8b96a8; }
.process-legend .fail { background: #ff5b5b; }

.compact-progress-table {
  width: max-content !important;
  min-width: max-content !important;
  table-layout: fixed !important;
}

.compact-progress-table .flow-col-product {
  width: 132px !important;
}

.compact-progress-table .flow-col-work {
  width: 116px !important;
}

.compact-progress-table .flow-col-rate {
  width: 92px !important;
}

.compact-progress-table .flow-col-chain {
  width: calc(var(--process-count, 6) * 176px) !important;
}

.compact-progress-table th:nth-child(-n + 3),
.compact-progress-table td:nth-child(-n + 3) {
  position: sticky !important;
  z-index: 5 !important;
  background: #fff !important;
}

.compact-progress-table th:nth-child(-n + 3) {
  z-index: 7 !important;
  background: #f8fbff !important;
  color: var(--navy-900) !important;
}

.compact-progress-table th:first-child,
.compact-progress-table td:first-child {
  left: 0 !important;
  width: 132px !important;
  max-width: 132px !important;
}

.compact-progress-table th:nth-child(2),
.compact-progress-table td:nth-child(2) {
  left: 132px !important;
  width: 116px !important;
  max-width: 116px !important;
}

.compact-progress-table th:nth-child(3),
.compact-progress-table td:nth-child(3) {
  left: 248px !important;
  width: 92px !important;
  max-width: 92px !important;
  border-right: 2px solid #d7e0ef !important;
}

.compact-progress-table td:first-child,
.compact-progress-table td:nth-child(2) {
  overflow: hidden !important;
  padding: 0 8px !important;
  text-overflow: ellipsis !important;
}

.compact-progress-table th:nth-child(4) {
  background: linear-gradient(180deg, #185fa8, #064486) !important;
  color: #fff !important;
}

.compact-progress-table td:nth-child(4) {
  min-width: calc(var(--process-count, 6) * 176px) !important;
  max-width: calc(var(--process-count, 6) * 176px) !important;
  text-align: left !important;
}

.compact-progress-table .mini-progress {
  width: 40px !important;
  margin-right: 4px !important;
}

.compact-progress-table .process-flow-step {
  min-width: 148px !important;
}

.process-skip {
  background:
    linear-gradient(90deg, transparent 0 48%, #dfe5ee 48% 52%, transparent 52% 100%);
}

.work-order-detail-grid table {
  min-width: 520px;
}

.work-order-detail-grid .table-card:first-child .table-scroll {
  max-height: 360px;
  overflow: auto;
}

.work-order-detail-grid .table-card:first-child thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.work-order-barcode-row.is-selected td {
  background: #eaf2ff;
}

.defect-qty {
  color: #e32020;
  font-weight: 900;
}

.work-order-barcode-row.has-fail td {
  background: #fff7f7;
}

.work-order-barcode-row.has-fail td:first-child {
  border-left: 4px solid #e32020;
}

.barcode-link {
  width: 100%;
  border: 0;
  background: transparent;
  color: #005bd8;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.barcode-link:hover {
  text-decoration: underline;
}

.work-order-process-barcode.is-pending,
.work-order-product-barcode.is-pending {
  color: #111827;
}

.work-order-process-barcode.is-complete,
.work-order-product-barcode.is-complete {
  color: #005bd8;
}

.work-order-process-barcode.is-defect,
.work-order-product-barcode.is-defect {
  color: #d71920;
}

.detail-empty {
  display: grid;
  min-height: 170px;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 14px;
}

.metric-card {
  position: relative;
  min-height: 104px;
  display: grid;
  grid-template-columns: 54px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
}

.metric-card span {
  grid-row: 1 / 4;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #e7efff;
}

.metric-card p,
.metric-card strong,
.metric-card small {
  margin: 0;
}

.metric-card p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric-card strong {
  font-size: 26px;
}

.metric-card small {
  color: #1f8f44;
}

.metric-card.green span { background: #daf4df; }
.metric-card.purple span { background: #eee4ff; }
.metric-card.orange span { background: #ffe9ce; }
.metric-card.red span { background: #ffe0e0; }

.table-card,
.panel-card,
.process-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  box-shadow: 0 2px 12px rgba(8, 28, 64, 0.03);
}

.card-head {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--soft-line);
}

.card-head h3,
.panel-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
}

.table-scroll {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  position: relative;
  box-sizing: border-box;
  height: 35px;
  border: 1px solid var(--soft-line);
  padding: 7px 10px;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  min-width: 0;
  clip-path: inset(0);
  contain: paint;
}

td > *,
th > * {
  max-width: 100%;
}

.rs-cell-text {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  inline-size: calc(100% - 1px);
  max-inline-size: calc(100% - 1px);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: auto;
  contain: paint;
}

.rs-table-enhanced td,
.rs-table-enhanced th {
  overflow: hidden !important;
  clip-path: inset(0);
  contain: paint;
}

.rs-table-enhanced tbody td {
  isolation: isolate;
}

.rs-table-enhanced tbody td:not(:has(input, select, textarea, button, a, table)) {
  min-width: 0 !important;
}

.rs-table-enhanced tbody td > .rs-cell-text {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  inline-size: calc(100% - 1px) !important;
  max-inline-size: calc(100% - 1px) !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

th {
  background: linear-gradient(180deg, var(--table-header-bg), var(--table-header-bg));
  color: #fff;
  font-weight: 900;
}

.rs-table-enhanced {
  table-layout: fixed;
}

.rs-table-enhanced th {
  position: relative;
  user-select: none;
}

.rs-table-enhanced .rs-th-inner {
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
}

.rs-table-enhanced .rs-th-label {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rs-table-enhanced .rs-th-sort {
  min-width: 0;
  color: #d7e7ff;
  font-size: 10px;
  line-height: 1;
}

.rs-table-enhanced .rs-th-sort:empty {
  display: none;
}

.rs-table-enhanced .rs-th-filter {
  display: none !important;
}

.rs-table-enhanced .rs-th-filter::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 3px auto 0;
  background: currentColor;
  color: #fff;
  clip-path: polygon(8% 12%, 92% 12%, 60% 48%, 60% 88%, 40% 88%, 40% 48%);
}

.rs-table-enhanced th.rs-has-filter .rs-th-filter {
  background: #fff;
}

.rs-table-enhanced th.rs-has-filter .rs-th-filter::before {
  color: var(--blue-700);
}

.rs-table-enhanced th.rs-is-sorted {
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.5);
}

.rs-filter-hidden {
  display: none !important;
}

.rs-filter-popover {
  position: fixed;
  z-index: 20000;
  width: 298px;
  display: grid;
  gap: 6px;
  border: 1px solid #b9c2d0;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(8, 28, 64, 0.18);
  padding: 6px;
}

.rs-filter-popover[hidden] {
  display: none;
}

.rs-filter-popover strong {
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 800;
}

.rs-filter-popover input[type="text"] {
  width: 100%;
  min-height: 28px;
  border: 1px solid #9ca3af;
  border-radius: 1px;
  padding: 0 7px;
  font-size: 12px;
  font-weight: 600;
}

.rs-filter-popover input[type="checkbox"] {
  width: 14px !important;
  height: 14px !important;
  min-height: 0 !important;
  flex: 0 0 14px;
  margin: 0;
  accent-color: #0d57c8;
}

.rs-filter-sort-actions {
  display: grid;
  gap: 2px;
  border-bottom: 1px solid var(--soft-line);
  padding-bottom: 5px;
}

.rs-filter-sort-actions button,
.rs-filter-clear {
  min-height: 26px;
  border: 0;
  background: transparent;
  color: var(--navy-900);
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 4px;
}

.rs-filter-sort-actions button:hover,
.rs-filter-clear:hover {
  color: var(--blue-700);
  background: #f2f7ff;
}

.rs-filter-clear {
  border-bottom: 1px solid var(--soft-line);
  color: #64748b;
  padding-bottom: 5px;
}

.rs-filter-check-all,
.rs-filter-value {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 21px;
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 600;
}

.rs-filter-values {
  max-height: 202px;
  overflow: auto;
  border: 1px solid #b9c2d0;
  border-radius: 1px;
  padding: 3px 5px;
}

.rs-filter-value span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rs-filter-empty {
  margin: 12px 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.rs-filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.rs-filter-actions button {
  min-height: 28px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
}

.status {
  display: inline-flex;
  min-width: 52px;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 6px;
  background: #eef2f7;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.status.done { background: #dcf7e2; color: #14903d; }
.status.fail { background: #ffe1e1; color: #e32020; }
.status.warn { background: #fff0d0; color: #d57600; }
.status.active { background: #e0edff; color: #1463df; }
.status.wait { background: #eef2f7; color: #64748b; }

.detail-grid,
.form-panels {
  display: grid;
  grid-template-columns: minmax(340px, 0.8fr) minmax(520px, 1.4fr);
  gap: 16px;
}

.panel-card {
  padding: 18px;
}

.form-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.info-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  margin: 18px 0 0;
}

.info-list dt {
  color: var(--muted);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  font-weight: 800;
}

.process-card {
  padding: 0;
  overflow: auto;
}

.process-grid {
  min-width: 1180px;
  display: grid;
  grid-template-columns: 120px 100px 130px repeat(8, 1fr);
}

.process-grid > * {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
  font-size: 13px;
}

.process-head strong {
  background: #fff;
  font-weight: 900;
}

.process-row > span:nth-child(3) {
  gap: 8px;
}

.process-row > span:nth-child(3) i {
  width: 48px;
  height: 10px;
  border-radius: 999px;
  background: #39b85a;
  display: inline-block;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 8px;
  transform: translateY(-50%);
  background: #ddd;
}

.timeline b {
  z-index: 1;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #cfd6df;
}

.timeline b.done {
  background: #39b85a;
  border-color: #39b85a;
}

.timeline b.current {
  border-color: #3f84e8;
}

.legend {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px;
  color: var(--text);
  font-size: 13px;
}

.legend span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: inline-block;
  margin-right: -14px;
}

.done-dot { background: #39b85a; }
.current-dot { background: #3f84e8; }
.wait-dot { background: #cfd6df; }
.delay-dot { background: #ee3434; }

.record-dialog {
  width: min(1280px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  border: 0;
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 24px 80px rgba(20, 30, 50, 0.26);
}

.record-dialog::backdrop {
  background: rgba(8, 18, 38, 0.38);
}

.record-dialog form {
  width: 100%;
  min-width: min(760px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  padding: 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}

.dialog-head,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-head h3 {
  margin: 0;
}

.dialog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.memo-field {
  grid-column: span 2;
}

.dialog-actions {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  margin-top: 20px;
}

.lot-layout {
  display: grid;
  gap: 16px;
}

.lot-card .card-head {
  padding-bottom: 14px;
}

.lot-table th,
.lot-table td {
  white-space: nowrap;
}

.lot-table td:nth-child(7) {
  min-width: 220px;
  text-align: left;
}

.lot-table td:nth-child(9) {
  width: 84px;
}

.empty-cell {
  height: 160px;
  color: var(--muted);
  font-weight: 800;
}

.lot-dialog {
  width: min(860px, calc(100vw - 32px));
}

.lot-dialog-v2 {
  width: min(1180px, calc(100vw - 28px));
}

.lot-dialog-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lot-editor-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(360px, 0.72fr);
  gap: 16px;
}

.lot-form-section {
  display: grid;
  gap: 14px;
}

.barcode-mode-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbe7f7;
  border-radius: 7px;
  background: #f8fbff;
}

.barcode-mode-section h4 {
  margin: 0;
  color: var(--navy-900);
  font-size: 15px;
  font-weight: 900;
}

.barcode-mode-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.barcode-mode-card {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid #d7e0ef;
  border-radius: 7px;
  background: #fff;
}

.barcode-mode-card:has(input:checked) {
  border-color: #0d57c8;
  box-shadow: 0 0 0 3px #e5f0ff;
}

.barcode-mode-card b,
.barcode-mode-card small {
  display: block;
}

.barcode-mode-card small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.barcode-start-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.barcode-range-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #e8f1ff;
  color: #064995;
  padding: 0 14px;
  font-weight: 900;
  white-space: nowrap;
}

.lot-preview-card table {
  min-width: 360px;
}

.lot-dialog select,
.lot-dialog input {
  width: 100%;
}

.barcode-preview {
  margin-top: 18px;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: #f8fbff;
  overflow: hidden;
}

.barcode-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--soft-line);
  color: var(--navy-900);
  font-weight: 900;
}

.barcode-summary span {
  color: var(--muted);
  font-size: 13px;
}

.barcode-list {
  max-height: 150px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  overflow: auto;
}

.barcode-list span {
  padding: 5px 8px;
  border-radius: 5px;
  background: #eaf2ff;
  color: #004aa6;
  font-size: 12px;
  font-weight: 800;
}

.product-process-layout {
  display: grid;
  gap: 16px;
}

.process-master-layout {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(300px, 420px);
  gap: 16px;
}

.process-master-form-card {
  align-self: start;
}

.process-editor-card {
  min-height: 260px;
}

.empty-process-guide {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.process-product-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 0 14px;
}

.process-product-summary span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 6px;
  background: #edf5ff;
  color: #0c3e78;
  font-size: 13px;
  font-weight: 800;
}

.process-editor-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(280px, 360px);
  gap: 16px;
}

.process-form {
  align-content: start;
  padding: 16px;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: #fbfdff;
}

.process-actions-cell {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.bom-page {
  display: grid;
  gap: 14px;
}

.bom-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
  padding: 16px;
  border-radius: 7px;
  align-items: stretch;
}

.bom-toolbar.search-panel {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: stretch;
}

.bom-toolbar label {
  display: grid;
  grid-template-columns: auto minmax(140px, 1fr);
  align-items: center;
  gap: 10px;
  font-weight: 900;
  margin: 0;
  white-space: nowrap;
}

.bom-toolbar select,
.bom-toolbar input,
.bom-edit-panel input,
.bom-edit-panel textarea {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 12px;
  background: #fff;
  font: inherit;
}

.bom-filter-stack {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.bom-filter-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(220px, 300px) minmax(150px, 190px) 76px 86px 106px;
  gap: 12px;
  align-items: center;
}

.bom-filter-row-second {
  grid-template-columns: 1fr;
  align-items: start;
}

.bom-product-name {
  grid-column: auto;
}

.bom-calc-box {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 8px;
  align-items: end;
  align-content: center;
  padding: 12px;
  border: 1px solid #b7c3d4;
  border-radius: 7px;
  background: #f8fbff;
}

.bom-calc-box .dark-action {
  min-width: 68px;
}

.bom-calc-box strong {
  grid-column: 1 / -1;
  text-align: left;
  color: var(--text);
}

.bom-calc-box label {
  grid-template-columns: auto 90px;
}

.bom-table-wrap {
  border: 1px solid var(--line);
  border-radius: 0 0 7px 7px;
  background: #fff;
  overflow: hidden;
}

.bom-table-wrap .table-scroll {
  max-height: 520px;
  overflow: auto;
}

.bom-table {
  min-width: 1180px;
}

.bom-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, #1d5ea3, #094986);
  color: #fff;
}

.bom-table td {
  height: 36px;
  background: #fff;
}

.bom-table tr:nth-child(even) td {
  background: #f8fbff;
}

.bom-info-table-card {
  padding: 0;
  overflow: hidden;
}

.bom-info-table-card .card-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.bom-manage-search {
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.5fr) auto auto;
}

.bom-manage-grid {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) minmax(340px, 420px);
  gap: 16px;
}

.bom-edit-panel {
  align-self: start;
}

.bom-upload-box {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--soft-line);
}

.bom-upload-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.assembly-page,
.assembly-manage-page {
  display: grid;
  gap: 16px;
}

.assembly-filter-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(3, 43, 93, 0.04);
}

.assembly-filter-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(180px, 0.8fr) minmax(220px, 1fr) minmax(260px, 1.2fr) minmax(220px, 1fr);
  gap: 12px;
  align-items: center;
}

.assembly-filter-row-bottom {
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(220px, 1fr) minmax(200px, 0.8fr) minmax(220px, auto);
}

.assembly-filter-card label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0;
  min-width: 0;
  font-weight: 900;
  white-space: nowrap;
}

.assembly-filter-card input,
.assembly-filter-card select {
  min-width: 0;
  min-height: 38px;
}

.assembly-filter-actions {
  display: grid;
  grid-template-columns: 160px 160px;
  gap: 10px;
  justify-content: end;
}

.assembly-filter-actions button {
  min-width: 104px;
}

.assembly-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.assembly-stat-card {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(3, 43, 93, 0.04);
}

.assembly-stat-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: #e7efff;
  position: relative;
}

.assembly-stat-icon::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #0d57c8;
}

.assembly-stat-card.green .assembly-stat-icon { background: #daf4df; }
.assembly-stat-card.green .assembly-stat-icon::after { background: #25a85a; }
.assembly-stat-card.purple .assembly-stat-icon { background: #eee4ff; }
.assembly-stat-card.purple .assembly-stat-icon::after { background: #7355e7; }
.assembly-stat-card.orange .assembly-stat-icon { background: #ffe9ce; }
.assembly-stat-card.orange .assembly-stat-icon::after { background: #ee9b21; }
.assembly-stat-card.red .assembly-stat-icon { background: #ffe0e0; }
.assembly-stat-card.red .assembly-stat-icon::after { background: #e84747; }

.assembly-stat-card div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.assembly-stat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.assembly-stat-card strong {
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  white-space: nowrap;
}

.assembly-table-card {
  overflow: hidden;
}

.assembly-list-scroll {
  max-height: 430px;
  overflow: auto;
}

.assembly-table {
  min-width: 1650px;
}

.assembly-table tbody tr {
  cursor: pointer;
}

.assembly-table tbody tr.is-selected td {
  background: #dbeafe;
}

.assembly-detail-card {
  overflow: hidden;
}

.assembly-detail-card .assembly-list-scroll {
  max-height: 390px;
  overflow: auto;
}

.assembly-summary-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fbff;
}

.assembly-summary-line span,
.assembly-product-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-weight: 800;
}

.assembly-summary-line b,
.assembly-product-box strong {
  color: var(--blue-700);
}

.assembly-manage-search {
  grid-template-columns: minmax(220px, 1fr) minmax(300px, 1.5fr) auto auto auto;
}

.assembly-requirement-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
}

.assembly-product-box {
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 18px;
}

.assembly-product-box span {
  color: var(--muted);
}

.assembly-requirement-rows {
  display: grid;
  gap: 10px;
}

.assembly-requirement-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(180px, 0.8fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbff;
}

.assembly-requirement-row label {
  margin: 0;
}

.drag-row {
  cursor: grab;
}

.drag-row.is-dragging {
  opacity: 0.45;
}

.drag-handle {
  color: var(--navy-900);
  font-weight: 900;
  cursor: grab;
  user-select: none;
}

.lot-issue-page {
  display: grid;
  gap: 16px;
}

.lot-issue-filter {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(240px, 1fr) minmax(180px, 260px) 90px 90px;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.lot-issue-filter label,
.lot-issue-register-grid label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.lot-issue-filter select,
.lot-issue-register-grid input,
.lot-issue-upload-box textarea,
.lot-issue-upload-box input[type="file"] {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  padding: 0 12px;
}

.lot-issue-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}

.lot-issue-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.lot-issue-table-card,
.lot-issue-upload-card {
  overflow: hidden;
}

.lot-issue-summary-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fbff;
}

.lot-issue-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.lot-issue-chip b {
  color: var(--blue-700);
}

.lot-issue-chip.bad,
.lot-issue-bad {
  color: #e11d48;
}

.lot-issue-chip.good,
.lot-issue-good {
  color: #0f9f55;
}

.lot-issue-table-scroll {
  max-height: 520px;
  overflow: auto;
}

.lot-issue-table {
  min-width: 1180px;
}

.lot-issue-table thead th,
.stock-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--blue-700);
  box-shadow: 0 1px 0 var(--line);
}

.lot-issue-table .text-left {
  text-align: left;
}

.lot-issue-qty-input {
  width: 110px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 5px;
  text-align: right;
  padding: 0 8px;
  font: inherit;
  font-weight: 800;
}

.lot-issue-side {
  display: grid;
  gap: 12px;
}

.lot-issue-side .panel-card {
  padding: 18px;
}

.lot-issue-info-list {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px 8px;
  margin: 0;
  font-size: 13px;
}

.lot-issue-info-list dt {
  color: var(--muted);
  font-weight: 900;
}

.lot-issue-info-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 900;
  word-break: break-word;
}

.lot-issue-history {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lot-issue-history li {
  display: grid;
  gap: 4px;
  padding-left: 12px;
  border-left: 3px solid #20b15a;
  font-size: 12px;
}

.lot-issue-history b {
  color: var(--text);
}

.lot-issue-history span {
  color: var(--muted);
  font-weight: 800;
}

.empty-side {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.lot-issue-register-grid {
  display: grid;
  grid-template-columns: 150px 190px 150px minmax(220px, 1fr);
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.lot-issue-upload-box {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 220px minmax(280px, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 16px;
  background: #f8fbff;
}

.lot-issue-upload-box h4 {
  margin: 0 0 6px;
  color: var(--blue-700);
  font-size: 14px;
}

.lot-issue-upload-box p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.lot-issue-upload-box textarea {
  min-height: 112px;
  padding: 10px 12px;
  resize: vertical;
}

.lot-issue-upload-actions {
  display: grid;
  gap: 8px;
  min-width: 120px;
}

.inbound-page {
  display: grid;
  gap: 16px;
}

.inbound-filter-card {
  display: grid;
  grid-template-columns: 150px 150px minmax(180px, 1fr) minmax(220px, 1.2fr) minmax(150px, 0.9fr) minmax(150px, 0.9fr) minmax(150px, 0.9fr) minmax(150px, 0.9fr) 86px 86px;
  gap: 10px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.inbound-filter-card label,
.inbound-slip-grid label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.inbound-filter-card input,
.inbound-filter-card select,
.inbound-slip-grid input,
.inbound-slip-grid select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  padding: 0 12px;
}

.inbound-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
}

.inbound-stat-card {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(3, 43, 93, 0.04);
}

.inbound-stat-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: #e7efff;
  position: relative;
}

.inbound-stat-icon::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #0d57c8;
}

.inbound-stat-card.green .inbound-stat-icon { background: #daf4df; }
.inbound-stat-card.green .inbound-stat-icon::after { background: #25a85a; }
.inbound-stat-card.purple .inbound-stat-icon { background: #eee4ff; }
.inbound-stat-card.purple .inbound-stat-icon::after { background: #7355e7; }
.inbound-stat-card.orange .inbound-stat-icon { background: #ffe9ce; }
.inbound-stat-card.orange .inbound-stat-icon::after { background: #ee9b21; }

.inbound-stat-card p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.inbound-stat-card strong {
  color: var(--text);
  font-size: 26px;
  line-height: 1;
}

.inbound-form-card,
.inbound-history-card {
  overflow: hidden;
}

.inbound-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inbound-slip-grid {
  display: grid;
  grid-template-columns: 150px minmax(180px, 1fr) minmax(220px, 1.2fr) minmax(160px, 0.9fr) minmax(160px, 0.9fr) minmax(140px, 0.8fr) minmax(160px, 0.9fr) minmax(240px, 1.4fr);
  gap: 12px;
  padding: 16px;
}

.inbound-info {
  margin: 0 16px 12px;
  padding: 10px 12px;
  border: 1px solid #d8e7ff;
  border-radius: 6px;
  background: #f4f8ff;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 900;
}

.inbound-edit-scroll,
.inbound-history-scroll {
  max-height: 420px;
  overflow: auto;
}

.inbound-edit-table {
  min-width: 1240px;
}

.inbound-history-table {
  min-width: 1280px;
}

.inbound-edit-table input {
  width: 100%;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 8px;
  font: inherit;
  font-weight: 800;
}

.inbound-edit-table th:nth-child(1),
.inbound-edit-table td:nth-child(1) {
  width: 48px;
}

.inbound-edit-table th:nth-child(9),
.inbound-edit-table td:nth-child(9) {
  width: 70px;
}

.inbound-paste-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(420px, 1.4fr) 120px;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: #f8fbff;
}

.inbound-paste-panel h4 {
  margin: 0 0 6px;
  color: var(--blue-700);
  font-size: 14px;
}

.inbound-paste-panel p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.inbound-paste-panel code {
  display: block;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
}

.inbound-paste-panel textarea {
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  font: inherit;
  resize: vertical;
}

.material-flow-filter {
  grid-template-columns: 150px 150px minmax(180px, 1fr) minmax(220px, 1.2fr) minmax(150px, 0.9fr) minmax(150px, 0.9fr) minmax(150px, 0.9fr) 86px 86px;
}

.stock-filter-card {
  grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.4fr) minmax(180px, 0.9fr) minmax(180px, 0.9fr) 86px 86px;
}

.outbound-slip-grid {
  grid-template-columns: 150px minmax(180px, 1fr) minmax(220px, 1.2fr) minmax(160px, 0.9fr) minmax(140px, 0.8fr) minmax(160px, 0.9fr) minmax(240px, 1.4fr);
}

.stock-table {
  min-width: 1220px;
}

.process-barcode-dialog form {
  width: min(760px, calc(100vw - 48px));
  max-width: 760px;
  min-height: auto;
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.process-popup-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.process-popup-summary b {
  color: var(--text);
}

.danger-text {
  color: #d92727 !important;
}

.process-popup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 16px;
  min-height: 0;
  flex: 1;
  overflow: auto;
}

.process-popup-grid .table-card {
  width: 100%;
}

.process-popup-scroll {
  height: min(330px, calc((100vh - 290px) / 2));
  overflow: auto;
}

.process-popup-grid section:nth-child(2) .process-popup-scroll {
  height: min(190px, calc((100vh - 330px) / 3));
}

.process-popup-scroll table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}

.process-popup-scroll th:nth-child(1),
.process-popup-scroll td:nth-child(1) {
  width: 56px;
}

.process-popup-scroll th:nth-child(4),
.process-popup-scroll td:nth-child(4) {
  width: 150px;
}

.process-popup-scroll th:nth-child(5),
.process-popup-scroll td:nth-child(5) {
  width: 90px;
}

.result-detail-dialog form {
  width: min(1280px, calc(100vw - 48px));
  min-height: min(820px, calc(100vh - 48px));
  gap: 14px;
}

.result-popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 12px;
}

.result-info-list-popup {
  grid-template-columns: 120px 1fr 120px 1fr;
}

.result-info-list-popup dt,
.result-info-list-popup dd {
  min-height: 34px;
}

.result-popup-history-scroll {
  max-height: min(340px, calc(100vh - 470px));
  overflow: auto;
}

.table-save-menu {
  position: fixed;
  z-index: 9999;
  display: none;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 26, 70, 0.16);
}

.table-save-menu button {
  border: 0;
  border-radius: 5px;
  padding: 9px 14px;
  background: var(--blue-700);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.system-access-toolbar {
  grid-template-columns: minmax(260px, 420px) 120px;
}

.access-template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.access-template-card {
  min-height: 104px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 6px 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: #fff;
  padding: 16px;
  text-align: left;
  cursor: pointer;
}

.access-template-card:hover {
  border-color: var(--blue-700);
  box-shadow: 0 8px 22px rgba(13, 87, 200, 0.1);
}

.access-template-card span {
  grid-row: span 2;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eaf2ff;
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 900;
}

.access-template-card strong {
  color: var(--navy-900);
  font-size: 16px;
}

.access-template-card small {
  color: var(--muted);
  line-height: 1.45;
}

.system-access-card table,
.system-log-card table {
  min-width: 1120px;
}

.system-access-table th,
.system-access-table td {
  text-align: center;
}

.system-access-table td:nth-child(2) {
  font-weight: 900;
}

.access-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 24px;
  cursor: pointer;
}

.access-switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.access-switch span {
  width: 44px;
  height: 22px;
  border-radius: 999px;
  background: #d9e1ec;
  transition: 0.15s ease;
}

.access-switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  transition: 0.15s ease;
}

.access-switch input:checked + span {
  background: var(--blue-700);
}

.access-switch input:checked + span::after {
  transform: translateX(20px);
}

.access-excel-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 6px;
  padding: 0 10px;
  background: #e6f7ec;
  color: #139447;
  font-size: 12px;
  font-weight: 900;
}

.is-permission-disabled {
  opacity: 0.42 !important;
  cursor: not-allowed !important;
}

.status-pill.muted {
  background: #edf1f7;
  color: #58657a;
}

.row-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.system-log-dialog form {
  width: min(1320px, calc(100vw - 48px));
  min-height: min(760px, calc(100vh - 48px));
  gap: 14px;
}

.system-log-json-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  min-height: 0;
  flex: 1;
}

.system-log-json-grid div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.system-log-json-grid h4 {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--navy-900);
}

.system-log-json-grid pre {
  height: min(420px, calc(100vh - 330px));
  margin: 0;
  padding: 14px;
  overflow: auto;
  background: #f8fbff;
  color: var(--text);
  font: 12px/1.55 Consolas, "Courier New", monospace;
  white-space: pre-wrap;
}

.shipment-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shipment-dialog form {
  width: min(1120px, calc(100vw - 48px));
  min-height: min(820px, calc(100vh - 36px));
  overflow: hidden;
}

.shipment-dialog .shipment-form-card {
  border: 0;
  padding: 16px;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.shipment-page {
  display: grid;
  gap: 16px;
}

.shipment-filter-card {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(220px, 1.2fr) minmax(260px, 1.5fr) 86px 86px;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.shipment-filter-card label,
.shipment-form-grid label,
.shipment-line-builder label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 800;
}

.shipment-filter-card span,
.shipment-form-grid span,
.shipment-line-builder span {
  font-size: 13px;
}

.shipment-filter-card input,
.shipment-filter-card select,
.shipment-form-grid input,
.shipment-form-grid select,
.shipment-line-builder input,
.shipment-line-builder select,
.shipment-line-builder textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 12px;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-weight: 800;
}

.shipment-line-builder textarea {
  min-height: 88px;
  padding: 10px 12px;
  resize: vertical;
}

.shipment-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
}

.shipment-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.shipment-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e6efff;
  position: relative;
  flex: 0 0 auto;
}

.shipment-stat-icon::after {
  content: "";
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  background: #1262d4;
}

.shipment-stat-card.green .shipment-stat-icon { background: #daf4df; }
.shipment-stat-card.green .shipment-stat-icon::after { background: #25a85a; }
.shipment-stat-card.purple .shipment-stat-icon { background: #eee4ff; }
.shipment-stat-card.purple .shipment-stat-icon::after { background: #7355e7; }
.shipment-stat-card.orange .shipment-stat-icon { background: #ffe9ce; }
.shipment-stat-card.orange .shipment-stat-icon::after { background: #ee9b21; }
.shipment-stat-card.red .shipment-stat-icon { background: #ffe0e0; }
.shipment-stat-card.red .shipment-stat-icon::after { background: #e84747; }

.shipment-stat-card p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.shipment-stat-card strong {
  color: var(--text);
  font-size: 25px;
}

.shipment-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 16px;
  align-items: start;
}

.shipment-list-card,
.shipment-form-card,
.shipment-detail-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.shipment-detail-card,
.shipment-form-card {
  padding: 16px;
}

.shipment-table-scroll {
  max-height: 360px;
  overflow: auto;
}

.shipment-table {
  min-width: 980px;
}

.shipment-table thead th,
.shipment-small-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.shipment-table tbody tr.is-selected td {
  background: #eaf2ff;
}

.shipment-info-list {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 11px 14px;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--line);
}

.shipment-info-list span {
  color: var(--muted);
  font-weight: 800;
}

.shipment-info-list b {
  color: var(--text);
}

.shipment-detail-card h4 {
  margin: 16px 0 8px;
  color: var(--blue-700);
}

.shipment-small-scroll {
  max-height: 180px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.shipment-small-scroll.barcode {
  max-height: 260px;
}

.shipment-small-table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}

.shipment-line-scroll .shipment-small-table th:nth-child(1),
.shipment-line-scroll .shipment-small-table td:nth-child(1) {
  width: 46px;
}

.shipment-line-scroll .shipment-small-table th:nth-child(2),
.shipment-line-scroll .shipment-small-table td:nth-child(2) {
  width: 120px;
}

.shipment-line-scroll .shipment-small-table th:nth-child(3),
.shipment-line-scroll .shipment-small-table td:nth-child(3) {
  width: auto;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shipment-line-scroll .shipment-small-table th:nth-child(4),
.shipment-line-scroll .shipment-small-table td:nth-child(4),
.shipment-line-scroll .shipment-small-table th:nth-child(5),
.shipment-line-scroll .shipment-small-table td:nth-child(5) {
  width: 72px;
}

.shipment-line-scroll .shipment-small-table th:nth-child(6),
.shipment-line-scroll .shipment-small-table td:nth-child(6) {
  width: 70px;
}

.shipment-form-grid {
  display: grid;
  grid-template-columns: 180px minmax(260px, 1fr) 140px 140px;
  gap: 12px;
  align-items: end;
}

.shipment-form-grid .wide {
  grid-column: 1 / -1;
}

.shipment-line-builder {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 86px minmax(300px, 1fr) 112px;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.shipment-line-scroll {
  margin-top: 14px;
  max-height: 220px;
  overflow-x: hidden;
  overflow-y: auto;
}

.shipment-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 1200px) {
  .metric-grid,
  .search-panel,
  .detail-grid,
  .form-panels,
  .employee-form,
  .employee-form-grid,
  .customer-layout,
  .customer-product-layout,
  .customer-product-search,
  .process-master-layout,
  .process-editor-grid,
  .assembly-filter-row,
  .assembly-filter-row-bottom,
  .assembly-filter-actions,
  .assembly-manage-search,
  .assembly-metrics,
  .assembly-requirement-grid,
  .assembly-requirement-row,
  .lot-issue-filter,
  .lot-issue-layout,
  .lot-issue-register-grid,
  .lot-issue-upload-box,
  .inbound-filter-card,
  .inbound-stat-grid,
  .inbound-slip-grid,
  .inbound-paste-panel,
  .material-flow-filter,
  .stock-filter-card,
  .outbound-slip-grid,
  .shipment-filter-card,
  .shipment-stat-grid,
  .shipment-main-grid,
  .shipment-form-grid,
  .shipment-line-builder {
    grid-template-columns: 1fr;
  }

  .erp-view {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .bom-filter-row,
  .bom-filter-row-second {
    grid-template-columns: 1fr 1fr;
  }

  .bom-toolbar,
  .bom-toolbar.search-panel {
    grid-template-columns: 1fr;
  }

  .bom-filter-row .dark-action,
  .bom-filter-row .secondary-action {
    width: 100%;
  }
}

@media (max-width: 780px) {
  .login-view {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 20px;
  }

  .form-grid,
  .dialog-grid,
  .lot-dialog-grid,
  .form-preview {
    grid-template-columns: 1fr;
  }

  .erp-view {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    z-index: 10;
    width: 230px;
  }

  .sidebar.collapsed {
    width: 0;
  }

  .topbar {
    padding: 0 14px;
  }

  .topbar-right {
    gap: 6px;
  }

  .account-box,
  .avatar {
    display: none;
  }

  .content {
    padding: 14px;
  }
}


/* 2026-05-22 popup/list refinements */
.process-barcode-dialog form {
  width: min(760px, calc(100vw - 48px));
  max-width: 760px;
  min-height: auto;
  max-height: calc(100vh - 48px);
}

.result-detail-dialog form,
.result-detail-dialog > div {
  width: min(1080px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.match-edit-dialog {
  padding: 0;
}

.match-edit-dialog .dialog-head {
  padding: 18px 22px 10px;
}

.match-edit-dialog .match-edit-card {
  border: 0;
  box-shadow: none;
  padding: 16px 22px 22px;
}

.match-edit-dialog form {
  width: min(720px, calc(100vw - 48px));
}

.shipment-filter-list-only {
  grid-template-columns: 160px 160px 160px minmax(180px, 1fr) minmax(220px, 1.2fr) 86px 86px;
}

.shipment-detail-dialog form {
  width: min(1080px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  min-height: auto;
  overflow: auto;
}

.shipment-detail-dialog .shipment-detail-card,
.shipment-detail-popup-card {
  border: 0;
  box-shadow: none;
  padding: 16px 22px 22px;
}

.shipment-detail-dialog .shipment-small-scroll.barcode {
  max-height: min(360px, calc(100vh - 520px));
}

.shipment-barcode-table th:nth-child(1),
.shipment-barcode-table td:nth-child(1) {
  width: 64px;
}

.shipment-barcode-table th:nth-child(2),
.shipment-barcode-table td:nth-child(2) {
  width: 28%;
}

.shipment-barcode-table th:nth-child(3),
.shipment-barcode-table td:nth-child(3) {
  width: 180px;
}

.shipment-barcode-table th:nth-child(5),
.shipment-barcode-table td:nth-child(5) {
  width: 92px;
}


/* 2026-05-22 dialog shell sizing */
.result-detail-dialog,
.match-edit-dialog,
.shipment-detail-dialog {
  width: auto;
  max-width: calc(100vw - 48px);
}

.result-detail-dialog {
  width: min(1080px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.result-detail-dialog .result-info-card,
.result-detail-dialog .result-history-card {
  margin: 0 0 14px;
}

.match-edit-dialog {
  width: min(720px, calc(100vw - 48px));
}

.shipment-detail-dialog {
  width: min(1080px, calc(100vw - 48px));
}


/* 2026-05-22 precise popup corrections */
.process-barcode-dialog {
  width: min(760px, calc(100vw - 48px)) !important;
  max-width: 760px !important;
}

.process-barcode-dialog form {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box;
}

.result-detail-dialog {
  width: min(1100px, calc(100vw - 64px)) !important;
  padding: 24px 28px !important;
  box-sizing: border-box;
  background: #fff;
}

.result-detail-dialog > .dialog-head,
.result-detail-dialog > .table-card,
.result-detail-dialog > section {
  width: 100%;
  box-sizing: border-box;
}

.result-detail-dialog .result-info-card,
.result-detail-dialog .result-history-card {
  margin-left: 0;
  margin-right: 0;
}

.match-edit-dialog {
  background: #fff;
}

/* 2026-05-22 production/material audit fixes */
.result-detail-dialog {
  width: min(980px, calc(100vw - 72px)) !important;
  max-height: calc(100vh - 72px) !important;
  padding: 22px 24px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.result-detail-dialog * {
  box-sizing: border-box;
}

.result-detail-dialog > .dialog-head {
  min-width: 0 !important;
  overflow: visible !important;
}

.result-detail-dialog .result-info-list-popup {
  grid-template-columns: 96px minmax(0, 1fr) 96px minmax(0, 1fr);
}

.result-detail-dialog .result-info-list-popup dt,
.result-detail-dialog .result-info-list-popup dd {
  min-width: 0;
  min-height: 30px;
  padding: 6px 8px;
}

.result-detail-dialog .result-edit-form {
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px 12px;
  padding: 0 10px 10px;
  overflow: visible;
}

.result-detail-dialog .result-edit-form label {
  min-width: 0;
}

.result-detail-dialog .result-edit-form select {
  height: 34px;
  min-height: 34px;
  padding: 6px 10px;
}

.result-detail-dialog .result-edit-form textarea {
  height: 56px;
  min-height: 56px;
  max-height: 72px;
  padding: 7px 10px;
  resize: vertical;
}

.result-detail-dialog .result-edit-form .employee-form-actions {
  padding-top: 2px;
}

.match-edit-dialog {
  width: min(640px, calc(100vw - 72px)) !important;
  max-width: calc(100vw - 72px) !important;
  overflow-x: hidden !important;
}

.match-edit-dialog * {
  box-sizing: border-box;
}

.match-edit-dialog .dialog-head {
  width: 100% !important;
  min-width: 0 !important;
  padding: 18px 20px 8px;
}

.match-edit-dialog .match-edit-card {
  width: 100%;
  min-width: 0;
  padding: 12px 20px 20px;
  overflow: hidden;
}

.match-edit-dialog .customer-form {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 10px 0 0;
}

.match-edit-dialog .customer-form input {
  width: 100%;
  min-width: 0;
}

.match-edit-dialog .employee-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.inbound-edit-table thead th,
.inbound-history-table thead th,
.bom-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--blue-700);
  box-shadow: 0 1px 0 var(--line);
}

/* 2026-05-22 fix production result edit dialog height */
.result-detail-dialog.is-editing {
  width: min(880px, calc(100vw - 96px)) !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: calc(100vh - 96px) !important;
  padding: 20px 24px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.result-detail-dialog.is-editing .result-info-card {
  margin-bottom: 0 !important;
}

.result-detail-dialog.is-editing .result-info-list-popup {
  grid-template-columns: 88px minmax(0, 1fr) 88px minmax(0, 1fr);
  padding: 12px 14px 8px;
}

.result-detail-dialog.is-editing .result-info-list-popup dt,
.result-detail-dialog.is-editing .result-info-list-popup dd {
  min-height: 28px;
  padding: 5px 6px;
}

.result-detail-dialog.is-editing .result-edit-form {
  display: grid !important;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 10px;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  max-height: none !important;
  padding: 0 14px 12px !important;
  overflow: visible !important;
  background: transparent !important;
}

.result-detail-dialog.is-editing .result-edit-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.result-detail-dialog.is-editing .result-edit-form select {
  height: 32px;
  min-height: 32px;
  padding: 5px 9px;
}

.result-detail-dialog.is-editing .result-edit-form textarea {
  height: 44px;
  min-height: 44px;
  max-height: 64px;
  padding: 6px 9px;
}

.result-detail-dialog.is-editing .result-edit-form .employee-form-actions {
  grid-column: 1 / -1;
  padding-top: 2px;
}

/* 2026-05-22 compact production result edit popup */
.result-detail-dialog.is-editing {
  width: min(900px, calc(100vw - 96px)) !important;
  max-height: calc(100vh - 96px) !important;
  padding: 20px 24px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.result-detail-dialog.is-editing > .dialog-head {
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 0 10px !important;
}

.result-detail-dialog.is-editing .result-info-card {
  width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
}

.result-detail-dialog.is-editing .result-info-list-popup {
  grid-template-columns: 104px minmax(0, 1fr) 104px minmax(0, 1fr) !important;
  padding: 12px 14px 10px !important;
}

.result-detail-dialog.is-editing .result-info-list-popup dt,
.result-detail-dialog.is-editing .result-info-list-popup dd {
  min-height: 32px !important;
  padding: 5px 6px !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
}

.result-detail-dialog.is-editing #resultEditForm.compact-result-edit {
  display: grid !important;
  grid-template-columns: 96px minmax(0, 1fr) auto auto !important;
  align-items: end !important;
  gap: 8px 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  padding: 12px 14px 14px !important;
  margin: 0 !important;
  overflow: visible !important;
  background: #fff !important;
  border-top: 1px solid var(--soft-line);
}

.result-detail-dialog.is-editing .compact-result-edit input[type="hidden"] {
  display: none !important;
}

.result-detail-dialog.is-editing .compact-result-edit .result-edit-field {
  display: grid !important;
  gap: 6px !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.result-detail-dialog.is-editing .compact-result-edit .result-edit-field label {
  display: block !important;
  margin: 0 !important;
  color: var(--text) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.result-detail-dialog.is-editing .compact-result-edit .result-edit-status {
  grid-column: 1;
}

.result-detail-dialog.is-editing .compact-result-edit .result-edit-message {
  grid-column: 2;
}

.result-detail-dialog.is-editing .compact-result-edit select,
.result-detail-dialog.is-editing .compact-result-edit textarea {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 36px !important;
  height: 36px !important;
  padding: 7px 10px !important;
  border: 1px solid #d7e0ef !important;
  border-radius: 6px !important;
  font-weight: 800 !important;
}

.result-detail-dialog.is-editing .compact-result-edit textarea {
  resize: none !important;
  overflow-y: auto !important;
}

.result-detail-dialog.is-editing .compact-result-edit .result-edit-actions {
  grid-column: 3 / span 2 !important;
  display: flex !important;
  align-items: end !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  align-self: end !important;
}

.result-detail-dialog.is-editing .compact-result-edit .result-edit-actions button {
  width: auto !important;
  min-width: 70px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 16px !important;
  align-self: end !important;
  white-space: nowrap !important;
}

/* 2026-05-22 system design builder */
.secondary-action,
.row-action,
.danger-action,
.logout-button,
.icon-button,
input,
select,
textarea {
  border-radius: var(--button-radius);
}

.design-builder-layout {
  display: grid;
  grid-template-columns: minmax(520px, 0.95fr) minmax(520px, 1.05fr);
  gap: 16px;
  align-items: start;
}

.design-builder-card,
.design-preview-card {
  overflow: hidden;
}

.design-builder-body {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.design-setting-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.design-setting-section h4 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--navy-900);
  font-size: 15px;
}

.design-setting-field {
  gap: 7px;
}

.design-setting-field span {
  font-size: 13px;
  font-weight: 900;
}

.design-setting-field small {
  min-height: 16px;
  color: var(--muted);
  font-size: 11px;
}

.design-color-control,
.design-range-control {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.design-color-control input[type="color"] {
  min-height: 38px;
  padding: 4px;
}

.design-range-control {
  grid-template-columns: minmax(110px, 1fr) 78px 24px;
}

.design-range-control input[type="range"] {
  padding: 0;
}

.design-range-control b {
  color: var(--muted);
  font-size: 12px;
}

.design-builder-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.design-preview-shell {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 430px;
  background: var(--bg);
}

.design-preview-sidebar {
  padding: 18px 12px;
  background: linear-gradient(180deg, var(--sidebar-bg), #02264e 45%, #021f42);
  color: #fff;
}

.design-preview-logo {
  margin-bottom: 24px;
  text-align: center;
  font-size: 26px;
  font-weight: 900;
}

.design-preview-logo span {
  color: #2d83ff;
}

.design-preview-menu {
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--button-radius);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.design-preview-menu.is-active {
  background: var(--sidebar-active);
  color: #fff;
}

.design-preview-main {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}

.design-preview-topbar {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: #fff;
  font-weight: 900;
}

.design-preview-topbar button {
  min-height: 32px;
  border: 0;
  border-radius: var(--button-radius);
  padding: 0 16px;
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: #fff;
  font-weight: 900;
}

.design-preview-card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.design-preview-card-row div {
  height: 72px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: #fff;
}

.design-preview-table {
  min-width: 0;
  background: #fff;
}

@media (max-width: 1180px) {
  .design-builder-layout {
    grid-template-columns: 1fr;
  }
}

/* 2026-05-22 menu order settings */
.menu-order-card {
  overflow: hidden;
}

.menu-order-groups {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.menu-order-group {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: #fff;
  overflow: hidden;
}

.menu-order-group header,
.menu-order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.menu-order-group header {
  min-height: 44px;
  padding: 0 12px;
  background: #f4f7fb;
  border-bottom: 1px solid var(--soft-line);
}

.menu-order-group header strong {
  color: var(--navy-900);
  font-size: 15px;
}

.menu-order-items {
  display: grid;
}

.menu-order-item {
  min-height: 42px;
  padding: 0 12px 0 24px;
  border-bottom: 1px solid var(--soft-line);
}

.menu-order-item:last-child {
  border-bottom: 0;
}

.menu-order-item > span:first-child::before {
  content: "⋮⋮";
  margin-right: 8px;
  color: #9aa8bc;
  letter-spacing: -2px;
}

.menu-order-group header span,
.menu-order-item span:last-child {
  display: inline-flex;
  gap: 6px;
}

.menu-order-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 16px 16px;
}

/* 2026-05-22 community board */
body.community-active .content {
  padding-top: 0;
}

body.community-active .page-actions {
  display: none;
  min-height: 0;
  margin-bottom: 0;
}

body.community-active .page-actions .action-buttons {
  display: none;
}

body.community-active .module-view {
  gap: 8px;
}

.community-page {
  display: grid;
  gap: 16px;
}

.community-tabs {
  display: flex;
  gap: 26px;
  min-height: 50px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  align-items: end;
  overflow-x: auto;
}

.community-tabs button {
  height: 50px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #12233f;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.community-tabs button.active {
  border-bottom-color: var(--blue-700);
  color: var(--blue-700);
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
  align-items: start;
}

.community-main,
.community-side {
  display: grid;
  gap: 16px;
}

.community-toolbar {
  display: grid;
  grid-template-columns: 150px minmax(260px, 1fr) 88px 104px;
  gap: 10px;
  padding: 14px;
  align-items: center;
}

.community-toolbar select,
.community-toolbar input {
  min-height: 38px;
}

.community-board-card {
  overflow: hidden;
}

.community-board-card .table-scroll {
  min-height: 520px;
  max-height: calc(100vh - 250px);
  overflow: auto;
}

.community-table {
  min-width: 920px;
}

.community-table th:nth-child(1) {
  width: 58px;
}

.community-table th:nth-child(2) {
  width: 118px;
}

.community-table th:nth-child(4) {
  width: 110px;
}

.community-table th:nth-child(5) {
  width: 150px;
}

.community-table th:nth-child(6),
.community-table th:nth-child(7),
.community-table th:nth-child(8) {
  width: 86px;
}

.community-title-cell {
  font-weight: 900;
}

.community-title-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #0b2346;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.community-title-button:hover {
  color: var(--blue-700);
  text-decoration: underline;
}

.community-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 23px;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 900;
  background: #eaf2ff;
  color: #0d57c8;
}

.community-badge + .community-badge {
  margin-left: 5px;
}

.community-badge.red,
.community-badge.urgent {
  background: #ffe7e7;
  color: #e22b2b;
}

.community-badge.green {
  background: #e6f7ec;
  color: #159447;
}

.community-badge.indigo {
  background: #edf0ff;
  color: #3354d6;
}

.community-badge.cyan {
  background: #e8f8fb;
  color: #15859a;
}

.community-badge.purple {
  background: #f0eaff;
  color: #7148d8;
}

.community-badge.gray {
  background: #eef2f7;
  color: #5a6678;
}

.community-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.community-pagination button {
  min-width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy-900);
  font-weight: 900;
}

.community-pagination button.active {
  border-color: var(--blue-700);
  color: var(--blue-700);
  box-shadow: 0 0 0 2px rgba(13, 87, 200, 0.12);
}

.community-side-card {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: #fff;
  overflow: hidden;
}

.community-side-head {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.community-side-head h3 {
  margin: 0;
  color: var(--blue-700);
  font-size: 15px;
}

.community-side-head button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.community-side-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.community-side-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 8px;
  background: #f8fbff;
  color: #0b2346;
  text-align: left;
  cursor: pointer;
}

.community-side-card.important .community-side-item:first-child {
  background: #fff2f2;
}

.community-side-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.community-side-item small {
  color: var(--muted);
  font-size: 11px;
}

.community-side-mark {
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eaf2ff;
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 900;
}

.community-side-mark.red {
  background: #ffe7e7;
  color: #e22b2b;
}

.community-side-mark.green {
  background: #e6f7ec;
  color: #159447;
}

.community-side-mark.indigo {
  background: #edf0ff;
  color: #3354d6;
}

.community-side-mark.cyan {
  background: #e8f8fb;
  color: #15859a;
}

.community-side-mark.purple {
  background: #f0eaff;
  color: #7148d8;
}

.community-empty-note {
  margin: 10px;
  color: var(--muted);
  text-align: center;
}

.community-dialog {
  width: min(1120px, calc(100vw - 64px));
  max-width: min(1120px, calc(100vw - 64px));
}

.community-dialog form {
  min-width: 0;
  max-height: calc(100vh - 64px);
}

.community-write-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  overflow: auto;
}

.community-write-page {
  min-height: calc(100vh - 170px);
}

.community-write-card {
  overflow: hidden;
}

.community-write-head {
  align-items: center;
}

.community-write-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.community-write-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.community-write-page-grid {
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) auto;
  max-height: none;
  overflow: visible;
}

.community-write-page-grid .community-rich-editor {
  min-height: 420px;
  max-height: none;
}

.community-title-input,
.community-content-input {
  grid-column: 1 / -1;
}

.community-urgent-check {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}

.community-urgent-check input {
  width: 16px;
  min-height: 16px;
}

.community-detail-head {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.community-detail-head h2 {
  margin: 0;
  color: var(--navy-900);
  font-size: 22px;
}

.community-detail-head dl {
  display: grid;
  grid-template-columns: repeat(4, auto 1fr);
  gap: 8px 12px;
  margin: 0;
  color: #0b2346;
}

.community-detail-head dt {
  color: var(--muted);
  font-weight: 900;
}

.community-detail-head dd {
  margin: 0;
  font-weight: 900;
}

.community-detail-content {
  min-height: 180px;
  padding: 20px;
  color: #12233f;
  line-height: 1.7;
}

.community-write-grid label,
.community-write-grid section {
  display: grid;
  gap: 8px;
}

.community-write-grid label span,
.community-write-grid section > span {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.community-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  padding: 8px;
  background: #f6f9fd;
}

.community-editor-toolbar button,
.community-editor-toolbar select,
.community-editor-toolbar input[type="color"] {
  min-height: 32px;
  border: 1px solid #d5dfef;
  border-radius: 6px;
  background: #fff;
  color: var(--navy-900);
  font-weight: 900;
}

.community-editor-toolbar button {
  min-width: 42px;
  padding: 0 10px;
  cursor: pointer;
}

.community-editor-toolbar input[type="color"] {
  width: 42px;
  padding: 4px;
}

.community-rich-editor {
  min-height: 320px;
  max-height: min(46vh, 520px);
  overflow: auto;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--card-radius) var(--card-radius);
  padding: 16px;
  background: #fff;
  color: #12233f;
  line-height: 1.7;
  outline: none;
}

.community-rich-editor:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(13, 87, 200, 0.08);
}

.community-rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #91a0b6;
}

.community-rich-editor table,
.community-detail-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.community-rich-editor td,
.community-rich-editor th,
.community-detail-content td,
.community-detail-content th {
  min-width: 80px;
  border: 1px solid var(--line);
  padding: 8px;
  text-align: left;
}

.community-rich-editor th,
.community-detail-content th {
  background: #f1f6ff;
  color: var(--navy-900);
}

.community-rich-editor img,
.community-detail-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.community-file-panel {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 14px;
  background: #f8fbff;
}

.community-file-panel small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.community-file-drop {
  min-width: 150px;
}

.community-file-drop input {
  display: none;
}

.community-file-drop span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue-700);
  border-radius: var(--button-radius);
  padding: 0 16px;
  background: #fff;
  color: var(--blue-700);
  font-weight: 900;
  cursor: pointer;
}

.community-file-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.community-file-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  padding: 7px 10px;
  background: #fff;
  color: #12233f;
}

.community-file-list b {
  color: var(--muted);
  white-space: nowrap;
}

.community-detail-dialog {
  width: min(1180px, calc(100vw - 64px));
  max-width: min(1180px, calc(100vw - 64px));
}

.community-detail-dialog form {
  overflow: hidden;
}

.community-detail-body {
  max-height: calc(100vh - 180px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
}

.community-detail-dialog .community-detail-head {
  padding: 20px 22px;
}

.community-detail-dialog .community-detail-content {
  min-height: 260px;
  padding: 24px;
  word-break: break-word;
}

.community-detail-content a {
  color: var(--blue-700);
  font-weight: 900;
}

.community-attachments {
  border-top: 1px solid var(--line);
  padding: 16px 20px 20px;
  background: #f8fbff;
}

.community-attachments.empty {
  color: var(--muted);
}

.community-attachments h4 {
  margin: 0 0 10px;
  color: var(--navy-900);
}

.community-attachment-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
}

.community-attachment-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: #0b2346;
  font-weight: 900;
  text-decoration: none;
}

.community-attachment-list a:hover {
  border-color: var(--blue-700);
  color: var(--blue-700);
}

/* 2026-05-22 page-level design settings */
#moduleView[data-design-page] {
  gap: var(--page-card-gap, 16px);
}

#moduleView[data-design-page].design-hide-search > .search-panel {
  display: none !important;
}

#moduleView[data-design-page].design-hide-summary > .metric-grid {
  display: none !important;
}

#moduleView[data-design-page].design-hide-detail .detail-grid,
#moduleView[data-design-page].design-hide-detail .work-order-detail-grid,
#moduleView[data-design-page].design-hide-detail .assembly-detail-card,
#moduleView[data-design-page].design-hide-detail .shipment-detail-card {
  display: none !important;
}

#moduleView[data-design-page] .search-panel,
#moduleView[data-design-page] .work-order-search,
#moduleView[data-design-page] .product-match-search,
#moduleView[data-design-page] .process-progress-search,
#moduleView[data-design-page] .production-result-search,
#moduleView[data-design-page] .shipment-filter-card,
#moduleView[data-design-page] .bom-toolbar,
#moduleView[data-design-page] .inbound-filter-card,
#moduleView[data-design-page] .assembly-filter-card,
#moduleView[data-design-page] .community-toolbar {
  min-height: var(--page-search-height, auto);
  gap: var(--page-search-gap, 12px);
}

#moduleView[data-design-page] .search-panel,
#moduleView[data-design-page] .shipment-filter-card,
#moduleView[data-design-page] .bom-toolbar,
#moduleView[data-design-page] .inbound-filter-card,
#moduleView[data-design-page] .community-toolbar {
  grid-template-columns: repeat(var(--page-search-columns, 4), minmax(130px, 1fr));
}

#moduleView[data-design-page] .assembly-filter-row {
  grid-template-columns: repeat(var(--page-search-columns, 4), minmax(130px, 1fr));
}

#moduleView[data-design-page] .assembly-filter-actions {
  display: grid;
  grid-template-columns: repeat(var(--page-search-columns, 4), minmax(130px, 1fr));
  gap: var(--page-search-gap, 12px);
}

#moduleView[data-design-page] .search-panel > label,
#moduleView[data-design-page] .search-panel > button,
#moduleView[data-design-page] .shipment-filter-card > label,
#moduleView[data-design-page] .shipment-filter-card > button,
#moduleView[data-design-page] .bom-toolbar > label,
#moduleView[data-design-page] .bom-toolbar > button,
#moduleView[data-design-page] .inbound-filter-card label,
#moduleView[data-design-page] .inbound-filter-card button,
#moduleView[data-design-page] .assembly-filter-card label,
#moduleView[data-design-page] .assembly-filter-card button,
#moduleView[data-design-page] .community-toolbar > select,
#moduleView[data-design-page] .community-toolbar > input,
#moduleView[data-design-page] .community-toolbar > button {
  grid-row: auto !important;
  grid-column: auto;
  min-height: var(--control-height, auto);
}

#moduleView[data-design-page] .search-panel label,
#moduleView[data-design-page] .search-panel button,
#moduleView[data-design-page] .shipment-filter-card label,
#moduleView[data-design-page] .shipment-filter-card button,
#moduleView[data-design-page] .bom-toolbar label,
#moduleView[data-design-page] .bom-toolbar button,
#moduleView[data-design-page] .inbound-filter-card label,
#moduleView[data-design-page] .inbound-filter-card button,
#moduleView[data-design-page] .assembly-filter-card label,
#moduleView[data-design-page] .assembly-filter-card button,
#moduleView[data-design-page] .community-toolbar > select,
#moduleView[data-design-page] .community-toolbar > input,
#moduleView[data-design-page] .community-toolbar > button {
  min-height: var(--control-input-height, var(--page-search-input-height, 38px));
}

#moduleView[data-design-page] .search-panel input,
#moduleView[data-design-page] .search-panel select,
#moduleView[data-design-page] .search-panel button,
#moduleView[data-design-page] .shipment-filter-card input,
#moduleView[data-design-page] .shipment-filter-card select,
#moduleView[data-design-page] .shipment-filter-card button,
#moduleView[data-design-page] .bom-toolbar input,
#moduleView[data-design-page] .bom-toolbar select,
#moduleView[data-design-page] .bom-toolbar button,
#moduleView[data-design-page] .inbound-filter-card input,
#moduleView[data-design-page] .inbound-filter-card select,
#moduleView[data-design-page] .inbound-filter-card button,
#moduleView[data-design-page] .assembly-filter-card input,
#moduleView[data-design-page] .assembly-filter-card select,
#moduleView[data-design-page] .assembly-filter-card button,
#moduleView[data-design-page] .community-toolbar > select,
#moduleView[data-design-page] .community-toolbar > input,
#moduleView[data-design-page] .community-toolbar > button {
  min-height: var(--control-input-height, var(--page-search-input-height, 38px));
}

#moduleView[data-design-page] > .metric-grid,
#moduleView[data-design-page] > .production-result-metrics,
#moduleView[data-design-page] > .assembly-metrics,
#moduleView[data-design-page] > .shipment-stat-grid {
  grid-template-columns: repeat(var(--page-summary-columns, 5), minmax(140px, 1fr));
}

#moduleView[data-design-page] .metric-card,
#moduleView[data-design-page] .assembly-stat-card,
#moduleView[data-design-page] .shipment-stat-card {
  min-height: var(--page-summary-card-height, 104px);
}

#moduleView[data-design-page] .table-card > .table-scroll {
  max-height: var(--page-list-max-height, 420px);
}

#moduleView[data-design-page] table {
  min-width: var(--page-table-min-width, auto);
}

#moduleView[data-design-page] th {
  background: linear-gradient(180deg, var(--page-table-header-color, var(--table-header-bg)), var(--page-table-header-color, var(--table-header-bg)));
}

#moduleView[data-design-page] th,
#moduleView[data-design-page] td {
  height: var(--page-table-row-height, 35px);
  font-size: var(--page-table-font-size, 12px);
  padding-left: var(--page-table-cell-padding, 8px);
  padding-right: var(--page-table-cell-padding, 8px);
}

#moduleView[data-design-page] .detail-grid,
#moduleView[data-design-page] .work-order-detail-grid,
#moduleView[data-design-page] .assembly-detail-card,
#moduleView[data-design-page] .shipment-detail-card {
  min-height: var(--page-detail-height, auto);
}

/* Expert design runtime overlay */
.expert-runtime-host {
  position: relative;
}

.expert-runtime-layer {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: top left;
  pointer-events: none;
  z-index: 35;
}

.expert-runtime-control {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  line-height: 1.3;
  overflow: hidden;
  pointer-events: auto;
  box-shadow: 0 4px 12px rgba(4, 37, 84, 0.08);
}

.expert-runtime-control button,
.expert-runtime-control input,
.expert-runtime-control select {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: inherit;
}

.expert-runtime-button button,
.expert-runtime-upload button {
  cursor: pointer;
}

.expert-runtime-panel,
.expert-runtime-card {
  background: #ffffff;
}

.expert-runtime-page {
  display: grid;
  gap: 14px;
}

.expert-runtime-page-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.expert-runtime-page-toolbar strong {
  font-size: 16px;
  font-weight: 900;
}

.expert-runtime-page-toolbar button {
  height: 36px;
  padding: 0 14px;
  border: 1px solid #cbd8ea;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.expert-runtime-canvas {
  position: relative;
  overflow: auto;
  border: 1px solid #d5e0f0;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(4, 37, 84, 0.06);
}

.expert-runtime-page-control {
  align-items: stretch;
  justify-content: stretch;
}

.expert-runtime-page-control.expert-runtime-label {
  align-items: center;
}

.expert-runtime-grid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.expert-runtime-grid-head strong,
.expert-runtime-card-title {
  font-size: 14px;
  font-weight: 900;
}

.expert-runtime-grid-scroll {
  height: calc(100% - 30px);
  overflow: auto;
  border: 1px solid var(--soft-line);
  border-radius: 5px;
}

.expert-runtime-grid-scroll table {
  min-width: 640px;
}

.expert-runtime-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  height: calc(100% - 26px);
  margin-top: 8px;
  border: 1px solid var(--soft-line);
  background: #fff;
}

.expert-runtime-calendar-grid span {
  position: relative;
  min-height: 48px;
  padding: 8px;
  border-right: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
  color: #506486;
}

.expert-runtime-calendar-grid em {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 4px 6px;
  border-radius: 5px;
  background: #dbeafe;
  color: #0d57c8;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.record-dialog:not(.lot-dialog):not(.community-dialog) {
  width: min(var(--active-page-dialog-width, 1080px), calc(100vw - 56px));
  max-width: min(var(--active-page-dialog-width, 1080px), calc(100vw - 56px));
}

.record-dialog:not(.lot-dialog):not(.community-dialog) form {
  max-height: min(var(--active-page-dialog-height, 720px), calc(100vh - 56px));
  padding: var(--active-page-dialog-padding, 18px);
}

.design-page-builder {
  display: grid;
  gap: 16px;
}

.design-builder-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.7fr) minmax(180px, 0.8fr) auto auto auto;
  gap: 12px;
  align-items: end;
  padding: 14px 16px;
}

.design-builder-toolbar label,
.page-design-field {
  display: grid;
  gap: 7px;
}

.design-builder-toolbar label span,
.page-design-field > span {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.design-builder-toolbar select {
  min-height: 38px;
}

.design-builder-version {
  display: grid;
  gap: 6px;
}

.design-builder-version span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.design-builder-version strong {
  min-height: 38px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  padding: 0 12px;
  background: #f8fbff;
  color: var(--blue-700);
}

.design-builder-main {
  display: grid;
  grid-template-columns: 280px minmax(520px, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.design-tree-card,
.page-preview-card,
.design-settings-card,
.design-global-card {
  overflow: hidden;
}

.design-tree-list,
.page-design-settings {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.design-tree-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 10px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.design-tree-item span {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #edf4ff;
  color: var(--blue-700);
  font-weight: 900;
}

.design-tree-item strong {
  color: var(--navy-900);
  font-size: 14px;
}

.design-tree-item small {
  color: var(--muted);
  font-size: 12px;
}

.design-tree-item.is-active {
  border-color: var(--blue-700);
  background: #eef5ff;
  box-shadow: inset 4px 0 0 var(--blue-700);
}

.design-hint-box {
  margin: 0 16px 16px;
  border: 1px solid #d7e6ff;
  border-radius: var(--card-radius);
  padding: 12px;
  background: #f5f9ff;
}

.design-hint-box b {
  color: var(--blue-700);
}

.design-hint-box p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.page-design-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 12px;
  background: #fff;
}

.page-design-toggle span {
  display: grid;
  gap: 4px;
}

.page-design-toggle strong {
  color: var(--navy-900);
  font-size: 14px;
}

.page-design-toggle small {
  color: var(--muted);
  font-size: 12px;
}

.page-design-toggle input {
  width: 18px;
  height: 18px;
  min-height: 18px;
}

.page-design-range {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 76px 26px;
  align-items: center;
  gap: 8px;
}

.page-design-range input[type="range"] {
  padding: 0;
}

.page-design-range b {
  color: var(--muted);
  font-size: 12px;
}

.design-global-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.design-global-card .design-builder-actions {
  padding: 0 16px 16px;
}

.page-design-preview {
  display: grid;
  gap: 12px;
  min-height: 500px;
  padding: 16px;
  background: #f5f8fc;
}

.page-preview-topbar,
.page-preview-search,
.page-preview-metrics > div,
.page-preview-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: #fff;
}

.page-preview-topbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

.page-preview-topbar strong {
  color: var(--navy-900);
  font-size: 18px;
}

.page-preview-topbar button,
.page-preview-search button {
  min-height: 32px;
  border: 0;
  border-radius: var(--button-radius);
  padding: 0 16px;
  background: var(--navy-900);
  color: #fff;
  font-weight: 900;
}

.page-preview-search {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 12px;
}

.page-preview-search span {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.page-preview-search i {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  background: #fff;
}

.page-preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.page-preview-metrics > div {
  min-height: 76px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  padding: 10px;
}

.page-preview-metrics span {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e8f1ff;
}

.page-preview-metrics b {
  color: var(--navy-900);
  font-size: 18px;
}

.page-preview-metrics small {
  color: var(--muted);
}

.page-preview-hidden {
  border: 1px dashed #c7d5e8;
  border-radius: var(--card-radius);
  padding: 14px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.page-preview-selectable {
  position: relative;
  cursor: pointer;
  transition: box-shadow 0.16s ease, outline-color 0.16s ease, transform 0.16s ease;
}

.page-preview-selectable:hover {
  outline: 2px dashed rgba(13, 87, 200, 0.35);
  outline-offset: 3px;
}

.page-preview-selectable.is-selected {
  outline: 3px solid rgba(13, 87, 200, 0.75);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(13, 87, 200, 0.08);
}

.page-preview-selectable.is-selected::after {
  content: "선택됨";
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--navy-900);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.page-preview-table-wrap {
  overflow: auto;
}

.page-preview-resize-handle {
  position: sticky;
  bottom: 0;
  left: 0;
  z-index: 3;
  height: 13px;
  margin-top: 6px;
  border-top: 1px dashed rgba(13, 87, 200, 0.28);
  border-bottom: 1px solid rgba(13, 87, 200, 0.2);
  background:
    linear-gradient(90deg, transparent 0, transparent calc(50% - 42px), rgba(13, 87, 200, 0.65) calc(50% - 42px), rgba(13, 87, 200, 0.65) calc(50% + 42px), transparent calc(50% + 42px)),
    #eef5ff;
  cursor: ns-resize;
}

.page-preview-resize-handle::after {
  content: "목록 높이 드래그";
  position: absolute;
  left: 50%;
  top: -24px;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff;
  color: var(--navy-900);
  box-shadow: var(--shadow-soft);
  font-size: 11px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
}

.page-preview-table-wrap.is-selected .page-preview-resize-handle::after,
.page-preview-resize-handle:hover::after,
.is-page-design-resizing .page-preview-resize-handle::after {
  opacity: 1;
}

.is-page-design-resizing {
  cursor: ns-resize;
  user-select: none;
}

.page-preview-direct-note {
  border: 1px solid #cfe0f7;
  border-radius: var(--card-radius);
  padding: 10px 12px;
  background: #f7fbff;
  color: #315074;
  font-size: 12px;
  font-weight: 800;
}

.page-preview-table-wrap table {
  min-width: 620px;
}

.page-preview-table-wrap th {
  background: var(--preview-header-color, var(--table-header-bg));
}

.page-preview-table-wrap th,
.page-preview-table-wrap td {
  height: var(--preview-row-height, 35px);
  font-size: var(--preview-font-size, 12px);
}

.page-preview-table-wrap em {
  display: inline-flex;
  min-width: 48px;
  justify-content: center;
  border-radius: 6px;
  padding: 3px 8px;
  font-style: normal;
  font-weight: 900;
}

.page-preview-table-wrap em.ok {
  background: #d9f8e2;
  color: #0f9b4b;
}

.page-preview-table-wrap em.fail {
  background: #ffe3e3;
  color: #e42d2d;
}

.page-preview-table-wrap em.wait {
  background: #eaf2ff;
  color: #0d57c8;
}

.page-preview-table-wrap button {
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  background: #fff;
  color: var(--navy-900);
  font-weight: 900;
}

.server-transfer-shell {
  display: grid;
  gap: 16px;
}

.server-transfer-card {
  display: grid;
  gap: 16px;
}

.server-transfer-card.is-disabled {
  opacity: 0.62;
}

.server-transfer-warning {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid #ffd9a8;
  border-radius: var(--card-radius);
  background: #fff8ed;
  padding: 14px 16px;
  color: #6b4800;
  font-weight: 800;
}

.server-transfer-warning b {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 8px;
  background: #ffb84d;
  color: #fff;
  font-size: 12px;
}

.server-transfer-lock,
.server-transfer-password-grid {
  display: grid;
  grid-template-columns: minmax(240px, 360px) auto;
  gap: 12px;
  align-items: end;
}

.server-transfer-password-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr)) 150px;
}

.server-transfer-lock label,
.server-transfer-password-grid label {
  display: grid;
  gap: 7px;
  font-weight: 900;
  color: var(--navy-900);
}

.server-transfer-lock input,
.server-transfer-password-grid input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  padding: 0 12px;
  font-weight: 800;
}

.server-transfer-unlocked {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.server-transfer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.server-transfer-actions button {
  min-width: 210px;
}

.server-transfer-note {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #4d6380;
  font-weight: 800;
  line-height: 1.45;
}

.company-info-shell > .server-transfer-shell {
  display: grid;
  gap: 16px;
}

.company-info-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

.company-info-form label {
  display: grid;
  gap: 7px;
  font-weight: 900;
  color: var(--navy-900);
}

.company-info-form input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  padding: 0 12px;
  font-weight: 800;
}

.company-info-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.user-bulk-toolbar,
.bulk-upload-card {
  display: grid;
  gap: 14px;
}

.department-dialog .department-list {
  display: grid;
  gap: 10px;
}

.department-dialog .department-row {
  display: grid;
  grid-template-columns: 1fr 90px 78px;
  gap: 8px;
  align-items: center;
}

.department-dialog input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  padding: 0 10px;
  font-weight: 800;
}

.department-dialog .department-add-row {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 980px) {
  .server-transfer-lock,
  .server-transfer-password-grid {
    grid-template-columns: 1fr;
  }

  .company-info-form {
    grid-template-columns: 1fr;
  }

  .credential-result {
    grid-template-columns: 1fr;
  }
}

/* 2026-05-28 page audit polish: compact filters, stable split tables */
.page-actions {
  min-height: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

.page-actions:has(.action-buttons button:not([hidden])) {
  min-height: 42px !important;
  margin-bottom: 12px !important;
}

.breadcrumb,
.module-breadcrumb,
.page-breadcrumb,
.module-path,
.page-path,
.route-label,
.daily-breadcrumb {
  display: none !important;
}

.module-view > .search-panel,
.module-view > section.search-panel,
.module-view [class*="filter-card"],
.module-view [class*="filter-list"],
.module-view [class*="search-panel"],
.module-view [class*="search-card"],
.module-view [class*="toolbar"].search-panel {
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.module-view > .search-panel,
.module-view [class*="filter-card"],
.module-view [class*="filter-list"],
.module-view [class*="search-panel"] {
  gap: 10px 12px !important;
}

.module-view > .search-panel label,
.module-view [class*="filter-card"] label,
.module-view [class*="filter-list"] label,
.module-view [class*="search-panel"] label {
  min-width: 0 !important;
  max-width: 100% !important;
}

.module-view > .search-panel input,
.module-view > .search-panel select,
.module-view [class*="filter-card"] input,
.module-view [class*="filter-card"] select,
.module-view [class*="filter-list"] input,
.module-view [class*="filter-list"] select,
.module-view [class*="search-panel"] input,
.module-view [class*="search-panel"] select {
  min-width: 0 !important;
  max-width: 100% !important;
}

.module-view > .search-panel > button,
.module-view [class*="filter-card"] > button,
.module-view [class*="filter-list"] > button,
.module-view [class*="search-panel"] > button,
.module-view .filter-actions > button,
.module-view .search-actions > button {
  width: auto !important;
  min-width: 78px !important;
  max-width: 104px !important;
  height: 38px !important;
  padding: 0 14px !important;
  white-space: nowrap !important;
}

.work-order-search,
.process-progress-search,
.product-match-search {
  grid-template-columns:
    minmax(172px, 220px)
    minmax(128px, 164px)
    minmax(148px, 214px)
    minmax(148px, 214px)
    minmax(146px, 198px)
    minmax(78px, 94px)
    minmax(78px, 94px) !important;
}

.production-result-search,
.daily-production-search,
.shipment-filter-list-only {
  grid-template-columns:
    minmax(172px, 220px)
    minmax(128px, 164px)
    minmax(148px, 214px)
    minmax(148px, 214px)
    minmax(146px, 198px)
    minmax(78px, 94px)
    minmax(78px, 94px) !important;
}

.rs-table-enhanced .rs-th-inner {
  justify-content: center !important;
  padding: 0 6px !important;
}

.rs-table-enhanced .rs-th-filter,
.rs-table-enhanced button.rs-th-filter,
.rs-filter-button,
.filter-button,
.column-filter-button {
  cursor: pointer !important;
}

.rs-table-enhanced .rs-th-filter *,
.rs-filter-button *,
.filter-button *,
.column-filter-button * {
  opacity: 0 !important;
}

.rs-polished-table .rs-col-no,
.rs-table-enhanced .rs-col-no,
.rs-polished-table th.rs-col-no,
.rs-polished-table td.rs-col-no,
.rs-table-enhanced th.rs-col-no,
.rs-table-enhanced td.rs-col-no {
  width: 46px !important;
  min-width: 42px !important;
  max-width: 54px !important;
}

.rs-polished-table .rs-col-action,
.rs-table-enhanced .rs-col-action,
.rs-polished-table th.rs-col-action,
.rs-polished-table td.rs-col-action,
.rs-table-enhanced th.rs-col-action,
.rs-table-enhanced td.rs-col-action {
  width: 82px !important;
  min-width: 70px !important;
  max-width: 104px !important;
}

.process-flow-split-card {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.process-flow-split {
  display: grid !important;
  grid-template-columns: 420px minmax(0, 1fr) !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.process-flow-fixed-pane {
  grid-column: 1 !important;
  width: 420px !important;
  min-width: 420px !important;
  max-width: 420px !important;
  overflow: hidden !important;
  flex: none !important;
  box-shadow: 2px 0 0 #d7e0ef !important;
}

.progress-fixed-table {
  width: 420px !important;
  min-width: 420px !important;
  max-width: 420px !important;
  table-layout: fixed !important;
}

.progress-fixed-table .flow-col-product {
  width: 150px !important;
}

.progress-fixed-table .flow-col-work {
  width: 158px !important;
}

.progress-fixed-table .flow-col-rate {
  width: 112px !important;
}

.process-flow-chain-pane {
  grid-column: 2 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  position: relative !important;
}

.progress-chain-table {
  width: max(100%, calc(var(--process-count, 1) * 176px)) !important;
  min-width: max(100%, calc(var(--process-count, 1) * 176px)) !important;
  table-layout: fixed !important;
}

.progress-fixed-table th,
.progress-fixed-table td {
  transform: none !important;
}

@media (max-width: 1320px) {
  .module-view > .search-panel,
  .work-order-search,
  .process-progress-search,
  .product-match-search,
  .production-result-search,
  .daily-production-search,
  .shipment-filter-list-only {
    grid-template-columns: repeat(3, minmax(138px, 1fr)) minmax(78px, 94px) minmax(78px, 94px) !important;
  }
}

@media (max-width: 1380px) {
  .design-builder-main {
    grid-template-columns: 240px minmax(480px, 1fr);
  }

  .design-settings-card {
    grid-column: 1 / -1;
  }

  .design-global-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .design-builder-toolbar,
  .design-builder-main,
  .design-global-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1280px) {
  .community-layout {
    grid-template-columns: 1fr;
  }

  .community-side {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .community-toolbar,
  .community-write-grid,
  .community-side {
    grid-template-columns: 1fr;
  }

  .community-detail-head dl {
    grid-template-columns: auto 1fr;
  }
}

/* Expert design studio */
.expert-studio-body {
  margin: 0;
  overflow: hidden;
  background: #1e1e1e;
  color: #dcdcdc;
  font-family: "Malgun Gothic", "Segoe UI", sans-serif;
}

.expert-studio-app {
  height: 100vh;
  display: grid;
  grid-template-rows: 34px 38px minmax(0, 1fr) 118px;
}

.expert-menu-bar,
.expert-tool-bar {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1f1f1f;
  border-bottom: 1px solid #303030;
  padding: 0 10px;
}

.expert-menu-bar button,
.expert-tool-bar button {
  min-height: 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #e8e8e8;
  font-size: 12px;
  font-weight: 700;
  padding: 0 10px;
}

.expert-menu-bar button:hover,
.expert-tool-bar button:hover {
  border-color: #3f6ea8;
  background: #2b3f5d;
}

.expert-vs-logo {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #7557d7;
  color: #fff;
  font-size: 11px;
  font-weight: 1000;
}

.expert-menu-title {
  flex: 1;
  text-align: center;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.expert-tool-bar {
  background: #252526;
}

.expert-tool-bar span {
  flex: 1;
}

.expert-tool-bar label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #cfcfcf;
  font-size: 12px;
  font-weight: 800;
}

.expert-tool-bar select {
  width: 230px;
  height: 26px;
  border: 1px solid #555;
  background: #2d2d30;
  color: #fff;
}

.expert-tool-bar input[type="range"] {
  width: 120px;
}

.expert-tool-bar .expert-blue-button {
  background: #0e639c;
  border-color: #1177bb;
  color: #fff;
}

.expert-workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 300px;
  background: #1e1e1e;
}

.expert-panel {
  min-height: 0;
  background: #252526;
  border: 1px solid #3c3c3c;
  overflow: auto;
}

.expert-panel-head {
  min-height: 31px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid #3c3c3c;
  background: #2d2d30;
  color: #f1f1f1;
  font-size: 12px;
  font-weight: 900;
}

.expert-toolbox {
  border-left: 0;
}

.expert-search {
  width: calc(100% - 18px);
  height: 28px;
  margin: 8px;
  border: 1px solid #555;
  background: #1e1e1e;
  color: #f1f1f1;
  padding: 0 8px;
}

.expert-tool-list {
  display: grid;
  gap: 2px;
  padding: 0 8px 10px;
}

.expert-tool-item {
  min-height: 30px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  border: 1px solid transparent;
  background: transparent;
  color: #e7e7e7;
  text-align: left;
  cursor: grab;
}

.expert-tool-item:hover {
  border-color: #3f6ea8;
  background: #2b3f5d;
}

.expert-tool-item span {
  color: #6cb6ff;
  text-align: center;
  font-weight: 1000;
}

.expert-center {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 34px minmax(0, 1fr);
  border-left: 1px solid #3c3c3c;
  border-right: 1px solid #3c3c3c;
}

.expert-tabs {
  display: flex;
  align-items: end;
  gap: 2px;
  background: #1e1e1e;
  padding: 0 10px;
}

.expert-tabs button {
  min-width: 118px;
  height: 29px;
  border: 1px solid #3c3c3c;
  border-bottom: 0;
  background: #2d2d30;
  color: #dcdcdc;
  font-weight: 800;
}

.expert-tabs button.is-active {
  background: #1e1e1e;
  color: #fff;
}

.expert-canvas-wrap {
  min-height: 0;
  overflow: auto;
  background: #1e1e1e;
  padding: 24px;
}

.expert-canvas {
  position: relative;
  transform-origin: 0 0;
  box-shadow: 0 0 0 1px #777, 0 16px 42px rgba(0, 0, 0, 0.35);
}

.expert-page-caption {
  position: absolute;
  top: -27px;
  left: 0;
  min-width: 170px;
  height: 26px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #3c3c3c;
  border-bottom: 0;
  background: #1e1e1e;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.expert-control {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid #d7e0ef;
  color: #001b44;
  user-select: none;
  cursor: move;
  overflow: hidden;
  box-sizing: border-box;
}

.expert-control.is-selected {
  outline: 1px dotted #111;
  box-shadow: 0 0 0 2px #6ca8ff;
}

.expert-label {
  border-color: transparent;
  place-items: center start;
  padding: 0 8px;
}

.expert-button {
  border-radius: 4px;
}

.expert-input,
.expert-select {
  justify-items: start;
  padding: 0 12px;
  background: #fff;
}

.expert-select {
  grid-template-columns: minmax(0, 1fr) auto;
}

.expert-select i {
  font-style: normal;
}

.expert-control.expert-panel,
.expert-card {
  align-content: start;
  padding: 14px;
}

.expert-card {
  gap: 6px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(2, 31, 66, 0.08);
}

.expert-card strong {
  font-size: 26px;
}

.expert-table {
  display: block;
  padding: 12px;
}

.expert-table b,
.expert-calendar b {
  display: block;
  margin-bottom: 8px;
  color: #001b44;
}

.expert-table table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
}

.expert-table th {
  height: 30px;
  background: #063f84;
  color: #fff;
}

.expert-table td {
  height: 30px;
  border: 1px solid #e5ecf5;
}

.expert-calendar {
  display: block;
  padding: 12px;
}

.expert-mini-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid #d7e0ef;
  border-left: 1px solid #d7e0ef;
}

.expert-mini-calendar span {
  min-height: 34px;
  border-right: 1px solid #d7e0ef;
  border-bottom: 1px solid #d7e0ef;
  padding: 5px;
}

.expert-resize-handle {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-left: 1px solid #333;
  border-top: 1px solid #333;
  background: #fff;
  cursor: nwse-resize;
}

.expert-right {
  min-height: 0;
  display: grid;
  grid-template-rows: 38% minmax(0, 1fr);
}

.expert-tree {
  padding: 8px;
}

.expert-tree button {
  width: 100%;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: #e6e6e6;
  text-align: left;
  padding: 0 8px;
  font-size: 12px;
}

.expert-tree button.is-active,
.expert-tree button:hover {
  background: #094771;
}

.expert-property-grid {
  padding: 8px;
}

.expert-property-title {
  margin-bottom: 8px;
  color: #fff;
  font-weight: 1000;
}

.expert-property-row {
  min-height: 31px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid #333;
  color: #dcdcdc;
  font-size: 12px;
}

.expert-property-row input {
  height: 24px;
  border: 1px solid #555;
  background: #1e1e1e;
  color: #fff;
  padding: 0 7px;
}

.expert-prop-quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 8px;
}

.expert-property-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.expert-property-actions button {
  min-height: 30px;
  border: 1px solid #555;
  background: #2d2d30;
  color: #fff;
}

.expert-property-help {
  margin: 12px 0 0;
  color: #bdbdbd;
  font-size: 12px;
  line-height: 1.6;
}

.expert-output {
  min-height: 0;
  display: grid;
  grid-template-rows: 28px minmax(0, 1fr);
  border-top: 1px solid #3c3c3c;
  background: #1e1e1e;
}

.expert-output-tabs {
  display: flex;
  align-items: end;
  gap: 2px;
  padding-left: 230px;
}

.expert-output-tabs button {
  height: 26px;
  border: 1px solid #3c3c3c;
  border-bottom: 0;
  background: #252526;
  color: #dcdcdc;
}

.expert-output-tabs button.is-active {
  background: #1e1e1e;
  color: #fff;
}

.expert-output pre {
  margin: 0;
  overflow: auto;
  padding: 10px;
  color: #dcdcdc;
  font-family: Consolas, monospace;
  font-size: 12px;
}

/* 2026-05-25 Expert Design Studio v2 */
.eds-body {
  margin: 0;
  min-width: 1440px;
  min-height: 100vh;
  overflow: hidden;
  background: #08111f;
  color: #d8e6ff;
  font-family: "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
}

.eds-body.eds-light {
  background: #eef3fb;
  color: #132443;
}

.eds-shell {
  height: 100vh;
  display: grid;
  grid-template-rows: 54px 54px minmax(0, 1fr) 150px 28px;
  background: linear-gradient(180deg, #0d1a2d 0%, #07111f 100%);
}

.eds-titlebar,
.eds-ribbon,
.eds-statusbar {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #1f314d;
  background: #0c1628;
}

.eds-titlebar {
  gap: 18px;
  padding: 0 14px;
}

.eds-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 170px;
  min-width: 170px;
}

.eds-brand strong {
  color: #fff;
  font-size: 24px;
  letter-spacing: 0;
}

.eds-brand span {
  color: #9db2d7;
  font-size: 11px;
  line-height: 1.2;
}

.eds-main-menu {
  display: flex;
  gap: 4px;
  flex: 1;
}

.eds-main-menu button,
.eds-title-actions button,
.eds-title-actions select,
.eds-ribbon button,
.eds-ribbon select {
  height: 34px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #dbe8ff;
  font-weight: 700;
}

.eds-main-menu button {
  padding: 0 10px;
}

.eds-main-menu button:hover,
.eds-ribbon button:hover,
.eds-title-actions button:hover,
.eds-title-actions select:hover {
  border-color: #2c4f83;
  background: #142640;
}

.eds-title-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eds-primary,
.eds-title-actions .eds-primary {
  border-color: #1c6dff !important;
  background: #1268f3 !important;
  color: #fff !important;
}

.eds-ribbon {
  gap: 12px;
  padding: 7px 12px;
  overflow: hidden;
}

.eds-ribbon-group {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #203a61;
  border-radius: 7px;
  background: #0f1d33;
}

.eds-ribbon-group button {
  min-width: 34px;
  padding: 0 8px;
}

.eds-ribbon-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #dbe8ff;
  font-size: 12px;
  font-weight: 800;
}

.eds-switch input {
  display: none;
}

.eds-switch span {
  position: relative;
  width: 36px;
  height: 20px;
  display: inline-block;
  border-radius: 99px;
  background: #273850;
}

.eds-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #b8c8e6;
  transition: left .15s ease;
}

.eds-switch input:checked + span {
  background: #1268f3;
}

.eds-switch input:checked + span::after {
  left: 19px;
  background: #fff;
}

.eds-zoom-group {
  margin-left: auto;
}

.eds-zoom-group .is-active {
  border-color: #2f83ff;
  background: #122f5e;
}

.eds-workbench {
  min-height: 0;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 330px;
  gap: 8px;
  padding: 8px;
}

.eds-left,
.eds-right {
  min-height: 0;
  display: grid;
  gap: 8px;
}

.eds-left {
  grid-template-rows: minmax(260px, 1fr) 280px;
}

.eds-right {
  grid-template-rows: minmax(0, 1fr) 230px;
}

.eds-panel,
.eds-center,
.eds-output-panel,
.eds-data-panel {
  min-height: 0;
  border: 1px solid #213656;
  border-radius: 7px;
  background: #0d182b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.eds-panel-head {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-bottom: 1px solid #223856;
  color: #eef5ff;
  font-size: 13px;
}

.eds-panel-head button {
  height: 24px;
  border: 0;
  background: transparent;
  color: #adc1e0;
}

.eds-search {
  width: calc(100% - 20px);
  height: 30px;
  margin: 10px;
  padding: 0 10px;
  border: 1px solid #253d61;
  border-radius: 5px;
  background: #0b1424;
  color: #dbe8ff;
  outline: none;
}

.eds-tool-groups {
  height: calc(100% - 86px);
  overflow: auto;
  padding: 0 8px 10px;
}

.eds-tool-groups details {
  margin-bottom: 8px;
}

.eds-tool-groups summary {
  cursor: pointer;
  color: #cad9f2;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 2px;
}

.eds-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.eds-tool,
.eds-component-library button {
  height: 62px;
  border: 1px solid #203756;
  border-radius: 6px;
  background: #111f36;
  color: #dce9ff;
  cursor: grab;
  font-size: 11px;
  display: grid;
  place-items: center;
  gap: 2px;
}

.eds-tool span,
.eds-component-library span {
  color: #91baff;
  font-size: 17px;
  font-weight: 900;
}

.eds-tool:hover,
.eds-component-library button:hover {
  border-color: #2b76ff;
  background: #102a50;
}

.eds-center {
  display: grid;
  grid-template-rows: 38px 38px minmax(0, 1fr);
  overflow: hidden;
}

.eds-page-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 5px 6px 0;
  border-bottom: 1px solid #223856;
}

.eds-page-tabs button {
  height: 33px;
  min-width: 120px;
  padding: 0 12px;
  border: 1px solid #213856;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: #0a1425;
  color: #c9d7ef;
  font-weight: 800;
}

.eds-page-tabs button.is-active {
  background: #0752b8;
  color: #fff;
}

.eds-page-tabs span {
  margin-left: 10px;
  color: #9eb0ce;
}

.eds-mode-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 26px;
  background: #101d31;
}

.eds-mode-tabs button {
  height: 28px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #d4e2f8;
  font-weight: 900;
  padding: 0 16px;
}

.eds-mode-tabs button.is-active {
  background: #1165dd;
  color: #fff;
}

.eds-designer-frame {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #121b2b;
  overflow: hidden;
}

.eds-ruler {
  position: absolute;
  z-index: 4;
  background: #101827;
  color: #8fa5c7;
  font-size: 10px;
  pointer-events: none;
}

.eds-ruler-x {
  left: 32px;
  top: 0;
  height: 24px;
  border-bottom: 1px solid #243650;
}

.eds-ruler-y {
  left: 0;
  top: 24px;
  width: 32px;
  border-right: 1px solid #243650;
}

.eds-ruler span {
  position: absolute;
  padding: 3px;
}

.eds-ruler-y span {
  transform: rotate(-90deg);
  transform-origin: left top;
}

.eds-canvas-wrap {
  position: absolute;
  inset: 24px 0 0 32px;
  overflow: auto;
  padding: 24px;
}

.eds-canvas {
  position: relative;
  transform-origin: top left;
  border: 1px solid #4c5d75;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

.eds-canvas.show-grid {
  background-image:
    linear-gradient(rgba(23, 104, 245, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 104, 245, .12) 1px, transparent 1px);
  background-size: var(--eds-grid, 10px) var(--eds-grid, 10px);
}

.eds-code-view {
  min-width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 18px;
  overflow: auto;
  background: #07111f;
  color: #cbe2ff;
  font-family: Consolas, monospace;
  font-size: 13px;
}

.eds-control {
  position: absolute;
  border: 1px solid;
  box-sizing: border-box;
  user-select: none;
  overflow: hidden;
  cursor: move;
}

.eds-control.is-selected {
  outline: 2px solid #2786ff;
  outline-offset: 0;
}

.eds-control.is-locked {
  cursor: not-allowed;
}

.eds-control.is-locked::before {
  content: "LOCK";
  position: absolute;
  right: 4px;
  top: 4px;
  z-index: 2;
  padding: 2px 4px;
  border-radius: 3px;
  background: #233852;
  color: #fff;
  font-size: 9px;
}

.eds-resize {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid #fff;
  background: #2786ff;
  display: none;
}

.eds-control.is-selected .eds-resize {
  display: block;
}

.eds-resize.nw { left: -5px; top: -5px; cursor: nwse-resize; }
.eds-resize.ne { right: -5px; top: -5px; cursor: nesw-resize; }
.eds-resize.sw { left: -5px; bottom: -5px; cursor: nesw-resize; }
.eds-resize.se { right: -5px; bottom: -5px; cursor: nwse-resize; }

.eds-move-tag {
  position: absolute;
  left: 50%;
  top: -34px;
  transform: translateX(-50%);
  display: none;
  padding: 6px 12px;
  border-radius: 6px;
  background: #192844;
  color: #fff;
  box-shadow: 0 5px 20px rgba(0,0,0,.25);
}

.eds-control.is-selected .eds-move-tag {
  display: inline-flex;
}

.eds-control-label {
  border: 0;
}

.eds-control-button,
.eds-control-upload,
.eds-control-badge {
  display: grid !important;
  place-items: center;
}

.eds-control-textbox,
.eds-control-combobox {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eds-control-checkbox,
.eds-control-radio {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eds-control-checkbox i,
.eds-control-radio i {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #9cb5d8;
  border-radius: 3px;
}

.eds-control-radio i {
  border-radius: 50%;
}

.eds-control-card span,
.eds-summary-preview article i {
  width: 34px;
  height: 34px;
  display: inline-block;
  border-radius: 50%;
  background: #e7f0ff;
}

.eds-control-card strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
}

.eds-control-datagrid b,
.eds-control-calendar b,
.eds-control-searchbar b,
.eds-control-summary b,
.eds-control-chart b {
  display: block;
  margin-bottom: 8px;
  text-align: left;
}

.eds-control-datagrid table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.eds-control-datagrid th {
  padding: 7px;
  background: #074b96;
  color: #fff;
}

.eds-control-datagrid td {
  padding: 7px;
  border: 1px solid #e1e8f2;
}

.eds-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  height: calc(100% - 30px);
  border: 1px solid #d8e2ef;
}

.eds-calendar-grid span {
  position: relative;
  padding: 8px;
  border: 1px solid #e4ebf4;
  color: #607898;
  text-align: left;
}

.eds-calendar-grid em {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 3px 5px;
  border-radius: 4px;
  background: #dfeaff;
  color: #0752b8;
  font-style: normal;
  font-size: 10px;
}

.eds-search-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 90px;
  gap: 10px;
}

.eds-search-preview label {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.eds-search-preview i {
  padding: 9px 10px;
  border: 1px solid #d7e0ef;
  border-radius: 5px;
  background: #fff;
  font-style: normal;
}

.eds-search-preview button {
  border: 0;
  border-radius: 5px;
  background: #063f84;
  color: #fff;
  font-weight: 900;
}

.eds-summary-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.eds-summary-preview article {
  padding: 12px;
  border: 1px solid #d9e4f2;
  border-radius: 7px;
}

.eds-summary-preview span {
  display: block;
  margin-top: 6px;
  color: #607898;
}

.eds-summary-preview strong {
  display: block;
  margin-top: 4px;
  font-size: 23px;
}

.eds-control-detail dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px;
  text-align: left;
}

.eds-popup-sample {
  height: calc(100% - 44px);
  display: grid;
  place-items: center;
  border: 1px dashed #b8c9e5;
  border-radius: 8px;
}

.eds-chart-bars {
  height: calc(100% - 30px);
  display: flex;
  align-items: end;
  gap: 16px;
}

.eds-chart-bars span {
  width: 42px;
  border-radius: 6px 6px 0 0;
  background: #1c6dff;
}

.eds-chart-bars span:nth-child(1) { height: 42%; }
.eds-chart-bars span:nth-child(2) { height: 70%; }
.eds-chart-bars span:nth-child(3) { height: 54%; }
.eds-chart-bars span:nth-child(4) { height: 86%; }

.eds-image-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  border: 1px dashed #a9bddb;
  background: #f4f7fb;
  color: #7e91ad;
}

.eds-control-tab {
  display: flex;
  align-items: start;
  gap: 3px;
  padding: 8px !important;
}

.eds-control-tab b {
  padding: 8px 14px;
  border: 1px solid #cbd8e8;
  border-radius: 5px 5px 0 0;
  background: #fff;
}

.eds-control-tab b.is-active {
  background: #0d57c8;
  color: #fff;
}

.eds-control-tree {
  height: calc(100% - 36px);
  overflow: auto;
  padding: 8px;
}

.eds-control-tree button {
  width: 100%;
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #dce8ff;
  text-align: left;
  font-size: 12px;
}

.eds-control-tree button:hover,
.eds-control-tree button.is-active {
  background: #11396d;
}

.eds-prop-panel {
  display: grid;
  grid-template-rows: 36px 42px 38px minmax(0, 1fr);
}

.eds-property-tabs {
  display: flex;
  gap: 2px;
  padding: 5px 8px;
  border-bottom: 1px solid #223856;
}

.eds-property-tabs button {
  flex: 1;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #c8d7ef;
  font-weight: 800;
}

.eds-property-tabs button.is-active {
  background: #1268f3;
  color: #fff;
}

.eds-properties {
  overflow: auto;
  padding: 10px;
}

.eds-property-row {
  min-height: 32px;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #dbe7fa;
  font-size: 12px;
}

.eds-property-row.is-wide {
  grid-template-columns: 1fr;
}

.eds-property-row input,
.eds-property-row select,
.eds-property-row textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid #284365;
  border-radius: 4px;
  background: #0a1424;
  color: #f4f8ff;
  padding: 7px 8px;
  box-sizing: border-box;
}

.eds-property-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.eds-property-row textarea {
  height: 72px;
  resize: vertical;
}

.eds-preview-panel {
  overflow: hidden;
}

.eds-mini-preview {
  height: calc(100% - 36px);
  overflow: hidden;
  padding: 10px;
  background: #08111f;
}

.eds-mini-canvas {
  position: relative;
  transform-origin: top left;
  border: 1px solid #35537d;
}

.eds-mini-canvas span {
  position: absolute;
  display: block;
  border: 1px solid #277cff;
  background: rgba(39,124,255,.15);
}

.eds-bottom {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 8px;
  padding: 0 8px 8px;
}

.eds-output-panel,
.eds-data-panel {
  overflow: hidden;
}

.eds-output-tabs {
  height: 36px;
  display: flex;
  gap: 4px;
  align-items: end;
  padding: 0 10px;
  border-bottom: 1px solid #223856;
}

.eds-output-tabs button {
  height: 28px;
  border: 1px solid #223856;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  background: #111f36;
  color: #d8e5ff;
}

.eds-output-tabs button.is-active {
  background: #1268f3;
}

.eds-component-library {
  height: calc(100% - 36px);
  display: grid;
  grid-template-columns: repeat(9, minmax(80px, 1fr));
  gap: 8px;
  padding: 10px;
  overflow: auto;
}

.eds-data-panel {
  display: grid;
  grid-template-rows: 36px minmax(0, 1fr);
}

.eds-data-binding {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px;
  overflow: auto;
}

.eds-data-binding label {
  display: grid;
  gap: 6px;
  color: #dce8ff;
  font-size: 12px;
  font-weight: 800;
}

.eds-data-binding select {
  min-height: 34px;
  border: 1px solid #284365;
  border-radius: 4px;
  background: #0a1424;
  color: #fff;
}

.eds-data-binding select[multiple] {
  height: 72px;
}

.eds-data-binding button {
  height: 36px;
  border: 1px solid #2b76ff;
  border-radius: 5px;
  background: #103a72;
  color: #fff;
  font-weight: 900;
}

.eds-statusbar {
  gap: 28px;
  padding: 0 12px;
  border-top: 1px solid #1f314d;
  border-bottom: 0;
  color: #b6c8e7;
  font-size: 12px;
}

.eds-statusbar span:first-child::before {
  content: "";
  width: 11px;
  height: 11px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
  background: #1ec778;
}

.eds-light .eds-shell,
.eds-light .eds-titlebar,
.eds-light .eds-ribbon,
.eds-light .eds-statusbar {
  background: #edf3fb;
  color: #10223f;
}

/* 2026-05-25 full-page QA fixes */
.lot-preview-card .table-scroll {
  overflow-x: hidden;
}

.lot-preview-card table {
  min-width: 0 !important;
  table-layout: fixed;
}

.lot-preview-card th:nth-child(1),
.lot-preview-card td:nth-child(1) {
  width: 48px;
}

.work-order-card table {
  min-width: 1120px;
}

.work-order-card th:nth-child(1),
.work-order-card td:nth-child(1),
.work-order-barcode-table th:nth-child(1),
.work-order-barcode-table td:nth-child(1),
#workOrderProcessHistory table th:nth-child(1),
#workOrderProcessHistory table td:nth-child(1) {
  width: 48px;
  max-width: 48px;
}

.work-order-row {
  cursor: pointer;
}

.work-order-row:hover td,
.work-order-row.is-selected td {
  background: #eaf2ff;
}

.work-order-detail-grid table {
  min-width: 0 !important;
  table-layout: fixed;
}

.work-order-barcode-table th:nth-child(2),
.work-order-barcode-table td:nth-child(2),
.work-order-barcode-table th:nth-child(3),
.work-order-barcode-table td:nth-child(3) {
  width: calc((100% - 48px) / 2);
}

#workOrderProcessHistory table th:nth-child(2),
#workOrderProcessHistory table td:nth-child(2) {
  width: 92px;
}

#workOrderProcessHistory table th:nth-child(4),
#workOrderProcessHistory table td:nth-child(4),
#workOrderProcessHistory table th:nth-child(6),
#workOrderProcessHistory table td:nth-child(6) {
  width: 88px;
}

#workOrderProcessHistory table th:nth-child(5),
#workOrderProcessHistory table td:nth-child(5) {
  width: 150px;
}

.compact-progress-table .flow-col-rate {
  width: 108px !important;
}

.compact-progress-table th:nth-child(3),
.compact-progress-table td:nth-child(3) {
  width: 108px !important;
  max-width: 108px !important;
}

.compact-progress-table td:nth-child(3) {
  padding: 0 8px !important;
}

.compact-progress-table td:nth-child(4) {
  min-width: calc(var(--process-count, 6) * 176px) !important;
  max-width: calc(var(--process-count, 6) * 176px) !important;
}

.compact-progress-table .mini-progress {
  width: 54px !important;
}

.process-barcode-dialog {
  width: min(1120px, calc(100vw - 40px)) !important;
  max-width: 1120px !important;
}

.process-barcode-dialog form {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  overflow-x: hidden !important;
  padding: 20px 22px !important;
}

.process-flow-split-card {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.process-flow-split {
  display: grid;
  grid-template-columns: 356px minmax(0, 1fr);
  align-items: start;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: #fff;
}

.process-flow-fixed-pane {
  position: relative;
  z-index: 3;
  width: 356px;
  min-width: 356px;
  overflow: hidden;
  background: #fff;
  box-shadow: 2px 0 0 #d7e0ef;
}

.process-flow-chain-pane {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  background: #fff;
  overscroll-behavior-x: contain;
}

.progress-fixed-table,
.progress-chain-table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.progress-fixed-table {
  width: 356px;
  min-width: 356px;
}

.progress-chain-table {
  width: max(100%, calc(var(--process-count, 1) * 176px));
  min-width: max(100%, calc(var(--process-count, 1) * 176px));
}

.progress-fixed-table .flow-col-product {
  width: 132px;
}

.progress-fixed-table .flow-col-work {
  width: 116px;
}

.progress-fixed-table .flow-col-rate {
  width: 108px;
}

.progress-fixed-table th,
.progress-fixed-table td,
.progress-chain-table th,
.progress-chain-table td {
  height: 68px;
  border-right: 1px solid #e3e9f2;
  border-bottom: 1px solid #e3e9f2;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.progress-fixed-table tbody tr,
.progress-chain-table tbody tr {
  height: 68px;
}

.progress-fixed-table th {
  height: 40px;
  background: #f8fbff;
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 900;
}

.progress-chain-table th {
  height: 40px;
  background: linear-gradient(180deg, #185fa8, #064486);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.progress-fixed-table td {
  padding: 0 8px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-fixed-table td:nth-child(3) {
  overflow: visible;
  text-overflow: clip;
}

.progress-chain-table td {
  padding: 8px 14px;
  background: #fff;
}

.progress-chain-table .process-flow-chain {
  min-width: max-content;
}

.process-flow-split .mini-progress {
  width: 54px;
  margin-right: 5px;
}

.process-flow-split .process-flow-step {
  width: 148px;
  min-width: 148px;
  min-height: 54px;
}

.process-flow-split .process-flow-step b,
.process-flow-split .process-flow-step small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.process-popup-grid {
  padding: 14px 16px 18px;
  overflow-x: hidden !important;
}

.process-popup-summary {
  gap: 8px 16px;
  padding: 12px 16px;
}

.process-popup-summary span {
  white-space: nowrap;
}

.process-popup-scroll {
  overflow-x: hidden !important;
}

.process-popup-scroll table {
  min-width: 0 !important;
  width: 100% !important;
  table-layout: fixed;
}

.process-popup-scroll th,
.process-popup-scroll td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.process-popup-scroll th:nth-child(1),
.process-popup-scroll td:nth-child(1) {
  width: 48px !important;
}

.process-popup-scroll th:nth-child(2),
.process-popup-scroll td:nth-child(2),
.process-popup-scroll th:nth-child(3),
.process-popup-scroll td:nth-child(3) {
  width: 26%;
}

.process-popup-scroll th:nth-child(4),
.process-popup-scroll td:nth-child(4) {
  width: 156px !important;
}

.process-popup-scroll th:nth-child(5),
.process-popup-scroll td:nth-child(5) {
  width: 92px !important;
}

.bom-toolbar,
.bom-toolbar.search-panel {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 320px) !important;
  align-items: stretch !important;
  overflow: visible !important;
}

.bom-filter-stack,
.bom-filter-row,
.bom-filter-row > * {
  min-width: 0;
}

.bom-filter-row {
  grid-template-columns: minmax(170px, 230px) minmax(220px, 300px) minmax(150px, 190px) 76px 86px 106px !important;
  align-items: center !important;
}

.bom-calc-box {
  position: static !important;
  min-height: 96px;
  align-self: stretch !important;
  justify-self: stretch !important;
}

.bom-calc-box label {
  grid-template-columns: auto minmax(78px, 1fr);
}

.bom-calc-box input {
  min-width: 0;
}

.shipment-dialog {
  width: min(1320px, calc(100vw - 40px)) !important;
  max-width: calc(100vw - 40px) !important;
}

.shipment-dialog form {
  width: 100% !important;
  min-width: 0 !important;
  max-height: calc(100vh - 40px) !important;
}

.shipment-dialog .shipment-form-card {
  max-height: calc(100vh - 122px);
  overflow-x: hidden;
  overflow-y: auto;
}

.shipment-form-grid {
  grid-template-columns: 170px minmax(230px, 1fr) 130px 130px;
}

.shipment-line-builder {
  grid-template-columns: minmax(220px, 0.85fr) 76px minmax(320px, 1.35fr) 104px;
}

.shipment-line-scroll .shipment-small-table {
  min-width: 0 !important;
  width: 100% !important;
  table-layout: fixed;
}

.shipment-line-edit-table input,
.shipment-line-edit-table textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy-900);
  background: #fff;
  font-weight: 800;
}

.shipment-line-edit-table input {
  height: 34px;
  padding: 0 8px;
  text-align: right;
}

.shipment-line-edit-table textarea {
  height: 54px;
  padding: 8px;
  resize: vertical;
}

.shipment-line-edit-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 900;
  text-align: right;
}

.shipment-line-edit-table th:nth-child(1),
.shipment-line-edit-table td:nth-child(1) {
  width: 52px;
}

.shipment-line-edit-table th:nth-child(2),
.shipment-line-edit-table td:nth-child(2) {
  width: 150px;
}

.shipment-line-edit-table th:nth-child(4),
.shipment-line-edit-table td:nth-child(4) {
  width: 92px;
}

.shipment-line-edit-table th:nth-child(5),
.shipment-line-edit-table td:nth-child(5) {
  width: 260px;
}

.shipment-line-edit-table th:nth-child(6),
.shipment-line-edit-table td:nth-child(6) {
  width: 78px;
}

@media (max-width: 1440px) {
  .bom-toolbar,
  .bom-toolbar.search-panel {
    grid-template-columns: 1fr !important;
  }

  .bom-filter-row {
    grid-template-columns: repeat(3, minmax(150px, 1fr)) 76px 86px 106px !important;
  }

  .bom-calc-box {
    width: min(320px, 100%);
    justify-self: start !important;
  }
}

@media (max-width: 980px) {
  .bom-filter-row {
    grid-template-columns: 1fr 1fr !important;
  }

  .bom-filter-row .dark-action,
  .bom-filter-row .secondary-action {
    width: 100%;
  }
}

/* 2026-05-25 system page layout polish */
.customer-layout,
.customer-product-layout {
  align-items: start;
}

.customer-layout {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 480px);
  grid-template-areas:
    "bulk table"
    "form table";
}

.customer-product-layout {
  grid-template-columns: minmax(0, 1fr) minmax(460px, 520px);
  grid-template-areas:
    "search search"
    "bulk table"
    "form table";
}

.customer-product-layout > .customer-product-search {
  grid-area: search;
}

.customer-layout > .bulk-upload-card,
.customer-product-layout > .bulk-upload-card {
  grid-area: bulk;
}

.customer-layout > .table-card:not(.bulk-upload-card),
.customer-product-layout > .table-card:not(.bulk-upload-card) {
  grid-area: table;
}

.customer-layout > .customer-form-card,
.customer-product-layout > .customer-form-card {
  grid-area: form;
}

.customer-layout > .bulk-upload-card,
.customer-product-layout > .bulk-upload-card {
  align-self: start;
  min-height: 0;
  padding: 12px 14px;
}

.bulk-upload-card .employee-form-actions {
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

.bulk-upload-card button {
  width: auto;
  min-width: 148px;
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

.customer-product-search {
  grid-template-columns: minmax(260px, 420px) 96px;
}

.customer-product-search .dark-action,
.product-process-layout .customer-product-search .dark-action {
  width: 96px;
  min-width: 96px;
}

.customer-layout .table-card table {
  min-width: 560px;
}

.customer-product-layout .table-card table {
  min-width: 760px;
}

.process-editor-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: start;
}

.process-editor-grid table {
  min-width: 620px;
}

.process-form .employee-form-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.process-form .employee-form-actions button {
  width: auto;
  min-width: 74px;
  min-height: 36px;
  padding: 0 12px;
  white-space: nowrap;
}

.process-form .pp-process-clear-all {
  min-width: 84px;
}

.process-master-layout table {
  min-width: 680px;
}

@media (max-width: 1200px) {
  .customer-layout {
    grid-template-areas:
      "bulk"
      "table"
      "form";
  }

  .customer-product-layout {
    grid-template-areas:
      "search"
      "bulk"
      "table"
      "form";
  }
}

/* Expert Design Studio v2 */
.eds-body {
  margin: 0;
  min-width: 1280px;
  height: 100vh;
  overflow: hidden;
  color: #d9e7ff;
  background: #070c15;
  font-family: "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
}

.eds-body * {
  box-sizing: border-box;
}

.eds-body button,
.eds-body input,
.eds-body select,
.eds-body textarea {
  font: inherit;
}

.eds-shell {
  display: grid;
  grid-template-rows: 54px 56px minmax(0, 1fr) 156px 26px;
  height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(26, 98, 210, 0.22), transparent 32%),
    linear-gradient(180deg, #101928 0%, #07101e 100%);
}

.eds-titlebar {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  border-bottom: 1px solid #24314a;
  background: #0b1422;
}

.eds-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.eds-brand strong {
  color: #ffffff;
  font-size: 25px;
  letter-spacing: 0;
}

.eds-brand span {
  color: #9eb4d9;
  font-size: 11px;
  line-height: 1.1;
}

.eds-main-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.eds-main-menu button,
.eds-title-actions button,
.eds-ribbon button,
.eds-ribbon select,
.eds-output-tabs button,
.eds-mode-tabs button,
.eds-page-tabs button,
.eds-property-tabs button,
.eds-tree-panel button,
.eds-tool,
.eds-component-library button {
  border: 1px solid #2b3a56;
  color: #e6f0ff;
  background: #121c2d;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.eds-main-menu button {
  padding: 8px 10px;
  border-color: transparent;
  background: transparent;
}

.eds-main-menu button:hover,
.eds-title-actions button:hover,
.eds-ribbon button:hover,
.eds-output-tabs button:hover,
.eds-mode-tabs button:hover,
.eds-page-tabs button:hover,
.eds-property-tabs button:hover,
.eds-tree-panel button:hover,
.eds-tool:hover,
.eds-component-library button:hover {
  border-color: #3d86ff;
  background: #172944;
}

.eds-title-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eds-title-actions button,
.eds-title-actions select {
  height: 36px;
  padding: 0 12px;
}

.eds-title-actions select,
.eds-ribbon select,
.eds-properties input,
.eds-properties select,
.eds-properties textarea,
.eds-search input {
  border: 1px solid #2b3a56;
  color: #e8f1ff;
  background: #0c1524;
  border-radius: 6px;
  outline: none;
}

.eds-title-actions .eds-primary,
.eds-ribbon .is-active,
.eds-mode-tabs .is-active,
.eds-page-tabs .is-active,
.eds-property-tabs .is-active {
  border-color: #2c82ff;
  background: #0d63d6;
  color: #ffffff;
}

.eds-ribbon {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #24314a;
  background: #0d1728;
}

.eds-ribbon-group,
.eds-zoom-group {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid #293955;
  border-radius: 8px;
  background: #101d31;
}

.eds-ribbon button {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  font-size: 13px;
}

.eds-ribbon select {
  height: 34px;
  padding: 0 8px;
}

.eds-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d5e3fb;
  font-size: 12px;
  user-select: none;
}

.eds-switch input {
  width: 34px;
  height: 18px;
  appearance: none;
  border: 1px solid #375177;
  border-radius: 999px;
  background: #17263d;
  position: relative;
  cursor: pointer;
}

.eds-switch input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #90a3bf;
  transition: left 0.12s ease, background 0.12s ease;
}

.eds-switch input:checked {
  background: #0d63d6;
}

.eds-switch input:checked::after {
  left: 18px;
  background: #ffffff;
}

.eds-workbench {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr) 330px;
  gap: 10px;
  min-height: 0;
  padding: 10px;
}

.eds-panel,
.eds-center,
.eds-bottom {
  border: 1px solid #243653;
  background: #0d1728;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.eds-left,
.eds-right {
  display: grid;
  grid-template-rows: minmax(0, 1.2fr) minmax(170px, 0.8fr);
  gap: 10px;
  min-height: 0;
}

.eds-right {
  grid-template-rows: minmax(0, 1fr) 166px;
}

.eds-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.eds-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-bottom: 1px solid #233650;
  color: #ffffff;
  font-weight: 900;
}

.eds-search {
  padding: 10px 10px 8px;
}

.eds-search input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
}

.eds-tool-groups,
.eds-control-tree,
.eds-properties,
.eds-preview-panel {
  min-height: 0;
  overflow: auto;
  padding: 10px;
}

.eds-toolbox details {
  border-top: 1px solid #1f314c;
  padding: 8px 0;
}

.eds-toolbox summary {
  color: #d7e7ff;
  cursor: pointer;
  font-weight: 800;
}

.eds-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding-top: 8px;
}

.eds-tool {
  display: grid;
  place-items: center;
  gap: 3px;
  height: 64px;
  padding: 6px;
  color: #dfeaff;
  font-size: 11px;
}

.eds-tool strong {
  display: grid;
  place-items: center;
  min-width: 24px;
  min-height: 22px;
  color: #ffffff;
  font-size: 15px;
}

.eds-tree-panel button {
  display: block;
  width: 100%;
  margin-bottom: 4px;
  padding: 8px 10px;
  text-align: left;
  color: #d6e7ff;
  background: transparent;
}

.eds-tree-panel button.is-active {
  border-color: #2c82ff;
  background: #102b4f;
  color: #ffffff;
}

.eds-center {
  display: grid;
  grid-template-rows: 39px 40px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.eds-page-tabs {
  display: flex;
  align-items: end;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  padding: 6px 8px 0;
  border-bottom: 1px solid #243653;
  background: #0b1422;
}

.eds-page-tabs button {
  flex: 0 0 auto;
  min-width: 116px;
  height: 33px;
  padding: 0 12px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  white-space: nowrap;
}

.eds-mode-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  border-bottom: 1px solid #243653;
}

.eds-mode-tabs button {
  height: 30px;
  padding: 0 18px;
}

.eds-designer-frame {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: #111827;
}

.eds-ruler {
  position: sticky;
  z-index: 15;
  color: #91a4c4;
  background: #0d1728;
  font-size: 10px;
  user-select: none;
}

.eds-ruler-x {
  top: 0;
  left: 24px;
  height: 24px;
  min-width: 1280px;
  border-bottom: 1px solid #263b59;
}

.eds-ruler-y {
  top: 24px;
  left: 0;
  width: 24px;
  min-height: 900px;
  border-right: 1px solid #263b59;
  float: left;
}

.eds-canvas-wrap {
  position: relative;
  min-width: 1380px;
  min-height: 980px;
  padding: 24px 0 0 24px;
}

.eds-canvas {
  position: relative;
  transform-origin: 0 0;
  margin: 22px 0 80px 22px;
  border: 1px solid #334663;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.eds-canvas.show-grid {
  background-image:
    linear-gradient(rgba(64, 102, 164, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 102, 164, 0.16) 1px, transparent 1px);
  background-size: 10px 10px;
}

.eds-code-view {
  display: none;
  height: 100%;
  margin: 0;
  padding: 18px;
  overflow: auto;
  color: #cdf2ff;
  background: #07101e;
  font: 13px/1.55 Consolas, "Cascadia Mono", monospace;
}

.eds-canvas-wrap.is-code .eds-canvas,
.eds-canvas-wrap.is-code .eds-ruler {
  display: none;
}

.eds-canvas-wrap.is-code .eds-code-view {
  display: block;
}

.eds-control {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  min-height: 16px;
  overflow: hidden;
  user-select: none;
}

.eds-control.is-selected {
  outline: 2px solid #1d7dff;
  outline-offset: 0;
  box-shadow: 0 0 0 4px rgba(29, 125, 255, 0.12);
}

.eds-control.is-locked::after {
  content: "🔒";
  position: absolute;
  top: 3px;
  right: 5px;
  font-size: 11px;
}

.eds-move-tag {
  position: absolute;
  top: -24px;
  left: 50%;
  z-index: 5;
  display: none;
  padding: 3px 8px;
  transform: translateX(-50%);
  color: #ffffff;
  background: #15223a;
  border: 1px solid #355074;
  border-radius: 999px;
  font-size: 12px;
}

.eds-control.is-selected .eds-move-tag,
.eds-control.is-selected .eds-resize {
  display: block;
}

.eds-resize {
  position: absolute;
  z-index: 6;
  display: none;
  width: 9px;
  height: 9px;
  border: 1px solid #ffffff;
  background: #1d7dff;
}

.eds-resize.nw { top: -5px; left: -5px; cursor: nwse-resize; }
.eds-resize.ne { top: -5px; right: -5px; cursor: nesw-resize; }
.eds-resize.sw { bottom: -5px; left: -5px; cursor: nesw-resize; }
.eds-resize.se { right: -5px; bottom: -5px; cursor: nwse-resize; }

.eds-control-button,
.eds-control-upload {
  box-shadow: 0 5px 12px rgba(7, 63, 136, 0.22);
}

.eds-control-textbox,
.eds-control-combobox {
  justify-content: flex-start;
  color: #60708b !important;
}

.eds-control-card {
  justify-content: flex-start;
  align-items: flex-start;
  white-space: pre-line;
}

.eds-control-tab {
  justify-content: flex-start;
  gap: 4px;
  padding: 8px;
}

.eds-control-tab b {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  border-bottom: 2px solid transparent;
}

.eds-control-tab b.is-active {
  color: #0d63d6;
  border-color: #0d63d6;
}

.eds-search-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.eds-search-preview span,
.eds-summary-preview span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #d7e0ef;
  border-radius: 6px;
  background: #fff;
}

.eds-summary-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.eds-summary-preview span {
  min-height: 84px;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
}

.eds-grid {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
}

.eds-grid th {
  height: 34px;
  color: #ffffff;
  background: #0d4f92;
  border: 1px solid #2c6cac;
  font-size: 12px;
}

.eds-grid td {
  height: 36px;
  color: #001b44;
  border: 1px solid #e1e8f3;
  text-align: center;
  font-size: 12px;
}

.eds-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  width: 100%;
  height: 100%;
  border: 1px solid #dce4f0;
}

.eds-calendar-grid span {
  padding: 8px;
  color: #60708b;
  border-right: 1px solid #dce4f0;
  border-bottom: 1px solid #dce4f0;
}

.eds-chart-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 120px;
  margin-top: 16px;
}

.eds-chart-bars span {
  width: 32px;
  border-radius: 6px 6px 0 0;
  background: #1d7dff;
}

.eds-chart-bars span:nth-child(1) { height: 40%; }
.eds-chart-bars span:nth-child(2) { height: 76%; }
.eds-chart-bars span:nth-child(3) { height: 55%; }
.eds-chart-bars span:nth-child(4) { height: 88%; }

.eds-popup-sample,
.eds-image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1px dashed #b7c8e4;
  color: #7b8ead;
  background: #f7faff;
}

.eds-property-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid #233650;
}

.eds-property-tabs button {
  height: 30px;
  padding: 0 4px;
  font-size: 12px;
}

.eds-properties {
  display: grid;
  gap: 8px;
  align-content: start;
}

.eds-property-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 34px;
  color: #ccd9ee;
  font-size: 12px;
}

.eds-property-row span {
  color: #aebfda;
}

.eds-property-row input,
.eds-property-row select,
.eds-property-row textarea {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 6px 8px;
}

.eds-property-row input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
}

.eds-property-row.is-wide {
  grid-template-columns: 1fr;
}

.eds-property-row textarea {
  min-height: 76px;
  resize: vertical;
}

.eds-mini-preview {
  position: relative;
  height: 112px;
  overflow: hidden;
  margin: 10px;
  border: 1px solid #2b3a56;
  background: #07101e;
}

.eds-mini-canvas {
  position: absolute;
  top: 6px;
  left: 6px;
  transform-origin: 0 0;
}

.eds-mini-canvas span {
  position: absolute;
  border: 1px solid rgba(29, 125, 255, 0.55);
  background: rgba(29, 125, 255, 0.16);
}

.eds-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(360px, 0.9fr);
  gap: 10px;
  margin: 0 10px 0;
  padding: 10px;
  min-height: 0;
}

.eds-output-panel,
.eds-data-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border: 1px solid #243653;
  border-radius: 8px;
  background: #0c1524;
  overflow: hidden;
}

.eds-output-tabs {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid #233650;
}

.eds-output-tabs button {
  height: 30px;
  padding: 0 12px;
}

.eds-component-library {
  display: grid;
  grid-template-columns: repeat(8, minmax(74px, 1fr));
  gap: 8px;
  padding: 10px;
  min-height: 0;
  overflow: auto;
}

.eds-component-library button {
  display: grid;
  place-items: center;
  height: 72px;
  padding: 8px;
}

.eds-data-binding {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px 10px;
  align-content: start;
  padding: 12px;
  overflow: auto;
}

.eds-data-binding select,
.eds-data-binding input {
  width: 100%;
  height: 34px;
  border: 1px solid #2b3a56;
  color: #e8f1ff;
  background: #0c1524;
  border-radius: 6px;
}

.eds-statusbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 12px;
  color: #aac0df;
  background: #07101e;
  border-top: 1px solid #24314a;
  font-size: 12px;
}

.eds-statusbar #edsSaveStatus {
  color: #49d17c;
}

.eds-light {
  color: #17233a;
  background: #eef4fb;
}

.eds-light .eds-shell,
.eds-light .eds-titlebar,
.eds-light .eds-ribbon,
.eds-light .eds-panel,
.eds-light .eds-center,
.eds-light .eds-bottom,
.eds-light .eds-output-panel,
.eds-light .eds-data-panel,
.eds-light .eds-statusbar {
  color: #17233a;
  background: #f6f9fd;
  border-color: #d4e0ef;
}

.eds-light .eds-main-menu button,
.eds-light .eds-title-actions button,
.eds-light .eds-ribbon button,
.eds-light .eds-page-tabs button,
.eds-light .eds-mode-tabs button,
.eds-light .eds-property-tabs button,
.eds-light .eds-tool,
.eds-light .eds-tree-panel button,
.eds-light .eds-component-library button {
  color: #0b1f3f;
  background: #ffffff;
  border-color: #d4e0ef;
}

.eds-light .eds-title-actions .eds-primary,
.eds-light .eds-ribbon .is-active,
.eds-light .eds-mode-tabs .is-active,
.eds-light .eds-page-tabs .is-active,
.eds-light .eds-property-tabs .is-active {
  color: #ffffff;
  background: #0d63d6;
  border-color: #0d63d6;
}

.eds-light .eds-designer-frame {
  background: #e9f0f9;
}

@media (max-width: 1400px) {
  .eds-workbench {
    grid-template-columns: 220px minmax(0, 1fr) 300px;
  }

  .eds-bottom {
    grid-template-columns: 1fr;
  }
}

/* 2026-05-25 community editor object tools + dialog filter layering */
.rs-filter-popover {
  z-index: 2147483647;
}

dialog[open] .rs-filter-popover {
  z-index: 2147483647;
}

.community-editable-image,
.community-editable-table {
  position: relative;
  margin: 14px 0;
  border: 1px dashed #b9c9df;
  border-radius: 8px;
  padding: 10px;
  background: #fbfdff;
}

.community-editable-image img {
  display: block;
  height: auto;
  max-width: 100%;
  margin: 8px auto 2px;
}

.community-object-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
  padding: 6px;
  border: 1px solid #d7e0ef;
  border-radius: 6px;
  background: #eef5ff;
}

.community-object-toolbar button {
  min-height: 28px;
  border: 1px solid #c7d5ea;
  border-radius: 5px;
  padding: 0 10px;
  background: #ffffff;
  color: #0b2346;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.community-object-toolbar button:hover {
  border-color: #0d57c8;
  color: #0d57c8;
}

.community-editor-cell-selected {
  outline: 2px solid #0d57c8;
  outline-offset: -2px;
  background: #eef5ff;
}

.community-content-image {
  margin: 14px 0;
}

.community-content-image img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.community-content-table-wrap {
  overflow-x: auto;
  margin: 14px 0;
}

/* 2026-05-25 Expert Design Studio usability pass */
.eds-body {
  min-width: 1180px;
  font-size: 13px;
}

.eds-shell {
  grid-template-rows: 48px 48px minmax(0, 1fr) 140px 24px;
}

.eds-titlebar {
  grid-template-columns: 204px minmax(0, 1fr) auto;
  padding: 0 10px;
}

.eds-brand strong {
  font-size: 23px;
}

.eds-main-menu {
  overflow-x: auto;
  scrollbar-width: thin;
}

.eds-main-menu button {
  min-width: max-content;
  padding: 7px 9px;
}

.eds-title-actions {
  gap: 6px;
}

.eds-title-actions button,
.eds-title-actions select {
  height: 32px;
  padding: 0 10px;
}

.eds-ribbon {
  gap: 6px;
  padding: 6px 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.eds-ribbon-group,
.eds-zoom-group {
  flex: 0 0 auto;
  gap: 5px;
  padding: 0 6px;
}

.eds-ribbon button,
.eds-ribbon select {
  height: 30px;
  min-width: 30px;
  font-size: 12px;
}

.eds-workbench {
  grid-template-columns: 260px minmax(620px, 1fr) 350px;
  gap: 8px;
  padding: 8px;
}

.eds-panel-head {
  min-height: 36px;
  padding: 0 10px;
}

.eds-search {
  padding: 8px;
}

.eds-panel > input.eds-search {
  width: calc(100% - 16px);
  height: 32px;
  margin: 8px;
  padding: 0 10px;
  border: 1px solid #2b3a56;
  border-radius: 6px;
  color: #e8f1ff;
  background: #0c1524;
}

.eds-search input {
  height: 31px;
}

.eds-tool-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.eds-tool {
  min-width: 0;
  height: 58px;
  padding: 6px 4px;
  overflow: hidden;
  font-size: 12px;
}

.eds-tool b,
.eds-tool span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eds-center {
  grid-template-rows: 36px 36px minmax(0, 1fr);
}

.eds-page-tabs {
  padding-top: 4px;
}

.eds-page-tabs button {
  min-width: 104px;
  height: 31px;
  padding: 0 10px;
}

.eds-mode-tabs button {
  height: 28px;
  padding: 0 16px;
}

.eds-property-tabs {
  gap: 3px;
  padding: 7px;
}

.eds-property-tabs button {
  height: 28px;
  font-size: 11px;
}

.eds-properties {
  gap: 7px;
  padding: 10px;
}

.eds-property-row {
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 7px;
  min-height: 32px;
}

.eds-property-row input,
.eds-property-row select,
.eds-property-row textarea {
  min-height: 30px;
}

.eds-component-library {
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 7px;
  padding: 8px;
}

.eds-component-library button {
  height: 62px;
}

.eds-data-binding {
  padding: 10px;
}

.eds-toolbox-compact .eds-workbench {
  grid-template-columns: 74px minmax(620px, 1fr) 350px;
}

.eds-toolbox-compact .eds-toolbox .eds-search,
.eds-toolbox-compact .eds-toolbox summary,
.eds-toolbox-compact .eds-tool b {
  display: none;
}

.eds-toolbox-compact .eds-tool-grid {
  grid-template-columns: 1fr;
}

.eds-data-panel-hidden .eds-bottom {
  grid-template-columns: 1fr;
}

.eds-data-panel-hidden .eds-data-panel {
  display: none;
}

/* 2026-05-27 page layout audit: keep filters and action buttons inside the page frame */
.content,
.module-view,
.dashboard-view,
.module-view > *,
.dashboard-view > *,
.search-panel,
.table-card,
.panel-card,
.process-card,
.metric-grid {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

.content {
  overflow-x: hidden;
}

.table-card,
.panel-card,
.process-card {
  overflow: hidden;
}

.module-view > .search-panel {
  width: 100%;
  gap: 10px 12px;
  align-items: end;
}

.module-view > .search-panel label,
.inbound-filter-card label,
.shipment-filter-card label,
.assembly-filter-card label,
.lot-issue-filter label,
.bom-toolbar label {
  min-width: 0;
}

.module-view > .search-panel label {
  grid-template-columns: max-content minmax(0, 1fr);
}

.module-view > .search-panel input,
.module-view > .search-panel select,
.inbound-filter-card input,
.inbound-filter-card select,
.shipment-filter-card input,
.shipment-filter-card select,
.assembly-filter-card input,
.assembly-filter-card select,
.lot-issue-filter input,
.lot-issue-filter select,
.bom-toolbar input,
.bom-toolbar select {
  width: 100%;
  min-width: 0;
}

.module-view > .search-panel > button,
.inbound-filter-card > button,
.shipment-filter-card > button,
.lot-issue-filter > button,
.bom-toolbar button {
  width: auto;
  min-width: 82px;
  max-width: 116px;
  padding: 0 14px;
  justify-self: start;
  white-space: nowrap;
}

.work-order-search,
.product-match-search,
.process-progress-search {
  grid-template-columns:
    minmax(170px, 220px)
    minmax(122px, 156px)
    minmax(150px, 220px)
    minmax(150px, 220px)
    minmax(150px, 220px)
    84px
    84px !important;
  justify-content: start;
}

.work-order-search .date-end-label,
.product-match-search .date-end-label,
.process-progress-search .date-end-label {
  grid-template-columns: 18px minmax(0, 1fr);
}

.production-result-search {
  grid-template-columns:
    minmax(170px, 220px) 24px minmax(142px, 190px)
    minmax(142px, 190px) minmax(170px, 230px) minmax(170px, 230px)
    minmax(130px, 170px) minmax(130px, 170px) !important;
  justify-content: start;
}

.production-result-search #resultSearchButton,
.production-result-search #resultResetButton {
  width: 84px;
  min-width: 84px;
  max-width: 84px;
}

.shipment-filter-list-only {
  grid-template-columns:
    minmax(170px, 220px)
    minmax(122px, 156px)
    minmax(130px, 170px)
    minmax(150px, 220px)
    minmax(150px, 220px)
    84px
    84px;
  justify-content: start;
  gap: 10px 12px;
}

.customer-product-search {
  grid-template-columns: minmax(180px, 320px) 86px !important;
  justify-content: start;
}

.customer-product-search .dark-action,
.product-process-layout .customer-product-search .dark-action {
  width: 86px;
  min-width: 86px;
  max-width: 86px;
}

.customer-layout,
.customer-product-layout {
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.customer-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
}

.customer-product-layout {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 500px);
}

.customer-layout > .bulk-upload-card,
.customer-product-layout > .bulk-upload-card {
  min-height: 120px;
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 220px));
  align-content: center;
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.customer-layout > .bulk-upload-card .empty-cell,
.customer-product-layout > .bulk-upload-card .empty-cell {
  display: none;
}

.bulk-upload-card button {
  width: 100%;
  min-width: 0;
  min-height: 38px;
}

.process-editor-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  max-width: 100%;
  min-width: 0;
}

.process-form .employee-form-actions button {
  min-width: 72px;
  max-width: 112px;
}

@media (max-width: 1480px) {
  .work-order-search,
  .product-match-search,
  .process-progress-search {
    grid-template-columns: repeat(3, minmax(150px, 1fr)) 84px 84px !important;
  }

  .production-result-search {
    grid-template-columns: repeat(4, minmax(150px, 1fr)) !important;
  }

  .production-result-search label,
  .production-result-search #resultSearchButton,
  .production-result-search #resultResetButton {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .shipment-filter-list-only {
    grid-template-columns: repeat(3, minmax(150px, 1fr)) 84px 84px;
  }
}

@media (max-width: 1100px) {
  .work-order-search,
  .product-match-search,
  .process-progress-search,
  .production-result-search,
  .shipment-filter-list-only {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

.module-view > .search-panel > button,
.shipment-filter-card > button {
    max-width: none;
    width: 100%;
  }

  .customer-layout,
  .customer-product-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "search"
      "bulk"
      "table"
      "form";
  }
}

/* 2026-05-28 global page polish */
.breadcrumb {
  display: none !important;
}

.page-actions {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 22px 8px !important;
  background: transparent !important;
  border: 0 !important;
}

.page-actions:not(:has(.action-buttons button:not([hidden]))) {
  display: none !important;
}

.page-actions:has(.action-buttons button:not([hidden])) {
  display: flex !important;
  justify-content: flex-end !important;
}

.module-view {
  max-width: 100%;
  min-width: 0;
  gap: 14px;
}

.module-view > .search-panel,
.daily-production-search,
.work-order-search,
.product-match-search,
.process-progress-search,
.production-result-search,
.shipment-filter-list-only,
.customer-product-search,
.bom-toolbar.search-panel {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-items: end;
  gap: 10px 12px;
}

.module-view > .search-panel {
  padding: 12px 14px;
}

.module-view > .search-panel label,
.daily-production-search label,
.work-order-search label,
.product-match-search label,
.process-progress-search label,
.production-result-search label,
.shipment-filter-list-only label,
.customer-product-search label,
.bom-toolbar.search-panel label {
  min-width: 0;
}

.module-view > .search-panel input,
.module-view > .search-panel select,
.daily-production-search input,
.daily-production-search select,
.work-order-search input,
.work-order-search select,
.product-match-search input,
.product-match-search select,
.process-progress-search input,
.process-progress-search select,
.production-result-search input,
.production-result-search select,
.shipment-filter-list-only input,
.shipment-filter-list-only select,
.customer-product-search input,
.customer-product-search select,
.bom-toolbar.search-panel input,
.bom-toolbar.search-panel select {
  min-width: 0;
  width: 100%;
}

.module-view > .search-panel > button,
.daily-production-search > button,
.work-order-search > button,
.product-match-search > button,
.process-progress-search > button,
.production-result-search > button,
.shipment-filter-list-only > button,
.customer-product-search > button,
.bom-toolbar.search-panel > button {
  width: 84px;
  min-width: 76px;
  max-width: 104px;
  min-height: 38px;
  padding: 0 12px;
  justify-self: start;
  white-space: nowrap;
}

.work-order-search,
.product-match-search,
.process-progress-search {
  grid-template-columns:
    minmax(176px, 214px)
    minmax(128px, 158px)
    minmax(148px, 204px)
    minmax(148px, 204px)
    minmax(148px, 194px)
    84px
    84px !important;
  justify-content: start;
}

.daily-production-search {
  grid-template-columns:
    minmax(176px, 224px)
    22px
    minmax(176px, 224px)
    minmax(180px, 260px)
    minmax(180px, 260px)
    minmax(170px, 230px)
    84px !important;
  justify-content: start;
}

.production-result-search {
  grid-template-columns:
    minmax(170px, 216px) 22px minmax(138px, 180px)
    minmax(138px, 190px) minmax(154px, 220px) minmax(154px, 220px)
    minmax(122px, 160px) minmax(122px, 160px) !important;
}

.shipment-filter-list-only {
  grid-template-columns:
    minmax(170px, 214px)
    minmax(122px, 154px)
    minmax(130px, 168px)
    minmax(150px, 210px)
    minmax(150px, 210px)
    84px
    84px !important;
}

.customer-product-search {
  grid-template-columns: minmax(180px, 280px) 84px !important;
}

.table-card,
.panel-card,
.process-card {
  max-width: 100%;
  min-width: 0;
}

.table-scroll,
.data-table-scroll,
.process-table-scroll,
.assembly-detail-scroll,
.material-table-scroll {
  max-width: 100%;
  min-width: 0;
  overflow: auto;
}

.table-card table,
.panel-card table,
.process-card table {
  max-width: 100%;
}

.rs-table-enhanced th,
.rs-table-enhanced td,
.table-card th,
.table-card td {
  box-sizing: border-box;
}

.rs-table-enhanced .rs-th-inner {
  padding-right: 0 !important;
}

.rs-table-enhanced .rs-th-filter {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  background: transparent !important;
  color: transparent !important;
}

.rs-table-enhanced .rs-th-filter::before {
  display: none !important;
}

.rs-table-enhanced th.rs-has-filter {
  cursor: pointer;
}

.rs-table-enhanced .rs-th-label {
  padding: 0 4px;
}

.rs-col-no,
.rs-col-seq {
  width: 48px !important;
  min-width: 42px !important;
  max-width: 58px !important;
  text-align: center !important;
}

.rs-col-action {
  width: 88px !important;
  min-width: 74px !important;
  max-width: 120px !important;
  text-align: center !important;
}

.rs-col-status,
.rs-col-result {
  width: 86px !important;
  min-width: 72px !important;
  max-width: 108px !important;
  text-align: center !important;
}

.rs-col-qty {
  width: 92px !important;
  min-width: 72px !important;
  max-width: 116px !important;
  text-align: center !important;
}

.rs-col-date {
  width: 128px !important;
  min-width: 110px !important;
  max-width: 160px !important;
  text-align: center !important;
}

.rs-col-no .rs-cell-text,
.rs-col-seq .rs-cell-text,
.rs-col-action .rs-cell-text,
.rs-col-status .rs-cell-text,
.rs-col-result .rs-cell-text,
.rs-col-qty .rs-cell-text,
.rs-col-date .rs-cell-text {
  text-align: center;
}

@media (max-width: 1480px) {
  .work-order-search,
  .product-match-search,
  .process-progress-search,
  .production-result-search,
  .shipment-filter-list-only,
  .daily-production-search {
    grid-template-columns: repeat(3, minmax(142px, 1fr)) 84px 84px !important;
  }
}

@media (max-width: 980px) {
  .work-order-search,
  .product-match-search,
  .process-progress-search,
  .production-result-search,
  .shipment-filter-list-only,
  .daily-production-search,
  .module-view > .search-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .module-view > .search-panel > button,
  .daily-production-search > button,
  .work-order-search > button,
  .product-match-search > button,
  .process-progress-search > button,
  .production-result-search > button,
  .shipment-filter-list-only > button {
    width: 100%;
    max-width: none;
  }
}

/* 2026-05-28 full-page layout polish pass */
.module-view,
.module-view > section,
.table-card,
.panel-card,
.process-card {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.module-view {
  overflow-x: hidden;
}

.module-view > .search-panel,
.work-order-search,
.product-match-search,
.process-progress-search,
.production-result-search,
.shipment-filter-list-only,
.customer-product-search,
.bom-toolbar.search-panel,
.daily-production-search {
  display: grid;
  width: 100%;
  max-width: 100%;
  align-items: end;
  justify-content: start;
  gap: 10px 12px;
  overflow: hidden;
}

.module-view > .search-panel label,
.work-order-search label,
.product-match-search label,
.process-progress-search label,
.production-result-search label,
.shipment-filter-list-only label,
.customer-product-search label,
.bom-toolbar.search-panel label,
.daily-production-search label {
  min-width: 0;
  max-width: 100%;
}

.module-view > .search-panel input,
.module-view > .search-panel select,
.work-order-search input,
.work-order-search select,
.product-match-search input,
.product-match-search select,
.process-progress-search input,
.process-progress-search select,
.production-result-search input,
.production-result-search select,
.shipment-filter-list-only input,
.shipment-filter-list-only select,
.customer-product-search input,
.customer-product-search select,
.bom-toolbar.search-panel input,
.bom-toolbar.search-panel select,
.daily-production-search input,
.daily-production-search select {
  width: 100%;
  min-width: 0;
}

.module-view > .search-panel > button,
.work-order-search > button,
.product-match-search > button,
.process-progress-search > button,
.production-result-search > button,
.shipment-filter-list-only > button,
.customer-product-search > button,
.bom-toolbar.search-panel > button,
.daily-production-search > button {
  width: 84px !important;
  min-width: 76px !important;
  max-width: 96px !important;
  height: 38px;
  padding: 0 12px !important;
  justify-self: start;
  white-space: nowrap;
}

.work-order-search,
.product-match-search,
.process-progress-search {
  grid-template-columns:
    minmax(174px, 214px)
    minmax(126px, 152px)
    minmax(142px, 198px)
    minmax(142px, 198px)
    minmax(142px, 190px)
    84px
    84px !important;
}

.production-result-search {
  grid-template-columns:
    minmax(174px, 214px)
    24px
    minmax(142px, 184px)
    minmax(142px, 184px)
    minmax(150px, 206px)
    minmax(150px, 206px)
    minmax(122px, 150px)
    minmax(122px, 150px)
    84px
    84px !important;
}

.shipment-filter-list-only,
.daily-production-search {
  grid-template-columns:
    minmax(174px, 214px)
    minmax(126px, 152px)
    minmax(142px, 198px)
    minmax(142px, 198px)
    minmax(142px, 190px)
    84px
    84px !important;
}

.customer-product-search {
  grid-template-columns: minmax(160px, 260px) 84px !important;
}

.customer-layout,
.customer-product-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px) !important;
  align-items: start;
}

.customer-layout > .bulk-upload-card,
.customer-product-layout > .bulk-upload-card {
  min-height: 96px !important;
  padding: 12px !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(126px, 1fr)) !important;
  gap: 10px !important;
  align-content: center !important;
}

.customer-layout > .bulk-upload-card .empty-cell,
.customer-product-layout > .bulk-upload-card .empty-cell {
  display: none !important;
}

.table-card,
.table-scroll,
.data-table-scroll,
.process-table-scroll,
.assembly-detail-scroll,
.material-table-scroll {
  max-width: 100%;
  min-width: 0;
  overflow: auto;
}

.rs-polished-table,
.rs-table-enhanced {
  max-width: 100%;
}

.rs-polished-table th,
.rs-polished-table td,
.rs-table-enhanced th,
.rs-table-enhanced td {
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rs-polished-table td > *,
.rs-table-enhanced td > *,
.rs-polished-table th .rs-th-label,
.rs-table-enhanced th .rs-th-label,
.rs-cell-text {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rs-table-enhanced .rs-th-inner {
  padding-right: 0 !important;
}

.rs-table-enhanced .rs-th-filter,
.rs-table-enhanced button.rs-th-filter,
.rs-filter-button,
.filter-button,
.column-filter-button {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: transparent !important;
}

.rs-table-enhanced .rs-th-filter::before,
.rs-table-enhanced .rs-th-filter::after,
.rs-filter-button::before,
.rs-filter-button::after,
.filter-button::before,
.filter-button::after,
.column-filter-button::before,
.column-filter-button::after {
  display: none !important;
}

.rs-polished-table th:first-child,
.rs-polished-table td:first-child,
.rs-table-enhanced th:first-child,
.rs-table-enhanced td:first-child,
.rs-col-no,
.rs-col-seq {
  width: 48px !important;
  min-width: 42px !important;
  max-width: 58px !important;
  text-align: center !important;
}

.rs-col-action {
  width: 86px !important;
  min-width: 72px !important;
  max-width: 112px !important;
  text-align: center !important;
}

.rs-col-status,
.rs-col-result {
  width: 82px !important;
  min-width: 68px !important;
  max-width: 104px !important;
  text-align: center !important;
}

.rs-col-qty {
  width: 88px !important;
  min-width: 68px !important;
  max-width: 108px !important;
  text-align: center !important;
}

.rs-col-date {
  width: 124px !important;
  min-width: 104px !important;
  max-width: 152px !important;
  text-align: center !important;
}

.daily-production-table th:first-child,
.daily-production-table td:first-child,
.progress-fixed-table th:first-child,
.progress-fixed-table td:first-child,
.progress-chain-table th:first-child,
.progress-chain-table td:first-child {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

.process-flow-split-card {
  overflow: hidden !important;
}

.process-flow-split {
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.process-flow-fixed-pane {
  flex: 0 0 420px !important;
  width: 420px !important;
  min-width: 420px !important;
  max-width: 420px !important;
  overflow: hidden !important;
  background: #fff !important;
  z-index: 4 !important;
}

.progress-fixed-table {
  width: 420px !important;
  min-width: 420px !important;
  table-layout: fixed !important;
}

.progress-fixed-table .flow-col-product {
  width: 150px !important;
}

.progress-fixed-table .flow-col-work {
  width: 155px !important;
}

.progress-fixed-table .flow-col-rate {
  width: 115px !important;
}

.process-flow-chain-pane {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 420px) !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-gutter: stable;
}

.progress-chain-table {
  width: max(100%, calc(var(--process-count, 1) * 176px)) !important;
  min-width: max(100%, calc(var(--process-count, 1) * 176px)) !important;
  table-layout: fixed !important;
}

.process-flow-split .process-flow-step {
  width: 154px !important;
  min-width: 154px !important;
}

.process-flow-footer {
  padding-left: 18px !important;
  padding-right: 18px !important;
}

@media (max-width: 1480px) {
  .work-order-search,
  .product-match-search,
  .process-progress-search,
  .production-result-search,
  .shipment-filter-list-only,
  .daily-production-search {
    grid-template-columns: repeat(3, minmax(138px, 1fr)) 84px 84px !important;
  }
}

@media (max-width: 980px) {
  .work-order-search,
  .product-match-search,
  .process-progress-search,
  .production-result-search,
  .shipment-filter-list-only,
  .daily-production-search,
  .module-view > .search-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .module-view > .search-panel > button,
  .work-order-search > button,
  .product-match-search > button,
  .process-progress-search > button,
  .production-result-search > button,
  .shipment-filter-list-only > button,
  .daily-production-search > button {
    width: 100% !important;
    max-width: none !important;
  }

  .customer-layout,
  .customer-product-layout {
    grid-template-columns: 1fr !important;
  }
}

/* 2026-05-28 final page-wide polish: compact controls, stable tables, fixed process panes */
.page-actions,
.breadcrumb,
.module-breadcrumb,
.page-breadcrumb,
.daily-breadcrumb,
.route-label,
.page-path,
.breadcrumb-line,
[data-role="breadcrumb"] {
  display: none !important;
}

.module-view,
.module-view > *,
.dashboard-view,
.dashboard-view > *,
.content-panel,
.page-card,
.rs-card {
  box-sizing: border-box !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

body,
.erp-view,
.main-area,
.content,
#moduleView {
  overflow-x: hidden !important;
}

.module-view > .search-panel,
.work-order-search,
.product-match-search,
.process-progress-search,
.production-result-search,
.shipment-filter-list-only,
.customer-product-search,
.customer-search,
.bom-toolbar.search-panel,
.daily-production-search,
.inventory-filter,
.assembly-filter-card,
.material-flow-filter,
.lot-issue-filter,
.community-toolbar {
  align-items: end !important;
  gap: 10px 12px !important;
  grid-template-columns: repeat(auto-fit, minmax(150px, 220px)) !important;
}

.module-view > .search-panel > button,
.work-order-search > button,
.product-match-search > button,
.process-progress-search > button,
.production-result-search > button,
.shipment-filter-list-only > button,
.customer-product-search > button,
.customer-search > button,
.bom-toolbar.search-panel > button,
.daily-production-search > button,
.inventory-filter > button,
.assembly-filter-card > button,
.material-flow-filter > button,
.lot-issue-filter > button {
  justify-self: start !important;
  width: 88px !important;
  min-width: 78px !important;
  max-width: 100px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.module-view > .search-panel input,
.module-view > .search-panel select,
.work-order-search input,
.work-order-search select,
.product-match-search input,
.product-match-search select,
.process-progress-search input,
.process-progress-search select,
.production-result-search input,
.production-result-search select,
.shipment-filter-list-only input,
.shipment-filter-list-only select,
.daily-production-search input,
.daily-production-search select {
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.customer-layout,
.customer-product-layout {
  align-items: start !important;
}

.customer-layout > .bulk-upload-card,
.customer-product-layout > .bulk-upload-card,
.customer-layout .bulk-upload-card,
.customer-product-layout .bulk-upload-card {
  align-self: start !important;
  height: auto !important;
  min-height: 92px !important;
  padding: 18px !important;
}

.rs-polished-table,
.rs-table-enhanced {
  width: 100% !important;
  table-layout: fixed !important;
}

.rs-polished-table th,
.rs-polished-table td,
.rs-table-enhanced th,
.rs-table-enhanced td {
  min-width: 0 !important;
  max-width: 100% !important;
}

.rs-table-enhanced .rs-th-inner,
.rs-polished-table .rs-th-inner {
  display: block !important;
  min-width: 0 !important;
  padding-right: 0 !important;
}

.rs-table-enhanced .rs-th-label,
.rs-polished-table .rs-th-label {
  display: block !important;
  width: 100% !important;
}

.rs-table-enhanced .rs-th-filter svg,
.rs-filter-button svg,
.filter-button svg,
.column-filter-button svg,
.rs-filter-icon,
.filter-icon {
  display: none !important;
}

.rs-polished-table th:first-child,
.rs-polished-table td:first-child,
.rs-table-enhanced th:first-child,
.rs-table-enhanced td:first-child,
.rs-col-no,
.rs-col-seq {
  width: 46px !important;
  min-width: 40px !important;
  max-width: 54px !important;
}

.rs-col-action {
  width: 78px !important;
  min-width: 68px !important;
  max-width: 96px !important;
}

.rs-col-date {
  width: 112px !important;
  min-width: 96px !important;
  max-width: 136px !important;
}

.process-flow-split-card {
  overflow: hidden !important;
}

.process-flow-split {
  display: grid !important;
  grid-template-columns: 420px minmax(0, 1fr) !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.process-flow-fixed-pane {
  grid-column: 1 !important;
  flex: none !important;
  width: 420px !important;
  min-width: 420px !important;
  max-width: 420px !important;
  overflow: hidden !important;
  position: relative !important;
  z-index: 8 !important;
  background: #fff !important;
  box-shadow: 2px 0 0 #d7e0ef !important;
}

.progress-fixed-table {
  width: 420px !important;
  min-width: 420px !important;
  max-width: 420px !important;
  table-layout: fixed !important;
}

.progress-fixed-table .flow-col-product,
.progress-fixed-table th:nth-child(1),
.progress-fixed-table td:nth-child(1) {
  width: 145px !important;
  min-width: 145px !important;
  max-width: 145px !important;
}

.progress-fixed-table .flow-col-work,
.progress-fixed-table th:nth-child(2),
.progress-fixed-table td:nth-child(2) {
  width: 165px !important;
  min-width: 165px !important;
  max-width: 165px !important;
}

.progress-fixed-table .flow-col-rate,
.progress-fixed-table th:nth-child(3),
.progress-fixed-table td:nth-child(3) {
  width: 110px !important;
  min-width: 110px !important;
  max-width: 110px !important;
}

.process-flow-chain-pane {
  grid-column: 2 !important;
  flex: none !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-gutter: stable !important;
}

.progress-chain-table {
  width: max(100%, calc(var(--process-count, 1) * 176px)) !important;
  min-width: max(100%, calc(var(--process-count, 1) * 176px)) !important;
  table-layout: fixed !important;
}

.process-flow-split .process-flow-step {
  width: 154px !important;
  min-width: 154px !important;
  max-width: 154px !important;
}

/* 2026-05-31 search area alignment pass */
.module-view > .search-panel,
.module-view > section.search-panel,
.work-order-search,
.product-match-search,
.process-progress-search,
.production-result-search,
.shipment-filter-list-only,
.daily-production-search,
.customer-product-search,
.customer-search,
.inventory-filter,
.material-flow-filter,
.lot-issue-filter,
.bom-toolbar.search-panel {
  display: grid !important;
  align-items: center !important;
  justify-content: start !important;
  align-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 10px 14px !important;
  gap: 10px 12px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.module-view > .search-panel label,
.module-view > section.search-panel label,
.work-order-search label,
.product-match-search label,
.process-progress-search label,
.production-result-search label,
.shipment-filter-list-only label,
.daily-production-search label,
.customer-product-search label,
.customer-search label,
.inventory-filter label,
.material-flow-filter label,
.lot-issue-filter label,
.bom-toolbar.search-panel label {
  display: grid !important;
  grid-template-columns: max-content minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 38px !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

.module-view > .search-panel label > span,
.module-view > section.search-panel label > span,
.work-order-search label > span,
.product-match-search label > span,
.process-progress-search label > span,
.production-result-search label > span,
.shipment-filter-list-only label > span,
.daily-production-search label > span,
.customer-product-search label > span,
.customer-search label > span,
.inventory-filter label > span,
.material-flow-filter label > span,
.lot-issue-filter label > span,
.bom-toolbar.search-panel label > span {
  min-width: max-content !important;
  white-space: nowrap !important;
}

.module-view > .search-panel input,
.module-view > .search-panel select,
.module-view > section.search-panel input,
.module-view > section.search-panel select,
.work-order-search input,
.work-order-search select,
.product-match-search input,
.product-match-search select,
.process-progress-search input,
.process-progress-search select,
.production-result-search input,
.production-result-search select,
.shipment-filter-list-only input,
.shipment-filter-list-only select,
.daily-production-search input,
.daily-production-search select,
.customer-product-search input,
.customer-product-search select,
.customer-search input,
.customer-search select,
.inventory-filter input,
.inventory-filter select,
.material-flow-filter input,
.material-flow-filter select,
.lot-issue-filter input,
.lot-issue-filter select,
.bom-toolbar.search-panel input,
.bom-toolbar.search-panel select {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  box-sizing: border-box !important;
}

.module-view > .search-panel > button,
.module-view > section.search-panel > button,
.work-order-search > button,
.product-match-search > button,
.process-progress-search > button,
.production-result-search > button,
.shipment-filter-list-only > button,
.daily-production-search > button,
.customer-product-search > button,
.customer-search > button,
.inventory-filter > button,
.material-flow-filter > button,
.lot-issue-filter > button,
.bom-toolbar.search-panel > button {
  justify-self: start !important;
  align-self: center !important;
  width: 86px !important;
  min-width: 86px !important;
  max-width: 86px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 12px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.work-order-search,
.product-match-search,
.process-progress-search {
  grid-template-columns:
    minmax(206px, 250px)
    minmax(160px, 190px)
    minmax(166px, 208px)
    minmax(166px, 208px)
    minmax(166px, 208px)
    86px
    86px !important;
}

.daily-production-search,
.shipment-filter-list-only {
  grid-template-columns:
    minmax(206px, 250px)
    minmax(170px, 210px)
    minmax(176px, 230px)
    minmax(176px, 230px)
    minmax(176px, 230px)
    86px
    86px !important;
}

.production-result-search {
  grid-template-columns:
    minmax(206px, 250px)
    minmax(150px, 188px)
    minmax(150px, 188px)
    minmax(150px, 188px)
    minmax(156px, 198px)
    minmax(138px, 172px)
    minmax(138px, 172px)
    86px
    86px !important;
}

.production-result-search label:nth-of-type(1) {
  grid-column: 1 / span 2 !important;
  grid-row: 1 !important;
}

.production-result-search label:nth-of-type(2) {
  grid-column: 3 !important;
  grid-row: 1 !important;
}

.production-result-search label:nth-of-type(3) {
  grid-column: 4 !important;
  grid-row: 1 !important;
}

.production-result-search label:nth-of-type(4) {
  grid-column: 5 !important;
  grid-row: 1 !important;
}

.production-result-search label:nth-of-type(5) {
  grid-column: 6 !important;
  grid-row: 1 !important;
}

.production-result-search label:nth-of-type(6) {
  grid-column: 7 !important;
  grid-row: 1 !important;
}

.production-result-search label:nth-of-type(7) {
  grid-column: 1 !important;
  grid-row: 2 !important;
}

.production-result-search label:nth-of-type(8) {
  grid-column: 2 / span 2 !important;
  grid-row: 2 !important;
}

.production-result-search #resultSearchButton,
.production-result-search > button:first-of-type {
  grid-column: 4 !important;
  grid-row: 2 !important;
}

.production-result-search #resultResetButton,
.production-result-search > button:last-of-type {
  grid-column: 5 !important;
  grid-row: 2 !important;
}

.customer-product-search {
  grid-template-columns: minmax(210px, 340px) 86px !important;
}

.customer-search {
  grid-template-columns: minmax(180px, 260px) 86px !important;
}

.inventory-filter {
  grid-template-columns:
    minmax(180px, 240px)
    minmax(180px, 240px)
    minmax(170px, 220px)
    minmax(170px, 220px)
    86px
    86px !important;
}

.material-flow-filter,
.lot-issue-filter {
  grid-template-columns:
    minmax(180px, 240px)
    minmax(180px, 240px)
    minmax(170px, 220px)
    minmax(170px, 220px)
    minmax(150px, 190px)
    86px
    86px !important;
}

.bom-toolbar.search-panel {
  grid-template-columns:
    minmax(180px, 240px)
    minmax(200px, 280px)
    minmax(150px, 190px)
    86px
    86px
    104px
    minmax(220px, 320px) !important;
}

.assembly-filter-card {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-items: start !important;
  gap: 10px !important;
  padding: 10px 14px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.assembly-filter-row,
.assembly-filter-row-bottom {
  display: grid !important;
  grid-template-columns:
    minmax(206px, 250px)
    minmax(170px, 210px)
    minmax(176px, 230px)
    minmax(176px, 230px)
    minmax(176px, 230px)
    minmax(150px, 190px) !important;
  align-items: center !important;
  gap: 10px 12px !important;
  min-width: 0 !important;
}

.assembly-filter-card label {
  display: grid !important;
  grid-template-columns: max-content minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  min-height: 38px !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

.assembly-filter-card input,
.assembly-filter-card select {
  width: 100% !important;
  min-width: 0 !important;
  height: 38px !important;
  min-height: 38px !important;
  box-sizing: border-box !important;
}

.assembly-filter-actions {
  display: grid !important;
  grid-template-columns: 86px 86px !important;
  gap: 10px !important;
  justify-content: start !important;
  align-items: center !important;
}

.assembly-filter-actions button {
  width: 86px !important;
  min-width: 86px !important;
  max-width: 86px !important;
  height: 38px !important;
  padding: 0 12px !important;
}

@media (max-width: 1400px) {
  .work-order-search,
  .product-match-search,
  .process-progress-search,
  .daily-production-search,
  .shipment-filter-list-only,
  .production-result-search {
    grid-template-columns: repeat(4, minmax(150px, 1fr)) 86px 86px !important;
  }

  .production-result-search label,
  .production-result-search #resultSearchButton,
  .production-result-search #resultResetButton,
  .production-result-search > button {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

@media (max-width: 980px) {
  .module-view > .search-panel,
  .module-view > section.search-panel,
  .work-order-search,
  .product-match-search,
  .process-progress-search,
  .daily-production-search,
  .shipment-filter-list-only,
  .production-result-search,
  .inventory-filter,
  .material-flow-filter,
  .lot-issue-filter,
  .bom-toolbar.search-panel,
  .assembly-filter-row,
  .assembly-filter-row-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .module-view > .search-panel > button,
  .module-view > section.search-panel > button,
  .work-order-search > button,
  .product-match-search > button,
  .process-progress-search > button,
  .daily-production-search > button,
  .shipment-filter-list-only > button,
  .production-result-search > button,
  .inventory-filter > button,
  .material-flow-filter > button,
  .lot-issue-filter > button,
  .bom-toolbar.search-panel > button,
  .assembly-filter-actions button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .assembly-filter-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* 2026-06-09 공통 조회조건/표 너비 최종 보정 */
.module-view > .search-panel,
.module-view > section.search-panel,
.work-order-search,
.product-match-search,
.process-progress-search,
.daily-production-search,
.production-result-search,
.shipment-filter-list-only,
.inventory-filter,
.material-flow-filter,
.lot-issue-filter,
.customer-product-search,
.customer-search,
.bom-toolbar.search-panel,
.assembly-filter-card,
.shipment-filter-card {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px 12px !important;
  min-height: 0 !important;
  padding: 12px 16px !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.module-view > .search-panel label,
.module-view > section.search-panel label,
.work-order-search label,
.product-match-search label,
.process-progress-search label,
.daily-production-search label,
.production-result-search label,
.shipment-filter-list-only label,
.inventory-filter label,
.material-flow-filter label,
.lot-issue-filter label,
.customer-product-search label,
.customer-search label,
.bom-toolbar.search-panel label,
.assembly-filter-card label,
.shipment-filter-card label {
  display: grid !important;
  grid-template-columns: max-content minmax(0, auto) !important;
  align-items: center !important;
  gap: 8px !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 38px !important;
  margin: 0 !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}

.module-view > .search-panel input,
.module-view > .search-panel select,
.module-view > section.search-panel input,
.module-view > section.search-panel select,
.work-order-search input,
.work-order-search select,
.product-match-search input,
.product-match-search select,
.process-progress-search input,
.process-progress-search select,
.daily-production-search input,
.daily-production-search select,
.production-result-search input,
.production-result-search select,
.shipment-filter-list-only input,
.shipment-filter-list-only select,
.inventory-filter input,
.inventory-filter select,
.material-flow-filter input,
.material-flow-filter select,
.lot-issue-filter input,
.lot-issue-filter select,
.customer-product-search input,
.customer-product-search select,
.customer-search input,
.customer-search select,
.bom-toolbar.search-panel input,
.bom-toolbar.search-panel select,
.assembly-filter-card input,
.assembly-filter-card select,
.shipment-filter-card input,
.shipment-filter-card select {
  width: 168px !important;
  min-width: 0 !important;
  max-width: 210px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
}

.module-view > .search-panel input[type="date"],
.module-view > section.search-panel input[type="date"],
.work-order-search input[type="date"],
.product-match-search input[type="date"],
.process-progress-search input[type="date"],
.daily-production-search input[type="date"],
.production-result-search input[type="date"],
.shipment-filter-list-only input[type="date"],
.inventory-filter input[type="date"],
.material-flow-filter input[type="date"],
.lot-issue-filter input[type="date"],
.bom-toolbar.search-panel input[type="date"],
.assembly-filter-card input[type="date"],
.shipment-filter-card input[type="date"] {
  width: 150px !important;
  max-width: 150px !important;
}

.module-view > .search-panel select,
.module-view > section.search-panel select,
.work-order-search select,
.product-match-search select,
.process-progress-search select,
.daily-production-search select,
.production-result-search select,
.shipment-filter-list-only select,
.inventory-filter select,
.material-flow-filter select,
.lot-issue-filter select,
.bom-toolbar.search-panel select,
.assembly-filter-card select,
.shipment-filter-card select {
  width: 156px !important;
  max-width: 190px !important;
}

.module-view > .search-panel button,
.module-view > section.search-panel button,
.work-order-search button,
.product-match-search button,
.process-progress-search button,
.daily-production-search button,
.production-result-search button,
.shipment-filter-list-only button,
.inventory-filter button,
.material-flow-filter button,
.lot-issue-filter button,
.customer-product-search button,
.customer-search button,
.bom-toolbar.search-panel button,
.assembly-filter-card button,
.shipment-filter-card button {
  width: 86px !important;
  min-width: 86px !important;
  max-width: 86px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

.production-result-search label:nth-of-type(1),
.production-result-search label:nth-of-type(2),
.production-result-search label:nth-of-type(3),
.production-result-search label:nth-of-type(4),
.production-result-search label:nth-of-type(5),
.production-result-search label:nth-of-type(6),
.production-result-search label:nth-of-type(7),
.production-result-search label:nth-of-type(8),
.production-result-search #resultSearchButton,
.production-result-search #resultResetButton,
.production-result-search > button {
  grid-column: auto !important;
  grid-row: auto !important;
}

.rs-common-table-widths {
  table-layout: fixed !important;
  width: max-content !important;
  min-width: 100% !important;
}

.rs-common-table-widths th,
.rs-common-table-widths td {
  box-sizing: border-box !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.rs-common-table-widths .rs-col-no {
  width: 70px !important;
  min-width: 70px !important;
  max-width: 70px !important;
}

.rs-common-table-widths .rs-col-date,
.rs-common-table-widths .rs-col-status,
.rs-common-table-widths .rs-col-result,
.rs-common-table-widths .rs-col-customer,
.rs-common-table-widths .rs-col-qty,
.rs-common-table-widths .rs-col-user {
  width: 100px !important;
  min-width: 96px !important;
  max-width: 112px !important;
}

.rs-common-table-widths .rs-col-action {
  width: 110px !important;
  min-width: 100px !important;
  max-width: 130px !important;
}

.rs-common-table-widths .rs-col-code {
  width: 150px !important;
  min-width: 130px !important;
  max-width: 190px !important;
}

.rs-common-table-widths .rs-col-process {
  width: 140px !important;
  min-width: 120px !important;
  max-width: 180px !important;
}

.rs-common-table-widths .rs-col-name {
  width: 240px !important;
  min-width: 190px !important;
  max-width: 360px !important;
}

.rs-common-table-widths .rs-col-wide {
  width: 260px !important;
  min-width: 200px !important;
  max-width: 420px !important;
}

/* LOGIN F DESIGN START */
#loginView.login-view {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 16px;
  background:
    radial-gradient(circle at 12% 18%, rgba(20, 111, 191, 0.4), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(15, 89, 162, 0.28), transparent 30%),
    linear-gradient(145deg, #02162f 0%, #032a53 52%, #073f73 100%);
}

#loginView .login-panel {
  position: relative;
  isolation: isolate;
  width: min(1480px, calc(100vw - 32px));
  min-height: min(780px, calc(100vh - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(400px, 0.85fr);
  overflow: hidden;
  padding: 0;
  color: #ffffff;
  border: 1px solid rgba(140, 216, 255, 0.2);
  border-radius: 28px;
  background: linear-gradient(140deg, rgba(2, 27, 56, 0.97), rgba(4, 57, 106, 0.94));
  box-shadow: 0 34px 90px rgba(0, 10, 29, 0.46);
  backdrop-filter: none;
}

#loginView .login-flow-background,
#loginView .login-flow-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#loginView .login-flow-background {
  z-index: -1;
  overflow: hidden;
}

#loginView .login-flow-grid {
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(94, 197, 244, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 197, 244, 0.24) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(120deg, #000 0%, rgba(0, 0, 0, 0.78) 45%, transparent 78%);
}

#loginView .login-flow-line {
  position: absolute;
  left: -6%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(90, 223, 255, 0.9), rgba(77, 151, 255, 0.34), transparent);
  transform-origin: left center;
  filter: drop-shadow(0 0 9px rgba(73, 210, 255, 0.68));
}

#loginView .flow-line-one {
  top: 31%;
  width: 58%;
  transform: rotate(12deg);
}

#loginView .flow-line-two {
  top: 55%;
  width: 59%;
  transform: rotate(-8deg);
}

#loginView .flow-line-three {
  left: 19%;
  top: 48%;
  width: 42%;
  transform: rotate(34deg);
}

#loginView .login-flow-node {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 2px solid #7ce5ff;
  border-radius: 50%;
  background: #073c70;
  box-shadow: 0 0 0 5px rgba(92, 219, 255, 0.08), 0 0 22px rgba(78, 215, 255, 0.88);
}

#loginView .flow-node-one { left: 17%; top: 35%; }
#loginView .flow-node-two { left: 36%; top: 53%; }
#loginView .flow-node-three { left: 44%; top: 26%; }
#loginView .flow-node-four { left: 24%; top: 59%; }

#loginView .login-brand-side {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(44px, 5vw, 72px);
}

#loginView .login-brand-lockup {
  display: flex;
  align-items: flex-end;
  gap: 13px;
}

#loginView .brand-mark {
  color: #ffffff;
  font-size: 31px;
  line-height: 1;
  letter-spacing: -1.6px;
}

#loginView .login-brand-lockup > span {
  color: rgba(213, 239, 255, 0.55);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

#loginView .login-brand-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding-bottom: 38px;
}

#loginView .login-brand-copy > p {
  margin: 0 0 17px;
  color: #62d8fa;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.3px;
}

#loginView .login-brand-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(28px, 2.45vw, 36px);
  line-height: 1.28;
  letter-spacing: -2px;
  text-wrap: balance;
}

#loginView .login-brand-copy h1 span {
  color: #ffffff;
}

#loginView .login-brand-copy small {
  display: block;
  margin-top: 20px;
  color: rgba(218, 238, 255, 0.67);
  font-size: 13px;
}

#loginView .login-form-side {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: clamp(34px, 4vw, 58px);
  background: linear-gradient(155deg, rgba(9, 45, 81, 0.22), rgba(0, 16, 37, 0.36));
}

#loginView .login-form {
  width: min(420px, 100%);
  display: block;
  padding: clamp(30px, 3vw, 42px);
  color: #071d39;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 75px rgba(0, 14, 38, 0.4);
  backdrop-filter: blur(18px);
}

#loginView .login-form-header > span {
  display: block;
  margin-bottom: 12px;
  color: #1769d5;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
}

#loginView .login-form-header h2 {
  margin: 0;
  color: #071d39;
  font-size: clamp(26px, 2.2vw, 32px);
  line-height: 1.22;
  letter-spacing: -1.5px;
}

#loginView .login-form-header p {
  margin: 10px 0 30px;
  color: #718198;
  font-size: 13px;
}

#loginView .login-form > label {
  display: block;
  margin-top: 18px;
  color: #33475f;
  font-size: 13px;
  font-weight: 800;
}

#loginView .login-form > label > span {
  display: block;
  margin-bottom: 8px;
}

#loginView .login-input-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 54px;
  overflow: hidden;
  border: 1px solid #dce6f1;
  border-radius: 12px;
  background: #ffffff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

#loginView .login-input-field:focus-within {
  border-color: #2a7bdd;
  box-shadow: 0 0 0 3px rgba(30, 111, 213, 0.12);
}

#loginView .login-input-icon {
  flex: 0 0 47px;
  color: #7990aa;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-align: center;
}

#loginView .login-input-field input {
  min-width: 0;
  min-height: 52px;
  padding: 0 13px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#loginView .login-input-field input:focus {
  border: 0;
  box-shadow: none;
}

#loginView .password-field input {
  padding-right: 57px;
}

#loginView .password-field button {
  top: 0;
  right: 2px;
  width: 54px;
  height: 52px;
  color: #657990;
  font-size: 12px;
  font-weight: 800;
}

#loginView .login-form > .login-remember-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 14px;
  color: #586b82;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

#loginView .login-remember-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #1769d5;
  cursor: pointer;
}

#loginView .login-remember-option span {
  margin: 0;
}

#loginView .login-button {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
  padding: 0 19px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #062f5e 0%, #1769d5 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(12, 63, 124, 0.25);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

#loginView .login-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(12, 63, 124, 0.31);
}

#loginView .login-button b {
  font-size: 18px;
  font-weight: 400;
}

#loginView .login-hint {
  min-height: 17px;
  margin: 14px 0 0;
  color: #7a8ca2;
  font-size: 11px;
  text-align: center;
}

#loginView .login-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 13px;
  color: #8a9aae;
  font-size: 11px;
}

#loginView .login-security-note span {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  color: #1769d5;
  border: 1px solid #b9d3f2;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
}

@media (max-width: 860px) {
  #loginView.login-view {
    min-height: 100dvh;
    padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  }

  #loginView .login-panel {
    width: min(100%, 560px);
    min-height: calc(100dvh - 28px);
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  #loginView .login-brand-side {
    min-height: 190px;
    padding: 26px 28px 20px;
  }

  #loginView .login-brand-copy {
    padding: 20px 0 0;
  }

  #loginView .login-brand-copy > p,
  #loginView .login-brand-copy small {
    display: none;
  }

  #loginView .login-brand-copy h1 {
    font-size: clamp(22px, 6.2vw, 27px);
    line-height: 1.28;
    letter-spacing: -1.4px;
  }

  #loginView .login-form-side {
    padding: 0 14px 14px;
    background: transparent;
  }

  #loginView .login-form {
    padding: 28px 24px;
    border-radius: 18px;
  }

  #loginView .login-form-header p {
    margin-bottom: 25px;
  }

  #loginView .flow-node-three,
  #loginView .flow-node-four,
  #loginView .flow-line-three {
    display: none;
  }
}

@media (max-width: 390px) {
  #loginView.login-view {
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  }

  #loginView .login-panel {
    border-radius: 18px;
  }

  #loginView .login-brand-side {
    min-height: 172px;
    padding: 22px 22px 16px;
  }

  #loginView .brand-mark {
    font-size: 27px;
  }

  #loginView .login-brand-lockup > span {
    display: none;
  }

  #loginView .login-brand-copy {
    padding-top: 16px;
  }

  #loginView .login-form-side {
    padding: 0 10px 10px;
  }

  #loginView .login-form {
    padding: 25px 19px;
  }

  #loginView .login-form-header h2 {
    font-size: 25px;
  }
}
/* LOGIN F DESIGN END */

/* USER INFO COMMAND CENTER START */
.user-info-command-center {
  gap: 14px;
  color: #102846;
}

.user-command-page-head {
  min-height: 52px;
}

.user-command-page-head h2 {
  color: #092448;
  font-size: 24px;
  letter-spacing: -0.8px;
}

.user-command-page-head p {
  font-size: 13px;
}

.user-profile-hero {
  position: relative;
  min-height: 126px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  padding: 20px 26px;
  border: 1px solid rgba(78, 156, 243, 0.28);
  border-radius: 14px;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 16%, rgba(58, 150, 255, 0.28), transparent 30%),
    linear-gradient(125deg, #032953 0%, #063f79 56%, #075ca9 100%);
  box-shadow: 0 12px 28px rgba(3, 43, 93, 0.16);
}

.user-profile-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(126, 203, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 203, 255, 0.2) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent, #000 38%, #000 100%);
}

.user-profile-avatar-wrap,
.user-profile-identity,
.user-profile-hero-actions {
  position: relative;
  z-index: 1;
}

.user-profile-hero-photo {
  width: 86px;
  height: 86px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  background-color: #eef5ff;
  box-shadow: 0 10px 24px rgba(0, 25, 63, 0.28);
}

.user-profile-name-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.user-profile-name-line h3 {
  margin: 0;
  color: #ffffff;
  font-size: 27px;
  letter-spacing: -1px;
}

.user-profile-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 9px;
  color: rgba(230, 243, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
}

.user-profile-meta i {
  width: 1px;
  height: 13px;
  background: rgba(255, 255, 255, 0.36);
}

.user-role-badge,
.user-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.user-role-badge {
  margin-top: 12px;
  color: #d8ecff;
  border: 1px solid rgba(150, 209, 255, 0.4);
  background: rgba(14, 93, 160, 0.52);
}

.user-status-badge.is-active {
  color: #08723b;
  background: #d8f7e6;
}

.user-status-badge.is-paused {
  color: #a13b2a;
  background: #ffe5df;
}

.user-profile-upload-button {
  min-width: 144px;
  min-height: 42px;
  gap: 8px;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
}

.user-profile-upload-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.user-command-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(300px, 0.88fr) minmax(380px, 1.12fr);
  gap: 14px;
  align-items: stretch;
}

.user-info-command-center .user-card {
  border-color: #d8e3f1;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 7px 20px rgba(14, 46, 84, 0.055);
}

.user-command-card {
  min-width: 0;
}

.user-command-card-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e4ebf4;
}

.user-command-card-head h3,
.user-access-center-head h3 {
  margin: 0;
  color: #092b55;
  font-size: 17px;
  letter-spacing: -0.4px;
}

.user-command-card-head p,
.user-access-center-head p {
  margin: 4px 0 0;
  color: #7a8da5;
  font-size: 11px;
  font-weight: 700;
}

.user-card-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #1769d5;
  background: #eaf3ff;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.user-detail-list,
.user-account-summary {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  margin: 8px 0 0;
}

.user-detail-list dt,
.user-detail-list dd,
.user-account-summary dt,
.user-account-summary dd {
  min-width: 0;
  min-height: 43px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 5px 0;
  border-bottom: 1px solid #edf2f7;
  overflow-wrap: anywhere;
}

.user-detail-list dt,
.user-account-summary dt {
  color: #4d627c;
  font-size: 12px;
  font-weight: 900;
}

.user-detail-list dd,
.user-account-summary dd {
  color: #102846;
  font-size: 12px;
  font-weight: 800;
}

.user-account-column {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
}

.user-account-summary {
  grid-template-columns: 104px minmax(0, 1fr);
}

.user-activity-timeline {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 18px 0 4px 4px;
  padding-left: 18px;
}

.user-activity-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  bottom: 7px;
  width: 2px;
  background: #dce8f7;
}

.user-activity-item {
  position: relative;
}

.user-activity-dot {
  position: absolute;
  left: -18px;
  top: 5px;
  width: 10px;
  height: 10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #4c8ee9;
  box-shadow: 0 0 0 2px #cfe2fb;
}

.user-activity-item.is-success .user-activity-dot {
  background: #18a462;
  box-shadow: 0 0 0 2px #c8efdc;
}

.user-activity-item strong,
.user-activity-item small {
  display: block;
}

.user-activity-item strong {
  color: #173451;
  font-size: 12px;
}

.user-activity-item small {
  margin-top: 4px;
  color: #7a8ca2;
  font-size: 11px;
}

.user-security-form {
  gap: 10px;
  margin-top: 14px;
}

.user-security-form label {
  display: grid;
  grid-template-columns: 114px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.user-security-form label > span {
  color: #435b76;
  font-size: 12px;
  font-weight: 900;
}

.user-security-form input {
  min-width: 0;
  min-height: 42px;
  border-color: #d6e1ee;
  border-radius: 8px;
  background: #fbfdff;
}

.user-security-form input:focus {
  border-color: #3182e6;
  box-shadow: 0 0 0 3px rgba(49, 130, 230, 0.11);
}

.user-password-guide {
  margin-top: 4px;
  padding: 13px 15px;
  border-radius: 9px;
  color: #58708b;
  background: #f4f8fd;
}

.user-password-guide strong {
  color: #214463;
  font-size: 12px;
}

.user-password-guide ul {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 11px;
}

.user-security-form .dark-action {
  gap: 8px;
  min-height: 46px;
  margin-top: 2px;
  border-radius: 8px;
}

.user-access-center-card {
  padding: 18px 20px 20px;
}

.user-access-center-head,
.user-access-center-head > div {
  display: flex;
  align-items: center;
}

.user-access-center-head {
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e1e9f3;
}

.user-access-center-head > div {
  gap: 11px;
}

.user-access-center-head > strong {
  flex: 0 0 auto;
  color: #526a84;
  font-size: 12px;
}

.user-access-center-head > strong b {
  color: #1769d5;
  font-size: 20px;
}

.user-permission-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.user-permission-group {
  min-width: 0;
  padding: 13px;
  border: 1px solid #e0e8f2;
  border-radius: 10px;
  background: #fbfdff;
}

.user-permission-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-permission-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: #1769d5;
  background: #eaf3ff;
  font-size: 10px;
  font-weight: 900;
}

.user-permission-group-head strong,
.user-permission-group-head small {
  display: block;
}

.user-permission-group-head strong {
  color: #173451;
  font-size: 13px;
}

.user-permission-group-head small {
  margin-top: 3px;
  color: #8797aa;
  font-size: 10px;
}

.user-permission-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.user-permission-items span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  color: #1769d5;
  background: #edf5ff;
  font-size: 10px;
  font-weight: 900;
}

.user-access-empty {
  grid-column: 1 / -1;
  padding: 26px;
  text-align: center;
}

@media (max-width: 1280px) {
  .user-command-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-security-center-card {
    grid-column: 1 / -1;
  }

  .user-security-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-security-form label:first-child {
    grid-column: 1 / -1;
  }

  .user-security-form label {
    grid-template-columns: 1fr;
  }

  .user-password-guide,
  .user-security-form .dark-action {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .user-command-page-head {
    align-items: flex-start;
  }

  .user-command-page-head p {
    max-width: 250px;
  }

  .user-profile-hero {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 15px;
    padding: 18px;
  }

  .user-profile-hero-actions {
    grid-column: 1 / -1;
  }

  .user-profile-upload-button {
    width: 100%;
  }

  .user-profile-hero-photo {
    width: 70px;
    height: 70px;
  }

  .user-profile-name-line h3 {
    font-size: 22px;
  }

  .user-profile-meta {
    gap: 7px;
    font-size: 11px;
  }

  .user-command-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .user-security-center-card {
    grid-column: auto;
  }

  .user-security-form {
    grid-template-columns: 1fr;
  }

  .user-security-form label,
  .user-security-form label:first-child,
  .user-password-guide,
  .user-security-form .dark-action {
    grid-column: auto;
  }

  .user-detail-list,
  .user-account-summary {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .user-access-center-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .user-permission-group-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* USER INFO COMMAND CENTER END */

/* MENU REDESIGN - COMPANY SECTIONS START */
.menu-list {
  padding: 14px 10px 32px;
}

.menu-group {
  margin: 2px 0;
}

.menu-parent {
  gap: 11px;
  min-height: 43px;
  padding: 0 13px;
  border-radius: 8px;
  letter-spacing: -0.02em;
}

.menu-parent > .menu-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.88);
}

.menu-parent > .menu-icon svg {
  width: 21px;
  height: 21px;
  display: block;
}

.menu-parent > .menu-label {
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}

.menu-parent > b {
  width: 18px;
  height: 18px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.72);
  transition: transform 160ms ease;
}

.menu-parent > b svg {
  width: 15px;
  height: 15px;
  display: block;
}

.menu-group.is-open > .menu-parent > b {
  transform: rotate(180deg);
}

.menu-parent.active,
.menu-group.has-active > .menu-parent,
.menu-parent:hover,
.menu-item.active,
.menu-item:hover {
  background: linear-gradient(135deg, var(--sidebar-active), #1d6fe0);
  color: #fff;
}

.menu-group.has-active > .menu-parent {
  box-shadow: 0 6px 18px rgba(0, 77, 181, 0.24);
}

.submenu {
  position: relative;
  padding: 5px 7px 9px 44px;
}

.submenu::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 8px;
  bottom: 12px;
  width: 1px;
  background: rgba(139, 190, 255, 0.2);
}

.menu-item {
  position: relative;
  min-height: 34px;
  padding: 0 10px 0 15px;
  border-radius: 7px;
  color: rgba(236, 245, 255, 0.86);
}

.menu-item::before {
  content: "";
  position: absolute;
  left: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(143, 193, 255, 0.7);
}

.menu-item.active::before {
  width: 5px;
  height: 5px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
}

.menu-section-divider {
  position: relative;
  margin: 17px 10px 9px;
  padding-top: 12px;
  border-top: 1px solid rgba(160, 200, 245, 0.24);
  color: rgba(187, 216, 249, 0.68);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.menu-section-divider span {
  display: inline-block;
}

.vendor-menu-group > .menu-parent {
  font-size: 15px;
}

.vendor-menu-group > .menu-parent > .menu-icon {
  color: #a9d2ff;
}

.hfr-company-tabs {
  display: none !important;
}

@media (max-width: 760px) {
  .menu-list {
    padding-left: 9px;
    padding-right: 9px;
  }

  .menu-parent {
    min-height: 44px;
  }
}
/* MENU REDESIGN - COMPANY SECTIONS END */
