/* Extracted module styles: Units */

.brand span, .eyebrow, .field-label, .project-meta, .pane-title span, .selected-unit, .stat-tile span {
  color: var(--muted);
  font-size: 13px;
}

.selected-unit {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}

.unit-list-pane, .detail-pane {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 0;
  box-shadow: var(--shadow);
}

.unit-row {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  text-align: left;
}

.unit-row:hover {
  background: var(--soft);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}

.unit-row.active {
  background: #edf7f1;
  border-color: rgba(45, 139, 104, 0.28);
}

.unit-row strong, .unit-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unit-row span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.detail-pane {
  overflow: auto;
  position: relative;
}

.unit-primary-member-dialog {
  width: min(560px, calc(100vw - 32px));
  border: 0;
  padding: 0;
  background: transparent;
}

.unit-primary-member-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.unit-primary-member-dialog .unit-primary-member-dialog-card {
  width: 100%;
  max-width: 100%;
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.partner-detail-panel {
  display: grid;
  gap: 14px;
  padding: 10px 16px 18px;
}
.user-mgmt-approval-detail-panel {
  border: 1px solid #d9e2ef;
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  display: grid;
  gap: 14px;
  max-height: 560px;
  overflow: auto;
}

/* Global White + Navy + Gold theme overrides */
.sidebar,
.developer-manage-shell .developer-list-panel,
.developer-manage-shell .developer-editor-panel,
.unit-list-pane,
.detail-pane,
.top-summary-strip,
.workspace-card,
.summary-box,
.overview-card,
.partners-section-card,
.documents-shell-card,
.dialog-shell,
.modal-panel,
.panel-card,
.kpi-card,
.profile-card,
.partner-summary-card,
.partner-history-card,
.table-card {
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.booking-selected-unit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.booking-selected-unit-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #d7e2ef;
  border-radius: 999px;
  background: #f8fbff;
  color: #17325c;
  font: inherit;
  cursor: pointer;
}

.booking-selected-unit-chip strong {
  font-size: 14px;
  line-height: 1;
}

.booking-review-unit-row,
.booking-review-unit-detail {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid #e4ebf5;
  border-radius: 14px;
  background: #fff;
}

body.unit-one-page-report-active {
  background: #eef3f9;
  overflow: auto;
}

html.unit-one-page-report-route body {
  background: #eef3f9;
}

html.unit-one-page-report-route .portal-shell {
  display: none !important;
}

html.unit-one-page-report-route body::before {
  content: "Loading Unit Report...";
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  color: #142d55;
  font-size: 18px;
  font-weight: 700;
  background: #eef3f9;
  z-index: 9999;
}

body.unit-one-page-report-active::before {
  display: none;
}

body.unit-one-page-report-active .portal-shell {
  display: none !important;
}

.unit-one-page-report-standalone-host {
  min-height: 100vh;
  width: 100%;
  padding: 24px;
  box-sizing: border-box;
}

.unit-report-loading-screen {
  min-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
}

.unit-report-inline-error {
  margin-left: 12px;
  align-self: center;
  color: #b42318;
  font-size: 12px;
  font-weight: 600;
}

.unit-report-loading-card {
  width: min(420px, 92vw);
  padding: 26px;
  border: 1px solid #dbe6f2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(19, 43, 77, 0.08);
  text-align: center;
  color: #183153;
}

.unit-report-loading-card h1 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #142d55;
}

.unit-report-loading-card p {
  margin: 0;
  color: #60748f;
}

#main-inventory.unit-one-page-report-host {
  width: 100%;
  max-width: 100%;
  padding: 24px;
  margin: 0;
}

#main-inventory.unit-one-page-report-host > :not(#unitOnePageReportRoot) {
  display: none !important;
}

.unit-report-standalone-page {
  width: 100%;
  max-width: calc(794px + 32px);
  margin: 0 auto;
}

.unit-one-page-report-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.report-action-bar {
  width: min(210mm, calc(100vw - 48px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 16px;
  z-index: 20;
}

.report-action-bar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.unit-one-page-report-sheet {
  width: 794px;
  max-width: 794px;
  min-height: 1123px;
  background: #fff;
  border: 1px solid #dbe6f2;
  border-radius: 22px;
  box-shadow: 0 18px 52px rgba(19, 43, 77, 0.08);
  box-sizing: border-box;
  padding: 38px;
  color: #183153;
  overflow: visible;
  position: relative;
}

.unit-report-header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.95fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid #e3ebf5;
}

.unit-report-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.unit-report-brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f2d39a 0%, #e0b05c 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.08em;
}

