:root {
  --ec-primary: #1445d8;
  --ec-primary-2: #1d8cff;
  --ec-cyan: #25d4f2;
  --ec-ink: #101828;
  --ec-muted: #667085;
  --ec-soft: #f5f8ff;
  --ec-card: #ffffff;
  --ec-border: rgba(16, 24, 40, 0.12);
  --ec-shadow: 0 20px 60px rgba(20, 69, 216, 0.14);
  --ec-gradient: linear-gradient(135deg, var(--ec-primary) 0%, var(--ec-primary-2) 55%, var(--ec-cyan) 100%);
}

.ec-admin-wrap,
.ec-app-shell,
.ec-auth-page {
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ec-ink);
}

.ec-auth-page {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 18px;
  background: var(--ec-gradient);
  overflow: hidden;
  border-radius: 24px;
}

.ec-blob {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(6px);
}

.ec-blob-a {
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, 0.2);
  top: -80px;
  right: -70px;
}

.ec-blob-b {
  width: 260px;
  height: 260px;
  background: rgba(37, 212, 242, 0.35);
  bottom: -90px;
  left: -80px;
}

.ec-blob-c {
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.25);
  top: 28%;
  left: 8%;
}

.ec-auth-card {
  position: relative;
  z-index: 2;
  width: min(100%, 500px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 30px 90px rgba(4, 31, 92, 0.25);
}

.ec-auth-brand,
.ec-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ec-auth-brand {
  margin-bottom: 20px;
}

.ec-logo {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--ec-gradient);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 10px 25px rgba(20, 69, 216, 0.25);
}

.ec-auth-brand h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
}

.ec-auth-brand p,
.ec-brand span,
.ec-page-title p,
.ec-stat-card span,
.ec-big-number span,
.ec-product-grid span,
.ec-feature span {
  color: var(--ec-muted);
  margin: 0;
}

.ec-auth-tabs {
  background: var(--ec-soft);
  border-radius: 16px;
  padding: 6px;
  margin-bottom: 22px;
}

.ec-auth-tabs .nav-link {
  width: 100%;
  border-radius: 12px;
  color: var(--ec-primary);
  font-weight: 700;
}

.ec-auth-tabs .nav-item {
  flex: 1;
}

.ec-auth-tabs .nav-link.active,
.ec-tabbar .nav-link.active {
  background: var(--ec-gradient);
  color: #fff;
}

.ec-form-stack {
  display: grid;
  gap: 12px;
}

.ec-form-stack label {
  font-weight: 700;
  color: var(--ec-ink);
  margin-bottom: -6px;
}

.ec-form-stack .form-control,
.ec-form-stack .form-select,
.ec-mini-form .form-control,
.ec-mini-form .form-select {
  border-radius: 14px;
  border-color: var(--ec-border);
  min-height: 44px;
}

.ec-form-stack .btn,
.ec-actions .btn {
  border-radius: 14px;
  font-weight: 700;
}

.ec-alert {
  border-radius: 16px;
  border: 0;
}

.ec-app-shell {
  background: #f3f7ff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--ec-shadow);
}

.ec-app-header,
.ec-app-footer,
.ec-admin-hero {
  position: relative;
  overflow: hidden;
  background: var(--ec-gradient);
  color: #fff;
}

.ec-app-header {
  min-height: 84px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ec-app-header .ec-logo {
  background: rgba(255,255,255,0.18);
  color: #fff;
  box-shadow: none;
}

.ec-app-header .ec-brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.ec-app-header .ec-brand span,
.ec-app-footer span {
  color: rgba(255,255,255,0.82);
}

.ec-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
}

.ec-user-pill a {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
}

.ec-app-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 650px;
}

.ec-sidebar {
  background: #fff;
  padding: 22px 16px;
  border-right: 1px solid var(--ec-border);
}

.ec-sidebar nav {
  display: grid;
  gap: 8px;
}

.ec-sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  color: var(--ec-ink);
  text-decoration: none;
  font-weight: 700;
}

.ec-sidebar a:hover,
.ec-sidebar a.active {
  background: var(--ec-gradient);
  color: #fff;
}

.ec-main-content {
  padding: 28px;
}

.ec-page-title {
  margin-bottom: 20px;
}

.ec-page-title h2 {
  font-size: 30px;
  font-weight: 850;
  margin: 0;
}

.ec-panel,
.ec-stat-card,
.ec-product-card,
.ec-feature {
  background: var(--ec-card);
  border: 1px solid var(--ec-border);
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.06);
}

.ec-panel {
  padding: 22px;
}

.ec-panel h3,
.ec-panel h2 {
  font-weight: 800;
}

.ec-narrow {
  max-width: 720px;
}

.ec-stat-card {
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 120px;
}

.ec-stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  flex-shrink: 0;
}

.ec-stat-card strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.ec-big-number {
  display: grid;
  gap: 4px;
}

.ec-big-number strong {
  font-size: 34px;
  font-weight: 850;
  color: var(--ec-primary);
}

