:root {
  color-scheme: light;
  --ink:#172033; --muted:#68738a; --line:#dfe5ee; --brand:#2157d5; --surface:#fff; --bg:#f4f7fb; --danger:#b42318; --success:#067647;
  --surface-muted:#f8fafc; --hover-bg:#f2f4f7; --chip-bg:#eef2f6; --border-input:#cbd5e1; --label-ink:#344054;
  --success-bg:#dcfae6; --danger-bg:#fee4e2; --warning-ink:#854d0e; --warning-bg:#fef9c3; --info-ink:#175cd3; --info-bg:#eff8ff; --brand-tint:#e9efff;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink:#e6e9f0; --muted:#9aa4b8; --line:#2a3346; --brand:#5b8def; --surface:#151b2b; --bg:#0b0f1a; --danger:#f87171; --success:#4ade80;
  --surface-muted:#1b2333; --hover-bg:#1f2738; --chip-bg:#1f2738; --border-input:#333f57; --label-ink:#c7cedb;
  --success-bg:rgba(74,222,128,.15); --danger-bg:rgba(248,113,113,.15); --warning-ink:#fbbf24; --warning-bg:rgba(251,191,36,.15);
  --info-ink:#7dd3fc; --info-bg:rgba(125,211,252,.15); --brand-tint:rgba(91,141,239,.15);
}
* { box-sizing: border-box; }
body { margin:0; min-height:100vh; overflow-x:hidden; font:15px/1.55 Inter,ui-sans-serif,system-ui,-apple-system,sans-serif; color:var(--ink); background:var(--bg); }
a { color:inherit; }
.topbar { height:64px; padding:0 20px; display:flex; align-items:center; justify-content:space-between; background:#101828; color:#fff; }
.brand { display:flex; gap:10px; align-items:center; font-size:17px; font-weight:750; text-decoration:none; letter-spacing:-.01em; }
.brand-mark { display:grid; place-items:center; width:30px; height:30px; border-radius:9px; background:#fff; overflow:hidden; }
.brand-mark img { width:22px; height:22px; object-fit:contain; display:block; }
.topbar-left { display:flex; align-items:center; gap:20px; min-width:0; }
.inventory-nav { display:flex; align-items:center; gap:4px; padding:4px; border-radius:11px; background:#1d2939; }
.inventory-nav a { padding:6px 11px; border-radius:8px; color:#cbd5e1; text-decoration:none; font-size:13px; font-weight:750; }
.inventory-nav a:hover { color:#fff; background:#344054; }
.inventory-nav a[aria-current="page"] { color:#101828; background:#fff; }
.admin-badge { padding:6px 11px; border-radius:8px; color:#cbd5e1; background:#1d2939; font-size:13px; font-weight:750; }
.admin-sections { display:flex; gap:4px; flex-wrap:wrap; margin:0 0 28px; padding:0 0 14px; border-bottom:1px solid var(--line); }
.admin-sections a { padding:8px 13px; border-radius:9px; color:var(--muted); text-decoration:none; font-size:14px; font-weight:700; }
.admin-sections a:hover { color:var(--ink); background:var(--hover-bg); }
.admin-sections a[aria-current="page"] { color:var(--brand); background:var(--brand-tint); }
.admin-page { max-width:1200px; }
.admin-flashes { display:grid; gap:10px; margin:0 0 22px; }
.field-error { color:var(--danger); font-size:12px; font-weight:650; }
.inline-form { display:inline-block; }
.organisation-name { display:block; max-width:280px; overflow:hidden; color:#dbe5f5; font-weight:700; text-decoration:none; text-overflow:ellipsis; white-space:nowrap; }
.organisation-switcher select { width:auto; max-width:300px; min-height:38px; padding:7px 34px 7px 11px; border-color:#344054; color:#fff; background:#1d2939; font-weight:700; }
.user-menu { position:relative; }
.user-menu summary { display:flex; align-items:center; gap:9px; min-height:40px; padding:7px 11px; border-radius:10px; color:#fff; cursor:pointer; font-weight:700; list-style:none; }
.user-menu summary::-webkit-details-marker { display:none; }
.user-menu summary:hover,.user-menu[open] summary { background:#1d2939; }
.user-avatar { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; color:#101828; background:#7dd3fc; font-size:12px; font-weight:900; }
.user-chevron { color:#98a2b3; font-size:11px; }
.user-dropdown { position:absolute; z-index:20; top:calc(100% + 9px); right:0; width:250px; padding:8px; border:1px solid var(--line); border-radius:13px; color:var(--ink); background:var(--surface); box-shadow:0 18px 45px rgba(16,24,40,.18); }
.user-dropdown-header { padding:9px 11px 11px; border-bottom:1px solid var(--line); }
.user-dropdown-header strong,.user-dropdown-header span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.user-dropdown-header span { color:var(--muted); font-size:12px; }
.user-dropdown a { display:flex; align-items:center; min-height:39px; padding:8px 11px; border-radius:8px; color:var(--label-ink); text-decoration:none; font-weight:650; }
.user-dropdown a:hover { color:var(--ink); background:var(--hover-bg); }
.user-dropdown .menu-separator { height:1px; margin:6px 3px; background:var(--line); }
.user-dropdown .logout-link { color:var(--danger); }
.theme-toggle { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:39px; padding:8px 11px; border-radius:8px; color:var(--label-ink); font-weight:650; cursor:pointer; }
.theme-toggle:hover { background:var(--hover-bg); }
.switch { position:relative; display:inline-block; width:38px; height:22px; flex:0 0 auto; }
.switch input { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.switch-track { position:absolute; inset:0; border-radius:999px; background:var(--border-input); transition:background .15s ease; }
.switch-track::before { content:""; position:absolute; top:2px; left:2px; width:18px; height:18px; border-radius:50%; background:#fff; transition:transform .15s ease; box-shadow:0 1px 3px rgba(16,24,40,.3); }
.switch input:checked + .switch-track { background:var(--brand); }
.switch input:checked + .switch-track::before { transform:translateX(16px); }
.switch input:focus-visible + .switch-track { outline:3px solid #9cc2ff; outline-offset:2px; }
main { width:calc(100% - 40px); margin:0 auto; padding:54px 0 40px; }
.site-footer { display:flex; align-items:center; justify-content:center; gap:9px; flex-wrap:wrap; width:calc(100% - 40px); margin:0 auto; padding:22px 0 30px; border-top:1px solid var(--line); color:var(--muted); font-size:13px; }
.site-footer a { color:var(--muted); text-decoration:none; }
.site-footer a:hover { color:var(--ink); text-decoration:underline; }
.app-version { font-variant-numeric:tabular-nums; }
.legal-page { max-width:760px; }
.legal-page h2 { margin-top:28px; font-size:17px; }
.legal-page dt { margin-top:12px; color:var(--label-ink); font-weight:700; }
.legal-page dd { margin:2px 0 0; color:var(--muted); }
.page-header { display:flex; align-items:end; justify-content:space-between; gap:18px; margin-bottom:24px; flex-wrap:wrap; }
.page-header p { max-width:760px; }
h1,h2 { margin:0; line-height:1.15; letter-spacing:-.025em; }
h1 { font-size:clamp(30px,4vw,46px); }
h2 { font-size:20px; }
p { margin:10px 0; }
.muted { color:var(--muted); }
.eyebrow { margin:0 0 8px; color:var(--brand); font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.hero { margin-bottom:34px; }
.card-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:18px; }
.feature-card { display:flex; gap:17px; min-height:150px; padding:25px; border:1px solid var(--line); border-radius:18px; background:var(--surface); text-decoration:none; box-shadow:0 8px 24px rgba(16,24,40,.04); transition:.18s ease; }
.feature-card:hover { transform:translateY(-2px); border-color:#a9bce8; box-shadow:0 14px 34px rgba(16,24,40,.08); }
.feature-card p { color:var(--muted); }
.card-icon { flex:0 0 auto; display:grid; place-items:center; width:42px; height:42px; border-radius:12px; background:var(--brand-tint); color:var(--brand); font-weight:850; }
.auth-card { width:min(100%,460px); margin:20px auto; padding:32px; border:1px solid var(--line); border-radius:20px; background:var(--surface); box-shadow:0 18px 50px rgba(16,24,40,.08); }
.admin-form-card { width:100%; margin:20px 0; padding:clamp(20px,3vw,34px); border:1px solid var(--line); border-radius:20px; background:var(--surface); box-shadow:0 12px 36px rgba(16,24,40,.06); }
.form-section { min-width:0; margin:0; padding:0; border:0; }
.form-section + .form-section { margin-top:32px; padding-top:30px; border-top:1px solid var(--line); }
.form-section legend { width:100%; margin:0 0 20px; padding:0; color:var(--ink); font-size:20px; font-weight:800; letter-spacing:-.02em; }
.admin-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 24px; align-items:start; }
.form-field-wide { grid-column:1/-1; }
.admin-form-card textarea { width:100%; min-height:110px; padding:10px 12px; resize:vertical; border:1px solid var(--border-input); border-radius:10px; color:var(--ink); background:var(--surface); font:inherit; }
.admin-form-card textarea:focus { outline:3px solid #dbe7ff; border-color:var(--brand); }
.admin-form-card select[multiple] { min-height:145px; padding:7px; }
.checkbox-field { display:flex; align-items:center; gap:10px; min-height:44px; align-self:end; padding:10px 12px; border:1px solid var(--border-input); border-radius:10px; background:var(--surface-muted); cursor:pointer; }
.checkbox-field input { width:18px; height:18px; min-height:0; margin:0; padding:0; flex:0 0 auto; accent-color:var(--brand); }
.checkbox-field > span { display:grid; gap:3px; min-width:0; }
/* Variante pour une case accompagnee d'un texte d'aide : la case reste alignee
   sur la premiere ligne du libelle au lieu d'etre centree sur tout le bloc. */
.checkbox-field-stacked { align-items:flex-start; align-self:stretch; }
.checkbox-field-stacked input { margin-top:3px; }
.checkbox-group { grid-column:1/-1; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:14px; align-items:stretch; }
.checkbox-group .checkbox-field { align-self:stretch; }
.form-actions { margin-top:32px; padding-top:24px; border-top:1px solid var(--line); }
.stack { display:grid; gap:17px; margin-top:24px; }
.auth-divider { display:flex; align-items:center; gap:12px; margin:20px 0; color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.06em; }
.auth-divider::before,.auth-divider::after { content:""; flex:1; height:1px; background:var(--line); }
.password-wrap { position:relative; }
.password-wrap input { padding-right:92px; }
.password-toggle { position:absolute; top:5px; right:5px; min-height:34px; padding:5px 9px; color:var(--label-ink); background:var(--chip-bg); font-size:12px; }
.field-help { color:var(--muted); font-size:12px; font-weight:450; }
label { display:grid; gap:7px; color:var(--label-ink); font-size:14px; font-weight:650; }
input,select { width:100%; min-height:44px; padding:10px 12px; border:1px solid var(--border-input); border-radius:10px; background:var(--surface); color:var(--ink); font:inherit; }
input:focus,select:focus { outline:3px solid #dbe7ff; border-color:var(--brand); }
button,.button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 17px; border:0; border-radius:10px; color:#fff; background:var(--brand); font:inherit; font-weight:750; cursor:pointer; text-decoration:none; white-space:nowrap; }
.button.secondary { color:var(--label-ink); background:var(--surface); border:1px solid var(--border-input); }
.icon-button { min-width:44px; padding:10px 12px; color:var(--label-ink); background:var(--surface); border:1px solid var(--border-input); font-size:16px; line-height:1; }
.icon-button[aria-pressed="true"] { color:#fff; background:var(--brand); border-color:var(--brand); }
button.danger,.button.danger { color:#fff; background:var(--danger); }
button:disabled { cursor:not-allowed; opacity:.55; }
a:focus-visible,button:focus-visible,summary:focus-visible { outline:3px solid #9cc2ff; outline-offset:3px; }
.actions { display:flex; gap:9px; flex-wrap:wrap; }
.action-menu { position:relative; }
.action-menu > summary { list-style:none; }
.action-menu > summary::-webkit-details-marker { display:none; }
.action-menu-items { position:absolute; z-index:10; top:calc(100% + 7px); right:0; min-width:250px; padding:8px; border:1px solid var(--line); border-radius:12px; background:var(--surface); box-shadow:0 15px 35px rgba(16,24,40,.14); }
.action-menu-items a { display:block; padding:9px 11px; border-radius:8px; text-decoration:none; }
.action-menu-items a:hover { background:var(--hover-bg); }
.column-picker-panel { min-width:320px; }
.column-picker { display:grid; gap:4px; margin:0; padding:0; list-style:none; }
.column-picker li { display:flex; align-items:center; gap:8px; padding:4px 6px; border-radius:8px; }
.column-picker li label { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:600; white-space:nowrap; }
.column-drag-handle { color:var(--muted); cursor:grab; flex:0 0 auto; }
.notice,.error { padding:12px 14px; border-radius:10px; }
.notice { color:var(--warning-ink); background:var(--warning-bg); }
.error { color:var(--danger); background:var(--danger-bg); }
.success { padding:12px 14px; border-radius:10px; color:var(--success); background:var(--success-bg); }
.import-card { display:grid; grid-template-columns:1fr minmax(240px,360px) auto; align-items:center; gap:18px; margin:0 0 22px; padding:18px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.import-card p { margin:2px 0 0; }
.import-panel { margin:0 0 22px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.import-panel > summary { padding:14px 18px; cursor:pointer; font-weight:800; }
.import-panel[open] > summary { border-bottom:1px solid var(--line); }
.import-panel .import-card { margin:0; border:0; border-radius:0 0 14px 14px; }
.quota-badge { display:inline-flex; align-items:center; min-height:34px; padding:6px 14px; border-radius:999px; font-variant-numeric:tabular-nums; font-size:16px; font-weight:800; cursor:default; }
.quota-badge--green { color:var(--success); background:var(--success-bg); }
.quota-badge--orange { color:var(--warning-ink); background:var(--warning-bg); }
.quota-badge--red { color:var(--danger); background:var(--danger-bg); }
.org-card { margin:0 0 22px; padding:18px 20px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.org-card-head { display:flex; align-items:start; justify-content:space-between; gap:18px; flex-wrap:wrap; }
.org-card-identity h2 { display:flex; align-items:center; gap:10px; margin:0; font-size:20px; flex-wrap:wrap; }
.family-edit-button { flex:0 0 auto; }
.admin-dialog { width:min(520px,calc(100% - 32px)); max-height:calc(100vh - 32px); margin:auto; padding:0; overflow:auto; border:1px solid var(--line); border-radius:16px; color:var(--ink); background:var(--surface); box-shadow:0 24px 70px rgba(16,24,40,.28); }
.admin-dialog::backdrop { background:rgba(6,12,24,.68); backdrop-filter:blur(2px); }
.admin-dialog form { padding:24px; }
.admin-dialog-head { display:flex; align-items:start; justify-content:space-between; gap:20px; }
.admin-dialog-head h2 { margin:3px 0 0; }
.admin-dialog-head .icon-button { min-height:38px; min-width:38px; padding:7px 10px; font-size:22px; }
.admin-dialog-actions { justify-content:flex-end; margin-top:26px; padding-top:20px; border-top:1px solid var(--line); }
.org-card-inactive { color:var(--danger); background:var(--danger-bg); }
.org-card-quota { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.org-card-quota-note { font-size:13px; font-weight:600; }
.org-card-description { max-width:760px; margin:12px 0 0; }
.inventory-summary { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.inventory-summary span { display:inline-flex; gap:5px; padding:7px 11px; border-radius:999px; color:var(--label-ink); background:var(--chip-bg); font-size:13px; }
.inventory-summary .summary-critical { color:var(--warning-ink); background:var(--warning-bg); }
.inventory-summary .summary-unauthorized { color:var(--danger); background:var(--danger-bg); }
.org-card-meta { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:14px 24px; margin:16px 0 0; padding:16px 0 0; border-top:1px solid var(--line); }
.org-card-meta dt { color:var(--muted); font-size:12px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.org-card-meta dd { margin:4px 0 0; font-weight:650; overflow-wrap:anywhere; }
.import-report { margin-top:18px; }
.import-report details { margin-top:8px; }
.status { padding:4px 9px; border-radius:999px; background:var(--chip-bg); font-size:12px; font-weight:750; }
.status-active { color:var(--success); background:var(--success-bg); }
.toolbar { display:flex; gap:15px; align-items:end; justify-content:space-between; flex-wrap:wrap; margin:25px 0; }
.merge-applications-control { display:flex; grid-template-columns:none; flex-direction:row; align-items:center; gap:9px; min-height:44px; padding:8px 12px; border:1px solid var(--border-input); border-radius:10px; background:var(--surface); cursor:pointer; }
.merge-applications-control input { width:18px; height:18px; min-height:0; margin:0; padding:0; flex:0 0 auto; }
.application-variants { min-width:130px; }
.application-variants summary { width:max-content; color:var(--brand); cursor:pointer; font-weight:750; }
.application-variant-list { display:grid; gap:8px; min-width:520px; margin-top:10px; padding:12px; border:1px solid var(--line); border-radius:10px; background:var(--surface-muted); }
.application-variant { display:grid; grid-template-columns:minmax(170px,1fr) minmax(110px,.7fr) auto auto; align-items:center; gap:10px; font-size:13px; }
.asset-filters { display:flex; align-items:end; gap:12px; flex-wrap:wrap; }
.asset-filters .search-field { min-width:260px; }
.asset-count { margin:14px 0; color:var(--muted); font-size:13px; }
.active-filters { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:12px 0 0; }
.filter-chip { display:inline-flex; align-items:center; min-height:32px; padding:5px 10px; border-radius:999px; color:var(--label-ink); background:var(--chip-bg); font-size:12px; font-weight:700; }
.htmx-indicator { display:none; color:var(--muted); font-size:13px; }
.htmx-request .htmx-indicator,.htmx-request.htmx-indicator { display:inline-flex; }
/* Masquee par defaut : c'est ui.js qui pose display:flex des qu'une ligne
   est selectionnee. Une classe plutot qu'un style= en markup, pour que la
   CSP puisse refuser 'unsafe-inline' sur style-src. */
.bulk-toolbar { display:none; align-items:end; gap:14px; flex-wrap:wrap; margin:0 0 14px; padding:14px 16px; border:1px solid var(--line); border-radius:12px; background:var(--chip-bg); }
.bulk-toolbar label { display:grid; gap:5px; font-size:13px; }
.bulk-toolbar select { min-height:38px; }
.bulk-toolbar button { min-height:38px; }
.bulk-toolbar span[data-bulk-count] { font-weight:750; color:var(--label-ink); }
#asset-table th, #asset-table td { padding:6px 10px; line-height:1.3; white-space:nowrap; }
#asset-table td:first-child, #asset-table th:first-child { width:1%; padding-right:6px; }
#asset-table[data-application-table] { min-width:1600px; table-layout:fixed; }
#asset-table[data-application-table] th[data-column-key="selection"] { width:43px; }
#asset-table[data-application-table] th[data-column-key="name"] { width:260px; }
#asset-table[data-application-table] th[data-column-key="status"] { width:105px; }
#asset-table[data-application-table] th[data-column-key="publisher"] { width:180px; }
#asset-table[data-application-table] th[data-column-key="ostype"] { width:105px; }
#asset-table[data-application-table] th[data-column-key="active_installations"] { width:165px; }
#asset-table[data-application-table] th[data-column-key="variants"] { width:145px; }
#asset-table[data-application-table] th[data-column-key="criticality"],
#asset-table[data-application-table] th[data-column-key="authorization"] { width:145px; }
#asset-table[data-application-table] th[data-column-key="last_seen_at"],
#asset-table[data-application-table] th[data-column-key="last_enrichment_update_at"] { width:185px; }
#asset-table[data-application-table] td:nth-child(2) > strong { display:block; overflow:hidden; text-overflow:ellipsis; }
#asset-table[data-application-table] thead tr:first-child th[data-column-key]:not([data-column-key="selection"]) { padding-right:18px; }
.column-resize-handle { position:absolute; z-index:8; top:0; right:-4px; width:9px; height:100%; cursor:col-resize; touch-action:none; }
.column-resize-handle::after { content:""; position:absolute; top:20%; bottom:20%; left:4px; width:1px; background:var(--border-input); opacity:.55; }
.column-resize-handle:hover::after,.column-resize-handle:focus-visible::after { width:2px; background:var(--brand); opacity:1; }
.inventory-columns-resizing,.inventory-columns-resizing * { cursor:col-resize !important; user-select:none !important; }
.table-scroll { overflow-x:auto; border-radius:14px; }
#asset-table input[type=text], #asset-table select { min-width:110px; min-height:30px; padding:4px 8px; font-size:13px; }
#asset-table input[type=checkbox] { width:16px; height:16px; min-height:0; margin:0; padding:0; vertical-align:middle; }
#asset-table thead th { position:sticky; top:0; z-index:2; }
.column-search-row { display:none; }
.table-scroll.show-column-search .column-search-row { display:table-row; }
.column-search-row td { padding:4px 10px; background:var(--surface-muted); }
.column-search-row input,.column-search-row select { width:100%; min-width:90px; min-height:30px; padding:4px 8px; font-size:13px; }
#asset-table tbody tr:nth-child(even) td { background:var(--surface-muted); }
#asset-table th:first-child,#asset-table td:first-child { position:sticky; left:0; z-index:3; background:var(--surface); }
#asset-table tbody tr:nth-child(even) td:first-child,
#asset-table tbody tr:nth-child(even) td:nth-child(2) { background:var(--surface-muted); }
#asset-table thead th:first-child { z-index:5; background:var(--surface-muted); }
#asset-table th:nth-child(2),#asset-table td:nth-child(2) { position:sticky; left:43px; z-index:3; background:var(--surface); box-shadow:1px 0 0 var(--line); }
#asset-table thead th:nth-child(2) { z-index:5; background:var(--surface-muted); }
.sort-link { color:inherit; text-decoration:none; }
.sort-link:hover { color:var(--brand); }
.toast-container { position:fixed; right:20px; bottom:20px; z-index:50; display:flex; flex-direction:column; gap:10px; }
.toast { padding:12px 16px; border-radius:10px; color:#fff; font-size:14px; font-weight:700; box-shadow:0 15px 35px rgba(16,24,40,.14); }
.toast-success { background:var(--success); }
.toast-error { background:var(--danger); }
.pagination { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:18px; padding:12px 16px; border:1px solid var(--line); border-radius:12px; background:var(--surface); flex-wrap:wrap; }
.pagination .per-page-field { display:flex; align-items:center; gap:9px; margin:0; color:var(--muted); font-size:13px; white-space:nowrap; }
.pagination .per-page-field select { width:auto; min-width:72px; min-height:34px; padding:5px 9px; font-size:13px; }
.pagination-right { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.pagination-position { color:var(--muted); font-size:13px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.pagination-links { display:flex; gap:6px; align-items:center; flex-wrap:wrap; max-width:100%; overflow-x:auto; }
.pagination a,.pagination .current-page { display:grid; min-width:38px; min-height:38px; padding:7px 10px; place-items:center; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--label-ink); text-decoration:none; font-weight:700; }
.pagination .current-page { border-color:var(--brand); color:#fff; background:var(--brand); }
.empty { padding:30px; color:var(--muted); text-align:center; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.section { margin-top:34px; }
.source { display:inline-flex; padding:3px 8px; border-radius:999px; color:var(--label-ink); background:var(--chip-bg); font-size:12px; font-weight:750; }
.source-import { color:var(--info-ink); background:var(--info-bg); }
.metric { font-variant-numeric:tabular-nums; }
.dependency-help { max-width:780px; margin-bottom:18px; }
.dependency-table table { min-width:850px; }
.dependency-details { min-width:180px; }
.dependency-details summary { width:max-content; cursor:pointer; list-style:none; }
.dependency-details summary::-webkit-details-marker { display:none; }
.dependency-details summary:focus-visible { outline:3px solid #9cc2ff; outline-offset:3px; border-radius:999px; }
.dependency-popover { display:none; width:min(520px,65vw); max-height:340px; margin-top:10px; padding:14px; overflow:auto; border:1px solid var(--line); border-radius:12px; background:var(--surface-muted); box-shadow:0 10px 28px rgba(16,24,40,.12); }
.dependency-details:hover .dependency-popover,.dependency-details:focus-within .dependency-popover,.dependency-details[open] .dependency-popover { display:block; }
.dependency-tree { display:grid; gap:7px; margin:10px 0 0; padding:0; list-style:none; }
.dependency-tree li { display:flex; align-items:center; gap:7px; min-width:max-content;
  /* La profondeur arrive par data-dependency-depth et non par un style=
     interpole : meme raison que .bulk-toolbar ci-dessus. Au-dela de 8
     niveaux l'indentation sature, ce qui vaut mieux qu'un debordement. */
  padding-inline-start:0; }
.dependency-tree li[data-dependency-depth="2"] { padding-inline-start:18px; }
.dependency-tree li[data-dependency-depth="3"] { padding-inline-start:36px; }
.dependency-tree li[data-dependency-depth="4"] { padding-inline-start:54px; }
.dependency-tree li[data-dependency-depth="5"] { padding-inline-start:72px; }
.dependency-tree li[data-dependency-depth="6"] { padding-inline-start:90px; }
.dependency-tree li[data-dependency-depth="7"] { padding-inline-start:108px; }
.dependency-tree li[data-dependency-depth]:not([data-dependency-depth="1"]):not([data-dependency-depth="2"]):not([data-dependency-depth="3"]):not([data-dependency-depth="4"]):not([data-dependency-depth="5"]):not([data-dependency-depth="6"]):not([data-dependency-depth="7"]) { padding-inline-start:126px; }
.dependency-branch { color:var(--muted); font-family:ui-monospace,SFMono-Regular,Consolas,monospace; }
.dependency-tree-name { font-weight:750; }
.dependency-tree-version,.dependency-tree small { color:var(--muted); font-size:12px; }
.dependency-tree .source { margin-left:2px; }
.dependency-status-success { color:var(--success); background:var(--success-bg); }
.dependency-status-warning { color:var(--warning-ink); background:var(--warning-bg); }
.dependency-status-danger { color:var(--danger); background:var(--danger-bg); }
table { width:100%; border-collapse:separate; border-spacing:0; overflow:hidden; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
th,td { padding:13px 16px; border-bottom:1px solid var(--line); text-align:left; }
th { color:var(--muted); background:var(--surface-muted); font-size:12px; text-transform:uppercase; letter-spacing:.04em; }
tr:last-child td { border-bottom:0; }
@media (max-width:960px) { .asset-filters label { width:100%; } .asset-filters .search-field { min-width:0; } .bulk-toolbar { flex-direction:column; align-items:stretch; } .bulk-toolbar label,.bulk-toolbar button { width:100%; } }
@media (max-width:760px) { main { width:calc(100% - 24px); padding-top:30px; } .topbar { min-height:64px; height:auto; padding:10px 16px; flex-wrap:wrap; } .topbar-left { gap:10px; flex-wrap:wrap; } .brand { font-size:15px; } .brand-mark { font-size:12px; } .organisation-name { max-width:110px; } .organisation-switcher select { max-width:125px; } .inventory-nav { order:3; width:100%; } .inventory-nav a { flex:1; text-align:center; } .user-menu .nav-label { display:none; } .auth-card { padding:24px; } .admin-form-card { padding:20px 16px; border-radius:16px; } .admin-form-grid { grid-template-columns:1fr; } .form-field-wide { grid-column:auto; } .checkbox-group { grid-column:auto; } .form-actions .button,.form-actions button { width:100%; } .import-card { grid-template-columns:1fr; } table { display:block; overflow-x:auto; } #asset-table { min-width:1050px; } .asset-filters,.asset-filters label { width:100%; } .asset-filters .search-field { min-width:0; } }

/* Dictionnaire des applications : tableau maitre-detail. La ligne de detail
   est masquee par l'attribut `hidden`, que la regle d'affichage des lignes de
   tableau des navigateurs surchargerait sans ce rappel explicite. */
.dictionary-detail[hidden] { display:none; }
.dictionary-table td:first-child,.dictionary-table th:first-child { width:56px; padding-right:0; }
.dictionary-toggle { min-width:38px; padding:8px 10px; }
.dictionary-actions { flex-wrap:nowrap; justify-content:flex-end; }
.dictionary-detail > td { padding:0; background:var(--surface-muted); }
.dictionary-detail-body { display:grid; gap:16px; padding:16px 18px 20px; }
.dictionary-rules { background:var(--surface); }
.dictionary-rules th,.dictionary-rules td { padding:9px 13px; }
.dictionary-rule-form { display:flex; align-items:end; gap:12px; flex-wrap:wrap; }
.dictionary-rule-form label { display:grid; gap:5px; margin:0; flex:1 1 200px; }
.dictionary-rule-form .dictionary-rule-priority { flex:0 0 120px; }
.dictionary-rule-form input,.dictionary-rule-form select { min-height:40px; }
.dictionary-search { display:flex; align-items:center; gap:9px; flex-wrap:wrap; margin:0; }
.dictionary-search input[type=search] { min-width:min(280px,100%); }
@media (max-width:760px) { .dictionary-rule-form label,.dictionary-rule-form .dictionary-rule-priority { flex:1 1 100%; } }
.dictionary-rule-edit > td { background: var(--surface-muted); }
.rule-actions { display:flex; gap:8px; align-items:center; }

/* Remplacent des attributs style= supprimes pour que la CSP puisse
   refuser 'unsafe-inline' sur style-src. */
.sso-choice { margin-top:18px; }
.inline-checkbox { width:auto; min-height:0; }
