/* ── MyPTProvider Design System ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
  --pt-red        : #e32626;
  --pt-red-bright : #e32626;
  --pt-red-dark   : #e32626;
  --pt-red-light  : #e3262607;
  --pt-red-pale   : #e3262607;
  --pt-red-pale-line : #e3262607;
  --pt-red-pale-edge : #e3262607;
  --pt-red-shadow : rgba(227, 38, 38, 0.3);
  --pt-green      : #00B050;
  --pt-green-dark : #009040;
  --pt-blue       : #0078D4;
  --pt-blue-dark  : #005A9E;
  --pt-grey-tab   : #BFBFBF;
  --pt-grey-light : #E7E6E6;
  --pt-yellow     : #FFC000;
  --pt-text       : #333333;
  --sidebar-w     : 280px;
  --font-main     : 'Poppins', 'Segoe UI', Arial, sans-serif;
  --pt-ui-scale   : 0.8;
  --pt-input-border: 1px solid #e8e8e8;
}

/* Bootstrap + portal controls — brand red #e32626 */
body,
.app-shell,
.modal {
  --bs-primary: #e32626;
  --bs-primary-rgb: 227, 38, 38;
  --bs-danger: #e32626;
  --bs-danger-rgb: 227, 38, 38;
  --bs-link-color: #e32626;
  --bs-link-hover-color: #e32626;
}

.app-shell .btn-primary,
.modal .btn-primary,
body .btn-primary {
  --bs-btn-bg: var(--pt-red);
  --bs-btn-border-color: var(--pt-red);
  --bs-btn-hover-bg: var(--pt-red-dark);
  --bs-btn-hover-border-color: var(--pt-red-dark);
  --bs-btn-active-bg: var(--pt-red-dark);
  --bs-btn-active-border-color: var(--pt-red-dark);
  --bs-btn-disabled-bg: var(--pt-red);
  --bs-btn-disabled-border-color: var(--pt-red);
}

.app-shell .btn-outline-primary,
.modal .btn-outline-primary,
body .btn-outline-primary {
  --bs-btn-color: #0d6efd;
  --bs-btn-border-color: #0d6efd;
  --bs-btn-hover-bg: var(--pt-red);
  --bs-btn-hover-border-color: var(--pt-red-dark);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--pt-red-dark);
  --bs-btn-active-border-color: var(--pt-red-dark);
  --bs-btn-active-color: #fff;
}

.app-shell .btn-danger,
.modal .btn-danger,
body .btn-danger {
  --bs-btn-bg: var(--pt-red);
  --bs-btn-border-color: var(--pt-red);
  --bs-btn-hover-bg: var(--pt-red-dark);
  --bs-btn-hover-border-color: var(--pt-red-dark);
  --bs-btn-active-bg: var(--pt-red-dark);
  --bs-btn-active-border-color: var(--pt-red-dark);
}

.app-shell .btn-outline-danger,
.modal .btn-outline-danger,
body .btn-outline-danger {
  --bs-btn-color: var(--pt-red);
  --bs-btn-border-color: var(--pt-red);
  --bs-btn-hover-bg: var(--pt-red);
  --bs-btn-hover-border-color: var(--pt-red);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--pt-red-dark);
  --bs-btn-active-border-color: var(--pt-red-dark);
  --bs-btn-active-color: #fff;
}

.app-shell .btn-outline-warning,
.modal .btn-outline-warning {
  --bs-btn-color: #b8860b;
  --bs-btn-border-color: var(--pt-yellow);
  --bs-btn-hover-bg: var(--pt-yellow);
  --bs-btn-hover-border-color: var(--pt-yellow);
  --bs-btn-hover-color: #1a1a1a;
  --bs-btn-active-bg: #e6ac00;
  --bs-btn-active-border-color: #e6ac00;
  --bs-btn-active-color: #1a1a1a;
}

.app-shell .btn-outline-success,
.modal .btn-outline-success {
  --bs-btn-color: var(--pt-green);
  --bs-btn-border-color: var(--pt-green);
  --bs-btn-hover-bg: var(--pt-green);
  --bs-btn-hover-border-color: var(--pt-green);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--pt-green-dark);
  --bs-btn-active-border-color: var(--pt-green-dark);
  --bs-btn-active-color: #fff;
}

.app-shell .btn-outline-secondary,
.modal .btn-outline-secondary {
  --bs-btn-color: #555;
  --bs-btn-border-color: #999;
  --bs-btn-hover-bg: #666;
  --bs-btn-hover-border-color: #666;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #444;
  --bs-btn-active-border-color: #444;
  --bs-btn-active-color: #fff;
}

.app-shell .text-danger,
.modal .text-danger,
body .text-danger {
  color: var(--pt-red) !important;
}

.app-shell .alert-danger,
.modal .alert-danger,
body .alert-danger {
  --bs-alert-color: #e32626;
  --bs-alert-bg: var(--pt-red-light);
  --bs-alert-border-color: #e3262607;
}

body .bg-danger,
body .badge.bg-danger,
.app-shell .badge.bg-danger {
  background-color: #e32626 !important;
}

html:has(.app-shell),
html:has(.auth-body),
html.auth-html {
  zoom: var(--pt-ui-scale);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-main);
  background: #fff;
  color: var(--pt-text);
}

.app-shell { display: flex; min-height: 100vh; }

/* ── Sidebar ───────────────────────────────────────────────── */
#sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: #fff;
  border-right: none;
  overflow-y: auto;
  z-index: 900;
  padding: 16px 12px 20px;
  display: flex;
  flex-direction: column;
}

.sidebar-frame {
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sidebar-logo {
  width: 100%;
  margin-bottom: 12px;
  overflow: hidden;
  text-align: left;
}
.sidebar-logo .text-brand-mark {
  font-size: 1.55rem;
  line-height: 1.1;
}

.sidebar-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-weight: 700;
  margin-bottom: 14px;
}
.sidebar-welcome .welcome-label {
  flex: 1;
  font-size: 2.2rem;
  color: var(--pt-text);
  line-height: 1.25;
  text-align: left;
}
.sidebar-welcome .welcome-icons {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-shrink: 0;
}
.sidebar-welcome .welcome-icons img { width: 27px; height: 27px; opacity: .9; }
.sidebar-welcome .welcome-icons i { font-size: 1.5rem; color: #666; }
.sidebar-welcome .welcome-icons a {
  display: inline-flex;
  align-items: center;
  color: #666;
  text-decoration: none;
  transition: color .15s;
}
.sidebar-welcome .welcome-icons a:hover { color: var(--pt-red); }

.notification-bell-link,
.notification-message-link {
  display: inline-flex;
  align-items: flex-start;
  line-height: 1;
  text-decoration: none;
}
.notification-bell-wrap,
.notification-icon-wrap {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}
.notification-bell-link img {
  width: 27px;
  height: 27px;
  opacity: .9;
  display: block;
}
.notification-icon-wrap .bi-envelope {
  font-size: 1.5rem;
  color: #666;
  display: block;
  line-height: 1;
}
.notification-message-link:hover .bi-envelope {
  color: var(--pt-red);
}
.notification-bell-count,
.notification-icon-count {
  position: absolute;
  left: -19px;
  bottom: 0;
  color: var(--pt-red);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 0.5;
  letter-spacing: -0.02em;
}

.sidebar-user { margin-bottom: 0; line-height: 1.55; width: 100%; }
.sidebar-user .user-name { color: var(--pt-red); font-weight: 900; font-size: 1.4rem; }
.sidebar-user .user-position { color: var(--pt-red); font-weight: 700; font-size: 1.2rem; }
.sidebar-user .user-meta { color: var(--pt-text); font-weight: 500; font-size: .85rem; }
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 22px;
}
.sidebar-nav .sidebar-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.5rem 1.1rem;
  border-radius: 7px;
  background: transparent;
  color: #000;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid #e8e8e8;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
    transform 0.1s ease, box-shadow 0.1s ease, border-color 0.2s ease;
}
.sidebar-nav .sidebar-btn:hover:not(.active) {
  background: var(--pt-red);
  color: #fff;
  text-decoration: none;
  border-color: var(--pt-red);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px var(--pt-red-shadow);
}
.sidebar-nav .sidebar-btn.active {
  background: var(--pt-red);
  color: #fff;
  border-color: var(--pt-red);
  box-shadow: 0 4px 10px var(--pt-red-shadow);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 24px;
}
.sidebar-logout-link {
  display: inline-block;
  text-decoration: none;
}

/* ── Main ──────────────────────────────────────────────────── */
.app-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-left: 24px;
  padding-right: 48px;
  background: #fff;
}

/* ── Module navigation + content panel ─────────────────────── */
.module-tab-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 18px 0 28px;
  min-height: 0;
}

.module-tabs {
  background: transparent;
  border: none;
  border-radius: 0;
  width: 100%;
  max-width: none;
  overflow: hidden;
}
.module-tabs-scroll-wrap {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 12px 28px 0;
  min-width: 0;
  width: 100%;
}
.module-tabs-bar {
  display: grid;
  grid-template-rows: auto;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 8px;
  flex: 1;
  min-width: 0;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
  align-content: start;
}
.module-tabs-bar::-webkit-scrollbar {
  display: none;
}
.module-tabs-scroll-btn {
  flex: 0 0 32px;
  width: 32px;
  min-height: 52px;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  color: #555;
  font-size: .9rem;
  cursor: pointer;
  transition: background .15s, color .15s, opacity .15s;
}
.module-tabs-scroll-btn:hover:not(:disabled) {
  background: #fafafa;
  color: var(--pt-red);
  border-color: #bbb;
}
.module-tabs-scroll-btn:disabled {
  opacity: .35;
  cursor: default;
}
.module-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  height: 100%;
  padding: 0.65rem 0.45rem;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  text-decoration: none;
  background: transparent;
  color: #000;
  border: 1px solid #e8e8e8;
  border-radius: 7px;
  transition: background-color 0.2s ease, color 0.2s ease,
    transform 0.1s ease, box-shadow 0.1s ease;
  white-space: normal;
  word-break: break-word;
  hyphens: auto;
  cursor: pointer;
  box-sizing: border-box;
}
.module-tab:hover:not(.active) {
  background: var(--pt-red);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px var(--pt-red-shadow);
}
.module-tab.active {
  background: var(--pt-red);
  color: #fff;
  border-color: var(--pt-red);
  box-shadow: 0 4px 10px var(--pt-red-shadow);
}

/* Zone 2 — content card (below module tab buttons) */
.module-tab-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: auto;
  max-width: none;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-top: 3px solid var(--pt-red);
  border-radius: 10px;
  margin: 10px 28px 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
  min-height: 280px;
  min-width: 0;
  overflow: hidden;
}
.module-tab-panel-content {
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px 22px 24px;
  overflow-x: hidden;
  overflow-y: auto;
}
.module-tab-panel .pt-page-actions {
  padding: 0 22px 20px;
  margin-top: auto;
  flex-shrink: 0;
}