.unit-report-brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  border: 1px solid #dfe7f2;
  background: #ffffff;
  object-fit: contain;
  padding: 6px;
  flex-shrink: 0;
}

.unit-report-brand h1,
.unit-report-title h2 {
  margin: 0;
}

.unit-report-brand h1 {
  font-size: 19px;
  color: #142d55;
}

.unit-report-brand p,
.unit-report-title p {
  margin: 4px 0 0;
  color: #60748f;
}

.unit-report-title {
  text-align: center;
}

.unit-report-title h2 {
  font-size: 26px;
  color: #183a74;
  letter-spacing: 0.08em;
}

.unit-report-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.unit-report-meta div {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 13px;
}

.unit-report-meta span {
  color: #60748f;
  min-width: 86px;
}

.unit-report-meta strong {
  color: #142d55;
}

.unit-report-top-card,
.unit-report-section {
  margin-top: 16px;
  border: 1px solid #e3ebf5;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  break-inside: avoid;
  page-break-inside: avoid;
}

.unit-report-top-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.7fr 1.05fr 1fr 0.9fr;
  gap: 0;
}

.unit-report-top-grid > div {
  padding: 16px 18px;
  border-right: 1px solid #e8eef6;
}

.unit-report-top-grid > div:last-child {
  border-right: 0;
}

.unit-report-top-meta,
.unit-report-top-booking {
  display: grid;
  gap: 12px;
}

.unit-report-top-meta div,
.unit-report-top-booking div,
.unit-report-top-customer {
  display: grid;
  gap: 4px;
}

.unit-report-top-meta span,
.unit-report-top-booking span,
.unit-report-top-customer span,
.unit-report-keyval-list span,
.unit-report-breakup-list span {
  color: #60748f;
  font-size: 12px;
}

.unit-report-top-meta strong,
.unit-report-top-booking strong,
.unit-report-top-customer strong,
.unit-report-keyval-list strong,
.unit-report-breakup-list strong {
  color: #142d55;
}

.unit-report-top-customer small {
  color: #4f6481;
  font-size: 12px;
}

.unit-report-top-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  justify-content: center;
}

.unit-report-top-actions {
  display: grid;
  gap: 10px;
  align-content: center;
}

.unit-report-top-actions .dark-btn,
.unit-report-top-actions .dark-btn.secondary {
  width: 100%;
  justify-content: center;
}

.unit-report-top-actions .dark-btn.secondary {
  background: #203b6b;
}

.unit-report-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 16px;
}

.unit-report-section-title {
  background: #f4f7fb;
  border-bottom: 1px solid #e3ebf5;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 800;
  color: #183a74;
  letter-spacing: 0.03em;
}

.unit-report-section-title small {
  color: #60748f;
  font-size: 11px;
}

.unit-report-member-card,
.unit-report-booking-grid,
.unit-report-financial-grid,
.unit-report-table-wrap,
.unit-report-notes,
.unit-report-payment-summary-card {
  padding: 16px;
}

.unit-report-exporting .unit-report-header {
  gap: 14px;
  padding-bottom: 12px;
}

.unit-report-exporting .unit-report-top-grid > div {
  padding: 12px 14px;
}

.unit-report-exporting .unit-report-section {
  margin-top: 12px;
}

.unit-report-exporting .unit-report-section-title {
  padding: 10px 14px;
  font-size: 12px;
}

.unit-report-exporting .unit-report-member-card,
.unit-report-exporting .unit-report-booking-grid,
.unit-report-exporting .unit-report-financial-grid,
.unit-report-exporting .unit-report-table-wrap,
.unit-report-exporting .unit-report-notes,
.unit-report-exporting .unit-report-payment-summary-card {
  padding: 12px;
}

.unit-report-exporting .unit-report-subtable-wrap {
  padding-top: 10px;
}

