/* APP_EP build: 20260721-mobile407 */
: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);
  --font-ui: Inter, "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

button,
input,
select,
textarea,
table {
  font-family: var(--font-ui);
  font: inherit;
}

button {
  cursor: pointer;
}

.login-shell {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72)),
    linear-gradient(135deg, #e6f0f8, #eef7f2);
}

.login-hero {
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(330px, 430px);
  gap: 34px;
  justify-content: center;
  align-items: center;
  width: min(100%, 1440px);
  min-height: min(680px, 88vh);
  margin: 0 auto;
  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 {
  display: flex;
  align-items: center;
}

.login-shell > .login-intro {
  min-height: min(560px, 78vh);
  padding: 56px;
}

.login-intro > div {
  width: min(100%, 1180px);
}

.login-details {
  display: grid;
  gap: 28px;
  padding: 0 56px 56px;
}

.login-hero-head {
  display: grid;
  grid-template-columns: clamp(142px, 15vw, 190px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  max-width: 1040px;
}

.login-hero-head-compact {
  max-width: 780px;
}

.login-hero-copy {
  min-width: 0;
  padding-top: 4px;
}

.login-hero-copy strong {
  color: #0b2237;
}

.login-logo-stage {
  position: relative;
  width: clamp(104px, 11vw, 138px);
  height: clamp(104px, 11vw, 138px);
  margin: 0;
  overflow: visible;
  isolation: isolate;
}

.login-logo {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(10, 42, 70, 0.18);
}

.login-roko {
  position: absolute;
  z-index: 3;
  left: 45%;
  bottom: -15%;
  width: clamp(58px, 6.8vw, 92px);
  height: auto;
  max-width: 76%;
  pointer-events: none;
  filter: drop-shadow(0 14px 18px rgba(8, 36, 24, 0.18));
  transform-origin: 42% 86%;
  animation: roko-login-greeting 2.35s cubic-bezier(0.18, 0.82, 0.27, 1) 0.08s both;
}

@keyframes roko-login-greeting {
  0% {
    opacity: 0;
    transform: translate(-46%, 16%) scale(0.42) rotate(-12deg);
  }
  18% {
    opacity: 1;
  }
  48% {
    transform: translate(26%, -13%) scale(0.72) rotate(-3deg);
  }
  61% {
    transform: translate(32%, -15%) scale(0.76) rotate(6deg);
  }
  73% {
    transform: translate(32%, -15%) scale(0.76) rotate(-5deg);
  }
  85% {
    transform: translate(32%, -15%) scale(0.76) rotate(4deg);
  }
  100% {
    opacity: 1;
    transform: translate(32%, -15%) scale(0.76) rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-roko {
    animation: none;
    opacity: 1;
    transform: translate(32%, -15%) scale(0.76) rotate(0deg);
  }
}

.login-pricing {
  margin-top: 26px;
  max-width: 1120px;
}

.login-capability-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1040px;
  margin: 22px 0 0;
}

.login-capability-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #cfe0ec;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #36546d;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.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 h1 span {
  display: block;
}

.login-intro p {
  max-width: 660px;
  color: var(--muted);
  font-size: 0.95rem;
}

.login-panel {
  align-self: center;
  width: min(100%, 430px);
  justify-self: end;
  padding: 26px;
  border: 1px solid rgba(207, 224, 236, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.login-shell > .login-panel {
  margin: -96px 56px 56px auto;
}

.login-card {
  width: 100%;
}

.login-card h2 {
  font-size: 1.45rem;
}

.login-mail-hint {
  margin: -4px 0 18px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.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: 7px;
  background: var(--soft-blue);
}

.notice.warning {
  border-color: #f0d98b;
  background: #fff8e6;
}

.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;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
}

.brand-logo {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.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: 32px;
  padding: 8px 10px;
  font-size: 0.88rem;
}

.mobile-only-nav {
  display: none;
}


.sidebar-footer {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 10px;
}

.main {
  padding: 28px;
}

.public-notices {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.public-notice {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid #f0d98b;
  border-radius: 7px;
  background: #fff8dd;
}

.public-notice.info {
  border-color: #b8d7eb;
  background: #eef7fc;
}

.public-notice.critical {
  border-color: #f2b5b5;
  background: #fff0f0;
}

.public-notice strong {
  color: var(--ink);
}

.public-notice span,
.public-notice small {
  color: var(--muted);
}

.public-notice small {
  font-size: 0.78rem;
  font-weight: 700;
}


.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: 7px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(16, 45, 65, 0.12);
  pointer-events: none;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.ai-comment-head {
  display: flex;
  align-items: center;
  min-width: 0;
}

.ai-comment-head span {
  color: #006b45;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ai-comment-panel p.important {
  font-weight: 800;
  color: #1f2d3a;
}

.ai-comment-panel.is-new-message {
  border-color: #efd17a;
  background: #fff3c4;
  box-shadow: 0 12px 28px rgba(151, 111, 18, 0.16);
}

.ai-comment-panel.is-new-message.tone-success {
  border-color: #8ac8a2;
  background: #def7e8;
  box-shadow: 0 12px 28px rgba(18, 128, 65, 0.16);
}

.ai-comment-panel.is-new-message.tone-notice {
  border-color: #efd17a;
  background: #fff3c4;
  box-shadow: 0 12px 28px rgba(151, 111, 18, 0.16);
}

.ai-comment-panel.is-new-message.tone-warning {
  border-color: #f26b6b;
  background: #ffe1e1;
  box-shadow: 0 12px 28px rgba(180, 35, 35, 0.20);
}

.ai-comment-panel.is-new-message .ai-comment-head span {
  color: #006b45;
}

.ai-comment-panel.is-new-message p.important {
  color: #172331;
}

.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;
}

.cvrcak-companion {
  position: fixed;
  right: clamp(18px, 3vw, 42px);
  bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  width: clamp(72px, 8vw, 116px);
  pointer-events: none;
  opacity: 0.96;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.14));
}

.cvrcak-companion img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 760px) {
  .ai-comment-panel {
    left: 14px;
    right: 14px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px;
    min-height: 42px;
    padding: 8px 10px;
  }

  .app-shell.with-ai-comment .main {
    height: calc(100dvh - 54px - 70px - env(safe-area-inset-bottom, 0px));
    padding-bottom: 10px;
    scroll-padding-bottom: 10px;
  }

  .cvrcak-companion {
    right: 12px;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    width: 62px;
    opacity: 0.9;
  }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.topbar h1 {
  font-size: 2rem;
}

.dashboard-hero {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin-bottom: 0;
  padding: 0 2px 14px;
}

.dashboard-hero h1 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.15;
}

.dashboard-actions {
  display: grid;
  grid-template-columns: minmax(150px, 168px) repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  margin-left: auto;
  width: min(620px, 100%);
  min-width: min(100%, 620px);
}

.dashboard-year-control {
  min-width: 0;
}

.dashboard-year-control .year-inline {
  grid-template-columns: auto minmax(92px, 120px);
  width: 100%;
  min-height: 34px;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
}

.dashboard-year-control .year-inline select {
  min-height: 34px;
  padding: 6px 8px;
}

.dashboard-actions .button {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.dashboard-board {
  display: grid;
  grid-template-columns: minmax(640px, 980px) minmax(360px, 1fr);
  grid-template-areas:
    "year ."
    "reservations notices";
  gap: 14px;
  width: 100%;
  max-width: none;
  min-width: 0;
  align-items: start;
}

.dashboard-main-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.dashboard-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(21, 39, 54, 0.08);
  overflow: hidden;
}

.dashboard-year-card {
  grid-area: year;
  position: relative;
}

.dashboard-reservations-panel {
  grid-area: reservations;
}

.dashboard-notices-panel {
  grid-area: notices;
}

.dashboard-card-label {
  position: absolute;
  top: 9px;
  left: 20px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
}

.dashboard-kpis,
.dashboard-notices-panel,
.dashboard-reservations-panel {
  padding: 14px 20px;
}

.dashboard-year-card .dashboard-kpis {
  padding-top: 28px;
}

.dashboard-notices-panel h2,
.dashboard-reservations-panel h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.dashboard-deadlines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.dashboard-deadline {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 9px 12px;
  border: 1px solid #d6e2eb;
  border-radius: 8px;
  background: #ffffff;
  transition: opacity 420ms ease, filter 420ms ease, transform 420ms ease;
}

.dashboard-deadline.is-dismissed {
  opacity: 0;
  filter: blur(3px);
  transform: translateY(-4px) scale(0.985);
  pointer-events: none;
}

.dashboard-deadline.urgent {
  border-color: #ff8b8b;
  background: #ffd9d9;
}

.dashboard-deadline.calm {
  border-color: #cfe3d8;
  background: #f8fcfa;
}

.dashboard-deadline.plain {
  border-color: #d6e2eb;
  background: #ffffff;
}

.deadline-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid currentColor;
  color: #8a5a00;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0;
}

.dashboard-deadline.plain .deadline-icon {
  color: var(--muted);
}

.dashboard-deadline > div > span {
  display: block;
  color: #5d6b78;
  font-size: 0.82rem;
  line-height: 1.2;
}

.dashboard-deadline small {
  color: inherit;
  font-size: inherit;
  font-weight: 500;
}

.dashboard-deadline strong {
  display: block;
  margin-top: 2px;
  color: #111827;
  font-size: 1rem;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.dashboard-payment-due .payment-due-title {
  color: #111827;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.15;
}

.dashboard-payment-due .payment-due-meta {
  display: block;
  margin-top: 2px;
  color: #5d6b78;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2;
}

.dashboard-payment-due .payment-due-amount {
  font-size: 0.92rem;
  margin-top: 1px;
}

.deadline-details {
  margin-top: 5px;
  color: #52687c;
  font-size: 0.78rem;
}

@media (min-width: 901px) {
  .dashboard-deadline {
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 8px;
  }

  .dashboard-deadline .deadline-icon {
    display: none;
  }

  .dashboard-deadline > div > span {
    font-size: 0.76rem;
  }

  .dashboard-deadline strong {
    font-size: 0.9rem;
    line-height: 1.18;
  }

  .deadline-details {
    font-size: 0.72rem;
  }
}

.deadline-details summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 800;
}

.deadline-details ul {
  display: grid;
  gap: 2px;
  margin: 5px 0 0;
  padding-left: 16px;
}

.dashboard-notices-toggle {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #c9d8e4;
  border-radius: 7px;
  background: #ffffff;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
}

.deadline-dismiss {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #007a52;
  cursor: pointer;
}

.deadline-dismiss:focus-visible {
  outline: 3px solid rgba(0, 122, 82, 0.22);
  outline-offset: 2px;
}

.deadline-box {
  width: 20px;
  height: 20px;
  border: 2px solid #b8c7d4;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 2px rgba(16, 45, 65, 0.08);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.deadline-dismiss:hover .deadline-box,
.deadline-dismiss:focus-visible .deadline-box {
  border-color: #48a271;
  background: #f3fbf6;
}

.deadline-check {
  position: absolute;
  top: -3px;
  left: 7px;
  opacity: 0;
  color: #008a3d;
  font-family: var(--font-ui);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 7px rgba(0, 122, 82, 0.22);
  transform: rotate(-12deg) scale(0.2);
  transform-origin: center;
  pointer-events: none;
}

.dashboard-deadline.is-checking .deadline-box {
  border-color: #008a3d;
  background: #e7f7eb;
  transform: scale(0.92);
}

.dashboard-deadline.is-checking .deadline-check {
  animation: deadline-check-pop 1000ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes deadline-check-pop {
  0% {
    opacity: 0;
    transform: rotate(-18deg) scale(0.2) translateY(8px);
  }
  28% {
    opacity: 1;
    transform: rotate(-10deg) scale(1.18) translateY(0);
  }
  72% {
    opacity: 1;
    transform: rotate(-10deg) scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: rotate(-10deg) scale(0.86) translateY(-3px);
  }
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-kpi {
  min-height: 84px;
  padding: 13px 14px;
  border-radius: 8px;
  background: #fbfcfd;
}

.dashboard-kpi span,
.dashboard-kpi small {
  display: block;
  color: var(--muted);
  line-height: 1.25;
}

.dashboard-kpi span {
  font-size: 0.84rem;
}

.dashboard-kpi strong {
  display: block;
  color: #071522;
  font-size: 1.72rem;
  line-height: 1.02;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.dashboard-kpi small {
  margin-top: 4px;
  font-size: 0.78rem;
}

.dashboard-kpi.success small {
  color: #00801f;
  font-weight: 800;
}

.dashboard-reservations-panel,
.dashboard-notices-panel {
  min-width: 0;
}

.dashboard-empty-note {
  grid-column: 1 / -1;
  min-height: 44px;
  padding: 12px;
  border: 1px dashed #cbd7e1;
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--muted);
  font-size: 0.88rem;
}

.dashboard-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dashboard-table {
  min-width: 720px;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.dashboard-table th,
.dashboard-table td {
  padding: 8px 9px;
}

.dashboard-table th {
  color: #7b6f62;
  font-size: 0.78rem;
  text-transform: none;
}

.dashboard-table tbody tr:hover {
  background: #f4f8fb;
}

.dashboard-table td:first-child {
  color: #334155;
  width: 42px;
}

.dashboard-table td:nth-child(2) strong,
.dashboard-table td:nth-child(2) span {
  display: block;
}

.dashboard-table td:nth-child(2) strong {
  color: #071522;
}

.dashboard-table td:nth-child(2) span {
  color: var(--muted);
  font-size: 0.78rem;
}

.dashboard-source {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 8px;
  background: #e8f0f7;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
}

.dashboard-source.airbnb {
  background: #ffe1e7;
  color: #a61e3f;
}

.dashboard-source.booking {
  background: #dbeafe;
  color: #1d4ed8;
}

.dashboard-source.samostalno {
  background: #dff3d9;
  color: #137a22;
}

.dashboard-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.05;
}

.dashboard-status.planned {
  background: #ffe6b8;
  color: #8a4f00;
}

.dashboard-status.paid {
  background: #dff3d9;
  color: #137a22;
}

.dashboard-status.late {
  background: #ffd9d9;
  color: #a12020;
}

.dashboard-empty {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 1180px) {
  .dashboard-board {
    grid-template-columns: 1fr;
    grid-template-areas:
      "year"
      "notices"
      "reservations";
  }
}

.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;
}

.main,
.panel,
.form-panel,
.layout-grid > *,
.dashboard-layout > *,
.dashboard-stack {
  min-width: 0;
}


.onboarding-panel {
  margin: 0 0 18px;
  border-color: #cfe3d8;
  background: #fbfdf9;
}

.onboarding-panel h2 {
  margin: 0;
  font-size: 1.18rem;
}

.onboarding-demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.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: 7px;
  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;
}

.demo-guide-panel {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  border-color: #f1bd5d;
  background: #fffdf6;
}

.demo-guide-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.demo-guide-head h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.demo-guide-head p {
  max-width: 920px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.demo-guide-progress {
  display: grid;
  place-items: center;
  min-width: 88px;
  padding: 10px;
  border: 1px solid #e2c268;
  border-radius: 7px;
  background: #fff8e6;
  color: #6d4400;
}

.demo-guide-progress strong {
  font-size: 1.25rem;
  line-height: 1;
}

.demo-guide-progress span {
  margin-top: 3px;
  font-size: 0.78rem;
}

.demo-guide-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid #d7e3dc;
  border-radius: 7px;
  background: #ffffff;
  color: #32465c;
  line-height: 1.4;
}

.demo-guide-note strong {
  white-space: nowrap;
}

.demo-guide-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.demo-guide-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e4dfcf;
  border-radius: 7px;
  background: #ffffff;
}

