/* ============================================================
   IIHR Workflow — Submission Popup (matches IIHR green/gold theme)
   ============================================================ */

/* ── Backdrop ── */
.iihr-submission-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: iihrFadeIn 0.25s ease;
}

@keyframes iihrFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes iihrFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ── Modal box ── */
.iihr-submission-popup {
  width: min(520px, calc(100% - 32px));
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: iihrSlideUp 0.3s ease;
}

@keyframes iihrSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Header (IIHR dark green) ── */
.iihr-submission-popup-header {
  padding: 14px 20px;
  background: #264675;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  font-family: verdana, sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
}

.iihr-submission-popup-header::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #c99700;
  border-radius: 50%;
  font-size: 13px;
  flex-shrink: 0;
}

/* ── Body ── */
.iihr-submission-popup-body {
  padding: 20px;
  line-height: 1.6;
  font-family: verdana, sans-serif;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #e8e8e8;
}

/* ── Footer ── */
.iihr-submission-popup-footer {
  display: flex;
  justify-content: flex-end;
  padding: 12px 20px;
  background: #f8f9fa;
}

.iihr-submission-popup-footer button {
  background: #264675;
  color: #fff;
  border: none;
  padding: 8px 28px;
  border-radius: 4px;
  font-size: 14px;
  font-family: verdana, sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}

.iihr-submission-popup-footer button:hover {
  background: #1a3154;
}

/* ============================================================
   Admin Approval Notice (shown at top of admin dashboard)
   ============================================================ */
.iihr-approval-notice {
  margin: 0 0 12px;
  padding: 14px 18px;
  background: #fff8e1;
  border-left: 4px solid #c99700;
  border-radius: 4px;
}

.iihr-approval-notice > strong {
  display: block;
  margin-bottom: 10px;
  color: #264675;
  font-size: 14px;
}

.iihr-approval-item {
  padding: 10px 0;
  border-top: 1px solid #e8e3c8;
}

.iihr-approval-item:first-of-type {
  border-top: none;
}

.iihr-approval-item > div > strong {
  color: #2d2d2d;
  font-size: 13px;
}

.iihr-approval-preview {
  margin: 4px 0 8px;
  font-size: 12px;
  color: #555;
  line-height: 1.4;
}

.iihr-approval-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 6px;
}

.iihr-approval-actions a.button--primary {
  background: #264675;
  color: #fff;
  border-color: #264675;
}

.iihr-approval-actions a.button--primary:hover {
  background: #1a3154;
}

.iihr-approval-actions a:not(.button--primary) {
  color: #264675;
  text-decoration: underline;
  font-size: 12px;
}

/* ============================================================
   Mobile responsive overrides
   ============================================================ */
@media (max-width: 480px) {
  .iihr-submission-popup {
    width: calc(100% - 24px);
    margin: 12px;
  }

  .iihr-submission-popup-body {
    font-size: 13px;
    padding: 16px;
  }

  .iihr-approval-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}