  /* cic_win.css — [CIC-2 2026-11-26 만포님 확정] 거래처 카드(CIC) 모양. 짝 파일 cic_win.js(같은 폴더) · 상품스펙 창(psk_win.css)과 같은 규격(버튼 50px · 창 테두리·머리·바닥) · 색만 초록 */
  #cicFab {
    display: none; position: fixed; left: 262px; top: 212px; z-index: 99970;
    width: 50px; height: 50px; border: 1px solid transparent; border-radius: 50%;
    background: #047857; color: #fff; box-shadow: 0 4px 12px rgba(4,120,87,0.4); cursor: grab;
    align-items: center; justify-content: center; transition: box-shadow .2s ease, transform .2s ease; user-select: none; touch-action: none; padding: 0;
  }
  #cicFab:hover { background: #065f46; box-shadow: 0 6px 16px rgba(4,120,87,0.55); transform: scale(1.05); }
  #cicFab.dragging { cursor: grabbing; transform: none; transition: none; }
  #cicFab .material-icons { font-size: 25px; pointer-events: none; }
  #cicFab .cic-dot { display: none; position: absolute; right: 1px; top: 1px; width: 12px; height: 12px; border-radius: 50%; background: #dc2626; border: 2px solid #fff; box-sizing: border-box; pointer-events: none; }
  #cicFab.has-memo .cic-dot { display: block; }
  #cicTip {
    display: none; position: fixed; z-index: 99975; width: 260px; background: #fff; border: 1px solid #94a3b8; border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18); padding: 8px 10px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; pointer-events: none;
  }
  #cicTip .t { font-size: 11px; font-weight: 700; color: #065f46; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #cicTip .m { font-size: 12px; color: #1e293b; line-height: 1.45; white-space: pre-wrap; word-break: break-all; max-height: 70px; overflow: hidden; }
  #cicWin {
    display: none; position: fixed; left: 330px; top: 90px; z-index: 99972;
    width: 1080px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px);
    background: #fff; border: 1px solid #94a3b8; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    flex-direction: column; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 12px; color: #1e293b;
  }
  #cicWin.visible { display: flex; }
  #cicWin.dragging { transition: none; }
  #cicWin * { box-sizing: border-box; }
  .cic-head { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 12px; background: #ecfdf5; border-bottom: 1px solid #a7f3d0; cursor: move; user-select: none; }
  .cic-head h2 { margin: 0; font-size: 13px; font-weight: 700; color: #065f46; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
  .cic-head h2 .material-icons { font-size: 18px; color: #047857; }
  .cic-search-wrap { position: relative; margin-left: auto; flex-shrink: 0; cursor: default; }
  .cic-search-wrap input { width: 300px; height: 28px; padding: 0 50px 0 9px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 12px; background: #fff; }
  .cic-search-wrap input:focus { border-color: #047857; outline: none; }
  .cic-search-wrap .ico { position: absolute; right: 7px; top: 5px; font-size: 18px; color: #94a3b8; pointer-events: none; }
  .cic-search-wrap .clr { position: absolute; right: 26px; top: 3px; width: 22px; height: 22px; border: none; background: transparent; color: #94a3b8; cursor: pointer; display: none; align-items: center; justify-content: center; padding: 0; border-radius: 4px; }
  .cic-search-wrap .clr:hover { color: #dc2626; background: #fee2e2; }
  .cic-search-wrap .clr .material-icons { font-size: 16px; }
  .cic-search-wrap.has .clr { display: inline-flex; }
  #cicDd { position: absolute; top: 32px; right: 0; width: 420px; max-height: 260px; overflow-y: auto; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; box-shadow: 0 8px 20px rgba(0,0,0,0.15); z-index: 5; display: none; }
  #cicDd div { padding: 5px 9px; font-size: 12px; cursor: pointer; display: flex; gap: 8px; align-items: center; border-bottom: 1px solid #f1f5f9; }
  #cicDd div:last-child { border-bottom: none; }
  #cicDd div:hover, #cicDd div.on { background: #ecfdf5; }
  #cicDd b { color: #1d4ed8; font-weight: 700; white-space: nowrap; font-family: Consolas, monospace; }
  #cicDd span { color: #1e293b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #cicDd small { margin-left: auto; color: #94a3b8; white-space: nowrap; }
  #cicDd i.d { width: 7px; height: 7px; border-radius: 50%; background: #dc2626; flex-shrink: 0; }
  #cicDd .none { color: #94a3b8; cursor: default; }
  .cic-close { width: 28px; height: 28px; border: none; background: transparent; color: #64748b; cursor: pointer; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
  .cic-close:hover { background: #d1fae5; color: #065f46; }
  .cic-close .material-icons { font-size: 20px; }
  .cic-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 7px 12px 0; font-size: 12px; color: #475569; }
  .cic-sub:empty { display: none; }
  .cic-sub .nm { font-weight: 700; color: #0f172a; font-size: 15px; }
  .cic-sub .cd { font-family: Consolas, monospace; font-size: 13px; font-weight: 700; color: #1d4ed8; }
  .cic-badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; background: #dbeafe; color: #1d4ed8; line-height: 16px; white-space: nowrap; }
  .cic-badge.gray { background: #e2e8f0; color: #475569; }
  .cic-badge.red { background: #fee2e2; color: #b91c1c; }
  .cic-badge.amber { background: #fef3c7; color: #b45309; }
  .cic-badge.green { background: #dcfce7; color: #15803d; }
  .cic-warn { margin: 6px 12px 0; padding: 5px 9px; border: 1px solid #fcd34d; background: #fffbeb; color: #92400e; border-radius: 6px; font-size: 11.5px; line-height: 1.5; white-space: pre-line; }
  .cic-body { padding: 7px 12px 9px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 7px; }
  .cic-loading { padding: 28px; text-align: center; color: #94a3b8; font-size: 12px; }
  .cic-cols { display: flex; gap: 7px; align-items: stretch; }
  .cic-sec { flex: 1 1 0; min-width: 0; border: 1px solid #e2e8f0; border-radius: 8px; padding: 5px 9px 8px; display: flex; flex-direction: column; gap: 5px; }
  .cic-sec.c3 { flex: 0.9 1 0; }
  .cic-sec-title { font-size: 10.5px; font-weight: 700; color: #047857; display: flex; align-items: center; gap: 3px; }
  .cic-sec-title .material-icons { font-size: 13px; }
  .cic-sec-title small { margin-left: auto; font-weight: 600; color: #64748b; font-size: 10.5px; display: inline-flex; align-items: center; gap: 2px; }
  .cic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 6px; }
  .cic-field { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .cic-field.w2 { grid-column: span 2; }
  .cic-field label { font-size: 10.5px; font-weight: 700; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cic-field input, .cic-field select { height: 26px; padding: 0 6px; border: 1px solid #cbd5e1; border-radius: 5px; font-size: 12px; width: 100%; background: #fff; color: #1e293b; font-family: inherit; }
  .cic-field input:focus, .cic-field select:focus, .cic-memo:focus, .cic-mg input:focus { border-color: #047857; outline: none; }
  .cic-field input.kd { background: #eff6ff; }
  .cic-field input[readonly], .cic-field select:disabled { background: #f8fafc; border-color: #e2e8f0; color: #1e293b; opacity: 1; }
  .cic-field input.kd[readonly] { background: #f1f6fd; }
  .cic-field input.chg, .cic-field select.chg, .cic-memo.chg, .cic-mg input.chg { border-color: #f59e0b; background: #fffbeb; }
  .cic-field input.over { border-color: #dc2626; background: #fef2f2; }
  .cic-stat { border: 1px solid #e2e8f0; border-radius: 8px; padding: 4px 9px; background: #f8fafc; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; }
  .cic-stat .l { font-size: 11px; font-weight: 700; color: #475569; }
  .cic-stat .n { font-size: 15px; font-weight: 700; color: #1e293b; white-space: nowrap; }
  .cic-stat .n.bal { color: #1d4ed8; }
  .cic-stat .n.neg { color: #dc2626; }
  .cic-stat .n.na { font-size: 11px; color: #94a3b8; font-weight: 600; }
  .cic-mg-view { height: 26px; display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; color: #1e293b; border: 1px solid #e2e8f0; border-radius: 5px; background: #f8fafc; padding: 0 7px; }
  .cic-mg-view b { color: #64748b; font-weight: 700; }
  .cic-mg-view .sep { color: #cbd5e1; margin: 0 3px; }
  .cic-mg-view .neg { color: #dc2626; }
  .cic-mg { display: grid; gap: 3px; }
  .cic-mg label { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 10px; font-weight: 700; color: #64748b; text-align: center; white-space: nowrap; overflow: hidden; }
  .cic-mg input { height: 26px; width: 100%; min-width: 0; padding: 0 2px; border: 1px solid #cbd5e1; border-radius: 5px; font-size: 12px; text-align: center; font-family: inherit; -moz-appearance: textfield; }
  .cic-mg input::-webkit-outer-spin-button, .cic-mg input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  .cic-memos { display: flex; gap: 7px; align-items: stretch; }
  .cic-memo-sec { flex: 1 1 0; min-width: 0; border: 1px solid #e2e8f0; border-radius: 8px; padding: 5px 9px 8px; display: flex; flex-direction: column; gap: 4px; }
  .cic-memo-sec.kd { flex: 1.6 1 0; border-color: #a7f3d0; background: #ecfdf5; }
  .cic-memo-sec.kd .cic-sec-title { color: #065f46; }
  .cic-memo { width: 100%; height: 92px; padding: 5px 8px; border: 1px solid #cbd5e1; border-radius: 5px; font-size: 12.5px; line-height: 1.5; resize: none; font-family: inherit; color: #1e293b; background: #fff; }
  .cic-memo[readonly] { border-color: #e2e8f0; }
  .cic-memo-sec:not(.kd) .cic-memo[readonly] { background: #f8fafc; }
  .cic-memo-note { font-size: 10.5px; color: #b45309; }
  .cic-foot { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: #f8fafc; border-top: 1px solid #e2e8f0; }
  .cic-note { font-size: 11px; color: #64748b; margin-right: auto; display: flex; align-items: center; gap: 12px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .cic-note .ok { color: #15803d; font-weight: 700; }
  .cic-note .ch { color: #92400e; font-weight: 700; }
  .cic-foot button, .cic-btn { height: 28px; padding: 0 12px; border: 1px solid #cbd5e1; background: #fff; color: #475569; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; font-family: inherit; }
  .cic-foot button .material-icons, .cic-btn .material-icons { font-size: 16px; }
  .cic-foot button.primary { background: #2563eb; color: #fff; border-color: #2563eb; }
  .cic-foot button.primary:disabled { background: #93c5fd; border-color: #93c5fd; cursor: default; }
  .cic-foot button.edit { background: #047857; color: #fff; border-color: #047857; }
  .cic-foot button.edit:disabled { background: #6ee7b7; border-color: #6ee7b7; cursor: default; }
  .cic-foot button.revert { color: #b45309; border-color: #f59e0b; background: #fffbeb; }
  .cic-foot button.secondary { background: #64748b; color: #fff; border-color: #64748b; }
  .cic-foot button[hidden] { display: none; }
  /* ★ [CIC-4 2026-11-26 만포님 확정] 앱 · 전표 설정 구획(조회 = 한 줄 요약 · 수정 = 펼침) · 수금액 · 극동 맞추기 버튼 · 붙여넣기 작업판 */
  .cic-set { border: 1px solid #e2e8f0; border-radius: 8px; padding: 4px 9px; display: flex; flex-direction: column; gap: 5px; flex: 0 0 auto; }
  .cic-set.open { padding-bottom: 8px; }
  .cic-set-bar { min-height: 20px; cursor: pointer; }
  #cicWin.editing .cic-set-bar { cursor: default; }
  .cic-set-sum { display: inline-flex; align-items: center; gap: 0; margin-left: 8px; min-width: 0; overflow: hidden; white-space: nowrap; font-weight: 600; color: #334155; font-size: 11.5px; }
  .cic-set-sum span + span::before { content: '|'; color: #cbd5e1; margin: 0 8px; font-weight: 400; }
  .cic-set-bar small .material-icons { font-size: 15px; }
  .cic-set-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px 6px; }
  .cic-stat .n .cic-coll { color: #dc2626; } /* [CIC-4a 만포님 확정] 수금액(빨강) 먼저 · 날짜는 뒤에 작게 */
  .cic-stat .n small.cic-coll-d { font-size: 11.5px; font-weight: 600; color: #475569; }
  .cic-warn .cic-sync { height: 22px; padding: 0 8px; margin-left: 6px; font-size: 11.5px; border-color: #f59e0b; color: #92400e; background: #fff; vertical-align: middle; }
  .cic-warn .cic-sync .material-icons { font-size: 14px; }
  .cic-board { border: 1px solid #a7f3d0; background: #f0fdf4; border-radius: 8px; padding: 6px 9px 8px; display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }
  .cic-board .cic-sec-title small .cic-btn { height: 22px; padding: 0 8px; font-size: 11px; }
  .cic-board-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
  .cic-board-col { display: flex; flex-direction: column; min-width: 0; }
  .cic-board-zone { border: 2px dashed #cbd5e1; border-radius: 8px; padding: 8px; text-align: center; color: #64748b; font-size: 12px; line-height: 1.5; background: #fff; cursor: pointer; outline: none; flex: 1 1 auto; min-height: 84px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
  .cic-board-zone:focus, .cic-board-zone.over { border-color: #047857; }
  .cic-board-zone small { font-size: 11px; color: #94a3b8; }
  .cic-board-col .cic-memo { height: 100%; min-height: 84px; }
  .cic-board-thumbs { display: none; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
  .cic-board-thumb { position: relative; width: 64px; height: 64px; border: 1px solid #e2e8f0; border-radius: 6px; overflow: hidden; background: #fff; }
  .cic-board-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .cic-board-thumb .material-icons { position: absolute; top: 2px; right: 2px; font-size: 14px; background: rgba(15,23,42,.65); color: #fff; border-radius: 50%; cursor: pointer; padding: 1px; }
  .cic-board-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .cic-board-row .cic-btn.run { background: #047857; color: #fff; border-color: #047857; }
  .cic-board-row .cic-btn.run:disabled { background: #6ee7b7; border-color: #6ee7b7; cursor: default; }
  .cic-board-status { font-size: 11.5px; color: #475569; line-height: 1.6; white-space: pre-line; }
  .cic-board-status:empty { display: none; }
  /* ★ [CIC-4a 2026-11-26] 창이 화면 높이에 닿았을 때 — 칸을 눌러 줄이지 않고(수정 상태의 적용공급가 입력칸이 잘리던 원인) 본문을 스크롤한다 */
  .cic-cols, .cic-memos { flex: 0 0 auto; }
  .cic-sec > *, .cic-memo-sec > * { flex-shrink: 0; }
  #cicFab .material-icons svg, #cicFab svg { pointer-events: none; }
  .cic-mg label { overflow: visible; overflow-x: clip; line-height: 13px; padding-bottom: 1px; } /* 적용공급가 입력칸 아래 테두리가 잘리던 것 — 글자 줄 높이가 소수점으로 떨어지는 글꼴에서 세로로 잘렸다 → 세로는 자르지 않는다(가로만) */