.unit-report-exporting .unit-report-two-col,
.unit-report-exporting .unit-report-booking-grid,
.unit-report-exporting .unit-report-financial-grid {
  gap: 12px;
}

.unit-report-exporting .unit-report-keyval-list {
  gap: 8px 14px;
}

.unit-report-exporting .unit-report-financial-kpis {
  gap: 8px;
  padding: 12px 12px 0;
}

.unit-report-exporting .unit-report-financial-kpis article {
  padding: 10px 12px;
}

.unit-report-exporting .unit-report-financial-kpis strong {
  font-size: 19px;
}

.unit-report-exporting .unit-report-breakup-list {
  gap: 8px;
}

.unit-report-exporting .unit-report-subtable th,
.unit-report-exporting .unit-report-subtable td,
.unit-report-exporting .unit-report-table th,
.unit-report-exporting .unit-report-table td {
  padding: 7px 8px;
  font-size: 11px;
}

.unit-report-exporting .unit-report-notes p {
  margin: 0 0 4px;
  font-size: 12px;
}

.unit-report-exporting .unit-report-footer {
  margin-top: 12px;
  padding-top: 10px;
  font-size: 11px;
}

.unit-report-pdf-capture-host {
  position: fixed;
  left: -100000px;
  top: 0;
  width: 794px;
  padding: 0;
  margin: 0;
  background: #ffffff;
  z-index: -1;
  pointer-events: none;
  overflow: visible !important;
}

.pdf-export-mode .unit-report-header {
  gap: 14px;
  padding-bottom: 12px;
}

.pdf-export-mode .unit-report-top-card,
.pdf-export-mode .unit-report-section {
  margin-top: 12px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.pdf-export-mode .unit-report-top-grid > div {
  padding: 12px 14px;
}

.pdf-export-mode .unit-report-section-title {
  padding: 10px 14px;
  font-size: 12px;
}

.pdf-export-mode .unit-report-member-card,
.pdf-export-mode .unit-report-booking-grid,
.pdf-export-mode .unit-report-financial-grid,
.pdf-export-mode .unit-report-table-wrap,
.pdf-export-mode .unit-report-notes,
.pdf-export-mode .unit-report-payment-summary-card {
  padding: 12px;
}

.pdf-export-mode .unit-report-subtable-wrap {
  padding-top: 10px;
}

.pdf-export-mode .unit-report-two-col,
.pdf-export-mode .unit-report-booking-grid,
.pdf-export-mode .unit-report-financial-grid {
  gap: 12px;
}

.pdf-export-mode .unit-report-keyval-list {
  gap: 8px 14px;
}

.pdf-export-mode .unit-report-financial-kpis {
  gap: 8px;
  padding: 12px 12px 0;
}

.pdf-export-mode .unit-report-financial-kpis article {
  padding: 10px 12px;
}

.pdf-export-mode .unit-report-financial-kpis strong {
  font-size: 19px;
}

.pdf-export-mode .unit-report-breakup-list {
  gap: 8px;
}

.pdf-export-mode .unit-report-subtable th,
.pdf-export-mode .unit-report-subtable td,
.pdf-export-mode .unit-report-table th,
.pdf-export-mode .unit-report-table td {
  padding: 7px 8px;
  font-size: 11px;
}

.pdf-export-mode .unit-report-notes p {
  margin: 0 0 4px;
  font-size: 12px;
}

.pdf-export-mode .unit-report-footer {
  margin-top: 12px;
  padding-top: 10px;
  font-size: 11px;
}

.unit-report-member-main {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.unit-report-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #d9e7ff;
  color: #183a74;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.unit-report-member-copy,
.unit-report-member-lines {
  display: grid;
  gap: 6px;
}

.unit-report-member-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.unit-report-subtable-wrap {
  border-top: 1px solid #e3ebf5;
  padding-top: 12px;
}

.unit-report-subtable-wrap h4,
.unit-report-lifecycle h4,
.unit-report-breakup-card h4,
.unit-report-payment-summary-block h4 {
  margin: 0 0 10px;
  color: #183a74;
  font-size: 14px;
}

.unit-report-subtable,
.unit-report-table {
  width: 100%;
  border-collapse: collapse;
}

.unit-report-subtable th,
.unit-report-subtable td,
.unit-report-table th,
.unit-report-table td {
  border: 1px solid #e3ebf5;
  padding: 9px 10px;
  font-size: 12px;
  vertical-align: top;
}

.unit-report-subtable th,
.unit-report-table th {
  background: #f8fbff;
  color: #183a74;
  font-weight: 700;
}

.unit-report-booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
}

.unit-report-keyval-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.unit-report-keyval-list div {
  display: grid;
  gap: 4px;
}

.unit-report-lifecycle-steps {
  display: grid;
  gap: 12px;
}

.unit-report-lifecycle-step {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
}

.unit-report-lifecycle-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 34px;
  bottom: -12px;
  width: 2px;
  background: #d8e3f1;
}

