/* =============================================================================
   EIM Finance Portal — eim-finance.css
   Brand: #292746 navy · #ff914d orange · Inter font
   ============================================================================= */

/* ─── Wrap & base reset ───────────────────────────────────────────────────── */
.eimf-wrap {
  max-width: 1280px;
  margin: 0 auto;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: #1a1a2e;
}
.eimf-wrap * {
  box-sizing: border-box;
}

/* ─── Scoped resets (fight hello-elementor / Elementor globals) ─────────── */
.eimf-wrap button:not([class*="eimf-"]),
.eimf-wrap [type="button"]:not([class*="eimf-"]),
.eimf-wrap [type="submit"]:not([class*="eimf-"]) {
  border: none;
  color: inherit;
  background: none;
  border-radius: 0;
}
.eimf-wrap button:not([class*="eimf-"]):hover,
.eimf-wrap button:not([class*="eimf-"]):focus {
  background: none;
  color: inherit;
}
.eimf-wrap a:not([class*="eimf-"]) {
  color: inherit;
  text-decoration: none;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.eimf-wrap .eimf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
  line-height: 1.4;
}
.eimf-wrap .eimf-btn--primary {
  background: #ff914d;
  border-color: #ff914d;
  color: #fff;
}
.eimf-wrap .eimf-btn--primary:hover,
.eimf-wrap .eimf-btn--primary:focus {
  background: #e07a3a;
  border-color: #e07a3a;
  color: #fff;
}
.eimf-wrap .eimf-btn--ghost {
  background: transparent;
  border-color: #d0cfdd;
  color: #292746;
}
.eimf-wrap .eimf-btn--ghost:hover,
.eimf-wrap .eimf-btn--ghost:focus {
  background: #f2f1f8;
  border-color: #b0aec8;
  color: #292746;
}
.eimf-wrap .eimf-btn--large {
  padding: 0.7rem 1.75rem;
  font-size: 1rem;
}
.eimf-wrap .eimf-btn--full {
  width: 100%;
  justify-content: center;
}
.eimf-wrap .eimf-btn--add-row {
  border-style: dashed;
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
}

/* ─── Navigation ────────────────────────────────────────────────────────── */
.eimf-nav {
  background: #292746;
  margin-bottom: 2rem;
}
.eimf-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.eimf-nav-brand {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #fff;
}
.eimf-nav-role {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.72rem;
  font-weight: 400;
  font-style: normal;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  color: #dddaf8;
}
.eimf-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.eimf-nav-link {
  display: block;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.875rem;
  transition:
    background 0.15s,
    color 0.15s;
}
.eimf-nav-link:hover,
.eimf-nav-link.is-active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.eimf-nav-link--logout {
  color: #ff914d;
}
.eimf-nav-link--logout:hover {
  background: rgba(255, 145, 77, 0.15);
  color: #ff914d;
}

/* ─── Notices ───────────────────────────────────────────────────────────── */
.eimf-notice {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin: 0 1rem 1.5rem;
  font-size: 0.9rem;
}
.eimf-notice--success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.eimf-notice--error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ─── Login ──────────────────────────────────────────────────────────────── */
.eimf-auth-wrap {
  display: flex;
  justify-content: center;
  padding: 3rem 1rem;
  min-height: 55vh;
}
.eimf-auth-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 32px rgba(41, 39, 70, 0.1);
  padding: 2.5rem;
  width: 100%;
  max-width: 460px;
}
.eimf-auth-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}
.eimf-auth-logo img {
  max-width: 160px;
  height: auto;
}
.eimf-auth-site-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #292746;
}
.eimf-auth-heading {
  text-align: center;
  margin-bottom: 1.5rem;
}
.eimf-auth-heading h2 {
  color: #292746;
  font-size: 1.4rem;
  margin: 0 0 0.4rem;
}
.eimf-auth-heading p {
  color: #666;
  font-size: 0.875rem;
  margin: 0;
}
.eimf-role-select {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.4rem;
}
.eimf-role-option {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border: 2px solid #e0dfed;
  border-radius: 8px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.eimf-role-option:has(input:checked) {
  border-color: #ff914d;
  background: #fff8f4;
}
.eimf-role-option input[type="radio"] {
  margin-top: 3px;
  accent-color: #ff914d;
  flex-shrink: 0;
}
.eimf-role-label strong {
  display: block;
  font-size: 0.9rem;
  color: #292746;
}
.eimf-role-label em {
  display: block;
  font-size: 0.78rem;
  color: #888;
  font-style: normal;
  margin-top: 0.1rem;
}
.eimf-field-group {
  margin-bottom: 1.25rem;
}
.eimf-field-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #292746;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.eimf-field-group input[type="password"] {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 2px solid #e0dfed;
  border-radius: 8px;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  transition: border-color 0.15s;
}
.eimf-field-group input[type="password"]:focus {
  outline: none;
  border-color: #ff914d;
}
.eimf-auth-submit {
  margin-top: 1.5rem;
}
.eimf-auth-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: #aaa;
}

