:root {
  --page: #e8ebf3;
  --nav: #273c60;
  --nav-active: #314d79;
  --nav-text: #eef5ff;
  --nav-muted: #aebbd1;
  --workspace: #fbfcfe;
  --surface: #ffffff;
  --soft: #f5f8fb;
  --line: #e5ecf3;
  --line-dark: #d8e2eb;
  --text: #1b2734;
  --muted: #6f7d8c;
  --blue: #3ba7e0;
  --blue-soft: #e8f7ff;
  --green: #28a56d;
  --green-soft: #e7f7ef;
  --amber: #f5a524;
  --amber-soft: #fff4dc;
  --red: #d85d5d;
  --red-soft: #fff0f0;
  --teal: #52b7ad;
  --shadow: 0 26px 70px rgba(30, 42, 62, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.35;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

h2 {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

h3 {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.mobile-bar {
  display: none;
}

.mobile-brand {
  display: grid;
  width: 112px;
  height: 30px;
  place-items: center;
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
  padding: 4px 7px;
}

.mobile-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-frame {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 172px minmax(0, 1fr);
  background: var(--surface);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  max-height: 100vh;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--nav);
  color: var(--nav-text);
  padding: 22px 15px 20px;
}

.brand-mark {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  width: 148px;
  min-height: 42px;
  margin-bottom: 28px;
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
  padding: 6px 8px;
  color: #fff;
}

.app-logo {
  display: block;
  width: 100%;
  max-width: 132px;
  height: 32px;
  object-fit: contain;
  object-position: left center;
}

.side-nav {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
  gap: 5px;
  margin-right: -6px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-color: rgba(207, 220, 238, 0.35) transparent;
  scrollbar-width: thin;
}

.side-nav::-webkit-scrollbar {
  width: 5px;
}

.side-nav::-webkit-scrollbar-track {
  background: transparent;
}

.side-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(207, 220, 238, 0.32);
}

.nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 31px;
  gap: 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--nav-muted);
  font-size: 11px;
  font-weight: 500;
  padding: 0 8px;
  text-align: left;
}

.nav-item.active,
.nav-item:hover {
  background: var(--nav-active);
  color: #fff;
}

.nav-item.locked {
  cursor: not-allowed;
  opacity: 0.58;
}

.nav-item.locked:hover {
  background: transparent;
  color: var(--nav-muted);
}

.nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-badge {
  margin-left: auto;
  border: 1px solid rgba(82, 183, 173, 0.55);
  border-radius: 4px;
  color: #6bd0c8;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 6px;
}

.nav-item.active .nav-badge,
.nav-item:hover .nav-badge {
  background: rgba(82, 183, 173, 0.18);
  color: #bff4ef;
}

