﻿:root {
  --bg: #f5f7f9;
  --panel: #ffffff;
  --ink: #1d2b36;
  --muted: #687684;
  --line: #d9e1e8;
  --blue: #0a67b1;
  --blue-dark: #084f88;
  --green: #25735a;
  --gold: #b98324;
  --red: #b63d3d;
  --soft-blue: #eaf4fc;
  --soft-green: #edf7f2;
  --shadow: 0 18px 50px rgba(21, 39, 54, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
}

.login-intro {
  display: flex;
  align-items: center;
  padding: 56px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72)),
    linear-gradient(135deg, #e6f0f8, #eef7f2);
}


.login-intro > div {
  width: min(100%, 1180px);
}

.login-pricing {
  margin-top: 26px;
  max-width: 1120px;
}

.login-pricing .pricing-card {
  backdrop-filter: blur(2px);
}

.login-intro h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.95rem, 4.2vw, 3.7rem);
  line-height: 1.08;
}

.login-intro p {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.02rem;
}

.login-panel {
  display: flex;
  align-items: center;
  padding: 34px;
  background: var(--panel);
  border-left: 1px solid var(--line);
}

.login-card {
  width: 100%;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.16;
}

h2 {
  font-size: 1.65rem;
}

h3 {
  font-size: 1rem;
}

.muted {
  color: var(--muted);
}

.notice {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #bfd9ec;
  border-radius: 8px;
  background: var(--soft-blue);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  background: #173043;
  color: #ffffff;
}

.brand {
  display: grid;
  gap: 4px;
  margin-bottom: 28px;
}

.brand strong {
  font-size: 1.22rem;
}

.brand span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-button {
  width: 100%;
  min-height: 38px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: transparent;
  color: #ffffff;
  text-align: left;
}

.nav-button.active,
.nav-button:hover {
  background: rgba(255, 255, 255, 0.13);
}

.nav-button.small {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 0.88rem;
}


.sidebar-footer {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 10px;
}

.main {
  padding: 28px;
}


.app-shell.with-ai-comment {
  height: 100vh;
  overflow: hidden;
}

.app-shell.with-ai-comment .main {
  height: calc(100vh - 74px);
  overflow-y: auto;
  padding-bottom: 28px;
}

.ai-comment-panel {
  position: fixed;
  left: 284px;
  right: 24px;
  bottom: 12px;
  z-index: 35;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid #b9dccd;
  border-radius: 8px;
  background: rgba(248, 251, 253, 0.96);
  box-shadow: 0 10px 26px rgba(16, 45, 65, 0.12);
  pointer-events: none;
}

.ai-comment-head {
  display: flex;
  align-items: center;
  min-width: 0;
}

.ai-comment-head span {
  color: #006b45;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ai-comment-panel p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #52687c;
  font-size: 0.84rem;
  line-height: 1.3;
  text-align: left;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 760px) {
  .ai-comment-panel {
    left: 14px;
    right: 14px;
    bottom: 12px;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .app-shell.with-ai-comment .main {
    height: calc(100vh - 118px);
    padding-bottom: 24px;
  }
}

.flash-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #b9dccd;
  border-radius: 8px;
  background: var(--soft-green);
  color: var(--green);
  font-weight: 800;
}

.flash-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #b9dccd;
  border-radius: 6px;
  background: #ffffff;
  color: var(--green);
  font-size: 1.2rem;
  line-height: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.topbar h1 {
  font-size: 2rem;
}

.layout-grid {
  display: grid;
  gap: 18px;
}

.layout-grid.two {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.58fr);
}

.dashboard-layout {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.dashboard-stack {
  display: grid;
  grid-column: span 3;
  gap: 18px;
}


.onboarding-panel {
  margin: 0 0 18px;
  border-color: #cfe3d8;
  background: #fbfdf9;
}

.onboarding-panel h2 {
  margin: 0;
  font-size: 1.18rem;
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.onboarding-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d7e3dc;
  border-radius: 8px;
  background: #ffffff;
}

.onboarding-step h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.onboarding-step p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.45;
}

.onboarding-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #fff5cf;
  color: #8a6300;
  font-weight: 900;
}

.onboarding-step.done .onboarding-number {
  background: #dff3e7;
  color: #006b45;
}

.onboarding-status {
  color: #007a52;
  font-size: 0.86rem;
}

.property-stack {
  align-items: start;
}

.profile-stack {
  max-width: 1180px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  align-items: start;
}

.subscription-privacy-note {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  padding: 12px 14px;
  border-color: #cfe3d8;
  background: #f8fcfa;
  color: #52687c;
  font-size: 0.92rem;
}

.subscription-privacy-note strong {
  color: #006b45;
}

.profile-stack > .backup-panel {
  grid-column: 1;
}

.account-info-grid {
  display: grid;
  gap: 18px;
  align-items: stretch;
}

