:root {
      --brand-dark: #1A2530;
      --brand-cyan: #00B4D8;
      --brand-mint: #2fd6a3;
      --brand-gold: #f0b84a;
      --ink: #17202c;
      --muted: #60738a;
      --line: #d9e3ec;
      --soft: #f5f8fb;
      --paper: #fffdf8;
      --white: #ffffff;
      --danger: #b4232f;
      --warning: #a16207;
      --ok: #087443;
      --shadow: 0 24px 70px rgba(14, 25, 40, 0.22);
    }

    * { box-sizing: border-box; }

    html, body {
      margin: 0;
      min-height: 100%;
      font-family: Inter, Arial, sans-serif;
      color: var(--ink);
      background: #edf6f9;
      overflow-x: hidden;
    }

    body {
      min-height: 100vh;
      position: relative;
    }

    body::before {
      display: none;
    }

    a { color: inherit; }

    .page-shell {
      position: relative;
      z-index: 1;
      width: 100%;
      min-height: 100vh;
      padding: 0;
      display: grid;
      grid-template-rows: 1fr;
      gap: 0;
    }

    .topbar {
      position: absolute;
      top: 24px;
      right: 28px;
      z-index: 5;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 18px;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      color: var(--white);
      text-decoration: none;
      min-width: 0;
      min-height: 58px;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      backdrop-filter: none;
      box-shadow: none;
    }

    .brand img {
      width: 220px;
      height: auto;
      display: block;
      object-fit: contain;
      border-radius: 0;
      background: transparent;
      padding: 0;
      box-shadow: none;
    }

    .brand span {
      display: grid;
      gap: 1px;
      font-family: Montserrat, Inter, sans-serif;
      letter-spacing: 0;
      text-transform: uppercase;
      line-height: 1.25;
    }

    .brand strong {
      color: #fff;
      font-size: 14px;
      font-weight: 900;
    }

    .brand small {
      color: #8deaff;
      font-size: 10px;
      font-weight: 900;
    }

    .top-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 42px;
      padding: 0 14px;
      border: 1px solid rgba(26, 37, 48, 0.12);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.86);
      color: var(--brand-dark);
      text-decoration: none;
      font-size: 13px;
      font-weight: 800;
      backdrop-filter: blur(10px);
      box-shadow: 0 12px 28px rgba(26, 37, 48, 0.10);
    }

    .main-grid {
      align-self: stretch;
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 0;
      align-items: stretch;
      min-height: 100vh;
    }

    .intro {
      position: relative;
      color: var(--brand-dark);
      max-width: none;
      align-self: stretch;
      padding: clamp(34px, 5vw, 74px);
      background: #ffffff;
      border: 0;
      border-radius: 0;
      box-shadow: none;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
    }

    .intro::before {
      content: "";
      position: absolute;
      inset: 0;
      background: url("/logos/santiago_dibujo_login.jpg");
      background-position: center bottom;
      background-repeat: no-repeat;
      background-size: 108% auto;
      opacity: 1;
      pointer-events: none;
    }

    .intro > * {
      position: relative;
      z-index: 1;
    }

    .intro .brand {
      align-self: flex-start;
      margin-bottom: clamp(34px, 6vh, 58px);
    }

    .intro-kicker {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 14px;
      color: #007d97;
      font-size: 13px;
      font-weight: 900;
      letter-spacing: 0;
      text-transform: uppercase;
    }

    .intro h1 {
      margin: 0;
      font-family: Montserrat, Inter, sans-serif;
      font-size: 48px;
      line-height: 1.06;
      letter-spacing: 0;
      font-weight: 900;
      color: var(--brand-dark);
      text-shadow: none;
    }

    .intro p {
      margin: 18px 0 0;
      max-width: 520px;
      color: #314960;
      font-size: 16px;
      line-height: 1.7;
      font-weight: 500;
    }

    .consult-panel {
      position: relative;
      background:
        radial-gradient(circle at 84% 10%, rgba(0, 180, 216, 0.20), transparent 34%),
        linear-gradient(180deg, #142638 0%, #091521 100%);
      background-size: auto, auto;
      border: 0;
      border-radius: 0;
      box-shadow: none;
      overflow: hidden;
      align-self: stretch;
      min-height: 100vh;
      display: grid;
      grid-template-rows: auto 1fr;
      align-content: start;
      padding: clamp(76px, 10vh, 106px) clamp(40px, 5vw, 80px) 56px;
    }

    .consult-panel::before {
      display: none;
    }

    .search-block {
      width: min(100%, 680px);
      margin-inline: auto;
      border: 1px solid rgba(255, 255, 255, 0.22);
      border-radius: 16px;
      background: #ffffff;
      box-shadow: 0 26px 58px rgba(0, 0, 0, 0.20);
      overflow: hidden;
    }

    .panel-head {
      width: auto;
      margin-inline: 0;
      padding: 28px 30px 16px;
      border-bottom: 0;
      background: transparent;
      color: var(--brand-dark);
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 18px;
      align-items: start;
    }

    .panel-head h2 {
      margin: 0;
      font-family: Montserrat, Inter, sans-serif;
      color: var(--brand-dark);
      font-size: 24px;
      line-height: 1.2;
      letter-spacing: 0;
      font-weight: 900;
    }

    .panel-head p {
      margin: 8px 0 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.55;
      font-weight: 600;
    }

    .panel-warning {
      display: inline-flex;
      align-items: flex-start;
      gap: 8px;
      max-width: 540px;
      color: #7b8794;
    }

    .panel-warning i {
      margin-top: 3px;
      color: #9aa6b2;
      font-size: 13px;
      flex: 0 0 auto;
    }

    .panel-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 32px;
      padding: 0 10px;
      border-radius: 999px;
      background: rgba(0, 180, 216, 0.11);
      color: #007d97;
      font-size: 11px;
      font-weight: 900;
      white-space: nowrap;
    }

    .pre-rut-guide {
      position: relative;
      display: grid;
      grid-template-columns: 46px minmax(0, 1fr) auto;
      gap: 13px;
      align-items: center;
      margin: 0 30px 18px;
      padding: 14px 15px;
      overflow: hidden;
      border: 1px solid rgba(0, 180, 216, 0.24);
      border-radius: 14px;
      background: linear-gradient(135deg, #f4fbfd, #ffffff);
      color: var(--brand-dark);
      text-decoration: none;
      box-shadow: 0 12px 28px rgba(26, 37, 48, 0.07);
      transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    }

    .pre-rut-guide::before {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      width: 4px;
      background: linear-gradient(180deg, var(--brand-dark), var(--brand-cyan));
    }

    .pre-rut-guide:hover {
      transform: translateY(-2px);
      border-color: rgba(0, 180, 216, 0.46);
      box-shadow: 0 17px 34px rgba(26, 37, 48, 0.11);
    }

    .pre-rut-guide:focus-visible {
      outline: 3px solid rgba(0, 180, 216, 0.26);
      outline-offset: 3px;
    }

    .pre-rut-guide-icon {
      display: grid;
      place-items: center;
      width: 46px;
      height: 46px;
      border: 1px solid rgba(0, 180, 216, 0.20);
      border-radius: 13px;
      background: #fff;
      color: #007d97;
      box-shadow: 0 8px 18px rgba(0, 125, 151, 0.09);
    }

    .pre-rut-guide-icon svg {
      width: 23px;
      height: 23px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .pre-rut-guide-copy {
      min-width: 0;
    }

    .pre-rut-guide-kicker,
    .pre-rut-guide-copy strong,
    .pre-rut-guide-copy small {
      display: block;
    }

    .pre-rut-guide-kicker {
      margin-bottom: 3px;
      color: #007d97;
      font-size: 9px;
      font-weight: 900;
      letter-spacing: 0.07em;
      text-transform: uppercase;
    }

    .pre-rut-guide-copy strong {
      font-size: 13px;
      line-height: 1.3;
      font-weight: 900;
    }

    .pre-rut-guide-copy small {
      margin-top: 3px;
      color: var(--muted);
      font-size: 10px;
      line-height: 1.42;
      font-weight: 650;
    }

    .pre-rut-guide-action {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-height: 34px;
      padding: 0 10px;
      border: 1px solid rgba(0, 180, 216, 0.20);
      border-radius: 9px;
      background: #fff;
      color: #007d97;
      font-size: 10px;
      font-weight: 900;
      white-space: nowrap;
    }

    .pre-rut-guide-action svg {
      width: 13px;
      height: 13px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .debt-form {
      width: auto;
      margin-inline: 0;
      padding: 0 30px 28px;
      display: grid;
      gap: 14px;
      border-bottom: 0;
      background: transparent;
    }

    .indicator-strip {
      min-height: 220px;
      border: 1px dashed rgba(113, 188, 211, 0.38);
      border-radius: 12px;
      padding: 24px;
      display: grid;
      gap: 12px;
      background: rgba(7, 18, 29, 0.42);
      align-content: center;
    }

    .indicator-heading {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      color: #ffffff;
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .indicator-heading span:last-child {
      color: rgba(190, 213, 230, 0.88);
      font-size: 12px;
      font-weight: 800;
      text-transform: none;
      white-space: nowrap;
    }

    .indicator-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .indicator-card {
      min-width: 0;
      border: 1px solid rgba(113, 188, 211, 0.26);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.06);
      padding: 12px;
    }

    .indicator-card.ipc {
      grid-column: 1 / -1;
    }

    .indicator-card span {
      display: block;
      color: rgba(190, 213, 230, 0.82);
      font-size: 11px;
      font-weight: 800;
      margin-bottom: 4px;
    }

    .indicator-card strong {
      display: block;
      color: #ffffff;
      font-family: Montserrat, Inter, sans-serif;
      font-size: 18px;
      font-weight: 900;
      line-height: 1.15;
    }

    .indicator-card small {
      display: block;
      margin-top: 6px;
      color: #718297;
      font-size: 11px;
      font-weight: 650;
    }

    .ipc-list {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 6px;
      margin-top: 10px;
    }

    .ipc-chip {
      min-width: 0;
      border-radius: 7px;
      background: rgba(0, 180, 216, 0.11);
      padding: 7px;
      color: #ffffff;
      font-size: 11px;
      font-weight: 800;
      line-height: 1.25;
    }

    .ipc-chip span {
      margin: 0 0 2px;
      color: rgba(190, 213, 230, 0.78);
      font-size: 10px;
    }

    .field label {
      display: block;
      margin-bottom: 8px;
      color: var(--brand-dark);
      font-size: 13px;
      font-weight: 800;
    }

    .input-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: stretch;
    }

    .input-wrap {
      position: relative;
      min-width: 0;
    }

    .input-wrap i {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--muted);
      pointer-events: none;
    }

    input[type="text"] {
      width: 100%;
      min-height: 50px;
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 0 14px 0 42px;
      color: var(--ink);
      background: #fff;
      font: 700 15px Inter, Arial, sans-serif;
      outline: none;
      transition: border-color 0.18s ease, box-shadow 0.18s ease;
    }

    input[type="text"]:focus {
      border-color: var(--brand-cyan);
      box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.14);
    }

    input[aria-invalid="true"] {
      border-color: rgba(180, 35, 47, 0.66);
      box-shadow: 0 0 0 4px rgba(180, 35, 47, 0.11);
    }

    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      min-height: 50px;
      border: 0;
      border-radius: 8px;
      padding: 0 18px;
      background: linear-gradient(135deg, var(--brand-cyan), #0793ad);
      color: #fff;
      font: 900 13px Montserrat, Inter, sans-serif;
      cursor: pointer;
      white-space: nowrap;
      transition: transform 0.18s ease, filter 0.18s ease;
    }

    .btn:hover { transform: translateY(-1px); filter: brightness(0.97); }
    .btn:disabled { cursor: wait; transform: none; filter: grayscale(0.2); opacity: 0.76; }

    .form-message {
      min-height: 20px;
      color: var(--danger);
      font-size: 13px;
      font-weight: 700;
    }

    .floating-toast {
      position: fixed;
      top: 22px;
      right: 22px;
      z-index: 120;
      display: flex;
      align-items: center;
      gap: 10px;
      max-width: min(380px, calc(100vw - 32px));
      padding: 13px 16px;
      border: 1px solid #bfead3;
      border-radius: 16px;
      background: rgba(239, 251, 245, 0.98);
      color: var(--ok);
      box-shadow: 0 18px 38px rgba(14, 25, 40, 0.16);
      font-size: 13px;
      font-weight: 900;
      line-height: 1.35;
      opacity: 0;
      transform: translateY(-10px);
      pointer-events: none;
      transition: opacity .18s ease, transform .18s ease;
    }

    .floating-toast.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    .floating-toast i {
      flex: 0 0 auto;
    }

    .result-area {
      width: min(100%, 680px);
      margin-inline: auto;
      background: transparent;
      min-height: 420px;
      padding: 26px 0 0;
      display: grid;
      align-content: start;
    }

    .auto-boot-overlay {
      position: fixed;
      inset: 0;
      z-index: 90;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
      background:
        radial-gradient(circle at 50% 24%, rgba(0, 180, 216, 0.18), transparent 34%),
        linear-gradient(135deg, #eff8fb 0%, #ffffff 100%);
    }

    html.pay-auto-boot .page-shell {
      visibility: hidden;
    }

    html.pay-auto-boot .auto-boot-overlay {
      display: flex;
    }

    .auto-boot-card {
      width: min(430px, 100%);
      padding: 30px;
      border: 1px solid #ccebf4;
      border-radius: 26px;
      background: rgba(255, 255, 255, 0.96);
      box-shadow: 0 28px 70px rgba(14, 25, 40, 0.16);
      text-align: center;
    }

    .auto-boot-icon {
      display: grid;
      place-items: center;
      width: 66px;
      height: 66px;
      margin: 0 auto 16px;
      border-radius: 22px;
      background: #e9fbff;
      color: #009fc0;
      font-size: 24px;
    }

    .auto-boot-card h2 {
      margin: 0;
      color: var(--brand-dark);
      font-family: Montserrat, Inter, sans-serif;
      font-size: 26px;
      line-height: 1.08;
      letter-spacing: -.04em;
    }

    .auto-boot-card p {
      margin: 10px 0 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.62;
      font-weight: 700;
    }

    .auto-boot-track {
      display: block;
      width: 100%;
      height: 6px;
      margin-top: 20px;
      overflow: hidden;
      border-radius: 999px;
      background: #dff6fb;
    }

    .auto-boot-track::before {
      content: "";
      display: block;
      width: 42%;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
      animation: autoBootLoad 1s ease-in-out infinite alternate;
    }

    @keyframes autoBootLoad {
      from { transform: translateX(-10%); }
      to { transform: translateX(150%); }
    }

    body.has-results {
      background: #eef5f8;
      height: 100vh;
      height: 100dvh;
      overflow: hidden;
      overscroll-behavior: none;
    }

    body.has-results .page-shell {
      height: 100vh;
      height: 100dvh;
      min-height: 0;
    }

    body.has-results .main-grid {
      display: block;
      height: 100vh;
      height: 100dvh;
      min-height: 100vh;
      background: #eef5f8;
    }

    body.has-results .intro {
      display: none;
    }

    body.has-results .consult-panel {
      height: 100vh;
      height: 100dvh;
      min-height: 0;
      padding: 0;
      background: transparent;
      grid-template-rows: 1fr;
      overflow: hidden;
    }

    body.has-results .result-area {
      width: 100%;
      height: 100%;
      min-height: 0;
      padding-top: 0;
    }

    body.has-results .search-block {
      display: none;
    }

    body.has-results .topbar {
      display: none;
    }

    .placeholder,
    .empty-state,
    .error-state {
      min-height: 220px;
      height: min(310px, 42vh);
      display: grid;
      place-items: center;
      text-align: center;
      color: var(--muted);
      border: 1px dashed rgba(113, 188, 211, 0.38);
      border-radius: 12px;
      padding: 22px;
      background: rgba(7, 18, 29, 0.42);
    }

    .placeholder i,
    .empty-state i,
    .error-state i {
      display: block;
      margin-bottom: 12px;
      color: var(--brand-cyan);
      font-size: 28px;
    }

    .empty-state i { color: var(--ok); }
    .error-state i { color: var(--danger); }

    .state-title {
      display: block;
      color: #ffffff;
      font-size: 16px;
      font-weight: 900;
      margin-bottom: 6px;
    }

    .state-copy {
      display: block;
      max-width: 420px;
      color: rgba(190, 213, 230, 0.84);
      font-size: 13px;
      line-height: 1.55;
      font-weight: 600;
    }

    .loading-state {
      width: min(430px, calc(100% - 32px));
      padding: 24px;
      border: 1px solid rgba(149, 207, 223, 0.30);
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.96);
      box-shadow: 0 22px 50px rgba(6, 23, 36, 0.22);
      color: var(--ink);
      text-align: left;
    }

    .loading-orbit {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 46px;
      height: 46px;
      margin-bottom: 15px;
      border-radius: 999px;
      background: linear-gradient(135deg, rgba(0, 180, 216, 0.16), rgba(255, 255, 255, 0.92));
      color: var(--brand-cyan);
      position: relative;
    }

    .loading-orbit::after {
      content: "";
      position: absolute;
      inset: -4px;
      border-radius: inherit;
      border: 2px solid rgba(0, 180, 216, 0.16);
      border-top-color: var(--brand-cyan);
      animation: loadingSpin 0.95s linear infinite;
    }

    .placeholder .loading-orbit i {
      display: inline-block;
      margin: 0;
      color: currentColor;
      font-size: 18px;
    }

    .loading-state .state-title {
      color: var(--brand-dark);
      font-size: 18px;
      margin-bottom: 5px;
    }

    .loading-state .state-copy {
      color: #637589;
      font-size: 12px;
      font-weight: 750;
    }

    .loading-track {
      position: relative;
      height: 4px;
      margin: 18px 0 16px;
      border-radius: 999px;
      background: #e3eff5;
      overflow: hidden;
    }

    .loading-track::after {
      content: "";
      position: absolute;
      inset: 0 auto 0 0;
      width: 44%;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--brand-cyan), #087c92);
      animation: loadingTrack 1.15s ease-in-out infinite;
    }

    .loading-checks {
      display: grid;
      gap: 8px;
      margin-top: 2px;
    }

    .loading-check {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #52677b;
      font-size: 11px;
      font-weight: 850;
      letter-spacing: 0.01em;
    }

    .placeholder .loading-check i {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 18px;
      height: 18px;
      margin: 0;
      border-radius: 999px;
      background: #edf8fb;
      color: var(--brand-cyan);
      font-size: 9px;
    }

    @keyframes loadingSpin {
      to { transform: rotate(360deg); }
    }

    @keyframes loadingTrack {
      0% { transform: translateX(-110%); }
      55% { transform: translateX(80%); }
      100% { transform: translateX(235%); }
    }

    .summary {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 14px;
      align-items: center;
      margin-bottom: 14px;
      padding: 16px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.06);
    }

    .summary span {
      display: block;
      color: rgba(190, 213, 230, 0.78);
      font-size: 12px;
      font-weight: 800;
    }

    .summary strong {
      display: block;
      margin-top: 3px;
      color: #ffffff;
      font-family: Montserrat, Inter, sans-serif;
      font-size: 22px;
      font-weight: 900;
      letter-spacing: 0;
    }

    .summary-total {
      text-align: right;
      color: #ffffff;
      font-family: Montserrat, Inter, sans-serif;
      font-size: 26px;
      font-weight: 900;
      white-space: nowrap;
    }

    .summary-total span {
      display: block;
      margin-bottom: 3px;
      color: rgba(190, 213, 230, 0.78);
      font-family: Inter, Arial, sans-serif;
      font-size: 11px;
      font-weight: 800;
    }

    .summary-total strong {
      display: block;
      color: #ffffff;
      font-family: Montserrat, Inter, sans-serif;
      font-size: 26px;
      font-weight: 900;
      letter-spacing: 0;
    }

    .summary-tenant {
      margin-top: 6px;
    }

    .payment-results {
      display: grid;
      grid-template-rows: auto 1fr auto;
      gap: 0;
      height: 100%;
      height: 100dvh;
      min-height: 0;
      background: #eef5f8;
      overscroll-behavior: none;
    }

    .checkout-header {
      position: relative;
      overflow: hidden;
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto auto auto;
      gap: clamp(16px, 2vw, 28px);
      align-items: center;
      min-height: 96px;
      padding: 12px clamp(24px, 4.2vw, 68px);
      border: 0;
      border-bottom: 1px solid #d7e6ee;
      border-radius: 0;
      background: #ffffff;
      color: var(--brand-dark);
      box-shadow: 0 14px 42px rgba(15, 23, 42, 0.10);
    }

    .checkout-header::before {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--brand-dark), var(--brand-cyan), var(--brand-dark));
      background-size: 180% 100%;
    }

    .checkout-logo {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 206px;
      min-width: 206px;
      min-height: 54px;
      border-radius: 0;
      background: transparent;
      padding: 0;
      box-shadow: none;
    }

    .checkout-logo img {
      display: block;
      width: 100%;
      height: auto;
      object-fit: contain;
    }

    .payer-heading {
      min-width: 0;
    }

    .payer-heading span,
    .payer-rut span,
    .selected-total-box span {
      display: block;
      color: #007d97;
      font-size: 11px;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: .2px;
    }

    .payer-heading h2 {
      margin: 3px 0 0;
      color: var(--brand-dark);
      font-family: Montserrat, Inter, sans-serif;
      font-size: clamp(18px, 2vw, 24px);
      line-height: 1.1;
      font-weight: 900;
      letter-spacing: 0;
      overflow-wrap: anywhere;
    }

    .payer-heading small {
      display: block;
      margin-top: 4px;
      color: #526a83;
      font-size: 12px;
      font-weight: 750;
    }

    .payment-property-line {
      display: flex;
      align-items: center;
      gap: 8px;
      max-width: 760px;
      margin-top: 8px;
      color: #31465c;
      font-size: 12px;
      font-weight: 780;
      line-height: 1.35;
    }

    .payment-property-line i {
      color: var(--brand-cyan);
      flex: 0 0 auto;
    }

    /* Un RUT puede arrendar a mas de una sociedad del grupo. Cada una cobra por
       su propio convenio, asi que el pago es separado y aqui se elige cual. */
    .payment-company-line {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
      max-width: 760px;
      margin-top: 8px;
      color: #31465c;
      font-size: 12px;
      font-weight: 780;
      line-height: 1.35;
    }

    .payment-company-line i {
      color: var(--brand-cyan);
      flex: 0 0 auto;
    }

    .payment-company-switch {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 11px;
      border: 1px solid #cfe1ea;
      border-radius: 999px;
      background: #f6fbfd;
      color: #31465c;
      font-family: inherit;
      font-size: 11px;
      font-weight: 800;
      cursor: pointer;
      transition: border-color .18s ease, background .18s ease, color .18s ease;
    }

    .payment-company-switch:hover {
      border-color: var(--brand-cyan);
      background: #ffffff;
    }

    .payment-company-switch[aria-pressed="true"] {
      border-color: var(--brand-dark);
      background: var(--brand-dark);
      color: #ffffff;
      cursor: default;
    }

    .payment-company-switch .company-debt-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--brand-cyan);
    }

    .payment-company-switch[aria-pressed="true"] .company-debt-dot {
      background: #ffffff;
    }

    .payment-property-line span {
      display: inline;
      min-width: 0;
      color: #31465c;
      font-size: 12px;
      font-weight: 780;
      text-transform: none;
      letter-spacing: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .payment-property-line strong {
      flex: 0 0 auto;
      color: #007d97;
      font-size: 11px;
      font-weight: 900;
      white-space: nowrap;
    }

    .result-message {
      grid-column: 1 / -1;
      display: none;
      align-items: center;
      gap: 10px;
      width: fit-content;
      max-width: min(560px, 100%);
      margin-top: 8px;
      padding: 10px 13px;
      border: 1px solid #f0c9d1;
      border-radius: 999px;
      background: rgba(255, 246, 248, 0.96);
      color: var(--danger);
      font-size: 12px;
      font-weight: 850;
      line-height: 1.35;
      box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
      animation: statusToastIn 0.22s ease both;
    }

    .result-message.is-ok {
      border-color: rgba(0, 180, 216, 0.22);
      background: linear-gradient(135deg, rgba(240, 251, 255, 0.98), rgba(242, 255, 248, 0.98));
      color: #075985;
      box-shadow: 0 14px 32px rgba(0, 180, 216, 0.13);
    }

    .result-message.is-ok .result-message-icon {
      background: var(--brand-cyan);
      color: #ffffff;
      box-shadow: 0 8px 18px rgba(0, 180, 216, 0.24);
    }

    .result-message.is-error {
      border-color: rgba(180, 35, 47, 0.22);
      background: linear-gradient(135deg, #fff7f7, #fffafa);
      color: #9f1239;
    }

    .result-message.is-leaving {
      opacity: 0;
      transform: translateY(-5px);
      transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .result-message-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 24px;
      height: 24px;
      border-radius: 999px;
      flex: 0 0 auto;
      background: #ffffff;
      color: var(--brand-cyan);
      box-shadow: inset 0 0 0 1px rgba(0, 180, 216, 0.18);
    }

    .result-message.is-error .result-message-icon {
      color: #be123c;
      box-shadow: inset 0 0 0 1px rgba(190, 18, 60, 0.18);
    }

    .result-message-copy {
      display: block;
      min-width: 0;
    }

    .result-message:not(:empty) {
      display: flex;
    }

    @keyframes statusToastIn {
      from {
        opacity: 0;
        transform: translateY(-4px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .payer-rut {
      min-width: 138px;
      text-align: right;
    }

    .payer-rut,
    .selected-total-box {
      padding: 10px 13px;
      border: 1px solid #d9e7ee;
      border-radius: 12px;
      background: rgba(248, 252, 254, 0.88);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    }

    .payer-rut strong,
    .selected-total-box strong {
      display: block;
      margin-top: 3px;
      color: var(--brand-dark);
      font-family: Montserrat, Inter, sans-serif;
      font-size: 18px;
      line-height: 1.1;
      font-weight: 900;
      white-space: nowrap;
    }

    .selected-total-box {
      min-width: 148px;
      text-align: right;
    }

    .selected-total-box strong {
      font-size: 24px;
      color: #007d97;
    }

    .header-actions {
      display: inline-flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
    }

    .payment-summary {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 18px;
      align-items: center;
      padding: 18px 20px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.07);
      color: #ffffff;
    }

    .payment-summary span {
      display: block;
      color: rgba(190, 213, 230, 0.78);
      font-size: 12px;
      font-weight: 800;
    }

    .payment-summary h3 {
      margin: 4px 0 0;
      color: #ffffff;
      font-family: Montserrat, Inter, sans-serif;
      font-size: 24px;
      line-height: 1.15;
      font-weight: 900;
      letter-spacing: 0;
    }

    .payment-summary strong {
      display: block;
      color: #ffffff;
      font-family: Montserrat, Inter, sans-serif;
      font-size: 26px;
      font-weight: 900;
      text-align: right;
      white-space: nowrap;
    }

    .payment-table-wrap {
      min-height: 0;
      overflow: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      align-self: start;
      width: min(calc(100% - 44px), 1400px);
      max-height: calc(100% - 30px);
      margin: 14px auto 16px;
      border: 1px solid #d9e3ec;
      border-radius: 14px;
      background: #ffffff;
      box-shadow: 0 22px 54px rgba(15, 23, 42, 0.12);
    }

    .payment-table {
      width: 100%;
      min-width: 1040px;
      border-collapse: collapse;
      color: #0f1724;
      background: #ffffff;
    }

    .payment-table th,
    .payment-table td {
      padding: 6px 10px;
      border-bottom: 1px solid #e4e9ef;
      text-align: center;
      vertical-align: middle;
      font-size: 12px;
      line-height: 1.22;
    }

    .payment-table th {
      position: sticky;
      top: 0;
      z-index: 1;
      color: #005f91;
      background: #ffffff;
      font-size: 11px;
      font-weight: 900;
      white-space: nowrap;
    }

    .payment-table tbody tr:last-child td {
      border-bottom: 0;
    }

    .payment-table tbody tr:hover td {
      background: #f7fbfd;
    }

    .payment-table .select-cell,
    .payment-table .doc-cell,
    .payment-table .detail-cell {
      text-align: center;
    }

    .payment-table .due-cell {
      text-align: center;
      white-space: nowrap;
      font-variant-numeric: tabular-nums;
    }

    .payment-table .concept-cell {
      text-align: center;
    }

    .voucher-detail-btn {
      appearance: none;
      border: 0;
      background: transparent;
      color: inherit;
      font: inherit;
      cursor: pointer;
    }

    .voucher-detail-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 34px;
      min-height: 28px;
      border-radius: 8px;
      color: #003f67;
      font-weight: 900;
    }

    .voucher-detail-btn:hover,
    .voucher-detail-btn:focus-visible {
      background: #e8f8fc;
      outline: none;
    }

    .detail-open-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      min-height: 28px;
      padding: 0 11px;
      border: 1px solid rgba(0, 180, 216, 0.22);
      border-radius: 9px;
      background: #eef9fc;
      color: #007d97;
      font-family: Inter, Arial, sans-serif;
      font-size: 11px;
      font-weight: 900;
      cursor: pointer;
      white-space: nowrap;
    }

    .detail-open-btn:hover,
    .detail-open-btn:focus-visible {
      background: #dff5fb;
      border-color: rgba(0, 180, 216, 0.42);
      outline: none;
    }

    .table-check {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 30px;
      height: 28px;
      border-radius: 8px;
      background: #e8f8fc;
      cursor: pointer;
    }

    .select-all-check {
      width: 28px;
      height: 28px;
      border: 1px solid #cde2ec;
      background: #f7fbfd;
    }

    .table-check input {
      width: 15px;
      height: 15px;
      accent-color: var(--brand-cyan);
      cursor: pointer;
    }

    .table-check:has(input:disabled) {
      cursor: not-allowed;
      opacity: 0.42;
    }

    .table-check input:disabled {
      cursor: not-allowed;
    }

    .doc-code {
      display: block;
      color: #111827;
      font-size: 13px;
      font-weight: 900;
      white-space: nowrap;
    }

    .table-main {
      display: block;
      color: #111827;
      font-weight: 850;
    }

    .payment-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      min-height: 42px;
      padding: 8px clamp(22px, 4vw, 64px);
      border-top: 1px solid #d8e6ee;
      background: #ffffff;
      color: #53677c;
      font-size: 11px;
      font-weight: 760;
    }

    .payment-footer-brand {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }

    .payment-footer-brand img {
      width: 96px;
      height: auto;
      display: block;
    }

    .payment-footer-brand span {
      white-space: nowrap;
    }

    .payment-footer-links {
      display: inline-flex;
      align-items: center;
      justify-content: flex-end;
      gap: 14px;
      white-space: nowrap;
    }

    .payment-footer a {
      color: #007d97;
      text-decoration: none;
      font-weight: 900;
    }

    .payment-footer a:hover,
    .payment-footer a:focus-visible {
      color: #00a9c8;
      outline: none;
    }

    .table-muted {
      display: block;
      margin-top: 3px;
      color: #64748b;
      font-size: 12px;
      font-weight: 650;
    }

    .money-cell {
      text-align: right;
      white-space: nowrap;
      font-weight: 900;
    }

    .status-cell {
      text-align: center;
      white-space: nowrap;
    }

    .status-cell .status-pill {
      margin-inline: auto;
    }

    .interest-cell {
      color: #64748b;
      text-align: right;
      white-space: nowrap;
      font-weight: 800;
    }

    .debt-list {
      display: grid;
      gap: 10px;
    }

    .debt-item {
      display: grid;
      grid-template-columns: 34px minmax(0, 1fr) 118px 118px;
      gap: 12px;
      align-items: center;
      padding: 14px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.06);
    }

    .debt-check {
      width: 34px;
      height: 34px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 10px;
      background: rgba(0, 180, 216, 0.10);
      cursor: pointer;
    }

    .debt-check input {
      width: 17px;
      height: 17px;
      accent-color: var(--brand-cyan);
      cursor: pointer;
    }

    .debt-check:has(input:disabled) {
      cursor: not-allowed;
      opacity: 0.42;
    }

    .debt-check input:disabled {
      cursor: not-allowed;
    }

    .debt-code {
      display: block;
      color: #ffffff;
      font-size: 14px;
      font-weight: 900;
      line-height: 1.35;
    }

    .debt-concept {
      display: block;
      margin-top: 4px;
      color: rgba(190, 213, 230, 0.78);
      font-size: 12px;
      font-weight: 650;
      line-height: 1.45;
    }

    .debt-period,
    .debt-tenant {
      display: block;
      margin-top: 4px;
      color: rgba(255, 255, 255, 0.86);
      font-size: 12px;
      font-weight: 850;
      line-height: 1.45;
    }

    .debt-tenant {
      color: rgba(190, 213, 230, 0.78);
      font-weight: 700;
    }

    .debt-meta span {
      display: block;
      color: rgba(190, 213, 230, 0.78);
      font-size: 11px;
      font-weight: 800;
      margin-bottom: 4px;
    }

    .debt-meta strong {
      display: block;
      color: #ffffff;
      font-size: 13px;
      font-weight: 900;
      line-height: 1.35;
    }

    .status-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      width: fit-content;
      min-height: 18px;
      margin: 0;
      padding: 0;
      border-radius: 0;
      font-size: 10px;
      font-weight: 850;
      background: transparent;
      color: #64748b;
    }

    .status-pill::before {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: var(--brand-cyan);
    }

    .status-pill.overdue {
      color: #7f1d1d;
    }

    .status-pill.overdue::before {
      background: #ef4444;
    }

    .status-pill.soon {
      color: var(--warning);
    }

    .status-pill.soon::before {
      background: #f59e0b;
    }

    .voucher-modal {
      position: fixed;
      inset: 0;
      z-index: 50;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 26px;
      background: rgba(5, 14, 24, 0.72);
      backdrop-filter: blur(8px);
    }

    .voucher-modal.is-open {
      display: flex;
    }

    .voucher-modal-panel {
      width: min(900px, 100%);
      max-height: min(760px, calc(100vh - 52px));
      overflow: hidden;
      border-radius: 14px;
      background: #ffffff;
      box-shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
      display: grid;
      grid-template-rows: auto 1fr;
    }

    .voucher-modal-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 16px;
      align-items: start;
      padding: 22px 24px 18px;
      border-bottom: 1px solid #e4e9ef;
    }

    .voucher-modal-head span {
      display: block;
      color: #007d97;
      font-size: 11px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .voucher-modal-head h3 {
      margin: 4px 0 0;
      color: var(--brand-dark);
      font-family: Montserrat, Inter, sans-serif;
      font-size: 24px;
      line-height: 1.2;
      font-weight: 900;
    }

    .voucher-modal-close {
      width: 38px;
      height: 38px;
      border: 0;
      border-radius: 10px;
      background: #eef3f7;
      color: var(--brand-dark);
      cursor: pointer;
      font-size: 16px;
    }

    .voucher-modal-body {
      overflow: auto;
      padding: 20px 24px 24px;
    }

    .voucher-detail-table {
      width: 100%;
      border-collapse: collapse;
      color: #0f1724;
      font-size: 12px;
    }

    .voucher-detail-table th,
    .voucher-detail-table td {
      padding: 10px 12px;
      border-bottom: 1px solid #e4e9ef;
      text-align: left;
      vertical-align: top;
    }

    .voucher-detail-table th {
      color: #006bb6;
      background: #f8fbfd;
      font-size: 11px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .voucher-detail-table .detail-money {
      text-align: right;
      white-space: nowrap;
      font-weight: 900;
    }

    .voucher-detail-table .detail-money small {
      display: block;
      margin-top: 3px;
      color: #60738a;
      font-size: 9px;
      font-weight: 700;
    }

    .voucher-detail-total {
      display: flex;
      justify-content: flex-end;
      align-items: baseline;
      gap: 18px;
      padding: 14px 12px 0;
      color: var(--brand-dark);
    }

    .voucher-detail-total span {
      color: #60738a;
      font-size: 11px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .voucher-detail-total strong {
      min-width: 140px;
      text-align: right;
      font-family: Montserrat, Inter, sans-serif;
      font-size: 18px;
      font-weight: 900;
      color: #007d97;
    }

    .voucher-payment-formula {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr)) auto minmax(150px, 1fr);
      gap: 10px;
      align-items: stretch;
      margin-top: 18px;
      padding: 14px;
      border: 1px solid #bfe7ef;
      border-radius: 16px;
      background: linear-gradient(135deg, #f7fcfd 0%, #eaf9fc 100%);
    }

    .voucher-formula-part,
    .voucher-formula-total {
      display: flex;
      min-width: 0;
      flex-direction: column;
      justify-content: center;
      gap: 4px;
      padding: 10px 12px;
      border-radius: 12px;
      background: #fff;
    }

    .voucher-formula-part span,
    .voucher-formula-total span {
      color: #60738a;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .04em;
      text-transform: uppercase;
    }

    .voucher-formula-part strong,
    .voucher-formula-total strong {
      color: var(--brand-dark);
      font-family: Montserrat, Inter, sans-serif;
      font-size: 15px;
      font-weight: 900;
    }

    .voucher-formula-part small {
      color: #52677d;
      font-size: 10px;
      line-height: 1.35;
    }

    .voucher-formula-equals {
      display: grid;
      place-items: center;
      color: #009fbd;
      font-size: 20px;
      font-weight: 900;
    }

    .voucher-formula-total {
      background: var(--brand-dark);
    }

    .voucher-formula-total span,
    .voucher-formula-total strong {
      color: #fff;
    }

    @media (max-width: 680px) {
      .voucher-payment-formula {
        grid-template-columns: 1fr 1fr;
      }
      .voucher-formula-equals { display: none; }
      .voucher-formula-total { grid-column: 1 / -1; }
    }

    .payment-method-modal {
      position: fixed;
      inset: 0;
      z-index: 60;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
      background: rgba(5, 14, 24, 0.68);
      backdrop-filter: blur(9px);
    }

    .payment-method-modal.is-open {
      display: flex;
    }

    .payment-method-panel {
      width: min(860px, 100%);
      max-height: min(780px, calc(100vh - 48px));
      overflow: auto;
      border-radius: 16px;
      background: #ffffff;
      box-shadow: 0 34px 100px rgba(0, 0, 0, 0.34);
    }

    .payment-method-head {
      display: grid;
      grid-template-columns: minmax(260px, 1fr) auto 38px;
      gap: 12px;
      align-items: center;
      padding: 24px 26px 18px;
      border-bottom: 1px solid #e5edf4;
    }

    .payment-method-title span {
      display: block;
      color: #007d97;
      font-size: 11px;
      font-weight: 950;
      letter-spacing: 0;
      text-transform: uppercase;
    }

    .payment-method-title h3 {
      margin: 5px 0 0;
      color: var(--brand-dark);
      font-family: Montserrat, Inter, sans-serif;
      font-size: 24px;
      line-height: 1.18;
      font-weight: 950;
    }

    .payment-method-close {
      align-self: center;
      width: 38px;
      height: 38px;
      border: 0;
      border-radius: 10px;
      background: #eef5f9;
      color: var(--brand-dark);
      cursor: pointer;
      font-size: 16px;
    }

    .payment-method-close:hover,
    .payment-method-close:focus-visible {
      background: #fff1f2;
      color: #be123c;
      outline: none;
    }

    .payment-head-tools {
      display: flex;
      flex-wrap: nowrap;
      gap: 8px;
      justify-content: flex-end;
      align-items: center;
      align-self: center;
      max-width: none;
      min-width: max-content;
      padding-top: 0;
    }

    .payment-tool-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      height: 38px;
      padding: 0 12px;
      border-radius: 8px;
      background: #ffffff;
      color: var(--brand-dark);
      border: 1px solid #d7e4ee;
      font-size: 12px;
      font-weight: 950;
      white-space: nowrap;
      cursor: pointer;
      text-decoration: none;
      transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
    }

    .payment-tool-button i {
      color: #007d97;
      font-size: 13px;
    }

    .payment-tool-button:hover,
    .payment-tool-button:focus-visible {
      border-color: rgba(0, 180, 216, 0.58);
      background: #f3fbfd;
      transform: translateY(-1px);
      outline: none;
    }

    .payment-tool-button svg,
    .payment-limit-box svg {
      display: block;
      width: 16px;
      height: 16px;
      flex: 0 0 auto;
      stroke: currentColor;
      stroke-width: 2.2;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .payment-tool-button .payment-tool-external {
      width: 12px;
      height: 12px;
      margin-left: 1px;
      opacity: 0.58;
      stroke-width: 2;
    }

    .payment-method-body {
      padding: 22px 26px 26px;
    }

    .payment-method-summary {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin-bottom: 18px;
    }

    .payment-method-summary div {
      min-height: 70px;
      padding: 13px 14px;
      border: 1px solid #d7e4ee;
      border-radius: 10px;
      background: #f7fbfd;
    }

    .payment-method-summary span {
      display: block;
      color: #60738a;
      font-size: 11px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .payment-method-summary strong {
      display: block;
      margin-top: 5px;
      color: var(--brand-dark);
      font-family: Montserrat, Inter, sans-serif;
      font-size: 20px;
      line-height: 1.2;
      font-weight: 950;
    }

    .payment-method-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
    }

    .payment-method-alert {
      margin: 0 0 14px;
      padding: 12px 14px;
      border: 1px solid #cbeaf2;
      border-radius: 10px;
      background: #f5fbfd;
      color: #365168;
      font-size: 12px;
      font-weight: 850;
      line-height: 1.45;
    }

    .payment-method-alert[hidden] {
      display: none;
    }

    .payment-method-alert a {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-left: 8px;
      color: var(--brand-cyan-dark);
      font-weight: 950;
      text-decoration: none;
    }

    .payment-method-alert a:hover {
      text-decoration: underline;
    }

    .payment-method-option {
      display: grid;
      grid-template-columns: 136px minmax(0, 1fr) auto;
      gap: 16px;
      align-items: center;
      width: 100%;
      min-height: 96px;
      padding: 14px;
      border: 1px solid #cbeaf2;
      border-radius: 12px;
      background: linear-gradient(135deg, #ffffff, #f6fcfe);
      color: var(--brand-dark);
      text-align: left;
      cursor: pointer;
    }

    .payment-method-option:hover {
      border-color: var(--brand-cyan);
      box-shadow: 0 12px 28px rgba(0, 169, 201, 0.12);
    }

    .payment-method-option[disabled] {
      cursor: not-allowed;
      opacity: 0.58;
      box-shadow: none;
    }

    .payment-method-logo {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 72px;
      border-radius: 10px;
      background: #ffffff;
      border: 1px solid #edf2f6;
    }

    .payment-method-logo img {
      display: block;
      max-width: 112px;
      max-height: 58px;
      object-fit: contain;
    }

    .payment-method-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 42px;
      height: 42px;
      border-radius: 10px;
      background: #e9f8fc;
      color: #007d97;
      font-size: 17px;
    }

    .payment-method-copy strong {
      display: block;
      color: var(--brand-dark);
      font-size: 14px;
      font-weight: 950;
    }

    .payment-method-copy span {
      display: block;
      margin-top: 4px;
      color: #60738a;
      font-size: 12px;
      font-weight: 750;
      line-height: 1.45;
    }

    .payment-method-action {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background: var(--brand-cyan);
      color: #ffffff;
    }

    .payment-limit-box {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      height: 38px;
      padding: 0 12px;
      border: 1px solid #f4d58a;
      border-radius: 8px;
      background: #fffaf0;
      color: #b45309;
      font-size: 12px;
      font-weight: 950;
      font-family: inherit;
      line-height: 1;
      white-space: nowrap;
      text-transform: uppercase;
      width: auto;
      flex: 0 0 auto;
      cursor: pointer;
    }

    .payment-limit-box:disabled {
      cursor: not-allowed;
      opacity: 0.68;
    }

    .payment-limits-table-wrap {
      width: 100%;
      max-height: 280px;
      overflow: auto;
      border: 1px solid #d7e4ee;
      border-radius: 12px;
      background: #ffffff;
    }

    .payment-limits-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 11px;
      color: #0f1724;
    }

    .payment-limits-table th,
    .payment-limits-table td {
      padding: 9px 10px;
      border-bottom: 1px solid #e8eef3;
      text-align: left;
      vertical-align: top;
    }

    .payment-limits-table th {
      position: sticky;
      top: 0;
      z-index: 1;
      background: #f8fbfd;
      color: #006b8a;
      font-weight: 950;
      text-transform: uppercase;
    }

    .payment-limits-list {
      display: grid;
      gap: 10px;
    }

    .payment-limit-group {
      border: 1px solid #d7e4ee;
      border-radius: 12px;
      background: #ffffff;
      overflow: hidden;
    }

    .payment-limit-group[open] {
      border-color: rgba(0, 180, 216, 0.42);
      box-shadow: 0 10px 24px rgba(0, 110, 135, 0.08);
    }

    .payment-limit-summary {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      padding: 13px 14px;
      cursor: pointer;
      list-style: none;
      color: var(--brand-dark);
      text-align: left;
    }

    .payment-limit-summary::-webkit-details-marker {
      display: none;
    }

    .payment-limit-bank {
      display: grid;
      gap: 2px;
      min-width: 0;
      text-align: left;
    }

    .payment-limit-bank strong {
      overflow-wrap: anywhere;
      font-size: 13px;
      font-weight: 950;
    }

    .payment-limit-bank span {
      color: #6b7e92;
      font-size: 11px;
      font-weight: 850;
    }

    .payment-limit-arrow {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 30px;
      height: 30px;
      border-radius: 10px;
      background: #eff8fb;
      color: #007c97;
      transition: transform 0.18s ease;
    }

    .payment-limit-group[open] .payment-limit-arrow {
      transform: rotate(180deg);
    }

    .payment-limit-items {
      display: grid;
      gap: 0;
      padding: 0 14px 14px;
    }

    .payment-limit-item {
      display: grid;
      grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
      gap: 12px;
      align-items: center;
      padding: 12px 0;
      border-top: 1px solid #e8eef3;
      text-align: left;
    }

    .payment-limit-method {
      min-width: 0;
      color: #1d2b38;
      font-size: 12px;
      font-weight: 900;
      line-height: 1.35;
      overflow-wrap: anywhere;
    }

    .payment-limit-amounts {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }

    .payment-limit-amount {
      min-width: 0;
      padding: 8px 9px;
      border-radius: 10px;
      background: #f4f8fb;
      overflow-wrap: anywhere;
      text-align: left;
    }

    .payment-limit-amount span {
      display: block;
      margin-bottom: 3px;
      color: #71859a;
      font-size: 9px;
      font-weight: 950;
      text-transform: uppercase;
    }

    .payment-limit-amount strong {
      display: block;
      color: var(--brand-dark);
      font-size: 12px;
      font-weight: 950;
      line-height: 1.2;
    }

    .limits-modal {
      position: fixed;
      inset: 0;
      z-index: 80;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
      background: rgba(5, 14, 24, 0.54);
      backdrop-filter: blur(6px);
    }

    .limits-modal.is-open {
      display: flex;
    }

    .limits-panel {
      width: min(820px, 100%);
      max-height: min(720px, calc(100vh - 48px));
      overflow: hidden;
      border-radius: 16px;
      background: #ffffff;
      box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
      display: grid;
      grid-template-rows: auto 1fr auto;
    }

    .limits-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 16px;
      align-items: center;
      padding: 22px 24px 16px;
      border-bottom: 1px solid #e5edf4;
    }

    .limits-head span {
      display: block;
      color: #007d97;
      font-size: 11px;
      font-weight: 950;
      text-transform: uppercase;
    }

    .limits-head h3 {
      margin: 4px 0 0;
      color: var(--brand-dark);
      font-family: Montserrat, Inter, sans-serif;
      font-size: 22px;
      line-height: 1.2;
      font-weight: 950;
    }

    .limits-close {
      width: 38px;
      height: 38px;
      border: 0;
      border-radius: 10px;
      background: #eef5f9;
      color: var(--brand-dark);
      cursor: pointer;
      font-size: 16px;
    }

    .limits-body {
      overflow: auto;
      padding: 18px 24px 24px;
    }

    .limits-copy {
      margin: 0 0 14px;
      color: #60738a;
      font-size: 13px;
      line-height: 1.45;
      font-weight: 700;
    }

    .limits-actions {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 16px;
      align-items: center;
      padding: 16px 24px;
      border-top: 1px solid #e5edf4;
      background: #f8fbfd;
    }

    .limits-action-note {
      margin: 0;
      color: #60738a;
      font-size: 12px;
      line-height: 1.35;
      font-weight: 750;
    }

    .limits-unlock-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 42px;
      padding: 0 16px;
      border: 1px solid #f0c776;
      border-radius: 10px;
      background: #fffaf0;
      color: #a55300;
      font-family: inherit;
      font-size: 12px;
      font-weight: 950;
      text-transform: uppercase;
      white-space: nowrap;
      cursor: pointer;
    }

    .limits-unlock-button:disabled {
      cursor: not-allowed;
      opacity: 0.68;
    }

    .limits-unlock-button svg {
      display: block;
      width: 16px;
      height: 16px;
      flex: 0 0 auto;
      stroke: currentColor;
      stroke-width: 2.2;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .limits-inline-message {
      grid-column: 1 / -1;
      margin-top: -4px;
      padding: 10px 12px;
      border-radius: 10px;
      background: #fff7ed;
      color: #9a3412;
      font-size: 12px;
      font-weight: 850;
    }

    .pay-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      justify-content: space-between;
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid rgba(255, 255, 255, 0.12);
      color: rgba(190, 213, 230, 0.78);
      font-size: 12px;
      font-weight: 700;
      line-height: 1.5;
    }

    .action-buttons {
      display: inline-flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      justify-content: flex-end;
    }

    .pay-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 40px;
      padding: 0 13px;
      border: 0;
      border-radius: 8px;
      background: linear-gradient(135deg, var(--brand-cyan), #0793ad);
      color: #fff;
      text-decoration: none;
      font-family: Inter, Arial, sans-serif;
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
      cursor: pointer;
    }

    .pay-link:disabled {
      cursor: wait;
      opacity: 0.76;
    }

    .pay-link.secondary {
      background: #5f636f;
    }

    .state-reset {
      margin-top: 16px;
    }

    .mobile-safe-pill,
    .mobile-back-link,
    .mobile-step-progress,
    .mobile-results-step,
    .mobile-pay-bar {
      display: none;
    }

    .mobile-intro-head {
      display: contents;
    }

    @media (max-width: 980px) {
      body { background-attachment: scroll; }
      .main-grid {
        grid-template-columns: 1fr;
        align-self: start;
        min-height: auto;
      }
      .intro { max-width: none; min-height: 100vh; }
      .intro h1 { font-size: 36px; }
      .consult-panel { min-height: 100vh; }
      .result-area { min-height: 300px; }
      .checkout-header {
        grid-template-columns: 1fr;
        align-items: start;
      }
      .checkout-logo {
        width: 176px;
        min-width: 176px;
      }
      .payer-rut,
      .selected-total-box {
        min-width: 0;
        text-align: left;
      }
      .header-actions {
        justify-content: flex-start;
      }
      .payment-property-line span {
        white-space: normal;
      }
      .payment-footer {
        align-items: flex-start;
        flex-direction: column;
      }
      .payment-footer-brand {
        align-items: flex-start;
      }
      .payment-footer-brand span {
        white-space: normal;
      }
      .payment-footer-links {
        justify-content: flex-start;
        flex-wrap: wrap;
        white-space: normal;
      }
    }

    @media (max-width: 680px) {
      .floating-toast {
        top: auto;
        right: 16px;
        bottom: 16px;
        left: 16px;
        max-width: none;
      }

      .page-shell {
        width: 100%;
        padding-top: 0;
      }
      .topbar { top: 16px; right: 16px; align-items: flex-start; }
      .brand { min-height: 46px; max-width: 176px; }
      .brand img { width: 176px; height: auto; }
      .brand strong { font-size: 12px; }
      .brand small { font-size: 9px; }
      .top-link { width: 40px; min-height: 38px; font-size: 12px; padding: 0; flex-shrink: 0; }
      .top-link span { display: none; }
      .consult-panel { padding: 74px 16px 32px; }
      .panel-head { padding: 24px 18px 14px; }
      .debt-form { padding: 0 18px 22px; }
      .intro h1 { font-size: 30px; }
      .intro p { font-size: 14px; }
      .input-row { grid-template-columns: 1fr; }
      .btn { width: 100%; }
      .result-area { padding-left: 0; padding-right: 0; }
      .summary { grid-template-columns: 1fr; }
      .indicator-grid { grid-template-columns: 1fr; }
      .ipc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .payment-summary { grid-template-columns: 1fr; }
      .payment-summary strong { text-align: left; }
      .debt-item { grid-template-columns: 34px 1fr; align-items: start; }
      .debt-meta { grid-column: 2; }
      .summary-total { text-align: left; font-size: 24px; }
      .voucher-modal { padding: 14px; }
      .voucher-modal-panel { max-height: calc(100vh - 28px); }
      .voucher-modal-head { padding: 18px; }
      .voucher-modal-body { padding: 16px 18px 18px; }
      .payment-method-panel { max-height: calc(100vh - 28px); }
      .payment-method-head { grid-template-columns: minmax(0, 1fr) auto; padding: 18px; }
      .payment-head-tools { grid-column: 1 / -1; justify-content: flex-start; max-width: none; min-width: 0; padding-top: 0; flex-wrap: wrap; }
      .payment-method-body { padding: 16px 18px 18px; }
      .payment-method-summary { grid-template-columns: 1fr; }
      .payment-method-option { grid-template-columns: 104px minmax(0, 1fr) auto; }
      .payment-method-logo img { max-width: 88px; }
      .payment-limits-table-wrap { max-height: 420px; }
      .payment-limits-table { min-width: 620px; }
      .payment-limit-item { grid-template-columns: 1fr; gap: 8px; }
      .payment-limit-amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .limits-modal { padding: 14px; }
      .limits-head { padding: 18px; }
      .limits-body { padding: 16px 18px 18px; }
      .limits-actions { grid-template-columns: 1fr; padding: 14px 18px 18px; }
      .limits-unlock-button { width: 100%; }
    }

    @media (max-width: 760px) {
      html,
      body {
        background: #f0f7fa;
      }

      body:not(.has-results) {
        min-height: 100svh;
        overflow: auto;
      }

      .page-shell {
        display: block;
        min-height: 100svh;
        background: linear-gradient(180deg, #ffffff 0%, #f7fcfe 58%, #eaf5f8 100%);
      }

      .topbar {
        display: none;
      }

      .main-grid {
        display: block;
        min-height: 0;
        background: transparent;
      }

      .intro {
        min-height: 0;
        padding: 24px 26px 6px;
        background: transparent;
        overflow: visible;
        display: block;
      }

      .intro::before {
        display: none;
      }

      .mobile-intro-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        min-height: 48px;
      }

      .intro .brand {
        min-height: 48px;
        max-width: 190px;
        margin: 0;
        flex: 0 1 auto;
      }

      .intro .brand img {
        width: 166px;
      }

      .mobile-back-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        border: 1px solid #d7e5ee;
        border-radius: 12px;
        background: #f8fbfd;
        color: var(--brand-dark);
        text-decoration: none;
        box-shadow: none;
      }

      .mobile-safe-pill {
        display: none;
      }

      .mobile-step-progress {
        display: grid;
        gap: 7px;
        margin-top: 18px;
      }

      .mobile-step-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        color: #0f1c2e;
        font-size: 11px;
        font-weight: 900;
      }

      .mobile-step-head span {
        color: #8a9aaa;
        font-weight: 700;
      }

      .mobile-progress-bars {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
      }

      .mobile-progress-bars span {
        height: 4px;
        border-radius: 999px;
        background: #dce9f1;
      }

      .mobile-progress-bars span.is-active {
        background: var(--brand-cyan);
      }

      .intro-kicker {
        margin-top: 26px;
        margin-bottom: 9px;
        font-size: 11px;
        letter-spacing: 0.12em;
      }

      .intro h1 {
        max-width: 300px;
        font-size: 30px;
        line-height: 1.02;
      }

      .consult-panel {
        min-height: 0;
        padding: 14px 26px 24px;
        background: transparent;
        display: block;
        overflow: visible;
      }

      .consult-panel::after {
        display: none;
      }

      .search-block {
        position: relative;
        width: 100%;
        margin: 0;
        border-radius: 18px;
        border: 1px solid #d9e7ef;
        background: #ffffff;
        box-shadow: 0 16px 38px rgba(20, 53, 72, 0.10);
        overflow: hidden;
      }

      .search-block::before {
        display: none;
      }

      .search-block::after {
        display: none;
      }

      .search-block > * {
        position: relative;
        z-index: 1;
      }

      .panel-head {
        padding: 18px 18px 8px;
        grid-template-columns: 1fr;
        gap: 8px;
      }

      .panel-head h2 {
        font-size: 22px;
        line-height: 1.06;
      }

      .panel-head p {
        margin-top: 8px;
        font-size: 12px;
        line-height: 1.35;
        font-weight: 800;
      }

      .panel-badge {
        display: none;
      }

      .pre-rut-guide {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 11px;
        margin: 0 18px 14px;
        padding: 13px;
      }

      .pre-rut-guide-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
      }

      .pre-rut-guide-copy strong {
        font-size: 12px;
      }

      .pre-rut-guide-action {
        grid-column: 2;
        justify-self: start;
        min-height: 31px;
        margin-top: -2px;
      }

      .debt-form {
        padding: 0 18px 18px;
      }

      .field label {
        font-size: 12px;
      }

      .input-row {
        grid-template-columns: 1fr;
        gap: 14px;
      }

      input[type="text"] {
        min-height: 56px;
        border-radius: 14px;
        padding-left: 48px;
        font-size: 17px;
        font-weight: 900;
      }

      .input-wrap i {
        left: 18px;
        width: 18px;
        height: 15px;
        border: 2px solid #7f93a8;
        border-radius: 3px;
        color: transparent;
        font-size: 0;
      }

      .input-wrap i::before {
        display: none;
      }

      .input-wrap i::after {
        content: "";
        position: absolute;
        left: 4px;
        top: 4px;
        width: 8px;
        height: 2px;
        border-radius: 99px;
        background: #7f93a8;
        box-shadow: 0 5px 0 #7f93a8;
      }

      .btn {
        min-height: 52px;
        width: 100%;
        border-radius: 14px;
        font-size: 14px;
      }

      .result-area {
        width: 100%;
        min-height: 0;
        padding: 16px 0 0;
      }

      .indicator-strip {
        position: relative;
        min-height: 0;
        border: 1px solid #d9e7ef;
        border-radius: 18px;
        padding: 16px;
        background: #f5f9fb;
        color: var(--ink);
        overflow: hidden;
      }

      .indicator-strip::before {
        display: none;
      }

      .indicator-strip::after {
        display: none;
      }

      .indicator-strip > * {
        position: relative;
        z-index: 1;
      }

      .indicator-heading {
        color: #6b7c8f;
        font-size: 10px;
        letter-spacing: 0.08em;
      }

      .indicator-heading span:last-child {
        color: #8a9aaa;
        font-size: 10px;
        text-transform: uppercase;
      }

      .indicator-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
      }

      .indicator-card {
        border: 1px solid #d9e7ef;
        border-radius: 12px;
        background: #ffffff;
        padding: 10px;
      }

      .indicator-card.ipc {
        grid-column: 1 / -1;
      }

      .indicator-card span {
        color: #74869a;
        font-size: 10px;
      }

      .indicator-card strong {
        color: var(--brand-dark);
        font-size: 20px;
      }

      .ipc-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .ipc-chip {
        min-height: 44px;
        border: 1px solid #e1ebf2;
        border-radius: 10px;
        background: #ffffff;
        color: var(--brand-dark);
      }

      .ipc-chip span {
        color: #8a9aaa;
      }

      body.has-results {
        background: #f0f7fa;
        overflow: hidden;
      }

      body.has-results .consult-panel::after {
        display: none;
      }

      .payment-results {
        height: 100dvh;
        min-height: 0;
        grid-template-rows: auto 1fr auto;
        background: #f0f7fa;
      }

      .checkout-header {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
        align-items: center;
        min-height: 0;
        padding: 14px 16px 10px;
        border-bottom: 1px solid #dbe7ef;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: none;
      }

      .checkout-header::before {
        display: none;
      }

      .checkout-logo {
        grid-column: 2;
        grid-row: 2;
        width: 154px;
        min-width: 0;
        min-height: 42px;
        justify-content: flex-start;
        overflow: visible;
      }

      .checkout-logo img {
        width: 154px;
        max-width: 100%;
      }

      .mobile-results-step {
        display: grid;
        grid-column: 1 / -1;
        gap: 7px;
        order: -1;
      }

      .mobile-results-step .mobile-progress-bars span:nth-child(-n + 2) {
        background: var(--brand-cyan);
      }

      .mobile-results-step.is-payment-step .mobile-progress-bars span {
        background: var(--brand-cyan);
      }

      .payer-heading {
        grid-column: 1 / -1;
        grid-row: 3;
        min-width: 0;
      }

      .payer-heading span {
        font-size: 10px;
        letter-spacing: 0.12em;
      }

      .payer-heading h2 {
        margin-top: 4px;
        font-size: 20px;
        line-height: 1.08;
      }

      .payer-heading small {
        font-size: 11px;
      }

      .payment-property-line {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #e5eef4;
        font-size: 12px;
      }

      .payer-rut {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-width: 0;
        padding: 10px 0;
        border: 0;
        border-top: 1px solid #e5eef4;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        text-align: left;
      }

      .payer-rut strong {
        font-size: 15px;
      }

      .selected-total-box {
        display: none;
      }

      .header-actions {
        grid-column: 1;
        grid-row: 2;
        display: block;
      }

      .header-actions #resetButton {
        width: 42px;
        min-height: 42px;
        padding: 0;
        border-radius: 12px;
        font-size: 0;
        background: #f8fbfd;
        color: var(--brand-dark);
        border: 1px solid #d7e5ee;
      }

      .header-actions #resetButton i {
        font-size: 15px;
      }

      .header-actions #payButton {
        display: none;
      }

      .result-message {
        grid-column: 1 / -1;
        width: 100%;
        max-width: none;
        margin-top: 2px;
        padding: 11px 12px;
        border-radius: 14px;
        justify-self: stretch;
      }

      .result-message.is-ok {
        border-color: #c7edf6;
        background: #f4fbfe;
        color: #0b465e;
        box-shadow: none;
      }

      .result-message-icon {
        width: 26px;
        height: 26px;
      }

      .result-message-copy {
        font-size: 12px;
        font-weight: 900;
      }

      .payment-table-wrap {
        width: 100%;
        height: 100%;
        max-height: none;
        margin: 0;
        padding: 12px 16px 18px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
      }

      .payment-table {
        display: block;
        width: 100%;
        min-width: 0;
        background: transparent;
      }

      .payment-table colgroup,
      .payment-table thead {
        display: none;
      }

      .payment-table tbody {
        display: grid;
        gap: 10px;
      }

      .payment-table tr {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 8px 10px;
        align-items: start;
        padding: 14px;
        border: 1px solid #cbeaf2;
        border-radius: 16px;
        background: #f8fdff;
        box-shadow: 0 10px 26px rgba(17, 45, 62, 0.06);
      }

      .payment-table th,
      .payment-table td {
        display: block;
        padding: 0;
        border: 0;
        text-align: left;
      }

      .payment-table .select-cell {
        grid-column: 1;
        grid-row: 1 / span 4;
        align-self: start;
      }

      .payment-table .doc-cell {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        padding-right: 76px;
      }

      .payment-table .detail-cell {
        grid-column: 2;
        grid-row: 4;
        justify-self: end;
        align-self: end;
      }

      .payment-table .concept-cell {
        grid-column: 2;
        grid-row: 2;
        text-align: left;
      }

      .payment-table td:nth-child(5) {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        align-self: start;
      }

      .payment-table .due-cell {
        grid-column: 2;
        grid-row: 3;
        justify-self: start;
        text-align: left;
        white-space: normal;
      }

      .payment-table .status-cell {
        grid-column: 2;
        grid-row: 3;
        justify-self: end;
        align-self: start;
        text-align: right;
      }

      .payment-table td:nth-child(8),
      .payment-table td:nth-child(9) {
        display: none;
      }

      .payment-table td:nth-child(10) {
        grid-column: 2;
        grid-row: 4;
        justify-self: start;
        align-self: end;
        padding-top: 4px;
        color: var(--brand-dark);
        font-size: 19px;
        font-weight: 950;
      }

      .table-check {
        width: 32px;
        height: 32px;
        border-radius: 10px;
      }

      .table-check input {
        width: 17px;
        height: 17px;
      }

      .doc-code {
        font-size: 15px;
        justify-content: flex-start;
        min-height: auto;
        padding: 0;
      }

      .payment-table td:nth-child(5) .table-main {
        color: #8a9aaa;
        font-size: 12px;
        font-weight: 900;
        text-align: right;
      }

      .payment-table .concept-cell .table-main {
        color: #40576b;
        font-size: 13px;
        font-weight: 850;
        line-height: 1.35;
        text-align: left;
      }

      .due-cell .table-main {
        color: #60738a;
        font-size: 12px;
        font-weight: 850;
        text-align: left;
      }

      .status-pill {
        font-size: 11px;
        justify-content: flex-end;
        text-align: right;
      }

      .detail-open-btn {
        min-height: 34px;
        padding: 0 12px;
        border-radius: 11px;
        background: #ffffff;
      }

      .payment-footer {
        display: none;
      }

      .mobile-pay-bar {
        position: sticky;
        bottom: 0;
        z-index: 3;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 124px;
        gap: 10px;
        align-items: center;
        padding: 12px 16px 16px;
        border-top: 1px solid #dbe7ef;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(14px);
      }

      .mobile-bottom-total span {
        display: block;
        color: #64748b;
        font-size: 10px;
        font-weight: 950;
        text-transform: uppercase;
      }

      .mobile-bottom-total strong {
        display: block;
        margin-top: 3px;
        color: #007c97;
        font-family: Montserrat, Inter, sans-serif;
        font-size: 24px;
        line-height: 1;
        font-weight: 950;
      }

      .mobile-pay-bar .pay-link {
        min-height: 52px;
        border-radius: 15px;
        font-size: 14px;
      }

      .payment-method-modal {
        align-items: flex-end;
        padding: 0;
        background: rgba(5, 14, 24, 0.58);
      }

      .payment-method-panel {
        width: 100%;
        max-height: 92dvh;
        border-radius: 26px 26px 0 0;
        box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.28);
      }

      .payment-method-head {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 10px;
        padding: 16px 18px 14px;
      }

      .payment-method-title span {
        font-size: 10px;
      }

      .payment-method-title h3 {
        font-size: 24px;
        line-height: 1.04;
      }

      .payment-method-close {
        grid-column: 2;
        grid-row: 2;
        width: 40px;
        height: 40px;
        border: 1px solid #ffd5dc;
        border-radius: 14px;
        background: #fff1f2;
        color: #be123c;
        font-size: 15px;
        box-shadow: 0 8px 18px rgba(190, 18, 60, 0.08);
      }

      .payment-head-tools {
        grid-column: 1 / -1;
        grid-row: 3;
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
        min-width: 0;
      }

      .payment-limit-box,
      .payment-tool-button {
        width: 100%;
        min-height: 44px;
        border-radius: 14px;
      }

      .payment-method-body {
        padding: 16px 18px 22px;
      }

      .payment-method-summary {
        gap: 8px;
        grid-template-columns: 1fr 1fr;
      }

      .payment-method-summary div {
        min-height: 64px;
        border-radius: 14px;
      }

      .payment-method-option {
        grid-template-columns: 72px minmax(0, 1fr) 38px;
        min-height: 78px;
        padding: 12px;
        border-radius: 16px;
        background: #ffffff;
      }

      .payment-method-logo {
        min-height: 56px;
        border-radius: 10px;
      }

      .payment-method-logo img {
        max-width: 56px;
        max-height: 36px;
      }

      .limits-modal {
        align-items: flex-end;
        padding: 0;
      }

      .limits-panel {
        width: 100%;
        max-height: 88dvh;
        border-radius: 24px 24px 0 0;
      }
    }