.side-subnav {
  display: grid;
  gap: 3px;
  margin: -1px 0 4px 23px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.side-subnav a {
  display: flex;
  min-height: 24px;
  align-items: center;
  border-radius: 4px;
  color: var(--nav-muted);
  font-size: 10px;
  font-weight: 600;
  padding: 0 8px;
}

.side-subnav a.active,
.side-subnav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sidebar-reset {
  flex: 0 0 auto;
  margin-top: 14px;
  background: var(--nav);
}

.sidebar-user {
  display: grid;
  min-width: 0;
  gap: 2px;
  margin-bottom: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 11px 8px;
}

.sidebar-user strong {
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.sidebar-user span {
  min-width: 0;
  color: var(--nav-muted);
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.nav-icon {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  color: currentColor;
  opacity: 0.95;
}

.dashboard-icon::before,
.calendar-icon::before,
.booking-icon::before,
.guest-icon::before,
.payment-icon::before,
.invoice-icon::before,
.report-icon::before,
.expense-icon::before,
.settings-icon::before,
.logout-icon::before {
  position: absolute;
  content: "";
}

.dashboard-icon::before {
  inset: 2px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(45deg);
}

.calendar-icon::before,
.booking-icon::before,
.payment-icon::before,
.invoice-icon::before {
  inset: 2px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.calendar-icon::before {
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.16);
}

.guest-icon::before {
  top: 1px;
  left: 3px;
  width: 7px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 8px 0 -2px currentColor;
}

.payment-icon::before {
  box-shadow: inset 0 -4px 0 rgba(255, 255, 255, 0.14);
}

.report-icon::before {
  right: 2px;
  bottom: 1px;
  left: 2px;
  height: 9px;
  border-bottom: 1.5px solid currentColor;
  background:
    linear-gradient(currentColor, currentColor) 1px 5px / 2px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 5px 2px / 2px 7px no-repeat,
    linear-gradient(currentColor, currentColor) 9px 0 / 2px 9px no-repeat;
}

.expense-icon::before {
  inset: 1px 2px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, 0.13),
    0 4px 0 -2px currentColor;
}

.settings-icon::before {
  inset: 3px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  box-shadow:
    0 -5px 0 -3px currentColor,
    0 5px 0 -3px currentColor,
    5px 0 0 -3px currentColor,
    -5px 0 0 -3px currentColor;
}

.logout-icon::before {
  top: 2px;
  left: 1px;
  width: 8px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-right: 0;
  border-radius: 2px 0 0 2px;
  box-shadow: 5px 4px 0 -4px currentColor;
}

.logout-icon::after {
  position: absolute;
  top: 5px;
  right: 1px;
  width: 7px;
  height: 1.5px;
  background: currentColor;
  content: "";
}

.support-icon::before {
  position: absolute;
  inset: 2px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  content: "";
}

.support-icon::after {
  position: absolute;
  bottom: 1px;
  left: 5px;
  width: 5px;
  height: 5px;
  border-bottom: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  background: transparent;
  content: "";
  transform: skew(-22deg);
}

.workspace {
  display: grid;
  min-width: 0;
  min-height: 100vh;
  grid-template-rows: 58px 1fr;
  background: var(--workspace);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 0 20px 0 16px;
}

.title-row {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.breadcrumb {
  margin: 0 0 2px;
  color: #8a96a6;
  font-size: 10px;
  font-weight: 500;
}

.icon-button {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #7a8796;
  padding: 0;
}

.icon-button.small {
  width: 27px;
  height: 27px;
  border-color: var(--line);
  background: var(--surface);
}

.icon-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.top-actions,
.step-nav {
  display: flex;
  align-items: center;
  gap: 9px;
}

.trial-countdown {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  padding: 4px 10px;
}

.trial-countdown strong {
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

.trial-countdown span {
  display: grid;
  gap: 1px;
  color: #607286;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.15;
}

.trial-countdown small {
  color: #9aa6b4;
  font-size: 9px;
  font-weight: 500;
}

.trial-countdown.amber {
  border-color: #efd79a;
  background: #fff9eb;
}

.trial-countdown.red {
  border-color: #efc1c1;
  background: var(--red-soft);
}

.property-switcher select {
  min-height: 30px;
  max-width: 190px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #536274;
  font-size: 11px;
  font-weight: 600;
  outline: 0;
  padding: 0 28px 0 9px;
}

.step-nav {
  flex: 1;
  justify-content: center;
  min-width: 0;
  gap: 7px;
  color: #95a1b2;
}

.step-link {
  position: relative;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #7c8998;
  font-size: 10px;
  font-weight: 700;
  padding: 0 10px 0 8px;
}

.step-count {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: #6c7a89;
  font-size: 9px;
}

.step-label {
  white-space: nowrap;
}

.step-arrow {
  color: #b4bdc9;
  font-size: 17px;
  line-height: 1;
}

.step-link.current {
  border-color: #bcdedb;
  background: #e9f7f5;
  color: #16394b;
  box-shadow: inset 0 -2px 0 var(--teal);
}

.step-link.current .step-count {
  background: var(--teal);
  color: #fff;
}

.step-link.is-complete {
  border-color: #cedbe8;
  background: #f6f9fc;
  color: #40566c;
}

.step-link.is-complete .step-count {
  background: var(--nav);
  color: #fff;
}

.primary-button,
.ghost-button,
.text-action,
.danger-button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 0 13px;
}

.primary-button {
  border: 0;
  background: var(--teal);
  color: #fff;
}

.ghost-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: #526171;
}

.danger-button {
  border: 1px solid #efc1c1;
  background: var(--red-soft);
  color: #9c3a3a;
}

.text-action {
  min-height: 0;
  border: 0;
  background: transparent;
  color: #607286;
  padding: 0;
}

.danger-action {
  color: #a54242;
}

.wide {
  width: 100%;
}

.content {
  min-width: 0;
  min-height: 0;
  padding: 22px 24px 24px;
}

.dashboard-content,
.invoice-main,
.report-content {
  display: grid;
  gap: 16px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.metric-strip.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-strip.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.statement-strip {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.metric-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 13px 14px;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.metric-card strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 23px;
  font-weight: 600;
  line-height: 1;
}

.metric-card small {
  display: block;
  margin-top: 6px;
  color: #9aa6b5;
  font-size: 10px;
}

.dashboard-grid,
.two-column-content {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 16px;
}

.calendar-content {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 16px;
}

.booking-content {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 276px;
  gap: 16px;
}

.invoice-content {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 302px;
  gap: 16px;
}

.expenses-content {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 16px;
}

.expenses-main {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 16px;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.panel-head {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 0 15px;
}

.panel-head p,
.section-title p {
  color: var(--muted);
  font-size: 10px;
}

.section-note {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  padding: 10px 15px;
}

.small-head {
  min-height: 44px;
}

.table-list {
  display: grid;
}

.data-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.15fr) 0.62fr 0.72fr 0.58fr 0.7fr;
  min-height: 51px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: #475667;
  font-size: 11px;
  padding: 0 15px;
}

.data-row:last-child,
.document-row:last-child {
  border-bottom: 0;
}

.header-row {
  min-height: 32px;
  background: var(--soft);
  color: #8a96a6;
  font-size: 10px;
  font-weight: 600;
}

.data-row strong {
  display: block;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
}

.data-row small {
  display: block;
  color: #93a0af;
  font-size: 10px;
  font-weight: 400;
}

.bookings-table .data-row {
  grid-template-columns: minmax(135px, 1fr) minmax(140px, 1.1fr) 0.8fr 0.7fr 0.7fr 0.7fr auto;
}

.money-table .data-row {
  grid-template-columns: minmax(140px, 1fr) 1fr 0.62fr 0.6fr 0.7fr;
}

.sales-table .data-row {
  grid-template-columns: minmax(128px, 0.85fr) minmax(170px, 1.25fr) 0.72fr 0.62fr 0.58fr;
}

.customers-table .data-row {
  grid-template-columns: minmax(160px, 1.2fr) 0.8fr 0.75fr 0.45fr 0.7fr 44px;
}

.customer-history-table .data-row {
  grid-template-columns: minmax(120px, 0.8fr) minmax(170px, 1fr) 0.8fr 0.58fr 0.65fr 44px;
}

.customer-sales-table .data-row {
  grid-template-columns: minmax(120px, 0.8fr) minmax(180px, 1.2fr) 0.8fr 0.58fr 0.6fr;
}

.statement-table .data-row {
  grid-template-columns: 0.55fr 0.62fr 0.72fr minmax(220px, 1.4fr) 0.55fr;
}

.billing-run-table {
  overflow-x: auto;
}

.table-list.is-scrollable {
  max-height: min(58vh, 620px);
  overflow: auto;
}

.table-list.is-scrollable .header-row {
  position: sticky;
  top: 0;
  z-index: 2;
}

.invoice-ledger-table.is-scrollable {
  max-height: min(56vh, 610px);
}

.tenant-bills-table.is-scrollable {
  max-height: min(60vh, 660px);
}

.billing-run-row {
  min-width: 920px;
  grid-template-columns: 112px minmax(170px, 1.1fr) minmax(170px, 1.1fr) minmax(150px, 0.95fr) 100px 128px;
}

.billing-charge-row {
  min-width: 920px;
  grid-template-columns: 104px minmax(170px, 1.1fr) minmax(170px, 1.1fr) 120px 90px 112px;
}

.billing-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.billing-check input {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.muted-row {
  background: #f8fafc;
  color: #8a96a6;
}

.muted-row strong {
  color: #6f7d8c;
}

.billing-run-note {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.billing-run-actions {
  flex-wrap: wrap;
}

.billing-summary-strip,
.billing-action-group,
.table-toolbar {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.billing-summary-strip {
  flex-wrap: wrap;
}

.billing-summary-strip span {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: #6d7b8d;
  font-size: 10px;
  font-weight: 600;
  padding: 0 10px;
}

.billing-summary-strip strong {
  color: var(--text);
  font-size: 10px;
}

.table-toolbar {
  flex-wrap: wrap;
  justify-content: space-between;
}

.table-toolbar input,
.table-toolbar select {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #536274;
  font-size: 11px;
  font-weight: 600;
  outline: 0;
  padding: 0 9px;
}

.table-toolbar input[type="search"] {
  min-width: min(280px, 100%);
  flex: 1 1 240px;
}

.table-toolbar span {
  color: var(--muted);
  font-size: 10px;
}

.ledger-filters {
  justify-content: flex-start;
}

.compact-month-field {
  width: 150px;
}

.inline-amount {
  width: 100%;
  min-height: 31px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: #415062;
  font-size: 11px;
  padding: 0 9px;
}

.billing-charge-form {
  padding-right: 18px;
}

.expenses-table {
  overflow-x: auto;
}

.expenses-table .data-row {
  min-width: 730px;
  gap: 7px;
  grid-template-columns: 66px minmax(124px, 1fr) 96px 76px 66px 58px 70px 62px 38px;
}

.expenses-table .data-row > :last-child {
  position: sticky;
  right: 0;
  justify-self: end;
  background: var(--surface);
}

.expenses-table .header-row > :last-child {
  background: var(--soft);
}

.expenses-table .chip {
  width: auto;
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

.expenses-table .empty-row {
  grid-template-columns: 1fr;
}

.expenses-table .empty-row span {
  grid-column: 1 / -1;
}

.expenses-table .empty-row > :last-child {
  position: static;
  justify-self: stretch;
  background: transparent;
}

.suppliers-table .data-row {
  grid-template-columns: minmax(170px, 1.4fr) minmax(110px, 0.8fr) minmax(120px, 0.8fr) 96px 76px 46px;
}

.expenses-setup-content {
  display: grid;
  gap: 16px;
}

.expense-summary-card {
  border-top: 3px solid #7c6f47;
}

.expense-form-card .panel-head {
  align-items: flex-start;
}

.supplier-quick-form {
  border-bottom: 1px solid var(--line);
  padding: 14px 15px;
}

.setup-edit-table {
  overflow-x: auto;
}

.setup-edit-table .data-row {
  min-width: 780px;
}

.categories-table .data-row {
  grid-template-columns: minmax(170px, 1fr) minmax(220px, 1.2fr) 90px 90px 54px;
}

.setup-edit-table input,
.setup-edit-table select {
  width: 100%;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: #3f4e60;
  font-size: 11px;
  outline: 0;
  padding: 0 7px;
}

.setup-edit-table small input {
  margin-top: 5px;
}

.setup-edit-table .switch-field {
  min-height: 28px;
}

.chip {
  display: inline-flex;
  width: max-content;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  padding: 0 8px;
}

.chip.green {
  background: var(--green-soft);
  color: #13754b;
}

.chip.amber {
  background: var(--amber-soft);
  color: #8a5b00;
}

.chip.blue {
  background: var(--blue-soft);
  color: #1874a6;
}

.chip.red {
  background: var(--red-soft);
  color: #9c3a3a;
}

.stacked-column,
.action-stack,
.detail-stack,
.form-stack,
.compact-stack {
  display: grid;
  min-width: 0;
}

.stacked-column {
  gap: 16px;
}

.detail-stack {
  gap: 0;
  padding: 4px 15px 8px;
}

.detail-stack div {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 14px;
}

.detail-stack div:last-child {
  border-bottom: 0;
}

.detail-stack span {
  color: var(--muted);
  font-size: 10px;
}

.detail-stack strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  text-align: right;
}

.detail-stack strong small {
  display: block;
  color: #93a0af;
  font-size: 10px;
  font-weight: 500;
}

.settings-plan-stack {
  display: grid;
  gap: 8px;
  padding: 12px 15px;
}

.settings-plan-stack article {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--soft);
  padding: 10px;
}

.settings-plan-stack article.selected {
  border-color: #a9d8d2;
  background: #edf9f7;
  box-shadow: inset 3px 0 0 var(--teal);
}

.settings-plan-stack strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text);
  font-size: 11px;
}

.settings-plan-stack span,
.settings-plan-stack small {
  color: var(--muted);
  font-size: 10px;
}

.payment-line-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.invoice-payment-history {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 12px;
}

.invoice-payment-history > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.invoice-payment-history p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
}

.invoice-payment-history small {
  color: #93a0af;
  font-size: 10px;
  font-weight: 500;
}

.warning-text {
  color: #a26600 !important;
}

.success-text {
  color: #13754b !important;
}

.action-stack {
  gap: 8px;
  padding: 12px 15px;
}

.attention-list {
  display: grid;
  padding: 8px 14px 12px;
}

.attention-list div {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.attention-list div:last-child {
  border-bottom: 0;
}

.attention-list strong {
  display: block;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
}

.attention-list small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.dot,
.legend-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot {
  margin-top: 4px;
}

.dot.amber,
.legend-dot.amber {
  background: var(--amber);
}

.dot.red,
.legend-dot.red {
  background: var(--red);
}

.dot.blue,
.legend-dot.blue {
  background: var(--blue);
}

.dot.green,
.legend-dot.green {
  background: var(--green);
}

.count-pill {
  display: grid;
  min-width: 24px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #1874a6;
  font-size: 10px;
  font-weight: 700;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 12px;
}

.room {
  display: grid;
  min-height: 31px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #536274;
  font-size: 11px;
  font-weight: 700;
}

.room.ready {
  background: var(--green-soft);
  border-color: #c9ebd9;
}

.room.occupied {
  background: var(--blue-soft);
  border-color: #c8e9f8;
}

.room.hold,
.room.needs_cleaning {
  background: var(--amber-soft);
  border-color: #f6dfad;
}

.timeline-row,
.document-row {
  display: grid;
  min-height: 42px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: #5c6b7a;
  font-size: 11px;
  padding: 0 15px;
}

.timeline-row {
  grid-template-columns: 70px minmax(150px, 220px) 1fr auto;
}

.document-row {
  grid-template-columns: 130px 1fr 80px auto;
}

.timeline-row strong,
.document-row strong {
  color: var(--text);
  font-weight: 600;
}

.timeline-row small,
.document-row small {
  color: var(--muted);
}

.calendar-shell {
  display: grid;
  min-width: 0;
  grid-template-rows: 54px 1fr;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
}

.segmented-control {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.segmented-control a,
.segmented-control button {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: #6e7c8b;
  font-size: 10px;
  font-weight: 600;
  padding: 0 11px;
}

.segmented-control a:last-child,
.segmented-control button:last-child {
  border-right: 0;
}

.segmented-control .selected {
  background: var(--nav);
  color: #fff;
}

.calendar-range {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 11px;
}

.search-field {
  display: flex;
  width: 155px;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  padding: 0 8px;
}

.search-field span {
  width: 9px;
  height: 9px;
  border: 1.5px solid #96a3b1;
  border-radius: 50%;
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #657384;
  font-size: 10px;
}

.calendar-grid {
  position: relative;
  display: grid;
  min-height: 536px;
  grid-template-columns: 132px repeat(10, minmax(58px, 1fr));
  grid-auto-rows: 48px;
  overflow-x: auto;
  background:
    linear-gradient(to right, transparent 131px, var(--line) 132px, transparent 133px),
    repeating-linear-gradient(to right, transparent 0, transparent calc((100% - 132px) / 10 - 1px), var(--line) calc((100% - 132px) / 10)),
    repeating-linear-gradient(to bottom, transparent 0, transparent 47px, var(--line) 48px);
}

.cal-cell {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: #7e8b9b;
  font-size: 10px;
  font-weight: 600;
  padding: 0 10px;
}

.cal-corner,
.cal-day {
  min-height: 36px;
  background: var(--soft);
}

.cal-day {
  justify-content: center;
  border-left: 1px solid var(--line);
}

.cal-day.today {
  color: var(--text);
  background: #eef7fc;
}

.room-name {
  display: flex;
  grid-column: 1;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: #4d5d6e;
  font-size: 11px;
  font-weight: 600;
  padding: 0 11px;
  z-index: 2;
}

.booking-block {
  display: flex;
  min-width: 0;
  align-items: center;
  overflow: hidden;
  align-self: center;
  height: 27px;
  margin: 0 5px;
  border-radius: 4px;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 0 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 3;
}

.booking-block.green {
  background: var(--green);
}

.booking-block.blue {
  background: var(--blue);
}

.booking-block.amber {
  background: var(--amber);
  color: #553800;
}

.booking-block.red {
  background: var(--red);
}

.legend {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  color: #657384;
  font-size: 10px;
  padding: 13px 15px;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.form-stack {
  gap: 14px;
}

.form-section {
  display: grid;
  grid-template-columns: 40px 1fr;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.form-section.is-active {
  border-color: #b8deda;
  box-shadow: 0 12px 34px rgba(39, 60, 96, 0.08);
}

.form-section.is-active .section-number {
  background: var(--teal);
  color: #fff;
}

.section-number {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  margin: 23px 0 0 15px;
  border-radius: 50%;
  background: var(--soft);
  color: #6f7d8c;
  font-size: 11px;
  font-weight: 700;
}

.section-body {
  min-width: 0;
  padding: 18px 18px 18px 8px;
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.form-grid {
  display: grid;
  gap: 10px;
}

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

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

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

.field {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.field[hidden],
[data-non-resident-field][hidden],
[data-resident-id-field][hidden] {
  display: none;
}

.field span {
  color: #7f8c9b;
  font-size: 10px;
  font-weight: 600;
}

.field small {
  color: #8290a1;
  font-size: 10px;
  line-height: 1.35;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 31px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: #415062;
  font-size: 11px;
  outline: 0;
  padding: 0 9px;
}

.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid {
  border-color: #d96a6a;
  box-shadow: 0 0 0 2px rgba(217, 106, 106, 0.12);
}

.field textarea {
  min-height: 68px;
  padding: 8px 9px;
  resize: vertical;
}

.readonly-field {
  min-height: 58px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft);
  padding: 8px 10px;
}

.readonly-field strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.customer-picker {
  position: relative;
  display: grid;
  gap: 8px;
}

.booking-customer-picker {
  margin-bottom: 12px;
}

.picker-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 31px;
  gap: 6px;
}

.customer-results {
  position: absolute;
  z-index: 18;
  top: 54px;
  right: 0;
  left: 0;
  display: grid;
  max-height: 226px;
  overflow-y: auto;
  border: 1px solid var(--line-dark);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(38, 52, 75, 0.14);
}

.customer-results[hidden] {
  display: none;
}

.customer-results button {
  display: grid;
  min-height: 45px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: #445367;
  padding: 8px 10px;
  text-align: left;
}

.customer-results button:last-child {
  border-bottom: 0;
}

.customer-results button:hover {
  background: var(--soft);
}

.customer-results strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.customer-results small,
.customer-no-results {
  color: #8794a5;
  font-size: 10px;
}

.customer-no-results {
  padding: 12px 10px;
}

.inline-customer-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fbfdff;
  padding: 10px;
}

.inline-customer-panel[hidden] {
  display: none;
}

.customer-profile-content {
  display: grid;
  align-content: start;
  gap: 16px;
}

.customer-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.customer-profile-grid div {
  min-height: 66px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 13px 15px;
}

.customer-profile-grid div:nth-child(3n) {
  border-right: 0;
}

.customer-profile-grid div:nth-last-child(-n+3) {
  border-bottom: 0;
}

.customer-profile-grid span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.customer-profile-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
}

.customer-account-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.customer-account-grid div {
  min-height: 58px;
  border-right: 1px solid var(--line);
  padding: 12px 15px;
}

.customer-account-grid div:nth-child(4n),
.customer-account-grid div:last-child {
  border-right: 0;
}

.customer-account-grid span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.customer-account-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
}

.wide-2 {
  grid-column: span 2;
}

.wide-3 {
  grid-column: span 3;
}

.summary-total {
  border-bottom: 1px solid var(--line);
  padding: 18px 15px;
}

.summary-total span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.summary-total strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}

.extras-builder {
  display: grid;
  gap: 9px;
  margin-bottom: 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fbfdff;
  padding: 10px;
}

.extras-builder-head {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.extras-builder-head p {
  color: var(--muted);
  font-size: 10px;
}

.extra-rows {
  display: grid;
  gap: 8px;
}

.extra-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.2fr) minmax(110px, 1fr) 58px 80px 84px 30px;
  gap: 7px;
  align-items: end;
}