.backup-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.backup-panel h2,
.subscription-overview-panel h2 {
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.backup-panel .muted,
.subscription-overview-panel .muted {
  margin: 0;
  max-width: 620px;
}

.backup-panel-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
}

.backup-panel-actions .button {
  min-height: 38px;
  padding-inline: 12px;
  white-space: nowrap;
}

.panel-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.subscription-overview-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.subscription-status-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.subscription-status-pill.active {
  color: #006b45;
  background: #e5f4eb;
}

.subscription-status-pill.inactive {
  color: #a21f1f;
  background: #fde7e7;
}

.subscription-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.subscription-overview-grid > div {
  padding: 12px;
  border: 1px solid #d9e3ea;
  border-radius: 8px;
  background: #f8fbfd;
}

.subscription-overview-grid span {
  display: block;
  margin-bottom: 4px;
  color: #587087;
  font-size: 0.84rem;
  font-weight: 800;
}

.subscription-overview-grid strong {
  color: #0b2237;
}

@media (max-width: 980px) {
  .profile-stack {
    grid-template-columns: 1fr;
  }

  .account-info-grid {
    grid-template-columns: 1fr;
  }
}

.property-form-panel {
  width: min(100%, 620px);
  padding: 12px;
}

.property-form-panel h2 {
  font-size: 1.18rem;
}

.property-form-panel .form-grid {
  gap: 7px 10px;
}

.property-form-panel .property-form-grid {
  grid-template-columns: repeat(10, minmax(0, 1fr));
}

.property-form-panel .property-form-grid > label:not(.full):not(.capacity-field):not(.textarea-compact) {
  grid-column: span 5;
}

.property-form-panel .property-form-grid .capacity-field {
  grid-column: span 3;
}

.property-form-panel .textarea-compact {
  grid-column: auto;
}

.property-form-panel label {
  gap: 3px;
  font-size: 0.78rem;
}

.property-form-panel input,
.property-form-panel select {
  min-height: 30px;
  padding: 5px 8px;
}

.property-form-panel textarea {
  min-height: 34px;
  padding: 5px 8px;
}

.property-form-panel .textarea-compact textarea {
  min-height: 30px;
  resize: none;
}

.property-form-panel .actions {
  margin-top: 9px;
}

.property-form-panel .button {
  min-height: 32px;
  padding: 6px 11px;
  font-size: 0.88rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-stats {
  grid-column: span 3;
}

.dashboard-action-panel {
  min-height: 0;
  width: 100%;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
}

.dashboard-action-panel .button {
  width: 100%;
  min-height: 32px;
  padding: 6px 10px;
}

.stat,
.panel,
.form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(21, 39, 54, 0.06);
}

.stat {
  padding: 10px 12px;
}

.stat span {
  color: var(--muted);
  font-size: 0.8rem;
}

.stat-lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 7px;
}

.stat-lines > div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.stat-lines > div + div {
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.stat small {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  font-size: 1.18rem;
  line-height: 1.2;
}

.panel {
  padding: 20px;
}

.form-panel {
  padding: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid .full {
  grid-column: 1 / -1;
}


.upcoming-panel {
  display: grid;
  gap: 14px;
}

.upcoming-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.upcoming-list {
  display: grid;
  gap: 10px;
}

.upcoming-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #ffffff;
}

.upcoming-card h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.upcoming-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.82rem;
}

.upcoming-card p {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
}

.upcoming-card.danger {
  border-left-color: var(--red);
  background: #fff7f7;
}

.upcoming-card.warning {
  border-left-color: var(--gold);
  background: #fffaf0;
}

.upcoming-card.calm {
  border-left-color: var(--green);
  background: var(--soft-green);
}

.upcoming-link {
  width: 100%;
}

.property-form-panel .property-form-grid .textarea-compact {
  grid-column: span 7;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.field-head {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.help-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid #b9ccd9;
  border-radius: 50%;
  background: var(--soft-blue);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.help-dot:hover,
.help-dot:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(10, 103, 177, 0.16);
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
}

.money-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 38px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.money-input span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 100%;
  border-right: 1px solid var(--line);
  background: #f3f7fa;
  color: var(--muted);
  font-weight: 800;
}

.money-input input {
  min-height: 40px;
  border: 0;
  border-radius: 0;
}

.money-input input:focus {
  outline: 2px solid rgba(10, 103, 177, 0.16);
  outline-offset: -2px;
}

.year-control {
  color: rgba(255, 255, 255, 0.74);
}

.year-control select {
  min-height: 38px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.year-control option {
  color: var(--ink);
}

.account-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.account-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 900;
}

.account-menu-button:hover,
.account-menu-button:focus {
  background: rgba(255, 255, 255, 0.16);
}

.year-inline {
  display: inline-grid;
  grid-template-columns: auto minmax(92px, 120px);
  align-items: center;
  gap: 8px;
  min-height: 38px;
  color: var(--muted);
}

