/* ==========================================================================
   CBER e-Journal / Author Portal — Template 3 Editorial Workspace Bridge
   Layers CBER-Website 3 Author Portal design tokens & layout cleanly over
   Bootstrap 3 + jQuery DataTables / Datepicker / SweetAlert2 views.
   ========================================================================== */

:root {
  --ap-radius: 8px;
  --ap-warning: #8a5c20;
  --ap-warning-bg: #f6eedd;
  --ap-danger: #a33a37;
  --ap-danger-bg: #faeae8;
  --ap-success: #156256;
  --ap-success-bg: #e7f3ee;
  --ap-blue: #1e4b85;
  --ap-blue-bg: #eaf1fb;
}

[data-bs-theme="dark"] {
  --ap-warning: #e8c384;
  --ap-warning-bg: #362c1e;
  --ap-danger: #f3a69e;
  --ap-danger-bg: #3a2527;
  --ap-success: #9edbbf;
  --ap-success-bg: #1c3830;
  --ap-blue: #a4c8f2;
  --ap-blue-bg: #1e3148;
}

html[data-bs-theme="light"] {
  color-scheme: light;
}

html[data-bs-theme="dark"] {
  color-scheme: dark;
}

/* ─── BASE & TYPOGRAPHY FLOOR (ZERO MICRO-TEXT) ──────────────────────────── */
html {
  font-size: 16px;
}

body.ej-template-3 input[type="checkbox"],
body.ej-template-3 input[type="radio"] {
  accent-color: var(--action);
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 0;
  vertical-align: middle;
  cursor: pointer;
}

body.ej-template-3 {
  background-color: var(--page) !important;
  color: var(--ink) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

body.ej-template-3 h1,
body.ej-template-3 h2,
body.ej-template-3 h3,
body.ej-template-3 .ap-metric-value,
body.ej-template-3 .ap-calendar-number strong {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--ink);
}

body.ej-template-3 h3,
body.ej-template-3 h4 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.ej-template-3 a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

body.ej-template-3 a:hover,
body.ej-template-3 a:focus {
  color: var(--brand-hover);
  text-decoration: none;
}

body.ej-template-3 p {
  color: var(--muted);
}

body.ej-template-3 .eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 10px;
}

/* ─── BRAND-SYNCED DARK PANELS (AUTH STORY + CONFERENCE EVENT CARD) ──────── */
body.ej-template-3 .auth-story {
  background: linear-gradient(155deg, var(--navy) 0%, var(--panel) 100%);
  color: var(--panel-text);
}

body.ej-template-3 .auth-story:after {
  opacity: 0.09;
  background-image: linear-gradient(var(--panel-accent) 1px, transparent 1px),
    linear-gradient(90deg, var(--panel-accent) 1px, transparent 1px);
}

body.ej-template-3 .auth-story .brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--panel-text);
}

body.ej-template-3 .auth-story .brand-image {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  padding: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

body.ej-template-3 .auth-story .brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

body.ej-template-3 .auth-story .brand-word {
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--panel-text);
}

body.ej-template-3 .auth-story .brand-full {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--panel-muted);
}

body.ej-template-3 .auth-story .eyebrow {
  color: var(--panel-accent);
  font-size: 11px;
  letter-spacing: 0.18em;
}

body.ej-template-3 .auth-story h2 {
  color: var(--panel-text);
  font-size: clamp(38px, 3.9vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

body.ej-template-3 .auth-story h2 em {
  color: var(--panel-accent);
  font-style: italic;
}

body.ej-template-3 .auth-story p {
  color: var(--panel-muted);
  font-size: 14.5px;
  max-width: 390px;
  line-height: 1.75;
}

body.ej-template-3 .auth-path {
  margin-top: 34px;
  max-width: 390px;
  border-top: 1px solid var(--panel-line);
}

body.ej-template-3 .auth-path-row {
  border-bottom: 1px solid var(--panel-line);
  padding: 16px 0;
  gap: 18px;
}

body.ej-template-3 .auth-path-row > span {
  color: var(--panel-accent);
  font: 21px Georgia, serif;
}

body.ej-template-3 .auth-path-row strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--panel-text);
}

body.ej-template-3 .auth-path-row small {
  font-size: 12.5px;
  color: var(--panel-muted);
  margin-top: 3px;
}

body.ej-template-3 .auth-path-row .ap-icon {
  color: var(--panel-accent);
  width: 18px;
  height: 18px;
}

body.ej-template-3 .auth-story-footer {
  color: var(--panel-muted);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

/* Auth right panel */
body.ej-template-3 .auth-panel {
  background: var(--page);
  color: var(--ink);
}

body.ej-template-3 .auth-topline {
  font-size: 13px;
}

body.ej-template-3 .auth-topline-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

body.ej-template-3 .auth-content h1 {
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.15;
  margin: 0 0 10px;
}

body.ej-template-3 .auth-content.wide {
  padding: 20px 0 14px;
}

body.ej-template-3 .auth-content.wide .auth-badge {
  margin-bottom: 14px;
}

body.ej-template-3 .auth-content.wide .auth-subtitle {
  margin-bottom: 18px;
}

body.ej-template-3 .auth-content.wide .ap-field {
  margin-bottom: 13px;
}

body.ej-template-3 .auth-content h1 em {
  color: var(--brand);
  font-style: italic;
}

body.ej-template-3 .auth-subtitle {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 24px;
}

body.ej-template-3 .auth-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 7px 13px;
  margin-bottom: 20px;
}

body.ej-template-3 .auth-badge .ap-icon {
  width: 14px;
  height: 14px;
}

body.ej-template-3 .auth-switch {
  font-size: 13.5px !important;
  color: var(--muted);
  margin-top: 20px;
}

body.ej-template-3 .auth-or {
  font-size: 12px;
  margin: 22px 0 18px;
}

body.ej-template-3 .auth-footer {
  font-size: 12px;
  gap: 18px;
}

body.ej-template-3 .ap-preview-note {
  font-size: 12.5px;
  line-height: 1.65;
}

/* ─── BUTTONS & ICON BUTTONS ─────────────────────────────────────────────── */
body.ej-template-3 .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  min-height: 42px;
  padding: 9px 18px;
  line-height: 1.3;
  transition: all 0.16s ease;
  text-shadow: none;
  box-shadow: none;
}

body.ej-template-3 .btn-sm,
body.ej-template-3 .btn-xs {
  min-height: 32px;
  padding: 6px 12px;
  font-size: 12.5px;
}

body.ej-template-3 .btn-xs {
  min-height: 28px;
  padding: 4px 9px;
  font-size: 12px;
}

body.ej-template-3 .btn-brand,
body.ej-template-3 .btn-primary {
  background: var(--action) !important;
  border: 1px solid var(--action) !important;
  color: var(--action-text) !important;
}

body.ej-template-3 .btn-brand:hover,
body.ej-template-3 .btn-brand:focus,
body.ej-template-3 .btn-primary:hover,
body.ej-template-3 .btn-primary:focus {
  background: var(--action-hover) !important;
  border-color: var(--action-hover) !important;
  color: var(--action-hover-text) !important;
}

body.ej-template-3 .btn-outline-brand,
body.ej-template-3 .btn-default {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
}

body.ej-template-3 .btn-outline-brand:hover,
body.ej-template-3 .btn-default:hover {
  border-color: var(--brand) !important;
  color: var(--brand) !important;
  background: var(--soft) !important;
}

body.ej-template-3 .btn-danger {
  background: #c0392b !important;
  border-color: #c0392b !important;
  color: #ffffff !important;
}
body.ej-template-3 .btn-danger:hover,
body.ej-template-3 .btn-danger:focus {
  background: #a52e22 !important;
  border-color: #a52e22 !important;
  color: #ffffff !important;
}

body.ej-template-3 .btn-success {
  background: #157347 !important;
  border-color: #157347 !important;
  color: #ffffff !important;
}
body.ej-template-3 .btn-success:hover,
body.ej-template-3 .btn-success:focus {
  background: #115c39 !important;
  border-color: #115c39 !important;
  color: #ffffff !important;
}

body.ej-template-3 .btn-warning {
  background: #b45309 !important;
  border-color: #b45309 !important;
  color: #ffffff !important;
}
body.ej-template-3 .btn-warning:hover,
body.ej-template-3 .btn-warning:focus {
  background: #92400e !important;
  border-color: #92400e !important;
  color: #ffffff !important;
}

body.ej-template-3 .btn-info {
  background: #0369a1 !important;
  border-color: #0369a1 !important;
  color: #ffffff !important;
}
body.ej-template-3 .btn-info:hover,
body.ej-template-3 .btn-info:focus {
  background: #075985 !important;
  border-color: #075985 !important;
  color: #ffffff !important;
}

/* Legacy AdminLTE social buttons used by get_view.php / review_pending.php / review_completed.php */
body.ej-template-3 .btn-social.btn-bitbucket {
  background: #254a73 !important;
  border: 1px solid #254a73 !important;
  color: #ffffff !important;
}
body.ej-template-3 .btn-social.btn-bitbucket:hover,
body.ej-template-3 .btn-social.btn-bitbucket:focus {
  background: #1b3859 !important;
  border-color: #1b3859 !important;
  color: #ffffff !important;
}
[data-bs-theme="dark"] body.ej-template-3 .btn-social.btn-bitbucket {
  background: #335f91 !important;
  border-color: #3e6ea3 !important;
}
body.ej-template-3 .btn-social.btn-google {
  background: #b9382c !important;
  border: 1px solid #b9382c !important;
  color: #ffffff !important;
}
body.ej-template-3 .btn-social.btn-google:hover {
  background: #992c22 !important;
  border-color: #992c22 !important;
  color: #ffffff !important;
}
body.ej-template-3 .btn-group-vertical {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  min-width: 112px;
}
body.ej-template-3 .btn-group-vertical > .btn,
body.ej-template-3 .btn-group-vertical > a.btn {
  border-radius: 6px !important;
  margin-top: 0 !important;
  float: none !important;
  width: 100%;
  white-space: nowrap;
}
body.ej-template-3 .input-group-btn > .btn,
body.ej-template-3 .input-group-btn > input.btn {
  white-space: nowrap;
  min-height: 42px;
  height: 42px;
  padding: 0 16px;
}
body.ej-template-3 .display-hide {
  display: none;
}

