/* --- POLICY PAGES (privacy, T&C) --- */
.policy-wrap {
  padding-bottom: 5rem;
}
.policy-last-updated {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; color: rgba(255,255,255,0.35);
  margin-bottom: 2.5rem;
}
.policy-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.policy-section:last-of-type { border-bottom: none; }
.policy-section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  color: rgba(255,255,255,0.88);
  margin-bottom: 1rem;
}
.policy-section p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  margin-bottom: 0.85rem;
}
.policy-section p:last-child { margin-bottom: 0; }
.policy-section ul {
  margin: 0.5rem 0 0.85rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.policy-section ul li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
}
.policy-contact-box {
  margin-top: 1rem;
  background: rgba(13,181,160,0.05);
  border: 1px solid rgba(13,181,160,0.12);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}
.policy-contact-box p {
  margin-bottom: 0.4rem !important;
}
.policy-contact-box a {
  color: var(--teal);
  text-decoration: none;
}
.policy-contact-box a:hover { text-decoration: underline; }

/* --- DOCS NAV (topbar) ---
   Existing classes: .topbar, .topbar-logo, .topbar-logo-icon,
   .topbar-brand, .topbar-brand-name, .topbar-brand-sub,
   .topbar-nav, .btn-appsource
   --- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 64px; display: flex; align-items: center;
  justify-content: space-between; padding: 0 2rem;
  background: rgba(7,12,24,0.92);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(13,181,160,0.08);
}
.topbar-logo {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none;
}
.topbar-logo-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, rgba(13,181,160,0.22), rgba(13,181,160,0.06));
  border: 1px solid rgba(13,181,160,0.28);
  display: flex; align-items: center; justify-content: center;
}
.topbar-logo-icon::after {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 7px var(--teal), 0 0 14px rgba(13,181,160,0.4);
}
.topbar-brand { display: flex; flex-direction: column; gap: 1px; }
.topbar-brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 0.95rem; color: #fff; line-height: 1;
}
.topbar-brand-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 600;
  color: rgba(13,181,160,0.65);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.topbar-nav {
  display: flex; align-items: center; gap: 1.75rem;
}
.topbar-nav a {
  color: rgba(255,255,255,0.5); text-decoration: none;
  font-size: 0.85rem; font-weight: 500; transition: color 0.2s;
}
.topbar-nav a:hover { color: #fff; }

/* --- THREE-COLUMN LAYOUT --- */
.docs-layout {
  display: flex;
  padding-top: 64px;
  min-height: 100vh;
  background: var(--bg-docs);
}

/* --- SIDEBAR --- */
.docs-sidebar {
  width: 268px; flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid rgba(13,181,160,0.07);
  position: sticky; top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 1.75rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(13,181,160,0.15) transparent;
}
.docs-sidebar::-webkit-scrollbar { width: 4px; }
.docs-sidebar::-webkit-scrollbar-track { background: transparent; }
.docs-sidebar::-webkit-scrollbar-thumb { background: rgba(13,181,160,0.15); border-radius: 2px; }

.sidebar-section { margin-bottom: 1.75rem; }
.sidebar-section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; font-weight: 600;
  color: rgba(13,181,160,0.5);
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0 1.25rem; margin-bottom: 0.5rem;
  display: block;
}
.sidebar-link {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.45rem 1.25rem;
  font-size: 0.82rem; font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-decoration: none; transition: all 0.15s;
  border-left: 2px solid transparent;
}
.sidebar-link::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: currentColor; opacity: 0.5; flex-shrink: 0;
}
.sidebar-link:hover { color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.025); }
.sidebar-link.active {
  color: var(--teal);
  background: rgba(13,181,160,0.06);
  border-left-color: var(--teal);
  font-weight: 600;
}
.sidebar-link.active::before { opacity: 1; box-shadow: 0 0 5px var(--teal); }
.coming-soon-link { opacity: 0.45; pointer-events: none; }

/* --- CONTENT AREA --- */
.docs-content {
  flex: 1; min-width: 0;
  padding: 3rem 4rem 6rem;
  max-width: 860px;
  background: var(--bg-docs);
}

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.78rem; color: rgba(255,255,255,0.3);
}
.breadcrumb a { color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb-sep { font-size: 0.7rem; opacity: 0.5; }

/* Page title + subtitle */
.page-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.9rem; font-weight: 800;
  color: #fff; letter-spacing: -0.025em;
  line-height: 1.15; margin-bottom: 0.75rem;
}
.page-subtitle {
  font-size: 1rem; color: rgba(255,255,255,0.5);
  line-height: 1.7; max-width: 580px;
  margin-bottom: 2.5rem;
}

/* Section divider */
.docs-content hr {
  border: none; height: 1px;
  background: linear-gradient(90deg, rgba(13,181,160,0.2), rgba(13,181,160,0.2) 60%, transparent);
  margin: 2.5rem 0;
}

/* Section headings */
.section-h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: #fff; margin: 2rem 0 0.85rem;
  display: flex; align-items: center; gap: 0.65rem;
}
.section-h2::before {
  content: '';
  width: 3px; height: 1.1em;
  background: var(--teal);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(13,181,160,0.4);
  flex-shrink: 0;
}
.section-h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin: 1.25rem 0 0.6rem;
}

/* Body prose */
.prose {
  font-size: 0.9rem; color: rgba(255,255,255,0.5);
  line-height: 1.8; margin-bottom: 1.25rem;
}
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: rgba(255,255,255,0.75); }
.field-desc a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.callout-body a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* --- STEP CARDS --- */
.step-cards { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.step-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(13,181,160,0.08);
  border-radius: 12px; overflow: hidden;
  transition: all 0.2s;
}
.step-card:hover {
  border-color: rgba(13,181,160,0.2);
  background: rgba(255,255,255,0.04);
}
.step-card-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem 0;
}
.step-num {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(13,181,160,0.1);
  border: 1px solid rgba(13,181,160,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600; color: var(--teal);
}
.step-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem; font-weight: 700;
  color: rgba(255,255,255,0.85);
}
.step-card-body { padding: 0.6rem 1.25rem 1rem 1.25rem; }
.step-card-body p {
  font-size: 0.82rem; color: rgba(255,255,255,0.5); line-height: 1.65;
  margin-bottom: 0.75rem;
}
.step-card-body p:last-child { margin-bottom: 0; }

