/* Portail Groupe — hub Organisations */

.ja-orgs-hub-page .fi-header {
    margin-bottom: 0.5rem;
}

.ja-orgs-hub-page .fi-ta-content,
.ja-orgs-hub-page .fi-ta-content-grid {
    overflow-x: visible !important;
}

.ja-orgs-hub-page .fi-ta-record {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.ja-orgs-hub-page .fi-ta-record > div,
.ja-orgs-hub-page .fi-ta-cell {
    padding: 0 !important;
    border: none !important;
}

.ja-orgs-hub-page .fi-ta-content-grid {
    gap: 0.85rem !important;
}

@media (min-width: 768px) {
    .ja-orgs-hub-page .fi-ta-content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1280px) {
    .ja-orgs-hub-page .fi-ta-content-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

.ja-orgs-hub__kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .ja-orgs-hub__kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .ja-orgs-hub__kpis {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.ja-orgs-hub__kpi {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.42));
}

.ja-orgs-hub__kpi-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.ja-orgs-hub__kpi-label {
    margin: 0;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.ja-orgs-hub__kpi-value {
    margin: 0.1rem 0 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.1;
}

.ja-orgs-hub__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.ja-orgs-hub__filter {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.45);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.ja-orgs-hub__filter:hover {
    border-color: rgba(167, 139, 250, 0.35);
    color: #e9d5ff;
}

.ja-orgs-hub__filter--active {
    border-color: rgba(124, 77, 255, 0.55);
    background: rgba(124, 77, 255, 0.18);
    color: #ede9fe;
}

.ja-orgs-hub__filter-count {
    display: inline-flex;
    min-width: 1.25rem;
    justify-content: center;
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.25);
    font-size: 0.68rem;
    font-weight: 800;
}

.ja-orgs-hub__card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.42));
    min-height: 100%;
}

.ja-orgs-hub__card:hover {
    border-color: rgba(167, 139, 250, 0.32);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.ja-orgs-hub__card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
}

.ja-orgs-hub__card-identity {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    min-width: 0;
}

.ja-orgs-hub__card-icon {
    font-size: 1.1rem;
    line-height: 1;
    margin-top: 0.15rem;
}

.ja-orgs-hub__card-title-wrap {
    min-width: 0;
}

.ja-orgs-hub__name {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.25;
}

.ja-orgs-hub__name a {
    color: #f8fafc;
    text-decoration: none;
}

.ja-orgs-hub__name a:hover {
    color: #c4b5fd;
}

.ja-orgs-hub__email {
    margin: 0.2rem 0 0;
    font-size: 0.74rem;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ja-orgs-hub__org-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    border: 1px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
}

.ja-orgs-hub__org-status--active {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.28);
}

.ja-orgs-hub__org-status--pending {
    color: #fde047;
    background: rgba(250, 204, 21, 0.1);
    border-color: rgba(250, 204, 21, 0.28);
}

.ja-orgs-hub__org-status--suspended {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.28);
}

.ja-orgs-hub__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.ja-orgs-hub__meta-item--wide {
    grid-column: 1 / -1;
}

.ja-orgs-hub__meta-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.15rem;
}

.ja-orgs-hub__meta-item strong {
    font-size: 0.82rem;
    color: #e2e8f0;
    font-weight: 700;
}

.ja-orgs-hub__licenses {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.ja-orgs-hub__license {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    grid-template-rows: auto auto;
    gap: 0.15rem 0.5rem;
    align-items: center;
}

.ja-orgs-hub__license-product {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.ja-orgs-hub__license-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    justify-self: start;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    border: 1px solid transparent;
}

.ja-orgs-hub__license-badge--active {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.25);
}

.ja-orgs-hub__license-badge--trial {
    color: #d8b4fe;
    background: rgba(168, 85, 247, 0.14);
    border-color: rgba(168, 85, 247, 0.28);
}

.ja-orgs-hub__license-badge--none {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.2);
}

.ja-orgs-hub__license-badge--expired {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.25);
}

.ja-orgs-hub__license-detail {
    grid-column: 2;
    font-size: 0.72rem;
    color: #64748b;
}

.ja-orgs-hub-page .fi-ta-actions {
    margin-top: 0.5rem;
    justify-content: flex-end;
}

.ja-orgs-hub-page .fi-ta-actions .fi-btn {
    font-size: 0.78rem;
}

.ja-orgs-hub__list--loading {
    opacity: 0.55;
    pointer-events: none;
}

/* Fiche organisation */
.ja-orgs-detail__summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ja-orgs-detail__hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.42));
}

.ja-orgs-detail__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #f8fafc;
}

.ja-orgs-detail__subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    color: #94a3b8;
}

.ja-orgs-detail__license-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

@media (min-width: 640px) {
    .ja-orgs-detail__license-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.ja-orgs-detail__license-card {
    padding: 0.75rem 0.85rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(0, 0, 0, 0.18);
}

.ja-orgs-detail__license-card h4 {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.ja-orgs-detail__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

@media (min-width: 768px) {
    .ja-orgs-detail__facts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.ja-orgs-detail__fact {
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(0, 0, 0, 0.12);
}

.ja-orgs-detail__fact-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.ja-orgs-detail__fact-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: #e2e8f0;
}

html.fi:not(.dark) .ja-orgs-hub__kpi,
html.fi:not(.dark) .ja-orgs-hub__card,
html.fi:not(.dark) .ja-orgs-detail__hero,
html.fi:not(.dark) .ja-orgs-detail__license-card,
html.fi:not(.dark) .ja-orgs-detail__fact {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.08);
}

html.fi:not(.dark) .ja-orgs-hub__kpi-value,
html.fi:not(.dark) .ja-orgs-hub__name a,
html.fi:not(.dark) .ja-orgs-detail__title,
html.fi:not(.dark) .ja-orgs-detail__fact-value {
    color: #0f172a;
}

html.fi:not(.dark) .ja-orgs-hub__filter {
    background: #f8fafc;
    color: #475569;
    border-color: rgba(15, 23, 42, 0.1);
}

html.fi:not(.dark) .ja-orgs-hub__meta,
html.fi:not(.dark) .ja-orgs-detail__license-card {
    background: #f8fafc;
}
