/* project_monitoring.css — Styles pour le module de Suivi de Projet */

/* ==========================================================================
   1. Tableau des Tickets (Version Desktop & Adaptations)
   ========================================================================== */

#table-tickets-inline {
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    margin-top: -10px !important;
    min-width: 1200px !important;
}

#table-tickets-inline>thead>tr>th {
    border-bottom: none !important;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: #a0a5aa;
    font-weight: 600;
    padding-bottom: 0px;
    letter-spacing: 0.5px;
}

#table-tickets-inline>tbody>tr:nth-child(odd) {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    background-color: #f8f9fa;
    transition: all 0.2s ease-in-out;
}

#table-tickets-inline>tbody>tr:nth-child(even) {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    background-color: #f1f3f5;
    transition: all 0.2s ease-in-out;
}

#table-tickets-inline>tbody>tr.sp-dropdown-open,
#table-tickets-inline>tbody>tr:has(.show) {
    z-index: 60 !important;
    position: relative;
}

#table-tickets-inline>tbody>tr:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    position: relative;
    z-index: 50;
}

#table-tickets-inline>tbody>tr>td {
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    border-right: none;
    border-left: none;
    padding: 14px 12px;
    background-color: transparent !important;
    vertical-align: top;
}

#table-tickets-inline>tbody>tr>td:first-child {
    border-left: 1px solid #eaeaea;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    white-space: nowrap !important;
}

#table-tickets-inline>tbody>tr>td:last-child {
    border-right: 1px solid #eaeaea;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    padding-right: 16px !important;
    text-align: right !important;
}

/* --- Card Textareas --- */
.sp-tickets-table textarea.inline-input {
    resize: vertical;
    min-height: 24px !important;
    padding: 0 !important;
    line-height: 1.4;
    transition: all 0.2s;
}

.sp-tickets-table textarea.inline-input:focus {
    background: #fff !important;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, .25) !important;
    padding: 6px !important;
    border-radius: 4px;
}

.sp-tickets-table td:nth-child(2) textarea {
    font-weight: 500;
    color: #333;
}

/* --- Badge Selects --- */
.sp-badge-select {
    appearance: none;
    -webkit-appearance: none;
    border-radius: 50rem !important;
    padding: 2px 24px 2px 10px !important;
    font-size: 0.75rem;
    font-weight: 600;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px 10px;
    cursor: pointer;
    border: 1px solid transparent;
}

/* Tags Colors */
.tags-traduire {
    background-color: #fff3cd !important;
    color: #856404 !important;
    border-color: #ffeeba !important;
}

.tags-bloquant {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border-color: #f5c6cb !important;
}

.tags-faible {
    background-color: #d4edda !important;
    color: #155724 !important;
    border-color: #c3e6cb !important;
}

/* Priority Row Highlight Colors */
.row-priority-bloquant td {
    background-color: #fff5f5 !important;
}
.row-priority-a_traduire td {
    background-color: #fffdf0 !important;
}
.row-priority-faible td {
    background-color: #f3faf5 !important;
}

/* Statut Colors */
.statut-declare {
    background-color: #e2e3e5 !important;
    color: #383d41 !important;
}

.statut-en-cours {
    background-color: #cce5ff !important;
    color: #004085 !important;
}

.statut-fait {
    background-color: #d4edda !important;
    color: #155724 !important;
}

.statut-a-valider {
    background-color: #cff4fc !important;
    color: #055160 !important;
}

.statut-clos {
    background-color: #d1e7dd !important;
    color: #0f5132 !important;
}

/* --- Optimisation Desktop pour éviter le débordement --- */
#table-tickets-inline .inline-select,
#table-tickets-inline .inline-input {
    width: 100% !important;
    max-width: 100% !important;
}

#table-tickets-inline textarea.inline-input {
    min-width: 120px !important;
    width: 100% !important;
}

#table-tickets-inline .auteur-select-wrapper,
#table-tickets-inline .sp-recette-sel,
#table-tickets-inline .tags-select-wrapper,
#table-tickets-inline .statut-select-wrapper {
    width: 100% !important;
    flex-grow: 1;
    min-width: 0;
}