.ec-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ec-app-footer {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.ec-member-strip {
  padding: 16px;
  border-radius: 18px;
  background: var(--ec-soft);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ec-member-strip span {
  color: var(--ec-muted);
}

.ec-member-strip strong {
  color: var(--ec-primary);
}

.ec-product-card {
  padding: 20px;
  height: 100%;
}

.ec-product-card h3 {
  font-weight: 850;
}

.ec-product-card p {
  color: var(--ec-muted);
  min-height: 48px;
}

.ec-product-grid {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: var(--ec-soft);
}

.ec-product-grid strong {
  margin-bottom: 4px;
}

.ec-admin-hero {
  margin: 16px 0 20px;
  padding: 28px;
  border-radius: 24px;
}

.ec-admin-hero h1 {
  color: #fff;
  font-size: 34px;
  font-weight: 850;
  margin: 0 0 6px;
}

.ec-admin-hero p {
  color: rgba(255,255,255,0.86);
}

.ec-kicker {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.ec-tabbar {
  background: #fff;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid var(--ec-border);
  gap: 6px;
}

.ec-tabbar .nav-link {
  border-radius: 14px;
  color: var(--ec-primary);
  font-weight: 700;
}

.ec-mini-form {
  min-width: 190px;
  max-width: 240px;
}

.ec-feature {
  padding: 18px;
  display: grid;
  gap: 6px;
  min-height: 155px;
}

.ec-feature i {
  font-size: 28px;
  color: var(--ec-primary);
}

.ec-feature strong {
  font-size: 17px;
}

.ec-code {
  display: inline-block;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ec-soft);
  color: var(--ec-primary);
  font-size: 16px;
}

.ec-admin-wrap .table,
.ec-main-content .table {
  margin-bottom: 0;
}

.ec-admin-wrap .table thead th,
.ec-main-content .table thead th {
  background: var(--ec-soft);
  color: var(--ec-ink);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ec-admin-wrap .button,
.ec-admin-wrap .btn-primary,
.ec-main-content .btn-primary,
.ec-auth-card .btn-primary {
  background: var(--ec-gradient);
  border: 0;
}

@media (max-width: 900px) {
  .ec-app-body {
    grid-template-columns: 1fr;
  }

  .ec-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--ec-border);
  }

  .ec-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ec-app-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .ec-auth-card,
  .ec-panel {
    padding: 18px;
  }

  .ec-sidebar nav {
    grid-template-columns: 1fr;
  }

  .ec-main-content {
    padding: 18px;
  }

  .ec-page-title h2 {
    font-size: 24px;
  }
}

/* ENGENE Coop v1.0.1 additions */
.ec-loan-computation-preview {
  min-height: 160px;
}

.ec-preview-stat {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 18px;
  background: var(--ec-soft);
  border: 1px solid rgba(20, 69, 216, 0.08);
}

.ec-preview-stat span,
.ec-preview-stat small {
  color: var(--ec-muted);
}

.ec-preview-stat strong {
  font-size: 20px;
  color: var(--ec-primary);
}

.ec-due-calendar {
  border: 1px solid var(--ec-border);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
}

.ec-due-calendar .table-responsive {
  max-height: 420px;
  overflow: auto;
}

.ec-modal-content {
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(16, 24, 40, 0.28);
}

.ec-modal-content .modal-header {
  background: var(--ec-gradient);
  color: #fff;
}

.ec-modal-content .btn-close {
  filter: invert(1);
}

.ec-admin-wrap .modal {
  z-index: 100000;
}

.ec-admin-wrap .modal-backdrop {
  z-index: 99999;
}

.ec-admin-wrap form[onsubmit] {
  margin: 0;
}

.ec-product-card h3,
.ec-panel h2,
.ec-panel h3 {
  overflow-wrap: anywhere;
}

@media (max-width: 782px) {
  .ec-admin-wrap .modal-dialog {
    margin-top: 60px;
  }
}

/* ENGENE Coop v1.0.2 fullscreen shortcode app page */
body.ec-coop-standalone,
body.ec-coop-standalone.admin-bar {
  margin: 0 !important;
  padding: 0 !important;
  background: #f3f7ff;
  overflow-x: hidden;
}

body.ec-coop-standalone #wpadminbar {
  display: none !important;
}

body.ec-coop-standalone .ec-auth-page,
body.ec-coop-standalone .ec-app-shell {
  width: 100vw;
  max-width: 100vw;
  min-height: 100vh;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

body.ec-coop-standalone .ec-auth-page {
  min-height: 100vh;
}

body.ec-coop-standalone .ec-app-body {
  min-height: calc(100vh - 84px - 70px);
}

body.ec-coop-standalone .ec-app-footer {
  border-radius: 0;
}

body.ec-coop-standalone .ec-main-content {
  width: 100%;
  max-width: none;
}

@media (max-width: 782px) {
  body.ec-coop-standalone .ec-app-body {
    min-height: auto;
  }
}


/* ENGENE Coop v1.0.3 savings approvals, loan agreement, print/PDF view */
.ec-slip-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 18px;
  background: var(--ec-soft);
  border: 1px solid var(--ec-border);
  margin-bottom: 18px;
}

.ec-slip-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 850;
  color: var(--ec-ink);
}

.ec-slip-header p {
  margin: 4px 0 0;
  color: var(--ec-muted);
}

.ec-agreement-box {
  display: grid;
  gap: 4px;
  padding: 15px;
  border-radius: 16px;
  border: 1px solid var(--ec-border);
  background: #fff;
}

.ec-agreement-box span {
  color: var(--ec-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
}

.ec-agreement-box strong {
  color: var(--ec-ink);
  overflow-wrap: anywhere;
}

.ec-terms-text {
  padding: 14px;
  border-radius: 16px;
  background: #fff7e6;
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--ec-ink);
  line-height: 1.55;
}

.ec-signature-line {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  border-bottom: 2px solid var(--ec-ink);
  padding: 8px 4px 10px;
}

.ec-signature-line strong {
  font-size: 16px;
  color: var(--ec-ink);
  overflow-wrap: anywhere;
}

