.pbg-epc-portal,.pbg-epc-calendar,.pbg-epc-proofs,.pbg-epc-contracts{max-width:1100px;margin:0 auto;padding:24px}.pbg-epc-event-box,.pbg-epc-panel,.pbg-epc-proof-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:22px;margin:18px 0;box-shadow:0 10px 30px rgba(17,24,39,.08)}.pbg-epc-event-meta{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}.pbg-epc-event-meta span{background:#f3f4f6;border-radius:999px;padding:8px 12px;font-size:14px}.pbg-epc-form-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;margin-top:18px}.pbg-epc-form-card{display:block;text-decoration:none;color:#111827;background:#f9fafb;border:1px solid #e5e7eb;border-radius:16px;padding:18px;transition:.15s}.pbg-epc-form-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(17,24,39,.10)}.pbg-epc-form-card span{display:block;color:#6b7280;font-size:13px;margin-bottom:6px}.pbg-epc-form-card strong{display:block;font-size:17px;margin-bottom:8px}.pbg-epc-form-card em{display:inline-block;background:#eef2ff;color:#3730a3;padding:5px 9px;border-radius:999px;font-style:normal;font-size:12px}.pbg-epc-alert{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:14px;padding:16px;margin:14px 0}.pbg-epc-back{display:inline-block;margin-bottom:10px}.pbg-epc-calendar-list{display:grid;gap:12px}.pbg-epc-calendar-item{display:grid;grid-template-columns:140px 1fr auto;gap:12px;align-items:center;border:1px solid #e5e7eb;border-radius:14px;padding:14px;background:#fff}.pbg-epc-calendar-item em{color:#6b7280;font-style:normal}.pbg-epc-proof-actions{display:grid;gap:10px;margin-top:12px}.pbg-epc-proof-actions textarea{min-height:90px;width:100%}.pbg-epc-proof-actions button,.pbg-epc-contracts .button,.pbg-epc-proof-card .button{border:0;border-radius:999px;background:#111827;color:#fff;padding:10px 16px;text-decoration:none;cursor:pointer}.pbg-epc-gf-wrap .gform_wrapper{margin-top:10px}@media(max-width:700px){.pbg-epc-calendar-item{grid-template-columns:1fr}.pbg-epc-portal,.pbg-epc-calendar,.pbg-epc-proofs,.pbg-epc-contracts{padding:12px}.pbg-epc-event-box{padding:16px}}

.pbg-epc-prospect-note{background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a;border-radius:14px;padding:14px 16px;margin:14px 0}.pbg-epc-prospect-note p{margin:.35em 0 0}.pbg-epc-portal form.login{max-width:420px;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:18px;margin-top:14px}.pbg-epc-portal form.login input[type=text],.pbg-epc-portal form.login input[type=password]{width:100%}

.pbg-epc-success{background:#ecfdf5;border:1px solid #bbf7d0;color:#047857;border-radius:14px;padding:12px 14px;margin:12px 0;font-weight:700}.pbg-epc-timeline-builder{margin-top:16px}.pbg-epc-timeline-layout{display:grid;grid-template-columns:250px 1fr;gap:18px;align-items:start}.pbg-epc-activity-options{background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;padding:14px;position:sticky;top:20px}.pbg-epc-activity-options h4{margin:0 0 10px;font-size:14px;color:#374151}.pbg-epc-activity-option{display:block;width:100%;text-align:left;background:linear-gradient(#fff,#f9fafb);border:1px solid #cbd5e1;border-radius:8px;color:#374151;font-weight:700;margin:5px 0;padding:9px 10px;cursor:pointer}.pbg-epc-activity-option:hover{background:#eef2ff;border-color:#a5b4fc;color:#312e81}.pbg-epc-timeline-table-wrap{min-width:0;overflow-x:auto}.pbg-epc-timeline-head,.pbg-epc-timeline-row{display:grid;grid-template-columns:110px minmax(230px,1fr) minmax(280px,1.25fr) 100px;gap:8px;align-items:center}.pbg-epc-timeline-head{color:#6b7280;font-size:13px;font-weight:800;padding:0 0 10px}.pbg-epc-timeline-row{margin:8px 0}.pbg-epc-timeline-row input,.pbg-epc-timeline-row textarea{width:100%;border:1px solid #d1d5db;border-radius:8px;padding:10px;min-height:44px;background:#fff}.pbg-epc-timeline-row textarea{resize:vertical}.pbg-epc-timeline-controls{display:flex;gap:5px;justify-content:flex-end}.pbg-epc-timeline-controls button{background:#fff;border:1px solid #cbd5e1;border-radius:6px;color:#374151;height:30px;min-width:28px;cursor:pointer}.pbg-epc-timeline-controls button:hover{background:#f3f4f6}.pbg-epc-save-timeline,.pbg-epc-timeline-form .button,.pbg-epc-add-timeline-row{border:0!important;border-radius:999px!important;background:#111827!important;color:#fff!important;padding:11px 18px!important;text-decoration:none!important;cursor:pointer!important;font-weight:800!important}@media(max-width:860px){.pbg-epc-timeline-layout{grid-template-columns:1fr}.pbg-epc-activity-options{position:static}.pbg-epc-activity-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:6px}.pbg-epc-activity-options h4{grid-column:1/-1}.pbg-epc-activity-option{margin:0}.pbg-epc-timeline-head{display:none}.pbg-epc-timeline-row{grid-template-columns:1fr}.pbg-epc-timeline-controls{justify-content:flex-start}}

.pbg-epc-files,.pbg-epc-packet-wrap{max-width:1100px;margin:0 auto;padding:24px}.pbg-epc-payment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:14px 0}.pbg-epc-payment-grid p{background:#f9fafb;border:1px solid #e5e7eb;border-radius:14px;margin:0;padding:14px}.pbg-epc-payment-grid span{display:block;color:#6b7280;font-size:13px;margin-bottom:6px}.pbg-epc-payment-grid strong{display:block;color:#111827;font-size:20px}.pbg-epc-quote-table{border-collapse:collapse;width:100%;margin:12px 0}.pbg-epc-quote-table th,.pbg-epc-quote-table td{border:1px solid #e5e7eb;padding:10px;text-align:left}.pbg-epc-quote-table th{background:#f9fafb}.pbg-epc-upload-form input[type=file],.pbg-epc-upload-form textarea{width:100%;max-width:650px}.pbg-epc-file-list{display:grid;gap:10px;list-style:none;margin:12px 0;padding:0}.pbg-epc-file-list li{background:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;padding:12px}.pbg-epc-file-list a{font-weight:800}.pbg-epc-file-list span,.pbg-epc-file-list em{display:block;color:#6b7280;font-size:13px;font-style:normal;margin-top:3px}.pbg-epc-event-packet{background:#fff;border:1px solid #e5e7eb;border-radius:18px;box-shadow:0 10px 30px rgba(17,24,39,.08);margin:18px 0;padding:26px}.pbg-epc-event-packet h1{font-size:28px;margin:0 0 12px}.pbg-epc-event-packet h2{border-bottom:1px solid #e5e7eb;margin-top:24px;padding-bottom:8px}.pbg-epc-event-packet table{border-collapse:collapse;width:100%;margin:12px 0}.pbg-epc-event-packet th,.pbg-epc-event-packet td{border:1px solid #e5e7eb;padding:9px;text-align:left}.pbg-epc-packet-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}.pbg-epc-packet-meta p{background:#f9fafb;border-radius:10px;margin:0;padding:10px}.pbg-epc-packet-checklist{list-style:none;margin-left:0;padding-left:0}.pbg-epc-print-actions{text-align:right}@media print{body *{visibility:hidden}.pbg-epc-event-packet,.pbg-epc-event-packet *{visibility:visible}.pbg-epc-event-packet{box-shadow:none;border:0;position:absolute;left:0;top:0;width:100%;padding:0}.pbg-epc-print-actions,.pbg-epc-print-actions *{display:none!important}}

/* Standalone built-in form renderer */
.pbg-epc-form-wrap{max-width:980px}.pbg-epc-built-form{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:22px;box-shadow:0 10px 30px rgba(17,24,39,.08)}.pbg-epc-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.pbg-epc-field{min-width:0}.pbg-epc-field label{display:block;margin:0 0 7px;color:#111827}.pbg-epc-field input[type=text],.pbg-epc-field input[type=email],.pbg-epc-field input[type=tel],.pbg-epc-field input[type=date],.pbg-epc-field input[type=number],.pbg-epc-field select,.pbg-epc-field textarea{width:100%;max-width:100%;border:1px solid #d1d5db;border-radius:10px;min-height:44px;padding:10px;background:#fff;box-sizing:border-box}.pbg-epc-field textarea{min-height:110px}.pbg-epc-field-textarea,.pbg-epc-field-checkbox,.pbg-epc-field-fileupload,.pbg-epc-field-consent{grid-column:1/-1}.pbg-epc-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;background:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;padding:12px}.pbg-epc-checks label,.pbg-epc-consent{display:flex!important;align-items:flex-start;gap:8px;font-weight:500!important}.pbg-epc-name-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pbg-epc-btn{border:0;border-radius:999px;padding:12px 18px;font-weight:800;cursor:pointer;text-decoration:none;display:inline-block}.pbg-epc-primary{background:#111827;color:#fff}.pbg-epc-muted{color:#6b7280}.required{color:#dc2626}@media(max-width:720px){.pbg-epc-form-grid,.pbg-epc-name-row{grid-template-columns:1fr}.pbg-epc-built-form{padding:16px}}


/* v3.3.2 single-page portal polish with fixed left menu */
.pbg-epc-portal{max-width:1320px;margin:0 auto;padding:28px;background:#f5f7fb;}
.pbg-epc-portal-shell{
  border:0;
  border-radius:28px;
  padding:22px;
  background:#ffffff;
  box-shadow:0 22px 60px rgba(15,23,42,.10);
}
.pbg-epc-portal-hero{
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  gap:18px;
  padding:24px;
  border-radius:24px;
  background:#111827;
  color:#fff;
  margin-bottom:18px;
}
.pbg-epc-portal-hero h3{font-size:32px;line-height:1.1;margin:4px 0 8px;color:#fff;}
.pbg-epc-portal-hero p{margin:0;color:rgba(255,255,255,.78);}
.pbg-epc-kicker{display:inline-flex;text-transform:uppercase;letter-spacing:.12em;font-size:11px;font-weight:800;color:rgba(255,255,255,.72);}
.pbg-epc-portal-progress{min-width:150px;border-radius:22px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.16);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:18px;text-align:center;}
.pbg-epc-portal-progress strong{font-size:36px;line-height:1;color:#fff;}
.pbg-epc-portal-progress span{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.72);margin-top:8px;}
.pbg-epc-portal-workspace{display:grid;grid-template-columns:260px minmax(0,1fr);gap:20px;align-items:start;}
.pbg-epc-portal-sidebar{position:sticky;top:24px;border:1px solid #e5e7eb;border-radius:24px;background:#f8fafc;padding:14px;box-shadow:inset 0 1px 0 rgba(255,255,255,.75);}
.pbg-epc-sidebar-card{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:16px;margin-bottom:12px;box-shadow:0 10px 26px rgba(15,23,42,.05);}
.pbg-epc-sidebar-card strong{display:block;font-size:17px;line-height:1.25;color:#111827;margin:4px 0;}
.pbg-epc-sidebar-card small{display:block;color:#64748b;font-size:12px;line-height:1.35;}
.pbg-epc-sidebar-eyebrow{display:block;text-transform:uppercase;letter-spacing:.12em;font-size:10px;font-weight:900;color:#64748b;}
.pbg-epc-sidebar-nav{display:grid;gap:7px;}
.pbg-epc-sidebar-nav a{display:grid;gap:2px;text-decoration:none;border-radius:16px;border:1px solid transparent;padding:12px 13px;color:#334155;background:transparent;transition:background .15s ease,border-color .15s ease,transform .15s ease,box-shadow .15s ease;}
.pbg-epc-sidebar-nav a span{font-size:14px;font-weight:900;line-height:1.2;}
.pbg-epc-sidebar-nav a small{font-size:11px;line-height:1.2;color:#64748b;}
.pbg-epc-sidebar-nav a:hover{background:#fff;border-color:#e2e8f0;color:#111827;transform:translateX(2px);}
.pbg-epc-sidebar-nav a.is-active{background:#111827;border-color:#111827;color:#fff;box-shadow:0 12px 24px rgba(15,23,42,.18);}
.pbg-epc-sidebar-nav a.is-active small{color:rgba(255,255,255,.72);}
.pbg-epc-sidebar-help{margin-top:12px;border-radius:18px;border:1px dashed #cbd5e1;background:#fff;padding:14px;color:#475569;}
.pbg-epc-sidebar-help strong{display:block;color:#111827;font-size:13px;margin-bottom:4px;}
.pbg-epc-sidebar-help span{display:block;font-size:12px;line-height:1.45;}
.pbg-epc-portal-stage{min-width:0;}
.pbg-epc-section-titlebar{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;border:1px solid #e5e7eb;background:#fff;border-radius:22px;padding:16px 18px;margin-bottom:14px;box-shadow:0 10px 26px rgba(15,23,42,.05);}
.pbg-epc-section-titlebar span{display:block;font-size:20px;font-weight:950;color:#111827;}
.pbg-epc-section-titlebar small{display:block;color:#64748b;font-size:13px;font-weight:700;text-align:right;}
.pbg-epc-portal-panel{border-radius:24px;background:#fff;border:1px solid #e5e7eb;padding:20px;box-shadow:0 16px 36px rgba(15,23,42,.06);}
.pbg-epc-overview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;}
.pbg-epc-module-card,.pbg-epc-form-card{border-radius:20px!important;padding:18px!important;background:#fff;border:1px solid #e5e7eb;box-shadow:0 10px 26px rgba(15,23,42,.06);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;}
.pbg-epc-module-card:hover,.pbg-epc-form-card:hover{transform:translateY(-2px);box-shadow:0 18px 34px rgba(15,23,42,.10);border-color:#cbd5e1;}
.pbg-epc-module-panel{border-radius:20px;background:#fff;border:1px solid #e5e7eb;padding:18px;box-shadow:0 10px 26px rgba(15,23,42,.05);}
@media(max-width:900px){
  .pbg-epc-portal{padding:14px;}
  .pbg-epc-portal-shell{padding:14px;border-radius:20px;}
  .pbg-epc-portal-hero{flex-direction:column;padding:18px;border-radius:20px;}
  .pbg-epc-portal-hero h3{font-size:25px;}
  .pbg-epc-portal-progress{align-items:flex-start;text-align:left;}
  .pbg-epc-portal-workspace{grid-template-columns:1fr;}
  .pbg-epc-portal-sidebar{position:static;}
  .pbg-epc-sidebar-nav{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));}
  .pbg-epc-section-titlebar{align-items:flex-start;flex-direction:column;}
  .pbg-epc-section-titlebar small{text-align:left;}
}


/* v3.3.4 — Full width client portal + timeline usability polish
   Breaks the portal out of narrow theme content wrappers while keeping it centered. */
.pbg-epc-portal {
  width: min(1840px, calc(100vw - 48px));
  max-width: none !important;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0;
  margin-bottom: 42px;
  box-sizing: border-box;
}
.pbg-epc-portal *,
.pbg-epc-portal *::before,
.pbg-epc-portal *::after { box-sizing: border-box; }
.pbg-epc-portal .pbg-epc-shell,
.pbg-epc-portal .pbg-epc-card,
.pbg-epc-portal .pbg-epc-main { max-width: none; }
.pbg-epc-portal .pbg-epc-shell {
  padding: clamp(22px, 2vw, 38px);
}
.pbg-epc-portal .pbg-epc-hero {
  border-radius: 28px;
  padding: clamp(28px, 3vw, 48px);
}
.pbg-epc-portal .pbg-epc-layout {
  grid-template-columns: minmax(285px, 330px) minmax(0, 1fr);
  gap: clamp(18px, 2vw, 34px);
  align-items: start;
}
.pbg-epc-portal .pbg-epc-sidebar-card {
  position: sticky;
  top: 26px;
}
.pbg-epc-portal .pbg-epc-main,
.pbg-epc-portal .pbg-epc-section-card,
.pbg-epc-portal .pbg-epc-timeline-editor {
  min-width: 0;
}
.pbg-epc-portal .pbg-epc-timeline-editor {
  overflow-x: auto;
  padding-bottom: 10px;
}
.pbg-epc-portal .pbg-epc-timeline-head,
.pbg-epc-portal .pbg-epc-timeline-row {
  display: grid;
  grid-template-columns: 132px minmax(260px, 0.7fr) minmax(420px, 1fr) 124px;
  gap: 12px;
  min-width: 980px;
  align-items: center;
}
.pbg-epc-portal .pbg-epc-timeline-head {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 0 10px 8px;
}
.pbg-epc-portal .pbg-epc-timeline-row {
  padding: 9px 10px;
  border-radius: 16px;
}
.pbg-epc-portal .pbg-epc-timeline-row:hover { background: #f8fafc; }
.pbg-epc-portal .pbg-epc-timeline-row input,
.pbg-epc-portal .pbg-epc-timeline-row textarea,
.pbg-epc-portal .pbg-epc-timeline-row select {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 12px;
  border: 1px solid #d5dce8;
  background: #fff;
  color: #202938;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.pbg-epc-portal .pbg-epc-timeline-row input { min-height: 48px; }
.pbg-epc-portal .pbg-epc-timeline-row textarea {
  min-height: 50px;
  resize: vertical;
  line-height: 1.35;
  padding: 12px 14px;
}
.pbg-epc-portal .pbg-epc-timeline-controls {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  min-width: 112px;
}
.pbg-epc-portal .pbg-epc-timeline-controls button,
.pbg-epc-portal .pbg-epc-timeline-controls .button {
  min-width: 48px;
  width: 48px;
  height: 44px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px !important;
  opacity: 1 !important;
  color: #344054 !important;
  background: #fff !important;
  border: 1px solid #d5dce8 !important;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
  overflow: visible;
}
.pbg-epc-portal .pbg-epc-timeline-controls button:hover,
.pbg-epc-portal .pbg-epc-timeline-controls .button:hover {
  color: #111827 !important;
  border-color: #9aa8bd !important;
  background: #f8fafc !important;
}
.pbg-epc-portal .pbg-epc-chipbar { flex-wrap: wrap; }

/* Make the portal stay usable inside common theme builders that force narrow containers. */
.entry-content > .pbg-epc-portal,
.page-content > .pbg-epc-portal,
.content-area .pbg-epc-portal,
.site-main .pbg-epc-portal {
  clear: both;
}

@media (max-width: 1100px) {
  .pbg-epc-portal {
    width: calc(100vw - 24px);
  }
  .pbg-epc-portal .pbg-epc-layout { grid-template-columns: 1fr; }
  .pbg-epc-portal .pbg-epc-sidebar-card { position: relative; top: auto; }
}
@media (max-width: 720px) {
  .pbg-epc-portal {
    width: calc(100vw - 16px);
  }
  .pbg-epc-portal .pbg-epc-shell { padding: 14px; border-radius: 20px; }
  .pbg-epc-portal .pbg-epc-hero { padding: 22px; }
}

/* v3.3.5 — TRUE full-width client portal fix
   The prior build widened the portal, but some themes/builders still clipped it inside their page container.
   This version widens the theme containers that contain the portal and then gives the timeline editor room. */
body.pbg-epc-client-portal-page {
  overflow-x: hidden;
}
body.pbg-epc-client-portal-page :is(#main,#content,.page-wrapper,.content-area,.site-content,.site-main,.entry-content,.page-content,.row,.col,.large-12,.container):has(.pbg-epc-portal),
body:has(.pbg-epc-portal) :is(#main,#content,.page-wrapper,.content-area,.site-content,.site-main,.entry-content,.page-content,.row,.col,.large-12,.container):has(.pbg-epc-portal) {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  flex-basis: 100% !important;
  overflow: visible !important;
}
body.pbg-epc-client-portal-page .pbg-epc-portal,
body:has(.pbg-epc-portal) .pbg-epc-portal {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  left: auto !important;
  transform: none !important;
  padding: clamp(18px, 2.2vw, 36px) !important;
  box-sizing: border-box !important;
  background: #f5f7fb;
}
body.pbg-epc-client-portal-page .pbg-epc-portal-shell,
body:has(.pbg-epc-portal) .pbg-epc-portal-shell {
  width: 100% !important;
  max-width: none !important;
  padding: clamp(18px, 1.8vw, 30px) !important;
}
body.pbg-epc-client-portal-page .pbg-epc-portal-workspace,
body:has(.pbg-epc-portal) .pbg-epc-portal-workspace {
  grid-template-columns: minmax(238px, 280px) minmax(0, 1fr) !important;
  gap: clamp(18px, 2vw, 30px) !important;
  align-items: start !important;
}
body.pbg-epc-client-portal-page .pbg-epc-portal-sidebar,
body:has(.pbg-epc-portal) .pbg-epc-portal-sidebar {
  width: 100% !important;
}
body.pbg-epc-client-portal-page .pbg-epc-portal-stage,
body:has(.pbg-epc-portal) .pbg-epc-portal-stage,
body.pbg-epc-client-portal-page .pbg-epc-portal-panel,
body:has(.pbg-epc-portal) .pbg-epc-portal-panel,
body.pbg-epc-client-portal-page .pbg-epc-timeline-builder,
body:has(.pbg-epc-portal) .pbg-epc-timeline-builder {
  min-width: 0 !important;
  max-width: none !important;
  width: 100% !important;
}
body.pbg-epc-client-portal-page .pbg-epc-timeline-layout,
body:has(.pbg-epc-portal) .pbg-epc-timeline-layout {
  display: grid !important;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
}
body.pbg-epc-client-portal-page .pbg-epc-timeline-table-wrap,
body:has(.pbg-epc-portal) .pbg-epc-timeline-table-wrap {
  min-width: 0 !important;
  overflow-x: auto !important;
  padding-right: 8px;
}
body.pbg-epc-client-portal-page .pbg-epc-timeline-head,
body.pbg-epc-client-portal-page .pbg-epc-timeline-row,
body:has(.pbg-epc-portal) .pbg-epc-timeline-head,
body:has(.pbg-epc-portal) .pbg-epc-timeline-row {
  display: grid !important;
  grid-template-columns: minmax(108px, 132px) minmax(250px, .95fr) minmax(360px, 1.35fr) 138px !important;
  gap: 10px !important;
  min-width: 900px !important;
  align-items: center !important;
}
body.pbg-epc-client-portal-page .pbg-epc-timeline-controls,
body:has(.pbg-epc-portal) .pbg-epc-timeline-controls {
  display: grid !important;
  grid-template-columns: repeat(3, 42px) !important;
  gap: 7px !important;
  justify-content: end !important;
  align-items: center !important;
  min-width: 138px !important;
}
body.pbg-epc-client-portal-page .pbg-epc-timeline-controls button,
body:has(.pbg-epc-portal) .pbg-epc-timeline-controls button {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  opacity: 1 !important;
  visibility: visible !important;
}
@media (max-width: 1240px) {
  body.pbg-epc-client-portal-page .pbg-epc-portal-workspace,
  body:has(.pbg-epc-portal) .pbg-epc-portal-workspace,
  body.pbg-epc-client-portal-page .pbg-epc-timeline-layout,
  body:has(.pbg-epc-portal) .pbg-epc-timeline-layout {
    grid-template-columns: 1fr !important;
  }
  body.pbg-epc-client-portal-page .pbg-epc-portal-sidebar,
  body:has(.pbg-epc-portal) .pbg-epc-portal-sidebar {
    position: static !important;
  }
  body.pbg-epc-client-portal-page .pbg-epc-sidebar-nav,
  body:has(.pbg-epc-portal) .pbg-epc-sidebar-nav,
  body.pbg-epc-client-portal-page .pbg-epc-activity-options,
  body:has(.pbg-epc-portal) .pbg-epc-activity-options {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
    gap: 8px !important;
  }
}


/* v3.3.5.1 — CSS-only portal sidebar collision fix
   Keeps the v3.3.5 working plugin/shortcodes intact, but stops the right-side portal content
   from sliding underneath the left sidebar inside Flatsome/UX Builder containers. */
html body.pbg-epc-client-portal-page {
  overflow-x: hidden !important;
}
html body.pbg-epc-client-portal-page :is(#main,#content,.page-wrapper,.content-area,.site-content,.site-main,.entry-content,.page-content,.row,.col,.large-12,.container):has(.pbg-epc-portal) {
  max-width: none !important;
  width: 100% !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  flex-basis: 100% !important;
  overflow: visible !important;
}
html body.pbg-epc-client-portal-page .pbg-epc-portal {
  width: 100% !important;
  max-width: 1680px !important;
  min-width: 0 !important;
  margin: 0 auto 42px auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  padding: clamp(16px, 2vw, 30px) !important;
  background: #f5f7fb !important;
  box-sizing: border-box !important;
  clear: both !important;
}
html body.pbg-epc-client-portal-page .pbg-epc-portal *,
html body.pbg-epc-client-portal-page .pbg-epc-portal *::before,
html body.pbg-epc-client-portal-page .pbg-epc-portal *::after {
  box-sizing: border-box !important;
}
html body.pbg-epc-client-portal-page .pbg-epc-portal-shell {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: clamp(16px, 1.75vw, 28px) !important;
}
html body.pbg-epc-client-portal-page .pbg-epc-portal-workspace {
  display: flex !important;
  align-items: flex-start !important;
  gap: clamp(18px, 2vw, 30px) !important;
  width: 100% !important;
  min-width: 0 !important;
}
html body.pbg-epc-client-portal-page .pbg-epc-portal-sidebar {
  flex: 0 0 280px !important;
  width: 280px !important;
  max-width: 280px !important;
  min-width: 240px !important;
  position: sticky !important;
  top: 24px !important;
  z-index: 2 !important;
  align-self: flex-start !important;
}
html body.pbg-epc-client-portal-page .pbg-epc-portal-stage {
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: calc(100% - 310px) !important;
  min-width: 0 !important;
  overflow: hidden !important;
  position: relative !important;
  z-index: 1 !important;
}
html body.pbg-epc-client-portal-page .pbg-epc-section-titlebar,
html body.pbg-epc-client-portal-page .pbg-epc-portal-panel,
html body.pbg-epc-client-portal-page .pbg-epc-form-wrap,
html body.pbg-epc-client-portal-page .pbg-epc-built-form,
html body.pbg-epc-client-portal-page .pbg-epc-gf-wrap,
html body.pbg-epc-client-portal-page .gform_wrapper {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
html body.pbg-epc-client-portal-page .pbg-epc-portal-panel {
  overflow-x: auto !important;
}
html body.pbg-epc-client-portal-page .pbg-epc-form-grid,
html body.pbg-epc-client-portal-page .gform_fields {
  min-width: 0 !important;
}
html body.pbg-epc-client-portal-page .pbg-epc-field,
html body.pbg-epc-client-portal-page .gfield {
  min-width: 0 !important;
}
html body.pbg-epc-client-portal-page .pbg-epc-field input,
html body.pbg-epc-client-portal-page .pbg-epc-field select,
html body.pbg-epc-client-portal-page .pbg-epc-field textarea,
html body.pbg-epc-client-portal-page .gform_wrapper input,
html body.pbg-epc-client-portal-page .gform_wrapper select,
html body.pbg-epc-client-portal-page .gform_wrapper textarea {
  max-width: 100% !important;
}
@media (max-width: 980px) {
  html body.pbg-epc-client-portal-page .pbg-epc-portal-workspace {
    display: block !important;
  }
  html body.pbg-epc-client-portal-page .pbg-epc-portal-sidebar {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-bottom: 18px !important;
  }
  html body.pbg-epc-client-portal-page .pbg-epc-portal-stage {
    max-width: 100% !important;
    overflow: visible !important;
  }
  html body.pbg-epc-client-portal-page .pbg-epc-sidebar-nav {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
    gap: 8px !important;
  }
}
@media (max-width: 720px) {
  html body.pbg-epc-client-portal-page .pbg-epc-portal {
    padding: 10px !important;
  }
  html body.pbg-epc-client-portal-page .pbg-epc-portal-shell {
    border-radius: 18px !important;
    padding: 12px !important;
  }
  html body.pbg-epc-client-portal-page .pbg-epc-portal-hero {
    padding: 16px !important;
  }
}

/* v3.3.5.2 - Public Check My Date page */
html body.pbg-epc-public-inquiry-page .page-wrapper,
html body.pbg-epc-public-inquiry-page .content-area,
html body.pbg-epc-public-inquiry-page .site-main,
html body.pbg-epc-public-inquiry-page .entry-content,
html body.pbg-epc-public-inquiry-page .large-12,
html body.pbg-epc-public-inquiry-page .col,
html body.pbg-epc-public-inquiry-page .container,
html body.pbg-epc-public-inquiry-page .row-main {
  max-width: 100% !important;
  width: 100% !important;
}
html body.pbg-epc-public-inquiry-page .entry-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.pbg-epc-check-date-page-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px 48px;
  box-sizing: border-box;
}
.pbg-epc-check-date-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: stretch;
  background: linear-gradient(135deg, #111827 0%, #1f2937 58%, #334155 100%);
  color: #fff;
  border-radius: 28px;
  padding: 34px;
  margin-bottom: 22px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
}
.pbg-epc-check-date-hero h2 {
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .98;
  margin: 8px 0 14px;
  letter-spacing: -0.04em;
}
.pbg-epc-check-date-hero p {
  color: rgba(255,255,255,.86);
  font-size: 18px;
  line-height: 1.55;
  max-width: 720px;
  margin: 0;
}
.pbg-epc-check-date-hero .pbg-epc-kicker {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(255,255,255,.86);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.pbg-epc-check-date-hero ul {
  list-style: none;
  margin: 0;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  align-self: center;
}
.pbg-epc-check-date-hero li {
  margin: 0 0 12px;
  padding: 0 0 12px 28px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.90);
  font-weight: 700;
}
.pbg-epc-check-date-hero li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.pbg-epc-check-date-hero li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.pbg-epc-check-date-form-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .10);
  padding: 24px;
  overflow: hidden;
}
.pbg-epc-check-date-form-card .pbg-epc-portal,
.pbg-epc-check-date-form-card .pbg-epc-form-wrap {
  padding: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
}
html body.pbg-epc-public-inquiry-page .pbg-epc-field input,
html body.pbg-epc-public-inquiry-page .pbg-epc-field select,
html body.pbg-epc-public-inquiry-page .pbg-epc-field textarea,
html body.pbg-epc-public-inquiry-page .gform_wrapper input,
html body.pbg-epc-public-inquiry-page .gform_wrapper select,
html body.pbg-epc-public-inquiry-page .gform_wrapper textarea {
  max-width: 100% !important;
  box-sizing: border-box !important;
}
@media (max-width: 900px) {
  .pbg-epc-check-date-hero {
    grid-template-columns: 1fr;
    padding: 26px;
    border-radius: 22px;
  }
  .pbg-epc-check-date-hero ul {
    align-self: stretch;
  }
}
@media (max-width: 640px) {
  .pbg-epc-check-date-page-wrap {
    padding: 16px 12px 32px;
  }
  .pbg-epc-check-date-hero {
    padding: 22px;
  }
  .pbg-epc-check-date-form-card {
    padding: 16px;
    border-radius: 18px;
  }
}


/* v3.3.5.3 — hard public page container fix
   The Check My Date shortcode must NOT inherit the full-width client portal break-out rules.
   This keeps the hero, form card, and fields inside their containers on Flatsome/UX Builder pages. */
html body.pbg-epc-public-inquiry-page {
  overflow-x: hidden !important;
}
html body.pbg-epc-public-inquiry-page :is(#main,#content,.page-wrapper,.content-area,.site-content,.site-main,.entry-content,.page-content,.row,.col,.large-12,.container,.row-main):has(.pbg-epc-check-date-page-wrap) {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
html body.pbg-epc-public-inquiry-page .pbg-epc-check-date-page-wrap,
html body.pbg-epc-public-inquiry-page .pbg-epc-check-date-page-wrap *,
html body.pbg-epc-public-inquiry-page .pbg-epc-check-date-page-wrap *::before,
html body.pbg-epc-public-inquiry-page .pbg-epc-check-date-page-wrap *::after {
  box-sizing: border-box !important;
}
html body.pbg-epc-public-inquiry-page .pbg-epc-check-date-page-wrap {
  width: min(1180px, calc(100vw - 36px)) !important;
  max-width: 1180px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 28px 0 48px !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  overflow: visible !important;
}
html body.pbg-epc-public-inquiry-page .pbg-epc-check-date-hero,
html body.pbg-epc-public-inquiry-page .pbg-epc-check-date-form-card {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}
html body.pbg-epc-public-inquiry-page .pbg-epc-check-date-form-card {
  overflow: visible !important;
}
html body.pbg-epc-public-inquiry-page .pbg-epc-check-date-form-card .pbg-epc-portal,
html body.pbg-epc-public-inquiry-page .pbg-epc-check-date-form-card .pbg-epc-form-wrap,
html body.pbg-epc-public-inquiry-page .pbg-epc-public-form-wrap {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  clear: none !important;
  overflow: visible !important;
}
html body.pbg-epc-public-inquiry-page .pbg-epc-check-date-form-card .pbg-epc-built-form {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
html body.pbg-epc-public-inquiry-page .pbg-epc-check-date-form-card .pbg-epc-form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  width: 100% !important;
  min-width: 0 !important;
}
html body.pbg-epc-public-inquiry-page .pbg-epc-check-date-form-card .pbg-epc-field,
html body.pbg-epc-public-inquiry-page .pbg-epc-check-date-form-card .pbg-epc-name-row {
  min-width: 0 !important;
  max-width: 100% !important;
}
html body.pbg-epc-public-inquiry-page .pbg-epc-check-date-form-card input,
html body.pbg-epc-public-inquiry-page .pbg-epc-check-date-form-card select,
html body.pbg-epc-public-inquiry-page .pbg-epc-check-date-form-card textarea {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
html body.pbg-epc-public-inquiry-page .pbg-epc-check-date-form-card h2 {
  margin: 0 0 8px !important;
}
@media (max-width: 760px) {
  html body.pbg-epc-public-inquiry-page .pbg-epc-check-date-page-wrap {
    width: min(100%, calc(100vw - 24px)) !important;
    padding-top: 16px !important;
    padding-bottom: 32px !important;
  }
  html body.pbg-epc-public-inquiry-page .pbg-epc-check-date-form-card .pbg-epc-form-grid,
  html body.pbg-epc-public-inquiry-page .pbg-epc-check-date-form-card .pbg-epc-name-row {
    grid-template-columns: 1fr !important;
  }
}
