:root {
    --bg: #eef3fb;
    --panel: #ffffff;
    --ink: #263244;
    --muted: #6f7d91;
    --line: #cfd8e6;
    --brand: #0879f2;
    --brand-dark: #075fbe;
    --soft: #e6f1ff;
    --danger: #b42318;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.loginBody {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.loginShell {
    width: min(520px, 100%);
}

.loginCard {
    display: grid;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .14);
}

.loginCard h1 {
    margin-top: 4px;
    font-size: 30px;
}

.loginCard p {
    margin-top: 8px;
    color: var(--muted);
}

.dropZone {
    display: grid;
    gap: 6px;
    min-height: 126px;
    place-items: center;
    border: 2px dashed #9bb7dc;
    border-radius: 8px;
    padding: 18px;
    background: #f8fbff;
    color: var(--ink);
    text-align: center;
    cursor: pointer;
}

.dropZone.isDragging {
    border-color: var(--brand);
    background: var(--soft);
}

.dropZone input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.dropZone span {
    color: var(--muted);
    font-size: 13px;
}

.dropZone em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 6px;
    border-radius: 8px;
    padding: 0 16px;
    background: var(--brand);
    color: #fff;
    font-style: normal;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(8, 121, 242, .22);
}

.dropZone:hover em,
.dropZone.isDragging em {
    background: var(--brand-dark);
}

.loadingOverlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 22px;
    background: rgba(15, 23, 42, .18);
    backdrop-filter: blur(2px);
}

.loadingOverlay.isActive {
    display: flex;
}

.loadingBox {
    width: min(520px, calc(100% - 32px));
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .22);
}

.loadingBox strong,
.loadingBox span {
    display: block;
}

.loadingBox strong {
    font-size: 15px;
}

.loadingBox > span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.progressBar {
    position: relative;
    height: 9px;
    margin-top: 13px;
    overflow: hidden;
    border-radius: 999px;
    background: #dbeafe;
}

.progressBar span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), #14b8a6);
    animation: loadingSweep 1.05s ease-in-out infinite;
}

@keyframes loadingSweep {
    0% {
        transform: translateX(-110%);
    }
    100% {
        transform: translateX(245%);
    }
}

.shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 44px;
}

.hero {
    display: grid;
    grid-template-columns: 86px 1fr 360px;
    gap: 18px;
    align-items: center;
    padding: 10px 0 56px;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
}

.govBrand {
    display: flex;
    align-items: center;
    color: #7a8497;
}

.seal {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 2px solid #9ca8bd;
    border-radius: 50%;
    color: #7a8497;
    font-family: Georgia, serif;
    font-weight: 800;
}

.companySeal {
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
}

.companySeal img {
    display: block;
    max-width: 56px;
    max-height: 56px;
    object-fit: contain;
}

.govBrand span,
.govBrand strong {
    display: block;
    text-transform: uppercase;
}

.govBrand span {
    font-family: Georgia, serif;
    font-size: 12px;
}

.govBrand strong {
    margin-top: 4px;
    color: #657084;
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 500;
}

.platformTitle {
    justify-self: start;
}

.receiptIcon {
    position: relative;
    width: 48px;
    height: 64px;
    border-left: 6px solid #477ff1;
}

.receiptIcon::before {
    content: "";
    position: absolute;
    inset: 5px 7px auto auto;
    width: 25px;
    height: 18px;
    border-top: 6px solid #477ff1;
    border-bottom: 6px solid #477ff1;
}

.receiptIcon span {
    display: block;
    width: 23px;
    height: 6px;
    margin: 7px 0 0 15px;
    border-radius: 999px;
    background: #477ff1;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 4px;
    color: #0b63ce;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

h1, h2, p {
    margin: 0;
}

h1 {
    max-width: 760px;
    font-size: 42px;
    line-height: 1.1;
    color: #2b3443;
}

.companyTitle span {
    display: block;
}

h2 {
    font-size: 21px;
}

.hero p,
.panelHead p {
    margin-top: 8px;
    color: var(--muted);
}

.heroStats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.heroStats div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .56);
    text-align: center;
}

