:root {
  color-scheme: light;
  --ink: #1d2925;
  --muted: #6b7771;
  --line: #e4e9e5;
  --paper: #f5f7f4;
  --white: #fff;
  --forest: #163a32;
  --forest-light: #e5eee8;
  --lime: #d2e27c;
  --amber: #a76519;
  --red: #a44238;
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.login-screen { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.login-screen[hidden], .app-shell[hidden] { display: none; }
.login-panel { display: grid; width: min(100%, 390px); gap: 16px; padding: 32px; border: 1px solid var(--line); background: var(--white); }
.login-panel .eyebrow { margin: 0; }
.login-panel h1 { margin: 0 0 4px; font-size: 28px; }
.login-panel .form-error { min-height: 1em; margin: 0; }
.login-panel .button { width: 100%; }
.logout-button { margin: 12px 6px 0; padding: 8px 0; border: 0; background: transparent; color: #d2ded6; font-size: 11px; font-weight: 600; text-align: left; }
.logout-button:hover { color: white; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 2; display: flex; flex-direction: column; width: 244px; padding: 28px 18px 20px; color: #f3f5ef; background: var(--forest); }
.brand { display: flex; align-items: center; padding: 0 7px 38px; color: inherit; text-decoration: none; }
.brand-name { font: 700 14px "Space Grotesk", sans-serif; letter-spacing: 0; }
.brand-name span { display: block; margin-top: 3px; color: #a9bcb1; font: 600 9px "DM Sans", sans-serif; letter-spacing: 1.2px; }
.sidebar-section-label { padding: 0 10px 11px; color: #9bb1a5; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.nav-link { display: flex; align-items: center; gap: 11px; height: 43px; padding: 0 11px; color: #d2ded6; text-decoration: none; font-size: 13px; font-weight: 600; }
.nav-link svg { width: 17px; height: 17px; }
.nav-link.active { background: #294c43; color: white; }
.sidebar-bottom { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 14px 6px 2px; border-top: 1px solid #34564d; color: #d4dfd7; font-size: 11px; }
.connection-indicator { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.connection-state { margin-left: auto; color: #a9bcb1; font-size: 10px; }
.main-content { max-width: 1510px; margin-left: 244px; padding: 45px clamp(26px, 5vw, 76px) 24px; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.invoice-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 9px; }
.invoice-control { display: flex; min-width: 0; flex-direction: column; gap: 5px; color: #68756e; font-size: 9px; font-weight: 700; }
.invoice-control select, .invoice-control input { height: 38px; min-width: 145px; padding: 0 10px; border: 1px solid #dfe5e0; border-radius: 3px; outline: none; background: white; color: var(--ink); font-size: 11px; font-weight: 400; }
.invoice-control select { width: min(290px, 34vw); }
.invoice-control input:focus, .invoice-control select:focus { border-color: #6a8a78; box-shadow: 0 0 0 2px #dce8df; }
.invoice-controls .button { min-height: 38px; padding-inline: 12px; }
.invoice-empty { display: grid; min-height: 220px; place-items: center; border: 1px dashed #cfd8d1; background: #fff; color: #77847d; font-size: 12px; }
.invoice-document { max-width: 960px; margin: 0 auto; padding: clamp(24px, 4vw, 54px); border: 1px solid var(--line); background: #fff; }
.invoice-document-header { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 25px; border-bottom: 2px solid var(--forest); }
.invoice-brand { display: flex; align-items: center; }
.invoice-brand div { display: flex; flex-direction: column; gap: 4px; }
.invoice-brand strong { font: 600 16px "Space Grotesk", sans-serif; }
.invoice-heading { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.invoice-heading span { color: #718079; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.invoice-heading strong { color: var(--forest); font: 600 19px "Space Grotesk", sans-serif; }
.invoice-meta { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.invoice-meta div { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 6px; }
.invoice-meta div > span { color: #77847d; font-size: 9px; font-weight: 700; letter-spacing: .7px; }
.invoice-meta strong { color: var(--ink); font-size: 12px; }
.invoice-meta small { color: #68756e; font-size: 10px; line-height: 1.4; }
.invoice-scope { padding: 18px 0; border-bottom: 1px solid var(--line); }
.invoice-scope h2 { margin: 0 0 7px; font: 600 12px "Space Grotesk", sans-serif; }
.invoice-scope p { margin: 0; color: #59675f; font-size: 11px; line-height: 1.55; white-space: pre-wrap; }
.invoice-table-wrap { overflow-x: auto; }
.invoice-table { width: 100%; margin-top: 18px; border-collapse: collapse; text-align: left; }
.invoice-table th { padding: 10px 8px; border-bottom: 1px solid #cfd8d1; color: #68756e; font-size: 9px; font-weight: 700; letter-spacing: .45px; text-transform: uppercase; }
.invoice-table td { padding: 12px 8px; border-bottom: 1px solid #edf0ed; color: #425047; font-size: 10px; vertical-align: top; }
.invoice-table th:first-child, .invoice-table td:first-child { padding-left: 0; }
.invoice-table th:last-child, .invoice-table td:last-child { padding-right: 0; text-align: right; }
.invoice-table td:nth-child(2), .invoice-table td:nth-child(3) { white-space: nowrap; }
.invoice-table td strong { display: block; color: var(--ink); font-size: 11px; font-weight: 600; }
.invoice-line-category { display: block; margin-bottom: 3px; color: #7a877f; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.invoice-amount { color: var(--ink) !important; font-weight: 700; white-space: nowrap; }
.invoice-no-lines { padding: 22px 0 !important; color: #77847d !important; text-align: center; }
.invoice-totals { width: min(100%, 310px); margin: 20px 0 0 auto; }
.invoice-totals > div { display: flex; justify-content: space-between; gap: 15px; padding: 7px 0; color: #59675f; font-size: 11px; }
.invoice-totals strong { color: var(--ink); font-size: 11px; }
.invoice-totals .invoice-total-due { margin-top: 5px; padding-top: 12px; border-top: 2px solid var(--forest); color: var(--ink); font: 600 13px "Space Grotesk", sans-serif; }
.invoice-totals .invoice-total-due strong { color: var(--forest); font: 600 18px "Space Grotesk", sans-serif; }
.invoice-document-footer { margin-top: 35px; padding-top: 12px; border-top: 1px solid var(--line); color: #77847d; font-size: 9px; }
.eyebrow { margin: 0 0 9px; color: #718079; font-size: 10px; font-weight: 700; letter-spacing: 1.15px; }
h1, h2, p { margin-top: 0; }
h1, .dialog-header h2 { margin-bottom: 0; font-family: "Space Grotesk", sans-serif; letter-spacing: 0; }
h1 { font-size: 34px; line-height: 1.12; }
.page-description { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 0 16px; border: 1px solid transparent; border-radius: 4px; font-size: 12px; font-weight: 700; transition: background-color .16s ease, border-color .16s ease, transform .16s ease; }
.button:active { transform: translateY(1px); }
.button svg { width: 17px; height: 17px; }
.button-primary { background: var(--forest); color: white; }
.button-primary:hover { background: #245348; }
.button-primary:disabled { opacity: .6; cursor: wait; }
.button-secondary { border-color: #dce3de; background: white; color: var(--ink); }
.button-secondary:hover { background: #f2f5f2; }
.button-danger { border-color: #ead6d4; background: #fff; color: var(--red); }
.button-danger:hover { background: #fcf1f0; }
.button-hidden { display: none; }
.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 37px; border: 1px solid var(--line); background: var(--white); }
.summary-item { position: relative; display: flex; flex-direction: column; min-height: 121px; padding: 18px 23px; border-right: 1px solid var(--line); }
.summary-item:last-child { border-right: 0; }
.summary-item::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: transparent; content: ""; }
.summary-accent::before { background: #c6d86e; }
.summary-label { color: #79857f; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.summary-item strong { margin-top: 8px; font: 600 27px "Space Grotesk", sans-serif; }
.summary-note { margin-top: 1px; color: #849089; font-size: 10px; }
.orders-section { min-width: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 15px; }
.section-heading h2 { margin: 0 0 4px; font: 600 17px "Space Grotesk", sans-serif; }
.order-count { color: var(--muted); font-size: 11px; }
.list-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.search-field, .filter-field, .sort-field { display: flex; align-items: center; min-height: 38px; border: 1px solid #dfe5e0; background: #fff; }
.search-field { gap: 7px; width: 224px; padding: 0 10px; }
.search-field svg { width: 16px; height: 16px; color: #77847d; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); font-size: 11px; }
.search-field input::placeholder { color: #929c96; }
.filter-field select, .sort-field select { height: 36px; min-width: 123px; padding: 0 28px 0 10px; border: 0; outline: 0; background: transparent; color: #36443d; font-size: 11px; }
.order-list { overflow: hidden; border: 1px solid var(--line); background: white; }
.order-list-header, .order-row { display: grid; grid-template-columns: minmax(180px, 1.55fr) minmax(130px, 1.1fr) minmax(112px, .8fr) minmax(100px, .7fr) minmax(112px, .85fr) 58px; align-items: center; column-gap: 16px; }
.order-list-header { min-height: 40px; padding: 0 19px; border-bottom: 1px solid var(--line); background: #fafbf9; color: #78847d; font-size: 9px; font-weight: 700; letter-spacing: .55px; }
.order-row { min-height: 75px; padding: 11px 19px; border-bottom: 1px solid #edf0ed; animation: row-enter .28s both; }
.order-row:last-child { border-bottom: 0; }
.order-row:hover { background: #fbfcfa; }
.job-cell, .customer-cell { min-width: 0; }
.job-title { overflow: hidden; color: #26342d; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.job-id { margin-top: 4px; color: #87918b; font-size: 10px; }
.job-cost { margin-top: 4px; color: #526b58; font-size: 10px; font-weight: 600; }
.customer-name { overflow: hidden; color: #35433c; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.customer-site { overflow: hidden; margin-top: 4px; color: #8a948e; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.opened-cell { color: #58655e; font-size: 11px; }
.priority { display: inline-flex; align-items: center; gap: 6px; color: #58655e; font-size: 10px; }
.priority::before { width: 6px; height: 6px; border-radius: 50%; background: #9aa59e; content: ""; }
.priority-high::before { background: #cb762d; }
.priority-urgent::before { background: #b84035; }
.status-badge { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 3px; background: #edf1ee; color: #59675f; font-size: 9px; font-weight: 700; white-space: nowrap; }
.status-open { background: #edf1ee; color: #58675e; }
.status-in-progress { background: #e8f1ec; color: #285943; }
.status-on-hold { background: #fff2df; color: #94601f; }
.status-complete { background: #eef0e2; color: #66712b; }
.row-edit { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid transparent; border-radius: 3px; background: transparent; color: #738078; }
.row-edit:hover { border-color: #e2e8e3; background: #f4f6f3; color: var(--forest); }
.row-edit svg { width: 16px; height: 16px; }
.list-message { display: grid; min-height: 175px; place-items: center; padding: 24px; color: #78847d; font-size: 12px; text-align: center; }
.list-message.error { color: var(--red); }
.page-footer { display: flex; justify-content: space-between; gap: 14px; padding: 19px 0; color: #8a958e; font-size: 10px; }
.visually-hidden { position: absolute; overflow: hidden; width: 1px; height: 1px; padding: 0; border: 0; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.order-dialog { width: min(920px, calc(100% - 28px)); max-width: none; max-height: min(92vh, 900px); padding: 0; overflow: auto; border: 1px solid #dfe5e0; border-radius: 5px; background: white; color: var(--ink); box-shadow: 0 22px 70px #12281f30; }
.order-dialog::backdrop { background: #152b22a8; backdrop-filter: blur(2px); }
.order-dialog form { padding: 25px 28px 23px; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 23px; }
.dialog-header h2 { font-size: 22px; }
.icon-button { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #e4e9e5; border-radius: 3px; background: white; color: #58665e; }
.icon-button svg { width: 16px; height: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 13px; }
.form-field { display: flex; min-width: 0; flex-direction: column; gap: 7px; color: #536159; font-size: 10px; font-weight: 700; }
.form-field b { color: var(--red); }
.field-wide { grid-column: 1 / -1; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 39px; padding: 9px 10px; border: 1px solid #dfe5e0; border-radius: 3px; outline: none; background: #fff; color: var(--ink); font-size: 11px; font-weight: 400; }
.form-field textarea { min-height: 94px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #6a8a78; box-shadow: 0 0 0 2px #dce8df; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #a0aaa4; }
.cost-sections { display: grid; gap: 0; }
.cost-section { min-width: 0; margin: 0; padding: 17px 0 13px; border: 0; border-top: 1px solid var(--line); }
.cost-section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.cost-section-header h3 { margin: 0; color: var(--ink); font: 600 14px "Space Grotesk", sans-serif; }
.cost-section-header p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.cost-section-header .button { min-height: 34px; padding: 0 10px; font-size: 10px; }
.cost-section-header .button svg { width: 15px; height: 15px; }
.cost-entry-list { display: grid; gap: 9px; }
.cost-entry { display: grid; align-items: end; gap: 9px; }
.cost-entry.cost-labor { grid-template-columns: minmax(130px, 1.4fr) minmax(75px, .65fr) minmax(95px, .85fr) 100px 34px; }
.cost-entry.cost-materials { grid-template-columns: minmax(120px, 1.35fr) minmax(70px, .6fr) minmax(65px, .55fr) minmax(95px, .8fr) 100px 34px; }
.cost-entry.cost-equipment { grid-template-columns: minmax(120px, 1.3fr) minmax(70px, .6fr) minmax(88px, .75fr) minmax(95px, .8fr) 100px 34px; }
.cost-entry.cost-expenses { grid-template-columns: minmax(150px, 1.5fr) minmax(100px, .8fr) 100px 34px; }
.cost-field { display: flex; min-width: 0; flex-direction: column; gap: 5px; color: #68756e; font-size: 9px; font-weight: 700; }
.cost-field input, .cost-field select { width: 100%; min-width: 0; height: 36px; padding: 0 8px; border: 1px solid #dfe5e0; border-radius: 3px; outline: none; background: white; color: var(--ink); font-size: 10px; font-weight: 400; }
.cost-field input:focus, .cost-field select:focus { border-color: #6a8a78; box-shadow: 0 0 0 2px #dce8df; }
.cost-entry-total { display: flex; min-height: 36px; flex-direction: column; justify-content: center; gap: 2px; color: #78847d; font-size: 8px; }
.cost-entry-total strong { color: #314b3b; font-size: 11px; }
.cost-remove { display: grid; width: 32px; height: 34px; place-items: center; border: 1px solid transparent; border-radius: 3px; background: transparent; color: #77847d; }
.cost-remove:hover { border-color: #ead6d4; background: #fcf1f0; color: var(--red); }
.cost-remove svg { width: 15px; height: 15px; }
.cost-empty { margin: 0; color: #8a958e; font-size: 10px; }
.cost-subtotal { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 9px; border-top: 1px dashed #e3e9e4; color: #68756e; font-size: 10px; }
.cost-subtotal strong { color: var(--ink); font-size: 11px; }
.cost-grand-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0 2px; border-top: 2px solid var(--forest); }
.cost-grand-total span { display: flex; flex-direction: column; gap: 3px; }
.cost-grand-total span strong { font: 600 14px "Space Grotesk", sans-serif; }
.cost-grand-total small { color: var(--muted); font-size: 10px; }
.cost-grand-total > strong { color: var(--forest); font: 600 20px "Space Grotesk", sans-serif; }
.form-error { min-height: 17px; margin: 12px 0 0; color: var(--red); font-size: 11px; }
.dialog-actions { display: flex; align-items: center; gap: 8px; padding-top: 13px; border-top: 1px solid #edf0ed; }
.dialog-actions .button { min-height: 38px; padding: 0 13px; font-size: 11px; }
.action-spacer { flex: 1; }
.toast { position: fixed; right: 25px; bottom: 22px; z-index: 5; max-width: calc(100vw - 32px); padding: 12px 16px; transform: translateY(14px); border-radius: 3px; background: var(--forest); color: white; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.toast.visible { transform: translateY(0); opacity: 1; }
@keyframes row-enter { from { transform: translateY(4px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 1050px) {
  .sidebar { width: 204px; }
  .main-content { margin-left: 204px; padding-inline: 30px; }
  .order-list-header, .order-row { grid-template-columns: minmax(170px, 1.5fr) minmax(120px, 1fr) minmax(95px, .7fr) minmax(90px, .7fr) 58px; column-gap: 12px; }
  .hide-tablet { display: none; }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: auto; height: auto; min-height: 62px; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 18px 0; }
  .brand { flex: 1 0 100%; padding: 0; }
  .brand-name { font-size: 12px; }
  .sidebar-section-label, .sidebar-bottom { display: none; }
  .nav-link { display: flex; flex: 1; justify-content: center; height: 40px; }
  .main-content { margin: 0; padding: 30px 20px 20px; }
  .page-header { align-items: flex-start; margin-bottom: 24px; }
  h1 { font-size: 29px; }
  .page-description { max-width: 270px; line-height: 1.5; }
  .page-header > .button { flex-shrink: 0; min-height: 39px; padding: 0 11px; font-size: 0; }
  .page-header > .button svg { width: 19px; height: 19px; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 28px; }
  .summary-item:nth-child(2) { border-right: 0; }
  .summary-item:nth-child(3), .summary-item:nth-child(4) { border-top: 1px solid var(--line); }
  .summary-item { min-height: 101px; padding: 14px 12px; }
  .summary-label { font-size: 8px; letter-spacing: .6px; }
  .summary-item strong { font-size: 24px; }
  .summary-note { font-size: 9px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .list-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .search-field { grid-column: 1 / -1; grid-row: 2; width: auto; }
  .filter-field { grid-column: 1; grid-row: 1; }
  .sort-field { grid-column: 2; grid-row: 1; }
  .filter-field, .sort-field { flex: 1 1 130px; }
  .filter-field select, .sort-field select { width: 100%; min-width: 0; }
  .order-list { border: 0; background: transparent; overflow: visible; }
  .order-list-header { display: none; }
  .order-row { position: relative; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; margin-bottom: 9px; padding: 14px; border: 1px solid var(--line); background: white; }
  .job-cell { grid-column: 1; }
  .customer-cell { grid-column: 1; }
  .opened-cell { display: none; }
  .cost-entry, .cost-entry.cost-labor, .cost-entry.cost-materials, .cost-entry.cost-equipment, .cost-entry.cost-expenses { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cost-entry-total { align-self: center; }
  .cost-remove { justify-self: end; }
  .cost-section-header .button { flex-shrink: 0; }
  .priority-cell { grid-column: 1; }
  .status-cell { position: absolute; top: 14px; right: 55px; }
  .row-edit { position: absolute; top: 9px; right: 10px; }
  .job-title { padding-right: 82px; white-space: normal; line-height: 1.4; }
  .customer-name, .customer-site { white-space: normal; }
  .page-footer { flex-direction: column; gap: 5px; }
  .invoice-screen-header { align-items: flex-start; flex-direction: column; }
  .invoice-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; }
  .invoice-control:first-child { grid-column: 1 / -1; }
  .invoice-control select { width: 100%; }
  .invoice-controls .button { align-self: end; white-space: nowrap; }
  .invoice-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .invoice-document { padding: 22px 16px; }
  .invoice-document-header { gap: 12px; padding-bottom: 18px; }
  .invoice-brand strong { font-size: 12px; }
  .invoice-heading strong { font-size: 14px; }
  .invoice-table th, .invoice-table td { padding-inline: 5px; }
  .invoice-table th { font-size: 8px; }
  .invoice-table td { font-size: 9px; }
}
@media (max-width: 460px) {
  .main-content { padding: 24px 14px 18px; }
  .page-header { gap: 10px; }
  .page-description { font-size: 11px; }
  .summary-item { padding-inline: 9px; }
  .summary-note { max-width: 80px; line-height: 1.35; }
  .order-dialog form { padding: 21px 18px 17px; }
  .form-grid { grid-template-columns: 1fr; gap: 13px; }
  .field-wide { grid-column: auto; }
  .dialog-actions { flex-wrap: wrap; }
  .dialog-actions .button { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media print {
  @page { margin: 14mm; }
  body { background: white; color: #1d2925; }
  .sidebar, #work-orders-view, .invoice-screen-header, .page-footer { display: none !important; }
  .main-content { max-width: none; margin: 0; padding: 0; }
  #invoices-view:not([hidden]) { display: block !important; }
  .invoice-empty { display: none !important; }
  .invoice-document { max-width: none; margin: 0; padding: 0; border: 0; }
  .invoice-document-header { padding-bottom: 18px; }
  .invoice-table { break-inside: auto; }
  .invoice-table tr { break-inside: avoid; }
  .invoice-scope, .invoice-meta, .invoice-totals { break-inside: avoid; }
}