.ec-signature-line span {
  color: var(--ec-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
}

.ec-print-schedule .table-responsive,
.ec-print-schedule {
  max-height: none;
}

.ec-print-area {
  background: #fff;
  color: var(--ec-ink);
}

.ec-loan-review-content .ec-due-calendar .table-responsive {
  max-height: 330px;
}

@media print {
  body.ec-printing-agreement * {
    visibility: hidden !important;
  }

  body.ec-printing-agreement .ec-print-area,
  body.ec-printing-agreement .ec-print-area * {
    visibility: visible !important;
  }

  body.ec-printing-agreement .ec-print-area {
    position: absolute !important;
    inset: 0 auto auto 0 !important;
    width: 100% !important;
    padding: 20px !important;
    font-size: 12px;
  }

  body.ec-printing-agreement .modal,
  body.ec-printing-agreement .modal-dialog,
  body.ec-printing-agreement .modal-content,
  body.ec-printing-agreement .modal-body {
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  body.ec-printing-agreement .modal-header,
  body.ec-printing-agreement .modal-footer,
  body.ec-printing-agreement .modal-backdrop,
  body.ec-printing-agreement .btn {
    display: none !important;
  }

  body.ec-printing-agreement .ec-print-schedule .table-responsive,
  body.ec-printing-agreement .ec-due-calendar .table-responsive {
    max-height: none !important;
    overflow: visible !important;
  }
}

/* ENGENE Coop v1.0.4 GCash payment validation */
.ec-gcash-selected-amount {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ec-soft);
  color: var(--ec-primary);
  border: 1px solid rgba(20, 69, 216, 0.12);
}

.ec-payment-target option {
  color: var(--ec-ink);
}

.ec-panel .alert-warning .bi,
.ec-panel .alert-info .bi {
  margin-right: 4px;
}

.ec-admin-wrap .awaiting-mod {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #d63638;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

/* ENGENE Coop v1.0.6 shares, savings interest, and GCash API UI */
.ec-inline-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ec-inline-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(20, 69, 216, 0.08);
  color: var(--ec-primary);
  font-size: 12px;
  font-weight: 700;
}

.ec-panel .form-text {
  color: var(--ec-muted);
  font-size: 12px;
}

.ec-feature span {
  line-height: 1.35;
}

.ec-settings-note {
  border: 1px dashed rgba(20, 69, 216, 0.25);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(20, 69, 216, 0.06);
}


/* ENGENE Coop v1.0.8 payment modal scroll and member history */
.ec-loan-payment-modal .modal-dialog {
  max-height: calc(100vh - 1rem);
}

.ec-loan-payment-form {
  max-height: calc(100vh - 1rem);
  overflow: hidden;
}

.ec-loan-payment-form .modal-body {
  overflow-y: auto;
  max-height: calc(100vh - 190px);
  padding-bottom: 20px;
}

.ec-loan-payment-form .modal-footer {
  position: sticky;
  bottom: 0;
  z-index: 3;
  background: #fff;
  border-top: 1px solid var(--ec-border);
}

.ec-history-table {
  max-height: 560px;
  overflow: auto;
  border: 1px solid var(--ec-border);
  border-radius: 16px;
}

.ec-history-table table {
  min-width: 900px;
}

.ec-history-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

@media (max-width: 576px) {
  .ec-loan-payment-modal .modal-dialog {
    margin: 0.5rem;
    max-height: calc(100vh - 1rem);
  }

  .ec-loan-payment-form .modal-body {
    max-height: calc(100vh - 175px);
  }
}


/* Corporate income and expense chart */
.ec-corporate-chart-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(37, 212, 242, 0.16), transparent 28%),
    radial-gradient(circle at 8% 0%, rgba(20, 69, 216, 0.12), transparent 28%),
    #ffffff;
}

.ec-chart-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ec-primary);
  margin-bottom: 6px;
}

.ec-chart-net {
  min-width: 210px;
  padding: 14px 18px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid var(--ec-border);
  text-align: right;
}

.ec-chart-net span,
.ec-chart-mini-stat span {
  display: block;
  color: var(--ec-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ec-chart-net strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  margin-top: 4px;
}

.ec-chart-net.is-positive strong {
  color: #067647;
}

.ec-chart-net.is-negative strong {
  color: #b42318;
}

.ec-chart-filter {
  padding: 14px;
  border-radius: 18px;
  background: rgba(245, 248, 255, 0.92);
  border: 1px solid rgba(20, 69, 216, 0.08);
}

.ec-chart-filter .form-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--ec-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ec-chart-filter .form-control {
  border-radius: 14px;
  border-color: var(--ec-border);
  min-height: 42px;
}

.ec-chart-mini-stat {
  padding: 14px 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--ec-border);
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.04);
}

.ec-chart-mini-stat strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  color: var(--ec-ink);
}

.ec-income-expense-chart {
  min-height: 380px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(16, 24, 40, 0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), 0 18px 44px rgba(16, 24, 40, 0.06);
}

.ec-income-expense-chart canvas {
  display: block;
  width: 100%;
}

.ec-chart-legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 12px;
  color: var(--ec-muted);
  font-weight: 800;
  font-size: 13px;
}

.ec-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ec-legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  display: inline-block;
}

