/* MSPRenew. Logical properties (inline-start/end) so the same rules work in RTL and LTR. */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1c2430;
  --muted: #5d6b7e;
  --line: #dde2e9;
  --accent: #1f5fbf;
  --accent-text: #ffffff;
  --danger: #b42318;
  --ok: #157f3b;
  --warn: #a15c00;
  --tag: #eef2f7;
  --radius: 8px;
  --brand-teal: #0a8f95;  /* the logo's teal, a little darker so it reads on white */
  --logo-bg: transparent;  /* vendor logos; dark mode puts them on a light chip (some are dark navy) */
  --logo-pad: 0;
  --mark-filter: none;  /* the MSPRenew mark; its navy half needs lifting on dark */
  color-scheme: light;
}
/* Dark theme. It follows the system unless the top bar's switch chose light or dark
   (static/js/theme.js sets html[data-theme] to auto, light or dark). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12161c;
    --surface: #1b2129;
    --text: #e6eaf0;
    --muted: #9aa6b6;
    --line: #2d3540;
    --accent: #5b9bf0;
    --accent-text: #0b1220;
    --danger: #f2766b;
    --ok: #5fcf8a;
    --warn: #f0b252;
    --tag: #26303c;
    --brand-teal: #14b4ba;
    --logo-bg: #f6f7f9;
    --logo-pad: 2px;
    --mark-filter: brightness(1.7) saturate(1.1);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12161c;
  --surface: #1b2129;
  --text: #e6eaf0;
  --muted: #9aa6b6;
  --line: #2d3540;
  --accent: #5b9bf0;
  --accent-text: #0b1220;
  --danger: #f2766b;
  --ok: #5fcf8a;
  --warn: #f0b252;
  --tag: #26303c;
  --brand-teal: #14b4ba;
  --logo-bg: #f6f7f9;
  --logo-pad: 2px;
  --mark-filter: brightness(1.7) saturate(1.1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { font-size: 15px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Arial Hebrew", Arial, "Noto Sans Hebrew", system-ui, sans-serif;
  line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.55rem; margin: 0 0 .75rem; }
h2 { font-size: 1.15rem; margin: 1.5rem 0 .6rem; }
.muted { color: var(--muted); }
.small { font-size: .87rem; }
.mono { font-family: Consolas, "Cascadia Mono", monospace; }
.ltr { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .ltr { text-align: end; }
.pre { white-space: pre-wrap; }
.nowrap { white-space: nowrap; }

/* The logo's wordmark (the top bar's copy is in topbar.css): "MSP" bold, "Renew" in the logo's teal. */
.wordmark { font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.wordmark b { font-weight: 800; }
.wordmark span { color: var(--brand-teal); }
.signin-mark { display: block; margin: 0 auto .5rem; }
.signin-mark, .home-head img { filter: var(--mark-filter); }
.signin h1.wordmark { font-size: 2rem; margin: 0 0 .5rem; }

.page { max-width: 1200px; margin: 0 auto; padding: 1.25rem; }
.pagehead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-block-end: .5rem; }
.pagehead h1 { margin: 0; }
.actions, .formactions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.formactions { margin-block-start: 1rem; }
.formactions form { margin: 0; }
.crumbs { margin: 0 0 .4rem; color: var(--muted); }
.count { font-size: .85rem; color: var(--muted); background: var(--tag); border-radius: 999px; padding: .05rem .55rem; vertical-align: middle; }
.count.warn { color: var(--warn); }