.demo-guide-step h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.demo-guide-step p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.42;
}

.demo-guide-step.done {
  border-color: #b8ddc5;
  background: #fbfdf9;
}

.demo-guide-step.done .onboarding-number {
  background: #dff3e7;
  color: #006b45;
}

.demo-guide-step .button {
  width: 100%;
}

.demo-guide-finish {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid #f1bd5d;
  border-radius: 7px;
  background: #fff8e6;
}

.demo-guide-finish > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.demo-guide-finish span {
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .demo-guide-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .demo-guide-head {
    grid-template-columns: 1fr;
  }

  .demo-guide-progress {
    justify-items: start;
    place-items: start stretch;
    min-width: 0;
  }

  .demo-guide-note {
    display: grid;
  }

  .demo-guide-note strong {
    white-space: normal;
  }

  .demo-guide-steps {
    grid-template-columns: 1fr;
  }

  .demo-guide-finish {
    display: grid;
  }

  .demo-guide-finish .button {
    width: 100%;
  }
}

.property-stack {
  align-items: start;
}

.profile-stack {
  max-width: 1180px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  align-items: start;
}

.profile-stack > .backup-panel {
  grid-column: 1;
}

.profile-stack > .cloud-sync-panel {
  grid-column: 2;
}

.profile-form-panel {
  padding: 16px;
}

.profile-form-grid {
  gap: 10px 12px;
}

.profile-form-grid .profile-field-name {
  grid-column: 1 / -1;
}

.profile-form-panel .actions {
  margin-top: 12px;
}

.date-display-input {
  font-variant-numeric: tabular-nums;
}

.profile-save-button {
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.profile-save-button.is-saved,
.profile-save-button.is-saved:hover,
.profile-save-button.is-saved:disabled {
  border-color: #9fb2c5;
  background: #9fb2c5;
  color: #f8fbff;
  opacity: 0.72;
  filter: saturate(0.55) blur(0.15px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
  cursor: default;
}

.profile-save-button.is-saved-pulse {
  animation: profile-save-confirm 900ms ease-out;
}

@keyframes profile-save-confirm {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 122, 82, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.32);
    transform: scale(1);
  }
  35% {
    box-shadow: 0 0 0 8px rgba(0, 122, 82, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.32);
    transform: scale(0.98);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(0, 122, 82, 0), inset 0 1px 0 rgba(255, 255, 255, 0.32);
    transform: scale(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;
}

.local-data-note {
  display: grid;
  gap: 3px;
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid #cfe3d8;
  border-radius: 7px;
  background: #f8fcfa;
  color: #52687c;
  font-size: 0.9rem;
  line-height: 1.35;
}

.local-data-note strong {
  color: #006b45;
}

.local-data-note span {
  display: block;
}

.backup-name-field {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.backup-name-field > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.backup-name-field input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.backup-name-field .button {
  min-width: 72px;
  min-height: 38px;
  padding: 8px 10px;
  white-space: nowrap;
}

.backup-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.backup-panel-actions .button {
  min-height: 38px;
  padding-inline: 12px;
  white-space: nowrap;
}

.button.is-busy {
  cursor: wait;
  opacity: 0.76;
}

.demo-data-banner {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #f1bd5d;
  border-radius: 7px;
  background: #fff8e6;
  color: #6d4400;
}

.demo-data-banner > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.demo-data-banner strong {
  color: #8a5700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.demo-data-banner span {
  font-size: 0.92rem;
  line-height: 1.35;
}

.demo-payment-lock {
  border-color: #f1bd5d;
  background: #fff8e6;
}

.cloud-sync-pending-button[aria-disabled="true"] {
  border-style: dashed;
  cursor: help;
  opacity: 0.82;
}

.cloud-sync-pending-button[aria-disabled="true"]:hover {
  background: #eef6ff;
}

.cloud-sync-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
  border-color: #b8d7ec;
  background: #f7fbff;
}

.cloud-sync-panel h2 {
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.cloud-sync-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cloud-sync-summary > div,
.cloud-sync-terms {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #d6e5f1;
  border-radius: 7px;
  background: #ffffff;
}

.cloud-sync-summary strong,
.cloud-sync-terms strong {
  color: #0a67b1;
}

.cloud-sync-summary span,
.cloud-sync-terms span,
.cloud-sync-note {
  color: #52687c;
  font-size: 0.9rem;
}

.cloud-sync-hash {
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cloud-sync-terms-full {
  margin-top: 8px;
}

.cloud-sync-terms-full summary {
  cursor: pointer;
  color: #0a67b1;
  font-weight: 800;
}

.cloud-sync-terms-body {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid #d6e5f1;
  border-radius: 7px;
  background: #f7fbff;
}

.cloud-sync-terms-title {
  margin: 0 0 8px;
  color: #071522;
  font-weight: 800;
}

.cloud-sync-terms-body li {
  margin: 0 0 7px 18px;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.35;
}

.cloud-sync-note {
  margin: 0;
}

.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;
}

.access-notice-panel {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 16px;
  padding: 18px;
  border: 1px solid #f0c979;
  border-radius: 8px;
  background: #fff8e7;
  color: var(--ink);
}

.access-notice-panel.compact {
  margin-bottom: 12px;
  padding: 14px 16px;
}

.access-notice-panel h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.access-notice-panel p {
  margin: 4px 0 0;
  color: #5c5140;
}

.read-only-disabled {
  cursor: not-allowed !important;
}

@media (max-width: 760px) {
  .access-notice-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .access-notice-panel .button {
    width: 100%;
  }
}

.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: 7px;
  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%, 680px);
  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(12, minmax(0, 1fr));
}

.property-form-panel .property-form-grid > label:not(.full):not(.capacity-field):not(.textarea-compact) {
  grid-column: span 6;
}

.property-form-panel .property-form-grid .capacity-field {
  grid-column: span 4;
}

.property-name-import-hint {
  margin: -3px 0 3px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.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;
}

.property-tabs {
  justify-content: flex-start;
  margin: 0 0 12px;
}

.property-tabs .entries-tab {
  flex: 0 0 112px;
  width: 112px;
  padding-left: 8px;
  padding-right: 8px;
}

.property-topbar-actions {
  gap: 8px;
}

.house-rules-editor-panel {
  width: min(100%, 860px);
}

.house-rules-form {
  display: grid;
  gap: 13px;
}

.house-rules-time-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.house-rules-time-field {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #f0c94b;
  border-radius: 8px;
  background: #fff7d6;
}

.house-rules-time-field span {
  color: #6f5600;
  font-size: 0.82rem;
  font-weight: 900;
}

.house-rules-time-field input {
  border-color: #d4a90d;
  background: #fffdf2;
  font-weight: 900;
  text-align: center;
}

.house-rules-print {
  display: none;
}

.house-rules-sheet {
  width: min(820px, 100%);
  min-width: 760px;
  margin: 0 auto;
  padding: 24px 30px;
  background: #ffffff;
  color: #111827;
  font-family: Arial, var(--font-ui, sans-serif);
  font-size: 0.92rem;
  line-height: 1.34;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

.house-rules-sheet-header {
  display: flex;
  justify-content: flex-end;
  align-items: start;
  padding-bottom: 6px;
  border-bottom: 0 !important;
}

.house-rules-sheet-header > :not(.price-list-page-logo) {
  display: none !important;
}

.house-rules-kicker {
  margin: 0 0 3px;
  color: #4b5563;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.house-rules-sheet h1 {
  margin: 0 0 5px;
  color: #111827;
  font-size: 1.42rem;
}

.house-rules-owner-line {
  display: grid;
  gap: 2px;
  color: #4b5563;
  font-size: 0.78rem;
  font-weight: 700;
}

.house-rules-language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.house-rules-language {
  padding: 10px;
  border: 1px solid #d6dee8;
  border-radius: 6px;
  background: #f8fbff;
}

.house-rules-language-en,
.house-rules-language-it {
  background: #fffdf0;
}

.house-rules-language-head {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.house-rules-lang-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border: 1px solid #b9c8d8;
  border-radius: 4px;
  color: #0b69b3;
  font-size: 0.72rem;
  font-weight: 900;
}

.house-rules-language h2 {
  margin: 0;
  color: #0b69b3;
  font-size: 1rem;
  text-transform: uppercase;
}

.house-rules-language strong {
  display: block;
  margin-top: 2px;
  color: #0b69b3;
  font-size: 0.78rem;
  font-style: italic;
}

.house-rules-intro {
  margin: 8px 0;
  font-weight: 700;
  font-style: italic;
}

.house-rules-language ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 16px;
}

.house-rules-language li {
  padding-left: 2px;
}

.house-rules-closing {
  margin: 10px 0 0;
  color: #0b69b3;
  font-weight: 800;
  font-style: italic;
  text-align: center;
}

.property-price-panel {
  width: min(100%, 860px);
}

.property-price-object-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.property-price-object-row label {
  color: var(--muted);
  font-weight: 900;
}

.property-price-object-row select {
  width: min(260px, 100%);
  flex: 0 1 260px;
  font-weight: 800;
}

.house-rules-object-row {
  justify-content: flex-start;
}

.house-rules-object-row select {
  width: min(420px, 100%);
  flex: 1 1 320px;
}

.property-price-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 14px;
  align-items: start;
}

.property-price-main {
  min-width: 0;
}

.property-price-list-editor {
  display: grid;
  gap: 9px;
  margin-top: 0;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.property-price-list-editor h2,
.property-price-list-editor h3 {
  margin: 0;
  font-size: 0.98rem;
}

.property-price-list-editor .section-title p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.property-price-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.property-price-meta input,
.property-price-meta .money-input input,
.price-list-row .money-input input {
  font-weight: 400;
}

.property-price-meta .money-input span {
  font-weight: 400;
}

.price-list-print-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.price-list-print-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
}

.price-list-print-panel .button {
  width: 100%;
}

.price-list-valid-field {
  gap: 5px;
}

.price-list-valid-field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.price-list-rows-editor {
  display: grid;
  gap: 5px;
}

.price-list-row-head,
.price-list-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 6px;
  align-items: center;
}

.price-list-row-head {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.price-list-row input {
  min-height: 30px;
  padding: 5px 8px;
}

.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: 7px;
  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;
}

.checkbox-line {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #d6e5f1;
  border-radius: 7px;
  background: #f8fcfa;
  color: #52687c;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--green);
}

.checkbox-line span {
  min-width: 0;
}

.vat-id-confirmation {
  transition: opacity 1000ms ease, filter 1000ms ease, transform 1000ms ease;
}

.vat-id-confirmation.is-confirming {
  opacity: 0;
  filter: blur(3px);
  transform: translateY(-4px) scale(0.985);
  pointer-events: none;
}


.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: 7px;
  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.68rem;
}

.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 #c8d7e2;
  border-radius: 50%;
  background: #f8fbfd;
  color: #4f718b;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  font-style: italic;
}

.help-dot:hover,
.help-dot:focus {
  border-color: #8fb2ca;
  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;
}

input[readonly],
.auto-field input,
.auto-field .money-input,
.auto-field .money-input input {
  background: #f1f5f8;
  color: #536879;
  cursor: default;
}

.auto-field .money-input span {
  background: #e9eff4;
  color: #637588;
}

input[readonly]:focus,
.auto-field input:focus {
  outline-color: rgba(99, 117, 136, 0.16);
}

.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;
}

.entries-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 0;
  margin-left: auto;
}

.entries-actions .year-inline {
  min-width: 150px;
}

.entries-actions .button {
  min-height: 40px;
  white-space: nowrap;
}

.entries-print-button {
  width: 90px;
}

.entries-print-placeholder {
  visibility: hidden;
  pointer-events: none;
}

.entries-back-actions {
  margin-top: 0;
  margin-left: auto;
}

.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;
}

.mobile-fixed-actions-guard {
  display: none;
}

.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;
}

.entry-preview-panel {
  display: grid;
  gap: 18px;
}

.entry-preview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.entry-preview-head > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.entry-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.entry-preview-field {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.entry-preview-field span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.entry-preview-field strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.98rem;
}

.entry-preview-field.money-field strong {
  font-variant-numeric: tabular-nums;
}

.entry-preview-note {
  color: var(--muted);
}

.entry-preview-actions {
  margin-top: 0;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}

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;
}

.table-wrap th,
.dashboard-table th,
.subscriber-history-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fbfd;
}

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

.entries-mobile-table-head {
  display: none;
}

.entries-traffic-table thead th {
  position: sticky;
  top: 0;
  z-index: 6;
  background: #f8fbfd;
  box-shadow: 0 1px 0 var(--line), 0 6px 12px rgba(15, 23, 42, 0.06);
}

@media screen and (max-width: 900px) {
  .entries-mobile-table-head {
    position: sticky;
    top: 44px;
    z-index: 8;
    display: grid;
    grid-template-columns: 88px 144px minmax(170px, 1fr);
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 0 12px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #f8fbfd;
    box-shadow: 0 1px 0 var(--line), 0 6px 12px rgba(15, 23, 42, 0.06);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .entries-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
  }

  .entries-traffic-table thead {
    display: none;
  }

  .entries-traffic-table thead th {
    position: static;
    top: auto;
  }
}

.table-wrap tbody tr:nth-child(even),
.dashboard-table tbody tr:nth-child(even),
.subscriber-history-table tbody tr:nth-child(even) {
  background: #fbfcfd;
}

.table-wrap tbody tr:hover,
.dashboard-table tbody tr:hover,
.subscriber-history-table tbody tr:hover {
  background: #f4f8fb;
}