body.ej-template-3 .w-100 {
  width: 100%;
}

body.ej-template-3 .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  transition: all 0.16s ease;
}

body.ej-template-3 .icon-button:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--soft);
}

/* Keep mobile menu hamburger hidden on desktop (>991px) */
body.ej-template-3 .ap-menu-button {
  display: none;
}
body.ej-template-3 .ap-topbar > .ap-inline {
  flex-wrap: nowrap;
  min-width: 0;
}

[data-bs-theme="light"] .theme-toggle .theme-sun { display: none; }
[data-bs-theme="dark"] .theme-toggle .theme-moon { display: none; }

/* ─── EDITORIAL SIDEBAR & TOPBAR SHELL ───────────────────────────────────── */
body.ej-template-3 .ap-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100dvh;
}

body.ej-template-3 .ap-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  height: 100dvh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  z-index: 1030;
}

body.ej-template-3 .ap-sidebar-brand {
  height: 76px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

body.ej-template-3 .ap-sidebar-brand .brand-image {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  padding: 3px;
  border: 1px solid var(--line);
  flex: none;
}

body.ej-template-3 .ap-sidebar-brand .brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body.ej-template-3 .ap-sidebar-brand .brand-word {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

body.ej-template-3 .ap-sidebar-brand small {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.3;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 10px;
}

body.ej-template-3 .ap-sidebar nav {
  padding: 16px 12px;
  overflow-y: auto;
  flex: 1;
}

body.ej-template-3 .ap-nav-group {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  padding: 8px 12px 5px;
  margin: 10px 0 4px;
}

body.ej-template-3 .ap-nav-group:first-child {
  margin-top: 0;
}

body.ej-template-3 .ap-nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 12px;
  margin: 2px 0;
  border-radius: 6px;
  position: relative;
  min-height: 40px;
}

body.ej-template-3 .ap-nav-link:hover {
  color: var(--brand);
  background: var(--tint);
}

body.ej-template-3 .ap-nav-link.active {
  background: var(--soft);
  color: var(--brand);
  font-weight: 650;
}

body.ej-template-3 .ap-nav-link.active:before {
  content: '';
  position: absolute;
  width: 3px;
  height: 22px;
  left: 0;
  top: 9px;
  background: var(--brand);
  border-radius: 2px;
}

body.ej-template-3 .ap-nav-number {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  min-width: 22px;
  height: 21px;
  padding: 0 6px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

body.ej-template-3 .ap-nav-number.attention {
  background: var(--ap-warning-bg);
  color: var(--ap-warning);
  border-color: transparent;
}

body.ej-template-3 .ap-side-support {
  background: var(--page);
  border: 1px solid var(--line);
  padding: 14px 14px;
  border-radius: 7px;
  margin: 16px 6px 6px;
}

body.ej-template-3 .ap-side-support h3 {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 5px;
  color: var(--ink);
}

body.ej-template-3 .ap-side-support p {
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 10px;
}

body.ej-template-3 .ap-side-support .ap-link {
  font-size: 12.5px;
}

body.ej-template-3 .ap-sidebar-bottom {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

body.ej-template-3 .ap-author-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  min-width: 0;
  flex: 1;
}

body.ej-template-3 .ap-author-name strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.ej-template-3 .ap-author-name small {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.ej-template-3 .ap-avatar {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 1px solid var(--line);
  overflow: hidden;
}

body.ej-template-3 .ap-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sticky Topbar */
body.ej-template-3 .ap-topbar {
  min-height: 76px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 32px;
  position: sticky;
  top: 0;
  z-index: 1020;
}

body.ej-template-3 .ap-top-title {
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 650;
}

body.ej-template-3 .ap-top-title span {
  font-size: 12.5px;
  color: var(--muted);
  margin-left: 12px;
  font-weight: 400;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}

body.ej-template-3 .ap-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.ej-template-3 .ap-top-actions > a.ap-public-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
}

body.ej-template-3 .ap-top-actions > a.ap-public-link:hover {
  color: var(--brand);
  background: var(--tint);
}

body.ej-template-3 .ap-top-actions .icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
}

body.ej-template-3 .ap-content {
  padding: 26px 32px 38px;
  max-width: 1440px;
  margin: 0 auto;
  min-height: calc(100dvh - 140px);
}

body.ej-template-3 .ap-breadcrumb {
  font-size: 12.5px;
  margin-bottom: 20px;
}

body.ej-template-3 .ap-pagehead {
  margin-bottom: 22px;
}

body.ej-template-3 .ap-pagehead h1 {
  font-size: clamp(28px, 2.7vw, 40px);
  letter-spacing: -0.025em;
  margin: 0 0 6px;
  line-height: 1.15;
}

body.ej-template-3 .ap-pagehead h1 em {
  color: var(--brand);
  font-style: italic;
}

body.ej-template-3 .ap-pagehead p {
  font-size: 14px;
}

body.ej-template-3 .ap-app-footer {
  border-top: 1px solid var(--line);
  padding: 16px 32px;
  font-size: 12.5px;
  color: var(--muted);
  background: var(--surface);
}

/* ─── DASHBOARD METRICS, PANELS & EVENT CARD ─────────────────────────────── */
body.ej-template-3 .ap-metric {
  background: var(--surface);
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--ap-radius);
  display: block;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

body.ej-template-3 .ap-metric:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(8, 8, 93, 0.08);
}

body.ej-template-3 .ap-metric-top {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

body.ej-template-3 .ap-metric-value {
  font-size: 36px;
  margin: 14px 0 8px;
  color: var(--ink);
}

body.ej-template-3 .ap-metric-note {
  font-size: 12px;
  color: var(--muted);
}

body.ej-template-3 .ap-action-callout h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink);
}

body.ej-template-3 .ap-action-callout p {
  font-size: 13px;
}

body.ej-template-3 .ap-action-callout a {
  font-size: 13px;
}

body.ej-template-3 .ap-panel-title h2 {
  font-size: 22px;
  color: var(--ink);
}

body.ej-template-3 .ap-panel-title p {
  font-size: 12.5px;
}

body.ej-template-3 .ap-panel-title .ap-link {
  font-size: 13px;
}

body.ej-template-3 .ap-paper-row {
  color: var(--ink);
  transition: background-color 0.15s ease;
}

body.ej-template-3 .ap-paper-row:hover {
  background: var(--tint);
}

body.ej-template-3 .ap-paper-row h3 {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  margin: 6px 0 8px;
  max-width: none;
}

body.ej-template-3 .ap-paper-row .ap-meta {
  font-size: 12px;
  color: var(--muted);
}

body.ej-template-3 .ap-recordid {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}

body.ej-template-3 .ap-tag {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 99px;
}

body.ej-template-3 .ap-quick-item {
  display: block;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

body.ej-template-3 .ap-quick-item:hover {
  transform: translateY(-2px);
}

body.ej-template-3 .ap-quick-item h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 5px;
}

body.ej-template-3 .ap-quick-item p {
  font-size: 12.5px;
  line-height: 1.5;
}

body.ej-template-3 .ap-event-card {
  background: linear-gradient(155deg, var(--navy) 0%, var(--panel) 100%);
  color: var(--panel-text);
  border: 0;
  padding: 24px;
}

body.ej-template-3 .ap-event-card:after {
  border-color: var(--panel-accent);
  opacity: 0.28;
}

body.ej-template-3 .ap-event-card .eyebrow {
  color: var(--panel-accent);
}

body.ej-template-3 .ap-event-card h2 {
  color: var(--panel-text);
  font-size: 32px;
  margin: 12px 0 4px;
}

body.ej-template-3 .ap-event-card .ap-year {
  color: var(--panel-accent);
  font-size: 34px;
  margin-bottom: 14px;
}

body.ej-template-3 .ap-event-card p {
  color: var(--panel-muted);
  font-size: 13px;
  line-height: 1.6;
}

body.ej-template-3 .ap-event-card a {
  color: var(--panel-accent);
  font-size: 13px;
  font-weight: 600;
}

body.ej-template-3 .ap-timeline li {
  font-size: 13px;
  color: var(--ink);
}

body.ej-template-3 .ap-timeline li small {
  font-size: 12px;
}

/* Progress meter inside dashboard aside */
body.ej-template-3 .ap-dist-row {
  display: grid;
  grid-template-columns: 78px 1fr 40px;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
  font-size: 12.5px;
}
body.ej-template-3 .ap-dist-row:last-child { margin-bottom: 0; }
body.ej-template-3 .ap-dist-bar {
  height: 7px;
  border-radius: 99px;
  background: var(--tint);
  overflow: hidden;
}
body.ej-template-3 .ap-dist-bar > span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--brand);
}
body.ej-template-3 .ap-dist-row em {
  font-style: normal;
  font-weight: 700;
  text-align: right;
  color: var(--ink);
}

/* ─── BOOTSTRAP 3 INNER VIEWS BRIDGE (PORTLET / PANEL / DATATABLES / FORMS) ─ */
body.ej-template-3 section.content,
body.ej-template-3 section.content.ej-page {
  padding: 0;
  margin: 0;
}

body.ej-template-3 .portlet,
body.ej-template-3 .ej-card,
body.ej-template-3 .panel,
body.ej-template-3 .box {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--ap-radius) !important;
  box-shadow: 0 2px 10px rgba(10, 20, 39, 0.03) !important;
  margin-bottom: 22px;
  overflow: hidden;
}

