:root {
  --ink: #111111;
  --muted: #6b7280;
  --line: #dedede;
  --panel: #ffffff;
  --surface: #f5f5f5;
  --soft: #eeeeee;
  --primary: #111111;
  --primary-dark: #000000;
  --accent: #3f3f46;
}

* {
  letter-spacing: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0, var(--surface) 260px),
    var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Navigation Bar */
.app-navbar {
  background: rgba(17, 17, 17, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.app-navbar .navbar-brand {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.app-navbar .nav-link {
  color: rgba(255, 255, 255, 0.75) !important;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.app-navbar .nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1);
}

.app-navbar .navbar-collapse {
  padding-bottom: 0.5rem;
}

@media (min-width: 992px) {
  .app-navbar .navbar-collapse {
    padding-bottom: 0;
  }
}

.text-primary-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  border-radius: 8px;
  font-weight: 700;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-light {
  border-color: var(--line);
}

.form-control,
.form-select {
  border-color: #d4d4d4;
  border-radius: 8px;
  min-height: 46px;
  background: #fbfbfb;
}

.form-control:focus,
.form-select:focus {
  border-color: #111111;
  box-shadow: 0 0 0 0.18rem rgba(17, 17, 17, 0.08);
}

.app-navbar {
  margin: 1rem auto 0;
  width: min(1120px, calc(100% - 2rem));
  border: 1px solid #262626;
  border-radius: 8px;
  background: #111111;
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.14);
}

.app-navbar .navbar-brand,
.app-navbar .nav-link {
  color: #fff;
}

.app-navbar .nav-link {
  opacity: 0.78;
}

.app-navbar .nav-link:hover {
  opacity: 1;
}

.messages-container {
  margin-top: 1rem;
}

.auth-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.25rem;
}

.auth-shell-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  width: min(100%, 940px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(17, 17, 17, 0.12);
}

.auth-brand-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 540px;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  color: #ffffff;
  background: linear-gradient(155deg, #050505 0%, #262626 58%, #4b5563 100%);
}

.brand-mark {
  width: fit-content;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.auth-brand-card h2 {
  max-width: 560px;
  margin-bottom: 0.9rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.98;
}

.auth-brand-card p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 4vw, 2.4rem);
  background: #f8f8f8;
}

.auth-card,
.settings-card,
.metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 44px rgba(17, 17, 17, 0.08);
}

.auth-card {
  width: min(100%, 430px);
  padding: clamp(1.35rem, 4vw, 2rem);
}