.heroStats strong,
.heroStats span {
    display: block;
}

.heroStats strong {
    color: #0b63ce;
    font-size: 20px;
}

.heroStats span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.appTabs {
    display: flex;
    gap: 10px;
    margin-top: 0;
    border-bottom: 1px solid var(--line);
}

.appTabs a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    padding: 0 16px;
    color: var(--muted);
    font-weight: 800;
    text-decoration: none;
}

.appTabs a.active {
    border-color: var(--line);
    background: #fff;
    color: var(--brand);
    box-shadow: 0 -2px 0 var(--brand) inset;
}

.appTabs .logoutTab {
    margin-left: auto;
    border-color: #fecaca;
    border-bottom: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff1f2;
    color: var(--danger);
}

.appTabs .logoutTab:hover {
    background: #fee2e2;
}

.filters,
.panel {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: none;
}

.filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(145px, 1fr)) minmax(220px, 1.5fr) minmax(130px, .8fr) 120px auto auto;
    gap: 12px;
    align-items: end;
    padding: 16px;
}

label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

input,
select {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 0 11px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.typeFilter {
    grid-column: 1 / -1;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px;
    background: #f6f9ff;
}

.typeFilter legend {
    padding: 0 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.typeFilter p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
}

.typeGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 8px;
}

.check {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 10px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    text-transform: none;
}

.check input {
    width: 16px;
    min-height: 16px;
    padding: 0;
    accent-color: var(--brand);
}

.check span {
    flex: 1;
}

.check small {
    color: var(--muted);
    font-size: 11px;
}

button,
.button,
.mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 0;
    border-radius: 14px;
    padding: 0 14px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

button:hover,
.button:hover,
.mini:hover {
    background: var(--brand-dark);
}

.muted {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--brand);
}

.muted:hover {
    background: var(--soft);
}

.mini {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
}

.mutedMini {
    margin-left: 5px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
}

.mutedMini:hover {
    background: var(--soft);
    color: var(--ink);
}

.fileActions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.fileIcon {
    position: relative;
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: end;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 5px;
    padding-bottom: 5px;
    background: #fff;
    color: var(--brand);
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.fileIcon::before {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 11px;
    height: 11px;
    border-left: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    border-radius: 0 5px 0 3px;
    background: #fff;
}

.fileIcon:hover {
    background: var(--soft);
}

.fileIcon span {
    position: relative;
    z-index: 1;
}

.jsonIcon {
    color: #0b63ce;
}

.pdfIcon {
    color: #d92d20;
}

.pdfIcon:hover {
    background: #fff1f1;
}

.panel {
    overflow: hidden;
}

.panelHead {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.panelActions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tableWrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th,
td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    background: #eef4ff;
    color: #334155;
    font-size: 12px;
    text-transform: uppercase;
    white-space: nowrap;
}

td {
    background: #fff;
}

.sub,
.code {
    display: block;
    max-width: 320px;
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 12px;
}

.status {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 9px;
    background: var(--soft);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
}

.statusVoid {
    background: #fff1f1;
    color: #b42318;
}

.empty,
.alert {
    color: var(--danger);
    text-align: center;
}

.alert {
    margin-top: 18px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 14px;
    background: #fff1f2;
    font-weight: 700;
}

.pager {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    align-items: center;
    padding: 14px 18px;
}

.reportPanel {
    margin-top: 22px;
}

.reportsHome .filters {
    margin-top: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.reportFilters {
    grid-template-columns: repeat(2, minmax(145px, 1fr)) minmax(130px, .8fr) minmax(240px, 1.2fr) auto;
}

.reportSubmitActions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.modalOverlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, .42);
}

.modalOverlay.isActive {
    display: flex;
}

.modalBox {
    width: min(620px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .26);
}

.modalHead,
.modalActions {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px;
}

.modalHead {
    border-bottom: 1px solid var(--line);
}

.modalHead h2 {
    margin: 0;
    font-size: 20px;
}

