:root{
  --bg:#eef3f8;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:#dbe4ef;
  --primary:#2563eb;
  --primary-dark:#1d4ed8;
  --success:#16a34a;
  --warning:#f59e0b;
  --danger:#dc2626;
  --radius:18px;
  --shadow:0 12px 35px rgba(15,23,42,.08);
}

*{box-sizing:border-box}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size:15px;
}

a{color:var(--primary);text-decoration:none;font-weight:700}
a:hover{text-decoration:underline}

header,nav{
  background:#0f172a;
  color:white;
}

nav{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  padding:14px 22px;
  box-shadow:0 6px 20px rgba(15,23,42,.2);
}

nav a{
  color:white;
  padding:9px 12px;
  border-radius:12px;
  font-weight:800;
}

nav a:hover{
  background:rgba(255,255,255,.12);
  text-decoration:none;
}

main,.container{
  max-width:1400px;
  margin:0 auto;
  padding:26px;
}

h1{
  font-size:30px;
  margin:0 0 8px;
  letter-spacing:-.03em;
}

h2{
  font-size:22px;
  margin:0 0 14px;
}

.title-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:22px;
}

.card,.table-card,.panel,form{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:20px;
  margin-bottom:22px;
}

.btn,button,input[type=submit]{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:0;
  border-radius:13px;
  background:var(--primary);
  color:white;
  padding:11px 16px;
  font-weight:900;
  cursor:pointer;
  min-height:42px;
  text-decoration:none;
  transition:.15s ease;
}

.btn:hover,button:hover,input[type=submit]:hover{
  background:var(--primary-dark);
  transform:translateY(-1px);
  text-decoration:none;
}

.btn-small{
  padding:8px 11px;
  min-height:34px;
  font-size:13px;
}

.secondary,.btn.secondary{
  background:#64748b;
}

input,select,textarea{
  width:auto;
  max-width:100%;
  border:1px solid var(--border);
  border-radius:13px;
  background:white;
  padding:11px 13px;
  min-height:42px;
  font-size:14px;
}

input:focus,select:focus,textarea:focus{
  outline:none;
  border-color:var(--primary);
  box-shadow:0 0 0 4px rgba(37,99,235,.12);
}

.filters,.search{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:end;
}

.filters input[name=q],
.search input[name=q]{
  flex:1 1 320px;
  min-width:280px;
}

.result-count{
  color:var(--muted);
  font-weight:800;
  margin:0 0 12px 4px;
}

.table-card{
  padding:0;
  overflow:hidden;
}

table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  background:white;
}

thead,th{
  background:#f8fafc;
}

th{
  color:#475569;
  text-transform:uppercase;
  letter-spacing:.045em;
  font-size:12px;
  text-align:left;
  font-weight:900;
}

th,td{
  padding:14px 16px;
  border-bottom:1px solid #edf2f7;
  vertical-align:middle;
}

tbody tr:hover td{
  background:#f8fafc;
}

td small{
  color:var(--muted);
}

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 11px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  line-height:1;
  background:#e0ecff;
  color:#1d4ed8;
  white-space:nowrap;
}

