/* ============================================================
   T & T Global Associates AS — Digital PDF Specification Catalogue Studio v2.0
   Industrial Engineering Document & Interactive Flipbook Stylesheet
   ============================================================ */

/* Top Demo Banner */
.demo-banner-box {
  background: linear-gradient(135deg, #0A2540 0%, #143D6B 100%);
  border: 1px solid rgba(242, 101, 34, 0.35);
  border-radius: var(--radius-lg, 12px);
  padding: 16px 22px;
  margin-bottom: 24px;
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(10, 37, 64, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.demo-banner-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 280px;
}

.demo-banner-badge {
  background: #F26522;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.demo-banner-text h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
  color: #FFFFFF;
}

.demo-banner-text p {
  font-size: 13px;
  color: #CBD5E1;
  margin: 0;
  line-height: 1.4;
}

.demo-view-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  gap: 4px;
}

.demo-tab-btn {
  background: transparent;
  color: #E2E8F0;
  border: none;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.demo-tab-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.15);
}

.demo-tab-btn.active {
  background: #F26522;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(242, 101, 34, 0.4);
}

/* Category Filter Strip (No Images) */
.pdf-filter-strip {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 4px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Unlimited Chapters Architecture Navigation */
.pdf-chapter-pills-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #CBD5E1;
}

.pdf-chapter-pill {
  background: #FFFFFF;
  border: 1px solid #94A3B8;
  color: #0A2540;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.pdf-chapter-pill:hover {
  background: #F1F5F9;
  border-color: #0A2540;
}

.pdf-chapter-pill.active {
  background: #F26522;
  border-color: #F26522;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(242, 101, 34, 0.3);
}

.pdf-chapter-pill.active .pdf-pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.pdf-chapter-badge {
  background: #0A2540;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.pdf-chapter-pill.active .pdf-chapter-badge {
  background: rgba(0, 0, 0, 0.25);
  color: #FFFFFF;
}

.pdf-filter-title {
  font-size: 12.5px;
  color: #1E293B;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pdf-cat-pills-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.pdf-cat-pill {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.pdf-cat-pill:hover {
  border-color: #0A2540;
  color: #0A2540;
  background: #F1F5F9;
}

.pdf-cat-pill.active {
  background: #0A2540;
  border-color: #0A2540;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(10, 37, 64, 0.2);
}

.pdf-pill-count {
  background: rgba(242, 101, 34, 0.15);
  color: #D9531A;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

.pdf-cat-pill.active .pdf-pill-count {
  background: #F26522;
  color: #FFFFFF;
}

/* Container expansion for Digital PDF Studio */
.container.catalog-wide-container {
  max-width: 1440px;
  width: 96%;
}

/* Master Studio Workspace Frame */
.pdf-studio-frame {
  background: #2D333F;
  border: 1px solid #1E293B;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(10, 37, 64, 0.25);
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Master Acrobat-Style Toolbar */
.pdf-toolbar {
  background: #111827;
  border-bottom: 1px solid #374151;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #F3F4F6;
  z-index: 10;
}

.pdf-toolbar-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pdf-doc-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #F26522;
  background: rgba(242, 101, 34, 0.12);
  padding: 5px 9px;
  border-radius: 6px;
  border: 1px solid rgba(242, 101, 34, 0.25);
}

.pdf-doc-title {
  color: #F9FAFB;
  font-family: monospace;
  font-size: 11.5px;
}

.pdf-select {
  background: #1F2937;
  border: 1px solid #4B5563;
  color: #F9FAFB;
  font-size: 11.5px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
}

.pdf-select:focus {
  border-color: #F26522;
}

.pdf-tool-btn {
  background: #1F2937;
  border: 1px solid #4B5563;
  color: #F9FAFB;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pdf-tool-btn:hover:not(:disabled) {
  background: #374151;
  border-color: #6B7280;
}

.pdf-tool-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pdf-tool-btn.active {
  background: #0A2540;
  border-color: #F26522;
  color: #F26522;
}

.pdf-btn-group {
  display: inline-flex;
  background: #1F2937;
  border: 1px solid #4B5563;
  border-radius: 6px;
  overflow: hidden;
}

.pdf-btn-group .pdf-tool-btn {
  background: transparent;
  border: none;
  border-radius: 0;
  border-right: 1px solid #374151;
}

.pdf-btn-group .pdf-tool-btn:last-child {
  border-right: none;
}

.pdf-page-counter {
  font-size: 11.5px;
  color: #D1D5DB;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.pdf-page-input {
  width: 44px;
  background: #1F2937;
  border: 1px solid #4B5563;
  color: #FFFFFF;
  text-align: center;
  padding: 4px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
}

.pdf-zoom-ctrl {
  display: flex;
  align-items: center;
  background: #1F2937;
  border: 1px solid #4B5563;
  border-radius: 6px;
  overflow: hidden;
}

.pdf-zoom-ctrl .pdf-tool-btn {
  background: transparent;
  border: none;
  padding: 6px 8px;
  border-radius: 0;
}

.pdf-zoom-val {
  font-size: 11px;
  font-weight: 700;
  color: #D1D5DB;
  padding: 0 4px;
  min-width: 38px;
  text-align: center;
}

.pdf-btn-print {
  background: #F26522;
  border-color: #D9531A;
  color: #FFFFFF;
}

.pdf-btn-print:hover {
  background: #D9531A;
}

/* Studio Body: Split View with Sidebar */
.pdf-studio-body {
  display: flex;
  min-height: 840px;
  max-height: 900px;
  position: relative;
  overflow: hidden;
}

/* Sidebar */
.pdf-studio-sidebar {
  width: 220px;
  background: #1E293B;
  border-right: 1px solid #334155;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  z-index: 5;
  flex-shrink: 0;
}

.pdf-studio-sidebar.closed {
  width: 0;
  overflow: hidden;
  border-right: none;
}

.pdf-sidebar-header {
  padding: 10px 14px;
  background: #0F172A;
  border-bottom: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pdf-sidebar-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #F8FAFC;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pdf-sidebar-toggle-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  font-size: 12px;
  padding: 4px;
}

.pdf-sidebar-toggle-btn:hover {
  color: #FFFFFF;
}

.pdf-sidebar-tabs {
  display: flex;
  background: #1E293B;
  border-bottom: 1px solid #334155;
}

.pdf-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  border-bottom: 2px solid transparent;
  text-align: center;
}