.modalHead p {
    margin-top: 6px;
    color: var(--muted);
}

.modalBody {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.modalActions {
    justify-content: flex-end;
    border-top: 1px solid var(--line);
}

.iconButton {
    width: 38px;
    min-height: 38px;
    border-radius: 50%;
    padding: 0;
    font-size: 24px;
    line-height: 1;
}

.chipList {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px;
    background: #f8fbff;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    border: 1px solid #bfd5f5;
    border-radius: 999px;
    padding: 5px 8px 5px 11px;
    background: var(--soft);
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.chip button {
    width: 20px;
    min-height: 20px;
    border-radius: 50%;
    padding: 0;
    background: #fff;
    color: var(--brand);
    font-size: 15px;
    line-height: 1;
}

.chip button:hover {
    background: var(--brand);
    color: #fff;
}

.reportPrompt {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 18px;
}

.reportPrompt p {
    margin-top: 8px;
    color: var(--muted);
}

.reportPrompt form {
    flex: 0 0 auto;
}

.report {
    padding: 24px;
    background: #fff;
}

.reportTop,
.reportMeta,
.fiscal,
.signatures {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.reportTop {
    text-align: center;
}

.reportTop div:first-child {
    flex: 1;
}

.reportTop span {
    display: block;
    margin-top: 6px;
}

.reportMeta,
.fiscal,
.signatures {
    margin-top: 18px;
    flex-wrap: wrap;
}

.book {
    margin-top: 14px;
    border: 1px solid #9ca3af;
    font-size: 12px;
    table-layout: fixed;
}

.book th,
.book td {
    border: 1px solid #cbd5e1;
    padding: 7px;
    text-align: right;
    overflow-wrap: anywhere;
    vertical-align: middle;
}

.book th {
    line-height: 1.15;
    white-space: normal;
}

.book th:first-child,
.book td:first-child,
.book th:nth-child(2),
.book td:nth-child(2),
.book th:nth-child(3),
.book td:nth-child(3),
.book th:nth-child(4),
.book td:nth-child(4) {
    text-align: center;
}

.book tfoot th {
    background: #f8fafc;
}

.utilityTable th:nth-child(2),
.utilityTable td:nth-child(2) {
    text-align: left;
}

.utilityTable th:first-child,
.utilityTable td:first-child {
    width: 90px;
}

.utilitySummary {
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 800;
}

.utilitySummary span {
    white-space: nowrap;
}

.expenseTable th:first-child,
.expenseTable td:first-child,
.expenseTable th:nth-child(3),
.expenseTable td:nth-child(3) {
    text-align: center;
}

.anexoTable {
    min-width: 2600px;
    font-size: 11px;
}

.anexoTable th,
.anexoTable td {
    padding: 7px 8px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: right;
}

.anexoTable th {
    background: #2f75b5;
    color: #fff;
    line-height: 1.15;
}

.anexoTable td:nth-child(-n+10),
.anexoTable td:nth-last-child(-n+3) {
    text-align: center;
}

.anexoTable tfoot th {
    background: #eaf2fb;
    color: var(--ink);
}

.voucherBody {
    background: #d9dee7;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
}

.voucherToolbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: rgba(244, 247, 251, .94);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .12);
}

.voucherPage {
    width: 645px;
    min-height: 940px;
    margin: 18px auto;
    padding: 0 4px 14px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .22);
    font-size: 10px;
}

.voucherHeader {
    display: grid;
    grid-template-columns: 82px 1fr 255px;
    align-items: start;
    gap: 8px;
}

.voucherLogo {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voucherLogo img {
    max-width: 70px;
    max-height: 64px;
    object-fit: contain;
}

.logoMark {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #f97316;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.voucherCompany {
    text-align: center;
}

.voucherCompany h1 {
    max-width: none;
    color: #000;
    font-size: 19px;
    line-height: 1.15;
    text-transform: uppercase;
}

.voucherCompany strong {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    text-transform: uppercase;
}

.voucherTitle {
    text-align: right;
}

.voucherTitle h2 {
    margin-top: 50px;
    color: #000;
    font-size: 19px;
    text-transform: none;
}

.voucherMeta {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 6px 26px;
    margin-top: 4px;
}

.voucherMeta div {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 7px;
    align-items: start;
}

.voucherMeta span,
.voucherMeta strong {
    font-weight: 400;
}

.partyGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
}

