body, html {
    font-family: "Roboto", Helvetica, Arial, Verdana, Tahoma, sans-serif!important;
  }
  .sidebar, .header, .sidebar-nav, .nav-link{
    background: #4d1b12!important;
    color: #fff!important;
  }
  .header{
    background: #4d1b12!important;
    color: #fff!important;
  }
  #sidebar li a{
    color: #fff!important;
  }

  .form-control:active, .form-control:focus {
    border-color: #a3a1a1;
}

.form-control:hover, .form-control:active, .form-control:focus {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

a.quick-actions:hover {
  background: #ff4500 !important;
  color: white !important;
}
.btn-info,
.bg-info,
.alert-info {
   background-color: #4d1b12 !important;
   color: #fff !important;
}
.text-info{
   color: #4d1b12 !important;
}.border-info{
  border-color:#4d1b12 !important;
  border-radius: 10px!important;
}
.bg-navbar {
   background-color: #4d1b12 !important;
   color: #ff4500 !important;
}

.bg-sidebar {
   background: #4d1b12 !important;
   color: #fff !important;
}

.bg-sidebar a {
   color: #fff !important;
}
.btn{
  border-radius: 8px!important;
}
.invalid-feedback{
  color: #7a1515 !important;
}
.card-radius{
  background: #fff;
  padding-bottom: 30px;
  padding-top: 10px;
  border-radius:6px;
}
.text-right{text-align:right!important}
.text-left{text-align:left!important}
/*
  LINED HEADINGS 192a56
 ------------------------
*/
.lined {
  position: relative;
  padding-bottom: 0.7rem;
}

.lined::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 6.25rem;
  height: 2px;
  background: #ff8b39;
}

.lined-center::after {
  left: 50%;
  transform: translateX(-50%);
}

.lined-start {
  text-align: left;
}

.lined-start::after {
  left: 0;
  transform: none;
}

.lined-center {
  text-align: center;
}

.lined-center::after {
  left: 50%;
  transform: translateX(-50%);
}

@media (min-width: 576px) {
  .lined-sm-start {
      text-align: left;
  }

  .lined-sm-start::after {
      left: 0;
      transform: none;
  }

  .lined-sm-center {
      text-align: center;
  }

  .lined-sm-center::after {
      left: 50%;
      transform: translateX(-50%);
  }
}

@media (min-width: 768px) {
  .lined-md-start {
      text-align: left;
  }

  .lined-md-start::after {
      left: 0;
      transform: none;
  }

  .lined-md-center {
      text-align: center;
  }

  .lined-md-center::after {
      left: 50%;
      transform: translateX(-50%);
  }
}

@media (min-width: 992px) {
  .lined-lg-start {
      text-align: left;
  }

  .lined-lg-start::after {
      left: 0;
      transform: none;
  }

  .lined-lg-center {
      text-align: center;
  }

  .lined-lg-center::after {
      left: 50%;
      transform: translateX(-50%);
  }
}

@media (min-width: 1200px) {
  .lined-xl-start {
      text-align: left;
  }

  .lined-xl-start::after {
      left: 0;
      transform: none;
  }

  .lined-xl-center {
      text-align: center;
  }

  .lined-xl-center::after {
      left: 50%;
      transform: translateX(-50%);
  }
}

@media (min-width: 1400px) {
  .lined-xxl-start {
      text-align: left;
  }

  .lined-xxl-start::after {
      left: 0;
      transform: none;
  }

  .lined-xxl-center {
      text-align: center;
  }

  .lined-xxl-center::after {
      left: 50%;
      transform: translateX(-50%);
  }
}
.company-logo {
   display: inline-block;
   position: relative;
   width: 3rem;
   height: 3rem;
   text-align: center;
   border: #e7e7e7;
   /*background: #fff;*/
   box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
   line-height: 1rem;
   max-width: 100%;
   border-radius: 10%;
}
.company-logo.company-logo-small {
   width: 2.5rem;
   height: 2.5rem;
}
.company-logo.company-logo-medium {
   width: 5rem;
   min-width: 5rem;
   height: 5rem;
}
.company-logo.company-logo-large {
   width: 10rem;
   min-width: 10rem;
   height: 10rem;
}
/*
  Avatars
 ------------------------
*/
.avatar {
  display: inline-block;
  position: relative;
  width: 3rem;
  height: 3rem;
  text-align: center;
  border: #e7e7e7;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  line-height: 3rem;
  max-width: 100%;
}

.avatar.avatar-xs {
  width: 1.8rem;
  height: 1.8rem;
  line-height: 1.8rem;
}

.avatar.avatar-sm {
  width: 2.5rem;
  height: 2.5rem;
  line-height: 2.5rem;
}

.avatar.avatar-md {
  width: 4rem;
  height: 4rem;
  line-height: 4rem;
}

.avatar.avatar-lg {
  width: 5rem;
  height: 5rem;
  line-height: 5rem;
}