/* ─── Toolbar ───────────────────────────────────────────────────────────── */
.eimf-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.eimf-toolbar-left {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.eimf-selector-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.eimf-selector-form label {
  font-size: 0.825rem;
  font-weight: 600;
  color: #292746;
}
.eimf-selector-form select {
  padding: 0.35rem 0.55rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
}

/* ─── Period heading ────────────────────────────────────────────────────── */
.eimf-period-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: #292746;
  padding: 0 1rem;
  margin-bottom: 1rem;
}

/* ─── Summary cards (monthly view) ─────────────────────────────────────── */
.eimf-summary-cards {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 1rem 2rem;
  background: #292746;
  border-radius: 8px;
  padding: 1.25rem;
}
.eimf-summary-card-item {
  flex: 1;
  min-width: 140px;
  text-align: center;
}
.eimf-card-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.25rem;
}
.eimf-card-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}
.eimf-card-value.eimf-neg {
  color: #ff6b6b;
}
.eimf-card-value.eimf-pos {
  color: #4ade80;
}

/* ─── Section blocks ────────────────────────────────────────────────────── */
.eimf-section {
  margin-bottom: 2rem;
  padding: 0 1rem;
}
.eimf-section-header {
  background: #292746;
  color: #fff;
  font-weight: 700;
  font-size: 0.825rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  border-radius: 4px 4px 0 0;
}
.eimf-section-header--summary {
  background: #1a1430;
}

/* ─── Tables ────────────────────────────────────────────────────────────── */
.eimf-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.eimf-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.875rem;
}
.eimf-table th {
  background: #3c3866;
  color: #fff;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.5rem 0.65rem;
  text-align: right;
  white-space: nowrap;
}
.eimf-table th.eimf-col-label,
.eimf-table td.eimf-col-label {
  text-align: left;
  min-width: 200px;
}

/* Annual: sticky first column */
.eimf-table--annual th.eimf-col-label {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #3c3866;
}
.eimf-table--annual td.eimf-col-label {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fafafa;
}
.eimf-table--annual tr:hover td.eimf-col-label {
  background: #f0eef8;
}

.eimf-table td {
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid #f0eff8;
  text-align: right;
  white-space: nowrap;
}
.eimf-table td.eimf-col-label {
  font-weight: 500;
  background: #fafafa;
}
.eimf-table td.eimf-notes-cell {
  text-align: left;
  color: #666;
  font-size: 0.8rem;
  white-space: normal;
  min-width: 180px;
}
.eimf-table tr:hover td {
  background: #f5f4fc;
}
.eimf-table tr:hover td.eimf-col-label {
  background: #eeedf8;
}

/* Summary rows */
.eimf-summary-row td {
  background: #f7f6fb;
  font-weight: 500;
}
.eimf-row--prev td {
  background: #eeecf8;
}
.eimf-row--actual td {
  background: #292746;
  color: #fff;
  font-weight: 700;
}
/* Fix: sticky label column overrides .eimf-row--actual background+color via higher specificity */
.eimf-table--annual .eimf-row--actual td.eimf-col-label,
.eimf-table--annual tr.eimf-row--actual:hover td.eimf-col-label {
  background: #292746;
  color: #fff;
}
.eimf-actual-neg {
  color: #ff6b6b !important;
}
.eimf-actual-pos {
  color: #4ade80 !important;
}
.eimf-total-row td {
  background: #292746 !important;
  color: #fff !important;
  font-weight: 700;
}
.eimf-spacer td {
  height: 10px;
  background: #fff !important;
  border: none;
}
.eimf-neg {
  color: #c0392b !important;
  font-weight: 600;
}
.eimf-total {
  font-weight: 700;
}
.eimf-zero {
  color: #ccc;
  font-size: 0.8em;
}