/* --- CALLOUTS --- */
.callout {
  display: flex; gap: 0.85rem; align-items: flex-start;
  border-radius: 10px; padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}
.callout-info {
  background: rgba(13,181,160,0.06);
  border: 1px solid rgba(13,181,160,0.18);
  border-left: 3px solid var(--teal);
}
.callout-warn {
  background: rgba(245,158,11,0.05);
  border: 1px solid rgba(245,158,11,0.15);
  border-left: 3px solid rgba(245,158,11,0.6);
}
.callout-icon { flex-shrink: 0; margin-top: 1px; font-size: 0.9rem; }
.callout-body {
  font-size: 0.82rem; line-height: 1.7;
}
.callout-info .callout-body { color: rgba(95,222,208,0.8); }
.callout-warn .callout-body { color: rgba(245,158,11,0.75); }
.callout-body strong { font-weight: 700; }
.callout-info .callout-body strong { color: var(--teal-light); }
.callout-warn .callout-body strong { color: rgba(245,158,11,0.9); }

/* --- SCREENSHOTS (docs) --- */
.screenshot {
  display: block; width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(13,181,160,0.12);
  box-shadow:
    0 0 0 1px rgba(13,181,160,0.05),
    0 4px 16px rgba(0,0,0,0.3),
    0 16px 48px rgba(0,0,0,0.4);
  margin-top: 0.75rem;
}

/* --- CODE BLOCKS --- */
pre, code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
}
pre {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(13,181,160,0.1);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin: 1rem 0;
  overflow-x: auto;
  position: relative;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}
pre::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13,181,160,0.3), transparent);
}
code {
  background: rgba(13,181,160,0.08);
  border: 1px solid rgba(13,181,160,0.15);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  font-size: 0.82rem;
  color: var(--teal-light);
}
pre code {
  background: transparent; border: none;
  padding: 0; color: inherit; font-size: inherit;
}

/* --- PREV / NEXT NAV --- */
.doc-nav-links {
  display: flex; gap: 1rem; margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(13,181,160,0.08);
}
.doc-nav-prev, .doc-nav-next {
  flex: 1;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(13,181,160,0.1);
  border-radius: 12px; padding: 1.1rem 1.25rem;
  text-decoration: none; transition: all 0.2s;
  display: flex; align-items: center; gap: 0.75rem;
}
.doc-nav-prev:hover, .doc-nav-next:hover {
  border-color: rgba(13,181,160,0.25);
  background: rgba(255,255,255,0.035);
  transform: translateY(-2px);
}
.doc-nav-next { justify-content: flex-end; text-align: right; }
.nav-dir {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; color: rgba(255,255,255,0.3);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 0.2rem; display: block;
}
.nav-page {
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem; font-weight: 600;
  color: rgba(255,255,255,0.75); display: block;
}
.nav-arrow { color: var(--teal); font-size: 1.1rem; flex-shrink: 0; }

/* --- DOCS HUB CARD GRID --- */
.docs-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem; margin-top: 2rem;
}
.docs-hub-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(13,181,160,0.1);
  border-radius: 14px; padding: 1.5rem;
  text-decoration: none;
  transition: all 0.25s; display: block;
}
.docs-hub-card:hover {
  border-color: rgba(13,181,160,0.28);
  background: rgba(255,255,255,0.04);
  transform: translateY(-3px);
  box-shadow: 0 0 24px rgba(13,181,160,0.07);
}
.docs-hub-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  color: #fff; margin-bottom: 0.4rem;
}
.docs-hub-card p { font-size: 0.82rem; color: rgba(255,255,255,0.45); line-height: 1.6; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .docs-content { padding: 2rem 2rem 4rem; }
}
@media (max-width: 768px) {
  .docs-sidebar { display: none; }
  .docs-layout { display: block; }
  .docs-content { padding: 1.5rem 1.25rem 3rem; max-width: 100%; }
}

/* --- DOCS HUB (docs/index.html) --- */
.hero {
  padding: 7rem 2.5rem 4rem;
  background: var(--bg-hero);
  text-align: center;
  border-bottom: 1px solid rgba(13,181,160,0.08);
}
.hero-inner { max-width: 640px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  background: rgba(13,181,160,0.07);
  border: 1px solid rgba(13,181,160,0.18);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600;
  color: rgba(13,181,160,0.85);
  letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #fff; letter-spacing: -0.025em;
  line-height: 1.2; margin-bottom: 1rem;
}
.hero p {
  font-size: 1rem; color: rgba(255,255,255,0.5);
  line-height: 1.7; margin-bottom: 1.75rem;
}
.hero-links {
  display: flex; align-items: center; justify-content: center;
  gap: 0.85rem; flex-wrap: wrap;
}
.hero-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.35rem; border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem; font-weight: 700;
  text-decoration: none; transition: all 0.2s;
}
.hero-link.primary {
  background: linear-gradient(135deg, rgba(13,181,160,0.22), rgba(13,181,160,0.08));
  border: 1px solid rgba(13,181,160,0.4);
  color: var(--teal);
}
.hero-link.primary:hover {
  background: linear-gradient(135deg, rgba(13,181,160,0.32), rgba(13,181,160,0.14));
  border-color: rgba(13,181,160,0.6);
}
.hero-link.secondary {
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}
.hero-link.secondary:hover { color: #fff; border-color: rgba(255,255,255,0.25); }

/* Main content container */
.main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3rem 2.5rem 6rem;
}

