* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px;
}

.header {
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-logo {
    max-width: 180px;
    max-height: 60px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.header h1 { 
    font-size: 28px; 
    margin-bottom: 10px;
}

.header p { 
    opacity: 0.9; 
    font-size: 16px;
}

.content {
    background: white;
    padding: 40px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.summary h2 {
    margin-bottom: 15px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.summary-item strong {
    display: block;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.summary-item span {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.documents-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    table-layout: fixed;
}

.documents-table th:nth-child(1) { width: 15%; }
.documents-table th:nth-child(2) { width: 12%; }
.documents-table th:nth-child(3) { width: 14%; }
.documents-table th:nth-child(4) { width: 16%; }
.documents-table th:nth-child(5) { width: 18%; }
.documents-table th:nth-child(6) { width: 25%; }

.documents-table thead {
    color: white;
}

.documents-table th {
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
}

.documents-table th:first-child {
    text-align: left;
}

.documents-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
    vertical-align: middle;
}

.documents-table td:first-child {
    text-align: left;
}

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

.actions-cell {
    padding: 10px !important;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    align-items: center;
}

.action-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.action-label {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-download:active {
    transform: translateY(0);
}

.no-attachments {
    color: #999;
    font-size: 12px;
    font-style: italic;
    grid-column: 1 / -1;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending { 
    background: #fff3cd; 
    color: #856404; 
}

.status-overdue { 
    background: #f8d7da; 
    color: #721c24; 
}

.status-ok { 
    background: #d4edda; 
    color: #155724; 
}

.footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

.footer p {
    margin: 5px 0;
}

.footer .expiration {
    font-size: 12px;
    color: #999;
}

@media (max-width: 768px) {
    .container { 
        padding: 10px; 
    }
    
    .content { 
        padding: 20px; 
    }
    
    .documents-table { 
        font-size: 12px; 
    }
    
    .documents-table th, 
    .documents-table td { 
        padding: 8px 4px; 
    }
    
    .actions-grid {
        gap: 4px;
    }
    
    .btn-download {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .action-label {
        font-size: 9px;
    }
}