/* ========== Trang Thời hạn thanh toán ========== */
.page-schedule {
  background: linear-gradient(180deg, #1a2d42 0%, #2d4a6f 30%, #3d5a80 60%, #2d4a6f 100%);
  min-height: 100vh;
}

.schedule-app {
  position: relative;
  min-height: 100vh;
  padding-bottom: 2rem;
  overflow: hidden;
}

/* Nền */
.schedule-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(251, 191, 36, 0.2) 0%, transparent 45%),
              radial-gradient(circle at 70% 60%, rgba(245, 158, 11, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 50% 85%, rgba(34, 197, 94, 0.1) 0%, transparent 35%);
  pointer-events: none;
  z-index: 0;
}

.schedule-year {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 5.5rem;
  font-weight: 800;
  color: rgba(251, 191, 36, 0.14);
  letter-spacing: 0.05em;
  user-select: none;
}

/* Thanh tiêu đề */
.schedule-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(30, 58, 95, 0.9);
  backdrop-filter: blur(8px);
}

.schedule-back {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
}

.schedule-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.schedule-header-placeholder {
  width: 40px;
}

/* Tóm tắt */
.schedule-summary {
  position: relative;
  z-index: 1;
  margin: 16px 20px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border-radius: 12px;
}

.schedule-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.schedule-summary-row--main {
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.schedule-summary-label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
}

.schedule-summary-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.schedule-summary-value--green {
  color: #22c55e;
  font-size: 1rem;
}

/* Danh sách kỳ trả */
.schedule-list {
  position: relative;
  z-index: 1;
  margin: 0 20px;
  padding: 0 0 24px;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.schedule-list-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 12px 0;
  padding: 0 2px;
}

.schedule-item {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.schedule-item:last-child {
  margin-bottom: 0;
}

.schedule-item--paid {
  border-left: 4px solid #22c55e;
}

.schedule-item--due {
  border-left: 4px solid #f59e0b;
}

.schedule-item--overdue {
  border-left: 4px solid #ef4444;
}

.schedule-item--more {
  border-left: 4px solid #94a3b8;
}

.schedule-item-period {
  grid-row: 1 / -1;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1f2937;
}

.schedule-item-date {
  font-size: 0.8rem;
  color: #6b7280;
}

.schedule-item-amount {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1f2937;
  text-align: right;
}

.schedule-item-status {
  grid-column: 2 / -1;
  font-size: 0.78rem;
  color: #9ca3af;
}

.schedule-item-status--paid {
  color: #22c55e;
  font-weight: 600;
}

.schedule-item-status--paid i {
  margin-right: 4px;
}

.schedule-item-status--due {
  color: #f59e0b;
  font-weight: 600;
}

.schedule-item-status--due i {
  margin-right: 4px;
}

.schedule-item-status--overdue {
  color: #ef4444;
  font-weight: 600;
}

.schedule-item-status--overdue i {
  margin-right: 4px;
}
