/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ── */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  background: #f5f6f8;
  color: #1a1a1a;
  min-height: 100vh;
}

/* ── Navbar ── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1a5c38;
  padding: 0 2rem;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.nav-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

.nav-links a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.nav-links a.active {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

/* ── Main content ── */
#app-content {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* ── Views ── */
.view { display: none; }
.view.active { display: block; }

.view h1 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #1a5c38;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #e2e8e4;
}

.placeholder {
  color: #888;
  font-style: italic;
  margin-top: 0.5rem;
}

/* ── Card ── */
.card {
  background: #fff;
  border: 1px solid #e0e4e2;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* ── Tables ── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

thead {
  background: #1a5c38;
  color: #fff;
}

thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tbody tr {
  border-bottom: 1px solid #eef0ee;
  transition: background 0.1s;
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #f2f7f4; }

tbody td {
  padding: 0.7rem 1rem;
  vertical-align: middle;
  color: #2a2a2a;
}

/* ── Forms ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.55rem 0.75rem;
  border: 1px solid #cdd4cf;
  border-radius: 5px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #1a1a1a;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1a5c38;
  box-shadow: 0 0 0 3px rgba(26,92,56,0.12);
}

.form-group textarea { min-height: 90px; resize: vertical; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border: none;
  border-radius: 5px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  text-decoration: none;
}

.btn-primary  { background: #1a5c38; color: #fff; }
.btn-primary:hover  { background: #155030; }

.btn-secondary { background: #e8f0eb; color: #1a5c38; }
.btn-secondary:hover { background: #d4e6da; }

.btn-danger { background: #c0392b; color: #fff; }
.btn-danger:hover { background: #a93226; }

.btn-sm { padding: 0.35rem 0.8rem; font-size: 0.8rem; }

/* ── Status badges ── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-active   { background: #d4edda; color: #1a5c38; }
.badge-archived { background: #e8e8e8; color: #666; }
.badge-signed   { background: #d4edda; color: #1a5c38; }
.badge-unsigned { background: #fff3cd; color: #856404; }

/* ── Alerts ── */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 5px;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.alert-error {
  background: #fdecea;
  border: 1px solid #f5c6cb;
  color: #842029;
}
.hidden { display: none !important; }

/* ── Spinner ── */
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 200;
  padding: 3rem 1rem 1rem;
  overflow-y: auto;
}

.modal {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 580px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.modal-wide { max-width: 720px; }

/* ── Docs side panel ── */
.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  display: flex;
  justify-content: flex-end;
}

.docs-panel {
  background: #fff;
  width: 460px;
  max-width: 96vw;
  height: 100%;
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.22s ease;
}

.panel-overlay.open .docs-panel { transform: translateX(0); }

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid #e8ede9;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.panel-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a5c38;
}

.panel-section {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid #f0f3f0;
}

.panel-upload { background: #f8fbf9; }

.panel-subheading {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin-bottom: 0.85rem;
}

/* ── Voucher summary inside panel ── */
.docs-voucher-summary {
  padding: 1rem 1.25rem;
  background: #f2f7f4;
  border-bottom: 1px solid #e2eae4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
}

.summary-row { display: flex; flex-direction: column; gap: 0.1rem; }

/* ── Document list items ── */
.docs-list { display: flex; flex-direction: column; gap: 0.75rem; }

.doc-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e4eae5;
  border-radius: 6px;
  background: #fff;
  transition: opacity 0.2s;
}

.doc-preview { flex-shrink: 0; }

.doc-thumbnail {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #dde3de;
  display: block;
}

.doc-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: #f2f7f4;
  border-radius: 4px;
  border: 1px solid #dde3de;
}

.doc-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.doc-type-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1a1a;
}

.doc-open-link {
  font-size: 0.8rem;
  color: #1a5c38;
  text-decoration: none;
}
.doc-open-link:hover { text-decoration: underline; }

.doc-delete-btn { flex-shrink: 0; }

/* ── Upload progress ── */
.upload-progress {
  font-size: 0.82rem;
  color: #555;
  margin-bottom: 0.6rem;
  font-style: italic;
}

/* ── Success alert ── */
.alert-success {
  background: #d4edda;
  border: 1px solid #b8dfc4;
  color: #1a5c38;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 0;
}

.modal-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a5c38;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #888;
  padding: 0 0.25rem;
}
.modal-close:hover { color: #333; }

.modal-body  { padding: 1.25rem 1.5rem; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem 1.25rem;
  border-top: 1px solid #eef0ee;
}

/* ── Two-column form row ── */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── Budget line rows ── */
.budget-line-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  align-items: center;
}
.budget-line-row input { flex: 1; }

