/* --brand / --brand-dark (red) and --green / --green-dark come from config.php (inline in the page head) */
:root {
  --bg: #f7f5f2; --card: #fff; --text: #1f2124; --muted: #6b6f75; --line: #ece8e3; --soft: #f3f0ec;
  --low: #c0262d; --radius: 14px; --shadow: 0 1px 2px rgba(30,20,10,.05), 0 4px 14px rgba(30,20,10,.05);
  --head: Montserrat, Inter, system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; padding-bottom: 84px; }
a { color: var(--brand-dark); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.25; }
h1 { font-size: 1.5rem; margin: 18px 0 10px; }
h2 { font-size: 1.15rem; margin: 18px 0 10px; }
h3 { font-size: 1rem; margin: 16px 0 6px; }
img { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.ok { color: var(--green); font-weight: 700; }
.low { color: var(--low); font-weight: 600; font-size: .8rem; }

/* Top strip + header */
.strip { background: var(--brand); color: #fff; font-size: .8rem; font-weight: 500; text-align: center; padding: 6px 0; letter-spacing: .1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top { background: #fff; position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(30,20,10,.04); }
.bar { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo search acts"; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.logo { grid-area: logo; display: block; color: var(--brand); font: 800 1.3rem var(--head); text-decoration: none; }
.logo img { height: 56px; width: auto; display: block; }
.search { grid-area: search; position: relative; }
.search input { width: 100%; font: inherit; font-size: 1rem; padding: 12px 16px 12px 42px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--soft); outline: none; transition: border-color .15s, background .15s; }
.search input:focus { border-color: var(--brand); background: #fff; }
.sicon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: .95rem; opacity: .6; }
.acts { grid-area: acts; display: flex; gap: 8px; align-items: center; }
.acts a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; border-radius: 999px; padding: 9px 14px; white-space: nowrap; }
.track { color: var(--text); background: var(--soft); }
.cartlink { color: #fff; background: var(--green); }
.cartlink:hover { background: var(--green-dark); }
.cartlink b { background: #fff; color: var(--green-dark); border-radius: 999px; min-width: 22px; padding: 0 6px; text-align: center; font-size: .85rem; }
@media (max-width: 760px) {
  .bar { grid-template-columns: 1fr auto; grid-template-areas: "logo acts" "search search"; gap: 10px; }
  .logo img { height: 40px; }
  .acts .lbl { display: none; }
  .acts a { padding: 9px 12px; }
}

/* Buttons + forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 700 .95rem var(--head); color: #fff; background: var(--brand); border: 0; border-radius: 12px; padding: 11px 18px; cursor: pointer; text-decoration: none; text-align: center; transition: background .15s, transform .05s; }
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.big { display: flex; width: 100%; padding: 15px; font-size: 1.05rem; margin: 14px 0; }
.btn.sm { padding: 8px 12px; font-size: .85rem; border-radius: 10px; }
.btn.ghost { background: #fff; color: var(--text); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: #d8d2ca; background: var(--soft); }
.btn.wa { background: #1fa855; }
.btn.wa:hover { background: #178a45; }
.btn.green { background: var(--green); }
.btn.danger { background: #fff; color: var(--low); border: 1.5px solid #f1c9cb; }
.btn.danger:hover { background: #fdf0f0; }
.link { background: none; border: 0; color: var(--muted); font: inherit; font-size: .8rem; cursor: pointer; padding: 4px 0; text-decoration: underline; }
:focus-visible { outline: 3px solid #f4b400; outline-offset: 2px; }
.form label { display: block; font-weight: 600; margin: 14px 0; font-size: .95rem; }
.form input:not([type=radio]):not([type=checkbox]), .form textarea, details input { display: block; width: 100%; font: inherit; font-size: 1rem; font-weight: 400; padding: 13px 14px; margin-top: 6px; border: 1.5px solid #ddd7cf; border-radius: 12px; background: #fff; outline: none; }
.form input:focus, .form textarea:focus, details input:focus { border-color: var(--brand); }
.form small { display: block; font-weight: 400; margin-top: 5px; }
.form.narrow { max-width: 440px; }
details { margin: 14px 0; } summary { cursor: pointer; color: var(--brand-dark); font-weight: 600; }
fieldset.pay { border: 1.5px solid var(--green); border-radius: 12px; margin: 14px 0; padding: 10px 14px; background: #f3faf4; }
legend { font-weight: 700; padding: 0 4px; font-family: var(--head); font-size: .9rem; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.notice { padding: 12px 14px; border-radius: 12px; background: #fdeeee; color: #8a1c22; border: 1px solid #f4cdd0; margin: 14px 0; }
.notice.ok { background: #ecf8ee; color: #1d5e27; border-color: #c6e8cc; }
.notice.warn { background: #fff7e6; color: #7a5200; border-color: #f6dfa8; }

/* Home: hero */
.hero { display: grid; gap: 16px; margin: 18px 0 6px; padding: 22px; border-radius: 20px; background: radial-gradient(120% 140% at 100% 0%, #fde6e8 0%, #fff6f2 45%, #fff 75%); border: 1px solid #f6e1de; box-shadow: var(--shadow); }
.eyebrow { margin: 0; color: var(--green-dark); font: 700 .78rem var(--head); letter-spacing: 2px; text-transform: uppercase; }
.hero h1 { font-size: clamp(1.45rem, 4.2vw, 2.25rem); font-weight: 800; margin: 8px 0; letter-spacing: -.3px; }
.hero h1 span { color: var(--brand); }
.hero p { margin: 6px 0; color: #45484d; max-width: 56ch; }
.how { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.how li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 6px; font-weight: 600; font-size: .88rem; display: flex; align-items: center; gap: 8px; }
.how b { background: var(--brand); color: #fff; width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font: 800 .8rem var(--head); }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.perks li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 2px; }
.perks span { font-size: 1.4rem; }
.perks b { font: 700 .9rem var(--head); }
.perks small { color: var(--muted); font-size: .78rem; line-height: 1.3; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 34px; } .perks { grid-template-columns: 1fr; } .perks li { grid-template-columns: 40px 1fr; align-items: center; column-gap: 10px; } .perks span { grid-row: span 2; } }
@media (max-width: 520px) { .perks li { padding: 10px 8px; } .perks b { font-size: .8rem; } .perks small { display: none; } }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 15px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); text-decoration: none; color: var(--text); font-weight: 600; font-size: .9rem; }
.chip:hover { border-color: #d8d2ca; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.listhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin: 8px 0 12px; }
.listhead h2 { margin: 0; font-size: 1.15rem; }
.listhead h2 small { font: 500 .85rem Inter, sans-serif; margin-left: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters select { font: 600 .88rem Inter, sans-serif; padding: 8px 30px 8px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b6f75'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; color: var(--text); }
.filters .check { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .88rem; }
.clear { font-weight: 600; font-size: .88rem; }
.empty { background: var(--card); border-radius: var(--radius); padding: 32px 16px; text-align: center; border: 1px solid var(--line); box-shadow: var(--shadow); }
.empty .big { font-size: 2.4rem; margin: 0; }

/* Product grid */
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1120px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 8px; position: relative; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
@media (hover: hover) { .card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,20,10,.09); } }
.cardlink { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .name { font-weight: 600; font-size: .9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.unit { color: var(--muted); font-size: .8rem; }
.img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 10px; background: var(--soft); }
.ph { display: grid; place-items: center; background: linear-gradient(145deg, hsl(var(--h) 75% 96%), hsl(var(--h) 60% 90%)); }
.ph span { font: 800 1.9rem var(--head); color: hsl(var(--h) 45% 36%); letter-spacing: 1px; opacity: .85; }
.badge { position: absolute; top: 16px; left: 16px; background: var(--green); color: #fff; font: 800 .68rem var(--head); letter-spacing: .5px; padding: 3px 8px; border-radius: 6px; }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.price { font: 800 1.05rem var(--head); color: var(--text); }
.mrp { color: var(--muted); font-size: .8rem; }
.save { color: var(--green-dark); font-weight: 700; font-size: .75rem; }

/* ADD / − qty + */
.qty { display: flex; align-items: center; min-height: 38px; }
.qty form { margin: 0; }
.add { font: 800 .85rem var(--head); letter-spacing: .5px; color: var(--green-dark); background: #fff; border: 1.5px solid var(--green); border-radius: 10px; padding: 8px 18px; cursor: pointer; transition: background .15s; }
.add:hover { background: #effaf0; }
.qty.on { background: var(--green); border-radius: 10px; color: #fff; }
.step { width: 34px; height: 38px; border: 0; background: transparent; color: #fff; font-size: 1.25rem; font-weight: 700; cursor: pointer; line-height: 1; border-radius: 10px; }
.step:hover:not(:disabled) { background: rgba(0,0,0,.12); }
.step:disabled { opacity: .45; cursor: default; }
.qty .n { min-width: 22px; text-align: center; font: 800 .95rem var(--head); }
.soldout { color: var(--muted); font-weight: 600; font-size: .85rem; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 22px 0; }

/* Product page */
.detail { display: grid; gap: 20px; background: var(--card); border-radius: 20px; padding: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (min-width: 760px) { .detail { grid-template-columns: 400px 1fr; padding: 26px; } }
.bigimg { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 14px; background: var(--soft); }
.bigimg.ph span { font-size: 4.5rem; }
.detail h1 { margin-top: 4px; font-size: 1.45rem; }
.bigprice .price { font-size: 1.7rem; color: var(--brand); }
.detail .qty { margin: 16px 0; }
.detail .add { padding: 12px 40px; font-size: 1rem; }
.detail .qty.on { display: inline-flex; }
.detail .step { width: 46px; height: 46px; }
.offer { color: var(--green-dark); font-weight: 700; }
.desc { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.trust li { background: var(--soft); border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-weight: 600; }

/* Cart + checkout */
.lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lines li { display: grid; grid-template-columns: 68px 1fr auto; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.thumb { width: 68px; height: 68px; object-fit: contain; border-radius: 10px; background: var(--soft); }
.thumb.ph span { font-size: 1.2rem; }
.lines a { text-decoration: none; }
.lines .name { font-weight: 600; color: inherit; display: block; }
.lines .qty { margin-top: 6px; display: inline-flex; }
.linetotal { text-align: right; font: 800 1rem var(--head); }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 16px 0; box-shadow: var(--shadow); }
.summary h2 { margin-top: 0; }
.summary > div, .plain li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.grand { border-top: 1px dashed #ddd7cf; font: 800 1.1rem var(--head); margin-top: 6px; padding-top: 12px !important; }
.cartpage { display: grid; gap: 16px; }
@media (min-width: 900px) { .cartpage, .checkout { grid-template-columns: 1fr 370px; align-items: start; } .cartpage .summary, .checkout .summary { margin: 0; position: sticky; top: 100px; } }
.checkout { display: grid; gap: 16px; }
.checkout .form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px 12px; box-shadow: var(--shadow); }
.steps3 { display: flex; gap: 6px; margin: 10px 0 4px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.steps3 span { padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.steps3 .on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Order placed + tracking */
.placed { text-align: center; background: linear-gradient(160deg, #ecf8ee, #fff 70%); border: 1px solid #cfe9d3; border-radius: 20px; padding: 24px 18px; margin: 18px 0; box-shadow: var(--shadow); }
.placed .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; display: inline-grid; place-items: center; font-size: 2rem; margin-bottom: 4px; }
.placed h1 { margin: 6px 0; color: var(--green-dark); }
.placed .onum { display: inline-block; font: 800 1.15rem var(--head); background: #fff; border: 1.5px dashed var(--green); border-radius: 10px; padding: 6px 14px; margin: 6px 0; }
.placed .btn { max-width: 420px; margin: 14px auto 0; }
.track { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; margin: 18px 0; box-shadow: var(--shadow); }
.trackhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.trackhead h2 { margin: 0; }
.steps { list-style: none; padding: 0; margin: 18px 0; }
.steps li { position: relative; padding: 0 0 20px 40px; color: var(--muted); }
.steps li::before { content: ""; position: absolute; left: 4px; top: 1px; width: 22px; height: 22px; border-radius: 50%; border: 3px solid #ddd7cf; background: #fff; box-sizing: border-box; }
.steps li::after { content: ""; position: absolute; left: 14px; top: 26px; bottom: 2px; width: 2px; background: #ddd7cf; }
.steps li:last-child::after { display: none; }
.steps li.done { color: var(--text); }
.steps li.done::before { border-color: var(--green); background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='%23fff' stroke-width='2.2' fill='none'/%3E%3C/svg%3E") no-repeat center; }
.steps li.done::after { background: var(--green); }
.steps b { font-family: var(--head); }
.steps small { display: block; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li + li { border-top: 1px solid var(--soft); }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* Mobile cart bar */
.cartbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--green); color: #fff; text-decoration: none; padding: 14px 18px; border-radius: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(20,80,30,.35); max-width: 560px; margin: 0 auto; }
.cartbar span:last-child { font: 800 .95rem var(--head); }
.cartbar[hidden], body[data-page=cart] .cartbar, body[data-page=checkout] .cartbar { display: none; }

.foot { background: #1d1e20; color: #c9cbce; margin-top: 40px; padding: 28px 0 10px; font-size: .92rem; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot h4 { color: #fff; margin: 0 0 8px; font-size: .95rem; }
.foot .cols { display: grid; gap: 20px 32px; }
@media (min-width: 760px) { .foot .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot p { margin: 5px 0; }
.flogo { display: inline-block; background: #fff; border-radius: 12px; padding: 6px 10px; }
.flogo img { height: 44px; width: auto; display: block; }
.foot .tag { color: #9fa3a8; letter-spacing: 2px; text-transform: uppercase; font-size: .72rem; font-weight: 700; }
.copy { border-top: 1px solid #333538; margin-top: 20px; padding-top: 12px; color: #8d9196; font-size: .8rem; }

/* Owner */
body[data-page=owner] { padding-bottom: 24px; }
.login { max-width: 420px; margin: 6vh auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px 22px; box-shadow: var(--shadow); text-align: center; }
.login .form { text-align: left; }
.loginlogo { width: 220px; height: auto; }
.login h1 { margin: 8px 0 2px; }
.ohead { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ohead .logo img { height: 44px; }
.otitle { display: grid; flex: 1; min-width: 140px; }
.otitle b { font: 800 1.15rem var(--head); }
.oacts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.oacts form { margin: 0; }
@media (max-width: 560px) { .ohead .lbl { display: none; } }
.stats { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 0; }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); display: grid; }
.stat small { color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: .7rem; letter-spacing: 1px; }
.stat b { font: 800 1.6rem var(--head); }
.stat span { color: var(--muted); font-size: .8rem; }
.stat.hot { background: linear-gradient(150deg, #fdecee, #fff); border-color: #f6d3d6; }
.stat.hot b { color: var(--brand); }
.stat.good b { color: var(--green-dark); }
.otools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 6px 0 14px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; text-decoration: none; color: var(--text); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 12px; font-weight: 600; font-size: .85rem; }
.tab b { background: var(--soft); border-radius: 999px; padding: 0 7px; margin-left: 2px; font-size: .78rem; }
.tab.on { background: var(--text); color: #fff; border-color: var(--text); }
.tab.on b { background: rgba(255,255,255,.2); }
.tab.hot b { background: var(--brand); color: #fff; }
.osearch input { font: inherit; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); min-width: 240px; background: #fff; }
.orders { display: grid; gap: 14px; }
@media (min-width: 820px) { .orders { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .orders { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ocard { background: #fff; border: 1px solid var(--line); border-left: 5px solid #c9c3bb; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.ocard header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ocard p { margin: 0; }
.onum { font: 800 1rem var(--head); }
.pill { font: 700 .72rem var(--head); padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.st-pending { border-left-color: var(--brand); } .pill.st-pending { background: #fdeaec; color: var(--brand-dark); }
.st-confirmed { border-left-color: #2563eb; } .pill.st-confirmed { background: #e8efff; color: #1e4fc2; }
.st-processing { border-left-color: #d97706; } .pill.st-processing { background: #fff3e0; color: #9a5600; }
.st-dispatched { border-left-color: #7c3aed; } .pill.st-dispatched { background: #f1e9ff; color: #5b21b6; }
.st-delivered { border-left-color: var(--green); } .pill.st-delivered { background: #e8f6ea; color: var(--green-dark); }
.st-cancelled, .st-refunded { border-left-color: #9ca3af; opacity: .85; }
.cust { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.cust a { text-decoration: none; font-weight: 600; font-size: .88rem; }
.addr { font-size: .88rem; background: var(--soft); border-radius: 10px; padding: 8px 10px; }
.oitems { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 4px 0; }
.oitems td { padding: 5px 0; border-bottom: 1px solid var(--soft); vertical-align: top; }
.oitems .q { color: var(--muted); white-space: nowrap; padding: 5px 8px; }
.oitems .a { text-align: right; white-space: nowrap; font-weight: 600; }
.oitems .tot td { border: 0; font: 800 1rem var(--head); padding-top: 8px; }
.ocard .oacts { margin-top: auto; padding-top: 6px; }

@media print {
  body * { visibility: hidden; }
  .ocard.printing, .ocard.printing * { visibility: visible; }
  .ocard.printing { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; border: 1px solid #000; }
  .ocard.printing .oacts { display: none; }
}
