
    :root {
      --font-anthropic-sans: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
      --font-anthropic-serif: "Noto Serif KR", "Nanum Myeongjo", Georgia, serif;
      --color-fg: #1f2328; --color-fg-muted: #6b7280; --color-bg: #f6f7f9; --color-panel: #ffffff; --color-border-line: #e3e6ea;
      --color-ok: #15803d; --color-warn: #b45309; --color-bad: #dc2626;
      --cds-radius: 10px; --cds-pad-xs: 4px; --cds-pad-sm: 8px; --cds-pad-md: 12px; --cds-pad-lg: 16px; --cds-pad-xl: 24px;
      --cds-gap-xs: 4px; --cds-gap-sm: 8px; --cds-gap-md: 12px; --cds-gap-lg: 20px; --cds-gap-xl: 32px;
      --cds-font-size-caption: 12px; --cds-font-size-body: 14px; --cds-font-size-heading: 16px; --cds-font-size-title: 24px;
      --cds-font-weight-medium: 600;
      --cds-surface-popover: #ffffff; --cds-border: #d7dbe0; --cds-shadow-popover: 0 4px 16px rgba(0,0,0,.12); --cds-text-secondary: #6b7280;
      --cds-chart-grid: #eceff2; --cds-chart-axis: #c9ced4; --cds-chart-reference: #9aa3ad; --cds-chart-muted: #d4d8dd; --cds-dur-slow: .3s;
    }
    @media (prefers-color-scheme: dark) {
      :root { --color-fg: #e6e8eb; --color-fg-muted: #9aa3ad; --color-bg: #121417; --color-panel: #1b1e23; --color-border-line: #2b3037;
        --cds-surface-popover: #22262c; --cds-border: #3a4049; --cds-shadow-popover: 0 4px 16px rgba(0,0,0,.5); --cds-text-secondary: #9aa3ad;
        --cds-chart-grid: #262a30; --cds-chart-axis: #3a4049; --cds-chart-reference: #6b7480; --cds-chart-muted: #3a4049; }
    }
    html, body { margin: 0; background: var(--color-bg); color: var(--color-fg); }
    #dash-root { max-width: 1280px; margin: 0 auto; padding: 20px clamp(12px, 3vw, 32px) 48px; font-family: var(--font-anthropic-sans); font-size: var(--cds-font-size-body); }
    .dash-select { font: inherit; font-size: var(--cds-font-size-caption); color: var(--color-fg); background-color: var(--color-panel); border: 1px solid var(--color-border-line); border-radius: var(--cds-radius); padding: 4px 28px 4px 8px; }
    .dash-skeleton { color: transparent !important; background: linear-gradient(90deg, var(--color-border-line), var(--color-panel), var(--color-border-line)); background-size: 200% 100%; border-radius: 6px; animation: as-shim 1.2s linear infinite; min-width: 3ch; }
    @keyframes as-shim { from { background-position: 200% 0; } to { background-position: -200% 0; } }
    .as-updated { font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); }
    .as-setup { background: #fff7ed; border: 1px solid #fdba74; color: #7c2d12; border-radius: var(--cds-radius); padding: var(--cds-pad-md) var(--cds-pad-lg); font-size: var(--cds-font-size-caption); }
    .as-setup code { background: rgba(0,0,0,.06); padding: 1px 4px; border-radius: 4px; }
    .as-page b { font-weight: 600; }

  .as-page { font-family: var(--font-anthropic-sans); color: var(--color-fg); display: flex; flex-direction: column; gap: var(--cds-gap-lg); }
  .as-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--cds-gap-md); }
  .as-title { font-family: var(--font-anthropic-serif); font-weight: 400; font-size: var(--cds-font-size-title); margin: 0; }
  .as-take { margin: var(--cds-gap-xs) 0 0; color: var(--color-fg-muted); font-size: var(--cds-font-size-body); }
  .as-tabs { display: flex; flex-wrap: wrap; gap: var(--cds-gap-xs); border-bottom: 1px solid var(--color-border-line); }
  .as-tab { font: inherit; font-size: var(--cds-font-size-body); color: var(--color-fg-muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: var(--cds-pad-sm) var(--cds-pad-md); cursor: pointer; margin-bottom: -1px; }
  .as-tab[aria-selected="true"] { color: var(--color-fg); border-bottom-color: var(--color-fg); font-weight: var(--cds-font-weight-medium); }
  .as-panel { display: flex; flex-direction: column; gap: var(--cds-gap-lg); }
  .as-filters { display: flex; flex-wrap: wrap; gap: var(--cds-gap-sm); align-items: center; }
  .as-filters label { font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); }
  .as-reset { font: inherit; font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); background: none; border: 1px solid var(--color-border-line); border-radius: var(--cds-radius); padding: var(--cds-pad-xs) var(--cds-pad-sm); cursor: pointer; }
  .as-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: var(--cds-gap-md); }
  .as-tile { background: var(--color-panel); border: 1px solid var(--color-border-line); border-radius: var(--cds-radius); padding: var(--cds-pad-lg); display: flex; flex-direction: column; gap: var(--cds-gap-xs); min-width: 0; }
  .as-tile .as-label { font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); }
  .as-tile .as-num { font-family: var(--font-anthropic-serif); font-weight: 400; font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .as-tile .as-sub { font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); }
  .as-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: var(--cds-gap-md); }
  .as-card { background: var(--color-panel); border: 1px solid var(--color-border-line); border-radius: var(--cds-radius); padding: var(--cds-pad-lg); display: flex; flex-direction: column; gap: var(--cds-gap-sm); min-width: 0; }
  .as-card.as-wide { grid-column: 1 / -1; }
  .as-card h2 { font-size: var(--cds-font-size-heading); font-weight: var(--cds-font-weight-medium); margin: 0; }
  .as-card .as-note { font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); margin: 0; }
  .as-chart { position: relative; min-height: 220px; }
  .as-chart.as-tall { min-height: 300px; }
  .as-chart svg { display: block; width: 100%; height: auto; }
  .as-tip { position: absolute; pointer-events: none; background: var(--cds-surface-popover); border: 1px solid var(--cds-border); border-radius: var(--cds-radius); box-shadow: var(--cds-shadow-popover); padding: var(--cds-pad-xs) var(--cds-pad-sm); font-size: var(--cds-font-size-caption); white-space: nowrap; z-index: 2; }
  .as-tip .as-tip-k { color: var(--cds-text-secondary); }
  .as-sw { display: inline-block; width: .6em; height: .6em; border-radius: 2px; margin-right: .4em; }
  .as-tbl-box { max-height: 420px; overflow: auto; }
  .as-tbl { width: 100%; border-collapse: collapse; font-size: var(--cds-font-size-caption); font-variant-numeric: tabular-nums; }
  .as-tbl th { position: sticky; top: 0; background: var(--color-panel); text-align: left; padding: var(--cds-pad-xs) var(--cds-pad-sm); border-bottom: 1px solid var(--color-border-line); font-weight: var(--cds-font-weight-medium); white-space: nowrap; }
  .as-tbl td { padding: var(--cds-pad-xs) var(--cds-pad-sm); border-bottom: 1px solid var(--color-border-line); white-space: nowrap; }
  .as-tbl td.as-r, .as-tbl th.as-r { text-align: right; }
  .as-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--cds-gap-sm); }
  .as-mini > div { display: flex; flex-direction: column; gap: 2px; }
  .as-mini .as-label { font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); }
  .as-mini b { font-family: var(--font-anthropic-serif); font-weight: 400; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
  .as-page .as-mini b { font-weight: 400; }
  .as-tall-box { max-height: 640px; }
  .as-sticky { position: sticky; top: 0; z-index: 20; }
  .as-tbl.as-comp th.as-rowhead { position: static; text-align: left; font-weight: 600; border-right: 2px solid var(--color-border-line); min-width: 8rem; }
  .as-tbl.as-comp thead th { border-bottom: 2px solid var(--color-border-line); font-weight: 600; }
  .as-tbl.as-comp tr.as-emph th, .as-tbl.as-comp tr.as-emph td { font-weight: 700; border-top: 2px solid var(--color-border-line); }
  .as-tbl.as-comp tr.as-group th { text-align: left; font-weight: 700; padding-top: 10px; border-right: 0; border-bottom: 2px solid var(--color-border-line); }
  .as-tbl.as-comp .as-total { font-weight: 600; border-left: 1px solid var(--color-border-line); }
  .as-tbl.as-wrap td { white-space: normal; min-width: 6rem; }
  .as-tbl.as-wrap td.as-long { min-width: 20rem; }
  .as-date { font: inherit; font-size: var(--cds-font-size-caption); color: var(--color-fg); background-color: var(--color-panel); border: 1px solid var(--color-border-line); border-radius: var(--cds-radius); padding: var(--cds-pad-xs) var(--cds-pad-sm); }
  .as-foot { font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); }
  .as-foot summary { cursor: pointer; }
  .as-foot dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--cds-gap-xs) var(--cds-gap-md); margin: var(--cds-gap-sm) 0 0; }
  .as-foot dt { font-weight: var(--cds-font-weight-medium); }
  .as-foot dd { margin: 0; }
  [data-dash-source-state=empty] { color: transparent; }
  [data-dash-source-state=refreshing] { opacity: .5; transition: opacity var(--cds-dur-slow); }
  .as-fail { display: flex; align-items: center; justify-content: center; gap: var(--cds-gap-xs); color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); min-height: 220px; }
  .as-fail::before { content: ""; width: .375rem; height: .375rem; border-radius: 50%; background: var(--color-bad); }

    .as-sub-title { color: var(--color-fg-muted); font-size: var(--cds-font-size-heading); font-family: var(--font-anthropic-sans); }
    .as-tabs a.as-tab { text-decoration: none; display: inline-block; }
    .as-home { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: var(--cds-gap-md); }
    .as-home a { display: block; background: var(--color-panel); border: 1px solid var(--color-border-line); border-radius: var(--cds-radius); padding: var(--cds-pad-xl); color: inherit; text-decoration: none; }
    .as-home a:hover { border-color: var(--color-fg-muted); }
    .as-home h2 { margin: 0 0 var(--cds-gap-xs); font-size: var(--cds-font-size-heading); font-weight: var(--cds-font-weight-medium); }
    .as-home p { margin: 0; color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); }
    .as-tbl td[contenteditable] { cursor: text; border-radius: 4px; }
    .as-tbl td[contenteditable]:hover { outline: 1px dashed var(--color-fg-muted); outline-offset: -1px; }
    .as-tbl td[contenteditable]:focus { outline: 2px solid #2563eb; outline-offset: -2px; background: var(--color-bg); white-space: pre-wrap; }
    .as-tbl td.as-saving { opacity: .5; }
    .as-tbl td.as-saved { box-shadow: inset 0 0 0 2px #10b981; }
    .as-tbl td.as-failed { box-shadow: inset 0 0 0 2px #dc2626; }
    .as-edit-status { font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); }
    .as-edit-status.as-bad { color: var(--color-bad); }
    .as-cell { min-height: 1.2em; }
    .as-suggest { margin-top: 4px; font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
    .as-suggest.as-muted { opacity: .7; }
    .as-chip { font: inherit; font-size: var(--cds-font-size-caption); color: var(--color-fg); background: var(--color-bg); border: 1px solid var(--color-border-line); border-radius: 999px; padding: 2px 8px; cursor: pointer; }
    .as-chip:hover { border-color: #2563eb; color: #2563eb; }

    /* ===== 테마: 클린 라이트 + 골드 헤더 (트레이드 컬러 #C7A66B), 차트 팔레트 틸·코랄 ===== */
    body { --gold: #C7A66B; --gold-dk: #a8884f; --gold-bg: #f7f1e6; --charcoal: #1f1d1b; --accent: var(--gold); --row-alt: #f8fafc; --row-hover: #f3f6fa;
      --color-fg: #0f172a; --color-fg-muted: #64748b; --color-bg: #f1f4f9; --color-panel: #ffffff; --color-border-line: #e2e8f0;
      --cds-chart-grid: #eef2f7; --cds-chart-axis: #cbd5e1; --cds-chart-reference: #94a3b8; --cds-chart-muted: #d7dee8; --cds-radius: 14px;
      --font-anthropic-serif: var(--font-anthropic-sans); font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; }
    .as-tile { padding: 18px 20px; gap: 6px; position: relative; overflow: hidden; }
    .as-tile .as-label { font-size: 12px; letter-spacing: .02em; font-weight: 600; color: var(--gold-dk); }
    .as-tile .as-num { font-size: 2.4rem; font-weight: 600; letter-spacing: -.02em; color: #0f172a; }
    .as-tile .as-sub { font-size: 12px; }
    .as-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); }
    .as-tile, .as-card { box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -16px rgba(15,23,42,.18); border-color: #e6eaf1; }
    .as-card h2 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
    .as-card h2::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--gold); }
    .as-tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr)); gap: 14px; }
    .as-grid { gap: 14px; }
    .as-tbl th { font-size: 12px; text-transform: none; color: var(--color-fg-muted); background: var(--gold-bg); }
    .as-tbl td { font-size: 13px; }
    .as-tbl tbody tr:nth-child(even) td { background: var(--row-alt); }
    .as-tbl tbody tr:hover td { background: var(--row-hover); }
    .as-tbl.as-comp .as-total { background: var(--gold-bg); }
    .as-title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: #2b2521; }
    .as-top { position: sticky; top: 0; z-index: 20; margin: -20px calc(-1 * clamp(12px, 3vw, 32px)) 0; box-shadow: 0 6px 16px -12px rgba(15,23,42,.35); }
    /* 본문 카드도 헤더와 같은 너비로(좌우 여백만큼 바깥으로) */
    .as-page > .as-panel, .as-page > .as-home, .as-page > .as-notes { margin-left: calc(-1 * clamp(12px, 3vw, 32px)); margin-right: calc(-1 * clamp(12px, 3vw, 32px)); }
    .as-head { background: linear-gradient(135deg, #d4b87f 0%, var(--gold) 55%, #b8955a 100%); color: #2b2521; margin: 0; padding: 18px clamp(12px, 3vw, 32px) 14px; border-radius: 0; }
    .as-head .as-title::before { content: "HIRONIC"; display: block; font-size: 11px; letter-spacing: .28em; font-weight: 600; margin-bottom: 4px; color: #5a4625; }
    .as-head .as-take { color: #4a3f31; } .as-head .as-take b { color: #2b2521; background: rgba(255,255,255,.5); padding: 0 6px; border-radius: 4px; }
    .as-head .as-reset { color: #2b2521; border-color: rgba(43,37,33,.35); background: rgba(255,255,255,.4); } .as-head .as-updated { color: #5a4e3e; }
    .as-tabs { background: #fff; margin: 0; padding: 8px clamp(12px, 3vw, 32px) 10px; border: 0; border-bottom: 1px solid var(--color-border-line); gap: 6px; }
    .as-tab { border: 1px solid transparent; border-radius: 999px; padding: 6px 14px; color: #475569; }
    .as-tab[aria-selected="true"] { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
    .as-home a:hover { border-color: var(--gold); }
    .as-months { display: flex; flex-wrap: wrap; gap: 6px; }
    .as-month { font: inherit; font-size: 13px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--color-border-line); background: #fff; color: #475569; cursor: pointer; }
    .as-month:hover { border-color: var(--gold); }
    .as-month[aria-pressed="true"] { background: var(--charcoal); color: #fff; border-color: var(--charcoal); font-weight: 600; }
    .as-comp .as-sel { background: #fff7e6 !important; box-shadow: inset 2px 0 0 var(--gold), inset -2px 0 0 var(--gold); border-left-color: transparent; }
    .as-comp .as-sel.as-sel-top { box-shadow: inset 2px 0 0 var(--gold), inset -2px 0 0 var(--gold), inset 0 2px 0 var(--gold); }
    .as-comp .as-sel.as-sel-bottom { box-shadow: inset 2px 0 0 var(--gold), inset -2px 0 0 var(--gold), inset 0 -2px 0 var(--gold); }
    .as-comp tr.as-emph td.as-sel { border-top-color: transparent; }
    .as-tbl-box.as-tall { max-height: 70vh; }
    .as-muted { color: var(--color-fg-muted); text-align: center; padding: 24px !important; }
    .as-list td { white-space: nowrap; }
    .as-list td.as-no a { color: #1d4ed8; font-weight: 600; text-decoration: none; } .as-list td.as-no a:hover { text-decoration: underline; }
    .as-list tbody tr { cursor: default; } .as-list tbody tr:hover td { background: var(--row-hover); }
    .as-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 0; background: #cbd5e1; }
    .as-dot-high { background: #dc2626; box-shadow: 0 0 0 2px #fee2e2; } .as-dot-shot { background: #f5b301; box-shadow: 0 0 0 2px #fff3c4; } .as-dot-normal { background: #22c55e; box-shadow: 0 0 0 2px #dcfce7; }
    td.as-sev-high { color: #b91c1c; font-weight: 700; } td.as-sev-shot { color: #92400e; font-weight: 600; } td.as-sev-normal { color: #166534; }
    .as-dot-open { background: #f08c00; box-shadow: 0 0 0 2px #ffe8cc; } .as-dot-done { background: #2563eb; box-shadow: 0 0 0 2px #dbe7ff; }
    .as-list td.as-paid { color: #dc2626; font-weight: 700; } .as-list td.as-free { color: #2a9d8f; font-weight: 600; } .as-list td.as-todo { color: #b8bcc4; }
    .as-list td.as-serial { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: #9a3412; }
    .as-days { display: flex; flex-wrap: wrap; gap: 4px; margin: -4px 0 10px; }
    .as-day { font: inherit; font-size: 12px; min-width: 34px; padding: 4px 7px; border-radius: 6px; border: 1px solid var(--color-border-line); background: #fff; color: #475569; cursor: pointer; line-height: 1.2; }
    .as-day small { display: block; font-size: 10px; color: var(--color-fg-muted); }
    .as-day:hover:not(:disabled) { border-color: var(--gold); } .as-day:disabled { opacity: .35; cursor: default; }
    .as-day[aria-pressed="true"] { background: var(--charcoal); color: #fff; border-color: var(--charcoal); font-weight: 600; } .as-day[aria-pressed="true"] small { color: #d9cfbb; }
    .as-rec-list { margin: 0; padding-left: 1.2em; } .as-rec-list li { margin: 2px 0 8px; } .as-rec-head b { color: #1f1d1b; }
    .as-rec-ex { margin: 2px 0 0 2px; color: #334155; } .as-rec-ref { color: #1d4ed8; font-weight: 600; text-decoration: none; margin-right: 2px; } .as-rec-ref:hover { text-decoration: underline; }
    .as-case-list { margin: 0; padding: 0; list-style: none; } .as-case { padding: 6px 0; border-bottom: 1px dashed var(--color-border-line); } .as-case:last-child { border-bottom: 0; }
    .as-case-head { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; } .as-case-t { color: #334155; margin-top: 2px; } .as-case-c { color: #7c2d12; } .as-case-a { color: #14532d; }
    .as-rec-ref-plain { color: #334155; cursor: default; } .as-rec-ref-plain:hover { text-decoration: none; }
    .as-steps { margin: 0; padding-left: 1.3em; } .as-steps li { margin: 0 0 8px; line-height: 1.55; }
    .as-ref { font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; } .as-ref-tsg { color: #1d4ed8; } .as-ref-video { color: #b91c1c; } .as-tsg-sub { margin-top: 6px; } .as-ref-case { color: #1d4ed8; } .as-ref-plain { color: #475569; cursor: default; }
    a.as-ref:hover { text-decoration: underline; }
    .as-grade { display: inline-block; min-width: 22px; text-align: center; padding: 1px 7px; border-radius: 6px; font-weight: 700; font-size: 12px; color: #fff; background: #94a3b8; }
    .as-ar { display: inline-block; padding: 1px 8px; border-radius: 6px; font-weight: 700; font-size: 12px; white-space: nowrap; }
    .as-ar-over { background: #fde8e6; color: #b42318; } .as-ar-ok { background: #e3f4f1; color: #1f7a6f; } .as-ar-unk { background: #fff4d6; color: #8a6400; } .as-ar-none { background: #eef0f3; color: #556; } .as-ar-info { background: #eef0f3; color: #3b5b7a; }
    .as-ar-plain { font-size: 13px; color: #334; white-space: pre-wrap; }
    .as-cell-edit { min-height: 1.4em; padding: 2px 6px; margin: -2px -6px; border-radius: 6px; outline: none; cursor: text; white-space: pre-wrap; }
    .as-cell-edit:hover { background: #fbf7ee; } .as-cell-edit:focus { background: #fff; box-shadow: 0 0 0 2px var(--gold); }
    .as-cell-edit:empty::before { content: '— (클릭해 입력)'; color: #94a3b8; }
    .as-cell-edit.as-saving { opacity: .6; } .as-cell-edit.as-saved { box-shadow: 0 0 0 2px #2a9d8f; } .as-cell-edit.as-failed { box-shadow: 0 0 0 2px #e76f51; }
    .as-rms { display: grid; gap: 8px; } .as-rms-head b { color: #0f172a; }
    .as-rms-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
    .as-rms-kpi { border-radius: 10px; padding: 10px 12px; border: 1px solid var(--color-border-line); background: #f8fafc; }
    .as-rms-p1 { background: #e8f5f1; border-color: #cfe9e2; } .as-rms-p2 { background: #e8eefb; border-color: #d3dcf3; } .as-rms-all { background: #fff5e6; border-color: #f3e1c2; }
    .as-rms-k { font-size: 12px; font-weight: 600; color: #475569; } .as-rms-v { font-size: 20px; font-weight: 700; color: #0f172a; margin-top: 2px; } .as-rms-v small { font-size: 12px; font-weight: 500; margin-left: 3px; color: #64748b; }
    .as-rms-t, .as-rms-d { font-size: 12px; color: #64748b; }
    [data-draw="d-t-all"] thead th { cursor: pointer; } [data-draw="d-t-all"] thead th:hover { color: var(--gold); }
    [data-draw="d-t-all"] thead th.as-month-sel { background: var(--charcoal); color: #fff; border-radius: 6px; }
    .as-list td.as-cust.as-cust-defect { color: #9f1239; font-weight: 700; }
    .as-cause-ai { background: #fbf7ee; border: 1px dashed var(--gold); border-radius: 8px; padding: 8px 10px; display: grid; grid-template-columns: 1fr auto; column-gap: 14px; row-gap: 6px; font-size: 13px; align-items: start; }
    .as-cause-ai > div { grid-column: 1; }
    .as-cause-tag { color: #8a6400; }
    .as-cause-adopt { grid-column: 2; grid-row: 1; white-space: nowrap; } .as-cause-retry { grid-column: 2; grid-row: 2; justify-self: end; font-size: 12px; padding: 3px 10px; white-space: nowrap; }
    .as-has-search { position: relative; padding-right: 400px; }
    .as-symsearch { position: absolute; right: 18px; top: 14px; width: 370px; }
    .as-symsearch-label { font-size: 12px; color: #475569; margin-bottom: 6px; }
    .as-symsearch-row { display: flex; gap: 6px; }
    .as-symsearch-prod { font: inherit; font-size: 13px; padding: 0 8px; height: 34px; border: 1px solid var(--color-border-line); border-radius: 8px; background: #fff; max-width: 130px; }
    .as-symsearch-input { flex: 1; min-width: 0; font: inherit; font-size: 13px; height: 34px; padding: 0 10px; border: 1px solid var(--gold); border-radius: 8px; }
    .as-symsearch-input:focus { outline: none; box-shadow: 0 0 0 2px #e9dcc0; }
    .as-symsearch-btn { height: 34px; white-space: nowrap; }
    @media (max-width: 1100px) { .as-has-search { padding-right: 0; } .as-symsearch { position: static; width: auto; margin-top: 10px; } }
    .as-year-sum { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 8px; font-size: 13px; }
.as-year-sum-total { font-weight: 700; margin-right: 4px; }
.as-year-chip { padding: 2px 9px; border-radius: 999px; background: rgba(0, 0, 0, .06); border: 1px solid rgba(0, 0, 0, .1); }
.as-year-chip b { font-weight: 600; }
.as-fault-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; } .as-fault-bar h2 { margin: 0; margin-right: auto; }
.as-fault-opts { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; } .as-fault-opts .as-bs-toggle { margin-left: 0; font-size: 13px; }
.as-fault-note { margin: 0 0 10px; }
.as-fault-view { margin: 0 0 12px; }
.as-ro-badge { display: inline-block; margin-left: 8px; padding: 2px 8px; font-size: 12px; font-weight: 600; border-radius: 999px; background: rgba(0,0,0,.08); vertical-align: middle; }
.as-defect-scope { margin: 0; }
.as-names-tbl td { vertical-align: middle; } .as-names-from { font-weight: 600; } .as-names-to b { color: #1d4ed8; }
.as-names-act { white-space: nowrap; } .as-names-ok { background: var(--charcoal, #2b2521); color: #fff; border-color: var(--charcoal, #2b2521); }
.as-names-done { color: #15803d; font-weight: 600; }
.as-names-group { padding: 10px 14px; border: 1px solid var(--color-border-line, #d8d2c4); border-radius: 10px; margin-bottom: 10px; }
.as-names-ghead { margin-bottom: 6px; } .as-names-opts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 8px; } .as-names-opt { cursor: pointer; }
#fault .as-fault-scope { margin: 6px 0 4px; }
.as-fault-opts .as-symsearch-prod { font: inherit; font-size: 13px; padding: 4px 8px; border: 1px solid var(--color-border-line, #d8d2c4); border-radius: 8px; background: #fff; }
#fault .as-tbl-box { max-height: none; overflow: visible; }
.as-fault-opts .as-disabled { opacity: .45; }
.as-fault-h { margin: 16px 0 6px; font-size: 14px; font-weight: 700; } .as-fault-h .as-kv-sub { font-weight: 400; margin-left: 4px; }
.as-fault-tbl th:first-child, .as-fault-tbl tbody th { text-align: left; white-space: nowrap; font-weight: 600; }
.as-fault-tbl td.as-num { text-align: right; font-variant-numeric: tabular-nums; min-width: 38px; }
.as-fault-tbl td.as-fault-sum { font-weight: 700; }
.as-fault-tbl tr.as-emph th, .as-fault-tbl tr.as-emph td { border-top: 2px solid var(--color-border-line, #d8d2c4); font-weight: 700; }
.as-sym-checks { margin: 4px 0 12px; padding: 10px 14px; border: 1px dashed var(--line, #c9b98a); border-radius: 10px; background: rgba(255, 255, 255, .35); }
.as-sym-checks-h { font-weight: 700; margin-bottom: 4px; }
.as-sym-checks-list { margin: 0 0 6px; padding-left: 20px; line-height: 1.55; }
.as-sym-checks-list li { margin: 2px 0; }
.as-symtbl td { vertical-align: top; } .as-symtbl td:first-child { white-space: nowrap; width: 150px; } .as-symtbl td:nth-child(2) { width: 170px; }
    .as-sym-cause { color: #993c1d; font-size: 12.5px; } .as-sym-symptom { color: #475569; }
    .as-sym-action { margin-top: 4px; padding: 5px 8px; background: #e3f4f1; color: #085041; border-radius: 6px; white-space: pre-wrap; }
    .as-days { align-items: center; } .as-bs-toggle { margin-left: auto; font-size: 12.5px; color: #475569; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; cursor: pointer; }
    .as-region { font-weight: 700; font-size: 12px; } .as-region-kr { color: #1f7a6f; } .as-region-os { color: #3b6ea8; }
    .as-review-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 8px; } .as-review-filters .as-date { font: inherit; font-size: 13px; padding: 4px 8px; border: 1px solid var(--color-border-line); border-radius: 8px; }
    .as-check { font-size: 13px; color: #475569; display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; }
    .as-ar-over-txt { color: #b42318; } .as-ar-ok-txt { color: #1f7a6f; } .as-ar-unk-txt { color: #8a6400; }
    .as-ar-box { display: grid; gap: 8px; } .as-ar-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
    .as-ar-table { border-collapse: collapse; font-size: 12.5px; } .as-ar-table th, .as-ar-table td { border: 1px solid #e5e7eb; padding: 3px 8px; text-align: left; white-space: nowrap; } .as-ar-table th { background: #f6f3ec; font-weight: 600; }
    .as-ar-check { display: grid; gap: 2px; font-size: 13px; } .as-ar-check b { color: #6b5a2e; }
    .as-grade-S { background: #b8860b; } .as-grade-A { background: #2a9d8f; } .as-grade-B { background: #3b6ea8; } .as-grade-C { background: #6b7280; } .as-grade-Z { background: #c0574f; } .as-grade-F { background: #9ca3af; }
    .as-pager { display: flex; gap: 4px; align-items: center; justify-content: center; padding: 10px 0 2px; font-size: 13px; color: var(--color-fg-muted); }
    .as-pager button { font: inherit; font-size: 13px; min-width: 32px; padding: 5px 9px; border-radius: 6px; border: 1px solid var(--color-border-line); background: #fff; color: #475569; cursor: pointer; }
    .as-pager button:hover:not(:disabled) { border-color: var(--gold); } .as-pager button:disabled { opacity: .4; cursor: default; }
    .as-pager button[aria-pressed="true"] { background: var(--charcoal); color: #fff; border-color: var(--charcoal); font-weight: 600; }
    .as-list tbody tr.as-selected td { background: #fff7e6 !important; box-shadow: inset 0 2px 0 var(--gold), inset 0 -2px 0 var(--gold); }
    .as-list tbody tr.as-selected td:first-child { box-shadow: inset 2px 0 0 var(--gold), inset 0 2px 0 var(--gold), inset 0 -2px 0 var(--gold); }
    .as-list tbody tr.as-selected td:last-child { box-shadow: inset -2px 0 0 var(--gold), inset 0 2px 0 var(--gold), inset 0 -2px 0 var(--gold); }
    .as-list td.as-prod { color: #475569; } .as-list td.as-cust { color: #0f172a; }
    .as-detail { scroll-margin-top: 150px; padding: 0; overflow: hidden; }
    .as-detail-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 3px solid var(--gold); background: var(--gold-bg); font-size: 15px; }
    .as-detail-head b { font-size: 16px; color: #1d4ed8; }
    .as-detail .as-kv { margin: 0; } .as-detail .as-kv th { background: #faf6ee; }
    .as-drawer { position: fixed; inset: 0; z-index: 50; }
    .as-drawer-bg { position: absolute; inset: 0; background: rgba(15,23,42,.35); }
    .as-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(760px, 96vw); background: #fff; box-shadow: -12px 0 32px -16px rgba(15,23,42,.4); display: flex; flex-direction: column; }
    .as-drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 3px solid var(--gold); background: var(--gold-bg); font-size: 15px; }
    .as-drawer-head b { font-size: 16px; color: #1d4ed8; } .as-drawer-title { color: var(--color-fg-muted); margin-left: 8px; }
    .as-drawer-body { overflow: auto; padding: 12px 20px 24px; }
    .as-kv { width: 100%; border-collapse: collapse; font-size: 13px; }
    .as-kv td.as-kv-wide { } .as-kv-sub { color: var(--color-fg-muted); font-size: 12px; margin-bottom: 4px; }
    .as-detail-head .as-drawer-title b.as-t-cust { color: #0f172a; font-size: 15px; } .as-detail-head .as-drawer-title b.as-t-prod { color: #475569; font-size: 15px; } .as-detail-head .as-drawer-title b.as-t-serial { color: #9a3412; font-size: 15px; }
    .as-detail-head .as-drawer-title b.as-st-open { color: #d9a400; font-size: 15px; } .as-detail-head .as-drawer-title b.as-st-done { color: #1d4ed8; font-size: 15px; }
    .as-st-open { color: #d9a400; } .as-st-done { color: #1d4ed8; } .as-paid-txt { color: #dc2626; } .as-free-txt { color: #2a9d8f; }
    .as-kv th { width: 7rem; text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--color-border-line); background: var(--gold-bg); color: #5a4625; font-weight: 600; }
    .as-kv td { padding: 8px 10px; border-bottom: 1px solid var(--color-border-line); white-space: pre-wrap; word-break: break-word; }
    body.as-noscroll { overflow: hidden; }
    .as-empty { min-height: 40vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: var(--color-fg-muted); }
    .as-empty h2::before { display: none; }
    .as-tbl td[contenteditable]:focus { outline-color: #2a9d8f; }
    .as-chip:hover { border-color: #2a9d8f; color: #2a9d8f; }

/* 거래처명 통일: 원래 이름(위) + 추천 거래처명(아래) */
.as-list td.as-cust-hasrec { white-space: normal; vertical-align: top; }
.as-cust-orig { white-space: nowrap; }
.as-cust-recs { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; margin: 3px 0 2px; }
.as-cust-rec { font: inherit; font-size: 12px; font-weight: 600; color: #6b4e16; background: #fff7e6; border: 1px solid #C7A66B; border-radius: 6px; padding: 1px 8px; cursor: pointer; white-space: nowrap; }
.as-cust-rec::before { content: "추천 "; font-weight: 400; color: #a8884f; }
.as-cust-rec:hover { background: #fdeecb; }
.as-cust-menu { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 2px; }
.as-cust-act { font: inherit; font-size: 12px; color: #fff; background: #1f1d1b; border: 0; border-radius: 6px; padding: 2px 8px; cursor: pointer; white-space: nowrap; }
.as-cust-act:hover { background: #3a3632; }
.as-cust-keep { font: inherit; font-size: 11px; color: #6b7280; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.as-cust-err { font-size: 12px; color: #b91c1c; white-space: normal; }

/* 로그인·권한 */
.as-hello { flex-basis: 100%; display: flex; justify-content: flex-end; align-items: baseline; gap: 10px; font-size: 13px; }
.as-hello-name { font-weight: 600; color: #2b2521; }
.as-hello-link { font: inherit; font-size: 12px; color: #5a4625; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.as-head .as-filters { justify-content: flex-end; }
.as-login[hidden], .as-home[hidden], .as-account[hidden], .as-pw-form[hidden] { display: none !important; }
.as-login { display: flex; justify-content: center; padding: clamp(32px, 9vh, 96px) 12px; }
.as-login-card { width: min(100%, 340px); display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 28px 28px 22px; box-shadow: 0 6px 24px rgba(31, 29, 27, .08); }
.as-login-card h2 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.as-login-card label { font-size: 12px; color: #6b7280; margin-top: 4px; }
.as-login-card input, .as-pw-form input { font: inherit; font-size: 14px; padding: 9px 10px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: inherit; }
.as-login-card input:focus, .as-pw-form input:focus { outline: 2px solid #C7A66B; outline-offset: 1px; border-color: #C7A66B; }
.as-login-btn { font: inherit; font-size: 14px; font-weight: 600; color: #fff; background: #1f1d1b; border: 0; border-radius: 8px; padding: 10px 14px; margin-top: 10px; cursor: pointer; }
.as-login-btn:hover { background: #3a3632; } .as-login-btn:disabled { opacity: .6; cursor: default; }
.as-login-msg { min-height: 18px; margin: 2px 0 0; font-size: 12px; color: #b91c1c; }
.as-login-guest { font: inherit; font-size: 12px; color: #6b7280; background: none; border: 0; padding: 4px 0 0; cursor: pointer; text-decoration: underline; align-self: center; }
.as-account { padding: 4px clamp(12px, 3vw, 32px) 0; }
.as-pw-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.as-pw-form input { width: 190px; } .as-pw-form .as-login-btn { margin-top: 0; padding: 9px 14px; }

/* 로그인 전(홈): 로그인 화면만 */
.as-locked .as-tabs, .as-locked .as-take, .as-locked .as-filters, .as-locked .as-foot { display: none !important; }

/* 머리글: 톱니바퀴(설정) · 인사말 · 로그인/로그아웃 버튼 */
.as-hello { position: relative; align-items: center; gap: 8px; }
.as-gear { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: none; color: #4a3f31; cursor: pointer; }
.as-gear:hover, .as-gear[aria-expanded="true"] { background: rgba(255, 255, 255, .45); color: #2b2521; }
.as-gear-pop[hidden], .as-gear-form[hidden], .as-gear-item[hidden] { display: none !important; }
.as-gear-pop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 50; min-width: 220px; background: #fff; color: #1f1d1b; border: 1px solid #e5e7eb; border-radius: 10px; padding: 6px; box-shadow: 0 8px 24px rgba(31, 29, 27, .16); text-align: left; }
.as-gear-item { display: block; width: 100%; font: inherit; font-size: 13px; text-align: left; color: inherit; background: none; border: 0; border-radius: 6px; padding: 8px 10px; cursor: pointer; }
.as-gear-item:hover { background: #f3f4f6; }
.as-gear-form { display: flex; flex-direction: column; gap: 6px; padding: 6px; }
.as-gear-form input { font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: inherit; }
.as-gear-form input:focus { outline: 2px solid #C7A66B; outline-offset: 1px; border-color: #C7A66B; }
.as-gear-form .as-login-btn { margin-top: 2px; padding: 8px 12px; font-size: 13px; }
.as-gear-form .as-login-msg { min-height: 0; }
.as-login-msg.as-ok { color: #15803d; }

/* 머리글의 로그인·로그아웃 버튼: 새로고침 버튼과 같은 크기 */
.as-head .as-filters .as-reset { box-sizing: border-box; min-width: 6em; text-align: center; white-space: nowrap; }

/* 로그인 화면: '로그인 없이 조회하기' — 로그인보다 한 단계 약한 테두리 버튼 */
.as-login-guest { align-self: stretch; font-size: 14px; font-weight: 600; color: #1f1d1b; background: #fff; border: 1px solid #c9ccd1; border-radius: 8px; padding: 9px 14px; margin-top: 2px; text-decoration: none; }
.as-login-guest:hover { background: #f5f5f4; border-color: #9ca3af; }
.as-login-msg:empty { min-height: 6px; }

/* 로그인 화면: 아이디 저장·로그인 상태 유지, 비밀번호 찾기 안내 */
.as-login-opts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; }
.as-login-card .as-login-opts label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: #374151; cursor: pointer; }
.as-login-opts input { width: 15px; height: 15px; padding: 0; margin: 0; accent-color: #1f1d1b; }
.as-login-forgot { align-self: flex-end; font: inherit; font-size: 12px; color: #6b7280; background: none; border: 0; padding: 0; margin: -2px 0 2px; cursor: pointer; text-decoration: underline; }
.as-login-help { margin: 0 0 4px; padding: 10px 12px; font-size: 12px; line-height: 1.6; color: #4b5563; background: #f7f5f0; border-radius: 8px; }
.as-login-help[hidden] { display: none; }

/* 로그인 화면: 위쪽 금색 머리글 띠는 숨기고, 로그인 카드 위에 제목을 붙임 */
.as-locked .as-head { display: none !important; }
.as-locked .as-login { min-height: calc(100vh - 80px); align-items: center; padding-top: 12px; padding-bottom: 12px; }
.as-login-brand span { display: block; font-size: 11px; letter-spacing: .28em; font-weight: 600; margin-bottom: 4px; }
.as-login-brand strong { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }

.as-login-card { overflow: hidden; }
.as-login-brand { margin: -28px -28px 14px; padding: 22px 28px 18px; background: linear-gradient(135deg, #d4b87f 0%, #C7A66B 55%, #b8955a 100%); color: #2b2521; }
.as-login-brand span { color: #5a4625; }

/* 접수 및 처리 내역 상세: 대시보드에서 바로 수정 */
.as-kv td .as-cell-edit { box-shadow: inset 0 -1px 0 #d8c7a0; border-radius: 4px; }
.as-kv td .as-cell-edit:hover { background: #fbf7ee; box-shadow: inset 0 -1px 0 #C7A66B; }
.as-kv td .as-cell-edit:focus { background: #fff; box-shadow: 0 0 0 2px var(--gold); }
.as-cell-edit.as-cell-inline { display: inline-block; min-width: 3em; margin: 0; padding: 1px 6px; font-weight: 700; }
.as-cell-edit[data-ph]:empty::before { content: attr(data-ph); color: #94a3b8; font-weight: 400; }
.as-class-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.as-cell-select { font: inherit; font-size: 12px; color: #374151; background: #fff; border: 1px solid #d8c7a0; border-radius: 6px; padding: 3px 6px; max-width: 240px; cursor: pointer; }
.as-cell-select:hover { border-color: #C7A66B; } .as-cell-select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.as-cell-select.as-saved { box-shadow: 0 0 0 2px #2a9d8f; } .as-cell-select.as-failed { box-shadow: 0 0 0 2px #e76f51; }
.as-edit-err { margin-top: 4px; font-size: 12px; color: #b91c1c; }
.as-edit-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; padding: 6px 10px; font-size: 12px; color: #6b4e16; background: #fff7e6; border: 1px solid #e7d3a4; border-radius: 8px; }
.as-note-line { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: baseline; }

.as-th-sub { font-weight: 400; font-size: 12px; color: #8a7a5c; }
.as-shot { margin-top: 4px; font-size: 13px; color: #374151; font-variant-numeric: tabular-nums; }
.as-shot-none { color: #94a3b8; }

.as-shot { display: flex; align-items: center; gap: 4px; width: fit-content; padding: 1px 4px; border-radius: 6px; }
.as-shot.as-saved { box-shadow: 0 0 0 2px #2a9d8f; } .as-shot.as-failed { box-shadow: 0 0 0 2px #e76f51; }
.as-shot-used { font: inherit; font-size: 13px; width: 6em; padding: 2px 6px; border: 0; border-radius: 4px; box-shadow: inset 0 -1px 0 #d8c7a0; background: none; color: inherit; text-align: right; font-variant-numeric: tabular-nums; }
.as-shot-used:hover { background: #fbf7ee; } .as-shot-used:focus { outline: none; background: #fff; box-shadow: 0 0 0 2px var(--gold); }
.as-shot-used::placeholder { color: #94a3b8; }
.as-shot-spec { padding: 2px 4px; }

/* 추정 원인 아래 AI 상자: 숨김 상태에서는 빈 점선 상자가 보이지 않게 */
.as-cause-ai[hidden] { display: none !important; }

/* 접수 상세: [수정] 버튼(닫기 왼쪽) */
.as-detail-head .as-edit-toggle { margin-left: auto; }
.as-edit-toggle[hidden] { display: none !important; }
.as-edit-toggle[aria-pressed="true"] { background: #1f1d1b; color: #fff; border-color: #1f1d1b; }
.as-detail.as-editing .as-detail-head { box-shadow: inset 0 3px 0 #1f1d1b; }
/* 목록 아래: [+ 신규] · 쪽 번호 */
.as-list-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 10px 0 2px; }
.as-list-foot .as-pager { padding: 0; }
.as-new-btn { justify-self: start; font: inherit; font-size: 13px; font-weight: 600; color: #fff; background: #1f1d1b; border: 0; border-radius: 8px; padding: 7px 14px; cursor: pointer; }
.as-new-btn:hover { background: #3a3632; }
/* 신규 접수 입력 창 */
.as-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(31, 29, 27, .45); }
.as-modal[hidden] { display: none !important; }
.as-modal-card { width: min(100%, 620px); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 14px; box-shadow: 0 16px 48px rgba(31, 29, 27, .28); }
.as-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--gold-bg, #fbf7ee); border-bottom: 3px solid var(--gold, #C7A66B); border-radius: 14px 14px 0 0; }
.as-modal-head b { font-size: 16px; }
.as-nf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 18px 20px 6px; }
.as-nf { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.as-nf-wide { grid-column: 1 / -1; }
.as-nf-label { font-size: 12px; font-weight: 600; color: #5b5346; }
.as-nf-hint { font-size: 11px; color: #94a3b8; }
.as-nf input, .as-nf select, .as-nf textarea { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: inherit; min-width: 0; }
.as-nf textarea { resize: vertical; line-height: 1.5; }
.as-nf input:focus, .as-nf select:focus, .as-nf textarea:focus { outline: 2px solid #C7A66B; outline-offset: 1px; border-color: #C7A66B; }
.as-nf-auto { font-size: 14px; padding: 8px 10px; border: 1px dashed #d8c7a0; border-radius: 8px; background: #fbf7ee; color: #6b5a3a; min-height: 1.4em; }
.as-modal-card .as-login-msg { padding: 0 20px; }
.as-modal-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 6px 20px 18px; }
.as-modal-actions .as-login-guest { align-self: auto; width: auto; margin: 0; padding: 9px 16px; }
.as-modal-actions .as-login-btn { margin: 0; padding: 9px 20px; }

/* 추천 방안 선택 · 현장 검증 */
.as-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 6px; padding-top: 8px; border-top: 1px dashed var(--color-border-line, #d6d3d1); }
.as-pick-label { font-size: 12px; font-weight: 600; color: #57534e; margin-right: 4px; }
.as-pick-btn { font: inherit; font-size: 12px; min-width: 2.4em; padding: 3px 10px; border: 1px solid #c8bfb0; border-radius: 999px; background: #fff; color: #44403c; cursor: pointer; }
.as-pick-btn:hover:not(:disabled) { border-color: #b08d3c; }
.as-pick-btn.as-on { background: #b08d3c; border-color: #b08d3c; color: #fff; font-weight: 600; }
.as-pick-btn:disabled { cursor: default; opacity: .75; }
.as-steps li.as-step-picked { background: #fbf6e6; box-shadow: -6px 0 0 #fbf6e6, 6px 0 0 #fbf6e6; border-radius: 2px; }
.as-ver { margin: 4px 0 2px; padding: 8px 10px; background: #f3f7f1; border-left: 3px solid #5d8a55; border-radius: 2px; font-size: 13px; line-height: 1.5; }
.as-ver-tag { font-size: 12px; color: #3f6b38; } .as-ver-list { margin: 4px 0 0; padding-left: 1.2em; } .as-ver-list li { margin: 0 0 2px; }
.as-pick-old { margin-top: 6px; }

/* 신규 접수: 거래처 목록 */
.as-nf-combo { position: relative; display: flex; flex-direction: column; }
.as-nf-pick { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; max-height: 232px; overflow: auto; background: #fff; border: 1px solid #d1d5db; border-radius: 8px; box-shadow: 0 10px 28px rgba(15,23,42,.16); padding: 4px; }
.as-nf-pick[hidden] { display: none; }
.as-nf-opt { display: flex; align-items: baseline; gap: 10px; width: 100%; text-align: left; font: inherit; font-size: 13px; padding: 7px 9px; border: 0; border-radius: 6px; background: none; color: #1f2937; cursor: pointer; }
.as-nf-opt b { font-weight: 600; white-space: nowrap; min-width: 5.5em; }
.as-nf-opt span { color: #64748b; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-nf-opt:hover, .as-nf-opt.as-on { background: #fbf3df; }
.as-nf-custname { color: #6b5a3a; min-height: 0; }
.as-nf-custname:empty { display: none; }

/* 해외 거래처 추가 */
.as-modal-top { z-index: 110; }
.as-modal-narrow { width: min(100%, 600px); }
.as-nf-add { color: #8a6a1c; font-weight: 600; border-top: 1px solid #ece7dc; border-radius: 0 0 6px 6px; margin-top: 2px; }
.as-nf-none { padding: 7px 9px; font-size: 12px; color: #94a3b8; }
.as-nf-exist { max-height: 104px; overflow: auto; border: 1px solid #e5e7eb; border-radius: 8px; background: #fafaf9; padding: 6px 8px; font-size: 13px; }
.as-nf-exist-row { display: flex; gap: 10px; padding: 3px 2px; align-items: baseline; }
.as-nf-exist-row b { min-width: 5.5em; font-weight: 600; white-space: nowrap; }
.as-nf-exist-row span { color: #64748b; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-nf input[readonly] { background: #f5f5f4; color: #57534e; }
.as-nf select:disabled { background: #f5f5f4; color: #57534e; opacity: 1; }
/* 진행중: 접수번호까지 주황색 · 목록 오른쪽 위 선택 묶음(진행중 / BS 제외 / 유·무상) */
.as-list td.as-no.as-no-open a { color: #e8590c; }
.as-list-opts { margin-left: auto; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.as-list-opts .as-bs-toggle { margin-left: 0; }
.as-list-opts select { font: inherit; font-size: 12.5px; padding: 3px 8px; border: 1px solid var(--color-border-line, #d8d2c4); border-radius: 8px; background: #fff; color: #475569; }
/* 출고 및 배송 내역 */
.as-ship-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.as-ship-cards .as-card { gap: 4px; }
.as-ship-cards .as-ship-num { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; color: #0f172a; }
.as-ship-cards .as-ship-num small { font-size: 14px; font-weight: 500; color: var(--color-fg-muted); margin-left: 4px; }
.as-list td.as-num, .as-list th.as-num { text-align: right; font-variant-numeric: tabular-nums; }
.as-list td.as-item { white-space: normal; min-width: 14rem; } .as-list td.as-item small { display: block; font-size: 11px; color: var(--color-fg-muted); font-family: ui-monospace, Consolas, monospace; }
.as-list tbody tr.as-row-link { cursor: pointer; }
.as-ship-items { width: 100%; border-collapse: collapse; font-size: 12.5px; } .as-ship-items th, .as-ship-items td { padding: 5px 8px; border-bottom: 1px solid var(--color-border-line); width: auto; background: none; white-space: nowrap; text-align: left; }
.as-ship-items th { background: #faf6ee; color: #5a4625; font-weight: 600; } .as-ship-items td.as-num, .as-ship-items th.as-num { text-align: right; font-variant-numeric: tabular-nums; } .as-ship-items td.as-item-name { white-space: normal; }
.as-kv.as-ship-kv th { white-space: nowrap; }
.as-detail[hidden] { display: none !important; }
.as-kv.as-ship-kv tr.as-ship-refs td { width: 18%; white-space: nowrap; }
/* 출고 및 배송 내역: 수정 · 신규 */
.as-ship-in { font: inherit; font-size: 13px; width: 100%; box-sizing: border-box; padding: 5px 8px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; color: inherit; min-width: 0; }
.as-ship-in:focus { outline: 2px solid #C7A66B; outline-offset: 1px; border-color: #C7A66B; } .as-ship-in.as-num { text-align: right; } .as-ship-in:disabled { background: #f3f4f6; color: #9ca3af; }
.as-ship-note { display: flex; align-items: center; gap: 8px; } .as-ship-note .as-ship-in { flex: 1; } .as-ship-note .as-reset[hidden] { display: none; }
.as-ship-items tr.as-ship-gone td { background: #fef2f2; } .as-ship-items tr.as-ship-gone .as-ship-in { text-decoration: line-through; }
.as-ship-items td .as-ship-in { min-width: 5rem; } .as-ship-items td .as-ship-del { font-size: 12px; padding: 3px 9px; white-space: nowrap; }
.as-ship-items + .as-reset { margin-top: 8px; }
.as-ship-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; } .as-ship-actions .as-login-msg { margin: 0 auto 0 0; }
.as-modal-card.as-ship-modal { width: min(100%, 860px); }
.as-nf-grid.as-ship-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.as-ship-newitems { padding: 10px 20px 4px; } .as-ship-sum { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: #475569; } .as-ship-sum .as-reset { margin-right: auto; } .as-ship-sum b { font-size: 15px; color: #0f172a; font-variant-numeric: tabular-nums; }
#ship-d-send[hidden] { display: none !important; }
/* 상세 머리: 진행중이면 접수번호·상태 글자도 주황색 */
.as-detail-head b.as-no-open { color: #e8590c; }
.as-detail-head .as-drawer-title b.as-st-open, .as-st-open { color: #e8590c; }
/* RMS 요약 줄 앞 상태 신호등 (RMS 조회 프로그램과 같은 색) */
.as-rms-sig { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; }
.as-rms-sig-green { background: #1fa64a; } .as-rms-sig-yellow { background: #f2c200; } .as-rms-sig-red { background: #e0322b; }
/* 리뷰: 일일/주간 전환 — 쓰지 않는 쪽 선택 줄은 숨김 */
.as-review-filters[hidden] { display: none !important; }
/* 출고 품목: 품목코드 안내 · 품목 등록 */
.as-ship-hint { font-size: 11.5px; color: #64748b; margin-top: 3px; white-space: normal; } .as-ship-hint:empty { display: none; }
.as-ship-hint-miss { color: #b45309; } .as-ship-hint .as-reset { font-size: 11.5px; padding: 2px 8px; margin-left: 2px; }
.as-ship-regnote { padding: 0 20px; margin: 4px 0 0; }
/* RMS: 접수된 카트리지·핸드피스의 사용량 */
.as-rms-part { margin: 8px 0; padding: 8px 12px; border: 1px solid #e7dcc3; border-left: 3px solid #C7A66B; border-radius: 0 8px 8px 0; background: #fdfaf3; }
.as-rms-part-h b { font-size: 13.5px; } .as-rms-part-v { margin: 2px 0; } .as-rms-part-v b { font-size: 18px; font-variant-numeric: tabular-nums; color: #0f172a; }
/* 상세 창 머리의 버튼(수정 · 닫기 등) 크기를 같게 (2026-12-01) */
.as-detail-head .as-reset { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-width: 4.6em; height: 28px; line-height: 1; white-space: nowrap; }
.as-detail-head .as-reset[hidden] { display: none !important; }
/* 버튼 크기 맞추기: 출고 상세 창 머리의 버튼, 고객불만 · 부적합의 삭제 / ERP용 복사 / 저장 (2026-12-01) */
.as-detail-head button:not(.as-reset) { box-sizing: border-box; height: 28px; line-height: 1; white-space: nowrap; }
button.rq-btn, button.rq-btn.as-del-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; height: 32px; min-width: 4.6em; padding: 0 14px; font-size: 13px; line-height: 1; border-radius: 8px; white-space: nowrap; }
button.rq-btn[hidden] { display: none !important; }
/* 삭제 버튼 자리 통일: 상세 창 머리에서 [수정] 바로 왼쪽 (2026-12-01) */
.as-detail-head .as-del-btn { margin-left: auto; } .as-detail-head .as-del-btn + .as-edit-toggle { margin-left: 0; }
/* 제목 안의 연도(.as-yr): 둘레 글자와 같은 모양으로 한 줄에 (로그인 화면에서 작은 글자로 따로 떨어지던 문제, 2026-12-01) */
.as-yr, .as-login-brand strong .as-yr, .as-login-brand .as-yr { display: inline !important; font: inherit !important; letter-spacing: inherit !important; margin: 0 !important; padding: 0 !important; color: inherit !important; text-transform: none !important; }

/* 발송 처리 창: 운송장 첨부 */
.as-ship-awb { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1.5px dashed #c9ccd1; border-radius: 10px; background: #fafaf9; }
.as-ship-awb input[type=file] { border: 0; padding: 0; background: none; font-size: 13px; }
.as-ship-awb .as-nf-hint { font-size: 12px; color: #5b5346; min-height: 1.2em; }
.as-ship-sendrefs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 16px; }
.as-ship-dl { margin-left: 10px; font-weight: 600; vertical-align: middle; }
@media (max-width: 560px) { .as-ship-sendrefs { grid-template-columns: 1fr; } }
/* 접수 상세 머리: 단추를 오른쪽에 붙여 모은다(출고 및 배송 내역과 같게) */
.as-detail-head [data-sr] { margin-left: auto; }
.as-detail-head [data-sr] ~ .as-edit-toggle, .as-detail-head [data-sr] ~ .as-del-btn { margin-left: 0; }
