/* Report View Styles */

@media print {
    .sidebar, .topbar, .btn { display: none !important; }
    .main-content { margin-left: 0 !important; }
    .report-view { box-shadow: none !important; padding: 0 !important; }
}

.report-view {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.report-header {
    border-bottom: 3px solid var(--navy);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.report-header h1 {
    font-size: 32px;
    color: var(--navy);
    margin-bottom: 15px;
}

.report-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.meta-item {
    font-size: 14px;
    color: #64748b;
}

.meta-item strong {
    color: var(--navy);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.status-draft {
    background: #f1f5f9;
    color: #475569;
}

.status-badge.status-in-review {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.status-final {
    background: #d1fae5;
    color: #065f46;
}

.report-section {
    margin-bottom: 40px;
    page-break-inside: avoid;
}

.report-section h2 {
    font-size: 24px;
    color: var(--navy);
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.subsection {
    margin-bottom: 25px;
}

.subsection h3 {
    font-size: 18px;
    color: var(--navy);
    margin-bottom: 10px;
}

.subsection p {
    color: #475569;
    line-height: 1.6;
}

.target-block {
    background: #f8fafc;
    border-left: 4px solid var(--orange);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.target-block h3 {
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 5px;
}

.context {
    color: #64748b;
    font-style: italic;
    margin-bottom: 15px;
}

.assets-list h4 {
    font-size: 14px;
    color: var(--navy);
    margin-bottom: 8px;
}

.assets-list ul {
    margin-left: 20px;
}

.assets-list li {
    color: #475569;
    margin-bottom: 5px;
}

.finding-report {
    border: 1px solid #e5e7eb;
    border-left: 4px solid #64748b;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    page-break-inside: avoid;
}

.finding-report.severity-critical {
    border-left-color: #dc2626;
    background: #fef2f2;
}

.finding-report.severity-high {
    border-left-color: #ea580c;
    background: #fff7ed;
}

.finding-report.severity-medium {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.finding-report.severity-low {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.finding-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.finding-report-header h4 {
    font-size: 18px;
    color: var(--navy);
}

.severity-tag {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.severity-tag.critical { background: #dc2626; color: white; }
.severity-tag.high { background: #ea580c; color: white; }
.severity-tag.medium { background: #f59e0b; color: white; }
.severity-tag.low { background: #10b981; color: white; }

.finding-details {
    width: 100%;
    border-collapse: collapse;
}

.finding-details th {
    text-align: left;
    padding: 8px;
    width: 150px;
    color: var(--navy);
    font-weight: 600;
    vertical-align: top;
}

.finding-details td {
    padding: 8px;
    color: #475569;
}

.finding-details tr {
    border-bottom: 1px solid #e5e7eb;
}

.report-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* Versions Page */
.versions-container {
    max-width: 900px;
    margin: 0 auto;
}

.versions-header {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.versions-header h2 {
    font-size: 24px;
    color: var(--navy);
    margin-bottom: 10px;
}

.versions-header p {
    color: #64748b;
}

.versions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.version-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s;
}

.version-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.version-card.latest {
    border-color: var(--orange);
    border-width: 2px;
}

.version-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.version-badge {
    background: var(--navy);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 18px;
}

.latest-badge {
    background: var(--orange);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.version-details {
    flex: 1;
}

.version-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-row {
    font-size: 14px;
    color: #64748b;
}

.meta-row strong {
    color: var(--navy);
    margin-right: 8px;
}

.version-actions {
    display: flex;
    gap: 10px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
}

.modal-content h3 {
    color: var(--navy);
    margin-bottom: 15px;
}

.share-link-box {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.share-link-box input {
    flex: 1;
}

/* Artefacts List View */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.filter-link {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    color: #64748b;
    font-size: 14px;
    transition: all 0.2s;
}

.filter-link:hover {
    background: #f1f5f9;
    color: var(--navy);
}

.filter-link.active {
    background: var(--orange);
    color: white;
    font-weight: 600;
}

.artefacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.artefact-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s;
}

.artefact-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.artefact-card h3 {
    font-size: 18px;
    color: var(--navy);
    margin-bottom: 15px;
}

.artefact-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
    padding: 15px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.artefact-meta .meta-item {
    font-size: 13px;
    color: #64748b;
}

.artefact-meta .meta-item strong {
    color: var(--navy);
    display: block;
    margin-bottom: 3px;
}

/* Dashboard Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--navy);
}

.stat-label {
    font-size: 14px;
    color: #64748b;
    text-transform: uppercase;
}

.artefact-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.artefact-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.artefact-meta {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 15px;
}

.artefact-actions {
    display: flex;
    gap: 10px;
}

.type-section {
    margin-bottom: 40px;
}

.type-section h2 {
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

/* Post Mortem Report Styles */
.timeline-entry {
    background: #f8fafc;
    border-left: 4px solid var(--orange);
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.timeline-entry strong {
    color: var(--navy);
}

.action-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 10px;
}

.action-item p {
    margin-bottom: 5px;
}

.action-item em {
    color: #64748b;
    font-size: 13px;
}

/* Context Block (Batch 2) */
.context-block {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
}

.context-block h3 {
    margin: 0 0 15px 0;
    color: #92400e;
    font-size: 18px;
}

.context-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.context-item {
    font-size: 14px;
}

.context-item strong {
    color: #78350f;
    display: block;
    margin-bottom: 4px;
}