body.ej-template-3 .portlet-title,
body.ej-template-3 .panel-heading,
body.ej-template-3 .box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 22px !important;
  background: var(--surface) !important;
  border-bottom: 1px solid var(--line) !important;
  color: var(--ink) !important;
  border-radius: 0 !important;
}

body.ej-template-3 .portlet-title .caption,
body.ej-template-3 .panel-title,
body.ej-template-3 .box-title {
  font-family: Georgia, serif !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  text-transform: none !important;
  letter-spacing: -0.015em;
  margin: 0;
}

body.ej-template-3 .portlet-title .caption .font-dark {
  color: var(--ink) !important;
  text-transform: none !important;
}

body.ej-template-3 .portlet-body,
body.ej-template-3 .panel-body,
body.ej-template-3 .box-body {
  padding: 22px !important;
  color: var(--ink);
  background: var(--surface);
}

body.ej-template-3 .panel-footer,
body.ej-template-3 .box-footer {
  padding: 16px 22px !important;
  background: var(--tint) !important;
  border-top: 1px solid var(--line) !important;
}

/* Forms & Bootstrap 3 controls */
body.ej-template-3 .form-control {
  background-color: var(--surface) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  border-radius: 6px !important;
  min-height: 42px;
  height: auto;
  padding: 9px 13px;
  font-size: 13.5px;
  box-shadow: none !important;
}

body.ej-template-3 .form-control:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand), transparent 85%) !important;
  outline: none;
}

body.ej-template-3 .form-control[disabled],
body.ej-template-3 .form-control[readonly] {
  background-color: var(--tint) !important;
  color: var(--muted) !important;
  opacity: 0.85;
}

body.ej-template-3 select.form-control.input-sm,
body.ej-template-3 input.form-control.input-sm {
  height: auto;
  min-height: 40px;
  line-height: 1.4;
}

body.ej-template-3 label,
body.ej-template-3 .control-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

body.ej-template-3 label.error,
body.ej-template-3 span.error {
  color: var(--ap-danger);
  font-size: 12px;
  font-weight: 500;
  display: block;
  margin-top: 5px;
}

body.ej-template-3 .input-group-addon {
  background: var(--tint);
  border-color: var(--line);
  color: var(--muted);
}

body.ej-template-3 hr {
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

/* intlTelInput & countrySelect dark/light harmony */
body.ej-template-3 .intl-tel-input {
  width: 100%;
  display: block;
}
body.ej-template-3 .intl-tel-input .selected-flag,
body.ej-template-3 .intl-tel-input.separate-dial-code .selected-dial-code {
  color: var(--ink);
}
body.ej-template-3 .intl-tel-input .country-list,
body.ej-template-3 .country-select .country-list {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  z-index: 1050;
}
body.ej-template-3 .intl-tel-input .country-list .country.highlight,
body.ej-template-3 .country-select .country-list .country.highlight {
  background: var(--soft);
}

/* DataTables & Tables */
body.ej-template-3 .table {
  color: var(--ink);
  border-color: var(--line) !important;
  margin-bottom: 0;
}

body.ej-template-3 .table > thead > tr > th {
  background: var(--tint) !important;
  color: var(--muted) !important;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-color: var(--line) !important;
  padding: 12px 14px !important;
  vertical-align: middle;
}

body.ej-template-3 .table > tbody > tr {
  background-color: var(--surface) !important;
}

body.ej-template-3 .table > tbody > tr > td {
  background-color: var(--surface) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
  padding: 13px 14px !important;
  font-size: 13.5px;
  vertical-align: middle;
}

body.ej-template-3 .table-striped > tbody > tr:nth-of-type(odd),
body.ej-template-3 .table-striped > tbody > tr:nth-of-type(odd) > td {
  background-color: var(--tint) !important;
}

body.ej-template-3 .table > tbody > tr:hover,
body.ej-template-3 .table > tbody > tr:hover > td {
  background-color: var(--soft) !important;
}

/* Remove DataTables scrollX phantom empty header row in scrollBody */
body.ej-template-3 .dataTables_scrollBody table > thead > tr > th,
body.ej-template-3 .dataTables_scrollBody table > thead > tr > td {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  line-height: 0 !important;
  height: 0 !important;
}

/* Global Select2, Bootstrap list-group & thumbnail dark/light harmonization */
body.ej-template-3 .select2-hidden-accessible {
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
}
body.ej-template-3 .select2-container {
  max-width: 100%;
  display: block;
}
body.ej-template-3 .select2-container--default .select2-selection--single {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  height: 40px !important;
  min-height: 40px !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  outline: none !important;
}
body.ej-template-3 .select2-container--default .select2-selection--multiple {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  min-height: 40px !important;
  border-radius: 6px !important;
  padding: 4px 8px !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
body.ej-template-3 .select2-container--default .select2-selection--single:hover,
body.ej-template-3 .select2-container--default .select2-selection--multiple:hover {
  border-color: color-mix(in srgb, var(--brand), var(--line) 55%) !important;
}
body.ej-template-3 .select2-container--default.select2-container--focus .select2-selection--single,
body.ej-template-3 .select2-container--default.select2-container--open .select2-selection--single,
body.ej-template-3 .select2-container--default.select2-container--focus .select2-selection--multiple,
body.ej-template-3 .select2-container--default.select2-container--open .select2-selection--multiple {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand), transparent 85%) !important;
  outline: none !important;
}
body.ej-template-3 select.error + .select2-container--default .select2-selection--single,
body.ej-template-3 select.error + .select2-container--default .select2-selection--multiple {
  border-color: var(--ap-danger) !important;
}
body.ej-template-3 .select2-container--default.select2-container--disabled .select2-selection--single,
body.ej-template-3 .select2-container--default.select2-container--disabled .select2-selection--multiple {
  background: var(--tint) !important;
  color: var(--muted) !important;
  opacity: 0.85;
  cursor: not-allowed;
}
body.ej-template-3 .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--ink) !important;
  font-size: 13.5px !important;
  line-height: 1.4 !important;
  padding: 0 36px 0 13px !important;
  display: block !important;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.ej-template-3 .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--muted) !important;
  opacity: 0.85;
}
body.ej-template-3 .select2-container--default .select2-selection--single .select2-selection__clear {
  color: var(--muted) !important;
  font-size: 16px;
  font-weight: 600;
  margin-right: 6px;
  line-height: 1;
}
body.ej-template-3 .select2-container--default .select2-selection--single .select2-selection__clear:hover {
  color: var(--ap-danger) !important;
}
body.ej-template-3 .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100% !important;
  width: 34px !important;
  top: 0 !important;
  right: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none;
}
body.ej-template-3 .select2-container--default .select2-selection--single .select2-selection__arrow b {
  position: static !important;
  margin: -3px 0 0 !important;
  width: 7px !important;
  height: 7px !important;
  border: 0 !important;
  border-right: 1.7px solid var(--muted) !important;
  border-bottom: 1.7px solid var(--muted) !important;
  transform: rotate(45deg);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
body.ej-template-3 .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  margin: 3px 0 0 !important;
  border-color: var(--brand) !important;
  transform: rotate(-135deg);
}
body.ej-template-3 .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 0 !important;
  margin: 0 !important;
}
body.ej-template-3 .select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: var(--soft) !important;
  border: 1px solid color-mix(in srgb, var(--brand), transparent 72%) !important;
  color: var(--brand) !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 600;
  padding: 2px 9px !important;
  margin: 0 !important;
  line-height: 1.45;
}
body.ej-template-3 .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: var(--brand) !important;
  margin-right: 5px !important;
  font-weight: 700;
  opacity: 0.75;
}
body.ej-template-3 .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: var(--ap-danger) !important;
  opacity: 1;
}
body.ej-template-3 .select2-container--default .select2-search--inline .select2-search__field {
  color: var(--ink) !important;
  font-size: 13px !important;
  margin: 2px 0 !important;
  min-height: 24px;
}
body.ej-template-3 .list-group-item {
  background: var(--tint) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  border-radius: 7px !important;
  padding: 12px 14px;
}
body.ej-template-3 .list-group-item b,
body.ej-template-3 .list-group-item strong {
  color: var(--ink) !important;
}
body.ej-template-3 .list-group-item .text-muted {
  color: var(--muted) !important;
}
body.ej-template-3 .list-group-item .mr-10 {
  margin-right: 12px;
}
body.ej-template-3 .help-block {
  color: var(--muted) !important;
  font-size: 12.5px;
  line-height: 1.55;
}
body.ej-template-3 .thumbnail {
  background: var(--tint);
  border-color: var(--line);
}
body.ej-template-3 .ej-page pre {
  white-space: normal;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.65;
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  color: var(--ink);
  border-radius: var(--ap-radius);
  padding: 14px 18px;
  margin-bottom: 20px;
}

/* Join as reviewer (.ej-review-wrap / .ej-hero / .ej-status / .ej-grid / .ej-card-lite) */
body.ej-template-3 .ej-review-wrap {
  margin-bottom: 20px;
}
body.ej-template-3 .ej-review-wrap .ej-hero {
  background: linear-gradient(155deg, var(--navy) 0%, var(--panel) 100%);
  color: var(--panel-text);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 16px;
}
body.ej-template-3 .ej-review-wrap .ej-hero .title {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--panel-text);
}
body.ej-template-3 .ej-review-wrap .ej-hero .sub {
  color: var(--panel-muted);
  font-size: 13.5px;
  margin-top: 4px;
}
body.ej-template-3 .ej-review-wrap .ej-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 8px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  margin-bottom: 16px;
}
body.ej-template-3 .ej-review-wrap .ej-status.is-active { border-left-color: var(--ap-success); }
body.ej-template-3 .ej-review-wrap .ej-status.is-action { border-left-color: var(--ap-warning); }
body.ej-template-3 .ej-review-wrap .ej-status .label {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  background: transparent;
  padding: 0;
}
body.ej-template-3 .ej-review-wrap .ej-status .message {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}
body.ej-template-3 .ej-review-wrap .ej-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
body.ej-template-3 .ej-review-wrap .ej-card-lite {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}
body.ej-template-3 .ej-review-wrap .ej-card-lite .title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}
body.ej-template-3 .ej-review-wrap .ej-card-lite .value {
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
  word-break: break-word;
}
@media (max-width: 767.98px) {
  body.ej-template-3 .ej-review-wrap .ej-grid { grid-template-columns: 1fr; }
}

