
.ccm-compare-view {
    width: 100%;
    margin-top: 1.5rem;
}

/* Legendă sus */
.ccm-compare-legend {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.ccm-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #0f172a;
}

.ccm-legend-box {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: inline-block;
}

.ccm-legend-removed {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(220, 38, 38, 0.9);
}

.ccm-legend-added {
    background: rgba(59, 130, 246, 0.16);
    border: 1px solid rgba(37, 99, 235, 0.9);
}

/* Grid de coloane */
.ccm-compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.6rem;
}

/* Coloană ediție */
.ccm-compare-column {
    background: #ffffff;
    border-radius: 1.1rem;
    padding: 1.4rem 1.6rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 0.96rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Header ediție */
.ccm-compare-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ccm-compare-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.ccm-compare-ref {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: baseline;
}

.ccm-compare-ref-label {
    font-weight: 600;
    color: #0f172a;
}

.ccm-compare-remap-note {
    font-size: 0.82rem;
    color: #64748b;
}

/* Text aliniat/simetric */
.ccm-compare-text {
    line-height: 1.6;
    text-align: justify;
    text-justify: inter-word;
    color: #111827;
}

/* diffs */
.ccm-diff-removed {
    background: rgba(239, 68, 68, 0.16);
    color: #b91c1c;
    border-radius: 3px;
    padding: 0 1px;
}

.ccm-diff-added {
    background: rgba(59, 130, 246, 0.12);
    border-radius: 3px;
    padding: 0 1px;
}

.ccm-compare-message {
    font-style: italic;
    color: #6b7280;
}

/* responsive - pe mobil coloanele se pun una sub alta */
@media (max-width: 768px) {
    .ccm-compare-column {
        font-size: 0.94rem;
        padding: 1.1rem 1.2rem;
        border-radius: 0.9rem;
    }

    .ccm-compare-legend {
        border-radius: 0.9rem;
        width: 100%;
    }
}

/* Extras (argumentări, PV-uri, propuneri) sub fiecare ediție */
.ccm-compare-extras {
    margin-top: 1.25rem;
    font-size: 0.95rem;
}

/* Secțiuni principale: Argumentări și Forme propuse */
.ccm-extras-section h4 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
}

/* Casetă pentru fiecare alineat (argumentări / propuneri) */
.ccm-extra-group {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

/* Titlul de alineat din interiorul casetei */
.ccm-extra-subtitle {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
    color: #374151;
}

/* Rând de conținut în interiorul casetei */
.ccm-extra-item {
    margin-bottom: 0.5rem;
}

/* Textul argumentării */
.ccm-extra-argumentare {
    margin-bottom: 0.25rem;
}

/* Link-ul către PV */
.ccm-extra-pv-link a {
    font-weight: 600;
    text-decoration: underline;
}

/* Descriere PV */
.ccm-extra-pv-desc {
    margin-left: 0.35rem;
    font-style: italic;
    font-size: 0.85rem;
    color: #4b5563;
}

/* Propuneri: organizație + text propunere */
.ccm-extra-org {
    margin-bottom: 0.25rem;
}

.ccm-extra-forma {
    white-space: pre-line;
}

/* Mesaj când nu există date pentru ediție */
.ccm-extras-empty {
    margin-top: 0.5rem;
    font-style: italic;
    color: #7a4b3a;
}

/* Culori subtile diferite pe secțiuni */
.ccm-extras-argumentari .ccm-extra-group {
    background: #f4f7ff;
}

.ccm-extras-propuneri .ccm-extra-group {
    background: #f5fbf3;
}