.unit-report-lifecycle-marker {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #d8e3f1;
  color: #183a74;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.unit-report-lifecycle-step.done .unit-report-lifecycle-marker,
.unit-report-lifecycle-step.active .unit-report-lifecycle-marker {
  background: #16a34a;
  color: #fff;
}

.unit-report-lifecycle-copy {
  display: grid;
  gap: 4px;
}

.unit-report-lifecycle-copy strong {
  color: #142d55;
}

.unit-report-lifecycle-copy span,
.unit-report-lifecycle-copy small {
  color: #60748f;
}

.unit-report-financial-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 16px 0;
}

.unit-report-financial-kpis article {
  border: 1px solid #e3ebf5;
  border-radius: 14px;
  padding: 12px 14px;
  text-align: center;
}

.unit-report-financial-kpis span {
  display: block;
  color: #60748f;
  font-size: 12px;
  margin-bottom: 6px;
}

.unit-report-financial-kpis strong {
  font-size: 22px;
  color: #142d55;
}

.unit-report-financial-kpis .good,
.unit-report-breakup-list .good,
.unit-report-table .good {
  color: #15803d;
}

.unit-report-financial-kpis .bad,
.unit-report-breakup-list .bad {
  color: #dc2626;
}

.unit-report-financial-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
}

.unit-report-breakup-card,
.unit-report-payment-summary-card {
  border: 1px solid #e3ebf5;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.unit-report-payment-summary-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.unit-report-payment-summary-block + .unit-report-payment-summary-block {
  border-left: 1px solid #e3ebf5;
}

.unit-report-breakup-list {
  display: grid;
  gap: 10px;
}

.unit-report-breakup-list div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}

.unit-report-subtotal,
.unit-report-grand-total {
  border-top: 1px solid #e3ebf5;
  padding-top: 10px;
}

.unit-report-grand-total strong {
  color: #15803d;
}

.unit-report-table tfoot td {
  background: #fbfdff;
}

.unit-report-empty {
  text-align: center;
  color: #60748f;
}

.unit-report-notes p {
  margin: 0 0 6px;
  color: #4f6481;
  font-size: 13px;
}

.unit-report-notes p:last-child {
  margin-bottom: 0;
}

.unit-report-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e3ebf5;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #60748f;
  font-size: 12px;
}

@media (max-width: 1200px) {
  .unit-report-header,
  .unit-report-top-grid,
  .unit-report-two-col,
  .unit-report-booking-grid,
  .unit-report-financial-grid,
  .unit-report-payment-summary-card {
    grid-template-columns: 1fr;
  }

  .unit-report-top-grid > div,
  .unit-report-payment-summary-block + .unit-report-payment-summary-block {
    border-right: 0;
    border-left: 0;
    border-top: 1px solid #e8eef6;
  }

  .unit-report-top-grid > div:first-child {
    border-top: 0;
  }

  .unit-one-page-report-sheet {
    width: 100%;
    max-width: 100%;
    min-height: auto;
  }}

@media (max-width: 900px) {
  #main-inventory.unit-one-page-report-host {
    padding: 16px;
  }

  .report-action-bar,
  .report-action-bar-right,
  .unit-report-member-head,
  .unit-report-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .unit-report-keyval-list,
  .unit-report-financial-kpis,
  .unit-report-payment-summary-card {
    grid-template-columns: 1fr;
  }

  .unit-one-page-report-sheet {
    padding: 18px;
    border-radius: 18px;
  }}

