:root {
  --colorPrimary: #6f1d2f;
  --colorSecond: #8f2d46;
  --colorDark: #111111;
  --colorLight: #ffffff;
  --colorSoft: #f7f3f4;
  --colorLine: #e6d8dc;
  --sideWidth: 280px;
  --sideSmall: 64px;
  --headHeight: 64px;
}

html,
body {
  min-height: 100%;
}

body {
  overflow-x: hidden;
  background: var(--colorSoft);
  color: var(--colorDark);
}

a {
  color: var(--colorPrimary);
}

.btn-clubox {
  background: var(--colorPrimary);
  border-color: var(--colorPrimary);
  color: var(--colorLight);
}

.btn-clubox:hover,
.btn-clubox:focus-visible {
  background: var(--colorSecond);
  border-color: var(--colorSecond);
  color: var(--colorLight);
}

.btn-outline-clubox {
  border-color: var(--colorPrimary);
  color: var(--colorPrimary);
}

.btn-outline-clubox:hover,
.btn-outline-clubox:focus-visible {
  background: var(--colorPrimary);
  color: var(--colorLight);
}

.card-clubox {
  border: 1px solid var(--colorLine);
  border-radius: 1rem;
}

.hero-panel {
  background: linear-gradient(135deg, var(--colorPrimary), var(--colorDark));
  color: var(--colorLight);
  border-radius: 1.5rem;
}

.landing-page {
  background: var(--colorLight);
}

.landing-head {
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 1px solid var(--colorLine);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(12px);
}

.landing-brand {
  color: var(--colorPrimary);
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
}

.landing-nav a,
.landing-foot a {
  color: var(--colorDark);
  font-weight: 600;
  text-decoration: none;
}

.landing-nav a:hover,
.landing-foot a:hover {
  color: var(--colorPrimary);
}

.landing-hero {
  overflow: hidden;
  background: linear-gradient(135deg, #fff 0%, var(--colorSoft) 58%, #efe0e4 100%);
}

.landing-kicker {
  margin-bottom: .75rem;
  color: var(--colorPrimary);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.landing-hero h1,
.landing-section h2 {
  font-weight: 800;
  letter-spacing: -.035em;
}

.landing-hero h1 {
  max-width: 11ch;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
}

.landing-lead {
  max-width: 38rem;
  color: #495057;
  font-size: 1.15rem;
  line-height: 1.65;
}

.landing-note {
  color: #6c757d;
  font-size: .9rem;
}

.landing-demo {
  border: 1px solid var(--colorLine);
  border-radius: 1.4rem;
  box-shadow: 0 24px 50px rgb(17 17 17 / 14%);
}

.landing-section {
  padding: 5rem 0;
}

.landing-soft {
  background: var(--colorSoft);
}

.landing-card,
.review-card,
.partner-card,
.contact-card {
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--colorLine);
  border-radius: 1rem;
  background: var(--colorLight);
  box-shadow: 0 10px 26px rgb(17 17 17 / 5%);
}

.landing-card h3 {
  font-size: 1.05rem;
  font-weight: 750;
}

.landing-card p,
.review-card blockquote {
  margin-bottom: 0;
  color: #59636d;
}

.landing-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}

.landing-stat-grid div {
  min-height: 160px;
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--colorPrimary);
  color: var(--colorLight);
}

.landing-stat-grid div:nth-child(2) {
  background: var(--colorDark);
}

.landing-stat-grid div:nth-child(3) {
  background: var(--colorSecond);
}

.landing-stat-grid strong,
.landing-stat-grid span {
  display: block;
}

.landing-stat-grid strong {
  margin-bottom: .75rem;
  font-size: 2.4rem;
}

.partner-card {
  display: grid;
  min-height: 120px;
  place-items: center;
  color: var(--colorPrimary);
  font-weight: 750;
  text-align: center;
}

.landing-indicators {
  position: static;
  margin: 1.5rem 0 0;
}

.landing-indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--colorPrimary);
}

.review-card {
  margin: 0;
}

.review-card blockquote {
  font-size: 1.05rem;
  line-height: 1.6;
}

.review-card figcaption {
  margin-top: 1.25rem;
  color: var(--colorPrimary);
  font-size: .88rem;
  font-weight: 700;
}

.landing-contact {
  padding-bottom: 2rem;
}