.ec-legend-dot.income {
  background: linear-gradient(135deg, #1445d8, #25d4f2);
}

.ec-legend-dot.expense {
  background: linear-gradient(135deg, #f5841f, #d92d20);
}

/* Financial report tables encoded from uploaded cooperative report */
.ec-financial-table {
  font-size: 13px;
  --bs-table-bg: #fff;
}
.ec-financial-table thead th {
  background: #f1f5ff;
  color: #0f2b6c;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-bottom: 1px solid rgba(20, 69, 216, .16);
}
.ec-financial-table td,
.ec-financial-table th {
  vertical-align: middle;
  border-color: rgba(16, 24, 40, .08);
}
.ec-financial-table .ec-row-heading td,
.ec-financial-table .ec-row-heading th {
  background: #f8faff;
  color: #1445d8;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ec-financial-table .ec-row-subtotal td {
  font-weight: 800;
  border-top: 1px solid rgba(16, 24, 40, .18);
}
.ec-financial-table .ec-row-total td {
  font-weight: 900;
  background: linear-gradient(90deg, rgba(20, 69, 216, .09), rgba(37, 212, 242, .07));
  border-top: 2px solid rgba(20, 69, 216, .24);
  border-bottom: 2px double rgba(16, 24, 40, .28);
}
.ec-financial-table .text-end {
  font-variant-numeric: tabular-nums;
}

/* Dividend and distributable surplus refinements */
.ec-distribution-card,
.ec-member-surplus-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 40, .08);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(241,245,255,.92));
  box-shadow: 0 18px 42px rgba(16, 24, 40, .07);
}
.ec-distribution-card {
  padding: 18px;
  min-height: 104px;
}
.ec-distribution-card::after,
.ec-member-surplus-panel::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(20,69,216,.14), transparent 70%);
  right: -55px;
  top: -60px;
  pointer-events: none;
}
.ec-distribution-card span {
  display: block;
  color: var(--ec-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.ec-distribution-card strong {
  color: #102a56;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.ec-member-surplus-panel {
  padding: 22px;
}
.ec-member-surplus-panel .ec-chart-mini-stat {
  height: 100%;
}

/* v1.0.17 Store, inventory, and admin console enhancements */
.ec-admin-console .ec-admin-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.ec-admin-side {
  position: sticky;
  top: 42px;
  min-height: calc(100vh - 80px);
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #0f3d91 0%, #0b2560 100%);
  color: #fff;
  box-shadow: 0 20px 55px rgba(15, 61, 145, .22);
  overflow: hidden;
}
.ec-admin-side::before,
.ec-admin-side::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  filter: blur(8px);
}
.ec-admin-side::before { right: -80px; top: -80px; }
.ec-admin-side::after { left: -90px; bottom: -90px; }
.ec-admin-side > * { position: relative; z-index: 1; }
.ec-admin-side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.ec-admin-side-brand i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,.16);
  font-size: 22px;
}
.ec-admin-side-brand strong { display: block; font-size: 16px; }
.ec-admin-side-brand span { display: block; opacity: .76; font-size: 12px; }
.ec-admin-nav-group { margin: 16px 0; }
.ec-admin-nav-group > span {
  display: block;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 700;
  margin: 0 0 8px;
}
.ec-admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 14px;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  margin-bottom: 4px;
  transition: .18s ease;
}
.ec-admin-nav-link:hover,
.ec-admin-nav-link.active {
  color: #0b2560;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,.14);
}
.ec-admin-nav-link i { width: 19px; text-align: center; }
.ec-admin-nav-link em {
  margin-left: auto;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #ffc107;
  color: #111827;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.ec-admin-main { min-width: 0; }
.ec-admin-product-thumb {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: #f8fafc;
  flex: 0 0 auto;
}
.ec-thumb-empty {
  display: grid;
  place-items: center;
  color: #64748b;
}
.ec-barcode-lines {
  height: 26px;
  max-width: 160px;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, #111827 0 2px, transparent 2px 4px, #111827 4px 5px, transparent 5px 8px);
  opacity: .72;
  margin-top: 4px;
}
.ec-store-title-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(13, 110, 253, .12);
  color: #0d6efd;
  text-decoration: none;
  font-weight: 700;
}
.ec-cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef5ff;
  color: #0d6efd !important;
  text-decoration: none;
  font-weight: 700;
}
.ec-store-card {
  height: 100%;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
  display: flex;
  flex-direction: column;
}
.ec-store-img {
  height: 180px;
  background: linear-gradient(135deg, #eef5ff, #f8fafc);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ec-store-img img { width: 100%; height: 100%; object-fit: cover; }
.ec-store-placeholder {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 28px;
  background: #fff;
  color: #0d6efd;
  box-shadow: 0 12px 28px rgba(13, 110, 253, .12);
  font-size: 38px;
}
.ec-store-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.ec-store-type {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0d6efd;
}
.ec-store-body h3 { font-size: 18px; margin: 4px 0 0; color: #0f172a; line-height: 1.2; }
.ec-store-price { white-space: nowrap; color: #0f172a; }
.ec-store-body p { color: #64748b; margin: 12px 0; min-height: 42px; }
.ec-store-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #475569; margin-top: auto; }
.ec-store-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.ec-store-cart { position: sticky; top: 24px; }
.ec-cart-list { display: grid; gap: 10px; }
.ec-cart-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 14px;
  background: #f8fafc;
}
.ec-cart-total {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 0;
  margin-top: 12px;
  border-top: 1px solid rgba(15,23,42,.08);
  font-size: 18px;
}
@media (max-width: 1180px) {
  .ec-admin-console .ec-admin-layout { grid-template-columns: 1fr; }
  .ec-admin-side { position: static; min-height: auto; }
}


/* ENGENE Coop v1.0.18 menu, store, admin notice, and product grid polish */
.ec-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.ec-app-header .ec-store-title-link {
  color: #ffffff !important;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.32);
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
}
.ec-app-header .ec-store-title-link i {
  color: #ffffff !important;
}
.ec-app-header .ec-store-title-link:hover,
.ec-app-header .ec-store-title-link:focus {
  color: #ffffff !important;
  background: rgba(255,255,255,.24);
  text-decoration: none;
}
.ec-app-header .ec-cart-pill {
  background: rgba(255,255,255,.96);
  color: var(--ec-primary) !important;
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 10px 26px rgba(4, 31, 92, .14);
}
.ec-app-header .ec-user-pill {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
}
.ec-sidebar {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(20, 69, 216, .16), transparent 28%),
    radial-gradient(circle at 98% 42%, rgba(37, 212, 242, .14), transparent 26%),
    #ffffff;
}
.ec-sidebar::before,
.ec-sidebar::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(8px);
}
.ec-sidebar::before {
  width: 180px;
  height: 180px;
  background: rgba(20, 69, 216, .10);
  top: -80px;
  left: -80px;
}
.ec-sidebar::after {
  width: 210px;
  height: 210px;
  background: rgba(37, 212, 242, .12);
  right: -105px;
  bottom: -90px;
}
.ec-sidebar nav {
  position: relative;
  z-index: 1;
}
.ec-admin-side::before {
  background: rgba(37, 212, 242, .24);
}
.ec-admin-side::after {
  background: rgba(20, 69, 216, .22);
}
.ec-admin-wrap .notice,
.ec-admin-console .notice,
.ec-admin-main .notice {
  background: #ffffff !important;
  border-left-color: var(--ec-primary) !important;
  color: #111827 !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}
.ec-admin-wrap .notice p,
.ec-admin-console .notice p,
.ec-admin-main .notice p,
.ec-admin-wrap .notice a,
.ec-admin-console .notice a,
.ec-admin-main .notice a,
.ec-admin-wrap .notice button,
.ec-admin-console .notice button,
.ec-admin-main .notice button {
  color: #111827 !important;
}
.ec-store-img {
  background:
    radial-gradient(circle at 18% 18%, rgba(37, 212, 242, .22), transparent 26%),
    radial-gradient(circle at 88% 20%, rgba(20, 69, 216, .18), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
}
.ec-store-img .ec-default-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ec-admin-product-thumb {
  object-fit: cover;
}
.ec-store-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ec-store-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 69, 216, .18);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .10);
}
.ec-store-body h3 {
  min-height: 44px;
}
.ec-store-body p {
  min-height: 58px;
}
@media (max-width: 900px) {
  .ec-header-actions {
    width: 100%;
    justify-content: flex-start;
  }
}


/* ENGENE Coop v1.0.19 header spacing, selectable loan terms, highlighted product prices, and POS polish */
.ec-portal-line {
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1.2;
}
.ec-app-header .ec-store-title-link {
  margin-left: 50px !important;
  align-self: center;
  vertical-align: middle;
  min-height: 34px;
  padding: 6px 13px;
}
.ec-app-header .ec-brand > div:last-child {
  display: grid;
  gap: 2px;
}
.ec-store-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,193,7,.22), rgba(255,255,255,.95));
  color: #8a4b00 !important;
  border: 1px solid rgba(255, 193, 7, .45);
  box-shadow: 0 10px 24px rgba(255, 193, 7, .18);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.01em;
}
.ec-store-price::before {
  content: "Price";
  display: inline-block;
  margin-right: 7px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(138, 75, 0, .78);
}
.ec-admin-price-highlight {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 193, 7, .22);
  color: #7a3f00;
  border: 1px solid rgba(255, 193, 7, .38);
}
.ec-pos-panel {
  position: sticky;
  top: 32px;
}
.ec-pos-barcode-input {
  min-height: 54px !important;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .04em;
  border: 2px solid rgba(20, 69, 216, .24) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.ec-pos-form .form-check {
  padding: 12px 14px 12px 42px;
  border-radius: 16px;
  background: #f7fbff;
  border: 1px solid rgba(20, 69, 216, .10);
}
@media (max-width: 640px) {
  .ec-portal-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .ec-app-header .ec-store-title-link {
    margin-left: 0 !important;
  }
}

/* ENGENE Coop v1.0.21 prorated dividends and POS cart workflow */
.ec-app-header .ec-store-title-link {
  margin-left: 0 !important;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.96) !important;
  color: var(--ec-primary) !important;
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 10px 26px rgba(4, 31, 92, .14);
  font-weight: 800;
}
.ec-app-header .ec-store-title-link i {
  color: var(--ec-primary) !important;
}
.ec-app-header .ec-store-title-link:hover,
.ec-app-header .ec-store-title-link:focus {
  background: #ffffff !important;
  color: var(--ec-primary) !important;
  transform: translateY(-1px);
}
.ec-portal-line {
  display: block;
}
.ec-pos-register .ec-pos-panel,
.ec-pos-register .ec-pos-checkout-panel {
  height: 100%;
}
.ec-pos-product-list {
  max-height: 520px;
  overflow: auto;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
}
.ec-pos-product-list table {
  margin-bottom: 0;
}
.ec-pos-cart-table-wrap {
  max-height: 360px;
  overflow: auto;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
}
.ec-pos-cart-row td {
  vertical-align: middle;
}
.ec-pos-total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
  border: 1px solid rgba(20,69,216,.12);
}
.ec-pos-total-line span {
  color: #475569;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 12px;
}
.ec-pos-total-line strong {
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
}
.ec-pos-customer-choice {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid rgba(20,69,216,.10);
}
.ec-pos-nonmember-box,
.ec-pos-member-box {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.08);
  background: #ffffff;
}
.ec-pos-scan-input {
  font-weight: 800;
  letter-spacing: .03em;
}
.ec-pos-submit:disabled {
  cursor: not-allowed;
  opacity: .55;
}
@media (max-width: 720px) {
  .ec-header-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .ec-app-header .ec-store-title-link,
  .ec-app-header .ec-cart-pill {
    min-height: 38px;
  }
}


