:root {
  --navy: #0B2162;
  --lime: #A7CC3C;
  --green-dark: #4F7146;
  --green-light: #DDE8D6;
  --steel: #4A5568;
  --gray: #C3C3C3;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Lucida Bright", Georgia, serif;
  background: var(--green-light);
  color: var(--steel);
}

.top-strip-main {
  height: 100px;
  background: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
}

.top-strip-accent {
  height: 25px;
  background: var(--lime);
}

.top-strip-navy {
  height: 25px;
  background: var(--navy);
}

.logo-left,
.logo-right {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.page-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 56px auto 0;
  padding: 0 24px 40px;
}

.page-title {
  margin: 0 0 28px;
  color: var(--navy);
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  text-decoration: underline;
}

.confirm-panel {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border: 4px solid var(--gray);
  background: transparent;
  padding: 30px 34px 32px;
}

.input-note {
  margin: 0 0 16px;
  text-align: center;
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
}

.input-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.invoice-input {
  width: min(100%, 440px);
  height: 44px;
  border: 1px solid #8c95a0;
  background: var(--white);
  color: var(--navy);
  font-family: "Lucida Bright", Georgia, serif;
  font-size: 17px;
  padding: 8px 12px;
  text-align: center;
  outline: none;
}

.invoice-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(11, 33, 98, 0.12);
}

.action-btn {
  min-width: 170px;
  height: 44px;
  border: none;
  background: var(--gray);
  color: var(--steel);
  font-family: "Lucida Bright", Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.action-btn:hover {
  background: var(--green-dark);
  color: var(--white);
}

.action-btn.primary-btn {
  background: #C3C3C3;
  color: var(--navy);
}

.action-btn.primary-btn:hover {
  background: var(--green-dark);
  color: var(--white);
}

.action-btn:disabled {
  opacity: 0.68;
  cursor: not-allowed;
}

.pdf-panel {
  width: 100%;
  max-width: 980px;
  height: calc(100vh - 310px);
  min-height: 460px;
  margin: 28px auto 0;
  border: 4px solid var(--gray);
  background: var(--white);
  padding: 10px;
}

.invoice-frame {
  width: 100%;
  height: 100%;
  border: 1px solid var(--gray);
  background: var(--white);
}

.hidden {
  display: none !important;
}

.smart-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.smart-modal-box {
  width: min(100%, 560px);
  background: var(--green-light);
  border: 4px solid var(--gray);
  padding: 20px 22px 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.smart-modal-title {
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}

.smart-modal-message {
  background: var(--white);
  border: 1px solid var(--gray);
  color: var(--steel);
  font-size: 16px;
  line-height: 1.55;
  padding: 16px 18px;
  white-space: pre-wrap;
}

.smart-modal-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

@media (max-width: 980px) {
  .top-strip-main {
    padding: 0 24px;
  }

  .logo-left,
  .logo-right {
    height: 72px;
  }

  .page-wrap {
    margin-top: 36px;
  }

  .confirm-panel {
    padding: 24px 20px;
  }

  .input-row {
    flex-direction: column;
  }

  .action-btn {
    width: min(100%, 260px);
  }

  .pdf-panel {
    height: 62vh;
    min-height: 420px;
  }
}