.sale-line-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 112px minmax(150px, 1fr) 58px 78px 78px 30px;
  gap: 7px;
  align-items: end;
}

.sales-lines-builder {
  margin-bottom: 0;
}

.sales-total-preview {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #657384;
  font-size: 11px;
  padding-top: 8px;
}

.sales-total-preview strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.account-billing-box {
  display: grid;
  gap: 9px;
  margin-bottom: 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fbfdff;
  padding: 10px;
}

.statement-metrics {
  padding: 14px;
}

.extra-remove {
  margin-bottom: 0;
}

.payment-grid {
  padding-top: 2px;
}

.stay-adjust-form {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding: 14px 0 0;
}

.stay-adjust-form .ghost-button {
  justify-self: end;
  width: auto;
  min-width: 138px;
}

.danger-form {
  border-top: 1px solid var(--line);
}

.settings-content {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 16px;
}

.settings-workspace-form {
  display: grid;
  grid-template-columns: 1fr;
}

.settings-workspace-form .panel-head,
.settings-workspace-form .section-body,
.settings-workspace-form .settings-save-bar {
  grid-column: 1 / -1;
}

.settings-workspace-form .section-body {
  padding: 18px;
}

.settings-main,
.settings-side {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 16px;
}

.settings-list {
  display: grid;
}

.scroll-list {
  overflow-x: auto;
}

.settings-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 108px 78px 92px 48px 60px 96px;
  gap: 6px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
}

.settings-row:last-child {
  border-bottom: 0;
}

.settings-header {
  min-height: 34px;
  background: var(--soft);
  color: #8a96a6;
  font-size: 10px;
  font-weight: 700;
  padding-top: 0;
  padding-bottom: 0;
}

.extra-settings-row {
  min-width: 920px;
  grid-template-columns: minmax(150px, 1.15fr) 124px 82px 112px 58px 70px 54px 64px 112px;
}

.room-settings-row {
  min-width: 830px;
  grid-template-columns: minmax(130px, 1.05fr) 132px 76px 92px 114px 62px 112px;
}

.property-settings-row {
  grid-template-columns: minmax(150px, 1.1fr) minmax(140px, 0.9fr) minmax(150px, 0.95fr) 96px minmax(150px, 0.9fr);
}

.team-settings-row {
  grid-template-columns: minmax(130px, 0.9fr) 100px minmax(140px, 0.9fr) minmax(190px, 1.25fr) 76px;
}

.property-settings-row strong,
.team-settings-row strong {
  display: block;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.property-settings-row small,
.team-settings-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.settings-card-form {
  display: grid;
  gap: 12px;
  padding: 14px 15px 15px;
}

.property-logo-form {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.property-logo-thumb,
.property-logo-placeholder {
  width: 42px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.property-logo-thumb {
  object-fit: contain;
  padding: 3px;
}

.property-logo-placeholder {
  display: grid;
  place-items: center;
  color: #9aa6b5;
  font-size: 9px;
  font-weight: 700;
}

.logo-upload-button {
  min-height: 26px;
  cursor: pointer;
  padding-inline: 10px;
}

.logo-upload-button input {
  display: none;
}

.organization-logo-field {
  align-content: start;
}

.organization-logo-control {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--soft);
  padding: 10px;
}

.organization-logo-thumb,
.organization-logo-placeholder {
  width: 96px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.organization-logo-thumb {
  object-fit: contain;
  padding: 5px;
}

.organization-logo-placeholder {
  display: grid;
  place-items: center;
  color: #8c9aac;
  font-size: 10px;
  font-weight: 700;
}

.organization-logo-actions {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.compact-save-button {
  min-height: 26px;
  padding-inline: 12px;
}

.organization-logo-actions small {
  color: #728096;
  font-size: 10px;
  line-height: 1.35;
}

.settings-save-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px 15px;
}

.settings-save-bar span {
  color: #607286;
  font-size: 10px;
  font-weight: 700;
}

.room-settings-add {
  display: grid;
  grid-template-columns: minmax(120px, 1.1fr) minmax(120px, 1fr) 74px 98px 68px 112px 82px;
  gap: 8px;
  align-items: end;
}

.tax-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.settings-note {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft);
  color: #607286;
  font-size: 10px;
  padding: 9px 10px;
}

.settings-summary p {
  color: #607286;
  font-size: 10px;
}

.compact-field span {
  display: none;
}

.settings-actions {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}

.settings-actions .ghost-button,
.settings-actions .danger-button {
  min-height: 27px;
  padding: 0 7px;
}

.package-card-list {
  display: grid;
  gap: 12px;
  padding: 14px 15px 16px;
}

.package-editor-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 13px;
}

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

.package-editor-head strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.package-editor-head small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.package-items-box {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--soft);
  padding: 10px;
}

.package-item-rows {
  display: grid;
  gap: 7px;
}

.package-item-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(150px, 1.3fr) 62px 31px;
  gap: 7px;
  align-items: end;
}

.mini-form .package-item-row {
  grid-template-columns: minmax(0, 1fr) 52px 31px;
}

.mini-form .package-item-row .field:first-child {
  grid-column: 1 / -1;
}

.package-item-row .extra-remove {
  align-self: end;
}

.switch-field {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 7px;
  color: #607286;
  font-size: 10px;
  font-weight: 700;
}

.switch-field input {
  width: 14px;
  height: 14px;
  accent-color: var(--teal);
}

.inline-switch {
  margin: -2px 0 1px;
}

.settings-summary {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 14px 15px;
}

.settings-mini-list {
  display: grid;
  padding: 6px 15px 0;
}

.settings-mini-row {
  display: grid;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}

.settings-mini-row:last-child {
  border-bottom: 0;
}

.settings-mini-row strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.settings-mini-row span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.multi-checks {
  display: grid;
  max-height: 124px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 9px;
}

.supplier-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 31px;
  gap: 7px;
  align-items: end;
}

.add-supplier-button {
  margin-bottom: 0;
}

.vat-help {
  margin-top: -2px;
  color: #697789;
  font-size: 10px;
  line-height: 1.45;
}

.expense-tax-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.expense-tax-preview div {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft);
  padding: 9px;
}

.expense-tax-preview span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.expense-tax-preview strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.vat-input-cell input {
  width: 100%;
  min-height: 25px;
  margin-top: 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  outline: 0;
  padding: 0 7px;
}

.vat-input-cell input[readonly] {
  background: transparent;
  border-color: transparent;
  padding-left: 0;
}

.vat-input-cell strong {
  display: none;
}

.supplier-form-panel {
  width: min(100%, 760px);
}

.supplier-form .switch-field {
  margin-top: 2px;
}

.expense-detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 16px;
}

.expense-paper {
  margin: 14px;
  border: 1px solid var(--line-dark);
  background: #fff;
}

.expense-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.expense-detail-grid div,
.expense-notes {
  display: grid;
  gap: 4px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}

.expense-detail-grid div:nth-child(3n) {
  border-right: 0;
}

.expense-detail-grid div:nth-last-child(-n+3) {
  border-bottom: 0;
}

.expense-detail-grid span,
.expense-notes span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.expense-detail-grid strong,
.expense-notes strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.expense-notes {
  border-right: 0;
}

.expense-notes:last-child {
  border-bottom: 0;
}

.attachment-box {
  display: grid;
  gap: 9px;
  padding: 14px 15px;
}

.attachment-box strong {
  color: var(--text);
  font-size: 12px;
}

.attachment-box span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.locked-addon-panel {
  width: min(100%, 420px);
}

.locked-addon-body {
  display: grid;
}

.tax-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 15px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-cloud span {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #5e6c7c;
  font-size: 10px;
  font-weight: 700;
  padding: 0 8px;
}

.platform-content {
  display: grid;
  gap: 16px;
}

.traffic-head {
  align-items: flex-start;
  min-height: 62px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.platform-grid,
.traffic-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 16px;
}

.platform-filters {
  display: flex;
  align-items: center;
  gap: 8px;
}

.traffic-filter-grid {
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 14px 15px;
}

.traffic-filter-grid input[type="search"] {
  flex: 1 1 260px;
  min-width: min(360px, 100%);
}

.traffic-filter-grid input[name="year"],
.traffic-filter-grid input[name="workspace_id"] {
  width: 92px;
}

.traffic-filter-grid input[name="source"] {
  width: 132px;
}

.platform-filters select,
.platform-filters input {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #536274;
  font-size: 11px;
  font-weight: 600;
  outline: 0;
  padding: 0 9px;
}

.platform-filter-select {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #536274;
  font-size: 11px;
  font-weight: 600;
  outline: 0;
  padding: 0 28px 0 9px;
}

.compact-date {
  width: 126px;
  gap: 2px;
}

.compact-date input {
  min-height: 28px;
}

.compact-select {
  width: 154px;
  gap: 2px;
}

.compact-select select {
  min-height: 28px;
  width: 100%;
}

.traffic-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.traffic-kpi-grid.expanded {
  border-top: 1px solid var(--line);
}

.traffic-kpi-grid.compact-kpis {
  border-top: 1px solid var(--line);
}

.traffic-kpi-grid article {
  min-height: 82px;
  border-right: 1px solid var(--line);
  padding: 15px;
}

.traffic-kpi-grid article:last-child {
  border-right: 0;
}

.traffic-kpi-grid span,
.journey-summary span,
.recommendation-list strong {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.traffic-kpi-grid strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.traffic-kpi-grid small {
  display: block;
  margin-top: 7px;
  color: #94a1b0;
  font-size: 10px;
}

.platform-chart {
  display: grid;
  height: 246px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 9px;
  padding: 22px 18px 12px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(to bottom, transparent 0, transparent 24%, rgba(229, 236, 243, 0.8) 25%, transparent 26%),
    linear-gradient(to bottom, transparent 0, transparent 49%, rgba(229, 236, 243, 0.8) 50%, transparent 51%),
    linear-gradient(to bottom, transparent 0, transparent 74%, rgba(229, 236, 243, 0.8) 75%, transparent 76%);
}

.platform-chart.large {
  height: 285px;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  border-bottom: 0;
}

.traffic-chart {
  overflow-x: auto;
}

.chart-column {
  display: grid;
  height: 100%;
  grid-template-rows: 1fr 18px;
  gap: 7px;
  align-items: end;
}

.chart-column span {
  display: block;
  min-height: 18px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #52b7ad, #3ba7e0);
}

.chart-column small {
  color: #8b98a8;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

.platform-summary-row,
.billing-plan-strip,
.gateway-grid,
.auth-checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.platform-summary-row span,
.billing-plan-strip article,
.gateway-grid div {
  min-height: 74px;
  border-right: 1px solid var(--line);
  padding: 14px 15px;
}

.platform-summary-row span:last-child,
.billing-plan-strip article:last-child,
.gateway-grid div:last-child {
  border-right: 0;
}

.platform-summary-row strong,
.billing-plan-strip strong,
.gateway-grid strong,
.workspace-payment-card > strong,
.auth-flow strong,
.auth-checklist strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.platform-summary-row small,
.billing-plan-strip small,
.gateway-grid small,
.workspace-payment-card > small,
.auth-flow small,
.auth-checklist small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.addon-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 15px;
}

.addon-card {
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 14px;
}

.addon-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.addon-card-head span:first-child,
.addon-summary dt {
  color: #65758a;
  font-size: 10px;
  font-weight: 800;
}

.addon-card-head strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.addon-card p {
  min-height: 34px;
  color: #66758a;
  font-size: 11px;
  line-height: 1.5;
}

.addon-summary {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}

.addon-summary div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
}

.addon-summary div:last-child {
  border-bottom: 0;
}

.addon-summary dt,
.addon-summary dd {
  margin: 0;
}

.addon-summary dd {
  color: #172033;
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.addon-note {
  margin: 0 15px 15px;
}

.source-list {
  display: grid;
  gap: 13px;
  padding: 14px 15px 16px;
}

.source-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
}

.source-list span,
.billing-plan-strip span,
.gateway-grid span,
.workspace-payment-card > span,
.auth-flow span,
.auth-checklist span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.source-list strong {
  color: var(--text);
  font-size: 11px;
}

.source-list .bar-track {
  grid-column: 1 / -1;
}

.bar-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.platform-timeline {
  grid-template-columns: 70px minmax(160px, 220px) 1fr 76px;
}

.funnel-list {
  display: grid;
  border-left: 1px solid var(--line);
}