.money,
.number {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.entry-status-cell {
  min-width: 120px;
  text-align: center;
}

.table-link-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
}

.table-link-button:hover,
.table-link-button:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}


.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;
}

.entries-panel {
  display: grid;
  gap: 16px;
}

.entries-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.entries-tab {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.entries-tab-invoices,
.entries-tab-ep {
  width: 88px;
  padding-left: 10px;
  padding-right: 10px;
}

.entries-tab.active {
  border-color: var(--line);
  background: #ffffff;
  color: var(--blue);
}

.entries-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 20px;
  margin-left: 8px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #fff1c2;
  color: #805300;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
}

.entries-topbar .entries-actions [data-clear-entries] {
  display: none !important;
}

.entries-tab-intro h2 {
  margin: 0 0 4px;
  font-size: 1.08rem;
}

.entries-tab-intro p {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
}

.invoice-status.draft {
  background: #fff4cf;
  color: #8a6500;
}

.invoice-status.issued,
.invoice-status.locked {
  background: #dff2e8;
  color: #0f5132;
}

.invoice-status.storno {
  background: #fdecec;
  color: #a83232;
}

.invoice-correction-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.invoice-correction-banner {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #b8d7eb;
  border-radius: 7px;
  background: #eef7fc;
  color: #0b5687;
}

.invoice-correction-banner span {
  color: var(--muted);
}

.ep-draft-warning,
.obligation-draft-warning {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #efc27a;
  border-radius: 7px;
  background: #fff7df;
  color: #6f4d00;
}

.ep-draft-warning ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
}

.ep-draft-warning li span {
  color: var(--muted);
}

.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: 7px;
  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: 7px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.confirm-modal p {
  margin: 12px 0 0;
  color: var(--muted);
}

.confirm-field {
  margin-top: 14px;
}

.confirm-field input {
  font-size: 1rem;
  font-weight: 800;
}

.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;
}

.annual-obligations-sheet {
  margin-bottom: 20px;
}

.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 .obligations-col-month {
  width: 7%;
}

.obligations-table .obligations-col-invoices {
  width: 11%;
}

.obligations-table .obligations-col-money {
  width: 9%;
}

.obligations-table .obligations-col-money-wide {
  width: 10%;
}

.obligations-table .obligations-col-vat {
  width: 8%;
}

.obligations-table .obligations-col-due {
  width: 12%;
}

.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 .obligations-group-row th {
  padding-top: 9px;
  padding-bottom: 9px;
  font-size: 0.9rem;
  letter-spacing: 0;
}

.obligations-table .obligations-label-row th {
  font-size: 0.78rem;
}

.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;
}

.annual-obligations-wrap {
  overflow-x: auto;
}

.annual-obligations-table {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.78rem;
}

.annual-obligations-table th,
.annual-obligations-table td {
  border: 1px solid #1f2d36;
  padding: 7px 6px;
  text-align: center;
  vertical-align: middle;
}

.annual-obligations-table thead th {
  background: #d7e8f6;
  color: #52687c;
  font-weight: 400;
  text-transform: uppercase;
}

.annual-obligations-table .annual-obligation-name {
  width: 190px;
  text-align: left;
  background: #eef5f2;
  color: #0f2a3b;
  font-weight: 400;
  text-transform: none;
}

.annual-obligation-empty {
  background: #f6f8fa;
}

.annual-obligation-cell {
  font-weight: 400;
  line-height: 1.2;
  position: relative;
  cursor: default;
}

.annual-obligation-cell span {
  display: block;
  min-height: 18px;
}

.annual-obligation-cell:focus {
  outline: 2px solid #1d4ed8;
  outline-offset: -2px;
}

.annual-obligation-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  display: none;
  min-width: 260px;
  max-width: 420px;
  padding: 10px 12px;
  border: 1px solid #4b5563;
  border-radius: 4px;
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  pointer-events: none;
}

.annual-obligation-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 10px;
  height: 10px;
  border-left: 1px solid #4b5563;
  border-top: 1px solid #4b5563;
  background: #ffffff;
  transform: translateX(-50%) rotate(45deg);
}

.annual-obligation-tooltip.visible {
  display: grid;
  gap: 4px;
}

.annual-obligation-tooltip-line {
  display: block;
}

.annual-obligation-tooltip-line.past {
  color: #16834a;
}

.annual-obligation-tooltip-line.done {
  color: #16834a;
}

.annual-obligation-tooltip-line.current {
  color: #a16207;
}

.annual-obligation-tooltip-line.future {
  color: #8b1e1e;
}

.annual-obligation-cell.pending {
  background: #ffffff;
}

.annual-obligation-cell.overdue {
  background: #ffd7d7;
  color: #7c1d1d;
}

.annual-obligation-cell.partial {
  background: #d9f0dc;
  color: #0f5d35;
  box-shadow: inset 0 0 0 2px #f1c94b;
}

.annual-obligation-cell.done {
  background: #cdeccd;
  color: #075b31;
}

.annual-obligations-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  padding: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.annual-obligations-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.annual-status {
  width: 13px;
  height: 13px;
  border: 1px solid #9db2c2;
  border-radius: 3px;
  background: #ffffff;
}

.annual-status.due {
  background: #fff3cd;
}

.annual-status.overdue {
  background: #ffd7d7;
}

.annual-status.partial {
  background: #d9f0dc;
  box-shadow: inset 0 0 0 2px #f1c94b;
}

.annual-status.done {
  background: #cdeccd;
}


.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: 7px;
  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: 7px;
  color: var(--muted);
}

.obligation-source-notice,
.obligation-review-block {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.obligation-source-notice {
  display: grid;
  gap: 5px;
  border-color: #b8d7eb;
  background: #eef7fc;
}

.obligation-source-notice strong {
  color: #0b5687;
}

.obligation-source-notice span,
.obligation-source-notice small {
  color: var(--muted);
}

.obligation-review-block h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.obligation-review-titleline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.obligation-review-titleline h3 {
  margin-bottom: 0;
}

.obligation-invoice-table-wrap {
  overflow-x: auto;
}

.obligation-invoice-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.obligation-invoice-table th,
.obligation-invoice-table td {
  padding: 8px 9px;
  border: 1px solid var(--line);
  vertical-align: top;
}

.obligation-invoice-table th {
  background: #eef4f8;
  color: var(--muted);
  text-align: left;
  font-weight: 800;
}

.obligation-invoice-table td span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.obligation-formula-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.obligation-formula-grid > div {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
}

.obligation-formula-grid strong {
  color: var(--ink);
}

.obligation-formula-grid span,
.obligation-formula-grid em {
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
}

.obligation-formula-grid em {
  color: #0b6a3a;
  font-weight: 800;
}

.manual-adjustment-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 7px;
  border: 1px solid #b8dcc8;
  border-radius: 999px;
  background: #eef8f2;
  color: #06743f;
  font-size: 0.75rem;
  font-weight: 900;
}

.manual-adjustment-badge.compact {
  padding: 1px 5px;
  font-size: 0.68rem;
  vertical-align: middle;
}

.manual-adjusted-row td {
  background: #f7fcf9;
}

.obligation-adjustment summary {
  cursor: pointer;
  font-weight: 900;
}

.obligation-adjustment-form {
  margin-top: 10px;
}

.obligation-adjustment-form textarea {
  min-height: 76px;
}

.obligation-confirmation {
  border-color: #f0d98b;
  background: #fffdf2;
}

.obligation-confirmation.is-confirmed {
  border-color: #b8dcc8;
  background: #f3fbf6;
}

.obligation-review-checkbox {
  align-items: flex-start;
  margin: 8px 0;
}

.review-confirmed-note {
  margin: 0 0 8px;
  color: #06743f;
  font-weight: 800;
}

.payment-detail.amount small {
  color: #06743f;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}


.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: 8px 18px;
  align-items: start;
}

.payment-barcode-title {
  min-width: 0;
}

.payment-barcode-note,
.payment-barcode-head .payment-warning {
  grid-column: 1 / 2;
  margin: 0;
}

.payment-barcode-action {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 3;
  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: 7px;
  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(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.payment-detail {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.payment-detail.full {
  grid-column: 1 / -1;
}

.payment-detail.half,
.payment-detail.amount,
.payment-detail.description {
  grid-column: span 2;
}

.payment-detail.model {
  grid-column: span 1;
}

.payment-detail.reference {
  grid-column: span 3;
}

.payment-detail.amount {
  border-color: #b9dcc8;
  background: #eef8f2;
}

.payment-details span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.payment-details strong {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.payment-detail.iban strong,
.payment-detail.reference strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.payment-detail.reference strong {
  white-space: nowrap;
}

.payment-detail.amount strong {
  color: #06743f;
  font-size: 1.16rem;
}

.payment-warning {
  margin-top: 8px;
  color: #9a3412;
  font-weight: 800;
}

.ep-print {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  touch-action: pan-x pan-y;
  background: #ffffff;
  color: #000000;
}

.ep-sheet {
  width: min(980px, 100%);
  min-width: 860px;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 34px;
  background: #ffffff;
  font-family: var(--font-ui, Arial, sans-serif);
  font-size: 1.02rem;
  line-height: 1.15;
}

.ep-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  margin-bottom: 10px;
  font-size: 1.04rem;
}

.ep-head em {
  font-style: italic;
}

.ep-title {
  text-align: center;
  margin: 6px 0 8px;
}

.ep-title h1 {
  font-size: 1.36rem;
  line-height: 1.1;
  margin: 0;
}

.ep-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 2px solid #000000;
  font-family: inherit;
  font-size: 1rem;
}

.ep-col-number {
  width: 8.5%;
}

.ep-col-invoice-number {
  width: 15%;
}

.ep-col-invoice-date {
  width: 16.5%;
}

.ep-col-user {
  width: 33%;
}

.ep-col-amount {
  width: 25%;
}

.ep-table th,
.ep-table td {
  border: 1px solid #000000;
  color: #000000;
  padding: 6px 8px;
  vertical-align: middle;
}

.ep-table th {
  background: #ffffff;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.12;
  text-transform: none;
}

.ep-table thead tr:last-child th,
.ep-table thead tr:nth-last-child(2) th {
  border-top-width: 2px;
  border-bottom-width: 2px;
  text-align: center;
}

.ep-table .ep-section-row th,
.ep-table .ep-meta-row th {
  height: 28px;
  padding: 4px 10px;
  text-align: left;
}

.ep-table .ep-section-row th {
  font-size: 1.03rem;
}

.ep-table .ep-meta-row th strong {
  font-weight: 700;
}

.ep-table .ep-center {
  text-align: center;
}

.ep-table tbody tr {
  height: 34px;
}

.ep-total-row td {
  font-weight: 800;
}

.ep-total-row td:first-child {
  text-align: right;
}

.invoice-print {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  color: #000000;
}

.invoice-sheet {
  width: min(900px, 100%);
  min-width: 820px;
  max-width: 900px;
  margin: 0 auto;
  padding: 34px 38px 32px;
  background: #ffffff;
  color: #000000;
  font-family: Arial, var(--font-ui, sans-serif);
  font-size: 0.92rem;
  line-height: 1.3;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

.invoice-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid #111827;
}

.invoice-title-block h1 {
  margin: 4px 0 0;
  font-size: 1.42rem;
  line-height: 1.15;
  font-weight: 800;
  color: #111827;
}

.invoice-kicker {
  margin: 0;
  color: #4b5563;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.invoice-app-mark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  justify-self: end;
  min-width: 132px;
  gap: 5px;
  color: #334155;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.16;
  text-align: center;
}

.invoice-app-mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 7px;
}

.invoice-app-mark span {
  white-space: nowrap;
}

.invoice-number-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.invoice-number-line h1 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.invoice-party-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 14px;
  margin-bottom: 20px;
}

.invoice-party {
  min-height: 146px;
  padding: 13px 14px;
  border: 1px solid #111827;
  background: #ffffff;
}

.invoice-party h2 {
  margin: -13px -14px 11px;
  padding: 7px 10px;
  border-bottom: 1px solid #111827;
  background: #f3f4f6;
  color: #111827;
  font-size: 0.82rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.invoice-party p {
  margin: 4px 0;
}

.invoice-service-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1.5px solid #111827;
  font-size: 0.84rem;
}

.invoice-service-table th,
.invoice-service-table td {
  border: 1px solid #111827;
  padding: 8px 7px;
  color: #000000;
  vertical-align: middle;
}

.invoice-service-table tbody tr {
  height: 47px;
}

.invoice-service-table th {
  background: #f3f4f6;
  text-transform: none;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.18;
}

.invoice-service-table th:nth-child(1) {
  width: 25%;
}

.invoice-service-table th:nth-child(2) {
  width: 18%;
}

.invoice-service-table th:nth-child(3) {
  width: 14%;
}

.invoice-service-table th:nth-child(4) {
  width: 12%;
}

.invoice-service-table th:nth-child(5),
.invoice-service-table th:nth-child(6) {
  width: 15.5%;
}

.invoice-service-table small {
  display: block;
  margin-top: 3px;
  color: #374151;
  font-size: 0.68rem;
  line-height: 1.18;
}

.invoice-service-main {
  display: block;
  font-weight: 400;
}

.invoice-cleaning-row td {
  background: #ffffff;
  text-align: center;
  vertical-align: middle;
  font-size: inherit;
  line-height: inherit;
}

.invoice-cleaning-row .money {
  text-align: center;
  white-space: nowrap;
}

.invoice-service-row td {
  text-align: center;
  vertical-align: middle;
}

.invoice-center {
  text-align: center;
}

.invoice-service-table .invoice-note-row td {
  background: #fafafa;
}

.invoice-service-table .invoice-tax-note-cell {
  background: #ffffff;
  text-align: center;
  vertical-align: middle;
  font-size: 0.9rem;
  line-height: 1.35;
}

.invoice-service-table .invoice-billing-row td:nth-last-child(-n + 2),
.invoice-service-table .invoice-payout-row td:nth-last-child(-n + 2) {
  background: #eef2f7;
}

.invoice-payment-method {
  margin: 18px 0 28px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  font-size: 0.84rem;
  font-weight: 400;
}

.invoice-average-note {
  margin: 12px 0 -8px;
  color: #111827;
  font-size: 0.78rem;
  font-weight: 400;
}

.invoice-vat-note {
  margin: -16px 0 28px;
  padding: 9px 12px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-size: 0.84rem;
  font-weight: 400;
}

.invoice-signature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
  align-items: end;
  margin-top: 22px;
}

