@charset "UTF-8";
.confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.confirm-overlay .confirm-box {
  padding: 24px 28px;
  border-radius: 12px;
  min-width: 320px;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  position: relative;
  color: #fff;
  font-family: sans-serif;
}
.confirm-overlay .confirm-box .confirm-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.confirm-overlay .confirm-box .confirm-message {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 24px;
}
.confirm-overlay .confirm-box i {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}
.confirm-overlay .confirm-box .message {
  margin-bottom: 24px;
  font-size: 16px;
  font-weight: 500;
}
.confirm-overlay .confirm-box .btn-container {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.confirm-overlay .confirm-box .btn-container .btn {
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 80px;
  outline: none;
}
.confirm-overlay .confirm-box .btn-container .btn-yes {
  background-color: currentColor;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.confirm-overlay .confirm-box .btn-container .btn-yes:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.confirm-overlay .confirm-box .btn-container .btn-no {
  background-color: rgba(0, 0, 0, 0.25);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.confirm-overlay .confirm-box .btn-container .btn-no:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.confirm-overlay .confirm-box.ok {
  background: #28a745;
}
.confirm-overlay .confirm-box.ok .btn-container .btn-yes {
  color: #28a745;
  background: #fff;
}
.confirm-overlay .confirm-box.error {
  background: #dc3545;
}
.confirm-overlay .confirm-box.error .btn-container .btn-yes {
  color: #dc3545;
  background: #fff;
}
.confirm-overlay .confirm-box.warning {
  background: #ffc107;
  color: #212529;
}
.confirm-overlay .confirm-box.warning .btn-container .btn-yes {
  color: #856404;
  background: #fff;
}
.confirm-overlay .confirm-box.info {
  background: #17a2b8;
}
.confirm-overlay .confirm-box.info .btn-container .btn-yes {
  color: #0d6efd;
  background: #fff;
}

.toast-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 220px;
  padding: 12px 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

.toast-alert.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-alert i {
  font-size: 18px;
}

.toast-ok {
  background: #28a745;
} /* vert */
.toast-error {
  background: #dc3545;
} /* rouge */
.toast-warning {
  background: #ffc107;
  color: #212529;
} /* jaune */
.toast-info {
  background: #17a2b8;
} /* bleu */
.flex-table-container {
  --row-height: 60px;
  --cell-padding-y: 17px;
  --cell-padding-x: 5px;
  --font-size: 14px;
  --icon-size: 1rem;
  --table-height: 300px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: var(--table-height);
  overflow: hidden;
  font-size: var(--font-size);
}

/* Layout général */
body {
  background-color: #f2f2f2;
  padding: 30px;
}

.card {
  padding: 15px;
  margin-bottom: 20px;
}
.card .card-title {
  background-color: #1d63b8;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 15px;
}

/* =========================
   HEADER + FOOTER + ROW BASE
========================= */
.flex-table-header,
.flex-table-footer,
.flex-row {
  display: grid;
  grid-template-columns: 50px 2fr 2fr 1fr 1fr 80px;
  align-items: center;
}

/* =========================
   HEADER
========================= */
.flex-table-header {
  background: #1d63b8;
  color: white;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 2;
  width: calc(100% - 15px);
}
.flex-table-header .cell {
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.sort-icon {
  margin-left: 6px;
  font-size: 12px;
  opacity: 0.6;
}

/* =========================
   FOOTER
========================= */
.flex-table-footer {
  background: #e9ecef;
  font-weight: bold;
  position: sticky;
  bottom: 0;
  z-index: 2;
  width: calc(100% - 15px);
}

/* =========================
   BODY
========================= */
.flex-table-body {
  display: grid;
  overflow-y: auto;
  scrollbar-gutter: stable;
  grid-auto-rows: var(--row-height);
}

/* =========================
   ROWS
========================= */
.flex-row {
  border-bottom: 1px solid #dee2e6;
  min-height: var(--row-height);
}
.flex-row:nth-child(even) {
  background: #f9f9f9;
}
.flex-row:hover {
  background: #e0f0ff;
}

/* =========================
   CELLS
========================= */
.cell {
  border-right: 1px solid #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--cell-padding-y) var(--cell-padding-x);
}
.cell:first-child {
  border-left: 1px solid #dee2e6;
}
.cell.left {
  justify-content: flex-start;
  text-align: left;
}
.cell.center {
  justify-content: center;
  text-align: center;
}
.cell.right {
  justify-content: flex-end;
  text-align: right;
}

/* =========================
   ACTIONS
========================= */
.actions {
  display: flex;
  gap: 8px;
}

.action-icon {
  font-size: var(--icon-size);
  color: #6c757d;
  margin: 0 5px;
  cursor: pointer;
  transition: color 0.2s;
}
.action-icon.edit:hover {
  color: #0d6efd;
}
.action-icon.delete:hover {
  color: #dc3545;
}

.btn-action {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  color: #555;
  transition: 0.2s;
}
.btn-action:hover {
  color: #0d6efd;
  transform: scale(1.15);
}

/* =========================
   SIZE VARIANTS
========================= */
.table-small {
  --row-height: 38px;
  --cell-padding-y: 10px;
  --font-size: 12px;
  --icon-size: 0.9rem;
  --table-height: 220px;
}

.table-medium {
  --row-height: 42px;
  --cell-padding-y: 11px;
  --font-size: 13px;
  --icon-size: 0.95rem;
  --table-height: 260px;
}

.table-large {
  --row-height: 65px;
  --cell-padding-y: 20px;
  --font-size: 15px;
  --icon-size: 1.1rem;
  --table-height: 340px;
}

/* =========================
   LOADER + SENTINEL
========================= */
.table-loader {
  text-align: center;
  padding: 10px;
  font-size: 0.9rem;
  opacity: 0.7;
}

.table-sentinel {
  height: 1px;
}

/* =========================
   SEARCH
========================= */
.dt-search-wrapper {
  margin-bottom: 12px;
  display: flex;
  justify-content: flex-end;
}
.dt-search-wrapper .dt-search-input {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  min-width: 220px;
  font-size: 14px;
  transition: all 0.2s ease;
}
.dt-search-wrapper .dt-search-input:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: #fff;
  width: 520px;
  max-width: 95%;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.15s ease;
  overflow: hidden;
  max-width: 95%;
  max-height: 90vh;
}
.modal-window .modal-body {
  padding: 20px;
  font-size: 14px;
  padding: 20px;
  font-size: 14px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}
.modal-header h3 {
  font-size: 16px;
  margin: 0;
}
.modal-header .modal-close {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.modal-body {
  padding: 20px;
  font-size: 14px;
}

@keyframes fadeIn {
  from {
    transform: translateY(-8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid #eee;
}

.modal-btn {
  padding: 8px 14px;
  border: 1px solid #ccc;
  background: #f8f9fa;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}
.modal-btn:hover {
  background: #e9ecef;
}
.modal-btn.primary {
  background: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
}
.modal-btn.primary:hover {
  background: #1669c1;
}/*# sourceMappingURL=main.css.map */