/* =================================
   MEMBERS PAGE
================================= */

.members-page {
  display: grid;
  grid-template-columns: 250px 430px minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  min-width: 0;
}

.members-page__list {
  border-right: 1px solid #ececec;
  padding: 20px;
  overflow-y: auto;
  min-width: 0;
}

.members-page__profile {
  border-right: 1px solid #ececec;
  padding: 24px;
  overflow-y: auto;
  min-width: 0;
}

.members-page__history {
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
  background: #fafafa;
}

.members-page__header {
  margin-bottom: 16px;
}

.members-page__header input {
  width: 100%;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  box-sizing: border-box;
}

#memberProfile,
#memberHistoryPanel {
  min-height: 100%;
  box-sizing: border-box;
}

/* =================================
   MEMBERS LIST
================================= */

.member-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.15s ease;
}

.member-row:hover {
  background: #f6f8ff;
}

.member-row--active {
  background: #eef2ff;
}

.member-row__info {
  min-width: 0;
  flex: 1;
}

.member-row__name {
  font-weight: 600;
  font-size: 14px;
}

.member-row__meta {
  font-size: 13px;
  color: #777;
  margin-top: 4px;
}

.member-row__reserve {
  flex-shrink: 0;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #dcdcdc;
  background: #f8f8f8;
  cursor: pointer;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.member-row__reserve:hover {
  background: #f1f3f7;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* =================================
   PROFILE SUMMARY CARDS
================================= */

.member-summary-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  min-width: 0;
  box-sizing: border-box;
}

.member-summary-card__label {
  font-size: 11px;
  color: #888;
  margin-bottom: 6px;
}

.member-summary-card__value {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.member-top-grid {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  margin-bottom: 18px;
  align-items: start;
}

.member-summary-card--coords {
  grid-column: 1 / span 2;
  padding: 18px 20px;
}

.member-summary-card--credits {
  grid-column: 1;
  padding: 12px 10px;
  min-height: 105px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.member-summary-card--credits .member-summary-card__label {
  margin-bottom: 8px;
}

.member-summary-card--credits .member-summary-card__value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.member-summary-card--validity {
  grid-column: 2;
  min-height: 105px;
  margin-bottom: 0;
}

.member-summary-card--validity .member-validity__current {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 0px;
}

.member-summary-card--validity .member-validity__edit {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.member-summary-card--validity .member-validity__edit-label {
  font-size: 13px;
  color: #777;
}

.member-summary-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.member-coords {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}

.member-coord-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.member-coord-row--full {
  grid-column: 1 / -1;
}

.member-coord-label {
  font-size: 12px;
  font-weight: 500;
  color: #8a8a8a;
  line-height: 1.2;
}

.member-coord-value {
  font-size: 15px;
  font-weight: 600;
  color: #1f1f1f;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.member-edit-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  color: #7a7a7a;
  cursor: pointer;
}

.member-edit-btn:hover {
  color: #111;
}

.member-coord-value {
  font-size: 14px;
  font-weight: 600;
  color: #1f1f1f;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.member-coord-row:nth-child(3) .member-coord-value {
  max-width: 280px;
}

/* =================================
   VALIDITY
================================= */

.member-summary-card--validity {
  margin-bottom: 0px;
}

.member-validity__current {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.member-validity__edit {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.member-validity__edit-label {
  font-size: 13px;
  color: #777;
}

.member-validity__edit input {
  max-width: 130px;
}

.expiry-warning {
  color: #f59e0b;
}

.expiry-expired {
  color: #dc2626;
}

.credits-warning {
  color: #f59e0b;
}

.credits-empty {
  color: #dc2626;
}

/* =================================
   QUICK CREDIT BUTTONS
================================= */

.member-actions__buttons {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  margin-top: 8px;
}

.member-credit-btn {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  background: #f3f3f3;
  color: #2f2f2f;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.member-credit-btn:hover {
  background: #ebebeb;
  border-color: #cfcfcf;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.member-credit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.member-credit-btn::before {
  content: none;
}

.btn-icon {
  font-size: 16px;
  line-height: 1;
  opacity: 0.95;
}

/* =================================
   MANUAL ADJUSTMENT CARD
================================= */

.member-manual-credits {
  margin-top: 24px;
}

.member-manual-credits--card {
  max-width: 440px;
  padding: 20px;
  border: 1px solid #e7e3dd;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: none;
}

.member-manual-credits--card h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: #1f1f1f;
}

.member-manual-credits__label {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #5f5a54;
}

.member-manual-credits__row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.credits-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.credits-stepper button {
  width: 42px;
  height: 42px;
  border: 1px solid #dddddd;
  border-radius: 12px;
  background: #f8f8f8;
  color: #2b2b2b;
  font-size: 22px;
  font-weight: 600;
}

.credits-stepper button:hover {
  background: #e2ddd6;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

#creditsAdjustQty {
  width: 86px;
  height: 42px;
  border: 1px solid #ddd7cf;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #1f1f1f;
}

#manualCreditsPrice,
#manualCreditsReason,
#manualCreditsNote {
  height: 42px;
  border: 1px solid #ddd7cf;
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
  font-size: 14px;
  box-sizing: border-box;
}

#manualCreditsPrice {
  width: 160px;
}

#manualCreditsReason {
  width: 170px;
}

#manualCreditsReason {
  height: 42px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  background: #f5f5f5;
  cursor: pointer;
}

#manualCreditsReason:hover {
  background: #ededed;
}