@media print {
  body.unit-one-page-report-active {
    background: #fff !important;
  }

  .unit-one-page-report-standalone-host {
    padding: 0 !important;
    min-height: auto !important;
  }

  .unit-one-page-report-page {
    max-width: none;
    display: block;
  }

  .unit-report-standalone-page {
    max-width: none;
  }

  .unit-one-page-report-sheet,
  .unit-report-top-card,
  .unit-report-section {
    box-shadow: none !important;
    page-break-inside: avoid;
  }

  .unit-one-page-report-sheet {
    width: 794px !important;
    max-width: 794px !important;
    min-height: 1123px !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 38px !important;
    margin: 0 auto !important;
  }

  .unit-report-footer [data-unit-report-page-count] {
    visibility: hidden;
  }}

.unit-report-v2-preview-stack {
  width: min(100%, 210mm);
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  gap: 18px;
  padding: 8px 0 20px;
}

.unit-report-v2-measure-host {
  position: fixed;
  left: -100000px;
  top: 0;
  visibility: hidden;
  pointer-events: none;
  width: 210mm;
  z-index: -1;
}

.unit-report-v2-page {
  width: 210mm;
  max-width: 210mm;
}

.unit-report-v2-paper {
  width: 210mm;
  height: 297mm;
  min-height: 297mm;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #d6e2ef;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(25, 54, 90, 0.12);
  padding: 10mm;
  color: #1a3354;
  display: flex;
  flex-direction: column;
  gap: 4mm;
  overflow: hidden;
}

.unit-report-v2-page-header {
  display: flex;
  justify-content: space-between;
  gap: 4mm;
  background: linear-gradient(135deg, #0a2a59 0%, #082248 48%, #0b2d63 100%);
  color: #fff;
  border-radius: 4px;
  padding: 4mm 5mm;
  min-height: 17mm;
}

.unit-report-v2-header-left,
.unit-report-v2-header-right {
  display: flex;
  gap: 4mm;
  align-items: flex-start;
}

.unit-report-v2-header-left {
  flex: 1;
  min-width: 0;
  justify-content: space-between;
}

.unit-report-v2-project-badge {
  display: flex;
  gap: 3mm;
  align-items: center;
  min-width: 0;
}

.unit-report-v2-brand-mark,
.unit-report-v2-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 3px;
  background: #fff;
  color: #244f7c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.unit-report-v2-brand-logo {
  object-fit: contain;
  padding: 1.2mm;
}

.unit-report-v2-project-badge strong,
.unit-report-v2-center-copy strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

.unit-report-v2-project-badge small,
.unit-report-v2-center-copy small,
.unit-report-v2-center-copy span,
.unit-report-v2-header-right span,
.unit-report-v2-header-crumb {
  display: block;
  font-size: 10px;
  line-height: 1.25;
  opacity: 0.96;
}

.unit-report-v2-center-copy {
  text-align: center;
  min-width: 38mm;
}

.unit-report-v2-center-copy span {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.unit-report-v2-header-right {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2mm 4mm;
  max-width: 54mm;
  text-align: right;
}

.unit-report-v2-header-right strong {
  font-weight: 700;
}

.unit-report-v2-page-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2.2mm;
  min-height: 0;
  overflow: hidden;
}

.unit-report-v2-page-body > * {
  flex: 0 0 auto;
  min-height: 0;
}

.unit-report-v2-continued-note {
  border: 1px dashed #b8cae0;
  border-radius: 4px;
  padding: 1.2mm 2mm;
  color: #516b8d;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f7fbff;
}

.unit-report-v2-card {
  border: 1px solid #d8e4f0;
  border-radius: 4px;
  background: #fff;
  padding: 2.4mm 2.8mm;
  box-sizing: border-box;
  break-inside: avoid;
  page-break-inside: avoid;
  flex-shrink: 0;
}

.unit-report-v2-card--mint {
  background: #f4fbf8;
  border-color: #bfe4d3;
}

.unit-report-v2-card--blue {
  background: #f6faff;
  border-color: #c8daf3;
}

.unit-report-v2-total-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2mm;
  background: #f8fbff;
}

.unit-report-v2-total-strip div {
  display: grid;
  gap: 1mm;
  font-size: 11px;
}

.unit-report-v2-total-strip strong {
  font-size: 13px;
}