body.ej-template-3 .dataTables_wrapper .dataTables_length label,
body.ej-template-3 .dataTables_wrapper .dataTables_filter label,
body.ej-template-3 .dataTables_wrapper .dataTables_info {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

body.ej-template-3 .dataTables_wrapper .dataTables_filter input,
body.ej-template-3 .dataTables_wrapper .dataTables_length select {
  min-height: 36px;
  padding: 6px 10px;
  display: inline-block;
  width: auto;
  margin: 0 6px;
}

body.ej-template-3 .pagination > li > a,
body.ej-template-3 .pagination > li > span {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  font-size: 13px;
}

body.ej-template-3 .pagination > .active > a,
body.ej-template-3 .pagination > .active > span {
  background: var(--action);
  border-color: var(--action);
  color: var(--action-text);
}

body.ej-template-3 .pagination > .disabled > a,
body.ej-template-3 .pagination > .disabled > span {
  background: var(--tint);
  border-color: var(--line);
  color: var(--muted);
}

/* Alerts & Modals (Bootstrap 3 compatible) */
body.ej-template-3 .alert {
  border-radius: var(--ap-radius);
  border: 1px solid var(--line);
  border-left-width: 3px;
  font-size: 13.5px;
  padding: 14px 18px;
}

body.ej-template-3 .alert-warning {
  background: var(--ap-warning-bg);
  border-color: color-mix(in srgb, var(--ap-warning), transparent 65%);
  border-left-color: var(--ap-warning);
  color: var(--ink);
}

body.ej-template-3 .alert-info {
  background: var(--ap-blue-bg);
  border-color: color-mix(in srgb, var(--ap-blue), transparent 65%);
  border-left-color: var(--ap-blue);
  color: var(--ink);
}

body.ej-template-3 .alert-success {
  background: var(--ap-success-bg);
  border-color: color-mix(in srgb, var(--ap-success), transparent 65%);
  border-left-color: var(--ap-success);
  color: var(--ink);
}

body.ej-template-3 .alert-danger {
  background: var(--ap-danger-bg);
  border-color: color-mix(in srgb, var(--ap-danger), transparent 65%);
  border-left-color: var(--ap-danger);
  color: var(--ink);
}

body.ej-template-3 .modal-content {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
}

body.ej-template-3 .modal-header,
body.ej-template-3 .modal-footer {
  border-color: var(--line);
  padding: 18px 22px;
}

body.ej-template-3 .modal-header .close {
  color: var(--ink);
  opacity: 0.7;
  text-shadow: none;
}

body.ej-template-3 .modal-header .close:hover {
  opacity: 1;
}

/* ─── VANILLA JS MOBILE DRAWER & APPEARANCE DRAWER ───────────────────────── */
.ap-drawer-backdrop[hidden],
.ej-appear-backdrop[hidden],
.ap-mobile-drawer[hidden],
.ej-appear-drawer[hidden] {
  display: none !important;
}

.ap-drawer-backdrop,
.ej-appear-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 39, 0.52);
  backdrop-filter: blur(2px);
  z-index: 100055;
}

.ap-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(295px, 86vw);
  background: var(--surface);
  color: var(--ink);
  border-right: 1px solid var(--line);
  z-index: 100060;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.ap-mobile-drawer__head,
.ej-appear-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.ap-mobile-drawer__head h2,
.ej-appear-drawer__head h2 {
  font-size: 22px;
  margin: 0;
}

.ap-mobile-drawer__body,
.ej-appear-drawer__body {
  padding: 16px 18px 24px;
  overflow-y: auto;
  flex: 1;
  overscroll-behavior: contain;
}

.ej-appear-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(390px, 94vw);
  background: var(--surface);
  color: var(--ink);
  border-left: 1px solid var(--line);
  z-index: 100060;
  display: flex;
  flex-direction: column;
  box-shadow: -18px 0 48px rgba(0, 0, 0, 0.24);
}

.ej-appear-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--tint);
  margin-bottom: 18px;
}

.ej-appear-identity img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 5px;
  padding: 2px;
  flex: none;
}

.ej-appear-identity strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink);
}

.ej-appear-identity small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.ej-appear-section {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 16px 0 0;
  margin: 0 0 18px;
}

.ej-appear-section legend {
  border: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  padding: 0;
  width: auto;
}

.ej-appear-brands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ej-appear-brand-btn {
  border: 1px solid var(--line);
  background: var(--page);
  color: var(--ink);
  border-radius: 7px;
  padding: 9px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ej-appear-brand-btn img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 4px;
  padding: 2px;
}

.ej-appear-brand-btn[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--soft);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.ej-appear-note {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 8px 0 0;
}