.button {
  display: inline-flex; align-items: center; gap: .5rem;
  font: inherit; padding: .42rem .9rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
}
.button:hover { text-decoration: none; border-color: var(--muted); }
.button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.button.danger { color: var(--danger); }
.button[disabled] { opacity: .55; cursor: not-allowed; }
button.link { font: inherit; background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; }
.signin { max-width: 380px; margin: 4rem auto; text-align: center; }
/* Sign-in page: the "Bring it all together" banner, the sign-in card below it. */
.signin-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; justify-items: center; max-width: 720px; margin: 1.25rem auto; }
.signin-wrap .signin { margin: 0; width: 100%; max-width: 420px; }
.signin-wrap .signin-mark { width: 64px; height: 64px; }
.signin-banner { margin: 0; width: 100%; }
.signin-banner img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 10px 30px rgba(9, 25, 38, .25); }
@media (max-width: 900px) { .signin-wrap { margin-block-start: 1rem; gap: 1.25rem; } }
.signin .button { justify-content: center; width: 100%; padding: .6rem; }
.devlogin { margin-block-start: 1rem; }
.ms-logo { display: inline-grid; grid-template-columns: 8px 8px; gap: 2px; }
.ms-logo i { width: 8px; height: 8px; display: block; }
.ms-logo i:nth-child(1) { background: #f25022; }
.ms-logo i:nth-child(2) { background: #7fba00; }
.ms-logo i:nth-child(3) { background: #00a4ef; }
.ms-logo i:nth-child(4) { background: #ffb900; }

.messages { list-style: none; padding: 0; margin: 0 0 1rem; }
.msg { padding: .55rem .9rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); margin-block-end: .4rem; }
.msg-success { border-inline-start: 4px solid var(--ok); }
.msg-error { border-inline-start: 4px solid var(--danger); }
.msg-warning { border-inline-start: 4px solid var(--warn); }
.msg-info { border-inline-start: 4px solid var(--accent); }

.searchbar { display: flex; gap: .5rem; margin: 1rem 0; }
.searchbar input[type="search"] { flex: 1; }
input[type="text"], input[type="search"], input[type="email"], select, textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: .42rem .6rem; width: 100%;
}
.searchbar select { width: auto; }
input:focus, select:focus, textarea:focus, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.grid { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.grid th, .grid td { text-align: start; padding: .5rem .7rem; border-block-end: 1px solid var(--line); vertical-align: top; }
.grid th { font-weight: 600; color: var(--muted); font-size: .87rem; background: var(--bg); }
.grid tr:last-child td { border-block-end: 0; }
.grid.compact td, .grid.compact th { padding: .35rem .6rem; font-size: .92rem; }
.rowact { text-align: end; white-space: nowrap; }
.grid tr.st-conflict td:first-child { border-inline-start: 3px solid var(--warn); }
.grid tr.st-new td:first-child { border-inline-start: 3px solid var(--ok); }
.tag { font-size: .78rem; background: var(--tag); color: var(--warn); border-radius: 4px; padding: .05rem .4rem; }
.tag.subtle { color: var(--muted); }
.empty { padding: 2rem; text-align: center; color: var(--muted); }
.pager { display: flex; gap: 1rem; justify-content: center; margin: 1rem 0; }

.form { max-width: 720px; }
.form.inline { display: flex; gap: .75rem; align-items: flex-end; max-width: none; }
.form.inline .field { flex: 1; margin: 0; }
.field { margin-block-end: 1rem; }
.field label { display: block; font-weight: 600; margin-block-end: .25rem; }
.field.check { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.field.check label { display: inline; margin: 0; }
.field.check .help { flex-basis: 100%; }
.help { color: var(--muted); font-size: .87rem; margin-block-start: .2rem; }
.error { color: var(--danger); font-size: .9rem; }
.has-error input, .has-error textarea { border-color: var(--danger); }
.errors { color: var(--danger); margin-block-end: 1rem; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.plain { list-style: none; margin: 0; padding: 0; }

.mergegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-block-start: 1rem; }
.mergegrid h2 { margin-block-start: 0; }

.stats { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1rem 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem 1rem; min-width: 120px; }
.stat b { display: block; font-size: 1.5rem; }
.stat span { color: var(--muted); font-size: .87rem; }
.stat b span { color: inherit; font-size: inherit; }
.stat b .stat-line { display: block; white-space: nowrap; }
.money { white-space: nowrap; }
.stat.ok b { color: var(--ok); }
.stat.info b { color: var(--accent); }
.stat.warn b { color: var(--warn); }
details summary { cursor: pointer; list-style-position: inside; }
details summary h2 { display: inline-block; }

@media (max-width: 720px) {
  .page { padding: 1rem; }
  .grid th:nth-child(3), .grid td:nth-child(3) { display: none; }
  .mergegrid { grid-template-columns: 1fr; }
  .form.inline { flex-direction: column; align-items: stretch; }
}

.exportgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.exportgrid h2 { margin-block-start: 0; }
@media (max-width: 720px) { .exportgrid { grid-template-columns: 1fr; } }
.exportgrid.single { grid-template-columns: minmax(0, 720px); }
.template-card { max-width: 720px; margin-block-start: 1rem; }
.template-card h2 { margin-block-start: 0; }

/* Inline editing in the customer table */
.listcount { margin: 0 0 .4rem; }
.grid tr.editing td { background: var(--tag); vertical-align: top; }
.grid input.cell { padding: .25rem .4rem; font-size: .92rem; }
.cellcheck { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; color: var(--muted); margin-block-start: .25rem; }
.rowform { display: inline-flex; gap: .35rem; margin: 0; }
.button.small { padding: .2rem .6rem; font-size: .88rem; }
.grid tr.saved td { animation: saved-flash 1.6s ease-out; }
@keyframes saved-flash { from { background: color-mix(in srgb, var(--ok) 22%, transparent); } to { background: transparent; } }

/* Products and prices */
.num { text-align: end; }
.grid th.num { text-align: end; }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.fieldrow { display: flex; gap: .75rem; flex-wrap: wrap; }
.fieldrow .field { flex: 1; min-width: 140px; }
.subnav { display: flex; gap: 1.25rem; margin: 0 0 1rem; border-block-end: 1px solid var(--line); }
.subnav a { color: var(--muted); padding: .35rem 0; }
.subnav a[aria-current="page"] { color: var(--text); border-block-end: 2px solid var(--accent); }
.inlineform { display: inline; margin: 0; }
button.link.small { font-size: .85rem; }
.addprice { margin-block-start: .75rem; }
.addprice summary { cursor: pointer; color: var(--accent); margin-block-end: .5rem; }
.exportgrid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
input[type="date"], input[type="month"], input[type="number"] { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .42rem .6rem; width: 100%; }
@media (max-width: 900px) { .twocol { grid-template-columns: 1fr; } }

/* --- setup wizard --- */
.setup { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.setup-steps { position: sticky; top: 1rem; padding: .75rem; }
.setup-steps-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--text); padding: .25rem .4rem .6rem; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps a { display: flex; gap: .6rem; align-items: center; padding: .45rem .4rem; border-radius: 6px; color: var(--text); }
.steps a:hover { background: var(--tag); text-decoration: none; }
.steps li.is-current a { background: var(--tag); font-weight: 600; }
.mark { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1.5px solid var(--line); font-size: .85rem; color: var(--muted); flex: none; }
.is-done .mark { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.setup-main h1 { margin-block-start: 0; }
.lead { font-size: 1.05rem; }
.checklist { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .6rem; }
.checklist li { display: flex; gap: 1rem; align-items: center; }
.checklist .body { flex: 1; min-width: 0; }
.checklist h2 { margin: 0 0 .2rem; font-size: 1.05rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.checklist p { margin: 0; }
.pill { display: inline-block; font-size: .78rem; font-weight: 600; border-radius: 999px; padding: .1rem .55rem; background: var(--tag); color: var(--muted); white-space: nowrap; }
.pill.ok { color: var(--ok); }
.pill.warn { color: var(--warn); }
.pill.danger { color: var(--danger); }
.warnline { color: var(--warn); font-size: .9rem; margin: .2rem 0 0; }
.stepnav { display: flex; justify-content: space-between; gap: .5rem; margin-block-start: 1.5rem; }
.stepnav .primary { margin-inline-start: auto; }
.choices { border: 0; padding: 0; margin: 0; }
.choices legend { font-weight: 600; margin-block-end: .3rem; padding: 0; }
.choice { display: inline-flex; align-items: center; gap: .35rem; margin-inline-end: 1.2rem; font-weight: 400 !important; }
.notice { border-inline-start: 4px solid var(--accent); margin-block-end: 1rem; }
.caution { border-inline-start: 4px solid var(--warn); margin-block-end: 1rem; }
.notice h2 { margin-block-start: 0; font-size: 1.05rem; }
.command { display: flex; gap: .5rem; align-items: flex-start; }
.command pre { flex: 1; min-width: 0; margin: 0; padding: .6rem .75rem; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; white-space: pre-wrap; word-break: break-all; font-size: .85rem; text-align: left; }
.grouphead { font-size: 1rem; margin: 1.25rem 0 .4rem; }
.vendors .usecol { width: 3.5rem; text-align: center; }
.walk li { margin-block-end: .35rem; }
.testresult { margin-block-start: .75rem; padding: .6rem .8rem; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .2rem; }
.testresult.st-ok { border-inline-start: 4px solid var(--ok); }
.testresult.st-missing { border-inline-start: 4px solid var(--warn); }
.testresult.st-error { border-inline-start: 4px solid var(--danger); }
.reviewlist li { padding: .3rem 0; }
.setup-main > .card { margin-block-end: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 800px) {
  .setup { grid-template-columns: 1fr; }
  .setup-steps { position: static; }
  .checklist li { flex-wrap: wrap; }
}
.secretname { white-space: nowrap; font-size: .85rem; }
@media (max-width: 1100px) { .setup-main .twocol { grid-template-columns: 1fr; } }
.setup-main .card > h2:first-child, .setup-main .card > b:first-child { margin-block-start: 0; }
.stack { display: flex; flex-direction: column; gap: .5rem; margin-block: .5rem; align-items: flex-start; }
.stack input[type="text"] { width: 100%; }

/* Vendor icons (Setup) */
.vendor-logo { display: inline-block; width: 20px; height: 20px; vertical-align: -4px; margin-inline-end: .45rem; border-radius: 4px; object-fit: contain; background: var(--logo-bg); padding: var(--logo-pad); }
.vendor-logo.large { width: 32px; height: 32px; vertical-align: -6px; margin-inline-end: .6rem; }

/* Home page: large buttons to the main areas (templates/home.html) */
.home { margin: 1.5rem auto 0; }
.home-head { display: flex; align-items: center; gap: 1rem; margin-block-end: 1.5rem; }
.home-head img { flex: none; }
.home-head h1 { margin: 0; font-size: 1.8rem; }
.home-head p { margin: 0; }
.home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.home-card { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; padding: 1.5rem; color: var(--text); min-height: 17rem; transition: border-color .15s, box-shadow .15s; }
a.home-card:hover { text-decoration: none; border-color: var(--accent); box-shadow: 0 6px 20px color-mix(in srgb, var(--text) 12%, transparent); }
a.home-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.home-card h2 { margin: 0; font-size: 1.35rem; }
.home-card p { margin: 0; }
.home-icon { display: inline-grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 14px; background: color-mix(in srgb, var(--brand-teal) 14%, var(--surface)); color: var(--brand-teal); }
.home-icon svg { width: 2rem; height: 2rem; }
.home-go { margin-block-start: auto; display: flex; gap: .6rem; flex-wrap: wrap; padding-block-start: .5rem; }
.home-go .button { font-size: 1.05rem; padding: .6rem 1.3rem; }
@media (prefers-reduced-motion: reduce) { .home-card { transition: none; } }

/* Billing › Export: what stops the export, and the file just made */
.card.warnbox { border-inline-start: 4px solid var(--warn); }
.card.warnbox h2 { color: var(--warn); }
.card.okbox { border-inline-start: 4px solid var(--ok); }

/* Renewals: the notice's own HTML in a sandboxed frame, on white like an email */
.emailpreview { width: 100%; height: 900px; border: 1px solid var(--line, #ccc); border-radius: 6px; background: #fff; }

/* Profitability (billing/profit.html): charts drawn as SVG on the server; colours are the theme's, so dark mode follows */
.stat.bad b { color: var(--danger); }
a.stat.statlink { color: var(--text); }
a.stat.statlink:hover, a.stat.statlink:focus { border-color: var(--accent); text-decoration: none; }
.neg { color: var(--danger); }
.periodform { display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin: 0; }
.periodform select { width: auto; }
.presets { margin: -.25rem 0 .75rem; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.segmented a { padding: .3rem .7rem; color: var(--muted); background: var(--surface); }
.segmented a + a { border-inline-start: 1px solid var(--line); }
.segmented a[aria-current="true"] { background: var(--accent); color: var(--accent-text); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0; }
.chip { border: 1px solid var(--line); background: var(--tag); color: var(--text); border-radius: 999px; padding: .15rem .7rem; font-size: .9rem; }
.chip:hover { border-color: var(--accent); text-decoration: none; }
.profit-notes ul { margin: 0; padding-inline-start: 1.2rem; }
.chartcard { margin: 1rem 0; }
.chartcard h2 { font-size: 1rem; margin: 0 0 .25rem; }
.legend { display: flex; gap: 1rem; list-style: none; padding: 0; margin: 0 0 .5rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: .35rem; }
.legend .key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.key.k-rev { background: var(--accent); }
.key.k-cost { background: var(--muted); opacity: .45; }
.key.k-profit { background: var(--ok); }
.key.k-loss { background: var(--danger); }
.key.k-line { height: 2px; border-radius: 0; background: var(--text); }
.trend-wrap { overflow-x: auto; }
.trend { display: block; max-width: 100%; height: auto; }
.trend text { fill: var(--muted); font-size: 11px; }
.tr-grid { stroke: var(--line); stroke-width: 1; }
.tr-zero { stroke: var(--muted); stroke-width: 1; }
.tr-hit { fill: transparent; }
.tr-col:hover .tr-hit, .tr-col:focus .tr-hit { fill: var(--tag); }
.tr-rev { fill: var(--accent); }
.tr-cost { fill: var(--muted); fill-opacity: .45; }
.tr-line { fill: none; stroke: var(--text); stroke-width: 2; pointer-events: none; }
.tr-pt { fill: var(--ok); stroke: var(--surface); stroke-width: 2; pointer-events: none; }
.tr-pt.loss { fill: var(--danger); }
.pbars { list-style: none; margin: 0; padding: 0; }
.pbars li a { display: grid; grid-template-columns: minmax(8rem, 16rem) 1fr minmax(9rem, auto); gap: .75rem; align-items: center; padding: .2rem .35rem; border-radius: 4px; color: var(--text); }
.pbars li a:hover, .pbars li a:focus { background: var(--tag); text-decoration: none; }
.pbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbar { width: 100%; height: 14px; display: block; }
[dir="rtl"] .pbar { transform: scaleX(-1); }
.pb-cost { fill: var(--muted); fill-opacity: .45; }
.pb-profit { fill: var(--ok); }
.pb-loss { fill: var(--danger); }
.pbar-value { text-align: end; white-space: nowrap; }
.tablewrap { overflow-x: auto; }
.profit-table th a { color: inherit; }
.profit-table tfoot th { background: var(--bg); border-block-start: 2px solid var(--line); }
.strong { font-weight: 600; }
@media (max-width: 720px) { .pbars li a { grid-template-columns: 1fr; gap: .15rem; } .pbar-value { text-align: start; } }

/* Assets: the bar under the asset table that acts on the ticked rows. */
.bulkbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-block-start: .75rem; }
.bulkbar select { width: auto; }
.customer-group { margin-block-end: 1.25rem; }
.customer-group h2 { font-size: 1.05rem; margin: 0 0 .4rem; }
.rfq-frame { width: 100%; min-height: 340px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

/* Assets: the three quote steps (request, send, approve) and the renewal prices. */
.quotesteps { display: flex; flex-wrap: wrap; gap: .35rem .6rem; align-items: flex-start; }
.quotestep { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; }
.quotestep .button.small { padding: .15rem .5rem; font-size: .8rem; white-space: nowrap; }
.quotestate { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.quotestate.drafted { color: var(--warn); }
.quotestate.sent { color: var(--ok); }
.pricerow { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: flex-end; }
.pricerow label { display: flex; flex-direction: column; font-size: .85rem; gap: .15rem; }
.pricerow input, .pricerow select { width: 8rem; }

.hidecell { text-align: center; }

/* Assets list: cost under the distributor, margin and price under the customer, saved on change. */
.rowprices { display: flex; flex-wrap: wrap; gap: .25rem .6rem; margin: .3rem 0; }
.rowprices label { display: flex; align-items: center; gap: .25rem; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.rowprices input { width: 5.5rem; padding: .1rem .3rem; font-size: .85rem; }
.rowprices input.pct { width: 3.5rem; }
.rowprices input[readonly] { background: var(--tag); }
.rowprices .cur { color: var(--muted); }
