@font-face {
  font-family: DargahWeb;
  src: url('/static/fonts/dargah-municipal-web.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --primary: #086a86;
  --primary-dark: #07556b;
  --primary-ink: #07556b;
  --primary-soft: #e9f4f6;
  --bg: #f4f7f8;
  --surface: #ffffff;
  --card: #ffffff;
  --text: #183c4d;
  --muted: #566e79;
  --border: #d9e4e8;
  --success: #167154;
  --success-soft: #e9f7f1;
  --success-dark: #10543e;
  --danger: #b42332;
  --warning: #8c5711;
  --transition: border-color .18s ease, box-shadow .18s ease;
  color-scheme: light;
}
[data-theme="dark"] {
  --primary: #086a86;
  --primary-dark: #07556b;
  --primary-ink: #a5deee;
  --primary-soft: #183c49;
  --bg: #0d1b27;
  --surface: #162b3a;
  --card: #162b3a;
  --text: #edf5f8;
  --muted: #b4c9d2;
  --border: #304b5b;
  --success: #79dec0;
  --success-soft: #163c37;
  --danger: #ffadb5;
  --warning: #f3c477;
  color-scheme: dark;
}
[hidden] { display: none !important; }
body, button, input, select, textarea {
  font-family: DargahWeb, Tahoma, sans-serif !important;
}
body.citizen-app, body.citizen-subpage, body.receipt-page {
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  margin: 0;
  min-height: 100vh;
  transition: background-color .18s ease;
}
html.citizen-home { transition: background-color .18s ease; }
*, *::before, *::after { box-sizing: border-box; }
button, a, input, select { touch-action: manipulation; }
.citizen-app #result > .row { margin-inline: 0; }
.citizen-app #result > .kpi {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  background: transparent;
}
.citizen-app #result .payment-only {
  width: min(100%, 620px);
  margin-inline: auto;
}
.citizen-app .toast-container { max-width: calc(100vw - 32px); }
.citizen-app .toast-container .toast { max-width: 100%; }
.btn, .header-icon-btn, .theme-control {
  min-height: 44px;
  border-radius: 12px;
}
.btn-primary, [data-theme="dark"] .btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #0069a5;
  --bs-btn-border-color: #0069a5;
  --bs-btn-hover-bg: #005584;
  --bs-btn-hover-border-color: #005584;
  --bs-btn-disabled-bg: #426b86;
  --bs-btn-disabled-border-color: #426b86;
  background: #0069a5;
  border-color: #0069a5;
  color: #fff;
}
.citizen-app .btn-success {
  --bs-btn-bg: #0069a5;
  --bs-btn-border-color: #0069a5;
  --bs-btn-hover-bg: #005584;
  background: #0069a5;
  border-color: #0069a5;
  color: #fff;
}
.btn-outline-primary { color: #0069a5; border-color: #84b5d5; }
[data-theme="dark"] .btn-outline-primary { color: #a8d9ff; border-color: #5f91b4; }
.btn-outline-secondary { color: var(--text); border-color: var(--border); }
a { color: #0069a5; }
[data-theme="dark"] a { color: #9ed3ff; }
:is(button,a,input,select,summary,[tabindex]):focus-visible {
  outline: 3px solid #d19016 !important;
  outline-offset: 3px;
}
.small-muted, .text-muted, .form-text { color: var(--muted) !important; }
.form-control, .form-select, [data-theme="dark"] .form-control, [data-theme="dark"] .form-select {
  background-color: var(--surface);
  color: var(--text);
  border-color: var(--border);
  min-height: 46px;
  border-radius: 11px;
}
.form-control::placeholder { color: var(--muted); opacity: .9; }
.citizen-app .app-container { max-width: 1180px; }
.citizen-app .hero {
  background: transparent;
  color: var(--text);
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.citizen-app .hero > .container { padding-top: 20px !important; padding-bottom: 12px !important; }
.citizen-app .brand-row {
  padding: 15px 20px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid #0069a5;
  border-radius: 18px;
}
.citizen-app .hero .brand-title { color: var(--text); font-size: clamp(1.05rem, 2.3vw, 1.4rem); }
.citizen-app .hero .brand-subtitle { display: block !important; color: var(--muted) !important; opacity: 1; }
.citizen-app .act-add { color: #0069a5; border-color: #84b5d5; }
[data-theme="dark"] .citizen-app .act-add { color: #b4dcff; border-color: #5f91b4; }
.citizen-app .act-add:disabled { opacity: 1; color: var(--muted); background: var(--surface); }
.citizen-app .hero .brand-subtitle { color: var(--muted); opacity: 1; font-size: .83rem; }
.citizen-app .logo {
  width: 52px;
  height: 52px;
  background: #fff;
  color: #0069a5;
  border-radius: 12px;
  box-shadow: none;
  flex-shrink: 0;
  padding: 4px;
}
.citizen-app .header-icon-btn { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.citizen-app .card { background: var(--surface); border-color: var(--border); color: var(--text); box-shadow: 0 5px 18px #15325005; animation: none; opacity: 1; }
.citizen-app #paid_col .card { background: var(--surface) !important; border-color: var(--border) !important; }
.citizen-app #paid_col :is(h5,p) { color: var(--text) !important; }
.citizen-app .step-bar { max-width: 700px; margin: 0 auto 18px; padding: 0; }
.citizen-app .step-item {
  appearance: none;
  background: transparent;
  color: var(--muted);
  border: 0;
  border-radius: 10px;
  min-height: 44px;
  font: inherit;
  font-size: .86rem;
}
.citizen-app .step-item.active { color: var(--text); font-weight: 700; }
.citizen-app .step-num { background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.citizen-app .step-item.active .step-num { color: #fff; background: #0069a5; border-color: #0069a5; }
.citizen-app .identity-card { width: 100%; max-width: none; margin: 0 auto 18px; scroll-margin-top: 16px; }
.citizen-app > main { padding-top: 0 !important; }
.lookup-heading { margin-bottom: 20px; }
.lookup-heading h2 { margin: 0 0 6px; font-size: 1.3rem; font-weight: 750; }
.lookup-heading p { margin: 0; color: var(--muted); font-size: .88rem; }
.lookup-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; padding: 6px; border: 1px solid var(--border); background: var(--bg); border-radius: 14px; margin-bottom: 24px; }
.lookup-tabs button { min-width: 0; min-height: 48px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-weight: 650; }
.lookup-tabs button:hover { background: var(--surface); color: var(--text); }
.lookup-tabs button[aria-selected="true"] { background: #0069a5; color: #fff; box-shadow: 0 3px 10px #0069a520; }
.lookup-tabs button:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.citizen-app .lookup-pane { margin: 0; }
.citizen-app .lookup-pane form { margin: 0; width: 100%; }
.citizen-app .lookup-pane form > div { padding: 0; margin: 0; min-width: 0; }
.citizen-app .lookup-pane .form-label { display: block; margin-bottom: 8px; }
.citizen-app .lookup-pane .form-control { text-align: start; }
.citizen-app .lookup-pane .btn { min-height: 52px; white-space: nowrap; }
.citizen-app #cform { gap: 16px; }
.citizen-app #qform { display: grid; grid-template-columns: 170px minmax(0,1fr) auto; gap: 16px; align-items: end; }
.citizen-app #qform > div { width: auto; }
.lookup-type-field { order: 1; }
.lookup-code-field { order: 2; }
.lookup-submit-field { order: 3; }
.lookup-help { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 4px; }
.lookup-help summary { color: var(--muted); font-size: .83rem; min-height: 40px; }
.lookup-help p { color: var(--muted); margin: 0 0 6px; font-size: .85rem; line-height: 1.9; }
.payment-options { margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--border); }
.payment-options summary { font-size: .86rem; color: var(--muted); }
.payment-options > .btn { width: 100%; margin-top: 8px; }
.payment-options > .mb-3:first-of-type { margin-top: 12px; }
.payment-options .dargah-copy-select { margin-top: 8px; }
.citizen-app .lookup-summary { border: 0; border-radius: 0; background: transparent; padding: 4px 0; margin: 0 0 14px; }
.citizen-app .lookup-summary .btn { font-size: .82rem; padding: 8px 14px; }
.citizen-app #properties_section { margin-top: 0 !important; }
.citizen-app #properties_section > div { padding-top: 0; }
.single-property :is(.property-tools,.selection-toolbar,#dargah_filter_summary) { display: none; }
.single-property .prop-grid { grid-template-columns: minmax(0,1fr); }
.citizen-app #result > .kpi { grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); padding: 0; background: transparent; border: 0; gap: 12px; margin-bottom: 16px !important; }
.citizen-app #result > .kpi > .card { padding: 18px !important; }
.citizen-app #result[data-debt-state="clear"] > .kpi { display: none; }
.citizen-app #paid_col .card { border-color: #4a9d8b !important; background: var(--success-soft) !important; }
.citizen-app #paid_col .card h5 { font-size: 1.08rem; }
.citizen-app #paid_col .card p { color: var(--muted) !important; font-size: .88rem; }
.citizen-app #paid_col svg { width: 32px; height: 32px; color: var(--success); }
.citizen-app .step-item:disabled { opacity: .6; cursor: default; }
@media (max-width: 767px) {
  .citizen-app #qform { grid-template-columns: 1fr 140px; gap: 14px; }
  .lookup-code-field { order: 1; }
  .lookup-type-field { order: 2; }
  .lookup-submit-field { grid-column: 1 / -1; }
  .lookup-tabs { margin-bottom: 18px; gap: 3px; padding: 4px; }
  .lookup-tabs button { font-size: .84rem; }
  .citizen-app .lookup-heading h2 { font-size: 1.13rem; }
}
@media (max-width: 420px) {
  .citizen-app #qform { grid-template-columns: 1fr; }
  .lookup-type-field { order: 1; }
  .lookup-code-field { order: 2; }
  .lookup-tabs button { font-size: .78rem; }
}
.citizen-app .identity-card .identity-form-wrap { width: 100%; }
.citizen-app .identity-card .col-lg-5 { width: 100%; }
.citizen-app .identity-card .section-title { margin-bottom: 10px; }
.citizen-app #cform { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; }
.citizen-app #cform > .col-12 { width: auto; }
.citizen-app #cform .form-text { display: none; }
.citizen-app #manual_property_entry { margin-top: 12px !important; }
.citizen-app .identity-form-wrap > p { font-size: .8rem; margin-bottom: 0; }
.citizen-app .guide-panel { display: block; height: auto; min-height: 0; padding: 0; background: transparent; border: 0; color: var(--text); }
.citizen-app .guide-panel .guide-icon { display: none; }
summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
summary::before { content: '+'; color: #0069a5; font-size: 1.2rem; }
[open] > summary::before { content: '−'; }
.guide-body, .field-help p { color: var(--muted); font-size: .83rem; padding: 4px 0 8px; }
.lookup-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid var(--border); background: var(--surface); border-radius: 14px; margin-bottom: 16px; }
.lookup-summary span { font-size: .87rem; color: var(--muted); }
.citizen-app .properties-head { gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.properties-head-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.property-privacy-hint { margin: 0 0 12px; color: var(--muted); font-size: .8rem; line-height: 1.9; }
.citizen-app .property-tools { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: start; padding: 0; margin-block: 12px; }
.advanced-property-tools { min-width: 0; border: 0; }
.advanced-property-tools[open] { grid-column: 1 / -1; border-top: 1px solid var(--border); }
.advanced-property-tools summary { color: var(--muted); font-size: .86rem; }
.advanced-property-tools .dargah-property-filters { background: var(--bg); border-color: var(--border); margin-bottom: 10px; }
.sort-controls { padding: 8px 0; }
.selection-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 8px 0 16px; }
.selection-toolbar p { margin: 0; }
.selection-toolbar span { color: var(--muted); font-size: .8rem; }
.citizen-app .prop-card { animation: none; opacity: 1; transform: none; background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.citizen-app .prop-card.selected { border: 2px solid #1688d1; background: var(--primary-soft); }
.citizen-app .prop-card.selected .act-add { opacity: 1; color: var(--text) !important; border-color: var(--border); background: var(--surface); }
.citizen-app .prop-card:hover { border-color: #1688d1; transform: none; }
.citizen-app .prop-card .bg-danger { background: var(--primary-soft) !important; color: var(--text) !important; }
.citizen-app .prop-card .bg-success { background: var(--bg) !important; color: var(--text) !important; }
.citizen-app #prop_count, .citizen-app #dargah_filter_summary { font-size: .8rem; }
.citizen-app .cart-title { font-size: 1rem; }
.citizen-app .cart-total-box { background: var(--primary-soft); }
.citizen-app .cart-total-value { color: var(--text); font-size: 1.35rem; }
.citizen-app .cart-item { overflow-wrap: anywhere; }
.citizen-app .cart-list { max-height: 280px; }
.citizen-app .kpi { background: var(--surface); border-color: var(--border); padding: 14px; }
.citizen-app #result { margin-top: 16px; }
.citizen-app #result .row { --bs-gutter-y: 12px; }
.citizen-app #dargah_annual_debt, .citizen-app #calculation_details { border-top: 1px solid var(--border); margin-top: 12px; }
.citizen-app #pay_panel .card { padding: 16px !important; }
.citizen-errors { border: 2px solid #b42332; border-radius: 12px; background: var(--surface); padding: 14px 18px; margin: 12px 0; }
.citizen-errors a { color: var(--danger); }
[aria-invalid="true"] { border: 2px solid #b42332 !important; }
.field-error { color: var(--danger); font-size: .82rem; margin-top: 4px; }
.citizen-document { width: min(760px, calc(100% - 32px)); margin: 32px auto; background: var(--surface); padding: clamp(18px, 4vw, 32px); border: 1px solid var(--border); border-top: 3px solid #0069a5; border-radius: 20px; box-shadow: 0 12px 40px #0e253b08; }
.municipal-brand { position: relative; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 22px; }
.municipal-brand img { object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; }
.municipal-brand small { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; }
.municipal-brand strong { font-size: 1rem; }
.municipal-brand .theme-control { margin-inline-start: auto; background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.municipal-brand-name { min-width: 0; overflow-wrap: anywhere; }
.municipal-brand-tools { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; flex-shrink: 0; }
.municipal-brand-tools .theme-control { margin-inline-start: 0; }
.municipal-contact { position: static; }
.municipal-contact > summary { display: flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--bg); font-size: .82rem; white-space: nowrap; }
.municipal-contact > summary::-webkit-details-marker { display: none; }
.municipal-contact > summary::before,
.municipal-contact > summary::after { content: none !important; display: none !important; }
.municipal-contact > summary svg { width: 17px; height: 17px; flex-shrink: 0; }
.municipal-contact[open] > summary { background: var(--primary-soft); }
.municipal-contact-panel { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 100; width: min(300px, calc(100vw - 48px)); padding: 16px; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 30px #0e253b20; background: var(--surface); color: var(--text); text-align: start; white-space: normal; }
.municipal-contact-panel p { margin: 12px 0 0; font-size: .85rem; overflow-wrap: anywhere; }
.municipal-contact-panel small { margin-bottom: 4px; }
.municipal-contact-panel bdi { display: block; text-align: start; }
@media (max-width: 420px) {
  .municipal-brand { gap: 8px; }
  .municipal-brand strong { font-size: .9rem; }
  .municipal-brand-tools { gap: 6px; }
  .municipal-contact > summary { padding: 10px 8px; }
  .municipal-contact > summary span { display: none; }
}
.municipal-mark { width: 48px; height: 48px; background: var(--primary-soft); border-radius: 12px; text-align: center; line-height: 48px; }
.citizen-document h1 { font-size: clamp(1.25rem, 4vw, 1.6rem); font-weight: 750; margin-bottom: 16px; }
.citizen-document h2 { font-size: 1.1rem; font-weight: 700; }
.review-steps { display: flex; flex-wrap: wrap; gap: 12px; font-size: .8rem; margin-bottom: 18px; color: var(--muted); }
.review-steps > * + *::before { content: '‹'; margin-inline-end: 12px; }
.review-notice { padding: 12px 16px; border-radius: 12px; background: var(--primary-soft); font-size: .9rem; }
.review-notice.changed { background: #fff3db; color: #75480a; border: 1px solid #d5ae60; }
.review-total { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-top: 2px solid #0069a5; padding: 18px 0; margin-top: 20px; }
.review-total strong { font-size: clamp(1.3rem, 5vw, 1.8rem); }
.review-table { --bs-table-bg: var(--surface); --bs-table-color: var(--text); --bs-table-border-color: var(--border); }
.review-table :is(td,th) { padding: 12px 8px; text-align: right; }
.review-table th { background: var(--bg); }
.document-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.document-actions .btn { padding: 10px 18px; }
.status-cancel-details { flex: 0 1 auto; min-width: 170px; }
.status-cancel-details > summary { min-height: 44px; padding: 10px 18px; border: 1px solid var(--border); border-radius: 12px; color: var(--muted); background: transparent; justify-content: center; font-size: .86rem; }
.status-cancel-details[open] > summary { background: var(--primary-soft); color: var(--text); }
.status-cancel-details > summary::before { content: none; }
.status-cancel-body { width: min(360px, calc(100vw - 48px)); margin-top: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); text-align: start; }
.status-cancel-body p { margin: 0 0 10px; color: var(--muted); font-size: .8rem; line-height: 1.8; }
.status-cancel-body .payment-cancel-form { margin: 0; }
.status-cancel-body .btn { width: 100%; }
.document-reference { font-size: .83rem; overflow-wrap: anywhere; color: var(--muted); }
.document-reference b { display: block; font-weight: 600; color: var(--text); }
.status-panel { border: 1px solid var(--border); border-radius: 16px; padding: 22px; text-align: center; background: var(--bg); }
.status-panel p { color: var(--muted); font-size: .88rem; margin-bottom: 0; }
.state-symbol { display: grid; place-items: center; width: 48px; height: 48px; background: var(--primary-soft); color: var(--text); font-size: 1.6rem; border-radius: 16px; margin: 0 auto 14px; }
.status-panel[data-state="paid"] .state-symbol { background: #e0f4ec; color: #167154; }
.status-panel[data-state="unavailable"] .state-symbol { background: #fff3db; color: #75480a; }
.citizen-summary { margin-top: 18px; }
.citizen-summary > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.citizen-summary dt { color: var(--muted); font-weight: 500; }
.citizen-summary dd { margin: 0; text-align: left; overflow-wrap: anywhere; }
.citizen-subpage > .municipal-brand { width: min(760px, calc(100% - 32px)); margin: 20px auto; }
.citizen-subpage .card { background: var(--surface); color: var(--text); border-color: var(--border); }
.message-document { max-width: 760px; }
.message-state { text-align: center; }
.message-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border: 1px solid var(--border); border-radius: 18px; background: var(--primary-soft); color: var(--primary-ink); font-size: 1.8rem; line-height: 1; }
.message-state h1 { margin: 0; font-size: clamp(1.25rem, 3vw, 1.65rem); }
.message-text { max-width: 48rem; margin: 10px auto 0; color: var(--text); line-height: 2; }
.message-state .small-muted { max-width: 48rem; margin: 8px auto 0; }
.message-actions { justify-content: center; margin-top: 24px; }
.message-actions > .btn { min-width: 170px; }
.message-actions > .btn:only-child { min-width: 210px; }
@media (max-width: 575px) {
  .message-actions > .btn, .message-actions > .btn:only-child { width: 100%; min-width: 0; }
}
.status-private-link { font-size: .78rem; padding: 0 16px; }
.money { font-variant-numeric: tabular-nums; }
/* Receipt structure lives here with the shared tokens, rather than in PHP. */
.receipt-page {
  --warn: var(--warning);
  --error: var(--danger);
}
.receipt-page .wrap { max-width: 820px; margin-inline: auto; padding: 32px 16px; }
.receipt-page #receipt { text-align: center; border: 1px solid var(--border); border-top-width: 2px; border-radius: 24px; overflow-wrap: anywhere; }
.receipt-page h1 { margin: 6px 0 12px; line-height: 1.6; }
.receipt-page .subtitle { margin: 0 0 20px; }
.receipt-page .icon { display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; border-radius: 16px; }
.receipt-page .icon-warn { background: #fff3d9; color: #78450b; }
.receipt-page .icon-error { background: #fff0f0; color: #b42332; }
[data-theme="dark"] .receipt-page .icon-warn { background: #382b17; color: #f3c477; }
[data-theme="dark"] .receipt-page .icon-error { background: #48252c; color: #ffadb5; }
.receipt-page .brand-logo { display: flex; align-items: center; justify-content: center; }
.receipt-page .info-list { text-align: right; margin-block: 16px; }
.receipt-page .info-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-block: 8px; border: 1px solid var(--border); border-radius: 12px; }
.receipt-page .info-row .val { min-width: 0; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.receipt-page .info-row.amount { background: var(--success-soft); border-color: var(--border); }
.receipt-page .btns { display: grid; margin-top: 16px; }
.receipt-page .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; line-height: 1.7; white-space: normal; }
.receipt-page .btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.receipt-page .btn-ghost:hover { background: var(--bg); }
.receipt-page .pending-note { padding: 14px 16px; border: 1px solid var(--warning); border-radius: 12px; text-align: right; }
.receipt-page .pending-guide { display: grid; gap: 12px; margin-block: 20px; padding: 0; list-style: none; text-align: right; }
.receipt-page .pending-guide li { border-top: 1px solid var(--border); padding-top: 12px; }
.receipt-page .pending-guide b { display: block; margin-bottom: 4px; }
.receipt-page .pending-guide span { color: var(--muted); font-size: .88rem; }
.receipt-icon { display: inline-block; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; margin-inline-end: 6px; }
.theme-toggle .receipt-icon { margin: 0; width: 22px; height: 22px; }
.receipt-page #receipt.receipt-export { width: 700px !important; max-width: none !important; }
.receipt-export .btns, .receipt-export #receipt_notice { display: none !important; }
.receipt-export .info-row { flex-direction: row; align-items: center; }
.receipt-export .info-row .val { max-width: 65%; }
.receipt-export .receipt-statuses .val { max-width: none; }
.receipt-export .info-row .receipt-icon { display: none; }
.receipt-page .receipt-amount .val { display: inline-flex; align-items: baseline; gap: 8px; }
.receipt-page .receipt-amount .val > span { font-size: .72em; font-weight: 500; }
.receipt-page #receipt { background: var(--surface); color: var(--text); border-color: var(--border); border-top-color: #0069a5; padding: clamp(20px,4vw,36px); max-width: 740px; }
.receipt-page .brand-logo { background: #fff; border-radius: 10px; color: #16324f; }
.receipt-page .brand-logo svg { width: 70%; height: 70%; }
.receipt-followup { margin-block: 16px; }
.receipt-followup > .btn { width: 100%; }
.receipt-page .info-row { background: var(--bg); border-color: var(--border); padding: 12px 16px; }
.receipt-page .lbl { color: var(--muted); }
.receipt-page .val { color: var(--text); }
.receipt-page .btns { grid-template-columns: 1fr 1fr; gap: 12px; }
.receipt-page .receipt-secondary { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 8px; }
.receipt-secondary summary { color: var(--muted); font-size: .85rem; }
.receipt-secondary .secondary-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0; }
.receipt-secondary .btn { background: var(--bg); color: var(--text); border-color: var(--border); font-size: .83rem; }
.receipt-page .theme-toggle { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.receipt-page .subtitle, .receipt-page .brand { color: var(--muted); }
.receipt-page .icon-success { color: #167154; background: #e0f4ec; width: 58px; height: 58px; font-size: 2rem; }
.receipt-page #receipt_notice { margin-top: 12px; }
@media (max-width: 767px) {
  .citizen-app .brand-row { padding: 12px; gap: 8px; }
  .citizen-app .brand-main { gap: 10px; }
  .citizen-app .header-actions { gap: 6px; }
  .citizen-app .header-icon-btn { width: 44px; height: 44px; }
  .citizen-app .step-item { font-size: .75rem; gap: 6px; }
  .citizen-app #cform { grid-template-columns: 1fr; }
  .citizen-app .step-num { width: 27px; height: 27px; }
  .citizen-app .lookup-summary { padding: 10px 12px; flex-wrap: wrap; }
  .citizen-app .properties-card { padding: 14px !important; }
  .citizen-app .cart-total-value { font-size: 1.2rem; }
  .citizen-app .mobile-cart-bar { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .citizen-app .cart-desktop-column.mobile-sheet-open { max-height: calc(var(--visual-height, 100dvh) - 20px); padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .citizen-app #cart_card { overflow-y: auto; max-height: calc(var(--visual-height, 100dvh) - 20px); }
  .citizen-app #cart_checkout_fields .form-control { scroll-margin-bottom: 100px; }
  .document-actions > .btn { flex: 1 1 100%; }
  .status-cancel-details { flex: 1 1 100%; }
  .status-cancel-details > summary { width: 100%; }
  .status-cancel-body { width: 100%; }
  .citizen-document { margin: 16px auto; width: calc(100% - 24px); }
  .receipt-page .btns { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .citizen-app .brand-row { flex-wrap: wrap; }
  .citizen-app .brand-title { font-size: 1.05rem; }
  .citizen-app .header-actions { margin-inline-start: auto; }
  .citizen-summary > div { flex-direction: column; gap: 4px; }
  .citizen-summary dd { text-align: right; }
}
.bill-support {
  text-align: start;
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 14px;
  padding: 12px 16px;
}
.bill-support summary {
  cursor: pointer;
  min-height: 44px;
  align-content: center;
  font-weight: 700;
}
.bill-support p {
  line-height: 1.9;
}
.bill-support .bill-reference {
  display: block;
  overflow-wrap: anywhere;
  margin-block: 12px;
  font-variant-numeric: tabular-nums;
}
.bill-support .btn {
  min-height: 44px;
}
@media print {
  @page { size: A4 portrait; margin: 15mm; }
  body.citizen-subpage, body.receipt-page { background: #fff !important; color: #16324f !important; }
  .document-actions, .theme-control, .municipal-contact, .receipt-secondary, .receipt-page .btns, .receipt-page .theme-toggle, #receipt_notice, .no-print { display: none !important; }
  .citizen-document { width: 100%; max-width: none; margin: 0; padding: 0; box-shadow: none; border: 0; }
  .receipt-page .wrap { padding: 0; }
  .receipt-page #receipt { box-shadow: none; width: 100%; max-width: none; color: #16324f !important; background: #fff !important; }
  .receipt-page .info-row { background: #fff !important; color: #16324f !important; border-color: #b5cadd !important; break-inside: avoid; }
  .receipt-page :is(.val,.lbl,.brand,.subtitle) { color: #16324f !important; }
}
.receipt-export .receipt-secondary { display: none !important; }
.receipt-export :is(.val,.lbl,.brand,.subtitle) { color: #16324f !important; }
.receipt-page #receipt.receipt-export {
  --surface: #ffffff;
  --bg: #ffffff;
  --text: #16324f;
  --muted: #526a80;
  --border: #b5cadd;
  --success: #167154;
  background: #ffffff !important;
  color: #16324f !important;
  box-shadow: none !important;
}
.receipt-page #receipt.receipt-export .info-row {
  background: #ffffff !important;
  color: #16324f !important;
  border-color: #b5cadd !important;
}
.receipt-page #receipt.receipt-export h1 { color: #167154 !important; }
@page municipal-bill { size: A4 portrait; margin: 0; }
#fish_doc { min-height: 0 !important; }
.fish-copy {
  --text: #16324f;
  --muted: #526a80;
  --card: #ffffff;
  --surface: #ffffff;
  color: #16324f !important;
  background: #ffffff !important;
  font-size: 12px;
  line-height: 1.65;
}
.fish-copy .fish-head :is(.mun,.title), .fish-copy .fish-note { color: #16324f !important; }
.fish-address { margin-top: 4mm; padding: 3mm; border: 1px solid #b5cadd; border-radius: 6px; }
.fish-address p { margin: 1mm 0 0; overflow-wrap: anywhere; }
.payment-cancel-form {
  display: inline-flex;
  margin: 0;
}
.payment-cancel-form[hidden] { display: none; }
.gateway-handoff {
  text-align: center;
  padding: clamp(24px, 5vw, 56px) 0 12px;
}
.gateway-handoff-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  border: 1px solid #087dae55;
  border-radius: 24px;
  background: #087dae22;
  font-size: 38px;
}
.gateway-handoff h1 { margin: 0 0 16px; }
.gateway-handoff-note { line-height: 2; }
.gateway-handoff .document-reference { margin: 24px 0; }
.gateway-handoff .document-reference b { display: block; overflow-wrap: anywhere; margin-top: 8px; }
.gateway-handoff .document-actions { justify-content: center; }
.payment-wait-message { flex-basis: 100%; margin: 8px 0 0; line-height: 1.9; }
.payment-renewal {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  line-height: 1.9;
}
.payment-renewal > summary { cursor: pointer; font-weight: 700; }
.payment-renewal p { margin-top: 18px; }
.renewal-confirm {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
}
.renewal-confirm input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 5px; }
.gateway-handoff .btn-outline-secondary { color: var(--text); border-color: var(--muted); }
.citizen-subpage .btn-outline-danger,
.citizen-app .btn-outline-danger {
  color: #a82636;
  border-color: #bb6e76;
  background: transparent;
}
html[data-theme="dark"] .citizen-subpage .btn-outline-danger,
html[data-theme="dark"] .citizen-app .btn-outline-danger {
  color: #ffaca8;
  border-color: #9f4c50;
  background: #361b22;
}
.payment-cancel-form .btn:focus-visible { outline: 3px solid #b76370; outline-offset: 3px; }
@media (max-width: 575.98px) {
  .gateway-handoff .document-actions > *,
  .gateway-handoff .payment-cancel-form .btn { width: 100%; }
  .gateway-handoff .document-actions { align-items: stretch; }
  .gateway-handoff { padding-top: 28px; }
  .payment-renewal .document-actions > * { width: 100%; }
}
.fish-copy .fish-note { font-size: 10px; }
@media (max-width: 991.98px) {
  .citizen-app .cart-desktop-column .cart { bottom: max(0px, calc(100dvh - var(--visual-height, 100dvh))); }
}
@media print {
  html.citizen-home {
    page: municipal-bill;
    display: block !important;
    width: 210mm !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    color-scheme: light !important;
    background: white !important;
  }
  html.citizen-home *, html.citizen-home *::before, html.citizen-home *::after {
    animation: none !important;
    transition: none !important;
  }
  body.citizen-app {
    page: inherit;
    display: block !important;
    position: static !important;
    width: 210mm !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: white !important;
  }
  body.citizen-app > :not(#fish_print_host) { display: none !important; }
  body.citizen-app #fish_print_host {
    display: block !important;
    position: static !important;
    visibility: visible !important;
    width: 210mm !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    page: inherit;
  }
  body.citizen-app #fish-print-area, body.citizen-app #fish_doc {
    page: inherit;
    display: block !important;
    position: static !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  body.citizen-app .fish-copy {
    page: inherit;
    break-before: auto !important;
    page-break-before: auto !important;
    break-after: auto !important;
    page-break-after: auto !important;
    color: #16324f !important;
    background: white !important;
  }
  body.citizen-app .fish-copy + .fish-copy {
    break-before: page !important;
    page-break-before: always !important;
  }
  body.citizen-app #fish_print_host * {
    color: #16324f !important;
    text-shadow: none !important;
    opacity: 1 !important;
  }
}
.citizen-app .hero, .citizen-app .workspace-row, .citizen-app .hero > .container {
  animation: none;
  transform: none;
  filter: none;
  backdrop-filter: none;
}
@media (max-width: 991.98px) {
  .citizen-app .mobile-cart-bar { transition: none !important; }
  body.citizen-app.cart-sheet-open { overflow: hidden; }
  body.citizen-app.cart-sheet-open .mobile-cart-bar { display: none !important; }
  .citizen-app .cart-desktop-column,
  .citizen-app .cart-desktop-column.cart-visible {
    z-index: 1100;
    display: none;
    transition: none;
    backdrop-filter: none;
  }
  body.citizen-app.cart-sheet-open .cart-desktop-column { display: block; }
  .citizen-app .cart-desktop-column .cart {
    background: var(--surface);
    max-height: calc(var(--visual-height, 100dvh) - 24px);
    overscroll-behavior: contain;
    box-shadow: 0 -12px 40px #0004;
    backdrop-filter: none;
    transition: none;
  }
}

/* Shared municipal identity across inquiry, payment and receipt pages. */
.receipt-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 28px;
}
.receipt-brand .brand-logo {
  width: 96px;
  height: 96px;
  padding: 8px;
  border: 1px solid #dce5ed;
  border-radius: 20px;
  flex: 0 0 auto;
  background: #fff !important;
}
.receipt-brand-name {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.receipt-brand-name small {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 400;
}
.receipt-brand-name strong {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 750;
}
.receipt-brand .theme-toggle {
  position: static;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  margin-inline-start: auto;
  border-radius: 13px;
  box-shadow: none;
}
.receipt-contact {
  border-top: 1px solid var(--border);
  margin-top: 22px;
  padding-top: 16px;
  color: var(--muted);
  text-align: center;
  font-size: .78rem;
  font-weight: 400;
}
.receipt-contact small {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}
.receipt-contact p {
  margin: 0;
  overflow-wrap: anywhere;
}
@media screen {
  .citizen-app .hero .brand-row {
    padding: 22px 26px;
    border-top-width: 2px;
    border-radius: 24px;
    box-shadow: 0 10px 32px #12314908;
  }
  .citizen-app .brand-main {
    gap: 20px;
  }
  .citizen-app .logo {
    width: 88px;
    height: 88px;
    padding: 8px;
    border: 1px solid #dce5ed;
    border-radius: 20px;
  }
  .citizen-app .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .citizen-app .hero .brand-subtitle {
    font-size: .95rem;
    margin-top: 5px;
  }
  .citizen-document {
    width: min(820px, calc(100% - 32px));
    border-top-width: 2px;
    border-radius: 24px;
    box-shadow: 0 18px 54px #0e253b0a;
    padding: clamp(20px, 4vw, 36px);
  }
  .municipal-brand {
    gap: 18px;
    padding-bottom: 22px;
    margin-bottom: 28px;
  }
  .municipal-brand > img, .municipal-brand > .municipal-mark {
    width: 80px;
    height: 80px;
    padding: 7px;
    border-radius: 18px;
    border: 1px solid #dce5ed;
    flex-shrink: 0;
  }
  .municipal-brand strong {
    font-size: 1.1rem;
  }
  .review-total {
    background: var(--primary-soft);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
  }
  .review-total strong {
    font-weight: 750;
    letter-spacing: -.4px;
  }
  .document-actions .btn {
    min-height: 48px;
  }
  .status-panel {
    padding: 28px 22px;
    border-radius: 20px;
  }
  .document-reference b {
    font-size: .8rem;
    font-weight: 400;
    unicode-bidi: isolate;
    margin-top: 6px;
  }
  .citizen-subpage > .municipal-brand {
    width: min(820px, calc(100% - 32px));
  }
  .citizen-subpage .icon-big {
    font-size: 3rem;
  }
  .receipt-page .wrap {
    max-width: 820px;
    padding-top: 32px;
  }
  .receipt-page #receipt:not(.receipt-export) {
    max-width: none;
    padding: clamp(20px, 4vw, 36px);
    border-radius: 24px;
    border-top-width: 2px;
    box-shadow: 0 18px 54px #0e253b0a;
  }
  .receipt-page #receipt:not(.receipt-export) > .icon {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    border-radius: 20px;
  }
  .receipt-page #receipt:not(.receipt-export) > h1 {
    font-size: clamp(1.45rem, 4vw, 1.85rem);
    font-weight: 800;
  }
  .receipt-page #receipt:not(.receipt-export) > .subtitle {
    font-size: .86rem;
    font-weight: 400;
    margin-bottom: 24px;
  }
  .receipt-page #receipt:not(.receipt-export) > .receipt-amount {
    margin: 26px 0 12px;
    padding: 22px 24px;
    border-radius: 18px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .receipt-page .receipt-amount .val {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    letter-spacing: -.5px;
  }
  .receipt-page #receipt:not(.receipt-export) .info-list {
    margin: 0 0 22px;
  }
  .receipt-page #receipt:not(.receipt-export) .info-list .info-row {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr);
    align-items: center;
    gap: 14px;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent !important;
    padding: 16px 2px;
    margin: 0;
  }
  .receipt-page #receipt .info-list .lbl {
    font-size: .8rem;
    font-weight: 400;
  }
  .receipt-page #receipt .info-list .val {
    font-size: .94rem;
    font-weight: 600;
    text-align: left;
  }
  .receipt-page #receipt .receipt-order .val {
    font-family: ui-monospace, Consolas, monospace !important;
    font-size: .74rem;
    font-weight: 400;
    line-height: 1.8;
    overflow-wrap: anywhere;
  }
  .receipt-page .receipt-secondary {
    margin-top: 18px;
    border-top: 0;
  }
  .receipt-page .receipt-secondary summary {
    padding: 9px 0;
  }
  .receipt-page #receipt #receipt_notice {
    font-size: .76rem;
    font-weight: 400;
    line-height: 1.9;
    margin: 18px 0 0;
  }
}
@media screen and (max-width: 575px) {
  .citizen-app .hero .brand-row {
    padding: 16px;
    border-radius: 20px;
  }
  .citizen-app .brand-main {
    gap: 12px;
  }
  .citizen-app .logo {
    width: 72px;
    height: 72px;
    padding: 6px;
    border-radius: 16px;
  }
  .citizen-app .brand-row {
    flex-wrap: wrap;
  }
  .citizen-app .header-actions {
    margin-inline-start: auto;
  }
  .citizen-app .hero .brand-subtitle {
    font-size: .8rem;
  }
  .municipal-brand {
    flex-wrap: wrap;
    gap: 12px;
  }
  .municipal-brand > img, .municipal-brand > .municipal-mark {
    width: 68px;
    height: 68px;
    padding: 5px;
  }
  .municipal-brand strong {
    font-size: 1rem;
  }
  .receipt-page .wrap {
    padding: 16px 12px;
  }
  .receipt-brand {
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    margin-bottom: 24px;
  }
  .receipt-brand .brand-logo {
    width: 76px;
    height: 76px;
    padding: 6px;
    border-radius: 16px;
  }
  .receipt-brand-name {
    flex: 1;
  }
  .receipt-brand-name strong {
    font-size: 1rem;
  }
  .receipt-brand-name small {
    font-size: .64rem;
  }
  .receipt-brand .theme-toggle {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
  .receipt-page #receipt:not(.receipt-export) > .receipt-amount {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px;
  }
  .receipt-page #receipt:not(.receipt-export) .info-list .info-row {
    grid-template-columns: 1fr;
    gap: 5px;
    text-align: right;
    padding: 14px 0;
  }
  .receipt-page #receipt .info-list .val {
    text-align: right;
  }
  .receipt-page #receipt .receipt-order .val {
    text-align: left;
  }
}
@media print {
  .receipt-brand .brand-logo {
    width: 64px;
    height: 64px;
  }
  .receipt-brand {
    margin-bottom: 18px;
    padding-bottom: 14px;
  }
  .receipt-brand .theme-toggle {
    display: none !important;
  }
  .receipt-contact {
    color: #526579;
  }
}

/* Citizen portal: common visual hierarchy, independent of print layout. */
@media screen {
  body.citizen-app,
  body.citizen-subpage,
  body.receipt-page {
    font-size: 15px;
    background: radial-gradient(ellipse at 100% 0, #0b7e9010, transparent 46%), var(--bg);
    -webkit-font-smoothing: antialiased;
    transition: none;
  }
  .citizen-app .app-container {
    max-width: 1100px;
  }
  .citizen-app .hero {
    border: 0;
  }
  .citizen-app .hero > .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .citizen-app .hero .brand-row {
    padding: 22px 0;
    margin: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
  }
  .citizen-app .brand-main {
    gap: 16px;
    min-width: 0;
  }
  .citizen-app .hero .brand-title {
    font-size: 1.3rem;
    font-weight: 800;
  }
  .citizen-app .hero .brand-subtitle {
    font-size: .8rem;
    margin-top: 3px;
  }
  .citizen-app .logo {
    width: 80px;
    height: 80px;
    padding: 7px;
    border-radius: 20px;
    box-shadow: 0 5px 20px #12384308;
  }
  .citizen-app .header-icon-btn {
    width: 44px;
    height: 44px;
    background: var(--surface);
    box-shadow: none;
  }
  .portal-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 32px 2px 26px;
  }
  .portal-eyebrow {
    color: var(--muted);
    font-size: .75rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
  }
  .portal-eyebrow::before {
    content: '';
    width: 18px;
    height: 2px;
    background: #b8893f;
  }
  .portal-intro h1 {
    color: var(--text);
    font-size: clamp(1.35rem, 2.8vw, 1.9rem);
    font-weight: 850;
    line-height: 1.6;
    margin: 0 0 8px;
    letter-spacing: -.5px;
  }
  .portal-intro p {
    margin: 0;
    font-size: .86rem;
    color: var(--muted);
  }
  .portal-city {
    width: 230px;
    height: 100px;
    color: #3e8192;
    flex-shrink: 0;
    opacity: .65;
  }
  .citizen-app .step-bar {
    max-width: none;
    gap: 0;
    margin-bottom: 22px;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: none;
  }
  .citizen-app .step-item {
    min-height: 48px;
    font-size: .83rem;
    gap: 10px;
    box-shadow: none;
  }
  .citizen-app .step-item.active {
    background: var(--primary-soft);
    color: var(--text);
  }
  .citizen-app .step-num {
    width: 28px;
    height: 28px;
    border: 0;
    background: var(--bg);
  }
  .citizen-app .step-item.active .step-num {
    background: var(--primary);
  }
  .citizen-app .identity-card {
    border-radius: 24px;
    padding: 30px !important;
    box-shadow: 0 10px 40px #173e5008;
  }
  .lookup-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
  }
  .lookup-heading-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: var(--primary-soft);
    color: var(--text);
    flex-shrink: 0;
  }
  .lookup-heading h2 {
    font-size: 1.12rem;
    margin-bottom: 4px;
    font-weight: 800;
  }
  .lookup-heading p {
    font-size: .8rem;
  }
  .lookup-tabs {
    padding: 5px;
    gap: 5px;
    border: 0;
    border-radius: 14px;
    margin-bottom: 24px;
  }
  .lookup-tabs button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    font-size: .9rem;
    font-weight: 700;
    border: 1px solid transparent;
  }
  .lookup-tabs button[aria-selected="true"] {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
    box-shadow: 0 3px 10px #123f5010;
  }
  .lookup-tabs button[aria-selected="true"] .ui-icon {
    color: var(--success);
  }
  .citizen-app .lookup-pane .form-label {
    font-size: .83rem;
    margin-bottom: 9px;
  }
  .citizen-app .lookup-pane .form-control,
  .citizen-app .lookup-pane .form-select {
    min-height: 56px;
    border-radius: 12px;
    font-size: 1rem;
    background-color: var(--bg);
    padding-inline: 16px;
    box-shadow: none;
  }
  .citizen-app .lookup-pane input[dir="ltr"] {
    text-align: right;
  }
  .citizen-app .lookup-pane input:focus,
  .citizen-app .lookup-pane select:focus {
    background-color: var(--surface);
    border-color: #438a9a;
    box-shadow: 0 0 0 3px #458a9918;
  }
  .citizen-app .lookup-pane .btn {
    min-height: 56px;
    font-size: .95rem;
    padding-inline: 24px;
  }
  .citizen-app .btn,
  .citizen-subpage .btn,
  .receipt-page .btn {
    font-weight: 650;
    letter-spacing: 0;
    box-shadow: none;
    transition: background-color .15s ease, border-color .15s ease;
  }
  .citizen-app .btn-primary,
  .citizen-app .btn-success,
  .citizen-subpage .btn-primary,
  .receipt-page .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
  }
  .citizen-app .btn-primary:hover,
  .citizen-app .btn-success:hover,
  .citizen-subpage .btn-primary:hover,
  .receipt-page .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
  }
  .citizen-app .btn:disabled,
  .citizen-subpage .btn:disabled {
    opacity: .65;
  }
  .lookup-help {
    margin-top: 22px;
  }
  .lookup-help summary {
    min-height: 44px;
  }
  .citizen-app main {
    padding-bottom: 48px !important;
  }
  .citizen-app .lookup-summary {
    margin: 24px 0 14px;
    padding: 0 4px;
  }
  .direct-mode #identity_section,
  .direct-mode .portal-intro {
    display: none !important;
  }
  .citizen-app[data-inquiry-view="result"] .lookup-summary {
    margin-top: 8px;
    margin-bottom: 20px;
  }
  .citizen-app #lookup_summary_text:focus {
    outline: none !important;
  }
  .citizen-app #lookup_progress {
    color: var(--muted);
    font-size: .85rem;
    font-weight: 400;
    margin-inline-end: auto;
  }
  .citizen-app .lookup-summary span {
    color: var(--text);
    font-weight: 750;
    font-size: 1rem;
  }
  .citizen-app #result > .kpi {
    gap: 0;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 18px;
    overflow: hidden;
  }
  .citizen-app #result > .kpi:not(:has(> :not([hidden]))) {
    display: none;
  }
  .citizen-app #result > .kpi > .card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 18px 24px !important;
  }
  .citizen-app #result > .kpi > .card::before {
    display: none;
  }
  .citizen-app #result > .row {
    margin: 0 -6px;
    --bs-gutter-x: 20px;
    align-items: start;
  }
  .citizen-app #result > .row > .col-lg-8 {
    flex: 1;
    min-width: 0;
  }
  .citizen-app #pay_col:not(.payment-only) {
    width: 40%;
    min-width: 320px;
  }
  .citizen-app #pay_col > .card {
    padding: 24px !important;
    border-top: 3px solid var(--primary);
    border-radius: 20px;
  }
  .citizen-app #pay_col h5 {
    font-size: 1rem;
    font-weight: 750;
    margin-bottom: 18px !important;
  }
  .citizen-app #pay_col .payment-total {
    background: var(--primary-soft);
    border: 0;
    border-radius: 14px;
    margin-bottom: 18px;
    padding: 18px 20px !important;
    box-shadow: none;
  }
  .payment-total .small-muted {
    font-size: .78rem;
  }
  .citizen-app #pay_col .payment-period {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0 2px !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    font-size: .75rem;
  }
  .payment-period > .mt-2 {
    margin-top: 0 !important;
  }
  .citizen-app #result .payment-only {
    width: min(100%, 560px);
  }
  .citizen-app #k_total {
    color: var(--text);
    font-size: 2rem !important;
    font-weight: 850 !important;
    letter-spacing: -.5px;
    font-variant-numeric: tabular-nums;
  }
  .payment-options summary {
    font-size: .78rem;
    min-height: 48px;
  }
  .payment-note {
    font-size: .72rem;
    line-height: 1.9;
    text-align: center;
  }
  .citizen-app .properties-card {
    border-radius: 22px;
  }
  .citizen-app .prop-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 14px;
  }
  .citizen-app .prop-card {
    border-radius: 16px;
    background: var(--bg);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 20px;
  }
  .prop-card-heading {
    display: grid;
    gap: 8px;
    min-width: 0;
  }
  .prop-card-kind {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .8rem;
  }
  .prop-card-kind .ui-icon {
    width: 20px;
    height: 20px;
  }
  .prop-card-heading h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.8;
    overflow-wrap: anywhere;
  }
  .prop-debt-summary {
    display: grid;
    gap: 6px;
    margin-block-start: auto;
    padding-block: 16px 4px;
    border-block-start: 1px solid var(--border);
    min-width: 0;
  }
  .prop-debt-label,
  .prop-debt-summary p {
    color: var(--muted);
    font-size: .8rem;
    margin: 0;
  }
  .prop-debt-summary strong {
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    font-variant-numeric: tabular-nums;
    line-height: 1.8;
    overflow-wrap: anywhere;
  }
  .prop-card[data-debt-state="clear"] .prop-debt-summary strong {
    color: var(--success);
    font-size: .95rem;
  }
  .prop-card[data-debt-state="unknown"] .prop-debt-summary strong {
    color: var(--warning);
    font-size: .95rem;
  }
  .prop-debt-retry {
    justify-self: start;
    margin-block-start: 4px;
  }
  .citizen-app .prop-card .prop-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-block-start: 4px;
  }
  .prop-card .prop-actions .btn {
    white-space: normal;
    padding: 9px 8px;
    font-size: .82rem;
  }
  .citizen-app .prop-card.selected {
    border-color: #378598;
    background: var(--primary-soft);
  }
  .citizen-app .cart {
    border-radius: 20px;
    border-top: 3px solid var(--primary);
  }
  .citizen-app #dargah_annual_debt {
    border-radius: 18px;
    padding: 12px 20px !important;
  }
  .citizen-app #dargah_annual_debt table {
    font-size: .8rem;
  }
  .citizen-app #paid_col .card {
    padding: 32px 24px !important;
    border-radius: 20px;
  }
  .citizen-app .last-order {
    background: var(--surface);
    border: 1px solid #b8893f;
    border-inline-start-width: 4px;
    border-radius: 16px;
  }
  .citizen-app #last_order_id {
    font-size: .68rem;
    font-weight: 400 !important;
    overflow-wrap: anywhere;
  }
  .citizen-app .toast-container {
    top: auto;
    bottom: 20px;
    z-index: 1200;
  }
  .citizen-app .toast {
    border-radius: 12px;
    box-shadow: 0 8px 25px #0002;
  }
  .citizen-document,
  .receipt-page #receipt:not(.receipt-export) {
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 24px;
    box-shadow: 0 18px 60px #102e4010;
    padding: clamp(22px, 4vw, 40px);
  }
  .municipal-brand,
  .receipt-brand {
    padding-bottom: 24px;
    margin-bottom: 30px;
  }
  .municipal-brand-name small,
  .receipt-brand-name small {
    font-size: .73rem;
  }
  .citizen-document h1 {
    font-size: 1.65rem;
    line-height: 1.6;
    font-weight: 850;
  }
  .review-steps {
    background: var(--bg);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: .76rem;
  }
  .review-notice {
    background: var(--bg);
    border-inline-start: 3px solid #6398a4;
    border-radius: 10px;
    font-size: .84rem;
    padding: 14px 18px;
  }
  .review-table {
    font-size: .88rem;
    margin: 22px 0;
  }
  .review-table th {
    font-size: .76rem;
    font-weight: 600;
    color: var(--muted);
  }
  .review-table :is(td, th) {
    padding: 16px 12px;
  }
  .review-total {
    background: var(--primary-soft);
    border: 0;
    padding: 24px;
    border-radius: 16px;
  }
  .review-total > span {
    font-size: .86rem;
  }
  .review-total strong {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--text);
    font-weight: 850;
  }
  .document-actions .btn {
    min-height: 52px;
    font-size: .9rem;
  }
  .document-actions > .btn-primary {
    flex-grow: 1;
  }
  .status-panel {
    border: 0;
    border-radius: 18px;
    padding: 32px 24px;
  }
  .state-symbol {
    width: 64px;
    height: 64px;
    font-size: 2rem;
    border: 1px solid var(--border);
    border-radius: 20px;
  }
  .status-panel h2 {
    font-size: 1.13rem;
    line-height: 1.8;
  }
  .citizen-summary {
    margin-top: 26px;
    font-size: .86rem;
  }
  .citizen-summary > div {
    padding: 18px 4px;
  }
  .document-reference {
    padding: 14px 16px;
    background: var(--bg);
    border-radius: 12px;
    font-size: .72rem;
    margin-bottom: 22px;
  }
  .document-reference b {
    font-family: ui-monospace, Consolas, monospace !important;
    font-size: .72rem;
    line-height: 1.9;
  }
  .gateway-handoff-mark {
    color: var(--success);
    background: var(--success-soft);
    border-color: #83b4aa;
    width: 88px;
    height: 88px;
    border-radius: 26px;
  }
  .receipt-page .hero-bg {
    background: none;
  }
  .receipt-page #receipt:not(.receipt-export) > .icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin-top: 4px;
    margin-bottom: 16px;
    box-shadow: 0 0 0 8px var(--success-soft);
  }
  .receipt-page #receipt:not(.receipt-export) > .receipt-amount {
    background: var(--success-soft);
    border: 1px solid #78ab9c;
    margin: 26px 0 10px;
    padding: 24px;
  }
  .receipt-page .receipt-amount .val {
    color: var(--success);
  }
  .receipt-page #receipt:not(.receipt-export) .info-list {
    margin-bottom: 26px;
  }
  .receipt-page #receipt:not(.receipt-export) .info-list .info-row {
    padding: 17px 4px;
  }
  .receipt-page .btns .btn {
    min-height: 52px;
    border-radius: 12px;
  }
  .receipt-page .pending-guide {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 30px;
    font-size: .86rem;
  }
  .citizen-subpage .card.shadow-lg {
    box-shadow: 0 12px 40px #102e4010 !important;
  }
}
@media screen and (max-width: 991px) {
  .citizen-app #result > .row > .col-lg-8,
  .citizen-app #pay_col:not(.payment-only) {
    width: 100%;
    min-width: 0;
    flex: auto;
  }
}
@media screen and (max-width: 575px) {
  .citizen-app .app-container {
    padding-inline: 16px;
  }
  .citizen-app .hero .brand-row {
    padding: 16px 0;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .citizen-app .hero .brand-title {
    font-size: 1rem;
    line-height: 1.8;
  }
  .citizen-app .hero .brand-subtitle {
    font-size: .68rem;
  }
  .citizen-app .brand-main {
    gap: 10px;
  }
  .citizen-app .logo {
    width: 64px;
    height: 64px;
    padding: 5px;
    border-radius: 16px;
  }
  .citizen-app .header-actions {
    flex-direction: column;
    gap: 4px;
  }
  .citizen-app .header-icon-btn {
    width: 44px;
    min-height: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .portal-intro {
    padding: 24px 0;
  }
  .portal-city {
    display: none;
  }
  .portal-intro h1 {
    font-size: 1.35rem;
  }
  .portal-intro p {
    font-size: .78rem;
    max-width: 35em;
  }
  .portal-eyebrow {
    font-size: .68rem;
  }
  .citizen-app .step-bar {
    padding: 4px;
    margin-bottom: 16px;
  }
  .citizen-app .step-item {
    font-size: .68rem;
    gap: 6px;
    min-height: 50px;
  }
  .citizen-app .step-num {
    width: 23px;
    height: 23px;
    font-size: .7rem;
  }
  .citizen-app .identity-card {
    padding: 20px 16px !important;
    border-radius: 20px;
  }
  .lookup-heading {
    gap: 10px;
    margin-bottom: 20px;
  }
  .lookup-heading h2 {
    font-size: 1rem;
  }
  .lookup-heading p {
    font-size: .72rem;
  }
  .lookup-heading-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .lookup-tabs {
    padding: 4px;
    gap: 2px;
    margin-bottom: 20px;
  }
  .lookup-tabs button {
    flex-direction: column;
    gap: 5px;
    min-height: 65px;
    font-size: .76rem;
    padding: 8px 2px;
  }
  .lookup-tabs .ui-icon {
    width: 19px;
    height: 19px;
  }
  .citizen-app #qform {
    grid-template-columns: 1fr;
  }
  .lookup-type-field {
    order: 1;
  }
  .lookup-code-field {
    order: 2;
  }
  .lookup-help {
    margin-top: 16px;
  }
  .citizen-app #result > .row {
    margin-inline: -6px;
  }
  .citizen-app #pay_col > .card {
    padding: 20px !important;
  }
  .citizen-app #k_total {
    font-size: 1.75rem !important;
  }
  .citizen-app .toast-container {
    bottom: max(92px, env(safe-area-inset-bottom));
  }
  .citizen-document,
  .receipt-page #receipt:not(.receipt-export) {
    padding: 22px 18px;
    border-radius: 20px;
  }
  .municipal-brand,
  .receipt-brand {
    margin-bottom: 24px;
    padding-bottom: 20px;
  }
  .citizen-document h1 {
    font-size: 1.3rem;
  }
  .review-total {
    padding: 20px;
    gap: 8px;
  }
  .review-total strong {
    flex-basis: 100%;
  }
  .review-table :is(td, th) {
    padding: 14px 8px;
    white-space: normal;
  }
  .document-actions {
    gap: 10px;
  }
  .document-actions > *,
  .document-actions .payment-cancel-form .btn {
    width: 100%;
  }
  .status-panel {
    padding: 26px 16px;
  }
  .status-panel h2 {
    font-size: 1rem;
  }
  .receipt-page #receipt:not(.receipt-export) > .receipt-amount {
    padding: 20px 16px;
  }
  .receipt-page .receipt-amount .val {
    font-size: 1.65rem;
  }
}
@media screen and (prefers-reduced-motion: reduce) {
  .citizen-app *,
  .citizen-subpage *,
  .receipt-page * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Municipal service layout; the printable documents keep their own geometry. */
@media screen {
  body.citizen-app,
  body.citizen-subpage,
  body.receipt-page {
    background: var(--bg);
  }
  .citizen-app .app-container {
    max-width: 1160px;
  }
  .citizen-app .hero .brand-row {
    padding-block: 18px;
  }
  .citizen-app .logo,
  .municipal-brand > img,
  .receipt-brand .brand-logo {
    object-fit: contain;
    background: #fff;
    border: 1px solid #dce5e8;
    border-radius: 16px;
  }
  .municipal-brand-name small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
  }
  .citizen-app[data-inquiry-view="result"] .logo {
    width: 64px;
    height: 64px;
  }
  .citizen-app .step-item.done {
    color: var(--muted);
    background: transparent;
  }
  .citizen-app .step-item.done .step-num {
    color: var(--success);
    background: var(--success-soft);
  }
  .citizen-app .step-item:disabled {
    opacity: .65;
    cursor: default;
  }
  .citizen-app .lookup-summary {
    gap: 12px;
    padding: 4px 2px;
    margin-bottom: 18px;
  }
  .citizen-app #result > .kpi {
    display: block;
    margin-bottom: 0 !important;
    box-shadow: 0 4px 18px #132d4005;
  }
  .property-identity-title {
    font-size: .85rem;
    font-weight: 750;
    color: var(--muted);
    margin: 0 0 18px;
  }
  .property-identity-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 28px;
    margin: 0;
  }
  .property-identity-field {
    min-width: 0;
  }
  .property-identity-field dt {
    font-size: .76rem;
    color: var(--muted);
    font-weight: 450;
    margin-bottom: 5px;
  }
  .property-identity-field dd {
    font-size: .96rem !important;
    font-weight: 650 !important;
    line-height: 1.8;
    margin: 0 !important;
    overflow-wrap: anywhere;
    text-align: start;
  }
  .property-identity-field dd[dir="ltr"] {
    text-align: right;
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
  }
  .property-address {
    grid-column: 1 / -1;
    order: 5;
  }
  .property-identity-fields > :first-child {
    grid-column: 1 / -1;
  }
  .citizen-app #result {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }
  .citizen-app #result > .row {
    display: contents;
  }
  .citizen-app #result > .kpi,
  .citizen-app #result > .row > .col-lg-8 {
    grid-column: 1;
    min-width: 0;
    width: 100%;
    padding: 0;
    margin-top: 0;
  }
  .citizen-app #result > .row > .col-lg-8 {
    grid-row: 2;
  }
  .citizen-app #result #pay_col,
  .citizen-app #result #paid_col {
    grid-column: 2;
    grid-row: 1 / 4;
    width: 100%;
    min-width: 0;
    padding: 0;
    margin-top: 0;
  }
  .citizen-app #result .payment-only {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    max-width: 560px;
  }
  .citizen-app #result #dargah_annual_debt {
    grid-column: 1;
    margin-top: 0;
  }
  .citizen-app #pay_col:not(.payment-only) {
    width: 36%;
    min-width: 330px;
  }
  .citizen-app #pay_col > .card {
    border-radius: 18px;
    box-shadow: 0 6px 24px #102c4008;
  }
  .citizen-app #pay_col .payment-total {
    position: relative;
    padding: 20px !important;
  }
  .citizen-app #k_total {
    letter-spacing: 0;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem) !important;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }
  .amount-currency {
    display: block;
    color: var(--muted);
    font-size: .8rem;
  }
  .payment-property-type {
    float: left;
    padding: 3px 9px;
    border-radius: 8px;
    background: var(--bg);
    color: var(--muted);
    font-size: .72rem;
    font-weight: 450;
  }
  .citizen-app .debt-calculation {
    padding-block: 10px !important;
  }
  .debt-calculation details {
    border: 0;
    margin: 0;
  }
  .debt-calculation summary {
    min-height: 56px;
    font-size: .93rem;
  }
  .debt-calculation details > .row {
    padding-block: 8px 16px;
  }
  .citizen-document {
    max-width: 920px;
    border-radius: 20px;
    box-shadow: 0 8px 32px #102c4008;
  }
  .citizen-document h1 {
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    margin-block: 24px 14px;
  }
  .review-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    margin-top: 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: .78rem;
  }
  .review-steps > * {
    text-align: center;
    padding: 10px 4px;
    border-radius: 8px;
    min-width: 0;
    margin: 0;
  }
  .review-steps > *::after,
  .review-steps > *::before {
    display: none;
  }
  .review-steps [aria-current="step"] {
    background: var(--primary-soft);
    color: var(--text);
  }
  .review-property-id {
    display: block;
    color: var(--muted);
    font-size: .72rem;
    margin-top: 5px;
  }
  .review-gateway-note {
    font-size: .83rem;
    color: var(--muted);
    margin-block: 20px;
  }
  .review-actions > .btn-primary {
    flex: 1 1 240px;
  }
  .status-panel[data-state="paid"] {
    background: var(--success-soft);
    color: var(--success);
    border-color: var(--success);
  }
  .status-panel[data-state="pending"],
  .status-panel[data-state="paused"] {
    background: color-mix(in srgb, var(--warning) 9%, var(--surface));
    border-color: color-mix(in srgb, var(--warning) 45%, var(--border));
  }
  .status-panel[data-state="failed"],
  .status-panel[data-state="unavailable"],
  .status-panel[data-state="missing"] {
    background: color-mix(in srgb, var(--danger) 7%, var(--surface));
    border-color: color-mix(in srgb, var(--danger) 45%, var(--border));
  }
  .status-panel[data-state="failed"] .state-symbol {
    color: var(--danger);
  }
  .status-panel[data-state="expired"] {
    background: var(--bg);
  }
  .reference-details {
    margin-block: 20px;
    border-top: 1px solid var(--border);
    font-size: .82rem;
  }
  .reference-details summary {
    color: var(--muted);
    min-height: 48px;
  }
  .reference-details .document-reference {
    margin: 0 0 12px;
  }
  .copy-reference {
    font-size: .78rem;
    padding: 7px 12px;
  }
  .receipt-page #receipt:not(.receipt-export) {
    max-width: 860px;
    border-radius: 20px;
  }
  .receipt-page .receipt-brand .brand-logo {
    width: 80px;
    height: 80px;
  }
  .receipt-page #receipt:not(.receipt-export) > .icon {
    width: 56px;
    height: 56px;
    margin-top: 24px;
  }
  .receipt-page .receipt-order .val {
    font-size: .8rem;
    font-weight: 500;
  }
}
@media screen and (max-width: 991px) {
  .citizen-app #result {
    display: flex;
    flex-direction: column;
  }
  .citizen-app #result > .row {
    display: contents;
  }
  .citizen-app #result > .row > .col-lg-8 {
    order: 2;
    width: 100%;
  }
  .citizen-app #result #pay_col,
  .citizen-app #result #paid_col {
    order: 1;
    width: 100%;
    min-width: 0;
    margin: 0;
  }
  .citizen-app #result #dargah_annual_debt {
    order: 3;
    width: 100%;
  }
}
@media screen and (max-width: 575px) {
  .citizen-app .hero .brand-row {
    padding-block: 12px;
    flex-wrap: wrap;
  }
  .citizen-app .hero .brand-main {
    width: 100%;
  }
  .citizen-app .header-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-inline-start: auto;
  }
  .citizen-app .header-actions .municipal-contact summary {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 10px;
  }
  .citizen-app .logo,
  .citizen-app[data-inquiry-view="result"] .logo,
  .municipal-brand > img,
  .receipt-page .receipt-brand .brand-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
  }
  .citizen-app .hero .brand-title {
    font-size: 1rem;
  }
  .citizen-app .hero .brand-subtitle,
  .municipal-brand-name small,
  .receipt-brand-name small {
    font-size: .67rem;
  }
  .citizen-app #result > .kpi > .card {
    padding: 18px !important;
  }
  .property-identity-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .property-identity-fields > :first-child,
  .property-address {
    grid-column: 1 / -1;
  }
  .property-identity-title {
    margin-bottom: 16px;
  }
  .property-identity-field dd {
    font-size: .87rem !important;
  }
  .citizen-app #pay_col > .card {
    padding: 20px !important;
  }
  .citizen-app #k_total {
    font-size: 1.9rem !important;
  }
  .citizen-app input,
  .citizen-app select {
    font-size: 16px;
  }
  .review-steps {
    font-size: .67rem;
    gap: 2px;
  }
  .review-steps > * {
    padding-inline: 2px;
  }
  .review-actions {
    gap: 10px;
  }
  .review-actions > .btn {
    flex: 1 1 100%;
    white-space: normal;
  }
  .receipt-page .receipt-brand .brand-logo {
    width: 72px;
    height: 72px;
  }
  .citizen-document .review-table {
    font-size: .8rem;
  }
  .citizen-document .review-table th,
  .citizen-document .review-table td {
    padding-inline: 6px;
  }
}
.receipt-export .receipt-reference summary,
.receipt-export .receipt-reference .copy-reference,
.receipt-export .receipt-reference .secondary-actions {
  display: none !important;
}
.receipt-export .theme-toggle,
.receipt-export .no-print { display: none !important; }
.receipt-page #receipt.receipt-export .receipt-brand { margin-bottom: 16px; padding-bottom: 14px; }
.receipt-page #receipt.receipt-export > .icon { width: 48px; height: 48px; margin: 12px auto; font-size: 30px; }
.receipt-page #receipt.receipt-export > h1 { font-size: 24px; margin-block: 10px; letter-spacing: normal; }
.receipt-page #receipt.receipt-export { padding: 20px !important; font-size: 14px; line-height: 1.65; }
.receipt-page #receipt.receipt-export .receipt-brand .brand-logo { width: 64px; height: 64px; }
.receipt-page #receipt.receipt-export .info-list { margin-block: 16px; }
.receipt-page #receipt.receipt-export .info-row { padding: 8px 12px; margin-block: 6px; }
.receipt-page #receipt.receipt-export .receipt-components { padding: 8px 12px; margin-block: 8px; }
.receipt-page #receipt.receipt-export .receipt-components dl > div { padding-block: 4px; }
.receipt-page #receipt.receipt-export .receipt-posting-notice { padding: 10px; margin-block: 10px; line-height: 1.6; }
.receipt-page #receipt.receipt-export .receipt-posting-notice p { font-size: 12px; margin-top: 6px; }
.receipt-page #receipt.receipt-export .receipt-contact { margin-top: 16px; padding-top: 12px; }

