.elementor-295 .elementor-element.elementor-element-2f6d4d07{--display:flex;}.elementor-295 .elementor-element.elementor-element-2f6d4d07:not(.elementor-motion-effects-element-type-background), .elementor-295 .elementor-element.elementor-element-2f6d4d07 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#F4F1EA;}.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 );}:root{--page-title-display:none;}/* Start custom CSS for text-editor, class: .elementor-element-14a8aac7 *//* =====================================
   INDIVIDUAL SHORTCODE MODULE STYLES
   Compatible with Smart Farm Dashboard
===================================== */

:root{
  --brand-primary:#2E5E2E;
  --brand-light:#4C8C4A;
  --brand-accent:#C7A14A;
  --brand-bg:#F4F1EA;
  --text-dark:#2b2b2b;
}

:root{
  --g-forest: linear-gradient(135deg,#1f4037,#2e5e2e);
  --g-nature: linear-gradient(135deg,#4c8c4a,#2e5e2e);
  --g-gold: linear-gradient(135deg,#c7a14a,#8b6b2e);
  --g-earth: linear-gradient(135deg,#5a3f37,#2c7744);
}

@font-face {
  font-family: 'CairoCustom';
  src: url('/wp-content/fonts/cairo-regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body{
  font-family:'CairoCustom', sans-serif;
  background:#F4F1EA;
  direction: rtl;
}

/* =====================================
   MODULE CONTAINER
===================================== */
.sfd-module {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  background: #F4F1EA;
  font-family:'CairoCustom', sans-serif;
  direction: rtl;
}

/* =====================================
   TOP BAR (Title + Add Button)
===================================== */
.sfd-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px 0;
}

.sfd-top h2 {
  font-size: 24px;
  color: #2E5E2E;
  margin: 0;
  font-weight: 600;
}

.sfd-add-btn {
  background: linear-gradient(135deg, #C7A14A, #8B6B2E);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(199, 161, 74, 0.3);
}

.sfd-add-btn:hover {
  background: linear-gradient(135deg, #8B6B2E, #5e481d);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(199, 161, 74, 0.4);
}

/* =====================================
   TABLE STYLES
===================================== */
.sfd-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-top: 15px;
}

.sfd-table th,
.sfd-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  text-align: right;
}

.sfd-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #2E5E2E;
  text-align: right;
}

.sfd-table tbody tr:hover {
  background: #f8f9fa;
  transition: background 0.2s ease;
}

.sfd-table tbody tr:last-child td {
  border-bottom: none;
}

/* =====================================
   ACTION BUTTONS
===================================== */
.sfd-table .actions {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
}

.sfd-table .actions button {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sfd-table .edit {
  background: #e3f2fd;
  color: #1976d2;
}

.sfd-table .edit:hover {
  background: #1976d2;
  color: white;
}

.sfd-table .delete {
  background: #ffebee;
  color: #c62828;
}

.sfd-table .delete:hover {
  background: #c62828;
  color: white;
}

/* =====================================
   MODAL STYLES
===================================== */
#sfd-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#sfd-modal .modal-box {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: auto;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

#sfd-close {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #C7A14A;
  color: white;
  font-size: 20px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  z-index: 99999;
  transition: all 0.2s ease;
}

#sfd-close:hover {
  background: #8B6B2E;
  transform: scale(1.1);
}

/* =====================================
   ACF FORM STYLES
===================================== */
#sfd-modal .acf-form,
#sfd-modal .acf-fields {
  margin-top: 20px;
}

#sfd-modal .acf-field {
  margin-bottom: 15px;
}

#sfd-modal .acf-label {
  font-weight: 600;
  color: #2E5E2E;
  margin-bottom: 8px;
}

#sfd-modal input[type="text"],
#sfd-modal input[type="number"],
#sfd-modal input[type="date"],
#sfd-modal textarea,
#sfd-modal select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'CairoCustom', sans-serif;
  font-size: 14px;
}

#sfd-modal input[type="submit"],
#sfd-modal .acf-button,
#sfd-modal .acf-form-submit input {
  background: linear-gradient(135deg, #1f4d2b, #3c7a3f);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
  font-size: 15px;
  margin-top: 10px;
}

#sfd-modal input[type="submit"]:hover,
#sfd-modal .acf-button:hover,
#sfd-modal .acf-form-submit input:hover {
  background: linear-gradient(135deg, #c7a14a, #8b6b2e);
  transform: translateY(-2px);
}

/* =====================================
   EXPENSE FILTER STYLES
===================================== */
.expense-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.expense-filter input[type="date"] {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'CairoCustom', sans-serif;
  font-size: 14px;
}

.expense-filter button {
  background: linear-gradient(90deg, #C7A14A, #8B6B2E);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-weight: 600;
}

.expense-filter button:hover {
  background: linear-gradient(90deg, #8B6B2E, #5e481d);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* =====================================
   EXPORT BUTTONS
===================================== */
.expense-export {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

#export-excel {
  background: linear-gradient(90deg, #1d6f42, #2ecc71);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

#export-excel:hover {
  background: linear-gradient(90deg, #2ecc71, #27ae60);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

#export-pdf {
  background: linear-gradient(90deg, #b71c1c, #e53935);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

#export-pdf:hover {
  background: linear-gradient(90deg, #e53935, #ef5350);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

/* =====================================
   RESPONSIVE - MOBILE
===================================== */
@media (max-width: 768px) {
  .sfd-module {
    padding: 15px;
    margin: 10px;
  }

  .sfd-top {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .sfd-top h2 {
    font-size: 20px;
  }

  .sfd-add-btn {
    width: 100%;
  }

  .sfd-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .sfd-table th,
  .sfd-table td {
    padding: 10px 12px;
    font-size: 12px;
  }

  .sfd-table .actions {
    flex-direction: column;
    gap: 5px;
  }

  .sfd-table .actions button {
    width: 100%;
  }

  #sfd-modal .modal-box {
    width: 95%;
    padding: 20px;
  }

  .expense-filter {
    flex-direction: column;
  }

  .expense-filter input[type="date"],
  .expense-filter button {
    width: 100%;
  }

  .expense-export {
    flex-direction: column;
  }

  #export-excel,
  #export-pdf {
    width: 100%;
  }
}

/* =====================================
   LOADING ANIMATION
===================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sfd-module {
  animation: fadeIn 0.5s ease;
}

/* =====================================
   EMPTY STATE
===================================== */
.sfd-table tbody:empty::after {
  content: "لا توجد بيانات لعرضها";
  display: block;
  text-align: center;
  padding: 40px;
  color: #999;
  font-size: 14px;
}

/* =====================================
   TOTAL ROW (for expenses)
===================================== */
.sfd-table tbody tr[style*="background:linear-gradient"] {
  font-weight: bold;
  font-size: 14px;
}

.sfd-table tbody tr[style*="background:linear-gradient"] td {
  padding: 15px 16px;
  border-bottom: none;
}/* End custom CSS */