.payment-entitlement-page {
  display: grid;
  gap: 18px;
  width: min(1494px, 100%);
  margin: 0 auto;
}

.payment-entitlement-page .payment-control-card {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(360px, 1fr) minmax(260px, 310px) minmax(210px, 250px) auto;
  align-items: end;
  gap: 14px;
  min-height: 146px;
  padding: 22px 24px !important;
  overflow: visible;
  border: 1px solid rgba(7, 84, 103, .14);
  border-radius: 18px;
  background: radial-gradient(circle at 92% 12%, rgba(67, 212, 234, .18), transparent 30%), linear-gradient(135deg, #fff 0%, #f3fbfd 100%);
  box-shadow: 0 18px 48px rgba(7, 84, 103, .11);
}

.payment-entitlement-intro { display: grid; align-content: center; gap: 4px; min-width: 0; }
.payment-entitlement-intro > span { color: #ff7058; font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.payment-entitlement-intro h1 { margin: 0; color: #073341; font-size: 25px; font-weight: 800; line-height: 1.15; }
.payment-entitlement-intro p { max-width: 580px; margin: 2px 0 6px; color: #547078; font-size: 12px; font-weight: 500; line-height: 1.5; }
.payment-entitlement-intro small { display: inline-flex; align-items: center; gap: 7px; width: max-content; max-width: 100%; color: #176c52; font-size: 10px; font-weight: 700; }
.payment-entitlement-intro small i { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .12); }

.payment-entitlement-page .payment-date-picker {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  width: 100%;
  min-width: 0;
  border: 1px solid #b9d7de;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(7, 84, 103, .08);
}
.payment-entitlement-page .payment-date-picker > button:first-child { min-width: 0; overflow: hidden; border: 0; background: transparent; color: #15343d; padding: 0 14px; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 700; text-align: left; }
.payment-entitlement-page .payment-date-picker .calendar-button { width: 44px; min-width: 44px; height: 44px; margin: 0; border: 0; border-radius: 0 10px 10px 0; background: #075467; color: #fff; }
.payment-entitlement-page .payment-control-card > select { width: 100%; min-width: 0; height: 46px; border: 1px solid #b9d7de; border-radius: 11px; background: #fff; color: #15343d; padding: 0 36px 0 13px; font-size: 11px; font-weight: 700; outline: none; box-shadow: 0 8px 20px rgba(7, 84, 103, .08); }
.payment-entitlement-page .payment-check-button { display: inline-flex; align-items: center; justify-content: center; min-width: 200px; height: 46px; margin: 0; border: 0; border-radius: 11px; background: linear-gradient(135deg, #0e8a69, #075467); color: #fff; padding: 0 18px; font-size: 11px; font-weight: 800; white-space: nowrap; box-shadow: 0 12px 25px rgba(7, 84, 103, .24); transition: transform .16s ease, box-shadow .16s ease; }
.payment-entitlement-page .payment-check-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(7, 84, 103, .3); }
.payment-entitlement-page .payment-check-button:disabled { cursor: wait; opacity: .72; }

.payment-entitlement-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.payment-entitlement-card { --payment-accent: #075467; position: relative; display: grid; align-content: start; gap: 9px; min-height: 142px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--payment-accent) 20%, #dbe7eb); border-radius: 17px; background: linear-gradient(145deg, #fff 0%, color-mix(in srgb, var(--payment-accent) 7%, #fff) 100%); padding: 18px 20px; box-shadow: 0 16px 36px rgba(7, 84, 103, .09); }
.payment-entitlement-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--payment-accent); }
.payment-entitlement-card::after { content: ""; position: absolute; right: -32px; bottom: -36px; width: 112px; height: 112px; border-radius: 50%; background: color-mix(in srgb, var(--payment-accent) 11%, transparent); }
.payment-entitlement-card.standard { --payment-accent: #16a36a; }
.payment-entitlement-card.early { --payment-accent: #e79a16; }
.payment-entitlement-card.early.active { --payment-accent: #f0644d; }
.payment-entitlement-card.average { --payment-accent: #1685a0; }
.payment-entitlement-card > div { display: flex; align-items: center; gap: 9px; color: #5c6d72; font-size: 11px; font-weight: 800; }
.payment-entitlement-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; background: color-mix(in srgb, var(--payment-accent) 11%, #fff); color: var(--payment-accent); font-size: 15px; font-weight: 900; }
.payment-entitlement-card > b { position: relative; z-index: 1; color: #102d36; font-size: clamp(21px, 1.8vw, 29px); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; }
.payment-entitlement-card > small { position: relative; z-index: 1; color: #7a8b90; font-size: 10px; font-weight: 600; line-height: 1.4; }

.payment-entitlement-result { overflow: hidden; border-radius: 16px !important; box-shadow: 0 16px 38px rgba(7, 84, 103, .1); }
.payment-entitlement-result .commission-table-head { min-height: 58px; background: linear-gradient(135deg, #075467, #0a7188); }
.payment-entitlement-result .commission-table-head h3 { font-size: 14px; font-weight: 800; }
.payment-entitlement-result .payment-control-table th { min-height: 48px; background: #fff0eb !important; color: #3c2a25; font-size: 11px !important; font-weight: 800 !important; }
.payment-entitlement-result .payment-control-table td { height: 54px; color: #18343d; font-size: 11px !important; font-weight: 600; vertical-align: middle; }
.payment-entitlement-result .payment-control-table tr.payment-row-has-early td { background: #fffaf0; }
.payment-entitlement-result .payment-control-table .money-cell { color: #087a4b; font-size: 12px !important; font-weight: 800; }
.payment-status-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; border-radius: 999px; padding: 0 11px; background: #e7f7ef; color: #087a4b; font-size: 9px; font-weight: 800; white-space: nowrap; }
.payment-status-badge.early { background: #fff0d7; color: #ad6300; box-shadow: inset 0 0 0 1px #f3d49e; }
.payment-entitlement-result .payment-empty-state { height: 150px; color: #6f8389; font-size: 12px; font-weight: 600; }

@media (max-width: 1180px) {
  .payment-entitlement-page .payment-control-card { grid-template-columns: minmax(320px, 1fr) minmax(250px, 1fr) minmax(200px, 1fr); }
  .payment-entitlement-page .payment-check-button { grid-column: 2 / 4; width: 100%; }
  .payment-entitlement-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .payment-entitlement-page .payment-control-card { grid-template-columns: 1fr; padding: 18px !important; }
  .payment-entitlement-page .payment-check-button { grid-column: auto; width: 100%; }
  .payment-entitlement-summary { grid-template-columns: 1fr; }
  .payment-entitlement-card { min-height: 126px; }
}