/* Section labels (Setup, Operations, Reference) */
.section-label {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.25rem; margin-top: 3rem;
}
.section-label:first-child { margin-top: 0; }
.section-label h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600;
  color: rgba(13,181,160,0.65);
  letter-spacing: 0.2em; text-transform: uppercase;
  white-space: nowrap; margin: 0;
}
.section-label-line { flex: 1; height: 1px; background: rgba(13,181,160,0.1); }
.section-label-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600;
  color: var(--teal-dim);
  background: rgba(13,181,160,0.08);
  border-radius: 100px; padding: 0.15rem 0.6rem;
  letter-spacing: 0.06em;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem; margin-bottom: 0.5rem;
}
.doc-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(13,181,160,0.08);
  border-radius: 14px; padding: 1.35rem;
  text-decoration: none;
  display: flex; flex-direction: column; gap: 0.4rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.doc-card:hover {
  border-color: rgba(13,181,160,0.25);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.coming-soon { opacity: 0.5; }
.card-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(13,181,160,0.07);
  border: 1px solid rgba(13,181,160,0.14);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.25rem; flex-shrink: 0;
}
.card-icon svg { width: 15px; height: 15px; stroke: var(--teal); fill: none; stroke-width: 1.8; }
.card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem; font-weight: 700;
  color: rgba(255,255,255,0.85); line-height: 1.35;
}
.badge-soon {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(245,158,11,0.85);
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 4px; padding: 0.1rem 0.35rem;
  vertical-align: middle; margin-left: 0.35rem;
}
.card-desc { font-size: 0.78rem; color: rgba(255,255,255,0.38); line-height: 1.65; }

/* Roadmap section in hub */
.roadmap-section {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(13,181,160,0.08);
  border-radius: 16px; padding: 2rem; margin-top: 3rem;
}
.roadmap-section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem; font-weight: 700;
  color: rgba(255,255,255,0.8); margin-bottom: 0.25rem;
}
.roadmap-section .subtitle { font-size: 0.82rem; color: rgba(255,255,255,0.4); margin-bottom: 0.4rem; }
.roadmap-note { font-size: 0.72rem; color: rgba(255,255,255,0.22); margin-bottom: 1.25rem; }
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6rem;
}
.roadmap-item { display: flex; align-items: flex-start; gap: 0.6rem; }
.roadmap-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 5px rgba(13,181,160,0.5);
  flex-shrink: 0; margin-top: 0.45rem;
}
.roadmap-item-text {
  font-size: 0.78rem; color: rgba(255,255,255,0.4); line-height: 1.55;
}
.roadmap-item-text strong { color: rgba(255,255,255,0.65); display: block; font-size: 0.8rem; }

/* Hub footer */
footer {
  text-align: center; padding: 2rem;
  font-size: 0.78rem; color: rgba(255,255,255,0.22);
  border-top: 1px solid rgba(13,181,160,0.06);
}
footer a { color: rgba(13,181,160,0.55); text-decoration: none; }
footer a:hover { color: var(--teal); }

/* --- FIELD LIST (user guide field reference tables) --- */
.field-list {
  display: flex; flex-direction: column;
  margin: 0.5rem 0 1.5rem;
  border: 1px solid rgba(13,181,160,0.08);
  border-radius: 10px;
  overflow: hidden;
}
.field-fasttab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; font-weight: 600;
  color: rgba(13,181,160,0.65);
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.7rem 1.1rem;
  background: rgba(13,181,160,0.04);
  border-bottom: 1px solid rgba(13,181,160,0.08);
}
.field-row {
  display: grid; grid-template-columns: 220px 1fr; gap: 1rem;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.field-row:last-child { border-bottom: none; }
.field-row:hover { background: rgba(255,255,255,0.015); }
.field-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
}
.field-name .req {
  color: rgba(245,158,11,0.85);
  margin-left: 4px; font-size: 0.75rem;
}
.field-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
}
.field-desc strong { color: rgba(255,255,255,0.75); }

