:root {
  --primary-color: #25375E;
  --accent-color: #3b82f6;
  --bg-light: #f6f7fd;
  --text-muted: #64748b;
  --radius-lg: 16px;
  --ink: #0f1f26;
  --cream: #f7f1e6;
  --mist: #e6edf7;
  --brand-blue: #2b4e94;
  --brand-green: #307d52;
  --shadow: 0 28px 70px rgba(15, 31, 38, 0.18);
}

body {
  background-color: var(--bg-light);
  color: var(--primary-color);
  min-height: 100vh;
  margin: 0;
  overflow-y: auto;
}

#sidenavAccordion {
  height: 52px;
  max-height: 52px !important;
}

.sidenav-menu {
  background: radial-gradient(circle, #2f476e, #19243d);
}

.sidenav-perso .sidenav-menu .sidenav-menu-heading {
  color: #ffffff;
}

.sidenav-perso .sidenav-menu .nav-link {
  color: #ffffff;
}

.sidenav-perso .sidenav-menu .nav-link .nav-link-icon {
  color: #a7aeb8;
}

.sidenav-perso .sidenav-menu .nav-link:hover {
  background-color: #172237;
  color: white;
}

.sidenav-perso .sidenav-menu .nav-link:hover .nav-link-icon {
  color: white;
  /* Change la couleur du texte en blanc */
}

.sidenav-perso .sidenav-menu .nav-link.active {
  color: #0061f2;
}

.sidenav-perso .sidenav-menu .nav-link.active .nav-link-icon {
  color: #0061f2;
  font-weight: bold;
}

.sidenav-perso .sidenav-menu-nested {
  border-left-color: #d4dae3;
}

.sidenav-perso .sidenav-footer {
  background-color: rgba(33, 40, 50, 0.05);
}

.sidenav-perso .sidenav-footer .sidenav-footer-subtitle {
  color: #69707a;
}

.dropdown-hover .dropdown-menu {
  margin-top: 0;
}

.dropdown-hover:hover .dropdown-menu,
.dropdown-hover:focus-within .dropdown-menu {
  display: block;
}

.card {
  border-radius: 10px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.159);

}

.stylling {
  background: radial-gradient(circle, #2f476e, #19243d);

}

.gerons {
  color: #d49b77;
}

.test {
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.159);
}

.input-icon {
  position: relative;
  display: inline;
}

.input-icon i {
  position: absolute;
  left: 10px;
  /* Ajustez cette valeur selon l'espacement désiré */
  top: 70%;
  transform: translateY(-60%);
  color: #1b1b1b;
  /* Couleur de l'icône */
}

.input-icon input {
  padding-left: 30px;
  /* Assurez-vous que l'input a suffisamment de padding pour ne pas que le texte chevauche l'icône */
}

*/ ---------------------------------------- .input-icon2 {
  position: relative;
  display: inline;
}

.input-icon2 i {
  position: absolute;
  left: 30px;
  top: 80%;
  /* transform: translateY(70%); */
  color: #1b1b1b;
}

.input-icon2 input {
  padding-left: 30px;
  /* Assurez-vous que l'input a suffisamment de padding pour ne pas que le texte chevauche l'icône */
}

.creer {
  margin-left: 20px;
}

.custom {
  background-color: #d4dae3;
  color: #1b1a1a;
  font-weight: bolder;
  height: 25px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.159);
}

.custom:hover {
  background-color: #2c3e50;
  color: #fefcfc;
}

.mt {
  margin-top: 220px;
}

.mt a {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.159);
}

.mt button:hover {
  background-color: #0061f2;
  color: #ffffff;
}

.taku {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(0, 0, 0, 0.1);
}

.bad {
  background-color: red;
}

.nav.nav-sub-nav .nav-item>.nav-link {
  font-size: var(--bs-nav-link-font-size);
  color: #25375E;
  font-weight: 500;
  font-style: normal;
}

.nav.nav-sub-nav .nav-item>.nav-link.active {
  color: #0061f2;
  font-weight: bold;
  border-bottom: 3px solid #0d6efd;
}

.bill-template {
  min-height: calc(100vh - 130px) !important;
  max-height: calc(100vh - 130px) !important;
  overflow-y: auto;
}

div.bill-label {
  background-color: #25375E;
  color: white !important;
}

.bill.table th,
.bill.table td {
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  font-size: .8rem;
}