#table-tickets-inline .auteur-select-wrapper select,
#table-tickets-inline .sp-recette-sel select,
#table-tickets-inline .tags-select-wrapper select,
#table-tickets-inline .statut-select-wrapper select {
    width: 100% !important;
}

/* ==========================================================================
   2. Design Premium Global (Pills, Cartes, Filtres)
   ========================================================================== */

/* Pill Tabs */
.sp-pill-tabs-wrap {
    display: inline-block;
}

.sp-board-pills {
    display: flex;
    gap: 4px;
    background: #f1f3f7;
    border-radius: 50px;
    padding: 4px;
    border: none;
}

.sp-board-pills .nav-link {
    border-radius: 50px;
    padding: 6px 18px;
    font-size: .85rem;
    font-weight: 500;
    color: #6c757d;
    border: none;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sp-board-pills .nav-link:hover:not(.active) {
    background: rgba(0, 0, 0, .05);
    color: #495057;
}

.sp-board-pills .nav-link.active {
    background: #fff;
    color: #0d6efd;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

/* Cards */
.sp-board-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eaecf0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .04);
}

.sp-card-header {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f2f5;
    background: #fff;
}

.sp-card-title {
    font-size: .9rem;
    font-weight: 600;
    color: #1a1f36;
    display: flex;
    align-items: center;
}

/* thead style */
.sp-thead th {
    background: #f8f9fb !important;
    color: #6b7280;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 10px 12px;
    border-bottom: 2px solid #eaecf0 !important;
    border-top: none !important;
}

/* Filters bar */
.sp-filters-bar {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: #f8f9fb;
    border-bottom: 1px solid #eaecf0;
    gap: 10px;
    flex-wrap: wrap;
}

.sp-filter-label {
    font-size: .78rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
}

.sp-filter-sep {
    width: 1px;
    height: 20px;
    background: #e5e7eb;
    flex-shrink: 0;
}

.sp-filter-select {
    width: auto !important;
    min-width: 150px;
    font-size: .8rem;
    border-radius: 20px;
    border-color: #e5e7eb;
}

/* Chips */
.sp-chip {
    border: 1px solid transparent;
    border-radius: 50px;
    padding: 3px 12px;
    font-size: .78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s ease;
    background: none;
    white-space: nowrap;
}

.sp-chip-dark {
    border-color: #dee2e6;
    color: #6c757d;
}

.sp-chip-dark.active {
    background: #1a1f36;
    border-color: #1a1f36;
    color: #fff;
}

.sp-chip-info {
    border-color: #9eeaf9;
    color: #0dcaf0;
}

.sp-chip-info.active {
    background: #0dcaf0;
    border-color: #0dcaf0;
    color: #fff;
}

.sp-chip-warn {
    border-color: #ffda6a;
    color: #997404;
}

