/* 직원 화면 공통 스타일. 색은 여기 :root 한곳에서만 정합니다. */
:root {
    --bg: #f5f4f1;
    --card: #ffffff;
    --line: #e6e3de;
    --line-strong: #cfcac2;
    --text: #1f1d1a;
    --muted: #5f5b55;
    --accent: #9b2c3f;
    --accent-hover: #7a2032;
    --accent-soft: #f7e9ec;
    --accent-text: #ffffff;
    --primary: var(--accent);          /* 예전 이름 (스크립트·인라인 스타일 호환) */
    --primary-text: var(--accent-text);
    --hover-bg: #f1efeb;
    --ok-bg: #e7f2ea; --ok: #2f6b3f;
    --info-bg: #e6eef8; --info: #1d4f91;
    --warn-bg: #fbeedc; --warn: #8a4b08;
    --err-bg: #fbe9e7; --err: #b3261e;
    --gray-bg: #eeece8; --gray: #5f5b55;
    --overdue: #fdeceb;
    --radius-card: 14px;
    --radius-ctl: 10px;
    --shadow: 0 1px 2px rgba(31, 29, 26, .06), 0 4px 16px rgba(31, 29, 26, .05);
    --font: "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg); }
a { color: var(--accent); }
.wrap { display: flex; min-height: 100vh; }
.ico { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }

/* 사이드바 (흰 바탕, 현재 메뉴는 강조 연한 배경) */
.sidebar { width: 228px; flex-shrink: 0; background: var(--card); color: var(--text); border-right: 1px solid var(--line); padding: 12px 0; transition: width .15s; }
.sidebar a { color: var(--text); text-decoration: none; }
.sb-top { display: flex; align-items: center; gap: 8px; padding: 0 12px 10px; }
.sb-toggle { background: none; border: 1px solid var(--line); color: var(--muted); font-size: 18px; width: 36px; height: 36px; border-radius: var(--radius-ctl); cursor: pointer; }
.sb-brand { font-weight: 700; white-space: nowrap; color: var(--accent); }
.sb-user { padding: 10px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.6; }
.sb-company { color: var(--muted); }
.sb-links a { text-decoration: underline; color: var(--muted); }
.sb-menu { padding: 6px 8px 0; }
.sb-group { padding: 12px 10px 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
.sb-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin: 1px 0; white-space: nowrap; border-radius: var(--radius-ctl); transition: background .12s, color .12s; }
.sb-menu a i { font-style: normal; width: 18px; display: inline-flex; justify-content: center; color: var(--muted); }
.sb-menu a:hover { background: var(--hover-bg); }
.sb-menu a.active { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.sb-menu a.active i { color: var(--accent); }
.sb-menu a.todo { color: #8d877f; cursor: not-allowed; }
.sb-menu a.todo:hover { background: none; }
.sb-toggle:hover { background: var(--hover-bg); color: var(--text); }
.sb-links a:hover, .sb-links .linklike:hover { color: var(--accent); }
/* 키보드(Tab)로 이동할 때도 위치가 보이게 */
.sidebar a:focus-visible, .sb-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
html.sb-collapsed .sidebar { width: 62px; }
html.sb-collapsed .sb-brand, html.sb-collapsed .sb-user, html.sb-collapsed .sb-group, html.sb-collapsed .sb-menu a span { display: none; }

/* 본문 */
.main { flex: 1; min-width: 0; padding: 24px 28px 40px; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-title h1 { font-size: 22px; font-weight: 700; margin: 0; }
.path { color: var(--muted); font-size: 13px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px; }
.card h2 { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.card h2 + .grid, .card .grid + h2 { margin-top: 12px; }
.alert { padding: 11px 14px; border-radius: var(--radius-ctl); margin-bottom: 12px; }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.err { background: var(--err-bg); color: var(--err); }
.hint { color: var(--muted); font-size: 13px; }
.red { color: var(--err); font-weight: 700; }

/* 입력 */
input[type=text], input[type=tel], input[type=number], input[type=date], input[type=password], input[type=email], input[type=search], input[type=datetime-local], select, textarea {
    font: inherit; min-height: 40px; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-ctl); background: #fff; color: var(--text); max-width: 100%;
}
textarea { width: 100%; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 16px; }
.grid label, .grid .field, label.wide { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; color: var(--muted); }
.grid label input, .grid label select { color: var(--text); font-weight: 400; }
.grid .wide, label.wide { grid-column: 1 / -1; }
input.wide { width: 100%; margin-top: 8px; }
.inline { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--text); }
.chk { display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; color: var(--text); font-size: 15px; flex-direction: row !important; }
.chk input { accent-color: var(--accent); width: 18px; height: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 500; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-ctl); background: #fff; color: var(--text); cursor: pointer; text-decoration: none; }
.btn { white-space: nowrap; }
.todo-list li > :first-child { flex: 1; min-width: 0; }
.btn.sm { min-height: 32px; padding: 4px 11px; font-size: 13px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.danger { color: var(--err); border-color: #e5b5b0; }
.btn { transition: background .12s, border-color .12s, box-shadow .12s; }
.btn:hover { background: var(--hover-bg); border-color: #a9a39a; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger:hover { background: var(--err-bg); border-color: var(--err); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:disabled, .btn:disabled:hover { opacity: .5; cursor: not-allowed; background: #fff; transform: none; }
.btn.primary:disabled, .btn.primary:disabled:hover { background: var(--accent); }
.actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin: 10px 0 14px; flex-wrap: wrap; }
.actions form { margin: 0; }
.total { text-align: right; font-size: 16px; }
.big { font-size: 20px; color: var(--text); }

/* 검색 */
.search .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.search .lbl { font-size: 13px; font-weight: 500; color: var(--muted); min-width: 56px; }
.search .grow { flex: 1; }
.summary { margin: 4px 2px 10px; }

/* 표 */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { background: #faf9f7; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.list tbody tr[data-href] { cursor: pointer; }
table.list tbody tr[data-href]:hover { background: var(--hover-bg); }
tr.overdue { background: var(--overdue); }
tr.canceled td { color: #8d877f; }
td.empty { text-align: center; color: var(--muted); padding: 28px; }
table.items input.f-qty { width: 80px; }
table.items input.f-memo { width: 140px; }
.paging { display: flex; gap: 4px; justify-content: center; margin: 14px 0; }
.paging a { min-width: 36px; padding: 6px 10px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius-ctl); text-decoration: none; background: #fff; }
.paging a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.paging a:not(.on):hover { background: var(--hover-bg); }

/* 상세 */
dl.info { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0; }
dl.info dt { color: var(--muted); }
dl.info dd { margin: 0; }
dl.money { margin-top: 12px; max-width: 420px; margin-left: auto; font-variant-numeric: tabular-nums; }
dl.money dd { text-align: right; }

/* 상태 칩 */
.badge { display: inline-block; font-size: 12px; font-weight: 700; line-height: 1.4; padding: 2px 9px; border-radius: 999px; vertical-align: middle; background: var(--gray-bg); color: var(--gray); white-space: nowrap; }
.badge.RECEIVED { background: var(--info-bg); color: var(--info); }
.badge.DONE { background: var(--ok-bg); color: var(--ok); }
.badge.CANCEL { background: var(--gray-bg); color: var(--gray); }

/* 휴대폰 */
@media (max-width: 760px) {
    .wrap { flex-direction: column; }
    .sidebar, html.sb-collapsed .sidebar { width: 100%; padding: 8px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .sb-user { display: none; }
    .sb-group { display: none; }
    .sb-menu { display: flex; overflow-x: auto; gap: 2px; }
    .sb-menu a { min-height: 44px; }
    .sb-menu a.todo { display: none; }
    html.sb-collapsed .sb-menu { display: none; }
    .main { padding: 14px 12px 30px; }
    .btn { min-height: 44px; }
    .btn.sm { min-height: 36px; }
    input[type=text], input[type=tel], input[type=number], input[type=date], select { min-height: 44px; font-size: 16px; }
    /* 목록 표 → 카드형 */
    table.cards { background: transparent; }
    table.cards thead { display: none; }
    table.cards, table.cards tbody, table.cards tr, table.cards td { display: block; width: 100%; }
    table.cards tr { border: 1px solid var(--line); border-radius: var(--radius-card); margin-bottom: 10px; padding: 8px 4px; background: #fff; box-shadow: var(--shadow); }
    table.cards tr.overdue { border: 2px solid var(--err); background: var(--overdue); }
    table.cards td { border: 0; padding: 3px 12px; text-align: left; }
    table.cards td[data-label]::before { content: attr(data-label); display: inline-block; width: 80px; color: var(--muted); font-size: 12px; }
}

/* 날짜별 일정 (SCR-ORD-04) */
.tabs { display: flex; gap: 4px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 16px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.day-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
tr.subtotal td { background: #faf9f7; font-weight: 700; }
.mat { margin-bottom: 10px; }
.mobile-only { display: none; }
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lane h2 { font-size: 16px; margin: 4px 0 8px; }
.rcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; transition: box-shadow .12s, border-color .12s; }
.rcard:hover { border-color: #a9a39a; box-shadow: var(--shadow); }
.rcard .rc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rcard .rc-right { margin-left: auto; font-size: 13px; }
.rcard form { margin-top: 6px; text-align: right; }
.rcard.done { opacity: .55; }
.rcard.overdue { background: var(--overdue); }
.rcard.soon { border: 2px solid var(--err); }
.rc-memo { margin-top: 6px; padding: 5px 9px; background: var(--info-bg); color: var(--info); border-radius: 8px; font-size: 13px; }
@media (max-width: 760px) {
    .mobile-only { display: flex; }
    .lanes { grid-template-columns: 1fr; }
    .lane { display: none; }
    .lane.show { display: block; }
}

/* 인쇄 화면 (A4 세로) */
body.print { background: #fff; padding: 16px; max-width: 800px; margin: 0 auto; }
.p-head { border-bottom: 2px solid #333; margin-bottom: 10px; padding-bottom: 6px; }
.p-head h1 { font-size: 20px; margin: 0 0 4px; }
body.print h2 { font-size: 15px; margin: 14px 0 6px; }
.p-table { border: 1px solid #999; }
.p-table th, .p-table td { border: 1px solid #bbb; padding: 4px 6px; }
.chkcol { width: 40px; text-align: center; }
.p-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
body.print p { margin: 3px 0; }
@media print {
    @page { size: A4 portrait; margin: 12mm; }
    .no-print { display: none !important; }
    body.print { padding: 0; }
}
/* 로그인 (SCR-LGN-01) */
body.login-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; }
.login-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; }
.login-card h1 { margin: 0; font-size: 22px; color: var(--accent); }
.login-card .hint { margin: 0; }
.login-card label.wide input, .login-card label.wide select { width: 100%; font-size: 16px; min-height: 46px; }
.login-btn { width: 100%; min-height: 48px; font-size: 16px; }
.logout-under { margin-top: 8px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.sb-small { font-size: 12px; margin-left: 6px; text-decoration: underline; }
.row-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.row-actions form { margin: 0; }
/* 홈 (SCR-HOM-01) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 16px 18px; color: var(--text); text-decoration: none; transition: border-color .12s; }
a.tile:hover { border-color: var(--accent); }
.tile b { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.home-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
.home-board { grid-column: 1; grid-row: 1; }
.home-todo { grid-column: 2; grid-row: 1; }
.home-board h3 { font-size: 14px; color: var(--muted); margin: 4px 0 6px; }
.todo-list { list-style: none; padding: 0; margin: 0; }
.todo-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.todo-list li:last-child { border-bottom: 0; }
.rcard.small { padding: 10px 12px; }
@media (max-width: 760px) {
    .tiles { grid-template-columns: 1fr 1fr; }
    .tile b { font-size: 20px; }
    .home-grid { grid-template-columns: 1fr; }
    .home-board, .home-todo { grid-column: 1; grid-row: auto; }
}
/* 주방 보드 (SCR-ORD-05): 어두운 바탕, 큰 글씨 */
body.kitchen { background: #17130f; color: #f4ede4; font-size: 20px; margin: 0; height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.k-head { display: flex; align-items: center; gap: 24px; padding: 10px 20px; border-bottom: 1px solid #3a3027; }
.k-title { font-size: 24px; font-weight: 700; }
.k-clock { font-size: 40px; font-weight: 700; margin-left: auto; font-variant-numeric: tabular-nums; }
.k-status { font-size: 15px; color: #b9a690; }
.k-status.fail { color: #ff8a80; font-weight: 700; }
.k-body { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; padding: 12px 16px; min-height: 0; }
.k-lane { display: flex; flex-direction: column; min-height: 0; }
.k-lane[hidden] { display: none; }
.k-lane h2 { font-size: 22px; margin: 0 0 8px; color: #f0b8c2; }
.k-cards { flex: 1; overflow: hidden; min-height: 0; }
.k-card { background: #2a221b; border: 2px solid #3a3027; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.k-card.overdue { background: #5a1d1a; border-color: #ff8a80; }
.k-card.soon { border-color: #ff5a4e; }
.k-card.made { border-color: #4caf50; opacity: .8; }
.k-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.k-time { font-size: 30px; font-variant-numeric: tabular-nums; }
.k-cust { font-size: 24px; }
.k-type { font-size: 16px; padding: 2px 10px; border-radius: 999px; background: #3a3027; }
.k-tag { margin-left: auto; color: #ff8a80; font-weight: 700; }
.k-items { font-size: 24px; margin: 6px 0; line-height: 1.4; }
.k-memo { background: #f6d34a; color: #1f1d1a; border-radius: 8px; padding: 4px 10px; margin: 4px 0; font-weight: 700; }
.k-btn { font: inherit; font-size: 20px; min-height: 48px; padding: 8px 18px; border-radius: 12px; border: 0; background: #f0b8c2; color: #17130f; cursor: pointer; margin-top: 6px; }
.k-btn:hover { background: #f7d3d9; }
.k-btn.ghost { background: transparent; color: #cdbca8; border: 1px solid #6b5a4a; font-size: 16px; min-height: 40px; padding: 4px 12px; }
.k-made { color: #7ed37f; font-weight: 700; margin-top: 6px; }
.k-empty { color: #a8998a; }
.k-foot { padding: 6px 20px; color: #a8998a; font-size: 15px; }
.k-next h3 { font-size: 18px; color: #cdbca8; margin: 12px 0 6px; }
.k-prod { margin-bottom: 8px; }
.k-big { font-size: 28px; font-weight: 700; color: #f7d3d9; }
.k-sub { color: #cdbca8; font-size: 18px; }
.k-rice { display: flex; gap: 24px; flex-wrap: wrap; }
.k-late { color: #ffb74d; font-weight: 700; }
.badge.made { background: var(--ok-bg); color: var(--ok); }
/* 상품·가격 관리 (SCR-PRD-01) */
.prd-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.search-mini { display: flex; gap: 6px; margin: 8px 0; }
.search-mini input { flex: 1; min-width: 0; }
.prd-items { list-style: none; margin: 0; padding: 0; }
.prd-items li { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); border-radius: 8px; }
.prd-items li a { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 8px; color: var(--text); text-decoration: none; }
.prd-items li:hover { background: var(--hover-bg); }
.prd-items li.on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); font-weight: 700; }
.prd-items li.on a { color: var(--accent); }
.prd-move { display: flex; gap: 2px; }
.prd-move form { margin: 0; }
.sm-text { font-size: 12px; }
.prd-title { font-size: 20px; margin: 0 0 8px; }
tr.future td { background: var(--warn-bg); }
tr.future td:first-child { color: var(--warn); font-weight: 700; }
.add-unit { margin-top: 10px; }
.add-unit summary { list-style: none; display: inline-flex; }
.add-unit form { margin-top: 10px; }
.preview { background: #faf9f7; border-radius: var(--radius-ctl); padding: 8px 10px; }
.preview:empty { display: none; }
.dlg { border: 1px solid var(--line); border-radius: 16px; padding: 20px; max-width: 520px; width: calc(100% - 32px); box-shadow: var(--shadow); }
.dlg::backdrop { background: rgba(31, 29, 26, .4); }
.dlg h2 { margin-top: 0; font-size: 18px; }
@media (max-width: 760px) {
    .prd-wrap { grid-template-columns: 1fr; }
    .prd-wrap.has-detail .prd-list { display: none; }
}
/* 주문 남은 기능: 결제·환불·구성·수정 표시 */
tr.refund-row td { color: var(--err); }
.cust-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.comp-list { margin-top: 4px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.comp-list .comp { background: #faf9f7; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.comp-list .comp-qty { width: 56px; min-height: 30px; padding: 2px 6px; }
.comp-list .comp-qty[readonly] { border-color: transparent; background: transparent; }
.f-comps.editing .comp { outline: 1px dashed var(--accent); }
.changed { background: #fff3b0 !important; }
small.was { display: block; color: var(--muted); font-size: 11px; }
small.was:empty { display: none; }
tr.deleted td { text-decoration: line-through; color: #8d877f; }
tr.deleted td:last-child { text-decoration: none; }
tr.added td:first-child { box-shadow: inset 3px 0 0 var(--ok); }
dialog .info.money { margin: 8px 0; }
dialog h3 { font-size: 15px; margin: 12px 0 6px; }
/* 매출·정산 (SCR-SAL-01) */
.alert.warn { background: var(--warn-bg); color: var(--warn); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
tr.noupload td { color: var(--warn); }
tr.clickable { cursor: pointer; }
tr.clickable:hover { background: var(--hover-bg); }
/* POS 매출 업로드 (SCR-SAL-02) */
.drop { border: 2px dashed var(--line-strong); border-radius: var(--radius-card); text-align: center; padding: 28px 16px; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.ok-line { color: var(--ok); margin: 4px 0; }
@media (max-width: 760px) { .pc-only { display: none !important; } }
/* 내용만 바꿔 끼울 때 위쪽 진행 줄 */
.ajax-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 1000; transition: width .4s ease, opacity .2s; opacity: 0; }
.ajax-bar.on { width: 70%; opacity: 1; }
/* 당일 주문 (설계 v1.4) */
.badge.sameday { background: var(--ok-bg); color: var(--ok); }
tr.sameday-row td { background: #f3f9f4; }
.k-sameday { background: #7ed37f; color: #17130f; border-radius: 999px; padding: 1px 10px; font-size: 16px; font-weight: 700; }
.k-card.new { animation: kblink 1s step-start infinite; }
@keyframes kblink { 50% { border-color: #ffb74d; box-shadow: 0 0 0 3px #ffb74d; } }
@media (prefers-reduced-motion: reduce) { .k-card.new { animation: none; border-color: #ffb74d; border-width: 3px; } }
#riceBtn.on { color: #7ed37f; border-color: #4caf50; }

/* 쌀 여유: 스위치 모양 버튼 */
.rice-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.switch { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0; border: 0; background: none; font: inherit; color: var(--text); cursor: pointer; }
.switch .track { position: relative; width: 44px; height: 26px; border-radius: 999px; background: #c9c4bc; transition: background .15s; flex-shrink: 0; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: left .15s; }
.switch[aria-checked="true"] .track { background: var(--ok); }
.switch[aria-checked="true"] .track::after { left: 21px; }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 999px; }
.ok-text { color: var(--ok); }
.k-rice { font-size: 18px; }

.prd-img { display: block; max-width: 320px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin-bottom: 10px; border: 1px solid var(--line); }
.prd-photo form { margin: 6px 0; }

.f-cutbox { display: inline-flex; gap: 4px; margin-left: 4px; }
.f-cutbox select, .f-cutbox input { min-height: 34px; padding: 4px 6px; }
.f-cutnum { width: 70px; }
@media (prefers-reduced-motion: reduce) { .sidebar, .btn, .switch .track, .switch .track::after { transition: none; } }
.nowrap { white-space: nowrap; }
