.fadeInSidebar {
  animation-duration: 0.5s;
  animation-fill-mode: both;
  animation-name: fadeInLeftSidebar;
}

@keyframes fadeInLeftSidebar {
  0% {
    opacity: 0;
    transform: translateX(-200px);
  }

  100% {
    opacity: 1;
  }
}

.accordion-item {
  border: none !important;
}

.accordion-button:not(.collapsed) {
  background: #eae3fb !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  /* margin: 12px 0px !important; */
}

.accordion-button {
  font-size: 12px !important;
  padding: 13px 15px !important;
}

.accordion-body {
  padding: 0px 30px !important;
}

.direct-menu .accordion-button::after {
  display: none;
}

.ml-10px {
  margin-left: 10px;
}

.password-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.eye-password {
  position: absolute;
  margin-right: 10px;
  cursor: pointer;
}

.skeleton-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 0 auto;
}

.skeleton-row {
  display: flex;
  gap: 10px;
}

.skeleton-cell {
  flex: 1;
  height: 20px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 768px) {
  .skeleton-cell {
    height: 16px;
  }
}

/* Container rhythm */
.payment-schedule-section .text-gray-700 {
  color: #5e6278;
}
.payment-schedule-section .text-gray-800 {
  color: #3f4254;
}
.payment-schedule-section .text-gray-900 {
  color: #181c32;
}

/* Legend */
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.legend-paid {
  background: #198754;
}
.legend-next {
  background: #0d6efd;
}
.legend-upcoming {
  background: #6c757d;
}
.legend-overdue {
  background: #dc3545;
}

/* Timeline spine */
.payment-timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.5rem;
}
.payment-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e9ecef;
}

/* Cards */
.schedule-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e4e6ef;
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0 12px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  outline: none;
}
.schedule-card:focus {
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

/* Colored “state” rails via subtle bg */
.schedule-card--paid {
  background: #f6fffa;
  border-color: #d1f2e5;
}
.schedule-card--next {
  background: #f0f6ff;
  border-color: #cfe2ff;
}
.schedule-card--upcoming {
  background: #f8f9fa;
}
.schedule-card--overdue {
  background: #fff5f5;
  border-color: #f5c2c7;
}

/* Dot anchored to the spine */
.schedule-card__dot {
  position: absolute;
  left: -1.5rem;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #e9ecef;
  background: #6c757d; /* default upcoming */
}
.schedule-card--paid .schedule-card__dot {
  background: #198754;
}
.schedule-card--next .schedule-card__dot {
  background: #0d6efd;
}
.schedule-card--overdue .schedule-card__dot {
  background: #dc3545;
}

.schedule-card__content {
  display: block;
}

/* Badges with real contrast */
.schedule-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.schedule-badge--paid {
  background: #e8fff3;
  color: #0f5132;
  border-color: #badbcc;
}
.schedule-badge--next {
  background: #e7f1ff;
  color: #084298;
  border-color: #b6d4fe;
}
.schedule-badge--upcoming {
  background: #eef0f2;
  color: #343a40;
  border-color: #dee2e6;
}
.schedule-badge--overdue {
  background: #fde2e2;
  color: #842029;
  border-color: #f5c2c7;
}

.repair-card {
  border-radius: 16px !important;
  background: #fff;
  border: 1px solid #e4e6ef;
  position: relative;
  overflow: hidden;
  padding: 2px;
}
.repair-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, #0d6efd 0%, #6ea8fe 100%);
}

.icon-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at 30% 30%,
    #e7f1ff 0%,
    #f3f7ff 70%,
    #ffffff 100%
  );
  border: 1px solid #cfe2ff;
  color: #0d6efd;
  font-size: 20px;
  flex-shrink: 0;
}

.repair-btn {
  white-space: nowrap;
  border-radius: 12px;
  background-color: #6f42c1 !important;
  border: none;
}
.repair-btn:hover {
  background-color: #5a32a3 !important;
}