/* --- MOCK-UPS (drawn screens in the user guides) --- */
/* Mock-ups: drawn screens, each a light panel of its own on the dark page. Every rule is under .mockup. */
.mockup { --ink: #0b1320; --text: #2f353c; --muted: #5b6573; --rule: #d8dde3; --wash: #f2f3f5; --paper: #ffffff; --teal-ink: #08776b; max-width: 46rem; margin: 1.5rem 0 1.75rem; }
.mockup .screen { border: 1px solid #b9c1cb; border-radius: 8px; background: var(--paper); overflow: hidden; font-size: 0.875rem; line-height: 1.4; color: var(--ink); box-shadow: 0 8px 28px rgba(0,0,0,0.45); }
.mockup .screen-title { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.9rem; background: var(--wash); border-bottom: 1px solid var(--rule); color: var(--muted); font-size: 0.8125rem; }
.mockup .screen-title .caption { color: var(--ink); font-weight: 600; }
.mockup .screen-actions { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; padding: 0.45rem 0.9rem; border-bottom: 1px solid var(--rule); color: var(--teal-ink); font-weight: 600; font-size: 0.8125rem; }
.mockup .screen-body { padding: 0.9rem; }
.mockup .screen-heading { margin: 0 0 0.6rem; font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.mockup .screen-group { margin: 1rem 0 0.45rem; padding-bottom: 0.25rem; border-bottom: 1px solid var(--rule); font-weight: 600; }
.mockup .screen-group:first-child { margin-top: 0; }
.mockup .screen-text { margin: 0 0 0.75rem; max-width: 34rem; color: var(--text); }
.mockup .screen-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; padding: 0.6rem 0.9rem; border-top: 1px solid var(--rule); background: var(--wash); }
.mockup .bc-field { display: flex; align-items: baseline; gap: 0.4rem; padding: 0.2rem 0; }
.mockup .bc-field .label { flex: none; color: var(--text); }
.mockup .bc-field .leader { flex: 1 1 1rem; min-width: 1rem; border-bottom: 1px dotted #8b95a1; transform: translateY(-0.2em); }
.mockup .bc-field .value { flex: 0 1 58%; min-width: 0; padding: 0.15rem 0.4rem; border-bottom: 1px solid #8b95a1; background: #fafbfc; overflow-wrap: anywhere; }
.mockup .form-field { margin: 0 0 0.6rem; }
.mockup .form-field .label { display: block; margin-bottom: 0.2rem; font-weight: 600; }
.mockup .form-field .value, .mockup .side-field .value { display: block; padding: 0.4rem 0.55rem; border: 1px solid #b9c1cb; border-radius: 6px; background: var(--paper); overflow-wrap: anywhere; min-height: 2.1rem; }
.mockup .side-field { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: center; gap: 0.6rem; margin: 0 0 0.45rem; }
.mockup .side-field .label { color: var(--text); }
.mockup .with-marker { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 0.5rem; align-items: start; }
.mockup .marker { display: inline-flex; align-items: center; justify-content: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 0.75rem; font-weight: 600; line-height: 1; }
.mockup .button { display: inline-block; padding: 0.35rem 0.8rem; border: 1px solid var(--ink); border-radius: 6px; background: var(--paper); color: var(--ink); font-weight: 600; white-space: nowrap; }
.mockup .button.main { margin: 0; max-width: none; border: 2px solid #0db5a0; padding: calc(0.35rem - 1px) calc(0.8rem - 1px); }
.mockup .button.off { border-style: dashed; border-color: #b9c1cb; color: var(--muted); font-weight: 400; }
.mockup .tabs { display: flex; flex-wrap: wrap; gap: 0 1.25rem; padding: 0 0.9rem; border-bottom: 1px solid var(--rule); }
.mockup .tabs span { padding: 0.5rem 0 0.4rem; color: var(--muted); }
.mockup .tabs .on { color: var(--ink); font-weight: 600; border-bottom: 2px solid #0db5a0; }
.mockup .rows { overflow-x: auto; }
.mockup .row { display: grid; gap: 0 0.9rem; padding: 0.4rem 0; border-bottom: 1px solid var(--rule); align-items: center; }
.mockup .row.head { color: var(--muted); font-size: 0.8125rem; border-bottom-color: #8b95a1; align-items: end; }
.mockup .row:last-child { border-bottom: 0; }
.mockup .box { display: inline-block; width: 0.95rem; height: 0.95rem; border: 1px solid #6b7684; border-radius: 2px; background: var(--paper); position: relative; vertical-align: -0.12em; }
.mockup .box.ticked::after { content: ""; position: absolute; left: 0.27rem; top: 0.06rem; width: 0.3rem; height: 0.55rem; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 560px) {
  .mockup .rows .row { gap: 0 0.5rem; font-size: 0.75rem; overflow-wrap: anywhere; }
  .mockup .rows .row.head { font-size: 0.6875rem; }
}
/* The portal's own captions stay in English, so they are code elements; inside a drawn screen they keep the look of a caption. */
.mockup .screen code { font: inherit; color: inherit; background: none; border: 0; padding: 0; border-radius: 0; overflow-wrap: inherit; }
.mockup figcaption { margin-top: 0.7rem; font-size: 0.8rem; line-height: 1.6; color: rgba(255,255,255,0.45); }
.mockup figcaption strong { color: rgba(255,255,255,0.7); }
.mockup .illustration-note { display: block; color: rgba(255,255,255,0.7); font-weight: 600; }
/* A list's columns are set where the list is drawn: --cols on .rows, and --min for the width below which the list scrolls sideways inside its screen. */
.mockup .rows .row { grid-template-columns: var(--cols); min-width: var(--min, 0); }
.mockup .row .num { text-align: right; font-variant-numeric: tabular-nums; }
.mockup .row .in-1 { padding-left: 1.1rem; }
.mockup .row .in-2 { padding-left: 2.2rem; }
/* A list with a selected row gives every row a little side room, so the tint does not sit hard against the text. */
.mockup .rows:has(.row.picked) .row { padding-left: 0.4rem; padding-right: 0.4rem; }
.mockup .row.picked { background: #e7f5f3; box-shadow: inset 2px 0 0 #0db5a0; }
/* The colours Business Central gives a value: Favorable, Unfavorable, Attention, Ambiguous, Strong, StrongAccent, StandardAccent, Subordinate. */
.mockup .style-favorable { color: #0f6b2f; font-weight: 600; }
.mockup .style-unfavorable { color: #b3261e; font-weight: 600; font-style: italic; }
.mockup .style-attention { color: #b3261e; font-style: italic; }
.mockup .style-ambiguous { color: #8a5a00; }
.mockup .style-strong { font-weight: 700; }
.mockup .style-strongaccent { color: #005a9e; font-weight: 700; }
.mockup .style-standardaccent { color: #005a9e; }
.mockup .style-subordinate { color: var(--muted); }
/* A FastTab's fields in two columns, as on a card. */
.mockup .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
.mockup .bc-field .value.fixed { background: none; border-bottom-color: transparent; }
/* A page with a FactBox pane on its right. */
.mockup .screen-split { display: grid; grid-template-columns: minmax(0, 1fr) 12.5rem; }
.mockup .factbox { padding: 0.9rem; border-left: 1px solid var(--rule); background: var(--wash); font-size: 0.8125rem; }
.mockup .factbox-title { margin: 0.9rem 0 0.35rem; font-weight: 600; }
.mockup .factbox-title:first-child { margin-top: 0; }
.mockup .fact { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.15rem 0; color: var(--text); }
.mockup .fact .value { color: var(--ink); font-weight: 600; text-align: right; }
/* A message or a small dialog. */
.mockup.dialog { max-width: 30rem; }
/* Role centre cues. */
.mockup .cues { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.mockup .cue { width: 7.5rem; padding: 0.6rem 0.7rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); }
.mockup .cue .count { display: block; font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.mockup .cue .label { display: block; font-size: 0.75rem; color: var(--text); }
@media (max-width: 560px) {
  .mockup .fields { grid-template-columns: minmax(0, 1fr); }
  .mockup .screen-split { grid-template-columns: minmax(0, 1fr); }
  .mockup .factbox { border-left: 0; border-top: 1px solid var(--rule); }
}

/* Boards: a timeline with a tree down its left, drawn on a grid of equal days. --days on .board-grid is the
   number of days shown; a bar sits at --from (the first day, counting from 1) for --for days. */
.mockup .board-title { padding: 0.7rem 0.9rem 0.1rem; font-size: 1rem; font-weight: 600; }
.mockup .board-tools { display: flex; gap: 0.4rem; padding: 0.5rem 0.9rem; border-bottom: 1px solid var(--rule); }
.mockup .board-tools span { min-width: 1.9rem; padding: 0.25rem 0.7rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--wash); font-size: 0.8125rem; font-weight: 500; text-align: center; }
.mockup .board { overflow-x: auto; }
.mockup .board-grid { position: relative; min-width: 38rem; padding-top: 1.35rem; }
.mockup .lane { display: grid; grid-template-columns: 13rem minmax(0, 1fr); min-height: 2rem; border-bottom: 1px solid #eef0f4; }
.mockup .lane .name { padding: 0.4rem 0.6rem; border-right: 1px solid var(--rule); font-size: 0.8125rem; line-height: 1.3; overflow-wrap: anywhere; }
.mockup .lane .track { display: grid; grid-template-columns: repeat(var(--days), minmax(0, 1fr)); align-items: center; background-image: linear-gradient(to right, #eef0f4 1px, transparent 1px); background-size: calc(100% / var(--days)) 100%; }
.mockup .lane.axis { min-height: 0; background: var(--wash); color: var(--muted); font-size: 0.75rem; font-weight: 500; border-top: 1px solid var(--rule); border-bottom-color: var(--rule); }
.mockup .lane.axis .name { padding-top: 0.25rem; padding-bottom: 0.25rem; color: var(--ink); font-size: 0.75rem; font-weight: 600; }
.mockup .lane.axis .track { background-image: none; }
.mockup .lane.axis .track span { padding: 0.25rem 0; text-align: center; }
.mockup .lane.axis .track .off { background: #e6ecf5; }
.mockup .lane.top { background: var(--wash); }
.mockup .lane.top .name, .mockup .lane .name.second { font-weight: 600; }
.mockup .lane .name.second { padding-left: 1.5rem; }
.mockup .lane .name.third { padding-left: 2.6rem; color: var(--muted); }
.mockup .lane.last { border-top: 2px solid #d6e4e3; border-bottom: 0; }
.mockup .lane.last .name { font-weight: 600; }
.mockup .bar { grid-row: 1; grid-column: var(--from) / span var(--for, 1); min-width: 0; margin: 0.25rem 0; padding: 0.15rem 0.45rem; border: 1px solid; border-radius: 4px; font-size: 0.75rem; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #ffffff; }
.mockup .bar.firm, .mockup .sw.firm { background: #2e7d7a; border-color: #1f5b59; }
.mockup .bar.provisional, .mockup .sw.provisional { background: #dceae9; border: 1px dashed #2e7d7a; color: #1f3b3b; }
.mockup .bar.handling { background: #2e7d7a; border: 1px dashed #1f5b59; opacity: 0.32; }
.mockup .bar.handling::before { content: "\00a0"; }
.mockup .bar.maint, .mockup .sw.maint { background: #c77d3e; border-color: #a5662b; }
.mockup .bar.maint-open, .mockup .sw.maint-open { background: #e6c3a0; border-color: #c79a6b; color: #6b4a23; }
.mockup .bar.due, .mockup .sw.due { justify-self: start; width: 0.75rem; height: 0.75rem; margin-left: 0.3rem; padding: 0; border: 0; border-radius: 2px; background: #dd9a4e; transform: rotate(45deg); }
.mockup .bar.task-open, .mockup .sw.task-open { background: #cce5e3; border-color: #5f9c99; color: #14302f; }
.mockup .bar.preflight, .mockup .sw.preflight { background: #e6912e; border-color: #c2761c; }
.mockup .bar.preflight-open, .mockup .sw.preflight-open { background: #f6d6a5; border-color: #d29a4a; color: #6b4415; }
.mockup .bar.window, .mockup .sw.window { height: 0.9rem; padding: 0; border: 0; border-left: 3px solid #1a1a1a; border-right: 3px solid #1a1a1a; border-radius: 0; background: linear-gradient(to bottom, transparent calc(50% - 1px), #1a1a1a calc(50% - 1px), #1a1a1a calc(50% + 1px), transparent calc(50% + 1px)); }
/* The arrow from one task to the next: it leaves the right end of the bar on the lane above and comes into the left
   end of this lane's bar. It goes in the track before that bar, at the bar's own --from. A lane is 2rem tall. */
.mockup .track .link { grid-row: 1; grid-column: var(--from); justify-self: start; align-self: center; width: 1rem; height: 1rem; overflow: visible; pointer-events: none; }
.mockup .track .link .line { fill: none; stroke: #9a9a9a; stroke-width: 1.5; }
.mockup .track .link .head { fill: #9a9a9a; }
.mockup .bar.cap { height: 1.1rem; margin: 0.25rem 1px; padding: 0; border-color: #c3d6d5; border-radius: 2px; background: linear-gradient(to right, #2e7d7a 0 var(--fill, 0%), #dceae9 var(--fill, 0%) 100%); }
.mockup .bar.cap.over { background: #962d22; }
.mockup .today { position: absolute; top: 0; bottom: 0; left: calc(13rem + (100% - 13rem) * var(--at) / var(--days)); width: 2px; background: #06bdf8; }
.mockup .today span { position: absolute; top: 0.15rem; left: 2px; padding: 0.05rem 0.4rem; border-radius: 0 4px 4px 0; background: #06bdf8; color: #ffffff; font-size: 0.6875rem; font-weight: 600; }
.mockup .board-legend { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; padding: 0.6rem 0.9rem; border-top: 1px solid var(--rule); font-size: 0.75rem; color: var(--text); }
.mockup .board-legend .sw { display: inline-block; width: 1.4rem; height: 0.7rem; margin: 0 0.4rem 0 0; vertical-align: -0.05rem; border: 1px solid; border-radius: 3px; }
.mockup .board-legend .sw.due { width: 0.6rem; height: 0.6rem; margin: 0 0.55rem 0 0.2rem; border: 0; }
.mockup .board-legend .sw.window { height: 0.7rem; border-top: 0; border-bottom: 0; border-radius: 0; }

/* --- PORTAL SCREENS (drawn screens of the customer portal) --- */
/* The customer portal's own pages, drawn at about five sixths of their size: the layout from its Razor pages, the
   colours, corners, spacing and type from its stylesheet (wwwroot/app.css), in its default theme. Every rule is under
   .mockup .portal and every class starts p-, so nothing here meets the Business Central kit above. A drawing wider
   than its screen scrolls sideways inside it. */
.mockup .portal { --p-ink: #0b1320; --p-text: #2f353c; --p-muted: #5b6573; --p-line: #eceef1; --p-border: #d8dde3; --p-canvas: #f2f3f5; --p-card: #ffffff; --p-banner: #070c18; --p-teal: #0db5a0; --p-on-teal: #032520; overflow-x: auto; background: var(--p-canvas); color: var(--p-text); font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.78125rem; line-height: 1.5; }
.mockup .portal .p-app { min-width: 44rem; padding: 0.65rem 0.75rem 0; }
.mockup .portal .p-app.p-small { min-width: 0; }
.mockup .portal .p-link { color: var(--p-ink); text-decoration: underline; }

/* The frame: the hire company's top bar over the page, and the "Powered by" line under it. */
.mockup .portal .p-top { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.9rem; background: var(--p-card); border-radius: 13px; box-shadow: 0 1px 2px rgba(11,19,32,0.04); }
.mockup .portal .p-co { display: flex; align-items: center; gap: 0.6rem; min-width: 0; margin-right: auto; }
.mockup .portal .p-brand-mark { flex: none; width: 28px; height: 28px; border-radius: 7px; background: var(--p-banner); display: grid; place-items: center; }
.mockup .portal .p-brand-mark::before { content: ""; width: 12px; height: 12px; border: 2.5px solid var(--p-teal); border-radius: 3px; transform: rotate(45deg); }
.mockup .portal .p-brand-text { min-width: 0; }
.mockup .portal .p-brand-text b { display: block; font-family: "Poppins", system-ui, sans-serif; font-size: 0.96em; font-weight: 600; line-height: 1.15; color: var(--p-ink); }
.mockup .portal .p-brand-text span { font-size: 0.8em; color: var(--p-muted); }
.mockup .portal .p-user { display: flex; align-items: center; gap: 8px; padding-left: 10px; border-left: 1px solid var(--p-line); font-size: 0.907em; font-weight: 500; color: var(--p-ink); }
.mockup .portal .p-avatar { flex: none; width: 27px; height: 27px; border-radius: 50%; background: #d8c7ff; color: #3b2a7a; display: grid; place-items: center; font-size: 0.83em; font-weight: 600; }
.mockup .portal .p-content { padding-top: 11px; }
.mockup .portal .p-footer { padding: 0.9rem 0 0.75rem; text-align: center; font-size: 0.907em; color: var(--p-muted); }

/* Standalone pages: sign-in, the code, the accounts. */
.mockup .portal .p-panel { max-width: 23.5rem; margin: 0.9rem auto 0; padding: 1.25rem; background: var(--p-card); border-radius: 13px; box-shadow: 0 1px 2px rgba(11,19,32,0.04); }
.mockup .portal .p-h1 { margin: 0 0 0.4em; font-family: "Poppins", system-ui, sans-serif; font-size: 1.44em; font-weight: 600; line-height: 1.2; color: var(--p-ink); }
.mockup .portal .p-h2 { margin: 1.3em 0 0.45em; font-family: "Poppins", system-ui, sans-serif; font-size: 1.12em; font-weight: 600; line-height: 1.2; color: var(--p-ink); }
.mockup .portal .p-p { margin: 0.85em 0; }
.mockup .portal .p-label { display: block; margin: 0.85em 0 0.2em; font-weight: 600; color: var(--p-ink); }
.mockup .portal .p-input { display: block; width: 100%; min-height: 2.6em; padding: 0.5em; border: 1px solid var(--p-border); border-radius: 7px; background: var(--p-card); color: var(--p-ink); overflow-wrap: anywhere; }
.mockup .portal .p-input.p-select { position: relative; padding-right: 1.6em; }
.mockup .portal .p-input.p-select::after { content: ""; position: absolute; right: 0.6em; top: 50%; width: 0.4em; height: 0.4em; margin-top: -0.32em; border-right: 1.5px solid var(--p-ink); border-bottom: 1.5px solid var(--p-ink); transform: rotate(45deg); }
.mockup .portal .p-button { display: inline-block; margin-top: 0.85em; padding: 0.5em 1em; border: 1px solid transparent; border-radius: 999px; background: var(--p-teal); color: var(--p-on-teal); font-weight: 600; white-space: nowrap; }
.mockup .portal .p-button.p-secondary { background: transparent; color: var(--p-ink); border-color: var(--p-border); }
.mockup .portal .p-button.p-little { padding: 0.2em 0.65em; font-size: 0.853em; }
.mockup .portal .p-account-list { margin-top: 0.85em; }
.mockup .portal .p-account-row { display: flex; align-items: center; gap: 11px; padding: 10px 0; color: var(--p-ink); }
.mockup .portal .p-account-row + .p-account-row { border-top: 1px solid var(--p-line); }
.mockup .portal .p-account-row b { display: block; }

/* An account page: the icon rail beside the customer's banner and the page's cards. */
.mockup .portal .p-account { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 11px; }
.mockup .portal .p-rail { align-self: start; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; background: var(--p-card); border-radius: 13px; }
.mockup .portal .p-rail-link { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--p-muted); }
.mockup .portal .p-rail-link.p-on { background: var(--p-ink); color: #ffffff; }
.mockup .portal .p-rail-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mockup .portal .p-main { min-width: 0; }
.mockup .portal .p-banner { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 11px 13px; min-height: 122px; padding: 21px 18px 13px 21px; border-radius: 15px; background-color: var(--p-banner); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 150' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%237ad6cb' stop-opacity='0'/%3E%3Cstop offset='.5' stop-color='%237ad6cb'/%3E%3Cstop offset='1' stop-color='%230db5a0' stop-opacity='.35'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%230a8878' stop-opacity='0'/%3E%3Cstop offset='.6' stop-color='%230db5a0'/%3E%3Cstop offset='1' stop-color='%237ad6cb' stop-opacity='.4'/%3E%3C/linearGradient%3E%3Cfilter id='c'%3E%3CfeGaussianBlur stdDeviation='10'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M380 170 C 560 40, 760 190, 1210 -20' stroke='url(%23b)' stroke-width='70' fill='none' filter='url(%23c)' opacity='.75'/%3E%3Cpath d='M460 170 C 640 60, 820 150, 1210 10' stroke='url(%23a)' stroke-width='18' fill='none' opacity='.9'/%3E%3Cpath d='M520 170 C 700 80, 880 130, 1210 40' stroke='url(%23a)' stroke-width='5' fill='none' opacity='.7'/%3E%3Cpath d='M600 -10 C 760 90, 960 40, 1210 110' stroke='url(%23b)' stroke-width='26' fill='none' opacity='.5' filter='url(%23c)'/%3E%3C/svg%3E"), radial-gradient(90% 160% at 78% 30%, rgba(13,181,160,0.3) 0%, rgba(13,181,160,0) 60%); background-size: 100% 100%; background-repeat: no-repeat; }
.mockup .portal .p-client { flex: 1 1 14rem; display: flex; align-items: center; gap: 11px; min-width: 0; color: #ffffff; }
.mockup .portal .p-client-mark { flex: none; width: 45px; height: 45px; border-radius: 10px; background: #ffffff; display: grid; place-items: center; font-family: "Poppins", system-ui, sans-serif; font-size: 1.17em; font-weight: 700; color: #0b3b66; }
.mockup .portal .p-client-mark.p-small { width: 33px; height: 33px; border-radius: 8px; font-size: 0.907em; background: var(--p-canvas); }
.mockup .portal .p-client-text { min-width: 0; }
.mockup .portal .p-client-text b { display: block; font-family: "Poppins", system-ui, sans-serif; font-size: 1.6em; font-weight: 600; line-height: 1.15; overflow-wrap: anywhere; }
.mockup .portal .p-client-text span { font-size: 0.907em; color: #c9d1d9; }
.mockup .portal .p-switch { flex: none; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.14); color: #ffffff; font-size: 0.853em; }
.mockup .portal .p-tab-row { flex-basis: 100%; display: flex; justify-content: flex-end; }
.mockup .portal .p-tabs { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--p-card); box-shadow: 0 8px 20px -8px rgba(0,0,0,0.4); }
.mockup .portal .p-tabs span { padding: 6px 12px; border-radius: 999px; font-family: "Poppins", system-ui, sans-serif; font-size: 0.907em; font-weight: 500; color: var(--p-text); }
.mockup .portal .p-tabs .p-on { background: var(--p-canvas); color: var(--p-ink); font-weight: 600; }

/* Cards, and what the list pages share: the heading with Refresh now, the switch, the filters, the table. */
.mockup .portal .p-card { margin-top: 11px; padding: 15px 17px; background: var(--p-card); border-radius: 13px; box-shadow: 0 1px 2px rgba(11,19,32,0.04); }
.mockup .portal .p-sub { margin: 3px 0 0; font-size: 0.853em; color: var(--p-muted); }
.mockup .portal .p-card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mockup .portal .p-card-head .p-h1 { margin: 0; }
.mockup .portal .p-card-head .p-button, .mockup .portal .p-filters .p-button, .mockup .portal .p-pack-row .p-button, .mockup .portal .p-doc-actions .p-button, .mockup .portal .p-order-cell .p-button { margin-top: 0; }
.mockup .portal .p-seg { display: inline-flex; margin-top: 11px; padding: 3px; border-radius: 999px; background: var(--p-canvas); font-size: 0.853em; font-weight: 500; }
.mockup .portal .p-seg span { padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.mockup .portal .p-seg .p-on { background: var(--p-card); color: var(--p-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.mockup .portal .p-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 11px; margin: 11px 0 5px; }
.mockup .portal .p-field { flex: 1 1 7.5rem; min-width: 0; }
.mockup .portal .p-field .p-label { margin-top: 0; font-size: 0.853em; }
.mockup .portal .p-muted { display: block; font-size: 0.853em; font-weight: 400; color: var(--p-muted); }
.mockup .portal .p-muted-inline { font-size: 0.853em; color: var(--p-muted); }
.mockup .portal .p-table { margin-top: 8px; font-size: 0.93em; }
.mockup .portal .p-tr { display: grid; grid-template-columns: var(--cols); align-items: center; border-bottom: 1px solid var(--p-line); }
.mockup .portal .p-tr > span { min-width: 0; padding: 0.45em 0.38em; }
.mockup .portal .p-tr.p-head > span { font-size: 0.853em; font-weight: 600; color: var(--p-muted); }
.mockup .portal .p-tr .p-link { font-weight: 600; white-space: nowrap; }
.mockup .portal .p-tr .p-file { font-size: 0.95em; font-weight: 400; white-space: normal; overflow-wrap: anywhere; }
.mockup .portal .p-tr .p-amount { text-align: right; white-space: nowrap; }
.mockup .portal .p-status { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.853em; font-weight: 600; white-space: nowrap; }
.mockup .portal .p-status.p-on-hire, .mockup .portal .p-status.p-valid, .mockup .portal .p-status.p-open, .mockup .portal .p-status.p-next { background: #e3f6f0; color: #0d5c46; }
.mockup .portal .p-status.p-returned, .mockup .portal .p-status.p-renewed { background: var(--p-canvas); color: var(--p-muted); }
.mockup .portal .p-status.p-running-out { background: #fff3d6; color: #7a4d00; }
.mockup .portal .p-status.p-next { margin-left: 5px; }
.mockup .portal .p-pack-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 11px; margin: 4px 0 10px; }
.mockup .portal .p-pack-row .p-sub { margin: 0; }
.mockup .portal .p-pack-row .p-button, .mockup .portal .p-doc-actions .p-button { padding: 0.45em 0.9em; }
.mockup .portal .p-order-cell { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; }

/* A unit's page and a document's page: the way back, the facts, the buttons under them. */
.mockup .portal .p-back { margin: 0 0 7px; font-size: 0.907em; }
.mockup .portal .p-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 10px 17px; margin: 13px 0 0; }
.mockup .portal .p-facts dt { font-size: 0.853em; color: var(--p-muted); }
.mockup .portal .p-facts dd { font-weight: 600; color: var(--p-ink); overflow-wrap: anywhere; }
.mockup .portal .p-facts .p-address span { display: block; }
.mockup .portal .p-doc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 11px; margin: 13px 0 0; }
.mockup .portal .p-button-link { display: inline-block; padding: 0.45em 0.9em; border: 1px solid var(--p-border); border-radius: 999px; color: var(--p-ink); font-weight: 600; }
.mockup .portal .p-button-link.p-primary { border-color: var(--p-teal); background: var(--p-teal); color: var(--p-on-teal); }

/* The Overview: the hire horizon over the side cards. Across, the chart's marks are placed in percent of the lane, as the
   portal places them; up and down, in the portal's own pixels. */
.mockup .portal .p-horizon-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 11px; margin: 8px 0 7px; }
.mockup .portal .p-horizon-tools .p-seg { margin-top: 0; }
.mockup .portal .p-horizon svg { display: block; overflow: visible; }
.mockup .portal .p-horizon-axis, .mockup .portal .p-group-head, .mockup .portal .p-unit-row, .mockup .portal .p-billing-lane { display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.mockup .portal .p-lane-label { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding-right: 8px; }
.mockup .portal .p-lane-label b { font-size: 0.907em; color: var(--p-ink); overflow-wrap: anywhere; }
.mockup .portal .p-axis text { font-size: 10px; fill: var(--p-muted); }
.mockup .portal .p-axis .p-today-label { font-weight: 600; fill: var(--p-ink); }
.mockup .portal .p-billing-lane, .mockup .portal .p-group { border-bottom: 1px solid var(--p-line); }
.mockup .portal .p-group-head .p-lane-label b::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 8px 2px 0; border-right: 2px solid var(--p-muted); border-bottom: 2px solid var(--p-muted); transform: rotate(45deg); }
.mockup .portal .p-band, .mockup .portal .p-unit-lane, .mockup .portal .p-billing-band { background-image: repeating-linear-gradient(to right, #f1f2f4 0 1px, transparent 1px calc(100% / 12)); }
.mockup .portal .p-band-fill { fill: rgba(13,181,160,0.2); }
.mockup .portal .p-band-edge { stroke: var(--p-ink); stroke-width: 2; }
.mockup .portal .p-band-ahead { stroke: var(--p-ink); stroke-width: 1.6; stroke-dasharray: 5 5; opacity: 0.5; }
.mockup .portal .p-today-line { stroke: var(--p-ink); stroke-width: 2; }
.mockup .portal .p-unit-row { background: #fafbfc; border-top: 1px solid var(--p-line); }
.mockup .portal .p-unit-row .p-lane-label { padding-left: 15px; }
.mockup .portal .p-unit-row .p-lane-label .p-link { font-size: 0.907em; font-weight: 600; overflow-wrap: anywhere; }
.mockup .portal .p-bar { fill: var(--p-ink); }
.mockup .portal .p-cert-note { display: block; font-size: 0.8em; font-weight: 600; }
.mockup .portal .p-cert-note.p-running-out { color: #7a4d00; }
.mockup .portal .p-cert-note.p-renewed { color: var(--p-muted); font-weight: 500; }
.mockup .portal .p-cert-mark { stroke: #ffffff; stroke-width: 1.5; }
.mockup .portal .p-cert-mark.p-running-out { fill: #e0a100; }
.mockup .portal .p-cert-line { stroke-width: 5; }
.mockup .portal .p-cert-line.p-valid { stroke: #2e9e6a; }
.mockup .portal .p-cert-line.p-renewed { stroke: #bfe3c8; }
.mockup .portal .p-cert-line.p-running-out { stroke: #e0a100; }
.mockup .portal .p-cert-line.p-lapsed { stroke: #c53a2e; stroke-dasharray: 6 4; }
.mockup .portal .p-invoice-dot { fill: var(--p-ink); stroke: #ffffff; stroke-width: 1.5; }
.mockup .portal .p-invoice-label { font-size: 10px; fill: var(--p-ink); }
.mockup .portal .p-next-block { fill: #e7f8f6; stroke: #92ded4; stroke-width: 1.5; }
.mockup .portal .p-next-text { font-size: 10px; fill: var(--p-text); }
.mockup .portal .p-next-text.p-amount { font-size: 12.5px; font-weight: 700; fill: var(--p-ink); }
.mockup .portal .p-side-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0 11px; align-items: start; }
.mockup .portal .p-side .p-h2 { margin: 0; }
.mockup .portal .p-items { margin: 9px 0 0; }
.mockup .portal .p-item { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-top: 1px solid var(--p-line); }
.mockup .portal .p-item:first-child { border-top: 0; }
.mockup .portal .p-item b { display: block; font-size: 0.907em; color: var(--p-ink); white-space: nowrap; }
.mockup .portal .p-item .p-sub { display: block; margin: 0; }
.mockup .portal .p-doc-mark { flex: none; width: 28px; height: 33px; border-radius: 5px; background: #eef1f5; color: #56606b; display: grid; place-items: center; }
.mockup .portal .p-doc-mark svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mockup .portal .p-when { margin-left: auto; font-size: 0.853em; font-weight: 600; white-space: nowrap; }
.mockup .portal .p-when.p-running-out { color: #7a4d00; }
.mockup .portal .p-card-link { margin: 8px 0 0; font-size: 0.907em; font-weight: 600; }

/* Billing: the balance beside what is next to be invoiced. */
.mockup .portal .p-billing-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin-top: 11px; }
.mockup .portal .p-billing-summary .p-h2, .mockup .portal .p-billing-card > .p-h2 { margin: 0; font-size: 1.067em; }
.mockup .portal .p-money { margin: 6px 0 0; font-family: "Poppins", system-ui, sans-serif; font-size: 1.6em; font-weight: 600; line-height: 1.4; color: var(--p-ink); }
