.favorite-star{
    display:inline-grid;
    place-items:center;
    width:30px;
    height:30px;
    border-radius:50%;
    color:var(--muted);
    text-decoration:none;
    border:1px solid rgba(53,213,255,.25);
    background:rgba(53,213,255,.06);
    font-size:1.08rem;
    font-weight:950;
}
.favorite-star:hover,.favorite-star.active{color:var(--yellow);border-color:var(--yellow);background:rgba(245,197,66,.12)}

/* V117 — le tableau Favoris reprend volontairement la hiérarchie visuelle du Dashboard. */
.favorites-table-panel{
    margin-top:16px;
    padding:0!important;
    overflow:hidden!important;
    border:1px solid rgba(120,170,220,.45)!important;
    border-radius:16px!important;
    background:linear-gradient(180deg,rgba(16,45,85,.78),rgba(8,28,55,.9))!important;
    box-shadow:0 14px 35px rgba(0,0,0,.18)!important;
}
.favorites-table-toolbar{
    min-height:46px;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:16px!important;
    padding:8px 10px!important;
    color:#fff;
    font-weight:900;
    border-bottom:0!important;
}
.favorites-table-toolbar>div{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.favorites-table-toolbar strong{font-size:1rem;letter-spacing:.01em}
.favorites-table-toolbar span{color:rgba(230,240,255,.72);font-size:.78rem;font-weight:800}

.favorites-table-scroll{
    max-width:100%;
    overflow-x:auto!important;
    overflow-y:visible!important;
    border-top:1px solid rgba(120,170,220,.35)!important;
    padding:0!important;
}
.favorites-table{
    width:100%!important;
    min-width:1180px!important;
    border-collapse:separate!important;
    border-spacing:0!important;
    table-layout:fixed!important;
    font-size:11.5px!important;
    line-height:1.18!important;
}
.favorites-table th{
    position:sticky;
    top:0;
    z-index:2;
    padding:7px 8px!important;
    text-align:center!important;
    vertical-align:middle!important;
    background:linear-gradient(180deg,rgba(39,74,120,.96),rgba(24,55,96,.96))!important;
    color:#f2fbff!important;
    border-bottom:1px solid rgba(150,190,240,.35)!important;
    font-size:11.5px!important;
    font-weight:950!important;
    line-height:1.12!important;
    text-decoration:underline;
    text-decoration-style:dotted;
    text-underline-offset:4px;
    white-space:normal!important;
}
.favorites-table td{
    padding:7px 8px!important;
    vertical-align:middle!important;
    text-align:center!important;
    border-bottom:1px solid rgba(115,160,210,.24)!important;
    background:transparent!important;
    color:#fff!important;
    font-size:11.5px!important;
    font-weight:750!important;
    line-height:1.18!important;
    white-space:normal!important;
    overflow-wrap:break-word;
}
.favorites-table tbody tr:hover td{background:rgba(80,155,220,.08)!important}
.favorites-table th:first-child,.favorites-table td:first-child{text-align:left!important}

/* Largeurs proches du tableau principal, tout en réservant la place aux notes. */
.favorites-table th:nth-child(1),.favorites-table td:nth-child(1){width:210px!important;min-width:210px!important}
.favorites-table th:nth-child(2),.favorites-table td:nth-child(2){width:145px!important;min-width:145px!important}
.favorites-table th:nth-child(3),.favorites-table td:nth-child(3){width:95px!important;min-width:95px!important}
.favorites-table th:nth-child(4),.favorites-table td:nth-child(4){width:125px!important;min-width:125px!important}
.favorites-table th:nth-child(5),.favorites-table td:nth-child(5){width:205px!important;min-width:205px!important}
.favorites-table th:nth-child(6),.favorites-table td:nth-child(6){width:245px!important;min-width:245px!important}
.favorites-table th:nth-child(7),.favorites-table td:nth-child(7){width:165px!important;min-width:165px!important}
.favorites-table th:nth-child(8),.favorites-table td:nth-child(8){width:170px!important;min-width:170px!important}

.favorites-main-cell{max-width:330px}
.favorites-main-cell strong{display:block;font-size:12.5px;line-height:1.14;color:#fff}
.favorites-main-cell small{display:block;margin-top:3px;max-width:320px;color:rgba(230,240,255,.72);font-size:10.5px;font-weight:800;line-height:1.2}
.favorites-main-link{color:#fff;text-decoration:none}
.favorites-main-link:hover{color:var(--cyan);text-decoration:underline;text-underline-offset:3px}
.favorites-indication-cell,.favorites-phase-cell{font-weight:900!important;color:#f4fbff!important}

.favorites-type-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:28px;
    max-width:150px;
    padding:4px 9px;
    border:1px solid rgba(118,217,255,.8);
    border-radius:9px;
    background:rgba(40,150,220,.18);
    color:#dff7ff;
    font-size:10.8px;
    font-weight:900;
    line-height:1.08;
    white-space:normal;
}
.favorites-field-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.favorites-inline-input,.favorites-inline-notes{
    width:100%;
    box-sizing:border-box;
    border:1px solid rgba(88,170,225,.48)!important;
    border-radius:8px!important;
    background:rgba(3,20,42,.72)!important;
    color:#fff!important;
    padding:6px 8px!important;
    font:inherit!important;
    font-size:11px!important;
    font-weight:750!important;
    line-height:1.2!important;
    outline:none;
}
.favorites-inline-input{height:32px!important}
.favorites-inline-notes{height:34px!important;min-height:34px!important;max-height:72px;resize:vertical}
.favorites-inline-input:focus,.favorites-inline-notes:focus{border-color:var(--cyan)!important;box-shadow:0 0 0 3px rgba(53,213,255,.11)}

.favorites-date-cell{text-align:left!important;font-size:10.8px!important}
.favorites-date-cell strong,.favorites-date-cell span,.favorites-date-cell small{display:block}
.favorites-date-cell strong{font-size:10.5px;color:rgba(230,240,255,.72)}
.favorites-date-cell span{margin-top:2px;color:#fff}
.favorites-date-cell small{margin-top:3px;color:rgba(230,240,255,.66);font-size:10px}

.favorites-actions-cell{position:sticky!important;right:0!important;z-index:1!important;background:#071a2c!important;box-shadow:-10px 0 18px rgba(0,0,0,.18)!important}
.favorites-table th:last-child{position:sticky!important;right:0!important;z-index:3!important;background:linear-gradient(180deg,rgba(39,74,120,.99),rgba(24,55,96,.99))!important;box-shadow:-10px 0 18px rgba(0,0,0,.18)!important}
.favorites-actions-row{display:flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}
.favorites-action-form{margin:0!important}
.favorites-save,.favorite-remove{
    width:auto!important;
    min-width:72px!important;
    min-height:30px!important;
    height:30px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:8px!important;
    padding:0 9px!important;
    cursor:pointer;
    font-size:10.5px!important;
    font-weight:900!important;
    line-height:1!important;
}
.favorites-save{border:1px solid rgba(210,230,255,.4)!important;background:rgba(255,255,255,.12)!important;color:#fff!important}
.favorite-remove{background:rgba(255,91,102,.12)!important;color:#fff!important;border:1px solid rgba(255,91,102,.5)!important}
.favorite-remove:hover{border-color:rgba(255,91,102,.9)!important;background:rgba(255,91,102,.2)!important}
.favorites-empty{padding:30px!important;text-align:center!important;color:var(--muted)!important}
.favorites-empty strong,.favorites-empty span{display:block}.favorites-empty strong{margin-bottom:5px;color:var(--text)}

@media(max-width:760px){.favorites-table-toolbar>div{align-items:flex-start;flex-direction:column;gap:4px}}
