:root {
  --pfx-primary: #1b2f70;
  --pfx-primary-2: #3c7ab3;
  --pfx-accent: #22c55e;
  /* couleur complémentaire */
  --pfx-ink: #0b1220;
  --pfx-muted: #667085;
  --pfx-bg: #f6f8fc;
  --pfx-card: #ffffff;
  --pfx-border: rgba(15, 23, 42, .10);
  --pfx-shadow: 0 10px 30px rgba(2, 6, 23, .08);
  --radius: 18px;
}

@supports not (gap: 1rem) {
  .gap-2 {
    gap: 0 !important;
  }

  .gap-2>* {
    margin: .5rem !important;
  }

  .gap-lg-2 {
    gap: 0 !important;
  }

  .gap-lg-2>* {
    margin: .5rem !important;
  }

  /* Your custom flex groups */
  .d-flex.gap-2 {
    gap: 0 !important;
  }

  .d-flex.gap-2>* {
    margin: .5rem !important;
  }
}

html,
body {
  height: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 12% -10%, rgba(60, 122, 179, .25), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(27, 47, 112, .18), transparent 55%),
    var(--pfx-bg);
  color: var(--pfx-ink);
}

/* Topbar */
.topbar {
  background: linear-gradient(135deg, var(--pfx-primary), var(--pfx-primary-2));
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.topbar .nav-link,
.topbar .navbar-brand {
  color: #fff !important;
}

.topbar .nav-link {
  opacity: .92;
}

.topbar .nav-link:hover {
  opacity: 1;
}

/* Layout */
.shell {
  min-height: 100%;
}

.content-wrap {
  padding: 24px 0 44px;
  padding-bottom: calc(44px + env(safe-area-inset-bottom));
}



/* Hero */
.hero {
  padding: 22px;
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(900px 400px at 10% 0%, rgba(34, 197, 94, .18), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(255, 255, 255, .22), transparent 55%),
    linear-gradient(135deg, rgba(27, 47, 112, .95), rgba(60, 122, 179, .92));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 20px 40px rgba(2, 6, 23, .12);
  overflow: hidden;
  position: relative;
}

.hero:after {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(450px 250px at 75% 40%, rgba(255, 255, 255, .14), transparent 60%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
}

.hero p {
  color: rgba(255, 255, 255, .86);
  max-width: 60ch;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  font-weight: 600;
  font-size: 13px;
}

/* Feature chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(27, 47, 112, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--pfx-primary), var(--pfx-primary-2));
  border: none;
  box-shadow: 0 10px 20px rgba(27, 47, 112, .18);
}

.btn-primary:hover {
  filter: brightness(1.03);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .50);
  color: #fff;
}

/* Small muted text */
.muted {
  color: var(--pfx-muted);
}

/* Cards */
.cardx {
  background: var(--pfx-card);
  border-radius: var(--radius);
  box-shadow: var(--pfx-shadow);
}

.cardx .cardx-body {
  padding: 22px;
}

.cardx .cardx-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--pfx-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

a {
  color: var(--pfx-primary);
}

a:hover {
  color: var(--pfx-primary);
  text-decoration: none;
}

.text-primary {
  color: var(--pfx-primary) !important;
}

.alert {
  width: 100%;
}

.action-list {
  list-style-type: none;
  padding-left: 15px;
  margin-bottom: 0;
}

.action-list li a {
  color: var(--pfx-primary);
  font-weight: 300;
}

.action-list li a svg {
  padding-right: 10px;
}

.action-list li a:hover {
  color: var(--pfx-primary);
  font-weight: 300;
  text-decoration: none;
}

.footer-blue {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  /* important */
  width: auto;
  /* let left/right define width */
  padding: 10px 0;
  z-index: 2;
  background: linear-gradient(135deg, #1b2f70, #3c7ab3);
  background-color: var(--pfx-primary);
  font-family: 'Source Sans Pro', sans-serif;
}

.footer-blue p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  margin-top: 10px;
  margin-bottom: 20px;
  font-weight: 300;
  text-align: center;
  width: 100%;


}

.card-center {
  margin: 0 auto;
  /* Added */
  float: none;
  /* Added */
  margin-bottom: 10px;
  /* Added */
}

.col-width-20 {
  width: 20%
}

.col-width-30 {
  width: 30%
}

.col-width-40 {
  width: 40%
}

.table-xsm tbody tr td {
  padding-bottom: 0px;
  padding-top: 0.25em;
  padding-left: 0.25em;
  padding-right: 0.25em;
  border-top: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;

}

table tr:last-child td {
  border-bottom: 0px;
}

.table-xsm tbody tr td input {
  border: 0px;

}

.table-xsm tbody tr td select {
  border: 0px;
  height: calc(1.5rem + 2px);

}

.table_stock {
  border-left: none;
  border-right: none;
}

.table_stock tbody tr td {
  color: var(--pfx-primary);
  font-weight: 500;
  text-decoration: none;
  text-align: left;
}

.table_stock thead tr th {
  color: var(--pfx-primary);
  font-weight: 600;
  text-decoration: none;
  text-align: left;
}

.table_stock tbody tr th {
  color: var(--pfx-primary);
  font-weight: 600;
  text-decoration: none;
  text-align: left;
}


.mt-6 {
  margin-top: 5rem !important;
}

#spinner-overlay {
  position: fixed;
  inset: 0;
  /* top/right/bottom/left: 0 */
  background: rgba(0, 0, 0, 0.45);
  /* greyed-out effect */
  display: grid;
  /* easy centering */
  place-items: center;
  z-index: 9999;
  /* above everything */
}

#spinner-overlay[hidden] {
  display: none;
}

/* The circular rotating spinner */
#spinner-overlay .spinner {
  width: 64px;
  height: 64px;
  border: 6px solid #e5e7eb;
  /* light ring */
  border-top-color: #2563eb;
  /* accent segment */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Rotation animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.messages {
  list-style: none;
}
