/* 마이오다 — 시안 A (2026-10-27) 색·배치 */
:root {
	--bg: #F4F6F6; --surface: #FFFFFF; --ink: #1D2B2E; --ink2: #4A5759; --mut: #5E6B6D; --dim: #8A9799;
	--line: #E2E7E7; --line2: #DCE2E2; --line3: #EDF1F1; --tint: #F3F9F9; --field: #F8FAFA;
	--teal: #0E7C7B; --teal-d: #0B6665; --teal-s: #E2EFEF; --teal-l: #9FCBCA;
	--dark: #133432; --dark2: #0F3B3A;
	--amber: #85570A; --amber-s: #FBF0DA; --orange: #8A4A0E; --orange-s: #FBE9D7; --purple: #6A3A82; --purple-s: #EFE5F5;
	--blue: #22539E; --blue-s: #E6EEFA; --green: #2A6A42; --green-s: #DFF0E5; --red: #A1302A; --red-s: #F9E3E1;
	--r: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--teal-d); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { letter-spacing: -0.02em; }
.muted { color: var(--mut); }
.small { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.ell { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.right { text-align: right; }
.hide { display: none !important; }
[hidden] { display: none !important; }

/* 틀 */
.app { min-height: 100vh; display: flex; }
.side { flex: 0 0 248px; background: var(--surface); border-right: 1px solid var(--line); padding: 22px 14px 24px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { width: 100%; max-width: 1200px; padding: 28px clamp(16px, 3.5%, 36px) 48px; display: flex; flex-direction: column; gap: 22px; }
.content.wide { max-width: 1280px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: var(--ink); text-decoration: none; }
.brand-ic { width: 32px; height: 32px; border-radius: 8px; background: var(--teal); color: #fff; display: grid; place-items: center; flex: none; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--ink2); text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--tint); }
.nav a.on { background: var(--teal-s); color: var(--teal-d); font-weight: 700; }
.nav a .cnt { margin-left: auto; background: var(--teal); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
.side-group { display: flex; flex-direction: column; gap: 2px; }
.side-label { padding: 0 12px 4px; font-size: 12px; font-weight: 700; color: var(--mut); }
.side-link { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.side-link:hover { background: var(--tint); }
.side-link.accent { color: var(--teal-d); font-weight: 700; }
.side-link.muted { color: var(--mut); font-weight: 400; font-size: 13px; }
.side-tag { flex: none; font-size: 11px; font-weight: 700; }
.t-amber { color: var(--amber); } .t-red { color: var(--red); }
.side-ic { color: var(--mut); display: flex; }
.side-box { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 12px; background: var(--bg); }
.side-box .big { font-size: 20px; } .side-box small { font-size: 13px; font-weight: 500; color: var(--mut); margin-left: 2px; }
.side-box .btn { margin-top: 6px; }
.back-hub { display: flex; align-items: center; gap: 6px; padding: 0 8px; color: var(--mut); text-decoration: none; font-size: 13px; }
.shop-head { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.shop-title { display: flex; flex-direction: column; min-width: 0; }
.shop-title b { font-size: 16px; }
.mark { flex: none; width: 40px; height: 40px; border-radius: 10px; display: inline-grid; place-items: center; font-weight: 700; overflow: hidden; }
.mark.sm { width: 26px; height: 26px; border-radius: 7px; font-size: 12px; }
.mark.lg { width: 56px; height: 56px; border-radius: 14px; font-size: 22px; }
.mark.logo { background: #fff; border: 1px solid var(--line); }
.mark.logo img { width: 100%; height: 100%; object-fit: cover; }

/* 관리자 사이드바 */
.side.dark { background: var(--dark); color: #fff; border-right: 0; }
.side.dark .nav a { color: #C4DAD8; }
.side.dark .nav a:hover { background: var(--dark2); }
.side.dark .nav a.on { background: var(--teal); color: #fff; }
.side.dark .nav a .cnt { background: #fff; color: var(--dark); }
.side.dark .shop-title b { color: #fff; }
.admin-head { display: flex; flex-direction: column; gap: 10px; }
.admin-label { padding: 0 8px; font-size: 12px; font-weight: 700; color: var(--teal-l); letter-spacing: .04em; }
.side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.side-bottom a { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 8px; color: #A9C0BC; text-decoration: none; font-size: 13px; }
.side-bottom a:hover { background: var(--dark2); color: #fff; }

/* 위 막대 */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px clamp(16px, 3.5%, 36px); background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.search { flex: 1 1 240px; min-width: 0; max-width: 420px; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 8px; background: var(--field); color: var(--mut); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink2); }
.icon-btn .dot { position: absolute; top: 10px; right: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 6px; border: 1px solid var(--line); border-radius: 22px; cursor: pointer; }
.usermenu summary::-webkit-details-marker { display: none; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--teal-s); color: var(--teal-d); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.uname { font-weight: 500; }
.usermenu .menu { position: absolute; right: 0; top: 52px; width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(19, 52, 50, .12); padding: 8px; display: flex; flex-direction: column; z-index: 30; }
.menu-head { display: flex; flex-direction: column; padding: 8px 10px 10px; border-bottom: 1px solid var(--line3); margin-bottom: 4px; }
.usermenu .menu a, .usermenu .menu button { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px; border-radius: 8px; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; width: 100%; text-align: left; }
.usermenu .menu a:hover, .usermenu .menu button:hover { background: var(--tint); }
.ticker { display: flex; align-items: center; gap: 10px; padding: 10px clamp(16px, 3.5%, 36px); background: var(--tint); border-bottom: 1px solid var(--line3); color: var(--ink); text-decoration: none; font-size: 13px; }
.preview-bar { padding: 10px clamp(16px, 3.5%, 36px); background: var(--amber-s); color: var(--amber); font-size: 13px; font-weight: 500; }

/* 쪽 머리 */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.page-head h1 { margin: 0; font-size: 24px; font-weight: 700; }
.page-head .sub { margin: 2px 0 0; color: var(--mut); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
h2.sec { margin: 0; font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
h2.sec .cnt { color: var(--mut); font-weight: 500; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sec-head a { font-weight: 700; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line2); background: #fff; color: var(--ink); font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #C9D2D2; background: var(--field); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 700; }
.btn.primary:hover { background: var(--teal-d); border-color: var(--teal-d); }
.btn.dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: var(--red-s); border-color: #E8BDB8; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn.xs { min-height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 6px; }
.btn.block { width: 100%; }
.btn:disabled, .btn.disabled { opacity: .45; pointer-events: none; }
.link-btn { font-size: 12.5px; font-weight: 700; color: var(--teal-d); text-decoration: none; white-space: nowrap; }
.link-btn:hover { text-decoration: underline; }

/* 배지 */
.badge { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 5px; font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1.6; }
.b-teal { background: var(--teal-s); color: var(--teal-d); } .b-purple { background: var(--purple-s); color: var(--purple); } .b-blue { background: var(--blue-s); color: var(--blue); }
.b-amber { background: var(--amber-s); color: var(--amber); } .b-orange { background: var(--orange-s); color: var(--orange); } .b-green { background: var(--green-s); color: var(--green); }
.b-red { background: var(--red-s); color: var(--red); } .b-gray { background: #EEF1F2; color: var(--mut); }

/* 카드 · 타일 */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.card.pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line3); }
.card-head h2, .card-head h3 { margin: 0; font-size: 16px; }
.card-body { padding: 18px 20px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
a.tile:hover { border-color: var(--teal-l); }
.tile-label { font-size: 13px; color: var(--mut); }
.tile-value { font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.tile-value small { margin-left: 3px; font-size: 14px; font-weight: 500; color: var(--mut); }
.tile.warn .tile-value { color: var(--amber); } .tile.teal .tile-value { color: var(--teal-d); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; }
.split > .grow { flex: 999 1 520px; min-width: 0; }
.split > .side-col { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* 발주 시스템 카드 (본사이트) */
.sys { display: flex; flex-direction: column; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.sys-top { display: flex; align-items: center; gap: 12px; }
.sys-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sys-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sys-meta { display: flex; gap: 6px; font-size: 12px; align-items: center; flex-wrap: wrap; }
.sys-stats { display: flex; gap: 18px; padding-top: 12px; border-top: 1px solid var(--line3); font-size: 13px; }
.sys-stats div { display: flex; flex-direction: column; }
.sys-stats b { font-size: 15px; }
.sys-actions { display: flex; gap: 8px; }
.sys-actions .btn { flex: 1; }

/* 표 */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 12.5px; font-weight: 500; color: var(--mut); padding: 10px 14px; background: var(--field); border-bottom: 1px solid var(--line3); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line3); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.dim td { color: var(--dim); }
.tbl tbody tr:hover td { background: #FAFCFC; }
.tbl .ck { width: 36px; }
.tbl input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--teal); }
.tbl .items { max-width: 320px; min-width: 180px; }
.tbl td .badge { white-space: nowrap; }
.tbl .items .ell { display: block; }
.amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plus { color: var(--teal-d); } .minus { color: var(--red); }
.inv { white-space: nowrap; }

/* 탭 · 필터 */
.tabs { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--line3); overflow-x: auto; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 12px; color: var(--mut); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--teal-d); border-bottom-color: var(--teal); font-weight: 700; }
.tabs a .badge { font-size: 11px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 20px; background: var(--tint); border-bottom: 1px solid var(--line3); }
.filters .input, .filters select { height: 38px; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; background: #fff; }
.seg a, .seg button { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; color: var(--ink2); text-decoration: none; border: 0; background: none; cursor: pointer; font-size: 13px; }
.seg a + a { border-left: 1px solid var(--line2); }
.seg a.on { background: var(--teal-s); color: var(--teal-d); font-weight: 700; }
.bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 20px; border-bottom: 1px solid var(--line3); background: #fff; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line3); }
.pgs { display: flex; gap: 4px; }
.pg { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--ink2); text-decoration: none; }
.pg.on { background: var(--teal); color: #fff; font-weight: 700; }
.pg.dis { color: #C9D2D2; }

/* 입력 */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-sec { display: flex; flex-direction: column; gap: 14px; }
.form-sec + .form-sec { padding-top: 18px; border-top: 1px solid var(--line3); }
.form-sec h3 { margin: 0; font-size: 15px; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .lbl { font-size: 13px; font-weight: 500; color: var(--ink2); }
.req { color: var(--teal); margin-left: 2px; }
.hint { font-size: 12.5px; color: var(--mut); margin: 0; }
.input, select.input, textarea.input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 8px; background: #fff; outline: none; }
textarea.input { resize: vertical; min-height: 96px; }
.input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 124, 123, .12); }
.input.sm { min-height: 36px; padding: 6px 10px; font-size: 13px; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.suffix { display: flex; align-items: center; border: 1px solid var(--line2); border-radius: 8px; background: #fff; overflow: hidden; }
.suffix .input { border: 0; border-radius: 0; }
.suffix span { padding: 0 12px; color: var(--mut); background: var(--field); align-self: stretch; display: flex; align-items: center; border-left: 1px solid var(--line2); white-space: nowrap; }
.prefix span { border-left: 0; border-right: 1px solid var(--line2); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 8px; background: #fff; cursor: pointer; font-weight: 500; }
.choice input:checked + span { border-color: var(--teal); background: var(--teal-s); color: var(--teal-d); font-weight: 700; }
.choice input:focus-visible + span { outline: 2px solid var(--teal); }
.choice input:disabled + span { opacity: .45; cursor: default; }
.cards-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; }
.cards-choice label { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line2); border-radius: 12px; background: #fff; cursor: pointer; }
.cards-choice input { position: absolute; opacity: 0; }
.cards-choice label:has(input:checked) { border-color: var(--teal); background: var(--tint); box-shadow: 0 0 0 1px var(--teal) inset; }
.cards-choice b { font-size: 15px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--teal); }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding-top: 4px; }
.file-box { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px dashed var(--line2); border-radius: 10px; background: var(--field); flex-wrap: wrap; }
.file-box .doc-name { flex: 1; min-width: 160px; }

/* 알림 · 빈 상태 */
.flashes { display: flex; flex-direction: column; gap: 8px; }
.flash { padding: 12px 16px; border-radius: 10px; font-weight: 500; }
.f-ok { background: var(--teal-s); color: var(--teal-d); }
.f-err { background: var(--red-s); color: var(--red); }
.f-warn { background: var(--amber-s); color: var(--amber); }
.alert { padding: 12px 16px; border-radius: 10px; background: var(--amber-s); color: var(--amber); font-size: 13.5px; }
.alert.info { background: var(--tint); color: var(--teal-d); border: 1px solid var(--line3); }
.alert.err { background: var(--red-s); color: var(--red); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 20px; color: var(--mut); text-align: center; }
.empty p { margin: 0; }
.empty svg { color: #C4DAD8; }

/* 공지 피드 */
.feed { display: flex; flex-direction: column; }
.feed a { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--line3); color: var(--ink); text-decoration: none; }
.feed a:last-child { border-bottom: 0; }
.feed a:hover { background: #FAFCFC; }
.feed .new { color: var(--teal); font-size: 11px; font-weight: 700; }
.feed time { color: var(--mut); font-size: 12.5px; white-space: nowrap; }

/* 상품 · 발주서 */
.cat-bar { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px; background: #fff; color: var(--ink2); text-decoration: none; font-size: 13px; font-weight: 500; }
.chip.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 12px; align-content: start; }
.prod { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.prod-img { aspect-ratio: 4 / 3; background: var(--bg); display: grid; place-items: center; color: #C4DAD8; overflow: hidden; position: relative; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-img .badge { position: absolute; left: 8px; top: 8px; }
.prod-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.prod-name { font-weight: 700; }
.prod-spec { font-size: 12.5px; color: var(--mut); }
.prod-price { font-size: 17px; font-weight: 700; margin-top: auto; }
.prod-price small { font-size: 12.5px; color: var(--mut); font-weight: 500; }
.prod-ctl { display: flex; gap: 6px; align-items: center; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; background: #fff; }
.qty button { width: 34px; height: 36px; border: 0; background: var(--field); cursor: pointer; font-size: 16px; color: var(--ink2); }
.qty input { width: 48px; height: 36px; border: 0; text-align: center; font-variant-numeric: tabular-nums; outline: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.prod-ctl .btn { flex: 1; min-height: 38px; }
.gg { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--mut); }
.bar { height: 6px; border-radius: 3px; background: var(--line3); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--teal); }
.orderbox { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.orderbox h2 { margin: 0; font-size: 17px; display: flex; justify-content: space-between; align-items: center; }
.ob-items { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; }
.ob-item { display: flex; gap: 10px; align-items: flex-start; }
.ob-item .ob-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.ob-item .ob-x { border: 0; background: none; color: var(--dim); cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 4px; }
.ob-sum { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line3); font-size: 13.5px; }
.ob-sum div { display: flex; justify-content: space-between; }
.ob-sum .total { font-size: 17px; font-weight: 700; padding-top: 6px; }
.ob-sum .total b { color: var(--teal-d); }

/* 로그인·가입 */
body.auth { background: var(--bg); }
.auth-wrap { min-height: 100vh; display: flex; }
.auth-brand { flex: 1 1 420px; background: var(--dark); color: #fff; padding: 48px clamp(24px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.auth-brand .brand { color: #fff; padding: 0; }
.auth-brand h1 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.25; margin: 0 0 16px; }
.auth-brand p { color: #C4DAD8; margin: 0; max-width: 30em; }
.auth-brand ul { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 12px; }
.auth-brand li { display: flex; gap: 10px; align-items: center; color: #E2EFEF; }
.auth-brand li svg { color: var(--teal-l); flex: none; }
.auth-panel { flex: 1 1 520px; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.auth-card.wide { max-width: 760px; }
.auth-card h2 { margin: 0; font-size: 26px; }
.steps { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--mut); flex-wrap: wrap; }
.steps span { display: inline-flex; align-items: center; gap: 6px; }
.steps i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--line3); font-size: 12px; font-weight: 700; }
.steps .on { color: var(--teal-d); font-weight: 700; } .steps .on i { background: var(--teal); color: #fff; }

/* 보기 창 */
dialog.modal { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: 0 24px 64px rgba(19, 52, 50, .25); }
dialog.modal::backdrop { background: rgba(19, 52, 50, .45); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line3); }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-body { padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line3); }
.x-btn { border: 0; background: none; cursor: pointer; color: var(--mut); padding: 4px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--mut); white-space: nowrap; }
.kv dd { margin: 0; min-width: 0; }
.notice-body { white-space: pre-wrap; line-height: 1.75; }
.foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 18px clamp(16px, 3.5%, 36px); color: var(--dim); font-size: 12px; border-top: 1px solid var(--line); }
.foot a { color: var(--dim); text-decoration: none; }

@media (max-width: 900px) {
	.app { flex-direction: column; }
	.side { position: static; height: auto; flex: none; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
	.side .nav { flex-direction: row; flex-wrap: wrap; width: 100%; order: 5; }
	.side .nav a { min-height: 40px; padding: 0 10px; }
	.side .nav a span { font-size: 13px; }
	.side-group, .side-bottom, .side .side-box { display: none; }
	.topbar { position: static; padding: 10px 12px; gap: 8px; }
	.search { flex: 1 1 0; max-width: none; }
	.uname { display: none; }
	.usermenu summary { padding: 0 6px; }
	.usermenu .menu { right: -4px; width: min(230px, calc(100vw - 24px)); }
	.page-head h1 { font-size: 21px; }
	.page-head .actions { width: 100%; }
	.content { padding-left: 14px; padding-right: 14px; }
	.auth-brand { display: none; }
	.orderbox { position: static; }
	.content { padding-top: 20px; }
}
@media print {
	.side, .topbar, .foot, .no-print, .flashes { display: none !important; }
	body { background: #fff; }
	.content { padding: 0; max-width: none; }
	.card { border: 0; }
}

/* 관리자 주문표 — 한 화면(1400px)에 송장 칸까지 들어오게 */
.tbl-orders td, .tbl-orders th { padding-left: 10px; padding-right: 10px; }
.tbl-orders .items { max-width: 170px; min-width: 120px; }
.tbl-orders select.input.sm { padding-left: 6px; padding-right: 2px; }

.shop-foot { margin-top: 0; color: var(--mut); border-top: 1px solid var(--line); background: #fff; }
.shop-foot b { color: var(--ink2); }
