/* ── Reset & Variables ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sidebar-w: 260px;
  --header-h: 60px;
  --bg-sidebar: #ffffff;
  --bg-sidebar-hover: #f1f5f9;
  --bg-sidebar-active: #1d4ed8;
  --bg-content: #f1f5f9;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-sidebar: #1e293b;
  --text-sidebar-active: #ffffff;
  --border: #e2e8f0;
  --border-focus: #3b82f6;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  --success: #16a34a;
  --success-light: #dcfce7;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --info: #0891b2;
  --info-light: #cffafe;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.1);
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.15);
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --transition: 150ms ease;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-content);
  -webkit-font-smoothing: antialiased;
}

/* ── Login ──────────────────────────────────────────────────────────────── */
#login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
}

.login-reu {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .5px;
  margin-bottom: 10px;
}

.login-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo .brand-icon {
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  margin-bottom: 12px;
}

.login-logo h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.5px;
}

.login-logo p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.login-error {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

.login-error.show { display: block; }

.login-ok {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid #86efac;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
#app {
  display: flex;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 100;
  transition: width 0.2s ease, min-width 0.2s ease;
}
#app.sidebar-collapsed .sidebar {
  width: 0 !important;
  min-width: 0 !important;
}
#sidebar-toggle {
  position: absolute;
  left: var(--sidebar-w);
  top: 50%;
  transform: translateY(-50%) translateX(-50%);
  z-index: 150;
  width: 18px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  font-size: 9px;
  color: var(--text-secondary);
  padding: 0;
  transition: left 0.2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
#sidebar-toggle:hover { color: var(--text-primary); background: var(--bg-sidebar-hover); }
#app.sidebar-collapsed #sidebar-toggle { left: 9px; }

.sidebar-header {
  height: 81.5px;
  box-sizing: border-box;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-reu {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .5px;
  margin-bottom: 10px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-logo .logo-img {
  height: 22px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.sidebar-logo .logo-sub {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .3px;
}

.sidebar-top-nav {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 2px; }

.nav-section {
  padding: 0 12px;
  margin-top: 4px;
}

.nav-section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 8px 8px 4px;
  cursor: pointer;
  user-select: none;
}
.nav-section-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 10px;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
}
.nav-section-toggle:hover { color: var(--text-secondary); }
.nav-section--collapsed .nav-item { display: none !important; }
.nav-section--collapsed .nav-item-structure { display: none !important; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius);
  color: var(--text-sidebar);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  font-size: 13.5px;
  font-weight: 500;
  user-select: none;
  text-decoration: none;
  margin-bottom: 1px;
}

.nav-item:hover {
  background: var(--bg-sidebar-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--bg-sidebar-active);
  color: white;
}

.nav-item .nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.nav-item .nav-badge {
  margin-left: auto;
  background: rgba(37,99,235,.1);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  min-width: 22px;
  text-align: center;
}

.nav-item.active .nav-badge {
  background: rgba(255,255,255,.25);
  color: #fff;
}

.nav-label {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}
.nav-sub-label {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 1px;
}
.nav-item.active .nav-sub-label {
  color: rgba(255,255,255,.7);
}
.nav-badge-duo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
  flex-shrink: 0;
}
.nav-badge.nav-badge-sm {
  font-size: 10px;
  padding: 1px 5px;
  opacity: 0.85;
}

.sidebar-bottom-nav {
  padding: 8px 12px;
  flex-shrink: 0;
}
.nav-item-structure {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.25);
  transition: background var(--transition);
  cursor: pointer;
}
.nav-item-structure:hover {
  background: rgba(59,130,246,.25);
  color: var(--primary-hover);
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}

.user-info:hover { background: var(--bg-sidebar-hover); }

.user-avatar {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.user-details .user-name {
  color: var(--text-sidebar);
  font-size: 13px;
  font-weight: 600;
}

.user-details .user-role {
  color: var(--text-muted);
  font-size: 11px;
}

/* ── Main Content ─────────────────────────────────────────────────────────── */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.hgl-info-bar {
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: .3px;
  border-bottom: 1px solid var(--border);
}
.hgl-info-bar.hidden { display: none; }
.hgl-info-reu { color: var(--text-primary); font-weight: 700; letter-spacing: .5px; }
.hgl-info-app { color: var(--primary); font-weight: 700; }
.hgl-info-sep { color: var(--text-muted); }
.hgl-info-user { color: var(--text-primary); }
.hgl-info-time { color: var(--text-secondary); }

.topbar-main {
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
}

.topbar-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}

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