.ej-appear-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ej-mode-ico {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.ej-appear-modes button,
.ej-appear-pal-default,
.ej-appear-palettes button,
.ej-appear-tpl-link {
  border: 1px solid var(--line);
  background: var(--page);
  color: var(--ink);
  border-radius: 7px;
  padding: 9px 10px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.ej-appear-modes button:hover,
.ej-appear-pal-default:hover,
.ej-appear-palettes button:hover,
.ej-appear-tpl-link:hover,
.ej-appear-brand-btn:hover {
  border-color: var(--brand);
}

.ej-appear-modes button[aria-pressed="true"],
.ej-appear-pal-default[aria-pressed="true"],
.ej-appear-palettes button[aria-pressed="true"],
.ej-appear-tpl-link.is-active {
  border-color: var(--brand);
  background: var(--soft);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.ej-appear-pal-default {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  margin-bottom: 8px;
}

.ej-appear-pal-default[aria-pressed="true"]::after,
.ej-appear-palettes button[aria-pressed="true"]::after {
  content: '\2713';
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
}

.ej-appear-palettes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ej-appear-palettes button {
  justify-content: flex-start;
  text-align: left;
}

.ej-swatch-pair {
  display: inline-flex;
  border-radius: 99px;
  overflow: hidden;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(128, 138, 160, 0.38);
  flex: none;
}

.ej-swatch-pair i {
  flex: 1;
  display: block;
}

.ej-appear-custom {
  margin-top: 10px;
}

.ej-appear-custom summary {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  padding: 4px 0;
}

.ej-appear-custom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0 12px;
}

.ej-appear-custom-row label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
}

.ej-appear-color-inp {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ej-appear-color-inp input[type="color"] {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 2px;
  width: 34px;
  height: 34px;
  border-radius: 5px;
  flex: none;
  cursor: pointer;
}

.ej-appear-color-inp input[type="text"] {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.ej-appear-color-inp input[aria-invalid="true"] {
  border-color: var(--ap-danger);
}

.ej-appear-tpl-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ej-appear-tpl-link {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 11px 13px;
}

.ej-appear-tpl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ej-appear-tpl-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--action);
  color: var(--action-text);
  line-height: 1.4;
  flex: none;
}

.ej-appear-tpl-link small {
  font-weight: 400;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.ej-appear-drawer__foot {
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line);
  background: var(--tint);
}

.ej-appear-status {
  font-size: 12px;
  line-height: 1.45;
  color: var(--brand);
  margin: 0 0 8px;
}

.ej-appear-status:empty {
  display: none;
}

.ej-appear-foot-links {
  margin-top: 8px;
  display: flex;
  justify-content: flex-start;
}

.ej-appear-link-btn {
  background: transparent;
  border: 0;
  padding: 2px 0;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.ej-appear-link-btn:hover {
  color: var(--brand);
}

/* Password toggle inside auth pages */
body.ej-template-3 .ap-password button {
  top: 50%;
  transform: translateY(-50%);
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.ej-template-3 .ap-password button[aria-pressed="true"] .ej-eye-show { display: none; }
body.ej-template-3 .ap-password button[aria-pressed="false"] .ej-eye-hide { display: none; }

/* Responsive adjustments */
@media (max-width: 991.98px) {
  body.ej-template-3 .ap-shell { display: block; }
  body.ej-template-3 .ap-sidebar { display: none; }
  body.ej-template-3 .ap-menu-button { display: inline-flex; flex: none; }
  body.ej-template-3 .ap-top-title { display: none; }
  body.ej-template-3 .ap-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    white-space: nowrap;
  }
  body.ej-template-3 .ap-mobile-brand .brand-image {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    padding: 2px;
  }
  body.ej-template-3 .ap-topbar { padding: 10px 16px; min-height: 62px; gap: 10px; }
  body.ej-template-3 .ap-content { padding: 20px 16px 32px; }
  body.ej-template-3 .ap-app-footer { padding: 16px; }
}
@media (max-width: 767.98px) {
  body.ej-template-3 .ap-top-actions > a.ap-public-link { display: none !important; }
  body.ej-template-3 .ap-top-actions { gap: 8px; }
}

/* Membership view (.membership-wrap & .mem-*) light & dark harmonization */
body.ej-template-3 .membership-wrap,
body.ej-template-3 .mem-shell {
  --mem-bg: var(--page);
  --mem-ink: var(--ink);
  --mem-muted: var(--muted);
  --mem-card: var(--surface);
  --mem-border: var(--line);
  --mem-accent: var(--brand);
  --mem-accent-2: var(--ap-warning);
  --mem-success: var(--ap-success);
  --mem-danger: var(--ap-danger);
  --mem-shadow: none;
  background: transparent !important;
  padding: 0 !important;
}
body.ej-template-3 .mem-hero {
  background: linear-gradient(155deg, var(--navy) 0%, var(--panel) 100%) !important;
  color: var(--panel-text) !important;
  box-shadow: none !important;
}
body.ej-template-3 .mem-hero .title {
  font-family: Georgia, serif;
  font-size: 24px;
  color: var(--panel-text) !important;
}
body.ej-template-3 .mem-hero .sub {
  color: var(--panel-muted) !important;
}
body.ej-template-3 .mem-card,
body.ej-template-3 .mem-status,
body.ej-template-3 .mem-form,
body.ej-template-3 .mem-pay,
body.ej-template-3 .mem-summary,
body.ej-template-3 .mem-payment-box {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}
body.ej-template-3 .mem-status {
  border-left: 4px solid var(--brand) !important;
}
body.ej-template-3 .mem-status .label,
body.ej-template-3 .mem-card .title,
body.ej-template-3 .mem-form .control-label {
  color: var(--ink) !important;
  background: transparent !important;
}
body.ej-template-3 .mem-status .message,
body.ej-template-3 .mem-card .value,
body.ej-template-3 .mem-upload .hint {
  color: var(--muted) !important;
}
body.ej-template-3 .mem-upload,
body.ej-template-3 .mem-summary-row,
body.ej-template-3 .mem-tier-pill,
body.ej-template-3 .mem-note {
  background: var(--tint) !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}
body.ej-template-3 .mem-divider {
  border-top-color: var(--line) !important;
}
@media (max-width: 767.98px) {
  body.ej-template-3 .mem-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ─── LOCALHOST QUICK LOGIN CARD (DEV ONLY, LIGHT & DARK) ───────────────── */
.ej-local-auto-box {
  padding: 14px 15px;
  margin: 0 0 18px;
  border: 1px solid var(--line, #d7dfec);
  border-left: 3px solid var(--brand, #08085D);
  border-radius: 10px;
  background: var(--surface, #ffffff);
  box-shadow: 0 6px 18px rgba(10, 20, 39, 0.06);
}
.ej-local-auto-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--ink, #192337);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ej-local-auto-head .fa {
  margin-right: 5px;
  color: var(--brand, #08085D);
}
.ej-local-auto-head small {
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--soft, #eef2ff);
  color: var(--brand, #08085D);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.ej-local-auto-box .select2-container {
  width: 100% !important;
  text-align: left;
}
.ej-local-auto-box .select2-container--default .select2-selection--single {
  min-height: 44px !important;
  height: auto !important;
  border: 1px solid var(--line, #d5dce6) !important;
  border-radius: 7px !important;
  background: var(--page, #f8f9fc) !important;
  padding: 5px 0 !important;
}
.ej-local-auto-box .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--ink, #192337) !important;
  line-height: 1.4 !important;
  padding: 2px 36px 2px 12px !important;
  font-size: 13.5px !important;
}
.ej-local-auto-box .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100% !important;
  right: 0 !important;
}
.ej-local-divider {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 18px;
  color: var(--muted, #64748b);
  font-size: 11.5px;
}
.ej-local-divider:before,
.ej-local-divider:after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line, #d7dfec);
}
.ej-local-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 0;
  line-height: 1.3;
}
.ej-local-av {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--soft, #eef2ff);
  color: var(--brand, #08085D);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: none;
  border: 1px solid var(--line, #d7dfec);
}
.ej-local-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ej-local-copy {
  display: block;
  min-width: 0;
  flex: 1;
}
.ej-local-copy strong,
.ej-local-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ej-local-copy strong {
  color: var(--ink, #192337);
  font-size: 13px;
  font-weight: 650;
}
.ej-local-copy small {
  color: var(--muted, #596579);
  font-size: 11.5px;
}
.ej-local-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  flex-wrap: wrap;
}
.ej-local-meta em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--soft, #eef2ff);
  color: var(--brand, #08085D);
}
.ej-local-meta b {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--ap-success-bg, #e7f3ee);
  color: var(--ap-success, #156256);
}
body.ej-template-3 .select2-dropdown {
  background: var(--surface, #ffffff) !important;
  border: 1px solid var(--line, #d7dfec) !important;
  color: var(--ink, #192337) !important;
  border-radius: 8px !important;
  box-shadow: 0 14px 34px rgba(10, 20, 39, 0.14) !important;
  overflow: hidden;
  z-index: 100020 !important;
}
[data-bs-theme="dark"] body.ej-template-3 .select2-dropdown {
  border-color: color-mix(in srgb, var(--ink), transparent 82%) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48) !important;
}
body.ej-template-3 .select2-dropdown--below {
  margin-top: 4px !important;
}
body.ej-template-3 .select2-dropdown--above {
  margin-bottom: 4px !important;
}
body.ej-template-3 .select2-search--dropdown {
  padding: 8px !important;
  border-bottom: 1px solid var(--line, #d7dfec);
}
body.ej-template-3 .select2-search--dropdown.select2-search--hide {
  display: none !important;
}
body.ej-template-3 .select2-search--dropdown .select2-search__field {
  background: var(--page, #f8f9fc) !important;
  border: 1px solid var(--line, #d7dfec) !important;
  color: var(--ink, #192337) !important;
  border-radius: 6px !important;
  height: 36px !important;
  padding: 6px 11px !important;
  font-size: 13px !important;
  outline: none !important;
  box-shadow: none !important;
}
body.ej-template-3 .select2-search--dropdown .select2-search__field:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand), transparent 84%) !important;
}
body.ej-template-3 .select2-search--dropdown .select2-search__field::placeholder {
  color: var(--muted) !important;
  opacity: 0.85;
}
body.ej-template-3 .select2-results > .select2-results__options {
  padding: 5px !important;
  max-height: 260px !important;
}
body.ej-template-3 .select2-results__option {
  padding: 8px 11px !important;
  border-radius: 6px !important;
  font-size: 13.5px !important;
  line-height: 1.4 !important;
  color: var(--ink, #192337) !important;
  margin: 1px 0;
  transition: background-color 0.12s ease, color 0.12s ease;
}
body.ej-template-3 .select2-results__option:empty {
  display: none;
}
body.ej-template-3 .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--soft, #eef2ff) !important;
  color: var(--brand, #08085D) !important;
}
body.ej-template-3 .select2-container--default .select2-results__option[aria-selected="true"] {
  background: var(--tint, #f1f5f9) !important;
  color: var(--brand, #08085D) !important;
  font-weight: 600;
}
body.ej-template-3 .select2-container--default .select2-results__option--highlighted[aria-selected="true"] {
  background: var(--soft, #eef2ff) !important;
  color: var(--brand, #08085D) !important;
}
body.ej-template-3 .select2-results__message,
body.ej-template-3 .select2-results__option[aria-disabled="true"] {
  color: var(--muted) !important;
  font-size: 12.5px !important;
}

/* ─── MY MANUSCRIPTS WORKSPACE, FILTER TABS, TABLE CELLS & MODALS ────────── */
body.ej-template-3 .ej-ms-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--line);
  margin: 0 0 20px;
  scrollbar-width: none;
}
body.ej-template-3 .ej-ms-tabs::-webkit-scrollbar {
  display: none;
}
body.ej-template-3 .ej-ms-tabs button {
  flex: none;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  padding: 11px 2px;
  margin-bottom: -1px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
body.ej-template-3 .ej-ms-tabs button:hover {
  color: var(--ink);
}
body.ej-template-3 .ej-ms-tabs button.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 650;
}
body.ej-template-3 .ej-ms-tabs button small {
  font-size: 11.5px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 99px;
  background: var(--tint);
  color: var(--muted);
  line-height: 1.5;
}
body.ej-template-3 .ej-ms-tabs button.active small {
  background: var(--soft);
  color: var(--brand);
}

body.ej-template-3 .ej-ms-panel {
  padding: 0;
}
body.ej-template-3 .ej-ms-table-wrap {
  padding: 18px 20px 16px;
}

/* DataTables toolbar & pagination layout */
body.ej-template-3 div.dataTables_wrapper > div.row > div {
  text-align: left;
}
body.ej-template-3 #tbl-client_wrapper > .row:first-child,
body.ej-template-3 #tbl-client_wrapper > .row:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
body.ej-template-3 #tbl-client_wrapper > .row:first-child {
  margin: 0 0 14px;
}
body.ej-template-3 #tbl-client_wrapper > .row:last-child {
  margin: 14px 0 0;
}
body.ej-template-3 #tbl-client_wrapper > .row:first-child:before,
body.ej-template-3 #tbl-client_wrapper > .row:first-child:after,
body.ej-template-3 #tbl-client_wrapper > .row:last-child:before,
body.ej-template-3 #tbl-client_wrapper > .row:last-child:after {
  display: none !important;
  content: none !important;
}
body.ej-template-3 #tbl-client_wrapper > .row:first-child > [class*="col-"],
body.ej-template-3 #tbl-client_wrapper > .row:last-child > [class*="col-"] {
  width: auto;
  float: none;
  padding: 0;
}
body.ej-template-3 #tbl-client_wrapper .dataTables_filter {
  text-align: right;
}
body.ej-template-3 #tbl-client_wrapper .dataTables_filter label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  width: 100%;
}
body.ej-template-3 #tbl-client_wrapper .dataTables_filter input[type="search"] {
  width: 290px;
  max-width: 100%;
  margin: 0;
  min-height: 38px;
  padding: 7px 12px;
}
body.ej-template-3 #tbl-client_wrapper .dataTables_length label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
body.ej-template-3 #tbl-client_wrapper .dataTables_length select {
  margin: 0;
  min-height: 38px;
}
body.ej-template-3 #tbl-client_wrapper .dataTables_info {
  padding-top: 0;
}
body.ej-template-3 #tbl-client_wrapper .pagination {
  margin: 0;
}
body.ej-template-3 #tbl-client_wrapper .dataTables_scroll {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
body.ej-template-3 #tbl-client_wrapper .dataTables_scrollHead,
body.ej-template-3 #tbl-client_wrapper .dataTables_scrollBody {
  -webkit-overflow-scrolling: touch;
}
body.ej-template-3 #tbl-client_wrapper .dataTables_scrollHeadInner table,
body.ej-template-3 #tbl-client_wrapper .dataTables_scrollBody table {
  border: 0 !important;
  margin-bottom: 0 !important;
}
body.ej-template-3 .ej-ms-table th,
body.ej-template-3 .ej-ms-table td {
  box-sizing: border-box !important;
  padding: 11px 10px !important;
}
body.ej-template-3 .ej-ms-table thead > tr > th.sorting,
body.ej-template-3 .ej-ms-table thead > tr > th.sorting_asc,
body.ej-template-3 .ej-ms-table thead > tr > th.sorting_desc {
  padding-right: 22px !important;
}
body.ej-template-3 .ej-ms-table thead > tr > th:after {
  top: 50%;
  transform: translateY(-50%);
  right: 6px;
  font-size: 11px;
}
body.ej-template-3 .dataTables_processing {
  background: var(--surface) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(10, 20, 39, 0.12);
  padding: 10px 18px !important;
  height: auto !important;
  width: auto !important;
  margin-left: -95px !important;
  z-index: 10;
}
body.ej-template-3 .ej-dt-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

/* Manuscript column structure & balanced widths (all 8 columns fit 1440px, smooth scroll on mobile) */
body.ej-template-3 .ej-ms-table .ej-col-idx {
  width: 38px;
  min-width: 38px;
  text-align: center !important;
  color: var(--muted) !important;
  font-variant-numeric: tabular-nums;
}
body.ej-template-3 .ej-ms-table .ej-col-ref {
  min-width: 104px;
  white-space: nowrap;
  text-align: left !important;
}
body.ej-template-3 .ej-ref-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}
body.ej-template-3 .ej-ms-table .ej-col-ms {
  min-width: 245px;
  text-align: left !important;
}
body.ej-template-3 .ej-ms-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}
body.ej-template-3 .ej-ms-title {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.4;
}
body.ej-template-3 .ej-ms-authors {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.38;
}
body.ej-template-3 .ej-ms-meta {
  font-size: 11.5px;
  color: var(--muted);
  opacity: 0.88;
  line-height: 1.35;
}
body.ej-template-3 .ej-ms-table .ej-col-status {
  min-width: 128px;
  max-width: 160px;
}
body.ej-template-3 .ej-ms-table .ej-col-pay {
  min-width: 98px;
  text-align: center !important;
}
body.ej-template-3 .ej-ms-table .ej-col-action {
  min-width: 122px;
  text-align: center !important;
}
body.ej-template-3 .ej-ms-table .ej-col-view {
  min-width: 102px;
}
body.ej-template-3 .ej-ms-table .ej-col-email {
  min-width: 88px;
}
body.ej-template-3 .ej-ms-table .btn-xs {
  padding: 5px 8px;
  font-size: 12px;
  gap: 5px;
  white-space: normal;
  line-height: 1.25;
}

body.ej-template-3 .ej-td-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body.ej-template-3 .ej-td-actions > .btn,
body.ej-template-3 .ej-td-actions > a.btn {
  margin: 0 !important;
  white-space: nowrap;
}
body.ej-template-3 .ej-td-empty {
  color: var(--muted);
  font-size: 13px;
  opacity: 0.7;
  display: inline-block;
}
body.ej-template-3 .ap-tag.ej-pill-success {
  background: var(--ap-success-bg);
  color: var(--ap-success);
}
body.ej-template-3 .ap-tag.ej-pill-block {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
}
body.ej-template-3 .ap-tag.ej-pill-block:before {
  display: none;
}

/* Modal interior polish (Report, History Timeline, Withdraw, Upload, Email History) */
body.ej-template-3 .modal-body {
  padding: 22px;
  color: var(--ink);
}
body.ej-template-3 .modal-title {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  padding-right: 28px;
}
body.ej-template-3 .ej-modal-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 16px;
  color: var(--muted);
  font-size: 13px;
}
body.ej-template-3 .ej-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
body.ej-template-3 .ej-upload-preview {
  margin-top: 6px;
  font-size: 12.5px;
}
body.ej-template-3 .ej-upload-loader {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--brand);
  font-weight: 600;
}

