/* Public Styles for ERP Plans Manager */

.epm-plan-viewer {
    max-width: 100%;
    margin: 20px 0;
}

.epm-plan-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.epm-plan-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.epm-plan-image {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.epm-plan-meta {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 3px;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.epm-plan-meta-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.epm-plan-meta-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.epm-plan-meta-label {
    font-weight: 600;
    color: #333;
}

.epm-plan-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.epm-action-button {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.3s;
    font-size: 14px;
}

.epm-action-button:hover {
    background: #005a87;
    text-decoration: none;
    color: #fff;
}

.epm-action-button.secondary {
    background: #6c7781;
}

.epm-action-button.secondary:hover {
    background: #555b62;
}

.epm-download-button {
    background: #28a745;
}

.epm-download-button:hover {
    background: #218838;
}

.epm-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.epm-plan-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

.epm-plan-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.epm-plan-card-image {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    overflow: hidden;
}

.epm-plan-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.epm-plan-card-content {
    padding: 15px;
}

.epm-plan-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.epm-plan-card-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

.epm-plan-card-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.epm-plan-card-link {
    display: inline-block;
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

.epm-plan-card-link:hover {
    text-decoration: underline;
}

/* Print styles */
@media print {
    .epm-plan-actions,
    .no-print {
        display: none !important;
    }
    
    .epm-plan-container {
        box-shadow: none;
        border: none;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .epm-plans-grid {
        grid-template-columns: 1fr;
    }
    
    .epm-plan-actions {
        flex-direction: column;
    }
    
    .epm-action-button {
        width: 100%;
        text-align: center;
    }
}