.auth-card h1,
.settings-card h1,
.dashboard-header h1 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.eyebrow {
  margin-bottom: 0.45rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-switch {
  margin: 1.25rem 0 0;
  color: var(--muted);
  text-align: center;
}

.auth-switch a {
  color: var(--primary);
  font-weight: 700;
}

.dashboard-shell,
.settings-shell {
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.dashboard-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(17, 17, 17, 0.06);
}

.metric-card {
  height: 100%;
  padding: 1.35rem;
}

.metric-card strong {
  display: block;
  margin: 0.2rem 0 0.65rem;
  font-size: 1.6rem;
}

.metric-card p {
  margin: 0;
  color: var(--muted);
}

.metric-label {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.settings-card {
  max-width: 720px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.receipt-workspace {
  padding: clamp(1rem, 3vw, 2.5rem) 0;
}

.receipt-card {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  border: 1px solid #161616;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(17, 17, 17, 0.08);
  color: #070707;
  font-family: "Nikosh", "Nirmala UI", "Vrinda", "SolaimanLipi", serif;
}

.receipt-header {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(320px, 1.4fr) minmax(220px, 1fr);
  align-items: start;
  gap: 1rem;
  margin-bottom: clamp(0.85rem, 2.5vw, 1.35rem);
}

.receipt-form-meta,
.receipt-page-meta,
.receipt-title p {
  font-size: clamp(0.86rem, 1.25vw, 1.02rem);
  font-weight: 700;
  line-height: 1.15;
}

.receipt-form-meta p,
.receipt-page-meta p,
.receipt-title p {
  margin: 0;
}

.receipt-title {
  padding-top: 1.9rem;
  text-align: center;
}

.receipt-title h1 {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.28rem);
  font-weight: 700;
  line-height: 1.18;
}

.receipt-page-meta {
  justify-self: end;
  text-align: right;
}

.receipt-page-meta .receipt-inline-field {
  justify-content: flex-end;
}

.receipt-fields {
  display: grid;
  gap: 0.42rem;
}

.field-row {
  display: grid;
  gap: 0.9rem;
}

.field-row-office {
  grid-template-columns: minmax(0, 1fr);
}

.field-row-three {
  grid-template-columns: minmax(280px, 1.25fr) minmax(180px, 0.8fr) minmax(160px, 0.7fr);
}

.field-row-register {
  grid-template-columns: minmax(0, 1fr);
}

.receipt-inline-field {
  display: flex;
  align-items: end;
  gap: 0.55rem;
  min-width: 0;
  color: #111111;
  font-size: clamp(0.9rem, 1.35vw, 1.08rem);
  font-weight: 700;
  line-height: 1.12;
}

.receipt-inline-field span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.receipt-inline-field input {
  flex: 1 1 160px;
  min-width: 80px;
  height: 26px;
  padding: 0 0.2rem 0.1rem;
  border: 0;
  border-bottom: 2px dotted #111111;
  border-radius: 0;
  background: transparent;
  color: #111111;
  font: inherit;
  font-weight: 700;
  outline: 0;
}

.receipt-inline-field input:focus {
  border-bottom-style: solid;
  box-shadow: none;
}

.serial-field {
  gap: 0.35rem;
  margin-top: 0.2rem;
  font-size: clamp(0.82rem, 1.15vw, 0.94rem);
}

.serial-field input {
  flex: 0 1 170px;
  text-align: center;
}

.receipt-section {
  margin-top: clamp(1rem, 3vw, 1.55rem);
}

.receipt-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.receipt-section-title h2 {
  margin: 0;
  font-size: clamp(0.95rem, 1.45vw, 1.12rem);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.receipt-add-btn,
.receipt-remove-btn {
  border: 1px solid #111111;
  border-radius: 8px;
  background: #111111;
  color: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.receipt-add-btn {
  position: absolute;
  right: 0;
  padding: 0.55rem 0.75rem;
}

.receipt-remove-btn {
  display: none;
  padding: 0.45rem 0.6rem;
  background: #ffffff;
  color: #111111;
}

.has-multiple-rows .receipt-remove-btn {
  display: inline-flex;
}

.receipt-table-wrap {
  overflow-x: auto;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: clamp(0.82rem, 1.2vw, 0.98rem);
  font-weight: 700;
  line-height: 1.14;
}

.receipt-table th,
.receipt-table td {
  padding: 0.18rem 0.3rem;
  border: 2px dotted #111111;
  vertical-align: middle;
}

.receipt-table th {
  text-align: center;
}

.receipt-table td:first-child,
.receipt-table th:first-child {
  width: 58px;
  text-align: center;
}

.owner-table th:nth-child(3),
.owner-table td:nth-child(3) {
  width: 140px;
}

.land-table th:nth-child(2),
.land-table td:nth-child(2) {
  width: 170px;
}

.land-table th:nth-child(3),
.land-table td:nth-child(3) {
  width: 260px;
}

.land-table th:nth-child(4),
.land-table td:nth-child(4) {
  width: 300px;
}

.receipt-table .action-col {
  width: 86px;
  text-align: center;
}

.receipt-table-input {
  width: 100%;
  min-height: 24px;
  padding: 0.15rem 0.2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111111;
  font: inherit;
  font-weight: 700;
  outline: 0;
}

.receipt-table-input:focus {
  background: #f5f5f5;
  box-shadow: inset 0 -2px 0 #111111;
}

.receipt-table tfoot th {
  text-align: center;
}

.payment-section {
  padding-bottom: 1rem;
}

.payment-title {
  margin: 0;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-bottom: 0;
  font-size: clamp(0.95rem, 1.45vw, 1.12rem);
  font-weight: 800;
  text-align: center;
}

.payment-table-wrap {
  overflow-x: auto;
}

.payment-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: clamp(0.82rem, 1.18vw, 1rem);
  font-weight: 700;
}

.payment-table th,
.payment-table td {
  min-height: 54px;
  padding: 0.32rem 0.25rem;
  border: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.payment-table th {
  height: 62px;
  line-height: 1.18;
}

.payment-table td {
  height: 42px;
}

.total-words-field {
  margin-top: 0.8rem;
  padding-bottom: 0.2rem;
}

.receipt-bottom-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 160px minmax(260px, 1fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  margin-top: 1rem;
}

.receipt-note-block {
  display: grid;
  gap: 0.45rem;
}

.receipt-note-block .receipt-inline-field {
  font-size: clamp(0.84rem, 1.25vw, 1rem);
}

.compact-line input {
  max-width: 170px;
}

.receipt-qr-block {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
}

.qr-box {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  background: #ffffff;
}

.qr-box img,
.qr-box canvas {
  width: 112px;
  height: 112px;
}

.receipt-qr-block p {
  margin: 0;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.receipt-certified-text {
  font-size: clamp(0.86rem, 1.25vw, 1rem);
  font-weight: 700;
  line-height: 1.24;
  text-align: center;
}

.save-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.save-card,
.saved-documents-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f8f8;
}

.save-card h2,
.saved-documents-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 850;
}

.save-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.save-grid,
.qr-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.save-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.save-grid label,
.custom-url-field {
  display: grid;
  gap: 0.3rem;
  color: #333333;
  font-size: 0.82rem;
  font-weight: 800;
}

.qr-choice {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 800;
}

.custom-url-field {
  margin-bottom: 1rem;
}

.custom-url-field.is-muted {
  opacity: 0.62;
}

.save-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.saved-documents-list {
  display: grid;
  gap: 0.45rem;
  max-height: 210px;
  overflow: auto;
}

.saved-documents-list a {
  display: grid;
  gap: 0.1rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
  text-decoration: none;
}

.saved-documents-list small {
  color: var(--muted);
}

.documents-shell {
  padding: clamp(1rem, 3vw, 2.5rem) 0;
}

.documents-header-card,
.documents-list-card,
.empty-documents-card {
  width: min(100%, 980px);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(17, 17, 17, 0.06);
}

.documents-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.documents-header-card h1,
.empty-documents-card h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 850;
}

.documents-list-card {
  overflow: hidden;
}

.document-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

.document-row:last-child {
  border-bottom: 0;
}

.document-main-link {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  color: #111111;
  text-decoration: none;
}

.document-main-link strong {
  overflow: hidden;
  font-size: 1rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-main-link span {
  color: var(--muted);
  font-size: 0.82rem;
}

.document-menu-btn {
  display: inline-grid;
  place-items: center;
  gap: 0.15rem;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.document-menu-btn span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #111111;
}

.empty-documents-card {
  padding: clamp(1.25rem, 4vw, 2rem);
  text-align: center;
}

.empty-documents-card p {
  color: var(--muted);
}

.is-public-document .receipt-add-btn,
.is-public-document .receipt-remove-btn,
.is-public-document .action-col {
  display: none;
}

.is-public-document input {
  pointer-events: none;
}

.public-document-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 1120px);
  margin: 0 auto 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(17, 17, 17, 0.06);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.public-document-toolbar div {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.public-document-toolbar span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.public-document-toolbar strong {
  overflow: hidden;
  font-size: 0.98rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receipt-print-footer {
  display: none;
}

@media (max-width: 900px) {
  .auth-shell-card {
    grid-template-columns: 1fr;
  }

  .auth-brand-card {
    min-height: 320px;
  }

  .receipt-header {
    grid-template-columns: 1fr;
  }

  .receipt-title {
    padding-top: 0.4rem;
    text-align: left;
  }

  .receipt-page-meta {
    justify-self: stretch;
    text-align: left;
  }

  .receipt-page-meta .receipt-inline-field {
    justify-content: flex-start;
  }

  .field-row-three {
    grid-template-columns: 1fr;
  }

  .receipt-section-title {
    justify-content: space-between;
  }

  .receipt-add-btn {
    position: static;
  }

  .receipt-bottom-grid,
  .save-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dashboard-header {
    align-items: stretch;
    flex-direction: column;
  }

  .receipt-card {
    padding: 1rem;
  }

  .receipt-inline-field {
    display: grid;
    gap: 0.28rem;
  }

  .receipt-inline-field span {
    white-space: normal;
  }

  .receipt-inline-field input,
  .serial-field input {
    width: 100%;
    min-width: 0;
  }

  .receipt-section-title {
    align-items: stretch;
    flex-direction: column;
    gap: 0.65rem;
  }

  .receipt-section-title h2 {
    text-align: center;
  }

  .receipt-add-btn {
    width: 100%;
    min-height: 42px;
  }

  .receipt-table-wrap {
    overflow: visible;
  }

  .receipt-table,
  .receipt-table thead,
  .receipt-table tbody,
  .receipt-table tfoot,
  .receipt-table tr,
  .receipt-table th,
  .receipt-table td {
    display: block;
  }

  .receipt-table thead {
    display: none;
  }

  .receipt-table tr {
    margin-bottom: 0.85rem;
    border: 2px dotted #111111;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
  }

  .receipt-table td,
  .receipt-table th,
  .receipt-table td:first-child,
  .receipt-table th:first-child,
  .owner-table th:nth-child(3),
  .owner-table td:nth-child(3),
  .land-table th:nth-child(2),
  .land-table td:nth-child(2),
  .land-table th:nth-child(3),
  .land-table td:nth-child(3),
  .land-table th:nth-child(4),
  .land-table td:nth-child(4),
  .receipt-table .action-col {
    width: 100%;
    border: 0;
    border-bottom: 1px dotted #111111;
    text-align: left;
  }

  .receipt-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.15rem;
    color: #555555;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
  }

  .receipt-table td:first-child {
    text-align: left;
  }

  .receipt-table .action-col {
    border-bottom: 0;
  }

  .receipt-remove-btn {
    width: 100%;
    min-height: 38px;
    justify-content: center;
  }

  .receipt-table tfoot tr {
    margin-top: 0.4rem;
  }

  .receipt-table tfoot th {
    border-bottom: 1px dotted #111111;
    text-align: left;
  }

  .payment-table-wrap {
    overflow: visible;
  }

  .payment-table,
  .payment-table thead,
  .payment-table tbody,
  .payment-table tr,
  .payment-table th,
  .payment-table td {
    display: block;
  }

  .payment-table thead {
    display: none;
  }

  .payment-table tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
  }

  .payment-table td {
    height: auto;
    min-height: 64px;
    border: 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

  .payment-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.15rem;
    color: #555555;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
  }

  .receipt-bottom-grid {
    justify-items: stretch;
  }

  .receipt-certified-text {
    text-align: left;
  }

  .save-grid,
  .qr-choice-grid {
    grid-template-columns: 1fr;
  }

  .documents-header-card {
    align-items: stretch;
    flex-direction: column;
  }

  .documents-header-card .btn {
    width: 100%;
  }

  .save-actions .btn {
    width: 100%;
  }
}

@media print {
  @page {
    margin: 8mm;
  }

  html,
  body {
    background: #ffffff !important;
  }

  .app-navbar,
  .messages-container,
  .public-document-toolbar,
  .save-section,
  .receipt-add-btn,
  .receipt-remove-btn,
  .action-col {
    display: none !important;
  }

  .receipt-workspace,
  .container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .receipt-workspace {
    padding: 0 !important;
  }

  .receipt-card {
    display: block !important;
    width: 1120px !important;
    max-width: none !important;
    min-height: auto !important;
    margin: 0 auto !important;
    padding: 12px !important;
    border: 1px dotted #111111 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    page-break-inside: avoid !important;
  }

  .receipt-card,
  .receipt-card * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .receipt-header {
    display: grid !important;
    grid-template-columns: minmax(180px, 1fr) minmax(320px, 1.4fr) minmax(220px, 1fr) !important;
    margin-bottom: 1.35rem !important;
  }

  .receipt-title {
    padding-top: 1.9rem !important;
  }

  .receipt-form-meta,
  .receipt-page-meta,
  .receipt-title p {
    font-size: 11pt !important;
  }

  .receipt-title h1 {
    font-size: 13pt !important;
  }

  .receipt-fields {
    gap: 0.42rem !important;
  }

  .field-row-three {
    grid-template-columns: minmax(280px, 1.25fr) minmax(180px, 0.8fr) minmax(160px, 0.7fr) !important;
  }

  .receipt-inline-field {
    display: flex !important;
    align-items: end !important;
    gap: 0.55rem !important;
    font-size: 11pt !important;
    line-height: 1.08 !important;
  }

  .receipt-inline-field span {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  .receipt-inline-field input {
    flex: 1 1 160px !important;
    width: auto !important;
    min-width: 80px !important;
    height: 26px !important;
    border-bottom: 1px dotted #111111 !important;
  }

  .receipt-section {
    margin-top: 1.25rem !important;
  }

  .receipt-section-title {
    margin-bottom: 2.5mm !important;
  }

  .receipt-section-title h2,
  .payment-title {
    font-size: 11.5pt !important;
  }

  .receipt-table,
  .payment-table {
    display: table !important;
    font-size: 10pt !important;
    line-height: 1.1 !important;
  }

  .receipt-table thead,
  .payment-table thead {
    display: table-header-group !important;
  }

  .receipt-table tbody,
  .payment-table tbody {
    display: table-row-group !important;
  }

  .receipt-table tfoot {
    display: table-footer-group !important;
  }

  .receipt-table tr,
  .payment-table tr {
    display: table-row !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  .receipt-table th,
  .receipt-table td,
  .payment-table th,
  .payment-table td {
    display: table-cell !important;
  }

  .receipt-table td::before,
  .payment-table td::before {
    content: none !important;
  }

  .receipt-table th,
  .receipt-table td {
    padding: 1mm 1.4mm !important;
    border: 1px dotted #111111 !important;
  }

  .payment-table th,
  .payment-table td {
    padding: 1.3mm 1mm !important;
    border: 1px solid #d6d6d6 !important;
  }

  .payment-table th {
    height: 19mm !important;
  }

  .payment-table td {
    height: 12mm !important;
  }

  .receipt-table-input {
    min-height: 5mm !important;
  }

  .total-words-field {
    margin-top: 2.5mm !important;
  }

  .receipt-bottom-grid {
    grid-template-columns: minmax(260px, 1fr) 160px minmax(260px, 1fr) !important;
    gap: clamp(1rem, 4vw, 3rem) !important;
    margin-top: 1rem !important;
  }

  .receipt-note-block {
    gap: 1.4mm !important;
  }

  .receipt-note-block .receipt-inline-field,
  .receipt-certified-text {
    font-size: 11pt !important;
  }

  .qr-box,
  .qr-box img,
  .qr-box canvas {
    width: 23mm !important;
    height: 23mm !important;
  }

  .receipt-print-footer {
    display: none !important;
    grid-template-columns: 1fr auto !important;
    align-items: end !important;
    gap: 2mm !important;
    margin-top: auto !important;
    padding: 0 2mm 0.2mm !important;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
    font-size: 9pt !important;
    line-height: 1 !important;
  }

  .receipt-print-footer span {
    border-bottom: 1px dotted #111111 !important;
  }

  .receipt-print-footer strong {
    font-size: 9pt !important;
    font-weight: 500 !important;
  }

  .receipt-table-wrap,
  .payment-table-wrap {
    overflow: visible !important;
  }

  input {
    color: #000000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