/* Manuscript Report modal */
body.ej-template-3 .ej-report-summary {
  padding: 16px 18px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 16px;
}
body.ej-template-3 .ej-report-ref {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
body.ej-template-3 .ej-report-title {
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.4;
}
body.ej-template-3 .ej-report-status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}
body.ej-template-3 .ej-report-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
body.ej-template-3 .ej-report-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
body.ej-template-3 .ej-report-meta strong {
  color: var(--ink);
  font-size: 13.5px;
}
body.ej-template-3 .ej-report-field {
  margin-bottom: 14px;
}
body.ej-template-3 .ej-report-field:last-child {
  margin-bottom: 0;
}
body.ej-template-3 .ej-report-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}
body.ej-template-3 .ej-report-value {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.6;
}

/* History Timeline modal */
body.ej-template-3 .ej-log-timeline {
  margin: 0;
  padding: 4px 0 0;
}
body.ej-template-3 .ej-log-item {
  padding: 0 0 18px 24px !important;
}
body.ej-template-3 .ej-log-item:last-child {
  padding-bottom: 0 !important;
}
body.ej-template-3 .ej-log-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
body.ej-template-3 .ej-log-step {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}
body.ej-template-3 .ej-log-time {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
}
body.ej-template-3 .ej-log-msg {
  padding: 11px 14px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.55;
}

/* Email History modal table */
body.ej-template-3 .ej-modal-table th,
body.ej-template-3 .ej-modal-table td {
  padding: 10px 12px !important;
  font-size: 13px;
}

@media (max-width: 767.98px) {
  body.ej-template-3 .ej-ms-table-wrap {
    padding: 14px 14px 12px;
  }
  body.ej-template-3 #tbl-client_wrapper > .row:first-child {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  body.ej-template-3 #tbl-client_wrapper .dataTables_length,
  body.ej-template-3 #tbl-client_wrapper .dataTables_filter {
    text-align: left;
    width: 100%;
  }
  body.ej-template-3 #tbl-client_wrapper .dataTables_filter input[type="search"] {
    width: 100%;
  }
  body.ej-template-3 #tbl-client_wrapper > .row:last-child {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  body.ej-template-3 .modal-body {
    padding: 16px;
  }
  body.ej-template-3 .ej-log-time {
    margin-left: 0;
    width: 100%;
  }
}

/* ─── ADD MANUSCRIPT SUBMISSION WORKSPACE ────────────────────────────────── */
body.ej-template-3 .ej-submit-layout {
  align-items: start;
}
body.ej-template-3 .ej-submit-panel {
  padding: 26px 28px;
}
body.ej-template-3 .ej-form-section {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
body.ej-template-3 .ej-form-section:last-of-type {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}
body.ej-template-3 .ej-form-section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
body.ej-template-3 .ej-step-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--brand);
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 2px;
}
body.ej-template-3 .ej-form-section-head h2 {
  font-size: 20px;
  margin: 0 0 3px;
  line-height: 1.25;
}
body.ej-template-3 .ej-form-section-head p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
body.ej-template-3 .ej-author-counter {
  margin-left: auto;
  flex: none;
  align-self: center;
}
body.ej-template-3 .ej-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
body.ej-template-3 .ej-label-row label {
  margin-bottom: 0;
}
body.ej-template-3 .ej-word-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 2px 9px;
}