.sp-chip-warn.active {
    background: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.sp-chip-prim {
    border-color: #9ec5fe;
    color: #0d6efd;
}

.sp-chip-prim.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.sp-chip-purp {
    border-color: #e2d9f3;
    color: #6f42c1;
}

.sp-chip-purp.active {
    background: #6f42c1;
    border-color: #6f42c1;
    color: #fff;
}

.sp-chip-succ {
    border-color: #a3cfbb;
    color: #198754;
}

.sp-chip-succ.active {
    background: #198754;
    border-color: #198754;
    color: #fff;
}

/* Inline editing */
.inline-input,
.inline-select {
    border-radius: 6px;
    padding: 2px 6px;
    min-height: 28px;
    font-size: .82rem;
    box-shadow: none !important;
}

.inline-input:focus,
.inline-select:focus {
    background: #fff !important;
    border: 1px solid #86b7fe !important;
    outline: 0;
}

/* Statut select pill */
select.statut-declare {
    background: #ecfeff !important;
    color: #0e7490 !important;
    border-color: #a5f3fc !important;
    border-radius: 20px;
    font-size: .75rem;
}

select.statut-en-cours {
    background: #fffbeb !important;
    color: #92400e !important;
    border-color: #fcd34d !important;
    border-radius: 20px;
    font-size: .75rem;
}

select.statut-fait {
    background: #fdf4ff !important;
    color: #86198f !important;
    border-color: #f0abfc !important;
    border-radius: 20px;
    font-size: .75rem;
}

select.statut-a-valider {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: #93c5fd !important;
    border-radius: 20px;
    font-size: .75rem;
}

select.statut-clos {
    background: #f0fdf4 !important;
    color: #166534 !important;
    border-color: #86efac !important;
    border-radius: 20px;
    font-size: .75rem;
}

/* Action buttons */
.action-btn {
    border-radius: 50%;
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Table rows */
.sp-tickets-table td {
    padding: 8px 12px;
}

.sp-tickets-table .inline-input {
    max-width: 100%;
}

/* ==========================================================================
   3. Responsive Design / Version Mobile et Tablette (Breakpoint 1280px)
   ========================================================================== */

@media (max-width: 1279.98px) {
    /* Éviter le défilement horizontal forcé de bootstrap sur mobile pour cette vue */
    .table-responsive {
        overflow-x: visible !important;
    }

    #table-tickets-inline {
        min-width: 100% !important;
    }

    /* Transformation de la table en blocs */
    #table-tickets-inline, 
    #table-tickets-inline tbody, 
    #table-tickets-inline tr, 
    #table-tickets-inline td { 
        display: block !important; 
    }

    /* Masquer l'en-tête de la table */
    #table-tickets-inline thead { 
        display: none !important; 
    }

    /* Style des cartes pour chaque ligne */
    #table-tickets-inline>tbody>tr:nth-child(odd),
    #table-tickets-inline>tbody>tr:nth-child(even) {
        background-color: #ffffff !important;
        border: 1px solid #eaecf0 !important;
        border-radius: 12px !important;
        margin-bottom: 16px !important;
        padding: 16px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
        transform: none !important;
        transition: box-shadow 0.2s ease-in-out;
        display: block !important;
    }

    #table-tickets-inline>tbody>tr:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        transform: none !important;
    }

    /* Reset des styles de cellules desktop */
    #table-tickets-inline>tbody>tr>td,
    #table-tickets-inline>tbody>tr>td:first-child,
    #table-tickets-inline>tbody>tr>td:last-child {
        border: none !important;
        border-bottom: 1px solid #f0f2f5 !important;
        border-radius: 0 !important;
        padding: 10px 0 !important;
        background-color: transparent !important;
    }

    #table-tickets-inline>tbody>tr>td:last-child {
        border-bottom: none !important;
    }

    /* Style commun des labels ::before */
    #table-tickets-inline tbody tr td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.72rem;
        color: #9ca3af;
        text-transform: uppercase;
        letter-spacing: .05em;
    }

    /* Rendu Côte-à-Côte (champs courts) */
    #table-tickets-inline tbody tr td:nth-of-type(1),
    #table-tickets-inline tbody tr td:nth-of-type(4),
    #table-tickets-inline tbody tr td:nth-of-type(5),
    #table-tickets-inline tbody tr td:nth-of-type(6),
    #table-tickets-inline tbody tr td:nth-of-type(8),
    #table-tickets-inline tbody tr td:nth-of-type(9),
    #table-tickets-inline tbody tr td:nth-of-type(10),
    #table-tickets-inline tbody tr td:nth-of-type(11) {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: 44px;
    }

    /* Rendu Empilé (champs longs) */
    #table-tickets-inline tbody tr td:nth-of-type(2),
    #table-tickets-inline tbody tr td:nth-of-type(3),
    #table-tickets-inline tbody tr td:nth-of-type(7) {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    #table-tickets-inline tbody tr td:nth-of-type(2)::before,
    #table-tickets-inline tbody tr td:nth-of-type(3)::before,
    #table-tickets-inline tbody tr td:nth-of-type(7)::before {
        margin-bottom: 8px;
    }

    /* Ajustement des dimensions des inputs/sélections */
    #table-tickets-inline tbody tr td:nth-of-type(2) textarea,
    #table-tickets-inline tbody tr td:nth-of-type(7) textarea {
        width: 100% !important;
        min-width: 100% !important;
        padding: 6px !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 6px !important;
        background: #f9fafb !important;
    }

    #table-tickets-inline tbody tr td:nth-of-type(2) textarea:focus,
    #table-tickets-inline tbody tr td:nth-of-type(7) textarea:focus {
        background: #ffffff !important;
        border-color: #0d6efd !important;
    }

    #table-tickets-inline tbody tr td:nth-of-type(3) .sp-recette-sel,
    #table-tickets-inline tbody tr td:nth-of-type(3) .sp-recette-sel select {
        width: 100% !important;
        max-width: 100% !important;
    }

    #table-tickets-inline tbody tr td:nth-of-type(3) select {
        border: 1px solid #e5e7eb !important;
        border-radius: 6px !important;
        background: #f9fafb !important;
        padding: 4px 8px !important;
    }

    /* Alignements spécifiques */
    #table-tickets-inline tbody tr td:nth-of-type(1) span {
        font-size: 0.95rem;
    }
}