#manualCreditsNote {
  flex: 1;
  min-width: 0;
}

#manualCreditsPrice:focus,
#manualCreditsReason:focus,
#manualCreditsNote:focus,
#creditsAdjustQty:focus {
  outline: none;
  border-color: #c8bfb4;
  box-shadow: 0 0 0 3px rgba(143, 133, 123, 0.1);
}

#manualCreditsReason {
  height: 42px;
  width: 180px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  background: #f5f5f5;
  color: #333;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

#manualCreditsReason:hover {
  background: #ededed;
}

#manualCreditsReason {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

#saveManualCreditsBtn {
  height: 40px;
  min-width: 104px;
  padding: 0 16px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #f3f3f3;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

#saveManualCreditsBtn:hover {
  background: #ebebeb;
  border-color: #cfcfcf;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

#saveManualCreditsBtn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

#manualCreditsNote {
  flex: 1;
  min-width: 0;
}

.member-manual-credits__row:last-child {
  align-items: stretch;
}

/* =================================
   CRM SUMMARY
================================= */

.member-crm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.member-crm-item {
  min-width: 0;
}

.member-crm-item {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  padding: 14px 16px;
}

.member-crm-item__label {
  font-size: 12px;
  color: #777;
  margin-bottom: 4px;
}

.member-crm-item__value {
  font-size: 18px;
  font-weight: 600;
}

.member-crm-item__sub {
  margin-top: 4px;
  font-size: 12px;
  color: #777;
}

.member-crm-title {
  font-size: 13px;
  color: #777;
  margin-bottom: 10px;
}

/* =================================
   MOVEMENTS HISTORY
================================= */

.member-movement-row {
  display: grid;
  grid-template-columns: 110px 120px minmax(0, 1fr) 90px 36px;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  align-items: center;
}

.movement-plus {
  color: #16a34a;
  font-weight: 600;
}

.movement-minus {
  color: #dc2626;
  font-weight: 600;
}

.movement-note-cell {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.movement-note-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.75;
  padding: 0;
  line-height: 1;
}

.movement-note-btn:hover,
.movement-note-btn:focus {
  opacity: 1;
}

.movement-note-btn.no-note {
  opacity: 0.35;
}

.movement-note-btn.has-note {
  opacity: 1;
}

.movement-note-pop {
  position: absolute;
  right: 0;
  top: 28px;
  min-width: 180px;
  max-width: 260px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: 0.15s ease;
  z-index: 20;
}

.movement-note-cell:hover .movement-note-pop,
.movement-note-btn:focus + .movement-note-pop {
  opacity: 1;
  transform: translateY(0);
}

.member-movement-row div:last-child {
  text-align: center;
}

.movement-year-group {
  margin-bottom: 18px;
}

.movement-year-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 6px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  user-select: none;
}

.movement-year-arrow {
  display: inline-block;
  width: 14px;
}

.movement-year-count {
  color: #777;
  font-weight: 500;
  font-size: 13px;
}

.movement-year-list {
  display: flex;
  flex-direction: column;
}

.movement-month-group {
  margin: 8px 0 14px;
}

.movement-month-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  text-transform: capitalize;
  cursor: pointer;
  user-select: none;
}

.movement-month-arrow {
  display: inline-block;
  width: 14px;
}

.movement-month-list {
  display: flex;
  flex-direction: column;
}

.is-collapsed {
  display: none !important;
}

