﻿/* =================================================================
   VerifierRiskDocument.css  Ã¢â‚¬â€  Risk Assignment Doc + Report Preview
   (Risk doc page aligns with Verifier queue / Video details Ã¢â‚¬â€ VerifierPage.css)
   ================================================================= */

/* Risk Assignment page: inherits .dashboard-main.vp-main from VerifierPage.css */
.dashboard-main.vrd-page {
  min-width: 0;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ 2. Report preview shell Ã¢â€â‚¬Ã¢â€â‚¬ */
.dashboard-main.rp-shell {
  background: var(--theme-gray-50);
  padding: 0;
  gap: 0;
  font-family: 'Inter', system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* Inner scroll on .rp-table-outer — keep risk preview in the shell column */
.app-shell-content-main .dashboard-main.rp-shell {
  overflow: hidden;
}

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   RISK ASSIGNMENT DOCUMENT  (vrd-*)
   Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */

/* Breadcrumb (above hero, same shell as Verifier queue) */
.vrd-breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px var(--app-page-pad-x, 22px) 0;
  font-size: 14px;
  color: var(--theme-gray-500);
  font-family: var(--vp-font, 'Plus Jakarta Sans', system-ui, sans-serif);
}

.vrd-crumb-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--theme-red-bright);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color 0.15s;
}

.vrd-crumb-back:hover {
  color: var(--theme-red);
  text-decoration: underline;
}

.vrd-crumb-sep {
  color: var(--theme-gray-200);
}

.vrd-crumb-cur {
  color: var(--theme-gray-600);
  font-weight: 600;
}

/* Hero action buttons (on LIGHT .vp-hero â€” white/f8fafc background) */
.vrd-btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--theme-gray-700);
  background: var(--theme-white);
  border: 1.5px solid var(--theme-gray-200);
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
  transition:
    background 0.18s,
    border-color 0.18s,
    box-shadow 0.18s,
    transform 0.15s;
}

.vrd-btn-hero-outline:hover:not(:disabled) {
  background: var(--theme-gray-50);
  border-color: var(--theme-gray-400);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.vrd-btn-hero-outline:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.vrd-btn-hero-outline:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.vrd-btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--theme-white);
  background: linear-gradient(135deg, var(--theme-red-bright) 0%, var(--theme-red) 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(220, 38, 38, 0.38);
  transition:
    filter 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}

.vrd-btn-hero-primary:hover:not(:disabled) {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.42);
}

.vrd-btn-hero-primary:active:not(:disabled) {
  transform: translateY(0);
  filter: brightness(0.97);
}

.vrd-btn-hero-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Generated badge (on light hero) */
.vrd-generated-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 700;
  animation: vrd-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes vrd-pop {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* Buttons */
.vrd-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: all 0.18s;
  border: none;
}
.vrd-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.vrd-btn--outline {
  background: var(--theme-white); color: var(--theme-gray-600);
  border: 1.5px solid var(--theme-gray-200);
}
.vrd-btn--outline:hover { background: var(--theme-gray-50); border-color: var(--theme-gray-400); }
.vrd-btn--red {
  background: linear-gradient(135deg, var(--theme-red-bright), var(--theme-red-deep));
  color: var(--theme-white);
  box-shadow: 0 4px 12px rgba(192,57,43,0.28);
}
.vrd-btn--red:hover:not(:disabled) { box-shadow: 0 6px 18px rgba(192,57,43,0.40); transform: translateY(-1px); }
.vrd-btn--dark {
  background: linear-gradient(135deg, var(--theme-gray-900), var(--theme-black));
  color: var(--theme-white);
  box-shadow: 0 4px 12px rgba(30,58,95,0.24);
}
.vrd-btn--dark:hover:not(:disabled) { box-shadow: 0 6px 18px rgba(30,58,95,0.35); transform: translateY(-1px); }
.vrd-btn--ghost {
  background: var(--theme-gray-50); color: var(--theme-gray-600);
  border: 1.5px solid var(--theme-gray-100);
}
.vrd-btn--ghost:hover { background: var(--theme-gray-100); }