.funnel-list div {
  min-height: 57px;
  border-bottom: 1px solid var(--line);
  padding: 11px 15px;
}

.funnel-list div:last-child {
  border-bottom: 0;
}

.funnel-list span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.funnel-list strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
}

.funnel-list small {
  display: block;
  margin-top: 4px;
  color: #94a1b0;
  font-size: 10px;
}

.source-table .data-row {
  grid-template-columns: minmax(150px, 1.2fr) 0.5fr 0.45fr 0.48fr 0.48fr 70px;
}

.location-table .data-row {
  grid-template-columns: minmax(150px, 1.2fr) 0.5fr 0.45fr 0.48fr 70px;
}

.top-page-row {
  grid-template-columns: 82px 1fr 60px auto;
}

.visitor-picker {
  min-width: 228px;
}

.visitor-picker select {
  width: 100%;
}

.visitor-journey-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 326px;
}

.visitor-table {
  min-width: 0;
}

.visitor-table .data-row {
  grid-template-columns: minmax(150px, 1.15fr) minmax(110px, 0.78fr) 0.38fr 0.45fr 0.62fr 0.78fr;
}

.visitor-link-row {
  color: inherit;
  text-decoration: none;
}

.visitor-link-row:hover,
.visitor-link-row.selected {
  background: #f7fbff;
}

.journey-panel {
  min-width: 0;
  border-left: 1px solid var(--line);
  background: #fbfdff;
}

.journey-summary {
  min-height: 84px;
  border-bottom: 1px solid var(--line);
  padding: 15px;
}

.journey-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 17px;
}

.journey-summary small {
  display: block;
  margin-top: 6px;
  color: #8f9cab;
  font-size: 10px;
}

.visitor-timeline {
  display: grid;
  padding: 12px 15px 16px;
}

.journey-event {
  display: grid;
  grid-template-columns: 38px 12px minmax(0, 1fr) 28px;
  gap: 9px;
  min-height: 46px;
  align-items: start;
}

.journey-event time {
  color: #8b98a8;
  font-size: 10px;
  font-weight: 700;
}

.journey-event > span {
  width: 8px;
  height: 8px;
  margin-top: 3px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(82, 183, 173, 0.14);
}

.journey-event strong {
  display: block;
  color: var(--text);
  font-size: 11px;
}

.journey-event small {
  display: block;
  margin-top: 3px;
  color: #8f9cab;
  font-size: 10px;
}

.journey-event em {
  color: #3b4858;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.recommendation-list {
  display: grid;
}

.recommendation-list article {
  min-height: 86px;
  border-bottom: 1px solid var(--line);
  padding: 14px 15px;
}

.recommendation-list article:last-child {
  border-bottom: 0;
}

.recommendation-list strong {
  display: block;
  color: var(--text);
  font-size: 11px;
}

.recommendation-list p {
  margin-top: 6px;
  color: #6e7b8b;
  font-size: 10px;
  line-height: 1.5;
}

.page-intent-table .data-row {
  grid-template-columns: minmax(190px, 1.4fr) 0.5fr 0.52fr 0.62fr 0.55fr;
}

.traffic-two-column {
  grid-template-columns: minmax(0, 1fr) 326px;
}

.empty-state.tight {
  min-height: 96px;
  padding: 18px;
  color: #8b98a8;
  font-size: 11px;
}

.traffic-overview-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.traffic-daily-table .data-row {
  grid-template-columns: minmax(110px, 1fr) repeat(5, minmax(70px, 0.6fr));
}

.traffic-pages-table,
.traffic-source-table,
.raw-traffic-table,
.deep-visitor-table,
.workspace-usage-table,
.workspace-page-table {
  overflow-x: auto;
}

.traffic-pages-table .data-row {
  min-width: 980px;
  grid-template-columns: minmax(220px, 1.5fr) 70px 70px 70px 86px 70px 104px;
}

.traffic-source-table .data-row {
  min-width: 760px;
  grid-template-columns: minmax(130px, 1.2fr) 70px 70px 70px 70px;
}

.raw-traffic-table .data-row {
  min-width: 1120px;
  grid-template-columns: 92px 150px 180px 118px minmax(220px, 1.4fr) 150px 150px 76px;
}

.deep-visitor-table .data-row {
  min-width: 1180px;
  grid-template-columns: 140px 150px 150px 180px 70px 80px 150px 80px 104px;
}

.wide-journey-layout {
  grid-template-columns: minmax(0, 1fr) 420px;
}

.deep-journey-panel .journey-event {
  grid-template-columns: 72px 12px minmax(0, 1fr) 58px;
}

.workspace-usage-table .data-row {
  min-width: 1120px;
  grid-template-columns: minmax(190px, 1.3fr) 120px 72px 72px 82px minmax(240px, 1.4fr) 132px 70px;
}

.workspace-page-table .data-row {
  min-width: 920px;
  grid-template-columns: 170px minmax(260px, 1.5fr) 70px 70px 86px 84px 116px;
}

.ghost-button.compact {
  min-height: 26px;
  padding: 0 10px;
  font-size: 10px;
}

.platform-accounts-table {
  overflow-x: auto;
}

.platform-accounts-table .data-row {
  min-width: 900px;
  grid-template-columns: minmax(190px, 1.35fr) minmax(130px, 1fr) 76px 66px 66px 110px 144px;
}

.account-business-link {
  display: block;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.row-actions form {
  display: inline-flex;
}

.approval-table .data-row {
  min-width: 980px;
  grid-template-columns: minmax(190px, 1.2fr) minmax(130px, .8fr) minmax(130px, .8fr) minmax(130px, .85fr) minmax(180px, 1.15fr) minmax(120px, .75fr);
}

.row-action-text {
  color: var(--teal);
  font-weight: 700;
}

.receipt-content {
  display: grid;
  gap: 14px;
}

.receipt-actions-bar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.receipt-document {
  min-height: 760px;
}

.receipt-document-header {
  justify-content: space-between;
}

.receipt-document-meta {
  padding-top: 72px;
}

.receipt-table-wrap {
  padding-top: 58px;
}

.receipt-document-footer {
  padding-top: 78px;
}

.receipt-template-panel,
.statement-template-panel {
  display: grid;
  overflow: auto;
  justify-items: center;
  background: #eef1f3;
  padding: 28px 18px;
}

.receipt-template-document,
.statement-template-document {
  width: min(100%, 860px);
  background: #fff;
  color: #111827;
  box-shadow: 0 18px 42px rgba(28, 35, 45, 0.16);
}

.receipt-template-document {
  min-height: 1120px;
  padding: 76px 72px 82px;
  font-family: "Courier New", Courier, monospace;
}

.receipt-template-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 52px;
  align-items: start;
}

.receipt-from-block,
.receipt-to-block {
  display: grid;
  gap: 7px;
  color: #111827;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.receipt-from-block span,
.receipt-to-block span,
.receipt-template-notes span {
  color: #06456c;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.receipt-from-block strong,
.receipt-to-block strong {
  font-size: 21px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.receipt-from-block p,
.receipt-to-block p {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: normal;
}

.receipt-logo-and-title {
  display: grid;
  justify-items: end;
  gap: 56px;
}

.receipt-template-logo-box {
  display: grid;
  width: min(100%, 366px);
  height: 86px;
  place-items: center;
  border: 1px solid #bec5cd;
  border-radius: 7px;
  color: #9da3aa;
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 500;
}

.receipt-template-logo-box img {
  max-width: 86%;
  max-height: 62px;
  object-fit: contain;
}

.receipt-logo-and-title h1 {
  margin: 0;
  color: #06456c;
  font-size: 43px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.receipt-template-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 60px;
  align-items: end;
  margin-top: 72px;
}

.receipt-number-block {
  display: grid;
  gap: 12px;
  color: #111827;
  font-size: 21px;
  font-weight: 800;
}

.receipt-number-block div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 12px;
}

.receipt-number-block span {
  color: #06456c;
}

.receipt-number-block strong {
  white-space: nowrap;
  text-align: right;
}

.receipt-template-table {
  width: 100%;
  margin-top: 98px;
  border-collapse: collapse;
  color: #111827;
  font-size: 18px;
  font-weight: 800;
}

.receipt-template-table th {
  border: 2px solid #d8dadd;
  background: #06456c;
  color: #fff;
  font-size: 18px;
  padding: 10px 9px;
  text-align: left;
}

.receipt-template-table th:first-child,
.receipt-template-table td:first-child {
  width: 54px;
  text-align: right;
}

.receipt-template-table th:nth-child(3),
.receipt-template-table th:nth-child(4),
.receipt-template-table td:nth-child(3),
.receipt-template-table td:nth-child(4) {
  width: 142px;
  text-align: right;
}

.receipt-template-table td {
  height: 39px;
  border: 2px solid #d8dadd;
  padding: 7px 9px;
  vertical-align: top;
}

.receipt-template-table td:nth-child(2) {
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.receipt-empty-row td {
  color: transparent;
}

.receipt-template-totals {
  display: grid;
  width: min(100%, 356px);
  margin: 46px 0 0 auto;
  border-top: 2px solid #d8dadd;
  border-left: 2px solid #d8dadd;
  font-family: "Courier New", Courier, monospace;
}

.receipt-template-totals div {
  display: grid;
  grid-template-columns: 1fr 140px;
  border-bottom: 2px solid #d8dadd;
}

.receipt-template-totals div:last-child {
  background: #f2f3f4;
  color: #06456c;
}

.receipt-template-totals span,
.receipt-template-totals strong {
  min-height: 38px;
  border-right: 2px solid #d8dadd;
  padding: 9px 10px;
  font-size: 19px;
  font-weight: 800;
}

.receipt-template-totals strong {
  text-align: right;
}

.receipt-template-notes {
  display: grid;
  gap: 22px;
  margin-top: 58px;
  color: #111827;
}

.receipt-template-notes p {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.receipt-template-notes small {
  color: #394759;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.receipt-template-notes .software-credit {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 600;
}

.statement-page-content {
  display: grid;
  gap: 14px;
}

.statement-template-document {
  min-height: 1120px;
  padding: 34px 38px 28px;
  font-family: Arial, Helvetica, sans-serif;
}

.statement-template-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 74px;
  align-items: start;
}

.statement-company-block h1 {
  margin: 0;
  color: #050505;
  font-size: 39px;
  font-weight: 600;
  line-height: 1.02;
}

.statement-company-block p {
  margin: 12px 0 22px 13px;
  color: #0f0f0f;
  font-size: 21px;
  line-height: 1.2;
}

.statement-logo-box {
  display: grid;
  width: 315px;
  height: 82px;
  place-items: center;
  border: 2px solid #b6b8bb;
  border-radius: 15px;
  background: #e9e9e9;
  color: #8a8c90;
  font-size: 26px;
  letter-spacing: 0.04em;
}

.statement-logo-box img {
  max-width: 84%;
  max-height: 62px;
  object-fit: contain;
}

.statement-title-block h2 {
  margin: 0 0 46px;
  color: #06456c;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  text-align: right;
}

.statement-meta-grid {
  display: grid;
  grid-template-columns: 132px 1fr;
  align-items: center;
  margin: 0;
  color: #0b0b0b;
  font-size: 17px;
  font-weight: 800;
}

.statement-meta-grid dt,
.statement-meta-grid dd {
  min-height: 31px;
  margin: 0;
  padding: 5px 7px;
}

.statement-meta-grid dt {
  white-space: nowrap;
}

.statement-meta-grid dd {
  border: 2px solid #b6b8bb;
  font-weight: 700;
}

.statement-meta-grid dt:last-of-type,
.statement-meta-grid dd:last-of-type {
  border: 0;
}

.statement-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 74px;
  margin-top: 38px;
}

.statement-bill-to h3,
.statement-account-summary h3 {
  margin: 0 0 8px;
  background: #064d72;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  padding: 9px 14px;
}

.statement-bill-to p {
  margin: 0 0 4px 14px;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.statement-account-summary {
  align-self: start;
}

.statement-account-summary div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 8px;
  color: #111;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  padding: 2px 6px;
}

.statement-account-summary strong {
  font-size: 12px;
  white-space: nowrap;
  text-align: right;
}

.statement-account-summary .statement-summary-total {
  font-size: 15px;
}

.statement-account-summary .statement-due-date {
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 0;
  margin-top: 4px;
  border-top: 2px solid #b6b8bb;
  padding: 0;
}

.statement-due-date span,
.statement-due-date strong {
  padding: 5px 6px;
}

.statement-due-date strong {
  border: 2px solid #b6b8bb;
  border-top: 0;
  text-align: right;
}

.statement-ledger-table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  color: #111;
  font-size: 13px;
}

.statement-ledger-table th {
  border: 2px solid #aeb4b9;
  background: #064d72;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  padding: 9px 8px;
  text-align: left;
}

.statement-ledger-table th:first-child {
  width: 82px;
}

.statement-ledger-table th:nth-child(2) {
  width: 100px;
}

.statement-ledger-table th:nth-child(4),
.statement-ledger-table th:nth-child(5),
.statement-ledger-table th:nth-child(6) {
  width: 124px;
  text-align: right;
}

.statement-ledger-table td {
  height: 35px;
  border-left: 2px solid #aeb4b9;
  border-right: 2px solid #aeb4b9;
  padding: 8px 8px;
  font-weight: 700;
  vertical-align: top;
}

.statement-ledger-table tr:nth-child(odd) td {
  background: #e5e5e5;
}

.statement-ledger-table td:nth-child(4),
.statement-ledger-table td:nth-child(5),
.statement-ledger-table td:nth-child(6) {
  text-align: right;
}

.statement-ledger-table tbody tr:last-child td {
  border-bottom: 2px solid #aeb4b9;
}

.statement-empty-row td {
  color: transparent;
}

.statement-current-balance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  margin-top: 12px;
  background: #064d72;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  padding: 9px 16px;
  text-align: right;
}

