:root {
  --navy: #0d2b52;
  --navy-deep: #091e3a;
  --blue: #1f4f8a;
  --accent: #1e5aa8;
  --ink: #1a2332;
  --muted: #6b7280;
  --line: #e5eaf0;
  --bg: #f4f7fb;
  --card: #ffffff;
  --ok: #0f7a45;
  --warn: #b45309;
  --danger: #b91c1c;
  --radius: 1.15rem;
  --font: "Montserrat", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--navy); }

.pl-mark {
  width: 2.4rem; height: 2.4rem; border-radius: 0.65rem;
  background: linear-gradient(145deg, #2a6bb8, #0d2b52);
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 0.78rem; flex-shrink: 0;
}

/* —— Partner login / register (Magic Sands) —— */
.partner-login-page {
  --pl-cyan: #16aad8;
  --pl-cyan-deep: #1296c0;
  --pl-ink: #0f172a;
  --pl-muted: #64748b;
  --pl-line: rgba(15, 23, 42, 0.1);
  --pl-display: "Baskervville", Georgia, serif;
  --pl-sans: "Manrope", "Segoe UI", sans-serif;
  margin: 0;
  font-family: var(--pl-sans);
  color: var(--pl-ink);
  background: #f8fafc;
}
.partner-login-page a { text-decoration: none; }

.pl-top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem clamp(1rem, 3vw, 2rem);
}
.pl-brand img { height: 42px; width: auto; display: block; }
.pl-top-nav {
  display: none;
  align-items: center;
  gap: 1rem;
}
.pl-top-nav a {
  color: rgba(255,255,255,0.92);
  font-size: 0.84rem;
  font-weight: 600;
}
.pl-top-cta {
  border: 1px solid rgba(255,255,255,0.7);
  padding: 0.45rem 0.85rem;
  color: #fff !important;
}
.pl-top-cta:hover { background: #fff; color: var(--pl-cyan-deep) !important; }
@media (min-width: 860px) {
  .pl-top-nav { display: flex; }
}

.pl-hero {
  position: relative;
  min-height: 100svh;
  color: #fff;
  display: grid;
  align-items: center;
  padding: 6.5rem clamp(1rem, 3vw, 2rem) 3.5rem;
  background-image:
    linear-gradient(105deg, rgba(8, 28, 32, 0.82) 0%, rgba(8, 28, 32, 0.45) 55%, rgba(8, 28, 32, 0.55) 100%),
    var(--pl-hero-image);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.pl-hero-veil { display: none; }
.pl-hero-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.pl-hero-inner-single { justify-items: center; }
@media (min-width: 920px) {
  .pl-hero-inner { grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; }
  .pl-hero-inner-single { grid-template-columns: 1fr; }
}

.pl-brand-signal {
  margin: 0 0 0.4rem;
  font-family: var(--pl-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.pl-copy h1 {
  margin: 0 0 0.9rem;
  font-family: var(--pl-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.15;
}
.pl-copy > p {
  margin: 0;
  max-width: 34rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.65;
  font-size: 1.02rem;
}
.pl-benefits {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.55rem;
}
.pl-benefits li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}
.pl-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  background: #c9a227;
}

.pl-panel {
  background: rgba(255,255,255,0.97);
  color: var(--pl-ink);
  padding: 1.5rem 1.35rem 1.35rem;
  border: 1px solid rgba(255,255,255,0.35);
  width: min(100%, 420px);
  justify-self: end;
}
.pl-panel-wide { width: min(100%, 720px); justify-self: center; }
.pl-panel h2,
.pl-panel-brand {
  margin: 0;
  font-family: var(--pl-display);
  color: var(--pl-cyan-deep);
}
.pl-panel h2 { font-size: 1.7rem; font-weight: 400; }
.pl-panel-brand { font-size: 1.35rem; margin-bottom: 0.25rem; }
.pl-panel-sub {
  margin: 0.35rem 0 1.15rem;
  color: var(--pl-muted);
  font-size: 0.92rem;
}

.pl-form { display: grid; gap: 0.8rem; }
.pl-form-grid { gap: 0.85rem; }
@media (min-width: 720px) {
  .pl-form-grid { grid-template-columns: 1fr 1fr; }
  .pl-span-2 { grid-column: span 2; }
}
.pl-label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pl-muted);
}
.pl-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--pl-line);
  padding: 0 0.75rem;
  background: #fff;
}
.pl-field input,
.pl-label > input,
.pl-label > textarea {
  border: 0;
  outline: none;
  width: 100%;
  padding: 0.8rem 0;
  font: inherit;
  font-weight: 500;
  color: var(--pl-ink);
  background: transparent;
}
.pl-label > input,
.pl-label > textarea {
  border: 1px solid var(--pl-line);
  padding: 0.8rem 0.85rem;
  background: #fff;
}
.pl-label > textarea { resize: vertical; }
.pl-field:focus-within,
.pl-label > input:focus,
.pl-label > textarea:focus {
  outline: 2px solid rgba(27, 107, 116, 0.18);
  border-color: var(--pl-cyan);
}
.pl-icon { opacity: 0.45; font-size: 0.9rem; font-weight: 700; }
.pl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}
.pl-remember {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--pl-muted);
  font-weight: 500;
}
.pl-forgot { color: var(--pl-cyan-deep); font-weight: 700; }
.pl-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: var(--pl-cyan-deep);
  color: #fff;
  padding: 0.9rem 1rem;
  font: inherit;
  font-weight: 700;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}
.pl-btn:hover { background: var(--pl-cyan); }
.pl-btn.small { width: auto; display: inline-flex; padding: 0.6rem 1rem; font-size: 0.88rem; }
.pl-register {
  text-align: center;
  color: var(--pl-muted);
  font-size: 0.9rem;
  margin: 1rem 0 0;
}
.pl-register a { color: var(--pl-cyan-deep); font-weight: 700; }

.pl-alert {
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
}
.pl-alert-error { background: #fef2f2; color: var(--danger); }
.pl-alert-success { background: #ecfdf5; color: var(--ok); }
.pl-alert-info { background: #eef6f6; color: var(--pl-cyan-deep); }

.pl-features {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 3.25rem clamp(1rem, 3vw, 2rem) 2.5rem;
}
.pl-features h2 {
  margin: 0 0 1.5rem;
  font-family: var(--pl-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--pl-ink);
}
.pl-feature-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .pl-feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .pl-feature-grid { grid-template-columns: repeat(4, 1fr); }
}
.pl-feature-grid article {
  padding-top: 1rem;
  border-top: 1px solid var(--pl-line);
}
.pl-f-icon {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--pl-cyan);
}
.pl-feature-grid h3 {
  margin: 0 0 0.4rem;
  color: var(--pl-ink);
  font-size: 1rem;
}
.pl-feature-grid p {
  margin: 0;
  color: var(--pl-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pl-footer {
  background: #0d2a30;
  color: #fff;
  padding: 2.25rem clamp(1rem, 3vw, 2rem) 1.25rem;
}
.pl-footer-inner {
  width: min(1100px, 100%);
  margin: 0 auto 1.25rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .pl-footer-inner { grid-template-columns: 1.4fr 1fr; }
}
.pl-footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.pl-footer-brand strong { display: block; }
.pl-footer-brand small { opacity: 0.75; font-size: 0.75rem; }
.pl-footer p {
  opacity: 0.85;
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 34rem;
  margin: 0;
}
.pl-footer-links { display: grid; gap: 0.45rem; align-content: start; }
.pl-footer-links a { color: #fff; font-size: 0.9rem; }
.pl-legal {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8rem;
  opacity: 0.7;
}

/* —— Partner admin panel —— */
/* —— Blank booking admin shell (no sidebar / menus) —— */
.ba-shell {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(720px 320px at 8% -8%, rgba(0, 180, 216, 0.08), transparent 55%),
    #f4f7f8;
  font-family: "Manrope", system-ui, sans-serif;
  color: #0f172a;
}
.ba-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}
.ba-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}
.ba-brand-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 0.5rem;
  background: #0a0a0a;
}
.ba-brand strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}
.ba-brand small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}
.ba-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ba-user {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}
.ba-signout {
  border: 1px solid #d0d7de;
  background: #ffffff;
  color: #0f172a;
  border-radius: 0.5rem;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.ba-signout:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}
.ba-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}
.ba-messages { margin-bottom: 1rem; }
.ba-empty {
  min-height: 55vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 2rem 1rem;
}
.ba-empty-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00667f;
}
.ba-empty h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #0f172a;
}
.ba-empty-copy {
  margin: 0 auto;
  max-width: 34rem;
  color: #64748b;
  font-size: 0.98rem;
  line-height: 1.55;
}