/* Authors list & co-author search */
body.ej-template-3 .ej-author-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
}
body.ej-template-3 .ej-author-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 12px 14px !important;
  margin: 0 !important;
  border-radius: 8px !important;
}
body.ej-template-3 .ej-author-rank {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
body.ej-template-3 .ej-author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  flex: none;
}
body.ej-template-3 .ej-author-info {
  min-width: 0;
  flex: 1;
}
body.ej-template-3 .ej-author-info strong {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.35;
}
body.ej-template-3 .ej-author-info small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.ej-template-3 .ej-you-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
  background: var(--soft);
  color: var(--brand);
}
body.ej-template-3 .ej-author-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
body.ej-template-3 .ej-author-controls .btn-group {
  display: inline-flex;
}
body.ej-template-3 .ej-author-controls .btn-xs {
  min-height: 28px;
  padding: 4px 8px;
}
body.ej-template-3 .ej-author-add-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--tint);
}
body.ej-template-3 .ej-author-add-panel .help-block {
  margin: 8px 0 0;
}
body.ej-template-3 .ej-author-not-found {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* Upload box, unified dropzone & supplementary file chips */
body.ej-template-3 .ej-upload-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
body.ej-template-3 .ej-dropzone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px dashed color-mix(in srgb, var(--brand), transparent 48%);
  border-radius: 8px;
  background: var(--tint);
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
  cursor: pointer;
}
body.ej-template-3 .ej-dropzone:hover,
body.ej-template-3 .ej-dropzone:focus-within {
  border-color: var(--brand);
  background: var(--soft);
}
body.ej-template-3 .ej-dropzone:focus-within {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand), transparent 84%);
}
body.ej-template-3 .ej-dropzone.is-dragging {
  border-color: var(--brand);
  border-style: solid;
  background: var(--soft);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand), transparent 82%);
}
body.ej-template-3 .ej-dropzone.has-file {
  border-style: solid;
  border-color: color-mix(in srgb, var(--brand), transparent 35%);
  background: var(--surface);
}
body.ej-template-3 .ej-dz-input {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  cursor: pointer !important;
  z-index: 2 !important;
}
body.ej-template-3 .ej-dz-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand), transparent 76%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
body.ej-template-3 .ej-dz-icon .ap-icon {
  width: 19px;
  height: 19px;
}
body.ej-template-3 .ej-dz-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
body.ej-template-3 .ej-dz-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
body.ej-template-3 .ej-dz-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
body.ej-template-3 .ej-dz-selected {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  word-break: break-word;
}
body.ej-template-3 .ej-dz-selected[hidden] {
  display: none !important;
}
body.ej-template-3 .ej-dz-btn {
  flex: none;
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
body.ej-template-3 .ej-dropzone:hover .ej-dz-btn,
body.ej-template-3 .ej-dropzone.is-dragging .ej-dz-btn {
  border-color: var(--brand);
  color: var(--brand);
}
body.ej-template-3 .ej-dropzone > label.error {
  position: relative;
  z-index: 3;
  width: 100%;
  margin: 6px 0 0 !important;
}
body.ej-template-3 .ej-dz-help-hidden {
  display: none !important;
}
@media (max-width: 575.98px) {
  body.ej-template-3 .ej-dropzone {
    flex-wrap: wrap;
    padding: 13px;
  }
  body.ej-template-3 .ej-dz-btn {
    width: 100%;
    text-align: center;
  }
}
body.ej-template-3 .ej-upload-ok {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--ap-success-bg);
  color: var(--ap-success);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
}
body.ej-template-3 .ej-upload-err {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--ap-danger-bg);
  color: var(--ap-danger);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
}
body.ej-template-3 .ej-sup-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
body.ej-template-3 .ej-sup-list:empty {
  display: none;
}
body.ej-template-3 .ej-sup-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--tint);
  width: 100%;
  float: none;
}
body.ej-template-3 .ej-sup-ext {
  min-width: 42px;
  height: 32px;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
body.ej-template-3 .ej-sup-info {
  min-width: 0;
  flex: 1;
}
body.ej-template-3 .ej-sup-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.ej-template-3 .ej-sup-date {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}

/* Submit footer & sidebar open conferences */
body.ej-template-3 .ej-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
body.ej-template-3 .ej-conf-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
body.ej-template-3 .ej-conf-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
body.ej-template-3 .ej-conf-list li:first-child {
  padding-top: 0;
}
body.ej-template-3 .ej-conf-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
body.ej-template-3 .ej-conf-list strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 2px;
}
body.ej-template-3 .ej-conf-list span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
body.ej-template-3 .ej-conf-list small {
  display: inline-block;
  margin-top: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand);
}

@media (max-width: 767.98px) {
  body.ej-template-3 .ej-submit-panel {
    padding: 18px 16px;
  }
  body.ej-template-3 .ej-form-section-head {
    flex-wrap: wrap;
  }
  body.ej-template-3 .ej-author-counter {
    margin-left: 46px;
  }
  body.ej-template-3 .ej-author-search-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  body.ej-template-3 .ej-author-search-group .form-control {
    border-radius: 6px !important;
    width: 100%;
  }
  body.ej-template-3 .ej-author-search-group .input-group-btn {
    display: block;
    width: 100%;
  }
  body.ej-template-3 .ej-author-search-group .input-group-btn .btn {
    width: 100%;
    border-radius: 6px !important;
  }
  body.ej-template-3 .ej-form-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  body.ej-template-3 .ej-form-footer .btn {
    width: 100%;
  }
}

/* ─── JOIN AS REVIEWER WORKSPACE ─────────────────────────────────────────── */
body.ej-template-3 .ej-rev-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-radius: var(--ap-radius);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  margin-bottom: 20px;
}
body.ej-template-3 .ej-rev-banner.is-active {
  border-left-color: var(--ap-success);
}
body.ej-template-3 .ej-rev-banner.is-action {
  border-left-color: var(--ap-warning);
}
body.ej-template-3 .ej-rev-banner.is-info {
  border-left-color: var(--ap-blue);
}
body.ej-template-3 .ej-rev-banner-copy {
  min-width: 0;
  flex: 1;
}
body.ej-template-3 .ej-rev-banner-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}
body.ej-template-3 .ej-rev-banner-copy p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

body.ej-template-3 .ej-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
body.ej-template-3 .ej-choice-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--tint);
  cursor: pointer;
  margin: 0;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
body.ej-template-3 .ej-choice-card:hover {
  border-color: var(--brand);
}
body.ej-template-3 .ej-choice-card.is-selected {
  border-color: var(--brand);
  background: var(--soft);
}
body.ej-template-3 .ej-choice-card input[type="radio"] {
  margin: 3px 0 0;
  flex: none;
  accent-color: var(--brand);
}
body.ej-template-3 .ej-choice-card strong {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 2px;
}
body.ej-template-3 .ej-choice-card small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.45;
}

body.ej-template-3 .ej-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
body.ej-template-3 .ej-topic-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--tint);
  cursor: pointer;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
body.ej-template-3 .ej-topic-check:hover {
  border-color: var(--brand);
  background: var(--soft);
}
body.ej-template-3 .ej-topic-check input[type="checkbox"] {
  margin: 0;
  flex: none;
  accent-color: var(--brand);
}
body.ej-template-3 .ej-field-err {
  color: var(--ap-danger);
  font-size: 12.5px;
  font-weight: 500;
  margin-top: 8px;
}

body.ej-template-3 .ej-photo-upload-box {
  display: flex;
  align-items: center;
  gap: 16px;
}
body.ej-template-3 .ej-photo-input-col {
  min-width: 0;
  flex: 1;
}
body.ej-template-3 .ej-photo-preview-col {
  flex: none;
}
body.ej-template-3 .ej-rev-avatar-lg {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--surface);
  display: block;
}
body.ej-template-3 .ej-rev-avatar-initials {
  background: var(--soft);
  color: var(--brand);
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
}
body.ej-template-3 .ej-submit-form .pass_box {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

body.ej-template-3 .ej-rev-profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
body.ej-template-3 .ej-rev-profile-meta {
  min-width: 0;
  flex: 1;
}
body.ej-template-3 .ej-rev-profile-meta h2 {
  font-size: 22px;
  margin: 0 0 3px;
  line-height: 1.25;
}
body.ej-template-3 .ej-rev-profile-meta p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}
body.ej-template-3 .ej-rev-profile-meta small {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
}
body.ej-template-3 .ej-rev-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
body.ej-template-3 .ej-rev-detail-grid .ej-card-lite {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}
body.ej-template-3 .ej-rev-detail-grid .ej-card-lite .title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}
body.ej-template-3 .ej-rev-detail-grid .ej-card-lite .value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}
body.ej-template-3 .ej-file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
body.ej-template-3 .ej-topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
body.ej-template-3 .ej-rev-next-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 767.98px) {
  body.ej-template-3 .ej-choice-grid,
  body.ej-template-3 .ej-topic-grid,
  body.ej-template-3 .ej-rev-detail-grid {
    grid-template-columns: 1fr;
  }
  body.ej-template-3 .ej-photo-upload-box {
    flex-direction: column;
    align-items: flex-start;
  }
  body.ej-template-3 .ej-rev-next-actions .btn {
    width: 100%;
  }
}

/* ─── MEMBERSHIP WORKSPACE, PAYMENT TILES & TIER SIDEBAR ────────────────── */
body.ej-template-3 .ej-rev-banner.is-rejected {
  border-left-color: var(--ap-danger);
}
body.ej-template-3 .ej-pay-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
body.ej-template-3 .ej-pay-option {
  display: block;
  margin: 0;
  cursor: pointer;
  position: relative;
}
body.ej-template-3 .ej-pay-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
body.ej-template-3 .ej-pay-option-body {
  padding: 15px 16px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: var(--tint);
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
  height: 100%;
}
body.ej-template-3 .ej-pay-option:hover .ej-pay-option-body {
  border-color: var(--brand);
}
body.ej-template-3 .ej-pay-option.is-selected .ej-pay-option-body {
  border-color: var(--brand);
  background: var(--soft);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand), transparent 82%);
}
body.ej-template-3 .ej-pay-option-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
body.ej-template-3 .ej-pay-rec,
body.ej-template-3 .ej-pay-alt {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 99px;
}
body.ej-template-3 .ej-pay-rec {
  background: var(--ap-success-bg);
  color: var(--ap-success);
}
body.ej-template-3 .ej-pay-alt {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
}
body.ej-template-3 .ej-pay-svg {
  width: 28px;
  height: 20px;
  color: var(--brand);
  flex: none;
}
body.ej-template-3 .ej-pay-option-body strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}
body.ej-template-3 .ej-pay-option-body small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.45;
}

body.ej-template-3 .ej-pay-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--tint);
  padding: 4px 16px;
}
body.ej-template-3 .ej-pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
body.ej-template-3 .ej-pay-row:last-child {
  border-bottom: 0;
}
body.ej-template-3 .ej-pay-row span {
  color: var(--muted);
}
body.ej-template-3 .ej-pay-row strong {
  color: var(--ink);
  font-weight: 650;
}
body.ej-template-3 .ej-pay-row.is-total {
  padding-top: 13px;
  padding-bottom: 13px;
}
body.ej-template-3 .ej-pay-row.is-total span {
  color: var(--ink);
  font-weight: 700;
}
body.ej-template-3 .ej-pay-row.is-total strong {
  font-family: Georgia, serif;
  font-size: 20px;
  color: var(--brand);
}

body.ej-template-3 .ej-tier-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
body.ej-template-3 .ej-tier-top strong {
  margin-bottom: 0;
}
body.ej-template-3 .ej-tier-fee {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  body.ej-template-3 .ej-pay-modes {
    grid-template-columns: 1fr;
  }
}