.statement-current-balance span {
  justify-self: end;
}

.statement-template-footer {
  display: grid;
  gap: 13px;
  margin-top: 18px;
  color: #0f0f0f;
  text-align: center;
}

.statement-template-footer p,
.statement-template-footer strong {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.statement-template-footer strong {
  font-size: 21px;
}

.statement-template-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  border-top: 1px solid #064d72;
  padding-top: 9px;
  font-size: 12px;
  font-weight: 700;
}

.statement-template-footer .software-credit {
  font-size: 9px;
  font-weight: 600;
}

.inline-action-form {
  display: inline-flex;
}

.inline-action-form .ghost-button,
.inline-action-form .danger-button {
  min-height: 26px;
  padding-inline: 10px;
}

.danger-zone {
  border-color: #efc1c1;
}

.danger-copy,
.protected-note {
  color: #7b5660;
  font-size: 10px;
  line-height: 1.5;
  padding: 0 15px 12px;
}

.protected-note {
  color: #8a5b00;
}

.platform-profile-grid div {
  min-height: 72px;
}

.platform-edit-form {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 15px;
}

.platform-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.account-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 15px;
}

.action-stack form {
  display: grid;
  gap: 8px;
}

.billing-plan-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.billing-plan-strip article.selected {
  background: #f0fbf9;
  box-shadow: inset 0 -2px 0 var(--teal);
}

.billing-table .data-row {
  grid-template-columns: minmax(140px, 1fr) minmax(150px, 1fr) minmax(130px, 1fr) 76px 74px 62px;
}

.subscription-content .billing-table .data-row {
  grid-template-columns: minmax(130px, 1fr) minmax(145px, 1fr) 72px 64px 74px 62px;
}

.subscription-profile-grid div {
  min-height: 70px;
}

.subscription-content {
  grid-template-columns: minmax(0, 1fr);
}

.subscription-content > * {
  min-width: 0;
}

.subscription-plan-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.subscription-plan-form select {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #536274;
  font-size: 11px;
  font-weight: 600;
  padding: 0 10px;
}

.workspace-payment-card {
  display: grid;
  gap: 10px;
  padding: 15px;
}

.workspace-payment-card .detail-stack {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding-top: 0;
}

.subscription-payment-panel {
  align-self: start;
}

.subscription-checkout-box {
  display: grid;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 15px;
}

.subscription-checkout-box > div:first-child {
  display: grid;
  gap: 4px;
}

.subscription-checkout-box strong {
  color: #172033;
  font-size: 14px;
}

.subscription-checkout-box small,
.billing-note,
.manual-payment-body p {
  color: #66758a;
  font-size: 11px;
  line-height: 1.5;
}

.subscription-checkout-summary {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.subscription-checkout-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}

.subscription-checkout-summary div:last-child {
  border-bottom: 0;
}

.subscription-checkout-summary dt,
.subscription-checkout-summary dd {
  margin: 0;
  font-size: 11px;
}

.subscription-checkout-summary dt {
  color: #66758a;
  font-weight: 700;
}

.subscription-checkout-summary dd {
  color: #172033;
  font-weight: 800;
  text-align: right;
}

.subscription-checkout-summary .total-row {
  background: #f7fbfa;
}

.billing-note {
  border-left: 3px solid var(--teal);
  margin: 0;
  padding-left: 10px;
}

.manual-payment-details {
  padding: 0;
}

.manual-payment-details summary {
  cursor: pointer;
  color: #314159;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
  padding: 14px 15px;
}

.manual-payment-details summary::-webkit-details-marker {
  display: none;
}

.manual-payment-details summary::after {
  content: "+";
  float: right;
  color: var(--teal);
  font-size: 16px;
  line-height: 1;
}

.manual-payment-details[open] summary::after {
  content: "-";
}

.manual-payment-body {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 0 15px 15px;
}

.manual-payment-body p {
  margin: 12px 0 0;
}

.gateway-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.auth-flow {
  display: grid;
  gap: 0;
}

.auth-flow div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0 12px;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.auth-flow div:last-child {
  border-bottom: 0;
}

.auth-flow span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 10px;
}

.auth-flow small {
  grid-column: 2;
}

.auth-checklist {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.auth-checklist div {
  display: grid;
  min-height: 92px;
  align-content: start;
  gap: 6px;
  border-right: 1px solid var(--line);
  padding: 14px 15px;
}

.auth-checklist div:last-child {
  border-right: 0;
}

.invoice-paper {
  margin: 14px;
  border: 1px solid var(--line-dark);
  background: #fff;
}

.invoice-paper-head {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
}

.invoice-paper-head h2 {
  font-size: 18px;
}

.invoice-paper-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.invoice-lines {
  display: grid;
  padding: 12px 16px 16px;
}

.invoice-lines div {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: #5c6b7a;
  font-size: 11px;
}

.invoice-lines div:last-child {
  border-bottom: 0;
}

.invoice-lines strong {
  color: var(--text);
  font-weight: 600;
}

.total-line {
  margin-top: 8px;
  border-top: 1px solid var(--line-dark);
  color: var(--text) !important;
}

.due-line strong {
  color: #a26600;
}

.invoice-detail-page {
  align-items: start;
  gap: 16px;
}

.invoice-actions-panel {
  align-self: start;
}

.invoice-document-panel {
  display: grid;
  overflow: auto;
  justify-items: center;
  background: #edf0f2;
  padding: 28px 18px;
}

.invoice-document {
  display: flex;
  width: min(100%, 760px);
  min-height: 0;
  flex-direction: column;
  background: #fff;
  color: #111827;
  box-shadow: 0 18px 42px rgba(28, 35, 45, 0.16);
}

.invoice-document-header {
  display: flex;
  justify-content: center;
  padding: 50px 58px 0;
}

.invoice-brand-block {
  display: flex;
  max-width: 560px;
  min-width: 0;
  align-items: center;
  gap: 18px;
}

.invoice-logo-fallback {
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  border: 1px solid #b75c38;
  border-radius: 50%;
  background: #fff;
}

.invoice-logo {
  width: 152px;
  height: 52px;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  object-position: left center;
  padding: 0;
}

.invoice-logo-fallback {
  display: grid;
  place-items: center;
  color: #b75c38;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.invoice-brand-block strong {
  display: block;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.32em;
  line-height: 1.45;
  text-transform: uppercase;
}

.invoice-brand-block span {
  display: block;
  margin-top: 5px;
  color: #363f4c;
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1.45;
}

.invoice-document-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 54px;
  align-items: start;
  padding: 94px 58px 0;
}

.invoice-party-box {
  min-height: 0;
  padding: 0;
}

.invoice-party-box span,
.invoice-payment-block span,
.invoice-due-block span,
.invoice-total-due span {
  display: block;
  color: #111827;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.25;
}

.invoice-party-box strong {
  display: block;
  margin-top: 2px;
  color: #111827;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.35;
}

.invoice-party-box small,
.invoice-due-block small,
.invoice-total-due small {
  display: block;
  margin-top: 3px;
  color: #1f2937;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.35;
}

.invoice-purchase-label {
  margin-top: 18px;
}

.invoice-title-block {
  text-align: left;
}

.invoice-title-block span {
  display: block;
  color: #b75c38;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.36em;
  line-height: 1;
  text-transform: uppercase;
}

.invoice-title-block strong {
  display: block;
  margin-top: 13px;
  color: #111827;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.invoice-title-block h2 {
  margin-top: 13px;
  color: #111827;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.24em;
  line-height: 1;
}

.invoice-title-block small {
  display: block;
  margin-top: 11px;
  color: #6a7280;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.invoice-table-wrap {
  padding: 62px 58px 0;
}

.invoice-payment-ledger {
  padding: 32px 58px 0;
}

.invoice-payment-ledger > span {
  display: block;
  margin-bottom: 8px;
  color: #111827;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.invoice-document-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid #111827;
  color: #111827;
  font-size: 10px;
}

.invoice-document-table th {
  border-bottom: 1px solid #111827;
  background: transparent;
  color: #111827;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.32em;
  padding: 10px 0 9px;
  text-align: right;
  text-transform: uppercase;
}

.invoice-document-table th:first-child,
.invoice-document-table td:first-child {
  text-align: left;
}

.invoice-document-table td {
  color: #111827;
  padding: 19px 0 0;
  text-align: right;
  vertical-align: top;
}

.invoice-document-table td:first-child {
  font-weight: 800;
  text-transform: uppercase;
}

.invoice-payment-table {
  font-size: 9px;
}

.invoice-payment-table th {
  letter-spacing: 0.18em;
}

.invoice-document-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.85fr) minmax(130px, 0.9fr);
  gap: 36px;
  margin-top: 34px;
  border-top: 1px solid #d7dde5;
  padding: 28px 58px 28px;
}

.invoice-payment-block strong,
.invoice-due-block strong {
  display: block;
  margin-top: 20px;
  color: #111827;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.45;
}

.invoice-payment-block p {
  margin-top: 3px;
  color: #111827;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.45;
}

.invoice-due-block strong {
  margin-top: 19px;
}

.invoice-total-due strong {
  display: block;
  margin-top: 19px;
  color: #b75c38;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.invoice-document-contact {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  border-top: 1px solid #edf0f4;
  padding: 16px 58px 28px;
  color: #b75c38;
  font-size: 8px;
  font-weight: 600;
}

.invoice-document-contact .software-credit {
  font-size: 7.5px;
}

.mini-form {
  display: grid;
  gap: 10px;
  padding: 14px 15px;
}

.mini-form .wide,
.mini-form .wide-2,
.mini-form .wide-3 {
  width: 100%;
  min-width: 0;
  grid-column: 1 / -1;
}

.mini-form .extras-builder,
.mini-form .extra-rows,
.mini-form .sale-line-row {
  width: 100%;
  min-width: 0;
}

.mini-form .sale-line-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.mini-form .sale-line-row .sale-description-field,
.mini-form .sale-line-row .extra-remove {
  grid-column: 1 / -1;
}

.mini-form .sale-line-row .extra-remove {
  justify-self: end;
}

.inline-form {
  display: inline;
}

.empty-state {
  display: grid;
  min-height: 240px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 32px;
  text-align: center;
}

.empty-setup-panel {
  max-width: 760px;
}

.empty-setup-panel .panel-head {
  border-bottom: 0;
}

.setup-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 15px 16px;
}

.auth-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(11, 29, 42, 0.34), rgba(241, 246, 248, 0.08) 36%, rgba(241, 246, 248, 0.08) 64%, rgba(11, 29, 42, 0.28)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(13, 31, 45, 0.22)),
    url("../img/auth-leaseit-commercial.png") center / cover no-repeat,
    var(--page);
  padding: 24px;
}

.auth-shell {
  width: min(100%, 420px);
}

.wide-auth {
  width: min(100%, 720px);
}

.auth-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 26px;
}

.auth-brand {
  width: 184px;
  min-height: 54px;
  margin-bottom: 22px;
  color: var(--text);
}

.auth-brand .app-logo {
  max-width: 168px;
  height: 42px;
}

.auth-copy {
  display: grid;
  gap: 5px;
  margin-bottom: 18px;
}