.pdf-tab-btn:hover {
  color: #F8FAFC;
}

.pdf-tab-btn.active {
  color: #F26522;
  border-bottom-color: #F26522;
  background: rgba(242, 101, 34, 0.08);
}

.pdf-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.pdf-tab-pane {
  display: none;
}

.pdf-tab-pane.active {
  display: block;
}

/* Sidebar Thumbnails */
.pdf-thumb-card {
  background: #0F172A;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  gap: 10px;
  align-items: center;
}

.pdf-thumb-card:hover {
  border-color: #64748B;
  background: #1E293B;
}

.pdf-thumb-card.active {
  border-color: #F26522;
  background: rgba(242, 101, 34, 0.1);
  box-shadow: 0 0 0 1px #F26522;
}

.pdf-thumb-preview {
  width: 44px;
  height: 58px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3px;
}

.pdf-thumb-header-bar {
  height: 4px;
  background: #0A2540;
  border-radius: 1px;
}

.pdf-thumb-cad-icon {
  text-align: center;
  color: #64748B;
  font-size: 14px;
}

.pdf-thumb-real-img {
  width: 100%;
  height: 28px;
  object-fit: contain;
  margin: 1px 0;
  display: block;
}

.pdf-thumb-lines span {
  display: block;
  height: 2px;
  background: #E2E8F0;
  margin-bottom: 2px;
  border-radius: 1px;
}

.pdf-thumb-num {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: #0A2540;
  color: #FFFFFF;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 3px;
  border-radius: 2px;
}

.pdf-thumb-info {
  flex: 1;
  min-width: 0;
}

.pdf-thumb-id {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: #F26522;
  font-family: monospace;
}

.pdf-thumb-name {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #F8FAFC;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar Index Tree */
.pdf-index-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 5px;
  cursor: pointer;
  color: #CBD5E1;
  font-size: 11.5px;
  font-weight: 500;
  transition: all 0.15s ease;
  margin-bottom: 4px;
  gap: 8px;
}

.pdf-index-row:hover {
  background: #334155;
  color: #FFFFFF;
}

.pdf-index-row.active {
  background: #0A2540;
  color: #FFFFFF;
  border-left: 3px solid #F26522;
}

.pdf-index-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdf-index-count {
  background: rgba(255, 255, 255, 0.12);
  color: #94A3B8;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
}

.pdf-index-row.active .pdf-index-count {
  background: #F26522;
  color: #FFFFFF;
}