/* ─── Entry form ────────────────────────────────────────────────────────── */
.eimf-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.eimf-entry-header h2 {
  color: #292746;
  font-size: 1.2rem;
  margin: 0;
}
.eimf-period-selectors {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.eimf-table--entry th {
  text-align: left;
}
.eimf-table--entry th.eimf-col-amount,
.eimf-table--entry td:nth-child(2) {
  text-align: right;
}

.eimf-table--entry td {
  vertical-align: middle;
}

.eimf-amount-input {
  width: 120px;
  padding: 0.35rem 0.5rem;
  text-align: right;
  border: 1px solid #d0cfdd;
  border-radius: 4px;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
}
.eimf-label-input {
  width: 200px;
  padding: 0.35rem 0.5rem;
  border: 1px solid #d0cfdd;
  border-radius: 4px;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
}
.eimf-notes-input {
  width: 220px;
  padding: 0.35rem 0.5rem;
  border: 1px solid #d0cfdd;
  border-radius: 4px;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
}
.eimf-amount-input:focus,
.eimf-label-input:focus,
.eimf-notes-input:focus {
  outline: none;
  border-color: #ff914d;
  box-shadow: 0 0 0 2px rgba(255, 145, 77, 0.15);
}
.eimf-btn-remove {
  background: none;
  border: none;
  color: #c0392b;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.eimf-btn-remove:hover {
  background: #fdecea;
}
.eimf-custom-row td {
  background: #fff9f5;
}

.eimf-section--entry .eimf-section-header {
  cursor: default;
}

.eimf-entry-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem 1rem 2rem;
  flex-wrap: wrap;
}

/* ─── Monthly table ─────────────────────────────────────────────────────── */
.eimf-table--monthly {
  max-width: 700px;
}
.eimf-table--monthly .eimf-col-label {
  min-width: 220px;
}
.eimf-table--monthly .eimf-col-amount {
  width: 130px;
}
.eimf-table--monthly .eimf-col-notes {
  width: 260px;
}
/* ─── Opening Balance bar ─────────────────────────────────────────────── */
.eimf-opening-bar {
  padding: 0.6rem 1rem 1rem;
}
.eimf-opening-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.eimf-opening-readonly {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.eimf-opening-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: #292746;
  white-space: nowrap;
}
.eimf-opening-input {
  width: 130px;
  padding: 0.35rem 0.5rem;
  border: 2px solid #d0cfdd;
  border-radius: 6px;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  text-align: right;
}
.eimf-opening-input:focus {
  outline: none;
  border-color: #ff914d;
  box-shadow: 0 0 0 2px rgba(255, 145, 77, 0.15);
}
.eimf-btn--sm {
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
}
.eimf-opening-hint {
  font-size: 0.75rem;
  color: #999;
  font-style: italic;
}
/* ─── Page title (theme h1 on Finance Portal page) ─────────────────────── */
body.eimf-portal-page .entry-title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  color: #292746;
}

/* ─── Support / Beneficiary year-grid ───────────────────────────────────── */
.eimf-table--support-grid .eimf-col-label {
  min-width: 180px;
}
.eimf-table--support-grid th.eimf-col-type,
.eimf-table--support-grid td.eimf-col-type {
  text-align: center;
  width: 72px;
}
.eimf-table--support-grid th.eimf-col-month,
.eimf-table--support-grid td.eimf-col-month {
  text-align: center;
  width: 46px;
  min-width: 38px;
  padding: 0.3rem 0.2rem;
}

.eimf-month-link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.eimf-month-link:hover {
  color: #ff914d;
}

.eimf-type-separator .eimf-type-header {
  background: #f0eef8;
  color: #292746;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.65rem;
  border-top: 2px solid #e0dfed;
  text-align: left;
}

/* Status cells */
.eimf-status-cell {
  padding: 0.2rem !important;
}
.eimf-status-link {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}
.eimf-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 0.25rem;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}
.eimf-status-badge--paid {
  background: #d4edda;
  color: #155724;
}
.eimf-status-badge--partial {
  background: #fff3cd;
  color: #7a5c00;
}
.eimf-status-badge--unpaid {
  background: #f8d7da;
  color: #721c24;
}
.eimf-status-badge--none {
  background: #f0eff8;
  color: #bbb;
}

/* Support legend */
.eimf-support-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  padding: 0.75rem 0.25rem;
  font-size: 0.8rem;
  color: #666;
}
.eimf-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Type badges */
.eimf-type-badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.eimf-type-pastor {
  background: #ede8fb;
  color: #4527a0;
}
.eimf-type-school {
  background: #e3f2fd;
  color: #0d47a1;
}
.eimf-type-other {
  background: #f3f3f3;
  color: #555;
}
.eimf-type-staff {
  background: #e8f5e9;
  color: #1b5e20;
}
.eimf-type-scholarship {
  background: #fff3e0;
  color: #e65100;
}

