/* Généré par npm run build:web-assets. Modifier les fichiers sources, pas ce bundle. */
/* Source: site.css */
/* site.css - Design moderne et professionnel (v2) */
:root {
    --primary: hsl(250, 69%, 61%); /* Vibrant Indigo */
    --primary-dark: hsl(250, 69%, 50%);
    --primary-light: hsl(250, 69%, 75%);
    --accent: hsl(39, 100%, 50%);
    --danger: hsl(348, 83%, 47%);
    --success: hsl(152, 69%, 31%);
    --muted: hsl(215, 16%, 47%);
    --bg-color: hsl(220, 33%, 98%);
    --card-bg: rgba(255, 255, 255, 0.9);
    --border-color: hsl(214, 32%, 91%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02), 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html, body {
    height: 100%;
}

body {
    background: radial-gradient(circle at top right, hsl(230, 80%, 96%), hsl(220, 33%, 98%) 40%, hsl(210, 30%, 97%));
    background-attachment: fixed;
    color: hsl(222, 47%, 11%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* header avec glassmorphism */
.site-header {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255, 0.5);
    padding: 16px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}

.site-main {
    flex: 1;
}

/* page layout */
.page {
    padding: 40px 0;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: hsl(222, 47%, 11%);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

/* Boutons modernes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
}

.btn:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px hsla(250, 69%, 61%, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary { background: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }

.btn-warning { background: var(--accent); color: white; }
.btn-warning:hover { background: hsl(39, 100%, 45%); box-shadow: 0 6px 16px hsla(39, 100%, 50%, 0.3); }

.btn-danger { background: var(--danger); color: white; box-shadow: var(--shadow-sm); }
.btn-danger:hover { background: hsl(348, 83%, 42%); box-shadow: 0 6px 16px hsla(348, 83%, 47%, 0.3); }

.btn-success { background: var(--success); color: white; box-shadow: var(--shadow-sm); }
.btn-success:hover { background: hsl(152, 69%, 26%); box-shadow: 0 6px 16px hsla(152, 69%, 31%, 0.3); }

.btn-outline-primary, .btn-outline-info, .btn-outline-secondary {
    background: white;
    border: 1px solid var(--border-color);
    color: hsl(222, 47%, 11%);
    box-shadow: var(--shadow-sm);
}

.btn-outline-primary:hover { border-color: var(--primary); color: var(--primary); background: hsl(250, 100%, 98%); box-shadow: var(--shadow); }
.btn-outline-info { color: hsl(199, 89%, 48%); }
.btn-outline-info:hover { border-color: hsl(199, 89%, 48%); color: hsl(199, 89%, 38%); background: hsl(199, 100%, 98%); box-shadow: var(--shadow); }
.btn-outline-secondary { color: var(--muted); }
.btn-outline-secondary:hover { border-color: var(--muted); background: hsl(0, 0%, 98%); box-shadow: var(--shadow); }

.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }

/* Table modernisée */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.table thead {
    background: hsl(210, 36%, 98%);
}

.table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    color: hsl(222, 47%, 11%);
    font-size: 14px;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background: hsl(210, 36%, 99%);
}

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

/* forms and inputs */
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    background: white;
    transition: all 0.25s ease;
    color: hsl(222, 47%, 11%);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px hsla(250, 69%, 61%, 0.15);
}

.input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.input-group .form-control {
    border-radius: var(--radius-full);
}

.btn-search {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    background: white;
    color: var(--primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
}

.btn-search:hover {
    border-color: var(--primary);
    color: white;
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsla(250, 69%, 61%, 0.2);
}

/* alerts */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
}

.alert-danger { background: hsl(351, 100%, 98%); color: hsl(348, 83%, 47%); border-color: hsla(348, 83%, 47%, 0.2); }
.alert-success { background: hsl(150, 100%, 98%); color: hsl(152, 69%, 31%); border-color: hsla(152, 69%, 31%, 0.2); }
.alert-warning { background: hsl(48, 100%, 96%); color: hsl(39, 100%, 40%); border-color: hsla(39, 100%, 50%, 0.2); }
.alert-info { background: hsl(210, 100%, 99%); color: hsl(215, 87%, 45%); border-color: hsla(215, 87%, 45%, 0.2); }

/* form simple */
.form-simple {
    background: var(--card-bg);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}
.form-row { margin-bottom: 20px; display: flex; flex-direction: column; }
.form-row label { font-weight: 600; margin-bottom: 8px; color: hsl(222, 47%, 11%); font-size: 14px; }

/* pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 32px 0;
}
.page-numbers { display: flex; gap: 6px; }

/* footer */
.site-footer {
    text-align: center;
    padding: 32px 24px;
    color: var(--muted);
    font-size: 14px;
}

/* utilities */
.text-muted { color: var(--muted); }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-3 { margin-bottom: 16px; }

/* Responsive */
@media (max-width: 768px) {
    .page-header { flex-direction: column; align-items: flex-start; }
    .table th, .table td { padding: 12px 14px; font-size: 13px; }
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .btn-sm { padding: 6px 10px; font-size: 12px; }
}

/* Source: admin-layout.css */
:root {
    --sidebar-width: 304px;
    --sidebar-collapsed-width: 84px;
}

.admin-shell-body {
    min-height: 100vh;
    background: #f5f7fb;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    height: 100vh;
    padding: 20px 16px;
    background: #0f172a;
    color: #e2e8f0;
    border-right: 1px solid rgba(148, 163, 184, 0.22);
    overflow-y: auto;
    z-index: 180;
    transition: width 180ms ease, padding 180ms ease, transform 180ms ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 4px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.brand-lockup,
.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.brand-lockup img,
.brand-mark img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 4px;
}

.brand-lockup strong {
    display: block;
    font-size: 16px;
    letter-spacing: 0;
}

.brand-lockup small {
    display: block;
    margin-top: 2px;
    color: #94a3b8;
    font-size: 12px;
}

.sidebar-collapse-toggle {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-size: 20px;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.sidebar-collapse-toggle:hover {
    background: rgba(99, 102, 241, 0.22);
    color: #fff;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 10px;
}

.user-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.18);
    color: #c4b5fd;
    font-size: 24px;
}

.sidebar-user strong,
.sidebar-user span {
    display: block;
}

.sidebar-user strong {
    font-size: 14px;
    color: #fff;
}

.sidebar-user span {
    color: #94a3b8;
    font-size: 12px;
}

.sidebar-nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0 20px;
}

.nav-section-title {
    display: block;
    margin: 0 10px 8px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 9px 10px;
    color: #dbeafe;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 650;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.sidebar-link i {
    width: 20px;
    color: #93c5fd;
    font-size: 19px;
}

.sidebar-link:hover {
    color: #fff;
    background: rgba(99, 102, 241, 0.22);
    transform: translateX(2px);
}

.sidebar-link.is-disabled {
    color: rgba(203, 213, 225, 0.46);
    cursor: not-allowed;
}

.sidebar-link.is-disabled i {
    color: rgba(147, 197, 253, 0.38);
}

.sidebar-link.is-disabled:hover {
    background: transparent;
    transform: none;
}

.sidebar-group {
    border-radius: 8px;
}

.sidebar-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 10px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #dbeafe;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.sidebar-group-toggle:hover,
.sidebar-group-toggle.is-active {
    color: #fff;
    background: rgba(99, 102, 241, 0.2);
}

.sidebar-group-label {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.sidebar-group-label i,
.sidebar-sublink i {
    flex: 0 0 20px;
    width: 20px;
    color: #93c5fd;
    font-size: 19px;
}

.group-caret {
    color: #94a3b8;
    font-size: 16px;
    transition: transform 160ms ease;
}

.sidebar-group.is-open .group-caret {
    transform: rotate(180deg);
}

.sidebar-submenu {
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid rgba(148, 163, 184, 0.2);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 220ms ease, opacity 180ms ease, margin-top 180ms ease;
}

.sidebar-group.is-open .sidebar-submenu {
    max-height: 720px;
    opacity: 1;
    margin-top: 6px;
}

.sidebar-sublink {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    margin: 1px 0;
    padding: 8px 10px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 650;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.sidebar-sublink:hover,
.sidebar-sublink.is-active {
    color: #fff;
    background: rgba(59, 130, 246, 0.16);
    transform: translateX(2px);
}

.sidebar-sublink.is-active {
    box-shadow: inset 3px 0 0 #60a5fa;
}

.sidebar-sublink.is-disabled {
    color: rgba(203, 213, 225, 0.48);
    cursor: not-allowed;
    transform: none;
}

.sidebar-sublink.is-disabled i {
    color: rgba(147, 197, 253, 0.38);
}

.sidebar-sublink.is-disabled:hover {
    background: transparent;
}

.coming-badge {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 3px 7px;
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(147, 197, 253, 0.24);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.sidebar-footer {
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.sidebar-footer form {
    margin: 0;
}

.sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(248, 113, 113, 0.28);
    border-radius: 10px;
    background: rgba(127, 29, 29, 0.18);
    color: #fecaca;
    font-weight: 750;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.sidebar-logout:hover {
    background: rgba(220, 38, 38, 0.18);
    color: #fff;
}

.app-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    transition: margin-left 180ms ease, width 180ms ease;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 74px;
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.app-eyebrow {
    display: block;
    margin-bottom: 2px;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
}

.app-topbar h1 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    color: #334155;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.topbar-link:hover {
    color: #4f46e5;
    border-color: #c7d2fe;
}

.app-main .site-main {
    flex: 1;
    width: 100%;
}

.app-main .container {
    max-width: 1280px;
}

.app-footer {
    margin-top: auto;
    padding: 18px 28px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    color: #64748b;
    text-align: left;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 6px;
    font-size: 13px;
}

.footer-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mobile-topbar {
    display: none;
}

.sidebar-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font-size: 22px;
    cursor: pointer;
}

.sidebar-collapsed .app-sidebar {
    width: var(--sidebar-collapsed-width);
    padding-right: 12px;
    padding-left: 12px;
}

.sidebar-collapsed .app-main {
    width: calc(100% - var(--sidebar-collapsed-width));
    margin-left: var(--sidebar-collapsed-width);
}

.sidebar-collapsed .sidebar-brand {
    justify-content: center;
    padding-right: 0;
    padding-left: 0;
}

.sidebar-collapsed .brand-lockup {
    justify-content: center;
}

.sidebar-collapsed .brand-lockup span,
.sidebar-collapsed .sidebar-user div:not(.user-avatar),
.sidebar-collapsed .sidebar-group-label span,
.sidebar-collapsed .group-caret,
.sidebar-collapsed .sidebar-submenu,
.sidebar-collapsed .sidebar-logout span {
    display: none;
}

.sidebar-collapsed .sidebar-collapse-toggle {
    position: absolute;
    right: 8px;
    top: 64px;
    width: 30px;
    height: 30px;
}

.sidebar-collapsed .sidebar-user {
    justify-content: center;
    padding: 10px;
}

.sidebar-collapsed .sidebar-group-toggle {
    justify-content: center;
    padding-right: 0;
    padding-left: 0;
}

.sidebar-collapsed .sidebar-group-label {
    justify-content: center;
}

.referentiel-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 14px 0;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.pagination-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 14px;
}

.pagination-summary strong {
    color: #111827;
}

.pagination-size-form,
.pagination-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-size-form {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.pagination-size-form .form-control {
    width: 92px;
}

.confirm-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.58);
}

.confirm-modal-backdrop[hidden] {
    display: none;
}

.confirm-modal {
    display: flex;
    gap: 14px;
    width: min(100%, 480px);
    padding: 22px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.3);
}

.confirm-modal-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 24px;
}

.confirm-modal-content {
    min-width: 0;
}

.confirm-modal h2 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 18px;
    letter-spacing: 0;
}

.confirm-modal p {
    margin: 0;
    color: #475569;
    line-height: 1.55;
}

.confirm-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

@media (max-width: 1100px) {
    .mobile-topbar {
        position: sticky;
        top: 0;
        z-index: 220;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 64px;
        padding: 10px 18px;
        background: rgba(255, 255, 255, 0.92);
        border-bottom: 1px solid #e5e7eb;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #111827;
        font-weight: 800;
    }

    .brand-mark img {
        width: 38px;
        height: 38px;
    }

    .app-sidebar {
        position: fixed;
        left: 0;
        width: var(--sidebar-width);
        padding: 20px 16px;
        transform: translateX(-104%);
        transition: transform 180ms ease;
        box-shadow: 16px 0 40px rgba(15, 23, 42, 0.22);
    }

    .app-main,
    .sidebar-collapsed .app-main {
        width: 100%;
        margin-left: 0;
    }

    .sidebar-collapsed .app-sidebar {
        width: var(--sidebar-width);
        padding: 20px 16px;
    }

    .sidebar-collapsed .brand-lockup span,
    .sidebar-collapsed .sidebar-user div:not(.user-avatar),
    .sidebar-collapsed .sidebar-group-label span,
    .sidebar-collapsed .group-caret,
    .sidebar-collapsed .sidebar-logout span {
        display: initial;
    }

    .sidebar-collapsed .sidebar-submenu {
        display: block;
    }

    .sidebar-collapsed .sidebar-brand {
        justify-content: space-between;
        padding: 0 4px 18px;
    }

    .sidebar-collapsed .sidebar-collapse-toggle {
        position: static;
        width: 36px;
        height: 36px;
    }

    .sidebar-collapsed .sidebar-user {
        justify-content: flex-start;
        padding: 12px;
    }

    .sidebar-collapsed .sidebar-group-toggle {
        justify-content: space-between;
        padding: 10px;
    }

    .sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .app-topbar {
        top: 64px;
        padding: 14px 18px;
    }
}