.invoice-signature-row span {
  display: block;
  margin-bottom: 38px;
  text-align: center;
}

.invoice-signature-row strong {
  display: block;
  border-top: 1px solid #000000;
  padding-top: 6px;
  text-align: center;
}

.price-list-print {
  width: 100%;
  overflow-x: auto;
  background: #ffffff;
  color: #000000;
}

.price-list-sheet {
  width: min(820px, 100%);
  min-width: 760px;
  margin: 0 auto;
  padding: 28px 38px;
  background: #ffffff;
  color: #000000;
  font-family: Arial, var(--font-ui, sans-serif);
  font-size: 0.96rem;
  line-height: 1.28;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

.price-list-sheet-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 18px;
  align-items: start;
  padding-bottom: 10px;
  border-bottom: 2px solid #111827;
}

.price-list-page-logo {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  justify-self: end;
  gap: 5px;
  color: #334155;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.16;
  text-align: center;
}

.price-list-page-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 7px;
}

.price-list-page-logo span {
  white-space: nowrap;
}

.price-list-sheet em {
  font-style: italic;
  font-weight: inherit;
}

.price-list-kicker {
  margin: 0 0 3px;
  color: #4b5563;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.price-list-sheet h1 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 1.58rem;
}

.price-list-owner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}

.price-list-owner-grid p,
.price-list-notes p,
.price-list-notes li {
  margin: 0;
}

.price-list-property {
  margin-top: 14px;
  text-align: center;
  break-inside: avoid;
  page-break-inside: avoid;
}

.price-list-property h2 {
  margin: 0 0 5px;
  font-size: 1.68rem;
  color: #111827;
}

.price-list-stars {
  display: inline-block;
  margin-left: 6px;
  color: #f3b316;
  letter-spacing: 1px;
  text-shadow: 0 0 0 #6b4c00;
}

.price-list-property-kicker {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.price-list-season-lines {
  display: grid;
  gap: 4px;
  width: min(560px, 100%);
  margin: 0 auto;
}

.price-list-season-line {
  display: grid;
  grid-template-columns: 136px 96px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  text-align: left;
  font-size: 1.05rem;
}

.price-list-season-period,
.price-list-season-price {
  color: #000000;
  font-size: 1.1rem;
  font-weight: 800;
  white-space: nowrap;
}

.price-list-season-price {
  text-align: right;
}

.price-list-season-note {
  color: #111827;
  font-size: 0.94rem;
}

.price-list-property-info {
  display: grid;
  gap: 2px;
  margin-top: 7px;
  color: #000000;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.18;
}

.price-list-property-info p,
.price-list-empty-line {
  margin: 0;
}

.price-list-notes {
  margin-top: 14px;
  color: #000000;
  font-size: 0.74rem;
  line-height: 1.18;
}

.price-list-notes ul {
  margin: 0;
  padding-left: 16px;
}

.price-list-valid-from {
  margin: 18px 0 0;
  text-align: center;
  color: #000000;
  font-size: 0.84rem;
}

@media (max-width: 760px) {
  .entries-tabs {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.82fr) minmax(0, 0.78fr);
    gap: 4px;
    align-items: end;
  }

  .entries-tab {
    width: 100%;
    min-width: 0;
    padding: 7px 5px;
    font-size: 0.74rem;
    line-height: 1.08;
    white-space: normal;
  }

  .property-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .property-tabs .entries-tab {
    width: 100%;
    flex-basis: auto;
    min-height: 36px;
    font-size: 0.78rem;
  }

  .entries-tab-invoices,
  .entries-tab-ep {
    width: 100%;
    padding-left: 5px;
    padding-right: 5px;
  }

  .entries-tab-intro p {
    font-size: 0.86rem;
  }

  .invoice-sheet {
    min-width: 820px;
    padding: 22px;
  }
}

.tz2-print {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  color: #000000;
}

.tz2-sheet {
  width: min(940px, 100%);
  min-width: 820px;
  max-width: 940px;
  margin: 0 auto;
  padding: 26px;
  background: #ffffff;
  font-size: 0.9rem;
  line-height: 1.18;
}

.tz2-warning {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #f2c17f;
  border-radius: 7px;
  background: #fff8e8;
  color: #7c3f00;
  font-size: 0.92rem;
  line-height: 1.35;
}

.tz2-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.tz2-head span {
  display: block;
}

.tz2-form-label {
  align-self: end;
  font-style: italic;
  font-weight: 700;
}

.tz2-office-table,
.tz2-taxpayer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.85fr);
  border: 1px solid #222222;
  border-bottom: 0;
}

.tz2-office-table {
  margin-bottom: 8px;
}

.tz2-office-table > *,
.tz2-taxpayer-grid > * {
  min-height: 28px;
  padding: 4px 6px;
  border-bottom: 1px solid #222222;
}

.tz2-office-table > :nth-child(odd),
.tz2-taxpayer-grid > :nth-child(odd) {
  border-right: 1px solid #222222;
}

.tz2-office-table strong,
.tz2-taxpayer-grid strong {
  display: grid;
  place-items: center end;
  text-align: right;
}

.tz2-title {
  margin: 14px 0 2px;
  border: 1px solid #222222;
  text-align: center;
}

.tz2-title h2 {
  padding: 4px 8px;
  font-size: 1rem;
  font-weight: 500;
}

.tz2-title span {
  display: block;
  margin-top: 2px;
  text-align: right;
  font-size: 0.78rem;
  font-style: italic;
}

.tz2-table,
.tz2-mini-table {
  width: 100%;
  border-collapse: collapse;
}

.tz2-table th,
.tz2-table td,
.tz2-mini-table th,
.tz2-mini-table td {
  border: 1px solid #222222;
  color: #000000;
}

.tz2-table th,
.tz2-table td {
  padding: 6px 6px;
}

.tz2-mini-table th,
.tz2-mini-table td {
  padding: 6px 8px;
}

.tz2-table th {
  background: #d4d4d4;
  text-transform: none;
  text-align: center;
}

.tz2-column-numbers th {
  padding: 2px 6px;
  background: #ffffff;
  font-size: 0.72rem;
  line-height: 1;
}

.tz2-center {
  text-align: center;
}

.tz2-money {
  text-align: right;
  white-space: nowrap;
}

.tz2-summary-row,
.tz2-payment-row,
.tz2-total-revenue-row td {
  background: #d4d4d4;
  font-weight: 800;
}

.tz2-payment-title {
  text-align: center;
  vertical-align: middle;
}

.tz2-payment-row small {
  display: block;
  font-size: 0.74rem;
}

.tz2-capacity-check,
.tz2-limitations {
  margin-top: 18px;
}

.tz2-capacity-check h3,
.tz2-limitations h3 {
  margin-bottom: 8px;
}

.tz2-limitations ul {
  margin: 0;
  padding-left: 20px;
}

.tz2-limitations li {
  margin-bottom: 5px;
}

.tz2-signature {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 26px;
}

.tz2-footnote {
  margin: 16px 0 0;
  font-size: 0.78rem;
}


.occupancy-print {
  background: #ffffff;
  color: var(--ink);
}

.occupancy-sheet {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px;
  background: #ffffff;
}

.occupancy-view-tabs {
  max-width: 1320px;
  margin: 0 auto 10px;
}

.occupancy-view-tabs .entries-tab {
  min-width: 104px;
}

.planner-sheet {
  max-width: 1480px;
}

.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-planner-scroll {
  max-height: calc(100dvh - 210px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.occupancy-planner-grid {
  position: relative;
  isolation: isolate;
  --planner-month-width: 28px;
  --planner-date-width: 52px;
  --planner-property-width: 190px;
  --planner-day-height: 32px;
}

.occupancy-planner-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  height: 38px;
}

.occupancy-planner-month-corner,
.occupancy-planner-corner,
.occupancy-planner-object-head {
  min-width: 0;
  border-bottom: 1px solid #cbd7e2;
  background: #f7fbff;
  font-weight: 900;
}

.occupancy-planner-month-corner {
  position: sticky;
  left: 0;
  z-index: 22;
  border-right: 1px solid #cbd7e2;
}

.occupancy-planner-corner {
  position: sticky;
  left: 28px;
  z-index: 21;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #cbd7e2;
}

.occupancy-planner-object-head {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-right: 1px solid #d7e0e8;
  text-align: center;
}

.occupancy-planner-body {
  position: relative;
}

.occupancy-planner-month-cell {
  position: absolute;
  left: 0;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 28px;
  padding-top: 4px;
  border-right: 1px solid #cbd7e2;
  border-bottom: 1px solid #dce6ef;
  background: #eef7ff;
  color: #0a67b1;
  font-size: 0.7rem;
  font-weight: 900;
}

.occupancy-planner-month-cell span {
  position: sticky;
  top: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-height: calc(100% - 8px);
  overflow: hidden;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

.occupancy-planner-month-cell.current-month {
  background: #dff0ff;
  color: #064f87;
}

.occupancy-planner-day-row {
  display: grid;
  height: 32px;
}

.occupancy-planner-day-row.month-start > * {
  border-top: 2px solid #0a67b1;
}

.occupancy-planner-day-row.weekend .occupancy-planner-date-cell {
  background: #fff7f0;
}

.occupancy-planner-day-row.today .occupancy-planner-date-cell {
  box-shadow: inset 3px 0 0 var(--blue);
}

.occupancy-planner-month-track {
  position: sticky;
  left: 0;
  z-index: 4;
  border-right: 1px solid #cbd7e2;
  border-bottom: 1px solid #eef2f5;
  background: #eef7ff;
}

.occupancy-planner-date-cell {
  position: sticky;
  left: 28px;
  z-index: 4;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 0 6px;
  border-right: 1px solid #cbd7e2;
  border-bottom: 1px solid #eef2f5;
  background: #ffffff;
  font-size: 0.76rem;
}

.occupancy-planner-date-cell strong {
  font-weight: 900;
}

.occupancy-planner-date-cell em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
}

.occupancy-planner-day-bg {
  border-right: 1px solid #edf1f5;
  border-bottom: 1px solid #eef2f5;
  background: #ffffff;
}

.occupancy-planner-day-bg.weekend {
  background: #fffaf4;
}

.occupancy-planner-day-bg.month-start {
  border-top: 2px solid #0a67b1;
}

.occupancy-planner-day-bg.today {
  background: #eef7ff;
}

.occupancy-planner-day-row.today .occupancy-planner-day-bg {
  background: #eef7ff;
}

.occupancy-planner-price-suggestion {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px dashed #b8c1cb;
  border-radius: 6px;
  background: rgba(241, 244, 247, 0.78);
  color: #677483;
  font-size: 0.68rem;
  line-height: 1;
  text-align: center;
  pointer-events: none;
}

.occupancy-planner-price-suggestion div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 0;
  flex: 1 1 0;
  gap: 5px;
  padding: 2px 7px;
  border-bottom: 1px solid rgba(184, 193, 203, 0.55);
}

.occupancy-planner-price-suggestion div:last-child {
  border-bottom: 0;
}

.occupancy-planner-price-suggestion span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.occupancy-planner-price-suggestion strong {
  color: #4d5b68;
  font-size: 0.72rem;
  font-weight: 800;
}

.occupancy-planner-reservation {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 2px 5px;
  padding: 6px 7px;
  width: 180px;
  min-height: 28px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  box-shadow: 0 5px 14px rgba(16, 35, 50, 0.08);
  color: #173042;
  font-size: 0.78rem;
  line-height: 1.15;
  text-align: center;
}

.occupancy-planner-reservation span {
  font-weight: 800;
}

.occupancy-planner-reservation strong {
  font-size: 0.86rem;
}

.occupancy-planner-reservation em,
.occupancy-planner-reservation small {
  font-style: normal;
}

.occupancy-planner-reservation.stay-outside {
  border-color: #91ceb2;
  background: #dff2e8;
}

.occupancy-planner-reservation.stay-current {
  border-color: #e5c85d;
  background: #fff0bf;
}

.occupancy-planner-reservation.stay-future {
  border-color: #efaaaa;
  background: #fde1e1;
}

.occupancy-planner-reservation.conflict {
  outline: 2px solid #b63d3d;
  outline-offset: 1px;
}

.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: 7px;
  padding: 7px;
  break-inside: avoid;
}

.occupancy-month.is-current-month {
  border-color: rgba(10, 103, 177, 0.55);
  box-shadow: 0 0 0 2px rgba(10, 103, 177, 0.08);
}

.occupancy-month h3 {
  margin-bottom: 5px;
  font-size: 0.68rem;
}