/* Mini spinner */
.vrd-mini-spin {
  width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top: 2px solid var(--theme-white);
  border-radius: 50%;
  animation: vrd-spin 0.6s linear infinite;
  flex-shrink: 0;
}
@keyframes vrd-spin { to { transform: rotate(360deg); } }

/* Meta strip Ã¢â‚¬â€ same band as Verifier .vp-toolbar */
.vrd-meta-strip {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  padding: 10px var(--app-page-pad-x, 22px);
  gap: 0;
  margin-top: 16px;
  background: linear-gradient(180deg, var(--theme-gray-50) 0%, var(--theme-gray-100) 100%);
  border: none;
  border-top: 1px solid rgba(12, 18, 32, 0.06);
  border-bottom: 1px solid rgba(12, 18, 32, 0.09);
  border-radius: 0 0 12px 12px;
  font-family: var(--vp-font, 'Plus Jakarta Sans', system-ui, sans-serif);
}

.vrd-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 16px;
  min-width: 0;
}

.vrd-meta-sep {
  width: 1px;
  background: rgba(12, 18, 32, 0.1);
  margin: 10px 0;
  flex-shrink: 0;
}

.vrd-meta-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--theme-gray-500);
}

.vrd-meta-val {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--theme-black);
  word-break: break-word;
}

/* Error Ã¢â‚¬â€ extends .vp-error */
.vrd-err-bar.vp-error {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.vrd-retry {
  background: none;
  border: 1px solid var(--theme-red);
  color: var(--theme-red);
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.vrd-retry:hover {
  background: var(--theme-red);
  color: var(--theme-white);
}

/* Loading Ã¢â‚¬â€ uses .vp-loading / .vp-spinner */
.vrd-loader.vp-loading {
  padding: 64px 20px;
}

/* Table wrapper Ã¢â‚¬â€ extends .vp-table-wrapper */
.vrd-tbl-wrap.vp-table-wrapper {
  max-height: min(560px, calc(100vh - 320px));
  overflow-y: auto;
  border-bottom: 1px solid rgba(12, 18, 32, 0.09);
}

/* Table Ã¢â‚¬â€ .vp-table + risk-specific overrides */
.vrd-table.vp-table {
  font-size: 0.875rem;
  min-width: 860px;
}

/* Multi-line headers: override .vp-th (no all-caps for long titles) */
.vrd-th.vp-th {
  white-space: normal;
  vertical-align: top;
  line-height: 1.35;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--theme-gray-100);
  color: var(--theme-gray-600);
  border-right: 1px solid var(--theme-gray-100);
  border-bottom: 2px solid var(--theme-gray-100);
  text-transform: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.vrd-th.vp-th:last-child {
  border-right: none;
}

.vrd-th--narrow {
  white-space: nowrap;
}

.vrd-th-sub {
  display: block;
  font-weight: 500;
  font-size: 0.65rem;
  opacity: 0.85;
  margin-top: 4px;
  text-transform: none;
  letter-spacing: 0.02em;
}

.vrd-td.vp-td {
  padding: 12px 13px;
  color: var(--theme-gray-600);
  border-bottom: 1px solid var(--theme-gray-100);
}

.vrd-tr:hover .vrd-td {
  background: rgba(220, 38, 38, 0.04);
}

.vrd-tr:last-child .vrd-td {
  border-bottom: none;
}
.vrd-td--ctr { text-align: center; }
.vrd-td--mono { font-family: monospace; font-size: 13px; color: var(--theme-gray-500); font-weight: 600; }
.vrd-td--img { text-align: center; padding: 7px; }

.vrd-snap-img {
  width: 88px;
  height: 60px;
  min-width: 88px;
  min-height: 60px;
  max-width: 88px;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.14);
  border: 2px solid var(--theme-gray-100);
  display: block;
  margin: 0 auto;
  vertical-align: middle;
  background: var(--theme-gray-100);
}
.vrd-snap-ph {
  width: 88px; height: 60px;
  background: var(--theme-gray-50); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: var(--theme-gray-400); margin: 0 auto;
  border: 1.5px dashed var(--theme-gray-200);
}

/* Badges */
.vrd-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 26px;
  border-radius: 6px; font-size: 14px; font-weight: 700; padding: 0 6px;
}
.vrd-badge--l { background: var(--theme-gray-50); color: var(--theme-red-deep); }
.vrd-badge--s { background: rgba(255, 255, 255, 0.6); color: var(--theme-red-deep); border: 1.5px solid var(--theme-gray-200); }