.partyGrid h3,
.relatedDocs h3 {
    margin: 0;
    border-bottom: 1px solid #000;
    padding-bottom: 3px;
    color: #000;
    font-size: 11px;
}

.partyGrid dl {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 5px 7px;
    margin: 4px 0 0;
    align-items: start;
}

.partyGrid dt,
.partyGrid dd {
    margin: 0;
}

.voucherItems,
.relatedDocs table {
    width: 100%;
    margin-top: 12px;
    border-collapse: collapse;
    color: #000;
    font-size: 10px;
}

.voucherItems th,
.voucherItems td,
.relatedDocs th,
.relatedDocs td {
    border: 0;
    padding: 3px 4px;
    color: #000;
    background: #fff;
}

.voucherItems th,
.relatedDocs th {
    background: #d1d1d1;
    font-weight: 800;
    text-align: right;
    text-transform: uppercase;
    line-height: 1.05;
}

.voucherItems th:nth-child(1),
.voucherItems td:nth-child(1) {
    text-align: center;
    width: 66px;
}

.voucherItems th:nth-child(2),
.voucherItems td:nth-child(2),
.relatedDocs th,
.relatedDocs td {
    text-align: left;
}

.voucherItems th:nth-child(2),
.voucherItems td:nth-child(2) {
    width: 250px;
}

.voucherItems th:nth-child(3),
.voucherItems td:nth-child(3) {
    width: 78px;
}

.voucherItems th:nth-child(n+4),
.voucherItems td:nth-child(n+4) {
    width: 82px;
}

.voucherItems td:nth-child(n+3) {
    text-align: right;
}

.voucherBottom {
    display: grid;
    grid-template-columns: 1fr 235px;
    gap: 20px;
    margin-top: 14px;
}

.qrBox {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.qrBox img,
.qrMissing {
    width: 126px;
    height: 126px;
}

.qrMissing {
    display: grid;
    place-items: center;
    border: 1px solid #000;
    text-align: center;
}

.qrBox span,
.qrBox strong {
    display: inline-block;
    margin-top: 4px;
}

.qrBox strong {
    margin-left: 24px;
}

.voucherTotals p {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 8px;
}

.voucherTotals .grand {
    margin-top: 10px;
    font-weight: 900;
}

.relatedDocs {
    margin-top: 14px;
}

.relatedDocs table {
    margin-top: 4px;
}

.relatedDocs th:last-child,
.relatedDocs td:last-child {
    text-align: right;
}

.voucherFooter {
    margin-top: 46px;
    padding-right: 10px;
    text-align: right;
    font-size: 14px;
}

.batchBody {
    padding-bottom: 24px;
}

.batchCount {
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    font-weight: 800;
}

.batchProgressOverlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, .38);
    backdrop-filter: blur(2px);
}

.batchProgressOverlay.isHidden {
    display: none;
}

.batchProgressCard {
    min-width: min(440px, 100%);
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 8px;
    padding: 28px 32px;
    background: rgba(255, 255, 255, .98);
    color: var(--ink);
    text-align: center;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .26);
}

.batchProgressCard strong,
.batchProgressCard span {
    display: block;
}

.batchProgressCard strong {
    font-size: 18px;
}

.batchProgressValue {
    margin-top: 12px;
    color: var(--brand);
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
}

.batchProgressCard > span:last-child {
    margin-top: 10px;
    color: var(--muted);
    font-size: 16px;
    font-weight: 800;
}

.batchProgressOverlay.isDone .batchProgressValue {
    color: #0f766e;
}

.jsonCancelInline {
    margin: 18px auto 0;
}

