/* Screen styles - COMPACT & PROFESSIONAL */
    :root {
        --primary-color: #2c3e50;
        --secondary-color: #3498db;
        --border-color: #e9ecef;
    }

    .report-header {
        background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
        color: white;
        border-radius: 8px;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .header-title {
        font-size: 1.5rem;
        font-weight: 600;
        margin: 0;
    }

    .header-subtitle {
        font-size: 0.9rem;
        opacity: 0.9;
        margin: 0.25rem 0 0 0;
    }

    /* Compact cards */
    .card {
        border: 1px solid var(--border-color);
        border-radius: 8px;
        margin-bottom: 1.5rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    }

    .card-header {
        background-color: #f8f9fa;
        border-bottom: 1px solid var(--border-color);
        padding: 0.75rem 1rem;
        font-size: 1rem;
        font-weight: 600;
    }

    .card-header i {
        color: var(--secondary-color);
        margin-right: 0.5rem;
    }

    .card-body {
        padding: 1rem;
    }

    /* Compact info grid */
    .info-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    @media (max-width: 768px) {
        .info-grid {
            grid-template-columns: 1fr;
        }
    }

    .info-item {
        border: 1px solid var(--border-color);
        border-radius: 6px;
        padding: 0.75rem;
        background: white;
    }

    .info-label {
        font-size: 0.8rem;
        font-weight: 600;
        color: #6c757d;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-bottom: 0.25rem;
    }

    .info-value {
        font-size: 0.95rem;
        color: #212529;
        font-weight: 500;
        min-height: 1.5rem;
    }

    .info-value small {
        font-size: 0.8rem;
        color: #6c757d;
        display: block;
        margin-top: 0.25rem;
    }

    /* Status badges */
    .status-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
        border-radius: 12px;
        font-weight: 500;
        display: inline-block;
    }

    /* Photo gallery */
    .photo-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .photo-item {
        border: 1px solid var(--border-color);
        border-radius: 6px;
        overflow: hidden;
        transition: transform 0.2s;
    }

    .photo-item:hover {
        transform: translateY(-2px);
    }

    .photo-thumb {
        width: 100%;
        height: 120px;
        object-fit: cover;
        cursor: pointer;
    }

    .photo-info {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    /* Action buttons */
    .action-buttons {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .action-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    /* Add professional button styles for PDF links */
.btn-outline-primary, .btn-outline-info {
    border-width: 1px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-outline-info:hover {
    background-color: #0dcaf0;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* PDF icon styling */
.fa-file-pdf {
    color: #dc3545;
}

.fa-file-waveform {
    color: #0dcaf0;
}

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .report-header {
            padding: 1rem;
        }
        
        .header-title {
            font-size: 1.25rem;
        }
        
        .photo-grid {
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        }
        
        .photo-thumb {
            height: 100px;
        }
    }

    @media (max-width: 576px) {
        .card-body {
            padding: 0.75rem;
        }
        
        .action-buttons {
            flex-direction: column;
        }
        
        .action-btn {
            width: 100%;
            text-align: center;
        }
    }
     .card {
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        position: relative;
        overflow: hidden;
    }
    
    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        border-color: var(--secondary-color);
    }
    
    /* Info item hover effects */
    .info-item {
        transition: all 0.25s ease;
        position: relative;
        overflow: hidden;
    }
    
    .info-item:hover {
        background-color: #f8fafc;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
        border-color: var(--secondary-color);
    }
    
    /* Add subtle border animation on info items */
    .info-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
        transition: left 0.5s ease;
    }
    
    .info-item:hover::before {
        left: 100%;
    }
    
    /* Photo item hover enhancement */
    .photo-item {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }
    
    .photo-item:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }
    
    /* Photo overlay effect */
    .photo-item::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.7) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: 6px;
        pointer-events: none;
    }
    
    .photo-item:hover::after {
        opacity: 1;
    }
    
    /* Photo info fade-in on hover */
    .photo-info {
        transition: transform 0.3s ease;
    }
    
    .photo-item:hover .photo-info {
        transform: translateY(-5px);
    }
    
    /* Button hover effects */
    .btn {
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    
    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }
    
    /* Primary button shine effect */
    .btn-primary:hover {
        background: linear-gradient(135deg, var(--secondary-color), #1a74c9);
        border-color: transparent;
    }
    
    /* Outline button hover */
    .btn-outline-light:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: white;
    }
    
    /* Badge hover effects */
    .status-badge {
        transition: all 0.2s ease;
        position: relative;
        overflow: hidden;
    }
    
    .status-badge:hover {
        transform: scale(1.05);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    
    /* Add shine effect to badges on hover */
    .status-badge::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -60%;
        width: 20%;
        height: 200%;
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(30deg);
        transition: left 0.6s ease;
    }
    
    .status-badge:hover::after {
        left: 120%;
    }
    
    /* Report header hover effect */
    .report-header {
        transition: all 0.4s ease;
        position: relative;
        overflow: hidden;
    }
    
    .report-header:hover {
        background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
        box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    }
    
    /* Add subtle pulse animation to report header */
    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.005); }
        100% { transform: scale(1); }
    }
    
    .report-header:hover {
        animation: pulse 2s infinite;
    }
    
    /* Table row hover effects */
    .table tr {
        transition: all 0.2s ease;
    }
    
    .table tr:hover {
        background-color: rgba(52, 152, 219, 0.05) !important;
        transform: translateX(3px);
    }
    
    /* Add left border indicator on table row hover */
    .table tr {
        position: relative;
    }
    
    .table tr::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 3px;
        background-color: var(--secondary-color);
        transform: scaleY(0);
        transition: transform 0.2s ease;
        transform-origin: top;
    }
    
    .table tr:hover::before {
        transform: scaleY(1);
    }
    
    /* Action button group hover */
    .action-buttons .btn {
        transition: all 0.3s ease;
    }
    
    .action-buttons .btn:hover {
        transform: translateY(-3px) scale(1.05);
        z-index: 10;
    }
    
    /* Icon hover effects */
    .card-header i, 
    .header-title i {
        transition: transform 0.3s ease;
    }
    
    .card:hover .card-header i,
    .report-header:hover .header-title i {
        transform: rotate(10deg) scale(1.1);
    }
    
    /* Photo thumbnail hover */
    .photo-thumb {
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .photo-item:hover .photo-thumb {
        transform: scale(1.05);
    }
    
    /* Text color change on hover for info items */
    .info-item:hover .info-label {
        color: var(--secondary-color);
    }
    
    .info-item:hover .info-value {
        color: var(--primary-color);
    }
    
    /* Smooth scroll for the page */
    html {
        scroll-behavior: smooth;
    }
    
    /* Loading animation for page load */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .card {
        animation: fadeInUp 0.6s ease forwards;
        opacity: 0;
    }
    
    .card:nth-child(1) { animation-delay: 0.1s; }
    .card:nth-child(2) { animation-delay: 0.2s; }
    .card:nth-child(3) { animation-delay: 0.3s; }
    .card:nth-child(4) { animation-delay: 0.4s; }
    .card:nth-child(5) { animation-delay: 0.5s; }
    .card:nth-child(6) { animation-delay: 0.6s; }
    
    /* Hover effect for the print button */
    .btn-primary[onclick*="print"]:hover {
        background: linear-gradient(135deg, #28a745, #20c997);
        border-color: transparent;
    }
    
    /* Edit button hover effect */
    .btn-warning:hover {
        background: linear-gradient(135deg, #ffc107, #fd7e14);
        border-color: transparent;
        color: white;
    }
    
    /* Delete button hover (if you add one) */
    .btn-danger:hover {
        background: linear-gradient(135deg, #dc3545, #c82333);
        border-color: transparent;
        transform: translateY(-2px) scale(1.05);
    }

    .ripple {
        position: absolute;
        background: rgba(255, 255, 255, 0.7);
        border-radius: 50%;
        transform: scale(0);
        animation: ripple-animation 0.6s linear;
        pointer-events: none;
        width: 20px;
        height: 20px;
        margin-left: -10px;
        margin-top: -10px;
    }
    
    @keyframes ripple-animation {
        to {
            transform: scale(4);
            opacity: 0;
        }
    }
    
    /* Ensure buttons have relative positioning for ripple */
    .btn {
        position: relative;
        overflow: hidden;
    }

    /* Time display styling */
    .time-display {
        display: inline-block;
        padding: 2px 6px;
        background: #f8f9fa;
        border-radius: 3px;
        font-size: 0.85em;
        border: 1px solid #dee2e6;
    }

    .time-in {
        color: #28a745;
        font-weight: 500;
    }

    .time-out {
        color: #dc3545;
        font-weight: 500;
    }

    /* Clear button styling for time inputs */
.time-clear-btn {
    border-left: none;
    padding: 0.25rem 0.5rem;
}

.time-clear-btn:hover {
    background-color: #f8f9fa;
    color: #dc3545;
}

/* Adjust input group for time fields */
.input-group-sm > .form-control {
    border-right: none;
}

.input-group-sm > .btn {
    border-left: none;
    border-color: #ced4da;
}


/* Add to view_report.css */
.btn-danger.action-btn {
    background: linear-gradient(135deg, #e67070 0%, #e97878 100%);
    border-color: #c18686;
    transition: all 0.3s ease;
}

.btn-danger.action-btn:hover {
    background: linear-gradient(135deg, #e4c0c0 0%, #e2c9c9 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(223, 190, 193, 0.3);
}

/* Loading spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Add this to your existing CSS */
#copyButton:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

#shareOptions button:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

#shareLink {
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Supporting Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.document-item {
    position: relative;
}

.document-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    background: white;
    transition: all 0.3s ease;
    position: relative;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.document-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.document-icon {
    margin-bottom: 10px;
}

.document-info {
    width: 100%;
}

.document-name {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 5px;
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    /* FIXED: Use both webkit and standard properties */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    box-orient: vertical;
    max-height: 2.8em;
    line-height: 1.4em;
}

.document-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #6c757d;
}

.document-type {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.document-download-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transition: all 0.3s ease;
    border: none;
}

.document-card:hover .document-download-btn {
    opacity: 1;
}

.document-download-btn:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.document-error-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

    /* Existing print styles*/
    @media print {
        
        @page {
            margin: 0;
            size: auto;
        }
        
        body { 
            margin: 0;
            padding: 15mm;
            -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
            font-family: Arial, sans-serif;
            font-size: 11px;
        }
        
        .no-print, 
        .navbar,
        .report-header,
        .card-header,
        .btn-group,
        .card,
        .row,
        .col-12,
        .container-fluid {
            display: none !important;
        }
        
        .print-version {
            display: block !important;
        }
        
        .print-header {
            display: flex !important;
            justify-content: space-between;
            margin-bottom: 10px;
            border: 0.5px solid #b4b4b4;
        }
        
        .header-box {
            flex: 1;
            text-align: center;
            padding: 10px;
            border-right: 0.5px solid #b4b4b4;
            height: 60px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        
        .header-box:last-child {
            border-right: none;
        }
        
        .header-logo {
            max-width: 80px;
            max-height: 40px;
            margin: 0 auto;
        }
        
        .header-title {
            font-size: 14px;
            font-weight: bold;
        }
        
        .header-info {
            font-size: 8px;
            color: #666;
        }
        
        .print-info-boxes {
            display: flex !important;
            justify-content: space-between;
            margin-bottom: 20px;
            border: 0.5px solid #b4b4b4;
        }
        
        .print-info-box {
            flex: 1;
            text-align: center;
            padding: 8px;
            border-right: 0.5px solid #b4b4b4;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
        }
        
        .print-info-box:last-child {
            border-right: none;
        }
        
        .print-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 20px;
            font-size: 11px;
        }
        
        .print-table td {
            border: 0.5px solid #b4b4b4;
            padding: 6px 8px;
            vertical-align: top;
        }
        
        .print-table .section-header {
            background-color: #f0f0f0;
            font-weight: bold;
            padding: 8px;
        }
        
        .printed-date {
            margin-top: 30px;
            font-size: 10px;
            color: #666;
            text-align: center;
        }
    }


    


/* Rich text content styling */
.rich-text-content {
    line-height: 1.6;
    color: #212529;
    overflow-x: auto; /* For horizontal scrolling on mobile */
}

/* Ensure all tables have visible borders */
.rich-text-content table,
.rich-text-content table[border="1"],
.rich-text-content table[border] {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    margin: 10px 0 !important;
    font-size: 0.9em !important;
    border: 1px solid #dee2e6 !important;
}

.rich-text-content table th,
.rich-text-content table td,
.rich-text-content table[border="1"] th,
.rich-text-content table[border="1"] td,
.rich-text-content table[border] th,
.rich-text-content table[border] td {
    border: 1px solid #dee2e6 !important;
    padding: 8px !important;
    text-align: left !important;
    min-width: 50px !important;
}

.rich-text-content table th {
    background-color: #f8f9fa !important;
    font-weight: bold !important;
}

/* Override any inline styles that might hide borders */
.rich-text-content table[style*="border-collapse"],
.rich-text-content table[style*="border"] {
    border-collapse: collapse !important;
}

.rich-text-content table td[style*="border"],
.rich-text-content table th[style*="border"] {
    border: 1px solid #dee2e6 !important;
}

.rich-text-content ul,
.rich-text-content ol {
    padding-left: 20px;
    margin: 10px 0;
}

.rich-text-content li {
    margin-bottom: 5px;
}

.rich-text-content p {
    margin-bottom: 10px;
}

.rich-text-content h1,
.rich-text-content h2,
.rich-text-content h3,
.rich-text-content h4 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: bold;
}

.rich-text-content img {
    max-width: 100%;
    height: auto;
}



/* Report Status Badges */
.bg-status-pending {
    background: linear-gradient(135deg, #f05e44 0%, #f05e44 100%);
    color: #ffffff;
    border: 1px solid #ff2b01;
}

.bg-status-completed {
    background: linear-gradient(135deg, #0c619e 0%, #0c619e 100%);
    color: white;
    border: 1px solid #8cbced;
}

.bg-status-other {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    color: white;
    border: 1px solid #6b7280;
}

.pro-badge {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 4px;
    line-height: 1;
    display: inline-block;
    min-width: 90px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}