.contact-card {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.landing-foot {
  padding: 1.5rem 0;
  background: var(--colorDark);
  color: var(--colorLight);
}

.landing-foot a {
  color: var(--colorLight);
}

.club-app {
  display: flex;
  min-height: 100vh;
  background: var(--colorSoft);
}

.club-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  display: flex;
  width: var(--sideWidth);
  flex-direction: column;
  overflow: visible;
  background: var(--colorPrimary);
  color: var(--colorLight);
  box-shadow: 4px 0 18px rgb(17 17 17 / 10%);
  transition: width 180ms ease, transform 180ms ease;
}

.club-side-head {
  display: flex;
  min-height: var(--headHeight);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid rgb(255 255 255 / 18%);
}

.club-brand {
  color: var(--colorLight);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.club-toggle {
  flex: 0 0 auto;
  padding: .5rem;
  border: 0;
  border-radius: .5rem;
  background: transparent;
  color: currentColor;
}

.club-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
}

.club-toggle:hover {
  background: rgb(255 255 255 / 12%);
}

.club-toggle:focus-visible,
.club-menu button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.club-menu {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem .75rem;
}

.club-menu-link,
.club-menu-head {
  display: block;
  width: 100%;
  padding: .75rem .875rem;
  border: 0;
  border-radius: .65rem;
  background: transparent;
  color: var(--colorLight);
  text-align: left;
  white-space: nowrap;
}

.club-menu-head {
  position: relative;
  padding-right: 2.25rem;
  font-weight: 600;
}

.club-menu-head::after {
  position: absolute;
  top: 50%;
  right: .9rem;
  width: .55rem;
  height: .55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-65%) rotate(45deg);
  transition: transform 180ms ease;
}

.club-menu-head[aria-expanded="true"]::after {
  transform: translateY(-30%) rotate(225deg);
}

.club-menu-link:hover,
.club-menu-head:hover {
  background: rgb(255 255 255 / 12%);
}

.club-menu-link.is-active {
  background: var(--colorLight);
  color: var(--colorPrimary);
  font-weight: 600;
}

.club-submenu {
  padding: .25rem 0 .5rem .75rem;
}

.club-sub-link {
  padding-block: .6rem;
  font-size: .94rem;
}

.club-side-foot {
  padding: 1rem;
  border-top: 1px solid rgb(255 255 255 / 18%);
}

.club-side-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  margin-bottom: .75rem;
}

.club-support,
.club-settings {
  min-width: 0;
}

.club-side-action {
  display: grid;
  width: 100%;
  min-height: 38px;
  place-items: center;
  padding: .4rem;
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: .55rem;
  background: transparent;
  color: var(--colorLight);
}

.club-side-action:hover,
.club-side-action[aria-expanded="true"] {
  border-color: var(--colorLight);
  background: rgb(255 255 255 / 12%);
}

.club-side-action[aria-disabled="true"] {
  opacity: .72;
}

.club-side-action:focus-visible {
  outline: 3px solid var(--colorLight);
  outline-offset: 2px;
}

.club-side-action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.club-support-menu {
  min-width: 13rem;
  padding: .4rem;
  border: 1px solid var(--colorLine);
  border-radius: .7rem;
  box-shadow: 0 12px 32px rgb(17 17 17 / 18%);
}

.club-settings-menu {
  min-width: 14rem;
  max-width: min(18rem, calc(100vw - 1.5rem));
  padding: .4rem;
  border: 1px solid var(--colorLine);
  border-radius: .7rem;
  box-shadow: 0 12px 32px rgb(17 17 17 / 18%);
}

.club-settings-notice {
  padding: .55rem .65rem;
  color: var(--colorDark);
}

.club-settings-notice strong,
.club-settings-notice span {
  display: block;
}

.club-settings-notice span {
  margin-top: .15rem;
  color: var(--colorPrimary);
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.club-settings-notice p {
  margin: .55rem 0 0;
  color: #5f5960;
  font-size: .82rem;
  line-height: 1.4;
}

.club-support-menu .dropdown-item {
  border-radius: .45rem;
}

.club-support-documentation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.club-support-documentation small {
  color: #6c757d;
  font-size: .7rem;
}

.club-support-feedback {
  margin: 0 0 .75rem;
  color: #ffe8ee;
  font-size: .76rem;
  line-height: 1.35;
}

.club-main {
  display: flex;
  min-width: 0;
  width: calc(100% - var(--sideWidth));
  min-height: 100vh;
  margin-left: var(--sideWidth);
  flex-direction: column;
  transition: width 180ms ease, margin-left 180ms ease;
}

.club-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  min-height: var(--headHeight);
  align-items: center;
  gap: 1rem;
  padding: .65rem 1.5rem;
  border-bottom: 1px solid var(--colorLine);
  background: var(--colorLight);
  box-shadow: 0 2px 12px rgb(17 17 17 / 5%);
}

