/* Structural rules shared by every layout template, regardless of preset.
   Preset files (preset-rapport.css / preset-memo.css) only add color/font
   skins on top of this skeleton via [data-preset="..."] on .page. */

.page__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.layout {
  position: absolute;
  inset: 0;
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.5;
}

/* Shared padding recipes — every non-full-bleed layout uses one of these two
   so the margin is identical page to page. "-footer" reserves a band at the
   bottom the same height as .page-footer/.memo__footer/.spec__footer, so
   flowing content can never run under it. */
.layout--padded { padding: var(--page-margin); }
.layout--padded-footer {
  padding: var(--page-margin) var(--page-margin) calc(var(--page-margin) + var(--page-footer-h) + 4mm);
}

[contenteditable="true"] { outline: none; }
[contenteditable="true"]:hover { background: rgba(40, 25, 255, .04); }
[contenteditable="true"]:focus { background: rgba(40, 25, 255, .07); }

/* ---- Generic image slot (click-to-upload target) ---- */
.img-slot { position: relative; cursor: pointer; overflow: hidden; }

/* Fill mode: image covers entire slot (like object-fit:cover) */
.img-slot--fill img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}
/* Fit mode: image is letterboxed inside the slot (like object-fit:contain) */
.img-slot--fit img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
/* Center mode: image at natural size, centred; pan offsets shift from center */
.img-slot--center img {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  max-width: none !important;
  max-height: none !important;
  width: auto !important;
  height: auto !important;
  will-change: transform;
}
.img-slot--empty {
  background: repeating-linear-gradient(45deg, #ececec, #ececec 10px, #f8f8f8 10px, #f8f8f8 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #8a8a8a;
  font-size: 11px;
  padding: 8px;
}

/* Every footer (.page-footer, .memo__footer, .spec__footer) is pinned to
   this exact same left/right/bottom offset, so it sits in the same spot on
   every page regardless of layout or how much content is above it. */
.page-footer {
  position: absolute;
  left: var(--page-margin); right: var(--page-margin); bottom: var(--page-margin);
  height: var(--page-footer-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--step-small);
  color: #64748b;
  border-top: 1px solid var(--moos-grey-line);
  padding-top: 2.5mm;
  pointer-events: none;
  z-index: 5;
}

.page-footer__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8.5pt;
  font-weight: 500;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-footer__doc {
  font-weight: 600;
  color: #334155;
}

.page-footer__code {
  color: #64748b;
}

.page-footer__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.page-footer__num {
  font-size: 8.5pt;
  font-weight: 600;
  color: #334155;
  font-variant-numeric: tabular-nums;
}

.page-footer__logo {
  height: 12px !important;
  width: auto !important;
  max-width: 48px !important;
  object-fit: contain !important;
  display: block !important;
  opacity: 0.9;
}

/* ---- Section divider (rapport + memo) ---- */
.layout-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section__number {
  font-size: var(--step-small);
  font-weight: 700;
  letter-spacing: .12em;
  margin-bottom: var(--space-3);
}
.section__title {
  font-family: var(--font-display);
  font-size: var(--step-cover-title);
  line-height: 1.1;
}

/* ---- 3 Title Styles (Consistent with Web Page Typography) ---- */

/* Default body__title base */
.body__title {
  font-family: var(--font-display);
  font-size: var(--step-h1);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

/* Style 1: Display / Hero Title (Large, classic brand display font) */
.title-style--1,
.body__title.title-style--1,
.page .body__title.title-style--1,
.table__title.title-style--1,
.page .table__title.title-style--1,
.slide-header__title.title-style--1 {
  font-family: var(--font-display);
  font-size: var(--step-h1);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-4);
  color: inherit;
  border: none;
  border-bottom: none;
  padding: 0;
  text-transform: none;
  letter-spacing: -0.01em;
}

/* Style 2: Structured / Modern Accent Bar (Underlined) */
.title-style--2,
.body__title.title-style--2,
.page .body__title.title-style--2,
.table__title.title-style--2,
.page .table__title.title-style--2,
.slide-header__title.title-style--2 {
  font-family: var(--font-body);
  font-size: calc(var(--step-h2) + 2px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--space-4);
  color: inherit;
  border: none;
  border-bottom: 2.5px solid var(--moos-blue);
  padding-bottom: 2.5mm;
  text-transform: none;
  letter-spacing: -0.015em;
  display: block;
  width: 100%;
}

/* Style 3: Minimalist / Architectural Caps */
.title-style--3,
.body__title.title-style--3,
.page .body__title.title-style--3,
.table__title.title-style--3,
.page .table__title.title-style--3,
.slide-header__title.title-style--3 {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: var(--space-3);
  color: var(--moos-blue);
  border: none;
  border-left: 3.5px solid var(--moos-blue);
  padding-left: 3.5mm;
  padding-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
}

/* Headings inside rich text body content (Markdown Hierarchy) */
.body__content h1,
.twocol__content h1,
.memo__content h1,
.slide-content__body h1,
[data-slot="body"] h1 {
  font-family: var(--font-display, "Eames Century Modern", Georgia, serif);
  font-size: 26px;
  font-weight: 700;
  margin: 1.1em 0 0.4em;
  line-height: 1.2;
  color: #0f172a;
}
.body__content h1:first-child,
.twocol__content h1:first-child,
.memo__content h1:first-child,
.slide-content__body h1:first-child,
[data-slot="body"] h1:first-child {
  margin-top: 0;
}

.body__content h2,
.twocol__content h2,
.memo__content h2,
.slide-content__body h2,
[data-slot="body"] h2 {
  font-family: var(--font-body, "Open Sans", sans-serif);
  font-size: 18px;
  font-weight: 700;
  margin: 1em 0 0.35em;
  border-bottom: 2px solid var(--moos-blue, #2819FF);
  padding-bottom: 3px;
  line-height: 1.3;
  color: #0f172a;
}
.body__content h2:first-child,
.twocol__content h2:first-child,
.memo__content h2:first-child,
.slide-content__body h2:first-child,
[data-slot="body"] h2:first-child {
  margin-top: 0;
}

.body__content h3,
.twocol__content h3,
.memo__content h3,
.slide-content__body h3,
[data-slot="body"] h3 {
  font-family: var(--font-body, "Open Sans", sans-serif);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--moos-blue, #2819FF);
  margin: 0.9em 0 0.3em;
  line-height: 1.4;
}
.body__content h3:first-child,
.twocol__content h3:first-child,
.memo__content h3:first-child,
.slide-content__body h3:first-child,
[data-slot="body"] h3:first-child {
  margin-top: 0;
}

/* ==========================================================================
   Body Text Style Presets (Web Design Text Body Styles)
   ========================================================================== */

/* Body Style 1: Standard Modern (Balanced readability, clean corporate typography) */
.body-style--1,
.body__content.body-style--1,
.page .body__content.body-style--1,
.twocol__content.body-style--1,
.page .twocol__content.body-style--1,
.memo__content.body-style--1,
.slide-content__body.body-style--1 {
  font-family: var(--font-body, "Open Sans", sans-serif);
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-body, #1e293b);
  letter-spacing: normal;
}
.body-style--1 p,
.body__content.body-style--1 p,
.page .body__content.body-style--1 p,
.twocol__content.body-style--1 p,
.memo__content.body-style--1 p {
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 0.85em;
}

/* Body Style 2: Editorial & Feature (Larger lead, elegant relaxed spacing) */
.body-style--2,
.body__content.body-style--2,
.page .body__content.body-style--2,
.twocol__content.body-style--2,
.page .twocol__content.body-style--2,
.memo__content.body-style--2,
.slide-content__body.body-style--2 {
  font-family: var(--font-body, "Open Sans", sans-serif);
  font-size: 14.5px;
  line-height: 1.65;
  color: #1e293b;
  letter-spacing: 0.005em;
}
.body-style--2 p,
.body__content.body-style--2 p,
.page .body__content.body-style--2 p,
.twocol__content.body-style--2 p,
.memo__content.body-style--2 p {
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 1em;
}
.body-style--2 p:first-of-type,
.body__content.body-style--2 p:first-of-type,
.twocol__content.body-style--2 p:first-of-type {
  font-size: 15.5px;
  line-height: 1.6;
  font-weight: 500;
  color: #0f172a;
}

/* Body Style 3: Technical & Compact (High density, crisp architectural details) */
.body-style--3,
.body__content.body-style--3,
.page .body__content.body-style--3,
.twocol__content.body-style--3,
.page .twocol__content.body-style--3,
.memo__content.body-style--3,
.slide-content__body.body-style--3 {
  font-family: var(--font-body, "Open Sans", sans-serif);
  font-size: 11.5px;
  line-height: 1.45;
  color: #334155;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
}
.body-style--3 p,
.body__content.body-style--3 p,
.page .body__content.body-style--3 p,
.twocol__content.body-style--3 p,
.memo__content.body-style--3 p {
  font-size: 11.5px;
  line-height: 1.45;
  margin: 0 0 0.6em;
}
.body-style--3 strong,
.body-style--3 b {
  color: #0f172a;
  letter-spacing: 0.01em;
}

/* Block-level presets inside body */
/* Block-level presets inside body */
.body-lead,
.body__content .lead,
.body__content .body-lead,
.twocol__content .lead,
.twocol__content .body-lead,
.memo__content .lead,
.memo__content .body-lead,
.slide-content__body .lead,
.slide-content__body .body-lead {
  font-size: 15.5px !important;
  line-height: 1.6 !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  margin-bottom: 1em !important;
}

.body-callout,
blockquote.body-callout,
.body__content blockquote,
.twocol__content blockquote,
.memo__content blockquote,
.slide-content__body blockquote {
  border-left: 3.5px solid var(--moos-blue, #2819FF) !important;
  background: rgba(40, 25, 255, 0.04) !important;
  padding: 10px 14px !important;
  margin: 0.9em 0 !important;
  border-radius: 0 4px 4px 0 !important;
  font-style: italic !important;
  color: #1e293b !important;
  line-height: 1.55 !important;
}

.body-caption,
.body__content .body-caption,
.twocol__content .body-caption,
.memo__content .body-caption,
.slide-content__body .body-caption {
  font-size: 11px !important;
  line-height: 1.45 !important;
  color: var(--color-caption, #64748b) !important;
  margin-bottom: 0.6em !important;
}

.body-code,
pre.body-code,
.body__content pre,
.twocol__content pre,
.memo__content pre,
.slide-content__body pre {
  font-family: var(--font-mono, monospace) !important;
  font-size: 11.5px !important;
  line-height: 1.5 !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 3.5px solid #64748b !important;
  padding: 8px 12px !important;
  border-radius: 4px !important;
  margin: 0.9em 0 !important;
  color: #0f172a !important;
  white-space: pre-wrap !important;
}

/* ---- Rich Text Lists (Preserved from Word / Structured Content) ---- */
.body__content ul,
.twocol__content ul,
.memo__content ul,
.slide-content__body ul,
[data-slot="body"] ul,
.body-list,
.body__content ol,
.twocol__content ol,
.memo__content ol,
.slide-content__body ol,
[data-slot="body"] ol {
  margin: 0.5em 0 0.85em;
  padding-left: 1.5em;
  color: #1e293b;
}

.body__content ul,
.twocol__content ul,
.memo__content ul,
.slide-content__body ul,
[data-slot="body"] ul {
  list-style-type: disc;
}

.body__content ol,
.twocol__content ol,
.memo__content ol,
.slide-content__body ol,
[data-slot="body"] ol {
  list-style-type: decimal;
}

.body__content li,
.twocol__content li,
.memo__content li,
.slide-content__body li,
[data-slot="body"] li {
  margin-bottom: 0.35em;
  line-height: 1.55;
  break-inside: avoid;
}

.body__content ul ul,
.body__content ol ol,
.body__content ul ol,
.body__content ol ul,
[data-slot="body"] ul ul,
[data-slot="body"] ol ol {
  margin: 0.25em 0 0.35em;
  padding-left: 1.25em;
}

/* ---- Body Rich Text Tables (Pasted from Word / Spreadsheets) ---- */
.body__content table,
.twocol__content table,
.memo__content table,
.slide-content__body table,
[data-slot="body"] table,
table.body-table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse !important;
  margin: 1.1em 0 !important;
  font-size: var(--step-table, 11.5px);
  line-height: 1.45;
  page-break-inside: auto;
  break-inside: auto;
}

.body__content table th,
.twocol__content table th,
.memo__content table th,
.slide-content__body table th,
[data-slot="body"] table th,
table.body-table th {
  background: var(--moos-blue, #2819FF);
  color: #ffffff;
  font-weight: 700;
  text-align: left;
  padding: 6px 10px;
  border: 1px solid rgba(40, 25, 255, 0.2);
  letter-spacing: 0.02em;
}

.body__content table td,
.twocol__content table td,
.memo__content table td,
.slide-content__body table td,
[data-slot="body"] table td,
table.body-table td {
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  vertical-align: top;
}

.body__content table tr:nth-child(even) td,
.twocol__content table tr:nth-child(even) td,
.memo__content table tr:nth-child(even) td,
.slide-content__body table tr:nth-child(even) td,
[data-slot="body"] table tr:nth-child(even) td,
table.body-table tr:nth-child(even) td {
  background: #f8fafc;
}

/* ---- Header Wrapper & Hover Controls ---- */
.page-header-wrap {
  position: relative;
  width: 100%;
}

.page-header-wrap:hover .header-remove-btn {
  opacity: 0.85;
}

.header-remove-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  opacity: 0;
  transition: all 0.15s ease;
  z-index: 10;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.header-remove-btn:hover {
  opacity: 1 !important;
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: scale(1.08);
}

/* Page Header Removed Placeholder (Visible only in editor on selected page) */
.page-header-removed {
  border: 1.5px dashed #cbd5e1;
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: var(--space-3);
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 6px;
  background: rgba(248, 250, 252, 0.8);
  transition: all 0.15s ease;
}

.page.is-selected-page .page-header-removed {
  display: flex;
}

.page-header-removed:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: var(--moos-blue);
}

.header-removed-icon {
  font-size: 13px;
  font-weight: 700;
}
.body__content { max-width: 100%; }
.body__content p { margin: 0 0 .9em; }

/* ---- Two column ---- */
.twocol__content {
  column-count: 2;
  column-gap: 10mm;
}
.twocol__content p { margin: 0 0 .8em; break-inside: avoid; }

/* ---- Text + Image / Image + Text split layouts ---- */
.layout-text-image,
.layout-image-text {
  display: flex;
  flex-direction: column;
}
.split-row {
  display: flex;
  gap: 8mm;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}
.split-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.split-col--text {
  overflow: visible;
}
.split-col--text .body__content {
  flex: 1;
}
.split-col--media {
  display: flex;
}
.split-img {
  width: 100%;
  height: 100%;
  min-height: 50mm;
  border-radius: 2px;
  /* overflow handled by img-slot */
}
/* Remove old hard-coded img rule; .img-slot--fill/fit/center now control sizing */

/* ---- Generic table ---- */
.layout-table .table__title {
  font-family: var(--font-display);
  font-size: var(--step-h2);
  margin-bottom: var(--space-3);
}
.generic-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step-table);
  position: relative;
}
.generic-table th, .generic-table td {
  border: 1px solid var(--moos-grey-line);
  padding: 5px 7px;
  text-align: left;
  vertical-align: top;
}
.generic-table th {
  position: relative;
  cursor: pointer;
}
.generic-table td:first-child {
  position: relative;
}
.generic-table thead th {
  background: var(--moos-blue);
  color: #fff;
  font-weight: 700;
}
.generic-table [contenteditable="true"] {
  outline: none;
}
.generic-table [contenteditable="true"]:focus {
  outline: 1px dashed var(--moos-blue, #1d4ed8);
  outline-offset: -1px;
}

/* ---- Drawing (full-bleed image page) ---- */
.drawing__image {
  width: 100%;
  height: calc(100% - 8mm);
}
/* .drawing__image img — sizing now handled by .img-slot--fill/fit/center classes */
.drawing__caption {
  position: absolute;
  right: var(--page-margin); top: var(--page-margin);
  text-align: right;
  font-size: var(--step-small);
  font-weight: 700;
}
.drawing__logo { position: absolute; left: var(--page-margin); bottom: var(--page-margin); width: 22mm; pointer-events: none; }

/* ---- Full page drawing (uncropped, 1:1, no headers, no logo) ---- */
.layout-drawing-full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}
.drawing-full__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---- Slide ---- */
.layout-slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.slide__title {
  font-family: var(--font-display);
  font-size: calc(var(--step-cover-title) * .8);
  margin-bottom: var(--space-4);
}
.slide__bullets {
  font-size: calc(var(--step-body) * 1.5);
  line-height: 1.6;
  padding-left: 1.1em;
}
.slide__logo { position: absolute; right: 6%; bottom: 6%; width: 18%; max-width: 32mm; }

/* ---- Cover (full-bleed photo) ---- */
.layout-cover { color: #fff; }
.cover__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  /* object-fit now controlled by .img-slot--fill/fit/center on the inner img */
}
.cover__banner {
  position: absolute;
  left: 0; top: 6%;
  max-width: 76%;
  background: var(--moos-blue);
  padding: 4.5% 5%;
  color: #fff;
}
.cover__title {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight-medium);
  font-size: var(--step-cover-title);
  line-height: 1.05;
}
.cover__subtitle {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight-regular);
  font-size: calc(var(--step-cover-title) * .85);
  line-height: 1.15;
}
/* Credit block, logo and signatures stack in normal flow (fixed mm gaps)
   instead of independent top/bottom percentages — percentages of page
   height/width drift apart differently as the aspect ratio changes, which
   is what let the logo overlap other elements in landscape. Flow layout
   makes that impossible regardless of page format. */
