/* =====================================================================
   리하온 · 테마 3 SHELF — 화장품 매장 진열대의 문법으로
   숫자 = 레일에 건 가격표 · 내용 = 선반(병·상자) · 경고 = 쉘프토커 · 내역 = 영수증
   위 = 차양(어닝) · 제목 · 알약 버튼. Claude Design 「리하온 테마 3 SHELF」 기준.
   ===================================================================== */
.t-s {
  --bg: #efe7dc; --shelf: #fbf6ee; --paper: #fffaf3; --wood: #c19a6b; --wood2: #d9b98f; --kraft: #e8d6bd; --kraft2: #cdb393;
  --ink: #2b211b; --mu: #6b5d50; --fa: #8a7a6c; --fa2: #a8927a; --ln: #e2d6c6; --ln2: #cbb79f; --dash: #b9a995; --well: #efe7dc; --peg: #e0cfb8;
  --ok: #1f7a4d; --ok-bg: #1f7a4d; --ok-soft: #e3efe2; --warn: #8a6400; --warn-bg: #f5c518; --warn-soft: #fbe7a8; --risk: #d02b1b; --risk2: #c73a22; --risk-soft: #f5c9bb; --stop: #111111; --stop-soft: #d8cec4;
  --f: "Pretendard SH", "Pretendard Variable", Pretendard, sans-serif; --fr: "Bricolage SH", "Pretendard SH", sans-serif; --mono: "DM Mono SH", "SF Mono", Menlo, monospace;
  --card: var(--shelf); --line: var(--ln); --line-2: var(--ln); --mute: var(--mu); --faint: var(--fa); --hi: var(--ac-soft);
  --serif: var(--f); --display: var(--fr); --font: var(--f); --radius: 14px; --radius-sm: 10px; --deep: var(--ink); --on-deep: var(--paper); --on-ac: #fff;
  --chart-grid: var(--ln); --chart-text: var(--mu);
}
html.t-s, body.t-s { background: var(--bg); }
body.t-s { color: var(--ink); font-family: var(--f); font-size: 13px; word-break: keep-all; margin: 0; }
.t-s a { color: #3b2a20; text-decoration: none; } .t-s a:hover { color: var(--ac); }
.t-s .m, .t-s .mono { font-family: var(--mono); } .t-s .fr { font-family: var(--fr); font-weight: 800; }
.t-s .mu { color: var(--mu); } .t-s .fa { color: var(--fa); } .t-s .sm { font-size: 11px; } .t-s .xs { font-size: 10px; } .t-s .r { text-align: right; } .t-s .c { text-align: center; } .t-s .nw { white-space: nowrap; }
.t-s .ok-t { color: var(--ok); } .t-s .warn-t { color: var(--warn); } .t-s .risk-t { color: var(--risk); } .t-s .stop-t { color: var(--fa); } .t-s .ac-t { color: var(--ac); }
.t-s .up { color: #2f7d4f; } .t-s .down { color: var(--risk); }
.t-s b, .t-s strong { font-weight: 800; } .t-s form { margin: 0; }

/* ------------------------------------------------------------ 머리 */
.sh-head { background: var(--bg); font-size: 12px; white-space: nowrap; position: sticky; top: 0; z-index: 40; }
.sh-r1 { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 32px; }
.sh-r1 .l, .sh-r1 .r { display: flex; align-items: center; gap: 12px; } .sh-r1 .l { gap: 14px; }
.sh-logo { font-family: var(--fr); font-weight: 800; font-size: 22px; color: var(--ink) !important; letter-spacing: -.01em; } .sh-logo span { color: var(--ac); }
.sh-back { color: var(--fa) !important; }
.sh-seg { display: flex; padding: 3px; border-radius: 999px; background: var(--ln); } .sh-seg a, .sh-seg span { padding: 3px 12px; border-radius: 999px; font-weight: 700; color: var(--fa) !important; }
.sh-seg a.on { background: var(--paper); color: var(--ink) !important; }
.sh-seg.sk { font-size: 11px; } .sh-seg.sk a, .sh-seg.sk span { padding: 3px 9px; } .sh-seg.sk span { opacity: .5; cursor: default; }
.sh-brands { display: flex; gap: 4px; } .sh-brands a { padding: 4px 12px; border-radius: 999px; font-weight: 700; background: transparent; color: var(--mu) !important; }
.sh-brands a.b-all.on { background: var(--ink); color: var(--paper) !important; }
.sh-brands a.b-S { background: #fbe0d4; color: #6b3420 !important; } .sh-brands a.b-C { background: #f6d3dd; color: #8a1f3c !important; } .sh-brands a.b-M { background: #d4efe6; color: #24493d !important; }
.sh-brands a.on:not(.b-all) { box-shadow: inset 0 0 0 2px var(--ink); } .sh-brands.picked a:not(.on):not(.b-all) { opacity: .55; }
.sh-chips { display: flex; gap: 5px; } .sh-chips .db-chip { width: 14px; height: 14px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; outline-offset: 2px; } .sh-chips .db-chip.on { outline: 1.5px solid var(--ink); }
.t-s .a-user { position: relative; } .t-s .a-user > button { background: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); padding: 0; }
.t-s .a-pop { position: absolute; right: 0; top: 22px; background: var(--paper); border-radius: 12px; border: 1.5px solid var(--ink); padding: 6px; display: none; z-index: 50; }
.t-s .a-pop.open { display: block; } .t-s .a-pop button { background: none; border: 0; font: inherit; cursor: pointer; padding: 4px 10px; white-space: nowrap; color: var(--ink); }
.sh-menu { display: flex; gap: 6px; padding: 0 32px 14px; font-size: 13px; align-items: center; }
.sh-menu > a, .sh-menu summary { padding: 6px 12px; border-radius: 999px; color: var(--mu) !important; font-weight: 500; cursor: pointer; list-style: none; white-space: nowrap; }
.sh-menu > a:hover, .sh-menu summary:hover { background: var(--ln); color: var(--ink) !important; }
.sh-menu > a.on, .sh-menu details.on > summary { background: var(--ink); color: var(--paper) !important; font-weight: 800; }
.sh-menu details { position: relative; margin-left: auto; } .sh-menu summary::-webkit-details-marker { display: none; }
.sh-more { position: absolute; right: 0; top: calc(100% + 6px); background: var(--paper); border-radius: 16px; border: 1.5px solid var(--ink); box-shadow: 0 6px 0 rgba(43,33,27,.12); padding: 12px 16px; display: grid; grid-template-columns: repeat(3, minmax(130px, auto)); gap: 2px 18px; z-index: 45; }
.sh-more b { grid-column: 1 / -1; font-size: 12px; padding: 8px 0 3px; color: var(--ac); border-bottom: 1.5px dashed var(--dash); margin-bottom: 4px; }
.sh-more a { padding: 3px 0; font-size: 12px; color: var(--mu) !important; } .sh-more a.on, .sh-more a:hover { color: var(--ac) !important; }

/* ------------------------------------------------------------ 본문 · 차양 · 가격표 레일 */
.sh-main { padding: 0 32px 36px; display: flex; flex-direction: column; gap: 22px; max-width: 1600px; margin: 0 auto; box-sizing: border-box; }
.sh-pagehead { display: flex; flex-direction: column; }
.sh-awn { height: 20px; border-radius: 12px 12px 0 0; background: repeating-linear-gradient(90deg, var(--ac) 0 44px, var(--shelf) 44px 88px); }
.sh-awn2 { height: 10px; background: radial-gradient(circle at 22px 0, var(--ac) 0 21px, transparent 22px) 0 0/88px 10px repeat-x; }
.sh-tl { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 10px 4px 0; }
.sh-tl .t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sh-tl h1 { font-family: var(--fr); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -.02em; margin: 0; }
.sh-tl .s { font-size: 13px; color: var(--mu); line-height: 1.5; } .sh-tl .s a, .sh-tl .k a { color: var(--mu) !important; text-decoration: underline; } .sh-tl .k { font-family: var(--mono); font-size: 11px; color: var(--fa); }
.sh-bs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; } .sh-tl .sh-bs { justify-content: flex-end; max-width: 620px; }
.sh-facts { position: relative; padding-top: 8px; } .sh-facts::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 4px; border-radius: 2px; background: var(--fa); }
.sh-facts > .g { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 14px; }
.sh-pt { display: flex; flex-direction: column; align-items: center; min-width: 0; color: var(--ink) !important; } .sh-pt::before { content: ""; width: 2px; height: 12px; background: var(--fa); }
.sh-pt > div { width: 100%; box-sizing: border-box; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 6px; padding: 10px 12px 10px 24px; position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 84px; }
.sh-pt > div::before { content: ""; position: absolute; left: 9px; top: 13px; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--ink); }
.sh-pt span { font-size: 11px; color: var(--mu); } .sh-pt b { font-family: var(--fr); font-weight: 800; font-size: 28px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sh-pt small { font-size: 11px; color: var(--fa); }
a.sh-pt:hover > div { box-shadow: 0 4px 0 var(--ac); }

/* 상자 · 어두운 상자 */
.sh-g { display: grid; grid-template-columns: var(--c, 1fr 1fr); gap: 20px; align-items: start; } .sh-g > * { min-width: 0; } .sh-g.st { align-items: stretch; }
.sh-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sh-box { background: var(--shelf); border-radius: 22px; box-shadow: inset 0 0 0 1px var(--ln); display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.sh-box.dk { background: var(--ink); color: var(--paper); box-shadow: none; } .sh-box.dk a { color: var(--paper); }
.sh-bh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 18px 8px; }
.sh-bh > b { font-weight: 800; font-size: 16px; } .sh-bh > span { font-size: 11px; color: var(--fa); white-space: nowrap; } .sh-box.dk .sh-bh > span { color: #cbb79f; } .sh-bh > span a { color: var(--fa) !important; text-decoration: underline; }
.sh-pad { padding: 4px 18px 16px; display: flex; flex-direction: column; gap: 8px; }
.sh-plank { height: 14px; background: linear-gradient(var(--wood2), var(--wood)); border-radius: 3px; box-shadow: 0 6px 0 #d9c8b2; }
.sh-big { font-family: var(--fr); font-weight: 800; font-size: 56px; line-height: .95; white-space: nowrap; } .sh-big small { font-size: .4em; }
.sh-rc { background: var(--paper); padding: 16px 16px 22px; display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); font-size: 11px; box-shadow: 0 2px 0 #d9c8b2;
  -webkit-mask: linear-gradient(#000 calc(100% - 8px), transparent 0), conic-gradient(from -45deg at bottom, #000 90deg, transparent 0) 50% 100%/12px 8px repeat-x;
  mask: linear-gradient(#000 calc(100% - 8px), transparent 0), conic-gradient(from -45deg at bottom, #000 90deg, transparent 0) 50% 100%/12px 8px repeat-x; }
.sh-rc .hd { text-align: center; font-weight: 500; letter-spacing: .2em; } .sh-rc .sb { text-align: center; color: var(--fa); padding-bottom: 6px; border-bottom: 1px dashed var(--dash); }
.sh-rc .ln { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; } .sh-rc .ln.in { padding-left: 16px; } .sh-rc .tot { display: flex; justify-content: space-between; padding-top: 6px; border-top: 1px dashed var(--dash); font-weight: 500; font-size: 13px; }
.sh-rc .tot b { font-family: var(--mono); } .sh-rc .ft { color: var(--fa); padding-top: 6px; border-top: 1px dashed var(--dash); }
.sh-talks { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 12px; }
.sh-talk { display: flex; flex-direction: column; align-items: center; min-width: 0; } .sh-talk::before { content: ""; width: 2px; height: 14px; background: var(--fa); }
.sh-talk > div { width: 100%; box-sizing: border-box; background: var(--tb, var(--warn-soft)); color: var(--tf, var(--ink)); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 6px; transform: rotate(var(--r, 0deg)); box-shadow: 0 4px 0 rgba(43,33,27,.12); flex: 1; }
.sh-talk.risk > div { --tb: var(--risk2); --tf: #fff; } .sh-talk.warn > div { --tb: var(--warn-soft); } .sh-talk.ok > div { --tb: var(--ok-soft); } .sh-talk.stop > div { --tb: var(--stop-soft); } .sh-talk.pink > div { --tb: var(--risk-soft); } .sh-talk.paper > div { --tb: var(--paper); }
.sh-talk .lvh { font-size: 11px; font-weight: 800; } .sh-talk.warn .lvh { color: var(--warn); } .sh-talk.ok .lvh { color: var(--ok); }
.sh-talk .tx { font-weight: 700; line-height: 1.4; font-size: 12px; } .sh-talk .rf { font-family: var(--mono); font-size: 10px; opacity: .8; }
.sh-talk:nth-child(5n+1) > div { --r: -1deg; } .sh-talk:nth-child(5n+2) > div { --r: .6deg; } .sh-talk:nth-child(5n+3) > div { --r: -.4deg; } .sh-talk:nth-child(5n+4) > div { --r: .8deg; } .sh-talk:nth-child(5n) > div { --r: -.6deg; }
.sh-talk.flat > div { --r: 0deg !important; }
.sh-kraft { background: var(--kraft); border-radius: 8px; padding: 18px; position: relative; box-shadow: 0 3px 0 var(--kraft2); display: flex; flex-direction: column; gap: 12px; }
.sh-peg { background-color: var(--peg); background-image: radial-gradient(circle, #b9a58b 2px, transparent 2.5px); background-size: 22px 22px; border-radius: 22px; }
.sh-empty { padding: 26px 14px; text-align: center; color: var(--fa); } .sh-empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 3px; }
.sh-li { display: flex; flex-direction: column; gap: 2px; padding: 9px 18px; border-bottom: 1px dashed var(--ln); color: var(--ink) !important; } .sh-li:last-child { border-bottom: 0; } a.sh-li:hover { background: var(--paper); }
.sh-row { display: grid; gap: 10px; padding: 9px 18px; border-bottom: 1px dashed var(--ln); align-items: center; color: var(--ink) !important; } .sh-row:last-child { border-bottom: 0; } a.sh-row:hover, .sh-row.on { background: var(--paper); }
.sh-th { display: grid; gap: 10px; padding: 7px 18px; font-size: 11px; font-weight: 700; color: var(--fa); border-bottom: 1.5px dashed var(--dash); }

/* 배지 · 브랜드 */
.lb-lv { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 999px; white-space: nowrap; background: var(--ok-bg); color: #fff; line-height: 1.45; justify-self: start; }
.lb-lv.warn { background: var(--warn-bg); color: #111; } .lb-lv.risk { background: var(--risk); color: #fff; } .lb-lv.stop { background: var(--stop); color: #fff; }
.lb-lv.ink { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); } .lb-lv.inv { background: var(--ink); color: var(--paper); } .lb-lv.gray { background: var(--ln); color: var(--mu); } .lb-lv.acc { background: var(--ac); color: #fff; }
.lb-tag { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border: 1.5px solid var(--ink); border-radius: 6px; white-space: nowrap; background: var(--paper); }
.lb-sq { width: 10px; height: 10px; flex: none; display: inline-block; font-size: 0; border-radius: 50%; background: var(--ac); vertical-align: middle; }
.lb-sq.big { width: 22px; height: 22px; }
.t-s .b-S { --bc: #efb39a; --bi: #7a3a22; } .t-s .b-C { --bc: #c8436a; --bi: #8a1f3c; } .t-s .b-M { --bc: #9fc9b8; --bi: #24493d; }
.t-s .lb-sq.b-S, .t-s .lb-sq.b-C, .t-s .lb-sq.b-M { background: var(--bc) !important; }
.lb-hf { flex: none; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--ink); color: var(--ink); white-space: nowrap; align-self: center; background: var(--paper); }
.lb-prod { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; } .lb-prod b, .lb-prod a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 단계 막대 */
.lb-steps { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 3px; }
.lb-steps > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .lb-steps i { height: 8px; border-radius: 4px; background: var(--paper); border: 1px solid var(--ink); display: block; }
.lb-steps span { font-size: 10px; color: var(--fa2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-steps .done i { background: var(--ink); } .lb-steps .done span { color: var(--ink); } .lb-steps .cur i { background: var(--ac); } .lb-steps .cur span { color: var(--ink); font-weight: 800; }

/* 버튼 */
.sh-btn, .t-s .a-btn, .t-s .btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 7px 15px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink) !important; font: inherit; font-weight: 700; white-space: nowrap; cursor: pointer; line-height: 1.3; text-decoration: none; box-sizing: border-box; }
.sh-btn:hover, .t-s .a-btn:hover, .t-s .btn:hover { background: var(--ln); }
.sh-btn.p, .t-s .a-btn-ac, .t-s .btn-primary { padding: 8px 16px; background: var(--ink); color: var(--paper) !important; border-color: var(--ink); font-weight: 800; }
.sh-btn.p:hover, .t-s .btn-primary:hover { background: var(--ac); border-color: var(--ac); }
.sh-btn.a { padding: 8px 16px; background: var(--ac); border-color: var(--ac); color: #fff !important; font-weight: 800; } .sh-btn.a:hover { filter: brightness(1.08); }
.sh-btn.d, .t-s .a-btn-danger, .t-s .btn-danger { border-color: var(--risk2); color: var(--risk2) !important; font-weight: 800; background: var(--paper); } .sh-btn.d:hover { background: var(--risk2); color: #fff !important; }
.sh-btn.sm, .t-s .btn-sm { padding: 4px 11px; font-size: 12px; } .sh-btn.blk { width: 100%; } .sh-btn.w { background: var(--paper); border-color: var(--paper); color: var(--ink) !important; font-weight: 800; }
.sh-btn.off, .sh-btn:disabled { background: #9c948d !important; color: var(--paper) !important; border-color: #9c948d !important; cursor: default; }
.sh-btn.ul { border: 0; background: none; padding: 0; text-decoration: underline; font-weight: 600; color: inherit !important; }
.sh-box.dk .sh-btn:not(.a):not(.w) { background: transparent; border-color: var(--paper); color: var(--paper) !important; }

/* 입력 */
.lb-fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .lb-fld > span { font-size: 12px; font-weight: 700; } .lb-fld .req { color: var(--risk2); font-style: normal; }
.lb-fld small { font-size: 11px; color: var(--fa); } .lb-fld.err small { color: var(--risk2); }
.lb-in, .lb-fld input, .lb-fld select, .lb-fld textarea, .t-s .a-in, .t-s .a-sel, .t-s .field input, .t-s .field select, .t-s .field textarea {
  padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--ln2); background: var(--paper); color: var(--ink); font: inherit; box-sizing: border-box; width: 100%; outline: 0; }
.lb-fld input:focus, .lb-fld select:focus, .lb-fld textarea:focus, .lb-in:focus, .t-s .a-in:focus, .t-s .a-sel:focus, .t-s .field input:focus, .t-s .field select:focus, .t-s .field textarea:focus { border: 2px solid var(--ac); padding: 8.5px 11.5px; }
.lb-fld.err input, .lb-fld.err select { border: 2px solid var(--risk2); } .lb-fld input.mono { font-family: var(--mono); }
.lb-drop { padding: 16px; border: 2px dashed var(--fa2); border-radius: 16px; text-align: center; color: var(--mu); cursor: pointer; display: block; } .lb-drop input { display: none; }
.lb-chk { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--ink); display: inline-block; background: transparent; flex: none; } .lb-chk.on { background: var(--ac); border-color: var(--ink); }
.lb-opt { display: grid; grid-template-columns: 16px 1fr auto; gap: 8px; align-items: center; font-size: 12px; padding: 7px 10px; background: var(--paper); border-radius: 10px; } .lb-opt.dis { opacity: .5; }

/* 표 (영수증 종이 위) */
.sh-tw { overflow-x: auto; }
.sh-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.sh-tbl th { font-size: 11px; color: var(--fa); font-weight: 700; text-align: left; padding: 7px 10px; border-bottom: 1.5px dashed var(--dash); white-space: nowrap; }
.sh-tbl td { padding: 9px 10px; border-bottom: 1px dashed var(--ln); vertical-align: middle; } .sh-tbl tr:last-child td { border-bottom: 0; }
.sh-tbl .r, .sh-tbl th.r { text-align: right; } .sh-tbl tbody tr:hover td { background: #f6efe4; } .sh-tbl tr.on td { background: #f3ece2; }
.sh-tbl td.m { font-family: var(--mono); font-size: 11px; }
.sh-no { font-family: var(--mono); font-size: 11px; color: var(--ac) !important; white-space: nowrap; }
.sh-st { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 999px; white-space: nowrap; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); }
.sh-st.inv { background: var(--ink); color: var(--paper); } .sh-st.risk { background: var(--risk); color: #fff; border-color: var(--risk); } .sh-st.warn { background: var(--warn-bg); border-color: var(--warn-bg); color: #111; } .sh-st.gray { color: var(--fa); border-color: var(--ln2); }
.sh-paper { background: var(--paper); padding: 12px 12px 22px;
  -webkit-mask: linear-gradient(#000 calc(100% - 8px), transparent 0), conic-gradient(from -45deg at bottom, #000 90deg, transparent 0) 50% 100%/12px 8px repeat-x;
  mask: linear-gradient(#000 calc(100% - 8px), transparent 0), conic-gradient(from -45deg at bottom, #000 90deg, transparent 0) 50% 100%/12px 8px repeat-x; }

/* 매달린 탭 (채널 · 상태) */
.sh-hang { position: relative; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.sh-hang a { position: relative; padding: 6px 12px; border-radius: 8px; border: 1.5px solid var(--ink); background: var(--paper); font-weight: 700; color: var(--ink) !important; white-space: nowrap; margin-top: 4px; }
.sh-hang a::before { content: ""; position: absolute; left: 50%; top: -14px; width: 1.5px; height: 12px; background: var(--fa); }
.sh-hang a small { font-family: var(--mono); font-size: 10px; margin-left: 3px; } .sh-hang a.on { background: var(--ink); color: var(--paper) !important; font-weight: 800; }
.sh-tabs { display: flex; flex-wrap: wrap; gap: 6px; } .sh-tabs a { padding: 5px 12px; border-radius: 999px; font-weight: 700; color: var(--mu) !important; font-size: 12px; }
.sh-tabs a.on { background: var(--ink); color: var(--paper) !important; } .sh-tabs a:hover:not(.on) { background: var(--ln); } .sh-tabs a small { font-family: var(--mono); font-size: 10px; margin-left: 3px; opacity: .8; }

/* ------------------------------------------------------------ E1 오늘 — 진열대 */
.sh-e1 { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 24px; }
.sh-store { display: flex; flex-direction: column; background: var(--shelf); border-radius: 24px 24px 0 0; box-shadow: inset 0 0 0 1px var(--ln); overflow: hidden; min-width: 0; }
.sh-store .top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 26px; align-items: end; padding: 22px 26px 10px; }
.sh-store .num { display: flex; flex-direction: column; gap: 2px; color: var(--ink) !important; } .sh-store .num > span { color: var(--fa); }
.sh-store .num > b { font-family: var(--fr); font-weight: 800; font-size: 76px; line-height: .85; letter-spacing: -.04em; white-space: nowrap; } .sh-store .num > b small { font-size: 26px; }
.sh-prog { display: flex; flex-direction: column; gap: 8px; padding-bottom: 6px; min-width: 0; } .sh-prog > div { height: 12px; border-radius: 6px; background: #e8dccb; position: relative; } .sh-prog > div i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--ac); }
.sh-prog > span { font-size: 15px; font-weight: 600; line-height: 1.4; } .sh-prog > span b { color: #2f7d4f; } .sh-prog > span a { color: var(--ink) !important; text-decoration: underline; text-underline-offset: 3px; }
.sh-minis { display: flex; gap: 18px; padding-bottom: 6px; } .sh-minis a, .sh-minis div { display: flex; flex-direction: column; gap: 1px; color: var(--ink) !important; } .sh-minis span { font-size: 11px; color: var(--fa); } .sh-minis b { font-family: var(--fr); font-weight: 800; font-size: 24px; white-space: nowrap; } .sh-minis small { font-size: 10px; color: var(--fa); }
.sh-store .cap { padding: 6px 26px 0; font-size: 12px; color: var(--fa); }
.sh-sects { display: grid; grid-template-columns: var(--c, 1fr 1fr 1fr); padding: 0 18px; margin-top: 6px; }
.sh-sect { display: flex; flex-direction: column; padding: 0 8px; min-width: 0; }
.sh-sect .sn { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; padding: 8px 6px; white-space: nowrap; } .sh-sect .sn > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sh-sect .sn > div b { font-size: 15px; color: var(--bi); } .sh-sect .sn > div span { font-size: 11px; color: var(--fa); overflow: hidden; text-overflow: ellipsis; } .sh-sect .sn > b { font-family: var(--fr); font-size: 18px; } .sh-sect .sn > b small { font-family: var(--mono); font-size: 11px; color: #2f7d4f; font-weight: 400; } .sh-sect .sn > b small.down { color: var(--risk); }
.sh-bots { display: flex; justify-content: space-around; align-items: flex-end; height: 272px; padding: 0 6px; }
.sh-bot { display: flex; flex-direction: column; align-items: center; width: 110px; color: var(--ink) !important; min-width: 0; }
.sh-bot > em { font-style: normal; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 999px; margin-bottom: 6px; white-space: nowrap; }
.sh-bot > s { display: block; width: var(--capw, 40px); height: 16px; border-radius: 5px 5px 2px 2px; background: var(--ink); }
.sh-bot > i { display: block; width: var(--bw, 70px); border-radius: var(--br, 22px 22px 10px 10px); background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--bi) 25%, transparent); position: relative; overflow: hidden; font-style: normal; }
.sh-bot > i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--fill, 50%); background: var(--bc); }
.sh-bot > i > span { position: absolute; left: 10%; right: 10%; top: 22%; padding: 5px 4px; background: var(--paper); border-radius: 4px; text-align: center; display: flex; flex-direction: column; gap: 1px; z-index: 1; }
.sh-bot > i > span small { font-size: 9px; font-weight: 800; color: var(--bi); } .sh-bot > i > span b { font-size: 10px; font-weight: 700; line-height: 1.2; } .sh-bot > i > span u { text-decoration: none; font-size: 8px; font-weight: 800; padding: 1px 3px; border: 1px solid var(--ink); align-self: center; }
a.sh-bot:hover > i { box-shadow: inset 0 0 0 2px var(--ac); }
.sh-bot.cush > s { --capw: 60px; } .sh-bot.cush > i { --bw: 92px; --br: 46px 46px 46px 46px / 30px 30px 46px 46px; }
.sh-bot.tint > s { --capw: 54px; } .sh-bot.tint > i { --bw: 92px; --br: 46px 46px 46px 46px / 40px 40px 46px 46px; }
.sh-bot.jar > s { --capw: 80px; } .sh-bot.jar > i { --bw: 96px; --br: 18px 18px 14px 14px; }
.sh-sect .rail { height: 16px; background: var(--bc); border-radius: 3px; box-shadow: 0 6px 0 #d9c8b2; }
.sh-tags { display: flex; justify-content: space-around; padding: 14px 6px 18px; gap: 6px; }
.sh-ptag { width: 118px; box-sizing: border-box; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 4px; padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; color: var(--ink) !important; min-width: 0; }
.sh-ptag > span { font-size: 11px; font-weight: 700; line-height: 1.3; } .sh-ptag > b { font-family: var(--fr); font-weight: 800; font-size: 20px; line-height: 1; } .sh-ptag > small { font-family: var(--mono); font-size: 10px; color: var(--mu); }
.sh-onair { background: var(--ink); color: var(--paper) !important; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.sh-onair > em { align-self: flex-start; font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--ac); color: #fff; }
.sh-onair > b { font-family: var(--fr); font-weight: 800; font-size: 38px; line-height: 1; } .sh-onair > strong { font-weight: 700; } .sh-onair > span { font-size: 12px; line-height: 1.45; color: var(--ln); }
.sh-onair .hf { font-size: 9px; font-weight: 800; padding: 1px 4px; border: 1px solid #f2c230; color: #f2c230; white-space: nowrap; }
.sh-onair > div { display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px dashed var(--mu); font-family: var(--mono); font-size: 11px; } a.sh-onair:hover { box-shadow: 0 0 0 2px var(--ac); }
.sh-daily { display: grid; grid-template-columns: 34px 1fr 30px; gap: 6px; align-items: center; color: var(--ink) !important; } .sh-daily > div { height: 7px; background: var(--bg); } .sh-daily > div i { display: block; height: 7px; background: var(--ink); } .sh-daily > div i.ev { background: var(--ac); } .sh-daily > div i.live { background: var(--ln2); }
.sh-daily > span:last-child { text-align: right; } .sh-dtag { padding-left: 40px; color: var(--ac); font-size: 10px; }
.sh-chans { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; }
.sh-chan { display: grid; grid-template-columns: 118px minmax(0, 1fr) 52px; gap: 10px; align-items: center; color: var(--ink) !important; } .sh-chan > span { font-weight: 700; } .sh-chan > span small { font-size: 10px; font-weight: 500; color: var(--fa); }
.sh-chan > div { display: flex; height: 20px; border-radius: 6px; overflow: hidden; } .sh-chan > div i { display: block; } .sh-chan > div i.f { background: #cbb79f; } .sh-chan > div i.a { background: #a8927a; } .sh-chan > div i.o { background: #e8dccb; }
.sh-chan > div i.c { flex: 1; background: var(--ac); color: #fff; font-size: 10px; font-weight: 800; font-style: normal; display: flex; align-items: center; justify-content: flex-end; padding-right: 4px; min-width: 34px; }
.sh-chan > b { font-family: var(--fr); font-size: 16px; text-align: right; white-space: nowrap; } a.sh-chan:hover > span { color: var(--ac); }

/* E2 로트 선반 */
.sh-lotsh { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 20px; padding: 0 24px; align-items: end; }
.sh-lb { display: flex; flex-direction: column; align-items: center; color: var(--ink) !important; } .sh-lb > em { font-style: normal; margin-bottom: 8px; }
.sh-lb > s { display: block; width: 44px; height: 14px; border-radius: 4px 4px 2px 2px; background: var(--ink); margin-bottom: 6px; }
.sh-lb > i { display: block; width: 110px; height: 150px; border-radius: 30px 30px 12px 12px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--ln2); position: relative; overflow: hidden; font-style: normal; }
.sh-lb > i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--fill); background: var(--bc); }
.sh-lb > i > span { position: absolute; left: 50%; top: 34%; transform: translateX(-50%); background: var(--paper); border-radius: 4px; padding: 4px 10px; text-align: center; z-index: 1; display: flex; flex-direction: column; white-space: nowrap; }
.sh-lb > i > span b { font-family: var(--fr); font-weight: 800; font-size: 26px; line-height: 1; } .sh-lb > i > span small { font-size: 10px; color: var(--mu); }
.sh-lb.on > i { box-shadow: inset 0 0 0 3px var(--ac); } a.sh-lb:hover > i { box-shadow: inset 0 0 0 3px var(--ac); }
.sh-lcard { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 6px; padding: 10px; display: flex; flex-direction: column; gap: 5px; min-width: 0; color: var(--ink) !important; } .sh-lcard.on { box-shadow: 0 0 0 2px var(--ac); }
.sh-lcard .nm { display: flex; align-items: center; gap: 6px; min-width: 0; } .sh-lcard .nm b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-lcard .k { font-family: var(--mono); font-size: 11px; } .sh-lcard .k2 { font-family: var(--mono); font-size: 10px; color: var(--mu); }
.sh-fit { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 4px; }
.sh-fit > span { display: flex; flex-direction: column; align-items: center; padding: 4px 2px; border-radius: 999px; font-size: 9.5px; font-weight: 800; line-height: 1.15; white-space: nowrap; background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok); }
.sh-fit > span.n { background: var(--risk2); color: #fff; border-color: var(--risk2); }
.sh-bask { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; padding: 4px 18px 18px; align-items: start; }
.sh-basket { position: relative; padding-top: 34px; }
.sh-basket::before { content: ""; position: absolute; left: 32px; right: 32px; top: 0; height: 56px; border: 5px solid #8a7a6c; border-bottom: 0; border-radius: 60px 60px 0 0; }
.sh-basket > div { position: relative; height: 120px; background: repeating-linear-gradient(90deg, #c19a6b 0 8px, #d9b98f 8px 14px); clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.sh-basket b { font-family: var(--fr); font-weight: 800; font-size: 30px; line-height: 1; } .sh-basket small { font-size: 11px; font-weight: 700; }
.sh-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; }

/* E3 ODM 선반 */
.sh-rack { display: flex; flex-direction: column; padding: 18px 22px 10px; gap: 0; }
.sh-tier { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 20px; align-items: end; }
.sh-tier > b { padding-bottom: 20px; font-size: 15px; } .sh-tier > b small { display: block; font-size: 10px; color: var(--fa); font-weight: 500; }
.sh-tier > div { display: flex; flex-direction: column; } .sh-tier .items { display: flex; gap: 14px; flex-wrap: wrap; padding: 8px 8px 0; min-height: 22px; }
.sh-mo { width: 584px; max-width: 100%; min-width: 0; box-sizing: border-box; background: var(--paper); border: 1.5px solid var(--ink); border-top: 6px solid var(--bc, var(--ink)); border-radius: 10px 10px 2px 2px; padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 4px; }
.sh-mo .tp { display: flex; justify-content: space-between; gap: 10px; } .sh-mo .tp .k { font-family: var(--mono); font-size: 10px; color: var(--mu); } .sh-mo .tp em { font-style: normal; font-size: 10px; color: var(--fa); text-align: right; }
.sh-mo .tp b.d { font-family: var(--fr); font-weight: 800; font-size: 26px; color: var(--ok); line-height: 1; display: block; text-align: right; } .sh-mo .tp b.d.late { color: var(--warn); }
.sh-mo .nm { display: flex; align-items: center; gap: 7px; font-size: 17px; font-weight: 800; } .sh-mo .sub { font-size: 12px; color: var(--mu); }
.sh-mo .ft { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 6px; } .sh-mo .ft > span { font-size: 12px; font-weight: 700; color: var(--ok); } .sh-mo .ft > span.warn { color: var(--warn); }
.sh-mo.on { box-shadow: 0 0 0 3px var(--ac); }
.sh-jars { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 10px; padding: 6px 18px 18px; }
.sh-jar { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink) !important; min-width: 0; }
.sh-jar > s { display: block; width: 48px; height: 10px; border-radius: 3px; background: #8a7a6c; }
.sh-jar > i { width: 100%; box-sizing: border-box; min-height: 90px; border: 1.5px solid var(--ink); border-radius: 14px; background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8px 6px; font-style: normal; gap: 3px; }
.sh-jar > i b { font-size: 11px; line-height: 1.3; } .sh-jar > i small { font-family: var(--mono); font-size: 10px; } .sh-jar > span { font-size: 10px; color: var(--fa); }
a.sh-jar:hover > i { box-shadow: 0 0 0 2px var(--ac); }
.sh-qcf { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 12px; }

/* E4 COA — 원료 약장 · 클립보드 */
.sh-cab { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 14px; padding: 6px 22px 0; }
.sh-drw { display: flex; flex-direction: column; align-items: center; color: var(--ink) !important; min-width: 0; }
.sh-drw > s { display: block; width: 72%; height: 12px; border-radius: 4px 4px 0 0; background: var(--tc, var(--ok)); }
.sh-drw > div { width: 100%; box-sizing: border-box; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 10px; padding: 10px 11px; display: flex; flex-direction: column; gap: 3px; min-height: 130px; }
.sh-drw > div b { font-size: 13px; line-height: 1.3; } .sh-drw > div small { font-size: 11px; color: var(--fa); } .sh-drw > div strong { font-family: var(--fr); font-size: 18px; margin-top: auto; }
.sh-drw.on > div { box-shadow: 0 0 0 3px var(--ac); } a.sh-drw:hover > div { box-shadow: 0 0 0 2px var(--ac); }
.sh-clip { background: var(--wood); border-radius: 22px; padding: 14px; position: relative; margin-top: 18px; }
.sh-clip::before { content: ""; position: absolute; left: 50%; top: -18px; transform: translateX(-50%); width: 120px; height: 26px; border-radius: 10px 10px 0 0; background: #8a7a6c; }
.sh-clip > div { background: var(--paper); position: relative; overflow: hidden; }
.sh-clip .ct { text-align: center; padding: 16px 0 12px; border-bottom: 3px double var(--ink); } .sh-clip .ct b { font-size: 22px; letter-spacing: .5em; } .sh-clip .ct small { display: block; font-family: var(--mono); font-size: 10px; margin-top: 2px; }
.sh-ckv { display: grid; grid-template-columns: 62px 1fr; gap: 6px 12px; padding: 12px 14px; font-size: 12px; } .sh-ckv > span:nth-child(odd) { font-weight: 800; }
.sh-stamp { position: absolute; right: 22px; bottom: 56px; width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--risk2); color: var(--risk2); display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-14deg); opacity: .85; }
.sh-stamp b { font-size: 20px; line-height: 1; } .sh-stamp small { font-size: 9px; font-weight: 800; }
.sh-stamp.bad { border-color: var(--ink); color: var(--ink); }

/* E5 방송 */
.sh-shows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sh-show { display: grid; grid-template-columns: minmax(0, 1fr) 88px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden; color: var(--ink) !important; }
.sh-show > div:first-child { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; } .sh-show .k { font-family: var(--mono); font-size: 12px; } .sh-show .ch { font-size: 16px; font-weight: 800; } .sh-show .sub { font-size: 11px; color: var(--mu); }
.sh-show > div:last-child { border-left: 1.5px dashed var(--fa2); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6px; background: var(--ok-soft); gap: 2px; }
.sh-show > div:last-child small { font-size: 10px; } .sh-show > div:last-child b { font-family: var(--fr); font-size: 19px; line-height: 1.05; } .sh-show > div:last-child b.ok { color: var(--ok); }
.sh-show.wait > div:last-child { background: var(--warn-soft); } .sh-show.wait > div:last-child b { color: var(--fa); } .sh-show.plan > div:last-child { background: var(--ln); } .sh-show.plan > div:last-child b { color: var(--fa2); }
.sh-show.on { box-shadow: 0 0 0 3px var(--ac); }
.sh-minute { display: flex; align-items: flex-end; gap: 3px; height: 190px; padding: 18px 18px 0; position: relative; border-bottom: 2px solid var(--ink); margin: 0 18px; }
.sh-minute > i { flex: 1; background: var(--wood); border-radius: 2px 2px 0 0; display: block; min-width: 0; } .sh-minute > i.pk { background: var(--ac); }
.sh-minute > u { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--ink); text-decoration: none; } .sh-minute > u span { position: absolute; top: 0; left: 6px; white-space: nowrap; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--warn-soft); }
.sh-mticks { display: flex; justify-content: space-between; padding: 4px 18px 16px; font-family: var(--mono); font-size: 10px; color: var(--fa); }
.sh-next { border-radius: 26px; background: var(--ink); color: var(--paper) !important; padding: 7px; box-shadow: 0 0 0 4px var(--wood); }
.sh-next > div { border: 2px dotted var(--wood2); border-radius: 20px; padding: 16px 22px; display: grid; grid-template-columns: 230px repeat(4, minmax(0, 1fr)); gap: 0; align-items: center; }
.sh-next > div > div { display: flex; flex-direction: column; gap: 3px; padding: 0 16px; border-left: 1px solid var(--mu); min-width: 0; } .sh-next > div > div:first-child { border: 0; padding-left: 0; }
.sh-next em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--warn-bg); } .sh-next .t { font-family: var(--fr); font-weight: 800; font-size: 34px; line-height: 1; white-space: nowrap; }
.sh-next span { font-size: 11px; color: #cbb79f; } .sh-next b { font-size: 14px; } .sh-next small { font-size: 11px; color: #cbb79f; }

/* E6 쇼핑백 */
.sh-bags { display: grid; grid-template-columns: repeat(var(--n, 8), minmax(0, 1fr)); gap: 10px; padding: 16px 20px 0; align-items: end; }
.sh-bag { display: flex; flex-direction: column; align-items: center; color: var(--ink) !important; min-width: 0; }
.sh-bag > b { font-family: var(--fr); font-weight: 800; font-size: 20px; margin-bottom: 4px; } .sh-bag > b.ok { color: var(--ok); } .sh-bag > b.risk { color: var(--risk); }
.sh-bag > s { display: block; width: 52px; height: 26px; border: 3px solid var(--ink); border-bottom: 0; border-radius: 26px 26px 0 0; box-sizing: border-box; }
.sh-bag > i { width: 100%; display: flex; flex-direction: column; border: 2px solid var(--ink); border-radius: 4px 4px 10px 10px; overflow: hidden; font-style: normal; }
.sh-bag > i > u { display: block; text-decoration: none; } .sh-bag u.c { background: var(--ac); } .sh-bag u.l { background: #f3ece2; border-bottom: 1px solid #e2d6c6; } .sh-bag u.a { background: #efe7dc; } .sh-bag u.f { background: #a8927a; } .sh-bag u.g { background: #cbb79f; }
.sh-bag > strong { font-size: 13px; margin-top: 8px; } .sh-bag > span { font-family: var(--mono); font-size: 11px; } .sh-bag > small { font-size: 10px; color: var(--fa); text-align: center; line-height: 1.3; }
a.sh-bag:hover > i { box-shadow: 0 0 0 2px var(--ac); }
.sh-leg { display: flex; gap: 16px; justify-content: center; padding: 10px 0 16px; font-size: 11px; } .sh-leg span { display: flex; gap: 5px; align-items: center; } .sh-leg i { width: 13px; height: 13px; border: 1px solid var(--ink); border-radius: 3px; display: block; }
.sh-bcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sh-bcard { background: var(--paper); border: 1.5px solid var(--ink); border-top: 10px solid var(--bc); border-radius: 18px 18px 14px 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; color: var(--ink) !important; }
.sh-bcard > b { font-size: 14px; } .sh-bcard > strong { font-family: var(--fr); font-size: 30px; line-height: 1; padding-bottom: 6px; border-bottom: 1.5px dashed var(--dash); } .sh-bcard > strong small { font-size: 14px; }
.sh-bcard .kvr { display: flex; justify-content: space-between; font-size: 12px; } .sh-bcard .kvr span:last-child { font-family: var(--mono); } .sh-bcard .kvr.t b:last-child { font-family: var(--fr); font-size: 20px; color: var(--ac); }

/* E7 캘린더 */
.sh-cal { padding: 14px 22px 18px; }
.sh-cal .dw { display: grid; grid-template-columns: 120px repeat(7, minmax(0, 1fr)); font-size: 12px; font-weight: 700; color: var(--mu); text-align: center; padding-bottom: 6px; }
.sh-wk { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: end; }
.sh-wk > b { font-family: var(--mono); font-weight: 400; font-size: 11px; padding-bottom: 22px; }
.sh-wk .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); font-family: var(--mono); font-size: 10px; color: var(--fa); } .sh-wk .days span.td { color: var(--ac); font-weight: 500; } .sh-wk .days span.out { color: var(--ln2); }
.sh-wk .lanes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px 4px; padding: 8px 0 4px; }
.sh-ev { padding: 6px 9px; border-radius: 6px 6px 2px 2px; font-size: 11px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--ok); color: #fff !important; border: 1.5px solid var(--ink); box-shadow: 0 2px 0 rgba(43,33,27,.15); }
.sh-ev.warn { background: var(--warn-bg); color: #111 !important; } .sh-ev.risk { background: var(--risk2); } .sh-ev.stop { background: var(--fa2); }
.sh-evc { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 12px; }
.sh-evc .sh-talk > div { background: var(--paper); border-radius: 12px; }
.sh-evc .pct { font-family: var(--fr); font-weight: 800; font-size: 26px; line-height: 1; }
.sh-evc .bar { height: 10px; border-radius: 5px; border: 1.5px solid var(--ink); background: var(--paper); overflow: hidden; } .sh-evc .bar i { display: block; height: 100%; background: var(--ok); } .sh-evc .bar i.warn { background: var(--warn); } .sh-evc .bar i.risk { background: var(--risk); }

/* E9 · E11 등록 · 결재 */
.sh-form { background: var(--kraft); border-radius: 22px 22px 6px 6px; box-shadow: 0 3px 0 var(--kraft2); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.sh-form > .hd { display: flex; justify-content: space-between; align-items: baseline; } .sh-form > .hd b { font-family: var(--fr); font-size: 22px; } .sh-form > .hd span { font-size: 12px; font-weight: 700; color: var(--risk2); }
.sh-f3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.sh-side { display: flex; flex-direction: column; gap: 14px; } .sh-side .sh-pt::before { display: none; } .sh-side .sh-pt > div { min-height: 0; }
.sh-tot { background: var(--risk-soft); border-radius: 14px 30px 18px 40px / 14px 14px 30px 18px; padding: 16px 16px; transform: rotate(-1deg); display: flex; flex-direction: column; gap: 4px; }
.sh-tot span { font-size: 11px; font-weight: 700; } .sh-tot b { font-family: var(--fr); font-weight: 800; font-size: 30px; line-height: 1; white-space: nowrap; } .sh-tot small { font-size: 11px; }
.sh-raws { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 16px; padding: 4px 22px 0; }
.sh-raw { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; align-items: end; color: var(--ink) !important; }
.sh-raw > i { display: flex; flex-direction: column; align-items: center; font-style: normal; } .sh-raw > i::before { content: ""; width: 40px; height: 10px; background: #8a7a6c; border-radius: 3px 3px 0 0; }
.sh-raw > i b { width: 78px; height: 88px; box-sizing: border-box; border: 1.5px solid var(--ink); border-radius: 14px; background: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.sh-raw > div { display: flex; flex-direction: column; gap: 2px; padding-bottom: 6px; min-width: 0; } .sh-raw > div small { font-size: 11px; color: var(--mu); } .sh-raw > div span { font-family: var(--mono); font-size: 11px; }
.sh-doc { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; background: var(--kraft); border-radius: 8px 8px 22px 22px; padding: 18px; box-shadow: 0 3px 0 var(--kraft2); position: relative; }
.sh-doc .pap { background: var(--paper); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sh-doc .pap h2 { font-family: var(--fr); font-weight: 800; font-size: 24px; line-height: 1.25; margin: 0; }
.sh-doc .meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .sh-doc .meta > div { background: var(--bg); border-radius: 8px; padding: 8px 10px; } .sh-doc .meta span { display: block; font-size: 11px; color: var(--mu); } .sh-doc .meta b { font-size: 13px; }
.sh-doc .body { font-size: 13px; line-height: 1.7; white-space: pre-wrap; } .sh-doc .lnk { padding-top: 8px; border-top: 1.5px dashed var(--dash); font-size: 12px; }
.sh-stamps { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 8px; text-align: center; }
.sh-stamps > div { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.sh-stamps i { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--risk2); color: var(--risk2); display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; font-size: 15px; transform: rotate(-8deg); background: var(--paper); }
.sh-stamps i.wait { border-color: var(--ln2); color: var(--ln2); } .sh-stamps i.no { border-color: var(--ink); color: var(--ink); }
.sh-stamps span { font-size: 10px; } .sh-stamps b { font-size: 11px; } .sh-stamps b.ok { color: var(--ok); } .sh-stamps b.risk { color: var(--risk2); } .sh-stamps small { font-family: var(--mono); font-size: 9px; color: var(--mu); }

/* CRM */
.sh-meets { display: flex; gap: 10px; padding: 0 16px 16px; overflow-x: auto; }
.sh-meet { flex: 0 0 120px; } .sh-meet > div { background: var(--paper); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.sh-meet .k { font-family: var(--mono); font-size: 11px; } .sh-meet b { font-size: 14px; } .sh-meet .tx { font-size: 11px; line-height: 1.4; } .sh-meet .lb-lv { align-self: center; }
.sh-stack { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 10px; padding: 10px 18px 0; align-items: end; min-height: 170px; }
.sh-stack > a { display: flex; flex-direction: column-reverse; align-items: center; gap: 3px; color: var(--ink) !important; }
.sh-stack i { display: block; width: 46px; height: 34px; border: 1px solid var(--ink); border-radius: 3px; background: linear-gradient(#fff8e0 40%, #fbe7a8 0); } .sh-stack i.won { background: linear-gradient(#f3faf4 40%, #e3efe2 0); } .sh-stack i.hold { background: linear-gradient(#ece5dd 40%, #d8cec4 0); }
.sh-stackl { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 10px; padding: 6px 18px 16px; text-align: center; font-size: 10px; } .sh-stackl b { display: block; font-size: 11px; }
.sh-tickets > a { display: flex; flex-direction: column; gap: 3px; margin: 0 18px 10px; padding: 10px 12px 10px 18px; background: var(--kraft); position: relative; color: var(--ink) !important;
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 6px, #000 6.5px); mask: radial-gradient(circle at 0 50%, transparent 6px, #000 6.5px); }
.sh-tickets .k { font-family: var(--mono); font-size: 10px; } .sh-tickets b { font-size: 13px; } .sh-tickets span { font-size: 11px; color: var(--mu); }
.sh-clm > a { display: flex; flex-direction: column; gap: 3px; margin: 0 18px 10px; padding: 9px 12px; border: 1.5px dashed var(--risk2); border-radius: 8px; background: var(--paper); color: var(--ink) !important; }
.sh-clm .t { display: flex; justify-content: space-between; } .sh-clm .t span:first-child { font-family: var(--mono); font-size: 10px; } .sh-clm .t span:last-child { font-size: 10px; font-weight: 800; color: var(--risk2); } .sh-clm b { font-size: 13px; } .sh-clm small { font-size: 11px; color: var(--mu); }
.sh-staff { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 14px; padding-top: 16px; }
.sh-staff > div { position: relative; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 12px; padding: 12px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.sh-staff > div::before { content: ""; position: absolute; left: 50%; top: -22px; transform: translateX(-50%); width: 34px; height: 20px; border: 3px solid var(--ac); border-bottom: 0; border-radius: 20px 20px 0 0; }
.sh-staff small { font-size: 10px; color: var(--fa); letter-spacing: .08em; } .sh-staff b { font-size: 16px; } .sh-staff span { font-size: 11px; color: var(--fa); } .sh-staff strong { font-family: var(--fr); font-size: 26px; }
.sh-cbars { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 14px; align-items: end; height: 220px; padding: 10px 22px 0; }
.sh-cbars > a { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; height: 100%; color: var(--ink) !important; }
.sh-cbars b { font-family: var(--fr); font-size: 17px; text-align: center; padding-bottom: 4px; } .sh-cbars i { display: flex; flex-direction: column; justify-content: flex-end; border: 1.5px solid var(--ink); border-bottom: 0; border-radius: 4px 4px 0 0; background: var(--paper); position: relative; font-style: normal; }
.sh-cbars i::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; border-top: 1.5px dashed var(--dash); } .sh-cbars i u { display: block; background: var(--ac); text-decoration: none; }
.sh-cbl { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 14px; padding: 6px 22px 16px; font-family: var(--mono); font-size: 11px; text-align: center; }
.sh-mini-bots { display: flex; justify-content: space-around; align-items: flex-end; height: 120px; padding: 0 18px; }
.sh-mini-bots > a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink) !important; } .sh-mini-bots small { font-size: 10px; font-weight: 800; } .sh-mini-bots i { display: block; width: 42px; height: 72px; border-radius: 12px 12px 6px 6px; background: var(--bc); border: 1.5px solid var(--ink); }
.sh-posters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 18px 18px; }
.sh-poster { background: var(--ac); color: #fff !important; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 3px; min-height: 92px; } .sh-poster b { font-family: var(--fr); font-size: 18px; } .sh-poster small { font-size: 11px; } .sh-poster span { margin-top: auto; font-size: 11px; }
.sh-kanban { background: var(--wood); border-radius: 22px; padding: 10px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.sh-kcol { background: var(--shelf); border-radius: 6px; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.sh-kcol > .hd { background: var(--ink); color: var(--paper); text-align: center; padding: 10px 6px; } .sh-kcol > .hd b { display: block; font-size: 15px; } .sh-kcol > .hd small { font-family: var(--mono); font-size: 11px; }
.sh-kcol.won > .hd { background: var(--ok); } .sh-kcol.hold > .hd { background: var(--stop-soft); color: var(--ink); }
.sh-kcol > .bd { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 14px 10px 0; min-height: 300px; }
.sh-pc { background: var(--paper); border: 1.5px solid var(--ink); border-top: 8px solid var(--ink); border-radius: 8px 8px 4px 4px; padding: 10px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sh-kcol.won .sh-pc { border-top-color: var(--ok); } .sh-kcol.hold .sh-pc { border-top-color: var(--stop-soft); }
.sh-pc > a { font-weight: 800; font-size: 13px; line-height: 1.3; color: var(--ink) !important; } .sh-pc > span { font-size: 11px; color: var(--mu); } .sh-pc .v { display: flex; justify-content: space-between; align-items: baseline; padding-top: 6px; border-top: 1.5px dashed var(--dash); font-size: 11px; color: var(--mu); } .sh-pc .v b { font-family: var(--fr); font-size: 19px; color: var(--ink); }
.sh-pc .w { font-size: 11px; } .sh-pc .hr { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--warn-soft); }
.sh-kcol .more { text-align: center; padding: 8px 4px 10px; font-size: 11px; color: var(--mu) !important; } .sh-kcol .sh-plank { margin: 0 -10px; height: 12px; box-shadow: 0 4px 0 #d9c8b2; }
.sh-board { padding: 12px 18px 18px; }
.sh-board .dh { display: grid; grid-template-columns: 100px repeat(5, minmax(0, 1fr)); gap: 10px; padding-bottom: 8px; } .sh-board .dh span { text-align: center; font-weight: 800; font-size: 12px; padding: 5px; border-radius: 999px; } .sh-board .dh span.td { background: var(--paper); }
.sh-board .rw { display: grid; grid-template-columns: 100px repeat(5, minmax(0, 1fr)); gap: 10px; align-items: start; padding: 8px 0; min-height: 60px; }
.sh-board .rw > b { justify-self: start; background: var(--paper); padding: 7px 14px; border-radius: 10px; font-size: 13px; align-self: center; }
.sh-board .cell { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sh-tagm { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 10px; background: var(--paper); color: var(--ink) !important; box-shadow: 0 3px 0 rgba(43,33,27,.12); font-size: 11px; position: relative; }
.sh-tagm::before { content: ""; position: absolute; left: 50%; top: -10px; width: 1.5px; height: 10px; background: var(--fa); } .sh-tagm b { font-size: 11px; }
.sh-tagm.live { background: var(--ac); color: #fff !important; } .sh-tagm.done { background: var(--ink); color: var(--paper) !important; } .sh-tagm.on { box-shadow: 0 0 0 2px var(--ac), 0 3px 0 rgba(43,33,27,.12); }
.sh-note { background: var(--paper); border-radius: 0; background-image: repeating-linear-gradient(transparent 0 27px, #e2d6c6 27px 28px); position: relative; padding: 18px 18px 18px 46px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 3px 0 #d9c8b2; }
.sh-note::before { content: ""; position: absolute; left: 30px; top: 0; bottom: 0; border-left: 1.5px solid #f0b9a8; } .sh-note > b { font-family: var(--fr); font-size: 18px; }
.sh-boxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: end; }
.sh-parcel { display: flex; flex-direction: column; min-width: 0; }
.sh-parcel > s { display: block; height: 30px; margin: 0 10px; background: #cdb393; clip-path: polygon(0 0, 100% 0, 94% 100%, 6% 100%); }
.sh-parcel > div { background: linear-gradient(90deg, transparent 44%, #f3ece2 44% 56%, transparent 56%), var(--kraft); border-radius: 0 0 10px 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 4px 0 var(--kraft2); }
.sh-parcel.on > s { height: 30px; } .sh-parcel.on > div { box-shadow: 0 4px 0 var(--kraft2), 0 0 0 3px var(--ac); }
.sh-label { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 4px; padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; }
.sh-label .t { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; } .sh-label small { font-size: 10px; color: var(--fa); } .sh-label b { font-size: 13px; } .sh-label strong { font-size: 17px; line-height: 1.25; }
.sh-label .bc { height: 20px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 3px, var(--ink) 3px 4px, transparent 4px 7px); margin-top: 3px; }
.sh-fbw { background: var(--paper); border-radius: 10px; padding: 8px 10px; font-size: 12px; } .sh-fbw small { display: block; font-size: 10px; color: var(--fa); }
.sh-ccards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sh-cc { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; color: var(--ink); }
.sh-cc > .hd { display: flex; justify-content: space-between; align-items: center; padding: 7px 12px; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 11px; } .sh-cc > .hd a { color: var(--paper) !important; } .sh-cc > .hd i { width: 11px; height: 11px; border-radius: 50%; background: var(--paper); display: block; }
.sh-cc.hot > .hd { background: var(--risk2); } .sh-cc > .bd { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sh-cc .nm { font-size: 16px; font-weight: 800; } .sh-cc .ct { font-size: 12px; min-height: 32px; } .sh-cc .ln { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; border-top: 1.5px dashed var(--dash); }
.sh-cc .ln a, .sh-cc .ln span { font-family: var(--mono); font-size: 12px; } .sh-cc .ln a.risk-t { color: var(--risk2) !important; } .sh-cc .ln b { font-family: var(--fr); font-size: 22px; }
.sh-trace { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 10px; padding: 8px 18px 0; text-align: center; align-items: end; }
.sh-trace > div { display: flex; flex-direction: column; align-items: center; gap: 6px; } .sh-trace .tb { display: flex; gap: 3px; align-items: flex-end; }
.sh-trace .tb i { display: block; width: 17px; height: 48px; border: 1px solid var(--ink); border-radius: 6px 6px 3px 3px; background: #dcebd9; }
.sh-tl2 { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 10px; padding: 8px 18px 4px; text-align: center; } .sh-tl2 b { display: block; font-size: 13px; } .sh-tl2 span { font-family: var(--mono); font-size: 12px; }
.sh-tubes { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 30px; padding: 4px 60px 0; align-items: end; }
.sh-tube { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink) !important; }
.sh-tube > i { display: block; width: 110px; height: 150px; border-radius: 40px 40px 14px 14px; border: 1.5px solid var(--ink); background: var(--paper); position: relative; overflow: hidden; }
.sh-tube > i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--fill); background: var(--risk2); } .sh-tube b { font-family: var(--fr); font-size: 22px; } .sh-tube span { font-family: var(--mono); font-size: 11px; }

/* ------------------------------------------------------------ 공용 틀 (목록·상세·등록) */
.t-s .sh-main > .page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 40px 4px 0; position: relative; }
.t-s .sh-main > .page-head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 20px; border-radius: 12px 12px 0 0; background: repeating-linear-gradient(90deg, var(--ac) 0 44px, var(--shelf) 44px 88px); }
.t-s .page-head .crumbs { font-family: var(--mono); font-size: 11px; color: var(--fa); } .t-s .page-head .crumbs a { color: var(--fa) !important; } .t-s .page-head .crumbs span { margin: 0 4px; }
.t-s .page-head .page-title { font-family: var(--fr); font-weight: 800; font-size: 36px; line-height: 1.05; margin: 4px 0; } .t-s .page-head .page-sub { font-size: 13px; color: var(--mu); margin: 0; }
.t-s .page-head .page-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.t-s .row { display: flex; } .t-s .alert { padding: 10px 14px; border-radius: 14px; }
.t-s .a-kpis { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 14px; border: 0; margin: 0; }
.t-s .a-kpi, .t-s .a-kpi:first-child { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 6px; padding: 10px 14px; display: flex; flex-direction: column; gap: 3px; color: var(--ink); }
.t-s .a-kpi .l { font-size: 11px; color: var(--mu); } .t-s .a-kpi .v { font-family: var(--fr) !important; font-size: 26px !important; font-weight: 800; } .t-s .a-kpi .n { font-size: 10px; color: var(--fa); }
.t-s .card, .t-s .a-grid > section { background: var(--shelf); border: 0; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--ln); padding: 4px 4px 12px; overflow: visible; color: var(--ink); }
.t-s .card-head, .t-s .a-sec-h { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px 6px; margin: 0; border: 0; background: transparent; }
.t-s .card-title, .t-s .a-sec-h h2 { font-family: var(--f) !important; font-weight: 800; font-size: 16px !important; margin: 0; color: var(--ink); }
.t-s .card-body { padding: 4px 14px; } .t-s .muted { color: var(--fa); } .t-s .small { font-size: 11px; }
.t-s .tbl-wrap, .t-s .a-tbl-wrap { overflow-x: auto; background: transparent; border: 0; box-shadow: none; }
.t-s .a-tbl, .t-s .tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.t-s .a-tbl th, .t-s .tbl th { font-size: 11px; color: var(--fa); font-weight: 700; text-align: left; padding: 7px 10px; background: transparent; border-bottom: 1.5px dashed var(--dash); white-space: nowrap; text-transform: none; letter-spacing: 0; }
.t-s .a-tbl th a { color: var(--fa) !important; } .t-s .a-tbl td, .t-s .tbl td { padding: 9px 10px; border-bottom: 1px dashed var(--ln); color: var(--ink); background: transparent; }
.t-s .a-tbl .num, .t-s .tbl .num { font-family: var(--mono); text-align: right; } .t-s .a-tbl a.a-no, .t-s .tbl a.link { font-family: var(--mono); font-size: 11px; color: var(--ac) !important; }
.t-s .a-tr:hover td, .t-s .a-tr.sel td { background: #f3ece2; }
.t-s .a-filter { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 0 0 10px; margin: 0; border: 0; align-items: center; } .t-s .a-filter-l { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.t-s .a-filter .a-in.q { width: 270px; border-radius: 999px; } .t-s .a-filter .a-sel { width: auto; padding: 7px 14px; border-radius: 999px; font-weight: 800; border-color: var(--ink); }
.t-s .a-period { display: flex; border-radius: 999px; background: var(--ln); padding: 3px; } .t-s .a-period a { padding: 4px 10px; color: var(--mu); font-size: 12px; border-radius: 999px; } .t-s .a-period a.on { background: var(--paper); color: var(--ink); font-weight: 800; }
.t-s .a-reset { font-size: 12px; text-decoration: underline; color: var(--mu) !important; }
.t-s .a-bulk { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin: 6px 0; background: var(--ln); color: var(--mu); border: 0; border-radius: 14px; box-shadow: none; font-size: 12px; }
.t-s .a-bulk.on { background: var(--ink); color: var(--paper); } .t-s .a-bulk-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.t-s .a-bulk-acts button { background: var(--paper); border: 0; color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; padding: 5px 12px; border-radius: 999px; } .t-s .a-bulk:not(.on) .a-bulk-acts button { color: var(--fa); background: transparent; }
.t-s .a-bulk.on .a-bulk-acts button.danger { background: transparent; color: #f5c9bb; box-shadow: inset 0 0 0 1.5px #f5c9bb; }
.t-s .a-tfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; padding: 10px 4px 0 !important; color: var(--mu); flex-wrap: wrap; font-family: var(--mono); }
.t-s .a-pages { display: flex; gap: 4px; align-items: center; font-family: var(--mono); } .t-s .a-pages a, .t-s .a-pages span { padding: 2px 6px; color: var(--ink); } .t-s .a-pages .cur { font-weight: 700; text-decoration: underline; } .t-s .a-pages .dis { color: var(--ln2); }
.t-s .a-pages select { border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: 11px; padding: 2px 6px; }
.t-s .badge, .t-s .a-lv { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 999px; white-space: nowrap; background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); }
.t-s .badge.tone-green, .t-s .a-lv.ok { background: var(--ok-bg); color: #fff; border-color: var(--ok-bg); } .t-s .badge.tone-amber, .t-s .badge.tone-yellow, .t-s .a-lv.warn { background: var(--warn-bg); color: #111; border-color: var(--warn-bg); }
.t-s .badge.tone-red, .t-s .a-lv.risk { background: var(--risk); color: #fff; border-color: var(--risk); } .t-s .badge.tone-gray, .t-s .a-lv.stop { background: var(--stop); color: #fff; border-color: var(--stop); }
.t-s .badge.tone-blue, .t-s .badge.tone-indigo { background: var(--ink); color: var(--paper); }
.t-s .bool-yes { color: var(--ok); } .t-s .bool-no { color: var(--fa); }
.t-s .a-empty, .t-s .empty { text-align: center; padding: 26px 0; color: var(--fa); } .t-s .a-empty b { font-size: 15px; display: block; color: var(--ink); } .t-s .a-empty .ic { display: none; }
.t-s .act-bar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: var(--kraft); border: 0; box-shadow: 0 3px 0 var(--kraft2); margin: 0; }
.t-s .act-bar form { margin: 0; } .t-s .act-cap { font-weight: 800; font-size: 13px; margin-right: 6px; }
.t-s .kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; padding: 0 16px 6px; }
.t-s .kv-item { padding: 9px 0; border-bottom: 1px dashed var(--ln); min-width: 0; } .t-s .kv-item.full { grid-column: 1 / -1; } .t-s .kv-label { font-size: 11px; color: var(--fa); } .t-s .kv-value { margin-top: 3px; font-size: 14px; overflow-wrap: anywhere; }
.t-s .stack { display: flex; flex-direction: column; gap: 16px; }
.t-s .stage-path { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; } .t-s .stage-step { padding: 6px 10px; background: var(--paper); border: 1px solid var(--ink); border-radius: 999px; font-size: 12px; color: var(--mu); text-align: center; } .t-s .stage-step svg { display: none; }
.t-s .stage-step.done { background: var(--ink); color: var(--paper); } .t-s .stage-step.current { background: var(--ac); border-color: var(--ac); color: #fff; font-weight: 800; }
.t-s .form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; padding: 8px 16px; } .t-s .field { display: flex; flex-direction: column; gap: 4px; } .t-s .field.full { grid-column: 1 / -1; }
.t-s .field-label { font-size: 12px; font-weight: 700; } .t-s .field .req { color: var(--risk2); margin-left: 2px; } .t-s .field-err { font-size: 11px; color: var(--risk2); } .t-s .help { font-size: 11px; color: var(--fa); }
.t-s .form-foot, .t-s .form-actions { display: flex; justify-content: flex-end; gap: 6px; padding: 12px 4px 4px; }
.t-s .alert-error { border-radius: 14px; border: 2px solid var(--risk2); color: var(--risk2); padding: 10px 14px; background: var(--paper); font-weight: 600; }
.t-s .a-chk { accent-color: var(--ink); width: 14px; height: 14px; }
.t-s .a-chip, .t-s .lb-chip { display: inline-flex; gap: 4px; align-items: center; padding: 3px 10px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 12px; background: var(--paper); color: var(--ink) !important; }

/* 팝업 · 알림 */
.t-s .a-modal { border: 2px solid var(--ink); border-radius: 16px; background: var(--paper); padding: 0; width: 520px; max-width: calc(100vw - 32px); box-shadow: 0 0 0 100vmax rgba(43, 33, 27, .4); color: var(--ink); overflow: hidden; }
.t-s .a-modal.danger { border-color: var(--risk2); } .t-s .a-modal::backdrop { background: transparent; }
.t-s .a-modal-h { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: var(--ink); color: var(--paper); } .t-s .a-modal-h b { font-family: var(--fr); font-weight: 800; font-size: 17px; }
.t-s .a-modal.danger .a-modal-h { background: var(--risk2); } .t-s .a-modal-h button { background: none; border: 0; font-size: 18px; cursor: pointer; color: var(--paper); }
.t-s .a-modal-b { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; } .t-s #a-modal-desc { font-size: 12px; line-height: 1.6; color: var(--mu); }
.t-s #a-modal-desc .box { background: var(--bg); padding: 8px 10px; margin-bottom: 4px; font-family: var(--mono); font-size: 12px; color: var(--ink); border-radius: 8px; }
.t-s .a-chiprow { display: flex; gap: 6px; flex-wrap: wrap; } .t-s .a-chiprow button { border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); font: inherit; font-size: 12px; padding: 3px 10px; cursor: pointer; border-radius: 999px; }
.t-s .a-chiprow button:hover { background: var(--ln); } .t-s .a-lbl { font-size: 12px; font-weight: 700; }
.t-s .a-modal textarea { width: 100%; box-sizing: border-box; border: 2px solid var(--ac); border-radius: 12px; background: var(--paper); color: var(--ink); padding: 9px 11px; font: inherit; resize: vertical; outline: 0; }
.t-s .a-modal.danger textarea { border-color: var(--risk2); } .t-s .a-err { font-size: 11px; color: var(--risk2); }
.t-s .a-modal-f { display: flex; justify-content: flex-end; gap: 6px; padding: 0 16px 16px; border: 0; background: transparent; }
.t-s .a-modal .a-btn-ac { background: var(--ac); border-color: var(--ac); color: #fff !important; } .t-s .a-modal.danger .a-btn-danger { background: var(--risk2); color: #fff !important; border-color: var(--risk2); }
.t-s .a-modal .a-btn-ac:disabled, .t-s .a-modal .a-btn-danger:disabled { background: var(--ln) !important; color: var(--fa) !important; border-color: var(--ln) !important; }
.t-s .a-toasts { position: fixed; right: 20px; top: 110px; z-index: 60; display: flex; flex-direction: column; gap: 8px; width: 380px; max-width: calc(100vw - 32px); }
.t-s .a-toast { position: static; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; background: var(--paper); color: var(--ink); border: 0; border-radius: 0; padding: 10px 14px 16px; box-shadow: 0 6px 18px rgba(43,33,27,.18);
  -webkit-mask: linear-gradient(#000 calc(100% - 8px), transparent 0), conic-gradient(from -45deg at bottom, #000 90deg, transparent 0) 50% 100%/12px 8px repeat-x; mask: linear-gradient(#000 calc(100% - 8px), transparent 0), conic-gradient(from -45deg at bottom, #000 90deg, transparent 0) 50% 100%/12px 8px repeat-x; }
.t-s .a-toast b { display: block; font-weight: 800; color: var(--ok); } .t-s .a-toast.warning b { color: var(--warn); } .t-s .a-toast.error b { color: var(--risk2); } .t-s .a-toast.out { display: none; }
.t-s .a-toast span { font-size: 11px; color: var(--mu); font-family: var(--mono); } .t-s .a-toast button { background: none; border: 0; color: var(--ink); cursor: pointer; font-size: 16px; }

/* ------------------------------------------------------------ 좁은 화면 */
@media (max-width: 1180px) {
  .sh-e1 { grid-template-columns: 1fr; } .sh-e1 > .sh-col { display: grid; grid-template-columns: 1fr 1fr; } .sh-talks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sh-bags { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 20px; } .sh-kanban { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sh-evc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .sh-r1 { flex-wrap: wrap; padding: 10px 16px; white-space: normal; gap: 8px; } .sh-r1 .l, .sh-r1 .r { flex-wrap: wrap; gap: 8px; } .sh-back, .sh-seg.sk { display: none; } .sh-brands a { padding: 3px 8px; }
  .sh-menu { padding: 0 12px 10px; overflow-x: auto; } .sh-menu details { position: static; } .sh-more { position: fixed; left: 12px; right: 12px; top: auto; grid-template-columns: repeat(2, 1fr); }
  .sh-main { padding: 0 12px 24px; gap: 16px; } .sh-tl { flex-direction: column; align-items: flex-start; } .sh-tl h1 { font-size: 30px; } .sh-tl .sh-bs { justify-content: flex-start; }
  .sh-facts > .g { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .sh-facts::before { display: none; } .sh-pt b { font-size: 22px; }
  .sh-g { grid-template-columns: 1fr !important; } .sh-e1 > .sh-col { grid-template-columns: 1fr; }
  .sh-store .top { grid-template-columns: 1fr; gap: 12px; } .sh-store .num > b { font-size: 56px; } .sh-minis { flex-wrap: wrap; }
  .sh-sects { grid-template-columns: 1fr !important; } .sh-talks { grid-template-columns: 1fr 1fr; } .sh-talk > div { --r: 0deg !important; } .sh-chans { grid-template-columns: 1fr; }
  .sh-lotsh, .sh-fit4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .sh-bask { grid-template-columns: 1fr; } .sh-notes { grid-template-columns: 1fr; }
  .sh-tier { grid-template-columns: minmax(0, 1fr); gap: 4px; } .sh-tier > b { padding-bottom: 0; } .sh-jars { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .sh-qcf { grid-template-columns: 1fr; }
  .sh-cab { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sh-shows { grid-template-columns: 1fr; } .sh-next > div { grid-template-columns: 1fr 1fr; gap: 12px 0; } .sh-next > div > div:first-child { grid-column: 1 / -1; }
  .sh-bags { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sh-bcards { grid-template-columns: 1fr; } .sh-calw { overflow-x: auto; } .sh-cal { min-width: 760px; } .sh-evc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-f3 { grid-template-columns: 1fr 1fr; } .sh-raws { grid-template-columns: 1fr !important; } .sh-doc { grid-template-columns: 1fr; } .sh-doc .meta { grid-template-columns: 1fr 1fr; }
  .sh-stack, .sh-stackl { gap: 4px; } .sh-staff { grid-template-columns: 1fr 1fr; } .sh-kanban { grid-template-columns: 1fr 1fr; } .sh-kcol > .bd { min-height: 0; }
  .sh-boardw { overflow-x: auto; } .sh-board { min-width: 760px; } .sh-boxes, .sh-ccards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sh-tubes { padding: 4px 10px 0; }
  .sh-cbars { gap: 6px; padding: 10px 12px 0; } .sh-cbl { gap: 6px; padding: 6px 12px 16px; } .sh-tw { overflow-x: auto; }
  .t-s .kv, .t-s .form-grid { grid-template-columns: 1fr 1fr; } .t-s .a-filter .a-in.q { width: 100%; }
}
@media (max-width: 560px) {
  .sh-facts > .g { grid-template-columns: 1fr 1fr !important; gap: 8px; } .sh-talks, .sh-evc, .sh-cab, .sh-boxes, .sh-ccards, .sh-kanban, .sh-staff, .sh-f3 { grid-template-columns: 1fr; }
  .sh-next > div { grid-template-columns: 1fr; } .sh-next > div > div { border: 0; padding: 0; } .t-s .kv, .t-s .form-grid { grid-template-columns: 1fr; }
  .sh-big { font-size: clamp(30px, 10vw, 48px); } .sh-tot b { font-size: 24px; } .sh-bots { overflow-x: auto; justify-content: flex-start; } .sh-bot { flex: none; }
  .sh-lotsh { gap: 10px; padding: 0 6px; } .sh-lb > i { width: 92px; height: 130px; } .sh-sh-tw { overflow-x: auto; }
}
.sh-hang::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 2px; background: var(--fa); }
.sh-fbf { display: grid !important; grid-template-columns: 200px 1fr 1fr auto; gap: 16px; align-items: end; }
@media (max-width: 1100px) { .sh-fbf { grid-template-columns: 1fr !important; } }
@media (max-width: 1100px) {
  .sh-store .num { align-items: flex-start; } .sh-bh { flex-wrap: wrap; } .sh-bh > span { white-space: normal; }
  .sh-sect .sn { white-space: normal; }
}
@media (max-width: 1100px) { .sh-lcard .nm { flex-wrap: wrap; } .sh-lcard .nm b { white-space: normal; } .sh-mo .ft { flex-direction: column; align-items: flex-start; } .sh-mo .nm { flex-wrap: wrap; } }
/* 색 세트 · 나이트 마켓 — 브랜드 글자색을 어두운 바탕에 맞춤 */
html[data-palette="night"] .t-s .b-S { --bi: #f3b9a0; } html[data-palette="night"] .t-s .b-C { --bi: #f28fae; } html[data-palette="night"] .t-s .b-M { --bi: #9fd6c2; }
html[data-palette="night"] .sh-bot > i { background: rgba(255,255,255,.14); }
