/* V1.4 · espacio, jerarquía y controles consistentes. */
:root {
  --green: #124b38;
  --green2: #206a4e;
  --gold: #c5a66a;
  --bg: #f4f6f4;
  --text: #1f3029;
  --muted: #728078;
  --line: #e2e8e3;
  --shadow: 0 2px 5px #183e2610;
}
body {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button,
a,
input,
select,
textarea {
  transition:
    background 0.12s,
    border-color 0.12s,
    box-shadow 0.12s;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #bb9c62;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
a.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn {
  font-size: 12px;
  font-weight: 650;
  min-height: 37px;
  padding: 9px 13px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.btn.small {
  padding: 7px 10px;
  min-height: 32px;
}
.btn.primary:hover {
  background: #206047;
}
.text-button {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  color: var(--green);
  font: inherit;
  cursor: pointer;
}
.text-button:disabled {
  cursor: default;
}
.input,
select,
textarea {
  min-height: 38px;
  font-size: 13px;
  border-color: #d6dfd8;
}
label {
  font-size: 12px;
  font-weight: 600;
  color: #52625a;
}
label > input,
label > select,
label > textarea {
  display: block;
  margin-top: 6px;
  width: 100%;
}
input[type="checkbox"] {
  width: auto;
  display: inline;
  min-height: 0;
}
.muted {
  font-size: 12px;
  line-height: 1.5;
}
h2 {
  font-size: 25px;
  letter-spacing: -0.6px;
}
h3 {
  font-size: 15px;
  letter-spacing: -0.15px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.6px;
  color: var(--muted);
  display: block;
}
.app {
  grid-template-columns: 218px minmax(0, 1fr);
}
.sidebar {
  background: #103c2e;
  padding: 23px 13px 14px;
}
.sidebar .brand {
  font-size: 18px;
  font-weight: 650;
  gap: 9px;
  padding: 0 7px 25px;
  min-height: 55px;
}
.sidebar .brand img {
  width: 36px;
  height: 36px;
}
.sidebar nav {
  gap: 3px;
  scrollbar-gutter: auto;
  padding-right: 0;
}
.nav-group {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #9cb8a9;
  padding: 14px 12px 8px;
}
.sidebar nav button {
  font-size: 12.5px;
  line-height: 1.2;
  min-height: 35px;
  padding: 9px 11px;
  font-weight: 500;
  border-radius: 7px;
  color: #d6e1d9;
  opacity: 1;
}
.sidebar nav button.active {
  background: #2c5944;
  color: #fff;
  box-shadow: inset 2px 0 0 #d2b879;
}
.sidebar nav button:hover {
  background: #234e3b;
}
.nav-icon {
  width: 18px;
  text-align: center;
  font-size: 16px;
  color: #b7cdbc;
}
.sidebar nav button.active .nav-icon {
  color: #e4cf99;
}
.side-footer {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 14px 7px 0;
  font-size: 10px;
  color: #a7b9ad;
  margin-top: 14px;
}
.side-footer small {
  margin-left: auto;
}
.nav-badge {
  margin-left: auto;
  min-width: 19px;
  height: 19px;
  border-radius: 5px;
  background: #e0c892;
  color: #173e2a;
  display: grid;
  place-items: center;
  font-size: 10px;
}
.live-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: #7bac87;
}
.topbar {
  height: 88px;
  padding: 15px 30px;
  gap: 20px;
  z-index: 10;
}
.topbar h1 {
  font-size: 19px;
  letter-spacing: -0.3px;
  font-weight: 650;
}
.topbar .muted {
  font-size: 11px;
  margin-top: 5px;
  max-width: 360px;
}
.top-actions {
  gap: 15px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}
.top-title {
  flex-shrink: 0;
}
.global-search {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 8px;
  width: clamp(240px, 29vw, 480px);
  padding: 10px 12px;
  border-radius: 8px;
  background: #f5f7f5;
  min-width: 200px;
}
.global-search input {
  width: 100%;
  font-size: 12px;
  min-width: 0;
}
.global-search kbd {
  font-family: inherit;
  white-space: nowrap;
  border: 1px solid #dce3dd;
  border-radius: 4px;
  font-size: 9px;
  padding: 2px 4px;
  color: #829088;
  background: #fff;
}
#today {
  display: none;
}
.user-pill {
  font-size: 11px;
}
.user-pill span {
  width: 30px;
  height: 30px;
  font-size: 11px;
  background: #e8ede6;
  color: var(--green);
}
.content-pad {
  padding: 27px 30px 40px;
  max-width: 1900px;
  margin: auto;
}
.card,
.kpi {
  border-radius: 11px;
  box-shadow: var(--shadow);
}
.card {
  padding: 21px;
}
.kpi {
  padding: 20px;
  min-height: 128px;
}
.kpi .label {
  font-size: 12px;
  color: #6b796f;
  font-weight: 500;
}
.kpi .value {
  font-size: 28px;
  letter-spacing: -1px;
  color: #234835;
  font-weight: 650;
  white-space: nowrap;
}
.kpi .value small {
  font-size: 17px;
  padding-left: 2px;
}
.kpi .sub {
  font-size: 11px;
  margin-top: 10px;
}
.kpi.accent {
  background: #164c37;
  border-color: #164c37;
}
.kpi.accent .value {
  color: #fff;
}
.kpi.accent .label,
.kpi.accent .sub {
  color: #cbddcf;
}
.dashboard-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 15px;
}
.dashboard-welcome h2 {
  margin: 9px 0 6px;
  font-size: 29px;
  font-weight: 600;
}
.dashboard-welcome p,
.dues-intro p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.quick {
  gap: 9px;
}
.dashboard-kpis,
.dues-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr);
  gap: 17px;
  margin-top: 20px;
}
.monthly-chart .card-head {
  align-items: start;
}
.monthly-chart h3 {
  margin: 8px 0;
}
.monthly-chart .tag {
  font-size: 10px;
  white-space: nowrap;
}
.bar-chart {
  display: flex;
  gap: 14px;
  height: 205px;
  padding: 6px 5px 10px;
  align-items: flex-end;
}
.bar-column {
  flex: 1;
  height: 100%;
  position: relative;
  text-align: center;
  min-width: 0;
  outline-offset: 2px;
}
.bar-space {
  height: calc(100% - 27px);
  display: flex;
  align-items: end;
}
.bar {
  display: block;
  width: 100%;
  max-width: 38px;
  margin: 0 auto;
  background: #d2e2d7;
  border-radius: 4px 4px 0 0;
  min-height: 3px;
}
.bar.current {
  background: #2d694c;
}
.bar-column:hover .bar,
.bar-column:focus .bar {
  background: #9ebba6;
}
.bar-column small {
  font-size: 10px;
  display: block;
  padding-top: 10px;
  color: #77877a;
}
.bar-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  background: #143c2b;
  color: white;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 11px;
  white-space: nowrap;
  z-index: 2;
}
.bar-column:hover .bar-tooltip,
.bar-column:focus .bar-tooltip {
  display: block;
}
.chart-foot {
  font-size: 10px;
}
.attention-card {
  padding-bottom: 8px;
}
.attention-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #edf1ed;
  text-align: left;
  background: none;
  cursor: pointer;
  color: var(--text);
}
.attention-item:last-of-type {
  border-bottom: 0;
}
.attention-item > span:nth-child(2) {
  flex: 1;
}
.attention-item b {
  font-size: 12px;
  display: block;
  font-weight: 600;
}
.attention-item small {
  font-size: 10px;
  color: #7b877e;
  display: block;
  margin-top: 5px;
  line-height: 1.5;
}
.attention-symbol {
  width: 31px;
  height: 31px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #eef3ec;
  display: grid;
  place-items: center;
  color: #647b67;
  font-size: 15px;
}
.attention-symbol.amber {
  background: #f7f0df;
  color: #92713a;
}
.attention-item:hover b {
  color: #338157;
}
.bottom-grid {
  grid-template-columns: 1fr 1.05fr 1fr;
  margin-top: 19px;
  gap: 17px;
}
.bottom-grid h3 {
  margin: 0 0 12px;
}
.bottom-grid .eyebrow {
  margin-bottom: 10px;
}
.metric-row {
  font-size: 12px;
  padding: 10px 0;
  gap: 10px;
}
.metric-row b {
  font-weight: 600;
}
.top-member {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 24px 0 12px;
}
.big-number {
  font-size: 27px;
  font-weight: 600;
}
.table-tools {
  margin: 8px 0 16px;
}
.search {
  min-width: 230px;
}
.table-wrap {
  border-radius: 0 0 10px 10px;
}
.data-table th {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.7px;
  padding: 14px 16px;
  background: #f7f9f6;
  white-space: nowrap;
}
.data-table td {
  font-size: 12px;
  padding: 15px 16px;
  line-height: 1.5;
}
.data-table tbody tr:hover {
  background: #f8faf7;
}
.data-table td:first-child {
  font-weight: 500;
}
.table-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  padding: 10px 15px;
  background: #fff;
  margin-top: 12px;
}
.table-meta .table-search {
  font-size: 11px;
  min-height: 30px;
  padding: 6px 9px;
  width: 250px;
}
.table-count {
  font-size: 10px;
  margin-right: auto;
}
.table-pager {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 10px;
}
.table-pager[hidden] {
  display: none;
}
.table-pager button {
  font-size: 21px;
  min-width: 25px;
  text-align: center;
}
.data-table [hidden] {
  display: none !important;
}
.row-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 185px;
}
.tag {
  font-size: 10px;
  font-weight: 550;
  padding: 5px 9px;
  gap: 6px;
}
.tag.warn {
  background: #faf0d9;
  color: #896323;
}
.cell-sub {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: var(--muted);
}
.member-name {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.member-name small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 400;
}
.member-name b {
  color: var(--text);
  font-weight: 600;
}
.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eef1e8;
  color: #6c7c5e;
  font-size: 10px;
  font-weight: 600;
}
.modal-open {
  overflow: hidden;
}
.modal {
  z-index: 30;
  background: #0c20176b;
  backdrop-filter: blur(2px);
}
.modal-card {
  padding: 28px 32px;
  max-height: 92dvh;
  border-radius: 13px;
}
.modal h2 {
  font-size: 23px;
  padding-right: 25px;
}
.modal h3 {
  font-size: 15px;
}
.modal-x {
  font-size: 24px;
  color: #687a6e;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.form-section {
  border-bottom: 1px solid var(--line);
  color: #274d35;
  padding: 14px 0 9px;
  font-size: 13px;
  font-weight: 650;
}
.field-help {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.member-fee-panel {
  margin: 22px 0;
  padding: 19px;
  background: #f1f6ef;
  border-radius: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.member-fee-panel small {
  color: #627963;
}
.member-fee-panel h3 {
  margin: 6px 0;
}
.dues-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0 25px;
  gap: 15px;
}
.dues-intro h2 {
  font-size: 28px;
  margin: 8px 0;
}
.dues-kpis {
  margin-bottom: 25px;
}
.progress-track {
  height: 5px;
  background: #edf2e9;
  border-radius: 4px;
  margin-top: 15px;
  overflow: hidden;
}
.progress-track span {
  display: block;
  background: #70a077;
  height: 100%;
}
.inline-field {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}
.inline-field > input {
  margin: 0;
  width: auto;
}
.capitalize {
  text-transform: capitalize;
}
.payment-amount {
  font-size: 38px;
  letter-spacing: -1px;
  font-weight: 650;
  color: var(--green);
  padding: 18px 0 26px;
}
.payment-amount small {
  font-size: 14px;
  font-weight: 400;
}
.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(600px, 80vw);
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 50px #0c2e2220;
  overflow: hidden;
  z-index: 50;
}
.search-help {
  padding: 22px;
  font-size: 13px;
}
.search-help p,
.search-help small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.search-caption {
  padding: 13px 17px;
  font-size: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
#searchOptions {
  max-height: min(420px, 65vh);
  overflow-y: auto;
}
.search-option {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  border-bottom: 1px solid #f1f3ef;
  background: white;
  text-align: left;
  padding: 12px 17px;
  width: 100%;
  color: var(--text);
  cursor: pointer;
}
.search-option:hover,
.search-option.selected {
  background: #f0f6ec;
}
.search-option > span:nth-child(2) {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.search-option b {
  font-size: 13px;
  overflow-wrap: anywhere;
  font-weight: 600;
}
.search-option small {
  font-size: 9px;
  color: #668064;
}
.search-option span span {
  font-size: 10px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result-icon {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  background: #f0f4eb;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.search-all {
  display: flex;
  width: 100%;
  gap: 7px;
  align-items: center;
  justify-content: center;
  background: #fafbf8;
  border: 0;
  padding: 13px;
  color: var(--green);
  font-size: 12px;
  cursor: pointer;
}
mark {
  background: #eee3b8;
  color: inherit;
  border-radius: 2px;
}
.search-page-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-page-head h2 {
  font-size: 23px;
}
.search-filters {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin: 15px 0 23px;
  gap: 6px;
}
.search-filters .tab {
  font-size: 12px;
}
.search-filters .tab span {
  margin-left: 5px;
  font-size: 10px;
  color: var(--muted);
}
.search-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.result-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  min-width: 0;
}
.result-card:hover {
  border-color: #98b39b;
  box-shadow: var(--shadow);
}
.result-card small {
  font-size: 10px;
  color: #74846c;
}
.result-card h3 {
  font-size: 16px;
  margin: 12px 0 8px;
  overflow-wrap: anywhere;
}
.result-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.result-card > span {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  margin-top: 20px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 12px;
  margin-top: 23px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.detail-grid > div {
  background: #f8faf6;
  border: 1px solid #eef1e9;
  border-radius: 8px;
  padding: 13px;
  overflow-wrap: anywhere;
}
.detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 5px;
}
.detail-grid b {
  font-weight: 550;
  font-size: 13px;
  white-space: pre-wrap;
}
.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  display: grid;
  place-items: center;
  position: relative;
  color: #71806f;
  cursor: pointer;
}
.attention-wrap {
  position: relative;
}
.notification-count {
  position: absolute;
  top: -5px;
  right: -6px;
  background: #b08a47;
  color: white;
  font-size: 9px;
  border-radius: 10px;
  min-width: 16px;
  height: 16px;
  padding: 1px 4px;
}
.attention-panel {
  position: absolute;
  right: 0;
  top: 45px;
  background: white;
  box-shadow: 0 18px 50px #0c2e2230;
  border: 1px solid var(--line);
  width: 360px;
  max-width: 90vw;
  border-radius: 12px;
  padding: 20px;
  z-index: 40;
}
.attention-panel h3 {
  margin: 0 0 10px;
}
.backup-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 20px;
}
.backup-card h3 {
  margin: 0;
}
.backup-card p {
  margin-bottom: 0;
}
.loading-state {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  min-height: 220px;
  color: var(--muted);
  font-size: 13px;
}
.spinner {
  height: 18px;
  width: 18px;
  border: 2px solid #d8e3d5;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.error-state {
  text-align: center;
  padding: 40px;
}
.toast {
  font-size: 13px;
  max-width: min(600px, 90vw);
  line-height: 1.5;
  z-index: 100;
}
.mobile-menu,
.nav-scrim {
  display: none;
}
.login-card {
  border: 1px solid var(--line);
  box-shadow: 0 12px 50px #0e342518;
}
.tabs {
  flex-wrap: wrap;
}
.tab {
  font-size: 12px;
}
.form-grid label {
  font-size: 11px;
}
.order-line {
  grid-template-columns: minmax(170px, 1.8fr) 90px 110px 100px minmax(
      130px,
      1fr
    ) 34px;
}
.form-grid .span3 {
  grid-column: 1/-1;
}
@media (max-height: 820px) and (min-width: 761px) {
  .sidebar {
    padding-top: 12px;
  }
  .sidebar .brand {
    padding-bottom: 12px;
  }
  .nav-group {
    padding-top: 10px;
    padding-bottom: 6px;
  }
  .sidebar nav button {
    min-height: 30px;
    padding: 7px 10px;
    font-size: 12px;
  }
  .side-footer {
    padding-top: 10px;
    margin-top: 8px;
  }
  .topbar {
    height: 80px;
  }
}
@media (max-width: 1300px) {
  .topbar {
    padding: 15px 22px;
  }
  .content-pad {
    padding: 24px 22px;
  }
  .topbar .muted {
    max-width: 230px;
  }
  .global-search {
    width: 270px;
  }
  .user-pill b {
    display: none;
  }
  .app {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .dashboard-kpis,
  .dues-kpis {
    gap: 11px;
  }
  .kpi {
    padding: 17px;
  }
  .kpi .value {
    font-size: 25px;
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  }
  .bar-chart {
    gap: 9px;
  }
  .search-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 1050px) {
  .topbar .muted {
    display: none;
  }
  .global-search {
    width: 300px;
  }
  .dashboard-welcome {
    align-items: flex-start;
  }
  .dashboard-welcome h2 {
    font-size: 25px;
  }
  .quick {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .bottom-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-kpis,
  .dues-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dues-intro > .tag {
    display: none;
  }
  .order-line {
    grid-template-columns: minmax(130px, 1fr) 85px 100px 95px;
  }
  .form-grid .span3 {
    grid-column: 1/-1;
  }
}
@media (max-width: 760px) {
  .app {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 215px;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .nav-open .sidebar {
    transform: translateX(0);
  }
  .nav-open .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: #0a221870;
    border: 0;
  }
  .mobile-menu {
    display: inline;
    background: none;
    border: 0;
    color: var(--green);
    padding: 0 10px 0 0;
    font-size: 19px;
    cursor: pointer;
  }
  .top-title {
    display: flex;
    align-items: center;
  }
  .topbar {
    height: auto;
    min-height: 105px;
    padding: 13px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .top-actions {
    display: contents;
  }
  .topbar .top-title {
    order: 1;
  }
  .global-search {
    order: 4;
    width: 100%;
    min-width: 0;
  }
  .attention-wrap {
    order: 2;
    margin-left: auto;
  }
  .user-menu-wrap {
    order: 3;
  }
  .user-menu {
    right: 0;
    z-index: 65;
  }
  .user-pill .chev {
    display: none;
  }
  .search-results {
    width: 100%;
    max-width: none;
  }
  .topbar h1 {
    font-size: 17px;
  }
  .content-pad {
    padding: 22px 16px;
  }
  .dashboard-welcome {
    display: block;
  }
  .dashboard-welcome .quick {
    justify-content: flex-start;
    margin-top: 18px;
  }
  .dashboard-welcome h2 {
    font-size: 25px;
  }
  .bottom-grid,
  .search-grid,
  .finance-grid,
  .grid2,
  .grid3 {
    grid-template-columns: 1fr;
  }
  .dashboard-kpis .kpi .value,
  .dues-kpis .kpi .value {
    font-size: 23px;
  }
  .kpi {
    padding: 15px;
    min-height: 115px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .monthly-chart .card-head {
    flex-wrap: wrap;
  }
  .card {
    padding: 17px;
  }
  .bar-chart {
    gap: 7px;
    height: 180px;
  }
  .data-table td,
  .data-table th {
    padding: 12px;
  }
  .table-tools > .filters {
    width: 100%;
  }
  .search {
    min-width: 0;
    width: 100%;
  }
  .table-meta .table-search {
    width: 65%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .span2,
  .form-grid .span3 {
    grid-column: 1/-1;
  }
  .modal {
    padding: 12px;
  }
  .modal-card {
    width: 100%;
    max-height: 94dvh;
    padding: 23px 20px;
  }
  .modal-actions {
    flex-wrap: wrap;
  }
  .member-fee-panel {
    display: block;
  }
  .member-fee-panel .btn {
    margin-top: 15px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .attention-panel {
    position: fixed;
    top: 63px;
    right: 15px;
    width: 350px;
  }
  .backup-card {
    align-items: start;
    flex-direction: column;
  }
  .search-page-head {
    align-items: start;
    flex-direction: column;
    gap: 0;
  }
  .dues-intro h2 {
    font-size: 25px;
  }
  .order-line,
  .pay-row {
    grid-template-columns: 1fr 1fr;
  }
  .line-product {
    grid-column: 1/-1;
  }
  .line-total {
    grid-column: auto;
  }
  .order-product-picker {
    display: flex;
    flex-wrap: wrap;
  }
  .qty-field {
    width: 100px;
  }
  .form-grid label {
    font-size: 12px;
  }
  .table-wrap {
    max-width: 100%;
  }
  .login-card {
    width: calc(100vw - 32px);
    max-width: 420px;
    padding: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
