:root {
  --bg: #f3f5f8; --panel: #fff; --ink: #1d2433; --muted: #6b7486; --line: #e1e5ec;
  --brand: #0f6b5c; --brand-2: #0b5448; --accent: #e3a521; --sidebar: #14202b; --sidebar-ink: #c9d3dd;
  --ok: #1d8a4a; --warn: #c98a07; --err: #c8372d; --info: #2867b2;
  --radius: 8px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.lnk { color: #2867b2; text-decoration: underline; cursor: pointer; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
h1, h2, h3 { margin: 0 0 10px; font-weight: 650; }
h1 { font-size: 22px; } h2 { font-size: 17px; } h3 { font-size: 15px; }
a { color: var(--brand); }
.muted { color: var(--muted); } .c { text-align: center; } .r { text-align: right; } .grow { flex: 1; }
.ok { color: var(--ok); } .err { color: var(--err); } .warn { color: var(--warn); }
input, select, textarea { font: inherit; color: inherit; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
.btn { font: inherit; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 7px 14px; border-radius: 6px; white-space: nowrap; }
.btn:hover { background: #f5f7fa; } .btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; } .btn.primary:hover { background: var(--brand-2); }
.btn.danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #1d2433; font-weight: 600; }
.btn.sm { padding: 4px 9px; font-size: 12.5px; } .btn.link { border: 0; background: none; color: var(--brand); padding: 2px 4px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 14px; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: #eef1f5; color: var(--muted); }
.badge.ok { background: #e3f5ea; color: var(--ok); } .badge.err { background: #fbe7e5; color: var(--err); }
.badge.warn { background: #fdf3da; color: #8a5d00; } .badge.info { background: #e4eefa; color: var(--info); }
.badge.A { background: #e3f5ea; color: var(--ok); } .badge.B { background: #e4eefa; color: var(--info); }
.badge.C { background: #fdf3da; color: #8a5d00; } .badge.D { background: #eef1f5; color: var(--muted); }

/* tables */
.tbl-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.tbl-q { width: 260px; max-width: 100%; }
.tbl-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.tbl { border-collapse: collapse; width: 100%; font-size: 13px; }
.tbl th, .tbl td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.tbl td.wrap, .tbl th.wrap { white-space: normal; min-width: 140px; }
.tbl td.acts { white-space: nowrap; width: 1%; }
.tbl th { background: #f7f9fb; position: sticky; top: 0; cursor: pointer; user-select: none; font-weight: 600; color: #3b4456; }
.tbl .r { text-align: right; } .tbl tfoot td { font-weight: 600; background: #f7f9fb; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: #f3faf8; }
.tbl tr.void td { color: var(--muted); text-decoration: line-through; } .tbl tr.refund td { color: var(--err); }
.tbl tr.low td { background: #fff8e6; }
.tbl .acts { text-align: right; } .tbl .acts .btn { margin-left: 4px; }
.tbl-size { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.tbl-size select { width: auto; padding: 4px 6px; }
.pager .grow { flex: 1; }
/* row action icons (edit / history / promotions / delete) */
.ico { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; cursor: pointer; color: #6b7686; vertical-align: middle; }
.ico:hover { background: #eef2f5; }
.ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.edit { color: #2f7fd0; } .ico.del { color: #d64545; } .ico.hist { color: #59636e; } .ico.tag { color: #59636e; } .ico.tag.on { color: #e3a521; }
/* Edit Item / Stock History dialogs (POS Nation layout) */
.tabs svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; fill: none; stroke: currentColor; stroke-width: 2; }
.modal.ie { width: 980px; }
.ie-span3 > select, .ie-span3 > input { width: 100%; }
.ie-pane { border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.ie-grid { display: grid; grid-template-columns: max-content 1fr; gap: 10px 12px; align-items: center; margin-bottom: 12px; }
.ie-grid > .ie-span { grid-column: 2 / -1; }
.ie-grid.ie-2 { grid-template-columns: max-content 1fr max-content 1fr; } .ie-grid.ie-2 .ie-span3 { grid-column: 2 / -1; }
.ie-grid.ie-3 { grid-template-columns: max-content 1fr max-content 1fr max-content 1fr; }
.ie-l { font-weight: 600; font-size: 13px; text-align: right; color: #3b4456; white-space: nowrap; }
.ie-l.req::after, .ie-prices b.req::after { content: "*"; color: var(--err); margin-left: 2px; }
.ie-grid:first-child { grid-template-columns: max-content minmax(140px, 1fr) auto; }
.ie-qoh { display: grid; grid-template-columns: max-content 100px 100px 30px; gap: 4px 8px; align-items: center; grid-row: span 1; }
.ie-qoh .ie-cap { font-size: 12px; color: var(--muted); grid-row: 1; } .ie-qoh .ie-cap:first-child { grid-column: 2; } .ie-qoh .ie-cap:nth-child(2) { grid-column: 3; }
.ie-qoh > .ie-l { grid-column: 1; grid-row: 2; } .ie-qoh > input, .ie-qoh > button { grid-row: 2; }.ie-qoh input { width: 100px; }
.ie-prices { width: 100%; border-collapse: collapse; margin: 4px 0 14px; }
.ie-prices th { font-size: 12px; font-weight: 600; color: #3b4456; padding: 4px; text-align: center; }
.ie-prices td { padding: 3px 4px; text-align: center; } .ie-prices td input { width: 100%; min-width: 60px; text-align: right; }
.ie-prices td input[readonly] { background: #f7f9fb; color: var(--muted); }
.ie-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-bottom: 14px; }
.ie-checks .chk { font-weight: 600; }
.ie-color { width: 28px; height: 20px; padding: 0; border: 0; vertical-align: middle; }
.ie-fees { display: flex; flex-wrap: wrap; gap: 0 18px; }
.ie-thumb { max-width: 120px; max-height: 120px; border: 1px solid var(--line); border-radius: 6px; vertical-align: middle; }
.ie-print { margin-left: 120px; }
.sh-sum { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 14px; text-align: center; }
.sh-sum b { display: block; font-size: 13px; } .sh-sum span { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .ie-grid, .ie-grid.ie-2, .ie-grid.ie-3, .ie-grid:first-child { grid-template-columns: 1fr; } .ie-l { text-align: left; }
  .ie-grid > .ie-span, .ie-grid.ie-2 .ie-span3 { grid-column: auto; } .ie-checks { grid-template-columns: 1fr; }
  .ie-prices th:nth-child(n+5):not(:last-child), .ie-prices td:nth-child(n+5):not(:last-child) { display: none; } .ie-print { margin-left: 0; }
  .sh-sum { grid-template-columns: 1fr 1fr; }
}
/* dashboard (POS Nation layout) */
.ph-sub { margin-right: auto; margin-left: -4px; }
.dash-row { display: grid; grid-template-columns: 5fr 7fr; gap: 16px; margin-bottom: 16px; }
.dash-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; } .dash-pies { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.dash-row > *, .dash-pies > * { min-width: 0; } .dash-pies .chart-box { position: relative; width: 100%; }
.dash-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.dash-h h2 { margin: 0; } .dash-h .filters { margin: 0; } .dash-h select { width: auto; }
.dt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.dt-box { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; border: 1px solid var(--line); border-left: 4px solid #9aa5b1;
  border-radius: 8px; background: #fff; font: inherit; text-align: left; min-width: 0; }
.dt-link { cursor: pointer; } .dt-link:hover { background: #f7f9fb; } .dt-link .dt-n { color: #2867b2; text-decoration: underline dotted; }
.dt-box.ok { border-left-color: #1d8a4a; } .dt-box.err { border-left-color: #c8372d; } .dt-box.info { border-left-color: #2867b2; } .dt-box.warn { border-left-color: #d0681b; }
.dt-n { font-size: 20px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.dt-l { font-size: 12px; color: var(--muted); } .dt-a { font-size: 13px; font-weight: 600; }
.pie-foot { display: flex; justify-content: space-between; border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 8px; font-size: 14px; }
.top-rank { width: 100%; margin-top: 8px; } .top-rank tbody tr { cursor: pointer; } .top-rank .blue { color: #2867b2; } .top-rank .green { color: #1d8a4a; }
.dash-h .rp-host { position: relative; } .rp-named .rp-input { width: 150px; text-align: center; cursor: pointer; }
#p-num.lnk { cursor: pointer; color: #2867b2; text-decoration: underline dotted; }
/* realtime (POS Nation: two equal halves per row) */
.dash-row.rt-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.rt-latest { width: 100%; } .rt-latest td, .rt-latest th { white-space: nowrap; }
.rt-msg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 8px; }
.rt-msg select, .rt-msg textarea { width: 100%; margin-top: 8px; box-sizing: border-box; } .rt-msg .tbl { width: 100%; }
.rt-on { color: #1d8a4a; font-size: 16px; }
.gr-bar { align-items: flex-end; } .gr-bar .grow { flex: 1; }
.gr-bar .rp-host { position: relative; max-width: 100%; } .gr-bar .rp-input { width: 330px; max-width: 100%; }
.gr-row { margin-top: 16px; }
.gr-add { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; padding: 8px 0; }
.gr-list { list-style: none; margin: 0; padding: 0; }
.gr-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 6px; background: var(--bg); }
/* Assistant timeline (POS Nation) */
.as-bar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.as-bar .rp-host { position: relative; max-width: 100%; } .as-bar .rp-input { width: 330px; max-width: 100%; }
.as-search { display: flex; align-items: center; gap: 8px; font-weight: 600; } .as-search input { width: 200px; max-width: 45vw; }
.as-timeline { max-width: 900px; margin: 0 auto; position: relative; }
.as-day { margin: 18px 0 10px; } .as-day span { display: inline-block; background: var(--info); color: #fff; font-weight: 700; padding: 4px 14px 4px 10px; border-radius: 3px 0 0 3px; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%); }
.as-item { display: flex; gap: 12px; margin: 0 0 12px; }
.as-info { flex: 0 0 52px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.as-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--info); color: #fff; font-weight: 700; }
.as-item.warn .as-ico { background: var(--warn); } .as-item.error .as-ico { background: var(--err); } .as-item.recommendation .as-ico { background: var(--accent); }
.as-time { font-size: 11px; background: #3a87ad; color: #fff; padding: 1px 6px; border-radius: 3px; }
.as-box { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.as-item.isnotread .as-box { border-color: var(--info); background: #eef5fc; }
.as-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--info); }
.as-body { padding: 10px 12px; } .as-foot { margin-top: 8px; color: var(--muted); } .as-foot a { font-size: 15px; }
.as-none { text-align: center; padding: 30px; }
.as-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 16px 0; }
.as-pages button { min-width: 36px; padding: 6px 10px; border: 1px solid var(--line); background: var(--panel); border-radius: 4px; cursor: pointer; color: var(--info); }
.as-pages button.on { background: var(--info); color: #fff; border-color: var(--info); } .as-pages button:disabled { color: var(--muted); cursor: default; }
.as-gap { padding: 6px 4px; color: var(--muted); }
@media (max-width: 560px) { .as-info { flex-basis: 40px; } }
.icon-btn { background: none; border: 0; padding: 2px 6px; font-size: 18px; color: #2867b2; cursor: pointer; line-height: 1; }
.icon-btn:hover { color: #1b4f8a; }
@media (max-width: 1100px) { .dash-row, .dash-row.rt-row { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .rt-msg { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .tbl .hide-xs { display: none; } }
@media (max-width: 700px) { .dash-pies { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .dt-grid { grid-template-columns: 1fr 1fr; } }
/* sale dialog */
.st-pane h4 { margin: 14px 0 6px; font-size: 13px; color: #3b4456; }
.kv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 18px; }
.kv { display: flex; gap: 6px; font-size: 13px; } .kv span { color: var(--muted); min-width: 90px; }
.opt-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sort-ind { font-size: 10px; }
@media (max-width: 700px) { .kv-grid { grid-template-columns: 1fr; } }
/* POS Nation-style range picker */
.rp-host { position: relative; display: inline-block; }
.rp-wrap { flex-direction: row !important; align-items: center; gap: 6px; font-weight: 600; }
.rp-input { width: 330px; cursor: pointer; background: #fff; }
.rp-pop { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; background: #fff; border: 1px solid #ccd3dd; border-radius: 8px; box-shadow: 0 10px 28px rgba(0,0,0,.18); padding: 12px; }
.rp-body { display: flex; gap: 14px; }
.rp-cal table { border-collapse: collapse; } .rp-cal th { font-size: 12px; padding: 4px 6px; color: var(--muted); }
.rp-cal td { width: 32px; height: 30px; text-align: center; cursor: pointer; border-radius: 4px; font-size: 13px; }
.rp-cal td:hover { background: #eef3f8; } .rp-cal td.rp-o { color: #b6bfca; } .rp-cal td.rp-fut { color: #c5ccd5; text-decoration: line-through; }
.rp-cal td.rp-in { background: #e3eef9; } .rp-cal td.rp-edge { background: #2a7ab8; color: #fff; font-weight: 700; text-decoration: none; }
.rp-mh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; } .rp-nav { border: 0; background: none; font-size: 20px; cursor: pointer; padding: 0 8px; }
.rp-time { display: flex; gap: 4px; align-items: center; justify-content: center; margin-top: 8px; } .rp-time select { padding: 3px; }
.rp-pre { display: flex; flex-direction: column; gap: 2px; min-width: 130px; }
.rp-pre button { border: 0; background: #e9ecef; color: #2a7ab8; text-align: left; padding: 6px 10px; cursor: pointer; font-size: 13px; }
.rp-pre button.on, .rp-pre button:hover { background: #2a7ab8; color: #fff; }
.rp-foot { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
#shift { max-width: 230px; }
.rep-adv { display: flex; flex-wrap: wrap; gap: 10px 14px; padding: 10px; margin-top: 8px; background: #f7f9fb; border: 1px solid var(--line); border-radius: 8px; }
@media (max-width: 760px) { .rp-body { flex-direction: column; } .rp-input { width: 100%; } .rp-pop { left: -8px; right: -8px; } }
/* customers */
.cu-groups { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ge-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .ge-cols h3 { margin: 6px 0; font-size: 14px; }
@media (max-width: 900px) { .ge-cols { grid-template-columns: 1fr; } }
/* inventory count */
.cl-drop { position: absolute; top: 100%; left: 0; z-index: 30; width: 340px; max-height: 260px; overflow: auto; background: #fff; border: 1px solid #ccd3dd; border-radius: 6px; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.cl-drop > div { padding: 7px 10px; cursor: pointer; border-bottom: 1px solid #eef1f5; } .cl-drop > div:hover { background: #f2f7f6; }
.ok-t { color: #1d8a4a; font-weight: 600; } .warn-t { color: #b7791f; }
td .err, span.err, b.err { color: var(--err); font-weight: 600; }
.note { background: #eef5fb; border: 1px solid #cfe0f0; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; font-size: 13px; }
.note.warn { background: #fff7e6; border-color: #f1d9a6; } .note.err { background: #fdeceb; border-color: #f3c3bf; }
/* receive / order editors */
.ie-grid.ie-3.rv-head { grid-template-columns: max-content 1fr max-content 1fr max-content 1fr; }
@media (max-width: 760px) { .ie-grid.ie-3.rv-head { grid-template-columns: 1fr; } }
.seg { display: flex; gap: 4px; margin-left: auto; }
.rv-sum { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 10px 0; padding: 8px 10px; background: #f7f9fb; border-radius: 8px; font-size: 13px; }
.rv-lines input, .o-lines input { width: 80px; text-align: right; padding: 4px 6px; }
.o-gen { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 6px 0; }
/* promotion editor */
.pe-pane { border: 1px solid var(--line); border-radius: 8px; padding: 16px; min-height: 260px; }
.pe-h { margin: 14px 0 6px; font-size: 14px; }
.pe-tiers { max-width: 460px; } .pe-tiers input { width: 140px; }
.pe-days { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.pe-list { max-height: 300px; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; margin-top: 6px; }
.pe-filter { width: 160px; }
.pe-gen { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px 10px; align-items: center; }
.pe-gen .ie-l { text-align: right; font-weight: 600; white-space: nowrap; } .pe-gen .pe-days { grid-column: 2 / -1; }
.pe-tip { color: var(--info); cursor: help; }
.pe-bulk.r { display: flex; justify-content: flex-end; max-width: 460px; margin-top: 6px; }
.pe-x { color: var(--err); font-weight: 700; text-decoration: none; }
.pe-badge { display: inline-block; min-width: 18px; margin-left: 5px; padding: 0 5px; border-radius: 9px; background: var(--err); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.pe-two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 18px; } .pe-two h4 { margin: 0 0 8px; }
.pe-tools { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 6px; } .pe-tools .grow { flex: 1; }
.pe-tools label { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.pe-scroll { max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; }
.pe-scroll .tbl { margin: 0; }
.pe-total { margin: 8px 0 0; font-size: 14px; }
.pe-add, .pe-rm { text-decoration: none; font-size: 16px; } .pe-rm { color: var(--err); } .pe-rm svg { width: 16px; height: 16px; }
.pe-pg { font-size: 12px; color: var(--muted); }
.pe-search { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; max-width: 520px; } .pe-search > label { font-weight: 600; }
.pe-tagbox { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 4px; background: #fff; }
.pe-tagbox input { border: 0; flex: 1; min-width: 140px; outline: none; }
.pe-chip { background: #e5f2ef; color: var(--brand); border-radius: 4px; padding: 2px 6px; font-size: 13px; } .pe-chip a { color: var(--err); text-decoration: none; margin-left: 2px; }
.pe-ac { position: relative; } .pe-ac input { width: 100%; }
.pe-drop { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 6px; max-height: 240px; overflow: auto; box-shadow: var(--shadow); }
.pe-drop button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 7px 10px; cursor: pointer; font: inherit; } .pe-drop button:hover { background: #eef6f4; }
.pe-allc { margin-top: 26px; }
.pe-cpbtns { display: flex; justify-content: flex-end; gap: 6px; } .pe-cpchk { justify-content: center; margin: 10px 0; }
#pe-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; } .pe-code { font-family: monospace; color: var(--muted); }
.pe-box { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.pe-boxh { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.pe-switch { position: relative; width: 42px; height: 22px; flex: none; } .pe-switch input { opacity: 0; width: 0; height: 0; }
.pe-switch span { position: absolute; inset: 0; background: #c9d1da; border-radius: 22px; cursor: pointer; transition: .15s; }
.pe-switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.pe-switch input:checked + span { background: var(--ok); } .pe-switch input:checked + span::before { transform: translateX(20px); }
.pe-switch input:focus-visible + span { outline: 2px solid var(--info); }
.mp-top { display: flex; justify-content: flex-end; margin-bottom: 8px; }
/* POS Sales: Advanced Search panel, filter chips, export menu */
.ss-panel { border: 1px solid var(--line); border-radius: var(--radius); background: #f8fafc; padding: 14px; margin: 0 0 10px; }
.ss-top { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 12px; }
.ss-top .rp-host { position: relative; max-width: 100%; } .ss-top .rp-input { width: 420px; max-width: 100%; }
.ss-top .rp-wrap { flex-wrap: wrap; }
.ss-status { display: flex; flex-wrap: wrap; gap: 4px; }
.ss-status button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 11px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); }
.ss-status button:hover { border-color: var(--brand); } .ss-status button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.ss-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.ss-grid fieldset { border: 1px solid var(--line); border-radius: 8px; background: #fff; margin: 0; padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ss-grid legend { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 0 4px; }
.ss-grid label:not(.chk) { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--muted); }
.ss-grid input:not([type=checkbox]), .ss-grid select { width: 100%; box-sizing: border-box; color: var(--ink); }
.ss-pair { display: flex; align-items: center; gap: 6px; } .ss-pair span { color: var(--muted); } .ss-pair input { min-width: 0; }
.ss-only { font-size: 12.5px; }
.ss-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; } .ss-foot .grow { flex: 1; }
.ss-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; }
.ss-chip { display: inline-flex; align-items: center; gap: 5px; background: #e5f2ef; color: var(--ink); border: 1px solid #cfe5df; border-radius: 999px; padding: 3px 4px 3px 10px; font-size: 13px; }
.ss-chip b { color: var(--brand); font-weight: 600; }
.ss-chip button { border: 0; background: none; cursor: pointer; font-size: 15px; line-height: 1; color: var(--muted); padding: 0 6px; border-radius: 50%; }
.ss-chip button:hover { color: var(--err); background: #fff; }
.ss-clear { border: 0; background: none; color: var(--info); cursor: pointer; font: inherit; font-size: 13px; text-decoration: underline; }
.ss-count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: #fff; color: var(--brand); font-size: 11px; line-height: 18px; }
#s-adv.on { box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.ss-exp { position: relative; }
.ss-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(16,24,40,.14); padding: 4px; }
.ss-menu button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; border: 0; background: none; padding: 8px 10px; border-radius: 6px; cursor: pointer; font: inherit; text-align: left; }
.ss-menu button:hover:not(:disabled) { background: #eef6f4; } .ss-menu button:disabled { opacity: .45; cursor: default; }
.ss-menu .muted { font-size: 12px; } .ss-warn { margin: 4px 10px 6px; font-size: 12px; }
@media (max-width: 640px) { .ss-menu { right: auto; left: 0; min-width: 260px; } .ss-top .rp-input { width: 100%; } }
/* Receive list + wizard */
.rv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; } .rv-bar .grow { flex: 1; }
.rv-bar .rp-host { position: relative; max-width: 100%; } .rv-bar .rp-input { width: 340px; max-width: 100%; }
.rv-clear { border: 0; background: none; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; } .rv-clear:hover { color: var(--err); }
.rw-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 12px; padding: 0; counter-reset: s; }
.rw-steps li { flex: 1; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; background: #f1f4f7; color: var(--muted); cursor: pointer; font-weight: 600; font-size: 14px; }
.rw-steps li span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1px solid var(--line); font-size: 12px; }
.rw-steps li.on { background: var(--brand); color: #fff; } .rw-steps li.on span { color: var(--brand); border-color: #fff; }
.rw-steps li.done { background: #e5f2ef; color: var(--brand); } .rw-steps li.done span { background: var(--brand); color: #fff; border-color: var(--brand); }
.rw-sum { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; padding: 8px 12px; margin-bottom: 10px; background: #f7f9fb; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; }
.rw-sum b { margin-left: 3px; } .rw-sum .ok { color: var(--ok); font-weight: 600; } .rw-sum .warn { color: var(--warn); }
.rw-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; max-width: 900px; }
.rw-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 13px; } .rw-form .rw-wide { grid-column: 1 / -1; }
.rw-form input, .rw-form select, .rw-form textarea { font-size: 15px; width: 100%; box-sizing: border-box; }
.rw-tip { margin-top: 14px; }
.rw-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.rw-ac { position: relative; flex: 1 1 360px; min-width: 0; } .rw-ac input { width: 100%; box-sizing: border-box; font-size: 15px; padding: 9px 12px; }
.rw-drop { position: absolute; left: 0; right: 0; top: calc(100% + 3px); z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 28px rgba(16,24,40,.16); max-height: 360px; overflow: auto; }
.rw-drop button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #f0f2f5; background: none; padding: 8px 12px; cursor: pointer; font: inherit; }
.rw-drop button.on, .rw-drop button:hover { background: #eef6f4; } .rw-meta { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.rw-none { padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); }
.rw-tools { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; min-height: 30px; }
.rw-wrap { max-height: 52vh; } .rv-lines input { width: 76px; } .rv-lines input.rw-vin { width: 90px; text-align: left; } .rv-lines .rw-zero { border-color: var(--err); background: #fff5f4; }
.rw-old { font-size: 11px; color: var(--muted); } .rw-act .ico { font-size: 14px; }
.rw-empty { padding: 26px !important; } tr.rw-flash td { animation: rwflash 1.2s ease-out; } @keyframes rwflash { from { background: #fff3c4; } to { background: transparent; } }
.rw-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin-bottom: 12px; }
.rw-card { border: 1px solid var(--line); border-left-width: 4px; border-radius: 8px; padding: 8px 12px; background: #fff; } .rw-card h4 { margin: 0 0 4px; font-size: 14px; }
.rw-card p { margin: 4px 0; } .rw-card ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; } .rw-card.ok { border-left-color: var(--ok); } .rw-card.warn { border-left-color: var(--warn); }
.rw-card.err { border-left-color: var(--err); } .rw-card.info { border-left-color: var(--info); } .rw-h { margin: 6px 0; }
.rw-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); } .rw-foot .grow { flex: 1; }
/* Receive Items — one screen like POS Nation */
.modal.xl.rc-modal { width: 96vw; max-width: 1840px; }
.rc-hdr .rw-ac { flex: none; width: 100%; }
.rc-hdr { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px 22px; align-items: end; }
.rc-hdr > label, .rc-tots label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 13px; min-width: 0; }
.rc-hdr input, .rc-hdr select, .rc-hdr textarea { width: 100%; box-sizing: border-box; font-size: 14px; }
.rc-hdr textarea { min-height: 36px; resize: vertical; } .rc-hdr .rw-ac input { font-size: 14px; padding: 8px 10px; }
.rc-c4 { grid-column: span 4; } .rc-c2 { grid-column: span 2; }
.rc-tots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rc-tots input { text-align: center; background: #f7f9fb; font-weight: 600; }
.rc-drop { max-height: 320px; } .rc-sug { display: flex !important; gap: 8px; align-items: baseline; }
.rc-sug .rc-sn { flex: 1 1 60%; font-weight: 600; } .rc-sug .rc-sd { flex: 0 0 16%; color: var(--muted); } .rc-sug .rc-sq { flex: 0 0 8%; text-align: right; } .rc-sug .rc-sp { flex: 0 0 12%; text-align: right; }
.rc-hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0 10px; }
.rc-bar { position: relative; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; } .rc-bar .grow { flex: 1; }
.rc-search { display: flex; align-items: center; gap: 6px; font-size: 13px; } .rc-search input { width: 200px; max-width: 46vw; padding: 5px 8px; }
.rc-colmenu { position: absolute; left: 0; top: calc(100% + 4px); z-index: 45; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 28px rgba(16,24,40,.16); padding: 8px 12px; display: grid; gap: 4px; min-width: 200px; }
.rc-colmenu .btn { margin-top: 6px; }
.rc-wrap { max-height: 48vh; } .rc-t th { font-size: 12px; line-height: 1.2; vertical-align: bottom; } .rc-t th.rc-sort { cursor: pointer; user-select: none; }
.rc-t td { vertical-align: middle; } .rc-t .rc-name { min-width: 160px; }
.rc-t input[data-f] { width: 72px; text-align: right; padding: 4px 6px; } .rc-t input.rc-vinp { width: 96px; text-align: left; }
.rc-t .rw-zero { border-color: var(--err); background: #fff5f4; } .rc-t td.ok, .rc-t span.ok { color: var(--ok); } .rc-t td.err, .rc-t span.err { color: var(--err); }
.rc-foot .rc-info { font-weight: 600; font-size: 13px; color: var(--muted); }
.rc-det-name { font-weight: 600; margin-bottom: 10px; }
.rc-det { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; } .rc-det label { text-align: right; font-weight: 600; font-size: 14px; }
.rc-det input { width: 100%; box-sizing: border-box; font-size: 15px; padding: 6px 8px; }
.rc-pick { display: grid; gap: 6px; } .rc-pick .btn { text-align: left; }
/* Order Items — like POS Nation */
.od2-top { display: grid; grid-template-columns: minmax(220px, 3fr) 9fr; gap: 12px 24px; margin-bottom: 10px; }
.od2-left, .od2-right { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.od2-top label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 13px; min-width: 0; }
.od2-top input:not([type=radio]):not([type=checkbox]), .od2-top select { width: 100%; box-sizing: border-box; font-size: 14px; }
.od2-top .rw-ac { flex: none; width: 100%; } .od2-top .rw-ac input { font-size: 14px; padding: 8px 10px; }
.od2-r1, .od2-r2 { display: grid; grid-template-columns: 4fr 2fr 6fr; gap: 12px 18px; align-items: center; }
.od2-r2 { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.od2-method { display: flex; flex-direction: column; gap: 6px; } .od2-method label.chk { flex-direction: row; align-items: center; gap: 6px; font-size: 14px; white-space: nowrap; }
.od2-i { color: var(--info, #428bca); cursor: help; } #od-shr .rp-input { width: 300px; max-width: 100%; }
.od2-tots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .od2-tots input { background: #f7f9fb; font-weight: 600; text-align: center; }
.od2-t input[data-f] { width: 70px; } .od2-top .od-toggle { align-self: flex-start; }
.od2-selbar { margin: 6px 0; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.od2-xsup { max-height: 200px; overflow-y: auto; display: grid; gap: 4px; margin-top: 6px; } .od2-xbtn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.od-det-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 10px; text-align: center; margin-bottom: 12px; font-size: 13px; }
.od-det-info > div { display: flex; flex-direction: column; } .od-det-info span { color: var(--muted); } .od-det-info .od-wide { grid-column: span 2; }
@media (max-width: 1100px) { .od2-top { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .od2-r1 { grid-template-columns: 1fr; } .od2-r2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1100px) { .rc-c4 { grid-column: span 6; } .rc-c2 { grid-column: span 3; } }
@media (max-width: 640px) { .rc-hdr > * { grid-column: 1 / -1 !important; } .rc-tots { grid-template-columns: repeat(2, minmax(0, 1fr)); } .modal.xl.rc-modal { width: 100vw; } }
.bi-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; } .bi-bar input { flex: 1 1 260px; } .bi-wrap { max-height: 55vh; }
@media (max-width: 700px) { .rw-steps li { font-size: 12px; padding: 6px 8px; } .rw-foot .btn { flex: 1 1 auto; } }
/* Create Order */
.od-top { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 3fr); gap: 14px; margin-bottom: 10px; }
.od-left { display: flex; flex-direction: column; gap: 8px; } .od-left label { display: flex; flex-direction: column; gap: 3px; font-weight: 600; font-size: 13px; }
.od-left select, .od-left input { width: 100%; box-sizing: border-box; }
.od-gen { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.od-method { display: flex; flex-direction: column; gap: 3px; } .od-method .rp-host { position: relative; } .od-method .rp-input { width: 330px; max-width: 100%; }
.od-ranks { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 13px; color: var(--muted); }
.od-tot { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 6px 10px; background: #f7f9fb; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; }
.od-row2 { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 10px; } .od-row2 .grow { flex: 1; }
.od-row2 label { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; } .od-row2 #od-filter { width: 200px; }
.od-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.od-toggle button { border: 0; background: #fff; padding: 5px 12px; cursor: pointer; font: inherit; font-weight: 400; } .od-toggle button.on { background: var(--brand); color: #fff; }
.od-selbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 10px; margin-bottom: 6px; background: #fff8e6; border: 1px solid #f0dca4; border-radius: 8px; }
.od-wrap { max-height: 55vh; } .o-lines input { width: 70px; } th.od-sort { cursor: pointer; user-select: none; white-space: nowrap; } th.od-sort:hover { color: var(--brand); }
.o-lines tr.od-disc td { opacity: .6; } .od-empty { padding: 26px !important; } .od-ranksum { margin-top: 8px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .od-top { grid-template-columns: 1fr; } }
/* Staff & Admins */
.sa-up { color: var(--ok); font-size: 16px; } .sa-dn { color: var(--err); font-size: 16px; }
.ico.sa-dis { color: var(--err); } .ico.sa-en { color: var(--ok); } .ico.sa-clone { color: #317ecc; }
.sa-h { text-align: center; font-size: 15px; margin: 16px 0 8px; }
.sa-form { margin: 0 auto; border-collapse: separate; border-spacing: 8px 6px; } .sa-form td.r { text-align: right; font-weight: 600; white-space: nowrap; }
.sa-form input { width: 280px; max-width: 60vw; }
.sa-perm { margin: 0 auto; max-width: 620px; } .sa-perm td:first-child { white-space: nowrap; }
.sa-cb { display: inline-flex; align-items: center; gap: 4px; margin-right: 12px; white-space: nowrap; }
@media (max-width: 1000px) { .pe-gen { grid-template-columns: auto minmax(0, 1fr); } .pe-gen .ie-l { text-align: left; } .pe-two { grid-template-columns: 1fr; } }
/* hide lower-priority columns on smaller screens */
/* widths account for the 230px back-office sidebar */
@media (max-width: 1799px) { .tbl .hide-xxl { display: none; } }
@media (max-width: 1599px) { .tbl .hide-xl { display: none; } }
@media (max-width: 1199px) { .tbl .hide-lg { display: none; } }
@media (max-width: 1099px) { .tbl .hide-md { display: none; } }
@media (max-width: 639px) {
  .tbl .hide-sm { display: none; } .tbl .selc { display: none; }
  .tbl th, .tbl td { padding: 6px 5px; } .tbl th { white-space: normal; } .tbl td.wrap, .tbl th.wrap { min-width: 0; }
  .ico { width: 24px; height: 24px; } .ico svg { width: 15px; height: 15px; }
}
@media print { .tbl [class*="hide-"] { display: table-cell !important; } }
.pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 8px; color: var(--muted); }

/* forms */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 14px; }
.fld { display: flex; flex-direction: column; gap: 4px; font-size: 13px; } .fld > span { color: #3b4456; font-weight: 500; }
.fld.wide { grid-column: 1 / -1; } .fld small { color: var(--muted); }
.chk { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 0; }
.chk input { width: 16px; height: 16px; }

/* modal */
.modal-back { position: fixed; inset: 0; background: rgba(15,23,35,.45); display: flex; align-items: flex-start; justify-content: center; z-index: 100; padding: 5vh 12px; overflow: auto; }
.modal { background: #fff; border-radius: 10px; width: 560px; max-width: 100%; box-shadow: 0 20px 50px rgba(0,0,0,.25); display: flex; flex-direction: column; max-height: 90vh; }
.modal.lg { width: 900px; } .modal.xl { width: 1200px; } .modal.sm { width: 400px; }
.modal-h { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-h h3 { margin: 0; flex: 1; } .modal-h .x { border: 0; background: none; font-size: 24px; cursor: pointer; color: var(--muted); line-height: 1; }
.modal-b { padding: 16px 18px; overflow: auto; } .modal-f { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 8px 14px; cursor: pointer; font: inherit; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); max-width: 380px; }
.toast.ok { background: var(--ok); } .toast.err { background: var(--err); } .toast.warn { background: var(--warn); }

.receipt { font: 13px/1.45 "Segoe UI", Arial, sans-serif; width: 320px; max-width: 100%; box-sizing: border-box; margin: 0 auto; padding: 12px; background: #fff; color: #000; border: 1px dashed #bbb; }
.receipt .rl { display: flex; justify-content: space-between; gap: 8px; } .receipt .rl span:last-child { text-align: right; white-space: nowrap; }
.receipt hr { border: 0; border-top: 1px dashed #000; } .receipt .rh-name { font-size: 22px; } .receipt .rh-addr { font-weight: bold; }
.receipt .rgap { height: 8px; } .receipt .rl.ul span:last-child { border-bottom: 1px solid #000; } .receipt .rfoot { margin-top: 6px; }
.receipt .rdash { border-top: 2px dotted #000; margin: 22px 0 14px; } .receipt .rtitle { margin: 4px 0; }
.receipt .b { font-weight: bold; } .receipt .big { font-size: 15px; } .receipt .small { font-size: 10px; }

/* POS Sales (POS Nation: green Export CSV, Ref search in the header, blue table title bar, highlighted selected rows) */
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.cost-increase { color: var(--ok); font-weight: 600; }
.cost-decrease { color: var(--err); font-weight: 600; }
.btn.warn { background: #f0ad4e; border-color: #f0ad4e; color: #fff; }
.ref-box { display: inline-flex; align-items: center; font-weight: 600; }
.ref-box input { width: 150px; }
.table-header { background: var(--brand); color: #fff; padding: 8px 12px; margin: -4px 0 10px; border-radius: var(--radius); font-size: 14px; }
.tbl tr.selected td { background: #fff8e1; }
.tbl td.nowrap .ico { margin-right: 4px; }

/* Inventory / Categories / Suppliers (catalog.js) — POS Nation's label: field dialogs */
.cg-form { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 10px; align-items: center; min-width: min(420px, 80vw); }
.cg-form > label { text-align: right; font-weight: 600; font-size: 13px; }
.cg-form > input[type=checkbox] { justify-self: start; width: auto; }
.cg-form .cg-wide { grid-column: 1 / -1; margin: 0; }
.cg-grp { display: flex; gap: 6px; } .cg-grp select { flex: 1; }
.cg-form .rw-ac input { font-size: 14px; padding: 6px 10px; }
.alert.warn { background: #fff4d6; border: 1px solid #f0c36d; color: #6b4b00; padding: 9px 12px; border-radius: var(--radius); margin-bottom: 10px; }
.sel-info { min-height: 0; padding: 4px 2px; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.tbl tr.neg td { background: #fde8e8; }
.ico.iv-tr { font-weight: 700; color: #2e8b57; }
.iv-f { margin-bottom: 6px; }
@media (max-width: 640px) { .cg-form { grid-template-columns: 1fr; } .cg-form > label { text-align: left; } }