.vrd-rpn-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 28px;
  border-radius: 7px; font-size: 14px; font-weight: 800; padding: 0 7px;
}
.vrd-rpn--hi  { background: var(--theme-red-soft); color: var(--theme-red-bright); border: 1.5px solid var(--theme-red-muted); }
.vrd-rpn--mid { background: rgba(255, 255, 255, 0.6); color: var(--theme-red-deep); border: 1.5px solid var(--theme-gray-200); }
.vrd-rpn--lo  { background: var(--theme-gray-100); color: var(--theme-gray-700); border: 1.5px solid var(--theme-gray-200); }

/* Empty */
.vrd-td-empty.vp-empty {
  padding: 56px 24px !important;
}

.vrd-td-empty svg {
  display: block;
  margin: 0 auto 10px;
}

.vrd-td-empty p {
  font-size: 0.95rem;
  margin: 0;
}

/* Footer Ã¢â‚¬â€ extends .vp-footer */
.vrd-foot.vp-footer {
  border-radius: 0;
}

.vrd-btn-footer-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--theme-white);
  background: linear-gradient(135deg, var(--theme-gray-900), var(--theme-black));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(30, 58, 95, 0.28);
  transition:
    box-shadow 0.15s,
    transform 0.15s,
    filter 0.15s;
}

.vrd-btn-footer-dark:hover:not(:disabled) {
  box-shadow: 0 6px 18px rgba(30, 58, 95, 0.35);
  transform: translateY(-1px);
}

.vrd-btn-footer-dark:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Confirm modal Ã¢â€â‚¬Ã¢â€â‚¬ */
.vrd-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  animation: vrd-fade 0.2s ease;
}
@keyframes vrd-fade { from { opacity: 0; } to { opacity: 1; } }

.vrd-confirm-modal {
  background: var(--theme-white); border-radius: 20px;
  padding: 36px 40px; min-width: 360px; max-width: 430px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
  text-align: center;
  animation: vrd-pop 0.28s cubic-bezier(0.34,1.56,0.64,1);
}
.vrd-confirm-icon {
  width: 58px; height: 58px;
  background: linear-gradient(135deg, var(--theme-red-bright), var(--theme-red-deep));
  border-radius: 50%; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(192,57,43,0.28);
}
.vrd-confirm-modal h3 { font-size: 21px; font-weight: 700; color: var(--theme-black); margin: 0 0 8px; }
.vrd-confirm-modal p  { font-size: 16px; color: var(--theme-gray-500); margin: 0 0 26px; line-height: 1.6; }
.vrd-confirm-btns { display: flex; gap: 12px; justify-content: center; }
.vrd-confirm-btns .vrd-btn { flex: 1; max-width: 140px; padding: 10px 18px; }

