.paystub-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.paystub-card {
  border: 1px solid #d7b15f;
  border-radius: 14px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.paystub-card + .paystub-card {
  margin-top: 18px;
}

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

.paystub-header h2 {
  margin: 0;
  color: #0a274f;
  font-size: 1.3rem;
  font-weight: 800;
}

.paystub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 14px 18px;
}

.paystub-grid--single {
  grid-template-columns: 1fr;
}

.paystub-grid--five {
  grid-template-columns: repeat(5, minmax(160px, 1fr));
}

.paystub-field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: #1b2f46;
  margin-bottom: 6px;
}

.paystub-grid--five .paystub-field {
  align-self: start;
}

.paystub-grid--five .paystub-field label {
  min-height: 38px;
  display: flex;
  align-items: flex-end;
}

.paystub-field input,
.paystub-field select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d9c08c;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.95rem;
  background: #fff;
  color: #0a274f;
}

.btn-outline {
  border: 1px solid #c9a053;
  background: #fff;
  color: #1b2f46;
}

.paystub-other {
  margin-top: 16px;
  border-top: 1px solid #ead39a;
  padding-top: 14px;
}

.other-row {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.other-row input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d9c08c;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.95rem;
  background: #fff;
  color: #0a274f;
}

.other-row button {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #c9a053;
  background: #fff;
  color: #1b2f46;
  font-weight: 700;
  cursor: pointer;
}

.paystub-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.paystub-actions-right {
  justify-content: center;
  margin-top: 18px;
}

.paystub-results {
  margin-top: 22px;
  border: 2px solid #0b3a6e;
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: none;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.result-card {
  border: 2px solid #f6cc6d;
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  box-shadow: none;
}

.result-card h3 {
  margin: 0 0 8px;
  color: #0a274f;
  font-size: 1.05rem;
  font-weight: 700;
}

.result-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font-weight: 400;
  color: #1b2f46;
}

.result-line span {
  font-weight: 400;
  color: #0a274f;
}

.warnings {
  margin-top: 14px;
  color: #7a2f2f;
  font-weight: 600;
}

.warnings ul {
  margin: 6px 0 0 20px;
}

.btn-blue-dark {
  background: #0b3a6e;
  color: #fff;
  border: 2px solid #0a2f58;
}

.btn-blue-bright {
  background: #2a63bf;
  color: #fff;
  border: 2px solid #2456a8;
}

.other-actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.paystub-actions .btn-gold {
  background: #f6cc6d;
  color: #071425;
  border: 2px solid #c6931f;
}

.other-deductions-block {
  margin-top: 20px;
  border-top: 1px solid #d9c08c;
  padding-top: 14px;
}

.other-deductions-block h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #0a274f;
  font-weight: 600;
}

.other-deductions-block .result-line {
  margin: 4px 0;
  padding: 4px 0;
}

.paystub-disclaimer {
  margin: 18px auto 10px;
  max-width: 980px;
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
  color: #2b4060;
}

@media (max-width: 720px) {
  .paystub-grid {
    grid-template-columns: 1fr;
  }

  .paystub-grid--five {
    grid-template-columns: 1fr;
  }

  .other-row {
    grid-template-columns: 1fr;
  }
}