.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) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .login-shell,
  .app-shell,
  .layout-grid.two,
  .dashboard-layout,
  .stats,
  .form-grid,
  .form-grid.three {
    grid-template-columns: 1fr;
  }

  .property-form-panel,
  .panel,
  .form-panel {
    width: 100%;
    max-width: 100%;
  }

  .property-form-panel .property-form-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px 8px;
  }

  .property-form-panel .property-form-grid > label {
    grid-column: span 3;
    min-width: 0;
  }

  .property-form-panel .property-form-grid .property-half-field {
    grid-column: span 3;
  }

  .property-form-panel .property-form-grid > label.full,
  .property-form-panel .property-form-grid .textarea-compact {
    grid-column: 1 / -1;
  }

  .property-form-panel .property-form-grid .capacity-field {
    grid-column: span 2;
  }

  .property-form-panel input,
  .property-form-panel select {
    min-height: 36px;
  }

  .property-form-panel .capacity-field input {
    min-width: 0;
    text-align: center;
  }

  .property-form-panel textarea,
  .property-form-panel .textarea-compact textarea {
    min-height: 44px;
  }

  .property-price-object-row {
    justify-content: stretch;
  }

  .property-price-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .property-price-layout {
    grid-template-columns: 1fr;
  }

  .price-list-print-panel {
    max-width: 260px;
  }

  .price-list-row-head {
    display: none;
  }

  .price-list-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.95fr);
    gap: 5px;
  }

  .price-list-row .money-input {
    grid-column: auto;
  }

  .property-price-meta label,
  .price-list-valid-field span {
    gap: 4px;
    font-size: 0.68rem;
    line-height: 1.05;
  }

  .property-price-meta input,
  .property-price-meta .money-input,
  .price-list-row input,
  .price-list-row .money-input {
    min-height: 34px;
  }

  .property-price-meta input,
  .price-list-row input {
    padding: 6px 7px;
    font-weight: 400;
  }

  .property-price-meta input {
    font-size: 0.92rem;
  }

  .price-list-row input {
    font-size: 1rem;
  }

  .property-price-meta .money-input span,
  .price-list-row .money-input span {
    min-width: 32px;
  }

  .property-price-meta .money-input input,
  .price-list-row .money-input input {
    min-height: 34px;
  }

  .profile-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-wrap table {
    min-width: 720px;
  }

  .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;
  }

  .obligation-formula-grid {
    grid-template-columns: 1fr;
  }

  .obligation-review-titleline {
    align-items: flex-start;
    flex-direction: column;
  }

  .obligation-source-notice,
  .obligation-review-block {
    padding: 10px;
  }

  .login-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 0;
    padding: 34px 22px;
  }

  .login-shell > .login-intro {
    min-height: 0;
    padding: 34px 22px;
  }

  .login-details {
    gap: 22px;
    padding: 0 22px 34px;
  }

  .login-hero-head {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
  }

  .login-hero-copy {
    padding-top: 0;
  }

  .login-panel {
    width: 100%;
    justify-self: stretch;
    padding: 22px;
    border-left: 0;
    border-top: 1px solid rgba(207, 224, 236, 0.88);
  }

  .login-shell > .login-panel {
    margin: -18px 22px 34px;
    width: auto;
  }

  .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;
  }

  .dashboard-hero {
    gap: 12px;
  }

  .dashboard-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
  }

  .dashboard-year-control {
    grid-column: 1 / -1;
    width: min(170px, 100%);
  }

  .dashboard-actions .button {
    min-width: 0;
    font-size: 0.78rem;
    line-height: 1.1;
  }

  .dashboard-board {
    gap: 12px;
    max-width: 100%;
  }

  .dashboard-main-column {
    gap: 12px;
  }

  .dashboard-card-label {
    top: 9px;
    left: 12px;
  }

  .dashboard-deadlines {
    grid-template-columns: 1fr;
  }

  .dashboard-kpis {
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.1fr) minmax(0, 1.06fr);
    gap: 4px;
  }

  .dashboard-kpis,
  .dashboard-notices-panel,
  .dashboard-reservations-panel {
    padding: 10px;
  }

  .dashboard-year-card .dashboard-kpis {
    padding-top: 27px;
  }

  .dashboard-kpi {
    min-height: 68px;
    padding: 9px 6px;
  }

  .dashboard-kpi span {
    font-size: 0.68rem;
    line-height: 1.12;
  }

  .dashboard-kpi strong {
    margin-top: 2px;
    font-size: clamp(0.98rem, 4.15vw, 1.24rem);
    line-height: 1;
    white-space: nowrap;
  }

  .dashboard-kpi small {
    margin-top: 3px;
    font-size: 0.62rem;
    line-height: 1.1;
  }

  .dashboard-table {
    min-width: 680px;
  }

  .dashboard-reservations-panel .dashboard-table td:nth-child(2) strong {
    font-size: 1rem;
    line-height: 1.15;
  }

  .topbar .actions {
    width: 100%;
  }

  .entries-topbar .entries-actions {
    display: grid;
    grid-template-columns: minmax(132px, 0.85fr) minmax(110px, 1fr) minmax(0, 1fr);
    gap: 8px;
    align-items: end;
    width: 100%;
    margin-left: 0;
  }

  .entries-topbar .entries-actions .year-inline {
    grid-column: auto;
    display: grid;
    grid-template-columns: auto minmax(70px, 1fr);
    gap: 6px;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 36px;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
  }

  .entries-topbar .entries-actions .year-inline select {
    width: 100%;
    min-width: 66px;
    min-height: 36px;
    padding: 6px 8px;
    font-size: 0.94rem;
    font-weight: 800;
  }

  .entries-topbar .entries-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 0.78rem;
    line-height: 1.08;
    white-space: normal;
  }

  .topbar .entries-back-actions {
    position: fixed;
    top: calc(52px + env(safe-area-inset-top, 0px));
    right: 18px;
    z-index: 1190;
    display: flex;
    width: auto;
    gap: 6px;
    margin: 0 !important;
  }

  .topbar .entries-back-actions .button {
    flex: 0 0 74px;
    width: 74px;
    min-height: 32px;
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 0.78rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .topbar .button,
  .actions .button {
    flex: 1 1 auto;
  }

  .topbar .print-ep-actions {
    position: fixed;
    top: calc(52px + env(safe-area-inset-top, 0px));
    right: 18px;
    z-index: 1190;
    display: flex;
    width: auto;
    gap: 6px;
    margin: 0 !important;
  }

  .topbar .print-ep-actions .button {
    flex: 0 0 74px;
    width: 74px;
    min-height: 32px;
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 0.78rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .topbar .obligations-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 10px;
  }

  .topbar .obligations-actions .year-inline {
    width: 100%;
  }

  .topbar .obligations-actions .button {
    position: fixed;
    top: calc(52px + env(safe-area-inset-top, 0px));
    z-index: 1190;
    flex: 0 0 74px;
    width: 74px;
    min-height: 32px;
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 0.78rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .topbar .obligations-actions .button[data-view="dashboard"] {
    right: 18px;
  }

  .topbar .obligations-actions #printButton {
    right: 98px;
  }

  .year-inline {
    width: 100%;
    grid-template-columns: 1fr;
  }

  th,
  td {
    padding: 9px 8px;
  }

  .row-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    min-width: 132px;
    gap: 6px;
  }

  .row-actions .button {
    width: auto;
    min-width: 62px;
    padding: 6px 8px;
    white-space: nowrap;
    font-size: 0.78rem;
  }
}


