:root {
  --green: #4A9E2F;
  --green-dark: #2f6b1e;
  --green-spot-start: #3f7a2c;
  --green-spot-end: #2d5c1e;
  --green-light-bg: #eef6ea;
  --green-mid: #67c04a;
  --brown: #7B4B2A;
  --page-bg: #f2f3f2;
  --bg: #f5f6f5;
  --card: #ffffff;
  --text: #23291f;
  --muted: #6b746a;
  --border: #e3e6e1;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  --radius: 16px;
  --amber-bg: #fff8e1;
  --amber-text: #8a5a12;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--page-bg);
  color: var(--text);
}

button, input, select {
  font-family: inherit;
  font-size: 14px;
}

a { color: var(--green-dark); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-block { width: 100%; margin-top: 8px; }

.chip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.chip-icon { color: var(--green); }
.chip-ghost {
  background: var(--green-light-bg);
  border: none;
  color: var(--green-dark);
  font-weight: 600;
}
.chip-active {
  background: #fdf0e2;
  border: none;
  color: #b6621a;
  font-weight: 600;
}
.chip-remove { margin-left: 2px; font-weight: 700; cursor: pointer; }

/* ---------- Login ---------- */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 380px;
  width: 100%;
  text-align: center;
}
.login-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  box-shadow: var(--shadow);
}
.login-logo img { width: 100%; height: 100%; object-fit: cover; }
.login-card h1 { font-size: 19px; color: var(--green-dark); margin: 0 0 6px; }
.login-subtitle { color: var(--muted); margin: 0 0 24px; }
#login-form { text-align: left; }
#login-form label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
#login-form input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
}
#login-form input:focus { border-color: var(--green); }
.login-error {
  color: #c0392b;
  background: #fdecea;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  margin-top: 12px;
}
.login-forgot {
  display: block;
  font-size: 13px;
  margin-top: 10px;
  text-align: right;
}

/* ---------- App shell ---------- */
.app-shell { min-height: 100vh; }

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 12px 28px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-left { display: flex; align-items: center; gap: 10px; }
.header-logo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.header-brand { font-weight: 700; color: var(--green-dark); }

.header-nav { display: flex; gap: 6px; }
.nav-tab {
  background: none;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  color: var(--muted);
}
.nav-tab.active { color: var(--green-dark); font-weight: 700; border-bottom: 2px solid var(--green-dark); border-radius: 0; }
.nav-tab:not(.active):hover { background: var(--bg); }

.header-right { display: flex; align-items: center; gap: 16px; }

.lang-switch { display: flex; gap: 4px; }
.lang-switch button {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 9px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
}
.lang-switch button.active { background: var(--green); color: #fff; border-color: var(--green); }

.avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brown);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Main card layout ---------- */
.app-main { padding: 28px 20px 60px; }
.view-card {
  max-width: 1390px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 56px;
}

.muted { color: var(--muted); margin: 4px 0 0; }

/* ---------- Home ---------- */
.home-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}
.home-topbar h2, .reports-topbar h2, .profile-topbar h2 { margin: 0; font-size: 28px; font-weight: 700; }

.reports-topbar, .profile-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.reports-topbar h2, .profile-topbar h2 { font-size: 24px; }

.properties-cluster { position: relative; display: flex; align-items: center; }
.cluster-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8a6d4a, #4a3826);
  display: inline-block;
}
.cluster-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-light-bg);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 13px;
  cursor: default;
  margin-left: -10px;
  border: 2px solid #fff;
}
.cluster-tooltip {
  display: none;
  position: absolute;
  right: 0;
  top: 48px;
  background: #33382f;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
  min-width: 200px;
  z-index: 30;
  box-shadow: var(--shadow);
}
.properties-cluster:hover .cluster-tooltip { display: block; }

.filter-row { display: flex; gap: 10px; margin-bottom: 24px; position: relative; flex-wrap: wrap; align-items: center; }
.dropdown { position: relative; }
.dropdown-panel {
  position: absolute;
  top: 46px;
  left: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 14px;
  min-width: 260px;
  z-index: 30;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 9px 10px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text);
}
.dropdown-item:hover { background: var(--bg); }

