/* Steritech Services Client Portal Styles */

#steritech-client-portal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.portal-header {
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    color: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.portal-header h2 {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 300;
}

.customer-info h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
}

.customer-info p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.portal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portal-content {
    display: grid;
    gap: 30px;
}

.portal-section {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-header {
    background: #f8f9fa;
    padding: 20px 25px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
    font-weight: 600;
}

.section-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.section-controls input,
.section-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 120px;
}

.section-controls input:focus,
.section-controls select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.reports-table-container {
    padding: 25px;
    overflow-x: auto;
}

.reports-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.reports-table th,
.reports-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.reports-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.reports-table tbody tr {
    transition: background-color 0.2s ease;
}

.reports-table tbody tr:hover {
    background-color: #f8f9fa;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-draft {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.status-submitted {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.button {
    display: inline-block;
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.button:hover {
    background: #005177;
    color: white;
}

.button-small {
    padding: 6px 12px;
    font-size: 11px;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 25px;
}

.equipment-card {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.equipment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.equipment-card h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #0073aa;
    font-weight: 600;
}

.equipment-details p {
    margin: 8px 0;
    font-size: 14px;
    color: #555;
}

.equipment-details strong {
    color: #333;
    font-weight: 600;
}

.no-reports {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    #steritech-client-portal {
        padding: 15px;
    }
    
    .portal-header {
        padding: 20px;
    }
    
    .portal-header h2 {
        font-size: 24px;
    }
    
    .portal-stats {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .section-controls {
        justify-content: stretch;
    }
    
    .section-controls input,
    .section-controls select {
        flex: 1;
        min-width: auto;
    }
    
    .reports-table-container {
        padding: 15px;
    }
    
    .reports-table {
        font-size: 12px;
    }
    
    .reports-table th,
    .reports-table td {
        padding: 8px 10px;
    }
    
    .equipment-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .reports-table th:nth-child(3),
    .reports-table td:nth-child(3),
    .reports-table th:nth-child(4),
    .reports-table td:nth-child(4) {
        display: none;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 12px;
    }
}

/* Print Styles */
@media print {
    .section-controls,
    .button {
        display: none !important;
    }
    
    .portal-header {
        background: #0073aa !important;
        -webkit-print-color-adjust: exact;
    }
    
    .reports-table {
        font-size: 12px;
    }
}