/* ── Sub tabs (secondary bar inside panel) ─────────────────── */
.sub-tabs {
  padding: 0;
  margin: 0;
  background: #fff;
  border-bottom: 1px solid #ddd;
}
.sub-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px 0;
}
.sub-tab-group { display: inline-flex; gap: 4px; }
.sub-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 22px;
  font-weight: 700;
  font-size: .8rem;
  line-height: 1.2;
  text-decoration: none;
  background: #dcdcdc;
  color: #555;
  border: 1px solid #bbb;
  border-bottom: none;
  border-radius: 7px 7px 0 0;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.1s ease, box-shadow 0.1s ease;
}
.sub-tab:hover:not(.active) {
  background: #e32626;
  color: #fff;
  border-color: #e32626;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px var(--pt-red-shadow);
}
.sub-tab.active {
  background: #e32626;
  color: #fff;
  border-color: #e32626;
  border-bottom: 1px solid #e32626;
  box-shadow: 0 4px 10px var(--pt-red-shadow);
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}
button.sub-tab {
  cursor: pointer;
  font-family: inherit;
}

/* ── Management System main tabs (same shell as Control Panel) ─ */
.module-tabs.ms-module-tabs {
  padding: 12px 28px 0;
}
.module-tabs.ms-module-tabs .module-tabs-bar {
  display: grid;
  grid-template-rows: auto;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  grid-auto-flow: row;
  gap: 8px;
  overflow: visible;
  padding-bottom: 2px;
  width: 100%;
}
.module-tabs.ms-module-tabs .module-tab {
  min-height: 52px;
  padding: 0.65rem 0.45rem;
  font-size: 0.85rem;
  white-space: normal;
  word-break: break-word;
}

.personnel-category-form .personnel-cat-panel {
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 0 8px 8px 8px;
  background: #fff;
}

.personnel-position-form-wrap { max-width: 760px; }
.personnel-position-save-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.personnel-position-print-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
  padding-bottom: 8px;
}

/* ── Page actions (Save / Add) ─────────────────────────────── */
.pt-page-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 28px 28px;
}

/* ── Main content (dashboard / standalone pages) ─────────────── */
#main-content:not(.module-tab-panel-content) { padding: 24px 28px 36px; flex: 1; }

/* ── Admin dashboard stat cards (/Dashboard) ─────────────────── */
.app-main .admin-dash-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 960px;
}
.app-main .admin-dash-stat-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.app-main .admin-dash-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  border-color: #e3262607;
}
.app-main .admin-dash-stat-title {
  font-weight: 500;
  font-size: 0.95rem;
  color: #000;
  margin-bottom: 15px;
}
.app-main .admin-dash-stat-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.app-main .admin-dash-stat-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e3262607;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  font-size: 1.25rem;
  line-height: 1;
}
.app-main .admin-dash-stat-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: 5px 25px;
  border-radius: 8px;
  background: #e31e24;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}
@media (max-width: 992px) {
  .app-main .admin-dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .app-main .admin-dash-stats { grid-template-columns: 1fr; max-width: none; }
}

.pt-form-body { max-width: 900px; }
.pt-validation { margin-bottom: 12px; }

