/* Finanzas KODEX — visual replica of the private app */
:root {
  --bg: #090c11;
  --bg-card: #0f141b;
  --bg-card-2: #111823;
  --bg-input: #0b1017;
  --border: #1d2530;
  --border-soft: #161d26;
  --text: #f2f5f9;
  --text-dim: #8a94a1;
  --text-faint: #5d6672;
  --green: #22c55e;
  --green-dark: #16a34a;
  --green-ink: #052e14;
  --red: #f0524d;
  --amber: #f5a623;
  --radius: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  min-height: 100vh;
}
.hidden { display: none !important; }
a { color: var(--green); text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: 54px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px;
  background: #0a0d12;
  border-bottom: 1px solid var(--border-soft);
}
.topbar .logo-mark {
  width: 22px; height: 22px; border: 2px solid var(--text-dim);
  border-radius: 5px; display: inline-block;
}
.topbar .logo-name { font-weight: 700; font-size: 15px; letter-spacing: .2px; }
.topbar .spacer { flex: 1; }
.topbar-user { font-size: 13px; color: var(--text-dim); }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed; left: 0; top: 54px; bottom: 0; width: 76px;
  background: #0a0d12;
  border-right: 1px solid var(--border-soft);
  display: flex; flex-direction: column; align-items: stretch;
  padding: 26px 0; gap: 26px; z-index: 30;
}
.nav-btn {
  background: none; border: 0; color: var(--text-faint);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 600; padding: 6px 4px;
}
.nav-btn svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 2; }
.nav-btn.active, .nav-btn:hover { color: var(--text); }
.nav-btn.active svg { stroke: var(--green); }

/* ---------- Layout ---------- */
.main { margin-left: 76px; padding: 26px 28px 80px; }
.wrap { max-width: 1180px; margin: 0 auto; }
.view-head { position: relative; margin-bottom: 22px; }
.eyebrow { font-size: 12.5px; color: var(--text-dim); font-weight: 600; margin-bottom: 6px; }
h1.title { font-size: 44px; font-weight: 800; letter-spacing: -1px; line-height: 1.05; }
.head-actions { position: absolute; right: 0; top: 0; display: flex; gap: 18px; align-items: center; }
.link-green { color: var(--green); font-weight: 700; font-size: 14px; background: none; border: 0; }
.link-red { color: var(--red); font-weight: 700; font-size: 14px; background: none; border: 0; }
.link-dim { color: var(--text-dim); font-size: 13px; background: none; border: 0; font-weight: 600; }
.link-dim:hover { color: var(--text); }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 22px;
}
.card.accent-top { border-top: 3px solid var(--green); }
.card-title { font-size: 21px; font-weight: 750; letter-spacing: -.3px; margin-bottom: 4px; }
.card-sub { font-size: 12.5px; color: var(--text-dim); }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14.5px;
  padding: 11px 13px;
  font-family: inherit;
}
.field textarea { resize: vertical; min-height: 74px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: .7fr 1fr 1fr; gap: 14px; }
.sale-item { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 4px; }
.sale-item:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.item-title { font-size: 12.5px; font-weight: 750; color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em; }
.item-remove { background: none; border: 0; color: var(--red); font-size: 13px; font-weight: 650; padding: 2px 4px; }
.btn-add-item {
  width: 100%; background: transparent; color: var(--green);
  border: 1.5px dashed rgba(34, 197, 94, .55); border-radius: 8px;
  font-weight: 700; font-size: 14.5px; padding: 11px 0; margin: 2px 0 16px;
}
.btn-add-item:hover { background: rgba(34, 197, 94, .08); }
.batch-badge {
  display: inline-block; font-size: 11px; font-weight: 750;
  background: #182030; color: #7dd3fc;
  border-radius: 20px; padding: 2px 10px; margin-top: 6px; margin-left: 6px;
}