.year-inline select {
  min-height: 38px;
  padding: 8px 10px;
}

.occupancy-property-select {
  min-width: 220px;
}

.occupancy-topbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: end;
}

.occupancy-toolbar {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 10px;
}

.occupancy-buttons {
  justify-content: flex-end;
}

.occupancy-toolbar .year-inline {
  grid-template-columns: auto minmax(120px, 150px);
  gap: 6px;
  min-height: 40px;
}

.occupancy-toolbar .occupancy-property-select {
  grid-template-columns: auto minmax(160px, 190px);
}

.occupancy-toolbar select {
  min-height: 38px;
  padding: 7px 10px;
}

.occupancy-toolbar .button {
  min-height: 38px;
  padding: 7px 12px;
}

textarea {
  min-height: 86px;
  resize: vertical;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 10px 14px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 800;
}

.button:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.button.secondary {
  background: #ffffff;
  color: var(--blue);
}

.button.ghost {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.button.danger {
  border-color: var(--red);
  background: var(--red);
}

.button.warning {
  border-color: var(--gold);
  background: var(--gold);
}

.button.compact {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.84rem;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.money,
.number {
  text-align: right;
  white-space: nowrap;
}


.entries-total-row td {
  border-top: 2px solid var(--line);
  background: #f8fafc;
  font-weight: 800;
}

.entries-total-row td:first-child {
  text-align: right;
}
.stay-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.stay-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}


.stay-text {
  font-weight: 800;
}

.stay-text.stay-outside {
  color: #0f5132;
}

.stay-text.stay-current {
  color: #8a6500;
}

.stay-text.stay-future {
  color: #8b1e1e;
}

.legend-swatch {
  width: 22px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(15, 35, 50, 0.08);
}

.legend-swatch.stay-outside {
  background: #dff2e8;
}

.legend-swatch.stay-current {
  background: #fff0bf;
}

.legend-swatch.stay-future {
  background: #fde1e1;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--soft-green);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
}

.tag.inactive {
  background: #fdecec;
  color: #a83232;
}

.payment-status.unpaid {
  background: #fdecec;
  color: #a83232;
}

.locked-entry {
  background: #eef2f5;
  color: #617284;
}

.status-toggle {
  border: 0;
  cursor: pointer;
}

.status-toggle:hover,
.status-toggle:focus {
  outline: 2px solid rgba(37, 115, 90, 0.18);
}

.empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 31, 44, 0.42);
}

.modal-backdrop[hidden] {
  display: none;
}

.confirm-modal {
  width: min(100%, 420px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.confirm-modal p {
  margin: 12px 0 0;
  color: var(--muted);
}

.payment-date-dialog {
  display: grid;
  gap: 14px;
}

.payment-date-dialog .actions {
  margin-top: 0;
}


.obligations-print {
  overflow-x: auto;
}

.obligations-sheet {
  width: min(100%, 1180px);
  margin: 0 auto;
  background: #ffffff;
}

.obligations-title {
  min-height: 76px;
  display: flex;
  align-items: center;
  padding: 16px 18px;
  background: #5ba058;
  color: #ffffff;
  font-weight: 800;
}

.obligations-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.obligations-table th,
.obligations-table td {
  border: 1px solid #1f2d36;
  padding: 7px 8px;
  vertical-align: middle;
}

.obligations-table th {
  text-align: center;
  font-weight: 800;
}

.obligations-table .base-col,
.obligations-total-row td {
  background: #d7e8f6;
}

.obligations-table .airbnb-col {
  background: #fff2c9;
}

.obligations-table .booking-col {
  background: #ead1dc;
}

.obligations-total-row td {
  font-weight: 800;
}

.center-cell {
  text-align: center;
}


.pdv-guide {
  width: min(100%, 1180px);
  margin: 20px auto 0;
}

.pdv-guide-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 18px;
  margin-bottom: 14px;
}

.pdv-month-select {
  grid-column: 2;
  min-width: 250px;
  font-weight: 800;
}

.pdv-month-select select {
  min-width: 170px;
  border-color: #83caa6;
  background: #dff4e8;
  color: var(--ink);
  font-weight: 900;
}

.pdv-month-select select:focus {
  outline: 3px solid rgba(37, 115, 90, 0.18);
  border-color: var(--green);
}

.pdv-summary-line {
  margin-bottom: 12px;
  padding: 11px 12px;
  border: 1px solid #f0d98b;
  border-radius: 7px;
  background: #fff8dd;
}

.pdv-guide-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.pdv-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  min-height: 118px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.pdv-step > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 800;
}

.pdv-step h3 {
  margin-bottom: 5px;
}

.pdv-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.pdv-empty-guide {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}


