/* FarmPlan record labels */
.record .panel-body label.control-label,
.record .cell label.control-label,
.record label.control-label {
    align-items: center;
    color: #52606d !important;
    display: flex;
    font-size: 15px;
    font-weight: 700 !important;
    min-height: 44px;
}

/* FarmPlan record values */
.record .field {
    color: #111827;
    font-weight: 500;
}

/* FarmPlan panel headers */
.record .panel > .panel-heading {
    background-color: #e8f2ee;
    border-bottom: 1px solid #b7d4c6;
    text-align: center;
}

.record .panel > .panel-heading .panel-title,
.record .panel > .panel-heading h4 {
    color: #156943;
    font-weight: 700;
    text-align: center;
    width: 100%;
}

/* FarmPlan: wider record pages without empty side area */
.record-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 1320px !important;
    width: 100% !important;
}

.record-grid > .left,
.record-grid > .left > .middle,
.record-grid .middle {
    max-width: none !important;
    width: 100% !important;
}

.record-grid > .side,
.record-grid > .extra {
    display: none !important;
}

.record-grid .panel {
    max-width: none !important;
    width: 100% !important;
}

/* Keep wide records readable on very large screens */
@media (min-width: 1600px) {
    .record-grid {
        max-width: 1440px !important;
    }
}

.farmplan-score-breakdown {
    display: grid;
    gap: 14px;
    width: 100%;
}

.farmplan-score-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 16px;
}

.farmplan-score-summary-label {
    color: #263746;
    font-weight: 700;
}

.farmplan-score-summary-value {
    color: #156943;
    font-size: 20px;
}

.farmplan-score-total-bar,
.farmplan-score-bar {
    width: 100%;
    overflow: hidden;
    background: #e5e9ed;
    border-radius: 4px;
}

.farmplan-score-total-bar {
    height: 12px;
}

.farmplan-score-bar {
    height: 8px;
}

.farmplan-score-total-bar-value {
    height: 100%;
    background: #2e9d62;
    transition: width 0.25s ease;
}

.farmplan-score-bar-value {
    height: 100%;
    background: #4d83c4;
    transition: width 0.25s ease;
}

.farmplan-score-row {
    display: grid;
    gap: 5px;
}

.farmplan-score-row-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.farmplan-score-label {
    color: #364956;
    font-weight: 600;
}

.farmplan-score-value {
    color: #52606d;
    white-space: nowrap;
}

/* Opportunity: αριθμητικά δεδομένα βαθμολόγησης */
.detail[data-scope="Opportunity"] .cell[data-name="priorityProductionShare"] .field,
.detail[data-scope="Opportunity"] .cell[data-name="qualityProductionShare"] .field,
.detail[data-scope="Opportunity"] .cell[data-name="standardOutput"] .field,
.detail[data-scope="Opportunity"] .cell[data-name="requestedEligibleInvestment"] .field,
.detail[data-scope="Opportunity"] .cell[data-name="ownFundsCoverage"] .field,
.detail[data-scope="Opportunity"] .cell[data-name="producerAge"] .field,
.detail[data-scope="Opportunity"] .cell[data-name="yearsAgriculturalExperience"] .field,
.detail[data-scope="Opportunity"] .cell[data-name="climateResilienceInvestmentShare"] .field,
.detail[data-scope="Opportunity"] .cell[data-name="innovationInvestmentShare"] .field,
.detail[data-scope="Opportunity"] .cell[data-name="regionalPriorityBaseScore"] .field,
.detail[data-scope="Opportunity"] .cell[data-name="dataCompletenessPercent"] .field {
    text-align: center;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Ανάλυση βαθμολογίας */
.farmplan-score-summary,
.farmplan-score-row-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 32px;
}

.farmplan-score-summary-value,
.farmplan-score-value {
    min-width: 100px;
    text-align: right;
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.farmplan-score-row {
    margin-top: 12px;
}

.farmplan-score-bar,
.farmplan-score-total-bar {
    height: 6px;
    margin-top: 5px;
    overflow: hidden;
    background-color: #e5e7eb;
    border-radius: 3px;
}

.farmplan-score-bar-value,
.farmplan-score-total-bar-value {
    height: 100%;
    background-color: #3b82f6;
}