/* =================================
   MANUAL ADJUSTMENT CARD
================================= */

.member-manual-credits {
  margin-top: 24px;
}

.member-manual-credits--card {
  max-width: 440px;
  padding: 20px;
  border: 1px solid #e7e3dd;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: none;
}

.member-manual-credits--card h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: #1f1f1f;
}

.member-manual-credits__label {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #5f5a54;
}

.member-manual-credits__row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.credits-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.credits-stepper button {
  width: 42px;
  height: 42px;
  border: 1px solid #dddddd;
  border-radius: 12px;
  background: #f8f8f8;
  color: #2b2b2b;
  font-size: 22px;
  font-weight: 600;
}

.credits-stepper button:hover {
  background: #e2ddd6;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

#creditsAdjustQty {
  width: 86px;
  height: 42px;
  border: 1px solid #ddd7cf;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #1f1f1f;
}

#manualCreditsPrice,
#manualCreditsReason,
#manualCreditsNote {
  height: 42px;
  border: 1px solid #ddd7cf;
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
  font-size: 14px;
  box-sizing: border-box;
}

#manualCreditsPrice {
  width: 160px;
}

#manualCreditsReason {
  width: 170px;
}

#manualCreditsReason {
  height: 42px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  background: #f5f5f5;
  cursor: pointer;
}

#manualCreditsReason:hover {
  background: #ededed;
}

#manualCreditsNote {
  flex: 1;
  min-width: 0;
}

#manualCreditsPrice:focus,
#manualCreditsReason:focus,
#manualCreditsNote:focus,
#creditsAdjustQty:focus {
  outline: none;
  border-color: #c8bfb4;
  box-shadow: 0 0 0 3px rgba(143, 133, 123, 0.1);
}

#manualCreditsReason {
  height: 42px;
  width: 180px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  background: #f5f5f5;
  color: #333;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

#manualCreditsReason:hover {
  background: #ededed;
}

#manualCreditsReason {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

#saveManualCreditsBtn {
  height: 40px;
  min-width: 104px;
  padding: 0 16px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #f3f3f3;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

#saveManualCreditsBtn:hover {
  background: #ebebeb;
  border-color: #cfcfcf;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

#saveManualCreditsBtn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

#manualCreditsNote {
  flex: 1;
  min-width: 0;
}

.member-manual-credits__row:last-child {
  align-items: stretch;
}

/* =================================
   SESSIONS HISTORY
================================= */

.member-session-row {
  display: grid;
  grid-template-columns: 110px 60px minmax(0, 1fr) 90px;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  align-items: center;
}

.session-year-group {
  margin-top: 10px;
}

.session-year-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 6px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  user-select: none;
}

.session-year-arrow {
  display: inline-block;
  width: 14px;
}

.session-year-list {
  display: flex;
  flex-direction: column;
}

.session-month-group {
  margin: 8px 0 14px;
}

.session-month-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  text-transform: capitalize;
  cursor: pointer;
  user-select: none;
}

.session-month-arrow {
  display: inline-block;
  width: 14px;
}

.session-month-list {
  display: flex;
  flex-direction: column;
}

.session-status-reserved {
  color: #2b6cff;
  font-weight: 500;
}

.session-status-done {
  color: #777;
}

.session-status-waitlist {
  color: #f59e0b;
  font-weight: 600;
}

.member-crm-item,
.alert-section {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.member-crm-item:hover,
.alert-section:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.alerts-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.alert-section {
  background: #fff;
  border: 1px solid #f2f2f2;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.alert-section.highlight {
  background: #fffaf2;
  border: 1px solid #fed7aa;
}

.alert-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #111827;
}

.alert-list div {
  font-size: 14px;
  line-height: 1.45;
  padding: 4px 0;
}

.alert-list div:not(:last-child) {
  border-bottom: 1px solid #f8f8f8;
  margin-bottom: 6px;
  padding-bottom: 6px;
}

.member-crm-item,
.alert-section {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.member-crm-item:hover,
.alert-section:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-extend-validity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  align-self: flex-start;

  min-height: 42px;
  padding: 0 16px;

  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);

  background: #111827;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-extend-validity:hover {
  background: #1f2937;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.btn-extend-validity:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-icon {
  font-size: 16px;
  line-height: 1;
  opacity: 0.95;
}

.alert-member-link,
.alert-action-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.alert-member-link:hover,
.alert-action-link:hover {
  text-decoration: underline;
}