.pdvs-guide {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.pdvs-guide h2 {
  margin-bottom: 12px;
}

.pdv-visual-title {
  margin: 16px 0 8px;
  font-size: 1rem;
}

.pdvs-table-wrap,
.pdv-form-table-wrap {
  overflow-x: auto;
  margin-bottom: 12px;
}

.pdv-form-table,
.pdvs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.pdv-form-table th,
.pdv-form-table td,
.pdvs-table th,
.pdvs-table td {
  border: 1px solid var(--line);
  padding: 9px 10px;
}

.pdv-form-table th,
.pdvs-table th {
  background: #eef4f8;
  color: var(--muted);
  font-weight: 800;
  text-align: left;
}

.pdv-total-row td,
.pdvs-total-row td {
  background: #eef4f8;
  font-weight: 800;
}

.pdvs-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.payment-barcode-guide {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.payment-barcode-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}


.payment-barcode-action {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.hidden {
  display: none !important;
}

.payment-qr {
  width: min(460px, 100%);
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.payment-qr canvas {
  width: 100%;
  height: auto;
  display: block;
}

.payment-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.payment-details div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
}

.payment-details span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.payment-details strong {
  word-break: break-word;
}

.payment-warning {
  margin-top: 8px;
  color: #9a3412;
  font-weight: 800;
}

.ep-print {
  background: #ffffff;
  color: #000000;
}

.ep-sheet {
  max-width: 1060px;
  margin: 0 auto;
  padding: 26px;
  background: #ffffff;
}

.ep-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.ep-title {
  text-align: center;
  margin: 18px 0;
}

.ep-title h1 {
  font-size: 1.45rem;
}

.ep-meta {
  display: grid;
  gap: 5px;
  margin: 18px 0;
}

.ep-table th,
.ep-table td {
  border: 1px solid #000000;
  color: #000000;
}

.ep-table th {
  text-transform: none;
}

.ep-table .ep-center {
  text-align: center;
}

.ep-total-row td {
  font-weight: 800;
}

.ep-total-row td:first-child {
  text-align: right;
}


.occupancy-print {
  background: #ffffff;
  color: var(--ink);
}

.occupancy-sheet {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px;
  background: #ffffff;
}

.occupancy-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.occupancy-head h2 {
  font-size: 1.35rem;
}

.occupancy-properties {
  display: grid;
  gap: 22px;
}

.occupancy-property h2 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.occupancy-months {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.occupancy-month {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px;
  break-inside: avoid;
}

.occupancy-month h3 {
  margin-bottom: 5px;
  font-size: 0.82rem;
}

.occupancy-weekdays,
.occupancy-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}

.occupancy-weekdays span {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  text-align: center;
}

.occupancy-day {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #f4f7fa;
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 700;
}

.occupancy-day.empty-day {
  background: transparent;
}

.occupancy-day.stay-outside {
  background: #dff2e8;
  color: #0f5132;
}

.occupancy-day.stay-current {
  background: #fff0bf;
  color: #8a6500;
}

.occupancy-day.stay-future {
  background: #fde1e1;
  color: #8b1e1e;
}
.dev-link {
  display: block;
  margin-top: 14px;
  word-break: break-all;
  color: var(--blue);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .login-shell,
  .app-shell,
  .layout-grid.two,
  .dashboard-layout,
  .stats,
  .form-grid,
  .form-grid.three {
    grid-template-columns: 1fr;
  }

  .dashboard-stack,
  .dashboard-stats {
    grid-column: auto;
  }

  .occupancy-months {
    grid-template-columns: 1fr;
  }

  .occupancy-head {
    display: block;
  }

  .pdv-guide-head,
  .pdv-guide-steps,
  .pdvs-steps {
    grid-template-columns: 1fr;
  }

  .pdv-guide-head {
    grid-template-columns: 1fr;
  }

  .pdv-month-select {
    grid-column: 1;
    min-width: 0;
  }

  .login-intro {
    padding: 34px 22px;
  }

  .login-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .sidebar-footer {
    position: static;
    margin-top: 28px;
  }

  .main {
    padding: 18px;
  }
  .entry-core-panel {
    padding: 10px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar .actions {
    width: 100%;
  }

  .topbar .button,
  .actions .button {
    flex: 1 1 auto;
  }

  .year-inline {
    width: 100%;
    grid-template-columns: 1fr;
  }

  th,
  td {
    padding: 9px 8px;
  }

  .row-actions {
    flex-direction: column;
    min-width: 82px;
  }

  .row-actions .button {
    width: 100%;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .no-print,
  .flash-message {
    display: none !important;
  }

  .app-shell,
  .main,
  .ep-sheet {
    display: block;
    padding: 0;
    width: 100%;
    max-width: none;
  }

  .ep-sheet {
    margin: 0;
  }

  .occupancy-print {
    width: 100%;
    overflow: visible;
  }

  .occupancy-sheet {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .occupancy-head {
    width: 100%;
    margin-bottom: 5mm;
  }

  .occupancy-head h2 {
    font-size: 1.35rem;
  }

  .occupancy-months {
    width: 100%;
    grid-template-columns: repeat(4, calc((100% - 7.8mm) / 4));
    grid-template-rows: repeat(3, 1fr);
    gap: 2.6mm;
    height: 166mm;
  }

  .occupancy-month {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-rows: auto auto 1fr;
    padding: 2mm;
    border-radius: 5px;
  }

  .occupancy-month h3 {
    margin-bottom: 1.2mm;
    font-size: 0.82rem;
  }

  .occupancy-weekdays,
  .occupancy-days {
    gap: 1px;
  }

  .occupancy-days {
    grid-auto-rows: 1fr;
  }

  .occupancy-weekdays span {
    font-size: 0.62rem;
  }

  .occupancy-day {
    min-height: 0;
    border-radius: 2px;
    font-size: 0.68rem;
  }

  .stay-legend {
    font-size: 0.78rem;
    gap: 12px;
  }
}

.entry-form-panel {
  display: grid;
  gap: 18px;
  max-width: 1180px;
}
.entry-core-panel {
  display: grid;
  gap: 14px;
  padding: 12px;
  border: 2px solid #b7d3e7;
  border-radius: 10px;
  background: #f7fbff;
  box-shadow: inset 0 0 0 1px rgba(10, 103, 177, 0.05);
}

.entry-core-panel .form-section {
  border-color: #ccdae6;
  box-shadow: 0 6px 18px rgba(21, 39, 54, 0.04);
}

.form-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.section-title h2 {
  font-size: 1.16rem;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.entry-grid {
  gap: 12px;
}

.official-grid {
  grid-template-columns: minmax(110px, 0.7fr) minmax(150px, 0.9fr) minmax(260px, 1.6fr) minmax(170px, 1fr);
}

.fee-grid {
  grid-template-columns: minmax(160px, 0.95fr) minmax(165px, 0.95fr) minmax(180px, 1fr) minmax(205px, 1.15fr) minmax(180px, 1fr);
}

.stay-grid {
  grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 1fr) minmax(160px, 1fr) minmax(90px, 0.55fr);
}

.payout-grid {
  grid-template-columns: minmax(180px, 1fr) minmax(170px, 1fr) minmax(180px, 1fr);
}

.wide-field {
  grid-column: span 1;
}

.short-field input {
  max-width: 110px;
}

.fee-note {
  padding: 10px 12px;
  border: 1px solid #bfd9ec;
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--ink);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .official-grid,
  .fee-grid,
  .stay-grid,
  .payout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hidden-field {
  display: none !important;
}

.document-reader-section {
  width: min(100%, 980px);
  background: #ffffff;
}

.compact-title {
  align-items: flex-start;
}

.reader-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #d6e1ea;
  border-radius: 7px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.reader-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.reader-option {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 132px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.reader-option.recommended {
  border-color: #c7d8ef;
  background: #f8fbff;
}

.reader-option h3 {
  margin: 4px 0 5px;
  font-size: 1rem;
}

.reader-option p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.38;
}

.option-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef6f0;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.reader-option.recommended .option-kicker {
  background: #e4f1fb;
  color: var(--blue-dark);
}

.reader-option .button {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
}

.screenshot-option {
  cursor: text;
}

.screenshot-option:focus {
  outline: 2px solid rgba(11, 111, 183, 0.18);
  outline-offset: 2px;
}

.document-reader-result {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.document-reader-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.document-reader-result pre {
  max-height: 220px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  white-space: pre-wrap;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.84rem;
  line-height: 1.45;
}

.ocr-text-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.ocr-text-box label {
  display: block;
}

.ocr-text-box textarea {
  min-height: 96px;
  margin-top: 8px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.45;
}

.compact-actions {
  align-items: center;
  margin-top: 10px;
}

@media (max-width: 1100px) {
  .reader-options {
    grid-template-columns: 1fr;
  }

  .reader-option {
    min-height: auto;
  }

  .reader-status {
    width: 100%;
    white-space: normal;
  }
}


.backup-status {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #d7e2ea;
  border-radius: 8px;
  background: #f8fbfd;
}

.backup-status-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 0.9rem;
}

.backup-status-row span {
  color: #587087;
  font-weight: 700;
}

.backup-status-row strong {
  overflow-wrap: anywhere;
}

.backup-ok {
  color: #006b45;
}

.backup-warn {
  color: #9a6500;
}

.backup-bad {
  color: #a21f1f;
}

.login-pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: -6px 0 18px;
}

.pricing-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  border: 1px solid #efd38b;
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 12px 28px rgba(16, 45, 65, 0.06);
}

.subscription-card {
  border-color: #a8d5c1;
  background: #f3fbf7;
}

.pricing-card-header {
  display: grid;
  gap: 6px;
}

.pricing-card-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.pricing-card-header p {
  margin: 0;
  color: #52687c;
}

.pricing-pill {
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff1c2;
  color: #805300;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.pricing-pill.paid {
  background: #dff2e9;
  color: #006b45;
}

.pricing-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-list li {
  position: relative;
  padding-left: 18px;
  color: #0b2237;
  font-weight: 700;
}

.pricing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b98324;
}

.privacy-note,
.subscription-rule {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #dce6ed;
}

.privacy-note strong,
.subscription-rule strong {
  color: #006b45;
}

.privacy-note span,
.subscription-rule span {
  color: #52687c;
  font-size: 0.9rem;
}

.login-privacy-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  border-color: #b9dccd;
  background: #edf7f2;
}

.login-privacy-note strong {
  white-space: nowrap;
}


.subscription-list li::before {
  background: #0b6b4b;
}

.subscription-feature-group {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid #b9dccd;
  border-radius: 8px;
  background: #ffffff;
}

.subscription-feature-group strong {
  color: #006b45;
  font-size: 0.95rem;
}

.subscription-feature-group ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.subscription-feature-group li {
  position: relative;
  padding-left: 16px;
  color: #0b2237;
  font-weight: 700;
}

.subscription-feature-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0b6b4b;
}