.auth-copy h1 {
  font-size: 22px;
}

.auth-copy p {
  color: var(--muted);
  font-size: 11px;
}

.signup-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.signup-plan-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 236px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  padding: 13px;
  cursor: pointer;
}

.signup-plan-card.featured {
  border-color: #b6ddd8;
  background: #f0fbfa;
}

.signup-plan-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.signup-plan-card:has(input:checked) {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 2px rgba(82, 183, 173, 0.24);
}

.signup-plan-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.signup-plan-head strong {
  color: var(--text);
  font-size: 13px;
}

.signup-plan-head small,
.signup-plan-trial {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 20px;
  align-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: #13754b;
  font-size: 9px;
  font-weight: 800;
  padding: 0 7px;
}

.signup-plan-price {
  display: grid;
  gap: 3px;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.signup-plan-price small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.signup-plan-list {
  display: grid;
  gap: 6px;
  margin-top: 2px;
}

.signup-plan-list span {
  color: #5d6c7b;
  font-size: 10px;
  line-height: 1.25;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.google-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #dadce0;
  border-radius: 5px;
  background: #fff;
  color: #3c4043;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 0 16px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.16);
}

.google-button:hover {
  border-color: #c7d2fe;
  background: #f8fbff;
  box-shadow: 0 2px 6px rgba(66, 133, 244, 0.16);
}

.google-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(from -35deg, #4285f4 0 28%, #34a853 28% 52%, #fbbc05 52% 74%, #ea4335 74% 100%);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.primary-google-button {
  min-height: 50px;
  font-size: 14px;
}

.auth-step-card {
  display: grid;
  gap: 5px;
  border: 1px solid #d7e7ff;
  border-radius: 6px;
  background: #f8fbff;
  padding: 14px;
}

.auth-step-card span {
  color: #4285f4;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-step-card strong {
  color: var(--text);
  font-size: 14px;
}

.auth-step-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.auth-note {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 12px;
  text-align: center;
}

.auth-foot {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
}

.auth-foot a {
  color: #1874a6;
  font-weight: 700;
}

.single-panel-content {
  display: grid;
  place-items: center;
}

.flash {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  max-width: 420px;
  border-radius: 6px;
  box-shadow: 0 14px 40px rgba(30, 42, 62, 0.18);
  font-size: 12px;
  font-weight: 600;
  padding: 13px 15px;
}

.auth-alerts {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 60;
  display: grid;
  width: min(520px, calc(100vw - 28px));
  gap: 8px;
  transform: translateX(-50%);
}

.auth-alerts .flash {
  position: static;
  right: auto;
  bottom: auto;
  max-width: none;
}

.flash.success {
  background: var(--green-soft);
  color: #13754b;
}

.flash.error {
  background: var(--red-soft);
  color: #9c3a3a;
}

.report-bar {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 120px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 15px;
}

.bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.onboarding-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 302px;
  gap: 16px;
  align-items: start;
}

.onboarding-main {
  overflow: hidden;
}

.onboarding-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff 0%, #f4fbfa 54%, #f8fbff 100%);
  padding: 20px 22px;
}

.onboarding-kicker {
  display: inline-flex;
  margin-bottom: 7px;
  border: 1px solid #cfe7e5;
  border-radius: 999px;
  background: #effaf8;
  color: #258078;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
}

.onboarding-hero h2 {
  font-size: 20px;
  font-weight: 700;
}

.onboarding-hero p {
  max-width: 680px;
  margin-top: 6px;
  color: #617285;
  font-size: 11px;
}

.onboarding-progress-meter {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(var(--teal) var(--setup-progress), #dfe8f1 0);
}

.onboarding-progress-meter strong {
  color: var(--text);
  font-size: 19px;
  line-height: 1;
}

.onboarding-progress-meter span {
  color: #789;
  font-size: 10px;
  font-weight: 700;
}

.onboarding-step-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.onboarding-step {
  position: relative;
  display: grid;
  min-height: 78px;
  align-content: center;
  gap: 3px;
  border-right: 1px solid var(--line);
  color: #6d7d8e;
  padding: 13px 16px 13px 42px;
}

.onboarding-step:last-child {
  border-right: 0;
}

.onboarding-step span {
  position: absolute;
  top: 17px;
  left: 15px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: #758393;
  font-size: 10px;
  font-weight: 800;
}

.onboarding-step strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.onboarding-step small {
  color: #8b98a8;
  font-size: 10px;
  line-height: 1.25;
}

.onboarding-step.current {
  background: #eef9f7;
  box-shadow: inset 0 -3px 0 var(--teal);
}

.onboarding-step.current span {
  background: var(--teal);
  color: #fff;
}

.onboarding-step.complete span {
  background: var(--nav);
  color: #fff;
}

.onboarding-step.muted {
  opacity: 0.65;
}

.onboarding-stage {
  animation: setupStageIn 210ms ease-out both;
  padding: 20px 22px 22px;
}

.onboarding-form {
  display: grid;
  gap: 16px;
}

.onboarding-welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: stretch;
}

.onboarding-welcome-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(82, 183, 173, 0.13), transparent 46%),
    #fff;
  padding: 28px;
}

.onboarding-welcome-copy h3 {
  max-width: 520px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.14;
}

.onboarding-welcome-copy p {
  max-width: 620px;
  color: #617285;
  font-size: 12px;
}

.onboarding-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
}

.onboarding-mini-stats span {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.onboarding-mini-stats strong {
  color: var(--text);
  font-size: 16px;
}

.onboarding-mini-stats small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.onboarding-launch-card {
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 18px;
}

.onboarding-launch-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}

.onboarding-launch-list span {
  border-bottom: 1px solid var(--line);
  color: #536477;
  font-size: 11px;
  font-weight: 700;
  padding: 10px 11px;
}

.onboarding-launch-list span:last-child {
  border-bottom: 0;
}

.onboarding-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.onboarding-section-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.onboarding-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}

.onboarding-table {
  display: grid;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.onboarding-row {
  display: grid;
  gap: 7px;
  align-items: center;
  min-width: 760px;
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
}

.onboarding-row:last-child {
  border-bottom: 0;
}

.onboarding-row-head {
  min-height: 34px;
  background: var(--soft);
  color: #8795a6;
  font-size: 10px;
  font-weight: 800;
  padding-top: 0;
  padding-bottom: 0;
}

.onboarding-room-row,
.onboarding-room-table .onboarding-row-head {
  grid-template-columns: minmax(138px, 1.2fr) minmax(130px, 1fr) 68px 98px 108px 31px;
}

.onboarding-extra-row,
.onboarding-extra-table .onboarding-row-head {
  grid-template-columns: minmax(150px, 1.3fr) 122px 86px 108px 72px 74px 31px;
}

.onboarding-team-row,
.onboarding-team-table .onboarding-row-head {
  grid-template-columns: minmax(130px, 1.1fr) minmax(150px, 1fr) 112px 136px 118px 31px;
}

.onboarding-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.onboarding-split > section {
  display: grid;
  gap: 13px;
  min-width: 0;
}

.onboarding-check-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--soft);
  padding: 10px;
}

.onboarding-seed-check {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dcebe9;
  border-radius: 5px;
  background: #f3fbfa;
  color: #436174;
  font-size: 10px;
  font-weight: 700;
  padding: 10px 11px;
}

.onboarding-seed-check input {
  accent-color: var(--teal);
}

.onboarding-launch-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  border: 1px solid #dcebe9;
  border-radius: 7px;
  background: #f7fcfb;
  padding: 15px;
}

.onboarding-launch-panel h3 {
  margin-top: 8px;
}

.onboarding-launch-panel p {
  margin-top: 4px;
  color: #607286;
  font-size: 11px;
}

.onboarding-side {
  display: grid;
  gap: 16px;
}

.onboarding-readiness {
  display: grid;
  padding: 7px 15px 10px;
}

.onboarding-readiness div {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.onboarding-readiness div:last-child {
  border-bottom: 0;
}

.onboarding-readiness span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: #fff;
}

.onboarding-readiness span::after {
  width: 6px;
  height: 3px;
  transform: rotate(-45deg);
  border-bottom: 2px solid transparent;
  border-left: 2px solid transparent;
  content: "";
}

.onboarding-readiness .done span {
  border-color: var(--teal);
  background: var(--teal);
}

.onboarding-readiness .done span::after {
  border-color: #fff;
}

.onboarding-readiness strong {
  display: block;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.onboarding-readiness small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

@keyframes setupStageIn {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.support-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  display: grid;
  justify-items: end;
  pointer-events: none;
}

.support-chat-window {
  display: none;
  width: min(384px, calc(100vw - 28px));
  height: min(588px, calc(100vh - 40px));
  overflow: hidden;
  border: 1px solid #cbdce6;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 20px 54px rgba(25, 42, 63, 0.22);
  pointer-events: auto;
}

.support-chat.is-open .support-chat-window {
  display: grid;
  grid-template-rows: 46px 52px minmax(0, 1fr) 50px;
}

.support-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #258e8b 0%, var(--teal) 100%);
  color: #fff;
  padding: 0 13px 0 14px;
}

.support-chat-head h2 {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.support-chat-head span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  font-weight: 600;
}

.support-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #54e0a4;
}

.support-status.away .support-online-dot {
  background: #f7b84b;
}

.support-status.offline .support-online-dot {
  background: #9aa8b5;
}

.support-head-button {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  padding: 0;
}

.support-head-button:hover {
  background: rgba(255, 255, 255, 0.13);
}

.support-head-button svg,
.support-tool-button svg,
.support-send-button svg,
.support-launcher svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.support-contact-strip {
  display: grid;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.support-contact {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 13px;
}

.support-contact.active {
  border-bottom-color: var(--teal);
  background: #f9fcfe;
}

.support-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: #e8f7ff;
  color: #236989;
  font-size: 10px;
  font-weight: 800;
}

.support-contact strong {
  display: block;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.support-contact small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.support-thread,
.platform-chat-thread {
  display: grid;
  align-content: end;
  gap: 9px;
  overflow-y: auto;
  background:
    linear-gradient(rgba(247, 250, 252, 0.94), rgba(247, 250, 252, 0.94)),
    radial-gradient(circle at 12px 12px, rgba(39, 60, 96, 0.08) 0 1px, transparent 1.5px);
  background-size: auto, 28px 28px;
  padding: 13px;
}

.support-message {
  display: flex;
  min-width: 0;
}

.support-message.own {
  justify-content: flex-end;
}

.support-message.support {
  justify-content: flex-start;
}

.support-bubble {
  display: grid;
  max-width: 78%;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #2f3f50;
  font-size: 11px;
  line-height: 1.35;
  padding: 8px 9px 5px;
  box-shadow: 0 4px 12px rgba(27, 39, 52, 0.05);
}

.support-message.own .support-bubble {
  border-color: #caeadc;
  background: #def4e9;
}

.support-bubble footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: #7c8998;
  font-size: 9px;
  line-height: 1;
}

.message-ticks {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: #7c8998;
  font-size: 10px;
  letter-spacing: -3px;
}

.message-ticks.read {
  color: #258cc6;
}

.support-attachment {
  display: flex;
  min-width: 0;
  gap: 8px;
  border: 1px solid rgba(82, 183, 173, 0.2);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  overflow: hidden;
}

.support-attachment.file {
  align-items: center;
  padding: 8px;
}

.support-attachment.image {
  position: relative;
  display: block;
  width: 180px;
  max-width: 100%;
}

.support-attachment.image img {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: cover;
}

.support-attachment.image span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  background: rgba(21, 49, 66, 0.62);
  color: #fff;
  font-size: 9px;
  padding: 4px 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-icon {
  display: grid;
  width: 30px;
  height: 34px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 4px;
  background: #e94f4f;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
}

.support-attachment strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-attachment small {
  color: var(--muted);
  font-size: 9px;
}

.support-empty-message {
  display: grid;
  justify-self: center;
  gap: 4px;
  max-width: 240px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
  color: #657384;
  padding: 12px;
  text-align: center;
}

.support-empty-message strong {
  color: var(--text);
  font-size: 11px;
}

.support-empty-message span {
  font-size: 10px;
}

.support-composer {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 35px;
  align-items: center;
  gap: 7px;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 8px 9px;
}

.support-file-input {
  display: none;
}

.support-tool-button,
.support-send-button {
  display: grid;
  place-items: center;
  border-radius: 4px;
  padding: 0;
}

.support-tool-button {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #607286;
}

.support-tool-button:hover {
  background: var(--soft);
}

