:root {
  --teal: #006d62;
  --teal-deep: #00574f;
  --ink: #0d1130;
  --mint: #dcf5f0;
  --line: #bbc4ca;
  --edge: clamp(8px,1vw,15px);
  --content-width: 1440px;
  --control-height: 36px;
}
body {background:#fff;color:var(--ink);font-size:14px}
.portal-header {
  background:linear-gradient(105deg,#08796e,#006457);
  color:white;
  min-height:60px;
  padding:7px clamp(10px,2vw,28px);
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-start;
  gap:6px clamp(8px,1.15vw,18px);
  border:0;
}
.portal-brand {display:flex;gap:10px;align-items:center;color:white;font-size:clamp(16px,1.45vw,22px);line-height:1.1}
.portal-brand svg {width:clamp(27px,2.5vw,38px);height:auto;flex:none}
.portal-brand span {border-left:1px solid #e1f5ee;padding-left:10px}
.portal-brand small {color:white;font-size:.76em;margin-top:4px}
#role-badge:not(:empty) {background:#ebfbf6;color:var(--teal-deep);padding:4px 9px;border-radius:8px;font-weight:750}
#dashboard-nav {display:flex;flex-wrap:wrap;gap:4px;margin-left:auto;overflow:visible}
.portal-header :is(nav button,.header-action) {display:inline-flex;align-items:center;gap:6px;min-height:var(--control-height);padding:5px 9px;font-size:14px;font-weight:650;color:#fff;background:transparent;border:1px solid transparent}
.portal-header :is(nav button[aria-current],nav button:hover,.header-action:hover) {background:#effcf8;color:var(--teal-deep)}
.portal-header :is(nav,.header-action) svg {width:17px;height:17px;flex:none}
.portal-header .header-action {white-space:nowrap}
.portal-content,.master-shell {width:100%;max-width:var(--content-width);margin:0 auto;padding:var(--edge)}
.portal-content p:not(.portal-error) {color:#25334a}
.portal-content .panel {border-color:var(--line);box-shadow:none;min-width:0}
.primary,.master-tabs button.primary {background:var(--teal);border-color:var(--teal);color:white}
.portal-form input,.portal-form select,.portal-form textarea {max-width:100%}
.dash-metrics {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-radius:19px;background:linear-gradient(100deg,#e0f7f3,#d7f3ee);padding:clamp(8px,1vw,14px) 0;margin-bottom:var(--edge)}
.dash-metrics>div {display:flex;justify-content:center;align-items:center;gap:clamp(6px,1vw,14px);padding:4px clamp(7px,1vw,14px);font-size:clamp(12px,1.15vw,16px);line-height:1.2}
.dash-metrics>div+div {border-left:1px solid #85b6ae}
.dash-metrics svg {width:clamp(20px,2.45vw,36px);height:auto;color:var(--teal-deep);flex:none}
.dash-metrics strong {display:block;font-size:clamp(16px,1.85vw,27px);margin-top:4px;overflow-wrap:anywhere}
.dash-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--edge)}
.portal-content .dash-panel {margin:0;padding:clamp(10px,1.1vw,16px);border-radius:17px}
.portal-content .dash-panel+.dash-panel:not(.dash-grid>.dash-panel) {margin-top:var(--edge)}
.dash-panel h2,.dash-panel h3 {display:flex;align-items:center;gap:.45em;line-height:1.18}
.dash-panel h2 {font-size:clamp(18px,1.65vw,24px);margin:0 0 clamp(9px,1vw,15px)}
.dash-panel h3 {font-size:clamp(16px,1.4vw,20px);margin:clamp(9px,1vw,14px) 0;padding-top:clamp(8px,.75vw,11px);border-top:1px solid var(--line)}
.dash-panel h2 svg,.dash-panel h3 svg {width:1.25em;height:1.25em;flex:none}
.dash-actions {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,107px),1fr));gap:clamp(5px,.65vw,9px);margin-bottom:12px}
.dash-actions button,.dash-actions a,.master-building-overview summary {background:linear-gradient(135deg,#008273,#006b5e);color:white;border:0;border-radius:clamp(9px,1vw,14px);min-height:clamp(60px,6vw,86px);display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:7px;padding:8px;font-weight:750;font-size:clamp(13px,1.17vw,17px);line-height:1.16;text-decoration:none;overflow-wrap:anywhere}
.dash-actions svg {width:clamp(20px,2vw,29px);height:auto}
.dash-row {display:flex;align-items:center;gap:clamp(6px,.7vw,10px);padding:clamp(6px,.7vw,10px);min-width:0;margin:0 0 10px;border:1px solid var(--line);border-radius:13px}
.dash-row div:first-of-type {min-width:0;flex:1}
.dash-row strong {display:block;font-size:clamp(14px,1.15vw,17px);line-height:1.18;overflow-wrap:anywhere}
.dash-row small {font-size:clamp(12px,1vw,14px);color:#26334b;overflow-wrap:anywhere;margin-top:3px}
.dash-glyph {background:#d9fae9;color:var(--teal-deep);display:grid;place-items:center;border-radius:9px;padding:8px;flex:none}
.dash-glyph svg {width:clamp(17px,1.6vw,23px);height:auto}
.dash-pill {display:inline-block;padding:4px 10px;border-radius:30px;background:#d5f8e3;color:#0e532e;font-size:clamp(12px,1vw,14px);font-weight:650;text-align:center}
.dash-pill.pending {background:#ffe3dc;color:#7d1e19}
.row-end {display:grid;gap:4px;justify-items:end}
.row-end button,.tenant-actions button {font-size:13px}
.tenant-row {flex-wrap:wrap}
.tenant-actions {flex-basis:100%}
.quota-current {display:grid;justify-items:center;gap:12px;text-align:center;padding:clamp(12px,2vw,28px) 5px}
.quota-current p {font-size:clamp(15px,1.35vw,19px);text-transform:capitalize}
.quota-current strong {font-size:clamp(23px,2.5vw,36px)}
.dash-search {width:100%;margin:0 0 12px}
.unit-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.unit-grid button {display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0}
.unit-grid button[hidden] {display:none}
.unit-grid svg {width:22px;height:auto;flex:none}
.unit-grid button[aria-pressed=true] {border-color:#3d4593;background:#ededff}
.unit-grid strong {overflow-wrap:anywhere}
.unit-detail {margin:14px 0;padding:12px;background:#f3f2ff;border-radius:13px}
.unit-detail h3 {border:0;margin:0 0 10px;padding:0}
.sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#dash-status:empty,#role-badge:empty,#dashboard-nav:empty {display:none}
.portal-content code {overflow-wrap:anywhere}
#master-map {background:#e4f4ee}
body.gestion-body {display:block}
.gestion-body .content {padding:var(--edge);max-width:var(--content-width)}
.gestion-nav {margin-left:auto}
@media (max-width:1100px) {
  #dashboard-nav {margin-left:0}
  .portal-header #session-controls {margin-left:auto}
  .gestion-nav {margin-left:0}
}
@media (max-width:760px) {
  .dash-grid {grid-template-columns:minmax(0,1fr)}
  .portal-header {padding:10px}
  #dashboard-nav,.gestion-nav {flex-basis:100%;order:4;gap:3px}
  .portal-header :is(nav button,.header-action) {padding:5px 7px;font-size:13px}
  .dash-actions {grid-template-columns:repeat(auto-fit,minmax(min(100%,85px),1fr))}
}
@media (max-width:430px) {
  .dash-metrics>div {align-items:flex-start;flex-direction:column}
  .unit-grid button {flex-wrap:wrap}
  .dash-row .row-end {max-width:40%}
}
.floor-filter {display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:9px}
.floor-filter button {border-radius:999px;padding:4px 12px}
.floor-filter button[aria-pressed=true] {background:#303789;color:#fff}

/* Components used by both dashboard portals and building management. */
.ui-heading {
  padding:clamp(10px,1.1vw,16px);
  background:linear-gradient(100deg,#e0f7f3,#d7f3ee);
  border-radius:17px;
}
.ui-heading h1,.portal-content .panel>h2,.ui-section h2,.dialog-head h2 {
  display:flex;
  align-items:center;
  gap:.48em;
  color:var(--ink);
  line-height:1.18;
}
.ui-heading h1 {font-size:clamp(18px,1.65vw,24px);margin:0}
.ui-heading p {margin-top:6px;color:#284b49}
.ui-heading svg,.portal-content .panel>h2 svg,.ui-section h2 svg,.dialog-head h2 svg {
  width:1.2em;
  height:1.2em;
  flex:none;
}
.portal-content .panel:not(.dash-panel)>h2,.ui-section h2 {
  font-size:clamp(16px,1.4vw,20px);
  border-bottom:1px solid var(--line);
  padding-bottom:12px;
  margin-bottom:14px;
}
.portal-login {margin:clamp(10px,2.5vh,25px) auto}
.portal-form,.ui-dialog-content {color:var(--ink)}
.portal-form label,#fields label {gap:6px;font-weight:650;min-width:0}
.portal-form label[hidden],#fields label[hidden] {display:none}
.portal-form input,.portal-form select,.portal-form textarea,#fields input,#fields select,#fields textarea {
  min-height:var(--control-height);
  max-width:100%;
  width:100%;
  border-color:#9db6b4;
  border-radius:10px;
  color:var(--ink);
  padding:6px 9px;
  font-size:14px;
}
.portal-form input:focus,.portal-form select:focus,.portal-form textarea:focus,
#fields input:focus,#fields select:focus,#fields textarea:focus {border-color:var(--teal)}
.portal-form button[type=submit],.ui-form-actions button,.master-shell button[data-backup] {min-height:var(--control-height);padding:6px 12px}
.portal-form button[type=submit] {justify-self:start}
.portal-form [role=alert]:empty,#error:empty {display:none}
:focus-visible {outline:3px solid #247e72;outline-offset:2px}
.portal-header :focus-visible {outline-color:#d6fff4}
.notice {
  margin:9px 0;
  padding:12px 14px;
  background:#effaf7;
  border:1px solid #c3e3d9;
  border-radius:12px;
  overflow-wrap:anywhere;
}
.notice small {color:#415956;margin-top:3px}
.notice p {margin-top:7px}
.tag {background:#e9f5f3;color:#144d44}
.tag.warn {background:#ffe3dc;color:#7d1e19}
.tag.good {background:#d5f8e3;color:#0e532e}
.ui-section-links {display:flex;flex-wrap:wrap;gap:9px}
.link-button:not(.primary) {border:1px solid var(--line);color:var(--teal-deep)}
.table-wrap:has(.ui-table) {border:1px solid var(--line);border-radius:12px}
.ui-table {white-space:normal}
.ui-table th {background:#dcf5f0;color:#164c46;font-size:13px}
.ui-table td {border-color:#dbe7e4}
.ui-table tbody tr:last-child td {border-bottom:0}
.cell-value {overflow-wrap:anywhere}
.cell-label {display:none}
.ui-dialog {
  width:min(500px,calc(100% - 24px));
  max-height:calc(100dvh - 24px);
  padding:0;
  border:1px solid #a5bbb8;
  border-radius:16px;
  box-shadow:0 16px 60px #052e3950;
}
.ui-dialog::backdrop {background:#092d38a0}
.ui-dialog .dialog-head {
  background:var(--mint);
  padding:9px clamp(10px,1vw,15px);
  margin:0;
  display:flex;
  gap:9px;
}
.ui-dialog .dialog-head h2 {font-size:clamp(17px,1.5vw,22px);margin:0}
.ui-dialog-content {padding:clamp(10px,1vw,15px)}
.ui-form-actions {display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-top:14px}
.gestion-nav,.master-tabs {display:flex;flex-wrap:wrap;gap:6px;overflow:visible}
.portal-nav svg {width:17px;height:17px;flex:none}
.gestion-toolbar {
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;
  background:#edf9f6;border-bottom:1px solid #c5e2da;
  gap:7px;padding:7px var(--edge);
}
.gestion-toolbar .portal-nav {flex-wrap:wrap}
.gestion-toolbar .portal-nav a {color:var(--teal-deep)}
.gestion-toolbar #bell {display:inline-flex;align-items:center;gap:5px}
.gestion-toolbar label {color:var(--teal-deep)}
.gestion-body .title {
  align-items:center;background:var(--mint);border-radius:17px;
  padding:clamp(9px,1vw,15px);margin-bottom:var(--edge);
}
.gestion-body .title .ui-heading {background:none;padding:0}
.gestion-body .card,.gestion-body .panel {box-shadow:none;border-color:var(--line)}
.gestion-body .card {background:#effaf7}
.gestion-body .glyph {background:#d9fae9;color:var(--teal-deep)}
.gestion-body .glyph svg {width:23px;height:23px}
.gestion-body .panel>strong {font-size:clamp(17px,1.5vw,22px)}
.progress {background:#ddf0eb}
.progress i {background:var(--teal)}
.ui-message-text {white-space:pre-wrap;overflow-wrap:anywhere}
@media (max-width:740px) {
  .ui-table thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .ui-table,.ui-table tbody,.ui-table tr {display:block}
  .ui-table tbody tr {padding:7px 10px}
  .ui-table tbody tr+tr {border-top:1px solid var(--line)}
  .ui-table tbody tr:nth-child(even) {background:#f2faf8}
  .ui-table tbody td {display:grid;grid-template-columns:minmax(65px,.75fr) minmax(0,1.25fr);gap:7px;border:0;padding:5px 0}
  .cell-label {display:block;font-weight:650;color:#325752;overflow-wrap:anywhere}
  .portal-form button[type=submit] {justify-self:stretch}
}
@media (max-width:420px) {
  .gestion-nav button {padding:7px;font-size:13px}
  .gestion-toolbar .scope {width:100%}
  .gestion-toolbar .scope label {flex:1;min-width:0}
  .gestion-toolbar .scope label :is(select,input) {width:100%}
}

.master-tabs button {min-height:var(--control-height);padding:5px 9px}
.master-tabs button svg,.master-shell .actions button svg {width:19px;height:19px;flex:none}
.master-shell .actions button {display:inline-flex;align-items:center;gap:5px}
.master-tabs button:not(.primary) {background:#f0faf8;color:var(--teal-deep)}
.portal-content details {padding:12px;border:1px solid var(--line);border-radius:12px;margin-top:12px}
.portal-content summary {cursor:pointer;font-weight:700;color:var(--teal-deep)}
.ui-status:not(:empty),#account-status:not(:empty),#delivery-status:not(:empty) {
  background:var(--mint);padding:9px 12px;border-radius:9px;margin:8px 0;
}
.ui-status:empty {display:none}
button:disabled {cursor:wait;opacity:.65}
#fields input[type=file],.portal-form input[type=file] {background:#f0faf8}
#fields input::file-selector-button,.portal-form input::file-selector-button {
  padding:6px 10px;margin-right:10px;border:0;border-radius:6px;background:var(--teal);color:white;font:inherit;
}
@media(max-width:540px) {
  .master-tabs button {flex-direction:row;font-size:13px}
}

.portal-content .panel:not(.dash-panel),.gestion-body .panel,.gestion-body .card {padding:clamp(10px,1.1vw,16px)}
.portal-content .panel:not(.dash-panel) {margin-top:12px}
.portal-form {gap:8px;margin-top:9px}
#fields label {margin-bottom:8px}
.ui-table th,.ui-table td {padding:7px 8px}
.dash-row {margin-bottom:7px}
.dash-glyph {padding:6px}
.notice {margin:7px 0;padding:8px 10px}
.master-shell #master-map {height:clamp(180px,36vh,320px)}
@media (pointer:coarse) {
  :root {--control-height:42px}
  .portal-form input,.portal-form select,.portal-form textarea,#fields input,#fields select,#fields textarea {font-size:16px}
}
.system-logo {display:block;width:96px;height:96px;object-fit:contain;margin:0 0 10px}
.portal-login>.system-logo {margin-inline:auto}

.portal-content .master-building-overview details {padding:0;border:0}
.master-building-overview details:first-child {margin-top:0}
.portal-content .dash-grid>.master-building-overview {margin-top:0}
.master-building-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;align-items:start}
.portal-content .master-building-grid details {margin:0;min-width:0}
.portal-content .master-building-overview summary {cursor:pointer;list-style:none;color:#fff;font-weight:750}
.master-building-grid .dash-row {padding:6px;display:block;overflow-wrap:anywhere}
.master-building-grid .dash-row .dash-glyph {display:none}
.master-building-grid .dash-row strong {font-size:13px}
.master-metric-links>button {
  display:flex;align-items:center;justify-content:center;gap:clamp(6px,1vw,14px);
  padding:4px 8px;margin:0;border:0;border-radius:0;background:transparent;color:var(--ink);
  text-align:left;font-size:clamp(12px,1.15vw,16px);line-height:1.2;min-width:0;overflow-wrap:anywhere;
}
.master-metric-links>button+button {border-left:1px solid #85b6ae}
.master-metric-links>button:hover {background:var(--mint);color:var(--teal-deep)}
@media (max-width:520px) {
  .master-metric-links>button {flex-direction:column;text-align:center;padding-inline:4px}
  .master-building-grid summary {padding-inline:4px;font-size:11px}
  .master-building-grid .dash-row strong,.master-building-grid .dash-row small {font-size:11px}
}
.master-building-overview summary::-webkit-details-marker {display:none}
.master-building-overview summary svg {width:clamp(20px,2vw,29px);height:auto;color:inherit}
.master-building-overview summary::after {content:"";width:7px;height:7px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg)}
.master-building-overview details[open] summary::after {transform:rotate(225deg)}
.master-building-overview details[open] summary {margin-bottom:10px}
.master-shell .receipt-pagination {align-items:center;margin-block:12px}
.receipt-print {display:none}

@media print {
  body:has(>.receipt-print) {display:block;background:#fff;color:#000}
  body:has(>.receipt-print)>:not(.receipt-print) {display:none !important}
  .receipt-print {display:block}
  .receipt-print .table-wrap {overflow:visible}
  .receipt-print .ui-table {display:table;width:100%;border-collapse:collapse}
  .receipt-print .ui-table thead {display:table-header-group}
  .receipt-print .ui-table tbody {display:table-row-group}
  .receipt-print .ui-table tr {display:table-row;break-inside:avoid}
  .receipt-print .ui-table th,.receipt-print .ui-table td {display:table-cell;padding:6px;border-bottom:1px solid #aaa}
  .receipt-print .cell-label {display:none}
}

.panel-colors {display:grid;gap:8px;border:1px solid var(--line);border-radius:12px;margin:0;padding:12px;min-width:0}
.panel-colors legend {font-weight:700}
.panel-colors input[type=color] {width:72px;padding:3px}
#logo-colors {align-items:center}
#logo-colors:empty {display:none}
.logo-swatch::before {content:"";display:inline-block;width:18px;height:18px;border-radius:50%;background:var(--swatch);border:1px solid var(--line)}
#logo-sampler {width:160px;max-width:100%;height:auto;cursor:crosshair;background:#f4f4f4}
.panel-color-preview {display:grid;justify-items:start;gap:6px;background:var(--mint);border-radius:8px;padding:8px 12px}
.panel-color-preview span {background:var(--teal);color:white;border-radius:6px;padding:4px 8px}
html[data-panel-theme] .portal-header {background:linear-gradient(105deg,var(--teal),var(--teal-deep))}
html[data-panel-theme] .dash-actions :is(button,a) {background:linear-gradient(135deg,var(--teal),var(--teal-deep))}
html[data-panel-theme] :is(.dash-metrics,.dash-glyph,.ui-table th,#role-badge,.gestion-toolbar,.gestion-body .card,.gestion-body .glyph,.portal-header nav button[aria-current]) {background:var(--mint);color:var(--teal-deep)}

.receipt-totals .dash-metrics {grid-template-columns:repeat(4,minmax(0,1fr))}
.receipt-totals .dash-metrics>div {align-items:center;text-align:center;padding:4px clamp(2px,0.7vw,10px);font-size:clamp(10px,1.1vw,14px);min-width:0}
.receipt-totals .dash-metrics>div>span {min-width:0}
.receipt-totals .dash-metrics strong {font-size:clamp(11px,1.5vw,20px)}
@media (max-width:600px) {
  .receipt-totals .dash-metrics>div {justify-content:flex-start}
  .receipt-totals .dash-metrics svg {display:none}
}

.admin-home-metrics .dash-metrics {grid-template-columns:repeat(4,minmax(0,1fr))}
.admin-home-metrics .dash-metrics>div {min-width:0;overflow-wrap:anywhere}
.admin-finance-panels {margin-block:var(--edge)}
.admin-collection-progress {width:100%;height:12px;accent-color:var(--teal)}
#admin-overdue-rows {margin-top:10px}
@media (max-width:520px) {
  .admin-home-metrics .dash-metrics {grid-template-columns:repeat(2,minmax(0,1fr))}
}
#gestion-tabs {padding:var(--edge) var(--edge) 0}
#gestion-tabs[hidden] {display:none}
.portal-header .header-action[aria-current] {background:#effcf8;color:var(--teal-deep)}
.master-tabs .link-button {display:inline-flex;align-items:center;min-height:var(--control-height);padding:5px 9px;background:#f0faf8;color:var(--teal-deep)}
#gestion-toolbar[hidden] {display:none}
#gestion-tabs>label {display:flex;align-items:center;gap:6px;margin-left:auto}
.payment-qr {display:block;width:min(100%,280px);height:auto;margin:10px 0;background:#fff;padding:8px}

.master-tabs .link-button.primary {background:var(--teal);color:#fff}
.admin-section-tabs {margin-bottom:var(--edge)}
.gestion-admin-section main {width:100%;max-width:var(--content-width);margin-inline:auto}
.gestion-admin-section .content {padding:var(--edge)}
.gestion-admin-section .ui-section {border-radius:17px}
.master-tabs :is(button,.link-button) {font:inherit;font-weight:650;line-height:1.2}
.master-tabs :is(button,.link-button) svg {width:19px;height:19px;flex:none}
.admin-section-tabs .link-button {gap:6px}
#gestion-tabs .link-button {gap:6px}
.gestion-body #gestion-tabs {width:100%;max-width:var(--content-width);margin-inline:auto}
.finance-filters {display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin-bottom:8px}
.finance-filters label {display:grid;gap:4px}
.finance-filters :is(input,button) {min-height:var(--control-height)}
.finance-export {margin-bottom:var(--edge)}

.portal-brand-logo {width:clamp(27px,2.5vw,38px);aspect-ratio:1;object-fit:contain;flex:none}
.portal-header div.portal-brand {cursor:default}
.notice-count {background:#fff;color:#00574f;border-radius:20px;min-width:20px;padding:2px 5px;text-align:center;font-size:12px}
#subscription-expense[hidden] {display:none}

.portal-form small[hidden] {display:none}

.ui-form-actions .credential-whatsapp {
  margin:0;
  background:#167744;
  border:1px solid #167744;
  color:white;
}
.area-settings {
  display:flex;
  flex-wrap:wrap;
  gap:8px 18px;
  margin:0;
  border:1px solid var(--line);
  border-radius:8px;
}
.area-settings legend {font-weight:650}
.portal-form .area-check {
  display:flex;
  align-items:center;
  gap:6px;
}
.area-check input {width:auto;min-height:0}
#reservation-availability:empty {display:none}

#tenant-contact:not([hidden]) {display:grid;gap:10px}
.finance-pages {margin-top:12px;align-items:center}
.document-header {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:16px;
  background:white;
  border-bottom:2px solid #27444b;
  padding:12px 0;
  margin-bottom:16px;
}
.document-header img {width:64px;height:64px;object-fit:contain}
.document-header h1 {font-size:clamp(20px,3vw,30px);margin:2px 0}
.document-header .document-name {color:#173a42;font-weight:750}
.finance-document h2 {margin:18px 0 6px}
.receipt-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px}
.receipt-fields dt {font-weight:650}
.receipt-fields dd {margin:2px 0 0}
.receipt-concept {border-top:1px solid #adbabd;padding:12px 0}
.receipt-amount {display:flex;justify-content:space-between;gap:12px;border-block:1px solid #27444b;padding:10px 0}
.receipt-amount span {font-weight:750}
.receipt-signature {border-top:1px solid #27444b;margin:52px auto 0;width:220px;text-align:center;padding-top:5px}
@media print {
  .payment-document {max-width:170mm;margin:0 auto;color:#111;overflow-wrap:anywhere;break-inside:avoid}
  .document-header {background:#fff;color:#111}
  .finance-document table {white-space:normal}
}

.password-field {position:relative;display:block}
.portal-form .password-field input {padding-inline-end:48px}
.password-field input::-ms-reveal,.password-field input::-ms-clear {display:none}
.password-field [data-show-password] {
  position:absolute;inset-inline-end:4px;top:50%;transform:translateY(-50%);
  display:grid;place-items:center;width:36px;height:32px;min-height:0;
  border:0;padding:0;background:transparent;color:var(--teal-deep);
}
.password-field svg {width:20px;height:20px}
.receipt-signatures {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.receipt-signatures .receipt-signature {width:100%;max-width:220px}
.notice-recipients {display:grid;gap:6px}
.portal-form .notice-recipients label {display:flex;align-items:center}
.portal-form .notice-recipients input {width:auto;min-height:0}
#site-install .ui-dialog-content p {margin-bottom:8px}

#site-install button[hidden],.notice-recipients[hidden] {display:none}

.void-receipt {border:2px solid #942a25;color:#942a25;padding:10px;margin:12px 0}
