.elementor-4157 .elementor-element.elementor-element-899eeaa{--display:flex;}.elementor-4157 .elementor-element.elementor-element-62cddaa{--spacer-size:50px;}.elementor-widget-button .elementor-button{font-family:var( --e-global-typography-accent-font-family ), Sans-serif;font-weight:var( --e-global-typography-accent-font-weight );background-color:var( --e-global-color-accent );}.elementor-4157 .elementor-element.elementor-element-70f2bae .elementor-button{background-color:#003366;}/* Start custom CSS for shortcode, class: .elementor-element-f333477 *//* ============================
   Leave Approval Table
============================ */
#leave-approval-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 10px;
  overflow: hidden;
}

#leave-approval-table th {
  background: #00264D;
  color: #fff;
  text-align: left;
  padding: 12px 15px;
}

#leave-approval-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}

#leave-approval-table tr:nth-child(even) {
  background-color: #fafafa;
}

#leave-approval-table tr:hover {
  background-color: #f6f8fc;
}

/* Buttons */
#leave-approval-table button {
  padding: 5px 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  margin: 2px 0;
  transition: all 0.2s ease;
}

#leave-approval-table button[name="decision"][value="approve"] {
  background: #4CAF50;
  color: #fff;
}

#leave-approval-table button[name="decision"][value="approve"]:hover {
  background: #43a047;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#leave-approval-table button[name="decision"][value="deny"] {
  background: #f44336;
  color: #fff;
  margin-left: 6px;
}

#leave-approval-table button[name="decision"][value="deny"]:hover {
  background: #d32f2f;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ============================
   Status Badges
============================ */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  text-align: center;
}

.badge-type {
  background: #f0f0f0;
  color: #333;
}

.badge-approved {
  background: #d4edda;
  color: #155724;
}

.badge-denied {
  background: #f8d7da;
  color: #721c24;
}

.badge-pending {
  background: #fff3cd;
  color: #856404;
}

/* ============================
   Leave Apply Dashboard
============================ */
#ai-leave-dashboard {
  max-width: 900px;
  margin: 20px auto;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

#ai-leave-dashboard h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #00264D;
  text-align: center;
}

.ai-section {
  background: #fff;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ai-section h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #00264D;
}

/* Form Styles */
.ai-section label {
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
}

.ai-section input[type="date"],
.ai-section select,
.ai-section textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ai-section input[type="date"]:focus,
.ai-section select:focus,
.ai-section textarea:focus {
  border-color: #00264D;
  box-shadow: 0 0 4px rgba(0,38,77,0.3);
  outline: none;
}

.ai-section textarea {
  resize: vertical;
}

/* Submit Button */
#ai_leave_submit {
  background: #00264D;
  color: #fff;
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

#ai_leave_submit:hover {
  background: #003366;
  transform: translateY(-1px);
}

/* Message Box */
#ai_leave_msg p {
  margin-top: 10px;
  font-weight: 500;
}

/* ============================
   Leave List Table
============================ */
#ai_leave_list table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 14px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

#ai_leave_list th,
#ai_leave_list td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

#ai_leave_list th {
  background: #00264D;
  color: #fff;
}

#ai_leave_list tr:nth-child(even) {
  background-color: #fafafa;
}

#ai_leave_list tr:hover {
  background-color: #f6f8fc;
}

/* Status Badges inside Leave List */
#ai_leave_list td .badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  text-align: center;
}

/* ============================
   Modal
============================ */
#ai_leave_modal {
  display: none; /* hidden by default */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#ai_leave_modal .modal-content {
  background: #fff;
  padding: 25px 20px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}/* End custom CSS */