.unit-report-v2-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3mm;
  margin-bottom: 1.4mm;
}

.unit-report-v2-section-head h3 {
  margin: 0;
  color: #1d4e80;
  font-size: 14px;
  line-height: 1.25;
}

.unit-report-v2-section-head span {
  color: #587294;
  font-size: 10px;
}

.unit-report-v2-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.4mm;
}

.unit-report-v2-summary-grid article + article {
  border-left: 1px solid #dfebf5;
  padding-left: 2.4mm;
}

.unit-report-v2-summary-grid h3 {
  margin: 0 0 2mm;
  color: #1d4e80;
  font-size: 13px;
}

.unit-report-v2-summary-grid dl,
.unit-report-v2-date-list {
  margin: 0;
  display: grid;
  gap: 1.4mm;
}

.unit-report-v2-summary-grid dl div,
.unit-report-v2-date-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3mm;
  align-items: baseline;
}

.unit-report-v2-summary-grid dt,
.unit-report-v2-date-list dt,
.unit-report-v2-customer-head + p,
.unit-report-v2-summary-grid p {
  color: #5c7290;
  font-size: 10.6px;
  line-height: 1.3;
}

.unit-report-v2-summary-grid dd,
.unit-report-v2-date-list dd {
  margin: 0;
  color: #18365a;
  font-size: 11.2px;
  line-height: 1.3;
  font-weight: 600;
}

.unit-report-v2-customer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2mm;
  margin-bottom: 2mm;
}

.unit-report-v2-customer-head strong {
  font-size: 13px;
}

.unit-report-v2-summary-grid p {
  margin: 0 0 1mm;
}

.unit-report-v2-inline-badges,
.unit-report-v2-member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 2mm;
}

.unit-report-v2-soft-badge,
.unit-report-v2-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 1.5mm;
  min-height: 6mm;
  padding: 0.8mm 2mm;
  border-radius: 999px;
  border: 1px solid #d8e4f0;
  background: #ffffff;
  font-size: 10px;
  color: #1d4e80;
}

.unit-report-v2-soft-badge.is-success {
  background: #eef9f1;
  border-color: #bfdfc6;
  color: #1c7b45;
}

.unit-report-v2-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.4mm;
}

.unit-report-v2-kpi-grid article,
.unit-report-v2-other-kpi {
  border: 1px solid rgba(140, 176, 210, 0.35);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 3px;
  padding: 1.9mm;
  display: grid;
  gap: 0.8mm;
  text-align: center;
}

.unit-report-v2-kpi-grid span,
.unit-report-v2-other-kpi span,
.unit-report-v2-breakup-list span,
.unit-report-v2-table-summary span,
.unit-report-v2-total-strip span,
.unit-report-v2-foot-note,
.unit-report-v2-table-note {
  color: #5c7290;
  font-size: 10px;
  line-height: 1.25;
}

.unit-report-v2-kpi-grid strong,
.unit-report-v2-other-kpi strong {
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.unit-report-v2-kpi-grid .good,
.unit-report-v2-other-kpi .good,
.unit-report-v2-table-summary .good {
  color: #0f8a4b;
}

.unit-report-v2-kpi-grid .bad,
.unit-report-v2-other-kpi .bad,
.unit-report-v2-table-summary .bad {
  color: #d74a2f;
}

.unit-report-v2-progress {
  margin-top: 1.6mm;
  display: grid;
  gap: 0.8mm;
}

.unit-report-v2-progress-track {
  width: 100%;
  height: 4mm;
  border-radius: 999px;
  background: #d6eadf;
  overflow: hidden;
}

.unit-report-v2-progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1b8d56 0%, #22a667 100%);
  border-radius: inherit;
}

.unit-report-v2-other-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) repeat(3, minmax(0, 0.85fr));
  gap: 1.4mm;
}

.unit-report-v2-breakup-list h4 {
  margin: 0 0 1.2mm;
  font-size: 10.6px;
  color: #1d4e80;
}

.unit-report-v2-breakup-list div {
  display: flex;
  justify-content: space-between;
  gap: 3mm;
  padding: 0.25mm 0;
  align-items: baseline;
}

.unit-report-v2-breakup-list div strong,
.unit-report-v2-total-strip strong,
.unit-report-v2-table-summary strong {
  white-space: nowrap;
}

