:root {
  --page-bg: #edf4f1;
  --panel-bg: rgba(255, 255, 255, 0.88);
  --panel-border: rgba(39, 79, 74, 0.14);
  --text-strong: #17322f;
  --text-soft: #55706c;
  --brand: #2d7a78;
  --brand-deep: #1f5d5a;
  --brand-wash: #dbeceb;
  --brand-green: #2e6b68;
  --brand-green-deep: #184847;
  --brand-sand: #edf2df;
  --surface-strong: #f9fcfb;
  --shadow: 0 18px 38px rgba(24, 54, 50, 0.08);
  --site-shell-width: min(1880px, calc(100% - 1rem));
  --admin-shell-width: var(--site-shell-width);
}

html {
  font-size: 15px;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text-strong);
  background:
    radial-gradient(circle at top left, rgba(45, 122, 120, 0.1), transparent 30%),
    radial-gradient(circle at bottom right, rgba(141, 176, 162, 0.18), transparent 24%),
    linear-gradient(180deg, #f5faf8 0%, #eaf2ee 100%);
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
}

a {
  color: var(--brand-deep);
}

a:hover {
  color: var(--brand);
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell-width {
  width: var(--site-shell-width);
  margin: 0 auto;
}

.topbar {
  padding: 0.8rem 0;
}

.brand-mark {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--text-strong);
}

.nav-links .nav-link {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.nav-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.role-chip {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand-deep);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-body {
  flex: 1;
  padding: 1.25rem 0 2.5rem;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
  padding: 2rem;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: var(--panel-bg);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand-deep);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.95;
}

.hero-tagline {
  max-width: 42rem;
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-strong);
}

.hero-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.35rem;
  flex-wrap: wrap;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.metric-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  padding: 1.25rem;
  border-radius: 22px;
  background: #fffaf4;
  border: 1px solid rgba(108, 45, 25, 0.08);
}