/* Activities Create — aligned grid, buttons outside inputs */
.pt-form-create { max-width: none; }
.pt-form-create-grid {
  display: grid;
  grid-template-columns: 210px 480px 80px;
  column-gap: 12px;
  row-gap: 14px;
  align-items: center;
}
.task-list-contents,
.task-row { display: contents; }
.pt-form-create-grid .pt-field-label {
  flex: unset;
  width: 210px;
  min-height: 44px;
}
.pt-form-create-grid .pt-field-label-spacer {
  visibility: hidden;
}
.pt-form-create-grid .pt-field-input {
  flex: unset;
  width: 480px;
  max-width: 480px;
  height: 44px;
  min-height: 44px;
  box-sizing: border-box;
}
.pt-form-action-cell {
  width: 80px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.pt-field-error-grid {
  margin-left: 222px;
}

/* ── Tables (List design) ──────────────────────────────────── */
.table-pt { border-collapse: collapse; width: 100%; font-size: .84rem; }
.table-pt th, .table-pt td {
  border: none;
  padding: 10px 12px;
  vertical-align: middle;
}
.table-pt thead tr {
  background-color: #fff;
}
.table-pt thead th {
  background-color: #fff;
  color: var(--pt-text);
  font-weight: 700;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  border-left: none;
  border-right: none;
}
.table-pt tbody tr:nth-child(odd) { background: #fff; }
.table-pt tbody tr:nth-child(even) { background: #f7f0f0; }
.table-pt tbody tr:hover { background: #f7f0f0; }
.table-pt .col-no { width: 55px; text-align: center; }
.table-pt .col-actions { width: 170px; text-align: center; white-space: nowrap; }

/* Legacy class aliases (same as default List styling) */
.table-pt.table-pt-borderless td { border: none; }
.table-pt.table-pt-borderless thead th {
  border-left: none;
  border-right: none;
}
.table-pt-striped tbody tr:nth-child(odd),
.table-pt.table-pt-striped tbody tr:nth-child(odd) { background: #fff; }
.table-pt-striped tbody tr:nth-child(even),
.table-pt.table-pt-striped tbody tr:nth-child(even) { background: #f7f0f0; }
.table-pt-striped tbody tr:hover,
.table-pt.table-pt-striped tbody tr:hover { background: #f7f0f0; }
.pt-list-table thead,
.pt-list-table thead tr,
.pt-list-table thead th {
  background-color: #fff !important;
  color: var(--pt-text) !important;
}
.pt-list-table thead th {
  border-top: 1px solid #e8e8e8 !important;
  border-bottom: 1px solid #e8e8e8 !important;
  border-left: none !important;
  border-right: none !important;
}
.pt-list-table.table-pt-striped.table-pt-borderless tbody tr:nth-child(odd),
.pt-list-table tbody tr:nth-child(odd) { background: #fff !important; }
.pt-list-table.table-pt-striped.table-pt-borderless tbody tr:nth-child(even),
.pt-list-table tbody tr:nth-child(even) { background: #f7f0f0 !important; }
.pt-list-table.table-pt-striped.table-pt-borderless tbody tr:hover,
.pt-list-table tbody tr:hover { background: #f7f0f0 !important; }

/* Standard / Method list: one Sub Item per row so NO aligns with its text */
.pt-std-method-list tbody tr.pt-method-group-odd,
.pt-std-method-list tbody tr.pt-method-group-odd:nth-child(odd),
.pt-std-method-list tbody tr.pt-method-group-odd:nth-child(even) { background: #fff !important; }
.pt-std-method-list tbody tr.pt-method-group-even,
.pt-std-method-list tbody tr.pt-method-group-even:nth-child(odd),
.pt-std-method-list tbody tr.pt-method-group-even:nth-child(even) { background: #f7f0f0 !important; }
.pt-std-method-list tbody tr.pt-method-group-odd:hover,
.pt-std-method-list tbody tr.pt-method-group-even:hover { background: #efe6e6 !important; }
.pt-std-method-list td.pt-sub-no,
.pt-std-method-list td.pt-sub-title {
  vertical-align: middle;
}
.pt-std-method-list tr.pt-sub-continue td.pt-sub-no,
.pt-std-method-list tr.pt-sub-continue td.pt-sub-title {
  border-top: 1px solid #eee !important;
}
.pt-std-method-list td.pt-sub-title {
  max-width: 320px;
}

/* ── Pagination ────────────────────────────────────────────── */
.pt-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e3e3e3;
}
.pt-pagination-info {
  font-size: .84rem;
  font-weight: 600;
  color: #555;
}
.pt-pagination-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.pt-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  color: var(--pt-text);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.pt-page-btn:hover:not(.disabled):not(.active) {
  background: #f5f5f5;
  color: var(--pt-red);
  border-color: #bbb;
  text-decoration: none;
}
.pt-page-btn.active {
  background: var(--pt-red);
  color: #fff;
  border-color: var(--pt-red-dark);
}
.pt-page-btn.disabled {
  opacity: .45;
  cursor: default;
}

/* ── Form fields (label + white input, separate pills) ──────── */
.pt-field-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  max-width: 860px;
}
.pt-field-label {
  flex: 0 0 210px;
  display: flex;
  align-items: center;
  justify-content: right;
  padding: 11px 14px;
  background: transparent;
  color: #000;
  font-weight: 700;
  font-size: .82rem;
  text-align: center;
  border-radius: 8px;
  border: none;
  margin: 0;
}
.pt-field-input {
  flex: 1;
  width: 100%;
  border: var(--pt-input-border);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: var(--font-main);
  font-size: .86rem;
  outline: none;
  background: #fff;
}
.pt-field-input:focus {
  border: var(--pt-input-border);
  box-shadow: none;
}
.pt-field-input:disabled {
  background: #f0f0f0;
  color: #555;
  cursor: not-allowed;
  border: var(--pt-input-border);
}
select.pt-field-input { cursor: pointer; }
textarea.pt-field-input { resize: vertical; min-height: 44px; }
.pt-form-body .pt-field-input,
.pt-form-body select.pt-field-input,
.pt-form-body textarea.pt-field-input {
  min-height: 44px;
}
.pt-field-row-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .78rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.pt-field-row-btn.btn-row-add { background: var(--pt-blue); color: #fff; }
.pt-field-row-btn.btn-row-add:hover { background: var(--pt-blue-dark); color: #fff; }
.pt-field-row-btn.btn-row-remove { background: var(--pt-grey-tab); color: #000; }
.pt-field-row-btn.btn-row-remove:hover { background: #a8a8a8; color: #000; }
.pt-field-error { display: block; color: var(--pt-red); font-size: .78rem; margin: -8px 0 12px 222px; }

/* ── Unified input / dropdown border ───────────────────────── */
body .form-control,
body .form-select,
body textarea,
body select:not([multiple]),
body input[type="text"],
body input[type="password"],
body input[type="email"],
body input[type="number"],
body input[type="tel"],
body input[type="url"],
body input[type="search"],
body input[type="date"],
body input[type="datetime-local"],
body input[type="time"],
body input[type="month"],
body input[type="week"],
body input[type="file"] {
  border: var(--pt-input-border);
}
body .form-control:focus,
body .form-select:focus,
body textarea:focus,
body select:not([multiple]):focus,
body input[type="text"]:focus,
body input[type="password"]:focus,
body input[type="email"]:focus,
body input[type="number"]:focus,
body input[type="tel"]:focus,
body input[type="url"]:focus,
body input[type="search"]:focus,
body input[type="date"]:focus,
body input[type="datetime-local"]:focus,
body input[type="time"]:focus,
body input[type="month"]:focus,
body input[type="week"]:focus,
body input[type="file"]:focus {
  border: var(--pt-input-border);
  box-shadow: none;
}

/* Numeric fields with spinner arrows (e.g. Rounding) */
.pt-field-input.pt-number-spin {
  -moz-appearance: auto;
  appearance: auto;
}
.pt-field-input.pt-number-spin::-webkit-inner-spin-button,
.pt-field-input.pt-number-spin::-webkit-outer-spin-button {
  opacity: 1;
  height: 1.35em;
}

/* ── Document form ─────────────────────────────────────────── */
.pt-field-dual {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  margin-bottom: 14px;
  max-width: 860px;
}
.pt-field-dual .pt-field-group {
  flex: 1 1 0;
  min-width: 0;
  margin-bottom: 0;
  max-width: none;
}
.pt-field-dual .pt-field-label {
  flex: 0 0 210px;
}
.pt-field-dual .pt-field-input-date {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: none;
}
.pt-document-tools-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 860px;
  margin-bottom: 14px;
}
.pt-reminder-toggle {
  flex: 0 0 210px;
  cursor: pointer;
  transition: filter .15s;
}
.pt-reminder-toggle.is-active {
  background: #f0f0f0;
}
.pt-reminder-section {
  max-width: 860px;
}
.btn-upload-doc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  margin-left: auto;
}
.btn-upload-doc:hover {
  background: #222;
  color: #fff;
}
.pt-document-file-note {
  max-width: 860px;
  margin: -6px 0 14px 222px;
  font-size: .8rem;
  color: #555;
  font-weight: 600;
}
.pt-document-save-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  max-width: 860px;
  margin-top: 8px;
  padding-top: 4px;
}

/* ── Portal action buttons (outline — Details reference) ───── */
.app-shell .btn-pt-save,
.app-shell .btn-pt-add,
.app-shell .btn-pt-list,
.app-shell .btn-edit,
.app-shell .btn-remove,
.app-shell .btn-view-doc {
  font-weight: 600;
  border-radius: 4px;
  padding: 5px 12px;
  font-size: .78rem;
  line-height: 1.2;
  border-width: 1px;
  border-style: solid;
  background: transparent !important;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.app-shell .btn-pt-save,
.app-shell .btn-pt-save.btn-outline-success {
  color: var(--pt-green) !important;
  border-color: var(--pt-green) !important;
}
.app-shell .btn-pt-save:hover {
  background: var(--pt-green) !important;
  color: #fff !important;
  border-color: var(--pt-green) !important;
}

.app-shell .btn-pt-add {
  color: var(--pt-blue) !important;
  border-color: var(--pt-blue) !important;
}
.app-shell .btn-pt-add:hover {
  background: var(--pt-blue) !important;
  color: #fff !important;
  border-color: var(--pt-blue) !important;
}

.app-shell .btn-pt-list {
  color: #555 !important;
  border-color: #999 !important;
  padding: 9px 28px;
  font-size: .84rem;
  font-weight: 700;
  border-radius: 4px;
}
.app-shell .btn-pt-list:hover {
  background: #666 !important;
  color: #fff !important;
  border-color: #666 !important;
}

.app-shell .btn-edit.btn-outline-warning {
  color: #b8860b !important;
  border-color: var(--pt-yellow) !important;
}
.app-shell .btn-edit.btn-outline-warning:hover {
  background: var(--pt-yellow) !important;
  color: #1a1a1a !important;
  border-color: var(--pt-yellow) !important;
}

.app-shell .btn-edit.btn-outline-primary,
.app-shell .btn-outline-primary.btn-edit {
  color: #0d6efd !important;
  border-color: #0d6efd !important;
}
.app-shell .btn-edit.btn-outline-primary:hover,
.app-shell .btn-outline-primary.btn-edit:hover {
  background: var(--pt-red) !important;
  color: #fff !important;
  border-color: var(--pt-red-dark) !important;
}

.app-shell .btn-remove.btn-outline-danger,
.app-shell .sidebar-logout-link.btn-remove {
  color: var(--pt-red) !important;
  border-color: var(--pt-red) !important;
}
.app-shell .btn-remove.btn-outline-danger:hover,
.app-shell .sidebar-logout-link.btn-remove:hover {
  background: var(--pt-red) !important;
  color: #fff !important;
  border-color: var(--pt-red) !important;
}

.app-shell .btn-view-doc {
  color: #333 !important;
  border-color: #333 !important;
}
.app-shell .btn-view-doc:hover {
  background: #333 !important;
  color: #fff !important;
  border-color: #333 !important;
}

/* Uniform action buttons inside Control Panel list tables */
.app-shell .pt-list-table .col-actions {
  width: auto;
  min-width: 170px;
  text-align: center;
  white-space: nowrap;
}
.app-shell .pt-list-table .col-actions .btn {
  font-weight: 600;
  border-radius: 4px;
  padding: 5px 12px !important;
  font-size: .78rem !important;
  line-height: 1.2;
  border-width: 1px;
  border-style: solid;
  background: transparent !important;
  text-decoration: none;
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
  box-shadow: none !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.app-shell .pt-list-table .col-actions .btn-outline-warning,
.app-shell .pt-list-table .col-actions .btn-edit {
  color: #b8860b !important;
  border-color: var(--pt-yellow) !important;
}
.app-shell .pt-list-table .col-actions .btn-outline-warning:hover,
.app-shell .pt-list-table .col-actions .btn-edit:hover {
  background: var(--pt-yellow) !important;
  color: #1a1a1a !important;
  border-color: var(--pt-yellow) !important;
}
.app-shell .pt-list-table .col-actions .btn-outline-danger,
.app-shell .pt-list-table .col-actions .btn-remove {
  color: var(--pt-red) !important;
  border-color: var(--pt-red) !important;
}
.app-shell .pt-list-table .col-actions .btn-outline-danger:hover,
.app-shell .pt-list-table .col-actions .btn-remove:hover {
  background: var(--pt-red) !important;
  color: #fff !important;
  border-color: var(--pt-red) !important;
}
.app-shell .pt-list-table .col-actions .btn-outline-primary,
.app-shell .pt-list-table .col-actions .btn-view-doc {
  color: #333 !important;
  border-color: #333 !important;
}
.app-shell .pt-list-table .col-actions .btn-outline-primary:hover,
.app-shell .pt-list-table .col-actions .btn-view-doc:hover {
  background: #333 !important;
  color: #fff !important;
  border-color: #333 !important;
}
.app-shell .pt-list-table .col-actions .btn-outline-success,
.app-shell .pt-list-table .col-actions .btn-pt-save {
  color: var(--pt-green) !important;
  border-color: var(--pt-green) !important;
}
.app-shell .pt-list-table .col-actions .btn-outline-success:hover,
.app-shell .pt-list-table .col-actions .btn-pt-save:hover {
  background: var(--pt-green) !important;
  color: #fff !important;
  border-color: var(--pt-green) !important;
}
.app-shell .pt-list-table .col-actions .btn-outline-secondary,
.app-shell .pt-list-table .col-actions .btn-pt-list {
  color: #555 !important;
  border-color: #999 !important;
}
.app-shell .pt-list-table .col-actions .btn-outline-secondary:hover,
.app-shell .pt-list-table .col-actions .btn-pt-list:hover {
  background: #666 !important;
  color: #fff !important;
  border-color: #666 !important;
}
.app-shell .pt-list-table .col-actions .btn-primary,
.app-shell .pt-list-table .col-actions .btn-download-pdf {
  color: #fff !important;
  border-color: var(--pt-red) !important;
  background: var(--pt-red) !important;
}
.app-shell .pt-list-table .col-actions .btn-primary:hover,
.app-shell .pt-list-table .col-actions .btn-download-pdf:hover {
  background: var(--pt-red-dark) !important;
  color: #fff !important;
  border-color: var(--pt-red-dark) !important;
}

/* List page nav / toolbar links (Add, back links) */
.app-shell .pt-list-toolbar .btn,
.app-shell .pt-list-nav .btn {
  font-weight: 600;
  border-radius: 4px;
  padding: 5px 12px !important;
  font-size: .78rem !important;
  line-height: 1.2;
  border-width: 1px;
  border-style: solid;
  background: transparent !important;
  text-decoration: none;
  box-shadow: none !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.app-shell .pt-list-toolbar .btn-pt-add {
  color: var(--pt-blue) !important;
  border-color: var(--pt-blue) !important;
}
.app-shell .pt-list-toolbar .btn-pt-add:hover {
  background: var(--pt-blue) !important;
  color: #fff !important;
  border-color: var(--pt-blue) !important;
}
.app-shell .pt-list-nav .btn-pt-list,
.app-shell .pt-list-nav .btn-outline-secondary {
  color: #555 !important;
  border-color: #999 !important;
}
.app-shell .pt-list-nav .btn-pt-list:hover,
.app-shell .pt-list-nav .btn-outline-secondary:hover {
  background: #666 !important;
  color: #fff !important;
  border-color: #666 !important;
}
.app-shell .pt-list-nav {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

/* Larger toolbar Save (page actions) */
.app-shell .module-tab-panel .btn-pt-save,
.app-shell .pt-document-actions .btn-pt-save {
  padding: 9px 28px;
  font-size: .84rem;
  font-weight: 700;
}

.pt-list-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.pt-documents-table .col-actions {
  width: auto;
  white-space: nowrap;
  text-align: left;
}
.pt-documents-table .col-actions .pt-reminder-icon {
  margin-left: 2px;
}
.pt-reminder-icon {
  color: var(--pt-red);
  font-size: 1.05rem;
  vertical-align: middle;
}

.alert { border-radius: 8px; font-size: .86rem; }

/* ── Dashboard ─────────────────────────────────────────────── */
.dash-card {
  border-radius: 8px;
  padding: 20px;
  color: #fff;
  background: var(--pt-red);
}
.dash-card.alt-green { background: var(--pt-green); }
.dash-card.alt-grey  { background: #888; }
.dash-card .dash-icon { font-size: 1.8rem; margin-bottom: 6px; }
.dash-card .dash-count { font-size: 1.9rem; font-weight: 700; }
.dash-card .dash-label { font-size: .82rem; font-weight: 600; }

.dash-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dash-quick-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  border-radius: 4px;
  background: transparent;
  color: var(--pt-red);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--pt-red);
  transition: background-color 0.2s ease, color 0.2s ease,
    transform 0.1s ease, box-shadow 0.1s ease;
}
.dash-quick-link:hover {
  background: var(--pt-red);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px var(--pt-red-shadow);
}

.dash-registrations-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 520px;
  padding: 0.5rem 1.1rem;
  border-radius: 4px;
  background: transparent;
  color: var(--pt-red);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid var(--pt-red);
  box-shadow: none;
  transition: background-color 0.2s ease, color 0.2s ease,
    transform 0.1s ease, box-shadow 0.1s ease;
}
.dash-registrations-action:hover {
  background: var(--pt-red);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px var(--pt-red-shadow);
}
.dash-registrations-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.dash-registrations-label .bi { font-size: 1.15rem; }
.dash-registrations-badge {
  display: inline-block;
  background: #ffc107;
  color: #333;
  font-size: .78rem;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.dash-registrations-hint {
  font-size: .78rem;
  font-weight: 600;
  opacity: .85;
}

/* ── Portal / Login ────────────────────────────────────────── */
.portal-page, .login-page {
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px 20px;
}
.portal-top-btn {
  position: absolute;
  top: 24px;
  right: 32px;
  background: var(--pt-red);
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
}
.portal-top-btn:hover { background: var(--pt-red-dark); color: #fff; }
.portal-back-btn {
  position: absolute;
  top: 24px;
  left: 32px;
  background: #fff;
  color: var(--pt-red);
  font-weight: 700;
  font-size: .88rem;
  padding: 10px 24px;
  border-radius: 8px;
  border: 2px solid var(--pt-red);
  text-decoration: none;
}
.portal-back-btn:hover { background: var(--pt-red-light); color: var(--pt-red-dark); text-decoration: none; }
.portal-logo { text-align: center; margin-bottom: 36px; }
.portal-logo img { max-width: 320px; height: auto; }
.portal-actions { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 420px; }
.portal-row { display: flex; align-items: stretch; height: 46px; }
.portal-row-label {
  flex: 0 0 42%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #000;
  font-weight: 700;
  font-size: .88rem;
  border-radius: 23px 0 0 23px;
  border: 2px solid var(--pt-red);
}
.portal-row-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--pt-text);
  font-weight: 700;
  font-size: .88rem;
  border: 2px solid var(--pt-red);
  border-left: none;
  border-radius: 0 23px 23px 0;
  text-decoration: none;
}
.portal-row-action:hover { background: var(--pt-red-light); color: var(--pt-red); text-decoration: none; }
.portal-row-action.disabled { opacity: .55; pointer-events: none; }

/* Portal landing (PDF layout) */
.portal-page-pdf {
  align-items: stretch;
  justify-content: center;
  padding: 40px 48px;
}
.portal-website-btn {
  position: absolute;
  top: 24px;
  right: 32px;
  background: var(--pt-red);
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  padding: 10px 28px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
}
.portal-website-btn:hover { background: var(--pt-red-dark); color: #fff; text-decoration: none; }
.portal-hero {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: auto;
}
.portal-brand { text-align: left; min-width: 220px; }
.portal-brand-logo {
  max-width: 300px;
  width: 100%;
  height: auto;
  display: block;
  margin-left: 0;
  margin-right: auto;
}
.portal-nav-side {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.portal-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 320px;
  position: relative;
}
.portal-nav-main-block {
  display: flex;
  align-items: stretch;
  gap: 24px;
}
.portal-nav-main-items,
.portal-nav-submenu {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.portal-nav-submenu {
  gap: 12px;
}
.portal-submenu-block {
  display: flex;
  align-items: stretch;
  gap: 24px;
  margin-left: 44px;
}
.portal-submenu-block[hidden] {
  display: none !important;
}
.portal-rail {
  position: relative;
  width: 3px;
  flex-shrink: 0;
  align-self: stretch;
}
.portal-rail-track {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #c8c8c8;
}
.portal-rail-fill {
  position: absolute;
  left: 0;
  width: 3px;
  background: var(--pt-red);
  top: 0;
  height: 0;
  transition: top .15s ease, height .15s ease;
  z-index: 1;
}
.portal-nav-row {
  display: flex;
  align-items: center;
  min-height: 22px;
}
.portal-nav-link {
  font-weight: 700;
  font-size: 1rem;
  color: #b0b0b0;
  text-decoration: none;
  line-height: 1.35;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
}
.portal-nav-link:hover:not(.disabled) { color: var(--pt-red); text-decoration: none; }
.portal-nav-link.active {
  color: var(--pt-red);
}
.portal-nav-link.disabled {
  color: #b0b0b0;
  cursor: default;
}
.portal-nav-parent {
  color: #b0b0b0;
}
.portal-nav-parent.is-selected,
.portal-nav.is-login-open .portal-nav-parent.is-selected {
  color: var(--pt-text);
  font-weight: 700;
}
.portal-nav-sub-link {
  font-weight: 700;
  font-size: 1rem;
  color: #b0b0b0;
  text-decoration: none;
  line-height: 1.35;
  display: flex;
  align-items: center;
}
.portal-nav-sub-link:hover { color: var(--pt-red); text-decoration: none; }
.portal-nav-sub-link.active {
  color: var(--pt-red);
}
.portal-nav-sub-admin {
  font-size: .88rem;
  font-weight: 700;
}
.portal-footer-pdf {
  position: absolute;
  bottom: 32px;
  right: 175px;
  text-align: right;
  font-size: .84rem;
  font-weight: 700;
  color: var(--pt-red);
  line-height: 1.5;
}
.portal-footer-pdf em {
  display: block;
  color: var(--pt-text);
  font-weight: 700;
  font-style: italic;
  margin-bottom: 2px;
}

@media (max-width: 640px) {
  .portal-hero {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  .portal-brand { text-align: left; }
  .portal-nav {
    align-items: center;
    width: 100%;
    max-width: 360px;
  }
  .portal-nav-main-block,
  .portal-submenu-block {
    flex-direction: column;
    align-items: center;
    margin-left: 0;
    width: 100%;
  }
  .portal-rail {
    display: none;
  }
  .portal-nav-row {
    justify-content: center;
    width: 100%;
  }
  .portal-footer-pdf {
    position: static;
    margin-top: 48px;
    text-align: center;
    width: 100%;
  }
}

/* ── Registration wizard (PDF wireframe layout) ──────────────── */
.registration-page {
  min-height: 100vh;
  background: #fff;
  padding: 28px 40px 60px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.reg-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  flex: 1;
  max-width: 1100px;
  width: 100%;
}
.reg-brand-logo { max-width: 200px; height: auto; display: block; margin-bottom: 6px; margin-right: auto; }
.reg-portal-link {
  display: inline-block;
  color: var(--pt-red);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  margin-bottom: 14px;
}
.reg-portal-link:hover { color: var(--pt-red-dark); text-decoration: underline; }
.reg-page-heading {
  color: var(--pt-red);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 20px;
  line-height: 1.3;
}

/* Vertical main steps (left) */
.reg-mainnav {
  --reg-progress: 40%;
  position: relative;
  padding-left: 14px;
}
.reg-mainnav::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(to bottom,
    var(--pt-red) 0%,
    var(--pt-red) var(--reg-progress),
    #ccc var(--reg-progress),
    #ccc 100%);
}
.reg-mainnav ul { list-style: none; margin: 0; padding: 0; }
.reg-mainnav li {
  padding: 9px 0 9px 10px;
  font-weight: 700;
  font-size: .92rem;
  color: #bbb;
  line-height: 1.35;
}
.reg-mainnav li.done,
.reg-mainnav li.active { color: var(--pt-red); }

/* Horizontal sub-steps (top of main area) — continuous connected rail */
.reg-hsteps {
  position: relative;
  margin-bottom: 36px;
  max-width: 720px;
  padding-top: 0;
}
.reg-hsteps-track {
  position: absolute;
  top: 5.5px;
  left: 7px;
  right: 0;
  height: 3px;
  pointer-events: none;
  z-index: 0;
}
.reg-hsteps-track-bg {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 1px;
}
.reg-hsteps-track-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--pt-red);
  border-radius: 1px;
  transition: width .2s ease;
}
.reg-hsteps-row {
  display: flex;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
.reg-hstep {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 0 auto;
  min-width: 72px;
}
.reg-hstep-gap {
  flex: 1;
  min-width: 48px;
  height: 14px;
}
.reg-hstep-gap-trail { min-width: 80px; flex: 1.5; }
.reg-hstep-box {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #ccc;
  margin-bottom: 6px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 1px #fff;
}
.reg-hstep.done .reg-hstep-box,
.reg-hstep.active .reg-hstep-box { background: var(--pt-red); }
.reg-hstep-label {
  font-weight: 700;
  font-size: .82rem;
  color: #bbb;
  line-height: 1.2;
}
.reg-hstep-caption {
  font-size: .72rem;
  color: #999;
  margin-top: 2px;
}
.reg-hstep.done .reg-hstep-label,
.reg-hstep.active .reg-hstep-label { color: var(--pt-red); }
.reg-hstep.done .reg-hstep-caption,
.reg-hstep.active .reg-hstep-caption { color: var(--pt-text); }

.reg-content { padding-top: 0; min-width: 0; }
.reg-page-footer {
  text-align: right;
  margin-top: auto;
  padding-top: 40px;
  font-size: .82rem;
  color: var(--pt-red);
  max-width: 1100px;
  width: 100%;
  align-self: flex-end;
}
.reg-page-footer em { color: var(--pt-text); font-style: italic; display: block; margin-bottom: 4px; }

/* Public top nav (PDF — Documents / Programs / … + Website) */
.public-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 28px;
  padding: 4px 0 8px;
}
.public-top-nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}
.public-top-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pt-text);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  line-height: 1.2;
}
.public-top-nav-link:hover {
  color: var(--pt-red);
  text-decoration: none;
}
.public-top-nav-caret {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--pt-red);
  flex-shrink: 0;
}
.public-top-nav-website {
  flex-shrink: 0;
  padding: 8px 24px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--pt-red);
  background: #fff;
  border: 2px solid var(--pt-red);
  border-radius: 6px;
  text-decoration: none;
  line-height: 1.2;
}
.public-top-nav-website:hover {
  background: var(--pt-red-light);
  color: var(--pt-red);
  text-decoration: none;
}

/* Registration PDF layout (sidebar timeline + form panel) */
.registration-page-pdf {
  padding: 20px 40px 48px;
  align-items: stretch;
  justify-content: flex-start;
}
.registration-page-pdf .reg-shell {
  max-width: 1180px;
  margin: 0 auto;
  grid-template-columns: 220px 1fr;
  gap: 48px;
}
.reg-sidebar { min-width: 0; }
.reg-page-heading {
  color: var(--pt-red);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 18px;
  line-height: 1.3;
}

/* Vertical timeline (PDF wireframe) */
.reg-vsteps {
  --reg-v-progress: 0%;
  --reg-vstep-size: 36px;
  --reg-vstep-bar-h: 26px;
  --reg-vstep-line-x: 18px;
  /* Fixed label column — sized for "Terms & Conditions" */
  --reg-vstep-label-w: 172px;
  --reg-vstep-track-w: calc(var(--reg-vstep-size) + var(--reg-vstep-label-w));
  position: relative;
  margin-top: 4px;
  width: var(--reg-vstep-track-w);
  max-width: 100%;
}
.reg-vsteps ul {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.reg-vsteps ul::before {
  content: "";
  position: absolute;
  left: var(--reg-vstep-line-x);
  top: calc(var(--reg-vstep-size) / 2);
  bottom: calc(var(--reg-vstep-size) / 2);
  width: 2px;
  border-radius: 1px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom,
    var(--pt-red) 0%,
    var(--pt-red) var(--reg-v-progress),
    #d1d1d1 var(--reg-v-progress),
    #d1d1d1 100%);
  z-index: 0;
}
.reg-vstep {
  display: grid;
  grid-template-columns: var(--reg-vstep-size) var(--reg-vstep-label-w);
  align-items: center;
  gap: 0;
  margin: 0 0 20px;
  padding: 0;
  position: relative;
  z-index: 1;
  min-height: var(--reg-vstep-size);
  width: var(--reg-vstep-track-w);
}
.reg-vstep:last-child { margin-bottom: 0; }
.reg-vstep.active {
  display: block;
  width: var(--reg-vstep-track-w);
}
.reg-vstep-marker {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  grid-column: 1;
}
.reg-vstep-active-wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 2;
  width: var(--reg-vstep-track-w);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .08));
}
.reg-vstep-badge {
  width: var(--reg-vstep-size);
  height: var(--reg-vstep-size);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  border: 2px solid #c8c8c8;
  border-radius: 9px;
  background: #fff;
  color: var(--pt-text);
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}
.reg-vstep-label {
  font-weight: 700;
  font-size: .88rem;
  color: var(--pt-text);
  line-height: 1.25;
  grid-column: 2;
  width: var(--reg-vstep-label-w);
  padding-left: 10px;
  box-sizing: border-box;
}
.reg-vstep.active .reg-vstep-active-wrap .reg-vstep-badge {
  border: none;
  background: var(--pt-red);
  color: #fff;
  border-radius: 9px;
  flex-shrink: 0;
}
.reg-vstep.active .reg-vstep-active-wrap .reg-vstep-label {
  display: inline-flex;
  align-items: center;
  flex: 1;
  width: var(--reg-vstep-label-w);
  min-width: var(--reg-vstep-label-w);
  max-width: var(--reg-vstep-label-w);
  height: var(--reg-vstep-bar-h);
  padding: 0 12px 0 10px;
  margin-left: -2px;
  background: var(--pt-red);
  color: #fff;
  border-radius: 0 9px 9px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  font-size: .86rem;
  box-sizing: border-box;
  grid-column: unset;
  padding-left: 10px;
}
.reg-vstep.done .reg-vstep-badge,
.reg-vstep.pending .reg-vstep-badge {
  border-color: #c8c8c8;
  color: var(--pt-text);
  background: #fff;
}
.reg-vstep.done .reg-vstep-label,
.reg-vstep.pending .reg-vstep-label {
  color: var(--pt-text);
}

/* Form panel with tab title */
.reg-form-panel {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  padding: 28px 28px 24px;
  margin-top: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}
.reg-form-panel .registration-section-title {
  display: inline-block;
  position: absolute;
  top: -13px;
  left: 22px;
  margin: 0;
  padding: 4px 16px;
  background: #fff;
  border: 1px solid var(--pt-red);
  border-radius: 4px;
  color: var(--pt-red);
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.3;
}
.reg-form-panel .registration-welcome { max-width: 100%; padding-top: 8px; }

.registration-form-pdf { max-width: 100%; }
.registration-form-pdf .pt-field-group {
  border-radius: 999px;
  overflow: hidden;
}
.registration-form-pdf .pt-field-label {
  justify-content: flex-end;
  text-align: right;
  border-radius: 999px 0 0 999px;
}
.registration-form-pdf .pt-field-input {
  border-radius: 0 999px 999px 0;
}
.registration-form-pdf select.pt-field-input {
  border-radius: 0 999px 999px 0;
}

.registration-actions-pdf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  max-width: 100%;
}
.registration-actions-pdf-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
}
.btn-reg-save,
.btn-reg-next,
.btn-reg-back {
  font-weight: 700;
  font-size: .86rem;
  padding: 8px 28px;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}
.btn-reg-save {
  color: var(--pt-green);
  border: 2px solid var(--pt-green);
}
.btn-reg-save:hover {
  background: #f3fbf6;
  color: var(--pt-green-dark);
  border-color: var(--pt-green-dark);
}
.btn-reg-next {
  color: var(--pt-text);
  border: 2px solid #999;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .08);
}
.btn-reg-next:hover {
  background: #f7f7f7;
  color: var(--pt-text);
}
.btn-reg-back {
  color: #666;
  border: 2px solid #ccc;
}
.btn-reg-back:hover {
  background: #fafafa;
  color: var(--pt-text);
  text-decoration: none;
}

.reg-page-footer-pdf {
  text-align: right;
  font-weight: 700;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

/* Portal — Registration & Loging in (PDF) */
.portal-page-reg-pdf {
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  align-self: stretch;
  width: 100%;
  max-width: none;
  padding: 20px 40px 40px;
  box-sizing: border-box;
}
.portal-reg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: none;
  margin: 0 0 28px;
  padding: 0;
  box-sizing: border-box;
}
.portal-reg-header-logo {
  max-width: 200px;
  width: auto;
  height: auto;
  display: block;
  margin-left: 199px;
}
.portal-reg-pdf-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  flex: 1;
}
.portal-reg-page-title {
  color: var(--pt-red);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0 0 18px;
  text-align: left;
}
.portal-reg-panel {
  border: 1px solid #ddd;
  border-top: 3px solid var(--pt-red);
  border-radius: 8px;
  background: #fff;
  padding: 22px 28px 26px;
}
.portal-reg-intro {
  font-weight: 700;
  color: var(--pt-text);
  font-size: .92rem;
  line-height: 1.55;
  margin: 0 0 22px;
}
.portal-reg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid #eee;
}
.portal-reg-row:first-of-type { border-top: none; padding-top: 0; }
.portal-reg-row-copy { flex: 1; min-width: 0; }
.portal-reg-row-heading {
  color: var(--pt-red);
  font-weight: 700;
  font-size: .95rem;
  margin: 0 0 6px;
}
.portal-reg-row-text {
  margin: 0;
  font-weight: 700;
  color: var(--pt-text);
  font-size: .88rem;
  line-height: 1.45;
}
.portal-reg-outline-btn {
  flex-shrink: 0;
  min-width: 120px;
  padding: 8px 24px;
  text-align: center;
  font-weight: 700;
  font-size: .88rem;
  color: var(--pt-red);
  background: #fff;
  border: 2px solid var(--pt-red);
  border-radius: 8px;
  text-decoration: none;
}
.portal-reg-outline-btn:hover {
  background: var(--pt-red-light);
  color: var(--pt-red);
  text-decoration: none;
}

/* Login page (PDF page 1) */
.login-page-pdf {
  justify-content: flex-start;
  padding-top: 48px;
}

/* ── Auth split-screen (Reg.pdf: ~1/3 form + ~2/3 hero, full height) ─ */
html.auth-html {
  zoom: 1;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
body.auth-body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.auth-split-page {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
  background: #fff;
  font-family: var(--font-main);
  overflow: hidden;
  --auth-label-size: 0.7rem;
  --auth-input-size: 0.72rem;
  --auth-input-height: 24px;
  --auth-label-width: 74px;
  --auth-login-input-width: 268px;
  --auth-input-max-width: 195px;
  --auth-field-gap: 8px;
  --auth-field-radius: 4px;
}
.auth-split-left,
.auth-split-left-reg {
  flex: 0 0 33.333%;
  width: 33.333%;
  max-width: 33.333%;
  min-width: 300px;
  height: 100%;
  padding: 28px 24px 0 32px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}
.auth-split-left:not(.auth-split-left-reg) {
  padding: 0 24px;
}
.auth-split-left-reg {
  padding: 22px 12px 0 18px;
}
.auth-split-left-reg .auth-field-label {
  color: #777;
}
.auth-split-left-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}
.auth-split-left:not(.auth-split-left-reg) .auth-split-left-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.auth-brand-mark {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.auth-brand-mark-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}
.auth-brand-mark-link:hover,
.auth-brand-mark-link:focus {
  color: inherit;
  text-decoration: none;
}
.auth-brand-mypt { color: #000; }
.auth-brand-provider { color: var(--pt-red); }
.auth-page-subtitle,
.auth-reg-heading {
  margin: 0 0 20px;
  font-size: 0.875rem;
  font-weight: 400;
  color: #000;
}
.auth-choose-prompt {
  margin: -12px 0 16px;
  font-weight: 700;
  color: var(--pt-red);
  font-size: 0.78rem;
}
.auth-form { margin: 0; }
.auth-form-alert { font-size: 0.72rem; }

/* Login form grid — labels | inputs, actions aligned to input column */
.auth-form--login {
  display: grid;
  grid-template-columns: max-content var(--auth-login-input-width);
  column-gap: var(--auth-field-gap);
  row-gap: 5px;
  align-items: center;
  width: max-content;
  max-width: 100%;
}
.auth-form--login .auth-form-alert {
  grid-column: 1 / -1;
}
.auth-form--login .auth-field-row {
  display: contents;
}
.auth-form--login .auth-field-label {
  text-align: left;
  font-weight: 400;
}
.auth-form--login .auth-field-input,
.auth-form--login .auth-field-input-wrap {
  grid-column: 2;
  width: 100%;
  max-width: none;
  flex: none;
}
.auth-form--login .auth-field-error {
  grid-column: 2;
  margin: -2px 0 1px;
}
.auth-form--login .auth-login-actions,
.auth-form--login .auth-register-row {
  grid-column: 2;
  margin-left: 0;
  width: 100%;
  max-width: none;
}
.auth-form--login .auth-login-actions {
  align-items: center;
  margin-top: 1px;
}
.auth-form--login .auth-register-row {
  margin-top: 6px;
}

.auth-form:not(.auth-form--login) .auth-field-input,
.auth-form:not(.auth-form--login) .auth-field-input-wrap {
  flex: 0 1 var(--auth-input-max-width);
  width: var(--auth-input-max-width);
  max-width: var(--auth-input-max-width);
}
.auth-field-row {
  display: flex;
  align-items: center;
  gap: var(--auth-field-gap);
  margin-bottom: 5px;
}
.auth-field-label {
  flex: 0 0 var(--auth-label-width);
  font-weight: 600;
  font-size: var(--auth-label-size);
  line-height: 1.15;
  color: #000;
  text-align: right;
  white-space: nowrap;
}
.auth-field-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}
.auth-field-input-wrap .auth-field-input {
  flex: 1;
  width: 100%;
  max-width: none;
  padding-right: 28px;
}
.auth-password-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: transparent;
  color: #b0b0b0;
  cursor: pointer;
  line-height: 1;
}
.auth-password-toggle:hover { color: #888; }
.auth-password-toggle .bi { font-size: 0.82rem; }
.auth-field-input {
  flex: 1;
  min-width: 0;
  height: var(--auth-input-height);
  border: 1px solid #e0e0e0;
  border-radius: var(--auth-field-radius);
  padding: 2px 8px;
  font-family: var(--font-main);
  font-size: var(--auth-input-size);
  line-height: 1.25;
  outline: none;
  background: #fff;
}
.auth-split-page input.auth-field-input,
.auth-split-page select.auth-field-input {
  border: 1px solid #e0e0e0 !important;
  box-shadow: none !important;
}
.auth-split-page input.auth-field-input:focus,
.auth-split-page select.auth-field-input:focus {
  border-color: #ccc !important;
  box-shadow: none !important;
}
.auth-field-input:focus {
  border-color: #ccc;
  box-shadow: none;
}
select.auth-field-input {
  cursor: pointer;
  padding-right: 22px;
}
.auth-field-error {
  display: block;
  margin: -3px 0 5px calc(var(--auth-label-width) + var(--auth-field-gap));
  font-size: 0.65rem;
  line-height: 1.2;
}
.auth-form:not(.auth-form--login) .auth-login-actions,
.auth-form:not(.auth-form--login) .auth-register-row {
  margin-left: calc(var(--auth-label-width) + var(--auth-field-gap));
  width: var(--auth-input-max-width);
  max-width: var(--auth-input-max-width);
}
.auth-login-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}
.auth-forgot-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.3;
}
.auth-forgot-links a {
  color: var(--pt-red);
  text-decoration: none;
}
.auth-forgot-links a:hover { text-decoration: underline; }
.auth-register-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.7rem;
  font-weight: 400;
  color: #000;
}
.auth-form--login .auth-btn-outline {
  min-width: 78px;
  width: 78px;
  flex-shrink: 0;
}
.auth-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 72px;
  width: 72px;
  height: var(--auth-input-height);
  padding: 0 8px;
  border: 1px solid var(--pt-red);
  border-radius: var(--auth-field-radius);
  background: #fff;
  color: var(--pt-red);
  font-weight: 600;
  font-size: var(--auth-input-size);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  font-family: var(--font-main);
  line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease;
}
button.auth-btn-outline {
  appearance: none;
  -webkit-appearance: none;
}
.auth-btn-outline:hover {
  background: var(--pt-red);
  color: #fff;
  text-decoration: none;
}
.auth-btn-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: var(--auth-input-height);
  padding: 0 12px;
  border: 1px solid var(--pt-green);
  border-radius: var(--auth-field-radius);
  background: #fff;
  color: var(--pt-green);
  font-weight: 600;
  font-size: var(--auth-input-size);
  cursor: pointer;
  font-family: var(--font-main);
  line-height: 1.2;
}
.auth-btn-save:hover {
  background: #f3fbf6;
  color: var(--pt-green-dark);
}
.auth-account-types {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.auth-account-types .dash-quick-link {
  width: 100%;
  min-height: var(--auth-input-height);
  padding: 3px 10px;
  font-size: var(--auth-input-size);
  box-sizing: border-box;
}
.auth-signin-row {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--pt-text);
}
.auth-signin-row a {
  color: var(--pt-red);
  font-weight: 700;
  text-decoration: none;
}
.auth-signin-row a:hover { text-decoration: underline; }
.auth-support-footer {
  flex-shrink: 0;
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  padding: 24px 0 28px;
  background: #fff;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
.auth-split-left-reg .auth-support-footer {
  margin-left: 0;
  margin-right: 0;
  padding: 24px 18px 28px;
}
.auth-support-footer a {
  color: var(--pt-red);
  font-weight: 400;
  font-size: 0.875rem;
  text-decoration: none;
}
.auth-support-footer a:hover { text-decoration: underline; }

/* Hero panel (right side — ~2/3 width, full viewport height) */
.auth-split-hero {
  flex: 0 0 66.667%;
  width: 66.667%;
  max-width: 66.667%;
  min-width: 0;
  height: 100%;
  align-self: stretch;
  position: relative;
  background: url('/images/hero-bg.png') center center / cover no-repeat;
  background-color: var(--pt-red);
  overflow: hidden;
}
.auth-split-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(227, 38, 38, 0.78);
}
.auth-split-hero-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 40px 32px 36px;
  box-sizing: border-box;
}
.auth-split-hero-title {
  margin: 0;
  max-width: 92%;
  color: #fff;
  font-size: clamp(1.35rem, 1.75vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
}
.auth-split-hero-copy {
  margin: 0;
  align-self: flex-end;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 400;
}

/* Registration accordion (form expands under active step) */
.auth-reg-workspace {
  display: block;
  width: 100%;
  min-width: 0;
}
.auth-vsteps {
  position: relative;
  width: 100%;
  min-width: 0;
}
.auth-vsteps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.auth-vsteps-list::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--pt-red) 0%,
    var(--pt-red) var(--vstep-line-red, 0%),
    #d1d1d1 var(--vstep-line-red, 0%),
    #d1d1d1 100%
  );
  z-index: 0;
}
.auth-vstep {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}
.auth-vstep:last-child { margin-bottom: 0; }
.auth-vstep-head {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 6px;
  min-width: 0;
}
.auth-vstep-num {
  grid-column: 1;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #c8c8c8;
  border-radius: 5px;
  background: #fff;
  font-weight: 700;
  font-size: 0.68rem;
  color: var(--pt-text);
}
.auth-vstep-title {
  grid-column: 2;
  min-width: 0;
  font-weight: 700;
  font-size: 0.72rem;
  color: #b0b0b0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.15;
}
.auth-vstep-caret {
  width: 0;
  height: 0;
  flex-shrink: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid currentColor;
  opacity: .85;
}
.auth-vstep.active .auth-vstep-num,
.auth-vstep.done .auth-vstep-num {
  background: var(--pt-red);
  border-color: var(--pt-red);
  color: #fff;
}
.auth-vstep.active .auth-vstep-title,
.auth-vstep.done .auth-vstep-title {
  color: var(--pt-red);
}
.auth-vstep.pending .auth-vstep-title,
.auth-vstep.pending .auth-vstep-caret {
  color: #b0b0b0;
}
.auth-vstep-actions {
  grid-column: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-self: end;
}
.auth-vstep-badge {
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--pt-red);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.auth-vstep-edit {
  padding: 2px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  color: var(--pt-text);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
}
.auth-vstep-edit:hover {
  background: #fafafa;
  text-decoration: none;
}
.auth-vstep-body {
  margin: 8px 0 4px 28px;
  min-width: 0;
}
.auth-vstep-body-standalone {
  margin-left: 0;
}
.auth-vstep-body .auth-field-label {
  flex: 0 0 68px;
  color: #777;
  font-weight: 600;
}
.auth-vstep-body .auth-field-error {
  margin-left: calc(68px + var(--auth-field-gap));
}
.auth-form-panel {
  position: relative;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  min-height: 0;
  box-shadow: none;
}
.auth-form-panel-full {
  max-width: 100%;
  border: none;
  padding: 0;
  box-shadow: none;
}
.auth-panel-tab {
  position: static;
  display: inline-block;
  margin: 0 0 8px;
  padding: 1px 8px;
  background: #fff;
  border: 1px solid var(--pt-red);
  border-radius: 3px;
  color: var(--pt-red);
  font-weight: 700;
  font-size: 0.68rem;
  line-height: 1.25;
}
.auth-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.auth-complete-message {
  font-size: .92rem;
  line-height: 1.55;
  color: var(--pt-text);
}
.auth-complete-redirect-note {
  margin: 10px 0 0;
  font-size: .78rem;
  color: #666;
}
.registration-terms-body {
  font-size: .88rem;
  line-height: 1.5;
  color: var(--pt-text);
}
.registration-terms-body ul {
  padding-left: 1.1rem;
  margin-bottom: 12px;
}
.registration-terms-body .registration-section-title {
  display: block;
  position: static;
  border: none;
  padding: 0;
  margin: 0 0 12px;
  color: var(--pt-red);
  font-weight: 700;
  font-size: .95rem;
}