@media (max-width: 720px) {
    .app-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-actions {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .topbar-link {
        white-space: nowrap;
    }

    .app-footer {
        padding: 16px 18px;
    }

    .referentiel-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .pagination-summary,
    .pagination-size-form,
    .pagination-actions {
        justify-content: space-between;
    }

    .confirm-modal {
        flex-direction: column;
    }
}

.table-actions {
    position: relative;
    display: inline-block;
    text-align: left;
}

.table-actions summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.table-actions summary::-webkit-details-marker {
    display: none;
}

.table-actions[open] summary,
.table-actions summary:hover {
    color: #4f46e5;
    border-color: #c7d2fe;
}

.table-actions-menu {
    position: absolute;
    right: 0;
    z-index: 80;
    display: grid;
    min-width: 170px;
    margin-top: 6px;
    padding: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

.table-actions-menu.is-floating {
    position: fixed;
    z-index: 1000;
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    margin-top: 0;
    overflow-y: auto;
}

.table-actions-menu a,
.table-actions-menu button {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #334155;
    text-align: left;
    text-decoration: none;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.table-actions-menu a:hover,
.table-actions-menu button:hover {
    background: #f1f5f9;
    color: #111827;
}

.table-actions-menu .is-danger {
    color: #b91c1c;
}

.table-actions-menu form {
    margin: 0;
}

.fiche-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.fiche-hero h3 {
    margin: 0;
    color: #111827;
    font-size: 22px;
    letter-spacing: 0;
}

.fiche-hero p {
    margin: 4px 0 0;
    color: #64748b;
}

.fiche-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.status-pill.is-active {
    color: #166534;
    background: #dcfce7;
}

.status-pill.is-inactive {
    color: #991b1b;
    background: #fee2e2;
}

.status-pill.is-warning {
    color: #92400e;
    background: #fef3c7;
}

.fiche-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.fiche-panel {
    min-width: 0;
    padding: 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.fiche-panel.is-muted {
    background: #f8fafc;
}

.fiche-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.fiche-panel-header h3 {
    margin: 0;
    color: #111827;
    font-size: 16px;
    letter-spacing: 0;
}

.fiche-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fiche-definition-list {
    display: grid;
    grid-template-columns: minmax(130px, 0.45fr) minmax(0, 1fr);
    gap: 9px 14px;
    margin: 0;
}

.fiche-definition-list dt {
    color: #64748b;
    font-size: 13px;
    font-weight: 750;
}

.fiche-definition-list dd {
    margin: 0;
    color: #111827;
    min-width: 0;
    overflow-wrap: anywhere;
}

.fiche-panel p {
    margin: 0;
    color: #64748b;
    line-height: 1.55;
}

.fiche-danger-zone {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

@media (max-width: 900px) {
    .fiche-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .fiche-grid {
        grid-template-columns: 1fr;
    }

    .fiche-hero-meta,
    .fiche-danger-zone {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .fiche-definition-list {
        grid-template-columns: 1fr;
    }

    .table-actions-menu {
        right: auto;
        left: 0;
    }
}

.selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.selected-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #f9fafb;
    color: #111827;
    font-size: 0.88rem;
    font-weight: 600;
}

.selected-chip button {
    border: 0;
    background: transparent;
    color: #6b7280;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.selected-chip button:hover {
    color: #dc2626;
}

.mission-form-shell {
    display: grid;
    gap: 18px;
}

.mission-form-section {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    padding: 18px;
}

.mission-section-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.mission-section-title > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #1f2937;
    color: #ffffff;
    font-weight: 800;
    flex: 0 0 auto;
}

.mission-section-title h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}

.mission-section-title p {
    margin: 2px 0 0;
    color: #6b7280;
    font-size: 0.88rem;
}

.mission-form-grid {
    display: grid;
    gap: 14px;
}

.mission-form-grid.two-one {
    grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
}

.mission-form-grid.thirds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mission-form-grid.halves {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.remote-picker-box {
    position: relative;
}

.remote-results {
    position: absolute;
    z-index: 30;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 240px;
    overflow: auto;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
    padding: 6px;
}

.remote-results button {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 9px 10px;
    border-radius: 6px;
    text-align: left;
    color: #111827;
    cursor: pointer;
}

.remote-results button:hover,
.remote-results button:focus {
    background: #f3f4f6;
}

.mission-form-errors:empty {
    display: none;
}

@media (max-width: 900px) {
    .mission-form-grid.two-one,
    .mission-form-grid.thirds,
    .mission-form-grid.halves {
        grid-template-columns: 1fr;
    }
}

.mission-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.mission-stat-card {
    display: block;
    min-width: 0;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    text-decoration: none;
}

.mission-stat-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    color: #111827;
}

.mission-stat-card span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.mission-stat-card strong {
    display: block;
    margin-top: 6px;
    font-size: 28px;
    line-height: 1;
}

.mission-stat-card.is-warning strong {
    color: #b45309;
}

.mission-stat-card.is-info strong {
    color: #2563eb;
}

.mission-stat-card.is-danger strong {
    color: #dc2626;
}

.mission-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
    gap: 18px;
}

.mission-dashboard-main {
    grid-row: span 2;
}

.mission-clickable-row {
    cursor: pointer;
}

.mission-clickable-row:hover td {
    background: #f8fafc;
}

.mission-filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 170px auto auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 20px;
}

.mission-validation-filter {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 20px;
}

.mission-details-header .form-actions form {
    margin: 0;
}

.decision-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.42);
}

.decision-modal-backdrop[hidden] {
    display: none;
}

.decision-modal {
    width: min(560px, 100%);
    padding: 20px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.decision-modal h2 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 20px;
    letter-spacing: 0;
}

.decision-modal p {
    margin: 0 0 14px;
}

@media (max-width: 1100px) {
    .mission-dashboard-stats,
    .mission-dashboard-grid,
    .mission-filter-bar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .mission-dashboard-stats,
    .mission-dashboard-grid,
    .mission-filter-bar,
    .mission-validation-filter {
        grid-template-columns: 1fr;
    }
}

/* Source: sigi-ui.css */
:root {
    --primary: #1769e0;
    --primary-dark: #0f55bd;
    --primary-light: #dbeafe;
    --accent: #c89200;
    --danger: #c9363e;
    --success: #16805a;
    --warning: #9a6700;
    --muted: #667085;
    --bg-color: #f4f6f8;
    --card-bg: #ffffff;
    --border-color: #dce2e8;
    --text-strong: #17212b;
    --text-soft: #475467;
    --sidebar-surface: #10243b;
    --sidebar-surface-strong: #0b1b2d;
    --sidebar-active: #183d63;
    --shadow-sm: 0 1px 2px rgba(16, 36, 59, 0.06);
    --shadow: 0 8px 22px rgba(16, 36, 59, 0.08);
    --shadow-lg: 0 20px 48px rgba(16, 36, 59, 0.16);
    --radius-md: 6px;
    --radius-lg: 8px;
}

html {
    background: var(--bg-color);
}

body.admin-shell-body {
    min-width: 320px;
    overflow-x: hidden;
    background: var(--bg-color);
    color: var(--text-strong);
}

body.modal-open {
    overflow: hidden;
}

a,
button,
input,
select,
textarea,
summary {
    letter-spacing: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(23, 105, 224, 0.28);
    outline-offset: 2px;
}

.sigi-skip-link {
    position: fixed;
    z-index: 2000;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    background: #ffffff;
    color: var(--text-strong);
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    transition: transform 140ms ease;
}

.sigi-skip-link:focus {
    transform: translateY(0);
}

.app-sidebar {
    background: var(--sidebar-surface);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: none;
}

.sidebar-brand {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.brand-mark,
.brand-mark img {
    flex: 0 0 auto;
}

.brand-mark img {
    object-fit: contain;
}

.brand-lockup strong,
.mobile-brand strong {
    letter-spacing: 0;
}

.sidebar-user {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: none;
}

.sidebar-group-toggle,
.sidebar-sublink {
    min-height: 42px;
    border-radius: 6px;
}

.sidebar-group-toggle:hover,
.sidebar-group-toggle.is-active {
    background: rgba(255, 255, 255, 0.07);
}

.sidebar-sublink {
    position: relative;
}

.sidebar-sublink:hover {
    background: rgba(255, 255, 255, 0.065);
}

.sidebar-sublink.is-active {
    background: var(--sidebar-active);
    color: #ffffff;
    box-shadow: inset 3px 0 0 var(--accent);
}

.sidebar-sublink.is-disabled {
    opacity: 0.58;
}

.coming-badge {
    background: rgba(200, 146, 0, 0.16);
    color: #f7d77c;
}

.sidebar-collapse-toggle,
.sidebar-toggle {
    border-radius: 6px;
}

.sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 205;
    display: none;
    border: 0;
    background: rgba(11, 27, 45, 0.48);
    cursor: default;
}

.app-main {
    background: var(--bg-color);
}

.app-topbar {
    min-height: 70px;
    padding: 14px clamp(18px, 2.4vw, 34px);
    border-bottom-color: var(--border-color);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 0 rgba(16, 36, 59, 0.03);
}

.app-eyebrow {
    color: var(--muted);
    font-size: 11px;
}

.app-topbar h1 {
    color: var(--text-strong);
    font-size: clamp(18px, 2vw, 22px);
}

.topbar-link {
    min-height: 38px;
    border-color: var(--border-color);
    border-radius: 6px;
    color: var(--text-soft);
    box-shadow: var(--shadow-sm);
}

.topbar-link:hover {
    border-color: #a7c7f5;
    color: var(--primary-dark);
    background: #f8fbff;
}

.app-main .site-main {
    min-width: 0;
}

.app-main .container {
    width: 100%;
    max-width: 1560px;
    padding-right: clamp(16px, 2vw, 30px);
    padding-left: clamp(16px, 2vw, 30px);
}

.page {
    padding-top: clamp(20px, 2.4vw, 34px);
    padding-bottom: clamp(28px, 3vw, 48px);
}

.page-header {
    align-items: flex-start;
    margin-bottom: 22px;
}

.page-header h2,
.site-main h2 {
    color: var(--text-strong);
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.22;
    letter-spacing: 0;
}

.page-header p {
    max-width: 760px;
}

.btn {
    min-height: 40px;
    padding: 9px 15px;
    border-radius: 6px;
    box-shadow: none;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.btn:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(16, 36, 59, 0.12);
}

.btn-sm {
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 6px;
}

.btn-icon {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 6px;
}

.btn-secondary {
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-soft);
}

.btn-secondary:hover {
    border-color: #a7c7f5;
    background: #f8fbff;
    color: var(--primary-dark);
}

.form-control {
    min-height: 42px;
    padding: 9px 12px;
    border-color: #cfd8e3;
    border-radius: 6px;
    box-shadow: none;
}

textarea.form-control {
    min-height: 96px;
    resize: vertical;
}

.form-control:hover {
    border-color: #aebccb;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.14);
}

.form-row {
    min-width: 0;
    margin-bottom: 16px;
}

.form-row label {
    margin-bottom: 6px;
    color: #344054;
}

.form-text,
.text-muted {
    color: var(--muted);
}

.form-simple,
.mission-form-section,
.fiche-panel,
.fiche-hero {
    border-color: var(--border-color);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.form-simple {
    padding: clamp(16px, 2.2vw, 26px);
}

.mission-form-section,
.fiche-panel,
.fiche-hero {
    padding: clamp(16px, 2vw, 22px);
}

.mission-section-title > span {
    border-radius: 6px;
    background: var(--sidebar-surface);
}

.mission-form-grid,
.fiche-grid,
.mission-dashboard-grid,
.mission-dashboard-stats {
    min-width: 0;
}

.mission-form-grid[hidden] {
    display: none !important;
}

.row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    min-width: 0;
}

.col-md-3 { grid-column: span 3; }
.col-md-4 { grid-column: span 4; }
.col-md-6 { grid-column: span 6; }
.col-md-8 { grid-column: span 8; }
.col-md-9 { grid-column: span 9; }
.col-md-12 { grid-column: span 12; }

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.table-responsive-auto {
    margin-bottom: 22px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #ffffff;
}

.table {
    min-width: 720px;
    margin-bottom: 0;
    border: 0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
}

.table th {
    padding: 12px 14px;
    background: #f7f9fb;
    color: #596579;
    font-size: 11px;
    letter-spacing: 0;
    white-space: nowrap;
}

.table td {
    padding: 13px 14px;
    color: var(--text-strong);
}

.table tbody tr:hover {
    background: #f8fbff;
}