.pdf-index-chapter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  margin-top: 10px;
  margin-bottom: 3px;
  background: rgba(255, 255, 255, 0.07);
  border-left: 3px solid #F26522;
  border-radius: 4px;
  color: #F8FAFC;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pdf-index-chapter-header:hover {
  background: rgba(242, 101, 34, 0.2);
  color: #FFFFFF;
}

.pdf-index-chapter-header.active {
  background: #0A2540;
  color: #FFA726;
  border-left-color: #FFA726;
}

.pdf-index-sub-row {
  padding-left: 20px;
}

/* Sidebar Search */
.pdf-search-input-box {
  display: flex;
  align-items: center;
  background: #0F172A;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 6px 10px;
  gap: 8px;
  margin-bottom: 10px;
}

.pdf-search-input-box input {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 11.5px;
  outline: none;
  width: 100%;
}

.pdf-search-item {
  background: #0F172A;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pdf-search-item:hover {
  border-color: #F26522;
  background: #1E293B;
}

.pdf-search-id {
  font-size: 11px;
  font-weight: 800;
  color: #F26522;
  font-family: monospace;
  display: flex;
  justify-content: space-between;
}

.pdf-search-cat {
  font-size: 9.5px;
  color: #94A3B8;
  font-family: sans-serif;
  font-weight: 500;
}

.pdf-search-name {
  font-size: 11.5px;
  font-weight: 600;
  color: #F8FAFC;
  margin: 2px 0;
}

.pdf-search-meta {
  font-size: 10px;
  color: #CBD5E1;
}

.pdf-search-hint, .pdf-search-empty {
  font-size: 11px;
  color: #94A3B8;
  padding: 14px 6px;
  line-height: 1.5;
  text-align: center;
}

/* Viewport Area */
.pdf-viewport {
  flex: 1;
  background: #475569;
  padding: 20px 14px 32px;
  overflow-x: hidden !important; /* CRITICAL: ZERO HORIZONTAL SCROLLBAR */
  overflow-y: auto;
  display: flex;
  justify-content: center;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.pdf-zoom-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Two-Page Book Spread Mode (Flipbook) */
.pdf-book-spread {
  display: flex;
  position: relative;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  border-radius: 4px;
  background: #FFFFFF;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.pdf-book-crease {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 32px;
  transform: translateX(-50%);
  background: linear-gradient(to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.08) 35%,
    rgba(0, 0, 0, 0.22) 48%,
    rgba(0, 0, 0, 0.32) 50%,
    rgba(0, 0, 0, 0.22) 52%,
    rgba(0, 0, 0, 0.08) 65%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  z-index: 4;
}

.pdf-book-page-wrap {
  width: 50%;
  max-width: 50%;
  min-width: 0;
  flex: 1 1 50%;
  box-sizing: border-box;
  display: flex;
}

.pdf-page-left-wrap .pdf-page-sheet {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 1px solid #E2E8F0;
  box-shadow: -4px 0 16px rgba(0,0,0,0.1);
}

.pdf-page-right-wrap .pdf-page-sheet {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 1px solid #E2E8F0;
  box-shadow: 4px 0 16px rgba(0,0,0,0.1);
}

.pdf-blank-sheet {
  background: #F8FAFC;
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #E2E8F0;
  border: 1px solid #D1D5DB;
  box-sizing: border-box;
}

.pdf-blank-content {
  text-align: center;
  max-width: 280px;
  padding: 24px;
}

.pdf-blank-content h4 {
  font-size: 15px;
  color: #0A2540;
  margin: 14px 0 6px;
}

.pdf-blank-content p {
  font-size: 11.5px;
  color: #64748B;
  margin-bottom: 14px;
}

/* Authentic A4 Paper Sheet */
.pdf-page-sheet {
  background: #FFFFFF;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: auto;
  padding: 14px 16px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 2px;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1E293B;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(to right, rgba(0,0,0,0.015) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(0,0,0,0.015) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* When displayed in Single mode, gracefully cap max-width */
.pdf-zoom-wrapper > .pdf-page-sheet {
  max-width: 760px;
}

/* Running Header */
.pdf-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 2px solid #0A2540;
  padding-bottom: 8px;
  margin-bottom: 8px;
  gap: 10px;
}

.pdf-header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdf-brand-mark svg {
  display: block;
}

.pdf-brand-name {
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #0A2540;
}

.pdf-brand-tagline {
  font-size: 9px;
  color: #64748B;
  font-weight: 500;
}

.pdf-header-cert {
  text-align: right;
}

.pdf-cert-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #0A2540;
  text-transform: uppercase;
}

.pdf-cert-sub {
  font-size: 8.5px;
  font-weight: 700;
  color: #F26522;
  letter-spacing: 0.2px;
  margin-top: 1px;
}

.pdf-cert-meta {
  font-size: 8.5px;
  color: #64748B;
  font-family: monospace;
  margin-top: 2px;
}

/* Classification Sub-bar */
.pdf-sub-bar {
  background: #0A2540;
  color: #FFFFFF;
  padding: 4px 8px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 3px;
  margin-bottom: 12px;
}

.pdf-sub-bar strong {
  color: #FFC091;
}

/* Product Title Block with QA Stamp */
.pdf-title-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 10px;
  margin-bottom: 12px;
  gap: 16px;
}