@media (max-width: 992px) {
  html.auth-html,
  body.auth-body {
    overflow: auto;
    height: auto;
  }
  .auth-split-page {
    position: static;
    inset: auto;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
  }
  .auth-split-left,
  .auth-split-left-reg {
    flex: none;
    width: 100%;
    max-width: none;
    min-height: auto;
    height: auto;
    overflow: visible;
    padding-bottom: 0;
  }
  .auth-split-left:not(.auth-split-left-reg) {
    padding: 24px 20px 0;
  }
  .auth-split-left-content {
    overflow: visible;
  }
  .auth-split-left:not(.auth-split-left-reg) .auth-split-left-content {
    justify-content: flex-start;
    align-items: stretch;
  }
  .auth-support-footer {
    margin: 0;
    padding: 20px 0 24px;
    text-align: center;
  }
  .auth-split-hero {
    width: 100%;
    min-height: 240px;
    height: 240px;
    flex: none;
  }
  .auth-split-hero-content {
    position: relative;
    inset: auto;
    min-height: 240px;
    height: 100%;
    padding: 24px;
  }
  .auth-reg-workspace {
    display: block;
  }
  .auth-vstep-body {
    margin-left: 28px;
  }
}
@media (max-width: 640px) {
  .auth-split-left,
  .auth-split-left-reg { padding: 24px 20px 0; }
  .auth-support-footer {
    margin: 0;
    padding: 20px 0 24px;
    text-align: center;
  }
  .auth-form--login {
    display: block;
    width: 100%;
  }
  .auth-form--login .auth-field-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-bottom: 5px;
  }
  .auth-form--login .auth-field-label {
    text-align: left;
  }
  .auth-form--login .auth-field-input,
  .auth-form--login .auth-field-input-wrap {
    grid-column: auto;
    width: 100%;
  }
  .auth-form--login .auth-field-error {
    grid-column: auto;
    margin-left: 0;
  }
  .auth-form--login .auth-login-actions,
  .auth-form--login .auth-register-row {
    grid-column: auto;
    width: 100%;
    margin-left: 0;
  }
  .auth-field-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .auth-field-label { flex: none; text-align: left; }
  .auth-form .auth-field-input,
  .auth-form .auth-field-input-wrap {
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
  }
  .auth-field-error { margin-left: 0; }
  .auth-form .auth-login-actions,
  .auth-form .auth-register-row {
    margin-left: 0;
    width: 100%;
    max-width: none;
  }
  .auth-login-actions,
  .auth-register-row { flex-direction: column; align-items: stretch; }
  .auth-btn-outline { width: 100%; }
}