/* —— Booking admin: enterprise-matched cyan / glass chrome —— */
.partner-admin {
  --logo-cyan: #00c8f0;
  --logo-cyan-dark: #00a3c7;
  --logo-cyan-darker: #0088a8;
  --ms-accent-on-light: #00667f;
  --ms-surface-subtle: #f1f5f9;
  --pa-radius: 4px;
  --pa-gap: 0.55rem;
  --pa-font: "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --navy: #00667f;
  --navy-deep: #0088a8;
  --blue: #00a3c7;
  --accent: #00a3c7;
  position: relative;
  display: grid;
  min-height: 100vh;
  grid-template-columns: 1fr;
  background: linear-gradient(180deg, rgba(248, 253, 255, 0.95) 0%, rgba(236, 247, 252, 1) 100%);
  font-family: var(--pa-font);
  font-size: 13px;
  line-height: 1.35;
  color: #0f172a;
}
.partner-admin::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(480px, 50vw);
  height: min(680px, 72vh);
  background: url("../img/branding/magic_sands_icon_watermark.png") center / contain no-repeat;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}
.partner-admin > * {
  position: relative;
  z-index: 1;
}
@media (min-width: 900px) {
  .partner-admin { grid-template-columns: 210px 1fr; }
}

.pa-sidebar {
  background: rgba(255, 255, 255, 0.72);
  color: #00667f;
  padding: 0.65rem 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 100vh;
  position: sticky;
  top: 0;
  overflow: hidden;
  border-right: 1px solid rgba(0, 163, 199, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pa-brand {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  color: #ffffff;
  padding: 0.55rem 0.5rem;
  text-decoration: none;
  border-radius: 6px;
  margin-bottom: 0.2rem;
  background: var(--logo-cyan);
  box-shadow: 0 6px 16px rgba(0, 163, 199, 0.22);
}
.pa-brand-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 3px;
  background: transparent;
  flex-shrink: 0;
  /* Cyan mark on cyan bar — force white for contrast */
  filter: brightness(0) invert(1);
}
.pa-brand strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
}
.pa-brand small {
  display: block;
  opacity: 0.92;
  font-size: 0.62rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pa-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: stretch;
  justify-content: flex-start;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.pa-nav-hub {
  color: #00667f !important;
  font-size: 0.72rem !important;
  margin-bottom: 0.2rem;
}
.pa-nav a {
  color: #00667f;
  padding: 0.38rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.74rem;
  display: block;
  line-height: 1.25;
  flex: 0 0 auto;
}
.pa-nav a:hover {
  background: rgba(0, 200, 240, 0.12);
  color: #00667f;
}
.pa-nav a.active {
  background: #00a3c7;
  color: #fff;
}
.pa-nav-group {
  border: 0;
  margin: 0;
  flex: 0 0 auto;
}
.pa-nav-group summary {
  list-style: none;
  cursor: pointer;
  color: #00667f;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.38rem 0.5rem;
  border-radius: 4px;
  user-select: none;
  line-height: 1.25;
}
.pa-nav-group summary:hover {
  background: rgba(0, 200, 240, 0.12);
  color: #00667f;
}
.pa-nav-group summary::-webkit-details-marker { display: none; }
.pa-nav-group summary::after {
  content: "+";
  float: right;
  opacity: 0.65;
  font-weight: 600;
}
.pa-nav-group[open] summary::after { content: "–"; }
.pa-nav-items {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 0 0.1rem 0.55rem;
}
.pa-nav-items a {
  font-size: 0.72rem;
  padding: 0.3rem 0.45rem;
}
.pa-nav-empty {
  margin: 0.35rem 0.4rem;
  padding: 0.4rem 0.45rem;
  border-radius: 4px;
  background: rgba(0, 163, 199, 0.08);
  color: #475569;
  font-size: 0.7rem;
  line-height: 1.35;
}
.pa-logout { margin-top: auto; flex-shrink: 0; padding-top: 0.35rem; border-top: 1px solid rgba(0, 163, 199, 0.18); }
.pa-logout button {
  width: 100%;
  border: 1px solid rgba(0, 163, 199, 0.35);
  background: transparent;
  color: #00667f;
  border-radius: 4px;
  padding: 0.38rem 0.5rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}
.pa-logout button:hover {
  background: #00a3c7;
  border-color: #00a3c7;
  color: #fff;
}

.pa-module-status {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.15rem 0.4rem;
  background: #e8eef7;
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 3px;
}
.pa-module-summary {
  margin: 0 0 0.55rem;
  color: var(--muted);
  line-height: 1.4;
  max-width: 52rem;
  font-size: 0.8rem;
}
.pa-module-bullets {
  margin: 0 0 0.75rem;
  padding-left: 1rem;
  color: var(--ink);
  line-height: 1.4;
  font-size: 0.8rem;
}
.pa-module-bullets li { margin: 0.1rem 0; }

.pa-main { padding: 0.7rem 0.85rem 1.25rem; min-width: 0; }
.pa-top-lead {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-width: 0;
}
.pa-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  border: 1px solid rgba(0, 163, 199, 0.35);
  background: #fff;
  color: #00667f;
  border-radius: 3px;
  padding: 0.22rem 0.45rem;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
.pa-back-btn:hover {
  background: #00a3c7;
  border-color: #00a3c7;
  color: #fff;
}
.pa-back-btn svg { display: block; }
.pa-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #d8dee6;
}
.pa-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.62rem;
  color: #64748b;
  font-weight: 700;
}
.pa-top h1 {
  margin: 0.05rem 0 0;
  font-size: 1.05rem;
  color: #0f172a;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.pa-user {
  background: #fff;
  border: 1px solid #d8dee6;
  border-radius: 3px;
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #334155;
  box-shadow: none;
}
.pa-messages { margin-bottom: 0.55rem; }
.partner-admin .pl-alert {
  padding: 0.4rem 0.55rem;
  font-size: 0.75rem;
  border-radius: 3px;
  margin-bottom: 0.35rem;
}

.pa-stats {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin-bottom: 0.65rem;
}
.pa-stat {
  background: #fff;
  border: 1px solid #d8dee6;
  border-radius: var(--pa-radius);
  padding: 0.5rem 0.65rem;
  box-shadow: none;
}
.pa-stat p { margin: 0; color: var(--muted); font-size: 0.68rem; font-weight: 650; }
.pa-stat strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 750;
}
.pa-stat.ok strong { color: var(--ok); }
.pa-stat.warn strong { color: var(--warn); }