/* ── Actions cell ── */
.actions-cell { white-space: nowrap; }
.actions-cell .btn + .btn { margin-left: 0.4rem; }

/* ── Dashboard heading ── */
.dashboard-heading {
  font-size: 1.6rem;
  font-weight: 600;
  color: #1a5c38;
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #e2e8e4;
}

/* ── Summary stat cards ── */
.stat-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #fff;
  border: 1px solid #e0e4e2;
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.stat-card--danger {
  border-color: #f5c6cb;
  background: #fff5f5;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}

.stat-value--green  { color: #1a5c38; }
.stat-value--danger { color: #c0392b; }

/* ── Project cards list ── */
.project-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-card {
  background: #fff;
  border: 1px solid #e0e4e2;
  border-left: 4px solid #1a5c38;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.project-card--overspent {
  border-left-color: #c0392b;
  background: #fffafa;
}

.project-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-card-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.2rem;
}

.project-card-donor {
  font-size: 0.83rem;
  color: #777;
}

/* ── Progress bar ── */
.project-card-progress { margin-bottom: 1rem; }

.progress-bar {
  height: 8px;
  background: #e8ede9;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.progress-fill {
  height: 100%;
  background: #1a5c38;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.progress-fill--danger { background: #c0392b; }

.progress-label {
  font-size: 0.75rem;
  color: #888;
}

/* ── Per-project stats row ── */
.project-card-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem 1rem;
}

.pstat { display: flex; flex-direction: column; gap: 0.15rem; }

.pstat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
}

.pstat-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
}