.date-panel { min-width: 280px; }
.fake-select-label { display: none; }
.fake-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  color: var(--text);
}
.fake-select[disabled] { color: var(--muted); }
.radio-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  cursor: pointer;
}
.radio-line input[type="radio"] { accent-color: var(--green-dark); width: 16px; height: 16px; }
.text-apply-btn {
  display: block;
  margin: 14px auto 0;
  background: none;
  border: none;
  color: var(--green-dark);
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
  color: var(--muted);
}
.search-field input[type="text"] {
  border: none;
  outline: none;
  flex: 1;
  padding: 0;
}
.filter-panel input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
}
.filter-actions { display: flex; gap: 8px; margin-bottom: 8px; }
.filter-actions button {
  background: var(--bg);
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text);
}
.checkbox-list { max-height: 240px; overflow-y: auto; margin-bottom: 10px; }
.checkbox-line { display: flex; align-items: center; gap: 8px; padding: 6px 2px; cursor: pointer; }
.checkbox-line input[type="checkbox"] { accent-color: var(--green-dark); width: 16px; height: 16px; }
.mini-photo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* ---------- Dropdown component (chip trigger + panel) ---------- */
.dd { position: relative; display: inline-block; }
.dd-trigger {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.dd-trigger:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.dd-trigger-icon { color: var(--green); flex-shrink: 0; }
.dd-chevron { transition: transform 200ms ease-out; flex-shrink: 0; }
.dd-trigger[aria-expanded="true"] .dd-chevron { transform: rotate(180deg); }

.dd-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 30;
  max-height: 320px;
  overflow-y: auto;
}
.dd-panel-multiselect { min-width: 260px; }

