/* Invoice and Project Styles for My Account */

/* Status Styles */
.cph-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.cph-status-pending {
    background-color: #f8dda7;
    color: #94660c;
}

.cph-status-paid {
    background-color: #c6e1c6;
    color: #5b841b;
}

.cph-status-overdue {
    background-color: #eba3a3;
    color: #761919;
}

.cph-status-cancelled {
    background-color: #e5e5e5;
    color: #666;
    text-decoration: line-through;
}

.cph-status-refunded {
    background-color: #e5e5e5;
    color: #666;
}

/* Phase Styles */
.cph-phase {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.cph-phase-discovery {
    background-color: #e1f5fe;
    color: #0288d1;
}

.cph-phase-design {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.cph-phase-development {
    background-color: #e8f5e9;
    color: #388e3c;
}

.cph-phase-testing {
    background-color: #fff3e0;
    color: #e65100;
}

.cph-phase-launch {
    background-color: #fce4ec;
    color: #c2185b;
}

.cph-phase-maintenance {
    background-color: #e8eaf6;
    color: #3f51b5;
}

/* Invoice View */
.cph-invoice-view {
    margin-bottom: 30px;
}

.cph-invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.cph-invoice-meta {
    flex: 1;
}

.cph-invoice-actions {
    text-align: right;
}

.cph-invoice-items {
    margin-bottom: 20px;
}

.cph-invoice-notes {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
}

/* Project View */
.cph-project-view {
    margin-bottom: 30px;
}

.cph-project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.cph-project-meta {
    flex: 1;
}

.cph-project-progress {
    width: 300px;
    margin-left: 20px;
}

.cph-progress-bar {
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}

.cph-progress-fill {
    height: 100%;
    background-color: #4caf50;
    border-radius: 10px;
}

.cph-progress-text {
    font-size: 12px;
    text-align: right;
}

.cph-project-asana,
.cph-project-description {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
}

/* Project Grid */
.cph-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 20px;
    margin-bottom: 30px;
}

.cph-project-card {
    padding: 15px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cph-project-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.cph-project-card .cph-project-meta {
    margin-bottom: 15px;
}

.cph-project-card .cph-project-phase {
    margin-bottom: 10px;
}

.cph-project-card .cph-project-dates {
    font-size: 12px;
    color: #666;
}

.cph-project-card .cph-project-dates span {
    display: block;
    margin-bottom: 5px;
}

.cph-project-card .cph-project-progress {
    width: 100%;
    margin-left: 0;
    margin-bottom: 15px;
}

.cph-project-card .cph-project-actions {
    text-align: right;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .cph-invoice-header,
    .cph-project-header {
        flex-direction: column;
    }
    
    .cph-invoice-actions,
    .cph-project-progress {
        width: 100%;
        margin-left: 0;
        margin-top: 15px;
    }
    
    .cph-projects-grid {
        grid-template-columns: 1fr;
    }
}