.login-pdf-tagline {
  color: var(--pt-text);
  font-size: .95rem;
  line-height: 1.4;
}
.login-pdf-title {
  color: var(--pt-red);
  font-size: 1.35rem;
  font-weight: 700;
}
.login-register-link a {
  color: var(--pt-red);
  font-weight: 700;
  text-decoration: none;
}
.login-register-link a:hover { text-decoration: underline; }
.login-page-footer {
  margin-top: auto;
  padding: 24px 20px;
  font-size: .82rem;
  color: #666;
  text-align: center;
}

/* Choose account (PDF page 2) */
.portal-page-choose-account {
  align-items: stretch;
  justify-content: flex-start;
  padding: 40px 48px 32px;
  min-height: 100vh;
}
.portal-choose-account-wrap {
  max-width: 720px;
  margin: 48px auto 0;
  width: 100%;
}
.portal-choose-account-subtitle {
  text-align: center;
  font-weight: 600;
  margin-bottom: 28px;
  color: var(--pt-text);
}
.portal-account-types {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.portal-account-type-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 2px solid var(--pt-red);
  border-radius: 26px;
  color: var(--pt-text);
  font-weight: 700;
  text-decoration: none;
  transition: background .15s ease;
}
.portal-account-type-card:hover {
  background: var(--pt-red-light);
  color: var(--pt-red-dark);
  text-decoration: none;
}
.portal-choose-account-signin {
  text-align: center;
  font-size: .95rem;
}
.portal-choose-account-signin a {
  color: var(--pt-red);
  font-weight: 700;
  text-decoration: none;
}
.portal-choose-account-signin a:hover { text-decoration: underline; }