.batchFrame {
    display: block;
    width: 680px;
    height: 980px;
    margin: 18px auto;
    border: 0;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .22);
    page-break-after: always;
}

.batchEmpty {
    display: grid;
    place-items: center;
    color: var(--danger);
    font-weight: 800;
}

.batchPageSlot:empty {
    display: none;
}

.batchErrorPage {
    display: grid;
    place-items: center;
    gap: 8px;
    color: var(--danger);
    font-size: 16px;
    font-weight: 800;
    text-align: center;
}

.batchErrorPage span {
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 980px) {
    .hero,
    .filters,
    .reportFilters {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-bottom: 28px;
        text-align: center;
    }

    .govBrand,
    .platformTitle {
        justify-self: center;
        text-align: left;
    }

    .appTabs {
        overflow-x: auto;
    }

    .heroStats {
        grid-template-columns: 1fr;
    }

    .panelHead,
    .pager,
    .reportPrompt {
        align-items: stretch;
        flex-direction: column;
    }
}

@media print {
    @page {
        size: letter landscape;
        margin: 8mm;
    }

    @page utilityPortrait {
        size: letter portrait;
        margin: 10mm;
    }

    @page voucherPortrait {
        size: letter portrait;
        margin: 8mm;
    }

    .loadingOverlay,
    .modalOverlay {
        display: none;
    }

    body {
        background: #fff;
    }

    .hero,
    .appTabs,
    .filters,
    .panel:not(.reportPanel) .panelHead,
    .panel:not(.reportPanel),
    .reportPanel > .panelHead {
        display: none;
    }

    .shell {
        width: 100%;
        padding: 0;
    }

    .panel,
    .report {
        border: 0;
        box-shadow: none;
        margin: 0;
        padding: 0;
    }

    .tableWrap {
        overflow: visible;
    }

    .book {
        font-size: 10px;
        table-layout: fixed;
        width: 100%;
    }

    .book th,
    .book td {
        padding: 4px 3px;
    }

    .book th {
        font-size: 9px;
        line-height: 1.15;
        white-space: normal;
    }

    .book td {
        font-size: 9px;
    }

    .book th:first-child,
    .book td:first-child {
        width: 4%;
    }

    .book th:nth-child(2),
    .book td:nth-child(2),
    .book th:nth-child(3),
    .book td:nth-child(3) {
        width: 12%;
    }

    .book th:nth-child(4),
    .book td:nth-child(4) {
        width: 10%;
    }

    .utilityPrintPage {
        page: utilityPortrait;
    }

    .utilityPrintPage .book {
        font-size: 11px;
    }

    .utilityPrintPage .book th,
    .utilityPrintPage .book td {
        padding: 5px 4px;
    }

    .utilityPrintPage .book th,
    .utilityPrintPage .book td {
        font-size: 10px;
    }

    .utilityPrintPage .utilityTable th:first-child,
    .utilityPrintPage .utilityTable td:first-child {
        width: 12%;
    }

    .utilityPrintPage .utilityTable th:nth-child(2),
    .utilityPrintPage .utilityTable td:nth-child(2) {
        width: 40%;
        text-align: left;
    }

    .utilityPrintPage .utilitySummary {
        justify-content: space-between;
        margin-top: 12px;
        padding: 8px;
        font-size: 11px;
    }

    .fiscal,
    .signatures {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 24px;
    }

    .fiscal span:first-child {
        grid-column: 1 / -1;
    }

    .voucherToolbar,
    .batchProgressOverlay {
        display: none;
    }

    .voucherBody,
    .batchBody {
        background: #fff;
    }

    .voucherBody,
    .batchBody {
        page: voucherPortrait;
    }

    .voucherPage {
        page: voucherPortrait;
        width: 100%;
        min-height: auto;
        margin: 0;
        box-shadow: none;
    }

    .batchFrame {
        display: none;
    }

    .batchBody .voucherPage {
        page: voucherPortrait;
        width: 100%;
        min-height: 260mm;
        margin: 0;
        box-shadow: none;
        page-break-after: always;
        break-after: page;
    }
}

