/* ═══════════ STAR 작업 페이지 공통 테마 — 유리 질감 그라데이션 ═══════════
 * star_outorder.html · star_coupang.html 이 <head> 끝에서 불러온다.
 * 원칙: 크기(padding·width·height·font-size·border 두께)는 건드리지 않고 색·그라데이션·광택·그림자만 바꾼다.
 *   - 테두리 두께가 없던 버튼은 border 대신 inset box-shadow 로 테두리 효과 → 크기 그대로
 *   - 화면에서만 적용(@media screen) — 라벨·리스트 인쇄는 그대로
 *   - 'html ' 접두로 페이지 기본 규칙보다 한 단계만 세게 → 페이지의 더 구체적인 규칙(특정 버튼 색 등)은 그대로 살아 있음
 */
@media screen {

/* ── 바탕 팔레트: 남색 계열로 ── */
html:root{
  --bg:#0b1020;--s1:#121a2e;--s2:#18223a;--br:#26324d;
  --mu:#8391b0;
}
html body{
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(59,130,246,.14), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(139,92,246,.10), transparent 55%),
    linear-gradient(180deg,#0b1020 0%,#0a0f1d 100%);
  background-attachment:fixed;
}
html .unified-ftr{background:rgba(10,15,29,.85);border-top:1px solid rgba(120,150,210,.15)}

/* ── 제목 ── */
html h1 em{background:linear-gradient(90deg,#4ade80,#2dd4bf);-webkit-background-clip:text;background-clip:text;color:transparent}
html .badge{background:rgba(45,212,191,.08);border-color:rgba(45,212,191,.45);box-shadow:0 0 10px rgba(45,212,191,.18)}

/* ── 버튼: 그라데이션 + 위쪽 광택 + 은은한 빛 ── */
html .btn{
  border-radius:9px;
  text-shadow:0 1px 2px rgba(0,0,0,.28);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22), inset 0 0 0 1px rgba(255,255,255,.14), 0 2px 8px rgba(0,0,0,.25);
}
html .btn:hover:not(:disabled){filter:brightness(1.12)}
html .btn:active:not(:disabled){transform:translateY(1px)}
html .btn-g,html .btn-g:hover:not(:disabled){background:linear-gradient(120deg,#16a34a,#14b8a6);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.28),inset 0 0 0 1px rgba(110,240,190,.6),0 0 12px rgba(34,197,140,.35)}
html .btn-b,html .btn-b:hover:not(:disabled){background:linear-gradient(135deg,#2563eb,#3b82f6);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.28),inset 0 0 0 1px rgba(147,197,253,.6),0 0 12px rgba(59,130,246,.38)}
html .btn-y,html .btn-y:hover:not(:disabled){background:linear-gradient(135deg,#b45309,#f59e0b);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.28),inset 0 0 0 1px rgba(253,211,77,.6),0 0 12px rgba(245,158,11,.35)}
html .btn-r,html .btn-r:hover{background:linear-gradient(135deg,rgba(153,27,27,.9),rgba(239,68,68,.9));color:#fff;border-color:rgba(252,165,165,.7);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 0 12px rgba(239,68,68,.32)}
html .btn-s,html .btn-s:hover{background:linear-gradient(180deg,rgba(32,44,72,.95),rgba(18,26,46,.95));color:#dbe6ff;border-color:rgba(120,150,210,.3)}
html .btn-s:hover{border-color:rgba(147,197,253,.6)}

/* ── 페이지 전용 작은 버튼들 — 색은 각자 그대로, 위쪽 광택·둥근 모서리만 더함 (켜짐 상태 등 더 구체적인 규칙은 그대로) ── */
html :is(.cp-mode-btn,.cp-plan-btn,.cp-mini-btn,.cp-sel-btn,.dp-label-btn,.cp-mix-print-btn,.cp-box-all-btn,.cp-find-btn,.cp-cd-btn,.cp-asis-btn,.dp-hold-btn,.cp-pending-clear-btn,.cp-kiosk-help-btn,.na-btn,.hdr-home-btn){
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 2px 6px rgba(0,0,0,.22);
  text-shadow:0 1px 2px rgba(0,0,0,.25);
}
html :is(.cp-mode-btn,.cp-plan-btn,.cp-mini-btn,.cp-sel-btn,.dp-label-btn,.cp-mix-print-btn,.cp-box-all-btn,.cp-find-btn,.cp-cd-btn,.cp-asis-btn,.dp-hold-btn,.cp-pending-clear-btn,.cp-kiosk-help-btn,.na-btn,.hdr-home-btn):hover:not(:disabled){filter:brightness(1.12)}

/* ── 패널·카드: 유리 판 (테두리 두께는 그대로, 색만) ── */
html .form-panel,html .cp-panel,html .cp-mini-panel,html .cp-done-pool,html .cp-progress,html .cp-step-cta,
html .cp-sc,html .tc,html .empty-state,html .action-bar,html .cp-popup-box,html .cp-cand-item,html .cp-staging-item,html .pd-row,
html .cp-hero,html .cp-session-hdr,html .cp-pending-panel,html .cp-scan-input-wrap,
html .fmt-box,html .sc,html .modal,html .modal-info,html .scan-feedback,html .dz,html .steps{
  background:linear-gradient(180deg,rgba(28,38,62,.9),rgba(14,20,36,.9));
  border-color:rgba(120,150,210,.22);
  box-shadow:0 6px 18px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.05);
}
html .dz:hover,html .dz.drag{border-color:#2dd4bf;background:linear-gradient(180deg,rgba(20,60,70,.55),rgba(14,20,36,.9))}

/* ── 단계 표시(쿠팡) ── */
html .step{background:transparent;border-right-color:rgba(120,150,210,.18)}
html .step.on{background:linear-gradient(120deg,rgba(22,163,74,.35),rgba(20,184,166,.35));color:#fff;box-shadow:inset 0 -2px 0 #2dd4bf}
html .step.done{background:rgba(45,212,191,.07)}

/* ── 탭 ── */
html .tabs{border-bottom-color:rgba(120,150,210,.22)}
html .tab-btn.on{color:#5eead4;border-bottom-color:#2dd4bf;text-shadow:0 0 10px rgba(45,212,191,.45)}

/* ── 표 ── */
html .tbl thead th{background:linear-gradient(180deg,#1b2742,#16203a);color:#9fb0d4;border-bottom-color:rgba(120,150,210,.28)}
html .tbl tbody tr:hover td{background:rgba(59,130,246,.06)}

/* ── 입력칸 — :where 로 세기를 0 에 가깝게: 페이지가 따로 색을 준 칸(스캔칸·수량칸·파렛트 기준 등)은 그대로 ── */
:where(html) :where(input[type=text],input[type=number],input[type=search],input[type=email],input[type=date],input:not([type]),select,textarea){
  background-color:#0e1528;border-color:rgba(120,150,210,.3);
}
:where(html) :where(input,select,textarea):focus{border-color:#3b82f6}

/* ── 안내 메시지 ── */
html .msg.ok{background:linear-gradient(120deg,rgba(22,163,74,.16),rgba(20,184,166,.10));border-color:rgba(74,240,168,.55)}
html .msg.er{background:linear-gradient(120deg,rgba(153,27,27,.25),rgba(239,68,68,.10));border-color:rgba(252,165,165,.55)}
html .msg.inf{background:linear-gradient(120deg,rgba(37,99,235,.20),rgba(124,58,237,.10));border-color:rgba(147,197,253,.55)}
html .msg.warn{background:linear-gradient(120deg,rgba(180,83,9,.22),rgba(245,158,11,.10));border-color:rgba(253,211,77,.55)}

/* ── 스크롤바 ── */
html ::-webkit-scrollbar{width:10px;height:10px}
html ::-webkit-scrollbar-track{background:#0b1020}
html ::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#26324d,#1b2742);border-radius:6px;border:2px solid #0b1020}
html ::-webkit-scrollbar-thumb:hover{background:#34456a}

}