.mobile-topbar {
  display: none;
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
    padding-top: 44px;
  }

  .mobile-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 4px 16px;
    background: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(16, 45, 65, 0.18);
  }

  .mobile-brand {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
  }

  .mobile-brand .brand-logo {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
  }

  .mobile-brand strong {
    font-size: 0.95rem;
    line-height: 1.1;
  }

  .mobile-brand span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
  }

  .mobile-menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    margin: 1.7px 0;
    border-radius: 999px;
    background: currentColor;
  }

  .sidebar {
    position: fixed;
    top: 44px;
    left: 0;
    right: 0;
    z-index: 1100;
    height: auto;
    max-height: calc(100vh - 44px);
    padding: 16px 18px 18px;
    overflow-y: auto;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
    box-shadow: 0 18px 40px rgba(16, 45, 65, 0.22);
  }

  .app-shell.mobile-menu-open .sidebar {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar .brand {
    display: none;
  }

  .sidebar-footer {
    position: static;
    margin-top: 16px;
  }

  .nav-list {
    gap: 10px;
  }

  .nav-button {
    min-height: 44px;
    font-size: 1rem;
  }

  .mobile-only-nav {
    display: block;
  }

  .main {
    padding: 18px;
  }

  .app-shell.with-ai-comment {
    height: 100dvh;
  }

  .app-shell.with-ai-comment .main {
    height: calc(100dvh - 54px - 70px - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    padding-bottom: 10px;
    scroll-padding-bottom: 10px;
  }

  .mobile-fixed-actions-guard {
    display: none;
  }
}



@media (max-width: 760px) {
  .entry-form-panel,
  .entry-core-panel,
  .form-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .entry-core-panel {
    padding: 10px;
    gap: 10px;
  }

  .form-section {
    padding: 12px;
    gap: 10px;
  }

  .section-title {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    padding-bottom: 8px;
  }

  .section-title h2 {
    font-size: 1.06rem;
    line-height: 1.18;
  }

  .section-title p {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .official-grid,
  .fee-grid,
  .stay-grid,
  .payout-grid,
  .entry-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .entry-form-panel label,
  .entry-form-panel .money-input,
  .entry-form-panel input,
  .entry-form-panel select,
  .entry-form-panel textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .entry-form-panel input,
  .entry-form-panel select,
  .entry-form-panel textarea,
  .entry-form-panel .money-input {
    min-height: 42px;
  }

  .entry-form-panel .date-display-input {
    padding-right: 10px;
  }

  .short-field input {
    max-width: 100%;
  }

  .field-head {
    min-width: 0;
    gap: 6px;
    line-height: 1.25;
  }

  .field-head span:first-child {
    min-width: 0;
  }
}



@media (max-width: 760px) {
  html,
  body,
  #app,
  .app-shell,
  .main {
    max-width: 100%;
    overflow-x: hidden;
  }

  .panel,
  .form-panel,
  .layout-grid,
  .dashboard-layout,
  .dashboard-stack,
  .stats,
  .topbar,
  .table-wrap {
    max-width: 100%;
    min-width: 0;
  }

  .panel,
  .form-panel {
    overflow: hidden;
  }

  .backup-name-field > div {
    grid-template-columns: minmax(0, 1fr) 72px;
  }

  .backup-name-field .button {
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
  }

  .table-wrap {
    display: block;
    width: 100%;
    margin-inline: 0;
    padding-bottom: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    touch-action: pan-x pan-y;
  }

  .table-wrap table {
    width: max-content;
    min-width: 720px;
    table-layout: auto;
  }

  .table-wrap th,
  .table-wrap td {
    white-space: nowrap;
  }

  .table-wrap .row-actions {
    white-space: normal;
  }
}



@media (max-width: 760px) {
  .backup-status {
    gap: 5px;
    margin-top: 10px;
    padding: 9px 10px;
    width: 100%;
    min-width: 0;
  }

  .backup-status-row {
    grid-template-columns: minmax(86px, 34%) minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
    font-size: 0.84rem;
  }

  .backup-status-row span,
  .backup-status-row strong {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .profile-stack {
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .profile-stack > .backup-panel {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .backup-panel h2,
  .backup-panel .muted,
  .backup-panel .local-data-note,
  .backup-panel .local-data-note span,
  .backup-name-field,
  .backup-name-field input {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .backup-panel-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
  }

  .backup-panel-actions .button {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .profile-stack > .cloud-sync-panel {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .cloud-sync-panel .panel-heading-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
  }

  .cloud-sync-panel .panel-heading-row > div {
    min-width: 0;
  }

  .cloud-sync-panel h2,
  .cloud-sync-panel .muted,
  .cloud-sync-summary,
  .cloud-sync-summary > div,
  .cloud-sync-terms,
  .cloud-sync-note {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .cloud-sync-panel .subscription-status-pill {
    max-width: 92px;
    padding: 5px 9px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cloud-sync-panel .backup-panel-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
  }

  .cloud-sync-panel .backup-panel-actions .button {
    width: 100%;
    min-width: 0;
  }

  .cloud-sync-summary {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .profile-form-panel {
    padding: 12px;
  }

  .profile-form-grid {
    gap: 8px;
  }

  .profile-form-panel label {
    gap: 4px;
    font-size: 0.78rem;
  }

  .profile-form-panel input {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 0.94rem;
  }

  .profile-form-panel .actions {
    margin-top: 10px;
  }

  .profile-form-panel .button {
    min-height: 38px;
    padding: 8px 12px;
  }

  .occupancy-topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
  }

  .occupancy-toolbar.occupancy-controls {
    display: grid;
    grid-template-columns: minmax(130px, 0.62fr) minmax(0, 1.38fr);
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    gap: 8px;
  }

  .occupancy-toolbar .year-inline,
  .occupancy-toolbar .occupancy-property-select {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-width: 0;
    gap: 6px;
  }

  .occupancy-toolbar.occupancy-controls.planner-controls {
    grid-template-columns: 1fr;
  }

  .occupancy-view-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 10px;
  }

  .occupancy-view-tabs .entries-tab {
    width: 100%;
    min-width: 0;
  }

  .occupancy-planner-scroll {
    max-height: calc(100dvh - 220px);
    border-radius: 7px;
  }

  .occupancy-planner-date-cell {
    font-size: 0.74rem;
  }

  .occupancy-planner-month-cell {
    font-size: 0.64rem;
  }

  .occupancy-planner-month-cell span {
    top: 42px;
  }

  .occupancy-planner-reservation {
    margin: 2px 4px;
    padding: 4px 5px;
    font-size: 0.72rem;
  }

  .occupancy-planner-reservation strong {
    font-size: 0.78rem;
  }

  .occupancy-toolbar select {
    width: 100%;
    min-width: 0;
  }

  .occupancy-buttons {
    position: fixed;
    top: calc(52px + env(safe-area-inset-top, 0px));
    right: 18px;
    z-index: 1190;
    display: flex;
    width: auto;
    gap: 6px;
    margin: 0 !important;
  }

  .occupancy-buttons .button {
    flex: 0 0 74px;
    width: 74px;
    min-height: 32px;
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 0.78rem;
    line-height: 1.1;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .profile-form-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 760px) {
  .payment-barcode-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .payment-barcode-title,
  .payment-barcode-note,
  .payment-barcode-head .payment-warning,
  .payment-barcode-action {
    grid-column: 1;
  }

  .payment-barcode-action {
    grid-row: 2;
    width: 100%;
    justify-items: stretch;
  }

  .payment-barcode-note {
    grid-row: 3;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .payment-barcode-head .payment-warning {
    grid-row: 4;
  }

  .payment-qr {
    width: 100%;
    min-height: 130px;
  }

  .payment-qr canvas {
    max-width: 100%;
  }

  .payment-details {
    grid-template-columns: minmax(82px, 0.62fr) minmax(0, 1.38fr);
    gap: 8px;
  }

  .payment-detail {
    padding: 10px 11px;
  }

  .payment-detail.full {
    grid-column: 1 / -1;
  }

  .payment-detail.half,
  .payment-detail.amount,
  .payment-detail.description {
    grid-column: span 1;
  }

  .payment-detail.model {
    grid-column: 1;
  }

  .payment-detail.reference {
    grid-column: 2;
  }

  .payment-detail.iban,
  .payment-detail.description {
    grid-column: 1 / -1;
  }

  .payment-details strong {
    font-size: 0.98rem;
  }

  .payment-detail.amount strong {
    font-size: 1.08rem;
  }

  .payment-detail.reference strong {
    font-size: 0.92rem;
  }
}

@media (max-width: 560px) {
  .property-price-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .house-rules-time-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media print {
  html,
  body,
  #app {
    height: auto !important;
    overflow: visible !important;
  }

  body {
    background: #ffffff;
    margin: 0;
  }

  .no-print {
    display: none !important;
  }

  .app-shell,
  .main,
  .ep-sheet,
  .invoice-sheet,
  .price-list-sheet,
  .house-rules-sheet,
  .tz2-sheet {
    display: block;
    padding: 0;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: auto !important;
    overflow: visible !important;
  }

  .app-shell.with-ai-comment,
  .app-shell.with-ai-comment .main {
    height: auto !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
  }

  .ep-sheet,
  .invoice-sheet,
  .price-list-sheet,
  .tz2-sheet {
    margin: 0;
  }

  .entries-panel {
    display: block;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .invoice-print {
    width: 100%;
    overflow: visible;
  }

  .price-list-print {
    width: 100%;
    overflow: visible;
  }

  .house-rules-print {
    display: block !important;
    width: 100%;
    overflow: visible;
  }

  .house-rules-editor-panel {
    display: none !important;
  }

  .invoice-sheet {
    min-width: 0;
    max-width: none;
    padding: 12mm;
    color: #000000;
    font-size: 9.8pt;
    box-shadow: none;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .price-list-sheet {
    min-width: 0;
    max-width: none;
    padding: 10mm 12mm;
    font-size: 11pt;
    line-height: 1.2;
    box-shadow: none;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .house-rules-sheet {
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
    min-height: 0;
    padding: 4mm 5mm;
    font-size: 7pt;
    line-height: 1.13;
    box-shadow: none;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .house-rules-sheet-header {
    justify-content: flex-end;
    padding-bottom: 0.8mm;
    border-bottom: 0 !important;
  }

  .house-rules-sheet-header > :not(.price-list-page-logo) {
    display: none !important;
  }

  .house-rules-sheet .price-list-page-logo {
    gap: 0.6mm;
    font-size: 4.8pt;
  }

  .house-rules-sheet .price-list-page-logo img {
    width: 8mm;
    height: 8mm;
    border-radius: 1mm;
  }

  .house-rules-kicker {
    margin-bottom: 0.2mm;
    font-size: 5.2pt;
  }

  .house-rules-sheet h1 {
    margin-bottom: 0.4mm;
    font-size: 9.2pt;
  }

  .house-rules-owner-line {
    gap: 0.2mm;
    font-size: 5.2pt;
  }

  .house-rules-language-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.8mm;
    margin-top: 2mm;
  }

  .house-rules-language {
    break-inside: auto;
    page-break-inside: auto;
    padding: 1.5mm;
    border-radius: 1mm;
  }

  .house-rules-language-head {
    grid-template-columns: 5.6mm minmax(0, 1fr);
    gap: 1mm;
  }

  .house-rules-lang-code {
    min-height: 5.4mm;
    border-radius: 0.8mm;
    font-size: 6pt;
  }

  .house-rules-language h2 {
    font-size: 7.8pt;
  }

  .house-rules-language strong {
    margin-top: 0.2mm;
    font-size: 6.4pt;
  }

  .house-rules-intro {
    margin: 1mm 0;
  }

  .house-rules-language ul {
    gap: 0.55mm;
    padding-left: 3.2mm;
  }

  .house-rules-language li {
    padding-left: 0;
  }

  .house-rules-closing {
    margin-top: 1.1mm;
  }

  .price-list-sheet-header {
    grid-template-columns: minmax(0, 1fr) 34mm;
    gap: 6mm;
    padding-bottom: 4mm;
  }

  .price-list-page-logo {
    gap: 1.5mm;
    font-size: 6.8pt;
  }

  .price-list-page-logo img {
    width: 11mm;
    height: 11mm;
    border-radius: 1.5mm;
  }

  .price-list-kicker {
    margin-bottom: 1mm;
    font-size: 8.8pt;
  }

  .price-list-sheet h1 {
    margin-bottom: 2.5mm;
    font-size: 16pt;
  }

  .price-list-owner-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7mm;
  }

  .price-list-owner-grid p {
    font-size: 9.5pt;
    line-height: 1.18;
  }

  .price-list-property {
    margin-top: 6mm;
  }

  .price-list-property h2 {
    margin-bottom: 1.2mm;
    font-size: 22pt;
    line-height: 1.08;
  }

  .price-list-property-kicker {
    margin-bottom: 2.5mm;
    font-size: 10pt;
  }

  .price-list-stars {
    margin-left: 2mm;
    letter-spacing: 0.4mm;
  }

  .price-list-season-lines {
    gap: 1.5mm;
    width: 150mm;
  }

  .price-list-season-line {
    grid-template-columns: 39mm 27mm minmax(0, 1fr);
    gap: 4mm;
    font-size: 11.5pt;
  }

  .price-list-season-period,
  .price-list-season-price {
    font-size: 13pt;
  }

  .price-list-season-note {
    font-size: 10pt;
  }

  .price-list-property-info {
    gap: 0.6mm;
    margin-top: 2.4mm;
    font-size: 8.6pt;
    line-height: 1.14;
  }

  .price-list-notes {
    margin-top: 8mm;
    font-size: 8.2pt;
    line-height: 1.14;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .price-list-notes ul {
    padding-left: 4mm;
  }

  .price-list-valid-from {
    margin-top: 8mm;
    font-size: 9.5pt;
  }

  .invoice-header {
    grid-template-columns: minmax(0, 1fr) 36mm;
    gap: 7mm;
    margin-bottom: 7mm;
    padding-bottom: 4mm;
  }

  .invoice-title-block h1 {
    font-size: 15pt;
  }

  .invoice-kicker {
    font-size: 7.5pt;
  }

  .invoice-app-mark {
    min-width: 34mm;
    gap: 1.5mm;
    font-size: 6.8pt;
  }

  .invoice-app-mark img {
    width: 8mm;
    height: 8mm;
  }

  .invoice-number-line {
    margin-bottom: 5mm;
  }

  .invoice-party-grid {
    gap: 3mm;
    margin-bottom: 5mm;
  }

  .invoice-party {
    min-height: 38mm;
    padding: 3mm;
  }

  .invoice-service-table {
    font-size: 8.4pt;
  }

  .invoice-service-table th,
  .invoice-service-table td {
    padding: 2mm 1.8mm;
  }

  .invoice-service-table tbody tr {
    height: 9.45mm;
  }

  .invoice-cleaning-row td {
    font-size: inherit;
  }

  .invoice-service-table .invoice-tax-note-cell {
    font-size: 8.6pt;
  }

  .invoice-payment-method {
    margin: 5mm 0 9mm;
    padding: 3mm;
    font-size: 8pt;
  }

  .invoice-average-note {
    margin: 3mm 0 -2mm;
    font-size: 7.6pt;
  }

  .invoice-vat-note {
    margin: -6mm 0 8mm;
    padding: 2.4mm 3mm;
    font-size: 8pt;
  }

  .invoice-signature-row {
    grid-template-columns: minmax(0, 1fr) 58mm;
    margin-top: 5mm;
  }

  .tz2-print {
    width: 100%;
    overflow: visible;
  }

  .tz2-sheet {
    min-width: 0;
    max-width: none;
    color: #000000;
  }

  .tz2-office-table,
  .tz2-taxpayer-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.85fr);
  }

  .tz2-capacity-check,
  .tz2-limitations {
    break-inside: avoid;
  }

  .occupancy-print {
    width: 100%;
    overflow: visible;
  }

  .occupancy-sheet {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .occupancy-head {
    width: 100%;
    margin-bottom: 2.2mm;
  }

  .occupancy-head h2 {
    font-size: 12pt;
    line-height: 1.1;
  }

  .occupancy-print.landscape .occupancy-months {
    width: 100%;
    grid-template-columns: repeat(4, calc((100% - 6.6mm) / 4));
    grid-template-rows: repeat(3, 1fr);
    gap: 2.2mm;
    height: 160mm;
  }

  .occupancy-month {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-rows: auto auto 1fr;
    padding: 1.2mm;
    border-radius: 5px;
    break-inside: avoid;
  }

  .occupancy-month h3 {
    margin-bottom: 0.5mm;
    font-size: 7pt;
    line-height: 1;
  }

  .occupancy-weekdays,
  .occupancy-days {
    gap: 1px;
  }

  .occupancy-days {
    grid-auto-rows: 1fr;
  }

  .occupancy-weekdays span {
    font-size: 6pt;
    line-height: 1;
  }

  .occupancy-day {
    min-height: 0;
    border-radius: 2px;
    font-size: 6.1pt;
    line-height: 1;
  }

  .occupancy-print.landscape .occupancy-day {
    font-size: 6pt;
  }

  .stay-legend {
    font-size: 7pt;
    gap: 7mm;
  }

  .stay-legend span {
    gap: 1.2mm;
  }

  .legend-swatch {
    width: 4mm;
    height: 3mm;
  }

  .occupancy-planner-scroll {
    max-height: none;
    overflow: visible;
    border: 0;
  }

  .occupancy-planner-grid {
    min-width: 0 !important;
  }

  .occupancy-planner-corner,
  .occupancy-planner-month-corner,
  .occupancy-planner-month-cell,
  .occupancy-planner-month-cell span,
  .occupancy-planner-object-head,
  .occupancy-planner-date-cell {
    position: static;
  }
}

.entry-form-panel {
  display: grid;
  gap: 18px;
  max-width: 1180px;
}

.entry-wizard-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #f8fbff;
}

.entry-wizard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.entry-wizard-head h2 {
  margin: 0;
  font-size: 1.24rem;
}

.entry-source-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 7px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 900;
  white-space: nowrap;
}

.entry-source-logo.booking {
  border-color: #006ce4;
  background: #003b95;
  color: #ffffff;
}

.entry-source-logo.airbnb {
  border-color: #ff8a9b;
  background: #fff5f6;
  color: #b4234a;
}

.entry-source-logo.direct {
  border-color: #9fd3b3;
  background: #f3fbf6;
  color: var(--green);
}

.entry-source-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.entry-source-card {
  display: grid;
  gap: 5px;
  min-height: 104px;
  padding: 12px;
  border: 1px solid #d8e3ed;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.entry-source-card strong {
  font-size: 1.02rem;
}

.entry-source-card span,
.entry-source-card small {
  color: var(--muted);
  line-height: 1.3;
}

.entry-source-card small {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.entry-source-card.active {
  border-color: var(--blue);
  background: #eef7ff;
  box-shadow: inset 0 0 0 1px rgba(10, 103, 177, 0.22);
}

.entry-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.entry-stepper span {
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid #d7e2ea;
  border-radius: 7px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.entry-stepper span.active {
  border-color: #9fc8e7;
  background: #e9f5ff;
  color: var(--blue-dark);
}

.entry-form-panel[data-entry-source="Samostalno"] [data-entry-source-panel="intermediary"],
.entry-form-panel[data-entry-source="Samostalno"] .document-reader-section,
.entry-form-panel[data-entry-source="Airbnb"] .airbnb-detail-fee-field,
.entry-form-panel:not([data-entry-source="Airbnb"]) .airbnb-vat-mode-field,
.entry-form-panel:not([data-entry-source="Samostalno"]) .guest-count-field,
.entry-form-panel:not([data-entry-source="Samostalno"]) .payment-method-field,
.entry-form-panel:not([data-entry-source="Samostalno"]) [data-entry-source-panel="standalone"],
.entry-form-panel:not([data-entry-source="Booking"]) [data-entry-source-panel="booking"] {
  display: none;
}

.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);
}

.evisitor-page {
  display: grid;
  gap: 14px;
  padding-bottom: 88px;
}

.evisitor-trip-form,
.evisitor-guest-form,
.evisitor-people-section {
  display: grid;
  gap: 14px;
}

.evisitor-trip-grid {
  align-items: end;
}

.evisitor-datetime-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: end;
  max-width: 100%;
}

.evisitor-datetime-row > strong {
  align-self: center;
  color: var(--blue-dark);
  font-size: 0.98rem;
  font-weight: 900;
}

.evisitor-datetime-row label {
  min-width: 0;
}

.evisitor-datetime-row input[type="date"],
.evisitor-datetime-row input[type="time"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding-right: 8px;
  padding-left: 8px;
}

@media (max-width: 420px) {
  .evisitor-datetime-row {
    grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
  }

  .evisitor-add-actions {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 6px;
  }
}

.evisitor-add-actions {
  justify-content: flex-start;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
}

.evisitor-add-actions .button {
  grid-column: 2;
  width: 100%;
}

.evisitor-guest-card {
  border-color: #b7d3e7;
  background: #f8fbff;
}

.evisitor-optional-fields {
  border: 1px solid #d7e2ea;
  border-radius: 7px;
  background: #ffffff;
}

.evisitor-optional-fields summary {
  padding: 11px 12px;
  color: var(--blue-dark);
  font-weight: 900;
  cursor: pointer;
}

.evisitor-optional-fields .form-grid {
  padding: 0 12px 12px;
}

.evisitor-document-reader {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d7e2ea;
  border-radius: 7px;
  background: #ffffff;
}

.evisitor-document-reader-head {
  display: grid;
  gap: 6px;
}

.evisitor-document-reader h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.evisitor-document-actions {
  margin: 0;
}

.evisitor-document-actions .button {
  min-height: 36px;
}

.evisitor-document-text {
  border-top: 1px solid #e5eef5;
  padding-top: 8px;
}

.evisitor-document-text summary {
  color: var(--blue-dark);
  font-weight: 900;
  cursor: pointer;
}

.evisitor-document-text textarea {
  width: 100%;
  min-height: 88px;
  margin-top: 8px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.evisitor-document-text .button {
  width: 100%;
  margin-top: 8px;
}

.evisitor-people-table td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.3;
}

.evisitor-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #c8d8e4;
  border-radius: 999px;
  background: #f8fbff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.evisitor-status-pill.is-checked {
  border-color: #8ac8a2;
  background: #def7e8;
  color: #006b45;
}

.evisitor-status-pill.is-error {
  border-color: #f2aaaa;
  background: #ffe8e8;
  color: #9f2020;
}

.evisitor-status-pill.is-sending {
  border-color: #9fc8e8;
  background: #e7f4ff;
  color: var(--blue-dark);
}

.evisitor-technical-details {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.evisitor-technical-details summary {
  cursor: pointer;
}

.evisitor-technical-details code {
  display: block;
  margin-top: 3px;
  white-space: normal;
  word-break: break-all;
}

.evisitor-people-table tr.feedback-success td {
  animation: evisitorRowSuccessPulse 1.1s ease-out;
}

.evisitor-people-table tr.feedback-error td {
  animation: evisitorRowErrorPulse 1.1s ease-out;
}

@keyframes evisitorRowSuccessPulse {
  0% {
    background: rgba(18, 128, 85, 0.2);
  }
  100% {
    background: transparent;
  }
}

@keyframes evisitorRowErrorPulse {
  0% {
    background: rgba(186, 44, 44, 0.18);
  }
  100% {
    background: transparent;
  }
}

.evisitor-submit-bar {
  position: sticky;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  padding: 12px 0 0;
  background: linear-gradient(180deg, rgba(244, 247, 250, 0), var(--bg) 32%);
}

.evisitor-submit-bar .button {
  min-width: 150px;
  min-height: 44px;
}

.form-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  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(76px, 0.45fr) minmax(126px, 0.72fr) minmax(190px, 1.1fr) minmax(150px, 0.7fr) minmax(132px, 0.7fr) minmax(138px, 0.76fr) minmax(132px, 0.7fr);
}

.fee-grid {
  grid-template-columns: minmax(160px, 0.95fr) minmax(165px, 0.95fr) minmax(180px, 1fr) minmax(205px, 1.15fr) minmax(180px, 1fr);
}

.invoice-exception-grid {
  grid-template-columns: minmax(190px, 1fr) minmax(180px, 0.9fr) minmax(160px, 0.8fr) minmax(180px, 0.9fr);
}

.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;
}

.guest-count-field input {
  max-width: 92px;
}

.official-grid .money-input,
.official-grid select,
.official-grid input {
  min-width: 0;
}

.official-grid .invoice-amount-field {
  min-width: 150px;
}

.fee-note {
  padding: 10px 12px;
  border: 1px solid #bfd9ec;
  border-radius: 7px;
  background: var(--soft-blue);
  color: var(--ink);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .entry-source-cards {
    grid-template-columns: 1fr;
  }

  .entry-stepper {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .entry-stepper span {
    padding: 7px 4px;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .entry-wizard-head {
    align-items: flex-start;
  }

  .fee-grid,
  .invoice-exception-grid,
  .stay-grid,
  .payout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .official-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .official-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.68rem;
  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;
}

.reader-option .file-picker-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.reader-option .file-picker-button.is-busy {
  cursor: wait;
  opacity: 0.82;
}

.document-input-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0.01;
  pointer-events: none;
}

.reader-option-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.reader-option-actions .button {
  margin-top: 0;
}

.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: 7px;
  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;
}

.document-summary {
  padding: 8px 10px;
}

.document-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(112px, 1fr));
  gap: 6px;
}

.document-summary-row {
  display: grid;
  gap: 2px;
  min-width: 0;
  min-height: 47px;
  padding: 6px 8px;
  border: 1px solid #dbe5ee;
  border-radius: 7px;
  background: #ffffff;
}

.document-summary-row span {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
}

.document-summary-row strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.document-summary-row.is-warn {
  border-color: #f4c56f;
  background: #fffaf0;
}

.document-summary-row.is-ok {
  border-color: #b9dccd;
  background: #f4fbf7;
}

.document-summary-row.is-muted {
  background: #f8fafc;
}

.document-summary-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.document-summary-note.warn {
  color: #8a5a00;
  font-weight: 700;
}

.document-summary-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.document-summary-meta summary {
  width: fit-content;
  cursor: pointer;
  color: var(--blue-dark);
  font-weight: 800;
}

.document-summary-meta p {
  margin: 6px 0 0;
  line-height: 1.35;
}

.document-raw-text {
  border-top: 1px solid var(--line);
  background: #fbfdff;
}

.document-raw-text summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--blue-dark);
  font-size: 0.84rem;
  font-weight: 800;
}

.ocr-text-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  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;
  }

  .document-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reader-status {
    width: 100%;
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .document-summary-grid {
    grid-template-columns: 1fr;
  }
}


