/* ==========================================================================
   CI ANDINA SUSTENTABLE SAS - AUTHENTIC OFFICIAL PAPER DOCUMENT STYLES
   Exact reproduction of Document 02596 & Official ISCC EU Autodeclaration
   ========================================================================== */

.paper-sheet-preview {
  background: #FFFFFF !important;
  color: #1E293B !important;
  font-family: 'Segoe UI', Arial, sans-serif;
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  padding: 38px 44px;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
}

/* Botones dentro del documento de papel (Alto Contraste) */
.paper-sheet-preview .btn-secondary {
  background: #0F172A !important;
  color: #FFFFFF !important;
  border: 1px solid #1E293B !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

.paper-sheet-preview .btn-secondary:hover {
  background: #10B981 !important;
  color: #FFFFFF !important;
  border-color: #059669 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

.iscc-doc-footer-meta .btn-secondary {
  background: #064E3B !important;
  color: #A7F3D0 !important;
  border: 1px solid #059669 !important;
}

.iscc-doc-footer-meta .btn-secondary:hover {
  background: #10B981 !important;
  color: #FFFFFF !important;
}

/* -------------------------------------------------------------
   1. CERTIFICADO 02596 OFFICIAL STYLES
   ------------------------------------------------------------- */
.cert-02596-doc {
  font-size: 13px;
  line-height: 1.5;
}

.cert-02596-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.cert-02596-logo {
  height: 58px;
  width: auto;
}

.cert-02596-title-block {
  text-align: center;
}

.cert-02596-title-block h3 {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A !important;
  margin: 0 0 2px 0;
  text-transform: none;
}

.cert-02596-title-block h4 {
  font-size: 13px;
  font-weight: 700;
  color: #1E293B !important;
  margin: 0 0 4px 0;
}

.cert-02596-title-block .cert-recoleccion-num {
  font-size: 15px;
  font-weight: 900;
  color: #0F172A !important;
}

.cert-02596-stamp-iscc {
  height: 64px;
  width: auto;
}

.cert-02596-company-sub {
  text-align: center;
  margin-bottom: 16px;
}

.cert-02596-company-sub h5 {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A !important;
  margin: 0;
}

.cert-02596-legal-body {
  font-size: 11.5px;
  line-height: 1.55;
  color: #1E293B !important;
  text-align: justify;
  margin-bottom: 16px;
}

.cert-02596-table-bar {
  background: #7CB342;
  color: #0F172A;
  font-weight: 800;
  font-size: 12px;
  text-align: center;
  padding: 4px 8px;
  border-top: 1px solid #689F38;
  border-left: 1px solid #689F38;
  border-right: 1px solid #689F38;
}

.cert-02596-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
  font-size: 12px;
}

.cert-02596-table td {
  border: 1px solid #CBD5E1;
  padding: 5px 10px;
  color: #1E293B !important;
}

.cert-02596-table td.td-label {
  font-weight: 800;
  width: 32%;
  background: #F8FAFC;
  color: #0F172A !important;
}

.cert-02596-table td.td-val {
  font-weight: 500;
  color: #0F172A !important;
}

.cert-02596-bottom-note {
  font-size: 10.5px;
  color: #475569 !important;
  text-align: center;
  margin: 14px 0 20px 0;
}

.cert-02596-signature-block {
  margin-bottom: 24px;
}

.cert-02596-signature-img {
  height: 48px;
  display: block;
  margin-bottom: 4px;
}

.cert-02596-signer-name {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A !important;
}

.cert-02596-signer-role {
  font-size: 11.5px;
  color: #475569 !important;
}

.cert-02596-footer-ribbon {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid #E2E8F0;
  padding-top: 14px;
  margin-top: 10px;
}

.cert-02596-footer-contacts {
  font-size: 10px;
  color: #475569 !important;
  line-height: 1.6;
}

.cert-02596-footer-contacts a {
  color: #16A34A !important;
  text-decoration: none;
  font-weight: 600;
}

.cert-02596-footer-art {
  height: 52px;
  width: auto;
}

/* -------------------------------------------------------------
   2. AUTODECLARACIÓN ISCC EU 2-PAGE 3D FLIP VIEWER STYLES
   ------------------------------------------------------------- */
.iscc-viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 23, 18, 0.95);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  max-width: 820px;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-md);
}

.iscc-tab-btn-group {
  display: flex;
  gap: 8px;
}

.iscc-nav-page-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.iscc-nav-page-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border-color: rgba(74, 222, 128, 0.35);
}

.iscc-nav-page-btn.active {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  border-color: #34D399;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.iscc-page-indicator-pill {
  font-size: 0.8rem;
  font-weight: 700;
  color: #4ADE80;
  background: rgba(16, 185, 129, 0.12);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.iscc-page-container {
  perspective: 1500px;
  min-height: 750px;
  position: relative;
  overflow: hidden;
}

.iscc-official-page {
  display: none;
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.iscc-official-page.active-page {
  display: block;
}

.iscc-official-doc {
  font-size: 11px;
  line-height: 1.45;
  color: #000000 !important;
}

.iscc-top-dark-bar {
  background: #52525B;
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 12px;
}

.iscc-sub-notice {
  font-size: 11px;
  font-weight: 700;
  color: #000000 !important;
  margin-bottom: 6px;
}

.iscc-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
  font-size: 10.5px;
}

.iscc-info-table td {
  border: 1px solid #9CA3AF;
  padding: 4px 8px;
  color: #000000 !important;
}

.iscc-info-table td.iscc-td-left {
  width: 48%;
  background: #F9FAFB;
  font-weight: 500;
}

.iscc-info-table td.iscc-td-right {
  width: 52%;
  font-weight: 600;
}

.iscc-statement-intro {
  font-size: 11px;
  line-height: 1.5;
  margin: 14px 0 10px 0;
  text-align: justify;
}

.iscc-ol-statements {
  padding-left: 18px;
  margin: 0 0 16px 0;
}

.iscc-ol-statements li {
  margin-bottom: 8px;
  font-size: 10.5px;
  line-height: 1.45;
  text-align: justify;
}

.iscc-doc-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #D1D5DB;
  padding-top: 10px;
  margin-top: 16px;
  font-size: 10px;
  color: #4B5563 !important;
}

.iscc-signature-row {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 11px;
  font-weight: 600;
}

.iscc-canvas-sign-area {
  border: 1px dashed #64748B;
  background: #F8FAFC;
  height: 80px;
  margin-top: 6px;
  border-radius: 4px;
  position: relative;
}

.iscc-footnotes {
  font-size: 8.5px;
  line-height: 1.35;
  color: #4B5563 !important;
  margin-top: 14px;
  border-top: 1px solid #E5E7EB;
  padding-top: 8px;
}