.invoice-box {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
}

.table th {
  background: none;
}

.dynamic-select button,
.dynamic-select button:hover {
  border: 1px solid #a7aeb8;
}

.dynamic-select .link-underline-opacity-0:hover {
  text-decoration: none !important;
}

.offcanvas.form {
  width: 600px !important;
}

.offcanvas-a4 {
  width: min(210mm, 100vw) !important;
}

label.form-label.sm {
  font-size: .8rem;
}

.border-none {
  border: none;
}

.border-none:focus,
.border-none:hover {
  border: none;
}

.accordion-item.bill {
  border: none;
}

.accordion-item.bill.active {
  border: dashed 1px #a7aeb8;
  background-color: #eaeff6;
}

.accordion-collapse {
  transition: height .6s ease;
}

.custom-ordinal {
  font-size: 0.6em;
  vertical-align: super;
  color: #555;
}

.acc-text {
  font-size: 0.8em;
}

p.subtitle {
  font-size: .8rem;
  color: #69707a;
  font-weight: 400;
}

#layoutSidenav_nav {
  z-index: 1145;
}

nav.topnav.navbar {
  background-color: #fff;
}

div.inv-text .header {
  font-size: .9rem;
  color: #172237;
}

div.inv-text .title {
  font-size: .8rem;
}

.inv-text {
  font-size: .6rem;
}

#letterAmount {
  font-size: .8rem;
}

.bill.table th {
  background-color: #25375E;
  color: #fff;
}

.bill.table,
.bill.table th,
.bill.table td {
  border: 1px solid #aaaaaa !important;
}

#print-section {
  background-color: transparent !important;
  background: transparent !important;
  border: none;
}

#print-section,
#print-section * {
  color: #000;
}

.bill.table th {
  background-color: #25375E;
  color: #fff !important;
}

.display-entete label {
  font-size: .8rem !important;
}

/* START Custon signup style */

.auth-wrapper {
  display: flex;
  height: 100vh;
}

.side-panel {
  flex: 1;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px;
  color: white;
  position: relative;
}

.side-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 32px 32px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: var(--radius-lg);
  margin-top: 40px;
  max-width: 500px;
}

.form-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* padding: 0 40px; */
  overflow-y: hidden;
}

.form-container {
  width: 100%;
  max-width: 500px;
}

.brand-logo {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -1px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-box {
  width: 32px;
  height: 32px;
  background: var(--accent-color);
  border-radius: 8px;
}

h1 {
  font-weight: 700;
  font-size: 1.875rem;
  margin-bottom: 8px;
}

.subtext {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.form-label {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--primary-color);
}

.form-control {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.btn-primary {
  background-color: var(--primary-color);
  border: none;
  /* padding: 12px; */
  font-weight: 500;
}

.btn-primary:hover {
  background-color: #1e293b;
}

.footer-action-btn {
  padding: .7rem 1rem;
  font-size: 0.75rem;
  line-height: 1;
  margin-top: 0;
}

.btn-outline-light {
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: white;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  transition: background 0.2s;
}

.social-btn:hover {
  background: #f1f5f9;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.divider:not(:empty)::before {
  margin-right: .5em;
}

.divider:not(:empty)::after {
  margin-left: .5em;
}

.footer-link {
  text-align: center;
  margin-top: 32px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-link a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

input#dt-search-0.form-control {
  padding: 0 8px;
  border-radius: 6px;
}

.card.bill-template {
  border: none;
  box-shadow: none;
}

.position-sticky {
  background-color: transparent !important;
  border-right: none;
  box-shadow: none;
}

.offcanvas-body.invoice {
  padding: 0 !important;
}

#dashboard-header {
  background-color: white;
}

li.dt-paging-button .page-link {
  padding-top: 0;
  padding-bottom: 0;
}

#single-fab-action {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 0;
  background: var(--primary-color);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(13, 110, 253, 0.35);
  z-index: 1050;
}

#single-fab-action:hover,
#single-fab-action:focus-visible {
  background: transparent;
  border: var(--primary-color) 2px solid;
  color: var(--primary-color);
}

@media (max-width: 992px) {
  .side-panel {
    display: none;
  }

  body {
    overflow: auto;
  }
}