.vrd-return-modal .vrd-return-textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 18px;
  padding: 10px 12px;
  border: 1px solid var(--theme-gray-100);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  min-height: 88px;
}
.vrd-return-modal .vrd-return-textarea:focus {
  outline: none;
  border-color: var(--theme-red-bright);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   REPORT PREVIEW  (rp-*)
   Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */

/* Toolbar (screen only) */
.rp-toolbar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 24px;
  background: var(--theme-white);
  border-bottom: 1px solid var(--theme-gray-100);
  flex-wrap: wrap;
  flex-shrink: 0;
  position: sticky; top: 0; z-index: 20;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.rp-back-btn {
  background: var(--theme-white); border: 1.5px solid var(--theme-gray-100);
  border-radius: 8px; padding: 8px 14px;
  font-size: 14px; font-weight: 600; color: var(--theme-gray-600);
  cursor: pointer; transition: all 0.15s;
}
.rp-back-btn:hover { background: var(--theme-gray-50); border-color: var(--theme-gray-400); }

.rp-success-chip {
  display: flex; align-items: center; gap: 7px;
  background: var(--theme-gray-100); color: var(--theme-gray-700);
  border: 1px solid var(--theme-gray-200); border-radius: 20px;
  padding: 6px 14px; font-size: 14px; font-weight: 700;
}
.rp-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--theme-gray-700);
  box-shadow: 0 0 6px rgba(16,185,129,0.6);
  animation: rp-pulse 1.8s ease-in-out infinite;
}
@keyframes rp-pulse {
  0%, 100% { opacity: 1; } 50% { opacity: 0.5; }
}
.rp-print-btn {
  display: flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, var(--theme-gray-900), var(--theme-black));
  color: var(--theme-white); border: none; border-radius: 8px;
  padding: 9px 18px; font-size: 14px; font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(30,58,95,0.24);
  margin-left: auto;
  transition: all 0.15s;
}
.rp-print-btn:hover { box-shadow: 0 6px 18px rgba(30,58,95,0.35); transform: translateY(-1px); }

/* Document body — flex child so .rp-table-outer can scroll vertically */
.rp-doc {
  background: var(--theme-white);
  margin: 20px 16px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  overflow: hidden;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Header table */
.rp-header-table {
  width: 100%; border-collapse: collapse;
  border-bottom: 2px solid var(--theme-red-bright);
  flex-shrink: 0;
}
.rp-header-table td { padding: 12px 16px; vertical-align: middle; }
.rp-meta-cell { background: var(--theme-gray-50); border-right: 1px solid var(--theme-gray-100); }
.rp-meta-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 5px; }
.rp-meta-row:last-child { margin-bottom: 0; }
.rp-meta-lbl { font-size: 12px; font-weight: 700; color: var(--theme-gray-500); min-width: 110px; flex-shrink: 0; text-transform: uppercase; letter-spacing: 0.5px; }
.rp-meta-val { font-size: 14px; font-weight: 600; color: var(--theme-black); }
.rp-title-cell { text-align: center; }
.rp-doc-title  { font-size: 23px; font-weight: 800; color: var(--theme-red-bright); letter-spacing: -0.4px; }
.rp-dateupdated-cell { text-align: right; border-left: 1px solid var(--theme-gray-100); }
.rp-logo-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--theme-red-bright), var(--theme-red-deep));
  border-radius: 50%; margin-top: 8px;
  box-shadow: 0 4px 12px rgba(192,57,43,0.28);
}