.alert-section--focus {
  box-shadow:
    0 0 0 2px rgba(245, 158, 11, 0.35),
    0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.participants-section {
  margin-top: 4px;
}

.participants-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.participants-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.participant-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.04);
}

.participant-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.participant-phone {
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
}

.participant-empty {
  font-size: 13px;
  color: #6b7280;
}

#participantsModal .modal__box {
  background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
  color: #f9fafb;
}

#participantsModal .modal__header h3 {
  color: #ffffff;
}

#participantsModal .participants-title {
  color: #f9fafb;
}

#participantsModal .participant-row {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#participantsModal .participant-name {
  color: #ffffff;
}

#participantsModal .participant-phone {
  color: #cbd5e1;
}

#participantsModal .participant-empty {
  color: #cbd5e1;
}

#historyFull {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-empty {
  font-size: 14px;
  color: #6b7280;
}

.history-year-group {
  margin-bottom: 18px;
}

.history-year-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 6px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  user-select: none;
  color: #111827;
}

.history-year-arrow,
.history-month-arrow {
  display: inline-block;
  width: 14px;
}

.history-year-count {
  color: #777;
  font-weight: 500;
  font-size: 13px;
}

.history-year-list {
  display: flex;
  flex-direction: column;
}

.history-month-group {
  margin: 8px 0 14px;
}

.history-month-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  text-transform: capitalize;
  cursor: pointer;
  user-select: none;
}

.history-month-list {
  display: flex;
  flex-direction: column;
}

.history-session-row {
  display: grid;
  grid-template-columns: 110px 60px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  align-items: center;
}

.history-session-date,
.history-session-hour {
  color: #6b7280;
}

.history-session-title {
  color: #111827;
  font-weight: 600;
}

.is-collapsed {
  display: none !important;
}

.member-reminder-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #555;
}

.member-reminder-text {
  font-weight: 500;
}

.member-reminder-date {
  opacity: 0.7;
}

.member-reminder-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #555;
}

.member-reminder-label {
  font-weight: 600;
  color: #222;
  margin-right: 4px;
}

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

.reminder-dot.is-on {
  background: #2ecc71;
}

.reminder-dot.is-off {
  background: #e74c3c;
}

.member-reminder-date {
  opacity: 0.7;
}

.member-top-grid {
  align-items: start;
}

.member-reminder-sent {
  font-size: 12px;
  color: #888;
}

.member-reminder-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}

.member-reminder-label {
  font-weight: 500;
  color: #555;
}

.member-reminder-text {
  font-weight: 500;
}

.member-reminder-sent {
  color: #888;
  font-size: 12px;
}

.movement-paid-status {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.7;
}

.movement-amount-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.movement-payment-summary {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 0;
}