.subscription-price {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #0b6b4b;
  border-radius: 8px;
  background: #e5f4eb;
  text-align: center;
}

.subscription-price strong {
  color: #006b45;
  font-size: 2.05rem;
  line-height: 1;
}

.subscription-price span {
  color: #0b2237;
  font-size: 0.94rem;
  font-weight: 900;
}

@media (max-width: 980px) {
  .onboarding-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .login-pricing {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .pricing-list,
  .subscription-feature-group ul,
  .subscription-price {
    grid-template-columns: 1fr;
  }
}


.ai-privacy-hint {
  margin: -2px 0 0;
  color: #52687c;
  font-size: 0.88rem;
}

.help-page {
  display: grid;
  gap: 14px;
  max-width: 980px;
}

.help-intro {
  padding: 14px 16px;
  border: 1px solid #bfd9ec;
  border-radius: 8px;
  background: var(--soft-blue);
}

.help-intro h2,
.help-section h2 {
  margin-bottom: 6px;
  font-size: 1.12rem;
}

.help-intro p,
.help-section p {
  margin: 0;
  color: var(--muted);
}

.help-section {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #ffffff;
}

.help-section ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 20px;
}

.help-section li {
  color: var(--ink);
}

.help-section ol {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 22px;
}

.help-section ol li {
  color: var(--ink);
}