/* v1.0.22 Instructions, changelog, and backup pages */
.ec-instruction-toc { position: sticky; top: 32px; }
.ec-toc-link { display:flex; align-items:center; gap:10px; padding:12px 14px; border-radius:16px; color:#24324b; text-decoration:none; font-weight:700; margin-bottom:8px; background:#f8fbff; border:1px solid #e8eef8; transition:.18s ease; }
.ec-toc-link i { color:#1769ff; font-size:1.05rem; }
.ec-toc-link:hover, .ec-toc-link.active { background:linear-gradient(135deg,#1f6fff,#21c5e8); color:#fff; transform:translateX(2px); box-shadow:0 12px 28px rgba(31,111,255,.18); }
.ec-toc-link:hover i, .ec-toc-link.active i { color:#fff; }
.ec-instruction-reader { overflow:hidden; }
.ec-instruction-heading { display:flex; align-items:flex-start; gap:18px; padding:20px; border-radius:24px; background:linear-gradient(135deg,#eef5ff,#f8fdff); border:1px solid #e5eefb; margin-bottom:18px; }
.ec-instruction-heading span { text-transform:uppercase; letter-spacing:.12em; font-size:.74rem; font-weight:900; color:#1769ff; }
.ec-instruction-heading h2 { margin:4px 0 8px; font-weight:900; color:#081b3a; }
.ec-instruction-heading p { margin:0; color:#43536e; }
.ec-instruction-icon { flex:0 0 62px; width:62px; height:62px; border-radius:20px; display:grid; place-items:center; background:linear-gradient(135deg,#1769ff,#22c7e8); color:#fff; box-shadow:0 18px 30px rgba(23,105,255,.22); font-size:1.65rem; }
.ec-important-box { padding:14px 16px; border-radius:16px; border:1px solid #b9e5d3; background:#eefaf5; color:#133a2a; }
.ec-formula-box { margin-top:14px; padding:16px; border-radius:18px; background:#0f1d3a; color:#fff; box-shadow:0 18px 35px rgba(15,29,58,.16); }
.ec-formula-box span { display:block; font-weight:800; margin-bottom:8px; color:#86d7ff; }
.ec-formula-box code { display:block; white-space:normal; color:#fff; background:rgba(255,255,255,.08); padding:12px; border-radius:12px; font-size:.95rem; }
.ec-guide-card { height:100%; display:flex; gap:12px; padding:16px; border-radius:18px; background:#fff; border:1px solid #e8eef8; box-shadow:0 10px 25px rgba(15,29,58,.05); }
.ec-guide-card i { color:#15945d; font-size:1.3rem; }
.ec-guide-card p { margin:0; color:#31415d; }
.ec-timeline { position:relative; padding-left:18px; }
.ec-timeline:before { content:""; position:absolute; left:5px; top:8px; bottom:8px; width:2px; background:linear-gradient(#1769ff,#22c7e8); border-radius:9px; }
.ec-changelog-item { position:relative; display:grid; grid-template-columns:100px 1fr; gap:16px; margin-bottom:16px; }
.ec-changelog-item:before { content:""; position:absolute; left:-18px; top:18px; width:12px; height:12px; border-radius:50%; background:#1769ff; box-shadow:0 0 0 5px #eaf2ff; }
.ec-changelog-version { font-weight:900; color:#1769ff; padding-top:12px; }
.ec-changelog-card { border:1px solid #e8eef8; border-radius:18px; padding:16px 18px; background:#fff; box-shadow:0 12px 28px rgba(15,29,58,.06); }
.ec-changelog-card h3 { font-size:1rem; font-weight:900; color:#081b3a; margin:0 0 8px; }
.ec-changelog-card ul { margin:0; padding-left:18px; color:#40506a; }
@media (max-width: 768px) { .ec-changelog-item { grid-template-columns:1fr; } .ec-changelog-version { padding-top:0; } .ec-instruction-heading { flex-direction:column; } }


/* v1.0.23 tabbed settings, editable branding, and full-width Manila footer */
.ec-settings-toc { position: sticky; top: 32px; }
.ec-settings-card {
  padding: 22px;
  border: 1px solid #e7eef9;
  box-shadow: 0 20px 55px rgba(15, 29, 58, .08);
}
.ec-settings-card .form-control,
.ec-settings-card .form-select,
.ec-settings-card textarea {
  border-radius: 14px;
  border-color: #d9e5f5;
}
.ec-settings-card label {
  color: #12213d;
  font-size: .88rem;
  letter-spacing: .01em;
}
.ec-settings-card .btn-lg {
  border-radius: 16px;
  padding: 12px 20px;
  font-weight: 800;
}
.ec-full-footer,
.ec-admin-footer {
  width: 100%;
  background: var(--ec-gradient);
  color: #fff;
  border-radius: 0;
  min-height: 76px;
  align-items: center;
}
.ec-admin-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding: 18px 22px;
  border-radius: 22px;
  box-shadow: 0 18px 38px rgba(20, 69, 216, .16);
}
.ec-footer-brand {
  display: grid;
  gap: 2px;
}
.ec-footer-brand strong,
.ec-admin-footer strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -.02em;
}
.ec-footer-brand span,
.ec-admin-footer span,
.ec-footer-brand small {
  color: rgba(255,255,255,.86) !important;
}
.ec-footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  text-align: right;
}
.ec-footer-meta a {
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 8px 12px;
}
.ec-footer-meta a:hover { background: rgba(255,255,255,.24); }
.ec-footer-meta span {
  color: rgba(255,255,255,.9) !important;
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 768px) {
  .ec-footer-meta { justify-content: flex-start; text-align: left; }
  .ec-admin-footer { border-radius: 18px; }
}


/* v1.0.24 full-width admin footer and red heart credit */
.ec-admin-console .ec-admin-layout {
  align-items: stretch;
}
.ec-admin-footer-full,
.ec-admin-footer {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 4px;
}
.ec-admin-footer-full {
  border-radius: 22px;
}
.ec-red-heart {
  color: #ef233c !important;
  font-weight: 1000;
  display: inline-block;
  margin: 0 3px;
  transform: translateY(-1px);
}
.ec-footer-meta a .ec-red-heart {
  color: #ff2d55 !important;
  text-shadow: 0 1px 8px rgba(255, 45, 85, .32);
}
@media (max-width: 1180px) {
  .ec-admin-footer-full,
  .ec-admin-footer { grid-column: auto; }
}


/* v1.0.25 contextual help dots and product upload hints */
.ec-help-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: #1f2a44;
}
.ec-help-dot {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e9f1ff, #dbeafe);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(29, 78, 216, .22), 0 6px 16px rgba(29, 78, 216, .14);
  cursor: help;
  line-height: 1;
}
.ec-help-dot:hover,
.ec-help-dot:focus {
  background: linear-gradient(135deg, #1d4ed8, #0f766e);
  color: #fff;
  outline: none;
}
.ec-form-stack .ec-help-label,
.ec-panel .ec-help-label {
  margin-top: 6px;
  margin-bottom: -4px;
}
.popover {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .18);
}
.popover-body {
  color: #1f2937;
  font-size: .88rem;
  line-height: 1.45;
}

/* v1.0.26 loan collectibles calendar, penalties, and admin footer fix */
.ec-admin-footer-full,
.ec-admin-footer {
  grid-column: 2;
  width: 100%;
}
.ec-loan-calendar-stat {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);
  border: 1px solid rgba(30, 64, 175, .10);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}
.ec-loan-calendar-stat::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  right: -56px;
  top: -58px;
  background: radial-gradient(circle, rgba(37, 99, 235, .22), rgba(37, 99, 235, 0));
}
.ec-loan-calendar-stat span {
  position: relative;
  z-index: 1;
  display: block;
  color: #64748b;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.ec-loan-calendar-stat strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 9px 0 4px;
  color: #0f2f6f;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 950;
  line-height: 1.08;
}
.ec-loan-calendar-stat small {
  position: relative;
  z-index: 1;
  color: #475569;
  font-weight: 600;
}
.ec-loan-calendar-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.ec-big-calendar {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
}
.ec-calendar-head,
.ec-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.ec-calendar-head div {
  padding: 12px 10px;
  text-align: center;
  font-weight: 900;
  color: #0f2f6f;
  background: linear-gradient(135deg, #eaf2ff, #f7fbff);
  border-right: 1px solid rgba(15, 23, 42, .06);
}
.ec-calendar-day {
  min-height: 132px;
  padding: 12px;
  color: #172554;
  text-decoration: none;
  border-top: 1px solid rgba(15, 23, 42, .06);
  border-right: 1px solid rgba(15, 23, 42, .06);
  background: #fff;
  transition: all .16s ease;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ec-calendar-day:hover {
  background: #f0f7ff;
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, .18);
}
.ec-calendar-day.is-empty {
  background: #f8fafc;
  pointer-events: none;
}
.ec-calendar-day strong {
  font-size: 1rem;
  font-weight: 950;
}
.ec-calendar-day small {
  color: #64748b;
  font-weight: 700;
}
.ec-calendar-day.has-due {
  background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
}
.ec-calendar-day.is-today {
  box-shadow: inset 0 0 0 2px rgba(22, 163, 74, .32);
}
.ec-calendar-day.is-selected {
  background: linear-gradient(135deg, #dbeafe 0%, #ffffff 100%);
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, .55);
}
.ec-cal-amount {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 9px;
  border-radius: 999px;
  background: #0f2f6f;
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
}
.ec-calendar-day em {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  font-size: .72rem;
  font-style: normal;
  font-weight: 900;
}
.ec-due-filter {
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, .07);
}
.ec-loan-due-table thead th {
  background: #f8fafc;
  color: #0f2f6f;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ec-collectible-total {
  color: #0f766e;
  font-size: 1rem;
}
@media (max-width: 1180px) {
  .ec-admin-footer-full,
  .ec-admin-footer { grid-column: auto; }
}
@media (max-width: 760px) {
  .ec-calendar-head { display: none; }
  .ec-calendar-grid { grid-template-columns: 1fr; }
  .ec-calendar-day { min-height: auto; }
}

/* v1.0.27 Governance and dividend layout */
.ec-dividend-summary-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}
.ec-dividend-summary-card::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -30px;
  top: -35px;
  border-radius: 999px;
  opacity: 0.16;
}
.ec-dividend-summary-card.share::after { background: #2563eb; }
.ec-dividend-summary-card.patronage::after { background: #f59e0b; }
.ec-dividend-summary-card.paid::after { background: #16a34a; }
.ec-dividend-summary-card.pending::after { background: #7c3aed; }
.ec-dividend-summary-card span,
.ec-dividend-summary-card small,
.ec-dividend-summary-card strong { position: relative; z-index: 1; }
.ec-dividend-summary-card span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #475569;
}
.ec-dividend-summary-card strong {
  display: block;
  margin-top: 12px;
  font-size: 1.55rem;
  color: #0f172a;
}
.ec-dividend-summary-card small {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-weight: 600;
}
.ec-approval-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.ec-delete-request-form .btn {
  border-radius: 999px;
  font-weight: 700;
}


/* v1.0.28 System Features and dividend layout refinements */
.ec-feature-toc .ec-toc-link span {
    line-height: 1.2;
}
.ec-feature-present-box {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(25, 135, 84, 0.08));
    border: 1px solid rgba(13, 110, 253, 0.15);
}
.ec-feature-present-box i {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-right: 8px;
    background: #0d6efd;
    color: #fff;
}
.ec-feature-present-box p {
    margin: 10px 0 0;
    color: #5f6b7a;
    font-size: 0.9rem;
}
.ec-feature-hero {
    position: relative;
    overflow: hidden;
    border: 0;
    background: linear-gradient(135deg, #0d6efd 0%, #083f8c 55%, #061f4a 100%);
    color: #fff;
    box-shadow: 0 18px 45px rgba(13, 110, 253, 0.22);
}
.ec-feature-hero .ec-kicker,
.ec-feature-hero p {
    color: rgba(255,255,255,0.86);
}
.ec-feature-hero h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 800;
    margin: 8px 0;
}
.ec-feature-card {
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}
.ec-feature-number {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    font-weight: 800;
}
.ec-feature-card p {
    margin: 0;
    color: #344054;
    line-height: 1.55;
}
.ec-module-tile {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(135deg, #ffffff, #f7faff);
    min-height: 112px;
}
.ec-module-tile > i {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #eef5ff;
    color: #0d6efd;
    font-size: 1.25rem;
}
.ec-module-tile strong {
    display: block;
    color: #111827;
    margin-bottom: 4px;
}
.ec-module-tile span {
    display: block;
    color: #667085;
    font-size: 0.9rem;
    line-height: 1.45;
}


/* License/API gate */
.ec-license-gate .ec-license-card { max-width: 720px; }
.ec-license-card code { white-space: normal; word-break: break-word; }
.ec-admin-nav-link[href*="engene-coop-license"] i { color: inherit; }

/* v1.0.41 Custom branding/theme settings */
.ec-brand-logo-img{
  width:44px;
  height:44px;
  border-radius:14px;
  object-fit:contain;
  background:rgba(255,255,255,.16);
  padding:5px;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}
.ec-logo.ec-logo-image{
  background:#fff;
  padding:6px;
  overflow:hidden;
}
.ec-logo.ec-logo-image img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.ec-logo-preview{
  min-height:86px;
  border:1px dashed #cbd5e1;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:#f8fafc;
  padding:10px;
}
.ec-logo-preview img{
  max-width:100%;
  max-height:70px;
  object-fit:contain;
}
.ec-logo-preview.empty{
  color:#64748b;
  font-weight:800;
}
.ec-plan-offerings-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px;
}
.ec-plan-offer-card{
  position:relative;
  overflow:hidden;
  border:1px solid #e5e7eb;
  border-radius:20px;
  padding:16px;
  background:#fff;
  box-shadow:0 12px 30px rgba(15,23,42,.06);
}
.ec-plan-offer-card::after{
  content:"";
  position:absolute;
  width:120px;
  height:120px;
  border-radius:999px;
  right:-55px;
  top:-55px;
  background:rgba(37,99,235,.12);
}
.ec-plan-offer-card.pro::after{background:rgba(245,158,11,.16);}
.ec-plan-offer-card.trial::after{background:rgba(168,85,247,.14);}
.ec-plan-offer-card > *{position:relative;z-index:1;}
.ec-plan-offer-card .ec-plan-tier{
  display:inline-flex;
  align-items:center;
  gap:5px;
  border-radius:999px;
  padding:5px 9px;
  font-size:11px;
  font-weight:900;
  background:#eff6ff;
  color:#1d4ed8;
}
.ec-plan-offer-card.pro .ec-plan-tier{background:#fffbeb;color:#b45309;}
.ec-plan-offer-card.trial .ec-plan-tier{background:#faf5ff;color:#7e22ce;}
.ec-plan-offer-card h3{font-size:18px;margin:10px 0 4px;font-weight:950;color:#0f172a;}
.ec-plan-offer-card .ec-plan-price{font-size:24px;font-weight:950;color:#0f172a;margin:8px 0 4px;}

/* v1.0.42 Theme preset selector and sidebar/license page refinements */
.ec-theme-preset-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:12px;
}
.ec-theme-preset-card{
  border:1px solid #e5e7eb;
  background:#fff;
  border-radius:18px;
  padding:12px;
  text-align:left;
  box-shadow:0 12px 28px rgba(15,23,42,.06);
  transition:.18s ease;
  cursor:pointer;
}
.ec-theme-preset-card:hover,
.ec-theme-preset-card.active{
  transform:translateY(-2px);
  border-color:var(--p2);
  box-shadow:0 18px 38px rgba(15,23,42,.12);
}
.ec-theme-preset-card.active{
  outline:3px solid rgba(37,99,235,.16);
}
.ec-theme-swatch{
  display:block;
  width:100%;
  height:62px;
  border-radius:14px;
  margin-bottom:10px;
  background:
    radial-gradient(circle at 82% 18%, var(--p3) 0 15%, transparent 16%),
    radial-gradient(circle at 12% 88%, rgba(255,255,255,.35) 0 15%, transparent 16%),
    linear-gradient(135deg,var(--p1),var(--p2) 56%,var(--p3));
}
.ec-theme-preset-card strong{display:block;color:#0f172a;font-weight:950;line-height:1.1;}
.ec-theme-preset-card small{display:block;color:#64748b;font-weight:800;margin-top:3px;}
.ec-theme-live-preview .ec-blob-c{
  width:150px;height:150px;right:34%;bottom:-70px;background:rgba(255,255,255,.18);
}
.ec-admin-side{
  background:var(--ec-sidebar-gradient, linear-gradient(180deg, #0f3d91 0%, #0b2560 100%)) !important;
}
.ec-admin-side::before{background:rgba(255,255,255,.16);}
.ec-admin-side::after{background:rgba(255,255,255,.10);}
.ec-admin-nav-link i{color:var(--ec-icon,#25d4f2) !important;}
.ec-admin-nav-link.active i{color:#fff !important;}
.ec-admin-hero .ec-blob-c{
  position:absolute;
  width:170px;
  height:170px;
  border-radius:999px;
  left:42%;
  bottom:-90px;
  background:rgba(255,255,255,.16);
  filter:blur(2px);
}
