:root{
  --accent:#a78bfa;        /* violet */
  --bg:#0a0812;            /* fond principal */
  --bg2:#141021;           /* fond secondaire */
  --panel:#1a142a;         /* panneaux/cartes */
  --line:#2e2150;          /* bordures 1 */
  --line2:#3c2d66;         /* bordures 2 / séparateurs */
  --text:#f5f1e8;          /* texte principal (beige cassé) */
  --muted:#c7b8d6;         /* texte atténué */
}

/* ===== Reset de base ===== */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial;
  background:var(--bg);
  color:var(--text);
}
a{ color:var(--accent); text-decoration:none; }
img{ max-width:100%; display:block; }

/* ===== Shell / Layout ===== */
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 14px; border-bottom:1px solid var(--line); background:var(--bg2);
  position:relative; z-index:10;
}
.brand{ font-weight:800; letter-spacing:.5px; }
.topnav a{ margin-left:12px; }
.envbadge{ opacity:.8; font-size:12px; }

.layout{
  display:grid; grid-template-columns:260px 1fr;
  min-height:calc(100vh - 48px);
}
.sidebar{
  padding:16px; border-right:1px solid var(--line); background:var(--bg2);
  position:relative; z-index:9;
}
.content{ padding:16px; position:relative; z-index:1; }

/* ===== Module list (gauche) ===== */
.module-list{ list-style:none; padding:0; margin:8px 0 0 0; }
.module-list li{ margin:4px 0; }
.module-link{
  display:flex; align-items:center; gap:10px; padding:10px 12px;
  border-radius:12px; border:1px solid var(--line); background:var(--panel); color:var(--text);
  transition: transform .12s ease, background .2s, border-color .2s;
}
.module-link:hover{ transform: translateX(2px); background:var(--bg2); border-color:var(--line2); }
.module-link .mi{ width:20px; height:20px; filter:invert(93%) sepia(9%) saturate(240%) hue-rotate(330deg) brightness(103%) contrast(92%); }

/* ===== Module hero ===== */
.module-hero{
  position:fixed; inset:0; display:flex; align-items:center; justify-content:center;
  pointer-events:none; z-index:8;
}
.module-hero.hidden{ display:none; }
.module-hero .bubble{
  width:200px; height:200px;
  background: radial-gradient(ellipse at top left, rgba(167,139,250,.25), rgba(124,58,237,.15));
  border:1px solid rgba(167,139,250,.4);
  border-radius:24px; display:flex; align-items:center; justify-content:center;
  opacity:0; transform: scale(.85) translateY(6px);
  transition: all .22s ease; box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.module-hero.show .bubble{ opacity:1; transform: scale(1) translateY(0); }
.module-hero img{ width:90px; height:90px; filter: invert(90%); }

/* ===== Tabs / Panels ===== */
.tabs{
  display:flex; gap:8px; margin-bottom:12px;
  position:relative; z-index:6;
}
.tab{
  background:var(--panel); border:1px solid var(--line); color:var(--text);
  padding:8px 12px; border-radius:12px; cursor:pointer; user-select:none;
}
.tab:hover{ border-color:#5b3da1; }
.tab.active{ border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.tab[disabled]{ opacity:.5; cursor:not-allowed; }

/* États des panneaux */
.tab-panel{
  display:none;
  opacity:0; transform: translateY(8px); pointer-events:none;
}
.tab-panel.active{
  display:block; opacity:1; transform:none; pointer-events:auto;
}
.tab-panel.entering{ opacity:0; transform: translateY(8px); }
.tab-panel.leaving{ opacity:0; transform: translateY(-8px); }

/* ===== Toolbar / recherche ===== */
.toolbar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; gap:12px;}
.search input{
  width:340px; padding:8px 10px; border-radius:10px;
  border:1px solid var(--line); background:var(--panel); color:var(--text);
}

/* ===== Table / liste produits ===== */
.table-wrap{
  overflow:auto; border:1px solid var(--line); border-radius:12px; position:relative;
}
.table{ width:100%; border-collapse: collapse; }
.table th, .table td{ padding:10px 12px; border-bottom:1px solid var(--line2); }
.table thead th{
  position:sticky; top:0; background:var(--bg2); cursor:pointer; z-index:5;
}
#productsTbody tr{ cursor:pointer; }
#productsTbody tr:hover{ background:#23183d; }
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; }
.right{ text-align:right; }
.muted{ color:var(--muted); }
.copyable{ cursor:copy; }
.chip{
  display:inline-block; padding:2px 8px; border-radius:999px;
  background:#2a1f44; border:1px solid var(--line); margin:0 6px 6px 0; font-size:12px;
}

/* ===== Blocs / formulaires ===== */
.block{
  border:1px solid var(--line); border-radius:12px; padding:12px; margin-bottom:12px; background:var(--panel);
}
.block-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.cols{ display:grid; grid-template-columns: 1fr 280px; gap:12px; }
.cols.two{ grid-template-columns: 1fr 1fr; gap:12px; }

.field{ margin-bottom:10px; }
.field label{ display:block; font-size:13px; color:var(--muted); margin-bottom:6px; }
.field input, .field textarea, .field select{
  width:100%; padding:10px 12px; border-radius:10px;
  border:1px solid var(--line); background:#221833; color:var(--text);
}
.field textarea{ resize:vertical; }

/* ===== Lignes info (cadres sombres) ===== */
.info-row{
  display:grid; grid-template-columns:220px 1fr;
  gap:.75rem; align-items:center; margin:.5rem 0;
  background:rgba(255,255,255,.04); border:1px solid var(--line); border-radius:10px; padding:.6rem .75rem;
}
.info-row .label{ font-weight:800; color:var(--text); }
.info-row .value{ font-style:italic; color:var(--text); }

/* ===== QR & Galerie basiques ===== */
.qr img{ background:#fff; padding:6px; border-radius:8px; max-width:100%; }

/* ===== QUICK CARD (fiche détail uniquement) ===== */
.detail-bar { position: relative; z-index: 3; }
#tab-detail { position: relative; z-index:2; }
.quick-card{
  position: absolute;
  top: 62px;
  right: 18px;
  width:420px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .8rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: .5rem;
  z-index: 4; /* assez haut pour le détail, plus bas que la table en liste */
}
@media (max-width: 1100px){
  .quick-card{ position: static; width:auto; margin-bottom: .75rem; }
}
.quick-card img{ display:block; width:100%; height:auto; }
.qc-top{ display:flex; align-items:center; justify-content:flex-start; gap:.45rem; }
.qc-score{ font-weight:800; font-size:1.1rem; }
.qc-trend{ opacity:.9; }
.qc-flame{ width:18px; height:18px; display:flex; align-items:center; justify-content:center; }

/* Anneau SVG */
.ring{ width: 130px; height:130px; margin:0 auto; display:block; }
.ring .ring-bg{ fill: none; stroke: rgba(255,255,255,.12); stroke-width: 10; }
.ring .ring-val{ fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; transform-origin: 50% 50%; transform: rotate(-90deg); stroke-dasharray: 264; stroke-dashoffset: 264; }
.ring .ring-letter{ fill: var(--text); font: 700 26px ui-sans-serif, system-ui; }

/* Couleurs d'; $map[(& $u 0x00E2,0x20AC,0x02DC)]=‘anneau selon score */
.ring.ok     { --accent: #3adb6a; }
.ring.mid    { --accent: #f59e0b; }
.ring.low    { --accent: #ef4444; }

/* Bas de carte */
.qc-bottom{ display:grid; grid-template-columns: 1fr auto; align-items:center; gap:.5rem; }
.qc-eye{ opacity:.85; font-size:1.15rem; }
.qc-stock{ font-weight:700; font-size:1.05rem; }
.qc-stock .box{ margin-right:.25rem; }
.qc-qr img{
  width:180px; height:180px; object-fit: contain;
  border-radius:8px; background:#fff; padding:6px; border:1px solid var(--line);
}

/* Laisse de la place à droite du bloc identité pour quick-card */
.identity-block{ padding-right:450px; }
@media (max-width:1100px){ .identity-block{ padding-right:1rem; } }

/* Toggle switch (Visu Web) */
.switch{ display:inline-flex; align-items:center; gap:.45rem; cursor:pointer; user-select:none; }
.switch input{ appearance:none; width:38px; height:22px; border-radius:999px; background:var(--line2); position:relative; outline:none; border:1px solid var(--line); }
.switch input::after{ content:""; position:absolute; top:2px; left:2px; width:18px; height:18px; border-radius:50%; background:#fff; transition: transform .18s ease; }
.switch input:checked{ background:var(--accent); border-color:var(--accent); }
.switch input:checked::after{ transform: translateX(16px); }
.switch span{ color:var(--muted); }

/* Upload row */
.upload-row{ display:flex; gap:.5rem; align-items:center; margin-top:.5rem; }

/* Focus visibles */
.btn:focus-visible, .input:focus-visible, select.input:focus-visible, textarea.input:focus-visible{
  outline:2px solid var(--accent); outline-offset:2px;
}

/* ===== Détail produit : grilles ===== */
.summary-cards{
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: .75rem; margin: .75rem 0 1rem;
}
.summary-cards .card{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: .75rem; padding: .6rem .8rem;
}
.summary-cards .card .label{ font-size: .75rem; opacity: .7; }
.summary-cards .card .value{ font-weight: 600; margin-top: .2rem; }

.detail-grid{ display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; }

.form-grid{ display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem 1rem; }
.field{ display:flex; flex-direction:column; gap:.35rem; }
.field input, .field textarea, .field select{ width: 100%; }

/* ===== Galerie ===== */
/* ===== Galerie (remplacer toutes les définitions existantes) ===== */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr)); /* jamais < 180px */
  gap:.6rem;
}

.gallery-grid .thumb{
  position:relative;
  height:100px;             /* ajuste 180/200/240… */
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  background:var(--bg2);
}

.gallery-grid .thumb img,
.gallery-grid .thumb video{
  width:100%;
  height:100%;
  object-fit:contain;        /* cover si tu veux recadrer */
  display:block;
}

.gallery-grid .thumb.empty{
  background:#ffffff08;
  border:1px dashed #ffffff22;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* ===== GED ===== */
.docs-list .doc-item{
  padding:.35rem .5rem; border:1px solid var(--line); border-radius:8px;
  margin-bottom:.4rem; background:var(--panel);
}

/* ===== Listes ===== */
.list .row{ padding:.3rem 0; border-bottom:1px dashed var(--line2); }
.list.slim{ padding-left: 1rem; }
.list.slim .row{ padding:.2rem 0; }

/* ===== Actions / boutons ===== */
.actions.spread{ display:flex; justify-content: space-between; }
.tab.danger{ background:#8c1d1d; border-color:#8c1d1d; }

.btn{
  padding:.5rem .9rem; border-radius:.6rem;
  border:1px solid var(--line); background:var(--panel); color:var(--text);
  cursor:pointer;
}
.btn.primary{ background:var(--accent); color:#000; border-color:var(--accent); }
.btn.ghost{ background:transparent; border-color:var(--line); }
.btn.danger{ background:#c83b3b; color:#fff; border-color:#c83b3b; }
.btn:disabled{ opacity:.55; cursor:not-allowed; }

/* ===== Inputs génériques ===== */
.input{
  width:100%; padding:.55rem .7rem; border:1px solid var(--line);
  border-radius:.5rem; background:var(--panel); color:var(--text);
}
.row-inline{ display:flex; gap:.5rem; align-items:center; }
.right{ justify-content:flex-end; }

/* ===== Toolbars ===== */
.toolbar.sticky{ position:sticky; top:0; background:var(--bg2); z-index:7; padding:.5rem 0; border-bottom:1px solid var(--line); }
.toolbar.footer{ margin-top:1.25rem; border-top:1px solid var(--line); padding-top:.75rem; }

/* ===== Cartes génériques ===== */
.card{
  background:var(--panel); border:1px solid var(--line);
  border-radius:14px; padding:1rem; margin-bottom:1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.card.compact-summary{ display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; align-items:center; }
.card-header{ display:flex; justify-content:space-between; align-items:center; margin-bottom:.6rem; }
.card-title{ font-weight:700; }
.card-actions{ display:flex; gap:.5rem; }

/* ===== Champs alignés ===== */
.field-row{ display:grid; grid-template-columns:180px 1fr; gap:1rem; align-items:center; margin:.4rem 0; }
.field-with-actions{ display:flex; gap:.5rem; align-items:center; }
.icon-btn{ border:none; background:transparent; cursor:pointer; font-size:1rem; color:var(--text); }

/* ===== QR (alternative) ===== */
.qr-side{ display:flex; align-items:center; justify-content:center; }
.qr-side img{
  width:140px; height:140px; object-fit:contain;
  border:1px solid var(--line); border-radius:8px; background:#fff;
}

/* ===== Tags ===== */
.tags-wrap{ display:flex; flex-wrap:wrap; gap:.5rem; }
.tag{
  background:#2a1f44; border:1px solid var(--line); padding:.25rem .5rem;
  border-radius:999px; display:inline-flex; gap:.4rem; align-items:center; color:var(--text);
}
.tag .x{ margin-left:.25rem; }

/* ===== Media / docs (compo 2 colonnes) ===== */
.media-grid{ display:grid; grid-template-columns:1fr 1fr; gap:1rem; }

/* ===== Modales ===== */
.modal{
  position:fixed; inset:0; background:rgba(0,0,0,.55);
  display:flex; align-items:center; justify-content:center; z-index:50;
}
.modal.hidden{ display:none; }
.modal .modal-inner{
  width:min(680px, 92vw); background:var(--bg2); border:1px solid var(--line);
  border-radius:12px; padding:14px; color:var(--text);
}
.modal .modal-inner.wide{ width:min(900px, 94vw); }
.preview-grid{ display:grid; grid-template-columns: 1fr 240px; gap:12px; }
.preview-card{ border:1px solid var(--line); border-radius:12px; padding:12px; background:var(--panel); }
.pv-gallery{ display:grid; grid-template-columns: repeat(3,1fr); gap:6px; }
.pv-gallery img{ width:100%; height:120px; object-fit:cover; border-radius:6px; }
.pv-price{ font-size:20px; font-weight:700; margin-bottom:8px; }

/* ===== Animations ===== */
@keyframes fadeIn{ from {opacity:0} to {opacity:1} }
@keyframes slideInY{ from{ transform: translateY(12px); opacity:0; } to{ transform:none; opacity:1; } }
.anim-fade{ animation:.25s fadeIn ease-out; }
.anim-slide.in{ animation:.25s slideInY ease-out; }

/* ===== Module header ===== */
.module-header{ text-align:center; padding:18px 12px 8px; }
.module-titleline{ display:inline-flex; align-items:center; gap:10px; }
.module-icon{ width:28px; height:28px; filter:grayscale(0.1); opacity:.9; }
.module-title{ margin:0; font-size:28px; line-height:1.2; font-weight:800; letter-spacing:.3px; }
/* ===== Tabbar ===== */
.tabbar{ display:flex; flex-wrap:wrap; gap:8px; background:var(--bg2); border:1px solid var(--line); border-radius:12px; padding:6px 8px; margin:10px auto 8px; justify-content:center; }
.tabbar-item{ padding:8px 12px; border-radius:10px; text-decoration:none; color:var(--text); border:1px solid transparent; }
.tabbar-item.active{ background:var(--bg); border-color:var(--line); font-weight:600; }
.tabbar-item[aria-disabled=true]{ opacity:.5; pointer-events:none; }
/* ===== QuickSearch ===== */
.quicksearch-bar{ display:flex; align-items:center; gap:12px; justify-content:center; margin-top:8px; }
.quicksearch-input{ min-width:380px; max-width:640px; width:50%; padding:10px 12px; border-radius:10px; border:1px solid var(--line); background:var(--bg); color:var(--text); }
.qs-inline{ font-size:14px; opacity:.9; }
.qs-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap:12px; margin-top:10px; }
.qs-card{ border:1px solid var(--line); border-radius:12px; padding:10px; background:var(--bg2); }
.qs-card .title{ font-weight:700; }
.qs-card .subtitle{ opacity:.85; font-size:13px; }
.qs-card .meta{ margin-top:6px; font-size:12px; opacity:.8; display:flex; gap:8px; flex-wrap:wrap; }
.qs-card .tag{ border:1px solid var(--line); border-radius:999px; padding:2px 8px; font-size:11px; }

/* ===== Module header (one-line) ===== */
.module-header{ padding:12px 12px 8px; }
.module-topline{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.module-left{ display:flex; align-items:center; gap:10px; }
.module-right{ display:flex; align-items:center; gap:10px; margin-left:auto; }
.module-icon{ width:28px; height:28px; filter: invert(1) brightness(1.2); opacity:1; } /* white icon */
.module-title{ margin:0; font-size:28px; line-height:1.2; font-weight:800; letter-spacing:.3px; }
.quicksearch-bar{ display:flex; align-items:center; gap:12px; }
.quicksearch-input{ min-width:320px; max-width:520px; width:36ch; padding:10px 12px; border-radius:10px; border:1px solid var(--line); background:var(--bg); color:var(--text); }
.qs-inline{ font-size:14px; opacity:.9; }
/* Tabbar below */
.tabbar{ display:flex; flex-wrap:wrap; gap:8px; background:var(--bg2); border:1px solid var(--line); border-radius:12px; padding:6px 8px; margin:10px auto 8px; justify-content:center; }
.tabbar-item{ padding:8px 12px; border-radius:10px; text-decoration:none; color:var(--text); border:1px solid transparent; }
.tabbar-item.active{ background:var(--bg); border-color:var(--line); font-weight:600; }
.tabbar-item[aria-disabled=true]{ opacity:.5; pointer-events:none; }
/* ===== AURA REPAIRS – TAB PANELS (correction) ===== */
.repairs-panel {
  display: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}

.repairs-panel.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
/* ================================
   AURA REPAIRS – SEARCH RESULTS UI
   ================================ */

/* Conteneur scrollable */
#rua-results-list {
    max-height: 340px;
    overflow-y: auto;
    margin-top: 8px;
    padding-right: 6px;
    border: 1px solid var(--line2);
    border-radius: 10px;
    background: var(--panel);
}

/* Style du scrollbar */
#rua-results-list::-webkit-scrollbar {
    width: 8px;
}
#rua-results-list::-webkit-scrollbar-track {
    background: var(--bg2);
    border-radius: 8px;
}
#rua-results-list::-webkit-scrollbar-thumb {
    background: var(--line2);
    border-radius: 8px;
}
#rua-results-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Élément individuel */
.rua-result-item {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line2);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: background .15s ease, transform .15s ease;
}

/* Espacement final */
.rua-result-item:last-child {
    border-bottom: none;
}

/* Hover highlight */
.rua-result-item:hover {
    background: #241a38;
    transform: translateX(3px);
    border-left: 2px solid var(--accent);
}

/* Ligne principale (RUA + modèle) */
.rua-result-main {
    font-weight: 600;
    letter-spacing: .3px;
}

/* Ligne secondaire (marque + série) */
.rua-result-sub {
    font-size: 13px;
    color: var(--muted);
}

/* ===== Repairs dashboard layout ===== */

/* Bandeau d'; $map[(& $u 0x00E2,0x20AC,0x02DC)]=‘actions du module */
.repairs-actions-bar{
  display:flex;
  justify-content:flex-end;
  gap:.5rem;
  margin-bottom:1rem;
}

/* Grand cadre contenant les 3 colonnes */
.dashboard-main-card{
  padding:1rem;
}

/* 3 colonnes collées */
.repairs-main-row{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:0; /* collées */
}

.dashboard-column{
  padding:0.75rem 1rem;
  border-left:1px solid rgba(255,255,255,0.06);
}
.dashboard-column:first-child{
  border-left:none;
}

/* Hover général pour les blocs cliquables */
.dashboard-column.clickable,
.dashboard-card.clickable{
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.dashboard-column.clickable:hover,
.dashboard-card.clickable:hover{
  transform: translateY(-2px);
}

/* Ligne 2 : réparateurs (2/3) + stats (1/3) */
.repairs-secondary-row{
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap:1rem;
  margin-top:1rem;
}

/* Stats list */
.stats-list{
  list-style:none;
  padding:0;
  margin:.5rem 0 0 0;
}
.stats-list li{
  display:flex;
  justify-content:space-between;
  margin:.15rem 0;
}
.stats-list .label{
  opacity:.8;
  font-size:.85rem;
}
.stats-list .value{
  font-weight:600;
}

/* Bouton Archives centré */
.dashboard-footer{
  margin-top:1rem;
  text-align:center;
}

#stock-suivi-list .row.is-closed {
  opacity: 0.65;
  filter: saturate(0.85);
}

.badge {
  display:inline-block;
  padding:.15rem .5rem;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  line-height:1.4;
  border:1px solid rgba(255,255,255,.12);
}

.badge-open {
  background: rgba(34,197,94,.14);
  border-color: rgba(34,197,94,.35);
}

.badge-closed {
  background: rgba(148,163,184,.14);
  border-color: rgba(148,163,184,.35);
}

/* ===== Dépôts: 3 valeurs côte à côte ===== */
.triple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}

.triple-col {
  padding: .35rem .25rem;
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.triple-col:last-child {
  border-right: none;
}

.triple-h {
  font-size: .78rem;
  letter-spacing: .02em;
  opacity: .8;
}

/* =========================
   STOCK - Create form redesign
========================= */

.create-form { display: block; }

.create-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 14px;
}

.create-col{
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255,255,255,0.02);
}

.create-full{
  margin-bottom: 10px;
}

.section-title{
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
  opacity: 0.9;
}

.field{
  display:block;
  margin-bottom: 12px;
}

.field > span{
  display:block;
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 6px;
}

.field input,
.field select{
  width:100%;
}

/* Segmented selector (R/C/O/S) */
.segment{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.segment-item{
  cursor:pointer;
  user-select:none;
  display:inline-flex;
  align-items:center;
}

.segment-item input{
  display:none;
}

.segment-item span{
  display:inline-flex;
  align-items:baseline;
  gap:8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  font-weight: 700;
}

.segment-item span small{
  font-weight: 500;
  opacity: 0.8;
}

.segment-item input:checked + span{
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
}

/* Actions row */
.create-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top: 16px;
}

/* Responsive: 1 colonne sur petit écran */
@media (max-width: 900px){
  .create-grid{ grid-template-columns: 1fr; }
}

/* ===== Depot tab redesign ===== */
.triple-soft{
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
}

.spacer{ height:.65rem; }

.kpi{ margin-top:.35rem; }
.kpi-label{ font-size:.82rem; opacity:.8; }
.kpi-value{ font-size:1.4rem; font-weight:800; margin-top:.2rem; }

.hr-mini{
  height:1px; background:rgba(255,255,255,.08);
  margin:.8rem 0;
}

.mini-lists{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.8rem;
}
.mini-title{ font-weight:800; margin-bottom:.35rem; }

.hr-soft{
  height:1px; background:rgba(255,255,255,.08);
  margin: .9rem 0;
}

.values-subtitle{
  font-weight:700;
  margin-bottom:.5rem;
}

.values-grid{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap: 0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  overflow:hidden;
  background: rgba(255,255,255,.02);
}

.values-grid-sub{ opacity:.98; }

.values-col{
  padding: .85rem .9rem;
  border-right: 1px solid rgba(255,255,255,.08);
}
.values-col:last-child{ border-right: 0; }

.values-h{ font-weight:800; margin-bottom:.35rem; }
.values-v{ font-size:1.25rem; font-weight:800; }

@media (max-width: 980px){
  .mini-lists{ grid-template-columns: 1fr; }
  .values-grid{ grid-template-columns:1fr; }
  .values-col{ border-right:0; border-bottom:1px solid rgba(255,255,255,.08); }
  .values-col:last-child{ border-bottom:0; }
}

/* =========================================================
 * STOCK — Dépôts UI polish
 * =======================================================*/

/* Tabs (boutons dépôts) */
#depotTabs{ display:flex; flex-wrap:wrap; gap:.5rem; }

#depotTabs .pill{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.55rem .75rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
  font-weight:800;
  letter-spacing:.02em;
}

#depotTabs .pill:hover{ background: rgba(255,255,255,.07); }

#depotTabs .pill.active{
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.10);
  box-shadow: 0 0 0 1px rgba(255,255,255,.10) inset;
}

#depotTabs .pill .pill-code{ font-size: .95rem; }

#depotTabs .pill .pill-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 2.25rem;
  height: 1.65rem;
  padding: 0 .55rem;
  border-radius:999px;
  background: rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  font-size:.85rem;
  font-weight:900;
}

#depotTabs .pill.active .pill-count{
  background: rgba(255,255,255,.20);
  border-color: rgba(255,255,255,.26);
}

/* Titre dépôt */
#depotTitle{ font-size:1.25rem; font-weight:900; letter-spacing:.02em; }

/* Checkbox dépôts (liste produits) */
input.depot-row-check,
#depotMasterCheck{
  width: 18px;
  height: 18px;
  transform: scale(1.25);
  transform-origin: center;
  accent-color: rgba(255,255,255,.85);
}

/* Onglet désactivé */
.tab.disabled,
.tab[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}

/* Empêche le hover visuel */
.tab.disabled:hover,
.tab[aria-disabled="true"]:hover {
  background: inherit !important;
  color: inherit !important;
  transform: none !important;
}

/* =========================================================
   AURA REPAIRS — onglets / création dossier / détail / print
   ========================================================= */

/* Onglet Détail désactivé */
.tab.disabled,
.tab[aria-disabled="true"],
.tabbar-item.disabled,
.tabbar-item[aria-disabled="true"] {
  opacity: .4;
  filter: grayscale(100%);
  pointer-events: none;
  cursor: default;
}

.tab.disabled:hover,
.tab[aria-disabled="true"]:hover,
.tabbar-item.disabled:hover,
.tabbar-item[aria-disabled="true"]:hover {
  background: inherit !important;
  color: inherit !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Panels Repairs */
.repairs-panel { display: none; }
.repairs-panel.active { display: block; }

/* Layout création / détail */
.repairs-split-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1rem;
  align-items: start;
}

.repairs-left-stack,
.repairs-right-stack {
  display: grid;
  gap: 1rem;
}

/* Cards génériques */
.repairs-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 1rem;
}

.repairs-card h3,
.repairs-card h4 {
  margin: 0 0 .85rem 0;
}

.muted.small {
  font-size: .85rem;
  opacity: .72;
}

/* Tableau meta à 2 colonnes */
.repairs-meta-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  overflow: hidden;
}

.repairs-meta-row {
  display: contents;
}

.repairs-meta-label,
.repairs-meta-value {
  padding: .85rem .95rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.repairs-meta-label {
  background: rgba(255,255,255,.025);
  font-weight: 700;
}

.repairs-meta-row:last-child .repairs-meta-label,
.repairs-meta-row:last-child .repairs-meta-value {
  border-bottom: none;
}

.status-inline {
  display: flex;
  gap: .55rem;
  align-items: center;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-btn.active {
  outline: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.1);
}

/* Zone texte + médias */
.repairs-textarea {
  min-height: 140px;
  resize: vertical;
}

.media-upload-stack {
  display: grid;
  gap: .7rem;
  margin-top: .8rem;
}

.media-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.media-pill {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  padding: .42rem .65rem;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  font-size: .88rem;
}

/* Recherche produit */
.product-search-card {
  position: relative;
}

.product-search-results {
  display: grid;
  gap: .45rem;
  margin-top: .7rem;
  color:#f5f5f5;
}

.search-result-item {
  width: 100%;
  text-align: left;
  display: grid;
  gap: .15rem;
  padding: .75rem .85rem;
  border-radius: 12px;
  color:#f5f5f5;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  cursor: pointer;
}

.search-result-item:hover {
  background: rgba(255,255,255,.06);
}

.product-card-empty,
.product-card-filled {
  margin-top: .85rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: .9rem;
  background: rgba(255,255,255,.025);
}

.product-card-filled {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: .9rem;
  align-items: start;
}

.product-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem .9rem;
}

.product-info-grid > div {
  display: grid;
  gap: .18rem;
}

.product-info-grid strong {
  font-size: .98rem;
}

.product-qr-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  color: #FFFFFF;
  overflow: hidden;
}

.product-qr-box img,
.product-qr-box svg {
  background: #fff !important;
  padding: 6px;
  border-radius: 8px;
  max-width: 100%;
  max-height: 100%;
  display: block;
}

/* Timeline statuts */
.steps-timeline {
  display: grid;
  gap: .65rem;
}

.step-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: .7rem;
  align-items: start;
}

.step-bullet {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-top: .28rem;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
}

.step-item.done .step-bullet,
.step-item.current .step-bullet {
  background: currentColor;
}

.step-content {
  padding-bottom: .45rem;
  border-bottom: 1px dashed rgba(255,255,255,.1);
}

.step-item:last-child .step-content {
  border-bottom: none;
}

.step-title {
  font-weight: 600;
}

/* Détail */
.detail-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.detail-ref-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.detail-ref-block h1,
.detail-ref-block h2,
.detail-ref-block .detail-ref {
  margin: 0;
}

.detail-barcode-top{
  display:flex;
  justify-content:center;
  margin:0 0 1rem 0;
}

.detail-barcode-top .detail-barcode{
  min-width:325px;
  max-width:525px;
}

.detail-barcode svg {
  width: 100%;
  height: auto;
  display: block;
}

.detail-actions {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
}

/* Galerie médias */
.detail-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .75rem;
}