/* ==========================================================================
   Import / Export Multi-MMI v1.4.0
   ========================================================================== */

.cursor-pointer {
	cursor: pointer;
}

.pm-import-dropzone {
	border: 2px dashed #cbd5e1;
	background-color: #f8fafc;
	transition: all 0.2s ease-in-out;
}

.pm-import-dropzone:hover,
.pm-import-dropzone.pm-dropzone-dragover {
	border-color: #0d6efd;
	background-color: rgba(13, 110, 253, 0.04);
}

.pm-mode-card {
	border-color: #e2e8f0 !important;
	background-color: #ffffff;
	transition: all 0.18s ease-in-out;
}

.pm-mode-card .form-check-input[type="radio"] {
	flex: 0 0 1.15rem !important;
	width: 1.15rem !important;
	height: 1.15rem !important;
	min-width: 1.15rem !important;
	min-height: 1.15rem !important;
	border-radius: 50% !important;
	margin-top: 0.2rem !important;
	cursor: pointer;
}

.pm-mode-card:hover {
	border-color: #94a3b8 !important;
	background-color: #f8fafc;
}

.pm-mode-card.active {
	border-color: #0d6efd !important;
	background-color: rgba(13, 110, 253, 0.04);
	box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.12);
}

.pm-mode-card.pm-mode-card-danger.active {
	border-color: #dc3545 !important;
	background-color: rgba(220, 53, 69, 0.04);
	box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15);
}

.pm-project-map-table th {
	font-size: 0.74rem;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: #64748b;
}

.pm-project-map-table td {
	padding-top: 0.65rem;
	padding-bottom: 0.65rem;
}

/* ==========================================================================
   Architecture Client / Serveur & SSO Multi-Tokens v1.5.0
   ========================================================================== */

.pm-arch-switch-card {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #ffffff;
	transition: all 0.2s ease;
}

.pm-arch-mode-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.3rem 0.75rem;
	border-radius: 50rem;
	font-size: 0.78rem;
	font-weight: 600;
}

.pm-token-reveal-box {
	background: #f0fdf4;
	border: 1px solid #86efac;
	border-radius: 10px;
}

.pm-token-code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.82rem;
	word-break: break-all;
	background: #ffffff;
	border: 1px solid #bbf7d0;
	border-radius: 6px;
	padding: 0.5rem 0.75rem;
	color: #14532d;
}

.pm-tokens-table th {
	font-size: 0.73rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
	background: #f8fafc;
}

.pm-empty-state {
	border: 1px dashed #cbd5e1;
	border-radius: 10px;
	background: #f8fafc;
	padding: 1.75rem 1.25rem;
	text-align: center;
}