/* END Custon signup style */

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  .position-sticky {
    position: static !important;
    top: auto !important;
  }

  .no-print {
    display: none !important;
  }

  .bill-label {
    background: #25375E !important;
  }

  .bill-label h4 {
    color: #fff !important;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .bill-label {
    background: #25375E !important;
  }

  .bill-label h4,
  .bill-label .text-white {
    color: #fff !important;
  }

  /* Hide everything */
  body * {
    visibility: hidden !important;
  }

  /* Show only invoice */
  #print-section,
  #print-section * {
    visibility: visible !important;
    box-shadow: none !important;
    color: #000;
  }

  /* Place invoice at the top */
  #print-section {
    padding: 12mm 12mm;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }

  /* Remove screen layout constraints that break print */
  .bill-template {
    min-height: auto !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    border: none !important;
  }

  .invoice-box {
    padding: 0 !important;
    /* optional: cleaner on paper */
    border-radius: 0 !important;
    /* optional */
    box-shadow: none !important;
  }

  /* Bootstrap sticky/fixed cleanup */
  .sticky-top,
  .fixed-bottom,
  .position-sticky {
    position: static !important;
  }

  .card,
  .bill-template,
  .invoice-box {
    background: #fff !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  /* Avoid weird page clipping */
  html,
  body {
    height: auto !important;
    overflow: visible !important;
    background: #fff !important;
  }
}

.ventilation-body {
  overflow: hidden;
}

.ventilation-classes,
.ventilation-comptes {
  max-height: 60vh;
}

.ventilation-comptes {
  overflow-y: auto;
}

.auth-wrapper {
  min-height: 100vh;
  padding: clamp(1.5rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  position: relative;
  overflow: hidden;
}

.auth-wrapper::before,
.auth-wrapper::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  opacity: 0.7;
  z-index: 0;
}

.auth-wrapper::before {
  width: 320px;
  height: 320px;
  background: rgba(43, 78, 148, 0.2);
  left: -120px;
  bottom: -160px;
}

.auth-wrapper::after {
  width: 220px;
  height: 220px;
  background: rgba(48, 125, 82, 0.2);
  right: -90px;
  top: 120px;
}

.side-panel,
.form-panel {
  position: relative;
  z-index: 1;
}

.side-panel {
  background: linear-gradient(135deg, rgba(15, 31, 38, 0.92), rgba(43, 78, 148, 0.9));
  border-radius: 28px;
  padding: clamp(2rem, 4vw, 3.2rem);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 1.2rem 1.4rem;
  backdrop-filter: blur(6px);
}

.form-panel {
  display: flex;
  align-items: center;
}

.form-container {
  background: #fff;
  border-radius: 28px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow);
  width: 100%;
}

.login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  box-shadow: 0 18px 40px rgba(15, 31, 38, 0.12);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-blue);
}

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 31, 38, 0.08);
  color: var(--ink);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}

.form-container h1 {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.subtext {
  font-size: 1rem;
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

.social-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: none;
  background: rgba(15, 31, 38, 0.06);
  color: var(--ink);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-weight: 600;
}

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: rgba(15, 31, 38, 0.5);
  font-weight: 600;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(15, 31, 38, 0.15);
}

.auth-wrapper .form-control {
  border: none;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  box-shadow: inset 0 0 0 1px rgba(15, 31, 38, 0.12);
  background: #fff;
}

.auth-wrapper .form-control:focus {
  box-shadow: inset 0 0 0 2px rgba(43, 78, 148, 0.3);
}

.auth-wrapper .btn-primary {
  background: linear-gradient(120deg, var(--brand-blue), var(--brand-green));
  border: none;
  border-radius: 14px;
  box-shadow: 0 18px 30px rgba(43, 78, 148, 0.25);
  font-weight: 600;
}

.auth-wrapper .btn-primary:hover {
  filter: brightness(1.02);
}

.footer-link {
  margin-top: 1.2rem;
  font-weight: 600;
}

.footer-link a {
  color: var(--brand-blue);
  text-decoration: none;
}

.form-panel .text-muted {
  color: rgba(15, 31, 38, 0.6) !important;
}

@media (max-width: 992px) {
  .auth-wrapper {
    grid-template-columns: 1fr;
    padding: clamp(1.25rem, 6vw, 2.5rem);
  }

  .side-panel {
    display: none;
  }

  .login-header {
    flex-direction: column;
    align-items: flex-start;
  }
}