.pstat--danger .pstat-value { color: #c0392b; }

/* ── Overspent warning ── */
.overspent-warning {
  margin-top: 0.85rem;
  padding: 0.45rem 0.75rem;
  background: #fdecea;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  font-size: 0.82rem;
  color: #842029;
  font-weight: 500;
}

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.bc-link { color: #1a5c38; text-decoration: none; }
.bc-link:hover { text-decoration: underline; }
.bc-sep { color: #aaa; }
.bc-current { color: #333; font-weight: 500; }

/* ── Detail sections ── */
.detail-section { margin-top: 2rem; }

.section-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a5c38;
}

/* ── Project info card grid ── */
.detail-info-card { margin-bottom: 0; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 1.5rem;
}

.info-item-full { grid-column: 1 / -1; }

.info-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin-bottom: 0.2rem;
}

.info-value {
  font-size: 0.95rem;
  color: #1a1a1a;
}

/* ── Total row in tables ── */
.total-row {
  background: #f2f7f4;
  border-top: 2px solid #d4e6da !important;
}
.total-row td { padding: 0.7rem 1rem; }

/* ── Clickable row link ── */
.row-link {
  color: #1a5c38;
  text-decoration: none;
  font-weight: 600;
}
.row-link:hover { text-decoration: underline; }

/* ── Required star ── */
.req { color: #c0392b; margin-left: 2px; }

/* ── Utility ── */
.text-right { text-align: right; }
.text-muted  { color: #888; font-size: 0.85rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* ── Navbar user area ── */
.nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  padding-left: 1rem;
}

.nav-user-email {
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

/* ── Login overlay ── */
.login-overlay {
  position: fixed;
  inset: 0;
  background: #f5f6f8;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-overlay.hidden { display: none; }

.login-card {
  background: #fff;
  border: 1px solid #dce3e0;
  border-radius: 8px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.login-logo {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-logo .org-name {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #888;
  margin-bottom: 0.35rem;
}

.login-logo h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a5c38;
  margin: 0;
}

.login-card h2 {
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  color: #444;
  margin-bottom: 1.25rem;
}

.btn-block {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
}

/* ── Field-level validation ── */
.input-error {
  border-color: #c0392b !important;
  outline-color: #c0392b;
}
.field-error {
  display: block;
  color: #c0392b;
  font-size: 0.78rem;
  margin-top: 0.25rem;
  line-height: 1.3;
}

/* ── Reports view ── */
.report-selector-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.report-selector-row select {
  flex: 1;
  min-width: 220px;
  max-width: 400px;
}

.report-print-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f2f7f4;
  border: 1px solid #c6dece;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: #1a5c38;
}

/* ── Report document (on-screen) ── */
#report-output {
  background: #fff;
  border: 1px solid #dce3e0;
  border-radius: 6px;
  padding: 2rem 2.5rem;
  max-width: 860px;
}

.rpt-header {
  text-align: center;
  border-bottom: 2px solid #1a5c38;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.rpt-org {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #555;
  margin-bottom: 0.2rem;
}

.rpt-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a5c38;
  margin: 0 0 0.2rem;
}

.rpt-meta { font-size: 0.8rem; color: #888; margin: 0; }

.rpt-section {
  margin-bottom: 2rem;
}

.rpt-section-heading {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a5c38;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.3rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.rpt-activity {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed #e0e0e0;
}
.rpt-activity:last-child { border-bottom: none; }

.rpt-activity-heading {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.rpt-activity-meta {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 0.5rem;
}

.rpt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.rpt-table thead tr {
  background-color: #1a5c38;
  color: #fff;
}

.rpt-table thead th {
  padding: 0.45rem 0.75rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rpt-table tbody td {
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.rpt-table .total-row td {
  border-top: 2px solid #1a5c38;
  border-bottom: none;
  background: #f2f7f4;
  padding-top: 0.5rem;
}

.rpt-narrow { max-width: 420px; }

.rpt-empty, .rpt-empty-cell {
  font-style: italic;
  color: #999;
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.rpt-info-table td:first-child {
  width: 180px;
  font-weight: 500;
  color: #555;
}

.signed-yes { color: #1a5c38; font-weight: 600; }
.signed-no  { color: #c0392b; }

.rpt-balance-danger td { color: #c0392b; font-weight: 600; }
.rpt-balance-ok    td { color: #1a5c38; font-weight: 600; }

.rpt-summary-table tbody tr:last-child td {
  font-size: 1.05rem;
  padding-top: 0.6rem;
}

@media (max-width: 600px) {
  #report-output { padding: 1rem; }
  .rpt-narrow { max-width: 100%; }
}
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* ── Printable Voucher Styles ──────────────────────────────── */
#voucher-print-template {
  display: none; /* Hidden on screen */
}

.p-voucher {
  background: white;
  width: 210mm;
  min-height: 148mm;
  padding: 10mm 12mm;
  border: 1px solid #1a3d7c;
  position: relative;
  font-family: 'Georgia', serif;
  color: #111;
  margin: 0 auto;
}

.p-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 60pt;
  font-weight: bold;
  color: rgba(26, 61, 124, 0.04);
  pointer-events: none;
  white-space: nowrap;
  text-transform: uppercase;
  z-index: 0;
}

.p-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 2px solid #1a3d7c;
  padding-bottom: 8px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.p-logo-box {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.p-header-text {
  text-align: center;
  flex: 1;
}

.p-inst-name {
  font-size: 11pt;
  font-weight: bold;
  color: #1a3d7c;
  text-transform: uppercase;
  line-height: 1.2;
}

.p-centre-name {
  font-size: 10pt;
  font-weight: bold;
  color: #1a5c1a;
  margin-top: 2px;
}

.p-centre-abbr {
  font-size: 8pt;
  color: #1a3d7c;
  font-style: italic;
}

.p-address {
  font-size: 7.5pt;
  color: #444;
  margin-top: 2px;
}

.p-voucher-title {
  text-align: center;
  font-size: 12pt;
  font-weight: bold;
  color: #1a3d7c;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 8px 0;
  border-top: 1px solid #1a3d7c;
  border-bottom: 1px solid #1a3d7c;
  padding: 3px 0;
  position: relative;
  z-index: 1;
}

.p-row {
  display: flex;
  gap: 15px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.p-field {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.p-field label {
  font-size: 7pt;
  font-weight: bold;
  color: #555;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.p-value {
  border-bottom: 1px solid #1a3d7c;
  font-size: 10pt;
  min-height: 18px;
  padding: 1px 0;
}

.p-textarea {
  min-height: 40px;
  line-height: 1.4;
}

.p-narrow { flex: 0 0 100px; }
.p-bold { font-weight: bold; }
.p-italic { font-style: italic; font-size: 9pt; background: #f9faff; padding-left: 5px; }
.p-mt-1 { margin-top: 5px; }

.p-signatures {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  position: relative;
  z-index: 1;
}

.p-sig-block {
  flex: 1;
  text-align: center;
}

.p-sig-line {
  border-bottom: 1px solid #1a3d7c;
  height: 30px;
  margin-bottom: 4px;
}

.p-sig-label {
  font-size: 7pt;
  font-weight: bold;
  color: #555;
  text-transform: uppercase;
}

.p-sig-name-box {
  font-size: 8pt;
  color: #222;
  margin-top: 2px;
}

.p-footer {
  margin-top: 12px;
  font-size: 6.5pt;
  color: #777;
  text-align: center;
  border-top: 1px dashed #ccc;
  padding-top: 4px;
  position: relative;
  z-index: 1;
}