.pdf-title-left {
  flex: 1;
}

.pdf-id-badge {
  display: inline-block;
  background: #0A2540;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 3px;
}

.pdf-product-title {
  font-size: 16px;
  font-weight: 800;
  color: #0A2540;
  line-height: 1.25;
  margin: 0 0 2px 0;
  word-break: break-word;
}

.pdf-product-sub {
  font-size: 10px;
  color: #64748B;
  font-weight: 500;
}

.pdf-title-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* QA Watermark Stamp */
.pdf-qa-stamp {
  opacity: 0.88;
  transform: rotate(-6deg);
  transition: transform 0.2s ease;
}

.pdf-qa-stamp:hover {
  transform: rotate(0deg) scale(1.05);
  opacity: 1;
}

.btn-pdf-quote {
  background: #F26522;
  color: #FFFFFF;
  border: none;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-pdf-quote:hover {
  background: #D9531A;
}

/* Dual Column Layouts */
.pdf-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
  min-width: 0;
}

.pdf-dual-col-cad, .pdf-dual-col-info, .pdf-dual-col-bom, .pdf-dual-col-chart, .pdf-dual-col-photo {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 6px 8px;
  min-width: 0;
  overflow: hidden;
}

.pdf-dual-col-photo {
  display: flex;
  flex-direction: column;
}

.pdf-prod-photo-frame {
  width: 100%;
  height: 135px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(10, 37, 64, 0.04);
  background-image: linear-gradient(to right, rgba(0,0,0,0.02) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 15px 15px;
}

.pdf-prod-real-img {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
}

.pdf-photo-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 8px;
  color: #64748B;
  font-family: monospace;
}

.pdf-photo-tag {
  color: #0A2540;
  font-weight: 700;
}

/* Full Width Specs Block (No Images Mode) */
.pdf-full-specs-block {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 8px;
}

.pdf-quick-specs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.pdf-quick-badge {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 8.5px;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdf-cad-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.pdf-sec-heading-sm {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #0A2540;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 4px;
}

.pdf-quick-specs-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 10px;
  color: #334155;
  line-height: 1.6;
  margin-top: 8px;
}

/* Section Headings */
.pdf-section {
  margin-bottom: 12px;
}

.pdf-sec-heading {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #0A2540;
  border-bottom: 1.5px solid #E2E8F0;
  padding-bottom: 3px;
  margin-bottom: 6px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pdf-sec-num {
  color: #F26522;
  font-weight: 900;
}

.pdf-sec-desc {
  font-size: 10.5px;
  color: #334155;
  line-height: 1.5;
  margin: 0;
}

/* Section 2: Technical Specifications Matrix Grid */
.pdf-matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 6px 10px;
  min-width: 0;
}

.pdf-matrix-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  overflow: hidden;
}

.pdf-matrix-lbl {
  font-size: 8.5px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.pdf-matrix-lbl i {
  color: #F26522;
  font-size: 8px;
}

.pdf-matrix-val {
  font-size: 9.5px;
  font-weight: 600;
  color: #0F172A;
  line-height: 1.25;
  word-break: break-word;
}

/* Responsive Table Wrapper */
.pdf-table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  min-width: 0;
  margin-top: 3px;
  -webkit-overflow-scrolling: touch;
}

/* Section 3: Engineering Spec Table */
.pdf-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 8.5px;
  border: 1px solid #CBD5E1;
}

.pdf-spec-table th {
  background: #0A2540;
  color: #FFFFFF;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  padding: 3px 4px;
  text-align: left;
  border: 1px solid #0A2540;
  white-space: nowrap;
}

