/* ===== MultiClient Plugin v2.0.0 ===== */

/* -------------------------------------------------------
   LISTE PROJETS — Ligne enfant (arbre)
   ------------------------------------------------------- */

.mc-child-row {
    background: #f0fdf4 !important;
    border-left: 3px solid #86efac;
}

.mc-child-row:hover {
    background: #dcfce7 !important;
}

.mc-child-id-cell {
    text-align: center !important;
    vertical-align: middle !important;
}

.mc-child-connector {
    font-family: monospace;
    font-size: 15px;
    font-weight: 700;
    color: #16a34a;
    user-select: none;
}

.mc-child-title-cell {
    position: relative;
}

.mc-child-lot {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 7px;
    background: #bbf7d0;
    color: #14532d;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    vertical-align: middle;
}

/* -------------------------------------------------------
   LISTE PROJETS — Bouton vert "+ lots" dans la cellule titre
   ------------------------------------------------------- */

.mc-plus-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    padding: 2px 8px 2px 6px;
    border-radius: 20px;
    border: 1.5px solid #16a34a;
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    outline: none;
    line-height: 1.6;
    transition: background 0.15s, color 0.15s;
}

.mc-plus-btn:hover,
.mc-plus-btn.mc-active {
    background: #16a34a;
    color: #ffffff;
    border-color: #15803d;
}

.mc-plus-icon {
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.mc-plus-label {
    font-size: 11px;
    font-weight: 600;
}

.mc-plus-arrow {
    font-size: 8px;
    line-height: 1;
}

/* -------------------------------------------------------
   Palette de 9 couleurs pastel (pills client)
   ------------------------------------------------------- */

.mc-plus-client-link {
    display: inline-block;
    text-decoration: none;
    border-radius: 4px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    transition: opacity 0.15s;
}

.mc-plus-client-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

.mc-sc-0 { background: #dbeafe; color: #1e40af; }
.mc-sc-1 { background: #d1fae5; color: #065f46; }
.mc-sc-2 { background: #ede9fe; color: #5b21b6; }
.mc-sc-3 { background: #fee2e2; color: #991b1b; }
.mc-sc-4 { background: #cffafe; color: #155e75; }
.mc-sc-5 { background: #fef3c7; color: #92400e; }
.mc-sc-6 { background: #dcfce7; color: #166534; }
.mc-sc-7 { background: #fce7f3; color: #9d174d; }
.mc-sc-8 { background: #e0e7ff; color: #3730a3; }

/* -------------------------------------------------------
   VUE PROJET — ligne lots clonés / projet parent
   ------------------------------------------------------- */

.mc-view-secondary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.mc-view-label {
    font-weight: 500;
    white-space: nowrap;
    color: #6b7280;
    font-size: 13px;
}

/* -------------------------------------------------------
   MODAL PROJET — Section "Lots clonés"
   ------------------------------------------------------- */

.mc-clone-section {
    padding: 0 15px 10px;
}

.mc-clone-hr {
    margin: 10px 0 10px;
    border-color: #e5e7eb;
}

.mc-clone-title {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
}

.mc-clone-icon {
    color: #16a34a;
}

.mc-clone-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
}

.mc-clone-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
    font-size: 12px;
}

.mc-clone-proj-link {
    color: #6b7280;
    font-size: 11px;
    text-decoration: none;
}

.mc-clone-proj-link:hover {
    color: #111827;
    text-decoration: underline;
}

.mc-clone-empty {
    font-size: 12px;
    color: #9ca3af;
    margin: 0 0 8px;
}

.mc-clone-max {
    color: #ef4444;
    font-weight: 600;
}

.mc-clone-add-area {
    margin-top: 4px;
}

.mc-add-clone-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1.5px solid #16a34a;
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    transition: background 0.15s, color 0.15s;
}

.mc-add-clone-btn:hover {
    background: #16a34a;
    color: #ffffff;
}

.mc-clone-picker {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mc-mode-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 6px 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.mc-mode-opt {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    margin: 0;
    padding: 3px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.mc-mode-opt:hover {
    background: #f3f4f6;
}

.mc-mode-opt input[type=radio] {
    margin: 0;
    cursor: pointer;
}

.mc-mode-hint {
    font-size: 10px;
    font-weight: 400;
    color: #6b7280;
}

.mc-picker-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.mc-client-select {
    flex: 1;
    min-width: 200px;
}
