:root {
  color-scheme: light;
  color: #20243b;
  background: #f6f6fb;
  --navy: #23395e;
  --plum: #67476e;
  --blue: #304c82;
  --line: #dcddea;
  --muted: #565d75;
  --white: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--blue); }
.top {
  min-height: 76px;
  padding: 0 clamp(16px, 4vw, 56px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
}
.top-actions, .actions, .fields { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: clamp(166px, 23vw, 235px); height: auto; }
#internet {
  border: 1px solid #dbe1f1;
  background: #eef2fb;
  color: #354973;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 650;
}
.help-link { font-weight: 650; text-decoration: none; padding: 7px 4px; }
.help-link:hover { text-decoration: underline; color: var(--plum); }
button.help-link { border: 0; background: transparent; color: var(--blue); }
#logout { white-space: nowrap; }
#voice-controller > summary { cursor: pointer; color: var(--blue); font-weight: 650; padding: 7px 4px; }
#voice-slot:not(:empty) { padding-inline: clamp(12px, 4vw, 56px); }
#voice-slot #voice-controller > summary { width: fit-content; margin-left: auto; }
#voice-controller .voice-controls { padding: 14px; margin: 4px 0 8px; }
#voice-slot .voice-controls { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: end; }
#voice-slot .voice-controls form { flex: 1 1 240px; grid-template-columns: minmax(120px, 1fr) auto; align-items: end; }
#voice-slot .voice-controls p { margin: 0; }
.voice-controls label { margin: 0; }
.voice-controls .actions { margin-top: 10px; }
.voice-controls form { display: grid; gap: 8px; }
.voice-controls form > button { justify-self: start; }
.voice-controls p:empty { display: none; }
dialog #voice-controller { margin-top: 12px; }
dialog #voice-controller .voice-controls { width: 100%; }
#layout { flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); }
nav { width: 220px; padding: 22px 14px; background: #eeeef7; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
nav:empty { display: none; }
nav a { padding: 10px 12px; border-radius: 8px; text-decoration: none; color: #3d435d; }
nav a:hover { background: #e3e6f4; }
nav a[aria-current] { background: #dee4f5; color: #263b70; font-weight: 700; }
main { width: 100%; max-width: 1450px; margin: 0 auto; padding: clamp(18px, 4vw, 48px); }
nav:empty + main { grid-column: 1 / -1; }
h1 { margin: 0; }
h2 { margin: 0 0 14px; }
p { margin: 8px 0; }
.heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.muted, small { color: var(--muted); }
.panel, .hero { background: var(--white); border: 1px solid var(--line); border-radius: 15px; margin: 15px 0; }
.panel { padding: clamp(14px, 3vw, 24px); }
.hero {
  max-width: 1050px;
  margin: clamp(24px, 8vh, 92px) auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  overflow: hidden;
  box-shadow: 0 18px 55px #25244b0c;
}
.hero-intro { padding: clamp(24px, 5vw, 64px); align-self: center; }
.hero h1 span { color: var(--plum); }
.hero-copy { color: var(--muted); margin: 17px 0 26px; max-width: 35ch; }
.home-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 365px; }
.home-card {
  color: var(--navy);
  background: var(--white);
  border: 1px solid #b9c2dc;
  border-radius: 9px;
  padding: 13px 12px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
}
.home-card:hover { background: #eef1fb; }
.home-card-primary { color: var(--white); background: var(--navy); border-color: var(--navy); }
.home-card-primary:hover { background: var(--blue); }
.first-setup { margin-bottom: 0; }
.hero-features {
  display: grid;
  align-content: center;
  padding: clamp(21px, 4vw, 50px);
  border-left: 1px solid var(--line);
  background: linear-gradient(155deg, #f2edf7, #edf2fc 95%);
}
.hero-features > div { padding: 16px 0; }
.hero-features > div + div { border-top: 1px solid #d6d9e8; }
.hero-features h2 { color: var(--navy); margin: 0; }
.hero-features p { color: var(--muted); margin: 5px 0 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); gap: 14px; }
.tiles .panel { margin: 0; }
.metric { font-weight: 750; font-size: var(--type-heading); font-variant-numeric: tabular-nums; }
.overview-page {
  --overview-income: #315ca7;
  --overview-expense: #be611d;
  --overview-profit: #147e70;
  --overview-bank: #7650a0;
  --overview-cash: #57647a;
  --overview-debtors: #246f86;
  --overview-creditors: #a5525a;
}
.overview-business { margin-bottom: 16px; overflow-wrap: anywhere; }
.overview-business p { white-space: pre-line; }
.overview-contact { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 0; }
.overview-contact > div { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.overview-contact dt { flex-shrink: 0; color: var(--muted); font-size: var(--type-small); font-weight: 650; }
.overview-contact dd { min-width: 0; margin: 0; }
.overview-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 12px; }
.overview-summary .panel { margin: 0; min-width: 0; padding: 14px 16px; overflow-wrap: anywhere; }
.overview-summary h2 { margin-bottom: 4px; }
.overview-summary .muted { margin-top: 4px; font-size: var(--type-small); }
.overview-monthly { margin-top: 22px; }
.overview-monthly h2 { margin-bottom: 4px; }
.overview-charts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.overview-chart-card { margin: 0; min-width: 0; padding: 14px 16px 8px; }
.overview-chart-card figcaption { font-size: var(--type-heading); font-weight: 700; }
.overview-chart { display: block; width: 100%; height: auto; }
@media (max-width: 1050px) {
  .overview-charts { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 590px) {
  .overview-summary { grid-template-columns: repeat(auto-fit,minmax(min(100%,145px),1fr)); }
}
.table { overflow: auto; }
.compact-report th, .compact-report td { padding: 5px 8px; }
.report-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,200px),1fr)); gap: 14px; }
.report-card { display: grid; align-content: start; gap: 6px; padding: 20px; min-height: 94px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.report-card:hover { background: #edf0fb; }
.report-card span { color: var(--muted); font-size: var(--type-small); }
.compliance-table table { min-width: 740px; }
.compliance-table th { white-space: normal; }
.compliance-table td:first-child, .compliance-table td:nth-child(4) { white-space: nowrap; }
.compliance-table th:nth-child(6) { width: 34%; }
.compliance-findings { margin: 0; padding-left: 1.1em; }
.compliance-findings li + li { margin-top: 6px; }
.compliance-actions { display: grid; justify-items: start; gap: 6px; }
.compliance-actions button { padding: 5px 9px; }
.entity-module-view h1 { overflow-wrap: anywhere; }
.entity-module-card { color: var(--navy); text-decoration: none; }
.entity-module-card.is-disabled, .entity-module-card.is-disabled:hover { color: var(--muted); background: #f0f0f7; }
.report-controls { align-items: end; margin-bottom: 16px; }
.report-period { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.report-period input { min-width: 145px; }
.report-period .error { flex-basis: 100%; margin: 0; }
.report-period .error:empty { display: none; }
.report-toolbar { flex-wrap: nowrap; gap: 8px; max-width: 100%; overflow-x: auto; padding: 3px 3px 6px; }
.report-toolbar > * { flex: 0 0 auto; white-space: nowrap; }
.report-toolbar > :is(button, .button) { padding: 6px 9px; }
.ledger-report-heading { margin: 14px 0; }
.ledger-report-heading h2 { margin: 0 0 5px; overflow-wrap: anywhere; }
.ledger-report-heading p { margin: 2px 0; white-space: pre-line; overflow-wrap: anywhere; }
.ledger-report-table :is(th,td):is(:nth-child(5),:nth-child(6)) { text-align: right; }
.ledger-report-table td:is(:first-child,:nth-child(5),:nth-child(6)) { white-space: nowrap; }
.entity-search, .group-search, .ledger-search { max-width: 330px; margin-bottom: 14px; }
.master-context { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 0 0 20px; }
.master-context dt { color: var(--muted); font-size: var(--type-small); font-weight: 650; }
.master-context dd { margin: 2px 0 0; font-weight: 650; overflow-wrap: anywhere; }
.business-header { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 12px 20px; overflow-wrap: anywhere; }
.business-header-name { font-size: var(--type-heading); }
.business-header-address { margin: 4px 0 0; white-space: pre-line; }
.business-header-logo { display: block; width: clamp(54px,14vw,130px); max-height: 76px; object-fit: contain; object-position: right top; }
.business-period { margin: 12px 0 18px; font-size: var(--type-small); }
.tds-header { margin-top: 0; }
.tds-toolbar { gap: 8px; margin-top: 14px; }
.tds-toolbar :is(button,.button) { padding-inline: 9px; }
.tds-navigation { width: clamp(204px, 20vw, 260px); }
.tds-content { margin: 0; }
.tds-entity-profile summary { cursor: pointer; font-size: var(--type-heading); font-weight: 650; }
.tds-profile-body { margin-top: 16px; }
.tds-profile-actions { justify-content: flex-end; margin-bottom: 12px; }
.tds-profile-body h2 { margin: 20px 0 12px; }
.tds-profile-person { min-width: 0; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; }
.tds-profile-person legend { font-weight: 650; }
.tds-profile-person .fields + .fields { margin-top: 12px; }
.tds-master-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.tds-master-table { margin-top: 12px; }
.tds-master-table th:last-child { width: 20%; }
.party-table th:nth-child(5) { width: 27%; }
.party-sections { min-width: 0; margin: 0; padding: 0 10px 8px; border: 1px solid var(--line); border-radius: 9px; }
.party-sections legend { font-weight: 650; }
.party-section-list { max-height: min(42vh, 340px); overflow: auto; }
.party-section-list label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; padding: 7px 4px; font-weight: 500; }
.party-section-list label + label { border-top: 1px solid var(--line); }
.party-section-list input { width: auto; margin: 3px 0; }
.party-section-list small { display: block; margin-top: 2px; }
.salary-components, .salary-relief, .salary-estimate { min-width: 0; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; }
.salary-components legend, .salary-relief summary { font-weight: 650; }
.salary-relief summary { cursor: pointer; }
.salary-item { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.salary-item label:first-child { flex: 2 1 150px; }
.salary-item label:nth-child(2) { flex: 1 1 95px; }
.salary-item button { padding-inline: 8px; }
.salary-estimate { background: #f6f6fb; }
.salary-estimate h3 { margin: 0 0 6px; }
.payroll-month { max-width: 295px; }
.payroll-return-row { min-width: 0; margin: 0 0 14px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.payroll-return-row legend { font-weight: 650; }
.payroll-return-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,200px),1fr)); gap: 10px; }
.payroll-return-row > button { margin-top: 10px; }
.gst-return-period { margin-bottom: 10px; }
.gst-return-period label { min-width: min(100%, 180px); }
.gst-wizard-controls { margin-top: 12px; }
.gst-wizard-controls p { margin: 0; }
.gst-wizard-layout { display: grid; grid-template-columns: minmax(180px,260px) minmax(0,1fr); gap: 16px; align-items: start; }
.gst-wizard-layout > .panel { margin: 12px 0 0; min-width: 0; }
.gst-wizard-menu [data-gst-steps] { display: grid; gap: 5px; max-height: 60vh; overflow: auto; }
.gst-wizard-menu button { text-align: left; padding: 8px; font-weight: 500; overflow-wrap: anywhere; }
.gst-wizard-menu button[aria-current] { border-color: var(--blue); background: #edf0fb; color: var(--navy); }
.gst-return-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr)); gap: 10px; }
.gst-return-row { min-width: 0; margin: 0 0 12px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; }
.gst-return-row legend { max-width: 100%; font-weight: 650; }
.gst-return-row button { margin-top: 8px; }
@media (max-width: 760px) {
  .gst-wizard-layout { grid-template-columns: minmax(0,1fr); }
  .gst-wizard-menu [data-gst-steps] { max-height: 25vh; }
}
.itr-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,170px),1fr)); gap: 12px; }
.itr-summary { width: 100%; }
.itr-summary :is(td,th):last-child { text-align: right; }
.itr-summary tbody tr:last-child { font-weight: 700; }
.itr-confirm { display: flex; align-items: baseline; }
.itr-confirm input { width: auto; }
.itr-wizard-bar { margin-bottom: 12px; }
.itr-wizard-bar p { margin: 0; }
.itr-schedule-menu { min-width: 0; margin-top: 8px; padding: 12px 0 0; border-top: 1px solid var(--line); }
.itr-schedule-menu input { min-width: 0; }
.itr-schedule-menu [data-itr-schedule-list] { margin-top: 10px; }
.itr-schedule-menu [data-itr-menu-status]:empty { display: none; }
.itr-schedule-menu details > summary, .itr-schedule-group > summary { cursor: pointer; font-weight: 650; padding: 8px; }
.itr-schedule-menu details > div, .itr-schedule-menu [data-itr-schedule-list] { display: grid; gap: 5px; }
.itr-schedule-menu button { width: 100%; text-align: left; padding: 8px; font-weight: 500; overflow-wrap: anywhere; }
.itr-schedule-menu button small { display: block; margin-top: 2px; }
.itr-schedule-menu button[aria-current] { border-color: var(--blue); background: #edf0fb; color: var(--navy); }
.itr-schedule-sheet h2 { overflow-wrap: anywhere; }
.itr-schedule-sheet .itr-fields:empty { display: none; }
.itr-schedule-field small { font-weight: 400; overflow-wrap: anywhere; }
.itr-schedule-field :is(input,select) { min-width: 0; }
.itr-schedule-group, .itr-schedule-row { border: 1px solid var(--line); border-radius: 9px; min-width: 0; margin: 8px 0; }
.itr-schedule-group > div, .itr-schedule-row { padding: 0 10px 10px; }
.itr-schedule-row legend { padding-inline: 4px; font-weight: 650; }
.itr-schedule-row > button, .itr-wizard-controls { margin-top: 10px; }
@media (max-width: 760px) {
  nav.itr-navigation { display: flex; flex-wrap: wrap; }
  .itr-schedule-menu { flex: 1 0 100%; }
  .itr-schedule-menu [data-itr-schedule-list] { max-height: 24vh; overflow: auto; }
}
.inventory-tabs { gap: 8px; }
.inventory-tabs a[aria-current] { background: #dee4f5; color: #263b70; border-color: #b9c2dc; }
.inventory-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.inventory-toolbar h2 { margin: 0; }
.voucher-types { gap: 8px; margin: 12px 0 18px; }
.voucher-types a { text-align: center; padding: 10px 14px; }
.voucher-types a[aria-current] { background: var(--navy); color: var(--white); border-color: transparent; }
#voucher-entry .entry-line { min-width: 0; }
.voucher-option { display: flex; align-items: center; gap: 8px; }
.voucher-option input { width: auto; }
.voucher-totals { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; }
.voucher-totals p { margin-bottom: 0; }
.voucher-totals p:empty { margin: 0; }
#voucher-note [data-note-source]:empty { display: none; }
#voucher-note [data-invoice-number] { flex: 1 1 220px; min-width: 0; }
#voucher-note [data-note-editor] { display: grid; gap: 12px; min-width: 0; }
#voucher-note h3 { margin: 0; }
.note-fields { display: grid; gap: 12px; }
.invoice-addresses { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 16px; }
.invoice-addresses fieldset, #invoice-entry .entry-line { min-width: 0; }
.invoice-addresses label + label, .invoice-address-fields label { margin-top: 8px; }
.voucher-picker { position: relative; margin-bottom: 8px; }
.fields > .voucher-picker { flex: 1 1 160px; min-width: 0; margin: 0; }
.voucher-picker-popup { position: absolute; top: calc(100% + 4px); z-index: 2; width: 100%; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 16px #25244b20; }
.voucher-picker-popup [role="listbox"] { max-height: 176px; overflow: auto; }
.voucher-picker-popup [role="option"] { padding: 6px 8px; border-radius: 4px; cursor: pointer; overflow-wrap: anywhere; }
.voucher-picker-popup [role="option"]:hover, .voucher-picker-popup [aria-selected="true"] { background: #dee4f5; color: #263b70; }
.voucher-picker-popup button, .voucher-picker-popup p { margin: 4px 2px; }
.ledger-group-picker { align-items: end; }
.invoice-address-fields { border: 0; padding: 0; margin: 0; }
.invoice-address-fields:disabled input, .invoice-address-fields:disabled textarea { background: #f5f5fb; }
.invoice-item-table { margin-bottom: 10px; }
.invoice-item-table th, .invoice-item-table td { padding: 6px; }
.invoice-item-table input { width: 82px; padding: 7px; }
.invoice-item-table select { width: 100%; min-width: 145px; padding: 7px; }
.invoice-item-table td[data-total] { white-space: nowrap; font-variant-numeric: tabular-nums; }
.invoice-line-tax { margin-top: 6px; }
.invoice-summary { padding: 14px; border: 1px solid var(--line); border-radius: 9px; }
.invoice-summary h3 { margin: 10px 0 6px; }
.invoice-totals { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; }
.invoice-totals dd { margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.invoice-totals dt { color: var(--muted); }
.invoice-footer { text-align: center; }
.invoice-copy .invoice-address { white-space: pre-line; }
.invoice-copy .invoice-addresses, .invoice-copy .table, .invoice-copy .invoice-summary { margin: 14px 0; }
.invoice-signature { text-align: right; display: flex; flex-direction: column; justify-content: space-between; min-height: 82px; }
#modal:has(.invoice-copy) { max-width: min(96vw,1040px); }
.master-table .table { overflow: visible; }
.master-table table { table-layout: fixed; }
.master-table :is(th,td) { padding: 8px 5px; white-space: normal; overflow-wrap: anywhere; }
#ledger-table th:nth-child(-n+3) { width: 11%; }
#ledger-table th:last-child { width: 10%; }
#ledger-table td:nth-child(3) { font-variant-numeric: tabular-nums; }
#inventory-table th:last-child { width: 13%; }
#inventory-table[data-section="groups"] th:nth-child(2) { width: 55%; }
#inventory-table[data-section="ledgers"] th:first-child { width: 15%; }
.ledger-row-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.ledger-row-actions button { padding: 2px 5px; }
.ledger-detail { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 12px; margin: 0; }
.ledger-detail dt { color: var(--muted); font-size: var(--type-small); font-weight: 650; }
.ledger-detail dd { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1150px) {
  .master-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .master-table :is(table,tbody) { display: block; }
  .master-table tr { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,155px),1fr)); gap: 2px 12px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
  .master-table td { min-width: 0; border: 0; }
  .master-table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: var(--type-small); font-weight: 650; }
  .master-table td:first-child { font-weight: 650; }
}
.entity-actions .home-card { min-width: 134px; }
.entity-path { overflow-wrap: anywhere; }
.entity-location-action { display: block; padding: 0; margin-top: 5px; border: 0; color: var(--blue); text-decoration: underline; background: transparent; }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
th { white-space: nowrap; color: var(--muted); background: #f3f4fb; }
td { overflow-wrap: anywhere; }
button, .button, input, select { font: inherit; font-size: var(--type-body); border: 1px solid #b9bfd6; color: inherit; background: var(--white); border-radius: 8px; padding: 8px 12px; }
button, .button { cursor: pointer; text-decoration: none; display: inline-block; font-weight: 650; }
button:hover, .button:hover { background: #edf0fb; }
button:disabled { opacity: .6; cursor: wait; }
.primary { background: var(--navy); border-color: var(--navy); color: var(--white); }
.primary:hover { background: var(--blue); }
.danger, .error { color: #92374d; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 5px; font-weight: 650; min-width: 0; }
label input, label select { width: 100%; min-width: 0; }
.fields > label { flex: 1 1 160px; }
.entry-line { border: 0; border-top: 1px solid var(--line); padding: 10px 0; margin: 0; }
.entry-line legend { font-weight: 650; }
dialog { color: inherit; border: 1px solid var(--line); border-radius: 14px; max-width: min(94vw, 690px); width: 100%; max-height: 86vh; padding: 22px; }
dialog::backdrop { background: #27213880; }
.notice { color: var(--blue); font-weight: 650; }
.auth { max-width: 560px; margin: 30px auto; }
.company-bar { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-bottom: 25px; }
.company-bar label { min-width: min(100%, 180px); }
.company-bar label:first-child { min-width: min(100%, 260px); }
.bank-actions { margin-top: 12px; }
.bank-preview { margin-top: 10px; }
.bank-preview table { min-width: 660px; }
.bank-preview input { width: 100%; min-width: 135px; }
.bank-preview input[readonly] { background: #f3f4fb; }
.bank-narration, .bank-kind { display: block; margin-top: 4px; }
.bank-narration { max-width: 235px; }
.support-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 20px; padding: 8px 16px; background: #262b47; color: #f0eefb; font-size: var(--type-small); }
.support-footer a { color: #e8d9f2; white-space: nowrap; }
:focus-visible { outline: 3px solid #775094; outline-offset: 2px; }
.support-footer a:focus-visible { outline-color: #e8d9f2; }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  #layout { display: block; }
  nav { width: auto; padding: 8px 12px; flex-direction: row; overflow: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  nav a { white-space: nowrap; }
  .tds-navigation { width: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); overflow: visible; }
  .tds-navigation a { white-space: normal; }
  main { padding: 18px 12px; }
  .hero { margin: 20px auto; grid-template-columns: 1fr; }
  .hero-features { border-left: 0; border-top: 1px solid var(--line); }
  td, th { padding: 8px; }
}
@media (max-width: 470px) {
  .top { flex-wrap: wrap; padding: 2px 12px 8px; gap: 2px 12px; }
  .top-actions { gap: 8px; }
  .support-footer { justify-content: flex-start; }
}
textarea { font: inherit; font-size: var(--type-body); color: inherit; border: 1px solid #b9bfd6; border-radius: 8px; padding: 8px 12px; width: 100%; resize: vertical; }
.captcha-box, .entity-access { min-width: 0; padding: 10px 14px 14px; border: 1px solid var(--line); border-radius: 9px; }
.captcha-box .actions { justify-content: space-between; margin-bottom: 9px; }
.captcha-box legend, .entity-access legend { font-weight: 650; }
.entity-access label { display: flex; align-items: center; padding: 5px 0; }
.entity-access input { width: auto; }
@media print {
  @page { size: A4 landscape; margin: 13mm; }
  html, body { display: block; background: #fff; color: #111; font-size: 10pt; }
  .top, nav, .support-footer, .company-bar, .report-business-header, .report-controls, .notice, dialog, #voice-slot, #voice-controller { display: none !important; }
  #layout, main { display: block; margin: 0; padding: 0; width: auto; max-width: none; }
  #active-report, #active-report .panel, #active-report .table { border: 0; padding: 0; box-shadow: none; overflow: visible; }
  #active-report h1 { font-size: clamp(30px, 4.8vw, 50px); line-height: 1.08; letter-spacing: -.045em; }
  #active-report h2 { font-size: 21px; letter-spacing: -.02em; }
  #active-report table { width: 100%; min-width: 0; }
  #active-report th { white-space: normal; }
  #active-report th, #active-report td { padding: 3pt 4pt; font-size: 9pt; }
  #active-report [data-report-actions] :is(th,td):last-child { display: none; }
  #active-report thead { display: table-header-group; }
  #active-report tr { break-inside: avoid; }
  body:has(dialog[open] .invoice-copy) #layout { display: none; }
  body #modal[open]:has(.invoice-copy) { display: block !important; position: static; width: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: visible; }
  #modal:has(.invoice-copy)::backdrop { display: none; }
  #modal:has(.invoice-copy) form { display: block; }
  #modal:has(.invoice-copy) .actions, #modal:has(.invoice-copy) .error { display: none; }
  .invoice-copy .table { overflow: visible; }
  .invoice-copy th { white-space: normal; }
  .invoice-copy th, .invoice-copy td { padding: 4pt; }
}