.help-section strong {
  color: #123047;
}

.account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.subscription-page {
  display: grid;
  gap: 14px;
  width: min(100%, 880px);
}

.subscription-status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
  gap: 12px;
  align-items: stretch;
}

.subscription-status-card,
.subscription-price-card,
.subscription-includes {
  padding: 14px 16px;
  border: 1px solid #cfe3d8;
  border-radius: 8px;
  background: #f8fcfa;
}

.subscription-status-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.subscription-status-card h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.subscription-status-card p,
.subscription-price-card span,
.subscription-includes p {
  margin: 0;
  color: #52687c;
}

.subscription-status-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(92px, auto);
  align-items: center;
}

.subscription-status-card .subscription-status-pill {
  justify-self: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.subscription-status-card .subscription-status-pill.active,
.subscription-status-card .subscription-status-pill.inactive {
  background: transparent;
}

.subscription-price-card strong {
  display: block;
  color: var(--green);
  font-size: 2rem;
  line-height: 1;
}

.subscription-includes {
  display: grid;
  gap: 8px;
}

.subscription-includes strong {
  color: #006b45;
}

.subscription-includes ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
  margin: 0;
  padding-left: 18px;
}

.subscription-payment {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #cfe3d8;
  background: #f8fcfa;
}

.subscription-payment h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
}

.subscription-payment-intro .muted {
  max-width: none;
}

.subscription-payment dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
}

