/* Article 2 Compliance Styles */
.compliance-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.compliance-header h2 {
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
}

.compliance-subtitle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.compliance-subtitle p {
    color: #6c757d;
    margin: 0;
    flex: 1;
}

.location-selection {
    max-width: 500px;
}

.location-selection label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
}

.location-details {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #007bff;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.location-info strong {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.location-info span {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Compliance Grid */
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.compliance-category {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.compliance-category:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.category-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.category-description {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.category-description p {
    margin: 0 0 0.75rem 0;
    color: #495057;
    font-weight: 500;
}

.document-examples {
    list-style: none;
    padding: 0;
    margin: 0;
}

.document-examples li {
    padding: 0.25rem 0;
    color: #6c757d;
    font-size: 0.875rem;
    position: relative;
    padding-left: 1rem;
}

.document-examples li:before {
    content: "•";
    color: #007bff;
    position: absolute;
    left: 0;
}

.documents-container {
    padding: 1.25rem 1.5rem;
    min-height: 120px;
}

.empty-documents {
    text-align: center;
    color: #6c757d;
    padding: 2rem 1rem;
}

.empty-documents i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.empty-documents p {
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.empty-documents small {
    font-size: 0.75rem;
}

/* Document Items */
.document-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.document-item:hover {
    background-color: #e9ecef;
}

.document-item:last-child {
    margin-bottom: 0;
}

.document-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: #007bff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.document-content {
    flex: 1;
    min-width: 0;
}

.document-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.document-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.document-meta span {
    color: #6c757d;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.document-comments {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background-color: white;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}

.document-comments p {
    margin: 0;
    color: #495057;
    font-size: 0.875rem;
    line-height: 1.4;
}

.document-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Compliance Summary */
.compliance-summary {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.summary-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.summary-header h4 {
    margin: 0;
    color: #2c3e50;
}

.summary-content {
    padding: 1.5rem;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
}

.progress-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-item label {
    min-width: 180px;
    font-weight: 600;
    color: #495057;
    font-size: 0.875rem;
}

.progress {
    flex: 1;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #28a745;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    min-width: 40px;
    text-align: right;
    font-weight: 600;
    color: #495057;
    font-size: 0.875rem;
}

/* Definition List in Regulation Panel */
.definition-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.definition-item {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.definition-item strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 0.5rem;
}

.definition-item p {
    margin: 0;
    color: #495057;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Modal Styles for Documents */
.document-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .compliance-grid {
        grid-template-columns: 1fr;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .progress-stats {
        grid-template-columns: 1fr;
    }
    
    .progress-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .progress-item label {
        min-width: auto;
    }
    
    .document-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .document-actions {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .compliance-subtitle {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .document-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
}