/* Report table outer — primary scroll region for long observation lists */
.rp-table-outer {
  flex: 1;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Report table */
.rp-table {
  width: 100%; border-collapse: collapse;
  font-size: 12.5px; min-width: 1100px;
  border: 1px solid var(--theme-gray-200);
}

.rp-th {
  padding: 9px 10px;
  font-size: 11.5px; font-weight: 700;
  text-align: left; vertical-align: bottom;
  line-height: 1.35; white-space: normal;
  border: 1px solid #000000;
  position: sticky; top: 0; z-index: 2;
  background: #ffffff;
  color: #111111;
}
.rp-th--group { background: #f5f5f5 !important; text-align: center; border: 1px solid #000000; }
.rp-th--serial { width: 36px; text-align: center; }
.rp-th--img    { width: 100px; text-align: center; }
.rp-th--num    { width: 66px; text-align: center; }
.rp-th--wide   { min-width: 120px; }
.rp-th-hint    { display: block; font-weight: 400; font-size: 10.5px; opacity: 0.65; margin-top: 2px; }

.rp-thead-top th, .rp-thead-sub th {
  position: sticky; z-index: 2;
}
.rp-thead-top th { top: 0; }
.rp-thead-sub th {
  top: 37px; /* offset below the first header row (~37px tall) */
  background: #f5f5f5 !important;
  color: #111111 !important;
  border: 1px solid #000000;
  font-size: 11px; text-align: center;
}

.rp-td {
  padding: 9px 10px;
  border: 1px solid var(--theme-gray-100);
  vertical-align: middle;
  color: var(--theme-gray-600); line-height: 1.45; font-size: 12.5px;
}
.rp-tr--even .rp-td { background: var(--theme-white); }
.rp-tr--odd  .rp-td { background: var(--theme-gray-50); }
.rp-tr:hover .rp-td { background: var(--theme-red-soft) !important; }

.rp-td--center { text-align: center; }
.rp-td--mono   { font-family: monospace; font-size: 12px; }
.rp-td--img    { text-align: center; padding: 6px; }

.rp-snap-img {
  width: 80px; height: 54px; object-fit: cover;
  border-radius: 6px; display: block; margin: 0 auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  border: 1.5px solid var(--theme-gray-100);
}
.rp-snap-ph {
  width: 80px; height: 54px; background: var(--theme-gray-50);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--theme-gray-400); margin: 0 auto;
  border: 1px dashed var(--theme-gray-200);
}

.rp-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 24px; border-radius: 5px; font-weight: 700; font-size: 13px;
}
.rp-num--l { background: var(--theme-gray-50); color: var(--theme-red-deep); }
.rp-num--s { background: rgba(255, 255, 255, 0.6); color: var(--theme-red-deep); border: 1px solid var(--theme-gray-200); }

.rp-rpn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 26px; border-radius: 6px; font-weight: 800; font-size: 13px;
}
.rp-rpn--high { background: var(--theme-red-soft); color: var(--theme-red-bright); border: 1px solid var(--theme-red-muted); }
.rp-rpn--med  { background: rgba(255, 255, 255, 0.6); color: var(--theme-red-deep); border: 1px solid var(--theme-gray-200); }
.rp-rpn--low  { background: var(--theme-gray-100); color: var(--theme-gray-700); border: 1px solid var(--theme-gray-200); }

.rp-empty {
  text-align: center; padding: 50px 24px !important;
  color: var(--theme-gray-400); font-style: italic; font-size: 15px;
}

/* Document footer */
.rp-doc-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--theme-gray-100);
  background: var(--theme-gray-50);
  font-size: 12px; color: var(--theme-gray-400);
  flex-shrink: 0;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬
   PRINT STYLES
   Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
@media print {
  .no-print { display: none !important; }

  .dashboard-main.rp-shell {
    padding: 0 !important;
    background: var(--theme-white) !important;
  }

  .rp-doc {
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .rp-table-outer {
    max-height: none !important;
    overflow: visible !important;
  }

  .rp-th {
    position: static !important;
    background: #ffffff !important;
    color: #111111 !important;
    border: 1px solid #000000 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .rp-tr--even .rp-td { background: var(--theme-white) !important; }
  .rp-tr--odd  .rp-td { background: var(--theme-gray-50) !important; }

  .rp-snap-img { max-width: 80px; max-height: 54px; }

  @page {
    size: A3 landscape;
    margin: 10mm;
  }
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Responsive Ã¢â€â‚¬Ã¢â€â‚¬ */
@media (max-width: 640px) {
  .dashboard-main.vp-main.vrd-page {
    padding: 0 0 24px;
  }

  .vrd-breadcrumb-bar {
    padding: 12px 16px 0;
  }

  .dashboard-main.rp-shell {
    padding: 0;
  }

  .vrd-meta-strip {
    flex-direction: column;
  }

  .vrd-meta-sep {
    display: none;
  }

  .vrd-meta-item {
    border-bottom: 1px solid rgba(12, 18, 32, 0.06);
    padding: 12px 16px;
  }

  .vrd-meta-item:last-child {
    border-bottom: none;
  }

  .vp-hero-aside {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .rp-toolbar {
    padding: 10px 12px;
  }

  .rp-doc {
    margin: 10px 8px 32px;
  }
}