.support-input-wrap {
  display: grid;
  min-width: 0;
}

.support-input-wrap input {
  width: 100%;
  min-height: 31px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: 0;
  color: var(--text);
  font-size: 11px;
  padding: 0 10px;
}

.support-input-wrap input:focus {
  border-color: #a7dcd7;
  box-shadow: 0 0 0 2px rgba(82, 183, 173, 0.12);
}

.support-file-name {
  overflow: hidden;
  max-width: 100%;
  color: #258078;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 1px 3px;
}

.support-send-button {
  width: 35px;
  height: 33px;
  border: 0;
  background: var(--teal);
  color: #fff;
}

.support-send-button:hover {
  background: #319a92;
}

.support-launcher {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  margin-top: 12px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 16px 34px rgba(30, 42, 62, 0.24);
  pointer-events: auto;
}

.support-chat.is-open .support-launcher {
  display: none;
}

.support-launcher svg {
  width: 23px;
  height: 23px;
}

.support-launcher span {
  position: absolute;
  top: -3px;
  right: -2px;
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.platform-chat-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 16px;
  min-height: calc(100vh - 124px);
}

.platform-chat-list-panel,
.platform-chat-thread-panel {
  min-height: 0;
}

.platform-chat-list-panel {
  display: grid;
  grid-template-rows: 45px minmax(0, 1fr);
}

.platform-chat-list {
  overflow-y: auto;
}

.platform-chat-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 9px;
  min-height: 82px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  color: #536274;
  padding: 12px 13px;
}

.platform-chat-item:hover,
.platform-chat-item.active {
  background: #f3fbfa;
}

.platform-chat-item.active {
  box-shadow: inset 3px 0 0 var(--teal);
}

.platform-chat-item strong,
.platform-chat-item small,
.platform-chat-item em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-chat-item strong {
  color: var(--text);
  font-size: 11px;
}

.platform-chat-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.platform-chat-item em {
  margin-top: 6px;
  color: #8290a0;
  font-size: 10px;
  font-style: normal;
}

.platform-chat-item b {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 9px;
}

.platform-chat-empty-list {
  display: grid;
  gap: 4px;
  padding: 18px 14px;
  color: var(--muted);
  font-size: 10px;
}

.platform-chat-empty-list strong {
  color: var(--text);
  font-size: 11px;
}

.platform-chat-thread-panel {
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr) 54px;
}

.platform-chat-thread-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 0 15px;
}

.platform-chat-thread-head h2 {
  font-size: 13px;
}

.platform-chat-thread-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.platform-chat-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}

.platform-chat-thread {
  min-height: 420px;
}

.platform-support-composer {
  grid-template-columns: 31px minmax(0, 1fr) 36px;
}

@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  body {
    background: #fff;
  }

  .sidebar,
  .mobile-bar,
  .topbar,
  .invoice-actions-panel,
  .receipt-actions-bar,
  .statement-actions-panel {
    display: none !important;
  }

  .app-frame,
  .workspace {
    display: block;
  }

  .content,
  .two-column-content {
    display: block;
    padding: 0;
  }

  .invoice-document-panel {
    border: 0;
    background: #fff;
    padding: 0;
  }

  .receipt-template-panel,
  .statement-template-panel {
    border: 0;
    background: #fff;
    padding: 0;
  }

  .invoice-document {
    width: 100%;
    max-width: none;
    min-height: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .receipt-template-document,
  .statement-template-document {
    width: 100%;
    max-width: none;
    min-height: auto;
    box-shadow: none;
  }

  .invoice-document-header,
  .invoice-document-meta,
  .invoice-table-wrap,
  .invoice-payment-ledger,
  .invoice-document-footer,
  .invoice-document-contact {
    padding-left: 0;
    padding-right: 0;
  }

  .invoice-document-contact {
    padding-bottom: 0;
  }
}