.btn {
  display: inline-block; border: 0; border-radius: 8px;
  font-weight: 750; font-size: 15px; padding: 12px 26px;
}
.btn-primary { background: var(--green); color: #04120a; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-primary:disabled { opacity: .55; cursor: default; }
.btn-block { width: 100%; }
.error { color: var(--red); font-size: 13.5px; margin: 10px 0; }

/* ---------- Login ---------- */
.login-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.login-card {
  width: 400px; max-width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-top: 3px solid var(--green);
  border-radius: 4px;
  padding: 34px 34px 30px;
}
.login-card .eyebrow { margin-bottom: 8px; }
.login-card h1 { font-size: 37px; font-weight: 800; letter-spacing: -.8px; margin-bottom: 12px; }
.login-card p.desc { color: var(--text-dim); font-size: 14.5px; margin-bottom: 24px; }

/* ---------- Registrar layout ---------- */
.reg-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.summary-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  background: #0a0e13;
  border-top: 1px solid var(--border-soft);
  margin: 18px -22px -22px; padding: 16px 22px;
  border-radius: 0 0 var(--radius) var(--radius);
}
.summary-strip .ss-label { font-size: 12px; color: var(--text-dim); }
.summary-strip .ss-value { font-size: 21px; font-weight: 800; margin-top: 2px; }
.ss-value.green { color: var(--green); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* autocomplete */
.ac-wrap { position: relative; }
.ac-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20;
  background: var(--bg-card-2); border: 1px solid var(--border);
  border-radius: 8px; max-height: 260px; overflow-y: auto;
}
.ac-item { padding: 10px 13px; cursor: pointer; border-bottom: 1px solid var(--border-soft); }
.ac-item:last-child { border-bottom: 0; }
.ac-item:hover { background: #182030; }
.ac-item .n { font-size: 13.5px; font-weight: 600; }
.ac-item .m { font-size: 12px; color: var(--text-dim); }

/* ---------- Últimas ventas / history cards ---------- */
.panel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.sale-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.sale-top { display: flex; gap: 14px; }
.date-badge { text-align: center; min-width: 40px; }
.date-badge .d { font-size: 21px; font-weight: 800; line-height: 1; }
.date-badge .m { font-size: 10.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; }
.sale-info { flex: 1; min-width: 0; }
.sale-name { font-weight: 750; font-size: 14.5px; }
.sale-sub { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.sale-desc { font-size: 12.5px; color: var(--text-dim); margin-top: 6px; }
.sale-links { margin-top: 8px; display: flex; gap: 14px; }
.seller-badge {
  display: inline-block; font-size: 11px; font-weight: 750;
  background: #182030; color: var(--green);
  border-radius: 20px; padding: 2px 10px; margin-top: 6px;
}
.edited-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  background: #182030; color: var(--text-dim);
  border: 1px solid var(--border-soft);
  border-radius: 20px; padding: 2px 10px; margin-top: 6px; margin-left: 6px;
}
.sale-nums {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}
.sn-label { font-size: 11.5px; color: var(--text-dim); }
.sn-value { font-size: 14.5px; font-weight: 750; text-align: right; }
.sn-value.green { color: var(--green); }

/* ---------- Paid tracking ---------- */
.paid-btn {
  border: 1px solid var(--border);
  background: none; color: var(--text-dim);
  font-weight: 700; font-size: 13px;
  padding: 6px 14px; border-radius: 7px;
}
.paid-btn.paid-off:hover { border-color: var(--green); color: var(--green); }
.paid-btn.paid-on {
  background: var(--green); border-color: var(--green);
  color: #04120a;
}
.paid-btn:disabled { opacity: .6; cursor: default; }
.sale-card.paid-card {
  border-color: rgba(34, 197, 94, .45);
  background: linear-gradient(180deg, rgba(34, 197, 94, .08), var(--bg-card) 60%);
}
.paid-badge {
  display: inline-block; font-size: 11px; font-weight: 750;
  background: rgba(34, 197, 94, .14); color: var(--green);
  border: 1px solid rgba(34, 197, 94, .45);
  border-radius: 20px; padding: 2px 10px; margin-top: 6px;
}

/* ---------- Dashboard ---------- */
.filter-card { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pills { display: flex; background: var(--bg-input); border: 1px solid var(--border-soft); border-radius: 9px; padding: 4px; }
.pill { border: 0; background: none; color: var(--text-dim); font-weight: 700; font-size: 13.5px; padding: 8px 20px; border-radius: 7px; }
.pill.active { background: #1b232e; color: var(--text); }
.filter-card .field { margin-bottom: 0; }
.range-fields { display: flex; gap: 12px; }
.range-fields .field { margin-bottom: 0; }
.ref-date-dmy { color: var(--green); }
.period-tag { margin-left: auto; color: var(--text-dim); font-size: 13px; }

.stats-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius); margin-bottom: 22px; overflow: hidden; }
.stat { padding: 20px 22px; border-right: 1px solid var(--border-soft); }
.stat:last-child { border-right: 0; }
.stat .s-label { font-size: 12.5px; color: var(--text-dim); margin-bottom: 6px; }
.stat .s-value { font-size: 27px; font-weight: 800; letter-spacing: -.5px; }
.stat .s-value.red { color: var(--red); }
.stat .s-value.green { color: var(--green); }
.stat .s-sub { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.chart-head .unit { font-size: 12px; color: var(--text-dim); }
.chart-controls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin: 2px 0 12px; }
.pills-sm .pill { font-size: 12px; padding: 5px 12px; }
.metric-tag { display: inline-block; font-size: 11px; font-weight: 700; color: #4ade80; background: rgba(74,222,128,.12); border: 1px solid rgba(74,222,128,.35); border-radius: 999px; padding: 2px 9px; margin-left: 8px; vertical-align: middle; }
.bar-chart { width: 100%; height: auto; display: block; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border-soft); }
.rank-row .rk { font-size: 12px; color: var(--text-dim); width: 22px; }
.rank-row .rn { flex: 1; min-width: 0; }
.rank-row .rn .t { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-row .rn .s { font-size: 12px; color: var(--text-dim); }
.rank-row .rc { font-size: 21px; font-weight: 800; }

table.data { width: 100%; border-collapse: collapse; }
table.data th { font-size: 12px; color: var(--text-dim); font-weight: 600; text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border-soft); }
table.data th.num, table.data td.num { text-align: right; }
table.data td { padding: 13px 6px; border-bottom: 1px solid var(--border-soft); font-size: 14px; }
table.data tr:last-child td { border-bottom: 0; }
table.data td .sub { font-size: 12px; color: var(--text-dim); }
td.num.green { color: var(--green); font-weight: 750; }

.tabs { display: flex; background: var(--bg-input); border: 1px solid var(--border-soft); border-radius: 9px; padding: 4px; gap: 2px; }
.tabs .pill { padding: 8px 16px; }

.ad-row { display: flex; align-items: center; gap: 14px; padding: 13px 2px; border-bottom: 1px solid var(--border-soft); }
.ad-row:last-child { border-bottom: 0; }
.ad-row .ad-date { font-weight: 750; font-size: 14.5px; }
.ad-row .ad-src { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.ad-row .ad-amt { margin-left: auto; font-weight: 800; font-size: 15px; text-align: right; }
.ad-row .ad-warn { display: block; font-size: 11.5px; color: var(--amber); font-weight: 600; margin-top: 2px; }

.src-row { display: flex; align-items: baseline; gap: 12px; padding: 15px 2px; border-bottom: 1px solid var(--border-soft); }
.src-row:last-child { border-bottom: 0; }
.src-row .st { font-weight: 750; font-size: 15px; }
.src-row .sd { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; }
.src-row .ss { margin-left: auto; font-size: 12px; color: var(--text-dim); font-weight: 600; white-space: nowrap; }
.src-row .ss.ok { color: var(--green); }

/* ---------- Modal ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.62);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.modal {
  width: 420px; max-width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  border-radius: 6px; padding: 28px;
}
.modal h2 { font-size: 24px; font-weight: 800; margin-bottom: 16px; }
.modal .btn-row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.btn-secondary { background: #1b232e; color: var(--text); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: #16202b; border: 1px solid var(--border);
  color: var(--text); font-size: 14px; font-weight: 600;
  padding: 12px 20px; border-radius: 9px; z-index: 200;
  max-width: 92vw; text-align: center;
}
.toast.err { border-color: var(--red); color: #ffb4b0; }

.empty { color: var(--text-faint); font-size: 14px; padding: 26px 0; text-align: center; }
.muted { color: var(--text-dim); font-size: 12.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .reg-grid, .dash-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--border-soft); }
  h1.title { font-size: 34px; }
}
@media (max-width: 720px) {
  .sidebar {
    top: auto; bottom: 0; left: 0; right: 0; width: auto; height: 62px;
    flex-direction: row; justify-content: space-around;
    padding: 6px 0; border-right: 0; border-top: 1px solid var(--border-soft);
  }
  .nav-btn { gap: 3px; font-size: 10.5px; }
  .nav-btn svg { width: 19px; height: 19px; }
  .main { margin-left: 0; padding: 18px 14px 96px; }
  .row2 { grid-template-columns: 1fr; }
  .row3 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .head-actions { position: static; margin-top: 10px; }
  .summary-strip { grid-template-columns: 1fr 1fr; }
}

/* ============ Range picker (v7) ============ */
.range-btn, .date-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); padding: 10px 12px; font-size: 15px; cursor: pointer;
}
.range-btn-label { font-variant-numeric: tabular-nums; }
.range-btn-cal { font-size: 18px; }
.picker-back {
  position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 150;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.picker {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  max-width: 560px; width: 100%; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
}
.picker-main { display: flex; }
.picker-cal { flex: 1; padding: 16px; min-width: 0; }
.picker-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.picker-title { font-weight: 700; font-size: 16px; text-transform: capitalize; }
.picker-nav {
  background: none; border: 1px solid var(--border); color: var(--text);
  width: 32px; height: 32px; border-radius: 8px; font-size: 20px; cursor: pointer; line-height: 1;
}
.picker-nav:hover { border-color: var(--green); color: var(--green); }
.picker-week, .picker-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.picker-week { margin-bottom: 6px; }
.picker-week span { text-align: center; font-size: 12px; color: var(--text-faint); font-weight: 600; }
.pk-day {
  aspect-ratio: 1; border: none; background: none; color: var(--text);
  border-radius: 50%; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.pk-day:hover:not(:disabled) { background: var(--bg-card-2); }
.pk-day.dim { color: var(--text-faint); opacity: .45; }
.pk-day.in-range { background: rgba(34,197,94,.18); border-radius: 0; }
.pk-day.range-start, .pk-day.range-end { background: var(--green); color: #fff; font-weight: 700; }
.pk-day.range-start { border-radius: 50% 0 0 50%; }
.pk-day.range-end { border-radius: 0 50% 50% 0; }
.pk-day.single { border-radius: 50%; }
.pk-day:disabled { cursor: default; }
.picker-dates { display: flex; gap: 18px; margin-top: 12px; }
.picker-date span { display: block; font-size: 12px; color: var(--text-faint); }
.picker-date b { font-size: 14px; font-variant-numeric: tabular-nums; }
.picker-presets {
  border-left: 1px solid var(--border-soft); padding: 16px 0; min-width: 150px;
  display: flex; flex-direction: column;
}
.picker-presets button {
  background: none; border: none; color: var(--text); text-align: left;
  padding: 9px 18px; font-size: 14px; cursor: pointer;
}
.picker-presets button:hover { background: var(--bg-card-2); }
.picker-presets button.active { background: rgba(34,197,94,.14); color: var(--green); font-weight: 600; }
.picker-foot {
  border-top: 1px solid var(--border-soft); padding: 12px 16px;
  display: flex; justify-content: flex-end; gap: 8px;
}
.picker-btn {
  background: none; border: none; color: var(--green); font-weight: 700;
  font-size: 14px; letter-spacing: .4px; padding: 8px 14px; cursor: pointer; border-radius: 8px;
}
.picker-btn:hover { background: rgba(34,197,94,.12); }
@media (max-width: 520px) {
  .picker-main { flex-direction: column; }
  .picker-presets { border-left: none; border-top: 1px solid var(--border-soft); min-width: 0;
    flex-direction: row; flex-wrap: wrap; padding: 8px; }
  .picker-presets button { padding: 8px 10px; }
}

/* ---------- Factura ---------- */
/* Estilo plantilla Canva KODEX: encabezado negro en diagonal, tabla con
   encabezado negro, totales con envío en gris y total en negro. */
#invoice-print-wrap {
  position: fixed; inset: 0; z-index: 90; overflow-y: auto;
  background: rgba(0,0,0,.72); padding: 22px 14px 40px;
}
.inv-actions {
  max-width: 760px; margin: 0 auto 14px;
  display: flex; gap: 10px; justify-content: flex-end;
}
#invoice-sheet {
  max-width: 760px; margin: 0 auto; background: #fff; color: #111;
  font-size: 15px; overflow: hidden;
  aspect-ratio: 8.5 / 11; display: flex; flex-direction: column;
}
.inv-hero {
  background: #1a1a1a; color: #fff;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 34px 34px 52px;
  clip-path: polygon(0 0, 100% 0, 100% 52%, 0 100%);
}
.inv-logo { width: 280px; max-width: 60%; height: auto; display: block; }
.inv-num { font-size: 12.5px; font-weight: 600; color: #bbb; margin-top: 10px; }
.inv-fecha { font-size: 15px; font-weight: 700; white-space: nowrap; padding-top: 6px; }
.inv-cliente { text-align: right; padding: 6px 34px 20px; }
.inv-cliente span { font-size: 13px; font-weight: 700; letter-spacing: .5px; }
.inv-cliente div { font-size: 30px; font-weight: 800; line-height: 1.1; }
.inv-table { width: calc(100% - 68px); margin: 0 34px 26px; border-collapse: collapse; }
.inv-table th {
  background: #1a1a1a; color: #fff; text-align: left;
  padding: 12px 14px; font-size: 15px;
}
.inv-table th.num { text-align: right; }
.inv-table td { padding: 12px 14px; border-bottom: 1px solid #eee; vertical-align: top; }
.inv-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.inv-bottom {
  display: flex; gap: 24px; align-items: flex-start;
  margin: 0 34px 30px;
}
.inv-warranty { flex: 1; font-size: 14px; }
.inv-w-title { font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.inv-totals { width: 270px; flex-shrink: 0; }
.inv-totals > div { display: flex; justify-content: space-between; padding: 10px 14px; }
.inv-totals .inv-ship { background: #e6e4ec; }
.inv-totals .inv-total { background: #1a1a1a; color: #fff; font-weight: 800; font-size: 16px; }
.inv-footer {
  background: #1a1a1a; color: #fff; text-align: center;
  font-size: 12.5px; padding: 26px 20px 18px; margin-top: auto;
  clip-path: polygon(0 45%, 100% 0, 100% 100%, 0 100%);
}
@page { size: letter; margin: 0; }
@media print {
  body > *:not(#invoice-print-wrap) { display: none !important; }
  #invoice-print-wrap { position: static; background: #fff; padding: 0; overflow: visible; }
  .inv-actions { display: none !important; }
  #invoice-sheet { max-width: none; }
  #invoice-sheet, .inv-hero, .inv-table th, .inv-totals .inv-total, .inv-footer {
    print-color-adjust: exact; -webkit-print-color-adjust: exact;
  }
}