.movement-payment-main {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.movement-payment-details {
  display: grid;
  justify-items: end;
  gap: 2px;
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}

.movement-payment-disclosure {
  flex: 0 0 100%;
  width: 100%;
  color: #64748b;
  font-size: 11px;
  text-align: right;
}

.movement-payment-disclosure summary {
  display: inline-flex;
  cursor: pointer;
  color: #315b9a;
  font-weight: 650;
  list-style: none;
}

.movement-payment-disclosure summary::-webkit-details-marker { display: none; }
.movement-payment-disclosure summary::after { content: "⌄"; margin-left: 5px; }
.movement-payment-disclosure[open] summary::after { content: "⌃"; }
.movement-payment-disclosure[open] summary { margin-bottom: 7px; }

.movement-payment-panel {
  display: grid;
  gap: 12px;
  margin-top: 6px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  text-align: left;
}

.movement-payment-panel section { display: grid; gap: 5px; }
.movement-payment-panel h6 { margin: 0; color: #334155; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.movement-payment-overview { display: flex; justify-content: space-between; gap: 12px; color: #334155; }
.movement-payment-documents { display: flex; align-items: center; gap: 8px; padding-top: 4px; border-top: 1px solid #e2e8f0; }
.movement-payment-detail-row small { display: block; margin-top: 2px; color: #64748b; overflow-wrap: anywhere; }
.movement-payment-detail-row small.is-incident { color: #b42318; font-weight: 650; }

.movement-payment-detail-row {
  display: grid;
  grid-template-columns: 72px 70px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  width: 100%;
  padding: 5px 0;
  border-top: 1px solid rgba(148, 163, 184, .18);
  text-align: left;
}

.movement-payment-detail-row time,
.movement-payment-detail-row strong { white-space: nowrap; }
.movement-payment-detail-row > span { overflow-wrap: anywhere; }
.movement-payment-details--single .movement-payment-detail-row { border-top: 0; padding: 0; }

.movement-paid-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 999px;
  font-weight: 600;
  background: #dcfce7;
  color: #166534;
}

.movement-paid-badge:has(:contains("Payé")) {
  background: #dcfce7;
  color: #166534;
}

.movement-paid-badge:has(:contains("Non")) {
  background: #fee2e2;
  color: #991b1b;
}

.movement-unpaid-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 999px;
  font-weight: 600;
  background: #fee2e2;
  color: #991b1b;
}

.movement-paid-badge,
.movement-unpaid-badge {
  border: 0;
  cursor: pointer;
}

@media (max-width: 768px) {
  .member-movement-row {
    grid-template-columns: 92px 1fr auto;
    grid-template-areas:
      "date credits note"
      "reason amount amount";
    row-gap: 4px;
    column-gap: 10px;
    align-items: center;
  }

  .movement-amount-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
  }

  .member-movement-row > div:nth-child(1) {
    grid-area: date;
  }

  .member-movement-row > div:nth-child(2) {
    grid-area: credits;
  }

  .member-movement-row > div:nth-child(3) {
    grid-area: reason;
  }

  .member-movement-row > div:nth-child(4) {
    grid-area: amount;
  }

  .member-movement-row > div:nth-child(5) {
    grid-area: note;
  }

  .movement-amount-cell {
    justify-content: flex-start;
    gap: 8px;
  }

  .movement-payment-summary,
  .movement-payment-details {
    justify-items: start;
  }

  .movement-payment-disclosure { text-align: left; }
  .movement-payment-detail-row { grid-template-columns: 68px 66px minmax(0, 1fr); }

  .movement-payment-main {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .movement-note-cell {
    justify-content: flex-end;
  }
}

.movement-edit-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}

.member-movement-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.member-movement-row--sale > .movement-plus,
.member-movement-row--sale > .movement-minus { display: none; }
.member-movement-row--refund{border-left:3px solid #f04438;border-radius:0 10px 10px 0;padding:10px;background:#fff8f7}.member-movement-row--refund>.movement-minus,.member-movement-row--refund .movement-payment-main{color:#b42318;font-weight:750}.member-refund-title{display:flex;align-items:center;gap:7px;color:#7a271a;font-weight:700}.member-refund-icon{display:inline-grid;width:25px;height:25px;place-items:center;border-radius:50%;background:#fee4e2;color:#b42318;font-size:16px}.member-refund-components,.member-refund-metadata{display:grid;gap:6px}.member-refund-component{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px}.member-refund-component small{grid-column:1/-1;color:#64748b}.member-refund-metadata span{overflow-wrap:anywhere}.member-refund-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px;border:1px solid #fecaca;border-radius:10px;background:#fff}.member-refund-overview>strong{grid-column:1/-1;color:#7a271a;font-size:14px}.member-refund-overview>div{display:grid;gap:3px}.member-refund-overview span{color:#667085;font-size:11px}.member-refund-overview b{color:#344054;font-size:14px}.member-refund-overview>div:first-of-type b{color:#b42318}.movement-payment-documents a{color:#2563eb;font-weight:700;text-decoration:none}@media(max-width:640px){.member-refund-overview{grid-template-columns:1fr}.member-movement-row--refund{padding:10px 8px}}

.movement-amount-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.movement-note-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.member-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.member-summary-card--coords {
  grid-column: 1 / -1;
}

.member-summary-card--credits,
.member-summary-card--validity {
  min-height: 155px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
}

.member-summary-card--credits-overview {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 18px 20px;
}

.member-credits-overview__header {
  margin-bottom: 8px;
}

.member-credits-overview__header .member-edit-btn--card {
  min-width: 0;
  min-height: 34px;
  padding: 7px 13px;
}

.member-credits-overview__summary {
  padding: 4px 0 14px;
  text-align: center;
}

.member-credits-overview__value {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.04em;
}

.member-credits-overview__caption {
  margin-top: 7px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
}

.member-credits-overview__divider {
  height: 1px;
  margin: 0 0 4px;
  background: rgba(15, 23, 42, 0.09);
}

.member-credits-overview__lots {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
}

.member-credits-overview__lots .member-validity-lot {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  padding: 9px 0;
  gap: 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  white-space: normal;
}

.member-credits-overview__lots .member-validity-lot + .member-validity-lot {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.member-credit-lot__quantity {
  color: #1f2937;
  font-size: 13px;
  font-weight: 650;
}

.member-credit-lot__date {
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}

.member-credit-lot__date--alert {
  color: #d97706;
  font-weight: 650;
}

.member-credit-lots-edit {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-top: 1px solid rgba(15, 23, 42, 0.09);
}

.member-credit-lot-edit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
}

.member-credit-lot-edit + .member-credit-lot-edit {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.member-credit-lot-edit__date {
  width: auto;
  min-width: 150px;
  margin: 0;
}

.member-credit-lots-edit__actions {
  margin-top: 14px;
}

.member-manual-payment {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.75);
}

.member-manual-payment__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
}

.member-manual-payment__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.member-manual-payment__details label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 600px) {
  .member-manual-payment__details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .member-summary-card--credits-overview {
    padding: 16px;
  }

  .member-credits-overview__lots .member-validity-lot {
    gap: 10px;
  }

  .member-credit-lot-edit {
    gap: 10px;
  }

  .member-credit-lot-edit__date {
    min-width: 142px;
  }
}

.member-summary-card__label--center {
  text-align: center;
  font-size: 14px;
  line-height: 1.2;
  color: #6b7280;
  margin-bottom: 10px;
}

.member-summary-card__value--center,
.member-validity__current--center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  line-height: 1.1;
}