.portal-page-reg-pdf .portal-footer-pdf-reg {
  position: relative;
  margin-top: auto;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  align-self: stretch;
  text-align: right;
  font-weight: 700;
  font-size: .84rem;
  color: var(--pt-red);
  padding-top: 36px;
  box-sizing: border-box;
}

.registration-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  min-height: 0;
  display: block;
}
.registration-section-title { display: none; }
.registration-terms-body .registration-section-title {
  display: block;
  position: static;
  border: none;
  padding: 0;
  margin: 0 0 16px;
  color: var(--pt-red);
  font-weight: 700;
  font-size: 1rem;
}
.registration-welcome { max-width: 560px; }
.registration-review-block {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}
.registration-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 0;
  max-width: 640px;
}
.registration-actions .btn-outline-secondary {
  background: #fff;
  border: 1px solid #ccc;
  color: #666;
  font-weight: 700;
  font-size: .86rem;
  padding: 9px 32px;
  border-radius: 8px;
}
.registration-actions .btn-pt-submit { padding: 9px 36px; border-radius: 8px; }

/* Registration form — label + white input */
.registration-form { max-width: 640px; }
.registration-form .pt-field-group {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 14px;
  max-width: 100%;
}
.registration-form .pt-field-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  min-width: 130px;
  background: transparent;
  color: #000;
  font-weight: 700;
  font-size: .78rem;
  text-align: center;
  border-radius: 6px 0 0 6px;
  border: var(--pt-input-border);
  border-right: none;
  margin: 0;
  white-space: nowrap;
}
.registration-form .pt-field-input {
  flex: 1;
  min-width: 0;
  border: var(--pt-input-border);
  border-left: none;
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  font-size: .84rem;
  min-height: 42px;
  background: #fff;
}
.registration-form .pt-field-input:focus {
  border: var(--pt-input-border);
  border-left: none;
  box-shadow: none;
  outline: none;
}
.registration-form select.pt-field-input { cursor: pointer; }
.registration-form .reg-field-full .pt-field-label { min-width: 150px; }