.subscription-payment dl > div {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.subscription-payment dt {
  color: #587087;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.subscription-payment dd {
  margin: 2px 0 0;
  color: #0b2237;
  font-size: 0.94rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.subscription-payment-note {
  margin: 2px 0 0;
  color: #006b45;
  font-size: 0.92rem;
  font-weight: 800;
}

@media (max-width: 760px) {
  .subscription-status-row,
  .subscription-includes ul,
  .subscription-payment dl {
    grid-template-columns: 1fr;
  }

  .subscription-status-card {
    flex-direction: column;
  }
}

.empty-table {
  color: var(--muted);
  text-align: center;
}


@media print {
  .obligations-print {
    page: obligations-landscape;
    break-after: page;
    overflow: visible !important;
    width: 100%;
  }

  .obligations-sheet {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .obligations-title {
    min-height: 14mm;
    padding: 4mm;
    font-size: 11pt;
  }

  .obligations-table-wrap {
    overflow: visible !important;
  }

  .obligations-table {
    width: 100%;
    table-layout: fixed;
    font-size: 6.8pt;
    line-height: 1.14;
  }

  .obligations-table th,
  .obligations-table td {
    padding: 2mm 1.2mm;
    overflow-wrap: anywhere;
  }

  .obligations-table th:nth-child(1),
  .obligations-table th:nth-child(2),
  .obligations-table td:nth-child(1),
  .obligations-table td:nth-child(2) {
    width: 7%;
  }

  .obligations-table th:nth-child(3),
  .obligations-table td:nth-child(3) {
    width: 11%;
  }

  .obligations-table th:nth-child(4),
  .obligations-table th:nth-child(5),
  .obligations-table th:nth-child(7),
  .obligations-table th:nth-child(8),
  .obligations-table th:nth-child(9),
  .obligations-table td:nth-child(4),
  .obligations-table td:nth-child(5),
  .obligations-table td:nth-child(7),
  .obligations-table td:nth-child(8),
  .obligations-table td:nth-child(9) {
    width: 9%;
  }

  .obligations-table th:nth-child(6),
  .obligations-table td:nth-child(6) {
    width: 10%;
  }

  .obligations-table th:nth-child(10),
  .obligations-table td:nth-child(10) {
    width: 8%;
  }

  .obligations-table th:nth-child(11),
  .obligations-table td:nth-child(11) {
    width: 12%;
  }

  .obligations-second-page {
    page: obligations-portrait;
    break-before: page;
    display: block !important;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .obligations-second-page .pdv-guide-head {
    display: block;
    margin-bottom: 4mm;
  }

  .obligations-second-page .pdv-month-select {
    display: none;
  }

  .obligations-second-page h2 {
    margin-bottom: 3mm;
    font-size: 15pt;
  }

  .obligations-second-page .pdv-summary-line {
    margin-bottom: 3mm;
    padding: 2.2mm;
    font-size: 9pt;
  }

  .obligations-second-page .pdv-guide-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2mm;
  }

  .obligations-second-page .pdvs-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .obligations-second-page .pdv-step {
    min-height: 0;
    grid-template-columns: 6mm minmax(0, 1fr);
    gap: 1.8mm;
    padding: 2mm;
    border-radius: 4px;
  }

  .obligations-second-page .pdv-step > span {
    width: 6mm;
    height: 6mm;
    font-size: 8pt;
  }

  .obligations-second-page .pdv-step h3 {
    margin-bottom: 1mm;
    font-size: 8.5pt;
  }

  .obligations-second-page .pdv-step p {
    font-size: 7.6pt;
    line-height: 1.25;
  }

  .obligations-second-page .pdv-visual-title {
    margin: 3mm 0 1.5mm;
    font-size: 9pt;
  }

  .obligations-second-page .pdv-form-table-wrap,
  .obligations-second-page .pdvs-table-wrap {
    overflow: visible;
    margin-bottom: 3mm;
  }

  .obligations-second-page .pdv-form-table,
  .obligations-second-page .pdvs-table {
    table-layout: fixed;
    font-size: 7.4pt;
    line-height: 1.18;
  }

  .obligations-second-page .pdv-form-table th,
  .obligations-second-page .pdv-form-table td,
  .obligations-second-page .pdvs-table th,
  .obligations-second-page .pdvs-table td {
    padding: 1.8mm;
    overflow-wrap: anywhere;
  }

  .obligations-second-page .pdvs-guide,
  .obligations-second-page .payment-barcode-guide {
    margin-top: 4mm;
    padding-top: 3mm;
  }

  .obligations-second-page .payment-barcode-head {
    grid-template-columns: minmax(0, 1fr) 48mm;
    gap: 4mm;
  }

  .obligations-second-page .payment-qr {
    width: 48mm;
    min-height: 30mm;
    padding: 1.5mm;
  }

  .obligations-second-page .payment-details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2mm;
  }

  .obligations-second-page .payment-details > div {
    padding: 2mm;
  }
}


.panel-heading-row.compact {
  align-items: center;
}

.subscription-page {
  width: min(100%, 1120px);
  max-width: 1120px;
}

.subscription-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 14px;
  align-items: start;
}

.subscription-main-grid .subscription-payment {
  align-self: start;
}

@media (max-width: 980px) {
  .subscription-main-grid {
    grid-template-columns: 1fr;
  }
}
.subscriber-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #cfe3d8;
  border-radius: 8px;
  background: #f8fcfa;
}

.subscriber-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.subscriber-card-head h2 {
  margin: 0;
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}