.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-content);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 12px;
  min-width: 240px;
  transition: border-color var(--transition);
}

.topbar-search:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.topbar-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
}

.topbar-search input::placeholder { color: var(--text-muted); }

.content-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  outline: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,.3); }

.btn-secondary {
  background: var(--bg-content);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--border); }

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover { background: #b91c1c; }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover { background: var(--bg-content); color: var(--text-primary); }

.btn-sm { padding: 5px 10px; font-size: 12.5px; }
.btn-icon { padding: 7px; width: 34px; height: 34px; justify-content: center; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.card-body { padding: 20px; }

/* ── Dashboard ───────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-icon.blue { background: var(--primary-light); }
.stat-icon.green { background: var(--success-light); }
.stat-icon.orange { background: var(--warning-light); }
.stat-icon.cyan { background: var(--info-light); }
.stat-icon.red { background: var(--danger-light); }
.stat-icon.purple { background: #ede9fe; }

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

/* ── Search & Filters ────────────────────────────────────────────────────── */
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-content);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 12px;
  min-width: 280px;
  transition: border-color var(--transition);
}

.search-box:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
}

.search-box input::placeholder { color: var(--text-muted); }

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

select.filter-select {
  background: var(--bg-content);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 10px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}

select.filter-select:focus { border-color: var(--border-focus); }

