/* Axis Puls — B2B Hospital & Metron Demo Request + Printable Proposal One-Pager
   CSP-safe, RTL-first, zero-CLS, dark/light theme aware, print-friendly. */
.ap-b2b-box {
  margin: 28px 0 32px;
  padding: 24px 22px;
  border-radius: 20px;
  background: var(--art-card-bg, rgba(15, 23, 42, 0.72));
  border: 1.5px solid var(--art-primary, #a56eff);
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.24);
  direction: rtl;
  text-align: right;
}
[data-theme="light"] .ap-b2b-box {
  background: #ffffff;
  border-color: rgba(109, 40, 217, 0.38);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}
.ap-b2b-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--art-secondary, #38bdf8);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.34);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
[data-theme="light"] .ap-b2b-badge {
  color: #0369a1;
  background: rgba(2, 132, 199, 0.09);
  border-color: rgba(2, 132, 199, 0.28);
}
.ap-b2b-title {
  margin: 0 0 8px;
  font-size: 1.26rem;
  font-weight: 900;
  color: var(--art-heading, #fff);
  line-height: 1.45;
}
.ap-b2b-sub {
  margin: 0 0 18px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--art-text-muted, #cbd5e1);
}
.ap-b2b-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin-bottom: 14px;
}
.ap-b2b-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ap-b2b-field-full {
  grid-column: 1 / -1;
}
.ap-b2b-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--art-heading, #fff);
}
.ap-b2b-input,
.ap-b2b-select,
.ap-b2b-textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--art-card-border, rgba(255, 255, 255, 0.18));
  background: var(--art-bg, #061824);
  color: var(--art-heading, #fff);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
}
.ap-b2b-textarea {
  min-height: 82px;
  resize: vertical;
  line-height: 1.75;
}
[data-theme="light"] .ap-b2b-input,
[data-theme="light"] .ap-b2b-select,
[data-theme="light"] .ap-b2b-textarea {
  background: #f8fafc;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.2);
}
.ap-b2b-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}
.ap-b2b-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #6d28d9, #4c1d95);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(109, 40, 217, 0.35);
}
.ap-b2b-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.ap-b2b-print-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.42);
  background: rgba(56, 189, 248, 0.12);
  color: var(--art-secondary, #38bdf8);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}
[data-theme="light"] .ap-b2b-print-btn {
  color: #0369a1;
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.34);
}
.ap-b2b-status {
  margin-top: 12px;
  min-height: 22px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.7;
  border-radius: 10px;
}
.ap-b2b-status.is-ok {
  padding: 11px 14px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.42);
  color: #34d399;
}
[data-theme="light"] .ap-b2b-status.is-ok {
  color: #047857;
  background: #ecfdf5;
  border-color: #6ee7b7;
}
.ap-b2b-status.is-err {
  padding: 11px 14px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fb7185;
}
[data-theme="light"] .ap-b2b-status.is-err {
  color: #be123c;
  background: #fff1f2;
  border-color: #fda4af;
}
.ap-b2b-note {
  margin: 10px 0 0;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--art-text-muted, #cbd5e1);
}
.ap-b2b-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}
.ap-b2b-proposal {
  margin: 22px 0 0;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: var(--art-hover-bg, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--art-card-border, rgba(255, 255, 255, 0.14));
}
[data-theme="light"] .ap-b2b-proposal {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.14);
}
.ap-b2b-proposal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.ap-b2b-proposal-head h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--art-heading, #fff);
}
.ap-b2b-proposal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--art-text-muted, #cbd5e1);
}
.ap-b2b-proposal-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--art-card-bg, rgba(6, 24, 36, 0.45));
  border: 1px solid var(--art-card-border, rgba(255, 255, 255, 0.1));
}
[data-theme="light"] .ap-b2b-proposal-item {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  color: #334155;
}
.ap-b2b-proposal-item strong {
  display: block;
  color: var(--art-heading, #fff);
  margin-bottom: 4px;
}
[data-theme="light"] .ap-b2b-proposal-item strong {
  color: #0f172a;
}
.ap-b2b-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: 0;
}
@media (max-width: 640px) {
  .ap-b2b-box {
    padding: 18px 14px;
  }
  .ap-b2b-grid,
  .ap-b2b-proposal-grid {
    grid-template-columns: 1fr;
  }
  .ap-b2b-submit,
  .ap-b2b-print-btn {
    width: 100%;
  }
}
@media print {
  .article-nav,
  .breadcrumb-nav,
  .toc-sticky,
  .ap-sim-top-invite,
  .ap-sim-widget,
  .faq-section,
  .related-articles-section,
  .article-footer,
  .ap-b2b-form,
  .ap-b2b-print-btn,
  .ambient,
  .hub-drawer,
  .hub-overlay {
    display: none !important;
  }
  .ap-b2b-box,
  .ap-b2b-proposal {
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  .ap-b2b-proposal-item,
  .ap-b2b-proposal-item strong,
  .ap-b2b-title,
  .ap-b2b-proposal-head h3 {
    color: #0f172a !important;
    background: #ffffff !important;
  }
}