.unit-report-v2-summary-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2mm;
}

.unit-report-v2-dates-card {
  grid-column: 1 / -1;
}

.unit-report-v2-members-card {
  grid-column: 1 / -1;
}

.unit-report-v2-dates-card .unit-report-v2-date-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 6mm;
  row-gap: 1.8mm;
}

.unit-report-v2-journey-list {
  display: grid;
  gap: 1.8mm;
}

.unit-report-v2-journey-step {
  display: grid;
  grid-template-columns: 6mm minmax(0, 1fr);
  gap: 2mm;
  align-items: center;
}

.unit-report-v2-step-index {
  width: 6mm;
  height: 6mm;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #879ab3;
}

.unit-report-v2-journey-step.done .unit-report-v2-step-index {
  background: #1f9b57;
}

.unit-report-v2-journey-step.active .unit-report-v2-step-index {
  background: #f09a18;
}

.unit-report-v2-journey-step strong {
  display: block;
  font-size: 10.8px;
  color: #18365a;
}

.unit-report-v2-journey-step small {
  display: block;
  color: #61758f;
  font-size: 10px;
}

.unit-report-v2-foot-note {
  margin-top: 1.2mm;
}

.unit-report-v2-member-chip {
  border-radius: 3px;
  padding: 1.4mm 2mm;
  min-height: 7mm;
}

.unit-report-v2-member-chip small,
.unit-report-v2-member-chip strong {
  display: block;
}

.unit-report-v2-member-chip strong {
  font-size: 10.8px;
}

.unit-report-v2-payments {
  padding: 0;
  overflow: hidden;
  flex-shrink: 0;
}

.unit-report-v2-payments--green {
  border-color: #b8dfc8;
}

.unit-report-v2-payments--orange {
  border-color: #f0c88a;
}

.unit-report-v2-payments .unit-report-v2-section-head {
  padding: 1.8mm 2.6mm 1.2mm;
  margin: 0;
}

.unit-report-v2-table-wrap {
  padding: 0 2.6mm 1.6mm;
}

.unit-report-v2-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.unit-report-v2-table th,
.unit-report-v2-table td {
  border: 1px solid #d8e4f0;
  padding: 1.15mm 1.7mm;
  font-size: 9.7px;
  line-height: 1.22;
  color: #18365a;
  vertical-align: top;
  word-break: break-word;
}

.unit-report-v2-table th {
  background: #f2f7fc;
  color: #244f7c;
  font-weight: 700;
}

.unit-report-v2-table th.is-right,
.unit-report-v2-table td.is-right {
  text-align: right;
}

.unit-report-v2-empty {
  text-align: center;
  color: #627791;
}

.unit-report-v2-table-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #d8e4f0;
  margin-top: 1mm;
}

.unit-report-v2-table-summary div {
  display: grid;
  gap: 1mm;
  padding: 1.8mm 2.4mm;
  text-align: center;
}

.unit-report-v2-table-summary div + div {
  border-left: 1px solid #d8e4f0;
}

.unit-report-v2-table-summary strong {
  font-size: 12.5px;
}

.unit-report-v2-table-note {
  padding: 1.4mm 2.4mm 2.2mm;
  border-top: 1px solid #d8e4f0;
}

.unit-report-v2-page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3mm;
  color: #5f7492;
  font-size: 10px;
  border-top: 1px solid #d8e4f0;
  padding-top: 2.2mm;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  body.unit-one-page-report-active,
  html.unit-one-page-report-route body {
    background: #ffffff !important;
  }

  .report-action-bar,
  .unit-report-v2-measure-host {
    display: none !important;
  }

  .unit-report-v2-preview-stack {
    display: block !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  .unit-report-v2-page {
    width: 210mm !important;
    max-width: 210mm !important;
    break-after: page;
    page-break-after: always;
  }

  .unit-report-v2-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .unit-report-v2-paper {
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
  }

  .unit-report-v2-card,
  .unit-report-v2-payments,
  .unit-report-v2-summary-bottom article,
  .unit-report-v2-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .unit-report-v2-table thead {
    display: table-header-group;
  }

  .unit-report-v2-page,
  .unit-report-v2-paper {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