.backup-status {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #d7e2ea;
  border-radius: 7px;
  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-section {
  display: grid;
  gap: 18px;
  width: min(100%, 1120px);
  margin: 0 auto;
}

.login-section-head {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.login-section-head h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
}

.login-section-head p {
  margin: 0;
  color: var(--muted);
}

.login-problem-grid,
.login-flow-grid,
.login-feature-grid {
  display: grid;
  gap: 12px;
}

.login-problem-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.login-flow-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.login-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.login-info-card,
.login-step-card,
.login-feature-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(217, 225, 232, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(16, 45, 65, 0.05);
}

.login-info-card h3,
.login-step-card h3,
.login-feature-card h3 {
  color: #0b2237;
}

.login-info-card p,
.login-step-card p {
  margin: 0;
  color: #52687c;
}

.login-step-card span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #e5f4eb;
  color: #006b45;
  font-weight: 900;
}

.login-feature-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.login-feature-card li {
  position: relative;
  padding-left: 17px;
  color: #22394c;
  font-weight: 700;
}

.login-feature-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
}

.login-pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.login-details .login-pricing {
  max-width: none;
  margin: 0;
}

.pricing-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  border: 1px solid #efd38b;
  border-radius: 7px;
  background: #fffaf0;
  box-shadow: 0 12px 28px rgba(16, 45, 65, 0.06);
}

.subscription-card {
  border-color: #a8d5c1;
  background: #f3fbf7;
}

.obligations-card {
  border-color: #b8d7eb;
  background: #f3f8fc;
}

.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-pill.obligations {
  background: #e2f0fb;
  color: #095c96;
}

.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;
}

.obligations-list li::before {
  background: #0a67b1;
}

.subscription-list li::before {
  background: #007a52;
}

.privacy-note,
.subscription-rule {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 7px;
  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 {
  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: 7px;
  background: #ffffff;
}

.subscription-feature-group strong {
  color: #006b45;
  font-size: 0.95rem;
}

.subscription-card .subscription-feature-group:first-of-type {
  border-color: #efd38b;
  background: #fffaf0;
}

.subscription-card .subscription-feature-group:first-of-type strong {
  color: #805300;
}

.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: 7px;
  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;
}

.subscription-price .subscription-price-risk {
  max-width: 36ch;
  padding-top: 8px;
  border-top: 1px solid #b9dccd;
  color: #52687c;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .onboarding-steps {
    grid-template-columns: 1fr;
  }

  .entry-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .entry-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .login-pricing {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 760px) {
  .login-problem-grid,
  .login-flow-grid,
  .login-feature-grid {
    grid-template-columns: 1fr;
  }

  .login-pricing {
    grid-template-columns: 1fr;
  }

  .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-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.help-tabs .button {
  min-width: 110px;
}
.help-page {
  display: grid;
  gap: 14px;
  max-width: 980px;
}

.help-intro {
  padding: 14px 16px;
  border: 1px solid #bfd9ec;
  border-radius: 7px;
  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-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.help-toc a,
.help-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 1px 8px;
  border: 1px solid #bfd9ec;
  border-radius: 6px;
  background: var(--soft-blue);
  color: #123047;
  font-weight: 700;
  text-decoration: none;
  vertical-align: baseline;
}

.help-toc a {
  min-height: 30px;
}

.help-section {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 7px;
  background: #ffffff;
}

.help-section h3 {
  margin: 16px 0 8px;
  font-size: 1rem;
  color: #123047;
}

.help-section h3:first-child {
  margin-top: 0;
}

.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-workflow-section {
  border-left-color: var(--green);
}

.help-workflow-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.help-workflow-hero h2 {
  margin-bottom: 6px;
}

.help-workflow-hero img {
  display: block;
  width: 88px;
  max-width: 100%;
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 10px 18px rgba(15, 45, 65, 0.13));
}

.help-visual-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.help-visual-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  min-height: 188px;
  padding: 12px 10px;
  border: 1px solid #d4e3ed;
  border-radius: 8px;
  background: #fbfdff;
}

.help-visual-card img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.help-visual-card > span {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.help-visual-card strong {
  color: #123047;
  font-size: 0.92rem;
  line-height: 1.18;
}

.help-visual-card p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.34;
}

.help-process-lane {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #bfd9ec;
  border-radius: 8px;
  background: var(--soft-blue);
}

.help-process-node {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  background: var(--soft-blue);
}

.help-process-node + .help-process-node {
  border-left: 1px solid #bfd9ec;
}

.help-process-node::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -9px;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-top: 1px solid #bfd9ec;
  border-right: 1px solid #bfd9ec;
  background: inherit;
  transform: translateY(-50%) rotate(45deg);
}

.help-process-node:last-child::after {
  display: none;
}

.help-process-node.official {
  background: #fff7df;
}

.help-process-node strong {
  color: #123047;
  font-size: 0.9rem;
}

.help-process-node span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.32;
}

.help-example {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--blue);
  border-radius: 6px;
  background: var(--soft-blue);
}

.help-warning {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid #d79a17;
  border-radius: 6px;
  background: #fff7df;
}

.help-workflow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  align-items: stretch;
  margin-top: 12px;
}

.help-workflow.correction {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.help-flow-step,
.help-flow-branch {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #bfd9ec;
  border-radius: 7px;
  background: var(--soft-blue);
}

.help-flow-step.locked {
  border-color: #b9d9c9;
  background: var(--soft-green);
}

.help-flow-step.official {
  border-color: #efc27a;
  background: #fff7df;
}

.help-flow-branch {
  grid-column: 1 / -1;
  border-color: #efc27a;
  background: #fffaf0;
}

.help-flow-step strong,
.help-flow-branch strong {
  color: #123047;
  font-size: 0.9rem;
}

.help-flow-step span,
.help-flow-branch span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.help-flow-arrow {
  display: none;
}

@media (max-width: 980px) {
  .help-visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-process-lane {
    grid-template-columns: 1fr;
  }

  .help-process-node + .help-process-node {
    border-top: 1px solid #bfd9ec;
    border-left: 0;
  }

  .help-process-node::after {
    top: auto;
    right: 50%;
    bottom: -9px;
    transform: translateX(50%) rotate(135deg);
  }
}

@media (max-width: 560px) {
  .help-workflow-hero {
    grid-template-columns: 1fr;
  }

  .help-workflow-hero img {
    justify-self: start;
    width: 72px;
  }

  .help-visual-grid {
    grid-template-columns: 1fr;
  }

  .help-visual-card {
    min-height: 0;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;
  }

  .help-visual-card > span {
    top: 8px;
    right: 8px;
  }

  .help-visual-card strong,
  .help-visual-card p {
    grid-column: 2;
  }
}

.help-glossary,
.help-faq {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
}

.help-glossary div {
  display: grid;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.help-glossary div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.help-glossary dt,
.help-faq h3 {
  font-weight: 800;
  color: #123047;
}

.help-glossary dd {
  margin: 0;
  color: var(--muted);
}

.help-faq h3 {
  margin: 0;
  font-size: 0.98rem;
}

.help-section strong {
  color: #123047;
}

.sources-page {
  display: grid;
  gap: 18px;
  max-width: 1100px;
}

.sources-intro {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #bfd9ec;
  border-radius: 7px;
  background: var(--soft-blue);
}

.sources-intro h2 {
  margin: 0;
  font-size: 1.25rem;
}

.sources-intro p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.source-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
  padding: 14px;
  border: 1px solid #d9e3ea;
  border-radius: 8px;
  background: #fbfdff;
}

.source-card h2 {
  margin: 0;
  font-size: 1.05rem;
}

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

.source-card ul {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.source-card li {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e2e9ef;
  border-radius: 7px;
  background: #ffffff;
}

.source-card a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.source-card a:hover,
.source-card a:focus {
  text-decoration: underline;
}

.source-card span {
  color: #52687c;
  font-size: 0.82rem;
  line-height: 1.35;
}

.support-page {
  display: grid;
  gap: 14px;
  max-width: 820px;
}

.support-form {
  display: grid;
  gap: 14px;
}

.support-intro {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #bfd9ec;
  border-radius: 7px;
  background: var(--soft-blue);
}

.support-intro h2,
.support-intro p {
  margin: 0;
}

.support-intro p {
  color: var(--muted);
}

@media (max-width: 760px) {
  .sources-grid {
    grid-template-columns: 1fr;
  }

  .source-card {
    padding: 12px;
  }
}

.account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.manual-obligations-page {
  width: min(100%, 760px);
}

.manual-obligations-form {
  display: grid;
  gap: 16px;
}

.manual-obligations-controls {
  display: flex;
  justify-content: flex-start;
}

.manual-obligations-controls .year-inline {
  min-width: min(100%, 190px);
}
.manual-obligation-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d8e7dd;
  border-radius: 7px;
  background: #ffffff;
}

.manual-obligations-controls + .manual-obligation-section {
  margin-top: 0;
}
.manual-obligations-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, auto);
  gap: 14px;
  align-items: start;
}

.manual-obligations-head h2 {
  margin: 0 0 6px;
  color: #0b2237;
  font-size: 1.25rem;
}

.manual-obligations-total {
  display: grid;
  gap: 2px;
  justify-items: end;
  padding: 10px 12px;
  border: 1px solid #cfe3d8;
  border-radius: 7px;
  background: #f8fcfa;
}

.manual-obligations-total span {
  color: #587087;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.manual-obligations-total strong {
  color: #006b45;
  font-size: 1.35rem;
}

.manual-obligations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.manual-obligation-quarter {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d8e7dd;
  border-radius: 7px;
  background: #ffffff;
}

.manual-obligation-quarter > span:first-child {
  display: grid;
  gap: 2px;
}

.manual-obligation-quarter strong {
  color: #0b2237;
}

.manual-obligation-quarter small {
  color: #587087;
  font-weight: 800;
}

.manual-obligation-quarter .money-input {
  width: 100%;
}

@media (max-width: 760px) {
  .manual-obligations-head {
    grid-template-columns: 1fr;
  }

  .manual-obligations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .manual-obligation-section {
    padding: 12px;
  }

  .manual-obligation-quarter {
    gap: 7px;
    padding: 10px;
  }

  .manual-obligation-quarter .money-input span {
    min-width: 34px;
  }

  .manual-obligation-quarter .money-input input {
    padding-left: 10px;
    padding-right: 8px;
  }

  .manual-obligations-total {
    justify-items: start;
  }
}
.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: 7px;
  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: 12px;
  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: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 9px 18px;
  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-price-note {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #d8e7dd;
  border-radius: 7px;
  background: #ffffff;
  color: #425a70;
  line-height: 1.35;
}

.subscription-price-note strong {
  color: #006b45;
}

.subscription-payment-code {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.subscription-payment-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100%, 360px);
  color: #006b45;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subscription-payment-code.hidden {
  display: none;
}

.subscription-payment-code .payment-qr {
  width: min(100%, 360px);
  min-height: 115px;
}

.subscription-payment-code .payment-qr canvas {
  max-width: 100%;
  height: auto !important;
}