/* Payment availability and pagination: selections are retained across pages. */
.payment-pagination{display:flex;align-items:center;justify-content:center;gap:1rem;padding:1rem;color:#20364a;font-weight:600}
.payment-pagination button{border:1px solid #a7bfcd;background:#fff;color:#173b4b;border-radius:8px;padding:.65rem 1rem;font:inherit;cursor:pointer}
.payment-pagination button:disabled{opacity:.45;cursor:default}
.payment-pagination button:focus-visible{outline:3px solid #007f96;outline-offset:2px}
.payment-table [hidden]{display:none!important}
.payment-block-reason{display:block;max-width:260px;margin-top:.4rem;font-size:13px;line-height:1.45;color:#784414;font-weight:600}

.payment-block-reason{white-space:normal;overflow-wrap:anywhere;min-width:180px;max-width:260px;text-align:left}
.voucher-calculation-note{background:#edf6fa;border-left:3px solid #007f96;border-radius:6px;padding:12px 16px;color:#214454;font-size:14px;line-height:1.6;font-weight:500}

/* Keep the original full-height table area; pagination uses only its footer. */
.payment-vouchers{display:grid;grid-template-rows:minmax(0,1fr) auto;min-height:0;min-width:0}
.payment-vouchers .payment-pagination{padding:0 16px 14px;gap:12px;font-size:14px;line-height:20px}
.payment-vouchers .payment-pagination button{min-height:38px;padding:8px 14px}
.payment-pagination[hidden]{display:none!important}
@media(min-width:761px){.payment-vouchers .payment-table-wrap{scrollbar-gutter:stable}}
@media(max-width:760px){
  .payment-vouchers{grid-template-rows:minmax(0,1fr)}
  .payment-vouchers .payment-pagination{display:none!important}
}

/* Property selection appears only for multiple active leases. */
body.has-results.choosing-property .result-area { overflow-y:auto; overscroll-behavior:contain; }
.payment-property-picker { width:min(920px,100%); margin:24px auto; padding:32px; background:#fff; border:1px solid #d1e0ea; border-radius:20px; box-shadow:0 12px 30px #1232470b; }
.picker-eyebrow { color:#006986; font-size:13px; font-weight:800; }
.payment-property-picker h2 { margin:8px 0 10px; font-size:28px; color:#172b3a; }
.payment-property-picker h2:focus { outline:none; }
.payment-property-picker p { color:#456072; line-height:1.6; font-size:16px; }
.payment-property-options { display:grid; gap:14px; margin:24px 0; }
.payment-property-option { display:flex; align-items:center; gap:18px; width:100%; padding:22px; border:1px solid #bbd2df; border-radius:14px; background:#fff; color:#173448; text-align:left; font:inherit; cursor:pointer; }
.payment-property-option:hover { background:#effaff; border-color:#007d98; }
.payment-property-option:focus-visible, .change-property:focus-visible { outline:3px solid #007e99; outline-offset:4px; }
.property-option-icon { display:grid; place-items:center; width:44px; height:44px; border-radius:12px; background:#e4f5fa; color:#007b94; flex-shrink:0; }
.property-option-copy { display:grid; gap:7px; flex:1; min-width:0; overflow-wrap:anywhere; }
.property-option-copy strong { font-size:17px; line-height:1.4; }
.property-option-copy span { color:#456072; font-size:14px; }
.property-option-copy small { font-size:14px; color:#006981; font-weight:600; }
.property-option-action { color:#006981; font-size:14px; font-weight:700; white-space:nowrap; }
.property-option-action span { font-size:22px; margin-left:8px; }
.change-property { margin-top:10px; }
@media(max-width:760px) {
 .payment-property-picker { margin:0; padding:24px 16px; border-radius:0; border:0; box-shadow:none; }
 .payment-property-picker h2 { font-size:25px; }
 .payment-property-option { gap:12px; padding:18px 14px; flex-wrap:wrap; }
 .property-option-icon { width:36px; height:36px; }
 .property-option-copy { flex-basis:calc(100% - 50px); }
 .property-option-action { margin-left:48px; }
 .payment-property-options { overflow:visible; }
}