.member-summary-card__value--center {
  font-size: 38px;
}

.member-validity__current--center {
  font-size: 28px;
}

.member-summary-card__actions--center {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.member-expired-btn,
.member-edit-btn--card {
  min-width: 140px;
  min-height: 38px;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
}

.member-expired-btn {
  border: 1px solid rgba(185, 28, 28, 0.18);
  background: rgba(185, 28, 28, 0.08);
  color: #b91c1c;
}

.member-expired-btn:hover {
  background: rgba(185, 28, 28, 0.12);
  border-color: rgba(185, 28, 28, 0.28);
}

.member-edit-btn--card {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(15, 23, 42, 0.04);
  color: #334155;
}

.member-edit-btn--card:hover {
  background: rgba(15, 23, 42, 0.08);
}

.member-summary-card__actions--center {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.members-count {
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 6px;
}

@media (min-width: 901px) and (max-width: 1200px) {
  .members-page {
    grid-template-columns: 1fr !important;
  }

  .members-page__list,
  .members-page__profile,
  .members-page__history {
    min-width: 0 !important;
    width: 100% !important;
  }
}
@media (min-width: 901px) and (max-width: 1250px) {
  body.page-members .app-main,
  body.page-members .members-page {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  body.page-members * {
    box-sizing: border-box;
  }
}
.alert-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #ececec;
}

.alert-member-row:last-child {
  border-bottom: none;
}

.alert-member-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: #111827;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s ease;
  text-align: left;
}

.alert-member-link:hover {
  opacity: 0.7;
}

.alert-credit-badge,
.alert-expiry-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.alert-credit-badge {
  background: #fff3eb;
  color: #f28c00;
}

.alert-expiry-badge {
  background: #f5f5f5;
  color: #374151;
}

.alert-expiry-badge.is-warning {
  background: #fff3eb;
  color: #f28c00;
}

.alert-expiry-badge.is-danger {
  background: #fff0f0;
  color: #dc2626;
}
.pilotage-backdrop {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(3px);

  z-index: 900;
}

.pilotage-actions__menu {
  z-index: 1000;
  position: relative;

  animation: pilotageFadeIn 0.15s ease;
}

@keyframes pilotageFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.pilotage-actions__menu {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.studio-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.studio-dashboard-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.studio-dashboard-actions .studio-analytics-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.16);
}
.member-payment-balance {
  margin: 8px 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f2f4f7;
  color: #344054;
  font-size: 13px;
}

.member-payment-plan {
  display: grid;
  min-width: 0;
  gap: 10px;
  margin: 8px 0 16px;
}

.member-payment-plan__header {
  display: grid;
  grid-template-columns: 28px minmax(92px,.7fr) minmax(130px,.85fr) minmax(145px,1fr) minmax(180px,1.15fr);
  gap: 10px;
  padding: 0 2px 8px;
  border-bottom: 1px solid rgba(148, 163, 184, .18);
  color: rgba(226, 232, 240, .72);
  font-size: 12px;
  font-weight: 600;
}