.media-thumb {
  display: grid;
  gap: .4rem;
  text-decoration: none;
  color: inherit;
  padding: .45rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.media-thumb img,
.media-thumb video {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Impression A5 */
@media print {
  body * {
    visibility: hidden !important;
  }

  #panel-detail,
  #panel-detail * {
    visibility: visible !important;
  }
	.print-main {
	  display: grid !important;
	  grid-template-columns: 1.2fr 1fr; /* â† élargi à gauche */
	  gap: 5mm;
	}
  #panel-detail {
    position: absolute;
    inset: 0;
    width: 148mm;
    min-height: 210mm;
    margin: 0;
    padding: 8mm;
    background: #fff !important;
    color: #000 !important;
  }
	.print-rua {
	  font-size: 9pt;
	  font-weight: 800;
	  margin-bottom: 3mm;
	  letter-spacing: .5px;
	}
	.print-product-top {
  display: grid;
  grid-template-columns: 30mm 1fr;
  gap: 4mm;
  align-items: center;
} 
	.print-product-meta {
  display: grid;
  gap: 2mm;
  font-size: 9pt;
}
	.print-product-meta {
  display: grid;
  gap: 2mm;
  font-size: 9pt;
}
	.print-meta-grid {
  grid-template-columns: 45mm 1fr; /* â† plus large pour "Réparation interne" */
}
  @page {
    size: A5 portrait;
    margin: 8mm;
  }

  .detail-actions,
  .tabbar,
  .module-topbar,
  .sidebar,
  .topbar,
  nav,
  header {
    display: none !important;
  }

  .repairs-card,
  .product-card-filled,
  .product-card-empty,
  .detail-barcode,
  .media-thumb {
    background: #fff !important;
    color: #000 !important;
    border-color: #bbb !important;
    box-shadow: none !important;
  }

  .detail-barcode svg text {
    fill: #000 !important;
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .repairs-split-layout {
    grid-template-columns: 1fr;
  }

  .product-card-filled {
    grid-template-columns: 1fr;
  }

  .repairs-meta-grid {
    grid-template-columns: 180px 1fr;
  }
}

@media (max-width: 720px) {
  .repairs-meta-grid {
    grid-template-columns: 1fr;
  }

  .repairs-meta-label,
  .repairs-meta-value {
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .product-info-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== Aura Repairs : correctifs navigation + layout création ===== */

.repairs-tabs{
  display:flex;
  gap:8px;
  margin-bottom:12px;
}

.repairs-actions-bar{
  display:flex;
  gap:.75rem;
  align-items:center;
  margin-bottom:1rem;
}

.repair-create-grid{
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap:1rem;
  align-items:start;
}

.repair-create-left,
.repair-create-right{
  display:grid;
  gap:1rem;
  min-width:0;
}

.repair-info-table{
  display:grid;
  grid-template-columns: 220px minmax(0, 1fr);
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
}

.repair-info-row{
  display:contents;
}

.repair-info-label,
.repair-info-value{
  padding:.9rem 1rem;
  border-bottom:1px solid var(--line);
}

.repair-info-label{
  font-weight:800;
  background:rgba(255,255,255,.03);
}

.repair-info-table .repair-info-row:last-child .repair-info-label,
.repair-info-table .repair-info-row:last-child .repair-info-value{
  border-bottom:none;
}

.status-inline-edit{
  display:flex;
  gap:.55rem;
  align-items:center;
}

.repair-create-footer{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:.6rem;
}

.btn.wide{
  width:100%;
}

.search-results{
  display:grid;
  gap:.45rem;
  margin-top:.7rem;
}

.status-steps-card{
  min-height:220px;
}

@media (max-width: 1100px){
  .repair-create-grid{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   AURA REPAIRS — impression SAV A5 simplifiée
   ========================================================= */
.print-a5-sheet {
  display: none;
}

@media print {
  body * {
    visibility: hidden !important;
  }

  #panel-detail,
  #panel-detail * {
    visibility: visible !important;
  }

  @page {
    size: A5 portrait;
    margin: 8mm;
  }

  #panel-detail {
    position: absolute;
    inset: 0;
    width: 148mm;
    min-height: 210mm;
    margin: 0;
    padding: 0 !important;
    background: #fff !important;
    color: #000 !important;
  }

  #panel-detail > .card,
  #repair-print-sheet {
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  #panel-detail .repair-sheet-title-row,
  #panel-detail .detail-toolbar,
  #panel-detail .detail-toolbar.no-print,
  #panel-detail .repair-create-grid,
  #panel-detail .detail-create-grid {
    display: none !important;
  }

  #panel-detail .print-a5-sheet {
    display: grid !important;
    grid-template-rows: auto auto 1fr;
    gap: 6mm;
    width: 100%;
    min-height: 100%;
    padding: 8mm;
    box-sizing: border-box;
    background: #fff !important;
    color: #000 !important;
  }

  #panel-detail .print-head {
    display: grid !important;
    justify-items: center;
    text-align: center;
    gap: 3mm;
  }

  #panel-detail .print-ref {
    font-size: 18pt !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    color: #000 !important;
  }

  #panel-detail .detail-barcode-top {
    display: flex !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  #panel-detail .detail-barcode {
    min-width: 78mm !important;
    max-width: 110mm !important;
    background: #fff !important;
    border: 1px solid #bbb !important;
    border-radius: 4px !important;
    padding: 3mm !important;
    box-shadow: none !important;
  }

  #panel-detail .detail-barcode svg {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  #panel-detail .print-main {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 5mm;
    align-items: start;
  }

  #panel-detail .print-box {
    border: 1px solid #999 !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #000 !important;
    padding: 4mm !important;
    box-shadow: none !important;
  }

  #panel-detail .print-box-title {
    margin: 0 0 3mm 0 !important;
    font-size: 10pt !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #000 !important;
  }

  #panel-detail .print-meta-grid {
    display: grid !important;
    grid-template-columns: 38mm 1fr;
    border-top: 1px solid #bbb;
    border-left: 1px solid #bbb;
  }

  #panel-detail .print-meta-grid > div {
    border-right: 1px solid #bbb;
    border-bottom: 1px solid #bbb;
    padding: 2.2mm 2.6mm;
    font-size: 9pt !important;
    min-height: 8mm;
    box-sizing: border-box;
    color: #000 !important;
    background: #fff !important;
  }

  #panel-detail .print-meta-label {
    font-weight: 700 !important;
    background: #f6f6f6 !important;
  }

  #panel-detail .print-product-grid {
    display: grid !important;
    grid-template-columns: 30mm 1fr;
    gap: 4mm;
    align-items: start;
  }

  #panel-detail .print-product-qr {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 30mm;
    background: #fff !important;
    border: 1px solid #bbb !important;
    border-radius: 4px !important;
    padding: 2mm !important;
    overflow: hidden;
  }

  #panel-detail .print-product-qr img,
  #panel-detail .print-product-qr svg {
    max-width: 100% !important;
    max-height: 100% !important;
    display: block !important;
    background: #fff !important;
  }

  #panel-detail .print-product-lines {
    display: grid !important;
    gap: 1.6mm;
  }

  #panel-detail .print-line {
    font-size: 9pt !important;
    line-height: 1.25 !important;
    color: #000 !important;
  }

  #panel-detail .print-line strong {
    font-weight: 800 !important;
  }

  #panel-detail .print-desc {
    display: grid !important;
    gap: 3mm;
  }

  #panel-detail .print-desc-body {
    border: 1px solid #bbb !important;
    border-radius: 4px !important;
    padding: 4mm !important;
    min-height: 52mm;
    font-size: 9.5pt !important;
    line-height: 1.35 !important;
    white-space: pre-wrap !important;
    overflow: hidden !important;
    background: #fff !important;
    color: #000 !important;
  }
}


/* ===== Aura Repairs media manager ===== */
.media-manager-toolbar{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.9fr) auto;gap:.6rem;align-items:center;}
.media-manager-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:.75rem;}
.media-manager-card{display:grid;gap:.45rem;padding:.55rem;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(255,255,255,.03);}
.media-manager-card img,.media-manager-card video{width:100%;height:120px;object-fit:cover;border-radius:8px;display:block;background:#000;}
.media-manager-caption{font-size:.85rem;line-height:1.25;word-break:break-word;}
.media-manager-actions{display:flex;gap:.4rem;flex-wrap:wrap;}
.media-manager-actions .input{min-width:0;}
@media (max-width: 900px){.media-manager-toolbar{grid-template-columns:1fr;}}

/* ===== Repairs / Repairers redesign ===== */
.repairers-panel{
  display:block;
}
.repairers-toolbar{
  display:grid;
  grid-template-columns: 1fr minmax(320px, 760px) 1fr;
  gap:1rem;
  align-items:center;
  margin-bottom:1rem;
}
.repairers-search-wrap{ display:flex; justify-content:center; }
.repairers-search-input{ width:100%; }
.repairers-top-grid,
.repairers-bottom-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:1rem;
  margin-bottom:1rem;
}
.repairers-card{ min-height: 260px; }
.repairers-card-head{ margin-bottom:.8rem; }
.repairers-list{
  display:flex;
  flex-direction:column;
  gap:.7rem;
  max-height:420px;
  overflow:auto;
}
.repairer-list-row,
.repairer-assign-row{
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:.8rem .9rem;
  background:rgba(255,255,255,.02);
  cursor:pointer;
  transition:transform .12s ease, border-color .12s ease, background-color .12s ease;
}
.repairer-list-row:hover,
.repairer-assign-row:hover,
.repairer-list-row.active{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.2);
  background:rgba(255,255,255,.05);
}
.repairer-row-top,
.repairer-row-meta,
.repairer-row-tags,
.repairer-row-repairs{
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
  align-items:center;
}
.repairer-row-meta,
.repairer-row-tags,
.repairer-row-repairs{ margin-top:.45rem; }
.repairer-pill{
  display:inline-flex;
  align-items:center;
  gap:.3rem;
  padding:.18rem .55rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.1);
  font-size:.78rem;
  background:rgba(255,255,255,.03);
}
.repairer-mini-badge{
  display:inline-flex;
  align-items:center;
  gap:.3rem;
  padding:.15rem .45rem;
  border-radius:999px;
  font-size:.75rem;
  border:1px solid rgba(255,255,255,.1);
}
.repairer-detail-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:.8rem 1rem;
}
.repairer-detail-span-2{ grid-column:1 / -1; }
.repairer-actions-row{ margin-top:.9rem; flex-wrap:wrap; }
.repairer-related-card{
  margin-top:1rem;
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:1rem;
}
.repairer-current-repairs{
  display:flex;
  flex-direction:column;
  gap:.6rem;
  margin-top:.75rem;
  max-height:260px;
  overflow:auto;
}
.repairer-current-row{
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  padding:.7rem .8rem;
  background:rgba(255,255,255,.02);
}
.repairers-map{
  position:relative;
  min-height:540px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  background:#101010;
}
.repairers-map canvas{ display:block; width:100%; height:540px; }
.repairers-map-empty,
.repairers-map-fallback{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:1.2rem;
}
.repairer-files-list{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  margin-top:.6rem;
}
.repairer-file-chip{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  padding:.28rem .6rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.03);
}
.btn.danger{
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.12);
}
@media (max-width: 1180px){
  .repairers-toolbar{ grid-template-columns: 1fr; }
  .repairers-top-grid,
  .repairers-bottom-grid,
  .repairer-detail-grid{ grid-template-columns: 1fr; }
  .repairer-detail-span-2{ grid-column:auto; }
  .repairers-map,
  .repairers-map canvas{ min-height:360px; height:360px; }
}


.repairs-dashboard-layout{
  display:grid;
  grid-template-columns:minmax(0,1.75fr) 320px;
  gap:1rem;
  align-items:start;
}
.dashboard-search-card{padding:1rem;margin-bottom:1rem}
.dashboard-search-row{display:flex;gap:.75rem;align-items:center}
.dashboard-search-input{flex:1}
.dashboard-search-results{margin-top:.85rem;display:grid;gap:.65rem}
.repairs-main-row-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.dashboard-column-head{display:flex;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.75rem}
.dashboard-count{display:inline-flex;align-items:center;justify-content:center;min-width:2rem;height:2rem;padding:0 .55rem;border-radius:999px;background:rgba(255,255,255,.06);font-weight:700}
.dashboard-list{display:grid;gap:.65rem}
.dashboard-list-static .dashboard-repair-row{cursor:default}
.dashboard-repair-row{padding:.75rem;border:1px solid rgba(255,255,255,.07);border-radius:12px;background:rgba(255,255,255,.025);transition:transform .12s ease, border-color .12s ease, background-color .12s ease}
.dashboard-repair-row.is-clickable{cursor:pointer}
.dashboard-repair-row.is-clickable:hover{transform:translateY(-1px);border-color:rgba(255,255,255,.16);background:rgba(255,255,255,.045)}
.dashboard-repair-row-head{display:flex;justify-content:space-between;gap:.75rem;align-items:flex-start;margin-bottom:.35rem}
.dashboard-repair-title{font-weight:700;margin-bottom:.15rem}
.dashboard-repair-desc{margin-top:.35rem;font-size:.86rem;line-height:1.4;color:var(--muted)}
.status-badge{display:inline-flex;align-items:center;padding:.18rem .55rem;border-radius:999px;border:1px solid rgba(255,255,255,.1);font-size:.72rem;font-weight:700;white-space:nowrap}
.status-a_attribuer,.status-attente_colis_client{background:rgba(250,204,21,.12);border-color:rgba(250,204,21,.28)}
.status-en_cours_repa,.status-en_attente,.status-transit_aller,.status-transit_retour,.status-transit_client{background:rgba(59,130,246,.12);border-color:rgba(59,130,246,.28)}
.status-clos,.status-annule,.status-receptionne{background:rgba(148,163,184,.12);border-color:rgba(148,163,184,.28)}
.dashboard-tracking-links{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.45rem}
.dashboard-tracking-links a{font-size:.78rem}
.dashboard-repairers-summary,.dashboard-activity-feed{display:grid;gap:.65rem}
.dashboard-repairer-row,.activity-row{padding:.7rem .75rem;border:1px solid rgba(255,255,255,.07);border-radius:12px;background:rgba(255,255,255,.025)}
.dashboard-repairer-row{display:flex;justify-content:space-between;gap:.75rem;align-items:flex-start}
.dashboard-repairer-meta{display:flex;flex-direction:column;align-items:flex-end;gap:.2rem;text-align:right}
.dashboard-activity-card{padding:1rem;position:sticky;top:1rem}
.activity-row{display:grid;grid-template-columns:84px 1fr;gap:.75rem}
.activity-time{font-size:.78rem;color:var(--muted)}
.stats-list-stacked li{padding:.2rem 0;border-bottom:1px solid rgba(255,255,255,.05)}
.stats-list-stacked li:last-child{border-bottom:none}
.repair-alert-modal[hidden]{display:none!important}
.repair-alert-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center}
.repair-alert-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55)}
.repair-alert-card{position:relative;z-index:1;width:min(760px,calc(100vw - 2rem));max-height:calc(100vh - 2rem);overflow:auto;padding:1rem}
.existing-repair-alert-list{display:grid;gap:.75rem;margin:1rem 0}
.existing-repair-item{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;padding:.8rem;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(255,255,255,.025)}
.existing-repair-desc{margin-top:.35rem;color:var(--muted);font-size:.86rem;line-height:1.45}
.repair-alert-actions{display:flex;justify-content:flex-end;gap:.75rem}
body.modal-open{overflow:hidden}

@media (max-width: 1100px){
  .repairs-dashboard-layout{grid-template-columns:1fr}
  .dashboard-activity-card{position:static}
}
@media (max-width: 860px){
  .repairs-main-row-3,.repairs-secondary-row-dashboard{grid-template-columns:1fr}
  .dashboard-search-row,.existing-repair-item,.repair-alert-actions,.dashboard-repairer-row{flex-direction:column;align-items:stretch}
  .dashboard-repairer-meta{text-align:left;align-items:flex-start}
  .activity-row{grid-template-columns:1fr}
}


.detail-subtabs{display:flex;gap:.6rem;margin-bottom:1rem;flex-wrap:wrap}
.detail-subtabs .btn.active{border-color:rgba(255,255,255,.22);background:rgba(255,255,255,.08)}
.detail-dashboard-list-card{padding:1rem;margin-bottom:1rem}
.detail-dashboard-list-items{display:grid;gap:.8rem}
.detail-dashboard-entry{padding:.9rem;border:1px solid rgba(255,255,255,.07);border-radius:14px;background:rgba(255,255,255,.025)}
.detail-dashboard-entry.is-clickable{cursor:pointer;transition:transform .12s ease,border-color .12s ease,background-color .12s ease}
.detail-dashboard-entry.is-clickable:hover{transform:translateY(-1px);border-color:rgba(255,255,255,.16);background:rgba(255,255,255,.045)}
.detail-dashboard-entry-head{display:flex;justify-content:space-between;gap:.75rem;align-items:flex-start;margin-bottom:.65rem}
.detail-dashboard-entry-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem 1rem}
.detail-dashboard-field{display:flex;flex-direction:column;gap:.15rem}
.detail-dashboard-label{font-size:.76rem;color:var(--muted)}
.detail-dashboard-value{font-weight:600;line-height:1.35}
.detail-dashboard-entry-desc{margin-top:.75rem;padding-top:.75rem;border-top:1px solid rgba(255,255,255,.06);color:var(--muted);line-height:1.45}
.detail-dashboard-entry-foot{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin-top:.75rem;padding-top:.75rem;border-top:1px solid rgba(255,255,255,.06)}
@media (max-width: 860px){
  .detail-dashboard-entry-grid{grid-template-columns:1fr}
  .detail-dashboard-entry-head,.detail-dashboard-entry-foot,.detail-subtabs{flex-direction:column;align-items:stretch}
}

/* ===== MarketInsider ===== */
/* Seules les classes réellement utilisées sont conservées (le design courant vit dans le bloc <style> inline du template, scopé à la page MarketInsider). */
.mi-dashboard-main{ min-width:0; }
.mi-actions{ display:flex; gap:.7rem; align-items:center; margin-top:1rem; flex-wrap:wrap; }
.mi-bdd-toolbar{ display:grid; grid-template-columns:minmax(0,1fr) 260px; gap:.8rem; margin-bottom:1rem; }
/* Règles Hype conservées : le CSS Hype est hors périmètre MI-2 (passe dédiée ultérieure). */
.mi-hype-metric{ border:1px solid var(--line); background:rgba(255,255,255,.04); border-radius:14px; padding:.9rem 1rem; }
.mi-hype-ring-wrap{ display:flex; justify-content:center; margin:1rem 0 1.2rem; }
.mi-hype-ring{ --mi-ring-progress:0%; width:220px; height:220px; border-radius:50%; display:grid; place-items:center; background:conic-gradient(var(--accent) var(--mi-ring-progress), rgba(255,255,255,.08) 0); padding:16px; }
.mi-hype-ring-inner{ width:100%; height:100%; border-radius:50%; background:var(--panel); display:flex; align-items:center; justify-content:center; flex-direction:column; border:1px solid var(--line); }
.mi-hype-ring-value{ font-size:3rem; font-weight:800; line-height:1; }
.mi-hype-ring-label{ color:var(--muted); margin-top:.25rem; }
.mi-hype-metrics{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; }
.mi-hype-metric{ display:flex; justify-content:space-between; gap:.8rem; align-items:center; }
.mi-hype-metric span{ color:var(--muted); }
@media (max-width: 980px){
  .mi-bdd-toolbar, .mi-hype-metrics{ grid-template-columns:1fr; }
}


/* =========================================================
   AuraOps V1 interne premium — thème clair beige/vert/marron
   Ajout non destructif en fin de fichier.
   ========================================================= */