@media (max-width: 980px) {
  .mobile-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    padding: 0 14px;
  }

  .mobile-menu-button {
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
    padding: 7px 10px;
  }

  .app-frame {
    grid-template-columns: 1fr;
  }

  .workspace {
    grid-template-rows: auto 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 50px auto 0 0;
    z-index: 35;
    width: 220px;
    height: calc(100vh - 50px);
    max-height: calc(100vh - 50px);
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .topbar {
    top: 50px;
  }

  .dashboard-grid,
  .two-column-content,
  .calendar-content,
  .booking-content,
  .invoice-content,
  .expenses-content,
  .expense-detail-content,
  .settings-content,
    .platform-grid,
    .platform-chat-layout,
    .traffic-layout,
  .traffic-overview-grid,
  .visitor-journey-layout,
  .wide-journey-layout,
  .traffic-two-column,
  .onboarding-content,
  .onboarding-split,
  .onboarding-welcome-grid {
    grid-template-columns: 1fr;
  }

  .metric-strip,
  .metric-strip.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .form-grid.four,
  .form-grid.three,
  .form-grid.two,
  .inline-customer-panel,
  .expense-detail-grid,
  .customer-profile-grid,
  .customer-account-grid,
  .room-settings-add,
  .tax-settings-grid,
  .tax-summary-grid,
    .platform-summary-row,
    .billing-plan-strip,
    .gateway-grid,
    .addon-card-grid,
    .auth-checklist,
    .traffic-kpi-grid,
    .account-action-grid {
    grid-template-columns: 1fr;
  }

  .invoice-document {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    min-width: 0;
    box-shadow: 0 10px 24px rgba(28, 35, 45, 0.12);
  }

  .invoice-document-panel,
  .invoice-detail-page > .panel,
  .receipt-template-panel,
  .statement-template-panel {
    min-width: 0;
    overflow: hidden;
  }

  .receipt-template-document,
  .statement-template-document {
    width: 100%;
    max-width: 100%;
    min-height: 0;
  }

  .receipt-template-document {
    padding: 32px 18px 42px;
  }

  .receipt-template-top,
  .receipt-template-meta,
  .statement-template-header,
  .statement-summary-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .receipt-logo-and-title {
    justify-items: start;
    gap: 28px;
  }

  .receipt-template-logo-box {
    width: 100%;
  }

  .receipt-number-block div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .receipt-number-block strong {
    text-align: left;
  }

  .receipt-template-table {
    display: block;
    overflow-x: auto;
    margin-top: 44px;
    font-size: 14px;
  }

  .receipt-template-totals {
    width: 100%;
  }

  .statement-template-document {
    padding: 28px 18px 34px;
  }

  .statement-company-block h1,
  .statement-title-block h2 {
    font-size: 31px;
    text-align: left;
  }

  .statement-title-block h2 {
    margin-bottom: 24px;
  }

  .statement-logo-box {
    width: 100%;
  }

  .statement-ledger-table {
    display: block;
    overflow-x: auto;
  }

  .statement-account-summary div,
  .statement-account-summary .statement-due-date,
  .statement-current-balance {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .statement-account-summary strong,
  .statement-current-balance span {
    justify-self: start;
    text-align: left;
  }

  .invoice-document-meta,
  .invoice-document-footer {
    grid-template-columns: 1fr;
  }

  .invoice-document-header {
    padding: 28px 24px 0;
  }

  .invoice-brand-block {
    display: grid;
    width: 100%;
    grid-template-columns: 58px minmax(0, 1fr);
    min-width: 0;
    align-items: flex-start;
  }

  .invoice-brand-block > div {
    min-width: 0;
  }

  .invoice-brand-block strong {
    font-size: 10px;
    letter-spacing: 0.2em;
    overflow-wrap: anywhere;
  }

  .invoice-brand-block span {
    font-size: 8px;
    overflow-wrap: anywhere;
  }

  .invoice-logo {
    width: 126px;
    height: 44px;
  }

  .invoice-logo-fallback {
    width: 58px;
    height: 58px;
  }

  .invoice-title-block {
    min-width: 0;
    text-align: left;
  }

  .invoice-document-meta,
  .invoice-table-wrap,
  .invoice-payment-ledger,
  .invoice-document-footer,
  .invoice-document-contact {
    padding-left: 24px;
    padding-right: 24px;
  }

  .invoice-document-meta {
    gap: 28px;
    padding-top: 52px;
  }

  .invoice-title-block span {
    font-size: 22px;
  }

  .invoice-table-wrap {
    padding-top: 42px;
  }

  .invoice-payment-ledger {
    padding-top: 28px;
  }

  .invoice-document-table {
    min-width: 0;
    font-size: 8.5px;
  }

  .invoice-document-table thead {
    display: none;
  }

  .invoice-document-table,
  .invoice-document-table tbody,
  .invoice-document-table tr,
  .invoice-document-table td {
    display: block;
    width: 100%;
  }

  .invoice-document-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px 16px;
    border-bottom: 1px solid #d8dce2;
    padding: 14px 0;
  }

  .invoice-document-table tr:last-child {
    border-bottom: 0;
  }

  .invoice-document-table th {
    font-size: 7px;
    letter-spacing: 0.14em;
  }

  .invoice-document-table th:first-child,
  .invoice-document-table td:first-child {
    grid-column: 1 / -1;
    width: 100%;
    padding-right: 8px;
  }

  .invoice-document-table td {
    padding: 0;
    overflow-wrap: anywhere;
    text-align: left;
  }

  .invoice-document-table td:nth-child(2)::before {
    content: "Rate: ";
    font-weight: 800;
  }

  .invoice-document-table td:nth-child(2),
  .invoice-document-table td:nth-child(3) {
    grid-column: 1;
  }

  .invoice-document-table td:nth-child(3)::before {
    content: "Qty: ";
    font-weight: 800;
  }

  .invoice-document-table td:nth-child(4) {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: center;
    text-align: right;
    font-weight: 800;
  }

  .invoice-document-table td:nth-child(4)::before {
    content: "Total: ";
    font-weight: 800;
  }

  .invoice-payment-table td:nth-child(2)::before {
    content: "Ref: ";
  }

  .invoice-payment-table td:nth-child(3)::before {
    content: "Tendered: ";
  }

  .invoice-payment-table td:nth-child(4)::before {
    content: "Applied: ";
  }

  .invoice-payment-table td:nth-child(4) {
    grid-column: 1;
    grid-row: auto;
    align-self: auto;
    text-align: left;
    font-weight: 600;
  }

  .invoice-payment-table td:nth-child(5) {
    grid-column: 2;
    grid-row: 2 / span 3;
    align-self: center;
    text-align: right;
    font-weight: 800;
  }

  .invoice-payment-table td:nth-child(5)::before {
    content: "Left: ";
  }

  .invoice-document-footer {
    gap: 28px;
    padding-top: 54px;
    padding-bottom: 36px;
  }

  .invoice-document-contact {
    flex-direction: column;
    gap: 8px;
    padding-bottom: 28px;
  }

  .onboarding-step-rail {
    grid-template-columns: 1fr;
  }

  .onboarding-step {
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .onboarding-step:last-child {
    border-bottom: 0;
  }

  .onboarding-check-grid,
  .onboarding-mini-stats {
    grid-template-columns: 1fr;
  }

  .platform-filters {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .funnel-list {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .journey-panel {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .platform-summary-row span,
  .billing-plan-strip article,
  .gateway-grid div,
  .auth-checklist div,
  .traffic-kpi-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .platform-summary-row span:last-child,
  .billing-plan-strip article:last-child,
  .gateway-grid div:last-child,
  .auth-checklist div:last-child,
  .traffic-kpi-grid article:last-child {
    border-bottom: 0;
  }

  .wide-2,
  .wide-3 {
    grid-column: auto;
  }

  .step-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .extra-row,
  .sale-line-row,
  .settings-row {
    grid-template-columns: 1fr 1fr;
  }

  .expense-detail-grid div,
  .expense-detail-grid div:nth-child(3n),
  .expense-detail-grid div:nth-last-child(-n+3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .expense-detail-grid div:last-child {
    border-bottom: 0;
  }

  .customer-profile-grid div,
  .customer-profile-grid div:nth-child(3n),
  .customer-profile-grid div:nth-last-child(-n+3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .customer-profile-grid div:last-child {
    border-bottom: 0;
  }

  .customer-account-grid div,
  .customer-account-grid div:nth-child(4n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .customer-account-grid div:last-child {
    border-bottom: 0;
  }

  .extra-settings-row,
  .room-settings-row {
    min-width: 0;
  }

  .settings-header {
    display: none;
  }

  .compact-field span {
    display: block;
  }
}

@media (max-width: 640px) {
  html,
  body,
  .app-frame,
  .workspace {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .auth-body {
    padding: 16px;
  }

  .auth-shell,
  .wide-auth {
    width: calc(100vw - 32px);
    max-width: 100%;
  }

  .signup-plan-grid {
    grid-template-columns: 1fr;
  }

  .signup-plan-card {
    min-height: 0;
  }

  .content {
    width: 100%;
    max-width: 100%;
    padding: 14px;
  }

  .topbar {
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
    min-height: 86px;
    flex-direction: column;
    padding: 12px 14px;
  }

  .top-actions {
    flex-wrap: wrap;
  }

  .booking-content,
  .form-stack,
  .form-section,
  .section-body,
  .booking-content > .panel {
    width: 100%;
    max-width: 100%;
  }

  .metric-strip,
  .metric-strip.four {
    grid-template-columns: 1fr;
  }

  .wizard-launch-grid {
    grid-template-columns: 1fr;
  }

  .lease-modal-backdrop {
    align-items: start;
    padding: 10px;
  }

  .lease-modal,
  .lease-modal.compact {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .lease-modal-head {
    min-height: 74px;
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }

  .wide-2 {
    grid-column: auto;
  }

  .data-row,
  .bookings-table .data-row,
  .money-table .data-row,
  .sales-table .data-row,
  .customers-table .data-row,
  .customer-history-table .data-row,
  .customer-sales-table .data-row,
  .statement-table .data-row,
  .billing-run-row,
  .billing-charge-row,
  .expenses-table .data-row,
  .platform-accounts-table .data-row,
  .source-table .data-row,
  .location-table .data-row,
  .traffic-daily-table .data-row,
  .traffic-pages-table .data-row,
  .traffic-source-table .data-row,
  .raw-traffic-table .data-row,
  .visitor-table .data-row,
  .deep-visitor-table .data-row,
  .page-intent-table .data-row,
  .workspace-usage-table .data-row,
  .workspace-page-table .data-row,
  .billing-table .data-row,
  .top-page-row,
  .platform-timeline,
  .document-row,
  .timeline-row {
    grid-template-columns: 1fr;
    min-width: 0;
    gap: 4px;
    align-items: start;
    padding: 10px 15px;
  }

  .billing-run-row,
  .billing-charge-row {
    min-width: 0;
  }

  .billing-run-note {
    align-items: stretch;
    flex-direction: column;
  }

  .compact-month-field {
    width: 100%;
  }

  .header-row {
    display: none;
  }

  .step-link {
    min-height: 31px;
    padding-right: 9px;
  }

  .extra-row,
  .sale-line-row,
  .settings-row {
    grid-template-columns: 1fr;
  }

  .settings-actions {
    justify-content: stretch;
  }

  .settings-actions .ghost-button,
  .settings-actions .danger-button {
    flex: 1;
  }

  .onboarding-hero,
  .onboarding-actions,
  .onboarding-section-head {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .onboarding-hero {
    padding: 16px;
  }

  .onboarding-stage {
    padding: 16px;
  }

  .onboarding-progress-meter {
    width: 64px;
    height: 64px;
  }

  .onboarding-welcome-copy {
    min-height: 0;
    padding: 18px;
  }

  .onboarding-welcome-copy h3 {
    font-size: 18px;
  }

  .onboarding-actions .ghost-button,
  .onboarding-actions .primary-button {
    width: 100%;
  }

  .support-chat {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .support-chat-window {
    width: 100%;
    height: min(620px, calc(100vh - 78px));
    border-radius: 6px 6px 0 0;
  }

  .support-chat.is-open .support-chat-window {
    grid-template-rows: 46px 52px minmax(0, 1fr) auto;
  }

  .support-launcher {
    width: 50px;
    height: 50px;
  }

  .support-bubble {
    max-width: 86%;
  }

  .platform-chat-layout {
    min-height: 0;
  }

  .platform-chat-thread-panel {
    min-height: 620px;
  }

  .platform-chat-item {
    min-height: 72px;
  }
}

.lease-brand {
  display: flex;
  background: rgba(255, 255, 255, 0.98);
  color: #223857;
  padding: 6px 8px;
}

.print-logo {
  display: block;
  width: 156px;
  height: auto;
  margin-bottom: 8px;
}

.lease-row-1 {
  grid-template-columns: minmax(0, 1fr);
}

.lease-row-2 {
  grid-template-columns: minmax(180px, 1.2fr) minmax(120px, 1fr);
}

.lease-row-3 {
  grid-template-columns: minmax(180px, 1.2fr) minmax(120px, 1fr) minmax(120px, 0.8fr);
}

.lease-row-4 {
  grid-template-columns: minmax(180px, 1.2fr) repeat(3, minmax(120px, 1fr));
}

.lease-row-5 {
  grid-template-columns: minmax(180px, 1.25fr) repeat(4, minmax(110px, 1fr));
}

.lease-row-6 {
  grid-template-columns: minmax(170px, 1.2fr) repeat(5, minmax(105px, 1fr));
}

.lease-row-7 {
  grid-template-columns: minmax(160px, 1.2fr) repeat(6, minmax(96px, 1fr));
}

.report-table-scroll {
  overflow-x: auto;
}

.report-row {
  min-width: 860px;
}

.empty-panel {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 24px;
}

.deposit-action-tabs {
  gap: 10px;
}

.deposit-action-tabs details {
  display: grid;
  gap: 8px;
}

.deposit-action-tabs summary {
  list-style: none;
}

.deposit-action-tabs summary::-webkit-details-marker {
  display: none;
}

.deposit-action-form {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  padding: 10px;
}

.wizard-hub {
  min-width: 0;
}

.wizard-launch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.wizard-launch-grid-secondary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 0;
}

.wizard-launch {
  --wizard-accent: #2f8f98;
  --wizard-bg: #edf7f6;
  --wizard-border: #b8deda;
  display: grid;
  position: relative;
  min-height: 92px;
  align-content: start;
  gap: 8px;
  overflow: hidden;
  border: 1px solid var(--wizard-border);
  border-radius: 6px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f9fcfc 54%, var(--wizard-bg) 100%);
  box-shadow: 0 8px 22px rgba(31, 47, 66, 0.07);
  color: #263c53;
  cursor: pointer;
  padding: 15px 15px 13px;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.wizard-launch::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--wizard-accent);
}

.wizard-launch::after {
  content: "";
  position: absolute;
  top: 13px;
  right: 14px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--wizard-accent);
  box-shadow: 0 0 0 5px rgba(47, 143, 152, 0.12);
  opacity: 0.9;
}

.wizard-launch:nth-of-type(1) {
  --wizard-accent: #bd6d45;
  --wizard-bg: #fbf2ec;
  --wizard-border: #e1c4af;
}

.wizard-launch:nth-of-type(2) {
  --wizard-accent: #9b7a1e;
  --wizard-bg: #fbf7e5;
  --wizard-border: #d9c88c;
}

.wizard-launch:nth-of-type(3) {
  --wizard-accent: #2f8f98;
  --wizard-bg: #eef8f7;
  --wizard-border: #abd8d5;
}

.wizard-launch:nth-of-type(4) {
  --wizard-accent: #607d3b;
  --wizard-bg: #f1f7ec;
  --wizard-border: #bfd1a7;
}

.wizard-launch-grid-secondary .wizard-launch:nth-of-type(1) {
  --wizard-accent: #7c6697;
  --wizard-bg: #f4f1f8;
  --wizard-border: #c8bad8;
}

.wizard-launch-grid-secondary .wizard-launch:nth-of-type(2) {
  --wizard-accent: #2f6f9f;
  --wizard-bg: #eef5fa;
  --wizard-border: #b4cfdf;
}

.wizard-launch:hover,
.wizard-launch:focus-visible {
  border-color: var(--wizard-accent);
  box-shadow: 0 14px 32px rgba(31, 47, 66, 0.14);
  transform: translateY(-2px);
}

.wizard-launch strong {
  max-width: calc(100% - 28px);
  color: #172f47;
  font-size: 12.5px;
  font-weight: 700;
}

.wizard-launch small {
  max-width: calc(100% - 10px);
  color: #4f6478;
  font-size: 10px;
  line-height: 1.42;
}

.performance-grid {
  align-items: start;
}

.tenant-behavior-list {
  max-height: 330px;
  overflow-y: auto;
}

.lease-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(14, 24, 36, 0.68);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  padding: 22px;
}

.lease-modal-backdrop[hidden] {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

.lease-modal {
  display: grid;
  width: min(940px, calc(100vw - 44px));
  max-height: calc(100vh - 44px);
  overflow: hidden;
  border: 1px solid #d5e1ea;
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(16, 28, 42, 0.42);
  isolation: isolate;
}

.lease-modal.compact {
  width: min(680px, calc(100vw - 44px));
}

.lease-modal.deposit-wizard-modal {
  width: min(920px, calc(100vw - 44px));
}

.lease-modal-head {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  padding: 0 15px;
}

.lease-modal-head p {
  color: var(--muted);
  font-size: 10px;
}

.lease-modal-body {
  display: grid;
  gap: 14px;
  overflow-y: auto;
  padding: 16px;
}

.lease-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.deposit-wizard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.deposit-wizard-modal .field textarea {
  min-height: 48px;
}

.deposit-wizard-modal .lease-modal-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 0 -16px -16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), #fff 38%);
  padding: 10px 16px 16px;
}

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

@media (max-width: 620px) {
  .deposit-wizard-grid {
    grid-template-columns: 1fr;
  }

  .deposit-wizard-grid .wide-2 {
    grid-column: auto;
  }
}

.wizard-subsection {
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

.wizard-subsection h3 {
  color: #31465c;
  font-size: 12px;
  font-weight: 700;
}

.wizard-subsection p {
  color: var(--muted);
  font-size: 10px;
}

.bulk-space-table {
  display: grid;
  overflow-x: auto;
}

.bulk-space-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(110px, 0.8fr) minmax(82px, 0.6fr) minmax(126px, 0.8fr) minmax(98px, 0.7fr) minmax(98px, 0.7fr) minmax(86px, 0.55fr) minmax(120px, 0.75fr) minmax(160px, 1fr);
  min-width: 1120px;
  gap: 8px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
}

.bulk-space-row.compact {
  grid-template-columns: minmax(150px, 1.2fr) minmax(110px, 0.8fr) minmax(126px, 0.8fr) minmax(98px, 0.7fr) minmax(98px, 0.7fr) minmax(86px, 0.55fr);
  min-width: 780px;
  padding-left: 0;
  padding-right: 0;
}

.bulk-space-header {
  min-height: 32px;
  align-items: center;
  background: var(--soft);
  color: #8a96a6;
  font-size: 10px;
  font-weight: 700;
}

.bulk-space-row:not(.bulk-space-header) .field span {
  display: none;
}

.inline-field-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 5px;
}

.wide-2 {
  grid-column: span 2;
}

.lease-checkbox-field .switch-field {
  min-height: 31px;
  align-items: center;
}

.lease-auth-shell {
  max-width: 460px;
}

.plan-auth-shell {
  max-width: 940px;
}

.print-body {
  background: #fff;
  color: #1b2734;
  font-size: 11px;
}

.print-report {
  padding: 28px;
}

.print-report-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 2px solid #1b2734;
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.print-report-head strong,
.print-report-head span,
.print-report-head h1,
.print-report-head p {
  display: block;
}

.print-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
}

.print-table th,
.print-table td {
  border: 1px solid #d8e2eb;
  padding: 6px;
  text-align: left;
  vertical-align: top;
}

.print-table th {
  background: #f5f8fb;
  font-weight: 700;
}

@media (max-width: 640px) {
  .lease-row-1,
  .lease-row-2,
  .lease-row-3,
  .lease-row-4,
  .lease-row-5,
  .lease-row-6,
  .lease-row-7 {
    grid-template-columns: 1fr;
  }

  .wizard-launch-grid {
    grid-template-columns: 1fr;
  }

  .lease-modal-backdrop {
    align-items: start;
    padding: 10px;
  }

  .lease-modal,
  .lease-modal.compact {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .lease-modal-head {
    min-height: 74px;
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }

  .wide-2 {
    grid-column: auto;
  }

  .bulk-space-row,
  .bulk-space-row.compact {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .bulk-space-header {
    display: none;
  }

  .bulk-space-row:not(.bulk-space-header) .field span {
    display: block;
  }

  .lease-modal-actions {
    flex-wrap: wrap;
  }
}

@media (min-width: 641px) and (max-width: 980px) {
  .wizard-launch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