.club-details {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: baseline;
  gap: .75rem;
}

.club-details span {
  color: #6c757d;
  font-size: .875rem;
}

.club-content {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  padding: 2rem;
}

#pageRoot,
.card,
.table-responsive {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.club-shade,
.mobile-toggle {
  display: none;
}

.club-app.is-small .club-sidebar {
  width: var(--sideSmall);
}

.club-app.is-small .club-main {
  width: calc(100% - var(--sideSmall));
  margin-left: var(--sideSmall);
}

.club-app.is-small .club-side-head {
  justify-content: center;
  padding-inline: .5rem;
}

.club-app.is-small .club-brand,
.club-app.is-small .club-menu,
.club-app.is-small .side-logout {
  display: none;
}

.club-app.is-small .club-side-foot {
  padding: .4rem;
}

.club-app.is-small .club-side-actions {
  gap: .25rem;
  margin-bottom: 0;
}

.club-app.is-small .club-side-action {
  min-height: 28px;
  padding: .2rem;
}

.club-app.is-small .club-side-action svg {
  width: 17px;
  height: 17px;
}

.club-app.is-small .club-support-feedback:not([hidden]) {
  position: fixed;
  bottom: .75rem;
  left: calc(var(--sideSmall) + .75rem);
  width: min(22rem, calc(100vw - var(--sideSmall) - 1.5rem));
  margin: 0;
  padding: .65rem .75rem;
  border: 1px solid var(--colorLine);
  border-radius: .6rem;
  background: var(--colorLight);
  color: var(--colorDark);
  box-shadow: 0 8px 24px rgb(17 17 17 / 14%);
}

.module-label {
  color: var(--colorPrimary);
  font-weight: 700;
  letter-spacing: .08em;
}

.module-card {
  min-height: 180px;
  border: 1px solid var(--colorLine);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgb(17 17 17 / 6%);
}

.dashboard-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dashboard-kicker {
  margin-bottom: .35rem;
  color: var(--colorPrimary);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

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

.dashboard-panel {
  min-width: 0;
  overflow: hidden;
  background: var(--colorLight);
  box-shadow: 0 8px 24px rgb(17 17 17 / 6%);
}

.dashboard-panel-wide {
  grid-column: 1 / -1;
}

.dashboard-panel .card-body {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(1rem, 2.2vw, 1.5rem);
}

.dashboard-panel-head,
.dashboard-economic-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-loading {
  min-height: 150px;
  justify-content: center;
}

.dashboard-list {
  display: grid;
  gap: .65rem;
}

.dashboard-list-item {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem;
  border: 1px solid var(--colorLine);
  border-radius: .85rem;
  background: var(--colorLight);
}

.dashboard-item-main {
  min-width: 0;
}

.dashboard-item-main h3 {
  overflow: hidden;
  margin-bottom: .35rem;
  font-size: 1rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-meta,
.dashboard-item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .65rem;
}

.dashboard-meta {
  color: #6c757d;
  font-size: .78rem;
}

.dashboard-item-actions {
  flex: 0 0 auto;
  justify-content: end;
}

.dashboard-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  align-content: center;
  padding: 1.5rem;
  border: 1px dashed var(--colorLine);
  border-radius: .85rem;
  background: var(--colorSoft);
  text-align: center;
}

.dashboard-empty p {
  max-width: 34rem;
  margin: .15rem auto 1rem;
  color: #6c757d;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}

.dashboard-kpi {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--colorLine);
  border-radius: .85rem;
  background: var(--colorSoft);
}

.dashboard-kpi span,
.dashboard-kpi strong {
  display: block;
}

.dashboard-kpi span {
  margin-bottom: .35rem;
  color: #6c757d;
  font-size: .8rem;
}

.dashboard-kpi strong {
  overflow: hidden;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-chart {
  display: grid;
  gap: .85rem;
  padding: 1rem;
  border: 1px solid var(--colorLine);
  border-radius: .85rem;
}

.dashboard-chart-row {
  display: grid;
  grid-template-columns: 5rem minmax(6rem, 1fr) minmax(7rem, auto);
  align-items: center;
  gap: .75rem;
  font-size: .84rem;
}

.dashboard-chart-row strong {
  text-align: right;
}

.dashboard-chart-track {
  height: .65rem;
  overflow: hidden;
  border-radius: 999px;
  background: #eadfe2;
}

.dashboard-chart-bar {
  display: block;
  width: var(--dashboard-bar);
  height: 100%;
  border-radius: inherit;
  background: var(--colorPrimary);
}

.dashboard-chart-expense {
  background: #b02a37;
}

.dashboard-chart-result {
  background: var(--colorDark);
}

.text-income {
  color: #146c43;
}

.text-expense {
  color: #b02a37;
}

.account-row,
.account-result {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--colorLine);
}

.account-total,
.account-result {
  margin-top: .5rem;
  border-top: 2px solid var(--colorPrimary);
  border-bottom: 0;
  font-weight: 700;
}

.budget-amount {
  min-width: 10rem;
}

.form-field-picker {
  width: min(100%, 360px);
}

.public-form-page {
  min-height: 100vh;
  background: linear-gradient(145deg, var(--colorSoft), #ffffff);
}

.public-form-container {
  max-width: 820px;
}

.public-form-brand {
  color: var(--colorPrimary);
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
}

@media (min-width: 768px) {
  .public-submit {
    width: auto !important;
    min-width: 190px;
  }
}

@media print {
  .club-sidebar,
  .club-header,
  .club-menu,
  .nav,
  .no-print {
    display: none !important;
  }

  .club-main {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .club-content {
    padding: 0;
  }
}

@media (max-width: 991.98px) {
  .club-sidebar,
  .club-app.is-small .club-sidebar {
    width: var(--sideWidth);
    transform: translateX(-100%);
  }

  .club-sidebar.is-open {
    transform: translateX(0);
  }

  .club-app.is-small .club-brand,
  .club-app.is-small .club-menu,
  .club-app.is-small .side-logout {
    display: block;
  }

  .club-app.is-small .club-side-foot {
    padding: 1rem;
  }

  .club-app.is-small .club-side-actions {
    gap: .5rem;
    margin-bottom: .75rem;
  }

  .club-app.is-small .club-side-action {
    min-height: 38px;
    padding: .4rem;
  }

  .club-app.is-small .club-side-action svg {
    width: 20px;
    height: 20px;
  }

  .club-app.is-small .club-support-feedback:not([hidden]) {
    position: static;
    width: auto;
    margin: 0 0 .75rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #ffe8ee;
    box-shadow: none;
  }

  .club-app.is-small .club-side-head {
    justify-content: space-between;
    padding-inline: 1rem;
  }

  .club-main,
  .club-app.is-small .club-main {
    width: 100%;
    margin-left: 0;
  }

  .club-shade {
    position: fixed;
    inset: 0;
    z-index: 1030;
    display: block;
    visibility: hidden;
    border: 0;
    background: rgb(0 0 0 / 38%);
    opacity: 0;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .club-shade.is-open {
    visibility: visible;
    opacity: 1;
  }

  .mobile-toggle {
    display: block;
    color: var(--colorPrimary);
  }

  .club-header {
    padding-inline: 1rem;
  }

  .club-content {
    padding: 1.25rem;
  }
}

@media (max-width: 767.98px) {
  .dashboard-grid,
  .dashboard-kpis {
    grid-template-columns: 1fr;
  }

  .dashboard-panel-wide {
    grid-column: auto;
  }
}

@media (max-width: 575.98px) {
  .club-header {
    gap: .75rem;
  }

  .club-details {
    min-width: 0;
  }

  .club-details strong,
  .club-details span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .club-details span,
  #headLogout {
    display: none;
  }

  .club-content {
    padding: 1rem;
  }

  .dashboard-list-item {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-item-actions {
    justify-content: stretch;
  }

  .dashboard-item-actions .btn {
    flex: 1 1 auto;
  }

  .dashboard-chart-row {
    grid-template-columns: 1fr auto;
  }

  .dashboard-chart-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .club-sidebar,
  .club-main,
  .club-shade,
  .club-menu-head::after {
    transition: none;
  }
}