/* ─── UPLOAD CONFERENCE RELATED FILE WORKSPACE ───────────────────────────── */
body.ej-template-3 .ej-quickfill-bar {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--tint);
  margin-bottom: 22px;
}
body.ej-template-3 .ej-upload-progress {
  height: 6px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
  margin-top: 8px;
}
body.ej-template-3 .ej-upload-progress > span {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 99px;
  transition: width 0.15s ease;
}
body.ej-template-3 .ej-crf-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.ej-template-3 .ej-crf-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--tint);
}
body.ej-template-3 .ej-crf-info {
  min-width: 0;
  flex: 1;
}
body.ej-template-3 .ej-crf-info strong {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 3px;
}
body.ej-template-3 .ej-crf-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
body.ej-template-3 .ej-format-group {
  margin-bottom: 14px;
}
body.ej-template-3 .ej-format-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
body.ej-template-3 .ej-format-chips span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--tint);
  border: 1px solid var(--line);
  color: var(--ink);
}
@media (max-width: 767.98px) {
  body.ej-template-3 .ej-crf-item {
    flex-wrap: wrap;
  }
  body.ej-template-3 .ej-crf-item .btn {
    width: 100%;
  }
}

/* ─── AUTHOR CERTIFICATES WORKSPACE ──────────────────────────────────────── */
body.ej-template-3 .ej-cert-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
body.ej-template-3 .ej-metric-date {
  font-size: 28px;
  line-height: 1.25;
}
body.ej-template-3 .ej-cert-table th,
body.ej-template-3 .ej-cert-table td {
  box-sizing: border-box !important;
  padding: 12px 11px !important;
}
body.ej-template-3 .ej-cert-table thead > tr > th.sorting,
body.ej-template-3 .ej-cert-table thead > tr > th.sorting_asc,
body.ej-template-3 .ej-cert-table thead > tr > th.sorting_desc {
  padding-right: 22px !important;
}
body.ej-template-3 .ej-cert-table thead > tr > th:after {
  top: 50%;
  transform: translateY(-50%);
  right: 6px;
  font-size: 11px;
}
body.ej-template-3 .ej-cert-table .ej-col-idx {
  width: 40px;
  min-width: 40px;
  text-align: center !important;
  color: var(--muted) !important;
  font-variant-numeric: tabular-nums;
}
body.ej-template-3 .ej-cert-table .ej-cert-col-type {
  min-width: 155px;
  max-width: 210px;
  text-align: left !important;
}
body.ej-template-3 .ej-cert-table .ej-cert-col-conf {
  min-width: 128px;
  white-space: nowrap;
  text-align: left !important;
}
body.ej-template-3 .ej-cert-conf-name {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink);
}
body.ej-template-3 .ej-cert-table .ej-cert-col-details {
  min-width: 260px;
  text-align: left !important;
}
body.ej-template-3 .ej-cert-paper {
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.42;
}
body.ej-template-3 .ej-cert-paper strong {
  font-weight: 600;
  color: var(--muted);
}
body.ej-template-3 .ej-cert-table .ej-cert-col-date {
  min-width: 100px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--muted) !important;
  text-align: left !important;
}
body.ej-template-3 .ej-cert-table .ej-cert-col-actions {
  min-width: 148px;
  white-space: nowrap;
}
body.ej-template-3 .ej-cert-btns {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
body.ej-template-3 .ej-cert-btns .btn-xs {
  padding: 5px 10px;
  font-size: 12px;
  min-height: 30px;
}
body.ej-template-3 .ej-cert-badge {
  line-height: 1.35;
  padding: 4px 10px;
  font-size: 11.5px;
}

@media (max-width: 767.98px) {
  body.ej-template-3 .ej-cert-metrics {
    grid-template-columns: 1fr;
  }
}

/* ─── PROFILE, REVIEW WORKSPACE, PAYMENT & STATUS VIEWS ──────────────────── */
body.ej-template-3 .intl-tel-input {
  display: block;
  width: 100%;
}
body.ej-template-3 .intl-tel-input .selected-flag {
  border-radius: 6px 0 0 6px;
}
body.ej-template-3 .intl-tel-input .country-list {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  z-index: 1060;
}
body.ej-template-3 .intl-tel-input .country-list .country.highlight {
  background: var(--soft);
  color: var(--ink);
}
body.ej-template-3 .intl-tel-input .country-list .dial-code {
  color: var(--muted);
}

body.ej-template-3 .ej-check-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  user-select: none;
}

body.ej-template-3 .ej-profile-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
body.ej-template-3 .ej-profile-card-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--soft);
  border: 1.5px solid var(--line);
  color: var(--brand);
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
body.ej-template-3 .ej-profile-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.ej-template-3 .ej-profile-card-ident {
  min-width: 0;
}
body.ej-template-3 .ej-profile-card-ident strong {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  word-break: break-word;
}
body.ej-template-3 .ej-profile-card-ident small {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  word-break: break-word;
  margin-top: 2px;
}
body.ej-template-3 .ej-profile-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 18px;
}
body.ej-template-3 .ej-profile-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
body.ej-template-3 .ej-profile-meta-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
body.ej-template-3 .ej-profile-meta-row span {
  color: var(--muted);
  flex-shrink: 0;
}
body.ej-template-3 .ej-profile-meta-row strong {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

/* Review Workspace Tables & Modals */
body.ej-template-3 .ej-rev-table th,
body.ej-template-3 .ej-rev-table td {
  box-sizing: border-box !important;
  padding: 12px 11px !important;
  vertical-align: middle !important;
}
body.ej-template-3 .ej-rev-table .ej-col-idx {
  width: 42px;
  min-width: 42px;
  text-align: center !important;
  color: var(--muted) !important;
  font-variant-numeric: tabular-nums;
}
body.ej-template-3 .ej-rev-table .ej-rev-col-ms {
  min-width: 280px;
  text-align: left !important;
}
body.ej-template-3 .ej-rev-ms-top {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
body.ej-template-3 .ej-rev-ms-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
body.ej-template-3 .ej-rev-col-file {
  width: 118px;
  min-width: 118px;
  white-space: nowrap;
}
body.ej-template-3 .ej-rev-col-status {
  min-width: 175px;
  white-space: nowrap;
}
body.ej-template-3 .ej-rev-table .ap-tag {
  white-space: nowrap;
}
body.ej-template-3 .ej-rev-col-date {
  width: 112px;
  min-width: 112px;
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--muted) !important;
  font-variant-numeric: tabular-nums;
}
body.ej-template-3 .ej-rev-col-date strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}
body.ej-template-3 .ej-rev-col-actions {
  width: 156px;
  min-width: 156px;
  white-space: nowrap;
}
body.ej-template-3 .ej-rev-status-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  min-height: 32px;
  white-space: nowrap;
}

body.ej-template-3 .ej-modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 13.5px;
}
body.ej-template-3 .ej-modal-loading i {
  font-size: 28px;
  color: var(--brand);
}

/* Review View Modal Cards */
.ej-review-modal-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line, #e2e6ef);
  border-radius: 8px;
  background: var(--tint, #f7f8fb);
  margin-bottom: 16px;
}
.ej-review-modal-meta .ej-rm-full {
  grid-column: 1 / -1;
}
.ej-review-modal-meta small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted, #5c667a);
  margin-bottom: 3px;
}
.ej-review-modal-meta strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink, #141c2c);
  line-height: 1.45;
  word-break: break-word;
}
.ej-review-record {
  border: 1px solid var(--line, #e2e6ef);
  border-radius: 8px;
  background: var(--surface, #ffffff);
  padding: 16px;
  margin-bottom: 14px;
}
.ej-review-record:nth-of-type(even) {
  background: var(--tint, #f7f8fb);
}
.ej-review-record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line, #e2e6ef);
}
.ej-review-record-field {
  margin-bottom: 12px;
}
.ej-review-record-field:last-child {
  margin-bottom: 0;
}
.ej-review-record-field label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #5c667a);
  margin-bottom: 4px;
}
.ej-review-record-body {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink, #141c2c);
  word-break: break-word;
}
[data-bs-theme="dark"] .ej-review-record-body,
[data-bs-theme="dark"] .ej-review-record-body * {
  color: var(--ink, #eef2ff) !important;
  background-color: transparent !important;
}

/* Payment & Status Confirmation Cards */
body.ej-template-3 .ej-pay-instructions {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--tint);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.65;
  overflow-x: auto;
}
body.ej-template-3 .ej-pay-instructions * {
  color: inherit;
}
body.ej-template-3 .ej-pay-instructions a {
  color: var(--brand);
}
body.ej-template-3 .ej-status-card {
  max-width: 680px;
  margin: 8px auto 0;
  text-align: center;
  padding: 40px 28px;
}
body.ej-template-3 .ej-status-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}
body.ej-template-3 .ej-status-icon.is-success {
  background: var(--ap-success-bg);
  color: var(--ap-success);
}
body.ej-template-3 .ej-status-icon.is-warning {
  background: var(--ap-warning-bg);
  color: var(--ap-warning);
}
body.ej-template-3 .ej-status-icon.is-danger {
  background: var(--ap-danger-bg);
  color: var(--ap-danger);
}
body.ej-template-3 .ej-status-icon.is-info {
  background: var(--ap-blue-bg);
  color: var(--ap-blue);
}
body.ej-template-3 .ej-status-card h2 {
  font-size: 26px;
  margin: 0 0 10px;
}
body.ej-template-3 .ej-status-card p {
  max-width: 500px;
  margin: 0 auto 22px;
  font-size: 14.5px;
}
body.ej-template-3 .ej-404-code {
  font-family: Georgia, serif;
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
@media (max-width: 767.98px) {
  .ej-review-modal-meta {
    grid-template-columns: 1fr;
  }
}