.member-payment-plan__header--cheque {
  grid-template-columns: 28px minmax(86px,.65fr) repeat(2,minmax(128px,.9fr)) minmax(150px,1fr) minmax(130px,.9fr);
}

.member-payment-plan__row {
  display: grid;
  grid-template-columns: 28px minmax(92px,.7fr) minmax(130px,.85fr) minmax(145px,1fr) minmax(180px,1.15fr);
  min-width: 0;
  gap: 10px;
  align-items: end;
}

[data-settlement-rows="cheque"] .member-payment-plan__row {
  grid-template-columns: 28px minmax(86px,.65fr) repeat(2,minmax(128px,.9fr)) minmax(150px,1fr) minmax(130px,.9fr);
}

.member-payment-plan__row > *,
.member-payment-plan__row label,
.member-payment-plan__row input,
.member-payment-plan__row select {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.member-payment-plan__row label {
  display: grid;
  gap: 5px;
  color: #667085;
  font-size: 12px;
}

.member-payment-plan__row label > span {
  display: none;
}

.movement-partial-badge {
  border: 0;
  border-radius: 999px;
  background: #fffaeb;
  padding: 5px 9px;
  color: #b54708;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.movement-late-badge { background: #fef3f2; color: #b42318; }
.movement-payment-progress { display: block; margin-top: 3px; color: #667085; font-size: 12px; }

.credit-sale-settlement {
  display: grid;
  min-width: 0;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, .12);
}

.credit-sale-settlement > div,
.credit-sale-settlement label,
.credit-sale-settlement input,
.credit-sale-settlement select {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.credit-sale-settlement label { display: grid; gap: 6px; }

.credit-sale-settlement__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 20px 22px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 14px;
  background: rgba(15, 23, 42, .18);
}

.credit-sale-settlement__summary > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 0 26px;
  border-left: 1px solid rgba(148, 163, 184, .22);
}

.credit-sale-settlement__summary > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.credit-sale-settlement__summary span { opacity: .7; font-size: .9rem; }
.credit-sale-settlement__summary strong { font-size: 1.14rem; }
.credit-sale-settlement__summary .is-valid,
.credit-sale-settlement__control .is-valid { color: #32d583; }
.credit-sale-settlement__summary small { grid-column: 1 / -1; margin-top: 14px; color: rgba(226, 232, 240, .7); }
.credit-sale-settlement__control { display: flex; align-items: center; gap: 12px; margin: 4px 0 0; font-weight: 500; }
.credit-sale-settlement__control i { width: 1px; height: 18px; background: rgba(148, 163, 184, .35); }
.credit-sale-settlement__control.is-invalid { color: #ef8b8b; }

body #creditSaleModal .modal__box,
body #memberFinanceModal .modal__box {
  width: min(880px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body #creditSaleModal .modal__box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 28px;
  width: min(1080px, calc(100vw - 48px));
  padding: 28px 32px 22px;
}

body #creditSaleModal .modal__box > h3,
body #creditSaleModal #creditSaleSettlement,
body #creditSaleModal .modal__actions {
  grid-column: 1 / -1;
}

body #creditSaleModal .modal__box > h3 {
  margin-bottom: 20px;
  font-size: 25px;
}

body #creditSaleModal .modal__row {
  min-width: 0;
  margin: 0;
}

body #creditSaleModal .modal__row input,
body #creditSaleModal .modal__row select,
body #creditSaleModal .credit-sale-settlement input,
body #creditSaleModal .credit-sale-settlement select {
  min-height: 48px;
}

body #creditSaleModal .credit-sale-settlement input[type="number"],
body #creditSaleModal .credit-sale-settlement input[type="text"],
body #creditSaleModal .credit-sale-settlement input[type="date"],
body #creditSaleModal .credit-sale-settlement select,
body #memberFinanceModal .credit-sale-settlement input[type="number"],
body #memberFinanceModal .credit-sale-settlement input[type="text"],
body #memberFinanceModal .credit-sale-settlement input[type="date"],
body #memberFinanceModal .credit-sale-settlement select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 11px;
  outline: none;
  background: rgba(255, 255, 255, .055);
  color: rgba(255, 255, 255, .94);
  font: inherit;
  line-height: 1.2;
  color-scheme: dark;
  box-shadow: none;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

body #creditSaleModal .credit-sale-settlement input::placeholder,
body #memberFinanceModal .credit-sale-settlement input::placeholder {
  color: rgba(203, 213, 225, .48);
  opacity: 1;
}