.table-actions-menu {
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.alert {
    border-radius: 6px;
    box-shadow: none;
}

.status-pill,
.badge {
    border-radius: 999px;
}

.referentiel-pagination {
    border-color: var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.remote-results {
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.selected-chip {
    border-radius: 999px;
    background: #f4f7fb;
}

.app-footer {
    border-top-color: var(--border-color);
    background: #ffffff;
}

.confirm-modal-backdrop {
    padding: 18px;
    background: rgba(11, 27, 45, 0.62);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.confirm-modal {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    width: min(100%, 500px);
    max-height: min(620px, calc(100vh - 36px));
    overflow-y: auto;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.confirm-modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 6px;
}

.confirm-modal[data-variant="default"] .confirm-modal-icon {
    background: #eaf2ff;
    color: var(--primary-dark);
}

.confirm-modal[data-variant="warning"] .confirm-modal-icon {
    background: #fff5d6;
    color: var(--warning);
}

.confirm-modal[data-variant="danger"] .confirm-modal-icon {
    background: #fff0f1;
    color: var(--danger);
}

.confirm-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.confirm-modal-close:hover {
    background: #f2f4f7;
    color: var(--text-strong);
}

.confirm-modal-content {
    padding-right: 20px;
}

.confirm-modal-actions {
    gap: 8px;
}

@media (max-width: 1100px) {
    .sidebar-open .sidebar-scrim {
        display: block;
    }

    .mobile-topbar {
        border-bottom-color: var(--border-color);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow-sm);
    }

    .mobile-brand {
        min-width: 0;
    }

    .mobile-brand > span:last-child {
        display: grid;
        min-width: 0;
    }

    .mobile-brand small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-sidebar {
        z-index: 210;
    }
}

@media (max-width: 900px) {
    .col-md-3,
    .col-md-4,
    .col-md-6,
    .col-md-8,
    .col-md-9 {
        grid-column: span 12;
    }

    .mission-dashboard-grid,
    .fiche-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .mobile-topbar {
        min-height: 60px;
        padding: 9px 14px;
    }

    .mobile-brand {
        gap: 8px;
    }

    .mobile-brand .brand-mark img {
        width: 36px;
        height: 36px;
    }

    .app-topbar {
        top: 60px;
        min-height: 64px;
        padding: 10px 16px;
    }

    .app-topbar .topbar-actions {
        display: none;
    }

    .app-eyebrow {
        display: none;
    }

    .page {
        padding-top: 20px;
        padding-bottom: 30px;
    }

    .page-header {
        gap: 12px;
        margin-bottom: 18px;
    }

    .page-header .form-actions {
        width: 100%;
    }

    .page-header .form-actions .btn {
        flex: 1 1 auto;
    }

    .form-simple {
        padding: 16px;
    }

    .form-actions {
        align-items: stretch;
    }

    .form-actions > .btn,
    .form-actions > form,
    .form-actions > form > .btn {
        flex: 1 1 auto;
    }

    .referentiel-pagination,
    .pagination-summary,
    .pagination-size-form,
    .pagination-actions {
        width: 100%;
    }

    .table {
        min-width: 680px;
    }
}

@media (max-width: 520px) {
    .mobile-brand small {
        display: none;
    }

    .mobile-brand strong {
        font-size: 16px;
    }

    .confirm-modal {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .confirm-modal-content {
        padding-right: 0;
    }

    .confirm-modal-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* Activity classification */
.reunion-classification {
    margin: 22px 0;
    padding: 18px 0;
    border-top: 1px solid var(--sigi-border, #dfe3e8);
    border-bottom: 1px solid var(--sigi-border, #dfe3e8);
}

.sigi-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    margin-top: 8px;
}

.sigi-check-option {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--sigi-border, #dfe3e8);
    border-radius: 6px;
    background: var(--sigi-surface, #fff);
    color: var(--sigi-ink-soft, #334155);
    cursor: pointer;
}

.sigi-check-option:hover {
    border-color: var(--sigi-primary, #2563eb);
    background: var(--sigi-surface-2, #f8fafc);
}

.sigi-check-option:has(input:checked) {
    border-color: color-mix(in srgb, var(--sigi-primary, #2563eb) 58%, var(--sigi-border, #dfe3e8));
    background: var(--sigi-primary-soft, #e8f0ff);
    color: var(--sigi-ink, #111827);
}

.sigi-check-option:focus-within {
    border-color: var(--sigi-primary, #2563eb);
    box-shadow: 0 0 0 3px var(--sigi-focus, rgba(37, 99, 235, 0.28));
}

.sigi-check-option input {
    flex: 0 0 auto;
    margin-top: 3px;
}

.sigi-check-option span {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 700px) {
    .sigi-check-grid {
        grid-template-columns: 1fr;
    }
}


/* PTA activity reports */
.report-page {
    max-width: 1500px;
}

.report-filters {
    margin-bottom: 20px;
}

.report-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 16px;
    align-items: end;
}

.report-filter-grid .form-row {
    min-width: 0;
    margin-bottom: 0;
}

.report-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    min-height: 42px;
}

.report-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.report-kpis > div {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--sigi-border, #dfe3e8);
    border-left: 4px solid #1d4ed8;
    border-radius: 6px;
    background: #fff;
}

.report-kpis > div:nth-child(2) {
    border-left-color: #b7791f;
}

.report-kpis > div:nth-child(3) {
    border-left-color: #047857;
}

.report-kpis > div:nth-child(4) {
    border-left-color: #6b7280;
}

.report-kpis span {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.report-kpis strong {
    display: block;
    margin-top: 6px;
    color: #111827;
    font-size: 1.75rem;
    line-height: 1;
}

.report-charts {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin-bottom: 20px;
}

.chart-legend {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    color: #64748b;
    font-size: 0.78rem;
}

.chart-legend i {
    width: 9px;
    height: 9px;
    border-radius: 2px;
}

.mission-dot,
.mission-segment {
    background: #1d4ed8;
}

.reunion-dot,
.reunion-segment {
    background: #b7791f;
}

.report-bar-list {
    display: grid;
    gap: 13px;
}

.report-bar-row {
    display: grid;
    grid-template-columns: minmax(170px, 1.3fr) minmax(120px, 1fr) 32px;
    gap: 10px;
    align-items: center;
}

.report-bar-label {
    min-width: 0;
}

.report-bar-label strong,
.report-bar-label span {
    display: block;
}

.report-bar-label span {
    color: #475569;
    font-size: 0.8rem;
    overflow-wrap: anywhere;
}

.report-bar-track {
    height: 12px;
    overflow: hidden;
    border-radius: 3px;
    background: #e5e7eb;
}

.report-bar-fill {
    display: flex;
    height: 100%;
    min-width: 4px;
    overflow: hidden;
    border-radius: 3px;
}

.report-bar-fill span {
    display: block;
    min-width: 3px;
}

.report-bar-value {
    color: #111827;
    text-align: right;
}

.report-results {
    padding-top: 4px;
}

.page-header.compact {
    margin-bottom: 10px;
}

.page-header.compact h3 {
    margin: 0;
}

@media (max-width: 1100px) {
    .report-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .report-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .report-filter-grid,
    .report-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-bar-row {
        grid-template-columns: minmax(120px, 1fr) minmax(90px, 0.8fr) 28px;
    }
}

@media (max-width: 520px) {
    .report-filter-grid,
    .report-kpis {
        grid-template-columns: 1fr;
    }

    .report-bar-row {
        grid-template-columns: minmax(0, 1fr) 26px;
        gap: 6px 8px;
    }

    .report-bar-track {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .report-bar-value {
        grid-column: 2;
        grid-row: 1;
    }
}
/* Mission detail workspace */
.mission-detail-page {
    max-width: 1500px;
}

.mission-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 13px;
}

.mission-detail-breadcrumb a {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
}

.mission-detail-breadcrumb i {
    font-size: 12px;
}

.mission-detail-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: start;
    margin-bottom: 20px;
}

.mission-detail-heading {
    min-width: 0;
}

.mission-detail-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.mission-detail-title-row h2 {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--text-strong);
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.16;
    letter-spacing: 0;
}

.mission-detail-heading > p {
    max-width: 820px;
    margin: 8px 0 0;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.55;
}

.mission-detail-badges,
.mission-detail-toolbar,
.mission-decision-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.mission-detail-toolbar {
    justify-content: flex-end;
    max-width: 720px;
}

.mission-detail-toolbar .btn,
.mission-decision-actions .btn,
.mission-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.mission-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.mission-status.is-success {
    border-color: #b7e4d2;
    background: #e7f6ef;
    color: #116b4b;
}

.mission-status.is-info {
    border-color: #bed7fa;
    background: #eaf3ff;
    color: #1559a9;
}

.mission-status.is-warning {
    border-color: #efd99a;
    background: #fff7dd;
    color: #845a00;
}

.mission-status.is-danger {
    border-color: #efc1c4;
    background: #fff0f1;
    color: #a62d35;
}

.mission-status.is-neutral {
    border-color: #d7dee7;
    background: #f4f6f8;
    color: #526174;
}

.mission-decision-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid #efd99a;
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    background: #fffbef;
}

.mission-decision-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #845a00;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.mission-decision-bar h3,
.mission-decision-bar p {
    margin: 0;
}

.mission-decision-bar h3 {
    color: #1d2a3a;
    font-size: 17px;
    letter-spacing: 0;
}

.mission-decision-bar p {
    margin-top: 4px;
    color: #4a596a;
    font-size: 13px;
}

.mission-decision-actions form,
.mission-operation-panel form {
    margin: 0;
}

.mission-om-upload-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mission-om-upload-form .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.mission-om-upload-form .form-control {
    width: min(310px, 34vw);
    min-height: 40px;
    padding: 7px 9px;
    background: #fff;
    border-color: #9aa7b7;
    color: #1d2a3a;
}

.mission-detail-summary {
    display: grid;
    grid-template-columns: 1.15fr 1fr 0.65fr 1fr;
    margin-bottom: 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.mission-detail-summary > div {
    min-width: 0;
    padding: 16px 18px;
    border-right: 1px solid var(--border-color);
}

.mission-detail-summary > div:last-child {
    border-right: 0;
}

.mission-detail-summary span,
.mission-detail-summary strong,
.mission-detail-summary small {
    display: block;
}

.mission-detail-summary span {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.mission-detail-summary strong {
    overflow-wrap: anywhere;
    color: var(--text-strong);
    font-size: 14px;
    line-height: 1.35;
}

.mission-detail-summary small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.mission-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.82fr);
    gap: 18px;
    align-items: start;
}

.mission-detail-main,
.mission-detail-aside {
    display: grid;
    min-width: 0;
    gap: 18px;
}

.mission-detail-section {
    min-width: 0;
    padding: clamp(18px, 2vw, 24px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.mission-detail-section-header,
.mission-detail-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.mission-detail-section-header {
    margin-bottom: 20px;
}

.mission-detail-section-header-row {
    justify-content: space-between;
}

.mission-detail-section-header h3,
.mission-detail-section-header p {
    margin: 0;
}

.mission-detail-section-header h3 {
    color: var(--text-strong);
    font-size: 17px;
    line-height: 1.25;
    letter-spacing: 0;
}

.mission-detail-section-header p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.mission-section-icon {
    display: inline-grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 6px;
    background: #eaf3ff;
    color: var(--primary-dark);
    font-size: 19px;
}

.mission-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
    margin: 0;
}

.mission-detail-list > div {
    min-width: 0;
}

.mission-detail-list-wide {
    grid-column: 1 / -1;
}

.mission-detail-list dt,
.mission-state-list dt {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.mission-detail-list dd,
.mission-state-list dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--text-strong);
    font-size: 14px;
    line-height: 1.5;
}

.mission-tag-group {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

.mission-tag-group > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.mission-tag-group > div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.mission-tag,
.mission-role-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eaf3ff;
    color: #1559a9;
    font-size: 12px;
    font-weight: 750;
}

.mission-tag.is-muted {
    background: #f3f5f7;
    color: var(--muted);
}

.mission-role-badge {
    background: #eef8f4;
    color: #146b50;
    white-space: nowrap;
}

.mission-detail-table-wrap {
    border: 1px solid var(--border-color);
    border-radius: 7px;
}

.mission-detail-table {
    min-width: 760px;
}

.mission-detail-table td strong,
.mission-detail-table td span,
.mission-detail-table td small {
    display: block;
}

.mission-detail-table td small {
    margin-top: 3px;
    color: var(--muted);
}

.mission-report-notes {
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 6px;
    background: #f7f9fb;
}

.mission-document-list {
    display: grid;
    gap: 9px;
}

.mission-document-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 11px 12px;
    border: 1px solid var(--border-color);
    border-radius: 7px;
}

.mission-document-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 6px;
    background: #fff0f1;
    color: var(--danger);
    font-size: 20px;
}

.mission-document-item strong,
.mission-document-item span {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.mission-document-item strong {
    color: var(--text-strong);
    font-size: 13px;
}

.mission-document-item > div > span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.mission-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 72px;
    padding: 16px;
    border: 1px dashed #cfd8e3;
    border-radius: 7px;
    background: #fafbfc;
    color: var(--muted);
    text-align: center;
}

.mission-state-list {
    display: grid;
    margin: 0;
}

.mission-state-list > div {
    display: grid;
    grid-template-columns: minmax(100px, 0.9fr) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.mission-state-list > div:first-child {
    padding-top: 0;
}

.mission-state-list > div:last-child {
    border-bottom: 0;
}

.mission-state-list dt {
    margin: 0;
}

.mission-state-list dd {
    text-align: right;
}

.mission-inline-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding: 11px 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.45;
}

.mission-inline-alert i {
    margin-top: 1px;
    font-size: 17px;
}

.mission-inline-alert.is-danger {
    background: #fff0f1;
    color: #a62d35;
}

.mission-inline-alert.is-warning {
    background: #fff7dd;
    color: #845a00;
}

.mission-operation-panel {
    border-color: #c8daf2;
    background: #fbfdff;
}

.mission-prolongation-alert {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #e8c36a;
    border-left: 3px solid var(--warning);
    border-radius: 7px;
    background: #fff9e8;
}

.mission-prolongation-alert-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 6px;
    background: #ffeab5;
    color: #845a00;
    font-size: 21px;
}

.mission-prolongation-alert h3,
.mission-prolongation-alert p,
.mission-prolongation-alert div > span {
    margin: 0;
}

.mission-prolongation-alert div > span {
    color: #845a00;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.mission-prolongation-alert h3 { margin-top: 2px; color: var(--text-strong); font-size: 15px; }
.mission-prolongation-alert p { margin-top: 3px; color: var(--muted); font-size: 11px; }

.mission-prolongation-section { scroll-margin-top: 92px; }

.mission-prolongation-request {
    margin-bottom: 22px;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--border-color);
}

.mission-prolongation-form-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 13px;
}

.mission-prolongation-form-heading strong { color: var(--text-strong); font-size: 14px; }
.mission-prolongation-form-heading span { color: var(--muted); font-size: 11px; }

.mission-prolongation-form-grid {
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.5fr) minmax(220px, 0.9fr);
    gap: 14px;
    align-items: start;
}

.mission-prolongation-form-grid .form-row { margin: 0; }
.mission-prolongation-form-grid small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.mission-prolongation-submit { display: flex; justify-content: flex-end; margin-top: 13px; }

.mission-prolongation-history { border-top: 1px solid var(--border-color); }

.mission-prolongation-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
}

.mission-prolongation-item:last-child { padding-bottom: 0; border-bottom: 0; }

.mission-prolongation-item-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.mission-prolongation-item-heading div > span,
.mission-prolongation-item-heading div > strong { display: block; }
.mission-prolongation-item-heading div > span { color: var(--muted); font-size: 10px; }
.mission-prolongation-item-heading div > strong { margin-top: 4px; color: var(--text-strong); font-size: 14px; }
.mission-prolongation-item-heading div > strong i { margin: 0 5px; color: var(--primary); }

.mission-prolongation-reason {
    margin: 12px 0;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.mission-prolongation-document {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px dashed var(--border-color);
}

.mission-prolongation-document > div { display: flex; min-width: 0; align-items: center; gap: 9px; }
.mission-prolongation-document > div > i { flex: 0 0 auto; color: var(--danger); font-size: 20px; }
.mission-prolongation-document strong,
.mission-prolongation-document small { display: block; min-width: 0; overflow-wrap: anywhere; }
.mission-prolongation-document strong { color: var(--text-strong); font-size: 12px; }
.mission-prolongation-document small { margin-top: 2px; color: var(--muted); font-size: 10px; }

.mission-prolongation-decision {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.mission-prolongation-decision .form-row { margin: 0; }
.mission-prolongation-decision-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 11px; }

.mission-prolongation-decision-summary {
    margin-top: 10px;
    padding: 10px 0 0;
    border-top: 1px dashed var(--border-color);
}

.mission-prolongation-decision-summary strong { color: var(--text-strong); font-size: 11px; }
.mission-prolongation-decision-summary p { margin: 6px 0 0; color: var(--text-soft); font-size: 12px; overflow-wrap: anywhere; }

.mission-operation-panel form + form {
    margin-top: 10px;
}

.mission-action-button {
    width: 100%;
}

.mission-validation-timeline {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mission-validation-timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 18px;
}

.mission-validation-timeline li:not(:last-child)::before {
    position: absolute;
    top: 14px;
    bottom: 0;
    left: 6px;
    width: 1px;
    background: #cfdae6;
    content: "";
}

.mission-validation-timeline li:last-child {
    padding-bottom: 0;
}

.mission-timeline-dot {
    position: relative;
    z-index: 1;
    width: 13px;
    height: 13px;
    margin-top: 3px;
    border: 3px solid #dbeafe;
    border-radius: 50%;
    background: var(--primary);
}

.mission-validation-timeline strong,
.mission-validation-timeline span {
    display: block;
}

.mission-validation-timeline strong {
    color: var(--text-strong);
    font-size: 13px;
}

.mission-validation-timeline span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.mission-validation-timeline p {
    margin: 7px 0 0;
    padding: 8px 10px;
    border-radius: 5px;
    background: #f5f7f9;
    color: var(--text-soft);
    font-size: 12px;
}

.mission-detail-updated {
    margin: -4px 0 0;
    color: var(--muted);
    font-size: 11px;
    text-align: right;
}

@media (max-width: 1180px) {
    .mission-detail-header {
        grid-template-columns: 1fr;
    }

    .mission-detail-toolbar {
        justify-content: flex-start;
        max-width: none;
    }

    .mission-detail-layout {
        grid-template-columns: 1fr;
    }

    .mission-detail-aside {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mission-detail-aside > :last-child,
    .mission-detail-updated {
        grid-column: 1 / -1;
    }
}

@media (max-width: 820px) {
    .mission-detail-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mission-detail-summary > div:nth-child(2) {
        border-right: 0;
    }

    .mission-detail-summary > div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--border-color);
    }

    .mission-decision-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .mission-decision-actions {
        justify-content: flex-start;
    }

    .mission-detail-aside {
        grid-template-columns: 1fr;
    }

    .mission-detail-aside > :last-child,
    .mission-detail-updated {
        grid-column: auto;
    }

    .mission-prolongation-form-grid { grid-template-columns: 1fr 1fr; }
    .mission-prolongation-motif { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 620px) {
    .mission-detail-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .mission-detail-toolbar,
    .mission-decision-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .mission-detail-toolbar .btn,
    .mission-decision-actions .btn,
    .mission-decision-actions form {
        width: 100%;
    }

    .mission-om-upload-form {
        display: grid;
    }

    .mission-om-upload-form .form-control {
        width: 100%;
    }

    .mission-detail-summary,
    .mission-detail-list {
        grid-template-columns: 1fr;
    }

    .mission-detail-summary > div {
        border-right: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .mission-detail-summary > div:last-child {
        border-bottom: 0;
    }

    .mission-detail-list-wide {
        grid-column: auto;
    }

    .mission-detail-section-header-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .mission-document-item {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .mission-document-item .btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .mission-state-list > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .mission-state-list dd {
        text-align: left;
    }

    .mission-prolongation-alert { grid-template-columns: 36px minmax(0, 1fr); }
    .mission-prolongation-alert-icon { width: 36px; height: 36px; }
    .mission-prolongation-alert .btn { grid-column: 1 / -1; width: 100%; }
    .mission-prolongation-form-heading,
    .mission-prolongation-item-heading,
    .mission-prolongation-document { align-items: stretch; flex-direction: column; }
    .mission-prolongation-form-grid { grid-template-columns: 1fr; }
    .mission-prolongation-motif { grid-column: auto; grid-row: auto; }
    .mission-prolongation-submit .btn,
    .mission-prolongation-document .btn { width: 100%; }
    .mission-prolongation-decision-actions { display: grid; grid-template-columns: 1fr; }
    .mission-prolongation-decision-actions .btn { width: 100%; }
}

/* Source: dashboard.css */
.sigi-dashboard {
    display: grid;
    gap: 20px;
    max-width: 1540px;
    margin: 0 auto;
}

.dashboard-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 4px;
}

.dashboard-kicker {
    display: block;
    margin-bottom: 5px;
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-intro h2 {
    margin: 0;
    color: #172033;
    font-size: 1.65rem;
    line-height: 1.2;
}

.dashboard-intro p {
    margin: 6px 0 0;
    color: #667085;
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.dashboard-actions .btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
}

.dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-kpi {
    display: flex;
    min-width: 0;
    min-height: 92px;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border: 1px solid #e2e7ef;
    border-radius: 8px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dashboard-kpi:hover,
.dashboard-kpi:focus-visible {
    border-color: #98b7f4;
    box-shadow: 0 8px 22px rgba(23, 32, 51, 0.08);
    color: inherit;
    transform: translateY(-1px);
}

.dashboard-kpi.has-attention {
    border-color: #f4c46b;
}

.dashboard-kpi > span:last-child {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.dashboard-kpi strong {
    color: #172033;
    font-size: 1.55rem;
    line-height: 1;
}

.dashboard-kpi small {
    overflow: hidden;
    color: #667085;
    font-size: 0.76rem;
    font-weight: 650;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.dashboard-kpi-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 7px;
    font-size: 1.25rem;
}

.dashboard-kpi-icon.is-blue { background: #e9f0ff; color: #235cc5; }
.dashboard-kpi-icon.is-cyan { background: #e5f8fb; color: #087c8c; }
.dashboard-kpi-icon.is-green { background: #e9f7ef; color: #18784a; }
.dashboard-kpi-icon.is-orange { background: #fff0e6; color: #b54e0c; }
.dashboard-kpi-icon.is-amber { background: #fff7db; color: #98620b; }
.dashboard-kpi-icon.is-red { background: #ffebeb; color: #bd3030; }

.dashboard-priorities {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #efca80;
    border-radius: 8px;
    background: #fffdf7;
}

.priority-heading {
    display: flex;
    min-width: 138px;
    align-items: center;
    gap: 9px;
    padding: 14px 18px;
    background: #ffefc2;
    color: #74470a;
    font-weight: 800;
}

.priority-items {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    flex-wrap: wrap;
    padding: 7px 10px;
}

.priority-items a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    color: #493819;
    font-size: 0.84rem;
    text-decoration: none;
}

.priority-items a:hover,
.priority-items a:focus-visible { color: #144fbe; }
.priority-items a i { margin-left: 3px; }

.dashboard-grid {
    display: grid;
    gap: 16px;
}

.dashboard-grid-primary { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.dashboard-grid-insights { grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr); }

.dashboard-panel {
    min-width: 0;
    border: 1px solid #e2e7ef;
    border-radius: 8px;
    background: #fff;
}

.dashboard-panel-header {
    display: flex;
    min-height: 60px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 16px;
    border-bottom: 1px solid #edf0f5;
}

.dashboard-panel-header > div {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.dashboard-panel-header h3 {
    margin: 0;
    color: #172033;
    font-size: 0.96rem;
    line-height: 1.3;
}

.dashboard-panel-header > a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    color: #235cc5;
    font-size: 0.78rem;
    font-weight: 750;
    text-decoration: none;
}

.panel-icon {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border-radius: 6px;
    background: #eef3fb;
    color: #2f5ea8;
}

.dashboard-list { display: grid; }

.dashboard-list-row {
    display: grid;
    min-width: 0;
    min-height: 68px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-bottom: 1px solid #f0f2f6;
    color: inherit;
    text-decoration: none;
    transition: background-color 140ms ease;
}

.dashboard-list-row:last-child { border-bottom: 0; }
.dashboard-list-row:hover,
.dashboard-list-row:focus-visible { background: #f8fafd; color: inherit; }

.dashboard-date {
    display: grid;
    width: 43px;
    height: 47px;
    place-content: center;
    border: 1px solid #dfe6f1;
    border-radius: 7px;
    text-align: center;
}

.dashboard-date strong { color: #172033; font-size: 1rem; line-height: 1; }
.dashboard-date small { margin-top: 3px; color: #667085; font-size: 0.67rem; font-weight: 750; text-transform: uppercase; }

.mission-marker {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 7px;
    background: #eaf7f0;
    color: #18784a;
    font-size: 1.1rem;
}

.dashboard-list-content {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.dashboard-list-content > strong {
    overflow: hidden;
    color: #253047;
    font-size: 0.85rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-list-content > small {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    color: #737d90;
    font-size: 0.72rem;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-status {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-status.is-running { background: #e5f8fb; color: #087c8c; }
.dashboard-status.is-planned { background: #e9f0ff; color: #235cc5; }
.dashboard-status.is-pending { background: #fff2cb; color: #8a5808; }
.dashboard-status.is-warning { background: #fff0e6; color: #ad4b0b; }
.dashboard-status.is-complete { background: #e9f7ef; color: #18784a; }
.dashboard-status.is-neutral { background: #eef1f5; color: #566176; }

.dashboard-empty {
    display: flex;
    min-height: 130px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #7b8495;
    font-size: 0.84rem;
}

.dashboard-empty i { font-size: 1.3rem; }

.chart-legend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #697386;
    font-size: 0.68rem;
}

.legend-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.legend-dot.is-reunion { background: #2f6fd1; }
.legend-dot.is-mission { background: #15a07a; }

.monthly-chart {
    display: grid;
    height: 255px;
    grid-template-columns: repeat(6, minmax(40px, 1fr));
    align-items: end;
    gap: 12px;
    padding: 24px 22px 18px;
    background-image: linear-gradient(to top, #edf0f5 1px, transparent 1px);
    background-size: 100% 25%;
}

.monthly-column {
    display: grid;
    height: 100%;
    grid-template-rows: minmax(0, 1fr) auto auto;
    align-items: end;
    gap: 5px;
    text-align: center;
}

.monthly-bars {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
}

.monthly-bar {
    display: block;
    width: min(15px, 35%);
    min-height: 5px;
    border-radius: 3px 3px 0 0;
}

.monthly-bar.is-reunion { background: #2f6fd1; }
.monthly-bar.is-mission { background: #15a07a; }
.monthly-column strong { color: #364153; font-size: 0.72rem; }
.monthly-column small { color: #717b8d; font-size: 0.69rem; font-weight: 700; }

.sector-breakdown {
    display: grid;
    min-width: 0;
    gap: 15px;
    padding: 19px 18px 21px;
}

.sector-row { display: grid; min-width: 0; gap: 6px; }
.sector-row > div:first-child { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 12px; }
.sector-row span { min-width: 0; overflow: hidden; color: #4b566a; font-size: 0.75rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.sector-row strong { flex: 0 0 auto; color: #253047; font-size: 0.72rem; }

.sector-track {
    height: 7px;
    overflow: hidden;
    border-radius: 4px;
    background: #edf1f5;
}

.sector-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #2f6fd1;
}

.dashboard-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-shortcuts > a {
    display: grid;
    min-width: 0;
    min-height: 64px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border: 1px solid #e2e7ef;
    border-radius: 8px;
    background: #fff;
    color: #2f5ea8;
    text-decoration: none;
}

.dashboard-shortcuts > a:hover,
.dashboard-shortcuts > a:focus-visible { border-color: #98b7f4; color: #174a9e; }
.dashboard-shortcuts > a > i:first-child { font-size: 1.25rem; }
.dashboard-shortcuts span { display: grid; min-width: 0; gap: 2px; }
.dashboard-shortcuts strong { color: #253047; font-size: 0.82rem; }
.dashboard-shortcuts small { color: #737d90; font-size: 0.7rem; }

@media (max-width: 1280px) {
    .dashboard-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .dashboard-grid-primary,
    .dashboard-grid-insights { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .sigi-dashboard { gap: 16px; }
    .dashboard-intro { align-items: flex-start; flex-direction: column; }
    .dashboard-actions { width: 100%; justify-content: flex-start; }
    .dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-priorities { align-items: stretch; flex-direction: column; }
    .priority-heading { min-width: 0; }
    .priority-items { display: grid; }
    .dashboard-shortcuts { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .dashboard-intro h2 { font-size: 1.35rem; }
    .dashboard-actions { display: grid; grid-template-columns: 1fr; }
    .dashboard-actions .btn { justify-content: center; }
    .dashboard-kpis { grid-template-columns: 1fr; }
    .dashboard-kpi { min-height: 76px; }
    .dashboard-list-row { grid-template-columns: auto minmax(0, 1fr); }
    .dashboard-status { grid-column: 2; justify-self: start; }
    .dashboard-panel-header { align-items: flex-start; }
    .chart-legend { display: none; }
    .monthly-chart { gap: 6px; padding-inline: 12px; }
    .dashboard-list-content > small { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-kpi,
    .dashboard-list-row { transition: none; }
}

/* Source: sigi-design-system.css */
:root {
    color-scheme: light;
    --sigi-bg: #f2f5f8;
    --sigi-surface: #ffffff;
    --sigi-surface-2: #f7f9fb;
    --sigi-surface-3: #edf2f6;
    --sigi-ink: #111827;
    --sigi-ink-soft: #445064;
    --sigi-muted: #6b7688;
    --sigi-border: #d8e0e8;
    --sigi-border-strong: #b9c5d2;
    --sigi-primary: #2563eb;
    --sigi-primary-strong: #1748b5;
    --sigi-primary-soft: #e8f0ff;
    --sigi-cyan: #0891b2;
    --sigi-cyan-soft: #e2f7fb;
    --sigi-green: #16805a;
    --sigi-green-soft: #e6f6ef;
    --sigi-amber: #a66400;
    --sigi-amber-soft: #fff4d6;
    --sigi-red: #c3313a;
    --sigi-red-soft: #ffebed;
    --sigi-sidebar: #0b111b;
    --sigi-sidebar-2: #111b29;
    --sigi-sidebar-border: #243143;
    --sigi-sidebar-text: #dbe5f0;
    --sigi-sidebar-muted: #8998aa;
    --sigi-focus: rgba(37, 99, 235, 0.28);
    --sigi-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --sigi-shadow-sm: 0 6px 20px rgba(15, 23, 42, 0.07);
    --sigi-shadow-md: 0 18px 46px rgba(15, 23, 42, 0.13);
    --sigi-radius: 7px;
    --sigi-radius-sm: 5px;
    --sigi-sidebar-width: 292px;
    --sigi-sidebar-collapsed: 78px;

    --primary: var(--sigi-primary);
    --primary-dark: var(--sigi-primary-strong);
    --primary-light: var(--sigi-primary-soft);
    --accent: var(--sigi-amber);
    --danger: var(--sigi-red);
    --success: var(--sigi-green);
    --warning: var(--sigi-amber);
    --muted: var(--sigi-muted);
    --bg-color: var(--sigi-bg);
    --card-bg: var(--sigi-surface);
    --border-color: var(--sigi-border);
    --text-strong: var(--sigi-ink);
    --text-soft: var(--sigi-ink-soft);
    --sidebar-surface: var(--sigi-sidebar);
    --sidebar-surface-strong: #070b12;
    --sidebar-active: #163253;
    --shadow-sm: var(--sigi-shadow-xs);
    --shadow: var(--sigi-shadow-sm);
    --shadow-lg: var(--sigi-shadow-md);
    --radius-md: var(--sigi-radius-sm);
    --radius-lg: var(--sigi-radius);
    --sidebar-width: var(--sigi-sidebar-width);
    --sidebar-collapsed-width: var(--sigi-sidebar-collapsed);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --sigi-bg: #090e15;
    --sigi-surface: #101720;
    --sigi-surface-2: #151e29;
    --sigi-surface-3: #1b2734;
    --sigi-ink: #edf3f8;
    --sigi-ink-soft: #c0cad5;
    --sigi-muted: #8998aa;
    --sigi-border: #293645;
    --sigi-border-strong: #405064;
    --sigi-primary: #66a3ff;
    --sigi-primary-strong: #8fbbff;
    --sigi-primary-soft: #172d4e;
    --sigi-cyan: #42c6d9;
    --sigi-cyan-soft: #12343c;
    --sigi-green: #47c895;
    --sigi-green-soft: #13372b;
    --sigi-amber: #f0b94f;
    --sigi-amber-soft: #3a2b12;
    --sigi-red: #ff7b83;
    --sigi-red-soft: #401d22;
    --sigi-focus: rgba(102, 163, 255, 0.36);
    --sigi-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.24);
    --sigi-shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.22);
    --sigi-shadow-md: 0 22px 54px rgba(0, 0, 0, 0.38);
}

html {
    min-width: 320px;
    background: var(--sigi-bg);
    scroll-behavior: smooth;
}

body.admin-shell-body {
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--sigi-bg);
    color: var(--sigi-ink);
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    line-height: 1.55;
    transition: background-color 180ms ease, color 180ms ease;
}

::selection {
    background: var(--sigi-primary);
    color: #ffffff;
}

* {
    scrollbar-color: var(--sigi-border-strong) transparent;
    scrollbar-width: thin;
}

*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 8px; background: var(--sigi-border-strong); background-clip: padding-box; }

a,
button,
input,
select,
textarea,
summary {
    letter-spacing: 0;
}

a { color: var(--sigi-primary-strong); }
a:hover { color: var(--sigi-primary); }

button,
input,
select,
textarea {
    font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--sigi-focus);
    outline-offset: 2px;
}

.sigi-skip-link {
    z-index: 3000;
    border: 1px solid var(--sigi-border);
    background: var(--sigi-surface);
    color: var(--sigi-ink);
}

.sigi-page-progress {
    position: fixed;
    z-index: 4000;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--sigi-cyan);
    box-shadow: 0 0 14px color-mix(in srgb, var(--sigi-cyan) 70%, transparent);
    opacity: 0;
    transition: width 200ms ease, opacity 140ms ease;
}

body.is-navigating .sigi-page-progress {
    width: 76%;
    opacity: 1;
}

/* Application shell */
.admin-shell {
    min-height: 100vh;
    background: var(--sigi-bg);
}

.app-sidebar {
    width: var(--sigi-sidebar-width);
    padding: 16px 12px 14px;
    border-right: 1px solid var(--sigi-sidebar-border);
    background: var(--sigi-sidebar);
    color: var(--sigi-sidebar-text);
    box-shadow: none;
    transition: width 200ms ease, padding 200ms ease, transform 200ms ease;
}

.sidebar-brand {
    min-height: 58px;
    padding: 0 6px 14px;
    border-bottom: 1px solid var(--sigi-sidebar-border);
}

.brand-lockup,
.brand-mark {
    min-width: 0;
    gap: 11px;
}

.brand-lockup img,
.brand-mark img {
    width: 42px;
    height: 42px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--sigi-radius);
    background: #ffffff;
}

.brand-lockup > span,
.mobile-brand > span:last-child {
    display: grid;
    min-width: 0;
}

.brand-lockup strong,
.mobile-brand strong {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
}

.brand-lockup small {
    overflow: hidden;
    margin-top: 1px;
    color: var(--sigi-sidebar-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-collapse-toggle,
.sidebar-toggle,
.topbar-icon-button {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--sigi-border);
    border-radius: var(--sigi-radius);
    background: var(--sigi-surface);
    color: var(--sigi-ink-soft);
    font-size: 19px;
    cursor: pointer;
    transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.sidebar-collapse-toggle {
    border-color: var(--sigi-sidebar-border);
    background: var(--sigi-sidebar-2);
    color: var(--sigi-sidebar-muted);
}

.sidebar-collapse-toggle:hover,
.sidebar-toggle:hover,
.topbar-icon-button:hover {
    border-color: var(--sigi-primary);
    background: var(--sigi-primary-soft);
    color: var(--sigi-primary-strong);
}

.sidebar-user {
    min-height: 61px;
    margin: 12px 0 9px;
    padding: 10px;
    border: 1px solid var(--sigi-sidebar-border);
    border-radius: var(--sigi-radius);
    background: var(--sigi-sidebar-2);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(66, 198, 217, 0.25);
    border-radius: var(--sigi-radius-sm);
    background: rgba(8, 145, 178, 0.14);
    color: #7dd9e7;
    font-size: 21px;
}

.sidebar-user strong { color: #ffffff; font-size: 13px; }
.sidebar-user span { color: var(--sigi-sidebar-muted); font-size: 11px; }

.sidebar-search {
    position: relative;
    margin: 0 0 8px;
}

.sidebar-search > i {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 11px;
    color: var(--sigi-sidebar-muted);
    font-size: 16px;
    transform: translateY(-50%);
    pointer-events: none;
}

.sidebar-search input {
    width: 100%;
    height: 38px;
    padding: 8px 30px 8px 35px;
    border: 1px solid var(--sigi-sidebar-border);
    border-radius: var(--sigi-radius-sm);
    background: #0e1723;
    color: #ffffff;
    font-size: 12px;
    outline: 0;
}

.sidebar-search input::placeholder { color: #718096; }
.sidebar-search input:focus { border-color: #2f82c9; box-shadow: 0 0 0 3px rgba(47, 130, 201, 0.16); }

.sidebar-search-clear {
    position: absolute;
    top: 50%;
    right: 6px;
    display: none;
    width: 26px;
    height: 26px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--sigi-sidebar-muted);
    cursor: pointer;
    transform: translateY(-50%);
}

.sidebar-search.has-value .sidebar-search-clear { display: grid; }
.sidebar-search-empty { display: none; padding: 18px 10px; color: var(--sigi-sidebar-muted); font-size: 12px; text-align: center; }
.sidebar-nav.is-filter-empty .sidebar-search-empty { display: block; }

.sidebar-nav {
    gap: 4px;
    padding: 4px 0 18px;
}

.sidebar-group {
    border-radius: var(--sigi-radius);
}

.sidebar-group[hidden],
.sidebar-sublink[hidden] { display: none !important; }

.sidebar-group-toggle {
    min-height: 43px;
    padding: 9px 10px;
    border-radius: var(--sigi-radius-sm);
    color: #b9c7d8;
    font-size: 13px;
    font-weight: 700;
}

.sidebar-group-toggle:hover,
.sidebar-group-toggle.is-active {
    background: #142338;
    color: #ffffff;
}

.sidebar-group-label { gap: 10px; }
.sidebar-group-label i,
.sidebar-sublink i { color: #75bde0; font-size: 18px; }
.group-caret { color: #66788e; font-size: 14px; }

.sidebar-submenu {
    margin-left: 18px;
    padding-left: 10px;
    border-left: 1px solid #2a3a4d;
}

.sidebar-group.is-open .sidebar-submenu { margin-top: 4px; }

.sidebar-sublink {
    min-height: 35px;
    margin: 1px 0;
    padding: 7px 9px;
    border-radius: 5px;
    color: #9fafc1;
    font-size: 12px;
    font-weight: 600;
    transform: none;
}

.sidebar-sublink:hover {
    background: #132133;
    color: #ffffff;
    transform: none;
}

.sidebar-sublink.is-active {
    background: #153451;
    color: #ffffff;
    box-shadow: inset 2px 0 0 #47c6d8;
    transform: none;
}

.sidebar-sublink.is-active i { color: #8ee2ed; }

.sidebar-footer {
    padding-top: 11px;
    border-top: 1px solid var(--sigi-sidebar-border);
}

.sidebar-logout {
    min-height: 39px;
    border: 1px solid #3a2930;
    border-radius: var(--sigi-radius-sm);
    background: #18161d;
    color: #eaa1a8;
    font-size: 12px;
}

.sidebar-logout:hover { border-color: #70343c; background: #24171c; color: #ffffff; }

.app-main {
    width: calc(100% - var(--sigi-sidebar-width));
    margin-left: var(--sigi-sidebar-width);
    background: var(--sigi-bg);
    transition: width 200ms ease, margin-left 200ms ease;
}

.app-topbar {
    position: sticky;
    z-index: 150;
    top: 0;
    min-height: 74px;
    padding: 11px 28px;
    border-bottom: 1px solid var(--sigi-border);
    background: color-mix(in srgb, var(--sigi-surface) 94%, transparent);
    box-shadow: var(--sigi-shadow-xs);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.topbar-context { min-width: 0; max-width: 100%; }

.app-breadcrumb {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    color: var(--sigi-muted);
    font-size: 10px;
    font-weight: 700;
}

.app-breadcrumb a { color: var(--sigi-muted); text-decoration: none; }
.app-breadcrumb a:hover { color: var(--sigi-primary); }
.app-breadcrumb i { font-size: 10px; }

.app-topbar h1 {
    overflow: hidden;
    margin: 0;
    color: var(--sigi-ink);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-icon-sun { display: none; }
html[data-theme="dark"] .theme-icon-sun { display: inline; }
html[data-theme="dark"] .theme-icon-moon { display: none; }

.topbar-user-menu {
    position: relative;
}

.topbar-user-menu > summary {
    display: grid;
    min-width: 184px;
    min-height: 44px;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 5px 8px;
    border: 1px solid var(--sigi-border);
    border-radius: var(--sigi-radius);
    background: var(--sigi-surface);
    color: var(--sigi-ink);
    cursor: pointer;
    list-style: none;
}

.topbar-user-menu > summary::-webkit-details-marker { display: none; }
.topbar-user-menu[open] > summary { border-color: var(--sigi-primary); box-shadow: 0 0 0 3px var(--sigi-focus); }

.topbar-avatar {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: var(--sigi-radius-sm);
    background: var(--sigi-cyan-soft);
    color: var(--sigi-cyan);
    font-size: 18px;
}

.topbar-user-copy { display: grid; min-width: 0; }
.topbar-user-copy strong,
.topbar-user-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-user-copy strong { font-size: 11px; }
.topbar-user-copy small { color: var(--sigi-muted); font-size: 9px; }
.topbar-user-menu > summary > i { color: var(--sigi-muted); font-size: 13px; }

.topbar-user-popover {
    position: absolute;
    z-index: 400;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    width: 220px;
    padding: 7px;
    border: 1px solid var(--sigi-border);
    border-radius: var(--sigi-radius);
    background: var(--sigi-surface);
    box-shadow: var(--sigi-shadow-md);
}

.topbar-user-popover a,
.topbar-user-popover button {
    display: flex;
    width: 100%;
    min-height: 38px;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border: 0;
    border-radius: var(--sigi-radius-sm);
    background: transparent;
    color: var(--sigi-ink-soft);
    font-size: 12px;
    font-weight: 650;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.topbar-user-popover a:hover,
.topbar-user-popover button:hover { background: var(--sigi-surface-2); color: var(--sigi-ink); }
.topbar-user-popover form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--sigi-border); }
.topbar-user-popover form button { color: var(--sigi-red); }

.site-main {
    min-width: 0;
    flex: 1;
}

.app-main .container {
    width: 100%;
    max-width: 1540px;
    padding-right: 28px;
    padding-left: 28px;
}

.app-footer {
    min-height: 58px;
    padding: 14px 28px;
    border-top: 1px solid var(--sigi-border);
    background: var(--sigi-surface);
    color: var(--sigi-muted);
    font-size: 11px;
}

.app-footer strong { color: var(--sigi-ink); }
.footer-meta { gap: 16px; margin-top: 4px; font-size: 10px; }

.sidebar-collapsed .app-sidebar { width: var(--sigi-sidebar-collapsed); padding-right: 10px; padding-left: 10px; }
.sidebar-collapsed .app-main { width: calc(100% - var(--sigi-sidebar-collapsed)); margin-left: var(--sigi-sidebar-collapsed); }
.sidebar-collapsed .sidebar-search { display: none; }

@media (min-width: 1181px) {
    .sidebar-collapsed .app-sidebar {
        padding: 12px 10px 14px;
    }

    .sidebar-collapsed .sidebar-brand {
        display: grid;
        min-height: 102px;
        grid-template-rows: 44px 36px;
        place-items: center;
        gap: 8px;
        padding: 0 0 13px;
    }

    .sidebar-collapsed .brand-lockup {
        display: grid;
        width: 44px;
        height: 44px;
        place-items: center;
    }

    .sidebar-collapsed .brand-lockup img {
        width: 44px;
        height: 44px;
    }

    .sidebar-collapsed .sidebar-collapse-toggle {
        position: static;
        width: 36px;
        height: 36px;
    }

    .sidebar-collapsed .sidebar-user {
        width: 44px;
        min-height: 44px;
        height: 44px;
        justify-content: center;
        margin: 10px auto 8px;
        padding: 4px;
        border-color: transparent;
        background: transparent;
    }

    .sidebar-collapsed .user-avatar {
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
    }

    .sidebar-collapsed .sidebar-nav {
        align-items: center;
    }

    .sidebar-collapsed .sidebar-group,
    .sidebar-collapsed .sidebar-group-toggle,
    .sidebar-collapsed .sidebar-footer,
    .sidebar-collapsed .sidebar-logout {
        width: 44px;
    }

    .sidebar-collapsed .sidebar-group-toggle,
    .sidebar-collapsed .sidebar-logout {
        min-height: 44px;
        justify-content: center;
        padding: 0;
    }
}

/* Page rhythm */
.page {
    padding-top: 26px;
    padding-bottom: 42px;
    animation: sigi-page-in 240ms ease-out both;
}

.page-header {
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--sigi-border);
}

.page-header > div:first-child { min-width: 0; }

.page-header h2,
.site-main h2 {
    margin: 0;
    color: var(--sigi-ink);
    font-size: 25px;
    font-weight: 800;
    line-height: 1.25;
}

.page-header p { max-width: 780px; margin-top: 5px !important; color: var(--sigi-muted); font-size: 13px; }

/* Un titre de 200 caractères, un lien ou un mot long restent lisibles sur mobile. */
.reunion-details-page,
.presence-page,
.reunion-details-page .form-simple,
.reunion-details-page .detail-list {
    min-width: 0;
    max-width: 100%;
}

.reunion-details-page > h2,
.presence-page h2,
.reunion-details-page .detail-list dt,
.reunion-details-page .detail-list dd {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ui-actions,
.ui-list-summary,
.ui-pagination-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ui-list-summary {
    justify-content: space-between;
    margin: 24px 0 12px;
}

.ui-pagination-actions {
    justify-content: space-between;
}

.ui-page-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.ui-page-title-icon {
    display: inline-grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--sigi-primary) 22%, var(--sigi-border));
    border-radius: var(--sigi-radius);
    background: var(--sigi-primary-soft);
    color: var(--sigi-primary-strong);
    font-size: 19px;
}

.text-muted { color: var(--sigi-muted) !important; }
.text-danger { color: var(--sigi-red) !important; }
.text-end { text-align: right !important; }

/* Commands */
.btn {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: var(--sigi-radius-sm);
    box-shadow: none;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    transform: none;
    transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 100ms ease;
}

.btn i { flex: 0 0 auto; font-size: 16px; }
.btn:hover { box-shadow: var(--sigi-shadow-xs); transform: translateY(-1px); }
.btn:active { box-shadow: none; transform: translateY(0); }
.btn-primary { border-color: #2563eb; background: #2563eb; color: #ffffff; }
.btn-primary:hover { border-color: #1748b5; background: #1748b5; color: #ffffff; }
.btn-secondary,
.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-info {
    border-color: var(--sigi-border);
    background: var(--sigi-surface);
    color: var(--sigi-ink-soft);
}
.btn-outline-primary { border-color: color-mix(in srgb, var(--sigi-primary) 45%, var(--sigi-border)); color: var(--sigi-primary-strong); }
.btn-outline-info { color: var(--sigi-cyan); }
.btn-secondary:hover,
.btn-outline-secondary:hover,
.btn-outline-primary:hover,
.btn-outline-info:hover { border-color: var(--sigi-primary); background: var(--sigi-primary-soft); color: var(--sigi-primary-strong); }
.btn-success { border-color: var(--sigi-green); background: var(--sigi-green); color: #ffffff; }
.btn-warning,
.btn-outline-warning { border-color: #d08a10; background: #d08a10; color: #16110a; }
.btn-danger { border-color: #c3313a; background: #c3313a; color: #ffffff; }
.btn-danger:hover { border-color: #9f232d; background: #9f232d; color: #ffffff; }
.btn-sm { min-height: 32px; padding: 6px 9px; border-radius: 5px; font-size: 10px; }
.btn-icon { width: 38px; min-width: 38px; padding: 0; }
.btn.disabled,
.btn:disabled { opacity: 0.48; pointer-events: none; }

/* Lightweight grid compatibility */
.col-md-2 { grid-column: span 2; }

/* Forms and filters */
.form-simple {
    padding: 22px;
    border: 1px solid var(--sigi-border);
    border-radius: var(--sigi-radius);
    background: var(--sigi-surface);
    box-shadow: var(--sigi-shadow-xs);
}

.form-simple:has(.mission-form-shell) {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.ui-filter-form {
    position: relative;
    margin-bottom: 24px;
    padding: 18px;
    border-color: var(--sigi-border);
    background: var(--sigi-surface);
    box-shadow: none;
}

.ui-filter-form .form-row { margin-bottom: 0; }

form.ui-filter-form > div[style*="grid-template-columns"],
form.form-simple[method="get"] > div[style*="grid-template-columns"] {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)) !important;
}

form.ui-filter-form > div[style*="grid-template-columns"] > .btn,
form.form-simple[method="get"] > div[style*="grid-template-columns"] > .btn {
    justify-content: center;
}

.ui-filter-form::before {
    position: absolute;
    top: 0;
    left: 18px;
    width: 42px;
    height: 2px;
    background: var(--sigi-cyan);
    content: "";
}

.form-row,
.form-group { position: relative; min-width: 0; margin-bottom: 16px; }

.form-row label,
.form-group label,
.filter-label {
    display: block;
    margin-bottom: 6px;
    color: var(--sigi-ink-soft);
    font-size: 11px;
    font-weight: 750;
    text-transform: none;
}

.form-control {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--sigi-border-strong);
    border-radius: var(--sigi-radius-sm);
    background: var(--sigi-surface);
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.025);
    color: var(--sigi-ink);
    font-size: 12px;
    transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

textarea.form-control { min-height: 92px; resize: vertical; }
.form-control::placeholder { color: color-mix(in srgb, var(--sigi-muted) 72%, transparent); }
.form-control:hover { border-color: var(--sigi-border-strong); }
.form-control:focus { border-color: var(--sigi-primary); box-shadow: 0 0 0 3px var(--sigi-focus); outline: 0; }
.form-control:disabled,
.form-control[readonly] { background: var(--sigi-surface-2); color: var(--sigi-muted); cursor: not-allowed; }

input[type="checkbox"],
input[type="radio"] { width: 17px; height: 17px; accent-color: var(--sigi-primary); }

label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]) {
    color: var(--sigi-ink-soft);
    font-size: 12px;
    font-weight: 650;
}

.field-validation,
.field-validation-error,
.form-text { display: block; margin-top: 5px; font-size: 10px; }
.field-validation-error { color: var(--sigi-red); }
.form-text { color: var(--sigi-muted); }

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    padding-top: 14px;
    border-top: 1px solid var(--sigi-border);
}

.form-actions form { margin: 0; }

.password-control { position: relative; }
.password-control .form-control { padding-right: 44px; }
.password-toggle {
    position: absolute;
    right: 5px;
    bottom: 5px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--sigi-muted);
    cursor: pointer;
}
.password-toggle:hover { background: var(--sigi-surface-2); color: var(--sigi-primary); }

/* Tables and dense data */
.table-responsive {
    position: relative;
    width: 100%;
    overflow: auto;
    border: 1px solid var(--sigi-border);
    border-radius: var(--sigi-radius);
    background: var(--sigi-surface);
    box-shadow: var(--sigi-shadow-xs);
}

.table-responsive .table,
.table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.table thead { background: var(--sigi-surface-2); }
.table th {
    position: sticky;
    z-index: 2;
    top: 0;
    padding: 11px 13px;
    border-bottom: 1px solid var(--sigi-border-strong);
    background: var(--sigi-surface-2);
    color: var(--sigi-muted);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.table td {
    padding: 12px 13px;
    border-bottom: 1px solid var(--sigi-border);
    background: transparent;
    color: var(--sigi-ink-soft);
    font-size: 11px;
    vertical-align: middle;
}

.table.is-wide-table { min-width: 1020px; }
.table.is-extra-wide-table { min-width: 1220px; }
.table.is-wide-table th:first-child,
.table.is-wide-table td:first-child { min-width: 150px; }
.table.is-extra-wide-table th:first-child,
.table.is-extra-wide-table td:first-child { min-width: 210px; }

.table td strong { color: var(--sigi-ink); font-weight: 750; }
.table tbody tr { transition: background-color 120ms ease; }
.table tbody tr:hover { background: color-mix(in srgb, var(--sigi-primary-soft) 38%, transparent); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr[data-href] { cursor: pointer; }
.table tbody tr.is-empty-row:hover { background: transparent; }
.table tbody tr.is-empty-row td { padding: 34px 16px; color: var(--sigi-muted); text-align: center; }

/* Personnel availability */
.availability-page { min-width: 0; max-width: 1540px; }
.availability-header p { margin: 4px 0 0; }
.availability-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 16px;
    border-block: 1px solid var(--sigi-border);
}
.availability-summary > div {
    display: flex;
    min-width: 0;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border-left: 3px solid var(--sigi-border-strong);
}
.availability-summary span { color: var(--sigi-muted); font-size: 10px; font-weight: 750; }
.availability-summary strong { color: var(--sigi-ink); font-size: 20px; }
.availability-summary .is-available { border-left-color: var(--sigi-green); }
.availability-summary .is-mission { border-left-color: var(--sigi-primary); }
.availability-summary .is-absent { border-left-color: var(--sigi-amber); }
.availability-summary .is-conflict { border-left-color: var(--sigi-red); }
.availability-summary .is-tracked { border-left-color: var(--sigi-cyan); }
.availability-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    align-items: end;
    gap: 10px;
}
.availability-filters .form-row { min-width: 0; margin: 0; }
.availability-filter-actions { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 1px; }
.availability-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 14px; }
.availability-direction {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--sigi-border-strong);
    border-radius: var(--sigi-radius-lg);
    background: var(--sigi-surface);
    box-shadow: var(--sigi-shadow-xs);
}
.availability-direction-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid color-mix(in srgb, var(--sigi-primary) 22%, var(--sigi-border));
    background: linear-gradient(120deg, var(--sigi-primary-strong), var(--sigi-primary));
    color: #fff;
}
.availability-direction-header > div { min-width: 0; flex: 1 1 180px; }
.availability-direction-header span { display: block; margin-bottom: 2px; font-size: 8px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; opacity: .78; }
.availability-direction-header h3 { margin: 0; color: #fff; font-size: 16px; letter-spacing: .01em; overflow-wrap: anywhere; }
.availability-direction-header > strong { flex: 0 0 auto; padding: 5px 9px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font-size: 10px; }
.availability-service { min-width: 0; padding: 14px 16px 16px; }
.availability-service + .availability-service { border-top: 1px solid var(--sigi-border); }
.availability-service-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; padding: 0 2px; }
.availability-service-header h4 { min-width: 0; margin: 0; color: var(--sigi-ink); font-size: 13px; overflow-wrap: anywhere; }
.availability-service-header span { color: var(--sigi-muted); font-size: 9px; font-weight: 750; }
.availability-empty-state { margin-top: 14px; padding: 34px 16px; border: 1px dashed var(--sigi-border-strong); border-radius: var(--sigi-radius); color: var(--sigi-muted); text-align: center; }
.availability-table-wrap { min-width: 0; max-width: 100%; margin-top: 0; }
.availability-table { min-width: 1060px; margin-bottom: 0; }
.availability-table th:first-child { min-width: 185px; }
.availability-table td { vertical-align: top; }
.availability-table td > strong,
.availability-person-link { display: block; color: var(--sigi-ink); font-weight: 750; }
.availability-table td > small,
.availability-entries small { display: block; margin-top: 2px; color: var(--sigi-muted); font-size: 9px; line-height: 1.4; }
.availability-clickable-row:hover td { background: color-mix(in srgb, var(--sigi-primary-soft) 38%, transparent); }
.availability-status {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid var(--sigi-border-strong);
    border-radius: 999px;
    color: var(--sigi-ink-soft);
    font-size: 9px;
    font-weight: 800;
    justify-self: start;
    white-space: nowrap;
    width: max-content;
}
.availability-status.is-available { border-color: color-mix(in srgb, var(--sigi-green) 42%, var(--sigi-border)); background: var(--sigi-green-soft); color: var(--sigi-green); }
.availability-status.is-mission { border-color: color-mix(in srgb, var(--sigi-primary) 42%, var(--sigi-border)); background: var(--sigi-primary-soft); color: var(--sigi-primary-strong); }
.availability-status.is-absent { border-color: color-mix(in srgb, var(--sigi-amber) 42%, var(--sigi-border)); background: var(--sigi-amber-soft); color: var(--sigi-amber); }
.availability-status.is-conflict { border-color: color-mix(in srgb, var(--sigi-red) 42%, var(--sigi-border)); background: var(--sigi-red-soft); color: var(--sigi-red); }
.availability-status.is-tracked { border-color: color-mix(in srgb, var(--sigi-cyan) 42%, var(--sigi-border)); background: var(--sigi-cyan-soft); color: var(--sigi-cyan); }
.availability-warning { display: block; max-width: 150px; margin-top: 5px; color: var(--sigi-red); font-size: 9px; font-weight: 700; line-height: 1.35; }
.availability-entries { display: grid; gap: 7px; }
.availability-entries > div + div { padding-top: 7px; border-top: 1px solid var(--sigi-border); }
.availability-entries a { color: var(--sigi-primary-strong); font-weight: 750; }
.availability-none { color: var(--sigi-muted); font-size: 10px; }

@media (max-width: 1180px) {
    .availability-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .availability-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .availability-filter-actions { grid-column: span 3; }
}

@media (max-width: 720px) {
    .availability-header { align-items: stretch; }
    .availability-header .btn { width: 100%; justify-content: center; }
    .availability-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .availability-summary > div { padding: 10px; }
    .availability-summary strong { font-size: 17px; }
    .availability-filters { grid-template-columns: minmax(0, 1fr); }
    .availability-search,
    .availability-filter-actions { grid-column: 1; }
    .availability-filter-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .availability-filter-actions .btn { min-width: 0; justify-content: center; }
    .availability-table-wrap { overflow: visible; border: 0; background: transparent; box-shadow: none; }
    .availability-groups { gap: 14px; }
    .availability-direction { overflow: visible; border: 0; background: transparent; box-shadow: none; }
    .availability-direction-header { border-radius: var(--sigi-radius); }
    .availability-service { padding: 13px 0 4px; }
    .availability-service + .availability-service { margin-top: 6px; }
    .availability-service-header { padding-inline: 3px; }
    .availability-table-wrap .availability-table,
    .availability-table tbody { display: block; min-width: 0; }
    .availability-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
    }
    .availability-table tbody { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .availability-table tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        min-width: 0;
        overflow: hidden;
        border: 1px solid var(--sigi-border);
        border-radius: var(--sigi-radius);
        background: var(--sigi-surface);
        box-shadow: var(--sigi-shadow-xs);
    }
    .availability-table tbody td {
        position: relative;
        display: block;
        min-width: 0;
        min-height: 38px;
        padding: 10px 11px 10px calc(30% + 11px);
        border-bottom: 1px solid var(--sigi-border);
        background: transparent;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .availability-entries { min-width: 0; grid-template-columns: minmax(0, 1fr); }
    .availability-status { max-width: 100%; white-space: normal; }
    .availability-table tbody td:last-child { border-bottom: 0; }
    .availability-table tbody td::before {
        position: absolute;
        top: 11px;
        left: 11px;
        width: calc(30% - 16px);
        content: attr(data-label);
        color: var(--sigi-muted);
        font-size: 8px;
        font-weight: 800;
        text-transform: uppercase;
    }
    .availability-table tbody tr.is-empty-row td { display: block; padding: 24px 14px; }
    .availability-table tbody tr.is-empty-row td::before { content: none; }
}

.table th.table-actions-heading,
.table td.table-actions-cell {
    position: sticky;
    right: 0;
    min-width: 178px;
    width: 178px;
    text-align: right;
}

.table th.table-actions-heading {
    z-index: 4;
    background: var(--sigi-surface-2);
    box-shadow: -10px 0 18px -18px rgba(15, 23, 42, 0.65);
}

.table td.table-actions-cell {
    z-index: 3;
    padding: 8px 10px;
    background: var(--sigi-surface);
    box-shadow: -10px 0 18px -18px rgba(15, 23, 42, 0.65);
    white-space: normal !important;
}

.table tbody tr:hover td.table-actions-cell {
    background: color-mix(in srgb, var(--sigi-primary-soft) 38%, var(--sigi-surface));
}

.table-actions-cell form { display: inline-flex !important; margin: 0; }
.table-actions-cell .table-action-icon {
    display: inline-flex;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    justify-content: center;
    padding: 0;
    vertical-align: middle;
}
.table-actions-cell .table-action-icon + .table-action-icon,
.table-actions-cell form + .table-action-icon,
.table-actions-cell .table-action-icon + form { margin-left: 3px; }
.table-actions-cell .table-action-icon .ui-command-icon { margin: 0; font-size: 15px; }
.table-action-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}


/* Keep row commands visible when wide operational tables scroll horizontally. */
.table th.text-end:last-child,
.table td.text-end:last-child {
    position: sticky;
    right: 0;
    text-align: right;
}

.table th.text-end:last-child {
    z-index: 4;
    background: var(--sigi-surface-2);
    box-shadow: -10px 0 18px -18px rgba(15, 23, 42, 0.65);
}

.table td.text-end:last-child {
    z-index: 3;
    background: var(--sigi-surface);
    box-shadow: -10px 0 18px -18px rgba(15, 23, 42, 0.65);
}

.table tbody tr:hover td.text-end:last-child {
    background: color-mix(in srgb, var(--sigi-primary-soft) 38%, var(--sigi-surface));
}

.reunion-list-table .table-actions-heading,
.reunion-list-table .reunion-actions-cell {
    width: 284px;
    min-width: 284px;
}

.reunion-row-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.reunion-row-actions .btn-icon,
.presence-actions-cell .btn-icon {
    width: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border: 1px solid color-mix(in srgb, var(--sigi-primary) 35%, var(--sigi-border)) !important;
    border-radius: var(--sigi-radius-sm) !important;
    background: var(--sigi-primary-soft) !important;
    color: var(--sigi-primary-strong) !important;
    font-size: 18px !important;
}

.reunion-row-actions .btn-icon:hover,
.presence-actions-cell .btn-icon:hover {
    border-color: var(--sigi-primary) !important;
    background: color-mix(in srgb, var(--sigi-primary-soft) 72%, var(--sigi-surface)) !important;
    color: var(--sigi-primary-strong) !important;
    box-shadow: 0 0 0 3px var(--sigi-focus);
}

.reunion-row-actions .btn-icon:focus-visible,
.presence-actions-cell .btn-icon:focus-visible {
    outline: 2px solid var(--sigi-primary);
    outline-offset: 2px;
}

.table.presence-list-table th.table-actions-heading,
.table.presence-list-table td.presence-actions-cell {
    width: 94px;
    min-width: 94px;
    text-align: center;
}

.presence-actions-cell {
    white-space: nowrap !important;
}

.presence-actions-cell form {
    display: inline-flex !important;
}

.presence-actions-cell button.btn-icon {
    border-color: color-mix(in srgb, var(--sigi-red) 35%, var(--sigi-border)) !important;
    background: var(--sigi-red-soft) !important;
    color: var(--sigi-red) !important;
}

.copy-command.is-copied {
    border-color: var(--sigi-green) !important;
    background: var(--sigi-green-soft) !important;
    color: var(--sigi-green) !important;
}

.copy-command.has-copy-error {
    border-color: var(--sigi-red) !important;
    background: var(--sigi-red-soft) !important;
    color: var(--sigi-red) !important;
}

.copy-feedback-live,
.copy-fallback-control {
    position: fixed !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}
.table-actions summary {
    min-height: 31px;
    gap: 6px;
    padding: 5px 9px;
    border-color: var(--sigi-border);
    border-radius: var(--sigi-radius-sm);
    background: var(--sigi-surface);
    color: var(--sigi-ink-soft);
    font-size: 10px;
}

.table-actions[open] summary,
.table-actions summary:hover { border-color: var(--sigi-primary); background: var(--sigi-primary-soft); color: var(--sigi-primary-strong); }

.table-actions-menu {
    min-width: 190px;
    padding: 6px;
    border-color: var(--sigi-border);
    border-radius: var(--sigi-radius);
    background: var(--sigi-surface);
    box-shadow: var(--sigi-shadow-md);
}

.table-actions-menu a,
.table-actions-menu button {
    display: flex;
    min-height: 35px;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border-radius: var(--sigi-radius-sm);
    color: var(--sigi-ink-soft);
    font-size: 11px;
}

.table-actions-menu a:hover,
.table-actions-menu button:hover { background: var(--sigi-surface-2); color: var(--sigi-ink); }
.table-actions-menu .is-danger { color: var(--sigi-red); }

.ui-status {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border: 1px solid var(--sigi-border);
    border-radius: 999px;
    background: var(--sigi-surface-2);
    color: var(--sigi-muted);
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.ui-status::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.ui-status.is-success { border-color: color-mix(in srgb, var(--sigi-green) 28%, var(--sigi-border)); background: var(--sigi-green-soft); color: var(--sigi-green); }
.ui-status.is-warning { border-color: color-mix(in srgb, var(--sigi-amber) 32%, var(--sigi-border)); background: var(--sigi-amber-soft); color: var(--sigi-amber); }
.ui-status.is-danger { border-color: color-mix(in srgb, var(--sigi-red) 28%, var(--sigi-border)); background: var(--sigi-red-soft); color: var(--sigi-red); }
.ui-status.is-info { border-color: color-mix(in srgb, var(--sigi-cyan) 28%, var(--sigi-border)); background: var(--sigi-cyan-soft); color: var(--sigi-cyan); }

/* Feedback */
.alert {
    position: relative;
    display: flex;
    min-height: 44px;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 42px 12px 14px;
    border: 1px solid var(--sigi-border);
    border-left-width: 3px;
    border-radius: var(--sigi-radius-sm);
    background: var(--sigi-surface);
    box-shadow: none;
    color: var(--sigi-ink-soft);
    font-size: 11px;
}
.alert-success { border-color: color-mix(in srgb, var(--sigi-green) 32%, var(--sigi-border)); border-left-color: var(--sigi-green); background: var(--sigi-green-soft); color: var(--sigi-green); }
.alert-danger { border-color: color-mix(in srgb, var(--sigi-red) 32%, var(--sigi-border)); border-left-color: var(--sigi-red); background: var(--sigi-red-soft); color: var(--sigi-red); }
.alert-warning { border-color: color-mix(in srgb, var(--sigi-amber) 35%, var(--sigi-border)); border-left-color: var(--sigi-amber); background: var(--sigi-amber-soft); color: var(--sigi-amber); }
.alert-info { border-color: color-mix(in srgb, var(--sigi-cyan) 32%, var(--sigi-border)); border-left-color: var(--sigi-cyan); background: var(--sigi-cyan-soft); color: var(--sigi-cyan); }
.alert > .ui-alert-icon { flex: 0 0 auto; margin-top: 1px; font-size: 17px; }
.ui-alert-close {
    position: absolute;
    top: 7px;
    right: 7px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: currentColor;
    cursor: pointer;
    opacity: 0.68;
}
.ui-alert-close:hover { background: color-mix(in srgb, currentColor 10%, transparent); opacity: 1; }

/* Pagination */
.referentiel-pagination {
    min-height: 54px;
    margin: 12px 0;
    padding: 9px 12px;
    border-color: var(--sigi-border);
    border-radius: var(--sigi-radius);
    background: var(--sigi-surface);
    box-shadow: none;
}
.pagination-summary { color: var(--sigi-muted); font-size: 10px; }
.pagination-summary strong { color: var(--sigi-ink); font-size: 12px; }
.pagination-size-form { color: var(--sigi-muted); font-size: 10px; }
.pagination-size-form .form-control { width: 80px; min-height: 34px; padding: 5px 8px; }

/* Detail surfaces */
.fiche-hero {
    margin-bottom: 16px;
    padding: 18px 20px;
    border: 1px solid var(--sigi-border);
    border-left: 3px solid var(--sigi-cyan);
    border-radius: var(--sigi-radius);
    background: var(--sigi-surface);
    box-shadow: var(--sigi-shadow-xs);
}
.fiche-hero h3 { color: var(--sigi-ink); font-size: 20px; }
.fiche-hero p { color: var(--sigi-muted); font-size: 12px; }
.status-pill,
.mission-status { border-radius: 999px; }
.fiche-grid { gap: 14px; }
.fiche-panel {
    padding: 18px;
    border-color: var(--sigi-border);
    border-radius: var(--sigi-radius);
    background: var(--sigi-surface);
    box-shadow: var(--sigi-shadow-xs);
}
.fiche-panel.is-muted { background: var(--sigi-surface-2); }
.fiche-panel-header { padding-bottom: 10px; border-bottom: 1px solid var(--sigi-border); }
.fiche-panel-header h3 { color: var(--sigi-ink); font-size: 14px; }
.fiche-definition-list dt { color: var(--sigi-muted); font-size: 10px; }
.fiche-definition-list dd { color: var(--sigi-ink); font-size: 12px; }
.fiche-danger-zone { padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--sigi-red) 24%, var(--sigi-border)); }

/* Mission and RH workspaces */
.mission-form-shell { gap: 14px; }
.mission-form-section,
.mission-detail-section,
.mission-stat-card,
.decision-modal {
    border-color: var(--sigi-border);
    border-radius: var(--sigi-radius);
    background: var(--sigi-surface);
    box-shadow: var(--sigi-shadow-xs);
}
.mission-form-section { padding: 18px; }
.mission-section-title > span {
    width: 30px;
    height: 30px;
    border-radius: var(--sigi-radius-sm);
    background: var(--sigi-primary-soft);
    color: var(--sigi-primary-strong);
}
.mission-section-title h3,
.mission-detail-section-header h3,
.decision-modal h2 { color: var(--sigi-ink); }
.mission-section-title p,
.mission-detail-section-header p,
.decision-modal p { color: var(--sigi-muted); }
.remote-results {
    border-color: var(--sigi-border);
    border-radius: var(--sigi-radius);
    background: var(--sigi-surface);
    box-shadow: var(--sigi-shadow-md);
}
.remote-results button { color: var(--sigi-ink); }
.remote-results button:hover,
.remote-results button:focus { background: var(--sigi-surface-2); }
.selected-chip,
.mission-tag,
.mission-role-badge { border-color: var(--sigi-border); background: var(--sigi-primary-soft); color: var(--sigi-primary-strong); }

.mission-dashboard-stats { gap: 10px; }
.mission-stat-card { position: relative; padding: 15px; color: var(--sigi-ink); overflow: hidden; }
.mission-stat-card::before { position: absolute; top: 0; right: 0; left: 0; height: 2px; background: var(--sigi-cyan); content: ""; }
.mission-stat-card:hover { border-color: var(--sigi-primary); box-shadow: var(--sigi-shadow-sm); color: var(--sigi-ink); transform: translateY(-1px); }
.mission-stat-card span { color: var(--sigi-muted); font-size: 10px; }
.mission-stat-card strong { color: var(--sigi-ink); font-size: 26px; }
.mission-clickable-row:hover td { background: color-mix(in srgb, var(--sigi-primary-soft) 38%, transparent); }

.mission-detail-breadcrumb { color: var(--sigi-muted); }
.mission-detail-title-row h2 { color: var(--sigi-ink); font-size: 28px; }
.mission-detail-heading > p { color: var(--sigi-ink-soft); }
.mission-detail-summary {
    border-color: var(--sigi-border);
    border-radius: var(--sigi-radius);
    background: var(--sigi-surface);
    box-shadow: var(--sigi-shadow-xs);
}
.mission-detail-summary > div { border-color: var(--sigi-border); }
.mission-detail-summary span,
.mission-detail-list dt,
.mission-state-list dt { color: var(--sigi-muted); }
.mission-detail-summary strong,
.mission-detail-list dd,
.mission-state-list dd { color: var(--sigi-ink); }
.mission-section-icon { border-radius: var(--sigi-radius-sm); background: var(--sigi-primary-soft); color: var(--sigi-primary-strong); }
.mission-detail-table-wrap,
.mission-document-item { border-color: var(--sigi-border); border-radius: var(--sigi-radius); }
.mission-report-notes,
.mission-validation-timeline p { background: var(--sigi-surface-2); color: var(--sigi-ink-soft); }
.mission-empty-state { border-color: var(--sigi-border-strong); background: var(--sigi-surface-2); color: var(--sigi-muted); }
.mission-operation-panel { border-color: color-mix(in srgb, var(--sigi-primary) 35%, var(--sigi-border)); background: color-mix(in srgb, var(--sigi-primary-soft) 38%, var(--sigi-surface)); }
.decision-modal-backdrop { background: rgba(4, 9, 16, 0.7); backdrop-filter: blur(5px); }

/* Dashboard and reports */
.sigi-dashboard {
    gap: 16px;
    max-width: 1580px;
    padding: 26px 28px 42px;
    animation: sigi-page-in 240ms ease-out both;
}
.dashboard-intro { padding: 0 0 16px; border-bottom: 1px solid var(--sigi-border); }
.dashboard-kicker { color: var(--sigi-cyan); font-size: 10px; }
.dashboard-intro h2 { color: var(--sigi-ink); font-size: 24px; }
.dashboard-intro p { color: var(--sigi-muted); font-size: 12px; }
.dashboard-kpis { gap: 10px; }
.dashboard-kpi {
    min-height: 84px;
    padding: 13px;
    border-color: var(--sigi-border);
    border-radius: var(--sigi-radius);
    background: var(--sigi-surface);
    box-shadow: var(--sigi-shadow-xs);
}
.dashboard-kpi:hover,
.dashboard-kpi:focus-visible { border-color: var(--sigi-primary); box-shadow: var(--sigi-shadow-sm); transform: translateY(-1px); }
.dashboard-kpi strong { color: var(--sigi-ink); font-size: 22px; }
.dashboard-kpi small { color: var(--sigi-muted); font-size: 10px; }
.dashboard-kpi-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: var(--sigi-radius-sm); }
.dashboard-kpi-icon.is-blue { background: var(--sigi-primary-soft); color: var(--sigi-primary-strong); }
.dashboard-kpi-icon.is-cyan { background: var(--sigi-cyan-soft); color: var(--sigi-cyan); }
.dashboard-kpi-icon.is-green { background: var(--sigi-green-soft); color: var(--sigi-green); }
.dashboard-kpi-icon.is-orange,
.dashboard-kpi-icon.is-amber { background: var(--sigi-amber-soft); color: var(--sigi-amber); }
.dashboard-kpi-icon.is-red { background: var(--sigi-red-soft); color: var(--sigi-red); }
.dashboard-priorities { border-color: color-mix(in srgb, var(--sigi-amber) 40%, var(--sigi-border)); border-radius: var(--sigi-radius); background: var(--sigi-surface); }
.priority-heading { background: var(--sigi-amber-soft); color: var(--sigi-amber); }
.priority-items a { color: var(--sigi-ink-soft); font-size: 11px; }
.dashboard-panel {
    border-color: var(--sigi-border);
    border-radius: var(--sigi-radius);
    background: var(--sigi-surface);
    box-shadow: var(--sigi-shadow-xs);
}
.dashboard-panel-header { border-color: var(--sigi-border); }
.dashboard-panel-header h3 { color: var(--sigi-ink); font-size: 13px; }
.dashboard-panel-header > a { color: var(--sigi-primary-strong); font-size: 10px; }
.panel-icon { border-radius: var(--sigi-radius-sm); background: var(--sigi-primary-soft); color: var(--sigi-primary-strong); }
.dashboard-list-row { border-color: var(--sigi-border); }
.dashboard-list-row:hover,
.dashboard-list-row:focus-visible { background: var(--sigi-surface-2); }
.dashboard-list-content > strong { color: var(--sigi-ink); font-size: 11px; }
.dashboard-list-content > small { color: var(--sigi-muted); font-size: 9px; }
.dashboard-date { border-color: var(--sigi-border); border-radius: var(--sigi-radius-sm); background: var(--sigi-surface-2); }
.dashboard-date strong { color: var(--sigi-ink); }
.monthly-column strong { color: var(--sigi-ink); }
.monthly-column small,
.chart-legend { color: var(--sigi-muted); }
.sector-row span { color: var(--sigi-ink-soft); }
.sector-row strong { color: var(--sigi-ink); }
.sector-track { background: var(--sigi-surface-3); }
.dashboard-shortcuts > a { border-color: var(--sigi-border); border-radius: var(--sigi-radius); background: var(--sigi-surface); color: var(--sigi-primary-strong); }
.dashboard-shortcuts > a:hover { border-color: var(--sigi-primary); background: var(--sigi-primary-soft); color: var(--sigi-primary-strong); }
.dashboard-shortcuts strong { color: var(--sigi-ink); }
.dashboard-shortcuts small { color: var(--sigi-muted); }

.report-kpis > div,
.report-charts .fiche-panel { border-color: var(--sigi-border); border-radius: var(--sigi-radius); background: var(--sigi-surface); }
.report-kpis span,
.chart-legend { color: var(--sigi-muted); }
.report-kpis strong,
.report-bar-value { color: var(--sigi-ink); }
.report-bar-label span { color: var(--sigi-ink-soft); }
.report-bar-track { background: var(--sigi-surface-3); }

/* Confirmation */
.confirm-modal-backdrop {
    z-index: 1000;
    background: rgba(4, 9, 16, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.confirm-modal {
    width: min(100%, 480px);
    padding: 22px;
    border: 1px solid var(--sigi-border);
    border-radius: var(--sigi-radius);
    background: var(--sigi-surface);
    box-shadow: var(--sigi-shadow-md);
    animation: sigi-modal-in 170ms ease-out both;
}
.confirm-modal h2 { color: var(--sigi-ink); font-size: 17px; }
.confirm-modal p { color: var(--sigi-ink-soft); font-size: 12px; }
.confirm-modal-close { color: var(--sigi-muted); }
.confirm-modal-close:hover { background: var(--sigi-surface-2); color: var(--sigi-ink); }

/* Login */
body.guest-shell-body { background: #080d14; }
body.guest-shell-body .admin-shell { min-height: 100vh; background: #080d14; }
body.guest-shell-body .app-main { width: 100%; margin-left: 0; }
body.guest-shell-body .site-main { display: flex; min-height: 100vh; }

.auth-shell {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 100vh;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
    align-items: center;
    overflow: hidden;
    padding: 48px;
    background: #080d14 url("../images/fond.png") center / cover no-repeat;
}

.auth-shell::before {
    position: absolute;
    inset: 0;
    background: rgba(4, 9, 16, 0.58);
    content: "";
}

.auth-brand,
.auth-panel { position: relative; z-index: 1; }

.auth-brand {
    max-width: 660px;
    padding: 38px;
    color: #ffffff;
}

.auth-brand-lockup { display: flex; align-items: center; gap: 16px; margin-bottom: 42px; }
.auth-brand-lockup img { width: 68px; height: 68px; object-fit: contain; }
.auth-brand-lockup span { display: grid; }
.auth-brand-lockup strong { font-size: 30px; line-height: 1; }
.auth-brand-lockup small { margin-top: 7px; color: #a8b8ca; font-size: 12px; }
.auth-brand-kicker { display: block; margin-bottom: 12px; color: #68d4e2; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.auth-brand h1 { max-width: 620px; margin: 0; color: #ffffff; font-size: 42px; font-weight: 800; line-height: 1.15; }
.auth-brand p { max-width: 520px; margin: 16px 0 0; color: #b9c7d8; font-size: 14px; }
.auth-brand-signature { display: flex; align-items: center; gap: 9px; margin-top: 34px; color: #8fa3b8; font-size: 11px; }
.auth-brand-signature::before { width: 32px; height: 1px; background: #42c6d9; content: ""; }

.auth-panel {
    width: 100%;
    padding: 34px;
    border: 1px solid #314155;
    border-radius: 8px;
    background: rgba(13, 21, 31, 0.94);
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: sigi-auth-in 300ms ease-out both;
}

.auth-panel-badge { display: inline-flex; align-items: center; gap: 7px; color: #67d1df; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.auth-panel h2 { margin: 13px 0 5px; color: #ffffff; font-size: 24px; }
.auth-panel > p { margin: 0 0 26px; color: #8797a9; font-size: 12px; }
.auth-panel .form-group { margin-bottom: 18px; }
.auth-panel .form-group label { color: #bac7d5; font-size: 10px; }
.auth-panel .form-group > i { position: absolute; z-index: 1; bottom: 12px; left: 12px; color: #71849a; font-size: 17px; pointer-events: none; }
.auth-panel .form-control { border-color: #354559; background: #0b121b; color: #ffffff; }
.auth-panel .form-control.with-icon { padding-left: 40px; }
.auth-panel .form-control:focus { border-color: #43b9ce; box-shadow: 0 0 0 3px rgba(67, 185, 206, 0.18); }
.auth-panel .btn-login { width: 100%; min-height: 46px; margin-top: 24px; font-size: 13px; }
.auth-panel .validation-summary { margin-top: 16px; border-color: #6d3038; background: #32181c; color: #ff9ca3; }
.auth-security-note { display: flex; align-items: center; gap: 8px; margin-top: 19px; color: #6f8194; font-size: 9px; }

/* Responsive */
@media (max-width: 1180px) {
    .app-sidebar { width: var(--sigi-sidebar-width); }
    .app-main,
    .sidebar-collapsed .app-main { width: 100%; margin-left: 0; }
    .mobile-topbar {
        position: sticky;
        z-index: 220;
        top: 0;
        display: flex;
        min-height: 62px;
        padding: 9px 16px;
        border-bottom: 1px solid var(--sigi-border);
        background: color-mix(in srgb, var(--sigi-surface) 95%, transparent);
        box-shadow: var(--sigi-shadow-xs);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
    .mobile-brand { display: flex; min-width: 0; align-items: center; gap: 9px; color: var(--sigi-ink); }
    .mobile-brand strong { color: var(--sigi-ink); }
    .mobile-brand small { overflow: hidden; color: var(--sigi-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
    .mobile-brand .brand-mark img { width: 38px; height: 38px; }
    .app-sidebar { z-index: 240; transform: translateX(-104%); box-shadow: 18px 0 44px rgba(0, 0, 0, 0.26); }
    .sidebar-open .app-sidebar { transform: translateX(0); }
    .sidebar-open .sidebar-scrim { display: block; background: rgba(4, 9, 16, 0.66); backdrop-filter: blur(3px); }
    .sidebar-collapsed .app-sidebar { width: var(--sigi-sidebar-width); padding: 16px 12px 14px; }
    .sidebar-collapsed .sidebar-search { display: block; }
    .app-topbar { top: 62px; padding: 10px 18px; }
    .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(340px, 430px); padding: 34px; }
    .auth-brand { padding: 24px; }
    .auth-brand h1 { font-size: 34px; }
}

@media (max-width: 900px) {
    .col-md-2 { grid-column: span 12; }
}

@media (max-width: 820px) {
    .app-main .container { padding-right: 16px; padding-left: 16px; }
    .app-topbar { min-height: 60px; }
    .app-breadcrumb { display: none; }
    .app-topbar h1 { font-size: 17px; white-space: normal; overflow-wrap: anywhere; }
    .topbar-user-menu > summary { min-width: 44px; width: 44px; grid-template-columns: 32px; padding: 5px; }
    .topbar-user-copy,
    .topbar-user-menu > summary > i { display: none; }
    .page { padding-top: 20px; padding-bottom: 32px; }
    .page-header { margin-bottom: 16px; padding-bottom: 13px; }
    .page-header h2,
    .site-main h2 { font-size: 21px; }
    .form-simple { padding: 16px; }
    .ui-filter-form { padding: 15px; }
    form.ui-filter-form > div[style*="grid-template-columns"],
    .form-simple form > div[style*="grid-template-columns"],
    [data-function-service-picker] > div[style*="grid-template-columns"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    [data-function-service-picker] > div[style*="grid-template-columns"] > .btn { grid-column: 1 / -1; justify-self: start; }
    .table { min-width: 680px; }
    .sigi-dashboard { padding: 20px 16px 32px; }
    .auth-shell { grid-template-columns: 1fr; justify-items: center; padding: 24px; }
    .auth-brand { width: min(100%, 470px); padding: 0; }
    .auth-brand-lockup { margin-bottom: 22px; }
    .auth-brand h1 { font-size: 29px; }
    .auth-brand p,
    .auth-brand-signature { display: none; }
    .auth-panel { width: min(100%, 470px); }
}

@media (max-width: 560px) {
    .mobile-topbar { min-height: 58px; padding: 8px 12px; }
    .mobile-brand .brand-mark img { width: 36px; height: 36px; }
    .mobile-brand small { display: none; }
    .app-topbar { top: 58px; padding: 9px 12px; }
    .topbar-actions { gap: 6px; }
    .topbar-icon-button { width: 36px; height: 36px; flex-basis: 36px; }
    .app-main .container { padding-right: 12px; padding-left: 12px; }
    .page-header { align-items: stretch; flex-direction: column; }
    .page-header > .btn,
    .page-header > div:last-child:not(:first-child) { width: 100%; }
    .page-header > .btn { justify-content: center; }
    .ui-page-title-icon { width: 32px; height: 32px; flex-basis: 32px; }
    .form-simple { padding: 14px; }
    form.ui-filter-form > div[style*="grid-template-columns"],
    .form-simple > div[style*="grid-template-columns"],
    .form-simple form > div[style*="grid-template-columns"],
    [data-function-service-picker] > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
    [data-function-service-picker] > div[style*="grid-template-columns"] > .btn { width: 100%; }
    .form-actions { align-items: stretch; display: grid; grid-template-columns: 1fr; }
    .form-actions > .btn,
    .form-actions > form,
    .form-actions > form > .btn { width: 100%; }
    .referentiel-pagination { align-items: stretch; flex-direction: column; }
    .pagination-summary,
    .pagination-size-form,
    .pagination-actions { width: 100%; justify-content: space-between; }
    .pagination-actions .btn { flex: 1; }
    .table { min-width: 640px; }
    .table th { padding: 10px; }
    .table td { padding: 11px 10px; }
    .confirm-modal { grid-template-columns: 1fr; padding: 18px; }
    .confirm-modal-content { padding-right: 0; }
    .confirm-modal-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .dashboard-intro { align-items: stretch; }
    .dashboard-actions { display: grid; grid-template-columns: 1fr; }
    .dashboard-actions .btn { width: 100%; }
    .auth-shell { align-content: center; padding: 16px; }
    .auth-brand { display: none; }
    .auth-panel { padding: 24px 20px; }
    .auth-panel h2 { font-size: 22px; }
    .app-footer { padding: 12px; }
    .footer-meta { display: grid; gap: 4px; }
}

@keyframes sigi-page-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes sigi-modal-in {
    from { opacity: 0; transform: translateY(8px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes sigi-auth-in {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