:root{
  --accent:#4f7d45;
  --accent-2:#6f8f5f;
  --accent-soft:#e6efdf;
  --brown:#6b4f35;
  --brown-2:#8a6f4e;
  --sand:#f4ead8;
  --bg:#f7f1e6;
  --bg2:#efe2cc;
  --panel:#fffaf1;
  --panel-2:#f9f3e8;
  --line:#d8c7ad;
  --line2:#c8b394;
  --text:#2f2a22;
  --muted:#746956;
  --danger:#a64235;
  --warning:#a46a21;
  --ok:#4f7d45;
  --shadow:0 18px 50px rgba(80,60,34,.10);
}
body.aura-shell, body{
  background:
    radial-gradient(circle at top left, rgba(79,125,69,.12), transparent 28rem),
    linear-gradient(135deg, #f7f1e6 0%, #efe2cc 100%);
  color:var(--text);
}
.erp-layout{ min-height:100vh; display:grid; grid-template-columns:286px minmax(0,1fr); }
.erp-sidebar{
  position:sticky; top:0; height:100vh; padding:18px 16px;
  background:linear-gradient(180deg,#385634 0%,#4f3d2e 100%);
  color:#fff8ea; border-right:1px solid rgba(255,255,255,.18);
  display:flex; flex-direction:column; gap:18px;
}
.erp-brand{ display:flex; align-items:center; gap:12px; color:#fff8ea; padding:8px 8px 16px; border-bottom:1px solid rgba(255,255,255,.18); }
.erp-brand-mark{
  width:44px; height:44px; border-radius:16px; display:grid; place-items:center;
  background:#f4ead8; color:#385634; font-weight:900; box-shadow:0 12px 26px rgba(0,0,0,.18);
}
.erp-brand strong{ display:block; font-size:1.14rem; letter-spacing:.02em; }
.erp-brand small{ display:block; color:rgba(255,248,234,.72); margin-top:2px; }
.erp-module-nav{ display:flex; flex-direction:column; gap:8px; }
.erp-module-link, .module-link{
  display:flex; align-items:center; gap:12px; min-height:48px; padding:12px 13px;
  border-radius:16px; color:#fff8ea; border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.07); transition:background .16s, transform .16s, border-color .16s;
}
.erp-module-link:hover, .module-link:hover{ background:rgba(255,255,255,.14); transform:translateX(2px); }
.erp-module-link.active{ background:#f4ead8; color:#2f2a22; border-color:#f4ead8; box-shadow:0 14px 30px rgba(0,0,0,.16); }
.erp-module-link .mi, .module-link .mi{ width:22px; height:22px; object-fit:contain; filter:none; }
.erp-module-link.active .mi{ filter:none; }
.erp-sidebar-footer{ margin-top:auto; display:flex; align-items:center; gap:8px; color:rgba(255,248,234,.78); font-size:.9rem; padding:10px; border-top:1px solid rgba(255,255,255,.15); }
.status-dot{ width:9px; height:9px; border-radius:99px; display:inline-block; background:var(--muted); }
.status-dot.ok{ background:#b7d7a8; box-shadow:0 0 0 4px rgba(183,215,168,.15); }

.erp-main{ min-width:0; padding:18px; }
.erp-topbar{
  min-height:64px; display:flex; align-items:center; gap:16px; justify-content:space-between;
  margin-bottom:16px; padding:10px 12px; border:1px solid var(--line); border-radius:24px;
  background:rgba(255,250,241,.82); backdrop-filter:blur(14px); box-shadow:var(--shadow);
}
.global-search{ flex:1; display:flex; align-items:center; gap:10px; padding:0 10px; }
.global-search input{
  width:100%; border:0; outline:0; background:transparent; color:var(--text); font-size:.98rem;
}
.search-icon{ color:var(--accent); font-size:1.45rem; line-height:1; }
.qs-inline{ display:flex; align-items:center; gap:6px; color:var(--muted); font-size:.86rem; white-space:nowrap; }
.top-actions{ display:flex; align-items:center; gap:8px; }
.icon-btn,.profile-pill,.btn,button{
  border:1px solid var(--line); background:var(--panel); color:var(--text); border-radius:14px;
  min-height:38px; padding:0 12px; cursor:pointer;
}
.icon-btn{ width:40px; padding:0; font-weight:800; }
.profile-pill{ padding:0 14px; color:#fff8ea; background:var(--accent); border-color:var(--accent); }
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:38px; padding:8px 12px; background:var(--accent); color:#fff8ea; border-color:var(--accent); }
.btn.small{ min-height:30px; padding:5px 9px; border-radius:10px; font-size:.84rem; }
.app-frame{
  background:rgba(255,250,241,.72); border:1px solid var(--line); border-radius:28px;
  padding:18px; box-shadow:var(--shadow); min-height:calc(100vh - 116px);
}
.topbar{ display:none; }
.layout{ display:block; min-height:auto; }
.sidebar{ display:none; }
.content{ padding:0; }

.module-header{ margin-bottom:16px; }
.module-topline{ display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:14px; }
.module-left{ display:flex; align-items:center; gap:13px; }
.module-icon{ width:46px; height:46px; border-radius:16px; padding:9px; background:var(--accent-soft); border:1px solid var(--line); }
.eyebrow{ margin:0 0 2px; color:var(--accent); text-transform:uppercase; letter-spacing:.12em; font-size:.72rem; font-weight:800; }
.module-title{ margin:0; color:var(--text); font-size:1.5rem; }
.module-badge{ display:inline-flex; padding:7px 10px; border-radius:999px; background:var(--accent-soft); color:var(--accent); border:1px solid #cddfbe; font-size:.82rem; font-weight:700; }
.tabs{ gap:7px; flex-wrap:wrap; padding:6px; background:var(--panel-2); border:1px solid var(--line); border-radius:18px; }
.tab{ background:transparent; border:1px solid transparent; color:var(--muted); border-radius:13px; }
.tab:hover{ border-color:var(--line2); color:var(--text); }
.tab.active{ background:var(--accent); color:#fff8ea; border-color:var(--accent); box-shadow:none; }
.block,.card,.aura-card{
  background:var(--panel); border:1px solid var(--line); border-radius:22px; padding:16px; box-shadow:0 10px 28px rgba(80,60,34,.06);
}
.block-head{ color:var(--text); }
.cards,.summary-cards,.kpi-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.card h3,.aura-card h3{ margin:.1rem 0 .55rem; color:var(--text); }
.card p,.aura-card p{ color:var(--muted); }
.table-wrap{ border-color:var(--line); background:var(--panel); }
.table thead th{ background:#efe2cc; color:var(--brown); }
.table th,.table td{ border-bottom-color:#eadcc8; }
#productsTbody tr:hover, tbody tr:hover{ background:#f4ead8; }
.field input,.field textarea,.field select,.search input{
  background:#fffdf8; color:var(--text); border-color:var(--line);
}
.chip,.tag{
  display:inline-flex; align-items:center; gap:4px; padding:3px 8px; border-radius:999px;
  background:var(--accent-soft); color:var(--accent); border:1px solid #cddfbe; font-size:.78rem;
}
.tag.strong{ font-weight:800; background:#efe2cc; color:var(--brown); border-color:#d8c7ad; }
.quicksearch-panel{ margin-bottom:14px; }
.qs-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:12px; }
.qs-card{ background:var(--panel); border:1px solid var(--line); border-radius:18px; padding:14px; }
.qs-card-top{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:7px; }
.qs-card h3{ margin:0 0 5px; font-size:1rem; }
.qs-card p{ margin:0 0 10px; color:var(--muted); }
.empty-state{ padding:14px; border:1px dashed var(--line2); border-radius:16px; color:var(--muted); background:#fffdf8; }
.muted{ color:var(--muted)!important; }
.mono{ font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; }

@media (max-width: 980px){
  .erp-layout{ grid-template-columns:1fr; }
  .erp-sidebar{ position:relative; height:auto; }
  .erp-module-nav{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cards,.summary-cards,.kpi-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px){
  .erp-main{ padding:10px; }
  .erp-topbar,.module-topline{ flex-direction:column; align-items:stretch; }
  .erp-module-nav,.cards,.summary-cards,.kpi-grid{ grid-template-columns:1fr; }
}


/* === AuraOps V7.1 Fix2 — onglets feuillets + alignements === */
.module-header{
  text-align:left !important;
}
.module-topline{
  align-items:flex-start !important;
}
.module-left{
  text-align:left !important;
}
.module-left .eyebrow,
.module-left .module-title{
  text-align:left !important;
}
.module-tabs{
  justify-content:flex-start !important;
  align-items:flex-end !important;
  width:auto !important;
  max-width:100% !important;
  background:transparent !important;
  border:0 !important;
  border-bottom:1px solid var(--line) !important;
  border-radius:0 !important;
  padding:0 0 0 2px !important;
  gap:4px !important;
  margin-top:16px !important;
  overflow-x:auto;
}
.module-tabs .tab{
  flex:0 0 auto !important;
  border:1px solid var(--line) !important;
  border-bottom:0 !important;
  border-radius:14px 14px 0 0 !important;
  padding:10px 16px !important;
  background:linear-gradient(180deg, rgba(255,255,255,.72), rgba(245,238,220,.92)) !important;
  color:var(--text) !important;
  box-shadow:0 -2px 8px rgba(63,46,28,.06) inset !important;
  transform:translateY(1px);
}
.module-tabs .tab.active{
  background:var(--panel) !important;
  color:var(--accent-strong, var(--accent)) !important;
  border-color:var(--accent) !important;
  font-weight:800 !important;
  box-shadow:0 -10px 20px rgba(85,107,47,.08) inset, 0 4px 12px rgba(63,46,28,.07) !important;
  position:relative;
  z-index:2;
}
.module-tabs .tab.disabled,
.module-tabs .tab[aria-disabled="true"]{
  opacity:.45 !important;
  pointer-events:none;
}
.quicksearch-panel{
  display:none;
}
.quicksearch-panel.active{
  display:block;
}


/* FIX3 — sidebar sobre + connexion locale V1 */
.module-hero{ display:none !important; }
.erp-module-link:hover, .module-link:hover{
  transform:none !important;
  background:rgba(255,255,255,.10);
}
.profile-pill{ cursor:pointer; }
.aura-login{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:
    radial-gradient(circle at 50% 28%, rgba(115,139,91,.22), transparent 32%),
    linear-gradient(135deg, #f6efe3 0%, #e7dcc8 52%, #d7c5a8 100%);
  transition:opacity .48s ease, transform .48s ease, visibility .48s ease;
}
.aura-login.hidden{ display:none; }
.aura-login.is-leaving{ opacity:0; transform:scale(1.02); visibility:hidden; }
.login-card{
  width:min(440px, 100%);
  border:1px solid rgba(85,72,52,.18);
  border-radius:30px;
  padding:34px;
  background:rgba(255,250,241,.88);
  box-shadow:0 30px 80px rgba(72,54,34,.18);
  backdrop-filter:blur(18px);
  text-align:center;
  animation:loginCardIn .7s cubic-bezier(.2,.8,.2,1) both;
}
.login-logo-wrap{ display:flex; justify-content:center; margin-bottom:18px; }
.login-logo-pulse{
  width:96px;
  height:96px;
  border-radius:30px;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg, #456b3b, #78935d);
  box-shadow:0 20px 55px rgba(63,93,53,.34), inset 0 0 0 1px rgba(255,255,255,.32);
  animation:logoBreath 2.4s ease-in-out infinite;
}
.login-logo-mark{
  color:#fff8ec;
  font-size:48px;
  font-weight:900;
  letter-spacing:-.07em;
  transform:translateX(-1px);
}
.login-eyebrow{ justify-content:center; text-align:center; margin:0 0 8px; }
.login-card h2{ margin:0; font-size:1.6rem; color:#2f2a22; }
.login-subtitle{ margin:8px 0 22px; color:#6d6253; }
.login-form{ display:grid; gap:13px; text-align:left; }
.login-form label{ display:grid; gap:7px; color:#4f4638; font-weight:700; font-size:.92rem; }
.login-form input{
  width:100%;
  box-sizing:border-box;
  border:1px solid #d7c9b3;
  border-radius:16px;
  padding:13px 14px;
  background:#fffaf1;
  color:#2f2a22;
  outline:none;
}
.login-form input:focus{ border-color:#6f8e57; box-shadow:0 0 0 4px rgba(111,142,87,.16); }
.login-submit{ width:100%; justify-content:center; margin-top:6px; }
.login-note{ margin:18px 0 0; color:#776b5b; font-size:.84rem; line-height:1.45; }
.profile-panel{
  position:fixed;
  top:82px;
  right:26px;
  z-index:700;
}
.profile-panel.hidden{ display:none; }
.profile-card{
  min-width:270px;
  display:grid;
  grid-template-columns:48px 1fr;
  gap:12px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:22px;
  padding:14px;
  background:rgba(255,250,241,.96);
  box-shadow:0 20px 55px rgba(72,54,34,.16);
}
.profile-card .btn{ grid-column:1 / -1; justify-content:center; }
.profile-avatar{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:var(--accent);
  color:#fff8ec;
  font-weight:900;
}
.profile-card small{ display:block; color:var(--muted); margin-top:3px; }
@keyframes logoBreath{
  0%,100%{ transform:translateY(0) scale(1); box-shadow:0 20px 55px rgba(63,93,53,.34), inset 0 0 0 1px rgba(255,255,255,.32); }
  50%{ transform:translateY(-4px) scale(1.04); box-shadow:0 28px 75px rgba(63,93,53,.45), inset 0 0 0 1px rgba(255,255,255,.45); }
}
@keyframes loginCardIn{
  from{ opacity:0; transform:translateY(18px) scale(.98); }
  to{ opacity:1; transform:translateY(0) scale(1); }
}
@media (max-width:720px){
  .profile-panel{ left:18px; right:18px; top:86px; }
  .profile-card{ min-width:0; }
}

/* FIX4 — sidebar sobre + login visible dans le layout module_base actif */
#module-hero, .module-hero, .sidebar-hover-logo, .hover-logo { display:none !important; }
.erp-module-link:hover img.mi, .module-link:hover img.mi { transform:none !important; filter:none !important; }
#profile-button.profile-pill { display:inline-flex !important; align-items:center; justify-content:center; min-height:38px; }
#aura-login:not(.hidden) { display:flex !important; }
.profile-panel:not(.hidden) { display:block !important; }


/* AURAOPS_FIX14_STYLES */
.aura-transition{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:rgba(246,241,231,.94);backdrop-filter:blur(10px);transition:opacity .25s ease}.aura-transition.hidden{display:none}.aura-transition-card{display:grid;gap:14px;place-items:center;color:#2f2a24}.aura-transition-logo{width:86px;height:86px;border-radius:28px;display:grid;place-items:center;background:#31583f;color:#fff;font-size:2.4rem;font-weight:900;box-shadow:0 18px 50px rgba(49,88,63,.22);animation:auraPulse .9s ease-in-out infinite alternate}.aura-transition-text{font-weight:800;letter-spacing:.03em}.login-logo-pulse{animation:none!important;background:#31583f!important;box-shadow:none!important}.login-logo-wrap{margin-bottom:10px!important}.erp-module-link.active,.erp-module-link[aria-current="page"]{background:rgba(49,88,63,.13)!important;border-color:rgba(49,88,63,.26)!important;color:#203629!important}.stock-v14-main{display:grid;gap:1rem}.stock-v14-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.stock-v14-card article,.stock-v14-click{border:1px solid var(--line);border-radius:14px;padding:1rem;background:rgba(255,255,255,.35)}.stock-v14-click{cursor:pointer}.stock-v14-click:hover{border-color:var(--accent);transform:translateY(-1px)}.stock-v14-card h3{margin:.1rem 0 .65rem}.stock-receipt-block textarea.input{min-height:96px}.depot-tab,.stock-depot-tab,[data-depot]{border-radius:14px!important;border:1px solid var(--line)!important;background:var(--panel)!important;color:var(--text)!important;padding:.65rem .9rem!important}.table thead th,.stock-v14-head{background:#31583f!important;color:#fff!important}.product-detail .card,.detail-card,#tab-detail .card,#tab-detail .block{background:var(--panel)!important;color:var(--text)!important}#tab-detail input,#tab-detail select,#tab-detail textarea,#tab-detail .input,#tab-detail .field-value,#tab-detail .id-card{background:#fbf8f1!important;color:#2f2a24!important;border-color:var(--line)!important}#tab-detail label,#tab-detail .label,#tab-detail .muted,#tab-detail .small{color:#5f574d!important}.mi-note[style*="color:#fff"],.mi-offer-card .mi-note{color:#fff!important}
@media(max-width:980px){.stock-v14-two{grid-template-columns:1fr}}

/* FIX15 — Stock clean pass */
.erp-module-link.active,
.erp-module-link[aria-current="page"]{
  background:#f4ead8!important;
  color:#2f2a22!important;
  border-color:#f4ead8!important;
  box-shadow:0 14px 30px rgba(0,0,0,.16)!important;
}
.stock-create-title{margin:0;text-align:center;width:100%;}
#tab-create .actions.spread{justify-content:center;text-align:center;}
.segment-item span{
  border-color:rgba(84,64,45,.16)!important;
  background:#fbf8f1!important;
  color:#342b22!important;
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.segment-item input:checked + span{
  background:#f4ead8!important;
  border-color:#9b7b54!important;
  box-shadow:0 0 0 2px rgba(155,123,84,.16),0 10px 22px rgba(91,66,39,.10)!important;
  transform:translateY(-1px);
}
#depotTabs{display:flex;flex-wrap:wrap;gap:.5rem;background:transparent!important;padding:0!important;border:0!important;}
#depotTabs .pill{
  border-radius:16px!important;
  border:1px solid var(--line)!important;
  background:#fbf8f1!important;
  color:var(--text)!important;
  padding:.65rem .9rem!important;
  box-shadow:0 8px 18px rgba(84,64,45,.05);
}
#depotTabs .pill.active{
  background:#f4ead8!important;
  border-color:#9b7b54!important;
  box-shadow:0 0 0 2px rgba(155,123,84,.13),0 12px 24px rgba(84,64,45,.10)!important;
}
.stock-depot-products-head{align-items:flex-start;gap:1rem;}
.stock-depot-table-actions{flex-wrap:wrap;justify-content:flex-end;}
#depotProductSearch{min-width:320px;max-width:460px;}
@media(max-width:900px){#depotProductSearch{min-width:100%;}.stock-depot-table-actions{width:100%;justify-content:flex-start;}}


/* =========================================================
 * FIX16 — Aura Stock / Dépôts clean UI
 * =======================================================*/
.erp-brand-favicon{background:transparent!important;border:0!important;box-shadow:none!important;overflow:hidden;}
.erp-brand-favicon img{width:42px;height:42px;display:block;object-fit:contain;border-radius:14px;}
.aura-transition-logo{background:transparent!important;box-shadow:none!important;}
.aura-transition-logo img{width:86px;height:86px;object-fit:contain;border-radius:28px;filter:drop-shadow(0 18px 38px rgba(49,88,63,.22));}
#depotTabs.stock-depot-leaf-tabs,#depotTabs{display:flex!important;justify-content:flex-start!important;align-items:flex-end!important;flex-wrap:wrap!important;gap:0!important;padding:0 0 0 8px!important;margin-bottom:1rem!important;background:transparent!important;border:0!important;border-bottom:1px solid var(--line)!important;}
#depotTabs .depot-leaf,#depotTabs .pill{appearance:none!important;display:inline-flex!important;align-items:center!important;gap:.5rem!important;margin:0 4px -1px 0!important;padding:.72rem 1rem!important;border:1px solid var(--line)!important;border-bottom-color:var(--line)!important;border-radius:14px 14px 0 0!important;background:#fbf8f1!important;color:var(--text)!important;font-weight:800!important;box-shadow:none!important;cursor:pointer!important;}
#depotTabs .depot-leaf.active,#depotTabs .pill.active{background:var(--panel)!important;border-color:var(--line)!important;border-bottom-color:var(--panel)!important;color:var(--text)!important;box-shadow:0 -6px 18px rgba(84,64,45,.06)!important;position:relative!important;z-index:2!important;}
#depotTabs .pill-count{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:1.85rem!important;height:1.45rem!important;padding:0 .45rem!important;border-radius:999px!important;border:1px solid rgba(84,64,45,.12)!important;background:#f4ead8!important;font-size:.78rem!important;color:var(--text)!important;}
#tab-stocks .triple-col,#tab-stocks .values-col,#tab-stocks .mini-lists > div,#tab-stocks .kpi{background:#fbf8f1!important;border:1px solid var(--line)!important;border-radius:14px!important;padding:.9rem!important;}
#tab-stocks .triple.triple-soft,#tab-stocks .values-grid{gap:.75rem!important;}
#tab-stocks .triple-col .kpi{margin-top:.7rem!important;}
#tab-stocks .mini-lists{display:grid!important;grid-template-columns:1fr 1fr!important;gap:.75rem!important;}
#tab-stocks .table thead th,#depotProductsTable thead th{background:#395433!important;color:#fff!important;border-bottom-color:#2f462a!important;}
#depotProductsTable th[data-sort]{cursor:pointer!important;}
#depotProductsTable th[data-sort]:hover{filter:brightness(1.08);}
#depotProductsTitle{font-size:1.15rem;font-weight:900;}
#depotProductSearch{min-width:360px;}
.erp-module-link.active,.erp-module-link[aria-current="page"]{background:#f4ead8!important;border-color:#d7c4a8!important;color:#2f2a24!important;}
@media(max-width:900px){#tab-stocks .mini-lists{grid-template-columns:1fr!important;}#depotProductSearch{min-width:100%;}}


.sidebar-logo img { width: 85%; height: auto; object-fit: contain; display:block; margin:0 auto; max-width:120px; }

.sidebar-logo { display:flex; align-items:center; justify-content:center; padding:10px 0; max-height:60px; overflow:hidden; }


/* AURAOPS FIX18 — Stock finalisation */
.stock-depot-leaf-tabs{display:flex;align-items:flex-end;justify-content:flex-start;gap:.18rem;border-bottom:1px solid rgba(57,84,51,.28);padding-left:.15rem;margin-top:.2rem;}
.stock-depot-leaf-tabs .depot-leaf{border:1px solid rgba(57,84,51,.35);border-bottom:none;background:#395433;color:#fff;border-radius:12px 12px 0 0;padding:.55rem .85rem;font-weight:400;box-shadow:none;cursor:pointer;}
.stock-depot-leaf-tabs .depot-leaf .pill-code{font-weight:400;}
.stock-depot-leaf-tabs .depot-leaf.active{background:#efe6d6;color:#2f2a24;border-color:#d8c7ad;transform:translateY(1px);}
.stock-depot-leaf-tabs .depot-leaf .pill-count{margin-left:.4rem;opacity:.76;font-size:.82em;}
#depotProductsTable thead th{background:#395433!important;color:#fff!important;cursor:pointer;}
.stock-muted-card{opacity:.45;filter:grayscale(.65);}
.stock-depot-count-row{display:grid;grid-template-columns:auto 72px 38px;gap:.5rem;align-items:center;padding:.28rem .35rem;border-bottom:1px solid rgba(0,0,0,.06);}
.stock-depot-count-row.total{font-weight:800;border-top:1px solid rgba(0,0,0,.14);border-bottom:0;margin-top:.3rem;padding-top:.5rem;}
.stock-reset-selection{margin-top:.65rem;}
.stock-subcard{border:1px solid rgba(0,0,0,.08);background:rgba(255,255,255,.52);border-radius:14px;padding:.8rem;margin:.45rem 0;}
.stock-recent-row,.stock-receipt-row{display:grid;grid-template-columns:1fr auto;gap:.7rem;align-items:center;padding:.65rem .75rem;border:1px solid rgba(0,0,0,.08);border-radius:12px;background:rgba(255,255,255,.55);margin-bottom:.45rem;}
.stock-recent-row .btn.danger{border-color:rgba(150,40,40,.28);color:#8a2424;}
.stock-sold-banner{background:#a83232;color:#fff;font-weight:900;letter-spacing:.04em;border-radius:14px;padding:.8rem 1rem;margin:0 0 .8rem 0;text-align:center;box-shadow:0 10px 26px rgba(168,50,50,.18);}
.stock-identity-v18-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(270px,.72fr);gap:1rem;align-items:start;}
.stock-id-row{display:grid;gap:.7rem;margin-bottom:.7rem;}
.stock-id-row-3{grid-template-columns:1fr 1.2fr 1fr;}
.stock-id-bigcards .id-card{min-height:118px;}
.stock-identity-v18 .id-card{background:rgba(255,255,255,.62);border:1px solid rgba(0,0,0,.08);border-radius:14px;padding:.72rem .82rem;}
.stock-identity-v18 .id-label{font-size:.82rem;font-weight:700;color:#655b4d;margin-bottom:.2rem;}
.stock-identity-v18 .id-label-title{font-size:1rem;color:#2f2a24;}
.stock-identity-v18 .id-value{font-weight:800;color:#2f2a24;}
.id-subline{display:flex;justify-content:space-between;gap:.75rem;align-items:baseline;padding:.18rem 0;}
.stock-identity-v18-right{display:flex;flex-direction:column;gap:.8rem;align-items:stretch;}
.stock-qr-logo-card{position:relative;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:16px;min-height:190px;overflow:hidden;}
.stock-qr-logo-card img#qrImg{max-width:100%;height:auto;object-fit:contain;display:block;}
.qr-logo-overlay{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:38px;height:38px;border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:center;padding:4px;box-shadow:0 2px 8px rgba(0,0,0,.14);pointer-events:none;}
.qr-logo-overlay img{max-width:100%;max-height:100%;object-fit:contain;}
.stock-product-flags{border:1px solid rgba(0,0,0,.08);background:rgba(255,255,255,.62);border-radius:14px;padding:.75rem .85rem;font-size:.92rem;line-height:1.55;}
.web-dependent.is-disabled{opacity:.42;}
@media(max-width:1000px){.stock-identity-v18-grid{grid-template-columns:1fr}.stock-id-row-3{grid-template-columns:1fr}}


/* AURAOPS FIX19 — AuraStock détail lisibilité + thème clair */
#tab-detail .stock-identity-v18-grid{display:grid!important;grid-template-columns:minmax(0,2fr) minmax(300px,.72fr)!important;gap:1rem!important;align-items:start!important;}
#tab-detail .stock-id-row{display:grid!important;gap:.7rem!important;margin-bottom:.7rem!important;}
#tab-detail .stock-id-row-3{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr)!important;}
#tab-detail .stock-identity-v18-left{min-width:0!important;}
#tab-detail .stock-identity-v18-right{min-width:280px!important;}
#tab-detail .stock-identity-v18 .id-card,#tab-detail .pricing-col,#tab-detail .steps-grid li,#tab-detail #stock-suivi-list .row,#tab-detail .hype-card,#tab-detail .stock-hype-v18,#tab-detail .stock-product-flags{background:#fbf8f1!important;color:#2f2a24!important;border:1px solid var(--line, #d8c7ad)!important;box-shadow:none!important;}
#tab-detail .hype-card,#tab-detail .stock-hype-v18{background:#f8f2e8!important;}
#tab-detail .pricing-col .card-title,#tab-detail .steps-grid li strong,#tab-detail .id-label,#tab-detail label,#tab-detail .field label{color:#2f2a24!important;font-weight:800!important;}
#tab-detail .stock-identity-v18 .id-label{font-size:.95rem!important;letter-spacing:.01em!important;}
#tab-detail .stock-identity-v18 .id-label-title{font-size:1.08rem!important;font-weight:900!important;}
#tab-detail .id-value,#tab-detail .id-subline strong,#tab-detail .strong{color:#2f2a24!important;font-weight:800!important;}
#tab-detail .muted,#tab-detail .small,#tab-detail .id-subline span{color:#5f574d!important;}
#tab-detail .ring-bg{stroke:#ded4c4!important;}
#tab-detail .ring-letter{fill:#2f2a24!important;font-weight:900!important;}
#tab-detail .stock-sold-banner{color:#fff!important;}
#tab-detail .detail-bar{gap:.75rem;flex-wrap:wrap;}
@media(max-width:760px){#tab-detail .stock-identity-v18-grid{grid-template-columns:1fr!important;}#tab-detail .stock-id-row-3{grid-template-columns:1fr!important;}}


/* AURAOPS FIX20 — Stock detail active layout */
#tab-detail .stock-identity-v18-grid{display:grid!important;grid-template-columns:minmax(0,2fr) minmax(320px,.72fr)!important;gap:1rem!important;align-items:start!important;}
#tab-detail .stock-id-row{display:grid!important;gap:.75rem!important;margin-bottom:.75rem!important;}
#tab-detail .stock-id-row-3{grid-template-columns:minmax(0,1fr) minmax(0,1.18fr) minmax(0,1fr)!important;}
#tab-detail .stock-identity-v18 .id-card,#tab-detail .pricing-col,#tab-detail .steps-grid li,#tab-detail #stock-suivi-list .row,#tab-detail .hype-card,#tab-detail .stock-hype-v18,#tab-detail .stock-product-flags{background:#fbf8f1!important;color:#2f2a24!important;border:1px solid #d8c7ad!important;box-shadow:none!important;}
#tab-detail .stock-identity-v18 .id-label,#tab-detail .pricing-col .card-title,#tab-detail .steps-grid li strong,#tab-detail label,#tab-detail .field label{font-size:.98rem!important;color:#2f2a24!important;font-weight:900!important;letter-spacing:.01em!important;}
#tab-detail .stock-identity-v18 .id-label-title{font-size:1.1rem!important;font-weight:900!important;color:#2f2a24!important;}
#tab-detail .id-value,#tab-detail .id-subline strong,#tab-detail .strong{color:#2f2a24!important;font-weight:800!important;}
#tab-detail .muted,#tab-detail .small,#tab-detail .id-subline span{color:#5f574d!important;}
#tab-detail .ring-bg{stroke:#ded4c4!important;}
#tab-detail .ring-letter{fill:#2f2a24!important;font-weight:900!important;}
@media(max-width:980px){#tab-detail .stock-identity-v18-grid{grid-template-columns:1fr!important;}#tab-detail .stock-id-row-3{grid-template-columns:1fr!important;}}

/* ===== Security Manager V2 ===== */
.smv2-wrap{color:#2f2a24}.smv2-panel{display:none}.smv2-panel.active{display:block}.smv2-admin-grid{display:grid;grid-template-columns:260px minmax(420px,1fr) 330px;gap:16px;align-items:start}.smv2-card{background:#fbfaf6;border:1px solid #ded3c2;border-radius:18px;padding:16px;box-shadow:0 10px 24px rgba(47,42,36,.06);color:#2f2a24}.smv2-card h2,.smv2-card h3{margin:.1rem 0 .35rem;color:#2f2a24}.smv2-card p{color:#665c50}.smv2-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:14px}.smv2-btn{border:0;border-radius:12px;background:#395433;color:#fff!important;padding:9px 13px;text-decoration:none;cursor:pointer;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:6px}.smv2-btn.small{padding:7px 10px;font-size:.85rem}.smv2-btn.secondary{background:#d8cdbd;color:#2f2a24!important}.smv2-btn.danger{background:#7e2f2a;color:#fff!important}.smv2-btn.large{font-size:1rem;padding:13px 16px;width:100%;margin:10px 0}.smv2-role-list,.smv2-user-list{display:grid;gap:10px}.smv2-role{width:100%;text-align:left;border:1px solid #ddd1bf;border-radius:14px;background:#f6f2eb;padding:12px;color:#2f2a24;cursor:pointer;display:grid;gap:3px;font-weight:400}.smv2-role strong{font-size:1rem}.smv2-role span,.smv2-role small{color:#665c50}.smv2-role.active{background:#e7dccb;border-color:#bda98f}.smv2-permission-catalog{max-height:70vh;overflow:auto;padding-right:6px}.smv2-perm-module{border:1px solid #e1d7c8;border-radius:16px;background:#fffdf8;padding:12px;margin-bottom:12px}.smv2-perm-module h3{font-size:1.05rem}.smv2-perm-row{display:grid;grid-template-columns:auto 1fr 70px;gap:10px;align-items:center;padding:9px 6px;border-top:1px solid #eee6da;color:#2f2a24}.smv2-perm-row:first-of-type{border-top:0}.smv2-perm-main{display:grid}.smv2-perm-main strong{font-size:.95rem;color:#2f2a24}.smv2-perm-main small{color:#6b6257}.smv2-perm-row em{font-style:normal;color:#fff;background:#395433;border-radius:999px;padding:3px 7px;text-align:center;font-size:.73rem}.smv2-user-card{background:#f8f3eb;border:1px solid #e0d4c2;border-radius:14px;padding:12px;display:grid;gap:7px;color:#2f2a24}.smv2-user-card strong{font-size:1rem}.smv2-user-card span,.smv2-user-card small{color:#665c50}.smv2-user-meta{display:flex;gap:6px;flex-wrap:wrap}.smv2-user-meta span{background:#e7dccb;border-radius:999px;padding:3px 7px;font-size:.75rem}.smv2-link{border:0;background:transparent;color:#395433;text-decoration:underline;cursor:pointer;text-align:left;padding:0;font-weight:700}.smv2-filters{display:flex;gap:10px;margin:10px 0}.smv2-filters input,.smv2-filters select,.smv2-form input,.smv2-form select,.smv2-form textarea{border:1px solid #d8cdbd;background:#fffdf8;color:#2f2a24;border-radius:12px;padding:9px;width:100%;box-sizing:border-box}.smv2-table-wrap{overflow:auto}.smv2-table{width:100%;border-collapse:separate;border-spacing:0}.smv2-table th{background:#395433;color:#fff;text-align:left;padding:9px;white-space:nowrap}.smv2-table td{background:#fffdf8;border-bottom:1px solid #e6dccf;padding:9px;color:#2f2a24}.smv2-connect-head{background:#fbfaf6;border:1px solid #ded3c2;border-radius:18px;padding:16px;margin-bottom:14px}.smv2-connectors-grid{display:grid;grid-template-columns:repeat(2,minmax(280px,1fr));gap:16px}.smv2-connector-group{min-height:150px}.smv2-connector{width:100%;border:1px solid #ddd1bf;background:#f8f3eb;border-radius:14px;padding:10px;margin:7px 0;display:grid;grid-template-columns:1fr auto;gap:4px;text-align:left;color:#2f2a24;cursor:pointer}.smv2-connector strong{grid-column:1/2}.smv2-connector span{color:#665c50}.smv2-connector em{grid-column:2;grid-row:1/3;border-radius:999px;background:#d8cdbd;color:#2f2a24;padding:4px 8px;font-style:normal;align-self:center}.smv2-connector em.connected,.smv2-connector em.healthy{background:#395433;color:#fff}.smv2-connector em.pending,.smv2-connector em.offline,.smv2-connector em.warning,.smv2-connector em.degraded{background:#b7653b;color:#fff}.smv2-safety-grid{display:grid;grid-template-columns:330px 1fr;gap:16px}.smv2-wide{grid-column:1/-1}.smv2-shield-card{text-align:center}.smv2-shield{font-size:64px;line-height:1}.smv2-nas{display:grid;gap:8px;background:#f8f3eb;border:1px solid #e0d4c2;border-radius:14px;padding:12px}.smv2-list{display:grid;gap:10px}.smv2-event{border:1px solid #e0d4c2;background:#f8f3eb;border-radius:14px;padding:11px;color:#2f2a24}.smv2-event span{display:block;color:#665c50;font-size:.85rem}.smv2-event p{margin:.35rem 0 0}.smv2-modal.hidden{display:none}.smv2-modal{position:fixed;inset:0;background:rgba(25,22,18,.45);display:flex;align-items:center;justify-content:center;z-index:9999;padding:24px}.smv2-modal-card{background:#fffdf8;color:#2f2a24;border-radius:22px;max-width:720px;width:100%;max-height:86vh;overflow:auto;padding:22px;position:relative;box-shadow:0 30px 80px rgba(0,0,0,.28)}.smv2-modal-close{position:absolute;right:12px;top:10px;border:0;background:#e7dccb;border-radius:999px;width:32px;height:32px;cursor:pointer}.smv2-form{display:grid;gap:11px}.smv2-temp-pass{margin-top:12px;padding:12px;border-radius:14px;background:#f1eadf;border:1px solid #dacdbc;display:grid;gap:6px}.smv2-temp-pass code{font-size:1.05rem;color:#7e2f2a;background:#fff;padding:6px;border-radius:8px}@media(max-width:1100px){.smv2-admin-grid,.smv2-safety-grid{grid-template-columns:1fr}.smv2-connectors-grid{grid-template-columns:1fr}}

/* AuraOps intermodule diagnostic grading */
.diag-grading-grid { overflow-x: auto; margin-top: .4rem; }
.diag-grade-table { min-width: 680px; border: 1px solid rgba(80,70,55,.18); border-radius: 14px; overflow: hidden; }
.diag-grade-row { display: grid; grid-template-columns: 150px repeat(5, minmax(90px, 1fr)); align-items: center; border-top: 1px solid rgba(80,70,55,.12); }
.diag-grade-row:first-child { border-top: 0; }
.diag-grade-row > div { padding: .55rem .6rem; }
.diag-grade-head { font-weight: 700; background: rgba(83, 111, 74, .08); }
.diag-grade-check { display: flex; justify-content: center; align-items: center; padding: .55rem .6rem; min-height: 38px; }
.diag-grade-check input { width: 18px; height: 18px; }


/* AURAOPS SMARTTASKS + PROFILE FIX 2026-04-29 */
.hidden{display:none!important;}
.erp-topbar .icon-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;color:#2f2a24;}
.aura-modal.hidden,.aura-task-modal.hidden{display:none!important;}
.aura-modal,.aura-task-modal{position:fixed;inset:0;z-index:10000;background:rgba(28,24,18,.46);display:flex;align-items:flex-start;justify-content:flex-end;padding:76px 18px 18px;box-sizing:border-box;}
.aura-modal-card,.aura-task-card{width:min(760px,calc(100vw - 36px));max-height:calc(100vh - 100px);overflow:auto;background:#fffdf8!important;color:#2f2a24!important;border:1px solid #d8c7ad;border-radius:22px;box-shadow:0 28px 90px rgba(0,0,0,.28);padding:18px;}
.aura-modal-head,.aura-task-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;color:#2f2a24;}
.aura-modal-close,.aura-task-close{border:0;background:#e9dfcf;color:#2f2a24;border-radius:999px;width:34px;height:34px;cursor:pointer;font-size:1.2rem;}
.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:12px;}
#aura-profile-form label,.aura-task-form label{display:grid;gap:6px;font-weight:800;color:#2f2a24;}
#aura-profile-form input,#aura-profile-form textarea,.aura-task-form input,.aura-task-form textarea,.aura-task-form select{width:100%;box-sizing:border-box;border:1px solid #d8c7ad;background:#fffaf1;color:#2f2a24;border-radius:12px;padding:10px;}
#aura-profile-form input:disabled{background:#e8e1d4;color:#665c50;}
.modal-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px;align-items:center;}
@media(max-width:760px){.profile-grid{grid-template-columns:1fr}.aura-modal,.aura-task-modal{justify-content:center;padding-top:18px}.aura-modal-card,.aura-task-card{max-height:calc(100vh - 36px)}}
.generic-model-choice{width:100%;display:grid!important;grid-template-columns:1fr auto;gap:6px;text-align:left!important;background:#fffaf1!important;color:#2f2a24!important;border:1px solid #d8c7ad!important;margin:.28rem 0!important;padding:.65rem .75rem!important;border-radius:12px!important;}
.generic-model-choice strong{color:#2f2a24!important;font-weight:900!important;}
.generic-model-choice .muted,.generic-model-choice span{color:#5f574d!important;}
.generic-model-choice.is-temporary{border-style:dashed!important;background:#f8f0df!important;}
.generic-model-selected{margin-top:.35rem;padding:.48rem .65rem;border:1px solid #d8c7ad;border-radius:12px;background:#f8f0df;color:#2f2a24;font-weight:800;}
.smarttasks-wrap{color:#2f2a24}.smarttasks-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:14px}.smarttasks-head h2{margin:.1rem 0 .25rem;color:#2f2a24}.smarttasks-grid{display:grid;grid-template-columns:1fr 1fr 1.1fr;gap:14px;align-items:start}.smarttasks-col{min-height:520px}.smarttasks-list{display:grid;gap:10px;margin-top:10px}.smarttask-card{background:#fffaf1;border:1px solid #d8c7ad;border-radius:16px;padding:12px;color:#2f2a24;box-shadow:0 8px 20px rgba(47,42,36,.05)}.smarttask-top,.smarttask-meta{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.smarttask-card h3{font-size:1rem;margin:.45rem 0;color:#2f2a24}.smarttask-card p{color:#5f574d}.smarttask-meta{font-size:.85rem;color:#665c50;margin:.4rem 0}.smarttask-actions{margin-top:.55rem}.smarttasks-list.detailed .smarttask-card{background:#fbf4e8}@media(max-width:1100px){.smarttasks-grid{grid-template-columns:1fr}.smarttasks-col{min-height:unset}.smarttasks-head{display:grid}}


/* LOGIN_RUNTIME_FIX — the backend /auth/login is authoritative. Hide legacy local overlay on authenticated pages. */
#aura-login[aria-hidden="true"],
#aura-login.hidden,
#aura-login[inert] {
  display: none !important;
  pointer-events: none !important;
}
.aura-modal.hidden,
.aura-modal[aria-hidden="true"],
.aura-modal[inert] {
  display: none !important;
  pointer-events: none !important;
}

/* SMARTTASKS CLICK FIX 2026-04-29 */
.erp-topbar,.top-actions{position:relative;z-index:500;}
#smarttasks-open-btn{pointer-events:auto!important;position:relative;z-index:501;}
#smarttasks-open-btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(47,42,36,.12);}
.smarttasks-route-debug{font-size:.85rem;color:#6b6257;margin-top:8px;}

/* SMARTTASKS MODAL FRONT — 2026-04-29 */
.smarttasks-panel-modal.hidden{display:none!important;}
.smarttasks-panel-modal{position:fixed;inset:0;z-index:12000;display:block;}
.smarttasks-panel-backdrop{position:absolute;inset:0;background:rgba(28,24,18,.38);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);}
.smarttasks-panel-card{position:absolute;top:72px;right:20px;width:min(1180px,calc(100vw - 40px));max-height:calc(100vh - 96px);overflow:auto;background:#fffdf8;color:#2f2a24;border:1px solid #d8c7ad;border-radius:26px;box-shadow:0 30px 100px rgba(0,0,0,.30);padding:18px;}
.smarttasks-panel-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:14px;}
.smarttasks-panel-head h2{margin:.1rem 0 .25rem;color:#2f2a24;}
.smarttasks-panel-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #e2d5c3;}
.smarttasks-panel-day{display:flex;gap:8px;align-items:center;margin-left:auto;font-weight:800;color:#2f2a24;}
.smarttasks-panel-day .input{width:auto;min-width:160px;background:#fffaf1;color:#2f2a24;border-color:#d8c7ad;}
.smarttasks-panel-grid{display:grid;grid-template-columns:1fr 1fr 1.1fr;gap:14px;align-items:start;}
.smarttasks-panel-card .block{background:#f8f0df!important;color:#2f2a24!important;border:1px solid #d8c7ad!important;border-radius:20px;}
.smarttasks-panel-card .block-head{color:#2f2a24;}
.smarttasks-panel-card .empty-state{padding:14px;border:1px dashed #d8c7ad;border-radius:14px;color:#665c50;background:#fffaf1;}
.smarttasks-panel-card .empty-state.danger{border-color:#b56565;color:#7b2d2d;}
body.smarttasks-open .erp-main,body.smarttasks-open .erp-sidebar{filter:blur(2px);}
@media(max-width:1100px){.smarttasks-panel-card{top:14px;right:14px;left:14px;width:auto;max-height:calc(100vh - 28px)}.smarttasks-panel-grid{grid-template-columns:1fr}.smarttasks-panel-day{margin-left:0}.smarttasks-panel-head{display:grid}}

/* SmartTasks global overlay/dock fix — 2026-04-29 */
.erp-module-nav .erp-module-link[data-slug="smarttasks"],
.erp-module-nav .erp-module-link[data-slug="smartasks"]{display:none!important;}
#smarttasks-open-btn{pointer-events:auto!important;cursor:pointer!important;position:relative;z-index:650!important;color:#2f2a24!important;background:#fffaf1!important;border:1px solid #d8c7ad!important;}
.smarttasks-live-dock{position:fixed;top:86px;right:18px;width:310px;z-index:8500;color:#211d18;font-family:inherit;}
.smarttasks-dock-head{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #c9b99f;background:#fffaf1;color:#211d18;border-radius:18px 18px 12px 12px;padding:10px 12px;font-weight:900;box-shadow:0 12px 30px rgba(47,42,36,.16);cursor:pointer;}
.smarttasks-dock-head span,.smarttasks-dock-head strong{color:#211d18!important;}
.smarttasks-dock-head strong{min-width:28px;height:28px;border-radius:999px;background:#2f4d38;color:#fff!important;display:inline-flex;align-items:center;justify-content:center;font-size:.82rem;}
.smarttasks-dock-body{background:#fffdf8;color:#211d18;border:1px solid #c9b99f;border-top:0;border-radius:0 0 18px 18px;box-shadow:0 18px 38px rgba(47,42,36,.14);padding:10px;display:grid;gap:8px;}
.smarttasks-live-dock.is-collapsed .smarttasks-dock-body{display:none;}
.smarttasks-dock-list{display:grid;gap:7px;max-height:260px;overflow:auto;}
.smarttasks-dock-item{appearance:none;text-align:left;width:100%;border:1px solid #e0d2bd;background:#f8f0df;color:#211d18;border-radius:12px;padding:9px;cursor:pointer;display:grid;gap:3px;}
.smarttasks-dock-item:hover{background:#efe0c7;transform:translateY(-1px);}
.smarttasks-dock-item strong{color:#211d18!important;font-size:.9rem;line-height:1.2;}
.smarttasks-dock-item small{color:#51483d!important;font-size:.76rem;line-height:1.2;}
.smarttasks-dock-empty{color:#51483d;background:#f8f0df;border:1px dashed #d8c7ad;border-radius:12px;padding:10px;font-size:.86rem;}
.smarttasks-dock-empty.danger{color:#7b2d2d;border-color:#b56565;background:#fff5f5;}
.smarttasks-panel-modal.hidden,.aura-task-modal.hidden{display:none!important;}
.smarttasks-panel-modal{position:fixed;inset:0;z-index:12000;display:block;color:#211d18!important;}
.smarttasks-panel-backdrop{position:absolute;inset:0;background:rgba(28,24,18,.38);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);}
.smarttasks-panel-card{position:absolute;top:72px;right:20px;width:min(1180px,calc(100vw - 40px));max-height:calc(100vh - 96px);overflow:auto;background:#fffdf8!important;color:#211d18!important;border:1px solid #d8c7ad;border-radius:26px;box-shadow:0 30px 100px rgba(0,0,0,.30);padding:18px;}
.smarttasks-panel-card *,.aura-task-card *{color:#211d18;}
.smarttasks-panel-card .muted,.aura-task-card .muted{color:#5d554b!important;}
.smarttasks-panel-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:14px;}
.smarttasks-panel-head h2{margin:.1rem 0 .25rem;color:#211d18!important;}
.smarttasks-panel-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #e2d5c3;}
.smarttasks-panel-day{display:flex;gap:8px;align-items:center;margin-left:auto;font-weight:800;color:#211d18!important;}
.smarttasks-panel-day .input{width:auto;min-width:160px;background:#fffaf1!important;color:#211d18!important;border-color:#d8c7ad!important;}
.smarttasks-panel-grid{display:grid;grid-template-columns:1fr 1fr 1.1fr;gap:14px;align-items:start;}
.smarttasks-panel-card .block{background:#f8f0df!important;color:#211d18!important;border:1px solid #d8c7ad!important;border-radius:20px;}
.smarttasks-panel-card .block-head{color:#211d18!important;}
.smarttask-card{background:#fffaf1!important;border:1px solid #d8c7ad!important;border-radius:16px;padding:12px;color:#211d18!important;box-shadow:0 8px 20px rgba(47,42,36,.05);}
.smarttask-card h3{color:#211d18!important;}
.smarttask-card p,.smarttask-meta{color:#5d554b!important;}
.smarttasks-panel-card .empty-state{padding:14px;border:1px dashed #d8c7ad;border-radius:14px;color:#51483d!important;background:#fffaf1!important;}
.smarttasks-panel-card .empty-state.danger{border-color:#b56565;color:#7b2d2d!important;}
.aura-task-modal{position:fixed;inset:0;background:rgba(28,24,18,.32);backdrop-filter:blur(4px);z-index:13000;display:flex;align-items:center;justify-content:center;padding:18px;}
.aura-task-card{width:min(560px,calc(100vw - 36px));background:#fffdf8!important;color:#211d18!important;border:1px solid #d8c7ad;border-radius:22px;box-shadow:0 24px 90px rgba(0,0,0,.28);padding:16px;}
.aura-task-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;}
.aura-task-form{display:grid;gap:10px;}
.aura-task-form label{display:grid;gap:5px;font-weight:800;color:#211d18!important;}
.aura-task-form input,.aura-task-form select,.aura-task-form textarea{background:#fffaf1!important;color:#211d18!important;border:1px solid #d8c7ad!important;border-radius:12px;padding:10px;}
body.smarttasks-open .erp-main,body.smarttasks-open .erp-sidebar{filter:blur(2px);}
@media(max-width:1100px){.smarttasks-live-dock{right:10px;top:auto;bottom:12px;width:min(330px,calc(100vw - 20px));}.smarttasks-panel-card{top:14px;right:14px;left:14px;width:auto;max-height:calc(100vh - 28px)}.smarttasks-panel-grid{grid-template-columns:1fr}.smarttasks-panel-day{margin-left:0}.smarttasks-panel-head{display:grid}}

/* SmartTasks dock UX fix — draggable, minimizable, grouped lists */
.smarttasks-live-dock{touch-action:none;}
.smarttasks-live-dock.is-minimized{display:none!important;}
.smarttasks-live-dock.is-dragging{opacity:.96;user-select:none;}
.smarttasks-dock-head{cursor:grab!important;}
.smarttasks-dock-head:active{cursor:grabbing!important;}
.smarttasks-dock-title{display:inline-flex;align-items:center;gap:6px;color:#211d18!important;}
.smarttasks-dock-controls{display:inline-flex;align-items:center;gap:8px;margin-left:auto;}
.smarttasks-dock-minimize{width:28px;height:28px;border-radius:999px;border:1px solid #c9b99f;background:#f8f0df;color:#211d18!important;font-weight:900;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;}
.smarttasks-dock-minimize:hover{background:#eadac1;}
.smarttasks-dock-section{display:grid;gap:7px;margin-bottom:8px;}
.smarttasks-dock-section:last-child{margin-bottom:0;}
.smarttasks-dock-section-title{display:flex;justify-content:space-between;align-items:center;font-size:.76rem;font-weight:900;text-transform:uppercase;letter-spacing:.04em;color:#4d453a!important;padding:3px 2px 1px;}
.smarttasks-dock-section-title span{background:#e7dcc8;color:#211d18!important;border-radius:999px;padding:1px 7px;font-size:.72rem;}
.smarttasks-dock-item.is-in-progress{border-color:#d18421!important;background:#fff0d6!important;box-shadow:inset 4px 0 0 #d18421;}
.smarttasks-dock-item.is-in-progress small{color:#8a4d0d!important;font-weight:800;}
.auraops-task-highlight{outline:3px solid #d18421!important;box-shadow:0 0 0 6px rgba(209,132,33,.18),0 12px 32px rgba(209,132,33,.16)!important;animation:auraopsTaskPulse 1.4s ease-in-out 3;}
@keyframes auraopsTaskPulse{0%,100%{filter:brightness(1)}50%{filter:brightness(1.08)}}


/* SmartTasks dock move/copy UX fix */
.smarttasks-live-dock.is-move-mode{outline:3px solid rgba(209,132,33,.55);box-shadow:0 0 0 9999px rgba(47,42,36,.04);cursor:move!important;}
.smarttasks-dock-head{position:relative;}
.smarttasks-live-dock.is-move-mode .smarttasks-dock-head::after{content:"Déplacement actif · cliquez pour figer";position:absolute;left:10px;right:10px;top:calc(100% + 6px);background:#fff0d6;border:1px solid #d18421;color:#6f3f0b!important;font-size:.72rem;font-weight:900;border-radius:999px;padding:4px 8px;text-align:center;box-shadow:0 8px 22px rgba(47,42,36,.16);pointer-events:none;}
.smarttasks-live-dock:not(.is-move-mode) .smarttasks-dock-head{cursor:pointer!important;}
.aura-copy-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(12px);background:#2f4d38;color:#fff;border-radius:999px;padding:8px 14px;font-weight:900;font-size:.86rem;box-shadow:0 14px 34px rgba(47,42,36,.22);z-index:12000;opacity:0;pointer-events:none;transition:opacity .16s ease, transform .16s ease;}
.aura-copy-toast.is-visible{opacity:1;transform:translateX(-50%) translateY(0);}

/* SmartTasks / Repairs pending diagnostics fix */
.pending-diagnostics-card{margin-bottom:1rem;background:#fffdf8;color:#211d18!important;}
.pending-diagnostics-list{display:grid;gap:.55rem;}
.pending-diagnostic-item{appearance:none;width:100%;text-align:left;border:1px solid #d8c7ad;background:#f8f0df;color:#211d18!important;border-radius:14px;padding:.75rem .9rem;display:grid;gap:.25rem;cursor:pointer;}
.pending-diagnostic-item strong{color:#211d18!important;}
.pending-diagnostic-item span{color:#443c32!important;}
.pending-diagnostic-item small{color:#6d6255!important;}
.pending-diagnostic-item:hover{background:#efe0c7;transform:translateY(-1px);}
.pending-diagnostic-item.is-highlighted{border-color:#d18421!important;background:#fff0d6!important;box-shadow:0 0 0 3px rgba(209,132,33,.24), inset 5px 0 0 #d18421;}
.smarttasks-dock-body{display:grid!important;}
.smarttasks-live-dock.is-collapsed .smarttasks-dock-body{display:none!important;}
.smarttasks-live-dock.is-minimized{display:none!important;}
.smarttasks-dock-list{min-height:42px;}

/* AuraStock Shopify anti-doublon + état publication */
.stock-online-banner{margin:.7rem 0 1rem 0;padding:.85rem 1rem;border-radius:16px;background:#e4f0ff;border:1px solid #8bbcff;color:#123a66;display:flex;gap:.75rem;align-items:center;justify-content:space-between;box-shadow:0 8px 18px rgba(42,103,178,.10)}
.stock-online-banner[hidden]{display:none!important}.stock-online-banner strong{font-size:.95rem;letter-spacing:.04em}.stock-online-banner span{font-size:.85rem;color:#2d5d91}.btn.is-loading{position:relative;opacity:.78;cursor:wait;pointer-events:none}.btn.is-loading::before{content:"";width:13px;height:13px;border-radius:999px;border:2px solid currentColor;border-right-color:transparent;display:inline-block;margin-right:.45rem;vertical-align:-2px;animation:auraops-spin .72s linear infinite}@keyframes auraops-spin{to{transform:rotate(360deg)}}

/* Security Manager — connecteur Shopify détaillé */
.smv2-shopify-modal{display:grid;gap:14px}.smv2-shopify-hero{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:14px;border-radius:18px;background:#eef7ee;border:1px solid #bdd8b9}.smv2-shopify-hero.error{background:#fff1ee;border-color:#e1b4a8}.smv2-shopify-status{font-weight:800;border-radius:999px;padding:6px 10px;background:#395433;color:#fff}.smv2-shopify-kpis{display:grid;grid-template-columns:repeat(4,minmax(110px,1fr));gap:10px}.smv2-shopify-kpi{border:1px solid #e1d7c8;background:#fffdf8;border-radius:14px;padding:10px;display:grid;gap:4px}.smv2-shopify-kpi small{color:#6b6257}.smv2-shopify-kpi strong{font-size:1.15rem;color:#2f2a24}.smv2-exchange-list{display:grid;gap:8px;max-height:360px;overflow:auto}.smv2-exchange{border:1px solid #e1d7c8;background:#f8f3eb;border-radius:14px;padding:10px}.smv2-exchange-head{display:flex;justify-content:space-between;gap:8px;align-items:center}.smv2-exchange-head strong{color:#2f2a24}.smv2-exchange-head em{font-style:normal;border-radius:999px;padding:3px 8px;background:#395433;color:#fff}.smv2-exchange-head em.error{background:#7e2f2a}.smv2-exchange pre{white-space:pre-wrap;word-break:break-word;background:#fffdf8;border:1px solid #eadfce;border-radius:12px;padding:8px;max-height:220px;overflow:auto}.smv2-shopify-actions{display:flex;gap:8px;flex-wrap:wrap}@media(max-width:820px){.smv2-shopify-kpis{grid-template-columns:1fr 1fr}.smv2-shopify-hero{grid-template-columns:1fr}}

/* Shopify publication preview */
.shopify-preview-overlay{position:fixed;inset:0;background:rgba(16,24,39,.55);z-index:9999;display:flex;align-items:center;justify-content:center;padding:1.25rem}
.shopify-preview-modal{width:min(1100px,96vw);max-height:92vh;overflow:auto;background:#fff;border-radius:24px;box-shadow:0 28px 80px rgba(0,0,0,.28);border:1px solid rgba(32,42,58,.10)}
.shopify-preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1.1rem 1.25rem;border-bottom:1px solid rgba(32,42,58,.10);background:#f8faf7;position:sticky;top:0;z-index:2}
.shopify-preview-body{display:grid;grid-template-columns:minmax(280px,.9fr) minmax(360px,1.1fr);gap:1.1rem;padding:1.25rem}
.shopify-preview-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.shopify-preview-gallery img{width:100%;height:210px;object-fit:cover;border-radius:18px;border:1px solid rgba(32,42,58,.10);background:#f3f4f1}.shopify-preview-gallery .empty{grid-column:1/-1;padding:2rem;border:1px dashed rgba(32,42,58,.25);border-radius:18px;text-align:center;color:#64705d}
.shopify-preview-card{border:1px solid rgba(32,42,58,.10);border-radius:20px;padding:1rem;background:#fff}.shopify-preview-title{font-size:1.55rem;line-height:1.2;margin:0 0 .45rem 0}.shopify-preview-price{font-size:1.25rem;font-weight:800;margin:.35rem 0 1rem 0}.shopify-preview-meta{display:flex;flex-wrap:wrap;gap:.4rem;margin:.65rem 0}.shopify-preview-pill{border:1px solid rgba(32,42,58,.12);background:#f4f7f1;border-radius:999px;padding:.28rem .55rem;font-size:.78rem;color:#2c3a27}.shopify-preview-desc{font-size:.95rem;line-height:1.55;color:#263126}.shopify-preview-actions{display:flex;justify-content:flex-end;gap:.65rem;padding:1rem 1.25rem;border-top:1px solid rgba(32,42,58,.10);background:#fff;position:sticky;bottom:0}
@media(max-width:820px){.shopify-preview-body{grid-template-columns:1fr}.shopify-preview-gallery img{height:160px}}

.shopify-preview-overlay.is-publishing .shopify-preview-modal{pointer-events:auto}.shopify-preview-overlay.is-publishing .shopify-preview-card{opacity:.88}.shopify-preview-overlay.is-publishing #shopifyPreviewCancel{opacity:.45;cursor:not-allowed}

.shopify-preview-overlay[hidden]{display:none!important}
.shopify-preview-cancel{background:#f7f3ea!important;color:#1f2933!important;border:1px solid rgba(32,42,58,.24)!important;box-shadow:none!important}
.shopify-preview-cancel:hover{background:#efe7d7!important;color:#111827!important}
.shopify-preview-head{justify-content:flex-start}
.shopify-preview-overlay.is-publishing #shopifyPreviewCancel{opacity:.45;cursor:not-allowed}

/* AuraOps V1.8 — Global Search overlay */
.aura-search-overlay.hidden{display:none!important;}
.aura-search-overlay{position:fixed;inset:0;z-index:6200;display:flex;align-items:flex-start;justify-content:center;padding:8vh 24px 24px;}
.aura-search-backdrop{position:absolute;inset:0;background:rgba(38,29,18,.32);backdrop-filter:blur(5px);}
.aura-search-panel{position:relative;width:min(1040px,96vw);max-height:84vh;overflow:auto;border:1px solid var(--line);border-radius:28px;background:rgba(255,250,241,.97);box-shadow:0 28px 90px rgba(52,39,24,.32);padding:20px;}
.aura-search-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:12px;}
.aura-search-head h2{margin:.05rem 0 .25rem;color:var(--text);}
.aura-search-close{color:var(--text)!important;background:#fffdf8!important;border-color:var(--line2)!important;}
.aura-search-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px;}
.aura-search-results{display:grid;gap:14px;}
.aura-search-group{border:1px solid var(--line);border-radius:20px;background:#fffdf8;padding:12px;}
.aura-search-group-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;color:var(--text);}
.aura-search-list{display:grid;gap:8px;}
.aura-search-card{display:flex;align-items:center;justify-content:space-between;gap:14px;text-decoration:none;color:var(--text);border:1px solid #eadcc8;border-radius:16px;background:#fffaf1;padding:12px;transition:transform .12s ease, border-color .12s ease, background .12s ease;}
.aura-search-card:hover{transform:translateY(-1px);border-color:var(--accent);background:#f6eddc;}
.aura-search-card-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:5px;}
.aura-search-card strong{display:block;font-size:.98rem;}
.aura-search-card p{margin:3px 0 7px;color:var(--muted);}
.aura-search-open{white-space:nowrap;color:var(--accent);font-weight:800;font-size:.86rem;}
.danger{color:#9b2c2c!important;}
@media (max-width:720px){.aura-search-overlay{padding:10px}.aura-search-panel{max-height:92vh;border-radius:22px}.aura-search-head{flex-direction:column}.aura-search-card{align-items:flex-start;flex-direction:column}.aura-search-open{align-self:flex-end}}


/* === AuraOps Dashboard Patch 5 V1.8 === */
.dashboard-v18{display:grid;gap:1rem}.dashboard-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem}.dashboard-toolbar h2{margin:.15rem 0}.dashboard-actions{display:flex;gap:.6rem;flex-wrap:wrap}.dashboard-widget-picker{border-style:dashed}.dashboard-widget-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.7rem}.dash-widget-option{border:1px solid var(--line);border-radius:14px;padding:.85rem;text-align:left;background:rgba(255,255,255,.04);color:inherit;cursor:pointer}.dash-widget-option:disabled{opacity:.45;cursor:not-allowed}.dash-widget-option small{display:block;color:var(--muted);margin-top:.25rem}.dashboard-grid-v18{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.dash-widget{min-height:170px}.dash-size-small{grid-column:span 1}.dash-size-medium{grid-column:span 2}.dash-size-large{grid-column:span 4}.dash-widget-controls{display:flex;gap:.3rem}.dash-widget-controls button{border:1px solid var(--line);background:rgba(255,255,255,.08);color:inherit;border-radius:9px;min-width:28px;height:28px;cursor:pointer}.dash-big{font-size:2.7rem;font-weight:800;line-height:1}.dash-link{display:inline-flex;margin-top:.6rem;color:var(--accent);font-weight:700;text-decoration:none}.dash-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;margin:.65rem 0}.dash-kpis span{border:1px solid var(--line);border-radius:14px;padding:.7rem;background:rgba(255,255,255,.035)}.dash-kpis b{display:block;font-size:1.15rem}.dash-kpis small{color:var(--muted)}.dash-status{display:inline-flex;border-radius:999px;padding:.3rem .7rem;font-weight:800;margin:.4rem 0}.dash-status.ok{background:#143b2b;color:#8df0bd}.dash-status.warn{background:#493719;color:#facc15}.dash-list{display:grid;gap:.55rem}.dash-list a,.dash-list>div{display:grid;gap:.15rem;border:1px solid var(--line);border-radius:12px;padding:.65rem;text-decoration:none;color:inherit;background:rgba(255,255,255,.03)}.dash-list span{font-size:.75rem;color:var(--accent);font-weight:800;text-transform:uppercase}.dash-list small{color:var(--muted)}.dash-progress{height:9px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.09);margin:.55rem 0}.dash-progress span{display:block;height:100%;background:var(--accent);border-radius:inherit}.dashboard-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.75rem}.dash-day{min-height:140px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.03);padding:.75rem;display:grid;align-content:start;gap:.55rem}.dash-day.today{border-color:var(--accent);box-shadow:0 0 0 2px rgba(124,185,142,.16)}.dash-day a{display:block;padding:.45rem;border-radius:10px;background:rgba(255,255,255,.05);color:inherit;text-decoration:none;margin-bottom:.4rem}.dash-day small{display:block;color:var(--muted)}.dashboard-google-card{border-left:4px solid var(--accent)}.dashboard-stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.dash-stat-wide{grid-column:span 2}.dash-country-list{display:grid;gap:.45rem;margin:0;padding:0;list-style:none}.dash-country-list li{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:.35rem 0}@media (max-width:1200px){.dashboard-grid-v18,.dashboard-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-size-small,.dash-size-medium,.dash-size-large,.dash-stat-wide{grid-column:span 2}.dashboard-calendar{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:760px){.dashboard-toolbar{align-items:flex-start;flex-direction:column}.dashboard-grid-v18,.dashboard-stats-grid,.dashboard-calendar{grid-template-columns:1fr}.dash-size-small,.dash-size-medium,.dash-size-large,.dash-stat-wide{grid-column:span 1}}

/* Patch 5.1 — Dashboard planning/stats visibility + reset readability */
.tab-panel.dashboard-v18:not(.active){display:none !important;}
.tab-panel.dashboard-v18.active{display:grid !important;}
#dashboard-reset.btn, #dashboard-reset.btn.ghost{background:#f4d35e !important;color:#1f2933 !important;border-color:#d6a600 !important;font-weight:800;}
#dashboard-reset.btn:hover{filter:brightness(.96);}
.dash-loader{grid-column:1 / -1;}
.dashboard-calendar:empty::before,.dashboard-stats-grid:empty::before{content:'Chargement des données…';display:block;padding:1rem;border:1px solid var(--line);border-radius:16px;color:var(--muted);}
.dash-country-list li{gap:.75rem;}

/* Patch 5.2 — Google Workspace / Calendar V2 */
.dash-calendar-switch{display:flex;gap:.35rem;flex-wrap:wrap;align-items:center}.dash-calendar-switch .btn.active{background:#2f6b4f!important;color:#fff!important;border-color:#2f6b4f!important}.dashboard-calendar-week{grid-template-columns:repeat(7,minmax(120px,1fr))}.dashboard-calendar-day{grid-template-columns:minmax(260px,1fr);max-width:880px}.dash-day a.google-event{border-left:4px solid #2f6b4f;background:rgba(47,107,79,.08)}.dash-google-actions{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:.75rem}.chip.ok{background:#2f6b4f;color:#fff}.dashboard-actions{gap:.5rem;flex-wrap:wrap}.smv2-shopify-actions{gap:.5rem;flex-wrap:wrap}.smv2-shopify-kpi strong{word-break:break-word}


/* ===== Patch 5.3 — Google Sync + Outlook-like calendar ===== */
.dashboard-calendar-v2{display:block;width:100%;}
.dash-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.75rem;}
.dash-outlook-grid{display:grid;gap:1rem;}
.dash-outlook-day{border:1px solid var(--line);border-radius:22px;background:rgba(255,255,255,.035);overflow:hidden;box-shadow:0 10px 28px rgba(0,0,0,.08);}
.dash-outlook-day>header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.15rem;background:linear-gradient(135deg,rgba(47,107,79,.16),rgba(216,194,158,.12));border-bottom:1px solid var(--line);}
.dash-outlook-day>header strong{text-transform:capitalize;font-size:1.05rem;}
.dash-outlook-day>header span{color:var(--muted);font-size:.86rem;}
.dash-outlook-day.today{border-color:#2f6b4f;box-shadow:0 0 0 2px rgba(47,107,79,.15),0 10px 28px rgba(0,0,0,.08);}
.dash-outlook-columns{display:grid;grid-template-columns:74px minmax(180px,1.1fr) minmax(180px,1.1fr) minmax(220px,1fr);gap:0;border-top:0;}
.dash-hours{display:grid;gap:0;border-right:1px solid var(--line);background:rgba(47,107,79,.04);}
.dash-hours div{min-height:38px;padding:.5rem .45rem;text-align:right;color:var(--muted);font-size:.75rem;border-bottom:1px solid rgba(255,255,255,.05);}
.dash-calendar-col,.dash-smart-col,.dash-floating-col{padding:.9rem;display:grid;align-content:start;gap:.55rem;border-right:1px solid var(--line);}
.dash-floating-col{border-right:0;background:rgba(216,194,158,.06);}
.dash-calendar-col h4,.dash-smart-col h4,.dash-floating-col h4{margin:.15rem 0 .25rem;font-size:.82rem;text-transform:uppercase;letter-spacing:.05em;color:#2f6b4f;}
.dash-event{display:grid;grid-template-columns:54px 1fr;gap:.2rem .55rem;align-items:start;border:1px solid var(--line);border-radius:14px;padding:.62rem;text-decoration:none;color:inherit;background:rgba(255,255,255,.055);transition:transform .14s ease,border-color .14s ease,background .14s ease;}
.dash-event:hover{transform:translateY(-1px);border-color:#2f6b4f;background:rgba(47,107,79,.08);}
.dash-event span{font-weight:800;color:#2f6b4f;font-size:.78rem;}
.dash-event b{font-size:.92rem;line-height:1.2;}
.dash-event small{grid-column:2;color:var(--muted);}
.dash-event.google-event{border-left:5px solid #2f6b4f;}
.dash-event.smart-event{border-left:5px solid #d8a63a;}
.dash-event.shared-event{border-left:5px solid #8b6f47;}
.dashboard-calendar-day .dash-outlook-columns{grid-template-columns:82px minmax(220px,1.2fr) minmax(220px,1.2fr) minmax(260px,1fr);}
.dashboard-calendar-week .dash-outlook-day{min-width:0;}
.dashboard-calendar-week .dash-outlook-columns{grid-template-columns:58px minmax(140px,1fr) minmax(140px,1fr) minmax(160px,1fr);}
.dashboard-calendar-week .dash-hours div{font-size:.68rem;padding:.45rem .3rem;}
.dashboard-calendar-week .dash-calendar-col,.dashboard-calendar-week .dash-smart-col,.dashboard-calendar-week .dash-floating-col{padding:.65rem;}
.dash-google-actions .btn{margin-top:.6rem;}
@media (max-width:1100px){.dash-month-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.dash-outlook-columns,.dashboard-calendar-day .dash-outlook-columns,.dashboard-calendar-week .dash-outlook-columns{grid-template-columns:1fr}.dash-hours{display:none}.dash-calendar-col,.dash-smart-col,.dash-floating-col{border-right:0;border-bottom:1px solid var(--line)}}
@media (max-width:720px){.dash-month-grid{grid-template-columns:1fr}.dash-outlook-day>header{flex-direction:column;align-items:flex-start}.dash-event{grid-template-columns:1fr}.dash-event small{grid-column:1}.dash-event span{font-size:.76rem}}

/* Patch 5.3C — Calendar carousel + task actions */
.dash-calendar-nav{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:.35rem 0 1rem;padding:.75rem 1rem;border:1px solid var(--line,#d8c9b5);border-radius:18px;background:#fbf6ec;color:#263b2b}
.dash-calendar-nav .btn,.dash-calendar-nav button{background:#f0e5d2!important;color:#263b2b!important;border:1px solid #cdbb9e!important;border-radius:999px;padding:.48rem .8rem;font-weight:800;cursor:pointer}
.dashboard-calendar-day .dash-outlook-grid{display:block;animation:dashSlideIn .22s ease-out both}.dashboard-calendar-week .dash-outlook-grid{animation:dashSlideIn .22s ease-out both}.calendar-slide-prev .dash-outlook-grid{animation-name:dashSlideInPrev}.calendar-slide-next .dash-outlook-grid{animation-name:dashSlideInNext}
@keyframes dashSlideInNext{from{opacity:0;transform:translateX(28px)}to{opacity:1;transform:translateX(0)}}
@keyframes dashSlideInPrev{from{opacity:0;transform:translateX(-28px)}to{opacity:1;transform:translateX(0)}}
.dash-event{position:relative}.dash-event>a{display:block;text-decoration:none;color:inherit}.dash-task-actions{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.55rem}.dash-task-actions button{border:1px solid #cfbd9e;background:#fffaf0;color:#284321;border-radius:999px;padding:.26rem .52rem;font-size:.74rem;font-weight:800;cursor:pointer}.dash-task-actions button:hover{background:#eaf2e6;border-color:#8fa47f}.dash-event.smart-event,.dash-event.shared-event{padding:.65rem .7rem}.dash-event.google-event{background:#f1f6ff;border-left:4px solid #5b7bb2}.dash-event.smart-event{background:#f1f7ed;border-left:4px solid #4f6f42}.dash-event.shared-event{background:#fff7e8;border-left:4px solid #b8792a}

/* Patch 5.3C — routed mail feeds */
.aura-module-mail-feed{margin:0 0 1rem}.aura-mail-feed-card{border:1px solid #b7c9b0;background:#f6fbf2;border-radius:22px}.aura-mail-feed-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:.65rem}.aura-mail-row{display:grid;gap:.18rem;text-decoration:none;color:#263b2b;background:#fffdf7;border:1px solid #d8c9b5;border-radius:16px;padding:.75rem}.aura-mail-row:hover{background:#f1eadc;transform:translateY(-1px)}.aura-mail-row small{color:#756b5f}.aura-mail-row span{color:#4d463d;font-size:.86rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}


/* ===== Patch 5.4 — Cockpit Samsung-like + Planning 4-colonnes ===== */
#dashboard-save{display:none!important}.dashboard-grid-v18{align-items:stretch;grid-auto-flow:dense}.dashboard-grid-v18.is-editing .dash-widget{cursor:grab;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.dashboard-grid-v18.is-editing .dash-widget:hover{transform:translateY(-3px);box-shadow:0 18px 42px rgba(47,107,79,.16);border-color:#7d9a70}.dash-widget.dragging{opacity:.72;transform:scale(.985) rotate(.4deg)!important;box-shadow:0 24px 60px rgba(47,107,79,.24)!important}.dash-drag-handle{display:none;position:absolute;right:.7rem;top:.65rem;color:#6b7d5f;font-weight:900;letter-spacing:-.16em}.dashboard-grid-v18.is-editing .dash-drag-handle{display:block}.dash-widget{position:relative;transition:transform .16s ease,box-shadow .16s ease}.dash-widget-controls button{background:#f7efe2!important;color:#263b2b!important;border-color:#cdbb9e!important}.dashboard-actions #dashboard-edit-toggle.active{background:#2f6b4f!important;color:#fff!important;border-color:#2f6b4f!important;box-shadow:0 10px 24px rgba(47,107,79,.22)}#dashboard-reset.btn,#dashboard-reset.btn.ghost{background:#efe3ce!important;color:#263b2b!important;border-color:#cbb894!important;font-weight:900}#dashboard-reset.btn:hover{background:#e7d7bd!important;filter:none!important}.dash-widget-option{background:#fffaf0!important;color:#263b2b!important;border-color:#d6c4a7!important}.dash-widget-option:hover:not(:disabled){background:#eef5ea!important;border-color:#7d9a70!important}
.dash-calendar-switch .btn,.dashboard-actions .btn.ghost{background:#fbf6ec!important;color:#263b2b!important;border:1px solid #cdbb9e!important}.dash-calendar-switch .btn.active{background:#2f6b4f!important;color:#fff!important;border-color:#2f6b4f!important}.dashboard-actions .btn{font-weight:800}.dash-google-actions .btn.ghost{background:#fbf6ec!important;color:#263b2b!important;border:1px solid #cdbb9e!important}.dashboard-calendar-v2{display:block!important}.dash-month-grid{display:grid!important;grid-template-columns:repeat(7,minmax(170px,1fr));gap:.75rem}.dash-week-grid{display:grid!important;grid-template-columns:repeat(4,minmax(210px,1fr));gap:.85rem}.dash-week-grid .dash-planning-day:nth-child(n+5){grid-column:span 1}.dash-day-focus-grid{display:grid!important;max-width:1180px;margin:0 auto;animation:dashSlideInNext .22s ease-out both}.dash-planning-day{border:1px solid var(--line,#d8c9b5);border-radius:20px;background:#fffdf8;color:#2d2820;overflow:hidden;box-shadow:0 10px 24px rgba(47,40,30,.06);min-height:220px}.dash-planning-day>header{display:flex;align-items:center;justify-content:space-between;gap:.55rem;padding:.72rem .85rem;background:#f5ecdc;border-bottom:1px solid #ddceb7}.dash-planning-day>header strong{text-transform:capitalize}.dash-planning-day.today{border-color:#2f6b4f;box-shadow:0 0 0 2px rgba(47,107,79,.22),0 12px 28px rgba(47,40,30,.08)}.dash-planning-day.today>header strong{background:#2f6b4f;color:#fff;border-radius:999px;padding:.18rem .52rem}.dash-day-columns{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));min-height:160px}.dash-day-col{padding:.58rem;border-right:1px solid #eadfce;display:grid;align-content:start;gap:.42rem;min-width:0}.dash-day-col:last-child{border-right:0}.dash-day-col h4{font-size:.68rem;line-height:1.1;margin:.1rem 0 .25rem;color:#2f6b4f;text-transform:uppercase;letter-spacing:.035em}.dash-event{display:block!important;border:1px solid #dccdb6;border-radius:11px;padding:.42rem .45rem;background:#fff;color:#263b2b;text-decoration:none;min-width:0;transition:transform .14s ease,background .14s ease,border-color .14s ease}.dash-event:hover{transform:translateY(-1px);border-color:#7d9a70;background:#f7fbf4}.dash-event span{display:block;font-size:.68rem;font-weight:900;color:#2f6b4f}.dash-event b{display:block;font-size:.78rem;line-height:1.14;overflow:hidden;text-overflow:ellipsis}.dash-event small{display:block;color:#756b5f;font-size:.68rem;margin-top:.15rem}.dash-event.google-event{background:#edf4ff;border-left:4px solid #5b7bb2}.dash-event.smart-event{background:#eef7ea;border-left:4px solid #4f6f42}.dash-event.shared-event{background:#fff7e8;border-left:4px solid #b8792a}.dash-event.note-event{background:#faf6ef;border-left:4px solid #8b6f47}.dash-task-actions{display:flex;gap:.25rem;flex-wrap:wrap;margin-top:.35rem}.dash-task-actions button{font-size:.64rem;padding:.2rem .38rem;border-radius:999px;background:#fbf6ec;color:#263b2b;border:1px solid #cfbd9e;font-weight:800;cursor:pointer}.dash-more-lines{border:0;background:transparent;color:#2f6b4f;text-align:left;font-size:.7rem;font-weight:900;cursor:pointer;padding:.1rem}.dashboard-calendar-day .dash-planning-day{min-height:520px}.dashboard-calendar-day .dash-day-columns{min-height:460px}.dashboard-calendar-day .dash-day-col{padding:.9rem}.dashboard-calendar-day .dash-event b{font-size:.92rem}.dashboard-calendar-week .dash-planning-day{min-height:260px}.dashboard-calendar-week .dash-day-columns,.dashboard-calendar-month .dash-day-columns{grid-template-columns:repeat(4,minmax(0,1fr))}.dash-calendar-nav strong{font-size:1.04rem;text-transform:capitalize}.calendar-slide-prev .dash-month-grid,.calendar-slide-prev .dash-week-grid,.calendar-slide-prev .dash-day-focus-grid{animation:dashSlideInPrev .22s ease-out both}.calendar-slide-next .dash-month-grid,.calendar-slide-next .dash-week-grid,.calendar-slide-next .dash-day-focus-grid{animation:dashSlideInNext .22s ease-out both}@media(max-width:1350px){.dash-month-grid{grid-template-columns:repeat(3,minmax(220px,1fr))}.dash-week-grid{grid-template-columns:repeat(2,minmax(260px,1fr))}}@media(max-width:880px){.dash-month-grid,.dash-week-grid{grid-template-columns:1fr}.dash-day-columns{grid-template-columns:1fr}.dash-day-col{border-right:0;border-bottom:1px solid #eadfce}.dashboard-toolbar{align-items:flex-start;flex-direction:column}}
/* SAV dossier mail ouvrable */
.sav-table tr[data-sav-index]{cursor:pointer}.sav-table tr[data-sav-index].active td{background:#eef7ea!important}.sav-detail[data-sav-detail]{display:none}.sav-detail[data-sav-detail].active{display:grid}.sav-mail-source{border:1px solid #b7c9b0;background:#f6fbf2;border-radius:16px;padding:.7rem;margin-top:.7rem}.sav-mail-source a{color:#2f6b4f;font-weight:800;text-decoration:none}


.activity-row-clickable {
  width: 100%;
  text-align: left;
  overflow: hidden;
  white-space: normal;
}

.activity-row-clickable .activity-body {
  min-width: 0;
  overflow: hidden;
}

.activity-row-clickable .activity-body div,
.activity-row-clickable .activity-body strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* =========================================================
 * OraOps Clean UI - 2026-06-23
 * Final visual layer inspired by the AuraOps reference mockup.
 * =======================================================*/
:root{
  --accent:#244b30;
  --accent-2:#426d4b;
  --accent-soft:#e7f0e5;
  --accent-soft-2:#f2f7f0;
  --bg:#f7f8f5;
  --bg2:#ffffff;
  --panel:#ffffff;
  --panel-2:#fbfcfa;
  --line:#e5e8e1;
  --line2:#d5dbcf;
  --text:#161915;
  --muted:#70766d;
  --danger:#b84a42;
  --warning:#a67920;
  --ok:#2f6b3f;
  --shadow:0 18px 44px rgba(21,36,24,.07);
  --shadow-soft:0 8px 24px rgba(21,36,24,.055);
}

html{background:var(--bg);}
body.aura-shell, body{
  background:
    radial-gradient(circle at 78% 4%, rgba(36,75,48,.08), transparent 28rem),
    linear-gradient(180deg,#fbfcfb 0%,#f6f7f4 100%) !important;
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a{color:var(--accent);}

.erp-layout{
  min-height:100vh;
  display:grid;
  grid-template-columns:292px minmax(0,1fr);
}
.erp-sidebar{
  position:sticky;
  top:0;
  height:100vh;
  padding:26px 18px;
  color:#f9fbf7;
  background:
    radial-gradient(circle at 38% 4%, rgba(255,255,255,.13), transparent 11rem),
    linear-gradient(160deg,#132717 0%,#18351f 48%,#102615 100%) !important;
  border-right:1px solid rgba(255,255,255,.08);
  box-shadow:inset -1px 0 0 rgba(255,255,255,.06);
  display:flex;
  flex-direction:column;
  gap:28px;
}
.erp-brand{
  display:flex;
  align-items:center;
  gap:14px;
  color:#fff;
  padding:0 6px 16px;
  border:0;
}
.erp-brand:hover{color:#fff;}
.erp-brand-mark,
.erp-brand-favicon{
  width:50px !important;
  height:50px !important;
  border-radius:15px !important;
  background:#fbfdf9 !important;
  box-shadow:0 16px 36px rgba(0,0,0,.22) !important;
  overflow:hidden;
}
.erp-brand-favicon img{
  width:100% !important;
  height:100% !important;
  object-fit:contain;
  padding:4px;
  border-radius:15px;
}
.erp-brand strong{
  display:block;
  color:#fff;
  font-size:1.28rem;
  letter-spacing:-.02em;
  line-height:1.05;
}
.erp-brand small{
  display:block;
  color:rgba(255,255,255,.72);
  margin-top:5px;
  font-size:.9rem;
}
.erp-module-nav{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.erp-module-link,
.module-link{
  min-height:48px;
  padding:0 14px;
  display:flex;
  align-items:center;
  gap:14px;
  color:rgba(255,255,255,.92) !important;
  border:1px solid transparent !important;
  border-radius:11px !important;
  background:transparent !important;
  box-shadow:none !important;
  font-weight:650;
  transition:background .16s ease, color .16s ease, transform .16s ease, border-color .16s ease;
}
.erp-module-link:hover,
.module-link:hover{
  transform:none !important;
  background:rgba(255,255,255,.08) !important;
  border-color:rgba(255,255,255,.06) !important;
}
.erp-module-link.active,
.erp-module-link[aria-current="page"]{
  background:#f9f8f1 !important;
  color:#142416 !important;
  border-color:#f9f8f1 !important;
  box-shadow:0 14px 30px rgba(0,0,0,.18) !important;
}
.erp-module-link .mi,
.module-link .mi{
  width:21px;
  height:21px;
  object-fit:contain;
  filter:brightness(0) invert(1) opacity(.95) !important;
}
.erp-module-link.active .mi{
  filter:none !important;
}
.erp-sidebar-footer{
  margin-top:auto;
  padding:20px 6px 0;
  border-top:1px solid rgba(255,255,255,.16);
  color:rgba(255,255,255,.72);
}
.status-dot.ok{
  background:#9fbd78;
  box-shadow:0 0 0 7px rgba(159,189,120,.14);
}
.erp-sidebar-bottom{
  margin-top:auto;
  display:grid;
  gap:14px;
}
.erp-sidebar-bottom .erp-sidebar-footer{
  margin-top:0;
  padding:12px 6px 0;
}
.sidebar-profile-card{
  width:100%;
  min-height:68px;
  display:grid;
  grid-template-columns:48px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:10px 8px 10px 6px;
  border:0;
  border-top:1px solid rgba(255,255,255,.16);
  border-radius:0;
  background:transparent;
  color:#fff;
  box-shadow:none;
  text-align:left;
}
.sidebar-profile-card:hover{
  background:rgba(255,255,255,.08);
  border-radius:14px;
}
.sidebar-profile-avatar{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  color:#fff;
  font-weight:900;
  font-size:1.05rem;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.13);
}
.sidebar-profile-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.sidebar-profile-copy{
  min-width:0;
  display:grid;
  gap:3px;
}
.sidebar-profile-copy strong{
  color:#fff;
  font-size:.96rem;
  line-height:1.15;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.sidebar-profile-copy small{
  color:rgba(255,255,255,.72);
  font-size:.82rem;
  line-height:1.15;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.sidebar-profile-chevron{
  width:16px;
  height:16px;
  display:block;
  border-right:2px solid rgba(255,255,255,.78);
  border-bottom:2px solid rgba(255,255,255,.78);
  transform:rotate(-45deg);
  margin-right:5px;
}

.erp-main{
  min-width:0;
  padding:20px 38px 28px 32px;
}
.erp-topbar{
  min-height:60px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 0 18px;
  padding:0;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
.global-search{
  flex:1 1 760px;
  max-width:760px;
  min-height:60px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) 144px;
  align-items:center;
  gap:0;
  padding:0;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line);
  border-radius:15px;
  box-shadow:var(--shadow-soft);
}
.search-icon{
  width:64px;
  display:grid;
  place-items:center;
  color:#111;
  font-size:1.24rem;
}
.global-search .quicksearch-input,
.global-search input[type="search"]{
  min-width:0 !important;
  width:100% !important;
  max-width:none !important;
  height:100%;
  border:0 !important;
  outline:0 !important;
  background:transparent !important;
  color:var(--text) !important;
  font-size:.94rem;
}
.global-search .quicksearch-input::placeholder{color:#8c9189;}
.qs-inline{
  height:60px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:0 18px;
  color:#111 !important;
  border-left:1px solid var(--line);
  font-weight:650;
  white-space:nowrap;
}
.qs-inline input{accent-color:var(--accent);}
.top-actions{
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:auto;
}
.icon-btn,
.profile-pill,
.btn,
button{
  border:1px solid var(--line);
  border-radius:13px;
  min-height:40px;
  background:#fff;
  color:var(--text);
  box-shadow:0 8px 18px rgba(21,36,24,.045);
}
.erp-topbar .icon-btn{
  width:58px;
  height:58px;
  border-radius:15px;
  font-weight:800;
  background:#fff !important;
  color:#111 !important;
}
.profile-pill{
  min-width:136px;
  height:58px;
  justify-content:center;
  background:#fff !important;
  color:#111 !important;
  border-color:var(--line) !important;
  font-weight:750;
}

.app-frame{
  min-height:calc(100vh - 118px);
  padding:0;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}
.module-header{
  margin:0 0 14px;
  padding:0 !important;
  text-align:left !important;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow-soft);
  overflow:hidden;
}
.module-topline{
  display:flex;
  align-items:center !important;
  justify-content:space-between;
  gap:16px;
  min-height:96px;
  margin:0 !important;
  padding:20px 24px;
  border-bottom:1px solid var(--line);
}
.module-left{
  display:flex;
  align-items:center;
  gap:16px;
}
.module-icon{
  width:60px !important;
  height:60px !important;
  display:block !important;
  flex:0 0 60px;
  padding:13px;
  border-radius:16px;
  background:linear-gradient(145deg,#213f29,#112516) !important;
  border:0 !important;
  box-shadow:0 14px 26px rgba(17,37,22,.18);
  filter:brightness(0) invert(1) !important;
  opacity:1 !important;
  visibility:visible !important;
  object-fit:contain !important;
}
.eyebrow{
  margin:0 0 4px;
  color:var(--accent) !important;
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:.72rem;
  font-weight:900;
}
.module-title{
  margin:0;
  color:#111 !important;
  font-size:1.76rem;
  line-height:1.05;
  letter-spacing:-.035em;
}
.module-badge{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 15px;
  border-radius:999px;
  background:var(--accent-soft) !important;
  color:var(--accent) !important;
  border:0 !important;
  font-weight:800;
  font-size:.86rem;
}
.module-tabs{
  display:flex;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:34px !important;
  min-height:72px;
  margin:0 !important;
  padding:0 24px !important;
  border:0 !important;
  border-radius:0 !important;
  border-bottom:0 !important;
  background:#fff !important;
  overflow:auto;
}
.module-tabs .tab{
  position:relative;
  flex:0 0 auto;
  min-height:72px;
  display:inline-flex;
  align-items:center;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#111 !important;
  font-weight:650;
}
.module-tabs .tab::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:9px;
  height:3px;
  border-radius:999px;
  background:transparent;
}
.module-tabs .tab.active{
  color:var(--accent) !important;
  font-weight:850 !important;
}
.module-tabs .tab.active::after{background:var(--accent);}

.card,
.block,
.aura-card{
  background:#fff !important;
  color:var(--text);
  border:1px solid var(--line) !important;
  border-radius:14px !important;
  box-shadow:var(--shadow-soft) !important;
  padding:18px;
}
.card h2,
.card h3,
.block h2,
.block h3{
  color:#111;
  letter-spacing:-.02em;
}
.muted{color:var(--muted) !important;}
.input,
.field input,
.field textarea,
.field select,
input.input,
select.input,
textarea.input{
  background:#fff !important;
  color:var(--text) !important;
  border:1px solid var(--line) !important;
  border-radius:12px !important;
  min-height:44px;
  box-shadow:none !important;
}
.input:focus,
.field input:focus,
.field textarea:focus,
.field select:focus{
  outline:0;
  border-color:rgba(36,75,48,.55) !important;
  box-shadow:0 0 0 4px rgba(36,75,48,.09) !important;
}
.btn{
  min-height:42px;
  padding:9px 15px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:linear-gradient(180deg,#2a5737,#193b23) !important;
  border-color:#21492d !important;
  color:#fff !important;
  font-weight:800;
}
.btn.ghost{
  background:#f6f9f5 !important;
  color:var(--accent) !important;
  border-color:var(--line2) !important;
}
.btn.danger{
  background:var(--danger) !important;
  border-color:var(--danger) !important;
  color:#fff !important;
}
.tag,
.chip{
  background:var(--accent-soft) !important;
  color:var(--accent) !important;
  border:0 !important;
  border-radius:999px !important;
  font-weight:800;
}
.table-wrap{
  background:#fff;
  border:1px solid var(--line) !important;
  border-radius:14px !important;
  box-shadow:var(--shadow-soft);
}
.table thead th,
#depotProductsTable thead th,
.stock-v14-head{
  background:#f7f9f6 !important;
  color:#38423a !important;
  border-bottom:1px solid var(--line) !important;
}
.table th,
.table td{
  border-bottom-color:var(--line) !important;
}
tbody tr:hover,
#productsTbody tr:hover{
  background:#f5f8f3 !important;
}

.repairs-dashboard-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 356px;
  gap:14px;
  align-items:start;
}
.repairs-dashboard-main{
  min-width:0;
  display:grid;
  gap:14px;
}
.dashboard-search-card{
  padding:16px 18px !important;
}
.dashboard-search-row{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto;
  gap:28px !important;
  align-items:center;
}
.dashboard-search-input{
  min-height:50px;
  padding-left:48px !important;
  background:
    linear-gradient(#fff,#fff) padding-box,
    linear-gradient(135deg,transparent,transparent) border-box !important;
}
.dashboard-search-card .btn{
  min-width:108px;
  min-height:44px;
}
.dashboard-main-card{
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
.repairs-main-row-3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px !important;
}
.dashboard-column{
  min-height:116px;
  padding:22px 20px !important;
  background:#fff;
  border:1px solid var(--line) !important;
  border-radius:14px;
  box-shadow:var(--shadow-soft);
}
.dashboard-column:first-child{border-left:1px solid var(--line) !important;}
.dashboard-column-head{
  margin:0 0 12px !important;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.dashboard-column-head h2{
  margin:0;
  color:#111;
  font-size:1.05rem;
  line-height:1.1;
}
.dashboard-count{
  order:-1;
  display:block;
  margin-right:10px;
  color:#111;
  font-size:1.82rem;
  line-height:1;
  font-weight:900;
  letter-spacing:-.045em;
}
.dashboard-column .dashboard-column-head{
  justify-content:flex-start;
}
.dashboard-column.clickable:hover,
.dashboard-card.clickable:hover{
  transform:translateY(-2px) !important;
  box-shadow:0 16px 36px rgba(21,36,24,.09) !important;
}
.dashboard-list{
  color:var(--muted);
  font-size:.88rem;
}
.repairs-secondary-row-dashboard{
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(260px,1fr);
  gap:14px;
  margin-top:0 !important;
}
.dashboard-card h2{
  margin:.05rem 0 .5rem;
  font-size:1.18rem;
}
.dashboard-footer{display:flex;justify-content:flex-end;}

.dashboard-activity-card{
  position:sticky !important;
  top:20px !important;
  padding:26px 20px !important;
}
.dashboard-activity-card .dashboard-column-head{
  align-items:center;
  justify-content:space-between;
}
.dashboard-activity-card .dashboard-column-head h2{
  font-size:1.28rem;
  display:flex;
  align-items:center;
  gap:10px;
}
.dashboard-activity-card .dashboard-column-head h2::before{
  content:"";
  width:21px;
  height:21px;
  display:inline-block;
  background:linear-gradient(135deg,var(--accent),#74a678);
  -webkit-mask:linear-gradient(#000 0 0);
  mask:linear-gradient(#000 0 0);
  border-radius:999px;
}
.dashboard-activity-feed{
  display:grid;
  gap:0 !important;
  position:relative;
  padding-left:20px;
}
.dashboard-activity-feed::before{
  content:"";
  position:absolute;
  left:7px;
  top:8px;
  bottom:8px;
  width:1px;
  background:var(--line);
}
.activity-row,
.activity-row-clickable,
.dashboard-activity-feed > *{
  position:relative;
  padding:12px 0 12px 18px !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
.activity-row::before,
.activity-row-clickable::before,
.dashboard-activity-feed > *::before{
  content:"";
  position:absolute;
  left:-17px;
  top:18px;
  width:9px;
  height:9px;
  border-radius:999px;
  background:var(--accent);
  box-shadow:0 0 0 4px #fff;
}

.profile-panel{
  top:84px;
  right:38px;
}
.profile-card{
  background:#fff !important;
  border-color:var(--line) !important;
  box-shadow:0 22px 60px rgba(21,36,24,.12) !important;
}
.aura-login{
  background:
    radial-gradient(circle at 50% 22%, rgba(36,75,48,.16), transparent 28rem),
    linear-gradient(180deg,#fbfcfb 0%,#eef2ec 100%) !important;
}
.login-card{
  background:#fff !important;
  border-color:var(--line) !important;
  box-shadow:0 28px 80px rgba(21,36,24,.14) !important;
}
.login-logo-pulse{
  background:linear-gradient(145deg,#244b30,#132717) !important;
}

@media (max-width:1200px){
  .erp-main{padding:18px;}
  .repairs-dashboard-layout{grid-template-columns:1fr;}
  .dashboard-activity-card{position:static !important;}
}
@media (max-width:980px){
  .erp-layout{grid-template-columns:1fr;}
  .erp-sidebar{
    position:relative;
    height:auto;
    padding:18px;
  }
  .erp-module-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
  .erp-topbar{flex-direction:column;align-items:stretch;}
  .global-search{max-width:none;width:100%;}
  .repairs-main-row-3,
  .repairs-secondary-row-dashboard{grid-template-columns:1fr;}
}
@media (max-width:680px){
  .erp-main{padding:12px;}
  .erp-module-nav{grid-template-columns:1fr;}
  .global-search{grid-template-columns:48px minmax(0,1fr);}
  .qs-inline{grid-column:1 / -1;border-left:0;border-top:1px solid var(--line);height:44px;}
  .top-actions{width:100%;justify-content:flex-start;flex-wrap:wrap;}
  .module-topline{align-items:flex-start !important;flex-direction:column;}
  .module-tabs{gap:22px !important;padding:0 18px !important;}
  .dashboard-search-row{grid-template-columns:1fr !important;gap:10px !important;}
}

/* OraOps topbar clean pass */
.global-search .search-icon{
  position:relative;
  width:66px;
  height:60px;
  font-size:0 !important;
}
.global-search .search-icon::before{
  content:"";
  position:absolute;
  left:22px;
  top:17px;
  width:19px;
  height:19px;
  border:2.6px solid #101510;
  border-radius:50%;
}
.global-search .search-icon::after{
  content:"";
  position:absolute;
  left:42px;
  top:38px;
  width:12px;
  height:2.8px;
  border-radius:999px;
  background:#101510;
  transform:rotate(45deg);
  transform-origin:left center;
}
.global-search .qs-inline{
  position:relative;
  gap:9px;
}
.global-search .qs-inline::before{
  content:"";
  width:22px;
  height:22px;
  display:inline-block;
  background:#101510;
  -webkit-mask:url("/static/icons/ora/archive.svg") center / contain no-repeat;
  mask:url("/static/icons/ora/archive.svg") center / contain no-repeat;
}
.global-search .qs-inline:has(img)::before{
  display:none;
}
.global-search .qs-inline img{
  width:22px;
  height:22px;
  display:block;
  object-fit:contain;
  filter:brightness(0) saturate(0) contrast(1.2);
}
.global-search .qs-inline input{
  position:absolute;
  inline-size:1px;
  block-size:1px;
  opacity:0;
  pointer-events:none;
}
.global-search .qs-inline:has(input:checked){
  background:#edf3ea;
  color:var(--accent) !important;
}
.global-search .qs-inline:has(input:checked)::before{
  background:var(--accent);
}
.top-actions > .icon-btn[title="Notifications"]{
  display:none !important;
}
#smarttasks-open-btn,
#profile-button.profile-pill{
  width:58px !important;
  min-width:58px !important;
  height:58px !important;
  padding:0 !important;
  display:inline-grid !important;
  place-items:center !important;
  font-size:0 !important;
  background:#fff !important;
  border-color:var(--line) !important;
  color:transparent !important;
}
#smarttasks-open-btn::before{
  content:"";
  width:26px;
  height:26px;
  display:block;
  background:#101510;
  -webkit-mask:url("/static/icons/ora/calendar_month.svg") center / contain no-repeat;
  mask:url("/static/icons/ora/calendar_month.svg") center / contain no-repeat;
}
#smarttasks-open-btn:has(img)::before{
  display:none;
}
#smarttasks-open-btn img{
  width:28px !important;
  height:28px !important;
  margin:0 !important;
  display:block;
  object-fit:contain;
  filter:brightness(0) saturate(0) contrast(1.2);
}
#profile-button.profile-pill img{
  width:28px !important;
  height:28px !important;
  margin:0 !important;
  display:block;
  object-fit:contain;
  filter:brightness(0) saturate(0) contrast(1.2);
}

/* OraOps profile modal V21 */
#aura-profile-modal{
  align-items:center !important;
  justify-content:center !important;
  padding:24px !important;
  background:rgba(15,28,18,.42) !important;
  backdrop-filter:blur(5px);
}
#aura-profile-modal .aura-modal-card{
  width:min(920px,calc(100vw - 40px)) !important;
  max-height:calc(100vh - 48px) !important;
  padding:0 !important;
  overflow:auto;
  border:1px solid rgba(36,75,48,.16) !important;
  border-radius:22px !important;
  background:#fbfcfa !important;
  box-shadow:0 28px 90px rgba(12,26,16,.22) !important;
}
.profile-modal-head{
  position:sticky;
  top:0;
  z-index:2;
  margin:0 !important;
  padding:22px 24px 18px;
  border-bottom:1px solid var(--line);
  background:rgba(251,252,250,.94);
  backdrop-filter:blur(12px);
}
.profile-title-block strong{
  display:block;
  color:#111;
  font-size:1.45rem;
  letter-spacing:-.03em;
}
#aura-profile-form{
  display:grid;
  gap:16px;
  padding:20px 24px 24px;
}
.profile-hero-card,
.profile-section{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow-soft);
}
.profile-hero-card{
  display:grid;
  grid-template-columns:112px minmax(0,1fr);
  gap:18px;
  align-items:center;
  padding:18px;
}
.profile-photo-wrap{
  width:112px;
  height:112px;
  overflow:hidden;
  border-radius:28px;
  background:linear-gradient(145deg,#e8f1e5,#fff);
  border:1px solid #d8e4d4;
  box-shadow:0 16px 35px rgba(36,75,48,.12);
}
.profile-photo-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.profile-hero-main{
  display:grid;
  gap:7px;
}
.profile-hero-main h2{
  margin:0;
  color:#111;
  font-size:2rem;
  line-height:1;
  letter-spacing:-.045em;
}
.profile-hero-main p{
  margin:0;
  color:var(--muted);
  font-weight:700;
}
.profile-session-pill{
  width:max-content;
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:6px;
  padding:8px 12px;
  border-radius:999px;
  background:var(--accent-soft);
  color:var(--accent);
  font-weight:850;
}
.profile-session-pill img,
.profile-password-btn img,
.profile-logout-link img{
  width:18px;
  height:18px;
  object-fit:contain;
  filter:brightness(0) saturate(100%) invert(24%) sepia(19%) saturate(1232%) hue-rotate(82deg) brightness(92%) contrast(86%);
}
.profile-section{
  padding:18px;
  display:grid;
  gap:14px;
}
.profile-section-head h3,
.profile-security-card h3{
  margin:0 0 5px;
  color:#111;
  font-size:1.08rem;
}
.profile-section-head p,
.profile-security-card p{
  margin:0;
  color:var(--muted);
}
.profile-grid-clean{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
#aura-profile-modal label{
  display:grid;
  gap:7px;
  color:#263428;
  font-size:.88rem;
  font-weight:850;
}
#aura-profile-modal input{
  width:100%;
  min-height:46px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:var(--text);
  padding:10px 12px;
}
#aura-profile-modal input:disabled{
  background:#f3f5f0;
  color:#6f766d;
}
.profile-upload-field{
  grid-column:1 / -1;
}
.profile-security-card{
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
}
.profile-password-btn{
  white-space:nowrap;
}
.profile-password-btn img{
  filter:brightness(0) invert(1);
}

/* OraOps close icons + module header icons */
.close-icon-btn,
button.close-icon-btn,
.aura-modal-close.close-icon-btn,
.aura-task-close.close-icon-btn,
.aura-search-close.close-icon-btn,
.smv2-modal-close.close-icon-btn,
.sav-close.close-icon-btn{
  width:38px !important;
  height:38px !important;
  min-width:38px !important;
  min-height:38px !important;
  padding:0 !important;
  border:1px solid rgba(34,63,41,.12) !important;
  border-radius:999px !important;
  background:#f2f5ef !important;
  color:transparent !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  line-height:1 !important;
  font-size:0 !important;
  box-shadow:0 10px 22px rgba(17,37,22,.08);
}
.close-icon-btn img,
button.close-icon-btn img{
  width:18px !important;
  height:18px !important;
  display:block !important;
  object-fit:contain !important;
  filter:brightness(0) saturate(100%) invert(22%) sepia(18%) saturate(1220%) hue-rotate(82deg) brightness(93%) contrast(88%);
  pointer-events:none;
}
.close-icon-btn:hover,
button.close-icon-btn:hover{
  background:#e6eee2 !important;
  transform:translateY(-1px);
}
.module-header .module-topline{
  align-items:center !important;
}
.module-header .module-left{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  text-align:left !important;
  gap:16px !important;
}
.module-header .module-left > img.module-icon,
.module-header img.module-icon{
  width:60px !important;
  height:60px !important;
  min-width:60px !important;
  flex:0 0 60px !important;
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  padding:13px !important;
  border-radius:16px !important;
  background:linear-gradient(145deg,#213f29,#112516) !important;
  object-fit:contain !important;
  filter:brightness(0) invert(1) !important;
  box-shadow:0 14px 26px rgba(17,37,22,.18) !important;
}
.profile-org-map{
  display:grid;
  gap:14px;
}

/* Dashboard Mission visual refresh */
.module-shell-dashboard .content.app-frame > .module-header{
  display:none !important;
}
.module-shell-dashboard .content.app-frame{
  gap:0 !important;
  background:#fafafa !important;
}
.dashboard-mission{
  display:grid !important;
  gap:18px !important;
  color:#111;
}
.dashboard-mission-hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  padding:28px 4px 8px;
  min-height:108px;
}
.dashboard-mission-hero h1{
  margin:0;
  font-size:clamp(40px,4vw,48px);
  line-height:1;
  letter-spacing:0;
  color:#111;
}
.dashboard-mission-hero p{
  margin:10px 0 0;
  color:#6f7670;
  font-size:1rem;
}
.dashboard-date-pill{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 18px;
  border-radius:14px;
  background:#fff;
  border:1px solid #ebeee9;
  box-shadow:0 10px 24px rgba(17,24,39,.04);
  color:#1d211d;
  font-weight:750;
}
.dashm-card{
  background:#fff;
  border:1px solid #ecefeb;
  border-radius:20px;
  padding:24px;
  box-shadow:0 14px 34px rgba(17,24,39,.04);
}
.dashm-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:28px;
  margin-bottom:18px;
}
.dashm-section-head h2{
  margin:0;
  font-size:1.08rem;
  line-height:1.2;
  color:#111;
  letter-spacing:0;
}
.dashm-soft-link{
  color:#234a2d;
  text-decoration:none;
  font-weight:750;
  font-size:.88rem;
}
.dashm-quick-actions{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:12px;
}
.dashm-action,
.dashm-access,
.dashm-kpi{
  text-decoration:none;
  color:#111;
}
.dashm-action{
  min-height:56px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 14px;
  border:1px solid #edf0eb;
  border-radius:14px;
  background:#fff;
  box-shadow:0 8px 18px rgba(17,24,39,.03);
}
.dashm-action span,
.dashm-icon,
.dashm-event-icon,
.dashm-alert span,
.dashm-today-item span,
.dashm-access span{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:12px;
  font-weight:900;
  flex:0 0 auto;
}
.dashm-action span > img:not(.dashm-icon-add),
.dashm-icon > img:not(.dashm-icon-add),
.dashm-event-icon > img:not(.dashm-icon-add),
.dashm-alert span > img:not(.dashm-icon-add),
.dashm-today-item span > img:not(.dashm-icon-add),
.dashm-access span > img:not(.dashm-icon-add){
  width:22px;
  height:22px;
  object-fit:contain;
  filter:brightness(0) saturate(100%);
}
.dashm-icon-add{
  position:absolute;
  right:-5px;
  bottom:-5px;
  width:17px !important;
  height:17px !important;
  padding:2px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(35,74,45,.14);
  box-shadow:0 4px 10px rgba(17,24,39,.12);
  object-fit:contain;
}
.dashm-action strong{
  font-size:.9rem;
}
.dashm-kpi-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.dashm-kpi{
  position:relative;
  min-height:126px;
  display:grid;
  grid-template-columns:auto 1fr;
  gap:16px;
  align-items:start;
  padding:24px;
  border-radius:20px;
  background:#fff;
  border:1px solid #ecefeb;
  box-shadow:0 14px 34px rgba(17,24,39,.04);
}
.dashm-kpi-main{
  display:grid;
  gap:4px;
}
.dashm-kpi-main b{
  font-size:2rem;
  line-height:1;
  color:#111;
}
.dashm-kpi-main strong{
  font-size:.96rem;
}
.dashm-kpi-main small{
  color:#757d75;
}
.dashm-kpi i{
  position:absolute;
  left:24px;
  right:24px;
  bottom:22px;
  height:4px;
  border-radius:999px;
  background:#ebeee9;
  overflow:hidden;
}
.dashm-kpi i em{
  display:block;
  height:100%;
  border-radius:inherit;
  background:#234a2d;
}
.dashm-main-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(360px,.92fr);
  gap:16px;
}
.dashm-lower-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(360px,.92fr);
  gap:16px;
}
.dashm-timeline{
  display:grid;
  gap:0;
}
.dashm-timeline-row{
  position:relative;
  display:grid;
  grid-template-columns:62px 18px 44px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  min-height:66px;
  text-decoration:none;
  color:#111;
}
.dashm-timeline-row:not(:last-child)::after{
  content:"";
  position:absolute;
  left:70px;
  top:42px;
  bottom:-20px;
  width:1px;
  background:#e2e8df;
}
.dashm-time{
  color:#6e766e;
  font-size:.88rem;
}
.dashm-dot{
  width:9px;
  height:9px;
  border-radius:999px;
  background:#234a2d;
  z-index:1;
}
.dashm-event-copy{
  display:grid;
  gap:3px;
}
.dashm-event-copy small,
.dashm-chip,
.dashm-alert small,
.dashm-today-item small{
  color:#737b74;
}
.dashm-chip{
  font-style:normal;
  font-size:.76rem;
  padding:5px 10px;
  border-radius:999px;
  background:#edf4ed;
  color:#234a2d;
}
.dashm-alert-list{
  display:grid;
  gap:8px;
}
.dashm-alert{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto;
  grid-template-rows:auto auto;
  gap:2px 14px;
  align-items:center;
  min-height:62px;
  padding:12px;
  border:1px solid #edf0eb;
  border-radius:14px;
  background:#fff;
  text-decoration:none;
  color:#111;
}
.dashm-alert span{
  grid-row:1 / 3;
}
.dashm-alert em{
  grid-column:3;
  grid-row:1 / 3;
  font-style:normal;
  color:#234a2d;
  font-size:1.4rem;
}
.dashm-today-grid,
.dashm-fast-access{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
}
.dashm-today-item{
  min-height:108px;
  display:grid;
  place-items:center;
  text-align:center;
  gap:4px;
  border-right:1px solid #edf0eb;
}
.dashm-today-item:last-child{
  border-right:0;
}
.dashm-today-item b{
  font-size:1.32rem;
  color:#111;
}
.dashm-today-item strong{
  font-size:.88rem;
}
.dashm-fast-access{
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
}
.dashm-access{
  min-height:92px;
  display:grid;
  place-items:center;
  gap:8px;
  text-align:center;
  padding:12px;
  border-radius:14px;
  border:1px solid #edf0eb;
  background:#fff;
}
.dashm-access strong{
  font-size:.84rem;
}
.dashm-tone-green > span:not(.dashm-kpi-main),
.dashm-tone-green .dashm-icon,
.dashm-event-icon.dashm-tone-green{
  background:#edf7ed;
  color:#234a2d;
}
.dashm-tone-amber > span:not(.dashm-kpi-main),
.dashm-tone-amber .dashm-icon,
.dashm-event-icon.dashm-tone-amber{
  background:#fbf4e6;
  color:#b17212;
}
.dashm-tone-blue > span:not(.dashm-kpi-main),
.dashm-tone-blue .dashm-icon,
.dashm-event-icon.dashm-tone-blue{
  background:#edf4fb;
  color:#315f9d;
}
.dashm-tone-purple > span:not(.dashm-kpi-main),
.dashm-tone-purple .dashm-icon,
.dashm-event-icon.dashm-tone-purple{
  background:#f2ecfb;
  color:#7b55b7;
}
.dashm-alert-high span{
  background:#fff0ed;
  color:#d44730;
}
.dashm-alert-medium span{
  background:#fff7e8;
  color:#b17212;
}
.dashm-alert-info span{
  background:#f2ecfb;
  color:#7b55b7;
}
.module-shell-dashboard .module-tabs{
  min-height:auto !important;
  padding:0 4px 12px !important;
  margin:0 0 22px !important;
  gap:28px !important;
  border:0 !important;
  background:transparent !important;
}
.module-shell-dashboard .module-tabs .tab{
  min-height:34px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:#6f7670 !important;
  font-size:.92rem !important;
}
.module-shell-dashboard .module-tabs .tab.active{
  color:#234a2d !important;
  box-shadow:none !important;
}
.module-shell-dashboard .module-tabs .tab.active::after{
  height:2px !important;
  bottom:0 !important;
  background:#234a2d !important;
}
@media(max-width:1240px){
  .dashm-quick-actions{grid-template-columns:repeat(3,minmax(0,1fr));}
  .dashm-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .dashm-main-grid,.dashm-lower-grid{grid-template-columns:1fr;}
}
@media(max-width:720px){
  .dashboard-mission-hero{align-items:flex-start;flex-direction:column;}
  .dashm-quick-actions,.dashm-kpi-grid,.dashm-today-grid,.dashm-fast-access{grid-template-columns:1fr;}
  .dashm-today-item{border-right:0;border-bottom:1px solid #edf0eb;}
  .dashm-timeline-row{grid-template-columns:50px 16px 40px minmax(0,1fr);}
  .dashm-chip{display:none;}
}
.org-node{
  border:1px solid #dce6d8;
  border-radius:14px;
  background:#f8fbf6;
  padding:13px 14px;
}
.org-node strong{
  display:block;
  color:var(--accent);
  font-size:.95rem;
}
.org-node span{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:.86rem;
}
.org-main{
  position:relative;
  width:max-content;
  min-width:210px;
  background:linear-gradient(145deg,#244b30,#17331f);
  border-color:#244b30;
}
.org-main strong,
.org-main span{
  color:#fff;
}
.org-branches{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.profile-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.profile-logout-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:0 12px;
  border-radius:10px;
  color:var(--accent);
  font-weight:850;
  text-decoration:none;
}
.profile-logout-link:hover{
  background:var(--accent-soft);
}
@media(max-width:820px){
  .profile-hero-card,
  .profile-security-card{
    grid-template-columns:1fr;
  }
  .profile-grid-clean,
  .org-branches{
    grid-template-columns:1fr;
  }
  .profile-photo-wrap{
    width:96px;
    height:96px;
  }
}

/* Stock Mission */
.module-shell-stock .content.app-frame > .module-header{
  display:none !important;
}
.module-shell-stock .content.app-frame{
  background:#faf9f6 !important;
  gap:12px !important;
}
.stock-mission-shell{
  display:grid;
  gap:0;
  border:1px solid rgba(224,235,216,.92);
  border-radius:22px;
  background:rgba(255,255,255,.94);
  box-shadow:0 18px 50px rgba(25,65,36,.07);
  overflow:hidden;
}
.stock-mission-head{
  display:grid;
  grid-template-columns:minmax(280px,1fr) minmax(560px,1.25fr) auto;
  gap:16px;
  align-items:center;
  padding:1.35rem 1.45rem;
  border-bottom:1px solid #e0ebd8;
}
.stock-mission-title{
  display:flex;
  align-items:center;
  gap:1rem;
  min-width:0;
}
.stock-mission-title h1{
  margin:0;
  font-size:2rem;
  line-height:1.05;
  letter-spacing:0;
  color:#111;
  font-weight:850;
}
.stock-mission-title p{
  margin:.35rem 0 0;
  color:#697268;
  font-size:.98rem;
}
.stock-mission-icon,
.stock-quick-icon,
.stock-nav-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:#dbead5;
  color:#0f2d1b;
  flex:0 0 auto;
}
.stock-mission-icon{
  width:56px;
  height:56px;
  border-radius:14px;
  background:linear-gradient(145deg,#315f3d,#10351f);
  box-shadow:0 14px 34px rgba(25,65,36,.18);
}
.stock-mission-icon img{
  width:30px;
  height:30px;
  object-fit:contain;
  filter:brightness(0) invert(1);
}
.stock-mission-badge{
  align-self:center;
  margin-top:0;
  padding:.35rem .75rem;
  border-radius:999px;
  background:#dbead5;
  color:#244b30;
  font-weight:850;
  font-size:.84rem;
  text-transform:lowercase;
}
.stock-quick-zone{
  display:grid;
  gap:.45rem;
  justify-items:start;
}
.stock-quick-zone h2{
  margin:0;
  font-size:.86rem;
  color:#111;
  font-weight:900;
}
.stock-quick-actions{
  width:100%;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.8rem;
}
.stock-quick-card{
  min-height:66px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:.78rem;
  padding:.75rem .9rem;
  border:1px solid #e0ebd8;
  border-radius:16px;
  background:linear-gradient(180deg,#fff,#fbfdf8);
  color:#111;
  font:inherit;
  cursor:pointer;
  box-shadow:0 10px 26px rgba(25,65,36,.06);
  text-align:left;
}
.stock-quick-card:hover,
.stock-nav-item:hover{
  transform:translateY(-1px);
  border-color:#d9e3d3;
  background:#fffefa;
}
.stock-quick-card:focus-visible,
.stock-nav-item:focus-visible,
.stock-archive-pill:focus-visible{
  outline:3px solid rgba(35,74,45,.22);
  outline-offset:3px;
}
.stock-quick-icon{
  width:38px;
  height:38px;
  border-radius:12px;
}
.stock-quick-icon img,
.stock-nav-icon img{
  width:20px;
  height:20px;
  object-fit:contain;
  display:block;
  filter:brightness(0) saturate(100%) invert(12%) sepia(29%) saturate(1183%) hue-rotate(85deg) brightness(92%) contrast(92%);
}
.stock-quick-card strong{
  display:block;
  font-size:.93rem;
  line-height:1.15;
  font-weight:850;
}
.stock-quick-card small{
  display:block;
  margin-top:.12rem;
  color:#697268;
  font-size:.78rem;
  font-weight:650;
}
.stock-quick-arrow{
  margin-left:auto;
  color:#234a2d;
  font-weight:900;
}
.stock-archive-pill{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:0 1rem;
  border:1px solid #e0ebd8;
  border-radius:14px;
  background:#fff;
  color:#111;
  font-weight:850;
  font-size:.86rem;
  cursor:pointer;
  box-shadow:0 10px 26px rgba(25,65,36,.06);
}
.stock-archive-pill span::before{
  content:"";
  display:block;
  width:18px;
  height:18px;
  background:#173c24;
  mask:url("/static/icons/ora/archive.svg") center/contain no-repeat;
}
.stock-nav-card{
  display:block;
  align-items:center;
  padding:1rem 1.25rem;
  border:0;
  border-radius:0;
  background:rgba(255,255,255,.88);
  box-shadow:none;
  overflow:auto;
}
.stock-nav-head{
  display:none;
}
.stock-nav-head h2{
  margin:0;
  font-size:1.22rem;
  color:#111;
}
.stock-visual-nav{
  display:flex;
  align-items:center;
  gap:1rem;
  min-width:max-content;
}
.stock-nav-item{
  position:relative;
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:.7rem;
  padding:.7rem 1.15rem;
  border:1px solid transparent;
  border-radius:14px;
  background:#fff;
  color:#111;
  font:inherit;
  font-weight:850;
  font-size:.9rem;
  cursor:pointer;
}
.stock-nav-item.active .stock-nav-icon{
  box-shadow:none;
}
.stock-nav-item.active{
  color:#173c24;
  background:#f2f8ee;
  border-color:#e0ebd8;
  box-shadow:inset 0 0 0 1px #d7e8ce;
}
.stock-nav-item.active::after{
  content:"";
  position:absolute;
  left:14px;
  right:14px;
  bottom:-1rem;
  height:3px;
  border-radius:999px;
  background:#234a2d;
}
.stock-nav-icon{
  width:34px;
  height:34px;
  border-radius:11px;
}
.stock-archive-modal{
  position:fixed;
  inset:0;
  z-index:1200;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(12,22,15,.42);
  backdrop-filter:blur(5px);
}
.stock-archive-modal.hidden{
  display:none;
}
.stock-archive-dialog{
  position:relative;
  width:min(520px,100%);
  padding:30px;
  border:1px solid #e6e0d3;
  border-radius:24px;
  background:#fffdfa;
  box-shadow:0 28px 80px rgba(0,0,0,.22);
}
.stock-archive-dialog h2{
  margin:2px 0 10px;
  font-size:1.65rem;
}
.stock-archive-close{
  position:absolute;
  top:18px;
  right:18px;
  width:42px;
  height:42px;
  border:0;
  border-radius:999px;
  background:#efe6d6;
  cursor:pointer;
}
.stock-archive-close::before{
  content:"";
  display:block;
  width:20px;
  height:20px;
  margin:auto;
  background:#2e2a24;
  mask:url("/static/icons/ora/close.svg") center/contain no-repeat;
}
.stock-archive-warning{
  margin:0 0 18px;
  color:#5f665f;
}
.stock-archive-field{
  display:grid;
  gap:8px;
  color:#2f372f;
  font-weight:850;
}
.stock-archive-field input{
  min-height:48px;
  padding:0 14px;
  border:1px solid #d7c7aa;
  border-radius:14px;
  background:#fffaf2;
}
.stock-archive-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:20px;
  flex-wrap:wrap;
}
@media(max-width:1120px){
  .stock-mission-head{
    grid-template-columns:1fr;
    align-items:start;
  }
  .stock-quick-zone{
    justify-items:start;
  }
}
@media(max-width:760px){
  .stock-quick-actions{
    grid-template-columns:1fr;
  }
  .stock-visual-nav{
    display:flex;
    gap:.5rem;
  }
  .stock-mission-title{
    align-items:flex-start;
  }
  .stock-mission-title h1{
    font-size:1.55rem;
  }
  .stock-mission-badge{
    display:none;
  }
}

/* Stock Add Form */
.module-shell-stock #tab-create{
  padding-top:8px;
}
.stock-form-page{
  display:grid;
  gap:14px;
  margin:4px 0 22px;
}
.stock-form-breadcrumb{
  display:flex;
  align-items:center;
  gap:9px;
  color:#7d8678;
  font-size:.9rem;
}
.stock-form-breadcrumb button{
  border:0;
  background:transparent;
  padding:0;
  color:#526455;
  font:inherit;
  cursor:pointer;
}
.stock-form-breadcrumb button:hover{
  color:#183828;
}
.stock-form-breadcrumb strong{
  color:#526455;
  font-weight:650;
}
.stock-form-heading{
  display:grid;
  gap:8px;
}
.stock-create-title.stock-form-title{
  width:auto !important;
  margin:0 !important;
  text-align:left !important;
  color:#111;
  font-size:clamp(1.85rem,2.35vw,2.35rem);
  line-height:1.05;
  letter-spacing:0;
}
.stock-form-subtitle{
  margin:0;
  color:#7d8678;
  font-size:.98rem;
}
.stock-form-card{
  display:grid;
  gap:24px;
  margin-top:0;
  padding:28px 32px 18px;
  border:1px solid rgba(24,56,40,.10);
  border-radius:24px;
  background:#fff;
  box-shadow:0 20px 60px rgba(18,30,21,.06);
}
.stock-form-section-title{
  margin-bottom:14px;
  color:#111;
  font-weight:900;
  font-size:.98rem;
}
.stock-sale-options{
  display:grid;
  grid-template-columns:repeat(4,minmax(150px,1fr));
  gap:14px;
}
.stock-sale-option{
  cursor:pointer;
}
.stock-sale-option input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.stock-sale-option span{
  min-height:56px;
  display:flex;
  align-items:center;
  gap:14px;
  padding:10px 14px;
  border:1px solid rgba(24,56,40,.12);
  border-radius:16px;
  background:#fff;
  color:#1b1f1b;
  box-shadow:0 10px 24px rgba(18,30,21,.035);
  transition:border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.stock-sale-option span b{
  width:34px;
  height:34px;
  display:inline-grid;
  place-items:center;
  border-radius:10px;
  background:#f4f6f1;
  color:#315c37;
  font-size:1rem;
}
.stock-sale-option span small{
  color:#2c332c;
  font-size:.9rem;
  font-weight:750;
}
.stock-sale-option:hover span{
  transform:translateY(-1px);
  border-color:rgba(50,80,40,.28);
}
.stock-sale-option input:focus-visible + span{
  outline:3px solid rgba(50,80,40,.18);
  outline-offset:2px;
}
.stock-sale-option input:checked + span{
  border-color:#4f9b5c;
  background:#f7fcf5;
  box-shadow:0 0 0 1px rgba(79,155,92,.20) inset, 0 12px 28px rgba(18,30,21,.05);
}
.stock-form-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:18px;
}
.stock-form-panel{
  display:grid;
  gap:16px;
  align-content:start;
  padding:20px;
  border:1px solid rgba(24,56,40,.10);
  border-radius:20px;
  background:#fff;
  box-shadow:0 12px 34px rgba(18,30,21,.035);
}
.stock-form-panel-title{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
  color:#111;
  font-size:1.08rem;
}
.stock-form-panel-title span{
  width:28px;
  height:28px;
  display:inline-grid;
  place-items:center;
  border-radius:9px;
  background:#eef6ea;
}
.stock-form-panel-title span::before{
  content:"";
  width:15px;
  height:15px;
  background:#183828;
  mask:url("/static/icons/ora/stock-addstock.svg") center/contain no-repeat;
}
.stock-form-panel-title-buy span::before{
  mask:url("/static/icons/marketinsider.png") center/contain no-repeat;
}
.stock-form-card .field{
  display:grid;
  gap:8px;
  margin:0;
}
.stock-form-card .field label{
  color:#2d362f;
  font-weight:800;
  font-size:.9rem;
}
.stock-form-card .input,
.stock-form-card select,
.stock-form-card textarea{
  min-height:50px;
  width:100%;
  border:1px solid rgba(24,56,40,.13);
  border-radius:14px;
  background:#fff;
  color:#1b211d;
  box-shadow:inset 0 1px 0 rgba(18,30,21,.03);
}
.stock-form-card .input:focus,
.stock-form-card select:focus,
.stock-form-card textarea:focus{
  outline:0;
  border-color:#5a9d62;
  box-shadow:0 0 0 3px rgba(90,157,98,.16);
}
.stock-form-row-with-action{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 132px;
  gap:10px;
  align-items:center;
}
.stock-inline-action{
  min-height:50px;
  border-radius:14px !important;
  background:#183828 !important;
  border-color:#183828 !important;
  color:#fff !important;
  font-weight:900 !important;
  box-shadow:0 12px 24px rgba(24,56,40,.16) !important;
}
.stock-generic-card{
  width:100%;
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  gap:3px 12px;
  margin-top:10px;
  padding:14px;
  border:0;
  border-radius:16px;
  background:linear-gradient(135deg,#f7fbf4,#fbfaf6);
  color:#183828;
  text-align:left;
  cursor:pointer;
}
.stock-generic-card > span{
  grid-row:1 / 3;
  width:28px;
  height:28px;
  display:inline-grid;
  place-items:center;
  border-radius:999px;
  background:#deefd8;
}
.stock-generic-card > span::before{
  content:"";
  width:14px;
  height:14px;
  background:#325028;
  mask:url("/static/icons/ora/add.svg") center/contain no-repeat;
}
.stock-generic-card strong{
  font-size:.92rem;
}
.stock-generic-card small{
  color:#586558;
  line-height:1.4;
}
.stock-generic-card:hover{
  background:#f1f8ee;
}
.stock-submit-row{
  display:flex;
  justify-content:flex-end;
  padding-top:2px;
}
.stock-submit-button{
  min-height:50px;
  padding:0 24px !important;
  border-radius:14px !important;
  background:#183828 !important;
  border-color:#183828 !important;
  color:#fff !important;
  font-weight:900 !important;
  box-shadow:0 14px 28px rgba(24,56,40,.18) !important;
}
@media(max-width:1100px){
  .stock-sale-options,
  .stock-form-grid{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:720px){
  .stock-form-card{
    padding:20px;
    border-radius:20px;
  }
  .stock-sale-options,
  .stock-form-grid,
  .stock-form-row-with-action{
    grid-template-columns:1fr;
  }
  .stock-submit-button{
    width:100%;
  }
}

/* Stock Operational Dashboard */
.stock-dashboard-grid{
  display:grid;
  grid-template-columns:1fr 1fr 1.15fr 1.05fr;
  gap:12px;
  align-items:stretch;
}
.stock-dashboard-card{
  min-height:520px;
  display:flex;
  flex-direction:column;
  padding:22px 24px;
  border:1px solid rgba(24,56,40,.10);
  border-radius:22px;
  background:#fff;
  box-shadow:0 14px 42px rgba(18,30,21,.045);
  color:#1b2e22;
}
.stock-dashboard-card-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:22px;
}
.stock-dashboard-card-header h2{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
  color:#111;
  font-size:1.05rem;
  line-height:1.2;
}
.stock-dashboard-icon{
  width:28px;
  height:28px;
  display:inline-grid;
  place-items:center;
  border-radius:9px;
  background:#edf6ea;
  color:#325028;
}
.stock-dashboard-icon::before{
  content:"";
  width:15px;
  height:15px;
  background:currentColor;
  mask:linear-gradient(#000 0 0) center/100% 100% no-repeat;
}
.stock-dashboard-icon-alert{background:#fff0ef;color:#e74d4d;}
.stock-dashboard-icon-alert::before{
  mask:url("/static/icons/ora/module-warning.svg") center/contain no-repeat;
}
.stock-dashboard-icon-task::before{
  mask:url("/static/icons/ora/module-task.svg") center/contain no-repeat;
}
.stock-dashboard-icon-bell::before{
  mask:url("/static/icons/ora/module-notifications.svg") center/contain no-repeat;
}
.stock-dashboard-icon-activity::before{
  mask:url("/static/icons/ora/module-activity.svg") center/contain no-repeat;
}
.module-activity-title,
.dashm-activity-card .dashm-section-head h2,
.dashm-alerts-card .dashm-section-head h2{
  display:flex;
  align-items:center;
  gap:10px;
}
.module-activity-title::before,
.dashm-activity-card .dashm-section-head h2::before,
.dashm-alerts-card .dashm-section-head h2::before{
  content:"";
  width:28px;
  height:28px;
  display:inline-grid;
  flex:0 0 auto;
  border-radius:9px;
  background:#edf6ea;
  background-color:#edf6ea;
  background-image:none;
}
.module-activity-title::before,
.dashm-activity-card .dashm-section-head h2::before{
  background:#325028;
  mask:url("/static/icons/ora/module-activity.svg") center/18px 18px no-repeat;
  -webkit-mask:url("/static/icons/ora/module-activity.svg") center/18px 18px no-repeat;
}
.dashm-alerts-card .dashm-section-head h2::before{
  background:#e74d4d;
  mask:url("/static/icons/ora/module-warning.svg") center/15px 15px no-repeat;
  -webkit-mask:url("/static/icons/ora/module-warning.svg") center/15px 15px no-repeat;
}
.module-activity-card{
  border-radius:22px !important;
  border-color:rgba(24,56,40,.10) !important;
  background:#fff !important;
  box-shadow:0 14px 42px rgba(18,30,21,.045) !important;
}
.module-activity-card .dashboard-column-head,
.module-activity-card .isd-row-between{
  margin-bottom:18px;
}
.module-activity-card .dashboard-activity-feed,
.module-activity-card #isd-activity,
.module-activity-card #mi-activity-feed{
  position:relative;
  display:grid;
  gap:0;
}
.module-activity-card .activity-row,
.module-activity-card .activity-row-clickable,
.module-activity-card .isd-item,
.module-activity-card .mi-item{
  position:relative;
  display:grid !important;
  grid-template-columns:18px minmax(0,1fr);
  gap:12px;
  min-height:56px;
  padding:0 0 18px 0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#1b2e22 !important;
}
.module-activity-card .activity-row:not(:last-child)::after,
.module-activity-card .activity-row-clickable:not(:last-child)::after,
.module-activity-card .isd-item:not(:last-child)::after,
.module-activity-card .mi-item:not(:last-child)::after{
  content:"";
  position:absolute;
  left:4px;
  top:18px;
  bottom:-8px;
  width:1px;
  background:#e0e7dc;
}
.module-activity-card .activity-row::before,
.module-activity-card .activity-row-clickable::before,
.module-activity-card .isd-item::before,
.module-activity-card .mi-item::before{
  content:"";
  width:8px;
  height:8px;
  margin-top:6px;
  border-radius:999px;
  background:#325028;
  z-index:1;
}
.module-activity-card .activity-time,
.module-activity-card .isd-small,
.module-activity-card .mi-muted{
  color:#7d8678 !important;
}
.stock-dashboard-link,
.stock-dashboard-flow-link{
  border:0;
  background:transparent;
  color:#325028;
  font:inherit;
  font-size:.82rem;
  font-weight:850;
  cursor:pointer;
}
.stock-dashboard-link:focus-visible,
.stock-dashboard-flow-link:focus-visible,
.stock-alert-item:focus-visible,
.stock-task-item:focus-visible,
.stock-notification-item:focus-visible{
  outline:3px solid rgba(50,80,40,.18);
  outline-offset:3px;
}
.stock-dashboard-meta{
  color:#7d8678;
  font-size:.82rem;
}
.stock-alert-list,
.stock-task-list,
.stock-notification-list{
  display:grid;
  gap:18px;
}
.stock-alert-item,
.stock-task-item,
.stock-notification-item{
  width:100%;
  min-height:54px;
  display:grid;
  align-items:center;
  gap:12px;
  border:0;
  background:transparent;
  color:#1b2e22;
  font:inherit;
  text-align:left;
  cursor:pointer;
}
.stock-alert-item{
  grid-template-columns:34px minmax(0,1fr) auto;
}
.stock-alert-item strong,
.stock-task-item strong,
.stock-notification-item strong{
  display:block;
  color:#1b1f1b;
  font-size:.9rem;
  line-height:1.25;
}
.stock-alert-item small,
.stock-notification-item small,
.stock-activity-copy small{
  display:block;
  margin-top:3px;
  color:#7d8678;
  font-size:.8rem;
  line-height:1.35;
}
.stock-alert-ico{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:10px;
}
.stock-alert-ico::before{
  content:"!";
  width:18px;
  height:18px;
  background:currentColor;
  mask:url("/static/icons/ora/module-warning.svg") center/contain no-repeat;
}
.stock-alert-danger{background:#fff0ef;color:#e74d4d;}
.stock-alert-warning{background:#fff6eb;color:#f5a623;}
.stock-badge{
  min-width:27px;
  height:27px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 8px;
  border-radius:999px;
  color:#325028;
  background:#e9f1e6;
  font-size:.78rem;
  font-weight:900;
}
.stock-badge-red{background:#ffe9e9;color:#e74d4d;}
.stock-badge-orange{background:#fff1df;color:#d98100;}
.stock-task-item{
  grid-template-columns:22px minmax(0,1fr) auto;
}
.stock-task-item > span{
  width:18px;
  height:18px;
  border:0;
  border-radius:0;
  background:#325028;
  mask:url("/static/icons/ora/module-task.svg") center/contain no-repeat;
}
.stock-notification-item{
  grid-template-columns:12px minmax(0,1fr) auto;
}
.stock-notification-item > span{
  width:18px;
  height:18px;
  border-radius:0;
  background:#325028;
  mask:url("/static/icons/ora/module-notifications.svg") center/contain no-repeat;
}
.stock-notification-item small{
  margin:0;
  justify-self:end;
  white-space:nowrap;
}
.stock-activity-timeline{
  position:relative;
  display:grid;
  gap:0;
  flex:1;
}
.stock-activity-item{
  position:relative;
  display:grid;
  grid-template-columns:70px 16px minmax(0,1fr);
  gap:12px;
  min-height:64px;
  color:#1b2e22;
}
.stock-activity-item:not(:last-child)::after{
  content:"";
  position:absolute;
  left:77px;
  top:30px;
  bottom:-28px;
  width:1px;
  background:#e0e7dc;
}
.stock-activity-item.is-clickable{
  cursor:pointer;
}
.stock-activity-time{
  display:grid;
  align-content:start;
  gap:3px;
  color:#7d8678;
  font-size:.75rem;
  padding-top:1px;
}
.stock-activity-time strong{
  color:#7d8678;
  font-size:.75rem;
  font-weight:600;
}
.stock-activity-dot{
  width:8px;
  height:8px;
  margin-top:6px;
  border-radius:999px;
  background:#325028;
  z-index:1;
}
.stock-activity-copy strong{
  display:block;
  color:#111;
  font-size:.9rem;
}
.stock-dashboard-flow-link{
  min-height:48px;
  margin:18px auto 0;
  padding:0 28px;
  border:1px solid rgba(24,56,40,.10);
  border-radius:14px;
  background:#fff;
  box-shadow:0 8px 18px rgba(18,30,21,.035);
}
.stock-empty-state{
  padding:18px;
  border:1px dashed rgba(24,56,40,.14);
  border-radius:16px;
  color:#7d8678;
  background:#fbfaf6;
  font-size:.9rem;
}
@media(max-width:1400px){
  .stock-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:760px){
  .stock-dashboard-grid{grid-template-columns:1fr;}
  .stock-dashboard-card{min-height:auto;}
}


/* =========================================================
 * STOCK - Depots / Stocks V2
 * =======================================================*/
.module-shell-stock .stock-depots-page{
  display:grid;
  gap:14px;
}
.module-shell-stock .stock-depots-head{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:22px!important;
  margin:4px 0 12px!important;
  padding:0!important;
}
.module-shell-stock .stock-depots-head h2{
  margin:0 0 6px!important;
  color:#111512!important;
  font-size:clamp(1.75rem, 2.4vw, 2.35rem)!important;
  line-height:1.02!important;
  letter-spacing:-.02em!important;
  font-weight:900!important;
}
.module-shell-stock .stock-depots-head .muted,
.module-shell-stock .stock-depots-head p{
  color:#6d746d!important;
  font-size:.96rem!important;
  line-height:1.45!important;
}
.module-shell-stock .stock-depots-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:wrap!important;
  gap:10px!important;
}
.module-shell-stock .stock-depots-actions .btn{
  min-height:40px!important;
  border-radius:12px!important;
  padding:0 16px!important;
  font-weight:850!important;
  box-shadow:0 10px 26px rgba(20,32,24,.05)!important;
}
.module-shell-stock .stock-depots-secondary{
  background:#f8fbf7!important;
  border-color:rgba(28,73,43,.18)!important;
  color:#244b30!important;
}
.module-shell-stock .stock-depots-primary{
  background:#173f27!important;
  border-color:#173f27!important;
  color:#fff!important;
}
.module-shell-stock #depotTabs.stock-depot-pills{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
  gap:8px!important;
  overflow-x:auto!important;
  scrollbar-width:thin!important;
  padding:2px 2px 10px!important;
  margin:0 0 2px!important;
  border:0!important;
  background:transparent!important;
}
.module-shell-stock #depotTabs.stock-depot-pills .depot-leaf{
  appearance:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  min-height:38px!important;
  margin:0!important;
  padding:0 14px!important;
  border:1px solid rgba(28,45,32,.12)!important;
  border-radius:13px!important;
  background:#fffdf9!important;
  color:#1c2c22!important;
  box-shadow:0 8px 22px rgba(24,38,28,.045)!important;
  white-space:nowrap!important;
  font-size:.86rem!important;
  font-weight:850!important;
  transform:none!important;
}
.module-shell-stock #depotTabs.stock-depot-pills .depot-leaf.active{
  background:#eef7ec!important;
  border-color:rgba(49,113,60,.42)!important;
  color:#173f27!important;
  box-shadow:0 10px 26px rgba(49,88,63,.10)!important;
}
.module-shell-stock #depotTabs.stock-depot-pills .pill-code{
  font-weight:850!important;
}
.module-shell-stock #depotTabs.stock-depot-pills .pill-count{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:24px!important;
  height:22px!important;
  padding:0 8px!important;
  border:1px solid rgba(39,72,47,.10)!important;
  border-radius:999px!important;
  background:#f2ede3!important;
  color:#574b3a!important;
  font-size:.76rem!important;
  font-weight:900!important;
  opacity:1!important;
  margin:0!important;
}
.module-shell-stock #depotTabs.stock-depot-pills .depot-leaf.active .pill-count{
  background:#dfeeda!important;
  color:#244b30!important;
}
.module-shell-stock .stock-depot-overview-card,
.module-shell-stock .stock-depot-values-card,
.module-shell-stock .stock-depot-table-card{
  border:1px solid rgba(25,44,32,.09)!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 18px 50px rgba(20,32,24,.045)!important;
  padding:18px!important;
}
.module-shell-stock .stock-depot-overview-card{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
}
.module-shell-stock .stock-depot-overview-card > .block-head{
  margin:0 0 10px!important;
  padding:0!important;
}
.module-shell-stock .stock-depot-overview-card .triple-soft{
  display:grid!important;
  grid-template-columns:minmax(260px,1.08fr) minmax(320px,1fr) minmax(320px,1.2fr)!important;
  gap:12px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  overflow:visible!important;
}
.module-shell-stock .stock-depot-overview-card .triple-col{
  min-height:228px!important;
  border:1px solid rgba(25,44,32,.09)!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 18px 50px rgba(20,32,24,.045)!important;
  padding:18px!important;
}
.module-shell-stock .stock-depot-overview-card .triple-h,
.module-shell-stock .stock-depot-values-card .card-title,
.module-shell-stock .stock-depot-table-card .card-title{
  color:#141714!important;
  font-size:1rem!important;
  font-weight:900!important;
  letter-spacing:-.01em!important;
}
.module-shell-stock .stock-depot-overview-card .kpi,
.module-shell-stock .stock-depot-overview-card .mini-lists > div{
  border:1px solid rgba(25,44,32,.08)!important;
  border-radius:15px!important;
  background:linear-gradient(180deg,#fffdf9,#fbfaf6)!important;
  padding:14px!important;
}
.module-shell-stock .stock-depot-overview-card .kpi-value{
  color:#111512!important;
  font-size:1.62rem!important;
  line-height:1!important;
}
.module-shell-stock .stock-depot-overview-card .mini-lists{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}
.module-shell-stock .stock-depot-overview-card .hr-mini{
  background:rgba(27,54,36,.08)!important;
}
.module-shell-stock .stock-depot-values-card .block-head,
.module-shell-stock .stock-depot-table-card .block-head{
  margin:0 0 14px!important;
  padding:0!important;
  border:0!important;
}
.module-shell-stock .stock-depot-values-card .values-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  overflow:visible!important;
}
.module-shell-stock .stock-depot-values-card .values-col{
  border:1px solid rgba(25,44,32,.08)!important;
  border-radius:16px!important;
  background:linear-gradient(180deg,#fffdf9,#fbfaf6)!important;
  padding:16px!important;
  box-shadow:0 8px 22px rgba(20,32,24,.025)!important;
}
.module-shell-stock .stock-depot-values-card .values-h{
  color:#596259!important;
  font-size:.84rem!important;
  font-weight:850!important;
  margin:0 0 8px!important;
}
.module-shell-stock .stock-depot-values-card .values-v{
  color:#111512!important;
  font-size:1.38rem!important;
  line-height:1.08!important;
  font-weight:950!important;
}
.module-shell-stock .stock-depot-values-card .hr-soft{
  height:1px!important;
  background:rgba(27,54,36,.08)!important;
  margin:14px 0!important;
}
.module-shell-stock .stock-depot-values-card .values-subtitle{
  color:#202b22!important;
  font-size:.9rem!important;
  font-weight:900!important;
  margin:0 0 10px!important;
}
.module-shell-stock .stock-depot-products-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:18px!important;
}
.module-shell-stock .stock-depot-table-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
}
.module-shell-stock #depotProductSearch{
  min-width:min(430px,42vw)!important;
  min-height:40px!important;
  border-radius:12px!important;
  background:#fff!important;
  border-color:rgba(25,44,32,.12)!important;
}
.module-shell-stock .stock-depot-table-card .btn.ghost{
  min-height:38px!important;
  border-radius:12px!important;
  background:#f8fbf7!important;
  color:#244b30!important;
  border-color:rgba(28,73,43,.16)!important;
  font-weight:850!important;
}
.module-shell-stock .stock-depot-table-card .table-wrap{
  border:1px solid rgba(25,44,32,.10)!important;
  border-radius:16px!important;
  overflow:auto!important;
  max-height:58vh!important;
  background:#fff!important;
}
.module-shell-stock #depotProductsTable{
  width:100%!important;
  min-width:1120px!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}
.module-shell-stock #depotProductsTable thead th{
  position:sticky!important;
  top:0!important;
  z-index:2!important;
  height:42px!important;
  background:#173f27!important;
  color:#fff!important;
  border:0!important;
  font-size:.76rem!important;
  letter-spacing:.02em!important;
  text-transform:none!important;
}
.module-shell-stock #depotProductsTable tbody td{
  height:46px!important;
  border-bottom:1px solid rgba(25,44,32,.08)!important;
  color:#202721!important;
  font-size:.86rem!important;
}
.module-shell-stock #depotProductsTable tbody tr:hover td{
  background:#f4faf5!important;
}
.module-shell-stock .stock-depot-count-row{
  border-bottom:1px solid rgba(25,44,32,.08)!important;
  padding:7px 4px!important;
}
.module-shell-stock #depotLastMoves .muted,
.module-shell-stock #depotTopBrands .muted,
.module-shell-stock #depotTopRefs .muted{
  color:#697269!important;
}
@media(max-width:1180px){
  .module-shell-stock .stock-depot-overview-card .triple-soft{grid-template-columns:1fr 1fr!important;}
  .module-shell-stock .stock-depot-overview-card .triple-col:last-child{grid-column:1/-1!important;}
  .module-shell-stock .stock-depot-values-card .values-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:780px){
  .module-shell-stock .stock-depots-head{align-items:flex-start!important;flex-direction:column!important;}
  .module-shell-stock .stock-depots-actions{justify-content:flex-start!important;width:100%!important;}
  .module-shell-stock .stock-depots-actions .btn{flex:1 1 180px!important;}
  .module-shell-stock .stock-depot-overview-card .triple-soft,
  .module-shell-stock .stock-depot-values-card .values-grid{grid-template-columns:1fr!important;}
  .module-shell-stock .stock-depot-overview-card .triple-col:last-child{grid-column:auto!important;}
  .module-shell-stock .stock-depot-products-head{flex-direction:column!important;}
  .module-shell-stock .stock-depot-table-actions{width:100%!important;justify-content:flex-start!important;}
  .module-shell-stock #depotProductSearch{min-width:100%!important;width:100%!important;}
}


/* STOCK - Depots responsive containment */
.module-shell-stock .stock-depots-page,
.module-shell-stock .stock-depots-page *{
  box-sizing:border-box!important;
}
.module-shell-stock .stock-depots-page{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow-x:hidden!important;
}
.module-shell-stock .stock-depots-page > *{
  min-width:0!important;
  max-width:100%!important;
}
.module-shell-stock .stock-depot-overview-card .triple-soft,
.module-shell-stock .stock-depot-values-card .values-grid{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}
.module-shell-stock .stock-depot-overview-card .triple-col,
.module-shell-stock .stock-depot-values-card .values-col,
.module-shell-stock .stock-depot-table-card{
  min-width:0!important;
  max-width:100%!important;
}
.module-shell-stock .stock-depot-table-card .table-wrap{
  width:100%!important;
  max-width:100%!important;
  overflow:auto!important;
}
@media(max-width:780px){
  .module-shell-stock .stock-depots-actions .btn{
    flex:1 1 100%!important;
    width:100%!important;
  }
  .module-shell-stock #depotTabs.stock-depot-pills{
    max-width:100%!important;
    padding-bottom:8px!important;
  }
  .module-shell-stock .stock-depot-overview-card .triple-soft,
  .module-shell-stock .stock-depot-values-card .values-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
  }
  .module-shell-stock .stock-depot-overview-card .mini-lists{
    grid-template-columns:minmax(0,1fr)!important;
  }
}


/* =========================================================
 * STOCK - Stats & Logs Analytics V2
 * =======================================================*/
.module-shell-stock .stock-analytics-page,
.module-shell-stock .stock-analytics-page *{box-sizing:border-box!important;}
.module-shell-stock .stock-analytics-page{display:grid;gap:18px;width:100%;max-width:100%;overflow-x:hidden;color:#101511;}
.module-shell-stock .stock-analytics-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:4px 0 2px;}
.module-shell-stock .stock-analytics-head h2{margin:0 0 6px;font-size:clamp(1.8rem,2.4vw,2.4rem);line-height:1.02;font-weight:950;letter-spacing:-.025em;color:#111512;}
.module-shell-stock .stock-analytics-head p{margin:0;color:#6c746d;font-size:.98rem;}
.module-shell-stock .stock-analytics-log-button{min-height:40px;border-radius:13px!important;background:#f8fbf7!important;border-color:rgba(28,73,43,.16)!important;color:#244b30!important;font-weight:850!important;}
.module-shell-stock .stock-analytics-kpis{display:grid;grid-template-columns:repeat(6,minmax(150px,1fr));gap:12px;}
.module-shell-stock .stock-analytics-kpi{display:flex;gap:14px;align-items:flex-start;min-height:128px;border:1px solid rgba(25,44,32,.09);border-radius:20px;background:#fff;box-shadow:0 18px 50px rgba(20,32,24,.045);padding:18px;}
.module-shell-stock .stock-analytics-kpi p{margin:0 0 7px;color:#111512;font-size:.84rem;font-weight:900;line-height:1.25;}
.module-shell-stock .stock-analytics-kpi strong{display:block;color:#111512;font-size:1.55rem;line-height:1.05;font-weight:950;letter-spacing:-.02em;}
.module-shell-stock .stock-analytics-kpi small{display:block;margin-top:8px;color:#687169;font-size:.78rem;font-weight:650;}
.module-shell-stock .stock-analytics-icon{width:46px;height:46px;flex:0 0 46px;border-radius:14px;background:#e8f2e6;display:grid;place-items:center;position:relative;}
.module-shell-stock .stock-analytics-icon::before{content:"";width:23px;height:23px;background:#325028;mask:url('/static/icons/ora/package_2.svg') center/contain no-repeat;-webkit-mask:url('/static/icons/ora/package_2.svg') center/contain no-repeat;}
.module-shell-stock .stock-analytics-kpi[data-kpi="base"] .stock-analytics-icon{background:#f6eddf;}
.module-shell-stock .stock-analytics-kpi[data-kpi="margin"] .stock-analytics-icon{background:#eaf4e8;}
.module-shell-stock .stock-analytics-kpi[data-kpi="moves"] .stock-analytics-icon{background:#eaf2f9;}
.module-shell-stock .stock-analytics-kpi[data-kpi="alerts"] .stock-analytics-icon{background:#fff0e4;}
.module-shell-stock .stock-analytics-kpi[data-kpi="alerts"] .stock-analytics-icon::before{background:#c46624;mask:url('/static/icons/ora/module-warning.svg') center/contain no-repeat;-webkit-mask:url('/static/icons/ora/module-warning.svg') center/contain no-repeat;}
.module-shell-stock .stock-analytics-grid{display:grid;gap:12px;}
.module-shell-stock .stock-analytics-grid-main{grid-template-columns:1.2fr 1.25fr 1fr 1fr;}
.module-shell-stock .stock-analytics-grid-bottom{grid-template-columns:1.15fr 1.15fr 1.05fr;}
.module-shell-stock .stock-analytics-card{min-width:0;border:1px solid rgba(25,44,32,.09);border-radius:20px;background:#fff;box-shadow:0 18px 50px rgba(20,32,24,.045);padding:18px;}
.module-shell-stock .stock-analytics-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px;}
.module-shell-stock .stock-analytics-card h3{margin:0;color:#111512;font-size:1rem;font-weight:950;letter-spacing:-.01em;}
.module-shell-stock .stock-analytics-card p{margin:6px 0 0;color:#747b74;font-size:.82rem;line-height:1.35;}
.module-shell-stock .stock-analytics-select{height:34px;border:1px solid rgba(25,44,32,.10);border-radius:10px;background:#fffdf9;color:#263126;font-weight:750;padding:0 10px;}
.module-shell-stock .stock-category-chart{display:grid;grid-template-columns:170px 1fr;align-items:center;gap:18px;min-height:230px;}
.module-shell-stock .stock-donut{width:162px;height:162px;border-radius:50%;display:grid;place-items:center;box-shadow:inset 0 0 0 1px rgba(25,44,32,.06);}
.module-shell-stock .stock-donut > div{width:86px;height:86px;border-radius:50%;background:#fff;display:grid;place-items:center;text-align:center;box-shadow:0 8px 28px rgba(20,32,24,.08);}
.module-shell-stock .stock-donut strong{font-size:1.45rem;font-weight:950;line-height:1;color:#111512;}
.module-shell-stock .stock-donut span{font-size:.74rem;color:#6d746d;font-weight:800;}
.module-shell-stock .stock-donut-legend{display:grid;gap:10px;}
.module-shell-stock .stock-donut-legend div{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:10px;}
.module-shell-stock .stock-donut-legend span{width:10px;height:10px;border-radius:999px;}
.module-shell-stock .stock-donut-legend strong{font-size:.84rem;color:#111512;}
.module-shell-stock .stock-donut-legend em{font-style:normal;color:#596259;font-size:.8rem;font-weight:800;}
.module-shell-stock .stock-analytics-empty{display:grid;place-items:center;min-height:140px;border:1px dashed rgba(25,44,32,.16);border-radius:16px;background:#fbfaf6;color:#687169;text-align:center;padding:18px;font-weight:750;line-height:1.45;}
.module-shell-stock .stock-analytics-bars,.module-shell-stock .stock-analytics-rank{display:grid;gap:12px;}
.module-shell-stock .stock-bar-row{display:grid;grid-template-columns:94px minmax(80px,1fr) auto;gap:12px;align-items:center;}
.module-shell-stock .stock-bar-row strong{display:block;color:#111512;font-size:.84rem;font-weight:950;}
.module-shell-stock .stock-bar-row small{display:block;color:#768077;font-size:.72rem;font-weight:700;margin-top:2px;}
.module-shell-stock .stock-bar-row span{height:7px;border-radius:999px;background:#edf1ec;overflow:hidden;}
.module-shell-stock .stock-bar-row span i{display:block;height:100%;border-radius:999px;background:#325028;}
.module-shell-stock .stock-bar-row em{font-style:normal;color:#111512;font-weight:900;font-size:.82rem;text-align:right;}
.module-shell-stock .stock-rank-row{display:grid;grid-template-columns:minmax(0,1fr) auto 42px;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid rgba(25,44,32,.07);}
.module-shell-stock .stock-rank-row:last-child{border-bottom:0;}
.module-shell-stock .stock-rank-row strong{font-size:.86rem;color:#111512;font-weight:950;}
.module-shell-stock .stock-rank-row span{font-size:.84rem;color:#111512;font-weight:900;}
.module-shell-stock .stock-rank-row em{font-style:normal;color:#6d746d;font-size:.78rem;text-align:right;}
.module-shell-stock .stock-analytics-table{overflow:auto;border-radius:15px;border:1px solid rgba(25,44,32,.08);}
.module-shell-stock .stock-analytics-table table{width:100%;min-width:620px;border-collapse:separate;border-spacing:0;background:#fff;}
.module-shell-stock .stock-analytics-table th{height:38px;background:#fbfaf6;color:#596259;font-size:.75rem;font-weight:900;text-align:left;padding:0 12px;border-bottom:1px solid rgba(25,44,32,.08);}
.module-shell-stock .stock-analytics-table td{height:44px;color:#1c241d;font-size:.8rem;padding:0 12px;border-bottom:1px solid rgba(25,44,32,.06);}
.module-shell-stock .stock-analytics-table tr:last-child td{border-bottom:0;}
.module-shell-stock .stock-analytics-soft-action{margin:14px auto 0;min-height:38px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(25,44,32,.10);border-radius:13px;background:#fff;color:#244b30;font-weight:900;padding:0 18px;cursor:pointer;}
.module-shell-stock .stock-analytics-timeline{display:grid;gap:0;}
.module-shell-stock .stock-log-entry{position:relative;display:grid;grid-template-columns:86px minmax(0,1fr);gap:14px;padding:0 0 18px 18px;}
.module-shell-stock .stock-log-entry::before{content:"";position:absolute;left:3px;top:7px;width:9px;height:9px;border-radius:999px;background:#325028;box-shadow:0 0 0 4px #eef7ec;}
.module-shell-stock .stock-log-entry::after{content:"";position:absolute;left:7px;top:22px;bottom:0;width:1px;background:rgba(50,80,40,.16);}
.module-shell-stock .stock-log-entry:last-child{padding-bottom:0;}
.module-shell-stock .stock-log-entry:last-child::after{display:none;}
.module-shell-stock .stock-log-entry time{color:#6b746b;font-size:.76rem;font-weight:750;line-height:1.35;}
.module-shell-stock .stock-log-entry strong{display:block;color:#111512;font-size:.86rem;font-weight:950;}
.module-shell-stock .stock-log-entry p{margin:4px 0 0;color:#343d35;font-size:.8rem;line-height:1.35;}
.module-shell-stock .stock-log-entry small{display:block;margin-top:4px;color:#7b837c;font-size:.75rem;line-height:1.3;}
.module-shell-stock .stock-analytics-footnote{margin:0;color:#7b837c;font-size:.82rem;line-height:1.45;}
@media(max-width:1480px){.module-shell-stock .stock-analytics-kpis{grid-template-columns:repeat(3,minmax(0,1fr));}.module-shell-stock .stock-analytics-grid-main{grid-template-columns:1fr 1fr;}.module-shell-stock .stock-analytics-grid-bottom{grid-template-columns:1fr 1fr;}.module-shell-stock .stock-analytics-log-card{grid-column:1/-1;}}
@media(max-width:900px){.module-shell-stock .stock-analytics-kpis,.module-shell-stock .stock-analytics-grid-main,.module-shell-stock .stock-analytics-grid-bottom{grid-template-columns:1fr;}.module-shell-stock .stock-category-chart{grid-template-columns:1fr;justify-items:center;}.module-shell-stock .stock-analytics-head{flex-direction:column;align-items:flex-start;}.module-shell-stock .stock-log-entry{grid-template-columns:76px minmax(0,1fr);}}


/* STOCK - tab visibility guard */
.module-shell-stock .tab-panel:not(.active){
  display:none!important;
}
.module-shell-stock .stock-depots-page.active,
.module-shell-stock .stock-analytics-page.active{
  display:grid!important;
}

/* STOCK - Réceptions opérationnelles V2 */
.module-shell-stock #tab-receipts .stock-receipt-block,
.module-shell-stock #tab-receipts .stock-receipt-history{
  display:none!important;
}
.module-shell-stock .stock-receptions-v2{
  display:grid;
  gap:18px;
  color:#111512;
}
.module-shell-stock .stock-receptions-head{
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:flex-start;
}
.module-shell-stock .stock-receptions-head h2{
  margin:0;
  font-size:2rem;
  line-height:1.05;
  letter-spacing:0;
  color:#101511;
}
.module-shell-stock .stock-receptions-head p,
.module-shell-stock .stock-reception-card-head p{
  margin:6px 0 0;
  color:#687168;
  font-size:.92rem;
}
.module-shell-stock .stock-receptions-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.module-shell-stock .stock-reception-search{
  min-height:44px;
  width:min(360px,42vw);
  border:1px solid rgba(25,44,32,.10);
  border-radius:15px;
  background:#fff;
  color:#111512;
  padding:0 14px;
  box-shadow:0 8px 26px rgba(25,44,32,.04);
}
.module-shell-stock .stock-reception-primary{
  min-height:44px;
  border-radius:15px;
  background:#244b30!important;
  color:#fff!important;
  border-color:#244b30!important;
  box-shadow:0 10px 24px rgba(36,75,48,.14);
}
.module-shell-stock .stock-reception-kpis,
.module-shell-stock .stock-reception-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.module-shell-stock .stock-reception-kpis article,
.module-shell-stock .stock-reception-summary article,
.module-shell-stock .stock-reception-card,
.module-shell-stock .stock-reception-detail,
.module-shell-stock .stock-scan-card,
.module-shell-stock .stock-reception-items-card{
  border:1px solid rgba(25,44,32,.09);
  border-radius:22px;
  background:rgba(255,255,255,.86);
  box-shadow:0 16px 44px rgba(25,44,32,.055);
}
.module-shell-stock .stock-reception-kpis article,
.module-shell-stock .stock-reception-summary article{
  min-height:96px;
  padding:18px 20px;
  display:grid;
  align-content:center;
  gap:7px;
}
.module-shell-stock .stock-reception-kpis span,
.module-shell-stock .stock-reception-summary span{
  color:#687168;
  font-size:.82rem;
  font-weight:850;
}
.module-shell-stock .stock-reception-kpis strong,
.module-shell-stock .stock-reception-summary strong{
  color:#101511;
  font-size:1.9rem;
  line-height:1;
  font-weight:950;
}
.module-shell-stock .stock-reception-main-grid{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);
  gap:16px;
  align-items:start;
}
.module-shell-stock .stock-reception-card,
.module-shell-stock .stock-reception-detail,
.module-shell-stock .stock-reception-items-card{
  padding:20px;
}
.module-shell-stock .stock-reception-card-head,
.module-shell-stock .stock-reception-detail-head,
.module-shell-stock .stock-reception-footer{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
}
.module-shell-stock .stock-reception-card-head h3,
.module-shell-stock .stock-reception-detail h3{
  margin:0;
  color:#101511;
  font-size:1.05rem;
}
.module-shell-stock .stock-reception-list,
.module-shell-stock .stock-reception-history{
  display:grid;
  gap:10px;
  margin-top:14px;
}
.module-shell-stock .stock-reception-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  border:1px solid rgba(25,44,32,.08);
  border-radius:17px;
  background:#fffdf9;
  padding:14px;
}
.module-shell-stock .stock-reception-row strong{
  color:#101511;
  font-weight:950;
}
.module-shell-stock .stock-reception-row small{
  display:block;
  margin-top:3px;
  color:#687168;
  line-height:1.35;
}
.module-shell-stock .stock-reception-status,
.module-shell-stock .stock-reception-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  border-radius:999px;
  padding:0 10px;
  background:#eaf4e8;
  color:#244b30;
  font-size:.76rem;
  font-weight:950;
}
.module-shell-stock .stock-reception-badge.warn{background:#fff3db;color:#9b5a00;}
.module-shell-stock .stock-reception-badge.error{background:#ffe9e7;color:#b42318;}
.module-shell-stock .stock-reception-badge.muted{background:#f1f2ef;color:#687168;}
.module-shell-stock .stock-reception-detail.hidden{display:none!important;}
.module-shell-stock .stock-reception-detail{
  display:grid;
  gap:16px;
}
.module-shell-stock .stock-reception-scan-grid{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);
  gap:14px;
}
.module-shell-stock .stock-scan-card{
  padding:18px;
  display:grid;
  gap:10px;
}
.module-shell-stock .stock-scan-card label{
  color:#101511;
  font-size:1.02rem;
  font-weight:950;
}
.module-shell-stock .stock-scan-mode{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.module-shell-stock .stock-scan-mode button{
  border:1px solid rgba(25,44,32,.10);
  border-radius:999px;
  background:#fff;
  color:#516051;
  padding:7px 11px;
  font-weight:900;
  cursor:pointer;
}
.module-shell-stock .stock-scan-mode button.active{
  background:#244b30;
  border-color:#244b30;
  color:#fff;
}
.module-shell-stock .stock-scan-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
}
.module-shell-stock .stock-scan-row input{
  min-height:52px;
  border:1px solid rgba(25,44,32,.12);
  border-radius:16px;
  background:#fff;
  color:#101511;
  padding:0 16px;
  font-size:1rem;
  font-weight:850;
}
.module-shell-stock .stock-reception-feedback{
  margin:0;
  min-height:22px;
  color:#687168;
  font-weight:800;
}
.module-shell-stock .stock-reception-feedback.ok{color:#245b31;}
.module-shell-stock .stock-reception-feedback.warn{color:#9b5a00;}
.module-shell-stock .stock-reception-feedback.error{color:#b42318;}
.module-shell-stock .stock-reception-items{
  display:grid;
  gap:10px;
  margin-top:14px;
}
.module-shell-stock .stock-reception-item{
  display:grid;
  grid-template-columns:1.1fr 1fr .9fr 1.1fr auto;
  gap:12px;
  align-items:center;
  border:1px solid rgba(25,44,32,.08);
  border-radius:16px;
  background:#fffdf9;
  padding:12px;
}
.module-shell-stock .stock-reception-item.is-selected{
  border-color:rgba(36,75,48,.34);
  box-shadow:0 0 0 3px rgba(36,75,48,.08);
}
.module-shell-stock .stock-reception-item strong,
.module-shell-stock .stock-reception-item b{
  color:#101511;
}
.module-shell-stock .stock-reception-item small{
  display:block;
  color:#687168;
  font-size:.77rem;
  line-height:1.32;
}
.module-shell-stock .stock-reception-item input,
.module-shell-stock .stock-reception-item select{
  width:100%;
  min-height:38px;
  border:1px solid rgba(25,44,32,.11);
  border-radius:12px;
  background:#fff;
  color:#101511;
  padding:0 10px;
}
.module-shell-stock .stock-reception-footer{
  align-items:center;
  border-top:1px solid rgba(25,44,32,.07);
  padding-top:14px;
}
.module-shell-stock .stock-reception-hint{
  color:#687168;
  font-weight:850;
}
.module-shell-stock .stock-reception-footer-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
@media(max-width:1180px){
  .module-shell-stock .stock-receptions-head,
  .module-shell-stock .stock-reception-detail-head,
  .module-shell-stock .stock-reception-footer{display:grid;}
  .module-shell-stock .stock-reception-main-grid,
  .module-shell-stock .stock-reception-scan-grid{grid-template-columns:1fr;}
  .module-shell-stock .stock-reception-kpis,
  .module-shell-stock .stock-reception-summary{grid-template-columns:repeat(2,minmax(0,1fr));}
  .module-shell-stock .stock-reception-item{grid-template-columns:1fr;}
  .module-shell-stock .stock-reception-search{width:100%;}
}
@media(max-width:720px){
  .module-shell-stock .stock-reception-kpis,
  .module-shell-stock .stock-reception-summary,
  .module-shell-stock .stock-scan-row{grid-template-columns:1fr;}
}

/* STOCK - titres unifiés des onglets */
.module-shell-stock .stock-tab-heading,
.module-shell-stock .stock-receptions-head,
.module-shell-stock .stock-depots-head,
.module-shell-stock .stock-analytics-head{
  display:flex!important;
  justify-content:space-between!important;
  align-items:flex-start!important;
  gap:18px!important;
  margin:0 0 18px!important;
}
.module-shell-stock .stock-tab-heading h2,
.module-shell-stock .stock-receptions-head h2,
.module-shell-stock .stock-depots-head h2,
.module-shell-stock .stock-analytics-head h2{
  margin:0!important;
  color:#101511!important;
  font-size:1.75rem!important;
  line-height:1.08!important;
  font-weight:650!important;
  letter-spacing:0!important;
}
.module-shell-stock .stock-tab-heading p,
.module-shell-stock .stock-receptions-head p,
.module-shell-stock .stock-depots-head .muted,
.module-shell-stock .stock-analytics-head p{
  margin:7px 0 0!important;
  color:#687168!important;
  font-size:.92rem!important;
  line-height:1.35!important;
  font-weight:450!important;
}
.module-shell-stock #stock-dashboard{
  margin-top:0!important;
}
@media(max-width:1180px){
  .module-shell-stock .stock-tab-heading,
  .module-shell-stock .stock-receptions-head,
  .module-shell-stock .stock-depots-head,
  .module-shell-stock .stock-analytics-head{
    display:grid!important;
  }
}

/* STOCK - fenêtres détails / mise en ligne groupée */
.module-shell-stock .stock-front-modal.hidden{display:none!important;}
.module-shell-stock .stock-front-modal{
  position:fixed;
  inset:0;
  z-index:14000;
  display:block;
}
.module-shell-stock .stock-front-backdrop{
  position:absolute;
  inset:0;
  background:rgba(16,21,17,.32);
  backdrop-filter:blur(6px);
}
.module-shell-stock .stock-front-dialog{
  position:absolute;
  top:7vh;
  left:50%;
  transform:translateX(-50%);
  width:min(980px,calc(100vw - 40px));
  max-height:86vh;
  overflow:hidden;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  background:#fffdf9;
  border:1px solid rgba(25,44,32,.12);
  border-radius:24px;
  box-shadow:0 28px 90px rgba(16,21,17,.22);
  color:#101511;
}
.module-shell-stock .stock-front-dialog-wide{
  width:min(1220px,calc(100vw - 40px));
  grid-template-rows:auto auto minmax(0,1fr) auto;
}
.module-shell-stock .stock-front-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  padding:22px 24px 14px;
  border-bottom:1px solid rgba(25,44,32,.08);
}
.module-shell-stock .stock-front-head h2{
  margin:0;
  font-size:1.55rem;
  font-weight:700;
  color:#101511;
}
.module-shell-stock .stock-front-head p:not(.eyebrow){
  margin:6px 0 0;
  color:#687168;
}
.module-shell-stock .stock-front-body,
.module-shell-stock .stock-bulk-body{
  overflow:auto;
  padding:18px 24px 24px;
  display:grid;
  gap:10px;
}
.module-shell-stock .stock-front-row,
.module-shell-stock .stock-bulk-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  border:1px solid rgba(25,44,32,.08);
  border-radius:16px;
  background:#fff;
  padding:13px 14px;
}
.module-shell-stock .stock-front-row.is-clickable,
.module-shell-stock .stock-bulk-row{
  cursor:pointer;
}
.module-shell-stock .stock-front-row:hover,
.module-shell-stock .stock-bulk-row:hover{
  border-color:rgba(36,75,48,.25);
  box-shadow:0 10px 24px rgba(25,44,32,.06);
}
.module-shell-stock .stock-front-row strong,
.module-shell-stock .stock-bulk-row strong{
  color:#101511;
  font-weight:850;
}
.module-shell-stock .stock-front-row small,
.module-shell-stock .stock-bulk-row small{
  display:block;
  margin-top:3px;
  color:#687168;
  line-height:1.35;
}
.module-shell-stock .stock-front-pill{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:6px 10px;
  background:#eaf4e8;
  color:#244b30;
  font-weight:850;
  font-size:.76rem;
}
.module-shell-stock .stock-front-pill.warn{background:#fff3db;color:#9b5a00;}
.module-shell-stock .stock-front-pill.error{background:#ffe9e7;color:#b42318;}
.module-shell-stock .stock-front-pill.info{background:#e8f1ff;color:#2453a6;}
.module-shell-stock .stock-front-pill.success{background:#e8f5e9;color:#1f5c31;}
.module-shell-stock .stock-bulk-toolbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(150px,190px) auto auto;
  gap:10px;
  padding:14px 24px;
  border-bottom:1px solid rgba(25,44,32,.08);
}
.module-shell-stock .stock-bulk-toolbar input,
.module-shell-stock .stock-bulk-toolbar select{
  min-height:42px;
  border:1px solid rgba(25,44,32,.12);
  border-radius:14px;
  background:#fff;
  color:#101511;
  padding:0 13px;
}
.module-shell-stock .stock-bulk-group{
  display:grid;
  gap:9px;
}
.module-shell-stock .stock-bulk-group h3{
  margin:10px 0 2px;
  color:#101511;
  font-size:1rem;
}
.module-shell-stock .stock-bulk-row{
  grid-template-columns:auto minmax(0,1fr) auto;
}
.module-shell-stock .stock-bulk-row input[type="checkbox"]{
  width:18px;
  height:18px;
}
.module-shell-stock .stock-bulk-row.is-not-ready{
  opacity:.68;
}
.module-shell-stock .stock-bulk-result{
  min-height:44px;
  padding:12px 24px;
  border-top:1px solid rgba(25,44,32,.08);
  color:#687168;
  font-weight:750;
}
.module-shell-stock .stock-snapshot-chart{
  min-height:230px;
  display:flex;
  align-items:end;
  gap:8px;
  padding:16px 6px 4px;
}
.module-shell-stock .stock-snapshot-chart button{
  flex:1;
  min-width:20px;
  height:210px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  border:0;
  background:transparent;
  cursor:pointer;
}
.module-shell-stock .stock-snapshot-chart i{
  width:100%;
  min-height:8px;
  max-height:100%;
  border-radius:999px 999px 5px 5px;
  background:linear-gradient(180deg,#7fb36f,#244b30);
  box-shadow:0 8px 18px rgba(36,75,48,.12);
}
.module-shell-stock .stock-snapshot-chart span{
  color:#687168;
  font-size:.72rem;
  font-weight:850;
}
@media(max-width:780px){
  .module-shell-stock .stock-front-dialog{top:12px;width:calc(100vw - 24px);max-height:calc(100vh - 24px);}
  .module-shell-stock .stock-bulk-toolbar{grid-template-columns:1fr;}
  .module-shell-stock .stock-front-row,
  .module-shell-stock .stock-bulk-row{grid-template-columns:1fr;}
}

/* Workflow module V1 */
.module-shell-workflow .module-icon,
.erp-module-link[data-slug="workflow"] .mi{
  border-radius:12px;
  background:linear-gradient(145deg,#143f26,#285d38);
  padding:7px;
  box-shadow:0 10px 24px rgba(20,63,38,.16);
}
.workflow-shell{
  display:grid;
  gap:22px;
}
.workflow-hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  padding:6px 0 8px;
}
.workflow-hero h1{
  margin:2px 0 6px;
  color:#101511;
  font-size:clamp(2rem,4vw,3.1rem);
  line-height:1;
  letter-spacing:0;
}
.workflow-hero p{
  margin:0;
  color:#687168;
  font-weight:650;
}
.workflow-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.workflow-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.workflow-kpi,
.workflow-panel,
.workflow-modal-card{
  border:1px solid rgba(25,44,32,.09);
  border-radius:20px;
  background:rgba(255,255,255,.92);
  box-shadow:0 18px 45px rgba(25,44,32,.06);
}
.workflow-kpi{
  min-height:116px;
  padding:20px;
  display:grid;
  align-content:center;
  gap:4px;
}
.workflow-kpi span,
.workflow-kpi small{
  color:#687168;
  font-weight:750;
}
.workflow-kpi strong{
  color:#101511;
  font-size:2.15rem;
  line-height:1;
  font-weight:900;
}
.workflow-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.workflow-panel{
  min-height:250px;
  padding:22px;
  display:grid;
  align-content:start;
  gap:16px;
}
.workflow-panel-wide{
  grid-column:1 / -1;
}
.workflow-row-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}
.workflow-row-actions button{
  min-height:34px;
  border:1px solid rgba(36,75,48,.14);
  border-radius:999px;
  background:#f7fbf6;
  color:#244b30;
  padding:0 12px;
  font-weight:850;
  cursor:pointer;
}
.workflow-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.workflow-panel h2{
  margin:0 0 4px;
  color:#101511;
  font-size:1.05rem;
  font-weight:850;
}
.workflow-panel p{
  margin:0;
  color:#687168;
  font-size:.92rem;
}
.workflow-chip,
.workflow-task-module{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#e9f4e6;
  color:#244b30;
  font-size:.78rem;
  font-weight:850;
  padding:6px 10px;
  white-space:nowrap;
}
.workflow-list{
  display:grid;
  gap:10px;
  align-content:start;
}
.workflow-view[hidden]{
  display:none !important;
}
.workflow-task-card{
  display:grid;
  gap:12px;
  border:1px solid rgba(25,44,32,.08);
  border-radius:16px;
  background:#fff;
  padding:15px;
}
.workflow-clickable{
  cursor:pointer;
}
.workflow-linklike{
  border:0;
  background:transparent;
  color:inherit;
  padding:0;
  font:inherit;
  text-align:left;
  cursor:pointer;
}
.workflow-linklike:hover{
  color:#244b30;
}
.workflow-task-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.workflow-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#f1f4ef;
  color:#405044;
  padding:6px 10px;
  font-size:.76rem;
  font-weight:850;
  white-space:nowrap;
}
.workflow-status-available{background:#e9f4e6;color:#244b30;}
.workflow-status-assigned{background:#eaf1fb;color:#234d7c;}
.workflow-status-in_progress{background:#fff4d8;color:#795516;}
.workflow-status-blocked{background:#ffe8e3;color:#9d321e;}
.workflow-status-review{background:#efeaff;color:#51358f;}
.workflow-task-card h3{
  margin:8px 0 5px;
  color:#101511;
  font-size:1rem;
  font-weight:850;
}
.workflow-task-card p,
.workflow-task-card small{
  color:#687168;
  line-height:1.38;
}
.workflow-task-card p{
  margin:0 0 7px;
}
.workflow-task-card footer{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
}
.workflow-task-card button:not(.workflow-linklike),
.workflow-small-link{
  min-height:34px;
  border-radius:999px;
  border:1px solid rgba(36,75,48,.14);
  background:#f7fbf6;
  color:#244b30;
  padding:0 12px;
  font-weight:850;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  cursor:pointer;
}
.workflow-task-card button:not(.workflow-linklike):hover,
.workflow-small-link:hover{
  background:#e9f4e6;
}
.workflow-task-card button[data-status="BLOCKED"]{
  color:#8c2f1f;
  background:#fff6f3;
  border-color:#ffd0c5;
}
.workflow-task-card button[data-status="COMPLETED"]{
  color:#fff;
  background:#244b30;
  border-color:#244b30;
}
.workflow-filters{
  display:grid;
  grid-template-columns:repeat(7,minmax(120px,1fr));
  gap:10px;
  margin:16px 0;
}
.workflow-filters select,
.workflow-filters input,
.workflow-inline-form input,
.workflow-inline-form textarea,
.workflow-inline-form select{
  width:100%;
  border:1px solid rgba(25,44,32,.12);
  border-radius:14px;
  background:#fff;
  color:#132018;
  padding:11px 13px;
  font:inherit;
  outline:none;
}
.workflow-filters input{
  grid-column:span 2;
}
.workflow-table{
  overflow:auto;
  margin-bottom:18px;
}
.workflow-table table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid rgba(25,44,32,.08);
  border-radius:16px;
  background:#fff;
}
.workflow-table th,
.workflow-table td{
  padding:13px 14px;
  text-align:left;
  border-bottom:1px solid rgba(25,44,32,.07);
  vertical-align:top;
}
.workflow-table th{
  color:#5d695f;
  font-size:.78rem;
  letter-spacing:.04em;
  text-transform:uppercase;
  background:#f7faf6;
}
.workflow-table td small{
  display:block;
  color:#6d756d;
  margin-top:4px;
}
.workflow-table tr:last-child td{
  border-bottom:0;
}
.workflow-subtabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:16px 0;
}
.workflow-subtabs button{
  border:0;
  border-bottom:2px solid transparent;
  border-radius:0;
  background:transparent;
  color:#657064;
  padding:8px 4px;
  font-weight:800;
  cursor:pointer;
}
.workflow-subtabs button.active{
  color:#174b28;
  border-bottom-color:#174b28;
}
.workflow-drawer.hidden,
.workflow-modal.hidden{
  display:none;
}
.workflow-drawer{
  position:fixed;
  inset:0;
  z-index:80;
  display:flex;
  justify-content:flex-end;
}
.workflow-drawer-backdrop{
  position:absolute;
  inset:0;
  background:rgba(9,17,12,.28);
}
.workflow-drawer-card{
  position:relative;
  width:min(560px,92vw);
  height:100%;
  overflow:auto;
  background:#fff;
  border-left:1px solid rgba(25,44,32,.12);
  box-shadow:-22px 0 60px rgba(20,34,24,.18);
  padding:26px;
}
.workflow-drawer-card header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:20px;
}
.workflow-drawer-card h2{
  margin:0;
  font-size:1.55rem;
}
.workflow-drawer-card h3{
  margin:22px 0 10px;
}
.workflow-project-block{
  display:grid;
  gap:12px;
}
.workflow-finance-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:10px;
  margin:12px 0 18px;
}
.workflow-inline-form{
  margin-top:14px;
  padding:14px;
  border:1px solid rgba(25,44,32,.08);
  border-radius:18px;
  background:#f9fbf8;
}
@media (max-width: 980px){
  .workflow-filters{
    grid-template-columns:1fr 1fr;
  }
  .workflow-filters input{
    grid-column:1 / -1;
  }
}
@media (max-width: 640px){
  .workflow-filters{
    grid-template-columns:1fr;
  }
  .workflow-drawer-card{
    width:100vw;
  }
}
.workflow-board{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.workflow-calendar-board{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.workflow-module-column{
  display:grid;
  align-content:start;
  gap:10px;
  border-radius:18px;
  background:#f8faf7;
  padding:14px;
}
.workflow-module-column h3{
  display:flex;
  justify-content:space-between;
  margin:0;
  color:#101511;
  font-size:.96rem;
}
.workflow-module-column h3 span{
  color:#244b30;
}
.workflow-empty{
  border:1px dashed rgba(25,44,32,.16);
  border-radius:16px;
  padding:18px;
  color:#687168;
  background:#fbfcfa;
  line-height:1.45;
}
.workflow-project-card{
  cursor:pointer;
}
.workflow-project-card.selected{
  border-color:rgba(36,75,48,.36);
  box-shadow:inset 4px 0 0 #244b30;
  background:#fbfdf9;
}
.workflow-project-detail{
  display:grid;
  gap:16px;
}
.workflow-project-summary{
  border:1px solid rgba(25,44,32,.08);
  border-radius:16px;
  padding:16px;
  background:#fbfdf9;
}
.workflow-project-summary h3,
.workflow-project-block h4{
  margin:0 0 8px;
  color:#101511;
}
.workflow-project-block{
  display:grid;
  gap:10px;
}
.workflow-project-block h4{
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.workflow-mini-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  border:1px solid rgba(25,44,32,.08);
  border-radius:14px;
  padding:12px;
  background:#fff;
}
.workflow-mini-row small{
  display:block;
  margin-top:4px;
  color:#687168;
}
.workflow-mini-row button{
  min-height:32px;
  border-radius:999px;
  border:1px solid rgba(36,75,48,.14);
  background:#f7fbf6;
  color:#244b30;
  padding:0 12px;
  font-weight:850;
  cursor:pointer;
}
.workflow-modal{
  position:fixed;
  inset:0;
  z-index:1500;
}
.workflow-modal.hidden{
  display:none;
}

.workflow-hero-clean{
  align-items:flex-start;
  border:0;
  box-shadow:none;
  padding:8px 4px 22px;
}
.workflow-hero-clean h1{
  font-size:clamp(40px,5vw,48px);
  letter-spacing:0;
  margin:0 0 8px;
}
.workflow-date-pill{
  border:1px solid rgba(31,78,48,.12);
  border-radius:16px;
  box-shadow:0 10px 28px rgba(21,42,30,.06);
  font-weight:800;
  padding:14px 20px;
}
.workflow-quick-actions{
  background:#fff;
  border:1px solid rgba(31,78,48,.1);
  border-radius:20px;
  box-shadow:0 14px 40px rgba(18,38,28,.06);
  margin-bottom:22px;
  padding:22px 24px;
}
.workflow-action-grid{
  display:grid;
  gap:14px;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
}
.workflow-action-grid button,
.workflow-action-grid a{
  align-items:flex-start;
  background:#fff;
  border:1px solid rgba(31,78,48,.12);
  border-radius:16px;
  box-shadow:0 10px 24px rgba(21,42,30,.05);
  color:var(--ink,#111);
  display:flex;
  flex-direction:column;
  gap:4px;
  justify-content:center;
  min-height:72px;
  padding:14px 18px;
  text-decoration:none;
}
.workflow-action-grid button:hover,
.workflow-action-grid a:hover{
  border-color:rgba(31,78,48,.28);
  transform:translateY(-1px);
}
.workflow-action-grid small{
  color:#6d756e;
  font-size:12px;
}
.workflow-action-grid.compact{
  grid-template-columns:repeat(auto-fit,minmax(130px,1fr));
}
.workflow-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(12,18,14,.28);
  backdrop-filter:blur(4px);
}
.workflow-modal-card{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:min(720px,calc(100vw - 32px));
  max-height:calc(100vh - 32px);
  overflow:auto;
  padding:24px;
}
.workflow-modal-card header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.workflow-modal-card h2{
  margin:0;
  color:#101511;
}
.workflow-form{
  display:grid;
  gap:14px;
}
.workflow-form label{
  display:grid;
  gap:7px;
  color:#303830;
  font-weight:850;
}
.workflow-form input,
.workflow-form textarea,
.workflow-form select{
  border:1px solid rgba(25,44,32,.13);
  border-radius:14px;
  background:#fff;
  color:#101511;
  padding:12px 13px;
  font:inherit;
}
.workflow-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.workflow-form footer{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:4px;
}
@media(max-width:1050px){
  .workflow-kpis,
  .workflow-grid,
  .workflow-board{
    grid-template-columns:1fr;
  }
  .workflow-calendar-board{
    grid-template-columns:1fr;
  }
  .workflow-hero{
    align-items:flex-start;
    flex-direction:column;
  }
}
@media(max-width:720px){
  .workflow-form-grid{grid-template-columns:1fr;}
}

/* Dashboard x Workflow fusion */
.dashboard-workflow-grid,
.dashboard-dev-layout{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.dashboard-dev-layout{
  grid-template-columns:360px minmax(280px,.8fr) minmax(420px,1.4fr);
  align-items:start;
}
.dash-wf-row,
.dash-project-card{
  display:grid;
  gap:7px;
  width:100%;
  border:1px solid rgba(25,44,32,.09);
  border-radius:16px;
  background:#fff;
  color:#101511;
  padding:14px;
  text-align:left;
  text-decoration:none;
}
.dash-wf-row + .dash-wf-row,
.dash-project-card + .dash-project-card{
  margin-top:10px;
}
.dash-wf-row span,
.dash-project-card span{
  color:#244b30;
  font-size:.78rem;
  font-weight:850;
}
.dash-wf-row b,
.dash-project-card b{
  font-size:.98rem;
}
.dash-wf-row small,
.dash-project-card small{
  color:#687168;
  line-height:1.35;
}
.dash-wf-row em{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  font-style:normal;
}
.dash-wf-row button{
  border:1px solid rgba(36,75,48,.14);
  border-radius:999px;
  background:#f7fbf6;
  color:#244b30;
  min-height:30px;
  padding:0 10px;
  font-weight:850;
  cursor:pointer;
}
.dash-module-pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.dash-module-pills span{
  display:inline-flex;
  gap:10px;
  align-items:center;
  border:1px solid rgba(25,44,32,.09);
  border-radius:999px;
  background:#f7fbf6;
  padding:8px 12px;
}
.dash-module-pills small{
  color:#244b30;
  font-weight:900;
}
.dash-dev-form{
  display:grid;
  gap:10px;
}
.dash-dev-form input,
.dash-dev-form textarea,
.dash-dev-form select{
  border:1px solid rgba(25,44,32,.13);
  border-radius:14px;
  background:#fff;
  color:#101511;
  padding:11px 12px;
  font:inherit;
}
.dash-project-card{
  cursor:pointer;
}
.dash-project-card.active{
  border-color:rgba(36,75,48,.36);
  background:#f4faf2;
  box-shadow:0 12px 28px rgba(36,75,48,.08);
}
.dash-project-list{
  display:grid;
  gap:10px;
}
.dash-dev-columns{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.dash-dev-columns ul{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:8px;
}
.dash-dev-columns li,
.dash-devlog-list article{
  border:1px solid rgba(25,44,32,.08);
  border-radius:14px;
  background:#fff;
  padding:11px;
}
.dash-dev-columns li{
  display:flex;
  justify-content:space-between;
  gap:10px;
}
.dash-devlog-list{
  margin-top:14px;
  display:grid;
  gap:10px;
}
.dash-devlog-list article{
  display:grid;
  gap:4px;
}
.dash-dev-subforms{
  margin-top:16px;
  display:grid;
  gap:12px;
}
@media(max-width:1180px){
  .dashboard-workflow-grid,
  .dashboard-dev-layout,
  .dash-dev-columns{
    grid-template-columns:1fr;
  }
}
