:root {
  color-scheme: light;
  --bg: #f6f8f5;
  --surface: #ffffff;
  --surface-alt: #f1f5ef;
  --surface-soft: #edf1ed;
  --ink: #182e28;
  --ink-strong: #263c32;
  --green: #14664d;
  --green-soft: #edf6ec;
  --green-border: #4e8862;
  --deep: #103e32;
  --muted: #52645d;
  --line: #d6ded8;
  --line-soft: #e1e7e0;
  --input-border: #c8d3cb;
  --gold: #ddb365;
  --warn: #98612c;
  --footer-bg: #eaf0e9;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1412;
  --surface: #171e1b;
  --surface-alt: #1f2824;
  --surface-soft: #222d28;
  --ink: #e8f1ec;
  --ink-strong: #f2f8f4;
  --green: #33b87a;
  --green-soft: #173428;
  --green-border: #2f8f63;
  --deep: #0c2c22;
  --muted: #9eb3a8;
  --line: #2a3731;
  --line-soft: #24302a;
  --input-border: #34453d;
  --gold: #e3b25d;
  --warn: #f0ad62;
  --footer-bg: #121916;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.5; background: var(--bg); color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
button { transition: background .15s, border-color .15s, filter .15s; }
button:hover { filter: brightness(.96); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #2b9972; outline-offset: 2px;
}
a { color: var(--green); }
code { background: var(--surface-alt); padding: 2px 6px; border-radius: 5px; font-size: .9em; }

/* Header & Navigation */
header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.wrap { width: min(1140px, calc(100% - 48px)); margin: auto; }
.top, .brand, nav, .currency, .header-actions, .eyebrow, .receipt-meta, .receipt-meta span, .mode, .platforms, .rate-label, .range-ends, .presets, .legend, .legend span, .field, .money-input, .config h2, .quick-amounts, .vbar-head, .local-payout-head {
  display: flex; align-items: center;
}
.top { height: 68px; gap: 24px; }
.brand { font-weight: 790; letter-spacing: -1.4px; font-size: 25px; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brandmark { width: 32px; height: 32px; border-radius: 8px; background: var(--deep); display: flex; justify-content: center; align-items: flex-end; padding: 7px 5px; gap: 3px; border: 1px solid #2a634e; }
.brandmark i { width: 4px; background: #bde5bd; height: 8px; transform: skewY(-15deg); }
.brandmark i:nth-child(2) { height: 13px; }
.brandmark i:nth-child(3) { height: 18px; }
nav { gap: 22px; margin-left: auto; }
nav a, .nav-drop-btn { font-weight: 550; color: var(--muted); font-size: 14px; text-decoration: none; background: none; border: 0; padding: 6px 2px; }
nav a:hover, nav a[aria-current="page"], .nav-drop-btn:hover { color: var(--green); }
.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 10px); right: -20px; width: 250px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.14); padding: 8px; display: grid; gap: 2px; z-index: 50;
}
.nav-drop-menu a { padding: 8px 11px; border-radius: 7px; font-size: 13.5px; color: var(--ink); }
.nav-drop-menu a:hover, .nav-drop-menu a[aria-current="page"] { background: var(--green-soft); color: var(--green); text-decoration: none; }
.header-actions { gap: 10px; }
.currency { gap: 5px; padding: 2px 8px 2px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.currency span { font-size: 18px; color: var(--muted); }
select {
  appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%236d8277' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  padding-right: 32px !important;
}
.currency select { border: 0; font-size: 13.5px; font-weight: 700; background-position: right 2px center; padding: 5px 18px 5px 0 !important; }
.theme-btn {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
}

/* Hero */
.hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 30px 0 26px; }
.eyebrow, .receipt-meta { font-size: 11px; letter-spacing: 1.7px; font-weight: 740; }
.eyebrow { gap: 9px; color: var(--green); }
.mini-line { width: 24px; height: 2px; background: var(--green); }
h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.03; letter-spacing: -2.4px; margin: 12px 0 10px; font-weight: 660; }
h1 em { font-family: Georgia, serif; color: var(--green); font-weight: normal; letter-spacing: -1.8px; }
.hero p, .comparison-title p { margin: 0; color: var(--muted); max-width: 620px; }
.art { width: 250px; height: 158px; position: relative; isolation: isolate; margin-right: 32px; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 9px 9px; flex-shrink: 0; }
.paper { width: 98px; height: 118px; border: 1.5px solid #365e48; position: absolute; left: 78px; top: 18px; background: #c8dfc1; transform: rotate(-14deg); box-shadow: 4px 4px 0 #a9c5a7; }
.paper.front { transform: rotate(9deg); left: 96px; top: 16px; padding: 13px 10px; background: #edf4e6; box-shadow: 3px 4px 0 #9fbc9f; }
.paper.front b, .paperfoot { font: 700 10px monospace; letter-spacing: 1px; color: #365d47; }
.artline { display: block; margin-top: 8px; height: 2px; width: 90%; background: #9ab699; }
.artline.short { width: 65%; }
.paperfoot { display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed #7d9b7a; margin-top: 15px; padding-top: 7px; }
.coin { position: absolute; left: 162px; top: 92px; width: 50px; height: 50px; background: #bbd6af; border: 2px solid #426949; border-radius: 50%; outline: 1px solid #426949; outline-offset: -6px; text-align: center; color: #385a3d; font: bold italic 34px/45px Georgia; box-shadow: 4px 3px #6b8c67; transform: rotate(12deg); }
.spark { position: absolute; left: 48px; top: 38px; color: #608b68; font-size: 22px; }
.spark.small { left: 208px; top: 22px; font-size: 18px; }

/* Workspace & Cards */
.workspace { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: stretch; }
.card { border: 1px solid var(--line); background: var(--surface); border-radius: 15px; box-shadow: 0 3px 10px rgba(0,0,0,.04); }
.config { padding: 24px 26px; }
.config h2, .comparison h2 { font-size: 21px; letter-spacing: -.6px; margin: 0; line-height: 1.3; }
.config h2 { gap: 10px; }
.section-icon { font: 700 22px/1 monospace; color: var(--green); }
.mode { background: var(--surface-soft); border: 1px solid var(--line); padding: 4px; border-radius: 9px; margin: 16px 0; gap: 4px; }
.mode button { flex: 1; border: none; background: transparent; padding: 9px 4px; border-radius: 6px; color: var(--muted); font-weight: 650; font-size: 14px; }
.mode button span { margin-right: 4px; }
.mode button[aria-pressed=true] { color: #fff; background: var(--deep); }
[data-theme="dark"] .mode button[aria-pressed=true] { background: #1e6b4f; }
.config label, .label { display: block; font-size: 13.5px; font-weight: 650; margin: 0 0 6px; }
.money-input, .field, .config input[type=number], .config input[type=text], .config input[type=date], .config select, .config textarea {
  border: 1px solid var(--input-border); border-radius: 8px; background-color: var(--surface); color: var(--ink);
}
.config input[type=number], .config input[type=text], .config input[type=date], .config select, .config textarea {
  width: 100%; padding: 8px 10px;
}
.money-input { gap: 8px; padding: 4px 14px; font-size: 26px; font-weight: 600; letter-spacing: -.6px; }
.money-input span, .field span { color: var(--muted); }
input[type=number] { appearance: textfield; -moz-appearance: textfield; }
input::-webkit-inner-spin-button { appearance: none; }
.money-input input, .field input { background: transparent; width: 100%; min-width: 0; border: none; padding: 4px 0; font-variant-numeric: tabular-nums; }
.field { padding: 0 10px; }
.field input { border: 0 !important; padding: 7px 0 !important; }

/* Quick amount pills */
.quick-amounts { gap: 7px; margin-top: 8px; flex-wrap: wrap; }
.quick-amounts button, .presets button {
  border: 1px solid var(--line); background: var(--surface-alt); border-radius: 6px;
  font-size: 12.5px; font-weight: 600; padding: 4px 10px; color: var(--muted);
}
.quick-amounts button:hover, .quick-amounts button.active, .presets button.active {
  background: var(--green-soft); border-color: var(--green-border); color: var(--green);
}

.label { margin-top: 16px; }
.platforms { gap: 7px; }
.platforms button {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: 13.5px; padding: 8px 4px;
}
.platforms button[aria-pressed=true] { background: var(--green-soft); border-color: var(--green-border); color: var(--green); }
.up, .fi, .pp, .custom { font: 800 15px Arial; letter-spacing: -1.2px; }
.up { color: #298213; }
[data-theme="dark"] .up { color: #56cf3e; }
.fi { color: var(--ink); }
.fi span { color: #159453; }
.pp { font-style: italic; color: #1059a1; }
[data-theme="dark"] .pp { color: #5cb0ff; }
.custom { color: var(--muted); }
.settings { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 14px; }
.settings p { margin: 0 0 10px; }
.settings input + label, .settings select + label { margin-top: 11px; }
.settings input[type=checkbox] { accent-color: var(--green); width: auto; margin-right: 6px; }
.check { display: flex !important; align-items: center; gap: 4px; margin-top: 10px !important; font-weight: 550 !important; cursor: pointer; }
.rate-label, .range-ends, .legend, .receipt-meta { justify-content: space-between; }
.rate-label label { margin: 0; }
.rate-label output { background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: bold; border-radius: 5px; padding: 1px 7px; }
input[type=range] { width: 100%; height: 5px; margin: 12px 0 4px; accent-color: var(--green); cursor: pointer; }
.range-ends { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.presets { gap: 7px; margin-top: 7px; flex-wrap: wrap; }

#fx-box { margin-top: 12px; max-width: 290px; }
#fx-box .field { padding: 2px 10px; gap: 8px; }
#fx-unit { font-size: 13.5px; font-weight: 600; }
.fx-status { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }

/* Receipt Card */
.receipt { overflow: hidden; display: flex; flex-direction: column; }
.receipt-head {
  background-color: var(--deep);
  background-image: linear-gradient(90deg, rgba(16,62,50,.85) 25%, transparent), linear-gradient(#a5d9b810 1px, transparent 1px), linear-gradient(90deg, #a5d9b810 1px, transparent 1px);
  background-size: auto, 20px 20px, 20px 20px;
  color: #fff; padding: 20px 26px 17px;
}
.receipt-meta { color: #d8e8d9; }
.receipt-meta span { gap: 8px; }
.platform-tag { font-size: 12px; letter-spacing: 0; border: 1px solid #67907e; border-radius: 20px; padding: 2px 10px; background: #ffffff0c; }
.receipt-head p { margin: 14px 0 2px; font-size: 14px; color: #e0ece3; }
.receipt-head output { font: normal clamp(38px, 3.8vw, 54px)/1.1 Georgia; letter-spacing: -1.8px; color: #e5f5dd; }
.receipt-body { padding: 15px 26px 20px; display: flex; flex-direction: column; flex: 1; }
.ledger > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 0; font-size: 14px; color: var(--muted); }
.ledger b, td:last-child { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; color: var(--ink-strong); font-weight: 600; }
#percent { color: var(--warn); }
.ledger .net { border-block: 1px dashed var(--line); padding: 11px 0; margin: 7px 0 12px; color: var(--green); font-size: 15.5px; }
.net b { font-size: 21px; color: var(--green); }
.bar { height: 9px; background: var(--gold); border-radius: 9px; overflow: hidden; }
.bar div { height: 100%; width: 90%; background: #2ba870; transition: width .2s ease; }
.legend { gap: 8px; color: var(--muted); font-size: 12px; margin-top: 6px; }
.legend span { gap: 4px; }
.legend i { height: 7px; width: 7px; border-radius: 2px; background: #2ba870; }
.legend span + span i { background: var(--gold); }
#allocation { margin-bottom: 14px; }

/* Local Payout Estimator inside Receipt */
.local-payout {
  background: var(--surface-alt); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 13px; margin-bottom: 14px;
}
.local-payout-head { justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.local-payout-head span { font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.local-payout-head select { border: 1px solid var(--line); border-radius: 6px; font-size: 12.5px; font-weight: 700; padding: 2px 24px 2px 8px !important; }
.local-payout-val strong { display: block; font-size: 19px; color: var(--ink-strong); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.local-payout-val small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }

#copy, .copy-btn {
  width: 100%; border: 1px solid var(--input-border); border-radius: 8px; background: var(--surface-alt);
  color: var(--ink); font-weight: 650; font-size: 14px; padding: 10px; margin-top: auto;
}
.primary-btn {
  width: 100%; border: 0; border-radius: 8px; background: var(--deep); color: #fff;
  font-weight: 650; font-size: 14.5px; padding: 11px 16px;
}
[data-theme="dark"] .primary-btn { background: #1e7a56; }
.swap-btn {
  margin-top: 10px; border: 1px solid var(--line); background: var(--surface-alt);
  border-radius: 7px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--ink);
}
#error, .err-msg { color: #d64538; font-size: 13.5px; margin: 10px 0 0; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); padding: 10px 20px; border-radius: 8px; background: var(--deep); color: #fff; z-index: 60; border: 1px solid #2b7a5b; }
#toast:empty, [hidden] { display: none !important; }

/* Visual Comparison Bars (Screenshot 2 inspired) */
.comparison { overflow: hidden; margin: 24px 0 34px; }
.comparison-title { padding: 20px 26px 14px; }
.comparison-title p { font-size: 14px; margin-top: 4px; }
.visual-bars { padding: 4px 26px 14px; display: grid; gap: 16px; }
.vbar-row { display: grid; gap: 6px; }
.vbar-head { justify-content: space-between; gap: 10px; font-size: 14.5px; }
.vbar-head small { color: var(--muted); font-weight: 400; }
.vbar-head b { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 16px; color: var(--ink-strong); }
.vbar-track { height: 18px; background: var(--surface-soft); border-radius: 99px; overflow: hidden; border: 1px solid var(--line-soft); }
.vbar-fill { height: 100%; border-radius: 99px; transition: width .3s ease; }
.vbar-direct { background: linear-gradient(90deg, #158059, #25b878); }
.vbar-paypal { background: linear-gradient(90deg, #1b7f63, #31b086); }
.vbar-upwork { background: linear-gradient(90deg, #217b54, #3ea873); }
.vbar-fiverr { background: linear-gradient(90deg, #2d7355, #4d9e77); }
.vbar-meta { font-size: 12.5px; color: var(--muted); }
.comparison-note { margin: 0; padding: 12px 26px 18px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line-soft); }

/* Compare / Hourly / Invoice layouts */
.compare-controls, .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 16px 0 20px; }
.hub-card {
  display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface); text-decoration: none; transition: border-color .15s, transform .15s;
}
.hub-card:hover { border-color: var(--green-border); transform: translateY(-2px); }
.hub-card strong { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 3px; }
.hub-card span { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; }

/* Invoice Generator */
.invoice-workspace { display: grid; grid-template-columns: 1fr 1.08fr; gap: 22px; align-items: start; margin-bottom: 34px; }
.inv-item-row { display: grid; grid-template-columns: 1fr 64px 92px 32px; gap: 7px; margin-bottom: 8px; align-items: center; }
.inv-rm { border: 1px solid var(--line); background: var(--surface-alt); border-radius: 6px; height: 36px; color: var(--muted); font-weight: 700; }
.inv-preview-wrap { padding: 22px; }
.inv-sheet { background: #ffffff; color: #182e28; border: 1px solid #d6ded8; border-radius: 10px; padding: 26px; }
.inv-sheet-top { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #103e32; padding-bottom: 14px; margin-bottom: 18px; }
.inv-badge { font-size: 11px; font-weight: 800; letter-spacing: 2px; color: #14664d; }
.inv-sheet-top h2 { margin: 2px 0 0; font-size: 22px; color: #103e32; }
.inv-dates { text-align: right; font-size: 13px; color: #52645d; display: grid; gap: 3px; }
.inv-dates strong { color: #182e28; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.inv-parties small, .inv-notes-box small { font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; color: #52645d; display: block; margin-bottom: 4px; }
.inv-parties pre { margin: 0; font-family: inherit; font-size: 13.5px; white-space: pre-wrap; color: #182e28; line-height: 1.45; }
.inv-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 13.5px; }
.inv-table th { background: #f1f5ef; color: #52645d; font-size: 11px; text-transform: uppercase; padding: 8px 10px; border-top: 1px solid #d6ded8; border-bottom: 1px solid #d6ded8; text-align: left; }
.inv-table th:nth-child(n+2), .inv-table td:nth-child(n+2) { text-align: right; }
.inv-table td { padding: 9px 10px; border-bottom: 1px solid #e6ece7; color: #182e28; }
.inv-totals { margin-left: auto; max-width: 260px; display: grid; gap: 6px; font-size: 13.5px; color: #52645d; }
.inv-totals > div { display: flex; justify-content: space-between; }
.inv-totals b { color: #182e28; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.inv-grand { border-top: 2px solid #103e32; padding-top: 8px; margin-top: 4px; font-size: 16px; color: #103e32 !important; }
.inv-notes-box { margin-top: 22px; padding-top: 12px; border-top: 1px dashed #c8d3cb; }
.inv-notes-box p { margin: 0; font-size: 13px; color: #42564a; }
.inv-actions { margin-top: 16px; }

/* Article & Tables */
.ad-slot:not(:empty):has(ins) { margin: 24px auto; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 14px; }
th, td { padding: 11px 16px; border-top: 1px solid var(--line-soft); }
thead { background: var(--surface-alt); }
thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
article { max-width: 880px; margin: 34px auto 56px; }
article section { margin: 26px 0; }
article h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.6px; }
article h3 { font-size: 18px; margin-bottom: 6px; }
article p, article li { color: var(--muted); }
article li { margin: 8px 0; }
article strong { color: var(--ink); }
.sources { font-size: 13.5px; margin-top: 14px; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { font-weight: 650; color: var(--ink); }
details p { margin: 8px 0 0; }

/* Footer */
footer { background: var(--footer-bg); border-top: 1px solid var(--line); padding: 36px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.footer-brand p { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); max-width: 320px; }
.footer-col { display: flex; flex-direction: column; gap: 7px; }
.footer-col h3 { margin: 0 0 4px; font-size: 12.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink); }
.footer-col a { font-size: 13.5px; color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--green); text-decoration: underline; }
.footer-bottom p { margin: 18px 0 0; font-size: 12.5px; color: var(--muted); }

/* Info Pages */
.info-page { min-height: 100vh; display: flex; flex-direction: column; }
.info-page main { flex: 1; }
.info-article { max-width: 780px; padding: clamp(22px, 5vw, 50px); margin: clamp(22px, 5vw, 48px) auto; }
.info-article h1 { margin: 0 0 18px; font-size: clamp(32px, 4.5vw, 48px); }
.info-article h2 { margin: 1.5em 0 .45em; font-size: clamp(20px, 3vw, 24px); }
.info-article .intro { font-size: 1.1rem; line-height: 1.6; color: var(--ink); }
.info-article .email-link { font-weight: 650; overflow-wrap: anywhere; }

/* Responsive */
@media(max-width: 860px) {
  .wrap { width: calc(100% - 32px); }
  .workspace, .invoice-workspace { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .art { display: none; }
}
@media(max-width: 640px) {
  .top { height: auto; flex-wrap: wrap; padding: 10px 0; gap: 10px; }
  nav { order: 3; width: 100%; justify-content: space-between; margin: 4px 0 0; padding-top: 8px; border-top: 1px solid var(--line-soft); gap: 8px; }
  .nav-drop-menu { left: 0; right: auto; width: min(260px, 90vw); }
  .compare-controls, .two-col, .footer-grid, .inv-parties { grid-template-columns: 1fr; }
  .platforms { display: grid; grid-template-columns: 1fr 1fr; }
  .config, .receipt-body, .receipt-head, .visual-bars, .comparison-title { padding-left: 16px; padding-right: 16px; }
  .inv-item-row { grid-template-columns: 1fr 54px 76px 30px; }
}

/* Clean PDF Print Styles for Invoice Generator */
@media print {
  header, footer, .no-print, .ad-slot { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .wrap { width: 100% !important; max-width: 100% !important; margin: 0 !important; }
  .invoice-workspace { display: block !important; margin: 0 !important; }
  .inv-preview-wrap { border: 0 !important; box-shadow: none !important; padding: 0 !important; }
  .inv-sheet { border: 0 !important; padding: 0 !important; }
}

select option {
  background: var(--surface);
  color: var(--ink);
}
.inline-fx-box {
  margin-top: 12px;
  max-width: 290px;
}
.inline-fx-box .field {
  padding: 2px 10px;
  gap: 8px;
}
.inline-fx-box .field span {
  font-size: 13.5px;
  font-weight: 600;
}
.fx-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.warn-val {
  color: var(--warn) !important;
}

.receipt-subnote {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: #b7d6be;
}