.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 {
  .app-shell.demo-mode::before {
    content: "DEMO PODACI";
    position: fixed;
    top: 6mm;
    right: 8mm;
    z-index: 9999;
    padding: 2mm 4mm;
    border: 0.4mm solid #8a5700;
    color: #8a5700;
    background: #fff8e6;
    font-size: 12pt;
    font-weight: 900;
    letter-spacing: 0.08em;
  }

  .obligations-print {
    page: obligations-landscape;
    display: block !important;
    break-after: page !important;
    page-break-after: always !important;
    overflow: visible !important;
    width: 100%;
    max-width: none;
    height: auto !important;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .obligations-sheet {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .annual-obligations-sheet {
    break-after: page !important;
    page-break-after: always !important;
    margin-bottom: 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 td:nth-child(1),
  .obligations-table td:nth-child(2) {
    width: 7%;
  }

  .obligations-table td:nth-child(3) {
    width: 11%;
  }

  .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 td:nth-child(6) {
    width: 10%;
  }

  .obligations-table td:nth-child(10) {
    width: 8%;
  }

  .obligations-table td:nth-child(11) {
    width: 12%;
  }

  .annual-obligations-wrap {
    overflow: visible !important;
  }

  .annual-obligations-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 6.8pt;
    line-height: 1.12;
  }

  .annual-obligations-table th,
  .annual-obligations-table td {
    padding: 2mm 1mm;
    overflow-wrap: anywhere;
  }

  .annual-obligations-table .annual-obligation-name {
    width: 18%;
  }

  .obligations-second-page {
    page: obligations-portrait;
    break-before: page !important;
    page-break-before: always !important;
    display: block !important;
    width: 100%;
    max-width: none;
    min-height: 0;
    overflow: visible !important;
    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;
  }

  .obligations-second-page .payment-detail.full,
  .obligations-second-page .payment-detail.half,
  .obligations-second-page .payment-detail.model,
  .obligations-second-page .payment-detail.reference,
  .obligations-second-page .payment-detail.amount,
  .obligations-second-page .payment-detail.description {
    grid-column: auto;
  }
}


.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(520px, 1.15fr) minmax(390px, 0.85fr);
  gap: 14px;
  align-items: start;
}

.subscription-left-stack,
.subscription-right-stack {
  display: grid;
  gap: 14px;
  align-content: start;
}

.subscription-main-grid .subscription-payment,
.subscription-main-grid .subscriber-card,
.subscription-left-stack .subscription-faq {
  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: 7px;
  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 {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}

.subscriber-history-table {
  width: max-content;
  min-width: 620px;
  table-layout: auto;
  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;
  white-space: nowrap;
}

.subscriber-history-table th {
  color: #587087;
  background: #f1f6f9;
  font-size: 0.68rem;
  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) {
  min-width: 116px;
  white-space: nowrap;
}

.subscriber-history-table th:nth-child(2),
.subscriber-history-table td:nth-child(2) {
  min-width: 190px;
}

.subscriber-history-table th:nth-child(3),
.subscriber-history-table td:nth-child(3) {
  min-width: 260px;
  white-space: normal;
}

@media (max-width: 760px) {
  .subscriber-card-head {
    grid-template-columns: 1fr;
  }

  .subscriber-history-table {
    min-width: 680px;
  }
}


@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-detail.full,
  .obligations-second-page .payment-detail.half,
  .obligations-second-page .payment-detail.model,
  .obligations-second-page .payment-detail.reference,
  .obligations-second-page .payment-detail.amount,
  .obligations-second-page .payment-detail.description {
    grid-column: auto;
  }

  .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: 0;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #ffffff;
  padding: 18px;
}

.subscription-faq-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.subscription-faq-summary::-webkit-details-marker {
  display: none;
}

.subscription-faq-summary > span:first-child {
  min-width: 0;
}

.faq-toggle-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #cfe0ec;
  border-radius: 7px;
  color: var(--blue);
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1;
}

.faq-toggle-icon::before {
  content: "+";
}

.subscription-faq[open] .faq-toggle-icon::before {
  content: "-";
}

.subscription-faq h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.subscription-faq-summary h3 {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.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;
}

/* Mobile header refinement: compact primary-blue top bar. */
@media (max-width: 900px) {
  .app-shell {
    padding-top: 44px;
  }

  .mobile-topbar {
    min-height: 44px;
    padding: 4px 16px;
    background: var(--blue);
    box-sizing: border-box;
    width: 100vw;
    overflow: visible;
  }

  .mobile-brand {
    min-width: 0;
    max-width: calc(100vw - 76px);
  }

  .mobile-brand strong {
    font-size: 0.95rem;
  }

  .mobile-brand span {
    font-size: 0.68rem;
  }

  .mobile-menu-toggle {
    position: absolute;
    top: 6px;
    right: max(12px, env(safe-area-inset-right, 0px));
    z-index: 1210;
    display: inline-grid !important;
    flex: 0 0 auto;
    width: 36px;
    height: 32px;
    border-radius: 7px;
  }

  .mobile-menu-toggle span {
    width: 16px;
    margin: 1.7px 0;
  }

  .sidebar {
    top: 44px;
    max-height: calc(100vh - 44px);
  }
}

/* Mobile stability fixes: keep overlays above the topbar, make the drawer dismissible,
   preserve iOS native date inputs, and use the dynamic viewport height. */
.modal-backdrop {
  z-index: 1300;
}

.mobile-menu-backdrop {
  display: none;
}

@media (max-width: 900px) {
  body.mobile-menu-lock {
    overflow: hidden;
  }

  .mobile-menu-backdrop {
    position: fixed;
    top: 44px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: block;
    padding: 0;
    border: 0;
    background: rgba(15, 31, 44, 0.34);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
  }

  .app-shell.mobile-menu-open .mobile-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar {
    max-height: calc(100dvh - 44px);
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .app-shell.with-ai-comment .main {
    height: calc(100dvh - 44px - 70px - env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 760px) {
  .entry-form-panel .date-display-input {
    min-height: 42px;
    padding-right: 10px;
  }
}

/* Mobile AI comment: keep the short status visible without covering form actions. */
@media (max-width: 900px) {
  .app-shell.with-ai-comment {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .app-shell.with-ai-comment .main {
    height: calc(100dvh - 44px - 70px - env(safe-area-inset-bottom, 0px));
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 12px;
    scroll-padding-bottom: 12px;
  }

  .ai-comment-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 1000;
    margin: 0;
    pointer-events: none;
  }
}

.finance-layout {
  display: grid;
  grid-template-columns: minmax(0, 920px) minmax(120px, 180px);
  gap: 28px;
  align-items: start;
  max-width: 1130px;
}

.finance-page {
  display: grid;
  gap: 16px;
  max-width: 920px;
}

.finance-roko {
  position: sticky;
  top: 88px;
  display: flex;
  justify-content: center;
  padding-top: 18px;
  pointer-events: none;
}

.finance-roko img {
  display: block;
  width: clamp(112px, 10vw, 158px);
  height: auto;
  object-fit: contain;
}

.finance-next-card,
.finance-budget-card {
  display: grid;
  gap: 14px;
}

.finance-next-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.finance-next-head h2 {
  font-size: 1.35rem;
}

.finance-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.finance-item {
  display: grid;
  grid-template-columns: minmax(78px, 0.34fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  min-height: 84px;
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #ffffff;
}

.finance-item.expense {
  border-left-color: var(--gold);
}

.finance-item.overdue {
  border-color: #e4b5a4;
  border-left-color: var(--red);
  background: #fff7f4;
}

.finance-date {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 8px;
  border-radius: 7px;
  background: #f2f7f4;
  color: var(--green);
  text-align: center;
}

.finance-item.expense .finance-date {
  background: #fff8e8;
  color: #8a5f13;
}

.finance-item.overdue .finance-date {
  background: #ffe9e2;
  color: var(--red);
}

.finance-date strong {
  font-size: 1rem;
  line-height: 1.1;
}

.finance-date span {
  color: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.finance-event-mobile {
  display: none;
}

.finance-item-main {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
}

.finance-item-main > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.finance-item-main strong {
  overflow-wrap: anywhere;
  font-size: 1.08rem;
}

.finance-item-main small {
  min-width: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.finance-budget-table-wrap {
  overflow-x: auto;
}

.finance-budget-table {
  width: 100%;
  min-width: 420px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.finance-budget-table th,
.finance-budget-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.finance-budget-table th:first-child {
  text-align: left;
}

.finance-budget-table thead th {
  background: #f4f7fb;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.finance-budget-table tbody th {
  color: var(--text);
  font-weight: 800;
}

.finance-budget-table tbody td {
  font-weight: 700;
}

.finance-budget-table tr:last-child th,
.finance-budget-table tr:last-child td {
  border-bottom: 0;
}

.finance-budget-table tbody tr.income th,
.finance-budget-table tbody tr.income td {
  background: #f2f7f4;
  color: var(--green);
}

.finance-budget-table tbody tr.expense th {
  color: var(--muted);
}

.finance-budget-table tbody tr.profit th,
.finance-budget-table tbody tr.profit td {
  background: #f4f7fb;
  color: var(--text);
  font-weight: 900;
}

@media (max-width: 760px) {
  .finance-layout {
    display: block;
    max-width: 100%;
  }

  .finance-roko {
    position: fixed;
    right: 12px;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    z-index: 850;
    display: block;
    padding: 0;
  }

  .finance-roko img {
    width: 64px;
  }

  .finance-page {
    max-width: none;
  }

  .finance-next-head {
    align-items: center;
  }

  .finance-item {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding: 9px 10px 10px;
  }

  .finance-date {
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 8px 10px;
    text-align: left;
  }

  .finance-event-mobile {
    display: block;
    justify-self: end;
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .finance-item-main {
    gap: 2px;
    align-content: start;
  }

  .finance-item-title {
    display: none;
  }

  .finance-item-meta {
    order: 1;
  }

  .finance-item-value {
    order: 2;
    font-size: 1.04rem;
    line-height: 1.2;
  }

  .finance-item-note {
    order: 3;
  }

  .finance-budget-table {
    min-width: 0;
  }

  .finance-budget-table th,
  .finance-budget-table td {
    padding: 9px 8px;
    font-size: 0.84rem;
  }
}

@media (max-width: 900px) {
  .finance-list {
    grid-template-columns: 1fr;
  }

  .finance-item {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding: 9px 10px 10px;
  }

  .finance-date {
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 8px 10px;
    text-align: left;
  }

  .finance-event-mobile {
    display: block;
    justify-self: end;
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .finance-item-main {
    gap: 2px;
    align-content: start;
  }

  .finance-item-title {
    display: none;
  }

  .finance-item-meta {
    order: 1;
  }

  .finance-item-value {
    order: 2;
    font-size: 1.04rem;
    line-height: 1.2;
  }

  .finance-item-note {
    order: 3;
  }
}





.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* AI komentar mora biti fiksan na dnu viewporta na svim app ekranima. */
.app-shell.with-ai-comment {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.app-shell.with-ai-comment .main {
  height: calc(100dvh - 74px - env(safe-area-inset-bottom, 0px));
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 16px;
  scroll-padding-bottom: 16px;
}

.ai-comment-panel {
  position: fixed;
  left: 284px;
  right: 24px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  margin: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .app-shell.with-ai-comment .main {
    height: calc(100dvh - 44px - 70px - env(safe-area-inset-bottom, 0px));
  }

  .ai-comment-panel {
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
}

/* Screen-only correction for the PDV payment card. Keep print rules above compact. */
@media screen and (min-width: 761px) {
  .obligations-second-page .payment-details {
    grid-template-columns: 92px minmax(220px, 1.1fr) minmax(260px, 1.25fr) 150px !important;
    width: min(100%, 820px);
    margin-right: auto;
  }

  .obligations-second-page .payment-detail.full,
  .obligations-second-page .payment-detail.half,
  .obligations-second-page .payment-detail.model,
  .obligations-second-page .payment-detail.reference,
  .obligations-second-page .payment-detail.amount,
  .obligations-second-page .payment-detail.description {
    grid-column: auto !important;
  }

  .obligations-second-page .payment-detail.receiver {
    grid-column: 1 / 3 !important;
  }

  .obligations-second-page .payment-detail.iban {
    grid-column: 3 / -1 !important;
  }

  .obligations-second-page .payment-detail.model {
    grid-column: 1 !important;
  }

  .obligations-second-page .payment-detail.reference {
    grid-column: 2 / 4 !important;
  }

  .obligations-second-page .payment-detail.amount {
    grid-column: 4 !important;
  }

  .obligations-second-page .payment-detail.description {
    grid-column: 1 / -1 !important;
  }

  .obligations-second-page .payment-detail.amount strong,
  .obligations-second-page .payment-detail.reference strong {
    white-space: nowrap;
  }
}

@media screen and (max-width: 760px) {
  .obligations-second-page .payment-details {
    grid-template-columns: minmax(76px, 0.34fr) minmax(0, 1.66fr) !important;
  }

  .obligations-second-page .payment-detail.full,
  .obligations-second-page .payment-detail.iban,
  .obligations-second-page .payment-detail.description {
    grid-column: 1 / -1 !important;
  }

  .obligations-second-page .payment-detail.model {
    grid-column: 1 !important;
  }

  .obligations-second-page .payment-detail.reference {
    grid-column: 2 !important;
  }

  .obligations-second-page .payment-detail.amount {
    grid-column: 1 / -1 !important;
  }

  .obligations-second-page .payment-detail.reference strong {
    white-space: nowrap;
    font-size: clamp(0.82rem, 3.6vw, 1.02rem);
  }
}

@media screen and (max-width: 900px) {
  .property-form-panel .property-form-grid {
    display: grid !important;
    grid-template-columns: repeat(20, minmax(0, 1fr)) !important;
    column-gap: 6px !important;
  }

  .property-form-panel .property-form-grid > label {
    grid-column: 1 / -1 !important;
    min-width: 0;
  }

  .property-form-panel .property-form-grid .property-half-field {
    grid-column: span 10 !important;
  }

  .property-form-panel .property-form-grid .property-address-field {
    grid-column: span 13 !important;
  }

  .property-form-panel .property-form-grid .property-city-field {
    grid-column: span 7 !important;
  }

  .property-form-panel .property-form-grid .capacity-field {
    grid-column: span 7 !important;
  }

  .property-form-panel .property-form-grid .capacity-field:nth-of-type(6) {
    grid-column: span 6 !important;
  }
}

/* iOS Safari can report a stale dynamic viewport after the native file picker.
   Keep mobile screens document-scrolled while Roko is fixed at the bottom. */
@media screen and (max-width: 900px) {
  .app-shell.with-ai-comment {
    height: auto !important;
    min-height: 100svh;
    overflow: visible !important;
  }

  .app-shell.with-ai-comment .main {
    height: auto !important;
    min-height: calc(100svh - 44px);
    overflow: visible !important;
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media screen and (max-width: 900px) {
  .app-shell.with-ai-comment .main {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
    scroll-padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .ai-comment-panel {
    bottom: calc(2px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
