/* Workspace Production Report Styles - Cleaned */

.workspace-production-report-container {
    padding: 16px 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Calibri', 'Roboto', sans-serif;
    color: #1e293b;
}

.production-report-summary-section,
.production-report-family-section {
    flex: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.production-report-right-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
    min-width: 0;
}

/* Section Common Styles */
.production-report-section {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

.production-report-section-header {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
}

.production-report-section-title {
    font-size: 14px;
    color: #2C333A;
    margin: 0;
    font-family: 'Calibri', 'Roboto', sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.production-report-section-title i {
    font-size: 16px;
    color: #3b82f6;
}

.production-section-title i {
    display: none;
}

.copro-btn {
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    width: 100px;
    height: 26px;
    padding: 0;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    margin-left: auto;
    font-family: 'Calibri', 'Roboto', sans-serif;
}

.production-section-badge {
    margin-left: 8px;
}

.copro-btn:hover {
    background-color: #357abd;
}

.copro-btn.active {
    background-color: #357abd;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Builder styles for CoPro mode */
.pdm-builder.copro-mode .pdm-builder-header,
.pdm-builder.copro-mode #pdmDropZone,
.pdm-builder.copro-mode .pdm-input-group:has(#pdmURL) {
    opacity: 0.5;
    pointer-events: none;
    background-color: #f8fafc;
}

.pdm-builder.copro-mode .pdm-builder-header {
    border-bottom: 2px dashed #e2e8f0;
}

/* Family Wise Section */
.production-report-familywise-content {
    padding: 3px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Family Wise Section - List Style */
.production-report-familywise-list-container {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

.production-report-table-list-header {
    display: flex;
    align-items: center;
    background-color: #f1f5f9;
    padding: 12px 16px;
    border-bottom: 2px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 10;
    font-weight: 600;
    color: #334155;
    color: #334155;
    letter-spacing: 0.5px;
}

.production-report-table-list-body {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    overflow-y: auto;
}

.production-report-table-list-row {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.production-report-table-list-row:hover {
    background-color: #f9fafb;
}

.production-report-table-list-row:last-child {
    border-bottom: none;
}

/* Family Column Layout */
.report-column {
    flex: 0.7;
    text-align: center;
    color: #1e293b;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
    box-sizing: border-box;
}

.report-column.text-left {
    text-align: left;
}

.report-column.fit-content {
    flex: 0 0 120px;
    max-width: 120px;
    min-width: 120px;
}

.report-column.col-max-200 {
    max-width: 200px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    /* Ensure long words break */
}

/* Account Summary Section */
.production-report-summary-content,
.production-report-existing-content {
    padding: 3px;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.production-report-right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}