/* A bill is a versioned document, separate from the general inquiry form. */
.receipt-posting-notice {
  padding: 18px 20px;
  margin-block: 20px;
  border: 1px solid var(--border);
  border-inline-start: 4px solid #d49a32;
  border-radius: 14px;
  background: var(--card);
  color: var(--text);
  text-align: right;
  line-height: 1.9;
}
.receipt-posting-notice p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .9rem;
}
.receipt-bill {
  min-width: 0;
}
.receipt-page #receipt:not(.receipt-export) .info-list {
  margin-bottom: 8px;
}
.receipt-page #receipt .btns {
  margin-top: 12px;
}
.receipt-page #receipt .info-list .receipt-components {
  margin-bottom: 8px;
}
.receipt-page .shared-paid-at {
  font-weight: 650;
  overflow-wrap: anywhere;
  line-height: 1.9;
}
.receipt-components {
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-block: 8px 20px;
}
.receipt-components summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 650;
}
.receipt-components dl {
  margin: 8px 0;
}
.receipt-components dl > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding-block: 8px;
}
.receipt-components dt {
  color: var(--muted);
  font-weight: 450;
}
.receipt-components dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.receipt-page .wrap {
  padding-block: 20px;
}
.receipt-page #receipt {
  padding: clamp(18px, 3vw, 30px);
}
.receipt-page #receipt > .icon {
  width: 56px;
  height: 56px;
  font-size: 28px;
  margin-bottom: 10px;
}
.receipt-page .receipt-statuses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  text-align: right;
  margin-block: 16px;
}
.receipt-page .receipt-statuses .info-row {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px;
}
.receipt-page .receipt-statuses .val {
  font-size: 15px;
}
.receipt-share p {
  font-size: 14px;
  color: var(--muted);
}
#receipt_share_result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
#receipt_share_result p {
  flex-basis: 100%;
}
#receipt_share_result img {
  display: block;
  margin: 12px auto;
  max-width: 100%;
  height: auto;
  background: white;
  border: 8px solid white;
  border-radius: 10px;
}
.receipt-page[data-receipt-kind="shared"] .info-row {
  gap: 8px 20px;
  overflow-wrap: anywhere;
}
@media (max-width: 380px) {
  .receipt-page .receipt-statuses {
    grid-template-columns: 1fr;
  }
}
@media print {
  .receipt-page .receipt-share {
    display: none !important;
  }
}
.receipt-export .receipt-share {
  display: none !important;
}
.scoped-bill { margin-block-start: 20px; }
.scoped-bill h1 { font-size: clamp(1.35rem, 3vw, 1.85rem); margin: 4px 0 10px; }
.scoped-bill h2 { font-size: 1.05rem; margin: 0 0 22px; }
.bill-path { display: flex; gap: 8px; margin-bottom: 20px; padding: 6px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; }
.bill-path span { flex: 1; padding: 10px 6px; text-align: center; color: var(--muted); font-size: .82rem; }
.bill-path [aria-current] { background: var(--primary-soft); color: var(--text); border-radius: 10px; font-weight: 750; }
.bill-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.bill-heading p { margin-block: 4px; }
.bill-eyebrow { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.bill-version { flex-shrink: 0; border: 1px solid var(--border); padding: 4px 12px; border-radius: 30px; font-size: .78rem; }
.bill-state { padding: 16px 20px; border: 1px solid var(--border); border-inline-start-width: 4px; border-radius: 12px; margin-bottom: 24px; }
.bill-state p { margin: 4px 0 0; font-size: .9rem; }
.bill-state--ready { border-inline-start-color: var(--primary); background: var(--primary-soft); }
.bill-state--success { border-inline-start-color: var(--success); background: var(--success-soft); }
.bill-state--attention { border-inline-start-color: var(--warning); }
.bill-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.bill-facts, .bill-payment { min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: 18px; }
.bill-payment { background: var(--primary-soft); border-block-start: 3px solid var(--primary); }
.bill-payment form, .bill-payment form .btn { width: 100%; }
.bill-payment > .btn { width: 100%; margin-top: 12px; }
.bill-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 6px 0 24px; }
.bill-amount strong { font-size: clamp(1.7rem, 3.3vw, 2.4rem); letter-spacing: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bill-amount span { font-size: .88rem; color: var(--muted); }
.bill-help { font-size: .8rem; color: var(--muted); margin: 16px 0; }
.bill-secondary { display: grid; gap: 15px; text-align: center; border-top: 1px solid var(--border); padding-top: 18px; margin-top: 18px; font-size: .86rem; }
.bill-facts dl, .bill-breakdown dl { margin: 0; }
.bill-facts dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 10px; border-bottom: 1px solid var(--border); }
.bill-facts dl > div:last-child { border-bottom: 0; }
.bill-facts dt { font-weight: 450; color: var(--muted); font-size: .86rem; }
.bill-facts dd { margin: 0; text-align: left; overflow-wrap: anywhere; min-width: 0; font-weight: 650; }
.bill-facts dd small { color: var(--muted); font-weight: 450; }
.bill-breakdown { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 16px; }
.scoped-bill summary { cursor: pointer; min-height: 44px; padding-block: 8px; font-size: .9rem; font-weight: 650; }
.bill-annual { margin-top: 22px; border: 1px solid var(--border); border-radius: 16px; padding: 14px 22px; }
.bill-table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.bill-annual table { border-collapse: collapse; width: 100%; font-size: .86rem; }
.bill-annual th, .bill-annual td { padding: 12px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; text-align: right; }
.bill-annual caption { caption-side: top; color: var(--muted); font-size: .8rem; padding: 8px 0; }
.bill-footer { margin-top: 26px; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--border); padding-top: 18px; }
.bill-footer p { margin: 0; }
.bill-reference { display: block; overflow-wrap: anywhere; font-family: ui-monospace, monospace; font-size: .78rem; }
@media (max-width: 680px) {
  .bill-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .bill-payment { grid-row: 1; padding: 20px; }
  .bill-facts { padding: 20px; }
  .bill-heading { gap: 8px; }
  .bill-path { gap: 2px; margin-bottom: 22px; }
  .bill-path span { padding-inline: 2px; font-size: .72rem; }
  .bill-state { padding: 14px 16px; }
  .bill-annual { padding: 12px 16px; }
  .bill-version { padding: 3px 8px; }
}
@media print {
  .receipt-posting-notice {
    background: white !important;
    color: #111 !important;
    border-color: #555 !important;
    break-inside: avoid;
  }
  .receipt-posting-notice p,
  .receipt-components dt,
  .receipt-components dd {
    color: #111 !important;
  }
  .receipt-components dl > div {
    break-inside: avoid;
  }
  .scoped-bill { color: #111 !important; margin-top: 4mm; font-size: 10pt; line-height: 1.5; }
  .scoped-bill .no-print, .scoped-bill form, .scoped-bill summary { display: none !important; }
  .scoped-bill .bill-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 4mm; align-items: start; }
  .scoped-bill .bill-payment { margin-top: 0; grid-row: auto; }
  .scoped-bill .bill-facts, .scoped-bill .bill-payment, .scoped-bill .bill-state { padding: 4mm; background: #fff !important; border-color: #999 !important; break-inside: avoid; }
  .scoped-bill .bill-heading, .scoped-bill .bill-footer { break-inside: avoid; }
  .scoped-bill .bill-heading { margin-bottom: 4mm; }
  .scoped-bill h1 { font-size: 16pt; }
  .scoped-bill h2 { font-size: 11pt; margin-bottom: 2mm; }
  .scoped-bill .bill-facts dl > div { padding-block: 1.5mm; gap: 3mm; }
  .scoped-bill .bill-facts dt, .scoped-bill .bill-facts dd { font-size: 9pt; color: #111; }
  .scoped-bill .bill-breakdown { margin-top: 3mm; padding-top: 2mm; }
  .scoped-bill .bill-footer { margin-top: 4mm; padding-top: 2mm; font-size: 9pt; color: #111; }
  .scoped-bill .receipt-reference::before { content: "شناسهٔ فیش"; display: block; direction: rtl; }
  .scoped-bill .bill-amount { margin: 0; }
  .scoped-bill .bill-amount strong { font-size: 22pt; }
  .scoped-bill .bill-help { display: none; }
  .scoped-bill .bill-annual { border: 0; padding: 0; margin-top: 4mm; }
  .scoped-bill .bill-table-wrap { overflow: visible; }
  .scoped-bill .bill-annual th, .scoped-bill .bill-annual td { padding: 2mm; white-space: normal; color: #111; }
  .scoped-bill .bill-annual thead { display: table-header-group; }
  .scoped-bill .bill-annual tr { break-inside: avoid; }
}
@media print {
  .receipt-page #receipt {
    padding: 5mm !important;
    font-size: 10pt;
    line-height: 1.5;
  }
  .receipt-page .receipt-brand {
    margin-bottom: 3mm;
    padding-bottom: 3mm;
  }
  .receipt-page #receipt > .icon {
    width: 12mm;
    height: 12mm;
    font-size: 24pt;
    margin-block: 2mm;
  }
  .receipt-page #receipt h1 { font-size: 18pt; margin-block: 3mm; }
  .receipt-page #receipt .info-list { margin-block: 3mm; }
  .receipt-page #receipt .info-row {
    padding: 2mm 3mm;
    margin-block: 1.5mm;
    min-height: 0;
    font-size: 10pt;
    break-inside: avoid;
  }
  .receipt-page #receipt .info-row .val { font-size: 10pt; }
  .receipt-page #receipt .receipt-amount .val { font-size: 18pt; }
  .receipt-page #receipt .receipt-components { padding: 2mm 3mm; margin-block: 2mm; }
  .receipt-page #receipt .receipt-components dl { margin: 0; }
  .receipt-page #receipt .receipt-components dl > div { padding-block: 1mm; }
  .receipt-page #receipt .receipt-posting-notice { padding: 3mm; margin-block: 3mm; line-height: 1.6; }
  .receipt-page #receipt .receipt-posting-notice p { font-size: 9pt; margin-top: 1mm; }
  .receipt-reference summary,
  .receipt-reference .copy-reference,
  .receipt-reference .secondary-actions {
    display: none !important;
  }
  .receipt-reference {
    display: block !important;
    margin-block: 8px;
  }
}