/* ─── Support month table ────────────────────────────────────────────────── */
.eimf-table--support-month td {
  vertical-align: middle;
}
.eimf-table--support-month .eimf-col-amount {
  width: 120px;
}
.eimf-table--support-month .eimf-col-date {
  width: 140px;
}
.eimf-table--support-month .eimf-col-notes {
  min-width: 180px;
}
.eimf-table--support-month .eimf-col-type {
  width: 80px;
  text-align: center;
}
.eimf-table--support-month th,
.eimf-table--support-month td {
  text-align: left;
}
.eimf-table--support-month .eimf-col-amount {
  text-align: right;
}

.eimf-date-input {
  padding: 0.35rem 0.45rem;
  border: 1px solid #d0cfdd;
  border-radius: 4px;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  width: 130px;
}
.eimf-date-input:focus {
  outline: none;
  border-color: #ff914d;
  box-shadow: 0 0 0 2px rgba(255, 145, 77, 0.15);
}

/* ─── Form card (shared: beneficiaries + scholarships) ──────────────────── */
.eimf-form-card {
  background: #fff;
  border: 1px solid #e0dfed;
  border-top: none;
  padding: 1.25rem;
  border-radius: 0 0 6px 6px;
}
.eimf-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}
.eimf-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.eimf-form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #292746;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.eimf-form-group--wide {
  flex: 1;
  min-width: 220px;
}
.eimf-required {
  color: #c0392b;
  margin-left: 1px;
}
.eimf-form-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.1rem;
}

.eimf-text-input,
.eimf-select-input {
  padding: 0.4rem 0.65rem;
  border: 1.5px solid #d0cfdd;
  border-radius: 5px;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  min-width: 180px;
  background: #fff;
}
.eimf-text-input:focus,
.eimf-select-input:focus {
  outline: none;
  border-color: #ff914d;
  box-shadow: 0 0 0 2px rgba(255, 145, 77, 0.15);
}

/* ─── Beneficiaries list table ──────────────────────────────────────────── */
.eimf-table--bens th,
.eimf-table--bens td {
  text-align: left;
}
.eimf-table--bens .eimf-col-label {
  min-width: 180px;
}
.eimf-actions-cell {
  white-space: nowrap;
}

.eimf-row--inactive td {
  opacity: 0.5;
}
.eimf-row--inactive .eimf-actions-cell {
  opacity: 1;
}

.eimf-status-pill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.eimf-status-pill--active {
  background: #d4edda;
  color: #155724;
}
.eimf-status-pill--inactive {
  background: #f0eff8;
  color: #888;
}

/* Danger ghost button (deactivate / delete) */
.eimf-btn--danger-ghost {
  border-color: #f5c6cb !important;
  color: #721c24 !important;
}
.eimf-btn--danger-ghost:hover,
.eimf-btn--danger-ghost:focus {
  background: #fdecea !important;
  border-color: #d9838a !important;
  color: #721c24 !important;
}

/* ─── Scholarships table ────────────────────────────────────────────────── */
.eimf-table--scholarships th,
.eimf-table--scholarships td {
  text-align: left;
}
.eimf-table--scholarships .eimf-col-label {
  min-width: 180px;
}
.eimf-table--scholarships .eimf-col-amount {
  width: 110px;
  text-align: right !important;
}
.eimf-table--scholarships .eimf-col-date {
  width: 120px;
}
.eimf-table--scholarships tfoot .eimf-col-amount {
  text-align: right !important;
}

/* Empty state */
.eimf-empty-msg {
  padding: 1rem 1.25rem;
  color: #666;
  font-size: 0.875rem;
  background: #fafafa;
  border-top: 1px solid #f0eff8;
}

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .eimf-nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .eimf-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .eimf-summary-cards {
    flex-direction: column;
  }
  .eimf-auth-card {
    padding: 1.5rem;
  }
  .eimf-entry-header {
    flex-direction: column;
  }
  .eimf-table--annual th.eimf-col-label,
  .eimf-table--annual td.eimf-col-label {
    position: relative;
  }
}