.pdf-spec-table td {
  padding: 2.5px 4px;
  border: 1px solid #E2E8F0;
  color: #334155;
  font-size: 8.5px;
  white-space: nowrap;
}

.pdf-spec-table tbody tr:nth-child(even) {
  background: #F8FAFC;
}

.pdf-order-row:hover {
  background: #FEF0E7 !important;
}

.pdf-td-code {
  font-family: monospace;
  color: #0A2540;
  font-weight: 700;
}

.btn-table-quote {
  background: #F26522;
  color: #FFFFFF;
  border: none;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-table-quote:hover {
  background: #D9531A;
}

.pdf-table-note {
  font-size: 8.5px;
  color: #64748B;
  font-style: italic;
  margin-top: 3px;
}

/* BOM Table */
.pdf-bom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 8px;
}

.pdf-bom-table th {
  background: #0F172A;
  color: #FFFFFF;
  font-size: 7.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 4px;
  text-align: left;
  white-space: nowrap;
}

.pdf-bom-table td {
  padding: 2px 4px;
  border-bottom: 1px solid #E2E8F0;
  color: #334155;
  font-size: 8px;
}

.text-center {
  text-align: center;
}

/* Pressure-Temperature Rating Chart Box */
.pdf-chart-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  padding: 6px;
  margin-bottom: 6px;
}

.pdf-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.pdf-chart-title {
  font-size: 9px;
  font-weight: 800;
  color: #0A2540;
}

.pdf-chart-badge {
  font-size: 8px;
  font-weight: 700;
  color: #F26522;
  background: rgba(242, 101, 34, 0.1);
  padding: 1px 4px;
  border-radius: 3px;
}

.pdf-pt-svg {
  width: 100%;
  height: auto;
  display: block;
}

.pdf-features-mini {
  font-size: 9.5px;
  color: #334155;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.text-orange {
  color: #F26522 !important;
}

/* Running Footer */
.pdf-page-footer {
  margin-top: auto;
  border-top: 1.5px solid #0A2540;
  padding-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: #64748B;
  letter-spacing: 0.2px;
}

.pdf-footer-left strong {
  color: #0A2540;
}

.pdf-footer-left a {
  color: #F26522;
  text-decoration: none;
}

.pdf-footer-mid {
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  font-size: 8px;
}

.pdf-footer-right strong {
  color: #0A2540;
  font-size: 10px;
}

/* Empty State */
.pdf-empty-state {
  color: #FFFFFF;
  text-align: center;
  padding: 60px 20px;
  font-size: 15px;
}

/* ============================================================
   THEMES: Dark Studio & Cyan Blueprint
   ============================================================ */

/* Dark Studio Theme */
.theme-dark .pdf-viewport {
  background: #111827;
}

.theme-dark .pdf-page-sheet {
  background: #1F2937;
  color: #F9FAFB;
  border-color: #374151;
  background-image: none;
}

.theme-dark .pdf-page-header {
  border-bottom-color: #F26522;
}

.theme-dark .pdf-brand-name {
  color: #F9FAFB;
}

.theme-dark .pdf-cert-title {
  color: #F9FAFB;
}

.theme-dark .pdf-product-title {
  color: #FFFFFF;
}

.theme-dark .pdf-sec-heading,
.theme-dark .pdf-sec-heading-sm {
  color: #F9FAFB;
  border-bottom-color: #374151;
}

.theme-dark .pdf-dual-col-cad,
.theme-dark .pdf-dual-col-info,
.theme-dark .pdf-dual-col-bom,
.theme-dark .pdf-dual-col-chart,
.theme-dark .pdf-matrix-grid,
.theme-dark .pdf-quick-specs-box,
.theme-dark .pdf-chart-box {
  background: #111827;
  border-color: #374151;
  color: #D1D5DB;
}

.theme-dark .pdf-matrix-val,
.theme-dark .pdf-sec-desc,
.theme-dark .pdf-features-mini {
  color: #E5E7EB;
}

.theme-dark .pdf-spec-table th,
.theme-dark .pdf-bom-table th {
  background: #0F172A;
  border-color: #374151;
}

.theme-dark .pdf-spec-table td,
.theme-dark .pdf-bom-table td {
  border-color: #374151;
  color: #D1D5DB;
}

.theme-dark .pdf-spec-table tbody tr:nth-child(even) {
  background: #182234;
}

.theme-dark .pdf-td-code {
  color: #60A5FA;
}