.pa-card {
  background: #fff;
  border: 1px solid #d8dee6;
  border-radius: var(--pa-radius);
  padding: 0.65rem 0.75rem;
  box-shadow: none;
  margin-bottom: 0.55rem;
}
.pa-card h2, .pa-card h3 {
  margin: 0 0 0.45rem;
  color: #00667f;
  font-size: 0.86rem;
  font-weight: 750;
}
.pa-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #e8edf2;
}
.pa-card-head h2 { margin: 0; }
.pa-link { font-weight: 700; font-size: 0.74rem; }
.muted { color: #64748b; font-size: 0.72rem; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 0.72rem; overflow-wrap: anywhere; }

.pa-table-wrap {
  overflow-x: auto;
  border: 1px solid #d8dee6;
  border-radius: var(--pa-radius);
}
.pa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
  background: #fff;
}
.pa-table th {
  text-align: left;
  color: #475569;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.45rem;
  border-bottom: 1px solid #d8dee6;
  background: #f4f6f8;
  font-weight: 750;
  white-space: nowrap;
}
.pa-table td {
  padding: 0.4rem 0.45rem;
  border-bottom: 1px solid #e8edf2;
  vertical-align: top;
  color: #1e293b;
}
.pa-table tr:last-child td { border-bottom: 0; }
.pa-table tbody tr:hover td { background: #f8fafc; }

.status {
  display: inline-flex;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  background: #eef2f7;
  color: var(--navy);
  line-height: 1.2;
}
.status-confirmed { background: #ecfdf5; color: var(--ok); }
.status-pending_payment { background: #fff7ed; color: var(--warn); }
.status-failed { background: #fef2f2; color: var(--danger); }
.status-cancelled { background: #f3f4f6; color: #4b5563; }
.status-pending { background: #fff7ed; color: #b45309; }
.status-possible_duplicate { background: #fef3c7; color: #92400e; }
.status-request_info { background: #eff6ff; color: #1d4ed8; }
.status-approved { background: #ecfdf5; color: #0f7a45; }
.status-rejected { background: #fef2f2; color: #b91c1c; }

/* Reservations ops queue */
.status-ops-queued { background: #eef2ff; color: #3730a3; }
.status-ops-awaiting_hcn { background: #fff7ed; color: #c2410c; }
.status-ops-awaiting_payment { background: #fff7ed; color: #b45309; }
.status-ops-cleared { background: #d1fae5; color: #065f46; }
.status-ops-exception { background: #fef2f2; color: #b91c1c; }
.status-ops-closed { background: #f1f5f9; color: #475569; }

/* Bookings in Queue — service icon + booking status */
.pa-queue-pnr {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.pa-svc-ico {
  flex-shrink: 0;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}
.pa-svc-hotel { background: #e0f2fe; color: #0369a1; }
.pa-svc-excursion { background: #ccfbf1; color: #0f766e; }
.pa-svc-transfer { background: #fef3c7; color: #b45309; }
.pa-svc-car_rental { background: #ede9fe; color: #6d28d9; }
.status-bk-confirmed { background: #d1fae5; color: #065f46; }
.status-bk-not-vouchered { background: #fff7ed; color: #c2410c; }
.status-bk-on-request { background: #fef3c7; color: #92400e; }
.status-bk-pending { background: #eef2ff; color: #3730a3; }
.status-bk-cancelled,
.status-bk-failed { background: #fef2f2; color: #b91c1c; }
.status-bk-other { background: #f1f5f9; color: #475569; }
.status-pay-unpaid { background: #fef2f2; color: #b91c1c; }
.status-pay-pending { background: #fff7ed; color: #b45309; }
.status-pay-paid,
.status-pay-credit,
.status-pay-waived { background: #ecfdf5; color: #0f7a45; }
.status-pay-refunded,
.status-pay-refunded_full,
.status-pay-refunded_partial { background: #f3f4f6; color: #4b5563; }
.pa-badge-amber { background: #ea580c !important; }
.pa-badge-green { background: #059669 !important; }
.pa-res-row-cleared td { background: #f0fdf4; }
.pa-res-row-awaiting_hcn td,
.pa-res-row-awaiting_payment td { background: #fffbeb; }
.pa-res-row-exception td { background: #fef2f2; }
.pa-res-identity-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  align-items: flex-start;
}
.pa-res-qc-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15.5rem, 18rem);
  gap: 1rem 1.5rem;
  align-items: start;
}
@media (max-width: 800px) {
  .pa-res-qc-split {
    grid-template-columns: 1fr;
  }
}
.pa-res-identity-left {
  flex: 1 1 16rem;
  min-width: 0;
}
.pa-res-assign-box {
  flex: 0 1 16rem;
  min-width: 12rem;
  margin-left: auto;
  text-align: left;
}
.pa-assign-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.pa-assign-save {
  flex: 0 0 auto;
}
.pa-res-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.pa-res-checklist { display: grid; gap: 0.65rem; }
.pa-res-check {
  border: 1px solid #d8dee6;
  border-radius: 4px;
  padding: 0.55rem 0.65rem;
  background: #fff;
  display: grid;
  gap: 0.35rem;
}
.pa-res-check.is-done { border-color: #86efac; background: #f0fdf4; }
.pa-res-check.is-open { border-color: #fdba74; background: #fffbeb; }
.pa-res-check strong { font-size: 0.78rem; color: #0f172a; }
.pa-res-check > span { font-size: 0.72rem; color: #64748b; }
.pa-res-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.2rem;
}
.pa-res-inline-form .pa-edit-input { max-width: 280px; }
.pa-res-supplier-form {
  display: grid;
  gap: 0.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .pa-res-supplier-form { grid-template-columns: 1fr 1fr auto; align-items: end; }
}
.pa-res-supplier-form label {
  display: grid;
  gap: 0.2rem;
  font-size: 0.7rem;
  font-weight: 650;
  color: #64748b;
}
.pa-res-confirm-form {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}
.pa-res-confirm-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .pa-res-confirm-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.pa-res-confirm-form label,
.pa-res-confirm-remarks {
  display: grid;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 650;
  color: #64748b;
}
.pa-res-confirm-form .pa-edit-input,
.pa-res-confirm-remarks .pa-edit-input {
  max-width: none;
  width: 100%;
}
.pa-res-confirm-remarks textarea {
  min-height: 6rem;
  resize: vertical;
  font-family: inherit;
  font-weight: 400;
  color: #0f172a;
}
.pa-subhead {
  margin: 1rem 0 0.4rem;
  font-size: 0.78rem;
  color: #0f172a;
}
.pa-res-note-form { display: grid; gap: 0.4rem; margin-bottom: 0.65rem; }
.pa-res-notes {
  margin: 0;
  padding: 0.55rem;
  background: #f8fafc;
  border: 1px solid #e8edf2;
  border-radius: 3px;
  font-size: 0.74rem;
  white-space: pre-wrap;
  color: #0f172a;
  font-family: inherit;
}
.pa-res-audit {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.pa-res-audit li {
  display: grid;
  gap: 0.1rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid #e8edf2;
  border-radius: 3px;
  font-size: 0.74rem;
  background: #fff;
  color: #0f172a;
}
.pa-res-audit-time { color: #64748b; font-size: 0.68rem; font-weight: 650; }
.pa-pagination {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0.65rem;
}
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.72rem; }

.pa-source {
  display: inline-flex;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  background: #eef2f7;
  color: #334155;
  line-height: 1.2;
}
.pa-source-b2b { background: #e0f2fe; color: #0369a1; }
.pa-source-marketing { background: #fce7f3; color: #9d174d; }
.pa-source-unknown { background: #f1f5f9; color: #64748b; }

.pa-help {
  margin: 0 0 0.55rem;
  color: #64748b;
  font-size: 0.74rem;
  line-height: 1.4;
}
.pa-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.pa-kpi {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
.pa-kpi span {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.pa-kpi strong {
  font-size: 1.15rem;
  color: #0f172a;
}
.pa-kpi.is-warn strong { color: #b45309; }
.pa-util-bar {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-bottom: 0.25rem;
}
.pa-util-bar.tall { height: 10px; margin-top: 0.45rem; }
.pa-util-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0f7a45;
}
.pa-util-warning { background: #d97706; }
.pa-util-critical, .pa-util-blocked { background: #b91c1c; }
.pa-util-no_limit { background: #94a3b8; }
.pa-util-ok { background: #0f7a45; }
.status-credit-ok { background: #ecfdf5; color: #0f7a45; }
.status-credit-warning { background: #fff7ed; color: #b45309; }
.status-credit-critical { background: #fef2f2; color: #b91c1c; }
.status-credit-blocked { background: #fef2f2; color: #991b1b; }
.status-credit-no_limit { background: #f1f5f9; color: #475569; }
.pa-neg { color: #b91c1c; }
.pa-credit-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.pa-credit-stat {
  background: #f8fafc;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
}
.pa-credit-stat span {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  margin-bottom: 0.25rem;
}
.pa-credit-stat strong {
  font-size: 1.05rem;
  color: #0f172a;
}
.pa-credit-stat strong.pa-neg,
.pa-statement-table strong.pa-neg {
  color: #b91c1c;
}
.pa-credit-stat strong.pa-credit,
.pa-statement-table strong.pa-credit {
  color: #047857;
}
.pa-office-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.35rem 0 0.9rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid #cbd5e1;
  background: #fff;
}
.pa-office-brand {
  flex: 0 0 auto;
  max-width: 220px;
}
.pa-office-logo {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
}
.pa-office-panel {
  flex: 1 1 auto;
  text-align: right;
  min-width: 0;
}
.pa-office-title {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.01em;
}
.pa-office-details {
  display: grid;
  gap: 0.12rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #334155;
  justify-items: end;
}
.pa-office-details > div {
  max-width: 28rem;
}
.pa-office-label {
  font-weight: 600;
  color: #0095d1;
  margin-right: 0.35rem;
}
.pa-office-details a {
  color: #00aeef;
  text-decoration: none;
}
.pa-office-details a:hover {
  text-decoration: underline;
}
.pa-statement-filters {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  background: #f4f6f8;
  border: 1px solid #d8dee6;
  border-radius: var(--pa-radius);
}
.pa-statement-filter-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.pa-statement-views {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}
.pa-filter-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: #334155;
  white-space: nowrap;
  cursor: pointer;
}
.pa-filter-radio input {
  margin: 0;
  width: 0.9rem;
  height: 0.9rem;
  accent-color: #00667f;
}
.pa-statement-dates {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.45rem;
}
.pa-statement-date {
  display: grid;
  gap: 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pa-statement-date input[type="date"] {
  min-width: 9.5rem;
  border: 1px solid #d0d7de;
  border-radius: var(--pa-radius);
  padding: 0.32rem 0.45rem;
  font: inherit;
  font-size: 0.74rem;
  color: var(--ink);
  background: #fff;
  min-height: 30px;
}
.pa-statement-count {
  margin: 0;
  font-size: 0.75rem;
}
.pa-statement-exports {
  display: inline-flex;
  gap: 0.4rem;
  margin-left: auto;
}
.pa-statement-wrap {
  width: 100%;
}
/* Running Statement: fixed column widths + horizontal scroll (do not squash). */
.pa-statement-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border: 1px solid #d8dee6;
  border-radius: 8px;
  background: #fff;
}
.pa-statement-scroll .pa-table.pa-statement-table {
  table-layout: fixed;
  width: 88rem;
  min-width: 88rem;
  max-width: none;
  border-collapse: separate;
  border-spacing: 0;
}
.pa-statement-scroll .pa-statement-table th,
.pa-statement-scroll .pa-statement-table td {
  padding: 0.6rem 0.75rem;
  vertical-align: top;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pa-statement-scroll .pa-col-date { width: 7.25rem; }
.pa-statement-scroll .pa-col-ref { width: 8.5rem; }
.pa-statement-scroll .pa-col-type { width: 10.5rem; }
.pa-statement-scroll .pa-col-desc {
  width: 16rem;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
  line-height: 1.4;
}
.pa-statement-scroll .pa-col-amt { width: 6.5rem; }
.pa-statement-scroll .pa-col-rel { width: 8.25rem; }
.pa-statement-scroll .pa-col-rule {
  width: 14rem;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.4;
}
.pa-statement-scroll .pa-col-action {
  width: 4.25rem;
  text-align: right;
  position: sticky;
  right: 0;
  background: #fff;
  box-shadow: -6px 0 8px -8px rgba(15, 23, 42, 0.35);
  overflow: visible;
  text-overflow: unset;
}
.pa-statement-scroll thead .pa-col-action { background: #f4f6f8; }
.pa-statement-scroll tbody tr:hover .pa-col-action { background: #f8fafc; }
.pa-statement-scroll .pa-col-rel a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pa-statement-hint {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  color: #64748b;
}
.pa-stmt-date {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #475569;
}
.pa-stmt-desc {
  word-break: break-word;
}
.pa-stmt-desc-main {
  display: block;
  color: #0f172a;
  line-height: 1.35;
}
.pa-stmt-by {
  display: block;
  margin-top: 0.2rem;
}
.pa-stmt-ref {
  word-break: break-word;
  font-size: 0.72rem;
}
.pa-credit-table {
  table-layout: fixed;
  width: 100%;
}
.pa-credit-table .pa-col-partner { width: auto; }
.pa-credit-table .pa-col-amt { width: 7rem; }
.pa-credit-table .pa-col-util { width: 8.5rem; }
.pa-credit-table .pa-col-status { width: 6.5rem; }
.pa-credit-table .pa-col-action { width: 5.5rem; }
.pa-credit-table .pa-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pa-credit-partner {
  display: grid;
  gap: 0.12rem;
}
.pa-credit-partner strong {
  color: #0f172a;
}
.pa-credit-util {
  vertical-align: middle;
}
.pa-credit-action {
  text-align: right;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .pa-office-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .pa-office-panel,
  .pa-office-details {
    text-align: left;
    justify-items: start;
  }
  .pa-statement-exports {
    margin-left: 0;
  }
}
.pa-credit-actions-grid {
  margin-top: 1rem;
}
.pa-credit-form {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}
.pa-credit-controls {
  display: grid;
  gap: 1rem;
  margin-top: 0.75rem;
}
.pa-credit-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.pa-ledger-kind {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
}
.pa-ledger-set_limit { background: #dbeafe; color: #1d4ed8; }
.pa-ledger-payment,
.pa-ledger-top_up { background: #d1fae5; color: #065f46; }
.pa-ledger-manual_debit { background: #ffedd5; color: #c2410c; }
.pa-ledger-booking_charge { background: #ede9fe; color: #5b21b6; }
.pa-ledger-booking_refund { background: #ecfdf5; color: #047857; }
.pa-ledger-block { background: #fee2e2; color: #991b1b; }
.pa-ledger-unblock { background: #d1fae5; color: #065f46; }
.pa-statement-table .pa-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pa-debit { color: #b91c1c; font-weight: 700; }
.pa-credit { color: #047857; font-weight: 700; }
.pa-stmt-booking_charge td:first-child,
.pa-stmt-manual_debit td:first-child { box-shadow: inset 3px 0 0 #b91c1c; }
.pa-stmt-payment td:first-child,
.pa-stmt-set_limit td:first-child,
.pa-stmt-booking_refund td:first-child,
.pa-stmt-top_up td:first-child { box-shadow: inset 3px 0 0 #047857; }
.pa-count-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.pa-count-pill-warn {
  background: #fef3c7;
  color: #92400e;
}
.pa-quick-badge-warn {
  background: #f59e0b;
  color: #fff;
}
.pa-audit-card {
  margin: 1rem 0 1.25rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
}
.pa-audit-card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #0f172a;
}
.pa-audit-steps {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.55rem;
}
.pa-audit-steps li {
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.4;
}
.pa-audit-steps li strong {
  display: block;
  color: #334155;
  font-size: 0.86rem;
}
.pa-audit-steps li.is-done {
  color: #166534;
}
.pa-audit-steps li.is-done strong { color: #166534; }
.pa-audit-steps li.is-warn,
.pa-audit-steps li.is-warn strong { color: #b45309; }
.pa-audit-steps li.is-wait,
.pa-audit-steps li.is-wait strong { color: #0369a1; }
.pa-audit-complete {
  margin: 0.75rem 0 0;
  color: #166534;
  font-weight: 600;
}
.pa-dup-alert {
  margin: 1rem 0 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(146, 64, 14, 0.28);
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  color: #78350f;
}
.pa-dup-alert strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.pa-dup-alert p {
  margin: 0 0 0.65rem;
  font-size: 0.86rem;
  line-height: 1.45;
}
.pa-dup-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  line-height: 1.5;
}
.pa-dup-list li + li { margin-top: 0.35rem; }
.pa-dup-reason {
  display: inline-block;
  min-width: 4.2rem;
  margin-right: 0.35rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: #92400e;
  color: #fff;
}
.pa-dup-reason-email { background: #b91c1c; }
.pa-dup-reason-phone { background: #c2410c; }
.pa-dup-reason-company { background: #a16207; }
.pa-count-pill {
  display: inline-flex;
  padding: 0.12rem 0.4rem;
  border-radius: 3px;
  background: #fff7ed;
  color: #b45309;
  font-size: 0.65rem;
  font-weight: 750;
}
.pa-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: center;
  margin-bottom: 0.55rem;
}
.pa-notes-label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
}
.pa-notes-label textarea {
  border: 1px solid #d0d7de;
  border-radius: var(--pa-radius);
  padding: 0.4rem 0.5rem;
  font: inherit;
  font-size: 0.76rem;
  color: var(--ink);
  background: #fff;
  resize: vertical;
  min-height: 72px;
}
.pa-actions-form { margin-top: 0.15rem; }
.pa-action-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.partner-admin .pl-btn,
.partner-admin .pa-action-btns .pl-btn {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.65rem;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: none;
  background: #00a3c7;
  color: #fff;
}
.partner-admin .pl-btn:hover,
.partner-admin .pa-action-btns .pl-btn:hover {
  background: #0088a8;
  color: #fff;
}
.partner-admin .pl-btn.small {
  padding: 0.28rem 0.55rem;
  font-size: 0.7rem;
}
.pa-btn-accept { background: #0f7a45 !important; }
.pa-btn-accept:hover { background: #0b5f35 !important; }
.pa-btn-info { background: #1d4ed8 !important; }
.pa-btn-info:hover { background: #1e40af !important; }
.pa-btn-decline { background: #b91c1c !important; }
.pa-btn-decline:hover { background: #991b1b !important; }
.pa-danger-zone {
  border-color: rgba(185, 28, 28, 0.28) !important;
  background: #fff7f7;
}
.pa-danger-zone h2 { color: #991b1b; }
.pa-delete-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
  max-width: 420px;
}
.pa-delete-confirm {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.86rem;
  color: #7f1d1d;
  line-height: 1.4;
}
.pa-delete-confirm input { margin-top: 0.2rem; }
.pa-row-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  white-space: nowrap;
}
.pa-inline-delete { margin: 0; }
.pa-link-danger {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: #b91c1c;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.pa-link-danger:hover { color: #991b1b; }
.pa-btn-secondary,
.partner-admin .pl-btn.pa-btn-secondary,
.partner-admin a.pl-btn.pa-btn-secondary,
.partner-admin button.pl-btn.pa-btn-secondary {
  background: #fff !important;
  color: #0f4d54 !important;
  border: 1px solid #b6c2ce !important;
  box-shadow: none !important;
}
.pa-btn-secondary:hover,
.partner-admin .pl-btn.pa-btn-secondary:hover,
.partner-admin a.pl-btn.pa-btn-secondary:hover,
.partner-admin button.pl-btn.pa-btn-secondary:hover {
  background: #f0f9fb !important;
  color: #0f4d54 !important;
}

.pa-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.65rem;
  padding: 0.2rem;
  background: #f4f6f8;
  border: 1px solid #d8dee6;
  border-radius: var(--pa-radius);
}
.pa-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.75rem;
  border-radius: 3px;
  font-size: 0.74rem;
  font-weight: 750;
  color: #475569;
  text-decoration: none;
  border: 1px solid transparent;
}
.pa-tab:hover {
  color: #00667f;
  background: #fff;
}
.pa-tab.is-active {
  background: #fff;
  color: #00667f;
  border-color: #c5d0db;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.pa-lane-tabs {
  margin: 0 0 0.85rem;
}
.pa-audit-row-actions {
  white-space: nowrap;
}
.pa-audit-row-actions .pa-inline-form {
  display: inline;
  margin: 0;
}
.pa-audit-back {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: center;
  margin: 0 0 0.55rem;
  font-size: 0.74rem;
}
.pa-partner-name {
  color: #0f172a;
  text-decoration: none;
  font-weight: 750;
}
.pa-partner-name:hover {
  color: #00667f;
  text-decoration: underline;
}

.pa-filters {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
  padding: 0.45rem;
  background: #f4f6f8;
  border: 1px solid #d8dee6;
  border-radius: var(--pa-radius);
}
@media (min-width: 700px) {
  .pa-filters { grid-template-columns: 1.4fr 130px 130px auto auto; align-items: center; }
}
.pa-filters input, .pa-filters select,
.pa-status-form select {
  border: 1px solid #d0d7de;
  border-radius: var(--pa-radius);
  padding: 0.32rem 0.45rem;
  font: inherit;
  font-size: 0.74rem;
  color: var(--ink);
  background: #fff;
  min-height: 30px;
}

/* Compact quick-link tiles on dashboard */
.pa-quick-grid {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.pa-res-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.65rem;
}
.pa-res-layout {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.pa-res-nav {
  display: grid;
  grid-template-columns: 1.55fr repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
  align-items: start;
  padding: 0.35rem;
  border: 1px solid #d8dee6;
  border-radius: var(--pa-radius);
  background: #fff;
}
.status-bk-amendment { background: #eff6ff; color: #1d4ed8; }
.status-bk-on-hold { background: #fff7ed; color: #c2410c; }
.status-bk-failed { background: #fef2f2; color: #b91c1c; }
.pa-res-remark {
  max-width: 14rem;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.25;
}
.pa-res-remark-col {
  text-align: right;
}
.pa-res-action-col {
  white-space: nowrap;
  text-align: right;
  width: 1%;
}
.pa-queue-return-form {
  display: inline-flex;
  margin: 0;
}
.pa-res-pnr-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}
.pa-res-section-block + .pa-res-section-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e8edf2;
}
.pa-res-pnr {
  margin: 0.2rem 0 0;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
}
.pa-res-summary {
  grid-template-columns: 8.5rem 1fr;
  gap: 0.45rem 1rem;
  font-size: 0.82rem;
}
.pa-res-summary dt {
  font-size: 0.72rem;
}
@media (min-width: 720px) {
  .pa-res-summary {
    grid-template-columns: 8.5rem 1fr 8.5rem 1fr;
  }
}
.pa-res-row-link {
  cursor: pointer;
}
.pa-res-row-link:hover {
  background: #f8fafc;
}
.pa-assign-combo-wide {
  min-width: 14rem;
  max-width: 18rem;
}
.pa-assign-form { margin: 0; }
.pa-assign-combo {
  position: relative;
  min-width: 8.5rem;
  max-width: 11rem;
}
.pa-assign-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  width: 100%;
  padding: 0.28rem 0.4rem;
  border: 1px solid #d8dee6;
  border-radius: 5px;
  background: #fff;
  color: #00667f;
  font-size: 0.68rem;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
}
.pa-assign-combo.is-open .pa-assign-trigger {
  border-color: #00667f;
}
.pa-assign-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.2rem);
  left: 0;
  width: 14rem;
  padding: 0.35rem;
  border: 1px solid #d8dee6;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 39, 68, 0.12);
}
.pa-assign-search {
  width: 100%;
  margin: 0 0 0.3rem;
  padding: 0.3rem 0.4rem;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 0.68rem;
}
.pa-assign-options {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  max-height: 12rem;
  overflow: auto;
}
.pa-assign-option {
  display: block;
  width: 100%;
  padding: 0.32rem 0.4rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #00667f;
  font-size: 0.68rem;
  text-align: left;
  cursor: pointer;
}
.pa-assign-option:hover,
.pa-assign-option.is-current {
  background: #f1f5f9;
}
.pa-assign-option.is-current {
  font-weight: 700;
}
.pa-res-nav-col {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.pa-res-nav-col.is-all .pa-res-nav-children,
.pa-res-nav-col.has-children .pa-res-nav-children {
  margin-left: 0.35rem;
  padding-left: 0.4rem;
  border-left: 2px solid #dbe3ee;
}
.pa-res-nav-child.is-admin-view {
  color: #00667f;
  border-color: #b6dbe4;
  background: #f0f9fb;
  font-weight: 700;
}
.pa-res-nav-child.is-admin-view.is-active {
  border-color: #00a3c7;
  background: #00a3c7;
  color: #fff;
}
.pa-res-nav-children {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.pa-res-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  min-height: 1.7rem;
  padding: 0.28rem 0.4rem;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #f8fafc;
  color: #00667f;
  text-decoration: none;
  font-size: 0.68rem;
  line-height: 1.15;
  font-weight: 650;
}
.pa-res-nav-item:hover {
  border-color: #00a3c7;
  background: #f0f9fb;
  color: #00667f;
}
.pa-res-nav-item.is-active {
  border-color: #00a3c7;
  background: #00a3c7;
  color: #fff;
}
.pa-res-nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pa-res-nav-count {
  flex-shrink: 0;
  min-width: 1.05rem;
  padding: 0.02rem 0.25rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.6rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.35;
}
.pa-res-nav-item.is-active .pa-res-nav-count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.pa-res-nav-count.is-hot {
  background: #ea580c;
  color: #fff;
}
.pa-res-nav-child {
  font-size: 0.63rem;
  font-weight: 600;
  min-height: 1.45rem;
  padding: 0.2rem 0.35rem;
  color: #334155;
  background: #fff;
}
.pa-res-main {
  min-width: 0;
  margin: 0;
}
@media (max-width: 1100px) {
  .pa-res-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .pa-res-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.pa-res-assign-row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.pa-res-action-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}
.status-qc-pending { background: #fff7ed; color: #c2410c; }
.status-qc-completed { background: #ecfdf5; color: #047857; }
.status-wf-intake { background: #f1f5f9; color: #475569; }
.status-wf-assigned { background: #eff6ff; color: #1d4ed8; }
.status-wf-supplier_pending { background: #fff7ed; color: #c2410c; }
.status-wf-qc_pending { background: #fef3c7; color: #b45309; }
.status-wf-qc_completed { background: #ecfdf5; color: #047857; }
.status-wf-archived { background: #f3f4f6; color: #4b5563; }
.pa-res-trigger-move {
  border: 1px solid #a7f3d0;
  border-radius: var(--pa-radius);
  background: #ecfdf5;
  padding: 0.75rem 0.85rem;
}
.pa-res-trigger-move-target {
  display: block;
  font-size: 0.86rem;
  color: #0f172a;
  line-height: 1.3;
  flex: 1 1 10rem;
}
.pa-res-notify {
  padding: 0.75rem 0.85rem;
  border: 1px solid #d8dee6;
  border-radius: var(--pa-radius);
  background: #f8fafc;
}
.pa-res-notify.is-ready {
  border-color: #a7f3d0;
  background: #ecfdf5;
}
.pa-res-notify.is-open {
  border-color: #fcd34d;
  background: #fffbeb;
}
.status-notify-not_sent { background: #fff7ed; color: #c2410c; }
.status-notify-failed { background: #fef2f2; color: #b91c1c; }
.status-notify-sent,
.status-notify-manual,
.status-notify-skipped,
.status-notify-alternate { background: #ecfdf5; color: #047857; }
.pa-res-alt-supplier {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid #d8dee6;
}
.pa-res-trigger-log {
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.65rem;
  background: #0f172a0a;
  border: 1px solid #d8dee6;
  border-radius: 4px;
  font-size: 0.72rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  color: #334155;
  max-height: 14rem;
  overflow: auto;
}
button.pl-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.pa-quick-tile {
  display: block;
  padding: 0.55rem 0.65rem;
  border: 1px solid #d8dee6;
  border-radius: var(--pa-radius);
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.pa-quick-tile:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  color: inherit;
}
.pa-quick-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}
.pa-quick-tile strong {
  display: block;
  font-size: 0.78rem;
  color: #00667f;
  margin-bottom: 0.15rem;
}
.pa-quick-tile-top strong {
  margin-bottom: 0;
}
.pa-quick-tile > span:not(.pa-quick-tile-top):not(.pa-quick-badge) {
  display: block;
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.3;
}
.pa-quick-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

.pa-feature-row {
  display: grid; gap: 0.45rem;
}
@media (min-width: 800px) {
  .pa-feature-row { grid-template-columns: 1fr 1fr; }
}
.pa-card.mini p { color: var(--muted); font-size: 0.74rem; line-height: 1.35; }

.pa-detail-grid {
  display: grid; gap: 0.45rem;
}
@media (min-width: 900px) {
  .pa-detail-grid { grid-template-columns: 1fr 1fr; }
}
.pa-dl {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.25rem 0.55rem;
  margin: 0;
  font-size: 0.74rem;
}
.pa-dl dt { color: #64748b; font-weight: 650; font-size: 0.7rem; }
.pa-dl dd { margin: 0; color: #1e293b; }
.pa-status-form {
  margin-top: 0.65rem; display: grid; gap: 0.4rem;
  padding-top: 0.55rem; border-top: 1px solid #e8edf2;
}
.pa-status-form label {
  display: grid; gap: 0.2rem; font-size: 0.72rem; font-weight: 650; color: #64748b;
}
.pa-doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid #d8dee6;
  border-radius: 3px;
  overflow: hidden;
}
.pa-doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.4rem 0.55rem;
  border-bottom: 1px solid #e8edf2;
  font-size: 0.74rem;
  background: #fff;
}
.pa-doc-row:last-child { border-bottom: 0; }
.pa-doc-label {
  color: #1e293b;
  font-weight: 650;
}
.pa-doc-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.pa-edit-form { margin-top: 0.55rem; }
.pa-edit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}
.pa-edit-head h2 {
  margin: 0;
  font-size: 0.92rem;
}
.pa-btn-save {
  background: #00a3c7 !important;
  color: #fff !important;
}
.pa-btn-save:hover { background: #0088a8 !important; }
.pa-edit-grid {
  display: grid;
  gap: 0.45rem 0.65rem;
}
@media (min-width: 640px) {
  .pa-edit-grid { grid-template-columns: 1fr 1fr; }
}
.pa-edit-field {
  display: grid;
  gap: 0.2rem;
  font-size: 0.7rem;
  font-weight: 650;
  color: #64748b;
}
.pa-edit-field.pa-edit-full { grid-column: 1 / -1; }
.pa-edit-input,
.pa-edit-field input,
.pa-edit-field select,
.pa-edit-field textarea {
  width: 100%;
  border: 1px solid #d0d7de;
  border-radius: 3px;
  padding: 0.35rem 0.45rem;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 500;
  color: #0f172a;
  background: #fff;
}
.pa-edit-field textarea { resize: vertical; min-height: 56px; }
.pa-edit-field input:focus,
.pa-edit-field select:focus,
.pa-edit-field textarea:focus {
  outline: 2px solid rgba(0, 102, 127, 0.28);
  border-color: #00667f;
}
.pa-edit-field input[readonly] {
  background: #f8fafc;
  color: #475569;
}
.pa-edit-checks {
  border: 1px solid #e8edf2;
  border-radius: 3px;
  padding: 0.4rem 0.55rem;
  margin: 0;
}
.pa-edit-checks legend {
  padding: 0 0.2rem;
  font-size: 0.7rem;
  font-weight: 650;
  color: #64748b;
}
.pa-edit-checks ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
}
.pa-edit-checks li label,
.pa-edit-checks label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
}
.pa-edit-static-label {
  font-size: 0.7rem;
  font-weight: 650;
  color: #64748b;
}
.pa-edit-static {
  font-size: 0.76rem;
  font-weight: 600;
  color: #0f172a;
}
.pa-field-error {
  color: #b91c1c;
  font-size: 0.68rem;
  font-weight: 650;
}
.pa-form-errors {
  margin: 0 0 0.55rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  border-radius: 3px;
  font-size: 0.76rem;
}
.pa-doc-edit-row {
  flex-wrap: wrap;
  align-items: flex-start;
}
.pa-doc-edit-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex: 1 1 220px;
  min-width: 0;
}
.pa-doc-replace {
  display: grid;
  gap: 0.2rem;
  flex: 1 1 200px;
  font-size: 0.68rem;
  font-weight: 650;
  color: #64748b;
}
.pa-doc-replace input[type="file"] {
  font-size: 0.72rem;
  font-weight: 500;
  color: #0f172a;
}
.pa-doc-replace .pa-edit-input {
  padding: 0.2rem 0;
  border: 0;
  background: transparent;
}
.pa-edit-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.65rem;
}
.pa-doc-preview-btn {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.pa-doc-preview {
  width: min(920px, 94vw);
  max-height: 90vh;
  border: 1px solid #d8dee6;
  border-radius: 6px;
  padding: 0;
  background: #fff;
  color: #0f172a;
}
.pa-doc-preview::backdrop {
  background: rgba(15, 23, 42, 0.55);
}
.pa-doc-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.pa-doc-preview-bar strong {
  font-size: 0.82rem;
  color: #00667f;
}
.pa-doc-preview-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.pa-doc-preview-body {
  min-height: 280px;
  max-height: calc(90vh - 52px);
  overflow: auto;
  background: #f1f5f9;
  display: grid;
  place-items: center;
}
.pa-doc-preview-img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 70px);
  height: auto;
  margin: 0 auto;
  background: #fff;
}
.pa-doc-preview-frame {
  width: 100%;
  height: calc(90vh - 52px);
  min-height: 420px;
  border: 0;
  background: #fff;
}
.pa-doc-preview-fallback {
  text-align: center;
  padding: 2rem 1rem;
  color: #475569;
  font-size: 0.82rem;
}
.pa-doc-preview-fallback p { margin: 0 0 0.75rem; }

/* —— Excursion code brief popup (admin list) —— */
.exc-code-preview-btn {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: #00667f;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.exc-code-preview-btn:hover {
  color: #0f172a;
}
.exc-brief-dialog {
  width: min(640px, 94vw);
}
.exc-brief-dialog-body {
  display: block;
  place-items: unset;
  background: #fff;
  padding: 0;
  max-height: calc(90vh - 52px);
  overflow: auto;
}
.exc-brief {
  padding: 1rem 1.1rem 1.25rem;
  color: #0f172a;
}
.exc-brief-cover {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.85rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.exc-brief-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.45rem;
}
.exc-brief-chip {
  display: inline-block;
  background: #e6f4f7;
  color: #0f172a;
  border: 1px solid #b7dbe3;
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
}
.exc-brief-title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: #0f172a;
  line-height: 1.3;
}
.exc-brief-sub {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: #475569;
}
.exc-brief-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.75rem;
  margin: 0 0 0.95rem;
  padding: 0.65rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.exc-brief-facts dt {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}
.exc-brief-facts dd {
  margin: 0.1rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
}
.exc-brief-section {
  margin: 0 0 0.85rem;
}
.exc-brief-section h4 {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.exc-brief-text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #334155;
  white-space: pre-wrap;
}
.exc-brief-section ul {
  margin: 0.15rem 0 0;
  padding-left: 1.15rem;
  color: #334155;
  font-size: 0.84rem;
}
.exc-brief-section li {
  margin: 0.15rem 0;
}

/* —— Simple admin login —— */
.admin-login-page {
  min-height: 100vh;
  background: #f4f7f8;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  font-family: "Manrope", system-ui, sans-serif;
}
.admin-login-wrap { width: min(380px, 100%); }
.admin-login-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  padding: 1.75rem 1.5rem 1.35rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}
.admin-login-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.admin-login-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 0.65rem;
  background: #0a0a0a;
  flex-shrink: 0;
}
.admin-login-brand strong {
  display: block;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.admin-login-brand small {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 500;
}
.admin-login-box h1 {
  margin: 0;
  font-size: 1.35rem;
  color: #0f172a;
  font-weight: 700;
}
.admin-login-sub {
  margin: 0.35rem 0 1.15rem;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.4;
}
.admin-field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}
.admin-field input {
  border: 1px solid #d0d7de;
  border-radius: 0.55rem;
  padding: 0.72rem 0.8rem;
  font: inherit;
  font-weight: 500;
  color: #0f172a;
  background: #ffffff;
}
.admin-field input:focus {
  outline: 2px solid rgba(0, 180, 216, 0.25);
  border-color: #00b4d8;
}
.admin-login-btn {
  width: 100%;
  border: 0;
  border-radius: 0.55rem;
  padding: 0.8rem 1rem;
  background: #00667f;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.2rem;
}
.admin-login-btn:hover { background: #004e61; }
.admin-login-foot {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.85rem;
}
.admin-login-foot a {
  color: #64748b;
  font-weight: 500;
  text-decoration: none;
}
.admin-login-foot a:hover { color: #00667f; }

/* —— Admin hub (Marketing vs Booking) —— */
.admin-hub-page {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(27, 107, 116, 0.12), transparent 55%),
    radial-gradient(700px 360px at 100% 0%, rgba(184, 146, 58, 0.1), transparent 50%),
    #f4f7f6;
  font-family: "Manrope", system-ui, sans-serif;
}
.admin-hub-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.35rem;
  border-bottom: 1px solid rgba(18, 38, 43, 0.08);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
}
.admin-hub-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.admin-hub-brand strong { display: block; color: #0f4d54; }
.admin-hub-brand small { color: var(--muted); font-size: 0.75rem; }
.admin-hub-user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.admin-hub-user button {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}
.admin-hub-main {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 2.75rem 1.25rem 3.5rem;
}
.admin-hub-kicker {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  color: #1b6b74;
}
.admin-hub-main h1 {
  margin: 0 0 0.65rem;
  font-family: "Baskervville", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: #12262b;
}
.admin-hub-lede {
  margin: 0 0 1.75rem;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.55;
}
.admin-hub-options {
  display: grid;
  gap: 1rem;
}
@media (min-width: 780px) {
  .admin-hub-options { grid-template-columns: 1fr 1fr; }
}
.admin-hub-card {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 1.45rem 1.35rem;
  background: #fff;
  border: 1px solid rgba(18, 38, 43, 0.1);
  color: inherit;
  min-height: 230px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.admin-hub-card:hover {
  transform: translateY(-2px);
  border-color: #1b6b74;
  color: inherit;
}
.admin-hub-card.marketing { border-top: 4px solid #1b6b74; }
.admin-hub-card.booking { border-top: 4px solid #0d2b52; }
.admin-hub-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.admin-hub-card h2 {
  margin: 0;
  font-family: "Baskervville", Georgia, serif;
  font-weight: 400;
  font-size: 1.7rem;
  color: #12262b;
}
.admin-hub-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}
.admin-hub-cta, .admin-hub-badge {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.9rem;
  color: #0f4d54;
}
.admin-hub-badge {
  display: inline-block;
  width: fit-content;
  padding: 0.35rem 0.65rem;
  background: rgba(27, 107, 116, 0.1);
}
.admin-hub-guest {
  margin-top: 1.5rem;
  padding: 1.25rem 1.2rem;
  background: #fff;
  border: 1px dashed rgba(27, 107, 116, 0.35);
  border-radius: 1.1rem;
}
.admin-hub-guest h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--navy);
}
.admin-hub-guest p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}
.admin-hub-demo {
  margin: 0.85rem 0 0 !important;
  font-size: 0.88rem;
}
.admin-hub-foot {
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.admin-hub-foot a { font-weight: 600; }

.mk-admin-form .admin-field textarea,
.mk-admin-form .admin-field input,
.mk-admin-form .admin-field select {
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.7rem 0.75rem;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  width: 100%;
}
.mk-admin-form .admin-field textarea { resize: vertical; }
.mk-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 600;
}
.mk-check input { width: auto; }
.mk-admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.mk-admin-actions .admin-login-btn { width: auto; min-width: 140px; }
.mk-admin-delete { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.pa-danger-btn {
  border: 1px solid #b91c1c;
  background: #fff;
  color: #b91c1c;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.pa-danger-btn:hover { background: #b91c1c; color: #fff; }
.field-error { color: #b91c1c; font-size: 0.8rem; }
.marketing-admin .pa-sidebar { background: #0f4d54; }
.pa-feature-row { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 900px) {
  .pa-feature-row { grid-template-columns: repeat(2, 1fr); }
}
.marketing-admin .pa-feature-row { margin-top: 0; }

/* —— Multi-step partner registration —— */
.pl-top-solid {
  position: sticky;
  top: 0;
  background: rgba(247, 248, 246, 0.96);
  border-bottom: 1px solid rgba(18, 38, 43, 0.1);
  backdrop-filter: blur(10px);
}
.pl-top-solid .pl-brand img { filter: none; }
.pl-top-solid .pl-top-nav a { color: #12262b; }
.pl-top-solid .pl-top-cta {
  border-color: #0f4d54;
  color: #0f4d54 !important;
}
.pl-top-solid .pl-top-cta:hover {
  background: #0f4d54;
  color: #fff !important;
}

.pr-wrap {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: 2rem clamp(1rem, 3vw, 2rem) 3.5rem;
}
.pr-intro { margin-bottom: 1.5rem; }
.pr-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1b6b74;
}
.pr-intro h1 {
  margin: 0 0 0.55rem;
  font-family: "Baskervville", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #12262b;
}
.pr-intro p {
  margin: 0;
  color: #5a6b71;
  line-height: 1.6;
  max-width: 40rem;
}

.pr-steps {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.35rem;
}
.pr-steps li {
  position: relative;
  padding: 0.65rem 0.35rem 0.55rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #5a6b71;
  border-top: 3px solid rgba(18, 38, 43, 0.12);
}
.pr-steps li.is-active {
  color: #0f4d54;
  border-top-color: #1b6b74;
}
.pr-steps li.is-done {
  color: #1b6b74;
  border-top-color: #1b6b74;
}
@media (max-width: 720px) {
  .pr-steps { grid-template-columns: repeat(3, 1fr); }
}

.pr-form {
  background: #fff;
  border: 1px solid rgba(18, 38, 43, 0.1);
  padding: 1.35rem 1.2rem 1.2rem;
}
.pr-panel h2 {
  margin: 0 0 1rem;
  font-family: "Baskervville", Georgia, serif;
  font-weight: 400;
  font-size: 1.55rem;
  color: #0f4d54;
}
.pr-grid {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 720px) {
  .pr-grid { grid-template-columns: 1fr 1fr; }
  .pr-span-2 { grid-column: span 2; }
}
.pr-help {
  margin: -0.35rem 0 1rem;
  color: #5a6b71;
  font-size: 0.9rem;
}
.pr-fieldset {
  margin: 0;
  padding: 0.85rem 0 0;
  border: 0;
  border-top: 1px solid rgba(18, 38, 43, 0.1);
}
.pr-fieldset legend {
  padding: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #5a6b71;
}
.pr-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin-top: 0.65rem;
}
.pr-checks label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: #12262b;
}
.pr-form select,
.pr-form input[type="file"],
.pr-form input[type="number"] {
  border: 1px solid rgba(18, 38, 43, 0.12);
  padding: 0.8rem 0.85rem;
  font: inherit;
  font-weight: 500;
  color: #12262b;
  background: #fff;
  width: 100%;
}
.pr-form input[type="file"] {
  padding: 0.65rem 0.75rem;
  background: #f7f8f6;
}
.pr-terms {
  display: grid;
  gap: 1rem;
}
.pr-terms > p {
  margin: 0;
  color: #5a6b71;
  line-height: 1.6;
}
.pr-accept {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 700;
  color: #12262b;
}
.pr-accept input { margin-top: 0.2rem; }

.pr-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(18, 38, 43, 0.1);
  flex-wrap: wrap;
}
.pr-nav-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: auto;
  flex-wrap: wrap;
}
.pr-progress {
  font-size: 0.85rem;
  font-weight: 700;
  color: #5a6b71;
}
.pr-btn-secondary {
  border: 1px solid rgba(18, 38, 43, 0.2);
  background: #fff;
  color: #12262b;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.pr-btn-secondary:hover { background: #f0f3f3; }
.pr-success {
  background: #fff;
  border: 1px solid rgba(18, 38, 43, 0.1);
  padding: 1.75rem 1.35rem;
}
.pr-success h2 {
  margin: 0 0 0.5rem;
  font-family: "Baskervville", Georgia, serif;
  font-weight: 400;
  color: #0f4d54;
}
.pr-success p { color: #5a6b71; line-height: 1.55; }

/* Document list styles live with compact admin (.pa-doc-row) above. */

.pa-step-label {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1b6b74;
}
.pa-new-partners .pa-card-head h2 { margin: 0; }
.pa-partner-feed {
  display: grid;
  gap: 0.65rem;
}
.pa-partner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  color: inherit;
}
.pa-partner-item:first-child { border-top: 0; padding-top: 0.25rem; }
.pa-partner-item strong {
  display: block;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}
.pa-partner-item:hover strong { color: var(--accent); }
.status-pending {
  background: #fff7ed;
  color: #b45309;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.35rem 0.55rem;
  white-space: nowrap;
}

/* —— Nuitee inventory / live search —— */
.pa-stat-key { font-size: 0.95rem !important; word-break: break-all; }
.pa-filters-inventory {
  grid-template-columns: 1fr;
  margin-top: 1rem;
}
@media (min-width: 800px) {
  .pa-filters-inventory {
    grid-template-columns: 1.2fr 90px 1.2fr auto;
  }
}
.pa-hotel-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.pa-hotel-cell strong { display: block; color: var(--navy); }
.pa-hotel-cell small { display: block; margin-top: 0.15rem; }
.pa-hotel-thumb {
  width: 3rem;
  height: 3rem;
  border-radius: 0.55rem;
  background: #e8eef6 center/cover no-repeat;
  flex-shrink: 0;
}
.pa-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.pa-live-search { margin-top: 0.75rem; }
.pa-live-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .pa-live-grid {
    grid-template-columns: 1.4fr 0.95fr 0.95fr 80px 1.1fr auto;
    align-items: end;
  }
}
.pa-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
}
.pa-field span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pa-field input,
.pa-field select {
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.7rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  width: 100%;
}
.pa-field.full { margin-top: 0.85rem; }
.pa-suggestions {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: 0 12px 28px rgba(13, 43, 82, 0.12);
  overflow: hidden;
}
.pa-suggestions button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 0.7rem 0.85rem;
  font: inherit;
  cursor: pointer;
}
.pa-suggestions button:last-child { border-bottom: 0; }
.pa-suggestions button:hover { background: #f4f7fb; }
.pa-suggestions small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.15rem;
}
.pa-kv {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}
.pa-kv div {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.pa-kv dt {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.pa-kv dd { margin: 0; color: var(--ink); }

@media (max-width: 899px) {
  .pl-nav nav a:not(.pl-nav-cta) { display: none; }
}

/* Partner credit workspace — column submenu */
.pa-credit-workspace {
  display: grid;
  grid-template-columns: minmax(12.5rem, 15rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
}
.pa-credit-submenu {
  position: sticky;
  top: 0.75rem;
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--line, #d9e2ec);
  border-radius: 12px;
}
.pa-credit-submenu-title {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}
.pa-credit-submenu-link {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.pa-credit-submenu-link:hover {
  background: #f1f5f9;
}
.pa-credit-submenu-link.is-active {
  background: #E6F9FD;
  color: #0b3b4a;
  box-shadow: inset 3px 0 0 #00C8F0;
  font-weight: 700;
}
.pa-credit-section-shell {
  min-height: 8rem;
  display: flex;
  align-items: center;
}
.pa-credit-pane {
  min-width: 0;
}
.pa-credit-pane-head {
  margin: 0 0 0.85rem;
}
.pa-credit-pane-head h2 {
  margin: 0;
  font-size: 1.15rem;
  color: #0b3b4a;
}
.pa-credit-pane .pa-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
@media (max-width: 900px) {
  .pa-credit-workspace {
    grid-template-columns: 1fr;
  }
  .pa-credit-submenu {
    position: static;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.35rem;
    padding: 0.55rem;
  }
  .pa-credit-submenu-title {
    display: none;
  }
  .pa-credit-submenu-link {
    white-space: nowrap;
    flex: 0 0 auto;
  }
}

/* Current Credit Position — graphic summary */
.pa-credit-visual {
  margin-top: 1.25rem;
}
.pa-credit-visual-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #0b3b4a;
}
.pa-credit-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}
.pa-credit-visual-block {
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fcfd 0%, #f1f5f9 100%);
  border: 1px solid #d9e2ec;
}
.pa-credit-visual-labelrow {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pa-credit-visual-labelrow strong {
  font-size: 0.92rem;
  text-transform: none;
  letter-spacing: 0;
  color: #0f172a;
}
.pa-credit-stack {
  display: flex;
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}
.pa-credit-stack.is-empty {
  opacity: 0.7;
}
.pa-credit-stack-used {
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  min-width: 0;
  transition: width 0.35s ease;
}
.pa-credit-stack-free {
  background: linear-gradient(90deg, #22d3ee, #00A8CC);
  min-width: 0;
  transition: width 0.35s ease;
}
.pa-credit-stack-empty {
  flex: 1;
  background: repeating-linear-gradient(
    -45deg,
    #e2e8f0,
    #e2e8f0 6px,
    #f1f5f9 6px,
    #f1f5f9 12px
  );
}
.pa-credit-outstanding-track {
  position: relative;
  height: 18px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}
.pa-credit-outstanding-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease;
}
.pa-credit-outstanding-fill.is-due {
  background: linear-gradient(90deg, #f87171, #b91c1c);
}
.pa-credit-outstanding-fill.is-surplus {
  background: linear-gradient(90deg, #34d399, #047857);
}
.pa-credit-outstanding-facility {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #0b3b4a;
  transform: translateX(-1px);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}
.pa-credit-outstanding-zero {
  display: none;
}
.pa-credit-legend {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: #334155;
}
.pa-credit-legend .swatch {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  margin-right: 0.4rem;
  vertical-align: -1px;
}
.pa-credit-legend .swatch.is-used { background: #ea580c; }
.pa-credit-legend .swatch.is-free { background: #00A8CC; }
.pa-credit-legend .swatch.is-due { background: #b91c1c; }
.pa-credit-legend .swatch.is-mark { background: #0b3b4a; }
.pa-credit-visual-empty,
.pa-credit-visual-note {
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
}
.pa-credit-donut-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}
.pa-credit-donut {
  position: relative;
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
}
.pa-credit-donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.pa-credit-donut-bg,
.pa-credit-donut-fg {
  fill: none;
  stroke-width: 3.2;
}
.pa-credit-donut-bg {
  stroke: #e2e8f0;
}
.pa-credit-donut-fg {
  stroke-linecap: round;
  transition: stroke-dasharray 0.4s ease;
}
.pa-credit-donut-fg.pa-util-ok { stroke: #0f7a45; }
.pa-credit-donut-fg.pa-util-warning { stroke: #d97706; }
.pa-credit-donut-fg.pa-util-critical,
.pa-credit-donut-fg.pa-util-blocked { stroke: #b91c1c; }
.pa-credit-donut-fg.pa-util-no_limit { stroke: #94a3b8; }
.pa-credit-donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
}
.pa-credit-donut-center strong {
  font-size: 1.05rem;
  color: #0b3b4a;
  line-height: 1.1;
}
.pa-credit-donut-center span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.pa-credit-donut-copy h4 {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  color: #0b3b4a;
}
.pa-credit-donut-copy p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #475569;
  max-width: 28rem;
}
@media (max-width: 800px) {
  .pa-credit-visual-grid {
    grid-template-columns: 1fr;
  }
}

/* Running Statement — brief outstanding */
.pa-credit-outstanding-brief {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid #d9e2ec;
  background: linear-gradient(180deg, #f8fcfd 0%, #f1f5f9 100%);
}
.pa-credit-outstanding-brief-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.25rem;
}
.pa-credit-outstanding-brief-main strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.2;
}
.pa-credit-outstanding-brief-main strong em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  margin-left: 0.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.pa-credit-outstanding-brief-main p {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
}
.pa-credit-outstanding-brief-side {
  display: grid;
  gap: 0.45rem;
  align-content: center;
}
.pa-credit-outstanding-brief-side div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed #d9e2ec;
}
.pa-credit-outstanding-brief-side span {
  color: #64748b;
  font-weight: 600;
}
.pa-credit-outstanding-brief-side strong {
  color: #0f172a;
}
@media (max-width: 700px) {
  .pa-credit-outstanding-brief {
    grid-template-columns: 1fr;
  }
}

/* Current Credit Position — inner tabs */
.pa-credit-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #e2e8f0;
}
.pa-credit-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  background: transparent;
}
.pa-credit-tab:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.pa-credit-tab.is-active {
  background: #e0f2fe;
  color: #0369a1;
}
.pa-credit-tab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin: 1.15rem 0 0.35rem;
}
.pa-credit-tab-actions .pa-inline-form {
  display: inline;
  margin: 0;
}
.pa-credit-adjust-panel {
  margin-top: 1rem;
}
.pa-credit-adjust-panel[hidden] {
  display: none !important;
}
.pa-credit-pay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: flex-start;
}
.pa-pay-reverse summary {
  list-style: none;
  cursor: pointer;
}
.pa-pay-reverse summary::-webkit-details-marker {
  display: none;
}
.pa-ledger-kind.pa-pay-unallocated { background: #ffedd5; color: #c2410c; }
.pa-ledger-kind.pa-pay-allocated { background: #d1fae5; color: #065f46; }
.pa-ledger-kind.pa-pay-reversed { background: #fee2e2; color: #991b1b; }