.dd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 40px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}
.dd-item:hover { background: #f5f6f5; }
.dd-item.active { color: #2f6b1e; font-weight: 600; }
.dd-item-left { display: flex; align-items: center; gap: 10px; }
.dd-item-check { visibility: hidden; color: #2f6b1e; flex-shrink: 0; }
.dd-item.active .dd-item-check { visibility: visible; }

.dd-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.dd-checkbox-row:hover { background: #f5f6f5; }
.dd-checkbox-row input[type="checkbox"] { accent-color: var(--green-dark); width: 16px; height: 16px; }
.dd-multiselect-actions { display: flex; gap: 8px; padding: 4px 8px 8px; }
.dd-multiselect-actions button {
  background: var(--bg);
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text);
}

.kpi-row { display: flex; gap: 16px; margin-bottom: 22px; }
.kpi-card {
  flex: 1;
  background: var(--green-light-bg);
  border-radius: 12px;
  padding: 22px;
}
.kpi-label { color: #3f5c37; font-weight: 600; font-size: 13px; }
.kpi-value { font-size: 32px; font-weight: 700; margin-top: 10px; color: var(--text); }

.review-spotlight {
  position: relative;
  background: linear-gradient(135deg, var(--green-spot-start), var(--green-spot-end));
  color: #fff;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 22px;
  cursor: pointer;
  overflow: hidden;
}
.spotlight-quotemark {
  position: absolute;
  top: 6px;
  right: 24px;
  font-size: 64px;
  font-weight: 700;
  opacity: 0.15;
  line-height: 1;
}
.spotlight-header { font-weight: 600; opacity: 0.85; font-size: 14px; }
.spotlight-rating { position: absolute; top: 46px; right: 28px; font-weight: 700; color: #ffb648; }
.spotlight-quote { font-size: 22px; font-weight: 700; margin: 16px 0 6px; max-width: 80%; }
.spotlight-guest { opacity: 0.8; margin: 0 0 10px; font-size: 14px; }
.spotlight-link { color: #fff; font-weight: 700; text-decoration: none; position: absolute; right: 28px; bottom: 22px; }

.income-card { padding: 0; }
.income-card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.income-total { font-size: 34px; font-weight: 700; margin-bottom: 14px; }
.income-banner {
  background: var(--amber-bg);
  color: var(--amber-text);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.income-banner-icon { color: #c2891a; }
.income-divider { border: none; border-top: 1px solid var(--border); margin: 0 0 20px; }

.income-bar-row {
  display: grid;
  grid-template-columns: 1fr 55%;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
}
.income-bar-text { display: flex; flex-direction: column; gap: 2px; }
.income-bar-value { font-size: 17px; font-weight: 700; }
.income-bar-label { font-size: 13px; color: var(--muted); }
.income-bar-track { background: transparent; border-radius: 8px; height: 48px; overflow: hidden; }
.income-bar-fill { height: 100%; border-radius: 8px; }
.income-bar-subline { font-size: 12px; color: var(--muted); margin: -12px 0 18px; }
.bar-gray { background: #d8dbd6; width: 100%; }
.bar-darkgreen { background: #2e6b1f; }
.bar-midgreen { background: #4a9e2f; }
.bar-lightgreen { background: #67c04a; }

.net-profit-card { margin-top: 22px; }
.net-profit-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 13px;
}
.net-profit-row .net-profit-label { color: var(--muted); }
.net-profit-row-bold { font-weight: 700; font-size: 15px; }
.net-profit-row-bold .net-profit-label { color: var(--text); }
.net-profit-value { font-weight: 600; }
.net-profit-negative { color: #b03a2e; }
.net-profit-positive { color: #2f6b1e; }
.net-profit-divider { border: none; border-top: 1px solid var(--border); margin: 6px 0 10px; }
.net-profit-note { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.net-profit-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--muted);
  background: #eef0ec;
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 6px;
  font-weight: 400;
}
.net-profit-hint {
  color: var(--muted);
  font-size: 12px;
  background: #f4f5f2;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 10px;
}

/* ---------- Calendar ---------- */
.calendar-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.calendar-topbar h2 { font-size: 24px; margin: 0; }
.calendar-topbar-actions { display: flex; align-items: center; gap: 10px; }
.calendar-legend { display: flex; gap: 18px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.legend-booked { background: var(--green-dark); }
.legend-available { background: #e3e6e1; }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-daycell {
  min-height: 76px;
  border-radius: 8px;
  background: var(--bg);
  padding: 6px;
  font-size: 12px;
  position: relative;
}
.cal-daycell.empty { background: transparent; }
.cal-daynum { color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.cal-booking {
  background: var(--green-dark);
  color: #fff;
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 11px;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-weekday {
  text-align: center;
  font-weight: 700;
  color: var(--muted);
  font-size: 12px;
  padding-bottom: 6px;
}

/* ---------- Reports ---------- */
.reports-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.reports-toolbar-download { margin-left: auto; }

.reports-table {
  width: 100%;
  border-collapse: collapse;
}
.reports-table th, .reports-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.reports-table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: none; }
.reports-table tbody tr:hover { background: var(--bg); }

.property-cell { display: flex; align-items: center; gap: 10px; }
.property-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.property-cell span.property-name { text-transform: uppercase; font-weight: 500; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge-statement { border: 1px solid var(--green); color: var(--green-dark); background: #fff; }
.badge-invoice { border: 1px solid var(--brown); color: var(--brown); background: #fff; }
.badge-cancelled { border: 1px solid var(--muted); color: var(--muted); background: #fff; margin-left: 6px; }

.dot-badge {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
  cursor: default;
}
.dot-badge-due { background: var(--amber-text); }

/* ---------- Claims & adjustments ---------- */
.claims-section { margin-top: 28px; }
.claims-heading { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.claims-note { color: var(--muted); font-size: 11px; margin: 8px 0 0; }
.claims-list { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.claims-list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.claims-list-item:last-child { border-bottom: none; }

.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill-paid { background: #fff; color: var(--green-dark); border: 1px solid var(--green); }
.pill-published { background: #eceeec; color: var(--muted); }
.pill-due { background: #dbeafe; color: #1d4ed8; }
.pill-none { color: var(--muted); }

.link-btn {
  background: none;
  border: none;
  color: var(--green-dark);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

/* ---------- Profile ---------- */
.profile-body { display: flex; flex-direction: column; gap: 10px; }
.profile-line {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.profile-line-label { width: 120px; color: var(--muted); font-weight: 600; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 100;
  font-size: 13px;
}

/* ---------- Modal ---------- */
[hidden] {
  display: none !important;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}
.modal-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--muted);
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  background: linear-gradient(135deg, #eef6ea, #ffffff);
  border-radius: 12px;
  padding: 16px 20px;
}
.reviews-avg-number { font-weight: 700; font-size: 30px; }
.reviews-avg-stars { color: #f0a63a; letter-spacing: 2px; }
.reviews-total { color: var(--muted); font-size: 13px; width: 100%; margin-top: 4px; flex-basis: 100%; }

.reviews-tabs {
  display: inline-flex;
  gap: 2px;
  margin-bottom: 16px;
  background: var(--bg);
  border-radius: 10px;
  padding: 4px;
}
.reviews-tab {
  background: none;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}
.reviews-tab.active { background: #fff; color: var(--text); box-shadow: var(--shadow); }

.review-item {
  background: #f7f8f7;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.review-guest { font-weight: 700; }
.review-meta { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 8px; }
.review-badge {
  border: 1px solid var(--green);
  color: var(--green-dark);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
}
.review-rating { font-weight: 700; color: var(--text); }
.review-text { margin: 10px 0; font-size: 17px; }
.review-reply {
  border-left: 3px solid var(--green);
  border-radius: 4px;
  padding: 4px 0 4px 14px;
  margin-top: 10px;
  font-size: 13px;
}
.review-reply-label { font-weight: 700; margin-bottom: 4px; color: var(--green-dark); }
.review-reply-text { color: var(--muted); font-style: italic; }

.statement-box { max-width: 980px; }

.stmt-title { text-align: center; font-size: 20px; font-weight: 700; margin: 4px 0 26px; }

.stmt-header-grid { display: flex; gap: 24px; margin-bottom: 26px; align-items: flex-start; }
.stmt-header-left { flex: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.stmt-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}
.stmt-card-title { font-weight: 700; }
.stmt-card-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }

.stmt-card-manager { display: flex; flex-direction: column; }
.stmt-manager-logo { width: 30px; height: 30px; object-fit: contain; margin-bottom: 8px; }
.stmt-manager-name { font-weight: 700; font-size: 13px; }
.stmt-manager-address { color: var(--muted); font-size: 12px; margin: 2px 0 10px; }
.stmt-owner-label { font-size: 11px; color: var(--muted); font-weight: 600; }
.stmt-owner-name { font-weight: 600; font-size: 13px; margin-top: 2px; }

.stmt-summary {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  min-width: 0;
}
.stmt-summary-heading { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.stmt-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.stmt-summary-row:last-child { border-bottom: none; }
.stmt-summary-bold { font-weight: 700; }
.stmt-summary-sub { padding: 3px 0 3px 14px; font-size: 12px; color: var(--muted); }

.stmt-invoice-note { color: var(--muted); font-size: 11px; margin: 8px 0 0; }

.stmt-reservations-heading { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.stmt-table-wrap { overflow-x: auto; }
.statement-table { margin: 0 0 6px; width: 100%; }
.statement-table th, .statement-table td { padding: 8px 10px; font-size: 12px; white-space: nowrap; }
.statement-table th { color: var(--muted); font-weight: 600; font-size: 11px; }
.statement-table tbody tr.stmt-totals-row td { border-top: 3px double var(--text); }

.stmt-footnote { color: var(--muted); font-size: 11px; margin: 10px 0 18px; }

@media print {
  @page { size: A4 landscape; margin: 12mm; }
  body * { visibility: hidden; }
  .statement-box, .statement-box * { visibility: visible; }
  .statement-box {
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: none;
    max-width: none;
    max-height: none;
    width: 100%;
    overflow: visible;
    background: #fff;
  }
  .stmt-table-wrap { overflow: visible; }
  .statement-table th, .statement-table td { font-size: 9px; white-space: normal; }
  .modal-close, #statement-print { display: none; }
}

/* Buchungstabellen sind breiter als ein Telefon. Sie scrollen in ihrem
   eigenen Rahmen, statt an .view-card (overflow:hidden) abgeschnitten zu
   werden — sonst fehlen dem Eigentümer genau die rechten Spalten:
   Provision und Auszahlung. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-scroll .reports-table { min-width: 720px; }

@media (max-width: 720px) {
  .app-header { flex-wrap: wrap; gap: 10px; }
  .view-card { padding: 24px 16px; }
  .kpi-row { flex-direction: column; }
  .income-bar-row { grid-template-columns: 1fr; gap: 8px; }

  /* Die Filterleiste bricht um, statt die Knöpfe aus dem Bild zu drücken */
  .reports-toolbar { flex-wrap: wrap; gap: 10px; }
  .reports-toolbar-download { margin-left: 0; width: 100%; }

  .reports-table th, .reports-table td { padding: 10px 8px; font-size: 13px; }
}

@media print {
  /* Beim Drucken darf nichts scrollen, sonst fehlt die halbe Tabelle im PDF */
  .table-scroll { overflow: visible; }
  .table-scroll .reports-table { min-width: 0; }
}

.status-none { color: var(--muted); padding-left: 14px; }