.subscriber-history-wrap {
  overflow-x: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.subscriber-history-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.subscriber-history-table th,
.subscriber-history-table td {
  padding: 8px 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}

.subscriber-history-table th {
  color: #587087;
  background: #f1f6f9;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.subscriber-history-table tbody tr:last-child td {
  border-bottom: 0;
}

.subscriber-history-table th:nth-child(1),
.subscriber-history-table td:nth-child(1) {
  width: 92px;
  white-space: nowrap;
}

.subscriber-history-table th:nth-child(2),
.subscriber-history-table td:nth-child(2) {
  width: 44%;
}

.subscriber-history-table th:nth-child(3),
.subscriber-history-table td:nth-child(3) {
  width: auto;
}

.subscriber-history-table td:nth-child(3) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 760px) {
  .subscriber-card-head {
    grid-template-columns: 1fr;
  }
}


@media print {
  .obligations-second-page {
    font-size: 8pt;
  }

  .obligations-second-page .eyebrow {
    margin-bottom: 1mm;
    font-size: 7pt;
  }

  .obligations-second-page .pdv-guide-head {
    margin-bottom: 2mm;
  }

  .obligations-second-page h2 {
    margin-bottom: 1.5mm;
    font-size: 12pt;
    line-height: 1.05;
  }

  .obligations-second-page .pdv-summary-line {
    margin-bottom: 2mm;
    padding: 1.4mm 1.8mm;
    font-size: 7.8pt;
    line-height: 1.18;
  }

  .obligations-second-page .pdv-guide-steps,
  .obligations-second-page .pdvs-steps {
    gap: 1.2mm;
  }

  .obligations-second-page .pdv-step {
    grid-template-columns: 4.8mm minmax(0, 1fr);
    gap: 1.2mm;
    min-height: 0;
    padding: 1.2mm;
    border-radius: 3px;
  }

  .obligations-second-page .pdv-step > span {
    width: 4.8mm;
    height: 4.8mm;
    font-size: 6.8pt;
  }

  .obligations-second-page .pdv-step h3 {
    margin-bottom: 0.6mm;
    font-size: 7.2pt;
    line-height: 1.05;
  }

  .obligations-second-page .pdv-step p {
    font-size: 6.45pt;
    line-height: 1.16;
  }

  .obligations-second-page .pdv-visual-title {
    margin: 2mm 0 1mm;
    font-size: 7.5pt;
  }

  .obligations-second-page .pdv-form-table-wrap,
  .obligations-second-page .pdvs-table-wrap {
    margin-bottom: 2mm;
  }

  .obligations-second-page .pdv-form-table,
  .obligations-second-page .pdvs-table {
    font-size: 7.2pt;
    line-height: 1.14;
  }

  .obligations-second-page .pdv-form-table th,
  .obligations-second-page .pdvs-table th {
    padding: 0.9mm 1mm;
    font-size: 5.7pt;
    line-height: 1.02;
  }

  .obligations-second-page .pdv-form-table td,
  .obligations-second-page .pdvs-table td {
    padding: 1mm 1.2mm;
    font-size: 7.2pt;
    line-height: 1.14;
  }

  .obligations-second-page .pdvs-guide {
    margin-top: 2mm;
    padding-top: 2mm;
  }

  .obligations-second-page .payment-barcode-guide {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-top: 2mm;
    padding-top: 2mm;
  }

  .obligations-second-page .payment-barcode-head {
    grid-template-columns: minmax(0, 1fr) 68mm;
    gap: 4mm;
    align-items: start;
  }

  .obligations-second-page .payment-barcode-head h2 {
    font-size: 12pt;
  }

  .obligations-second-page .payment-barcode-head .muted {
    font-size: 7pt;
    line-height: 1.15;
  }

  .obligations-second-page .payment-barcode-action {
    justify-items: end;
  }

  .obligations-second-page .payment-barcode-action .button {
    display: none;
  }

  .obligations-second-page .payment-qr {
    width: 68mm;
    min-height: 34mm;
    padding: 1mm;
  }

  .obligations-second-page .payment-qr canvas {
    width: 100% !important;
    height: auto !important;
  }

  .obligations-second-page .payment-details {
    grid-template-columns: 1.12fr 1fr 1.48fr 0.76fr;
    gap: 1.4mm;
    margin-top: 1.5mm;
  }

  .obligations-second-page .payment-details > div {
    padding: 1.2mm;
    border-radius: 3px;
  }

  .obligations-second-page .payment-details span {
    font-size: 6.4pt;
  }

  .obligations-second-page .payment-details strong {
    font-size: 8.2pt;
    line-height: 1.12;
  }
}



.premium-locked-panel {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 1px solid #cfe3d8;
  background: #f8fcfa;
}

.premium-locked-panel h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.premium-locked-panel p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .premium-locked-panel {
    align-items: stretch;
    flex-direction: column;
  }
}







.subscription-faq {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
}

.subscription-faq h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list div {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.faq-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.faq-list strong {
  color: var(--text);
}

.faq-list span {
  color: var(--muted);
  line-height: 1.45;
}