.avatar.avatar-xl {
  width: 7rem;
  height: 7rem;
  line-height: 7rem;
}

.avatar.avatar-xxl {
  width: 14rem;
  min-width: 14rem;
  height: 14rem;
  line-height: 14rem;
}
.avatar.avatar-big {
  width: 18rem;
  min-width: 18rem;
  height: 18rem;
  line-height: 18rem;
}

.avatar.avatar-border-white {
  border: solid 2px #fff;
}

.avatar-stacked {
  margin-left: -.5rem;
}

.avatar-brand img {
   border-radius: 100px !important;
   width: 50px !important;
   height: 50px !important;
}

.avatar-brand .avatar-sidebar {
   border-radius: 100px !important;
   width: 50px !important;
   height: 50px !important;
}
.avatar .avatar-lg {
  border-radius: 10px !important;
  width: 100px !important;
  height: 100px !important;
}
.logo img {
  border-radius: 10px !important;
  width: 150px !important;
  height: 150px !important;
}
.border-radius {
  border-radius: 10px !important;
}

@media print {
  .printoff {
      display: none !important;
  }

  .pagetitle,
  .header,
  .sidebar,
  .credits {
      display: none !important;
  }

  body,
  html {
      width: 100% ! important;
      height: 100% ! important;
  }

  body {
      padding-top: 1px !important;
      padding-bottom: 10px !important;
      max-height: 100% !important;
      max-width: 100% !important;
      font-size: 15px !important;
  }

  table {
      font-size: 15px !important;
  }
}
/* Design de la Carte */
.member-card {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    font-family: 'Segoe UI', Roboto, sans-serif;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
}

/* Header & Fond */
.card-main-content {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 20px;
    color: white;
    min-height: 180px;
}

.card-left-brand {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
}

.company-logo-mini {
    width: 45px;
    height: 45px;
    background: white;
    padding: 3px;
    border-radius: 50%;
    margin-right: 12px;
}

.brand-text .company-name {
    display: block;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 1px;
}

.brand-text .card-type-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Infos Membre */
.card-body-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.member-photo {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.member-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #ffffff;
}

.member-meta {
    font-size: 0.8rem;
    margin-bottom: 2px;
    opacity: 0.95;
}

/* Footer */
.card-footer-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8fafc;
}

.location {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 8px;
}

.badge-status {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Couleurs dynamiques basées sur Bootstrap status */
.status-success { background: #dcfce7; color: #15803d; }
.status-info { background: #e0f2fe; color: #0369a1; }
.status-warning { background: #fef9c3; color: #a16207; }

.qr-code {
    width: 65px;
    height: 65px;
    background: white;
    padding: 5px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 480px) {
    .card-body-info { flex-direction: column; text-align: center; }
}

/* 1. Bloc de Résumé Financier */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.financial-card {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #dee2e6;
}

.financial-card .label {
  font-size: 0.9em;
  color: #6c757d;
  margin-bottom: 5px;
}

.financial-card .value {
  font-size: 2em;
  font-weight: bold;
}

.card-ttc .value {
  color: #007bff;
}

.card-paid .value {
  color: #28a745;
}

.card-due .value {
  color: #dc3545;
}

/* Indicateur de statut */
.status-indicator {
  padding: 8px 15px;
  border-radius: 50px;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
}

.status-paid {
  background-color: #d4edda;
  color: #155724;
}

.status-partial {
  background-color: #fff3cd;
  color: #856404;
}

.status-pending {
  background-color: #f8d7da;
  color: #721c24;
}
/* 2. Formulaire de Paiement */
input[type="number"],
input[type="text"],
input[type="date"],
select {
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  text-decoration: none;
}


.amount-received {
  color: #28a745;
  font-weight: bold;
}

  .summary-card {
      background: #e6f0ff;
      border: 1px solid #eef2f7;
      overflow: hidden;
      font-family: 'Segoe UI', Roboto, sans-serif;
      border: 1px solid #004d99;
      border-radius: 4px;
  }

  .summary-header {
      background-color: #004d99;
      color: #ffffff;
  }

  .border-bottom-dashed {
      border-bottom: 1px dashed #dee2e6;
  }

  .tax-section {
      border-left: 4px solid #004d99;
  }

  .bg-primary {
      background-color: #004d99 !important;
  }

  /* Amélioration responsive pour mobile */
  @media (max-width: 576px) {
      .summary-body {
          padding: 1.5rem !important;
      }
      h5 { font-size: 1.1rem; }
      .badge { white-space: normal; line-height: 1.5; }
  }

  /* Style spécifique pour l'impression */
  @media print {
      .printoff { display: none !important; }
      .summary-card { border: 1px solid #000; box-shadow: none !important; }
      .bg-primary { background-color: #f8f9fa !important; color: #000 !important; border: 1px solid #000; }
  }