/* ── Tables ───────────────────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
}

table {
  min-width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

thead th {
  background: #f8fafc;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
  position: sticky;
  top: 0;
  z-index: 1;
}

thead th:hover { color: var(--text-primary); }

thead th.sort-asc::after { content: ' ↑'; }
thead th.sort-desc::after { content: ' ↓'; }

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

tbody tr:last-child { border-bottom: none; }
tbody tr.hgl-no-sep { border-bottom: none !important; }
tbody tr:hover { background: #f8fafc; }

tbody td {
  padding: 11px 16px;
  color: var(--text-primary);
  vertical-align: middle;
}

.td-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

.btn-qty-add, .btn-qty-out {
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  background: #fff;
  line-height: 1.4;
}
.btn-qty-add {
  color: #16a34a;
  border: 1px solid #16a34a;
}
.btn-qty-out {
  color: #dc2626;
  border: 1px solid #dc2626;
}
.btn-qty-add:hover { background: #f0fdf4; }
.btn-qty-out:hover { background: #fff1f2; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.pagination-controls {
  display: flex;
  gap: 4px;
}

.page-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: white; font-weight: 700; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Badges / Tags ───────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-blue    { background: var(--primary-light); color: var(--primary); }
.badge-green   { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-orange  { background: var(--warning-light); color: var(--warning); }
.badge-red     { background: var(--danger-light);  color: var(--danger); }
.badge-gray    { background: #f1f5f9; color: var(--text-secondary); }
.badge-cyan    { background: var(--info-light); color: var(--info); }
.badge-purple  { background: #ede9fe; color: #7c3aed; }

/* ── btn-success ──────────────────────────────────────────────────────────── */
.btn-success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}
.btn-success:hover { background: #15803d; border-color: #15803d; }

/* ── btn-warning ──────────────────────────────────────────────────────────── */
.btn-warning {
  background: var(--warning);
  color: #fff;
  border-color: var(--warning);
}
.btn-warning:hover { background: #b45309; border-color: #b45309; }

/* ── badge-yellow ─────────────────────────────────────────────────────────── */
.badge-yellow { background: var(--warning-light); color: var(--warning); }

/* ── Inventaire — stock movement buttons ─────────────────────────────────── */
.inv-btn-add { color: var(--success) !important; }
.inv-btn-out { color: var(--danger) !important; }

/* ── Véhicules Suivi Tech — urgency & quick actions ────────────────────────── */
.vst-date-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.vst-urg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.vst-urg-late   .vst-urg-dot { background: var(--danger); }
.vst-urg-urgent .vst-urg-dot { background: var(--warning); }
.vst-urg-soon   .vst-urg-dot { background: #eab308; }
.vst-urg-ok     .vst-urg-dot { background: var(--success); }
.vst-urg-none   .vst-urg-dot { background: var(--border); }

.vst-urg-label {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
}
.vst-urg-late   .vst-urg-label { background: var(--danger-light);  color: var(--danger); }
.vst-urg-urgent .vst-urg-label { background: var(--warning-light); color: var(--warning); }
.vst-urg-soon   .vst-urg-label { background: #fef9c3; color: #92400e; }
.vst-urg-ok     .vst-urg-label { background: var(--success-light); color: var(--success); }
.vst-urg-none   .vst-urg-label { background: #f1f5f9; color: var(--text-muted); }

.vst-done-btn {
  font-size: 11.5px;
  padding: 3px 10px;
  height: auto;
  gap: 4px;
  border-radius: 999px;
  font-weight: 600;
}

/* ── action-custom toggle ─────────────────────────────────────────────────── */
#fvst-act-custom-grp { display: none; }

/* ── Combobox (searchable dropdown, portal) ───────────────────────────────── */
.cb-wrap { position: relative; }
.cb-list {
  background: var(--bg-card); border: 1px solid var(--border-focus);
  border-radius: var(--radius); box-shadow: 0 8px 32px rgba(0,0,0,.18);
  overflow-y: auto;
}
.cb-opt {
  padding: 9px 12px; cursor: pointer; font-size: 13px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border);
}
.cb-opt:last-child { border-bottom: none; }
.cb-opt:hover, .cb-opt.cb-kbfocus { background: var(--primary-light); color: var(--text-primary); }
.cb-opt.cb-selected { background: var(--primary); color: #fff; font-weight: 600; }
.cb-opt-sub { font-size: 11px; color: var(--text-muted); flex-shrink: 0; margin-left: 12px; white-space: nowrap; }
.cb-opt.cb-selected .cb-opt-sub, .cb-opt.cb-kbfocus .cb-opt-sub { color: inherit; opacity: .7; }
.cb-empty { padding: 10px 12px; font-size: 13px; color: var(--text-muted); font-style: italic; }
.cb-chevron-wrap { position: relative; }
.cb-chevron-wrap input { padding-right: 28px !important; }
.cb-chevron-wrap::after { content: '▾'; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; font-size: 12px; }

/* ── Modal ────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.6);
  backdrop-filter: blur(2px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px);
  transition: transform .2s ease;
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal-lg { max-width: 800px; }
.modal-sm { max-width: 420px; }

.modal-header {
  padding: 12px 20px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-info-bar {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: .2px;
  margin-bottom: 3px;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  transition: all var(--transition);
}

.modal-close:hover { background: var(--bg-content); color: var(--text-primary); }

.modal-body {
  padding: 20px;
  overflow-y: auto;
  overflow-x: auto;
  flex: 1;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.modal-required-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-right: auto;
}

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid.cols-1 { grid-template-columns: 1fr; }
.form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.form-dup-warn {
  display: none;
  background: var(--warning-light);
  color: var(--warning);
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

/* ── Field-level validation ─────────────────────────────────────────────────── */
.field-error-msg {
  font-size: 11.5px;
  color: var(--danger);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: fadeInDown 120ms ease;
}
.field-error-msg::before { content: '⚠'; font-size: 11px; }

input.input-invalid,
select.input-invalid,
textarea.input-invalid {
  border-color: var(--danger) !important;
  background: #fff8f8;
}
input.input-invalid:focus,
select.input-invalid:focus,
textarea.input-invalid:focus {
  box-shadow: 0 0 0 3px rgba(220,38,38,.12);
  outline: none;
}

/* Inline error banner inside modal (submit errors) */
.modal-error-banner {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid #fca5a5;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  animation: fadeInDown 150ms ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group.full-width { grid-column: 1 / -1; }

label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .3px;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13.5px;
  color: var(--text-primary);
  background: var(--bg-card);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}

/* Champ identifiant verrouillé en mode modification */
input.hgl-id-ro {
  background: var(--bg-page);
  border-color: transparent;
  color: var(--text-primary);
  font-weight: 600;
  cursor: default;
  pointer-events: none;
  user-select: text;
}

/* Grille de visualisation d'un enregistrement */
.vf-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
}
.vf-key {
  padding: 7px 12px 7px 0;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .3px;
  border-bottom: 1px solid var(--border);
  word-break: break-all;
}
.vf-val {
  padding: 7px 0;
  font-size: 13.5px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  word-break: break-word;
}
.vf-key:nth-last-child(2), .vf-val:last-child { border-bottom: none; }
.vf-section {
  grid-column: 1 / -1;
  padding: 8px 0 4px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: .5px;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

textarea { resize: vertical; min-height: 80px; }

/* ── Input with prefix addon ─────────────────────────────────────────────── */
.input-addon-group {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input-addon-group:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.input-addon-group.input-invalid {
  border-color: var(--danger) !important;
  background: #fff8f8;
}
.input-addon-group.input-invalid:focus-within {
  box-shadow: 0 0 0 3px rgba(220,38,38,.12);
}
.input-addon {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--bg-content);
  border-right: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  user-select: none;
  font-family: monospace;
}
.input-addon-group input {
  flex: 1;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent;
  padding: 8px 12px;
}
.input-addon-group input:focus { box-shadow: none !important; border: none !important; }

/* Character counter */
.char-counter {
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
  transition: color var(--transition);
}
.char-counter.warn  { color: var(--warning); font-weight: 600; }
.char-counter.error { color: var(--danger);  font-weight: 700; }

.form-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Empty State ──────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: .5;
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.empty-state p { font-size: 13px; }

/* ── Loading ──────────────────────────────────────────────────────────────── */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: var(--text-muted);
  gap: 10px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toasts ───────────────────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--text-primary);
  color: white;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  min-width: 250px;
  max-width: 400px;
  transform: translateY(calc(100% + 32px));
  opacity: 0;
  transition: transform .35s cubic-bezier(.22,.68,0,1.2), opacity .3s ease;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); }

/* ── Communiqué Modal ─────────────────────────────────────────────────────── */
.communique-overlay {
  position: fixed;
  inset: 0;
  z-index: 4500;
  background: rgba(15,23,42,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(2px);
}
.communique-overlay.hidden { display: none; }
.communique-modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  max-height: 82vh;
  overflow: hidden;
  border-top: 4px solid var(--primary);
}
.communique-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.communique-icon { font-size: 22px; line-height: 1; }
.communique-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
  letter-spacing: -.3px;
}
.communique-date {
  font-size: 11px;
  color: var(--text-muted);
}
.communique-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.communique-msg {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-content);
}
.communique-msg-titre {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.communique-msg-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.communique-msg-texte {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: pre-wrap;
  line-height: 1.55;
}
.communique-msg.is-version {
  background: var(--primary-light);
  border-color: #93c5fd;
}
.communique-msg.is-version .communique-msg-titre { color: var(--primary-hover); }
.communique-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Detail Panel (slide-over) ────────────────────────────────────────────── */
.detail-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.detail-panel.open { pointer-events: all; }

.detail-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.5);
  opacity: 0;
  transition: opacity .25s ease;
}