.reg-field-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.reg-field-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.reg-field-row-3 .pt-field-group,
.reg-field-row-2 .pt-field-group { margin-bottom: 0; }
.reg-field-row-3 .pt-field-label,
.reg-field-row-2 .pt-field-label {
  min-width: 0;
  padding: 10px 8px;
  font-size: .7rem;
}
.reg-field-cell { min-width: 0; }
.registration-form .text-danger.small { display: block; font-size: .72rem; margin-top: 2px; }

.login-form-wrap { width: 100%; max-width: 520px; }
.portal-trust-panel {
  margin-top: 1.25rem;
  padding: 14px 16px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fafafa;
  font-size: .78rem;
  color: #444;
  text-align: left;
}
.portal-trust-title {
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--pt-text);
  font-size: .82rem;
}
.portal-trust-text {
  margin: 0 0 8px;
  line-height: 1.45;
}
.portal-trust-list {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.55;
}
.portal-trust-list a {
  color: var(--pt-red);
  text-decoration: none;
}
.portal-trust-list a:hover {
  text-decoration: underline;
}
.portal-footer-pdf .portal-trust-panel {
  max-width: 520px;
  margin: 0 auto;
}
.login-form-wrap > .text-center.mb-3 {
  text-align: left;
}
.login-form-wrap > .text-center.mb-3 img {
  display: block;
  margin-left: 0;
  margin-right: auto;
}
.login-admin-badge {
  display: inline-block;
  background: var(--pt-red);
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  padding: 8px 28px;
  border-radius: 8px;
}
.login-forgot { text-align: right; margin-top: 14px; font-size: .85rem; font-weight: 600; }
.login-forgot a { color: var(--pt-red); text-decoration: none; }
.login-submit-wrap { display: flex; justify-content: flex-end; margin-top: 18px; }
.btn-pt-submit {
  background: var(--pt-red);
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  padding: 10px 36px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
}
.btn-pt-submit:hover { background: var(--pt-red-dark); }

.hamburger-btn {
  display: none;
  position: fixed;
  top: 12px; left: 12px;
  z-index: 1100;
  background: var(--pt-red);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  width: 40px; height: 40px;
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .dash-quick-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
  .dash-quick-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  #sidebar { transform: translateX(-100%); transition: transform .3s; }
  #sidebar.open { transform: translateX(0); }
  .app-main { margin-left: 0; }
  .hamburger-btn { display: block; }
  .dash-quick-grid { grid-template-columns: 1fr; }
  .module-tab-shell { padding: 12px 0 20px; }
  .module-tabs-scroll-wrap { padding: 8px 16px 0; gap: 6px; }
  .module-tabs-bar {
    grid-template-columns: repeat(10, minmax(96px, 1fr));
  }
  .module-tab {
    min-height: 48px;
    padding: 0.55rem 0.35rem;
    font-size: 0.8rem;
  }
  .module-tabs-scroll-btn { width: 28px; flex-basis: 28px; min-height: 48px; }
  .module-tab-panel { border-radius: 8px; margin-left: 16px; margin-right: 16px; }
  .module-tab-panel-content { padding: 12px 14px 18px; }
  .sub-tabs-bar { padding: 8px 10px 0; gap: 4px; }
  .sub-tab { padding: 8px 14px; font-size: .76rem; }
  .module-tabs.ms-module-tabs { padding: 8px 16px 0; }
  .module-tabs.ms-module-tabs .module-tabs-bar {
    grid-template-columns: repeat(9, minmax(96px, 1fr));
    gap: 6px;
  }
  .module-tabs.ms-module-tabs .module-tab {
    min-height: 48px;
    padding: 0.55rem 0.35rem;
    font-size: 0.8rem;
  }
  .module-tab-panel .pt-page-actions { padding: 0 14px 14px; }
  .pt-field-group { flex-direction: column; align-items: stretch; gap: 6px; }
  .pt-field-label { flex: 0 0 auto; }
  .pt-field-error { margin-left: 0; }
  .pt-form-create-grid {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }
  .pt-form-create-grid .pt-field-label,
  .pt-form-create-grid .pt-field-input {
    width: 100%;
    max-width: 100%;
  }
  .pt-form-action-cell { width: auto; justify-content: flex-start; }
  .pt-field-dual { flex-direction: column; }
  .pt-field-dual .pt-field-input-date {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
  }
  .pt-document-file-note { margin-left: 0; }
}

/* Activity logs */
.sort-link {
  color: inherit;
  text-decoration: none;
}
.sort-link:hover { text-decoration: underline; }
.activity-log-toolbar {
  background: #fff;
  border: 1px solid var(--pt-red-pale-edge);
  border-radius: 8px;
  padding: 12px 14px;
}

