/* ==========================================================================
   DOUBLE SAFE — 고객 화면 (2026-10-23 고객사 요청: Apple 같은 Liquid Glass)

   · 바탕은 무채색(#f5f5f7). 첫 화면(무엇을 발주할까요?)과 대시보드만 은은한 색 번짐(.cs-ambient) — 고객사: "무지개
     배경색은 대시보드에서만, 나머지 창은 무채색으로".
   · 유리는 두 단계: 색 번짐 위에서는 비치는 유리(굴절 테두리 · 윗면 광택), 무채색 화면에서는 거의 흰 표면에
     머리카락 선과 옅은 그림자만 — 절제된 쪽이 기본이다.
   · Tabler(부트스트랩) 위에 덮는다. 화면마다 쓰던 --cs-* 변수는 그대로 이어 준다.
   ========================================================================== */

:root {
    --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;

    /* 글자 — 읽어야 하는 글자는 ink-3 보다 옅게 쓰지 않는다 */
    --ink: #1d1d1f;
    --ink-2: #424245;
    --ink-3: #6e6e73;
    --ink-4: #8a8a8f;

    /* 브랜드 — 로고색 #004098 */
    --navy: #004098;
    --navy-2: #0b4fb3;
    --navy-grad: linear-gradient(180deg, #2c65c8 0%, #0a479f 52%, #003a86 100%);
    --navy-tint: rgba(0, 64, 152, .07);
    --navy-tint-2: rgba(0, 64, 152, .12);
    --ring: 0 0 0 4px rgba(0, 64, 152, .14);

    /* 상태 */
    --recv: #0a66d6;
    --logi: #5b4fcf;
    --ship: #b25e00;
    --done: #1d8a3a;
    --warn: #c25a00;
    --red: #d70015;

    /* 바탕 · 표면 */
    --bg: #f5f5f7;
    --hair: rgba(16, 24, 40, .08);
    --hair-2: rgba(16, 24, 40, .05);
    --surface: rgba(255, 255, 255, .86);
    --surface-solid: #fff;
    --fill: rgba(0, 0, 0, .04);
    --fill-2: rgba(0, 0, 0, .06);

    --r-xl: 24px;
    --r-lg: 18px;
    --r-md: 14px;
    --r-sm: 10px;

    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 28px -14px rgba(16, 24, 40, .14);
    --shadow-up: 0 2px 4px rgba(16, 24, 40, .04), 0 26px 56px -24px rgba(16, 24, 40, .26);

    /* 예전 화면 변수 — 새 값으로 이어 준다 */
    --cs-ink: var(--ink);
    --cs-text: var(--ink-2);
    --cs-muted: var(--ink-3);
    --cs-line: rgba(16, 24, 40, .09);
    --cs-line-strong: rgba(16, 24, 40, .16);
    --cs-bg: var(--bg);
    --cs-orange: #e07a26;
    --cs-orange-soft: rgba(224, 122, 38, .1);
    --cs-orange-ink: #a24f0c;
    --cs-danger: #c8102e;
    --cs-radius: var(--r-lg);
    --cs-shadow: var(--shadow);
    --ds-brand: var(--navy);
    --ds-brand-tint: rgba(0, 64, 152, .07);

    --tblr-body-bg: var(--bg);
    --tblr-font-sans-serif: var(--font);
    --tblr-border-color: var(--hair);
    --tblr-border-radius: 12px;
    --tblr-body-color: var(--ink);
    --tblr-secondary: var(--ink-3);
    --tblr-muted: var(--ink-3);
}

/* ── 바탕 ─────────────────────────────────────────────────────────────── */
html { margin-left: 0 !important; }
[x-cloak] { display: none !important; }
body.cs {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    letter-spacing: -.011em;
    font-feature-settings: "tnum" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-break: keep-all;
    overflow-wrap: break-word;
}
.cs a, .cs a:hover, .cs a:focus, .cs a:active, .cs a:visited { text-decoration: none; }
.cs a:where(:not(.btn)), .cs a:where(:not(.btn)):hover, .cs a:where(:not(.btn)):focus, .cs a:where(:not(.btn)):active { color: inherit; }
.cs ::selection { background: rgba(0, 64, 152, .18); }

/* 색 번짐 — 첫 화면 · 대시보드만 */
.cs-amb { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.cs-amb i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .88; will-change: transform; }
.cs-amb i:nth-child(1) { width: 640px; height: 640px; left: -170px; top: -220px; background: #c7d9fb; animation: cs-drift-a 38s ease-in-out infinite alternate; }
.cs-amb i:nth-child(2) { width: 560px; height: 560px; right: -140px; top: 90px; background: #e2d5fb; animation: cs-drift-b 44s ease-in-out infinite alternate; }
.cs-amb i:nth-child(3) { width: 720px; height: 520px; left: 30%; bottom: -280px; background: #cbeee8; animation: cs-drift-c 50s ease-in-out infinite alternate; }
.cs-amb i:nth-child(4) { width: 520px; height: 520px; right: 16%; top: 48%; background: #fde3cc; opacity: .62; animation: cs-drift-b 46s ease-in-out infinite alternate-reverse; }
@keyframes cs-drift-a { to { transform: translate3d(70px, 50px, 0) scale(1.06); } }
@keyframes cs-drift-b { to { transform: translate3d(-60px, 40px, 0) scale(1.08); } }
@keyframes cs-drift-c { to { transform: translate3d(50px, -40px, 0) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .cs-amb i { animation: none; } }

/* ── 유리 ─────────────────────────────────────────────────────────────── */
/* 무채색 화면의 표면 — 거의 흰색, 머리카락 선, 옅은 그림자 */
.cs .card, .g-panel {
    background: var(--surface);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--hair-2);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
}
/* 색 번짐 위의 유리 — 비치고, 테두리가 빛을 받는다 */
.cs-ambient .card, .cs-ambient .g-panel, .g-glass, .cs-side {
    position: relative;
    background: linear-gradient(150deg, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, .42) 55%, rgba(255, 255, 255, .54) 100%);
    -webkit-backdrop-filter: blur(28px) saturate(185%);
    backdrop-filter: blur(28px) saturate(185%);
    border: 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .95),
        inset 0 -1px 0 rgba(255, 255, 255, .4),
        inset 0 0 18px rgba(255, 255, 255, .45),
        0 0 0 .5px rgba(16, 24, 40, .06),
        0 1px 2px rgba(16, 24, 40, .04),
        0 18px 40px -18px rgba(16, 24, 40, .22);
}
.cs-ambient .card::before, .cs-ambient .g-panel::before, .g-glass::before, .cs-side::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.25px; pointer-events: none; z-index: 2;
    background:
        linear-gradient(160deg, #fff 0%, rgba(255, 255, 255, .5) 20%, rgba(255, 255, 255, .06) 46%, rgba(255, 255, 255, .06) 64%, rgba(255, 255, 255, .85) 90%, #fff 100%),
        linear-gradient(90deg, rgba(160, 190, 255, .32), rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 68%, rgba(255, 196, 228, .3));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* 무채색 화면에서는 굴절 테두리를 아주 옅게 — 절제 */
.cs:not(.cs-ambient) .cs-side { background: rgba(255, 255, 255, .78); box-shadow: 0 0 0 .5px var(--hair), 0 1px 2px rgba(16, 24, 40, .03), 0 12px 32px -18px rgba(16, 24, 40, .16); }
.cs:not(.cs-ambient) .cs-side::before { opacity: .55; }
.cs .card > *, .g-glass > *, .g-panel > * { position: relative; z-index: 1; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .cs .card, .g-panel, .g-glass, .cs-side { background: rgba(255, 255, 255, .96) !important; }
}

/* ── 틀: 왼쪽 메뉴 + 본문 ──────────────────────────────────────────────── */
/* z-index 를 주지 않는다 — 쌓임 층을 만들면 body 에 붙는 부트스트랩 창 바탕막(.modal-backdrop)이 창 위를 덮어 창이 흐려지고 눌리지 않는다(2026-10-24).
   색 번짐(.cs-amb, z-index 0)은 DOM 에서 앞에 있어 이 틀이 그 위에 그려진다. */
.cs-app { position: relative; display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; }
.cs-side {
    position: sticky; top: 12px; align-self: start;
    height: calc(100vh - 24px); margin: 12px 0 12px 12px;
    border-radius: 22px; padding: 18px 12px 12px;
    display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; z-index: 30;
    scrollbar-width: none;
}
.cs-side::-webkit-scrollbar { display: none; }
.cs-side > * { position: relative; z-index: 3; }
.cs-brand { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 16px 10px; }
.cs-brand img { height: 26px; max-width: 150px; object-fit: contain; object-position: left center; display: block; }
.cs-collapse { width: 30px; height: 30px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-4); display: grid; place-items: center; }
.cs-collapse:hover { background: var(--fill); color: var(--ink-2); }

.cs a.cs-new, .cs a.cs-new:hover, .cs a.cs-new:visited, .cs a.cs-new:focus {
    display: flex; align-items: center; justify-content: center; gap: 7px; position: relative;
    height: 42px; margin: 0 2px 14px; border-radius: 13px; color: #fff; font-weight: 650; font-size: 14.5px;
    background: var(--navy-grad);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 -1px 0 rgba(0, 0, 0, .14), 0 8px 20px -8px rgba(0, 64, 152, .6);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.cs a.cs-new:hover { filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .36), inset 0 -1px 0 rgba(0, 0, 0, .14), 0 10px 24px -8px rgba(0, 64, 152, .65); }
.cs a.cs-new:active { transform: scale(.985); }
.cs-new .cs-cart-n {
    position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
    min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
    background: rgba(255, 255, 255, .95); color: var(--navy); font-size: 11px; font-weight: 750;
}

.cs-nav { display: grid; gap: 2px; }
.cs a.cs-nav-btn {
    display: flex; align-items: center; gap: 11px; min-height: 38px; padding: 0 11px; border-radius: 11px;
    font-size: 14px; font-weight: 550; color: var(--ink-2);
    transition: background .15s ease, color .15s ease;
}
.cs a.cs-nav-btn svg { color: var(--ink-3); transition: color .15s ease; }
.cs a.cs-nav-btn:hover { background: rgba(0, 0, 0, .04); color: var(--ink); }
.cs a.cs-nav-btn.active, .cs a.cs-nav-btn.active:hover {
    color: var(--navy); font-weight: 650;
    background: rgba(255, 255, 255, .72);
    box-shadow: inset 0 1px 0 #fff, 0 0 0 .5px var(--hair-2), 0 2px 8px -2px rgba(16, 24, 40, .12);
}
.cs a.cs-nav-btn.active svg { color: var(--navy); }
.cs-nav-ico { width: 20px; min-width: 20px; display: grid; place-items: center; }
.cs-nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 11px; font-weight: 650; }

.cs a.cs-due, .cs a.cs-due:hover {
    display: flex; align-items: center; gap: 10px; margin: 16px 2px 0; padding: 11px 12px; border-radius: 14px;
    background: rgba(255, 255, 255, .66); box-shadow: inset 0 1px 0 #fff, 0 0 0 .5px var(--hair-2);
}
.cs a.cs-due:hover { background: rgba(255, 255, 255, .86); }
.cs-due-copy { min-width: 0; display: grid; line-height: 1.25; }
.cs-due-copy small { font-size: 11.5px; color: var(--ink-3); }
.cs-due-copy b { font-size: 16px; font-weight: 700; letter-spacing: -.02em; color: var(--red); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-due .cs-due-go { margin-left: auto; color: var(--ink-4); }
.cs-due .cs-nav-ico { color: var(--red); }

.cs-sec { font-size: 11.5px; font-weight: 600; color: var(--ink-4); margin: 20px 12px 6px; letter-spacing: .01em; }
.cs a.cs-run { display: block; padding: 7px 11px; border-radius: 10px; }
.cs a.cs-run + a.cs-run { position: relative; }
.cs a.cs-run + a.cs-run::before { content: ""; position: absolute; left: 11px; right: 11px; top: 0; height: 1px; background: var(--hair-2); }
.cs a.cs-run:hover { background: rgba(0, 0, 0, .035); }
.cs-run strong { display: block; font-size: 13px; font-weight: 550; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-run small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }

.cs-me { margin-top: auto; padding-top: 12px; }
.cs-me > a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.cs-me > a:hover { background: rgba(0, 0, 0, .04); }
.cs-av { width: 32px; height: 32px; min-width: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12.5px; font-weight: 650;
    background: linear-gradient(135deg, #5b82cf, #0a3d91); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.cs-me strong { display: block; font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-me small { display: block; font-size: 11.5px; color: var(--ink-3); }

/* 본문 */
.cs-main { min-width: 0; display: flex; flex-direction: column; }
.cs-top { height: 64px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 36px; }
.cs a.cs-pill, .cs button.cs-pill {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 17px; border: 0;
    font-size: 13px; font-weight: 550; color: var(--ink-2);
    background: rgba(255, 255, 255, .72); box-shadow: inset 0 1px 0 #fff, 0 0 0 .5px var(--hair), 0 1px 2px rgba(16, 24, 40, .04);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.cs a.cs-pill:hover, .cs button.cs-pill:hover { background: rgba(255, 255, 255, .92); color: var(--ink); }
.cs .cs-top .cs-mob, .cs .cs-top .cs-mob-logo { display: none; }
.cs-content { flex: 1 1 auto; }
.cs-scrim { position: fixed; inset: 0; background: rgba(16, 24, 40, .28); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); z-index: 25; display: none; }

.ds-wrap { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 36px 72px; }
.page-body { margin: 0; }

/* 접은 메뉴 — 넓은 화면에서 접었을 때와 768~1180px */
@media (min-width: 768px) {
    .cs-app.collapsed { grid-template-columns: 84px minmax(0, 1fr); }
    .cs-app.collapsed .cs-label, .cs-app.collapsed .cs-sec, .cs-app.collapsed .cs-run, .cs-app.collapsed .cs-me-copy,
    .cs-app.collapsed .cs-nav-badge, .cs-app.collapsed .cs-brand img { display: none; }
    .cs-app.collapsed .cs-brand { justify-content: center; padding: 2px 0 16px; }
    .cs-app.collapsed a.cs-nav-btn { justify-content: center; padding: 0; }
    .cs-app.collapsed a.cs-due { justify-content: center; padding: 10px 0; }
    .cs-app.collapsed a.cs-new { width: 44px; align-self: center; margin-left: auto; margin-right: auto; }
    .cs-app.collapsed .cs-cart-n { right: -6px; top: -5px; transform: none; background: var(--cs-orange); color: #fff; }
    .cs-app.collapsed .cs-me > a { justify-content: center; }
}
@media (min-width: 768px) and (max-width: 1180px) {
    .cs-app:not(.expanded) { grid-template-columns: 84px minmax(0, 1fr); }
    .cs-app:not(.expanded) .cs-label, .cs-app:not(.expanded) .cs-sec, .cs-app:not(.expanded) .cs-run, .cs-app:not(.expanded) .cs-me-copy,
    .cs-app:not(.expanded) .cs-nav-badge, .cs-app:not(.expanded) .cs-brand img { display: none; }
    .cs-app:not(.expanded) .cs-brand { justify-content: center; padding: 2px 0 16px; }
    .cs-app:not(.expanded) a.cs-nav-btn { justify-content: center; padding: 0; }
    .cs-app:not(.expanded) a.cs-due { justify-content: center; padding: 10px 0; }
    .cs-app:not(.expanded) a.cs-new { width: 44px; align-self: center; margin-left: auto; margin-right: auto; }
    .cs-app:not(.expanded) .cs-cart-n { right: -6px; top: -5px; transform: none; background: var(--cs-orange); color: #fff; }
    .cs-app:not(.expanded) .cs-me > a { justify-content: center; }
    .ds-wrap { padding: 0 24px 56px; }
    .cs-top { padding: 0 24px; }
}
@media (max-width: 767.98px) {
    .cs-app { grid-template-columns: 1fr; }
    .cs-side { position: fixed; left: 10px; top: 10px; bottom: 10px; height: auto; width: 272px; margin: 0; transform: translateX(-115%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
    .cs-app.open .cs-side { transform: none; }
    .cs-app.open .cs-scrim { display: block; }
    .cs-collapse { display: none; }
    .cs-top { position: sticky; top: 0; z-index: 20; height: 56px; padding: 0 14px; justify-content: space-between;
        background: rgba(245, 245, 247, .78); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
        box-shadow: 0 .5px 0 var(--hair); }
    .cs-ambient .cs-top { background: rgba(255, 255, 255, .5); }
    .cs .cs-top .cs-mob, .cs .cs-top .cs-mob-logo { display: inline-flex; }
    .cs-top .cs-mob-logo img { height: 22px; }
    .cs-top .cs-guide-label { display: none; }
    .ds-wrap { padding: 14px 14px 48px; }
}
@media (prefers-reduced-motion: reduce) { .cs-side { transition: none; } }
@media print { .cs-side, .cs-top, .cs-amb { display: none !important; } .cs-app { display: block; } }

/* ── 머리글 ───────────────────────────────────────────────────────────── */
.cs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 8px 0 22px; }
.cs-head h1, .cs-h1, .ds-page-title { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin: 0; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.cs-head p, .cs-sub, .ds-page-sub { font-size: 14.5px; color: var(--ink-3); margin: 6px 0 0; }
.cs-head p a, .cs-sub a { color: var(--navy); font-weight: 600; }
.cs-count, .cs-chip { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--ink-3); background: rgba(0, 0, 0, .05); vertical-align: middle; }
.cs-chip.pink { color: #c2255c; background: rgba(214, 51, 132, .1); } /* 샘플 주문 (2026-11-24) */
.page-header { margin-bottom: 18px !important; }
.cs-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 4px 12px; }
.cs-sec-head h2 { font-size: 19px; font-weight: 700; letter-spacing: -.025em; margin: 0; }
.cs-sec-head a { font-size: 13.5px; font-weight: 550; color: var(--navy); display: inline-flex; align-items: center; gap: 2px; }
.cs-sec-head a:hover { text-decoration: underline; }

/* ── 카드 · 표 ────────────────────────────────────────────────────────── */
.cs .card-header { background: transparent; border-bottom: 1px solid var(--hair-2); padding: 16px 20px; }
.cs .card-title, .cs h3.card-title { font-size: 16px; font-weight: 650; letter-spacing: -.02em; color: var(--ink); }
.cs .card-body { padding: 20px; }
.cs .card-footer { background: transparent; border-top: 1px solid var(--hair-2); padding: 12px 20px; color: var(--ink-3); }
.cs .table { --tblr-table-bg: transparent; --tblr-table-striped-bg: transparent; --tblr-table-hover-bg: rgba(0, 0, 0, .025); color: var(--ink); margin-bottom: 0; }
.cs .table > :not(caption) > * > * { border-bottom-color: var(--hair-2); padding: 13px 14px; background: transparent; box-shadow: none; }
.cs .table thead th { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-3); border-bottom-color: var(--hair); padding-top: 12px; padding-bottom: 10px; background: transparent; }
.cs .table tbody tr:last-child > * { border-bottom: 0; }
.cs .table tbody tr:hover > * { background: rgba(0, 0, 0, .018); }
.cs-ambient .table tbody tr:hover > * { background: rgba(255, 255, 255, .38); }
.cs .table-sm > :not(caption) > * > * { padding: 9px 12px; }
.cs .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cs .list-group-item { background: transparent; border-color: var(--hair-2); }
.cs .list-group-item.active { background: var(--navy-tint); border-color: var(--hair-2); color: var(--ink); box-shadow: inset 3px 0 0 var(--navy); }
.cs .text-secondary { color: var(--ink-3) !important; }
.cs .text-red, .cs .text-danger { color: var(--red) !important; }
.cs .text-orange { color: var(--cs-orange-ink) !important; }
.cs .text-green { color: var(--done) !important; }
.cs hr { border-color: var(--hair); opacity: 1; }

/* ── 단추 ─────────────────────────────────────────────────────────────── */
.cs .btn {
    --tblr-btn-padding-y: .45rem; --tblr-btn-padding-x: 1rem; --tblr-btn-font-size: .875rem; --tblr-btn-font-weight: 600;
    min-height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    letter-spacing: -.01em; transition: background .15s ease, box-shadow .15s ease, color .15s ease, filter .15s ease, transform .1s ease;
}
.cs .btn:active:not(:disabled) { transform: scale(.985); }
.cs .btn-sm { min-height: 32px; border-radius: 10px; --tblr-btn-padding-x: .8rem; --tblr-btn-font-size: .8125rem; }
.cs .btn-lg { min-height: 48px; border-radius: 14px; }
.cs .btn-primary {
    --tblr-btn-color: #fff; --tblr-btn-hover-color: #fff; --tblr-btn-active-color: #fff;
    background: var(--navy-grad); border: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(0, 0, 0, .14), 0 6px 16px -8px rgba(0, 64, 152, .55);
}
.cs .btn-primary:hover, .cs .btn-primary:focus-visible { background: var(--navy-grad); filter: brightness(1.07); color: #fff; }
.cs .btn-primary:disabled, .cs .btn-primary.disabled { background: #b9c3d3; box-shadow: none; filter: none; color: #fff; opacity: 1; }
.cs .btn-outline-primary, .cs .btn-outline-secondary, .cs .btn-secondary, .cs .btn-light, .cs .btn-white, .cs .btn-outline-danger {
    border: 0; background: rgba(255, 255, 255, .7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 0 0 .5px var(--hair), 0 1px 2px rgba(16, 24, 40, .05);
}
.cs .btn-outline-primary { color: var(--navy); }
.cs .btn-outline-secondary, .cs .btn-secondary, .cs .btn-light, .cs .btn-white { color: var(--ink-2); }
.cs .btn-outline-danger { color: var(--red); }
.cs .btn-outline-primary:hover, .cs .btn-outline-secondary:hover, .cs .btn-secondary:hover, .cs .btn-light:hover, .cs .btn-white:hover {
    background: rgba(255, 255, 255, .95); box-shadow: inset 0 1px 0 #fff, 0 0 0 .5px var(--hair), 0 4px 12px -6px rgba(16, 24, 40, .18);
}
.cs .btn-outline-primary:hover { color: var(--navy); }
.cs .btn-outline-secondary:hover, .cs .btn-secondary:hover { color: var(--ink); }
.cs .btn-outline-danger:hover { background: var(--red); color: #fff; }
.cs .btn-success { background: linear-gradient(180deg, #2fa152, #1d8a3a); border: 0; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 16px -8px rgba(29, 138, 58, .55); }
.cs .btn-link { color: var(--navy); font-weight: 550; min-height: 0; }
.cs .btn-link.text-secondary { color: var(--ink-3) !important; }
.cs .btn-check:checked + .btn, .cs .btn.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }

/* 세그먼트 — 부드러운 회색 홈 안의 흰 유리 알 */
.g-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: rgba(118, 118, 128, .12); }
/* 회색 칸(#e6e6e9) 위 글자는 4.5:1 이상 — ink-3 은 4.1, ink-4 는 2.8 이었다 (2026-10-26 점검) */
.g-seg button, .g-seg a { height: 32px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; font-size: 13px; font-weight: 550; color: #636368; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.g-seg button:hover, .g-seg a:hover { color: var(--ink); }
.g-seg .on, .g-seg .active { background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: inset 0 .5px 0 #fff, 0 1px 3px rgba(16, 24, 40, .12), 0 0 0 .5px rgba(16, 24, 40, .04); }
.g-seg .n { font-size: 12px; color: #636368; font-weight: 500; }
.g-seg .on .n, .g-seg .active .n { color: var(--ink-3); }

/* ── 입력칸 ───────────────────────────────────────────────────────────── */
.cs .form-control, .cs .form-select {
    border-radius: 12px; border: 1px solid var(--hair); background-color: rgba(255, 255, 255, .88);
    min-height: 40px; font-size: 14.5px; color: var(--ink); box-shadow: inset 0 1px 1px rgba(16, 24, 40, .03);
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.cs textarea.form-control { min-height: 0; }
.cs .form-control::placeholder { color: var(--ink-4); }
.cs .form-control:focus, .cs .form-select:focus { border-color: rgba(0, 64, 152, .45); box-shadow: var(--ring); background-color: #fff; }
.cs .form-control-sm, .cs .form-select-sm { min-height: 34px; border-radius: 10px; font-size: 13.5px; }
.cs .form-label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.cs .form-hint, .cs .form-text { color: var(--ink-3); font-size: 12.5px; }
.cs .form-check-input { border-color: rgba(16, 24, 40, .22); }
.cs .form-check-input:checked { background-color: var(--navy); border-color: var(--navy); }
.cs .input-icon-addon { color: var(--ink-4); }
.g-search { position: relative; flex: 1 1 260px; min-width: 200px; }
.g-search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ink-4); pointer-events: none; }
.cs .g-search input { width: 100%; height: 42px; border-radius: 21px; padding: 0 16px 0 42px; font-size: 14.5px; }
:focus-visible { outline: 2px solid rgba(0, 64, 152, .6); outline-offset: 2px; }

/* ── 상태 — 배지 대신 점 + 글자 ───────────────────────────────────────── */
.st { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; white-space: nowrap; color: var(--ink-3); }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.st.recv { color: var(--recv); } .st.logi { color: var(--logi); } .st.ship { color: var(--ship); } .st.done { color: var(--done); }
.st.warn { color: var(--warn); } .st.cancel { color: var(--ink-4); } .st.red { color: var(--red); }

/* 옅은 바탕 배지 — 둥글고 낮게 */
.cs .badge { border-radius: 8px; font-weight: 600; letter-spacing: -.005em; padding: .32em .62em; }

/* ── 알림 · 창 · 목록 끝 ─────────────────────────────────────────────── */
.cs .alert { border-radius: 14px; border: 0; box-shadow: 0 0 0 .5px var(--hair); background: rgba(255, 255, 255, .8); color: var(--ink-2); }
.cs .alert-warning, .cs .alert-orange { background: rgba(255, 244, 232, .92); color: #7a3d06; }
.cs .alert-danger { background: rgba(255, 238, 240, .94); color: #8a0f1f; }
.cs .alert-info { background: rgba(236, 243, 255, .92); color: #133a7a; }
.cs .alert-success { background: rgba(236, 249, 240, .92); color: #135c28; }
.cs .modal-backdrop.show { opacity: 1; background: rgba(16, 24, 40, .22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cs .modal-content {
    border: 0; border-radius: 22px; overflow: hidden;
    background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
    box-shadow: inset 0 1px 0 #fff, 0 0 0 .5px var(--hair), 0 40px 80px -30px rgba(16, 24, 40, .4);
}
.cs .modal-header, .cs .modal-footer { border-color: var(--hair-2); background: transparent; }
.cs .modal-title { font-weight: 700; letter-spacing: -.02em; }
.cs .dropdown-menu {
    border: 0; border-radius: 14px; padding: 6px;
    background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 0 0 .5px var(--hair), 0 18px 40px -18px rgba(16, 24, 40, .3);
}
.cs .dropdown-item { border-radius: 9px; padding: 8px 12px; font-size: 13.5px; color: var(--ink-2); }
.cs .dropdown-item:hover { background: rgba(0, 0, 0, .045); color: var(--ink); }
.cs .dropdown-divider { border-color: var(--hair-2); margin: 4px 6px; }
.cs .pagination { gap: 4px; }
.cs .page-link { border: 0; border-radius: 10px !important; min-width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink-2); background: transparent; }
.cs .page-link:hover { background: rgba(0, 0, 0, .05); color: var(--ink); }
.cs .page-item.active .page-link { background: rgba(255, 255, 255, .95); color: var(--ink); font-weight: 650; box-shadow: 0 0 0 .5px var(--hair), 0 1px 3px rgba(16, 24, 40, .1); }
.cs .page-item.disabled .page-link { background: transparent; color: var(--ink-4); }

/* 알림 (inc/component/message) — 아래 가운데 유리 알 */
.cs .toast-container { left: 50% !important; right: auto !important; transform: translateX(-50%); bottom: 18px !important; padding: 0 !important; }
.cs .toast {
    border: 0; border-radius: 16px; min-width: 300px; max-width: min(560px, 92vw); overflow: hidden;
    background: rgba(29, 29, 31, .86); color: #fff; -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .45); animation: cs-toast-in .32s cubic-bezier(.2, .8, .2, 1);
}
.cs .toast-header { background: transparent !important; border: 0; padding: 12px 14px 0; color: rgba(255, 255, 255, .7) !important; }
.cs .toast-header .alert-heading { font-size: 12px; font-weight: 600; margin: 0; color: rgba(255, 255, 255, .7); }
.cs .toast-header .alert-icon { margin-right: 6px; }
.cs .toast-header .alert-icon .icon { width: 16px; height: 16px; }
.cs .toast-header .btn-close { filter: invert(1); opacity: .6; }
.cs .toast-body { padding: 6px 14px 14px; font-size: 14px; line-height: 1.5; }
.cs .toast.hiding { animation: cs-toast-out .25s ease forwards; }
@keyframes cs-toast-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes cs-toast-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }

/* 빈 화면 */
.ds-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px 16px; text-align: center; }
.ds-empty-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; color: var(--ink-3); background: rgba(0, 0, 0, .045); }
.ds-empty-icon svg { width: 28px; height: 28px; }
.ds-empty h3 { font-size: 16px; font-weight: 650; margin: 4px 0 0; }
.ds-empty p { color: var(--ink-3); margin: 0; font-size: 14px; }

/* ── 수량 단추 ───────────────────────────────────────────────────────── */
.qty-step { flex: 0 0 auto; display: inline-grid; grid-template-columns: 32px minmax(64px, auto) 32px; align-items: center; height: 34px; border-radius: 11px;
    background: rgba(255, 255, 255, .8); box-shadow: inset 0 1px 0 #fff, 0 0 0 .5px var(--hair); user-select: none; }
.qty-step button { border: 0; background: transparent; height: 100%; color: var(--ink-2); padding: 0; border-radius: 10px; }
.qty-step button:hover:not(:disabled) { color: var(--navy); background: var(--navy-tint); }
.qty-step button:disabled { color: rgba(16, 24, 40, .22); cursor: not-allowed; }
.qty-step button svg { display: block; margin: 0 auto; }
.qty-step .v { text-align: center; font-weight: 650; font-size: 13.5px; font-variant-numeric: tabular-nums; padding: 0 4px; white-space: nowrap; }
.qty-step .v small { font-weight: 500; color: var(--ink-3); margin-left: 1px; }
.qty-step.sm { height: 30px; grid-template-columns: 28px minmax(56px, auto) 28px; }
svg.ico { vertical-align: -.18em; flex: 0 0 auto; }
.x svg.ico, button > svg.ico:only-child { vertical-align: middle; }

/* ── 진행 단계 (inc/component/order_flow) ──────────────────────────────── */
.cs .ofl::before { background: rgba(16, 24, 40, .1); height: 2px; border-radius: 2px; }
.cs .ofl-fill { background: linear-gradient(90deg, #2c65c8, var(--navy)); border-radius: 2px; }
.cs .ofl-dot { border: 2px solid rgba(16, 24, 40, .16); background: #fff; }
.cs .ofl-done .ofl-dot { background: var(--navy); border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 64, 152, .1); }
.cs .ofl-now .ofl-dot { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(0, 64, 152, .14); }
.cs .ofl-name { color: var(--ink-3); }
.cs .ofl-done .ofl-name { color: var(--ink-2); }
.cs .ofl-now .ofl-name { color: var(--navy); font-weight: 650; }

/* 표 → 카드 (좁은 화면, brand_css 의 .ds-table-cards 를 둥글게) */
@media (max-width: 767.98px) {
    .cs .ds-table-cards tr { border: 0 !important; border-radius: 16px !important; background: rgba(255, 255, 255, .86) !important; box-shadow: 0 0 0 .5px var(--hair), var(--shadow); }
}

/* ── 유리 줄 목록 (이어서 보기 · 진행 중 발주) ───────────────────────────── */
.g-group { border-radius: var(--r-lg); overflow: hidden; }
.g-row { display: flex; align-items: center; gap: 14px; padding: 15px 20px; position: relative; color: inherit; }
.g-row + .g-row::before { content: ""; position: absolute; top: 0; left: 70px; right: 0; height: 1px; background: var(--hair-2); }
a.g-row:hover { background: rgba(255, 255, 255, .42); }
.cs:not(.cs-ambient) a.g-row:hover { background: rgba(0, 0, 0, .02); }
.g-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.g-ic svg { width: 18px; height: 18px; }
.g-ic.recv { background: rgba(10, 102, 214, .1); color: var(--recv); }
.g-ic.logi { background: rgba(91, 79, 207, .1); color: var(--logi); }
.g-ic.ship { background: rgba(178, 94, 0, .1); color: var(--ship); }
.g-ic.done { background: rgba(29, 138, 58, .1); color: var(--done); }
.g-ic.draft { background: rgba(0, 64, 152, .08); color: var(--navy); }
.g-ic.warn { background: rgba(194, 90, 0, .1); color: var(--warn); }
.g-row .g-body { flex: 1; min-width: 0; }
.g-row .t { font-size: 15px; font-weight: 600; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-row .m { font-size: 13px; color: var(--ink-3); margin-top: 3px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.g-row .m .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }
.g-row .amt { font-size: 15.5px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-row .chev { color: var(--ink-4); flex: none; }
@media (max-width: 575.98px) { .g-row { padding: 13px 14px; gap: 12px; } .g-row + .g-row::before { left: 62px; } .g-row .amt { font-size: 14px; } }

/* ── 첫 화면 — 무엇을 발주할까요? ─────────────────────────────────────── */
.hero { max-width: 780px; margin: 0 auto; padding: clamp(24px, 9vh, 96px) 0 0; text-align: center; }
.hero .eyebrow { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 10px; letter-spacing: -.01em; }
.hero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; font-weight: 700; letter-spacing: -.04em; margin: 0; color: var(--ink); }
.hero .composer { margin-top: 34px; text-align: left; }
.chips { display: flex; justify-content: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.cs a.chip, .cs button.chip {
    display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 19px; border: 0;
    font-size: 14px; font-weight: 550; color: var(--ink-2);
    background: rgba(255, 255, 255, .56); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 0 0 .5px rgba(16, 24, 40, .06), 0 4px 14px -8px rgba(16, 24, 40, .18);
    transition: background .15s ease, transform .15s ease;
}
.cs a.chip:hover, .cs button.chip:hover { background: rgba(255, 255, 255, .86); color: var(--ink); transform: translateY(-1px); }
.chip svg { color: var(--ink-3); }
.home-sec { max-width: 860px; margin: 56px auto 0; }

/* ── AI 입력칸 — 떠 있는 유리 ─────────────────────────────────────────── */
.cs .ai-box {
    position: relative; border: 0; border-radius: 26px; padding: 18px 18px 12px;
    background: linear-gradient(150deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .56));
    -webkit-backdrop-filter: blur(30px) saturate(190%); backdrop-filter: blur(30px) saturate(190%);
    box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(255, 255, 255, .5), inset 0 0 18px rgba(255, 255, 255, .5),
        0 0 0 .5px rgba(16, 24, 40, .07), 0 2px 4px rgba(16, 24, 40, .04), 0 30px 60px -26px rgba(16, 24, 40, .3);
    transition: box-shadow .2s ease;
}
.cs .ai-box::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.25px; pointer-events: none;
    background: linear-gradient(160deg, #fff 0%, rgba(255, 255, 255, .45) 22%, rgba(255, 255, 255, .05) 48%, rgba(255, 255, 255, .05) 64%, rgba(255, 255, 255, .8) 92%, #fff 100%),
        linear-gradient(90deg, rgba(160, 190, 255, .35), rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0) 66%, rgba(255, 196, 228, .32));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.cs:not(.cs-ambient) .ai-box { background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 .5px var(--hair), 0 1px 2px rgba(16, 24, 40, .04), 0 16px 36px -22px rgba(16, 24, 40, .22); }
.cs:not(.cs-ambient) .ai-box::before { opacity: .4; }
.cs .ai-box:focus-within { box-shadow: inset 0 1px 0 #fff, 0 0 0 .5px rgba(0, 64, 152, .22), 0 30px 60px -26px rgba(16, 24, 40, .3), var(--ring); }
.cs .ai-box.drag { box-shadow: 0 0 0 2px rgba(0, 64, 152, .5), var(--ring); }
.cs .ai-box textarea { position: relative; z-index: 1; width: 100%; border: 0; outline: 0; resize: none; background: transparent; font-size: 17px; line-height: 1.55; letter-spacing: -.015em; color: var(--ink); min-height: 56px; max-height: 240px; }
.cs .ai-box textarea::placeholder { color: var(--ink-4); }
.cs .ai-bottom { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.cs .ai-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.cs .ai-attach {
    height: 34px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 17px; padding: 0 13px; margin: 0; cursor: pointer;
    font-size: 13px; font-weight: 550; color: var(--ink-2);
    background: rgba(255, 255, 255, .7); box-shadow: inset 0 1px 0 #fff, 0 0 0 .5px var(--hair);
}
.cs .ai-attach:hover { background: #fff; color: var(--ink); }
.cs .ai-hint { font-size: 12.5px; color: var(--ink-4); }
.cs .ai-send {
    border: 0; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; color: #fff; display: grid; place-items: center;
    background: var(--navy-grad); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(0, 0, 0, .14), 0 8px 18px -8px rgba(0, 64, 152, .6);
    transition: transform .15s ease, filter .15s ease;
}
.cs .ai-send:hover { filter: brightness(1.08); }
.cs .ai-send:active { transform: scale(.94); }
.cs .ai-send:disabled { background: #c7cfdb; box-shadow: none; }
.cs .ai-file { height: 28px; border-radius: 14px; background: rgba(0, 64, 152, .07); color: var(--navy); }

/* ── 반응 · 접근성 ───────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .cs-head { margin: 4px 0 16px; }
    .cs-head h1, .cs-h1, .ds-page-title { font-size: 25px; }
    .hero { padding-top: 22px; }
    .hero .composer { margin-top: 24px; }
    .home-sec { margin-top: 36px; }
    .cs .ai-box { border-radius: 22px; padding: 14px 14px 10px; }
    .cs .ai-box textarea { font-size: 16px; }
    .cs .ai-hint { display: none; }
    .cs .btn { min-height: 44px; }
    .cs .btn-sm { min-height: 38px; }
    .cs .form-control, .cs .form-select { min-height: 44px; font-size: 16px; }
}
