/* ============================================================
   Specialtools V2.3.7.0 — Renault Group visual layer
   Visual override only. Loaded after legacy CSS and before responsive-v237.css.
   ============================================================ */

:root{
  --st237-black:#090a0d;
  --st237-black-soft:#14151a;
  --st237-white:#ffffff;
  --st237-bg:#f5f5f7;
  --st237-surface:#ffffff;
  --st237-surface-soft:#faf9fc;
  --st237-mineral:#e7e6ea;
  --st237-line:#e4e2e8;
  --st237-line-strong:#d4d1d9;
  --st237-text:#1b1920;
  --st237-muted:#6f6a76;
  --st237-purple:#4613a5;
  --st237-purple-2:#6d24c9;
  --st237-pink:#b52bc6;
  --st237-warm:#e5648c;
  --st237-green:#168a55;
  --st237-orange:#c87217;
  --st237-red:#b73a43;
  --st237-blue:#2e2eca;
  --st237-radius-xs:8px;
  --st237-radius-sm:12px;
  --st237-radius:16px;
  --st237-radius-lg:22px;
  --st237-shadow:0 10px 30px rgba(28,19,43,.055);
  --st237-shadow-hover:0 14px 38px rgba(49,25,85,.10);
  --st237-gradient:linear-gradient(112deg,#4a14a7 0%,#7023be 46%,#b82cb6 76%,#df6a86 100%);
  --st237-font:"Renault Group",Arial,"Segoe UI",sans-serif;

  /* Shared layout tokens — consolidated in V2.3.7.6. */
  --st237-content-max:1600px;
  --st237-page-gap:16px;
  --st237-control-h:42px;
  --st237-radius-control:10px;
  --st237-radius-card:16px;
  --st237-radius-hero:20px;
  --st237-shadow-card:0 5px 18px rgba(28,19,43,.045);
  --st237-shadow-elevated:0 12px 32px rgba(28,19,43,.08);

  /* Legacy variable remap: legacy components inherit the new system. */
  --bg:var(--st237-bg);
  --panel:var(--st237-surface);
  --ink:var(--st237-text);
  --muted:var(--st237-muted);
  --line:var(--st237-line);
  --dark:var(--st237-black);
  --dark2:var(--st237-black-soft);
  --accent:var(--st237-purple);
  --accent2:var(--st237-purple-2);
  --shadow:var(--st237-shadow);
  --st-accent:var(--st237-purple);
}

html{background:var(--st237-bg);overflow-x:hidden}
*,*::before,*::after{box-sizing:border-box}
body{
  margin:0;
  background:var(--st237-bg);
  color:var(--st237-text);
  font-family:var(--st237-font);
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
button,input,select,textarea{font-family:inherit}
button{letter-spacing:0}

/* ---------- Global shell / desktop black top bar ---------- */
@media (min-width:1181px){
  .app-shell{display:block;min-height:100vh;padding-top:72px}
  .sidebar{
    position:fixed!important;inset:0 0 auto 0!important;
    width:100%!important;height:72px!important;min-height:72px!important;
    padding:0 300px 0 24px!important;
    background:var(--st237-black)!important;
    color:#fff;z-index:300!important;
    display:flex!important;flex-direction:row!important;align-items:center!important;
    gap:18px;border:0!important;box-shadow:0 1px 0 rgba(255,255,255,.06)!important;
  }
  .sidebar .brand,.sidebar .brand-home{
    margin:0!important;padding:0!important;width:auto!important;min-width:284px;
    display:flex!important;align-items:center!important;gap:11px!important;
    background:transparent!important;border:0!important;color:#fff!important;text-align:left;
  }
  .sidebar .brand-mark{
    width:38px!important;height:38px!important;border-radius:10px!important;
    background:var(--st237-gradient)!important;color:#fff!important;
    font-size:15px!important;font-weight:800!important;letter-spacing:.02em;
    box-shadow:none!important;
  }
  .st237-brand-product{display:flex!important;flex-direction:column;justify-content:center;min-width:116px}
  .st237-brand-product strong{color:#fff!important;font-size:16px!important;line-height:1.05;font-weight:650!important}
  .st237-brand-product span{color:#a8a6ae!important;font-size:10px!important;line-height:1.1;margin-top:4px!important;white-space:nowrap}
  .st237-brand-divider{display:block;width:1px;height:30px;background:#35343a;margin:0 1px}
  .st237-rg-logotype{display:block;max-width:92px;max-height:28px;width:auto;height:auto;object-fit:contain}

  .sidebar nav{
    display:flex!important;align-items:center!important;justify-content:center!important;gap:3px!important;
    flex:1 1 auto;min-width:0;height:100%;margin:0!important;
  }
  .sidebar .nav{
    display:flex!important;align-items:center!important;gap:6px!important;
    min-height:42px!important;padding:0 10px!important;border-radius:9px!important;
    background:transparent!important;border:0!important;color:#aaa8b0!important;
    font-size:12.5px!important;font-weight:550!important;white-space:nowrap!important;
    box-shadow:none!important;transition:background .16s ease,color .16s ease!important;
  }
  .sidebar .nav:hover{background:#1b1a20!important;color:#fff!important}
  .sidebar .nav.active{background:#222027!important;color:#fff!important;box-shadow:none!important}
  .sidebar .nav.active::after{content:"";position:absolute;bottom:0;height:2px;left:12px;right:12px;background:var(--st237-purple-2);border-radius:2px 2px 0 0}
  .sidebar .nav{position:relative}
  .nav-svg{width:18px;height:18px;color:currentColor}
  .nav-svg::before,.st237-global-search-icon::before,.st237-action-picto::before,.st237-tools-filter-picto::before,.st237-field-picto::before,.st237-btn-picto::before,.st237-inline-picto::before,.st237-rail-picto::before,.st237-account-menu-icon::before,
  .st237-tools-capabilities i::before,.st237-mytools-capabilities i::before,.st237-inventory-hero-meta i::before{
    content:"";display:block;width:100%;height:100%;background:currentColor;
    -webkit-mask-image:var(--picto);mask-image:var(--picto);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
    -webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain;
  }

  .st237-global-search{
    display:flex;align-items:center;gap:8px;flex:0 1 340px;max-width:340px;min-width:220px;
    height:40px;padding:0 10px;border:1px solid #302e36;border-radius:11px;background:#18171c;color:#95929d;margin:0!important;
  }
  .st237-global-search-icon{width:17px;height:17px;color:#aaa6b1;flex:0 0 17px}
  .st237-global-search input{min-width:0;flex:1;border:0!important;outline:0!important;background:transparent!important;color:#fff!important;padding:0!important;font-size:12.5px}
  .st237-global-search input::placeholder{color:#77737f}
  .st237-global-search kbd{font:600 9px/1 var(--st237-font);color:#8d8994;background:#232127;border:1px solid #343139;border-radius:5px;padding:5px 6px;white-space:nowrap}

  /* Header overlays the right end of the black bar and owns user controls. */
  main{min-width:0}
  main>header{
    position:fixed!important;top:0!important;right:0!important;left:auto!important;z-index:320!important;
    height:72px!important;min-height:72px!important;width:240px!important;
    padding:0 18px 0 8px!important;background:transparent!important;border:0!important;
    display:flex!important;align-items:center!important;justify-content:flex-end!important;box-shadow:none!important;
  }
  .header-title{display:none!important}
  .header-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;width:100%}
  .view-mode-switch,.language-flag-picker{display:none!important}
  .public-login-btn{background:#fff!important;color:#19171d!important;border:0!important}

  /* Keep service/version information present, but out of the application workspace. */
  .sidebar-connectivity,.sidebar>.version{
    position:fixed!important;bottom:14px!important;z-index:90!important;
    background:rgba(15,14,18,.92)!important;color:#fff!important;border:1px solid rgba(255,255,255,.08)!important;
    box-shadow:0 8px 24px rgba(0,0,0,.12);backdrop-filter:blur(8px);
  }
  .sidebar-connectivity{left:16px!important;margin:0!important;padding:8px 10px!important;border-radius:10px!important;display:flex!important;align-items:center!important;gap:8px!important}
  .sidebar-connectivity i{width:7px!important;height:7px!important;border-radius:50%!important;background:#39c77c!important;box-shadow:0 0 0 3px rgba(57,199,124,.13)}
  .sidebar-connectivity strong{font-size:10.5px!important;color:#fff!important}.sidebar-connectivity span{font-size:9.5px!important;color:#aaa7b0!important}
  .sidebar>.version{left:166px!important;margin:0!important;padding:7px 9px!important;border-radius:9px!important;font-size:9px!important;color:#8f8b96!important}
  .sidebar>.version strong{color:#fff!important;font-size:10px!important}

  .view{padding:20px 28px 42px!important}
}

/* ---------- User identity ---------- */
.access-account{position:relative}
.access-account-trigger{
  display:flex!important;align-items:center!important;gap:9px!important;height:48px!important;min-width:180px!important;
  padding:5px 10px 5px 6px!important;border:1px solid #302e35!important;border-radius:14px!important;
  background:#17161b!important;color:#fff!important;box-shadow:none!important;cursor:pointer;
}
.access-account-trigger:hover{background:#201e25!important;border-color:#44414a!important}
.access-user-avatar{
  display:grid!important;place-items:center!important;width:36px!important;height:36px!important;min-width:36px!important;border-radius:50%!important;
  color:#fff!important;background:var(--st237-gradient)!important;font-size:12px!important;font-weight:750!important;box-shadow:none!important;
}
.access-user-text{display:flex!important;flex-direction:column!important;min-width:0!important;text-align:left!important;line-height:1.05!important}
.access-user-text strong{font-size:12.5px!important;font-weight:650!important;color:#fff!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.access-user-text span{font-size:9.5px!important;color:#9a96a2!important;margin-top:4px!important;text-transform:none!important}
.account-chevron{color:#77737f!important;font-size:12px!important;margin-left:auto!important}
.access-account-menu{
  top:56px!important;right:0!important;min-width:246px!important;padding:8px!important;border-radius:14px!important;
  border:1px solid #312f37!important;background:#141318!important;color:#fff!important;box-shadow:0 18px 46px rgba(0,0,0,.28)!important;
}
.access-account-menu-head{display:flex;align-items:center;gap:10px;padding:8px 8px 12px;border-bottom:1px solid #2b2930;margin-bottom:5px}
.access-account-menu-head strong{display:block;font-size:13px}.access-account-menu-head span{display:block;color:#918d98;font-size:10px;margin-top:3px}
.access-account-menu>button{display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;border:0!important;background:transparent!important;color:#d8d5dc!important;padding:10px!important;border-radius:9px!important;text-align:left!important;font-size:12px!important}
.access-account-menu>button:hover{background:#211f26!important;color:#fff!important}
.access-account-menu>button.danger{color:#ff929d!important}
.access-account-menu-separator{height:1px;background:#2b2930;margin:5px 4px}
.st237-account-menu-icon{width:16px;height:16px;color:currentColor}

/* ---------- Shared UI ---------- */
.btn,.icon-btn,.text-btn,.st237-text-link{transition:background .15s ease,border-color .15s ease,transform .15s ease,color .15s ease,box-shadow .15s ease}
.btn{min-height:var(--st237-control-h)!important;border-radius:var(--st237-radius-control)!important;padding:9px 14px!important;font-weight:600!important;font-size:13px!important;line-height:1.2!important;box-shadow:none!important}
.btn.primary,.primary{background:var(--st237-purple)!important;color:#fff!important;border-color:var(--st237-purple)!important}
.btn.primary:hover,.primary:hover{background:#5721b5!important;border-color:#5721b5!important}
.btn.secondary,.secondary{background:#fff!important;color:#312e37!important;border-color:var(--st237-line)!important}
.btn.secondary:hover,.secondary:hover{border-color:#c7c2ce!important;background:#fbfafc!important}
.icon-btn{border-radius:10px!important;border-color:var(--st237-line)!important;background:#fff!important;color:#4c4752!important}
.danger-outline{color:var(--st237-red)!important;border-color:#e7bbc0!important;background:#fff!important}
input,select,textarea{color:var(--st237-text)}
.search,input[type="search"],.toolbar select,.filter-labelled select,.control-filter-secondary select{
  border-color:var(--st237-line)!important;background:#fff!important;border-radius:10px!important;box-shadow:none!important;
}
.search:focus-within,input:focus,select:focus,textarea:focus{outline:0!important;border-color:#9a75dc!important;box-shadow:0 0 0 3px rgba(70,19,165,.09)!important}
.badge,.v2-status,.v2-condition{box-shadow:none!important}

/* ---------- Shared hero ---------- */
.st237-home-dashboard,.st237-tools-shell,.st237-mytools-shell,.st237-inventory-shell,.st237-control-shell{display:grid;gap:16px}
.st237-home-hero,.st237-tools-hero,.st237-mytools-hero,.st237-inventory-hero,.st237-control-hero{
  position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:26px;
  min-height:178px;padding:30px 34px;border-radius:20px;color:#fff;background:var(--st237-gradient);box-shadow:none;
}
.st237-home-hero::after,.st237-tools-hero::after,.st237-mytools-hero::after,.st237-inventory-hero::after,.st237-control-hero::after{
  content:"";position:absolute;width:420px;height:420px;right:-160px;top:-160px;border-radius:50%;
  border:1px solid rgba(255,255,255,.16);box-shadow:0 0 0 56px rgba(255,255,255,.035),0 0 0 112px rgba(255,255,255,.025);pointer-events:none;
}
.st237-home-hero-copy,.st237-tools-hero-copy,.st237-mytools-hero-copy,.st237-inventory-hero-copy,.st237-control-hero-copy{position:relative;z-index:1;max-width:760px}
.st237-home-kicker,.st237-tools-kicker,.st237-mytools-kicker,.st237-inventory-kicker,.st237-control-kicker{font-size:10px;letter-spacing:.20em;font-weight:750;color:rgba(255,255,255,.76)}
.st237-home-hero h2,.st237-tools-hero h2,.st237-mytools-hero h2,.st237-inventory-hero h2,.st237-control-hero h2{font-size:40px;line-height:1.02;letter-spacing:-.035em;margin:7px 0 9px;color:#fff;font-weight:650}
.st237-home-hero p,.st237-tools-hero p,.st237-mytools-hero p,.st237-inventory-hero p,.st237-control-hero p{margin:0;color:rgba(255,255,255,.83);font-size:14px;line-height:1.45}
.st237-home-hero-tagline,.st237-tools-hero-signature,.st237-mytools-hero-signature,.st237-inventory-hero-signature,.st237-control-hero-signature{position:relative;z-index:1;text-align:right;font-size:10px;line-height:1.4;letter-spacing:.16em;font-weight:700;color:rgba(255,255,255,.76)}
.st237-tools-hero-signature span,.st237-mytools-hero-signature span,.st237-inventory-hero-signature span,.st237-control-hero-signature span{display:block}
.st237-home-hero-tagline i,.st237-tools-hero-signature i,.st237-mytools-hero-signature i,.st237-inventory-hero-signature i,.st237-control-hero-signature i{display:block;width:58px;height:2px;background:#fff;margin:10px 0 0 auto;opacity:.72}

.st237-tools-capabilities,.st237-mytools-capabilities,.st237-inventory-hero-meta{display:flex;align-items:center;gap:8px;margin-top:16px}
.st237-tools-capabilities span,.st237-mytools-capabilities span,.st237-inventory-hero-meta span{display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.09);color:#fff;border-radius:999px;padding:6px 9px;font-size:10.5px;backdrop-filter:blur(2px)}
.st237-tools-capabilities i,.st237-mytools-capabilities i,.st237-inventory-hero-meta i{display:inline-grid;place-items:center;width:14px;height:14px;color:#fff}

/* ---------- Home ---------- */
.st237-home-mobile-search{display:none}
.st237-primary-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.st237-action-card{
  position:relative;display:flex;align-items:center;gap:13px;min-height:88px;padding:14px 14px;border:1px solid var(--st237-line);border-radius:15px;
  background:#fff;color:var(--st237-text);text-align:left;box-shadow:none;cursor:pointer;overflow:hidden;
}
.st237-action-card:hover{transform:translateY(-1px);border-color:#cec5dd;box-shadow:var(--st237-shadow-hover)}
.st237-action-card.is-primary{border-color:#d9caef;background:linear-gradient(135deg,#fff 45%,#faf6ff 100%)}
.st237-action-picto{display:inline-grid;place-items:center;width:54px;height:54px;flex:0 0 54px;border-radius:14px;background:#f0e8fb;color:var(--st237-purple)}
.st237-action-picto::before{width:24px;height:24px}
.st237-action-card.is-primary .st237-action-picto{background:var(--st237-purple);color:#fff}
.st237-action-copy{display:flex;flex-direction:column;min-width:0}
.st237-action-copy strong{font-size:15px;line-height:1.15;font-weight:650}.st237-action-copy small{font-size:11.5px;color:var(--st237-muted);margin-top:4px}
.st237-action-card>i{margin-left:auto;font-style:normal;font-size:23px;color:#aaa4b1;font-weight:300}

.st237-home-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start}
.st237-home-main{display:grid;gap:16px}
.st237-overview-section,.st237-recent-section,.st237-rail-card,.st237-tools-filter-panel,.st237-inventory-main-panel{
  background:#fff;border:1px solid var(--st237-line);border-radius:16px;box-shadow:none;
}
.st237-overview-section,.st237-recent-section{padding:18px}
.st237-section-head,.st237-tools-filter-head,.st237-inventory-panel-head,.st237-mytools-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.st237-section-head h3,.st237-inventory-panel-head h3,.st237-mytools-section-head h3,.st237-tools-filter-head h3{margin:0;font-size:17px;font-weight:650;color:var(--st237-text)}
.st237-section-head p,.st237-inventory-panel-head p,.st237-mytools-section-head p,.st237-tools-filter-head p{margin:4px 0 0;color:var(--st237-muted);font-size:11.5px;line-height:1.4}
.st237-data-time{font-size:10.5px;color:#8a8590;white-space:nowrap}
.st237-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}
.st237-kpi-grid .stat,.st237-kpi-grid>*{border-radius:13px!important;border:1px solid var(--st237-line)!important;box-shadow:none!important;background:#fcfbfd!important;min-height:92px;padding:14px!important}
.st237-kpi-grid .stat strong,.st237-kpi-grid>*>strong{font-size:26px!important;font-weight:650!important;letter-spacing:-.03em}
.st237-recent-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}
.st237-recent-tools:empty::before{content:"Aucune consultation enregistrée pour ce compte.";display:block;grid-column:1/-1;padding:18px;border:1px dashed var(--st237-line-strong);border-radius:12px;color:var(--st237-muted);font-size:12px;text-align:center}
.st237-home-rail{display:grid;gap:12px}.st237-rail-card{padding:15px}
.st237-rail-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.st237-rail-head>div{display:flex;align-items:center;gap:8px}.st237-rail-head h3{font-size:13px;margin:0;font-weight:650}
.st237-rail-picto{width:28px;height:28px;border-radius:8px;background:#f0e8fb;color:var(--st237-purple)}.st237-rail-picto::before{width:15px;height:15px}.st237-rail-picto.attention{background:#fff0e3;color:#b46415}
.st237-text-link{display:inline-flex;align-items:center;gap:4px;border:0;background:transparent;color:var(--st237-purple);font-size:10.5px;font-weight:650;cursor:pointer;padding:4px}
.st237-rail-list{display:grid;gap:0;margin-top:10px}.st237-rail-list>*{padding:10px 0;border-top:1px solid #efedf2}.st237-rail-list>*:first-child{border-top:0}
.st237-home-footer{display:flex;align-items:center;gap:8px;color:#8b8691;font-size:10.5px;padding:0 4px}.st237-home-footer span{width:7px;height:7px;border-radius:50%;background:#8f6ccc}.st237-home-footer p{margin:0}

/* ---------- Tools ---------- */
.st237-tools-filter-panel{padding:16px}
.st237-tools-filter-head>div{display:flex;align-items:center;gap:10px}
.st237-tools-filter-picto{width:34px;height:34px;border-radius:10px;background:#f0e8fb;color:var(--st237-purple)}.st237-tools-filter-picto::before{width:18px;height:18px}
.st237-tools-filter-panel .toolbar{margin-top:14px!important;border:0!important;padding:0!important;background:transparent!important;border-radius:0!important;grid-template-columns:minmax(260px,1.5fr) repeat(3,minmax(150px,.8fr));gap:9px}
.st237-tools-filter-panel .toolbar>*{min-height:42px}
.st237-tools-search,.applicability-search{position:relative}.st237-field-picto{width:16px;height:16px;color:#7e7787;flex:0 0 16px}.st237-field-picto::before{width:16px;height:16px}
.tools-results-line{display:flex!important;justify-content:space-between!important;align-items:center!important;margin:0!important;padding:2px 2px 0!important}.results-meta{display:flex;align-items:center;gap:8px}.results-meta strong{font-size:13px}.results-meta span{font-size:11px;color:var(--st237-muted)}.results-actions{margin-left:auto;display:flex;align-items:center;gap:7px}
.st237-btn-picto{width:15px;height:15px;color:currentColor}.st237-btn-picto::before{width:15px;height:15px}

/* Stable “shelves” in tool cards: same vertical rhythm regardless of content. */
.cards{gap:13px!important;grid-template-columns:repeat(auto-fill,minmax(250px,1fr))!important}
.tool-card{display:grid!important;grid-template-rows:190px minmax(318px,auto)!important;min-height:508px!important;border:1px solid var(--st237-line)!important;border-radius:15px!important;background:#fff!important;box-shadow:none!important;overflow:hidden!important}
.tool-card:hover{transform:translateY(-1px)!important;border-color:#cfc5dc!important;box-shadow:var(--st237-shadow-hover)!important}
.tool-image{height:190px!important;min-height:190px!important;background:#faf9fb!important;border-bottom:1px solid #efedf2!important;padding:18px!important}
.tool-image img{width:100%;height:100%;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important}
.tool-body{display:grid!important;grid-template-rows:22px 54px 48px 48px 46px 48px;align-content:start;padding:14px!important;min-height:318px!important}
.tool-code{font-size:11px!important;color:#6e6875!important;font-weight:650!important;align-self:center}
.tool-card h4{font-size:15px!important;line-height:1.28!important;font-weight:600!important;margin:0!important;min-height:54px!important;max-height:54px!important;overflow:hidden!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;align-self:start}
.tool-card .meta,.tool-card .tool-meta,.tool-card .tool-tags{min-height:48px!important;max-height:48px!important;overflow:hidden!important;border-top:1px solid #f1eff3;padding-top:8px!important;align-items:flex-start!important}
.tool-card .physical-status,.tool-card .tool-status,.tool-card .availability-row{min-height:46px!important;display:flex!important;align-items:center!important;overflow:hidden}
.tool-card .resource-icons{min-height:48px!important;height:48px!important;margin:0!important;padding-top:9px!important;border-top:1px solid #f1eff3!important;align-items:center!important}
.resource-icon{border-radius:7px!important;box-shadow:none!important}

/* ---------- My tools ---------- */
.st237-mytools-shell{gap:14px}.st237-mytools-capabilities{margin-top:14px}
.st237-mytools-summary,.mytools-summary{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin:0!important}
.st237-mytools-summary>* ,.mytools-summary>*{min-height:88px;border:1px solid var(--st237-line)!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important}
.mytools-grid{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
.mytool-card{display:grid!important;grid-template-columns:116px minmax(0,1fr) auto!important;align-items:stretch!important;min-height:116px!important;border:1px solid var(--st237-line)!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important;overflow:hidden!important}
.mytool-card:hover{border-color:#cec5dc!important;box-shadow:var(--st237-shadow)!important}
.mytool-card-image{width:116px!important;height:116px!important;min-height:116px!important;display:grid!important;place-items:center!important;padding:12px!important;background:#faf9fb!important;border-right:1px solid #efedf2!important}
.mytool-card-image img{width:100%!important;height:100%!important;object-fit:contain!important}
.mytool-card-copy{display:grid!important;grid-template-columns:minmax(220px,1.4fr) repeat(3,minmax(145px,.75fr));gap:0!important;padding:0!important;min-width:0!important}
.mytool-shelf{min-height:116px!important;padding:14px!important;border-right:1px solid #efedf2!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
.mytool-identity h3{margin:3px 0 0!important;font-size:14px!important;line-height:1.25!important}.mytool-code{font-size:10px!important;color:#7a7480!important;font-weight:650!important}
.mytool-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;padding:14px!important;min-width:190px!important;background:#fcfbfd!important}

/* ---------- Inventory ---------- */
.st237-inventory-adminbar{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--st237-line);background:#fff;border-radius:14px;padding:10px 12px}
.st237-inventory-admin-actions{display:flex;align-items:center;gap:7px;margin-left:auto}
.st237-inventory-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.st237-inventory-kpis .v2-kpi,.st237-inventory-kpis>*{min-height:88px!important;border:1px solid var(--st237-line)!important;border-radius:14px!important;box-shadow:none!important;background:#fff!important;border-top-width:1px!important}
.st237-inventory-workspace{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:14px;align-items:start}
.st237-inventory-main-panel{padding:0;overflow:hidden}
.st237-inventory-panel-head{padding:15px 16px 0}.st237-inventory-toolbar{display:grid;grid-template-columns:minmax(260px,1.5fr) repeat(3,minmax(140px,.8fr));gap:8px;padding:14px 16px}
.st237-inventory-toolbar>*{min-height:42px}.st237-inventory-search{display:flex;align-items:center;gap:8px;border:1px solid var(--st237-line);padding:0 11px;border-radius:10px;background:#fff}.st237-inline-picto{width:16px;height:16px;color:#817987}.st237-inline-picto::before{width:16px;height:16px}
.st237-inventory-rail{display:grid;gap:12px}.st237-inventory-rail .st237-rail-card{padding:15px}
.v2-inventory-table-wrap{border:0!important;border-top:1px solid #efedf2!important;border-radius:0!important;box-shadow:none!important}
.v2-inventory-table th{background:#faf9fb!important;color:#716b77!important;font-size:10.5px!important;letter-spacing:.05em!important;border-bottom-color:#e8e5eb!important}
.v2-inventory-table td{border-bottom-color:#efedf2!important;font-size:12px!important}.v2-inventory-table tr:hover td{background:#fcfaff!important}
.v2-tool-link strong{color:#2d2931!important}.v2-tool-link span{color:#79727f!important}

/* ---------- Control & publication ---------- */
.st237-control-shell{gap:14px}
.st237-control-shell .control-kpis,.control-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
.control-kpi{border:1px solid var(--st237-line)!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important}
.control-filters,.control-filter-panel{border:1px solid var(--st237-line)!important;border-radius:15px!important;background:#fff!important;box-shadow:none!important;padding:14px!important}
.control-filter-grid{gap:8px!important}.filter-labelled span{color:#77717d!important;font-size:10px!important;font-weight:650!important;letter-spacing:.03em}
.control-filter-secondary{margin-top:9px!important;gap:8px!important}.control-search{display:flex!important;align-items:center!important;border:1px solid var(--st237-line)!important;border-radius:10px!important;background:#fff!important;padding:0 10px!important}.control-search input{border:0!important;box-shadow:none!important;background:transparent!important}
.control-bulk-bar{border:1px solid var(--st237-line)!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important;padding:10px 12px!important}
.control-table-wrap{border:1px solid var(--st237-line)!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important}

/* ---------- Analytics ---------- */
#analyticsView{display:none}
#analyticsView.active{display:block}
.analytics-header{
  position:relative;overflow:hidden;display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:20px!important;
  min-height:170px;padding:28px 32px!important;margin-bottom:14px!important;border-radius:20px!important;background:var(--st237-gradient)!important;color:#fff!important;
}
.analytics-header .eyebrow{color:rgba(255,255,255,.76)!important}.analytics-header h2{margin:6px 0 7px!important;color:#fff!important;font-size:36px!important;letter-spacing:-.03em!important;font-weight:650!important}.analytics-header p{margin:0!important;color:rgba(255,255,255,.82)!important;font-size:13px!important}
.analytics-header .analytics-actions{display:flex;gap:8px;position:relative;z-index:1}.analytics-header .analytics-actions .btn.secondary{background:rgba(255,255,255,.12)!important;border-color:rgba(255,255,255,.24)!important;color:#fff!important}.analytics-header .analytics-actions .btn.primary{background:#fff!important;border-color:#fff!important;color:var(--st237-purple)!important}
.analytics-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin:0 0 12px!important}.analytics-kpi{border:1px solid var(--st237-line)!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important;padding:15px!important}.analytics-kpi strong{font-size:27px!important;color:var(--st237-text)!important;font-weight:650!important}.analytics-kpi span{color:var(--st237-muted)!important}
.analytics-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important}.analytics-card{border:1px solid var(--st237-line)!important;border-radius:15px!important;background:#fff!important;box-shadow:none!important;padding:17px!important}.analytics-card .eyebrow{color:var(--st237-purple)!important}.analytics-card h3{font-weight:650!important;color:var(--st237-text)!important}.analytics-note{color:#817a87!important;font-size:10.5px!important;text-align:center!important;margin-top:10px!important}

/* ---------- Settings / administration ----------
   The settings layout is declared once in the consolidated section below. */
.backup-overview{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:14px 0!important}.backup-metric{border:1px solid #ece9ef!important;background:#fbfafc!important;border-radius:12px!important;padding:12px!important}.backup-metric span{color:#817a87!important}.backup-metric strong{color:#2b2730!important}.backup-actions{display:flex!important;gap:7px!important;flex-wrap:wrap!important}.backup-note{border-left:3px solid #aa8ad7!important;background:#faf6ff!important;color:#6d6476!important;border-radius:8px!important;padding:10px 12px!important}

/* ---------- Modal / details ---------- */
.modal{background:rgba(11,8,17,.66)!important;backdrop-filter:blur(3px)}
.modal-panel{border-radius:18px!important;border:1px solid rgba(255,255,255,.42)!important;box-shadow:0 30px 80px rgba(20,10,35,.28)!important}
.modal-close,.modal-close-main{background:#f2f0f4!important;color:#3d3941!important;box-shadow:none!important}
.detail-image{background:#faf9fb!important}.detail-content h2{font-weight:650!important;letter-spacing:-.02em}.info-box{border-color:var(--st237-line)!important;border-radius:11px!important;background:#fff!important}

/* ---------- Small semantic accents ---------- */
.eyebrow{color:var(--st237-purple)!important;font-weight:700!important;letter-spacing:.14em!important}
.active-filter-count{background:#f0e8fb!important;color:var(--st237-purple)!important;border-radius:999px!important;padding:5px 8px!important;font-size:10px!important;font-weight:650!important}

/* Desktop-only utility icon masks for CSS-var pictograms. */
@media (max-width:1180px){
  .nav-svg,.st237-action-picto,.st237-tools-filter-picto,.st237-field-picto,.st237-btn-picto,.st237-inline-picto,.st237-rail-picto,.st237-account-menu-icon,
  .st237-tools-capabilities i,.st237-mytools-capabilities i,.st237-inventory-hero-meta i{position:relative}
  .nav-svg::before,.st237-action-picto::before,.st237-tools-filter-picto::before,.st237-field-picto::before,.st237-btn-picto::before,.st237-inline-picto::before,.st237-rail-picto::before,.st237-account-menu-icon::before,
  .st237-tools-capabilities i::before,.st237-mytools-capabilities i::before,.st237-inventory-hero-meta i::before{
    content:"";display:block;width:100%;height:100%;background:currentColor;
    -webkit-mask-image:var(--picto);mask-image:var(--picto);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
    -webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain;
  }
  .st237-rg-logotype{max-width:86px;max-height:27px}
  .st237-brand-divider{width:1px;height:28px;background:#3a3940}
  .st237-global-search{background:#1a1a1f;border:1px solid #33313a;border-radius:11px;padding:8px 10px;color:#fff}
  .st237-global-search input{background:transparent!important;border:0!important;color:#fff!important;box-shadow:none!important}
  .st237-global-search kbd{display:none}
}

/* ---------- Remaining named controls ---------- */
.st237-home-search-picto{display:inline-grid;place-items:center;width:18px;height:18px;color:#77717e}
.st237-home-search-picto::before{content:"";display:block;width:18px;height:18px;background:currentColor;-webkit-mask:url('assets/brandhub-pictograms/search.svg') center/contain no-repeat;mask:url('assets/brandhub-pictograms/search.svg') center/contain no-repeat}
.st237-home-search-clear{border:0;background:transparent;color:#7b7481;font-size:18px;cursor:pointer;border-radius:8px}
.st237-home-search-submit{border:0;border-radius:9px;background:var(--st237-purple);color:#fff;font-weight:650;padding:9px 13px;cursor:pointer}
.st237-home-search-submit:hover{background:#5721b5}
.st237-reset-btn{display:inline-flex;align-items:center;gap:7px}
.st237-view-toggle{display:inline-grid;place-items:center}

/* ================================================================
   V2.3.7.0 final consolidation — live dashboard additions
   ================================================================ */
.st237-mask-picto,.st237-account-menu-icon,.nav-svg,.st237-btn-picto,.st237-field-picto,.st237-inline-picto,.st237-tools-filter-picto,.st237-rail-picto,.st237-action-picto{
  position:relative;display:inline-grid;place-items:center;color:inherit;flex:0 0 auto;
}
.st237-mask-picto::before,.st237-account-menu-icon::before,.nav-svg::before,.st237-btn-picto::before,.st237-field-picto::before,.st237-inline-picto::before,.st237-tools-filter-picto::before,.st237-rail-picto::before,.st237-action-picto::before{
  content:"";display:block;width:1em;height:1em;background:currentColor;-webkit-mask:var(--picto) center/contain no-repeat;mask:var(--picto) center/contain no-repeat;
}

.st237-recent-tool-card{display:grid;grid-template-columns:70px minmax(0,1fr) auto;align-items:center;gap:11px;width:100%;min-height:94px;padding:10px;border:1px solid var(--st237-line);border-radius:13px;background:#fcfbfd;color:var(--st237-text);text-align:left;box-shadow:none;cursor:pointer}
.st237-recent-tool-card:hover{border-color:#cbc2d8;background:#fff}
.st237-recent-tool-image{display:grid;place-items:center;width:70px;height:70px;border:1px solid #ece8f0;border-radius:10px;background:#fff;overflow:hidden}
.st237-recent-tool-image img{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;padding:5px}
.st237-recent-tool-copy{display:flex;min-width:0;flex-direction:column;gap:3px}.st237-recent-tool-copy strong{font-size:11px;color:var(--st237-purple);font-weight:750}.st237-recent-tool-copy b{font-size:12px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.st237-recent-tool-copy small{font-size:10px;color:var(--st237-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st237-recent-tool-meta{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.st237-recent-tool-meta em{font-style:normal;font-size:9px;font-weight:700;border-radius:999px;padding:4px 7px;background:#eee}.st237-recent-tool-meta em.in-stock{background:#eaf7ef;color:#277044}.st237-recent-tool-meta em.checked-out{background:#fff2e7;color:#a65310}.st237-recent-tool-meta em.not-available{background:#f6edef;color:#93404c}.st237-recent-tool-meta time{font-size:9px;color:#918b97}

.st237-inventory-rail{display:grid;gap:12px;align-content:start}.st237-inventory-rail-card{border:1px solid var(--st237-line);border-radius:15px;background:#fff;padding:14px}.st237-inventory-rail-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.st237-inventory-rail-head strong{font-size:13px;font-weight:700}
.st237-inventory-alerts{display:grid;gap:7px}.st237-inventory-alert{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:9px 10px;border:1px solid #ebe7ee;border-radius:10px;background:#faf9fb;color:#48434e;text-align:left}.st237-inventory-alert strong{font-size:15px}.st237-inventory-alert.warning strong{color:#9f6b00}.st237-inventory-alert.danger strong{color:#aa3444}.st237-inventory-alert.neutral strong{color:#625b68}
.st237-rail-movements{display:grid;gap:8px}.st237-rail-movement{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid #f0edf2}.st237-rail-movement:last-child{border-bottom:0}.st237-rail-movement-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#f0e8fb;color:var(--st237-purple);font-weight:700}.st237-rail-movement div{display:flex;min-width:0;flex-direction:column}.st237-rail-movement strong{font-size:11px}.st237-rail-movement small{font-size:9.5px;color:var(--st237-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.st237-rail-movement time{font-size:9px;color:#948e99;white-space:nowrap}

.st237-analytics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.st237-analytics-card.wide{grid-column:1/-1}
.analytics-kpis{grid-template-columns:repeat(6,minmax(0,1fr))!important}.analytics-kpi{display:flex;flex-direction:column;gap:3px}.analytics-kpi small{font-size:9px;color:#8d8792;line-height:1.3}
.st237-availability-summary{display:flex;align-items:baseline;gap:9px;margin-bottom:14px}.st237-availability-summary strong{font-size:34px;line-height:1;color:var(--st237-purple);font-weight:700}.st237-availability-summary span{font-size:11px;color:var(--st237-muted)}
.st237-stat-bars{display:grid;gap:9px}.st237-stat-bar{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:5px 10px;align-items:center}.st237-stat-bar>div{display:flex;justify-content:space-between;gap:10px;font-size:10.5px}.st237-stat-bar>div b{font-size:11px}.st237-stat-bar>i{grid-column:1;display:block;height:7px;border-radius:999px;background:#efedf2;overflow:hidden}.st237-stat-bar>i>em{display:block;height:100%;border-radius:inherit;background:#6d41bd}.st237-stat-bar.good>i>em{background:#4aa472}.st237-stat-bar.warn>i>em{background:#d28739}.st237-stat-bar.danger>i>em{background:#bc5360}.st237-stat-bar>small{grid-column:2;grid-row:2;font-size:9px;color:#89838e;text-align:right}
.st237-mini-chart{display:grid;grid-template-columns:repeat(8,minmax(22px,1fr));align-items:end;gap:6px;height:180px;padding-top:12px;border-bottom:1px solid #ece8ef}.st237-mini-col{height:100%;display:grid;grid-template-rows:minmax(0,1fr) 16px 14px;align-items:end;text-align:center}.st237-mini-col b{display:block;width:72%;max-width:34px;min-height:5px;margin:0 auto;border-radius:5px 5px 0 0;background:linear-gradient(180deg,#a768d4,#5c21b8)}.st237-mini-col span,.st237-mini-col small{font-size:8px;color:#8d8792}.st237-mini-col small{color:#5c5660}.st237-chart-note{margin:9px 0 0;font-size:10px;color:var(--st237-muted)}
.st237-family-bars{display:grid;gap:9px}.st237-family-bars>div{display:grid;grid-template-columns:150px minmax(0,1fr) 36px;align-items:center;gap:8px}.st237-family-bars span{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.st237-family-bars i{height:7px;background:#eeeaf1;border-radius:999px;overflow:hidden}.st237-family-bars em{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#4c16aa,#ab61d6)}.st237-family-bars b{font-size:10px;text-align:right}
.st237-attention-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.st237-attention-list>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px;border:1px solid #ece8ef;border-radius:11px;background:#fbfafc}.st237-attention-list span{font-size:10px;color:#615b66}.st237-attention-list strong{font-size:18px}.st237-attention-list .warning strong{color:#9a6900}.st237-attention-list .danger strong{color:#ab3c4d}.st237-attention-list .purple strong{color:var(--st237-purple)}

.st237-role-matrix-wrap{overflow:auto;border:1px solid var(--st237-line);border-radius:12px;margin-top:14px}.st237-role-matrix{width:100%;min-width:760px;border-collapse:collapse;background:#fff}.st237-role-matrix th,.st237-role-matrix td{padding:11px 12px;border-bottom:1px solid #eeeaf0;text-align:center;font-size:10.5px}.st237-role-matrix th:first-child,.st237-role-matrix td:first-child{text-align:left}.st237-role-matrix thead th{background:#faf8fb;color:#5b5560;font-weight:700}.st237-role-matrix tbody tr:last-child td{border-bottom:0}.st237-role-matrix td:not(:first-child){font-weight:700;color:var(--st237-purple)}

/* V2.3.7.1 — correctifs bloquants du lot 1 */
.analytics-header>div:first-child{display:block!important;position:relative;z-index:1}
.mytool-card{grid-template-columns:minmax(0,1fr) auto!important}
.mytool-card-main{display:grid!important;grid-template-columns:116px minmax(0,1fr)!important;min-width:0!important}
.mytool-shelf small{display:block;margin-bottom:5px;color:var(--st237-muted);font-size:10px}
.mytool-shelf strong{font-size:12px;line-height:1.35;overflow-wrap:anywhere}

/* ============================================================
   V2.3.7.2 — Lot 2 : finition de l'accueil / cockpit
   Objectif : supprimer les collisions de texte, renforcer la hiérarchie
   et rendre le rail opérationnel lisible sans modifier les données métier.
   ============================================================ */
#homeView .st237-home-dashboard{gap:15px}
#homeView .st237-home-hero{min-height:162px;padding:27px 32px}
#homeView .st237-primary-actions{gap:11px}
#homeView .st237-action-card{min-height:82px;padding:13px 14px}
#homeView .st237-action-picto{width:48px;height:48px;flex-basis:48px;border-radius:12px}
#homeView .st237-action-copy strong{font-size:14px}
#homeView .st237-action-copy small{font-size:11px}

#homeView .st237-home-layout{grid-template-columns:minmax(0,1fr) clamp(330px,18vw,360px);gap:15px}
#homeView .st237-home-main{gap:15px}
#homeView .st237-overview-section,#homeView .st237-recent-section{padding:17px 18px}
#homeView .st237-section-head{align-items:center}
#homeView .st237-section-head h3{font-size:16px}
#homeView .st237-section-head p{font-size:11px}

/* KPI : structure explicite. Les anciennes règles .stat ne peuvent plus tasser le contenu. */
#homeView .st237-kpi-grid{gap:9px;margin-top:13px}
#homeView .st237-kpi-grid>.home-kpi{
  appearance:none;display:grid!important;grid-template-columns:38px minmax(0,1fr) 14px!important;grid-template-rows:auto!important;
  align-items:center!important;gap:10px!important;min-width:0;min-height:98px!important;height:auto!important;
  margin:0!important;padding:13px 12px!important;border:1px solid var(--st237-line)!important;border-radius:13px!important;
  background:#fcfbfd!important;color:var(--st237-text)!important;text-align:left!important;box-shadow:none!important;cursor:pointer;
}
#homeView .st237-kpi-grid>.home-kpi:hover{transform:translateY(-1px);border-color:#cdc4d8!important;background:#fff!important;box-shadow:var(--st237-shadow-hover)!important}
#homeView .home-kpi-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#f0e8fb;color:var(--st237-purple)}
#homeView .home-kpi-icon::before{width:19px;height:19px}
#homeView .home-kpi.green .home-kpi-icon{background:#eaf7ef;color:#277044}
#homeView .home-kpi.orange .home-kpi-icon{background:#fff2e7;color:#a65310}
#homeView .home-kpi.red .home-kpi-icon{background:#f8ecef;color:#a13f4e}
#homeView .home-kpi.blue .home-kpi-icon{background:#edf3fb;color:#416c9f}
#homeView .home-kpi-copy{display:grid;grid-template-columns:auto 1fr;grid-template-areas:'label value' 'note note';align-items:baseline;column-gap:5px;row-gap:4px;min-width:0}
#homeView .home-kpi-copy small{grid-area:label;margin:0!important;font-size:10.5px!important;line-height:1.2!important;font-weight:600!important;color:#625c67!important;white-space:normal}
#homeView .home-kpi-copy strong{grid-area:value;margin:0!important;font-size:24px!important;line-height:1!important;font-weight:700!important;letter-spacing:-.035em!important;color:var(--st237-text)!important}
#homeView .home-kpi-copy em{grid-area:note;margin:0!important;font-size:9.5px!important;line-height:1.25!important;font-style:normal!important;color:var(--st237-muted)!important;white-space:normal}
#homeView .home-kpi>i{font-style:normal;font-size:14px;color:#aaa4b1;justify-self:end}

/* Rail : largeur et densité calibrées pour conserver des lignes lisibles. */
#homeView .st237-home-rail{gap:11px;min-width:0;align-content:start}
#homeView .st237-rail-card{padding:14px 15px;border-radius:14px;min-width:0}
#homeView .st237-rail-head h3{font-size:12.5px}
#homeView .st237-rail-list{margin-top:8px}
#homeView .home214-activity-row{grid-template-columns:7px minmax(0,1fr) 112px 14px;gap:8px;min-height:58px;padding:8px 2px}
#homeView .home214-activity-copy{min-width:0}
#homeView .home214-activity-copy b{font-size:11.5px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#homeView .home214-activity-copy small{display:block;margin-top:3px;font-size:9.5px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--st237-muted)}
#homeView .home214-activity-meta{min-width:0;text-align:right}
#homeView .home214-activity-meta strong{display:block;font-size:9.5px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#homeView .home214-activity-meta small{display:block;margin-top:3px;font-size:9px;line-height:1.15;color:var(--st237-muted);white-space:nowrap}
#homeView .home214-activity-row>i{font-size:13px}

/* Points d'attention : une vraie carte par alerte au lieu d'un bloc de texte compact. */
#homeView #homePriorityGrid{display:grid;gap:7px;margin-top:9px}
#homeView #homePriorityGrid>.home-priority-card{
  appearance:none;display:grid!important;grid-template-columns:30px minmax(0,1fr)!important;gap:9px!important;align-items:start!important;
  min-width:0;min-height:0!important;margin:0!important;padding:9px 10px!important;border:1px solid #ece8ef!important;border-radius:10px!important;
  background:#fcfbfd!important;color:var(--st237-text)!important;text-align:left!important;box-shadow:none!important;cursor:pointer;
}
#homeView #homePriorityGrid>.home-priority-card:hover{border-color:#d3cadf!important;background:#fff!important}
#homeView .home-priority-card .priority-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#f1edf5;color:#6f6578;font-size:13px;font-weight:700}
#homeView .home-priority-card.red .priority-icon{background:#f8ecef;color:#a13f4e}
#homeView .home-priority-card.yellow .priority-icon{background:#fff4df;color:#9a6900}
#homeView .home-priority-card.purple .priority-icon{background:#f0e8fb;color:var(--st237-purple)}
#homeView .home-priority-card.orange .priority-icon{background:#fff2e7;color:#a65310}
#homeView .home-priority-card>span:last-child{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:'value title' 'help help' 'link link';column-gap:5px;row-gap:2px;min-width:0}
#homeView .home-priority-card strong{grid-area:value;font-size:14px!important;line-height:1.15;font-weight:750!important;color:var(--st237-text)!important}
#homeView .home-priority-card b{grid-area:title;min-width:0;font-size:10.5px!important;line-height:1.2;font-weight:650!important;white-space:normal}
#homeView .home-priority-card small{grid-area:help;margin:0!important;font-size:9.2px!important;line-height:1.25;color:var(--st237-muted)!important;white-space:normal}
#homeView .home-priority-card em{grid-area:link;margin-top:2px;font-size:9px!important;line-height:1.2;font-style:normal;color:var(--st237-purple)!important;font-weight:650}

#homeView .st237-recent-tools:empty::before{padding:22px 18px;background:#fcfbfd}
#homeView .st237-home-footer{padding-top:1px}

/* ============================================================
   V2.3.7.4 — LOT 2 COMPLET : mise en page générale
   - largeur commune des vues
   - page Paramètres consolidée
   - pied de page sans recouvrement
   - bandeaux harmonisés
   - tokens communs (espacements/rayons/ombres/boutons)
   - lisibilité renforcée
   ============================================================ */
/* Une largeur de travail identique pour toutes les vues. */
.view{
  width:100%;
  max-width:var(--st237-content-max);
  margin-inline:auto;
  box-sizing:border-box;
}

/* Rythme et composants communs. */
.btn,.icon-btn,.access-header-btn,.access-primary,.access-secondary,.access-danger{
  min-height:var(--st237-control-h)!important;
  border-radius:var(--st237-radius-control)!important;
}
.icon-btn{min-width:var(--st237-control-h)!important}
input,select,textarea,.search,.control-search{
  border-radius:var(--st237-radius-control)!important;
}
.eyebrow{font-size:11px!important;line-height:1.25!important}

/* Bandeaux de page : même géométrie et même respiration. */
.st237-home-hero,.st237-tools-hero,.st237-mytools-hero,.st237-inventory-hero,.st237-control-hero,
.analytics-header,.settings-page-head{
  border-radius:var(--st237-radius-hero)!important;
  box-shadow:none!important;
}
.analytics-header,.settings-page-head{
  position:relative!important;overflow:hidden!important;
  min-height:150px!important;
  padding:26px 30px!important;
  background:var(--st237-gradient)!important;
  color:#fff!important;
  border:0!important;
}
.analytics-header .eyebrow,.settings-page-head .eyebrow{color:rgba(255,255,255,.78)!important}
.analytics-header h2,.settings-page-head h2{margin:6px 0 7px!important;color:#fff!important;font-size:34px!important;line-height:1.05!important;letter-spacing:-.03em!important;font-weight:650!important}
.analytics-header p,.settings-page-head p{margin:0!important;color:rgba(255,255,255,.84)!important;font-size:14px!important;line-height:1.45!important;max-width:840px}

/* Paramètres : structure stable, lisible et sans cartes tassées. */
#settingsView{max-width:var(--st237-content-max)!important}
#settingsView .settings-page-head{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;margin:0 0 var(--st237-page-gap)!important}
#settingsView .settings-admin-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:var(--st237-page-gap)!important;
  margin-bottom:var(--st237-page-gap)!important;
}
#settingsView .settings-admin-card{
  display:grid!important;
  grid-template-columns:50px minmax(0,1fr)!important;
  grid-template-areas:"icon content" "actions actions"!important;
  align-items:start!important;
  gap:12px 14px!important;
  min-height:164px!important;
  padding:18px!important;
  border:1px solid var(--st237-line)!important;background:#fff!important;
  border-radius:var(--st237-radius-card)!important;
  box-shadow:var(--st237-shadow-card)!important;
}
#settingsView .settings-admin-icon{grid-area:icon;width:48px!important;height:48px!important;border-radius:13px!important;background:#f0e8fb!important;color:var(--st237-purple)!important;display:grid!important;place-items:center!important}
#settingsView .settings-admin-icon svg{width:22px!important;height:22px!important;stroke:currentColor!important;fill:none!important;stroke-width:1.7!important}
#settingsView .settings-admin-content{grid-area:content;min-width:0}
#settingsView .settings-admin-content .eyebrow,#settingsView .settings-card .eyebrow{color:var(--st237-purple)!important}
#settingsView .settings-admin-content h3{font-size:17px!important;line-height:1.2!important;margin:3px 0 6px!important}
#settingsView .settings-admin-content p{margin:0!important;color:var(--st237-muted)!important;font-size:13.5px!important;line-height:1.48!important}
#settingsView .settings-admin-actions{
  grid-area:actions;display:flex!important;justify-content:flex-start!important;align-items:center!important;flex-wrap:wrap!important;
  gap:8px!important;padding-top:3px!important;
}
#settingsView .settings-admin-actions .btn{width:auto!important;max-width:100%}
#settingsView .settings-card{
  width:100%!important;max-width:none!important;margin-top:var(--st237-page-gap)!important;
  padding:20px!important;
  border:1px solid var(--st237-line)!important;background:#fff!important;
  border-radius:var(--st237-radius-card)!important;
  box-shadow:var(--st237-shadow-card)!important;
}
#settingsView .settings-card h2{font-size:20px!important;line-height:1.2!important;margin:5px 0 8px!important;font-weight:650!important}
#settingsView .settings-card>p{color:var(--st237-muted)!important;font-size:14px!important;line-height:1.55!important;margin-top:0!important}
#settingsView .backup-overview{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin:16px 0!important}
#settingsView .backup-metric{min-width:0!important;padding:14px!important;border-radius:12px!important}
#settingsView .backup-metric span{font-size:12px!important;line-height:1.3!important}
#settingsView .backup-metric strong{font-size:14.5px!important;line-height:1.3!important;overflow-wrap:anywhere}
#settingsView .backup-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
#settingsView .backup-note{font-size:12.5px!important;line-height:1.5!important}
#settingsView .setting-row{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:16px!important;align-items:center!important;
}
#settingsView .setting-row strong{font-size:15px!important;line-height:1.3!important}
#settingsView .setting-row span{font-size:13px!important;line-height:1.45!important}
#settingsView .st237-role-matrix-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
#settingsView .st237-role-matrix{min-width:720px}

/* Texte secondaire : ne plus descendre sous une taille confortable dans les vues métier. */
.st237-section-head p,.st237-inventory-panel-head p,.st237-mytools-section-head p,.st237-tools-filter-head p,
.st237-action-copy small,.analytics-note{font-size:12.5px!important}
.st237-data-time{font-size:11.5px!important}

/* Le statut service/version ne doit plus masquer le contenu en bas de page. */
@media (min-width:1181px){
  .view{padding-bottom:92px!important}
  .sidebar-connectivity,.sidebar>.version{bottom:12px!important}
  .st237-home-footer{padding-bottom:4px!important}
}

/* ==========================================================
   V2.3.7.8 — LOT 3 : CATALOGUE, FICHE ET MES OUTILS
   ========================================================== */

/* Filtres : deux lignes lisibles au lieu d'une rangée compressée. */
#toolsView .st237-tools-filter-panel .toolbar{
  display:grid!important;
  grid-template-columns:repeat(12,minmax(0,1fr))!important;
  gap:9px!important;
}
#toolsView .st237-tools-search{grid-column:span 3!important}
#toolsView #familyFilter{grid-column:span 2!important}
#toolsView .applicability-search{grid-column:span 3!important}
#toolsView #availabilityFilter,#toolsView #locationFilter{grid-column:span 2!important}
#toolsView #statusFilter,#toolsView #commercialFilter,#toolsView #qualityFilter,#toolsView #languageFilter{grid-column:span 3!important}

/* Catalogue : quatre colonnes maximum, avec des cartes réellement fluides. */
#toolsView .cards{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;align-items:stretch!important}
#toolsView .tool-card{
  display:grid!important;grid-template-rows:190px minmax(0,1fr)!important;
  min-width:0!important;min-height:0!important;height:100%!important;
  overflow:hidden!important;border-radius:16px!important;
}
#toolsView .tool-image{height:190px!important;min-height:190px!important;padding:14px 18px!important;overflow:hidden!important}
#toolsView .tool-image img{display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:142px!important;object-fit:contain!important}
#toolsView .tool-body{display:flex!important;flex-direction:column!important;gap:0!important;min-width:0!important;min-height:0!important;padding:0 15px 14px!important}

/* Identité : la désignation occupe sa propre zone et peut revenir à la ligne. */
#toolsView .tool-identity-zone{display:block!important;min-width:0!important;min-height:94px!important;height:auto!important;padding:14px 0 12px!important;border-bottom:1px solid #efedf2!important;overflow:visible!important}
#toolsView .tool-reference{display:block!important;width:auto!important;max-width:100%!important;min-height:18px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:11.5px!important;line-height:1.3!important}
#toolsView .tool-card h4{display:block!important;min-height:0!important;max-height:none!important;margin:7px 0 0!important;overflow:visible!important;font-size:15px!important;line-height:1.35!important;font-weight:650!important;overflow-wrap:anywhere!important;hyphens:auto!important}

/* Publication et commercialisation : une zone indépendante, sans positionnement hérité. */
#toolsView .card-status-zone{position:static!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;min-height:56px!important;height:auto!important;padding:10px 0!important;border-top:0!important;border-bottom:1px solid #efedf2!important;overflow:visible!important}
#toolsView .card-status-zone .commercialization-line,#toolsView .card-status-zone .meta.status-only{position:static!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;width:auto!important;min-width:0!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important;overflow:visible!important}
#toolsView .card-status-zone .commercialization-badge,#toolsView .card-status-zone .badge{position:static!important;display:inline-flex!important;align-items:center!important;max-width:100%!important;min-height:26px!important;padding:5px 9px!important;border-radius:999px!important;font-size:10.5px!important;line-height:1.2!important;white-space:normal!important;overflow-wrap:anywhere!important}

/* Disponibilité : statut, emplacement et emprunteur restent séparés. */
#toolsView .card-physical-zone{display:block!important;min-height:0!important;height:auto!important;padding:10px 0!important;border-top:0!important;border-bottom:1px solid #efedf2!important;overflow:visible!important}
#toolsView .physical-card-line{position:static!important;display:grid!important;grid-template-columns:1fr!important;align-content:start!important;gap:7px!important;width:100%!important;min-width:0!important;min-height:88px!important;height:auto!important;margin:0!important;padding:9px 10px!important;border-radius:10px!important;overflow:visible!important;white-space:normal!important}
#toolsView .physical-card-status{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important}
#toolsView .physical-card-status strong{min-width:0!important;font-size:12px!important;line-height:1.25!important;white-space:normal!important}
#toolsView .physical-card-location,#toolsView .physical-card-borrower{display:grid!important;grid-template-columns:76px minmax(0,1fr)!important;align-items:start!important;gap:7px!important;min-width:0!important;font-size:11px!important;line-height:1.3!important}
#toolsView .physical-card-location-label,#toolsView .physical-card-borrower>span{color:#7a7480!important;font-size:9.5px!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.025em!important}
#toolsView .physical-card-location>span:last-child,#toolsView .physical-card-borrower strong{min-width:0!important;overflow-wrap:anywhere!important;font-weight:600!important}

/* Ressources toujours en bas de carte, sans hauteur artificielle. */
#toolsView .tool-card .resource-icons{display:flex!important;align-items:center!important;gap:8px!important;min-height:50px!important;height:auto!important;margin-top:auto!important;padding-top:10px!important;border-top:0!important}
#toolsView .resource-icon{width:34px!important;min-width:34px!important;height:34px!important;flex:0 0 34px!important;border-radius:9px!important}

/* Fiche outil : le dernier contenu reste au-dessus des indicateurs fixes. */
#detailView{padding-bottom:96px!important}

/* Mes outils : structure en ligne stable sur desktop. */
#mytoolsView .mytool-card{min-width:0!important}
#mytoolsView .mytool-card-main{min-width:0!important}
#mytoolsView .mytool-card-copy{min-width:0!important}
#mytoolsView .mytool-actions{flex-wrap:wrap!important}

/* ============================================================
   V2.3.7.9 — LOT 4 : INVENTAIRE ET MOUVEMENTS
   ============================================================ */
#inventoryView .st237-inventory-kpis{grid-template-columns:repeat(6,minmax(0,1fr))!important}
#inventoryView .v2-kpi{position:relative!important;display:flex!important;flex-direction:column!important;justify-content:center!important;min-width:0!important;padding:14px!important;transition:border-color .16s ease,background-color .16s ease!important}
#inventoryView .v2-kpi strong{font-size:27px!important;line-height:1!important;margin:8px 0 7px!important}
#inventoryView .v2-kpi span{font-size:12px!important;line-height:1.3!important;overflow-wrap:anywhere!important}
#inventoryView .v2-kpi.active{border-color:#6b31c7!important;background:#fbf8ff!important;box-shadow:inset 0 0 0 1px #6b31c7!important}
#inventoryView .v2-kpi.active::after{content:"";position:absolute;right:12px;top:12px;width:7px;height:7px;border-radius:50%;background:#5d21bd}

#inventoryView .st237-inventory-adminbar{min-height:64px!important}
#inventoryView .v2-user-context{min-width:0!important;box-shadow:none!important}
#inventoryView .v2-user-context>div{display:grid!important;grid-template-columns:auto minmax(210px,320px)!important;align-items:center!important;gap:3px 10px!important}
#inventoryView .v2-user-context label{grid-column:1!important;grid-row:1!important}
#inventoryView .v2-user-context select{grid-column:2!important;grid-row:1/3!important;min-width:0!important;width:100%!important}
#inventoryView .v2-user-context small{grid-column:1!important;grid-row:2!important;margin:0!important}

#inventoryView .st237-inventory-toolbar{grid-template-columns:minmax(300px,1.65fr) repeat(3,minmax(145px,.75fr))!important}
#inventoryView .st237-inventory-toolbar>*{width:100%!important;min-width:0!important}
#inventoryView .st237-inventory-search input{min-width:0!important;width:100%!important}
#inventoryView .v2-results-line{margin:0!important;padding:10px 16px!important;border-top:1px solid #efedf2!important}
#inventoryView .v2-results-line strong{font-size:13px!important}
#inventoryView .v2-results-line span{font-size:11px!important;color:var(--st237-muted)!important}

#inventoryView .v2-inventory-table{width:100%!important;min-width:1180px!important;table-layout:fixed!important}
#inventoryView .v2-inventory-table th,#inventoryView .v2-inventory-table td{padding:11px 10px!important;vertical-align:middle!important;overflow-wrap:anywhere!important}
#inventoryView .v2-inventory-table th{position:sticky!important;top:0!important;z-index:2!important;text-transform:none!important}
#inventoryView .v2-inventory-table th:nth-child(1){width:20%!important}
#inventoryView .v2-inventory-table th:nth-child(2){width:13%!important}
#inventoryView .v2-inventory-table th:nth-child(3){width:17%!important}
#inventoryView .v2-inventory-table th:nth-child(4){width:10%!important}
#inventoryView .v2-inventory-table th:nth-child(5){width:10%!important}
#inventoryView .v2-inventory-table th:nth-child(6){width:11%!important}
#inventoryView .v2-inventory-table th:nth-child(7){width:8%!important}
#inventoryView .v2-inventory-table th:nth-child(8){width:11%!important}
#inventoryView .v2-tool-link{max-width:100%!important}
#inventoryView .v2-tool-link span{white-space:normal!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
#inventoryView .v2-row-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;min-width:0!important;gap:6px!important}
#inventoryView .v2-row-actions .btn{width:100%!important;min-height:34px!important;padding:7px 8px!important;font-size:11px!important}
#inventoryView .st237-inventory-alert{cursor:pointer!important}
#inventoryView .st237-inventory-alert:hover{border-color:#cfc5d8!important;background:#fff!important}