/* ─── Summary cards ──────────────────────────────────────────────────────── */
.eimf-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem 0.5rem;
}
.eimf-summary-label {
  font-weight: 700;
  font-size: 0.8rem;
  color: #292746;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.eimf-summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  padding: 0 1rem 1.25rem;
}
@media (max-width: 920px) {
  .eimf-summary-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .eimf-summary-cards { grid-template-columns: repeat(2, 1fr); }
}
.eimf-summary-card {
  background: #fff;
  border: 1px solid #e8e8f0;
  border-radius: 10px;
  padding: 0.875rem;
  border-top: 3px solid var(--eimf-card-color, #292746);
}
.eimf-card--pastor      { --eimf-card-color: #4527a0; }
.eimf-card--school      { --eimf-card-color: #0d47a1; }
.eimf-card--staff       { --eimf-card-color: #1b5e20; }
.eimf-card--scholarship { --eimf-card-color: #e65100; }
.eimf-card--total       { --eimf-card-color: #292746; }
.eimf-summary-card__title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--eimf-card-color, #292746);
  margin-bottom: 0.6rem;
}
.eimf-summary-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.3rem;
  gap: 0.25rem;
}
.eimf-summary-card__label { font-size: 0.7rem; color: #888; }
.eimf-summary-card__value { font-size: 0.82rem; font-weight: 600; color: #333; }
.eimf-summary-card__value--paid { color: #27ae60; }
.eimf-summary-card__value--due  { color: #c0392b; }
.eimf-summary-card__badges {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid #f0f0f0;
}

/* ─── Annual totals column in year grid ──────────────────────────────────── */
.eimf-col-annual {
  background: #f4f2ff !important;
  font-weight: 600;
  color: #292746;
  white-space: nowrap;
  min-width: 70px;
  border-left: 2px solid #e0dcf5 !important;
}

/* ─── Outstanding section ────────────────────────────────────────────────── */
.eimf-outstanding {
  margin: 0 1rem 1.25rem;
  border: 1px solid #ffdabd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff9f5;
}
.eimf-outstanding__header {
  background: #ff914d;
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.eimf-outstanding .eimf-table-scroll { padding: 0; }

/* ─── Scholarship stats bar ──────────────────────────────────────────────── */
.eimf-sch-stats {
  display: flex;
  gap: 0.75rem;
  padding: 0 1rem 1.25rem;
  flex-wrap: wrap;
}
.eimf-sch-stat {
  flex: 1;
  min-width: 110px;
  background: #fff;
  border: 1px solid #e8e8f0;
  border-radius: 10px;
  padding: 0.875rem;
  text-align: center;
  border-top: 3px solid #292746;
}
.eimf-sch-stat__value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #292746;
}
.eimf-sch-stat__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin-top: 0.2rem;
}
.eimf-sch-yearly {
  margin: 0 1rem 1.25rem;
  background: #fff;
  border: 1px solid #e8e8f0;
  border-radius: 8px;
  overflow: hidden;
}
.eimf-sch-year-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 1rem;
  border-bottom: 1px solid #f5f5f5;
}
.eimf-sch-year-row:last-child { border-bottom: none; }
.eimf-sch-year-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #555;
  width: 38px;
  flex-shrink: 0;
}
.eimf-sch-year-bar-wrap {
  flex: 1;
  background: #f0eef8;
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
}
.eimf-sch-year-bar {
  height: 100%;
  background: #292746;
  border-radius: 4px;
  min-width: 3px;
}
.eimf-sch-year-amount {
  font-size: 0.75rem;
  font-weight: 600;
  color: #292746;
  width: 70px;
  text-align: right;
  flex-shrink: 0;
}

/* ─── Print button ───────────────────────────────────────────────────────── */
.eimf-btn--print { gap: 0.35rem; }

/* ─── Print styles ───────────────────────────────────────────────────────── */
@media print {
  #wpadminbar,
  .site-header,
  .site-footer,
  .eimf-nav,
  .eimf-toolbar,
  .eimf-summary-header,
  .eimf-summary-cards,
  .eimf-outstanding,
  .eimf-support-legend,
  .eimf-entry-actions,
  .eimf-sch-stats,
  .eimf-sch-yearly,
  .eimf-form-card { display: none !important; }

  .eimf-wrap { margin: 0; padding: 0; max-width: 100%; }
  .eimf-section { box-shadow: none; border: 1px solid #ccc; margin: 0; border-radius: 0; }
  .eimf-table { font-size: 9pt; }
  .eimf-table th, .eimf-table td { padding: 4px 6px; }

  .eimf-amount-input,
  .eimf-date-input,
  .eimf-notes-input {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    font-size: 9pt;
    width: auto !important;
    min-width: unset !important;
    box-shadow: none !important;
  }

  .eimf-type-separator td {
    background: #eee !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .eimf-total-row td {
    background: #f5f5f5 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
