/* Clean Base CSS - Essential styles only */

/* ===== CSS VARIABLES ===== */
:root {
  --font-family-base: 'Inter';
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --fs-display-xl: 40px;
  --fs-display-md: 30px;
  --fs-display-sm: 24px;
  --fs-text-lg: 20px;
  --fs-text-md: 16px;
  --fs-text-sm: 14px;
  --fs-text-xs: 12px;
}

/* ===== GLOBAL RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family-base);
}

body {
  font-family: var(--font-family-base);
  background: #fafafa;
  margin: 0;
  padding: 0;
}

/* Main content area - compensate for fixed sidebar */
.main-content {
  margin-left: 266px;
  /* Match sidebar width */
  min-height: 100vh;
  transition: margin-left 0.2s ease;
}

/* When sidebar is closed */
.sidebar.close~.main-content {
  margin-left: 78px;
  /* Match closed sidebar width */
}

/* ===== UTILITY CLASSES ===== */
.my_error {
  border-color: #dc3545;
}

.my_required::after {
  color: #dc3545;
}

.error-message {
  color: #dc3545;
}

.large-checkbox {
  margin-left: 20px;
  margin-right: 0px;
  margin-top: 10px;
  transform: scale(1.5);
}

.medium-checkbox {
  margin-left: 20px;
  margin-top: 9px;
  transform: scale(2.3);
}

.full-height {
  height: 100%;
}

.hide {
  display: none;
}

.is-invalid {
  border-color: #dc3545;
}

.invalid-feedback {
  color: #dc3545;
  display: block;
}

/* ===== TABLES ===== */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  background-color: transparent;
}

.table th,
.table td {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
}

.table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid #dee2e6;
}

.table tbody+tbody {
  border-top: 2px solid #dee2e6;
}


/* ===== BUTTONS ===== */
.btn {
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  padding: 8px;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
}

/* ===== CARDS ===== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border-radius: 12px;
  border: 1px solid var(--color-gray-100);
  background: var(--color-white);
  border-radius: 0.25rem;
}

.card-body {
  flex: 1 1 auto;
  padding: 1.25rem;
  width: 100%;
}



.card-header-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
}

/* ===== ALERTS ===== */
.alert {
  position: relative;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeaa7;
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

/* ===== RESPONSIVE UTILITIES ===== */
.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-flex {
  display: flex !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.align-items-center {
  align-items: center !important;
}

.text-center {
  text-align: center !important;
}

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-1 {
  margin-top: 0.25rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

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

.p-0 {
  padding: 0 !important;
}

.p-1 {
  padding: 0.25rem !important;
}

.p-2 {
  padding: 0.5rem !important;
}

.p-3 {
  padding: 1rem !important;
}

.p-4 {
  padding: 1.5rem !important;
}

.p-5 {
  padding: 3rem !important;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: 266px;
  padding: 20px;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}



/* ===== TABS ===== */
.tabs-container {
  padding: 0;
  margin-bottom: 0;
}
.tabs-container-payment {
  padding: 24px 24px;
  margin-bottom: 0px;
}

.tabs-wrapper {
  gap: 8px; 
  border-bottom: none; 
  justify-content: center; 
  flex-wrap: wrap;
  display: flex;
  gap: 8px;
  padding: 0;
}

.tab-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  color: var(--color-gray-900);
  font-weight: 500;
  font-size: 14px;
}

a.tab-item {
  text-decoration: none;
  font-family: var(--font-family-base);
  font-weight: 500;
  font-size: 14px;
}

.tab-item:hover, a.tab-item:hover {
  background: var(--color-gray-50);
  color: var(--color-gray-900) !important;
}

.tab-item.active, a.tab-item.active {
  background: var(--color-gray-900);
  color: var(--color-white);
}

.tab-item.active:hover, a.tab-item.active:hover {
  color: var(--color-white) !important;
  text-decoration: none !important;
  background: var(--color-gray-700);
}

.tab-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.tab-text {
  white-space: nowrap;
}

/* ===== SEARCH BANNER ===== */
.search-banner {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-banner-header {
  margin-bottom: 24px;
}

.search-banner-title h3 {
  margin: 0 0 8px 0;
  font-size: var(--fs-display-sm, 24px);
  font-weight: var(--font-weight-semibold, 600);
  color: var(--color-gray-900);
}

.search-banner-title p {
  margin: 0;
  font-size: var(--fs-text-sm, 14px);
  color: var(--color-gray-600);
}

.search-banner-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 12px 0;
}


.input-label {
  font-weight: 500;
  color: var(--color-gray-700);
  font-size: 13px;
  margin-bottom: 2px;
}

.input-wrapper .form-control,
.input-wrapper .form-select {
  border-radius: 12px;
  border: 1px solid var(--color-gray-200);
  padding: 8px 12px;
  font-size: 14px;
  transition: all 0.2s ease;
  height: 52px;
  background: var(--color-white);
}

.input-wrapper .form-control:focus,
.input-wrapper .form-select:focus {
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px rgba(129, 152, 182, 0.1);
  outline: none;
}

.input-wrapper .form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.input-wrapper .form-check-input {
  margin: 0;
}

.input-wrapper .form-check-label {
  font-size: 13px;
  color: var(--color-gray-600);
  margin: 0;
}

.search-banner-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  padding-top: 16px;
}

.search-banner-form {
  display: flex;
  flex-direction: column;
}


.text-underline {
  color: var(--color-primary-950);
  text-align: center;

  /* 2.Corps de texte/MD - Texte standard/Desktop & Mobile - Medium */
  font-size: var(--font-size-md, 16px);
  font-style: normal;
  font-weight: var(--font-weight-medium, 500);
  line-height: var(--font-line-height-md, 24px);
  /* 150% */
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}
/* Responsive adjustments */
@media (max-width: 1200px) {
  .search-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .search-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .search-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .search-banner-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-banner-actions .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .search-row {
    grid-template-columns: 1fr;
  }
}

/* Inline actions alignment inside search row */
.search-row .search-banner-actions.inline {
  grid-column: 5 / -1; /* place at the end of a 5-col grid */
  justify-self: end;
  align-self: end;
  padding-top: 0;
}

@media (max-width: 1200px) {
  .search-row .search-banner-actions.inline {
    grid-column: 4 / -1;
  }
}

@media (max-width: 992px) {
  .search-row .search-banner-actions.inline {
    grid-column: 3 / -1;
  }
}

@media (max-width: 768px) {
  .search-row .search-banner-actions.inline {
    grid-column: 1 / -1;
    justify-self: stretch;
    align-self: stretch;
  }
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
    padding: 10px;
  }
}