.theme-dark .pdf-page-footer {
  border-top-color: #F26522;
  color: #9CA3AF;
}

.theme-dark .pdf-footer-left strong,
.theme-dark .pdf-footer-right strong {
  color: #F9FAFB;
}

/* Cyan Blueprint Theme */
.theme-blueprint .pdf-viewport {
  background: #032541;
}

.theme-blueprint .pdf-page-sheet {
  background: #0B3C68;
  color: #E0F2FE;
  border-color: #0284C7;
  background-image: linear-gradient(to right, rgba(2, 132, 199, 0.15) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(2, 132, 199, 0.15) 1px, transparent 1px);
}

.theme-blueprint .pdf-brand-name,
.theme-blueprint .pdf-cert-title,
.theme-blueprint .pdf-product-title,
.theme-blueprint .pdf-sec-heading,
.theme-blueprint .pdf-sec-heading-sm {
  color: #FFFFFF;
}

.theme-blueprint .pdf-dual-col-cad,
.theme-blueprint .pdf-dual-col-info,
.theme-blueprint .pdf-dual-col-bom,
.theme-blueprint .pdf-dual-col-chart,
.theme-blueprint .pdf-matrix-grid,
.theme-blueprint .pdf-quick-specs-box,
.theme-blueprint .pdf-chart-box {
  background: rgba(10, 37, 64, 0.6);
  border-color: #0284C7;
  color: #BAE6FD;
}

.theme-blueprint .pdf-matrix-val,
.theme-blueprint .pdf-sec-desc,
.theme-blueprint .pdf-features-mini {
  color: #FFFFFF;
}

.theme-blueprint .pdf-spec-table th,
.theme-blueprint .pdf-bom-table th {
  background: #032541;
  border-color: #0284C7;
  color: #7DD3FC;
}

.theme-blueprint .pdf-spec-table td,
.theme-blueprint .pdf-bom-table td {
  border-color: #0284C7;
  color: #E0F2FE;
}

.theme-blueprint .pdf-spec-table tbody tr:nth-child(even) {
  background: rgba(3, 37, 65, 0.4);
}

.theme-blueprint .pdf-td-code {
  color: #FDBA74;
}

/* ============================================================
   Print Media Styles (@media print)
   ============================================================ */
@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  header.header,
  footer.footer,
  .page-head,
  .demo-banner-box,
  .pdf-filter-strip,
  .pdf-toolbar,
  .pdf-studio-sidebar,
  .to-top,
  .rfq-bar,
  .compare-bar,
  .modal-overlay,
  .nav-toggle,
  .btn-pdf-quote,
  .btn-table-quote,
  .pdf-book-crease {
    display: none !important;
  }

  .pdf-studio-frame,
  .pdf-studio-body,
  .pdf-book-spread {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    display: block !important;
  }

  .pdf-viewport {
    background: transparent !important;
    padding: 0 !important;
    overflow: visible !important;
    max-height: none !important;
    display: block !important;
  }

  .pdf-zoom-wrapper {
    transform: none !important;
    display: block !important;
  }

  .pdf-book-page-wrap {
    width: 100% !important;
    display: block !important;
  }

  .pdf-page-sheet {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    padding: 10mm 14mm !important;
    box-shadow: none !important;
    border: none !important;
    page-break-after: always !important;
    page-break-inside: avoid !important;
    background: #FFFFFF !important;
    color: #000000 !important;
    background-image: none !important;
  }

  @page {
    size: A4 portrait;
    margin: 8mm;
  }
}

/* Mobile & Tablet Responsive */
@media (max-width: 1024px) {
  .pdf-book-spread {
    flex-direction: column;
  }
  .pdf-book-crease {
    display: none;
  }
  .pdf-book-page-wrap {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .pdf-studio-sidebar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 280px;
    box-shadow: 4px 0 16px rgba(0,0,0,0.5);
  }
  .pdf-page-sheet {
    width: 100%;
    min-height: auto;
    padding: 18px 16px;
  }
  .pdf-dual-grid {
    grid-template-columns: 1fr;
  }
  .pdf-matrix-grid {
    grid-template-columns: 1fr;
  }
  .pdf-title-block {
    flex-direction: column;
    align-items: flex-start;
  }
  .pdf-title-right {
    width: 100%;
    justify-content: space-between;
  }
  .pdf-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .pdf-toolbar-group {
    justify-content: space-between;
    width: 100%;
  }
  .pdf-btn-label {
    display: none;
  }
}
