.jupiter-dash {
    font-size: 13px;
    color: #2a3441;
    padding: 4px 2px 8px;
}

.jupiter-dash-greeting {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.jupiter-dash-subtitle {
    font-size: 13px;
    color: #7c8794;
    margin-bottom: 8px;
}

.jupiter-dash-source {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #5b6b7c;
    background: #eef3fb;
    border: 1px solid #d7e3f5;
    border-radius: 999px;
    padding: 4px 10px;
    margin-bottom: 16px;
}

.jupiter-dash-source .fas {
    color: #2f6fed;
    font-size: 10px;
}

.jupiter-pies {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.jupiter-pie-card {
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 14px;
    padding: 14px 16px 16px;
    box-shadow: 0 8px 24px -18px rgba(15, 23, 42, 0.35);
}

.jupiter-pie-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.jupiter-pie-head h3 {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    color: #1f2937;
}

.jupiter-pie-total {
    font-size: 13px;
    font-weight: 800;
    color: #0f766e;
    background: #ecfdf5;
    border-radius: 999px;
    padding: 2px 9px;
}

.jupiter-pie-body {
    display: flex;
    align-items: center;
    gap: 14px;
}

.jupiter-pie-chart {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    flex: none;
    background-color: #eef1f5;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 0 8px #fff, 0 0 0 1px #eef1f5;
}

.jupiter-pie-chart.is-clickable {
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.jupiter-pie-chart.is-clickable:hover {
    transform: scale(1.04);
    box-shadow: inset 0 0 0 8px #fff, 0 0 0 2px #bfdbfe, 0 8px 18px -10px rgba(37, 99, 235, 0.45);
}

.jupiter-pie-legend {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jupiter-pie-leg-row {
    display: grid;
    grid-template-columns: 12px 1fr auto auto;
    gap: 6px;
    align-items: center;
    font-size: 12px;
    color: #475569;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 4px 6px;
    margin: 0 -6px;
    border-radius: 8px;
    text-align: left;
}

.jupiter-pie-leg-row.is-clickable {
    cursor: pointer;
}

.jupiter-pie-leg-row.is-clickable:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.jupiter-pie-leg-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jupiter-pie-leg-val {
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.jupiter-pie-leg-pct {
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
    min-width: 42px;
    text-align: right;
}

.jupiter-grid-missions {
    display: grid;
    grid-template-columns: 0.9fr 1.55fr 1.55fr;
    gap: 14px;
    margin-bottom: 8px;
}

.jupiter-panel-ic .jupiter-pie-head {
    margin-bottom: 10px;
}

.jupiter-ic-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.jupiter-ic-row {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 9px 4px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
}

.jupiter-ic-row:last-child {
    border-bottom: none;
}

.jupiter-ic-row:hover .jupiter-ic-name {
    color: #2f6fed;
}

.jupiter-ic-name {
    font-size: 12.5px;
    font-weight: 650;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jupiter-pie-modal-ov {
    position: fixed;
    inset: 0;
    z-index: 10080;
    background: rgba(15, 23, 42, 0.48);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    backdrop-filter: blur(2px);
}

.jupiter-pie-modal-dlg {
    width: min(720px, 100%);
    max-height: min(820px, 92vh);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 28px 70px -24px rgba(15, 23, 42, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.jupiter-pie-modal-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(135deg, #0d2b6b 0%, #123a9e 55%, #1a4fd6 100%);
    color: #fff;
}

.jupiter-pie-modal-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 750;
}

.jupiter-pie-modal-sub {
    margin-top: 3px;
    font-size: 12.5px;
    opacity: 0.88;
}

.jupiter-pie-modal-x {
    margin-left: auto;
    border: 0;
    background: rgba(255, 255, 255, 0.16);
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
}

.jupiter-pie-modal-x:hover {
    background: rgba(255, 255, 255, 0.28);
}

.jupiter-pie-modal-body {
    overflow: auto;
    background: #f8fafc;
}

.jupiter-pie-modal-list {
    display: flex;
    flex-direction: column;
}

.jupiter-pie-modal-row {
    display: grid;
    grid-template-columns: minmax(160px, 1.6fr) 90px 110px 100px 56px;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #eef2f7;
    background: #fff;
    text-decoration: none;
    color: inherit;
}

.jupiter-pie-modal-head-row {
    position: sticky;
    top: 0;
    z-index: 1;
    padding-top: 10px;
    padding-bottom: 10px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
}

.jupiter-pie-modal-row:hover {
    background: #f1f5f9;
}

.jupiter-pie-modal-head-row:hover {
    background: #f1f5f9;
}

.jupiter-pie-modal-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.jupiter-pie-modal-main b {
    font-size: 13.5px;
    color: #0f172a;
}

.jupiter-pie-modal-col-type,
.jupiter-pie-modal-col-status,
.jupiter-pie-modal-col-classe,
.jupiter-pie-modal-col-suivi {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.jupiter-pie-modal-col-suivi {
    justify-content: center;
}

.jupiter-pie-modal-status-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.jupiter-pie-modal-end {
    font-size: 11px;
    color: #64748b;
    line-height: 1.2;
    white-space: nowrap;
}

.jupiter-pie-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.jp-suivi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 13px;
}

.jp-suivi-icon.is-attente {
    background: #f1f5f9;
    color: #64748b;
    border-color: #e2e8f0;
}

.jp-suivi-icon.is-no {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

.jp-suivi-icon.is-oui {
    background: #dcfce7;
    color: #15803d;
    border-color: #bbf7d0;
}

.jp-suivi-icon.is-alerte {
    background: #ffedd5;
    color: #c2410c;
    border-color: #fed7aa;
}

@media (max-width: 720px) {
    .jupiter-pie-modal-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .jupiter-pie-modal-head-row {
        display: none;
    }

    .jupiter-pie-modal-col-type,
    .jupiter-pie-modal-col-status,
    .jupiter-pie-modal-col-classe,
    .jupiter-pie-modal-col-suivi {
        justify-content: flex-start;
    }

    .jupiter-pie-modal-status-cell {
        align-items: flex-start;
    }
}

.jupiter-mgr-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 12px;
    font-size: 11.5px;
    color: #64748b;
}

.jupiter-mgr-legend .jupiter-dot {
    margin-right: 5px;
    vertical-align: -1px;
}

.jupiter-mgr-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jupiter-mgr-row {
    display: grid;
    grid-template-columns: 118px 1fr 28px;
    gap: 8px;
    align-items: center;
}

.jupiter-mgr-name {
    font-size: 11.5px;
    font-weight: 650;
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jupiter-mgr-track {
    height: 14px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
}

.jupiter-mgr-bar {
    height: 100%;
    display: flex;
    min-width: 4px;
    border-radius: 999px;
    overflow: hidden;
}

.jupiter-mgr-bar span {
    display: block;
    height: 100%;
    min-width: 2px;
}

.jupiter-mgr-total {
    font-size: 11.5px;
    font-weight: 750;
    color: #0f172a;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.jupiter-kpis {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.jupiter-kpis-4 {
    grid-template-columns: repeat(4, 1fr);
}

.jupiter-kpis-5 {
    grid-template-columns: repeat(5, 1fr);
}

.jupiter-kpis-6 {
    grid-template-columns: repeat(6, 1fr);
}

.jupiter-kpi {
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
    padding: 14px 16px;
    position: relative;
}

.jupiter-kpi-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 10px;
}

.jupiter-kpi-val {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
}

.jupiter-kpi-label {
    font-size: 12px;
    color: #7c8794;
    margin-top: 4px;
}

.jupiter-kpi-hint {
    margin-top: 4px;
    font-size: 10.5px;
    color: #8a96a3;
    line-height: 1.25;
}

.jupiter-kpi-trend {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
}

.jupiter-kpi-trend.up {
    background: #e7f6ee;
    color: #27ae60;
}

.jupiter-kpi-trend.down {
    background: #fdecea;
    color: #e05a4f;
}

.jupiter-grid-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.jupiter-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.jupiter-panel {
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
    padding: 16px 18px;
}

.jupiter-panel h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 14px;
}

.jupiter-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.jupiter-table th {
    text-align: left;
    color: #7c8794;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 8px 10px;
    border-bottom: 1px solid #e6eaf0;
}

.jupiter-table td {
    padding: 10px;
    border-bottom: 1px solid #f0f3f6;
}

.jupiter-table tr:last-child td {
    border-bottom: none;
}

.jupiter-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    display: inline-block;
}

.jupiter-pill.g { background: #e7f6ee; color: #27ae60; }
.jupiter-pill.a { background: #fcf2e0; color: #e8a33d; }
.jupiter-pill.r { background: #fdecea; color: #e05a4f; }
.jupiter-pill.b { background: #e8f0fe; color: #2f6fed; }

.jupiter-pill-link {
    text-decoration: none;
    display: inline-block;
}

.jupiter-pill-link:hover .jupiter-pill {
    filter: brightness(0.95);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.jupiter-status-total {
    font-size: 12px;
    color: #7c8794;
    margin-bottom: 8px;
}

.jupiter-status-bar {
    display: flex;
    height: 10px;
    border-radius: 6px;
    overflow: hidden;
    background: #eef1f5;
    margin-bottom: 10px;
}

.jupiter-status-bar span {
    display: block;
    height: 100%;
    min-width: 2px;
}

.jupiter-legend {
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #54606e;
}

.jupiter-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
    margin-right: 8px;
}

.jupiter-timeline {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.jupiter-tl-row {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f3f6;
    font-size: 12.5px;
    align-items: flex-start;
}

.jupiter-tl-row:last-child {
    border-bottom: none;
}

.jupiter-tl-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

.jupiter-pill-type {
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.jupiter-muted {
    color: #7c8794;
    font-size: 12px;
}

.jupiter-empty {
    color: #7c8794;
    font-size: 12.5px;
    padding: 8px 0;
}

.jupiter-table-rich th,
.jupiter-table-rich td {
    text-align: center;
}

.jupiter-table-rich th:first-child,
.jupiter-table-rich td:first-child {
    text-align: left;
}

.jupiter-admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.jupiter-admin-tab {
    border: 1px solid #d8dee6;
    background: #fff;
    color: #54606e;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.jupiter-admin-tab.active {
    background: #2f6fed;
    border-color: #2f6fed;
    color: #fff;
}

.jupiter-leave-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.jupiter-leave-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 12.5px;
    color: #54606e;
}

.jupiter-leave-summary {
    margin-top: 7px;
    font-size: 11.5px;
    color: #3d4a57;
    font-weight: 500;
}

.jupiter-leave-details {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.jupiter-leave-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 11px;
    color: #7a8694;
}

.jupiter-leave-detail-row span:last-child {
    color: #54606e;
    text-align: right;
    white-space: nowrap;
}

.jupiter-bar {
    height: 8px;
    background: #eef1f5;
    border-radius: 6px;
    overflow: hidden;
}

.jupiter-bar i {
    display: block;
    height: 100%;
    border-radius: 6px;
}

.jupiter-btn-perso {
    display: block;
    margin-top: 16px;
    width: 100%;
    text-align: center;
    background: #0fa39c;
    color: #fff !important;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
}

.jupiter-btn-perso:hover {
    opacity: 0.92;
    color: #fff !important;
}

.jupiter-info-block {
    font-size: 13px;
    color: #54606e;
    line-height: 1.6;
}

.jupiter-info-block a {
    color: #0fa39c;
    font-size: 12px;
}

.jupiter-big {
    font-size: 18px;
    color: #2a3441;
}

@media (max-width: 1400px) {
    .jupiter-pies {
        grid-template-columns: repeat(2, 1fr);
    }

    .jupiter-grid-missions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1280px) {
    .jupiter-kpis-4,
    .jupiter-kpis-5,
    .jupiter-kpis-6,
    .jupiter-grid-2,
    .jupiter-grid-3 {
        grid-template-columns: 1fr;
    }

    .jupiter-pies {
        grid-template-columns: 1fr;
    }

    .jupiter-mgr-row {
        grid-template-columns: 96px 1fr 28px;
    }
}