.badge-stock{background:#dcfce7;color:#166534}
.badge-event{background:#dbeafe;color:#1d4ed8}
.badge-customer{background:#fef3c7;color:#92400e}
.badge-danger{background:#fee2e2;color:#991b1b}

.actions,.quick-actions{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
}

.dashboard-hero{
  background:linear-gradient(135deg,#0f172a,#1d4ed8);
  color:white;
  border-radius:24px;
  padding:28px;
  box-shadow:var(--shadow);
  margin-bottom:22px;
}

.dashboard-hero h1{color:white}
.dashboard-hero p{color:#dbeafe}

.kpi-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:16px;
  margin:20px 0;
}

.kpi-card{
  background:white;
  border:1px solid var(--border);
  border-radius:20px;
  padding:22px;
  box-shadow:var(--shadow);
  color:var(--text);
}

.kpi-card strong{
  display:block;
  font-size:34px;
  line-height:1;
  margin-bottom:8px;
}

.kpi-card span{
  color:var(--muted);
  font-weight:900;
}

@media(max-width:760px){
  main,.container{padding:14px}

  .title-row{display:block}
  .title-row .btn{width:100%;margin-top:10px}

  nav{padding:10px}
  nav a{font-size:13px;padding:8px}

  .filters,.search{display:block}
  .filters input,.filters select,.filters button,.filters .btn,
  .search input,.search select,.search button,.search .btn{
    width:100%;
    margin-bottom:9px;
  }

  .table-card,table{
    display:block;
    overflow-x:auto;
    white-space:nowrap;
  }
}

/* Patch 013 - Dashboard moderne safe */
.dashboard-layout{
  display:grid;
  grid-template-columns:1.4fr .8fr;
  gap:20px;
  margin-top:20px;
}

.dashboard-quick{
  margin-top:14px;
}

.dashboard-quick .btn{
  margin-bottom:8px;
}

.muted{
  color:#64748b;
  line-height:1.6;
}

@media(max-width:900px){
  .dashboard-layout{
    grid-template-columns:1fr;
  }
}

/* Patch 015 - Sidebar SaaS */

.layout{
  display:flex;
  min-height:100vh;
}

.sidebar{
  width:260px;
  background:#0f172a;
  color:white;
  padding:24px 18px;
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;
  box-shadow:8px 0 24px rgba(15,23,42,.18);
}

.sidebar-top{
  margin-bottom:28px;
}

.sidebar-top h2{
  color:white;
  margin:0;
  font-size:28px;
}

.sidebar-top p{
  margin:6px 0 0;
  color:#94a3b8;
  font-weight:700;
}

.sidebar-nav{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.sidebar-nav a{
  color:#e2e8f0;
  text-decoration:none;
  padding:12px 14px;
  border-radius:14px;
  font-weight:800;
  transition:.15s ease;
}

.sidebar-nav a:hover{
  background:rgba(255,255,255,.08);
  color:white;
  transform:translateX(2px);
}

.main-content{
  flex:1;
  padding:28px;
}

@media(max-width:900px){

  .layout{
    display:block;
  }

  .sidebar{
    width:100%;
    height:auto;
    position:relative;
    padding:14px;
  }

  .sidebar-nav{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
  }

  .sidebar-nav a{
    font-size:13px;
    padding:10px;
  }

  .main-content{
    padding:14px;
  }
}

/* Patch 016 - Cards vitrines */

.showcase-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
  gap:20px;
}

.showcase-card{
  background:white;
  border-radius:22px;
  border:1px solid #dbe4ef;
  padding:22px;
  box-shadow:0 12px 30px rgba(15,23,42,.06);
  transition:.18s ease;
}

.showcase-card:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 40px rgba(15,23,42,.12);
}

.showcase-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  margin-bottom:18px;
}

.showcase-head h2{
  margin:0;
  font-size:22px;
}

.showcase-head p{
  margin:6px 0 0;
  color:#64748b;
}

.showcase-body{
  margin-top:14px;
}

.meta-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:10px 0;
  border-bottom:1px solid #eef2f7;
}

.meta-row:last-child{
  border-bottom:0;
}

.meta-row strong{
  color:#334155;
}

.meta-row span{
  color:#0f172a;
  text-align:right;
}

.showcase-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px;
}

@media(max-width:760px){

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

  .showcase-actions .btn{
    flex:1;
  }
}

/* Patch 018 - Detail vitrine */
.detail-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

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

/* Patch 020 - Polish listes */
.table-card table td:first-child,
.table-card table th:first-child {
  padding-left: 22px;
}

.table-card table td:last-child,
.table-card table th:last-child {
  padding-right: 22px;
}

.table-card tbody tr {
  transition: background .15s ease, transform .15s ease;
}

.table-card tbody tr:hover {
  background: #f8fafc;
}

.table-card td a {
  font-weight: 900;
}

.table-card td strong {
  font-weight: 900;
  color: #0f172a;
}

.table-card small {
  display: inline-block;
  margin-top: 4px;
  color: #64748b;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: #64748b;
}

.filters + .table-card {
  margin-top: 12px;
}

@media(max-width:760px){
  .table-card {
    border-radius: 16px;
  }

  .table-card table {
    min-width: 760px;
  }
}

/* Patch 021 - Mouvements lisibles */
.table-card td:nth-child(1) {
  color: #64748b;
  font-weight: 700;
}

.table-card td:nth-child(2) {
  font-weight: 900;
}

.table-card tr td:nth-child(2)::before {
  content: "•";
  color: #2563eb;
  font-size: 22px;
  margin-right: 8px;
  vertical-align: middle;
}

.table-card td {
  line-height: 1.45;
}

.table-card tr:hover td:nth-child(2)::before {
  color: #16a34a;
}

/* Amélioration formulaires */
form.card,
form.filters,
.search.filters {
  border-left: 5px solid #2563eb;
}

/* Focus visibilité */
a:focus,
button:focus,
input:focus,
select:focus {
  outline: 3px solid rgba(37,99,235,.25);
  outline-offset: 2px;
}

/* Patch 022 - Login / Auth polish */
body:has(form[action*="login"]),
body.login-page {
  background: radial-gradient(circle at top, #dbeafe, #eef3f8 45%, #e2e8f0);
}

form p {
  margin-bottom: 14px;
}

form label {
  display: block;
  font-weight: 900;
  color: #334155;
  margin-bottom: 6px;
}

form input[type="text"],
form input[type="password"],
form input[type="email"] {
  width: 100%;
}

form .errorlist {
  background: #fee2e2;
  color: #991b1b;
  border-radius: 12px;
  padding: 12px 14px;
  list-style: none;
  font-weight: 800;
}

.helptext {
  display: block;
  color: #64748b;
  font-size: 13px;
  margin-top: 6px;
}

/* Patch 024 - Login propre sans sidebar */
body:not(:has(.sidebar)) {
  background: radial-gradient(circle at top, #dbeafe, #eef3f8 45%, #e2e8f0);
}

body:not(:has(.sidebar)) .main-content {
  max-width: 460px;
  margin: 8vh auto;
  background: white;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(15,23,42,.12);
  padding: 32px;
}

body:not(:has(.sidebar)) h1 {
  text-align: center;
  margin-bottom: 24px;
}

/* Patch 025c - KPI dashboard */
.live-kpis{margin-bottom:24px}
.kpi-blue{border-top:5px solid #2563eb}
.kpi-green{border-top:5px solid #16a34a}
.kpi-orange{border-top:5px solid #f59e0b}
.kpi-red{border-top:5px solid #dc2626}
.kpi-dark{border-top:5px solid #0f172a}

/* Patch 026 - Actions rapides dashboard */
.dashboard-actions-panel{margin-bottom:22px}
.dashboard-actions-grid{display:flex;gap:12px;flex-wrap:wrap}
.dashboard-actions-grid .btn{min-width:180px}
@media(max-width:760px){.dashboard-actions-grid .btn{width:100%}}

/* Patch 027 - Status strip dashboard */
.status-strip{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:0 0 22px;
}

.status-pill{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:8px 12px;
  font-size:13px;
  font-weight:900;
  background:#f1f5f9;
  color:#334155;
}

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

/* Patch 028 - Sidebar quick actions */
.sidebar-quick{
  display:grid;
  gap:10px;
  margin-bottom:18px;
}

.sidebar-quick a{
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  padding:12px;
  color:white;
  text-decoration:none;
  font-weight:900;
}

.sidebar-primary{
  background:#2563eb;
}

.sidebar-scan{
  background:#16a34a;
}

.sidebar-primary:hover,
.sidebar-scan:hover{
  filter:brightness(1.08);
  text-decoration:none;
}

/* Patch 029 - Sidebar mobile polish */
@media(max-width:900px){
  .sidebar-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:12px;
  }

  .sidebar-top h2{
    font-size:22px;
  }

  .sidebar-top p{
    display:none;
  }

  .sidebar-quick{
    grid-template-columns:1fr 1fr;
  }

  .sidebar-nav{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .sidebar-nav a,
  .sidebar-quick a{
    text-align:center;
    justify-content:center;
  }
}

@media(max-width:520px){
  .sidebar-nav{
    grid-template-columns:1fr;
  }

  .sidebar-quick{
    grid-template-columns:1fr;
  }
}

/* Patch 030 - App footer */
.app-footer{
  margin-top:34px;
  padding:18px 0 4px;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  color:#64748b;
  font-size:13px;
  font-weight:800;
}

.app-footer a{
  color:#2563eb;
}

/* Patch 031 - Sidebar active state */
.sidebar-nav a.active{
  background:rgba(255,255,255,.16);
  color:white;
  box-shadow:inset 4px 0 0 #60a5fa;
}

/* Patch 033 - Sticky top UI */

.main-content{
  min-height:100vh;
}

.title-row{
  position:sticky;
  top:0;
  z-index:30;
  background:#eef3f8;
  padding:12px 0 18px;
  margin-bottom:18px;
  backdrop-filter:blur(10px);
}

.title-row h1{
  margin-bottom:4px;
}

.dashboard-hero{
  position:relative;
  overflow:hidden;
}

.dashboard-hero::after{
  content:"";
  position:absolute;
  right:-40px;
  top:-40px;
  width:180px;
  height:180px;
  background:rgba(255,255,255,.18);
  border-radius:999px;
}

.panel,
.showcase-card,
.table-card{
  transition:.18s ease;
}

.panel:hover,
.showcase-card:hover,
.table-card:hover{
  transform:translateY(-2px);
}

/* Patch 034 - Scrollbars + sidebar polish */

*{
  scrollbar-width:thin;
  scrollbar-color:#94a3b8 transparent;
}

::-webkit-scrollbar{
  width:10px;
  height:10px;
}

::-webkit-scrollbar-thumb{
  background:#94a3b8;
  border-radius:999px;
}

::-webkit-scrollbar-track{
  background:transparent;
}

.sidebar{
  scrollbar-color:#475569 transparent;
}

.sidebar-nav a{
  position:relative;
}

.sidebar-nav a::after{
  content:"";
  position:absolute;
  right:12px;
  width:6px;
  height:6px;
  border-radius:999px;
  background:transparent;
}

.sidebar-nav a.active::after{
  background:#60a5fa;
}

.sidebar-top{
  border-bottom:1px solid rgba(255,255,255,.1);
  padding-bottom:18px;
}

/* Patch 035 - Showcase cards premium */

.showcase-card{
  position:relative;
  overflow:hidden;
}

.showcase-card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:5px;
  background:#2563eb;
}

.showcase-head{
  padding-left:4px;
}

.showcase-head h2{
  font-size:24px;
  letter-spacing:-.03em;
}

.showcase-body{
  background:#f8fafc;
  border-radius:16px;
  padding:8px 14px;
}

.showcase-actions{
  border-top:1px solid #eef2f7;
  padding-top:16px;
}

.showcase-actions .btn{
  flex:1;
}

.meta-row strong{
  color:#64748b;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.meta-row span{
  font-weight:800;
}

.badge{
  box-shadow:0 4px 12px rgba(15,23,42,.08);
}

/* Patch 036 - Forms premium */

form:not(.filters):not(.search){
  max-width:900px;
}

form:not(.filters):not(.search) p{
  display:grid;
  gap:6px;
  margin-bottom:18px;
}

form:not(.filters):not(.search) label{
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#475569;
}

form:not(.filters):not(.search) input,
form:not(.filters):not(.search) select,
form:not(.filters):not(.search) textarea{
  width:100%;
}

form:not(.filters):not(.search) textarea{
  min-height:120px;
  resize:vertical;
}

form:not(.filters):not(.search) button{
  margin-top:10px;
}

.errorlist{
  border-left:5px solid #dc2626;
}

.helptext{
  background:#f8fafc;
  border-radius:10px;
  padding:8px 10px;
}

/* Patch 037 - Movements table premium */

body:has(a[href="/mouvements/"]) .table-card{
  border-radius:22px;
}

.table-card td:nth-child(2){
  color:#0f172a;
}

.table-card td:nth-child(2)::before{
  content:"";
  display:inline-block;
  width:9px;
  height:9px;
  border-radius:999px;
  background:#2563eb;
  margin-right:9px;
  box-shadow:0 0 0 4px rgba(37,99,235,.12);
}

.table-card tr:hover td:nth-child(2)::before{
  background:#16a34a;
  box-shadow:0 0 0 4px rgba(22,163,74,.14);
}

.table-card td{
  transition:.15s ease;
}

/* Patch 038 - Messages / alerts polish */

.messages,
.alert,
.notice{
  display:grid;
  gap:10px;
  margin-bottom:18px;
}

.messages li,
.alert,
.notice{
  list-style:none;
  padding:14px 16px;
  border-radius:14px;
  font-weight:800;
  border:1px solid #dbe4ef;
  background:#f8fafc;
  color:#334155;
}

.messages .success,
.alert-success{
  background:#dcfce7;
  color:#166534;
  border-color:#bbf7d0;
}

.messages .error,
.alert-error{
  background:#fee2e2;
  color:#991b1b;
  border-color:#fecaca;
}

.messages .warning,
.alert-warning{
  background:#fef3c7;
  color:#92400e;
  border-color:#fde68a;
}

.messages .info,
.alert-info{
  background:#dbeafe;
  color:#1d4ed8;
  border-color:#bfdbfe;
}

/* Patch 039 - Scan QR polish */

video,
#reader,
.qr-reader,
.scanner,
.scan-box{
  max-width:720px;
  width:100%;
  margin:0 auto 22px;
  border-radius:24px;
  overflow:hidden;
  border:1px solid #dbe4ef;
  box-shadow:0 18px 40px rgba(15,23,42,.12);
  background:#0f172a;
}

.scan-actions,
.scanner-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top:18px;
}

.scan-actions .btn,
.scanner-actions .btn{
  min-width:180px;
}

@media(max-width:760px){
  video,
  #reader,
  .qr-reader,
  .scanner,
  .scan-box{
    border-radius:18px;
  }

  .scan-actions .btn,
  .scanner-actions .btn{
    width:100%;
  }
}

/* Patch 040 - Directory pages polish */

.table-card td:first-child a,
.table-card td:first-child strong,
.table-card td:first-child b{
  font-size:16px;
  letter-spacing:-.01em;
}

.table-card td:first-child{
  font-weight:800;
}

.table-card td:empty::after{
  content:"—";
  color:#94a3b8;
}

.table-card tr{
  position:relative;
}

.table-card tr:hover{
  box-shadow:inset 4px 0 0 #2563eb;
}

.title-row .quick-actions,
.title-row > div:last-child{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

@media(max-width:760px){
  .title-row .quick-actions,
  .title-row > div:last-child{
    display:block;
  }

  .title-row .quick-actions .btn,
  .title-row > div:last-child .btn{
    width:100%;
    margin-bottom:8px;
  }
}

/* Patch 041 - Exports polish */

a[href$=".csv"]::before{
  content:"CSV";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-right:8px;
  padding:3px 7px;
  border-radius:8px;
  background:#dcfce7;
  color:#166534;
  font-size:11px;
  font-weight:900;
}

a[href*="excel"]::before{
  content:"XLS";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-right:8px;
  padding:3px 7px;
  border-radius:8px;
  background:#dbeafe;
  color:#1d4ed8;
  font-size:11px;
  font-weight:900;
}

a[href="/exports/"]{
  position:relative;
}

/* Patch 042 - Admin / logout polish */

a[href="/admin/"]{
  background:rgba(255,255,255,.08);
}

a[href="/logout/"]{
  color:#fecaca !important;
}

a[href="/logout/"]:hover{
  background:rgba(220,38,38,.18) !important;
  color:white !important;
}

.sidebar-nav a[href="/admin/"]::after{
  background:#f59e0b;
}

.sidebar-nav a[href="/logout/"]::after{
  background:#dc2626;
}

/* Patch 043 - Compact density polish */

@media(min-width:1100px){
  .table-card.compact td,
  .table-card.compact th{
    padding:10px 12px;
  }

  body{
    --density-padding:12px;
  }

  .table-card td,
  .table-card th{
    padding-top:11px;
    padding-bottom:11px;
  }

  .filters input,
  .filters select,
  .filters button,
  .filters .btn{
    min-height:38px;
    padding-top:9px;
    padding-bottom:9px;
  }
}

.result-count{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:#f8fafc;
  border:1px solid #dbe4ef;
  padding:8px 12px;
  border-radius:999px;
}

/* Patch 044 - Micro animations */

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

.main-content > *{
  animation:fadeInUp .22s ease both;
}

.btn,
.kpi-card,
.showcase-card,
.panel,
.table-card,
.sidebar-nav a,
.sidebar-quick a{
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    background .16s ease,
    color .16s ease,
    border-color .16s ease;
}

input,
select,
textarea{
  transition:
    border-color .16s ease,
    box-shadow .16s ease,
    background .16s ease;
}

@media(prefers-reduced-motion:reduce){
  *{
    animation:none !important;
    transition:none !important;
  }
}

/* Patch 045 - Dashboard premium */

.dashboard-hero{
  position:relative;
  padding:34px;
  border-radius:28px;
  overflow:hidden;
  background:
    linear-gradient(135deg,#2563eb 0%,#1d4ed8 45%,#0f172a 100%);
  color:white;
  box-shadow:0 24px 60px rgba(37,99,235,.22);
}

.dashboard-hero h1{
  color:white;
  font-size:42px;
  letter-spacing:-.04em;
}

.dashboard-hero p{
  color:rgba(255,255,255,.82);
  max-width:720px;
  font-size:16px;
}

.dashboard-hero::before{
  content:"";
  position:absolute;
  inset:auto -120px -120px auto;
  width:320px;
  height:320px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
}

.kpi-card{
  overflow:hidden;
  position:relative;
}

.kpi-card::after{
  content:"";
  position:absolute;
  right:-30px;
  bottom:-30px;
  width:90px;
  height:90px;
  border-radius:999px;
  background:rgba(37,99,235,.06);
}

@media(max-width:760px){
  .dashboard-hero{
    padding:24px;
    border-radius:22px;
  }

  .dashboard-hero h1{
    font-size:30px;
  }
}

/* Patch 046 - Depth / overlays */

body{
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.06), transparent 28%),
    radial-gradient(circle at bottom right, rgba(15,23,42,.05), transparent 30%),
    #eef3f8;
}

.panel,
.table-card,
.showcase-card,
.kpi-card{
  backdrop-filter:blur(10px);
}

.sidebar{
  background:
    linear-gradient(180deg,#0f172a 0%,#111827 100%);
}

.sidebar::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.04),
      transparent 12%
    );
}

.kpi-card strong{
  letter-spacing:-.03em;
}

.panel h2{
  letter-spacing:-.02em;
}

.table-card{
  border:1px solid rgba(255,255,255,.6);
}

/* Patch 047 - Pagination polish */

.pagination{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:22px;
}

.pagination a,
.pagination span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38px;
  height:38px;
  padding:0 12px;
  border-radius:12px;
  background:white;
  border:1px solid #dbe4ef;
  font-weight:900;
  color:#334155;
}

.pagination a:hover{
  background:#2563eb;
  color:white;
  text-decoration:none;
}

.pagination .current,
.pagination .active{
  background:#0f172a;
  color:white;
  border-color:#0f172a;
}

/* Patch 048 - Glass header premium */

.title-row{
  position:sticky;
  top:12px;
  z-index:40;

  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;

  padding:18px 22px;
  margin-bottom:24px;

  border-radius:22px;

  background:rgba(255,255,255,.72);

  border:1px solid rgba(255,255,255,.7);

  box-shadow:
    0 10px 30px rgba(15,23,42,.08),
    inset 0 1px 0 rgba(255,255,255,.7);

  backdrop-filter:blur(18px);
}

.title-row h1{
  margin:0;
  line-height:1;
}

.title-row p{
  margin:8px 0 0;
}

.title-row .btn{
  white-space:nowrap;
}

@media(max-width:760px){

  .title-row{
    display:block;
    padding:18px;
    top:8px;
  }

  .title-row .quick-actions,
  .title-row > div:last-child{
    margin-top:14px;
  }
}

/* Patch 049 - KPI cards premium icons */

.kpi-card{
  min-height:130px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.kpi-card strong{
  font-size:38px;
}

.kpi-card span{
  display:flex;
  align-items:center;
  gap:8px;
}

.kpi-card span::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:999px;
  background:#2563eb;
  box-shadow:0 0 0 5px rgba(37,99,235,.12);
}

.kpi-green span::before{
  background:#16a34a;
  box-shadow:0 0 0 5px rgba(22,163,74,.12);
}

.kpi-orange span::before{
  background:#f59e0b;
  box-shadow:0 0 0 5px rgba(245,158,11,.14);
}

.kpi-red span::before{
  background:#dc2626;
  box-shadow:0 0 0 5px rgba(220,38,38,.12);
}

.kpi-dark span::before{
  background:#0f172a;
  box-shadow:0 0 0 5px rgba(15,23,42,.12);
}

/* Patch 050 - Sidebar version badge */

.sidebar-version{
  margin-top:22px;
  padding:14px;
  border-radius:16px;
  background:rgba(255,255,255,.07);
  color:#cbd5e1;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:13px;
  font-weight:900;
}

.sidebar-version strong{
  color:white;
}

/* Patch QR display */
.qr-panel{
  text-align:center;
}

.qr-box{
  display:inline-flex;
  padding:18px;
  background:white;
  border-radius:22px;
  border:1px solid #dbe4ef;
  box-shadow:0 12px 30px rgba(15,23,42,.08);
}

.qr-box img{
  display:block;
  width:260px;
  height:260px;
}


/* Update 060 - clean business workflow */
.muted{color:#64748b}
.quick-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.btn-small{padding:7px 10px;font-size:13px}
.badge{display:inline-flex;align-items:center;border-radius:999px;padding:6px 11px;background:#dbeafe;color:#1d4ed8;font-weight:900;font-size:12px}
.qr-panel{text-align:center}
.qr-box{display:inline-flex;padding:18px;background:white;border-radius:22px;border:1px solid #dbe4ef;box-shadow:0 12px 30px rgba(15,23,42,.08)}
.qr-box img{display:block;width:260px;height:260px}
.table-card table{width:100%}
.table-card th{text-align:left}
@media(max-width:760px){.quick-actions .btn{width:100%}.qr-box img{width:220px;height:220px}}

/* UI rebuild sidebar - 2026 */
.app-shell{display:flex;min-height:100vh;background:#eef3f8}
.app-sidebar{width:270px;background:linear-gradient(180deg,#0f172a,#1e293b);color:white;padding:22px;flex-shrink:0;position:sticky;top:0;height:100vh;overflow:auto}
.app-brand{font-size:22px;font-weight:900;margin-bottom:24px;letter-spacing:.02em}
.app-nav{display:flex;flex-direction:column;gap:7px;background:transparent!important;box-shadow:none!important;padding:0!important}
.app-nav a{color:#dbeafe!important;text-decoration:none!important;font-weight:800;padding:11px 12px;border-radius:12px;display:block}
.app-nav a:hover{background:rgba(255,255,255,.12);color:white!important}
.app-main{flex:1;padding:28px;max-width:1500px;margin:0 auto;width:100%}
.top{display:none}
.container{max-width:1500px}
.title-row,.page-head{margin-bottom:18px}
.card,.panel,.table-card{border:1px solid #dbe4ef}
table{border-radius:16px;overflow:hidden}
th{color:#334155}
.btn,button{box-shadow:0 8px 20px rgba(37,99,235,.18)}
@media(max-width:900px){
  .app-shell{display:block}
  .app-sidebar{width:100%;height:auto;position:relative}
  .app-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .app-main{padding:18px}
}

/* UI polish v2 */
.app-main h1{font-size:32px;margin:0 0 10px}
.app-main h2{font-size:20px;margin:0 0 14px}
.muted{color:#64748b}
.title-row,.page-head{
  background:white;
  border:1px solid #dbe4ef;
  border-radius:22px;
  padding:20px;
  box-shadow:0 12px 35px rgba(15,23,42,.06);
}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
.card,.panel,.table-card{
  background:white;
  border-radius:22px;
  padding:22px;
  box-shadow:0 12px 35px rgba(15,23,42,.06);
}
.table-card{padding:0;overflow:hidden}
.table-card table{margin:0}
table{font-size:14px}
th{
  background:#f8fafc!important;
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:.04em;
  color:#475569;
}
td,th{padding:14px 16px!important}
tr:hover td{background:#f8fafc}
.btn,button{
  border-radius:14px!important;
  font-weight:900!important;
  border:0!important;
  transition:.15s ease;
}
.btn:hover,button:hover{
  transform:translateY(-1px);
  text-decoration:none!important;
}
.btn.secondary{background:#e2e8f0!important;color:#0f172a!important}
.filters,.search{
  background:white;
  border:1px solid #dbe4ef;
  border-radius:22px;
  padding:16px;
  box-shadow:0 10px 28px rgba(15,23,42,.05);
}
input,select,textarea{
  border-radius:14px!important;
  border:1px solid #cbd5e1!important;
}
input:focus,select:focus,textarea:focus{
  outline:none;
  border-color:#2563eb!important;
  box-shadow:0 0 0 4px rgba(37,99,235,.12);
}
.badge{
  background:#dbeafe!important;
  color:#1d4ed8!important;
}
.quick-actions{gap:10px}
.app-nav a{
  position:relative;
}
.app-nav a:hover{
  padding-left:18px;
}
.notice{
  border:1px solid #86efac;
  background:#dcfce7;
  color:#166534;
  font-weight:800;
}
.login-layout{
  min-height:100vh;
  display:grid;
  place-items:center;
}
@media(max-width:760px){
  .app-main h1{font-size:26px}
  td,th{padding:11px!important}
  .title-row,.page-head,.card,.panel{padding:16px}
}

/* UI premium v3 */
:root{
  --premium-bg:#edf2f7;
  --premium-dark:#0b1220;
  --premium-dark-2:#111827;
  --premium-blue:#2563eb;
  --premium-cyan:#06b6d4;
  --premium-purple:#7c3aed;
}

body{
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.18), transparent 28%),
    radial-gradient(circle at top right, rgba(6,182,212,.15), transparent 30%),
    var(--premium-bg)!important;
}

.app-sidebar{
  background:
    linear-gradient(180deg, rgba(15,23,42,.98), rgba(30,41,59,.98)),
    radial-gradient(circle at top, rgba(37,99,235,.35), transparent 45%)!important;
  border-right:1px solid rgba(255,255,255,.08);
  box-shadow:18px 0 45px rgba(15,23,42,.18);
}

.app-brand{
  padding:16px;
  border-radius:20px;
  background:linear-gradient(135deg, rgba(37,99,235,.28), rgba(6,182,212,.16));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}

.app-nav a{
  border:1px solid transparent;
  transition:.18s ease;
}

.app-nav a:hover{
  background:linear-gradient(135deg, rgba(37,99,235,.28), rgba(6,182,212,.16))!important;
  border-color:rgba(255,255,255,.12);
  transform:translateX(4px);
}

.app-main{
  backdrop-filter:blur(10px);
}

.title-row,.page-head,.card,.panel,.filters,.search{
  background:rgba(255,255,255,.86)!important;
  backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,.72)!important;
  box-shadow:
    0 22px 55px rgba(15,23,42,.08),
    inset 0 1px 0 rgba(255,255,255,.65)!important;
}

.card b{
  background:linear-gradient(135deg,var(--premium-blue),var(--premium-purple));
  -webkit-background-clip:text;
  color:transparent;
}

.btn,button{
  background:linear-gradient(135deg,#2563eb,#06b6d4)!important;
  color:white!important;
  box-shadow:0 14px 28px rgba(37,99,235,.24)!important;
}

.btn.secondary{
  background:#e8eef7!important;
  color:#0f172a!important;
  box-shadow:none!important;
}

.badge{
  background:linear-gradient(135deg,#dbeafe,#cffafe)!important;
  color:#075985!important;
  border:1px solid rgba(37,99,235,.12);
}

table{
  overflow:hidden;
  border-radius:20px;
}

tr:hover td{
  background:rgba(219,234,254,.42)!important;
}

input,select,textarea{
  background:rgba(255,255,255,.92)!important;
}

.qr-box{
  background:linear-gradient(135deg,#fff,#eff6ff)!important;
}

@media(max-width:900px){
  .app-sidebar{
    border-radius:0 0 26px 26px;
  }
}

/* UI premium v4 */
.app-main::before{
  content:"Vitrines Manager";
  display:block;
  font-size:13px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#64748b;
  margin-bottom:14px;
}

.app-main h1{
  font-size:clamp(30px,3vw,44px)!important;
  letter-spacing:-.04em;
  background:linear-gradient(135deg,#0f172a,#2563eb);
  -webkit-background-clip:text;
  color:transparent;
}

.app-brand::after{
  content:"PRO";
  display:inline-flex;
  margin-left:8px;
  padding:3px 7px;
  border-radius:999px;
  font-size:11px;
  background:#38bdf8;
  color:#082f49;
}

.app-nav a{
  font-size:14px;
  letter-spacing:.01em;
}

.app-nav a[href="/"],
.app-nav a[href="/vitrines/"],
.app-nav a[href="/marchandises/"]{
  background:rgba(255,255,255,.06);
}

.grid .card{
  position:relative;
  overflow:hidden;
}

.grid .card::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:5px;
  background:linear-gradient(180deg,#2563eb,#06b6d4);
}

.card b{
  font-size:clamp(30px,3vw,48px)!important;
  line-height:1;
}

.card span{
  font-weight:800;
  color:#64748b;
}

.table-card{
  margin-top:14px;
}

thead th:first-child{
  border-top-left-radius:18px;
}

thead th:last-child{
  border-top-right-radius:18px;
}

tbody tr:last-child td{
  border-bottom:0!important;
}

td a strong,
td a b{
  color:#0f172a;
}

td a:hover strong,
td a:hover b{
  color:#2563eb;
}

input::placeholder{
  color:#94a3b8;
}

.filters button,
.search button{
  min-width:130px;
}

.quick-actions .btn,
.title-row .btn{
  white-space:nowrap;
}

.notice{
  border-left:5px solid #22c55e;
}

@media(max-width:900px){
  .app-main::before{
    display:none;
  }

  .app-nav a{
    text-align:center;
  }

  .filters,.search{
    display:block!important;
  }

  .filters input,
  .filters select,
  .filters button,
  .search input,
  .search button{
    width:100%!important;
    margin-bottom:10px;
  }
}

/* UI premium v4 */
.app-main::before{
  content:"Vitrines Manager";
  display:block;
  font-size:13px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#64748b;
  margin-bottom:14px;
}

.app-main h1{
  font-size:clamp(30px,3vw,44px)!important;
  letter-spacing:-.04em;
  background:linear-gradient(135deg,#0f172a,#2563eb);
  -webkit-background-clip:text;
  color:transparent;
}

.app-brand::after{
  content:"PRO";
  display:inline-flex;
  margin-left:8px;
  padding:3px 7px;
  border-radius:999px;
  font-size:11px;
  background:#38bdf8;
  color:#082f49;
}

.app-nav a{
  font-size:14px;
  letter-spacing:.01em;
}

.app-nav a[href="/"],
.app-nav a[href="/vitrines/"],
.app-nav a[href="/marchandises/"]{
  background:rgba(255,255,255,.06);
}

.grid .card{
  position:relative;
  overflow:hidden;
}

.grid .card::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:5px;
  background:linear-gradient(180deg,#2563eb,#06b6d4);
}

.card b{
  font-size:clamp(30px,3vw,48px)!important;
  line-height:1;
}

.card span{
  font-weight:800;
  color:#64748b;
}

.table-card{
  margin-top:14px;
}

thead th:first-child{
  border-top-left-radius:18px;
}

thead th:last-child{
  border-top-right-radius:18px;
}

tbody tr:last-child td{
  border-bottom:0!important;
}

td a strong,
td a b{
  color:#0f172a;
}

td a:hover strong,
td a:hover b{
  color:#2563eb;
}

input::placeholder{
  color:#94a3b8;
}

.filters button,
.search button{
  min-width:130px;
}

.quick-actions .btn,
.title-row .btn{
  white-space:nowrap;
}

.notice{
  border-left:5px solid #22c55e;
}

@media(max-width:900px){
  .app-main::before{
    display:none;
  }

  .app-nav a{
    text-align:center;
  }

  .filters,.search{
    display:block!important;
  }

  .filters input,
  .filters select,
  .filters button,
  .search input,
  .search button{
    width:100%!important;
    margin-bottom:10px;
  }
}

/* UI dashboard v5 */
.hero-dashboard{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:28px;
  border-radius:28px;
  margin-bottom:22px;
  background:
    linear-gradient(135deg,rgba(15,23,42,.96),rgba(37,99,235,.86)),
    radial-gradient(circle at top right,rgba(6,182,212,.35),transparent 38%);
  color:white;
  box-shadow:0 24px 70px rgba(15,23,42,.22);
}

.hero-dashboard h1{
  color:white!important;
  -webkit-text-fill-color:white;
  margin-bottom:6px!important;
}

.hero-dashboard .muted{color:#dbeafe!important}

.eyebrow{
  margin:0 0 8px;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:12px;
  font-weight:900;
  color:#bae6fd;
}

.hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.kpi-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:18px;
  margin-bottom:22px;
}

.kpi-card{
  position:relative;
  overflow:hidden;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(255,255,255,.7);
  border-radius:26px;
  padding:24px;
  box-shadow:0 18px 45px rgba(15,23,42,.08);
}

.kpi-card::after{
  content:"";
  position:absolute;
  right:-35px;
  top:-35px;
  width:110px;
  height:110px;
  border-radius:50%;
  background:linear-gradient(135deg,rgba(37,99,235,.18),rgba(6,182,212,.18));
}

.kpi-card span{
  display:block;
  color:#64748b;
  font-weight:900;
  margin-bottom:10px;
}

.kpi-card b{
  font-size:46px;
  line-height:1;
  background:linear-gradient(135deg,#2563eb,#7c3aed);
  -webkit-background-clip:text;
  color:transparent;
}

.title-row.compact{
  padding:18px!important;
}

@media(max-width:760px){
  .hero-dashboard{display:block;padding:22px}
  .hero-actions .btn{width:100%;margin-top:8px}
}

/* UI lists v6 */
.table-card{
  border-radius:26px!important;
}

.table-card table{
  border-collapse:separate!important;
  border-spacing:0!important;
}

.table-card tbody tr{
  transition:.16s ease;
}

.table-card tbody tr:hover{
  transform:scale(1.002);
}

.table-card td:first-child,
.table-card th:first-child{
  padding-left:22px!important;
}

.table-card td:last-child,
.table-card th:last-child{
  padding-right:22px!important;
}

.result-count{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 14px;
  border-radius:999px;
  background:white;
  color:#475569;
  font-weight:900;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}

.result-count::before{
  content:"";
  width:9px;
  height:9px;
  border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 0 5px rgba(34,197,94,.12);
}

.filters select,
.filters input,
.search input{
  min-height:48px;
}

.filters a.btn,
.filters button,
.search button{
  min-height:48px;
}

.card.table-card{
  padding:0!important;
}

.panel > .card.table-card{
  margin-top:12px;
}

tbody td{
  color:#334155;
}

tbody td a{
  color:#0f172a!important;
}

tbody td a:hover{
  color:#2563eb!important;
}


/* UI forms/details v7 */
form p{
  margin:0 0 14px;
}

form p label{
  color:#334155;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.04em;
}

form p input,
form p select,
form p textarea{
  margin-top:6px!important;
}

form .helptext{
  display:block;
  margin-top:4px;
  color:#64748b;
  font-size:12px;
}

.errorlist{
  list-style:none;
  padding:10px 12px;
  border-radius:14px;
  background:#fee2e2;
  color:#991b1b;
  font-weight:800;
}

.card h2,
.panel h2{
  color:#0f172a;
  letter-spacing:-.02em;
}

.panel{
  margin-top:24px;
}

.quick-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
}

.quick-actions .btn{
  min-height:42px;
}

.card p{
  color:#334155;
  line-height:1.55;
}

.card p b{
  color:#0f172a;
  font-size:14px;
}

.photo{
  box-shadow:0 16px 40px rgba(15,23,42,.12);
  border:1px solid #dbe4ef;
}

code{
  display:inline-block;
  padding:8px 10px;
  border-radius:12px;
  background:#e2e8f0;
  color:#0f172a;
  font-weight:800;
}


/* UI nav v8 */
.app-sidebar{
  padding:18px!important;
}

.app-brand{
  font-size:20px!important;
  margin-bottom:18px!important;
}

.app-nav{
  gap:6px!important;
}

.app-nav a{
  display:flex!important;
  align-items:center;
  justify-content:space-between;
  min-height:42px;
  font-size:13px!important;
}

.app-nav a::after{
  content:"›";
  opacity:.35;
  font-size:18px;
  transition:.15s ease;
}

.app-nav a:hover::after{
  opacity:1;
  transform:translateX(2px);
}

.app-nav a[href="/sav/"],
.app-nav a[href="/preuves-livraison/"],
.app-nav a[href="/marchandises/"]{
  background:linear-gradient(135deg,rgba(37,99,235,.20),rgba(6,182,212,.10))!important;
  border-color:rgba(125,211,252,.22)!important;
}

.app-sidebar::-webkit-scrollbar{
  width:8px;
}

.app-sidebar::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.18);
  border-radius:999px;
}

.app-main{
  animation:fadeInUi .22s ease both;
}

@keyframes fadeInUi{
  from{opacity:0;transform:translateY(6px)}
  to{opacity:1;transform:none}
}


/* UI sidebar v9 */
.app-sidebar{
  width:292px!important;
  padding:18px!important;
  display:flex;
  flex-direction:column;
}

.app-brand{
  display:flex!important;
  align-items:center;
  gap:12px;
  padding:14px!important;
}

.brand-mark{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:15px;
  background:linear-gradient(135deg,#38bdf8,#2563eb);
  color:white;
  font-weight:1000;
  box-shadow:0 14px 28px rgba(37,99,235,.3);
}

.nav-section{
  margin:16px 8px 8px;
  color:#93c5fd;
  font-size:11px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.14em;
}

.app-nav{
  margin-bottom:2px;
}

.app-nav a{
  border-radius:14px!important;
  padding:10px 12px!important;
}

.sidebar-footer{
  margin-top:auto;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.1);
}

.user-chip{
  padding:12px;
  border-radius:16px;
  background:rgba(255,255,255,.08);
  color:#e0f2fe;
  font-weight:900;
  margin-bottom:10px;
}

.logout-link{
  display:block;
  text-align:center;
  padding:10px;
  border-radius:14px;
  background:rgba(248,113,113,.16);
  color:#fecaca!important;
  font-weight:900;
  text-decoration:none!important;
}

.logout-link:hover{
  background:rgba(248,113,113,.26);
  color:white!important;
}

@media(max-width:900px){
  .app-sidebar{
    width:100%!important;
  }
  .sidebar-footer{
    display:none;
  }
}

/* UI actions/company v10 */
.row-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.row-actions .btn{
  margin:0!important;
}

.app-nav a[href="/settings/company/"],
.app-nav a[href="/clients/"],
.app-nav a[href="/fournisseurs/"],
.app-nav a[href="/salons/"]{
  background:rgba(255,255,255,.045);
}


/* Update 073 - company/actions polish */
.action-bar{
  position:sticky;
  top:18px;
  z-index:20;
  padding:10px;
  border-radius:18px;
  background:rgba(255,255,255,.78);
  backdrop-filter:blur(14px);
  box-shadow:0 14px 34px rgba(15,23,42,.10);
}

.nav-section{
  color:#93c5fd!important;
}

.sidebar-footer{
  margin-top:auto;
}

.hero-dashboard .btn.secondary{
  background:rgba(255,255,255,.14)!important;
  color:white!important;
  border:1px solid rgba(255,255,255,.22)!important;
}

.card img{
  box-shadow:0 14px 34px rgba(15,23,42,.12);
}

form button.btn{
  margin-right:8px;
}

@media(max-width:900px){
  .action-bar{
    position:relative;
    top:auto;
  }
}

/* Update 074 - safe professional UI */
.kpi-card{
  text-decoration:none!important;
  transition:.18s ease;
}

.kpi-card:hover{
  transform:translateY(-3px);
}

.quick-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:14px;
  margin:0 0 24px;
}

.quick-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:74px;
  padding:18px 20px;
  border-radius:22px;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(255,255,255,.75);
  box-shadow:0 16px 38px rgba(15,23,42,.07);
  color:#0f172a!important;
  font-weight:1000;
  text-decoration:none!important;
}

.quick-card::after{
  content:"→";
  color:#2563eb;
  font-size:22px;
}

.detail-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:0 0 18px;
}

.detail-tabs span{
  padding:9px 14px;
  border-radius:999px;
  background:white;
  color:#475569;
  font-weight:900;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}


/* Update 075 - delete actions */
.btn.danger,
button.danger{
  background:linear-gradient(135deg,#dc2626,#f97316)!important;
  color:white!important;
  box-shadow:0 14px 28px rgba(220,38,38,.22)!important;
}


/* Update 078 - executive dashboard */
.executive-hero{
  margin-bottom:22px;
}

.exec-kpi-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:16px;
  margin-bottom:24px;
}

.exec-kpi{
  display:block;
  text-decoration:none!important;
  color:#0f172a!important;
  padding:22px;
  border-radius:26px;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(255,255,255,.78);
  box-shadow:0 18px 45px rgba(15,23,42,.08);
  transition:.18s ease;
  position:relative;
  overflow:hidden;
}

.exec-kpi:hover{
  transform:translateY(-3px);
}

.exec-kpi::after{
  content:"";
  position:absolute;
  right:-34px;
  top:-34px;
  width:100px;
  height:100px;
  border-radius:999px;
  background:linear-gradient(135deg,rgba(37,99,235,.18),rgba(6,182,212,.18));
}

.exec-kpi.alert::after{
  background:linear-gradient(135deg,rgba(220,38,38,.16),rgba(249,115,22,.16));
}

.exec-kpi span{
  display:block;
  color:#64748b;
  font-size:13px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.exec-kpi b{
  display:block;
  font-size:44px;
  line-height:1;
  margin:10px 0 6px;
  background:linear-gradient(135deg,#2563eb,#7c3aed);
  -webkit-background-clip:text;
  color:transparent;
}

.exec-kpi em{
  display:block;
  color:#64748b;
  font-style:normal;
  font-weight:800;
  font-size:13px;
}

.exec-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:20px;
  align-items:start;
}

.exec-side{
  display:grid;
  gap:18px;
}

.activity-list{
  display:grid;
  gap:10px;
}

.activity-item{
  display:grid;
  grid-template-columns:14px minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,.82);
  border:1px solid #e2e8f0;
}

.activity-dot{
  width:12px;
  height:12px;
  border-radius:999px;
  background:#22c55e;
  box-shadow:0 0 0 6px rgba(34,197,94,.12);
}

.activity-item p{
  margin:4px 0 0;
  color:#64748b;
}

.activity-empty{
  padding:18px;
  border-radius:18px;
  background:white;
  color:#64748b;
  font-weight:900;
}

.quick-stack{
  display:grid;
  gap:10px;
}

.quick-stack a{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 14px;
  border-radius:16px;
  background:#f8fafc;
  color:#0f172a!important;
  text-decoration:none!important;
  font-weight:900;
}

.quick-stack a::after{
  content:"→";
  color:#2563eb;
}

.company-card p{
  margin:8px 0;
}

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


/* Update 079 - global search */
.global-search-box{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  padding:18px;
  border-radius:28px;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(255,255,255,.8);
  box-shadow:0 18px 45px rgba(15,23,42,.08);
  margin-bottom:18px;
}

.global-search-box input{
  margin:0!important;
  font-size:18px;
  min-height:58px;
}

.search-summary{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom:18px;
}

.search-summary span{
  padding:9px 14px;
  border-radius:999px;
  background:#dbeafe;
  color:#1d4ed8;
  font-weight:1000;
}

.search-summary em{
  color:#64748b;
  font-style:normal;
  font-weight:800;
}

.search-results-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:18px;
}

.search-section{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.search-result{
  display:block;
  padding:14px;
  border-radius:18px;
  background:#f8fafc;
  color:#0f172a!important;
  text-decoration:none!important;
  border:1px solid #e2e8f0;
  transition:.16s ease;
}

.search-result:hover{
  transform:translateY(-2px);
  background:white;
  border-color:#bfdbfe;
}

.search-result b{
  display:block;
  color:#0f172a!important;
}

.search-result span{
  display:block;
  margin-top:5px;
  color:#64748b;
  font-weight:700;
}

.empty-search-state{
  text-align:center;
  padding:45px 20px;
  border-radius:28px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(255,255,255,.8);
  box-shadow:0 18px 45px rgba(15,23,42,.06);
}

@media(max-width:700px){
  .global-search-box{
    grid-template-columns:1fr;
  }
}


/* Update 080 - sidebar pro */
.sidebar-pro{
  width:304px!important;
  padding:18px!important;
  background:
    radial-gradient(circle at top left,rgba(37,99,235,.32),transparent 34%),
    linear-gradient(180deg,#07111f,#0f172a 48%,#111827)!important;
}

.pro-brand{
  display:flex!important;
  align-items:center;
  gap:12px;
  margin-bottom:18px!important;
}

.pro-brand strong{
  display:block;
  color:white;
  font-size:18px;
  line-height:1;
}

.pro-brand small{
  display:block;
  color:#93c5fd;
  font-weight:900;
  margin-top:4px;
  font-size:12px;
}

.pro-nav{
  display:flex;
  flex-direction:column;
  gap:5px;
  background:transparent!important;
  box-shadow:none!important;
  padding:0!important;
}

.pro-nav .nav-group{
  margin:17px 10px 7px;
  color:#60a5fa;
  font-size:10px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.16em;
}

.pro-nav a{
  display:flex!important;
  align-items:center;
  gap:11px;
  min-height:43px;
  padding:10px 12px!important;
  border-radius:15px!important;
  color:#dbeafe!important;
  text-decoration:none!important;
  font-weight:900!important;
  border:1px solid transparent;
  transition:.16s ease;
}

.pro-nav a::before{
  content:attr(data-icon);
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:rgba(255,255,255,.08);
  color:#93c5fd;
  font-weight:1000;
}

.pro-nav a::after{
  content:"›";
  margin-left:auto;
  opacity:.28;
  font-size:18px;
}

.pro-nav a:hover{
  transform:translateX(4px);
  background:linear-gradient(135deg,rgba(37,99,235,.28),rgba(6,182,212,.13))!important;
  border-color:rgba(147,197,253,.18);
  color:white!important;
}

.pro-nav a:hover::before{
  background:linear-gradient(135deg,#2563eb,#06b6d4);
  color:white;
}

.pro-footer{
  margin-top:auto;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.10);
}

.user-chip{
  display:flex!important;
  align-items:center;
  gap:10px;
}

.user-avatar{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:linear-gradient(135deg,#2563eb,#06b6d4);
  color:white;
  font-weight:1000;
}

@media(max-width:900px){
  .sidebar-pro{
    width:100%!important;
  }

  .pro-nav{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .pro-nav .nav-group{
    grid-column:1/-1;
  }
}


/* Update 081 - CRUD hardening */
.crud-actions,
.row-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.btn.danger,
button.danger{
  background:linear-gradient(135deg,#dc2626,#f97316)!important;
  color:white!important;
  box-shadow:0 14px 28px rgba(220,38,38,.22)!important;
}

/* Update 082 - timeline activity */
.timeline-panel{overflow:hidden}
.timeline{position:relative;display:flex;flex-direction:column;gap:18px;margin-top:18px;padding-left:6px}
.timeline::before{content:"";position:absolute;left:13px;top:10px;bottom:10px;width:2px;background:linear-gradient(180deg,#2563eb,rgba(37,99,235,.08))}
.timeline-item{position:relative;display:flex;gap:18px;align-items:flex-start}
.timeline-dot{width:20px;height:20px;border-radius:50%;background:linear-gradient(135deg,#2563eb,#06b6d4);box-shadow:0 0 0 8px rgba(37,99,235,.14);flex-shrink:0;margin-top:14px;z-index:2}
.timeline-content{flex:1;background:rgba(255,255,255,.92);border-radius:22px;padding:16px 18px;border:1px solid rgba(226,232,240,.95);box-shadow:0 14px 34px rgba(15,23,42,.06);transition:.16s ease}
.timeline-content:hover{transform:translateY(-2px);box-shadow:0 18px 44px rgba(15,23,42,.09)}
.timeline-title{font-weight:1000;font-size:16px;color:#0f172a}
.timeline-meta{margin-top:6px;color:#64748b;font-size:13px;font-weight:800}
.timeline-event{margin-top:8px;display:inline-flex;padding:6px 10px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-weight:900;font-size:12px}
@media(max-width:700px){.timeline{padding-left:0}.timeline::before{display:none}}


/* Timeline métier 082.1 */

.timeline-item{
  position:relative;
}

.timeline-item:not(:last-child)::after{
  content:"";
  position:absolute;
  left:7px;
  top:24px;
  width:2px;
  height:calc(100% + 18px);
  background:#dbeafe;
}

.timeline-title{
  font-size:16px;
  font-weight:1000;
}

.timeline-meta{
  margin-top:8px;
  font-weight:700;
}

.timeline-content{
  transition:.18s ease;
}

.timeline-content:hover{
  transform:translateX(4px);
}


/* Update 083 - fiche client pro */
.client-hero h1{max-width:900px}
.client-kpi-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:16px;
  margin-bottom:20px;
}
.client-kpi{
  padding:20px;
  border-radius:24px;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(255,255,255,.78);
  box-shadow:0 16px 38px rgba(15,23,42,.07);
  overflow:hidden;
}
.client-kpi span{
  display:block;
  color:#64748b;
  font-size:12px;
  font-weight:1000;
  letter-spacing:.06em;
  text-transform:uppercase;
  margin-bottom:8px;
}
.client-kpi b{
  display:block;
  font-size:40px;
  line-height:1;
  background:linear-gradient(135deg,#2563eb,#06b6d4);
  -webkit-background-clip:text;
  color:transparent;
}
.client-kpi em{
  display:block;
  font-style:normal;
  color:#0f172a;
  font-weight:900;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.client-hero .hero-actions{align-items:flex-start}
@media(max-width:760px){.client-kpi b{font-size:34px}}

/* Update 084 - fiche vitrine pro */
.showcase-hero{margin-bottom:22px}
.showcase-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;margin-bottom:20px}
.showcase-kpi{padding:20px;border-radius:24px;background:rgba(255,255,255,.9);border:1px solid rgba(255,255,255,.78);box-shadow:0 16px 38px rgba(15,23,42,.07);overflow:hidden}
.showcase-kpi span{display:block;color:#64748b;font-size:12px;font-weight:1000;text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px}
.showcase-kpi b{display:block;font-size:18px!important;line-height:1.25;color:#0f172a!important;background:none!important;-webkit-text-fill-color:#0f172a!important}
.logistics-actions{padding:18px;border-radius:22px;background:rgba(255,255,255,.72);border:1px solid #e2e8f0}
.showcase-timeline .timeline-content{background:rgba(255,255,255,.92)}
.qr-panel .qr-box{margin:8px auto 14px}
@media(max-width:760px){.showcase-kpi-grid{grid-template-columns:1fr}}


/* Update 085 - centre logistique */
.logistics-kpi-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(155px,1fr));
  gap:14px;
  margin-bottom:22px;
}

.logi-kpi{
  display:block;
  text-decoration:none!important;
  color:#0f172a!important;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(255,255,255,.75);
  border-radius:24px;
  padding:18px;
  box-shadow:0 16px 38px rgba(15,23,42,.07);
  transition:.16s ease;
}

.logi-kpi:hover{transform:translateY(-2px)}
.logi-kpi span{display:block;color:#64748b;font-weight:1000;font-size:12px;text-transform:uppercase}
.logi-kpi b{display:block;font-size:36px;line-height:1;margin-top:8px;background:linear-gradient(135deg,#2563eb,#06b6d4);-webkit-background-clip:text;color:transparent}
.logi-kpi.alert b{background:linear-gradient(135deg,#dc2626,#f97316);-webkit-background-clip:text;color:transparent}

.logistics-board{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(235px,1fr));
  gap:16px;
  margin-bottom:24px;
}

.logistics-column{
  background:rgba(255,255,255,.72);
  border:1px solid rgba(255,255,255,.75);
  border-radius:26px;
  padding:16px;
  box-shadow:0 16px 38px rgba(15,23,42,.06);
  min-height:220px;
}

.logistics-column h2{
  font-size:15px!important;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#475569;
  margin-bottom:12px!important;
}

.logi-card{
  display:block;
  text-decoration:none!important;
  color:#0f172a!important;
  background:white;
  border:1px solid #e2e8f0;
  border-radius:18px;
  padding:14px;
  margin-bottom:10px;
  transition:.16s ease;
}

.logi-card:hover{transform:translateY(-2px);border-color:#bfdbfe}
.logi-card b{display:block;color:#0f172a!important}
.logi-card span{display:block;margin-top:5px;color:#64748b;font-weight:800}
.logi-card.highlight{border-color:#93c5fd;background:#eff6ff}
.logistics-layout{margin-top:10px}


/* Update 087 - planning operations */
.planning-layout{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(360px,1fr));
  gap:18px;
  margin-bottom:24px;
}
.planning-list{display:grid;gap:10px}
.planning-item{
  display:grid;
  grid-template-columns:58px minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  padding:14px;
  border-radius:20px;
  background:rgba(255,255,255,.86);
  border:1px solid #e2e8f0;
  color:#0f172a!important;
  text-decoration:none!important;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
  transition:.16s ease;
}
.planning-item:hover{
  transform:translateY(-2px);
  background:white;
  border-color:#bfdbfe;
}
.planning-date{
  width:52px;
  height:52px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#2563eb,#06b6d4);
  color:white;
  font-weight:1000;
}
.planning-date.return{background:linear-gradient(135deg,#7c3aed,#2563eb)}
.planning-date.goods{background:linear-gradient(135deg,#059669,#22c55e)}
.planning-date.sav{background:linear-gradient(135deg,#dc2626,#f97316)}
.planning-item b{display:block;color:#0f172a!important}
.planning-item p{margin:4px 0 0;color:#64748b;font-weight:700}
.planning-item em{
  font-style:normal;
  font-size:12px;
  font-weight:1000;
  color:#475569;
  background:#f1f5f9;
  padding:7px 10px;
  border-radius:999px;
}
@media(max-width:700px){
  .planning-layout{grid-template-columns:1fr}
  .planning-item{grid-template-columns:48px minmax(0,1fr)}
  .planning-item em{grid-column:2}
}


/* Update 088 - documents center */
.documents-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:18px;
  margin-bottom:24px;
}

.document-card{
  min-height:220px;
}

.documents-hero{
  background:
    linear-gradient(135deg,rgba(15,23,42,.96),rgba(124,58,237,.82)),
    radial-gradient(circle at top right,rgba(6,182,212,.32),transparent 38%)!important;
}

.document-card .quick-stack a{
  background:#f8fafc;
  border:1px solid #e2e8f0;
}

.document-card .quick-stack a:hover{
  background:white;
  border-color:#bfdbfe;
  transform:translateY(-1px);
}


/* Update 089 - dashboard direction */
.direction-kpi-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:16px;
  margin-bottom:24px;
}

.direction-kpi{
  display:block;
  padding:22px;
  border-radius:26px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.8);
  box-shadow:0 18px 45px rgba(15,23,42,.08);
  color:#0f172a!important;
  text-decoration:none!important;
  transition:.18s ease;
}

.direction-kpi:hover{
  transform:translateY(-3px);
}

.direction-kpi span{
  display:block;
  color:#64748b;
  font-size:12px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.direction-kpi b{
  display:block;
  margin-top:10px;
  font-size:44px;
  line-height:1;
  background:linear-gradient(135deg,#2563eb,#7c3aed);
  -webkit-background-clip:text;
  color:transparent;
}

.direction-kpi.danger-soft b{
  background:linear-gradient(135deg,#dc2626,#f97316);
  -webkit-background-clip:text;
  color:transparent;
}

.direction-layout{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
  gap:20px;
  margin-bottom:22px;
}

.direction-list{
  display:grid;
  gap:10px;
}

.direction-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 16px;
  border-radius:18px;
  background:white;
  border:1px solid #e2e8f0;
  box-shadow:0 10px 24px rgba(15,23,42,.04);
}

.direction-row span{
  color:#334155;
  font-weight:900;
}

.direction-row b{
  font-size:22px;
  color:#2563eb;
}

.alert-row b{
  color:#dc2626;
}


/* Update 090 - roles permissions */
.inline-role-form{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.inline-role-form select{
  min-height:38px!important;
}
.inline-check{
  display:flex;
  gap:6px;
  align-items:center;
  font-weight:800;
  color:#475569;
}


/* Update 091 - audit center */
.activity-item b{
  color:#0f172a;
}


/* Update 092 - planning operationnel */
.planning-today{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:14px;
}

.planning-card,
.planning-row{
  display:block;
  text-decoration:none!important;
  color:#0f172a!important;
  background:white;
  border:1px solid #e2e8f0;
  border-radius:20px;
  padding:16px;
  box-shadow:0 12px 28px rgba(15,23,42,.05);
  transition:.16s ease;
}

.planning-card:hover,
.planning-row:hover{
  transform:translateY(-2px);
  border-color:#bfdbfe;
}

.planning-card span,
.planning-row span{
  display:block;
  color:#2563eb;
  font-weight:1000;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.planning-card b,
.planning-row b{
  display:block;
  margin-top:7px;
  font-size:17px;
}

.planning-card em,
.planning-row em{
  display:block;
  margin-top:5px;
  color:#64748b;
  font-style:normal;
  font-weight:800;
}

.planning-list{
  display:grid;
  gap:10px;
}

.danger-row span{
  color:#dc2626;
}


/* Update 093 - QR Center Pro */
.activity-dot{
  background:#2563eb;
  box-shadow:0 0 0 6px rgba(37,99,235,.12);
}


/* Update 094 - SAV Pro */
.table-card .muted{
  font-size:12px;
}


/* Update 095 - alertes automatiques */
.alerts-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:16px;
}

.alert-card{
  display:block;
  padding:22px;
  border-radius:24px;
  background:white;
  border:1px solid #e2e8f0;
  box-shadow:0 14px 34px rgba(15,23,42,.06);
  text-decoration:none!important;
  color:#0f172a!important;
  transition:.16s ease;
}

.alert-card:hover{
  transform:translateY(-3px);
}

.alert-card span{
  display:block;
  color:#64748b;
  font-size:12px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.alert-card b{
  display:block;
  margin-top:10px;
  font-size:42px;
  line-height:1;
}

.alert-card em{
  display:block;
  margin-top:8px;
  font-style:normal;
  font-weight:900;
}

.alert-danger b,
.alert-danger em{
  color:#dc2626;
}

.alert-warning b,
.alert-warning em{
  color:#f97316;
}

.alert-info b,
.alert-info em{
  color:#2563eb;
}


/* Update 096 - calendrier operations pro */
.calendar-grid{
  display:grid;
  grid-template-columns:repeat(7, minmax(0, 1fr));
  gap:10px;
}

.calendar-head{
  margin-bottom:10px;
}

.calendar-head div{
  text-align:center;
  font-weight:1000;
  color:#64748b;
  text-transform:uppercase;
  font-size:12px;
}

.calendar-day{
  min-height:150px;
  background:white;
  border:1px solid #e2e8f0;
  border-radius:20px;
  padding:12px;
  box-shadow:0 12px 28px rgba(15,23,42,.05);
}

.calendar-day.today{
  border-color:#2563eb;
  box-shadow:0 0 0 3px rgba(37,99,235,.12);
}

.calendar-day strong{
  display:block;
  font-size:15px;
  margin-bottom:8px;
}

.calendar-events{
  display:grid;
  gap:6px;
}

.calendar-event{
  display:block;
  padding:7px 8px;
  border-radius:12px;
  color:white!important;
  text-decoration:none!important;
  font-size:12px!important;
  font-weight:900;
  line-height:1.2;
}

.calendar-event span{
  display:block;
  opacity:.82;
  font-size:10px;
  text-transform:uppercase;
}

.event-depart{background:#2563eb}
.event-retour{background:#7c3aed}
.event-livraison{background:#059669}
.event-salon{background:#f97316}
.event-salon-fin{background:#64748b}

@media(max-width:900px){
  .calendar-grid{
    grid-template-columns:1fr;
  }
  .calendar-head{
    display:none;
  }
  .calendar-day{
    min-height:auto;
  }
}


/* Update 097 - Centre Salons Pro */
.table-card td .badge{
  white-space:nowrap;
}


/* Update 099 - Centre Utilisateurs Pro */
.inline-role-form{
  min-width:360px;
}
.inline-role-form select{
  max-width:130px;
}


/* Update 101b - maintenance fix */
pre{font-size:13px;line-height:1.45}


/* Update 102 - Rapports Executifs Pro */
.table-card td,
.table-card th{
  font-size:13px;
}


/* Update 103 - Centre Documents Avance */
.global-search-box select{min-height:42px}
.table-card td{vertical-align:top}


/* Update 104 - contrats clients pro */
.table-card td{vertical-align:middle}


/* Update 104b - contracts documents integration */
.document-card .btn{margin-top:10px}


/* Update 106 - Portail Exposants Pro */
.global-search-box select{
  min-height:44px;
  border-radius:14px;
  border:1px solid #dbe3ef;
  padding:0 12px;
  font-weight:800;
}


/* Update 107 - Interventions Terrain Pro */
.intervention-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;}
.intervention-card h3{margin-top:0;}
.intervention-card a{display:block;text-decoration:none!important;color:#0f172a!important;border:1px solid #e2e8f0;border-radius:16px;padding:12px;margin-top:8px;background:#fff;}
.intervention-card a b{display:block;font-size:15px!important;}
.intervention-card a span{display:block;margin-top:4px;color:#64748b;font-size:12px;font-weight:800;}


/* Update 108 - Centre Atelier Pro */
.activity-item p{font-size:13px!important;}