.payment-summary-wrapper {
  border: 1px solid #e4e6ef;
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  background-color: #ffffff;
}

.payment-summary-card {
  border: 1px solid #e4e6ef;
  border-radius: 1rem;
  background-color: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  padding: 1.75rem;
}

.payment-summary-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.payment-summary-card__body {
  padding: 0;
}

.dashed-toggle {
  border: 1px dashed #d1d5db;
  background: linear-gradient(135deg, #f9fafb 0%, #f4f6fb 100%);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  color: #1f2937;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  width: 100%;
}

.dashed-toggle:hover,
.dashed-toggle:focus-visible {
  border-color: #7239ea;
  box-shadow: 0 6px 16px rgba(114, 57, 234, 0.12);
  background: linear-gradient(135deg, #f3ecfe 0%, #ede5fb 100%);
}

.dashed-toggle.is-open {
  border-color: #7239ea;
}

@media (min-width: 1441px) {
  .app-container.container-xxl {
    max-width: 90vw;
  }

  .payment-summary-gap {
    gap: 3rem;
  }

  .payment-summary-column {
    flex: 0 0 40%;
    max-width: 50%;
  }

  .payments-list-responsive {
    width: 50%;
    max-width: 50%;
    margin-right: auto;
  }
}

@media (min-width: 1200px) and (max-width: 1440px) {
  .payment-summary-gap {
    gap: 1.5rem;
  }

  .payment-summary-column {
    flex: 0 0 48%;
    max-width: 48%;
  }

  .payments-list-responsive {
    width: 50%;
    max-width: 50%;
    margin-right: auto;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .payment-summary-gap {
    gap: 1.5rem;
  }

  .payment-summary-column {
    flex: 0 0 75%;
    max-width: 75%;
  }

  .payments-list-responsive {
    width: 50%;
    max-width: 50%;
    margin-right: auto;
  }

  .payment-summary-wrapper {
    padding: 2rem 1.5rem;
  }

  .payment-summary-card {
    padding: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .payment-summary-column,
  .payments-list-responsive {
    width: 100%;
    max-width: 100%;
  }

  .payment-summary-wrapper {
    padding: 2rem 1.5rem;
  }

  .payment-summary-card {
    padding: 1.5rem;
  }
}

.payment-breakdown-card .btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.85rem;
  background: #f3f4f6;
  border: 1px solid #e4e6ef;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.payment-breakdown-card .btn-icon:hover,
.payment-breakdown-card .btn-icon:focus-visible {
  background: #edf2ff;
  border-color: #7239ea;
  transform: translateY(-1px);
}

.edition-v2-wrapper {
  font-size: 14px;
  color: #1f1f1f;
}

.edition-v2-wrapper .form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #3f4254;
  margin-bottom: 6px;
}

.edition-v2-wrapper .ant-input,
.edition-v2-wrapper .ant-picker,
.edition-v2-wrapper .ant-picker-input > input,
.edition-v2-wrapper .ant-select-selector,
.edition-v2-wrapper .ant-select-selection-item,
.edition-v2-wrapper .ant-select-selection-placeholder,
.edition-v2-wrapper .ant-btn,
.edition-v2-wrapper .ant-typography,
.edition-v2-wrapper .ant-steps-item-title {
  font-size: 14px;
}

.media-upload-field {
  border: 1px dashed #d4d9e6;
  padding: 16px;
  border-radius: 12px;
  background: #f9fbff;
}

.media-upload-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.media-upload-helper {
  display: block;
  margin-top: 8px;
}

.media-upload-preview {
  margin-top: 12px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6e8f0;
}

.media-upload-preview img,
.media-upload-preview video {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}

.highlight-list-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.highlight-list-thumb {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  background: #f4f6fb;
  border: 1px solid #e3e7f3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 12px;
  color: #8c8f9c;
  text-align: center;
}

.highlight-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.highlight-list-content {
  flex: 1;
}

.content-section-editor {
  margin-bottom: 24px;
}

.content-section-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.content-section-row .ant-input {
  flex: 1;
}

.edition-modal-dialog .modal-content {
  border: none;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(3, 12, 33, 0.2);
}

.edition-modal-body {
  background: #f6f8fc;
}

.edition-modal-section {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eef0f8;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(73, 98, 168, 0.08);
}

.edition-modal-section--muted {
  background: #fbfcff;
  border-style: dashed;
}

.edition-modal-section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.edition-modal-section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8c8f9c;
  font-size: 12px;
  margin-bottom: 4px;
}

.edition-modal-section__title {
  margin: 0;
  font-size: 20px;
}

.edition-modal-section__subtitle {
  margin: 4px 0 0;
  color: #7a8098;
}

.edition-modal-section__actions {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid #f0f2f7;
  padding-top: 16px;
}

.destination-modal .modal-body,
.project-modal .modal-body {
  background: #fff;
}

.destination-modal .modal-header,
.project-modal .modal-header {
  border-bottom: 1px solid #eef0f5;
  padding-bottom: 12px;
}

.destination-modal .modal-header::after,
.project-modal .modal-header::after {
  display: none;
}

.destination-modal .modal-title,
.project-modal .modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #121433;
}

.edition-modal-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.destination-form-grid .row.g-5.mb-5.align-items-center {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  column-gap: 18px;
  row-gap: 16px;
}

.destination-form-grid .row.g-5.mb-5.align-items-center > [class*="col-"] {
  width: 100%;
  padding: 0;
}

.destination-modal .edition-modal-section,
.project-modal .edition-modal-section {
  background: #fff;
  border-radius: 16px;
  border: none;
  padding: 24px 26px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.destination-modal .edition-modal-section--muted,
.project-modal .edition-modal-section--muted {
  background: #fafbff;
}

.edition-modal-section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(98, 102, 255, 0.12);
  color: #4c4f88;
}

.edition-modal-section__title {
  font-size: 20px;
  margin: 10px 0 4px;
  color: #1a1d3a;
}

.edition-modal-section__subtitle {
  color: #6c738d;
  margin: 0;
}

.destination-modal .fv-row,
.project-modal .fv-row {
  margin-bottom: 16px;
}

.destination-modal .fv-row label,
.project-modal .fv-row label {
  color: #5a6279;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.destination-modal .form-control,
.destination-modal .ant-select-selector,
.project-modal .form-control,
.project-modal .ant-select-selector {
  border-radius: 10px !important;
  border: 1px solid #d5d9eb !important;
  background: #fff;
  box-shadow: none !important;
}

.destination-modal .form-control:focus,
.destination-modal .ant-select-selector:focus,
.project-modal .form-control:focus,
.project-modal .ant-select-selector:focus {
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0 0 2px rgba(59, 87, 244, 0.15);
}

.destination-modal .edition-modal-section__actions,
.project-modal .edition-modal-section__actions {
  padding-top: 12px;
  border-top: 1px solid #edf0fb;
}

.destination-modal .edition-modal-section__actions .btn-light-primary,
.project-modal .edition-modal-section__actions .btn-light-primary {
  background: #f3f4fa;
  border-color: #e1e4f2;
  color: #3b3f86;
  box-shadow: none;
}

.destination-modal .modal-footer,
.project-modal .modal-footer {
  border-top: 1px solid #eef0f5;
  padding-top: 18px;
}

.destination-modal .modal-footer .btn-primary,
.project-modal .modal-footer .btn-primary {
  background: var(--bs-primary);
  border: none;
  box-shadow: none;
}

.destination-modal .modal-footer .btn-primary:disabled,
.project-modal .modal-footer .btn-primary:disabled {
  opacity: 0.7;
  box-shadow: none;
}