/* Activity Logs — table panel, header, row dividers */
.activity-logs-page {
  background: #fff;
  border: 1px solid var(--pt-red-pale-edge);
  border-radius: 10px;
  padding: 16px 18px 18px;
  box-shadow: 0 4px 14px #e3262607;
}
.activity-logs-table-wrap {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.activity-logs-page .pt-pagination {
  border-top: 1px solid #e3262607;
  margin-top: 0;
  padding: 12px 14px 4px;
}
.detail-json {
  background: #f4f6f8;
  border-radius: 4px;
  padding: 8px;
  max-height: 200px;
  overflow: auto;
  font-size: .78rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Appeal wizard (participant) — horizontal steps + form */
.appeal-hsteps.reg-hsteps {
  max-width: 100%;
  margin-bottom: 28px;
}
.appeal-wizard-content {
  max-width: 720px;
}

.appeal-stage-hsteps.reg-hsteps {
  max-width: 100%;
}
.appeal-stage-hsteps-row .appeal-stage-hstep {
  min-width: 88px;
}
.appeal-detail-content {
  max-width: 100%;
}

/* ── (legacy reg-grid removed — see registration-page wireframe) ─ */

@media (max-width: 768px) {
  .reg-shell { grid-template-columns: 1fr; gap: 24px; }
  .reg-hsteps { flex-wrap: wrap; }
  .reg-field-row-3 { grid-template-columns: 1fr; }
  .reg-field-row-2 { grid-template-columns: 1fr; }
  .reg-page-footer { text-align: center; }
  .registration-page-pdf { padding: 16px 16px 32px; }
  .portal-page-reg-pdf { padding: 16px 16px 32px; }
  .public-top-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .public-top-nav-menu {
    gap: 16px 20px;
  }
  .public-top-nav-website { align-self: flex-end; }
  .portal-reg-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .portal-reg-outline-btn { align-self: flex-end; }
  .portal-page-reg-pdf .portal-footer-pdf-reg { text-align: right; }
  .reg-page-footer-pdf { text-align: center; }
  .registration-actions-pdf {
    flex-direction: column;
    align-items: stretch;
  }
  .registration-actions-pdf-right {
    justify-content: flex-end;
    margin-left: 0;
  }
}

/* ── Appeal stage timeline (right column, Director/QOPTCO) ─────── */
.appeal-detail-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 992px) { .appeal-detail-grid { grid-template-columns: 1fr; } }
.appeal-timeline-stages { position: relative; padding-left: 6px; }
.appeal-stage {
  position: relative;
  padding: 0 0 18px 26px;
  border-left: 2px solid #e2e2e2;
}
.appeal-stage:last-child { border-left-color: transparent; padding-bottom: 0; }
.appeal-stage::before {
  content: "";
  position: absolute;
  left: -8px; top: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #e2e2e2;
  border: 2px solid #fff;
}
.appeal-stage.done::before { background: var(--pt-green); }
.appeal-stage.current::before { background: var(--pt-red); }
.appeal-stage-name { font-weight: 700; font-size: .82rem; color: var(--pt-text); }
.appeal-stage.current .appeal-stage-name { color: var(--pt-red); }
.appeal-stage-dur { font-size: .72rem; color: #999; }

.appeal-info-card {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}
.appeal-info-card .appeal-no {
  color: var(--pt-red);
  font-weight: 700;
  font-size: 1.05rem;
}

/* ── Appeal 4-step process indicator (participant New Appeal) — uses .reg-hsteps ─ */
.request-cards { display: flex; flex-direction: column; gap: 12px; }
.request-card {
  display: grid;
  grid-template-columns: 40px repeat(4, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
@media (max-width: 860px) { .request-card { grid-template-columns: 1fr 1fr; } }
.request-card .req-index {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--pt-red);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.request-card .req-field-label { font-size: .68rem; color: #999; text-transform: uppercase; letter-spacing: .03em; }
.request-card .req-field-value { font-size: .86rem; font-weight: 600; color: var(--pt-text); }
.request-status { font-size: .72rem; font-weight: 700; padding: 5px 14px; border-radius: 16px; }
.request-status.inactive { background: #e32626; color: #fff; }
.request-status.active { background: #00b050; color: #ffffff; }
.request-status.need-action { background: #fff4e0; color: #b8860b; }
.request-status.closed { background: #eef0f2; color: #666; }

/* ── Role-specific top bar (Participant / Director layouts) ───── */
.role-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 28px 10px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: var(--site-header-offset, var(--official-bar-height, 0px));
  z-index: 1100;
  background: #fff;
}
.role-topbar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  flex: 1 1 auto;
}
.role-topbar .site-header-tools {
  margin-left: auto;
}
.role-topbar-link {
  color: var(--pt-red);
  font-weight: 700;
  font-size: .82rem;
  text-decoration: none;
}
.role-topbar-link:hover { color: var(--pt-red-dark); text-decoration: underline; }
.role-main-content { padding: 18px 28px 28px; flex: 1; }
.role-footer {
  padding: 12px 28px 20px;
  font-size: .78rem;
  border-top: 1px solid #f0f0f0;
}

/* ── Login type tabs (Participant / Personnel) ─────────────────── */
.login-type-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--pt-red);
}
.login-type-tab {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  font-weight: 700;
  font-size: .88rem;
  color: var(--pt-red);
  background: #fff;
  text-decoration: none;
  border-right: 1px solid var(--pt-red);
}
.login-type-tab:last-child { border-right: none; }
.login-type-tab.active { background: var(--pt-red); color: #fff; }
.login-type-tab:hover:not(.active) { background: var(--pt-red-light); color: var(--pt-red); }

/* ── Request detail tabs ─────────────────────────────────────── */
.request-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.request-detail-tab {
  padding: 8px 18px;
  border-radius: 6px;
  background: var(--pt-grey-tab);
  color: #000;
  font-weight: 700;
  font-size: .82rem;
  text-decoration: none;
}
.request-detail-tab.active { background: var(--pt-red); color: #fff; }
.request-detail-tab:hover:not(.active) { background: #a8a8a8; color: #000; }

/* ── Appeal mgmt detail tabs ───────────────────────────────────── */
.appeal-detail-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.appeal-detail-tab {
  padding: 8px 20px;
  border-radius: 6px;
  background: var(--pt-grey-tab);
  font-weight: 700;
  font-size: .84rem;
  color: #000;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.appeal-detail-tab.active { background: var(--pt-red); color: #fff; }

@media print {
  .sidebar, .role-topbar, .role-footer, .hamburger-btn, .registration-actions, .no-print,
  .official-verify-wrap, .portal-app-header { display: none !important; }
  .app-main { margin-left: 0 !important; padding: 0 !important; }
  body.has-official-verify-bar,
  body.has-portal-app-header { padding-top: 0 !important; }
}

/* ── Text brand logo ─────────────────────────────────────────── */
.text-brand-mark {
  font-family: var(--font-main);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.text-brand-mypt { color: #000; }
.text-brand-provider { color: #e32626; }
.text-brand-mark--header { font-size: 1.65rem; }
.text-brand-mark--sidebar { font-size: 1.55rem; }

/* ── Portal app header (MyPTProvider welcome banner) ─────────── */
.portal-app-header {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--site-header-offset, var(--official-bar-height, 0px));
  z-index: 1100;
  background: #fff;
}

.portal-app-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 28px;
  border-bottom: 1px solid #ececec;
  min-height: 56px;
  box-sizing: border-box;
}

.portal-app-header-brand .text-brand-mark {
  font-size: 1.65rem;
  line-height: 1.1;
}

.portal-app-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex-shrink: 0;
}

.portal-header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: #1a1a1a;
  text-decoration: none;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  transition: color 0.15s ease;
}

.portal-header-icon-btn:hover {
  color: var(--pt-red);
}

.portal-app-header-actions .notification-bell-link,
.portal-app-header-actions .notification-message-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: #1a1a1a;
  overflow: visible;
  position: relative;
}

.portal-app-header-actions .notification-bell-link:hover,
.portal-app-header-actions .notification-message-link:hover {
  color: var(--pt-red);
}

.portal-app-header-actions .notification-bell-wrap,
.portal-app-header-actions .notification-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
}

.portal-app-header-actions .notification-bell-link img {
  width: 24px;
  height: 24px;
  display: block;
  opacity: 1;
}

.portal-app-header-actions .notification-icon-wrap .bi-envelope {
  font-size: 1.35rem;
  color: inherit;
  display: block;
  line-height: 1;
}

.portal-app-header-actions .notification-bell-count,
.portal-app-header-actions .notification-icon-count {
  position: absolute;
  top: auto;
  right: -6px;
  left: auto;
  bottom: -4px;
  min-width: 14px;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--pt-red);
  text-align: center;
  pointer-events: none;
}

.portal-app-header-banner {
  position: relative;
  background: var(--pt-red);
  overflow: hidden;
}

.portal-app-header-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/hero-bg.png") center / cover no-repeat;
  opacity: 0.22;
  pointer-events: none;
}

.portal-app-header-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 28px 24px;
  color: #fff;
}

.portal-welcome-label {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2px;
}

.portal-user-name {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.portal-user-detail {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.portal-app-header-session {
  text-align: right;
  font-size: 0.7rem;
  font-weight: bold;
  line-height: 1.55;
  flex-shrink: 0;
  white-space: nowrap;
}

body.has-portal-app-header {
  padding-top: calc(var(--site-header-offset, var(--official-bar-height)) + var(--portal-app-header-height));
}

body.has-portal-app-header #sidebar {
  top: calc(var(--site-header-offset, var(--official-bar-height)) + var(--portal-app-header-height));
  height: calc(100vh - var(--site-header-offset, var(--official-bar-height)) - var(--portal-app-header-height));
}

body.has-portal-app-header.official-verify-panel-open #sidebar {
  top: calc(var(--site-header-offset, var(--official-bar-height)) + var(--portal-app-header-height));
  height: calc(100vh - var(--site-header-offset, var(--official-bar-height)) - var(--portal-app-header-height));
}

@media (max-width: 768px) {
  body.has-portal-app-header .hamburger-btn {
    top: calc(var(--site-header-offset, var(--official-bar-height)) + 10px);
  }
}

@media (max-width: 768px) {
  :root {
    --portal-app-header-height: 210px;
  }

  .portal-app-header-top {
    padding: 10px 16px 10px 56px;
  }

  .portal-app-header-actions {
    gap: 14px;
  }

  .portal-app-header-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 16px 18px 56px;
  }

  .portal-welcome-label {
    font-size: 1.65rem;
  }

  .portal-app-header-session {
    text-align: left;
    white-space: normal;
  }
}

/* ── Official verify bar (SAAC-style) ────────────────────────── */
:root {
  --official-bar-height: 36px;
  --portal-app-header-height: 168px;
}
.official-verify-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}
.official-verify-bar {
  background: #f7f7f7;
  border-bottom: 1px solid #ececec;
}
.official-verify-bar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 20px;
  min-height: var(--official-bar-height);
  box-sizing: border-box;
}
.official-verify-flag {
  flex-shrink: 0;
  display: inline-flex;
  color: #e32626;
}
.official-verify-flag svg rect {
  fill: #e32626;
}
.official-verify-text {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #333;
  font-weight: 500;
}
.official-verify-toggle {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  margin-left: 4px;
  color: #e32626;
  font-weight: 700;
  font-size: 0.78rem;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-main);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.official-verify-toggle:hover { color: #c41f1f; }
.official-verify-chevron {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.official-verify-wrap.is-open .official-verify-chevron {
  transform: rotate(180deg);
}
.official-verify-panel {
  background: #fff;
  border-bottom: 1px solid #ececec;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.official-verify-panel-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 20px 16px 20px;
}
.official-verify-panel-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #444;
}
.official-verify-panel-item:last-child { margin-bottom: 0; }
.official-verify-panel-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 0;
  color: #e32626;
  line-height: 1;
}
.official-verify-panel-icon svg,
.official-verify-panel-svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
  overflow: visible;
}

body.has-official-verify-bar:not(.has-portal-app-header) {
  padding-top: var(--site-header-offset, var(--official-bar-height));
}
body.auth-body.has-official-verify-bar {
  padding-top: 0;
}
body.has-official-verify-bar:not(.has-portal-app-header) #sidebar {
  top: var(--site-header-offset, var(--official-bar-height));
  height: calc(100vh - var(--site-header-offset, var(--official-bar-height)));
}
body.official-verify-panel-open:not(.has-portal-app-header) #sidebar {
  top: var(--site-header-offset, var(--official-bar-height));
  height: calc(100vh - var(--site-header-offset, var(--official-bar-height)));
}
body.auth-body.has-official-verify-bar .auth-split-page {
  top: var(--site-header-offset, var(--official-bar-height));
  height: calc(100% - var(--site-header-offset, var(--official-bar-height)));
}

.auth-header-tools {
  position: fixed;
  top: calc(var(--site-header-offset, var(--official-bar-height)) + 10px);
  right: 20px;
  z-index: 1150;
}

/* ── Site header tools (search + account) ─────────────────────── */
.site-header-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.site-icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  color: #333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.site-icon-btn:hover {
  border-color: #e32626;
  color: #e32626;
}
.site-account-wrap {
  position: relative;
}
.site-account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 6px 0;
  z-index: 1300;
}
.site-account-menu a {
  display: block;
  padding: 9px 16px;
  color: #333;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}
.site-account-menu a:hover {
  background: #e3262607;
  color: #e32626;
}
.site-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--site-header-offset, 36px) + 24px) 20px 20px;
}
.site-search-overlay[hidden] {
  display: none !important;
}
.site-search-panel {
  position: relative;
  width: min(640px, 100%);
  background: #fff;
  border-radius: 10px;
  padding: 16px 48px 16px 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.site-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-search-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.92rem;
  outline: none;
}
.site-search-input:focus {
  border-color: #e32626;
}
.site-search-submit,
.site-search-close {
  border: none;
  background: none;
  cursor: pointer;
  color: #333;
}
.site-search-submit {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #ddd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.site-search-submit:hover {
  border-color: #e32626;
  color: #e32626;
}
.site-search-close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 1.5rem;
  line-height: 1;
  color: #666;
}