.accent-card {
  background: linear-gradient(160deg, #a14f2b 0%, #6c2d19 100%);
  color: #fff7ee;
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.metric-label {
  color: inherit;
  opacity: 0.86;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.content-card {
  padding: 1.35rem;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: var(--panel-bg);
  box-shadow: var(--shadow);
}

.content-card h2 {
  margin: 0 0 1rem;
  font-size: 1.4rem;
}

.legal-card h1 {
  margin: 0.25rem 0 1rem;
}

.feature-list,
.roadmap-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-soft);
}

.feature-list li,
.roadmap-list li {
  margin-bottom: 0.7rem;
  line-height: 1.5;
}

.footer-bar {
  padding: 1rem 0 1.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.primary-action {
  border: 0;
  background: linear-gradient(160deg, #2d7a78 0%, #1f5d5a 100%);
  color: #f6fffd;
  box-shadow: 0 14px 24px rgba(31, 93, 90, 0.18);
}

.secondary-action {
  border: 1px solid rgba(39, 79, 74, 0.16);
  background: rgba(246, 252, 250, 0.96);
  color: var(--brand-deep);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

.auth-shell {
  display: flex;
  justify-content: center;
  padding: 0.25rem 0 0.75rem;
}

.auth-card {
  width: min(100%, 560px);
  padding: 1.5rem;
  border: 1px solid var(--panel-border);
  border-radius: 26px;
  background: var(--panel-bg);
  box-shadow: var(--shadow);
}

body:has(.auth-card .list-stack) .page-body {
  padding-top: 0.55rem;
  padding-bottom: 0.75rem;
}

body:has(.auth-card .list-stack) .auth-shell {
  justify-content: stretch;
  min-height: calc(100vh - 8.5rem);
}

body:has(.auth-card .list-stack) .auth-card {
  display: grid;
  width: 100%;
  min-height: calc(100vh - 8.5rem);
  grid-template-columns: minmax(320px, 0.85fr) minmax(380px, 1.15fr);
  gap: 1rem 1.25rem;
  align-content: start;
}

body:has(.auth-card .list-stack) .auth-intro,
body:has(.auth-card .list-stack) .auth-form,
body:has(.auth-card .list-stack) .auth-footer-links {
  grid-column: 1;
}

body:has(.auth-card .list-stack) .auth-card .list-stack {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: start;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 0;
}

body:has(.auth-card .list-stack) .auth-card .list-stack h2 {
  grid-column: 1 / -1;
}

.compact-card {
  max-width: 520px;
}

.auth-intro h1 {
  margin: 0.2rem 0 0.6rem;
}

.auth-intro .otp-title {
  margin-bottom: 0.25rem;
  font-size: 1.45rem;
  line-height: 1.25;
}

.otp-society-name,
.compact-society-name {
  margin: 0 0 0.75rem;
  color: var(--text-strong);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.compact-flow-title {
  margin: 0.2rem 0 0.25rem;
  font-size: 1.45rem;
  line-height: 1.25;
}

.auth-intro p {
  margin: 0 0 1.2rem;
  color: var(--text-soft);
}

.auth-form {
  display: grid;
  gap: 0.55rem;
}

.auth-form label {
  font-weight: 600;
}

.auth-input {
  min-height: 44px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(39, 79, 74, 0.16);
  border-radius: 14px;
  background: #fbfefd;
}

.auth-input:focus {
  outline: none;
  border-color: rgba(45, 122, 120, 0.45);
  box-shadow: 0 0 0 4px rgba(45, 122, 120, 0.08);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.2rem 0 0.35rem;
  color: var(--text-soft);
}

.status-panel,
.validation-strip {
  margin-top: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(219, 236, 235, 0.85);
  color: var(--brand-deep);
}

.layout-message {
  margin-bottom: 1rem;
}

.field-validation {
  color: #9b2c1d;
  font-size: 0.92rem;
  min-height: 1.1rem;
}

.auth-footer-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.form-shell {
  padding: 1rem 0 2rem;
}

.onboarding-card h1 {
  margin: 0.2rem 0 0.7rem;
}

.section-note {
  color: var(--text-soft);
  line-height: 1.6;
}

.registration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.print-register-filter-grid {
  grid-template-columns: minmax(260px, 1.15fr) repeat(2, minmax(220px, 0.85fr));
  align-items: end;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field label {
  font-weight: 600;
}

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

.form-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
}

.input-suffix-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
}

.input-suffix-row span {
  color: var(--text-soft);
  font-weight: 700;
}

.coop-year-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
}

.coop-year-fixed {
  min-width: 3.75rem;
  border: 1px solid var(--panel-border);
  border-radius: 0.75rem;
  background: var(--surface-strong);
  color: var(--text-strong);
  font-weight: 700;
  padding: 0.72rem 0.9rem;
  text-align: center;
}

.receipt-date-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 0.5rem;
  align-items: center;
}

.receipt-picker-shell {
  position: relative;
  display: inline-grid;
  width: 46px;
  min-width: 46px;
  height: 44px;
}

.receipt-picker-native {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.receipt-picker-native::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.receipt-picker-button {
  position: relative;
  display: grid;
  width: 46px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(39, 79, 74, 0.16);
  border-radius: 10px;
  background: #fbfefd;
  color: var(--brand-deep);
  pointer-events: none;
}

.receipt-picker-button::before {
  width: 18px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 3px;
  background:
    linear-gradient(currentColor 0 4px, transparent 4px),
    linear-gradient(90deg, transparent 0 5px, currentColor 5px 7px, transparent 7px 11px, currentColor 11px 13px, transparent 13px);
  content: "";
}

.receipt-picker-shell:hover .receipt-picker-button,
.receipt-picker-native:focus + .receipt-picker-button {
  border-color: rgba(45, 122, 120, 0.45);
  box-shadow: 0 0 0 4px rgba(45, 122, 120, 0.08);
}

.member-lookup-grid {
  display: grid;
  grid-template-columns: minmax(170px, 0.35fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.cheque-mode-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.45fr);
  gap: 1rem;
  align-items: start;
}

.member-unit-lookup {
  position: relative;
}

.member-unit-match {
  width: 100%;
  min-height: 36px;
  margin-top: 0.4rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(45, 122, 120, 0.24);
  border-radius: 8px;
  background: rgba(219, 236, 235, 0.72);
  color: var(--brand-deep);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: left;
}

.member-unit-match:hover,
.member-unit-match:focus {
  outline: none;
  border-color: rgba(45, 122, 120, 0.48);
  background: rgba(219, 236, 235, 0.95);
}

.member-unit-match[hidden] {
  display: none;
}

.ledger-charge-toggle {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
  text-align: left;
}

.ledger-charge-details-row td {
  background: rgba(219, 236, 235, 0.24);
}

.ledger-charge-details {
  display: grid;
  gap: 0.75rem;
}

.ledger-charge-details-table {
  min-width: 520px;
}

.receipt-narration {
  min-height: 86px;
  resize: vertical;
}

.members-receipt-reference-wrap {
  margin-top: 0;
}

.members-receipt-reference-table {
  min-width: 620px;
}

.receipt-reference-preview {
  margin-bottom: 0.9rem;
  border: 1px solid rgba(39, 79, 74, 0.12);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.receipt-reference-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  background: rgba(219, 236, 235, 0.42);
}

.receipt-reference-preview-head span {
  color: var(--brand-deep);
  font-weight: 800;
  white-space: nowrap;
}

.receipt-reference-preview-wrap {
  margin-top: 0;
  border: 0;
  border-radius: 0;
}

.receipt-reference-preview-table {
  min-width: 520px;
}

.receipt-allocation-panel {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(39, 79, 74, 0.12);
  border-radius: 8px;
  background: rgba(247, 252, 250, 0.86);
}

.receipt-allocation-panel strong,
.receipt-allocation-panel span {
  display: block;
}

.receipt-allocation-panel span {
  margin-top: 0.2rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.receipt-allocation-open {
  white-space: nowrap;
}

.receipt-allocation-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(11, 31, 29, 0.38);
}

.receipt-allocation-modal[hidden] {
  display: none;
}

.receipt-allocation-dialog {
  width: min(860px, 100%);
  max-height: min(82vh, 720px);
  overflow: auto;
  padding: 1rem;
  border: 1px solid rgba(39, 79, 74, 0.16);
  border-radius: 8px;
  background: #fbfefd;
  box-shadow: 0 24px 60px rgba(12, 35, 32, 0.22);
}

.receipt-allocation-head,
.receipt-allocation-actions,
.receipt-allocation-totals {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.receipt-allocation-head {
  justify-content: space-between;
}

.receipt-allocation-head h3 {
  margin: 0;
  font-size: 1.15rem;
}

.receipt-allocation-close {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(39, 79, 74, 0.14);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-deep);
  cursor: pointer;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
}

.receipt-allocation-totals {
  flex-wrap: wrap;
  margin-top: 0.8rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(219, 236, 235, 0.58);
}

.receipt-allocation-totals span {
  color: var(--text-soft);
}

.receipt-allocation-totals strong {
  color: var(--brand-deep);
}

.receipt-allocation-input {
  width: 145px;
  min-height: 38px;
}

.maintenance-head-update-table {
  min-width: 980px;
}

.maintenance-head-bulk-table {
  min-width: 860px;
}

.maintenance-head-update-table .amount-column {
  width: 190px;
}

.maintenance-head-update-input {
  width: 160px;
  min-height: 38px;
  margin-left: auto;
  text-align: right;
}

.maintenance-head-name-input {
  max-width: 360px;
  min-height: 38px;
  font-weight: 700;
}

.maintenance-head-month-input {
  width: 150px;
  min-height: 38px;
}

.receipt-allocation-book {
  min-height: 34px;
  padding: 0.45rem 0.75rem;
}

.receipt-allocation-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.is-overallocated {
  color: #9b2c1d !important;
}

.inline-link {
  color: var(--brand-deep);
  font-weight: 700;
}

.auth-input:disabled,
.primary-action:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.fee-panel {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(247, 252, 250, 0.92);
  border: 1px solid rgba(39, 79, 74, 0.12);
}

.first-setup-card {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.first-setup-form {
  margin-top: 1.25rem;
  gap: 1rem;
}

.first-setup-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

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

.first-setup-tab {
  min-height: 42px;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(39, 79, 74, 0.18);
  border-radius: 8px;
  background: rgba(246, 252, 250, 0.96);
  color: var(--brand-deep);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
}

.first-setup-tab:hover,
.first-setup-tab:focus {
  outline: none;
  border-color: rgba(45, 122, 120, 0.42);
  background: #eef8f5;
}

.first-setup-tab.is-active {
  border-color: rgba(31, 93, 90, 0.5);
  background: #dbeceb;
  color: #173f3c;
}

.first-setup-tab:disabled {
  border-color: rgba(39, 79, 74, 0.1);
  background: #f3f6f5;
  color: rgba(31, 93, 90, 0.55);
  cursor: not-allowed;
}

.first-setup-tab:disabled:hover,
.first-setup-tab:disabled:focus {
  border-color: rgba(39, 79, 74, 0.1);
  background: #f3f6f5;
}

.first-setup-section {
  padding: 1rem;
  border: 1px solid rgba(39, 79, 74, 0.12);
  border-radius: 18px;
  background: rgba(247, 252, 250, 0.72);
}

.first-setup-panel {
  display: none;
}

.first-setup-panel.is-active {
  display: block;
}

.first-setup-section h2,
.bank-account-card h3 {
  margin: 0 0 0.85rem;
  color: var(--brand-deep);
  font-size: 1rem;
}

.bank-account-toolbar,
.bank-account-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.bank-account-toolbar {
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.bank-account-toolbar h2,
.bank-account-card-header h3 {
  margin: 0;
}

.bank-account-add {
  min-height: 36px;
  padding: 0.55rem 0.85rem;
}

.bank-account-remove {
  min-height: 34px;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(124, 45, 18, 0.18);
  border-radius: 999px;
  background: rgba(255, 247, 242, 0.96);
  color: #8a3b1f;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.bank-account-remove:hover {
  background: #fff0e6;
}

.bank-account-remove[hidden] {
  display: none;
}

.bank-account-list {
  display: grid;
  gap: 1rem;
}

.bank-account-card {
  padding: 0.95rem;
  border: 1px solid rgba(39, 79, 74, 0.1);
  border-radius: 16px;
  background: #ffffff;
}

.bank-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.society-database-card {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.society-database-form {
  margin-top: 1.25rem;
  gap: 1rem;
}

.society-database-tabs {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

.numbered-field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.staff-member-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.staff-member-row {
  display: grid;
  gap: 0.75rem;
  padding: 0.8rem;
  border: 1px solid rgba(39, 79, 74, 0.1);
  border-radius: 14px;
  background: #ffffff;
}

.staff-member-heading {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.staff-member-heading strong {
  min-width: 0;
  color: var(--brand-deep);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.staff-member-fields {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0.75rem;
  align-items: end;
}

.staff-head-editor[hidden] {
  display: none;
}

.staff-head-edit {
  min-height: 32px;
  padding: 0.45rem 0.7rem;
}

.database-subsection {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(39, 79, 74, 0.12);
}

.database-subsection h3 {
  margin: 0;
  color: var(--brand-deep);
  font-size: 0.96rem;
}

.database-repeat-list {
  display: grid;
  gap: 0.75rem;
}

.database-repeat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  padding: 0.8rem;
  border: 1px solid rgba(39, 79, 74, 0.1);
  border-radius: 14px;
  background: #ffffff;
}

.event-repeat-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.completion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.3rem 0;
}

.detail-block {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(248, 252, 251, 0.92);
  border: 1px solid rgba(39, 79, 74, 0.12);
}

.setup-grid {
  align-items: start;
}

.setup-import-grid {
  align-items: start;
}

.setup-import-workbook {
  display: grid;
  gap: 1rem;
}

.setup-import-panel {
  display: grid;
  gap: 1rem;
}

.setup-import-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
}

.setup-import-file {
  margin: 0;
}

.setup-import-panel.is-inactive {
  opacity: 0.62;
}

.setup-import-panel.is-inactive .primary-action,
.setup-import-panel.is-inactive .auth-input {
  cursor: not-allowed;
}

.first-setup-panel.is-inactive .primary-action,
.first-setup-panel.is-inactive .auth-input {
  cursor: not-allowed;
}

.list-stack {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.muted-line {
  margin-top: 0.35rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.committee-chip {
  display: inline-block;
  margin-top: 0.55rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand-deep);
  font-size: 0.78rem;
}

.checkbox-field {
  display: flex;
  align-items: end;
}

.fee-label {
  display: block;
  color: var(--text-soft);
}

.fee-value {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.ledger-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.maintenance-records-table {
  min-width: 980px;
}

.ledger-table th,
.ledger-table td {
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid rgba(39, 79, 74, 0.12);
  text-align: left;
  vertical-align: top;
}

.ledger-table th {
  color: var(--text-soft);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ledger-table .amount-column {
  text-align: right;
  white-space: nowrap;
}

.admin-workspace-content .ledger-table {
  width: max-content;
  min-width: 100%;
}

.admin-workspace-content .ledger-table th {
  white-space: nowrap;
}

.ledger-filter {
  align-items: end;
}

.compact-metrics {
  margin-top: 1rem;
}

.members-ledger-print-heading {
  display: none;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.admin-menu-shell {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  min-height: calc(100vh - 8.5rem);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.page-body:has(.admin-menu-shell),
.page-body:has(.admin-workspace-shell) {
  width: var(--admin-shell-width);
  padding-top: 0.55rem;
  padding-bottom: 0.75rem;
}

body:has(.admin-menu-shell) .topbar .shell-width,
body:has(.admin-workspace-shell) .topbar .shell-width,
body:has(.admin-menu-shell) .footer-content,
body:has(.admin-workspace-shell) .footer-content {
  width: var(--admin-shell-width);
}

body:has(.admin-menu-shell) .footer-bar,
body:has(.admin-workspace-shell) .footer-bar {
  padding-bottom: 0.75rem;
}

.admin-workspace-shell {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  min-height: calc(100vh - 8.5rem);
}

.admin-workspace-shell > .office-menu-strip {
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-menu-shell > .office-menu-strip {
  align-self: stretch;
  max-height: none;
}

.admin-workspace-content {
  display: grid;
  gap: 1rem;
  align-content: start;
  min-width: 0;
  overflow-x: auto;
}

.admin-workspace-content > .form-shell {
  padding: 0;
}

.admin-workspace-content > .content-grid {
  margin-top: 0;
}

.admin-workspace-content h1,
.admin-workspace-content h2,
.admin-workspace-content strong {
  overflow-wrap: anywhere;
}

.admin-menu-header {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #f6fffd;
}

.admin-menu-header span,
.admin-menu-header strong,
.admin-menu-header small {
  display: block;
}

.admin-menu-header span {
  color: rgba(246, 255, 253, 0.76);
  font-size: 0.82rem;
}

.admin-menu-header strong {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
}

.admin-menu-header small {
  grid-column: 1 / -1;
  color: rgba(246, 255, 253, 0.8);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: #f7fbf9;
  color: var(--brand-deep);
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(7, 30, 28, 0.18);
}

.office-menu-strip {
  position: sticky;
  top: 0.75rem;
  align-self: start;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  border-right: 1px solid var(--panel-border);
  background:
    linear-gradient(180deg, rgba(249, 252, 251, 0.98) 0%, rgba(237, 244, 241, 0.98) 100%);
}

.office-menu-bar {
  display: grid;
  gap: 0;
  padding: 0.35rem 0 0.9rem;
}

.office-menu-group {
  border-top: 1px solid rgba(39, 79, 74, 0.1);
}

.office-menu-tab,
.office-menu-home {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 18px;
  gap: 0.65rem;
  align-items: center;
  min-height: 48px;
  width: 100%;
  padding: 0.7rem 0.95rem;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--text-strong);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.office-menu-home {
  grid-template-columns: 26px minmax(0, 1fr);
}

.office-menu-tab span,
.office-menu-home span {
  min-width: 0;
}

.office-menu-tab:hover,
.office-menu-tab:focus,
.office-menu-home:hover,
.office-menu-home:focus {
  outline: none;
  background: rgba(219, 236, 235, 0.54);
  color: var(--brand-deep);
}

.office-menu-group.is-open .office-menu-tab,
.office-menu-home.is-active {
  border-left-color: var(--brand);
  background: rgba(45, 122, 120, 0.12);
  color: var(--brand-deep);
}

.office-menu-panel {
  display: none;
  padding: 0.1rem 0 0.6rem;
  background: rgba(219, 236, 235, 0.5);
}

.office-menu-group.is-open .office-menu-panel {
  display: grid;
  gap: 0.25rem;
}

.office-menu-section {
  position: relative;
  padding: 0.25rem 0 0.25rem 1.45rem;
}

.office-menu-section h2 {
  margin: 0;
  padding: 0.45rem 0.95rem 0.35rem 0.45rem;
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.office-menu-section ul {
  position: relative;
  margin: 0;
  padding: 0.1rem 0 0.2rem;
  list-style: none;
}

.office-menu-section ul::before {
  position: absolute;
  top: 0.3rem;
  bottom: 0.3rem;
  left: 0.28rem;
  width: 1px;
  background: rgba(45, 122, 120, 0.24);
  content: "";
}

.office-menu-link,
.office-work-placeholder button {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.office-menu-link {
  position: relative;
  padding: 0.42rem 0.75rem 0.42rem 0;
  font-size: 0.84rem;
}

.office-menu-link:hover,
.office-menu-link:focus {
  outline: none;
  background: rgba(45, 122, 120, 0.09);
  color: var(--brand-deep);
}

.office-menu-link.is-active {
  color: var(--brand-deep);
  font-weight: 700;
}

.office-menu-link:disabled,
.office-menu-link[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.48;
}

.office-menu-link.highlighted {
  background: rgba(237, 242, 223, 0.72);
  color: var(--brand-green-deep);
  font-weight: 700;
}

.office-menu-icon {
  position: relative;
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(45, 122, 120, 0.34);
  border-radius: 6px;
  background: rgba(219, 236, 235, 0.45);
  color: var(--brand);
}

.office-menu-icon::before,
.office-menu-icon::after {
  position: absolute;
  content: "";
}

.dashboard-icon::before {
  width: 11px;
  height: 7px;
  border: 2px solid currentColor;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom: 0;
}

.setup-icon::before {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.members-icon::before {
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.legal-icon::before,
.finance-icon::before,
.account-icon::before,
.maintenance-icon::before,
.default-icon::before {
  width: 11px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.utilities-icon::before,
.manager-icon::before {
  width: 12px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.finance-icon::after,
.account-icon::after {
  width: 8px;
  height: 2px;
  background: currentColor;
}

.maintenance-icon::after {
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.office-menu-chevron {
  justify-self: end;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(31, 93, 90, 0.72);
  border-bottom: 2px solid rgba(31, 93, 90, 0.72);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.office-menu-group.is-open .office-menu-chevron {
  transform: rotate(225deg);
}

.office-menu-dot {
  position: relative;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(45, 122, 120, 0.42);
}

.office-work-area {
  display: grid;
  gap: 1rem;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: stretch;
  min-width: 0;
  padding: 1.1rem;
}

.member-menu-shell .office-work-area {
  grid-template-rows: auto minmax(0, 1fr);
}

.office-work-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.3fr);
  gap: 1rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid rgba(31, 93, 90, 0.12);
  border-radius: 8px;
  background: #eef7f4;
}

.office-work-hero h2,
.office-work-panel h2 {
  margin: 0;
  color: #173d39;
  font-family: Georgia, "Times New Roman", serif;
}

.office-work-hero h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.35rem);
}

.office-work-hero p {
  max-width: 760px;
  margin: 0.7rem 0 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.office-work-kicker {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.office-work-status {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  min-height: 130px;
  padding: 1rem;
  border: 1px solid rgba(31, 93, 90, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.office-work-status span,
.office-work-grid span,
.office-work-placeholder span {
  color: var(--text-soft);
}

.office-work-status strong {
  color: var(--brand-deep);
  font-size: 1.15rem;
}

.office-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.office-work-grid article,
.office-work-panel {
  border: 1px solid rgba(31, 93, 90, 0.12);
  border-radius: 8px;
  background: #fbfefd;
}

.office-work-grid article {
  display: grid;
  gap: 0.35rem;
  min-height: 92px;
  padding: 1rem;
}

.office-work-grid strong {
  color: var(--brand-deep);
  font-size: 1rem;
}

.office-work-panel {
  min-height: 0;
  padding: 1rem;
}

.office-work-panel h2 {
  font-size: 1.15rem;
}

.office-work-placeholder {
  display: grid;
  gap: 0.35rem;
  min-height: clamp(220px, 34vh, 420px);
  margin-top: 0.75rem;
  padding: 1rem;
  place-content: center;
  border: 1px dashed rgba(31, 93, 90, 0.24);
  border-radius: 8px;
  background: #f7fbf9;
  text-align: center;
}

.office-work-placeholder strong {
  color: var(--brand-deep);
  font-size: 1.25rem;
}

.office-work-placeholder span {
  font-size: 0.84rem;
}

.member-work-panel {
  margin-top: 0.75rem;
}

.member-outstanding-form {
  display: grid;
  gap: 1rem;
  max-width: 760px;
}

.member-outstanding-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
  gap: 1rem;
  align-items: start;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(31, 93, 90, 0.14);
}

.member-outstanding-heading h3 {
  margin: 0;
  color: var(--brand-deep);
  font-size: 1.35rem;
  font-weight: 800;
}

.member-outstanding-heading p {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
}

.member-outstanding-date {
  display: grid;
  gap: 0.25rem;
  justify-items: end;
  min-height: 58px;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(31, 93, 90, 0.12);
  border-radius: 8px;
  background: #f7fbf9;
}

.member-outstanding-date span {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.member-outstanding-date strong {
  color: var(--brand-deep);
  font-size: 1rem;
}

.member-outstanding-lines {
  display: grid;
  gap: 0.55rem;
}

.member-outstanding-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, auto);
  gap: 1rem;
  align-items: center;
  min-height: 50px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(31, 93, 90, 0.1);
  border-left: 4px solid rgba(45, 122, 120, 0.7);
  border-radius: 8px;
  background: #fbfefd;
}

.member-outstanding-line span {
  color: var(--text-strong);
  font-weight: 750;
}

.member-outstanding-line output {
  justify-self: end;
  color: var(--brand-deep);
  font-weight: 800;
}

.member-outstanding-line.is-advance-line {
  border-left-color: #2563eb;
  background: #f5f8ff;
}

.member-outstanding-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, auto);
  gap: 1rem;
  align-items: center;
  min-height: 64px;
  margin-top: 0.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-weight: 850;
}

.member-outstanding-total span {
  font-size: 1rem;
}

.member-outstanding-total strong {
  justify-self: end;
  font-size: 1.15rem;
}

.member-outstanding-total.is-outstanding {
  background: #fff5f5;
  color: #b42318;
}

.member-outstanding-total.is-clear {
  background: #f1fbf4;
  color: #15803d;
}

.member-outstanding-total.is-advance {
  background: #f2f7ff;
  color: #1d4ed8;
}

.member-history-form {
  display: grid;
  gap: 1rem;
}

.member-history-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 1rem;
  align-items: end;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(31, 93, 90, 0.14);
}

.member-history-head h3 {
  margin: 0;
  color: var(--brand-deep);
  font-size: 1.35rem;
  font-weight: 800;
}

.member-history-head p {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
}

.member-history-picker {
  margin: 0;
}

.member-history-picker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
}

.member-history-table-wrap {
  margin-top: 0;
}

.member-history-table {
  min-width: 620px;
}

.member-receipt-history-table {
  min-width: 760px;
}

.member-history-table td:last-child {
  white-space: nowrap;
}

.member-ledger-filter-form {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.member-ledger-filter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-ledger-empty {
  margin-top: 1rem;
}

.member-ledger-print-area {
  display: grid;
  gap: 1rem;
}

.member-ledger-print-heading {
  margin-top: 0.25rem;
}

.member-ledger-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.member-ledger-account-table {
  min-width: 820px;
}

.member-complaint-form {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

.member-complaints-empty {
  margin-top: 1rem;
}

.member-complaints-table {
  min-width: 860px;
}

.member-complaints-table td {
  vertical-align: top;
  white-space: normal;
}

.member-tenant-record-form {
  gap: 1.1rem;
}

.member-tenant-record-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-tenant-record-grid .field-hint,
.tenant-application-link {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.member-vehicle-record-form {
  gap: 1.1rem;
}

.member-vehicle-record-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-vehicle-records-section {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.member-vehicle-records-table {
  min-width: 880px;
}

.vehicle-records-admin-grid {
  align-items: start;
}

.vehicle-records-admin-table {
  min-width: 960px;
}

.tenant-application-link {
  justify-self: start;
}

.member-tenant-admin-response {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 0.85rem;
  border: 1px solid rgba(31, 93, 90, 0.14);
  border-radius: 8px;
  background: #f7fbf9;
}

.member-tenant-divider {
  width: 100%;
  margin: 0.35rem 0;
  border: 0;
  border-top: 1px solid rgba(31, 93, 90, 0.18);
}

.member-tenant-members {
  display: grid;
  gap: 0.85rem;
}

.member-tenant-members-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.member-tenant-members-head h4 {
  margin: 0;
  color: var(--brand-deep);
  font-size: 0.98rem;
}

.member-tenant-add-row {
  display: flex;
  justify-content: flex-start;
}

.member-tenant-member-row {
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  margin-top: 0;
  padding: 0.85rem;
  border: 1px solid rgba(31, 93, 90, 0.12);
  border-radius: 8px;
  background: #fbfefd;
}

.member-tenant-remove {
  align-self: center;
  white-space: nowrap;
}

.member-tenant-log-section {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.member-tenant-log-list {
  display: grid;
  gap: 1rem;
}

.member-tenant-log-card {
  display: grid;
  gap: 0.95rem;
  padding: 1rem;
  border: 1px solid rgba(31, 93, 90, 0.12);
  border-radius: 8px;
  background: #fbfefd;
}

.member-tenant-log-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(31, 93, 90, 0.14);
}

.member-tenant-log-head h4 {
  margin: 0.2rem 0 0;
  color: var(--brand-deep);
  font-size: 1.08rem;
}

.member-tenant-log-head p {
  margin: 0.2rem 0 0;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.member-tenant-log-details,
.member-tenant-log-response {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.member-tenant-log-response {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(31, 93, 90, 0.14);
}

.member-tenant-log-members-table {
  min-width: 520px;
}

.tenant-records-admin-grid {
  align-items: start;
}

.tenant-records-admin-list {
  display: grid;
  gap: 1rem;
}

.tenant-record-admin-status-group {
  display: grid;
  gap: 0.85rem;
}

.tenant-record-admin-status-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0 0.1rem;
}

.tenant-record-admin-status-head h2 {
  margin: 0;
  color: var(--brand-deep);
  font-size: 1.08rem;
}

.tenant-record-admin-status-head span {
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 800;
}

.tenant-record-admin-row {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(31, 93, 90, 0.12);
  border-radius: 8px;
  background: #fbfefd;
}

.tenant-record-admin-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: 1rem;
  align-items: start;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(31, 93, 90, 0.14);
}

.tenant-record-admin-head h2 {
  margin: 0.2rem 0 0;
  color: var(--brand-deep);
  font-size: 1.2rem;
}

.tenant-record-admin-head p,
.tenant-record-admin-meta {
  color: var(--text-soft);
}

.tenant-record-admin-meta {
  display: grid;
  gap: 0.35rem;
  justify-items: end;
  font-size: 0.84rem;
  font-weight: 700;
}

.tenant-record-admin-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.tenant-record-admin-members {
  display: grid;
  gap: 0.75rem;
}

.tenant-record-admin-members h3 {
  margin: 0;
  color: var(--brand-deep);
  font-size: 1rem;
}

.tenant-record-admin-members-table {
  min-width: 520px;
}

.tenant-record-admin-response-form {
  display: grid;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(31, 93, 90, 0.14);
}

.tenant-record-admin-response-grid {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
}

.member-settings-form {
  display: grid;
  gap: 1rem;
}

.member-documents-upload-form {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.member-documents-storage {
  display: grid;
  gap: 0.35rem;
  align-self: end;
  min-height: 78px;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(31, 93, 90, 0.12);
  border-radius: 8px;
  background: #f7fbf9;
}

.member-documents-storage span {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.member-documents-storage strong {
  color: var(--brand-deep);
  font-size: 0.95rem;
}

.member-documents-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(31, 93, 90, 0.12);
}

.member-documents-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2d7a78;
}

.member-documents-upload-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-documents-limits {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.member-documents-limits span {
  padding: 0.42rem 0.6rem;
  border: 1px solid rgba(31, 93, 90, 0.1);
  border-radius: 8px;
  background: #fbfefd;
}

.member-documents-limit-message,
.member-documents-empty {
  margin-top: 1rem;
}

.member-transfer-history-table-wrap {
  margin-top: 0;
}

.member-transfer-history-table {
  min-width: 720px;
}

.member-transfer-history-table td {
  vertical-align: top;
}

.member-documents-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.member-document-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid rgba(31, 93, 90, 0.12);
  border-radius: 8px;
  background: #fbfefd;
}

.member-document-summary {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.member-document-summary strong {
  color: var(--brand-deep);
  overflow-wrap: anywhere;
}

.member-document-summary span {
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 650;
}

.member-document-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: end;
}

.member-document-edit-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: end;
  margin: 0;
}

.member-document-edit-form .form-field {
  margin: 0;
}

.member-document-delete-form {
  align-self: end;
}

.member-password-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.member-profile-table-wrap {
  margin-top: 0;
}

.member-profile-table {
  min-width: 860px;
}

.member-profile-table th:first-child,
.member-profile-table td:first-child {
  width: 220px;
}

.member-profile-table th:nth-child(2),
.member-profile-table td:nth-child(2) {
  width: 260px;
}

.member-profile-table td {
  vertical-align: top;
}

.member-profile-table .auth-input {
  min-height: 38px;
}

.member-profile-locked {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--text-soft);
  font-weight: 700;
}

.inline-action {
  min-height: 36px;
  padding: 0.55rem 0.8rem;
  font-size: 0.84rem;
}

.inline-form {
  margin: 0;
}

.bill-action-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.danger-action {
  border-color: rgba(185, 28, 28, 0.26);
  color: #991b1b;
}

.danger-action:hover {
  background: #fee2e2;
}

.top-gap {
  margin-top: 0.75rem;
}

.print-shell {
  padding-bottom: 3rem;
}

.bill-print-card {
  max-width: 960px;
  margin: 0 auto;
}

.print-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.print-register-heading {
  margin-bottom: 1rem;
}

.print-register-heading h1,
.print-register-heading p {
  margin: 0;
}

.print-register-heading h1 {
  font-size: 1.2rem;
}

.print-register-heading p {
  color: var(--muted-text);
}

.print-register-actions {
  justify-content: flex-end;
  margin-top: 1rem;
}

.bill-header {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.bill-meta {
  display: grid;
  gap: 0.85rem;
}

.bill-lines-table {
  min-width: 100%;
}

.bill-total-row td {
  background: rgba(219, 236, 235, 0.42);
}

.classic-bill-card {
  max-width: min(100%, 230mm);
  margin: 0 auto;
}

.classic-bill-toolbar {
  padding: 1.25rem;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--panel-bg);
  box-shadow: var(--shadow);
}

.classic-bill-scroll {
  overflow-x: auto;
}

.classic-bill-document {
  box-sizing: border-box;
  width: min(100%, 210mm);
  min-width: 720px;
  min-height: 297mm;
  margin: 0 auto;
  border: 2px solid #111;
  background: #fff;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 1.25;
}

.classic-bill-document strong {
  color: inherit;
}

.classic-bill-society {
  padding: 8px 10px 9px;
  border-bottom: 1px solid #111;
  text-align: center;
}

.classic-bill-society h1 {
  margin: 0 0 2px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.classic-bill-society div {
  font-size: 11px;
  font-weight: 700;
}

.classic-bill-society strong {
  display: block;
  font-size: 12px;
}

.classic-bill-title,
.classic-bill-bank,
.classic-bill-footer {
  border-bottom: 1px solid #111;
  font-weight: 800;
  text-align: center;
}

.classic-bill-title {
  padding: 5px 8px;
  font-size: 14px;
}

.classic-bill-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.95fr);
  border-bottom: 1px solid #111;
}

.classic-bill-to,
.classic-bill-meta {
  min-height: 118px;
  padding: 8px 10px;
}

.classic-bill-to {
  border-right: 1px solid #111;
}

.classic-bill-meta {
  display: grid;
  align-content: start;
  gap: 8px;
}

.classic-bill-meta-row,
.classic-receipt-grid div {
  display: grid;
  grid-template-columns: 92px 12px minmax(0, 1fr);
  gap: 4px;
  align-items: baseline;
}

.classic-bill-meta-two {
  grid-template-columns: 82px 10px minmax(0, 1fr) 48px 10px minmax(0, 1fr);
}

.classic-bill-lines {
  width: 100%;
  border-collapse: collapse;
}

.classic-bill-lines th,
.classic-bill-lines td {
  padding: 3px 7px;
  border-right: 1px solid #111;
  vertical-align: top;
}

.classic-bill-lines th:last-child,
.classic-bill-lines td:last-child {
  border-right: 0;
}

.classic-bill-lines thead th {
  border-bottom: 1px solid #111;
  font-size: 11px;
  text-align: center;
}

.classic-bill-sr {
  width: 36px;
  text-align: center;
}

.classic-bill-amount {
  width: 150px;
  text-align: right;
}

.classic-bill-charge-type {
  color: #333;
  font-size: 10px;
}

.classic-bill-fill-row td {
  height: 245px;
}

.classic-bill-current-total td {
  border-top: 1px solid #111;
}

.classic-bill-current-total td:nth-child(2) {
  text-align: right;
}

.classic-bill-grand-total {
  display: grid;
  grid-template-columns: 1fr 150px;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
}

.classic-bill-grand-total strong {
  padding: 8px 10px;
  text-align: right;
}

.classic-bill-grand-total strong:last-child {
  border-left: 1px solid #111;
  font-size: 16px;
}

.classic-bill-words {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px;
  padding: 5px 6px;
  border-bottom: 1px solid #111;
}

.classic-bill-terms {
  display: grid;
  grid-template-columns: 1fr 220px;
  min-height: 92px;
  border-bottom: 1px solid #111;
}

.classic-bill-terms > div {
  padding: 7px 8px;
}

.classic-bill-terms > div:first-child {
  border-right: 1px solid #111;
  font-size: 9px;
}

.classic-bill-signature {
  display: grid;
  align-content: space-between;
  min-height: 78px;
  text-align: center;
}

.classic-bill-signature small {
  font-size: 7px;
  font-weight: 800;
}

.classic-bill-bank {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 6px 8px;
  flex-wrap: wrap;
}

.classic-bill-receipt {
  border-bottom: 1px solid #111;
}

.classic-receipt-entry + .classic-receipt-entry {
  border-top: 1px solid #111;
}

.classic-bill-receipt h2 {
  margin: 0;
  padding: 8px;
  border-bottom: 1px solid #111;
  font-size: 18px;
  text-align: center;
}

.classic-receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 10px 34px 4px;
}

.classic-bill-receipt p {
  margin: 0;
  padding: 1px 34px;
  line-height: 1.35;
}

.classic-receipt-bottom {
  display: grid;
  grid-template-columns: 1fr 220px;
  min-height: 100px;
  margin-top: 8px;
  border-top: 1px solid #111;
}

.classic-receipt-bottom > div {
  padding: 12px 28px;
}

.classic-receipt-bottom > div:first-child {
  border-right: 1px solid #111;
}

.classic-receipt-bottom > div:first-child strong {
  display: block;
  width: 220px;
  padding-bottom: 8px;
  border-bottom: 2px solid #111;
  font-size: 15px;
}

.classic-receipt-bottom span {
  display: block;
  margin-top: 10px;
  font-size: 9px;
  font-weight: 800;
}

.classic-bill-footer {
  padding: 6px;
  border-bottom: 0;
  font-size: 10px;
  font-weight: 400;
}

.statement-bill-document {
  border-color: rgba(31, 93, 90, 0.62);
  box-shadow: 0 18px 42px rgba(24, 54, 50, 0.13);
  font-size: 9.5px;
  line-height: 1.18;
}

.statement-bill-document table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.statement-bill-document th,
.statement-bill-document td {
  border: 1px dotted rgba(31, 93, 90, 0.48);
  padding: 3px 5px;
  vertical-align: middle;
}

.statement-header {
  padding: 7px 10px 5px;
  border-bottom: 1px solid rgba(31, 93, 90, 0.58);
  background: linear-gradient(180deg, rgba(219, 236, 235, 0.88), rgba(255, 255, 255, 0.95));
  text-align: center;
}

.statement-header h1 {
  margin: 0 0 2px;
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
}

.statement-header div,
.statement-header p {
  margin: 0;
  color: var(--brand-deep);
  font-size: 8.5px;
  font-weight: 600;
}

.statement-title,
.statement-receipt-title {
  padding: 3px 8px;
  border-bottom: 1px solid rgba(31, 93, 90, 0.58);
  background: var(--brand-wash);
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.statement-party-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 185px 230px;
  border-bottom: 1px solid rgba(31, 93, 90, 0.58);
}

.statement-info-table,
.statement-side-meta {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.statement-info-table {
  border-right: 1px solid rgba(31, 93, 90, 0.58);
  background: rgba(249, 252, 251, 0.76);
}

.statement-contact-cell {
  background: rgba(249, 252, 251, 0.52);
}

.statement-info-table th,
.statement-info-table td,
.statement-side-meta th,
.statement-side-meta td {
  padding: 2px 5px;
  border-bottom: 1px dotted rgba(31, 93, 90, 0.48);
  text-align: left;
}

.statement-info-table tr:last-child th,
.statement-info-table tr:last-child td,
.statement-side-meta tr:last-child th,
.statement-side-meta tr:last-child td {
  border-bottom: 0;
}

.statement-info-table th,
.statement-side-meta th {
  width: 96px;
  border-right: 1px dotted rgba(31, 93, 90, 0.48);
  background: rgba(219, 236, 235, 0.45);
  color: var(--brand-deep);
  font-weight: 700;
}

.statement-info-table.statement-name-cell th {
  width: 52px;
}

.statement-info-table.statement-contact-cell th {
  width: 72px;
}

.statement-info-table td,
.statement-side-meta td {
  min-width: 0;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.statement-name-cell td {
  font-size: 9px;
  text-align: left;
}

.statement-contact-cell td {
  font-size: 8.5px;
  text-align: left;
}

.statement-strip-grid span {
  color: var(--text-soft);
}

.statement-strip-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.7fr;
  border-bottom: 1px solid rgba(31, 93, 90, 0.58);
}

.statement-member-id-grid {
  grid-template-columns: 1.2fr 0.7fr 1fr 1fr;
}

.statement-strip-grid div {
  display: flex;
  gap: 5px;
  min-width: 0;
  padding: 3px 6px;
  border-right: 1px dotted rgba(31, 93, 90, 0.48);
}

.statement-strip-grid div:last-child {
  border-right: 0;
}

.statement-strip-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.statement-summary-table th,
.statement-charge-table th,
.statement-receipt-table th {
  background: rgba(219, 236, 235, 0.55);
  color: var(--brand-deep);
  font-weight: 800;
  text-align: center;
}

.statement-summary-table td {
  text-align: center;
}

.statement-sr-col {
  width: 58px;
  text-align: center;
}

.statement-amount-col {
  width: 112px;
  text-align: right;
}

.statement-charge-table td:nth-child(2) {
  padding-left: 12px;
}

.statement-charge-type {
  display: inline-block;
  margin-left: 4px;
  color: var(--text-soft);
  font-size: 8px;
}

.statement-blank-row td {
  height: 16px;
  color: rgba(23, 50, 47, 0.48);
}

.statement-arrear-head-row td {
  background: rgba(237, 242, 223, 0.65);
  color: var(--text-strong);
}

.statement-charge-table tfoot td {
  padding: 5px 6px;
  border-top: 1px solid rgba(31, 93, 90, 0.72);
  background: rgba(249, 252, 251, 0.88);
}

.statement-charge-table tfoot td:last-child {
  color: var(--text-strong);
  font-size: 14px;
}

.statement-receipt {
  border-bottom: 1px solid rgba(31, 93, 90, 0.58);
}

.statement-receipt-header {
  display: grid;
  gap: 1px;
  padding: 4px 8px;
  color: var(--brand-deep);
  text-align: center;
}

.statement-receipt-meta {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  border-top: 1px dotted rgba(31, 93, 90, 0.48);
  border-bottom: 1px dotted rgba(31, 93, 90, 0.48);
}

.statement-receipt-meta span {
  min-width: 0;
  padding: 3px 6px;
  border-right: 1px dotted rgba(31, 93, 90, 0.48);
  overflow-wrap: anywhere;
}

.statement-receipt-meta span:last-child {
  border-right: 0;
}

.statement-receipt-table th,
.statement-receipt-table td {
  height: 18px;
  font-size: 8.5px;
}

.statement-receipt-table tfoot td {
  background: rgba(249, 252, 251, 0.88);
}

.statement-notes {
  position: relative;
  padding: 4px 8px 16px;
  border-bottom: 1px solid rgba(31, 93, 90, 0.58);
  background: rgba(249, 252, 251, 0.76);
}

.statement-notes strong {
  display: block;
  text-align: center;
}

.statement-notes p {
  margin: 1px 0;
  font-size: 8px;
}

.statement-notes span {
  position: absolute;
  right: 8px;
  bottom: 4px;
  font-weight: 700;
}

.statement-signature {
  display: grid;
  align-content: space-between;
  justify-items: end;
  min-height: 78px;
  padding: 8px 10px;
  text-align: right;
}

.statement-signature strong {
  color: var(--brand-deep);
}

.statement-signature span {
  align-self: end;
  font-weight: 700;
}

.statement-footer {
  padding: 4px;
  border-top: 1px solid rgba(31, 93, 90, 0.58);
  color: var(--text-soft);
}

.document-amount {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.9rem;
  color: var(--brand-deep);
}

.signature-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.signature-block {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(39, 79, 74, 0.18);
}

.notice-copy p {
  margin: 0;
  line-height: 1.7;
}

.home-clean-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.4rem;
  border: 1px solid rgba(39, 79, 74, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(245, 251, 248, 0.92));
  box-shadow: var(--shadow);
}

.home-clean-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--brand-green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-clean-copy h1,
.home-clean-heading h2,
.home-clean-feature h3,
.home-clean-workspace-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.home-clean-copy h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
}

.home-clean-lead,
.home-clean-heading p,
.home-clean-feature p,
.home-clean-workspace-card p,
.home-clean-trust p {
  color: var(--text-soft);
  line-height: 1.7;
}

.home-clean-lead {
  max-width: 38rem;
  margin: 0.8rem 0 0;
  font-size: 0.98rem;
}

.home-clean-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.home-clean-art {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(39, 79, 74, 0.12);
  background: #fff;
}

.home-clean-art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.home-clean-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.home-clean-stats article,
.home-clean-feature,
.home-clean-workspace-card,
.home-clean-empty {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(39, 79, 74, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
}

.home-clean-stats strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1.1;
  color: var(--brand-deep);
}

.home-clean-stats span {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.home-clean-section {
  margin-top: 1.2rem;
  padding: 1.25rem;
  border: 1px solid rgba(39, 79, 74, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 28px rgba(24, 54, 50, 0.05);
}

.home-clean-heading {
  margin-bottom: 1.1rem;
}

.home-clean-heading h2 {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.home-clean-heading p {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
}

.home-clean-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.home-clean-feature h3,
.home-clean-workspace-card h3 {
  font-size: 1rem;
}

.home-clean-feature p {
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
}

.home-clean-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.home-clean-metrics div {
  padding: 0.9rem;
  border-radius: 18px;
  background: rgba(237, 244, 241, 0.96);
  border: 1px solid rgba(39, 79, 74, 0.1);
}

.home-clean-metrics span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.home-clean-metrics strong {
  color: var(--brand-deep);
  font-size: 0.98rem;
}

.home-clean-workspaces {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-clean-workspace-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.home-clean-workspace-top span {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand-deep);
  font-size: 0.72rem;
  font-weight: 700;
}

.home-clean-workspace-card p {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
}

.home-clean-workspace-actions,
.home-clean-trust-points {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.home-clean-workspace-actions {
  margin-top: 1rem;
}

.home-clean-trust-points span {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(237, 244, 241, 0.96);
  border: 1px solid rgba(39, 79, 74, 0.1);
  color: var(--text-strong);
  font-size: 0.84rem;
}

.home-ref-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  min-height: 560px;
  padding: clamp(1.4rem, 4vw, 3.4rem);
  border: 1px solid rgba(25, 86, 83, 0.14);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(240, 248, 244, 0.9) 48%, rgba(218, 237, 231, 0.78) 100%),
    url("/images/onsoc-hero-bg.jpeg") center/cover;
  box-shadow: 0 28px 70px rgba(24, 54, 50, 0.12);
}

.home-ref-hero::before {
  content: "";
  position: absolute;
  inset: auto -8rem -12rem auto;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  background: rgba(45, 122, 120, 0.16);
}

.home-ref-copy,
.home-ref-product-card {
  position: relative;
  z-index: 1;
}

.home-ref-kicker,
.home-ref-heading span,
.home-ref-band span {
  display: inline-flex;
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-ref-copy h1 {
  max-width: 820px;
  margin: 0.75rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.026em;
  color: #14322e;
}

.home-ref-lead {
  max-width: 620px;
  margin: 1.15rem 0 0;
  color: #415f5a;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.75;
}

.home-ref-actions,
.home-ref-mini-proof,
.home-ref-flow,
.home-ref-workspace-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.home-ref-actions {
  margin-top: 1.5rem;
}

.home-ref-mini-proof {
  margin-top: 1.25rem;
}

.home-ref-mini-proof span,
.home-ref-flow span {
  padding: 0.48rem 0.75rem;
  border: 1px solid rgba(31, 93, 90, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #365d58;
  font-size: 0.83rem;
  font-weight: 700;
}

.home-ref-product-card {
  padding: 1rem;
  border: 1px solid rgba(31, 93, 90, 0.14);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 44px rgba(24, 54, 50, 0.12);
  backdrop-filter: blur(14px);
}

.home-ref-card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.3rem 0.25rem 0.85rem;
}

.home-ref-card-top span {
  color: var(--text-soft);
  font-weight: 700;
}

.home-ref-card-top strong {
  padding: 0.36rem 0.65rem;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand-deep);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-ref-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.home-ref-dashboard div {
  padding: 0.85rem;
  border-radius: 18px;
  background: #f7fbf9;
  border: 1px solid rgba(31, 93, 90, 0.1);
}

.home-ref-dashboard span,
.home-ref-stats span {
  display: block;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.home-ref-dashboard strong {
  display: block;
  margin-top: 0.28rem;
  color: var(--brand-deep);
  font-size: 1rem;
}

.home-ref-flow {
  margin: 0.9rem 0;
}

.home-ref-product-card img {
  display: block;
  width: 100%;
  height: 255px;
  object-fit: cover;
  border-radius: 22px;
}

.home-ref-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.home-ref-stats article,
.home-ref-section,
.home-ref-testimonials article {
  border: 1px solid rgba(31, 93, 90, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 38px rgba(24, 54, 50, 0.06);
}

.home-ref-stats article {
  padding: 1.1rem;
  border-radius: 22px;
}

.home-ref-stats strong {
  display: block;
  color: #173d39;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.home-ref-stats span {
  margin-top: 0.45rem;
}

.home-ref-section {
  margin-top: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 30px;
}

.home-ref-heading {
  max-width: 840px;
  margin-bottom: 1.35rem;
}

.home-ref-heading.compact {
  margin-bottom: 1rem;
}

.home-ref-heading h2,
.home-ref-band h2 {
  margin: 0.45rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 2vw, 1.72rem);
  line-height: 1.22;
  letter-spacing: -0.012em;
}

.home-ref-heading p {
  margin: 0.8rem 0 0;
  color: var(--text-soft);
  line-height: 1.75;
}

@media (min-width: 1100px) {
  .home-ref-heading {
    max-width: 1100px;
  }
}

.home-ref-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-ref-module-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
  margin: 0;
  padding: 0;
  counter-reset: home-core-module;
  list-style: none;
  border-top: 1px solid rgba(31, 93, 90, 0.16);
}

.home-ref-module-list li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-items: center;
  min-height: 3.5rem;
  padding: 0.65rem 0;
  counter-increment: home-core-module;
  border-bottom: 1px solid rgba(31, 93, 90, 0.16);
  color: var(--text-strong);
  font-weight: 700;
}

.home-ref-module-list li::before {
  content: counter(home-core-module, decimal-leading-zero);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
}

.home-ref-feature,
.home-ref-trust-grid article,
.home-ref-workspace-card,
.home-ref-empty {
  padding: 1.1rem;
  border: 1px solid rgba(31, 93, 90, 0.11);
  border-radius: 22px;
  background: #fbfefd;
}

.home-ref-feature.featured {
  background: linear-gradient(150deg, #236b68 0%, #153d3a 100%);
  color: #f6fffd;
}

.home-ref-feature span {
  color: inherit;
  opacity: 0.7;
  font-size: 0.8rem;
  font-weight: 800;
}

.home-ref-feature h3 {
  margin: 0.6rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.home-ref-feature p,
.home-ref-trust-grid p,
.home-ref-workspace-card p,
.home-ref-testimonials p {
  margin: 0.65rem 0 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.home-ref-feature.featured p {
  color: rgba(246, 255, 253, 0.78);
}

.home-ref-band {
  display: flex;
  justify-content: space-between;
  gap: 1.4rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #153d3a 0%, #236b68 100%);
  color: #f6fffd;
}

.home-ref-band span,
.home-ref-band h2 {
  color: #f6fffd;
}

.home-ref-band .primary-action {
  background: #f6fffd;
  color: #153d3a;
  box-shadow: none;
  white-space: nowrap;
}

.home-ref-trust-grid,
.home-ref-workspaces,
.home-ref-testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-ref-trust-grid strong,
.home-ref-testimonials strong {
  color: #173d39;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.home-ref-workspaces {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-ref-workspace-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.home-ref-workspace-top h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.home-ref-workspace-top span {
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand-deep);
  font-size: 0.72rem;
  font-weight: 800;
}

.home-ref-workspace-actions {
  margin-top: 1rem;
}

.home-ref-empty {
  color: var(--text-soft);
}

.home-ref-testimonials {
  margin-top: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-ref-testimonials article {
  padding: 1.25rem;
  border-radius: 26px;
}

.home-ref-testimonials p {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  color: #244945;
}

.home-ref-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.4rem;
  align-items: start;
}

.home-ref-process {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-ref-process article,
.home-ref-comparison-grid article {
  padding: 1.1rem;
  border: 1px solid rgba(31, 93, 90, 0.11);
  border-radius: 22px;
  background: #fbfefd;
}

.home-ref-process span {
  color: var(--brand-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-ref-process strong {
  display: block;
  margin-top: 0.55rem;
  color: #173d39;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.home-ref-process p,
.home-ref-comparison-grid p,
.home-ref-copy-columns p {
  margin: 0.6rem 0 0;
  color: var(--text-soft);
  line-height: 1.68;
}

.home-ref-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-ref-comparison-grid h3,
.home-ref-faq-grid h3 {
  margin: 0.65rem 0 0;
  color: #173d39;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
}

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

.home-ref-long-copy {
  background:
    radial-gradient(circle at top left, rgba(45, 122, 120, 0.08), transparent 32%),
    rgba(255, 255, 255, 0.88);
}

.home-ref-copy-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-ref-copy-columns p {
  margin-top: 0;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(247, 251, 249, 0.82);
  border: 1px solid rgba(31, 93, 90, 0.09);
}

.home-ref-report-grid,
.home-ref-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-ref-report-grid article,
.home-ref-faq-grid article {
  padding: 1.05rem;
  border: 1px solid rgba(31, 93, 90, 0.11);
  border-radius: 22px;
  background: #fbfefd;
}

.home-ref-report-grid p,
.home-ref-faq-grid p {
  margin: 0.55rem 0 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.home-ref-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.home-ref-two-column > div {
  padding: 1.15rem;
  border: 1px solid rgba(31, 93, 90, 0.11);
  border-radius: 24px;
  background: #fbfefd;
}

.home-ref-check-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
  line-height: 1.68;
}

.home-ref-check-list li {
  margin-bottom: 0.55rem;
}

.home-ref-report-grid span {
  display: inline-flex;
  padding: 0.3rem 0.58rem;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand-deep);
  font-size: 0.72rem;
  font-weight: 800;
}

.home-ref-report-grid strong {
  display: block;
  margin-top: 0.65rem;
  color: #173d39;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 7mm;
  }

  .topbar,
  .footer-bar,
  .layout-message,
  .admin-workspace-shell > .office-menu-strip,
  .member-menu-shell > .office-menu-strip,
  .member-menu-shell .office-work-hero,
  .member-dashboard-panel > h2,
  .member-dashboard-panel > [data-office-work-placeholder],
  .member-dashboard-panel > [data-office-panel]:not(#member-ledger-account-panel),
  #member-ledger-account-panel .member-ledger-filter-form,
  #member-ledger-account-panel .member-ledger-empty,
  .no-print,
  .print-toolbar {
    display: none !important;
  }

  html,
  body,
  .app-shell {
    background: #fff;
    min-height: 0;
  }

  .shell-width,
  .page-body,
  .form-shell,
  .admin-workspace-shell,
  .admin-workspace-content,
  .member-menu-shell,
  .member-menu-shell .office-work-area,
  .member-dashboard-panel,
  #member-ledger-account-panel,
  .print-shell {
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: none;
  }

  .content-card,
  .detail-block,
  .office-work-panel {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.12);
    background: #fff;
  }

  .member-ledger-print-area,
  .member-ledger-print-area * {
    color: #000 !important;
    background: #fff !important;
  }

  .member-ledger-print-area {
    font-size: 10pt;
  }

  .member-ledger-summary {
    grid-template-columns: repeat(3, 1fr);
  }

  .member-ledger-account-table-wrap {
    overflow: visible;
  }

  .member-ledger-account-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
  }

  .member-ledger-account-table th,
  .member-ledger-account-table td {
    border: 1px solid #000;
    padding: 3px 4px;
  }

  .classic-bill-card {
    width: 196mm;
    max-width: 196mm;
    margin: 0 auto;
  }

  .classic-bill-scroll {
    overflow: visible;
  }

  .classic-bill-document {
    width: 196mm;
    min-width: 0;
    min-height: 283mm;
    max-width: 196mm;
    margin: 0;
    border-color: #000;
    color: #000;
    print-color-adjust: exact;
    break-after: page;
    page-break-after: always;
  }

  .classic-bill-document:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .statement-bill-document,
  .statement-bill-document * {
    background: #fff !important;
    box-shadow: none !important;
    color: #000 !important;
  }

  .statement-bill-document {
    border: 1px solid #000;
  }

  .statement-bill-document th,
  .statement-bill-document td,
  .statement-header,
  .statement-title,
  .statement-receipt-title,
  .statement-party-grid,
  .statement-name-cell,
  .statement-contact-cell,
  .statement-strip-grid,
  .statement-strip-grid div,
  .statement-receipt,
  .statement-receipt-meta,
  .statement-receipt-meta span,
  .statement-notes,
  .statement-footer {
    border-color: #000 !important;
  }

  .classic-bill-fill-row td {
    height: 230px;
  }

  .members-ledger-output-grid,
  .print-register-output-grid {
    display: block;
    margin: 0;
  }

  .print-register-card,
  .print-register-card * {
    box-shadow: none !important;
    color: #000 !important;
    background: #fff !important;
  }

  .print-register-card {
    width: 196mm;
    max-width: 196mm;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    font-size: 8px;
    line-height: 1.25;
    print-color-adjust: exact;
  }

  .print-register-heading {
    display: block;
    margin: 0 0 4mm;
    padding-bottom: 2mm;
    border-bottom: 1px solid #000;
  }

  .print-register-heading h1 {
    font-size: 15px;
    line-height: 1.2;
  }

  .print-register-heading p {
    margin-top: 1mm;
    font-size: 9px;
  }

  .print-register-card .section-note {
    margin: 0;
    font-size: 9px;
  }

  .print-register-card .ledger-table-wrap {
    overflow: visible;
    margin-top: 0;
  }

  .print-register-card .ledger-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
  }

  .print-register-table {
    table-layout: fixed;
    font-size: 7.2px;
  }

  .print-register-card .ledger-table th,
  .print-register-card .ledger-table td {
    padding: 1mm;
    border: 1px solid #000;
    line-height: 1.2;
    overflow-wrap: anywhere;
    vertical-align: top;
  }

  .print-register-card .ledger-table th {
    font-size: 6.5px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
  }

  .print-register-table thead {
    display: table-header-group;
  }

  .print-register-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-register-table th:nth-child(1),
  .print-register-table td:nth-child(1) {
    width: 9%;
  }

  .print-register-table th:nth-child(2),
  .print-register-table td:nth-child(2) {
    width: 13%;
  }

  .print-register-table th:nth-child(3),
  .print-register-table td:nth-child(3),
  .print-register-table th:nth-child(4),
  .print-register-table td:nth-child(4) {
    width: 15%;
  }

  .print-register-table th:nth-child(5),
  .print-register-table td:nth-child(5),
  .print-register-table th:nth-child(6),
  .print-register-table td:nth-child(6) {
    width: 10%;
  }

  .print-register-table th:nth-child(7),
  .print-register-table td:nth-child(7) {
    width: 28%;
  }

  .members-ledger-print-card,
  .members-ledger-print-card * {
    box-shadow: none !important;
    color: #000 !important;
  }

  .members-ledger-print-card {
    width: 283mm;
    max-width: 283mm;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    font-size: 8px;
    line-height: 1.25;
    print-color-adjust: exact;
  }

  .members-ledger-print-heading {
    display: block;
    margin: 0 0 4mm;
    padding-bottom: 2mm;
    border-bottom: 1px solid #000;
  }

  .members-ledger-print-heading h1,
  .members-ledger-print-heading p {
    margin: 0;
  }

  .members-ledger-print-heading h1 {
    font-size: 15px;
    line-height: 1.2;
  }

  .members-ledger-print-address {
    margin-top: 1mm;
    font-size: 8.5px;
  }

  .members-ledger-print-title {
    margin-top: 1.5mm;
    font-size: 10px;
    font-weight: 700;
  }

  .members-ledger-print-card .compact-metrics {
    grid-template-columns: 1.1fr 1.7fr 0.7fr repeat(4, 1fr);
    gap: 2mm;
    margin: 0 0 4mm;
  }

  .members-ledger-print-card .detail-block {
    min-width: 0;
    padding: 1.5mm 2mm;
    border: 1px solid #666;
    border-radius: 0;
    background: #fff;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .members-ledger-print-card .fee-label {
    font-size: 6.5px;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .members-ledger-print-card .detail-block strong {
    display: block;
    margin-top: 0.5mm;
    font-size: 8px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .members-ledger-print-card .section-note {
    margin: 0;
    font-size: 9px;
  }

  .members-ledger-print-card .ledger-table-wrap {
    overflow: visible;
    margin-top: 0;
  }

  .members-ledger-print-card .ledger-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
  }

  .members-ledger-main-table {
    table-layout: fixed;
    font-size: 7.2px;
  }

  .members-ledger-print-card .ledger-table th,
  .members-ledger-print-card .ledger-table td {
    padding: 1mm;
    border: 1px solid #555;
    background: #fff;
    line-height: 1.2;
    overflow-wrap: anywhere;
    vertical-align: top;
  }

  .members-ledger-print-card .ledger-table th {
    background: #ececec;
    font-size: 6.5px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
  }

  .members-ledger-main-table thead {
    display: table-header-group;
  }

  .members-ledger-main-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .members-ledger-main-table th:nth-child(1),
  .members-ledger-main-table td:nth-child(1) {
    width: 7%;
  }

  .members-ledger-main-table th:nth-child(2),
  .members-ledger-main-table td:nth-child(2) {
    width: 6%;
  }

  .members-ledger-main-table th:nth-child(3),
  .members-ledger-main-table td:nth-child(3) {
    width: 9%;
  }

  .members-ledger-main-table th:nth-child(4),
  .members-ledger-main-table td:nth-child(4),
  .members-ledger-main-table th:nth-child(5),
  .members-ledger-main-table td:nth-child(5) {
    width: 12%;
  }

  .members-ledger-main-table th:nth-child(6),
  .members-ledger-main-table td:nth-child(6) {
    width: 22%;
  }

  .members-ledger-main-table th:nth-child(7),
  .members-ledger-main-table td:nth-child(7),
  .members-ledger-main-table th:nth-child(8),
  .members-ledger-main-table td:nth-child(8) {
    width: 9%;
  }

  .members-ledger-main-table th:nth-child(9),
  .members-ledger-main-table td:nth-child(9) {
    width: 14%;
  }

  .members-ledger-print-card .inline-link,
  .members-ledger-print-card .ledger-charge-toggle {
    border: 0;
    background: transparent;
    color: #000 !important;
    font: inherit;
    font-weight: 700;
    padding: 0;
    text-decoration: none;
  }

  .members-ledger-print-card .ledger-charge-details {
    gap: 1mm;
  }

  .members-ledger-print-card .ledger-charge-details > strong {
    font-size: 8px;
  }

  .members-ledger-print-card .ledger-charge-details-table {
    min-width: 0;
    font-size: 7px;
  }
}

@media (max-width: 900px) {
  .hero-panel,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 1.4rem;
  }

  .bill-header {
    grid-template-columns: 1fr;
  }

  .bank-account-grid {
    grid-template-columns: 1fr;
  }

  .society-database-grid,
  .numbered-field-grid,
  .staff-member-list,
  .staff-member-fields,
  .database-repeat-row,
  .event-repeat-row {
    grid-template-columns: 1fr;
  }

  .society-database-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signature-row {
    grid-template-columns: 1fr;
  }

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

  .admin-menu-shell,
  .admin-workspace-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .admin-workspace-shell {
    align-items: start;
  }

  body:has(.auth-card .list-stack) .auth-shell,
  body:has(.auth-card .list-stack) .auth-card {
    min-height: auto;
  }

  body:has(.auth-card .list-stack) .auth-card {
    grid-template-columns: 1fr;
  }

  body:has(.auth-card .list-stack) .auth-card .list-stack {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: 1fr;
  }

  .office-menu-strip {
    position: static;
    max-height: none;
    border-right: 0;
  }

  .office-work-area {
    grid-template-rows: none;
    padding: 0.85rem;
  }

  .office-work-placeholder {
    min-height: 180px;
  }

  .office-work-hero,
  .office-work-grid {
    grid-template-columns: 1fr;
  }

  .member-outstanding-heading,
  .member-outstanding-line,
  .member-outstanding-total,
  .member-history-head,
  .member-history-picker-row,
  .member-ledger-filter-grid,
  .member-ledger-summary,
  .member-tenant-admin-response,
  .member-tenant-log-details,
  .member-tenant-log-head,
  .member-tenant-log-response,
  .member-vehicle-record-grid,
  .member-tenant-record-grid,
  .member-tenant-member-row,
  .tenant-record-admin-head,
  .tenant-record-admin-details,
  .tenant-record-admin-response-grid,
  .member-documents-upload-grid,
  .member-document-row,
  .member-document-actions,
  .member-document-edit-form {
    grid-template-columns: 1fr;
  }

  .member-password-grid {
    grid-template-columns: 1fr;
  }

  .member-outstanding-date,
  .member-outstanding-line output,
  .member-outstanding-total strong {
    justify-self: start;
    justify-items: start;
  }

  .home-clean-hero,
  .home-clean-stats,
  .home-clean-features,
  .home-clean-metrics,
  .home-clean-workspaces,
  .home-ref-hero,
  .home-ref-split,
  .home-ref-stats,
  .home-ref-feature-grid,
  .home-ref-module-list,
  .home-ref-trust-grid,
  .home-ref-comparison-grid,
  .home-ref-copy-columns,
  .home-ref-two-column,
  .home-ref-report-grid,
  .home-ref-faq-grid,
  .home-ref-workspaces,
  .home-ref-testimonials {
    grid-template-columns: 1fr;
  }

  .home-ref-hero {
    min-height: auto;
  }

  .home-ref-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .shell-width {
    width: min(100% - 1rem, 1120px);
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .registration-grid {
    grid-template-columns: 1fr;
  }

  .print-register-filter-grid {
    grid-template-columns: 1fr;
  }

  .receipt-date-pair {
    grid-template-columns: minmax(0, 1fr) 46px;
  }

  .member-lookup-grid {
    grid-template-columns: 1fr;
  }

  .cheque-mode-grid {
    grid-template-columns: 1fr;
  }

  .receipt-allocation-panel,
  .receipt-allocation-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .receipt-allocation-open,
  .receipt-allocation-actions .primary-action,
  .receipt-allocation-actions .secondary-action {
    width: 100%;
  }

  .setup-import-form {
    grid-template-columns: 1fr;
  }

  .first-setup-tabs {
    grid-template-columns: 1fr;
  }

  .completion-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-content {
    flex-direction: column;
  }

  .auth-footer-links {
    flex-direction: column;
  }

  .home-clean-hero,
  .home-clean-section,
  .home-ref-hero,
  .home-ref-section {
    padding: 1.1rem;
  }

  .home-clean-workspace-top,
  .home-ref-workspace-top {
    flex-direction: column;
  }

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

  .home-ref-product-card img {
    height: 210px;
  }

  .home-ref-process {
    grid-template-columns: 1fr;
  }

  .classic-bill-card {
    width: 100%;
  }

  .classic-bill-toolbar {
    margin: 0 0.5rem 1rem;
  }
}
