.elementor-2163 .elementor-element.elementor-element-5b6765f{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-widget-heading .elementor-heading-title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );color:var( --e-global-color-primary );}.elementor-2163 .elementor-element.elementor-element-2e23b1d .elementor-heading-title{font-family:"Poppins", Sans-serif;font-weight:600;}.elementor-widget-text-editor{font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );color:var( --e-global-color-text );}.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:var( --e-global-color-primary );}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap, .elementor-widget-text-editor.elementor-drop-cap-view-default .elementor-drop-cap{color:var( --e-global-color-primary );border-color:var( --e-global-color-primary );}.elementor-2163 .elementor-element.elementor-element-6ff86d4{font-family:"Poppins", Sans-serif;font-weight:400;}.elementor-2163 .elementor-element.elementor-element-d5d314b{--display:flex;--border-radius:12px 12px 12px 12px;}.elementor-2163 .elementor-element.elementor-element-d5d314b:not(.elementor-motion-effects-element-type-background), .elementor-2163 .elementor-element.elementor-element-d5d314b > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#FF6464;}.elementor-2163 .elementor-element.elementor-element-39ae5fe{font-family:"Poppins", Sans-serif;font-weight:400;color:#000000;}.elementor-2163 .elementor-element.elementor-element-274c238{--display:flex;}.elementor-2163 .elementor-element.elementor-element-48f08da{--display:flex;}body.elementor-page-2163:not(.elementor-motion-effects-element-type-background), body.elementor-page-2163 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#E4D9D347;}@media(min-width:768px){.elementor-2163 .elementor-element.elementor-element-5b6765f{--content-width:1300px;}}/* Start custom CSS *//* ===== FF Dynamic Table – Wrapper ===== */

.ffdet-table-wrapper {
  padding: 30px;
  background-color: #ffffff;
  border-radius: 12px;
  overflow-x: auto;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== Styled Table ===== */

.ffdet-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #f7f5ff;
  color: #3b185f;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(123, 97, 255, 0.2);
}

/* Table headers */
.ffdet-table thead th {
  background-color: #7b61ff;
  color: #fff;
  padding: 14px 12px;
  text-align: left;
  font-size: 14px;
  text-transform: uppercase;
  border-bottom: 2px solid #5f49cc;
}

/* Table rows */
.ffdet-table tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid #dcd6f7;
  font-size: 15px;
  vertical-align: top;
}

/* Alternate row background */
.ffdet-table tbody tr:nth-child(even) {
  background-color: #edeaff;
}

/* Remove last row bottom border for a cleaner look */
.ffdet-table tbody tr:last-child td {
  border-bottom: none;
}

/* ===== Status colors (example) ===== */
/* This assumes your cell content is wrapped in <p> (wpautop does that) */

.ffdet-table td:has(p:contains("Paye")) p,
.ffdet-table td:has(p:contains("Payé")) p {
  color: #27ae60;
  font-weight: bold;
}

.ffdet-table td:has(p:contains("Annule")) p,
.ffdet-table td:has(p:contains("Annulé")) p {
  color: #e74c3c;
  font-weight: bold;
}

/* ===== Pagination styling ===== */

.ffdet-pagination {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.ffdet-pagination .ffdet-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #dcd6f7;
  background-color: #ffffff;
  color: #7b61ff;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.18s ease;
  box-shadow: 0 0 4px rgba(123, 97, 255, 0.12);
}

.ffdet-pagination .ffdet-page:hover {
  background-color: #f0ecff;
  border-color: #b2a1ff;
  box-shadow: 0 0 6px rgba(123, 97, 255, 0.25);
}

.ffdet-pagination .ffdet-page.current {
  background-color: #7b61ff;
  color: #ffffff;
  border-color: #7b61ff;
  box-shadow: 0 0 8px rgba(123, 97, 255, 0.4);
  font-weight: 600;
}

/* ===== Mobile Responsive ===== */

@media (max-width: 768px) {
  .ffdet-table,
  .ffdet-table thead,
  .ffdet-table tbody,
  .ffdet-table th,
  .ffdet-table td,
  .ffdet-table tr {
    display: block;
    width: 100%;
  }

  .ffdet-table thead {
    display: none;
  }

  .ffdet-table tbody tr {
    margin-bottom: 15px;
    background-color: #f5f2ff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 12px;
  }

  .ffdet-table tbody td {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 14px;
  }

  .ffdet-table tbody tr:last-child td {
    border-bottom: none;
  }

  /* Label on the left (uses data-label if present; empty otherwise) */
  .ffdet-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #7b61ff;
    margin-right: 10px;
    flex-shrink: 0;
  }

  .ffdet-table-wrapper {
    padding: 16px;
  }
}/* End custom CSS */