/**
 * PDF Popup Styles
 * External stylesheet for all PDF generation popups
 * This file is cache-busted during build
 */

/* Page Setup */
@page {
    margin: 0.5in;
    size: letter;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    line-height: 1.4;
    font-size: 12px;
    margin: 0;
    padding: 0;
}

/* Logo */
.logo {
    text-align: center;
    margin-top: 10px;
}

.logo img {
    max-width: 300px;
    height: auto;
}

.logo-sm img {
    max-width: 160px;
}

.logo-xs img {
    max-width: 140px;
}

/* Header Styles */
.header {
    text-align: center;
    border-bottom: 3px solid #06b6d4;
    padding-bottom: 8px;
}

.header h1 {
    color: #0f172a;
    margin: 0 0 5px 0;
    font-size: 20px;
}

.header p {
    color: #64748b;
    margin: 0;
    font-size: 11px;
}

/* Header Color Variants */
.header-emerald { border-bottom-color: #10b981; }
.header-red { border-bottom-color: #dc2626; }
.header-violet { border-bottom-color: #8b5cf6; }
.header-blue { border-bottom-color: #3b82f6; }
.header-orange { border-bottom-color: #f97316; }
.header-teal { border-bottom-color: #14b8a6; }
.header-sky { border-bottom-color: #0ea5e9; }
.header-green { border-bottom-color: #22c55e; }
.header-indigo { border-bottom-color: #6366f1; }

/* Intro Box */
.intro {
    background: #f1f5f9;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 11px;
}

.intro strong {
    color: #0f172a;
}

/* Grid Layouts */
.grid {
    column-count: 2;
    column-gap: 30px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.three-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

/* Section Styles */
.section {
    margin-bottom: 12px;
    break-inside: avoid;
}

.section-header {
    background: #0f172a;
    color: white;
    padding: 6px 10px;
    border-radius: 5px 5px 0 0;
    font-size: 10px;
    font-weight: bold;
}

.section-content {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 5px 5px;
    padding: 10px;
}

/* Category Styles */
.category {
    margin-bottom: 20px;
    break-inside: avoid;
}

.category-header {
    background: #0f172a;
    color: white;
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.category-icon {
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.category-content {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 15px;
}

/* Checklist Items */
.checklist-item {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.checkbox {
    width: 16px;
    height: 16px;
    border: 2px solid #94a3b8;
    border-radius: 3px;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

.item-content {
    flex: 1;
}

.item-title {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 2px;
}

.item-desc {
    font-size: 9px;
    color: #64748b;
}

/* Priority Badges */
.priority {
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 10px;
    flex-shrink: 0;
}

.priority-critical {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.priority-high {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fcd34d;
}

.priority-medium {
    background: #dbeafe;
    color: #2563eb;
    border: 1px solid #93c5fd;
}

/* Question Blocks */
.question-block {
    margin-bottom: 8px;
    padding: 6px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.question-block h5 {
    margin: 0 0 3px 0;
    font-size: 9px;
    color: #0f172a;
}

.question-block p {
    margin: 0 0 3px 0;
    font-size: 8px;
    color: #475569;
}

.question-block .look-for {
    font-size: 7px;
    color: #10b981;
    font-style: italic;
}

/* Process Steps */
.process-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
}

.step-number {
    width: 18px;
    height: 18px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 9px;
    margin-right: 8px;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 2px 0;
    font-size: 9px;
    color: #0f172a;
}

.step-content p {
    margin: 0;
    font-size: 8px;
    color: #64748b;
}

/* Criteria Boxes */
.criteria-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.criteria-box {
    padding: 6px;
    border-radius: 4px;
    font-size: 8px;
}

.criteria-box.must-have {
    background: #dcfce7;
    border: 1px solid #86efac;
}

.criteria-box.nice-have {
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
}

.criteria-box.red-flag {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.criteria-box h5 {
    margin: 0 0 4px 0;
    font-size: 9px;
    color: #0f172a;
}

.criteria-box ul {
    margin: 0;
    padding-left: 12px;
}

.criteria-box li {
    margin-bottom: 2px;
}

/* Tables */
.scoring-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 8px;
}

.scoring-table th {
    background: #0f172a;
    color: white;
    padding: 5px;
    text-align: left;
}

.scoring-table td {
    padding: 4px 5px;
    border-bottom: 1px solid #e2e8f0;
}

.scoring-table tr:nth-child(even) {
    background: #f8fafc;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}

.comparison-table th {
    background: #0f172a;
    color: white;
    padding: 8px;
    text-align: left;
}

.comparison-table td {
    padding: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table tr:nth-child(even) {
    background: #f8fafc;
}

/* Scoring Section */
.scoring {
    margin-top: 20px;
    padding: 15px;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 8px;
    break-inside: avoid;
}

.scoring h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #0f172a;
}

.scoring table {
    width: 100%;
    font-size: 11px;
}

.scoring td {
    padding: 4px 8px;
    border-bottom: 1px solid #e2e8f0;
}

/* Assessment Box */
.assessment-box {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 5px;
    padding: 8px;
    margin-bottom: 10px;
}

.assessment-box h4 {
    margin: 0 0 5px 0;
    font-size: 10px;
    color: #92400e;
}

.assessment-task {
    margin-bottom: 6px;
}

.assessment-task strong {
    color: #0f172a;
}

/* Reference Section */
.reference-section {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 5px;
    padding: 8px;
}

.reference-section h4 {
    margin: 0 0 6px 0;
    font-size: 10px;
    color: #166534;
}

/* Notes Section */
.notes-section {
    margin-top: 20px;
    padding: 15px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
}

.notes-section h3 {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: #dc2626;
}

.notes-box {
    border: 1px dashed #94a3b8;
    padding: 8px;
    margin-top: 8px;
    border-radius: 4px;
    min-height: 40px;
}

.notes-box h5 {
    margin: 0 0 5px 0;
    font-size: 9px;
    color: #64748b;
}

/* ROI Specific */
.roi-section {
    margin-bottom: 15px;
}

.roi-header {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 6px 6px 0 0;
    font-weight: bold;
    font-size: 11px;
}

.roi-content {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 12px;
}

.roi-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed #86efac;
    font-size: 10px;
}

.roi-row:last-child {
    border-bottom: none;
}

.roi-label {
    color: #166534;
}

.roi-value {
    font-weight: bold;
    color: #0f172a;
}

.roi-input {
    border-bottom: 1px solid #86efac;
    min-width: 80px;
    display: inline-block;
}

/* Roadmap Specific */
.timeline-phase {
    margin-bottom: 15px;
    break-inside: avoid;
}

.phase-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.phase-number {
    width: 28px;
    height: 28px;
    background: #6366f1;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    margin-right: 10px;
}

.phase-title {
    font-size: 12px;
    font-weight: bold;
    color: #0f172a;
}

.phase-duration {
    font-size: 9px;
    color: #6366f1;
    margin-left: auto;
}

.phase-tasks {
    margin-left: 38px;
    font-size: 10px;
}

.phase-task {
    display: flex;
    align-items: center;
    padding: 4px 0;
}

.task-checkbox {
    width: 12px;
    height: 12px;
    border: 1.5px solid #94a3b8;
    border-radius: 2px;
    margin-right: 8px;
}

/* Executive Summary Specific */
.exec-metric {
    text-align: center;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.exec-metric .value {
    font-size: 24px;
    font-weight: bold;
    color: #0ea5e9;
}

.exec-metric .label {
    font-size: 10px;
    color: #64748b;
    margin-top: 4px;
}

.exec-highlight {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.exec-highlight h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
}

.exec-highlight p {
    margin: 0;
    font-size: 11px;
    opacity: 0.9;
}

/* Footer */
.footer {
    margin-top: 10px;
    text-align: center;
    font-size: 0.875rem; /* Equivalent to 12px 0.8rem = ~13px (Slightly larger) 0.875rem = 14px (Standard "small" text)*/
    color: #64748b;
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
    padding-bottom: 10px;
}

.footer a {
    color: #0ea5e9;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Page Break */
.page-break {
    page-break-before: always;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-bold { font-weight: bold; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }

/* Color utilities */
.text-emerald { color: #059669; }
.text-cyan { color: #0891b2; }
.text-amber { color: #d97706; }
.text-red { color: #dc2626; }
.text-slate { color: #64748b; }
.bg-emerald-light { background: #dcfce7; }
.bg-cyan-light { background: #cffafe; }
.bg-amber-light { background: #fef3c7; }
.bg-red-light { background: #fef2f2; }

/* Print-specific */
@media print {
    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .no-print {
        display: none;
    }
}