.detail-panel.open .detail-overlay { opacity: 1; }

.detail-drawer {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 480px;
  max-width: 100%;
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
}

.detail-panel.open .detail-drawer { transform: translateX(0); }

.detail-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.detail-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}

/* ── Info List ────────────────────────────────────────────────────────────── */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.info-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}

.info-row:last-child { border-bottom: none; }

.info-label {
  color: var(--text-secondary);
  font-weight: 500;
  min-width: 140px;
  flex-shrink: 0;
  font-size: 12.5px;
}

.info-value {
  color: var(--text-primary);
  font-weight: 500;
  flex: 1;
  word-break: break-word;
}

/* ── Section title ────────────────────────────────────────────────────────── */
.section-header {
  margin-bottom: 20px;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.4px;
}

.section-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── Tabs ─────────────────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}

.tab {
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  white-space: nowrap;
}

.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ── Confirm dialog ───────────────────────────────────────────────────────── */
.confirm-modal .modal-body {
  text-align: center;
  padding: 28px 24px 16px;
}

.confirm-icon {
  font-size: 42px;
  margin-bottom: 14px;
}

.confirm-modal .confirm-msg {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  white-space: pre-line;
}

.confirm-modal .confirm-sub {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: pre-line;
}

/* ── Inventaire color codes ───────────────────────────────────────────────── */
.qty-positive { color: var(--success); font-weight: 700; }
.qty-zero { color: var(--text-muted); }
.qty-negative { color: var(--danger); font-weight: 700; }

/* ── Vehicle status ──────────────────────────────────────────────────────── */
.vehicle-row { cursor: pointer; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .topbar { padding: 0 16px; }
  .content-area { padding: 16px; }
}