@keyframes pmSpinAnim {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.pm-spin {
	display: inline-block;
	animation: pmSpinAnim 0.85s linear infinite;
}

.pm-vpn-probe-alert {
	border-left: 4px solid #0dcaf0;
}

/* ==========================================================================
   Espacement des en-têtes de page, Recherche Rapide & Visionneuse (v1.5.1+)
   ========================================================================== */

.pm-page-header {
	margin-bottom: 1.5rem !important;
}

.pm-ticket-detail-content {
	padding-top: 1.25rem;
}

/* Correctif Bootstrap 5 : restaure l'arrondi droit sur l'input quand .btn-clear-search est masqué (.d-none) */
.pm-search-container .input-group > .pm-quick-ticket-search:has(+ .btn-clear-search.d-none) {
	border-top-right-radius: var(--bs-border-radius-sm, 0.25rem) !important;
	border-bottom-right-radius: var(--bs-border-radius-sm, 0.25rem) !important;
}

/* Lorsque le bouton d'effacement est visible, fusion fluide sans double bordure et arrondi droit sur le bouton */
.pm-search-container .input-group > .pm-quick-ticket-search:has(+ .btn-clear-search:not(.d-none)) {
	border-right: 0 !important;
}

.pm-search-container .input-group > .btn-clear-search {
	background-color: #ffffff;
	border-top-right-radius: var(--bs-border-radius-sm, 0.25rem) !important;
	border-bottom-right-radius: var(--bs-border-radius-sm, 0.25rem) !important;
	line-height: 1;
	padding-left: 0.5rem;
	padding-right: 0.55rem;
}

.pm-search-container .input-group > .btn-clear-search:hover {
	color: #dc3545 !important;
	background-color: #fff5f5;
}

/* Cartes de pièces jointes cliquables avec aperçu visionneuse */
.pm-attachment-chip {
	background-color: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 0.5rem;
	transition: all 0.15s ease;
}

.pm-attachment-chip:hover {
	background-color: #eff6ff;
	border-color: #bfdbfe;
}

.pm-attachment-thumb {
	width: 34px;
	height: 34px;
	border-radius: 0.375rem;
	object-fit: cover;
	flex-shrink: 0;
	border: 1px solid rgba(15, 23, 42, 0.08);
	background-color: #e2e8f0;
}

.pm-viewer-modal .modal-body {
	height: 78vh;
	background-color: #0f172a;
}

.pm-viewer-iframe {
	width: 100%;
	height: 100%;
	border: 0;
	background-color: #ffffff;
}

/* Onglets segmentés de la modale de paramétrage (/plugins) et de #modal-project
 * Spécificité renforcée (.nav.nav-pills.pm-settings-tabs > .nav-item > .nav-link.active) + !important
 * afin de surcharger app_overrides.css (.nav-pills .nav-link.active { color: var(--on-primary) !important })
 * qui appliquait un texte blanc (#ffffff) sur le fond blanc (#ffffff) de l'onglet actif. */
.nav.nav-pills.pm-settings-tabs,
.pm-settings-tabs {
	--nav-pills-link-active-bg: #ffffff;
	--nav-pills-link-active-color: #0b5ed7;
	background-color: #e2e8f0;
	border: 1px solid #cbd5e1;
	padding: 0.25rem;
	border-radius: 0.6rem;
}

.nav.nav-pills.pm-settings-tabs > .nav-item > .nav-link,
.pm-settings-tabs .nav-link {
	color: #334155 !important;
	fill: currentColor !important;
	background-color: transparent !important;
	border-radius: 0.45rem;
	padding: 0.45rem 0.9rem;
	font-size: 0.875rem;
	transition: all 0.15s ease;
}

.nav.nav-pills.pm-settings-tabs > .nav-item > .nav-link .icon,
.nav.nav-pills.pm-settings-tabs > .nav-item > .nav-link svg,
.nav.nav-pills.pm-settings-tabs > .nav-item > .nav-link > span:not(.badge) {
	color: inherit !important;
	fill: currentColor !important;
}

.nav.nav-pills.pm-settings-tabs > .nav-item > .nav-link:hover:not(.active):not(:disabled):not(.disabled),
.pm-settings-tabs .nav-link:hover:not(.active):not(:disabled):not(.disabled) {
	color: #0f172a !important;
	background-color: rgba(255, 255, 255, 0.72) !important;
}

.nav.nav-pills.pm-settings-tabs > .nav-item > .nav-link.active,
.nav.nav-pills.pm-settings-tabs > .nav-item.show > .nav-link,
.pm-settings-tabs .nav-link.active {
	background-color: #ffffff !important;
	color: #0b5ed7 !important;
	fill: #0b5ed7 !important;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.nav.nav-pills.pm-settings-tabs > .nav-item > .nav-link:disabled,
.nav.nav-pills.pm-settings-tabs > .nav-item > .nav-link.disabled,
.pm-settings-tabs .nav-link:disabled,
.pm-settings-tabs .nav-link.disabled {
	color: #64748b !important;
	background-color: transparent !important;
	opacity: 0.58;
	cursor: not-allowed;
	pointer-events: auto;
}

/* ==========================================================================
   Matrice des Accès & Permissions Granulaires par Projet (#modal-project v1.6.0)
   ========================================================================== */

.pm-access-matrix-table th {
	font-size: 0.73rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
	background-color: #f8fafc;
}

.pm-access-matrix-table td {
	padding-top: 0.65rem;
	padding-bottom: 0.65rem;
	vertical-align: middle;
}

.pm-user-avatar-initials {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background-color: #e0f2fe;
	color: #0369a1;
	font-weight: 700;
	font-size: 0.76rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.pm-right-group-box {
	background-color: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 0.5rem;
	padding: 0.35rem 0.55rem;
}

.pm-right-group-title {
	font-size: 0.66rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
	margin-bottom: 0.25rem;
}

.pm-right-pill-check {
	display: inline-flex;
	align-items: center;
	gap: 0.32rem;
	padding: 0.16rem 0.48rem;
	border-radius: 999px;
	border: 1px solid #cbd5e1;
	background-color: #ffffff;
	font-size: 0.74rem;
	color: #475569;
	cursor: pointer;
	user-select: none;
	transition: all 0.14s ease;
}

.pm-right-pill-check:hover {
	border-color: #94a3b8;
}

.pm-right-pill-check.is-checked {
	background-color: rgba(13, 110, 253, 0.08);
	border-color: rgba(13, 110, 253, 0.45);
	color: #0b5ed7;
	font-weight: 600;
}

.pm-right-pill-check .form-check-input {
	width: 0.88rem;
	height: 0.88rem;
	cursor: pointer;
}

.pm-right-pill-check.is-locked {
	background-color: #eef2ff;
	border-color: #818cf8;
	border-style: dashed;
	color: #3730a3;
	font-weight: 600;
	cursor: not-allowed;
}

.pm-right-pill-check.is-locked:hover {
	border-color: #6366f1;
}

.pm-right-pill-check.is-locked .form-check-input {
	cursor: not-allowed;
	opacity: 0.72;
}

.pm-pill-lock-icon {
	width: 11px !important;
	height: 11px !important;
	color: #4f46e5 !important;
	fill: #4f46e5 !important;
	flex-shrink: 0;
}

.pm-badge-inherited {
	background-color: #eef2ff !important;
	color: #3730a3 !important;
	border: 1px solid #c7d2fe;
	font-size: 0.68rem;
}

/* ==========================================================================
   Intégration Select2 sur l'ensemble du plugin & Annuaire #modal-project
   ========================================================================== */

.select2-container .pm-select2-sm.select2-selection--single,
.pm-select2-sm .select2-selection--single {
	min-height: 31px !important;
	height: 31px !important;
	padding: 0.2rem 1.9rem 0.2rem 0.6rem !important;
	font-size: 0.8125rem !important;
	border-radius: 0.375rem !important;
	display: flex !important;
	align-items: center !important;
}

.pm-select2-sm .select2-selection--single .select2-selection__rendered {
	padding: 0 !important;
	line-height: 1.35 !important;
}

.sp-filters-bar .select2-container {
	width: auto !important;
	min-width: 155px;
}

.pm-s2-input-group > .select2-container {
	flex: 1 1 auto !important;
	width: 1% !important;
	min-width: 0;
}

.pm-s2-input-group > .input-group-text + select + .select2-container .select2-selection--single {
	border-top-left-radius: 0 !important;
	border-bottom-left-radius: 0 !important;
}

/* Sélecteurs badges colorés inline sur le Board (.sp-badge-select) */
.pm-select2-badge.select2-selection--single,
.pm-select2-badge .select2-selection--single {
	border-radius: 50rem !important;
	min-height: 26px !important;
	height: 26px !important;
	padding: 2px 24px 2px 10px !important;
	font-size: 0.75rem !important;
	font-weight: 600 !important;
	display: inline-flex !important;
	align-items: center !important;
}

.pm-select2-inline .select2-selection--single {
	border-color: transparent !important;
	background-color: transparent !important;
	min-height: 28px !important;
	padding: 2px 22px 2px 6px !important;
	font-size: 0.82rem !important;
}

.pm-select2-inline .select2-selection--single:hover {
	border-color: #e2e8f0 !important;
	background-color: #f8fafc !important;
}

/* Annuaire Select2 groupé par serveur d'origine dans #modal-project */
.pm-s2-user-dropdown .select2-results__options {
	max-height: 320px !important;
}

.pm-s2-user-dropdown .select2-results__group {
	background-color: #f1f5f9;
	color: #334155;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.42rem 0.75rem !important;
	border-top: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
}

.pm-s2-user-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.55rem;
	width: 100%;
	padding: 0.1rem 0;
}

.pm-s2-user-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-size: 0.68rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.pm-s2-user-avatar.is-local {
	background-color: #e2e8f0;
	color: #1e293b;
}

.pm-s2-user-avatar.is-sso {
	background-color: #cffafe;
	color: #0e7490;
}

.pm-origin-badge-local {
	background-color: #f1f5f9 !important;
	color: #334155 !important;
	border: 1px solid #cbd5e1;
	font-size: 0.68rem;
	font-weight: 600;
}

.pm-origin-badge-sso {
	background-color: #ecfeff !important;
	color: #0e7490 !important;
	border: 1px solid #a5f3fc;
	font-size: 0.68rem;
	font-weight: 600;
}

/* Bandeau contextuel de filtrage par serveur d'origine SSO */
.pm-origin-filter-banner {
	background: linear-gradient(90deg, #f0f9ff 0%, #ffffff 100%);
	border-left: 4px solid #0284c7 !important;
}

.pm-origin-filter-banner.is-unfiltered {
	background: #f8fafc;
	border-left: 4px solid #94a3b8 !important;
}

.pm-origin-filter-icon {
	width: 34px;
	height: 34px;
	background-color: #e0f2fe;
	color: #0284c7;
}

/* Sélecteurs Select2 multiples confinés au plugin */
.pm-select2-container.select2-selection--multiple,
.select2-container .pm-select2-container.select2-selection--multiple {
	min-height: 34px !important;
	padding: 2px 6px !important;
	border-radius: 0.375rem !important;
	border-color: #cbd5e1 !important;
}

.select2-container .pm-select2-sm.select2-selection--multiple {
	min-height: 31px !important;
	padding: 1px 5px !important;
	font-size: 0.8rem !important;
}

.select2-container .pm-select2-container.select2-selection--multiple .select2-selection__choice {
	background-color: #eff6ff !important;
	border: 1px solid #bfdbfe !important;
	color: #1d4ed8 !important;
	border-radius: 0.3rem !important;
	font-size: 0.75rem !important;
	font-weight: 600;
	padding: 1px 6px !important;
	margin-top: 2px !important;
	margin-bottom: 2px !important;
}

.select2-container .pm-select2-container.select2-selection--multiple .select2-selection__choice__remove {
	color: #1d4ed8 !important;
	margin-right: 4px !important;
	border-right: 0 !important;
}

/* ─── Section Suivi Projet sur la fiche utilisateur user/{id} (v1.7.0) ─── */
.pm-user-access-section .pm-ua-direct-card {
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	border: 1px solid #e2e8f0;
}

.pm-user-access-section .pm-ua-direct-icon {
	width: 38px;
	height: 38px;
	background-color: #eff6ff;
	color: #2563eb;
	border: 1px solid #bfdbfe;
}

.pm-user-access-section .pm-ua-switch {
	width: 2.75rem;
	height: 1.45rem;
	cursor: pointer;
}

.pm-user-access-section .pm-ua-badge-direct-on {
	background-color: #dcfce7 !important;
	color: #15803d !important;
	border: 1px solid #86efac;
	font-size: 0.7rem;
}

.pm-user-access-section .pm-ua-search-group {
	max-width: 340px;
}

.pm-user-access-section .pm-ua-projects-table > tbody > tr.is-assigned {
	background-color: rgba(239, 246, 255, 0.35);
}

.pm-user-access-section .pm-ua-projects-table > tbody > tr.is-unassigned > td:first-child {
	opacity: 0.85;
}