body #creditSaleModal .credit-sale-settlement input:focus,
body #creditSaleModal .credit-sale-settlement select:focus,
body #memberFinanceModal .credit-sale-settlement input:focus,
body #memberFinanceModal .credit-sale-settlement select:focus {
  border-color: rgba(59, 130, 246, .9);
  background: rgba(59, 130, 246, .08);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .18);
}

body #creditSaleModal .credit-sale-settlement input[type="date"]::-webkit-calendar-picker-indicator,
body #memberFinanceModal .credit-sale-settlement input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .82;
  filter: invert(1) brightness(1.25);
}

body #creditSaleModal .credit-sale-settlement {
  margin-top: 22px;
  padding-top: 0;
  border-top: 0;
}

body #creditSaleModal [data-settlement-mode] {
  min-height: 54px;
  padding-inline: 16px;
  font-size: 15px;
}

body #creditSaleModal [data-settlement-count] {
  width: 172px;
}

body #creditSaleModal [data-settlement-cheques] > label,
body #creditSaleModal [data-settlement-schedule] > label:first-child {
  display: flex;
  align-items: center;
  gap: 18px;
  width: fit-content;
  margin-bottom: 18px;
}

body #creditSaleModal [data-settlement-now-details] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: -4px 0 18px;
}

body #creditSaleModal [data-settlement-now-details][hidden] {
  display: none;
}

body #creditSaleModal .modal__actions,
body #memberFinanceModal .modal__actions {
  position: sticky;
  z-index: 3;
  bottom: -18px;
  margin: 18px -22px -18px;
  padding: 12px 22px 18px;
  background: linear-gradient(180deg, rgba(15, 20, 31, .82), rgba(15, 20, 31, .99) 28%);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

body #creditSaleModal .modal__actions {
  justify-content: flex-end;
  gap: 18px;
  margin: 22px -32px -22px;
  padding: 20px 32px 22px;
}

body #creditSaleModal .modal__actions button {
  width: min(230px, 32%);
  min-height: 54px;
}

@media (max-width: 760px) {
  body #creditSaleModal,
  body #memberFinanceModal {
    padding: 10px;
    align-items: flex-end;
  }

  body #creditSaleModal .modal__box,
  body #memberFinanceModal .modal__box {
    width: 100%;
    max-height: calc(100dvh - 20px);
    padding: 18px 16px 14px;
    border-radius: 18px 18px 12px 12px;
  }

  body #creditSaleModal .modal__box {
    display: block;
    padding: 18px 16px 14px;
  }

  body #creditSaleModal .modal__row + .modal__row {
    margin-top: 12px;
  }

  .credit-sale-settlement__summary {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .credit-sale-settlement__summary > div,
  .credit-sale-settlement__summary > div:first-child {
    grid-template-columns: 1fr auto;
    padding: 0 0 12px;
    border-left: 0;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
  }

  .credit-sale-settlement__summary > div:last-of-type {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .credit-sale-settlement__control {
    flex-wrap: wrap;
  }

  body #creditSaleModal [data-settlement-now-details] {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .member-payment-plan__row,
  [data-settlement-rows="cheque"] .member-payment-plan__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
  }

  .member-payment-plan__header {
    display: none;
  }

  .member-payment-plan__row label > span {
    display: block;
  }

  .member-payment-plan__row > span {
    display: block;
    font-weight: 750;
  }

  body #creditSaleModal .modal__actions,
  body #memberFinanceModal .modal__actions {
    bottom: -14px;
    margin: 16px -16px -14px;
    padding: 12px 16px 14px;
    flex-wrap: nowrap;
  }

  body #creditSaleModal .modal__actions {
    margin-inline: -16px;
  }

  body #creditSaleModal .modal__actions button,
  body #memberFinanceModal .modal__actions button {
    width: 50%;
    min-width: 0;
  }
}
.sale-correction-plan {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 12px;
  background: rgba(148, 163, 184, .08);
}

.sale-correction-plan p,
.sale-correction-plan ul,
.sale-correction-plan fieldset {
  margin: 0 0 10px;
}

.sale-correction-plan label {
  display: grid;
  gap: 5px;
  margin-top: 9px;
}

.sale-correction-plan fieldset {
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 10px;
}

.sale-correction-plan fieldset label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.role-admin .member-lot--accent .member-credit-lot__quantity { color: #64789a; }