/* ── Misc helpers ─────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.fw-bold { font-weight: 700; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

/* ── No selection ─────────────────────────────────────────────────────────── */
.no-select { user-select: none; }

/* ── Roles split-panel layout ─────────────────────────────────────────────── */
.roles-layout {
  display: flex;
  gap: 16px;
  align-items: stretch;
  height: 100%;
  min-height: 0;
  position: relative;
}

.roles-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  min-height: 0;
  transition: width 0.2s ease, min-width 0.2s ease, padding 0.2s ease, border-width 0.2s ease;
}

.split-tab-btn {
  position: absolute;
  left: 220px;
  top: 50%;
  transform: translateY(-50%) translateX(-50%);
  z-index: 10;
  width: 18px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  font-size: 9px;
  color: var(--text-secondary);
  padding: 0;
  transition: left 0.2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.split-tab-btn:hover { color: var(--text-primary); background: var(--bg-sidebar-hover); }
.roles-layout.split-collapsed .split-tab-btn { left: 9px; }
.roles-layout.split-collapsed .roles-sidebar {
  width: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border-width: 0;
}

.role-list-btn {
  width: 100%;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-primary);
}
.role-list-btn:hover {
  background: var(--bg-sidebar-hover);
  border-color: var(--border);
}
.role-list-btn.active {
  background: var(--primary);
  border-color: var(--primary-hover);
  color: #fff;
}
.role-list-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.role-list-key {
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
  margin-top: 2px;
}
.role-list-btn.active .role-list-key { color: rgba(255,255,255,.8); opacity: 1; }
.role-list-btn.active .role-list-name { color: #fff; }

.roles-panel {
  flex: 1;
  min-width: 0;
  min-height: 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.roles-panel-master {
  overflow-y: auto;
  overflow-x: auto;
  flex-shrink: 0;
  max-height: 50%;
}

.roles-panel-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  min-height: 0;
}

.role-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}
.role-panel-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.role-panel-key {
  margin-top: 4px;
}
.role-panel-key code {
  font-size: 12px;
  background: var(--bg-content);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  color: var(--text-secondary);
}

.role-sections {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.role-section {}

.role-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.role-perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}

.role-perm-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--bg-card);
  transition: box-shadow var(--transition);
}
.role-perm-card:hover { box-shadow: var(--shadow-sm); }

.role-perm-card--off {
  background: #f8fafc;
  opacity: .7;
}
.role-perm-card--off .role-perm-name { color: var(--text-muted); }

.role-perm-card.editing {
  background: #f0f7ff;
  border-color: #93c5fd;
}

.role-perm-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.2;
}

.role-perm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.role-perm-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.chip-read-on  { background: var(--success-light); color: var(--success); }
.chip-write-on { background: var(--primary-light);  color: var(--primary); }
.chip-off      { background: #f1f5f9; color: var(--text-muted); }

.role-perm-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.perm-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-primary);
  user-select: none;
}
.perm-toggle-label input[type="checkbox"] {
  display: none;
}
.perm-toggle-track {
  width: 32px;
  height: 18px;
  background: #cbd5e1;
  border-radius: 999px;
  position: relative;
  flex-shrink: 0;
  transition: background var(--transition);
}
.perm-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.perm-toggle-label input:checked + .perm-toggle-track {
  background: var(--primary);
}
.perm-toggle-label input:checked + .perm-toggle-track::after {
  transform: translateX(14px);
}
.perm-toggle-text {
  font-size: 12px;
  font-weight: 500;
}

/* ── Instructions timeline ─────────────────────────────────────────────────── */
.instr-timeline {
  position: relative;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.instr-timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
}

.instr-entry {
  position: relative;
  padding-bottom: 16px;
}

.instr-dot {
  position: absolute;
  left: -23px;
  top: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
  z-index: 1;
}

.instr-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.instr-card:hover { box-shadow: var(--shadow); }

.instr-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
  gap: 8px;
}

.instr-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.instr-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.instr-time {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-content);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1px 7px;
  font-family: monospace;
}
.instr-id {
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
}

.instr-tags {
  padding: 8px 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.instr-body {
  padding: 12px 16px 16px;
}
.instr-line {
  font-size: 13.5px;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
}
.instr-line + .instr-line { margin-top: 6px; }
.instr-line-first {
  font-weight: 600;
}

