@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap");
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host { --font-sans: 'Noto Sans KR', sans-serif; --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace; --color-red-50: oklch(97.1% 0.013 17.38); --color-red-500: oklch(63.7% 0.237 25.331); --color-red-700: oklch(50.5% 0.213 27.518); --color-red-800: oklch(44.4% 0.177 26.899); --color-orange-50: oklch(98% 0.016 73.684); --color-orange-200: oklch(90.1% 0.076 70.697); --color-orange-400: oklch(75% 0.183 55.934); --color-orange-500: oklch(70.5% 0.213 47.604); --color-orange-600: oklch(64.6% 0.222 41.116); --color-orange-700: oklch(55.3% 0.195 38.402); --color-orange-800: oklch(47% 0.157 37.304); --color-emerald-50: oklch(97.9% 0.021 166.113); --color-emerald-100: oklch(95% 0.052 163.051); --color-emerald-400: oklch(76.5% 0.177 163.223); --color-emerald-500: oklch(69.6% 0.17 162.48); --color-emerald-600: oklch(59.6% 0.145 163.225); --color-emerald-700: oklch(50.8% 0.118 165.612); --color-emerald-800: oklch(43.2% 0.095 166.913); --color-blue-50: oklch(97% 0.014 254.604); --color-blue-100: oklch(93.2% 0.032 255.585); --color-blue-200: oklch(88.2% 0.059 254.128); --color-blue-300: oklch(80.9% 0.105 251.813); --color-blue-400: oklch(70.7% 0.165 254.624); --color-blue-500: oklch(62.3% 0.214 259.815); --color-blue-600: oklch(54.6% 0.245 262.881); --color-blue-700: oklch(48.8% 0.243 264.376); --color-blue-800: oklch(42.4% 0.199 265.638); --color-blue-950: oklch(28.2% 0.091 267.935); --color-indigo-50: oklch(96.2% 0.018 272.314); --color-indigo-600: oklch(51.1% 0.262 276.966); --color-indigo-700: oklch(45.7% 0.24 277.023); --color-slate-50: oklch(98.4% 0.003 247.858); --color-slate-100: oklch(96.8% 0.007 247.896); --color-slate-200: oklch(92.9% 0.013 255.508); --color-slate-300: oklch(86.9% 0.022 252.894); --color-slate-400: oklch(70.4% 0.04 256.788); --color-slate-500: oklch(55.4% 0.046 257.417); --color-slate-600: oklch(44.6% 0.043 257.281); --color-slate-700: oklch(37.2% 0.044 257.287); --color-slate-800: oklch(27.9% 0.041 260.031); --color-slate-950: oklch(12.9% 0.042 264.695); --color-white: #fff; --spacing: 0.25rem; --container-lg: 32rem; --container-xl: 36rem; --text-xs: 0.75rem; --text-xs--line-height: calc(1 / 0.75); --text-sm: 0.875rem; --text-sm--line-height: calc(1.25 / 0.875); --text-xl: 1.25rem; --text-xl--line-height: calc(1.75 / 1.25); --text-2xl: 1.5rem; --text-2xl--line-height: calc(2 / 1.5); --text-3xl: 1.875rem; --text-3xl--line-height: calc(2.25 / 1.875); --font-weight-normal: 400; --font-weight-medium: 500; --font-weight-semibold: 600; --font-weight-bold: 700; --tracking-tight: -0.025em; --tracking-widest: 0.1em; --radius-md: 0.375rem; --radius-lg: 0.5rem; --radius-xl: 0.75rem; --default-transition-duration: 150ms; --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); --default-font-family: var(--font-sans); --default-mono-font-family: var(--font-mono); }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button { box-sizing: border-box; margin: 0px; padding: 0px; border: 0px solid; }
  html, :host { line-height: 1.5; text-size-adjust: 100%; tab-size: 4; font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"); font-feature-settings: var(--default-font-feature-settings, normal); font-variation-settings: var(--default-font-variation-settings, normal); -webkit-tap-highlight-color: transparent; }
  hr { height: 0px; color: inherit; border-top-width: 1px; }
  abbr:where([title]) { text-decoration: underline dotted; }
  h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
  a { color: inherit; text-decoration: inherit; }
  b, strong { font-weight: bolder; }
  code, kbd, samp, pre { font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace); font-feature-settings: var(--default-mono-font-feature-settings, normal); font-variation-settings: var(--default-mono-font-variation-settings, normal); font-size: 1em; }
  small { font-size: 80%; }
  sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
  sub { bottom: -0.25em; }
  sup { top: -0.5em; }
  table { text-indent: 0px; border-color: inherit; border-collapse: collapse; }
  progress { vertical-align: baseline; }
  summary { display: list-item; }
  ol, ul, menu { list-style: none; }
  img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
  img, video { max-width: 100%; height: auto; }
  button, input, select, optgroup, textarea, ::file-selector-button { font: inherit; letter-spacing: inherit; color: inherit; border-radius: 0px; background-color: transparent; opacity: 1; }
  :where(select:is([multiple], [size])) optgroup { font-weight: bolder; }
  :where(select:is([multiple], [size])) optgroup option { padding-inline-start: 20px; }
  ::file-selector-button { margin-inline-end: 4px; }
  ::placeholder { opacity: 1; }
  @supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {
  ::placeholder {
  color: currentcolor;
  @supports (color: color-mix(in lab, red, red)) {
  color: color-mix(currentcolor, transparent);
}
}
}
  textarea { resize: vertical; }
  ::-webkit-search-decoration { appearance: none; }
  ::-webkit-date-and-time-value { min-height: 1lh; text-align: inherit; }
  ::-webkit-datetime-edit { display: inline-flex; }
  ::-webkit-datetime-edit-fields-wrapper { padding: 0px; }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field { padding-block: 0px; }
  ::-webkit-calendar-picker-indicator { line-height: 1; }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button { appearance: button; }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button { height: auto; }
  [hidden]:where(:not([hidden="until-found"])) { display: none !important; }
}
@layer utilities {
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border-width: 0px; }
  .absolute { position: absolute; }
  .fixed { position: fixed; }
  .relative { position: relative; }
  .static { position: static; }
  .inset-0 { inset: calc(var(--spacing) * 0); }
  .inset-y-0 { inset-block: calc(var(--spacing) * 0); }
  .start { inset-inline-start: var(--spacing); }
  .end { inset-inline-end: var(--spacing); }
  .top-2 { top: calc(var(--spacing) * 2); }
  .top-12 { top: calc(var(--spacing) * 12); }
  .right-0 { right: calc(var(--spacing) * 0); }
  .right-2 { right: calc(var(--spacing) * 2); }
  .bottom-7 { bottom: calc(var(--spacing) * 7); }
  .left-0 { left: calc(var(--spacing) * 0); }
  .left-1\/2 { left: calc(50%); }
  .z-30 { z-index: 30; }
  .z-40 { z-index: 40; }
  .z-50 { z-index: 50; }
  .col-span-2 { grid-column: span 2 / span 2; }
  .float-right { float: right; }
  .mx-1 { margin-inline: calc(var(--spacing) * 1); }
  .mx-2 { margin-inline: calc(var(--spacing) * 2); }
  .mx-3 { margin-inline: calc(var(--spacing) * 3); }
  .mx-4 { margin-inline: calc(var(--spacing) * 4); }
  .mx-6 { margin-inline: calc(var(--spacing) * 6); }
  .mx-auto { margin-inline: auto; }
  .my-2 { margin-block: calc(var(--spacing) * 2); }
  .my-5 { margin-block: calc(var(--spacing) * 5); }
  .my-6 { margin-block: calc(var(--spacing) * 6); }
  .mt-1 { margin-top: calc(var(--spacing) * 1); }
  .mt-2 { margin-top: calc(var(--spacing) * 2); }
  .mt-3 { margin-top: calc(var(--spacing) * 3); }
  .mt-4 { margin-top: calc(var(--spacing) * 4); }
  .mt-5 { margin-top: calc(var(--spacing) * 5); }
  .mt-auto { margin-top: auto; }
  .mr-2 { margin-right: calc(var(--spacing) * 2); }
  .mb-2 { margin-bottom: calc(var(--spacing) * 2); }
  .mb-3 { margin-bottom: calc(var(--spacing) * 3); }
  .mb-4 { margin-bottom: calc(var(--spacing) * 4); }
  .mb-5 { margin-bottom: calc(var(--spacing) * 5); }
  .mb-6 { margin-bottom: calc(var(--spacing) * 6); }
  .mb-7 { margin-bottom: calc(var(--spacing) * 7); }
  .ml-0\.5 { margin-left: calc(var(--spacing) * 0.5); }
  .ml-1 { margin-left: calc(var(--spacing) * 1); }
  .ml-1\.5 { margin-left: calc(var(--spacing) * 1.5); }
  .ml-2 { margin-left: calc(var(--spacing) * 2); }
  .ml-auto { margin-left: auto; }
  .block { display: block; }
  .flex { display: flex; }
  .grid { display: grid; }
  .hidden { display: none; }
  .inline { display: inline; }
  .inline-flex { display: inline-flex; }
  .h-1\.5 { height: calc(var(--spacing) * 1.5); }
  .h-2 { height: calc(var(--spacing) * 2); }
  .h-2\.5 { height: calc(var(--spacing) * 2.5); }
  .h-3 { height: calc(var(--spacing) * 3); }
  .h-4 { height: calc(var(--spacing) * 4); }
  .h-5 { height: calc(var(--spacing) * 5); }
  .h-6 { height: calc(var(--spacing) * 6); }
  .h-7 { height: calc(var(--spacing) * 7); }
  .h-9 { height: calc(var(--spacing) * 9); }
  .h-10 { height: calc(var(--spacing) * 10); }
  .h-44 { height: calc(var(--spacing) * 44); }
  .h-\[72px\] { height: 72px; }
  .h-\[76px\] { height: 76px; }
  .h-\[230px\] { height: 230px; }
  .h-\[245px\] { height: 245px; }
  .h-\[250px\] { height: 250px; }
  .h-full { height: 100%; }
  .max-h-\[90vh\] { max-height: 90vh; }
  .max-h-\[300px\] { max-height: 300px; }
  .min-h-5 { min-height: calc(var(--spacing) * 5); }
  .min-h-11 { min-height: calc(var(--spacing) * 11); }
  .min-h-12 { min-height: calc(var(--spacing) * 12); }
  .min-h-14 { min-height: calc(var(--spacing) * 14); }
  .min-h-20 { min-height: calc(var(--spacing) * 20); }
  .min-h-\[59px\] { min-height: 59px; }
  .min-h-screen { min-height: 100vh; }
  .w-1\.5 { width: calc(var(--spacing) * 1.5); }
  .w-2 { width: calc(var(--spacing) * 2); }
  .w-2\.5 { width: calc(var(--spacing) * 2.5); }
  .w-4 { width: calc(var(--spacing) * 4); }
  .w-5 { width: calc(var(--spacing) * 5); }
  .w-7 { width: calc(var(--spacing) * 7); }
  .w-8 { width: calc(var(--spacing) * 8); }
  .w-9 { width: calc(var(--spacing) * 9); }
  .w-10 { width: calc(var(--spacing) * 10); }
  .w-14 { width: calc(var(--spacing) * 14); }
  .w-16 { width: calc(var(--spacing) * 16); }
  .w-20 { width: calc(var(--spacing) * 20); }
  .w-44 { width: calc(var(--spacing) * 44); }
  .w-72 { width: calc(var(--spacing) * 72); }
  .w-\[150px\] { width: 150px; }
  .w-\[155px\] { width: 155px; }
  .w-\[180px\] { width: 180px; }
  .w-\[224px\] { width: 224px; }
  .w-full { width: 100%; }
  .max-w-\[240px\] { max-width: 240px; }
  .max-w-\[1680px\] { max-width: 1680px; }
  .max-w-lg { max-width: var(--container-lg); }
  .max-w-xl { max-width: var(--container-xl); }
  .min-w-0 { min-width: calc(var(--spacing) * 0); }
  .min-w-9 { min-width: calc(var(--spacing) * 9); }
  .min-w-24 { min-width: calc(var(--spacing) * 24); }
  .min-w-\[110px\] { min-width: 110px; }
  .min-w-\[120px\] { min-width: 120px; }
  .min-w-\[130px\] { min-width: 130px; }
  .min-w-\[160px\] { min-width: 160px; }
  .min-w-\[170px\] { min-width: 170px; }
  .min-w-\[280px\] { min-width: 280px; }
  .min-w-\[200px\] { min-width: 200px; }
  .min-w-\[240px\] { min-width: 240px; }
  .min-w-\[420px\] { min-width: 420px; }
  .min-w-\[560px\] { min-width: 560px; }
  .min-w-\[750px\] { min-width: 750px; }
  .min-w-\[1030px\] { min-width: 1030px; }
  .min-w-\[1040px\] { min-width: 1040px; }
  .min-w-\[1450px\] { min-width: 1450px; }
  .min-w-\[1540px\] { min-width: 1540px; }
  .flex-1 { flex: 1 1 0%; }
  .shrink-0 { flex-shrink: 0; }
  .-translate-x-1\/2 { --tw-translate-x: calc(calc(1 / 2 * 100%) * -1); translate: var(--tw-translate-x) var(--tw-translate-y); }
  .-rotate-90 { rotate: calc(-90deg); }
  .transform { transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,); }
  .cursor-pointer { cursor: pointer; }
  .grid-cols-1 { grid-template-columns: repeat(1, minmax(0px, 1fr)); }
  .grid-cols-2 { grid-template-columns: repeat(2, minmax(0px, 1fr)); }
  .flex-col { flex-direction: column; }
  .flex-wrap { flex-wrap: wrap; }
  .items-center { align-items: center; }
  .items-end { align-items: flex-end; }
  .items-start { align-items: flex-start; }
  .justify-between { justify-content: space-between; }
  .justify-center { justify-content: center; }
  .justify-end { justify-content: flex-end; }
  .gap-1\.5 { gap: calc(var(--spacing) * 1.5); }
  .gap-2 { gap: calc(var(--spacing) * 2); }
  .gap-2\.5 { gap: calc(var(--spacing) * 2.5); }
  .gap-3 { gap: calc(var(--spacing) * 3); }
  .gap-4 { gap: calc(var(--spacing) * 4); }
  .gap-5 { gap: calc(var(--spacing) * 5); }
  .gap-6 { gap: calc(var(--spacing) * 6); }
  .gap-8 { gap: calc(var(--spacing) * 8); }
  .space-y-1 {
  :where(& > :not(:last-child)) { --tw-space-y-reverse: 0; margin-block-start: calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse)); margin-block-end: calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse))); }
}
  .space-y-1\.5 {
  :where(& > :not(:last-child)) { --tw-space-y-reverse: 0; margin-block-start: calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse)); margin-block-end: calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse))); }
}
  .space-y-3 {
  :where(& > :not(:last-child)) { --tw-space-y-reverse: 0; margin-block-start: calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse)); margin-block-end: calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse))); }
}
  .space-y-4 {
  :where(& > :not(:last-child)) { --tw-space-y-reverse: 0; margin-block-start: calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse)); margin-block-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse))); }
}
  .space-y-6 {
  :where(& > :not(:last-child)) { --tw-space-y-reverse: 0; margin-block-start: calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse)); margin-block-end: calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse))); }
}
  .divide-y {
  :where(& > :not(:last-child)) { --tw-divide-y-reverse: 0; border-bottom-style: var(--tw-border-style); border-top-style: var(--tw-border-style); border-top-width: calc(1px * var(--tw-divide-y-reverse)); border-bottom-width: calc(1px * calc(1 - var(--tw-divide-y-reverse))); }
}
  .divide-slate-100 {
  :where(& > :not(:last-child)) { border-color: var(--color-slate-100); }
}
  .self-center { align-self: center; }
  .overflow-hidden { overflow: hidden; }
  .overflow-x-auto { overflow-x: auto; }
  .overflow-x-hidden { overflow-x: hidden; }
  .overflow-y-auto { overflow-y: auto; }
  .rounded { border-radius: 0.25rem; }
  .rounded-full { border-radius: calc(infinity * 1px); }
  .rounded-lg { border-radius: var(--radius-lg); }
  .rounded-md { border-radius: var(--radius-md); }
  .rounded-xl { border-radius: var(--radius-xl); }
  .border { border-style: var(--tw-border-style); border-width: 1px; }
  .border-y { border-block-style: var(--tw-border-style); border-block-width: 1px; }
  .border-t { border-top-style: var(--tw-border-style); border-top-width: 1px; }
  .border-t-2 { border-top-style: var(--tw-border-style); border-top-width: 2px; }
  .border-b { border-bottom-style: var(--tw-border-style); border-bottom-width: 1px; }
  .border-b-2 { border-bottom-style: var(--tw-border-style); border-bottom-width: 2px; }
  .border-l { border-left-style: var(--tw-border-style); border-left-width: 1px; }
  .border-blue-100 { border-color: var(--color-blue-100); }
  .border-blue-600 { border-color: var(--color-blue-600); }
  .border-orange-200 { border-color: var(--color-orange-200); }
  .border-slate-100 { border-color: var(--color-slate-100); }
  .border-slate-200 { border-color: var(--color-slate-200); }
  .border-slate-300 { border-color: var(--color-slate-300); }
  .border-slate-700 { border-color: var(--color-slate-700); }
  .border-transparent { border-color: transparent; }
  .bg-\[\#111d32\] { background-color: rgb(17, 29, 50); }
  .bg-\[\#f5f7fb\] { background-color: rgb(245, 247, 251); }
  .bg-\[\#f8f9fc\] { background-color: rgb(248, 249, 252); }
  .bg-blue-50 { background-color: var(--color-blue-50); }
  .bg-blue-100 { background-color: var(--color-blue-100); }
  .bg-blue-200 { background-color: var(--color-blue-200); }
  .bg-blue-400 { background-color: var(--color-blue-400); }
  .bg-blue-500 { background-color: var(--color-blue-500); }
  .bg-blue-600 { background-color: var(--color-blue-600); }
  .bg-current { background-color: currentcolor; }
  .bg-emerald-50 { background-color: var(--color-emerald-50); }
  .bg-emerald-100 { background-color: var(--color-emerald-100); }
  .bg-emerald-400 { background-color: var(--color-emerald-400); }
  .bg-emerald-500 { background-color: var(--color-emerald-500); }
  .bg-indigo-50 { background-color: var(--color-indigo-50); }
  .bg-orange-50 { background-color: var(--color-orange-50); }
  .bg-orange-400 { background-color: var(--color-orange-400); }
  .bg-orange-500 { background-color: var(--color-orange-500); }
  .bg-red-50 { background-color: var(--color-red-50); }
  .bg-red-500 { background-color: var(--color-red-500); }
  .bg-slate-50 { background-color: var(--color-slate-50); }
  .bg-slate-100 { background-color: var(--color-slate-100); }
  .bg-slate-800 { background-color: var(--color-slate-800); }
  .bg-slate-950\/40 {
  background-color: color-mix(in srgb, oklch(0.129 0.042 264.695) 40%, transparent 60%);
  @supports (color: color-mix(in lab, red, red)) {
  background-color: color-mix(in oklab, var(--color-slate-950) 40%, transparent);
}
}
  .bg-white { background-color: var(--color-white); }
  .p-1 { padding: calc(var(--spacing) * 1); }
  .p-3 { padding: calc(var(--spacing) * 3); }
  .p-4 { padding: calc(var(--spacing) * 4); }
  .p-5 { padding: calc(var(--spacing) * 5); }
  .p-6 { padding: calc(var(--spacing) * 6); }
  .p-7 { padding: calc(var(--spacing) * 7); }
  .p-8 { padding: calc(var(--spacing) * 8); }
  .p-12 { padding: calc(var(--spacing) * 12); }
  .p-14 { padding: calc(var(--spacing) * 14); }
  .px-0 { padding-inline: calc(var(--spacing) * 0); }
  .px-1 { padding-inline: calc(var(--spacing) * 1); }
  .px-1\.5 { padding-inline: calc(var(--spacing) * 1.5); }
  .px-2 { padding-inline: calc(var(--spacing) * 2); }
  .px-2\.5 { padding-inline: calc(var(--spacing) * 2.5); }
  .px-3 { padding-inline: calc(var(--spacing) * 3); }
  .px-4 { padding-inline: calc(var(--spacing) * 4); }
  .px-5 { padding-inline: calc(var(--spacing) * 5); }
  .px-6 { padding-inline: calc(var(--spacing) * 6); }
  .py-0\.5 { padding-block: calc(var(--spacing) * 0.5); }
  .py-1 { padding-block: calc(var(--spacing) * 1); }
  .py-2 { padding-block: calc(var(--spacing) * 2); }
  .py-3 { padding-block: calc(var(--spacing) * 3); }
  .py-3\.5 { padding-block: calc(var(--spacing) * 3.5); }
  .py-4 { padding-block: calc(var(--spacing) * 4); }
  .py-5 { padding-block: calc(var(--spacing) * 5); }
  .py-10 { padding-block: calc(var(--spacing) * 10); }
  .py-16 { padding-block: calc(var(--spacing) * 16); }
  .py-\[19px\] { padding-block: 19px; }
  .pt-4 { padding-top: calc(var(--spacing) * 4); }
  .text-center { text-align: center; }
  .text-left { text-align: left; }
  .text-right { text-align: right; }
  .font-sans { font-family: var(--font-sans); }
  .text-2xl { font-size: var(--text-2xl); line-height: var(--tw-leading, var(--text-2xl--line-height)); }
  .text-3xl { font-size: var(--text-3xl); line-height: var(--tw-leading, var(--text-3xl--line-height)); }
  .text-sm { font-size: var(--text-sm); line-height: var(--tw-leading, var(--text-sm--line-height)); }
  .text-xl { font-size: var(--text-xl); line-height: var(--tw-leading, var(--text-xl--line-height)); }
  .text-xs { font-size: var(--text-xs); line-height: var(--tw-leading, var(--text-xs--line-height)); }
  .text-\[27px\] { font-size: 27px; }
  .text-\[30px\] { font-size: 30px; }
  .text-\[31px\] { font-size: 31px; }
  .leading-5 { --tw-leading: calc(var(--spacing) * 5); line-height: calc(var(--spacing) * 5); }
  .leading-6 { --tw-leading: calc(var(--spacing) * 6); line-height: calc(var(--spacing) * 6); }
  .leading-7 { --tw-leading: calc(var(--spacing) * 7); line-height: calc(var(--spacing) * 7); }
  .font-bold { --tw-font-weight: var(--font-weight-bold); font-weight: var(--font-weight-bold); }
  .font-medium { --tw-font-weight: var(--font-weight-medium); font-weight: var(--font-weight-medium); }
  .font-normal { --tw-font-weight: var(--font-weight-normal); font-weight: var(--font-weight-normal); }
  .font-semibold { --tw-font-weight: var(--font-weight-semibold); font-weight: var(--font-weight-semibold); }
  .tracking-tight { --tw-tracking: var(--tracking-tight); letter-spacing: var(--tracking-tight); }
  .tracking-widest { --tw-tracking: var(--tracking-widest); letter-spacing: var(--tracking-widest); }
  .break-words { overflow-wrap: break-word; }
  .break-all { word-break: break-all; }
  .whitespace-nowrap { white-space: nowrap; }
  .text-blue-600 { color: var(--color-blue-600); }
  .text-blue-700 { color: var(--color-blue-700); }
  .text-blue-800 { color: var(--color-blue-800); }
  .text-emerald-600 { color: var(--color-emerald-600); }
  .text-emerald-700 { color: var(--color-emerald-700); }
  .text-emerald-800 { color: var(--color-emerald-800); }
  .text-indigo-600 { color: var(--color-indigo-600); }
  .text-indigo-700 { color: var(--color-indigo-700); }
  .text-orange-600 { color: var(--color-orange-600); }
  .text-orange-700 { color: var(--color-orange-700); }
  .text-orange-800 { color: var(--color-orange-800); }
  .text-red-700 { color: var(--color-red-700); }
  .text-red-800 { color: var(--color-red-800); }
  .text-slate-300 { color: var(--color-slate-300); }
  .text-slate-400 { color: var(--color-slate-400); }
  .text-slate-500 { color: var(--color-slate-500); }
  .text-slate-600 { color: var(--color-slate-600); }
  .text-slate-700 { color: var(--color-slate-700); }
  .text-slate-800 { color: var(--color-slate-800); }
  .text-white { color: var(--color-white); }
  .tabular-nums { --tw-numeric-spacing: tabular-nums; font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,); }
  .accent-blue-600 { accent-color: var(--color-blue-600); }
  .shadow-lg { --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1)); box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); }
  .shadow-sm { --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)); box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); }
  .shadow-xl { --tw-shadow: 0 20px 25px -5px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 8px 10px -6px var(--tw-shadow-color, rgb(0 0 0 / 0.1)); box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); }
  .shadow-blue-950\/20 {
  --tw-shadow-color: color-mix(in srgb, oklch(28.2% 0.091 267.935) 20%, transparent);
  @supports (color: color-mix(in lab, red, red)) {
  --tw-shadow-color: color-mix(in oklab, color-mix(in oklab, var(--color-blue-950) 20%, transparent) var(--tw-shadow-alpha), transparent);
}
}
  .filter { filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,); }
  .transition-colors { transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to; transition-timing-function: var(--tw-ease, var(--default-transition-timing-function)); transition-duration: var(--tw-duration, var(--default-transition-duration)); }
  .outline-none { --tw-outline-style: none; outline-style: none; }
  .first\:pl-5 {
  &:first-child { padding-left: calc(var(--spacing) * 5); }
}
  .last\:pr-5 {
  &:last-child { padding-right: calc(var(--spacing) * 5); }
}
  .hover\:bg-blue-50 {
  &:hover {
  @media (hover: hover) {
  background-color: var(--color-blue-50);
}
}
}
  .hover\:bg-blue-50\/40 {
  &:hover {
  @media (hover: hover) {
  background-color: color-mix(in srgb, oklch(0.97 0.014 254.604) 40%, transparent 60%);
  @supports (color: color-mix(in lab, red, red)) {
  background-color: color-mix(in oklab, var(--color-blue-50) 40%, transparent);
}
}
}
}
  .hover\:bg-blue-50\/50 {
  &:hover {
  @media (hover: hover) {
  background-color: color-mix(in srgb, oklch(0.97 0.014 254.604), transparent);
  @supports (color: color-mix(in lab, red, red)) {
  background-color: color-mix(in oklab, var(--color-blue-50) 50%, transparent);
}
}
}
}
  .hover\:bg-blue-700 {
  &:hover {
  @media (hover: hover) {
  background-color: var(--color-blue-700);
}
}
}
  .hover\:bg-orange-50 {
  &:hover {
  @media (hover: hover) {
  background-color: var(--color-orange-50);
}
}
}
  .hover\:bg-slate-50 {
  &:hover {
  @media (hover: hover) {
  background-color: var(--color-slate-50);
}
}
}
  .hover\:bg-slate-700 {
  &:hover {
  @media (hover: hover) {
  background-color: var(--color-slate-700);
}
}
}
  .hover\:bg-slate-800 {
  &:hover {
  @media (hover: hover) {
  background-color: var(--color-slate-800);
}
}
}
  .hover\:underline {
  &:hover {
  @media (hover: hover) {
  text-decoration-line: underline;
}
}
}
  .focus\:ring-2 {
  &:focus { --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor); box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); }
}
  .focus\:ring-blue-500 {
  &:focus { --tw-ring-color: var(--color-blue-500); }
}
  .focus-visible\:ring-2 {
  &:focus-visible { --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor); box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); }
}
  .focus-visible\:ring-blue-300 {
  &:focus-visible { --tw-ring-color: var(--color-blue-300); }
}
  .focus-visible\:ring-blue-400 {
  &:focus-visible { --tw-ring-color: var(--color-blue-400); }
}
  .focus-visible\:ring-blue-500 {
  &:focus-visible { --tw-ring-color: var(--color-blue-500); }
}
  .focus-visible\:ring-offset-2 {
  &:focus-visible { --tw-ring-offset-width: 2px; --tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); }
}
  .focus-visible\:outline-none {
  &:focus-visible { --tw-outline-style: none; outline-style: none; }
}
  .disabled\:cursor-not-allowed {
  &:disabled { cursor: not-allowed; }
}
  .disabled\:bg-slate-100 {
  &:disabled { background-color: var(--color-slate-100); }
}
  .disabled\:text-slate-500 {
  &:disabled { color: var(--color-slate-500); }
}
  .disabled\:opacity-50 {
  &:disabled { opacity: 0.5; }
}
  .sm\:block {
  @media (width >= 40rem) {
  display: block;
}
}
  .sm\:inline {
  @media (width >= 40rem) {
  display: inline;
}
}
  .sm\:grid-cols-2 {
  @media (width >= 40rem) {
  grid-template-columns: repeat(2, minmax(0px, 1fr));
}
}
  .md\:ml-auto {
  @media (width >= 50rem) {
  margin-left: auto;
}
}
  .md\:block {
  @media (width >= 50rem) {
  display: block;
}
}
  .md\:flex {
  @media (width >= 50rem) {
  display: flex;
}
}
  .md\:max-w-\[240px\] {
  @media (width >= 50rem) {
  max-width: 240px;
}
}
  .md\:grid-cols-2 {
  @media (width >= 50rem) {
  grid-template-columns: repeat(2, minmax(0px, 1fr));
}
}
  .md\:p-8 {
  @media (width >= 50rem) {
  padding: calc(var(--spacing) * 8);
}
}
  .md\:px-8 {
  @media (width >= 50rem) {
  padding-inline: calc(var(--spacing) * 8);
}
}
  .lg\:ml-\[224px\] {
  @media (width >= 64rem) {
  margin-left: 224px;
}
}
  .lg\:flex {
  @media (width >= 64rem) {
  display: flex;
}
}
  .lg\:hidden {
  @media (width >= 64rem) {
  display: none;
}
}
  .xl\:sticky {
  @media (width >= 80rem) {
  position: sticky;
}
}
  .xl\:top-5 {
  @media (width >= 80rem) {
  top: calc(var(--spacing) * 5);
}
}
  .xl\:w-\[300px\] {
  @media (width >= 80rem) {
  width: 300px;
}
}
  .xl\:w-\[320px\] {
  @media (width >= 80rem) {
  width: 320px;
}
}
  .xl\:grid-cols-2 {
  @media (width >= 80rem) {
  grid-template-columns: repeat(2, minmax(0px, 1fr));
}
}
  .xl\:grid-cols-4 {
  @media (width >= 80rem) {
  grid-template-columns: repeat(4, minmax(0px, 1fr));
}
}
  .xl\:flex-row {
  @media (width >= 80rem) {
  flex-direction: row;
}
}
  .xl\:border-r {
  @media (width >= 80rem) {
  border-right-style: var(--tw-border-style); border-right-width: 1px;
}
}
  .xl\:border-slate-100 {
  @media (width >= 80rem) {
  border-color: var(--color-slate-100);
}
}
  .xl\:pr-5 {
  @media (width >= 80rem) {
  padding-right: calc(var(--spacing) * 5);
}
}
  .xl\:last\:border-0 {
  @media (width >= 80rem) {
  &:last-child { border-style: var(--tw-border-style); border-width: 0px; }
}
}
}
@property --tw-translate-x { syntax: "*"; inherits: false; initial-value: 0; }
@property --tw-translate-y { syntax: "*"; inherits: false; initial-value: 0; }
@property --tw-translate-z { syntax: "*"; inherits: false; initial-value: 0; }
@property --tw-rotate-x { syntax: "*"; inherits: false; }
@property --tw-rotate-y { syntax: "*"; inherits: false; }
@property --tw-rotate-z { syntax: "*"; inherits: false; }
@property --tw-skew-x { syntax: "*"; inherits: false; }
@property --tw-skew-y { syntax: "*"; inherits: false; }
@property --tw-space-y-reverse { syntax: "*"; inherits: false; initial-value: 0; }
@property --tw-divide-y-reverse { syntax: "*"; inherits: false; initial-value: 0; }
@property --tw-border-style { syntax: "*"; inherits: false; initial-value: solid; }
@property --tw-leading { syntax: "*"; inherits: false; }
@property --tw-font-weight { syntax: "*"; inherits: false; }
@property --tw-tracking { syntax: "*"; inherits: false; }
@property --tw-ordinal { syntax: "*"; inherits: false; }
@property --tw-slashed-zero { syntax: "*"; inherits: false; }
@property --tw-numeric-figure { syntax: "*"; inherits: false; }
@property --tw-numeric-spacing { syntax: "*"; inherits: false; }
@property --tw-numeric-fraction { syntax: "*"; inherits: false; }
@property --tw-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
@property --tw-shadow-color { syntax: "*"; inherits: false; }
@property --tw-shadow-alpha { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
@property --tw-inset-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
@property --tw-inset-shadow-color { syntax: "*"; inherits: false; }
@property --tw-inset-shadow-alpha { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
@property --tw-ring-color { syntax: "*"; inherits: false; }
@property --tw-ring-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
@property --tw-inset-ring-color { syntax: "*"; inherits: false; }
@property --tw-inset-ring-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
@property --tw-ring-inset { syntax: "*"; inherits: false; }
@property --tw-ring-offset-width { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --tw-ring-offset-color { syntax: "*"; inherits: false; initial-value: #fff; }
@property --tw-ring-offset-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
@property --tw-blur { syntax: "*"; inherits: false; }
@property --tw-brightness { syntax: "*"; inherits: false; }
@property --tw-contrast { syntax: "*"; inherits: false; }
@property --tw-grayscale { syntax: "*"; inherits: false; }
@property --tw-hue-rotate { syntax: "*"; inherits: false; }
@property --tw-invert { syntax: "*"; inherits: false; }
@property --tw-opacity { syntax: "*"; inherits: false; }
@property --tw-saturate { syntax: "*"; inherits: false; }
@property --tw-sepia { syntax: "*"; inherits: false; }
@property --tw-drop-shadow { syntax: "*"; inherits: false; }
@property --tw-drop-shadow-color { syntax: "*"; inherits: false; }
@property --tw-drop-shadow-alpha { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
@property --tw-drop-shadow-size { syntax: "*"; inherits: false; }
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
  *, ::before, ::after, ::backdrop { --tw-translate-x: 0; --tw-translate-y: 0; --tw-translate-z: 0; --tw-rotate-x: initial; --tw-rotate-y: initial; --tw-rotate-z: initial; --tw-skew-x: initial; --tw-skew-y: initial; --tw-space-y-reverse: 0; --tw-divide-y-reverse: 0; --tw-border-style: solid; --tw-leading: initial; --tw-font-weight: initial; --tw-tracking: initial; --tw-ordinal: initial; --tw-slashed-zero: initial; --tw-numeric-figure: initial; --tw-numeric-spacing: initial; --tw-numeric-fraction: initial; --tw-shadow: 0 0 #0000; --tw-shadow-color: initial; --tw-shadow-alpha: 100%; --tw-inset-shadow: 0 0 #0000; --tw-inset-shadow-color: initial; --tw-inset-shadow-alpha: 100%; --tw-ring-color: initial; --tw-ring-shadow: 0 0 #0000; --tw-inset-ring-color: initial; --tw-inset-ring-shadow: 0 0 #0000; --tw-ring-inset: initial; --tw-ring-offset-width: 0px; --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 #0000; --tw-blur: initial; --tw-brightness: initial; --tw-contrast: initial; --tw-grayscale: initial; --tw-hue-rotate: initial; --tw-invert: initial; --tw-opacity: initial; --tw-saturate: initial; --tw-sepia: initial; --tw-drop-shadow: initial; --tw-drop-shadow-color: initial; --tw-drop-shadow-alpha: 100%; --tw-drop-shadow-size: initial; }
}
}


/* ===== 로그인 화면 ===== */
.lg-wrap{min-height:100vh;display:grid;grid-template-columns:1fr;background:#f5f7fb;color:#1e293b;font-family:inherit}
.lg-brand{display:none}
.lg-main{display:flex;align-items:center;justify-content:center;padding:32px 16px}
.lg-card{width:100%;max-width:400px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:32px 28px;box-shadow:0 1px 3px rgba(15,23,42,.06);display:flex;flex-direction:column}
.lg-card h1{font-size:24px;font-weight:700;letter-spacing:-.01em;margin:0}
.lg-sub{margin:6px 0 24px;font-size:14px;color:#475569}
.lg-card label{font-size:14px;font-weight:500;color:#334155;margin-bottom:6px}
.lg-card input.min-h-11{width:100%;margin-bottom:16px}
.lg-check{display:flex;align-items:center;gap:8px;font-weight:400 !important;color:#475569 !important;cursor:pointer;margin-bottom:16px !important}
.lg-check input{width:16px;height:16px;accent-color:#2563eb}
.lg-error{margin:0 0 14px;padding:10px 12px;border-radius:6px;background:#fef2f2;color:#b91c1c;font-size:14px}
.lg-submit{width:100%;background:#2563eb;color:#fff;font-size:15px}
.lg-submit:hover{background:#1d4ed8}
.lg-demo{margin-top:22px;padding-top:18px;border-top:1px solid #e2e8f0;font-size:13px;color:#475569}
.lg-demo strong{color:#1e293b}
.lg-demo-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.lg-demo-list button{border:1px solid #cbd5e1;background:#f8fafc;border-radius:999px;padding:6px 12px;font-size:12px;color:#334155;cursor:pointer;min-height:32px}
.lg-demo-list button:hover{border-color:#2563eb;color:#1d4ed8;background:#eff6ff}
.lg-mobile-logo{display:flex;align-items:center;gap:8px;font-weight:700;font-size:18px;margin-bottom:24px}
.lg-logo-mark{display:inline-flex;width:36px;height:36px;align-items:center;justify-content:center;border-radius:8px;background:#2563eb;color:#fff}
.lg-logo-mark svg{width:20px;height:20px}
@media (min-width:1024px){
  .lg-wrap{grid-template-columns:minmax(380px,44%) 1fr}
  .lg-brand{display:flex;flex-direction:column;justify-content:space-between;background:#111d32;color:#cbd5e1;padding:40px 48px}
  .lg-logo{display:flex;align-items:center;gap:10px;font-size:24px;font-weight:700;color:#fff}
  .lg-logo small{font-size:12px;font-weight:500;color:#cbd5e1}
  .lg-eyebrow{font-size:12px;letter-spacing:.14em;color:#93c5fd;margin:0 0 14px}
  .lg-headline{font-size:34px;line-height:1.3;font-weight:700;color:#fff;margin:0 0 28px}
  .lg-points{list-style:none;padding:0;margin:0;display:grid;gap:12px;font-size:15px}
  .lg-points li::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#34d399;margin-right:10px;vertical-align:middle}
  .lg-foot{font-size:12px;color:#64748b;margin:0}
  .lg-mobile-logo{display:none}
}

/* ===== 요약 카드(KPI) 한 줄형 ===== */
.kpi{display:flex;align-items:center;gap:12px;min-width:0;padding:12px 14px;border:1px solid #e2e8f0;border-radius:8px;background:#fff}
.kpi-icon{display:flex;width:34px;height:34px;flex-shrink:0;align-items:center;justify-content:center;border-radius:8px}
.kpi-icon svg{width:18px;height:18px}
.kpi-text{flex:1;min-width:0}
.kpi-title{margin:0;font-size:13px;font-weight:500;color:#475569;line-height:1.3}
.kpi-desc{margin:2px 0 0;font-size:12px;color:#64748b;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kpi-value{margin:0;flex-shrink:0;font-size:22px;font-weight:700;letter-spacing:-.01em;font-variant-numeric:tabular-nums;color:#1e293b;line-height:1}
.kpi-value small{margin-left:3px;font-size:12px;font-weight:400;color:#64748b}

/* ===== 화면 전체 여백 줄이기 (업무 화면용 촘촘한 배치) ===== */
header.h-\[72px\]{height:56px}
aside .h-\[76px\]{height:60px}
main#production{padding:16px 20px !important}
#production .text-\[27px\]{font-size:22px;line-height:1.3}
#production .mb-6{margin-bottom:14px}
#production .mb-5{margin-bottom:12px}
#production .mt-5{margin-top:12px}
#production .my-5{margin-top:12px;margin-bottom:12px}
#production .gap-5{gap:14px}
#production .gap-4{gap:12px}
#production .p-5{padding:14px 16px}
#production .py-5{padding-top:12px;padding-bottom:12px}
#production .px-5{padding-left:16px;padding-right:16px}
#production .min-h-11{min-height:38px}
#production .min-h-12{min-height:34px}
#production td.py-4,#production th.py-4,#production td .py-4,#production th.py-3\.5,#production td.py-3\.5{padding-top:8px;padding-bottom:8px}
#production tbody td.py-4{padding-top:8px;padding-bottom:8px}
#production .py-4{padding-top:9px;padding-bottom:9px}
#production .space-y-6>:not([hidden])~:not([hidden]){margin-top:16px}

/* ===== 화면 설명을 제목과 같은 줄로 ===== */
#production div:has(> div > h1.text-\[27px\]),
#production div:has(> h1.text-\[27px\]){display:flex;flex-wrap:wrap;align-items:center;column-gap:14px;row-gap:2px}
#production div:has(> div > h1.text-\[27px\]) > p.mt-2,
#production div:has(> h1.text-\[27px\]) > p.mt-2{margin-top:0}
main#production > h1.text-\[27px\]{display:inline-block;vertical-align:middle;margin-bottom:14px}
main#production > h1.text-\[27px\] + p{display:inline-block;vertical-align:middle;margin:0 0 14px 14px}
/* ===== BOM 관리 ===== */
.bom-grid{display:grid;gap:14px;grid-template-columns:1fr}
@media (min-width:1280px){.bom-grid{grid-template-columns:320px minmax(0,1fr)}}
.bom-list{list-style:none;margin:0;padding:6px;max-height:560px;overflow-y:auto}
.bom-list button{display:grid;grid-template-columns:1fr auto;gap:0 8px;width:100%;text-align:left;padding:8px 10px;border-radius:6px;font-size:13px;color:#334155}
.bom-list button:hover{background:#f1f5f9}
.bom-list button.on{background:#eff6ff;box-shadow:inset 3px 0 0 #2563eb}
.bom-code{font-weight:600;color:#1d4ed8;font-size:12px}
.bom-name{grid-column:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bom-count{grid-column:2;grid-row:1 / span 2;align-self:center;font-size:12px;color:#64748b}
.bom-form{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}
@media (min-width:900px){.bom-form{grid-template-columns:130px minmax(0,1fr) 140px 80px 80px 70px minmax(0,1fr) auto}}

/* ===== 화면 탭 ===== */
.tabbar{display:flex;align-items:flex-end;gap:8px;border-bottom:1px solid #cbd5e1;margin:-4px 0 14px}
.tabbar-list{display:flex;align-items:flex-end;gap:4px;min-width:0;overflow-x:auto;overflow-y:hidden;margin-bottom:-1px;padding-top:2px;scrollbar-width:thin}
.tab{display:flex;align-items:center;flex-shrink:0;border:1px solid #cbd5e1;border-radius:8px 8px 0 0;background:#e9eef5}
.tab-name{padding:7px 2px 7px 14px;font-size:13px;color:#475569;white-space:nowrap}
.tab-x{padding:4px 10px 4px 6px;font-size:16px;line-height:1;color:#94a3b8}
.tab-x:hover{color:#b91c1c}
.tab:hover{background:#f1f5f9}
.tab.on{background:#fff;box-shadow:inset 0 2px 0 #2563eb;border-bottom-color:#fff}
.tab.on .tab-name{color:#0f172a;font-weight:600}
.tab-count{margin-left:auto;flex-shrink:0;padding:0 2px 7px;font-size:12px;color:#64748b;font-variant-numeric:tabular-nums}
.tab-count.full{color:#c2410c;font-weight:600}
.tab-notice{display:flex;align-items:center;gap:8px;margin:-6px 0 14px;padding:8px 12px;border-radius:6px;background:#fff7ed;color:#9a3412;font-size:13px}
.tab-notice-x{margin-left:auto;font-size:16px;line-height:1;color:#9a3412}
.tab-empty{border:1px dashed #cbd5e1;border-radius:8px;background:#fff;padding:56px 16px;text-align:center;color:#475569;font-size:14px}

/* ===== BOM 트리 + 너비 조절 ===== */
@media (min-width:1280px){.bom-grid{grid-template-columns:var(--bom-left,380px) 10px minmax(0,1fr);gap:4px}}
.bom-split{display:none}
@media (min-width:1280px){.bom-split{display:flex;align-items:center;justify-content:center;cursor:col-resize;touch-action:none;border-radius:4px}}
.bom-split::before{content:"";position:absolute}
.bom-split-grip{width:4px;height:44px;border-radius:2px;background:#cbd5e1;transition:background .15s}
.bom-split:hover .bom-split-grip,.bom-split:focus-visible .bom-split-grip,body.is-resizing .bom-split-grip{background:#2563eb;height:72px}
.bom-split:focus-visible{outline:2px solid #93c5fd}
body.is-resizing{cursor:col-resize;user-select:none}
.bom-tree{list-style:none;margin:0;padding:6px 6px 10px;max-height:max(320px,calc(100vh - 300px));overflow:auto}
.bom-tree ul{list-style:none;margin:0 0 0 15px;padding:0 0 0 4px;border-left:1px dashed #cbd5e1}
.tn{display:flex;align-items:center;border-radius:6px}
.tn:hover{background:#f1f5f9}
.tn.on{background:#eff6ff;box-shadow:inset 3px 0 0 #2563eb}
.tn.hit .tn-name,.tn.hit .tn-code{background:#fef08a}
.tn-caret{width:18px;flex-shrink:0;align-self:stretch;font-size:11px;color:#64748b}
.tn-caret:disabled{cursor:default}
.tn-main{display:flex;align-items:center;gap:6px;flex:1;min-width:0;padding:5px 8px 5px 0;text-align:left;font-size:13px;color:#334155;white-space:nowrap}
.tn-ico{width:16px !important;height:16px !important}
.tn-ico.folder{color:#d97706}
.tn-ico.file{color:#94a3b8}
.tn-code{flex-shrink:0;font-size:12px;font-weight:600;color:#1d4ed8}
.tn-name{min-width:0;overflow:hidden;text-overflow:ellipsis}
.tn-type{flex-shrink:0;padding:0 5px;border-radius:4px;background:#fef3c7;color:#92400e;font-size:10px;line-height:16px}
.tn-qty{margin-left:auto;flex-shrink:0;padding-left:6px;font-size:11px;color:#64748b;font-variant-numeric:tabular-nums}
.bom-crumbs{margin:0 0 2px;font-size:12px;color:#64748b}
.bom-crumbs button{color:#1d4ed8}
.bom-crumbs button:hover{text-decoration:underline}

/* ===== 왼쪽 메뉴 너비 조절 ===== */
aside.w-\[224px\]{width:var(--side-w,224px)}
@media (min-width:1024px){.lg\:ml-\[224px\]{margin-left:var(--side-w,224px)}}
.side-split{position:absolute;top:0;right:-4px;width:8px;height:100%;cursor:col-resize;z-index:40;touch-action:none}
.side-split::after{content:"";position:absolute;top:0;bottom:0;left:3px;width:2px;background:transparent;transition:background .15s}
.side-split:hover::after,.side-split:focus-visible::after,body.is-resizing-side .side-split::after{background:#3b82f6}
.side-split:focus-visible{outline:none}
aside nav button{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* 그리드 페이지 나누기 (common.js usePager · PagerHead · PagerFooter) */
.pager-head{display:inline-flex;align-items:center;margin-left:10px;font-size:13px;font-weight:400;color:#475569;white-space:nowrap}
.pager-count strong{color:#1d4ed8;font-weight:700}
.pager-range{color:#64748b}
.pager-size{display:inline-flex;align-items:center;gap:6px}
.pager-size select{height:26px;padding:0 4px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#334155;font-size:13px}
.grid-no{width:56px;text-align:right;color:#64748b;font-variant-numeric:tabular-nums}
.list-no{display:inline-block;min-width:22px;margin-right:6px;color:#64748b;font-weight:400;text-align:right;font-variant-numeric:tabular-nums}
html[data-theme="dark"] .list-no{color:#94a3b8}
.pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px;padding:12px 16px;border-top:1px solid #e2e8f0}
.pager button{min-width:34px;height:34px;padding:0 8px;border:1px solid #e2e8f0;border-radius:6px;background:#fff;color:#334155;font-size:13px;font-variant-numeric:tabular-nums}
.pager button:hover:not(:disabled){border-color:#3b82f6;color:#1d4ed8}
.pager button.on{border-color:#2563eb;background:#2563eb;color:#fff;font-weight:600}
.pager button:disabled{opacity:.4;cursor:default}
.pager-info{margin-left:10px;font-size:12px;color:#64748b}
html[data-theme="dark"] .pager-head{color:#94a3b8}
html[data-theme="dark"] .pager-count strong{color:#93c5fd}
html[data-theme="dark"] .pager-size select,html[data-theme="dark"] .pager button{border-color:#334155;background:#1e293b;color:#cbd5e1}
html[data-theme="dark"] .pager{border-top-color:#334155}
html[data-theme="dark"] .pager button:hover:not(:disabled){border-color:#60a5fa;color:#bfdbfe}
html[data-theme="dark"] .pager button.on{border-color:#2563eb;background:#2563eb;color:#fff}
html[data-theme="dark"] .grid-no,html[data-theme="dark"] .pager-range,html[data-theme="dark"] .pager-info{color:#94a3b8}
/* DB 조회 안내 줄 (시스템관리 화면 위) */
.db-note{margin-bottom:12px;padding:6px 12px;border-radius:6px;font-size:12px;border:1px solid #bfdbfe;background:#eff6ff;color:#1e40af}
.db-note.loading{border-color:#e2e8f0;background:#f8fafc;color:#475569}
.db-note.error{border-color:#fecaca;background:#fef2f2;color:#b91c1c}
html[data-theme="dark"] .db-note{border-color:rgba(59,130,246,.4);background:rgba(59,130,246,.12);color:#bfdbfe}
html[data-theme="dark"] .db-note.loading{border-color:#334155;background:#172235;color:#94a3b8}
html[data-theme="dark"] .db-note.error{border-color:rgba(239,68,68,.45);background:rgba(239,68,68,.14);color:#fca5a5}
/* 왼쪽 메뉴: 마우스를 올린 메뉴에 테두리 박스(선만) — 모드별 색은 아래 */
.side-item{--side-hover:#60a5fa;transition:box-shadow .12s}
.side-item:hover{box-shadow:inset 0 0 0 1.5px var(--side-hover)}
.side-item.bg-blue-600{--side-hover:#fff}
html[data-theme="light"] .side-item{--side-hover:#2563eb}
html[data-theme="light"] .side-item.bg-blue-600{--side-hover:#1e3a8a}
html[data-theme="dark"] .side-item{--side-hover:#60a5fa}
html[data-theme="dark"] .side-item.bg-blue-600{--side-hover:#bfdbfe}
/* ===================================================================
   화면 모드 (html[data-theme] = default | light | dark)
   default = 지금 모습(남색 메뉴 + 밝은 본문) → 덮어쓰기 없음
   =================================================================== */

/* ----- 모드 전환 버튼 ----- */
.theme-switch{display:inline-flex;gap:2px;padding:2px;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc}
.theme-switch button{display:flex;align-items:center;gap:5px;padding:4px 9px;border-radius:6px;font-size:12px;color:#475569;white-space:nowrap}
.theme-switch button:hover{color:#1e293b}
.theme-switch button.on{background:#fff;color:#1d4ed8;font-weight:600;box-shadow:0 1px 2px rgba(15,23,42,.12)}
.theme-dot{width:12px;height:12px;flex-shrink:0;border-radius:50%;border:1px solid #94a3b8}
.theme-dot.default{background:linear-gradient(90deg,#111d32 50%,#fff 50%)}
.theme-dot.light{background:#fff}
.theme-dot.dark{background:#0b1220}

/* ----- 라이트: 메뉴도 흰색 ----- */
html[data-theme="light"] aside.bg-\[\#111d32\]{background:#fff;border-right:1px solid #e2e8f0;color:#334155}
html[data-theme="light"] aside .text-white{color:#0f172a}
html[data-theme="light"] aside .bg-blue-600,html[data-theme="light"] aside .bg-blue-600 *{color:#fff}
html[data-theme="light"] aside .text-slate-300{color:#64748b}
html[data-theme="light"] aside .border-slate-700{border-color:#e2e8f0}
html[data-theme="light"] aside .hover\:bg-slate-800:hover{background:#f1f5f9}
html[data-theme="light"] aside nav button:not(.bg-blue-600){color:#334155}
html[data-theme="light"] .lg-brand{background:#fff;color:#475569;border-right:1px solid #e2e8f0}
html[data-theme="light"] .lg-logo,html[data-theme="light"] .lg-headline{color:#0f172a}
html[data-theme="light"] .lg-eyebrow{color:#2563eb}

/* ----- 다크 ----- */
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="dark"] body{background:#0b1220}
html[data-theme="dark"] .bg-\[\#f5f7fb\]{background:#0f172a}
html[data-theme="dark"] aside.bg-\[\#111d32\]{background:#0b1220;border-right:1px solid #1e293b}
html[data-theme="dark"] .bg-white{background:#1e293b}
html[data-theme="dark"] .bg-slate-50,html[data-theme="dark"] .bg-\[\#f8f9fc\]{background:#172235}
html[data-theme="dark"] .bg-slate-100{background:#334155}
html[data-theme="dark"] .border-slate-100{border-color:#273449}
html[data-theme="dark"] .border-slate-200{border-color:#334155}
html[data-theme="dark"] .border-slate-300{border-color:#475569}
html[data-theme="dark"] .divide-slate-100>:not([hidden])~:not([hidden]){border-color:#273449}
html[data-theme="dark"] .text-slate-800{color:#e2e8f0}
html[data-theme="dark"] .text-slate-700{color:#cbd5e1}
html[data-theme="dark"] .text-slate-600,html[data-theme="dark"] .text-slate-500{color:#94a3b8}
html[data-theme="dark"] .text-slate-400{color:#64748b}
html[data-theme="dark"] .text-blue-600{color:#60a5fa}
html[data-theme="dark"] .text-blue-700,html[data-theme="dark"] .text-blue-800{color:#93c5fd}
html[data-theme="dark"] .bg-blue-50{background:rgba(59,130,246,.16)}
html[data-theme="dark"] .bg-blue-100{background:rgba(59,130,246,.28)}
html[data-theme="dark"] .border-blue-100{border-color:rgba(59,130,246,.35)}
html[data-theme="dark"] .bg-emerald-50{background:rgba(16,185,129,.16)}
html[data-theme="dark"] .bg-emerald-100{background:rgba(16,185,129,.28)}
html[data-theme="dark"] .text-emerald-600{color:#34d399}
html[data-theme="dark"] .text-emerald-700,html[data-theme="dark"] .text-emerald-800{color:#6ee7b7}
html[data-theme="dark"] .bg-orange-50{background:rgba(249,115,22,.16)}
html[data-theme="dark"] .border-orange-200{border-color:rgba(249,115,22,.45)}
html[data-theme="dark"] .text-orange-600,html[data-theme="dark"] .text-orange-700,html[data-theme="dark"] .text-orange-800{color:#fdba74}
html[data-theme="dark"] .bg-red-50{background:rgba(239,68,68,.16)}
html[data-theme="dark"] .text-red-700,html[data-theme="dark"] .text-red-800{color:#fca5a5}
html[data-theme="dark"] .hover\:bg-slate-50:hover{background:#273449}
html[data-theme="dark"] .hover\:bg-blue-50:hover,html[data-theme="dark"] .hover\:bg-blue-50\/50:hover,html[data-theme="dark"] .hover\:bg-blue-50\/40:hover{background:rgba(59,130,246,.14)}
html[data-theme="dark"] .hover\:bg-orange-50:hover{background:rgba(249,115,22,.16)}
html[data-theme="dark"] .disabled\:bg-slate-100:disabled{background:#273449}
html[data-theme="dark"] .disabled\:text-slate-500:disabled{color:#64748b}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#64748b}
/* 차트(SVG) */
html[data-theme="dark"] svg text{fill:#cbd5e1}
html[data-theme="dark"] svg [stroke="#e2e8f0"],html[data-theme="dark"] svg [stroke="#f1f5f9"],html[data-theme="dark"] svg [stroke="#eef2f7"]{stroke:#334155}
html[data-theme="dark"] svg [fill="#ffffff"],html[data-theme="dark"] svg [fill="#fff"],html[data-theme="dark"] svg [fill="white"]{fill:#1e293b}
/* 직접 만든 요소들 */
html[data-theme="dark"] .kpi{background:#1e293b;border-color:#334155}
html[data-theme="dark"] .kpi-title,html[data-theme="dark"] .kpi-desc,html[data-theme="dark"] .kpi-value small{color:#94a3b8}
html[data-theme="dark"] .kpi-value{color:#f1f5f9}
html[data-theme="dark"] .tabbar{border-bottom-color:#334155}
html[data-theme="dark"] .tab{background:#111a2c;border-color:#334155}
html[data-theme="dark"] .tab:hover{background:#172235}
html[data-theme="dark"] .tab.on{background:#1e293b;border-bottom-color:#1e293b}
html[data-theme="dark"] .tab-name{color:#94a3b8}
html[data-theme="dark"] .tab.on .tab-name{color:#f1f5f9}
html[data-theme="dark"] .tab-notice{background:rgba(249,115,22,.16);color:#fdba74}
html[data-theme="dark"] .tab-notice-x{color:#fdba74}
html[data-theme="dark"] .tab-empty{background:#1e293b;border-color:#334155;color:#94a3b8}
html[data-theme="dark"] .bom-tree ul{border-left-color:#334155}
html[data-theme="dark"] .tn:hover{background:#273449}
html[data-theme="dark"] .tn.on{background:rgba(59,130,246,.18)}
html[data-theme="dark"] .tn.hit .tn-name,html[data-theme="dark"] .tn.hit .tn-code{background:rgba(250,204,21,.3)}
html[data-theme="dark"] .tn-main,html[data-theme="dark"] .tn-name{color:#cbd5e1}
html[data-theme="dark"] .tn-code,html[data-theme="dark"] .bom-crumbs button{color:#93c5fd}
html[data-theme="dark"] .tn-type{background:rgba(245,158,11,.2);color:#fcd34d}
html[data-theme="dark"] .bom-split-grip{background:#475569}
html[data-theme="dark"] .theme-switch{background:#0f172a;border-color:#334155}
html[data-theme="dark"] .theme-switch button{color:#94a3b8}
html[data-theme="dark"] .theme-switch button.on{background:#334155;color:#e2e8f0}
/* 로그인 화면 */
html[data-theme="dark"] .lg-wrap{background:#0f172a;color:#e2e8f0}
html[data-theme="dark"] .lg-brand{background:#0b1220}
html[data-theme="dark"] .lg-card{background:#1e293b;border-color:#334155}
html[data-theme="dark"] .lg-sub,html[data-theme="dark"] .lg-check,html[data-theme="dark"] .lg-demo{color:#94a3b8 !important}
html[data-theme="dark"] .lg-card label{color:#cbd5e1}
html[data-theme="dark"] .lg-demo{border-top-color:#334155}
html[data-theme="dark"] .lg-demo strong{color:#e2e8f0}
html[data-theme="dark"] .lg-demo-list button{background:#273449;border-color:#475569;color:#cbd5e1}
html[data-theme="dark"] .lg-error{background:rgba(239,68,68,.16);color:#fca5a5}

/* 좁은 화면: 모드 버튼은 색 점만, 헤더 버튼 줄바꿈 방지 */
@media (max-width:767px){
  .theme-switch button{font-size:0;gap:0;padding:5px 6px}
  header.h-\[72px\]{gap:8px;padding-left:12px;padding-right:12px}
  header.h-\[72px\]{height:auto;min-height:56px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px}
  header.h-\[72px\] > div:last-child{gap:8px;min-width:0;flex-wrap:wrap;justify-content:flex-end;margin-left:auto}
  header.h-\[72px\] button{white-space:nowrap}
}
/* ===== 라우팅 관리 ===== */
.route-list{max-height:max(260px,calc(100vh - 366px))}
.bom-count.none{color:#c2410c;font-weight:600}
.route-form{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}
@media (min-width:900px){.route-form{grid-template-columns:76px minmax(0,1.3fr) 104px 110px 88px 88px minmax(0,1fr) auto}}
html[data-theme="dark"] .bom-list button{color:#cbd5e1}
html[data-theme="dark"] .bom-list button:hover{background:#273449}
html[data-theme="dark"] .bom-list button.on{background:rgba(59,130,246,.18)}
html[data-theme="dark"] .bom-code{color:#93c5fd}
html[data-theme="dark"] .bom-count{color:#94a3b8}
html[data-theme="dark"] .bom-count.none{color:#fdba74}
/* ===== 모든 화면: 여백 더 줄이기 + 검색 영역 한 줄 ===== */
main#production .tabbar{margin-bottom:6px}
#production [data-view] .mb-6,#production [data-view] .mb-4{margin-bottom:8px}
#production [data-view] .mb-3{margin-bottom:6px}
#production [data-view] .gap-4{gap:8px}
#production [data-view] .kpi{padding:8px 12px}
/* 검색(조회조건) 영역: 라벨을 입력칸 왼쪽에, 높이 32px */
#production [data-view] :is(form.items-end, form:has(> div.items-end)){padding:6px 12px}
#production [data-view] :is(form.items-end, form > div.items-end){gap:12px;align-items:center}
#production [data-view] :is(form.items-end, form > div.items-end) label.grid{display:flex;align-items:center;gap:6px;white-space:nowrap}
#production [data-view] :is(form.items-end, form > div.items-end) label.grid > :is(input, select){flex:1;min-width:0}
#production [data-view] :is(form.items-end, form > div.items-end) label.grid > .stk-combo{flex:1;min-width:0}
#production [data-view] :is(form.items-end, form > div.items-end) fieldset{display:flex;align-items:center;gap:6px}
#production [data-view] :is(form.items-end, form > div.items-end) fieldset > legend{float:left;margin:0 6px 0 0;white-space:nowrap}
#production [data-view] :is(form.items-end, form > div.items-end) .min-h-11{min-height:32px;height:32px}
#production [data-view] :is(form.items-end, form > div.items-end) .min-h-12{min-height:32px}
/* ===== 기본·라이트: 박스 경계와 마우스 올린 행을 뚜렷하게 (다크는 그대로) ===== */
html[data-theme="light"] .bg-\[\#f5f7fb\]{background:#e9eef5}
html:not([data-theme="dark"]) #production :is(section.border-slate-200, form.border-slate-200, aside.border-slate-200, .kpi){border-color:#c7d2e0;box-shadow:0 1px 3px rgba(15,23,42,.08)}
html:not([data-theme="dark"]) #production thead.bg-slate-50{background:#eef2f7}
html:not([data-theme="dark"]) #production thead.border-slate-200{border-color:#c7d2e0}
html:not([data-theme="dark"]) #production .divide-slate-100>:not([hidden])~:not([hidden]){border-color:#e2e8f0}
html:not([data-theme="dark"]) #production tbody tr{transition:background-color .08s}
/* 왼쪽 목록·트리 */
html:not([data-theme="dark"]) .bom-list button:hover,html:not([data-theme="dark"]) .tn:hover{background:#dbeafe}
html:not([data-theme="dark"]) .bom-list button.on,html:not([data-theme="dark"]) .tn.on{background:#cfe0fb}
/* 라우팅: 실적 공정 수 현황 칩 */
.route-rep{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-top:8px}
.route-rep-title{font-size:12px;color:#64748b;margin-right:2px}
.route-rep button{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:999px;border:1px solid #cbd5e1;background:#fff;font-size:12px;color:#334155}
.route-rep button b{font-weight:700;color:#1d4ed8}
.route-rep button.on{background:#2563eb;border-color:#2563eb;color:#fff}
.route-rep button.on b{color:#fff}
.route-rep button.warn{border-color:#fdba74;color:#9a3412}
html[data-theme="dark"] .route-rep button{background:#1e293b;border-color:#475569;color:#cbd5e1}
html[data-theme="dark"] .route-rep button b{color:#93c5fd}
html[data-theme="dark"] .route-rep button.on{background:#2563eb;border-color:#2563eb;color:#fff}
/* 안내 문구: 화면 공간을 차지하지 않는 알림 (오른쪽 아래, 잠시 후 사라짐) */
.toast-msg{position:fixed;right:20px;bottom:20px;z-index:60;max-width:420px;padding:10px 14px;border-radius:8px;background:#1e293b;color:#fff;font-size:13px;box-shadow:0 8px 24px rgba(15,23,42,.25);pointer-events:none;animation:toastFade 4s forwards}
@keyframes toastFade{0%{opacity:0;transform:translateY(6px)}8%{opacity:1;transform:none}80%{opacity:1}100%{opacity:0;visibility:hidden}}
html[data-theme="dark"] .toast-msg{background:#e2e8f0;color:#0f172a}
/* 공정 진행 현황: 선택된 공정 ('+ 입력' 대상) */
.step-pick{background:#dbeafe;box-shadow:inset 0 0 0 2px #2563eb}
html[data-theme="dark"] .step-pick{background:rgba(37,99,235,.25);box-shadow:inset 0 0 0 2px #60a5fa}
/* 공정 진행 현황: 공정 이름 부분(누르면 실적 입력 창) */
.step-open{border-radius:4px}
.step-open:hover .block.font-medium{text-decoration:underline;color:#1d4ed8}
html[data-theme="dark"] .step-open:hover .block.font-medium{color:#93c5fd}
/* 공정 진행 현황: 상태(완료·진행중·대기) 선택 박스 */
.step-state{display:inline-flex;align-items:center;justify-content:center;min-width:56px;padding:4px 8px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;box-shadow:0 1px 1px rgba(15,23,42,.06)}
.step-state.is-done{border-color:#6ee7b7;background:#ecfdf5}
.step-state.is-cur{border-color:#93c5fd;background:#eff6ff}
li[role=button]:hover>.step-state{border-color:#2563eb}
.step-pick>.step-state{border-color:#2563eb;box-shadow:0 0 0 1px #2563eb}
html[data-theme="dark"] .step-state{background:#1e293b;border-color:#475569}
html[data-theme="dark"] .step-state.is-done{background:rgba(16,185,129,.12);border-color:#059669}
html[data-theme="dark"] .step-state.is-cur{background:rgba(37,99,235,.18);border-color:#3b82f6}
html[data-theme="dark"] li[role=button]:hover>.step-state,html[data-theme="dark"] .step-pick>.step-state{border-color:#60a5fa}
/* 작업지시 상세: 생산실적 입력칸 + 버튼 (같은 높이, 입력칸은 항상 흰 배경·검정 글자) */
.qty-row{display:flex;align-items:stretch;gap:6px}
.qty-input{flex:1 1 0;min-width:0;height:40px!important;min-height:40px!important;padding:0 10px!important;border:1px solid #94a3b8!important;border-radius:8px;background:#fff!important;color:#0f172a!important;font-size:15px;font-weight:600;text-align:right}
.qty-input:focus{outline:none;border-color:#2563eb!important;box-shadow:0 0 0 2px rgba(37,99,235,.35)}
.qty-input:disabled{background:#f1f5f9!important;color:#64748b!important}
.qty-btn{flex:0 0 auto;height:40px!important;min-height:40px!important;padding:0 12px!important;border-radius:8px;font-size:14px;white-space:nowrap}
/* '이 작업지시' 표시 (모든 화면 모드에서 잘 보이게) */
.mine-badge{background:#334155;color:#fff}
html[data-theme="dark"] .mine-badge{background:#e2e8f0;color:#0f172a}
/* 실적 공정이 아닌 공정(자재투입 등): 건너뜀 표시 */
.step-state.is-skip{border-style:dashed;opacity:.65}

/* ===== 화면 분리 구조: 공통 틀(layout) + 탭마다 화면(iframe) ===== */
.layout-root{height:100vh;overflow:hidden}
.layout-right{height:100vh;display:flex;flex-direction:column;min-width:0}
main#production.layout-main{flex:0 0 auto;width:100%;max-width:none;margin:0;padding:16px 20px 0 !important} /* 해상도에 맞춰 화면 너비 전체 사용 (예전 1680px 제한 없앰) */
.layout-frames{flex:1 1 auto;min-height:0;width:100%;max-width:none;margin:0;display:flex;flex-direction:column}
.screen-frame{flex:1 1 auto;width:100%;min-height:0;border:0;display:block;background:transparent}
.screen-frame[hidden]{display:none}
body.is-resizing .screen-frame{pointer-events:none}
/* 화면(iframe 안): 탭 바로 아래에 붙도록 위 여백만 줄임 */
body.screen-page main#production{padding-top:6px !important}


/* ===== 라벨관리 (자재관리 > 라벨관리) ===== */
.lbl-tabs{display:flex;gap:4px;border-bottom:2px solid #2563eb}
.lbl-tabs button{min-width:84px;padding:6px 16px;border:1px solid #cbd5e1;border-bottom:none;border-radius:6px 6px 0 0;background:#f8fafc;color:#475569;font-size:14px;font-weight:600}
.lbl-tabs button.on{background:#2563eb;border-color:#2563eb;color:#fff}
.lbl-check::before{content:"✔";margin-right:4px;color:#2563eb}
.lbl-print{min-width:64px;height:26px;padding:0 8px;border-radius:4px;background:#2563eb;color:#fff;font-size:12px;font-weight:600}
.lbl-print:hover{background:#1d4ed8}
.lbl-print small{font-size:10px;opacity:.8}
.lbl-act{min-width:120px;min-height:52px;color:#fff;font-weight:600}
html[data-theme="dark"] .lbl-tabs button{border-color:#334155;background:#1e293b;color:#cbd5e1}
html[data-theme="dark"] .lbl-tabs button.on{background:#2563eb;border-color:#2563eb;color:#fff}
html[data-theme="dark"] .lbl-check::before{color:#60a5fa}
.lbl-scroll{max-height:max(300px,48vh);overflow:auto} /* 「입고 정보」: 화면 높이의 약 절반 (큰 모니터에서 더 많이 보임), 아래 입력 · 처리 정보도 한 화면에 */
.lbl-scroll thead th{position:sticky;top:0;z-index:1;background:#f8fafc}
.lbl-scroll tfoot td{position:sticky;bottom:0;background:#fffbeb}
html[data-theme="dark"] .lbl-scroll thead th{background:#1e293b}
html[data-theme="dark"] .lbl-scroll tfoot td{background:#422006}
/* 라벨관리: 같은 처리(분할 · 병합)로 생긴 LOT 묶음 — 왼쪽 색 띠 + 배지 */
.lbl-g0 > td:first-child{box-shadow:inset 5px 0 0 #2563eb}
.lbl-g1 > td:first-child{box-shadow:inset 5px 0 0 #059669}
.lbl-g2 > td:first-child{box-shadow:inset 5px 0 0 #ea580c}
.lbl-g3 > td:first-child{box-shadow:inset 5px 0 0 #7c3aed}
.lbl-g0{background:#eff6ff}.lbl-g1{background:#ecfdf5}.lbl-g2{background:#fff7ed}.lbl-g3{background:#f5f3ff}
.lbl-gb{display:inline-flex;align-items:center;padding:1px 8px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}
.lbl-gb0{background:#dbeafe;color:#1d4ed8}.lbl-gb1{background:#d1fae5;color:#047857}.lbl-gb2{background:#ffedd5;color:#c2410c}.lbl-gb3{background:#ede9fe;color:#6d28d9}
.lbl-preview{border:1px dashed #93c5fd;border-radius:8px;background:#f8fbff;padding:8px 12px}
html[data-theme="dark"] .lbl-g0,html[data-theme="dark"] .lbl-g1,html[data-theme="dark"] .lbl-g2,html[data-theme="dark"] .lbl-g3{background:#172033}
html[data-theme="dark"] .lbl-preview{background:#172033;border-color:#1e40af}
/* 라벨관리: 선택 체크박스 2배 크기 */
.lbl-grid input[type="checkbox"]{width:26px;height:26px;cursor:pointer;accent-color:#2563eb;vertical-align:middle}

/* ===== 합계 줄(tfoot)이 있는 목록: 합계가 항상 보이게 =====
   목록 상자 높이를 '목록 시작 위치 ~ 창 아래 끝'으로 맞추고(common.js fitGrids, 해상도 상관없이) 그 안에서 스크롤 — 머리줄은 위, 합계 줄은 아래에 고정
   (stock.js 입고·출고·재고·수불, 라우팅, 생산계획, 생산실적 관리·조회, 라벨관리 처리 정보) */
.overflow-x-auto:not(.lbl-scroll):has(> table > tfoot){overflow:auto} /* 높이는 common.js fitGrids() 가 화면에 맞춰 계산 */
.overflow-x-auto:has(> table > tfoot) > table > thead > tr > th{position:sticky;top:0;z-index:2;background-color:#f8fafc}
.overflow-x-auto:has(> table > tfoot) > table > tfoot:not([class*="bg-"]){background-color:#f8fafc}
.overflow-x-auto:has(> table > tfoot) > table > tfoot > tr{background-color:inherit}
.overflow-x-auto:has(> table > tfoot) > table > tfoot > tr > *{position:sticky;bottom:0;z-index:2;background-color:inherit;box-shadow:inset 0 2px 0 #cbd5e1}
html[data-theme="dark"] .overflow-x-auto:has(> table > tfoot) > table > thead > tr > th{background-color:#1e293b}
html[data-theme="dark"] .overflow-x-auto:has(> table > tfoot) > table > tfoot:not([class*="bg-"]){background-color:#1e293b}
html[data-theme="dark"] .overflow-x-auto:has(> table > tfoot) > table > tfoot > tr > *{box-shadow:inset 0 2px 0 #334155}
/* 페이지 줄(« ‹ 1 2 › »)이 아래에 있는 목록도 같게 — 기준정보 · 시스템관리 목록(masterData), BOM 등
   목록 상자 높이를 화면에 맞춰서 페이지 줄이 항상 보이게, 머리줄은 위에 고정 */
.overflow-x-auto:not(.lbl-scroll):has(+ .pager){overflow:auto}
.overflow-x-auto:has(+ .pager) > table > thead > tr > th{position:sticky;top:0;z-index:2;background-color:#f8fafc}
html[data-theme="dark"] .overflow-x-auto:has(+ .pager) > table > thead > tr > th{background-color:#1e293b}
/* 낮은 화면(창 높이 820px 이하): 요약 카드를 한 줄로 작게 — 목록이 위로 올라와 합계 · 페이지 줄이 보이게 */
@media (max-height: 820px) and (min-width: 700px){
  .grid:has(> .kpi){grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:8px !important;margin-bottom:12px !important}
  .kpi{padding:6px 10px;gap:8px}
  .kpi-icon{width:26px;height:26px}
  .kpi-desc{display:none}
  .kpi-value{font-size:18px}
}
/* 라벨 인쇄 미리보기 (실제 크기 100×50mm 를 화면에 그대로) */
.lbl-pv{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;align-content:flex-start}
.lbl-pv-item{box-shadow:0 1px 4px rgba(15,23,42,.25)}
.lbl-pcell{display:inline-flex;align-items:center;gap:6px}
.lbl-allsel{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;border:1px solid #cbd5e1;border-radius:6px;background:#f8fafc;font-size:14px;font-weight:600;cursor:pointer}
.lbl-allsel input{width:26px;height:26px;accent-color:#2563eb;cursor:pointer}
html[data-theme="dark"] .lbl-allsel{border-color:#334155;background:#1e293b}

/* ===== 왼쪽 메뉴 접기 (아이콘만) — layout.js SideRail · [«]/[»] · Ctrl + B ===== */
.side-logo{position:relative}
.side-toggle{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:6px;border:1px solid #334155;color:#cbd5e1;font-size:16px;line-height:1;background:transparent;cursor:pointer}
.side-toggle:hover{background:#1e293b;color:#fff}
aside.side-collapsed .side-logo{flex-direction:column;justify-content:center;gap:6px;height:96px !important;padding:0 !important}
aside.side-collapsed .side-toggle{margin-left:0}
.side-rail{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 0}
.rail-group{position:relative}
.rail-btn{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:8px;color:#cbd5e1;background:transparent;cursor:pointer}
.rail-btn svg{width:20px;height:20px}
.rail-btn:hover,.rail-btn[aria-expanded="true"]{background:#1e293b;color:#fff;outline:1.5px solid #3b82f6;outline-offset:-1.5px}
.rail-btn.on{background:#2563eb;color:#fff}
.rail-fly{position:absolute;left:52px;top:0;z-index:60;min-width:180px;padding:6px;border-radius:8px;background:#fff;color:#1e293b;border:1px solid #cbd5e1;box-shadow:0 8px 24px rgba(15,23,42,.18);display:flex;flex-direction:column;gap:2px}
.rail-fly::before{content:"";position:absolute;left:-10px;top:0;width:10px;height:100%}
.rail-fly-title{padding:4px 10px 6px;font-size:12px;font-weight:700;color:#64748b;border-bottom:1px solid #e2e8f0;margin-bottom:2px}
.rail-fly button{text-align:left;padding:8px 10px;border-radius:6px;font-size:14px;font-weight:500;color:#1e293b;background:transparent;white-space:nowrap;cursor:pointer}
.rail-fly button:hover{background:#eff6ff;outline:1.5px solid #3b82f6;outline-offset:-1.5px}
.rail-fly button.on{background:#2563eb;color:#fff}
.rail-tip{position:absolute;left:52px;top:10px;z-index:60;padding:4px 10px;border-radius:6px;background:#1e293b;color:#fff;font-size:13px;white-space:nowrap;pointer-events:none}
html[data-theme="light"] .side-toggle{border-color:#cbd5e1;color:#475569}
html[data-theme="light"] .side-toggle:hover{background:#f1f5f9;color:#0f172a}
html[data-theme="light"] .rail-btn{color:#475569}
html[data-theme="light"] .rail-btn:hover,html[data-theme="light"] .rail-btn[aria-expanded="true"]{background:#f1f5f9;color:#0f172a}
html[data-theme="light"] .rail-btn.on{background:#2563eb;color:#fff}
html[data-theme="dark"] .rail-fly{background:#1e293b;color:#e2e8f0;border-color:#334155}
html[data-theme="dark"] .rail-fly-title{color:#94a3b8;border-color:#334155}
html[data-theme="dark"] .rail-fly button{color:#e2e8f0}
html[data-theme="dark"] .rail-fly button:hover{background:#172554}
html[data-theme="dark"] .rail-fly button.on{background:#2563eb;color:#fff}

/* 합계 줄 배경 (bg-amber-50 색이 없어 투명 → 고정된 합계 줄 아래로 행이 비쳐 보이던 문제) */
.bg-amber-50{background-color:#fffbeb}
html[data-theme="dark"] .bg-amber-50{background-color:#3b2a0a}
/* 라벨관리 폐기: 등록 전 확인 · 라벨 재발행 안내 */
.lbl-confirm{border:1.5px solid #dc2626;border-radius:8px;background:#fef2f2;color:#7f1d1d;padding:10px 14px;font-size:14px;display:grid;gap:4px}
.lbl-reprint{display:flex;flex-wrap:wrap;align-items:center;gap:10px;border:1.5px solid #f59e0b;border-radius:8px;background:#fffbeb;color:#78350f;padding:8px 12px;font-size:14px}
.text-amber-700{color:#b45309}
html[data-theme="dark"] .lbl-confirm{background:#450a0a;color:#fecaca}
html[data-theme="dark"] .lbl-reprint{background:#3b2a0a;color:#fde68a}
/* 폐기 정보: LOT 표는 입력 칸 전체 너비, 목록이 길면 그 안에서 스크롤 */
.lbl-scrap-box{grid-column:1 / -1}
.lbl-sctable{overflow:auto;max-height:max(220px,30vh)}
.lbl-sctable thead th{position:sticky;top:0;z-index:1;background:#f8fafc}
.lbl-sctable tfoot td{position:sticky;bottom:0;background:#fffbeb}
html[data-theme="dark"] .lbl-sctable thead th{background:#1e293b}
html[data-theme="dark"] .lbl-sctable tfoot td{background:#3b2a0a}
.col-span-full{grid-column:1 / -1}
/* 라벨관리 입력 칸: 한 줄에 3칸 (좁은 화면은 1칸), 비고 · 폐기 표 · 미리보기는 한 줄 전체 */
.lbl-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px;align-content:start}
@media (max-width:700px){.lbl-form-grid{grid-template-columns:minmax(0,1fr)}}
/* [입력 취소] 등 회색 버튼 배경 (색이 없어 흰 글씨만 보이던 문제) */
.bg-slate-500{background-color:#64748b}
.hover\:bg-slate-600:hover{background-color:#475569}
/* 라벨관리 입력 칸: 칸 이름을 입력칸 왼쪽에 나란히 (품목 [입력칸]) — 세로 공간 절약 */
.lbl-form-grid > label{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:8px}
.lbl-form-grid > label > .lbl-check{white-space:nowrap;font-size:13px}
.lbl-form-grid > label > p{min-height:40px}
.lbl-form-grid > label input,.lbl-form-grid > label select{min-height:40px}
/* 입고 · 출고 목록: 품목코드 · 품목명을 누르면 수정 팝업 */
.stk-edit{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer;text-align:left;text-decoration:underline;text-decoration-color:#93c5fd;text-underline-offset:3px}
.stk-edit:hover{color:#1d4ed8;text-decoration-color:#1d4ed8}
.stk-edit:focus-visible{outline:2px solid #2563eb;outline-offset:2px;border-radius:2px}
html[data-theme="dark"] .stk-edit:hover{color:#93c5fd}
/* 날짜 칸의 달력 아이콘 2배 (모든 화면) */
/* 날짜 칸 달력 아이콘: 2배 크기 + 색을 고정한 그림 (브라우저 기본 아이콘은 마우스 · 포커스 상태에 따라 색이 바뀌어 안 보일 수 있음) */
input[type="date"]::-webkit-calendar-picker-indicator{width:32px;height:32px;padding:0;margin-left:4px;cursor:pointer;border-radius:6px;opacity:1;color:transparent;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e40af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16.5' rx='2'/%3E%3Cpath d='M3 9.5h18M8 2.5v4M16 2.5v4'/%3E%3Crect x='7' y='13' width='3' height='3' fill='%231e40af' stroke='none'/%3E%3C/svg%3E") center/27px 27px no-repeat}
input[type="date"]::-webkit-calendar-picker-indicator:hover{background-color:#dbeafe}
html[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393c5fd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16.5' rx='2'/%3E%3Cpath d='M3 9.5h18M8 2.5v4M16 2.5v4'/%3E%3Crect x='7' y='13' width='3' height='3' fill='%2393c5fd' stroke='none'/%3E%3C/svg%3E")}
html[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator:hover{background-color:rgba(96,165,250,.25)}
/* 검색 선택 (품목 · 거래처) — stock.js ItemCombo */
.stk-combo{position:relative}
.stk-combo-btn{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;font-weight:400;background:#fff;cursor:pointer}
.stk-combo-btn:disabled{cursor:not-allowed;background:#f1f5f9;color:#64748b}
.stk-combo-caret{color:#64748b;font-size:12px}
.stk-combo-pop{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:70;background:#fff;border:1px solid #cbd5e1;border-radius:8px;box-shadow:0 12px 28px rgba(15,23,42,.18);overflow:hidden}
.stk-combo-search{display:flex;align-items:center;gap:8px;padding:8px;border-bottom:1px solid #e2e8f0;background:#f8fafc}
.stk-combo-list{max-height:280px;overflow-y:auto;margin:0;padding:4px 0;list-style:none;font-weight:400}
.stk-combo-list li{padding:7px 12px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stk-combo-list li.sel{background:#eff6ff}
.stk-combo-list li.act{background:#2563eb;color:#fff}
.stk-combo-list li.act .text-slate-500{color:#dbeafe}
.stk-combo-list li.empty{cursor:default;color:#64748b;text-align:center;padding:16px}
html[data-theme="dark"] .stk-combo-btn,html[data-theme="dark"] .stk-combo-pop{background:#0f172a;border-color:#334155}
html[data-theme="dark"] .stk-combo-search{background:#1e293b;border-color:#334155}
html[data-theme="dark"] .stk-combo-list li.sel{background:#1e3a8a}
/* 품목 조건 자동완성 (stock.js ItemTypeahead) */
.stk-ta-head{display:flex;justify-content:space-between;gap:12px;padding:6px 12px;font-size:12px;font-weight:400;color:#475569;background:#f8fafc;border-bottom:1px solid #e2e8f0}
.stk-ta-picked{position:absolute;right:36px;top:50%;transform:translateY(-50%);max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:400;color:#1d4ed8;pointer-events:none}
html[data-theme="dark"] .stk-ta-head{background:#1e293b;color:#cbd5e1;border-color:#334155}
html[data-theme="dark"] .stk-ta-picked{color:#93c5fd}
/* 품목 조건: '품목' + 코드 칸 + 품목명 칸 (한 줄) */
.stk-item-pair{display:flex;flex:1;align-items:center;gap:6px;min-width:340px;white-space:nowrap}
.stk-item-pair .stk-pair-code{flex:0 0 170px}
.stk-item-pair .stk-pair-name{flex:1;min-width:0}
.stk-item-pair .stk-combo-pop{right:auto;min-width:360px;width:100%}
.stk-item-pair .stk-pair-name .stk-combo-pop{left:auto;right:0}
/* 출고된 LOT 표시 (입고 목록) */
.stk-lock{margin-left:6px;padding:1px 6px;border-radius:4px;font-size:11px;font-weight:600;background:#fef3c7;color:#92400e;white-space:nowrap}
html[data-theme="dark"] .stk-lock{background:#78350f;color:#fde68a}
/* 입고 목록: 원본 입고 · 분할 LOT · 병합 LOT · 원래 LOT 을 배경색 + 왼쪽 색 띠로 구분 */
.stk-sublot td{font-size:13px;border-top:1px solid #fff}
tr.stk-parent td,.stk-legend.stk-parent{background:#fef08a;color:#1e293b;font-weight:600}
tr.stk-split td,.stk-legend.stk-split{background:#bfdbfe;color:#1e3a8a}
tr.stk-merged td,.stk-legend.stk-merged{background:#86efac;color:#14532d;font-weight:600}
tr.stk-source td,.stk-legend.stk-source{background:#fed7aa;color:#7c2d12}
tr.stk-parent td:first-child{box-shadow:inset 6px 0 0 #ca8a04}
tr.stk-split td:first-child{box-shadow:inset 6px 0 0 #2563eb}
tr.stk-merged td:first-child{box-shadow:inset 6px 0 0 #15803d}
tr.stk-source td:first-child{box-shadow:inset 6px 0 0 #ea580c}
.stk-legend{padding:2px 8px;border-radius:4px;font-weight:600}
html[data-theme="dark"] tr.stk-parent td,html[data-theme="dark"] .stk-legend.stk-parent{background:#713f12;color:#fef9c3}
html[data-theme="dark"] tr.stk-split td,html[data-theme="dark"] .stk-legend.stk-split{background:#1e3a8a;color:#dbeafe}
html[data-theme="dark"] tr.stk-merged td,html[data-theme="dark"] .stk-legend.stk-merged{background:#14532d;color:#dcfce7}
html[data-theme="dark"] tr.stk-source td,html[data-theme="dark"] .stk-legend.stk-source{background:#7c2d12;color:#ffedd5}
html[data-theme="dark"] .stk-sublot td{border-top-color:#0f172a}
/* 원본 입고 줄의 분할 · 병합 정보 */
.stk-count{display:inline-block;margin-left:6px;padding:2px 8px;border-radius:4px;font-size:12px;font-weight:700;white-space:nowrap}
.stk-split-tag{background:#1d4ed8;color:#fff}
.stk-merge-tag{background:#15803d;color:#fff}
/* 분할 정보는 입고번호 아래 줄에 (표가 옆으로 넓어지지 않게) */
tbody tr:not(.stk-sublot) .stk-count{display:table;margin:2px 0 0}
/* 입고 목록 LOT 줄의 수정 버튼 */
.stk-lot-edit{height:26px;padding:0 10px;border-radius:4px;border:1px solid #1d4ed8;background:#fff;color:#1d4ed8;font-size:12px;font-weight:600;white-space:nowrap}
.stk-lot-edit:hover{background:#1d4ed8;color:#fff}
/* 수정할 수 있는 LOT 줄 = 원래 배경색 (왼쪽 색 띠만 남겨 어느 입고의 LOT 인지 표시) */
tr.stk-sublot.stk-open td{background:#fff;color:#1e293b;font-weight:400;border-top:1px solid #e2e8f0}
.stk-legend.stk-legend-open{background:#fff;color:#1e293b;border:1px solid #94a3b8}
html[data-theme="dark"] tr.stk-sublot.stk-open td{background:transparent;color:inherit;border-top-color:#334155}
html[data-theme="dark"] .stk-legend.stk-legend-open{background:transparent;color:inherit}
/* 그리드 행 포커스 (마우스 · 키보드 · 선택) : 배경색은 바꾸지 않고 파란 테두리 상자 (모든 목록 화면) */
tbody tr[class*="hover:bg-"]:hover,tbody tr.bg-blue-50,tbody tr.bg-blue-50:hover{background-color:transparent !important}
table tbody tr:hover > :not(:only-child),table tbody tr:focus-within > :not(:only-child),table tbody tr.bg-blue-50 > :not(:only-child),table tbody tr.lbl-on > :not(:only-child){box-shadow:inset 0 3px 0 #2563eb,inset 0 -3px 0 #2563eb !important}
table tbody tr:hover > :first-child:not(:only-child),table tbody tr:focus-within > :first-child:not(:only-child),table tbody tr.bg-blue-50 > :first-child:not(:only-child),table tbody tr.lbl-on > :first-child:not(:only-child){box-shadow:inset 0 3px 0 #2563eb,inset 0 -3px 0 #2563eb,inset 3px 0 0 #2563eb !important}
table tbody tr:hover > :last-child:not(:only-child),table tbody tr:focus-within > :last-child:not(:only-child),table tbody tr.bg-blue-50 > :last-child:not(:only-child),table tbody tr.lbl-on > :last-child:not(:only-child){box-shadow:inset 0 3px 0 #2563eb,inset 0 -3px 0 #2563eb,inset -3px 0 0 #2563eb !important}
/* 파란 배경 줄(분할 · 사용 중 LOT)은 테두리를 흰색으로 */
table tbody tr.stk-split:not(.stk-open):hover > :not(:only-child),table tbody tr.stk-split:not(.stk-open):focus-within > :not(:only-child){box-shadow:inset 0 3px 0 #fff,inset 0 -3px 0 #fff !important}
table tbody tr.stk-split:not(.stk-open):hover > :first-child:not(:only-child),table tbody tr.stk-split:not(.stk-open):focus-within > :first-child:not(:only-child){box-shadow:inset 0 3px 0 #fff,inset 0 -3px 0 #fff,inset 6px 0 0 #fff !important}
table tbody tr.stk-split:not(.stk-open):hover > :last-child:not(:only-child),table tbody tr.stk-split:not(.stk-open):focus-within > :last-child:not(:only-child){box-shadow:inset 0 3px 0 #fff,inset 0 -3px 0 #fff,inset -3px 0 0 #fff !important}
/* 목록 줄의 버튼 : 버튼 크기는 그대로, 줄(테두리 상자)을 키워 버튼이 테두리를 덮지 않게 (위아래 여백 6px) */
table tbody td:has(> button:not(.stk-edit)),table tbody td:has(> span > button){padding-top:6px !important;padding-bottom:6px !important}
table tbody td > button:not(.stk-edit),table tbody td > span > button{vertical-align:middle}
/* 생산계획 날짜 칸: 좁은 수량 입력 */
.qty-input.plan-qty{flex:none;width:58px!important;height:32px!important;min-height:32px!important;padding:0 4px!important;border-radius:6px;font-size:13px}
/* 저장 전에 바꾼 칸: 파란 글자 · 파란 테두리 (비운 칸도 테두리로 보임) */
.qty-input.plan-qty.plan-changed{color:#2563eb!important;border:2px solid #2563eb!important}
/* 생산계획: 왼쪽 계획 · 오른쪽 작업지시 */
/* 제품별 박스: 왼쪽 제품 · 오른쪽 박스 */
.ibox-split{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start}
.ibox-left{flex:0 1 600px}
.ibox-right{flex:1 1 760px}
/* 생산계획 */
.plan-split{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start}
.plan-left{flex:1 1 760px;min-width:0}
.plan-right{flex:0 0 420px;max-width:100%}
.plan-split td.plan-picked{box-shadow:inset 0 0 0 3px #2563eb}
.qty-input.plan-qty.plan-wo{width:96px!important}
/* 작업지시: 공정 1개(두 줄)를 파란 박스 하나로 감쌈 — 줄 단위 박스 대신 */
.plan-right table.plan-ops tbody.plan-op>tr>td{--bt:0 0 #0000;--bb:0 0 #0000;--bl:0 0 #0000;--br:0 0 #0000;box-shadow:var(--bt),var(--bb),var(--bl),var(--br)!important}
.plan-right table.plan-ops tbody.plan-op:is(:hover,:focus-within)>tr:first-child>td{--bt:inset 0 3px 0 #2563eb}
.plan-right table.plan-ops tbody.plan-op:is(:hover,:focus-within)>tr:last-child>td,.plan-right table.plan-ops tbody.plan-op:is(:hover,:focus-within)>tr>td[rowspan="2"]{--bb:inset 0 -3px 0 #2563eb}
.plan-right table.plan-ops tbody.plan-op:is(:hover,:focus-within)>tr:first-child>td:first-child{--bl:inset 3px 0 0 #2563eb}
.plan-right table.plan-ops tbody.plan-op:is(:hover,:focus-within)>tr>td:last-child{--br:inset -3px 0 0 #2563eb}

/* 품목 관리 : BOM 구조 보기 버튼 · 팝업 */
.bom-open{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin-left:8px;vertical-align:middle;border:1px solid #93c5fd;border-radius:6px;background:#eff6ff;color:#1d4ed8}
.bom-open:hover{background:#dbeafe}
.bom-type-link{display:inline-flex;align-items:center;gap:5px;color:#1d4ed8}
.bom-type-link span{text-decoration:underline;text-underline-offset:3px}
.bompop-back{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(15,23,42,.45)}
.bompop{display:flex;flex-direction:column;width:min(820px,100%);max-height:88vh;overflow:hidden;border-radius:14px;background:#fff;color:#1e293b;box-shadow:0 24px 60px rgba(15,23,42,.28)}
.bompop-head{display:flex;align-items:center;gap:12px;padding:18px 20px 16px;border-bottom:1px solid #e2e8f0}
.bompop-mark{display:flex;flex:0 0 auto;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;background:#eff6ff;color:#1d4ed8}
.bompop-mark svg{width:20px;height:20px}
.bompop-title{flex:1;min-width:0}
.bompop-title h2{font-size:18px;font-weight:700;line-height:1.3}
.bompop-title p{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:3px;font-size:13px;color:#475569}
.bompop-title p strong{color:#1d4ed8}
.bompop-x{width:34px;height:34px;border-radius:8px;font-size:22px;line-height:1;color:#64748b}
.bompop-x:hover{background:#f1f5f9;color:#0f172a}
.bompop-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 20px;font-size:13px;color:#475569}
.bompop-bar div{display:flex;gap:6px}
.bompop-bar button{height:30px;padding:0 10px;border:1px solid #e2e8f0;border-radius:6px;font-size:12px;color:#334155;background:#fff}
.bompop-bar button:hover{background:#f1f5f9}
.bompop-note{margin:0 20px 10px;padding:8px 12px;border-radius:6px;background:#fef2f2;color:#b91c1c;font-size:13px}
.bompop-scroll{min-height:0;overflow:auto;margin:0 20px;border:1px solid #e2e8f0;border-radius:10px}
.bompop table{width:100%;min-width:620px;table-layout:fixed;border-collapse:collapse;font-size:13px;text-align:left;white-space:nowrap}
.bompop thead th{position:sticky;top:0;z-index:1;padding:10px 12px;background:#f8fafc;border-bottom:1px solid #e2e8f0;font-size:12px;font-weight:600;color:#64748b;text-align:left}
.bompop tbody td{height:33px;padding:0 12px;border-top:1px solid #f1f5f9;overflow:hidden;text-overflow:ellipsis}
.bompop tbody tr:first-child td{border-top:0}
.bompop tbody tr.bompop-root>td{background:#eff6ff;font-weight:600}
.bompop .num{text-align:right;font-variant-numeric:tabular-nums}
.bompop-node{display:flex;align-items:center;gap:6px;min-width:0}
.bompop-node svg{flex:0 0 auto}
.bompop-caret{flex:0 0 18px;height:22px;font-size:12px;color:#64748b}
.bompop-caret:disabled{cursor:default}
.bompop-code{flex:0 0 auto;font-weight:600;color:#1d4ed8}
.bompop-name{overflow:hidden;text-overflow:ellipsis}
.bompop-type{display:inline-block;padding:1px 8px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:11px;font-weight:500;line-height:18px}
.bompop-type.semi{background:#fef3c7;color:#92400e}
.bompop-type.fin{background:#dbeafe;color:#1e40af}
.bompop-empty{height:120px !important;text-align:center;color:#64748b}
.bompop-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;font-size:12px;color:#64748b}
.bompop-close{flex:0 0 auto;height:36px;min-width:88px;border-radius:8px;background:#2563eb;color:#fff;font-size:13px;font-weight:600}
.bompop-close:hover{background:#1d4ed8}
html[data-theme="dark"] .bom-open{border-color:#3b82f6;background:rgba(59,130,246,.18);color:#93c5fd}
html[data-theme="dark"] .bom-type-link,html[data-theme="dark"] .bompop-code,html[data-theme="dark"] .bompop-title p strong{color:#93c5fd}
html[data-theme="dark"] .bompop{background:#1e293b;color:#e2e8f0}
html[data-theme="dark"] .bompop-head,html[data-theme="dark"] .bompop-scroll{border-color:#334155}
html[data-theme="dark"] .bompop-mark{background:rgba(59,130,246,.18);color:#93c5fd}
html[data-theme="dark"] .bompop-title p,html[data-theme="dark"] .bompop-bar,html[data-theme="dark"] .bompop-foot,html[data-theme="dark"] .bompop-caret,html[data-theme="dark"] .bompop-x{color:#94a3b8}
html[data-theme="dark"] .bompop-x:hover{background:#334155;color:#fff}
html[data-theme="dark"] .bompop-bar button{background:#1e293b;border-color:#334155;color:#cbd5e1}
html[data-theme="dark"] .bompop-bar button:hover{background:#334155}
html[data-theme="dark"] .bompop thead th{background:#0f172a;border-color:#334155;color:#94a3b8}
html[data-theme="dark"] .bompop tbody td{border-color:#334155}
html[data-theme="dark"] .bompop tbody tr.bompop-root>td{background:rgba(59,130,246,.18)}
html[data-theme="dark"] .bompop-type{background:#334155;color:#cbd5e1}
html[data-theme="dark"] .bompop-type.semi{background:rgba(250,204,21,.18);color:#fde68a}
html[data-theme="dark"] .bompop-type.fin{background:rgba(59,130,246,.25);color:#bfdbfe}
/* BOM 트리 조건: 품목형태 + 검색 (좁으면 두 줄) */
.bom-tree-cond{display:flex;flex-wrap:wrap;gap:8px}
.bom-tree-cond>select{flex:0 0 auto}
.bom-tree-cond>input{flex:1 1 150px;width:auto}
.bom-code-link{color:#1d4ed8;text-decoration:underline;text-underline-offset:3px}
html[data-theme="dark"] .bom-code-link{color:#93c5fd}
/* 지시편성 요청수량 칸: 표 줄 높이에 맞게 */
.qty-input.req-ask{width:100px!important;height:32px!important;min-height:32px!important;padding:0 8px!important;border-radius:6px;font-size:13px}
/* ===== 모든 업무 화면(대시보드 제외): 여백과 목록 줄 높이를 낮춰 한 화면에 더 많이 ===== */
main#production:has(>[data-view]:not([data-view="대시보드"])){padding-top:2px!important;padding-bottom:8px!important}
[data-view]:not([data-view="대시보드"]) div.mb-6:has(h1){margin-bottom:3px!important}
[data-view]:not([data-view="대시보드"]) div.mb-6:has(h1) h1{font-size:20px!important;line-height:28px}
[data-view]:not([data-view="대시보드"]) div.mb-6:has(h1) button{min-height:30px!important;height:30px}
[data-view]:not([data-view="대시보드"]) div.mb-6.grid{margin-bottom:4px!important;gap:6px!important}
[data-view]:not([data-view="대시보드"]) form.rounded-lg{margin-bottom:4px!important;padding-top:4px!important;padding-bottom:4px!important}
[data-view]:not([data-view="대시보드"]) form.rounded-lg input:not([type=checkbox]):not([type=radio]),[data-view]:not([data-view="대시보드"]) form.rounded-lg select,[data-view]:not([data-view="대시보드"]) form.rounded-lg button.min-h-11{min-height:30px!important;height:30px!important}
[data-view]:not([data-view="대시보드"]) section.mb-4{margin-bottom:6px!important}
[data-view]:not([data-view="대시보드"]) section>div.border-b:first-child{padding-top:6px!important;padding-bottom:6px!important}
[data-view]:not([data-view="대시보드"]) section>div.border-b:first-child button.min-h-11,[data-view]:not([data-view="대시보드"]) section>div.border-b:first-child input.min-h-11{min-height:30px!important;height:30px!important}
[data-view]:not([data-view="대시보드"]) .overflow-x-auto>table>thead>tr>th{padding-top:8px!important;padding-bottom:8px!important}
[data-view]:not([data-view="대시보드"]) .overflow-x-auto>table>tbody>tr>td{padding-top:3px!important;padding-bottom:3px!important;line-height:18px}
[data-view]:not([data-view="대시보드"]) .overflow-x-auto>table>tbody>tr>td div{line-height:14px;margin-top:0}
[data-view]:not([data-view="대시보드"]) .overflow-x-auto>table>tbody td .lbl-print{height:22px;min-width:54px;font-size:11px}
[data-view]:not([data-view="대시보드"]) .overflow-x-auto>table>tbody td button.min-h-11,[data-view]:not([data-view="대시보드"]) .overflow-x-auto>table>tbody td button.min-h-9{min-height:26px!important;height:26px;font-size:12px}
[data-view]:not([data-view="대시보드"]) .overflow-x-auto>table>tbody td input.qty-input{min-height:30px!important;height:30px!important}
[data-view]:not([data-view="대시보드"]) .overflow-x-auto>table>tfoot>tr>th,[data-view]:not([data-view="대시보드"]) .overflow-x-auto>table>tfoot>tr>td{padding-top:8px!important;padding-bottom:8px!important}
/* 입고번호 칸 둘째 줄: 분할 · 병합 표시 + 상태를 한 줄에 */
tbody tr>td .stk-line2{display:flex;align-items:center;gap:6px;margin-top:2px}
tbody tr:not(.stk-sublot) .stk-line2 .stk-count{display:inline-block;margin:0;padding:1px 6px;font-size:11px;line-height:14px}
.stk-line2 .stk-lock{margin-left:0;line-height:14px}
/* LOT수 숫자와 PRINT 버튼 높이 맞춤 */
tbody td .lbl-print{vertical-align:middle}
/* 업무 화면(대시보드 제외) 위쪽 요약 카드(건수 · 수량 · 품목 수 등)는 보이지 않음 — 2026-12-01 */
[data-view]:not([data-view="대시보드"]) section.kpi{display:none!important}
[data-view]:not([data-view="대시보드"]) div:has(>section.kpi):not(:has(>:not(section.kpi))){display:none!important}
/* 지시편성 : 작업지시 줄 아래에 펼치는 자재 · 하위 BOM */
tr.wo-mats-row>td{padding:0 !important;height:auto !important;background:#f1f5f9 !important;box-shadow:none !important;outline:0 !important}
.wo-mats{margin:0 12px 10px 44px;border:1px solid #cbd5e1;border-top:0;border-radius:0 0 10px 10px;background:#fff;overflow:hidden}
.wo-mats table{width:100%;min-width:1400px;table-layout:fixed;border-collapse:collapse;font-size:13px;text-align:left;white-space:nowrap}
.wo-mats thead th{position:static !important;padding:5px 12px;background:#f8fafc;border-bottom:1px solid #e2e8f0;font-size:12px;font-weight:600;color:#64748b;box-shadow:none !important}
.wo-mats tbody td{height:33px;padding:2px 12px !important;border-top:1px solid #f1f5f9;overflow:hidden;text-overflow:ellipsis}
.wo-mats tr.wo-sub>td{height:30px;background:#f8fafc;color:#475569;box-shadow:none !important}
.wo-mats td.wo-need{font-weight:700;color:#1d4ed8}
html[data-theme="dark"] tr.wo-mats-row>td{background:#0f172a !important}
html[data-theme="dark"] .wo-mats{background:#1e293b;border-color:#334155}
html[data-theme="dark"] .wo-mats thead th{background:#0f172a;border-color:#334155;color:#94a3b8}
html[data-theme="dark"] .wo-mats tbody td{border-color:#334155}
html[data-theme="dark"] .wo-mats tr.wo-sub>td{background:#172033;color:#cbd5e1}
html[data-theme="dark"] .wo-mats td.wo-need{color:#93c5fd}
.wo-mats input.req-ask{display:block;width:100% !important;min-width:0;margin:0}
/* BOM 트리 조건 : 품목형태 선택 칸을 오른쪽 검색 칸과 같은 높이로 */
.bom-tree-cond select,.bom-tree-cond input{box-sizing:border-box;height:30px !important;min-height:30px !important;padding-top:0;padding-bottom:0}
/* 펼치기 · 접기 버튼 크게 (BOM 트리 · BOM 팝업 · 지시편성) */
.tn-caret{width:28px;font-size:22px !important;line-height:1}
.bompop-caret{flex:0 0 28px;height:26px;font-size:22px !important;line-height:1}
button.tn-caret:not(:disabled),button.bompop-caret:not(:disabled){align-self:center;height:26px;border:1px solid #93c5fd;border-radius:6px;background:#eff6ff;color:#1d4ed8;cursor:pointer}
button.tn-caret:not(:disabled):hover,button.bompop-caret:not(:disabled):hover{background:#bfdbfe}
span.bompop-caret{text-align:center;font-size:14px}
button.tree-all{height:30px;padding:0 10px;border:1px solid #cbd5e1;font-size:13px;font-weight:600}
html[data-theme="dark"] button.tn-caret:not(:disabled),html[data-theme="dark"] button.bompop-caret:not(:disabled){border-color:#3b82f6;background:rgba(59,130,246,.2);color:#bfdbfe}
html[data-theme="dark"] button.tree-all{border-color:#334155}
/* 지시편성 : 선택하면 자재 줄마다가 아니라 작업지시 묶음(작업지시 줄 + 펼친 자재) 전체에 박스 하나 */
.wo-mats.wo-mats.wo-mats table tbody tr>td{box-shadow:none !important}
table tbody tr.wo-row.wo-picked.wo-picked>td:nth-child(n){box-shadow:inset 0 3px 0 #2563eb,inset 0 -3px 0 #2563eb !important}
table tbody tr.wo-row.wo-picked.wo-picked>td:first-child:first-child{box-shadow:inset 0 3px 0 #2563eb,inset 0 -3px 0 #2563eb,inset 3px 0 0 #2563eb !important}
table tbody tr.wo-row.wo-picked.wo-picked>td:last-child:last-child{box-shadow:inset 0 3px 0 #2563eb,inset 0 -3px 0 #2563eb,inset -3px 0 0 #2563eb !important}
table tbody tr.wo-row.wo-picked.wo-open>td:nth-child(n){box-shadow:inset 0 3px 0 #2563eb !important}
table tbody tr.wo-row.wo-picked.wo-open>td:first-child:first-child{box-shadow:inset 0 3px 0 #2563eb,inset 3px 0 0 #2563eb !important}
table tbody tr.wo-row.wo-picked.wo-open>td:last-child:last-child{box-shadow:inset 0 3px 0 #2563eb,inset -3px 0 0 #2563eb !important}
/* 펼친 자재 쪽 : 첫 칸(No) 은 왼쪽 · 아래, 넓은 칸은 오른쪽 · 아래 */
table tbody tr.wo-mats-row.wo-picked>td:first-child:first-child{box-shadow:inset 3px 0 0 #2563eb,inset 0 -3px 0 #2563eb !important}
table tbody tr.wo-mats-row.wo-picked>td:last-child:last-child{box-shadow:inset -3px 0 0 #2563eb,inset 0 -3px 0 #2563eb !important}
/* 작업지시의 자재를 일부만 고르면 고른 줄에만 박스 */
/* 이어서 선택한 줄(반제품 + 하위 등)은 줄마다가 아니라 묶음 둘레에 박스 하나 */
.wo-mats.wo-mats.wo-mats table tbody tr.mat-picked>td{--bt:0 0 0 0 transparent;--bb:0 0 0 0 transparent;--bl:0 0 0 0 transparent;--br:0 0 0 0 transparent;box-shadow:inset var(--bt),inset var(--bb),inset var(--bl),inset var(--br) !important}
.wo-mats.wo-mats.wo-mats table tbody tr.mat-picked.box-top>td{--bt:0 3px 0 0 #2563eb}
.wo-mats.wo-mats.wo-mats table tbody tr.mat-picked.box-bottom>td{--bb:0 -3px 0 0 #2563eb}
.wo-mats.wo-mats.wo-mats table tbody tr.mat-picked>td:first-child{--bl:3px 0 0 0 #2563eb}
.wo-mats.wo-mats.wo-mats table tbody tr.mat-picked>td:last-child{--br:-3px 0 0 0 #2563eb}
/* 지시편성 : 누른(현재) 작업지시 줄 */
table tbody tr.wo-row.wo-cur>td{background:#dbeafe !important}
html[data-theme="dark"] table tbody tr.wo-row.wo-cur>td{background:#1e3a5f !important}
/* 지시편성 : 선택 상자 크기 (기본 13px 보다 크게) */
.issue-plan input[type="checkbox"]{width:18px;height:18px;margin:0;vertical-align:middle;cursor:pointer}
.issue-plan input[type="checkbox"]:disabled{cursor:default}
.wo-mats table tbody td:first-child,.wo-mats table thead th:first-child{padding-left:8px !important;padding-right:6px !important;text-overflow:clip}
/* 지시편성 : 편성 취소 예정 (저장 전) */
.wo-pending{display:inline-block;padding:2px 6px;border:1px solid #fca5a5;border-radius:6px;background:#fef2f2;color:#b91c1c;font-size:12px;font-weight:700;line-height:16px;white-space:nowrap}
.wo-mats table tbody tr.mat-pending>td{background:#fff1f2}
html[data-theme="dark"] .wo-pending{background:rgba(239,68,68,.18);color:#fca5a5;border-color:#7f1d1d}
html[data-theme="dark"] .wo-mats table tbody tr.mat-pending>td{background:#3f1d24}
/* 지시편성 : 편성상태 표시 */
.wo-status{display:inline-block;padding:1px 8px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:12px;font-weight:600;line-height:18px;white-space:nowrap}
.wo-status.st-20{background:#dbeafe;color:#1e40af}
.wo-status.st-30{background:#d1fae5;color:#065f46}
html[data-theme="dark"] .wo-status{background:#334155;color:#cbd5e1}
html[data-theme="dark"] .wo-status.st-20{background:rgba(59,130,246,.25);color:#bfdbfe}
html[data-theme="dark"] .wo-status.st-30{background:rgba(16,185,129,.22);color:#a7f3d0}
/* 지시편성 : BOM 트리의 2단계 아래 줄 */
.wo-mats table tbody tr.wo-deep>td{background:#fbfcfe}
.wo-mats table tbody tr.wo-deep.mat-pending>td{background:#fff1f2}
html[data-theme="dark"] .wo-mats table tbody tr.wo-deep>td{background:#192236}
/* 지시편성 : 펼친 자재 안의 공정(작업지시) 구분 줄 */
.wo-mats.wo-mats table tbody tr.wo-op>td{height:30px;background:#e8f0fe;color:#1e3a8a;font-size:13px}
html[data-theme="dark"] .wo-mats.wo-mats table tbody tr.wo-op>td{background:#1e3a5f;color:#bfdbfe}
/* 지시편성 자재 내역 : 같은 작업지시의 병합 칸 (줄 강조 테두리는 그리지 않음) */
table tbody tr>td.req-merged.req-merged.req-merged{vertical-align:top;background:#f8fafc;border-right:1px solid #e2e8f0;box-shadow:none !important}
html[data-theme="dark"] table tbody tr>td.req-merged.req-merged.req-merged{background:#172033;border-color:#334155}
/* 지시편성 : 하위 BOM 이 있는 자재 · 하위 줄 표시 */
.bom-sub{display:inline-block;margin-left:8px;padding:0 7px;border:1px solid #93c5fd;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:11px;font-weight:600;line-height:17px;white-space:nowrap}
.bom-elbow{display:inline-block;margin-right:6px;color:#94a3b8}
html[data-theme="dark"] .bom-sub{background:rgba(59,130,246,.2);border-color:#3b82f6;color:#bfdbfe}
/* 지시편성 : BOM 단계 표시 */
.bom-lv{display:inline-block;padding:0 7px;border-radius:6px;font-size:11px;font-weight:700;line-height:18px;white-space:nowrap;background:#dbeafe;color:#1e40af}
.bom-lv.lv-2{background:#d1fae5;color:#065f46}
.bom-lv.lv-3{background:#fef3c7;color:#92400e}
.bom-lv.lv-4{background:#ede9fe;color:#5b21b6}
.wo-mats table tbody tr:not(.wo-op)>td:nth-child(3){padding-left:6px !important;padding-right:4px !important;text-overflow:clip}
html[data-theme="dark"] .bom-lv{background:rgba(59,130,246,.25);color:#bfdbfe}
html[data-theme="dark"] .bom-lv.lv-2{background:rgba(16,185,129,.22);color:#a7f3d0}
html[data-theme="dark"] .bom-lv.lv-3{background:rgba(250,204,21,.18);color:#fde68a}
html[data-theme="dark"] .bom-lv.lv-4{background:rgba(139,92,246,.25);color:#ddd6fe}
/* 지시편성 : 표 영역 사이의 높이 조절 막대 */
.plan-split[role="separator"]{display:flex;align-items:center;justify-content:center;height:14px;margin:1px 0;cursor:row-resize;touch-action:none;user-select:none;border-radius:6px}
.plan-split[role="separator"]>span{display:block;width:72px;height:5px;border-radius:999px;background:#94a3b8}
.plan-split[role="separator"]:hover,.plan-split[role="separator"]:focus-visible,.plan-split[role="separator"]:active{background:#dbeafe;outline:0}
.plan-split[role="separator"]:hover>span,.plan-split[role="separator"]:focus-visible>span,.plan-split[role="separator"]:active>span{width:140px;background:#2563eb}
section.issue-plan .overflow-x-auto>table>thead>tr>th{position:sticky;top:0;z-index:2;background-color:#f8fafc}
html[data-theme="dark"] section.issue-plan .overflow-x-auto>table>thead>tr>th{background-color:#1e293b}
html[data-theme="dark"] .plan-split[role="separator"]:hover,html[data-theme="dark"] .plan-split[role="separator"]:focus-visible{background:#1e3a5f}
section.issue-plan:has(+ .plan-split){margin-bottom:0 !important}
/* 화면 맨 아래까지 채우는 표 : 아래 여백 없음 */
section.grid-fill{margin-bottom:0 !important}
/* 공정출고 : 위 작업지시, 아래 왼쪽 편성 자재 · 오른쪽 재고 LOT */
.po-split{display:grid;grid-template-columns:minmax(0,var(--po-left,6fr)) 14px minmax(0,var(--po-right,6fr));align-items:stretch}
@media (max-width:1100px){.po-split{grid-template-columns:minmax(0,1fr);row-gap:10px}.po-vsplit{display:none !important}}
.po-split>section{margin-bottom:0 !important}
.po-scroll{overflow:auto}
.po-to select,.po-to input{min-height:36px;height:36px}.po-to select.po-need{border-color:#fca5a5;background-color:#fef2f2}
.po-scroll>table>tbody>tr>td.po-to-cell{color:#0f766e;font-weight:700}
.po-lots>table>thead>tr>th,.po-lots>table>tbody>tr>td,.po-lots>table>tfoot>tr>th{padding-left:6px !important;padding-right:6px !important}
html[data-theme="dark"] .po-scroll>table>tbody>tr>td.po-to-cell{color:#5eead4}html[data-theme="dark"] .po-to select.po-need{background-color:#450a0a}
.po-orders{height:var(--po-top,auto);max-height:var(--po-top,max(150px,28vh))}
.po-bottom{max-height:max(160px,calc(100vh - var(--po-top,28vh) - 270px))}
.po-lots{max-height:max(122px,calc(100vh - var(--po-top,28vh) - 344px))}
.po-scroll>table>thead>tr>th{position:sticky;top:0;z-index:2;background-color:#f8fafc}
.po-scroll>table>tfoot>tr>th{position:sticky;bottom:0;z-index:2;background-color:#f8fafc;box-shadow:inset 0 2px 0 #cbd5e1}
.po-scroll>table>tbody>tr>td{padding-top:5px !important;padding-bottom:5px !important}
.po input[type="checkbox"]{width:18px;height:18px;vertical-align:middle;cursor:pointer}
.po-code{display:inline-flex;align-items:center;color:#1d4ed8;font-weight:600}
.po-tab{height:32px;padding:0 12px;border:1px solid #cbd5e1;border-radius:6px;font-size:13px;font-weight:600;color:#475569;background:#fff}
.po-tab.on{background:#2563eb;border-color:#2563eb;color:#fff}
.po-sum{padding:6px 20px;font-size:13px;color:#334155;border-bottom:1px solid #f1f5f9}.po-sum strong{color:#1d4ed8}
html[data-theme="dark"] .po-scroll>table>thead>tr>th,html[data-theme="dark"] .po-scroll>table>tfoot>tr>th{background-color:#1e293b}
html[data-theme="dark"] .po-tab{background:#1e293b;border-color:#334155;color:#cbd5e1}
html[data-theme="dark"] .po-tab.on{background:#2563eb;color:#fff}
html[data-theme="dark"] .po-code{color:#93c5fd}
html[data-theme="dark"] .po-sum{color:#cbd5e1;border-color:#334155}
.po-wrap>section.po{margin-bottom:0 !important}
.po-vsplit{display:flex;align-items:center;justify-content:center;cursor:col-resize;touch-action:none;user-select:none;border-radius:6px}
.po-vsplit>span{display:block;width:5px;height:72px;border-radius:999px;background:#94a3b8}
.po-vsplit:hover,.po-vsplit:focus-visible,.po-vsplit:active{background:#dbeafe;outline:0}
.po-vsplit:hover>span,.po-vsplit:focus-visible>span,.po-vsplit:active>span{height:140px;background:#2563eb}
html[data-theme="dark"] .po-vsplit:hover,html[data-theme="dark"] .po-vsplit:focus-visible{background:#1e3a5f}
/* 공정출고 편성 자재 : 재고가 없거나 남은 수량보다 적은 줄의 배경색 */
.po-scroll table tbody tr.po-st-none>td{background:#fecaca !important}
.po-scroll table tbody tr.po-st-short>td{background:#fde68a !important}
.po-legend{display:inline-block;padding:2px 10px;border-radius:6px;font-weight:700}
.po-legend.po-st-none{background:#fecaca;color:#7f1d1d}
.po-legend.po-st-short{background:#fde68a;color:#713f12}
html[data-theme="dark"] .po-scroll table tbody tr.po-st-none>td{background:#5b1f27 !important}
html[data-theme="dark"] .po-scroll table tbody tr.po-st-short>td{background:#5a4415 !important}
html[data-theme="dark"] .po-legend.po-st-none{background:#5b1f27;color:#fecaca}
html[data-theme="dark"] .po-legend.po-st-short{background:#5a4415;color:#fde68a}
/* BOM 팝업 : 요청 · 출고 · 잔여 칸이 있을 때 */
.bompop.wide{width:min(1220px,100%)}
.bompop.wide table{min-width:1060px}
.bompop td.bompop-out{color:#1d4ed8;font-weight:700}
.bompop td.bompop-remain{color:#b91c1c;font-weight:700}
.bompop td.bompop-done{color:#047857}
.po .bom-code-link svg{display:inline-block;margin-left:6px;vertical-align:-2px}
html[data-theme="dark"] .bompop td.bompop-out{color:#93c5fd}
html[data-theme="dark"] .bompop td.bompop-remain{color:#fca5a5}
/* BOM 팝업 : 재고 없음 · 부족 줄의 배경색 (공정출고 편성 자재와 같은 색) */
.bompop tbody tr.po-st-none>td{background:#fecaca !important}
.bompop tbody tr.po-st-short>td{background:#fde68a !important}
.bompop-bar .po-legend{margin-left:8px;font-size:12px}
html[data-theme="dark"] .bompop tbody tr.po-st-none>td{background:#5b1f27 !important}
html[data-theme="dark"] .bompop tbody tr.po-st-short>td{background:#5a4415 !important}
/* 모든 그리드 : 선택한 줄 = 배경색 + 파란 상자, 마우스를 올린 줄 = 파란 상자만 (배경색 없음) — 2026-12-01
   재고 없음 · 부족 줄은 선택해도 빨강 · 노랑 배경을 유지 */
table tbody tr.bg-blue-50>*,table tbody tr.lbl-on>*,.wo-mats table tbody tr.mat-picked>td{background-color:#dbeafe !important}
html[data-theme="dark"] table tbody tr.bg-blue-50>*,html[data-theme="dark"] table tbody tr.lbl-on>*,html[data-theme="dark"] .wo-mats table tbody tr.mat-picked>td{background-color:#1e3a5f !important}
/* 지시편성 : 누른 작업지시 줄(체크하지 않은 줄)에도 상자 */
table tbody tr.wo-row.wo-cur:not(.wo-picked)>td{box-shadow:inset 0 3px 0 #2563eb,inset 0 -3px 0 #2563eb !important}
table tbody tr.wo-row.wo-cur:not(.wo-picked)>td:first-child{box-shadow:inset 0 3px 0 #2563eb,inset 0 -3px 0 #2563eb,inset 3px 0 0 #2563eb !important}
table tbody tr.wo-row.wo-cur:not(.wo-picked)>td:last-child{box-shadow:inset 0 3px 0 #2563eb,inset 0 -3px 0 #2563eb,inset -3px 0 0 #2563eb !important}
/* 지시편성 : 펼친 영역 전체에는 마우스 상자를 그리지 않고, 안의 자재 줄 하나에만 */
table tbody tr.wo-mats-row.wo-mats-row:not(.wo-picked):hover>td:nth-child(n),table tbody tr.wo-mats-row.wo-mats-row:not(.wo-picked):focus-within>td:nth-child(n){box-shadow:none !important}
.wo-mats.wo-mats.wo-mats table tbody tr:not(.mat-picked):not(.wo-op):not(.wo-sub):hover>td{box-shadow:inset 0 3px 0 #2563eb,inset 0 -3px 0 #2563eb !important}
.wo-mats.wo-mats.wo-mats table tbody tr:not(.mat-picked):not(.wo-op):not(.wo-sub):hover>td:first-child{box-shadow:inset 0 3px 0 #2563eb,inset 0 -3px 0 #2563eb,inset 3px 0 0 #2563eb !important}
.wo-mats.wo-mats.wo-mats table tbody tr:not(.mat-picked):not(.wo-op):not(.wo-sub):hover>td:last-child{box-shadow:inset 0 3px 0 #2563eb,inset 0 -3px 0 #2563eb,inset -3px 0 0 #2563eb !important}
/* BOM 팝업 : 맨 앞 No 칸 (맨 위 생산 품목은 번호 없음) */
.bompop table{min-width:676px}.bompop.wide table{min-width:1116px}
.bompop thead th.bompop-no,.bompop tbody td.bompop-no{text-align:center;color:#64748b;font-variant-numeric:tabular-nums;text-overflow:clip}
html[data-theme="dark"] .bompop tbody td.bompop-no{color:#94a3b8}
/* 공정출고 편성 자재 : 칸 폭은 내용만큼만, 남는 폭은 자재명 칸이 가짐 */
.po-lines>table>thead>tr>th,.po-lines>table>tbody>tr>td{width:1%;padding-left:5px !important;padding-right:5px !important}
.po-lines>table>thead>tr>th:nth-child(5),.po-lines>table>tbody>tr>td:nth-child(5){width:auto}
.po-lines>table>tfoot>tr>th{padding-left:5px !important;padding-right:5px !important}
/* 공정출고 편성 자재 : 공정 선택 · 해제 버튼 */
.po-ops{display:inline-flex;flex-wrap:wrap;gap:6px}
.po-op{display:inline-flex;align-items:center;gap:4px;height:30px;padding:0 11px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#64748b;font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer}
.po-op>span{display:inline-block;width:11px;text-align:center}
.po-op:hover{border-color:#2563eb}
.po-op.on{background:#2563eb;border-color:#2563eb;color:#fff}
html[data-theme="dark"] .po-op{background:#1e293b;border-color:#334155;color:#94a3b8}
html[data-theme="dark"] .po-op.on{background:#2563eb;border-color:#2563eb;color:#fff}
/* 모든 그리드 : 표 안의 글자(링크 · 버튼 글자 포함)는 끌어서 선택 · 복사 가능 */
table td,table th,table tbody td button,table tbody td a{user-select:text}
.po-lines .po-code{cursor:text}
/* BOM 자재 구성 : 줄에서 직접 수정 */
.bom-row-input{box-sizing:border-box;height:28px !important;min-height:28px !important;min-width:0;padding:0 6px !important;border:1px solid #2563eb;border-radius:5px;background:#fff;color:#1e293b;font-size:13px;font-weight:400}
.bom-row-input.num{width:72px;text-align:right}.bom-row-input.num.short{width:56px}.bom-row-input.note{width:100%;min-width:80px;max-width:180px}
.bom-row-save{margin-right:4px;padding:3px 10px;border-radius:5px;background:#2563eb;color:#fff;font-size:12px;font-weight:600}
.bom-row-save:disabled{opacity:.4}
html[data-theme="dark"] .bom-row-input{background:#0f172a;color:#e2e8f0}
/* 입력칸이 생겨도 저장 · 취소가 보이게 : 칸 여백을 줄이고 작업 칸은 오른쪽에 고정 */
table.bom-mats>thead>tr>th,table.bom-mats>tbody>tr>td{padding-left:8px !important;padding-right:8px !important}
table.bom-mats>tbody>tr>td:last-child{position:sticky;right:0;z-index:1;background-color:#fff}
table.bom-mats>tbody>tr.bg-blue-50>td:last-child{background-color:#dbeafe !important}
html[data-theme="dark"] table.bom-mats>tbody>tr>td:last-child{background-color:#1e293b}
/* BOM 자재 구성 : 전체 펼치기 */
.bom-full-btn{margin-left:10px;height:30px;padding:0 12px;border:1px solid #93c5fd;border-radius:6px;background:#eff6ff;color:#1d4ed8;font-size:13px;font-weight:600;white-space:nowrap}
.bom-full-btn:hover{border-color:#2563eb}.bom-full-btn.on{background:#2563eb;border-color:#2563eb;color:#fff}
.bom-full-node{display:flex;align-items:center;gap:6px}
.bom-full-gap{display:inline-block;flex:0 0 28px;text-align:center;color:#94a3b8;font-weight:400}
html[data-theme="dark"] .bom-full-btn:not(.on){background:rgba(59,130,246,.2);border-color:#3b82f6;color:#bfdbfe}
/* BOM 자재 구성 : 표 위 추가 버튼 · 표 안 새 자재 입력줄 */
.bom-add-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 20px;border-bottom:1px solid #e2e8f0}
.bom-add-bar button{height:30px;padding:0 12px;border:1px solid #2563eb;border-radius:6px;background:#fff;color:#1d4ed8;font-size:13px;font-weight:600;white-space:nowrap}
.bom-add-bar button:hover:not(:disabled){background:#eff6ff}.bom-add-bar button:disabled{border-color:#cbd5e1;color:#94a3b8;cursor:default}
.bom-add-bar span{font-size:13px;color:#475569}
table.bom-mats>tbody>tr.bom-new-row>td{background-color:#fefce8 !important}
.bom-row-input.code{width:130px}
html[data-theme="dark"] .bom-add-bar{border-color:#334155}html[data-theme="dark"] .bom-add-bar button{background:#1e293b;color:#bfdbfe}html[data-theme="dark"] .bom-add-bar button:disabled{border-color:#334155;color:#64748b}
html[data-theme="dark"] table.bom-mats>tbody>tr.bom-new-row>td{background-color:#3a3415 !important}
/* BOM 표 안 새 자재 입력줄 : 자재코드 검색 선택 */
.bom-row-combo{width:170px}
.bom-row-combo .stk-combo-btn{height:28px !important;min-height:28px !important;padding:0 8px !important;border-color:#2563eb;font-size:13px}
.bom-row-combo .stk-combo-list li,.bom-row-combo .stk-combo-search{font-weight:400;color:#1e293b}
.bom-row-combo .stk-combo-list li.act{color:#fff}
html[data-theme="dark"] .bom-row-combo .stk-combo-list li{color:#e2e8f0}
/* 검색 선택 : 목록 위의 구분 버튼 (반제품 · 원부자재) */
.stk-combo-groups{display:flex;flex-wrap:wrap;gap:6px;padding:8px;border-bottom:1px solid #e2e8f0;background:#fff}
.stk-combo-groups button{height:30px;padding:0 14px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#475569;font-size:13px;font-weight:600;white-space:nowrap}
.stk-combo-groups button:hover{border-color:#2563eb}.stk-combo-groups button.on{background:#2563eb;border-color:#2563eb;color:#fff}
html[data-theme="dark"] .stk-combo-groups{background:#0f172a;border-color:#334155}html[data-theme="dark"] .stk-combo-groups button:not(.on){background:#1e293b;border-color:#334155;color:#cbd5e1}
/* BOM 변경 표시 (지시편성 · 공정출고) */
.bom-chg-wrap{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.bom-chg{display:inline-block;padding:0 7px;border-radius:6px;font-size:11px;font-weight:700;line-height:18px;white-space:nowrap}
.bom-chg.chg-A{background:#d1fae5;color:#065f46}.bom-chg.chg-U,.bom-chg.chg-N{background:#fde68a;color:#713f12}.bom-chg.chg-D{background:#fecaca;color:#7f1d1d}
.bom-chg.chg-sum{margin-left:8px;background:#f59e0b;color:#fff;vertical-align:1px}.bom-chg.chg-sum small{margin-left:5px;font-size:10px;font-weight:400}
.bom-chg-qty{font-size:12px;color:#475569;font-variant-numeric:tabular-nums}
table tbody tr.bom-gone>td:not(:first-child){color:#94a3b8}
html[data-theme="dark"] .bom-chg.chg-A{background:#14532d;color:#dcfce7}html[data-theme="dark"] .bom-chg.chg-U,html[data-theme="dark"] .bom-chg.chg-N{background:#5a4415;color:#fde68a}
html[data-theme="dark"] .bom-chg.chg-D{background:#5b1f27;color:#fecaca}html[data-theme="dark"] .bom-chg-qty{color:#cbd5e1}
.wo-mats table{min-width:1590px}
/* 지시편성 : BOM 변동 감지 */
.bom-detect{display:inline-flex;align-items:center;gap:6px;margin-left:8px;padding:1px 9px;border:1px solid #dc2626;border-radius:6px;background:#fef2f2;color:#b91c1c;font-size:12px;font-weight:700;line-height:18px;white-space:nowrap;cursor:pointer;vertical-align:1px}
.bom-detect small{font-size:11px;font-weight:500}.bom-detect:hover{background:#fee2e2}
.bom-detect-count{margin-left:10px;padding:3px 10px;border-radius:6px;background:#dc2626;color:#fff;font-size:12px;font-weight:700;white-space:nowrap}
.bom-detect-panel{border-bottom:2px solid #fca5a5;background:#fef2f2;padding:8px 10px}
.bom-detect-panel p{margin:0 0 6px;font-size:13px;color:#7f1d1d}
.bom-detect-scroll{max-height:190px;overflow:auto;border:1px solid #fecaca;border-radius:6px;background:#fff}
.wo-mats.wo-mats .bom-detect-panel table{width:auto;min-width:900px;table-layout:auto}
.bom-detect-scroll{max-width:1050px}
.wo-mats.wo-mats .bom-detect-panel tbody td{height:28px;padding:2px 10px !important}
.wo-mats.wo-mats .bom-detect-panel table thead th{padding:4px 10px !important;text-align:left}
html[data-theme="dark"] .bom-detect{background:#3f1d24;color:#fecaca}html[data-theme="dark"] .bom-detect-panel{background:#3f1d24;border-color:#7f1d1d}
html[data-theme="dark"] .bom-detect-panel p{color:#fecaca}html[data-theme="dark"] .bom-detect-scroll{background:#1e293b;border-color:#7f1d1d}
/* 지시편성 : 변동 적용 · 변동 무시 버튼 */
.bom-detect-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 6px}.bom-detect-head p{margin:0 6px 0 0}
.bom-detect-head button{height:30px;padding:0 14px;border-radius:6px;font-size:13px;font-weight:700;white-space:nowrap}
.bom-apply{border:1px solid #2563eb;background:#2563eb;color:#fff}.bom-apply:hover{background:#1d4ed8}
.bom-ignore{border:1px solid #94a3b8;background:#fff;color:#334155}.bom-ignore:hover{border-color:#475569}
html[data-theme="dark"] .bom-ignore{background:#1e293b;color:#cbd5e1;border-color:#475569}
/* 변동 적용으로 추가한 자재 : 편성 저장하기 전까지 초록 배경 (선택해도 유지, 선택은 파란 상자로 표시) */
.wo-mats.wo-mats.wo-mats table tbody tr.bom-new>td,.po-scroll table tbody tr.bom-new>td{background-color:#bbf7d0 !important}
html[data-theme="dark"] .wo-mats.wo-mats.wo-mats table tbody tr.bom-new>td,html[data-theme="dark"] .po-scroll table tbody tr.bom-new>td{background-color:#14532d !important}
/* 생산 품목의 BOM 이 변동된 작업지시 : 작업지시번호 칸 배경색 (선택한 줄에서도 유지) */
/* 색은 품목명 옆 표시와 같게 : 변동 감지 = 빨강, 변동 적용 = 주황 */
table tbody tr>td.wo-changed.wo-changed.wo-changed{background-color:#f59e0b !important;color:#fff}
table tbody tr>td.wo-detect.wo-detect.wo-detect{background-color:#fecaca !important;color:#b91c1c}
table tbody tr>td.wo-changed .bom-code-link{color:#fff}table tbody tr>td.wo-detect .bom-code-link{color:#b91c1c}
html[data-theme="dark"] table tbody tr>td.wo-changed.wo-changed.wo-changed{background-color:#b45309 !important}
html[data-theme="dark"] table tbody tr>td.wo-detect.wo-detect.wo-detect{background-color:#7f1d1d !important;color:#fecaca}
html[data-theme="dark"] table tbody tr>td.wo-detect .bom-code-link{color:#fecaca}
/* BOM 팝업 : 추가 · 수정 자재 — 품목 칸 색은 작업지시번호 칸과 같게 (적용 = 주황, 미적용 = 빨강). 재고 색(줄 배경)보다 우선 */
.bompop table tbody tr>td.pop-chg.pop-chg.applied{background:#f59e0b !important;color:#fff}
.bompop table tbody tr>td.pop-chg.pop-chg.detect{background:#fecaca !important;color:#7f1d1d}
.bompop td.pop-chg.applied .bompop-code{color:#fff}.bompop td.pop-chg.detect .bompop-code{color:#b91c1c}
.pop-chg-tag{flex:0 0 auto;margin-left:6px;padding:0 7px;border-radius:6px;background:#fff;font-size:11px;font-weight:700;line-height:18px;color:#b45309;white-space:nowrap}
.bompop td.pop-chg.detect .pop-chg-tag{color:#b91c1c}
.po-legend.pop-legend.applied{background:#f59e0b;color:#fff}.po-legend.pop-legend.detect{background:#fecaca;color:#7f1d1d}
html[data-theme="dark"] .bompop table tbody tr>td.pop-chg.pop-chg.applied{background:#b45309 !important}
html[data-theme="dark"] .bompop table tbody tr>td.pop-chg.pop-chg.detect{background:#7f1d1d !important;color:#fecaca}
html[data-theme="dark"] .bompop td.pop-chg.detect .bompop-code{color:#fecaca}
/* 공정출고 : 재고 초과 입력 팝업 (게이지형) */
.po-alert{width:min(440px,100%);overflow:hidden;border-radius:16px;background:#fff;color:#1e293b;box-shadow:0 24px 60px rgba(15,23,42,.3)}
.po-alert header{display:flex;align-items:center;gap:14px;padding:16px 20px;background:#a32d2d;color:#fff}
.po-alert-ic{display:flex;flex:0 0 46px;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:#fff;color:#a32d2d;font-size:26px;font-weight:800}
.po-alert h2{font-size:18px;font-weight:700;line-height:1.35}.po-alert header p{font-size:13px;opacity:.9}
.po-alert-body{padding:16px 20px}
.po-alert-chips{display:flex;flex-wrap:wrap;gap:6px}.po-alert-chips span{padding:2px 9px;border-radius:6px;background:#f1f5f9;color:#475569;font-size:12px}
.po-alert-nums{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-top:14px}
.po-alert-nums small{display:block;font-size:12px;color:#64748b}.po-alert-nums strong{font-size:32px;font-weight:700;line-height:1.2;font-variant-numeric:tabular-nums}
.po-alert-nums em{margin-left:5px;font-size:13px;font-style:normal;font-weight:500}.po-alert-nums .typed{text-align:right}.po-alert-nums .typed strong{color:#b91c1c}
.po-alert-bar{height:16px;margin:10px 0 5px;overflow:hidden;border-radius:8px;background:#e24b4a}.po-alert-bar span{display:block;height:100%;background:#639922;border-right:2px solid #fff}
.po-alert-legend{display:flex;justify-content:space-between;font-size:12px;font-weight:700;color:#3b6d11}.po-alert-legend .typed{color:#b91c1c}
.po-alert footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:12px 20px;border-top:1px solid #e2e8f0;font-size:12px;color:#64748b}
.po-alert button{height:38px;min-width:130px;padding:0 20px;border-radius:8px;background:#2563eb;color:#fff;font-size:14px;font-weight:700;white-space:nowrap}
.po-alert button:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
html[data-theme="dark"] .po-alert{background:#1e293b;color:#e2e8f0}html[data-theme="dark"] .po-alert-chips span{background:#334155;color:#cbd5e1}
html[data-theme="dark"] .po-alert footer{border-color:#334155;color:#94a3b8}html[data-theme="dark"] .po-alert-nums .typed strong,html[data-theme="dark"] .po-alert-legend .typed{color:#fca5a5}
/* 공정출고 출고등록 : 수량 뒤 단위 */
.po-unit{margin-left:4px;font-size:12px;font-style:normal;font-weight:600;color:#475569}
.po-qty{display:inline-flex;align-items:center;justify-content:flex-end;white-space:nowrap}
.po-lots>table>thead>tr>th,.po-lots>table>tbody>tr>td,.po-lots>table>tfoot>tr>th{padding-left:8px !important;padding-right:8px !important}
html[data-theme="dark"] .po-unit{color:#cbd5e1}
/* 자재출고 > 기타출고 (etcOut.js) : 유형별 색 --c */
.oi{--c:#2563eb;--bg:#eff6ff;font-size:13px}.oi.t20{--c:#047857;--bg:#ecfdf5}.oi.t30{--c:#b45309;--bg:#fffbeb}.oi.t80{--c:#6d28d9;--bg:#f5f3ff}
.oi-h1{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:10px;font-size:22px;font-weight:700}
.oi-h1 small{padding:2px 8px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#64748b;font-size:11px;font-weight:400}
.oi-card{min-width:0;margin-bottom:10px;overflow:hidden;border:1px solid #d8e0ea;border-radius:10px;background:#fff}
.oi-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:55px;padding:8px 14px;border-bottom:1px solid #e2e8f0}
.oi-head h2{font-size:15px;font-weight:700}.oi .sp{margin-left:auto}
.oi-cnt{display:inline-block;padding:1px 8px;border-radius:6px;background:var(--bg);color:var(--c);font-size:12px;font-weight:700}
.oi-types{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:10px 14px}
@media(max-width:800px){.oi-types{grid-template-columns:repeat(2,minmax(0,1fr))}}
.oi-type{display:flex;align-items:center;gap:10px;padding:10px 12px;border:2px solid #e2e8f0;border-radius:10px;background:#fff;text-align:left}
.oi-type i{display:flex;flex:0 0 36px;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:#f1f5f9;color:#64748b;font-size:18px;font-style:normal;font-weight:800}
.oi-type b{display:block;font-size:14px}.oi-type b .oi-cnt{margin-left:6px;background:#f1f5f9;color:#475569;font-size:11px}.oi-type small{color:#64748b}
.oi-type.on{border-color:var(--c);background:var(--bg)}.oi-type.on i{background:var(--c);color:#fff}
.oi-type:focus-visible,.oi-btn:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
.oi-rule{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin-bottom:10px;padding:9px 14px;border-left:5px solid var(--c);border-radius:6px;background:var(--bg)}
.oi-rule b{color:var(--c)}.oi-rule span{white-space:nowrap}
.oi-must{margin-left:3px;color:#dc2626;font-weight:800}
.oi-info{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;padding:12px 14px}
.oi-info label{display:grid;gap:4px;min-width:180px;font-weight:700}.oi-info label.grow{flex:1;min-width:260px}
.oi input:not([type=checkbox]),.oi select{height:34px;padding:0 10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#1e293b}
.oi input:not([type=checkbox]):focus,.oi select:focus{outline:2px solid #93c5fd;border-color:#2563eb}
.oi input.need,.oi select.need{border-color:#fca5a5;background:#fef2f2}
.oi .oi-q{width:240px}
.oi-btn{height:34px;padding:0 16px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#1e293b;font-weight:700;white-space:nowrap}
.oi-btn.pri{border-color:var(--c);background:var(--c);color:#fff}.oi-btn.red{border-color:#fca5a5;color:#b91c1c}.oi-btn.danger{border-color:#dc2626;background:#dc2626;color:#fff}
.oi-btn.lg{height:44px;font-size:15px}.oi-btn:disabled{opacity:.4;cursor:default}
.oi-split{display:grid;grid-template-columns:minmax(0,11fr) minmax(0,10fr);align-items:start;gap:10px}
@media(max-width:1200px){.oi-split{grid-template-columns:minmax(0,1fr)}}
.oi-scroll{overflow:auto}.oi-lots{max-height:380px}.oi-cart{max-height:300px}.oi-hist{max-height:230px}
.oi table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left}
.oi th{position:sticky;top:0;z-index:1;padding:8px 9px;border-bottom:1px solid #e2e8f0;background:#f8fafc;color:#64748b;font-size:12px;text-align:left}
.oi td{padding:7px 9px;border-bottom:1px solid #f1f5f9}
.oi th.r,.oi td.r{text-align:right;font-variant-numeric:tabular-nums}
.oi-lots tbody tr{cursor:pointer}
.oi table tbody tr.on>td{background:#dbeafe}
.oi td.code,.oi td .code{color:#1d4ed8;font-weight:700}
.oi-cart td small{display:block;color:#64748b}
.oi-u{margin-left:3px;color:#64748b;font-size:11px;font-style:normal;font-weight:700}
.oi-tag{display:inline-block;margin-left:6px;padding:1px 9px;border-radius:999px;background:#fee2e2;color:#991b1b;font-size:11px;font-weight:700}
.oi input.oi-qty{width:96px;text-align:right;font-weight:700}
.oi-x{border:0;background:transparent;color:#b91c1c;font-size:18px;line-height:1}
.oi .minus{color:#b91c1c;font-weight:800}
.oi-empty,.oi td.oi-empty{padding:36px;color:#94a3b8;text-align:center;white-space:normal}
.oi-lock{padding:46px 20px;background:var(--bg);color:var(--c);font-weight:700;text-align:center}
.oi-sum{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding:12px 14px;border-top:1px solid #e2e8f0;background:#f8fafc}
.oi-sum strong{color:var(--c);font-size:18px}.oi-lack{color:#b91c1c}
.oi-period{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
html[data-theme="dark"] .oi{--bg:#172554}html[data-theme="dark"] .oi.t20{--c:#059669;--bg:#022c22}html[data-theme="dark"] .oi.t30{--bg:#451a03}html[data-theme="dark"] .oi.t80{--c:#7c3aed;--bg:#2e1065}
html[data-theme="dark"] .oi-card,html[data-theme="dark"] .oi-type,html[data-theme="dark"] .oi-btn:not(.pri):not(.danger),html[data-theme="dark"] .oi-h1 small{border-color:#334155;background:#1e293b;color:#e2e8f0}
html[data-theme="dark"] .oi-type.on{border-color:var(--c);background:var(--bg)}
html[data-theme="dark"] .oi input:not([type=checkbox]),html[data-theme="dark"] .oi select{border-color:#475569;background:#0f172a;color:#e2e8f0}
html[data-theme="dark"] .oi input.need,html[data-theme="dark"] .oi select.need{border-color:#f87171;background:#450a0a}
html[data-theme="dark"] .oi-head,html[data-theme="dark"] .oi td{border-color:#334155}
html[data-theme="dark"] .oi th,html[data-theme="dark"] .oi-sum{border-color:#334155;background:#0f172a;color:#94a3b8}
html[data-theme="dark"] .oi table tbody tr.on>td{background:#1e3a8a}
html[data-theme="dark"] .oi td.code,html[data-theme="dark"] .oi td .code,html[data-theme="dark"] .oi-rule b,html[data-theme="dark"] .oi-lock,html[data-theme="dark"] .oi-cnt{color:#bfdbfe}
html[data-theme="dark"] .oi .minus,html[data-theme="dark"] .oi-lack,html[data-theme="dark"] .oi-btn.red{color:#fca5a5}
/* 기타출고 크기 조절 막대 */
.oi-top{max-height:var(--oi-top,none);overflow:auto}.oi-top>.oi-card:last-child{margin-bottom:0}
.oi-split>.oi-card{margin-bottom:0}
.oi.sized-mid .oi-lots,.oi.sized-mid .oi-lock{height:var(--oi-mid);max-height:none}
.oi.sized-mid .oi-lock{display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:auto;padding-top:8px;padding-bottom:8px}
.oi.sized-mid .oi-cart{max-height:max(100px,calc(var(--oi-mid) - 70px))}
/* 기타출고 : 유형 버튼 · 입력칸을 제목 옆 한 줄에 (공간 절약) */
.oi-head>.oi-types{flex:1;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);min-width:0;margin-left:10px;padding:0}
.oi-head .oi-type{min-width:0;padding:4px 10px}.oi-head .oi-type i{flex-basis:30px;width:30px;height:30px;font-size:15px}
.oi-head .oi-type span{min-width:0}.oi-head .oi-type b{line-height:1.35}.oi-head .oi-type small{display:block;overflow:hidden;line-height:1.35;white-space:nowrap;text-overflow:ellipsis}
.oi-head>.oi-info{flex:1;align-items:center;gap:8px 18px;min-width:0;margin-left:10px;padding:0}
.oi-head>.oi-info label{display:flex;align-items:center;gap:8px;min-width:0}.oi-head>.oi-info label>span{white-space:nowrap}
.oi-head>.oi-info select{min-width:160px}.oi-head>.oi-info label.grow{flex:1;min-width:260px}.oi-head>.oi-info label.grow input{flex:1;min-width:0}
.oi-note{color:#64748b;white-space:nowrap}
@media(max-width:1000px){.oi-head>.oi-types{flex-basis:100%;grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));margin-left:0}}
/* 기타출고 : 자재창고반환(99) · 반환 수량 표시 */
.oi.t99{--c:#0f766e;--bg:#ccfbf1}.oi .plus{color:#0f766e;font-weight:800}.oi .oi-head>.oi-info input.oi-wh{width:120px;background:#f1f5f9;color:#475569}
.oi-ret{display:inline-block;margin-left:6px;padding:0 7px;border-radius:999px;background:#ccfbf1;color:#0f766e;font-size:11px;font-weight:700;white-space:nowrap}
html[data-theme="dark"] .oi.t99{--bg:#042f2e}html[data-theme="dark"] .oi .plus{color:#5eead4}html[data-theme="dark"] .oi .oi-head>.oi-info input.oi-wh{background:#334155;color:#cbd5e1}html[data-theme="dark"] .oi-ret{background:#134e4a;color:#99f6e4}
/* 화면 크기에 맞춘 표 (common.js fitGrids) : 표 안에서 스크롤, 머리줄 고정 */
[data-fit]{overflow:auto}
[data-fit]>table>thead>tr:only-child>th{position:sticky;top:0;z-index:2;background-color:#f8fafc}
html[data-theme="dark"] [data-fit]>table>thead>tr:only-child>th{background-color:#1e293b}
.oi:not(.sized-mid) .oi-cart{max-height:max(100px,calc(var(--oi-auto,370px) - 70px))}
/* 왼쪽 선택 목록(코드 그룹 · 권한그룹)도 화면 높이에 맞춤 */
.side-fit{max-height:max(260px,calc(100vh - 180px));overflow:auto}
/* ===== 자재재고현황 (materialStock.js) : 탭 3개 ===== */
.ms .ms-card{min-width:0;margin-bottom:10px;overflow:hidden;border:1px solid #d8e0ea;border-radius:10px;background:#fff}
.ms .ms-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:6px 14px;border-bottom:1px solid #cbd5e1;background:#f1f5f9}
.ms .ms-head h2{font-size:14px;font-weight:700}.ms .ms-sp{margin-left:auto}.ms .ms-head small{color:#64748b;font-size:12px}
.ms .ms-cnt{padding:1px 8px;border-radius:6px;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:700}
.ms .ms-btn{height:30px;padding:0 14px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#1e293b;font-size:13px;font-weight:700}.ms .ms-btn:disabled{opacity:.45}
.ms table{width:100%;border-collapse:separate;border-spacing:0;white-space:nowrap;font-size:13px;text-align:left}
.ms table th,.ms table td{height:33px !important;padding:3px 9px !important;border-right:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0}
.ms table th.r,.ms table td.r{text-align:right;font-variant-numeric:tabular-nums}.ms table td.c{text-align:center}.ms table td.code{color:#1d4ed8;font-weight:700}
.ms .ms-grid>table>thead>tr>th{background-color:#fff;color:#334155;font-weight:700;text-align:center}
.ms .ms-grid.overflow-x-auto>table>thead>tr>th{position:sticky;top:0;z-index:2}
.ms .ms-grid.overflow-x-auto>table>thead>tr:nth-child(1)>th{background-color:#f8fafc}
.ms .ms-grid.overflow-x-auto>table>thead>tr:nth-child(2)>th{top:33px}
.ms .ms-grid.overflow-x-auto>table>thead>tr:nth-child(3)>th{top:66px;padding:2px 3px !important}
.ms .ms-grid>table>thead>tr>th.in{background-color:#ecfdf5 !important}.ms .ms-grid>table>thead>tr>th.out{background-color:#fef2f2 !important}
.ms .ms-grid thead input{width:100%;min-width:52px;height:25px;padding:0 6px;border:1px solid #cbd5e1;border-radius:5px;font-size:12px;font-weight:400}
.ms .ms-fil,.ms .ms-pin{margin-left:5px;padding:0;border:0;background:transparent;color:#64748b;font-size:11px;vertical-align:middle}
.ms .ms-fil.on{color:#dc2626}.ms .ms-pin{filter:grayscale(1);opacity:.5}.ms .ms-pin.on{filter:none;opacity:1}
.ms .ms-grid td.ms-zero{color:#cbd5e1}.ms .ms-grid td.ms-total{background-color:#eff6ff;font-weight:800}.ms .ms-grid td.ms-none{background-color:#fee2e2;color:#b91c1c;font-weight:800}
.ms .ms-grid>table>tbody>tr.on>td{background-color:#dbeafe}
.ms .ms-grid.overflow-x-auto>table>tfoot>tr>*{position:sticky;bottom:calc(var(--n,0) * 32px);z-index:2;background-color:#fef9c3 !important;font-weight:800;box-shadow:none}
.ms .ms-grid.overflow-x-auto>table>tfoot>tr:first-child>*{box-shadow:inset 0 2px 0 #cbd5e1}
.ms .ms-grid.overflow-x-auto>table>thead>tr>th.ms-pinned{z-index:4}
.ms .ms-grid.overflow-x-auto>table>tbody>tr>td.ms-pinned{position:sticky;z-index:1;background-color:#f8fafc}
.ms .ms-grid.overflow-x-auto>table>tbody>tr.on>td.ms-pinned{background-color:#dbeafe}
.ms .ms-empty{padding:30px !important;color:#94a3b8;text-align:center}
.ms .ms-lots th{background-color:#f8fafc;color:#334155}
.ms .ms-whs{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px;margin-bottom:10px}
.ms .ms-wh{padding:7px 14px;border:2px solid #d8e0ea;border-radius:10px;background:#fff;text-align:left}.ms .ms-wh.on{border-color:#2563eb;background:#eff6ff}
.ms .ms-wh b{display:block;font-size:14px}.ms .ms-wh small{display:block;overflow:hidden;color:#64748b;white-space:nowrap;text-overflow:ellipsis}.ms .ms-wh strong{color:#1d4ed8;font-size:16px}
html[data-theme="dark"] .ms .ms-card,html[data-theme="dark"] .ms .ms-wh,html[data-theme="dark"] .ms .ms-btn{border-color:#334155;background:#1e293b;color:#e2e8f0}
html[data-theme="dark"] .ms .ms-wh.on{border-color:#3b82f6;background:#172554}
html[data-theme="dark"] .ms .ms-head,html[data-theme="dark"] .ms .ms-lots th{border-color:#334155;background:#0f172a;color:#e2e8f0}
html[data-theme="dark"] .ms table th,html[data-theme="dark"] .ms table td{border-color:#334155}
html[data-theme="dark"] .ms .ms-grid>table>thead>tr>th{background-color:#1e293b !important;color:#e2e8f0}
html[data-theme="dark"] .ms .ms-grid>table>thead>tr>th.in{background-color:#022c22 !important}html[data-theme="dark"] .ms .ms-grid>table>thead>tr>th.out{background-color:#450a0a !important}
html[data-theme="dark"] .ms .ms-grid td.ms-zero{color:#475569}html[data-theme="dark"] .ms .ms-grid td.ms-total{background-color:#172554}html[data-theme="dark"] .ms .ms-grid td.ms-none{background-color:#450a0a;color:#fecaca}
html[data-theme="dark"] .ms .ms-grid.overflow-x-auto>table>tfoot>tr>*{background-color:#3b2a0a !important}
html[data-theme="dark"] .ms .ms-grid>table>tbody>tr.on>td,html[data-theme="dark"] .ms .ms-grid.overflow-x-auto>table>tbody>tr.on>td.ms-pinned{background-color:#1e3a8a}
html[data-theme="dark"] .ms .ms-grid.overflow-x-auto>table>tbody>tr>td.ms-pinned{background-color:#0f172a}
html[data-theme="dark"] .ms table td.code{color:#93c5fd}
/* ms-low : 낮은 화면에서는 창고 카드를 두 줄로 줄여 표를 더 보이게 */
@media (max-height:820px){.ms .ms-wh{padding:3px 12px}.ms .ms-wh small:last-child{display:none}.ms .ms-whs{margin-bottom:6px}.ms .ms-card{margin-bottom:6px}}
/* 생산계획 오른쪽 작업지시 : 내용 크기만큼, 칸은 너비에 맞게 좁게 */
.plan-right{align-self:flex-start}
.plan-right table.plan-ops th,.plan-right table.plan-ops td{padding-left:5px !important;padding-right:5px !important}
.plan-right table.plan-ops .qty-input.plan-qty.plan-wo{width:84px!important}
/* 공정출고 출고등록 · 출고취소 : 창고(원) · 위치(원) · 창고(이동) · 위치(이동) 칸이 늘어 좁게 */
.po-scroll.po-lots>table{font-size:12.5px}
.po-lots>table>thead>tr>th,.po-lots>table>tbody>tr>td,.po-lots>table>tfoot>tr>th{padding-left:4px !important;padding-right:4px !important}
.po-lots .po-qty input.qty-input{width:70px !important;padding:0 6px !important}
.po-to select{max-width:150px}.po-to input{width:140px}
.po-lines>table>thead>tr>th,.po-lines>table>tbody>tr>td,.po-lines>table>tfoot>tr>th{padding-left:5px !important;padding-right:5px !important}
/* 자재수불부(창고별) : 창고별 수불 | 막대 | LOT 재고 좌우 배치 */
.ms .ms-split{display:grid;grid-template-columns:minmax(0,var(--ms-left,66fr)) 14px minmax(0,var(--ms-right,34fr));align-items:start}
.ms .ms-split>.ms-card{margin-bottom:0}
@media (max-width:1100px){.ms .ms-split{grid-template-columns:minmax(0,1fr);row-gap:10px}.ms .ms-split>.po-vsplit{display:none !important}}
.ms .ms-stack>.ms-card{margin-bottom:0}
.ms .ms-dir{display:inline-flex;overflow:hidden;border:2px solid #2563eb;border-radius:10px}
.ms .ms-dir button{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border:0;background:#fff;color:#475569;font-size:13px;font-weight:700}
.ms .ms-dir button svg{width:24px;height:24px}.ms .ms-dir button:focus-visible{outline:3px solid #93c5fd;outline-offset:-3px}
.ms .ms-dir button+button{border-left:1px solid #cbd5e1}.ms .ms-dir button.on{background:#2563eb;color:#fff}
html[data-theme="dark"] .ms .ms-dir{border-color:#334155}html[data-theme="dark"] .ms .ms-dir button{background:#1e293b;color:#cbd5e1}html[data-theme="dark"] .ms .ms-dir button.on{background:#2563eb;color:#fff}
.ms .ms-btn.ms-toggle{border-color:#2563eb;color:#1d4ed8}.ms .ms-btn.ms-toggle.on{background:#2563eb;color:#fff}.ms .ms-btn.ms-clear{border-color:#fca5a5;color:#b91c1c}
.ms .ms-grid thead input{border-color:#2563eb;background:#eff6ff;color:#1e293b}
html[data-theme="dark"] .ms .ms-btn.ms-toggle{color:#bfdbfe}html[data-theme="dark"] .ms .ms-btn.ms-toggle.on{background:#2563eb;color:#fff}html[data-theme="dark"] .ms .ms-grid thead input{background:#0f172a;color:#e2e8f0}
/* [칸 거르기] · [거른 것 지움] : 좌우 · 상하 버튼과 같은 크기 (높이 36 · 글자 13 · 아이콘 24) */
.ms .ms-head .ms-btn{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 14px;border-width:2px;border-radius:10px;font-size:13px;font-weight:700}
.ms .ms-head .ms-btn svg{width:24px;height:24px}
/* LOT 재고 합계 줄 : 아래에 고정, 수불 표의 합계 줄과 같은 색 */
.ms .ms-lots.overflow-x-auto>table>tfoot>tr>*{position:sticky;bottom:0;z-index:2;background-color:#fef9c3 !important;font-weight:800;box-shadow:inset 0 2px 0 #cbd5e1}
html[data-theme="dark"] .ms .ms-lots.overflow-x-auto>table>tfoot>tr>*{background-color:#3b2a0a !important}
/* 좌우 배치의 막대 : 세로로 길게 (어디를 잡아도 끌 수 있게) */
.ms .ms-split>.po-vsplit{align-self:stretch;min-height:240px;background:#dbe3ee}.ms .ms-split>.po-vsplit>span{background:#475569;width:6px}
.ms .ms-split>.po-vsplit>span{position:sticky;top:45%;height:120px}
.ms .ms-split>.po-vsplit:hover,.ms .ms-split>.po-vsplit:focus-visible,.ms .ms-split>.po-vsplit:active{background:#dbeafe}
html[data-theme="dark"] .ms .ms-split>.po-vsplit{background:#1e293b}
/* 이름에 '현황'이 들어간 모든 화면 : 5줄마다 회색 배경 (2026-12-01 사용자). 고른 줄(파란색) · 재고 없음(빨간색) 칸은 그대로 */
[data-view$="현황"] table tbody tr:nth-child(5n):not(.on):not(.bg-blue-50)>:is(td,th):not(.ms-none){background-color:#e2e8f0 !important}
html[data-theme="dark"] [data-view$="현황"] table tbody tr:nth-child(5n):not(.on):not(.bg-blue-50)>:is(td,th):not(.ms-none){background-color:#334155 !important}
/* 누를 수 없는 버튼은 흐리게 */
.disabled\:opacity-40:disabled{opacity:.4;cursor:not-allowed}
.issue-plan button.is-off{opacity:.4;cursor:not-allowed}

/* ===== 모든 그리드 줄 높이 통일 (2026-12-02 사용자) : 자료 줄 1개 = 33px =====
   칸 안의 버튼 · 입력칸 · 배지가 커서 줄이 들쭉날쭉하던 것을 줄여서 맞춤. 안내 줄('자료 없음')과 펼침 안쪽 큰 칸은 제외 */
:root{--row-h:33px}
[data-view]:not([data-view="대시보드"]) table:not(.plan-ops)>tbody>tr:not(.wo-mats-row):not(.row-free)>td{height:var(--row-h);box-sizing:border-box;padding-top:0!important;padding-bottom:0!important;vertical-align:middle;line-height:18px}
[data-view]:not([data-view="대시보드"]) table:not(.plan-ops)>tbody>tr:not(.wo-mats-row):not(.row-free)>td :is(button,select,input:not([type=checkbox]):not([type=radio])){min-height:0!important;height:26px!important;padding-top:0!important;padding-bottom:0!important;box-sizing:border-box}
[data-view]:not([data-view="대시보드"]) table:not(.plan-ops)>tbody>tr:not(.wo-mats-row):not(.row-free)>td :is(input.qty-input,input[type=number],input[type=text],input[type=search]){height:28px!important}
[data-view]:not([data-view="대시보드"]) table:not(.plan-ops)>tbody>tr:not(.wo-mats-row):not(.row-free)>td :is(.rounded,.rounded-full,.inline-flex,[class*="badge"]):not(button):not(input){line-height:18px}
/* 두 줄로 보이는 칸(입고번호 + LOT)도 줄 높이 33px 안에 들어가게 : 배지가 줄 높이를 키우지 않게 하고 둘째 줄 간격 없앰 */
[data-view]:not([data-view="대시보드"]) table:not(.plan-ops)>tbody>tr>td :is(.stk-lock,.stk-count,.stk-tag){line-height:14px!important;margin-top:0!important;padding-top:0!important;padding-bottom:0!important;vertical-align:middle}
[data-view]:not([data-view="대시보드"]) table:not(.plan-ops)>tbody>tr>td .stk-line2{margin-top:0!important}
[data-view]:not([data-view="대시보드"]) table:not(.plan-ops)>tbody>tr>td{line-height:16px}
/* 생산계획 오른쪽 작업지시 표(공정 줄 + 양품/불량 줄)도 줄 높이 33px */
[data-view]:not([data-view="대시보드"]) .plan-right table.plan-ops>tbody>tr>td{height:var(--row-h);box-sizing:border-box;padding-top:0!important;padding-bottom:0!important;vertical-align:middle;line-height:16px}
[data-view]:not([data-view="대시보드"]) .plan-right table.plan-ops>tbody>tr>td :is(input,select,button){min-height:0!important;height:28px!important;padding-top:0!important;padding-bottom:0!important;box-sizing:border-box}
[data-view]:not([data-view="대시보드"]) .plan-right table.plan-ops>tbody>tr>td :is(input[type=checkbox],input[type=radio]){height:auto!important}
[data-view]:not([data-view="대시보드"]) .plan-right table.plan-ops>tbody>tr>td input.qty-input{display:block;margin:0 auto;height:28px!important;min-height:0!important}
/* 제품별 박스 관리 : 두 표 모두 옆으로 넘치지 않게 칸 좌우 여백을 줄임 */
.ibox-split table th,.ibox-split table td{padding-left:10px!important;padding-right:10px!important}
/* ===== 모든 그리드 칸 선 표시 (2026-12-02 사용자 '자재현황처럼') : 칸마다 오른쪽 · 아래 선, 머리 칸도 같게 ===== */
[data-view]:not([data-view="대시보드"]) table:not(.plan-ops) :is(th,td){border-right:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0}
[data-view]:not([data-view="대시보드"]) table:not(.plan-ops) thead th{border-top:0}
[data-view]:not([data-view="대시보드"]) table:not(.plan-ops) tr>:first-child{border-left:0}
html[data-theme="dark"] [data-view]:not([data-view="대시보드"]) table:not(.plan-ops) :is(th,td){border-right-color:#334155;border-bottom-color:#334155}
.plan-right table.plan-ops :is(th,td){border-right:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0}
html[data-theme="dark"] .plan-right table.plan-ops :is(th,td){border-right-color:#334155;border-bottom-color:#334155}

/* ===== 칸 거르기(▽) · 칸 고정(📌) 공통 모양 (자재재고현황 .ms 와 같게) ===== */
.cf-bar{display:inline-flex;align-items:center;gap:8px;margin-left:auto}
.cf-btn{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border:2px solid #2563eb;border-radius:10px;background:#fff;color:#1d4ed8;font-size:13px;font-weight:700;white-space:nowrap}
.cf-btn svg{width:20px;height:20px}
.cf-btn.cf-toggle.on{background:#2563eb;color:#fff}
.cf-btn.cf-clear{border-color:#fca5a5;color:#b91c1c}
html[data-theme="dark"] .cf-btn{background:#1e293b;color:#bfdbfe}
html[data-theme="dark"] .cf-btn.cf-toggle.on{background:#2563eb;color:#fff}
html[data-theme="dark"] .cf-btn.cf-clear{color:#fca5a5}
.cf-fil,.cf-pin{margin-left:5px;padding:0;border:0;background:transparent;color:#64748b;font-size:11px;vertical-align:middle}
.cf-fil.on{color:#dc2626}.cf-pin{filter:grayscale(1);opacity:.5}.cf-pin.on{filter:none;opacity:1}
tr.cf-row>th{padding:3px 4px!important}
tr.cf-row input{width:100%;min-width:52px;height:25px;padding:0 6px;border:1px solid #2563eb;border-radius:5px;background:#eff6ff;color:#1e293b;font-size:12px;font-weight:400}
html[data-theme="dark"] tr.cf-row input{background:#0f172a;color:#e2e8f0}
.overflow-x-auto>table>thead>tr>th.cf-pinned{position:sticky;z-index:4}
.overflow-x-auto>table>tbody>tr>td.cf-pinned{position:sticky;z-index:1;background-color:#f8fafc}
html[data-theme="dark"] .overflow-x-auto>table>tbody>tr>td.cf-pinned{background-color:#0f172a}
/* 자재입고 : 입고번호 · 품목코드 · 품목명 = 파란 글씨 + 밑줄 (누르면 팝업) */
.stk-link{color:#1d4ed8!important;font-weight:600;text-decoration:underline;text-decoration-color:#93c5fd;text-underline-offset:3px}
.stk-link:hover{color:#1e40af!important;text-decoration-color:#1e40af}
html[data-theme="dark"] .stk-link{color:#93c5fd!important}
html[data-theme="dark"] .stk-link:hover{color:#bfdbfe!important}
/* 입고 목록 : 입고번호 옆의 '원 LOT → n개 분할' 표시를 같은 줄에 (줄 높이 33px 유지) */
[data-view]:not([data-view="대시보드"]) table tbody tr>td .stk-line2{display:inline-flex!important;margin:0 0 0 6px!important;vertical-align:middle}
/* 입고번호 · 품목 링크 버튼은 줄 높이를 키우지 않게 (글자처럼 한 줄) */
[data-view]:not([data-view="대시보드"]) table:not(.plan-ops)>tbody>tr:not(.wo-mats-row):not(.row-free)>td button.stk-edit.stk-link.stk-edit.stk-link.stk-edit{display:inline!important;height:auto!important;min-height:0!important;padding:0!important;line-height:18px!important;vertical-align:baseline}

/* 조회 · 저장 중 팝업 (common.js nxLoading) */
.nx-loading{--ld:#2563eb;--ld-soft:#dbeafe;position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:rgba(15,23,42,.38);opacity:0;transition:opacity .18s ease;cursor:progress}
.nx-loading[hidden]{display:none}
.nx-loading.on{opacity:1}
.nx-loading[data-mode="work"]{--ld:#059669;--ld-soft:#d1fae5}
.nx-ld-card{min-width:300px;max-width:88vw;padding:26px 34px 22px;border-radius:14px;background:#fff;color:#0f172a;text-align:center;box-shadow:0 18px 48px rgba(15,23,42,.28);border-top:4px solid var(--ld);transform:translateY(6px) scale(.97);transition:transform .22s ease}
.nx-loading.on .nx-ld-card{transform:none}
.nx-ld-bars{display:flex;align-items:flex-end;justify-content:center;gap:6px;height:38px;margin-bottom:14px}
.nx-ld-bars i{display:block;width:8px;height:12px;border-radius:3px;background:var(--ld);opacity:.35;animation:nx-ld-bar 1.05s ease-in-out infinite}
.nx-ld-bars i:nth-child(2){animation-delay:.1s}.nx-ld-bars i:nth-child(3){animation-delay:.2s}.nx-ld-bars i:nth-child(4){animation-delay:.3s}
.nx-ld-bars i:nth-child(5){animation-delay:.4s}.nx-ld-bars i:nth-child(6){animation-delay:.5s}.nx-ld-bars i:nth-child(7){animation-delay:.6s}
@keyframes nx-ld-bar{0%,100%{height:12px;opacity:.35}40%{height:36px;opacity:1}}
.nx-ld-title{margin:0;font-size:16px;font-weight:700}
.nx-ld-sub{margin:4px 0 0;font-size:13px;color:#64748b}
.nx-ld-line{position:relative;height:4px;margin:16px 0 8px;overflow:hidden;border-radius:999px;background:var(--ld-soft)}
.nx-ld-line span{position:absolute;top:0;left:0;height:100%;width:38%;border-radius:999px;background:var(--ld);animation:nx-ld-slide 1.2s ease-in-out infinite}
@keyframes nx-ld-slide{0%{left:-40%}100%{left:102%}}
.nx-ld-sec{min-height:16px;margin:0;font-size:12px;color:#94a3b8;font-variant-numeric:tabular-nums}
html[data-theme="dark"] .nx-loading{background:rgba(2,6,23,.6)}
html[data-theme="dark"] .nx-ld-card{background:#1e293b;color:#f1f5f9}
html[data-theme="dark"] .nx-ld-sub{color:#94a3b8}
html[data-theme="dark"] .nx-loading{--ld:#60a5fa;--ld-soft:#334155}
html[data-theme="dark"] .nx-loading[data-mode="work"]{--ld:#34d399;--ld-soft:#334155}
.nx-ld-line.det span{animation:none;left:0;transition:width .3s ease}
.nx-loading .nx-ld-sub{font-variant-numeric:tabular-nums}
.nx-loading.wide .nx-ld-card{min-width:360px;text-align:left}
.nx-loading.wide .nx-ld-title,.nx-loading.wide .nx-ld-sub{text-align:center}
.nx-ld-dual{margin-top:12px}
.nx-ld-dual[hidden]{display:none}
.nx-ld-r{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin-top:10px}
.nx-ld-r b{font-weight:600}
.nx-ld-r em{font-style:normal;color:#64748b;font-variant-numeric:tabular-nums}
.nx-ld-bar{height:8px;border-radius:999px;background:var(--ld-soft);overflow:hidden;margin-top:4px}
.nx-ld-bar i{display:block;height:100%;width:0;border-radius:999px;background:var(--ld);transition:width .25s ease}
.nx-ld-bar.i{background:#dbeafe}
.nx-ld-bar.i i{background:#2563eb}
.nx-ld-dual p{margin:2px 0 0;text-align:right;font-size:11px;color:#94a3b8;font-variant-numeric:tabular-nums}
html[data-theme="dark"] .nx-ld-r em{color:#94a3b8}
html[data-theme="dark"] .nx-ld-bar.i{background:#334155}
html[data-theme="dark"] .nx-ld-bar.i i{background:#60a5fa}
@media (prefers-reduced-motion:reduce){.nx-ld-bars i,.nx-ld-line span{animation:none}.nx-ld-bars i{height:24px;opacity:.7}.nx-ld-line span{width:100%}.nx-loading,.nx-ld-card{transition:none}}

/* 공정출고 : 위 목록 높이 막대를 올리면 오른쪽 출고등록 표도 그만큼 아래로 커짐 (② 편성 자재 카드 높이에 맞춰 채움 — 2026-12-02) */
.po-split>section{display:flex;flex-direction:column;min-height:0}
.po-split>section>.po-lots{flex:1 1 0;min-height:122px;max-height:none}

/* 생산계획 오른쪽 열 : 작업지시 + 투입 자재 (2026-12-02) */
.plan-right-col{flex:0 1 600px;min-width:min(100%,420px);max-width:100%;display:grid;gap:16px;align-content:start}
.plan-right-col>.plan-work-wrap>.plan-right{flex:none}
.plan-split>.po-vsplit{flex:0 0 14px;align-self:stretch;min-height:200px;margin:0 -9px}
.plan-split>.po-vsplit>span{position:sticky;top:45%}
.plan-split.sized>.plan-left{flex:0 0 var(--pl)}
.plan-split.sized>.plan-right-col{flex:1 1 0;min-width:320px}
.plan-right-col{gap:4px!important}
.plan-right-col>.plan-split[role="separator"]{flex:none;margin:0}
@media (max-width:1100px){.plan-split>.po-vsplit{display:none!important}.plan-split.sized>.plan-left{flex:1 1 100%}}
.plan-mat-scroll{overflow:auto}   /* 최대 높이는 prodPlan.js 가 창 높이에 맞춰 정함 */
.plan-mat-scroll>table>thead>tr>th{position:sticky;top:0;z-index:2;background-color:#f8fafc}
html[data-theme="dark"] .plan-mat-scroll>table>thead>tr>th{background-color:#1e293b}
.plan-mat .po-op{display:inline-flex;align-items:center;gap:4px;border:1px solid #cbd5e1;border-radius:6px;padding:2px 8px;font-size:12px;background:#fff}
.plan-mat .po-op.on{background:#2563eb;border-color:#2563eb;color:#fff}
/* 재고위치이동 : 체크 상자 크기를 지시편성 · 공정출고와 같게 (2026-12-02 사용자) */
.mv-box input[type="checkbox"]{width:18px;height:18px;margin:0;vertical-align:middle;cursor:pointer}
/* 생산실적 하단 입력 · 불량 그리드 : 줄 두께 10% 줄임 (2026-12-02 사용자) */
.pr-entry table>tbody>tr>td{padding-top:1px!important;padding-bottom:1px!important}
.pr-entry table>tbody>tr>td :is(select,input,button){height:31px!important;min-height:31px!important;padding-top:0;padding-bottom:0}
.pr-entry table>tbody>tr>td input.qty-input.qty-input.qty-input{height:28px!important;min-height:28px!important}
/* 하단 그리드 안 스크롤 : 머리 줄 · 합계 줄 고정 */
.pr-entry .pr-scroll{overflow:auto}
.pr-entry .pr-scroll>table>thead th{position:sticky;top:0;z-index:2;background-color:#f8fafc}
.pr-entry .pr-scroll>table>tfoot :is(td,th){position:sticky;bottom:0;z-index:2;background-color:#fffbeb}
html[data-theme="dark"] .pr-entry .pr-scroll>table>thead th,html[data-theme="dark"] .pr-entry .pr-scroll>table>tfoot :is(td,th){background-color:#1e293b}
/* BOM 관리 오른쪽 탭 · BOM 트리 / 조직도 구성 — 모양은 자재 구성 탭과 같게 (2026-12-02) */
.bv-tabs{display:flex;flex-wrap:wrap;gap:4px;padding:10px 16px 0;border-bottom:1px solid #e2e8f0}
.bv-tabs button{border:1px solid #cbd5e1;border-bottom:0;border-radius:8px 8px 0 0;padding:7px 18px;font-size:13px;font-weight:600;color:#475569;cursor:pointer}
.bv-tabs button.on{background:#2563eb;border-color:#2563eb;color:#fff}
.bv-org{overflow:auto;padding:12px}
.bv-chart{width:max-content;margin:0 auto;display:flex;flex-direction:column;align-items:center}
.bv-nd{position:relative;display:flex;align-items:center;gap:8px;width:196px;background:#fff;color:#334155;border:1px solid #cbd5e1;border-radius:8px;padding:3px 8px 3px 4px;font-size:11.5px;line-height:1.3;text-align:left}
button.bv-nd{cursor:pointer}button.bv-nd:hover,button.bv-nd:focus-visible{border-color:#2563eb;box-shadow:0 0 0 2px #bfdbfe}
.bv-nd.root{background:#dbeafe;border-color:#2563eb}.bv-nd.semi{background:#eff6ff;border-color:#93c5fd}
.bv-nd .tx{min-width:0;flex:1}
.bv-nd .cd,.bv-nd .nm,.bv-nd .qq{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.bv-nd .cd{font-weight:600;color:#1d4ed8}.bv-nd .qq{font-weight:600;font-variant-numeric:tabular-nums}.bv-nd .more{margin-left:6px;color:#1d4ed8;font-weight:400}
.bv-chart>.bv-nd{margin-bottom:14px}
.bv-chart>.bv-nd:not(:last-child)::after{content:"";position:absolute;left:50%;top:100%;height:14px;border-left:1px solid #64748b}
.bv-cols{display:flex;align-items:flex-start}
.bv-cols ul{margin:0;padding:0;list-style:none}
/* 맨 윗단 : 가로 줄 하나에서 각 줄기로 내려옴 */
.bv-cols>ul{position:relative;padding:12px 5px 0}
.bv-cols>ul::before{content:"";position:absolute;top:0;left:0;right:0;border-top:1px solid #64748b}
.bv-cols>ul:first-child::before{left:19px}.bv-cols>ul:last-child::before{right:auto;width:19px}.bv-cols>ul:only-child::before{display:none}
.bv-cols>ul::after{content:"";position:absolute;top:0;left:19px;height:12px;border-left:1px solid #64748b}
.bv-cols>ul>li{position:relative;padding-top:4px}
.bv-cols>ul>li:first-child{padding-top:0}
/* 같은 줄기의 낱개 자재 · 하위 품목 : 세로 줄기 + 화살표 */
.bv-cols ul ul{margin-left:18px}
.bv-cols ul ul>li{position:relative;padding:4px 0 0 20px}
.bv-cols ul ul>li::before{content:"";position:absolute;left:0;top:0;bottom:0;border-left:1px solid #64748b}
.bv-cols ul ul>li:last-child::before{bottom:auto;height:27px}
.bv-cols ul ul>li::after{content:"";position:absolute;left:0;top:27px;width:14px;border-top:1px solid #64748b}
.bv-cols ul ul>li>.bv-nd::before{content:"";position:absolute;right:100%;top:18px;margin-right:0;border:5px solid transparent;border-left:7px solid #64748b;border-right:0}
.bv-cols>ul>li+li>.bv-nd::before{content:"";position:absolute;left:12px;bottom:100%;border:3px solid transparent;border-top:4px solid #64748b;border-bottom:0}
.bv-nd .bv-ic{width:42px;height:42px;border:0}
html[data-theme="dark"] .bv-nd{background:#1e293b;color:#e2e8f0;border-color:#475569}
html[data-theme="dark"] .bv-nd.root,html[data-theme="dark"] .bv-nd.semi{background:#1e3a5f}
html[data-theme="dark"] .bv-nd .cd,html[data-theme="dark"] .bv-nd .more{color:#93c5fd}
.bv-ic{display:inline-flex;flex:none;align-items:center;justify-content:center;vertical-align:middle;background:#fff;border:1px solid #e2e8f0;border-radius:8px}
.bv-ic svg{width:100%;height:100%}
h2>.bv-ic{width:56px;height:56px;margin-right:12px}
.bom-full-node>.bv-ic{width:34px;height:34px;margin-right:8px}
/* 품목 사진 (BM0011) */
.bv-ic.photo{overflow:hidden}.bv-ic.photo img{width:100%;height:100%;object-fit:contain}
.item-photo-view{display:flex;align-items:center;justify-content:center;height:280px;margin:14px 0;border:1px solid #e2e8f0;border-radius:10px;background:#fff;color:#64748b;font-size:13px}
.item-photo-view img{max-width:100%;max-height:100%;object-fit:contain}
.item-photo-btn img{width:26px;height:26px;object-fit:cover;border-radius:4px;margin-right:6px}
.item-photo-field{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.item-photo-thumb{display:flex;align-items:center;justify-content:center;width:150px;height:150px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#64748b;font-size:12px;overflow:hidden}
.item-photo-thumb img{width:100%;height:100%;object-fit:contain}
/* 품목 관리 목록 : 행 높이 30% 크게 · 품목코드 옆 작은 사진 (2026-12-02) */
[data-view]:not([data-view="대시보드"]) table.item-grid:not(.plan-ops)>tbody>tr:not(.wo-mats-row):not(.row-free)>td{height:calc(var(--row-h) * 1.3)}
.item-code-cell{display:inline-flex;align-items:center;gap:8px}
.item-grid .item-mini{display:inline-flex;flex:none;width:34px;height:34px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;overflow:hidden;line-height:0}
.item-grid .item-mini.none{border-style:dashed;background:transparent}
.item-grid .item-mini img{width:100%;height:100%;object-fit:contain}
/* 생산실적 위 표 : 화면에 맞춘 높이 안에서 스크롤, 머리 줄 고정 */
.pr-orders .overflow-x-auto{overflow:auto}
.pr-orders .overflow-x-auto>table>thead>tr>th{position:sticky;top:0;z-index:3;background-color:#f8fafc}
html[data-theme="dark"] .pr-orders .overflow-x-auto>table>thead>tr>th{background-color:#1e293b}
/* BOM 구조 팝업 : 창고별 재고 열이 있을 때는 더 넓게 (품목 이름이 잘리지 않게) */
.bompop.wide.wh{width:min(1400px,100%)}.bompop.wide.wh table{min-width:1200px}
/* 생산실적의 BOM 구조 팝업 : 화면 가운데가 아니라 위쪽(조금 아래)에 */
.bompop-back:has(>.bompop.wh){align-items:flex-start;padding-top:7vh}
.bompop-back:has(>.bompop.wh)>.bompop{max-height:calc(93vh - 16px)}
/* 생산실적 현황 : 3D 공장 */
.f3-head{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:8px;font-size:13px;font-weight:700}
.f3-head label{display:flex;gap:6px;align-items:center}.f3-head input[type=date]{border:1px solid #cbd5e1;border-radius:6px;padding:5px 8px;background:transparent}
.f3-badge{border-radius:6px;padding:3px 10px;background:#eef2f7;color:#475569;font-size:12px}.f3-badge.demo{background:#fee2e2;color:#b91c1c}
.f3-cards{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto}.f3-card{border:1px solid #e2e8f0;border-radius:8px;background:#fff;padding:3px 14px;min-width:110px;color:#1f2937}.f3-card small{display:block;color:#64748b;font-weight:400}.f3-card b{font-size:19px}
.f3-main{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:8px}@media(max-width:1150px){.f3-main{grid-template-columns:minmax(0,1fr)}}
.f3-box{border:1px solid #e2e8f0;border-radius:10px;background:#fff;overflow:hidden;color:#1f2937}
.f3-view{position:relative}.f3-view>svg{display:block;width:100%;height:calc(100vh - 190px);min-height:380px;background:#eef1f5;cursor:grab;touch-action:none;user-select:none}.f3-view>svg.grabbing{cursor:grabbing}
.f3-zoom{position:absolute;right:10px;top:10px;display:flex;gap:4px}.f3-zoom button{min-width:34px;padding:4px 10px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#334155;font-weight:700}
.f3 svg .line{cursor:pointer}.f3 svg .line:focus{outline:none}
.f3-legend{display:flex;flex-wrap:wrap;gap:12px;padding:5px 12px;font-size:12px;color:#64748b}.f3-legend i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:4px}
.f3-side{padding:10px 12px;max-height:calc(100vh - 158px);min-height:410px;overflow:auto;font-size:13px}.f3-side h2{margin:10px 0 6px;font-size:14px;font-weight:700}
.f3-pick{display:flex;gap:6px;margin-bottom:8px}.f3-pick button{flex:1;font-weight:700;border:1px solid #cbd5e1;border-radius:7px;padding:5px 0;background:#fff;color:#334155}.f3-pick button.on{background:#1e3a5f;border-color:#1e3a5f;color:#fff}
.f3-cur{display:flex;gap:10px;align-items:center}.f3-cur img{width:62px;height:62px;border:1px solid #e2e8f0;border-radius:8px;object-fit:contain}.f3-cur small{display:block;color:#64748b}.f3-cur b{display:block;font-size:16px}
.f3-nums{display:flex;gap:6px;margin-top:8px}.f3-nums span{flex:1;border:1px solid #e2e8f0;border-radius:8px;text-align:center;font-size:11px;color:#64748b;padding:3px}.f3-nums b{display:block;font-size:17px;color:#1f2937}.f3-nums b.g{color:#2f9e6a}.f3-nums b.r{color:#cf4a4a}
.f3-op{display:grid;grid-template-columns:24px minmax(0,1fr) 48px;gap:6px;align-items:center;padding:3px 0;border-bottom:1px solid #eef2f7}.f3-op .no{width:21px;height:21px;border-radius:50%;background:#e2e8f0;text-align:center;line-height:21px;font-size:12px}
.f3-op .bar{display:block;height:6px;border-radius:9px;background:#e2e8f0;overflow:hidden;margin:2px 0}.f3-op .bar i{display:block;height:100%}.f3-op small{color:#64748b;font-size:11px}.f3-op .pct{text-align:right;font-weight:800;font-size:14px}
.f3-side table{width:100%;border-collapse:collapse;font-size:12px}.f3-side th,.f3-side td{padding:3px 4px;border-bottom:1px solid #eef2f7;text-align:right}.f3-side th:first-child,.f3-side td:first-child{text-align:left}.f3-side th{color:#64748b}.f3-side tr.on td{background:#e8f0fe;font-weight:700}
@media (prefers-reduced-motion:reduce){.f3 .moving{display:none}}
/* 대시보드 : 회전 3D 공장 */
.d3-view{position:relative;height:calc(100vh - 200px);min-height:400px;background:#eef1f5;overflow:hidden;isolation:isolate}
.d3-view>canvas{display:block;touch-action:none;cursor:grab;outline:none}.d3-view>canvas.drag{cursor:grabbing}
.d3-tags{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.d3-tags .tag{position:absolute;left:0;top:0;white-space:nowrap;border-radius:7px;background:#1f2937;color:#e5e7eb;padding:2px 7px;font-size:11px;text-align:center;border:2px solid #8c97a6;line-height:1.25}
.d3-tags .sign{position:absolute;left:0;top:0;display:block;width:188px;text-align:left;background:#fff;color:#1f2937;border:2px solid #94a3b8;border-radius:10px;padding:4px 8px;pointer-events:auto;cursor:pointer;line-height:1.35}
.d3-tags .sign.on{border-color:#2563eb;box-shadow:0 0 0 2px #bfdbfe}.d3-tags .sign .top{display:flex;justify-content:space-between;font-weight:900;font-size:13px}.d3-tags .sign .top i{font-style:normal;font-size:11px;color:#2563eb}
.d3-tags .sign .mid{display:flex;gap:7px;align-items:center}.d3-tags .sign img{width:40px;height:40px;border:1px solid #e2e8f0;border-radius:6px;object-fit:contain}.d3-tags .sign .mid b{display:block;font-size:12px}.d3-tags .sign small{color:#64748b;font-size:10.5px}
.d3-tags .sign .qty{display:flex;justify-content:space-between;font-size:11px;color:#64748b}.d3-tags .sign .qty b{font-size:14px}.d3-tags .g{color:#2f9e6a}.d3-tags .r{color:#cf4a4a}
.d3-btns{position:absolute;right:10px;top:10px;display:flex;gap:4px;z-index:100001}.d3-btns button{font-weight:700;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#334155;padding:4px 11px}
.d3-msg{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#475569;font-size:14px;padding:20px;text-align:center}
.dash-switch{display:flex;gap:8px;margin-bottom:10px}.dash-switch button{min-width:150px;padding:9px 18px;border:2px solid #cbd5e1;border-radius:9px;background:#fff;color:#334155;font-weight:700;font-size:14px;cursor:pointer}.dash-switch button.on{background:#2563eb;border-color:#2563eb;color:#fff}
/* 고른 라인의 공정 실적 이름표 : 3배 크기 */
.d3-tags .tag.op.big{width:172px;font-size:26px;font-weight:700;border-width:4px;border-radius:14px;padding:4px 12px;line-height:1.2;background:#fff;color:#1f2937;box-shadow:0 4px 12px rgba(15,23,42,.25)}
.d3-tags .tag.op.big b{font-size:38px}
/* 다국어 선택 상자 */
.lang-select{height:30px;padding:0 6px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#334155;font-size:12px}
.lg-lang{align-self:flex-end;margin-bottom:8px}
html[data-theme="dark"] .lang-select{background:#0f172a;border-color:#334155;color:#e2e8f0}
/* 개발중 메뉴 · 안내창 */
.side-item.menu-dev,.rail-fly button.menu-dev{opacity:.42}
.dev-back{position:fixed;inset:0;z-index:80;background:rgba(15,23,42,.35);display:flex;align-items:center;justify-content:center}
.dev-box{width:min(360px,90vw);background:#fff;color:#1e293b;border-radius:12px;padding:22px;text-align:center;box-shadow:0 20px 40px rgba(15,23,42,.25);display:flex;flex-direction:column;gap:10px;align-items:center}
.dev-tag{font-size:12px;border:1px solid #fed7aa;background:#fff7ed;color:#c2410c;border-radius:4px;padding:1px 8px}
.dev-title{font-weight:700;font-size:16px}

/* 로그인 화면 : 아이디 yen 입력 시 남색 영역 오른쪽에 사진 (가장자리는 남색으로 흐리게) */
.lg-brand{position:relative;overflow:hidden}
.lg-brand>:not(.lg-photo){position:relative;z-index:1}
.lg-photo{position:absolute;right:0;bottom:0;width:78%;height:80%;background:url("img/login_yen.jpg") 62% 0/cover no-repeat;opacity:0;transition:opacity .9s ease;pointer-events:none;
 -webkit-mask-image:linear-gradient(to right,transparent 0,#000 38%),linear-gradient(to bottom,transparent 0,#000 28%);-webkit-mask-composite:source-in;
 mask-image:linear-gradient(to right,transparent 0,#000 38%),linear-gradient(to bottom,transparent 0,#000 28%);mask-composite:intersect}
.lg-photo.on{opacity:1}

/* 왼쪽 메뉴 빈 곳 사진 (yen 로그인) : 두 사람이 보이게 아래쪽에, 가장자리는 흐리게 */
.side-photo{flex:1 1 0;min-height:0;position:relative;margin:12px 8px;overflow:hidden;pointer-events:none}
/* 하트 : 1초 동안 작게 시작해 커지며 제각각 다른 길로 떠올랐다가 사라짐 (위치·이동값은 layout.js 에서 랜덤) */
.side-heart{position:absolute;z-index:1;color:#fb7185;line-height:1;opacity:0;text-shadow:0 0 6px rgba(244,63,94,.55);animation:side-heart 1s ease-out forwards}
@keyframes side-heart{0%{transform:translate(-50%,0) scale(.3);opacity:0}15%{opacity:1}50%{transform:translate(calc(-50% + var(--x1)),var(--y1)) scale(1);opacity:1}100%{transform:translate(calc(-50% + var(--x2)),var(--y2)) scale(var(--end));opacity:0}}
.side-photo::before{content:"";position:absolute;left:0;right:0;bottom:0;height:min(100%,340px);background:url("img/login_yen.jpg") 60% 100%/cover no-repeat;border-radius:10px;
 -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 18%);mask-image:linear-gradient(to bottom,transparent 0,#000 18%)}

/* 삭제 확인 버튼 (빨간 바탕 · 흰 글자) */
.bg-red-600{background-color:#dc2626}
.border-red-600{border-color:#dc2626}