.cover__bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5mm;
  padding-bottom: var(--page-margin);
  pointer-events: none;
}
.cover__credit {
  max-width: 55%;
  background: var(--moos-blue);
  color: #fff;
  padding: 3.5% 5%;
  font-size: var(--step-body);
  line-height: 1.5;
  pointer-events: auto;
}
.cover__credit strong { display: block; }
.cover__logo {
  width: 26mm;
  margin-left: 5%;
  display: block;
  pointer-events: auto;
}
.cover__badge { position: absolute; right: 5%; top: 4%; width: 12%; }
.cover__badge img {
  max-width: 100%;
  max-height: 18mm;
  object-fit: contain;
}
.cover__badge.img-slot--empty {
  min-height: 12mm;
  border: 1px dashed rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.15);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
}
.cover__badge.img-slot--empty:hover {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}
.cover__signatures {
  align-self: stretch;
  display: flex;
  gap: 3%;
  padding: 0 5%;
  pointer-events: auto;
}
.sig-block {
  flex: 1;
  background: #fff;
  color: var(--moos-black);
  padding: 3%;
  font-size: var(--step-small);
  min-height: 8%;
}
.sig-block strong { color: var(--moos-blue); display: block; margin-bottom: .6em; }

/* ---- Closing (full-bleed photo + overlay) ---- */
.layout-closing { color: var(--moos-blue); }
.closing__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  /* object-fit now controlled by .img-slot--fill/fit/center on the inner img */
}
.closing__overlay {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.55);
  pointer-events: none;
}
.closing__text {
  position: absolute;
  left: 8%; right: 8%; top: 38%;
  pointer-events: none;
}
.closing__thanks,
.closing__signoff {
  pointer-events: auto;
}
.closing__thanks {
  font-family: var(--font-display);
  font-size: calc(var(--step-cover-title) * .78);
  line-height: 1.2;
}
.closing__signoff {
  font-family: var(--font-display);
  font-size: calc(var(--step-cover-title) * .78);
  margin-top: 6%;
}
.closing__sig { width: 18%; max-width: 35mm; margin-top: 2%; }
.closing__contact {
  pointer-events: auto;
  margin-top: 4%;
  font-size: var(--step-small);
  line-height: 1.4;
  color: var(--moos-dark, #1e293b);
}

/* ---- Spec table (dedicated technical spec table) ---- */
.spec__runninghead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6mm;
  font-size: var(--step-small);
}
.spec__logo img { width: 24mm; }
.spec__addr { text-align: left; }
.spec__project { text-align: right; font-weight: 600; }
.spec__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step-table);
  table-layout: fixed;
}
.spec__table col.col-code { width: 13%; }
.spec__table col.col-module { width: 14%; }
.spec__table col.col-omschrijving { width: 63%; }
.spec__table col.col-kleur { width: 10%; }
.spec__table th {
  background: var(--moos-blue);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 3.5px 6px;
  border: 1px solid var(--moos-blue);
}
.spec__table td {
  border: 1px solid var(--moos-grey-line);
  padding: 3.5px 6px;
  vertical-align: top;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
}
.spec__table th {
  position: relative;
}
.spec__table td:first-child {
  position: relative;
}
.spec__row-del,
.generic-table__row-del {
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #ef4444;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease 0.5s, background 0.15s ease, color 0.15s ease;
  z-index: 25;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
/* Generous invisible hover bridge extending into the cell so moving toward the button never drops hover */
.spec__row-del::before,
.generic-table__row-del::before {
  content: '';
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: -10px;
  right: -32px;
  z-index: -1;
}
.spec__table tr:hover .spec__row-del,
.spec__row-del:hover,
.spec__table tr.spec__row--hovered .spec__row-del,
.spec__table tr.spec__row--selected .spec__row-del,
.generic-table tr:hover .generic-table__row-del,
.generic-table__row-del:hover,
.generic-table tr.generic-table__row--hovered .generic-table__row-del,
.generic-table tr.generic-table__row--selected .generic-table__row-del {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.1s ease 0s, background 0.15s ease, color 0.15s ease;
}
.spec__row-del:hover,
.generic-table__row-del:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}
.spec__table tr.spec__row--selected td,
.generic-table tr.generic-table__row--selected td {
  outline: 2px solid var(--moos-blue, #1d4ed8);
  outline-offset: -1px;
  background-color: #f0f7ff;
}

/* Column deletion handle & selection */
.spec__col-del,
.generic-table__col-del {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #ef4444;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease 0.5s, background 0.15s ease, color 0.15s ease;
  z-index: 25;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
/* Generous invisible hover bridge extending down into the column header */
.spec__col-del::before,
.generic-table__col-del::before {
  content: '';
  position: absolute;
  top: -10px;
  bottom: -32px;
  left: -14px;
  right: -14px;
  z-index: -1;
}
.spec__table th:hover .spec__col-del,
.spec__col-del:hover,
.spec__table th.spec__col--hovered .spec__col-del,
.spec__table th.spec__col--selected .spec__col-del,
.generic-table th:hover .generic-table__col-del,
.generic-table__col-del:hover,
.generic-table th.generic-table__col--hovered .generic-table__col-del,
.generic-table th.generic-table__col--selected .generic-table__col-del {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.1s ease 0s, background 0.15s ease, color 0.15s ease;
}
.spec__col-del:hover,
.generic-table__col-del:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}
.spec__table th,
.generic-table th {
  cursor: pointer;
}
.spec__table th.spec__col--selected,
.generic-table th.generic-table__col--selected {
  outline: 2px solid #2563eb;
  outline-offset: -1px;
  background: #1e40af !important;
}
.spec__table td.spec__col--selected,
.generic-table td.generic-table__col--selected {
  outline: 2px solid var(--moos-blue, #1d4ed8);
  outline-offset: -1px;
  background: #eff6ff !important;
}

@keyframes specHighlightRestored {
  0% { background-color: rgba(37, 99, 235, 0.25) !important; }
  100% { background-color: transparent; }
}

.spec__table tr.spec__row--restored > td,
.generic-table tr.generic-table__row--restored > td,
.spec__table th.spec__col--restored,
.generic-table th.generic-table__col--restored,
.spec__table td.spec__col--restored,
.generic-table td.generic-table__col--restored {
  animation: specHighlightRestored 1.4s ease-out;
}


#measure-sandbox .no-print {
  display: none !important;
}
.spec__table td strong,
.spec__table td b,
.spec__desc-body strong,
.spec__desc-body b,
.layout strong,
.layout b {
  font-weight: 700;
  color: var(--moos-black);
}
.spec__table td em,
.spec__table td i,
.spec__desc-body em,
.spec__desc-body i,
.layout em,
.layout i {
  font-style: italic;
}
.spec__table td u,
.spec__desc-body u,
.layout u {
  text-decoration: underline;
}
.spec__table td s,
.spec__table td strike,
.spec__table td del,
.spec__desc-body s,
.spec__desc-body strike,
.spec__desc-body del,
.layout s,
.layout strike,
.layout del {
  text-decoration: line-through;
}
.spec__table td span[style],
.spec__desc-body span[style],
.layout span[style] {
  display: inline;
}
.spec__table td a,
.spec__desc-body a,
.layout a {
  color: var(--moos-blue);
  text-decoration: underline;
  word-break: break-word;
  cursor: pointer;
}
.spec__table td a:hover,
.spec__desc-body a:hover,
.layout a:hover {
  color: #0b1f8c;
}
.spec__table td[contenteditable="true"]:focus {
  outline: 2px solid var(--moos-blue);
  outline-offset: -1px;
  background-color: rgba(26, 42, 142, 0.04);
}
.spec__row--heading td {
  background: var(--moos-grey-band);
  font-weight: 700;
}
.spec__row--heading .spec__desc-body { font-weight: inherit; }
.spec__row--detail td { background: #fff; font-weight: 400; }
.spec__row--detail .spec__code { font-weight: 400; }
.spec__footer {
  position: absolute;
  left: var(--page-margin); right: var(--page-margin); bottom: var(--page-margin);
  height: var(--page-footer-h);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: var(--step-small);
  color: #444;
  pointer-events: none;
  z-index: 5;
}

/* ---- Memo body (memo preset) ---- */
.memo__heading {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: var(--step-h1);
  margin-bottom: var(--space-4);
}
.memo__content p { margin: 0 0 1em; }
.memo__figure {
  border: 1px solid var(--ui-border, #ddd);
  padding: 4mm;
  margin: 4mm auto;
  max-width: 90%;
  text-align: center;
}
.memo__figure .img-slot { min-height: 40mm; }
/* .memo__figure .img-slot img sizing now controlled by .img-slot--fill/fit/center */
.memo__footer {
  position: absolute;
  left: var(--page-margin); right: var(--page-margin); bottom: var(--page-margin);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2mm;
  pointer-events: none;
  z-index: 5;
}
.memo__sig { width: 20mm; opacity: .9; }
.memo__pagenum { font-size: var(--step-small); color: #888; }

/* =========================================================================
   NEW SLIDE ARCHITECTURE (Titles ALWAYS on top, footers on bottom)
   ========================================================================= */

.layout-slide-shell {
  position: absolute;
  inset: 0;
  padding: 12mm 16mm 10mm;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Slide Header (Top) */
.slide-header {
  flex-shrink: 0;
  margin-bottom: 6mm;
}
.slide-header__title {
  font-family: var(--font-display);
  font-size: calc(var(--step-cover-title) * 0.72);
  line-height: 1.15;
  color: var(--moos-blue);
  margin: 0;
}
.slide-header__tag {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 700;
  color: var(--moos-blue);
  background: rgba(40, 25, 255, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

/* Slide Body (Middle Content) */
.slide-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.slide-content__bullets {
  font-family: var(--font-body);
  font-size: calc(var(--step-body) * 1.35);
  line-height: 1.6;
  margin: 0;
  padding-left: 1.2em;
}
.slide-content__bullets li {
  margin-bottom: 0.6em;
}

/* Slide Cover */
.layout-slide-cover {
  background: #ffffff;
  padding: 18mm 20mm 12mm;
}
.slide-body--cover {
  justify-content: center;
  align-items: flex-start;
}
.slide-cover-accent {
  width: 48px;
  height: 4px;
  background: var(--moos-blue);
  margin-bottom: 8mm;
}
.slide-cover__title {
  font-family: var(--font-display);
  font-size: calc(var(--step-cover-title) * 0.95);
  line-height: 1.05;
  margin: 0 0 4mm;
  color: #000000;
}
.slide-cover__subtitle {
  font-family: var(--font-display);
  font-size: calc(var(--step-h2) * 1.15);
  color: #4b5563;
  margin: 0 0 6mm;
}
.slide-cover__meta {
  font-family: var(--font-body);
  font-size: var(--step-body);
  color: #6b7280;
}

/* Slide Section Divider */
.layout-slide-section {
  background: #ffffff;
}
.slide-body--center {
  align-items: center;
  text-align: center;
}
.slide-section__title {
  font-family: var(--font-display);
  font-size: calc(var(--step-cover-title) * 0.9);
  color: #000000;
  margin: 0;
}

/* Slide Full Image */
.slide-body--full-media {
  padding: 0;
  overflow: hidden;
}
.slide-media-full {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
}

/* Slide Half / Half Split */
.slide-split-row {
  display: flex;
  flex-direction: row;
  gap: 10mm;
  align-items: stretch;
}
.slide-split-col {
  flex: 1;
  min-width: 0;
}
.slide-split-col--text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--font-body);
  font-size: calc(var(--step-body) * 1.15);
  line-height: 1.5;
}
.slide-split-col--text p {
  margin: 0 0 0.8em;
}
.slide-media-slot {
  width: 100%;
  height: 100%;
  min-height: 50mm;
  border-radius: 4px;
  overflow: hidden;
}

/* Slide Image Grid */
.slide-grid-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6mm;
  align-items: stretch;
}
.slide-grid-cell {
  width: 100%;
  height: 100%;
  min-height: 45mm;
  border-radius: 4px;
  overflow: hidden;
}

/* Slide Footer (Bottom) */
.slide-footer {
  flex-shrink: 0;
  height: 7mm;
  margin-top: 4mm;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid #e2e5ec;
  padding-top: 2mm;
  box-sizing: border-box;
}
.slide-footer__brand,
.slide-footer__num {
  font-size: var(--step-small);
  color: #888888;
  font-family: var(--font-mono, monospace);
}
.slide-footer__logo {
  height: 6.5mm !important;
  width: auto !important;
  max-width: 28mm !important;
  object-fit: contain;
  opacity: 0.95;
}

/* =========================================================================
   PRINTABLE EXPANDED LAYOUTS (Full photo & Photo grid)
   ========================================================================= */

.layout-full-photo {
  position: absolute;
  inset: 0;
}
.full-photo__img {
  width: 100%;
  height: 100%;
  /* object-fit now controlled by .img-slot--fill/fit/center on the inner img */
}
.full-photo__caption-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  padding: 5mm var(--page-margin);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
}
.full-photo__caption {
  font-family: var(--font-body);
  font-size: var(--step-small);
  font-weight: 600;
}
.full-photo__logo {
  height: 5mm !important;
  width: auto !important;
  object-fit: contain;
}

.layout-photo-grid {
  display: flex;
  flex-direction: column;
}
.grid-header {
  margin-bottom: 5mm;
}
.grid-header__title {
  font-family: var(--font-display);
  font-size: var(--step-h2);
  margin: 0;
}
.photo-grid-container.grid-2x2 {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 5mm;
  min-height: 0;
}
.photo-grid__cell {
  width: 100%;
  height: 100%;
  border-radius: 2px;
  overflow: hidden;
}

/* =========================================================================
   WOOD CERTIFICATION (Hout Certificering / FSC / PEFC) LAYOUTS
   Exact reproduction of reference PDF M2302 Hout Certificering Rapport.pdf
   ========================================================================= */

/* ---- Certification Cover (Solid Moos Blue) ---- */
.layout-cert-cover {
  background: var(--moos-blue, #2819FF);
  color: #fff;
  padding: 12.7mm;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}
.cert-cover__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.cert-cover__meta {
  font-family: var(--font-display, "Eames Century Modern", serif);
}
.cert-cover__invoice {
  font-size: 16pt;
  font-weight: 700;
  line-height: 1.2;
}
.cert-cover__export {
  font-size: 12pt;
  font-weight: 400;
  margin-top: 1.5mm;
  opacity: 0.95;
}
.cert-cover__logo img {
  width: 28mm;
  height: auto;
}
.cert-cover__footer {
  margin-bottom: 0;
}
.cert-cover__title {
  font-family: var(--font-display, "Eames Century Modern", serif);
  font-size: 38pt;
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 2mm 0;
  letter-spacing: -0.01em;
}
.cert-cover__subtitle {
  font-family: var(--font-display, "Eames Century Modern", serif);
  font-size: 21pt;
  font-weight: 400;
  margin: 0;
  opacity: 0.95;
}

/* ---- Certification Table Page ---- */
.layout-cert-table {
  padding: 12.7mm;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: #fff;
  color: #000;
}
.cert__banner {
  background: var(--moos-blue, #2819FF);
  height: 15.9mm;
  min-height: 15.9mm;
  padding: 0 5mm;
  display: flex;
  align-items: center;
  margin-bottom: 3.5mm;
  box-sizing: border-box;
  flex-shrink: 0;
}
.cert__banner-title {
  font-family: var(--font-display, "Eames Century Modern", serif);
  font-size: 18pt;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.01em;
}
.cert__body {
  display: flex;
  flex: 1;
  min-height: 0;
  gap: 0;
  position: relative;
  width: 100%;
  overflow: hidden; /* Clips any overflow so content can never physically cross the footer line */
}
.cert__purchases-col {
  width: 56.15%;
  flex: 0 0 56.15%;
  padding-right: 3.5mm;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cert__divider {
  width: 1px;
  background: #000;
  align-self: stretch;
  flex-shrink: 0;
}
.cert__sales-col {
  flex: 1;
  padding-left: 3.5mm;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cert__sales-col--empty {
  visibility: hidden;
}
.cert__section-title {
  font-family: var(--font-body, Arial, sans-serif);
  font-size: 7.6pt;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 2mm;
  letter-spacing: 0.05em;
  color: #000;
  line-height: 1.2;
}
.cert__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-family: var(--font-body, Arial, sans-serif);
  font-size: 5.9pt;
  line-height: 1.15;
  color: #000;
}
.cert__table thead th {
  font-size: 5.9pt;
  font-weight: 700;
  text-align: left;
  vertical-align: bottom;
  padding: 1.5px 2px;
  border-top: 0.5pt solid #000;
  border-bottom: 0.5pt solid #000;
  background: #fff;
  color: #000;
  white-space: normal;
  line-height: 1.15;
  word-break: normal;
}
.cert__table tbody td {
  padding: 0.8px 2px;
  vertical-align: top;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: none;
  font-size: 5.9pt;
}
.cert__table tbody td.col-s-desc {
  white-space: normal;
  line-height: 1.25;
  word-break: break-word;
}
.cert__table td.text-right,
.cert__table th.text-right {
  text-align: right;
}
.cert__row--waste td {
  color: #c00000 !important;
  font-style: italic !important;
}
.cert__row--total td {
  font-style: italic !important;
  font-weight: 600 !important;
}
.cert__footnote {
  margin-top: 3.5mm;
  font-family: var(--font-body, Arial, sans-serif);
  font-size: 5.5pt;
  font-style: italic;
  color: #666;
}

/* Specific column width distributions */
.col-p-date { width: 11.5%; }
.col-p-account { width: 23%; }
.col-p-desc { width: 40%; }
.col-p-qty { width: 5%; }
.col-p-claim { width: 11%; }
.col-p-invoice { width: 9.5%; }

.col-s-client { width: 8%; }
.col-s-desc { width: 32%; }
.col-s-qty { width: 5%; }
.col-s-unit { width: 6%; }
.col-s-claim { width: 12%; }
.col-s-invoice { width: 20%; }
.col-s-date { width: 17%; }

/* ---- Footer ---- */
.cert__footer {
  height: auto;
  min-height: 10mm;
  margin-top: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 0;
  box-sizing: border-box;
}
.cert__footer-rule {
  height: 1px;
  background: var(--moos-blue, #2819FF);
  margin-bottom: 2mm;
  width: 100%;
}
.cert__footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cert__footer-left {
  display: flex;
  align-items: baseline;
  gap: 3.5mm;
}
.cert__footer-num {
  font-family: var(--font-display, "Eames Century Modern", serif);
  font-size: 16pt;
  font-weight: 700;
  color: var(--moos-blue, #2819FF);
  line-height: 1;
}
.cert__footer-doc {
  font-family: var(--font-display, "Eames Century Modern", serif);
  font-size: 9.5pt;
  font-weight: 400;
  color: var(--moos-blue, #2819FF);
  line-height: 1;
}
.cert__footer-logo img {
  height: 7.5mm;
  width: auto;
  display: block;
}

/* =========================================================================
   MODEL AUDIT TABLE (Revit / BIM Families & Views Audit)
   ========================================================================= */
.layout-audit-table {
  padding: 12.7mm;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  font-family: var(--font-ui, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
  color: #1f2937;
  background: #ffffff;
}

.audit__runninghead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1.5px solid #e2e8f0;
  flex-shrink: 0;
}

.audit__brand {
  display: flex;
  align-items: center;
  gap: 7px;
}

.audit__logo {
  height: 16px;
  width: auto;
  object-fit: contain;
}

.audit__brand-divider {
  color: #cbd5e1;
  font-weight: 300;
  font-size: 14px;
}

.audit__brand-title {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.audit__section-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 2px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.audit__section-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.05em;
}

.audit__section-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #0f172a;
}

.audit__stats {
  display: flex;
  align-items: center;
  gap: 6px;
}

.audit__stat-pill {
  font-size: 10.5px;
  padding: 2px 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #475569;
  line-height: 1.2;
}

.audit__stat-pill--used {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.audit__stat-pill--unused {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.audit__body {
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.audit__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 9.5px;
  line-height: 1.2;
}

.col-audit-id { width: 9%; }
.col-audit-name { width: 22%; }
.col-audit-category { width: 16%; }
.col-audit-inuse { width: 7%; }
.col-audit-count { width: 6%; }
.col-audit-where { width: 40%; }
.col-audit-rec { width: 10%; }
.col-audit-notes { width: 10%; }

.audit__table thead th {
  background: #f8fafc;
  color: #334155;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 6px;
  border-top: 1px solid #cbd5e1;
  border-bottom: 2px solid #cbd5e1;
  text-align: left;
  white-space: nowrap;
}

.audit__table thead th.text-center { text-align: center; }
.audit__table thead th.text-right { text-align: right; }

.audit__table tbody td {
  padding: 2.5px 6px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
  box-sizing: border-box;
}

.col-audit-id {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 9px;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
}

.col-audit-name {
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
}

.col-audit-category {
  color: #475569;
  word-break: break-word;
}

.col-audit-count {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 9.5px;
  color: #334155;
}

.col-audit-where {
  color: #334155;
  font-size: 8.5px;
  line-height: 1.25;
  word-break: break-word;
}

.audit__where-wrap {
  display: inline;
}

.audit__view-item {
  color: inherit;
}

.audit__view-sep {
  color: #94a3b8;
  margin-right: 2px;
}

.audit__empty {
  color: #cbd5e1;
}

/* Red highlights for elements NOT in use */
.audit__row--not-in-use {
  background-color: rgba(220, 38, 38, 0.035);
}

.audit__row--not-in-use td {
  color: #b91c1c !important;
}

.audit__row--not-in-use .col-audit-id {
  color: #dc2626 !important;
}

.audit__row--not-in-use .col-audit-name {
  color: #b91c1c !important;
  font-weight: 600;
}

.audit__row--not-in-use .col-audit-category {
  color: #b91c1c !important;
}

.audit__row--not-in-use .col-audit-count {
  color: #dc2626 !important;
}

.audit__badge {
  display: inline-block;
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.audit__badge--no {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.audit__badge--yes {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

/* Footer styling */
.audit__footer-rule {
  height: 1px;
  background-color: #cbd5e1;
  margin-top: 4px;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.audit__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: #64748b;
  padding-bottom: 0;
  flex-shrink: 0;
  line-height: 1.3;
}

.audit__footer-left {
  font-weight: 500;
}

.audit__footer-center {
  color: #94a3b8;
}

.audit__footer-right {
  font-weight: 600;
  color: #334155;
}

/* ---------------- Linked Assets UI ---------------- */
.topbar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--moos-blue, #0d3b66);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  margin-left: 5px;
  line-height: 1;
}

.topbar-badge.has-updates {
  background-color: #d97706; /* amber warning */
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.asset-link-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 3px solid var(--moos-blue, #0d3b66);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.asset-link-card__header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.asset-link-card__badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #334155;
  margin-left: auto;
  align-self: flex-start;
}

.asset-link-card__info {
  flex: 1;
  min-width: 0;
}

.asset-link-card__title {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-link-card__subtitle {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.asset-link-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

.btn-danger-subtle {
  background: transparent;
  color: #dc2626;
  border: 1px solid transparent;
}
.btn-danger-subtle:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}

.linked-asset-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 8px;
  background: #fff;
  transition: border-color 0.15s ease;
}

.linked-asset-item:hover {
  border-color: #cbd5e1;
}

.linked-asset-item__info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.linked-asset-item__badge {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #475569;
}

.linked-asset-item__badge.is-table {
  background: #dbeafe;
  color: #1e40af;
}

.linked-asset-item__badge.is-image {
  background: #fce7f3;
  color: #9d174d;
}

.linked-asset-item__title {
  font-size: 12.5px;
  font-weight: 600;
  color: #1e293b;
}

.linked-asset-item__meta {
  font-size: 11px;
  color: #64748b;
}

.linked-asset-item__status {
  margin-right: 12px;
  font-size: 11px;
  font-weight: 600;
}

.status-uptodate {
  color: #16a34a;
}

.status-outdated {
  color: #d97706;
}



